useblocks 1.1.46 → 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.
Files changed (82) hide show
  1. package/iframe/js/amp.BP7EklKo.js +1 -0
  2. package/iframe/js/iframe-eblock.js +1 -1
  3. package/iframe/js/iframe.js +1 -1
  4. package/iframe/js/rules.4N5s3OV-.js +1 -1
  5. package/monacoeditorwork/css.worker.bundle.js +40524 -40442
  6. package/monacoeditorwork/editor.worker.bundle.js +9740 -9697
  7. package/monacoeditorwork/html.worker.bundle.js +50513 -50431
  8. package/monacoeditorwork/json.worker.bundle.js +14570 -14527
  9. package/monacoeditorwork/ts.worker.bundle.js +119593 -119455
  10. package/npm-publish.manifest.json +7 -7
  11. package/package.json +1 -1
  12. package/runtime/@ant-design/cssinjs/index.js +1 -1
  13. package/runtime/@ant-design/icons/index.js +2 -2
  14. package/runtime/README.md +1 -1
  15. package/runtime/THIRD_PARTY_LICENSES.txt +71 -43
  16. package/runtime/antd/index.js +1 -1
  17. package/runtime/react/index.js +3 -3
  18. package/runtime/react/jsx-runtime/index.js +1 -1
  19. package/runtime/react-dom/client/index.js +4 -4
  20. package/runtime/react-dom/index.js +3 -3
  21. package/runtime/react-router-dom/index.js +2 -2
  22. package/singlepage_headless_plugin.html +1 -1
  23. package/static/core/{6b8432a3.js → 139e4380.js} +3 -3
  24. package/static/core/{90ec6d2b2.js → 1995fb0a2.js} +182 -153
  25. package/static/core/{6df04323.js → 1f5e1fc9.js} +573 -554
  26. package/static/core/31e98e6e.js +2095 -0
  27. package/static/core/5318562c.js +924 -0
  28. package/static/core/{6e2d88d5.js → 75737a9d.js} +6209 -6155
  29. package/static/core/{cc8f145d.js → 9929a348.js} +64 -64
  30. package/static/core/b408f33a.js +655 -0
  31. package/static/core/{526b23c2.js → bc7e3d2b.js} +7 -7
  32. package/static/core/{4eb628d3.js → c3058168.js} +3958 -3702
  33. package/static/core/ce0410b1.js +467 -0
  34. package/static/core/{b9529b8a.js → d1eb3c68.js} +17060 -16835
  35. package/static/core/{b8b730b2.js → dc1f9e4f.js} +17 -17
  36. package/static/core/{4a2af478.js → e1d239ab.js} +41 -41
  37. package/static/core/{9c1c1b89.js → e5e07f1d.js} +856 -755
  38. package/static/core/{350eac23.js → ebd852b6.js} +1756 -1702
  39. package/static/core/{cefd6620.js → ee0ddb51.js} +7782 -6601
  40. package/static/core/{a321a57d.js → f3cff4c9.js} +159 -159
  41. package/static/esm/{dab4cdfd.js → 448d4bb0.js} +70 -70
  42. package/static/esm/{7c5227f0.js → d180c108.js} +50 -47
  43. package/static/runtime/{DownloadOutlined-CgJ8OpH_.js → DownloadOutlined-Dg_G2xO7.js} +4 -4
  44. package/static/runtime/client-CfXgU5Vo.js +7580 -0
  45. package/static/runtime/{defineProperty-B-FyVNQF.js → defineProperty-C_9hhJHt.js} +1 -1
  46. package/static/runtime/dom-export-CHgQ7Ws9.js +8069 -0
  47. package/static/runtime/{es-DnZp8dh1.js → es-BPfImJ0x.js} +5 -5
  48. package/static/runtime/{es-B2DS-PLP.js → es-DcH6fwd6.js} +2 -2
  49. package/static/runtime/{es-deqzngIL.js → es-_OY-D9g1.js} +2 -2
  50. package/static/runtime/{jsx-dev-runtime-Wj1_6O79.js → jsx-dev-runtime-DDukXY54.js} +2 -2
  51. package/static/runtime/jsx-runtime-BodCQYDg.js +22 -0
  52. package/static/runtime/react-BHNx_xzv.js +290 -0
  53. package/static/runtime/react-dom-CyByzibb.js +127 -0
  54. package/two_step_headless_plugin.html +1 -1
  55. package/ui-kit/index.js +49 -47
  56. package/{useblocks-core.2116f1b9.js → useblocks-core.2a5dade1.js} +82 -76
  57. package/useblocks-esm.js +628 -3198
  58. package/useblocks.d.ts +184 -52
  59. package/useblocks.js +818 -12588
  60. package/vite/index.cjs +46 -21
  61. package/vite/index.d.ts +0 -1
  62. package/vite/index.js +46 -21
  63. package/vite/pluginDev/index.d.ts +0 -1
  64. package/webpack/index.cjs +46 -21
  65. package/webpack/index.d.ts +0 -1
  66. package/webpack/index.js +46 -21
  67. package/webpack/pluginDev/index.d.ts +0 -1
  68. package/iframe/js/amp.CVC2Iq48.js +0 -1
  69. package/static/core/35e13192.js +0 -463
  70. package/static/core/9421a704.js +0 -869
  71. package/static/core/9c79239d.js +0 -2063
  72. package/static/core/df0652cc.js +0 -1119
  73. package/static/esm/2fb07398.js +0 -3480
  74. package/static/esm/352121c5.js +0 -55
  75. package/static/esm/64966e1c.js +0 -18
  76. package/static/runtime/client-CM3WFcip.js +0 -7
  77. package/static/runtime/dist-DUS42Hru.js +0 -3421
  78. package/static/runtime/jsx-runtime-DmPQfqtr.js +0 -28
  79. package/static/runtime/react-DIf5CLST.js +0 -258
  80. package/static/runtime/react-dom-Cc3IcUkg.js +0 -5604
  81. /package/iframe/{iframe-eblock.2116f1b9.html → iframe-eblock.2a5dade1.html} +0 -0
  82. /package/iframe/{iframe.2116f1b9.html → iframe.2a5dade1.html} +0 -0
@@ -1,9 +1,9 @@
1
1
  import { n as cR, r as Lr, t as go } from "./rolldown-runtime-Bklm4c_g.js";
2
- import { t as uR } from "./react-DIf5CLST.js";
3
- import { t as dR } from "./react-dom-Cc3IcUkg.js";
4
- import { A as fR, At as mR, B as pR, C as fv, Ct as Vl, D as gR, Dt as VS, E as hR, Et as Br, F as vR, Ft as pt, G as mu, H as KS, I as XS, It as Fi, J as pu, K as Zn, L as bR, Lt as ke, M as GS, Mt as An, N as yR, Nt as gt, O as mv, Ot as qr, P as CR, Pt as mg, Q as ia, R as qS, S as pv, St as pg, T as SR, Tt as gv, U as gu, V as ur, W as Qa, X as Wn, Y as ho, Z as Qr, _ as US, _t as Bt, a as $R, at as xR, b as wR, bt as ER, c as YS, ct as xd, d as IR, dt as Ot, f as NR, ft as D, g as PR, gt as dt, h as RR, ht as Kt, i as MR, j as TR, jt as QS, k as OR, kt as tr, l as DR, lt as La, m as AR, mt as ZS, n as zR, o as LR, ot as hv, p as BR, pt as hu, q as Jn, r as kR, s as HR, st as FR, t as _R, u as WR, ut as vu, v as jR, vt as VR, w as JS, wt as rn, x as KR, xt as gg, y as XR, yt as kf, z as hg } from "./DownloadOutlined-CgJ8OpH_.js";
5
- import { a as Hf, c as Ur, i as Vt, l as br, n as Nn, o as e$, s as vv, t as Ie } from "./defineProperty-B-FyVNQF.js";
6
- import { _ as $c, a as Mt, b as qR, c as Ff, g as j, h as wd, m as UR, p as YR, s as QR } from "./es-deqzngIL.js";
2
+ import { t as uR } from "./react-BHNx_xzv.js";
3
+ import { t as dR } from "./react-dom-CyByzibb.js";
4
+ import { A as fR, At as mR, B as pR, C as fv, Ct as Vl, D as gR, Dt as VS, E as hR, Et as Br, F as vR, Ft as pt, G as mu, H as KS, I as XS, It as Fi, J as pu, K as Zn, L as bR, Lt as ke, M as GS, Mt as An, N as yR, Nt as gt, O as mv, Ot as qr, P as CR, Pt as mg, Q as ia, R as qS, S as pv, St as pg, T as SR, Tt as gv, U as gu, V as ur, W as Qa, X as Wn, Y as ho, Z as Qr, _ as US, _t as Bt, a as $R, at as xR, b as wR, bt as ER, c as YS, ct as xd, d as IR, dt as Ot, f as NR, ft as D, g as PR, gt as dt, h as RR, ht as Kt, i as MR, j as TR, jt as QS, k as OR, kt as tr, l as DR, lt as La, m as AR, mt as ZS, n as zR, o as LR, ot as hv, p as BR, pt as hu, q as Jn, r as kR, s as HR, st as FR, t as _R, u as WR, ut as vu, v as jR, vt as VR, w as JS, wt as rn, x as KR, xt as gg, y as XR, yt as kf, z as hg } from "./DownloadOutlined-Dg_G2xO7.js";
5
+ import { a as Hf, c as Ur, i as Vt, l as br, n as Nn, o as e$, s as vv, t as Ie } from "./defineProperty-C_9hhJHt.js";
6
+ import { _ as $c, a as Mt, b as qR, c as Ff, g as j, h as wd, m as UR, p as YR, s as QR } from "./es-_OY-D9g1.js";
7
7
  import { t as ZR } from "./dayjs.min-CVzHlYit.js";
8
8
  var o = Lr(uR());
9
9
  function _a(e) {
@@ -1,6 +1,6 @@
1
1
  import { n as rl, r as l, t as c } from "./rolldown-runtime-Bklm4c_g.js";
2
- import { t as nl } from "./react-DIf5CLST.js";
3
- import { $ as i, A as ll, B as cl, C as il, D as ol, E as ul, F as sl, G as dl, H as vl, I as fl, J as hl, K as ml, L as gl, M as pl, N as Ol, O as bl, P as _l, Q as wl, R as zl, S as jl, T as Ml, U as Hl, V as Pl, W as yl, X as Vl, Y as Rl, Z as Tl, _ as $l, a as Fl, at as Q7, b as Cl, c as Ll, d as ql, et as Bl, f as Il, ft as G7, g as xl, h as Sl, i as El, it as N7, j as Al, k as Dl, kt as Ul, l as Wl, m as Gl, n as Nl, nt as Ql, o as Zl, p as Yl, q as Jl, r as Kl, rt as Xl, s as kl, t as ec, tt as tc, u as ac, v as rc, w as nc, x as lc, y as cc, z as ic } from "./DownloadOutlined-CgJ8OpH_.js";
2
+ import { t as nl } from "./react-BHNx_xzv.js";
3
+ import { $ as i, A as ll, B as cl, C as il, D as ol, E as ul, F as sl, G as dl, H as vl, I as fl, J as hl, K as ml, L as gl, M as pl, N as Ol, O as bl, P as _l, Q as wl, R as zl, S as jl, T as Ml, U as Hl, V as Pl, W as yl, X as Vl, Y as Rl, Z as Tl, _ as $l, a as Fl, at as Q7, b as Cl, c as Ll, d as ql, et as Bl, f as Il, ft as G7, g as xl, h as Sl, i as El, it as N7, j as Al, k as Dl, kt as Ul, l as Wl, m as Gl, n as Nl, nt as Ql, o as Zl, p as Yl, q as Jl, r as Kl, rt as Xl, s as kl, t as ec, tt as tc, u as ac, v as rc, w as nc, x as lc, y as cc, z as ic } from "./DownloadOutlined-Dg_G2xO7.js";
4
4
  var oc = c(((t) => {
5
5
  Object.defineProperty(t, "__esModule", { value: !0 });
6
6
  t.default = {
@@ -1,6 +1,6 @@
1
1
  import { n as Ct, r as wt } from "./rolldown-runtime-Bklm4c_g.js";
2
- import { t as xt } from "./react-DIf5CLST.js";
3
- import { a as je, c as Tt, i as Et, l as pe, n as Ue, o as X, t as I } from "./defineProperty-B-FyVNQF.js";
2
+ import { t as xt } from "./react-BHNx_xzv.js";
3
+ import { a as je, c as Tt, i as Et, l as pe, n as Ue, o as X, t as I } from "./defineProperty-C_9hhJHt.js";
4
4
  function ie(e) {
5
5
  for (var t = 0, r, s = 0, n = e.length; n >= 4; ++s, n -= 4) r = e.charCodeAt(s) & 255 | (e.charCodeAt(++s) & 255) << 8 | (e.charCodeAt(++s) & 255) << 16 | (e.charCodeAt(++s) & 255) << 24, r = (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= r >>> 24, t = (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
6
6
  switch (n) {
@@ -1,7 +1,7 @@
1
1
  import { t } from "./rolldown-runtime-Bklm4c_g.js";
2
- var o = t(((r) => {
2
+ var _ = t(((r) => {
3
3
  r.Fragment = Symbol.for("react.fragment"), r.jsxDEV = void 0;
4
4
  })), a = t(((r, e) => {
5
- e.exports = o();
5
+ e.exports = _();
6
6
  }));
7
7
  export { a as t };
@@ -0,0 +1,22 @@
1
+ import { t as n } from "./rolldown-runtime-Bklm4c_g.js";
2
+ var i = n(((e) => {
3
+ var _ = Symbol.for("react.transitional.element"), u = Symbol.for("react.fragment");
4
+ function l(v, r, t) {
5
+ var s = null;
6
+ if (t !== void 0 && (s = "" + t), r.key !== void 0 && (s = "" + r.key), "key" in r) {
7
+ t = {};
8
+ for (var o in r) o !== "key" && (t[o] = r[o]);
9
+ } else t = r;
10
+ return r = t.ref, {
11
+ $$typeof: _,
12
+ type: v,
13
+ key: s,
14
+ ref: r !== void 0 ? r : null,
15
+ props: t
16
+ };
17
+ }
18
+ e.Fragment = u, e.jsx = l, e.jsxs = l;
19
+ })), a = n(((e, _) => {
20
+ _.exports = i();
21
+ }));
22
+ export { a as t };
@@ -0,0 +1,290 @@
1
+ import { t as $ } from "./rolldown-runtime-Bklm4c_g.js";
2
+ var X = $(((n) => {
3
+ var E = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), Y = Symbol.for("react.fragment"), M = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), U = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), D = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), q = Symbol.for("react.activity"), S = Symbol.iterator;
4
+ function z(t) {
5
+ return t === null || typeof t != "object" ? null : (t = S && t[S] || t["@@iterator"], typeof t == "function" ? t : null);
6
+ }
7
+ var w = {
8
+ isMounted: function() {
9
+ return !1;
10
+ },
11
+ enqueueForceUpdate: function() {},
12
+ enqueueReplaceState: function() {},
13
+ enqueueSetState: function() {}
14
+ }, g = Object.assign, d = {};
15
+ function _(t, e, u) {
16
+ this.props = t, this.context = e, this.refs = d, this.updater = u || w;
17
+ }
18
+ _.prototype.isReactComponent = {}, _.prototype.setState = function(t, e) {
19
+ if (typeof t != "object" && typeof t != "function" && t != null) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
20
+ this.updater.enqueueSetState(this, t, e, "setState");
21
+ }, _.prototype.forceUpdate = function(t) {
22
+ this.updater.enqueueForceUpdate(this, t, "forceUpdate");
23
+ };
24
+ function h() {}
25
+ h.prototype = _.prototype;
26
+ function y(t, e, u) {
27
+ this.props = t, this.context = e, this.refs = d, this.updater = u || w;
28
+ }
29
+ var p = y.prototype = new h();
30
+ p.constructor = y, g(p, _.prototype), p.isPureReactComponent = !0;
31
+ var H = Array.isArray;
32
+ function T() {}
33
+ var s = {
34
+ H: null,
35
+ A: null,
36
+ T: null,
37
+ S: null
38
+ }, O = Object.prototype.hasOwnProperty;
39
+ function R(t, e, u) {
40
+ var r = u.ref;
41
+ return {
42
+ $$typeof: E,
43
+ type: t,
44
+ key: e,
45
+ ref: r !== void 0 ? r : null,
46
+ props: u
47
+ };
48
+ }
49
+ function G(t, e) {
50
+ return R(t.type, e, t.props);
51
+ }
52
+ function m(t) {
53
+ return typeof t == "object" && t !== null && t.$$typeof === E;
54
+ }
55
+ function K(t) {
56
+ var e = {
57
+ "=": "=0",
58
+ ":": "=2"
59
+ };
60
+ return "$" + t.replace(/[=:]/g, function(u) {
61
+ return e[u];
62
+ });
63
+ }
64
+ var P = /\/+/g;
65
+ function C(t, e) {
66
+ return typeof t == "object" && t !== null && t.key != null ? K("" + t.key) : e.toString(36);
67
+ }
68
+ function B(t) {
69
+ switch (t.status) {
70
+ case "fulfilled": return t.value;
71
+ case "rejected": throw t.reason;
72
+ default: switch (typeof t.status == "string" ? t.then(T, T) : (t.status = "pending", t.then(function(e) {
73
+ t.status === "pending" && (t.status = "fulfilled", t.value = e);
74
+ }, function(e) {
75
+ t.status === "pending" && (t.status = "rejected", t.reason = e);
76
+ })), t.status) {
77
+ case "fulfilled": return t.value;
78
+ case "rejected": throw t.reason;
79
+ }
80
+ }
81
+ throw t;
82
+ }
83
+ function l(t, e, u, r, o) {
84
+ var f = typeof t;
85
+ (f === "undefined" || f === "boolean") && (t = null);
86
+ var i = !1;
87
+ if (t === null) i = !0;
88
+ else switch (f) {
89
+ case "bigint":
90
+ case "string":
91
+ case "number":
92
+ i = !0;
93
+ break;
94
+ case "object": switch (t.$$typeof) {
95
+ case E:
96
+ case N:
97
+ i = !0;
98
+ break;
99
+ case A: return i = t._init, l(i(t._payload), e, u, r, o);
100
+ }
101
+ }
102
+ if (i) return o = o(t), i = r === "" ? "." + C(t, 0) : r, H(o) ? (u = "", i != null && (u = i.replace(P, "$&/") + "/"), l(o, e, u, "", function(Q) {
103
+ return Q;
104
+ })) : o != null && (m(o) && (o = G(o, u + (o.key == null || t && t.key === o.key ? "" : ("" + o.key).replace(P, "$&/") + "/") + i)), e.push(o)), 1;
105
+ i = 0;
106
+ var a = r === "" ? "." : r + ":";
107
+ if (H(t)) for (var c = 0; c < t.length; c++) r = t[c], f = a + C(r, c), i += l(r, e, u, f, o);
108
+ else if (c = z(t), typeof c == "function") for (t = c.call(t), c = 0; !(r = t.next()).done;) r = r.value, f = a + C(r, c++), i += l(r, e, u, f, o);
109
+ else if (f === "object") {
110
+ if (typeof t.then == "function") return l(B(t), e, u, r, o);
111
+ throw e = String(t), Error("Objects are not valid as a React child (found: " + (e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e) + "). If you meant to render a collection of children, use an array instead.");
112
+ }
113
+ return i;
114
+ }
115
+ function v(t, e, u) {
116
+ if (t == null) return t;
117
+ var r = [], o = 0;
118
+ return l(t, r, "", "", function(f) {
119
+ return e.call(u, f, o++);
120
+ }), r;
121
+ }
122
+ function W(t) {
123
+ if (t._status === -1) {
124
+ var e = t._result;
125
+ e = e(), e.then(function(u) {
126
+ (t._status === 0 || t._status === -1) && (t._status = 1, t._result = u);
127
+ }, function(u) {
128
+ (t._status === 0 || t._status === -1) && (t._status = 2, t._result = u);
129
+ }), t._status === -1 && (t._status = 0, t._result = e);
130
+ }
131
+ if (t._status === 1) return t._result.default;
132
+ throw t._result;
133
+ }
134
+ var j = typeof reportError == "function" ? reportError : function(t) {
135
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
136
+ var e = new window.ErrorEvent("error", {
137
+ bubbles: !0,
138
+ cancelable: !0,
139
+ message: typeof t == "object" && t !== null && typeof t.message == "string" ? String(t.message) : String(t),
140
+ error: t
141
+ });
142
+ if (!window.dispatchEvent(e)) return;
143
+ } else if (typeof process == "object" && typeof process.emit == "function") {
144
+ process.emit("uncaughtException", t);
145
+ return;
146
+ }
147
+ }, J = {
148
+ map: v,
149
+ forEach: function(t, e, u) {
150
+ v(t, function() {
151
+ e.apply(this, arguments);
152
+ }, u);
153
+ },
154
+ count: function(t) {
155
+ var e = 0;
156
+ return v(t, function() {
157
+ e++;
158
+ }), e;
159
+ },
160
+ toArray: function(t) {
161
+ return v(t, function(e) {
162
+ return e;
163
+ }) || [];
164
+ },
165
+ only: function(t) {
166
+ if (!m(t)) throw Error("React.Children.only expected to receive a single React element child.");
167
+ return t;
168
+ }
169
+ };
170
+ n.Activity = q, n.Children = J, n.Component = _, n.Fragment = Y, n.Profiler = I, n.PureComponent = y, n.StrictMode = M, n.Suspense = b, n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = s, n.__COMPILER_RUNTIME = {
171
+ __proto__: null,
172
+ c: function(t) {
173
+ return s.H.useMemoCache(t);
174
+ }
175
+ }, n.cache = function(t) {
176
+ return function() {
177
+ return t.apply(null, arguments);
178
+ };
179
+ }, n.cacheSignal = function() {
180
+ return null;
181
+ }, n.cloneElement = function(t, e, u) {
182
+ if (t == null) throw Error("The argument must be a React element, but you passed " + t + ".");
183
+ var r = g({}, t.props), o = t.key;
184
+ if (e != null) for (f in e.key !== void 0 && (o = "" + e.key), e) !O.call(e, f) || f === "key" || f === "__self" || f === "__source" || f === "ref" && e.ref === void 0 || (r[f] = e[f]);
185
+ var f = arguments.length - 2;
186
+ if (f === 1) r.children = u;
187
+ else if (1 < f) {
188
+ for (var i = Array(f), a = 0; a < f; a++) i[a] = arguments[a + 2];
189
+ r.children = i;
190
+ }
191
+ return R(t.type, o, r);
192
+ }, n.createContext = function(t) {
193
+ return t = {
194
+ $$typeof: U,
195
+ _currentValue: t,
196
+ _currentValue2: t,
197
+ _threadCount: 0,
198
+ Provider: null,
199
+ Consumer: null
200
+ }, t.Provider = t, t.Consumer = {
201
+ $$typeof: L,
202
+ _context: t
203
+ }, t;
204
+ }, n.createElement = function(t, e, u) {
205
+ var r, o = {}, f = null;
206
+ if (e != null) for (r in e.key !== void 0 && (f = "" + e.key), e) O.call(e, r) && r !== "key" && r !== "__self" && r !== "__source" && (o[r] = e[r]);
207
+ var i = arguments.length - 2;
208
+ if (i === 1) o.children = u;
209
+ else if (1 < i) {
210
+ for (var a = Array(i), c = 0; c < i; c++) a[c] = arguments[c + 2];
211
+ o.children = a;
212
+ }
213
+ if (t && t.defaultProps) for (r in i = t.defaultProps, i) o[r] === void 0 && (o[r] = i[r]);
214
+ return R(t, f, o);
215
+ }, n.createRef = function() {
216
+ return { current: null };
217
+ }, n.forwardRef = function(t) {
218
+ return {
219
+ $$typeof: k,
220
+ render: t
221
+ };
222
+ }, n.isValidElement = m, n.lazy = function(t) {
223
+ return {
224
+ $$typeof: A,
225
+ _payload: {
226
+ _status: -1,
227
+ _result: t
228
+ },
229
+ _init: W
230
+ };
231
+ }, n.memo = function(t, e) {
232
+ return {
233
+ $$typeof: D,
234
+ type: t,
235
+ compare: e === void 0 ? null : e
236
+ };
237
+ }, n.startTransition = function(t) {
238
+ var e = s.T, u = {};
239
+ s.T = u;
240
+ try {
241
+ var r = t(), o = s.S;
242
+ o !== null && o(u, r), typeof r == "object" && r !== null && typeof r.then == "function" && r.then(T, j);
243
+ } catch (f) {
244
+ j(f);
245
+ } finally {
246
+ e !== null && u.types !== null && (e.types = u.types), s.T = e;
247
+ }
248
+ }, n.unstable_useCacheRefresh = function() {
249
+ return s.H.useCacheRefresh();
250
+ }, n.use = function(t) {
251
+ return s.H.use(t);
252
+ }, n.useActionState = function(t, e, u) {
253
+ return s.H.useActionState(t, e, u);
254
+ }, n.useCallback = function(t, e) {
255
+ return s.H.useCallback(t, e);
256
+ }, n.useContext = function(t) {
257
+ return s.H.useContext(t);
258
+ }, n.useDebugValue = function() {}, n.useDeferredValue = function(t, e) {
259
+ return s.H.useDeferredValue(t, e);
260
+ }, n.useEffect = function(t, e) {
261
+ return s.H.useEffect(t, e);
262
+ }, n.useEffectEvent = function(t) {
263
+ return s.H.useEffectEvent(t);
264
+ }, n.useId = function() {
265
+ return s.H.useId();
266
+ }, n.useImperativeHandle = function(t, e, u) {
267
+ return s.H.useImperativeHandle(t, e, u);
268
+ }, n.useInsertionEffect = function(t, e) {
269
+ return s.H.useInsertionEffect(t, e);
270
+ }, n.useLayoutEffect = function(t, e) {
271
+ return s.H.useLayoutEffect(t, e);
272
+ }, n.useMemo = function(t, e) {
273
+ return s.H.useMemo(t, e);
274
+ }, n.useOptimistic = function(t, e) {
275
+ return s.H.useOptimistic(t, e);
276
+ }, n.useReducer = function(t, e, u) {
277
+ return s.H.useReducer(t, e, u);
278
+ }, n.useRef = function(t) {
279
+ return s.H.useRef(t);
280
+ }, n.useState = function(t) {
281
+ return s.H.useState(t);
282
+ }, n.useSyncExternalStore = function(t, e, u) {
283
+ return s.H.useSyncExternalStore(t, e, u);
284
+ }, n.useTransition = function() {
285
+ return s.H.useTransition();
286
+ }, n.version = "19.2.7";
287
+ })), V = $(((n, E) => {
288
+ E.exports = X();
289
+ }));
290
+ export { V as t };
@@ -0,0 +1,127 @@
1
+ import { t as _ } from "./rolldown-runtime-Bklm4c_g.js";
2
+ import { t as s } from "./react-BHNx_xzv.js";
3
+ var S = _(((n) => {
4
+ var d = s();
5
+ function c(r) {
6
+ var e = "https://react.dev/errors/" + r;
7
+ if (1 < arguments.length) {
8
+ e += "?args[]=" + encodeURIComponent(arguments[1]);
9
+ for (var t = 2; t < arguments.length; t++) e += "&args[]=" + encodeURIComponent(arguments[t]);
10
+ }
11
+ return "Minified React error #" + r + "; visit " + e + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
12
+ }
13
+ function a() {}
14
+ var i = {
15
+ d: {
16
+ f: a,
17
+ r: function() {
18
+ throw Error(c(522));
19
+ },
20
+ D: a,
21
+ C: a,
22
+ L: a,
23
+ m: a,
24
+ X: a,
25
+ S: a,
26
+ M: a
27
+ },
28
+ p: 0,
29
+ findDOMNode: null
30
+ }, m = Symbol.for("react.portal");
31
+ function v(r, e, t) {
32
+ var f = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
33
+ return {
34
+ $$typeof: m,
35
+ key: f == null ? null : "" + f,
36
+ children: r,
37
+ containerInfo: e,
38
+ implementation: t
39
+ };
40
+ }
41
+ var u = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
42
+ function g(r, e) {
43
+ if (r === "font") return "";
44
+ if (typeof e == "string") return e === "use-credentials" ? e : "";
45
+ }
46
+ n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = i, n.createPortal = function(r, e) {
47
+ var t = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
48
+ if (!e || e.nodeType !== 1 && e.nodeType !== 9 && e.nodeType !== 11) throw Error(c(299));
49
+ return v(r, e, null, t);
50
+ }, n.flushSync = function(r) {
51
+ var e = u.T, t = i.p;
52
+ try {
53
+ if (u.T = null, i.p = 2, r) return r();
54
+ } finally {
55
+ u.T = e, i.p = t, i.d.f();
56
+ }
57
+ }, n.preconnect = function(r, e) {
58
+ typeof r == "string" && (e ? (e = e.crossOrigin, e = typeof e == "string" ? e === "use-credentials" ? e : "" : void 0) : e = null, i.d.C(r, e));
59
+ }, n.prefetchDNS = function(r) {
60
+ typeof r == "string" && i.d.D(r);
61
+ }, n.preinit = function(r, e) {
62
+ if (typeof r == "string" && e && typeof e.as == "string") {
63
+ var t = e.as, f = g(t, e.crossOrigin), y = typeof e.integrity == "string" ? e.integrity : void 0, l = typeof e.fetchPriority == "string" ? e.fetchPriority : void 0;
64
+ t === "style" ? i.d.S(r, typeof e.precedence == "string" ? e.precedence : void 0, {
65
+ crossOrigin: f,
66
+ integrity: y,
67
+ fetchPriority: l
68
+ }) : t === "script" && i.d.X(r, {
69
+ crossOrigin: f,
70
+ integrity: y,
71
+ fetchPriority: l,
72
+ nonce: typeof e.nonce == "string" ? e.nonce : void 0
73
+ });
74
+ }
75
+ }, n.preinitModule = function(r, e) {
76
+ if (typeof r == "string") if (typeof e == "object" && e !== null) {
77
+ if (e.as == null || e.as === "script") {
78
+ var t = g(e.as, e.crossOrigin);
79
+ i.d.M(r, {
80
+ crossOrigin: t,
81
+ integrity: typeof e.integrity == "string" ? e.integrity : void 0,
82
+ nonce: typeof e.nonce == "string" ? e.nonce : void 0
83
+ });
84
+ }
85
+ } else e ?? i.d.M(r);
86
+ }, n.preload = function(r, e) {
87
+ if (typeof r == "string" && typeof e == "object" && e !== null && typeof e.as == "string") {
88
+ var t = e.as, f = g(t, e.crossOrigin);
89
+ i.d.L(r, t, {
90
+ crossOrigin: f,
91
+ integrity: typeof e.integrity == "string" ? e.integrity : void 0,
92
+ nonce: typeof e.nonce == "string" ? e.nonce : void 0,
93
+ type: typeof e.type == "string" ? e.type : void 0,
94
+ fetchPriority: typeof e.fetchPriority == "string" ? e.fetchPriority : void 0,
95
+ referrerPolicy: typeof e.referrerPolicy == "string" ? e.referrerPolicy : void 0,
96
+ imageSrcSet: typeof e.imageSrcSet == "string" ? e.imageSrcSet : void 0,
97
+ imageSizes: typeof e.imageSizes == "string" ? e.imageSizes : void 0,
98
+ media: typeof e.media == "string" ? e.media : void 0
99
+ });
100
+ }
101
+ }, n.preloadModule = function(r, e) {
102
+ if (typeof r == "string") if (e) {
103
+ var t = g(e.as, e.crossOrigin);
104
+ i.d.m(r, {
105
+ as: typeof e.as == "string" && e.as !== "script" ? e.as : void 0,
106
+ crossOrigin: t,
107
+ integrity: typeof e.integrity == "string" ? e.integrity : void 0
108
+ });
109
+ } else i.d.m(r);
110
+ }, n.requestFormReset = function(r) {
111
+ i.d.r(r);
112
+ }, n.unstable_batchedUpdates = function(r, e) {
113
+ return r(e);
114
+ }, n.useFormState = function(r, e, t) {
115
+ return u.H.useFormState(r, e, t);
116
+ }, n.useFormStatus = function() {
117
+ return u.H.useHostTransitionStatus();
118
+ }, n.version = "19.2.7";
119
+ })), T = _(((n, d) => {
120
+ function c() {
121
+ if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) try {
122
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c);
123
+ } catch {}
124
+ }
125
+ c(), d.exports = S();
126
+ }));
127
+ export { T 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?2116f1b9"></script>
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, ...n }, r) => {
4914
- let [i, a] = f(!1), [s, l] = f(0), [u, d] = f(n.value || n.defaultValue || null), [p, m] = f(n.value || n.defaultValue || null), h = (e) => {
4915
- e.target.closest?.(`.${Lp}`) && (e.preventDefault(), a(!0), l(e.clientX), d(p));
4916
- }, g = () => a(!1), _ = o((t) => {
4917
- if (i) {
4918
- let r = t.clientX - s, i = (u || 0) + r * e;
4919
- i = Math.max(0, Math.round(i)), n.max !== void 0 && (i = Math.min(i, Number(n.max))), n.min !== void 0 && (i = Math.max(i, Number(n.min))), m(i), n.onChange && n.onChange(i);
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
- i,
4923
- n.onChange,
4924
- n.max,
4925
- n.min,
4926
- u,
4927
- s,
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
- let v = t == null ? t : /* @__PURE__ */ F("span", {
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: h,
4947
+ onMouseDown: T,
4948
4948
  children: [/* @__PURE__ */ F($d, {
4949
- ...n,
4950
- ref: r,
4951
- value: p,
4952
- prefix: v,
4949
+ ...r,
4950
+ ref: i,
4951
+ value: S,
4952
+ onChange: w,
4953
+ prefix: ee,
4953
4954
  className: "input-draggable"
4954
- }), i && /* @__PURE__ */ F("div", {
4955
+ }), a && /* @__PURE__ */ F("div", {
4955
4956
  role: "none",
4956
4957
  className: "draggable-input-number-overlay",
4957
- onMouseUp: g
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: d, placement: p = "bottomRight", labels: m, filterOptions: h }) => {
4975
- let [g, _] = f(), [v, y] = f(e), [b, x] = f(null), [S, C] = f(!!a), { __: w } = G(), T = u(() => ({
4976
- safeFonts: m?.safeFonts ?? w("Safe Fonts"),
4977
- googleFonts: m?.googleFonts ?? w("Google Fonts"),
4978
- sansSerif: m?.sansSerif ?? w("Sans Serif"),
4979
- serif: m?.serif ?? w("Serif")
4980
- }), [m, w]), E = h?.subsets ?? _p.subsets, D = h?.maxPopularity ?? _p.maxPopularity, ee = r ?? mp, O = i ?? b, k = s ?? S;
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
- O && (n && e !== v ? e ? e[1] === "Sans Serif" ? _([
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" || g === void 0) && _(e) : _([""]) : g === void 0 && v && _(e), n || _(e), y(e));
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
- v,
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: g,
5066
- placement: p,
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: d
5076
+ style: p
5075
5077
  });
5076
5078
  };
5077
5079
  Vp.displayName = "ControlFontFamily";