@teambit/sidebar 1.0.187 → 1.0.188

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