@teambit/command-bar 1.0.516 → 1.0.518

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2475 +0,0 @@
1
- {
2
- "__schema": "APISchema",
3
- "location": {
4
- "filePath": "index.ts",
5
- "line": 1,
6
- "character": 1
7
- },
8
- "module": {
9
- "__schema": "ModuleSchema",
10
- "location": {
11
- "filePath": "index.ts",
12
- "line": 1,
13
- "character": 1
14
- },
15
- "exports": [
16
- {
17
- "__schema": "ExportSchema",
18
- "location": {
19
- "filePath": "index.ts",
20
- "line": 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
- "internalFilePath": "command-bar.ui.runtime.tsx"
683
- },
684
- "isOptional": false,
685
- "isSpread": false
686
- },
687
- {
688
- "__schema": "ParameterSchema",
689
- "location": {
690
- "filePath": "command-bar.ui.runtime.tsx",
691
- "line": 174,
692
- "character": 5
693
- },
694
- "name": "commandSlot",
695
- "type": {
696
- "__schema": "TypeRefSchema",
697
- "location": {
698
- "filePath": "command-bar.ui.runtime.tsx",
699
- "line": 174,
700
- "character": 26
701
- },
702
- "name": "CommandSlot",
703
- "internalFilePath": "command-bar.ui.runtime.tsx"
704
- },
705
- "isOptional": false,
706
- "isSpread": false
707
- },
708
- {
709
- "__schema": "ParameterSchema",
710
- "location": {
711
- "filePath": "command-bar.ui.runtime.tsx",
712
- "line": 175,
713
- "character": 5
714
- },
715
- "name": "config",
716
- "type": {
717
- "__schema": "TypeRefSchema",
718
- "location": {
719
- "filePath": "command-bar.ui.runtime.tsx",
720
- "line": 175,
721
- "character": 21
722
- },
723
- "name": "CommandBarConfig",
724
- "internalFilePath": "command-bar.ui.runtime.tsx"
725
- },
726
- "isOptional": false,
727
- "isSpread": false
728
- }
729
- ],
730
- "returnType": {
731
- "__schema": "ThisTypeSchema",
732
- "location": {
733
- "filePath": "command-bar.ui.runtime.tsx",
734
- "line": 37,
735
- "character": 1
736
- },
737
- "name": "CommandBarUI"
738
- },
739
- "modifiers": []
740
- },
741
- {
742
- "__schema": "VariableLikeSchema",
743
- "location": {
744
- "filePath": "command-bar.ui.runtime.tsx",
745
- "line": 178,
746
- "character": 3
747
- },
748
- "signature": "(property) CommandBarUI.dependencies: Aspect[]",
749
- "name": "dependencies",
750
- "type": {
751
- "__schema": "InferenceTypeSchema",
752
- "location": {
753
- "filePath": "command-bar.ui.runtime.tsx",
754
- "line": 178,
755
- "character": 3
756
- },
757
- "type": "Aspect[]"
758
- },
759
- "isOptional": true,
760
- "defaultValue": "[UIAspect, PubsubAspect, ReactRouterAspect]"
761
- },
762
- {
763
- "__schema": "VariableLikeSchema",
764
- "location": {
765
- "filePath": "command-bar.ui.runtime.tsx",
766
- "line": 179,
767
- "character": 3
768
- },
769
- "signature": "(property) CommandBarUI.slots: (((registerFn: () => string) => SlotRegistry<SearchProvider>) | ((registerFn: () => string) => SlotRegistry<CommandEntry[]>))[]",
770
- "name": "slots",
771
- "type": {
772
- "__schema": "InferenceTypeSchema",
773
- "location": {
774
- "filePath": "command-bar.ui.runtime.tsx",
775
- "line": 179,
776
- "character": 3
777
- },
778
- "type": "(((registerFn: () => string) => SlotRegistry<SearchProvider>) | ((registerFn: () => string) => SlotRegistry<CommandEntry[]>))[]"
779
- },
780
- "isOptional": true,
781
- "defaultValue": "[Slot.withType<SearchProvider>(), Slot.withType<CommandEntry[]>()]"
782
- },
783
- {
784
- "__schema": "VariableLikeSchema",
785
- "location": {
786
- "filePath": "command-bar.ui.runtime.tsx",
787
- "line": 180,
788
- "character": 3
789
- },
790
- "signature": "(property) CommandBarUI.defaultConfig: CommandBarConfig",
791
- "name": "defaultConfig",
792
- "type": {
793
- "__schema": "TypeRefSchema",
794
- "location": {
795
- "filePath": "command-bar.ui.runtime.tsx",
796
- "line": 180,
797
- "character": 3
798
- },
799
- "name": "CommandBarConfig",
800
- "internalFilePath": "command-bar.ui.runtime.tsx"
801
- },
802
- "isOptional": true,
803
- "defaultValue": "{\n debounce: undefined,\n }"
804
- },
805
- {
806
- "__schema": "VariableLikeSchema",
807
- "location": {
808
- "filePath": "command-bar.ui.runtime.tsx",
809
- "line": 184,
810
- "character": 3
811
- },
812
- "signature": "(property) CommandBarUI.runtime: RuntimeDefinition",
813
- "name": "runtime",
814
- "type": {
815
- "__schema": "InferenceTypeSchema",
816
- "location": {
817
- "filePath": "command-bar.ui.runtime.tsx",
818
- "line": 184,
819
- "character": 3
820
- },
821
- "type": "RuntimeDefinition"
822
- },
823
- "isOptional": true,
824
- "defaultValue": "UIRuntime"
825
- },
826
- {
827
- "__schema": "FunctionLikeSchema",
828
- "location": {
829
- "filePath": "command-bar.ui.runtime.tsx",
830
- "line": 186,
831
- "character": 3
832
- },
833
- "signature": "(method) CommandBarUI.provider([uiUi, pubsubUI]: [UiUI | undefined, PubsubUI | undefined], config: CommandBarConfig, [searcherSlot, commandSlots]: [SearcherSlot, CommandSlot]): Promise<CommandBarUI>",
834
- "name": "provider",
835
- "params": [
836
- {
837
- "__schema": "ParameterSchema",
838
- "location": {
839
- "filePath": "command-bar.ui.runtime.tsx",
840
- "line": 187,
841
- "character": 5
842
- },
843
- "name": "[ uiUi, pubsubUI ]",
844
- "type": {
845
- "__schema": "TupleTypeSchema",
846
- "location": {
847
- "filePath": "command-bar.ui.runtime.tsx",
848
- "line": 187,
849
- "character": 23
850
- },
851
- "elements": [
852
- {
853
- "__schema": "TypeUnionSchema",
854
- "location": {
855
- "filePath": "command-bar.ui.runtime.tsx",
856
- "line": 187,
857
- "character": 24
858
- },
859
- "types": [
860
- {
861
- "__schema": "TypeRefSchema",
862
- "location": {
863
- "filePath": "command-bar.ui.runtime.tsx",
864
- "line": 187,
865
- "character": 24
866
- },
867
- "name": "UiUI",
868
- "componentId": {
869
- "scope": "teambit.ui-foundation",
870
- "name": "ui"
871
- }
872
- },
873
- {
874
- "__schema": "KeywordTypeSchema",
875
- "location": {
876
- "filePath": "command-bar.ui.runtime.tsx",
877
- "line": 187,
878
- "character": 31
879
- },
880
- "name": "undefined"
881
- }
882
- ]
883
- },
884
- {
885
- "__schema": "TypeUnionSchema",
886
- "location": {
887
- "filePath": "command-bar.ui.runtime.tsx",
888
- "line": 187,
889
- "character": 42
890
- },
891
- "types": [
892
- {
893
- "__schema": "TypeRefSchema",
894
- "location": {
895
- "filePath": "command-bar.ui.runtime.tsx",
896
- "line": 187,
897
- "character": 42
898
- },
899
- "name": "PubsubUI",
900
- "componentId": {
901
- "scope": "teambit.harmony",
902
- "name": "pubsub"
903
- }
904
- },
905
- {
906
- "__schema": "KeywordTypeSchema",
907
- "location": {
908
- "filePath": "command-bar.ui.runtime.tsx",
909
- "line": 187,
910
- "character": 53
911
- },
912
- "name": "undefined"
913
- }
914
- ]
915
- }
916
- ]
917
- },
918
- "isOptional": false,
919
- "isSpread": false
920
- },
921
- {
922
- "__schema": "ParameterSchema",
923
- "location": {
924
- "filePath": "command-bar.ui.runtime.tsx",
925
- "line": 188,
926
- "character": 5
927
- },
928
- "name": "config",
929
- "type": {
930
- "__schema": "TypeRefSchema",
931
- "location": {
932
- "filePath": "command-bar.ui.runtime.tsx",
933
- "line": 188,
934
- "character": 13
935
- },
936
- "name": "CommandBarConfig",
937
- "internalFilePath": "command-bar.ui.runtime.tsx"
938
- },
939
- "isOptional": false,
940
- "isSpread": false
941
- },
942
- {
943
- "__schema": "ParameterSchema",
944
- "location": {
945
- "filePath": "command-bar.ui.runtime.tsx",
946
- "line": 189,
947
- "character": 5
948
- },
949
- "name": "[ searcherSlot, commandSlots ]",
950
- "type": {
951
- "__schema": "TupleTypeSchema",
952
- "location": {
953
- "filePath": "command-bar.ui.runtime.tsx",
954
- "line": 189,
955
- "character": 35
956
- },
957
- "elements": [
958
- {
959
- "__schema": "TypeRefSchema",
960
- "location": {
961
- "filePath": "command-bar.ui.runtime.tsx",
962
- "line": 189,
963
- "character": 36
964
- },
965
- "name": "SearcherSlot",
966
- "internalFilePath": "command-bar.ui.runtime.tsx"
967
- },
968
- {
969
- "__schema": "TypeRefSchema",
970
- "location": {
971
- "filePath": "command-bar.ui.runtime.tsx",
972
- "line": 189,
973
- "character": 50
974
- },
975
- "name": "CommandSlot",
976
- "internalFilePath": "command-bar.ui.runtime.tsx"
977
- }
978
- ]
979
- },
980
- "isOptional": false,
981
- "isSpread": false
982
- }
983
- ],
984
- "returnType": {
985
- "__schema": "InferenceTypeSchema",
986
- "location": {
987
- "filePath": "command-bar.ui.runtime.tsx",
988
- "line": 186,
989
- "character": 3
990
- },
991
- "type": "Promise<CommandBarUI>"
992
- },
993
- "modifiers": [
994
- "static",
995
- "async"
996
- ]
997
- }
998
- ],
999
- "extendsNodes": [],
1000
- "implementNodes": []
1001
- }
1002
- },
1003
- {
1004
- "__schema": "ExportSchema",
1005
- "location": {
1006
- "filePath": "index.ts",
1007
- "line": 4,
1008
- "character": 29
1009
- },
1010
- "signature": "type CommandEntry = {\n id: CommandId;\n action: CommandHandler;\n keybinding?: Keybinding;\n displayName: string;\n}",
1011
- "name": "CommandEntry",
1012
- "exportNode": {
1013
- "__schema": "TypeSchema",
1014
- "location": {
1015
- "filePath": "command-bar.ui.runtime.tsx",
1016
- "line": 29,
1017
- "character": 1
1018
- },
1019
- "signature": "type CommandEntry = {\n id: CommandId;\n action: CommandHandler;\n keybinding?: Keybinding;\n displayName: string;\n}",
1020
- "name": "CommandEntry",
1021
- "type": {
1022
- "__schema": "TypeLiteralSchema",
1023
- "location": {
1024
- "filePath": "command-bar.ui.runtime.tsx",
1025
- "line": 29,
1026
- "character": 28
1027
- },
1028
- "members": [
1029
- {
1030
- "__schema": "VariableLikeSchema",
1031
- "location": {
1032
- "filePath": "command-bar.ui.runtime.tsx",
1033
- "line": 30,
1034
- "character": 3
1035
- },
1036
- "signature": "(property) id: string",
1037
- "name": "id",
1038
- "type": {
1039
- "__schema": "TypeRefSchema",
1040
- "location": {
1041
- "filePath": "command-bar.ui.runtime.tsx",
1042
- "line": 30,
1043
- "character": 7
1044
- },
1045
- "name": "CommandId"
1046
- },
1047
- "isOptional": false
1048
- },
1049
- {
1050
- "__schema": "VariableLikeSchema",
1051
- "location": {
1052
- "filePath": "command-bar.ui.runtime.tsx",
1053
- "line": 31,
1054
- "character": 3
1055
- },
1056
- "signature": "(property) action: Function",
1057
- "name": "action",
1058
- "type": {
1059
- "__schema": "TypeRefSchema",
1060
- "location": {
1061
- "filePath": "command-bar.ui.runtime.tsx",
1062
- "line": 31,
1063
- "character": 11
1064
- },
1065
- "name": "CommandHandler"
1066
- },
1067
- "isOptional": false
1068
- },
1069
- {
1070
- "__schema": "VariableLikeSchema",
1071
- "location": {
1072
- "filePath": "command-bar.ui.runtime.tsx",
1073
- "line": 32,
1074
- "character": 3
1075
- },
1076
- "signature": "(property) keybinding?: Keybinding | undefined",
1077
- "name": "keybinding",
1078
- "type": {
1079
- "__schema": "TypeRefSchema",
1080
- "location": {
1081
- "filePath": "command-bar.ui.runtime.tsx",
1082
- "line": 32,
1083
- "character": 16
1084
- },
1085
- "name": "Keybinding"
1086
- },
1087
- "isOptional": true
1088
- },
1089
- {
1090
- "__schema": "VariableLikeSchema",
1091
- "location": {
1092
- "filePath": "command-bar.ui.runtime.tsx",
1093
- "line": 33,
1094
- "character": 3
1095
- },
1096
- "signature": "(property) displayName: string",
1097
- "name": "displayName",
1098
- "type": {
1099
- "__schema": "KeywordTypeSchema",
1100
- "location": {
1101
- "filePath": "command-bar.ui.runtime.tsx",
1102
- "line": 33,
1103
- "character": 16
1104
- },
1105
- "name": "string"
1106
- },
1107
- "isOptional": false
1108
- }
1109
- ]
1110
- }
1111
- }
1112
- },
1113
- {
1114
- "__schema": "ExportSchema",
1115
- "location": {
1116
- "filePath": "index.ts",
1117
- "line": 5,
1118
- "character": 15
1119
- },
1120
- "signature": "type CommandHandler = Function",
1121
- "name": "CommandHandler",
1122
- "exportNode": {
1123
- "__schema": "TypeSchema",
1124
- "location": {
1125
- "filePath": "types.tsx",
1126
- "line": 3,
1127
- "character": 1
1128
- },
1129
- "signature": "type CommandHandler = Function",
1130
- "name": "CommandHandler",
1131
- "type": {
1132
- "__schema": "TypeRefSchema",
1133
- "location": {
1134
- "filePath": "types.tsx",
1135
- "line": 3,
1136
- "character": 30
1137
- },
1138
- "name": "Function"
1139
- }
1140
- }
1141
- },
1142
- {
1143
- "__schema": "ExportSchema",
1144
- "location": {
1145
- "filePath": "index.ts",
1146
- "line": 5,
1147
- "character": 31
1148
- },
1149
- "signature": "type CommandId = string",
1150
- "name": "CommandId",
1151
- "exportNode": {
1152
- "__schema": "TypeSchema",
1153
- "location": {
1154
- "filePath": "types.tsx",
1155
- "line": 2,
1156
- "character": 1
1157
- },
1158
- "signature": "type CommandId = string",
1159
- "name": "CommandId",
1160
- "type": {
1161
- "__schema": "KeywordTypeSchema",
1162
- "location": {
1163
- "filePath": "types.tsx",
1164
- "line": 2,
1165
- "character": 25
1166
- },
1167
- "name": "string"
1168
- }
1169
- }
1170
- },
1171
- {
1172
- "__schema": "ExportSchema",
1173
- "location": {
1174
- "filePath": "index.ts",
1175
- "line": 5,
1176
- "character": 42
1177
- },
1178
- "signature": "type Keybinding = string | string[]",
1179
- "name": "Keybinding",
1180
- "exportNode": {
1181
- "__schema": "TypeSchema",
1182
- "location": {
1183
- "filePath": "types.tsx",
1184
- "line": 5,
1185
- "character": 1
1186
- },
1187
- "signature": "type Keybinding = string | string[]",
1188
- "name": "Keybinding",
1189
- "type": {
1190
- "__schema": "TypeUnionSchema",
1191
- "location": {
1192
- "filePath": "types.tsx",
1193
- "line": 5,
1194
- "character": 26
1195
- },
1196
- "types": [
1197
- {
1198
- "__schema": "KeywordTypeSchema",
1199
- "location": {
1200
- "filePath": "types.tsx",
1201
- "line": 5,
1202
- "character": 26
1203
- },
1204
- "name": "string"
1205
- },
1206
- {
1207
- "__schema": "TypeArraySchema",
1208
- "location": {
1209
- "filePath": "types.tsx",
1210
- "line": 5,
1211
- "character": 35
1212
- },
1213
- "type": {
1214
- "__schema": "KeywordTypeSchema",
1215
- "location": {
1216
- "filePath": "types.tsx",
1217
- "line": 5,
1218
- "character": 35
1219
- },
1220
- "name": "string"
1221
- }
1222
- }
1223
- ]
1224
- }
1225
- }
1226
- },
1227
- {
1228
- "__schema": "ExportSchema",
1229
- "location": {
1230
- "filePath": "index.ts",
1231
- "line": 6,
1232
- "character": 15
1233
- },
1234
- "signature": "export { SearchResult };\n\nSearchResult",
1235
- "name": "SearchResult",
1236
- "exportNode": {
1237
- "__schema": "TypeRefSchema",
1238
- "location": {
1239
- "filePath": "index.ts",
1240
- "line": 6,
1241
- "character": 15
1242
- },
1243
- "name": "SearchResult",
1244
- "componentId": {
1245
- "scope": "teambit.explorer",
1246
- "name": "ui/command-bar",
1247
- "version": "2.0.16"
1248
- }
1249
- }
1250
- },
1251
- {
1252
- "__schema": "ExportSchema",
1253
- "location": {
1254
- "filePath": "index.ts",
1255
- "line": 6,
1256
- "character": 29
1257
- },
1258
- "signature": "export { ResultsComponentProps };\n\nResultsComponentProps",
1259
- "name": "ResultsComponentProps",
1260
- "exportNode": {
1261
- "__schema": "TypeRefSchema",
1262
- "location": {
1263
- "filePath": "index.ts",
1264
- "line": 6,
1265
- "character": 29
1266
- },
1267
- "name": "ResultsComponentProps",
1268
- "componentId": {
1269
- "scope": "teambit.explorer",
1270
- "name": "ui/command-bar",
1271
- "version": "2.0.16"
1272
- }
1273
- }
1274
- },
1275
- {
1276
- "__schema": "ExportSchema",
1277
- "location": {
1278
- "filePath": "index.ts",
1279
- "line": 6,
1280
- "character": 52
1281
- },
1282
- "signature": "export { SearchResults };\n\nSearchResults",
1283
- "name": "SearchResults",
1284
- "exportNode": {
1285
- "__schema": "TypeRefSchema",
1286
- "location": {
1287
- "filePath": "index.ts",
1288
- "line": 6,
1289
- "character": 52
1290
- },
1291
- "name": "SearchResults",
1292
- "componentId": {
1293
- "scope": "teambit.explorer",
1294
- "name": "ui/command-bar",
1295
- "version": "2.0.16"
1296
- }
1297
- }
1298
- },
1299
- {
1300
- "__schema": "ExportSchema",
1301
- "location": {
1302
- "filePath": "index.ts",
1303
- "line": 7,
1304
- "character": 15
1305
- },
1306
- "signature": "export { FuzzySearchItem };\n\nFuzzySearchItem",
1307
- "name": "FuzzySearchItem",
1308
- "exportNode": {
1309
- "__schema": "TypeRefSchema",
1310
- "location": {
1311
- "filePath": "index.ts",
1312
- "line": 7,
1313
- "character": 15
1314
- },
1315
- "name": "FuzzySearchItem",
1316
- "componentId": {
1317
- "scope": "teambit.explorer",
1318
- "name": "ui/command-bar",
1319
- "version": "2.0.16"
1320
- }
1321
- }
1322
- },
1323
- {
1324
- "__schema": "ExportSchema",
1325
- "location": {
1326
- "filePath": "index.ts",
1327
- "line": 8,
1328
- "character": 10
1329
- },
1330
- "signature": "export { FuzzySearcher };\n\nFuzzySearcher",
1331
- "name": "FuzzySearcher",
1332
- "exportNode": {
1333
- "__schema": "TypeRefSchema",
1334
- "location": {
1335
- "filePath": "index.ts",
1336
- "line": 8,
1337
- "character": 10
1338
- },
1339
- "name": "FuzzySearcher",
1340
- "componentId": {
1341
- "scope": "teambit.explorer",
1342
- "name": "ui/command-bar",
1343
- "version": "2.0.16"
1344
- }
1345
- }
1346
- },
1347
- {
1348
- "__schema": "ExportSchema",
1349
- "location": {
1350
- "filePath": "index.ts",
1351
- "line": 8,
1352
- "character": 25
1353
- },
1354
- "signature": "export { CommandBarItem };\n\nCommandBarItem",
1355
- "name": "CommandBarItem",
1356
- "exportNode": {
1357
- "__schema": "TypeRefSchema",
1358
- "location": {
1359
- "filePath": "index.ts",
1360
- "line": 8,
1361
- "character": 25
1362
- },
1363
- "name": "CommandBarItem",
1364
- "componentId": {
1365
- "scope": "teambit.explorer",
1366
- "name": "ui/command-bar",
1367
- "version": "2.0.16"
1368
- }
1369
- }
1370
- }
1371
- ],
1372
- "internals": []
1373
- },
1374
- "internals": [
1375
- {
1376
- "__schema": "ModuleSchema",
1377
- "location": {
1378
- "filePath": "command-bar.aspect.ts",
1379
- "line": 1,
1380
- "character": 1
1381
- },
1382
- "exports": [
1383
- {
1384
- "__schema": "VariableLikeSchema",
1385
- "location": {
1386
- "filePath": "command-bar.aspect.ts",
1387
- "line": 3,
1388
- "character": 14
1389
- },
1390
- "signature": "const CommandBarAspect: Aspect",
1391
- "name": "CommandBarAspect",
1392
- "type": {
1393
- "__schema": "TypeRefSchema",
1394
- "location": {
1395
- "filePath": "command-bar.aspect.ts",
1396
- "line": 3,
1397
- "character": 14
1398
- },
1399
- "name": "Aspect",
1400
- "componentId": {
1401
- "scope": "teambit.harmony",
1402
- "name": "harmony",
1403
- "version": "0.4.6"
1404
- }
1405
- },
1406
- "isOptional": false,
1407
- "defaultValue": "Aspect.create({\n id: 'teambit.explorer/command-bar',\n dependencies: [],\n defaultConfig: {},\n})"
1408
- },
1409
- {
1410
- "__schema": "UnImplementedSchema",
1411
- "location": {
1412
- "filePath": "command-bar.aspect.ts",
1413
- "line": 9,
1414
- "character": 16
1415
- },
1416
- "name": "CommandBarAspect",
1417
- "type": "Identifier"
1418
- }
1419
- ],
1420
- "internals": []
1421
- },
1422
- {
1423
- "__schema": "ModuleSchema",
1424
- "location": {
1425
- "filePath": "command-bar.ui.runtime.tsx",
1426
- "line": 1,
1427
- "character": 1
1428
- },
1429
- "exports": [
1430
- {
1431
- "__schema": "TypeSchema",
1432
- "location": {
1433
- "filePath": "command-bar.ui.runtime.tsx",
1434
- "line": 25,
1435
- "character": 1
1436
- },
1437
- "signature": "type CommandBarConfig = {\n debounce?: number;\n}",
1438
- "name": "CommandBarConfig",
1439
- "type": {
1440
- "__schema": "TypeLiteralSchema",
1441
- "location": {
1442
- "filePath": "command-bar.ui.runtime.tsx",
1443
- "line": 25,
1444
- "character": 32
1445
- },
1446
- "members": [
1447
- {
1448
- "__schema": "VariableLikeSchema",
1449
- "location": {
1450
- "filePath": "command-bar.ui.runtime.tsx",
1451
- "line": 26,
1452
- "character": 3
1453
- },
1454
- "signature": "(property) debounce?: number | undefined",
1455
- "name": "debounce",
1456
- "type": {
1457
- "__schema": "KeywordTypeSchema",
1458
- "location": {
1459
- "filePath": "command-bar.ui.runtime.tsx",
1460
- "line": 26,
1461
- "character": 14
1462
- },
1463
- "name": "number"
1464
- },
1465
- "isOptional": true
1466
- }
1467
- ]
1468
- }
1469
- },
1470
- {
1471
- "__schema": "TypeSchema",
1472
- "location": {
1473
- "filePath": "command-bar.ui.runtime.tsx",
1474
- "line": 29,
1475
- "character": 1
1476
- },
1477
- "signature": "type CommandEntry = {\n id: CommandId;\n action: CommandHandler;\n keybinding?: Keybinding;\n displayName: string;\n}",
1478
- "name": "CommandEntry",
1479
- "type": {
1480
- "__schema": "TypeLiteralSchema",
1481
- "location": {
1482
- "filePath": "command-bar.ui.runtime.tsx",
1483
- "line": 29,
1484
- "character": 28
1485
- },
1486
- "members": [
1487
- {
1488
- "__schema": "VariableLikeSchema",
1489
- "location": {
1490
- "filePath": "command-bar.ui.runtime.tsx",
1491
- "line": 30,
1492
- "character": 3
1493
- },
1494
- "signature": "(property) id: string",
1495
- "name": "id",
1496
- "type": {
1497
- "__schema": "TypeRefSchema",
1498
- "location": {
1499
- "filePath": "command-bar.ui.runtime.tsx",
1500
- "line": 30,
1501
- "character": 7
1502
- },
1503
- "name": "CommandId"
1504
- },
1505
- "isOptional": false
1506
- },
1507
- {
1508
- "__schema": "VariableLikeSchema",
1509
- "location": {
1510
- "filePath": "command-bar.ui.runtime.tsx",
1511
- "line": 31,
1512
- "character": 3
1513
- },
1514
- "signature": "(property) action: Function",
1515
- "name": "action",
1516
- "type": {
1517
- "__schema": "TypeRefSchema",
1518
- "location": {
1519
- "filePath": "command-bar.ui.runtime.tsx",
1520
- "line": 31,
1521
- "character": 11
1522
- },
1523
- "name": "CommandHandler"
1524
- },
1525
- "isOptional": false
1526
- },
1527
- {
1528
- "__schema": "VariableLikeSchema",
1529
- "location": {
1530
- "filePath": "command-bar.ui.runtime.tsx",
1531
- "line": 32,
1532
- "character": 3
1533
- },
1534
- "signature": "(property) keybinding?: Keybinding | undefined",
1535
- "name": "keybinding",
1536
- "type": {
1537
- "__schema": "TypeRefSchema",
1538
- "location": {
1539
- "filePath": "command-bar.ui.runtime.tsx",
1540
- "line": 32,
1541
- "character": 16
1542
- },
1543
- "name": "Keybinding"
1544
- },
1545
- "isOptional": true
1546
- },
1547
- {
1548
- "__schema": "VariableLikeSchema",
1549
- "location": {
1550
- "filePath": "command-bar.ui.runtime.tsx",
1551
- "line": 33,
1552
- "character": 3
1553
- },
1554
- "signature": "(property) displayName: string",
1555
- "name": "displayName",
1556
- "type": {
1557
- "__schema": "KeywordTypeSchema",
1558
- "location": {
1559
- "filePath": "command-bar.ui.runtime.tsx",
1560
- "line": 33,
1561
- "character": 16
1562
- },
1563
- "name": "string"
1564
- },
1565
- "isOptional": false
1566
- }
1567
- ]
1568
- }
1569
- },
1570
- {
1571
- "__schema": "ClassSchema",
1572
- "location": {
1573
- "filePath": "command-bar.ui.runtime.tsx",
1574
- "line": 37,
1575
- "character": 1
1576
- },
1577
- "doc": {
1578
- "__schema": "DocSchema",
1579
- "location": {
1580
- "filePath": "command-bar.ui.runtime.tsx",
1581
- "line": 36,
1582
- "character": 1
1583
- },
1584
- "raw": "/** Quick launch actions. Use the `addSearcher` slot to extend the available actions */",
1585
- "comment": "Quick launch actions. Use the `addSearcher` slot to extend the available actions",
1586
- "tags": []
1587
- },
1588
- "signature": "class CommandBarUI",
1589
- "name": "CommandBarUI",
1590
- "members": [
1591
- {
1592
- "__schema": "VariableLikeSchema",
1593
- "location": {
1594
- "filePath": "command-bar.ui.runtime.tsx",
1595
- "line": 42,
1596
- "character": 3
1597
- },
1598
- "doc": {
1599
- "__schema": "DocSchema",
1600
- "location": {
1601
- "filePath": "command-bar.ui.runtime.tsx",
1602
- "line": 41,
1603
- "character": 3
1604
- },
1605
- "raw": "/** Opens the command bar */",
1606
- "comment": "Opens the command bar",
1607
- "tags": []
1608
- },
1609
- "signature": "(property) CommandBarUI.open: () => boolean",
1610
- "name": "open",
1611
- "type": {
1612
- "__schema": "InferenceTypeSchema",
1613
- "location": {
1614
- "filePath": "command-bar.ui.runtime.tsx",
1615
- "line": 42,
1616
- "character": 3
1617
- },
1618
- "type": "() => boolean"
1619
- },
1620
- "isOptional": true,
1621
- "defaultValue": "() => {\n this.setVisibility?.(true);\n return false; // aka prevent default\n }"
1622
- },
1623
- {
1624
- "__schema": "VariableLikeSchema",
1625
- "location": {
1626
- "filePath": "command-bar.ui.runtime.tsx",
1627
- "line": 48,
1628
- "character": 3
1629
- },
1630
- "doc": {
1631
- "__schema": "DocSchema",
1632
- "location": {
1633
- "filePath": "command-bar.ui.runtime.tsx",
1634
- "line": 47,
1635
- "character": 3
1636
- },
1637
- "raw": "/** Closes the command bar */",
1638
- "comment": "Closes the command bar",
1639
- "tags": []
1640
- },
1641
- "signature": "(property) CommandBarUI.close: () => void",
1642
- "name": "close",
1643
- "type": {
1644
- "__schema": "InferenceTypeSchema",
1645
- "location": {
1646
- "filePath": "command-bar.ui.runtime.tsx",
1647
- "line": 48,
1648
- "character": 3
1649
- },
1650
- "type": "() => void"
1651
- },
1652
- "isOptional": true,
1653
- "defaultValue": "() => {\n this.setVisibility?.(false);\n }"
1654
- },
1655
- {
1656
- "__schema": "FunctionLikeSchema",
1657
- "location": {
1658
- "filePath": "command-bar.ui.runtime.tsx",
1659
- "line": 53,
1660
- "character": 3
1661
- },
1662
- "doc": {
1663
- "__schema": "DocSchema",
1664
- "location": {
1665
- "filePath": "command-bar.ui.runtime.tsx",
1666
- "line": 52,
1667
- "character": 3
1668
- },
1669
- "raw": "/** Add and autocomplete provider. To support keyboard navigation, each result should have a props `active: boolean`, and `exectue: () => any` */",
1670
- "comment": "Add and autocomplete provider. To support keyboard navigation, each result should have a props `active: boolean`, and `exectue: () => any`",
1671
- "tags": []
1672
- },
1673
- "signature": "(method) CommandBarUI.addSearcher(...commandSearcher: SearchProvider[]): this",
1674
- "name": "addSearcher",
1675
- "params": [
1676
- {
1677
- "__schema": "ParameterSchema",
1678
- "location": {
1679
- "filePath": "command-bar.ui.runtime.tsx",
1680
- "line": 53,
1681
- "character": 15
1682
- },
1683
- "name": "commandSearcher",
1684
- "type": {
1685
- "__schema": "TypeArraySchema",
1686
- "location": {
1687
- "filePath": "command-bar.ui.runtime.tsx",
1688
- "line": 53,
1689
- "character": 35
1690
- },
1691
- "type": {
1692
- "__schema": "TypeRefSchema",
1693
- "location": {
1694
- "filePath": "command-bar.ui.runtime.tsx",
1695
- "line": 53,
1696
- "character": 35
1697
- },
1698
- "name": "SearchProvider"
1699
- }
1700
- },
1701
- "isOptional": false,
1702
- "isSpread": true
1703
- }
1704
- ],
1705
- "returnType": {
1706
- "__schema": "TypeRefSchema",
1707
- "location": {
1708
- "filePath": "command-bar.ui.runtime.tsx",
1709
- "line": 53,
1710
- "character": 3
1711
- },
1712
- "name": "CommandBarUI"
1713
- },
1714
- "modifiers": []
1715
- },
1716
- {
1717
- "__schema": "FunctionLikeSchema",
1718
- "location": {
1719
- "filePath": "command-bar.ui.runtime.tsx",
1720
- "line": 61,
1721
- "character": 3
1722
- },
1723
- "doc": {
1724
- "__schema": "DocSchema",
1725
- "location": {
1726
- "filePath": "command-bar.ui.runtime.tsx",
1727
- "line": 58,
1728
- "character": 3
1729
- },
1730
- "raw": "/**\n * registers a command\n */",
1731
- "comment": "registers a command",
1732
- "tags": []
1733
- },
1734
- "signature": "(method) CommandBarUI.addCommand(...originalCommands: CommandEntry[]): ((next: CommandHandler) => void)[]",
1735
- "name": "addCommand",
1736
- "params": [
1737
- {
1738
- "__schema": "ParameterSchema",
1739
- "location": {
1740
- "filePath": "command-bar.ui.runtime.tsx",
1741
- "line": 61,
1742
- "character": 14
1743
- },
1744
- "name": "originalCommands",
1745
- "type": {
1746
- "__schema": "TypeArraySchema",
1747
- "location": {
1748
- "filePath": "command-bar.ui.runtime.tsx",
1749
- "line": 61,
1750
- "character": 35
1751
- },
1752
- "type": {
1753
- "__schema": "TypeRefSchema",
1754
- "location": {
1755
- "filePath": "command-bar.ui.runtime.tsx",
1756
- "line": 61,
1757
- "character": 35
1758
- },
1759
- "name": "CommandEntry"
1760
- }
1761
- },
1762
- "isOptional": false,
1763
- "isSpread": true
1764
- }
1765
- ],
1766
- "returnType": {
1767
- "__schema": "InferenceTypeSchema",
1768
- "location": {
1769
- "filePath": "command-bar.ui.runtime.tsx",
1770
- "line": 61,
1771
- "character": 3
1772
- },
1773
- "type": "((next: CommandHandler) => void)[]"
1774
- },
1775
- "modifiers": []
1776
- },
1777
- {
1778
- "__schema": "FunctionLikeSchema",
1779
- "location": {
1780
- "filePath": "command-bar.ui.runtime.tsx",
1781
- "line": 94,
1782
- "character": 3
1783
- },
1784
- "doc": {
1785
- "__schema": "DocSchema",
1786
- "location": {
1787
- "filePath": "command-bar.ui.runtime.tsx",
1788
- "line": 90,
1789
- "character": 3
1790
- },
1791
- "raw": "/**\n * executes command by name, if exists.\n * @param commandId\n */",
1792
- "comment": "executes command by name, if exists.",
1793
- "tags": [
1794
- {
1795
- "__schema": "PropertyLikeTagSchema",
1796
- "location": {
1797
- "filePath": "command-bar.ui.runtime.tsx",
1798
- "line": 92,
1799
- "character": 6
1800
- },
1801
- "name": "commandId",
1802
- "tagName": "parameter"
1803
- }
1804
- ]
1805
- },
1806
- "signature": "(method) CommandBarUI.run(commandId: CommandId): any",
1807
- "name": "run",
1808
- "params": [
1809
- {
1810
- "__schema": "ParameterSchema",
1811
- "location": {
1812
- "filePath": "command-bar.ui.runtime.tsx",
1813
- "line": 94,
1814
- "character": 7
1815
- },
1816
- "name": "commandId",
1817
- "type": {
1818
- "__schema": "TypeRefSchema",
1819
- "location": {
1820
- "filePath": "command-bar.ui.runtime.tsx",
1821
- "line": 94,
1822
- "character": 18
1823
- },
1824
- "name": "CommandId"
1825
- },
1826
- "isOptional": false,
1827
- "isSpread": false
1828
- }
1829
- ],
1830
- "returnType": {
1831
- "__schema": "InferenceTypeSchema",
1832
- "location": {
1833
- "filePath": "command-bar.ui.runtime.tsx",
1834
- "line": 94,
1835
- "character": 3
1836
- },
1837
- "type": "any"
1838
- },
1839
- "modifiers": []
1840
- },
1841
- {
1842
- "__schema": "VariableLikeSchema",
1843
- "location": {
1844
- "filePath": "command-bar.ui.runtime.tsx",
1845
- "line": 104,
1846
- "character": 3
1847
- },
1848
- "doc": {
1849
- "__schema": "DocSchema",
1850
- "location": {
1851
- "filePath": "command-bar.ui.runtime.tsx",
1852
- "line": 101,
1853
- "character": 3
1854
- },
1855
- "raw": "/**\n * executes a keyboard shortcut manually\n */",
1856
- "comment": "executes a keyboard shortcut manually",
1857
- "tags": []
1858
- },
1859
- "signature": "(property) CommandBarUI.trigger: (key: string) => void",
1860
- "name": "trigger",
1861
- "type": {
1862
- "__schema": "InferenceTypeSchema",
1863
- "location": {
1864
- "filePath": "command-bar.ui.runtime.tsx",
1865
- "line": 104,
1866
- "character": 3
1867
- },
1868
- "type": "(key: string) => void"
1869
- },
1870
- "isOptional": true,
1871
- "defaultValue": "(key: string) => {\n this.mousetrap.trigger(key);\n }"
1872
- },
1873
- {
1874
- "__schema": "VariableLikeSchema",
1875
- "location": {
1876
- "filePath": "command-bar.ui.runtime.tsx",
1877
- "line": 136,
1878
- "character": 3
1879
- },
1880
- "doc": {
1881
- "__schema": "DocSchema",
1882
- "location": {
1883
- "filePath": "command-bar.ui.runtime.tsx",
1884
- "line": 133,
1885
- "character": 3
1886
- },
1887
- "raw": "/**\n * Opens and closes the command bar UI.\n */",
1888
- "comment": "Opens and closes the command bar UI.",
1889
- "tags": []
1890
- },
1891
- "signature": "(property) CommandBarUI.setVisibility?: ((visible: boolean) => void) | undefined",
1892
- "name": "setVisibility",
1893
- "type": {
1894
- "__schema": "FunctionLikeSchema",
1895
- "location": {
1896
- "filePath": "command-bar.ui.runtime.tsx",
1897
- "line": 136,
1898
- "character": 19
1899
- },
1900
- "signature": "(visible: boolean): void",
1901
- "name": "",
1902
- "params": [
1903
- {
1904
- "__schema": "ParameterSchema",
1905
- "location": {
1906
- "filePath": "command-bar.ui.runtime.tsx",
1907
- "line": 136,
1908
- "character": 20
1909
- },
1910
- "name": "visible",
1911
- "type": {
1912
- "__schema": "KeywordTypeSchema",
1913
- "location": {
1914
- "filePath": "command-bar.ui.runtime.tsx",
1915
- "line": 136,
1916
- "character": 29
1917
- },
1918
- "name": "boolean"
1919
- },
1920
- "isOptional": false,
1921
- "isSpread": false
1922
- }
1923
- ],
1924
- "returnType": {
1925
- "__schema": "KeywordTypeSchema",
1926
- "location": {
1927
- "filePath": "command-bar.ui.runtime.tsx",
1928
- "line": 136,
1929
- "character": 41
1930
- },
1931
- "name": "void"
1932
- },
1933
- "modifiers": []
1934
- },
1935
- "isOptional": true
1936
- },
1937
- {
1938
- "__schema": "VariableLikeSchema",
1939
- "location": {
1940
- "filePath": "command-bar.ui.runtime.tsx",
1941
- "line": 141,
1942
- "character": 3
1943
- },
1944
- "doc": {
1945
- "__schema": "DocSchema",
1946
- "location": {
1947
- "filePath": "command-bar.ui.runtime.tsx",
1948
- "line": 138,
1949
- "character": 3
1950
- },
1951
- "raw": "/**\n * generate the ui for command bar\n */",
1952
- "comment": "generate the ui for command bar",
1953
- "tags": []
1954
- },
1955
- "signature": "(property) CommandBarUI.CommandBar: ({ ResultComponent, onEnter, }: {\n ResultComponent?: ComponentType<ResultsComponentProps>;\n onEnter?: (value: string) => void;\n}) => React.JSX.Element",
1956
- "name": "CommandBar",
1957
- "type": {
1958
- "__schema": "InferenceTypeSchema",
1959
- "location": {
1960
- "filePath": "command-bar.ui.runtime.tsx",
1961
- "line": 141,
1962
- "character": 3
1963
- },
1964
- "type": "({ ResultComponent, onEnter, }: {\n ResultComponent?: ComponentType<ResultsComponentProps>;\n onEnter?: (value: string) => void;\n}) => React.JSX.Element"
1965
- },
1966
- "isOptional": true,
1967
- "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 }"
1968
- },
1969
- {
1970
- "__schema": "VariableLikeSchema",
1971
- "location": {
1972
- "filePath": "command-bar.ui.runtime.tsx",
1973
- "line": 170,
1974
- "character": 3
1975
- },
1976
- "signature": "(property) CommandBarUI.CommandBarButton: () => React.JSX.Element",
1977
- "name": "CommandBarButton",
1978
- "type": {
1979
- "__schema": "InferenceTypeSchema",
1980
- "location": {
1981
- "filePath": "command-bar.ui.runtime.tsx",
1982
- "line": 170,
1983
- "character": 3
1984
- },
1985
- "type": "() => React.JSX.Element"
1986
- },
1987
- "isOptional": true,
1988
- "defaultValue": "() => <CommandBarButton onClick={() => this.setVisibility?.(true)} />"
1989
- },
1990
- {
1991
- "__schema": "ConstructorSchema",
1992
- "location": {
1993
- "filePath": "command-bar.ui.runtime.tsx",
1994
- "line": 172,
1995
- "character": 3
1996
- },
1997
- "signature": "constructor CommandBarUI(searcherSlot: SearcherSlot, commandSlot: CommandSlot, config: CommandBarConfig): CommandBarUI",
1998
- "name": "constructor",
1999
- "params": [
2000
- {
2001
- "__schema": "ParameterSchema",
2002
- "location": {
2003
- "filePath": "command-bar.ui.runtime.tsx",
2004
- "line": 173,
2005
- "character": 5
2006
- },
2007
- "name": "searcherSlot",
2008
- "type": {
2009
- "__schema": "TypeRefSchema",
2010
- "location": {
2011
- "filePath": "command-bar.ui.runtime.tsx",
2012
- "line": 173,
2013
- "character": 27
2014
- },
2015
- "name": "SearcherSlot",
2016
- "internalFilePath": "command-bar.ui.runtime.tsx"
2017
- },
2018
- "isOptional": false,
2019
- "isSpread": false
2020
- },
2021
- {
2022
- "__schema": "ParameterSchema",
2023
- "location": {
2024
- "filePath": "command-bar.ui.runtime.tsx",
2025
- "line": 174,
2026
- "character": 5
2027
- },
2028
- "name": "commandSlot",
2029
- "type": {
2030
- "__schema": "TypeRefSchema",
2031
- "location": {
2032
- "filePath": "command-bar.ui.runtime.tsx",
2033
- "line": 174,
2034
- "character": 26
2035
- },
2036
- "name": "CommandSlot",
2037
- "internalFilePath": "command-bar.ui.runtime.tsx"
2038
- },
2039
- "isOptional": false,
2040
- "isSpread": false
2041
- },
2042
- {
2043
- "__schema": "ParameterSchema",
2044
- "location": {
2045
- "filePath": "command-bar.ui.runtime.tsx",
2046
- "line": 175,
2047
- "character": 5
2048
- },
2049
- "name": "config",
2050
- "type": {
2051
- "__schema": "TypeRefSchema",
2052
- "location": {
2053
- "filePath": "command-bar.ui.runtime.tsx",
2054
- "line": 175,
2055
- "character": 21
2056
- },
2057
- "name": "CommandBarConfig",
2058
- "internalFilePath": "command-bar.ui.runtime.tsx"
2059
- },
2060
- "isOptional": false,
2061
- "isSpread": false
2062
- }
2063
- ],
2064
- "returnType": {
2065
- "__schema": "ThisTypeSchema",
2066
- "location": {
2067
- "filePath": "command-bar.ui.runtime.tsx",
2068
- "line": 37,
2069
- "character": 1
2070
- },
2071
- "name": "CommandBarUI"
2072
- },
2073
- "modifiers": []
2074
- },
2075
- {
2076
- "__schema": "VariableLikeSchema",
2077
- "location": {
2078
- "filePath": "command-bar.ui.runtime.tsx",
2079
- "line": 178,
2080
- "character": 3
2081
- },
2082
- "signature": "(property) CommandBarUI.dependencies: Aspect[]",
2083
- "name": "dependencies",
2084
- "type": {
2085
- "__schema": "InferenceTypeSchema",
2086
- "location": {
2087
- "filePath": "command-bar.ui.runtime.tsx",
2088
- "line": 178,
2089
- "character": 3
2090
- },
2091
- "type": "Aspect[]"
2092
- },
2093
- "isOptional": true,
2094
- "defaultValue": "[UIAspect, PubsubAspect, ReactRouterAspect]"
2095
- },
2096
- {
2097
- "__schema": "VariableLikeSchema",
2098
- "location": {
2099
- "filePath": "command-bar.ui.runtime.tsx",
2100
- "line": 179,
2101
- "character": 3
2102
- },
2103
- "signature": "(property) CommandBarUI.slots: (((registerFn: () => string) => SlotRegistry<SearchProvider>) | ((registerFn: () => string) => SlotRegistry<CommandEntry[]>))[]",
2104
- "name": "slots",
2105
- "type": {
2106
- "__schema": "InferenceTypeSchema",
2107
- "location": {
2108
- "filePath": "command-bar.ui.runtime.tsx",
2109
- "line": 179,
2110
- "character": 3
2111
- },
2112
- "type": "(((registerFn: () => string) => SlotRegistry<SearchProvider>) | ((registerFn: () => string) => SlotRegistry<CommandEntry[]>))[]"
2113
- },
2114
- "isOptional": true,
2115
- "defaultValue": "[Slot.withType<SearchProvider>(), Slot.withType<CommandEntry[]>()]"
2116
- },
2117
- {
2118
- "__schema": "VariableLikeSchema",
2119
- "location": {
2120
- "filePath": "command-bar.ui.runtime.tsx",
2121
- "line": 180,
2122
- "character": 3
2123
- },
2124
- "signature": "(property) CommandBarUI.defaultConfig: CommandBarConfig",
2125
- "name": "defaultConfig",
2126
- "type": {
2127
- "__schema": "TypeRefSchema",
2128
- "location": {
2129
- "filePath": "command-bar.ui.runtime.tsx",
2130
- "line": 180,
2131
- "character": 3
2132
- },
2133
- "name": "CommandBarConfig",
2134
- "internalFilePath": "command-bar.ui.runtime.tsx"
2135
- },
2136
- "isOptional": true,
2137
- "defaultValue": "{\n debounce: undefined,\n }"
2138
- },
2139
- {
2140
- "__schema": "VariableLikeSchema",
2141
- "location": {
2142
- "filePath": "command-bar.ui.runtime.tsx",
2143
- "line": 184,
2144
- "character": 3
2145
- },
2146
- "signature": "(property) CommandBarUI.runtime: RuntimeDefinition",
2147
- "name": "runtime",
2148
- "type": {
2149
- "__schema": "InferenceTypeSchema",
2150
- "location": {
2151
- "filePath": "command-bar.ui.runtime.tsx",
2152
- "line": 184,
2153
- "character": 3
2154
- },
2155
- "type": "RuntimeDefinition"
2156
- },
2157
- "isOptional": true,
2158
- "defaultValue": "UIRuntime"
2159
- },
2160
- {
2161
- "__schema": "FunctionLikeSchema",
2162
- "location": {
2163
- "filePath": "command-bar.ui.runtime.tsx",
2164
- "line": 186,
2165
- "character": 3
2166
- },
2167
- "signature": "(method) CommandBarUI.provider([uiUi, pubsubUI]: [UiUI | undefined, PubsubUI | undefined], config: CommandBarConfig, [searcherSlot, commandSlots]: [SearcherSlot, CommandSlot]): Promise<CommandBarUI>",
2168
- "name": "provider",
2169
- "params": [
2170
- {
2171
- "__schema": "ParameterSchema",
2172
- "location": {
2173
- "filePath": "command-bar.ui.runtime.tsx",
2174
- "line": 187,
2175
- "character": 5
2176
- },
2177
- "name": "[ uiUi, pubsubUI ]",
2178
- "type": {
2179
- "__schema": "TupleTypeSchema",
2180
- "location": {
2181
- "filePath": "command-bar.ui.runtime.tsx",
2182
- "line": 187,
2183
- "character": 23
2184
- },
2185
- "elements": [
2186
- {
2187
- "__schema": "TypeUnionSchema",
2188
- "location": {
2189
- "filePath": "command-bar.ui.runtime.tsx",
2190
- "line": 187,
2191
- "character": 24
2192
- },
2193
- "types": [
2194
- {
2195
- "__schema": "TypeRefSchema",
2196
- "location": {
2197
- "filePath": "command-bar.ui.runtime.tsx",
2198
- "line": 187,
2199
- "character": 24
2200
- },
2201
- "name": "UiUI",
2202
- "componentId": {
2203
- "scope": "teambit.ui-foundation",
2204
- "name": "ui"
2205
- }
2206
- },
2207
- {
2208
- "__schema": "KeywordTypeSchema",
2209
- "location": {
2210
- "filePath": "command-bar.ui.runtime.tsx",
2211
- "line": 187,
2212
- "character": 31
2213
- },
2214
- "name": "undefined"
2215
- }
2216
- ]
2217
- },
2218
- {
2219
- "__schema": "TypeUnionSchema",
2220
- "location": {
2221
- "filePath": "command-bar.ui.runtime.tsx",
2222
- "line": 187,
2223
- "character": 42
2224
- },
2225
- "types": [
2226
- {
2227
- "__schema": "TypeRefSchema",
2228
- "location": {
2229
- "filePath": "command-bar.ui.runtime.tsx",
2230
- "line": 187,
2231
- "character": 42
2232
- },
2233
- "name": "PubsubUI",
2234
- "componentId": {
2235
- "scope": "teambit.harmony",
2236
- "name": "pubsub"
2237
- }
2238
- },
2239
- {
2240
- "__schema": "KeywordTypeSchema",
2241
- "location": {
2242
- "filePath": "command-bar.ui.runtime.tsx",
2243
- "line": 187,
2244
- "character": 53
2245
- },
2246
- "name": "undefined"
2247
- }
2248
- ]
2249
- }
2250
- ]
2251
- },
2252
- "isOptional": false,
2253
- "isSpread": false
2254
- },
2255
- {
2256
- "__schema": "ParameterSchema",
2257
- "location": {
2258
- "filePath": "command-bar.ui.runtime.tsx",
2259
- "line": 188,
2260
- "character": 5
2261
- },
2262
- "name": "config",
2263
- "type": {
2264
- "__schema": "TypeRefSchema",
2265
- "location": {
2266
- "filePath": "command-bar.ui.runtime.tsx",
2267
- "line": 188,
2268
- "character": 13
2269
- },
2270
- "name": "CommandBarConfig",
2271
- "internalFilePath": "command-bar.ui.runtime.tsx"
2272
- },
2273
- "isOptional": false,
2274
- "isSpread": false
2275
- },
2276
- {
2277
- "__schema": "ParameterSchema",
2278
- "location": {
2279
- "filePath": "command-bar.ui.runtime.tsx",
2280
- "line": 189,
2281
- "character": 5
2282
- },
2283
- "name": "[ searcherSlot, commandSlots ]",
2284
- "type": {
2285
- "__schema": "TupleTypeSchema",
2286
- "location": {
2287
- "filePath": "command-bar.ui.runtime.tsx",
2288
- "line": 189,
2289
- "character": 35
2290
- },
2291
- "elements": [
2292
- {
2293
- "__schema": "TypeRefSchema",
2294
- "location": {
2295
- "filePath": "command-bar.ui.runtime.tsx",
2296
- "line": 189,
2297
- "character": 36
2298
- },
2299
- "name": "SearcherSlot",
2300
- "internalFilePath": "command-bar.ui.runtime.tsx"
2301
- },
2302
- {
2303
- "__schema": "TypeRefSchema",
2304
- "location": {
2305
- "filePath": "command-bar.ui.runtime.tsx",
2306
- "line": 189,
2307
- "character": 50
2308
- },
2309
- "name": "CommandSlot",
2310
- "internalFilePath": "command-bar.ui.runtime.tsx"
2311
- }
2312
- ]
2313
- },
2314
- "isOptional": false,
2315
- "isSpread": false
2316
- }
2317
- ],
2318
- "returnType": {
2319
- "__schema": "InferenceTypeSchema",
2320
- "location": {
2321
- "filePath": "command-bar.ui.runtime.tsx",
2322
- "line": 186,
2323
- "character": 3
2324
- },
2325
- "type": "Promise<CommandBarUI>"
2326
- },
2327
- "modifiers": [
2328
- "static",
2329
- "async"
2330
- ]
2331
- }
2332
- ],
2333
- "extendsNodes": [],
2334
- "implementNodes": []
2335
- }
2336
- ],
2337
- "internals": [
2338
- {
2339
- "__schema": "ModuleSchema",
2340
- "location": {
2341
- "filePath": "command-bar.ui.runtime.tsx",
2342
- "line": 21,
2343
- "character": 1
2344
- },
2345
- "exports": [
2346
- {
2347
- "__schema": "VariableLikeSchema",
2348
- "location": {
2349
- "filePath": "command-bar.ui.runtime.tsx",
2350
- "line": 21,
2351
- "character": 7
2352
- },
2353
- "signature": "const RESULT_LIMIT: 5",
2354
- "name": "RESULT_LIMIT",
2355
- "type": {
2356
- "__schema": "InferenceTypeSchema",
2357
- "location": {
2358
- "filePath": "command-bar.ui.runtime.tsx",
2359
- "line": 21,
2360
- "character": 7
2361
- },
2362
- "type": "5"
2363
- },
2364
- "isOptional": false,
2365
- "defaultValue": "5"
2366
- }
2367
- ],
2368
- "internals": []
2369
- },
2370
- {
2371
- "__schema": "TypeSchema",
2372
- "location": {
2373
- "filePath": "command-bar.ui.runtime.tsx",
2374
- "line": 22,
2375
- "character": 1
2376
- },
2377
- "signature": "type SearcherSlot = SlotRegistry<SearchProvider[]>",
2378
- "name": "SearcherSlot",
2379
- "type": {
2380
- "__schema": "TypeRefSchema",
2381
- "location": {
2382
- "filePath": "command-bar.ui.runtime.tsx",
2383
- "line": 22,
2384
- "character": 21
2385
- },
2386
- "name": "SlotRegistry",
2387
- "componentId": {
2388
- "scope": "teambit.harmony",
2389
- "name": "harmony",
2390
- "version": "0.4.6"
2391
- },
2392
- "typeArgs": [
2393
- {
2394
- "__schema": "TypeArraySchema",
2395
- "location": {
2396
- "filePath": "command-bar.ui.runtime.tsx",
2397
- "line": 22,
2398
- "character": 34
2399
- },
2400
- "type": {
2401
- "__schema": "TypeRefSchema",
2402
- "location": {
2403
- "filePath": "command-bar.ui.runtime.tsx",
2404
- "line": 22,
2405
- "character": 34
2406
- },
2407
- "name": "SearchProvider"
2408
- }
2409
- }
2410
- ]
2411
- }
2412
- },
2413
- {
2414
- "__schema": "TypeSchema",
2415
- "location": {
2416
- "filePath": "command-bar.ui.runtime.tsx",
2417
- "line": 23,
2418
- "character": 1
2419
- },
2420
- "signature": "type CommandSlot = SlotRegistry<CommandEntry[]>",
2421
- "name": "CommandSlot",
2422
- "type": {
2423
- "__schema": "TypeRefSchema",
2424
- "location": {
2425
- "filePath": "command-bar.ui.runtime.tsx",
2426
- "line": 23,
2427
- "character": 20
2428
- },
2429
- "name": "SlotRegistry",
2430
- "componentId": {
2431
- "scope": "teambit.harmony",
2432
- "name": "harmony",
2433
- "version": "0.4.6"
2434
- },
2435
- "typeArgs": [
2436
- {
2437
- "__schema": "TypeArraySchema",
2438
- "location": {
2439
- "filePath": "command-bar.ui.runtime.tsx",
2440
- "line": 23,
2441
- "character": 33
2442
- },
2443
- "type": {
2444
- "__schema": "TypeRefSchema",
2445
- "location": {
2446
- "filePath": "command-bar.ui.runtime.tsx",
2447
- "line": 23,
2448
- "character": 33
2449
- },
2450
- "name": "CommandEntry"
2451
- }
2452
- }
2453
- ]
2454
- }
2455
- },
2456
- {
2457
- "__schema": "UnImplementedSchema",
2458
- "location": {
2459
- "filePath": "command-bar.ui.runtime.tsx",
2460
- "line": 216,
2461
- "character": 1
2462
- },
2463
- "name": "CommandBarAspect.addRuntime(CommandBarUI);",
2464
- "type": "ExpressionStatement"
2465
- }
2466
- ]
2467
- }
2468
- ],
2469
- "componentId": {
2470
- "scope": "teambit.explorer",
2471
- "name": "command-bar",
2472
- "version": "1.0.516"
2473
- },
2474
- "taggedModuleExports": []
2475
- }