@teambit/notifications 1.0.512 → 1.0.513

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