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.
- package/iframe/js/amp.BP7EklKo.js +1 -0
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.4N5s3OV-.js +1 -1
- package/monacoeditorwork/css.worker.bundle.js +40524 -40442
- package/monacoeditorwork/editor.worker.bundle.js +9740 -9697
- package/monacoeditorwork/html.worker.bundle.js +50513 -50431
- package/monacoeditorwork/json.worker.bundle.js +14570 -14527
- package/monacoeditorwork/ts.worker.bundle.js +119593 -119455
- package/npm-publish.manifest.json +7 -7
- package/package.json +1 -1
- package/runtime/@ant-design/cssinjs/index.js +1 -1
- package/runtime/@ant-design/icons/index.js +2 -2
- package/runtime/README.md +1 -1
- package/runtime/THIRD_PARTY_LICENSES.txt +70 -42
- package/runtime/antd/index.js +1 -1
- package/runtime/react/index.js +3 -3
- package/runtime/react/jsx-runtime/index.js +1 -1
- package/runtime/react-dom/client/index.js +4 -4
- package/runtime/react-dom/index.js +3 -3
- package/runtime/react-router-dom/index.js +2 -2
- package/singlepage_headless_plugin.html +1 -1
- package/static/core/{cc8f145d.js → 11296a18.js} +55 -55
- package/static/core/{a321a57d.js → 13d197af.js} +26 -26
- package/static/core/13f581cc.js +924 -0
- package/static/core/{90ec6d2b2.js → 1ca5f3772.js} +184 -155
- package/static/core/{b9529b8a.js → 339377b8.js} +16684 -16503
- package/static/core/{6e2d88d5.js → 386cf7b3.js} +3573 -3559
- package/static/core/{6df04323.js → 3b4845f7.js} +537 -518
- package/static/core/{526b23c2.js → 3dea3b87.js} +7 -7
- package/static/core/59023866.js +2090 -0
- package/static/core/{4a2af478.js → 7a229b90.js} +3 -3
- package/static/core/{6b8432a3.js → 8c81db36.js} +3 -3
- package/static/core/{b8b730b2.js → 8e110c69.js} +22 -22
- package/static/core/{35e13192.js → a11c28c2.js} +172 -168
- package/static/core/{9c1c1b89.js → aacf134d.js} +745 -664
- package/static/core/{350eac23.js → acb049cb.js} +1349 -1297
- package/static/core/{cefd6620.js → c59f9731.js} +7640 -6595
- package/static/core/{4eb628d3.js → de79e0c5.js} +3947 -3705
- package/static/core/e7c24fe9.js +649 -0
- package/static/esm/{dab4cdfd.js → 448d4bb0.js} +70 -70
- package/static/esm/{7c5227f0.js → d180c108.js} +50 -47
- package/static/runtime/{DownloadOutlined-CgJ8OpH_.js → DownloadOutlined-Dg_G2xO7.js} +4 -4
- package/static/runtime/client-CfXgU5Vo.js +7580 -0
- package/static/runtime/{defineProperty-B-FyVNQF.js → defineProperty-C_9hhJHt.js} +1 -1
- package/static/runtime/dom-export-CHgQ7Ws9.js +8069 -0
- package/static/runtime/{es-DnZp8dh1.js → es-BPfImJ0x.js} +5 -5
- package/static/runtime/{es-B2DS-PLP.js → es-DcH6fwd6.js} +2 -2
- package/static/runtime/{es-deqzngIL.js → es-_OY-D9g1.js} +2 -2
- package/static/runtime/{jsx-dev-runtime-Wj1_6O79.js → jsx-dev-runtime-DDukXY54.js} +2 -2
- package/static/runtime/jsx-runtime-BodCQYDg.js +22 -0
- package/static/runtime/react-BHNx_xzv.js +290 -0
- package/static/runtime/react-dom-CyByzibb.js +127 -0
- package/two_step_headless_plugin.html +1 -1
- package/{useblocks-core.2116f1b9.js → useblocks-core.15a9129c.js} +82 -76
- package/useblocks-esm.js +628 -3198
- package/useblocks.d.ts +184 -52
- package/useblocks.js +818 -12588
- package/vite/index.cjs +46 -21
- package/vite/index.d.ts +0 -1
- package/vite/index.js +46 -21
- package/vite/pluginDev/index.d.ts +0 -1
- package/webpack/index.cjs +46 -21
- package/webpack/index.d.ts +0 -1
- package/webpack/index.js +46 -21
- package/webpack/pluginDev/index.d.ts +0 -1
- package/iframe/js/amp.CVC2Iq48.js +0 -1
- package/static/core/9421a704.js +0 -869
- package/static/core/9c79239d.js +0 -2063
- package/static/core/df0652cc.js +0 -1119
- package/static/esm/2fb07398.js +0 -3480
- package/static/esm/352121c5.js +0 -55
- package/static/esm/64966e1c.js +0 -18
- package/static/runtime/client-CM3WFcip.js +0 -7
- package/static/runtime/dist-DUS42Hru.js +0 -3421
- package/static/runtime/jsx-runtime-DmPQfqtr.js +0 -28
- package/static/runtime/react-DIf5CLST.js +0 -258
- package/static/runtime/react-dom-Cc3IcUkg.js +0 -5604
- /package/iframe/{iframe-eblock.2116f1b9.html → iframe-eblock.15a9129c.html} +0 -0
- /package/iframe/{iframe.2116f1b9.html → iframe.15a9129c.html} +0 -0
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as P, i as I } from "./d180c108.js";
|
|
2
2
|
import "useblocks/runtime/react";
|
|
3
|
-
function
|
|
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
|
|
9
|
-
if (o?.aborted) throw
|
|
8
|
+
function f(o) {
|
|
9
|
+
if (o?.aborted) throw i(o.reason);
|
|
10
10
|
}
|
|
11
11
|
function l(o, t) {
|
|
12
|
-
return t ? (
|
|
13
|
-
const
|
|
14
|
-
N(), E(
|
|
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",
|
|
19
|
-
N(),
|
|
20
|
-
}, (
|
|
21
|
-
N(), E(
|
|
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
|
|
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
|
|
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
|
|
36
|
-
for (let E = 0; E <
|
|
37
|
-
const
|
|
38
|
-
if (!
|
|
39
|
-
const N =
|
|
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
|
|
45
|
-
const
|
|
46
|
-
for (let E = 0; E <
|
|
47
|
-
const
|
|
48
|
-
|
|
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
|
|
52
|
+
function p(o, t, _) {
|
|
53
53
|
if (o.isConnected) return o;
|
|
54
54
|
const E = o.id?.trim();
|
|
55
|
-
return E ?
|
|
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
|
|
58
|
-
if (
|
|
57
|
+
function b(o, t, _) {
|
|
58
|
+
if (f(_), typeof o < "u") {
|
|
59
59
|
if (typeof o == "string") {
|
|
60
|
-
const E = o,
|
|
61
|
-
if (
|
|
60
|
+
const E = o, n = T(E);
|
|
61
|
+
if (n) return n;
|
|
62
62
|
const N = t.addDisposable(new P());
|
|
63
|
-
return new Promise((
|
|
64
|
-
const
|
|
65
|
-
N.dispose(),
|
|
66
|
-
},
|
|
67
|
-
|
|
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 (
|
|
70
|
-
|
|
69
|
+
if (_?.aborted) {
|
|
70
|
+
c();
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
73
|
-
|
|
73
|
+
_?.addEventListener("abort", c), N.addDispose(() => _?.removeEventListener("abort", c));
|
|
74
74
|
const u = document.body ?? document.documentElement;
|
|
75
75
|
if (!u) {
|
|
76
|
-
|
|
76
|
+
O(() => a(i("Document is not ready to observe mount element")));
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
|
-
const
|
|
80
|
-
const
|
|
81
|
-
if (
|
|
82
|
-
|
|
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
|
-
|
|
86
|
-
}), d = (
|
|
87
|
-
|
|
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
|
-
},
|
|
93
|
-
const
|
|
94
|
-
if (
|
|
92
|
+
}, S = () => {
|
|
93
|
+
const e = document.documentElement;
|
|
94
|
+
if (e) for (const C of R(e)) d(C);
|
|
95
95
|
};
|
|
96
|
-
d(u),
|
|
96
|
+
d(u), S(), N.addDispose(() => L.disconnect());
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
return o instanceof Element ?
|
|
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
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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
|
|
109
|
+
return I(o);
|
|
110
110
|
}
|
|
111
|
-
var
|
|
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
|
-
})(
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
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 {
|
|
127
|
+
export { f as a, l as i, b as n, i as r, w as t };
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
|
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
|
|
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,
|
|
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,
|
|
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
|
|
126
|
+
function C(t) {
|
|
121
127
|
return t != null && typeof t == "object" && typeof t.inject == "function" && typeof t.getInstance == "function";
|
|
122
128
|
}
|
|
123
|
-
function
|
|
129
|
+
function x(t) {
|
|
124
130
|
if (t) return g(t);
|
|
125
131
|
return g("useblocks".trim());
|
|
126
132
|
}
|
|
127
|
-
function
|
|
128
|
-
const e = A(
|
|
129
|
-
if (
|
|
130
|
-
const r = new
|
|
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
|
|
134
|
-
return
|
|
139
|
+
function O(t) {
|
|
140
|
+
return S(t);
|
|
135
141
|
}
|
|
136
|
-
function
|
|
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
|
|
144
|
-
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() :
|
|
149
|
+
function w() {
|
|
150
|
+
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : m();
|
|
145
151
|
}
|
|
146
|
-
function
|
|
152
|
+
function a(t = w()) {
|
|
147
153
|
return t;
|
|
148
154
|
}
|
|
149
|
-
function
|
|
155
|
+
function I() {
|
|
150
156
|
return "esm".trim();
|
|
151
157
|
}
|
|
152
|
-
function
|
|
158
|
+
function N(t) {
|
|
153
159
|
if (typeof globalThis > "u") return;
|
|
154
|
-
const e =
|
|
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
|
|
175
|
+
function R() {
|
|
170
176
|
return `__${"useblocks".trim()}__`;
|
|
171
177
|
}
|
|
172
|
-
function
|
|
173
|
-
if (
|
|
174
|
-
const r =
|
|
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
|
|
186
|
-
if (i.entries.some((d) => d.container !==
|
|
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
|
|
206
|
+
function M() {
|
|
201
207
|
if (_) return _;
|
|
202
|
-
const t =
|
|
203
|
-
return _ =
|
|
208
|
+
const t = R();
|
|
209
|
+
return _ = b(S(t), t), _;
|
|
204
210
|
}
|
|
205
|
-
|
|
206
|
-
const n =
|
|
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
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
385
|
-
function
|
|
386
|
-
return t.getOrCreateInstance(
|
|
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
|
|
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
|
|
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,
|
|
411
|
+
super(e), this.name = "FileManagerApiError", this.code = r, this.status = n, this.details = s, Error.captureStackTrace && Error.captureStackTrace(this, D);
|
|
409
412
|
}
|
|
410
|
-
},
|
|
411
|
-
export {
|
|
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-
|
|
3
|
-
import { t as Nt } from "./react-dom-
|
|
4
|
-
import { t as Ut } from "./client-
|
|
5
|
-
import { c as Wt, i as Zt, l as Kt, o as Qt, t as b } from "./defineProperty-
|
|
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), []);
|