@teambit/compositions 1.0.257 → 1.0.259

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.
@@ -14,2506 +14,2605 @@
14
14
  },
15
15
  "exports": [
16
16
  {
17
- "__schema": "VariableLikeSchema",
17
+ "__schema": "ExportSchema",
18
18
  "location": {
19
- "filePath": "compositions.aspect.ts",
19
+ "filePath": "index.ts",
20
20
  "line": 3,
21
- "character": 14
21
+ "character": 10
22
22
  },
23
- "signature": "const CompositionsAspect: Aspect",
24
23
  "name": "CompositionsAspect",
25
- "type": {
26
- "__schema": "TypeRefSchema",
24
+ "exportNode": {
25
+ "__schema": "VariableLikeSchema",
27
26
  "location": {
28
27
  "filePath": "compositions.aspect.ts",
29
28
  "line": 3,
30
29
  "character": 14
31
30
  },
32
- "name": "Aspect",
33
- "componentId": {
34
- "scope": "teambit.harmony",
35
- "name": "harmony",
36
- "version": "0.4.6"
37
- }
38
- },
39
- "isOptional": false,
40
- "defaultValue": "Aspect.create({\n id: 'teambit.compositions/compositions',\n dependencies: [],\n defaultConfig: {},\n})"
31
+ "signature": "const CompositionsAspect: Aspect",
32
+ "name": "CompositionsAspect",
33
+ "type": {
34
+ "__schema": "TypeRefSchema",
35
+ "location": {
36
+ "filePath": "compositions.aspect.ts",
37
+ "line": 3,
38
+ "character": 14
39
+ },
40
+ "name": "Aspect",
41
+ "componentId": {
42
+ "scope": "teambit.harmony",
43
+ "name": "harmony",
44
+ "version": "0.4.6"
45
+ }
46
+ },
47
+ "isOptional": false,
48
+ "defaultValue": "Aspect.create({\n id: 'teambit.compositions/compositions',\n dependencies: [],\n defaultConfig: {},\n})"
49
+ }
41
50
  },
42
51
  {
43
- "__schema": "ClassSchema",
52
+ "__schema": "ExportSchema",
44
53
  "location": {
45
- "filePath": "compositions.main.runtime.ts",
46
- "line": 35,
47
- "character": 1
54
+ "filePath": "index.ts",
55
+ "line": 4,
56
+ "character": 15
48
57
  },
49
- "doc": {
50
- "__schema": "DocSchema",
58
+ "name": "CompositionsMain",
59
+ "exportNode": {
60
+ "__schema": "ClassSchema",
51
61
  "location": {
52
62
  "filePath": "compositions.main.runtime.ts",
53
- "line": 32,
63
+ "line": 35,
54
64
  "character": 1
55
65
  },
56
- "raw": "/**\n * the component documentation extension.\n */",
57
- "comment": "the component documentation extension."
58
- },
59
- "signature": "class CompositionsMain",
60
- "name": "CompositionsMain",
61
- "members": [
62
- {
63
- "__schema": "ConstructorSchema",
66
+ "doc": {
67
+ "__schema": "DocSchema",
64
68
  "location": {
65
69
  "filePath": "compositions.main.runtime.ts",
66
- "line": 36,
67
- "character": 3
70
+ "line": 32,
71
+ "character": 1
68
72
  },
69
- "signature": "constructor CompositionsMain(compositionFilePattern: string[], previewFilePattern: string[], preview: PreviewMain, workspace: Workspace, schema: SchemaMain, devFiles: DevFilesMain, envs: EnvsMain): CompositionsMain",
70
- "name": "constructor",
71
- "params": [
72
- {
73
- "__schema": "ParameterSchema",
74
- "location": {
75
- "filePath": "compositions.main.runtime.ts",
76
- "line": 40,
77
- "character": 5
78
- },
79
- "name": "compositionFilePattern",
80
- "type": {
81
- "__schema": "TypeArraySchema",
73
+ "raw": "/**\n * the component documentation extension.\n */",
74
+ "comment": "the component documentation extension."
75
+ },
76
+ "signature": "class CompositionsMain",
77
+ "name": "CompositionsMain",
78
+ "members": [
79
+ {
80
+ "__schema": "ConstructorSchema",
81
+ "location": {
82
+ "filePath": "compositions.main.runtime.ts",
83
+ "line": 36,
84
+ "character": 3
85
+ },
86
+ "signature": "constructor CompositionsMain(compositionFilePattern: string[], previewFilePattern: string[], preview: PreviewMain, workspace: Workspace, schema: SchemaMain, devFiles: DevFilesMain, envs: EnvsMain): CompositionsMain",
87
+ "name": "constructor",
88
+ "params": [
89
+ {
90
+ "__schema": "ParameterSchema",
82
91
  "location": {
83
92
  "filePath": "compositions.main.runtime.ts",
84
93
  "line": 40,
85
- "character": 37
94
+ "character": 5
86
95
  },
96
+ "name": "compositionFilePattern",
87
97
  "type": {
88
- "__schema": "KeywordTypeSchema",
98
+ "__schema": "TypeArraySchema",
89
99
  "location": {
90
100
  "filePath": "compositions.main.runtime.ts",
91
101
  "line": 40,
92
102
  "character": 37
93
103
  },
94
- "name": "string"
95
- }
96
- },
97
- "isOptional": false,
98
- "isSpread": false
99
- },
100
- {
101
- "__schema": "ParameterSchema",
102
- "location": {
103
- "filePath": "compositions.main.runtime.ts",
104
- "line": 45,
105
- "character": 5
104
+ "type": {
105
+ "__schema": "KeywordTypeSchema",
106
+ "location": {
107
+ "filePath": "compositions.main.runtime.ts",
108
+ "line": 40,
109
+ "character": 37
110
+ },
111
+ "name": "string"
112
+ }
113
+ },
114
+ "isOptional": false,
115
+ "isSpread": false
106
116
  },
107
- "name": "previewFilePattern",
108
- "type": {
109
- "__schema": "TypeArraySchema",
117
+ {
118
+ "__schema": "ParameterSchema",
110
119
  "location": {
111
120
  "filePath": "compositions.main.runtime.ts",
112
121
  "line": 45,
113
- "character": 33
122
+ "character": 5
114
123
  },
124
+ "name": "previewFilePattern",
115
125
  "type": {
116
- "__schema": "KeywordTypeSchema",
126
+ "__schema": "TypeArraySchema",
117
127
  "location": {
118
128
  "filePath": "compositions.main.runtime.ts",
119
129
  "line": 45,
120
130
  "character": 33
121
131
  },
122
- "name": "string"
123
- }
124
- },
125
- "isOptional": false,
126
- "isSpread": false
127
- },
128
- {
129
- "__schema": "ParameterSchema",
130
- "location": {
131
- "filePath": "compositions.main.runtime.ts",
132
- "line": 50,
133
- "character": 5
132
+ "type": {
133
+ "__schema": "KeywordTypeSchema",
134
+ "location": {
135
+ "filePath": "compositions.main.runtime.ts",
136
+ "line": 45,
137
+ "character": 33
138
+ },
139
+ "name": "string"
140
+ }
141
+ },
142
+ "isOptional": false,
143
+ "isSpread": false
134
144
  },
135
- "name": "preview",
136
- "type": {
137
- "__schema": "TypeRefSchema",
145
+ {
146
+ "__schema": "ParameterSchema",
138
147
  "location": {
139
148
  "filePath": "compositions.main.runtime.ts",
140
149
  "line": 50,
141
- "character": 22
150
+ "character": 5
142
151
  },
143
- "name": "PreviewMain",
144
- "componentId": {
145
- "scope": "teambit.preview",
146
- "name": "preview"
147
- }
148
- },
149
- "isOptional": false,
150
- "isSpread": false
151
- },
152
- {
153
- "__schema": "ParameterSchema",
154
- "location": {
155
- "filePath": "compositions.main.runtime.ts",
156
- "line": 55,
157
- "character": 5
152
+ "name": "preview",
153
+ "type": {
154
+ "__schema": "TypeRefSchema",
155
+ "location": {
156
+ "filePath": "compositions.main.runtime.ts",
157
+ "line": 50,
158
+ "character": 22
159
+ },
160
+ "name": "PreviewMain",
161
+ "componentId": {
162
+ "scope": "teambit.preview",
163
+ "name": "preview"
164
+ }
165
+ },
166
+ "isOptional": false,
167
+ "isSpread": false
158
168
  },
159
- "name": "workspace",
160
- "type": {
161
- "__schema": "TypeRefSchema",
169
+ {
170
+ "__schema": "ParameterSchema",
162
171
  "location": {
163
172
  "filePath": "compositions.main.runtime.ts",
164
173
  "line": 55,
165
- "character": 24
174
+ "character": 5
166
175
  },
167
- "name": "Workspace",
168
- "componentId": {
169
- "scope": "teambit.workspace",
170
- "name": "workspace"
171
- }
172
- },
173
- "isOptional": false,
174
- "isSpread": false
175
- },
176
- {
177
- "__schema": "ParameterSchema",
178
- "location": {
179
- "filePath": "compositions.main.runtime.ts",
180
- "line": 60,
181
- "character": 5
176
+ "name": "workspace",
177
+ "type": {
178
+ "__schema": "TypeRefSchema",
179
+ "location": {
180
+ "filePath": "compositions.main.runtime.ts",
181
+ "line": 55,
182
+ "character": 24
183
+ },
184
+ "name": "Workspace",
185
+ "componentId": {
186
+ "scope": "teambit.workspace",
187
+ "name": "workspace"
188
+ }
189
+ },
190
+ "isOptional": false,
191
+ "isSpread": false
182
192
  },
183
- "name": "schema",
184
- "type": {
185
- "__schema": "TypeRefSchema",
193
+ {
194
+ "__schema": "ParameterSchema",
186
195
  "location": {
187
196
  "filePath": "compositions.main.runtime.ts",
188
197
  "line": 60,
189
- "character": 21
198
+ "character": 5
190
199
  },
191
- "name": "SchemaMain",
192
- "componentId": {
193
- "scope": "teambit.semantics",
194
- "name": "schema"
195
- }
196
- },
197
- "isOptional": false,
198
- "isSpread": false
199
- },
200
- {
201
- "__schema": "ParameterSchema",
202
- "location": {
203
- "filePath": "compositions.main.runtime.ts",
204
- "line": 62,
205
- "character": 5
200
+ "name": "schema",
201
+ "type": {
202
+ "__schema": "TypeRefSchema",
203
+ "location": {
204
+ "filePath": "compositions.main.runtime.ts",
205
+ "line": 60,
206
+ "character": 21
207
+ },
208
+ "name": "SchemaMain",
209
+ "componentId": {
210
+ "scope": "teambit.semantics",
211
+ "name": "schema"
212
+ }
213
+ },
214
+ "isOptional": false,
215
+ "isSpread": false
206
216
  },
207
- "name": "devFiles",
208
- "type": {
209
- "__schema": "TypeRefSchema",
217
+ {
218
+ "__schema": "ParameterSchema",
210
219
  "location": {
211
220
  "filePath": "compositions.main.runtime.ts",
212
221
  "line": 62,
213
- "character": 23
222
+ "character": 5
214
223
  },
215
- "name": "DevFilesMain",
216
- "componentId": {
217
- "scope": "teambit.component",
218
- "name": "dev-files"
219
- }
220
- },
221
- "isOptional": false,
222
- "isSpread": false
223
- },
224
- {
225
- "__schema": "ParameterSchema",
226
- "location": {
227
- "filePath": "compositions.main.runtime.ts",
228
- "line": 64,
229
- "character": 5
224
+ "name": "devFiles",
225
+ "type": {
226
+ "__schema": "TypeRefSchema",
227
+ "location": {
228
+ "filePath": "compositions.main.runtime.ts",
229
+ "line": 62,
230
+ "character": 23
231
+ },
232
+ "name": "DevFilesMain",
233
+ "componentId": {
234
+ "scope": "teambit.component",
235
+ "name": "dev-files"
236
+ }
237
+ },
238
+ "isOptional": false,
239
+ "isSpread": false
230
240
  },
231
- "name": "envs",
232
- "type": {
233
- "__schema": "TypeRefSchema",
241
+ {
242
+ "__schema": "ParameterSchema",
234
243
  "location": {
235
244
  "filePath": "compositions.main.runtime.ts",
236
245
  "line": 64,
237
- "character": 19
238
- },
239
- "name": "EnvsMain",
240
- "componentId": {
241
- "scope": "teambit.envs",
242
- "name": "envs"
243
- }
244
- },
245
- "isOptional": false,
246
- "isSpread": false
247
- }
248
- ],
249
- "returnType": {
250
- "__schema": "ThisTypeSchema",
251
- "location": {
252
- "filePath": "compositions.main.runtime.ts",
253
- "line": 35,
254
- "character": 1
255
- },
256
- "name": "CompositionsMain"
257
- },
258
- "modifiers": []
259
- },
260
- {
261
- "__schema": "FunctionLikeSchema",
262
- "location": {
263
- "filePath": "compositions.main.runtime.ts",
264
- "line": 70,
265
- "character": 3
266
- },
267
- "doc": {
268
- "__schema": "DocSchema",
269
- "location": {
270
- "filePath": "compositions.main.runtime.ts",
271
- "line": 67,
272
- "character": 3
273
- },
274
- "raw": "/**\n * returns an array of doc file paths for a set of components.\n */",
275
- "comment": "returns an array of doc file paths for a set of components."
276
- },
277
- "signature": "(method) CompositionsMain.getPreviewFiles(components: Component[]): ComponentMap<AbstractVinyl[]>",
278
- "name": "getPreviewFiles",
279
- "params": [
280
- {
281
- "__schema": "ParameterSchema",
282
- "location": {
283
- "filePath": "compositions.main.runtime.ts",
284
- "line": 70,
285
- "character": 19
286
- },
287
- "name": "components",
288
- "type": {
289
- "__schema": "TypeArraySchema",
290
- "location": {
291
- "filePath": "compositions.main.runtime.ts",
292
- "line": 70,
293
- "character": 31
246
+ "character": 5
294
247
  },
248
+ "name": "envs",
295
249
  "type": {
296
250
  "__schema": "TypeRefSchema",
297
251
  "location": {
298
252
  "filePath": "compositions.main.runtime.ts",
299
- "line": 70,
300
- "character": 31
253
+ "line": 64,
254
+ "character": 19
301
255
  },
302
- "name": "Component",
256
+ "name": "EnvsMain",
303
257
  "componentId": {
304
- "scope": "teambit.component",
305
- "name": "component"
258
+ "scope": "teambit.envs",
259
+ "name": "envs"
306
260
  }
307
- }
261
+ },
262
+ "isOptional": false,
263
+ "isSpread": false
264
+ }
265
+ ],
266
+ "returnType": {
267
+ "__schema": "ThisTypeSchema",
268
+ "location": {
269
+ "filePath": "compositions.main.runtime.ts",
270
+ "line": 35,
271
+ "character": 1
308
272
  },
309
- "isOptional": false,
310
- "isSpread": false
311
- }
312
- ],
313
- "returnType": {
314
- "__schema": "TypeRefSchema",
273
+ "name": "CompositionsMain"
274
+ },
275
+ "modifiers": []
276
+ },
277
+ {
278
+ "__schema": "FunctionLikeSchema",
315
279
  "location": {
316
280
  "filePath": "compositions.main.runtime.ts",
317
281
  "line": 70,
318
- "character": 45
282
+ "character": 3
319
283
  },
320
- "name": "ComponentMap",
321
- "componentId": {
322
- "scope": "teambit.component",
323
- "name": "component"
284
+ "doc": {
285
+ "__schema": "DocSchema",
286
+ "location": {
287
+ "filePath": "compositions.main.runtime.ts",
288
+ "line": 67,
289
+ "character": 3
290
+ },
291
+ "raw": "/**\n * returns an array of doc file paths for a set of components.\n */",
292
+ "comment": "returns an array of doc file paths for a set of components."
324
293
  },
325
- "typeArgs": [
294
+ "signature": "(method) CompositionsMain.getPreviewFiles(components: Component[]): ComponentMap<AbstractVinyl[]>",
295
+ "name": "getPreviewFiles",
296
+ "params": [
326
297
  {
327
- "__schema": "TypeArraySchema",
298
+ "__schema": "ParameterSchema",
328
299
  "location": {
329
300
  "filePath": "compositions.main.runtime.ts",
330
301
  "line": 70,
331
- "character": 58
302
+ "character": 19
332
303
  },
304
+ "name": "components",
333
305
  "type": {
334
- "__schema": "TypeRefSchema",
306
+ "__schema": "TypeArraySchema",
307
+ "location": {
308
+ "filePath": "compositions.main.runtime.ts",
309
+ "line": 70,
310
+ "character": 31
311
+ },
312
+ "type": {
313
+ "__schema": "TypeRefSchema",
314
+ "location": {
315
+ "filePath": "compositions.main.runtime.ts",
316
+ "line": 70,
317
+ "character": 31
318
+ },
319
+ "name": "Component",
320
+ "componentId": {
321
+ "scope": "teambit.component",
322
+ "name": "component"
323
+ }
324
+ }
325
+ },
326
+ "isOptional": false,
327
+ "isSpread": false
328
+ }
329
+ ],
330
+ "returnType": {
331
+ "__schema": "TypeRefSchema",
332
+ "location": {
333
+ "filePath": "compositions.main.runtime.ts",
334
+ "line": 70,
335
+ "character": 45
336
+ },
337
+ "name": "ComponentMap",
338
+ "componentId": {
339
+ "scope": "teambit.component",
340
+ "name": "component"
341
+ },
342
+ "typeArgs": [
343
+ {
344
+ "__schema": "TypeArraySchema",
335
345
  "location": {
336
346
  "filePath": "compositions.main.runtime.ts",
337
347
  "line": 70,
338
348
  "character": 58
339
349
  },
340
- "name": "AbstractVinyl",
341
- "packageName": "@teambit/legacy/dist/consumer/component/sources"
350
+ "type": {
351
+ "__schema": "TypeRefSchema",
352
+ "location": {
353
+ "filePath": "compositions.main.runtime.ts",
354
+ "line": 70,
355
+ "character": 58
356
+ },
357
+ "name": "AbstractVinyl",
358
+ "packageName": "@teambit/legacy/dist/consumer/component/sources"
359
+ }
342
360
  }
343
- }
344
- ]
345
- },
346
- "modifiers": []
347
- },
348
- {
349
- "__schema": "FunctionLikeSchema",
350
- "location": {
351
- "filePath": "compositions.main.runtime.ts",
352
- "line": 88,
353
- "character": 3
361
+ ]
362
+ },
363
+ "modifiers": []
354
364
  },
355
- "doc": {
356
- "__schema": "DocSchema",
365
+ {
366
+ "__schema": "FunctionLikeSchema",
357
367
  "location": {
358
368
  "filePath": "compositions.main.runtime.ts",
359
- "line": 85,
369
+ "line": 88,
360
370
  "character": 3
361
371
  },
362
- "raw": "/**\n * checks if a file matches the composition file pattern.\n */",
363
- "comment": "checks if a file matches the composition file pattern."
364
- },
365
- "signature": "(method) CompositionsMain.isCompositionFile(filePath: string): boolean",
366
- "name": "isCompositionFile",
367
- "params": [
368
- {
369
- "__schema": "ParameterSchema",
372
+ "doc": {
373
+ "__schema": "DocSchema",
370
374
  "location": {
371
375
  "filePath": "compositions.main.runtime.ts",
372
- "line": 88,
373
- "character": 21
376
+ "line": 85,
377
+ "character": 3
374
378
  },
375
- "name": "filePath",
376
- "type": {
377
- "__schema": "KeywordTypeSchema",
379
+ "raw": "/**\n * checks if a file matches the composition file pattern.\n */",
380
+ "comment": "checks if a file matches the composition file pattern."
381
+ },
382
+ "signature": "(method) CompositionsMain.isCompositionFile(filePath: string): boolean",
383
+ "name": "isCompositionFile",
384
+ "params": [
385
+ {
386
+ "__schema": "ParameterSchema",
378
387
  "location": {
379
388
  "filePath": "compositions.main.runtime.ts",
380
389
  "line": 88,
381
- "character": 31
390
+ "character": 21
382
391
  },
383
- "name": "string"
392
+ "name": "filePath",
393
+ "type": {
394
+ "__schema": "KeywordTypeSchema",
395
+ "location": {
396
+ "filePath": "compositions.main.runtime.ts",
397
+ "line": 88,
398
+ "character": 31
399
+ },
400
+ "name": "string"
401
+ },
402
+ "isOptional": false,
403
+ "isSpread": false
404
+ }
405
+ ],
406
+ "returnType": {
407
+ "__schema": "KeywordTypeSchema",
408
+ "location": {
409
+ "filePath": "compositions.main.runtime.ts",
410
+ "line": 88,
411
+ "character": 40
384
412
  },
385
- "isOptional": false,
386
- "isSpread": false
387
- }
388
- ],
389
- "returnType": {
390
- "__schema": "KeywordTypeSchema",
391
- "location": {
392
- "filePath": "compositions.main.runtime.ts",
393
- "line": 88,
394
- "character": 40
413
+ "name": "boolean"
395
414
  },
396
- "name": "boolean"
397
- },
398
- "modifiers": []
399
- },
400
- {
401
- "__schema": "FunctionLikeSchema",
402
- "location": {
403
- "filePath": "compositions.main.runtime.ts",
404
- "line": 96,
405
- "character": 3
415
+ "modifiers": []
406
416
  },
407
- "doc": {
408
- "__schema": "DocSchema",
417
+ {
418
+ "__schema": "FunctionLikeSchema",
409
419
  "location": {
410
420
  "filePath": "compositions.main.runtime.ts",
411
- "line": 93,
421
+ "line": 96,
412
422
  "character": 3
413
423
  },
414
- "raw": "/**\n * get component compositions.\n */",
415
- "comment": "get component compositions."
416
- },
417
- "signature": "(method) CompositionsMain.getCompositions(component: IComponent): Composition[]",
418
- "name": "getCompositions",
419
- "params": [
420
- {
421
- "__schema": "ParameterSchema",
424
+ "doc": {
425
+ "__schema": "DocSchema",
422
426
  "location": {
423
427
  "filePath": "compositions.main.runtime.ts",
424
- "line": 96,
425
- "character": 19
428
+ "line": 93,
429
+ "character": 3
426
430
  },
427
- "name": "component",
428
- "type": {
429
- "__schema": "TypeRefSchema",
431
+ "raw": "/**\n * get component compositions.\n */",
432
+ "comment": "get component compositions."
433
+ },
434
+ "signature": "(method) CompositionsMain.getCompositions(component: IComponent): Composition[]",
435
+ "name": "getCompositions",
436
+ "params": [
437
+ {
438
+ "__schema": "ParameterSchema",
430
439
  "location": {
431
440
  "filePath": "compositions.main.runtime.ts",
432
441
  "line": 96,
433
- "character": 30
442
+ "character": 19
434
443
  },
435
- "name": "IComponent",
436
- "componentId": {
437
- "scope": "teambit.component",
438
- "name": "component"
439
- }
440
- },
441
- "isOptional": false,
442
- "isSpread": false
443
- }
444
- ],
445
- "returnType": {
446
- "__schema": "TypeArraySchema",
447
- "location": {
448
- "filePath": "compositions.main.runtime.ts",
449
- "line": 96,
450
- "character": 43
451
- },
452
- "type": {
453
- "__schema": "TypeRefSchema",
444
+ "name": "component",
445
+ "type": {
446
+ "__schema": "TypeRefSchema",
447
+ "location": {
448
+ "filePath": "compositions.main.runtime.ts",
449
+ "line": 96,
450
+ "character": 30
451
+ },
452
+ "name": "IComponent",
453
+ "componentId": {
454
+ "scope": "teambit.component",
455
+ "name": "component"
456
+ }
457
+ },
458
+ "isOptional": false,
459
+ "isSpread": false
460
+ }
461
+ ],
462
+ "returnType": {
463
+ "__schema": "TypeArraySchema",
454
464
  "location": {
455
465
  "filePath": "compositions.main.runtime.ts",
456
466
  "line": 96,
457
467
  "character": 43
458
468
  },
459
- "name": "Composition"
460
- }
461
- },
462
- "modifiers": []
463
- },
464
- {
465
- "__schema": "FunctionLikeSchema",
466
- "location": {
467
- "filePath": "compositions.main.runtime.ts",
468
- "line": 108,
469
- "character": 3
469
+ "type": {
470
+ "__schema": "TypeRefSchema",
471
+ "location": {
472
+ "filePath": "compositions.main.runtime.ts",
473
+ "line": 96,
474
+ "character": 43
475
+ },
476
+ "name": "Composition"
477
+ }
478
+ },
479
+ "modifiers": []
470
480
  },
471
- "doc": {
472
- "__schema": "DocSchema",
481
+ {
482
+ "__schema": "FunctionLikeSchema",
473
483
  "location": {
474
484
  "filePath": "compositions.main.runtime.ts",
475
- "line": 105,
485
+ "line": 108,
476
486
  "character": 3
477
487
  },
478
- "raw": "/**\n * read composition from the component source code.\n */",
479
- "comment": "read composition from the component source code."
480
- },
481
- "signature": "(method) CompositionsMain.readCompositions(component: Component): Composition[]",
482
- "name": "readCompositions",
483
- "params": [
484
- {
485
- "__schema": "ParameterSchema",
488
+ "doc": {
489
+ "__schema": "DocSchema",
486
490
  "location": {
487
491
  "filePath": "compositions.main.runtime.ts",
488
- "line": 108,
489
- "character": 20
492
+ "line": 105,
493
+ "character": 3
490
494
  },
491
- "name": "component",
492
- "type": {
493
- "__schema": "TypeRefSchema",
495
+ "raw": "/**\n * read composition from the component source code.\n */",
496
+ "comment": "read composition from the component source code."
497
+ },
498
+ "signature": "(method) CompositionsMain.readCompositions(component: Component): Composition[]",
499
+ "name": "readCompositions",
500
+ "params": [
501
+ {
502
+ "__schema": "ParameterSchema",
494
503
  "location": {
495
504
  "filePath": "compositions.main.runtime.ts",
496
505
  "line": 108,
497
- "character": 31
506
+ "character": 20
498
507
  },
499
- "name": "Component",
500
- "componentId": {
501
- "scope": "teambit.component",
502
- "name": "component"
503
- }
504
- },
505
- "isOptional": false,
506
- "isSpread": false
507
- }
508
- ],
509
- "returnType": {
510
- "__schema": "TypeArraySchema",
511
- "location": {
512
- "filePath": "compositions.main.runtime.ts",
513
- "line": 108,
514
- "character": 43
515
- },
516
- "type": {
517
- "__schema": "TypeRefSchema",
508
+ "name": "component",
509
+ "type": {
510
+ "__schema": "TypeRefSchema",
511
+ "location": {
512
+ "filePath": "compositions.main.runtime.ts",
513
+ "line": 108,
514
+ "character": 31
515
+ },
516
+ "name": "Component",
517
+ "componentId": {
518
+ "scope": "teambit.component",
519
+ "name": "component"
520
+ }
521
+ },
522
+ "isOptional": false,
523
+ "isSpread": false
524
+ }
525
+ ],
526
+ "returnType": {
527
+ "__schema": "TypeArraySchema",
518
528
  "location": {
519
529
  "filePath": "compositions.main.runtime.ts",
520
530
  "line": 108,
521
531
  "character": 43
522
532
  },
523
- "name": "Composition"
524
- }
525
- },
526
- "modifiers": []
527
- },
528
- {
529
- "__schema": "FunctionLikeSchema",
530
- "location": {
531
- "filePath": "compositions.main.runtime.ts",
532
- "line": 116,
533
- "character": 3
534
- },
535
- "signature": "(method) CompositionsMain.getCompositionFilePattern(): string[]",
536
- "name": "getCompositionFilePattern",
537
- "params": [],
538
- "returnType": {
539
- "__schema": "InferenceTypeSchema",
540
- "location": {
541
- "filePath": "compositions.main.runtime.ts",
542
- "line": 116,
543
- "character": 3
544
- },
545
- "type": "string[]"
546
- },
547
- "modifiers": []
548
- },
549
- {
550
- "__schema": "FunctionLikeSchema",
551
- "location": {
552
- "filePath": "compositions.main.runtime.ts",
553
- "line": 120,
554
- "character": 3
555
- },
556
- "signature": "(method) CompositionsMain.getComponentDevPatterns(component: Component): {\n name: string;\n pattern: string[];\n}",
557
- "name": "getComponentDevPatterns",
558
- "params": [
559
- {
560
- "__schema": "ParameterSchema",
561
- "location": {
562
- "filePath": "compositions.main.runtime.ts",
563
- "line": 120,
564
- "character": 27
565
- },
566
- "name": "component",
567
533
  "type": {
568
534
  "__schema": "TypeRefSchema",
569
535
  "location": {
570
536
  "filePath": "compositions.main.runtime.ts",
571
- "line": 120,
572
- "character": 38
537
+ "line": 108,
538
+ "character": 43
573
539
  },
574
- "name": "Component",
575
- "componentId": {
576
- "scope": "teambit.component",
577
- "name": "component"
578
- }
579
- },
580
- "isOptional": false,
581
- "isSpread": false
582
- }
583
- ],
584
- "returnType": {
585
- "__schema": "InferenceTypeSchema",
586
- "location": {
587
- "filePath": "compositions.main.runtime.ts",
588
- "line": 120,
589
- "character": 3
540
+ "name": "Composition"
541
+ }
590
542
  },
591
- "type": "{\n name: string;\n pattern: string[];\n}"
592
- },
593
- "modifiers": []
594
- },
595
- {
596
- "__schema": "FunctionLikeSchema",
597
- "location": {
598
- "filePath": "compositions.main.runtime.ts",
599
- "line": 129,
600
- "character": 3
543
+ "modifiers": []
601
544
  },
602
- "signature": "(method) CompositionsMain.getDevPatternToRegister(): (component: Component) => {\n name: string;\n pattern: string[];\n}",
603
- "name": "getDevPatternToRegister",
604
- "params": [],
605
- "returnType": {
606
- "__schema": "InferenceTypeSchema",
545
+ {
546
+ "__schema": "FunctionLikeSchema",
607
547
  "location": {
608
548
  "filePath": "compositions.main.runtime.ts",
609
- "line": 129,
549
+ "line": 116,
610
550
  "character": 3
611
551
  },
612
- "type": "(component: Component) => {\n name: string;\n pattern: string[];\n}"
613
- },
614
- "modifiers": []
615
- },
616
- {
617
- "__schema": "FunctionLikeSchema",
618
- "location": {
619
- "filePath": "compositions.main.runtime.ts",
620
- "line": 133,
621
- "character": 3
622
- },
623
- "signature": "(method) CompositionsMain.onComponentLoad(component: Component, loadOpts?: ComponentLoadOptions): Promise<AspectData | undefined>",
624
- "name": "onComponentLoad",
625
- "params": [
626
- {
627
- "__schema": "ParameterSchema",
552
+ "signature": "(method) CompositionsMain.getCompositionFilePattern(): string[]",
553
+ "name": "getCompositionFilePattern",
554
+ "params": [],
555
+ "returnType": {
556
+ "__schema": "InferenceTypeSchema",
628
557
  "location": {
629
558
  "filePath": "compositions.main.runtime.ts",
630
- "line": 133,
631
- "character": 25
632
- },
633
- "name": "component",
634
- "type": {
635
- "__schema": "TypeRefSchema",
636
- "location": {
637
- "filePath": "compositions.main.runtime.ts",
638
- "line": 133,
639
- "character": 36
640
- },
641
- "name": "Component",
642
- "componentId": {
643
- "scope": "teambit.component",
644
- "name": "component"
645
- }
559
+ "line": 116,
560
+ "character": 3
646
561
  },
647
- "isOptional": false,
648
- "isSpread": false
562
+ "type": "string[]"
649
563
  },
650
- {
651
- "__schema": "ParameterSchema",
652
- "location": {
653
- "filePath": "compositions.main.runtime.ts",
654
- "line": 133,
655
- "character": 47
656
- },
657
- "name": "loadOpts",
658
- "type": {
659
- "__schema": "TypeRefSchema",
660
- "location": {
661
- "filePath": "compositions.main.runtime.ts",
662
- "line": 133,
663
- "character": 58
664
- },
665
- "name": "ComponentLoadOptions",
666
- "packageName": "@teambit/legacy/dist/consumer/component/component-loader"
667
- },
668
- "isOptional": true,
669
- "isSpread": false
670
- }
671
- ],
672
- "returnType": {
673
- "__schema": "TypeRefSchema",
564
+ "modifiers": []
565
+ },
566
+ {
567
+ "__schema": "FunctionLikeSchema",
674
568
  "location": {
675
569
  "filePath": "compositions.main.runtime.ts",
676
- "line": 133,
677
- "character": 81
570
+ "line": 120,
571
+ "character": 3
678
572
  },
679
- "name": "Promise",
680
- "typeArgs": [
573
+ "signature": "(method) CompositionsMain.getComponentDevPatterns(component: Component): {\n name: string;\n pattern: string[];\n}",
574
+ "name": "getComponentDevPatterns",
575
+ "params": [
681
576
  {
682
- "__schema": "TypeUnionSchema",
577
+ "__schema": "ParameterSchema",
683
578
  "location": {
684
579
  "filePath": "compositions.main.runtime.ts",
685
- "line": 133,
686
- "character": 89
580
+ "line": 120,
581
+ "character": 27
687
582
  },
688
- "types": [
689
- {
690
- "__schema": "TypeRefSchema",
691
- "location": {
692
- "filePath": "compositions.main.runtime.ts",
693
- "line": 133,
694
- "character": 89
695
- },
696
- "name": "AspectData",
697
- "componentId": {
698
- "scope": "teambit.component",
699
- "name": "component"
700
- }
583
+ "name": "component",
584
+ "type": {
585
+ "__schema": "TypeRefSchema",
586
+ "location": {
587
+ "filePath": "compositions.main.runtime.ts",
588
+ "line": 120,
589
+ "character": 38
701
590
  },
702
- {
703
- "__schema": "KeywordTypeSchema",
704
- "location": {
705
- "filePath": "compositions.main.runtime.ts",
706
- "line": 133,
707
- "character": 102
708
- },
709
- "name": "undefined"
591
+ "name": "Component",
592
+ "componentId": {
593
+ "scope": "teambit.component",
594
+ "name": "component"
710
595
  }
711
- ]
596
+ },
597
+ "isOptional": false,
598
+ "isSpread": false
712
599
  }
713
- ]
714
- },
715
- "modifiers": [
716
- "async"
717
- ]
718
- },
719
- {
720
- "__schema": "VariableLikeSchema",
721
- "location": {
722
- "filePath": "compositions.main.runtime.ts",
723
- "line": 159,
724
- "character": 3
725
- },
726
- "signature": "(property) CompositionsMain.defaultConfig: CompositionsConfig",
727
- "name": "defaultConfig",
728
- "type": {
729
- "__schema": "TypeRefSchema",
730
- "location": {
731
- "filePath": "compositions.main.runtime.ts",
732
- "line": 159,
733
- "character": 3
600
+ ],
601
+ "returnType": {
602
+ "__schema": "InferenceTypeSchema",
603
+ "location": {
604
+ "filePath": "compositions.main.runtime.ts",
605
+ "line": 120,
606
+ "character": 3
607
+ },
608
+ "type": "{\n name: string;\n pattern: string[];\n}"
734
609
  },
735
- "name": "CompositionsConfig",
736
- "internalFilePath": "compositions.main.runtime.ts"
737
- },
738
- "isOptional": true,
739
- "defaultValue": "{\n compositionFilePattern: ['**/*.composition?(s).*'],\n compositionPreviewFilePattern: ['**/*.{t,j}s?(x)'],\n }"
740
- },
741
- {
742
- "__schema": "VariableLikeSchema",
743
- "location": {
744
- "filePath": "compositions.main.runtime.ts",
745
- "line": 164,
746
- "character": 3
610
+ "modifiers": []
747
611
  },
748
- "signature": "(property) CompositionsMain.runtime: RuntimeDefinition",
749
- "name": "runtime",
750
- "type": {
751
- "__schema": "InferenceTypeSchema",
612
+ {
613
+ "__schema": "FunctionLikeSchema",
752
614
  "location": {
753
615
  "filePath": "compositions.main.runtime.ts",
754
- "line": 164,
616
+ "line": 129,
755
617
  "character": 3
756
618
  },
757
- "type": "RuntimeDefinition"
758
- },
759
- "isOptional": true,
760
- "defaultValue": "MainRuntime"
761
- },
762
- {
763
- "__schema": "VariableLikeSchema",
764
- "location": {
765
- "filePath": "compositions.main.runtime.ts",
766
- "line": 165,
767
- "character": 3
619
+ "signature": "(method) CompositionsMain.getDevPatternToRegister(): (component: Component) => {\n name: string;\n pattern: string[];\n}",
620
+ "name": "getDevPatternToRegister",
621
+ "params": [],
622
+ "returnType": {
623
+ "__schema": "InferenceTypeSchema",
624
+ "location": {
625
+ "filePath": "compositions.main.runtime.ts",
626
+ "line": 129,
627
+ "character": 3
628
+ },
629
+ "type": "(component: Component) => {\n name: string;\n pattern: string[];\n}"
630
+ },
631
+ "modifiers": []
768
632
  },
769
- "signature": "(property) CompositionsMain.dependencies: Aspect[]",
770
- "name": "dependencies",
771
- "type": {
772
- "__schema": "InferenceTypeSchema",
633
+ {
634
+ "__schema": "FunctionLikeSchema",
773
635
  "location": {
774
636
  "filePath": "compositions.main.runtime.ts",
775
- "line": 165,
637
+ "line": 133,
776
638
  "character": 3
777
639
  },
778
- "type": "Aspect[]"
779
- },
780
- "isOptional": true,
781
- "defaultValue": "[\n PreviewAspect,\n GraphqlAspect,\n WorkspaceAspect,\n SchemaAspect,\n DevFilesAspect,\n EnvsAspect,\n ScopeAspect,\n ]"
782
- },
783
- {
784
- "__schema": "FunctionLikeSchema",
785
- "location": {
786
- "filePath": "compositions.main.runtime.ts",
787
- "line": 175,
788
- "character": 3
789
- },
790
- "signature": "(method) CompositionsMain.provider([preview, graphql, workspace, schema, devFiles, envs, scope]: [\n PreviewMain,\n GraphqlMain,\n Workspace,\n SchemaMain,\n DevFilesMain,\n EnvsMain,\n ScopeMain\n], config: CompositionsConfig): Promise<CompositionsMain>",
791
- "name": "provider",
792
- "params": [
793
- {
794
- "__schema": "ParameterSchema",
795
- "location": {
796
- "filePath": "compositions.main.runtime.ts",
797
- "line": 176,
798
- "character": 5
799
- },
800
- "name": "[ preview, graphql, workspace, schema, devFiles, envs, scope ]",
801
- "type": {
802
- "__schema": "TupleTypeSchema",
640
+ "signature": "(method) CompositionsMain.onComponentLoad(component: Component, loadOpts?: ComponentLoadOptions): Promise<AspectData | undefined>",
641
+ "name": "onComponentLoad",
642
+ "params": [
643
+ {
644
+ "__schema": "ParameterSchema",
803
645
  "location": {
804
646
  "filePath": "compositions.main.runtime.ts",
805
- "line": 176,
806
- "character": 67
647
+ "line": 133,
648
+ "character": 25
807
649
  },
808
- "elements": [
809
- {
810
- "__schema": "TypeRefSchema",
811
- "location": {
812
- "filePath": "compositions.main.runtime.ts",
813
- "line": 177,
814
- "character": 7
815
- },
816
- "name": "PreviewMain",
817
- "componentId": {
818
- "scope": "teambit.preview",
819
- "name": "preview"
820
- }
650
+ "name": "component",
651
+ "type": {
652
+ "__schema": "TypeRefSchema",
653
+ "location": {
654
+ "filePath": "compositions.main.runtime.ts",
655
+ "line": 133,
656
+ "character": 36
821
657
  },
822
- {
823
- "__schema": "TypeRefSchema",
824
- "location": {
825
- "filePath": "compositions.main.runtime.ts",
826
- "line": 178,
827
- "character": 7
828
- },
829
- "name": "GraphqlMain",
830
- "componentId": {
831
- "scope": "teambit.harmony",
832
- "name": "graphql"
833
- }
658
+ "name": "Component",
659
+ "componentId": {
660
+ "scope": "teambit.component",
661
+ "name": "component"
662
+ }
663
+ },
664
+ "isOptional": false,
665
+ "isSpread": false
666
+ },
667
+ {
668
+ "__schema": "ParameterSchema",
669
+ "location": {
670
+ "filePath": "compositions.main.runtime.ts",
671
+ "line": 133,
672
+ "character": 47
673
+ },
674
+ "name": "loadOpts",
675
+ "type": {
676
+ "__schema": "TypeRefSchema",
677
+ "location": {
678
+ "filePath": "compositions.main.runtime.ts",
679
+ "line": 133,
680
+ "character": 58
834
681
  },
835
- {
836
- "__schema": "TypeRefSchema",
837
- "location": {
838
- "filePath": "compositions.main.runtime.ts",
839
- "line": 179,
840
- "character": 7
841
- },
842
- "name": "Workspace",
843
- "componentId": {
844
- "scope": "teambit.workspace",
845
- "name": "workspace"
846
- }
682
+ "name": "ComponentLoadOptions",
683
+ "packageName": "@teambit/legacy/dist/consumer/component/component-loader"
684
+ },
685
+ "isOptional": true,
686
+ "isSpread": false
687
+ }
688
+ ],
689
+ "returnType": {
690
+ "__schema": "TypeRefSchema",
691
+ "location": {
692
+ "filePath": "compositions.main.runtime.ts",
693
+ "line": 133,
694
+ "character": 81
695
+ },
696
+ "name": "Promise",
697
+ "typeArgs": [
698
+ {
699
+ "__schema": "TypeUnionSchema",
700
+ "location": {
701
+ "filePath": "compositions.main.runtime.ts",
702
+ "line": 133,
703
+ "character": 89
847
704
  },
848
- {
849
- "__schema": "TypeRefSchema",
850
- "location": {
851
- "filePath": "compositions.main.runtime.ts",
852
- "line": 180,
853
- "character": 7
705
+ "types": [
706
+ {
707
+ "__schema": "TypeRefSchema",
708
+ "location": {
709
+ "filePath": "compositions.main.runtime.ts",
710
+ "line": 133,
711
+ "character": 89
712
+ },
713
+ "name": "AspectData",
714
+ "componentId": {
715
+ "scope": "teambit.component",
716
+ "name": "component"
717
+ }
854
718
  },
855
- "name": "SchemaMain",
856
- "componentId": {
857
- "scope": "teambit.semantics",
858
- "name": "schema"
719
+ {
720
+ "__schema": "KeywordTypeSchema",
721
+ "location": {
722
+ "filePath": "compositions.main.runtime.ts",
723
+ "line": 133,
724
+ "character": 102
725
+ },
726
+ "name": "undefined"
859
727
  }
728
+ ]
729
+ }
730
+ ]
731
+ },
732
+ "modifiers": [
733
+ "async"
734
+ ]
735
+ },
736
+ {
737
+ "__schema": "VariableLikeSchema",
738
+ "location": {
739
+ "filePath": "compositions.main.runtime.ts",
740
+ "line": 159,
741
+ "character": 3
742
+ },
743
+ "signature": "(property) CompositionsMain.defaultConfig: CompositionsConfig",
744
+ "name": "defaultConfig",
745
+ "type": {
746
+ "__schema": "TypeRefSchema",
747
+ "location": {
748
+ "filePath": "compositions.main.runtime.ts",
749
+ "line": 159,
750
+ "character": 3
751
+ },
752
+ "name": "CompositionsConfig",
753
+ "internalFilePath": "compositions.main.runtime.ts"
754
+ },
755
+ "isOptional": true,
756
+ "defaultValue": "{\n compositionFilePattern: ['**/*.composition?(s).*'],\n compositionPreviewFilePattern: ['**/*.{t,j}s?(x)'],\n }"
757
+ },
758
+ {
759
+ "__schema": "VariableLikeSchema",
760
+ "location": {
761
+ "filePath": "compositions.main.runtime.ts",
762
+ "line": 164,
763
+ "character": 3
764
+ },
765
+ "signature": "(property) CompositionsMain.runtime: RuntimeDefinition",
766
+ "name": "runtime",
767
+ "type": {
768
+ "__schema": "InferenceTypeSchema",
769
+ "location": {
770
+ "filePath": "compositions.main.runtime.ts",
771
+ "line": 164,
772
+ "character": 3
773
+ },
774
+ "type": "RuntimeDefinition"
775
+ },
776
+ "isOptional": true,
777
+ "defaultValue": "MainRuntime"
778
+ },
779
+ {
780
+ "__schema": "VariableLikeSchema",
781
+ "location": {
782
+ "filePath": "compositions.main.runtime.ts",
783
+ "line": 165,
784
+ "character": 3
785
+ },
786
+ "signature": "(property) CompositionsMain.dependencies: Aspect[]",
787
+ "name": "dependencies",
788
+ "type": {
789
+ "__schema": "InferenceTypeSchema",
790
+ "location": {
791
+ "filePath": "compositions.main.runtime.ts",
792
+ "line": 165,
793
+ "character": 3
794
+ },
795
+ "type": "Aspect[]"
796
+ },
797
+ "isOptional": true,
798
+ "defaultValue": "[\n PreviewAspect,\n GraphqlAspect,\n WorkspaceAspect,\n SchemaAspect,\n DevFilesAspect,\n EnvsAspect,\n ScopeAspect,\n ]"
799
+ },
800
+ {
801
+ "__schema": "FunctionLikeSchema",
802
+ "location": {
803
+ "filePath": "compositions.main.runtime.ts",
804
+ "line": 175,
805
+ "character": 3
806
+ },
807
+ "signature": "(method) CompositionsMain.provider([preview, graphql, workspace, schema, devFiles, envs, scope]: [\n PreviewMain,\n GraphqlMain,\n Workspace,\n SchemaMain,\n DevFilesMain,\n EnvsMain,\n ScopeMain\n], config: CompositionsConfig): Promise<CompositionsMain>",
808
+ "name": "provider",
809
+ "params": [
810
+ {
811
+ "__schema": "ParameterSchema",
812
+ "location": {
813
+ "filePath": "compositions.main.runtime.ts",
814
+ "line": 176,
815
+ "character": 5
816
+ },
817
+ "name": "[ preview, graphql, workspace, schema, devFiles, envs, scope ]",
818
+ "type": {
819
+ "__schema": "TupleTypeSchema",
820
+ "location": {
821
+ "filePath": "compositions.main.runtime.ts",
822
+ "line": 176,
823
+ "character": 67
860
824
  },
861
- {
862
- "__schema": "TypeRefSchema",
863
- "location": {
864
- "filePath": "compositions.main.runtime.ts",
865
- "line": 181,
866
- "character": 7
825
+ "elements": [
826
+ {
827
+ "__schema": "TypeRefSchema",
828
+ "location": {
829
+ "filePath": "compositions.main.runtime.ts",
830
+ "line": 177,
831
+ "character": 7
832
+ },
833
+ "name": "PreviewMain",
834
+ "componentId": {
835
+ "scope": "teambit.preview",
836
+ "name": "preview"
837
+ }
867
838
  },
868
- "name": "DevFilesMain",
869
- "componentId": {
870
- "scope": "teambit.component",
871
- "name": "dev-files"
872
- }
873
- },
874
- {
875
- "__schema": "TypeRefSchema",
876
- "location": {
877
- "filePath": "compositions.main.runtime.ts",
878
- "line": 182,
879
- "character": 7
839
+ {
840
+ "__schema": "TypeRefSchema",
841
+ "location": {
842
+ "filePath": "compositions.main.runtime.ts",
843
+ "line": 178,
844
+ "character": 7
845
+ },
846
+ "name": "GraphqlMain",
847
+ "componentId": {
848
+ "scope": "teambit.harmony",
849
+ "name": "graphql"
850
+ }
880
851
  },
881
- "name": "EnvsMain",
882
- "componentId": {
883
- "scope": "teambit.envs",
884
- "name": "envs"
885
- }
886
- },
887
- {
888
- "__schema": "TypeRefSchema",
889
- "location": {
890
- "filePath": "compositions.main.runtime.ts",
891
- "line": 183,
892
- "character": 7
852
+ {
853
+ "__schema": "TypeRefSchema",
854
+ "location": {
855
+ "filePath": "compositions.main.runtime.ts",
856
+ "line": 179,
857
+ "character": 7
858
+ },
859
+ "name": "Workspace",
860
+ "componentId": {
861
+ "scope": "teambit.workspace",
862
+ "name": "workspace"
863
+ }
893
864
  },
894
- "name": "ScopeMain",
895
- "componentId": {
896
- "scope": "teambit.scope",
897
- "name": "scope"
865
+ {
866
+ "__schema": "TypeRefSchema",
867
+ "location": {
868
+ "filePath": "compositions.main.runtime.ts",
869
+ "line": 180,
870
+ "character": 7
871
+ },
872
+ "name": "SchemaMain",
873
+ "componentId": {
874
+ "scope": "teambit.semantics",
875
+ "name": "schema"
876
+ }
877
+ },
878
+ {
879
+ "__schema": "TypeRefSchema",
880
+ "location": {
881
+ "filePath": "compositions.main.runtime.ts",
882
+ "line": 181,
883
+ "character": 7
884
+ },
885
+ "name": "DevFilesMain",
886
+ "componentId": {
887
+ "scope": "teambit.component",
888
+ "name": "dev-files"
889
+ }
890
+ },
891
+ {
892
+ "__schema": "TypeRefSchema",
893
+ "location": {
894
+ "filePath": "compositions.main.runtime.ts",
895
+ "line": 182,
896
+ "character": 7
897
+ },
898
+ "name": "EnvsMain",
899
+ "componentId": {
900
+ "scope": "teambit.envs",
901
+ "name": "envs"
902
+ }
903
+ },
904
+ {
905
+ "__schema": "TypeRefSchema",
906
+ "location": {
907
+ "filePath": "compositions.main.runtime.ts",
908
+ "line": 183,
909
+ "character": 7
910
+ },
911
+ "name": "ScopeMain",
912
+ "componentId": {
913
+ "scope": "teambit.scope",
914
+ "name": "scope"
915
+ }
898
916
  }
899
- }
900
- ]
901
- },
902
- "isOptional": false,
903
- "isSpread": false
904
- },
905
- {
906
- "__schema": "ParameterSchema",
907
- "location": {
908
- "filePath": "compositions.main.runtime.ts",
909
- "line": 185,
910
- "character": 5
917
+ ]
918
+ },
919
+ "isOptional": false,
920
+ "isSpread": false
911
921
  },
912
- "name": "config",
913
- "type": {
914
- "__schema": "TypeRefSchema",
922
+ {
923
+ "__schema": "ParameterSchema",
915
924
  "location": {
916
925
  "filePath": "compositions.main.runtime.ts",
917
926
  "line": 185,
918
- "character": 13
927
+ "character": 5
928
+ },
929
+ "name": "config",
930
+ "type": {
931
+ "__schema": "TypeRefSchema",
932
+ "location": {
933
+ "filePath": "compositions.main.runtime.ts",
934
+ "line": 185,
935
+ "character": 13
936
+ },
937
+ "name": "CompositionsConfig",
938
+ "internalFilePath": "compositions.main.runtime.ts"
919
939
  },
920
- "name": "CompositionsConfig",
921
- "internalFilePath": "compositions.main.runtime.ts"
940
+ "isOptional": false,
941
+ "isSpread": false
942
+ }
943
+ ],
944
+ "returnType": {
945
+ "__schema": "InferenceTypeSchema",
946
+ "location": {
947
+ "filePath": "compositions.main.runtime.ts",
948
+ "line": 175,
949
+ "character": 3
922
950
  },
923
- "isOptional": false,
924
- "isSpread": false
925
- }
926
- ],
927
- "returnType": {
928
- "__schema": "InferenceTypeSchema",
929
- "location": {
930
- "filePath": "compositions.main.runtime.ts",
931
- "line": 175,
932
- "character": 3
951
+ "type": "Promise<CompositionsMain>"
933
952
  },
934
- "type": "Promise<CompositionsMain>"
935
- },
936
- "modifiers": [
937
- "static",
938
- "async"
939
- ]
940
- }
941
- ],
942
- "extendsNodes": [],
943
- "implementNodes": []
953
+ "modifiers": [
954
+ "static",
955
+ "async"
956
+ ]
957
+ }
958
+ ],
959
+ "extendsNodes": [],
960
+ "implementNodes": []
961
+ }
944
962
  },
945
963
  {
946
- "__schema": "ClassSchema",
964
+ "__schema": "ExportSchema",
947
965
  "location": {
948
- "filePath": "compositions.ui.runtime.tsx",
949
- "line": 16,
950
- "character": 1
966
+ "filePath": "index.ts",
967
+ "line": 5,
968
+ "character": 15
951
969
  },
952
- "signature": "class CompositionsUI",
953
970
  "name": "CompositionsUI",
954
- "members": [
955
- {
956
- "__schema": "ConstructorSchema",
957
- "location": {
958
- "filePath": "compositions.ui.runtime.tsx",
959
- "line": 17,
960
- "character": 3
961
- },
962
- "signature": "constructor CompositionsUI(menuBarWidgetSlot: CompositionsMenuSlot, emptyStateSlot: EmptyStateSlot): CompositionsUI",
963
- "name": "constructor",
964
- "params": [
965
- {
966
- "__schema": "ParameterSchema",
967
- "location": {
968
- "filePath": "compositions.ui.runtime.tsx",
969
- "line": 17,
970
- "character": 15
971
- },
972
- "name": "menuBarWidgetSlot",
973
- "type": {
974
- "__schema": "TypeRefSchema",
971
+ "exportNode": {
972
+ "__schema": "ClassSchema",
973
+ "location": {
974
+ "filePath": "compositions.ui.runtime.tsx",
975
+ "line": 16,
976
+ "character": 1
977
+ },
978
+ "signature": "class CompositionsUI",
979
+ "name": "CompositionsUI",
980
+ "members": [
981
+ {
982
+ "__schema": "ConstructorSchema",
983
+ "location": {
984
+ "filePath": "compositions.ui.runtime.tsx",
985
+ "line": 17,
986
+ "character": 3
987
+ },
988
+ "signature": "constructor CompositionsUI(menuBarWidgetSlot: CompositionsMenuSlot, emptyStateSlot: EmptyStateSlot): CompositionsUI",
989
+ "name": "constructor",
990
+ "params": [
991
+ {
992
+ "__schema": "ParameterSchema",
975
993
  "location": {
976
994
  "filePath": "compositions.ui.runtime.tsx",
977
995
  "line": 17,
978
- "character": 42
996
+ "character": 15
979
997
  },
980
- "name": "CompositionsMenuSlot"
981
- },
982
- "isOptional": false,
983
- "isSpread": false
984
- },
985
- {
986
- "__schema": "ParameterSchema",
987
- "location": {
988
- "filePath": "compositions.ui.runtime.tsx",
989
- "line": 17,
990
- "character": 64
998
+ "name": "menuBarWidgetSlot",
999
+ "type": {
1000
+ "__schema": "TypeRefSchema",
1001
+ "location": {
1002
+ "filePath": "compositions.ui.runtime.tsx",
1003
+ "line": 17,
1004
+ "character": 42
1005
+ },
1006
+ "name": "CompositionsMenuSlot"
1007
+ },
1008
+ "isOptional": false,
1009
+ "isSpread": false
991
1010
  },
992
- "name": "emptyStateSlot",
993
- "type": {
994
- "__schema": "TypeRefSchema",
1011
+ {
1012
+ "__schema": "ParameterSchema",
995
1013
  "location": {
996
1014
  "filePath": "compositions.ui.runtime.tsx",
997
1015
  "line": 17,
998
- "character": 88
1016
+ "character": 64
999
1017
  },
1000
- "name": "EmptyStateSlot"
1018
+ "name": "emptyStateSlot",
1019
+ "type": {
1020
+ "__schema": "TypeRefSchema",
1021
+ "location": {
1022
+ "filePath": "compositions.ui.runtime.tsx",
1023
+ "line": 17,
1024
+ "character": 88
1025
+ },
1026
+ "name": "EmptyStateSlot"
1027
+ },
1028
+ "isOptional": false,
1029
+ "isSpread": false
1030
+ }
1031
+ ],
1032
+ "returnType": {
1033
+ "__schema": "ThisTypeSchema",
1034
+ "location": {
1035
+ "filePath": "compositions.ui.runtime.tsx",
1036
+ "line": 16,
1037
+ "character": 1
1001
1038
  },
1002
- "isOptional": false,
1003
- "isSpread": false
1004
- }
1005
- ],
1006
- "returnType": {
1007
- "__schema": "ThisTypeSchema",
1008
- "location": {
1009
- "filePath": "compositions.ui.runtime.tsx",
1010
- "line": 16,
1011
- "character": 1
1039
+ "name": "CompositionsUI"
1012
1040
  },
1013
- "name": "CompositionsUI"
1014
- },
1015
- "modifiers": []
1016
- },
1017
- {
1018
- "__schema": "FunctionLikeSchema",
1019
- "location": {
1020
- "filePath": "compositions.ui.runtime.tsx",
1021
- "line": 21,
1022
- "character": 3
1041
+ "modifiers": []
1023
1042
  },
1024
- "doc": {
1025
- "__schema": "DocSchema",
1043
+ {
1044
+ "__schema": "FunctionLikeSchema",
1026
1045
  "location": {
1027
1046
  "filePath": "compositions.ui.runtime.tsx",
1028
- "line": 18,
1047
+ "line": 21,
1029
1048
  "character": 3
1030
1049
  },
1031
- "raw": "/**\n * register a new tester empty state. this allows to register a different empty state from each environment for example.\n */",
1032
- "comment": "register a new tester empty state. this allows to register a different empty state from each environment for example."
1033
- },
1034
- "signature": "(method) CompositionsUI.registerEmptyState(emptyStateComponent: ComponentType): this",
1035
- "name": "registerEmptyState",
1036
- "params": [
1037
- {
1038
- "__schema": "ParameterSchema",
1050
+ "doc": {
1051
+ "__schema": "DocSchema",
1039
1052
  "location": {
1040
1053
  "filePath": "compositions.ui.runtime.tsx",
1041
- "line": 21,
1042
- "character": 22
1054
+ "line": 18,
1055
+ "character": 3
1043
1056
  },
1044
- "name": "emptyStateComponent",
1045
- "type": {
1046
- "__schema": "TypeRefSchema",
1057
+ "raw": "/**\n * register a new tester empty state. this allows to register a different empty state from each environment for example.\n */",
1058
+ "comment": "register a new tester empty state. this allows to register a different empty state from each environment for example."
1059
+ },
1060
+ "signature": "(method) CompositionsUI.registerEmptyState(emptyStateComponent: ComponentType): this",
1061
+ "name": "registerEmptyState",
1062
+ "params": [
1063
+ {
1064
+ "__schema": "ParameterSchema",
1047
1065
  "location": {
1048
1066
  "filePath": "compositions.ui.runtime.tsx",
1049
1067
  "line": 21,
1050
- "character": 43
1068
+ "character": 22
1051
1069
  },
1052
- "name": "ComponentType",
1053
- "packageName": "react"
1070
+ "name": "emptyStateComponent",
1071
+ "type": {
1072
+ "__schema": "TypeRefSchema",
1073
+ "location": {
1074
+ "filePath": "compositions.ui.runtime.tsx",
1075
+ "line": 21,
1076
+ "character": 43
1077
+ },
1078
+ "name": "ComponentType",
1079
+ "packageName": "react"
1080
+ },
1081
+ "isOptional": false,
1082
+ "isSpread": false
1083
+ }
1084
+ ],
1085
+ "returnType": {
1086
+ "__schema": "TypeRefSchema",
1087
+ "location": {
1088
+ "filePath": "compositions.ui.runtime.tsx",
1089
+ "line": 21,
1090
+ "character": 3
1054
1091
  },
1055
- "isOptional": false,
1056
- "isSpread": false
1057
- }
1058
- ],
1059
- "returnType": {
1060
- "__schema": "TypeRefSchema",
1092
+ "name": "CompositionsUI"
1093
+ },
1094
+ "modifiers": []
1095
+ },
1096
+ {
1097
+ "__schema": "FunctionLikeSchema",
1061
1098
  "location": {
1062
1099
  "filePath": "compositions.ui.runtime.tsx",
1063
- "line": 21,
1100
+ "line": 26,
1064
1101
  "character": 3
1065
1102
  },
1066
- "name": "CompositionsUI"
1067
- },
1068
- "modifiers": []
1069
- },
1070
- {
1071
- "__schema": "FunctionLikeSchema",
1072
- "location": {
1073
- "filePath": "compositions.ui.runtime.tsx",
1074
- "line": 26,
1075
- "character": 3
1076
- },
1077
- "signature": "(method) CompositionsUI.registerMenuWidget(...widget: MenuBarWidget[]): void",
1078
- "name": "registerMenuWidget",
1079
- "params": [
1080
- {
1081
- "__schema": "ParameterSchema",
1082
- "location": {
1083
- "filePath": "compositions.ui.runtime.tsx",
1084
- "line": 26,
1085
- "character": 22
1086
- },
1087
- "name": "widget",
1088
- "type": {
1089
- "__schema": "TypeArraySchema",
1103
+ "signature": "(method) CompositionsUI.registerMenuWidget(...widget: MenuBarWidget[]): void",
1104
+ "name": "registerMenuWidget",
1105
+ "params": [
1106
+ {
1107
+ "__schema": "ParameterSchema",
1090
1108
  "location": {
1091
1109
  "filePath": "compositions.ui.runtime.tsx",
1092
1110
  "line": 26,
1093
- "character": 33
1111
+ "character": 22
1094
1112
  },
1113
+ "name": "widget",
1095
1114
  "type": {
1096
- "__schema": "TypeRefSchema",
1115
+ "__schema": "TypeArraySchema",
1097
1116
  "location": {
1098
1117
  "filePath": "compositions.ui.runtime.tsx",
1099
1118
  "line": 26,
1100
1119
  "character": 33
1101
1120
  },
1102
- "name": "MenuBarWidget",
1103
- "internalFilePath": "compositions.tsx"
1104
- }
1121
+ "type": {
1122
+ "__schema": "TypeRefSchema",
1123
+ "location": {
1124
+ "filePath": "compositions.ui.runtime.tsx",
1125
+ "line": 26,
1126
+ "character": 33
1127
+ },
1128
+ "name": "MenuBarWidget",
1129
+ "internalFilePath": "compositions.tsx"
1130
+ }
1131
+ },
1132
+ "isOptional": false,
1133
+ "isSpread": true
1134
+ }
1135
+ ],
1136
+ "returnType": {
1137
+ "__schema": "InferenceTypeSchema",
1138
+ "location": {
1139
+ "filePath": "compositions.ui.runtime.tsx",
1140
+ "line": 26,
1141
+ "character": 3
1105
1142
  },
1106
- "isOptional": false,
1107
- "isSpread": true
1108
- }
1109
- ],
1110
- "returnType": {
1111
- "__schema": "InferenceTypeSchema",
1112
- "location": {
1113
- "filePath": "compositions.ui.runtime.tsx",
1114
- "line": 26,
1115
- "character": 3
1143
+ "type": "void"
1116
1144
  },
1117
- "type": "void"
1118
- },
1119
- "modifiers": []
1120
- },
1121
- {
1122
- "__schema": "VariableLikeSchema",
1123
- "location": {
1124
- "filePath": "compositions.ui.runtime.tsx",
1125
- "line": 30,
1126
- "character": 3
1145
+ "modifiers": []
1127
1146
  },
1128
- "signature": "(property) CompositionsUI.getCompositionsCompare: () => React.JSX.Element",
1129
- "name": "getCompositionsCompare",
1130
- "type": {
1131
- "__schema": "InferenceTypeSchema",
1147
+ {
1148
+ "__schema": "VariableLikeSchema",
1132
1149
  "location": {
1133
1150
  "filePath": "compositions.ui.runtime.tsx",
1134
1151
  "line": 30,
1135
1152
  "character": 3
1136
1153
  },
1137
- "type": "() => React.JSX.Element"
1138
- },
1139
- "isOptional": true,
1140
- "defaultValue": "() => {\n return <CompositionCompare emptyState={this.emptyStateSlot} />;\n }"
1141
- },
1142
- {
1143
- "__schema": "VariableLikeSchema",
1144
- "location": {
1145
- "filePath": "compositions.ui.runtime.tsx",
1146
- "line": 34,
1147
- "character": 3
1154
+ "signature": "(property) CompositionsUI.getCompositionsCompare: () => React.JSX.Element",
1155
+ "name": "getCompositionsCompare",
1156
+ "type": {
1157
+ "__schema": "InferenceTypeSchema",
1158
+ "location": {
1159
+ "filePath": "compositions.ui.runtime.tsx",
1160
+ "line": 30,
1161
+ "character": 3
1162
+ },
1163
+ "type": "() => React.JSX.Element"
1164
+ },
1165
+ "isOptional": true,
1166
+ "defaultValue": "() => {\n return <CompositionCompare emptyState={this.emptyStateSlot} />;\n }"
1148
1167
  },
1149
- "signature": "(property) CompositionsUI.dependencies: Aspect[]",
1150
- "name": "dependencies",
1151
- "type": {
1152
- "__schema": "InferenceTypeSchema",
1168
+ {
1169
+ "__schema": "VariableLikeSchema",
1153
1170
  "location": {
1154
1171
  "filePath": "compositions.ui.runtime.tsx",
1155
1172
  "line": 34,
1156
1173
  "character": 3
1157
1174
  },
1158
- "type": "Aspect[]"
1159
- },
1160
- "isOptional": true,
1161
- "defaultValue": "[ComponentAspect, ComponentCompareAspect]"
1162
- },
1163
- {
1164
- "__schema": "VariableLikeSchema",
1165
- "location": {
1166
- "filePath": "compositions.ui.runtime.tsx",
1167
- "line": 35,
1168
- "character": 3
1175
+ "signature": "(property) CompositionsUI.dependencies: Aspect[]",
1176
+ "name": "dependencies",
1177
+ "type": {
1178
+ "__schema": "InferenceTypeSchema",
1179
+ "location": {
1180
+ "filePath": "compositions.ui.runtime.tsx",
1181
+ "line": 34,
1182
+ "character": 3
1183
+ },
1184
+ "type": "Aspect[]"
1185
+ },
1186
+ "isOptional": true,
1187
+ "defaultValue": "[ComponentAspect, ComponentCompareAspect]"
1169
1188
  },
1170
- "signature": "(property) CompositionsUI.runtime: RuntimeDefinition",
1171
- "name": "runtime",
1172
- "type": {
1173
- "__schema": "InferenceTypeSchema",
1189
+ {
1190
+ "__schema": "VariableLikeSchema",
1174
1191
  "location": {
1175
1192
  "filePath": "compositions.ui.runtime.tsx",
1176
1193
  "line": 35,
1177
1194
  "character": 3
1178
1195
  },
1179
- "type": "RuntimeDefinition"
1180
- },
1181
- "isOptional": true,
1182
- "defaultValue": "UIRuntime"
1183
- },
1184
- {
1185
- "__schema": "VariableLikeSchema",
1186
- "location": {
1187
- "filePath": "compositions.ui.runtime.tsx",
1188
- "line": 36,
1189
- "character": 3
1196
+ "signature": "(property) CompositionsUI.runtime: RuntimeDefinition",
1197
+ "name": "runtime",
1198
+ "type": {
1199
+ "__schema": "InferenceTypeSchema",
1200
+ "location": {
1201
+ "filePath": "compositions.ui.runtime.tsx",
1202
+ "line": 35,
1203
+ "character": 3
1204
+ },
1205
+ "type": "RuntimeDefinition"
1206
+ },
1207
+ "isOptional": true,
1208
+ "defaultValue": "UIRuntime"
1190
1209
  },
1191
- "signature": "(property) CompositionsUI.slots: ((registerFn: () => string) => SlotRegistry<ReactNode>)[]",
1192
- "name": "slots",
1193
- "type": {
1194
- "__schema": "InferenceTypeSchema",
1210
+ {
1211
+ "__schema": "VariableLikeSchema",
1195
1212
  "location": {
1196
1213
  "filePath": "compositions.ui.runtime.tsx",
1197
1214
  "line": 36,
1198
1215
  "character": 3
1199
1216
  },
1200
- "type": "((registerFn: () => string) => SlotRegistry<ReactNode>)[]"
1201
- },
1202
- "isOptional": true,
1203
- "defaultValue": "[Slot.withType<ReactNode>(), Slot.withType<ComponentType>()]"
1204
- },
1205
- {
1206
- "__schema": "FunctionLikeSchema",
1207
- "location": {
1208
- "filePath": "compositions.ui.runtime.tsx",
1209
- "line": 38,
1210
- "character": 3
1211
- },
1212
- "signature": "(method) CompositionsUI.provider([component, componentCompare]: [ComponentUI, ComponentCompareUI], config: {}, [compositionMenuSlot, emptyStateSlot]: [CompositionsMenuSlot, EmptyStateSlot]): Promise<CompositionsUI>",
1213
- "name": "provider",
1214
- "params": [
1215
- {
1216
- "__schema": "ParameterSchema",
1217
+ "signature": "(property) CompositionsUI.slots: ((registerFn: () => string) => SlotRegistry<ReactNode>)[]",
1218
+ "name": "slots",
1219
+ "type": {
1220
+ "__schema": "InferenceTypeSchema",
1217
1221
  "location": {
1218
1222
  "filePath": "compositions.ui.runtime.tsx",
1219
- "line": 39,
1220
- "character": 5
1223
+ "line": 36,
1224
+ "character": 3
1221
1225
  },
1222
- "name": "[ component, componentCompare ]",
1223
- "type": {
1224
- "__schema": "TupleTypeSchema",
1226
+ "type": "((registerFn: () => string) => SlotRegistry<ReactNode>)[]"
1227
+ },
1228
+ "isOptional": true,
1229
+ "defaultValue": "[Slot.withType<ReactNode>(), Slot.withType<ComponentType>()]"
1230
+ },
1231
+ {
1232
+ "__schema": "FunctionLikeSchema",
1233
+ "location": {
1234
+ "filePath": "compositions.ui.runtime.tsx",
1235
+ "line": 38,
1236
+ "character": 3
1237
+ },
1238
+ "signature": "(method) CompositionsUI.provider([component, componentCompare]: [ComponentUI, ComponentCompareUI], config: {}, [compositionMenuSlot, emptyStateSlot]: [CompositionsMenuSlot, EmptyStateSlot]): Promise<CompositionsUI>",
1239
+ "name": "provider",
1240
+ "params": [
1241
+ {
1242
+ "__schema": "ParameterSchema",
1225
1243
  "location": {
1226
1244
  "filePath": "compositions.ui.runtime.tsx",
1227
1245
  "line": 39,
1228
- "character": 36
1246
+ "character": 5
1229
1247
  },
1230
- "elements": [
1231
- {
1232
- "__schema": "TypeRefSchema",
1233
- "location": {
1234
- "filePath": "compositions.ui.runtime.tsx",
1235
- "line": 39,
1236
- "character": 37
1237
- },
1238
- "name": "ComponentUI",
1239
- "componentId": {
1240
- "scope": "teambit.component",
1241
- "name": "component"
1242
- }
1248
+ "name": "[ component, componentCompare ]",
1249
+ "type": {
1250
+ "__schema": "TupleTypeSchema",
1251
+ "location": {
1252
+ "filePath": "compositions.ui.runtime.tsx",
1253
+ "line": 39,
1254
+ "character": 36
1243
1255
  },
1244
- {
1245
- "__schema": "TypeRefSchema",
1246
- "location": {
1247
- "filePath": "compositions.ui.runtime.tsx",
1248
- "line": 39,
1249
- "character": 50
1256
+ "elements": [
1257
+ {
1258
+ "__schema": "TypeRefSchema",
1259
+ "location": {
1260
+ "filePath": "compositions.ui.runtime.tsx",
1261
+ "line": 39,
1262
+ "character": 37
1263
+ },
1264
+ "name": "ComponentUI",
1265
+ "componentId": {
1266
+ "scope": "teambit.component",
1267
+ "name": "component"
1268
+ }
1250
1269
  },
1251
- "name": "ComponentCompareUI",
1252
- "componentId": {
1253
- "scope": "teambit.component",
1254
- "name": "component-compare"
1270
+ {
1271
+ "__schema": "TypeRefSchema",
1272
+ "location": {
1273
+ "filePath": "compositions.ui.runtime.tsx",
1274
+ "line": 39,
1275
+ "character": 50
1276
+ },
1277
+ "name": "ComponentCompareUI",
1278
+ "componentId": {
1279
+ "scope": "teambit.component",
1280
+ "name": "component-compare"
1281
+ }
1255
1282
  }
1256
- }
1257
- ]
1258
- },
1259
- "isOptional": false,
1260
- "isSpread": false
1261
- },
1262
- {
1263
- "__schema": "ParameterSchema",
1264
- "location": {
1265
- "filePath": "compositions.ui.runtime.tsx",
1266
- "line": 40,
1267
- "character": 5
1283
+ ]
1284
+ },
1285
+ "isOptional": false,
1286
+ "isSpread": false
1268
1287
  },
1269
- "name": "config",
1270
- "type": {
1271
- "__schema": "TypeLiteralSchema",
1288
+ {
1289
+ "__schema": "ParameterSchema",
1272
1290
  "location": {
1273
1291
  "filePath": "compositions.ui.runtime.tsx",
1274
1292
  "line": 40,
1275
- "character": 13
1293
+ "character": 5
1276
1294
  },
1277
- "members": []
1278
- },
1279
- "isOptional": false,
1280
- "isSpread": false
1281
- },
1282
- {
1283
- "__schema": "ParameterSchema",
1284
- "location": {
1285
- "filePath": "compositions.ui.runtime.tsx",
1286
- "line": 41,
1287
- "character": 5
1295
+ "name": "config",
1296
+ "type": {
1297
+ "__schema": "TypeLiteralSchema",
1298
+ "location": {
1299
+ "filePath": "compositions.ui.runtime.tsx",
1300
+ "line": 40,
1301
+ "character": 13
1302
+ },
1303
+ "members": []
1304
+ },
1305
+ "isOptional": false,
1306
+ "isSpread": false
1288
1307
  },
1289
- "name": "[ compositionMenuSlot, emptyStateSlot ]",
1290
- "type": {
1291
- "__schema": "TupleTypeSchema",
1308
+ {
1309
+ "__schema": "ParameterSchema",
1292
1310
  "location": {
1293
1311
  "filePath": "compositions.ui.runtime.tsx",
1294
1312
  "line": 41,
1295
- "character": 44
1313
+ "character": 5
1296
1314
  },
1297
- "elements": [
1298
- {
1299
- "__schema": "TypeRefSchema",
1300
- "location": {
1301
- "filePath": "compositions.ui.runtime.tsx",
1302
- "line": 41,
1303
- "character": 45
1304
- },
1305
- "name": "CompositionsMenuSlot"
1315
+ "name": "[ compositionMenuSlot, emptyStateSlot ]",
1316
+ "type": {
1317
+ "__schema": "TupleTypeSchema",
1318
+ "location": {
1319
+ "filePath": "compositions.ui.runtime.tsx",
1320
+ "line": 41,
1321
+ "character": 44
1306
1322
  },
1307
- {
1308
- "__schema": "TypeRefSchema",
1309
- "location": {
1310
- "filePath": "compositions.ui.runtime.tsx",
1311
- "line": 41,
1312
- "character": 67
1323
+ "elements": [
1324
+ {
1325
+ "__schema": "TypeRefSchema",
1326
+ "location": {
1327
+ "filePath": "compositions.ui.runtime.tsx",
1328
+ "line": 41,
1329
+ "character": 45
1330
+ },
1331
+ "name": "CompositionsMenuSlot"
1313
1332
  },
1314
- "name": "EmptyStateSlot"
1315
- }
1316
- ]
1333
+ {
1334
+ "__schema": "TypeRefSchema",
1335
+ "location": {
1336
+ "filePath": "compositions.ui.runtime.tsx",
1337
+ "line": 41,
1338
+ "character": 67
1339
+ },
1340
+ "name": "EmptyStateSlot"
1341
+ }
1342
+ ]
1343
+ },
1344
+ "isOptional": false,
1345
+ "isSpread": false
1346
+ }
1347
+ ],
1348
+ "returnType": {
1349
+ "__schema": "InferenceTypeSchema",
1350
+ "location": {
1351
+ "filePath": "compositions.ui.runtime.tsx",
1352
+ "line": 38,
1353
+ "character": 3
1317
1354
  },
1318
- "isOptional": false,
1319
- "isSpread": false
1320
- }
1321
- ],
1322
- "returnType": {
1323
- "__schema": "InferenceTypeSchema",
1324
- "location": {
1325
- "filePath": "compositions.ui.runtime.tsx",
1326
- "line": 38,
1327
- "character": 3
1355
+ "type": "Promise<CompositionsUI>"
1328
1356
  },
1329
- "type": "Promise<CompositionsUI>"
1330
- },
1331
- "modifiers": [
1332
- "static",
1333
- "async"
1334
- ]
1335
- }
1336
- ],
1337
- "extendsNodes": [],
1338
- "implementNodes": []
1357
+ "modifiers": [
1358
+ "static",
1359
+ "async"
1360
+ ]
1361
+ }
1362
+ ],
1363
+ "extendsNodes": [],
1364
+ "implementNodes": []
1365
+ }
1339
1366
  },
1340
1367
  {
1341
- "__schema": "TypeSchema",
1368
+ "__schema": "ExportSchema",
1342
1369
  "location": {
1343
- "filePath": "compositions.ui.runtime.tsx",
1344
- "line": 13,
1345
- "character": 1
1370
+ "filePath": "index.ts",
1371
+ "line": 5,
1372
+ "character": 31
1346
1373
  },
1347
- "signature": "type CompositionsMenuSlot = SlotRegistry<MenuBarWidget[]>",
1348
1374
  "name": "CompositionsMenuSlot",
1349
- "type": {
1350
- "__schema": "TypeRefSchema",
1375
+ "exportNode": {
1376
+ "__schema": "TypeSchema",
1351
1377
  "location": {
1352
1378
  "filePath": "compositions.ui.runtime.tsx",
1353
1379
  "line": 13,
1354
- "character": 36
1355
- },
1356
- "name": "SlotRegistry",
1357
- "componentId": {
1358
- "scope": "teambit.harmony",
1359
- "name": "harmony",
1360
- "version": "0.4.6"
1380
+ "character": 1
1361
1381
  },
1362
- "typeArgs": [
1363
- {
1364
- "__schema": "TypeArraySchema",
1365
- "location": {
1366
- "filePath": "compositions.ui.runtime.tsx",
1367
- "line": 13,
1368
- "character": 49
1369
- },
1370
- "type": {
1371
- "__schema": "TypeRefSchema",
1382
+ "signature": "type CompositionsMenuSlot = SlotRegistry<MenuBarWidget[]>",
1383
+ "name": "CompositionsMenuSlot",
1384
+ "type": {
1385
+ "__schema": "TypeRefSchema",
1386
+ "location": {
1387
+ "filePath": "compositions.ui.runtime.tsx",
1388
+ "line": 13,
1389
+ "character": 36
1390
+ },
1391
+ "name": "SlotRegistry",
1392
+ "componentId": {
1393
+ "scope": "teambit.harmony",
1394
+ "name": "harmony",
1395
+ "version": "0.4.6"
1396
+ },
1397
+ "typeArgs": [
1398
+ {
1399
+ "__schema": "TypeArraySchema",
1372
1400
  "location": {
1373
1401
  "filePath": "compositions.ui.runtime.tsx",
1374
1402
  "line": 13,
1375
1403
  "character": 49
1376
1404
  },
1377
- "name": "MenuBarWidget",
1378
- "internalFilePath": "compositions.tsx"
1405
+ "type": {
1406
+ "__schema": "TypeRefSchema",
1407
+ "location": {
1408
+ "filePath": "compositions.ui.runtime.tsx",
1409
+ "line": 13,
1410
+ "character": 49
1411
+ },
1412
+ "name": "MenuBarWidget",
1413
+ "internalFilePath": "compositions.tsx"
1414
+ }
1379
1415
  }
1380
- }
1381
- ]
1416
+ ]
1417
+ }
1382
1418
  }
1383
1419
  },
1384
1420
  {
1385
- "__schema": "TypeSchema",
1421
+ "__schema": "ExportSchema",
1386
1422
  "location": {
1387
- "filePath": "compositions.ui.runtime.tsx",
1388
- "line": 14,
1389
- "character": 1
1423
+ "filePath": "index.ts",
1424
+ "line": 5,
1425
+ "character": 53
1390
1426
  },
1391
- "signature": "type EmptyStateSlot = SlotRegistry<React.ComponentType>",
1392
1427
  "name": "EmptyStateSlot",
1393
- "type": {
1394
- "__schema": "TypeRefSchema",
1428
+ "exportNode": {
1429
+ "__schema": "TypeSchema",
1395
1430
  "location": {
1396
1431
  "filePath": "compositions.ui.runtime.tsx",
1397
1432
  "line": 14,
1398
- "character": 30
1399
- },
1400
- "name": "SlotRegistry",
1401
- "componentId": {
1402
- "scope": "teambit.harmony",
1403
- "name": "harmony",
1404
- "version": "0.4.6"
1433
+ "character": 1
1405
1434
  },
1406
- "typeArgs": [
1407
- {
1408
- "__schema": "TypeRefSchema",
1409
- "location": {
1410
- "filePath": "compositions.ui.runtime.tsx",
1411
- "line": 14,
1412
- "character": 43
1413
- },
1414
- "name": "ComponentType",
1415
- "packageName": "react"
1416
- }
1417
- ]
1435
+ "signature": "type EmptyStateSlot = SlotRegistry<React.ComponentType>",
1436
+ "name": "EmptyStateSlot",
1437
+ "type": {
1438
+ "__schema": "TypeRefSchema",
1439
+ "location": {
1440
+ "filePath": "compositions.ui.runtime.tsx",
1441
+ "line": 14,
1442
+ "character": 30
1443
+ },
1444
+ "name": "SlotRegistry",
1445
+ "componentId": {
1446
+ "scope": "teambit.harmony",
1447
+ "name": "harmony",
1448
+ "version": "0.4.6"
1449
+ },
1450
+ "typeArgs": [
1451
+ {
1452
+ "__schema": "TypeRefSchema",
1453
+ "location": {
1454
+ "filePath": "compositions.ui.runtime.tsx",
1455
+ "line": 14,
1456
+ "character": 43
1457
+ },
1458
+ "name": "ComponentType",
1459
+ "packageName": "react"
1460
+ }
1461
+ ]
1462
+ }
1418
1463
  }
1419
1464
  },
1420
1465
  {
1421
- "__schema": "TypeSchema",
1466
+ "__schema": "ExportSchema",
1422
1467
  "location": {
1423
- "filePath": "composition.ts",
1424
- "line": 3,
1425
- "character": 1
1468
+ "filePath": "index.ts",
1469
+ "line": 6,
1470
+ "character": 15
1426
1471
  },
1427
- "signature": "type CompositionProps = {\n identifier: string;\n filepath?: string | undefined;\n displayName?: string | undefined;\n}",
1428
1472
  "name": "CompositionProps",
1429
- "type": {
1430
- "__schema": "TypeLiteralSchema",
1473
+ "exportNode": {
1474
+ "__schema": "TypeSchema",
1431
1475
  "location": {
1432
1476
  "filePath": "composition.ts",
1433
1477
  "line": 3,
1434
- "character": 32
1478
+ "character": 1
1435
1479
  },
1436
- "members": [
1437
- {
1438
- "__schema": "VariableLikeSchema",
1439
- "location": {
1440
- "filePath": "composition.ts",
1441
- "line": 4,
1442
- "character": 3
1443
- },
1444
- "signature": "(property) identifier: string",
1445
- "name": "identifier",
1446
- "type": {
1447
- "__schema": "KeywordTypeSchema",
1448
- "location": {
1449
- "filePath": "composition.ts",
1450
- "line": 4,
1451
- "character": 15
1452
- },
1453
- "name": "string"
1454
- },
1455
- "isOptional": false
1456
- },
1457
- {
1458
- "__schema": "VariableLikeSchema",
1459
- "location": {
1460
- "filePath": "composition.ts",
1461
- "line": 5,
1462
- "character": 3
1463
- },
1464
- "signature": "(property) filepath?: string | undefined",
1465
- "name": "filepath",
1466
- "type": {
1467
- "__schema": "KeywordTypeSchema",
1468
- "location": {
1469
- "filePath": "composition.ts",
1470
- "line": 5,
1471
- "character": 14
1472
- },
1473
- "name": "string"
1474
- },
1475
- "isOptional": true
1476
- },
1477
- {
1478
- "__schema": "VariableLikeSchema",
1479
- "location": {
1480
- "filePath": "composition.ts",
1481
- "line": 6,
1482
- "character": 3
1483
- },
1484
- "signature": "(property) displayName?: string | undefined",
1485
- "name": "displayName",
1486
- "type": {
1487
- "__schema": "KeywordTypeSchema",
1488
- "location": {
1489
- "filePath": "composition.ts",
1490
- "line": 6,
1491
- "character": 17
1492
- },
1493
- "name": "string"
1494
- },
1495
- "isOptional": true
1496
- }
1497
- ]
1498
- }
1499
- },
1500
- {
1501
- "__schema": "ClassSchema",
1502
- "location": {
1503
- "filePath": "composition.ts",
1504
- "line": 18,
1505
- "character": 1
1506
- },
1507
- "signature": "class Composition",
1508
- "name": "Composition",
1509
- "members": [
1510
- {
1511
- "__schema": "ConstructorSchema",
1480
+ "signature": "type CompositionProps = {\n identifier: string;\n filepath?: string | undefined;\n displayName?: string | undefined;\n}",
1481
+ "name": "CompositionProps",
1482
+ "type": {
1483
+ "__schema": "TypeLiteralSchema",
1512
1484
  "location": {
1513
1485
  "filePath": "composition.ts",
1514
- "line": 19,
1515
- "character": 3
1486
+ "line": 3,
1487
+ "character": 32
1516
1488
  },
1517
- "signature": "constructor Composition(identifier: string, filepath?: string, _displayName?: string): Composition",
1518
- "name": "constructor",
1519
- "params": [
1489
+ "members": [
1520
1490
  {
1521
- "__schema": "ParameterSchema",
1491
+ "__schema": "VariableLikeSchema",
1522
1492
  "location": {
1523
1493
  "filePath": "composition.ts",
1524
- "line": 23,
1525
- "character": 5
1494
+ "line": 4,
1495
+ "character": 3
1526
1496
  },
1497
+ "signature": "(property) identifier: string",
1527
1498
  "name": "identifier",
1528
1499
  "type": {
1529
1500
  "__schema": "KeywordTypeSchema",
1530
1501
  "location": {
1531
1502
  "filePath": "composition.ts",
1532
- "line": 23,
1533
- "character": 26
1503
+ "line": 4,
1504
+ "character": 15
1534
1505
  },
1535
1506
  "name": "string"
1536
1507
  },
1537
- "isOptional": false,
1538
- "isSpread": false
1508
+ "isOptional": false
1539
1509
  },
1540
1510
  {
1541
- "__schema": "ParameterSchema",
1511
+ "__schema": "VariableLikeSchema",
1542
1512
  "location": {
1543
1513
  "filePath": "composition.ts",
1544
- "line": 28,
1545
- "character": 5
1514
+ "line": 5,
1515
+ "character": 3
1546
1516
  },
1517
+ "signature": "(property) filepath?: string | undefined",
1547
1518
  "name": "filepath",
1548
1519
  "type": {
1549
1520
  "__schema": "KeywordTypeSchema",
1550
1521
  "location": {
1551
1522
  "filePath": "composition.ts",
1552
- "line": 28,
1553
- "character": 25
1523
+ "line": 5,
1524
+ "character": 14
1554
1525
  },
1555
1526
  "name": "string"
1556
1527
  },
1557
- "isOptional": true,
1558
- "isSpread": false
1528
+ "isOptional": true
1559
1529
  },
1560
1530
  {
1561
- "__schema": "ParameterSchema",
1531
+ "__schema": "VariableLikeSchema",
1562
1532
  "location": {
1563
1533
  "filePath": "composition.ts",
1564
- "line": 33,
1565
- "character": 5
1534
+ "line": 6,
1535
+ "character": 3
1566
1536
  },
1567
- "name": "_displayName",
1537
+ "signature": "(property) displayName?: string | undefined",
1538
+ "name": "displayName",
1568
1539
  "type": {
1569
1540
  "__schema": "KeywordTypeSchema",
1570
1541
  "location": {
1571
1542
  "filePath": "composition.ts",
1572
- "line": 33,
1573
- "character": 28
1543
+ "line": 6,
1544
+ "character": 17
1574
1545
  },
1575
1546
  "name": "string"
1576
1547
  },
1577
- "isOptional": true,
1578
- "isSpread": false
1548
+ "isOptional": true
1579
1549
  }
1580
- ],
1581
- "returnType": {
1582
- "__schema": "ThisTypeSchema",
1550
+ ]
1551
+ }
1552
+ }
1553
+ },
1554
+ {
1555
+ "__schema": "ExportSchema",
1556
+ "location": {
1557
+ "filePath": "index.ts",
1558
+ "line": 7,
1559
+ "character": 10
1560
+ },
1561
+ "name": "Composition",
1562
+ "exportNode": {
1563
+ "__schema": "ClassSchema",
1564
+ "location": {
1565
+ "filePath": "composition.ts",
1566
+ "line": 18,
1567
+ "character": 1
1568
+ },
1569
+ "signature": "class Composition",
1570
+ "name": "Composition",
1571
+ "members": [
1572
+ {
1573
+ "__schema": "ConstructorSchema",
1583
1574
  "location": {
1584
1575
  "filePath": "composition.ts",
1585
- "line": 18,
1586
- "character": 1
1576
+ "line": 19,
1577
+ "character": 3
1587
1578
  },
1588
- "name": "Composition"
1589
- },
1590
- "modifiers": []
1591
- },
1592
- {
1593
- "__schema": "GetAccessorSchema",
1594
- "location": {
1595
- "filePath": "composition.ts",
1596
- "line": 36,
1597
- "character": 3
1579
+ "signature": "constructor Composition(identifier: string, filepath?: string, _displayName?: string): Composition",
1580
+ "name": "constructor",
1581
+ "params": [
1582
+ {
1583
+ "__schema": "ParameterSchema",
1584
+ "location": {
1585
+ "filePath": "composition.ts",
1586
+ "line": 23,
1587
+ "character": 5
1588
+ },
1589
+ "name": "identifier",
1590
+ "type": {
1591
+ "__schema": "KeywordTypeSchema",
1592
+ "location": {
1593
+ "filePath": "composition.ts",
1594
+ "line": 23,
1595
+ "character": 26
1596
+ },
1597
+ "name": "string"
1598
+ },
1599
+ "isOptional": false,
1600
+ "isSpread": false
1601
+ },
1602
+ {
1603
+ "__schema": "ParameterSchema",
1604
+ "location": {
1605
+ "filePath": "composition.ts",
1606
+ "line": 28,
1607
+ "character": 5
1608
+ },
1609
+ "name": "filepath",
1610
+ "type": {
1611
+ "__schema": "KeywordTypeSchema",
1612
+ "location": {
1613
+ "filePath": "composition.ts",
1614
+ "line": 28,
1615
+ "character": 25
1616
+ },
1617
+ "name": "string"
1618
+ },
1619
+ "isOptional": true,
1620
+ "isSpread": false
1621
+ },
1622
+ {
1623
+ "__schema": "ParameterSchema",
1624
+ "location": {
1625
+ "filePath": "composition.ts",
1626
+ "line": 33,
1627
+ "character": 5
1628
+ },
1629
+ "name": "_displayName",
1630
+ "type": {
1631
+ "__schema": "KeywordTypeSchema",
1632
+ "location": {
1633
+ "filePath": "composition.ts",
1634
+ "line": 33,
1635
+ "character": 28
1636
+ },
1637
+ "name": "string"
1638
+ },
1639
+ "isOptional": true,
1640
+ "isSpread": false
1641
+ }
1642
+ ],
1643
+ "returnType": {
1644
+ "__schema": "ThisTypeSchema",
1645
+ "location": {
1646
+ "filePath": "composition.ts",
1647
+ "line": 18,
1648
+ "character": 1
1649
+ },
1650
+ "name": "Composition"
1651
+ },
1652
+ "modifiers": []
1598
1653
  },
1599
- "signature": "(getter) Composition.displayName: string",
1600
- "name": "displayName",
1601
- "type": {
1602
- "__schema": "InferenceTypeSchema",
1654
+ {
1655
+ "__schema": "GetAccessorSchema",
1603
1656
  "location": {
1604
1657
  "filePath": "composition.ts",
1605
1658
  "line": 36,
1606
1659
  "character": 3
1607
1660
  },
1608
- "type": "string"
1609
- }
1610
- },
1611
- {
1612
- "__schema": "FunctionLikeSchema",
1613
- "location": {
1614
- "filePath": "composition.ts",
1615
- "line": 40,
1616
- "character": 3
1661
+ "signature": "(getter) Composition.displayName: string",
1662
+ "name": "displayName",
1663
+ "type": {
1664
+ "__schema": "InferenceTypeSchema",
1665
+ "location": {
1666
+ "filePath": "composition.ts",
1667
+ "line": 36,
1668
+ "character": 3
1669
+ },
1670
+ "type": "string"
1671
+ }
1617
1672
  },
1618
- "signature": "(method) Composition.toObject(): {\n identifier: string;\n filepath: string | undefined;\n displayName: string | undefined;\n}",
1619
- "name": "toObject",
1620
- "params": [],
1621
- "returnType": {
1622
- "__schema": "InferenceTypeSchema",
1673
+ {
1674
+ "__schema": "FunctionLikeSchema",
1623
1675
  "location": {
1624
1676
  "filePath": "composition.ts",
1625
1677
  "line": 40,
1626
1678
  "character": 3
1627
1679
  },
1628
- "type": "{\n identifier: string;\n filepath: string | undefined;\n displayName: string | undefined;\n}"
1629
- },
1630
- "modifiers": []
1631
- },
1632
- {
1633
- "__schema": "FunctionLikeSchema",
1634
- "location": {
1635
- "filePath": "composition.ts",
1636
- "line": 48,
1637
- "character": 3
1680
+ "signature": "(method) Composition.toObject(): {\n identifier: string;\n filepath: string | undefined;\n displayName: string | undefined;\n}",
1681
+ "name": "toObject",
1682
+ "params": [],
1683
+ "returnType": {
1684
+ "__schema": "InferenceTypeSchema",
1685
+ "location": {
1686
+ "filePath": "composition.ts",
1687
+ "line": 40,
1688
+ "character": 3
1689
+ },
1690
+ "type": "{\n identifier: string;\n filepath: string | undefined;\n displayName: string | undefined;\n}"
1691
+ },
1692
+ "modifiers": []
1693
+ },
1694
+ {
1695
+ "__schema": "FunctionLikeSchema",
1696
+ "location": {
1697
+ "filePath": "composition.ts",
1698
+ "line": 48,
1699
+ "character": 3
1700
+ },
1701
+ "signature": "(method) Composition.toBrowserMetaDataObject(): CompositionBrowserMetadata",
1702
+ "name": "toBrowserMetaDataObject",
1703
+ "params": [],
1704
+ "returnType": {
1705
+ "__schema": "TypeRefSchema",
1706
+ "location": {
1707
+ "filePath": "composition.ts",
1708
+ "line": 48,
1709
+ "character": 3
1710
+ },
1711
+ "name": "CompositionBrowserMetadata",
1712
+ "internalFilePath": "composition.ts"
1713
+ },
1714
+ "modifiers": []
1638
1715
  },
1639
- "signature": "(method) Composition.toBrowserMetaDataObject(): CompositionBrowserMetadata",
1640
- "name": "toBrowserMetaDataObject",
1641
- "params": [],
1642
- "returnType": {
1643
- "__schema": "TypeRefSchema",
1716
+ {
1717
+ "__schema": "FunctionLikeSchema",
1644
1718
  "location": {
1645
1719
  "filePath": "composition.ts",
1646
- "line": 48,
1720
+ "line": 55,
1647
1721
  "character": 3
1648
1722
  },
1649
- "name": "CompositionBrowserMetadata",
1650
- "internalFilePath": "composition.ts"
1651
- },
1652
- "modifiers": []
1653
- },
1654
- {
1655
- "__schema": "FunctionLikeSchema",
1656
- "location": {
1657
- "filePath": "composition.ts",
1658
- "line": 55,
1659
- "character": 3
1660
- },
1661
- "signature": "(method) Composition.fromArray(compositions: CompositionProps[]): Composition[]",
1662
- "name": "fromArray",
1663
- "params": [
1664
- {
1665
- "__schema": "ParameterSchema",
1666
- "location": {
1667
- "filePath": "composition.ts",
1668
- "line": 55,
1669
- "character": 20
1670
- },
1671
- "name": "compositions",
1672
- "type": {
1673
- "__schema": "TypeArraySchema",
1723
+ "signature": "(method) Composition.fromArray(compositions: CompositionProps[]): Composition[]",
1724
+ "name": "fromArray",
1725
+ "params": [
1726
+ {
1727
+ "__schema": "ParameterSchema",
1674
1728
  "location": {
1675
1729
  "filePath": "composition.ts",
1676
1730
  "line": 55,
1677
- "character": 34
1731
+ "character": 20
1678
1732
  },
1733
+ "name": "compositions",
1679
1734
  "type": {
1680
- "__schema": "TypeRefSchema",
1735
+ "__schema": "TypeArraySchema",
1681
1736
  "location": {
1682
1737
  "filePath": "composition.ts",
1683
1738
  "line": 55,
1684
1739
  "character": 34
1685
1740
  },
1686
- "name": "CompositionProps"
1687
- }
1688
- },
1689
- "isOptional": false,
1690
- "isSpread": false
1691
- }
1692
- ],
1693
- "returnType": {
1694
- "__schema": "TypeArraySchema",
1695
- "location": {
1696
- "filePath": "composition.ts",
1697
- "line": 55,
1698
- "character": 55
1699
- },
1700
- "type": {
1701
- "__schema": "TypeRefSchema",
1741
+ "type": {
1742
+ "__schema": "TypeRefSchema",
1743
+ "location": {
1744
+ "filePath": "composition.ts",
1745
+ "line": 55,
1746
+ "character": 34
1747
+ },
1748
+ "name": "CompositionProps"
1749
+ }
1750
+ },
1751
+ "isOptional": false,
1752
+ "isSpread": false
1753
+ }
1754
+ ],
1755
+ "returnType": {
1756
+ "__schema": "TypeArraySchema",
1702
1757
  "location": {
1703
1758
  "filePath": "composition.ts",
1704
1759
  "line": 55,
1705
1760
  "character": 55
1706
1761
  },
1707
- "name": "Composition"
1708
- }
1709
- },
1710
- "modifiers": [
1711
- "static"
1712
- ]
1713
- }
1714
- ],
1715
- "extendsNodes": [],
1716
- "implementNodes": []
1762
+ "type": {
1763
+ "__schema": "TypeRefSchema",
1764
+ "location": {
1765
+ "filePath": "composition.ts",
1766
+ "line": 55,
1767
+ "character": 55
1768
+ },
1769
+ "name": "Composition"
1770
+ }
1771
+ },
1772
+ "modifiers": [
1773
+ "static"
1774
+ ]
1775
+ }
1776
+ ],
1777
+ "extendsNodes": [],
1778
+ "implementNodes": []
1779
+ }
1717
1780
  },
1718
1781
  {
1719
- "__schema": "TypeSchema",
1782
+ "__schema": "ExportSchema",
1720
1783
  "location": {
1721
- "filePath": "compositions.tsx",
1722
- "line": 158,
1723
- "character": 1
1784
+ "filePath": "index.ts",
1785
+ "line": 8,
1786
+ "character": 15
1724
1787
  },
1725
- "signature": "type CompositionContentProps = {\n component: ComponentModel;\n selected?: Composition | undefined;\n queryParams?: string | string[] | undefined;\n emptyState?: EmptyStateSlot | undefined;\n} & {\n composition?: Composition | undefined;\n} & ComponentPreviewProps",
1726
1788
  "name": "CompositionContentProps",
1727
- "type": {
1728
- "__schema": "TypeIntersectionSchema",
1789
+ "exportNode": {
1790
+ "__schema": "TypeSchema",
1729
1791
  "location": {
1730
1792
  "filePath": "compositions.tsx",
1731
1793
  "line": 158,
1732
- "character": 39
1794
+ "character": 1
1733
1795
  },
1734
- "types": [
1735
- {
1736
- "__schema": "TypeLiteralSchema",
1737
- "location": {
1738
- "filePath": "compositions.tsx",
1739
- "line": 158,
1740
- "character": 39
1741
- },
1742
- "members": [
1743
- {
1744
- "__schema": "VariableLikeSchema",
1745
- "location": {
1746
- "filePath": "compositions.tsx",
1747
- "line": 159,
1748
- "character": 3
1749
- },
1750
- "signature": "(property) component: ComponentModel",
1751
- "name": "component",
1752
- "type": {
1753
- "__schema": "TypeRefSchema",
1796
+ "signature": "type CompositionContentProps = {\n component: ComponentModel;\n selected?: Composition | undefined;\n queryParams?: string | string[] | undefined;\n emptyState?: EmptyStateSlot | undefined;\n} & {\n composition?: Composition | undefined;\n} & ComponentPreviewProps",
1797
+ "name": "CompositionContentProps",
1798
+ "type": {
1799
+ "__schema": "TypeIntersectionSchema",
1800
+ "location": {
1801
+ "filePath": "compositions.tsx",
1802
+ "line": 158,
1803
+ "character": 39
1804
+ },
1805
+ "types": [
1806
+ {
1807
+ "__schema": "TypeLiteralSchema",
1808
+ "location": {
1809
+ "filePath": "compositions.tsx",
1810
+ "line": 158,
1811
+ "character": 39
1812
+ },
1813
+ "members": [
1814
+ {
1815
+ "__schema": "VariableLikeSchema",
1754
1816
  "location": {
1755
1817
  "filePath": "compositions.tsx",
1756
1818
  "line": 159,
1757
1819
  "character": 3
1758
1820
  },
1759
- "name": "ComponentModel",
1760
- "componentId": {
1761
- "scope": "teambit.component",
1762
- "name": "component"
1763
- }
1764
- },
1765
- "isOptional": false
1766
- },
1767
- {
1768
- "__schema": "VariableLikeSchema",
1769
- "location": {
1770
- "filePath": "compositions.tsx",
1771
- "line": 160,
1772
- "character": 3
1821
+ "signature": "(property) component: ComponentModel",
1822
+ "name": "component",
1823
+ "type": {
1824
+ "__schema": "TypeRefSchema",
1825
+ "location": {
1826
+ "filePath": "compositions.tsx",
1827
+ "line": 159,
1828
+ "character": 3
1829
+ },
1830
+ "name": "ComponentModel",
1831
+ "componentId": {
1832
+ "scope": "teambit.component",
1833
+ "name": "component"
1834
+ }
1835
+ },
1836
+ "isOptional": false
1773
1837
  },
1774
- "signature": "(property) selected?: Composition | undefined",
1775
- "name": "selected",
1776
- "type": {
1777
- "__schema": "TypeRefSchema",
1838
+ {
1839
+ "__schema": "VariableLikeSchema",
1778
1840
  "location": {
1779
1841
  "filePath": "compositions.tsx",
1780
1842
  "line": 160,
1781
- "character": 14
1843
+ "character": 3
1782
1844
  },
1783
- "name": "Composition"
1784
- },
1785
- "isOptional": true
1786
- },
1787
- {
1788
- "__schema": "VariableLikeSchema",
1789
- "location": {
1790
- "filePath": "compositions.tsx",
1791
- "line": 161,
1792
- "character": 3
1845
+ "signature": "(property) selected?: Composition | undefined",
1846
+ "name": "selected",
1847
+ "type": {
1848
+ "__schema": "TypeRefSchema",
1849
+ "location": {
1850
+ "filePath": "compositions.tsx",
1851
+ "line": 160,
1852
+ "character": 14
1853
+ },
1854
+ "name": "Composition"
1855
+ },
1856
+ "isOptional": true
1793
1857
  },
1794
- "signature": "(property) queryParams?: string | string[] | undefined",
1795
- "name": "queryParams",
1796
- "type": {
1797
- "__schema": "TypeUnionSchema",
1858
+ {
1859
+ "__schema": "VariableLikeSchema",
1798
1860
  "location": {
1799
1861
  "filePath": "compositions.tsx",
1800
1862
  "line": 161,
1801
- "character": 17
1863
+ "character": 3
1802
1864
  },
1803
- "types": [
1804
- {
1805
- "__schema": "KeywordTypeSchema",
1806
- "location": {
1807
- "filePath": "compositions.tsx",
1808
- "line": 161,
1809
- "character": 17
1810
- },
1811
- "name": "string"
1865
+ "signature": "(property) queryParams?: string | string[] | undefined",
1866
+ "name": "queryParams",
1867
+ "type": {
1868
+ "__schema": "TypeUnionSchema",
1869
+ "location": {
1870
+ "filePath": "compositions.tsx",
1871
+ "line": 161,
1872
+ "character": 17
1812
1873
  },
1813
- {
1814
- "__schema": "TypeArraySchema",
1815
- "location": {
1816
- "filePath": "compositions.tsx",
1817
- "line": 161,
1818
- "character": 26
1819
- },
1820
- "type": {
1874
+ "types": [
1875
+ {
1821
1876
  "__schema": "KeywordTypeSchema",
1822
1877
  "location": {
1823
1878
  "filePath": "compositions.tsx",
1824
1879
  "line": 161,
1825
- "character": 26
1880
+ "character": 17
1826
1881
  },
1827
1882
  "name": "string"
1883
+ },
1884
+ {
1885
+ "__schema": "TypeArraySchema",
1886
+ "location": {
1887
+ "filePath": "compositions.tsx",
1888
+ "line": 161,
1889
+ "character": 26
1890
+ },
1891
+ "type": {
1892
+ "__schema": "KeywordTypeSchema",
1893
+ "location": {
1894
+ "filePath": "compositions.tsx",
1895
+ "line": 161,
1896
+ "character": 26
1897
+ },
1898
+ "name": "string"
1899
+ }
1828
1900
  }
1829
- }
1830
- ]
1831
- },
1832
- "isOptional": true
1833
- },
1834
- {
1835
- "__schema": "VariableLikeSchema",
1836
- "location": {
1837
- "filePath": "compositions.tsx",
1838
- "line": 162,
1839
- "character": 3
1901
+ ]
1902
+ },
1903
+ "isOptional": true
1840
1904
  },
1841
- "signature": "(property) emptyState?: EmptyStateSlot | undefined",
1842
- "name": "emptyState",
1843
- "type": {
1844
- "__schema": "TypeRefSchema",
1905
+ {
1906
+ "__schema": "VariableLikeSchema",
1845
1907
  "location": {
1846
1908
  "filePath": "compositions.tsx",
1847
1909
  "line": 162,
1848
- "character": 16
1910
+ "character": 3
1849
1911
  },
1850
- "name": "EmptyStateSlot"
1851
- },
1852
- "isOptional": true
1853
- }
1854
- ]
1855
- },
1856
- {
1857
- "__schema": "TypeRefSchema",
1858
- "location": {
1859
- "filePath": "compositions.tsx",
1860
- "line": 163,
1861
- "character": 5
1912
+ "signature": "(property) emptyState?: EmptyStateSlot | undefined",
1913
+ "name": "emptyState",
1914
+ "type": {
1915
+ "__schema": "TypeRefSchema",
1916
+ "location": {
1917
+ "filePath": "compositions.tsx",
1918
+ "line": 162,
1919
+ "character": 16
1920
+ },
1921
+ "name": "EmptyStateSlot"
1922
+ },
1923
+ "isOptional": true
1924
+ }
1925
+ ]
1862
1926
  },
1863
- "name": "ComponentCompositionProps",
1864
- "internalFilePath": "ui/composition-preview.tsx"
1865
- }
1866
- ]
1927
+ {
1928
+ "__schema": "TypeRefSchema",
1929
+ "location": {
1930
+ "filePath": "compositions.tsx",
1931
+ "line": 163,
1932
+ "character": 5
1933
+ },
1934
+ "name": "ComponentCompositionProps",
1935
+ "internalFilePath": "ui/composition-preview.tsx"
1936
+ }
1937
+ ]
1938
+ }
1867
1939
  }
1868
1940
  },
1869
1941
  {
1870
- "__schema": "ReactSchema",
1942
+ "__schema": "ExportSchema",
1871
1943
  "location": {
1872
- "filePath": "compositions.tsx",
1873
- "line": 165,
1874
- "character": 1
1944
+ "filePath": "index.ts",
1945
+ "line": 9,
1946
+ "character": 10
1875
1947
  },
1876
- "signature": "function CompositionContent({ component, selected, queryParams, emptyState, ...componentCompositionProps }: CompositionContentProps): React.JSX.Element",
1877
1948
  "name": "CompositionContent",
1878
- "props": {
1879
- "__schema": "ParameterSchema",
1949
+ "exportNode": {
1950
+ "__schema": "ReactSchema",
1880
1951
  "location": {
1881
1952
  "filePath": "compositions.tsx",
1882
1953
  "line": 165,
1883
- "character": 36
1954
+ "character": 1
1884
1955
  },
1885
- "name": "{ component, selected, queryParams, emptyState, ...componentCompositionProps }",
1886
- "type": {
1887
- "__schema": "TypeRefSchema",
1956
+ "signature": "function CompositionContent({ component, selected, queryParams, emptyState, ...componentCompositionProps }: CompositionContentProps): React.JSX.Element",
1957
+ "name": "CompositionContent",
1958
+ "props": {
1959
+ "__schema": "ParameterSchema",
1888
1960
  "location": {
1889
1961
  "filePath": "compositions.tsx",
1890
- "line": 171,
1891
- "character": 4
1962
+ "line": 165,
1963
+ "character": 36
1892
1964
  },
1893
- "name": "CompositionContentProps"
1894
- },
1895
- "isOptional": false,
1896
- "objectBindingNodes": [
1897
- {
1898
- "__schema": "InferenceTypeSchema",
1965
+ "name": "{ component, selected, queryParams, emptyState, ...componentCompositionProps }",
1966
+ "type": {
1967
+ "__schema": "TypeRefSchema",
1899
1968
  "location": {
1900
1969
  "filePath": "compositions.tsx",
1901
- "line": 166,
1902
- "character": 3
1970
+ "line": 171,
1971
+ "character": 4
1903
1972
  },
1904
- "name": "component",
1905
- "type": "ComponentModel",
1906
- "isSpread": false
1973
+ "name": "CompositionContentProps"
1907
1974
  },
1908
- {
1909
- "__schema": "InferenceTypeSchema",
1910
- "location": {
1911
- "filePath": "compositions.tsx",
1912
- "line": 167,
1913
- "character": 3
1975
+ "isOptional": false,
1976
+ "objectBindingNodes": [
1977
+ {
1978
+ "__schema": "InferenceTypeSchema",
1979
+ "location": {
1980
+ "filePath": "compositions.tsx",
1981
+ "line": 166,
1982
+ "character": 3
1983
+ },
1984
+ "name": "component",
1985
+ "type": "ComponentModel",
1986
+ "isSpread": false
1914
1987
  },
1915
- "name": "selected",
1916
- "type": "Composition | undefined",
1917
- "isSpread": false
1918
- },
1919
- {
1920
- "__schema": "InferenceTypeSchema",
1921
- "location": {
1922
- "filePath": "compositions.tsx",
1923
- "line": 168,
1924
- "character": 3
1988
+ {
1989
+ "__schema": "InferenceTypeSchema",
1990
+ "location": {
1991
+ "filePath": "compositions.tsx",
1992
+ "line": 167,
1993
+ "character": 3
1994
+ },
1995
+ "name": "selected",
1996
+ "type": "Composition | undefined",
1997
+ "isSpread": false
1925
1998
  },
1926
- "name": "queryParams",
1927
- "type": "string | string[] | undefined",
1928
- "isSpread": false
1929
- },
1930
- {
1931
- "__schema": "InferenceTypeSchema",
1932
- "location": {
1933
- "filePath": "compositions.tsx",
1934
- "line": 169,
1935
- "character": 3
1999
+ {
2000
+ "__schema": "InferenceTypeSchema",
2001
+ "location": {
2002
+ "filePath": "compositions.tsx",
2003
+ "line": 168,
2004
+ "character": 3
2005
+ },
2006
+ "name": "queryParams",
2007
+ "type": "string | string[] | undefined",
2008
+ "isSpread": false
1936
2009
  },
1937
- "name": "emptyState",
1938
- "type": "EmptyStateSlot | undefined",
1939
- "isSpread": false
1940
- },
1941
- {
1942
- "__schema": "InferenceTypeSchema",
1943
- "location": {
1944
- "filePath": "compositions.tsx",
1945
- "line": 170,
1946
- "character": 6
2010
+ {
2011
+ "__schema": "InferenceTypeSchema",
2012
+ "location": {
2013
+ "filePath": "compositions.tsx",
2014
+ "line": 169,
2015
+ "character": 3
2016
+ },
2017
+ "name": "emptyState",
2018
+ "type": "EmptyStateSlot | undefined",
2019
+ "isSpread": false
1947
2020
  },
1948
- "name": "componentCompositionProps",
1949
- "type": "{\n composition?: Composition | undefined;\n previewName?: string | undefined;\n innerBottomPadding?: number | undefined;\n onLoad?: ((event?: any, props?: OnPreviewLoadProps | undefined) => void) | undefined;\n ... 278 more ...;\n width?: string | ... 1 more ... | undefined;\n}",
1950
- "isSpread": true
1951
- }
1952
- ],
1953
- "isSpread": false
1954
- },
1955
- "returnType": {
1956
- "__schema": "TypeRefSchema",
1957
- "location": {
1958
- "filePath": "compositions.tsx",
1959
- "line": 165,
1960
- "character": 1
2021
+ {
2022
+ "__schema": "InferenceTypeSchema",
2023
+ "location": {
2024
+ "filePath": "compositions.tsx",
2025
+ "line": 170,
2026
+ "character": 6
2027
+ },
2028
+ "name": "componentCompositionProps",
2029
+ "type": "{\n composition?: Composition | undefined;\n previewName?: string | undefined;\n innerBottomPadding?: number | undefined;\n onLoad?: ((event?: any, props?: OnPreviewLoadProps | undefined) => void) | undefined;\n ... 278 more ...;\n width?: string | ... 1 more ... | undefined;\n}",
2030
+ "isSpread": true
2031
+ }
2032
+ ],
2033
+ "isSpread": false
1961
2034
  },
1962
- "name": "React.JSX.Element",
1963
- "packageName": "react"
1964
- },
1965
- "modifiers": [
1966
- "export"
1967
- ]
2035
+ "returnType": {
2036
+ "__schema": "TypeRefSchema",
2037
+ "location": {
2038
+ "filePath": "compositions.tsx",
2039
+ "line": 165,
2040
+ "character": 1
2041
+ },
2042
+ "name": "React.JSX.Element",
2043
+ "packageName": "react"
2044
+ },
2045
+ "modifiers": [
2046
+ "export"
2047
+ ]
2048
+ }
1968
2049
  },
1969
2050
  {
1970
- "__schema": "ClassSchema",
2051
+ "__schema": "ExportSchema",
1971
2052
  "location": {
1972
- "filePath": "compositions.preview.runtime.ts",
1973
- "line": 15,
1974
- "character": 1
2053
+ "filePath": "index.ts",
2054
+ "line": 10,
2055
+ "character": 15
1975
2056
  },
1976
- "signature": "class CompositionsPreview",
1977
2057
  "name": "CompositionsPreview",
1978
- "members": [
1979
- {
1980
- "__schema": "ConstructorSchema",
1981
- "location": {
1982
- "filePath": "compositions.preview.runtime.ts",
1983
- "line": 16,
1984
- "character": 3
1985
- },
1986
- "signature": "constructor CompositionsPreview(preview: PreviewPreview): CompositionsPreview",
1987
- "name": "constructor",
1988
- "params": [
1989
- {
1990
- "__schema": "ParameterSchema",
1991
- "location": {
1992
- "filePath": "compositions.preview.runtime.ts",
1993
- "line": 20,
1994
- "character": 5
1995
- },
1996
- "name": "preview",
1997
- "type": {
1998
- "__schema": "TypeRefSchema",
2058
+ "exportNode": {
2059
+ "__schema": "ClassSchema",
2060
+ "location": {
2061
+ "filePath": "compositions.preview.runtime.ts",
2062
+ "line": 15,
2063
+ "character": 1
2064
+ },
2065
+ "signature": "class CompositionsPreview",
2066
+ "name": "CompositionsPreview",
2067
+ "members": [
2068
+ {
2069
+ "__schema": "ConstructorSchema",
2070
+ "location": {
2071
+ "filePath": "compositions.preview.runtime.ts",
2072
+ "line": 16,
2073
+ "character": 3
2074
+ },
2075
+ "signature": "constructor CompositionsPreview(preview: PreviewPreview): CompositionsPreview",
2076
+ "name": "constructor",
2077
+ "params": [
2078
+ {
2079
+ "__schema": "ParameterSchema",
1999
2080
  "location": {
2000
2081
  "filePath": "compositions.preview.runtime.ts",
2001
2082
  "line": 20,
2002
- "character": 22
2083
+ "character": 5
2003
2084
  },
2004
- "name": "PreviewPreview",
2005
- "componentId": {
2006
- "scope": "teambit.preview",
2007
- "name": "preview"
2008
- }
2085
+ "name": "preview",
2086
+ "type": {
2087
+ "__schema": "TypeRefSchema",
2088
+ "location": {
2089
+ "filePath": "compositions.preview.runtime.ts",
2090
+ "line": 20,
2091
+ "character": 22
2092
+ },
2093
+ "name": "PreviewPreview",
2094
+ "componentId": {
2095
+ "scope": "teambit.preview",
2096
+ "name": "preview"
2097
+ }
2098
+ },
2099
+ "isOptional": false,
2100
+ "isSpread": false
2101
+ }
2102
+ ],
2103
+ "returnType": {
2104
+ "__schema": "ThisTypeSchema",
2105
+ "location": {
2106
+ "filePath": "compositions.preview.runtime.ts",
2107
+ "line": 15,
2108
+ "character": 1
2009
2109
  },
2010
- "isOptional": false,
2011
- "isSpread": false
2012
- }
2013
- ],
2014
- "returnType": {
2015
- "__schema": "ThisTypeSchema",
2110
+ "name": "CompositionsPreview"
2111
+ },
2112
+ "modifiers": []
2113
+ },
2114
+ {
2115
+ "__schema": "FunctionLikeSchema",
2016
2116
  "location": {
2017
2117
  "filePath": "compositions.preview.runtime.ts",
2018
- "line": 15,
2019
- "character": 1
2118
+ "line": 23,
2119
+ "character": 3
2020
2120
  },
2021
- "name": "CompositionsPreview"
2022
- },
2023
- "modifiers": []
2024
- },
2025
- {
2026
- "__schema": "FunctionLikeSchema",
2027
- "location": {
2028
- "filePath": "compositions.preview.runtime.ts",
2029
- "line": 23,
2030
- "character": 3
2031
- },
2032
- "signature": "(method) CompositionsPreview.render(componentId: ComponentID, envId: string, modules: PreviewModule, otherPreviewDefs: any, context: RenderingContext): void",
2033
- "name": "render",
2034
- "params": [
2035
- {
2036
- "__schema": "ParameterSchema",
2037
- "location": {
2038
- "filePath": "compositions.preview.runtime.ts",
2039
- "line": 23,
2040
- "character": 10
2041
- },
2042
- "name": "componentId",
2043
- "type": {
2044
- "__schema": "TypeRefSchema",
2121
+ "signature": "(method) CompositionsPreview.render(componentId: ComponentID, envId: string, modules: PreviewModule, otherPreviewDefs: any, context: RenderingContext): void",
2122
+ "name": "render",
2123
+ "params": [
2124
+ {
2125
+ "__schema": "ParameterSchema",
2045
2126
  "location": {
2046
2127
  "filePath": "compositions.preview.runtime.ts",
2047
2128
  "line": 23,
2048
- "character": 23
2129
+ "character": 10
2049
2130
  },
2050
- "name": "ComponentID",
2051
- "componentId": {
2052
- "scope": "teambit.component",
2053
- "name": "component-id",
2054
- "version": "1.2.0"
2055
- }
2056
- },
2057
- "isOptional": false,
2058
- "isSpread": false
2059
- },
2060
- {
2061
- "__schema": "ParameterSchema",
2062
- "location": {
2063
- "filePath": "compositions.preview.runtime.ts",
2064
- "line": 23,
2065
- "character": 36
2131
+ "name": "componentId",
2132
+ "type": {
2133
+ "__schema": "TypeRefSchema",
2134
+ "location": {
2135
+ "filePath": "compositions.preview.runtime.ts",
2136
+ "line": 23,
2137
+ "character": 23
2138
+ },
2139
+ "name": "ComponentID",
2140
+ "componentId": {
2141
+ "scope": "teambit.component",
2142
+ "name": "component-id",
2143
+ "version": "1.2.0"
2144
+ }
2145
+ },
2146
+ "isOptional": false,
2147
+ "isSpread": false
2066
2148
  },
2067
- "name": "envId",
2068
- "type": {
2069
- "__schema": "KeywordTypeSchema",
2149
+ {
2150
+ "__schema": "ParameterSchema",
2070
2151
  "location": {
2071
2152
  "filePath": "compositions.preview.runtime.ts",
2072
2153
  "line": 23,
2073
- "character": 43
2154
+ "character": 36
2074
2155
  },
2075
- "name": "string"
2076
- },
2077
- "isOptional": false,
2078
- "isSpread": false
2079
- },
2080
- {
2081
- "__schema": "ParameterSchema",
2082
- "location": {
2083
- "filePath": "compositions.preview.runtime.ts",
2084
- "line": 23,
2085
- "character": 51
2156
+ "name": "envId",
2157
+ "type": {
2158
+ "__schema": "KeywordTypeSchema",
2159
+ "location": {
2160
+ "filePath": "compositions.preview.runtime.ts",
2161
+ "line": 23,
2162
+ "character": 43
2163
+ },
2164
+ "name": "string"
2165
+ },
2166
+ "isOptional": false,
2167
+ "isSpread": false
2086
2168
  },
2087
- "name": "modules",
2088
- "type": {
2089
- "__schema": "TypeRefSchema",
2169
+ {
2170
+ "__schema": "ParameterSchema",
2090
2171
  "location": {
2091
2172
  "filePath": "compositions.preview.runtime.ts",
2092
2173
  "line": 23,
2093
- "character": 60
2174
+ "character": 51
2094
2175
  },
2095
- "name": "PreviewModule",
2096
- "componentId": {
2097
- "scope": "teambit.preview",
2098
- "name": "preview"
2099
- }
2100
- },
2101
- "isOptional": false,
2102
- "isSpread": false
2103
- },
2104
- {
2105
- "__schema": "ParameterSchema",
2106
- "location": {
2107
- "filePath": "compositions.preview.runtime.ts",
2108
- "line": 23,
2109
- "character": 75
2176
+ "name": "modules",
2177
+ "type": {
2178
+ "__schema": "TypeRefSchema",
2179
+ "location": {
2180
+ "filePath": "compositions.preview.runtime.ts",
2181
+ "line": 23,
2182
+ "character": 60
2183
+ },
2184
+ "name": "PreviewModule",
2185
+ "componentId": {
2186
+ "scope": "teambit.preview",
2187
+ "name": "preview"
2188
+ }
2189
+ },
2190
+ "isOptional": false,
2191
+ "isSpread": false
2110
2192
  },
2111
- "name": "otherPreviewDefs",
2112
- "type": {
2113
- "__schema": "InferenceTypeSchema",
2193
+ {
2194
+ "__schema": "ParameterSchema",
2114
2195
  "location": {
2115
2196
  "filePath": "compositions.preview.runtime.ts",
2116
2197
  "line": 23,
2117
2198
  "character": 75
2118
2199
  },
2119
- "type": "any"
2120
- },
2121
- "isOptional": false,
2122
- "isSpread": false
2123
- },
2124
- {
2125
- "__schema": "ParameterSchema",
2126
- "location": {
2127
- "filePath": "compositions.preview.runtime.ts",
2128
- "line": 23,
2129
- "character": 93
2200
+ "name": "otherPreviewDefs",
2201
+ "type": {
2202
+ "__schema": "InferenceTypeSchema",
2203
+ "location": {
2204
+ "filePath": "compositions.preview.runtime.ts",
2205
+ "line": 23,
2206
+ "character": 75
2207
+ },
2208
+ "type": "any"
2209
+ },
2210
+ "isOptional": false,
2211
+ "isSpread": false
2130
2212
  },
2131
- "name": "context",
2132
- "type": {
2133
- "__schema": "TypeRefSchema",
2213
+ {
2214
+ "__schema": "ParameterSchema",
2134
2215
  "location": {
2135
2216
  "filePath": "compositions.preview.runtime.ts",
2136
2217
  "line": 23,
2137
- "character": 102
2218
+ "character": 93
2138
2219
  },
2139
- "name": "RenderingContext",
2140
- "componentId": {
2141
- "scope": "teambit.preview",
2142
- "name": "preview"
2143
- }
2220
+ "name": "context",
2221
+ "type": {
2222
+ "__schema": "TypeRefSchema",
2223
+ "location": {
2224
+ "filePath": "compositions.preview.runtime.ts",
2225
+ "line": 23,
2226
+ "character": 102
2227
+ },
2228
+ "name": "RenderingContext",
2229
+ "componentId": {
2230
+ "scope": "teambit.preview",
2231
+ "name": "preview"
2232
+ }
2233
+ },
2234
+ "isOptional": false,
2235
+ "isSpread": false
2236
+ }
2237
+ ],
2238
+ "returnType": {
2239
+ "__schema": "InferenceTypeSchema",
2240
+ "location": {
2241
+ "filePath": "compositions.preview.runtime.ts",
2242
+ "line": 23,
2243
+ "character": 3
2144
2244
  },
2145
- "isOptional": false,
2146
- "isSpread": false
2147
- }
2148
- ],
2149
- "returnType": {
2150
- "__schema": "InferenceTypeSchema",
2151
- "location": {
2152
- "filePath": "compositions.preview.runtime.ts",
2153
- "line": 23,
2154
- "character": 3
2245
+ "type": "void"
2155
2246
  },
2156
- "type": "void"
2157
- },
2158
- "modifiers": []
2159
- },
2160
- {
2161
- "__schema": "FunctionLikeSchema",
2162
- "location": {
2163
- "filePath": "compositions.preview.runtime.ts",
2164
- "line": 42,
2165
- "character": 3
2247
+ "modifiers": []
2166
2248
  },
2167
- "doc": {
2168
- "__schema": "DocSchema",
2249
+ {
2250
+ "__schema": "FunctionLikeSchema",
2169
2251
  "location": {
2170
2252
  "filePath": "compositions.preview.runtime.ts",
2171
- "line": 41,
2253
+ "line": 42,
2172
2254
  "character": 3
2173
2255
  },
2174
- "raw": "/** gets relevant information for this preview to render */",
2175
- "comment": "gets relevant information for this preview to render"
2176
- },
2177
- "signature": "(method) CompositionsPreview.selectPreviewModel(componentFullName: string, previewModule: PreviewModule): any",
2178
- "name": "selectPreviewModel",
2179
- "params": [
2180
- {
2181
- "__schema": "ParameterSchema",
2256
+ "doc": {
2257
+ "__schema": "DocSchema",
2182
2258
  "location": {
2183
2259
  "filePath": "compositions.preview.runtime.ts",
2184
- "line": 42,
2185
- "character": 22
2260
+ "line": 41,
2261
+ "character": 3
2186
2262
  },
2187
- "name": "componentFullName",
2188
- "type": {
2189
- "__schema": "KeywordTypeSchema",
2263
+ "raw": "/** gets relevant information for this preview to render */",
2264
+ "comment": "gets relevant information for this preview to render"
2265
+ },
2266
+ "signature": "(method) CompositionsPreview.selectPreviewModel(componentFullName: string, previewModule: PreviewModule): any",
2267
+ "name": "selectPreviewModel",
2268
+ "params": [
2269
+ {
2270
+ "__schema": "ParameterSchema",
2190
2271
  "location": {
2191
2272
  "filePath": "compositions.preview.runtime.ts",
2192
2273
  "line": 42,
2193
- "character": 41
2274
+ "character": 22
2194
2275
  },
2195
- "name": "string"
2196
- },
2197
- "isOptional": false,
2198
- "isSpread": false
2199
- },
2200
- {
2201
- "__schema": "ParameterSchema",
2202
- "location": {
2203
- "filePath": "compositions.preview.runtime.ts",
2204
- "line": 42,
2205
- "character": 49
2276
+ "name": "componentFullName",
2277
+ "type": {
2278
+ "__schema": "KeywordTypeSchema",
2279
+ "location": {
2280
+ "filePath": "compositions.preview.runtime.ts",
2281
+ "line": 42,
2282
+ "character": 41
2283
+ },
2284
+ "name": "string"
2285
+ },
2286
+ "isOptional": false,
2287
+ "isSpread": false
2206
2288
  },
2207
- "name": "previewModule",
2208
- "type": {
2209
- "__schema": "TypeRefSchema",
2289
+ {
2290
+ "__schema": "ParameterSchema",
2210
2291
  "location": {
2211
2292
  "filePath": "compositions.preview.runtime.ts",
2212
2293
  "line": 42,
2213
- "character": 64
2294
+ "character": 49
2214
2295
  },
2215
- "name": "PreviewModule",
2216
- "componentId": {
2217
- "scope": "teambit.preview",
2218
- "name": "preview"
2219
- }
2296
+ "name": "previewModule",
2297
+ "type": {
2298
+ "__schema": "TypeRefSchema",
2299
+ "location": {
2300
+ "filePath": "compositions.preview.runtime.ts",
2301
+ "line": 42,
2302
+ "character": 64
2303
+ },
2304
+ "name": "PreviewModule",
2305
+ "componentId": {
2306
+ "scope": "teambit.preview",
2307
+ "name": "preview"
2308
+ }
2309
+ },
2310
+ "isOptional": false,
2311
+ "isSpread": false
2312
+ }
2313
+ ],
2314
+ "returnType": {
2315
+ "__schema": "InferenceTypeSchema",
2316
+ "location": {
2317
+ "filePath": "compositions.preview.runtime.ts",
2318
+ "line": 42,
2319
+ "character": 3
2220
2320
  },
2221
- "isOptional": false,
2222
- "isSpread": false
2223
- }
2224
- ],
2225
- "returnType": {
2226
- "__schema": "InferenceTypeSchema",
2321
+ "type": "any"
2322
+ },
2323
+ "modifiers": []
2324
+ },
2325
+ {
2326
+ "__schema": "FunctionLikeSchema",
2227
2327
  "location": {
2228
2328
  "filePath": "compositions.preview.runtime.ts",
2229
- "line": 42,
2329
+ "line": 50,
2230
2330
  "character": 3
2231
2331
  },
2232
- "type": "any"
2233
- },
2234
- "modifiers": []
2235
- },
2236
- {
2237
- "__schema": "FunctionLikeSchema",
2238
- "location": {
2239
- "filePath": "compositions.preview.runtime.ts",
2240
- "line": 50,
2241
- "character": 3
2242
- },
2243
- "signature": "(method) CompositionsPreview.getMetadata(componentFullName: string, previewModule: PreviewModule): CompositionBrowserMetadataObject | undefined",
2244
- "name": "getMetadata",
2245
- "params": [
2246
- {
2247
- "__schema": "ParameterSchema",
2248
- "location": {
2249
- "filePath": "compositions.preview.runtime.ts",
2250
- "line": 50,
2251
- "character": 15
2252
- },
2253
- "name": "componentFullName",
2254
- "type": {
2255
- "__schema": "KeywordTypeSchema",
2332
+ "signature": "(method) CompositionsPreview.getMetadata(componentFullName: string, previewModule: PreviewModule): CompositionBrowserMetadataObject | undefined",
2333
+ "name": "getMetadata",
2334
+ "params": [
2335
+ {
2336
+ "__schema": "ParameterSchema",
2256
2337
  "location": {
2257
2338
  "filePath": "compositions.preview.runtime.ts",
2258
2339
  "line": 50,
2259
- "character": 34
2340
+ "character": 15
2260
2341
  },
2261
- "name": "string"
2342
+ "name": "componentFullName",
2343
+ "type": {
2344
+ "__schema": "KeywordTypeSchema",
2345
+ "location": {
2346
+ "filePath": "compositions.preview.runtime.ts",
2347
+ "line": 50,
2348
+ "character": 34
2349
+ },
2350
+ "name": "string"
2351
+ },
2352
+ "isOptional": false,
2353
+ "isSpread": false
2262
2354
  },
2263
- "isOptional": false,
2264
- "isSpread": false
2265
- },
2266
- {
2267
- "__schema": "ParameterSchema",
2355
+ {
2356
+ "__schema": "ParameterSchema",
2357
+ "location": {
2358
+ "filePath": "compositions.preview.runtime.ts",
2359
+ "line": 50,
2360
+ "character": 42
2361
+ },
2362
+ "name": "previewModule",
2363
+ "type": {
2364
+ "__schema": "TypeRefSchema",
2365
+ "location": {
2366
+ "filePath": "compositions.preview.runtime.ts",
2367
+ "line": 50,
2368
+ "character": 57
2369
+ },
2370
+ "name": "PreviewModule",
2371
+ "componentId": {
2372
+ "scope": "teambit.preview",
2373
+ "name": "preview"
2374
+ }
2375
+ },
2376
+ "isOptional": false,
2377
+ "isSpread": false
2378
+ }
2379
+ ],
2380
+ "returnType": {
2381
+ "__schema": "TypeUnionSchema",
2268
2382
  "location": {
2269
2383
  "filePath": "compositions.preview.runtime.ts",
2270
2384
  "line": 50,
2271
- "character": 42
2385
+ "character": 73
2272
2386
  },
2273
- "name": "previewModule",
2274
- "type": {
2275
- "__schema": "TypeRefSchema",
2276
- "location": {
2277
- "filePath": "compositions.preview.runtime.ts",
2278
- "line": 50,
2279
- "character": 57
2387
+ "types": [
2388
+ {
2389
+ "__schema": "TypeRefSchema",
2390
+ "location": {
2391
+ "filePath": "compositions.preview.runtime.ts",
2392
+ "line": 50,
2393
+ "character": 73
2394
+ },
2395
+ "name": "CompositionBrowserMetadataObject",
2396
+ "internalFilePath": "composition.ts"
2280
2397
  },
2281
- "name": "PreviewModule",
2282
- "componentId": {
2283
- "scope": "teambit.preview",
2284
- "name": "preview"
2398
+ {
2399
+ "__schema": "KeywordTypeSchema",
2400
+ "location": {
2401
+ "filePath": "compositions.preview.runtime.ts",
2402
+ "line": 50,
2403
+ "character": 108
2404
+ },
2405
+ "name": "undefined"
2285
2406
  }
2286
- },
2287
- "isOptional": false,
2288
- "isSpread": false
2289
- }
2290
- ],
2291
- "returnType": {
2292
- "__schema": "TypeUnionSchema",
2293
- "location": {
2294
- "filePath": "compositions.preview.runtime.ts",
2295
- "line": 50,
2296
- "character": 73
2407
+ ]
2297
2408
  },
2298
- "types": [
2299
- {
2300
- "__schema": "TypeRefSchema",
2301
- "location": {
2302
- "filePath": "compositions.preview.runtime.ts",
2303
- "line": 50,
2304
- "character": 73
2305
- },
2306
- "name": "CompositionBrowserMetadataObject",
2307
- "internalFilePath": "composition.ts"
2308
- },
2309
- {
2310
- "__schema": "KeywordTypeSchema",
2311
- "location": {
2312
- "filePath": "compositions.preview.runtime.ts",
2313
- "line": 50,
2314
- "character": 108
2315
- },
2316
- "name": "undefined"
2317
- }
2318
- ]
2319
- },
2320
- "modifiers": []
2321
- },
2322
- {
2323
- "__schema": "VariableLikeSchema",
2324
- "location": {
2325
- "filePath": "compositions.preview.runtime.ts",
2326
- "line": 81,
2327
- "character": 3
2409
+ "modifiers": []
2328
2410
  },
2329
- "signature": "(property) CompositionsPreview.runtime: RuntimeDefinition",
2330
- "name": "runtime",
2331
- "type": {
2332
- "__schema": "InferenceTypeSchema",
2411
+ {
2412
+ "__schema": "VariableLikeSchema",
2333
2413
  "location": {
2334
2414
  "filePath": "compositions.preview.runtime.ts",
2335
2415
  "line": 81,
2336
2416
  "character": 3
2337
2417
  },
2338
- "type": "RuntimeDefinition"
2339
- },
2340
- "isOptional": true,
2341
- "defaultValue": "PreviewRuntime"
2342
- },
2343
- {
2344
- "__schema": "VariableLikeSchema",
2345
- "location": {
2346
- "filePath": "compositions.preview.runtime.ts",
2347
- "line": 83,
2348
- "character": 3
2418
+ "signature": "(property) CompositionsPreview.runtime: RuntimeDefinition",
2419
+ "name": "runtime",
2420
+ "type": {
2421
+ "__schema": "InferenceTypeSchema",
2422
+ "location": {
2423
+ "filePath": "compositions.preview.runtime.ts",
2424
+ "line": 81,
2425
+ "character": 3
2426
+ },
2427
+ "type": "RuntimeDefinition"
2428
+ },
2429
+ "isOptional": true,
2430
+ "defaultValue": "PreviewRuntime"
2349
2431
  },
2350
- "signature": "(property) CompositionsPreview.dependencies: Aspect[]",
2351
- "name": "dependencies",
2352
- "type": {
2353
- "__schema": "InferenceTypeSchema",
2432
+ {
2433
+ "__schema": "VariableLikeSchema",
2354
2434
  "location": {
2355
2435
  "filePath": "compositions.preview.runtime.ts",
2356
2436
  "line": 83,
2357
2437
  "character": 3
2358
2438
  },
2359
- "type": "Aspect[]"
2360
- },
2361
- "isOptional": true,
2362
- "defaultValue": "[PreviewAspect]"
2363
- },
2364
- {
2365
- "__schema": "FunctionLikeSchema",
2366
- "location": {
2367
- "filePath": "compositions.preview.runtime.ts",
2368
- "line": 85,
2369
- "character": 3
2370
- },
2371
- "signature": "(method) CompositionsPreview.provider([preview]: [PreviewPreview]): Promise<CompositionsPreview>",
2372
- "name": "provider",
2373
- "params": [
2374
- {
2375
- "__schema": "ParameterSchema",
2439
+ "signature": "(property) CompositionsPreview.dependencies: Aspect[]",
2440
+ "name": "dependencies",
2441
+ "type": {
2442
+ "__schema": "InferenceTypeSchema",
2376
2443
  "location": {
2377
2444
  "filePath": "compositions.preview.runtime.ts",
2378
- "line": 85,
2379
- "character": 25
2445
+ "line": 83,
2446
+ "character": 3
2380
2447
  },
2381
- "name": "[ preview ]",
2382
- "type": {
2383
- "__schema": "TupleTypeSchema",
2448
+ "type": "Aspect[]"
2449
+ },
2450
+ "isOptional": true,
2451
+ "defaultValue": "[PreviewAspect]"
2452
+ },
2453
+ {
2454
+ "__schema": "FunctionLikeSchema",
2455
+ "location": {
2456
+ "filePath": "compositions.preview.runtime.ts",
2457
+ "line": 85,
2458
+ "character": 3
2459
+ },
2460
+ "signature": "(method) CompositionsPreview.provider([preview]: [PreviewPreview]): Promise<CompositionsPreview>",
2461
+ "name": "provider",
2462
+ "params": [
2463
+ {
2464
+ "__schema": "ParameterSchema",
2384
2465
  "location": {
2385
2466
  "filePath": "compositions.preview.runtime.ts",
2386
2467
  "line": 85,
2387
- "character": 36
2468
+ "character": 25
2388
2469
  },
2389
- "elements": [
2390
- {
2391
- "__schema": "TypeRefSchema",
2392
- "location": {
2393
- "filePath": "compositions.preview.runtime.ts",
2394
- "line": 85,
2395
- "character": 37
2396
- },
2397
- "name": "PreviewPreview",
2398
- "componentId": {
2399
- "scope": "teambit.preview",
2400
- "name": "preview"
2470
+ "name": "[ preview ]",
2471
+ "type": {
2472
+ "__schema": "TupleTypeSchema",
2473
+ "location": {
2474
+ "filePath": "compositions.preview.runtime.ts",
2475
+ "line": 85,
2476
+ "character": 36
2477
+ },
2478
+ "elements": [
2479
+ {
2480
+ "__schema": "TypeRefSchema",
2481
+ "location": {
2482
+ "filePath": "compositions.preview.runtime.ts",
2483
+ "line": 85,
2484
+ "character": 37
2485
+ },
2486
+ "name": "PreviewPreview",
2487
+ "componentId": {
2488
+ "scope": "teambit.preview",
2489
+ "name": "preview"
2490
+ }
2401
2491
  }
2402
- }
2403
- ]
2492
+ ]
2493
+ },
2494
+ "isOptional": false,
2495
+ "isSpread": false
2496
+ }
2497
+ ],
2498
+ "returnType": {
2499
+ "__schema": "InferenceTypeSchema",
2500
+ "location": {
2501
+ "filePath": "compositions.preview.runtime.ts",
2502
+ "line": 85,
2503
+ "character": 3
2404
2504
  },
2405
- "isOptional": false,
2406
- "isSpread": false
2407
- }
2408
- ],
2409
- "returnType": {
2410
- "__schema": "InferenceTypeSchema",
2411
- "location": {
2412
- "filePath": "compositions.preview.runtime.ts",
2413
- "line": 85,
2414
- "character": 3
2505
+ "type": "Promise<CompositionsPreview>"
2415
2506
  },
2416
- "type": "Promise<CompositionsPreview>"
2417
- },
2418
- "modifiers": [
2419
- "static",
2420
- "async"
2421
- ]
2422
- }
2423
- ],
2424
- "extendsNodes": [],
2425
- "implementNodes": []
2507
+ "modifiers": [
2508
+ "static",
2509
+ "async"
2510
+ ]
2511
+ }
2512
+ ],
2513
+ "extendsNodes": [],
2514
+ "implementNodes": []
2515
+ }
2426
2516
  },
2427
2517
  {
2428
- "__schema": "ReactSchema",
2518
+ "__schema": "ExportSchema",
2429
2519
  "location": {
2430
- "filePath": "ui/composition-preview.tsx",
2431
- "line": 13,
2432
- "character": 1
2520
+ "filePath": "index.ts",
2521
+ "line": 11,
2522
+ "character": 10
2433
2523
  },
2434
- "signature": "function ComponentComposition({ composition, component, queryParams, ...rest }: ComponentCompositionProps): React.JSX.Element",
2435
2524
  "name": "ComponentComposition",
2436
- "props": {
2437
- "__schema": "ParameterSchema",
2525
+ "exportNode": {
2526
+ "__schema": "ReactSchema",
2438
2527
  "location": {
2439
2528
  "filePath": "ui/composition-preview.tsx",
2440
2529
  "line": 13,
2441
- "character": 38
2530
+ "character": 1
2442
2531
  },
2443
- "name": "{ composition, component, queryParams = [], ...rest }",
2444
- "type": {
2445
- "__schema": "TypeRefSchema",
2532
+ "signature": "function ComponentComposition({ composition, component, queryParams, ...rest }: ComponentCompositionProps): React.JSX.Element",
2533
+ "name": "ComponentComposition",
2534
+ "props": {
2535
+ "__schema": "ParameterSchema",
2446
2536
  "location": {
2447
2537
  "filePath": "ui/composition-preview.tsx",
2448
2538
  "line": 13,
2449
- "character": 93
2539
+ "character": 38
2450
2540
  },
2451
- "name": "ComponentCompositionProps",
2452
- "internalFilePath": "ui/composition-preview.tsx"
2453
- },
2454
- "isOptional": false,
2455
- "objectBindingNodes": [
2456
- {
2457
- "__schema": "InferenceTypeSchema",
2541
+ "name": "{ composition, component, queryParams = [], ...rest }",
2542
+ "type": {
2543
+ "__schema": "TypeRefSchema",
2458
2544
  "location": {
2459
2545
  "filePath": "ui/composition-preview.tsx",
2460
2546
  "line": 13,
2461
- "character": 40
2547
+ "character": 93
2462
2548
  },
2463
- "name": "composition",
2464
- "type": "Composition | undefined",
2465
- "isSpread": false
2549
+ "name": "ComponentCompositionProps",
2550
+ "internalFilePath": "ui/composition-preview.tsx"
2466
2551
  },
2467
- {
2468
- "__schema": "InferenceTypeSchema",
2469
- "location": {
2470
- "filePath": "ui/composition-preview.tsx",
2471
- "line": 13,
2472
- "character": 53
2552
+ "isOptional": false,
2553
+ "objectBindingNodes": [
2554
+ {
2555
+ "__schema": "InferenceTypeSchema",
2556
+ "location": {
2557
+ "filePath": "ui/composition-preview.tsx",
2558
+ "line": 13,
2559
+ "character": 40
2560
+ },
2561
+ "name": "composition",
2562
+ "type": "Composition | undefined",
2563
+ "isSpread": false
2473
2564
  },
2474
- "name": "component",
2475
- "type": "ComponentModel",
2476
- "isSpread": false
2477
- },
2478
- {
2479
- "__schema": "InferenceTypeSchema",
2480
- "location": {
2481
- "filePath": "ui/composition-preview.tsx",
2482
- "line": 13,
2483
- "character": 64
2565
+ {
2566
+ "__schema": "InferenceTypeSchema",
2567
+ "location": {
2568
+ "filePath": "ui/composition-preview.tsx",
2569
+ "line": 13,
2570
+ "character": 53
2571
+ },
2572
+ "name": "component",
2573
+ "type": "ComponentModel",
2574
+ "isSpread": false
2484
2575
  },
2485
- "name": "queryParams",
2486
- "type": "string | string[]",
2487
- "defaultValue": "[]",
2488
- "isSpread": false
2489
- },
2490
- {
2491
- "__schema": "InferenceTypeSchema",
2492
- "location": {
2493
- "filePath": "ui/composition-preview.tsx",
2494
- "line": 13,
2495
- "character": 85
2576
+ {
2577
+ "__schema": "InferenceTypeSchema",
2578
+ "location": {
2579
+ "filePath": "ui/composition-preview.tsx",
2580
+ "line": 13,
2581
+ "character": 64
2582
+ },
2583
+ "name": "queryParams",
2584
+ "type": "string | string[]",
2585
+ "defaultValue": "[]",
2586
+ "isSpread": false
2496
2587
  },
2497
- "name": "rest",
2498
- "type": "{\n previewName?: string | undefined;\n innerBottomPadding?: number | undefined;\n onLoad?: ((event?: any, props?: OnPreviewLoadProps | undefined) => void) | undefined;\n ... 278 more ...;\n width?: string | ... 1 more ... | undefined;\n}",
2499
- "isSpread": true
2500
- }
2501
- ],
2502
- "isSpread": false
2503
- },
2504
- "returnType": {
2505
- "__schema": "TypeRefSchema",
2506
- "location": {
2507
- "filePath": "ui/composition-preview.tsx",
2508
- "line": 13,
2509
- "character": 1
2588
+ {
2589
+ "__schema": "InferenceTypeSchema",
2590
+ "location": {
2591
+ "filePath": "ui/composition-preview.tsx",
2592
+ "line": 13,
2593
+ "character": 85
2594
+ },
2595
+ "name": "rest",
2596
+ "type": "{\n previewName?: string | undefined;\n innerBottomPadding?: number | undefined;\n onLoad?: ((event?: any, props?: OnPreviewLoadProps | undefined) => void) | undefined;\n ... 278 more ...;\n width?: string | ... 1 more ... | undefined;\n}",
2597
+ "isSpread": true
2598
+ }
2599
+ ],
2600
+ "isSpread": false
2510
2601
  },
2511
- "name": "React.JSX.Element",
2512
- "packageName": "react"
2513
- },
2514
- "modifiers": [
2515
- "export"
2516
- ]
2602
+ "returnType": {
2603
+ "__schema": "TypeRefSchema",
2604
+ "location": {
2605
+ "filePath": "ui/composition-preview.tsx",
2606
+ "line": 13,
2607
+ "character": 1
2608
+ },
2609
+ "name": "React.JSX.Element",
2610
+ "packageName": "react"
2611
+ },
2612
+ "modifiers": [
2613
+ "export"
2614
+ ]
2615
+ }
2517
2616
  },
2518
2617
  {
2519
2618
  "__schema": "UnImplementedSchema",
@@ -5709,7 +5808,7 @@
5709
5808
  "componentId": {
5710
5809
  "scope": "teambit.compositions",
5711
5810
  "name": "compositions",
5712
- "version": "1.0.257"
5811
+ "version": "1.0.259"
5713
5812
  },
5714
5813
  "taggedModuleExports": []
5715
5814
  }