@teambit/component-tree 1.0.512 → 1.0.514

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.
@@ -1,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.component/component-tree@1.0.512" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.component/component-tree@1.0.514" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/component-tree-preview"]=t():e["teambit.component/component-tree-preview"]=t()}(self,(()=>(()=>{"use strict";var e={521:(e,t,o)=>{var n={id:"teambit.component/component-tree@1.0.512",homepage:"https://bit.cloud/teambit/component/component-tree",exported:!0};function r(){const e=i(o(594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const c=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/component-tree.svg"}));c.__bit_component=n,t.Logo=c},594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};o.r(n),o.d(n,{compositions:()=>m,compositions_metadata:()=>v,overview:()=>f});var r={};o.r(r),o.d(r,{default:()=>d});var i=o(521);o(594);const c=MdxJsReact,p=TeambitMdxUiMdxScopeContext;var a=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},s.apply(null,arguments)}var u={},l="wrapper";function d(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,a);return(0,c.mdx)(l,s({},u,o,{components:t,mdxType:"MDXLayout"}),(0,c.mdx)(p.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const m=[i],f=[r],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.component/component-tree-preview"]=t():e["teambit.component/component-tree-preview"]=t()}(self,(()=>(()=>{"use strict";var e={84:(e,t,o)=>{var n={id:"teambit.component/component-tree@1.0.514",homepage:"https://bit.cloud/teambit/component/component-tree",exported:!0};function r(){const e=i(o(594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const c=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/component-tree.svg"}));c.__bit_component=n,t.Logo=c},594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};o.r(n),o.d(n,{compositions:()=>m,compositions_metadata:()=>v,overview:()=>f});var r={};o.r(r),o.d(r,{default:()=>d});var i=o(84);o(594);const c=MdxJsReact,p=TeambitMdxUiMdxScopeContext;var a=["components"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},s.apply(null,arguments)}var u={},l="wrapper";function d(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,a);return(0,c.mdx)(l,s({},u,o,{components:t,mdxType:"MDXLayout"}),(0,c.mdx)(p.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const m=[i],f=[r],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
@@ -0,0 +1,1011 @@
1
+ {
2
+ "__schema": "APISchema",
3
+ "location": {
4
+ "filePath": "index.ts",
5
+ "line": 1,
6
+ "character": 1
7
+ },
8
+ "module": {
9
+ "__schema": "ModuleSchema",
10
+ "location": {
11
+ "filePath": "index.ts",
12
+ "line": 1,
13
+ "character": 1
14
+ },
15
+ "exports": [
16
+ {
17
+ "__schema": "ExportSchema",
18
+ "location": {
19
+ "filePath": "index.ts",
20
+ "line": 3,
21
+ "character": 10
22
+ },
23
+ "signature": "const ComponentTreeAspect: Aspect",
24
+ "name": "ComponentTreeAspect",
25
+ "exportNode": {
26
+ "__schema": "VariableLikeSchema",
27
+ "location": {
28
+ "filePath": "component-tree.aspect.ts",
29
+ "line": 3,
30
+ "character": 14
31
+ },
32
+ "signature": "const ComponentTreeAspect: Aspect",
33
+ "name": "ComponentTreeAspect",
34
+ "type": {
35
+ "__schema": "TypeRefSchema",
36
+ "location": {
37
+ "filePath": "component-tree.aspect.ts",
38
+ "line": 3,
39
+ "character": 14
40
+ },
41
+ "name": "Aspect",
42
+ "componentId": {
43
+ "scope": "teambit.harmony",
44
+ "name": "harmony",
45
+ "version": "0.4.6"
46
+ }
47
+ },
48
+ "isOptional": false,
49
+ "defaultValue": "Aspect.create({\n id: 'teambit.component/component-tree',\n})"
50
+ }
51
+ },
52
+ {
53
+ "__schema": "ExportSchema",
54
+ "location": {
55
+ "filePath": "index.ts",
56
+ "line": 4,
57
+ "character": 15
58
+ },
59
+ "signature": "class ComponentTreeUI",
60
+ "name": "ComponentTreeUI",
61
+ "exportNode": {
62
+ "__schema": "ClassSchema",
63
+ "location": {
64
+ "filePath": "component-tree.ui.runtime.tsx",
65
+ "line": 9,
66
+ "character": 1
67
+ },
68
+ "signature": "class ComponentTreeUI",
69
+ "name": "ComponentTreeUI",
70
+ "members": [
71
+ {
72
+ "__schema": "ConstructorSchema",
73
+ "location": {
74
+ "filePath": "component-tree.ui.runtime.tsx",
75
+ "line": 10,
76
+ "character": 3
77
+ },
78
+ "signature": "constructor ComponentTreeUI(treeNodeSlot: ComponentTreeSlot): ComponentTreeUI",
79
+ "name": "constructor",
80
+ "params": [
81
+ {
82
+ "__schema": "ParameterSchema",
83
+ "location": {
84
+ "filePath": "component-tree.ui.runtime.tsx",
85
+ "line": 10,
86
+ "character": 15
87
+ },
88
+ "name": "treeNodeSlot",
89
+ "type": {
90
+ "__schema": "TypeRefSchema",
91
+ "location": {
92
+ "filePath": "component-tree.ui.runtime.tsx",
93
+ "line": 10,
94
+ "character": 37
95
+ },
96
+ "name": "ComponentTreeSlot"
97
+ },
98
+ "isOptional": false,
99
+ "isSpread": false
100
+ }
101
+ ],
102
+ "returnType": {
103
+ "__schema": "ThisTypeSchema",
104
+ "location": {
105
+ "filePath": "component-tree.ui.runtime.tsx",
106
+ "line": 9,
107
+ "character": 1
108
+ },
109
+ "name": "ComponentTreeUI"
110
+ },
111
+ "modifiers": []
112
+ },
113
+ {
114
+ "__schema": "FunctionLikeSchema",
115
+ "location": {
116
+ "filePath": "component-tree.ui.runtime.tsx",
117
+ "line": 12,
118
+ "character": 3
119
+ },
120
+ "signature": "(method) ComponentTreeUI.registerTreeNode(treeNode: ComponentTreeNode): this",
121
+ "name": "registerTreeNode",
122
+ "params": [
123
+ {
124
+ "__schema": "ParameterSchema",
125
+ "location": {
126
+ "filePath": "component-tree.ui.runtime.tsx",
127
+ "line": 12,
128
+ "character": 20
129
+ },
130
+ "name": "treeNode",
131
+ "type": {
132
+ "__schema": "TypeRefSchema",
133
+ "location": {
134
+ "filePath": "component-tree.ui.runtime.tsx",
135
+ "line": 12,
136
+ "character": 30
137
+ },
138
+ "name": "ComponentTreeNode"
139
+ },
140
+ "isOptional": false,
141
+ "isSpread": false
142
+ }
143
+ ],
144
+ "returnType": {
145
+ "__schema": "TypeRefSchema",
146
+ "location": {
147
+ "filePath": "component-tree.ui.runtime.tsx",
148
+ "line": 12,
149
+ "character": 3
150
+ },
151
+ "name": "ComponentTreeUI"
152
+ },
153
+ "modifiers": []
154
+ },
155
+ {
156
+ "__schema": "VariableLikeSchema",
157
+ "location": {
158
+ "filePath": "component-tree.ui.runtime.tsx",
159
+ "line": 17,
160
+ "character": 3
161
+ },
162
+ "signature": "(property) ComponentTreeUI.runtime: RuntimeDefinition",
163
+ "name": "runtime",
164
+ "type": {
165
+ "__schema": "InferenceTypeSchema",
166
+ "location": {
167
+ "filePath": "component-tree.ui.runtime.tsx",
168
+ "line": 17,
169
+ "character": 3
170
+ },
171
+ "type": "RuntimeDefinition"
172
+ },
173
+ "isOptional": true,
174
+ "defaultValue": "UIRuntime"
175
+ },
176
+ {
177
+ "__schema": "VariableLikeSchema",
178
+ "location": {
179
+ "filePath": "component-tree.ui.runtime.tsx",
180
+ "line": 19,
181
+ "character": 3
182
+ },
183
+ "signature": "(property) ComponentTreeUI.slots: ((registerFn: () => string) => SlotRegistry<ComponentTreeNode>)[]",
184
+ "name": "slots",
185
+ "type": {
186
+ "__schema": "InferenceTypeSchema",
187
+ "location": {
188
+ "filePath": "component-tree.ui.runtime.tsx",
189
+ "line": 19,
190
+ "character": 3
191
+ },
192
+ "type": "((registerFn: () => string) => SlotRegistry<ComponentTreeNode>)[]"
193
+ },
194
+ "isOptional": true,
195
+ "defaultValue": "[Slot.withType<ComponentTreeNode>()]"
196
+ },
197
+ {
198
+ "__schema": "VariableLikeSchema",
199
+ "location": {
200
+ "filePath": "component-tree.ui.runtime.tsx",
201
+ "line": 21,
202
+ "character": 3
203
+ },
204
+ "signature": "(property) ComponentTreeUI.dependencies: never[]",
205
+ "name": "dependencies",
206
+ "type": {
207
+ "__schema": "InferenceTypeSchema",
208
+ "location": {
209
+ "filePath": "component-tree.ui.runtime.tsx",
210
+ "line": 21,
211
+ "character": 3
212
+ },
213
+ "type": "never[]"
214
+ },
215
+ "isOptional": true,
216
+ "defaultValue": "[]"
217
+ },
218
+ {
219
+ "__schema": "FunctionLikeSchema",
220
+ "location": {
221
+ "filePath": "component-tree.ui.runtime.tsx",
222
+ "line": 23,
223
+ "character": 3
224
+ },
225
+ "signature": "(method) ComponentTreeUI.provider(deps: any, config: any, [treeNodeSlot]: [ComponentTreeSlot]): Promise<ComponentTreeUI>",
226
+ "name": "provider",
227
+ "params": [
228
+ {
229
+ "__schema": "ParameterSchema",
230
+ "location": {
231
+ "filePath": "component-tree.ui.runtime.tsx",
232
+ "line": 23,
233
+ "character": 25
234
+ },
235
+ "name": "deps",
236
+ "type": {
237
+ "__schema": "InferenceTypeSchema",
238
+ "location": {
239
+ "filePath": "component-tree.ui.runtime.tsx",
240
+ "line": 23,
241
+ "character": 25
242
+ },
243
+ "type": "any"
244
+ },
245
+ "isOptional": false,
246
+ "isSpread": false
247
+ },
248
+ {
249
+ "__schema": "ParameterSchema",
250
+ "location": {
251
+ "filePath": "component-tree.ui.runtime.tsx",
252
+ "line": 23,
253
+ "character": 31
254
+ },
255
+ "name": "config",
256
+ "type": {
257
+ "__schema": "InferenceTypeSchema",
258
+ "location": {
259
+ "filePath": "component-tree.ui.runtime.tsx",
260
+ "line": 23,
261
+ "character": 31
262
+ },
263
+ "type": "any"
264
+ },
265
+ "isOptional": false,
266
+ "isSpread": false
267
+ },
268
+ {
269
+ "__schema": "ParameterSchema",
270
+ "location": {
271
+ "filePath": "component-tree.ui.runtime.tsx",
272
+ "line": 23,
273
+ "character": 39
274
+ },
275
+ "name": "[ treeNodeSlot ]",
276
+ "type": {
277
+ "__schema": "TupleTypeSchema",
278
+ "location": {
279
+ "filePath": "component-tree.ui.runtime.tsx",
280
+ "line": 23,
281
+ "character": 55
282
+ },
283
+ "elements": [
284
+ {
285
+ "__schema": "TypeRefSchema",
286
+ "location": {
287
+ "filePath": "component-tree.ui.runtime.tsx",
288
+ "line": 23,
289
+ "character": 56
290
+ },
291
+ "name": "ComponentTreeSlot"
292
+ }
293
+ ]
294
+ },
295
+ "isOptional": false,
296
+ "isSpread": false
297
+ }
298
+ ],
299
+ "returnType": {
300
+ "__schema": "InferenceTypeSchema",
301
+ "location": {
302
+ "filePath": "component-tree.ui.runtime.tsx",
303
+ "line": 23,
304
+ "character": 3
305
+ },
306
+ "type": "Promise<ComponentTreeUI>"
307
+ },
308
+ "modifiers": [
309
+ "static",
310
+ "async"
311
+ ]
312
+ }
313
+ ],
314
+ "extendsNodes": [],
315
+ "implementNodes": []
316
+ }
317
+ },
318
+ {
319
+ "__schema": "ExportSchema",
320
+ "location": {
321
+ "filePath": "index.ts",
322
+ "line": 5,
323
+ "character": 15
324
+ },
325
+ "signature": "type ComponentTreeSlot = SlotRegistry<ComponentTreeNode>",
326
+ "name": "ComponentTreeSlot",
327
+ "exportNode": {
328
+ "__schema": "TypeSchema",
329
+ "location": {
330
+ "filePath": "component-tree.ui.runtime.tsx",
331
+ "line": 7,
332
+ "character": 1
333
+ },
334
+ "signature": "type ComponentTreeSlot = SlotRegistry<ComponentTreeNode>",
335
+ "name": "ComponentTreeSlot",
336
+ "type": {
337
+ "__schema": "TypeRefSchema",
338
+ "location": {
339
+ "filePath": "component-tree.ui.runtime.tsx",
340
+ "line": 7,
341
+ "character": 33
342
+ },
343
+ "name": "SlotRegistry",
344
+ "componentId": {
345
+ "scope": "teambit.harmony",
346
+ "name": "harmony",
347
+ "version": "0.4.6"
348
+ },
349
+ "typeArgs": [
350
+ {
351
+ "__schema": "TypeRefSchema",
352
+ "location": {
353
+ "filePath": "component-tree.ui.runtime.tsx",
354
+ "line": 7,
355
+ "character": 46
356
+ },
357
+ "name": "ComponentTreeNode"
358
+ }
359
+ ]
360
+ }
361
+ }
362
+ },
363
+ {
364
+ "__schema": "ExportSchema",
365
+ "location": {
366
+ "filePath": "index.ts",
367
+ "line": 6,
368
+ "character": 15
369
+ },
370
+ "signature": "type ComponentTreeNode = {\n widget: ComponentType<ComponentTreeNodeProps>;\n}",
371
+ "name": "ComponentTreeNode",
372
+ "exportNode": {
373
+ "__schema": "TypeSchema",
374
+ "location": {
375
+ "filePath": "component-tree-node.ts",
376
+ "line": 11,
377
+ "character": 1
378
+ },
379
+ "signature": "type ComponentTreeNode = {\n widget: ComponentType<ComponentTreeNodeProps>;\n}",
380
+ "name": "ComponentTreeNode",
381
+ "type": {
382
+ "__schema": "TypeLiteralSchema",
383
+ "location": {
384
+ "filePath": "component-tree-node.ts",
385
+ "line": 11,
386
+ "character": 33
387
+ },
388
+ "members": [
389
+ {
390
+ "__schema": "VariableLikeSchema",
391
+ "location": {
392
+ "filePath": "component-tree-node.ts",
393
+ "line": 15,
394
+ "character": 3
395
+ },
396
+ "doc": {
397
+ "__schema": "DocSchema",
398
+ "location": {
399
+ "filePath": "component-tree-node.ts",
400
+ "line": 12,
401
+ "character": 3
402
+ },
403
+ "raw": "/**\n * component to render inside the tree node.\n */",
404
+ "comment": "component to render inside the tree node.",
405
+ "tags": []
406
+ },
407
+ "signature": "(property) widget: ComponentType<ComponentTreeNodeProps>",
408
+ "name": "widget",
409
+ "type": {
410
+ "__schema": "TypeRefSchema",
411
+ "location": {
412
+ "filePath": "component-tree-node.ts",
413
+ "line": 15,
414
+ "character": 11
415
+ },
416
+ "name": "ComponentType",
417
+ "packageName": "react",
418
+ "typeArgs": [
419
+ {
420
+ "__schema": "TypeRefSchema",
421
+ "location": {
422
+ "filePath": "component-tree-node.ts",
423
+ "line": 15,
424
+ "character": 25
425
+ },
426
+ "name": "ComponentTreeNodeProps"
427
+ }
428
+ ]
429
+ },
430
+ "isOptional": false
431
+ }
432
+ ]
433
+ }
434
+ }
435
+ },
436
+ {
437
+ "__schema": "ExportSchema",
438
+ "location": {
439
+ "filePath": "index.ts",
440
+ "line": 6,
441
+ "character": 34
442
+ },
443
+ "signature": "type ComponentTreeNodeProps = {\n component: ComponentModel;\n}",
444
+ "name": "ComponentTreeNodeProps",
445
+ "exportNode": {
446
+ "__schema": "TypeSchema",
447
+ "location": {
448
+ "filePath": "component-tree-node.ts",
449
+ "line": 4,
450
+ "character": 1
451
+ },
452
+ "signature": "type ComponentTreeNodeProps = {\n component: ComponentModel;\n}",
453
+ "name": "ComponentTreeNodeProps",
454
+ "type": {
455
+ "__schema": "TypeLiteralSchema",
456
+ "location": {
457
+ "filePath": "component-tree-node.ts",
458
+ "line": 4,
459
+ "character": 38
460
+ },
461
+ "members": [
462
+ {
463
+ "__schema": "VariableLikeSchema",
464
+ "location": {
465
+ "filePath": "component-tree-node.ts",
466
+ "line": 8,
467
+ "character": 3
468
+ },
469
+ "doc": {
470
+ "__schema": "DocSchema",
471
+ "location": {
472
+ "filePath": "component-tree-node.ts",
473
+ "line": 5,
474
+ "character": 3
475
+ },
476
+ "raw": "/**\n * component model.\n */",
477
+ "comment": "component model.",
478
+ "tags": []
479
+ },
480
+ "signature": "(property) component: ComponentModel",
481
+ "name": "component",
482
+ "type": {
483
+ "__schema": "TypeRefSchema",
484
+ "location": {
485
+ "filePath": "component-tree-node.ts",
486
+ "line": 8,
487
+ "character": 3
488
+ },
489
+ "name": "ComponentModel",
490
+ "componentId": {
491
+ "scope": "teambit.component",
492
+ "name": "component"
493
+ }
494
+ },
495
+ "isOptional": false
496
+ }
497
+ ]
498
+ }
499
+ }
500
+ },
501
+ {
502
+ "__schema": "UnImplementedSchema",
503
+ "location": {
504
+ "filePath": "index.ts",
505
+ "line": 7,
506
+ "character": 16
507
+ },
508
+ "name": "ComponentTreeAspect",
509
+ "type": "Identifier"
510
+ }
511
+ ],
512
+ "internals": []
513
+ },
514
+ "internals": [
515
+ {
516
+ "__schema": "ModuleSchema",
517
+ "location": {
518
+ "filePath": "component-tree.aspect.ts",
519
+ "line": 1,
520
+ "character": 1
521
+ },
522
+ "exports": [
523
+ {
524
+ "__schema": "VariableLikeSchema",
525
+ "location": {
526
+ "filePath": "component-tree.aspect.ts",
527
+ "line": 3,
528
+ "character": 14
529
+ },
530
+ "signature": "const ComponentTreeAspect: Aspect",
531
+ "name": "ComponentTreeAspect",
532
+ "type": {
533
+ "__schema": "TypeRefSchema",
534
+ "location": {
535
+ "filePath": "component-tree.aspect.ts",
536
+ "line": 3,
537
+ "character": 14
538
+ },
539
+ "name": "Aspect",
540
+ "componentId": {
541
+ "scope": "teambit.harmony",
542
+ "name": "harmony",
543
+ "version": "0.4.6"
544
+ }
545
+ },
546
+ "isOptional": false,
547
+ "defaultValue": "Aspect.create({\n id: 'teambit.component/component-tree',\n})"
548
+ },
549
+ {
550
+ "__schema": "UnImplementedSchema",
551
+ "location": {
552
+ "filePath": "component-tree.aspect.ts",
553
+ "line": 7,
554
+ "character": 16
555
+ },
556
+ "name": "ComponentTreeAspect",
557
+ "type": "Identifier"
558
+ }
559
+ ],
560
+ "internals": []
561
+ },
562
+ {
563
+ "__schema": "ModuleSchema",
564
+ "location": {
565
+ "filePath": "component-tree.ui.runtime.tsx",
566
+ "line": 1,
567
+ "character": 1
568
+ },
569
+ "exports": [
570
+ {
571
+ "__schema": "TypeSchema",
572
+ "location": {
573
+ "filePath": "component-tree.ui.runtime.tsx",
574
+ "line": 7,
575
+ "character": 1
576
+ },
577
+ "signature": "type ComponentTreeSlot = SlotRegistry<ComponentTreeNode>",
578
+ "name": "ComponentTreeSlot",
579
+ "type": {
580
+ "__schema": "TypeRefSchema",
581
+ "location": {
582
+ "filePath": "component-tree.ui.runtime.tsx",
583
+ "line": 7,
584
+ "character": 33
585
+ },
586
+ "name": "SlotRegistry",
587
+ "componentId": {
588
+ "scope": "teambit.harmony",
589
+ "name": "harmony",
590
+ "version": "0.4.6"
591
+ },
592
+ "typeArgs": [
593
+ {
594
+ "__schema": "TypeRefSchema",
595
+ "location": {
596
+ "filePath": "component-tree.ui.runtime.tsx",
597
+ "line": 7,
598
+ "character": 46
599
+ },
600
+ "name": "ComponentTreeNode"
601
+ }
602
+ ]
603
+ }
604
+ },
605
+ {
606
+ "__schema": "ClassSchema",
607
+ "location": {
608
+ "filePath": "component-tree.ui.runtime.tsx",
609
+ "line": 9,
610
+ "character": 1
611
+ },
612
+ "signature": "class ComponentTreeUI",
613
+ "name": "ComponentTreeUI",
614
+ "members": [
615
+ {
616
+ "__schema": "ConstructorSchema",
617
+ "location": {
618
+ "filePath": "component-tree.ui.runtime.tsx",
619
+ "line": 10,
620
+ "character": 3
621
+ },
622
+ "signature": "constructor ComponentTreeUI(treeNodeSlot: ComponentTreeSlot): ComponentTreeUI",
623
+ "name": "constructor",
624
+ "params": [
625
+ {
626
+ "__schema": "ParameterSchema",
627
+ "location": {
628
+ "filePath": "component-tree.ui.runtime.tsx",
629
+ "line": 10,
630
+ "character": 15
631
+ },
632
+ "name": "treeNodeSlot",
633
+ "type": {
634
+ "__schema": "TypeRefSchema",
635
+ "location": {
636
+ "filePath": "component-tree.ui.runtime.tsx",
637
+ "line": 10,
638
+ "character": 37
639
+ },
640
+ "name": "ComponentTreeSlot"
641
+ },
642
+ "isOptional": false,
643
+ "isSpread": false
644
+ }
645
+ ],
646
+ "returnType": {
647
+ "__schema": "ThisTypeSchema",
648
+ "location": {
649
+ "filePath": "component-tree.ui.runtime.tsx",
650
+ "line": 9,
651
+ "character": 1
652
+ },
653
+ "name": "ComponentTreeUI"
654
+ },
655
+ "modifiers": []
656
+ },
657
+ {
658
+ "__schema": "FunctionLikeSchema",
659
+ "location": {
660
+ "filePath": "component-tree.ui.runtime.tsx",
661
+ "line": 12,
662
+ "character": 3
663
+ },
664
+ "signature": "(method) ComponentTreeUI.registerTreeNode(treeNode: ComponentTreeNode): this",
665
+ "name": "registerTreeNode",
666
+ "params": [
667
+ {
668
+ "__schema": "ParameterSchema",
669
+ "location": {
670
+ "filePath": "component-tree.ui.runtime.tsx",
671
+ "line": 12,
672
+ "character": 20
673
+ },
674
+ "name": "treeNode",
675
+ "type": {
676
+ "__schema": "TypeRefSchema",
677
+ "location": {
678
+ "filePath": "component-tree.ui.runtime.tsx",
679
+ "line": 12,
680
+ "character": 30
681
+ },
682
+ "name": "ComponentTreeNode"
683
+ },
684
+ "isOptional": false,
685
+ "isSpread": false
686
+ }
687
+ ],
688
+ "returnType": {
689
+ "__schema": "TypeRefSchema",
690
+ "location": {
691
+ "filePath": "component-tree.ui.runtime.tsx",
692
+ "line": 12,
693
+ "character": 3
694
+ },
695
+ "name": "ComponentTreeUI"
696
+ },
697
+ "modifiers": []
698
+ },
699
+ {
700
+ "__schema": "VariableLikeSchema",
701
+ "location": {
702
+ "filePath": "component-tree.ui.runtime.tsx",
703
+ "line": 17,
704
+ "character": 3
705
+ },
706
+ "signature": "(property) ComponentTreeUI.runtime: RuntimeDefinition",
707
+ "name": "runtime",
708
+ "type": {
709
+ "__schema": "InferenceTypeSchema",
710
+ "location": {
711
+ "filePath": "component-tree.ui.runtime.tsx",
712
+ "line": 17,
713
+ "character": 3
714
+ },
715
+ "type": "RuntimeDefinition"
716
+ },
717
+ "isOptional": true,
718
+ "defaultValue": "UIRuntime"
719
+ },
720
+ {
721
+ "__schema": "VariableLikeSchema",
722
+ "location": {
723
+ "filePath": "component-tree.ui.runtime.tsx",
724
+ "line": 19,
725
+ "character": 3
726
+ },
727
+ "signature": "(property) ComponentTreeUI.slots: ((registerFn: () => string) => SlotRegistry<ComponentTreeNode>)[]",
728
+ "name": "slots",
729
+ "type": {
730
+ "__schema": "InferenceTypeSchema",
731
+ "location": {
732
+ "filePath": "component-tree.ui.runtime.tsx",
733
+ "line": 19,
734
+ "character": 3
735
+ },
736
+ "type": "((registerFn: () => string) => SlotRegistry<ComponentTreeNode>)[]"
737
+ },
738
+ "isOptional": true,
739
+ "defaultValue": "[Slot.withType<ComponentTreeNode>()]"
740
+ },
741
+ {
742
+ "__schema": "VariableLikeSchema",
743
+ "location": {
744
+ "filePath": "component-tree.ui.runtime.tsx",
745
+ "line": 21,
746
+ "character": 3
747
+ },
748
+ "signature": "(property) ComponentTreeUI.dependencies: never[]",
749
+ "name": "dependencies",
750
+ "type": {
751
+ "__schema": "InferenceTypeSchema",
752
+ "location": {
753
+ "filePath": "component-tree.ui.runtime.tsx",
754
+ "line": 21,
755
+ "character": 3
756
+ },
757
+ "type": "never[]"
758
+ },
759
+ "isOptional": true,
760
+ "defaultValue": "[]"
761
+ },
762
+ {
763
+ "__schema": "FunctionLikeSchema",
764
+ "location": {
765
+ "filePath": "component-tree.ui.runtime.tsx",
766
+ "line": 23,
767
+ "character": 3
768
+ },
769
+ "signature": "(method) ComponentTreeUI.provider(deps: any, config: any, [treeNodeSlot]: [ComponentTreeSlot]): Promise<ComponentTreeUI>",
770
+ "name": "provider",
771
+ "params": [
772
+ {
773
+ "__schema": "ParameterSchema",
774
+ "location": {
775
+ "filePath": "component-tree.ui.runtime.tsx",
776
+ "line": 23,
777
+ "character": 25
778
+ },
779
+ "name": "deps",
780
+ "type": {
781
+ "__schema": "InferenceTypeSchema",
782
+ "location": {
783
+ "filePath": "component-tree.ui.runtime.tsx",
784
+ "line": 23,
785
+ "character": 25
786
+ },
787
+ "type": "any"
788
+ },
789
+ "isOptional": false,
790
+ "isSpread": false
791
+ },
792
+ {
793
+ "__schema": "ParameterSchema",
794
+ "location": {
795
+ "filePath": "component-tree.ui.runtime.tsx",
796
+ "line": 23,
797
+ "character": 31
798
+ },
799
+ "name": "config",
800
+ "type": {
801
+ "__schema": "InferenceTypeSchema",
802
+ "location": {
803
+ "filePath": "component-tree.ui.runtime.tsx",
804
+ "line": 23,
805
+ "character": 31
806
+ },
807
+ "type": "any"
808
+ },
809
+ "isOptional": false,
810
+ "isSpread": false
811
+ },
812
+ {
813
+ "__schema": "ParameterSchema",
814
+ "location": {
815
+ "filePath": "component-tree.ui.runtime.tsx",
816
+ "line": 23,
817
+ "character": 39
818
+ },
819
+ "name": "[ treeNodeSlot ]",
820
+ "type": {
821
+ "__schema": "TupleTypeSchema",
822
+ "location": {
823
+ "filePath": "component-tree.ui.runtime.tsx",
824
+ "line": 23,
825
+ "character": 55
826
+ },
827
+ "elements": [
828
+ {
829
+ "__schema": "TypeRefSchema",
830
+ "location": {
831
+ "filePath": "component-tree.ui.runtime.tsx",
832
+ "line": 23,
833
+ "character": 56
834
+ },
835
+ "name": "ComponentTreeSlot"
836
+ }
837
+ ]
838
+ },
839
+ "isOptional": false,
840
+ "isSpread": false
841
+ }
842
+ ],
843
+ "returnType": {
844
+ "__schema": "InferenceTypeSchema",
845
+ "location": {
846
+ "filePath": "component-tree.ui.runtime.tsx",
847
+ "line": 23,
848
+ "character": 3
849
+ },
850
+ "type": "Promise<ComponentTreeUI>"
851
+ },
852
+ "modifiers": [
853
+ "static",
854
+ "async"
855
+ ]
856
+ }
857
+ ],
858
+ "extendsNodes": [],
859
+ "implementNodes": []
860
+ }
861
+ ],
862
+ "internals": [
863
+ {
864
+ "__schema": "UnImplementedSchema",
865
+ "location": {
866
+ "filePath": "component-tree.ui.runtime.tsx",
867
+ "line": 28,
868
+ "character": 1
869
+ },
870
+ "name": "ComponentTreeAspect.addRuntime(ComponentTreeUI);",
871
+ "type": "ExpressionStatement"
872
+ }
873
+ ]
874
+ },
875
+ {
876
+ "__schema": "ModuleSchema",
877
+ "location": {
878
+ "filePath": "component-tree-node.ts",
879
+ "line": 1,
880
+ "character": 1
881
+ },
882
+ "exports": [
883
+ {
884
+ "__schema": "TypeSchema",
885
+ "location": {
886
+ "filePath": "component-tree-node.ts",
887
+ "line": 4,
888
+ "character": 1
889
+ },
890
+ "signature": "type ComponentTreeNodeProps = {\n component: ComponentModel;\n}",
891
+ "name": "ComponentTreeNodeProps",
892
+ "type": {
893
+ "__schema": "TypeLiteralSchema",
894
+ "location": {
895
+ "filePath": "component-tree-node.ts",
896
+ "line": 4,
897
+ "character": 38
898
+ },
899
+ "members": [
900
+ {
901
+ "__schema": "VariableLikeSchema",
902
+ "location": {
903
+ "filePath": "component-tree-node.ts",
904
+ "line": 8,
905
+ "character": 3
906
+ },
907
+ "doc": {
908
+ "__schema": "DocSchema",
909
+ "location": {
910
+ "filePath": "component-tree-node.ts",
911
+ "line": 5,
912
+ "character": 3
913
+ },
914
+ "raw": "/**\n * component model.\n */",
915
+ "comment": "component model.",
916
+ "tags": []
917
+ },
918
+ "signature": "(property) component: ComponentModel",
919
+ "name": "component",
920
+ "type": {
921
+ "__schema": "TypeRefSchema",
922
+ "location": {
923
+ "filePath": "component-tree-node.ts",
924
+ "line": 8,
925
+ "character": 3
926
+ },
927
+ "name": "ComponentModel",
928
+ "componentId": {
929
+ "scope": "teambit.component",
930
+ "name": "component"
931
+ }
932
+ },
933
+ "isOptional": false
934
+ }
935
+ ]
936
+ }
937
+ },
938
+ {
939
+ "__schema": "TypeSchema",
940
+ "location": {
941
+ "filePath": "component-tree-node.ts",
942
+ "line": 11,
943
+ "character": 1
944
+ },
945
+ "signature": "type ComponentTreeNode = {\n widget: ComponentType<ComponentTreeNodeProps>;\n}",
946
+ "name": "ComponentTreeNode",
947
+ "type": {
948
+ "__schema": "TypeLiteralSchema",
949
+ "location": {
950
+ "filePath": "component-tree-node.ts",
951
+ "line": 11,
952
+ "character": 33
953
+ },
954
+ "members": [
955
+ {
956
+ "__schema": "VariableLikeSchema",
957
+ "location": {
958
+ "filePath": "component-tree-node.ts",
959
+ "line": 15,
960
+ "character": 3
961
+ },
962
+ "doc": {
963
+ "__schema": "DocSchema",
964
+ "location": {
965
+ "filePath": "component-tree-node.ts",
966
+ "line": 12,
967
+ "character": 3
968
+ },
969
+ "raw": "/**\n * component to render inside the tree node.\n */",
970
+ "comment": "component to render inside the tree node.",
971
+ "tags": []
972
+ },
973
+ "signature": "(property) widget: ComponentType<ComponentTreeNodeProps>",
974
+ "name": "widget",
975
+ "type": {
976
+ "__schema": "TypeRefSchema",
977
+ "location": {
978
+ "filePath": "component-tree-node.ts",
979
+ "line": 15,
980
+ "character": 11
981
+ },
982
+ "name": "ComponentType",
983
+ "packageName": "react",
984
+ "typeArgs": [
985
+ {
986
+ "__schema": "TypeRefSchema",
987
+ "location": {
988
+ "filePath": "component-tree-node.ts",
989
+ "line": 15,
990
+ "character": 25
991
+ },
992
+ "name": "ComponentTreeNodeProps"
993
+ }
994
+ ]
995
+ },
996
+ "isOptional": false
997
+ }
998
+ ]
999
+ }
1000
+ }
1001
+ ],
1002
+ "internals": []
1003
+ }
1004
+ ],
1005
+ "componentId": {
1006
+ "scope": "teambit.component",
1007
+ "name": "component-tree",
1008
+ "version": "1.0.514"
1009
+ },
1010
+ "taggedModuleExports": []
1011
+ }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-tree@1.0.512/dist/component-tree.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-tree@1.0.512/dist/component-tree.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-tree@1.0.514/dist/component-tree.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-tree@1.0.514/dist/component-tree.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@teambit/component-tree",
3
- "version": "1.0.512",
3
+ "version": "1.0.514",
4
4
  "homepage": "https://bit.cloud/teambit/component/component-tree",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.component",
8
8
  "name": "component-tree",
9
- "version": "1.0.512"
9
+ "version": "1.0.514"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/harmony": "0.4.6",
13
- "@teambit/component": "1.0.512",
14
- "@teambit/ui": "1.0.512"
13
+ "@teambit/component": "1.0.514",
14
+ "@teambit/ui": "1.0.514"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/mocha": "9.1.0",
18
- "@teambit/harmony.envs.core-aspect-env": "0.0.65"
18
+ "@teambit/harmony.envs.core-aspect-env": "0.0.68"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "react": "^17.0.0 || ^18.0.0",