@blaze-cms/plugin-admin-core-ui 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.
- package/CHANGELOG.md +81 -30
- package/lib/components/Layout/Layout.js +23 -3
- package/lib/components/Layout/Layout.js.map +1 -1
- package/lib/constants.js +2 -1
- package/lib/constants.js.map +1 -1
- package/lib-es/components/Layout/Layout.js +22 -1
- package/lib-es/components/Layout/Layout.js.map +1 -1
- package/lib-es/constants.js +2 -1
- package/lib-es/constants.js.map +1 -1
- package/package.json +8 -8
- package/src/components/Layout/Layout.js +21 -1
- package/src/constants.js +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,18 @@
|
|
|
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
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **page-builder-ui:** editor view full screen mode ([#5311](https://github.com/thebyte9/blaze/issues/5311)) ([f2a996e](https://github.com/thebyte9/blaze/commit/f2a996edc722d31385da5796b0decd74f4176ef7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [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
18
|
|
|
8
19
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
9
20
|
|
|
@@ -11,7 +22,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
22
|
|
|
12
23
|
|
|
13
24
|
|
|
14
|
-
# [0.146.0-node18-tooltips.
|
|
25
|
+
# [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)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* fix lint and tests errors across repository ([#5047](https://github.com/thebyte9/blaze/issues/5047)) ([c2b86dd](https://github.com/thebyte9/blaze/commit/c2b86dd7aebb12198a49097692a549a9f9378d6e))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [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
37
|
|
|
16
38
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
17
39
|
|
|
@@ -19,7 +41,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
19
41
|
|
|
20
42
|
|
|
21
43
|
|
|
22
|
-
# [0.146.0-node18-tooltips.
|
|
44
|
+
# [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
45
|
|
|
24
46
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
25
47
|
|
|
@@ -27,7 +49,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
27
49
|
|
|
28
50
|
|
|
29
51
|
|
|
30
|
-
# [0.146.0-node18-tooltips.
|
|
52
|
+
# [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
53
|
|
|
32
54
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
33
55
|
|
|
@@ -35,7 +57,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
35
57
|
|
|
36
58
|
|
|
37
59
|
|
|
38
|
-
# [0.146.0-node18-tooltips.
|
|
60
|
+
# [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)
|
|
39
61
|
|
|
40
62
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
41
63
|
|
|
@@ -43,7 +65,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
43
65
|
|
|
44
66
|
|
|
45
67
|
|
|
46
|
-
# [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-
|
|
68
|
+
# [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)
|
|
47
69
|
|
|
48
70
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
49
71
|
|
|
@@ -51,18 +73,47 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
51
73
|
|
|
52
74
|
|
|
53
75
|
|
|
54
|
-
# [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-
|
|
76
|
+
# [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)
|
|
55
77
|
|
|
78
|
+
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
56
79
|
|
|
57
|
-
### Bug Fixes
|
|
58
80
|
|
|
59
|
-
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
# [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)
|
|
85
|
+
|
|
86
|
+
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
# [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)
|
|
93
|
+
|
|
94
|
+
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
# [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)
|
|
101
|
+
|
|
102
|
+
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
# [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)
|
|
109
|
+
|
|
110
|
+
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
60
111
|
|
|
61
112
|
|
|
62
113
|
|
|
63
114
|
|
|
64
115
|
|
|
65
|
-
# [0.146.0-node18-tooltips.
|
|
116
|
+
# [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)
|
|
66
117
|
|
|
67
118
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
68
119
|
|
|
@@ -70,7 +121,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
70
121
|
|
|
71
122
|
|
|
72
123
|
|
|
73
|
-
# [0.146.0-node18-tooltips.
|
|
124
|
+
# [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)
|
|
74
125
|
|
|
75
126
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
76
127
|
|
|
@@ -78,7 +129,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
78
129
|
|
|
79
130
|
|
|
80
131
|
|
|
81
|
-
# [0.146.0-node18-tooltips.
|
|
132
|
+
# [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)
|
|
82
133
|
|
|
83
134
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
84
135
|
|
|
@@ -86,7 +137,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
86
137
|
|
|
87
138
|
|
|
88
139
|
|
|
89
|
-
# [0.146.0-node18-tooltips.
|
|
140
|
+
# [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)
|
|
90
141
|
|
|
91
142
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
92
143
|
|
|
@@ -94,7 +145,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
94
145
|
|
|
95
146
|
|
|
96
147
|
|
|
97
|
-
# [0.146.0-node18-tooltips.
|
|
148
|
+
# [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)
|
|
98
149
|
|
|
99
150
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
100
151
|
|
|
@@ -102,7 +153,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
102
153
|
|
|
103
154
|
|
|
104
155
|
|
|
105
|
-
# [0.146.0-node18-tooltips.
|
|
156
|
+
# [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)
|
|
106
157
|
|
|
107
158
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
108
159
|
|
|
@@ -110,7 +161,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
110
161
|
|
|
111
162
|
|
|
112
163
|
|
|
113
|
-
# [0.146.0-node18-tooltips.
|
|
164
|
+
# [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)
|
|
114
165
|
|
|
115
166
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
116
167
|
|
|
@@ -118,7 +169,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
118
169
|
|
|
119
170
|
|
|
120
171
|
|
|
121
|
-
# [0.146.0-node18-tooltips.
|
|
172
|
+
# [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)
|
|
122
173
|
|
|
123
174
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
124
175
|
|
|
@@ -126,7 +177,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
126
177
|
|
|
127
178
|
|
|
128
179
|
|
|
129
|
-
# [0.146.0-node18-tooltips.
|
|
180
|
+
# [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)
|
|
130
181
|
|
|
131
182
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
132
183
|
|
|
@@ -134,7 +185,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
134
185
|
|
|
135
186
|
|
|
136
187
|
|
|
137
|
-
# [0.146.0-node18-tooltips.
|
|
188
|
+
# [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)
|
|
138
189
|
|
|
139
190
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
140
191
|
|
|
@@ -142,7 +193,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
142
193
|
|
|
143
194
|
|
|
144
195
|
|
|
145
|
-
# [0.146.0-node18-tooltips.
|
|
196
|
+
# [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)
|
|
146
197
|
|
|
147
198
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
148
199
|
|
|
@@ -150,7 +201,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
150
201
|
|
|
151
202
|
|
|
152
203
|
|
|
153
|
-
# [0.146.0-node18-tooltips.
|
|
204
|
+
# [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)
|
|
154
205
|
|
|
155
206
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
156
207
|
|
|
@@ -158,7 +209,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
158
209
|
|
|
159
210
|
|
|
160
211
|
|
|
161
|
-
# [0.146.0-node18-tooltips.
|
|
212
|
+
# [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)
|
|
162
213
|
|
|
163
214
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
164
215
|
|
|
@@ -166,7 +217,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
166
217
|
|
|
167
218
|
|
|
168
219
|
|
|
169
|
-
# [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-
|
|
220
|
+
# [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)
|
|
170
221
|
|
|
171
222
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
172
223
|
|
|
@@ -174,7 +225,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
174
225
|
|
|
175
226
|
|
|
176
227
|
|
|
177
|
-
# [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-
|
|
228
|
+
# [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)
|
|
178
229
|
|
|
179
230
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
180
231
|
|
|
@@ -182,7 +233,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
182
233
|
|
|
183
234
|
|
|
184
235
|
|
|
185
|
-
# [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-
|
|
236
|
+
# [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)
|
|
186
237
|
|
|
187
238
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
188
239
|
|
|
@@ -190,7 +241,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
190
241
|
|
|
191
242
|
|
|
192
243
|
|
|
193
|
-
# [0.146.0-node18-tooltips.
|
|
244
|
+
# [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)
|
|
194
245
|
|
|
195
246
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
196
247
|
|
|
@@ -198,7 +249,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
198
249
|
|
|
199
250
|
|
|
200
251
|
|
|
201
|
-
# [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-
|
|
252
|
+
# [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)
|
|
202
253
|
|
|
203
254
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
204
255
|
|
|
@@ -206,7 +257,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
206
257
|
|
|
207
258
|
|
|
208
259
|
|
|
209
|
-
# [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-
|
|
260
|
+
# [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)
|
|
210
261
|
|
|
211
262
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
212
263
|
|
|
@@ -214,7 +265,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
214
265
|
|
|
215
266
|
|
|
216
267
|
|
|
217
|
-
# [0.146.0-node18-tooltips.
|
|
268
|
+
# [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)
|
|
218
269
|
|
|
219
270
|
**Note:** Version bump only for package @blaze-cms/plugin-admin-core-ui
|
|
220
271
|
|
|
@@ -222,7 +273,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
222
273
|
|
|
223
274
|
|
|
224
275
|
|
|
225
|
-
# [0.146.0-node18-tooltips.0](https://github.com/thebyte9/blaze/compare/v0.145.0...v0.146.0-node18-tooltips.0) (2025-
|
|
276
|
+
# [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)
|
|
226
277
|
|
|
227
278
|
|
|
228
279
|
### Bug Fixes
|
|
@@ -24,6 +24,7 @@ require("@blaze-cms/admin-ui-styles/main.scss");
|
|
|
24
24
|
var _components2 = require("./components");
|
|
25
25
|
var _Background = _interopRequireDefault(require("./Background"));
|
|
26
26
|
var _Header = _interopRequireDefault(require("../Header"));
|
|
27
|
+
var _constants = require("../../constants");
|
|
27
28
|
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); }
|
|
28
29
|
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; }
|
|
29
30
|
var Layout = function Layout(_ref) {
|
|
@@ -35,6 +36,25 @@ var Layout = function Layout(_ref) {
|
|
|
35
36
|
var onMenuClick = function onMenuClick() {
|
|
36
37
|
return setOpenMenu(!isOpenMenu);
|
|
37
38
|
};
|
|
39
|
+
var isOpenMenuRef = (0, _react.useRef)(isOpenMenu);
|
|
40
|
+
isOpenMenuRef.current = isOpenMenu;
|
|
41
|
+
(0, _react.useEffect)(function () {
|
|
42
|
+
var openBeforeFullScreen = null;
|
|
43
|
+
var onFullScreen = function onFullScreen(_ref2) {
|
|
44
|
+
var isFullScreen = _ref2.detail.isFullScreen;
|
|
45
|
+
if (isFullScreen) {
|
|
46
|
+
openBeforeFullScreen = isOpenMenuRef.current;
|
|
47
|
+
setOpenMenu(false);
|
|
48
|
+
} else if (openBeforeFullScreen !== null) {
|
|
49
|
+
setOpenMenu(openBeforeFullScreen);
|
|
50
|
+
openBeforeFullScreen = null;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
window.addEventListener(_constants.EDITOR_FULL_SCREEN_EVENT, onFullScreen);
|
|
54
|
+
return function () {
|
|
55
|
+
return window.removeEventListener(_constants.EDITOR_FULL_SCREEN_EVENT, onFullScreen);
|
|
56
|
+
};
|
|
57
|
+
}, []);
|
|
38
58
|
var simpleLayout = window.location !== window.parent.location;
|
|
39
59
|
var wrapperClass = simpleLayout ? ' grid--site-container--simle-layout' : '';
|
|
40
60
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -42,9 +62,9 @@ var Layout = function Layout(_ref) {
|
|
|
42
62
|
}, /*#__PURE__*/_react["default"].createElement(_components.Query, {
|
|
43
63
|
query: (0, _adminUiUtils.getQuery)('GET_USER_AUTH_DATA'),
|
|
44
64
|
errorPolicy: "all"
|
|
45
|
-
}, function (
|
|
46
|
-
var
|
|
47
|
-
data =
|
|
65
|
+
}, function (_ref3) {
|
|
66
|
+
var _ref3$data = _ref3.data,
|
|
67
|
+
data = _ref3$data === void 0 ? {} : _ref3$data;
|
|
48
68
|
var _data$session = data.session,
|
|
49
69
|
_data$session2 = _data$session === void 0 ? {} : _data$session,
|
|
50
70
|
isLoggedIn = _data$session2.isLoggedIn,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_components","_adminUiUtils","_pluginAuthUi","_coreAuthUi","_components2","_Background","_Header","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Layout","_ref","children","_useState","useState","_useState2","_slicedToArray2","isOpenMenu","setOpenMenu","onMenuClick","
|
|
1
|
+
{"version":3,"file":"Layout.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_components","_adminUiUtils","_pluginAuthUi","_coreAuthUi","_components2","_Background","_Header","_constants","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","Layout","_ref","children","_useState","useState","_useState2","_slicedToArray2","isOpenMenu","setOpenMenu","onMenuClick","isOpenMenuRef","useRef","current","useEffect","openBeforeFullScreen","onFullScreen","_ref2","isFullScreen","detail","window","addEventListener","EDITOR_FULL_SCREEN_EVENT","removeEventListener","simpleLayout","location","parent","wrapperClass","createElement","className","concat","Query","query","getQuery","errorPolicy","_ref3","_ref3$data","data","_data$session","session","_data$session2","isLoggedIn","_data$session2$userDa","userData","Fragment","BlazeAuthContextWrapper","LoginModal","Grid","Login","propTypes","PropTypes","oneOfType","arrayOf","node","isRequired","_default","exports"],"sources":["../../../src/components/Layout/Layout.js"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Query } from '@apollo/client/react/components';\nimport { getQuery } from '@blaze-cms/admin-ui-utils';\nimport { Login, LoginModal } from '@blaze-cms/plugin-auth-ui';\nimport { BlazeAuthContextWrapper } from '@blaze-cms/core-auth-ui';\nimport '@blaze-cms/admin-ui-styles/main.scss';\nimport { Grid } from './components';\nimport Background from './Background';\n\nimport Header from '../Header';\nimport { EDITOR_FULL_SCREEN_EVENT } from '../../constants';\n\nconst Layout = ({ children }) => {\n const [isOpenMenu, setOpenMenu] = useState(true);\n\n const onMenuClick = () => setOpenMenu(!isOpenMenu);\n const isOpenMenuRef = useRef(isOpenMenu);\n isOpenMenuRef.current = isOpenMenu;\n\n useEffect(() => {\n let openBeforeFullScreen = null;\n\n const onFullScreen = ({ detail: { isFullScreen } }) => {\n if (isFullScreen) {\n openBeforeFullScreen = isOpenMenuRef.current;\n setOpenMenu(false);\n } else if (openBeforeFullScreen !== null) {\n setOpenMenu(openBeforeFullScreen);\n openBeforeFullScreen = null;\n }\n };\n\n window.addEventListener(EDITOR_FULL_SCREEN_EVENT, onFullScreen);\n return () => window.removeEventListener(EDITOR_FULL_SCREEN_EVENT, onFullScreen);\n }, []);\n\n const simpleLayout = window.location !== window.parent.location;\n const wrapperClass = simpleLayout ? ' grid--site-container--simle-layout' : '';\n\n return (\n <div className={`site-container grid--site-container${wrapperClass}`}>\n <Query query={getQuery('GET_USER_AUTH_DATA')} errorPolicy=\"all\">\n {({ data = {} }) => {\n const { session: { isLoggedIn, userData = {} } = {} } = data;\n\n return (\n <>\n {!simpleLayout && (\n <Header isLoggedIn={isLoggedIn} onMenuClick={onMenuClick} isOpenMenu={isOpenMenu} />\n )}\n {isLoggedIn ? (\n <BlazeAuthContextWrapper>\n {!simpleLayout && <LoginModal />}\n <Grid\n isOpenMenu={isOpenMenu}\n onMenuClick={onMenuClick}\n userData={userData}\n simpleLayout={simpleLayout}>\n {children}\n </Grid>\n </BlazeAuthContextWrapper>\n ) : (\n <Background>\n <Login />\n </Background>\n )}\n </>\n );\n }}\n </Query>\n </div>\n );\n};\n\nLayout.propTypes = {\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired\n};\n\nexport default Layout;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACAA,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAN,sBAAA,CAAAF,OAAA;AAEA,IAAAS,OAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,UAAA,GAAAV,OAAA;AAA2D,SAAAW,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,SAAAb,wBAAAa,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,C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B,YAAY,iBACZxD,MAAA,YAAA4D,aAAA,CAACjD,OAAA,WAAM;MAAC8D,UAAU,EAAEA,UAAW;MAAC/B,WAAW,EAAEA,WAAY;MAACF,UAAU,EAAEA;IAAW,CAAE,CACpF,EACAiC,UAAU,gBACTzE,MAAA,YAAA4D,aAAA,CAACpD,WAAA,CAAAqE,uBAAuB,QACrB,CAACrB,YAAY,iBAAIxD,MAAA,YAAA4D,aAAA,CAACrD,aAAA,CAAAuE,UAAU,MAAE,CAAC,eAChC9E,MAAA,YAAA4D,aAAA,CAACnD,YAAA,CAAAsE,IAAI;MACHvC,UAAU,EAAEA,UAAW;MACvBE,WAAW,EAAEA,WAAY;MACzBiC,QAAQ,EAAEA,QAAS;MACnBnB,YAAY,EAAEA;IAAa,GAC1BrB,QACG,CACiB,CAAC,gBAE1BnC,MAAA,YAAA4D,aAAA,CAAClD,WAAA,WAAU,qBACTV,MAAA,YAAA4D,aAAA,CAACrD,aAAA,CAAAyE,KAAK,MAAE,CACE,CAEd,CAAC;EAEP,CACK,CACJ,CAAC;AAEV,CAAC;AAED/C,MAAM,CAACgD,SAAS,GAAG;EACjB9C,QAAQ,EAAE+C,qBAAS,CAACC,SAAS,CAAC,CAACD,qBAAS,CAACE,OAAO,CAACF,qBAAS,CAACG,IAAI,CAAC,EAAEH,qBAAS,CAACG,IAAI,CAAC,CAAC,CAACC;AACrF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEavD,MAAM","ignoreList":[]}
|
package/lib/constants.js
CHANGED
|
@@ -4,7 +4,7 @@ require("core-js/modules/es.object.define-property.js");
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.PLUGIN_NAME = exports.LOGO_PROPS = exports.DOWN_ICON = exports.DEFAULT_LABEL = exports.ACTIVE_LABEL = void 0;
|
|
7
|
+
exports.PLUGIN_NAME = exports.LOGO_PROPS = exports.EDITOR_FULL_SCREEN_EVENT = exports.DOWN_ICON = exports.DEFAULT_LABEL = exports.ACTIVE_LABEL = void 0;
|
|
8
8
|
var PLUGIN_NAME = exports.PLUGIN_NAME = 'admin-core-ui';
|
|
9
9
|
var LOGO_PROPS = exports.LOGO_PROPS = {
|
|
10
10
|
src: process.env.BLAZE_ADMIN_HEAD_LOGO_URL || 'https://images.thisisblaze.com/logo-98-148.png'
|
|
@@ -18,4 +18,5 @@ var ACTIVE_LABEL = exports.ACTIVE_LABEL = {
|
|
|
18
18
|
icon: 'up'
|
|
19
19
|
};
|
|
20
20
|
var DOWN_ICON = exports.DOWN_ICON = 'down';
|
|
21
|
+
var EDITOR_FULL_SCREEN_EVENT = exports.EDITOR_FULL_SCREEN_EVENT = 'blaze:editor-full-screen';
|
|
21
22
|
//# sourceMappingURL=constants.js.map
|
package/lib/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":["PLUGIN_NAME","exports","LOGO_PROPS","src","process","env","BLAZE_ADMIN_HEAD_LOGO_URL","DEFAULT_LABEL","text","icon","ACTIVE_LABEL","DOWN_ICON"],"sources":["../src/constants.js"],"sourcesContent":["const PLUGIN_NAME = 'admin-core-ui';\nconst LOGO_PROPS = {\n src: process.env.BLAZE_ADMIN_HEAD_LOGO_URL || 'https://images.thisisblaze.com/logo-98-148.png'\n};\n\nconst DEFAULT_LABEL = {\n text: 'See more',\n icon: 'down'\n};\n\nconst ACTIVE_LABEL = {\n text: 'See less',\n icon: 'up'\n};\n\nconst DOWN_ICON = 'down';\n\nexport {
|
|
1
|
+
{"version":3,"file":"constants.js","names":["PLUGIN_NAME","exports","LOGO_PROPS","src","process","env","BLAZE_ADMIN_HEAD_LOGO_URL","DEFAULT_LABEL","text","icon","ACTIVE_LABEL","DOWN_ICON","EDITOR_FULL_SCREEN_EVENT"],"sources":["../src/constants.js"],"sourcesContent":["const PLUGIN_NAME = 'admin-core-ui';\nconst LOGO_PROPS = {\n src: process.env.BLAZE_ADMIN_HEAD_LOGO_URL || 'https://images.thisisblaze.com/logo-98-148.png'\n};\n\nconst DEFAULT_LABEL = {\n text: 'See more',\n icon: 'down'\n};\n\nconst ACTIVE_LABEL = {\n text: 'See less',\n icon: 'up'\n};\n\nconst DOWN_ICON = 'down';\n\nconst EDITOR_FULL_SCREEN_EVENT = 'blaze:editor-full-screen';\n\nexport {\n PLUGIN_NAME,\n LOGO_PROPS,\n ACTIVE_LABEL,\n DEFAULT_LABEL,\n DOWN_ICON,\n EDITOR_FULL_SCREEN_EVENT\n};\n"],"mappings":";;;;;;;AAAA,IAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,eAAe;AACnC,IAAME,UAAU,GAAAD,OAAA,CAAAC,UAAA,GAAG;EACjBC,GAAG,EAAEC,OAAO,CAACC,GAAG,CAACC,yBAAyB,IAAI;AAChD,CAAC;AAED,IAAMC,aAAa,GAAAN,OAAA,CAAAM,aAAA,GAAG;EACpBC,IAAI,EAAE,UAAU;EAChBC,IAAI,EAAE;AACR,CAAC;AAED,IAAMC,YAAY,GAAAT,OAAA,CAAAS,YAAA,GAAG;EACnBF,IAAI,EAAE,UAAU;EAChBC,IAAI,EAAE;AACR,CAAC;AAED,IAAME,SAAS,GAAAV,OAAA,CAAAU,SAAA,GAAG,MAAM;AAExB,IAAMC,wBAAwB,GAAAX,OAAA,CAAAW,wBAAA,GAAG,0BAA0B","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
1
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Query } from '@apollo/client/react/components';
|
|
4
4
|
import { getQuery } from '@blaze-cms/admin-ui-utils';
|
|
@@ -8,11 +8,32 @@ import '@blaze-cms/admin-ui-styles/main.scss';
|
|
|
8
8
|
import { Grid } from './components';
|
|
9
9
|
import Background from './Background';
|
|
10
10
|
import Header from '../Header';
|
|
11
|
+
import { EDITOR_FULL_SCREEN_EVENT } from '../../constants';
|
|
11
12
|
const Layout = ({
|
|
12
13
|
children
|
|
13
14
|
}) => {
|
|
14
15
|
const [isOpenMenu, setOpenMenu] = useState(true);
|
|
15
16
|
const onMenuClick = () => setOpenMenu(!isOpenMenu);
|
|
17
|
+
const isOpenMenuRef = useRef(isOpenMenu);
|
|
18
|
+
isOpenMenuRef.current = isOpenMenu;
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
let openBeforeFullScreen = null;
|
|
21
|
+
const onFullScreen = ({
|
|
22
|
+
detail: {
|
|
23
|
+
isFullScreen
|
|
24
|
+
}
|
|
25
|
+
}) => {
|
|
26
|
+
if (isFullScreen) {
|
|
27
|
+
openBeforeFullScreen = isOpenMenuRef.current;
|
|
28
|
+
setOpenMenu(false);
|
|
29
|
+
} else if (openBeforeFullScreen !== null) {
|
|
30
|
+
setOpenMenu(openBeforeFullScreen);
|
|
31
|
+
openBeforeFullScreen = null;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
window.addEventListener(EDITOR_FULL_SCREEN_EVENT, onFullScreen);
|
|
35
|
+
return () => window.removeEventListener(EDITOR_FULL_SCREEN_EVENT, onFullScreen);
|
|
36
|
+
}, []);
|
|
16
37
|
const simpleLayout = window.location !== window.parent.location;
|
|
17
38
|
const wrapperClass = simpleLayout ? ' grid--site-container--simle-layout' : '';
|
|
18
39
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.js","names":["React","useState","PropTypes","Query","getQuery","Login","LoginModal","BlazeAuthContextWrapper","Grid","Background","Header","Layout","children","isOpenMenu","setOpenMenu","onMenuClick","
|
|
1
|
+
{"version":3,"file":"Layout.js","names":["React","useEffect","useRef","useState","PropTypes","Query","getQuery","Login","LoginModal","BlazeAuthContextWrapper","Grid","Background","Header","EDITOR_FULL_SCREEN_EVENT","Layout","children","isOpenMenu","setOpenMenu","onMenuClick","isOpenMenuRef","current","openBeforeFullScreen","onFullScreen","detail","isFullScreen","window","addEventListener","removeEventListener","simpleLayout","location","parent","wrapperClass","createElement","className","query","errorPolicy","data","session","isLoggedIn","userData","Fragment","propTypes","oneOfType","arrayOf","node","isRequired"],"sources":["../../../src/components/Layout/Layout.js"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Query } from '@apollo/client/react/components';\nimport { getQuery } from '@blaze-cms/admin-ui-utils';\nimport { Login, LoginModal } from '@blaze-cms/plugin-auth-ui';\nimport { BlazeAuthContextWrapper } from '@blaze-cms/core-auth-ui';\nimport '@blaze-cms/admin-ui-styles/main.scss';\nimport { Grid } from './components';\nimport Background from './Background';\n\nimport Header from '../Header';\nimport { EDITOR_FULL_SCREEN_EVENT } from '../../constants';\n\nconst Layout = ({ children }) => {\n const [isOpenMenu, setOpenMenu] = useState(true);\n\n const onMenuClick = () => setOpenMenu(!isOpenMenu);\n const isOpenMenuRef = useRef(isOpenMenu);\n isOpenMenuRef.current = isOpenMenu;\n\n useEffect(() => {\n let openBeforeFullScreen = null;\n\n const onFullScreen = ({ detail: { isFullScreen } }) => {\n if (isFullScreen) {\n openBeforeFullScreen = isOpenMenuRef.current;\n setOpenMenu(false);\n } else if (openBeforeFullScreen !== null) {\n setOpenMenu(openBeforeFullScreen);\n openBeforeFullScreen = null;\n }\n };\n\n window.addEventListener(EDITOR_FULL_SCREEN_EVENT, onFullScreen);\n return () => window.removeEventListener(EDITOR_FULL_SCREEN_EVENT, onFullScreen);\n }, []);\n\n const simpleLayout = window.location !== window.parent.location;\n const wrapperClass = simpleLayout ? ' grid--site-container--simle-layout' : '';\n\n return (\n <div className={`site-container grid--site-container${wrapperClass}`}>\n <Query query={getQuery('GET_USER_AUTH_DATA')} errorPolicy=\"all\">\n {({ data = {} }) => {\n const { session: { isLoggedIn, userData = {} } = {} } = data;\n\n return (\n <>\n {!simpleLayout && (\n <Header isLoggedIn={isLoggedIn} onMenuClick={onMenuClick} isOpenMenu={isOpenMenu} />\n )}\n {isLoggedIn ? (\n <BlazeAuthContextWrapper>\n {!simpleLayout && <LoginModal />}\n <Grid\n isOpenMenu={isOpenMenu}\n onMenuClick={onMenuClick}\n userData={userData}\n simpleLayout={simpleLayout}>\n {children}\n </Grid>\n </BlazeAuthContextWrapper>\n ) : (\n <Background>\n <Login />\n </Background>\n )}\n </>\n );\n }}\n </Query>\n </div>\n );\n};\n\nLayout.propTypes = {\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired\n};\n\nexport default Layout;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC1D,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,KAAK,QAAQ,iCAAiC;AACvD,SAASC,QAAQ,QAAQ,2BAA2B;AACpD,SAASC,KAAK,EAAEC,UAAU,QAAQ,2BAA2B;AAC7D,SAASC,uBAAuB,QAAQ,yBAAyB;AACjE,OAAO,sCAAsC;AAC7C,SAASC,IAAI,QAAQ,cAAc;AACnC,OAAOC,UAAU,MAAM,cAAc;AAErC,OAAOC,MAAM,MAAM,WAAW;AAC9B,SAASC,wBAAwB,QAAQ,iBAAiB;AAE1D,MAAMC,MAAM,GAAGA,CAAC;EAAEC;AAAS,CAAC,KAAK;EAC/B,MAAM,CAACC,UAAU,EAAEC,WAAW,CAAC,GAAGd,QAAQ,CAAC,IAAI,CAAC;EAEhD,MAAMe,WAAW,GAAGA,CAAA,KAAMD,WAAW,CAAC,CAACD,UAAU,CAAC;EAClD,MAAMG,aAAa,GAAGjB,MAAM,CAACc,UAAU,CAAC;EACxCG,aAAa,CAACC,OAAO,GAAGJ,UAAU;EAElCf,SAAS,CAAC,MAAM;IACd,IAAIoB,oBAAoB,GAAG,IAAI;IAE/B,MAAMC,YAAY,GAAGA,CAAC;MAAEC,MAAM,EAAE;QAAEC;MAAa;IAAE,CAAC,KAAK;MACrD,IAAIA,YAAY,EAAE;QAChBH,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AChCR,KAAA,CAAAgC,aAAA,CAACtB,IAAI;MACHM,UAAU,EAAEA,UAAW;MACvBE,WAAW,EAAEA,WAAY;MACzBqB,QAAQ,EAAEA,QAAS;MACnBX,YAAY,EAAEA;IAAa,GAC1Bb,QACG,CACiB,CAAC,gBAE1Bf,KAAA,CAAAgC,aAAA,CAACrB,UAAU,qBACTX,KAAA,CAAAgC,aAAA,CAACzB,KAAK,MAAE,CACE,CAEd,CAAC;EAEP,CACK,CACJ,CAAC;AAEV,CAAC;AAEDO,MAAM,CAAC2B,SAAS,GAAG;EACjB1B,QAAQ,EAAEX,SAAS,CAACsC,SAAS,CAAC,CAACtC,SAAS,CAACuC,OAAO,CAACvC,SAAS,CAACwC,IAAI,CAAC,EAAExC,SAAS,CAACwC,IAAI,CAAC,CAAC,CAACC;AACrF,CAAC;AAED,eAAe/B,MAAM","ignoreList":[]}
|
package/lib-es/constants.js
CHANGED
|
@@ -11,5 +11,6 @@ const ACTIVE_LABEL = {
|
|
|
11
11
|
icon: 'up'
|
|
12
12
|
};
|
|
13
13
|
const DOWN_ICON = 'down';
|
|
14
|
-
|
|
14
|
+
const EDITOR_FULL_SCREEN_EVENT = 'blaze:editor-full-screen';
|
|
15
|
+
export { PLUGIN_NAME, LOGO_PROPS, ACTIVE_LABEL, DEFAULT_LABEL, DOWN_ICON, EDITOR_FULL_SCREEN_EVENT };
|
|
15
16
|
//# sourceMappingURL=constants.js.map
|
package/lib-es/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":["PLUGIN_NAME","LOGO_PROPS","src","process","env","BLAZE_ADMIN_HEAD_LOGO_URL","DEFAULT_LABEL","text","icon","ACTIVE_LABEL","DOWN_ICON"],"sources":["../src/constants.js"],"sourcesContent":["const PLUGIN_NAME = 'admin-core-ui';\nconst LOGO_PROPS = {\n src: process.env.BLAZE_ADMIN_HEAD_LOGO_URL || 'https://images.thisisblaze.com/logo-98-148.png'\n};\n\nconst DEFAULT_LABEL = {\n text: 'See more',\n icon: 'down'\n};\n\nconst ACTIVE_LABEL = {\n text: 'See less',\n icon: 'up'\n};\n\nconst DOWN_ICON = 'down';\n\nexport {
|
|
1
|
+
{"version":3,"file":"constants.js","names":["PLUGIN_NAME","LOGO_PROPS","src","process","env","BLAZE_ADMIN_HEAD_LOGO_URL","DEFAULT_LABEL","text","icon","ACTIVE_LABEL","DOWN_ICON","EDITOR_FULL_SCREEN_EVENT"],"sources":["../src/constants.js"],"sourcesContent":["const PLUGIN_NAME = 'admin-core-ui';\nconst LOGO_PROPS = {\n src: process.env.BLAZE_ADMIN_HEAD_LOGO_URL || 'https://images.thisisblaze.com/logo-98-148.png'\n};\n\nconst DEFAULT_LABEL = {\n text: 'See more',\n icon: 'down'\n};\n\nconst ACTIVE_LABEL = {\n text: 'See less',\n icon: 'up'\n};\n\nconst DOWN_ICON = 'down';\n\nconst EDITOR_FULL_SCREEN_EVENT = 'blaze:editor-full-screen';\n\nexport {\n PLUGIN_NAME,\n LOGO_PROPS,\n ACTIVE_LABEL,\n DEFAULT_LABEL,\n DOWN_ICON,\n EDITOR_FULL_SCREEN_EVENT\n};\n"],"mappings":"AAAA,MAAMA,WAAW,GAAG,eAAe;AACnC,MAAMC,UAAU,GAAG;EACjBC,GAAG,EAAEC,OAAO,CAACC,GAAG,CAACC,yBAAyB,IAAI;AAChD,CAAC;AAED,MAAMC,aAAa,GAAG;EACpBC,IAAI,EAAE,UAAU;EAChBC,IAAI,EAAE;AACR,CAAC;AAED,MAAMC,YAAY,GAAG;EACnBF,IAAI,EAAE,UAAU;EAChBC,IAAI,EAAE;AACR,CAAC;AAED,MAAME,SAAS,GAAG,MAAM;AAExB,MAAMC,wBAAwB,GAAG,0BAA0B;AAE3D,SACEX,WAAW,EACXC,UAAU,EACVQ,YAAY,EACZH,aAAa,EACbI,SAAS,EACTC,wBAAwB","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaze-cms/plugin-admin-core-ui",
|
|
3
|
-
"version": "0.146.0-node18-tooltips.
|
|
3
|
+
"version": "0.146.0-node18-core-styles-tooltips.61",
|
|
4
4
|
"description": "Blaze plugin admin core ui",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-es/index.js",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "GPL-3.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@blaze-cms/admin-ui-styles": "0.146.0-node18-tooltips.
|
|
31
|
-
"@blaze-cms/admin-ui-utils": "0.146.0-node18-tooltips.
|
|
32
|
-
"@blaze-cms/core-ui": "0.146.0-node18-tooltips.
|
|
33
|
-
"@blaze-cms/plugin-search-ui": "0.146.0-node18-tooltips.
|
|
34
|
-
"@blaze-cms/setup-ui": "0.146.0-node18-tooltips.
|
|
30
|
+
"@blaze-cms/admin-ui-styles": "0.146.0-node18-core-styles-tooltips.61",
|
|
31
|
+
"@blaze-cms/admin-ui-utils": "0.146.0-node18-core-styles-tooltips.61",
|
|
32
|
+
"@blaze-cms/core-ui": "0.146.0-node18-core-styles-tooltips.61",
|
|
33
|
+
"@blaze-cms/plugin-search-ui": "0.146.0-node18-core-styles-tooltips.61",
|
|
34
|
+
"@blaze-cms/setup-ui": "0.146.0-node18-core-styles-tooltips.46",
|
|
35
35
|
"@blaze-react/avatar": "0.5.19",
|
|
36
36
|
"@blaze-react/button": "0.8.0-alpha.82",
|
|
37
37
|
"@blaze-react/input": "0.8.0-alpha.100",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"react-router-dom": "^5.0.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@blaze-cms/plugin-auth-ui": "0.146.0-node18-tooltips.
|
|
49
|
+
"@blaze-cms/plugin-auth-ui": "0.146.0-node18-core-styles-tooltips.61",
|
|
50
50
|
"lodash.merge": "^4.6.2",
|
|
51
51
|
"waait": "1.0.5"
|
|
52
52
|
},
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"lib/*",
|
|
59
59
|
"lib-es/*"
|
|
60
60
|
],
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "cf8d14164ed65eddb8e1d1b00e22825ee684e116"
|
|
62
62
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
1
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Query } from '@apollo/client/react/components';
|
|
4
4
|
import { getQuery } from '@blaze-cms/admin-ui-utils';
|
|
@@ -9,11 +9,31 @@ import { Grid } from './components';
|
|
|
9
9
|
import Background from './Background';
|
|
10
10
|
|
|
11
11
|
import Header from '../Header';
|
|
12
|
+
import { EDITOR_FULL_SCREEN_EVENT } from '../../constants';
|
|
12
13
|
|
|
13
14
|
const Layout = ({ children }) => {
|
|
14
15
|
const [isOpenMenu, setOpenMenu] = useState(true);
|
|
15
16
|
|
|
16
17
|
const onMenuClick = () => setOpenMenu(!isOpenMenu);
|
|
18
|
+
const isOpenMenuRef = useRef(isOpenMenu);
|
|
19
|
+
isOpenMenuRef.current = isOpenMenu;
|
|
20
|
+
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
let openBeforeFullScreen = null;
|
|
23
|
+
|
|
24
|
+
const onFullScreen = ({ detail: { isFullScreen } }) => {
|
|
25
|
+
if (isFullScreen) {
|
|
26
|
+
openBeforeFullScreen = isOpenMenuRef.current;
|
|
27
|
+
setOpenMenu(false);
|
|
28
|
+
} else if (openBeforeFullScreen !== null) {
|
|
29
|
+
setOpenMenu(openBeforeFullScreen);
|
|
30
|
+
openBeforeFullScreen = null;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
window.addEventListener(EDITOR_FULL_SCREEN_EVENT, onFullScreen);
|
|
35
|
+
return () => window.removeEventListener(EDITOR_FULL_SCREEN_EVENT, onFullScreen);
|
|
36
|
+
}, []);
|
|
17
37
|
|
|
18
38
|
const simpleLayout = window.location !== window.parent.location;
|
|
19
39
|
const wrapperClass = simpleLayout ? ' grid--site-container--simle-layout' : '';
|
package/src/constants.js
CHANGED
|
@@ -15,4 +15,13 @@ const ACTIVE_LABEL = {
|
|
|
15
15
|
|
|
16
16
|
const DOWN_ICON = 'down';
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const EDITOR_FULL_SCREEN_EVENT = 'blaze:editor-full-screen';
|
|
19
|
+
|
|
20
|
+
export {
|
|
21
|
+
PLUGIN_NAME,
|
|
22
|
+
LOGO_PROPS,
|
|
23
|
+
ACTIVE_LABEL,
|
|
24
|
+
DEFAULT_LABEL,
|
|
25
|
+
DOWN_ICON,
|
|
26
|
+
EDITOR_FULL_SCREEN_EVENT
|
|
27
|
+
};
|