@blaze-cms/admin 0.146.0-node18-tooltips.56 → 0.146.0-node18-core-styles-tooltips.61

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 (38) hide show
  1. package/CHANGELOG.md +92 -45
  2. package/blaze.config.js +2 -0
  3. package/lib/components/ConfirmAction/ConfirmAction.js +92 -0
  4. package/lib/components/ConfirmAction/ConfirmAction.js.map +1 -0
  5. package/lib/components/ConfirmAction/index.js +11 -0
  6. package/lib/components/ConfirmAction/index.js.map +1 -0
  7. package/lib/components/DeleteAction/DeleteAction.js +11 -15
  8. package/lib/components/DeleteAction/DeleteAction.js.map +1 -1
  9. package/lib/components/PageHeader/HeaderIconButton.js +38 -0
  10. package/lib/components/PageHeader/HeaderIconButton.js.map +1 -0
  11. package/lib/components/PageHeader/PageHeader.js +84 -13
  12. package/lib/components/PageHeader/PageHeader.js.map +1 -1
  13. package/lib/components/PageHeader/TitleEditor.js +107 -0
  14. package/lib/components/PageHeader/TitleEditor.js.map +1 -0
  15. package/lib/index.js +7 -0
  16. package/lib/index.js.map +1 -1
  17. package/lib-es/components/ConfirmAction/ConfirmAction.js +68 -0
  18. package/lib-es/components/ConfirmAction/ConfirmAction.js.map +1 -0
  19. package/lib-es/components/ConfirmAction/index.js +3 -0
  20. package/lib-es/components/ConfirmAction/index.js.map +1 -0
  21. package/lib-es/components/DeleteAction/DeleteAction.js +13 -19
  22. package/lib-es/components/DeleteAction/DeleteAction.js.map +1 -1
  23. package/lib-es/components/PageHeader/HeaderIconButton.js +32 -0
  24. package/lib-es/components/PageHeader/HeaderIconButton.js.map +1 -0
  25. package/lib-es/components/PageHeader/PageHeader.js +80 -24
  26. package/lib-es/components/PageHeader/PageHeader.js.map +1 -1
  27. package/lib-es/components/PageHeader/TitleEditor.js +79 -0
  28. package/lib-es/components/PageHeader/TitleEditor.js.map +1 -0
  29. package/lib-es/index.js +2 -1
  30. package/lib-es/index.js.map +1 -1
  31. package/package.json +16 -15
  32. package/src/components/ConfirmAction/ConfirmAction.js +72 -0
  33. package/src/components/ConfirmAction/index.js +3 -0
  34. package/src/components/DeleteAction/DeleteAction.js +16 -23
  35. package/src/components/PageHeader/HeaderIconButton.js +27 -0
  36. package/src/components/PageHeader/PageHeader.js +90 -19
  37. package/src/components/PageHeader/TitleEditor.js +87 -0
  38. package/src/index.js +2 -0
package/CHANGELOG.md CHANGED
@@ -3,18 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [0.146.0-node18-tooltips.56](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.55...v0.146.0-node18-tooltips.56) (2026-09-04)
6
+ # [0.146.0-node18-core-styles-tooltips.61](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.60...v0.146.0-node18-core-styles-tooltips.61) (2026-10-08)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **admin:** save the title on blur and align the header with the page columns ([#5307](https://github.com/thebyte9/blaze/issues/5307)) ([d8fa36f](https://github.com/thebyte9/blaze/commit/d8fa36f71af832776cf19fdb760a783a9c769ca3))
7
12
 
8
13
 
9
14
  ### Features
10
15
 
16
+ * **admin:** inline record title editing with view and preview icons BZ2-4901 ([#5301](https://github.com/thebyte9/blaze/issues/5301)) ([4a01e17](https://github.com/thebyte9/blaze/commit/4a01e17a04da49b90ce412dd81ae6a62010f1abb))
17
+ * **plugin-data-ui:** admin listing bulk actions, filters, row actions, columns and simple view ([#5356](https://github.com/thebyte9/blaze/issues/5356)) ([7c16c1e](https://github.com/thebyte9/blaze/commit/7c16c1e43d654f58ac08eab7813eb0a997ee0b88))
11
18
  * display url in the admin ([#4065](https://github.com/thebyte9/blaze/issues/4065)) ([ada8f4b](https://github.com/thebyte9/blaze/commit/ada8f4b1d2a1799a87768160f36da693a58bedb6))
12
19
 
13
20
 
14
21
 
15
22
 
16
23
 
17
- # [0.146.0-node18-tooltips.55](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.54...v0.146.0-node18-tooltips.55) (2026-08-06)
24
+ # [0.146.0-node18-core-styles-tooltips.60](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.59...v0.146.0-node18-core-styles-tooltips.60) (2026-06-18)
18
25
 
19
26
  **Note:** Version bump only for package @blaze-cms/admin
20
27
 
@@ -22,7 +29,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
22
29
 
23
30
 
24
31
 
25
- # [0.146.0-node18-tooltips.54](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.53...v0.146.0-node18-tooltips.54) (2026-07-22)
32
+ # [0.146.0-node18-core-styles-tooltips.58](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.57...v0.146.0-node18-core-styles-tooltips.58) (2026-04-28)
33
+
34
+
35
+ ### Bug Fixes
36
+
37
+ * fix lint and tests errors across repository ([#5047](https://github.com/thebyte9/blaze/issues/5047)) ([c2b86dd](https://github.com/thebyte9/blaze/commit/c2b86dd7aebb12198a49097692a549a9f9378d6e))
38
+
39
+
40
+
41
+
42
+
43
+ # [0.146.0-node18-core-styles-tooltips.56](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.55...v0.146.0-node18-core-styles-tooltips.56) (2026-03-27)
26
44
 
27
45
  **Note:** Version bump only for package @blaze-cms/admin
28
46
 
@@ -30,7 +48,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
30
48
 
31
49
 
32
50
 
33
- # [0.146.0-node18-tooltips.50](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.49...v0.146.0-node18-tooltips.50) (2026-06-19)
51
+ # [0.146.0-node18-core-styles-tooltips.55](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.54...v0.146.0-node18-core-styles-tooltips.55) (2026-03-10)
34
52
 
35
53
  **Note:** Version bump only for package @blaze-cms/admin
36
54
 
@@ -38,7 +56,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
38
56
 
39
57
 
40
58
 
41
- # [0.146.0-node18-tooltips.49](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.48...v0.146.0-node18-tooltips.49) (2026-06-19)
59
+ # [0.146.0-node18-core-styles-tooltips.54](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.53...v0.146.0-node18-core-styles-tooltips.54) (2026-03-02)
42
60
 
43
61
  **Note:** Version bump only for package @blaze-cms/admin
44
62
 
@@ -46,7 +64,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
46
64
 
47
65
 
48
66
 
49
- # [0.146.0-node18-tooltips.48](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.47...v0.146.0-node18-tooltips.48) (2026-06-12)
67
+ # [0.146.0-node18-core-styles-tooltips.52](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.51...v0.146.0-node18-core-styles-tooltips.52) (2026-02-17)
50
68
 
51
69
  **Note:** Version bump only for package @blaze-cms/admin
52
70
 
@@ -54,7 +72,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
54
72
 
55
73
 
56
74
 
57
- # [0.146.0-node18-tooltips.45](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.44...v0.146.0-node18-tooltips.45) (2026-05-13)
75
+ # [0.146.0-node18-core-styles-tooltips.51](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.50...v0.146.0-node18-core-styles-tooltips.51) (2026-02-16)
58
76
 
59
77
  **Note:** Version bump only for package @blaze-cms/admin
60
78
 
@@ -62,18 +80,47 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
62
80
 
63
81
 
64
82
 
65
- # [0.146.0-node18-tooltips.44](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.43...v0.146.0-node18-tooltips.44) (2026-05-13)
83
+ # [0.146.0-node18-core-styles-tooltips.50](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.49...v0.146.0-node18-core-styles-tooltips.50) (2026-02-16)
66
84
 
85
+ **Note:** Version bump only for package @blaze-cms/admin
67
86
 
68
- ### Bug Fixes
69
87
 
70
- * fix lint and tests errors across repository ([#5047](https://github.com/thebyte9/blaze/issues/5047)) ([c2b86dd](https://github.com/thebyte9/blaze/commit/c2b86dd7aebb12198a49097692a549a9f9378d6e))
88
+
89
+
90
+
91
+ # [0.146.0-node18-core-styles-tooltips.49](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.48...v0.146.0-node18-core-styles-tooltips.49) (2026-01-29)
92
+
93
+ **Note:** Version bump only for package @blaze-cms/admin
94
+
95
+
96
+
97
+
98
+
99
+ # [0.146.0-node18-core-styles-tooltips.48](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.47...v0.146.0-node18-core-styles-tooltips.48) (2026-01-27)
100
+
101
+ **Note:** Version bump only for package @blaze-cms/admin
102
+
103
+
104
+
105
+
106
+
107
+ # [0.146.0-node18-core-styles-tooltips.46](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.45...v0.146.0-node18-core-styles-tooltips.46) (2026-01-16)
108
+
109
+ **Note:** Version bump only for package @blaze-cms/admin
110
+
111
+
112
+
113
+
114
+
115
+ # [0.146.0-node18-core-styles-tooltips.45](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.44...v0.146.0-node18-core-styles-tooltips.45) (2026-01-15)
116
+
117
+ **Note:** Version bump only for package @blaze-cms/admin
71
118
 
72
119
 
73
120
 
74
121
 
75
122
 
76
- # [0.146.0-node18-tooltips.43](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.42...v0.146.0-node18-tooltips.43) (2026-03-25)
123
+ # [0.146.0-node18-core-styles-tooltips.44](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.43...v0.146.0-node18-core-styles-tooltips.44) (2026-01-02)
77
124
 
78
125
  **Note:** Version bump only for package @blaze-cms/admin
79
126
 
@@ -81,7 +128,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
81
128
 
82
129
 
83
130
 
84
- # [0.146.0-node18-tooltips.42](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.41...v0.146.0-node18-tooltips.42) (2026-03-24)
131
+ # [0.146.0-node18-core-styles-tooltips.43](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.42...v0.146.0-node18-core-styles-tooltips.43) (2025-12-17)
85
132
 
86
133
  **Note:** Version bump only for package @blaze-cms/admin
87
134
 
@@ -89,7 +136,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
89
136
 
90
137
 
91
138
 
92
- # [0.146.0-node18-tooltips.41](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.40...v0.146.0-node18-tooltips.41) (2026-03-03)
139
+ # [0.146.0-node18-core-styles-tooltips.42](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.41...v0.146.0-node18-core-styles-tooltips.42) (2025-12-17)
93
140
 
94
141
  **Note:** Version bump only for package @blaze-cms/admin
95
142
 
@@ -97,7 +144,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
97
144
 
98
145
 
99
146
 
100
- # [0.146.0-node18-tooltips.40](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.39...v0.146.0-node18-tooltips.40) (2026-01-29)
147
+ # [0.146.0-node18-core-styles-tooltips.41](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.40...v0.146.0-node18-core-styles-tooltips.41) (2025-12-15)
101
148
 
102
149
  **Note:** Version bump only for package @blaze-cms/admin
103
150
 
@@ -105,7 +152,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
105
152
 
106
153
 
107
154
 
108
- # [0.146.0-node18-tooltips.38](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.37...v0.146.0-node18-tooltips.38) (2026-01-27)
155
+ # [0.146.0-node18-core-styles-tooltips.39](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.38...v0.146.0-node18-core-styles-tooltips.39) (2025-12-04)
109
156
 
110
157
  **Note:** Version bump only for package @blaze-cms/admin
111
158
 
@@ -113,7 +160,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
113
160
 
114
161
 
115
162
 
116
- # [0.146.0-node18-tooltips.37](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.36...v0.146.0-node18-tooltips.37) (2026-01-08)
163
+ # [0.146.0-node18-core-styles-tooltips.38](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.37...v0.146.0-node18-core-styles-tooltips.38) (2025-12-04)
117
164
 
118
165
  **Note:** Version bump only for package @blaze-cms/admin
119
166
 
@@ -121,7 +168,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
121
168
 
122
169
 
123
170
 
124
- # [0.146.0-node18-tooltips.35](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.34...v0.146.0-node18-tooltips.35) (2025-12-17)
171
+ # [0.146.0-node18-core-styles-tooltips.34](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.33...v0.146.0-node18-core-styles-tooltips.34) (2025-11-27)
125
172
 
126
173
  **Note:** Version bump only for package @blaze-cms/admin
127
174
 
@@ -129,7 +176,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
129
176
 
130
177
 
131
178
 
132
- # [0.146.0-node18-tooltips.34](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.33...v0.146.0-node18-tooltips.34) (2025-12-17)
179
+ # [0.146.0-node18-core-styles-tooltips.32](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.31...v0.146.0-node18-core-styles-tooltips.32) (2025-11-26)
133
180
 
134
181
  **Note:** Version bump only for package @blaze-cms/admin
135
182
 
@@ -137,7 +184,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
137
184
 
138
185
 
139
186
 
140
- # [0.146.0-node18-tooltips.33](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.32...v0.146.0-node18-tooltips.33) (2025-12-15)
187
+ # [0.146.0-node18-core-styles-tooltips.31](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.30...v0.146.0-node18-core-styles-tooltips.31) (2025-11-26)
141
188
 
142
189
  **Note:** Version bump only for package @blaze-cms/admin
143
190
 
@@ -145,7 +192,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
145
192
 
146
193
 
147
194
 
148
- # [0.146.0-node18-tooltips.32](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.31...v0.146.0-node18-tooltips.32) (2025-12-15)
195
+ # [0.146.0-node18-core-styles-tooltips.30](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.29...v0.146.0-node18-core-styles-tooltips.30) (2025-11-25)
149
196
 
150
197
  **Note:** Version bump only for package @blaze-cms/admin
151
198
 
@@ -153,7 +200,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
153
200
 
154
201
 
155
202
 
156
- # [0.146.0-node18-tooltips.31](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.30...v0.146.0-node18-tooltips.31) (2025-11-18)
203
+ # [0.146.0-node18-core-styles-tooltips.29](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.28...v0.146.0-node18-core-styles-tooltips.29) (2025-11-17)
157
204
 
158
205
  **Note:** Version bump only for package @blaze-cms/admin
159
206
 
@@ -161,7 +208,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
161
208
 
162
209
 
163
210
 
164
- # [0.146.0-node18-tooltips.30](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.29...v0.146.0-node18-tooltips.30) (2025-11-17)
211
+ # [0.146.0-node18-core-styles-tooltips.27](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.26...v0.146.0-node18-core-styles-tooltips.27) (2025-11-13)
165
212
 
166
213
  **Note:** Version bump only for package @blaze-cms/admin
167
214
 
@@ -169,7 +216,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
169
216
 
170
217
 
171
218
 
172
- # [0.146.0-node18-tooltips.28](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.27...v0.146.0-node18-tooltips.28) (2025-11-10)
219
+ # [0.146.0-node18-core-styles-tooltips.26](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.25...v0.146.0-node18-core-styles-tooltips.26) (2025-11-12)
173
220
 
174
221
  **Note:** Version bump only for package @blaze-cms/admin
175
222
 
@@ -177,7 +224,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
177
224
 
178
225
 
179
226
 
180
- # [0.146.0-node18-tooltips.27](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.26...v0.146.0-node18-tooltips.27) (2025-11-06)
227
+ # [0.146.0-node18-core-styles-tooltips.25](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.24...v0.146.0-node18-core-styles-tooltips.25) (2025-11-07)
181
228
 
182
229
  **Note:** Version bump only for package @blaze-cms/admin
183
230
 
@@ -185,7 +232,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
185
232
 
186
233
 
187
234
 
188
- # [0.146.0-node18-tooltips.26](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.25...v0.146.0-node18-tooltips.26) (2025-10-29)
235
+ # [0.146.0-node18-core-styles-tooltips.24](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.23...v0.146.0-node18-core-styles-tooltips.24) (2025-11-03)
189
236
 
190
237
  **Note:** Version bump only for package @blaze-cms/admin
191
238
 
@@ -193,7 +240,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
193
240
 
194
241
 
195
242
 
196
- # [0.146.0-node18-tooltips.24](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.23...v0.146.0-node18-tooltips.24) (2025-10-27)
243
+ # [0.146.0-node18-core-styles-tooltips.23](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.22...v0.146.0-node18-core-styles-tooltips.23) (2025-10-27)
197
244
 
198
245
  **Note:** Version bump only for package @blaze-cms/admin
199
246
 
@@ -201,7 +248,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
201
248
 
202
249
 
203
250
 
204
- # [0.146.0-node18-tooltips.23](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.22...v0.146.0-node18-tooltips.23) (2025-10-20)
251
+ # [0.146.0-node18-core-styles-tooltips.22](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.21...v0.146.0-node18-core-styles-tooltips.22) (2025-10-20)
205
252
 
206
253
  **Note:** Version bump only for package @blaze-cms/admin
207
254
 
@@ -209,7 +256,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
209
256
 
210
257
 
211
258
 
212
- # [0.146.0-node18-tooltips.22](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.21...v0.146.0-node18-tooltips.22) (2025-10-17)
259
+ # [0.146.0-node18-core-styles-tooltips.21](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.20...v0.146.0-node18-core-styles-tooltips.21) (2025-10-07)
213
260
 
214
261
  **Note:** Version bump only for package @blaze-cms/admin
215
262
 
@@ -217,7 +264,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
217
264
 
218
265
 
219
266
 
220
- # [0.146.0-node18-tooltips.21](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.20...v0.146.0-node18-tooltips.21) (2025-10-14)
267
+ # [0.146.0-node18-core-styles-tooltips.20](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.19...v0.146.0-node18-core-styles-tooltips.20) (2025-10-03)
221
268
 
222
269
  **Note:** Version bump only for package @blaze-cms/admin
223
270
 
@@ -225,7 +272,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
225
272
 
226
273
 
227
274
 
228
- # [0.146.0-node18-tooltips.19](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.18...v0.146.0-node18-tooltips.19) (2025-10-10)
275
+ # [0.146.0-node18-core-styles-tooltips.19](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.18...v0.146.0-node18-core-styles-tooltips.19) (2025-10-01)
229
276
 
230
277
  **Note:** Version bump only for package @blaze-cms/admin
231
278
 
@@ -233,7 +280,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
233
280
 
234
281
 
235
282
 
236
- # [0.146.0-node18-tooltips.16](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.15...v0.146.0-node18-tooltips.16) (2025-10-06)
283
+ # [0.146.0-node18-core-styles-tooltips.18](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.17...v0.146.0-node18-core-styles-tooltips.18) (2025-09-29)
237
284
 
238
285
  **Note:** Version bump only for package @blaze-cms/admin
239
286
 
@@ -241,7 +288,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
241
288
 
242
289
 
243
290
 
244
- # [0.146.0-node18-tooltips.15](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.14...v0.146.0-node18-tooltips.15) (2025-10-03)
291
+ # [0.146.0-node18-core-styles-tooltips.17](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.16...v0.146.0-node18-core-styles-tooltips.17) (2025-09-24)
245
292
 
246
293
  **Note:** Version bump only for package @blaze-cms/admin
247
294
 
@@ -249,7 +296,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
249
296
 
250
297
 
251
298
 
252
- # [0.146.0-node18-tooltips.13](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.12...v0.146.0-node18-tooltips.13) (2025-10-02)
299
+ # [0.146.0-node18-core-styles-tooltips.16](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.15...v0.146.0-node18-core-styles-tooltips.16) (2025-09-24)
253
300
 
254
301
  **Note:** Version bump only for package @blaze-cms/admin
255
302
 
@@ -257,7 +304,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
257
304
 
258
305
 
259
306
 
260
- # [0.146.0-node18-tooltips.11](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.10...v0.146.0-node18-tooltips.11) (2025-10-01)
307
+ # [0.146.0-node18-core-styles-tooltips.15](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.14...v0.146.0-node18-core-styles-tooltips.15) (2025-09-23)
261
308
 
262
309
  **Note:** Version bump only for package @blaze-cms/admin
263
310
 
@@ -265,7 +312,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
265
312
 
266
313
 
267
314
 
268
- # [0.146.0-node18-tooltips.10](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.9...v0.146.0-node18-tooltips.10) (2025-09-26)
315
+ # [0.146.0-node18-core-styles-tooltips.14](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.13...v0.146.0-node18-core-styles-tooltips.14) (2025-09-18)
269
316
 
270
317
  **Note:** Version bump only for package @blaze-cms/admin
271
318
 
@@ -273,7 +320,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
273
320
 
274
321
 
275
322
 
276
- # [0.146.0-node18-tooltips.9](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.8...v0.146.0-node18-tooltips.9) (2025-09-26)
323
+ # [0.146.0-node18-core-styles-tooltips.13](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.12...v0.146.0-node18-core-styles-tooltips.13) (2025-09-15)
277
324
 
278
325
  **Note:** Version bump only for package @blaze-cms/admin
279
326
 
@@ -281,7 +328,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
281
328
 
282
329
 
283
330
 
284
- # [0.146.0-node18-tooltips.8](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.7...v0.146.0-node18-tooltips.8) (2025-09-24)
331
+ # [0.146.0-node18-core-styles-tooltips.12](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.11...v0.146.0-node18-core-styles-tooltips.12) (2025-08-27)
285
332
 
286
333
  **Note:** Version bump only for package @blaze-cms/admin
287
334
 
@@ -289,7 +336,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
289
336
 
290
337
 
291
338
 
292
- # [0.146.0-node18-tooltips.7](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.6...v0.146.0-node18-tooltips.7) (2025-09-24)
339
+ # [0.146.0-node18-core-styles-tooltips.11](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.10...v0.146.0-node18-core-styles-tooltips.11) (2025-08-27)
293
340
 
294
341
  **Note:** Version bump only for package @blaze-cms/admin
295
342
 
@@ -297,7 +344,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
297
344
 
298
345
 
299
346
 
300
- # [0.146.0-node18-tooltips.6](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.5...v0.146.0-node18-tooltips.6) (2025-09-24)
347
+ # [0.146.0-node18-core-styles-tooltips.10](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.9...v0.146.0-node18-core-styles-tooltips.10) (2025-08-05)
301
348
 
302
349
  **Note:** Version bump only for package @blaze-cms/admin
303
350
 
@@ -305,7 +352,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
305
352
 
306
353
 
307
354
 
308
- # [0.146.0-node18-tooltips.5](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.4...v0.146.0-node18-tooltips.5) (2025-09-23)
355
+ # [0.146.0-node18-core-styles-tooltips.9](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.8...v0.146.0-node18-core-styles-tooltips.9) (2025-07-28)
309
356
 
310
357
  **Note:** Version bump only for package @blaze-cms/admin
311
358
 
@@ -313,7 +360,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
313
360
 
314
361
 
315
362
 
316
- # [0.146.0-node18-tooltips.4](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.3...v0.146.0-node18-tooltips.4) (2025-09-22)
363
+ # [0.146.0-node18-core-styles-tooltips.6](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.5...v0.146.0-node18-core-styles-tooltips.6) (2025-07-22)
317
364
 
318
365
  **Note:** Version bump only for package @blaze-cms/admin
319
366
 
@@ -321,7 +368,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
321
368
 
322
369
 
323
370
 
324
- # [0.146.0-node18-tooltips.3](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.2...v0.146.0-node18-tooltips.3) (2025-09-18)
371
+ # [0.146.0-node18-core-styles-tooltips.5](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.4...v0.146.0-node18-core-styles-tooltips.5) (2025-07-18)
325
372
 
326
373
  **Note:** Version bump only for package @blaze-cms/admin
327
374
 
@@ -329,7 +376,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
329
376
 
330
377
 
331
378
 
332
- # [0.146.0-node18-tooltips.2](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.1...v0.146.0-node18-tooltips.2) (2025-09-17)
379
+ # [0.146.0-node18-core-styles-tooltips.4](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.3...v0.146.0-node18-core-styles-tooltips.4) (2025-07-10)
333
380
 
334
381
  **Note:** Version bump only for package @blaze-cms/admin
335
382
 
@@ -337,7 +384,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
337
384
 
338
385
 
339
386
 
340
- # [0.146.0-node18-tooltips.1](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-tooltips.0...v0.146.0-node18-tooltips.1) (2025-09-10)
387
+ # [0.146.0-node18-core-styles-tooltips.1](https://github.com/thebyte9/blaze/compare/v0.146.0-node18-core-styles-tooltips.0...v0.146.0-node18-core-styles-tooltips.1) (2025-06-20)
341
388
 
342
389
  **Note:** Version bump only for package @blaze-cms/admin
343
390
 
@@ -345,7 +392,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
345
392
 
346
393
 
347
394
 
348
- # [0.146.0-node18-tooltips.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.146.0-node18-tooltips.0) (2025-09-09)
395
+ # [0.146.0-node18-core-styles-tooltips.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.146.0-node18-core-styles-tooltips.0) (2025-06-18)
349
396
 
350
397
 
351
398
  ### Bug Fixes
package/blaze.config.js CHANGED
@@ -7,6 +7,7 @@ import media from '@blaze-cms/plugin-media-ui';
7
7
  import gtm from '@blaze-cms/plugin-gtm-ui';
8
8
  import googleMaps from '@blaze-cms/plugin-google-maps-ui';
9
9
  import renderHooks from '@blaze-cms/plugin-render-hooks-ui';
10
+ import workflow from '@blaze-cms/plugin-workflow-ui';
10
11
 
11
12
  const plugins = new Map();
12
13
  plugins.set(authLocal, {});
@@ -18,6 +19,7 @@ plugins.set(media, {});
18
19
  plugins.set(gtm, {});
19
20
  plugins.set(googleMaps, {});
20
21
  plugins.set(renderHooks, {});
22
+ plugins.set(workflow, {});
21
23
 
22
24
  const apollo = { addTypename: false };
23
25
  export default { plugins, apollo };
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.array.iterator.js");
4
+ require("core-js/modules/es.object.define-property.js");
5
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
6
+ require("core-js/modules/es.object.to-string.js");
7
+ require("core-js/modules/es.string.iterator.js");
8
+ require("core-js/modules/es.weak-map.js");
9
+ require("core-js/modules/web.dom-collections.iterator.js");
10
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
11
+ var _typeof = require("@babel/runtime/helpers/typeof");
12
+ Object.defineProperty(exports, "__esModule", {
13
+ value: true
14
+ });
15
+ exports["default"] = void 0;
16
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
17
+ require("core-js/modules/es.regexp.exec.js");
18
+ require("core-js/modules/es.string.replace.js");
19
+ var _react = _interopRequireWildcard(require("react"));
20
+ var _propTypes = _interopRequireDefault(require("prop-types"));
21
+ var _modal = _interopRequireDefault(require("@blaze-react/modal"));
22
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
23
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
24
+ var normalise = function normalise(value) {
25
+ return value.replace(/[\s,]/g, '');
26
+ };
27
+
28
+ // with confirmPhrase, confirming only runs once the phrase has been typed, for large or irreversible actions
29
+ var ConfirmAction = function ConfirmAction(_ref) {
30
+ var onClose = _ref.onClose,
31
+ onConfirm = _ref.onConfirm,
32
+ confirmLabel = _ref.confirmLabel,
33
+ confirmPhrase = _ref.confirmPhrase,
34
+ children = _ref.children;
35
+ var phraseId = (0, _react.useId)();
36
+ var _useState = (0, _react.useState)(''),
37
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
38
+ typed = _useState2[0],
39
+ setTyped = _useState2[1];
40
+ var _useState3 = (0, _react.useState)(false),
41
+ _useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
42
+ showHint = _useState4[0],
43
+ setShowHint = _useState4[1];
44
+ var confirmed = !confirmPhrase || normalise(typed) === normalise(confirmPhrase);
45
+ var alertActions = [{
46
+ callback: function callback(event) {
47
+ event.stopPropagation();
48
+ if (!confirmed) {
49
+ setShowHint(true);
50
+ return;
51
+ }
52
+ onConfirm();
53
+ },
54
+ modifiers: confirmed ? ['small'] : ['small', 'disabled'],
55
+ textButton: confirmLabel
56
+ }];
57
+ return /*#__PURE__*/_react["default"].createElement(_modal["default"], {
58
+ actions: alertActions,
59
+ onClose: onClose,
60
+ isAlert: true
61
+ }, children, confirmPhrase && /*#__PURE__*/_react["default"].createElement("div", {
62
+ className: "confirm-action__confirm"
63
+ }, /*#__PURE__*/_react["default"].createElement("label", {
64
+ htmlFor: phraseId
65
+ }, "Type ", /*#__PURE__*/_react["default"].createElement("strong", null, confirmPhrase), " to confirm"), /*#__PURE__*/_react["default"].createElement("input", {
66
+ id: phraseId,
67
+ type: "text",
68
+ inputMode: "numeric",
69
+ autoComplete: "off",
70
+ value: typed,
71
+ onChange: function onChange(_ref2) {
72
+ var value = _ref2.target.value;
73
+ setTyped(value);
74
+ setShowHint(false);
75
+ }
76
+ }), showHint && /*#__PURE__*/_react["default"].createElement("p", {
77
+ role: "alert"
78
+ }, "Type ", confirmPhrase, " to ", confirmLabel.toLowerCase(), " them all")));
79
+ };
80
+ ConfirmAction.propTypes = {
81
+ onClose: _propTypes["default"].func.isRequired,
82
+ onConfirm: _propTypes["default"].func.isRequired,
83
+ confirmLabel: _propTypes["default"].string.isRequired,
84
+ confirmPhrase: _propTypes["default"].string,
85
+ children: _propTypes["default"].node
86
+ };
87
+ ConfirmAction.defaultProps = {
88
+ confirmPhrase: null,
89
+ children: null
90
+ };
91
+ var _default = exports["default"] = ConfirmAction;
92
+ //# sourceMappingURL=ConfirmAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfirmAction.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_modal","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","normalise","value","replace","ConfirmAction","_ref","onClose","onConfirm","confirmLabel","confirmPhrase","children","phraseId","useId","_useState","useState","_useState2","_slicedToArray2","typed","setTyped","_useState3","_useState4","showHint","setShowHint","confirmed","alertActions","callback","event","stopPropagation","modifiers","textButton","createElement","actions","isAlert","className","htmlFor","id","type","inputMode","autoComplete","onChange","_ref2","target","role","toLowerCase","propTypes","PropTypes","func","isRequired","string","node","defaultProps","_default","exports"],"sources":["../../../src/components/ConfirmAction/ConfirmAction.js"],"sourcesContent":["import React, { useId, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport Modal from '@blaze-react/modal';\n\nconst normalise = value => value.replace(/[\\s,]/g, '');\n\n// with confirmPhrase, confirming only runs once the phrase has been typed, for large or irreversible actions\nconst ConfirmAction = ({ onClose, onConfirm, confirmLabel, confirmPhrase, children }) => {\n const phraseId = useId();\n const [typed, setTyped] = useState('');\n const [showHint, setShowHint] = useState(false);\n const confirmed = !confirmPhrase || normalise(typed) === normalise(confirmPhrase);\n\n const alertActions = [\n {\n callback: event => {\n event.stopPropagation();\n if (!confirmed) {\n setShowHint(true);\n return;\n }\n onConfirm();\n },\n modifiers: confirmed ? ['small'] : ['small', 'disabled'],\n textButton: confirmLabel\n }\n ];\n\n return (\n <Modal actions={alertActions} onClose={onClose} isAlert>\n {children}\n {confirmPhrase && (\n <div className=\"confirm-action__confirm\">\n <label htmlFor={phraseId}>\n Type <strong>{confirmPhrase}</strong> to confirm\n </label>\n <input\n id={phraseId}\n type=\"text\"\n inputMode=\"numeric\"\n autoComplete=\"off\"\n value={typed}\n onChange={({ target: { value } }) => {\n setTyped(value);\n setShowHint(false);\n }}\n />\n {showHint && (\n <p role=\"alert\">\n Type {confirmPhrase} to {confirmLabel.toLowerCase()} them all\n </p>\n )}\n </div>\n )}\n </Modal>\n );\n};\n\nConfirmAction.propTypes = {\n onClose: PropTypes.func.isRequired,\n onConfirm: PropTypes.func.isRequired,\n confirmLabel: PropTypes.string.isRequired,\n confirmPhrase: PropTypes.string,\n children: PropTypes.node\n};\n\nConfirmAction.defaultProps = {\n confirmPhrase: null,\n children: null\n};\n\nexport default ConfirmAction;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAD,sBAAA,CAAAF,OAAA;AAAuC,SAAAI,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAN,wBAAAM,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,cAAAR,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAEvC,IAAMW,SAAS,GAAG,SAAZA,SAASA,CAAGC,KAAK;EAAA,OAAIA,KAAK,CAACC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;AAAA;;AAEtD;AACA,IAAMC,aAAa,GAAG,SAAhBA,aAAaA,CAAAC,IAAA,EAAsE;EAAA,IAAhEC,OAAO,GAAAD,IAAA,CAAPC,OAAO;IAAEC,SAAS,GAAAF,IAAA,CAATE,SAAS;IAAEC,YAAY,GAAAH,IAAA,CAAZG,YAAY;IAAEC,aAAa,GAAAJ,IAAA,CAAbI,aAAa;IAAEC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;EAChF,IAAMC,QAAQ,GAAG,IAAAC,YAAK,EAAC,CAAC;EACxB,IAAAC,SAAA,GAA0B,IAAAC,eAAQ,EAAC,EAAE,CAAC;IAAAC,UAAA,OAAAC,eAAA,aAAAH,SAAA;IAA/BI,KAAK,GAAAF,UAAA;IAAEG,QAAQ,GAAAH,UAAA;EACtB,IAAAI,UAAA,GAAgC,IAAAL,eAAQ,EAAC,KAAK,CAAC;IAAAM,UAAA,OAAAJ,eAAA,aAAAG,UAAA;IAAxCE,QAAQ,GAAAD,UAAA;IAAEE,WAAW,GAAAF,UAAA;EAC5B,IAAMG,SAAS,GAAG,CAACd,aAAa,IAAIR,SAAS,CAACgB,KAAK,CAAC,KAAKhB,SAAS,CAACQ,aAAa,CAAC;EAEjF,IAAMe,YAAY,GAAG,CACnB;IACEC,QAAQ,EAAE,SAAVA,QAAQA,CAAEC,KAAK,EAAI;MACjBA,KAAK,CAACC,eAAe,CAAC,CAAC;MACvB,IAAI,CAACJ,SAAS,EAAE;QACdD,WAAW,CAAC,IAAI,CAAC;QACjB;MACF;MACAf,SAAS,CAAC,CAAC;IACb,CAAC;IACDqB,SAAS,EAAEL,SAAS,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC;IACxDM,UAAU,EAAErB;EACd,CAAC,CACF;EAED,oBACEjC,MAAA,YAAAuD,aAAA,CAAClD,MAAA,WAAK;IAACmD,OAAO,EAAEP,YAAa;IAAClB,OAAO,EAAEA,OAAQ;IAAC0B,OAAO;EAAA,GACpDtB,QAAQ,EACRD,aAAa,iBACZlC,MAAA,YAAAuD,aAAA;IAAKG,SAAS,EAAC;EAAyB,gBACtC1D,MAAA,YAAAuD,aAAA;IAAOI,OAAO,EAAEvB;EAAS,GAAC,OACnB,eAAApC,MAAA,YAAAuD,aAAA,iBAASrB,aAAsB,CAAC,eAChC,CAAC,eACRlC,MAAA,YAAAuD,aAAA;IACEK,EAAE,EAAExB,QAAS;IACbyB,IAAI,EAAC,MAAM;IACXC,SAAS,EAAC,SAAS;IACnBC,YAAY,EAAC,KAAK;IAClBpC,KAAK,EAAEe,KAAM;IACbsB,QAAQ,EAAE,SAAVA,QAAQA,CAAAC,KAAA,EAA6B;MAAA,IAAdtC,KAAK,GAAAsC,KAAA,CAAfC,MAAM,CAAIvC,KAAK;MAC1BgB,QAAQ,CAAChB,KAAK,CAAC;MACfoB,WAAW,CAAC,KAAK,CAAC;IACpB;EAAE,CACH,CAAC,EACDD,QAAQ,iBACP9C,MAAA,YAAAuD,aAAA;IAAGY,IAAI,EAAC;EAAO,GAAC,OACT,EAACjC,aAAa,EAAC,MAAI,EAACD,YAAY,CAACmC,WAAW,CAAC,CAAC,EAAC,WACnD,CAEF,CAEF,CAAC;AAEZ,CAAC;AAEDvC,aAAa,CAACwC,SAAS,GAAG;EACxBtC,OAAO,EAAEuC,qBAAS,CAACC,IAAI,CAACC,UAAU;EAClCxC,SAAS,EAAEsC,qBAAS,CAACC,IAAI,CAACC,UAAU;EACpCvC,YAAY,EAAEqC,qBAAS,CAACG,MAAM,CAACD,UAAU;EACzCtC,aAAa,EAAEoC,qBAAS,CAACG,MAAM;EAC/BtC,QAAQ,EAAEmC,qBAAS,CAACI;AACtB,CAAC;AAED7C,aAAa,CAAC8C,YAAY,GAAG;EAC3BzC,aAAa,EAAE,IAAI;EACnBC,QAAQ,EAAE;AACZ,CAAC;AAAC,IAAAyC,QAAA,GAAAC,OAAA,cAEahD,aAAa","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.define-property.js");
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+ var _ConfirmAction = _interopRequireDefault(require("./ConfirmAction"));
10
+ var _default = exports["default"] = _ConfirmAction["default"];
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["_ConfirmAction","_interopRequireDefault","require","_default","exports","ConfirmAction"],"sources":["../../../src/components/ConfirmAction/index.js"],"sourcesContent":["import ConfirmAction from './ConfirmAction';\n\nexport default ConfirmAction;\n"],"mappings":";;;;;;;;AAAA,IAAAA,cAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4C,IAAAC,QAAA,GAAAC,OAAA,cAE7BC,yBAAa","ignoreList":[]}
@@ -8,32 +8,28 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports["default"] = void 0;
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
- var _modal = _interopRequireDefault(require("@blaze-react/modal"));
11
+ var _ConfirmAction = _interopRequireDefault(require("../ConfirmAction"));
12
12
  var DeleteAction = function DeleteAction(_ref) {
13
13
  var onClose = _ref.onClose,
14
14
  deleteAction = _ref.deleteAction,
15
- itemName = _ref.itemName;
16
- var alertActions = [{
17
- callback: function callback(event) {
18
- event.stopPropagation();
19
- deleteAction();
20
- },
21
- modifiers: ['small'],
22
- textButton: 'Delete'
23
- }];
24
- return /*#__PURE__*/_react["default"].createElement(_modal["default"], {
25
- actions: alertActions,
15
+ itemName = _ref.itemName,
16
+ confirmPhrase = _ref.confirmPhrase;
17
+ return /*#__PURE__*/_react["default"].createElement(_ConfirmAction["default"], {
26
18
  onClose: onClose,
27
- isAlert: true
19
+ onConfirm: deleteAction,
20
+ confirmLabel: "Delete",
21
+ confirmPhrase: confirmPhrase
28
22
  }, /*#__PURE__*/_react["default"].createElement("p", null, "You are about to delete: ", /*#__PURE__*/_react["default"].createElement("strong", null, itemName)));
29
23
  };
30
24
  DeleteAction.propTypes = {
31
25
  onClose: _propTypes["default"].func.isRequired,
32
26
  deleteAction: _propTypes["default"].func.isRequired,
33
- itemName: _propTypes["default"].string
27
+ itemName: _propTypes["default"].string,
28
+ confirmPhrase: _propTypes["default"].string
34
29
  };
35
30
  DeleteAction.defaultProps = {
36
- itemName: ''
31
+ itemName: '',
32
+ confirmPhrase: null
37
33
  };
38
34
  var _default = exports["default"] = DeleteAction;
39
35
  //# sourceMappingURL=DeleteAction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DeleteAction.js","names":["_react","_interopRequireDefault","require","_propTypes","_modal","DeleteAction","_ref","onClose","deleteAction","itemName","alertActions","callback","event","stopPropagation","modifiers","textButton","createElement","actions","isAlert","propTypes","PropTypes","func","isRequired","string","defaultProps","_default","exports"],"sources":["../../../src/components/DeleteAction/DeleteAction.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Modal from '@blaze-react/modal';\n\nconst DeleteAction = ({ onClose, deleteAction, itemName }) => {\n const alertActions = [\n {\n callback: event => {\n event.stopPropagation();\n deleteAction();\n },\n modifiers: ['small'],\n textButton: 'Delete'\n }\n ];\n\n return (\n <Modal actions={alertActions} onClose={onClose} isAlert>\n <p>\n You are about to delete: <strong>{itemName}</strong>\n </p>\n </Modal>\n );\n};\n\nDeleteAction.propTypes = {\n onClose: PropTypes.func.isRequired,\n deleteAction: PropTypes.func.isRequired,\n itemName: PropTypes.string\n};\n\nDeleteAction.defaultProps = {\n itemName: ''\n};\n\nexport default DeleteAction;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,IAAMG,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAA4C;EAAA,IAAtCC,OAAO,GAAAD,IAAA,CAAPC,OAAO;IAAEC,YAAY,GAAAF,IAAA,CAAZE,YAAY;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;EACrD,IAAMC,YAAY,GAAG,CACnB;IACEC,QAAQ,EAAE,SAAVA,QAAQA,CAAEC,KAAK,EAAI;MACjBA,KAAK,CAACC,eAAe,CAAC,CAAC;MACvBL,YAAY,CAAC,CAAC;IAChB,CAAC;IACDM,SAAS,EAAE,CAAC,OAAO,CAAC;IACpBC,UAAU,EAAE;EACd,CAAC,CACF;EAED,oBACEf,MAAA,YAAAgB,aAAA,CAACZ,MAAA,WAAK;IAACa,OAAO,EAAEP,YAAa;IAACH,OAAO,EAAEA,OAAQ;IAACW,OAAO;EAAA,gBACrDlB,MAAA,YAAAgB,aAAA,YAAG,2BACwB,eAAAhB,MAAA,YAAAgB,aAAA,iBAASP,QAAiB,CAClD,CACE,CAAC;AAEZ,CAAC;AAEDJ,YAAY,CAACc,SAAS,GAAG;EACvBZ,OAAO,EAAEa,qBAAS,CAACC,IAAI,CAACC,UAAU;EAClCd,YAAY,EAAEY,qBAAS,CAACC,IAAI,CAACC,UAAU;EACvCb,QAAQ,EAAEW,qBAAS,CAACG;AACtB,CAAC;AAEDlB,YAAY,CAACmB,YAAY,GAAG;EAC1Bf,QAAQ,EAAE;AACZ,CAAC;AAAC,IAAAgB,QAAA,GAAAC,OAAA,cAEarB,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"DeleteAction.js","names":["_react","_interopRequireDefault","require","_propTypes","_ConfirmAction","DeleteAction","_ref","onClose","deleteAction","itemName","confirmPhrase","createElement","onConfirm","confirmLabel","propTypes","PropTypes","func","isRequired","string","defaultProps","_default","exports"],"sources":["../../../src/components/DeleteAction/DeleteAction.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ConfirmAction from '../ConfirmAction';\n\nconst DeleteAction = ({ onClose, deleteAction, itemName, confirmPhrase }) => (\n <ConfirmAction\n onClose={onClose}\n onConfirm={deleteAction}\n confirmLabel=\"Delete\"\n confirmPhrase={confirmPhrase}>\n <p>\n You are about to delete: <strong>{itemName}</strong>\n </p>\n </ConfirmAction>\n);\n\nDeleteAction.propTypes = {\n onClose: PropTypes.func.isRequired,\n deleteAction: PropTypes.func.isRequired,\n itemName: PropTypes.string,\n confirmPhrase: PropTypes.string\n};\n\nDeleteAction.defaultProps = {\n itemName: '',\n confirmPhrase: null\n};\n\nexport default DeleteAction;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,cAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,IAAMG,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA;EAAA,IAAMC,OAAO,GAAAD,IAAA,CAAPC,OAAO;IAAEC,YAAY,GAAAF,IAAA,CAAZE,YAAY;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAEC,aAAa,GAAAJ,IAAA,CAAbI,aAAa;EAAA,oBACpEV,MAAA,YAAAW,aAAA,CAACP,cAAA,WAAa;IACZG,OAAO,EAAEA,OAAQ;IACjBK,SAAS,EAAEJ,YAAa;IACxBK,YAAY,EAAC,QAAQ;IACrBH,aAAa,EAAEA;EAAc,gBAC7BV,MAAA,YAAAW,aAAA,YAAG,2BACwB,eAAAX,MAAA,YAAAW,aAAA,iBAASF,QAAiB,CAClD,CACU,CAAC;AAAA,CACjB;AAEDJ,YAAY,CAACS,SAAS,GAAG;EACvBP,OAAO,EAAEQ,qBAAS,CAACC,IAAI,CAACC,UAAU;EAClCT,YAAY,EAAEO,qBAAS,CAACC,IAAI,CAACC,UAAU;EACvCR,QAAQ,EAAEM,qBAAS,CAACG,MAAM;EAC1BR,aAAa,EAAEK,qBAAS,CAACG;AAC3B,CAAC;AAEDb,YAAY,CAACc,YAAY,GAAG;EAC1BV,QAAQ,EAAE,EAAE;EACZC,aAAa,EAAE;AACjB,CAAC;AAAC,IAAAU,QAAA,GAAAC,OAAA,cAEahB,YAAY","ignoreList":[]}