@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.
- package/README.md +83 -11
- package/dist/dts/alert/alert-builder.d.ts +7 -0
- package/dist/dts/alert/alert-builder.d.ts.map +1 -0
- package/dist/dts/alert/index.d.ts +2 -0
- package/dist/dts/alert/index.d.ts.map +1 -0
- package/dist/dts/banner/banner-builder-old.d.ts +40 -0
- package/dist/dts/banner/banner-builder-old.d.ts.map +1 -0
- package/dist/dts/banner/banner-builder.d.ts +3 -31
- package/dist/dts/banner/banner-builder.d.ts.map +1 -1
- package/dist/dts/banner/banner-launcher.d.ts.map +1 -1
- package/dist/dts/banner/index.d.ts +1 -0
- package/dist/dts/banner/index.d.ts.map +1 -1
- package/dist/dts/dialog/dialog-builder-old.d.ts +40 -0
- package/dist/dts/dialog/dialog-builder-old.d.ts.map +1 -0
- package/dist/dts/dialog/dialog-builder.d.ts +3 -31
- package/dist/dts/dialog/dialog-builder.d.ts.map +1 -1
- package/dist/dts/dialog/dialog-launcher.d.ts +1 -1
- package/dist/dts/dialog/dialog-launcher.d.ts.map +1 -1
- package/dist/dts/dialog/index.d.ts +1 -0
- package/dist/dts/dialog/index.d.ts.map +1 -1
- package/dist/dts/index.d.ts +5 -4
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/notification-builder.d.ts +12 -0
- package/dist/dts/notification-builder.d.ts.map +1 -1
- package/dist/dts/notification-launcher.d.ts.map +1 -1
- package/dist/dts/notification-util.d.ts +6 -0
- package/dist/dts/notification-util.d.ts.map +1 -1
- package/dist/dts/snackbar/index.d.ts +1 -0
- package/dist/dts/snackbar/index.d.ts.map +1 -1
- package/dist/dts/snackbar/snackbar-builder-old.d.ts +39 -0
- package/dist/dts/snackbar/snackbar-builder-old.d.ts.map +1 -0
- package/dist/dts/snackbar/snackbar-builder.d.ts +3 -30
- package/dist/dts/snackbar/snackbar-builder.d.ts.map +1 -1
- package/dist/dts/snackbar/snackbar-launcher.d.ts +1 -1
- package/dist/dts/snackbar/snackbar-launcher.d.ts.map +1 -1
- package/dist/dts/toast/index.d.ts +1 -0
- package/dist/dts/toast/index.d.ts.map +1 -1
- package/dist/dts/toast/toast-builder-old.d.ts +74 -0
- package/dist/dts/toast/toast-builder-old.d.ts.map +1 -0
- package/dist/dts/toast/toast-builder.d.ts +3 -61
- package/dist/dts/toast/toast-builder.d.ts.map +1 -1
- package/dist/dts/toast/toast-launcher.d.ts.map +1 -1
- package/dist/dts/types.d.ts +50 -2
- package/dist/dts/types.d.ts.map +1 -1
- package/dist/esm/alert/alert-builder.js +9 -0
- package/dist/esm/alert/index.js +1 -0
- package/dist/esm/banner/banner-builder-old.js +56 -0
- package/dist/esm/banner/banner-builder.js +17 -43
- package/dist/esm/banner/banner-launcher.js +2 -1
- package/dist/esm/banner/index.js +1 -0
- package/dist/esm/dialog/dialog-builder-old.js +56 -0
- package/dist/esm/dialog/dialog-builder.js +21 -43
- package/dist/esm/dialog/dialog-launcher.js +4 -3
- package/dist/esm/dialog/index.js +1 -0
- package/dist/esm/index.js +5 -4
- package/dist/esm/notification-builder.js +14 -0
- package/dist/esm/notification-launcher.js +2 -10
- package/dist/esm/notification-util.js +12 -0
- package/dist/esm/snackbar/index.js +1 -0
- package/dist/esm/snackbar/snackbar-builder-old.js +55 -0
- package/dist/esm/snackbar/snackbar-builder.js +17 -42
- package/dist/esm/snackbar/snackbar-launcher.js +4 -3
- package/dist/esm/toast/index.js +1 -0
- package/dist/esm/toast/toast-builder-old.js +107 -0
- package/dist/esm/toast/toast-builder.js +22 -88
- package/dist/esm/toast/toast-launcher.js +2 -1
- package/dist/foundation-notifications.api.json +911 -88
- package/dist/foundation-notifications.d.ts +130 -4
- package/docs/api/foundation-notifications.alertstructure.body.md +11 -0
- package/docs/api/foundation-notifications.alertstructure.loglevel.md +11 -0
- package/docs/api/foundation-notifications.alertstructure.md +22 -0
- package/docs/api/foundation-notifications.alertstructure.title.md +11 -0
- package/docs/api/foundation-notifications.bannerbuilder.build.md +5 -0
- package/docs/api/foundation-notifications.bannerbuilder.md +5 -0
- package/docs/api/foundation-notifications.bannerbuilder.withconfirmingaction.md +5 -0
- package/docs/api/foundation-notifications.bannerbuilder.withdismissingaction.md +5 -0
- package/docs/api/foundation-notifications.bannerstructure.banner.md +11 -0
- package/docs/api/foundation-notifications.bannerstructure.body.md +11 -0
- package/docs/api/foundation-notifications.bannerstructure.loglevel.md +11 -0
- package/docs/api/foundation-notifications.bannerstructure.md +22 -0
- package/docs/api/foundation-notifications.dialogbuilder.build.md +5 -0
- package/docs/api/foundation-notifications.dialogbuilder.md +5 -0
- package/docs/api/foundation-notifications.dialogbuilder.withconfirmingaction.md +5 -0
- package/docs/api/foundation-notifications.dialogbuilder.withdismissingaction.md +5 -0
- package/docs/api/foundation-notifications.dialogstructure.body.md +11 -0
- package/docs/api/foundation-notifications.dialogstructure.dialog.md +11 -0
- package/docs/api/foundation-notifications.dialogstructure.loglevel.md +11 -0
- package/docs/api/foundation-notifications.dialogstructure.md +23 -0
- package/docs/api/foundation-notifications.dialogstructure.title.md +11 -0
- package/docs/api/foundation-notifications.getbannerbuilder.md +5 -0
- package/docs/api/foundation-notifications.getdialogbuilder.md +5 -0
- package/docs/api/foundation-notifications.getnotificationbuilder.md +5 -0
- package/docs/api/foundation-notifications.getsnackbarbuilder.md +5 -0
- package/docs/api/foundation-notifications.gettoastbuilder.md +5 -0
- package/docs/api/foundation-notifications.md +12 -1
- package/docs/api/foundation-notifications.notificationbuilder.build.md +5 -0
- package/docs/api/foundation-notifications.notificationbuilder.md +5 -0
- package/docs/api/foundation-notifications.notificationbuilder.withalert.md +5 -0
- package/docs/api/foundation-notifications.notificationbuilder.withbanner.md +5 -0
- package/docs/api/foundation-notifications.notificationbuilder.withbody.md +5 -0
- package/docs/api/foundation-notifications.notificationbuilder.withcreatedat.md +5 -0
- package/docs/api/foundation-notifications.notificationbuilder.withdialog.md +5 -0
- package/docs/api/foundation-notifications.notificationbuilder.withloglevel.md +5 -0
- package/docs/api/foundation-notifications.notificationbuilder.withsnackbar.md +5 -0
- package/docs/api/foundation-notifications.notificationbuilder.withtitle.md +5 -0
- package/docs/api/foundation-notifications.notificationbuilder.withtoast.md +5 -0
- package/docs/api/foundation-notifications.notificationstructure.md +2 -2
- package/docs/api/foundation-notifications.notificationstructure.title.md +1 -1
- package/docs/api/foundation-notifications.showloggerloglevel.md +13 -0
- package/docs/api/foundation-notifications.shownotificationalert.md +13 -0
- package/docs/api/foundation-notifications.shownotificationbanner.md +13 -0
- package/docs/api/foundation-notifications.shownotificationdialog.md +13 -0
- package/docs/api/foundation-notifications.shownotificationsnackbar.md +13 -0
- package/docs/api/foundation-notifications.shownotificationtoast.md +13 -0
- package/docs/api/foundation-notifications.snackbarbuilder.build.md +5 -0
- package/docs/api/foundation-notifications.snackbarbuilder.md +5 -0
- package/docs/api/foundation-notifications.snackbarbuilder.withconfirmingaction.md +5 -0
- package/docs/api/foundation-notifications.snackbarbuilder.withtype.md +5 -0
- package/docs/api/foundation-notifications.snackbarstructure.body.md +11 -0
- package/docs/api/foundation-notifications.snackbarstructure.loglevel.md +11 -0
- package/docs/api/foundation-notifications.snackbarstructure.md +22 -0
- package/docs/api/foundation-notifications.snackbarstructure.snackbar.md +11 -0
- package/docs/api/foundation-notifications.toastbuilder.build.md +5 -0
- package/docs/api/foundation-notifications.toastbuilder.md +4 -0
- package/docs/api/foundation-notifications.toastbuilder.withautoclose.md +5 -0
- package/docs/api/foundation-notifications.toastbuilder.withbuttons.md +5 -0
- package/docs/api/foundation-notifications.toastbuilder.withclosetimeout.md +5 -0
- package/docs/api/foundation-notifications.toastbuilder.withdetails.md +5 -0
- package/docs/api/foundation-notifications.toastbuilder.withposition.md +5 -0
- package/docs/api/foundation-notifications.toastbuilder.withtype.md +5 -0
- package/docs/api/foundation-notifications.toaststructure.body.md +11 -0
- package/docs/api/foundation-notifications.toaststructure.createdat.md +11 -0
- package/docs/api/foundation-notifications.toaststructure.loglevel.md +11 -0
- package/docs/api/foundation-notifications.toaststructure.md +24 -0
- package/docs/api/foundation-notifications.toaststructure.title.md +11 -0
- package/docs/api/foundation-notifications.toaststructure.toast.md +11 -0
- package/docs/api-report.md +113 -14
- package/package.json +5 -5
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [ToastStructure](./foundation-notifications.toaststructure.md) > [logLevel](./foundation-notifications.toaststructure.loglevel.md)
|
|
4
|
+
|
|
5
|
+
## ToastStructure.logLevel property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
readonly logLevel?: LogLevel;
|
|
11
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [ToastStructure](./foundation-notifications.toaststructure.md)
|
|
4
|
+
|
|
5
|
+
## ToastStructure interface
|
|
6
|
+
|
|
7
|
+
Interface for Toast Structure
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface ToastStructure
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
| Property | Modifiers | Type | Description |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| [body](./foundation-notifications.toaststructure.body.md) | <code>readonly</code> | string | |
|
|
20
|
+
| [createdAt?](./foundation-notifications.toaststructure.createdat.md) | <code>readonly</code> | Date | _(Optional)_ |
|
|
21
|
+
| [logLevel?](./foundation-notifications.toaststructure.loglevel.md) | <code>readonly</code> | LogLevel | _(Optional)_ |
|
|
22
|
+
| [title](./foundation-notifications.toaststructure.title.md) | <code>readonly</code> | string | |
|
|
23
|
+
| [toast?](./foundation-notifications.toaststructure.toast.md) | <code>readonly</code> | [Toast](./foundation-notifications.toast.md) | _(Optional)_ |
|
|
24
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [ToastStructure](./foundation-notifications.toaststructure.md) > [title](./foundation-notifications.toaststructure.title.md)
|
|
4
|
+
|
|
5
|
+
## ToastStructure.title property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
readonly title: string;
|
|
11
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-notifications](./foundation-notifications.md) > [ToastStructure](./foundation-notifications.toaststructure.md) > [toast](./foundation-notifications.toaststructure.toast.md)
|
|
4
|
+
|
|
5
|
+
## ToastStructure.toast property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
readonly toast?: Toast;
|
|
11
|
+
```
|
package/docs/api-report.md
CHANGED
|
@@ -6,6 +6,16 @@
|
|
|
6
6
|
|
|
7
7
|
import { LogLevel } from '@genesislcap/foundation-logger';
|
|
8
8
|
|
|
9
|
+
// @public
|
|
10
|
+
export interface AlertStructure {
|
|
11
|
+
// (undocumented)
|
|
12
|
+
readonly body: string;
|
|
13
|
+
// (undocumented)
|
|
14
|
+
readonly logLevel?: LogLevel;
|
|
15
|
+
// (undocumented)
|
|
16
|
+
readonly title: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
9
19
|
// @public
|
|
10
20
|
export interface Banner {
|
|
11
21
|
// (undocumented)
|
|
@@ -14,13 +24,26 @@ export interface Banner {
|
|
|
14
24
|
readonly dismissingAction?: DismissingAction;
|
|
15
25
|
}
|
|
16
26
|
|
|
17
|
-
// @public
|
|
27
|
+
// @public @deprecated
|
|
18
28
|
export class BannerBuilder {
|
|
29
|
+
// @deprecated
|
|
19
30
|
build(): Banner;
|
|
31
|
+
// @deprecated
|
|
20
32
|
withConfirmingAction(confirmingAction: ConfirmingAction): BannerBuilder;
|
|
33
|
+
// @deprecated
|
|
21
34
|
withDismissingAction(dismissingAction: DismissingAction): BannerBuilder;
|
|
22
35
|
}
|
|
23
36
|
|
|
37
|
+
// @public
|
|
38
|
+
export interface BannerStructure {
|
|
39
|
+
// (undocumented)
|
|
40
|
+
readonly banner?: Banner;
|
|
41
|
+
// (undocumented)
|
|
42
|
+
readonly body: string;
|
|
43
|
+
// (undocumented)
|
|
44
|
+
readonly logLevel?: LogLevel;
|
|
45
|
+
}
|
|
46
|
+
|
|
24
47
|
// @public
|
|
25
48
|
export interface ConfirmingAction {
|
|
26
49
|
// (undocumented)
|
|
@@ -37,10 +60,13 @@ export interface Dialog {
|
|
|
37
60
|
readonly dismissingAction?: DismissingAction;
|
|
38
61
|
}
|
|
39
62
|
|
|
40
|
-
// @public
|
|
63
|
+
// @public @deprecated
|
|
41
64
|
export class DialogBuilder {
|
|
65
|
+
// @deprecated
|
|
42
66
|
build(): Dialog;
|
|
67
|
+
// @deprecated
|
|
43
68
|
withConfirmingAction(confirmingAction: ConfirmingAction): DialogBuilder;
|
|
69
|
+
// @deprecated
|
|
44
70
|
withDismissingAction(dismissingAction: DismissingAction): DialogBuilder;
|
|
45
71
|
}
|
|
46
72
|
|
|
@@ -51,6 +77,18 @@ export type DialogElement = NotificationElement & {
|
|
|
51
77
|
show: Function;
|
|
52
78
|
};
|
|
53
79
|
|
|
80
|
+
// @public
|
|
81
|
+
export interface DialogStructure {
|
|
82
|
+
// (undocumented)
|
|
83
|
+
readonly body: string;
|
|
84
|
+
// (undocumented)
|
|
85
|
+
readonly dialog?: Dialog;
|
|
86
|
+
// (undocumented)
|
|
87
|
+
readonly logLevel?: LogLevel;
|
|
88
|
+
// (undocumented)
|
|
89
|
+
readonly title: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
54
92
|
// @public
|
|
55
93
|
export interface DismissingAction {
|
|
56
94
|
// (undocumented)
|
|
@@ -62,16 +100,16 @@ export interface DismissingAction {
|
|
|
62
100
|
// @public
|
|
63
101
|
export const getBannerAnchor: (element: any) => HTMLElement | null;
|
|
64
102
|
|
|
65
|
-
// @public
|
|
103
|
+
// @public @deprecated
|
|
66
104
|
export const getBannerBuilder: () => BannerBuilder;
|
|
67
105
|
|
|
68
|
-
// @public
|
|
106
|
+
// @public @deprecated
|
|
69
107
|
export const getDialogBuilder: () => DialogBuilder;
|
|
70
108
|
|
|
71
109
|
// @public
|
|
72
110
|
export const getLoglevel: (details: NotificationStructure) => LogLevel;
|
|
73
111
|
|
|
74
|
-
// @public
|
|
112
|
+
// @public @deprecated
|
|
75
113
|
export const getNotificationBuilder: () => NotificationBuilder;
|
|
76
114
|
|
|
77
115
|
// @public
|
|
@@ -80,23 +118,33 @@ export const getNotificationContainer: (id: string, tagName: String) => HTMLElem
|
|
|
80
118
|
// @public
|
|
81
119
|
export const getNotificationDetails: (details: NotificationStructure) => string;
|
|
82
120
|
|
|
83
|
-
// @public
|
|
121
|
+
// @public @deprecated
|
|
84
122
|
export const getSnackbarBuilder: () => SnackbarBuilder;
|
|
85
123
|
|
|
86
|
-
// @public
|
|
124
|
+
// @public @deprecated
|
|
87
125
|
export const getToastBuilder: () => ToastBuilder;
|
|
88
126
|
|
|
89
|
-
// @public
|
|
127
|
+
// @public @deprecated
|
|
90
128
|
export class NotificationBuilder {
|
|
129
|
+
// @deprecated
|
|
91
130
|
build(): NotificationStructure;
|
|
131
|
+
// @deprecated
|
|
92
132
|
withAlert(alert: boolean): NotificationBuilder;
|
|
133
|
+
// @deprecated
|
|
93
134
|
withBanner(banner: Banner): NotificationBuilder;
|
|
135
|
+
// @deprecated
|
|
94
136
|
withBody(body: string): NotificationBuilder;
|
|
137
|
+
// @deprecated
|
|
95
138
|
withCreatedAt(createdAt: Date): NotificationBuilder;
|
|
139
|
+
// @deprecated
|
|
96
140
|
withDialog(dialog: Dialog): NotificationBuilder;
|
|
141
|
+
// @deprecated
|
|
97
142
|
withLogLevel(logLevel: LogLevel): NotificationBuilder;
|
|
143
|
+
// @deprecated
|
|
98
144
|
withSnackbar(snackbar: Snackbar): NotificationBuilder;
|
|
145
|
+
// @deprecated
|
|
99
146
|
withTitle(title: string): NotificationBuilder;
|
|
147
|
+
// @deprecated
|
|
100
148
|
withToast(toast: Toast): NotificationBuilder;
|
|
101
149
|
}
|
|
102
150
|
|
|
@@ -163,7 +211,7 @@ export interface NotificationStructure {
|
|
|
163
211
|
// (undocumented)
|
|
164
212
|
readonly logLevel?: LogLevel;
|
|
165
213
|
// (undocumented)
|
|
166
|
-
readonly title
|
|
214
|
+
readonly title?: string;
|
|
167
215
|
}
|
|
168
216
|
|
|
169
217
|
// @public
|
|
@@ -175,15 +223,33 @@ export const showBanner: (notificationStructure: NotificationStructure, tagName:
|
|
|
175
223
|
// Warning: (ae-internal-missing-underscore) The name "showDialog" should be prefixed with an underscore because the declaration is marked as @internal
|
|
176
224
|
//
|
|
177
225
|
// @internal
|
|
178
|
-
export const showDialog: (
|
|
226
|
+
export const showDialog: (notificationStructure: NotificationStructure, tagName: String) => void;
|
|
227
|
+
|
|
228
|
+
// @public
|
|
229
|
+
export const showLoggerLogLevel: (notificationStructure: NotificationStructure) => void;
|
|
179
230
|
|
|
180
231
|
// @public
|
|
181
232
|
export const showNotification: (notificationStructure: NotificationStructure, tagName: String, notificationBoundary?: HTMLElement) => void;
|
|
182
233
|
|
|
234
|
+
// @public
|
|
235
|
+
export const showNotificationAlert: (configuration: AlertStructure) => void;
|
|
236
|
+
|
|
237
|
+
// @public
|
|
238
|
+
export const showNotificationBanner: (configuration: BannerStructure, tagName: String, notificationBoundary?: HTMLElement) => void;
|
|
239
|
+
|
|
240
|
+
// @public
|
|
241
|
+
export const showNotificationDialog: (configuration: DialogStructure, tagName: String) => void;
|
|
242
|
+
|
|
243
|
+
// @public
|
|
244
|
+
export const showNotificationSnackbar: (configuration: SnackbarStructure, tagName: String) => void;
|
|
245
|
+
|
|
246
|
+
// @public
|
|
247
|
+
export const showNotificationToast: (configuration: ToastStructure, tagName: String) => void;
|
|
248
|
+
|
|
183
249
|
// Warning: (ae-internal-missing-underscore) The name "showSnackbar" should be prefixed with an underscore because the declaration is marked as @internal
|
|
184
250
|
//
|
|
185
251
|
// @internal
|
|
186
|
-
export const showSnackbar: (
|
|
252
|
+
export const showSnackbar: (notificationStructure: NotificationStructure, tagName: String) => void;
|
|
187
253
|
|
|
188
254
|
// Warning: (ae-internal-missing-underscore) The name "showToast" should be prefixed with an underscore because the declaration is marked as @internal
|
|
189
255
|
//
|
|
@@ -198,14 +264,26 @@ export interface Snackbar {
|
|
|
198
264
|
readonly type?: SnackbarType;
|
|
199
265
|
}
|
|
200
266
|
|
|
201
|
-
// @public
|
|
267
|
+
// @public @deprecated
|
|
202
268
|
export class SnackbarBuilder {
|
|
269
|
+
// @deprecated
|
|
203
270
|
build(): Snackbar;
|
|
271
|
+
// @deprecated
|
|
204
272
|
withConfirmingAction(confirmingAction: ConfirmingAction): SnackbarBuilder;
|
|
205
|
-
// (undocumented)
|
|
273
|
+
// @deprecated (undocumented)
|
|
206
274
|
withType(type: SnackbarType): SnackbarBuilder;
|
|
207
275
|
}
|
|
208
276
|
|
|
277
|
+
// @public
|
|
278
|
+
export interface SnackbarStructure {
|
|
279
|
+
// (undocumented)
|
|
280
|
+
readonly body: string;
|
|
281
|
+
// (undocumented)
|
|
282
|
+
readonly logLevel?: LogLevel;
|
|
283
|
+
// (undocumented)
|
|
284
|
+
readonly snackbar?: Snackbar;
|
|
285
|
+
}
|
|
286
|
+
|
|
209
287
|
// @public
|
|
210
288
|
export type SnackbarType = 'error';
|
|
211
289
|
|
|
@@ -225,14 +303,21 @@ export interface Toast {
|
|
|
225
303
|
readonly type?: NotificationType;
|
|
226
304
|
}
|
|
227
305
|
|
|
228
|
-
// @public (undocumented)
|
|
306
|
+
// @public @deprecated (undocumented)
|
|
229
307
|
export class ToastBuilder {
|
|
308
|
+
// @deprecated
|
|
230
309
|
build(): Toast;
|
|
310
|
+
// @deprecated
|
|
231
311
|
withAutoClose(autoClose: boolean): ToastBuilder;
|
|
312
|
+
// @deprecated
|
|
232
313
|
withButtons(buttons: ToastButton[]): ToastBuilder;
|
|
314
|
+
// @deprecated
|
|
233
315
|
withCloseTimeout(closeTimeout: number): ToastBuilder;
|
|
316
|
+
// @deprecated
|
|
234
317
|
withDetails(details: NotificationDataRow): ToastBuilder;
|
|
318
|
+
// @deprecated
|
|
235
319
|
withPosition(position: ToastPosition): ToastBuilder;
|
|
320
|
+
// @deprecated
|
|
236
321
|
withType(type: NotificationType): ToastBuilder;
|
|
237
322
|
}
|
|
238
323
|
|
|
@@ -257,6 +342,20 @@ export interface ToastButton {
|
|
|
257
342
|
// @public
|
|
258
343
|
export type ToastPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
259
344
|
|
|
345
|
+
// @public
|
|
346
|
+
export interface ToastStructure {
|
|
347
|
+
// (undocumented)
|
|
348
|
+
readonly body: string;
|
|
349
|
+
// (undocumented)
|
|
350
|
+
readonly createdAt?: Date;
|
|
351
|
+
// (undocumented)
|
|
352
|
+
readonly logLevel?: LogLevel;
|
|
353
|
+
// (undocumented)
|
|
354
|
+
readonly title: string;
|
|
355
|
+
// (undocumented)
|
|
356
|
+
readonly toast?: Toast;
|
|
357
|
+
}
|
|
358
|
+
|
|
260
359
|
// (No @packageDocumentation comment for this package)
|
|
261
360
|
|
|
262
361
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-notifications",
|
|
3
3
|
"description": "Genesis Foundation UI Notifications Utils",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.115.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"test:debug": "genx test --debug"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@genesislcap/foundation-testing": "14.
|
|
44
|
-
"@genesislcap/genx": "14.
|
|
43
|
+
"@genesislcap/foundation-testing": "14.115.0",
|
|
44
|
+
"@genesislcap/genx": "14.115.0",
|
|
45
45
|
"rimraf": "^3.0.2"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@genesislcap/foundation-logger": "14.
|
|
48
|
+
"@genesislcap/foundation-logger": "14.115.0",
|
|
49
49
|
"tslib": "^2.3.1"
|
|
50
50
|
},
|
|
51
51
|
"repository": {
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "51edda70c230e7bd0d1a168126a9a9d9efddba63"
|
|
60
60
|
}
|