@teambit/pubsub 1.0.158 → 1.0.159

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,1990 @@
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": "VariableLikeSchema",
18
+ "location": {
19
+ "filePath": "pubsub.aspect.ts",
20
+ "line": 3,
21
+ "character": 14
22
+ },
23
+ "signature": "const PubsubAspect: Aspect",
24
+ "name": "PubsubAspect",
25
+ "type": {
26
+ "__schema": "TypeRefSchema",
27
+ "location": {
28
+ "filePath": "pubsub.aspect.ts",
29
+ "line": 3,
30
+ "character": 14
31
+ },
32
+ "name": "Aspect",
33
+ "componentId": {
34
+ "scope": "teambit.harmony",
35
+ "name": "harmony",
36
+ "version": "0.4.6"
37
+ }
38
+ },
39
+ "isOptional": false,
40
+ "defaultValue": "Aspect.create({\n id: 'teambit.harmony/pubsub',\n dependencies: [],\n})"
41
+ },
42
+ {
43
+ "__schema": "VariableLikeSchema",
44
+ "location": {
45
+ "filePath": "pubsub.aspect.ts",
46
+ "line": 3,
47
+ "character": 14
48
+ },
49
+ "signature": "const PubsubAspect: Aspect",
50
+ "name": "PubsubAspect",
51
+ "type": {
52
+ "__schema": "TypeRefSchema",
53
+ "location": {
54
+ "filePath": "pubsub.aspect.ts",
55
+ "line": 3,
56
+ "character": 14
57
+ },
58
+ "name": "Aspect",
59
+ "componentId": {
60
+ "scope": "teambit.harmony",
61
+ "name": "harmony",
62
+ "version": "0.4.6"
63
+ }
64
+ },
65
+ "isOptional": false,
66
+ "defaultValue": "Aspect.create({\n id: 'teambit.harmony/pubsub',\n dependencies: [],\n})"
67
+ },
68
+ {
69
+ "__schema": "ClassSchema",
70
+ "location": {
71
+ "filePath": "pubsub.main.runtime.ts",
72
+ "line": 6,
73
+ "character": 1
74
+ },
75
+ "signature": "class PubsubMain",
76
+ "name": "PubsubMain",
77
+ "members": [
78
+ {
79
+ "__schema": "FunctionLikeSchema",
80
+ "location": {
81
+ "filePath": "pubsub.main.runtime.ts",
82
+ "line": 13,
83
+ "character": 3
84
+ },
85
+ "signature": "(method) PubsubMain.sub(topicUUID: any, callback: any): void",
86
+ "name": "sub",
87
+ "params": [
88
+ {
89
+ "__schema": "ParameterSchema",
90
+ "location": {
91
+ "filePath": "pubsub.main.runtime.ts",
92
+ "line": 13,
93
+ "character": 14
94
+ },
95
+ "name": "topicUUID",
96
+ "type": {
97
+ "__schema": "InferenceTypeSchema",
98
+ "location": {
99
+ "filePath": "pubsub.main.runtime.ts",
100
+ "line": 13,
101
+ "character": 14
102
+ },
103
+ "type": "any"
104
+ },
105
+ "isOptional": false,
106
+ "isSpread": false
107
+ },
108
+ {
109
+ "__schema": "ParameterSchema",
110
+ "location": {
111
+ "filePath": "pubsub.main.runtime.ts",
112
+ "line": 13,
113
+ "character": 25
114
+ },
115
+ "name": "callback",
116
+ "type": {
117
+ "__schema": "InferenceTypeSchema",
118
+ "location": {
119
+ "filePath": "pubsub.main.runtime.ts",
120
+ "line": 13,
121
+ "character": 25
122
+ },
123
+ "type": "any"
124
+ },
125
+ "isOptional": false,
126
+ "isSpread": false
127
+ }
128
+ ],
129
+ "returnType": {
130
+ "__schema": "InferenceTypeSchema",
131
+ "location": {
132
+ "filePath": "pubsub.main.runtime.ts",
133
+ "line": 13,
134
+ "character": 3
135
+ },
136
+ "type": "void"
137
+ },
138
+ "modifiers": [
139
+ "public"
140
+ ]
141
+ },
142
+ {
143
+ "__schema": "FunctionLikeSchema",
144
+ "location": {
145
+ "filePath": "pubsub.main.runtime.ts",
146
+ "line": 18,
147
+ "character": 3
148
+ },
149
+ "signature": "(method) PubsubMain.pub(topicUUID: any, event: BitBaseEvent<any>): void",
150
+ "name": "pub",
151
+ "params": [
152
+ {
153
+ "__schema": "ParameterSchema",
154
+ "location": {
155
+ "filePath": "pubsub.main.runtime.ts",
156
+ "line": 18,
157
+ "character": 14
158
+ },
159
+ "name": "topicUUID",
160
+ "type": {
161
+ "__schema": "InferenceTypeSchema",
162
+ "location": {
163
+ "filePath": "pubsub.main.runtime.ts",
164
+ "line": 18,
165
+ "character": 14
166
+ },
167
+ "type": "any"
168
+ },
169
+ "isOptional": false,
170
+ "isSpread": false
171
+ },
172
+ {
173
+ "__schema": "ParameterSchema",
174
+ "location": {
175
+ "filePath": "pubsub.main.runtime.ts",
176
+ "line": 18,
177
+ "character": 25
178
+ },
179
+ "name": "event",
180
+ "type": {
181
+ "__schema": "TypeRefSchema",
182
+ "location": {
183
+ "filePath": "pubsub.main.runtime.ts",
184
+ "line": 18,
185
+ "character": 32
186
+ },
187
+ "name": "BitBaseEvent",
188
+ "typeArgs": [
189
+ {
190
+ "__schema": "KeywordTypeSchema",
191
+ "location": {
192
+ "filePath": "pubsub.main.runtime.ts",
193
+ "line": 18,
194
+ "character": 45
195
+ },
196
+ "name": "any"
197
+ }
198
+ ]
199
+ },
200
+ "isOptional": false,
201
+ "isSpread": false
202
+ }
203
+ ],
204
+ "returnType": {
205
+ "__schema": "InferenceTypeSchema",
206
+ "location": {
207
+ "filePath": "pubsub.main.runtime.ts",
208
+ "line": 18,
209
+ "character": 3
210
+ },
211
+ "type": "void"
212
+ },
213
+ "modifiers": [
214
+ "public"
215
+ ]
216
+ },
217
+ {
218
+ "__schema": "FunctionLikeSchema",
219
+ "location": {
220
+ "filePath": "pubsub.main.runtime.ts",
221
+ "line": 23,
222
+ "character": 3
223
+ },
224
+ "signature": "(method) PubsubMain.unsubscribeAll(topicId: string): void",
225
+ "name": "unsubscribeAll",
226
+ "params": [
227
+ {
228
+ "__schema": "ParameterSchema",
229
+ "location": {
230
+ "filePath": "pubsub.main.runtime.ts",
231
+ "line": 23,
232
+ "character": 18
233
+ },
234
+ "name": "topicId",
235
+ "type": {
236
+ "__schema": "KeywordTypeSchema",
237
+ "location": {
238
+ "filePath": "pubsub.main.runtime.ts",
239
+ "line": 23,
240
+ "character": 27
241
+ },
242
+ "name": "string"
243
+ },
244
+ "isOptional": false,
245
+ "isSpread": false
246
+ }
247
+ ],
248
+ "returnType": {
249
+ "__schema": "InferenceTypeSchema",
250
+ "location": {
251
+ "filePath": "pubsub.main.runtime.ts",
252
+ "line": 23,
253
+ "character": 3
254
+ },
255
+ "type": "void"
256
+ },
257
+ "modifiers": []
258
+ },
259
+ {
260
+ "__schema": "VariableLikeSchema",
261
+ "location": {
262
+ "filePath": "pubsub.main.runtime.ts",
263
+ "line": 27,
264
+ "character": 3
265
+ },
266
+ "signature": "(property) PubsubMain.runtime: RuntimeDefinition",
267
+ "name": "runtime",
268
+ "type": {
269
+ "__schema": "InferenceTypeSchema",
270
+ "location": {
271
+ "filePath": "pubsub.main.runtime.ts",
272
+ "line": 27,
273
+ "character": 3
274
+ },
275
+ "type": "RuntimeDefinition"
276
+ },
277
+ "isOptional": true,
278
+ "defaultValue": "MainRuntime"
279
+ },
280
+ {
281
+ "__schema": "FunctionLikeSchema",
282
+ "location": {
283
+ "filePath": "pubsub.main.runtime.ts",
284
+ "line": 29,
285
+ "character": 3
286
+ },
287
+ "signature": "(method) PubsubMain.provider(): Promise<PubsubMain>",
288
+ "name": "provider",
289
+ "params": [],
290
+ "returnType": {
291
+ "__schema": "InferenceTypeSchema",
292
+ "location": {
293
+ "filePath": "pubsub.main.runtime.ts",
294
+ "line": 29,
295
+ "character": 3
296
+ },
297
+ "type": "Promise<PubsubMain>"
298
+ },
299
+ "modifiers": [
300
+ "static",
301
+ "async"
302
+ ]
303
+ }
304
+ ],
305
+ "extendsNodes": [],
306
+ "implementNodes": []
307
+ },
308
+ {
309
+ "__schema": "ClassSchema",
310
+ "location": {
311
+ "filePath": "pubsub.preview.runtime.ts",
312
+ "line": 20,
313
+ "character": 1
314
+ },
315
+ "signature": "class PubsubPreview",
316
+ "name": "PubsubPreview",
317
+ "members": [
318
+ {
319
+ "__schema": "FunctionLikeSchema",
320
+ "location": {
321
+ "filePath": "pubsub.preview.runtime.ts",
322
+ "line": 24,
323
+ "character": 3
324
+ },
325
+ "signature": "(method) PubsubPreview.sub(topic: string, callback: Callback): () => void",
326
+ "name": "sub",
327
+ "params": [
328
+ {
329
+ "__schema": "ParameterSchema",
330
+ "location": {
331
+ "filePath": "pubsub.preview.runtime.ts",
332
+ "line": 24,
333
+ "character": 14
334
+ },
335
+ "name": "topic",
336
+ "type": {
337
+ "__schema": "KeywordTypeSchema",
338
+ "location": {
339
+ "filePath": "pubsub.preview.runtime.ts",
340
+ "line": 24,
341
+ "character": 21
342
+ },
343
+ "name": "string"
344
+ },
345
+ "isOptional": false,
346
+ "isSpread": false
347
+ },
348
+ {
349
+ "__schema": "ParameterSchema",
350
+ "location": {
351
+ "filePath": "pubsub.preview.runtime.ts",
352
+ "line": 24,
353
+ "character": 29
354
+ },
355
+ "name": "callback",
356
+ "type": {
357
+ "__schema": "TypeRefSchema",
358
+ "location": {
359
+ "filePath": "pubsub.preview.runtime.ts",
360
+ "line": 24,
361
+ "character": 39
362
+ },
363
+ "name": "Callback"
364
+ },
365
+ "isOptional": false,
366
+ "isSpread": false
367
+ }
368
+ ],
369
+ "returnType": {
370
+ "__schema": "InferenceTypeSchema",
371
+ "location": {
372
+ "filePath": "pubsub.preview.runtime.ts",
373
+ "line": 24,
374
+ "character": 3
375
+ },
376
+ "type": "() => void"
377
+ },
378
+ "modifiers": [
379
+ "public"
380
+ ]
381
+ },
382
+ {
383
+ "__schema": "FunctionLikeSchema",
384
+ "location": {
385
+ "filePath": "pubsub.preview.runtime.ts",
386
+ "line": 34,
387
+ "character": 3
388
+ },
389
+ "signature": "(method) PubsubPreview.pub(topic: string, event: BitBaseEvent<any>): void",
390
+ "name": "pub",
391
+ "params": [
392
+ {
393
+ "__schema": "ParameterSchema",
394
+ "location": {
395
+ "filePath": "pubsub.preview.runtime.ts",
396
+ "line": 34,
397
+ "character": 14
398
+ },
399
+ "name": "topic",
400
+ "type": {
401
+ "__schema": "KeywordTypeSchema",
402
+ "location": {
403
+ "filePath": "pubsub.preview.runtime.ts",
404
+ "line": 34,
405
+ "character": 21
406
+ },
407
+ "name": "string"
408
+ },
409
+ "isOptional": false,
410
+ "isSpread": false
411
+ },
412
+ {
413
+ "__schema": "ParameterSchema",
414
+ "location": {
415
+ "filePath": "pubsub.preview.runtime.ts",
416
+ "line": 34,
417
+ "character": 29
418
+ },
419
+ "name": "event",
420
+ "type": {
421
+ "__schema": "TypeRefSchema",
422
+ "location": {
423
+ "filePath": "pubsub.preview.runtime.ts",
424
+ "line": 34,
425
+ "character": 36
426
+ },
427
+ "name": "BitBaseEvent",
428
+ "typeArgs": [
429
+ {
430
+ "__schema": "KeywordTypeSchema",
431
+ "location": {
432
+ "filePath": "pubsub.preview.runtime.ts",
433
+ "line": 34,
434
+ "character": 49
435
+ },
436
+ "name": "any"
437
+ }
438
+ ]
439
+ },
440
+ "isOptional": false,
441
+ "isSpread": false
442
+ }
443
+ ],
444
+ "returnType": {
445
+ "__schema": "InferenceTypeSchema",
446
+ "location": {
447
+ "filePath": "pubsub.preview.runtime.ts",
448
+ "line": 34,
449
+ "character": 3
450
+ },
451
+ "type": "void"
452
+ },
453
+ "modifiers": [
454
+ "public"
455
+ ]
456
+ },
457
+ {
458
+ "__schema": "VariableLikeSchema",
459
+ "location": {
460
+ "filePath": "pubsub.preview.runtime.ts",
461
+ "line": 71,
462
+ "character": 3
463
+ },
464
+ "signature": "(property) PubsubPreview.runtime: RuntimeDefinition",
465
+ "name": "runtime",
466
+ "type": {
467
+ "__schema": "InferenceTypeSchema",
468
+ "location": {
469
+ "filePath": "pubsub.preview.runtime.ts",
470
+ "line": 71,
471
+ "character": 3
472
+ },
473
+ "type": "RuntimeDefinition"
474
+ },
475
+ "isOptional": true,
476
+ "defaultValue": "PreviewRuntime"
477
+ },
478
+ {
479
+ "__schema": "FunctionLikeSchema",
480
+ "location": {
481
+ "filePath": "pubsub.preview.runtime.ts",
482
+ "line": 73,
483
+ "character": 3
484
+ },
485
+ "signature": "(method) PubsubPreview.provider(): Promise<PubsubPreview>",
486
+ "name": "provider",
487
+ "params": [],
488
+ "returnType": {
489
+ "__schema": "TypeRefSchema",
490
+ "location": {
491
+ "filePath": "pubsub.preview.runtime.ts",
492
+ "line": 73,
493
+ "character": 28
494
+ },
495
+ "name": "Promise",
496
+ "typeArgs": [
497
+ {
498
+ "__schema": "TypeRefSchema",
499
+ "location": {
500
+ "filePath": "pubsub.preview.runtime.ts",
501
+ "line": 73,
502
+ "character": 36
503
+ },
504
+ "name": "PubsubPreview"
505
+ }
506
+ ]
507
+ },
508
+ "modifiers": [
509
+ "static",
510
+ "async"
511
+ ]
512
+ }
513
+ ],
514
+ "extendsNodes": [],
515
+ "implementNodes": []
516
+ },
517
+ {
518
+ "__schema": "ClassSchema",
519
+ "location": {
520
+ "filePath": "pubsub.ui.runtime.ts",
521
+ "line": 18,
522
+ "character": 1
523
+ },
524
+ "signature": "class PubsubUI",
525
+ "name": "PubsubUI",
526
+ "members": [
527
+ {
528
+ "__schema": "VariableLikeSchema",
529
+ "location": {
530
+ "filePath": "pubsub.ui.runtime.ts",
531
+ "line": 25,
532
+ "character": 3
533
+ },
534
+ "doc": {
535
+ "__schema": "DocSchema",
536
+ "location": {
537
+ "filePath": "pubsub.ui.runtime.ts",
538
+ "line": 22,
539
+ "character": 3
540
+ },
541
+ "raw": "/**\n * subscribe to events\n */",
542
+ "comment": "subscribe to events"
543
+ },
544
+ "signature": "(property) PubsubUI.sub: (topic: string, callback: Callback) => () => void",
545
+ "name": "sub",
546
+ "type": {
547
+ "__schema": "InferenceTypeSchema",
548
+ "location": {
549
+ "filePath": "pubsub.ui.runtime.ts",
550
+ "line": 25,
551
+ "character": 3
552
+ },
553
+ "type": "(topic: string, callback: Callback) => () => void"
554
+ },
555
+ "isOptional": true,
556
+ "defaultValue": "(topic: string, callback: Callback) => {\n const events = this.events;\n events.on(topic, callback);\n\n const unSub = () => {\n events.off(topic, callback);\n };\n\n return unSub;\n }"
557
+ },
558
+ {
559
+ "__schema": "VariableLikeSchema",
560
+ "location": {
561
+ "filePath": "pubsub.ui.runtime.ts",
562
+ "line": 39,
563
+ "character": 3
564
+ },
565
+ "doc": {
566
+ "__schema": "DocSchema",
567
+ "location": {
568
+ "filePath": "pubsub.ui.runtime.ts",
569
+ "line": 36,
570
+ "character": 3
571
+ },
572
+ "raw": "/**\n * publish event to all subscribers, including nested iframes.\n */",
573
+ "comment": "publish event to all subscribers, including nested iframes."
574
+ },
575
+ "signature": "(property) PubsubUI.pub: (topic: string, event: BitBaseEvent<any>, { propagate }?: PubOptions) => void",
576
+ "name": "pub",
577
+ "type": {
578
+ "__schema": "InferenceTypeSchema",
579
+ "location": {
580
+ "filePath": "pubsub.ui.runtime.ts",
581
+ "line": 39,
582
+ "character": 3
583
+ },
584
+ "type": "(topic: string, event: BitBaseEvent<any>, { propagate }?: PubOptions) => void"
585
+ },
586
+ "isOptional": true,
587
+ "defaultValue": "(topic: string, event: BitBaseEvent<any>, { propagate }: PubOptions = {}) => {\n this.emitEvent(topic, event);\n\n // opt-in to forward to iframe, as we would not want 'private' messages automatically passing to iframe\n if (propagate) {\n this.pubToChild(topic, event);\n }\n }"
588
+ },
589
+ {
590
+ "__schema": "FunctionLikeSchema",
591
+ "location": {
592
+ "filePath": "pubsub.ui.runtime.ts",
593
+ "line": 69,
594
+ "character": 3
595
+ },
596
+ "signature": "(method) PubsubUI.getPubSubContext(): ({ children }: {\n children: React.ReactNode;\n}) => React.JSX.Element",
597
+ "name": "getPubSubContext",
598
+ "params": [],
599
+ "returnType": {
600
+ "__schema": "InferenceTypeSchema",
601
+ "location": {
602
+ "filePath": "pubsub.ui.runtime.ts",
603
+ "line": 69,
604
+ "character": 3
605
+ },
606
+ "type": "({ children }: {\n children: React.ReactNode;\n}) => React.JSX.Element"
607
+ },
608
+ "modifiers": []
609
+ },
610
+ {
611
+ "__schema": "VariableLikeSchema",
612
+ "location": {
613
+ "filePath": "pubsub.ui.runtime.ts",
614
+ "line": 89,
615
+ "character": 3
616
+ },
617
+ "signature": "(property) PubsubUI.runtime: RuntimeDefinition",
618
+ "name": "runtime",
619
+ "type": {
620
+ "__schema": "InferenceTypeSchema",
621
+ "location": {
622
+ "filePath": "pubsub.ui.runtime.ts",
623
+ "line": 89,
624
+ "character": 3
625
+ },
626
+ "type": "RuntimeDefinition"
627
+ },
628
+ "isOptional": true,
629
+ "defaultValue": "UIRuntime"
630
+ },
631
+ {
632
+ "__schema": "VariableLikeSchema",
633
+ "location": {
634
+ "filePath": "pubsub.ui.runtime.ts",
635
+ "line": 90,
636
+ "character": 3
637
+ },
638
+ "signature": "(property) PubsubUI.dependencies: Aspect[]",
639
+ "name": "dependencies",
640
+ "type": {
641
+ "__schema": "InferenceTypeSchema",
642
+ "location": {
643
+ "filePath": "pubsub.ui.runtime.ts",
644
+ "line": 90,
645
+ "character": 3
646
+ },
647
+ "type": "Aspect[]"
648
+ },
649
+ "isOptional": true,
650
+ "defaultValue": "[UIAspect]"
651
+ },
652
+ {
653
+ "__schema": "FunctionLikeSchema",
654
+ "location": {
655
+ "filePath": "pubsub.ui.runtime.ts",
656
+ "line": 92,
657
+ "character": 3
658
+ },
659
+ "signature": "(method) PubsubUI.provider([uiUI]: [UiUI]): Promise<PubsubUI>",
660
+ "name": "provider",
661
+ "params": [
662
+ {
663
+ "__schema": "ParameterSchema",
664
+ "location": {
665
+ "filePath": "pubsub.ui.runtime.ts",
666
+ "line": 92,
667
+ "character": 25
668
+ },
669
+ "name": "[ uiUI ]",
670
+ "type": {
671
+ "__schema": "TupleTypeSchema",
672
+ "location": {
673
+ "filePath": "pubsub.ui.runtime.ts",
674
+ "line": 92,
675
+ "character": 33
676
+ },
677
+ "elements": [
678
+ {
679
+ "__schema": "TypeRefSchema",
680
+ "location": {
681
+ "filePath": "pubsub.ui.runtime.ts",
682
+ "line": 92,
683
+ "character": 34
684
+ },
685
+ "name": "UiUI"
686
+ }
687
+ ]
688
+ },
689
+ "isOptional": false,
690
+ "isSpread": false
691
+ }
692
+ ],
693
+ "returnType": {
694
+ "__schema": "InferenceTypeSchema",
695
+ "location": {
696
+ "filePath": "pubsub.ui.runtime.ts",
697
+ "line": 92,
698
+ "character": 3
699
+ },
700
+ "type": "Promise<PubsubUI>"
701
+ },
702
+ "modifiers": [
703
+ "static",
704
+ "async"
705
+ ]
706
+ }
707
+ ],
708
+ "extendsNodes": [],
709
+ "implementNodes": []
710
+ },
711
+ {
712
+ "__schema": "ClassSchema",
713
+ "location": {
714
+ "filePath": "bit-base-event.ts",
715
+ "line": 1,
716
+ "character": 1
717
+ },
718
+ "signature": "class BitBaseEvent<T>",
719
+ "name": "BitBaseEvent",
720
+ "members": [
721
+ {
722
+ "__schema": "ConstructorSchema",
723
+ "location": {
724
+ "filePath": "bit-base-event.ts",
725
+ "line": 2,
726
+ "character": 3
727
+ },
728
+ "signature": "constructor BitBaseEvent<T>(type: string, version: string, timestamp: number, data: T): BitBaseEvent<T>",
729
+ "name": "constructor",
730
+ "params": [
731
+ {
732
+ "__schema": "ParameterSchema",
733
+ "location": {
734
+ "filePath": "bit-base-event.ts",
735
+ "line": 2,
736
+ "character": 15
737
+ },
738
+ "name": "type",
739
+ "type": {
740
+ "__schema": "KeywordTypeSchema",
741
+ "location": {
742
+ "filePath": "bit-base-event.ts",
743
+ "line": 2,
744
+ "character": 30
745
+ },
746
+ "name": "string"
747
+ },
748
+ "isOptional": false,
749
+ "isSpread": false
750
+ },
751
+ {
752
+ "__schema": "ParameterSchema",
753
+ "location": {
754
+ "filePath": "bit-base-event.ts",
755
+ "line": 2,
756
+ "character": 38
757
+ },
758
+ "name": "version",
759
+ "type": {
760
+ "__schema": "KeywordTypeSchema",
761
+ "location": {
762
+ "filePath": "bit-base-event.ts",
763
+ "line": 2,
764
+ "character": 56
765
+ },
766
+ "name": "string"
767
+ },
768
+ "isOptional": false,
769
+ "isSpread": false
770
+ },
771
+ {
772
+ "__schema": "ParameterSchema",
773
+ "location": {
774
+ "filePath": "bit-base-event.ts",
775
+ "line": 2,
776
+ "character": 64
777
+ },
778
+ "name": "timestamp",
779
+ "type": {
780
+ "__schema": "KeywordTypeSchema",
781
+ "location": {
782
+ "filePath": "bit-base-event.ts",
783
+ "line": 2,
784
+ "character": 84
785
+ },
786
+ "name": "number"
787
+ },
788
+ "isOptional": false,
789
+ "isSpread": false
790
+ },
791
+ {
792
+ "__schema": "ParameterSchema",
793
+ "location": {
794
+ "filePath": "bit-base-event.ts",
795
+ "line": 2,
796
+ "character": 92
797
+ },
798
+ "name": "data",
799
+ "type": {
800
+ "__schema": "TypeRefSchema",
801
+ "location": {
802
+ "filePath": "bit-base-event.ts",
803
+ "line": 2,
804
+ "character": 107
805
+ },
806
+ "name": "T"
807
+ },
808
+ "isOptional": false,
809
+ "isSpread": false
810
+ }
811
+ ],
812
+ "returnType": {
813
+ "__schema": "ThisTypeSchema",
814
+ "location": {
815
+ "filePath": "bit-base-event.ts",
816
+ "line": 1,
817
+ "character": 1
818
+ },
819
+ "name": "BitBaseEvent"
820
+ },
821
+ "modifiers": []
822
+ }
823
+ ],
824
+ "typeParams": [
825
+ "T"
826
+ ],
827
+ "extendsNodes": [],
828
+ "implementNodes": []
829
+ },
830
+ {
831
+ "__schema": "InterfaceSchema",
832
+ "location": {
833
+ "filePath": "pubsub-context.tsx",
834
+ "line": 3,
835
+ "character": 1
836
+ },
837
+ "signature": "interface PubSubRegistry",
838
+ "name": "PubSubRegistry",
839
+ "members": [
840
+ {
841
+ "__schema": "FunctionLikeSchema",
842
+ "location": {
843
+ "filePath": "pubsub-context.tsx",
844
+ "line": 8,
845
+ "character": 3
846
+ },
847
+ "doc": {
848
+ "__schema": "DocSchema",
849
+ "location": {
850
+ "filePath": "pubsub-context.tsx",
851
+ "line": 4,
852
+ "character": 3
853
+ },
854
+ "raw": "/**\n * starts a connection to an iframe child.\n * Returns a destroy() function that will break the connection.\n */",
855
+ "comment": "starts a connection to an iframe child.\nReturns a destroy() function that will break the connection."
856
+ },
857
+ "signature": "(method) PubSubRegistry.connect(ref: HTMLIFrameElement): () => void",
858
+ "name": "connect",
859
+ "params": [
860
+ {
861
+ "__schema": "ParameterSchema",
862
+ "location": {
863
+ "filePath": "pubsub-context.tsx",
864
+ "line": 8,
865
+ "character": 11
866
+ },
867
+ "name": "ref",
868
+ "type": {
869
+ "__schema": "TypeRefSchema",
870
+ "location": {
871
+ "filePath": "pubsub-context.tsx",
872
+ "line": 8,
873
+ "character": 16
874
+ },
875
+ "name": "HTMLIFrameElement"
876
+ },
877
+ "isOptional": false,
878
+ "isSpread": false
879
+ }
880
+ ],
881
+ "returnType": {
882
+ "__schema": "FunctionLikeSchema",
883
+ "location": {
884
+ "filePath": "pubsub-context.tsx",
885
+ "line": 8,
886
+ "character": 36
887
+ },
888
+ "signature": "(): void",
889
+ "name": "",
890
+ "params": [],
891
+ "returnType": {
892
+ "__schema": "KeywordTypeSchema",
893
+ "location": {
894
+ "filePath": "pubsub-context.tsx",
895
+ "line": 8,
896
+ "character": 42
897
+ },
898
+ "name": "void"
899
+ },
900
+ "modifiers": []
901
+ },
902
+ "modifiers": []
903
+ }
904
+ ],
905
+ "extendsNodes": []
906
+ },
907
+ {
908
+ "__schema": "FunctionLikeSchema",
909
+ "location": {
910
+ "filePath": "pubsub-context.tsx",
911
+ "line": 21,
912
+ "character": 1
913
+ },
914
+ "signature": "function usePubSub(): PubSubRegistry | undefined",
915
+ "name": "usePubSub",
916
+ "params": [],
917
+ "returnType": {
918
+ "__schema": "InferenceTypeSchema",
919
+ "location": {
920
+ "filePath": "pubsub-context.tsx",
921
+ "line": 21,
922
+ "character": 1
923
+ },
924
+ "type": "PubSubRegistry | undefined"
925
+ },
926
+ "modifiers": [
927
+ "export"
928
+ ]
929
+ },
930
+ {
931
+ "__schema": "FunctionLikeSchema",
932
+ "location": {
933
+ "filePath": "pubsub-context.tsx",
934
+ "line": 25,
935
+ "character": 1
936
+ },
937
+ "signature": "function usePubSubIframe(ref?: RefObject<HTMLIFrameElement>): void",
938
+ "name": "usePubSubIframe",
939
+ "params": [
940
+ {
941
+ "__schema": "ParameterSchema",
942
+ "location": {
943
+ "filePath": "pubsub-context.tsx",
944
+ "line": 25,
945
+ "character": 33
946
+ },
947
+ "name": "ref",
948
+ "type": {
949
+ "__schema": "TypeRefSchema",
950
+ "location": {
951
+ "filePath": "pubsub-context.tsx",
952
+ "line": 25,
953
+ "character": 39
954
+ },
955
+ "name": "RefObject",
956
+ "typeArgs": [
957
+ {
958
+ "__schema": "TypeRefSchema",
959
+ "location": {
960
+ "filePath": "pubsub-context.tsx",
961
+ "line": 25,
962
+ "character": 49
963
+ },
964
+ "name": "HTMLIFrameElement"
965
+ }
966
+ ]
967
+ },
968
+ "isOptional": true,
969
+ "isSpread": false
970
+ }
971
+ ],
972
+ "returnType": {
973
+ "__schema": "InferenceTypeSchema",
974
+ "location": {
975
+ "filePath": "pubsub-context.tsx",
976
+ "line": 25,
977
+ "character": 1
978
+ },
979
+ "type": "void"
980
+ },
981
+ "modifiers": [
982
+ "export"
983
+ ]
984
+ }
985
+ ],
986
+ "internals": []
987
+ },
988
+ "internals": [
989
+ {
990
+ "__schema": "ModuleSchema",
991
+ "location": {
992
+ "filePath": "pubsub.aspect.ts",
993
+ "line": 1,
994
+ "character": 1
995
+ },
996
+ "exports": [
997
+ {
998
+ "__schema": "VariableLikeSchema",
999
+ "location": {
1000
+ "filePath": "pubsub.aspect.ts",
1001
+ "line": 3,
1002
+ "character": 14
1003
+ },
1004
+ "signature": "const PubsubAspect: Aspect",
1005
+ "name": "PubsubAspect",
1006
+ "type": {
1007
+ "__schema": "TypeRefSchema",
1008
+ "location": {
1009
+ "filePath": "pubsub.aspect.ts",
1010
+ "line": 3,
1011
+ "character": 14
1012
+ },
1013
+ "name": "Aspect",
1014
+ "componentId": {
1015
+ "scope": "teambit.harmony",
1016
+ "name": "harmony",
1017
+ "version": "0.4.6"
1018
+ }
1019
+ },
1020
+ "isOptional": false,
1021
+ "defaultValue": "Aspect.create({\n id: 'teambit.harmony/pubsub',\n dependencies: [],\n})"
1022
+ },
1023
+ {
1024
+ "__schema": "UnImplementedSchema",
1025
+ "location": {
1026
+ "filePath": "pubsub.aspect.ts",
1027
+ "line": 8,
1028
+ "character": 16
1029
+ },
1030
+ "name": "PubsubAspect",
1031
+ "type": "Identifier"
1032
+ }
1033
+ ],
1034
+ "internals": []
1035
+ },
1036
+ {
1037
+ "__schema": "ModuleSchema",
1038
+ "location": {
1039
+ "filePath": "pubsub.preview.runtime.ts",
1040
+ "line": 5,
1041
+ "character": 1
1042
+ },
1043
+ "exports": [
1044
+ {
1045
+ "__schema": "ClassSchema",
1046
+ "location": {
1047
+ "filePath": "pubsub.preview.runtime.ts",
1048
+ "line": 20,
1049
+ "character": 1
1050
+ },
1051
+ "signature": "class PubsubPreview",
1052
+ "name": "PubsubPreview",
1053
+ "members": [
1054
+ {
1055
+ "__schema": "FunctionLikeSchema",
1056
+ "location": {
1057
+ "filePath": "pubsub.preview.runtime.ts",
1058
+ "line": 24,
1059
+ "character": 3
1060
+ },
1061
+ "signature": "(method) PubsubPreview.sub(topic: string, callback: Callback): () => void",
1062
+ "name": "sub",
1063
+ "params": [
1064
+ {
1065
+ "__schema": "ParameterSchema",
1066
+ "location": {
1067
+ "filePath": "pubsub.preview.runtime.ts",
1068
+ "line": 24,
1069
+ "character": 14
1070
+ },
1071
+ "name": "topic",
1072
+ "type": {
1073
+ "__schema": "KeywordTypeSchema",
1074
+ "location": {
1075
+ "filePath": "pubsub.preview.runtime.ts",
1076
+ "line": 24,
1077
+ "character": 21
1078
+ },
1079
+ "name": "string"
1080
+ },
1081
+ "isOptional": false,
1082
+ "isSpread": false
1083
+ },
1084
+ {
1085
+ "__schema": "ParameterSchema",
1086
+ "location": {
1087
+ "filePath": "pubsub.preview.runtime.ts",
1088
+ "line": 24,
1089
+ "character": 29
1090
+ },
1091
+ "name": "callback",
1092
+ "type": {
1093
+ "__schema": "TypeRefSchema",
1094
+ "location": {
1095
+ "filePath": "pubsub.preview.runtime.ts",
1096
+ "line": 24,
1097
+ "character": 39
1098
+ },
1099
+ "name": "Callback"
1100
+ },
1101
+ "isOptional": false,
1102
+ "isSpread": false
1103
+ }
1104
+ ],
1105
+ "returnType": {
1106
+ "__schema": "InferenceTypeSchema",
1107
+ "location": {
1108
+ "filePath": "pubsub.preview.runtime.ts",
1109
+ "line": 24,
1110
+ "character": 3
1111
+ },
1112
+ "type": "() => void"
1113
+ },
1114
+ "modifiers": [
1115
+ "public"
1116
+ ]
1117
+ },
1118
+ {
1119
+ "__schema": "FunctionLikeSchema",
1120
+ "location": {
1121
+ "filePath": "pubsub.preview.runtime.ts",
1122
+ "line": 34,
1123
+ "character": 3
1124
+ },
1125
+ "signature": "(method) PubsubPreview.pub(topic: string, event: BitBaseEvent<any>): void",
1126
+ "name": "pub",
1127
+ "params": [
1128
+ {
1129
+ "__schema": "ParameterSchema",
1130
+ "location": {
1131
+ "filePath": "pubsub.preview.runtime.ts",
1132
+ "line": 34,
1133
+ "character": 14
1134
+ },
1135
+ "name": "topic",
1136
+ "type": {
1137
+ "__schema": "KeywordTypeSchema",
1138
+ "location": {
1139
+ "filePath": "pubsub.preview.runtime.ts",
1140
+ "line": 34,
1141
+ "character": 21
1142
+ },
1143
+ "name": "string"
1144
+ },
1145
+ "isOptional": false,
1146
+ "isSpread": false
1147
+ },
1148
+ {
1149
+ "__schema": "ParameterSchema",
1150
+ "location": {
1151
+ "filePath": "pubsub.preview.runtime.ts",
1152
+ "line": 34,
1153
+ "character": 29
1154
+ },
1155
+ "name": "event",
1156
+ "type": {
1157
+ "__schema": "TypeRefSchema",
1158
+ "location": {
1159
+ "filePath": "pubsub.preview.runtime.ts",
1160
+ "line": 34,
1161
+ "character": 36
1162
+ },
1163
+ "name": "BitBaseEvent",
1164
+ "typeArgs": [
1165
+ {
1166
+ "__schema": "KeywordTypeSchema",
1167
+ "location": {
1168
+ "filePath": "pubsub.preview.runtime.ts",
1169
+ "line": 34,
1170
+ "character": 49
1171
+ },
1172
+ "name": "any"
1173
+ }
1174
+ ]
1175
+ },
1176
+ "isOptional": false,
1177
+ "isSpread": false
1178
+ }
1179
+ ],
1180
+ "returnType": {
1181
+ "__schema": "InferenceTypeSchema",
1182
+ "location": {
1183
+ "filePath": "pubsub.preview.runtime.ts",
1184
+ "line": 34,
1185
+ "character": 3
1186
+ },
1187
+ "type": "void"
1188
+ },
1189
+ "modifiers": [
1190
+ "public"
1191
+ ]
1192
+ },
1193
+ {
1194
+ "__schema": "VariableLikeSchema",
1195
+ "location": {
1196
+ "filePath": "pubsub.preview.runtime.ts",
1197
+ "line": 71,
1198
+ "character": 3
1199
+ },
1200
+ "signature": "(property) PubsubPreview.runtime: RuntimeDefinition",
1201
+ "name": "runtime",
1202
+ "type": {
1203
+ "__schema": "InferenceTypeSchema",
1204
+ "location": {
1205
+ "filePath": "pubsub.preview.runtime.ts",
1206
+ "line": 71,
1207
+ "character": 3
1208
+ },
1209
+ "type": "RuntimeDefinition"
1210
+ },
1211
+ "isOptional": true,
1212
+ "defaultValue": "PreviewRuntime"
1213
+ },
1214
+ {
1215
+ "__schema": "FunctionLikeSchema",
1216
+ "location": {
1217
+ "filePath": "pubsub.preview.runtime.ts",
1218
+ "line": 73,
1219
+ "character": 3
1220
+ },
1221
+ "signature": "(method) PubsubPreview.provider(): Promise<PubsubPreview>",
1222
+ "name": "provider",
1223
+ "params": [],
1224
+ "returnType": {
1225
+ "__schema": "TypeRefSchema",
1226
+ "location": {
1227
+ "filePath": "pubsub.preview.runtime.ts",
1228
+ "line": 73,
1229
+ "character": 28
1230
+ },
1231
+ "name": "Promise",
1232
+ "typeArgs": [
1233
+ {
1234
+ "__schema": "TypeRefSchema",
1235
+ "location": {
1236
+ "filePath": "pubsub.preview.runtime.ts",
1237
+ "line": 73,
1238
+ "character": 36
1239
+ },
1240
+ "name": "PubsubPreview"
1241
+ }
1242
+ ]
1243
+ },
1244
+ "modifiers": [
1245
+ "static",
1246
+ "async"
1247
+ ]
1248
+ }
1249
+ ],
1250
+ "extendsNodes": [],
1251
+ "implementNodes": []
1252
+ }
1253
+ ],
1254
+ "internals": [
1255
+ {
1256
+ "__schema": "TypeSchema",
1257
+ "location": {
1258
+ "filePath": "pubsub.preview.runtime.ts",
1259
+ "line": 16,
1260
+ "character": 1
1261
+ },
1262
+ "signature": "type ParentMethods = {\n pub: (topic: string, event: BitBaseEvent<any>) => Promise<any>;\n}",
1263
+ "name": "ParentMethods",
1264
+ "type": {
1265
+ "__schema": "TypeLiteralSchema",
1266
+ "location": {
1267
+ "filePath": "pubsub.preview.runtime.ts",
1268
+ "line": 16,
1269
+ "character": 22
1270
+ },
1271
+ "members": [
1272
+ {
1273
+ "__schema": "VariableLikeSchema",
1274
+ "location": {
1275
+ "filePath": "pubsub.preview.runtime.ts",
1276
+ "line": 17,
1277
+ "character": 3
1278
+ },
1279
+ "signature": "(property) pub: (topic: string, event: BitBaseEvent<any>) => Promise<any>",
1280
+ "name": "pub",
1281
+ "type": {
1282
+ "__schema": "FunctionLikeSchema",
1283
+ "location": {
1284
+ "filePath": "pubsub.preview.runtime.ts",
1285
+ "line": 17,
1286
+ "character": 8
1287
+ },
1288
+ "signature": "(topic: string, event: BitBaseEvent<any>): Promise<any>",
1289
+ "name": "",
1290
+ "params": [
1291
+ {
1292
+ "__schema": "ParameterSchema",
1293
+ "location": {
1294
+ "filePath": "pubsub.preview.runtime.ts",
1295
+ "line": 17,
1296
+ "character": 9
1297
+ },
1298
+ "name": "topic",
1299
+ "type": {
1300
+ "__schema": "KeywordTypeSchema",
1301
+ "location": {
1302
+ "filePath": "pubsub.preview.runtime.ts",
1303
+ "line": 17,
1304
+ "character": 16
1305
+ },
1306
+ "name": "string"
1307
+ },
1308
+ "isOptional": false,
1309
+ "isSpread": false
1310
+ },
1311
+ {
1312
+ "__schema": "ParameterSchema",
1313
+ "location": {
1314
+ "filePath": "pubsub.preview.runtime.ts",
1315
+ "line": 17,
1316
+ "character": 24
1317
+ },
1318
+ "name": "event",
1319
+ "type": {
1320
+ "__schema": "TypeRefSchema",
1321
+ "location": {
1322
+ "filePath": "pubsub.preview.runtime.ts",
1323
+ "line": 17,
1324
+ "character": 31
1325
+ },
1326
+ "name": "BitBaseEvent",
1327
+ "typeArgs": [
1328
+ {
1329
+ "__schema": "KeywordTypeSchema",
1330
+ "location": {
1331
+ "filePath": "pubsub.preview.runtime.ts",
1332
+ "line": 17,
1333
+ "character": 44
1334
+ },
1335
+ "name": "any"
1336
+ }
1337
+ ]
1338
+ },
1339
+ "isOptional": false,
1340
+ "isSpread": false
1341
+ }
1342
+ ],
1343
+ "returnType": {
1344
+ "__schema": "TypeRefSchema",
1345
+ "location": {
1346
+ "filePath": "pubsub.preview.runtime.ts",
1347
+ "line": 17,
1348
+ "character": 53
1349
+ },
1350
+ "name": "Promise",
1351
+ "typeArgs": [
1352
+ {
1353
+ "__schema": "KeywordTypeSchema",
1354
+ "location": {
1355
+ "filePath": "pubsub.preview.runtime.ts",
1356
+ "line": 17,
1357
+ "character": 61
1358
+ },
1359
+ "name": "any"
1360
+ }
1361
+ ]
1362
+ },
1363
+ "modifiers": []
1364
+ },
1365
+ "isOptional": false
1366
+ }
1367
+ ]
1368
+ }
1369
+ },
1370
+ {
1371
+ "__schema": "UnImplementedSchema",
1372
+ "location": {
1373
+ "filePath": "pubsub.preview.runtime.ts",
1374
+ "line": 90,
1375
+ "character": 1
1376
+ },
1377
+ "name": "PubsubAspect.addRuntime(PubsubPreview);",
1378
+ "type": "ExpressionStatement"
1379
+ }
1380
+ ]
1381
+ },
1382
+ {
1383
+ "__schema": "ModuleSchema",
1384
+ "location": {
1385
+ "filePath": "pubsub.ui.runtime.ts",
1386
+ "line": 1,
1387
+ "character": 1
1388
+ },
1389
+ "exports": [
1390
+ {
1391
+ "__schema": "ClassSchema",
1392
+ "location": {
1393
+ "filePath": "pubsub.ui.runtime.ts",
1394
+ "line": 18,
1395
+ "character": 1
1396
+ },
1397
+ "signature": "class PubsubUI",
1398
+ "name": "PubsubUI",
1399
+ "members": [
1400
+ {
1401
+ "__schema": "VariableLikeSchema",
1402
+ "location": {
1403
+ "filePath": "pubsub.ui.runtime.ts",
1404
+ "line": 25,
1405
+ "character": 3
1406
+ },
1407
+ "doc": {
1408
+ "__schema": "DocSchema",
1409
+ "location": {
1410
+ "filePath": "pubsub.ui.runtime.ts",
1411
+ "line": 22,
1412
+ "character": 3
1413
+ },
1414
+ "raw": "/**\n * subscribe to events\n */",
1415
+ "comment": "subscribe to events"
1416
+ },
1417
+ "signature": "(property) PubsubUI.sub: (topic: string, callback: Callback) => () => void",
1418
+ "name": "sub",
1419
+ "type": {
1420
+ "__schema": "InferenceTypeSchema",
1421
+ "location": {
1422
+ "filePath": "pubsub.ui.runtime.ts",
1423
+ "line": 25,
1424
+ "character": 3
1425
+ },
1426
+ "type": "(topic: string, callback: Callback) => () => void"
1427
+ },
1428
+ "isOptional": true,
1429
+ "defaultValue": "(topic: string, callback: Callback) => {\n const events = this.events;\n events.on(topic, callback);\n\n const unSub = () => {\n events.off(topic, callback);\n };\n\n return unSub;\n }"
1430
+ },
1431
+ {
1432
+ "__schema": "VariableLikeSchema",
1433
+ "location": {
1434
+ "filePath": "pubsub.ui.runtime.ts",
1435
+ "line": 39,
1436
+ "character": 3
1437
+ },
1438
+ "doc": {
1439
+ "__schema": "DocSchema",
1440
+ "location": {
1441
+ "filePath": "pubsub.ui.runtime.ts",
1442
+ "line": 36,
1443
+ "character": 3
1444
+ },
1445
+ "raw": "/**\n * publish event to all subscribers, including nested iframes.\n */",
1446
+ "comment": "publish event to all subscribers, including nested iframes."
1447
+ },
1448
+ "signature": "(property) PubsubUI.pub: (topic: string, event: BitBaseEvent<any>, { propagate }?: PubOptions) => void",
1449
+ "name": "pub",
1450
+ "type": {
1451
+ "__schema": "InferenceTypeSchema",
1452
+ "location": {
1453
+ "filePath": "pubsub.ui.runtime.ts",
1454
+ "line": 39,
1455
+ "character": 3
1456
+ },
1457
+ "type": "(topic: string, event: BitBaseEvent<any>, { propagate }?: PubOptions) => void"
1458
+ },
1459
+ "isOptional": true,
1460
+ "defaultValue": "(topic: string, event: BitBaseEvent<any>, { propagate }: PubOptions = {}) => {\n this.emitEvent(topic, event);\n\n // opt-in to forward to iframe, as we would not want 'private' messages automatically passing to iframe\n if (propagate) {\n this.pubToChild(topic, event);\n }\n }"
1461
+ },
1462
+ {
1463
+ "__schema": "FunctionLikeSchema",
1464
+ "location": {
1465
+ "filePath": "pubsub.ui.runtime.ts",
1466
+ "line": 69,
1467
+ "character": 3
1468
+ },
1469
+ "signature": "(method) PubsubUI.getPubSubContext(): ({ children }: {\n children: React.ReactNode;\n}) => React.JSX.Element",
1470
+ "name": "getPubSubContext",
1471
+ "params": [],
1472
+ "returnType": {
1473
+ "__schema": "InferenceTypeSchema",
1474
+ "location": {
1475
+ "filePath": "pubsub.ui.runtime.ts",
1476
+ "line": 69,
1477
+ "character": 3
1478
+ },
1479
+ "type": "({ children }: {\n children: React.ReactNode;\n}) => React.JSX.Element"
1480
+ },
1481
+ "modifiers": []
1482
+ },
1483
+ {
1484
+ "__schema": "VariableLikeSchema",
1485
+ "location": {
1486
+ "filePath": "pubsub.ui.runtime.ts",
1487
+ "line": 89,
1488
+ "character": 3
1489
+ },
1490
+ "signature": "(property) PubsubUI.runtime: RuntimeDefinition",
1491
+ "name": "runtime",
1492
+ "type": {
1493
+ "__schema": "InferenceTypeSchema",
1494
+ "location": {
1495
+ "filePath": "pubsub.ui.runtime.ts",
1496
+ "line": 89,
1497
+ "character": 3
1498
+ },
1499
+ "type": "RuntimeDefinition"
1500
+ },
1501
+ "isOptional": true,
1502
+ "defaultValue": "UIRuntime"
1503
+ },
1504
+ {
1505
+ "__schema": "VariableLikeSchema",
1506
+ "location": {
1507
+ "filePath": "pubsub.ui.runtime.ts",
1508
+ "line": 90,
1509
+ "character": 3
1510
+ },
1511
+ "signature": "(property) PubsubUI.dependencies: Aspect[]",
1512
+ "name": "dependencies",
1513
+ "type": {
1514
+ "__schema": "InferenceTypeSchema",
1515
+ "location": {
1516
+ "filePath": "pubsub.ui.runtime.ts",
1517
+ "line": 90,
1518
+ "character": 3
1519
+ },
1520
+ "type": "Aspect[]"
1521
+ },
1522
+ "isOptional": true,
1523
+ "defaultValue": "[UIAspect]"
1524
+ },
1525
+ {
1526
+ "__schema": "FunctionLikeSchema",
1527
+ "location": {
1528
+ "filePath": "pubsub.ui.runtime.ts",
1529
+ "line": 92,
1530
+ "character": 3
1531
+ },
1532
+ "signature": "(method) PubsubUI.provider([uiUI]: [UiUI]): Promise<PubsubUI>",
1533
+ "name": "provider",
1534
+ "params": [
1535
+ {
1536
+ "__schema": "ParameterSchema",
1537
+ "location": {
1538
+ "filePath": "pubsub.ui.runtime.ts",
1539
+ "line": 92,
1540
+ "character": 25
1541
+ },
1542
+ "name": "[ uiUI ]",
1543
+ "type": {
1544
+ "__schema": "TupleTypeSchema",
1545
+ "location": {
1546
+ "filePath": "pubsub.ui.runtime.ts",
1547
+ "line": 92,
1548
+ "character": 33
1549
+ },
1550
+ "elements": [
1551
+ {
1552
+ "__schema": "TypeRefSchema",
1553
+ "location": {
1554
+ "filePath": "pubsub.ui.runtime.ts",
1555
+ "line": 92,
1556
+ "character": 34
1557
+ },
1558
+ "name": "UiUI"
1559
+ }
1560
+ ]
1561
+ },
1562
+ "isOptional": false,
1563
+ "isSpread": false
1564
+ }
1565
+ ],
1566
+ "returnType": {
1567
+ "__schema": "InferenceTypeSchema",
1568
+ "location": {
1569
+ "filePath": "pubsub.ui.runtime.ts",
1570
+ "line": 92,
1571
+ "character": 3
1572
+ },
1573
+ "type": "Promise<PubsubUI>"
1574
+ },
1575
+ "modifiers": [
1576
+ "static",
1577
+ "async"
1578
+ ]
1579
+ }
1580
+ ],
1581
+ "extendsNodes": [],
1582
+ "implementNodes": []
1583
+ }
1584
+ ],
1585
+ "internals": [
1586
+ {
1587
+ "__schema": "TypeSchema",
1588
+ "location": {
1589
+ "filePath": "pubsub.ui.runtime.ts",
1590
+ "line": 10,
1591
+ "character": 1
1592
+ },
1593
+ "signature": "type PubOptions = {\n propagate?: boolean | undefined;\n}",
1594
+ "name": "PubOptions",
1595
+ "type": {
1596
+ "__schema": "TypeLiteralSchema",
1597
+ "location": {
1598
+ "filePath": "pubsub.ui.runtime.ts",
1599
+ "line": 10,
1600
+ "character": 19
1601
+ },
1602
+ "members": [
1603
+ {
1604
+ "__schema": "VariableLikeSchema",
1605
+ "location": {
1606
+ "filePath": "pubsub.ui.runtime.ts",
1607
+ "line": 12,
1608
+ "character": 3
1609
+ },
1610
+ "doc": {
1611
+ "__schema": "DocSchema",
1612
+ "location": {
1613
+ "filePath": "pubsub.ui.runtime.ts",
1614
+ "line": 11,
1615
+ "character": 3
1616
+ },
1617
+ "raw": "/** forward the event to adjacent windows (including the preview iframe) */",
1618
+ "comment": "forward the event to adjacent windows (including the preview iframe)"
1619
+ },
1620
+ "signature": "(property) propagate?: boolean | undefined",
1621
+ "name": "propagate",
1622
+ "type": {
1623
+ "__schema": "KeywordTypeSchema",
1624
+ "location": {
1625
+ "filePath": "pubsub.ui.runtime.ts",
1626
+ "line": 12,
1627
+ "character": 15
1628
+ },
1629
+ "name": "boolean"
1630
+ },
1631
+ "isOptional": true
1632
+ }
1633
+ ]
1634
+ }
1635
+ },
1636
+ {
1637
+ "__schema": "TypeSchema",
1638
+ "location": {
1639
+ "filePath": "pubsub.ui.runtime.ts",
1640
+ "line": 15,
1641
+ "character": 1
1642
+ },
1643
+ "signature": "type ChildMethods = {\n pub: (topic: string, event: BitBaseEvent<any>) => any;\n}",
1644
+ "name": "ChildMethods",
1645
+ "type": {
1646
+ "__schema": "TypeLiteralSchema",
1647
+ "location": {
1648
+ "filePath": "pubsub.ui.runtime.ts",
1649
+ "line": 15,
1650
+ "character": 21
1651
+ },
1652
+ "members": [
1653
+ {
1654
+ "__schema": "VariableLikeSchema",
1655
+ "location": {
1656
+ "filePath": "pubsub.ui.runtime.ts",
1657
+ "line": 16,
1658
+ "character": 3
1659
+ },
1660
+ "signature": "(property) pub: (topic: string, event: BitBaseEvent<any>) => any",
1661
+ "name": "pub",
1662
+ "type": {
1663
+ "__schema": "FunctionLikeSchema",
1664
+ "location": {
1665
+ "filePath": "pubsub.ui.runtime.ts",
1666
+ "line": 16,
1667
+ "character": 8
1668
+ },
1669
+ "signature": "(topic: string, event: BitBaseEvent<any>): any",
1670
+ "name": "",
1671
+ "params": [
1672
+ {
1673
+ "__schema": "ParameterSchema",
1674
+ "location": {
1675
+ "filePath": "pubsub.ui.runtime.ts",
1676
+ "line": 16,
1677
+ "character": 9
1678
+ },
1679
+ "name": "topic",
1680
+ "type": {
1681
+ "__schema": "KeywordTypeSchema",
1682
+ "location": {
1683
+ "filePath": "pubsub.ui.runtime.ts",
1684
+ "line": 16,
1685
+ "character": 16
1686
+ },
1687
+ "name": "string"
1688
+ },
1689
+ "isOptional": false,
1690
+ "isSpread": false
1691
+ },
1692
+ {
1693
+ "__schema": "ParameterSchema",
1694
+ "location": {
1695
+ "filePath": "pubsub.ui.runtime.ts",
1696
+ "line": 16,
1697
+ "character": 24
1698
+ },
1699
+ "name": "event",
1700
+ "type": {
1701
+ "__schema": "TypeRefSchema",
1702
+ "location": {
1703
+ "filePath": "pubsub.ui.runtime.ts",
1704
+ "line": 16,
1705
+ "character": 31
1706
+ },
1707
+ "name": "BitBaseEvent",
1708
+ "typeArgs": [
1709
+ {
1710
+ "__schema": "KeywordTypeSchema",
1711
+ "location": {
1712
+ "filePath": "pubsub.ui.runtime.ts",
1713
+ "line": 16,
1714
+ "character": 44
1715
+ },
1716
+ "name": "any"
1717
+ }
1718
+ ]
1719
+ },
1720
+ "isOptional": false,
1721
+ "isSpread": false
1722
+ }
1723
+ ],
1724
+ "returnType": {
1725
+ "__schema": "KeywordTypeSchema",
1726
+ "location": {
1727
+ "filePath": "pubsub.ui.runtime.ts",
1728
+ "line": 16,
1729
+ "character": 53
1730
+ },
1731
+ "name": "any"
1732
+ },
1733
+ "modifiers": []
1734
+ },
1735
+ "isOptional": false
1736
+ }
1737
+ ]
1738
+ }
1739
+ },
1740
+ {
1741
+ "__schema": "UnImplementedSchema",
1742
+ "location": {
1743
+ "filePath": "pubsub.ui.runtime.ts",
1744
+ "line": 103,
1745
+ "character": 1
1746
+ },
1747
+ "name": "PubsubAspect.addRuntime(PubsubUI);",
1748
+ "type": "ExpressionStatement"
1749
+ }
1750
+ ]
1751
+ },
1752
+ {
1753
+ "__schema": "ModuleSchema",
1754
+ "location": {
1755
+ "filePath": "pubsub-context.tsx",
1756
+ "line": 1,
1757
+ "character": 1
1758
+ },
1759
+ "exports": [
1760
+ {
1761
+ "__schema": "InterfaceSchema",
1762
+ "location": {
1763
+ "filePath": "pubsub-context.tsx",
1764
+ "line": 3,
1765
+ "character": 1
1766
+ },
1767
+ "signature": "interface PubSubRegistry",
1768
+ "name": "PubSubRegistry",
1769
+ "members": [
1770
+ {
1771
+ "__schema": "FunctionLikeSchema",
1772
+ "location": {
1773
+ "filePath": "pubsub-context.tsx",
1774
+ "line": 8,
1775
+ "character": 3
1776
+ },
1777
+ "doc": {
1778
+ "__schema": "DocSchema",
1779
+ "location": {
1780
+ "filePath": "pubsub-context.tsx",
1781
+ "line": 4,
1782
+ "character": 3
1783
+ },
1784
+ "raw": "/**\n * starts a connection to an iframe child.\n * Returns a destroy() function that will break the connection.\n */",
1785
+ "comment": "starts a connection to an iframe child.\nReturns a destroy() function that will break the connection."
1786
+ },
1787
+ "signature": "(method) PubSubRegistry.connect(ref: HTMLIFrameElement): () => void",
1788
+ "name": "connect",
1789
+ "params": [
1790
+ {
1791
+ "__schema": "ParameterSchema",
1792
+ "location": {
1793
+ "filePath": "pubsub-context.tsx",
1794
+ "line": 8,
1795
+ "character": 11
1796
+ },
1797
+ "name": "ref",
1798
+ "type": {
1799
+ "__schema": "TypeRefSchema",
1800
+ "location": {
1801
+ "filePath": "pubsub-context.tsx",
1802
+ "line": 8,
1803
+ "character": 16
1804
+ },
1805
+ "name": "HTMLIFrameElement"
1806
+ },
1807
+ "isOptional": false,
1808
+ "isSpread": false
1809
+ }
1810
+ ],
1811
+ "returnType": {
1812
+ "__schema": "FunctionLikeSchema",
1813
+ "location": {
1814
+ "filePath": "pubsub-context.tsx",
1815
+ "line": 8,
1816
+ "character": 36
1817
+ },
1818
+ "signature": "(): void",
1819
+ "name": "",
1820
+ "params": [],
1821
+ "returnType": {
1822
+ "__schema": "KeywordTypeSchema",
1823
+ "location": {
1824
+ "filePath": "pubsub-context.tsx",
1825
+ "line": 8,
1826
+ "character": 42
1827
+ },
1828
+ "name": "void"
1829
+ },
1830
+ "modifiers": []
1831
+ },
1832
+ "modifiers": []
1833
+ }
1834
+ ],
1835
+ "extendsNodes": []
1836
+ },
1837
+ {
1838
+ "__schema": "VariableLikeSchema",
1839
+ "location": {
1840
+ "filePath": "pubsub-context.tsx",
1841
+ "line": 11,
1842
+ "character": 14
1843
+ },
1844
+ "signature": "const pubsubRegistry: React.Context<PubSubRegistry | undefined>",
1845
+ "name": "pubsubRegistry",
1846
+ "type": {
1847
+ "__schema": "InferenceTypeSchema",
1848
+ "location": {
1849
+ "filePath": "pubsub-context.tsx",
1850
+ "line": 11,
1851
+ "character": 14
1852
+ },
1853
+ "type": "React.Context<PubSubRegistry | undefined>"
1854
+ },
1855
+ "isOptional": false,
1856
+ "defaultValue": "createContext<PubSubRegistry | undefined>(undefined)"
1857
+ },
1858
+ {
1859
+ "__schema": "FunctionLikeSchema",
1860
+ "location": {
1861
+ "filePath": "pubsub-context.tsx",
1862
+ "line": 13,
1863
+ "character": 1
1864
+ },
1865
+ "signature": "function createProvider(pubSubContext: PubSubRegistry): ({ children }: {\n children: ReactNode;\n}) => React.JSX.Element",
1866
+ "name": "createProvider",
1867
+ "params": [
1868
+ {
1869
+ "__schema": "ParameterSchema",
1870
+ "location": {
1871
+ "filePath": "pubsub-context.tsx",
1872
+ "line": 13,
1873
+ "character": 32
1874
+ },
1875
+ "name": "pubSubContext",
1876
+ "type": {
1877
+ "__schema": "TypeRefSchema",
1878
+ "location": {
1879
+ "filePath": "pubsub-context.tsx",
1880
+ "line": 13,
1881
+ "character": 47
1882
+ },
1883
+ "name": "PubSubRegistry"
1884
+ },
1885
+ "isOptional": false,
1886
+ "isSpread": false
1887
+ }
1888
+ ],
1889
+ "returnType": {
1890
+ "__schema": "InferenceTypeSchema",
1891
+ "location": {
1892
+ "filePath": "pubsub-context.tsx",
1893
+ "line": 13,
1894
+ "character": 1
1895
+ },
1896
+ "type": "({ children }: {\n children: ReactNode;\n}) => React.JSX.Element"
1897
+ },
1898
+ "modifiers": [
1899
+ "export"
1900
+ ]
1901
+ },
1902
+ {
1903
+ "__schema": "FunctionLikeSchema",
1904
+ "location": {
1905
+ "filePath": "pubsub-context.tsx",
1906
+ "line": 21,
1907
+ "character": 1
1908
+ },
1909
+ "signature": "function usePubSub(): PubSubRegistry | undefined",
1910
+ "name": "usePubSub",
1911
+ "params": [],
1912
+ "returnType": {
1913
+ "__schema": "InferenceTypeSchema",
1914
+ "location": {
1915
+ "filePath": "pubsub-context.tsx",
1916
+ "line": 21,
1917
+ "character": 1
1918
+ },
1919
+ "type": "PubSubRegistry | undefined"
1920
+ },
1921
+ "modifiers": [
1922
+ "export"
1923
+ ]
1924
+ },
1925
+ {
1926
+ "__schema": "FunctionLikeSchema",
1927
+ "location": {
1928
+ "filePath": "pubsub-context.tsx",
1929
+ "line": 25,
1930
+ "character": 1
1931
+ },
1932
+ "signature": "function usePubSubIframe(ref?: RefObject<HTMLIFrameElement>): void",
1933
+ "name": "usePubSubIframe",
1934
+ "params": [
1935
+ {
1936
+ "__schema": "ParameterSchema",
1937
+ "location": {
1938
+ "filePath": "pubsub-context.tsx",
1939
+ "line": 25,
1940
+ "character": 33
1941
+ },
1942
+ "name": "ref",
1943
+ "type": {
1944
+ "__schema": "TypeRefSchema",
1945
+ "location": {
1946
+ "filePath": "pubsub-context.tsx",
1947
+ "line": 25,
1948
+ "character": 39
1949
+ },
1950
+ "name": "RefObject",
1951
+ "typeArgs": [
1952
+ {
1953
+ "__schema": "TypeRefSchema",
1954
+ "location": {
1955
+ "filePath": "pubsub-context.tsx",
1956
+ "line": 25,
1957
+ "character": 49
1958
+ },
1959
+ "name": "HTMLIFrameElement"
1960
+ }
1961
+ ]
1962
+ },
1963
+ "isOptional": true,
1964
+ "isSpread": false
1965
+ }
1966
+ ],
1967
+ "returnType": {
1968
+ "__schema": "InferenceTypeSchema",
1969
+ "location": {
1970
+ "filePath": "pubsub-context.tsx",
1971
+ "line": 25,
1972
+ "character": 1
1973
+ },
1974
+ "type": "void"
1975
+ },
1976
+ "modifiers": [
1977
+ "export"
1978
+ ]
1979
+ }
1980
+ ],
1981
+ "internals": []
1982
+ }
1983
+ ],
1984
+ "componentId": {
1985
+ "scope": "teambit.harmony",
1986
+ "name": "pubsub",
1987
+ "version": "1.0.159"
1988
+ },
1989
+ "taggedModuleExports": []
1990
+ }