@teambit/pubsub 1.0.257 → 1.0.258

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