useblocks 1.1.46 → 1.1.49

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 (80) 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 +70 -42
  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/{cc8f145d.js → 11296a18.js} +55 -55
  24. package/static/core/{a321a57d.js → 13d197af.js} +26 -26
  25. package/static/core/13f581cc.js +924 -0
  26. package/static/core/{90ec6d2b2.js → 1ca5f3772.js} +184 -155
  27. package/static/core/{b9529b8a.js → 339377b8.js} +16684 -16503
  28. package/static/core/{6e2d88d5.js → 386cf7b3.js} +3573 -3559
  29. package/static/core/{6df04323.js → 3b4845f7.js} +537 -518
  30. package/static/core/{526b23c2.js → 3dea3b87.js} +7 -7
  31. package/static/core/59023866.js +2090 -0
  32. package/static/core/{4a2af478.js → 7a229b90.js} +3 -3
  33. package/static/core/{6b8432a3.js → 8c81db36.js} +3 -3
  34. package/static/core/{b8b730b2.js → 8e110c69.js} +22 -22
  35. package/static/core/{35e13192.js → a11c28c2.js} +172 -168
  36. package/static/core/{9c1c1b89.js → aacf134d.js} +745 -664
  37. package/static/core/{350eac23.js → acb049cb.js} +1349 -1297
  38. package/static/core/{cefd6620.js → c59f9731.js} +7640 -6595
  39. package/static/core/{4eb628d3.js → de79e0c5.js} +3947 -3705
  40. package/static/core/e7c24fe9.js +649 -0
  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/{useblocks-core.2116f1b9.js → useblocks-core.15a9129c.js} +82 -76
  56. package/useblocks-esm.js +628 -3198
  57. package/useblocks.d.ts +184 -52
  58. package/useblocks.js +818 -12588
  59. package/vite/index.cjs +46 -21
  60. package/vite/index.d.ts +0 -1
  61. package/vite/index.js +46 -21
  62. package/vite/pluginDev/index.d.ts +0 -1
  63. package/webpack/index.cjs +46 -21
  64. package/webpack/index.d.ts +0 -1
  65. package/webpack/index.js +46 -21
  66. package/webpack/pluginDev/index.d.ts +0 -1
  67. package/iframe/js/amp.CVC2Iq48.js +0 -1
  68. package/static/core/9421a704.js +0 -869
  69. package/static/core/9c79239d.js +0 -2063
  70. package/static/core/df0652cc.js +0 -1119
  71. package/static/esm/2fb07398.js +0 -3480
  72. package/static/esm/352121c5.js +0 -55
  73. package/static/esm/64966e1c.js +0 -18
  74. package/static/runtime/client-CM3WFcip.js +0 -7
  75. package/static/runtime/dist-DUS42Hru.js +0 -3421
  76. package/static/runtime/jsx-runtime-DmPQfqtr.js +0 -28
  77. package/static/runtime/react-DIf5CLST.js +0 -258
  78. package/static/runtime/react-dom-Cc3IcUkg.js +0 -5604
  79. /package/iframe/{iframe-eblock.2116f1b9.html → iframe-eblock.15a9129c.html} +0 -0
  80. /package/iframe/{iframe.2116f1b9.html → iframe.15a9129c.html} +0 -0
@@ -1,12 +1,12 @@
1
- __useblocks__.define("static/core/4a2af478.js", [
1
+ __useblocks__.define("static/core/7a229b90.js", [
2
2
  "require",
3
3
  "exports",
4
4
  "module",
5
5
  "static/core/bd36b180.js",
6
- "static/core/6e2d88d5.js"
6
+ "static/core/386cf7b3.js"
7
7
  ], function(Tt, $e, _n) {
8
8
  Tt("./bd36b180.js");
9
- const Xe = Tt("./6e2d88d5.js");
9
+ const Xe = Tt("./386cf7b3.js");
10
10
  var Mt, Rt, U = {}, L = {}, F = {};
11
11
  function m() {
12
12
  return Mt ? F : (Mt = 1, Object.defineProperty(F, "__esModule", { value: !0 }), F.default = function f(s, c) {
@@ -1,10 +1,10 @@
1
- __useblocks__.define("static/core/6b8432a3.js", [
1
+ __useblocks__.define("static/core/8c81db36.js", [
2
2
  "require",
3
3
  "exports",
4
4
  "module",
5
- "static/core/cefd6620.js"
5
+ "static/core/c59f9731.js"
6
6
  ], function(f, r, I) {
7
- const l = f("./cefd6620.js");
7
+ const l = f("./c59f9731.js");
8
8
  var n = l.createState({
9
9
  invalidateBlockId: null,
10
10
  isCodeMode: !1,
@@ -1,25 +1,25 @@
1
- __useblocks__.define("static/core/b8b730b2.js", [
1
+ __useblocks__.define("static/core/8e110c69.js", [
2
2
  "require",
3
3
  "exports",
4
4
  "module",
5
5
  "static/core/bd36b180.js",
6
- "static/core/6e2d88d5.js",
6
+ "static/core/386cf7b3.js",
7
7
  "react",
8
- "react-dom",
9
8
  "react/jsx-runtime",
10
9
  "antd",
11
10
  "react-dom/client",
12
11
  "@ant-design/icons",
13
- "@ant-design/cssinjs"
12
+ "@ant-design/cssinjs",
13
+ "react-dom"
14
14
  ], function(c, J, se) {
15
- const U = c("./bd36b180.js"), S = c("./6e2d88d5.js");
15
+ const U = c("./bd36b180.js"), S = c("./386cf7b3.js");
16
16
  let n = c("react");
17
17
  n = U.__toESM(n, 1);
18
- c("react-dom");
19
18
  let t = c("react/jsx-runtime"), d = c("antd");
20
19
  c("react-dom/client");
21
20
  c("@ant-design/icons");
22
21
  c("@ant-design/cssinjs");
22
+ c("react-dom");
23
23
  var _ = ({ size: j = 24, color: N = "currentColor", ...l }) => n.createElement("svg", {
24
24
  viewBox: "0 0 24 24",
25
25
  width: j,
@@ -58,12 +58,12 @@ __useblocks__.define("static/core/b8b730b2.js", [
58
58
  actions: "actions"
59
59
  }, q = ({ customRequest: j, state: N, setState: l }) => {
60
60
  var P, z;
61
- const { t: o } = S.dr(), { options: I } = S.mn(), A = (z = (P = I?.config) === null || P === void 0 ? void 0 : P.iconStrokeWidth) !== null && z !== void 0 ? z : 1.75, F = (0, n.useRef)(null), { mode: h, rawText: g, foregroundHex: x, backgroundHex: f, transparentBackground: p, qrSidePx: C, barcodeBarHeightPx: k } = N, K = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { mode: e })), [l]), X = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { rawText: e })), [l]), Y = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { foregroundHex: e })), [l]), Z = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { backgroundHex: e })), [l]), ee = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { transparentBackground: e })), [l]), ae = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { qrSidePx: e })), [l]), te = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { barcodeBarHeightPx: e })), [l]), [E, re] = (0, n.useState)(g), [T, v] = (0, n.useState)(null), [L, G] = (0, n.useState)(!1), y = (0, n.useMemo)(() => S.Sn.debounce((e) => re(e), 300), []);
61
+ const { t: o } = S.dr(), { options: I } = S.mn(), A = (z = (P = I?.config) === null || P === void 0 ? void 0 : P.iconStrokeWidth) !== null && z !== void 0 ? z : 1.75, F = (0, n.useRef)(null), { mode: h, rawText: g, foregroundHex: x, backgroundHex: f, transparentBackground: p, qrSidePx: C, barcodeBarHeightPx: k } = N, K = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { mode: e })), [l]), X = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { rawText: e })), [l]), Y = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { foregroundHex: e })), [l]), Z = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { backgroundHex: e })), [l]), ee = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { transparentBackground: e })), [l]), ae = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { qrSidePx: e })), [l]), te = (0, n.useCallback)((e) => l((a) => Object.assign(Object.assign({}, a), { barcodeBarHeightPx: e })), [l]), [E, re] = (0, n.useState)(g), [T, v] = (0, n.useState)(null), [O, G] = (0, n.useState)(!1), y = (0, n.useMemo)(() => S.Sn.debounce((e) => re(e), 300), []);
62
62
  (0, n.useEffect)(() => (y(g), () => {
63
63
  y.cancel();
64
64
  }), [g, y]);
65
- const M = p ? "#00000000" : f, D = (0, n.useCallback)(async (e, a) => {
66
- const i = (await Promise.resolve().then(() => c("./a321a57d.js")).then(function(s) {
65
+ const M = p ? "#00000000" : f, Q = (0, n.useCallback)(async (e, a) => {
66
+ const i = (await Promise.resolve().then(() => c("./13d197af.js")).then(function(s) {
67
67
  return s.b;
68
68
  })).default, u = a.trim(), m = Math.min(280, Math.max(80, C));
69
69
  if (!u) {
@@ -84,10 +84,10 @@ __useblocks__.define("static/core/b8b730b2.js", [
84
84
  x,
85
85
  M,
86
86
  C
87
- ]), Q = (0, n.useCallback)(async (e, a) => {
88
- const i = (await Promise.resolve().then(() => c("./4a2af478.js")).then(function(b) {
87
+ ]), D = (0, n.useCallback)(async (e, a) => {
88
+ const i = (await Promise.resolve().then(() => c("./7a229b90.js")).then(function(b) {
89
89
  return b.J;
90
- })).default, u = a.trim(), m = p ? "rgba(0,0,0,0)" : f, s = Math.min(72, Math.max(24, k)), R = Math.max(1, Math.round(s / 42)), O = Math.max(4, Math.round(.07 * s)), W = Math.max(10, Math.round(.15 * s));
90
+ })).default, u = a.trim(), m = p ? "rgba(0,0,0,0)" : f, s = Math.min(72, Math.max(24, k)), R = Math.max(1, Math.round(s / 42)), L = Math.max(4, Math.round(.07 * s)), W = Math.max(10, Math.round(.15 * s));
91
91
  if (!u) {
92
92
  e.width = Math.round(4 * s), e.height = Math.round(1.65 * s);
93
93
  const b = e.getContext("2d");
@@ -99,7 +99,7 @@ __useblocks__.define("static/core/b8b730b2.js", [
99
99
  displayValue: !0,
100
100
  background: m,
101
101
  lineColor: x,
102
- margin: O,
102
+ margin: L,
103
103
  width: R,
104
104
  height: s,
105
105
  fontSize: W
@@ -116,7 +116,7 @@ __useblocks__.define("static/core/b8b730b2.js", [
116
116
  let a = !1;
117
117
  return (async () => {
118
118
  try {
119
- h === "qr" ? await D(e, E) : await Q(e, E), a || v(null);
119
+ h === "qr" ? await Q(e, E) : await D(e, E), a || v(null);
120
120
  } catch (i) {
121
121
  const u = i instanceof Error ? i.message : String(i);
122
122
  if (!a) {
@@ -131,8 +131,8 @@ __useblocks__.define("static/core/b8b730b2.js", [
131
131
  }, [
132
132
  h,
133
133
  E,
134
- Q,
135
134
  D,
135
+ Q,
136
136
  o
137
137
  ]);
138
138
  const V = (0, n.useCallback)(async () => {
@@ -142,7 +142,7 @@ __useblocks__.define("static/core/b8b730b2.js", [
142
142
  const a = typeof window > "u" ? 2 : Math.min(3, Math.max(2, window.devicePixelRatio || 2));
143
143
  if (h === "qr") {
144
144
  const w = Math.round(Math.min(600, Math.max(80, C)) * a), B = document.createElement("canvas");
145
- B.width = w, B.height = w, await (await Promise.resolve().then(() => c("./a321a57d.js")).then(function(H) {
145
+ B.width = w, B.height = w, await (await Promise.resolve().then(() => c("./13d197af.js")).then(function(H) {
146
146
  return H.b;
147
147
  })).default.toCanvas(B, e, {
148
148
  width: w,
@@ -156,16 +156,16 @@ __useblocks__.define("static/core/b8b730b2.js", [
156
156
  if (!$) throw new Error("PNG export failed");
157
157
  return $;
158
158
  }
159
- const i = (await Promise.resolve().then(() => c("./4a2af478.js")).then(function(w) {
159
+ const i = (await Promise.resolve().then(() => c("./7a229b90.js")).then(function(w) {
160
160
  return w.J;
161
- })).default, u = document.createElement("canvas"), m = p ? "rgba(0,0,0,0)" : f, s = Math.min(130, Math.max(24, k)), R = Math.max(6, Math.round(.1 * s)), O = Math.max(2, Math.round(s / 36)), W = Math.max(12, Math.round(.16 * s));
161
+ })).default, u = document.createElement("canvas"), m = p ? "rgba(0,0,0,0)" : f, s = Math.min(130, Math.max(24, k)), R = Math.max(6, Math.round(.1 * s)), L = Math.max(2, Math.round(s / 36)), W = Math.max(12, Math.round(.16 * s));
162
162
  i(u, e, {
163
163
  format: "CODE128",
164
164
  displayValue: !0,
165
165
  background: m,
166
166
  lineColor: x,
167
167
  margin: Math.round(R * a),
168
- width: Math.round(O * a),
168
+ width: Math.round(L * a),
169
169
  height: Math.round(s * a),
170
170
  fontSize: Math.round(W * a)
171
171
  });
@@ -184,7 +184,7 @@ __useblocks__.define("static/core/b8b730b2.js", [
184
184
  y,
185
185
  o
186
186
  ]), ne = (0, n.useCallback)(async () => {
187
- if (!L && g.trim()) {
187
+ if (!O && g.trim()) {
188
188
  G(!0);
189
189
  try {
190
190
  let e;
@@ -209,7 +209,7 @@ __useblocks__.define("static/core/b8b730b2.js", [
209
209
  V,
210
210
  h,
211
211
  g,
212
- L
212
+ O
213
213
  ]), oe = !!g.trim() && !T;
214
214
  return (0, t.jsx)("div", {
215
215
  className: r.root,
@@ -365,7 +365,7 @@ __useblocks__.define("static/core/b8b730b2.js", [
365
365
  onClick: () => {
366
366
  ne();
367
367
  },
368
- loading: L,
368
+ loading: O,
369
369
  disabled: !oe,
370
370
  children: o("Add to My files")
371
371
  })