1/*
2 * Copyright (c) 2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16const NAVIGATION_BUILDER_REGISTER: string = 'NavigationBuilderRegister';
17
18const MONITOR: string = 'Monitor';
19const COMPUTED: string = 'Computed';
20const REQUIRE: string = 'Require';
21const BUILDER_PARAM: string = 'BuilderParam';
22const DECORATOR_BUILDER_PARAM: string = '@BuilderParam';
23const MONITOR_DECORATOR: string = '@Monitor';
24const COMPUTED_DECORATOR: string = '@Computed';
25
26const COMPONENT_MEMBER_DECORATOR_V1: string[] = [
27  '@State', '@Prop', '@Link', '@Provide', '@Consume', '@Watch', '@StorageLink', '@StorageProp',
28  '@LocalStorageLink', '@LocalStorageProp', '@ObjectLink'
29];
30
31const COMPONENT_MEMBER_DECORATOR_V2: string[] = [
32  '@Local', '@Param', '@Once', '@Event', '@Provider', '@Consumer'
33];
34const STRUCT_CLASS_MEMBER_DECORATOR_V2: string[] = [
35  '@Monitor', '@Computed'
36];
37const DECORATOR_V2: string[] = [
38  ...COMPONENT_MEMBER_DECORATOR_V2, ...STRUCT_CLASS_MEMBER_DECORATOR_V2
39];
40
41const STRUCT_PARENT: string = 'ViewV2';
42const INIT_PARAM: string = 'initParam';
43const UPDATE_PARAM: string = 'updateParam';
44const UPDATE_STATE_VARS: string = 'updateStateVars';
45
46const BYTE_CODE_HAR: string = 'byteCodeHar';
47const CLOSED_SOURCE_HAR: string = 'closedSourceHar';
48const SHARED_HSP: string = 'sharedHsp';
49const MODULE_TYPE: string = 'moduleType';
50const HAR_DEFAULT_PAGE_PATH: string = '__harDefaultPagePath__';
51const HAR_DEFAULT_INTEGRATED_HSP_TYPE: string = '__harDefaultIntegratedHspType__';
52const FOLLOW_WITH_HAP: string = 'followWithHap';
53
54export default {
55  NAVIGATION_BUILDER_REGISTER,
56  MONITOR,
57  COMPUTED,
58  STRUCT_PARENT,
59  COMPONENT_MEMBER_DECORATOR_V1,
60  COMPONENT_MEMBER_DECORATOR_V2,
61  INIT_PARAM,
62  UPDATE_PARAM,
63  UPDATE_STATE_VARS,
64  REQUIRE,
65  MONITOR_DECORATOR,
66  COMPUTED_DECORATOR,
67  DECORATOR_V2,
68  BUILDER_PARAM,
69  DECORATOR_BUILDER_PARAM,
70  BYTE_CODE_HAR,
71  CLOSED_SOURCE_HAR,
72  SHARED_HSP,
73  MODULE_TYPE,
74  HAR_DEFAULT_PAGE_PATH,
75  HAR_DEFAULT_INTEGRATED_HSP_TYPE,
76  FOLLOW_WITH_HAP
77};
78