useblocks 1.1.56 → 1.1.60

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 (31) hide show
  1. package/iframe/js/amp.BP7EklKo.js +1 -1
  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/npm-publish.manifest.json +7 -7
  6. package/package.json +1 -1
  7. package/singlepage_headless_plugin.html +1 -1
  8. package/static/core/{4d493eba.js → 161d1254.js} +268 -257
  9. package/static/core/{4dadf572.js → 40f73dfb.js} +3 -3
  10. package/static/core/{289ba982.js → 43c3f160.js} +3270 -3187
  11. package/static/core/{58c4b8d7.js → 4c39852e.js} +5 -5
  12. package/static/core/{a4c19e27.js → 4e75b331.js} +4 -4
  13. package/static/core/{87969347.js → 53463a60.js} +675 -677
  14. package/static/core/{eb23332a.js → 7a15fa8b.js} +3 -3
  15. package/static/core/{12a9aa4e.js → 8815eb5b.js} +11514 -11159
  16. package/static/core/{4a5f1756.js → ba6c356e.js} +104 -104
  17. package/static/core/{b9bb2c5f.js → c9e59b34.js} +4634 -4271
  18. package/static/core/{fa354fb5.js → d9baa55e.js} +7 -7
  19. package/static/core/{bf446743.js → dbf19c2e.js} +248 -198
  20. package/static/core/{988589a5.js → f953827c.js} +7 -7
  21. package/static/esm/2474de05.js +131 -0
  22. package/static/esm/{3cde7cb6.js → 53b688bd.js} +48 -48
  23. package/two_step_headless_plugin.html +1 -1
  24. package/useblocks-core.f6bb8947.js +673 -0
  25. package/useblocks-esm.js +892 -529
  26. package/useblocks.d.ts +8 -0
  27. package/useblocks.js +698 -330
  28. package/static/esm/550bf3cb.js +0 -127
  29. package/useblocks-core.1279854f.js +0 -643
  30. /package/iframe/{iframe-eblock.1279854f.html → iframe-eblock.f6bb8947.html} +0 -0
  31. /package/iframe/{iframe.1279854f.html → iframe.f6bb8947.html} +0 -0
@@ -1,127 +0,0 @@
1
- import { a as P, i as I } from "./3cde7cb6.js";
2
- import "useblocks/runtime/react";
3
- function i(o) {
4
- if (o instanceof DOMException && o.name === "AbortError") return o;
5
- const t = o === void 0 ? "The operation was aborted." : typeof o == "string" ? o : o instanceof Error ? o.message : String(o);
6
- return new DOMException(t, "AbortError");
7
- }
8
- function f(o) {
9
- if (o?.aborted) throw i(o.reason);
10
- }
11
- function l(o, t) {
12
- return t ? (f(t), new Promise((_, E) => {
13
- const n = () => {
14
- N(), E(i(t.reason));
15
- }, N = () => {
16
- t.removeEventListener("abort", n);
17
- };
18
- t.addEventListener("abort", n), o.then((D) => {
19
- N(), _(D);
20
- }, (D) => {
21
- N(), E(D);
22
- });
23
- })) : o;
24
- }
25
- function M(o) {
26
- return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(o) : o.replace(/([^a-zA-Z0-9_-])/g, "\\$1");
27
- }
28
- function T(o, t = document) {
29
- try {
30
- const E = t.querySelector(o);
31
- if (E) return E;
32
- } catch {
33
- return null;
34
- }
35
- const _ = t.querySelectorAll("*");
36
- for (let E = 0; E < _.length; E++) {
37
- const n = _[E]?.shadowRoot;
38
- if (!n) continue;
39
- const N = T(o, n);
40
- if (N) return N;
41
- }
42
- return null;
43
- }
44
- function R(o, t = []) {
45
- const _ = o.querySelectorAll("*");
46
- for (let E = 0; E < _.length; E++) {
47
- const n = _[E]?.shadowRoot;
48
- n && (t.push(n), R(n, t));
49
- }
50
- return t;
51
- }
52
- function p(o, t, _) {
53
- if (o.isConnected) return o;
54
- const E = o.id?.trim();
55
- return E ? b(`#${M(E)}`, t, _) : Promise.reject(i("Editor mount element was disconnected and has no id — pass a CSS selector or call init() again after the host remounts the container."));
56
- }
57
- function b(o, t, _) {
58
- if (f(_), typeof o < "u") {
59
- if (typeof o == "string") {
60
- const E = o, n = T(E);
61
- if (n) return n;
62
- const N = t.addDisposable(new P());
63
- return new Promise((D, a) => {
64
- const O = (e) => {
65
- N.dispose(), e();
66
- }, c = () => {
67
- O(() => a(i(_?.reason)));
68
- };
69
- if (_?.aborted) {
70
- c();
71
- return;
72
- }
73
- _?.addEventListener("abort", c), N.addDispose(() => _?.removeEventListener("abort", c));
74
- const u = document.body ?? document.documentElement;
75
- if (!u) {
76
- O(() => a(i("Document is not ready to observe mount element")));
77
- return;
78
- }
79
- const A = /* @__PURE__ */ new Set(), L = new MutationObserver(() => {
80
- const e = T(E);
81
- if (e) {
82
- O(() => D(e));
83
- return;
84
- }
85
- S();
86
- }), d = (e) => {
87
- A.has(e) || (A.add(e), L.observe(e, {
88
- attributes: !0,
89
- childList: !0,
90
- subtree: !0
91
- }));
92
- }, S = () => {
93
- const e = document.documentElement;
94
- if (e) for (const C of R(e)) d(C);
95
- };
96
- d(u), S(), N.addDispose(() => L.disconnect());
97
- });
98
- }
99
- return o instanceof Element ? p(o, t, _) : o;
100
- }
101
- return o;
102
- }
103
- var w = /* @__PURE__ */ new Map();
104
- I("ELEMENT_INSERT_HTML_PIPELINE");
105
- I("BLOCK_INSERT_HTML_PIPELINE");
106
- I("DomComponentRegistry");
107
- I("ComponentRegistry");
108
- function r(o) {
109
- return I(o);
110
- }
111
- var s;
112
- (function(o) {
113
- o.BEFORE_SAVE_EMAIL = r(), o.ON_SAVEBUTTON_CLICK_ID = r(), o.ON_NEXTBUTTON_CLICK_ID = r(), o.ON_PREVIOUSBUTTON_CLICK_ID = r(), o.ON_MODEL_CHANGE = r(), o.WILL_EMAIL_INIT_ID = r(), o.ON_EMAIL_INIT_ID = r(), o.ON_BLOCK_INIT_ID = r(), o.ON_CONTENT_CHANGED_ID = r(), o.ON_PREHEADER_CHANGED_ID = r(), o.ON_SUBJECT_CHANGED_ID = r(), o.ON_EMAIL_CHANGED_ID = r(), o.ON_BLOCK_CHANGED_ID = r(), o.ON_CHUNKS_LOADED = r(), o.ON_SEND_TESTEMAIL_ID = r(), o.ON_SEND_LIVEPREVIEW_ID = r(), o.ON_SHARE_ID = r(), o.ON_SHOW_PREVIEW_ID = r(), o.ON_EMAIL_CLONE_ID = r(), o.ON_SEND_EMAIL_MODAL_ID = r(), o.ON_NOTIFICATION = r(), o.READ_LOCALE = r(), o.ON_TRANSLATE_ID = r(), o.ON_CODE_VALIDATE_ID = r(), o.UPLOAD_EVENT_ID = r(), o.PROXY_URL_EVENT_ID = r(), o.FILE_PROXY_EVENT_ID = r(), o.ON_LIMIT_ID = r(), o.ON_BROWSER_EXTENSION_DETECTED_ID = r(), o.ON_LAYOUT_CONVERT_REQUEST_ID = r(), o.ON_BROWSER_TRANSLATE_DETECTED_ID = r(), o.AI_TEXT_REQUEST_ID = r(), o.AI_IMAGE_REQUEST_ID = r(), o.AI_TEXT_PROGRESS_ID = r(), o.AI_IMAGE_PROGRESS_ID = r(), o.AI_TEXT_STREAM_ID = r();
114
- })(s || (s = {}));
115
- I();
116
- I();
117
- I("InitPipelineContext");
118
- I();
119
- I();
120
- I();
121
- I();
122
- I();
123
- I();
124
- I("PluginCollection");
125
- r("APP_LOAD_EVENT");
126
- r("CONFIG_CHANGED_EVENT");
127
- export { f as a, l as i, b as n, i as r, w as t };