@cloudbase/cals 1.0.3-alpha.7 → 1.0.3-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/lib/cloudbase.cals.umd.min.js +5 -0
  2. package/lib/parser/cals/index.d.ts +366 -371
  3. package/lib/parser/cals/index.d.ts.map +1 -1
  4. package/lib/parser/cals/index.js +12 -12
  5. package/lib/parser/cals/utils/block/index.d.ts +14 -14
  6. package/lib/parser/cals/utils/block/index.js +3 -3
  7. package/lib/parser/cals/utils/code/index.d.ts +30 -30
  8. package/lib/parser/cals/utils/code/index.js +13 -12
  9. package/lib/parser/cals/utils/common.d.ts +11 -11
  10. package/lib/parser/cals/utils/runtime.d.ts +13 -13
  11. package/lib/parser/cals/utils/runtime.d.ts.map +1 -1
  12. package/lib/parser/cals/utils/runtime.js +2 -2
  13. package/lib/parser/cals/utils/spinoff/index.d.ts +9 -9
  14. package/lib/parser/cals/utils/style.d.ts +42 -42
  15. package/lib/parser/cals/utils/style.d.ts.map +1 -1
  16. package/lib/parser/cals/utils/style.js +3 -3
  17. package/lib/parser/cals/utils/template.d.ts +5 -5
  18. package/lib/parser/cals/utils/template.js +3 -6
  19. package/lib/parser/cals/utils/version/common.d.ts +4 -4
  20. package/lib/parser/cals/utils/version/common.js +11 -34
  21. package/lib/parser/cals/utils/version/config.d.ts +13 -13
  22. package/lib/parser/cals/utils/version/index.d.ts +2 -2
  23. package/lib/parser/cals/utils/version/parses.d.ts +15 -15
  24. package/lib/parser/cals/utils/version/parses.js +14 -37
  25. package/lib/parser/cals/utils/version/utils.d.ts +13 -13
  26. package/lib/parser/cals/utils/version/utils.d.ts.map +1 -1
  27. package/lib/parser/cals/utils/version/utils.js +2 -2
  28. package/lib/parser/expression/index.d.ts +122 -122
  29. package/lib/parser/index.d.ts +8 -8
  30. package/lib/parser/plugins/postcss-rpx2clac.d.ts +17 -17
  31. package/lib/parser/plugins/postcss-rpx2clac.js +2 -2
  32. package/lib/types/basic/app.d.ts +72 -72
  33. package/lib/types/basic/common.d.ts +88 -88
  34. package/lib/types/basic/component.d.ts +208 -208
  35. package/lib/types/basic/datasource.d.ts +49 -49
  36. package/lib/types/index.d.ts +9 -9
  37. package/lib/types/index.d.ts.map +1 -1
  38. package/lib/types/index.js +14 -1
  39. package/lib/types/lcds.d.ts +447 -197
  40. package/lib/types/lcds.d.ts.map +1 -1
  41. package/lib/types/platform/app.d.ts +176 -176
  42. package/lib/types/platform/common.d.ts +137 -137
  43. package/lib/types/platform/component.d.ts +140 -140
  44. package/lib/types/platform/datasource.d.ts +466 -466
  45. package/lib/types/platform/widget/form.d.ts +89 -89
  46. package/lib/types/platform/widget/meta.d.ts +59 -59
  47. package/lib/utils/CSSProperty.d.ts +63 -63
  48. package/lib/utils/build.d.ts +1 -1
  49. package/lib/utils/build.js +3 -6
  50. package/lib/utils/constant.d.ts +40 -40
  51. package/lib/utils/dts/auto-generated.d.ts +1 -1
  52. package/lib/utils/dts/build.d.ts +1 -1
  53. package/lib/utils/dts/index.d.ts +130 -130
  54. package/lib/utils/dts/index.d.ts.map +1 -1
  55. package/lib/utils/dts/index.js +116 -78
  56. package/lib/utils/index.d.ts +7 -7
  57. package/lib/utils/version/common.d.ts +2 -2
  58. package/lib/utils/version/featureChecker.d.ts +2 -2
  59. package/lib/utils/version/featureChecker.d.ts.map +1 -1
  60. package/lib/utils/version/migrations/version4.d.ts +2 -2
  61. package/lib/utils/version/migrations/version4.js +2 -2
  62. package/package.json +12 -3
  63. package/lib/utils/version-migrations/common.d.ts +0 -5
  64. package/lib/utils/version-migrations/common.d.ts.map +0 -1
  65. package/lib/utils/version-migrations/common.js +0 -29
  66. package/lib/utils/version-migrations/version4.d.ts +0 -3
  67. package/lib/utils/version-migrations/version4.d.ts.map +0 -1
  68. package/lib/utils/version-migrations/version4.js +0 -199
@@ -1,372 +1,367 @@
1
- import { IAttributes, IPlatformApp, IComplexComponent, IBasicComponent, IPageComponent, IDataSourceVariable, IDataVarMethod, // 勿删,为了生成d.ts
2
- IPlatformDataSource, IDependencies, LCDS } from '../../types';
3
- import { IDynamicValue, PropBindType } from '../expression';
4
- export { getUsedComps } from './utils/common';
5
- export { generateDefaultCode } from './utils/template';
6
- interface IDeserializeContext {
7
- app?: IPlatformApp;
8
- dependencies?: any[];
9
- dependenciesMap?: any;
10
- page?: IPageComponent;
11
- }
12
- interface ISerializeContext {
13
- app?: any;
14
- page?: {
15
- id: string;
16
- };
17
- component?: {
18
- id: string;
19
- module?: string;
20
- component?: string;
21
- };
22
- /**
23
- * 依赖描述
24
- * map 由 数组处理得到
25
- */
26
- dependencies?: any[];
27
- dependenciesMap?: any;
28
- streamlineDefaultValue?: boolean;
29
- streamlineModuleName?: boolean;
30
- }
31
- export declare function serializeValue({ ctx, key, dynamicValue, scope, streamlineDefaultValue, }: {
32
- ctx: ISerializeContext;
33
- key: string;
34
- dynamicValue: IDynamicValue;
35
- scope?: 'page' | 'component';
36
- streamlineDefaultValue?: boolean;
37
- }): {
38
- key: string;
39
- value: any;
40
- extra?: any;
41
- };
42
- export declare function deserializeValue(ctx: IDeserializeContext, key: string, value: any, extra?: any): {
43
- key: string;
44
- value: {
45
- type: PropBindType;
46
- value: any;
47
- extra: any;
48
- };
49
- };
50
- interface ISerializeDynamicMapProps {
51
- ctx: ISerializeContext;
52
- map: {
53
- [key: string]: IDynamicValue;
54
- };
55
- scope?: 'page' | 'component';
56
- streamlineDefaultValue?: boolean;
57
- }
58
- export declare function serializeDynamicMap(props: ISerializeDynamicMapProps): {
59
- [key: string]: string;
60
- };
61
- export declare function deserializeDynamicMap(ctx: IDeserializeContext, map: {
62
- [key: string]: string | any;
63
- }, extraMap?: {
64
- [key: string]: any;
65
- }): {
66
- [key: string]: IDynamicValue;
67
- };
68
- export declare function serializeAttributes(ctx: ISerializeContext, scope: 'page' | 'component', attributes?: {
69
- [key: string]: IDynamicValue;
70
- }): {
71
- [key: string]: string;
72
- };
73
- export declare function deserializeAttributes(ctx: IDeserializeContext, attributes?: IAttributes, attributesExtraData?: {}): {
74
- [key: string]: IDynamicValue;
75
- };
76
- export declare function deserializeDataVariables(ctx: IDeserializeContext, data: IDataSourceVariable): {
77
- title: string;
78
- name: string;
79
- varType: "datasource";
80
- dataType?: "record-collection" | "new-record" | "single-record" | "single-record-edit";
81
- dataSourceName: string;
82
- initMethod?: IDataVarMethod;
83
- updateMethod?: IDataVarMethod;
84
- };
85
- export declare function serializeComponent(ctx: ISerializeContext & ({
86
- page: Required<ISerializeContext>['page'];
87
- } | {
88
- component: Required<ISerializeContext>['component'];
89
- }), component: {
90
- xComponent?: {
91
- moduleName: string;
92
- name: string;
93
- };
94
- xProps?: {
95
- data: {
96
- [prop: string]: IDynamicValue;
97
- };
98
- directives?: {
99
- waIf?: IDynamicValue;
100
- waDisplay?: IDynamicValue;
101
- waFor?: IDynamicValue;
102
- waForKey?: IDynamicValue;
103
- };
104
- listeners?: any[];
105
- style: any;
106
- styleBind: IDynamicValue;
107
- classList: string[];
108
- classListBind: IDynamicValue;
109
- commonStyle: any;
110
- styleBindPath?: string;
111
- staticResourceAttribute: string[];
112
- };
113
- xIndex?: number;
114
- properties?: {
115
- [key: string]: any;
116
- };
117
- } & {
118
- id: string;
119
- label?: string;
120
- }, scope?: 'page' | 'component'): IBasicComponent | IComplexComponent;
121
- export declare function deserializeComponent(ctx: IDeserializeContext, components: (IBasicComponent | IComplexComponent)[]): {
122
- [key: string]: object;
123
- };
124
- export declare function serializePage(ctx: Pick<ISerializeContext, 'app' | 'dependencies' | 'dependenciesMap'>, page: any): IPageComponent;
125
- export declare function deserializePage(ctx: {
126
- app: Required<IDeserializeContext>['app'];
127
- dependencies: IDeserializeContext['dependencies'];
128
- homePageId: string;
129
- }, page: IPageComponent): {
130
- id: string;
131
- isHome: boolean;
132
- dataset: any;
133
- vars: {
134
- data: {
135
- title: string;
136
- name: string;
137
- varType: "datasource";
138
- dataType?: "record-collection" | "new-record" | "single-record" | "single-record-edit";
139
- dataSourceName: string;
140
- initMethod?: IDataVarMethod;
141
- updateMethod?: IDataVarMethod;
142
- }[];
143
- };
144
- data: {
145
- [key: string]: IDynamicValue;
146
- };
147
- componentInstances: {
148
- [key: string]: object;
149
- };
150
- commonStyle: object;
151
- staticResourceAttribute: string[];
152
- hideAdminPortalMenu: boolean;
153
- lowCodes: {
154
- type: string;
155
- code: string;
156
- description?: string;
157
- path?: string;
158
- name: string;
159
- }[];
160
- listeners: {
161
- key: string;
162
- trigger: string;
163
- type: string;
164
- handler: {
165
- name: string;
166
- moduleName: string;
167
- };
168
- data: {
169
- [key: string]: IDynamicValue;
170
- };
171
- isCapturePhase: boolean;
172
- noPropagation: boolean;
173
- }[];
174
- };
175
- /**
176
- * [WeApps协议] to [CALS协议]
177
- *
178
- * @param data
179
- */
180
- export declare function serializePlatformApp(data: any, optsions: {
181
- dependencies: object[];
182
- }): IPlatformApp;
183
- /**
184
- * [CALS协议] to [WeApps协议]
185
- *
186
- * @param data
187
- */
188
- export declare function deserializePlatformApp(data: IPlatformApp, optsions: {
189
- dependencies: object[];
190
- }): {
191
- id: any;
192
- version: string;
193
- author: string;
194
- name: string;
195
- label: string;
196
- description: string;
197
- selectedPageId: string;
198
- historyType: "HASH" | "BROWSER";
199
- pageInstanceList: {
200
- id: string;
201
- isHome: boolean;
202
- dataset: any;
203
- vars: {
204
- data: {
205
- title: string;
206
- name: string;
207
- varType: "datasource";
208
- dataType?: "record-collection" | "new-record" | "single-record" | "single-record-edit";
209
- dataSourceName: string;
210
- initMethod?: IDataVarMethod;
211
- updateMethod?: IDataVarMethod;
212
- }[];
213
- };
214
- data: {
215
- [key: string]: IDynamicValue;
216
- };
217
- componentInstances: {
218
- [key: string]: object;
219
- };
220
- commonStyle: object;
221
- staticResourceAttribute: string[];
222
- hideAdminPortalMenu: boolean;
223
- lowCodes: {
224
- type: string;
225
- code: string;
226
- description?: string;
227
- path?: string;
228
- name: string;
229
- }[];
230
- listeners: {
231
- key: string;
232
- trigger: string;
233
- type: string;
234
- handler: {
235
- name: string;
236
- moduleName: string;
237
- };
238
- data: {
239
- [key: string]: IDynamicValue;
240
- };
241
- isCapturePhase: boolean;
242
- noPropagation: boolean;
243
- }[];
244
- }[];
245
- lowCodes: {
246
- type: string;
247
- code: string;
248
- description?: string;
249
- path?: string;
250
- name: string;
251
- }[];
252
- datasources: IPlatformDataSource[];
253
- dataset: any;
254
- vars: {
255
- data: {
256
- title: string;
257
- name: string;
258
- varType: "datasource";
259
- dataType?: "record-collection" | "new-record" | "single-record" | "single-record-edit";
260
- dataSourceName: string;
261
- initMethod?: IDataVarMethod;
262
- updateMethod?: IDataVarMethod;
263
- }[];
264
- };
265
- compHiddenConfig: {
266
- [pageId: string]: string[];
267
- };
268
- npmDependencies: {
269
- [key: string]: string;
270
- };
271
- plugins: {
272
- title: string;
273
- name: string;
274
- module: string;
275
- type?: "kbone" | "mp";
276
- version: string;
277
- }[];
278
- maxID: number;
279
- rootPath: string;
280
- themeVars: {
281
- [key: string]: string;
282
- };
283
- presetColors: string[];
284
- appConfig: {};
285
- miniprogramPlugins: {
286
- name: string;
287
- version: string;
288
- pluginAppId: string;
289
- componentConfigs: (object & {
290
- isMiniProgramPlugins?: boolean;
291
- })[];
292
- }[];
293
- externalResources: import("../../types").IExternalResource[];
294
- extra: {
295
- name: string;
296
- author: string;
297
- description: string;
298
- lastDependencies: {
299
- [key: string]: string;
300
- };
301
- domain?: string;
302
- originHistoryId?: string;
303
- };
304
- dependencies: IDependencies;
305
- schemaVersion: string;
306
- };
307
- /**
308
- * page
309
- * [formily] to [CALS]
310
- */
311
- export declare function serializeRuntimePage(ctx: Pick<ISerializeContext, 'app' | 'dependencies' | 'streamlineDefaultValue'>, page: any): IPageComponent;
312
- /**
313
- * component
314
- * [formily] to [CALS]
315
- */
316
- export declare function serializeRuntimeComponent(ctx: ISerializeContext & {
317
- page: Required<ISerializeContext>['page'];
318
- }, component: any & {
319
- id: string;
320
- }): IBasicComponent | IComplexComponent;
321
- /**
322
- * component
323
- * [CALS] to [formily]
324
- * To be continue, currently support listener
325
- */
326
- export declare function deserializeRuntimeComponent(ctx: any, component: any): any;
327
- export declare function deserializeComponentLibraryMeta(meta: {
328
- styles?: string[];
329
- dependencies?: {
330
- [lib: string]: string;
331
- };
332
- components: {
333
- [key: string]: LCDS.IComponent;
334
- };
335
- actions: {
336
- [key: string]: LCDS.IAction;
337
- };
338
- }): {
339
- styles: string[];
340
- dependencies: {
341
- [lib: string]: string;
342
- };
343
- components: {
344
- [key: string]: {
345
- title: string;
346
- desc?: string;
347
- category: string;
348
- platforms?: {
349
- [key: string]: {
350
- tagName: 'audio';
351
- };
352
- };
353
- thumbnail?: string;
354
- };
355
- };
356
- actions: {
357
- [key: string]: LCDS.IAction;
358
- };
359
- };
360
- export declare function processRuntimeCodeResources(ctx: {
361
- id: string;
362
- version?: string;
363
- }, resources: any[], scope: string): any[];
364
- /**
365
- * 解析 cals version 来生成 feature map
366
- */
367
- export declare function parseVersion(version?: string, dependencies?: any[]): {
368
- defaultDynamicCssUnit: boolean;
369
- enableObserverRef: boolean;
370
- enablePageRoot: boolean;
371
- };
1
+ import { IAttributes, IPlatformApp, IComplexComponent, IBasicComponent, IPageComponent, IDataSourceVariable, IDataVarMethod, // 勿删,为了生成d.ts
2
+ IPlatformDataSource, IDependencies, LCDS } from '../../types';
3
+ import { IDynamicValue, PropBindType } from '../expression';
4
+ export { getUsedComps } from './utils/common';
5
+ export { generateDefaultCode } from './utils/template';
6
+ interface IDeserializeContext {
7
+ app?: IPlatformApp;
8
+ dependencies?: any[];
9
+ dependenciesMap?: any;
10
+ page?: IPageComponent;
11
+ }
12
+ interface ISerializeContext {
13
+ app?: any;
14
+ page?: {
15
+ id: string;
16
+ };
17
+ component?: {
18
+ id: string;
19
+ module?: string;
20
+ component?: string;
21
+ };
22
+ /**
23
+ * 依赖描述
24
+ * map 由 数组处理得到
25
+ */
26
+ dependencies?: any[];
27
+ dependenciesMap?: any;
28
+ streamlineDefaultValue?: boolean;
29
+ streamlineModuleName?: boolean;
30
+ }
31
+ export declare function serializeValue({ ctx, key, dynamicValue, scope, streamlineDefaultValue, }: {
32
+ ctx: ISerializeContext;
33
+ key: string;
34
+ dynamicValue: IDynamicValue;
35
+ scope?: 'page' | 'component';
36
+ streamlineDefaultValue?: boolean;
37
+ }): {
38
+ key: string;
39
+ value: any;
40
+ extra?: any;
41
+ };
42
+ export declare function deserializeValue(ctx: IDeserializeContext, key: string, value: any, extra?: any): {
43
+ key: string;
44
+ value: {
45
+ type: PropBindType;
46
+ value: any;
47
+ extra: any;
48
+ };
49
+ } | {
50
+ key: string;
51
+ value: {
52
+ type: undefined;
53
+ value: any;
54
+ extra: any;
55
+ } | undefined;
56
+ };
57
+ interface ISerializeDynamicMapProps {
58
+ ctx: ISerializeContext;
59
+ map: {
60
+ [key: string]: IDynamicValue;
61
+ };
62
+ scope?: 'page' | 'component';
63
+ streamlineDefaultValue?: boolean;
64
+ }
65
+ export declare function serializeDynamicMap(props: ISerializeDynamicMapProps): {
66
+ [key: string]: string;
67
+ };
68
+ export declare function deserializeDynamicMap(ctx: IDeserializeContext, map: {
69
+ [key: string]: string | any;
70
+ }, extraMap?: {
71
+ [key: string]: any;
72
+ }): any;
73
+ export declare function serializeAttributes(ctx: ISerializeContext, scope: 'page' | 'component', attributes?: {
74
+ [key: string]: IDynamicValue;
75
+ }): {
76
+ [key: string]: string;
77
+ };
78
+ export declare function deserializeAttributes(ctx: IDeserializeContext, attributes?: IAttributes, attributesExtraData?: {}): any;
79
+ export declare function deserializeDataVariables(ctx: IDeserializeContext, data: IDataSourceVariable): {
80
+ title: string | undefined;
81
+ name: string;
82
+ varType: "datasource";
83
+ dataType?: "record-collection" | "new-record" | "single-record" | "single-record-edit" | undefined;
84
+ dataSourceName: string;
85
+ initMethod?: IDataVarMethod | undefined;
86
+ updateMethod?: IDataVarMethod | undefined;
87
+ };
88
+ export declare function serializeComponent(ctx: ISerializeContext & ({
89
+ page: Required<ISerializeContext>['page'];
90
+ } | {
91
+ component: Required<ISerializeContext>['component'];
92
+ }), component: {
93
+ xComponent?: {
94
+ moduleName: string;
95
+ name: string;
96
+ };
97
+ xProps?: {
98
+ data: {
99
+ [prop: string]: IDynamicValue;
100
+ };
101
+ directives?: {
102
+ waIf?: IDynamicValue;
103
+ waDisplay?: IDynamicValue;
104
+ waFor?: IDynamicValue;
105
+ waForKey?: IDynamicValue;
106
+ };
107
+ listeners?: any[];
108
+ style: any;
109
+ styleBind: IDynamicValue;
110
+ classList: string[];
111
+ classListBind: IDynamicValue;
112
+ commonStyle: any;
113
+ styleBindPath?: string;
114
+ staticResourceAttribute: string[];
115
+ };
116
+ xIndex?: number;
117
+ properties?: {
118
+ [key: string]: any;
119
+ };
120
+ } & {
121
+ id: string;
122
+ label?: string;
123
+ }, scope?: 'page' | 'component'): IBasicComponent | IComplexComponent;
124
+ export declare function deserializeComponent(ctx: IDeserializeContext, components: (IBasicComponent | IComplexComponent)[]): {
125
+ [key: string]: object;
126
+ };
127
+ export declare function serializePage(ctx: Pick<ISerializeContext, 'app' | 'dependencies' | 'dependenciesMap'>, page: any): IPageComponent;
128
+ export declare function deserializePage(ctx: {
129
+ app: Required<IDeserializeContext>['app'];
130
+ dependencies: IDeserializeContext['dependencies'];
131
+ homePageId: string;
132
+ }, page: IPageComponent): {
133
+ id: string;
134
+ isHome: boolean;
135
+ dataset: any;
136
+ vars: {
137
+ data: {
138
+ title: string | undefined;
139
+ name: string;
140
+ varType: "datasource";
141
+ dataType?: "record-collection" | "new-record" | "single-record" | "single-record-edit" | undefined;
142
+ dataSourceName: string;
143
+ initMethod?: IDataVarMethod | undefined;
144
+ updateMethod?: IDataVarMethod | undefined;
145
+ }[];
146
+ };
147
+ data: any;
148
+ componentInstances: {
149
+ [key: string]: object;
150
+ };
151
+ commonStyle: object | undefined;
152
+ staticResourceAttribute: string[] | undefined;
153
+ hideAdminPortalMenu: boolean | undefined;
154
+ lowCodes: {
155
+ type: string | undefined;
156
+ code: string;
157
+ description?: string | undefined;
158
+ path?: string | undefined;
159
+ name: string;
160
+ }[] | undefined;
161
+ listeners: {
162
+ key: string;
163
+ trigger: string;
164
+ type: string | undefined;
165
+ handler: {
166
+ name: string | undefined;
167
+ moduleName: string | undefined;
168
+ };
169
+ data: any;
170
+ isCapturePhase: boolean;
171
+ noPropagation: boolean;
172
+ }[];
173
+ };
174
+ /**
175
+ * [WeApps协议] to [CALS协议]
176
+ *
177
+ * @param data
178
+ */
179
+ export declare function serializePlatformApp(data: any, optsions: {
180
+ dependencies: object[];
181
+ }): IPlatformApp;
182
+ /**
183
+ * [CALS协议] to [WeApps协议]
184
+ *
185
+ * @param data
186
+ */
187
+ export declare function deserializePlatformApp(data: IPlatformApp, optsions: {
188
+ dependencies: object[];
189
+ }): {
190
+ id: any;
191
+ version: string | undefined;
192
+ author: string | undefined;
193
+ name: string | undefined;
194
+ label: string | undefined;
195
+ description: string | undefined;
196
+ selectedPageId: string;
197
+ historyType: "HASH" | "BROWSER" | undefined;
198
+ pageInstanceList: {
199
+ id: string;
200
+ isHome: boolean;
201
+ dataset: any;
202
+ vars: {
203
+ data: {
204
+ title: string | undefined;
205
+ name: string;
206
+ varType: "datasource";
207
+ dataType?: "record-collection" | "new-record" | "single-record" | "single-record-edit" | undefined;
208
+ dataSourceName: string;
209
+ initMethod?: IDataVarMethod | undefined;
210
+ updateMethod?: IDataVarMethod | undefined;
211
+ }[];
212
+ };
213
+ data: any;
214
+ componentInstances: {
215
+ [key: string]: object;
216
+ };
217
+ commonStyle: object | undefined;
218
+ staticResourceAttribute: string[] | undefined;
219
+ hideAdminPortalMenu: boolean | undefined;
220
+ lowCodes: {
221
+ type: string | undefined;
222
+ code: string;
223
+ description?: string | undefined;
224
+ path?: string | undefined;
225
+ name: string;
226
+ }[] | undefined;
227
+ listeners: {
228
+ key: string;
229
+ trigger: string;
230
+ type: string | undefined;
231
+ handler: {
232
+ name: string | undefined;
233
+ moduleName: string | undefined;
234
+ };
235
+ data: any;
236
+ isCapturePhase: boolean;
237
+ noPropagation: boolean;
238
+ }[];
239
+ }[];
240
+ lowCodes: {
241
+ type: string | undefined;
242
+ code: string;
243
+ description?: string | undefined;
244
+ path?: string | undefined;
245
+ name: string;
246
+ }[];
247
+ datasources: IPlatformDataSource[] | undefined;
248
+ dataset: any;
249
+ vars: {
250
+ data: {
251
+ title: string | undefined;
252
+ name: string;
253
+ varType: "datasource";
254
+ dataType?: "record-collection" | "new-record" | "single-record" | "single-record-edit" | undefined;
255
+ dataSourceName: string;
256
+ initMethod?: IDataVarMethod | undefined;
257
+ updateMethod?: IDataVarMethod | undefined;
258
+ }[];
259
+ };
260
+ compHiddenConfig: {
261
+ [pageId: string]: string[];
262
+ };
263
+ npmDependencies: {
264
+ [key: string]: string;
265
+ };
266
+ plugins: {
267
+ title: string;
268
+ name: string;
269
+ module: string;
270
+ type?: "kbone" | "mp" | undefined;
271
+ version: string;
272
+ }[];
273
+ maxID: number | undefined;
274
+ rootPath: string | null | undefined;
275
+ themeVars: {
276
+ [key: string]: string;
277
+ } | undefined;
278
+ presetColors: string[];
279
+ appConfig: {} | undefined;
280
+ miniprogramPlugins: {
281
+ name: string;
282
+ version: string;
283
+ pluginAppId: string;
284
+ componentConfigs: (object & {
285
+ isMiniProgramPlugins?: boolean | undefined;
286
+ })[];
287
+ }[] | undefined;
288
+ externalResources: import("../../types").IExternalResource[] | undefined;
289
+ extra: {
290
+ name: string | undefined;
291
+ author: string | undefined;
292
+ description: string | undefined;
293
+ lastDependencies: {
294
+ [key: string]: string;
295
+ } | undefined;
296
+ domain?: string | undefined;
297
+ originHistoryId?: string | undefined;
298
+ };
299
+ dependencies: IDependencies | undefined;
300
+ schemaVersion: string | undefined;
301
+ };
302
+ /**
303
+ * page
304
+ * [formily] to [CALS]
305
+ */
306
+ export declare function serializeRuntimePage(ctx: Pick<ISerializeContext, 'app' | 'dependencies' | 'streamlineDefaultValue'>, page: any): IPageComponent;
307
+ /**
308
+ * component
309
+ * [formily] to [CALS]
310
+ */
311
+ export declare function serializeRuntimeComponent(ctx: ISerializeContext & {
312
+ page: Required<ISerializeContext>['page'];
313
+ }, component: any & {
314
+ id: string;
315
+ }): IBasicComponent | IComplexComponent;
316
+ /**
317
+ * component
318
+ * [CALS] to [formily]
319
+ * To be continue, currently support listener
320
+ */
321
+ export declare function deserializeRuntimeComponent(ctx: any, component: any): any;
322
+ export declare function deserializeComponentLibraryMeta(meta: {
323
+ styles?: string[];
324
+ dependencies?: {
325
+ [lib: string]: string;
326
+ };
327
+ components: {
328
+ [key: string]: LCDS.IComponent;
329
+ };
330
+ actions: {
331
+ [key: string]: LCDS.IAction;
332
+ };
333
+ }): {
334
+ styles: string[];
335
+ dependencies: {
336
+ [lib: string]: string;
337
+ };
338
+ components: {
339
+ [key: string]: {
340
+ title: string;
341
+ desc?: string | undefined;
342
+ category: string;
343
+ platforms?: {
344
+ [key: string]: {
345
+ tagName: 'audio';
346
+ };
347
+ } | undefined;
348
+ thumbnail?: string | undefined;
349
+ };
350
+ };
351
+ actions: {
352
+ [key: string]: LCDS.IAction;
353
+ };
354
+ };
355
+ export declare function processRuntimeCodeResources(ctx: {
356
+ id: string;
357
+ version?: string;
358
+ }, resources: any, scope: string): any;
359
+ /**
360
+ * 解析 cals version 来生成 feature map
361
+ */
362
+ export declare function parseVersion(version?: string, dependencies?: never[]): {
363
+ defaultDynamicCssUnit: boolean;
364
+ enableObserverRef: boolean;
365
+ enablePageRoot: boolean;
366
+ };
372
367
  //# sourceMappingURL=index.d.ts.map