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
|
@@ -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?2116f1b9"></script>
|
|
7
7
|
<style>
|
|
8
8
|
body {
|
|
9
9
|
margin: 0;
|
|
@@ -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/cefd6620.js",
|
|
7
|
+
"static/core/4eb628d3.js",
|
|
8
|
+
"static/core/9421a704.js"
|
|
9
9
|
], function(f, b, ge) {
|
|
10
10
|
Object.defineProperties(b, {
|
|
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/cefd6620.js"), c = f("./static/core/4eb628d3.js"), h = f("./static/core/9421a704.js");
|
|
16
16
|
function L(e) {
|
|
17
17
|
return async () => (await e.app.app_init_create({})).data;
|
|
18
18
|
}
|
|
@@ -494,7 +494,7 @@ __useblocks__.define("core", [
|
|
|
494
494
|
w
|
|
495
495
|
];
|
|
496
496
|
async function X() {
|
|
497
|
-
return (await Promise.resolve().then(() => f("./static/core/
|
|
497
|
+
return (await Promise.resolve().then(() => f("./static/core/b9529b8a.js"))).default;
|
|
498
498
|
}
|
|
499
499
|
var W = (e) => {
|
|
500
500
|
let t = null, r = !1;
|
|
@@ -633,5 +633,5 @@ __useblocks__.define("core", [
|
|
|
633
633
|
ampHtml: r
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
b.init = ie, b.parseAMP = re, b.version = "1.1.
|
|
636
|
+
b.init = ie, b.parseAMP = re, b.version = "1.1.46";
|
|
637
637
|
});
|
package/useblocks-esm.js
CHANGED
|
@@ -78,7 +78,7 @@ import { useEffect as Ce, useMemo as st, useRef as Gt, useState as xe } from "us
|
|
|
78
78
|
} catch {
|
|
79
79
|
return g.slice(-1) !== "/" && (g += "/"), l(g + b);
|
|
80
80
|
}
|
|
81
|
-
}), t.version || (t.version = "1.1.
|
|
81
|
+
}), t.version || (t.version = "1.1.46");
|
|
82
82
|
var e = t.modules = /* @__PURE__ */ Object.create(null), n = import("./runtime/index.js"), r = import("./ui-kit/index.js");
|
|
83
83
|
e.React = n.then(function(s) {
|
|
84
84
|
return s.React;
|
|
@@ -790,7 +790,7 @@ import { useEffect as Ce, useMemo as st, useRef as Gt, useState as xe } from "us
|
|
|
790
790
|
})();
|
|
791
791
|
`)(t), typeof t.require == "function" && typeof t.require.config == "function" && t.require.config({
|
|
792
792
|
baseUrl: "./",
|
|
793
|
-
paths: { core: "useblocks-core.
|
|
793
|
+
paths: { core: "useblocks-core.2116f1b9.js" }
|
|
794
794
|
});
|
|
795
795
|
var p = typeof t.prefetch == "function" ? t.prefetch : void 0;
|
|
796
796
|
if (t.prefetch = function() {
|
|
@@ -2575,7 +2575,8 @@ var re = { isPlugin: !0 }, ar = {
|
|
|
2575
2575
|
em_active_tab: "em_active_tab",
|
|
2576
2576
|
em_ai_settings: "em_ai_settings",
|
|
2577
2577
|
em_last_active_page: "em_last_active_page",
|
|
2578
|
-
em_layout_convert_never_suggest: "em_layout_convert_never_suggest"
|
|
2578
|
+
em_layout_convert_never_suggest: "em_layout_convert_never_suggest",
|
|
2579
|
+
em_filemanager_v2: "em_filemanager_v2"
|
|
2579
2580
|
};
|
|
2580
2581
|
h("application_element_settings_set"), h("application_subject_update"), h("application_preheader_update"), h("application_domparser_error"), h("application_update_entity"), h("application_iframe_drag_event"), h("application_has_amp"), h("application_atom_inserted"), h("SANDBOX_READY"), h("sandbox_subject_update"), h("sandbox_preheader_update"), h("sandbox_drag_event"), h("sandbox_add_mergetag"), h("sandbox_send_translations"), h("sandbox_send_theme_variables"), h("sandbox_set_entity"), h("sandbox_init_start"), h("sandbox_inited"), h("sandbox_update_entity"), h("reload"), h("sandbox_add_extensions"), h("sandbox_remove_extensions"), h("sandbox_add_script"), h("sandbox_is_email_empty"), h("sandbox_switch_theme");
|
|
2581
2582
|
var lr = {
|
|
@@ -4004,7 +4005,7 @@ function ve(t, ...e) {
|
|
|
4004
4005
|
const n = O.get(t);
|
|
4005
4006
|
e.some((r) => r !== void 0 && r === n) && O.delete(t);
|
|
4006
4007
|
}
|
|
4007
|
-
var Ki = "1.1.
|
|
4008
|
+
var Ki = "1.1.46";
|
|
4008
4009
|
async function Ji(t) {
|
|
4009
4010
|
await dt(typeof window.__useblocks__ < "u" ? window.__useblocks__ : void 0);
|
|
4010
4011
|
}
|
package/useblocks.d.ts
CHANGED
|
@@ -1566,6 +1566,12 @@ export declare namespace ExportedApi {
|
|
|
1566
1566
|
elementAccordionEnabled: boolean;
|
|
1567
1567
|
/** If `true`, Image Center uses file-manager style UI; if `false`, simpler inline image flow. */
|
|
1568
1568
|
imageCenterFileManagerView: boolean;
|
|
1569
|
+
/**
|
|
1570
|
+
* File manager talks to the Go backend (`/api/v2/files*`) instead of the
|
|
1571
|
+
* legacy WP `em-files/v1` endpoints. Runtime flag: rollout is per-project
|
|
1572
|
+
* via server config, rollback is flipping the flag — no code revert.
|
|
1573
|
+
*/
|
|
1574
|
+
fileManagerV2Enabled: boolean;
|
|
1569
1575
|
/** Local “upload from computer” entry in Image Center. */
|
|
1570
1576
|
imageCenterLocalUploadEnabled: boolean;
|
|
1571
1577
|
/** Stock photo tab in Image Center / file manager. */
|
package/useblocks.js
CHANGED
|
@@ -688,7 +688,7 @@ var __amdEnv = window.__useblocks__ || (window.__useblocks__ = {});
|
|
|
688
688
|
|
|
689
689
|
|
|
690
690
|
// Configure AMD loader
|
|
691
|
-
__amdEnv.require.config({ baseUrl: "./", paths: {"core":"useblocks-core.
|
|
691
|
+
__amdEnv.require.config({ baseUrl: "./", paths: {"core":"useblocks-core.2116f1b9.js"} });
|
|
692
692
|
|
|
693
693
|
// PublicPath (script detection: entry script lookup → document.currentScript)
|
|
694
694
|
if (!__useblocks__.publicPath) {
|
|
@@ -1002,7 +1002,7 @@ if (!__useblocks__.assetUrl) {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
1004
1004
|
if (!ns.version) {
|
|
1005
|
-
ns.version = "1.1.
|
|
1005
|
+
ns.version = "1.1.46";
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
1008
|
var modules = ns.modules = Object.create(null);
|
|
@@ -12777,7 +12777,8 @@ Error generating stack: ` + c.message + `
|
|
|
12777
12777
|
em_active_tab: "em_active_tab",
|
|
12778
12778
|
em_ai_settings: "em_ai_settings",
|
|
12779
12779
|
em_last_active_page: "em_last_active_page",
|
|
12780
|
-
em_layout_convert_never_suggest: "em_layout_convert_never_suggest"
|
|
12780
|
+
em_layout_convert_never_suggest: "em_layout_convert_never_suggest",
|
|
12781
|
+
em_filemanager_v2: "em_filemanager_v2"
|
|
12781
12782
|
}, Ky = {
|
|
12782
12783
|
ALL: "All",
|
|
12783
12784
|
STANDARD: "Standard",
|
|
@@ -14268,7 +14269,7 @@ Error generating stack: ` + c.message + `
|
|
|
14268
14269
|
const o = rr.get(r);
|
|
14269
14270
|
n.some((l) => l !== void 0 && l === o) && rr.delete(r);
|
|
14270
14271
|
}
|
|
14271
|
-
var Mg = "1.1.
|
|
14272
|
+
var Mg = "1.1.46";
|
|
14272
14273
|
async function xg(r) {
|
|
14273
14274
|
await Is(typeof __useblocks__ < "u" ? __useblocks__ : void 0);
|
|
14274
14275
|
}
|
package/static/core/c28bc42e.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
__useblocks__.define("static/core/c28bc42e.js", [
|
|
2
|
-
"require",
|
|
3
|
-
"exports",
|
|
4
|
-
"module"
|
|
5
|
-
], function(p, d, g) {
|
|
6
|
-
var o;
|
|
7
|
-
(function(r) {
|
|
8
|
-
function l(t, i, n = (e, u) => e === u) {
|
|
9
|
-
if (t === i) return !0;
|
|
10
|
-
if (t.length !== i.length) return !1;
|
|
11
|
-
for (let e = 0; e < t.length; e++) if (!n(t[e], i[e])) return !1;
|
|
12
|
-
return !0;
|
|
13
|
-
}
|
|
14
|
-
r.isEqual = l;
|
|
15
|
-
function h(t, i = (n) => n) {
|
|
16
|
-
const n = new Set();
|
|
17
|
-
return t.filter((e) => {
|
|
18
|
-
const u = i(e);
|
|
19
|
-
return n.has(u) ? !1 : (n.add(u), !0);
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
r.unique = h;
|
|
23
|
-
function m(t = [], i = [], n = (e, u) => e === u) {
|
|
24
|
-
const e = [], u = [], c = [];
|
|
25
|
-
for (const f of t) {
|
|
26
|
-
const s = i.find((q) => n(f, q));
|
|
27
|
-
s ? c.push({
|
|
28
|
-
prev: f,
|
|
29
|
-
next: s
|
|
30
|
-
}) : u.push(f);
|
|
31
|
-
}
|
|
32
|
-
for (const f of i) t.find((s) => n(f, s)) || e.push(f);
|
|
33
|
-
return {
|
|
34
|
-
added: e,
|
|
35
|
-
removed: u,
|
|
36
|
-
exists: c
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
r.diff = m;
|
|
40
|
-
})(o || (o = {})), Object.defineProperty(d, "arrays", {
|
|
41
|
-
enumerable: !0,
|
|
42
|
-
get: function() {
|
|
43
|
-
return o;
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
});
|
|
File without changes
|
|
File without changes
|