useblocks 1.1.53 → 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 (68) 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 -7
  7. package/runtime/THIRD_PARTY_LICENSES.txt +0 -235
  8. package/runtime/index.js +0 -2
  9. package/runtime/package.json +0 -6
  10. package/runtime/plugin-dev-manifest.json +0 -4
  11. package/singlepage_headless_plugin.html +1 -1
  12. package/static/core/{5318562c.js → 161d1254.js} +268 -257
  13. package/static/core/{b9f47840.js → 17d3ee0b.js} +8 -8
  14. package/static/core/{6895dd352.js → 195ca4a32.js} +15 -15
  15. package/static/core/{dc1f9e4f.js → 2569fac8.js} +26 -26
  16. package/static/core/{4ca527032.js → 26ddf93e2.js} +2 -2
  17. package/static/core/{9929a348.js → 30c5fe5f.js} +90 -90
  18. package/static/core/{e93d55b92.js → 3af8f3592.js} +4 -4
  19. package/static/core/{ebd852b6.js → 40f73dfb.js} +1019 -1032
  20. package/static/core/{c3058168.js → 43c3f160.js} +3283 -3189
  21. package/static/core/{542ea53f2.js → 4a27bba92.js} +8 -8
  22. package/static/core/4c39852e.js +3150 -0
  23. package/static/core/{e5e07f1d.js → 4e75b331.js} +13 -13
  24. package/static/core/{e1d239ab.js → 5345bef8.js} +42 -42
  25. package/static/core/{31e98e6e.js → 53463a60.js} +707 -712
  26. package/static/core/{27544e7e.js → 581ce428.js} +37 -19
  27. package/static/core/{d8daf1142.js → 6156301b2.js} +3 -3
  28. package/static/core/{c3849484.js → 64bea1a9.js} +5 -5
  29. package/static/core/{ce4fc17f2.js → 680236f4.js} +1 -1
  30. package/static/core/{4b75d16c2.js → 687795b52.js} +4 -4
  31. package/static/core/{70407ac0.js → 72f86b2d.js} +3 -3
  32. package/static/core/{139e4380.js → 7a15fa8b.js} +3 -3
  33. package/static/core/{b77f0769.js → 8432f11e.js} +5 -5
  34. package/static/core/{d1eb3c68.js → 8815eb5b.js} +15670 -15289
  35. package/static/core/{f3cff4c9.js → 8a496b64.js} +158 -158
  36. package/static/core/{4e1b970f.js → 8ba13f332.js} +1 -1
  37. package/static/core/{75737a9d.js → 951903fb.js} +9096 -9074
  38. package/static/core/{a95c02bb.js → a1355a35.js} +5 -5
  39. package/static/core/{7c6fb2162.js → a36c3ab62.js} +3 -3
  40. package/static/core/{2da1d66b.js → abd3f34c.js} +5 -5
  41. package/static/core/{528ad9282.js → ae20f0992.js} +16 -16
  42. package/static/core/ba6c356e.js +466 -0
  43. package/static/core/{ee0ddb51.js → c9e59b34.js} +6884 -4960
  44. package/static/core/{f96d2049.js → d1a1d4902.js} +1 -1
  45. package/static/core/{5b48fd69.js → d8d6485e.js} +5 -5
  46. package/static/core/{59e92cc3.js → d9398296.js} +5 -5
  47. package/static/core/{b408f33a.js → d9baa55e.js} +25 -25
  48. package/static/core/dbf19c2e.js +811 -0
  49. package/static/core/{bc7e3d2b.js → f953827c.js} +10 -10
  50. package/static/core/{1e5bf73c.js → ffee9a77.js} +7 -7
  51. package/static/esm/2474de05.js +131 -0
  52. package/static/esm/{d180c108.js → 53b688bd.js} +66 -85
  53. package/two_step_headless_plugin.html +1 -1
  54. package/useblocks-core.f6bb8947.js +673 -0
  55. package/useblocks-esm.js +875 -552
  56. package/useblocks.d.ts +8 -0
  57. package/useblocks.js +691 -408
  58. package/runtime/prop-types/index.js +0 -4
  59. package/runtime/react-router-dom/index.js +0 -2
  60. package/static/core/1995fb0a2.js +0 -602
  61. package/static/core/1f5e1fc9.js +0 -3097
  62. package/static/core/ce0410b1.js +0 -467
  63. package/static/esm/448d4bb0.js +0 -127
  64. package/static/runtime/dom-export-CHgQ7Ws9.js +0 -8069
  65. package/static/runtime/prop-types-p_yYKrF7.js +0 -47
  66. package/useblocks-core.2a5dade1.js +0 -643
  67. /package/iframe/{iframe-eblock.2a5dade1.html → iframe-eblock.f6bb8947.html} +0 -0
  68. /package/iframe/{iframe.2a5dade1.html → iframe.f6bb8947.html} +0 -0
@@ -1,127 +0,0 @@
1
- import { a as P, i as I } from "./d180c108.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 };