useblocks 1.1.49 → 1.1.56
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/iframe/js/amp.BP7EklKo.js +1 -1
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.4N5s3OV-.js +1 -1
- package/npm-publish.manifest.json +7 -7
- package/package.json +1 -7
- package/runtime/THIRD_PARTY_LICENSES.txt +1 -236
- package/runtime/index.js +0 -2
- package/runtime/package.json +0 -6
- package/runtime/plugin-dev-manifest.json +0 -4
- package/singlepage_headless_plugin.html +1 -1
- package/static/core/{339377b8.js → 12a9aa4e.js} +15355 -15285
- package/static/core/{b9f47840.js → 17d3ee0b.js} +8 -8
- package/static/core/{6895dd352.js → 195ca4a32.js} +15 -15
- package/static/core/{8e110c69.js → 2569fac8.js} +31 -31
- package/static/core/{4ca527032.js → 26ddf93e2.js} +2 -2
- package/static/core/{de79e0c5.js → 289ba982.js} +543 -518
- package/static/core/{11296a18.js → 30c5fe5f.js} +114 -114
- package/static/core/{e93d55b92.js → 3af8f3592.js} +4 -4
- package/static/core/{542ea53f2.js → 4a27bba92.js} +8 -8
- package/static/core/4a5f1756.js +466 -0
- package/static/core/{13f581cc.js → 4d493eba.js} +3 -3
- package/static/core/{acb049cb.js → 4dadf572.js} +1509 -1520
- package/static/core/{7a229b90.js → 5345bef8.js} +46 -46
- package/static/core/{27544e7e.js → 581ce428.js} +37 -19
- package/static/core/58c4b8d7.js +3150 -0
- package/static/core/{d8daf1142.js → 6156301b2.js} +3 -3
- package/static/core/{c3849484.js → 64bea1a9.js} +5 -5
- package/static/core/{ce4fc17f2.js → 680236f4.js} +1 -1
- package/static/core/{4b75d16c2.js → 687795b52.js} +4 -4
- package/static/core/{70407ac0.js → 72f86b2d.js} +3 -3
- package/static/core/{b77f0769.js → 8432f11e.js} +5 -5
- package/static/core/{59023866.js → 87969347.js} +706 -704
- package/static/core/{13d197af.js → 8a496b64.js} +27 -27
- package/static/core/{4e1b970f.js → 8ba13f332.js} +1 -1
- package/static/core/{386cf7b3.js → 951903fb.js} +9347 -9285
- package/static/core/{3dea3b87.js → 988589a5.js} +10 -10
- package/static/core/{a95c02bb.js → a1355a35.js} +5 -5
- package/static/core/{7c6fb2162.js → a36c3ab62.js} +3 -3
- package/static/core/{aacf134d.js → a4c19e27.js} +523 -503
- package/static/core/{2da1d66b.js → abd3f34c.js} +5 -5
- package/static/core/{528ad9282.js → ae20f0992.js} +16 -16
- package/static/core/{c59f9731.js → b9bb2c5f.js} +6785 -5088
- package/static/core/bf446743.js +761 -0
- package/static/core/{f96d2049.js → d1a1d4902.js} +1 -1
- package/static/core/{5b48fd69.js → d8d6485e.js} +5 -5
- package/static/core/{59e92cc3.js → d9398296.js} +5 -5
- package/static/core/{8c81db36.js → eb23332a.js} +3 -3
- package/static/core/{e7c24fe9.js → fa354fb5.js} +179 -173
- package/static/core/{1e5bf73c.js → ffee9a77.js} +7 -7
- package/static/esm/{d180c108.js → 3cde7cb6.js} +51 -70
- package/static/esm/{448d4bb0.js → 550bf3cb.js} +1 -1
- package/two_step_headless_plugin.html +1 -1
- package/ui-kit/index.js +49 -47
- package/{useblocks-core.15a9129c.js → useblocks-core.1279854f.js} +6 -6
- package/useblocks-esm.js +352 -392
- package/useblocks.js +67 -152
- package/runtime/prop-types/index.js +0 -4
- package/runtime/react-router-dom/index.js +0 -2
- package/static/core/1ca5f3772.js +0 -602
- package/static/core/3b4845f7.js +0 -3097
- package/static/core/a11c28c2.js +0 -467
- package/static/runtime/dom-export-CHgQ7Ws9.js +0 -8069
- package/static/runtime/prop-types-p_yYKrF7.js +0 -47
- /package/iframe/{iframe-eblock.15a9129c.html → iframe-eblock.1279854f.html} +0 -0
- /package/iframe/{iframe.15a9129c.html → iframe.1279854f.html} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/ffee9a77.js", [
|
|
2
2
|
"require",
|
|
3
3
|
"exports",
|
|
4
4
|
"module",
|
|
@@ -7,7 +7,7 @@ __useblocks__.define("static/core/1e5bf73c.js", [
|
|
|
7
7
|
], function(n, p, P) {
|
|
8
8
|
n("./bd36b180.js");
|
|
9
9
|
const u = n("./ce91cf4a.js");
|
|
10
|
-
var
|
|
10
|
+
var b = {
|
|
11
11
|
items_per_page: "/ 페이지",
|
|
12
12
|
jump_to: "이동하기",
|
|
13
13
|
jump_to_confirm: "확인하다",
|
|
@@ -42,22 +42,22 @@ __useblocks__.define("static/core/1e5bf73c.js", [
|
|
|
42
42
|
for (var e = 1; e < arguments.length; e++) {
|
|
43
43
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
44
44
|
e % 2 ? i(Object(t), !0).forEach(function(o) {
|
|
45
|
-
|
|
45
|
+
f(r, o, t[o]);
|
|
46
46
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : i(Object(t)).forEach(function(o) {
|
|
47
47
|
Object.defineProperty(r, o, Object.getOwnPropertyDescriptor(t, o));
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
return r;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return e =
|
|
52
|
+
function f(r, e, t) {
|
|
53
|
+
return e = d(e), e in r ? Object.defineProperty(r, e, {
|
|
54
54
|
value: t,
|
|
55
55
|
enumerable: !0,
|
|
56
56
|
configurable: !0,
|
|
57
57
|
writable: !0
|
|
58
58
|
}) : r[e] = t, r;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function d(r) {
|
|
61
61
|
var e = y(r, "string");
|
|
62
62
|
return a(e) == "symbol" ? e : String(e);
|
|
63
63
|
}
|
|
@@ -140,7 +140,7 @@ __useblocks__.define("static/core/1e5bf73c.js", [
|
|
|
140
140
|
}, h = m, l = "${label} 유효하지 않은 ${type}";
|
|
141
141
|
p.default = {
|
|
142
142
|
locale: "ko",
|
|
143
|
-
Pagination:
|
|
143
|
+
Pagination: b,
|
|
144
144
|
DatePicker: m,
|
|
145
145
|
TimePicker: s,
|
|
146
146
|
Calendar: h,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
1
|
+
var g = Object.defineProperty, E = (t, e) => {
|
|
2
2
|
let r = {};
|
|
3
|
-
for (var n in t)
|
|
3
|
+
for (var n in t) g(r, n, {
|
|
4
4
|
get: t[n],
|
|
5
5
|
enumerable: !0
|
|
6
6
|
});
|
|
7
|
-
return e ||
|
|
8
|
-
},
|
|
7
|
+
return e || g(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
8
|
+
}, d = class v {
|
|
9
9
|
_inner;
|
|
10
10
|
_isDisposed = !1;
|
|
11
11
|
constructor(e = []) {
|
|
12
12
|
this._inner = e;
|
|
13
13
|
}
|
|
14
14
|
addDisposable(e) {
|
|
15
|
-
return this._inner.push(e), e instanceof
|
|
15
|
+
return this._inner.push(e), e instanceof v && e.addDispose(() => {
|
|
16
16
|
this.removeDisposable(e);
|
|
17
17
|
}), e;
|
|
18
18
|
}
|
|
@@ -33,10 +33,10 @@ var E = Object.defineProperty, v = (t, e) => {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
function
|
|
36
|
+
function f(t) {
|
|
37
37
|
return `service_container_${t}`;
|
|
38
38
|
}
|
|
39
|
-
var
|
|
39
|
+
var D = class h extends d {
|
|
40
40
|
_parent;
|
|
41
41
|
_injectCallbacks = [];
|
|
42
42
|
_injections = /* @__PURE__ */ Object.create(null);
|
|
@@ -55,14 +55,14 @@ var T = class h extends f {
|
|
|
55
55
|
}
|
|
56
56
|
injectFactory(e, r, n) {
|
|
57
57
|
const s = this._injections[e];
|
|
58
|
-
let
|
|
59
|
-
const
|
|
60
|
-
n &&
|
|
58
|
+
let i = typeof s == "function" ? s() : s;
|
|
59
|
+
const o = this._injections[e] = () => (i = r(this, i), i);
|
|
60
|
+
n && o(), this._runCallbacks(e);
|
|
61
61
|
}
|
|
62
62
|
_find(e, r = !0) {
|
|
63
63
|
return this._injections[e] || r && this._parent?._find(e);
|
|
64
64
|
}
|
|
65
|
-
_onInject(e, r, n = new
|
|
65
|
+
_onInject(e, r, n = new d()) {
|
|
66
66
|
return n.addDisposable(this.onInject((s) => {
|
|
67
67
|
e === s && (n.dispose(), r(this.getInstance(s)));
|
|
68
68
|
})), this._parent && n.addDisposable(this._parent._onInject(e, r, n)), this.addDisposable(n), n;
|
|
@@ -82,24 +82,24 @@ var T = class h extends f {
|
|
|
82
82
|
return typeof r == "function" ? Promise.resolve(r()) : new Promise((n) => this._onInject(e, () => n(this.getInstance(e))));
|
|
83
83
|
}
|
|
84
84
|
addService(e, r) {
|
|
85
|
-
const n =
|
|
86
|
-
this.injectFactory(n, (
|
|
87
|
-
const s = new
|
|
85
|
+
const n = f(e);
|
|
86
|
+
this.injectFactory(n, (i, o = []) => o.indexOf(r) < 0 ? [...o, r] : o);
|
|
87
|
+
const s = new d();
|
|
88
88
|
return s.addDispose(() => {
|
|
89
|
-
this.injectFactory(n, (
|
|
89
|
+
this.injectFactory(n, (i, o = []) => o.filter((u) => u !== r));
|
|
90
90
|
}), s;
|
|
91
91
|
}
|
|
92
92
|
addServiceFactory(e, r, n) {
|
|
93
|
-
const s =
|
|
94
|
-
let
|
|
95
|
-
this.injectFactory(s, (u, c = []) => (
|
|
96
|
-
const
|
|
97
|
-
return
|
|
98
|
-
this.injectFactory(s, (u, c = []) =>
|
|
99
|
-
}),
|
|
93
|
+
const s = f(e);
|
|
94
|
+
let i;
|
|
95
|
+
this.injectFactory(s, (u, c = []) => (i = r(u, i), i === void 0 ? c : c.indexOf(i) < 0 ? [...c, i] : c), n);
|
|
96
|
+
const o = new d();
|
|
97
|
+
return o.addDispose(() => {
|
|
98
|
+
this.injectFactory(s, (u, c = []) => i === void 0 ? c : c.filter((T) => T !== i));
|
|
99
|
+
}), o;
|
|
100
100
|
}
|
|
101
101
|
getServices(e) {
|
|
102
|
-
const r =
|
|
102
|
+
const r = f(e);
|
|
103
103
|
return [...this.getInstance(r, !1) || [], ...this._parent?.getServices(e) || []];
|
|
104
104
|
}
|
|
105
105
|
createChild() {
|
|
@@ -115,101 +115,82 @@ var T = class h extends f {
|
|
|
115
115
|
this._injections = /* @__PURE__ */ Object.create(null);
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
|
-
function
|
|
118
|
+
function p(t) {
|
|
119
119
|
return t.startsWith("__") ? t : `__${t}__`;
|
|
120
120
|
}
|
|
121
121
|
function A(t) {
|
|
122
122
|
if (typeof globalThis > "u") throw new Error("[di] globalThis is required for namespace container access.");
|
|
123
|
-
const e =
|
|
123
|
+
const e = p(t), r = globalThis;
|
|
124
124
|
return r[e] ??= {};
|
|
125
125
|
}
|
|
126
126
|
function C(t) {
|
|
127
127
|
return t != null && typeof t == "object" && typeof t.inject == "function" && typeof t.getInstance == "function";
|
|
128
128
|
}
|
|
129
129
|
function x(t) {
|
|
130
|
-
if (t) return
|
|
131
|
-
return
|
|
130
|
+
if (t) return p(t);
|
|
131
|
+
return p("useblocks".trim());
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function y(t) {
|
|
134
134
|
const e = A(x(t));
|
|
135
135
|
if (C(e.container)) return e.container;
|
|
136
|
-
const r = new
|
|
136
|
+
const r = new D(null);
|
|
137
137
|
return e.container = r, r;
|
|
138
138
|
}
|
|
139
139
|
function O(t) {
|
|
140
|
-
return
|
|
140
|
+
return y(t);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function N() {
|
|
143
143
|
let t = (/* @__PURE__ */ new Date()).getTime(), e = typeof performance < "u" && performance.now && performance.now() * 1e3 || 0;
|
|
144
144
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(r) {
|
|
145
145
|
let n = Math.random() * 16;
|
|
146
146
|
return t > 0 ? (n = (t + n) % 16 | 0, t = Math.floor(t / 16)) : (n = (e + n) % 16 | 0, e = Math.floor(e / 16)), (r === "x" ? n : n & 3 | 8).toString(16);
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() :
|
|
149
|
+
function m() {
|
|
150
|
+
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : N();
|
|
151
151
|
}
|
|
152
|
-
function a(t =
|
|
152
|
+
function a(t = m()) {
|
|
153
153
|
return t;
|
|
154
154
|
}
|
|
155
155
|
function I() {
|
|
156
156
|
return "esm".trim();
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function R(t) {
|
|
159
159
|
if (typeof globalThis > "u") return;
|
|
160
160
|
const e = I(), r = globalThis[t] ?? {};
|
|
161
161
|
globalThis[t] = r;
|
|
162
162
|
const n = r.__diagnostics ??= {}, s = n.diModuleEval ??= {
|
|
163
163
|
evalCount: 0,
|
|
164
|
-
records: []
|
|
165
|
-
duplicateWarned: !1
|
|
164
|
+
records: []
|
|
166
165
|
};
|
|
167
|
-
|
|
166
|
+
s.records.push({
|
|
168
167
|
buildSource: e,
|
|
169
168
|
timestamp: Date.now(),
|
|
170
169
|
stack: (/* @__PURE__ */ new Error()).stack
|
|
171
|
-
}), s.evalCount += 1
|
|
172
|
-
s.duplicateWarned = !0;
|
|
173
|
-
s.evalCount, s.records;
|
|
170
|
+
}), s.evalCount += 1;
|
|
174
171
|
}
|
|
175
|
-
function
|
|
172
|
+
function b() {
|
|
176
173
|
return `__${"useblocks".trim()}__`;
|
|
177
174
|
}
|
|
178
|
-
function
|
|
179
|
-
if (
|
|
180
|
-
const r = I(), n = globalThis, s = n[e] = n[e] || {},
|
|
181
|
-
entries: [],
|
|
182
|
-
warnings: []
|
|
183
|
-
}, u = {
|
|
175
|
+
function M(t, e) {
|
|
176
|
+
if (R(e), typeof globalThis > "u") return t;
|
|
177
|
+
const r = I(), n = globalThis, s = n[e] = n[e] || {}, i = s.__diagnostics = s.__diagnostics || {}, o = i.dependencyResolver = i.dependencyResolver || { entries: [] }, u = {
|
|
184
178
|
container: t,
|
|
185
179
|
source: "packages/runtime-core/di/index.ts",
|
|
186
180
|
buildSource: r,
|
|
187
181
|
timestamp: Date.now(),
|
|
188
182
|
stack: (/* @__PURE__ */ new Error()).stack
|
|
189
183
|
};
|
|
190
|
-
|
|
191
|
-
const c = i.entries[0];
|
|
192
|
-
if (i.entries.some((d) => d.container !== c.container) && !i.duplicateWarningShown) {
|
|
193
|
-
i.duplicateWarningShown = !0;
|
|
194
|
-
const d = {
|
|
195
|
-
message: "[di] Multiple DependencyResolver instances detected on namespace",
|
|
196
|
-
namespaceKey: e,
|
|
197
|
-
buildSource: r,
|
|
198
|
-
entries: i.entries
|
|
199
|
-
};
|
|
200
|
-
i.warnings.push(d);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
return t;
|
|
184
|
+
return o.entries.push(u), t;
|
|
204
185
|
}
|
|
205
186
|
var _;
|
|
206
|
-
function
|
|
187
|
+
function w() {
|
|
207
188
|
if (_) return _;
|
|
208
|
-
const t =
|
|
209
|
-
return _ =
|
|
189
|
+
const t = b();
|
|
190
|
+
return _ = M(y(t), t), _;
|
|
210
191
|
}
|
|
211
192
|
new Proxy({}, { get(t, e, r) {
|
|
212
|
-
const n =
|
|
193
|
+
const n = w(), s = Reflect.get(n, e, r);
|
|
213
194
|
return typeof s == "function" ? s.bind(n) : s;
|
|
214
195
|
} });
|
|
215
196
|
function L(t, e = "BackendError") {
|
|
@@ -400,7 +381,7 @@ l("SETTINGS_PANEL_EVENT");
|
|
|
400
381
|
l("MODAL_SHOW_EVENT");
|
|
401
382
|
l("MODAL_CLOSE_EVENT");
|
|
402
383
|
l("MODAL_UPDATE_EVENT");
|
|
403
|
-
var oe = /* @__PURE__ */
|
|
384
|
+
var oe = /* @__PURE__ */ E({ FileManagerApiError: () => V }), V = class S extends Error {
|
|
404
385
|
code;
|
|
405
386
|
status;
|
|
406
387
|
details;
|
|
@@ -408,7 +389,7 @@ var oe = /* @__PURE__ */ v({ FileManagerApiError: () => V }), V = class D extend
|
|
|
408
389
|
return this.status;
|
|
409
390
|
}
|
|
410
391
|
constructor(e, r, n, s) {
|
|
411
|
-
super(e), this.name = "FileManagerApiError", this.code = r, this.status = n, this.details = s, Error.captureStackTrace && Error.captureStackTrace(this,
|
|
392
|
+
super(e), this.name = "FileManagerApiError", this.code = r, this.status = n, this.details = s, Error.captureStackTrace && Error.captureStackTrace(this, S);
|
|
412
393
|
}
|
|
413
|
-
}, ae = /* @__PURE__ */
|
|
414
|
-
export {
|
|
394
|
+
}, ae = /* @__PURE__ */ E({ mapHttpStatusToErrorCode: () => L });
|
|
395
|
+
export { d as a, a as i, oe as n, G as r, ae as t };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<title>Two-step flow: design → subject/preheader (headless)</title>
|
|
6
|
-
<script id="plugin-script" type="text/javascript" src="useblocks.js?
|
|
6
|
+
<script id="plugin-script" type="text/javascript" src="useblocks.js?1279854f"></script>
|
|
7
7
|
<style>
|
|
8
8
|
body {
|
|
9
9
|
margin: 0;
|
package/ui-kit/index.js
CHANGED
|
@@ -4910,51 +4910,52 @@ var { Option: Pp } = of, Fp = ({ options: e, position: t, setPosition: n, unit:
|
|
|
4910
4910
|
className: "limits-counter-extra",
|
|
4911
4911
|
children: o
|
|
4912
4912
|
})]
|
|
4913
|
-
}), Lp = "draggable-input-number__handle", $ = t.forwardRef(({ dragspeed: e = 1, prefix: t,
|
|
4914
|
-
let [
|
|
4915
|
-
|
|
4916
|
-
},
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4913
|
+
}), Lp = "draggable-input-number__handle", $ = t.forwardRef(({ dragspeed: e = 1, prefix: t, onChange: n, ...r }, i) => {
|
|
4914
|
+
let [a, s] = f(!1), [l, u] = f(0), [d, p] = f(null), m = r.value !== void 0, [h, g] = f(!1), [_, v] = f(null), [y, b] = f(null), x = h ? _ : r.defaultValue ?? null, S = a && y !== null ? y : m ? r.value ?? null : x, C = o((e) => {
|
|
4915
|
+
m || (g(!0), v(e));
|
|
4916
|
+
}, [m]), w = o((e) => {
|
|
4917
|
+
C(e), n?.(e);
|
|
4918
|
+
}, [C, n]), T = (e) => {
|
|
4919
|
+
e.target.closest?.(`.${Lp}`) && (e.preventDefault(), s(!0), u(e.clientX), p(S));
|
|
4920
|
+
}, E = o(() => {
|
|
4921
|
+
s(!1), b(null);
|
|
4922
|
+
}, []), D = o((t) => {
|
|
4923
|
+
if (a) {
|
|
4924
|
+
let i = t.clientX - l, a = (d || 0) + i * e;
|
|
4925
|
+
a = Math.max(0, Math.round(a)), r.max !== void 0 && (a = Math.min(a, Number(r.max))), r.min !== void 0 && (a = Math.max(a, Number(r.min))), b(a), C(a), n?.(a);
|
|
4920
4926
|
}
|
|
4921
4927
|
}, [
|
|
4922
|
-
|
|
4923
|
-
n
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
e
|
|
4929
|
-
|
|
4930
|
-
c(() => {
|
|
4931
|
-
n.value !== void 0 && n.value !== null ? m(n.value) : n.defaultValue !== void 0 && n.defaultValue !== null ? m(n.defaultValue) : m(null);
|
|
4932
|
-
}, [n.value, n.defaultValue]), c(() => (document.addEventListener("mouseup", g), document.addEventListener("mousemove", _), () => {
|
|
4933
|
-
document.removeEventListener("mouseup", g), document.removeEventListener("mousemove", _);
|
|
4934
|
-
}), [
|
|
4935
|
-
i,
|
|
4936
|
-
s,
|
|
4937
|
-
u,
|
|
4938
|
-
_
|
|
4928
|
+
a,
|
|
4929
|
+
n,
|
|
4930
|
+
r.max,
|
|
4931
|
+
r.min,
|
|
4932
|
+
d,
|
|
4933
|
+
l,
|
|
4934
|
+
e,
|
|
4935
|
+
C
|
|
4939
4936
|
]);
|
|
4940
|
-
|
|
4937
|
+
c(() => (document.addEventListener("mouseup", E), document.addEventListener("mousemove", D), () => {
|
|
4938
|
+
document.removeEventListener("mouseup", E), document.removeEventListener("mousemove", D);
|
|
4939
|
+
}), [E, D]);
|
|
4940
|
+
let ee = t == null ? t : /* @__PURE__ */ F("span", {
|
|
4941
4941
|
role: "none",
|
|
4942
4942
|
className: Lp,
|
|
4943
4943
|
children: t
|
|
4944
4944
|
});
|
|
4945
4945
|
return /* @__PURE__ */ I("div", {
|
|
4946
4946
|
role: "none",
|
|
4947
|
-
onMouseDown:
|
|
4947
|
+
onMouseDown: T,
|
|
4948
4948
|
children: [/* @__PURE__ */ F($d, {
|
|
4949
|
-
...
|
|
4950
|
-
ref:
|
|
4951
|
-
value:
|
|
4952
|
-
|
|
4949
|
+
...r,
|
|
4950
|
+
ref: i,
|
|
4951
|
+
value: S,
|
|
4952
|
+
onChange: w,
|
|
4953
|
+
prefix: ee,
|
|
4953
4954
|
className: "input-draggable"
|
|
4954
|
-
}),
|
|
4955
|
+
}), a && /* @__PURE__ */ F("div", {
|
|
4955
4956
|
role: "none",
|
|
4956
4957
|
className: "draggable-input-number-overlay",
|
|
4957
|
-
onMouseUp:
|
|
4958
|
+
onMouseUp: E
|
|
4958
4959
|
})]
|
|
4959
4960
|
});
|
|
4960
4961
|
}), Rp = (e) => e?.closest(".blocks-app") || (e?.ownerDocument?.body ?? document.body);
|
|
@@ -4971,13 +4972,13 @@ function Bp(e) {
|
|
|
4971
4972
|
}))
|
|
4972
4973
|
}));
|
|
4973
4974
|
}
|
|
4974
|
-
var Vp = ({ value: e, onChange: t, textEditor: n = !1, safeFonts: r, googleFontsData: i, loadGoogleFonts: a, loading: s, getPopupContainer: l = Rp, style:
|
|
4975
|
-
let [
|
|
4976
|
-
safeFonts:
|
|
4977
|
-
googleFonts:
|
|
4978
|
-
sansSerif:
|
|
4979
|
-
serif:
|
|
4980
|
-
}), [
|
|
4975
|
+
var Vp = ({ value: e, onChange: t, textEditor: n = !1, safeFonts: r, googleFontsData: i, loadGoogleFonts: a, loading: s, getPopupContainer: l = Rp, style: p, placement: m = "bottomRight", labels: h, filterOptions: g }) => {
|
|
4976
|
+
let [_, v] = f(), y = d(e), [b, x] = f(null), [S, C] = f(!!a), { __: w } = G(), T = u(() => ({
|
|
4977
|
+
safeFonts: h?.safeFonts ?? w("Safe Fonts"),
|
|
4978
|
+
googleFonts: h?.googleFonts ?? w("Google Fonts"),
|
|
4979
|
+
sansSerif: h?.sansSerif ?? w("Sans Serif"),
|
|
4980
|
+
serif: h?.serif ?? w("Serif")
|
|
4981
|
+
}), [h, w]), E = g?.subsets ?? _p.subsets, D = g?.maxPopularity ?? _p.maxPopularity, ee = r ?? mp, O = i ?? b, k = s ?? S;
|
|
4981
4982
|
c(() => {
|
|
4982
4983
|
if (!a || i) return;
|
|
4983
4984
|
let e = !1;
|
|
@@ -5001,23 +5002,24 @@ var Vp = ({ value: e, onChange: t, textEditor: n = !1, safeFonts: r, googleFonts
|
|
|
5001
5002
|
D
|
|
5002
5003
|
]);
|
|
5003
5004
|
c(() => {
|
|
5004
|
-
|
|
5005
|
+
if (!O) return;
|
|
5006
|
+
let t = e !== y.current;
|
|
5007
|
+
y.current = e, n && t ? e ? e[1] === "Sans Serif" ? v([
|
|
5005
5008
|
yp,
|
|
5006
5009
|
bp,
|
|
5007
5010
|
A.find((t) => t?.family.replace(/\s/g, "") === String(e[2]).replace(/\s/g, ""))?.family ?? "",
|
|
5008
5011
|
String(e[3]).replace(/Italic/g, " Italic")
|
|
5009
|
-
]) : e[1] === "Serif" ?
|
|
5012
|
+
]) : e[1] === "Serif" ? v([
|
|
5010
5013
|
yp,
|
|
5011
5014
|
xp,
|
|
5012
5015
|
j.find((t) => t?.family.replace(/\s/g, "") === String(e[2]).replace(/\s/g, ""))?.family ?? "",
|
|
5013
5016
|
String(e[3]).replace(/Italic/g, " Italic")
|
|
5014
|
-
]) : (e[0] === "Safe Fonts" ||
|
|
5017
|
+
]) : (e[0] === "Safe Fonts" || _ === void 0) && v(e) : v([""]) : !t && _ === void 0 && v(e), !n && (t || _ === void 0) && v(e);
|
|
5015
5018
|
}, [
|
|
5016
5019
|
e,
|
|
5017
5020
|
O,
|
|
5018
5021
|
n,
|
|
5019
|
-
|
|
5020
|
-
g,
|
|
5022
|
+
_,
|
|
5021
5023
|
A,
|
|
5022
5024
|
j
|
|
5023
5025
|
]);
|
|
@@ -5062,8 +5064,8 @@ var Vp = ({ value: e, onChange: t, textEditor: n = !1, safeFonts: r, googleFonts
|
|
|
5062
5064
|
return /* @__PURE__ */ F(Bd, {
|
|
5063
5065
|
allowClear: !1,
|
|
5064
5066
|
showSearch: !0,
|
|
5065
|
-
value:
|
|
5066
|
-
placement:
|
|
5067
|
+
value: _,
|
|
5068
|
+
placement: m,
|
|
5067
5069
|
popupClassName: "control-font-family-dropdown",
|
|
5068
5070
|
options: ne,
|
|
5069
5071
|
getPopupContainer: o((e) => {
|
|
@@ -5071,7 +5073,7 @@ var Vp = ({ value: e, onChange: t, textEditor: n = !1, safeFonts: r, googleFonts
|
|
|
5071
5073
|
return r != null && (r.overflowX === "hidden" || r.overflowX === "clip" || r.overflow === "hidden" || r.overflow === "clip") ? t : n;
|
|
5072
5074
|
}, [l]),
|
|
5073
5075
|
onChange: N,
|
|
5074
|
-
style:
|
|
5076
|
+
style: p
|
|
5075
5077
|
});
|
|
5076
5078
|
};
|
|
5077
5079
|
Vp.displayName = "ControlFontFamily";
|
|
@@ -3,16 +3,16 @@ __useblocks__.define("core", [
|
|
|
3
3
|
"exports",
|
|
4
4
|
"module",
|
|
5
5
|
"static/core/bd36b180.js",
|
|
6
|
-
"static/core/
|
|
7
|
-
"static/core/
|
|
8
|
-
"static/core/
|
|
6
|
+
"static/core/b9bb2c5f.js",
|
|
7
|
+
"static/core/289ba982.js",
|
|
8
|
+
"static/core/4d493eba.js"
|
|
9
9
|
], function(f, E, he) {
|
|
10
10
|
Object.defineProperties(E, {
|
|
11
11
|
__esModule: { value: !0 },
|
|
12
12
|
[Symbol.toStringTag]: { value: "Module" }
|
|
13
13
|
});
|
|
14
14
|
f("./static/core/bd36b180.js");
|
|
15
|
-
const n = f("./static/core/
|
|
15
|
+
const n = f("./static/core/b9bb2c5f.js"), c = f("./static/core/289ba982.js"), h = f("./static/core/4d493eba.js");
|
|
16
16
|
var L = "Editor instance was destroyed and cannot be reused. A fresh instance will be created instead.";
|
|
17
17
|
function O() {
|
|
18
18
|
const e = new Error(L);
|
|
@@ -499,7 +499,7 @@ __useblocks__.define("core", [
|
|
|
499
499
|
P
|
|
500
500
|
];
|
|
501
501
|
async function Q() {
|
|
502
|
-
return (await Promise.resolve().then(() => f("./static/core/
|
|
502
|
+
return (await Promise.resolve().then(() => f("./static/core/12a9aa4e.js"))).default;
|
|
503
503
|
}
|
|
504
504
|
var Z = (e) => {
|
|
505
505
|
let t = null, r = !1;
|
|
@@ -639,5 +639,5 @@ __useblocks__.define("core", [
|
|
|
639
639
|
ampHtml: r
|
|
640
640
|
};
|
|
641
641
|
}
|
|
642
|
-
E.init = oe, E.parseAMP = ae, E.version = "1.1.
|
|
642
|
+
E.init = oe, E.parseAMP = ae, E.version = "1.1.56";
|
|
643
643
|
});
|