useblocks 1.1.45 → 1.1.46
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.CVC2Iq48.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/singlepage_headless_plugin.html +1 -1
- package/static/core/{5e0828e3.js → 350eac23.js} +3 -3
- package/static/core/{2f2019c1.js → 35e13192.js} +253 -239
- package/static/core/{bc098620.js → 4a2af478.js} +3 -3
- package/static/core/{ed0ecf0a.js → 4eb628d3.js} +5 -5
- package/static/core/{d14cb6e2.js → 526b23c2.js} +7 -7
- package/static/core/{48b80eec.js → 6b8432a3.js} +3 -3
- package/static/core/{b7a9d262.js → 6df04323.js} +248 -248
- package/static/core/{94f2c0df.js → 6e2d88d5.js} +8959 -8844
- package/static/core/{6450546e2.js → 90ec6d2b2.js} +7 -7
- package/static/core/{632d894f.js → 9421a704.js} +3 -3
- package/static/core/{fd4fa049.js → 9c1c1b89.js} +4 -4
- package/static/core/{ff830d19.js → 9c79239d.js} +899 -882
- package/static/core/{7d884291.js → a321a57d.js} +32 -32
- package/static/core/{8c84cc76.js → b8b730b2.js} +15 -15
- package/static/core/{af153381.js → b9529b8a.js} +6405 -6131
- package/static/core/{cb72ea5e.js → cc8f145d.js} +86 -86
- package/static/core/{bb774fb9.js → cefd6620.js} +636 -603
- package/static/core/df0652cc.js +1119 -0
- package/two_step_headless_plugin.html +1 -1
- package/{useblocks-core.ecd1a3b0.js → useblocks-core.2116f1b9.js} +6 -6
- package/useblocks-esm.js +5 -4
- package/useblocks.d.ts +6 -0
- package/useblocks.js +5 -4
- package/static/core/c28bc42e.js +0 -46
- /package/iframe/{iframe-eblock.ecd1a3b0.html → iframe-eblock.2116f1b9.html} +0 -0
- /package/iframe/{iframe.ecd1a3b0.html → iframe.2116f1b9.html} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/a321a57d.js", [
|
|
2
2
|
"require",
|
|
3
3
|
"exports",
|
|
4
4
|
"module",
|
|
5
5
|
"static/core/bd36b180.js",
|
|
6
|
-
"static/core/
|
|
6
|
+
"static/core/6e2d88d5.js"
|
|
7
7
|
], function(tt, te, ge) {
|
|
8
8
|
tt("./bd36b180.js");
|
|
9
|
-
const ee = tt("./
|
|
9
|
+
const ee = tt("./6e2d88d5.js");
|
|
10
10
|
var et, nt, H = {};
|
|
11
11
|
function ne() {
|
|
12
12
|
return nt ? et : (nt = 1, et = function() {
|
|
13
13
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
var rt,
|
|
16
|
+
var rt, q = {}, z = {};
|
|
17
17
|
function F() {
|
|
18
18
|
if (rt) return z;
|
|
19
19
|
let a;
|
|
@@ -81,7 +81,7 @@ __useblocks__.define("static/core/7d884291.js", [
|
|
|
81
81
|
}, z;
|
|
82
82
|
}
|
|
83
83
|
var ot, it, at, st, ut, ct = {};
|
|
84
|
-
function
|
|
84
|
+
function O() {
|
|
85
85
|
return ot || (ot = 1, (a = ct).L = { bit: 1 }, a.M = { bit: 0 }, a.Q = { bit: 3 }, a.H = { bit: 2 }, a.isValid = function(u) {
|
|
86
86
|
return u && u.bit !== void 0 && u.bit >= 0 && u.bit < 4;
|
|
87
87
|
}, a.from = function(u, n) {
|
|
@@ -111,7 +111,7 @@ __useblocks__.define("static/core/7d884291.js", [
|
|
|
111
111
|
function wt() {
|
|
112
112
|
if (pt) return j;
|
|
113
113
|
pt = 1;
|
|
114
|
-
const a =
|
|
114
|
+
const a = O(), u = [
|
|
115
115
|
1,
|
|
116
116
|
1,
|
|
117
117
|
1,
|
|
@@ -585,7 +585,7 @@ __useblocks__.define("static/core/7d884291.js", [
|
|
|
585
585
|
}
|
|
586
586
|
function oe() {
|
|
587
587
|
return bt || (bt = 1, (function(a) {
|
|
588
|
-
const u = F(), n = wt(), t =
|
|
588
|
+
const u = F(), n = wt(), t = O(), r = D(), s = Tt(), l = u.getBCHDigit(7973);
|
|
589
589
|
function B(d, b) {
|
|
590
590
|
return r.getCharCountIndicator(d, b) + 4;
|
|
591
591
|
}
|
|
@@ -632,9 +632,9 @@ __useblocks__.define("static/core/7d884291.js", [
|
|
|
632
632
|
};
|
|
633
633
|
})(Bt)), Bt;
|
|
634
634
|
}
|
|
635
|
-
var Lt, $ = {}, xt, Ut, St, _t, kt, zt, Ft, Dt, Ht = {},
|
|
635
|
+
var Lt, $ = {}, xt, Ut, St, _t, kt, zt, Ft, Dt, Ht = {}, Kt, Jt, Yt, jt = { exports: {} };
|
|
636
636
|
function ie() {
|
|
637
|
-
return
|
|
637
|
+
return Kt || (Kt = 1, (function(a) {
|
|
638
638
|
var u = {
|
|
639
639
|
single_source_shortest_paths: function(n, t, r) {
|
|
640
640
|
var s = {}, l = {};
|
|
@@ -689,7 +689,7 @@ __useblocks__.define("static/core/7d884291.js", [
|
|
|
689
689
|
})(jt)), jt.exports;
|
|
690
690
|
}
|
|
691
691
|
function ae() {
|
|
692
|
-
return
|
|
692
|
+
return Jt || (Jt = 1, (function(a) {
|
|
693
693
|
const u = D(), n = (function() {
|
|
694
694
|
if (Ut) return xt;
|
|
695
695
|
Ut = 1;
|
|
@@ -950,9 +950,9 @@ Make sure your charset is UTF-8`);
|
|
|
950
950
|
})(Ht)), Ht;
|
|
951
951
|
}
|
|
952
952
|
function se() {
|
|
953
|
-
if (Yt) return
|
|
953
|
+
if (Yt) return q;
|
|
954
954
|
Yt = 1;
|
|
955
|
-
const a = F(), u =
|
|
955
|
+
const a = F(), u = O(), n = (function() {
|
|
956
956
|
if (at) return it;
|
|
957
957
|
function e() {
|
|
958
958
|
this.buffer = [], this.length = 0;
|
|
@@ -1136,19 +1136,19 @@ Make sure your charset is UTF-8`);
|
|
|
1136
1136
|
for (let i = 0; i < h; i++) f.put(i % 2 ? 17 : 236, 8);
|
|
1137
1137
|
return (function(i, v, m) {
|
|
1138
1138
|
const g = a.getSymbolTotalCodewords(v), C = g - B.getTotalCodewordsCount(v, m), E = B.getBlocksCount(v, m), I = E - g % E, L = Math.floor(g / E), x = Math.floor(C / E), T = x + 1, N = L - x, U = new P(N);
|
|
1139
|
-
let
|
|
1140
|
-
const V = new Array(E),
|
|
1141
|
-
let
|
|
1139
|
+
let K = 0;
|
|
1140
|
+
const V = new Array(E), Wt = new Array(E);
|
|
1141
|
+
let X = 0;
|
|
1142
1142
|
const he = new Uint8Array(i.buffer);
|
|
1143
|
-
for (let
|
|
1144
|
-
const G =
|
|
1145
|
-
V[
|
|
1143
|
+
for (let J = 0; J < E; J++) {
|
|
1144
|
+
const G = J < I ? x : T;
|
|
1145
|
+
V[J] = he.slice(K, K + G), Wt[J] = U.encode(V[J]), K += G, X = Math.max(X, G);
|
|
1146
1146
|
}
|
|
1147
|
-
const
|
|
1147
|
+
const W = new Uint8Array(g);
|
|
1148
1148
|
let _, k, Gt = 0;
|
|
1149
|
-
for (_ = 0; _ <
|
|
1150
|
-
for (_ = 0; _ < N; _++) for (k = 0; k < E; k++)
|
|
1151
|
-
return
|
|
1149
|
+
for (_ = 0; _ < X; _++) for (k = 0; k < E; k++) _ < V[k].length && (W[Gt++] = V[k][_]);
|
|
1150
|
+
for (_ = 0; _ < N; _++) for (k = 0; k < E; k++) W[Gt++] = Wt[k][_];
|
|
1151
|
+
return W;
|
|
1152
1152
|
})(f, e, o);
|
|
1153
1153
|
}
|
|
1154
1154
|
function y(e, o, c, f) {
|
|
@@ -1201,8 +1201,8 @@ Minimum version required to store current data is: ` + h + `.
|
|
|
1201
1201
|
let I = -1, L = E - 1, x = 7, T = 0;
|
|
1202
1202
|
for (let N = E - 1; N > 0; N -= 2) for (N === 6 && N--;;) {
|
|
1203
1203
|
for (let U = 0; U < 2; U++) if (!g.isReserved(L, N - U)) {
|
|
1204
|
-
let
|
|
1205
|
-
T < C.length && (
|
|
1204
|
+
let K = !1;
|
|
1205
|
+
T < C.length && (K = (C[T] >>> x & 1) == 1), g.set(L, N - U, K), x--, x === -1 && (T++, x = 7);
|
|
1206
1206
|
}
|
|
1207
1207
|
if (L += I, L < 0 || E <= L) {
|
|
1208
1208
|
L -= I, I = -I;
|
|
@@ -1217,13 +1217,13 @@ Minimum version required to store current data is: ` + h + `.
|
|
|
1217
1217
|
segments: w
|
|
1218
1218
|
};
|
|
1219
1219
|
}
|
|
1220
|
-
return
|
|
1220
|
+
return q.create = function(e, o) {
|
|
1221
1221
|
if (e === void 0 || e === "") throw new Error("No input text");
|
|
1222
1222
|
let c, f, w = u.M;
|
|
1223
1223
|
return o !== void 0 && (w = u.from(o.errorCorrectionLevel, u.M), c = d.from(o.version), f = l.from(o.maskPattern), o.toSJISFunc && a.setToSJISFunction(o.toSJISFunc)), y(e, c, w, f);
|
|
1224
|
-
},
|
|
1224
|
+
}, q;
|
|
1225
1225
|
}
|
|
1226
|
-
var Vt,
|
|
1226
|
+
var Vt, qt, Ot = {}, Qt = {};
|
|
1227
1227
|
function $t() {
|
|
1228
1228
|
return Vt || (Vt = 1, (function(a) {
|
|
1229
1229
|
function u(n) {
|
|
@@ -1271,7 +1271,7 @@ Minimum version required to store current data is: ` + h + `.
|
|
|
1271
1271
|
})(Qt)), Qt;
|
|
1272
1272
|
}
|
|
1273
1273
|
function ue() {
|
|
1274
|
-
return
|
|
1274
|
+
return qt || (qt = 1, (function(a) {
|
|
1275
1275
|
const u = $t();
|
|
1276
1276
|
a.render = function(n, t, r) {
|
|
1277
1277
|
let s = r, l = t;
|
|
@@ -1292,9 +1292,9 @@ Minimum version required to store current data is: ` + h + `.
|
|
|
1292
1292
|
const l = a.render(n, t, s), B = s.type || "image/png", P = s.rendererOpts || {};
|
|
1293
1293
|
return l.toDataURL(B, P.quality);
|
|
1294
1294
|
};
|
|
1295
|
-
})(
|
|
1295
|
+
})(Ot)), Ot;
|
|
1296
1296
|
}
|
|
1297
|
-
var Zt,
|
|
1297
|
+
var Zt, Xt, Z = {};
|
|
1298
1298
|
function ce() {
|
|
1299
1299
|
if (Zt) return Z;
|
|
1300
1300
|
Zt = 1;
|
|
@@ -1321,8 +1321,8 @@ Minimum version required to store current data is: ` + h + `.
|
|
|
1321
1321
|
}, Z;
|
|
1322
1322
|
}
|
|
1323
1323
|
var fe = ee.Ho((function() {
|
|
1324
|
-
if (
|
|
1325
|
-
|
|
1324
|
+
if (Xt) return H;
|
|
1325
|
+
Xt = 1;
|
|
1326
1326
|
const a = ne(), u = se(), n = ue(), t = ce();
|
|
1327
1327
|
function r(s, l, B, P, d) {
|
|
1328
1328
|
const b = [].slice.call(arguments, 1), A = b.length, M = typeof b[A - 1] == "function";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/b8b730b2.js", [
|
|
2
2
|
"require",
|
|
3
3
|
"exports",
|
|
4
4
|
"module",
|
|
5
5
|
"static/core/bd36b180.js",
|
|
6
|
-
"static/core/
|
|
6
|
+
"static/core/6e2d88d5.js",
|
|
7
7
|
"react",
|
|
8
8
|
"react-dom",
|
|
9
9
|
"react/jsx-runtime",
|
|
@@ -12,7 +12,7 @@ __useblocks__.define("static/core/8c84cc76.js", [
|
|
|
12
12
|
"@ant-design/icons",
|
|
13
13
|
"@ant-design/cssinjs"
|
|
14
14
|
], function(c, J, se) {
|
|
15
|
-
const U = c("./bd36b180.js"), S = c("./
|
|
15
|
+
const U = c("./bd36b180.js"), S = c("./6e2d88d5.js");
|
|
16
16
|
let n = c("react");
|
|
17
17
|
n = U.__toESM(n, 1);
|
|
18
18
|
c("react-dom");
|
|
@@ -58,12 +58,12 @@ __useblocks__.define("static/core/8c84cc76.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), [
|
|
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), []);
|
|
62
62
|
(0, n.useEffect)(() => (y(g), () => {
|
|
63
63
|
y.cancel();
|
|
64
64
|
}), [g, y]);
|
|
65
65
|
const M = p ? "#00000000" : f, D = (0, n.useCallback)(async (e, a) => {
|
|
66
|
-
const i = (await Promise.resolve().then(() => c("./
|
|
66
|
+
const i = (await Promise.resolve().then(() => c("./a321a57d.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) {
|
|
@@ -85,9 +85,9 @@ __useblocks__.define("static/core/8c84cc76.js", [
|
|
|
85
85
|
M,
|
|
86
86
|
C
|
|
87
87
|
]), Q = (0, n.useCallback)(async (e, a) => {
|
|
88
|
-
const i = (await Promise.resolve().then(() => c("./
|
|
88
|
+
const i = (await Promise.resolve().then(() => c("./4a2af478.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)),
|
|
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));
|
|
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");
|
|
@@ -100,7 +100,7 @@ __useblocks__.define("static/core/8c84cc76.js", [
|
|
|
100
100
|
background: m,
|
|
101
101
|
lineColor: x,
|
|
102
102
|
margin: O,
|
|
103
|
-
width:
|
|
103
|
+
width: R,
|
|
104
104
|
height: s,
|
|
105
105
|
fontSize: W
|
|
106
106
|
});
|
|
@@ -142,7 +142,7 @@ __useblocks__.define("static/core/8c84cc76.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("./
|
|
145
|
+
B.width = w, B.height = w, await (await Promise.resolve().then(() => c("./a321a57d.js")).then(function(H) {
|
|
146
146
|
return H.b;
|
|
147
147
|
})).default.toCanvas(B, e, {
|
|
148
148
|
width: w,
|
|
@@ -156,15 +156,15 @@ __useblocks__.define("static/core/8c84cc76.js", [
|
|
|
156
156
|
if (!$) throw new Error("PNG export failed");
|
|
157
157
|
return $;
|
|
158
158
|
}
|
|
159
|
-
const i = (await Promise.resolve().then(() => c("./
|
|
159
|
+
const i = (await Promise.resolve().then(() => c("./4a2af478.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)),
|
|
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));
|
|
162
162
|
i(u, e, {
|
|
163
163
|
format: "CODE128",
|
|
164
164
|
displayValue: !0,
|
|
165
165
|
background: m,
|
|
166
166
|
lineColor: x,
|
|
167
|
-
margin: Math.round(
|
|
167
|
+
margin: Math.round(R * a),
|
|
168
168
|
width: Math.round(O * a),
|
|
169
169
|
height: Math.round(s * a),
|
|
170
170
|
fontSize: Math.round(W * a)
|
|
@@ -184,7 +184,7 @@ __useblocks__.define("static/core/8c84cc76.js", [
|
|
|
184
184
|
y,
|
|
185
185
|
o
|
|
186
186
|
]), ne = (0, n.useCallback)(async () => {
|
|
187
|
-
if (!
|
|
187
|
+
if (!L && g.trim()) {
|
|
188
188
|
G(!0);
|
|
189
189
|
try {
|
|
190
190
|
let e;
|
|
@@ -209,7 +209,7 @@ __useblocks__.define("static/core/8c84cc76.js", [
|
|
|
209
209
|
V,
|
|
210
210
|
h,
|
|
211
211
|
g,
|
|
212
|
-
|
|
212
|
+
L
|
|
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/8c84cc76.js", [
|
|
|
365
365
|
onClick: () => {
|
|
366
366
|
ne();
|
|
367
367
|
},
|
|
368
|
-
loading:
|
|
368
|
+
loading: L,
|
|
369
369
|
disabled: !oe,
|
|
370
370
|
children: o("Add to My files")
|
|
371
371
|
})
|