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.
- package/iframe/js/amp.BP7EklKo.js +1 -1
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.4N5s3OV-.js +1 -1
- package/npm-publish.manifest.json +7 -7
- package/package.json +1 -7
- package/runtime/THIRD_PARTY_LICENSES.txt +0 -235
- package/runtime/index.js +0 -2
- package/runtime/package.json +0 -6
- package/runtime/plugin-dev-manifest.json +0 -4
- package/singlepage_headless_plugin.html +1 -1
- package/static/core/{5318562c.js → 161d1254.js} +268 -257
- package/static/core/{b9f47840.js → 17d3ee0b.js} +8 -8
- package/static/core/{6895dd352.js → 195ca4a32.js} +15 -15
- package/static/core/{dc1f9e4f.js → 2569fac8.js} +26 -26
- package/static/core/{4ca527032.js → 26ddf93e2.js} +2 -2
- package/static/core/{9929a348.js → 30c5fe5f.js} +90 -90
- package/static/core/{e93d55b92.js → 3af8f3592.js} +4 -4
- package/static/core/{ebd852b6.js → 40f73dfb.js} +1019 -1032
- package/static/core/{c3058168.js → 43c3f160.js} +3283 -3189
- package/static/core/{542ea53f2.js → 4a27bba92.js} +8 -8
- package/static/core/4c39852e.js +3150 -0
- package/static/core/{e5e07f1d.js → 4e75b331.js} +13 -13
- package/static/core/{e1d239ab.js → 5345bef8.js} +42 -42
- package/static/core/{31e98e6e.js → 53463a60.js} +707 -712
- package/static/core/{27544e7e.js → 581ce428.js} +37 -19
- package/static/core/{d8daf1142.js → 6156301b2.js} +3 -3
- package/static/core/{c3849484.js → 64bea1a9.js} +5 -5
- package/static/core/{ce4fc17f2.js → 680236f4.js} +1 -1
- package/static/core/{4b75d16c2.js → 687795b52.js} +4 -4
- package/static/core/{70407ac0.js → 72f86b2d.js} +3 -3
- package/static/core/{139e4380.js → 7a15fa8b.js} +3 -3
- package/static/core/{b77f0769.js → 8432f11e.js} +5 -5
- package/static/core/{d1eb3c68.js → 8815eb5b.js} +15670 -15289
- package/static/core/{f3cff4c9.js → 8a496b64.js} +158 -158
- package/static/core/{4e1b970f.js → 8ba13f332.js} +1 -1
- package/static/core/{75737a9d.js → 951903fb.js} +9096 -9074
- package/static/core/{a95c02bb.js → a1355a35.js} +5 -5
- package/static/core/{7c6fb2162.js → a36c3ab62.js} +3 -3
- package/static/core/{2da1d66b.js → abd3f34c.js} +5 -5
- package/static/core/{528ad9282.js → ae20f0992.js} +16 -16
- package/static/core/ba6c356e.js +466 -0
- package/static/core/{ee0ddb51.js → c9e59b34.js} +6884 -4960
- package/static/core/{f96d2049.js → d1a1d4902.js} +1 -1
- package/static/core/{5b48fd69.js → d8d6485e.js} +5 -5
- package/static/core/{59e92cc3.js → d9398296.js} +5 -5
- package/static/core/{b408f33a.js → d9baa55e.js} +25 -25
- package/static/core/dbf19c2e.js +811 -0
- package/static/core/{bc7e3d2b.js → f953827c.js} +10 -10
- package/static/core/{1e5bf73c.js → ffee9a77.js} +7 -7
- package/static/esm/2474de05.js +131 -0
- package/static/esm/{d180c108.js → 53b688bd.js} +66 -85
- package/two_step_headless_plugin.html +1 -1
- package/useblocks-core.f6bb8947.js +673 -0
- package/useblocks-esm.js +875 -552
- package/useblocks.d.ts +8 -0
- package/useblocks.js +691 -408
- package/runtime/prop-types/index.js +0 -4
- package/runtime/react-router-dom/index.js +0 -2
- package/static/core/1995fb0a2.js +0 -602
- package/static/core/1f5e1fc9.js +0 -3097
- package/static/core/ce0410b1.js +0 -467
- package/static/esm/448d4bb0.js +0 -127
- package/static/runtime/dom-export-CHgQ7Ws9.js +0 -8069
- package/static/runtime/prop-types-p_yYKrF7.js +0 -47
- package/useblocks-core.2a5dade1.js +0 -643
- /package/iframe/{iframe-eblock.2a5dade1.html → iframe-eblock.f6bb8947.html} +0 -0
- /package/iframe/{iframe.2a5dade1.html → iframe.f6bb8947.html} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
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
|
|
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
|
-
|
|
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
|
|
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:
|
|
124
|
+
Pagination: b,
|
|
125
125
|
DatePicker: n,
|
|
126
126
|
TimePicker: m,
|
|
127
127
|
Calendar: h,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
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
|
|
10
|
-
var
|
|
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({},
|
|
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:
|
|
134
|
+
Pagination: d,
|
|
135
135
|
DatePicker: m,
|
|
136
136
|
TimePicker: s,
|
|
137
137
|
Calendar: y,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/d9baa55e.js", [
|
|
2
2
|
"require",
|
|
3
3
|
"exports",
|
|
4
4
|
"module",
|
|
5
|
-
"static/core/
|
|
6
|
-
"static/core/
|
|
7
|
-
"static/core/
|
|
8
|
-
"static/core/
|
|
9
|
-
"static/core/
|
|
10
|
-
], function(g, F,
|
|
11
|
-
const h = g("./
|
|
12
|
-
g("./
|
|
5
|
+
"static/core/c9e59b34.js",
|
|
6
|
+
"static/core/161d1254.js",
|
|
7
|
+
"static/core/40f73dfb.js",
|
|
8
|
+
"static/core/951903fb.js",
|
|
9
|
+
"static/core/dbf19c2e.js"
|
|
10
|
+
], function(g, F, N) {
|
|
11
|
+
const h = g("./c9e59b34.js"), S = g("./161d1254.js"), P = g("./40f73dfb.js"), f = g("./951903fb.js");
|
|
12
|
+
g("./dbf19c2e.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
|
|
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
|
|
72
|
+
function k(l, e = {}) {
|
|
73
73
|
return h.unwrapResourceProxyUrl(l, e.appConfig, e.isStandalone);
|
|
74
74
|
}
|
|
75
|
-
var w = 2e3, b = 30,
|
|
76
|
-
function
|
|
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
|
-
},
|
|
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.
|
|
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.
|
|
131
|
-
id: f.
|
|
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.
|
|
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.
|
|
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.
|
|
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 (!
|
|
503
|
-
const 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 <
|
|
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 ?
|
|
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
|
|
652
|
+
return O;
|
|
653
653
|
}
|
|
654
654
|
});
|
|
655
655
|
});
|