@genesislcap/foundation-notifications 14.114.2 → 14.115.0

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.
Files changed (138) hide show
  1. package/README.md +83 -11
  2. package/dist/dts/alert/alert-builder.d.ts +7 -0
  3. package/dist/dts/alert/alert-builder.d.ts.map +1 -0
  4. package/dist/dts/alert/index.d.ts +2 -0
  5. package/dist/dts/alert/index.d.ts.map +1 -0
  6. package/dist/dts/banner/banner-builder-old.d.ts +40 -0
  7. package/dist/dts/banner/banner-builder-old.d.ts.map +1 -0
  8. package/dist/dts/banner/banner-builder.d.ts +3 -31
  9. package/dist/dts/banner/banner-builder.d.ts.map +1 -1
  10. package/dist/dts/banner/banner-launcher.d.ts.map +1 -1
  11. package/dist/dts/banner/index.d.ts +1 -0
  12. package/dist/dts/banner/index.d.ts.map +1 -1
  13. package/dist/dts/dialog/dialog-builder-old.d.ts +40 -0
  14. package/dist/dts/dialog/dialog-builder-old.d.ts.map +1 -0
  15. package/dist/dts/dialog/dialog-builder.d.ts +3 -31
  16. package/dist/dts/dialog/dialog-builder.d.ts.map +1 -1
  17. package/dist/dts/dialog/dialog-launcher.d.ts +1 -1
  18. package/dist/dts/dialog/dialog-launcher.d.ts.map +1 -1
  19. package/dist/dts/dialog/index.d.ts +1 -0
  20. package/dist/dts/dialog/index.d.ts.map +1 -1
  21. package/dist/dts/index.d.ts +5 -4
  22. package/dist/dts/index.d.ts.map +1 -1
  23. package/dist/dts/notification-builder.d.ts +12 -0
  24. package/dist/dts/notification-builder.d.ts.map +1 -1
  25. package/dist/dts/notification-launcher.d.ts.map +1 -1
  26. package/dist/dts/notification-util.d.ts +6 -0
  27. package/dist/dts/notification-util.d.ts.map +1 -1
  28. package/dist/dts/snackbar/index.d.ts +1 -0
  29. package/dist/dts/snackbar/index.d.ts.map +1 -1
  30. package/dist/dts/snackbar/snackbar-builder-old.d.ts +39 -0
  31. package/dist/dts/snackbar/snackbar-builder-old.d.ts.map +1 -0
  32. package/dist/dts/snackbar/snackbar-builder.d.ts +3 -30
  33. package/dist/dts/snackbar/snackbar-builder.d.ts.map +1 -1
  34. package/dist/dts/snackbar/snackbar-launcher.d.ts +1 -1
  35. package/dist/dts/snackbar/snackbar-launcher.d.ts.map +1 -1
  36. package/dist/dts/toast/index.d.ts +1 -0
  37. package/dist/dts/toast/index.d.ts.map +1 -1
  38. package/dist/dts/toast/toast-builder-old.d.ts +74 -0
  39. package/dist/dts/toast/toast-builder-old.d.ts.map +1 -0
  40. package/dist/dts/toast/toast-builder.d.ts +3 -61
  41. package/dist/dts/toast/toast-builder.d.ts.map +1 -1
  42. package/dist/dts/toast/toast-launcher.d.ts.map +1 -1
  43. package/dist/dts/types.d.ts +50 -2
  44. package/dist/dts/types.d.ts.map +1 -1
  45. package/dist/esm/alert/alert-builder.js +9 -0
  46. package/dist/esm/alert/index.js +1 -0
  47. package/dist/esm/banner/banner-builder-old.js +56 -0
  48. package/dist/esm/banner/banner-builder.js +17 -43
  49. package/dist/esm/banner/banner-launcher.js +2 -1
  50. package/dist/esm/banner/index.js +1 -0
  51. package/dist/esm/dialog/dialog-builder-old.js +56 -0
  52. package/dist/esm/dialog/dialog-builder.js +21 -43
  53. package/dist/esm/dialog/dialog-launcher.js +4 -3
  54. package/dist/esm/dialog/index.js +1 -0
  55. package/dist/esm/index.js +5 -4
  56. package/dist/esm/notification-builder.js +14 -0
  57. package/dist/esm/notification-launcher.js +2 -10
  58. package/dist/esm/notification-util.js +12 -0
  59. package/dist/esm/snackbar/index.js +1 -0
  60. package/dist/esm/snackbar/snackbar-builder-old.js +55 -0
  61. package/dist/esm/snackbar/snackbar-builder.js +17 -42
  62. package/dist/esm/snackbar/snackbar-launcher.js +4 -3
  63. package/dist/esm/toast/index.js +1 -0
  64. package/dist/esm/toast/toast-builder-old.js +107 -0
  65. package/dist/esm/toast/toast-builder.js +22 -88
  66. package/dist/esm/toast/toast-launcher.js +2 -1
  67. package/dist/foundation-notifications.api.json +911 -88
  68. package/dist/foundation-notifications.d.ts +130 -4
  69. package/docs/api/foundation-notifications.alertstructure.body.md +11 -0
  70. package/docs/api/foundation-notifications.alertstructure.loglevel.md +11 -0
  71. package/docs/api/foundation-notifications.alertstructure.md +22 -0
  72. package/docs/api/foundation-notifications.alertstructure.title.md +11 -0
  73. package/docs/api/foundation-notifications.bannerbuilder.build.md +5 -0
  74. package/docs/api/foundation-notifications.bannerbuilder.md +5 -0
  75. package/docs/api/foundation-notifications.bannerbuilder.withconfirmingaction.md +5 -0
  76. package/docs/api/foundation-notifications.bannerbuilder.withdismissingaction.md +5 -0
  77. package/docs/api/foundation-notifications.bannerstructure.banner.md +11 -0
  78. package/docs/api/foundation-notifications.bannerstructure.body.md +11 -0
  79. package/docs/api/foundation-notifications.bannerstructure.loglevel.md +11 -0
  80. package/docs/api/foundation-notifications.bannerstructure.md +22 -0
  81. package/docs/api/foundation-notifications.dialogbuilder.build.md +5 -0
  82. package/docs/api/foundation-notifications.dialogbuilder.md +5 -0
  83. package/docs/api/foundation-notifications.dialogbuilder.withconfirmingaction.md +5 -0
  84. package/docs/api/foundation-notifications.dialogbuilder.withdismissingaction.md +5 -0
  85. package/docs/api/foundation-notifications.dialogstructure.body.md +11 -0
  86. package/docs/api/foundation-notifications.dialogstructure.dialog.md +11 -0
  87. package/docs/api/foundation-notifications.dialogstructure.loglevel.md +11 -0
  88. package/docs/api/foundation-notifications.dialogstructure.md +23 -0
  89. package/docs/api/foundation-notifications.dialogstructure.title.md +11 -0
  90. package/docs/api/foundation-notifications.getbannerbuilder.md +5 -0
  91. package/docs/api/foundation-notifications.getdialogbuilder.md +5 -0
  92. package/docs/api/foundation-notifications.getnotificationbuilder.md +5 -0
  93. package/docs/api/foundation-notifications.getsnackbarbuilder.md +5 -0
  94. package/docs/api/foundation-notifications.gettoastbuilder.md +5 -0
  95. package/docs/api/foundation-notifications.md +12 -1
  96. package/docs/api/foundation-notifications.notificationbuilder.build.md +5 -0
  97. package/docs/api/foundation-notifications.notificationbuilder.md +5 -0
  98. package/docs/api/foundation-notifications.notificationbuilder.withalert.md +5 -0
  99. package/docs/api/foundation-notifications.notificationbuilder.withbanner.md +5 -0
  100. package/docs/api/foundation-notifications.notificationbuilder.withbody.md +5 -0
  101. package/docs/api/foundation-notifications.notificationbuilder.withcreatedat.md +5 -0
  102. package/docs/api/foundation-notifications.notificationbuilder.withdialog.md +5 -0
  103. package/docs/api/foundation-notifications.notificationbuilder.withloglevel.md +5 -0
  104. package/docs/api/foundation-notifications.notificationbuilder.withsnackbar.md +5 -0
  105. package/docs/api/foundation-notifications.notificationbuilder.withtitle.md +5 -0
  106. package/docs/api/foundation-notifications.notificationbuilder.withtoast.md +5 -0
  107. package/docs/api/foundation-notifications.notificationstructure.md +2 -2
  108. package/docs/api/foundation-notifications.notificationstructure.title.md +1 -1
  109. package/docs/api/foundation-notifications.showloggerloglevel.md +13 -0
  110. package/docs/api/foundation-notifications.shownotificationalert.md +13 -0
  111. package/docs/api/foundation-notifications.shownotificationbanner.md +13 -0
  112. package/docs/api/foundation-notifications.shownotificationdialog.md +13 -0
  113. package/docs/api/foundation-notifications.shownotificationsnackbar.md +13 -0
  114. package/docs/api/foundation-notifications.shownotificationtoast.md +13 -0
  115. package/docs/api/foundation-notifications.snackbarbuilder.build.md +5 -0
  116. package/docs/api/foundation-notifications.snackbarbuilder.md +5 -0
  117. package/docs/api/foundation-notifications.snackbarbuilder.withconfirmingaction.md +5 -0
  118. package/docs/api/foundation-notifications.snackbarbuilder.withtype.md +5 -0
  119. package/docs/api/foundation-notifications.snackbarstructure.body.md +11 -0
  120. package/docs/api/foundation-notifications.snackbarstructure.loglevel.md +11 -0
  121. package/docs/api/foundation-notifications.snackbarstructure.md +22 -0
  122. package/docs/api/foundation-notifications.snackbarstructure.snackbar.md +11 -0
  123. package/docs/api/foundation-notifications.toastbuilder.build.md +5 -0
  124. package/docs/api/foundation-notifications.toastbuilder.md +4 -0
  125. package/docs/api/foundation-notifications.toastbuilder.withautoclose.md +5 -0
  126. package/docs/api/foundation-notifications.toastbuilder.withbuttons.md +5 -0
  127. package/docs/api/foundation-notifications.toastbuilder.withclosetimeout.md +5 -0
  128. package/docs/api/foundation-notifications.toastbuilder.withdetails.md +5 -0
  129. package/docs/api/foundation-notifications.toastbuilder.withposition.md +5 -0
  130. package/docs/api/foundation-notifications.toastbuilder.withtype.md +5 -0
  131. package/docs/api/foundation-notifications.toaststructure.body.md +11 -0
  132. package/docs/api/foundation-notifications.toaststructure.createdat.md +11 -0
  133. package/docs/api/foundation-notifications.toaststructure.loglevel.md +11 -0
  134. package/docs/api/foundation-notifications.toaststructure.md +24 -0
  135. package/docs/api/foundation-notifications.toaststructure.title.md +11 -0
  136. package/docs/api/foundation-notifications.toaststructure.toast.md +11 -0
  137. package/docs/api-report.md +113 -14
  138. package/package.json +5 -5
package/README.md CHANGED
@@ -46,17 +46,89 @@ Creating and dispatching Notification event with payload to show in Toast compon
46
46
  ```javascript
47
47
  $emit(
48
48
  NotificationEvent.NOTIFICATION_EVENT,
49
- getToastBuilder()
50
- .withTitle('Important message')
51
- .withBody('Lorem ipsum')
52
- .withToast(
53
- getToastBuilder()
54
- .withType('warning')
55
- .withAutoClose(true)
56
- .withCloseTimeout(notificationCloseTimeout)
57
- .build()
58
- )
59
- .build())
49
+ {
50
+ title: 'Important message',
51
+ body: 'Lorem ipsum',
52
+ config: {
53
+ toast: {
54
+ autoClose: true,
55
+ closeTimeout: notificationCloseTimeout,
56
+ type: 'warning',
57
+ },
58
+ },
59
+ } as NotificationStructure,
60
+ )
61
+ ```
62
+
63
+ ### Creating individual notifications of various types
64
+
65
+ To create individual notifications of various types, there are functions that will allow you to display and provide the structure.
66
+
67
+ ```javascript
68
+ showNotificationAlert({ title: 'Important message', body: 'Lorem ipsum' });
69
+ ```
70
+
71
+ ```javascript
72
+ showNotificationBanner(
73
+ {
74
+ body: 'Lorem ipsum',
75
+ banner: {
76
+ confirmingActions: [{ label: 'Confirm', action: () => console.log('Lorem ipsum') }],
77
+ dismissingAction: {
78
+ label: 'Dismiss',
79
+ action: () => console.log('Lorem ipsum'),
80
+ },
81
+ },
82
+ },
83
+ 'zero',
84
+ );
85
+ ```
86
+
87
+ ```javascript
88
+ showNotificationDialog(
89
+ {
90
+ title: 'Important message',
91
+ body: 'Lorem ipsum',
92
+ dialog: {
93
+ confirmingActions: [{ label: 'Confirm', action: () => console.log('Lorem ipsum') }],
94
+ dismissingAction: {
95
+ label: 'Dismiss',
96
+ action: () => console.log('Lorem ipsum'),
97
+ },
98
+ },
99
+ },
100
+ 'zero',
101
+ );
102
+ ```
103
+
104
+ ```javascript
105
+ showNotificationSnackbar(
106
+ {
107
+ body: 'Lorem ipsum',
108
+ snackbar: {
109
+ confirmingActions: [
110
+ { label: 'Confirm', action: () => console.log('Lorem ipsum') },
111
+ ],
112
+ type: 'error',
113
+ },
114
+ },
115
+ 'zero',
116
+ );
117
+ ```
118
+
119
+ ```javascript
120
+ showNotificationToast(
121
+ {
122
+ title: 'Important message',
123
+ body: 'Lorem ipsum',
124
+ toast: {
125
+ autoClose: true,
126
+ closeTimeout: 3000,
127
+ type: 'success',
128
+ },
129
+ },
130
+ 'zero',
131
+ );
60
132
  ```
61
133
  ## License
62
134
 
@@ -0,0 +1,7 @@
1
+ import { AlertStructure } from '../types';
2
+ /**
3
+ * Shows the notification alert
4
+ * @public
5
+ */
6
+ export declare const showNotificationAlert: (configuration: AlertStructure) => void;
7
+ //# sourceMappingURL=alert-builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert-builder.d.ts","sourceRoot":"","sources":["../../../src/alert/alert-builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,qBAAqB,kBAAmB,cAAc,KAAG,IAGrE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './alert-builder';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/alert/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { Banner, DismissingAction, ConfirmingAction } from '../types';
2
+ /**
3
+ * BannerBuilder
4
+ * @public
5
+ * @deprecated Use showNotificationBanner instead or provide a NotificationStructure object when used with an event for a notification listener.
6
+ */
7
+ export declare class BannerBuilder {
8
+ private dismissingAction;
9
+ private confirmingActions;
10
+ /**
11
+ * Add dismissing action to Banner
12
+ * @public
13
+ * @param dismissingAction - {@link DismissingAction}
14
+ * @returns
15
+ * @deprecated Use showNotificationBanner instead or provide a NotificationStructure object when used with an event for a notification listener.
16
+ */
17
+ withDismissingAction(dismissingAction: DismissingAction): BannerBuilder;
18
+ /**
19
+ * Add confirming action to Banner
20
+ * @public
21
+ * @param confirmingAction - {@link ConfirmingAction}
22
+ * @returns
23
+ * @deprecated Use showNotificationBanner instead or provide a NotificationStructure object when used with an event for a notification listener.
24
+ */
25
+ withConfirmingAction(confirmingAction: ConfirmingAction): BannerBuilder;
26
+ /**
27
+ * Build Banner
28
+ * @public
29
+ * @returns Banner
30
+ * @deprecated Use showNotificationBanner instead or provide a NotificationStructure object when used with an event for a notification listener.
31
+ */
32
+ build(): Banner;
33
+ }
34
+ /**
35
+ * Get banner builder instance
36
+ * @public
37
+ * @deprecated Use showNotificationBanner instead or provide a NotificationStructure object when used with an event for a notification listener.
38
+ */
39
+ export declare const getBannerBuilder: () => BannerBuilder;
40
+ //# sourceMappingURL=banner-builder-old.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"banner-builder-old.d.ts","sourceRoot":"","sources":["../../../src/banner/banner-builder-old.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtE;;;;GAIG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,iBAAiB,CAA0B;IAEnD;;;;;;OAMG;IACI,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,aAAa;IAK9E;;;;;;OAMG;IACI,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,aAAa;IAQ9E;;;;;OAKG;IACI,KAAK,IAAI,MAAM;CAiBvB;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,QAAO,aAAoC,CAAC"}
@@ -1,35 +1,7 @@
1
- import { Banner, DismissingAction, ConfirmingAction } from '../types';
1
+ import { BannerStructure } from '../types';
2
2
  /**
3
- * BannerBuilder
3
+ * Shows the notification banner
4
4
  * @public
5
5
  */
6
- export declare class BannerBuilder {
7
- private dismissingAction;
8
- private confirmingActions;
9
- /**
10
- * Add dismissing action to Banner
11
- * @public
12
- * @param dismissingAction - {@link DismissingAction}
13
- * @returns
14
- */
15
- withDismissingAction(dismissingAction: DismissingAction): BannerBuilder;
16
- /**
17
- * Add confirming action to Banner
18
- * @public
19
- * @param confirmingAction - {@link ConfirmingAction}
20
- * @returns
21
- */
22
- withConfirmingAction(confirmingAction: ConfirmingAction): BannerBuilder;
23
- /**
24
- * Build Banner
25
- * @public
26
- * @returns Banner
27
- */
28
- build(): Banner;
29
- }
30
- /**
31
- * Get banner builder instance
32
- * @public
33
- */
34
- export declare const getBannerBuilder: () => BannerBuilder;
6
+ export declare const showNotificationBanner: (configuration: BannerStructure, tagName: String, notificationBoundary?: HTMLElement) => void;
35
7
  //# sourceMappingURL=banner-builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"banner-builder.d.ts","sourceRoot":"","sources":["../../../src/banner/banner-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtE;;;GAGG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,iBAAiB,CAA0B;IAEnD;;;;;OAKG;IACI,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,aAAa;IAK9E;;;;;OAKG;IACI,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,aAAa;IAQ9E;;;;OAIG;IACI,KAAK,IAAI,MAAM;CAYvB;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAO,aAAoC,CAAC"}
1
+ {"version":3,"file":"banner-builder.d.ts","sourceRoot":"","sources":["../../../src/banner/banner-builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAyB,MAAM,UAAU,CAAC;AAGlE;;;GAGG;AACH,eAAO,MAAM,sBAAsB,kBAClB,eAAe,WACrB,MAAM,yBACQ,WAAW,KACjC,IAqBF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"banner-launcher.d.ts","sourceRoot":"","sources":["../../../src/banner/banner-launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAiB,MAAM,UAAU,CAAC;AAEhE;;;;;;;KAOK;AACL,eAAO,MAAM,UAAU,0BACE,qBAAqB,WACnC,MAAM,wBACO,WAAW,KAChC,IAaF,CAAC"}
1
+ {"version":3,"file":"banner-launcher.d.ts","sourceRoot":"","sources":["../../../src/banner/banner-launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAiB,MAAM,UAAU,CAAC;AAEhE;;;;;;;KAOK;AACL,eAAO,MAAM,UAAU,0BACE,qBAAqB,WACnC,MAAM,wBACO,WAAW,KAChC,IAeF,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from './banner-builder-old';
1
2
  export * from './banner-builder';
2
3
  export * from './banner-launcher';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/banner/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/banner/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { Dialog, DismissingAction, ConfirmingAction } from '../types';
2
+ /**
3
+ * DialogBuilder class
4
+ * @public
5
+ * @deprecated Use showNotificationDialog instead or provide a NotificationStructure object when used with an event for a notification listener.
6
+ */
7
+ export declare class DialogBuilder {
8
+ private dismissingAction;
9
+ private confirmingActions;
10
+ /**
11
+ * Add dismissing action to Dialog
12
+ * @public
13
+ * @param dismissingAction - {@link DismissingAction}
14
+ * @returns
15
+ * @deprecated Use showNotificationDialog instead or provide a NotificationStructure object when used with an event for a notification listener.
16
+ */
17
+ withDismissingAction(dismissingAction: DismissingAction): DialogBuilder;
18
+ /**
19
+ * Add confirming action to Dialog
20
+ * @public
21
+ * @param confirmingAction - {@link ConfirmingAction}
22
+ * @returns
23
+ * @deprecated Use showNotificationDialog instead or provide a NotificationStructure object when used with an event for a notification listener.
24
+ */
25
+ withConfirmingAction(confirmingAction: ConfirmingAction): DialogBuilder;
26
+ /**
27
+ * Build Dialog
28
+ * @public
29
+ * @returns Dialog
30
+ * @deprecated Use showNotificationDialog instead or provide a NotificationStructure object when used with an event for a notification listener.
31
+ */
32
+ build(): Dialog;
33
+ }
34
+ /**
35
+ * Returns an instance of DialogBuilder
36
+ * @public
37
+ * @deprecated Use showNotificationDialog instead or provide a NotificationStructure object when used with an event for a notification listener.
38
+ */
39
+ export declare const getDialogBuilder: () => DialogBuilder;
40
+ //# sourceMappingURL=dialog-builder-old.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog-builder-old.d.ts","sourceRoot":"","sources":["../../../src/dialog/dialog-builder-old.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtE;;;;GAIG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,iBAAiB,CAA0B;IAEnD;;;;;;OAMG;IACI,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,aAAa;IAK9E;;;;;;OAMG;IACI,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,aAAa;IAQ9E;;;;;OAKG;IACI,KAAK,IAAI,MAAM;CAgBvB;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,QAAO,aAAoC,CAAC"}
@@ -1,35 +1,7 @@
1
- import { Dialog, DismissingAction, ConfirmingAction } from '../types';
1
+ import { DialogStructure } from '../types';
2
2
  /**
3
- * DialogBuilder class
3
+ * Shows the notification dialog
4
4
  * @public
5
5
  */
6
- export declare class DialogBuilder {
7
- private dismissingAction;
8
- private confirmingActions;
9
- /**
10
- * Add dismissing action to Dialog
11
- * @public
12
- * @param dismissingAction - {@link DismissingAction}
13
- * @returns
14
- */
15
- withDismissingAction(dismissingAction: DismissingAction): DialogBuilder;
16
- /**
17
- * Add confirming action to Dialog
18
- * @public
19
- * @param confirmingAction - {@link ConfirmingAction}
20
- * @returns
21
- */
22
- withConfirmingAction(confirmingAction: ConfirmingAction): DialogBuilder;
23
- /**
24
- * Build Dialog
25
- * @public
26
- * @returns Dialog
27
- */
28
- build(): Dialog;
29
- }
30
- /**
31
- * Returns an instance of DialogBuilder
32
- * @public
33
- */
34
- export declare const getDialogBuilder: () => DialogBuilder;
6
+ export declare const showNotificationDialog: (configuration: DialogStructure, tagName: String) => void;
35
7
  //# sourceMappingURL=dialog-builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-builder.d.ts","sourceRoot":"","sources":["../../../src/dialog/dialog-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEtE;;;GAGG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,iBAAiB,CAA0B;IAEnD;;;;;OAKG;IACI,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,aAAa;IAK9E;;;;;OAKG;IACI,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,aAAa;IAQ9E;;;;OAIG;IACI,KAAK,IAAI,MAAM;CAUvB;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAO,aAAoC,CAAC"}
1
+ {"version":3,"file":"dialog-builder.d.ts","sourceRoot":"","sources":["../../../src/dialog/dialog-builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAyB,MAAM,UAAU,CAAC;AAGlE;;;GAGG;AACH,eAAO,MAAM,sBAAsB,kBAAmB,eAAe,WAAW,MAAM,KAAG,IA0BxF,CAAC"}
@@ -6,5 +6,5 @@ import { NotificationStructure } from '../types';
6
6
  * @param tagName - The tag name to create prefix for the design system provider & notification component
7
7
  * @returns
8
8
  * */
9
- export declare const showDialog: (notification: NotificationStructure, tagName: String) => void;
9
+ export declare const showDialog: (notificationStructure: NotificationStructure, tagName: String) => void;
10
10
  //# sourceMappingURL=dialog-launcher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialog-launcher.d.ts","sourceRoot":"","sources":["../../../src/dialog/dialog-launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAiB,MAAM,UAAU,CAAC;AAEhE;;;;;;KAMK;AACL,eAAO,MAAM,UAAU,iBAAkB,qBAAqB,WAAW,MAAM,KAAG,IAOjF,CAAC"}
1
+ {"version":3,"file":"dialog-launcher.d.ts","sourceRoot":"","sources":["../../../src/dialog/dialog-launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAiB,MAAM,UAAU,CAAC;AAEhE;;;;;;KAMK;AACL,eAAO,MAAM,UAAU,0BAA2B,qBAAqB,WAAW,MAAM,KAAG,IAS1F,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from './dialog-builder-old';
1
2
  export * from './dialog-builder';
2
3
  export * from './dialog-launcher';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dialog/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dialog/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
@@ -1,9 +1,10 @@
1
- export * from './types';
2
- export * from './notification-builder';
3
- export * from './toast';
1
+ export * from './alert';
4
2
  export * from './banner';
5
3
  export * from './dialog';
6
4
  export * from './snackbar';
7
- export * from './notification-util';
5
+ export * from './toast';
6
+ export * from './notification-builder';
8
7
  export * from './notification-launcher';
8
+ export * from './notification-util';
9
+ export * from './types';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC"}
@@ -3,6 +3,7 @@ import { NotificationStructure, Banner, Dialog, Toast, Snackbar } from './types'
3
3
  /**
4
4
  * NotificationBuilder to build NotificationStructure
5
5
  * @public
6
+ * @deprecated Use showNotificationBanner/Dialog/Snackbar/Toast instead or provide a NotificationStructure object when used with an event for a notification listener.
6
7
  */
7
8
  export declare class NotificationBuilder {
8
9
  private title;
@@ -19,6 +20,7 @@ export declare class NotificationBuilder {
19
20
  * @public
20
21
  * @param title - string
21
22
  * @returns
23
+ * @deprecated Use showNotificationBanner/Dialog/Snackbar/Toast instead or provide a NotificationStructure object when used with an event for a notification listener.
22
24
  */
23
25
  withTitle(title: string): NotificationBuilder;
24
26
  /**
@@ -26,6 +28,7 @@ export declare class NotificationBuilder {
26
28
  * @public
27
29
  * @param body - string
28
30
  * @returns
31
+ * @deprecated Use showNotificationBanner/Dialog/Snackbar/Toast instead or provide a NotificationStructure object when used with an event for a notification listener.
29
32
  */
30
33
  withBody(body: string): NotificationBuilder;
31
34
  /**
@@ -33,12 +36,14 @@ export declare class NotificationBuilder {
33
36
  * @public
34
37
  * @param createdAt - Date
35
38
  * @returns
39
+ * @deprecated Use showNotificationBanner/Dialog/Snackbar/Toast instead or provide a NotificationStructure object when used with an event for a notification listener.
36
40
  */
37
41
  withCreatedAt(createdAt: Date): NotificationBuilder;
38
42
  /**
39
43
  * Add log level to notification
40
44
  * @public
41
45
  * @returns
46
+ * @deprecated Use showNotificationBanner/Dialog/Snackbar/Toast instead or provide a NotificationStructure object when used with an event for a notification listener.
42
47
  */
43
48
  withLogLevel(logLevel: LogLevel): NotificationBuilder;
44
49
  /**
@@ -46,6 +51,7 @@ export declare class NotificationBuilder {
46
51
  * @public
47
52
  * @param alert - boolean
48
53
  * @returns
54
+ * @deprecated Use showNotificationBanner/Dialog/Snackbar/Toast instead or provide a NotificationStructure object when used with an event for a notification listener.
49
55
  */
50
56
  withAlert(alert: boolean): NotificationBuilder;
51
57
  /**
@@ -53,6 +59,7 @@ export declare class NotificationBuilder {
53
59
  * @public
54
60
  * @param notification - {@link Toast}
55
61
  * @returns
62
+ * @deprecated Use showNotificationBanner/Dialog/Snackbar/Toast instead or provide a NotificationStructure object when used with an event for a notification listener.
56
63
  */
57
64
  withToast(toast: Toast): NotificationBuilder;
58
65
  /**
@@ -60,6 +67,7 @@ export declare class NotificationBuilder {
60
67
  * @public
61
68
  * @param banner - {@link Banner}
62
69
  * @returns
70
+ * @deprecated Use showNotificationBanner/Dialog/Snackbar/Toast instead or provide a NotificationStructure object when used with an event for a notification listener.
63
71
  */
64
72
  withBanner(banner: Banner): NotificationBuilder;
65
73
  /**
@@ -67,6 +75,7 @@ export declare class NotificationBuilder {
67
75
  * @public
68
76
  * @param snackbar - {@link Snackbar}
69
77
  * @returns
78
+ * @deprecated Use showNotificationBanner/Dialog/Snackbar/Toast instead or provide a NotificationStructure object when used with an event for a notification listener.
70
79
  */
71
80
  withSnackbar(snackbar: Snackbar): NotificationBuilder;
72
81
  /**
@@ -74,18 +83,21 @@ export declare class NotificationBuilder {
74
83
  * @public
75
84
  * @param dialog - {@link Dialog}
76
85
  * @returns
86
+ * @deprecated Use showNotificationBanner/Dialog/Snackbar/Toast instead or provide a NotificationStructure object when used with an event for a notification listener.
77
87
  */
78
88
  withDialog(dialog: Dialog): NotificationBuilder;
79
89
  /**
80
90
  * Build NotificationStructure
81
91
  * @public
82
92
  * @returns
93
+ * @deprecated Use showNotificationBanner/Dialog/Snackbar/Toast instead or provide a NotificationStructure object when used with an event for a notification listener.
83
94
  */
84
95
  build(): NotificationStructure;
85
96
  }
86
97
  /**
87
98
  * Returns a new NotificationBuilder instance
88
99
  * @public
100
+ * @deprecated Use showNotificationBanner/Dialog/Snackbar/Toast instead or provide a NotificationStructure object when used with an event for a notification listener.
89
101
  */
90
102
  export declare const getNotificationBuilder: () => NotificationBuilder;
91
103
  //# sourceMappingURL=notification-builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"notification-builder.d.ts","sourceRoot":"","sources":["../../src/notification-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEjF;;;GAGG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,SAAS,CAAO;IACxB,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,KAAK,CAAU;IACvB,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,MAAM,CAAS;IAEvB;;;;;OAKG;IACI,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,mBAAmB;IAKpD;;;;;OAKG;IACI,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB;IAKlD;;;;;OAKG;IACI,aAAa,CAAC,SAAS,EAAE,IAAI,GAAG,mBAAmB;IAK1D;;;;OAIG;IACI,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,mBAAmB;IAK5D;;;;;OAKG;IACI,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,mBAAmB;IAKrD;;;;;OAKG;IACI,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,mBAAmB;IAKnD;;;;;OAKG;IACI,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,mBAAmB;IAKtD;;;;;OAKG;IACI,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,mBAAmB;IAK5D;;;;;OAKG;IACI,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,mBAAmB;IAKtD;;;;OAIG;IACI,KAAK,IAAI,qBAAqB;CAmDtC;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAAO,mBAAgD,CAAC"}
1
+ {"version":3,"file":"notification-builder.d.ts","sourceRoot":"","sources":["../../src/notification-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEjF;;;;GAIG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,SAAS,CAAO;IACxB,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,KAAK,CAAU;IACvB,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,MAAM,CAAS;IAEvB;;;;;;OAMG;IACI,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,mBAAmB;IAKpD;;;;;;OAMG;IACI,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB;IAKlD;;;;;;OAMG;IACI,aAAa,CAAC,SAAS,EAAE,IAAI,GAAG,mBAAmB;IAK1D;;;;;OAKG;IACI,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,mBAAmB;IAK5D;;;;;;OAMG;IACI,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,mBAAmB;IAKrD;;;;;;OAMG;IACI,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,mBAAmB;IAKnD;;;;;;OAMG;IACI,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,mBAAmB;IAKtD;;;;;;OAMG;IACI,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,mBAAmB;IAK5D;;;;;;OAMG;IACI,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,mBAAmB;IAKtD;;;;;OAKG;IACI,KAAK,IAAI,qBAAqB;CAwDtC;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,QAAO,mBAAgD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"notification-launcher.d.ts","sourceRoot":"","sources":["../../src/notification-launcher.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAchD;;;;;;;KAOK;AACL,eAAO,MAAM,gBAAgB,0BACJ,qBAAqB,WACnC,MAAM,yBACQ,WAAW,KACjC,IAWF,CAAC"}
1
+ {"version":3,"file":"notification-launcher.d.ts","sourceRoot":"","sources":["../../src/notification-launcher.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAUhD;;;;;;;KAOK;AACL,eAAO,MAAM,gBAAgB,0BACJ,qBAAqB,WACnC,MAAM,yBACQ,WAAW,KACjC,IAOF,CAAC"}
@@ -14,6 +14,12 @@ export declare const getNotificationDetails: (details: NotificationStructure) =>
14
14
  * @returns The log level or the default value (LogLevel.Debug) if not present
15
15
  */
16
16
  export declare const getLoglevel: (details: NotificationStructure) => LogLevel;
17
+ /**
18
+ * Shows logger with log level from NotificationStructure object
19
+ * @public
20
+ * @param notificationStructure - The NotificationStructure object
21
+ */
22
+ export declare const showLoggerLogLevel: (notificationStructure: NotificationStructure) => void;
17
23
  /**
18
24
  * Get/Create the error container in the DOM
19
25
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"notification-util.d.ts","sourceRoot":"","sources":["../../src/notification-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,YAAa,qBAAqB,KAAG,MAIvE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,YAAa,qBAAqB,KAAG,QAE5D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,OAAQ,MAAM,WAAW,MAAM,KAAG,WAatE,CAAC;AAEF;;;;;GAKG;AAEH,eAAO,MAAM,eAAe,YAAa,GAAG,KAAG,WAAW,GAAG,IAU5D,CAAC"}
1
+ {"version":3,"file":"notification-util.d.ts","sourceRoot":"","sources":["../../src/notification-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,YAAa,qBAAqB,KAAG,MAIvE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,YAAa,qBAAqB,KAAG,QAE5D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,0BAA2B,qBAAqB,SAK9E,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,OAAQ,MAAM,WAAW,MAAM,KAAG,WAatE,CAAC;AAEF;;;;;GAKG;AAEH,eAAO,MAAM,eAAe,YAAa,GAAG,KAAG,WAAW,GAAG,IAU5D,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from './snackbar-builder-old';
1
2
  export * from './snackbar-builder';
2
3
  export * from './snackbar-launcher';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/snackbar/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/snackbar/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { Snackbar, ConfirmingAction, SnackbarType } from '../types';
2
+ /**
3
+ * SnackbarBuilder to build Snackbar
4
+ * @public
5
+ * @deprecated Use showNotificationSnackbar instead or provide a NotificationStructure object when used with an event for a notification listener.
6
+ */
7
+ export declare class SnackbarBuilder {
8
+ private confirmingActions;
9
+ private type;
10
+ /**
11
+ * @public
12
+ * @param type - {@link SnackbarType}
13
+ * @returns
14
+ * @deprecated Use showNotificationSnackbar instead or provide a NotificationStructure object when used with an event for a notification listener.
15
+ */
16
+ withType(type: SnackbarType): SnackbarBuilder;
17
+ /**
18
+ * Add confirming action to snackbar
19
+ * @public
20
+ * @param confirmingAction - {@link ConfirmingAction}
21
+ * @returns
22
+ * @deprecated Use showNotificationSnackbar instead or provide a NotificationStructure object when used with an event for a notification listener.
23
+ */
24
+ withConfirmingAction(confirmingAction: ConfirmingAction): SnackbarBuilder;
25
+ /**
26
+ * Build snackbar
27
+ * @public
28
+ * @returns Snackbar
29
+ * @deprecated Use showNotificationSnackbar instead or provide a NotificationStructure object when used with an event for a notification listener.
30
+ */
31
+ build(): Snackbar;
32
+ }
33
+ /**
34
+ * Get snackbar builder instance
35
+ * @public
36
+ * @deprecated Use showNotificationSnackbar instead or provide a NotificationStructure object when used with an event for a notification listener.
37
+ */
38
+ export declare const getSnackbarBuilder: () => SnackbarBuilder;
39
+ //# sourceMappingURL=snackbar-builder-old.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snackbar-builder-old.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar-builder-old.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAEpE;;;;GAIG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,iBAAiB,CAA0B;IACnD,OAAO,CAAC,IAAI,CAAe;IAE3B;;;;;OAKG;IACI,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,eAAe;IAKpD;;;;;;OAMG;IACI,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,eAAe;IAQhF;;;;;OAKG;IACI,KAAK,IAAI,QAAQ;CAgBzB;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,QAAO,eAAwC,CAAC"}
@@ -1,34 +1,7 @@
1
- import { Snackbar, ConfirmingAction, SnackbarType } from '../types';
1
+ import { SnackbarStructure } from '../types';
2
2
  /**
3
- * SnackbarBuilder to build Snackbar
3
+ * Shows the notification snackbar
4
4
  * @public
5
5
  */
6
- export declare class SnackbarBuilder {
7
- private confirmingActions;
8
- private type;
9
- /**
10
- * @public
11
- * @param type - {@link SnackbarType}
12
- * @returns
13
- */
14
- withType(type: SnackbarType): SnackbarBuilder;
15
- /**
16
- * Add confirming action to snackbar
17
- * @public
18
- * @param confirmingAction - {@link ConfirmingAction}
19
- * @returns
20
- */
21
- withConfirmingAction(confirmingAction: ConfirmingAction): SnackbarBuilder;
22
- /**
23
- * Build snackbar
24
- * @public
25
- * @returns Snackbar
26
- */
27
- build(): Snackbar;
28
- }
29
- /**
30
- * Get snackbar builder instance
31
- * @public
32
- */
33
- export declare const getSnackbarBuilder: () => SnackbarBuilder;
6
+ export declare const showNotificationSnackbar: (configuration: SnackbarStructure, tagName: String) => void;
34
7
  //# sourceMappingURL=snackbar-builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"snackbar-builder.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAEpE;;;GAGG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,iBAAiB,CAA0B;IACnD,OAAO,CAAC,IAAI,CAAe;IAE3B;;;;OAIG;IACI,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,eAAe;IAKpD;;;;;OAKG;IACI,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,eAAe;IAQhF;;;;OAIG;IACI,KAAK,IAAI,QAAQ;CAUzB;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,QAAO,eAAwC,CAAC"}
1
+ {"version":3,"file":"snackbar-builder.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar-builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAyB,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGpE;;;GAGG;AACH,eAAO,MAAM,wBAAwB,kBACpB,iBAAiB,WACvB,MAAM,KACd,IAqBF,CAAC"}
@@ -6,5 +6,5 @@ import { NotificationStructure } from '../types';
6
6
  * @param tagName - The tag name to create prefix for the design system provider & notification component
7
7
  * @returns
8
8
  * */
9
- export declare const showSnackbar: (notification: NotificationStructure, tagName: String) => void;
9
+ export declare const showSnackbar: (notificationStructure: NotificationStructure, tagName: String) => void;
10
10
  //# sourceMappingURL=snackbar-launcher.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"snackbar-launcher.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar-launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAuB,MAAM,UAAU,CAAC;AAEtE;;;;;;KAMK;AACL,eAAO,MAAM,YAAY,iBAAkB,qBAAqB,WAAW,MAAM,KAAG,IAMnF,CAAC"}
1
+ {"version":3,"file":"snackbar-launcher.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar-launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAuB,MAAM,UAAU,CAAC;AAEtE;;;;;;KAMK;AACL,eAAO,MAAM,YAAY,0BACA,qBAAqB,WACnC,MAAM,KACd,IAQF,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from './toast-builder-old';
1
2
  export * from './toast-builder';
2
3
  export * from './toast-launcher';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/toast/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/toast/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}