@teambit/sidebar 1.0.516 → 1.0.518

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