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,22 +1,22 @@
1
1
  (function(){try{if(typeof document<"u"){var o=document.createElement("style");o.setAttribute("data-useblocks","true"),o.appendChild(document.createTextNode('.monaco-editor{width:100%;height:100%}.monaco-editor .monaco-hover{border-radius:6px}.monaco-editor .monaco-editor .scroll-decoration{box-shadow:none}.monaco-editor,.monaco-editor *,.monaco-editor .view-lines,.monaco-editor .view-lines *,.monaco-editor .view-lines .view-line,.monaco-editor .view-lines .monaco-mouse-cursor-text,.monaco-editor .view-line,.monaco-editor .monaco-mouse-cursor-text{font-family:var(--monaco-editor-font-family,"Source Code Pro", Consolas, "Courier New", monospace)!important}.monaco-editor .view-line,.monaco-editor .view-line span,.monaco-editor .view-line span.inline-selected-text{font-variant-ligatures:none;font-feature-settings:"liga" 0, "calt" 0;font-kerning:none;white-space:pre;font-family:var(--monaco-monospace-font,var(--monaco-editor-font-family,"Source Code Pro", Consolas, "Courier New", monospace))!important;font-size:var(--monaco-editor-font-size,14px)!important;font-weight:400!important}.monaco-editor .standalone-colorpicker-body{max-width:460px!important}.monaco-editor .standalone-colorpicker-body .colorpicker-body .saturation-wrap{flex:0 auto;max-width:280px}.blocks-app .colorpicker-body .saturation-box,.blocks-app .colorpicker-body .strip{border-radius:4px}.blocks-app .scrollbar.vertical{width:5px!important}.blocks-app .scrollbar.vertical .slider{border-radius:5px!important;width:5px!important}.blocks-app .user-cursor{z-index:10;border-left:2px solid #ff00e1;width:2px;height:20px;position:absolute}.blocks-app .cursor-hover{color:#fff;text-wrap-mode:nowrap;z-index:10000;border-radius:7px 7px 7px 0;margin-left:-2px;padding:0 5px;font-size:12px;position:absolute;top:-17px}.blocks-app .user-selection-decoration{background-color:#8080eb4d}.monaco-editor__spin{z-index:1000;align-items:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- __useblocks__.define("static/core/bc7e3d2b.js", [
2
+ __useblocks__.define("static/core/f953827c.js", [
3
3
  "require",
4
4
  "exports",
5
5
  "module",
6
6
  "static/core/bd36b180.js",
7
- "static/core/ee0ddb51.js",
7
+ "static/core/c9e59b34.js",
8
8
  "static/core/ec11f92f.js",
9
- "static/core/139e4380.js",
10
- "static/core/ebd852b6.js",
11
- "static/core/b9f47840.js",
9
+ "static/core/7a15fa8b.js",
10
+ "static/core/40f73dfb.js",
11
+ "static/core/17d3ee0b.js",
12
12
  "static/core/dc408d7c2.js",
13
- "static/core/e5e07f1d.js",
13
+ "static/core/4e75b331.js",
14
14
  "react",
15
15
  "react/jsx-runtime"
16
16
  ], function($e, bc, Gy) {
17
- const g = $e("./bd36b180.js"), y = $e("./ee0ddb51.js"), ue = $e("./ec11f92f.js"), ot = $e("./139e4380.js"), sr = $e("./ebd852b6.js");
18
- $e("./b9f47840.js");
19
- const Ae = $e("./dc408d7c2.js"), ge = $e("./e5e07f1d.js");
17
+ const g = $e("./bd36b180.js"), y = $e("./c9e59b34.js"), ue = $e("./ec11f92f.js"), ot = $e("./7a15fa8b.js"), sr = $e("./40f73dfb.js");
18
+ $e("./17d3ee0b.js");
19
+ const Ae = $e("./dc408d7c2.js"), ge = $e("./4e75b331.js");
20
20
  let S = $e("react"), $ = g.__toESM(S, 1);
21
21
  S = g.__toESM(S);
22
22
  let Dt = $e("react/jsx-runtime");
@@ -2241,7 +2241,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2241
2241
  };
2242
2242
  }
2243
2243
  function _f() {
2244
- vs || (vs = !0, Promise.resolve().then(() => $e("./b9f47840.js")).then((e) => e.colorDetector_exports).then(({ ColorDetector: e }) => {
2244
+ vs || (vs = !0, Promise.resolve().then(() => $e("./17d3ee0b.js")).then((e) => e.colorDetector_exports).then(({ ColorDetector: e }) => {
2245
2245
  const t = wf(e);
2246
2246
  t.ID = e.ID, vf(t.ID, () => t);
2247
2247
  }).catch((e) => {}));
@@ -1,4 +1,4 @@
1
- __useblocks__.define("static/core/1e5bf73c.js", [
1
+ __useblocks__.define("static/core/ffee9a77.js", [
2
2
  "require",
3
3
  "exports",
4
4
  "module",
@@ -7,7 +7,7 @@ __useblocks__.define("static/core/1e5bf73c.js", [
7
7
  ], function(n, p, P) {
8
8
  n("./bd36b180.js");
9
9
  const u = n("./ce91cf4a.js");
10
- var d = {
10
+ var b = {
11
11
  items_per_page: "/ 페이지",
12
12
  jump_to: "이동하기",
13
13
  jump_to_confirm: "확인하다",
@@ -42,22 +42,22 @@ __useblocks__.define("static/core/1e5bf73c.js", [
42
42
  for (var e = 1; e < arguments.length; e++) {
43
43
  var t = arguments[e] != null ? arguments[e] : {};
44
44
  e % 2 ? i(Object(t), !0).forEach(function(o) {
45
- b(r, o, t[o]);
45
+ f(r, o, t[o]);
46
46
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : i(Object(t)).forEach(function(o) {
47
47
  Object.defineProperty(r, o, Object.getOwnPropertyDescriptor(t, o));
48
48
  });
49
49
  }
50
50
  return r;
51
51
  }
52
- function b(r, e, t) {
53
- return e = f(e), e in r ? Object.defineProperty(r, e, {
52
+ function f(r, e, t) {
53
+ return e = d(e), e in r ? Object.defineProperty(r, e, {
54
54
  value: t,
55
55
  enumerable: !0,
56
56
  configurable: !0,
57
57
  writable: !0
58
58
  }) : r[e] = t, r;
59
59
  }
60
- function f(r) {
60
+ function d(r) {
61
61
  var e = y(r, "string");
62
62
  return a(e) == "symbol" ? e : String(e);
63
63
  }
@@ -140,7 +140,7 @@ __useblocks__.define("static/core/1e5bf73c.js", [
140
140
  }, h = m, l = "${label} 유효하지 않은 ${type}";
141
141
  p.default = {
142
142
  locale: "ko",
143
- Pagination: d,
143
+ Pagination: b,
144
144
  DatePicker: m,
145
145
  TimePicker: s,
146
146
  Calendar: h,
@@ -0,0 +1,131 @@
1
+ import { a as P, i as _ } from "./53b688bd.js";
2
+ import "useblocks/runtime/react";
3
+ function i(r) {
4
+ if (r instanceof DOMException && r.name === "AbortError") return r;
5
+ const E = r === void 0 ? "The operation was aborted." : typeof r == "string" ? r : r instanceof Error ? r.message : String(r);
6
+ return new DOMException(E, "AbortError");
7
+ }
8
+ function s(r) {
9
+ if (r?.aborted) throw i(r.reason);
10
+ }
11
+ function h(r, E) {
12
+ return E ? (s(E), new Promise((I, t) => {
13
+ const n = () => {
14
+ N(), t(i(E.reason));
15
+ }, N = () => {
16
+ E.removeEventListener("abort", n);
17
+ };
18
+ E.addEventListener("abort", n), r.then((D) => {
19
+ N(), I(D);
20
+ }, (D) => {
21
+ N(), t(D);
22
+ });
23
+ })) : r;
24
+ }
25
+ function p(r) {
26
+ return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(r) : r.replace(/([^a-zA-Z0-9_-])/g, "\\$1");
27
+ }
28
+ function c(r, E = document) {
29
+ try {
30
+ const t = E.querySelector(r);
31
+ if (t) return t;
32
+ } catch {
33
+ return null;
34
+ }
35
+ const I = E.querySelectorAll("*");
36
+ for (let t = 0; t < I.length; t++) {
37
+ const n = I[t]?.shadowRoot;
38
+ if (!n) continue;
39
+ const N = c(r, n);
40
+ if (N) return N;
41
+ }
42
+ return null;
43
+ }
44
+ function f(r, E = []) {
45
+ const I = r.querySelectorAll("*");
46
+ for (let t = 0; t < I.length; t++) {
47
+ const n = I[t]?.shadowRoot;
48
+ n && (E.push(n), f(n, E));
49
+ }
50
+ return E;
51
+ }
52
+ function M(r, E, I) {
53
+ if (r.isConnected) return r;
54
+ const t = r.id?.trim();
55
+ return t ? b(`#${p(t)}`, E, I) : 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(r, E, I) {
58
+ if (s(I), typeof r < "u") {
59
+ if (typeof r == "string") {
60
+ const t = r, n = c(t);
61
+ if (n) return n;
62
+ const N = E.addDisposable(new P());
63
+ return new Promise((D, a) => {
64
+ const O = (e) => {
65
+ N.dispose(), e();
66
+ }, T = () => {
67
+ O(() => a(i(I?.reason)));
68
+ };
69
+ if (I?.aborted) {
70
+ T();
71
+ return;
72
+ }
73
+ I?.addEventListener("abort", T), N.addDispose(() => I?.removeEventListener("abort", T));
74
+ const A = document.body ?? document.documentElement;
75
+ if (!A) {
76
+ O(() => a(i("Document is not ready to observe mount element")));
77
+ return;
78
+ }
79
+ const u = /* @__PURE__ */ new Set(), L = new MutationObserver(() => {
80
+ const e = c(t);
81
+ if (e) {
82
+ O(() => D(e));
83
+ return;
84
+ }
85
+ d();
86
+ }), S = (e) => {
87
+ u.has(e) || (u.add(e), L.observe(e, {
88
+ attributes: !0,
89
+ childList: !0,
90
+ subtree: !0
91
+ }));
92
+ }, d = () => {
93
+ const e = document.documentElement;
94
+ if (e) for (const C of f(e)) S(C);
95
+ };
96
+ S(A), d(), N.addDispose(() => L.disconnect());
97
+ });
98
+ }
99
+ return r instanceof Element ? M(r, E, I) : r;
100
+ }
101
+ return r;
102
+ }
103
+ var w = /* @__PURE__ */ new Map();
104
+ _("ELEMENT_INSERT_HTML_PIPELINE");
105
+ _("BLOCK_INSERT_HTML_PIPELINE");
106
+ _("DomComponentRegistry");
107
+ _("ComponentRegistry");
108
+ function o(r) {
109
+ return _(r);
110
+ }
111
+ var R;
112
+ (function(r) {
113
+ r.BEFORE_SAVE_EMAIL = o(), r.ON_SAVEBUTTON_CLICK_ID = o(), r.ON_NEXTBUTTON_CLICK_ID = o(), r.ON_PREVIOUSBUTTON_CLICK_ID = o(), r.ON_MODEL_CHANGE = o(), r.WILL_EMAIL_INIT_ID = o(), r.ON_EMAIL_INIT_ID = o(), r.ON_BLOCK_INIT_ID = o(), r.ON_CONTENT_CHANGED_ID = o(), r.ON_PREHEADER_CHANGED_ID = o(), r.ON_SUBJECT_CHANGED_ID = o(), r.ON_EMAIL_CHANGED_ID = o(), r.ON_BLOCK_CHANGED_ID = o(), r.ON_CHUNKS_LOADED = o(), r.ON_SEND_TESTEMAIL_ID = o(), r.ON_SEND_LIVEPREVIEW_ID = o(), r.ON_SHARE_ID = o(), r.ON_SHOW_PREVIEW_ID = o(), r.ON_EMAIL_CLONE_ID = o(), r.ON_SEND_EMAIL_MODAL_ID = o(), r.ON_NOTIFICATION = o(), r.READ_LOCALE = o(), r.ON_TRANSLATE_ID = o(), r.ON_CODE_VALIDATE_ID = o(), r.UPLOAD_EVENT_ID = o(), r.PROXY_URL_EVENT_ID = o(), r.FILE_PROXY_EVENT_ID = o(), r.ON_LIMIT_ID = o(), r.ON_BROWSER_EXTENSION_DETECTED_ID = o(), r.ON_LAYOUT_CONVERT_REQUEST_ID = o(), r.ON_BROWSER_TRANSLATE_DETECTED_ID = o(), r.AI_TEXT_REQUEST_ID = o(), r.AI_IMAGE_REQUEST_ID = o(), r.AI_TEXT_PROGRESS_ID = o(), r.AI_IMAGE_PROGRESS_ID = o(), r.AI_TEXT_STREAM_ID = o();
114
+ })(R || (R = {}));
115
+ _();
116
+ _();
117
+ _("InitPipelineContext");
118
+ _();
119
+ _();
120
+ _();
121
+ _();
122
+ _();
123
+ _();
124
+ _();
125
+ _();
126
+ _("plugin.jwt.token");
127
+ _("plugin.jwt.error");
128
+ _("PluginCollection");
129
+ o("APP_LOAD_EVENT");
130
+ o("CONFIG_CHANGED_EVENT");
131
+ export { s as a, h as i, b as n, i as r, w as t };
@@ -1,18 +1,18 @@
1
- var E = Object.defineProperty, v = (t, e) => {
1
+ var g = Object.defineProperty, E = (t, e) => {
2
2
  let r = {};
3
- for (var n in t) E(r, n, {
3
+ for (var n in t) g(r, n, {
4
4
  get: t[n],
5
5
  enumerable: !0
6
6
  });
7
- return e || E(r, Symbol.toStringTag, { value: "Module" }), r;
8
- }, f = class y {
7
+ return e || g(r, Symbol.toStringTag, { value: "Module" }), r;
8
+ }, d = class v {
9
9
  _inner;
10
10
  _isDisposed = !1;
11
11
  constructor(e = []) {
12
12
  this._inner = e;
13
13
  }
14
14
  addDisposable(e) {
15
- return this._inner.push(e), e instanceof y && e.addDispose(() => {
15
+ return this._inner.push(e), e instanceof v && e.addDispose(() => {
16
16
  this.removeDisposable(e);
17
17
  }), e;
18
18
  }
@@ -33,10 +33,10 @@ var E = Object.defineProperty, v = (t, e) => {
33
33
  }
34
34
  }
35
35
  };
36
- function p(t) {
36
+ function _(t) {
37
37
  return `service_container_${t}`;
38
38
  }
39
- var T = class h extends f {
39
+ var I = class h extends d {
40
40
  _parent;
41
41
  _injectCallbacks = [];
42
42
  _injections = /* @__PURE__ */ Object.create(null);
@@ -55,14 +55,14 @@ var T = class h extends f {
55
55
  }
56
56
  injectFactory(e, r, n) {
57
57
  const s = this._injections[e];
58
- let o = typeof s == "function" ? s() : s;
59
- const i = this._injections[e] = () => (o = r(this, o), o);
60
- n && i(), this._runCallbacks(e);
58
+ let i = typeof s == "function" ? s() : s;
59
+ const o = this._injections[e] = () => (i = r(this, i), i);
60
+ n && o(), this._runCallbacks(e);
61
61
  }
62
62
  _find(e, r = !0) {
63
63
  return this._injections[e] || r && this._parent?._find(e);
64
64
  }
65
- _onInject(e, r, n = new f()) {
65
+ _onInject(e, r, n = new d()) {
66
66
  return n.addDisposable(this.onInject((s) => {
67
67
  e === s && (n.dispose(), r(this.getInstance(s)));
68
68
  })), this._parent && n.addDisposable(this._parent._onInject(e, r, n)), this.addDisposable(n), n;
@@ -82,24 +82,24 @@ var T = class h extends f {
82
82
  return typeof r == "function" ? Promise.resolve(r()) : new Promise((n) => this._onInject(e, () => n(this.getInstance(e))));
83
83
  }
84
84
  addService(e, r) {
85
- const n = p(e);
86
- this.injectFactory(n, (o, i = []) => i.indexOf(r) < 0 ? [...i, r] : i);
87
- const s = new f();
85
+ const n = _(e);
86
+ this.injectFactory(n, (i, o = []) => o.indexOf(r) < 0 ? [...o, r] : o);
87
+ const s = new d();
88
88
  return s.addDispose(() => {
89
- this.injectFactory(n, (o, i = []) => i.filter((u) => u !== r));
89
+ this.injectFactory(n, (i, o = []) => o.filter((c) => c !== r));
90
90
  }), s;
91
91
  }
92
92
  addServiceFactory(e, r, n) {
93
- const s = p(e);
94
- let o;
95
- this.injectFactory(s, (u, c = []) => (o = r(u, o), o === void 0 ? c : c.indexOf(o) < 0 ? [...c, o] : c), n);
96
- const i = new f();
97
- return i.addDispose(() => {
98
- this.injectFactory(s, (u, c = []) => o === void 0 ? c : c.filter((d) => d !== o));
99
- }), i;
93
+ const s = _(e);
94
+ let i;
95
+ this.injectFactory(s, (c, a = []) => (i = r(c, i), i === void 0 ? a : a.indexOf(i) < 0 ? [...a, i] : a), n);
96
+ const o = new d();
97
+ return o.addDispose(() => {
98
+ this.injectFactory(s, (c, a = []) => i === void 0 ? a : a.filter((D) => D !== i));
99
+ }), o;
100
100
  }
101
101
  getServices(e) {
102
- const r = p(e);
102
+ const r = _(e);
103
103
  return [...this.getInstance(r, !1) || [], ...this._parent?.getServices(e) || []];
104
104
  }
105
105
  createChild() {
@@ -115,29 +115,29 @@ var T = class h extends f {
115
115
  this._injections = /* @__PURE__ */ Object.create(null);
116
116
  }
117
117
  };
118
- function g(t) {
118
+ function p(t) {
119
119
  return t.startsWith("__") ? t : `__${t}__`;
120
120
  }
121
121
  function A(t) {
122
122
  if (typeof globalThis > "u") throw new Error("[di] globalThis is required for namespace container access.");
123
- const e = g(t), r = globalThis;
123
+ const e = p(t), r = globalThis;
124
124
  return r[e] ??= {};
125
125
  }
126
- function C(t) {
126
+ function T(t) {
127
127
  return t != null && typeof t == "object" && typeof t.inject == "function" && typeof t.getInstance == "function";
128
128
  }
129
- function x(t) {
130
- if (t) return g(t);
131
- return g("useblocks".trim());
129
+ function C(t) {
130
+ if (t) return p(t);
131
+ return p("useblocks".trim());
132
132
  }
133
- function S(t) {
134
- const e = A(x(t));
135
- if (C(e.container)) return e.container;
136
- const r = new T(null);
133
+ function y(t) {
134
+ const e = A(C(t));
135
+ if (T(e.container)) return e.container;
136
+ const r = new I(null);
137
137
  return e.container = r, r;
138
138
  }
139
139
  function O(t) {
140
- return S(t);
140
+ return y(t);
141
141
  }
142
142
  function m() {
143
143
  let t = (/* @__PURE__ */ new Date()).getTime(), e = typeof performance < "u" && performance.now && performance.now() * 1e3 || 0;
@@ -146,73 +146,54 @@ function m() {
146
146
  return t > 0 ? (n = (t + n) % 16 | 0, t = Math.floor(t / 16)) : (n = (e + n) % 16 | 0, e = Math.floor(e / 16)), (r === "x" ? n : n & 3 | 8).toString(16);
147
147
  });
148
148
  }
149
- function w() {
149
+ function b() {
150
150
  return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : m();
151
151
  }
152
- function a(t = w()) {
152
+ function f(t = b()) {
153
153
  return t;
154
154
  }
155
- function I() {
155
+ function S() {
156
156
  return "esm".trim();
157
157
  }
158
158
  function N(t) {
159
159
  if (typeof globalThis > "u") return;
160
- const e = I(), r = globalThis[t] ?? {};
160
+ const e = S(), r = globalThis[t] ?? {};
161
161
  globalThis[t] = r;
162
162
  const n = r.__diagnostics ??= {}, s = n.diModuleEval ??= {
163
163
  evalCount: 0,
164
- records: [],
165
- duplicateWarned: !1
164
+ records: []
166
165
  };
167
- if (s.records.push({
166
+ s.records.push({
168
167
  buildSource: e,
169
168
  timestamp: Date.now(),
170
169
  stack: (/* @__PURE__ */ new Error()).stack
171
- }), s.evalCount += 1, s.evalCount <= 1 || s.duplicateWarned) return;
172
- s.duplicateWarned = !0;
173
- s.evalCount, s.records;
170
+ }), s.evalCount += 1;
174
171
  }
175
- function R() {
172
+ function w() {
176
173
  return `__${"useblocks".trim()}__`;
177
174
  }
178
- function b(t, e) {
175
+ function R(t, e) {
179
176
  if (N(e), typeof globalThis > "u") return t;
180
- const r = I(), n = globalThis, s = n[e] = n[e] || {}, o = s.__diagnostics = s.__diagnostics || {}, i = o.dependencyResolver = o.dependencyResolver || {
181
- entries: [],
182
- warnings: []
183
- }, u = {
177
+ const r = S(), n = globalThis, s = n[e] = n[e] || {}, i = s.__diagnostics = s.__diagnostics || {}, o = i.dependencyResolver = i.dependencyResolver || { entries: [] }, c = {
184
178
  container: t,
185
179
  source: "packages/runtime-core/di/index.ts",
186
180
  buildSource: r,
187
181
  timestamp: Date.now(),
188
182
  stack: (/* @__PURE__ */ new Error()).stack
189
183
  };
190
- if (i.entries.push(u), i.entries.length > 1) {
191
- const c = i.entries[0];
192
- if (i.entries.some((d) => d.container !== c.container) && !i.duplicateWarningShown) {
193
- i.duplicateWarningShown = !0;
194
- const d = {
195
- message: "[di] Multiple DependencyResolver instances detected on namespace",
196
- namespaceKey: e,
197
- buildSource: r,
198
- entries: i.entries
199
- };
200
- i.warnings.push(d);
201
- }
202
- }
203
- return t;
184
+ return o.entries.push(c), t;
204
185
  }
205
- var _;
186
+ var l;
206
187
  function M() {
207
- if (_) return _;
208
- const t = R();
209
- return _ = b(S(t), t), _;
188
+ if (l) return l;
189
+ const t = w();
190
+ return l = R(y(t), t), l;
210
191
  }
211
192
  new Proxy({}, { get(t, e, r) {
212
193
  const n = M(), s = Reflect.get(n, e, r);
213
194
  return typeof s == "function" ? s.bind(n) : s;
214
195
  } });
215
- function L(t, e = "BackendError") {
196
+ function j(t, e = "BackendError") {
216
197
  switch (t) {
217
198
  case 400: return "ValidationError";
218
199
  case 401: return "AuthenticationFailed";
@@ -227,7 +208,7 @@ function L(t, e = "BackendError") {
227
208
  default: return e;
228
209
  }
229
210
  }
230
- var j = class {
211
+ var L = class {
231
212
  _plugins = /* @__PURE__ */ new Map();
232
213
  _listeners = /* @__PURE__ */ new Map();
233
214
  _getOrCreateEntry(t) {
@@ -387,20 +368,20 @@ var j = class {
387
368
  forContext() {
388
369
  return this.target().forContext();
389
370
  }
390
- }, U = "PluginRegistry";
391
- function F(t = O()) {
392
- return t.getOrCreateInstance(U, () => new j());
371
+ }, F = "PluginRegistry";
372
+ function U(t = O()) {
373
+ return t.getOrCreateInstance(F, () => new L());
393
374
  }
394
- var G = new P(() => F());
395
- function l(t) {
396
- return a(t);
375
+ var G = new P(() => U());
376
+ function u(t) {
377
+ return f(t);
397
378
  }
398
- l("HANDLE_ATOM_INSERT");
399
- l("SETTINGS_PANEL_EVENT");
400
- l("MODAL_SHOW_EVENT");
401
- l("MODAL_CLOSE_EVENT");
402
- l("MODAL_UPDATE_EVENT");
403
- var oe = /* @__PURE__ */ v({ FileManagerApiError: () => V }), V = class D extends Error {
379
+ u("HANDLE_ATOM_INSERT");
380
+ u("SETTINGS_PANEL_EVENT");
381
+ u("MODAL_SHOW_EVENT");
382
+ u("MODAL_CLOSE_EVENT");
383
+ u("MODAL_UPDATE_EVENT");
384
+ var K = /* @__PURE__ */ E({ FileManagerApiError: () => k }), k = class x extends Error {
404
385
  code;
405
386
  status;
406
387
  details;
@@ -408,7 +389,7 @@ var oe = /* @__PURE__ */ v({ FileManagerApiError: () => V }), V = class D extend
408
389
  return this.status;
409
390
  }
410
391
  constructor(e, r, n, s) {
411
- super(e), this.name = "FileManagerApiError", this.code = r, this.status = n, this.details = s, Error.captureStackTrace && Error.captureStackTrace(this, D);
392
+ super(e), this.name = "FileManagerApiError", this.code = r, this.status = n, this.details = s, Error.captureStackTrace && Error.captureStackTrace(this, x);
412
393
  }
413
- }, ae = /* @__PURE__ */ v({ mapHttpStatusToErrorCode: () => L });
414
- export { f as a, a as i, oe as n, G as r, ae as t };
394
+ }, ee = /* @__PURE__ */ E({ mapHttpStatusToErrorCode: () => j });
395
+ export { d as a, f as i, K as n, G as r, ee as t };
@@ -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?2a5dade1"></script>
6
+ <script id="plugin-script" type="text/javascript" src="useblocks.js?f6bb8947"></script>
7
7
  <style>
8
8
  body {
9
9
  margin: 0;