useblocks 1.1.72 → 1.1.84
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/CHANGELOG.md +461 -0
- package/README.md +55 -6
- package/iframe/css/sandbox-dark.css +1 -1
- package/iframe/css/sandbox-darktheme.css +3 -3
- package/iframe/css/sandbox-light.css +1 -1
- package/iframe/css/sandbox.css +2 -2
- package/iframe/js/amp.D1dkO3ub.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/package.json +30 -9
- package/static/core/{842c8d41.js → 16c7408a.js} +4 -4
- package/static/core/{dd94baa62.js → 278c19282.js} +1208 -1127
- package/static/core/27b7d154.js +1098 -0
- package/static/core/{585259872.js → 7877b5712.js} +41 -41
- package/static/core/{ffc83e02.js → 86acf537.js} +7 -7
- package/static/core/{e02024fb2.js → 95074b4e2.js} +58 -58
- package/static/core/{ce9be2ec2.js → 9a1229572.js} +2155 -2090
- package/static/core/{b7c107e3.js → ab3c035c.js} +15 -15
- package/static/core/{d082c64e2.js → b8fa83f82.js} +2490 -2229
- package/static/core/{bfab4558.js → bb8665a8.js} +3551 -3153
- package/static/core/{513594a8.js → c013e7cc.js} +72 -72
- package/static/core/{efbe495c.js → c871702e.js} +2403 -2548
- package/static/core/cf26b064.js +3280 -0
- package/static/core/{d645302e.js → d15a988b.js} +272 -248
- package/static/core/{24c3f399.js → d4962564.js} +3 -3
- package/static/core/dc948de7.js +2134 -0
- package/static/core/{5e082e16.js → e9b6fbb9.js} +48 -48
- package/static/core/{d19e8c6f.js → ec6e74e5.js} +22978 -19773
- package/static/umd-runtime/{n8zqoGYh.js → D80ABE1O.js} +7 -1
- package/static/umd-runtime/runtime.js +2 -2
- package/static/umd-runtime/ui-kit.js +1704 -1628
- package/ui-kit/index.js +1390 -1310
- package/{useblocks-core.8837a348.js → useblocks-core.2fa005e8.js} +6 -6
- package/useblocks-esm.js +4 -4
- package/{useblocks-po.8837a348.js → useblocks-po.2fa005e8.js} +1 -1
- package/useblocks.d.ts +55 -24
- package/useblocks.js +3 -3
- package/favicon-b.ico +0 -0
- package/favicon.ico +0 -0
- package/fonts/SegoeUI-Bold.woff2 +0 -0
- package/fonts/SegoeUI-Semibold.woff2 +0 -0
- package/fonts/SegoeUI.woff2 +0 -0
- package/iframe/js/amp.DllX-Im0.js +0 -1
- package/js/amplitude.min.js +0 -10859
- package/js/sourcebuster.min.js +0 -672
- package/manifest.json +0 -17
- package/npm-publish.manifest.json +0 -51
- package/static/core/241f0387.js +0 -3189
- package/static/core/45b5e246.js +0 -925
- package/static/core/9bcb736c.js +0 -2122
- package/static/media/image-editor/images/samples/large_sample.jpg +0 -0
- package/static/media/image-editor/images/samples/sample1.jpg +0 -0
- package/static/media/image-editor/images/samples/sample1_thumbnail.jpg +0 -0
- package/static/media/image-editor/images/samples/sample2.jpg +0 -0
- package/static/media/image-editor/images/samples/sample2_thumbnail.jpg +0 -0
- package/static/media/image-editor/images/samples/sample3.jpg +0 -0
- package/static/media/image-editor/images/samples/sample3_thumbnail.jpg +0 -0
- package/static/media/image-editor/images/samples/sample4.json +0 -871
- package/static/media/image-editor/images/samples/sample4_preview.jpg +0 -0
- package/test-font.otf +0 -0
- package/test-font.ttf +0 -0
- package/test-font.woff2 +0 -0
- package/tsconfig.json +0 -14
- package/two_step_headless_plugin.html +0 -558
- /package/iframe/{iframe-eblock.8837a348.html → iframe-eblock.2fa005e8.html} +0 -0
- /package/iframe/{iframe.8837a348.html → iframe.2fa005e8.html} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
__useblocks__.define("static/core/
|
|
1
|
+
__useblocks__.define("static/core/ab3c035c.js", [
|
|
2
2
|
"require",
|
|
3
3
|
"exports",
|
|
4
4
|
"module",
|
|
5
|
-
"static/core/
|
|
6
|
-
"static/core/
|
|
7
|
-
"static/core/
|
|
8
|
-
"static/core/
|
|
9
|
-
], function(_, I,
|
|
10
|
-
const h = _("./
|
|
5
|
+
"static/core/bb8665a8.js",
|
|
6
|
+
"static/core/27b7d154.js",
|
|
7
|
+
"static/core/278c19282.js",
|
|
8
|
+
"static/core/b8fa83f82.js"
|
|
9
|
+
], function(_, I, z) {
|
|
10
|
+
const h = _("./bb8665a8.js"), P = _("./27b7d154.js"), S = _("./278c19282.js"), f = _("./b8fa83f82.js");
|
|
11
11
|
var F;
|
|
12
12
|
(function(d) {
|
|
13
13
|
function e(a, i, n = (s, o) => s === o) {
|
|
@@ -133,10 +133,10 @@ __useblocks__.define("static/core/b7c107e3.js", [
|
|
|
133
133
|
function O(d) {
|
|
134
134
|
return typeof d?.watchThumbnail == "function";
|
|
135
135
|
}
|
|
136
|
-
var T = 200,
|
|
136
|
+
var T = 200, N = class m {
|
|
137
137
|
pathMode = !1;
|
|
138
138
|
rootId = "";
|
|
139
|
-
trashPath = f.
|
|
139
|
+
trashPath = f.Yi;
|
|
140
140
|
useSoftDelete = !1;
|
|
141
141
|
api;
|
|
142
142
|
projectId;
|
|
@@ -148,13 +148,13 @@ __useblocks__.define("static/core/b7c107e3.js", [
|
|
|
148
148
|
thumbWatchers = new Map();
|
|
149
149
|
resolveSystemFolderByPath;
|
|
150
150
|
constructor(e) {
|
|
151
|
-
this.api = e.restApi, this.projectId = e.projectId, this.i18n = e.i18n ?? S.defaultI18nContext, this.appConfig = e.appConfig, this.isStandalone = e.isStandalone, this.onIndexingStateChange = e.onIndexingStateChange, this.resolveSystemFolderByPath = f.
|
|
152
|
-
id: f.
|
|
151
|
+
this.api = e.restApi, this.projectId = e.projectId, this.i18n = e.i18n ?? S.defaultI18nContext, this.appConfig = e.appConfig, this.isStandalone = e.isStandalone, this.onIndexingStateChange = e.onIndexingStateChange, this.resolveSystemFolderByPath = f.Qi({ Trash: {
|
|
152
|
+
id: f.Yi,
|
|
153
153
|
folderId: this.rootId
|
|
154
154
|
} });
|
|
155
155
|
}
|
|
156
156
|
async getItems(e) {
|
|
157
|
-
const t = e.folderId === f.
|
|
157
|
+
const t = e.folderId === f.Yi;
|
|
158
158
|
if (e.itemType === "folder") return { items: await this.listFolders(e.folderId, t) };
|
|
159
159
|
const r = e.itemType === "all" && (e.page ?? 1) <= 1, [a, i] = await Promise.all([r ? this.listFolders(e.folderId, t, e.search) : [], this.listFiles(e, t)]);
|
|
160
160
|
return {
|
|
@@ -209,7 +209,7 @@ __useblocks__.define("static/core/b7c107e3.js", [
|
|
|
209
209
|
throw s;
|
|
210
210
|
}
|
|
211
211
|
this.onIndexingStateChange?.(!!i.data.indexing);
|
|
212
|
-
const n = t ? f.
|
|
212
|
+
const n = t ? f.Yi : this.normalizeFolderId(e.folderId) ?? this.rootId;
|
|
213
213
|
return {
|
|
214
214
|
items: (i.data.data ?? []).map((s) => this.mapFile(s, n)),
|
|
215
215
|
pagination: this.mapPagination(i.data.page, r)
|
|
@@ -454,7 +454,7 @@ __useblocks__.define("static/core/b7c107e3.js", [
|
|
|
454
454
|
success: !0,
|
|
455
455
|
detailed: []
|
|
456
456
|
};
|
|
457
|
-
const r = e.filter((s) => s.folderId === f.
|
|
457
|
+
const r = e.filter((s) => s.folderId === f.Yi), a = e.filter((s) => s.folderId !== f.Yi), i = [];
|
|
458
458
|
if (r.length > 0) {
|
|
459
459
|
const s = await this.api.trash.restoreCreate({
|
|
460
460
|
project_id: this.projectId,
|
|
@@ -660,7 +660,7 @@ __useblocks__.define("static/core/b7c107e3.js", [
|
|
|
660
660
|
}), Object.defineProperty(I, "FileManagerRestApiProviderV2", {
|
|
661
661
|
enumerable: !0,
|
|
662
662
|
get: function() {
|
|
663
|
-
return
|
|
663
|
+
return N;
|
|
664
664
|
}
|
|
665
665
|
}), Object.defineProperty(I, "arrays", {
|
|
666
666
|
enumerable: !0,
|