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
|
@@ -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,8 +1057,12 @@ 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;
|
|
1064
|
+
/** Gmail Promo Tab Annotations section in sidebar. */
|
|
1065
|
+
annotationsEnabled: boolean;
|
|
1057
1066
|
/** Subject line field in sidebar. */
|
|
1058
1067
|
subjectEnabled: boolean;
|
|
1059
1068
|
/** Preheader field in sidebar. */
|
|
@@ -1172,13 +1181,21 @@ export declare namespace ExportedApi {
|
|
|
1172
1181
|
imageCenterIconStockEnabled: boolean;
|
|
1173
1182
|
/** Built-in image crop / edit step in Image Center. */
|
|
1174
1183
|
imageCenterEditorEnabled: boolean;
|
|
1175
|
-
/**
|
|
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
|
+
*/
|
|
1176
1190
|
compressMaxSize: number;
|
|
1177
|
-
/**
|
|
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
|
+
*/
|
|
1178
1195
|
compressMaxWidthOrHeight: number;
|
|
1179
1196
|
/** Monaco options for HTML/code editing surface. */
|
|
1180
1197
|
editor: EditorOptions;
|
|
1181
|
-
/** UI locale
|
|
1198
|
+
/** UI locale; see {@link Locale} for the codes shipped with catalogs. */
|
|
1182
1199
|
locale: Locale;
|
|
1183
1200
|
/** Placement of the code-mode panel relative to the canvas (`none` hides code split). */
|
|
1184
1201
|
codeModeDirection: CodeModeDirection;
|
|
@@ -1197,7 +1214,7 @@ export declare namespace ExportedApi {
|
|
|
1197
1214
|
testEmails?: string[];
|
|
1198
1215
|
/** Sidebar UI switch for alternate/simple configuration layout (persisted runtime key **`configSwither`**). */
|
|
1199
1216
|
configSwither?: boolean;
|
|
1200
|
-
/** 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. */
|
|
1201
1218
|
autosaveTimeout?: number;
|
|
1202
1219
|
/** Max retry attempts after a retryable autosave failure (network / 5xx). Default 5. */
|
|
1203
1220
|
autosaveRetryMaxAttempts?: number;
|
|
@@ -1225,6 +1242,8 @@ export declare namespace ExportedApi {
|
|
|
1225
1242
|
aiLayoutConverterEnabled?: boolean;
|
|
1226
1243
|
/** show export to text */
|
|
1227
1244
|
exportTextEnabled?: boolean;
|
|
1245
|
+
/** show export to Markdown (nested under the text export menu item) */
|
|
1246
|
+
exportMarkdownEnabled?: boolean;
|
|
1228
1247
|
/** show export to HTML */
|
|
1229
1248
|
exportHtmlEnabled?: boolean;
|
|
1230
1249
|
/** show export to ZIP */
|
|
@@ -2326,19 +2345,21 @@ export declare namespace ExportedApi {
|
|
|
2326
2345
|
}
|
|
2327
2346
|
export interface FileManagerOptions {
|
|
2328
2347
|
/**
|
|
2329
|
-
*
|
|
2330
|
-
* Set to 0
|
|
2331
|
-
* @
|
|
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)
|
|
2332
2353
|
*/
|
|
2333
2354
|
compressMaxSize?: number;
|
|
2334
2355
|
/**
|
|
2335
2356
|
* Maximum width or height in pixels for client-side image compression. Images larger than this will be resized.
|
|
2336
|
-
* Set to 0
|
|
2337
|
-
* @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)
|
|
2338
2359
|
*/
|
|
2339
2360
|
compressMaxWidthOrHeight?: number;
|
|
2340
2361
|
/**
|
|
2341
|
-
*
|
|
2362
|
+
* Expands the root node of the folder tree on init (its children stay collapsed).
|
|
2342
2363
|
* @default true
|
|
2343
2364
|
*/
|
|
2344
2365
|
expandRootFolderOnInit?: boolean;
|
|
@@ -2350,7 +2371,7 @@ export declare namespace ExportedApi {
|
|
|
2350
2371
|
enableTrash?: boolean;
|
|
2351
2372
|
/**
|
|
2352
2373
|
* Enables paging in the file manager view.
|
|
2353
|
-
*
|
|
2374
|
+
* Set to `false` to disable paging and load all items at once.
|
|
2354
2375
|
* @default true
|
|
2355
2376
|
*/
|
|
2356
2377
|
enablePagination?: boolean;
|
|
@@ -2364,19 +2385,19 @@ export declare namespace ExportedApi {
|
|
|
2364
2385
|
unifiedCatalogFetch?: boolean;
|
|
2365
2386
|
/**
|
|
2366
2387
|
* Enables the ability to rename folders within the file manager.
|
|
2367
|
-
*
|
|
2388
|
+
* Set to `false` to disable renaming folders.
|
|
2368
2389
|
* @default true
|
|
2369
2390
|
*/
|
|
2370
2391
|
enableRenameFolder?: boolean;
|
|
2371
2392
|
/**
|
|
2372
2393
|
* Enables the ability to rename files within the file manager.
|
|
2373
|
-
*
|
|
2394
|
+
* Set to `false` to disable renaming files.
|
|
2374
2395
|
* @default true
|
|
2375
2396
|
*/
|
|
2376
2397
|
enableRenameFile?: boolean;
|
|
2377
2398
|
/**
|
|
2378
2399
|
* Enables the ability to update file metadata or content.
|
|
2379
|
-
*
|
|
2400
|
+
* Set to `false` to disable updating files.
|
|
2380
2401
|
* @default true
|
|
2381
2402
|
*/
|
|
2382
2403
|
enableUpdateFile?: boolean;
|
|
@@ -2387,14 +2408,14 @@ export declare namespace ExportedApi {
|
|
|
2387
2408
|
*/
|
|
2388
2409
|
enableEdit?: boolean;
|
|
2389
2410
|
/**
|
|
2390
|
-
* Enables
|
|
2391
|
-
* Allows
|
|
2411
|
+
* Enables moving files.
|
|
2412
|
+
* Allows relocating files to another folder.
|
|
2392
2413
|
* @default true
|
|
2393
2414
|
*/
|
|
2394
2415
|
enableMoveFile?: boolean;
|
|
2395
2416
|
/**
|
|
2396
|
-
* Enables
|
|
2397
|
-
* Allows
|
|
2417
|
+
* Enables moving folders.
|
|
2418
|
+
* Allows relocating folders to another parent.
|
|
2398
2419
|
* @default true
|
|
2399
2420
|
*/
|
|
2400
2421
|
enableMoveFolder?: boolean;
|
|
@@ -2417,7 +2438,7 @@ export declare namespace ExportedApi {
|
|
|
2417
2438
|
*/
|
|
2418
2439
|
enableDelete?: boolean;
|
|
2419
2440
|
/**
|
|
2420
|
-
*
|
|
2441
|
+
* Name prefilled in the "create folder" dialog. Blank or omitted falls back to a localized "New folder".
|
|
2421
2442
|
*/
|
|
2422
2443
|
defaultFolderName?: string;
|
|
2423
2444
|
/**
|
|
@@ -2434,17 +2455,27 @@ export declare namespace ExportedApi {
|
|
|
2434
2455
|
* @example ['date-desc', 'date-asc', 'name-asc', 'name-desc'] // omit size and type sorts
|
|
2435
2456
|
*/
|
|
2436
2457
|
sortOptions?: ('date-desc' | 'date-asc' | 'size-desc' | 'size-asc' | 'name-asc' | 'name-desc' | 'type-asc')[];
|
|
2437
|
-
|
|
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
|
+
/**
|
|
2438
2466
|
* When thumbnail/thumbnailUrl are missing, use `file.url` for table/grid preview (images only).
|
|
2439
2467
|
* Forwarded to FileManager `config` (@useblocks/filemanager).
|
|
2468
|
+
* @default true
|
|
2440
2469
|
*/
|
|
2441
2470
|
previewFallbackToFileUrl?: boolean;
|
|
2442
2471
|
/**
|
|
2443
2472
|
* Client-side deduplication of upload names and related flows (see @useblocks/filemanager `Config`).
|
|
2473
|
+
* @default false
|
|
2444
2474
|
*/
|
|
2445
2475
|
dedupeUploadNamesOnClient?: boolean;
|
|
2446
2476
|
/**
|
|
2447
2477
|
* When enabled, "Save copy" in the image editor targets the current folder instead of the default one.
|
|
2478
|
+
* @default false
|
|
2448
2479
|
*/
|
|
2449
2480
|
saveCopyToCurrentFolder?: boolean;
|
|
2450
2481
|
/**
|
|
@@ -2495,12 +2526,12 @@ export declare namespace ExportedApi {
|
|
|
2495
2526
|
/**
|
|
2496
2527
|
* Allows inserting new items into sorted lists without marking the view as stale.
|
|
2497
2528
|
* Useful for dynamically adding items without full cache refresh.
|
|
2498
|
-
* @default
|
|
2529
|
+
* @default true
|
|
2499
2530
|
*/
|
|
2500
2531
|
allowSortedInsert?: boolean;
|
|
2501
2532
|
/**
|
|
2502
2533
|
* Allows inserting new items that may not match current filters without marking the view as stale.
|
|
2503
|
-
* @default
|
|
2534
|
+
* @default true
|
|
2504
2535
|
*/
|
|
2505
2536
|
allowSearchInsert?: boolean;
|
|
2506
2537
|
/**
|
|
@@ -2529,7 +2560,7 @@ export declare namespace ExportedApi {
|
|
|
2529
2560
|
/**
|
|
2530
2561
|
* Number of pages to preload after current page.
|
|
2531
2562
|
* Pages are loaded in a single request with increased pageSize.
|
|
2532
|
-
* @default
|
|
2563
|
+
* @default 1
|
|
2533
2564
|
*/
|
|
2534
2565
|
preloadPagesAfter?: number;
|
|
2535
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
|
}
|
package/favicon-b.ico
DELETED
|
Binary file
|
package/favicon.ico
DELETED
|
Binary file
|
package/fonts/SegoeUI-Bold.woff2
DELETED
|
Binary file
|
|
Binary file
|
package/fonts/SegoeUI.woff2
DELETED
|
Binary file
|