@teambit/command-bar 1.0.511 → 1.0.513

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.
@@ -0,0 +1,2437 @@
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": 1,
21
+ "character": 10
22
+ },
23
+ "signature": "const CommandBarAspect: Aspect",
24
+ "name": "CommandBarAspect",
25
+ "exportNode": {
26
+ "__schema": "VariableLikeSchema",
27
+ "location": {
28
+ "filePath": "command-bar.aspect.ts",
29
+ "line": 3,
30
+ "character": 14
31
+ },
32
+ "signature": "const CommandBarAspect: Aspect",
33
+ "name": "CommandBarAspect",
34
+ "type": {
35
+ "__schema": "TypeRefSchema",
36
+ "location": {
37
+ "filePath": "command-bar.aspect.ts",
38
+ "line": 3,
39
+ "character": 14
40
+ },
41
+ "name": "Aspect",
42
+ "componentId": {
43
+ "scope": "teambit.harmony",
44
+ "name": "harmony",
45
+ "version": "0.4.6"
46
+ }
47
+ },
48
+ "isOptional": false,
49
+ "defaultValue": "Aspect.create({\n id: 'teambit.explorer/command-bar',\n dependencies: [],\n defaultConfig: {},\n})"
50
+ }
51
+ },
52
+ {
53
+ "__schema": "ExportSchema",
54
+ "location": {
55
+ "filePath": "index.ts",
56
+ "line": 1,
57
+ "character": 48
58
+ },
59
+ "signature": "const CommandBarAspect: Aspect",
60
+ "name": "CommandBarAspect",
61
+ "exportNode": {
62
+ "__schema": "VariableLikeSchema",
63
+ "location": {
64
+ "filePath": "command-bar.aspect.ts",
65
+ "line": 3,
66
+ "character": 14
67
+ },
68
+ "signature": "const CommandBarAspect: Aspect",
69
+ "name": "CommandBarAspect",
70
+ "type": {
71
+ "__schema": "TypeRefSchema",
72
+ "location": {
73
+ "filePath": "command-bar.aspect.ts",
74
+ "line": 3,
75
+ "character": 14
76
+ },
77
+ "name": "Aspect",
78
+ "componentId": {
79
+ "scope": "teambit.harmony",
80
+ "name": "harmony",
81
+ "version": "0.4.6"
82
+ }
83
+ },
84
+ "isOptional": false,
85
+ "defaultValue": "Aspect.create({\n id: 'teambit.explorer/command-bar',\n dependencies: [],\n defaultConfig: {},\n})"
86
+ },
87
+ "alias": "default"
88
+ },
89
+ {
90
+ "__schema": "ExportSchema",
91
+ "location": {
92
+ "filePath": "index.ts",
93
+ "line": 2,
94
+ "character": 10
95
+ },
96
+ "signature": "const commandBarCommands: {\n open: string;\n}",
97
+ "name": "commandBarCommands",
98
+ "exportNode": {
99
+ "__schema": "VariableLikeSchema",
100
+ "location": {
101
+ "filePath": "command-bar.commands.ts",
102
+ "line": 1,
103
+ "character": 14
104
+ },
105
+ "signature": "const commandBarCommands: {\n open: string;\n}",
106
+ "name": "commandBarCommands",
107
+ "type": {
108
+ "__schema": "InferenceTypeSchema",
109
+ "location": {
110
+ "filePath": "command-bar.commands.ts",
111
+ "line": 1,
112
+ "character": 14
113
+ },
114
+ "type": "{\n open: string;\n}"
115
+ },
116
+ "isOptional": false,
117
+ "defaultValue": "{\n open: 'command-bar.open',\n}"
118
+ }
119
+ },
120
+ {
121
+ "__schema": "ExportSchema",
122
+ "location": {
123
+ "filePath": "index.ts",
124
+ "line": 3,
125
+ "character": 15
126
+ },
127
+ "signature": "interface SearchProvider",
128
+ "name": "SearchProvider",
129
+ "exportNode": {
130
+ "__schema": "InterfaceSchema",
131
+ "location": {
132
+ "filePath": "searchers/search-provider.ts",
133
+ "line": 3,
134
+ "character": 1
135
+ },
136
+ "signature": "interface SearchProvider",
137
+ "name": "SearchProvider",
138
+ "members": [
139
+ {
140
+ "__schema": "VariableLikeSchema",
141
+ "location": {
142
+ "filePath": "searchers/search-provider.ts",
143
+ "line": 5,
144
+ "character": 3
145
+ },
146
+ "doc": {
147
+ "__schema": "DocSchema",
148
+ "location": {
149
+ "filePath": "searchers/search-provider.ts",
150
+ "line": 4,
151
+ "character": 3
152
+ },
153
+ "raw": "/** provide completions for this search term */",
154
+ "comment": "provide completions for this search term",
155
+ "tags": []
156
+ },
157
+ "signature": "(property) SearchProvider.search: Searcher",
158
+ "name": "search",
159
+ "type": {
160
+ "__schema": "TypeRefSchema",
161
+ "location": {
162
+ "filePath": "searchers/search-provider.ts",
163
+ "line": 5,
164
+ "character": 11
165
+ },
166
+ "name": "Searcher"
167
+ },
168
+ "isOptional": false
169
+ },
170
+ {
171
+ "__schema": "FunctionLikeSchema",
172
+ "location": {
173
+ "filePath": "searchers/search-provider.ts",
174
+ "line": 7,
175
+ "character": 3
176
+ },
177
+ "doc": {
178
+ "__schema": "DocSchema",
179
+ "location": {
180
+ "filePath": "searchers/search-provider.ts",
181
+ "line": 6,
182
+ "character": 3
183
+ },
184
+ "raw": "/** determines what terms are handled by this searcher. */",
185
+ "comment": "determines what terms are handled by this searcher.",
186
+ "tags": []
187
+ },
188
+ "signature": "(method) SearchProvider.test(term: string): boolean",
189
+ "name": "test",
190
+ "params": [
191
+ {
192
+ "__schema": "ParameterSchema",
193
+ "location": {
194
+ "filePath": "searchers/search-provider.ts",
195
+ "line": 7,
196
+ "character": 8
197
+ },
198
+ "name": "term",
199
+ "type": {
200
+ "__schema": "KeywordTypeSchema",
201
+ "location": {
202
+ "filePath": "searchers/search-provider.ts",
203
+ "line": 7,
204
+ "character": 14
205
+ },
206
+ "name": "string"
207
+ },
208
+ "isOptional": false,
209
+ "isSpread": false
210
+ }
211
+ ],
212
+ "returnType": {
213
+ "__schema": "KeywordTypeSchema",
214
+ "location": {
215
+ "filePath": "searchers/search-provider.ts",
216
+ "line": 7,
217
+ "character": 23
218
+ },
219
+ "name": "boolean"
220
+ },
221
+ "modifiers": []
222
+ }
223
+ ],
224
+ "extendsNodes": []
225
+ }
226
+ },
227
+ {
228
+ "__schema": "ExportSchema",
229
+ "location": {
230
+ "filePath": "index.ts",
231
+ "line": 4,
232
+ "character": 15
233
+ },
234
+ "signature": "class CommandBarUI",
235
+ "name": "CommandBarUI",
236
+ "exportNode": {
237
+ "__schema": "ClassSchema",
238
+ "location": {
239
+ "filePath": "command-bar.ui.runtime.tsx",
240
+ "line": 37,
241
+ "character": 1
242
+ },
243
+ "doc": {
244
+ "__schema": "DocSchema",
245
+ "location": {
246
+ "filePath": "command-bar.ui.runtime.tsx",
247
+ "line": 36,
248
+ "character": 1
249
+ },
250
+ "raw": "/** Quick launch actions. Use the `addSearcher` slot to extend the available actions */",
251
+ "comment": "Quick launch actions. Use the `addSearcher` slot to extend the available actions",
252
+ "tags": []
253
+ },
254
+ "signature": "class CommandBarUI",
255
+ "name": "CommandBarUI",
256
+ "members": [
257
+ {
258
+ "__schema": "VariableLikeSchema",
259
+ "location": {
260
+ "filePath": "command-bar.ui.runtime.tsx",
261
+ "line": 42,
262
+ "character": 3
263
+ },
264
+ "doc": {
265
+ "__schema": "DocSchema",
266
+ "location": {
267
+ "filePath": "command-bar.ui.runtime.tsx",
268
+ "line": 41,
269
+ "character": 3
270
+ },
271
+ "raw": "/** Opens the command bar */",
272
+ "comment": "Opens the command bar",
273
+ "tags": []
274
+ },
275
+ "signature": "(property) CommandBarUI.open: () => boolean",
276
+ "name": "open",
277
+ "type": {
278
+ "__schema": "InferenceTypeSchema",
279
+ "location": {
280
+ "filePath": "command-bar.ui.runtime.tsx",
281
+ "line": 42,
282
+ "character": 3
283
+ },
284
+ "type": "() => boolean"
285
+ },
286
+ "isOptional": true,
287
+ "defaultValue": "() => {\n this.setVisibility?.(true);\n return false; // aka prevent default\n }"
288
+ },
289
+ {
290
+ "__schema": "VariableLikeSchema",
291
+ "location": {
292
+ "filePath": "command-bar.ui.runtime.tsx",
293
+ "line": 48,
294
+ "character": 3
295
+ },
296
+ "doc": {
297
+ "__schema": "DocSchema",
298
+ "location": {
299
+ "filePath": "command-bar.ui.runtime.tsx",
300
+ "line": 47,
301
+ "character": 3
302
+ },
303
+ "raw": "/** Closes the command bar */",
304
+ "comment": "Closes the command bar",
305
+ "tags": []
306
+ },
307
+ "signature": "(property) CommandBarUI.close: () => void",
308
+ "name": "close",
309
+ "type": {
310
+ "__schema": "InferenceTypeSchema",
311
+ "location": {
312
+ "filePath": "command-bar.ui.runtime.tsx",
313
+ "line": 48,
314
+ "character": 3
315
+ },
316
+ "type": "() => void"
317
+ },
318
+ "isOptional": true,
319
+ "defaultValue": "() => {\n this.setVisibility?.(false);\n }"
320
+ },
321
+ {
322
+ "__schema": "FunctionLikeSchema",
323
+ "location": {
324
+ "filePath": "command-bar.ui.runtime.tsx",
325
+ "line": 53,
326
+ "character": 3
327
+ },
328
+ "doc": {
329
+ "__schema": "DocSchema",
330
+ "location": {
331
+ "filePath": "command-bar.ui.runtime.tsx",
332
+ "line": 52,
333
+ "character": 3
334
+ },
335
+ "raw": "/** Add and autocomplete provider. To support keyboard navigation, each result should have a props `active: boolean`, and `exectue: () => any` */",
336
+ "comment": "Add and autocomplete provider. To support keyboard navigation, each result should have a props `active: boolean`, and `exectue: () => any`",
337
+ "tags": []
338
+ },
339
+ "signature": "(method) CommandBarUI.addSearcher(...commandSearcher: SearchProvider[]): this",
340
+ "name": "addSearcher",
341
+ "params": [
342
+ {
343
+ "__schema": "ParameterSchema",
344
+ "location": {
345
+ "filePath": "command-bar.ui.runtime.tsx",
346
+ "line": 53,
347
+ "character": 15
348
+ },
349
+ "name": "commandSearcher",
350
+ "type": {
351
+ "__schema": "TypeArraySchema",
352
+ "location": {
353
+ "filePath": "command-bar.ui.runtime.tsx",
354
+ "line": 53,
355
+ "character": 35
356
+ },
357
+ "type": {
358
+ "__schema": "TypeRefSchema",
359
+ "location": {
360
+ "filePath": "command-bar.ui.runtime.tsx",
361
+ "line": 53,
362
+ "character": 35
363
+ },
364
+ "name": "SearchProvider"
365
+ }
366
+ },
367
+ "isOptional": false,
368
+ "isSpread": true
369
+ }
370
+ ],
371
+ "returnType": {
372
+ "__schema": "TypeRefSchema",
373
+ "location": {
374
+ "filePath": "command-bar.ui.runtime.tsx",
375
+ "line": 53,
376
+ "character": 3
377
+ },
378
+ "name": "CommandBarUI"
379
+ },
380
+ "modifiers": []
381
+ },
382
+ {
383
+ "__schema": "FunctionLikeSchema",
384
+ "location": {
385
+ "filePath": "command-bar.ui.runtime.tsx",
386
+ "line": 61,
387
+ "character": 3
388
+ },
389
+ "doc": {
390
+ "__schema": "DocSchema",
391
+ "location": {
392
+ "filePath": "command-bar.ui.runtime.tsx",
393
+ "line": 58,
394
+ "character": 3
395
+ },
396
+ "raw": "/**\n * registers a command\n */",
397
+ "comment": "registers a command",
398
+ "tags": []
399
+ },
400
+ "signature": "(method) CommandBarUI.addCommand(...originalCommands: CommandEntry[]): ((next: CommandHandler) => void)[]",
401
+ "name": "addCommand",
402
+ "params": [
403
+ {
404
+ "__schema": "ParameterSchema",
405
+ "location": {
406
+ "filePath": "command-bar.ui.runtime.tsx",
407
+ "line": 61,
408
+ "character": 14
409
+ },
410
+ "name": "originalCommands",
411
+ "type": {
412
+ "__schema": "TypeArraySchema",
413
+ "location": {
414
+ "filePath": "command-bar.ui.runtime.tsx",
415
+ "line": 61,
416
+ "character": 35
417
+ },
418
+ "type": {
419
+ "__schema": "TypeRefSchema",
420
+ "location": {
421
+ "filePath": "command-bar.ui.runtime.tsx",
422
+ "line": 61,
423
+ "character": 35
424
+ },
425
+ "name": "CommandEntry"
426
+ }
427
+ },
428
+ "isOptional": false,
429
+ "isSpread": true
430
+ }
431
+ ],
432
+ "returnType": {
433
+ "__schema": "InferenceTypeSchema",
434
+ "location": {
435
+ "filePath": "command-bar.ui.runtime.tsx",
436
+ "line": 61,
437
+ "character": 3
438
+ },
439
+ "type": "((next: CommandHandler) => void)[]"
440
+ },
441
+ "modifiers": []
442
+ },
443
+ {
444
+ "__schema": "FunctionLikeSchema",
445
+ "location": {
446
+ "filePath": "command-bar.ui.runtime.tsx",
447
+ "line": 94,
448
+ "character": 3
449
+ },
450
+ "doc": {
451
+ "__schema": "DocSchema",
452
+ "location": {
453
+ "filePath": "command-bar.ui.runtime.tsx",
454
+ "line": 90,
455
+ "character": 3
456
+ },
457
+ "raw": "/**\n * executes command by name, if exists.\n * @param commandId\n */",
458
+ "comment": "executes command by name, if exists.",
459
+ "tags": [
460
+ {
461
+ "__schema": "PropertyLikeTagSchema",
462
+ "location": {
463
+ "filePath": "command-bar.ui.runtime.tsx",
464
+ "line": 92,
465
+ "character": 6
466
+ },
467
+ "name": "commandId",
468
+ "tagName": "parameter"
469
+ }
470
+ ]
471
+ },
472
+ "signature": "(method) CommandBarUI.run(commandId: CommandId): any",
473
+ "name": "run",
474
+ "params": [
475
+ {
476
+ "__schema": "ParameterSchema",
477
+ "location": {
478
+ "filePath": "command-bar.ui.runtime.tsx",
479
+ "line": 94,
480
+ "character": 7
481
+ },
482
+ "name": "commandId",
483
+ "type": {
484
+ "__schema": "TypeRefSchema",
485
+ "location": {
486
+ "filePath": "command-bar.ui.runtime.tsx",
487
+ "line": 94,
488
+ "character": 18
489
+ },
490
+ "name": "CommandId"
491
+ },
492
+ "isOptional": false,
493
+ "isSpread": false
494
+ }
495
+ ],
496
+ "returnType": {
497
+ "__schema": "InferenceTypeSchema",
498
+ "location": {
499
+ "filePath": "command-bar.ui.runtime.tsx",
500
+ "line": 94,
501
+ "character": 3
502
+ },
503
+ "type": "any"
504
+ },
505
+ "modifiers": []
506
+ },
507
+ {
508
+ "__schema": "VariableLikeSchema",
509
+ "location": {
510
+ "filePath": "command-bar.ui.runtime.tsx",
511
+ "line": 104,
512
+ "character": 3
513
+ },
514
+ "doc": {
515
+ "__schema": "DocSchema",
516
+ "location": {
517
+ "filePath": "command-bar.ui.runtime.tsx",
518
+ "line": 101,
519
+ "character": 3
520
+ },
521
+ "raw": "/**\n * executes a keyboard shortcut manually\n */",
522
+ "comment": "executes a keyboard shortcut manually",
523
+ "tags": []
524
+ },
525
+ "signature": "(property) CommandBarUI.trigger: (key: string) => void",
526
+ "name": "trigger",
527
+ "type": {
528
+ "__schema": "InferenceTypeSchema",
529
+ "location": {
530
+ "filePath": "command-bar.ui.runtime.tsx",
531
+ "line": 104,
532
+ "character": 3
533
+ },
534
+ "type": "(key: string) => void"
535
+ },
536
+ "isOptional": true,
537
+ "defaultValue": "(key: string) => {\n this.mousetrap.trigger(key);\n }"
538
+ },
539
+ {
540
+ "__schema": "VariableLikeSchema",
541
+ "location": {
542
+ "filePath": "command-bar.ui.runtime.tsx",
543
+ "line": 136,
544
+ "character": 3
545
+ },
546
+ "doc": {
547
+ "__schema": "DocSchema",
548
+ "location": {
549
+ "filePath": "command-bar.ui.runtime.tsx",
550
+ "line": 133,
551
+ "character": 3
552
+ },
553
+ "raw": "/**\n * Opens and closes the command bar UI.\n */",
554
+ "comment": "Opens and closes the command bar UI.",
555
+ "tags": []
556
+ },
557
+ "signature": "(property) CommandBarUI.setVisibility?: ((visible: boolean) => void) | undefined",
558
+ "name": "setVisibility",
559
+ "type": {
560
+ "__schema": "FunctionLikeSchema",
561
+ "location": {
562
+ "filePath": "command-bar.ui.runtime.tsx",
563
+ "line": 136,
564
+ "character": 19
565
+ },
566
+ "signature": "(visible: boolean): void",
567
+ "name": "",
568
+ "params": [
569
+ {
570
+ "__schema": "ParameterSchema",
571
+ "location": {
572
+ "filePath": "command-bar.ui.runtime.tsx",
573
+ "line": 136,
574
+ "character": 20
575
+ },
576
+ "name": "visible",
577
+ "type": {
578
+ "__schema": "KeywordTypeSchema",
579
+ "location": {
580
+ "filePath": "command-bar.ui.runtime.tsx",
581
+ "line": 136,
582
+ "character": 29
583
+ },
584
+ "name": "boolean"
585
+ },
586
+ "isOptional": false,
587
+ "isSpread": false
588
+ }
589
+ ],
590
+ "returnType": {
591
+ "__schema": "KeywordTypeSchema",
592
+ "location": {
593
+ "filePath": "command-bar.ui.runtime.tsx",
594
+ "line": 136,
595
+ "character": 41
596
+ },
597
+ "name": "void"
598
+ },
599
+ "modifiers": []
600
+ },
601
+ "isOptional": true
602
+ },
603
+ {
604
+ "__schema": "VariableLikeSchema",
605
+ "location": {
606
+ "filePath": "command-bar.ui.runtime.tsx",
607
+ "line": 141,
608
+ "character": 3
609
+ },
610
+ "doc": {
611
+ "__schema": "DocSchema",
612
+ "location": {
613
+ "filePath": "command-bar.ui.runtime.tsx",
614
+ "line": 138,
615
+ "character": 3
616
+ },
617
+ "raw": "/**\n * generate the ui for command bar\n */",
618
+ "comment": "generate the ui for command bar",
619
+ "tags": []
620
+ },
621
+ "signature": "(property) CommandBarUI.CommandBar: ({ ResultComponent, onEnter, }: {\n ResultComponent?: ComponentType<ResultsComponentProps>;\n onEnter?: (value: string) => void;\n}) => React.JSX.Element",
622
+ "name": "CommandBar",
623
+ "type": {
624
+ "__schema": "InferenceTypeSchema",
625
+ "location": {
626
+ "filePath": "command-bar.ui.runtime.tsx",
627
+ "line": 141,
628
+ "character": 3
629
+ },
630
+ "type": "({ ResultComponent, onEnter, }: {\n ResultComponent?: ComponentType<ResultsComponentProps>;\n onEnter?: (value: string) => void;\n}) => React.JSX.Element"
631
+ },
632
+ "isOptional": true,
633
+ "defaultValue": "({\n ResultComponent,\n onEnter,\n }: {\n ResultComponent?: ComponentType<ResultsComponentProps>;\n onEnter?: (value: string) => void;\n }) => {\n const [visible, setVisibility] = useState(false);\n this.setVisibility = setVisibility;\n\n const results = useSearcher(this.search, {\n debounce: this.config.debounce,\n });\n\n return (\n <CommandBar\n key=\"CommandBarUI\"\n {...results}\n onEnter={onEnter}\n className={styles.commanderUi}\n placeholder=\"Search anything or type > to only search commands\"\n visible={visible}\n ResultsComponent={ResultComponent}\n onVisibilityChange={setVisibility}\n autofocus\n />\n );\n }"
634
+ },
635
+ {
636
+ "__schema": "VariableLikeSchema",
637
+ "location": {
638
+ "filePath": "command-bar.ui.runtime.tsx",
639
+ "line": 170,
640
+ "character": 3
641
+ },
642
+ "signature": "(property) CommandBarUI.CommandBarButton: () => React.JSX.Element",
643
+ "name": "CommandBarButton",
644
+ "type": {
645
+ "__schema": "InferenceTypeSchema",
646
+ "location": {
647
+ "filePath": "command-bar.ui.runtime.tsx",
648
+ "line": 170,
649
+ "character": 3
650
+ },
651
+ "type": "() => React.JSX.Element"
652
+ },
653
+ "isOptional": true,
654
+ "defaultValue": "() => <CommandBarButton onClick={() => this.setVisibility?.(true)} />"
655
+ },
656
+ {
657
+ "__schema": "ConstructorSchema",
658
+ "location": {
659
+ "filePath": "command-bar.ui.runtime.tsx",
660
+ "line": 172,
661
+ "character": 3
662
+ },
663
+ "signature": "constructor CommandBarUI(searcherSlot: SearcherSlot, commandSlot: CommandSlot, config: CommandBarConfig): CommandBarUI",
664
+ "name": "constructor",
665
+ "params": [
666
+ {
667
+ "__schema": "ParameterSchema",
668
+ "location": {
669
+ "filePath": "command-bar.ui.runtime.tsx",
670
+ "line": 173,
671
+ "character": 5
672
+ },
673
+ "name": "searcherSlot",
674
+ "type": {
675
+ "__schema": "TypeRefSchema",
676
+ "location": {
677
+ "filePath": "command-bar.ui.runtime.tsx",
678
+ "line": 173,
679
+ "character": 27
680
+ },
681
+ "name": "SearcherSlot"
682
+ },
683
+ "isOptional": false,
684
+ "isSpread": false
685
+ },
686
+ {
687
+ "__schema": "ParameterSchema",
688
+ "location": {
689
+ "filePath": "command-bar.ui.runtime.tsx",
690
+ "line": 174,
691
+ "character": 5
692
+ },
693
+ "name": "commandSlot",
694
+ "type": {
695
+ "__schema": "TypeRefSchema",
696
+ "location": {
697
+ "filePath": "command-bar.ui.runtime.tsx",
698
+ "line": 174,
699
+ "character": 26
700
+ },
701
+ "name": "CommandSlot"
702
+ },
703
+ "isOptional": false,
704
+ "isSpread": false
705
+ },
706
+ {
707
+ "__schema": "ParameterSchema",
708
+ "location": {
709
+ "filePath": "command-bar.ui.runtime.tsx",
710
+ "line": 175,
711
+ "character": 5
712
+ },
713
+ "name": "config",
714
+ "type": {
715
+ "__schema": "TypeRefSchema",
716
+ "location": {
717
+ "filePath": "command-bar.ui.runtime.tsx",
718
+ "line": 175,
719
+ "character": 21
720
+ },
721
+ "name": "CommandBarConfig"
722
+ },
723
+ "isOptional": false,
724
+ "isSpread": false
725
+ }
726
+ ],
727
+ "returnType": {
728
+ "__schema": "ThisTypeSchema",
729
+ "location": {
730
+ "filePath": "command-bar.ui.runtime.tsx",
731
+ "line": 37,
732
+ "character": 1
733
+ },
734
+ "name": "CommandBarUI"
735
+ },
736
+ "modifiers": []
737
+ },
738
+ {
739
+ "__schema": "VariableLikeSchema",
740
+ "location": {
741
+ "filePath": "command-bar.ui.runtime.tsx",
742
+ "line": 178,
743
+ "character": 3
744
+ },
745
+ "signature": "(property) CommandBarUI.dependencies: Aspect[]",
746
+ "name": "dependencies",
747
+ "type": {
748
+ "__schema": "InferenceTypeSchema",
749
+ "location": {
750
+ "filePath": "command-bar.ui.runtime.tsx",
751
+ "line": 178,
752
+ "character": 3
753
+ },
754
+ "type": "Aspect[]"
755
+ },
756
+ "isOptional": true,
757
+ "defaultValue": "[UIAspect, PubsubAspect, ReactRouterAspect]"
758
+ },
759
+ {
760
+ "__schema": "VariableLikeSchema",
761
+ "location": {
762
+ "filePath": "command-bar.ui.runtime.tsx",
763
+ "line": 179,
764
+ "character": 3
765
+ },
766
+ "signature": "(property) CommandBarUI.slots: (((registerFn: () => string) => SlotRegistry<SearchProvider>) | ((registerFn: () => string) => SlotRegistry<CommandEntry[]>))[]",
767
+ "name": "slots",
768
+ "type": {
769
+ "__schema": "InferenceTypeSchema",
770
+ "location": {
771
+ "filePath": "command-bar.ui.runtime.tsx",
772
+ "line": 179,
773
+ "character": 3
774
+ },
775
+ "type": "(((registerFn: () => string) => SlotRegistry<SearchProvider>) | ((registerFn: () => string) => SlotRegistry<CommandEntry[]>))[]"
776
+ },
777
+ "isOptional": true,
778
+ "defaultValue": "[Slot.withType<SearchProvider>(), Slot.withType<CommandEntry[]>()]"
779
+ },
780
+ {
781
+ "__schema": "VariableLikeSchema",
782
+ "location": {
783
+ "filePath": "command-bar.ui.runtime.tsx",
784
+ "line": 180,
785
+ "character": 3
786
+ },
787
+ "signature": "(property) CommandBarUI.defaultConfig: CommandBarConfig",
788
+ "name": "defaultConfig",
789
+ "type": {
790
+ "__schema": "TypeRefSchema",
791
+ "location": {
792
+ "filePath": "command-bar.ui.runtime.tsx",
793
+ "line": 180,
794
+ "character": 3
795
+ },
796
+ "name": "CommandBarConfig",
797
+ "internalFilePath": "command-bar.ui.runtime.tsx"
798
+ },
799
+ "isOptional": true,
800
+ "defaultValue": "{\n debounce: undefined,\n }"
801
+ },
802
+ {
803
+ "__schema": "VariableLikeSchema",
804
+ "location": {
805
+ "filePath": "command-bar.ui.runtime.tsx",
806
+ "line": 184,
807
+ "character": 3
808
+ },
809
+ "signature": "(property) CommandBarUI.runtime: RuntimeDefinition",
810
+ "name": "runtime",
811
+ "type": {
812
+ "__schema": "InferenceTypeSchema",
813
+ "location": {
814
+ "filePath": "command-bar.ui.runtime.tsx",
815
+ "line": 184,
816
+ "character": 3
817
+ },
818
+ "type": "RuntimeDefinition"
819
+ },
820
+ "isOptional": true,
821
+ "defaultValue": "UIRuntime"
822
+ },
823
+ {
824
+ "__schema": "FunctionLikeSchema",
825
+ "location": {
826
+ "filePath": "command-bar.ui.runtime.tsx",
827
+ "line": 186,
828
+ "character": 3
829
+ },
830
+ "signature": "(method) CommandBarUI.provider([uiUi, pubsubUI]: [UiUI | undefined, PubsubUI | undefined], config: CommandBarConfig, [searcherSlot, commandSlots]: [SearcherSlot, CommandSlot]): Promise<CommandBarUI>",
831
+ "name": "provider",
832
+ "params": [
833
+ {
834
+ "__schema": "ParameterSchema",
835
+ "location": {
836
+ "filePath": "command-bar.ui.runtime.tsx",
837
+ "line": 187,
838
+ "character": 5
839
+ },
840
+ "name": "[ uiUi, pubsubUI ]",
841
+ "type": {
842
+ "__schema": "TupleTypeSchema",
843
+ "location": {
844
+ "filePath": "command-bar.ui.runtime.tsx",
845
+ "line": 187,
846
+ "character": 23
847
+ },
848
+ "elements": [
849
+ {
850
+ "__schema": "TypeUnionSchema",
851
+ "location": {
852
+ "filePath": "command-bar.ui.runtime.tsx",
853
+ "line": 187,
854
+ "character": 24
855
+ },
856
+ "types": [
857
+ {
858
+ "__schema": "TypeRefSchema",
859
+ "location": {
860
+ "filePath": "command-bar.ui.runtime.tsx",
861
+ "line": 187,
862
+ "character": 24
863
+ },
864
+ "name": "UiUI"
865
+ },
866
+ {
867
+ "__schema": "KeywordTypeSchema",
868
+ "location": {
869
+ "filePath": "command-bar.ui.runtime.tsx",
870
+ "line": 187,
871
+ "character": 31
872
+ },
873
+ "name": "undefined"
874
+ }
875
+ ]
876
+ },
877
+ {
878
+ "__schema": "TypeUnionSchema",
879
+ "location": {
880
+ "filePath": "command-bar.ui.runtime.tsx",
881
+ "line": 187,
882
+ "character": 42
883
+ },
884
+ "types": [
885
+ {
886
+ "__schema": "TypeRefSchema",
887
+ "location": {
888
+ "filePath": "command-bar.ui.runtime.tsx",
889
+ "line": 187,
890
+ "character": 42
891
+ },
892
+ "name": "PubsubUI"
893
+ },
894
+ {
895
+ "__schema": "KeywordTypeSchema",
896
+ "location": {
897
+ "filePath": "command-bar.ui.runtime.tsx",
898
+ "line": 187,
899
+ "character": 53
900
+ },
901
+ "name": "undefined"
902
+ }
903
+ ]
904
+ }
905
+ ]
906
+ },
907
+ "isOptional": false,
908
+ "isSpread": false
909
+ },
910
+ {
911
+ "__schema": "ParameterSchema",
912
+ "location": {
913
+ "filePath": "command-bar.ui.runtime.tsx",
914
+ "line": 188,
915
+ "character": 5
916
+ },
917
+ "name": "config",
918
+ "type": {
919
+ "__schema": "TypeRefSchema",
920
+ "location": {
921
+ "filePath": "command-bar.ui.runtime.tsx",
922
+ "line": 188,
923
+ "character": 13
924
+ },
925
+ "name": "CommandBarConfig"
926
+ },
927
+ "isOptional": false,
928
+ "isSpread": false
929
+ },
930
+ {
931
+ "__schema": "ParameterSchema",
932
+ "location": {
933
+ "filePath": "command-bar.ui.runtime.tsx",
934
+ "line": 189,
935
+ "character": 5
936
+ },
937
+ "name": "[ searcherSlot, commandSlots ]",
938
+ "type": {
939
+ "__schema": "TupleTypeSchema",
940
+ "location": {
941
+ "filePath": "command-bar.ui.runtime.tsx",
942
+ "line": 189,
943
+ "character": 35
944
+ },
945
+ "elements": [
946
+ {
947
+ "__schema": "TypeRefSchema",
948
+ "location": {
949
+ "filePath": "command-bar.ui.runtime.tsx",
950
+ "line": 189,
951
+ "character": 36
952
+ },
953
+ "name": "SearcherSlot"
954
+ },
955
+ {
956
+ "__schema": "TypeRefSchema",
957
+ "location": {
958
+ "filePath": "command-bar.ui.runtime.tsx",
959
+ "line": 189,
960
+ "character": 50
961
+ },
962
+ "name": "CommandSlot"
963
+ }
964
+ ]
965
+ },
966
+ "isOptional": false,
967
+ "isSpread": false
968
+ }
969
+ ],
970
+ "returnType": {
971
+ "__schema": "InferenceTypeSchema",
972
+ "location": {
973
+ "filePath": "command-bar.ui.runtime.tsx",
974
+ "line": 186,
975
+ "character": 3
976
+ },
977
+ "type": "Promise<CommandBarUI>"
978
+ },
979
+ "modifiers": [
980
+ "static",
981
+ "async"
982
+ ]
983
+ }
984
+ ],
985
+ "extendsNodes": [],
986
+ "implementNodes": []
987
+ }
988
+ },
989
+ {
990
+ "__schema": "ExportSchema",
991
+ "location": {
992
+ "filePath": "index.ts",
993
+ "line": 4,
994
+ "character": 29
995
+ },
996
+ "signature": "type CommandEntry = {\n id: CommandId;\n action: CommandHandler;\n keybinding?: Keybinding;\n displayName: string;\n}",
997
+ "name": "CommandEntry",
998
+ "exportNode": {
999
+ "__schema": "TypeSchema",
1000
+ "location": {
1001
+ "filePath": "command-bar.ui.runtime.tsx",
1002
+ "line": 29,
1003
+ "character": 1
1004
+ },
1005
+ "signature": "type CommandEntry = {\n id: CommandId;\n action: CommandHandler;\n keybinding?: Keybinding;\n displayName: string;\n}",
1006
+ "name": "CommandEntry",
1007
+ "type": {
1008
+ "__schema": "TypeLiteralSchema",
1009
+ "location": {
1010
+ "filePath": "command-bar.ui.runtime.tsx",
1011
+ "line": 29,
1012
+ "character": 28
1013
+ },
1014
+ "members": [
1015
+ {
1016
+ "__schema": "VariableLikeSchema",
1017
+ "location": {
1018
+ "filePath": "command-bar.ui.runtime.tsx",
1019
+ "line": 30,
1020
+ "character": 3
1021
+ },
1022
+ "signature": "(property) id: string",
1023
+ "name": "id",
1024
+ "type": {
1025
+ "__schema": "TypeRefSchema",
1026
+ "location": {
1027
+ "filePath": "command-bar.ui.runtime.tsx",
1028
+ "line": 30,
1029
+ "character": 7
1030
+ },
1031
+ "name": "CommandId"
1032
+ },
1033
+ "isOptional": false
1034
+ },
1035
+ {
1036
+ "__schema": "VariableLikeSchema",
1037
+ "location": {
1038
+ "filePath": "command-bar.ui.runtime.tsx",
1039
+ "line": 31,
1040
+ "character": 3
1041
+ },
1042
+ "signature": "(property) action: Function",
1043
+ "name": "action",
1044
+ "type": {
1045
+ "__schema": "TypeRefSchema",
1046
+ "location": {
1047
+ "filePath": "command-bar.ui.runtime.tsx",
1048
+ "line": 31,
1049
+ "character": 11
1050
+ },
1051
+ "name": "CommandHandler"
1052
+ },
1053
+ "isOptional": false
1054
+ },
1055
+ {
1056
+ "__schema": "VariableLikeSchema",
1057
+ "location": {
1058
+ "filePath": "command-bar.ui.runtime.tsx",
1059
+ "line": 32,
1060
+ "character": 3
1061
+ },
1062
+ "signature": "(property) keybinding?: Keybinding | undefined",
1063
+ "name": "keybinding",
1064
+ "type": {
1065
+ "__schema": "TypeRefSchema",
1066
+ "location": {
1067
+ "filePath": "command-bar.ui.runtime.tsx",
1068
+ "line": 32,
1069
+ "character": 16
1070
+ },
1071
+ "name": "Keybinding"
1072
+ },
1073
+ "isOptional": true
1074
+ },
1075
+ {
1076
+ "__schema": "VariableLikeSchema",
1077
+ "location": {
1078
+ "filePath": "command-bar.ui.runtime.tsx",
1079
+ "line": 33,
1080
+ "character": 3
1081
+ },
1082
+ "signature": "(property) displayName: string",
1083
+ "name": "displayName",
1084
+ "type": {
1085
+ "__schema": "KeywordTypeSchema",
1086
+ "location": {
1087
+ "filePath": "command-bar.ui.runtime.tsx",
1088
+ "line": 33,
1089
+ "character": 16
1090
+ },
1091
+ "name": "string"
1092
+ },
1093
+ "isOptional": false
1094
+ }
1095
+ ]
1096
+ }
1097
+ }
1098
+ },
1099
+ {
1100
+ "__schema": "ExportSchema",
1101
+ "location": {
1102
+ "filePath": "index.ts",
1103
+ "line": 5,
1104
+ "character": 15
1105
+ },
1106
+ "signature": "type CommandHandler = Function",
1107
+ "name": "CommandHandler",
1108
+ "exportNode": {
1109
+ "__schema": "TypeSchema",
1110
+ "location": {
1111
+ "filePath": "types.tsx",
1112
+ "line": 3,
1113
+ "character": 1
1114
+ },
1115
+ "signature": "type CommandHandler = Function",
1116
+ "name": "CommandHandler",
1117
+ "type": {
1118
+ "__schema": "TypeRefSchema",
1119
+ "location": {
1120
+ "filePath": "types.tsx",
1121
+ "line": 3,
1122
+ "character": 30
1123
+ },
1124
+ "name": "Function"
1125
+ }
1126
+ }
1127
+ },
1128
+ {
1129
+ "__schema": "ExportSchema",
1130
+ "location": {
1131
+ "filePath": "index.ts",
1132
+ "line": 5,
1133
+ "character": 31
1134
+ },
1135
+ "signature": "type CommandId = string",
1136
+ "name": "CommandId",
1137
+ "exportNode": {
1138
+ "__schema": "TypeSchema",
1139
+ "location": {
1140
+ "filePath": "types.tsx",
1141
+ "line": 2,
1142
+ "character": 1
1143
+ },
1144
+ "signature": "type CommandId = string",
1145
+ "name": "CommandId",
1146
+ "type": {
1147
+ "__schema": "KeywordTypeSchema",
1148
+ "location": {
1149
+ "filePath": "types.tsx",
1150
+ "line": 2,
1151
+ "character": 25
1152
+ },
1153
+ "name": "string"
1154
+ }
1155
+ }
1156
+ },
1157
+ {
1158
+ "__schema": "ExportSchema",
1159
+ "location": {
1160
+ "filePath": "index.ts",
1161
+ "line": 5,
1162
+ "character": 42
1163
+ },
1164
+ "signature": "type Keybinding = string | string[]",
1165
+ "name": "Keybinding",
1166
+ "exportNode": {
1167
+ "__schema": "TypeSchema",
1168
+ "location": {
1169
+ "filePath": "types.tsx",
1170
+ "line": 5,
1171
+ "character": 1
1172
+ },
1173
+ "signature": "type Keybinding = string | string[]",
1174
+ "name": "Keybinding",
1175
+ "type": {
1176
+ "__schema": "TypeUnionSchema",
1177
+ "location": {
1178
+ "filePath": "types.tsx",
1179
+ "line": 5,
1180
+ "character": 26
1181
+ },
1182
+ "types": [
1183
+ {
1184
+ "__schema": "KeywordTypeSchema",
1185
+ "location": {
1186
+ "filePath": "types.tsx",
1187
+ "line": 5,
1188
+ "character": 26
1189
+ },
1190
+ "name": "string"
1191
+ },
1192
+ {
1193
+ "__schema": "TypeArraySchema",
1194
+ "location": {
1195
+ "filePath": "types.tsx",
1196
+ "line": 5,
1197
+ "character": 35
1198
+ },
1199
+ "type": {
1200
+ "__schema": "KeywordTypeSchema",
1201
+ "location": {
1202
+ "filePath": "types.tsx",
1203
+ "line": 5,
1204
+ "character": 35
1205
+ },
1206
+ "name": "string"
1207
+ }
1208
+ }
1209
+ ]
1210
+ }
1211
+ }
1212
+ },
1213
+ {
1214
+ "__schema": "ExportSchema",
1215
+ "location": {
1216
+ "filePath": "index.ts",
1217
+ "line": 6,
1218
+ "character": 15
1219
+ },
1220
+ "signature": "export { SearchResult };\n\nSearchResult",
1221
+ "name": "SearchResult",
1222
+ "exportNode": {
1223
+ "__schema": "TypeRefSchema",
1224
+ "location": {
1225
+ "filePath": "index.ts",
1226
+ "line": 6,
1227
+ "character": 15
1228
+ },
1229
+ "name": "SearchResult",
1230
+ "componentId": {
1231
+ "scope": "teambit.explorer",
1232
+ "name": "ui/command-bar",
1233
+ "version": "2.0.16"
1234
+ }
1235
+ }
1236
+ },
1237
+ {
1238
+ "__schema": "ExportSchema",
1239
+ "location": {
1240
+ "filePath": "index.ts",
1241
+ "line": 6,
1242
+ "character": 29
1243
+ },
1244
+ "signature": "export { ResultsComponentProps };\n\nResultsComponentProps",
1245
+ "name": "ResultsComponentProps",
1246
+ "exportNode": {
1247
+ "__schema": "TypeRefSchema",
1248
+ "location": {
1249
+ "filePath": "index.ts",
1250
+ "line": 6,
1251
+ "character": 29
1252
+ },
1253
+ "name": "ResultsComponentProps",
1254
+ "componentId": {
1255
+ "scope": "teambit.explorer",
1256
+ "name": "ui/command-bar",
1257
+ "version": "2.0.16"
1258
+ }
1259
+ }
1260
+ },
1261
+ {
1262
+ "__schema": "ExportSchema",
1263
+ "location": {
1264
+ "filePath": "index.ts",
1265
+ "line": 6,
1266
+ "character": 52
1267
+ },
1268
+ "signature": "export { SearchResults };\n\nSearchResults",
1269
+ "name": "SearchResults",
1270
+ "exportNode": {
1271
+ "__schema": "TypeRefSchema",
1272
+ "location": {
1273
+ "filePath": "index.ts",
1274
+ "line": 6,
1275
+ "character": 52
1276
+ },
1277
+ "name": "SearchResults",
1278
+ "componentId": {
1279
+ "scope": "teambit.explorer",
1280
+ "name": "ui/command-bar",
1281
+ "version": "2.0.16"
1282
+ }
1283
+ }
1284
+ },
1285
+ {
1286
+ "__schema": "ExportSchema",
1287
+ "location": {
1288
+ "filePath": "index.ts",
1289
+ "line": 7,
1290
+ "character": 15
1291
+ },
1292
+ "signature": "export { FuzzySearchItem };\n\nFuzzySearchItem",
1293
+ "name": "FuzzySearchItem",
1294
+ "exportNode": {
1295
+ "__schema": "TypeRefSchema",
1296
+ "location": {
1297
+ "filePath": "index.ts",
1298
+ "line": 7,
1299
+ "character": 15
1300
+ },
1301
+ "name": "FuzzySearchItem",
1302
+ "componentId": {
1303
+ "scope": "teambit.explorer",
1304
+ "name": "ui/command-bar",
1305
+ "version": "2.0.16"
1306
+ }
1307
+ }
1308
+ },
1309
+ {
1310
+ "__schema": "ExportSchema",
1311
+ "location": {
1312
+ "filePath": "index.ts",
1313
+ "line": 8,
1314
+ "character": 10
1315
+ },
1316
+ "signature": "export { FuzzySearcher };\n\nFuzzySearcher",
1317
+ "name": "FuzzySearcher",
1318
+ "exportNode": {
1319
+ "__schema": "TypeRefSchema",
1320
+ "location": {
1321
+ "filePath": "index.ts",
1322
+ "line": 8,
1323
+ "character": 10
1324
+ },
1325
+ "name": "FuzzySearcher",
1326
+ "componentId": {
1327
+ "scope": "teambit.explorer",
1328
+ "name": "ui/command-bar",
1329
+ "version": "2.0.16"
1330
+ }
1331
+ }
1332
+ },
1333
+ {
1334
+ "__schema": "ExportSchema",
1335
+ "location": {
1336
+ "filePath": "index.ts",
1337
+ "line": 8,
1338
+ "character": 25
1339
+ },
1340
+ "signature": "export { CommandBarItem };\n\nCommandBarItem",
1341
+ "name": "CommandBarItem",
1342
+ "exportNode": {
1343
+ "__schema": "TypeRefSchema",
1344
+ "location": {
1345
+ "filePath": "index.ts",
1346
+ "line": 8,
1347
+ "character": 25
1348
+ },
1349
+ "name": "CommandBarItem",
1350
+ "componentId": {
1351
+ "scope": "teambit.explorer",
1352
+ "name": "ui/command-bar",
1353
+ "version": "2.0.16"
1354
+ }
1355
+ }
1356
+ }
1357
+ ],
1358
+ "internals": []
1359
+ },
1360
+ "internals": [
1361
+ {
1362
+ "__schema": "ModuleSchema",
1363
+ "location": {
1364
+ "filePath": "command-bar.aspect.ts",
1365
+ "line": 1,
1366
+ "character": 1
1367
+ },
1368
+ "exports": [
1369
+ {
1370
+ "__schema": "VariableLikeSchema",
1371
+ "location": {
1372
+ "filePath": "command-bar.aspect.ts",
1373
+ "line": 3,
1374
+ "character": 14
1375
+ },
1376
+ "signature": "const CommandBarAspect: Aspect",
1377
+ "name": "CommandBarAspect",
1378
+ "type": {
1379
+ "__schema": "TypeRefSchema",
1380
+ "location": {
1381
+ "filePath": "command-bar.aspect.ts",
1382
+ "line": 3,
1383
+ "character": 14
1384
+ },
1385
+ "name": "Aspect",
1386
+ "componentId": {
1387
+ "scope": "teambit.harmony",
1388
+ "name": "harmony",
1389
+ "version": "0.4.6"
1390
+ }
1391
+ },
1392
+ "isOptional": false,
1393
+ "defaultValue": "Aspect.create({\n id: 'teambit.explorer/command-bar',\n dependencies: [],\n defaultConfig: {},\n})"
1394
+ },
1395
+ {
1396
+ "__schema": "UnImplementedSchema",
1397
+ "location": {
1398
+ "filePath": "command-bar.aspect.ts",
1399
+ "line": 9,
1400
+ "character": 16
1401
+ },
1402
+ "name": "CommandBarAspect",
1403
+ "type": "Identifier"
1404
+ }
1405
+ ],
1406
+ "internals": []
1407
+ },
1408
+ {
1409
+ "__schema": "ModuleSchema",
1410
+ "location": {
1411
+ "filePath": "command-bar.ui.runtime.tsx",
1412
+ "line": 1,
1413
+ "character": 1
1414
+ },
1415
+ "exports": [
1416
+ {
1417
+ "__schema": "TypeSchema",
1418
+ "location": {
1419
+ "filePath": "command-bar.ui.runtime.tsx",
1420
+ "line": 25,
1421
+ "character": 1
1422
+ },
1423
+ "signature": "type CommandBarConfig = {\n debounce?: number;\n}",
1424
+ "name": "CommandBarConfig",
1425
+ "type": {
1426
+ "__schema": "TypeLiteralSchema",
1427
+ "location": {
1428
+ "filePath": "command-bar.ui.runtime.tsx",
1429
+ "line": 25,
1430
+ "character": 32
1431
+ },
1432
+ "members": [
1433
+ {
1434
+ "__schema": "VariableLikeSchema",
1435
+ "location": {
1436
+ "filePath": "command-bar.ui.runtime.tsx",
1437
+ "line": 26,
1438
+ "character": 3
1439
+ },
1440
+ "signature": "(property) debounce?: number | undefined",
1441
+ "name": "debounce",
1442
+ "type": {
1443
+ "__schema": "KeywordTypeSchema",
1444
+ "location": {
1445
+ "filePath": "command-bar.ui.runtime.tsx",
1446
+ "line": 26,
1447
+ "character": 14
1448
+ },
1449
+ "name": "number"
1450
+ },
1451
+ "isOptional": true
1452
+ }
1453
+ ]
1454
+ }
1455
+ },
1456
+ {
1457
+ "__schema": "TypeSchema",
1458
+ "location": {
1459
+ "filePath": "command-bar.ui.runtime.tsx",
1460
+ "line": 29,
1461
+ "character": 1
1462
+ },
1463
+ "signature": "type CommandEntry = {\n id: CommandId;\n action: CommandHandler;\n keybinding?: Keybinding;\n displayName: string;\n}",
1464
+ "name": "CommandEntry",
1465
+ "type": {
1466
+ "__schema": "TypeLiteralSchema",
1467
+ "location": {
1468
+ "filePath": "command-bar.ui.runtime.tsx",
1469
+ "line": 29,
1470
+ "character": 28
1471
+ },
1472
+ "members": [
1473
+ {
1474
+ "__schema": "VariableLikeSchema",
1475
+ "location": {
1476
+ "filePath": "command-bar.ui.runtime.tsx",
1477
+ "line": 30,
1478
+ "character": 3
1479
+ },
1480
+ "signature": "(property) id: string",
1481
+ "name": "id",
1482
+ "type": {
1483
+ "__schema": "TypeRefSchema",
1484
+ "location": {
1485
+ "filePath": "command-bar.ui.runtime.tsx",
1486
+ "line": 30,
1487
+ "character": 7
1488
+ },
1489
+ "name": "CommandId"
1490
+ },
1491
+ "isOptional": false
1492
+ },
1493
+ {
1494
+ "__schema": "VariableLikeSchema",
1495
+ "location": {
1496
+ "filePath": "command-bar.ui.runtime.tsx",
1497
+ "line": 31,
1498
+ "character": 3
1499
+ },
1500
+ "signature": "(property) action: Function",
1501
+ "name": "action",
1502
+ "type": {
1503
+ "__schema": "TypeRefSchema",
1504
+ "location": {
1505
+ "filePath": "command-bar.ui.runtime.tsx",
1506
+ "line": 31,
1507
+ "character": 11
1508
+ },
1509
+ "name": "CommandHandler"
1510
+ },
1511
+ "isOptional": false
1512
+ },
1513
+ {
1514
+ "__schema": "VariableLikeSchema",
1515
+ "location": {
1516
+ "filePath": "command-bar.ui.runtime.tsx",
1517
+ "line": 32,
1518
+ "character": 3
1519
+ },
1520
+ "signature": "(property) keybinding?: Keybinding | undefined",
1521
+ "name": "keybinding",
1522
+ "type": {
1523
+ "__schema": "TypeRefSchema",
1524
+ "location": {
1525
+ "filePath": "command-bar.ui.runtime.tsx",
1526
+ "line": 32,
1527
+ "character": 16
1528
+ },
1529
+ "name": "Keybinding"
1530
+ },
1531
+ "isOptional": true
1532
+ },
1533
+ {
1534
+ "__schema": "VariableLikeSchema",
1535
+ "location": {
1536
+ "filePath": "command-bar.ui.runtime.tsx",
1537
+ "line": 33,
1538
+ "character": 3
1539
+ },
1540
+ "signature": "(property) displayName: string",
1541
+ "name": "displayName",
1542
+ "type": {
1543
+ "__schema": "KeywordTypeSchema",
1544
+ "location": {
1545
+ "filePath": "command-bar.ui.runtime.tsx",
1546
+ "line": 33,
1547
+ "character": 16
1548
+ },
1549
+ "name": "string"
1550
+ },
1551
+ "isOptional": false
1552
+ }
1553
+ ]
1554
+ }
1555
+ },
1556
+ {
1557
+ "__schema": "ClassSchema",
1558
+ "location": {
1559
+ "filePath": "command-bar.ui.runtime.tsx",
1560
+ "line": 37,
1561
+ "character": 1
1562
+ },
1563
+ "doc": {
1564
+ "__schema": "DocSchema",
1565
+ "location": {
1566
+ "filePath": "command-bar.ui.runtime.tsx",
1567
+ "line": 36,
1568
+ "character": 1
1569
+ },
1570
+ "raw": "/** Quick launch actions. Use the `addSearcher` slot to extend the available actions */",
1571
+ "comment": "Quick launch actions. Use the `addSearcher` slot to extend the available actions",
1572
+ "tags": []
1573
+ },
1574
+ "signature": "class CommandBarUI",
1575
+ "name": "CommandBarUI",
1576
+ "members": [
1577
+ {
1578
+ "__schema": "VariableLikeSchema",
1579
+ "location": {
1580
+ "filePath": "command-bar.ui.runtime.tsx",
1581
+ "line": 42,
1582
+ "character": 3
1583
+ },
1584
+ "doc": {
1585
+ "__schema": "DocSchema",
1586
+ "location": {
1587
+ "filePath": "command-bar.ui.runtime.tsx",
1588
+ "line": 41,
1589
+ "character": 3
1590
+ },
1591
+ "raw": "/** Opens the command bar */",
1592
+ "comment": "Opens the command bar",
1593
+ "tags": []
1594
+ },
1595
+ "signature": "(property) CommandBarUI.open: () => boolean",
1596
+ "name": "open",
1597
+ "type": {
1598
+ "__schema": "InferenceTypeSchema",
1599
+ "location": {
1600
+ "filePath": "command-bar.ui.runtime.tsx",
1601
+ "line": 42,
1602
+ "character": 3
1603
+ },
1604
+ "type": "() => boolean"
1605
+ },
1606
+ "isOptional": true,
1607
+ "defaultValue": "() => {\n this.setVisibility?.(true);\n return false; // aka prevent default\n }"
1608
+ },
1609
+ {
1610
+ "__schema": "VariableLikeSchema",
1611
+ "location": {
1612
+ "filePath": "command-bar.ui.runtime.tsx",
1613
+ "line": 48,
1614
+ "character": 3
1615
+ },
1616
+ "doc": {
1617
+ "__schema": "DocSchema",
1618
+ "location": {
1619
+ "filePath": "command-bar.ui.runtime.tsx",
1620
+ "line": 47,
1621
+ "character": 3
1622
+ },
1623
+ "raw": "/** Closes the command bar */",
1624
+ "comment": "Closes the command bar",
1625
+ "tags": []
1626
+ },
1627
+ "signature": "(property) CommandBarUI.close: () => void",
1628
+ "name": "close",
1629
+ "type": {
1630
+ "__schema": "InferenceTypeSchema",
1631
+ "location": {
1632
+ "filePath": "command-bar.ui.runtime.tsx",
1633
+ "line": 48,
1634
+ "character": 3
1635
+ },
1636
+ "type": "() => void"
1637
+ },
1638
+ "isOptional": true,
1639
+ "defaultValue": "() => {\n this.setVisibility?.(false);\n }"
1640
+ },
1641
+ {
1642
+ "__schema": "FunctionLikeSchema",
1643
+ "location": {
1644
+ "filePath": "command-bar.ui.runtime.tsx",
1645
+ "line": 53,
1646
+ "character": 3
1647
+ },
1648
+ "doc": {
1649
+ "__schema": "DocSchema",
1650
+ "location": {
1651
+ "filePath": "command-bar.ui.runtime.tsx",
1652
+ "line": 52,
1653
+ "character": 3
1654
+ },
1655
+ "raw": "/** Add and autocomplete provider. To support keyboard navigation, each result should have a props `active: boolean`, and `exectue: () => any` */",
1656
+ "comment": "Add and autocomplete provider. To support keyboard navigation, each result should have a props `active: boolean`, and `exectue: () => any`",
1657
+ "tags": []
1658
+ },
1659
+ "signature": "(method) CommandBarUI.addSearcher(...commandSearcher: SearchProvider[]): this",
1660
+ "name": "addSearcher",
1661
+ "params": [
1662
+ {
1663
+ "__schema": "ParameterSchema",
1664
+ "location": {
1665
+ "filePath": "command-bar.ui.runtime.tsx",
1666
+ "line": 53,
1667
+ "character": 15
1668
+ },
1669
+ "name": "commandSearcher",
1670
+ "type": {
1671
+ "__schema": "TypeArraySchema",
1672
+ "location": {
1673
+ "filePath": "command-bar.ui.runtime.tsx",
1674
+ "line": 53,
1675
+ "character": 35
1676
+ },
1677
+ "type": {
1678
+ "__schema": "TypeRefSchema",
1679
+ "location": {
1680
+ "filePath": "command-bar.ui.runtime.tsx",
1681
+ "line": 53,
1682
+ "character": 35
1683
+ },
1684
+ "name": "SearchProvider"
1685
+ }
1686
+ },
1687
+ "isOptional": false,
1688
+ "isSpread": true
1689
+ }
1690
+ ],
1691
+ "returnType": {
1692
+ "__schema": "TypeRefSchema",
1693
+ "location": {
1694
+ "filePath": "command-bar.ui.runtime.tsx",
1695
+ "line": 53,
1696
+ "character": 3
1697
+ },
1698
+ "name": "CommandBarUI"
1699
+ },
1700
+ "modifiers": []
1701
+ },
1702
+ {
1703
+ "__schema": "FunctionLikeSchema",
1704
+ "location": {
1705
+ "filePath": "command-bar.ui.runtime.tsx",
1706
+ "line": 61,
1707
+ "character": 3
1708
+ },
1709
+ "doc": {
1710
+ "__schema": "DocSchema",
1711
+ "location": {
1712
+ "filePath": "command-bar.ui.runtime.tsx",
1713
+ "line": 58,
1714
+ "character": 3
1715
+ },
1716
+ "raw": "/**\n * registers a command\n */",
1717
+ "comment": "registers a command",
1718
+ "tags": []
1719
+ },
1720
+ "signature": "(method) CommandBarUI.addCommand(...originalCommands: CommandEntry[]): ((next: CommandHandler) => void)[]",
1721
+ "name": "addCommand",
1722
+ "params": [
1723
+ {
1724
+ "__schema": "ParameterSchema",
1725
+ "location": {
1726
+ "filePath": "command-bar.ui.runtime.tsx",
1727
+ "line": 61,
1728
+ "character": 14
1729
+ },
1730
+ "name": "originalCommands",
1731
+ "type": {
1732
+ "__schema": "TypeArraySchema",
1733
+ "location": {
1734
+ "filePath": "command-bar.ui.runtime.tsx",
1735
+ "line": 61,
1736
+ "character": 35
1737
+ },
1738
+ "type": {
1739
+ "__schema": "TypeRefSchema",
1740
+ "location": {
1741
+ "filePath": "command-bar.ui.runtime.tsx",
1742
+ "line": 61,
1743
+ "character": 35
1744
+ },
1745
+ "name": "CommandEntry"
1746
+ }
1747
+ },
1748
+ "isOptional": false,
1749
+ "isSpread": true
1750
+ }
1751
+ ],
1752
+ "returnType": {
1753
+ "__schema": "InferenceTypeSchema",
1754
+ "location": {
1755
+ "filePath": "command-bar.ui.runtime.tsx",
1756
+ "line": 61,
1757
+ "character": 3
1758
+ },
1759
+ "type": "((next: CommandHandler) => void)[]"
1760
+ },
1761
+ "modifiers": []
1762
+ },
1763
+ {
1764
+ "__schema": "FunctionLikeSchema",
1765
+ "location": {
1766
+ "filePath": "command-bar.ui.runtime.tsx",
1767
+ "line": 94,
1768
+ "character": 3
1769
+ },
1770
+ "doc": {
1771
+ "__schema": "DocSchema",
1772
+ "location": {
1773
+ "filePath": "command-bar.ui.runtime.tsx",
1774
+ "line": 90,
1775
+ "character": 3
1776
+ },
1777
+ "raw": "/**\n * executes command by name, if exists.\n * @param commandId\n */",
1778
+ "comment": "executes command by name, if exists.",
1779
+ "tags": [
1780
+ {
1781
+ "__schema": "PropertyLikeTagSchema",
1782
+ "location": {
1783
+ "filePath": "command-bar.ui.runtime.tsx",
1784
+ "line": 92,
1785
+ "character": 6
1786
+ },
1787
+ "name": "commandId",
1788
+ "tagName": "parameter"
1789
+ }
1790
+ ]
1791
+ },
1792
+ "signature": "(method) CommandBarUI.run(commandId: CommandId): any",
1793
+ "name": "run",
1794
+ "params": [
1795
+ {
1796
+ "__schema": "ParameterSchema",
1797
+ "location": {
1798
+ "filePath": "command-bar.ui.runtime.tsx",
1799
+ "line": 94,
1800
+ "character": 7
1801
+ },
1802
+ "name": "commandId",
1803
+ "type": {
1804
+ "__schema": "TypeRefSchema",
1805
+ "location": {
1806
+ "filePath": "command-bar.ui.runtime.tsx",
1807
+ "line": 94,
1808
+ "character": 18
1809
+ },
1810
+ "name": "CommandId"
1811
+ },
1812
+ "isOptional": false,
1813
+ "isSpread": false
1814
+ }
1815
+ ],
1816
+ "returnType": {
1817
+ "__schema": "InferenceTypeSchema",
1818
+ "location": {
1819
+ "filePath": "command-bar.ui.runtime.tsx",
1820
+ "line": 94,
1821
+ "character": 3
1822
+ },
1823
+ "type": "any"
1824
+ },
1825
+ "modifiers": []
1826
+ },
1827
+ {
1828
+ "__schema": "VariableLikeSchema",
1829
+ "location": {
1830
+ "filePath": "command-bar.ui.runtime.tsx",
1831
+ "line": 104,
1832
+ "character": 3
1833
+ },
1834
+ "doc": {
1835
+ "__schema": "DocSchema",
1836
+ "location": {
1837
+ "filePath": "command-bar.ui.runtime.tsx",
1838
+ "line": 101,
1839
+ "character": 3
1840
+ },
1841
+ "raw": "/**\n * executes a keyboard shortcut manually\n */",
1842
+ "comment": "executes a keyboard shortcut manually",
1843
+ "tags": []
1844
+ },
1845
+ "signature": "(property) CommandBarUI.trigger: (key: string) => void",
1846
+ "name": "trigger",
1847
+ "type": {
1848
+ "__schema": "InferenceTypeSchema",
1849
+ "location": {
1850
+ "filePath": "command-bar.ui.runtime.tsx",
1851
+ "line": 104,
1852
+ "character": 3
1853
+ },
1854
+ "type": "(key: string) => void"
1855
+ },
1856
+ "isOptional": true,
1857
+ "defaultValue": "(key: string) => {\n this.mousetrap.trigger(key);\n }"
1858
+ },
1859
+ {
1860
+ "__schema": "VariableLikeSchema",
1861
+ "location": {
1862
+ "filePath": "command-bar.ui.runtime.tsx",
1863
+ "line": 136,
1864
+ "character": 3
1865
+ },
1866
+ "doc": {
1867
+ "__schema": "DocSchema",
1868
+ "location": {
1869
+ "filePath": "command-bar.ui.runtime.tsx",
1870
+ "line": 133,
1871
+ "character": 3
1872
+ },
1873
+ "raw": "/**\n * Opens and closes the command bar UI.\n */",
1874
+ "comment": "Opens and closes the command bar UI.",
1875
+ "tags": []
1876
+ },
1877
+ "signature": "(property) CommandBarUI.setVisibility?: ((visible: boolean) => void) | undefined",
1878
+ "name": "setVisibility",
1879
+ "type": {
1880
+ "__schema": "FunctionLikeSchema",
1881
+ "location": {
1882
+ "filePath": "command-bar.ui.runtime.tsx",
1883
+ "line": 136,
1884
+ "character": 19
1885
+ },
1886
+ "signature": "(visible: boolean): void",
1887
+ "name": "",
1888
+ "params": [
1889
+ {
1890
+ "__schema": "ParameterSchema",
1891
+ "location": {
1892
+ "filePath": "command-bar.ui.runtime.tsx",
1893
+ "line": 136,
1894
+ "character": 20
1895
+ },
1896
+ "name": "visible",
1897
+ "type": {
1898
+ "__schema": "KeywordTypeSchema",
1899
+ "location": {
1900
+ "filePath": "command-bar.ui.runtime.tsx",
1901
+ "line": 136,
1902
+ "character": 29
1903
+ },
1904
+ "name": "boolean"
1905
+ },
1906
+ "isOptional": false,
1907
+ "isSpread": false
1908
+ }
1909
+ ],
1910
+ "returnType": {
1911
+ "__schema": "KeywordTypeSchema",
1912
+ "location": {
1913
+ "filePath": "command-bar.ui.runtime.tsx",
1914
+ "line": 136,
1915
+ "character": 41
1916
+ },
1917
+ "name": "void"
1918
+ },
1919
+ "modifiers": []
1920
+ },
1921
+ "isOptional": true
1922
+ },
1923
+ {
1924
+ "__schema": "VariableLikeSchema",
1925
+ "location": {
1926
+ "filePath": "command-bar.ui.runtime.tsx",
1927
+ "line": 141,
1928
+ "character": 3
1929
+ },
1930
+ "doc": {
1931
+ "__schema": "DocSchema",
1932
+ "location": {
1933
+ "filePath": "command-bar.ui.runtime.tsx",
1934
+ "line": 138,
1935
+ "character": 3
1936
+ },
1937
+ "raw": "/**\n * generate the ui for command bar\n */",
1938
+ "comment": "generate the ui for command bar",
1939
+ "tags": []
1940
+ },
1941
+ "signature": "(property) CommandBarUI.CommandBar: ({ ResultComponent, onEnter, }: {\n ResultComponent?: ComponentType<ResultsComponentProps>;\n onEnter?: (value: string) => void;\n}) => React.JSX.Element",
1942
+ "name": "CommandBar",
1943
+ "type": {
1944
+ "__schema": "InferenceTypeSchema",
1945
+ "location": {
1946
+ "filePath": "command-bar.ui.runtime.tsx",
1947
+ "line": 141,
1948
+ "character": 3
1949
+ },
1950
+ "type": "({ ResultComponent, onEnter, }: {\n ResultComponent?: ComponentType<ResultsComponentProps>;\n onEnter?: (value: string) => void;\n}) => React.JSX.Element"
1951
+ },
1952
+ "isOptional": true,
1953
+ "defaultValue": "({\n ResultComponent,\n onEnter,\n }: {\n ResultComponent?: ComponentType<ResultsComponentProps>;\n onEnter?: (value: string) => void;\n }) => {\n const [visible, setVisibility] = useState(false);\n this.setVisibility = setVisibility;\n\n const results = useSearcher(this.search, {\n debounce: this.config.debounce,\n });\n\n return (\n <CommandBar\n key=\"CommandBarUI\"\n {...results}\n onEnter={onEnter}\n className={styles.commanderUi}\n placeholder=\"Search anything or type > to only search commands\"\n visible={visible}\n ResultsComponent={ResultComponent}\n onVisibilityChange={setVisibility}\n autofocus\n />\n );\n }"
1954
+ },
1955
+ {
1956
+ "__schema": "VariableLikeSchema",
1957
+ "location": {
1958
+ "filePath": "command-bar.ui.runtime.tsx",
1959
+ "line": 170,
1960
+ "character": 3
1961
+ },
1962
+ "signature": "(property) CommandBarUI.CommandBarButton: () => React.JSX.Element",
1963
+ "name": "CommandBarButton",
1964
+ "type": {
1965
+ "__schema": "InferenceTypeSchema",
1966
+ "location": {
1967
+ "filePath": "command-bar.ui.runtime.tsx",
1968
+ "line": 170,
1969
+ "character": 3
1970
+ },
1971
+ "type": "() => React.JSX.Element"
1972
+ },
1973
+ "isOptional": true,
1974
+ "defaultValue": "() => <CommandBarButton onClick={() => this.setVisibility?.(true)} />"
1975
+ },
1976
+ {
1977
+ "__schema": "ConstructorSchema",
1978
+ "location": {
1979
+ "filePath": "command-bar.ui.runtime.tsx",
1980
+ "line": 172,
1981
+ "character": 3
1982
+ },
1983
+ "signature": "constructor CommandBarUI(searcherSlot: SearcherSlot, commandSlot: CommandSlot, config: CommandBarConfig): CommandBarUI",
1984
+ "name": "constructor",
1985
+ "params": [
1986
+ {
1987
+ "__schema": "ParameterSchema",
1988
+ "location": {
1989
+ "filePath": "command-bar.ui.runtime.tsx",
1990
+ "line": 173,
1991
+ "character": 5
1992
+ },
1993
+ "name": "searcherSlot",
1994
+ "type": {
1995
+ "__schema": "TypeRefSchema",
1996
+ "location": {
1997
+ "filePath": "command-bar.ui.runtime.tsx",
1998
+ "line": 173,
1999
+ "character": 27
2000
+ },
2001
+ "name": "SearcherSlot"
2002
+ },
2003
+ "isOptional": false,
2004
+ "isSpread": false
2005
+ },
2006
+ {
2007
+ "__schema": "ParameterSchema",
2008
+ "location": {
2009
+ "filePath": "command-bar.ui.runtime.tsx",
2010
+ "line": 174,
2011
+ "character": 5
2012
+ },
2013
+ "name": "commandSlot",
2014
+ "type": {
2015
+ "__schema": "TypeRefSchema",
2016
+ "location": {
2017
+ "filePath": "command-bar.ui.runtime.tsx",
2018
+ "line": 174,
2019
+ "character": 26
2020
+ },
2021
+ "name": "CommandSlot"
2022
+ },
2023
+ "isOptional": false,
2024
+ "isSpread": false
2025
+ },
2026
+ {
2027
+ "__schema": "ParameterSchema",
2028
+ "location": {
2029
+ "filePath": "command-bar.ui.runtime.tsx",
2030
+ "line": 175,
2031
+ "character": 5
2032
+ },
2033
+ "name": "config",
2034
+ "type": {
2035
+ "__schema": "TypeRefSchema",
2036
+ "location": {
2037
+ "filePath": "command-bar.ui.runtime.tsx",
2038
+ "line": 175,
2039
+ "character": 21
2040
+ },
2041
+ "name": "CommandBarConfig"
2042
+ },
2043
+ "isOptional": false,
2044
+ "isSpread": false
2045
+ }
2046
+ ],
2047
+ "returnType": {
2048
+ "__schema": "ThisTypeSchema",
2049
+ "location": {
2050
+ "filePath": "command-bar.ui.runtime.tsx",
2051
+ "line": 37,
2052
+ "character": 1
2053
+ },
2054
+ "name": "CommandBarUI"
2055
+ },
2056
+ "modifiers": []
2057
+ },
2058
+ {
2059
+ "__schema": "VariableLikeSchema",
2060
+ "location": {
2061
+ "filePath": "command-bar.ui.runtime.tsx",
2062
+ "line": 178,
2063
+ "character": 3
2064
+ },
2065
+ "signature": "(property) CommandBarUI.dependencies: Aspect[]",
2066
+ "name": "dependencies",
2067
+ "type": {
2068
+ "__schema": "InferenceTypeSchema",
2069
+ "location": {
2070
+ "filePath": "command-bar.ui.runtime.tsx",
2071
+ "line": 178,
2072
+ "character": 3
2073
+ },
2074
+ "type": "Aspect[]"
2075
+ },
2076
+ "isOptional": true,
2077
+ "defaultValue": "[UIAspect, PubsubAspect, ReactRouterAspect]"
2078
+ },
2079
+ {
2080
+ "__schema": "VariableLikeSchema",
2081
+ "location": {
2082
+ "filePath": "command-bar.ui.runtime.tsx",
2083
+ "line": 179,
2084
+ "character": 3
2085
+ },
2086
+ "signature": "(property) CommandBarUI.slots: (((registerFn: () => string) => SlotRegistry<SearchProvider>) | ((registerFn: () => string) => SlotRegistry<CommandEntry[]>))[]",
2087
+ "name": "slots",
2088
+ "type": {
2089
+ "__schema": "InferenceTypeSchema",
2090
+ "location": {
2091
+ "filePath": "command-bar.ui.runtime.tsx",
2092
+ "line": 179,
2093
+ "character": 3
2094
+ },
2095
+ "type": "(((registerFn: () => string) => SlotRegistry<SearchProvider>) | ((registerFn: () => string) => SlotRegistry<CommandEntry[]>))[]"
2096
+ },
2097
+ "isOptional": true,
2098
+ "defaultValue": "[Slot.withType<SearchProvider>(), Slot.withType<CommandEntry[]>()]"
2099
+ },
2100
+ {
2101
+ "__schema": "VariableLikeSchema",
2102
+ "location": {
2103
+ "filePath": "command-bar.ui.runtime.tsx",
2104
+ "line": 180,
2105
+ "character": 3
2106
+ },
2107
+ "signature": "(property) CommandBarUI.defaultConfig: CommandBarConfig",
2108
+ "name": "defaultConfig",
2109
+ "type": {
2110
+ "__schema": "TypeRefSchema",
2111
+ "location": {
2112
+ "filePath": "command-bar.ui.runtime.tsx",
2113
+ "line": 180,
2114
+ "character": 3
2115
+ },
2116
+ "name": "CommandBarConfig",
2117
+ "internalFilePath": "command-bar.ui.runtime.tsx"
2118
+ },
2119
+ "isOptional": true,
2120
+ "defaultValue": "{\n debounce: undefined,\n }"
2121
+ },
2122
+ {
2123
+ "__schema": "VariableLikeSchema",
2124
+ "location": {
2125
+ "filePath": "command-bar.ui.runtime.tsx",
2126
+ "line": 184,
2127
+ "character": 3
2128
+ },
2129
+ "signature": "(property) CommandBarUI.runtime: RuntimeDefinition",
2130
+ "name": "runtime",
2131
+ "type": {
2132
+ "__schema": "InferenceTypeSchema",
2133
+ "location": {
2134
+ "filePath": "command-bar.ui.runtime.tsx",
2135
+ "line": 184,
2136
+ "character": 3
2137
+ },
2138
+ "type": "RuntimeDefinition"
2139
+ },
2140
+ "isOptional": true,
2141
+ "defaultValue": "UIRuntime"
2142
+ },
2143
+ {
2144
+ "__schema": "FunctionLikeSchema",
2145
+ "location": {
2146
+ "filePath": "command-bar.ui.runtime.tsx",
2147
+ "line": 186,
2148
+ "character": 3
2149
+ },
2150
+ "signature": "(method) CommandBarUI.provider([uiUi, pubsubUI]: [UiUI | undefined, PubsubUI | undefined], config: CommandBarConfig, [searcherSlot, commandSlots]: [SearcherSlot, CommandSlot]): Promise<CommandBarUI>",
2151
+ "name": "provider",
2152
+ "params": [
2153
+ {
2154
+ "__schema": "ParameterSchema",
2155
+ "location": {
2156
+ "filePath": "command-bar.ui.runtime.tsx",
2157
+ "line": 187,
2158
+ "character": 5
2159
+ },
2160
+ "name": "[ uiUi, pubsubUI ]",
2161
+ "type": {
2162
+ "__schema": "TupleTypeSchema",
2163
+ "location": {
2164
+ "filePath": "command-bar.ui.runtime.tsx",
2165
+ "line": 187,
2166
+ "character": 23
2167
+ },
2168
+ "elements": [
2169
+ {
2170
+ "__schema": "TypeUnionSchema",
2171
+ "location": {
2172
+ "filePath": "command-bar.ui.runtime.tsx",
2173
+ "line": 187,
2174
+ "character": 24
2175
+ },
2176
+ "types": [
2177
+ {
2178
+ "__schema": "TypeRefSchema",
2179
+ "location": {
2180
+ "filePath": "command-bar.ui.runtime.tsx",
2181
+ "line": 187,
2182
+ "character": 24
2183
+ },
2184
+ "name": "UiUI"
2185
+ },
2186
+ {
2187
+ "__schema": "KeywordTypeSchema",
2188
+ "location": {
2189
+ "filePath": "command-bar.ui.runtime.tsx",
2190
+ "line": 187,
2191
+ "character": 31
2192
+ },
2193
+ "name": "undefined"
2194
+ }
2195
+ ]
2196
+ },
2197
+ {
2198
+ "__schema": "TypeUnionSchema",
2199
+ "location": {
2200
+ "filePath": "command-bar.ui.runtime.tsx",
2201
+ "line": 187,
2202
+ "character": 42
2203
+ },
2204
+ "types": [
2205
+ {
2206
+ "__schema": "TypeRefSchema",
2207
+ "location": {
2208
+ "filePath": "command-bar.ui.runtime.tsx",
2209
+ "line": 187,
2210
+ "character": 42
2211
+ },
2212
+ "name": "PubsubUI"
2213
+ },
2214
+ {
2215
+ "__schema": "KeywordTypeSchema",
2216
+ "location": {
2217
+ "filePath": "command-bar.ui.runtime.tsx",
2218
+ "line": 187,
2219
+ "character": 53
2220
+ },
2221
+ "name": "undefined"
2222
+ }
2223
+ ]
2224
+ }
2225
+ ]
2226
+ },
2227
+ "isOptional": false,
2228
+ "isSpread": false
2229
+ },
2230
+ {
2231
+ "__schema": "ParameterSchema",
2232
+ "location": {
2233
+ "filePath": "command-bar.ui.runtime.tsx",
2234
+ "line": 188,
2235
+ "character": 5
2236
+ },
2237
+ "name": "config",
2238
+ "type": {
2239
+ "__schema": "TypeRefSchema",
2240
+ "location": {
2241
+ "filePath": "command-bar.ui.runtime.tsx",
2242
+ "line": 188,
2243
+ "character": 13
2244
+ },
2245
+ "name": "CommandBarConfig"
2246
+ },
2247
+ "isOptional": false,
2248
+ "isSpread": false
2249
+ },
2250
+ {
2251
+ "__schema": "ParameterSchema",
2252
+ "location": {
2253
+ "filePath": "command-bar.ui.runtime.tsx",
2254
+ "line": 189,
2255
+ "character": 5
2256
+ },
2257
+ "name": "[ searcherSlot, commandSlots ]",
2258
+ "type": {
2259
+ "__schema": "TupleTypeSchema",
2260
+ "location": {
2261
+ "filePath": "command-bar.ui.runtime.tsx",
2262
+ "line": 189,
2263
+ "character": 35
2264
+ },
2265
+ "elements": [
2266
+ {
2267
+ "__schema": "TypeRefSchema",
2268
+ "location": {
2269
+ "filePath": "command-bar.ui.runtime.tsx",
2270
+ "line": 189,
2271
+ "character": 36
2272
+ },
2273
+ "name": "SearcherSlot"
2274
+ },
2275
+ {
2276
+ "__schema": "TypeRefSchema",
2277
+ "location": {
2278
+ "filePath": "command-bar.ui.runtime.tsx",
2279
+ "line": 189,
2280
+ "character": 50
2281
+ },
2282
+ "name": "CommandSlot"
2283
+ }
2284
+ ]
2285
+ },
2286
+ "isOptional": false,
2287
+ "isSpread": false
2288
+ }
2289
+ ],
2290
+ "returnType": {
2291
+ "__schema": "InferenceTypeSchema",
2292
+ "location": {
2293
+ "filePath": "command-bar.ui.runtime.tsx",
2294
+ "line": 186,
2295
+ "character": 3
2296
+ },
2297
+ "type": "Promise<CommandBarUI>"
2298
+ },
2299
+ "modifiers": [
2300
+ "static",
2301
+ "async"
2302
+ ]
2303
+ }
2304
+ ],
2305
+ "extendsNodes": [],
2306
+ "implementNodes": []
2307
+ }
2308
+ ],
2309
+ "internals": [
2310
+ {
2311
+ "__schema": "ModuleSchema",
2312
+ "location": {
2313
+ "filePath": "command-bar.ui.runtime.tsx",
2314
+ "line": 21,
2315
+ "character": 1
2316
+ },
2317
+ "exports": [
2318
+ {
2319
+ "__schema": "VariableLikeSchema",
2320
+ "location": {
2321
+ "filePath": "command-bar.ui.runtime.tsx",
2322
+ "line": 21,
2323
+ "character": 7
2324
+ },
2325
+ "signature": "const RESULT_LIMIT: 5",
2326
+ "name": "RESULT_LIMIT",
2327
+ "type": {
2328
+ "__schema": "InferenceTypeSchema",
2329
+ "location": {
2330
+ "filePath": "command-bar.ui.runtime.tsx",
2331
+ "line": 21,
2332
+ "character": 7
2333
+ },
2334
+ "type": "5"
2335
+ },
2336
+ "isOptional": false,
2337
+ "defaultValue": "5"
2338
+ }
2339
+ ],
2340
+ "internals": []
2341
+ },
2342
+ {
2343
+ "__schema": "TypeSchema",
2344
+ "location": {
2345
+ "filePath": "command-bar.ui.runtime.tsx",
2346
+ "line": 22,
2347
+ "character": 1
2348
+ },
2349
+ "signature": "type SearcherSlot = SlotRegistry<SearchProvider[]>",
2350
+ "name": "SearcherSlot",
2351
+ "type": {
2352
+ "__schema": "TypeRefSchema",
2353
+ "location": {
2354
+ "filePath": "command-bar.ui.runtime.tsx",
2355
+ "line": 22,
2356
+ "character": 21
2357
+ },
2358
+ "name": "SlotRegistry",
2359
+ "typeArgs": [
2360
+ {
2361
+ "__schema": "TypeArraySchema",
2362
+ "location": {
2363
+ "filePath": "command-bar.ui.runtime.tsx",
2364
+ "line": 22,
2365
+ "character": 34
2366
+ },
2367
+ "type": {
2368
+ "__schema": "TypeRefSchema",
2369
+ "location": {
2370
+ "filePath": "command-bar.ui.runtime.tsx",
2371
+ "line": 22,
2372
+ "character": 34
2373
+ },
2374
+ "name": "SearchProvider"
2375
+ }
2376
+ }
2377
+ ]
2378
+ }
2379
+ },
2380
+ {
2381
+ "__schema": "TypeSchema",
2382
+ "location": {
2383
+ "filePath": "command-bar.ui.runtime.tsx",
2384
+ "line": 23,
2385
+ "character": 1
2386
+ },
2387
+ "signature": "type CommandSlot = SlotRegistry<CommandEntry[]>",
2388
+ "name": "CommandSlot",
2389
+ "type": {
2390
+ "__schema": "TypeRefSchema",
2391
+ "location": {
2392
+ "filePath": "command-bar.ui.runtime.tsx",
2393
+ "line": 23,
2394
+ "character": 20
2395
+ },
2396
+ "name": "SlotRegistry",
2397
+ "typeArgs": [
2398
+ {
2399
+ "__schema": "TypeArraySchema",
2400
+ "location": {
2401
+ "filePath": "command-bar.ui.runtime.tsx",
2402
+ "line": 23,
2403
+ "character": 33
2404
+ },
2405
+ "type": {
2406
+ "__schema": "TypeRefSchema",
2407
+ "location": {
2408
+ "filePath": "command-bar.ui.runtime.tsx",
2409
+ "line": 23,
2410
+ "character": 33
2411
+ },
2412
+ "name": "CommandEntry"
2413
+ }
2414
+ }
2415
+ ]
2416
+ }
2417
+ },
2418
+ {
2419
+ "__schema": "UnImplementedSchema",
2420
+ "location": {
2421
+ "filePath": "command-bar.ui.runtime.tsx",
2422
+ "line": 216,
2423
+ "character": 1
2424
+ },
2425
+ "name": "CommandBarAspect.addRuntime(CommandBarUI);",
2426
+ "type": "ExpressionStatement"
2427
+ }
2428
+ ]
2429
+ }
2430
+ ],
2431
+ "componentId": {
2432
+ "scope": "teambit.explorer",
2433
+ "name": "command-bar",
2434
+ "version": "1.0.513"
2435
+ },
2436
+ "taggedModuleExports": []
2437
+ }