@teambit/notifications 1.0.512 → 1.0.514

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