@teambit/component-tree 1.0.188 → 1.0.189

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.188" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.component/component-tree@1.0.189" 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={97919:(e,t,o)=>{var n={id:"teambit.component/component-tree@1.0.188",homepage:"https://bit.cloud/teambit/component/component-tree",exported:!0};function r(){const e=i(o(41594));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 p=()=>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"}));p.__bit_component=n,t.Logo=p},41594: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={};return(()=>{o.r(n),o.d(n,{compositions:()=>u,compositions_metadata:()=>f,overview:()=>m});var e={};o.r(e),o.d(e,{default:()=>d});var t=o(97919);o(41594);const r=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var p=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},c.apply(this,arguments)}var a={},s="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,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,p);return(0,r.mdx)(s,c({},a,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const u=[t],m=[e],f={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),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={752:(e,t,o)=>{var n={id:"teambit.component/component-tree@1.0.189",homepage:"https://bit.cloud/teambit/component/component-tree",exported:!0};function r(){const e=i(o(41594));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 p=()=>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"}));p.__bit_component=n,t.Logo=p},41594: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={};return(()=>{o.r(n),o.d(n,{compositions:()=>u,compositions_metadata:()=>f,overview:()=>m});var e={};o.r(e),o.d(e,{default:()=>d});var t=o(752);o(41594);const r=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var p=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},c.apply(this,arguments)}var a={},s="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,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,p);return(0,r.mdx)(s,c({},a,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"}))}d.isMDXComponent=!0;const u=[t],m=[e],f={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
@@ -0,0 +1,957 @@
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": "VariableLikeSchema",
18
+ "location": {
19
+ "filePath": "component-tree.aspect.ts",
20
+ "line": 3,
21
+ "character": 14
22
+ },
23
+ "signature": "const ComponentTreeAspect: Aspect",
24
+ "name": "ComponentTreeAspect",
25
+ "type": {
26
+ "__schema": "TypeRefSchema",
27
+ "location": {
28
+ "filePath": "component-tree.aspect.ts",
29
+ "line": 3,
30
+ "character": 14
31
+ },
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.component/component-tree',\n})"
41
+ },
42
+ {
43
+ "__schema": "ClassSchema",
44
+ "location": {
45
+ "filePath": "component-tree.ui.runtime.tsx",
46
+ "line": 9,
47
+ "character": 1
48
+ },
49
+ "signature": "class ComponentTreeUI",
50
+ "name": "ComponentTreeUI",
51
+ "members": [
52
+ {
53
+ "__schema": "ConstructorSchema",
54
+ "location": {
55
+ "filePath": "component-tree.ui.runtime.tsx",
56
+ "line": 10,
57
+ "character": 3
58
+ },
59
+ "signature": "constructor ComponentTreeUI(treeNodeSlot: ComponentTreeSlot): ComponentTreeUI",
60
+ "name": "constructor",
61
+ "params": [
62
+ {
63
+ "__schema": "ParameterSchema",
64
+ "location": {
65
+ "filePath": "component-tree.ui.runtime.tsx",
66
+ "line": 10,
67
+ "character": 15
68
+ },
69
+ "name": "treeNodeSlot",
70
+ "type": {
71
+ "__schema": "TypeRefSchema",
72
+ "location": {
73
+ "filePath": "component-tree.ui.runtime.tsx",
74
+ "line": 10,
75
+ "character": 37
76
+ },
77
+ "name": "ComponentTreeSlot"
78
+ },
79
+ "isOptional": false,
80
+ "isSpread": false
81
+ }
82
+ ],
83
+ "returnType": {
84
+ "__schema": "ThisTypeSchema",
85
+ "location": {
86
+ "filePath": "component-tree.ui.runtime.tsx",
87
+ "line": 9,
88
+ "character": 1
89
+ },
90
+ "name": "ComponentTreeUI"
91
+ },
92
+ "modifiers": []
93
+ },
94
+ {
95
+ "__schema": "FunctionLikeSchema",
96
+ "location": {
97
+ "filePath": "component-tree.ui.runtime.tsx",
98
+ "line": 12,
99
+ "character": 3
100
+ },
101
+ "signature": "(method) ComponentTreeUI.registerTreeNode(treeNode: ComponentTreeNode): this",
102
+ "name": "registerTreeNode",
103
+ "params": [
104
+ {
105
+ "__schema": "ParameterSchema",
106
+ "location": {
107
+ "filePath": "component-tree.ui.runtime.tsx",
108
+ "line": 12,
109
+ "character": 20
110
+ },
111
+ "name": "treeNode",
112
+ "type": {
113
+ "__schema": "TypeRefSchema",
114
+ "location": {
115
+ "filePath": "component-tree.ui.runtime.tsx",
116
+ "line": 12,
117
+ "character": 30
118
+ },
119
+ "name": "ComponentTreeNode"
120
+ },
121
+ "isOptional": false,
122
+ "isSpread": false
123
+ }
124
+ ],
125
+ "returnType": {
126
+ "__schema": "TypeRefSchema",
127
+ "location": {
128
+ "filePath": "component-tree.ui.runtime.tsx",
129
+ "line": 12,
130
+ "character": 3
131
+ },
132
+ "name": "ComponentTreeUI"
133
+ },
134
+ "modifiers": []
135
+ },
136
+ {
137
+ "__schema": "VariableLikeSchema",
138
+ "location": {
139
+ "filePath": "component-tree.ui.runtime.tsx",
140
+ "line": 17,
141
+ "character": 3
142
+ },
143
+ "signature": "(property) ComponentTreeUI.runtime: RuntimeDefinition",
144
+ "name": "runtime",
145
+ "type": {
146
+ "__schema": "InferenceTypeSchema",
147
+ "location": {
148
+ "filePath": "component-tree.ui.runtime.tsx",
149
+ "line": 17,
150
+ "character": 3
151
+ },
152
+ "type": "RuntimeDefinition"
153
+ },
154
+ "isOptional": true,
155
+ "defaultValue": "UIRuntime"
156
+ },
157
+ {
158
+ "__schema": "VariableLikeSchema",
159
+ "location": {
160
+ "filePath": "component-tree.ui.runtime.tsx",
161
+ "line": 19,
162
+ "character": 3
163
+ },
164
+ "signature": "(property) ComponentTreeUI.slots: ((registerFn: () => string) => SlotRegistry<ComponentTreeNode>)[]",
165
+ "name": "slots",
166
+ "type": {
167
+ "__schema": "InferenceTypeSchema",
168
+ "location": {
169
+ "filePath": "component-tree.ui.runtime.tsx",
170
+ "line": 19,
171
+ "character": 3
172
+ },
173
+ "type": "((registerFn: () => string) => SlotRegistry<ComponentTreeNode>)[]"
174
+ },
175
+ "isOptional": true,
176
+ "defaultValue": "[Slot.withType<ComponentTreeNode>()]"
177
+ },
178
+ {
179
+ "__schema": "VariableLikeSchema",
180
+ "location": {
181
+ "filePath": "component-tree.ui.runtime.tsx",
182
+ "line": 21,
183
+ "character": 3
184
+ },
185
+ "signature": "(property) ComponentTreeUI.dependencies: never[]",
186
+ "name": "dependencies",
187
+ "type": {
188
+ "__schema": "InferenceTypeSchema",
189
+ "location": {
190
+ "filePath": "component-tree.ui.runtime.tsx",
191
+ "line": 21,
192
+ "character": 3
193
+ },
194
+ "type": "never[]"
195
+ },
196
+ "isOptional": true,
197
+ "defaultValue": "[]"
198
+ },
199
+ {
200
+ "__schema": "FunctionLikeSchema",
201
+ "location": {
202
+ "filePath": "component-tree.ui.runtime.tsx",
203
+ "line": 23,
204
+ "character": 3
205
+ },
206
+ "signature": "(method) ComponentTreeUI.provider(deps: any, config: any, [treeNodeSlot]: [ComponentTreeSlot]): Promise<ComponentTreeUI>",
207
+ "name": "provider",
208
+ "params": [
209
+ {
210
+ "__schema": "ParameterSchema",
211
+ "location": {
212
+ "filePath": "component-tree.ui.runtime.tsx",
213
+ "line": 23,
214
+ "character": 25
215
+ },
216
+ "name": "deps",
217
+ "type": {
218
+ "__schema": "InferenceTypeSchema",
219
+ "location": {
220
+ "filePath": "component-tree.ui.runtime.tsx",
221
+ "line": 23,
222
+ "character": 25
223
+ },
224
+ "type": "any"
225
+ },
226
+ "isOptional": false,
227
+ "isSpread": false
228
+ },
229
+ {
230
+ "__schema": "ParameterSchema",
231
+ "location": {
232
+ "filePath": "component-tree.ui.runtime.tsx",
233
+ "line": 23,
234
+ "character": 31
235
+ },
236
+ "name": "config",
237
+ "type": {
238
+ "__schema": "InferenceTypeSchema",
239
+ "location": {
240
+ "filePath": "component-tree.ui.runtime.tsx",
241
+ "line": 23,
242
+ "character": 31
243
+ },
244
+ "type": "any"
245
+ },
246
+ "isOptional": false,
247
+ "isSpread": false
248
+ },
249
+ {
250
+ "__schema": "ParameterSchema",
251
+ "location": {
252
+ "filePath": "component-tree.ui.runtime.tsx",
253
+ "line": 23,
254
+ "character": 39
255
+ },
256
+ "name": "[ treeNodeSlot ]",
257
+ "type": {
258
+ "__schema": "TupleTypeSchema",
259
+ "location": {
260
+ "filePath": "component-tree.ui.runtime.tsx",
261
+ "line": 23,
262
+ "character": 55
263
+ },
264
+ "elements": [
265
+ {
266
+ "__schema": "TypeRefSchema",
267
+ "location": {
268
+ "filePath": "component-tree.ui.runtime.tsx",
269
+ "line": 23,
270
+ "character": 56
271
+ },
272
+ "name": "ComponentTreeSlot"
273
+ }
274
+ ]
275
+ },
276
+ "isOptional": false,
277
+ "isSpread": false
278
+ }
279
+ ],
280
+ "returnType": {
281
+ "__schema": "InferenceTypeSchema",
282
+ "location": {
283
+ "filePath": "component-tree.ui.runtime.tsx",
284
+ "line": 23,
285
+ "character": 3
286
+ },
287
+ "type": "Promise<ComponentTreeUI>"
288
+ },
289
+ "modifiers": [
290
+ "static",
291
+ "async"
292
+ ]
293
+ }
294
+ ],
295
+ "extendsNodes": [],
296
+ "implementNodes": []
297
+ },
298
+ {
299
+ "__schema": "TypeSchema",
300
+ "location": {
301
+ "filePath": "component-tree.ui.runtime.tsx",
302
+ "line": 7,
303
+ "character": 1
304
+ },
305
+ "signature": "type ComponentTreeSlot = SlotRegistry<ComponentTreeNode>",
306
+ "name": "ComponentTreeSlot",
307
+ "type": {
308
+ "__schema": "TypeRefSchema",
309
+ "location": {
310
+ "filePath": "component-tree.ui.runtime.tsx",
311
+ "line": 7,
312
+ "character": 33
313
+ },
314
+ "name": "SlotRegistry",
315
+ "componentId": {
316
+ "scope": "teambit.harmony",
317
+ "name": "harmony",
318
+ "version": "0.4.6"
319
+ },
320
+ "typeArgs": [
321
+ {
322
+ "__schema": "TypeRefSchema",
323
+ "location": {
324
+ "filePath": "component-tree.ui.runtime.tsx",
325
+ "line": 7,
326
+ "character": 46
327
+ },
328
+ "name": "ComponentTreeNode"
329
+ }
330
+ ]
331
+ }
332
+ },
333
+ {
334
+ "__schema": "TypeSchema",
335
+ "location": {
336
+ "filePath": "component-tree-node.ts",
337
+ "line": 11,
338
+ "character": 1
339
+ },
340
+ "signature": "type ComponentTreeNode = {\n widget: ComponentType<ComponentTreeNodeProps>;\n}",
341
+ "name": "ComponentTreeNode",
342
+ "type": {
343
+ "__schema": "TypeLiteralSchema",
344
+ "location": {
345
+ "filePath": "component-tree-node.ts",
346
+ "line": 11,
347
+ "character": 33
348
+ },
349
+ "members": [
350
+ {
351
+ "__schema": "VariableLikeSchema",
352
+ "location": {
353
+ "filePath": "component-tree-node.ts",
354
+ "line": 15,
355
+ "character": 3
356
+ },
357
+ "doc": {
358
+ "__schema": "DocSchema",
359
+ "location": {
360
+ "filePath": "component-tree-node.ts",
361
+ "line": 12,
362
+ "character": 3
363
+ },
364
+ "raw": "/**\n * component to render inside the tree node.\n */",
365
+ "comment": "component to render inside the tree node."
366
+ },
367
+ "signature": "(property) widget: ComponentType<ComponentTreeNodeProps>",
368
+ "name": "widget",
369
+ "type": {
370
+ "__schema": "TypeRefSchema",
371
+ "location": {
372
+ "filePath": "component-tree-node.ts",
373
+ "line": 15,
374
+ "character": 11
375
+ },
376
+ "name": "ComponentType",
377
+ "packageName": "react",
378
+ "typeArgs": [
379
+ {
380
+ "__schema": "TypeRefSchema",
381
+ "location": {
382
+ "filePath": "component-tree-node.ts",
383
+ "line": 15,
384
+ "character": 25
385
+ },
386
+ "name": "ComponentTreeNodeProps"
387
+ }
388
+ ]
389
+ },
390
+ "isOptional": false
391
+ }
392
+ ]
393
+ }
394
+ },
395
+ {
396
+ "__schema": "TypeSchema",
397
+ "location": {
398
+ "filePath": "component-tree-node.ts",
399
+ "line": 4,
400
+ "character": 1
401
+ },
402
+ "signature": "type ComponentTreeNodeProps = {\n component: ComponentModel;\n}",
403
+ "name": "ComponentTreeNodeProps",
404
+ "type": {
405
+ "__schema": "TypeLiteralSchema",
406
+ "location": {
407
+ "filePath": "component-tree-node.ts",
408
+ "line": 4,
409
+ "character": 38
410
+ },
411
+ "members": [
412
+ {
413
+ "__schema": "VariableLikeSchema",
414
+ "location": {
415
+ "filePath": "component-tree-node.ts",
416
+ "line": 8,
417
+ "character": 3
418
+ },
419
+ "doc": {
420
+ "__schema": "DocSchema",
421
+ "location": {
422
+ "filePath": "component-tree-node.ts",
423
+ "line": 5,
424
+ "character": 3
425
+ },
426
+ "raw": "/**\n * component model.\n */",
427
+ "comment": "component model."
428
+ },
429
+ "signature": "(property) component: ComponentModel",
430
+ "name": "component",
431
+ "type": {
432
+ "__schema": "TypeRefSchema",
433
+ "location": {
434
+ "filePath": "component-tree-node.ts",
435
+ "line": 8,
436
+ "character": 3
437
+ },
438
+ "name": "ComponentModel",
439
+ "componentId": {
440
+ "scope": "teambit.component",
441
+ "name": "component"
442
+ }
443
+ },
444
+ "isOptional": false
445
+ }
446
+ ]
447
+ }
448
+ },
449
+ {
450
+ "__schema": "UnImplementedSchema",
451
+ "location": {
452
+ "filePath": "index.ts",
453
+ "line": 7,
454
+ "character": 16
455
+ },
456
+ "name": "ComponentTreeAspect",
457
+ "type": "Identifier"
458
+ }
459
+ ],
460
+ "internals": []
461
+ },
462
+ "internals": [
463
+ {
464
+ "__schema": "ModuleSchema",
465
+ "location": {
466
+ "filePath": "component-tree.aspect.ts",
467
+ "line": 1,
468
+ "character": 1
469
+ },
470
+ "exports": [
471
+ {
472
+ "__schema": "VariableLikeSchema",
473
+ "location": {
474
+ "filePath": "component-tree.aspect.ts",
475
+ "line": 3,
476
+ "character": 14
477
+ },
478
+ "signature": "const ComponentTreeAspect: Aspect",
479
+ "name": "ComponentTreeAspect",
480
+ "type": {
481
+ "__schema": "TypeRefSchema",
482
+ "location": {
483
+ "filePath": "component-tree.aspect.ts",
484
+ "line": 3,
485
+ "character": 14
486
+ },
487
+ "name": "Aspect",
488
+ "componentId": {
489
+ "scope": "teambit.harmony",
490
+ "name": "harmony",
491
+ "version": "0.4.6"
492
+ }
493
+ },
494
+ "isOptional": false,
495
+ "defaultValue": "Aspect.create({\n id: 'teambit.component/component-tree',\n})"
496
+ },
497
+ {
498
+ "__schema": "UnImplementedSchema",
499
+ "location": {
500
+ "filePath": "component-tree.aspect.ts",
501
+ "line": 7,
502
+ "character": 16
503
+ },
504
+ "name": "ComponentTreeAspect",
505
+ "type": "Identifier"
506
+ }
507
+ ],
508
+ "internals": []
509
+ },
510
+ {
511
+ "__schema": "ModuleSchema",
512
+ "location": {
513
+ "filePath": "component-tree.ui.runtime.tsx",
514
+ "line": 1,
515
+ "character": 1
516
+ },
517
+ "exports": [
518
+ {
519
+ "__schema": "TypeSchema",
520
+ "location": {
521
+ "filePath": "component-tree.ui.runtime.tsx",
522
+ "line": 7,
523
+ "character": 1
524
+ },
525
+ "signature": "type ComponentTreeSlot = SlotRegistry<ComponentTreeNode>",
526
+ "name": "ComponentTreeSlot",
527
+ "type": {
528
+ "__schema": "TypeRefSchema",
529
+ "location": {
530
+ "filePath": "component-tree.ui.runtime.tsx",
531
+ "line": 7,
532
+ "character": 33
533
+ },
534
+ "name": "SlotRegistry",
535
+ "componentId": {
536
+ "scope": "teambit.harmony",
537
+ "name": "harmony",
538
+ "version": "0.4.6"
539
+ },
540
+ "typeArgs": [
541
+ {
542
+ "__schema": "TypeRefSchema",
543
+ "location": {
544
+ "filePath": "component-tree.ui.runtime.tsx",
545
+ "line": 7,
546
+ "character": 46
547
+ },
548
+ "name": "ComponentTreeNode"
549
+ }
550
+ ]
551
+ }
552
+ },
553
+ {
554
+ "__schema": "ClassSchema",
555
+ "location": {
556
+ "filePath": "component-tree.ui.runtime.tsx",
557
+ "line": 9,
558
+ "character": 1
559
+ },
560
+ "signature": "class ComponentTreeUI",
561
+ "name": "ComponentTreeUI",
562
+ "members": [
563
+ {
564
+ "__schema": "ConstructorSchema",
565
+ "location": {
566
+ "filePath": "component-tree.ui.runtime.tsx",
567
+ "line": 10,
568
+ "character": 3
569
+ },
570
+ "signature": "constructor ComponentTreeUI(treeNodeSlot: ComponentTreeSlot): ComponentTreeUI",
571
+ "name": "constructor",
572
+ "params": [
573
+ {
574
+ "__schema": "ParameterSchema",
575
+ "location": {
576
+ "filePath": "component-tree.ui.runtime.tsx",
577
+ "line": 10,
578
+ "character": 15
579
+ },
580
+ "name": "treeNodeSlot",
581
+ "type": {
582
+ "__schema": "TypeRefSchema",
583
+ "location": {
584
+ "filePath": "component-tree.ui.runtime.tsx",
585
+ "line": 10,
586
+ "character": 37
587
+ },
588
+ "name": "ComponentTreeSlot"
589
+ },
590
+ "isOptional": false,
591
+ "isSpread": false
592
+ }
593
+ ],
594
+ "returnType": {
595
+ "__schema": "ThisTypeSchema",
596
+ "location": {
597
+ "filePath": "component-tree.ui.runtime.tsx",
598
+ "line": 9,
599
+ "character": 1
600
+ },
601
+ "name": "ComponentTreeUI"
602
+ },
603
+ "modifiers": []
604
+ },
605
+ {
606
+ "__schema": "FunctionLikeSchema",
607
+ "location": {
608
+ "filePath": "component-tree.ui.runtime.tsx",
609
+ "line": 12,
610
+ "character": 3
611
+ },
612
+ "signature": "(method) ComponentTreeUI.registerTreeNode(treeNode: ComponentTreeNode): this",
613
+ "name": "registerTreeNode",
614
+ "params": [
615
+ {
616
+ "__schema": "ParameterSchema",
617
+ "location": {
618
+ "filePath": "component-tree.ui.runtime.tsx",
619
+ "line": 12,
620
+ "character": 20
621
+ },
622
+ "name": "treeNode",
623
+ "type": {
624
+ "__schema": "TypeRefSchema",
625
+ "location": {
626
+ "filePath": "component-tree.ui.runtime.tsx",
627
+ "line": 12,
628
+ "character": 30
629
+ },
630
+ "name": "ComponentTreeNode"
631
+ },
632
+ "isOptional": false,
633
+ "isSpread": false
634
+ }
635
+ ],
636
+ "returnType": {
637
+ "__schema": "TypeRefSchema",
638
+ "location": {
639
+ "filePath": "component-tree.ui.runtime.tsx",
640
+ "line": 12,
641
+ "character": 3
642
+ },
643
+ "name": "ComponentTreeUI"
644
+ },
645
+ "modifiers": []
646
+ },
647
+ {
648
+ "__schema": "VariableLikeSchema",
649
+ "location": {
650
+ "filePath": "component-tree.ui.runtime.tsx",
651
+ "line": 17,
652
+ "character": 3
653
+ },
654
+ "signature": "(property) ComponentTreeUI.runtime: RuntimeDefinition",
655
+ "name": "runtime",
656
+ "type": {
657
+ "__schema": "InferenceTypeSchema",
658
+ "location": {
659
+ "filePath": "component-tree.ui.runtime.tsx",
660
+ "line": 17,
661
+ "character": 3
662
+ },
663
+ "type": "RuntimeDefinition"
664
+ },
665
+ "isOptional": true,
666
+ "defaultValue": "UIRuntime"
667
+ },
668
+ {
669
+ "__schema": "VariableLikeSchema",
670
+ "location": {
671
+ "filePath": "component-tree.ui.runtime.tsx",
672
+ "line": 19,
673
+ "character": 3
674
+ },
675
+ "signature": "(property) ComponentTreeUI.slots: ((registerFn: () => string) => SlotRegistry<ComponentTreeNode>)[]",
676
+ "name": "slots",
677
+ "type": {
678
+ "__schema": "InferenceTypeSchema",
679
+ "location": {
680
+ "filePath": "component-tree.ui.runtime.tsx",
681
+ "line": 19,
682
+ "character": 3
683
+ },
684
+ "type": "((registerFn: () => string) => SlotRegistry<ComponentTreeNode>)[]"
685
+ },
686
+ "isOptional": true,
687
+ "defaultValue": "[Slot.withType<ComponentTreeNode>()]"
688
+ },
689
+ {
690
+ "__schema": "VariableLikeSchema",
691
+ "location": {
692
+ "filePath": "component-tree.ui.runtime.tsx",
693
+ "line": 21,
694
+ "character": 3
695
+ },
696
+ "signature": "(property) ComponentTreeUI.dependencies: never[]",
697
+ "name": "dependencies",
698
+ "type": {
699
+ "__schema": "InferenceTypeSchema",
700
+ "location": {
701
+ "filePath": "component-tree.ui.runtime.tsx",
702
+ "line": 21,
703
+ "character": 3
704
+ },
705
+ "type": "never[]"
706
+ },
707
+ "isOptional": true,
708
+ "defaultValue": "[]"
709
+ },
710
+ {
711
+ "__schema": "FunctionLikeSchema",
712
+ "location": {
713
+ "filePath": "component-tree.ui.runtime.tsx",
714
+ "line": 23,
715
+ "character": 3
716
+ },
717
+ "signature": "(method) ComponentTreeUI.provider(deps: any, config: any, [treeNodeSlot]: [ComponentTreeSlot]): Promise<ComponentTreeUI>",
718
+ "name": "provider",
719
+ "params": [
720
+ {
721
+ "__schema": "ParameterSchema",
722
+ "location": {
723
+ "filePath": "component-tree.ui.runtime.tsx",
724
+ "line": 23,
725
+ "character": 25
726
+ },
727
+ "name": "deps",
728
+ "type": {
729
+ "__schema": "InferenceTypeSchema",
730
+ "location": {
731
+ "filePath": "component-tree.ui.runtime.tsx",
732
+ "line": 23,
733
+ "character": 25
734
+ },
735
+ "type": "any"
736
+ },
737
+ "isOptional": false,
738
+ "isSpread": false
739
+ },
740
+ {
741
+ "__schema": "ParameterSchema",
742
+ "location": {
743
+ "filePath": "component-tree.ui.runtime.tsx",
744
+ "line": 23,
745
+ "character": 31
746
+ },
747
+ "name": "config",
748
+ "type": {
749
+ "__schema": "InferenceTypeSchema",
750
+ "location": {
751
+ "filePath": "component-tree.ui.runtime.tsx",
752
+ "line": 23,
753
+ "character": 31
754
+ },
755
+ "type": "any"
756
+ },
757
+ "isOptional": false,
758
+ "isSpread": false
759
+ },
760
+ {
761
+ "__schema": "ParameterSchema",
762
+ "location": {
763
+ "filePath": "component-tree.ui.runtime.tsx",
764
+ "line": 23,
765
+ "character": 39
766
+ },
767
+ "name": "[ treeNodeSlot ]",
768
+ "type": {
769
+ "__schema": "TupleTypeSchema",
770
+ "location": {
771
+ "filePath": "component-tree.ui.runtime.tsx",
772
+ "line": 23,
773
+ "character": 55
774
+ },
775
+ "elements": [
776
+ {
777
+ "__schema": "TypeRefSchema",
778
+ "location": {
779
+ "filePath": "component-tree.ui.runtime.tsx",
780
+ "line": 23,
781
+ "character": 56
782
+ },
783
+ "name": "ComponentTreeSlot"
784
+ }
785
+ ]
786
+ },
787
+ "isOptional": false,
788
+ "isSpread": false
789
+ }
790
+ ],
791
+ "returnType": {
792
+ "__schema": "InferenceTypeSchema",
793
+ "location": {
794
+ "filePath": "component-tree.ui.runtime.tsx",
795
+ "line": 23,
796
+ "character": 3
797
+ },
798
+ "type": "Promise<ComponentTreeUI>"
799
+ },
800
+ "modifiers": [
801
+ "static",
802
+ "async"
803
+ ]
804
+ }
805
+ ],
806
+ "extendsNodes": [],
807
+ "implementNodes": []
808
+ }
809
+ ],
810
+ "internals": [
811
+ {
812
+ "__schema": "UnImplementedSchema",
813
+ "location": {
814
+ "filePath": "component-tree.ui.runtime.tsx",
815
+ "line": 28,
816
+ "character": 1
817
+ },
818
+ "name": "ComponentTreeAspect.addRuntime(ComponentTreeUI);",
819
+ "type": "ExpressionStatement"
820
+ }
821
+ ]
822
+ },
823
+ {
824
+ "__schema": "ModuleSchema",
825
+ "location": {
826
+ "filePath": "component-tree-node.ts",
827
+ "line": 1,
828
+ "character": 1
829
+ },
830
+ "exports": [
831
+ {
832
+ "__schema": "TypeSchema",
833
+ "location": {
834
+ "filePath": "component-tree-node.ts",
835
+ "line": 4,
836
+ "character": 1
837
+ },
838
+ "signature": "type ComponentTreeNodeProps = {\n component: ComponentModel;\n}",
839
+ "name": "ComponentTreeNodeProps",
840
+ "type": {
841
+ "__schema": "TypeLiteralSchema",
842
+ "location": {
843
+ "filePath": "component-tree-node.ts",
844
+ "line": 4,
845
+ "character": 38
846
+ },
847
+ "members": [
848
+ {
849
+ "__schema": "VariableLikeSchema",
850
+ "location": {
851
+ "filePath": "component-tree-node.ts",
852
+ "line": 8,
853
+ "character": 3
854
+ },
855
+ "doc": {
856
+ "__schema": "DocSchema",
857
+ "location": {
858
+ "filePath": "component-tree-node.ts",
859
+ "line": 5,
860
+ "character": 3
861
+ },
862
+ "raw": "/**\n * component model.\n */",
863
+ "comment": "component model."
864
+ },
865
+ "signature": "(property) component: ComponentModel",
866
+ "name": "component",
867
+ "type": {
868
+ "__schema": "TypeRefSchema",
869
+ "location": {
870
+ "filePath": "component-tree-node.ts",
871
+ "line": 8,
872
+ "character": 3
873
+ },
874
+ "name": "ComponentModel",
875
+ "componentId": {
876
+ "scope": "teambit.component",
877
+ "name": "component"
878
+ }
879
+ },
880
+ "isOptional": false
881
+ }
882
+ ]
883
+ }
884
+ },
885
+ {
886
+ "__schema": "TypeSchema",
887
+ "location": {
888
+ "filePath": "component-tree-node.ts",
889
+ "line": 11,
890
+ "character": 1
891
+ },
892
+ "signature": "type ComponentTreeNode = {\n widget: ComponentType<ComponentTreeNodeProps>;\n}",
893
+ "name": "ComponentTreeNode",
894
+ "type": {
895
+ "__schema": "TypeLiteralSchema",
896
+ "location": {
897
+ "filePath": "component-tree-node.ts",
898
+ "line": 11,
899
+ "character": 33
900
+ },
901
+ "members": [
902
+ {
903
+ "__schema": "VariableLikeSchema",
904
+ "location": {
905
+ "filePath": "component-tree-node.ts",
906
+ "line": 15,
907
+ "character": 3
908
+ },
909
+ "doc": {
910
+ "__schema": "DocSchema",
911
+ "location": {
912
+ "filePath": "component-tree-node.ts",
913
+ "line": 12,
914
+ "character": 3
915
+ },
916
+ "raw": "/**\n * component to render inside the tree node.\n */",
917
+ "comment": "component to render inside the tree node."
918
+ },
919
+ "signature": "(property) widget: ComponentType<ComponentTreeNodeProps>",
920
+ "name": "widget",
921
+ "type": {
922
+ "__schema": "TypeRefSchema",
923
+ "location": {
924
+ "filePath": "component-tree-node.ts",
925
+ "line": 15,
926
+ "character": 11
927
+ },
928
+ "name": "ComponentType",
929
+ "packageName": "react",
930
+ "typeArgs": [
931
+ {
932
+ "__schema": "TypeRefSchema",
933
+ "location": {
934
+ "filePath": "component-tree-node.ts",
935
+ "line": 15,
936
+ "character": 25
937
+ },
938
+ "name": "ComponentTreeNodeProps"
939
+ }
940
+ ]
941
+ },
942
+ "isOptional": false
943
+ }
944
+ ]
945
+ }
946
+ }
947
+ ],
948
+ "internals": []
949
+ }
950
+ ],
951
+ "componentId": {
952
+ "scope": "teambit.component",
953
+ "name": "component-tree",
954
+ "version": "1.0.189"
955
+ },
956
+ "taggedModuleExports": []
957
+ }
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["component-tree-node.ts"],"sourcesContent":["import { ComponentModel } from '@teambit/component';\nimport { ComponentType } from 'react';\n\nexport type ComponentTreeNodeProps = {\n /**\n * component model.\n */\n component: ComponentModel;\n};\n\nexport type ComponentTreeNode = {\n /**\n * component to render inside the tree node.\n */\n widget: ComponentType<ComponentTreeNodeProps>;\n};\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["component-tree-node.ts"],"sourcesContent":["import { ComponentModel } from '@teambit/component';\nimport { ComponentType } from 'react';\n\nexport type ComponentTreeNodeProps = {\n /**\n * component model.\n */\n component: ComponentModel;\n};\n\nexport type ComponentTreeNode = {\n /**\n * component to render inside the tree node.\n */\n widget: ComponentType<ComponentTreeNodeProps>;\n};\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_harmony","data","require","ComponentTreeAspect","exports","Aspect","create","id","_default","default"],"sources":["component-tree.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const ComponentTreeAspect = Aspect.create({\n id: 'teambit.component/component-tree',\n});\n\nexport default ComponentTreeAspect;\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAGE,iBAAM,CAACC,MAAM,CAAC;EAC/CC,EAAE,EAAE;AACN,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAJ,OAAA,CAAAK,OAAA,GAEYN,mBAAmB"}
1
+ {"version":3,"names":["_harmony","data","require","ComponentTreeAspect","exports","Aspect","create","id","_default","default"],"sources":["component-tree.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const ComponentTreeAspect = Aspect.create({\n id: 'teambit.component/component-tree',\n});\n\nexport default ComponentTreeAspect;\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAGE,iBAAM,CAACC,MAAM,CAAC;EAC/CC,EAAE,EAAE;AACN,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAJ,OAAA,CAAAK,OAAA,GAEYN,mBAAmB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_react","data","_interopRequireDefault","require","obj","__esModule","default","Logo","createElement","style","height","display","justifyContent","width","src","exports"],"sources":["component-tree.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/component-tree.svg\" />\n </div>\n);\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAC,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEnB,MAAMG,IAAI,GAAGA,CAAA,kBAClBP,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,OAAO,EAAE,MAAM;IAAEC,cAAc,EAAE;EAAS;AAAE,gBACxEZ,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEI,KAAK,EAAE;EAAG,CAAE;EAACC,GAAG,EAAC;AAA4D,CAAE,CAC1F,CACN;AAACC,OAAA,CAAAR,IAAA,GAAAA,IAAA"}
1
+ {"version":3,"names":["_react","data","_interopRequireDefault","require","obj","__esModule","default","Logo","createElement","style","height","display","justifyContent","width","src","exports"],"sources":["component-tree.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/component-tree.svg\" />\n </div>\n);\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAC,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEnB,MAAMG,IAAI,GAAGA,CAAA,kBAClBP,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,OAAO,EAAE,MAAM;IAAEC,cAAc,EAAE;EAAS;AAAE,gBACxEZ,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEI,KAAK,EAAE;EAAG,CAAE;EAACC,GAAG,EAAC;AAA4D,CAAE,CAC1F,CACN;AAACC,OAAA,CAAAR,IAAA,GAAAA,IAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["component-tree.drawer.tsx"],"sourcesContent":["// import { useComponentHost } from '@teambit/component';\n// import { Drawer } from '@teambit/sidebar';\n// import { FullLoader } from '@teambit/uis.full-loader';\n// import { ComponentTree } from '@teambit/uis.side-bar';\n// import React from 'react';\n\n// import { ComponentTreeSlot } from './component-tree.ui.runtime';\n\n// export class ComponentTreeDrawer implements Drawer {\n// constructor(private treeNodeSlot: ComponentTreeSlot) {}\n// // TODO - check if this is still used @oded/@uri\n// name = 'COMPONENTS';\n\n// render = () => {\n// const { host } = useComponentHost();\n\n// if (!host) return <FullLoader />;\n// return <ComponentTree components={host.components} treeNodeSlot={this.treeNodeSlot} />;\n// };\n// }\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AAAA"}
1
+ {"version":3,"names":[],"sources":["component-tree.drawer.tsx"],"sourcesContent":["// import { useComponentHost } from '@teambit/component';\n// import { Drawer } from '@teambit/sidebar';\n// import { FullLoader } from '@teambit/uis.full-loader';\n// import { ComponentTree } from '@teambit/uis.side-bar';\n// import React from 'react';\n\n// import { ComponentTreeSlot } from './component-tree.ui.runtime';\n\n// export class ComponentTreeDrawer implements Drawer {\n// constructor(private treeNodeSlot: ComponentTreeSlot) {}\n// // TODO - check if this is still used @oded/@uri\n// name = 'COMPONENTS';\n\n// render = () => {\n// const { host } = useComponentHost();\n\n// if (!host) return <FullLoader />;\n// return <ComponentTree components={host.components} treeNodeSlot={this.treeNodeSlot} />;\n// };\n// }\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_harmony","data","require","_ui","_componentTree","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","ComponentTreeUI","constructor","treeNodeSlot","registerTreeNode","treeNode","register","provider","deps","config","exports","UIRuntime","Slot","withType","ComponentTreeAspect","addRuntime"],"sources":["component-tree.ui.runtime.tsx"],"sourcesContent":["import { Slot, SlotRegistry } from '@teambit/harmony';\nimport { UIRuntime } from '@teambit/ui';\n\nimport { ComponentTreeNode } from './component-tree-node';\nimport { ComponentTreeAspect } from './component-tree.aspect';\n\nexport type ComponentTreeSlot = SlotRegistry<ComponentTreeNode>;\n\nexport class ComponentTreeUI {\n constructor(private treeNodeSlot: ComponentTreeSlot) {}\n\n registerTreeNode(treeNode: ComponentTreeNode) {\n this.treeNodeSlot.register(treeNode);\n return this;\n }\n\n static runtime = UIRuntime;\n\n static slots = [Slot.withType<ComponentTreeNode>()];\n\n static dependencies = [];\n\n static async provider(deps, config, [treeNodeSlot]: [ComponentTreeSlot]) {\n return new ComponentTreeUI(treeNodeSlot);\n }\n}\n\nComponentTreeAspect.addRuntime(ComponentTreeUI);\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,IAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,GAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAG,eAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,cAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8D,SAAAI,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAIvD,MAAMW,eAAe,CAAC;EAC3BC,WAAWA,CAASC,YAA+B,EAAE;IAAA,KAAjCA,YAA+B,GAA/BA,YAA+B;EAAG;EAEtDC,gBAAgBA,CAACC,QAA2B,EAAE;IAC5C,IAAI,CAACF,YAAY,CAACG,QAAQ,CAACD,QAAQ,CAAC;IACpC,OAAO,IAAI;EACb;EAQA,aAAaE,QAAQA,CAACC,IAAI,EAAEC,MAAM,EAAE,CAACN,YAAY,CAAsB,EAAE;IACvE,OAAO,IAAIF,eAAe,CAACE,YAAY,CAAC;EAC1C;AACF;AAACO,OAAA,CAAAT,eAAA,GAAAA,eAAA;AAAArB,eAAA,CAjBYqB,eAAe,aAQTU,eAAS;AAAA/B,eAAA,CARfqB,eAAe,WAUX,CAACW,eAAI,CAACC,QAAQ,CAAoB,CAAC,CAAC;AAAAjC,eAAA,CAVxCqB,eAAe,kBAYJ,EAAE;AAO1Ba,oCAAmB,CAACC,UAAU,CAACd,eAAe,CAAC"}
1
+ {"version":3,"names":["_harmony","data","require","_ui","_componentTree","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","ComponentTreeUI","constructor","treeNodeSlot","registerTreeNode","treeNode","register","provider","deps","config","exports","UIRuntime","Slot","withType","ComponentTreeAspect","addRuntime"],"sources":["component-tree.ui.runtime.tsx"],"sourcesContent":["import { Slot, SlotRegistry } from '@teambit/harmony';\nimport { UIRuntime } from '@teambit/ui';\n\nimport { ComponentTreeNode } from './component-tree-node';\nimport { ComponentTreeAspect } from './component-tree.aspect';\n\nexport type ComponentTreeSlot = SlotRegistry<ComponentTreeNode>;\n\nexport class ComponentTreeUI {\n constructor(private treeNodeSlot: ComponentTreeSlot) {}\n\n registerTreeNode(treeNode: ComponentTreeNode) {\n this.treeNodeSlot.register(treeNode);\n return this;\n }\n\n static runtime = UIRuntime;\n\n static slots = [Slot.withType<ComponentTreeNode>()];\n\n static dependencies = [];\n\n static async provider(deps, config, [treeNodeSlot]: [ComponentTreeSlot]) {\n return new ComponentTreeUI(treeNodeSlot);\n }\n}\n\nComponentTreeAspect.addRuntime(ComponentTreeUI);\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,IAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,GAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAG,eAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,cAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8D,SAAAI,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,MAAAK,CAAA,GAAAL,CAAA,CAAAM,MAAA,CAAAC,WAAA,kBAAAF,CAAA,QAAAJ,CAAA,GAAAI,CAAA,CAAAG,IAAA,CAAAR,CAAA,EAAAI,CAAA,uCAAAH,CAAA,SAAAA,CAAA,YAAAQ,SAAA,yEAAAL,CAAA,GAAAD,MAAA,GAAAO,MAAA,EAAAV,CAAA;AAIvD,MAAMW,eAAe,CAAC;EAC3BC,WAAWA,CAASC,YAA+B,EAAE;IAAA,KAAjCA,YAA+B,GAA/BA,YAA+B;EAAG;EAEtDC,gBAAgBA,CAACC,QAA2B,EAAE;IAC5C,IAAI,CAACF,YAAY,CAACG,QAAQ,CAACD,QAAQ,CAAC;IACpC,OAAO,IAAI;EACb;EAQA,aAAaE,QAAQA,CAACC,IAAI,EAAEC,MAAM,EAAE,CAACN,YAAY,CAAsB,EAAE;IACvE,OAAO,IAAIF,eAAe,CAACE,YAAY,CAAC;EAC1C;AACF;AAACO,OAAA,CAAAT,eAAA,GAAAA,eAAA;AAAArB,eAAA,CAjBYqB,eAAe,aAQTU,eAAS;AAAA/B,eAAA,CARfqB,eAAe,WAUX,CAACW,eAAI,CAACC,QAAQ,CAAoB,CAAC,CAAC;AAAAjC,eAAA,CAVxCqB,eAAe,kBAYJ,EAAE;AAO1Ba,oCAAmB,CAACC,UAAU,CAACd,eAAe,CAAC","ignoreList":[]}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["_componentTree","data","require","_default","exports","default","ComponentTreeAspect"],"sources":["index.ts"],"sourcesContent":["import { ComponentTreeAspect } from './component-tree.aspect';\n\nexport { ComponentTreeAspect };\nexport type { ComponentTreeUI } from './component-tree.ui.runtime';\nexport type { ComponentTreeSlot } from './component-tree.ui.runtime';\nexport type { ComponentTreeNode, ComponentTreeNodeProps } from './component-tree-node';\nexport default ComponentTreeAspect;\n"],"mappings":";;;;;;;;;;;;AAAA,SAAAA,eAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,cAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8D,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAM/CC,oCAAmB"}
1
+ {"version":3,"names":["_componentTree","data","require","_default","exports","default","ComponentTreeAspect"],"sources":["index.ts"],"sourcesContent":["import { ComponentTreeAspect } from './component-tree.aspect';\n\nexport { ComponentTreeAspect };\nexport type { ComponentTreeUI } from './component-tree.ui.runtime';\nexport type { ComponentTreeSlot } from './component-tree.ui.runtime';\nexport type { ComponentTreeNode, ComponentTreeNodeProps } from './component-tree-node';\nexport default ComponentTreeAspect;\n"],"mappings":";;;;;;;;;;;;AAAA,SAAAA,eAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,cAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8D,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAM/CC,oCAAmB","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ import * as compositions_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec36fa42b9dbedfc12ecb7bb63e03fcfe6/teambit.component_component-tree@1.0.189/dist/component-tree.composition.js';
2
+ import * as overview_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec36fa42b9dbedfc12ecb7bb63e03fcfe6/teambit.component_component-tree@1.0.189/dist/component-tree.docs.mdx';
3
+
4
+ export const compositions = [compositions_0];
5
+ export const overview = [overview_0];
6
+
7
+ export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@teambit/component-tree",
3
- "version": "1.0.188",
3
+ "version": "1.0.189",
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.188"
9
+ "version": "1.0.189"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/harmony": "0.4.6",
13
- "@teambit/component": "1.0.188",
14
- "@teambit/ui": "1.0.188"
13
+ "@teambit/component": "1.0.189",
14
+ "@teambit/ui": "1.0.189"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/mocha": "9.1.0",
18
18
  "chai": "4.3.0",
19
- "@teambit/harmony.envs.core-aspect-env": "0.0.25"
19
+ "@teambit/harmony.envs.core-aspect-env": "0.0.27"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "react": "^17.0.0 || ^18.0.0",
@@ -1,7 +0,0 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-tree@1.0.188/dist/component-tree.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-tree@1.0.188/dist/component-tree.docs.mdx';
3
-
4
- export const compositions = [compositions_0];
5
- export const overview = [overview_0];
6
-
7
- export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};