useblocks 1.1.81 → 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 +35 -0
- package/README.md +17 -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 +1 -1
- package/static/core/{dfbad00e.js → 16c7408a.js} +4 -4
- package/static/core/{909c874d2.js → 278c19282.js} +982 -974
- package/static/core/{87de8255.js → 27b7d154.js} +3 -3
- package/static/core/{cc4c61c42.js → 7877b5712.js} +135 -135
- package/static/core/{ace7c2d1.js → 86acf537.js} +7 -7
- package/static/core/{6fc5508e2.js → 95074b4e2.js} +53 -53
- package/static/core/{f2b0c97b2.js → 9a1229572.js} +849 -836
- package/static/core/{6a3ea43c.js → ab3c035c.js} +6 -6
- package/static/core/{496a28e52.js → b8fa83f82.js} +562 -562
- package/static/core/{7cff1d56.js → bb8665a8.js} +77 -4
- package/static/core/{fc514220.js → c013e7cc.js} +73 -73
- package/static/core/{5cc21a00.js → c871702e.js} +608 -603
- package/static/core/{4296ff4b.js → cf26b064.js} +240 -240
- package/static/core/{d2293148.js → d15a988b.js} +7 -7
- package/static/core/{f7e3905a.js → d4962564.js} +3 -3
- package/static/core/{1ab52017.js → dc948de7.js} +7 -7
- package/static/core/{c287f8b6.js → e9b6fbb9.js} +36 -36
- package/static/core/{d70b5c31.js → ec6e74e5.js} +12965 -12545
- 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 +1742 -1734
- package/ui-kit/index.js +1859 -1851
- package/{useblocks-core.0a682f7d.js → useblocks-core.2fa005e8.js} +6 -6
- package/useblocks-esm.js +4 -4
- package/{useblocks-po.0a682f7d.js → useblocks-po.2fa005e8.js} +1 -1
- package/useblocks.d.ts +51 -24
- package/useblocks.js +3 -3
- package/iframe/js/amp.Da_6yDxX.js +0 -1
- /package/iframe/{iframe-eblock.0a682f7d.html → iframe-eblock.2fa005e8.html} +0 -0
- /package/iframe/{iframe.0a682f7d.html → iframe.2fa005e8.html} +0 -0
|
@@ -3,16 +3,16 @@ __useblocks__.define("core", [
|
|
|
3
3
|
"exports",
|
|
4
4
|
"module",
|
|
5
5
|
"static/core/df237243.js",
|
|
6
|
-
"static/core/
|
|
7
|
-
"static/core/
|
|
8
|
-
"static/core/
|
|
6
|
+
"static/core/bb8665a8.js",
|
|
7
|
+
"static/core/c871702e.js",
|
|
8
|
+
"static/core/27b7d154.js"
|
|
9
9
|
], function(f, E, Se) {
|
|
10
10
|
Object.defineProperties(E, {
|
|
11
11
|
__esModule: { value: !0 },
|
|
12
12
|
[Symbol.toStringTag]: { value: "Module" }
|
|
13
13
|
});
|
|
14
14
|
f("./static/core/df237243.js");
|
|
15
|
-
const n = f("./static/core/
|
|
15
|
+
const n = f("./static/core/bb8665a8.js"), l = f("./static/core/c871702e.js"), S = f("./static/core/27b7d154.js");
|
|
16
16
|
var A = "Editor instance was destroyed and cannot be reused. A fresh instance will be created instead.";
|
|
17
17
|
function w() {
|
|
18
18
|
const e = new Error(A);
|
|
@@ -534,7 +534,7 @@ __useblocks__.define("core", [
|
|
|
534
534
|
R
|
|
535
535
|
];
|
|
536
536
|
async function Z() {
|
|
537
|
-
return (await Promise.resolve().then(() => f("./static/core/
|
|
537
|
+
return (await Promise.resolve().then(() => f("./static/core/ec6e74e5.js"))).default;
|
|
538
538
|
}
|
|
539
539
|
var ee = (e) => {
|
|
540
540
|
let t = null, o = !1;
|
|
@@ -669,5 +669,5 @@ __useblocks__.define("core", [
|
|
|
669
669
|
ampHtml: o
|
|
670
670
|
};
|
|
671
671
|
}
|
|
672
|
-
E.init = ae, E.parseAMP = le, E.version = "1.1.
|
|
672
|
+
E.init = ae, E.parseAMP = le, E.version = "1.1.84";
|
|
673
673
|
});
|
package/useblocks-esm.js
CHANGED
|
@@ -76,7 +76,7 @@ import { a as b, i as ke, n as Ue, r as J, t as _ } from "./static/esm/2474de05.
|
|
|
76
76
|
} catch {
|
|
77
77
|
return y.slice(-1) !== "/" && (y += "/"), t(y + m);
|
|
78
78
|
}
|
|
79
|
-
}), e.version || (e.version = "1.1.
|
|
79
|
+
}), e.version || (e.version = "1.1.84");
|
|
80
80
|
var n = e.modules = /* @__PURE__ */ Object.create(null), r = import("./runtime/index.js"), c = import("./ui-kit/index.js");
|
|
81
81
|
n.React = r.then(function(o) {
|
|
82
82
|
return o.React;
|
|
@@ -786,8 +786,8 @@ import { a as b, i as ke, n as Ue, r as J, t as _ } from "./static/esm/2474de05.
|
|
|
786
786
|
`)(e), typeof e.require == "function" && typeof e.require.config == "function" && e.require.config({
|
|
787
787
|
baseUrl: "./",
|
|
788
788
|
paths: {
|
|
789
|
-
core: "useblocks-core.
|
|
790
|
-
po: "useblocks-po.
|
|
789
|
+
core: "useblocks-core.2fa005e8.js",
|
|
790
|
+
po: "useblocks-po.2fa005e8.js"
|
|
791
791
|
}
|
|
792
792
|
});
|
|
793
793
|
var p = typeof e.prefetch == "function" ? e.prefetch : void 0;
|
|
@@ -1761,7 +1761,7 @@ function N(e, ...n) {
|
|
|
1761
1761
|
const r = _.get(e);
|
|
1762
1762
|
n.some((c) => c !== void 0 && c === r) && _.delete(e);
|
|
1763
1763
|
}
|
|
1764
|
-
var Er = "1.1.
|
|
1764
|
+
var Er = "1.1.84";
|
|
1765
1765
|
async function Ir(e) {
|
|
1766
1766
|
await le(typeof window.__useblocks__ < "u" ? window.__useblocks__ : void 0);
|
|
1767
1767
|
}
|
package/useblocks.d.ts
CHANGED
|
@@ -827,7 +827,12 @@ export declare namespace ExportedApi {
|
|
|
827
827
|
}
|
|
828
828
|
export declare namespace ExportedApi {
|
|
829
829
|
export type CodeModeDirection = 'none' | 'left' | 'right' | 'bottom';
|
|
830
|
-
|
|
830
|
+
/**
|
|
831
|
+
* UI locale. The listed codes are the ones shipped with catalogs; any other string is
|
|
832
|
+
* accepted on purpose, so an integrator can serve a catalog of its own through the
|
|
833
|
+
* `readLocale` event. An unknown locale falls back to the English source strings.
|
|
834
|
+
*/
|
|
835
|
+
export type Locale = 'en_US' | 'ru_RU' | 'uk' | 'es_ES' | 'pt_BR' | 'de_DE' | 'fr_FR' | 'it_IT' | 'pl_PL' | (string & {});
|
|
831
836
|
export type ConfigMods = 'pro' | 'editor' | 'simple' | 'freeUserBlocks';
|
|
832
837
|
/** Declared merge-tag delimiters (**`syntax`**) and hierarchical items for picker UI. */
|
|
833
838
|
export interface MergeTagsInfo {
|
|
@@ -1052,6 +1057,8 @@ export declare namespace ExportedApi {
|
|
|
1052
1057
|
optimizeEnabled: boolean;
|
|
1053
1058
|
/** Global settings panel in sidebar. */
|
|
1054
1059
|
settingsEnabled: boolean;
|
|
1060
|
+
/** Settings tab inside the settings panel; the UTM and Annotations tabs stay available when it is off. */
|
|
1061
|
+
settingsTabEnabled: boolean;
|
|
1055
1062
|
/** UTM parameters section in sidebar. */
|
|
1056
1063
|
UTMEnabled: boolean;
|
|
1057
1064
|
/** Gmail Promo Tab Annotations section in sidebar. */
|
|
@@ -1174,13 +1181,21 @@ export declare namespace ExportedApi {
|
|
|
1174
1181
|
imageCenterIconStockEnabled: boolean;
|
|
1175
1182
|
/** Built-in image crop / edit step in Image Center. */
|
|
1176
1183
|
imageCenterEditorEnabled: boolean;
|
|
1177
|
-
/**
|
|
1184
|
+
/**
|
|
1185
|
+
* Target weight of an image after client-side compression, in **megabytes** (not bytes):
|
|
1186
|
+
* the value goes to the compressor as `maxSizeMB`. `0` disables compression. Default `0.48`.
|
|
1187
|
+
* Governs editor uploads (canvas drop, image modal, HTML import); inside the file manager
|
|
1188
|
+
* {@link FileManagerOptions.compressMaxSize} takes precedence when set.
|
|
1189
|
+
*/
|
|
1178
1190
|
compressMaxSize: number;
|
|
1179
|
-
/**
|
|
1191
|
+
/**
|
|
1192
|
+
* Longest edge cap when resizing images for compression (pixels). `0` disables compression. Default `2000`.
|
|
1193
|
+
* Same scope as {@link compressMaxSize}: {@link FileManagerOptions.compressMaxWidthOrHeight} wins inside the file manager.
|
|
1194
|
+
*/
|
|
1180
1195
|
compressMaxWidthOrHeight: number;
|
|
1181
1196
|
/** Monaco options for HTML/code editing surface. */
|
|
1182
1197
|
editor: EditorOptions;
|
|
1183
|
-
/** UI locale
|
|
1198
|
+
/** UI locale; see {@link Locale} for the codes shipped with catalogs. */
|
|
1184
1199
|
locale: Locale;
|
|
1185
1200
|
/** Placement of the code-mode panel relative to the canvas (`none` hides code split). */
|
|
1186
1201
|
codeModeDirection: CodeModeDirection;
|
|
@@ -1199,7 +1214,7 @@ export declare namespace ExportedApi {
|
|
|
1199
1214
|
testEmails?: string[];
|
|
1200
1215
|
/** Sidebar UI switch for alternate/simple configuration layout (persisted runtime key **`configSwither`**). */
|
|
1201
1216
|
configSwither?: boolean;
|
|
1202
|
-
/** Idle delay (ms) before autosave drafts / revisions fire; `undefined`/`0`
|
|
1217
|
+
/** Idle delay (ms) before autosave drafts / revisions fire; `undefined`/`0` fall back to 10000. */
|
|
1203
1218
|
autosaveTimeout?: number;
|
|
1204
1219
|
/** Max retry attempts after a retryable autosave failure (network / 5xx). Default 5. */
|
|
1205
1220
|
autosaveRetryMaxAttempts?: number;
|
|
@@ -2330,19 +2345,21 @@ export declare namespace ExportedApi {
|
|
|
2330
2345
|
}
|
|
2331
2346
|
export interface FileManagerOptions {
|
|
2332
2347
|
/**
|
|
2333
|
-
*
|
|
2334
|
-
* Set to 0
|
|
2335
|
-
* @
|
|
2348
|
+
* Target weight of an image after client-side compression, in megabytes (not bytes):
|
|
2349
|
+
* the compressor shrinks the image until it fits. Set to 0 to disable compression.
|
|
2350
|
+
* Overrides {@link Config.compressMaxSize} inside the file manager only; other editor
|
|
2351
|
+
* upload paths keep using the top-level value.
|
|
2352
|
+
* @default 0.48 (or `Config.compressMaxSize` when that one is set)
|
|
2336
2353
|
*/
|
|
2337
2354
|
compressMaxSize?: number;
|
|
2338
2355
|
/**
|
|
2339
2356
|
* Maximum width or height in pixels for client-side image compression. Images larger than this will be resized.
|
|
2340
|
-
* Set to 0
|
|
2341
|
-
* @default 2000
|
|
2357
|
+
* Set to 0 to disable compression. Overrides {@link Config.compressMaxWidthOrHeight} inside the file manager only.
|
|
2358
|
+
* @default 2000 (or `Config.compressMaxWidthOrHeight` when that one is set)
|
|
2342
2359
|
*/
|
|
2343
2360
|
compressMaxWidthOrHeight?: number;
|
|
2344
2361
|
/**
|
|
2345
|
-
*
|
|
2362
|
+
* Expands the root node of the folder tree on init (its children stay collapsed).
|
|
2346
2363
|
* @default true
|
|
2347
2364
|
*/
|
|
2348
2365
|
expandRootFolderOnInit?: boolean;
|
|
@@ -2354,7 +2371,7 @@ export declare namespace ExportedApi {
|
|
|
2354
2371
|
enableTrash?: boolean;
|
|
2355
2372
|
/**
|
|
2356
2373
|
* Enables paging in the file manager view.
|
|
2357
|
-
*
|
|
2374
|
+
* Set to `false` to disable paging and load all items at once.
|
|
2358
2375
|
* @default true
|
|
2359
2376
|
*/
|
|
2360
2377
|
enablePagination?: boolean;
|
|
@@ -2368,19 +2385,19 @@ export declare namespace ExportedApi {
|
|
|
2368
2385
|
unifiedCatalogFetch?: boolean;
|
|
2369
2386
|
/**
|
|
2370
2387
|
* Enables the ability to rename folders within the file manager.
|
|
2371
|
-
*
|
|
2388
|
+
* Set to `false` to disable renaming folders.
|
|
2372
2389
|
* @default true
|
|
2373
2390
|
*/
|
|
2374
2391
|
enableRenameFolder?: boolean;
|
|
2375
2392
|
/**
|
|
2376
2393
|
* Enables the ability to rename files within the file manager.
|
|
2377
|
-
*
|
|
2394
|
+
* Set to `false` to disable renaming files.
|
|
2378
2395
|
* @default true
|
|
2379
2396
|
*/
|
|
2380
2397
|
enableRenameFile?: boolean;
|
|
2381
2398
|
/**
|
|
2382
2399
|
* Enables the ability to update file metadata or content.
|
|
2383
|
-
*
|
|
2400
|
+
* Set to `false` to disable updating files.
|
|
2384
2401
|
* @default true
|
|
2385
2402
|
*/
|
|
2386
2403
|
enableUpdateFile?: boolean;
|
|
@@ -2391,14 +2408,14 @@ export declare namespace ExportedApi {
|
|
|
2391
2408
|
*/
|
|
2392
2409
|
enableEdit?: boolean;
|
|
2393
2410
|
/**
|
|
2394
|
-
* Enables
|
|
2395
|
-
* Allows
|
|
2411
|
+
* Enables moving files.
|
|
2412
|
+
* Allows relocating files to another folder.
|
|
2396
2413
|
* @default true
|
|
2397
2414
|
*/
|
|
2398
2415
|
enableMoveFile?: boolean;
|
|
2399
2416
|
/**
|
|
2400
|
-
* Enables
|
|
2401
|
-
* Allows
|
|
2417
|
+
* Enables moving folders.
|
|
2418
|
+
* Allows relocating folders to another parent.
|
|
2402
2419
|
* @default true
|
|
2403
2420
|
*/
|
|
2404
2421
|
enableMoveFolder?: boolean;
|
|
@@ -2421,7 +2438,7 @@ export declare namespace ExportedApi {
|
|
|
2421
2438
|
*/
|
|
2422
2439
|
enableDelete?: boolean;
|
|
2423
2440
|
/**
|
|
2424
|
-
*
|
|
2441
|
+
* Name prefilled in the "create folder" dialog. Blank or omitted falls back to a localized "New folder".
|
|
2425
2442
|
*/
|
|
2426
2443
|
defaultFolderName?: string;
|
|
2427
2444
|
/**
|
|
@@ -2438,17 +2455,27 @@ export declare namespace ExportedApi {
|
|
|
2438
2455
|
* @example ['date-desc', 'date-asc', 'name-asc', 'name-desc'] // omit size and type sorts
|
|
2439
2456
|
*/
|
|
2440
2457
|
sortOptions?: ('date-desc' | 'date-asc' | 'size-desc' | 'size-asc' | 'name-asc' | 'name-desc' | 'type-asc')[];
|
|
2441
|
-
|
|
2458
|
+
/**
|
|
2459
|
+
* Extensions listed in the "Supported files" hint under the empty-folder upload area,
|
|
2460
|
+
* rendered with a leading dot (`['jpg', 'png']` -> `.jpg, .png`). A caption only: it does
|
|
2461
|
+
* not restrict what can be uploaded or which files the list shows.
|
|
2462
|
+
* @default ['jpeg', 'svg', 'png']
|
|
2463
|
+
*/
|
|
2464
|
+
availableImageExtensions?: string[];
|
|
2465
|
+
/**
|
|
2442
2466
|
* When thumbnail/thumbnailUrl are missing, use `file.url` for table/grid preview (images only).
|
|
2443
2467
|
* Forwarded to FileManager `config` (@useblocks/filemanager).
|
|
2468
|
+
* @default true
|
|
2444
2469
|
*/
|
|
2445
2470
|
previewFallbackToFileUrl?: boolean;
|
|
2446
2471
|
/**
|
|
2447
2472
|
* Client-side deduplication of upload names and related flows (see @useblocks/filemanager `Config`).
|
|
2473
|
+
* @default false
|
|
2448
2474
|
*/
|
|
2449
2475
|
dedupeUploadNamesOnClient?: boolean;
|
|
2450
2476
|
/**
|
|
2451
2477
|
* When enabled, "Save copy" in the image editor targets the current folder instead of the default one.
|
|
2478
|
+
* @default false
|
|
2452
2479
|
*/
|
|
2453
2480
|
saveCopyToCurrentFolder?: boolean;
|
|
2454
2481
|
/**
|
|
@@ -2499,12 +2526,12 @@ export declare namespace ExportedApi {
|
|
|
2499
2526
|
/**
|
|
2500
2527
|
* Allows inserting new items into sorted lists without marking the view as stale.
|
|
2501
2528
|
* Useful for dynamically adding items without full cache refresh.
|
|
2502
|
-
* @default
|
|
2529
|
+
* @default true
|
|
2503
2530
|
*/
|
|
2504
2531
|
allowSortedInsert?: boolean;
|
|
2505
2532
|
/**
|
|
2506
2533
|
* Allows inserting new items that may not match current filters without marking the view as stale.
|
|
2507
|
-
* @default
|
|
2534
|
+
* @default true
|
|
2508
2535
|
*/
|
|
2509
2536
|
allowSearchInsert?: boolean;
|
|
2510
2537
|
/**
|
|
@@ -2533,7 +2560,7 @@ export declare namespace ExportedApi {
|
|
|
2533
2560
|
/**
|
|
2534
2561
|
* Number of pages to preload after current page.
|
|
2535
2562
|
* Pages are loaded in a single request with increased pageSize.
|
|
2536
|
-
* @default
|
|
2563
|
+
* @default 1
|
|
2537
2564
|
*/
|
|
2538
2565
|
preloadPagesAfter?: number;
|
|
2539
2566
|
};
|
package/useblocks.js
CHANGED
|
@@ -689,7 +689,7 @@ var __amdEnv = window.__useblocks__ || (window.__useblocks__ = {});
|
|
|
689
689
|
|
|
690
690
|
|
|
691
691
|
// Configure AMD loader
|
|
692
|
-
__amdEnv.require.config({ baseUrl: "./", paths: {"core":"useblocks-core.
|
|
692
|
+
__amdEnv.require.config({ baseUrl: "./", paths: {"core":"useblocks-core.2fa005e8.js","po":"useblocks-po.2fa005e8.js"} });
|
|
693
693
|
|
|
694
694
|
// PublicPath (script detection: entry script lookup → document.currentScript)
|
|
695
695
|
if (!__useblocks__.publicPath) {
|
|
@@ -1037,7 +1037,7 @@ if (!ns.assetUrl) {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
|
|
1039
1039
|
if (!ns.version) {
|
|
1040
|
-
ns.version = "1.1.
|
|
1040
|
+
ns.version = "1.1.84";
|
|
1041
1041
|
}
|
|
1042
1042
|
|
|
1043
1043
|
var modules = ns.modules = Object.create(null);
|
|
@@ -2785,7 +2785,7 @@ __useblocks__.define("useblocks.js", [
|
|
|
2785
2785
|
const r = S.get(e);
|
|
2786
2786
|
t.some((n) => n !== void 0 && n === r) && S.delete(e);
|
|
2787
2787
|
}
|
|
2788
|
-
var rn = "1.1.
|
|
2788
|
+
var rn = "1.1.84";
|
|
2789
2789
|
async function nn(e) {
|
|
2790
2790
|
await _e(typeof __useblocks__ < "u" ? __useblocks__ : void 0);
|
|
2791
2791
|
}
|