@teambit/sidebar 1.0.510 → 1.0.512

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