@blaze-cms/admin 0.146.0-node18-tooltips.55 → 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.
- package/CHANGELOG.md +102 -44
- package/blaze.config.js +2 -1
- package/lib/components/ConfirmAction/ConfirmAction.js +92 -0
- package/lib/components/ConfirmAction/ConfirmAction.js.map +1 -0
- package/lib/components/ConfirmAction/index.js +11 -0
- package/lib/components/ConfirmAction/index.js.map +1 -0
- package/lib/components/DeleteAction/DeleteAction.js +11 -15
- package/lib/components/DeleteAction/DeleteAction.js.map +1 -1
- package/lib/components/PageHeader/HeaderIconButton.js +38 -0
- package/lib/components/PageHeader/HeaderIconButton.js.map +1 -0
- package/lib/components/PageHeader/PageHeader.js +84 -13
- package/lib/components/PageHeader/PageHeader.js.map +1 -1
- package/lib/components/PageHeader/TitleEditor.js +107 -0
- package/lib/components/PageHeader/TitleEditor.js.map +1 -0
- package/lib/index.js +7 -0
- package/lib/index.js.map +1 -1
- package/lib-es/components/ConfirmAction/ConfirmAction.js +68 -0
- package/lib-es/components/ConfirmAction/ConfirmAction.js.map +1 -0
- package/lib-es/components/ConfirmAction/index.js +3 -0
- package/lib-es/components/ConfirmAction/index.js.map +1 -0
- package/lib-es/components/DeleteAction/DeleteAction.js +13 -19
- package/lib-es/components/DeleteAction/DeleteAction.js.map +1 -1
- package/lib-es/components/PageHeader/HeaderIconButton.js +32 -0
- package/lib-es/components/PageHeader/HeaderIconButton.js.map +1 -0
- package/lib-es/components/PageHeader/PageHeader.js +80 -24
- package/lib-es/components/PageHeader/PageHeader.js.map +1 -1
- package/lib-es/components/PageHeader/TitleEditor.js +79 -0
- package/lib-es/components/PageHeader/TitleEditor.js.map +1 -0
- package/lib-es/index.js +2 -1
- package/lib-es/index.js.map +1 -1
- package/package.json +16 -15
- package/src/components/ConfirmAction/ConfirmAction.js +72 -0
- package/src/components/ConfirmAction/index.js +3 -0
- package/src/components/DeleteAction/DeleteAction.js +16 -23
- package/src/components/PageHeader/HeaderIconButton.js +27 -0
- package/src/components/PageHeader/PageHeader.js +90 -19
- package/src/components/PageHeader/TitleEditor.js +87 -0
- package/src/index.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +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.
|
|
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))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
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))
|
|
18
|
+
* display url in the admin ([#4065](https://github.com/thebyte9/blaze/issues/4065)) ([ada8f4b](https://github.com/thebyte9/blaze/commit/ada8f4b1d2a1799a87768160f36da693a58bedb6))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
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)
|
|
7
25
|
|
|
8
26
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
9
27
|
|
|
@@ -11,7 +29,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
29
|
|
|
12
30
|
|
|
13
31
|
|
|
14
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
15
44
|
|
|
16
45
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
17
46
|
|
|
@@ -19,7 +48,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
19
48
|
|
|
20
49
|
|
|
21
50
|
|
|
22
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
23
52
|
|
|
24
53
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
25
54
|
|
|
@@ -27,7 +56,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
27
56
|
|
|
28
57
|
|
|
29
58
|
|
|
30
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
31
60
|
|
|
32
61
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
33
62
|
|
|
@@ -35,7 +64,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
35
64
|
|
|
36
65
|
|
|
37
66
|
|
|
38
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
39
68
|
|
|
40
69
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
41
70
|
|
|
@@ -43,7 +72,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
43
72
|
|
|
44
73
|
|
|
45
74
|
|
|
46
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
47
76
|
|
|
48
77
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
49
78
|
|
|
@@ -51,18 +80,47 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
51
80
|
|
|
52
81
|
|
|
53
82
|
|
|
54
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
55
84
|
|
|
85
|
+
**Note:** Version bump only for package @blaze-cms/admin
|
|
56
86
|
|
|
57
|
-
### Bug Fixes
|
|
58
87
|
|
|
59
|
-
|
|
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
|
|
60
118
|
|
|
61
119
|
|
|
62
120
|
|
|
63
121
|
|
|
64
122
|
|
|
65
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
66
124
|
|
|
67
125
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
68
126
|
|
|
@@ -70,7 +128,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
70
128
|
|
|
71
129
|
|
|
72
130
|
|
|
73
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
74
132
|
|
|
75
133
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
76
134
|
|
|
@@ -78,7 +136,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
78
136
|
|
|
79
137
|
|
|
80
138
|
|
|
81
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
82
140
|
|
|
83
141
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
84
142
|
|
|
@@ -86,7 +144,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
86
144
|
|
|
87
145
|
|
|
88
146
|
|
|
89
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
90
148
|
|
|
91
149
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
92
150
|
|
|
@@ -94,7 +152,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
94
152
|
|
|
95
153
|
|
|
96
154
|
|
|
97
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
98
156
|
|
|
99
157
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
100
158
|
|
|
@@ -102,7 +160,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
102
160
|
|
|
103
161
|
|
|
104
162
|
|
|
105
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
106
164
|
|
|
107
165
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
108
166
|
|
|
@@ -110,7 +168,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
110
168
|
|
|
111
169
|
|
|
112
170
|
|
|
113
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
114
172
|
|
|
115
173
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
116
174
|
|
|
@@ -118,7 +176,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
118
176
|
|
|
119
177
|
|
|
120
178
|
|
|
121
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
122
180
|
|
|
123
181
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
124
182
|
|
|
@@ -126,7 +184,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
126
184
|
|
|
127
185
|
|
|
128
186
|
|
|
129
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
130
188
|
|
|
131
189
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
132
190
|
|
|
@@ -134,7 +192,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
134
192
|
|
|
135
193
|
|
|
136
194
|
|
|
137
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
138
196
|
|
|
139
197
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
140
198
|
|
|
@@ -142,7 +200,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
142
200
|
|
|
143
201
|
|
|
144
202
|
|
|
145
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
146
204
|
|
|
147
205
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
148
206
|
|
|
@@ -150,7 +208,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
150
208
|
|
|
151
209
|
|
|
152
210
|
|
|
153
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
154
212
|
|
|
155
213
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
156
214
|
|
|
@@ -158,7 +216,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
158
216
|
|
|
159
217
|
|
|
160
218
|
|
|
161
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
162
220
|
|
|
163
221
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
164
222
|
|
|
@@ -166,7 +224,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
166
224
|
|
|
167
225
|
|
|
168
226
|
|
|
169
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
170
228
|
|
|
171
229
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
172
230
|
|
|
@@ -174,7 +232,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
174
232
|
|
|
175
233
|
|
|
176
234
|
|
|
177
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
178
236
|
|
|
179
237
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
180
238
|
|
|
@@ -182,7 +240,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
182
240
|
|
|
183
241
|
|
|
184
242
|
|
|
185
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
186
244
|
|
|
187
245
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
188
246
|
|
|
@@ -190,7 +248,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
190
248
|
|
|
191
249
|
|
|
192
250
|
|
|
193
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
194
252
|
|
|
195
253
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
196
254
|
|
|
@@ -198,7 +256,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
198
256
|
|
|
199
257
|
|
|
200
258
|
|
|
201
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
202
260
|
|
|
203
261
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
204
262
|
|
|
@@ -206,7 +264,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
206
264
|
|
|
207
265
|
|
|
208
266
|
|
|
209
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
210
268
|
|
|
211
269
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
212
270
|
|
|
@@ -214,7 +272,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
214
272
|
|
|
215
273
|
|
|
216
274
|
|
|
217
|
-
# [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-
|
|
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)
|
|
218
276
|
|
|
219
277
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
220
278
|
|
|
@@ -222,7 +280,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
222
280
|
|
|
223
281
|
|
|
224
282
|
|
|
225
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
226
284
|
|
|
227
285
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
228
286
|
|
|
@@ -230,7 +288,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
230
288
|
|
|
231
289
|
|
|
232
290
|
|
|
233
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
234
292
|
|
|
235
293
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
236
294
|
|
|
@@ -238,7 +296,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
238
296
|
|
|
239
297
|
|
|
240
298
|
|
|
241
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
242
300
|
|
|
243
301
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
244
302
|
|
|
@@ -246,7 +304,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
246
304
|
|
|
247
305
|
|
|
248
306
|
|
|
249
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
250
308
|
|
|
251
309
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
252
310
|
|
|
@@ -254,7 +312,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
254
312
|
|
|
255
313
|
|
|
256
314
|
|
|
257
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
258
316
|
|
|
259
317
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
260
318
|
|
|
@@ -262,7 +320,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
262
320
|
|
|
263
321
|
|
|
264
322
|
|
|
265
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
266
324
|
|
|
267
325
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
268
326
|
|
|
@@ -270,7 +328,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
270
328
|
|
|
271
329
|
|
|
272
330
|
|
|
273
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
274
332
|
|
|
275
333
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
276
334
|
|
|
@@ -278,7 +336,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
278
336
|
|
|
279
337
|
|
|
280
338
|
|
|
281
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
282
340
|
|
|
283
341
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
284
342
|
|
|
@@ -286,7 +344,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
286
344
|
|
|
287
345
|
|
|
288
346
|
|
|
289
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
290
348
|
|
|
291
349
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
292
350
|
|
|
@@ -294,7 +352,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
294
352
|
|
|
295
353
|
|
|
296
354
|
|
|
297
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
298
356
|
|
|
299
357
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
300
358
|
|
|
@@ -302,7 +360,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
302
360
|
|
|
303
361
|
|
|
304
362
|
|
|
305
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
306
364
|
|
|
307
365
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
308
366
|
|
|
@@ -310,7 +368,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
310
368
|
|
|
311
369
|
|
|
312
370
|
|
|
313
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
314
372
|
|
|
315
373
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
316
374
|
|
|
@@ -318,7 +376,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
318
376
|
|
|
319
377
|
|
|
320
378
|
|
|
321
|
-
# [0.146.0-node18-tooltips.
|
|
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)
|
|
322
380
|
|
|
323
381
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
324
382
|
|
|
@@ -326,7 +384,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
326
384
|
|
|
327
385
|
|
|
328
386
|
|
|
329
|
-
# [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-
|
|
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)
|
|
330
388
|
|
|
331
389
|
**Note:** Version bump only for package @blaze-cms/admin
|
|
332
390
|
|
|
@@ -334,7 +392,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
334
392
|
|
|
335
393
|
|
|
336
394
|
|
|
337
|
-
# [0.146.0-node18-tooltips.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.146.0-node18-tooltips.0) (2025-
|
|
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)
|
|
338
396
|
|
|
339
397
|
|
|
340
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,7 +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
|
-
|
|
24
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":"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","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
|
|
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
|
-
|
|
17
|
-
|
|
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
|
-
|
|
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","
|
|
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":[]}
|