@teambit/component-tree 1.0.510 → 1.0.511

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.510" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.component/component-tree@1.0.511" 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={551:(e,t,o)=>{var n={id:"teambit.component/component-tree@1.0.510",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(551);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={828:(e,t,o)=>{var n={id:"teambit.component/component-tree@1.0.511",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(828);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,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-tree@1.0.510/dist/component-tree.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-tree@1.0.510/dist/component-tree.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-tree@1.0.511/dist/component-tree.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.component_component-tree@1.0.511/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,17 +1,17 @@
1
1
  {
2
2
  "name": "@teambit/component-tree",
3
- "version": "1.0.510",
3
+ "version": "1.0.511",
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.510"
9
+ "version": "1.0.511"
10
10
  },
11
11
  "dependencies": {
12
12
  "@teambit/harmony": "0.4.6",
13
- "@teambit/component": "1.0.510",
14
- "@teambit/ui": "1.0.510"
13
+ "@teambit/component": "1.0.511",
14
+ "@teambit/ui": "1.0.511"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/mocha": "9.1.0",
@@ -1,999 +0,0 @@
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
- "typeArgs": [
345
- {
346
- "__schema": "TypeRefSchema",
347
- "location": {
348
- "filePath": "component-tree.ui.runtime.tsx",
349
- "line": 7,
350
- "character": 46
351
- },
352
- "name": "ComponentTreeNode"
353
- }
354
- ]
355
- }
356
- }
357
- },
358
- {
359
- "__schema": "ExportSchema",
360
- "location": {
361
- "filePath": "index.ts",
362
- "line": 6,
363
- "character": 15
364
- },
365
- "signature": "type ComponentTreeNode = {\n widget: ComponentType<ComponentTreeNodeProps>;\n}",
366
- "name": "ComponentTreeNode",
367
- "exportNode": {
368
- "__schema": "TypeSchema",
369
- "location": {
370
- "filePath": "component-tree-node.ts",
371
- "line": 11,
372
- "character": 1
373
- },
374
- "signature": "type ComponentTreeNode = {\n widget: ComponentType<ComponentTreeNodeProps>;\n}",
375
- "name": "ComponentTreeNode",
376
- "type": {
377
- "__schema": "TypeLiteralSchema",
378
- "location": {
379
- "filePath": "component-tree-node.ts",
380
- "line": 11,
381
- "character": 33
382
- },
383
- "members": [
384
- {
385
- "__schema": "VariableLikeSchema",
386
- "location": {
387
- "filePath": "component-tree-node.ts",
388
- "line": 15,
389
- "character": 3
390
- },
391
- "doc": {
392
- "__schema": "DocSchema",
393
- "location": {
394
- "filePath": "component-tree-node.ts",
395
- "line": 12,
396
- "character": 3
397
- },
398
- "raw": "/**\n * component to render inside the tree node.\n */",
399
- "comment": "component to render inside the tree node.",
400
- "tags": []
401
- },
402
- "signature": "(property) widget: ComponentType<ComponentTreeNodeProps>",
403
- "name": "widget",
404
- "type": {
405
- "__schema": "TypeRefSchema",
406
- "location": {
407
- "filePath": "component-tree-node.ts",
408
- "line": 15,
409
- "character": 11
410
- },
411
- "name": "ComponentType",
412
- "typeArgs": [
413
- {
414
- "__schema": "TypeRefSchema",
415
- "location": {
416
- "filePath": "component-tree-node.ts",
417
- "line": 15,
418
- "character": 25
419
- },
420
- "name": "ComponentTreeNodeProps"
421
- }
422
- ]
423
- },
424
- "isOptional": false
425
- }
426
- ]
427
- }
428
- }
429
- },
430
- {
431
- "__schema": "ExportSchema",
432
- "location": {
433
- "filePath": "index.ts",
434
- "line": 6,
435
- "character": 34
436
- },
437
- "signature": "type ComponentTreeNodeProps = {\n component: ComponentModel;\n}",
438
- "name": "ComponentTreeNodeProps",
439
- "exportNode": {
440
- "__schema": "TypeSchema",
441
- "location": {
442
- "filePath": "component-tree-node.ts",
443
- "line": 4,
444
- "character": 1
445
- },
446
- "signature": "type ComponentTreeNodeProps = {\n component: ComponentModel;\n}",
447
- "name": "ComponentTreeNodeProps",
448
- "type": {
449
- "__schema": "TypeLiteralSchema",
450
- "location": {
451
- "filePath": "component-tree-node.ts",
452
- "line": 4,
453
- "character": 38
454
- },
455
- "members": [
456
- {
457
- "__schema": "VariableLikeSchema",
458
- "location": {
459
- "filePath": "component-tree-node.ts",
460
- "line": 8,
461
- "character": 3
462
- },
463
- "doc": {
464
- "__schema": "DocSchema",
465
- "location": {
466
- "filePath": "component-tree-node.ts",
467
- "line": 5,
468
- "character": 3
469
- },
470
- "raw": "/**\n * component model.\n */",
471
- "comment": "component model.",
472
- "tags": []
473
- },
474
- "signature": "(property) component: ComponentModel",
475
- "name": "component",
476
- "type": {
477
- "__schema": "TypeRefSchema",
478
- "location": {
479
- "filePath": "component-tree-node.ts",
480
- "line": 8,
481
- "character": 3
482
- },
483
- "name": "ComponentModel",
484
- "componentId": {
485
- "scope": "teambit.component",
486
- "name": "component"
487
- }
488
- },
489
- "isOptional": false
490
- }
491
- ]
492
- }
493
- }
494
- },
495
- {
496
- "__schema": "UnImplementedSchema",
497
- "location": {
498
- "filePath": "index.ts",
499
- "line": 7,
500
- "character": 16
501
- },
502
- "name": "ComponentTreeAspect",
503
- "type": "Identifier"
504
- }
505
- ],
506
- "internals": []
507
- },
508
- "internals": [
509
- {
510
- "__schema": "ModuleSchema",
511
- "location": {
512
- "filePath": "component-tree.aspect.ts",
513
- "line": 1,
514
- "character": 1
515
- },
516
- "exports": [
517
- {
518
- "__schema": "VariableLikeSchema",
519
- "location": {
520
- "filePath": "component-tree.aspect.ts",
521
- "line": 3,
522
- "character": 14
523
- },
524
- "signature": "const ComponentTreeAspect: Aspect",
525
- "name": "ComponentTreeAspect",
526
- "type": {
527
- "__schema": "TypeRefSchema",
528
- "location": {
529
- "filePath": "component-tree.aspect.ts",
530
- "line": 3,
531
- "character": 14
532
- },
533
- "name": "Aspect",
534
- "componentId": {
535
- "scope": "teambit.harmony",
536
- "name": "harmony",
537
- "version": "0.4.6"
538
- }
539
- },
540
- "isOptional": false,
541
- "defaultValue": "Aspect.create({\n id: 'teambit.component/component-tree',\n})"
542
- },
543
- {
544
- "__schema": "UnImplementedSchema",
545
- "location": {
546
- "filePath": "component-tree.aspect.ts",
547
- "line": 7,
548
- "character": 16
549
- },
550
- "name": "ComponentTreeAspect",
551
- "type": "Identifier"
552
- }
553
- ],
554
- "internals": []
555
- },
556
- {
557
- "__schema": "ModuleSchema",
558
- "location": {
559
- "filePath": "component-tree.ui.runtime.tsx",
560
- "line": 1,
561
- "character": 1
562
- },
563
- "exports": [
564
- {
565
- "__schema": "TypeSchema",
566
- "location": {
567
- "filePath": "component-tree.ui.runtime.tsx",
568
- "line": 7,
569
- "character": 1
570
- },
571
- "signature": "type ComponentTreeSlot = SlotRegistry<ComponentTreeNode>",
572
- "name": "ComponentTreeSlot",
573
- "type": {
574
- "__schema": "TypeRefSchema",
575
- "location": {
576
- "filePath": "component-tree.ui.runtime.tsx",
577
- "line": 7,
578
- "character": 33
579
- },
580
- "name": "SlotRegistry",
581
- "typeArgs": [
582
- {
583
- "__schema": "TypeRefSchema",
584
- "location": {
585
- "filePath": "component-tree.ui.runtime.tsx",
586
- "line": 7,
587
- "character": 46
588
- },
589
- "name": "ComponentTreeNode"
590
- }
591
- ]
592
- }
593
- },
594
- {
595
- "__schema": "ClassSchema",
596
- "location": {
597
- "filePath": "component-tree.ui.runtime.tsx",
598
- "line": 9,
599
- "character": 1
600
- },
601
- "signature": "class ComponentTreeUI",
602
- "name": "ComponentTreeUI",
603
- "members": [
604
- {
605
- "__schema": "ConstructorSchema",
606
- "location": {
607
- "filePath": "component-tree.ui.runtime.tsx",
608
- "line": 10,
609
- "character": 3
610
- },
611
- "signature": "constructor ComponentTreeUI(treeNodeSlot: ComponentTreeSlot): ComponentTreeUI",
612
- "name": "constructor",
613
- "params": [
614
- {
615
- "__schema": "ParameterSchema",
616
- "location": {
617
- "filePath": "component-tree.ui.runtime.tsx",
618
- "line": 10,
619
- "character": 15
620
- },
621
- "name": "treeNodeSlot",
622
- "type": {
623
- "__schema": "TypeRefSchema",
624
- "location": {
625
- "filePath": "component-tree.ui.runtime.tsx",
626
- "line": 10,
627
- "character": 37
628
- },
629
- "name": "ComponentTreeSlot"
630
- },
631
- "isOptional": false,
632
- "isSpread": false
633
- }
634
- ],
635
- "returnType": {
636
- "__schema": "ThisTypeSchema",
637
- "location": {
638
- "filePath": "component-tree.ui.runtime.tsx",
639
- "line": 9,
640
- "character": 1
641
- },
642
- "name": "ComponentTreeUI"
643
- },
644
- "modifiers": []
645
- },
646
- {
647
- "__schema": "FunctionLikeSchema",
648
- "location": {
649
- "filePath": "component-tree.ui.runtime.tsx",
650
- "line": 12,
651
- "character": 3
652
- },
653
- "signature": "(method) ComponentTreeUI.registerTreeNode(treeNode: ComponentTreeNode): this",
654
- "name": "registerTreeNode",
655
- "params": [
656
- {
657
- "__schema": "ParameterSchema",
658
- "location": {
659
- "filePath": "component-tree.ui.runtime.tsx",
660
- "line": 12,
661
- "character": 20
662
- },
663
- "name": "treeNode",
664
- "type": {
665
- "__schema": "TypeRefSchema",
666
- "location": {
667
- "filePath": "component-tree.ui.runtime.tsx",
668
- "line": 12,
669
- "character": 30
670
- },
671
- "name": "ComponentTreeNode"
672
- },
673
- "isOptional": false,
674
- "isSpread": false
675
- }
676
- ],
677
- "returnType": {
678
- "__schema": "TypeRefSchema",
679
- "location": {
680
- "filePath": "component-tree.ui.runtime.tsx",
681
- "line": 12,
682
- "character": 3
683
- },
684
- "name": "ComponentTreeUI"
685
- },
686
- "modifiers": []
687
- },
688
- {
689
- "__schema": "VariableLikeSchema",
690
- "location": {
691
- "filePath": "component-tree.ui.runtime.tsx",
692
- "line": 17,
693
- "character": 3
694
- },
695
- "signature": "(property) ComponentTreeUI.runtime: RuntimeDefinition",
696
- "name": "runtime",
697
- "type": {
698
- "__schema": "InferenceTypeSchema",
699
- "location": {
700
- "filePath": "component-tree.ui.runtime.tsx",
701
- "line": 17,
702
- "character": 3
703
- },
704
- "type": "RuntimeDefinition"
705
- },
706
- "isOptional": true,
707
- "defaultValue": "UIRuntime"
708
- },
709
- {
710
- "__schema": "VariableLikeSchema",
711
- "location": {
712
- "filePath": "component-tree.ui.runtime.tsx",
713
- "line": 19,
714
- "character": 3
715
- },
716
- "signature": "(property) ComponentTreeUI.slots: ((registerFn: () => string) => SlotRegistry<ComponentTreeNode>)[]",
717
- "name": "slots",
718
- "type": {
719
- "__schema": "InferenceTypeSchema",
720
- "location": {
721
- "filePath": "component-tree.ui.runtime.tsx",
722
- "line": 19,
723
- "character": 3
724
- },
725
- "type": "((registerFn: () => string) => SlotRegistry<ComponentTreeNode>)[]"
726
- },
727
- "isOptional": true,
728
- "defaultValue": "[Slot.withType<ComponentTreeNode>()]"
729
- },
730
- {
731
- "__schema": "VariableLikeSchema",
732
- "location": {
733
- "filePath": "component-tree.ui.runtime.tsx",
734
- "line": 21,
735
- "character": 3
736
- },
737
- "signature": "(property) ComponentTreeUI.dependencies: never[]",
738
- "name": "dependencies",
739
- "type": {
740
- "__schema": "InferenceTypeSchema",
741
- "location": {
742
- "filePath": "component-tree.ui.runtime.tsx",
743
- "line": 21,
744
- "character": 3
745
- },
746
- "type": "never[]"
747
- },
748
- "isOptional": true,
749
- "defaultValue": "[]"
750
- },
751
- {
752
- "__schema": "FunctionLikeSchema",
753
- "location": {
754
- "filePath": "component-tree.ui.runtime.tsx",
755
- "line": 23,
756
- "character": 3
757
- },
758
- "signature": "(method) ComponentTreeUI.provider(deps: any, config: any, [treeNodeSlot]: [ComponentTreeSlot]): Promise<ComponentTreeUI>",
759
- "name": "provider",
760
- "params": [
761
- {
762
- "__schema": "ParameterSchema",
763
- "location": {
764
- "filePath": "component-tree.ui.runtime.tsx",
765
- "line": 23,
766
- "character": 25
767
- },
768
- "name": "deps",
769
- "type": {
770
- "__schema": "InferenceTypeSchema",
771
- "location": {
772
- "filePath": "component-tree.ui.runtime.tsx",
773
- "line": 23,
774
- "character": 25
775
- },
776
- "type": "any"
777
- },
778
- "isOptional": false,
779
- "isSpread": false
780
- },
781
- {
782
- "__schema": "ParameterSchema",
783
- "location": {
784
- "filePath": "component-tree.ui.runtime.tsx",
785
- "line": 23,
786
- "character": 31
787
- },
788
- "name": "config",
789
- "type": {
790
- "__schema": "InferenceTypeSchema",
791
- "location": {
792
- "filePath": "component-tree.ui.runtime.tsx",
793
- "line": 23,
794
- "character": 31
795
- },
796
- "type": "any"
797
- },
798
- "isOptional": false,
799
- "isSpread": false
800
- },
801
- {
802
- "__schema": "ParameterSchema",
803
- "location": {
804
- "filePath": "component-tree.ui.runtime.tsx",
805
- "line": 23,
806
- "character": 39
807
- },
808
- "name": "[ treeNodeSlot ]",
809
- "type": {
810
- "__schema": "TupleTypeSchema",
811
- "location": {
812
- "filePath": "component-tree.ui.runtime.tsx",
813
- "line": 23,
814
- "character": 55
815
- },
816
- "elements": [
817
- {
818
- "__schema": "TypeRefSchema",
819
- "location": {
820
- "filePath": "component-tree.ui.runtime.tsx",
821
- "line": 23,
822
- "character": 56
823
- },
824
- "name": "ComponentTreeSlot"
825
- }
826
- ]
827
- },
828
- "isOptional": false,
829
- "isSpread": false
830
- }
831
- ],
832
- "returnType": {
833
- "__schema": "InferenceTypeSchema",
834
- "location": {
835
- "filePath": "component-tree.ui.runtime.tsx",
836
- "line": 23,
837
- "character": 3
838
- },
839
- "type": "Promise<ComponentTreeUI>"
840
- },
841
- "modifiers": [
842
- "static",
843
- "async"
844
- ]
845
- }
846
- ],
847
- "extendsNodes": [],
848
- "implementNodes": []
849
- }
850
- ],
851
- "internals": [
852
- {
853
- "__schema": "UnImplementedSchema",
854
- "location": {
855
- "filePath": "component-tree.ui.runtime.tsx",
856
- "line": 28,
857
- "character": 1
858
- },
859
- "name": "ComponentTreeAspect.addRuntime(ComponentTreeUI);",
860
- "type": "ExpressionStatement"
861
- }
862
- ]
863
- },
864
- {
865
- "__schema": "ModuleSchema",
866
- "location": {
867
- "filePath": "component-tree-node.ts",
868
- "line": 1,
869
- "character": 1
870
- },
871
- "exports": [
872
- {
873
- "__schema": "TypeSchema",
874
- "location": {
875
- "filePath": "component-tree-node.ts",
876
- "line": 4,
877
- "character": 1
878
- },
879
- "signature": "type ComponentTreeNodeProps = {\n component: ComponentModel;\n}",
880
- "name": "ComponentTreeNodeProps",
881
- "type": {
882
- "__schema": "TypeLiteralSchema",
883
- "location": {
884
- "filePath": "component-tree-node.ts",
885
- "line": 4,
886
- "character": 38
887
- },
888
- "members": [
889
- {
890
- "__schema": "VariableLikeSchema",
891
- "location": {
892
- "filePath": "component-tree-node.ts",
893
- "line": 8,
894
- "character": 3
895
- },
896
- "doc": {
897
- "__schema": "DocSchema",
898
- "location": {
899
- "filePath": "component-tree-node.ts",
900
- "line": 5,
901
- "character": 3
902
- },
903
- "raw": "/**\n * component model.\n */",
904
- "comment": "component model.",
905
- "tags": []
906
- },
907
- "signature": "(property) component: ComponentModel",
908
- "name": "component",
909
- "type": {
910
- "__schema": "TypeRefSchema",
911
- "location": {
912
- "filePath": "component-tree-node.ts",
913
- "line": 8,
914
- "character": 3
915
- },
916
- "name": "ComponentModel",
917
- "componentId": {
918
- "scope": "teambit.component",
919
- "name": "component"
920
- }
921
- },
922
- "isOptional": false
923
- }
924
- ]
925
- }
926
- },
927
- {
928
- "__schema": "TypeSchema",
929
- "location": {
930
- "filePath": "component-tree-node.ts",
931
- "line": 11,
932
- "character": 1
933
- },
934
- "signature": "type ComponentTreeNode = {\n widget: ComponentType<ComponentTreeNodeProps>;\n}",
935
- "name": "ComponentTreeNode",
936
- "type": {
937
- "__schema": "TypeLiteralSchema",
938
- "location": {
939
- "filePath": "component-tree-node.ts",
940
- "line": 11,
941
- "character": 33
942
- },
943
- "members": [
944
- {
945
- "__schema": "VariableLikeSchema",
946
- "location": {
947
- "filePath": "component-tree-node.ts",
948
- "line": 15,
949
- "character": 3
950
- },
951
- "doc": {
952
- "__schema": "DocSchema",
953
- "location": {
954
- "filePath": "component-tree-node.ts",
955
- "line": 12,
956
- "character": 3
957
- },
958
- "raw": "/**\n * component to render inside the tree node.\n */",
959
- "comment": "component to render inside the tree node.",
960
- "tags": []
961
- },
962
- "signature": "(property) widget: ComponentType<ComponentTreeNodeProps>",
963
- "name": "widget",
964
- "type": {
965
- "__schema": "TypeRefSchema",
966
- "location": {
967
- "filePath": "component-tree-node.ts",
968
- "line": 15,
969
- "character": 11
970
- },
971
- "name": "ComponentType",
972
- "typeArgs": [
973
- {
974
- "__schema": "TypeRefSchema",
975
- "location": {
976
- "filePath": "component-tree-node.ts",
977
- "line": 15,
978
- "character": 25
979
- },
980
- "name": "ComponentTreeNodeProps"
981
- }
982
- ]
983
- },
984
- "isOptional": false
985
- }
986
- ]
987
- }
988
- }
989
- ],
990
- "internals": []
991
- }
992
- ],
993
- "componentId": {
994
- "scope": "teambit.component",
995
- "name": "component-tree",
996
- "version": "1.0.510"
997
- },
998
- "taggedModuleExports": []
999
- }