useblocks 1.1.49 → 1.1.53
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 -1
- package/runtime/THIRD_PARTY_LICENSES.txt +1 -1
- package/singlepage_headless_plugin.html +1 -1
- package/static/core/{8c81db36.js → 139e4380.js} +3 -3
- package/static/core/{1ca5f3772.js → 1995fb0a2.js} +10 -10
- package/static/core/{3b4845f7.js → 1f5e1fc9.js} +321 -321
- package/static/core/{59023866.js → 31e98e6e.js} +616 -611
- package/static/core/{13f581cc.js → 5318562c.js} +3 -3
- package/static/core/{386cf7b3.js → 75737a9d.js} +5156 -5116
- package/static/core/{11296a18.js → 9929a348.js} +107 -107
- package/static/core/{e7c24fe9.js → b408f33a.js} +179 -173
- package/static/core/{3dea3b87.js → bc7e3d2b.js} +7 -7
- package/static/core/{de79e0c5.js → c3058168.js} +524 -510
- package/static/core/ce0410b1.js +467 -0
- package/static/core/{339377b8.js → d1eb3c68.js} +13244 -13200
- package/static/core/{8e110c69.js → dc1f9e4f.js} +31 -31
- package/static/core/{7a229b90.js → e1d239ab.js} +41 -41
- package/static/core/{aacf134d.js → e5e07f1d.js} +514 -494
- package/static/core/{acb049cb.js → ebd852b6.js} +1267 -1265
- package/static/core/{c59f9731.js → ee0ddb51.js} +4036 -3900
- package/static/core/{13d197af.js → f3cff4c9.js} +169 -169
- package/two_step_headless_plugin.html +1 -1
- package/ui-kit/index.js +49 -47
- package/{useblocks-core.15a9129c.js → useblocks-core.2a5dade1.js} +6 -6
- package/useblocks-esm.js +3 -3
- package/useblocks.js +3 -3
- package/static/core/a11c28c2.js +0 -467
- /package/iframe/{iframe-eblock.15a9129c.html → iframe-eblock.2a5dade1.html} +0 -0
- /package/iframe/{iframe.15a9129c.html → iframe.2a5dade1.html} +0 -0
|
@@ -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?2a5dade1"></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/ee0ddb51.js",
|
|
7
|
+
"static/core/c3058168.js",
|
|
8
|
+
"static/core/5318562c.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/ee0ddb51.js"), c = f("./static/core/c3058168.js"), h = f("./static/core/5318562c.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/d1eb3c68.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.53";
|
|
643
643
|
});
|
package/useblocks-esm.js
CHANGED
|
@@ -76,7 +76,7 @@ import { a as v, i as Y, n as Q, r as C, t as w } from "./static/esm/448d4bb0.js
|
|
|
76
76
|
} catch {
|
|
77
77
|
return m.slice(-1) !== "/" && (m += "/"), n(m + f);
|
|
78
78
|
}
|
|
79
|
-
}), e.version || (e.version = "1.1.
|
|
79
|
+
}), e.version || (e.version = "1.1.53");
|
|
80
80
|
var o = e.modules = /* @__PURE__ */ Object.create(null), a = import("./runtime/index.js"), c = import("./ui-kit/index.js");
|
|
81
81
|
o.React = a.then(function(t) {
|
|
82
82
|
return t.React;
|
|
@@ -789,7 +789,7 @@ import { a as v, i as Y, n as Q, r as C, t as w } from "./static/esm/448d4bb0.js
|
|
|
789
789
|
})();
|
|
790
790
|
`)(e), typeof e.require == "function" && typeof e.require.config == "function" && e.require.config({
|
|
791
791
|
baseUrl: "./",
|
|
792
|
-
paths: { core: "useblocks-core.
|
|
792
|
+
paths: { core: "useblocks-core.2a5dade1.js" }
|
|
793
793
|
});
|
|
794
794
|
var h = typeof e.prefetch == "function" ? e.prefetch : void 0;
|
|
795
795
|
if (e.prefetch = function() {
|
|
@@ -1435,7 +1435,7 @@ function j(e, ...o) {
|
|
|
1435
1435
|
const a = w.get(e);
|
|
1436
1436
|
o.some((c) => c !== void 0 && c === a) && w.delete(e);
|
|
1437
1437
|
}
|
|
1438
|
-
var Je = "1.1.
|
|
1438
|
+
var Je = "1.1.53";
|
|
1439
1439
|
async function $e(e) {
|
|
1440
1440
|
await $(typeof window.__useblocks__ < "u" ? window.__useblocks__ : void 0);
|
|
1441
1441
|
}
|
package/useblocks.js
CHANGED
|
@@ -689,7 +689,7 @@ var __amdEnv = window.__useblocks__ || (window.__useblocks__ = {});
|
|
|
689
689
|
|
|
690
690
|
|
|
691
691
|
// Configure AMD loader
|
|
692
|
-
__amdEnv.require.config({ baseUrl: "./", paths: {"core":"useblocks-core.
|
|
692
|
+
__amdEnv.require.config({ baseUrl: "./", paths: {"core":"useblocks-core.2a5dade1.js"} });
|
|
693
693
|
|
|
694
694
|
// PublicPath (script detection: entry script lookup → document.currentScript)
|
|
695
695
|
if (!__useblocks__.publicPath) {
|
|
@@ -1037,7 +1037,7 @@ if (!ns.assetUrl) {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
|
|
1039
1039
|
if (!ns.version) {
|
|
1040
|
-
ns.version = "1.1.
|
|
1040
|
+
ns.version = "1.1.53";
|
|
1041
1041
|
}
|
|
1042
1042
|
|
|
1043
1043
|
var modules = ns.modules = Object.create(null);
|
|
@@ -2499,7 +2499,7 @@ __useblocks__.define("useblocks.js", [
|
|
|
2499
2499
|
const r = I.get(e);
|
|
2500
2500
|
t.some((n) => n !== void 0 && n === r) && I.delete(e);
|
|
2501
2501
|
}
|
|
2502
|
-
var _t = "1.1.
|
|
2502
|
+
var _t = "1.1.53";
|
|
2503
2503
|
async function Et(e) {
|
|
2504
2504
|
await X(typeof __useblocks__ < "u" ? __useblocks__ : void 0);
|
|
2505
2505
|
}
|