-
Notifications
You must be signed in to change notification settings - Fork 439
Expand file tree
/
Copy pathconstants.ts
More file actions
57 lines (51 loc) · 1.57 KB
/
constants.ts
File metadata and controls
57 lines (51 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* Copyright (c) 2023, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
const LWC_PACKAGE_ALIAS = 'lwc';
const LWC_PACKAGE_EXPORTS = {
BASE_COMPONENT: 'LightningElement',
API_DECORATOR: 'api',
TRACK_DECORATOR: 'track',
WIRE_DECORATOR: 'wire',
};
const LWC_COMPONENT_PROPERTIES = {
PUBLIC_PROPS: 'publicProps',
PUBLIC_METHODS: 'publicMethods',
WIRE: 'wire',
TRACK: 'track',
};
const DECORATOR_TYPES = {
PROPERTY: 'property',
GETTER: 'getter',
SETTER: 'setter',
METHOD: 'method',
} as const;
const REGISTER_COMPONENT_ID = 'registerComponent';
const REGISTER_DECORATORS_ID = 'registerDecorators';
const TEMPLATE_KEY = 'tmpl';
const COMPONENT_NAME_KEY = 'sel';
const API_VERSION_KEY = 'apiVersion';
const COMPONENT_CLASS_ID = '__lwc_component_class_internal';
const PRIVATE_METHOD_PREFIX = '__lwc_component_class_internal_private_';
const PRIVATE_METHOD_METADATA_KEY = '__lwcTransformedPrivateMethods';
const SYNTHETIC_ELEMENT_INTERNALS_KEY = 'enableSyntheticElementInternals';
const COMPONENT_FEATURE_FLAG_KEY = 'componentFeatureFlag';
export {
DECORATOR_TYPES,
LWC_PACKAGE_ALIAS,
LWC_PACKAGE_EXPORTS,
LWC_COMPONENT_PROPERTIES,
REGISTER_COMPONENT_ID,
REGISTER_DECORATORS_ID,
TEMPLATE_KEY,
COMPONENT_NAME_KEY,
API_VERSION_KEY,
COMPONENT_CLASS_ID,
PRIVATE_METHOD_PREFIX,
PRIVATE_METHOD_METADATA_KEY,
SYNTHETIC_ELEMENT_INTERNALS_KEY,
COMPONENT_FEATURE_FLAG_KEY,
};