@htmlbricks/hb-toast 0.62.9 → 0.62.11

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/manifest.json CHANGED
@@ -7,26 +7,22 @@
7
7
  "Events": {
8
8
  "additionalProperties": false,
9
9
  "properties": {
10
- "toastConfirm": {
10
+ "action": {
11
11
  "additionalProperties": false,
12
12
  "properties": {
13
- "buttonId": {
13
+ "action": {
14
14
  "type": "string"
15
15
  },
16
- "confirm": {
17
- "type": "boolean"
18
- },
19
16
  "id": {
20
17
  "type": "string"
21
18
  }
22
19
  },
23
20
  "required": [
24
- "id",
25
- "confirm"
21
+ "id"
26
22
  ],
27
23
  "type": "object"
28
24
  },
29
- "toastShow": {
25
+ "changeVisibility": {
30
26
  "additionalProperties": false,
31
27
  "properties": {
32
28
  "disappear": {
@@ -47,8 +43,8 @@
47
43
  }
48
44
  },
49
45
  "required": [
50
- "toastShow",
51
- "toastConfirm"
46
+ "changeVisibility",
47
+ "action"
52
48
  ],
53
49
  "type": "object"
54
50
  }
@@ -137,13 +133,13 @@
137
133
  "TToastButton": {
138
134
  "additionalProperties": false,
139
135
  "properties": {
140
- "color": {
136
+ "action": {
141
137
  "type": "string"
142
138
  },
143
- "icon": {
139
+ "color": {
144
140
  "type": "string"
145
141
  },
146
- "id": {
142
+ "icon": {
147
143
  "type": "string"
148
144
  },
149
145
  "text": {
@@ -220,8 +216,8 @@
220
216
  "type": "text"
221
217
  }
222
218
  },
223
- "toastShow": {
224
- "action": "toastShow"
219
+ "changeVisibility": {
220
+ "action": "changeVisibility"
225
221
  },
226
222
  "timeout": {
227
223
  "control": {
@@ -251,8 +247,8 @@
251
247
  "type": "object"
252
248
  }
253
249
  },
254
- "toastConfirm": {
255
- "action": "toastConfirm"
250
+ "action": {
251
+ "action": "action"
256
252
  }
257
253
  },
258
254
  "styleSetup": {
@@ -409,11 +405,11 @@
409
405
  "buttons": [
410
406
  {
411
407
  "type": "cancel",
412
- "id": "btn-cancel"
408
+ "action": "btn-cancel"
413
409
  },
414
410
  {
415
411
  "type": "confirm",
416
- "id": "btn-confirm",
412
+ "action": "btn-confirm",
417
413
  "text": "Yes, proceed",
418
414
  "icon": "bi-check-circle"
419
415
  }
@@ -440,5 +436,5 @@
440
436
  "size": {},
441
437
  "iifePath": "main.iife.js",
442
438
  "repoName": "@htmlbricks/hb-toast",
443
- "version": "0.62.9"
439
+ "version": "0.62.11"
444
440
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-toast",
3
- "version": "0.62.9",
3
+ "version": "0.62.11",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [
@@ -81,13 +81,13 @@
81
81
  "TToastButton": {
82
82
  "additionalProperties": false,
83
83
  "properties": {
84
- "color": {
84
+ "action": {
85
85
  "type": "string"
86
86
  },
87
- "icon": {
87
+ "color": {
88
88
  "type": "string"
89
89
  },
90
- "id": {
90
+ "icon": {
91
91
  "type": "string"
92
92
  },
93
93
  "text": {
@@ -3,7 +3,7 @@ export type TToastButton = {
3
3
  color?: string,
4
4
  themeColor?: "info" | "success" | "warning" | "danger" | "primary" | "secondary" | "light" | "dark";
5
5
  icon?: string;
6
- id?: string;
6
+ action?: string;
7
7
  text?: string;
8
8
  }
9
9
 
@@ -24,6 +24,6 @@ export type Component = {
24
24
  };
25
25
 
26
26
  export type Events = {
27
- toastShow: { id: string; show: boolean; disappear?: boolean };
28
- toastConfirm: { id: string; confirm: boolean; buttonId?: string };
27
+ changeVisibility: { id: string; show: boolean; disappear?: boolean };
28
+ action: { id: string; action?: string };
29
29
  };
@@ -5,26 +5,22 @@
5
5
  "Events": {
6
6
  "additionalProperties": false,
7
7
  "properties": {
8
- "toastConfirm": {
8
+ "action": {
9
9
  "additionalProperties": false,
10
10
  "properties": {
11
- "buttonId": {
11
+ "action": {
12
12
  "type": "string"
13
13
  },
14
- "confirm": {
15
- "type": "boolean"
16
- },
17
14
  "id": {
18
15
  "type": "string"
19
16
  }
20
17
  },
21
18
  "required": [
22
- "id",
23
- "confirm"
19
+ "id"
24
20
  ],
25
21
  "type": "object"
26
22
  },
27
- "toastShow": {
23
+ "changeVisibility": {
28
24
  "additionalProperties": false,
29
25
  "properties": {
30
26
  "disappear": {
@@ -45,8 +41,8 @@
45
41
  }
46
42
  },
47
43
  "required": [
48
- "toastShow",
49
- "toastConfirm"
44
+ "changeVisibility",
45
+ "action"
50
46
  ],
51
47
  "type": "object"
52
48
  }