useblocks 1.1.46 → 1.1.49

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 (80) hide show
  1. package/iframe/js/amp.BP7EklKo.js +1 -0
  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/monacoeditorwork/css.worker.bundle.js +40524 -40442
  6. package/monacoeditorwork/editor.worker.bundle.js +9740 -9697
  7. package/monacoeditorwork/html.worker.bundle.js +50513 -50431
  8. package/monacoeditorwork/json.worker.bundle.js +14570 -14527
  9. package/monacoeditorwork/ts.worker.bundle.js +119593 -119455
  10. package/npm-publish.manifest.json +7 -7
  11. package/package.json +1 -1
  12. package/runtime/@ant-design/cssinjs/index.js +1 -1
  13. package/runtime/@ant-design/icons/index.js +2 -2
  14. package/runtime/README.md +1 -1
  15. package/runtime/THIRD_PARTY_LICENSES.txt +70 -42
  16. package/runtime/antd/index.js +1 -1
  17. package/runtime/react/index.js +3 -3
  18. package/runtime/react/jsx-runtime/index.js +1 -1
  19. package/runtime/react-dom/client/index.js +4 -4
  20. package/runtime/react-dom/index.js +3 -3
  21. package/runtime/react-router-dom/index.js +2 -2
  22. package/singlepage_headless_plugin.html +1 -1
  23. package/static/core/{cc8f145d.js → 11296a18.js} +55 -55
  24. package/static/core/{a321a57d.js → 13d197af.js} +26 -26
  25. package/static/core/13f581cc.js +924 -0
  26. package/static/core/{90ec6d2b2.js → 1ca5f3772.js} +184 -155
  27. package/static/core/{b9529b8a.js → 339377b8.js} +16684 -16503
  28. package/static/core/{6e2d88d5.js → 386cf7b3.js} +3573 -3559
  29. package/static/core/{6df04323.js → 3b4845f7.js} +537 -518
  30. package/static/core/{526b23c2.js → 3dea3b87.js} +7 -7
  31. package/static/core/59023866.js +2090 -0
  32. package/static/core/{4a2af478.js → 7a229b90.js} +3 -3
  33. package/static/core/{6b8432a3.js → 8c81db36.js} +3 -3
  34. package/static/core/{b8b730b2.js → 8e110c69.js} +22 -22
  35. package/static/core/{35e13192.js → a11c28c2.js} +172 -168
  36. package/static/core/{9c1c1b89.js → aacf134d.js} +745 -664
  37. package/static/core/{350eac23.js → acb049cb.js} +1349 -1297
  38. package/static/core/{cefd6620.js → c59f9731.js} +7640 -6595
  39. package/static/core/{4eb628d3.js → de79e0c5.js} +3947 -3705
  40. package/static/core/e7c24fe9.js +649 -0
  41. package/static/esm/{dab4cdfd.js → 448d4bb0.js} +70 -70
  42. package/static/esm/{7c5227f0.js → d180c108.js} +50 -47
  43. package/static/runtime/{DownloadOutlined-CgJ8OpH_.js → DownloadOutlined-Dg_G2xO7.js} +4 -4
  44. package/static/runtime/client-CfXgU5Vo.js +7580 -0
  45. package/static/runtime/{defineProperty-B-FyVNQF.js → defineProperty-C_9hhJHt.js} +1 -1
  46. package/static/runtime/dom-export-CHgQ7Ws9.js +8069 -0
  47. package/static/runtime/{es-DnZp8dh1.js → es-BPfImJ0x.js} +5 -5
  48. package/static/runtime/{es-B2DS-PLP.js → es-DcH6fwd6.js} +2 -2
  49. package/static/runtime/{es-deqzngIL.js → es-_OY-D9g1.js} +2 -2
  50. package/static/runtime/{jsx-dev-runtime-Wj1_6O79.js → jsx-dev-runtime-DDukXY54.js} +2 -2
  51. package/static/runtime/jsx-runtime-BodCQYDg.js +22 -0
  52. package/static/runtime/react-BHNx_xzv.js +290 -0
  53. package/static/runtime/react-dom-CyByzibb.js +127 -0
  54. package/two_step_headless_plugin.html +1 -1
  55. package/{useblocks-core.2116f1b9.js → useblocks-core.15a9129c.js} +82 -76
  56. package/useblocks-esm.js +628 -3198
  57. package/useblocks.d.ts +184 -52
  58. package/useblocks.js +818 -12588
  59. package/vite/index.cjs +46 -21
  60. package/vite/index.d.ts +0 -1
  61. package/vite/index.js +46 -21
  62. package/vite/pluginDev/index.d.ts +0 -1
  63. package/webpack/index.cjs +46 -21
  64. package/webpack/index.d.ts +0 -1
  65. package/webpack/index.js +46 -21
  66. package/webpack/pluginDev/index.d.ts +0 -1
  67. package/iframe/js/amp.CVC2Iq48.js +0 -1
  68. package/static/core/9421a704.js +0 -869
  69. package/static/core/9c79239d.js +0 -2063
  70. package/static/core/df0652cc.js +0 -1119
  71. package/static/esm/2fb07398.js +0 -3480
  72. package/static/esm/352121c5.js +0 -55
  73. package/static/esm/64966e1c.js +0 -18
  74. package/static/runtime/client-CM3WFcip.js +0 -7
  75. package/static/runtime/dist-DUS42Hru.js +0 -3421
  76. package/static/runtime/jsx-runtime-DmPQfqtr.js +0 -28
  77. package/static/runtime/react-DIf5CLST.js +0 -258
  78. package/static/runtime/react-dom-Cc3IcUkg.js +0 -5604
  79. /package/iframe/{iframe-eblock.2116f1b9.html → iframe-eblock.15a9129c.html} +0 -0
  80. /package/iframe/{iframe.2116f1b9.html → iframe.15a9129c.html} +0 -0
@@ -1,127 +1,127 @@
1
- import { d as P, s as n } from "./7c5227f0.js";
1
+ import { a as P, i as I } from "./d180c108.js";
2
2
  import "useblocks/runtime/react";
3
- function D(o) {
3
+ function i(o) {
4
4
  if (o instanceof DOMException && o.name === "AbortError") return o;
5
5
  const t = o === void 0 ? "The operation was aborted." : typeof o == "string" ? o : o instanceof Error ? o.message : String(o);
6
6
  return new DOMException(t, "AbortError");
7
7
  }
8
- function S(o) {
9
- if (o?.aborted) throw D(o.reason);
8
+ function f(o) {
9
+ if (o?.aborted) throw i(o.reason);
10
10
  }
11
11
  function l(o, t) {
12
- return t ? (S(t), new Promise((e, E) => {
13
- const _ = () => {
14
- N(), E(D(t.reason));
12
+ return t ? (f(t), new Promise((_, E) => {
13
+ const n = () => {
14
+ N(), E(i(t.reason));
15
15
  }, N = () => {
16
- t.removeEventListener("abort", _);
16
+ t.removeEventListener("abort", n);
17
17
  };
18
- t.addEventListener("abort", _), o.then((i) => {
19
- N(), e(i);
20
- }, (i) => {
21
- N(), E(i);
18
+ t.addEventListener("abort", n), o.then((D) => {
19
+ N(), _(D);
20
+ }, (D) => {
21
+ N(), E(D);
22
22
  });
23
23
  })) : o;
24
24
  }
25
- function p(o) {
25
+ function M(o) {
26
26
  return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(o) : o.replace(/([^a-zA-Z0-9_-])/g, "\\$1");
27
27
  }
28
- function a(o, t = document) {
28
+ function T(o, t = document) {
29
29
  try {
30
30
  const E = t.querySelector(o);
31
31
  if (E) return E;
32
32
  } catch {
33
33
  return null;
34
34
  }
35
- const e = t.querySelectorAll("*");
36
- for (let E = 0; E < e.length; E++) {
37
- const _ = e[E]?.shadowRoot;
38
- if (!_) continue;
39
- const N = a(o, _);
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
40
  if (N) return N;
41
41
  }
42
42
  return null;
43
43
  }
44
- function C(o, t = []) {
45
- const e = o.querySelectorAll("*");
46
- for (let E = 0; E < e.length; E++) {
47
- const _ = e[E]?.shadowRoot;
48
- _ && (t.push(_), C(_, t));
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
49
  }
50
50
  return t;
51
51
  }
52
- function b(o, t, e) {
52
+ function p(o, t, _) {
53
53
  if (o.isConnected) return o;
54
54
  const E = o.id?.trim();
55
- return E ? M(`#${p(E)}`, t, e) : Promise.reject(D("Editor mount element was disconnected and has no id — pass a CSS selector or call init() again after the host remounts the container."));
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
56
  }
57
- function M(o, t, e) {
58
- if (S(e), typeof o < "u") {
57
+ function b(o, t, _) {
58
+ if (f(_), typeof o < "u") {
59
59
  if (typeof o == "string") {
60
- const E = o, _ = a(E);
61
- if (_) return _;
60
+ const E = o, n = T(E);
61
+ if (n) return n;
62
62
  const N = t.addDisposable(new P());
63
- return new Promise((i, T) => {
64
- const c = (I) => {
65
- N.dispose(), I();
66
- }, O = () => {
67
- c(() => T(D(e?.reason)));
63
+ return new Promise((D, a) => {
64
+ const O = (e) => {
65
+ N.dispose(), e();
66
+ }, c = () => {
67
+ O(() => a(i(_?.reason)));
68
68
  };
69
- if (e?.aborted) {
70
- O();
69
+ if (_?.aborted) {
70
+ c();
71
71
  return;
72
72
  }
73
- e?.addEventListener("abort", O), N.addDispose(() => e?.removeEventListener("abort", O));
73
+ _?.addEventListener("abort", c), N.addDispose(() => _?.removeEventListener("abort", c));
74
74
  const u = document.body ?? document.documentElement;
75
75
  if (!u) {
76
- c(() => T(D("Document is not ready to observe mount element")));
76
+ O(() => a(i("Document is not ready to observe mount element")));
77
77
  return;
78
78
  }
79
- const s = /* @__PURE__ */ new Set(), L = new MutationObserver(() => {
80
- const I = a(E);
81
- if (I) {
82
- c(() => i(I));
79
+ const A = /* @__PURE__ */ new Set(), L = new MutationObserver(() => {
80
+ const e = T(E);
81
+ if (e) {
82
+ O(() => D(e));
83
83
  return;
84
84
  }
85
- A();
86
- }), d = (I) => {
87
- s.has(I) || (s.add(I), L.observe(I, {
85
+ S();
86
+ }), d = (e) => {
87
+ A.has(e) || (A.add(e), L.observe(e, {
88
88
  attributes: !0,
89
89
  childList: !0,
90
90
  subtree: !0
91
91
  }));
92
- }, A = () => {
93
- const I = document.documentElement;
94
- if (I) for (const R of C(I)) d(R);
92
+ }, S = () => {
93
+ const e = document.documentElement;
94
+ if (e) for (const C of R(e)) d(C);
95
95
  };
96
- d(u), A(), N.addDispose(() => L.disconnect());
96
+ d(u), S(), N.addDispose(() => L.disconnect());
97
97
  });
98
98
  }
99
- return o instanceof Element ? b(o, t, e) : o;
99
+ return o instanceof Element ? p(o, t, _) : o;
100
100
  }
101
101
  return o;
102
102
  }
103
103
  var w = /* @__PURE__ */ new Map();
104
- n("ELEMENT_INSERT_HTML_PIPELINE");
105
- n("BLOCK_INSERT_HTML_PIPELINE");
106
- n("DomComponentRegistry");
107
- n("ComponentRegistry");
104
+ I("ELEMENT_INSERT_HTML_PIPELINE");
105
+ I("BLOCK_INSERT_HTML_PIPELINE");
106
+ I("DomComponentRegistry");
107
+ I("ComponentRegistry");
108
108
  function r(o) {
109
- return n(o);
109
+ return I(o);
110
110
  }
111
- var f;
111
+ var s;
112
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();
114
- })(f || (f = {}));
115
- n();
116
- n();
117
- n("InitPipelineContext");
118
- n();
119
- n();
120
- n();
121
- n();
122
- n();
123
- n();
124
- n("PluginCollection");
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
125
  r("APP_LOAD_EVENT");
126
126
  r("CONFIG_CHANGED_EVENT");
127
- export { S as a, l as i, M as n, D as r, w as t };
127
+ export { f as a, l as i, b as n, i as r, w as t };
@@ -1,12 +1,18 @@
1
- import { n as E } from "./64966e1c.js";
2
- var f = class v {
1
+ var E = Object.defineProperty, v = (t, e) => {
2
+ let r = {};
3
+ for (var n in t) E(r, n, {
4
+ get: t[n],
5
+ enumerable: !0
6
+ });
7
+ return e || E(r, Symbol.toStringTag, { value: "Module" }), r;
8
+ }, f = class y {
3
9
  _inner;
4
10
  _isDisposed = !1;
5
11
  constructor(e = []) {
6
12
  this._inner = e;
7
13
  }
8
14
  addDisposable(e) {
9
- return this._inner.push(e), e instanceof v && e.addDispose(() => {
15
+ return this._inner.push(e), e instanceof y && e.addDispose(() => {
10
16
  this.removeDisposable(e);
11
17
  }), e;
12
18
  }
@@ -30,7 +36,7 @@ var f = class v {
30
36
  function p(t) {
31
37
  return `service_container_${t}`;
32
38
  }
33
- var D = class h extends f {
39
+ var T = class h extends f {
34
40
  _parent;
35
41
  _injectCallbacks = [];
36
42
  _injections = /* @__PURE__ */ Object.create(null);
@@ -86,10 +92,10 @@ var D = class h extends f {
86
92
  addServiceFactory(e, r, n) {
87
93
  const s = p(e);
88
94
  let o;
89
- this.injectFactory(s, (u, a = []) => (o = r(u, o), o === void 0 ? a : a.indexOf(o) < 0 ? [...a, o] : a), n);
95
+ this.injectFactory(s, (u, c = []) => (o = r(u, o), o === void 0 ? c : c.indexOf(o) < 0 ? [...c, o] : c), n);
90
96
  const i = new f();
91
97
  return i.addDispose(() => {
92
- this.injectFactory(s, (u, a = []) => o === void 0 ? a : a.filter((d) => d !== o));
98
+ this.injectFactory(s, (u, c = []) => o === void 0 ? c : c.filter((d) => d !== o));
93
99
  }), i;
94
100
  }
95
101
  getServices(e) {
@@ -117,41 +123,41 @@ function A(t) {
117
123
  const e = g(t), r = globalThis;
118
124
  return r[e] ??= {};
119
125
  }
120
- function T(t) {
126
+ function C(t) {
121
127
  return t != null && typeof t == "object" && typeof t.inject == "function" && typeof t.getInstance == "function";
122
128
  }
123
- function C(t) {
129
+ function x(t) {
124
130
  if (t) return g(t);
125
131
  return g("useblocks".trim());
126
132
  }
127
- function y(t) {
128
- const e = A(C(t));
129
- if (T(e.container)) return e.container;
130
- const r = new D(null);
133
+ function S(t) {
134
+ const e = A(x(t));
135
+ if (C(e.container)) return e.container;
136
+ const r = new T(null);
131
137
  return e.container = r, r;
132
138
  }
133
- function x(t) {
134
- return y(t);
139
+ function O(t) {
140
+ return S(t);
135
141
  }
136
- function O() {
142
+ function m() {
137
143
  let t = (/* @__PURE__ */ new Date()).getTime(), e = typeof performance < "u" && performance.now && performance.now() * 1e3 || 0;
138
144
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(r) {
139
145
  let n = Math.random() * 16;
140
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);
141
147
  });
142
148
  }
143
- function m() {
144
- return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : O();
149
+ function w() {
150
+ return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : m();
145
151
  }
146
- function c(t = m()) {
152
+ function a(t = w()) {
147
153
  return t;
148
154
  }
149
- function S() {
155
+ function I() {
150
156
  return "esm".trim();
151
157
  }
152
- function w(t) {
158
+ function N(t) {
153
159
  if (typeof globalThis > "u") return;
154
- const e = S(), r = globalThis[t] ?? {};
160
+ const e = I(), r = globalThis[t] ?? {};
155
161
  globalThis[t] = r;
156
162
  const n = r.__diagnostics ??= {}, s = n.diModuleEval ??= {
157
163
  evalCount: 0,
@@ -166,12 +172,12 @@ function w(t) {
166
172
  s.duplicateWarned = !0;
167
173
  s.evalCount, s.records;
168
174
  }
169
- function N() {
175
+ function R() {
170
176
  return `__${"useblocks".trim()}__`;
171
177
  }
172
- function R(t, e) {
173
- if (w(e), typeof globalThis > "u") return t;
174
- const r = S(), n = globalThis, s = n[e] = n[e] || {}, o = s.__diagnostics = s.__diagnostics || {}, i = o.dependencyResolver = o.dependencyResolver || {
178
+ function b(t, e) {
179
+ 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 || {
175
181
  entries: [],
176
182
  warnings: []
177
183
  }, u = {
@@ -182,8 +188,8 @@ function R(t, e) {
182
188
  stack: (/* @__PURE__ */ new Error()).stack
183
189
  };
184
190
  if (i.entries.push(u), i.entries.length > 1) {
185
- const a = i.entries[0];
186
- if (i.entries.some((d) => d.container !== a.container) && !i.duplicateWarningShown) {
191
+ const c = i.entries[0];
192
+ if (i.entries.some((d) => d.container !== c.container) && !i.duplicateWarningShown) {
187
193
  i.duplicateWarningShown = !0;
188
194
  const d = {
189
195
  message: "[di] Multiple DependencyResolver instances detected on namespace",
@@ -197,16 +203,16 @@ function R(t, e) {
197
203
  return t;
198
204
  }
199
205
  var _;
200
- function b() {
206
+ function M() {
201
207
  if (_) return _;
202
- const t = N();
203
- return _ = R(y(t), t), _;
208
+ const t = R();
209
+ return _ = b(S(t), t), _;
204
210
  }
205
- var V = new Proxy({}, { get(t, e, r) {
206
- const n = b(), s = Reflect.get(n, e, r);
211
+ new Proxy({}, { get(t, e, r) {
212
+ const n = M(), s = Reflect.get(n, e, r);
207
213
  return typeof s == "function" ? s.bind(n) : s;
208
214
  } });
209
- function M(t, e = "BackendError") {
215
+ function L(t, e = "BackendError") {
210
216
  switch (t) {
211
217
  case 400: return "ValidationError";
212
218
  case 401: return "AuthenticationFailed";
@@ -221,7 +227,7 @@ function M(t, e = "BackendError") {
221
227
  default: return e;
222
228
  }
223
229
  }
224
- var L = class {
230
+ var j = class {
225
231
  _plugins = /* @__PURE__ */ new Map();
226
232
  _listeners = /* @__PURE__ */ new Map();
227
233
  _getOrCreateEntry(t) {
@@ -334,7 +340,7 @@ var L = class {
334
340
  t.add(e, r);
335
341
  } };
336
342
  }
337
- }, j = class {
343
+ }, P = class {
338
344
  resolveRegistry;
339
345
  constructor(t) {
340
346
  this.resolveRegistry = t;
@@ -381,23 +387,20 @@ var L = class {
381
387
  forContext() {
382
388
  return this.target().forContext();
383
389
  }
384
- }, P = "PluginRegistry";
385
- function U(t = x()) {
386
- return t.getOrCreateInstance(P, () => new L());
387
- }
388
- var G = new j(() => U());
389
- function H(t) {
390
- return t;
390
+ }, U = "PluginRegistry";
391
+ function F(t = O()) {
392
+ return t.getOrCreateInstance(U, () => new j());
391
393
  }
394
+ var G = new P(() => F());
392
395
  function l(t) {
393
- return c(t);
396
+ return a(t);
394
397
  }
395
398
  l("HANDLE_ATOM_INSERT");
396
399
  l("SETTINGS_PANEL_EVENT");
397
400
  l("MODAL_SHOW_EVENT");
398
401
  l("MODAL_CLOSE_EVENT");
399
402
  l("MODAL_UPDATE_EVENT");
400
- var ee = c("client"), ie = /* @__PURE__ */ E({ FileManagerApiError: () => F }), F = class I extends Error {
403
+ var oe = /* @__PURE__ */ v({ FileManagerApiError: () => V }), V = class D extends Error {
401
404
  code;
402
405
  status;
403
406
  details;
@@ -405,7 +408,7 @@ var ee = c("client"), ie = /* @__PURE__ */ E({ FileManagerApiError: () => F }),
405
408
  return this.status;
406
409
  }
407
410
  constructor(e, r, n, s) {
408
- super(e), this.name = "FileManagerApiError", this.code = r, this.status = n, this.details = s, Error.captureStackTrace && Error.captureStackTrace(this, I);
411
+ super(e), this.name = "FileManagerApiError", this.code = r, this.status = n, this.details = s, Error.captureStackTrace && Error.captureStackTrace(this, D);
409
412
  }
410
- }, oe = /* @__PURE__ */ E({ mapHttpStatusToErrorCode: () => M });
411
- export { G as a, m as c, f as d, H as i, D as l, ie as n, V as o, ee as r, c as s, oe as t, p as u };
413
+ }, ae = /* @__PURE__ */ v({ mapHttpStatusToErrorCode: () => L });
414
+ export { f as a, a as i, oe as n, G as r, ae as t };
@@ -1,8 +1,8 @@
1
1
  import { r as s, t as l } from "./rolldown-runtime-Bklm4c_g.js";
2
- import { t as kt } from "./react-DIf5CLST.js";
3
- import { t as Nt } from "./react-dom-Cc3IcUkg.js";
4
- import { t as Ut } from "./client-CM3WFcip.js";
5
- import { c as Wt, i as Zt, l as Kt, o as Qt, t as b } from "./defineProperty-B-FyVNQF.js";
2
+ import { t as kt } from "./react-BHNx_xzv.js";
3
+ import { t as Nt } from "./react-dom-CyByzibb.js";
4
+ import { t as Ut } from "./client-CfXgU5Vo.js";
5
+ import { c as Wt, i as Zt, l as Kt, o as Qt, t as b } from "./defineProperty-C_9hhJHt.js";
6
6
  var n = s(kt()), Xe = (t) => {
7
7
  const e = n.useRef(t);
8
8
  return e.current = t, n.useCallback((...r) => e.current?.(...r), []);