useblocks 1.1.53 → 1.1.56

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 (65) 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/{d1eb3c68.js → 12a9aa4e.js} +12892 -12866
  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/{c3058168.js → 289ba982.js} +334 -323
  18. package/static/core/{9929a348.js → 30c5fe5f.js} +90 -90
  19. package/static/core/{e93d55b92.js → 3af8f3592.js} +4 -4
  20. package/static/core/{542ea53f2.js → 4a27bba92.js} +8 -8
  21. package/static/core/4a5f1756.js +466 -0
  22. package/static/core/{5318562c.js → 4d493eba.js} +3 -3
  23. package/static/core/{ebd852b6.js → 4dadf572.js} +1019 -1032
  24. package/static/core/{e1d239ab.js → 5345bef8.js} +42 -42
  25. package/static/core/{27544e7e.js → 581ce428.js} +37 -19
  26. package/static/core/58c4b8d7.js +3150 -0
  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/{b77f0769.js → 8432f11e.js} +5 -5
  33. package/static/core/{31e98e6e.js → 87969347.js} +247 -250
  34. package/static/core/{f3cff4c9.js → 8a496b64.js} +158 -158
  35. package/static/core/{4e1b970f.js → 8ba13f332.js} +1 -1
  36. package/static/core/{75737a9d.js → 951903fb.js} +9096 -9074
  37. package/static/core/{bc7e3d2b.js → 988589a5.js} +10 -10
  38. package/static/core/{a95c02bb.js → a1355a35.js} +5 -5
  39. package/static/core/{7c6fb2162.js → a36c3ab62.js} +3 -3
  40. package/static/core/{e5e07f1d.js → a4c19e27.js} +13 -13
  41. package/static/core/{2da1d66b.js → abd3f34c.js} +5 -5
  42. package/static/core/{528ad9282.js → ae20f0992.js} +16 -16
  43. package/static/core/{ee0ddb51.js → b9bb2c5f.js} +6403 -4842
  44. package/static/core/bf446743.js +761 -0
  45. package/static/core/{f96d2049.js → d1a1d4902.js} +1 -1
  46. package/static/core/{5b48fd69.js → d8d6485e.js} +5 -5
  47. package/static/core/{59e92cc3.js → d9398296.js} +5 -5
  48. package/static/core/{139e4380.js → eb23332a.js} +3 -3
  49. package/static/core/{b408f33a.js → fa354fb5.js} +25 -25
  50. package/static/core/{1e5bf73c.js → ffee9a77.js} +7 -7
  51. package/static/esm/{d180c108.js → 3cde7cb6.js} +51 -70
  52. package/static/esm/{448d4bb0.js → 550bf3cb.js} +1 -1
  53. package/two_step_headless_plugin.html +1 -1
  54. package/{useblocks-core.2a5dade1.js → useblocks-core.1279854f.js} +6 -6
  55. package/useblocks-esm.js +352 -392
  56. package/useblocks.js +67 -152
  57. package/runtime/prop-types/index.js +0 -4
  58. package/runtime/react-router-dom/index.js +0 -2
  59. package/static/core/1995fb0a2.js +0 -602
  60. package/static/core/1f5e1fc9.js +0 -3097
  61. package/static/core/ce0410b1.js +0 -467
  62. package/static/runtime/dom-export-CHgQ7Ws9.js +0 -8069
  63. package/static/runtime/prop-types-p_yYKrF7.js +0 -47
  64. /package/iframe/{iframe-eblock.2a5dade1.html → iframe-eblock.1279854f.html} +0 -0
  65. /package/iframe/{iframe.2a5dade1.html → iframe.1279854f.html} +0 -0
@@ -1,4 +1,4 @@
1
- __useblocks__.define("static/core/f96d2049.js", [
1
+ __useblocks__.define("static/core/d1a1d4902.js", [
2
2
  "require",
3
3
  "exports",
4
4
  "module",
@@ -1,4 +1,4 @@
1
- __useblocks__.define("static/core/5b48fd69.js", [
1
+ __useblocks__.define("static/core/d8d6485e.js", [
2
2
  "require",
3
3
  "exports",
4
4
  "module",
@@ -7,7 +7,7 @@ __useblocks__.define("static/core/5b48fd69.js", [
7
7
  ], function(i, p, P) {
8
8
  i("./bd36b180.js");
9
9
  const u = i("./ce91cf4a.js");
10
- var d = {
10
+ var b = {
11
11
  items_per_page: "条/页",
12
12
  jump_to: "跳至",
13
13
  jump_to_confirm: "确定",
@@ -42,14 +42,14 @@ __useblocks__.define("static/core/5b48fd69.js", [
42
42
  for (var e = 1; e < arguments.length; e++) {
43
43
  var t = arguments[e] != null ? arguments[e] : {};
44
44
  e % 2 ? c(Object(t), !0).forEach(function(a) {
45
- b(r, a, t[a]);
45
+ d(r, a, t[a]);
46
46
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : c(Object(t)).forEach(function(a) {
47
47
  Object.defineProperty(r, a, Object.getOwnPropertyDescriptor(t, a));
48
48
  });
49
49
  }
50
50
  return r;
51
51
  }
52
- function b(r, e, t) {
52
+ function d(r, e, t) {
53
53
  return e = f(e), e in r ? Object.defineProperty(r, e, {
54
54
  value: t,
55
55
  enumerable: !0,
@@ -121,7 +121,7 @@ __useblocks__.define("static/core/5b48fd69.js", [
121
121
  var h = n, l = "${label}不是一个有效的${type}";
122
122
  p.default = {
123
123
  locale: "zh-cn",
124
- Pagination: d,
124
+ Pagination: b,
125
125
  DatePicker: n,
126
126
  TimePicker: m,
127
127
  Calendar: h,
@@ -1,4 +1,4 @@
1
- __useblocks__.define("static/core/59e92cc3.js", [
1
+ __useblocks__.define("static/core/d9398296.js", [
2
2
  "require",
3
3
  "exports",
4
4
  "module",
@@ -6,8 +6,8 @@ __useblocks__.define("static/core/59e92cc3.js", [
6
6
  "static/core/ce91cf4a.js"
7
7
  ], function(i, p, $) {
8
8
  i("./bd36b180.js");
9
- const d = i("./ce91cf4a.js");
10
- var u = {
9
+ const u = i("./ce91cf4a.js");
10
+ var d = {
11
11
  items_per_page: "/ página",
12
12
  jump_to: "Vá até",
13
13
  jump_to_confirm: "confirme",
@@ -71,7 +71,7 @@ __useblocks__.define("static/core/59e92cc3.js", [
71
71
  }
72
72
  return (e === "string" ? String : Number)(r);
73
73
  }
74
- var g = c(c({}, d.commonLocale), {}, {
74
+ var g = c(c({}, u.commonLocale), {}, {
75
75
  locale: "pt_BR",
76
76
  today: "Hoje",
77
77
  now: "Agora",
@@ -131,7 +131,7 @@ __useblocks__.define("static/core/59e92cc3.js", [
131
131
  }, y = m, o = "${label} não é um ${type} válido";
132
132
  p.default = {
133
133
  locale: "pt-br",
134
- Pagination: u,
134
+ Pagination: d,
135
135
  DatePicker: m,
136
136
  TimePicker: s,
137
137
  Calendar: y,
@@ -1,10 +1,10 @@
1
- __useblocks__.define("static/core/139e4380.js", [
1
+ __useblocks__.define("static/core/eb23332a.js", [
2
2
  "require",
3
3
  "exports",
4
4
  "module",
5
- "static/core/ee0ddb51.js"
5
+ "static/core/b9bb2c5f.js"
6
6
  ], function(f, r, I) {
7
- const l = f("./ee0ddb51.js");
7
+ const l = f("./b9bb2c5f.js");
8
8
  var n = l.createState({
9
9
  invalidateBlockId: null,
10
10
  isCodeMode: !1,
@@ -1,15 +1,15 @@
1
- __useblocks__.define("static/core/b408f33a.js", [
1
+ __useblocks__.define("static/core/fa354fb5.js", [
2
2
  "require",
3
3
  "exports",
4
4
  "module",
5
- "static/core/ee0ddb51.js",
6
- "static/core/5318562c.js",
7
- "static/core/ebd852b6.js",
8
- "static/core/75737a9d.js",
9
- "static/core/1995fb0a2.js"
10
- ], function(g, F, B) {
11
- const h = g("./ee0ddb51.js"), S = g("./5318562c.js"), P = g("./ebd852b6.js"), f = g("./75737a9d.js");
12
- g("./1995fb0a2.js");
5
+ "static/core/b9bb2c5f.js",
6
+ "static/core/4d493eba.js",
7
+ "static/core/4dadf572.js",
8
+ "static/core/951903fb.js",
9
+ "static/core/bf446743.js"
10
+ ], function(g, F, N) {
11
+ const h = g("./b9bb2c5f.js"), S = g("./4d493eba.js"), P = g("./4dadf572.js"), f = g("./951903fb.js");
12
+ g("./bf446743.js");
13
13
  var _;
14
14
  (function(l) {
15
15
  function e(s, a, n = (i, o) => i === o) {
@@ -63,17 +63,17 @@ __useblocks__.define("static/core/b408f33a.js", [
63
63
  const t = y(h.buildCdnFileUrl(e ?? {}, [])), r = y(l);
64
64
  if (!(!t || !r.startsWith(`${t}/`))) return r.slice(t.length + 1).split("/").filter(Boolean)[0];
65
65
  }
66
- function U(l, e = {}) {
66
+ function A(l, e = {}) {
67
67
  const t = e.projectId?.trim();
68
68
  if (!t) return !1;
69
69
  const r = h.unwrapResourceProxyUrl(l, e.appConfig, e.isStandalone);
70
70
  return h.isCdnUrl(r, e.appConfig) ? C(r, e.appConfig) === t : !1;
71
71
  }
72
- function A(l, e = {}) {
72
+ function k(l, e = {}) {
73
73
  return h.unwrapResourceProxyUrl(l, e.appConfig, e.isStandalone);
74
74
  }
75
- var w = 2e3, b = 30, k = w * b;
76
- function M(l) {
75
+ var w = 2e3, b = 30, M = w * b;
76
+ function O(l) {
77
77
  return typeof l?.watchThumbnail == "function";
78
78
  }
79
79
  var j = 200, T = {
@@ -87,7 +87,7 @@ __useblocks__.define("static/core/b408f33a.js", [
87
87
  too_many_requests: "RateLimitExceeded",
88
88
  service_unavailable: "ServiceUnavailable",
89
89
  internal_error: "BackendError"
90
- }, O = {
90
+ }, U = {
91
91
  file: {
92
92
  not_found: "FileNotFound",
93
93
  conflict: "FileAlreadyExists"
@@ -115,7 +115,7 @@ __useblocks__.define("static/core/b408f33a.js", [
115
115
  var x = class m {
116
116
  pathMode = !1;
117
117
  rootId = "";
118
- trashPath = f.Us;
118
+ trashPath = f.Ds;
119
119
  useSoftDelete = !1;
120
120
  api;
121
121
  projectId;
@@ -127,13 +127,13 @@ __useblocks__.define("static/core/b408f33a.js", [
127
127
  thumbWatchers = new Map();
128
128
  resolveSystemFolderByPath;
129
129
  constructor(e) {
130
- this.api = e.restApi, this.projectId = e.projectId, this.i18n = e.i18n ?? P.defaultI18nContext, this.appConfig = e.appConfig, this.isStandalone = e.isStandalone, this.onIndexingStateChange = e.onIndexingStateChange, this.resolveSystemFolderByPath = f.Bs({ Trash: {
131
- id: f.Us,
130
+ this.api = e.restApi, this.projectId = e.projectId, this.i18n = e.i18n ?? P.defaultI18nContext, this.appConfig = e.appConfig, this.isStandalone = e.isStandalone, this.onIndexingStateChange = e.onIndexingStateChange, this.resolveSystemFolderByPath = f.qs({ Trash: {
131
+ id: f.Ds,
132
132
  folderId: this.rootId
133
133
  } });
134
134
  }
135
135
  async getItems(e) {
136
- const t = e.folderId === f.Us;
136
+ const t = e.folderId === f.Ds;
137
137
  if (e.itemType === "folder") return { items: await this.listFolders(e.folderId, t) };
138
138
  const r = e.itemType === "all" && (e.page ?? 1) <= 1, [s, a] = await Promise.all([r ? this.listFolders(e.folderId, t, e.search) : [], this.listFiles(e, t)]);
139
139
  return {
@@ -188,7 +188,7 @@ __useblocks__.define("static/core/b408f33a.js", [
188
188
  throw i;
189
189
  }
190
190
  this.onIndexingStateChange?.(!!a.data.indexing);
191
- const n = t ? f.Us : this.normalizeFolderId(e.folderId) ?? this.rootId;
191
+ const n = t ? f.Ds : this.normalizeFolderId(e.folderId) ?? this.rootId;
192
192
  return {
193
193
  items: (a.data.data ?? []).map((i) => this.mapFile(i, n)),
194
194
  pagination: this.mapPagination(a.data.page, r)
@@ -433,7 +433,7 @@ __useblocks__.define("static/core/b408f33a.js", [
433
433
  success: !0,
434
434
  detailed: []
435
435
  };
436
- const r = e.filter((i) => i.folderId === f.Us), s = e.filter((i) => i.folderId !== f.Us), a = [];
436
+ const r = e.filter((i) => i.folderId === f.Ds), s = e.filter((i) => i.folderId !== f.Ds), a = [];
437
437
  if (r.length > 0) {
438
438
  const i = await this.api.trash.restoreCreate({
439
439
  project_id: this.projectId,
@@ -499,8 +499,8 @@ __useblocks__.define("static/core/b408f33a.js", [
499
499
  isStandalone: this.isStandalone,
500
500
  projectId: this.projectId
501
501
  };
502
- if (!U(e, r)) return;
503
- const s = A(e, r), a = S.decodeFileNameFromUrl(s);
502
+ if (!A(e, r)) return;
503
+ const s = k(e, r), a = S.decodeFileNameFromUrl(s);
504
504
  if (!a) return;
505
505
  const { items: n } = await this.listFiles({
506
506
  folderId: t,
@@ -557,7 +557,7 @@ __useblocks__.define("static/core/b408f33a.js", [
557
557
  return;
558
558
  }
559
559
  const t = e.created_at ? new Date(e.created_at).getTime() : NaN;
560
- Number.isFinite(t) && Date.now() - t < k ? this.pendingThumbnails.set(e.url, e.id) : this.pendingThumbnails.delete(e.url);
560
+ Number.isFinite(t) && Date.now() - t < M ? this.pendingThumbnails.set(e.url, e.id) : this.pendingThumbnails.delete(e.url);
561
561
  }
562
562
  watchThumbnail(e, t) {
563
563
  const r = this.pendingThumbnails.get(e);
@@ -618,7 +618,7 @@ __useblocks__.define("static/core/b408f33a.js", [
618
618
  }
619
619
  assertOk(e, t) {
620
620
  if (e.ok && !e.error) return;
621
- const { __: r } = this.i18n, s = e.error?.error, a = (s?.code && t ? O[t][s.code] : void 0) ?? (s?.code ? T[s.code] : void 0) ?? v(e.status);
621
+ const { __: r } = this.i18n, s = e.error?.error, a = (s?.code && t ? U[t][s.code] : void 0) ?? (s?.code ? T[s.code] : void 0) ?? v(e.status);
622
622
  throw new c(s?.message || r("Unknown error"), a, e.status);
623
623
  }
624
624
  static isNotFound(e) {
@@ -649,7 +649,7 @@ __useblocks__.define("static/core/b408f33a.js", [
649
649
  }), Object.defineProperty(F, "hasThumbnailWatcher", {
650
650
  enumerable: !0,
651
651
  get: function() {
652
- return M;
652
+ return O;
653
653
  }
654
654
  });
655
655
  });
@@ -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,
@@ -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 f(t) {
37
37
  return `service_container_${t}`;
38
38
  }
39
- var T = class h extends f {
39
+ var D = 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 = f(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((u) => u !== 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 = f(e);
94
+ let i;
95
+ this.injectFactory(s, (u, c = []) => (i = r(u, i), i === void 0 ? c : c.indexOf(i) < 0 ? [...c, i] : c), n);
96
+ const o = new d();
97
+ return o.addDispose(() => {
98
+ this.injectFactory(s, (u, c = []) => i === void 0 ? c : c.filter((T) => T !== i));
99
+ }), o;
100
100
  }
101
101
  getServices(e) {
102
- const r = p(e);
102
+ const r = f(e);
103
103
  return [...this.getInstance(r, !1) || [], ...this._parent?.getServices(e) || []];
104
104
  }
105
105
  createChild() {
@@ -115,101 +115,82 @@ 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
126
  function C(t) {
127
127
  return t != null && typeof t == "object" && typeof t.inject == "function" && typeof t.getInstance == "function";
128
128
  }
129
129
  function x(t) {
130
- if (t) return g(t);
131
- return g("useblocks".trim());
130
+ if (t) return p(t);
131
+ return p("useblocks".trim());
132
132
  }
133
- function S(t) {
133
+ function y(t) {
134
134
  const e = A(x(t));
135
135
  if (C(e.container)) return e.container;
136
- const r = new T(null);
136
+ const r = new D(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
- function m() {
142
+ function N() {
143
143
  let t = (/* @__PURE__ */ new Date()).getTime(), e = typeof performance < "u" && performance.now && performance.now() * 1e3 || 0;
144
144
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(r) {
145
145
  let n = Math.random() * 16;
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() {
150
- return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : m();
149
+ function m() {
150
+ return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : N();
151
151
  }
152
- function a(t = w()) {
152
+ function a(t = m()) {
153
153
  return t;
154
154
  }
155
155
  function I() {
156
156
  return "esm".trim();
157
157
  }
158
- function N(t) {
158
+ function R(t) {
159
159
  if (typeof globalThis > "u") return;
160
160
  const e = I(), 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 b() {
176
173
  return `__${"useblocks".trim()}__`;
177
174
  }
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 || {
181
- entries: [],
182
- warnings: []
183
- }, u = {
175
+ function M(t, e) {
176
+ if (R(e), typeof globalThis > "u") return t;
177
+ const r = I(), n = globalThis, s = n[e] = n[e] || {}, i = s.__diagnostics = s.__diagnostics || {}, o = i.dependencyResolver = i.dependencyResolver || { entries: [] }, u = {
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(u), t;
204
185
  }
205
186
  var _;
206
- function M() {
187
+ function w() {
207
188
  if (_) return _;
208
- const t = R();
209
- return _ = b(S(t), t), _;
189
+ const t = b();
190
+ return _ = M(y(t), t), _;
210
191
  }
211
192
  new Proxy({}, { get(t, e, r) {
212
- const n = M(), s = Reflect.get(n, e, r);
193
+ const n = w(), s = Reflect.get(n, e, r);
213
194
  return typeof s == "function" ? s.bind(n) : s;
214
195
  } });
215
196
  function L(t, e = "BackendError") {
@@ -400,7 +381,7 @@ l("SETTINGS_PANEL_EVENT");
400
381
  l("MODAL_SHOW_EVENT");
401
382
  l("MODAL_CLOSE_EVENT");
402
383
  l("MODAL_UPDATE_EVENT");
403
- var oe = /* @__PURE__ */ v({ FileManagerApiError: () => V }), V = class D extends Error {
384
+ var oe = /* @__PURE__ */ E({ FileManagerApiError: () => V }), V = class S 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, S);
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
+ }, ae = /* @__PURE__ */ E({ mapHttpStatusToErrorCode: () => L });
395
+ export { d as a, a as i, oe as n, G as r, ae as t };
@@ -1,4 +1,4 @@
1
- import { a as P, i as I } from "./d180c108.js";
1
+ import { a as P, i as I } from "./3cde7cb6.js";
2
2
  import "useblocks/runtime/react";
3
3
  function i(o) {
4
4
  if (o instanceof DOMException && o.name === "AbortError") return o;
@@ -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?1279854f"></script>
7
7
  <style>
8
8
  body {
9
9
  margin: 0;
@@ -3,16 +3,16 @@ __useblocks__.define("core", [
3
3
  "exports",
4
4
  "module",
5
5
  "static/core/bd36b180.js",
6
- "static/core/ee0ddb51.js",
7
- "static/core/c3058168.js",
8
- "static/core/5318562c.js"
6
+ "static/core/b9bb2c5f.js",
7
+ "static/core/289ba982.js",
8
+ "static/core/4d493eba.js"
9
9
  ], function(f, E, he) {
10
10
  Object.defineProperties(E, {
11
11
  __esModule: { value: !0 },
12
12
  [Symbol.toStringTag]: { value: "Module" }
13
13
  });
14
14
  f("./static/core/bd36b180.js");
15
- const n = f("./static/core/ee0ddb51.js"), c = f("./static/core/c3058168.js"), h = f("./static/core/5318562c.js");
15
+ const n = f("./static/core/b9bb2c5f.js"), c = f("./static/core/289ba982.js"), h = f("./static/core/4d493eba.js");
16
16
  var L = "Editor instance was destroyed and cannot be reused. A fresh instance will be created instead.";
17
17
  function O() {
18
18
  const e = new Error(L);
@@ -499,7 +499,7 @@ __useblocks__.define("core", [
499
499
  P
500
500
  ];
501
501
  async function Q() {
502
- return (await Promise.resolve().then(() => f("./static/core/d1eb3c68.js"))).default;
502
+ return (await Promise.resolve().then(() => f("./static/core/12a9aa4e.js"))).default;
503
503
  }
504
504
  var Z = (e) => {
505
505
  let t = null, r = !1;
@@ -639,5 +639,5 @@ __useblocks__.define("core", [
639
639
  ampHtml: r
640
640
  };
641
641
  }
642
- E.init = oe, E.parseAMP = ae, E.version = "1.1.53";
642
+ E.init = oe, E.parseAMP = ae, E.version = "1.1.56";
643
643
  });