@ones-editor/editor 2.1.7-beta.8 → 2.1.7-beta.9
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/@ones-editor/main-toolbar/src/index.d.ts +2 -0
- package/@ones-editor/main-toolbar/src/items/comment.d.ts +8 -0
- package/@ones-editor/main-toolbar/src/items/find.d.ts +8 -0
- package/@ones-editor/main-toolbar/src/items/font-style.d.ts +12 -0
- package/@ones-editor/main-toolbar/src/items/index.d.ts +7 -3
- package/@ones-editor/main-toolbar/src/items/insert.d.ts +12 -0
- package/@ones-editor/main-toolbar/src/items/undo.d.ts +18 -0
- package/@ones-editor/main-toolbar/src/locale/en-us.d.ts +9 -0
- package/@ones-editor/main-toolbar/src/locale/index.d.ts +1 -0
- package/@ones-editor/main-toolbar/src/locale/ja-jp.d.ts +9 -0
- package/@ones-editor/main-toolbar/src/locale/zh-cn.d.ts +9 -0
- package/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +523 -429
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7641,6 +7641,15 @@ div.editor-root div.editor-content div[data-type=editor-container] div[data-embe
|
|
|
7641
7641
|
}
|
|
7642
7642
|
div.editor-root.compact.no-heading-collapse.no-block-menu > .editor-content {
|
|
7643
7643
|
padding-left: 10px;
|
|
7644
|
+
}[data-fixed-toolbar-id=main-toolbar] {
|
|
7645
|
+
font-size: 14px;
|
|
7646
|
+
color: #2d2d2e;
|
|
7647
|
+
}
|
|
7648
|
+
[data-fixed-toolbar-id=main-toolbar] .command-item[data-button-id=paragraph] {
|
|
7649
|
+
min-width: 77px;
|
|
7650
|
+
}
|
|
7651
|
+
[data-fixed-toolbar-id=main-toolbar] .command-item[data-button-id=paragraph] .toolbar-item-name-container {
|
|
7652
|
+
flex-grow: 1;
|
|
7644
7653
|
}`)),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
7645
7654
|
var __defProp = Object.defineProperty;
|
|
7646
7655
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -7826,7 +7835,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7826
7835
|
loggerClass.set(category, instance);
|
|
7827
7836
|
return instance;
|
|
7828
7837
|
}
|
|
7829
|
-
const enUS$
|
|
7838
|
+
const enUS$z = {
|
|
7830
7839
|
name: "ONES Editor",
|
|
7831
7840
|
date: {
|
|
7832
7841
|
dateFromFuture: "From the future",
|
|
@@ -7846,7 +7855,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7846
7855
|
imageExportFailed: "Failed to load image"
|
|
7847
7856
|
}
|
|
7848
7857
|
};
|
|
7849
|
-
const zhCN$
|
|
7858
|
+
const zhCN$z = {
|
|
7850
7859
|
name: "Ones Editor",
|
|
7851
7860
|
date: {
|
|
7852
7861
|
dateFromFuture: "\u6765\u81EA\u672A\u6765",
|
|
@@ -7866,7 +7875,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7866
7875
|
imageExportFailed: "\u56FE\u7247\u52A0\u8F7D\u5931\u8D25"
|
|
7867
7876
|
}
|
|
7868
7877
|
};
|
|
7869
|
-
const jaJP$
|
|
7878
|
+
const jaJP$z = {
|
|
7870
7879
|
name: "ONES \u30A8\u30C7\u30A3\u30BF\u30FC",
|
|
7871
7880
|
date: {
|
|
7872
7881
|
dateFromFuture: "\u672A\u6765\u304B\u3089",
|
|
@@ -7888,9 +7897,9 @@ var __publicField = (obj, key, value) => {
|
|
|
7888
7897
|
};
|
|
7889
7898
|
const logger$4E = getLogger("i18n");
|
|
7890
7899
|
const langs$3 = {
|
|
7891
|
-
"en-US": enUS$
|
|
7892
|
-
"zh-CN": zhCN$
|
|
7893
|
-
"ja-JP": jaJP$
|
|
7900
|
+
"en-US": enUS$z,
|
|
7901
|
+
"zh-CN": zhCN$z,
|
|
7902
|
+
"ja-JP": jaJP$z
|
|
7894
7903
|
};
|
|
7895
7904
|
const i18n = KiwiIntl__default.default.init("en-US", langs$3);
|
|
7896
7905
|
let currentLang = "en-US";
|
|
@@ -7920,7 +7929,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7920
7929
|
t: t$8,
|
|
7921
7930
|
getCurrentLang
|
|
7922
7931
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7923
|
-
const style$
|
|
7932
|
+
const style$f = "";
|
|
7924
7933
|
class OnesEditorCustomDataWrapper {
|
|
7925
7934
|
constructor(editor, data2) {
|
|
7926
7935
|
this.editor = editor;
|
|
@@ -38810,8 +38819,8 @@ ${codeText}
|
|
|
38810
38819
|
handler.removeListener("change", callback);
|
|
38811
38820
|
handler.removeListener("insert", callback);
|
|
38812
38821
|
}
|
|
38813
|
-
const style$
|
|
38814
|
-
const zhCN$
|
|
38822
|
+
const style$e = "";
|
|
38823
|
+
const zhCN$y = {
|
|
38815
38824
|
colorPalette: {
|
|
38816
38825
|
colorDesc: "\u5B57\u4F53\u989C\u8272",
|
|
38817
38826
|
name: "\u6587\u672C\u989C\u8272",
|
|
@@ -38843,7 +38852,7 @@ ${codeText}
|
|
|
38843
38852
|
emptyTips: "\u6682\u65E0\u641C\u7D22\u7ED3\u679C"
|
|
38844
38853
|
}
|
|
38845
38854
|
};
|
|
38846
|
-
const enUS$
|
|
38855
|
+
const enUS$y = {
|
|
38847
38856
|
colorPalette: {
|
|
38848
38857
|
colorDesc: "Text color",
|
|
38849
38858
|
name: "Text color",
|
|
@@ -38875,7 +38884,7 @@ ${codeText}
|
|
|
38875
38884
|
emptyTips: "No results found"
|
|
38876
38885
|
}
|
|
38877
38886
|
};
|
|
38878
|
-
const jaJP$
|
|
38887
|
+
const jaJP$y = {
|
|
38879
38888
|
colorPalette: {
|
|
38880
38889
|
colorDesc: "\u30D5\u30A9\u30F3\u30C8\u306E\u8272",
|
|
38881
38890
|
name: "\u30C6\u30AD\u30B9\u30C8\u306E\u8272",
|
|
@@ -38908,9 +38917,9 @@ ${codeText}
|
|
|
38908
38917
|
}
|
|
38909
38918
|
};
|
|
38910
38919
|
i18n$1.mergeLang({
|
|
38911
|
-
"zh-CN": zhCN$
|
|
38912
|
-
"en-US": enUS$
|
|
38913
|
-
"ja-JP": jaJP$
|
|
38920
|
+
"zh-CN": zhCN$y,
|
|
38921
|
+
"en-US": enUS$y,
|
|
38922
|
+
"ja-JP": jaJP$y
|
|
38914
38923
|
});
|
|
38915
38924
|
const button = "";
|
|
38916
38925
|
getLogger("button");
|
|
@@ -40442,6 +40451,9 @@ ${codeText}
|
|
|
40442
40451
|
if (clientType.isMobile) {
|
|
40443
40452
|
addClass(elem, "mobile");
|
|
40444
40453
|
}
|
|
40454
|
+
if (this.options.id) {
|
|
40455
|
+
elem.setAttribute("data-fixed-toolbar-id", this.options.id);
|
|
40456
|
+
}
|
|
40445
40457
|
}
|
|
40446
40458
|
initItemElement(item, elem) {
|
|
40447
40459
|
initToolbarItem(item, elem, this.options);
|
|
@@ -41258,7 +41270,7 @@ ${codeText}
|
|
|
41258
41270
|
return [color === null ? null : parseInt(color, 10), backgroundColor === null ? null : parseInt(backgroundColor, 10)];
|
|
41259
41271
|
}
|
|
41260
41272
|
const textColorItem = "";
|
|
41261
|
-
class TextColorItem
|
|
41273
|
+
class TextColorItem extends tinyTypedEmitter.TypedEmitter {
|
|
41262
41274
|
constructor(editor, storageName = "color-item") {
|
|
41263
41275
|
super();
|
|
41264
41276
|
__publicField(this, "id", "text-color-item");
|
|
@@ -46272,7 +46284,7 @@ ${codeText}
|
|
|
46272
46284
|
editor.selection.setSelection(start, end);
|
|
46273
46285
|
}
|
|
46274
46286
|
}
|
|
46275
|
-
const style$
|
|
46287
|
+
const style$d = "";
|
|
46276
46288
|
const logger$24 = getLogger("get-toolbar-reference-client");
|
|
46277
46289
|
function getReferenceClientRect(editor, selectedBlock) {
|
|
46278
46290
|
const range = editor.selection.range;
|
|
@@ -46471,28 +46483,28 @@ ${codeText}
|
|
|
46471
46483
|
}
|
|
46472
46484
|
}
|
|
46473
46485
|
const exclusiveBlockStyles = "";
|
|
46474
|
-
const zhCN$
|
|
46486
|
+
const zhCN$x = {
|
|
46475
46487
|
exclusive: {
|
|
46476
46488
|
tips: "\u300C{editor}\u300D\u6B63\u5728\u7F16\u8F91\uFF0C\u300C{embedType}\u300D\u4E0D\u652F\u6301\u591A\u4EBA\u7F16\u8F91",
|
|
46477
46489
|
fallbackAbstract: "\u8BE5 Block"
|
|
46478
46490
|
}
|
|
46479
46491
|
};
|
|
46480
|
-
const enUS$
|
|
46492
|
+
const enUS$x = {
|
|
46481
46493
|
exclusive: {
|
|
46482
46494
|
tips: "\u300C{editor}\u300Dis editing\uFF0C\u300C{embedType}\u300Ddoes not support multi-person editing",
|
|
46483
46495
|
fallbackAbstract: "This Block"
|
|
46484
46496
|
}
|
|
46485
46497
|
};
|
|
46486
|
-
const jaJP$
|
|
46498
|
+
const jaJP$x = {
|
|
46487
46499
|
exclusive: {
|
|
46488
46500
|
tips: "\u300C{editor}\u300D\u306F\u7DE8\u96C6\u4E2D\u3067\u3059\u3002\u300C{embedType}\u300D\u306F\u8907\u6570\u4EBA\u3067\u540C\u6642\u7DE8\u96C6\u3067\u304D\u307E\u305B\u3093",
|
|
46489
46501
|
fallbackAbstract: "\u3053\u306E\u8981\u7D20"
|
|
46490
46502
|
}
|
|
46491
46503
|
};
|
|
46492
46504
|
i18n$1.mergeLang({
|
|
46493
|
-
"zh-CN": zhCN$
|
|
46494
|
-
"en-US": enUS$
|
|
46495
|
-
"ja-JP": jaJP$
|
|
46505
|
+
"zh-CN": zhCN$x,
|
|
46506
|
+
"en-US": enUS$x,
|
|
46507
|
+
"ja-JP": jaJP$x
|
|
46496
46508
|
});
|
|
46497
46509
|
function getBlockInfo(editor, block) {
|
|
46498
46510
|
const data2 = editor.getBlockData(block);
|
|
@@ -46668,22 +46680,22 @@ ${codeText}
|
|
|
46668
46680
|
};
|
|
46669
46681
|
}
|
|
46670
46682
|
}
|
|
46671
|
-
const style$
|
|
46672
|
-
const zhCN$
|
|
46683
|
+
const style$c = "";
|
|
46684
|
+
const zhCN$w = {
|
|
46673
46685
|
locker: {
|
|
46674
46686
|
lock: "\u9501\u5B9A",
|
|
46675
46687
|
unlock: "\u89E3\u9664\u9501\u5B9A",
|
|
46676
46688
|
lockedBy: "\u88AB {name} \u9501\u5B9A"
|
|
46677
46689
|
}
|
|
46678
46690
|
};
|
|
46679
|
-
const enUS$
|
|
46691
|
+
const enUS$w = {
|
|
46680
46692
|
locker: {
|
|
46681
46693
|
lock: "Lock",
|
|
46682
46694
|
unlock: "Unlock",
|
|
46683
46695
|
lockedBy: "Locked by {name}"
|
|
46684
46696
|
}
|
|
46685
46697
|
};
|
|
46686
|
-
const jaJP$
|
|
46698
|
+
const jaJP$w = {
|
|
46687
46699
|
locker: {
|
|
46688
46700
|
lock: "\u30ED\u30C3\u30AF",
|
|
46689
46701
|
unlock: "\u30ED\u30C3\u30AF\u89E3\u9664",
|
|
@@ -46691,9 +46703,9 @@ ${codeText}
|
|
|
46691
46703
|
}
|
|
46692
46704
|
};
|
|
46693
46705
|
i18n$1.mergeLang({
|
|
46694
|
-
"zh-CN": zhCN$
|
|
46695
|
-
"en-US": enUS$
|
|
46696
|
-
"ja-JP": jaJP$
|
|
46706
|
+
"zh-CN": zhCN$w,
|
|
46707
|
+
"en-US": enUS$w,
|
|
46708
|
+
"ja-JP": jaJP$w
|
|
46697
46709
|
});
|
|
46698
46710
|
class BlockLockerPasteHandler {
|
|
46699
46711
|
async handleBeforePasteDoc(editor, doc2) {
|
|
@@ -49532,7 +49544,7 @@ ${codeText}
|
|
|
49532
49544
|
}
|
|
49533
49545
|
return blockContent;
|
|
49534
49546
|
}
|
|
49535
|
-
const zhCN$
|
|
49547
|
+
const zhCN$v = {
|
|
49536
49548
|
list: {
|
|
49537
49549
|
confirm: "\u786E\u5B9A",
|
|
49538
49550
|
setStart: "\u8BBE\u7F6E\u7F16\u53F7",
|
|
@@ -49552,7 +49564,7 @@ ${codeText}
|
|
|
49552
49564
|
exitFullscreen: "\u9000\u51FA\u5168\u5C4F"
|
|
49553
49565
|
}
|
|
49554
49566
|
};
|
|
49555
|
-
const enUS$
|
|
49567
|
+
const enUS$v = {
|
|
49556
49568
|
list: {
|
|
49557
49569
|
confirm: "Confirm",
|
|
49558
49570
|
setStart: "Set number",
|
|
@@ -49572,7 +49584,7 @@ ${codeText}
|
|
|
49572
49584
|
exitFullscreen: "Exit full screen"
|
|
49573
49585
|
}
|
|
49574
49586
|
};
|
|
49575
|
-
const jaJP$
|
|
49587
|
+
const jaJP$v = {
|
|
49576
49588
|
list: {
|
|
49577
49589
|
confirm: "OK",
|
|
49578
49590
|
setStart: "\u756A\u53F7\u3092\u8A2D\u5B9A",
|
|
@@ -49593,11 +49605,11 @@ ${codeText}
|
|
|
49593
49605
|
}
|
|
49594
49606
|
};
|
|
49595
49607
|
i18n$1.mergeLang({
|
|
49596
|
-
"zh-CN": zhCN$
|
|
49597
|
-
"en-US": enUS$
|
|
49598
|
-
"ja-JP": jaJP$
|
|
49608
|
+
"zh-CN": zhCN$v,
|
|
49609
|
+
"en-US": enUS$v,
|
|
49610
|
+
"ja-JP": jaJP$v
|
|
49599
49611
|
});
|
|
49600
|
-
const style$
|
|
49612
|
+
const style$b = "";
|
|
49601
49613
|
const logger$1X = getLogger("list-block:paste-handler");
|
|
49602
49614
|
class ListPasteHandler {
|
|
49603
49615
|
constructor() {
|
|
@@ -51597,28 +51609,28 @@ $$${mathData.mathjaxText}$$
|
|
|
51597
51609
|
getBlockProperties: getBlockProperties$b
|
|
51598
51610
|
};
|
|
51599
51611
|
const mathjaxStyle = "";
|
|
51600
|
-
const zhCN$
|
|
51612
|
+
const zhCN$u = {
|
|
51601
51613
|
mathjax: {
|
|
51602
51614
|
emptyText: "\u7A7A\u7684\u516C\u5F0F",
|
|
51603
51615
|
abstract: "\u516C\u5F0F"
|
|
51604
51616
|
}
|
|
51605
51617
|
};
|
|
51606
|
-
const enUS$
|
|
51618
|
+
const enUS$u = {
|
|
51607
51619
|
mathjax: {
|
|
51608
51620
|
emptyText: "Empty formula",
|
|
51609
51621
|
abstract: "Formula"
|
|
51610
51622
|
}
|
|
51611
51623
|
};
|
|
51612
|
-
const jaJP$
|
|
51624
|
+
const jaJP$u = {
|
|
51613
51625
|
mathjax: {
|
|
51614
51626
|
emptyText: "\u6570\u5F0F\u306A\u3057",
|
|
51615
51627
|
abstract: "\u6570\u5F0F"
|
|
51616
51628
|
}
|
|
51617
51629
|
};
|
|
51618
51630
|
i18n$1.mergeLang({
|
|
51619
|
-
"zh-CN": zhCN$
|
|
51620
|
-
"en-US": enUS$
|
|
51621
|
-
"ja-JP": jaJP$
|
|
51631
|
+
"zh-CN": zhCN$u,
|
|
51632
|
+
"en-US": enUS$u,
|
|
51633
|
+
"ja-JP": jaJP$u
|
|
51622
51634
|
});
|
|
51623
51635
|
function convertToMath(editor, containerId, blockIndex, offset) {
|
|
51624
51636
|
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
@@ -57384,7 +57396,7 @@ $$${mathData.mathjaxText}$$
|
|
|
57384
57396
|
}
|
|
57385
57397
|
}
|
|
57386
57398
|
__publicField(StatusBoxCommand, "id", "insert-status");
|
|
57387
|
-
const enUS$
|
|
57399
|
+
const enUS$t = {
|
|
57388
57400
|
status: {
|
|
57389
57401
|
empty: "Set status",
|
|
57390
57402
|
command: {
|
|
@@ -57408,7 +57420,7 @@ $$${mathData.mathjaxText}$$
|
|
|
57408
57420
|
}
|
|
57409
57421
|
}
|
|
57410
57422
|
};
|
|
57411
|
-
const zhCN$
|
|
57423
|
+
const zhCN$t = {
|
|
57412
57424
|
status: {
|
|
57413
57425
|
empty: "\u8BBE\u7F6E\u72B6\u6001",
|
|
57414
57426
|
command: {
|
|
@@ -57432,7 +57444,7 @@ $$${mathData.mathjaxText}$$
|
|
|
57432
57444
|
}
|
|
57433
57445
|
}
|
|
57434
57446
|
};
|
|
57435
|
-
const jaJP$
|
|
57447
|
+
const jaJP$t = {
|
|
57436
57448
|
status: {
|
|
57437
57449
|
empty: "\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8A2D\u5B9A",
|
|
57438
57450
|
command: {
|
|
@@ -57457,9 +57469,9 @@ $$${mathData.mathjaxText}$$
|
|
|
57457
57469
|
}
|
|
57458
57470
|
};
|
|
57459
57471
|
const langs$2 = {
|
|
57460
|
-
"en-US": enUS$
|
|
57461
|
-
"zh-CN": zhCN$
|
|
57462
|
-
"ja-JP": jaJP$
|
|
57472
|
+
"en-US": enUS$t,
|
|
57473
|
+
"zh-CN": zhCN$t,
|
|
57474
|
+
"ja-JP": jaJP$t
|
|
57463
57475
|
};
|
|
57464
57476
|
i18n$1.mergeLang(langs$2);
|
|
57465
57477
|
const logger$1M = getLogger("inline-box-items");
|
|
@@ -58245,7 +58257,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58245
58257
|
"CtrlOrCmd+K": (editor) => executeShortcut(editor, "link"),
|
|
58246
58258
|
...headingShortcut()
|
|
58247
58259
|
};
|
|
58248
|
-
const zhCN$
|
|
58260
|
+
const zhCN$s = {
|
|
58249
58261
|
quickMenu: {
|
|
58250
58262
|
basic: {
|
|
58251
58263
|
heading: {
|
|
@@ -58292,7 +58304,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58292
58304
|
shiftTab: "Shift+Tab"
|
|
58293
58305
|
}
|
|
58294
58306
|
};
|
|
58295
|
-
const enUS$
|
|
58307
|
+
const enUS$s = {
|
|
58296
58308
|
quickMenu: {
|
|
58297
58309
|
basic: {
|
|
58298
58310
|
heading: {
|
|
@@ -58339,7 +58351,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58339
58351
|
shiftTab: "Shift+Tab"
|
|
58340
58352
|
}
|
|
58341
58353
|
};
|
|
58342
|
-
const jaJP$
|
|
58354
|
+
const jaJP$s = {
|
|
58343
58355
|
quickMenu: {
|
|
58344
58356
|
basic: {
|
|
58345
58357
|
heading: {
|
|
@@ -58387,9 +58399,9 @@ $$${mathData.mathjaxText}$$
|
|
|
58387
58399
|
}
|
|
58388
58400
|
};
|
|
58389
58401
|
i18n$1.mergeLang({
|
|
58390
|
-
"zh-CN": zhCN$
|
|
58391
|
-
"en-US": enUS$
|
|
58392
|
-
"ja-JP": jaJP$
|
|
58402
|
+
"zh-CN": zhCN$s,
|
|
58403
|
+
"en-US": enUS$s,
|
|
58404
|
+
"ja-JP": jaJP$s
|
|
58393
58405
|
});
|
|
58394
58406
|
class TextStylesFixedProvider extends ProxyProvider {
|
|
58395
58407
|
constructor(editor, afterCommandCallback) {
|
|
@@ -58991,7 +59003,7 @@ $$${mathData.mathjaxText}$$
|
|
|
58991
59003
|
});
|
|
58992
59004
|
__publicField(this, "executeInsertCommand", () => false);
|
|
58993
59005
|
this.editor = editor;
|
|
58994
|
-
this.colorItem = new TextColorItem
|
|
59006
|
+
this.colorItem = new TextColorItem(editor);
|
|
58995
59007
|
this.colorItem.addListener("onClick", this.handleChangeColor);
|
|
58996
59008
|
}
|
|
58997
59009
|
get blockAttributesHandler() {
|
|
@@ -60217,7 +60229,7 @@ $$${mathData.mathjaxText}$$
|
|
|
60217
60229
|
resizer.style.width = `${width}px`;
|
|
60218
60230
|
resizer.style.height = `${height}px`;
|
|
60219
60231
|
}
|
|
60220
|
-
const style$
|
|
60232
|
+
const style$a = "";
|
|
60221
60233
|
const logger$1y = getLogger("block-resizer");
|
|
60222
60234
|
class BlockResizer extends tinyTypedEmitter.TypedEmitter {
|
|
60223
60235
|
constructor(editor, options) {
|
|
@@ -61344,7 +61356,7 @@ $$${mathData.mathjaxText}$$
|
|
|
61344
61356
|
return new DOMRect(blockRect.x + viewOffsetLeft, blockRect.y, Math.max(blockRect.width - viewOffsetLeft - viewOffsetRight, 0), INDICATOR_SIZE$1);
|
|
61345
61357
|
}
|
|
61346
61358
|
}
|
|
61347
|
-
const style$
|
|
61359
|
+
const style$9 = "";
|
|
61348
61360
|
function getBlockHelperContainer(block) {
|
|
61349
61361
|
const tools = getBlockTools(block);
|
|
61350
61362
|
let helper = tools.querySelector(":scope > .block-helper");
|
|
@@ -62480,7 +62492,7 @@ ${codeText}
|
|
|
62480
62492
|
};
|
|
62481
62493
|
}
|
|
62482
62494
|
}
|
|
62483
|
-
const zhCN$
|
|
62495
|
+
const zhCN$r = {
|
|
62484
62496
|
code: {
|
|
62485
62497
|
title: "\u4EE3\u7801",
|
|
62486
62498
|
abstract: "\u4EE3\u7801",
|
|
@@ -62492,7 +62504,7 @@ ${codeText}
|
|
|
62492
62504
|
plainText: "Plain Text"
|
|
62493
62505
|
}
|
|
62494
62506
|
};
|
|
62495
|
-
const enUS$
|
|
62507
|
+
const enUS$r = {
|
|
62496
62508
|
code: {
|
|
62497
62509
|
title: "Code",
|
|
62498
62510
|
abstract: "Code",
|
|
@@ -62504,7 +62516,7 @@ ${codeText}
|
|
|
62504
62516
|
plainText: "Plain Text"
|
|
62505
62517
|
}
|
|
62506
62518
|
};
|
|
62507
|
-
const jaJP$
|
|
62519
|
+
const jaJP$r = {
|
|
62508
62520
|
code: {
|
|
62509
62521
|
title: "\u30B3\u30FC\u30C9",
|
|
62510
62522
|
abstract: "\u30B3\u30FC\u30C9",
|
|
@@ -62517,9 +62529,9 @@ ${codeText}
|
|
|
62517
62529
|
}
|
|
62518
62530
|
};
|
|
62519
62531
|
i18n$1.mergeLang({
|
|
62520
|
-
"zh-CN": zhCN$
|
|
62521
|
-
"en-US": enUS$
|
|
62522
|
-
"ja-JP": jaJP$
|
|
62532
|
+
"zh-CN": zhCN$r,
|
|
62533
|
+
"en-US": enUS$r,
|
|
62534
|
+
"ja-JP": jaJP$r
|
|
62523
62535
|
});
|
|
62524
62536
|
function convertToTable(editor, containerId, blockIndex, offset) {
|
|
62525
62537
|
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
@@ -62907,7 +62919,7 @@ ${codeText}
|
|
|
62907
62919
|
return false;
|
|
62908
62920
|
}
|
|
62909
62921
|
}
|
|
62910
|
-
const enUS$
|
|
62922
|
+
const enUS$q = {
|
|
62911
62923
|
placeholder: {
|
|
62912
62924
|
default: "Type / for commands",
|
|
62913
62925
|
heading: "Heading {heading}",
|
|
@@ -62918,7 +62930,7 @@ ${codeText}
|
|
|
62918
62930
|
mobileDefault: "Type to add content"
|
|
62919
62931
|
}
|
|
62920
62932
|
};
|
|
62921
|
-
const zhCN$
|
|
62933
|
+
const zhCN$q = {
|
|
62922
62934
|
placeholder: {
|
|
62923
62935
|
default: "\u8F93\u5165\u300C/\u300D\u5FEB\u901F\u63D2\u5165",
|
|
62924
62936
|
heading: "\u6807\u9898{heading}",
|
|
@@ -62929,7 +62941,7 @@ ${codeText}
|
|
|
62929
62941
|
mobileDefault: "\u8F93\u5165\u4EE5\u6DFB\u52A0\u5185\u5BB9"
|
|
62930
62942
|
}
|
|
62931
62943
|
};
|
|
62932
|
-
const jaJP$
|
|
62944
|
+
const jaJP$q = {
|
|
62933
62945
|
placeholder: {
|
|
62934
62946
|
default: "\u300C/\u300D\u3092\u5165\u529B\u3057\u3066\u7D20\u65E9\u304F\u633F\u5165\u3059\u308B",
|
|
62935
62947
|
heading: "\u898B\u51FA\u3057{heading}",
|
|
@@ -62941,9 +62953,9 @@ ${codeText}
|
|
|
62941
62953
|
}
|
|
62942
62954
|
};
|
|
62943
62955
|
const langs$1 = {
|
|
62944
|
-
"en-US": enUS$
|
|
62945
|
-
"zh-CN": zhCN$
|
|
62946
|
-
"ja-JP": jaJP$
|
|
62956
|
+
"en-US": enUS$q,
|
|
62957
|
+
"zh-CN": zhCN$q,
|
|
62958
|
+
"ja-JP": jaJP$q
|
|
62947
62959
|
};
|
|
62948
62960
|
i18n$1.mergeLang(langs$1);
|
|
62949
62961
|
function isEmptyTextBlockWithoutCompositionText(editor, block) {
|
|
@@ -63691,7 +63703,7 @@ ${codeText}
|
|
|
63691
63703
|
this.rootButton.destroy();
|
|
63692
63704
|
}
|
|
63693
63705
|
}
|
|
63694
|
-
const zhCN$
|
|
63706
|
+
const zhCN$p = {
|
|
63695
63707
|
blockMenu: {
|
|
63696
63708
|
section: {
|
|
63697
63709
|
basics: "\u57FA\u7840",
|
|
@@ -63715,7 +63727,7 @@ ${codeText}
|
|
|
63715
63727
|
}
|
|
63716
63728
|
}
|
|
63717
63729
|
};
|
|
63718
|
-
const enUS$
|
|
63730
|
+
const enUS$p = {
|
|
63719
63731
|
blockMenu: {
|
|
63720
63732
|
section: {
|
|
63721
63733
|
basics: "Basic",
|
|
@@ -63739,7 +63751,7 @@ ${codeText}
|
|
|
63739
63751
|
}
|
|
63740
63752
|
}
|
|
63741
63753
|
};
|
|
63742
|
-
const jaJP$
|
|
63754
|
+
const jaJP$p = {
|
|
63743
63755
|
blockMenu: {
|
|
63744
63756
|
section: {
|
|
63745
63757
|
basics: "\u4E00\u822C",
|
|
@@ -63764,11 +63776,11 @@ ${codeText}
|
|
|
63764
63776
|
}
|
|
63765
63777
|
};
|
|
63766
63778
|
i18n$1.mergeLang({
|
|
63767
|
-
"zh-CN": zhCN$
|
|
63768
|
-
"en-US": enUS$
|
|
63769
|
-
"ja-JP": jaJP$
|
|
63779
|
+
"zh-CN": zhCN$p,
|
|
63780
|
+
"en-US": enUS$p,
|
|
63781
|
+
"ja-JP": jaJP$p
|
|
63770
63782
|
});
|
|
63771
|
-
const style$
|
|
63783
|
+
const style$8 = "";
|
|
63772
63784
|
class DragData {
|
|
63773
63785
|
constructor() {
|
|
63774
63786
|
__publicField(this, "dragObject", null);
|
|
@@ -64722,7 +64734,7 @@ ${codeText}
|
|
|
64722
64734
|
}
|
|
64723
64735
|
}
|
|
64724
64736
|
}
|
|
64725
|
-
const zhCN$
|
|
64737
|
+
const zhCN$o = {
|
|
64726
64738
|
image: {
|
|
64727
64739
|
title: "\u56FE\u7247",
|
|
64728
64740
|
upload: {
|
|
@@ -64738,7 +64750,7 @@ ${codeText}
|
|
|
64738
64750
|
abstract: "\u56FE\u7247"
|
|
64739
64751
|
}
|
|
64740
64752
|
};
|
|
64741
|
-
const enUS$
|
|
64753
|
+
const enUS$o = {
|
|
64742
64754
|
image: {
|
|
64743
64755
|
title: "Image",
|
|
64744
64756
|
upload: {
|
|
@@ -64754,7 +64766,7 @@ ${codeText}
|
|
|
64754
64766
|
abstract: "Image"
|
|
64755
64767
|
}
|
|
64756
64768
|
};
|
|
64757
|
-
const jaJP$
|
|
64769
|
+
const jaJP$o = {
|
|
64758
64770
|
image: {
|
|
64759
64771
|
title: "\u753B\u50CF",
|
|
64760
64772
|
upload: {
|
|
@@ -64771,9 +64783,9 @@ ${codeText}
|
|
|
64771
64783
|
}
|
|
64772
64784
|
};
|
|
64773
64785
|
i18n$1.mergeLang({
|
|
64774
|
-
"zh-CN": zhCN$
|
|
64775
|
-
"en-US": enUS$
|
|
64776
|
-
"ja-JP": jaJP$
|
|
64786
|
+
"zh-CN": zhCN$o,
|
|
64787
|
+
"en-US": enUS$o,
|
|
64788
|
+
"ja-JP": jaJP$o
|
|
64777
64789
|
});
|
|
64778
64790
|
function convertToImage(editor, containerId, blockIndex, offset) {
|
|
64779
64791
|
const block = editor.getBlockByIndex(containerId, blockIndex);
|
|
@@ -65141,28 +65153,28 @@ ${codeText}
|
|
|
65141
65153
|
}
|
|
65142
65154
|
return getDragInsertPos(editor, block, images, x);
|
|
65143
65155
|
}
|
|
65144
|
-
const zhCN$
|
|
65156
|
+
const zhCN$n = {
|
|
65145
65157
|
embedProperties: {
|
|
65146
65158
|
edit: "\u7F16\u8F91",
|
|
65147
65159
|
addComment: "\u6DFB\u52A0\u6279\u6CE8"
|
|
65148
65160
|
}
|
|
65149
65161
|
};
|
|
65150
|
-
const enUS$
|
|
65162
|
+
const enUS$n = {
|
|
65151
65163
|
embedProperties: {
|
|
65152
65164
|
edit: "Edit",
|
|
65153
65165
|
addComment: "Add annotation"
|
|
65154
65166
|
}
|
|
65155
65167
|
};
|
|
65156
|
-
const jaJP$
|
|
65168
|
+
const jaJP$n = {
|
|
65157
65169
|
embedProperties: {
|
|
65158
65170
|
edit: "\u7DE8\u96C6",
|
|
65159
65171
|
addComment: "\u6CE8\u91C8\u3092\u8FFD\u52A0"
|
|
65160
65172
|
}
|
|
65161
65173
|
};
|
|
65162
65174
|
i18n$1.mergeLang({
|
|
65163
|
-
"zh-CN": zhCN$
|
|
65164
|
-
"en-US": enUS$
|
|
65165
|
-
"ja-JP": jaJP$
|
|
65175
|
+
"zh-CN": zhCN$n,
|
|
65176
|
+
"en-US": enUS$n,
|
|
65177
|
+
"ja-JP": jaJP$n
|
|
65166
65178
|
});
|
|
65167
65179
|
const logger$1c = getLogger("embed-block-properties");
|
|
65168
65180
|
function addCommentToBlock(editor, block) {
|
|
@@ -65784,7 +65796,7 @@ ${codeText}
|
|
|
65784
65796
|
const { t: t$4 } = i18n$1;
|
|
65785
65797
|
const COMMENT_ITEM_EDITING_CLS = "comment-item-editing";
|
|
65786
65798
|
const COMMENT_ITEM_ACTIVE_CLS = "active";
|
|
65787
|
-
class CommentItem {
|
|
65799
|
+
class CommentItem$1 {
|
|
65788
65800
|
constructor(options) {
|
|
65789
65801
|
__publicField(this, "root");
|
|
65790
65802
|
__publicField(this, "moreMenu");
|
|
@@ -66115,7 +66127,7 @@ ${codeText}
|
|
|
66115
66127
|
}
|
|
66116
66128
|
createItem(data2) {
|
|
66117
66129
|
const { editor, commentsProvider, groupList, groupItem } = this.options;
|
|
66118
|
-
return new CommentItem({
|
|
66130
|
+
return new CommentItem$1({
|
|
66119
66131
|
mainEditor: editor,
|
|
66120
66132
|
commentsProvider,
|
|
66121
66133
|
comment: data2,
|
|
@@ -66333,7 +66345,7 @@ ${codeText}
|
|
|
66333
66345
|
createItem() {
|
|
66334
66346
|
const itemContainer = createElement("div", ["comment-item-container"], this.root);
|
|
66335
66347
|
const { editor, commentsProvider, comment, groupList } = this;
|
|
66336
|
-
const item = new CommentItem({
|
|
66348
|
+
const item = new CommentItem$1({
|
|
66337
66349
|
mainEditor: editor,
|
|
66338
66350
|
commentsProvider,
|
|
66339
66351
|
comment,
|
|
@@ -67738,8 +67750,8 @@ ${codeText}
|
|
|
67738
67750
|
}
|
|
67739
67751
|
}
|
|
67740
67752
|
}
|
|
67741
|
-
const style$
|
|
67742
|
-
const zhCN$
|
|
67753
|
+
const style$7 = "";
|
|
67754
|
+
const zhCN$m = {
|
|
67743
67755
|
comment: {
|
|
67744
67756
|
count: "\u6279\u6CE8 ({num})",
|
|
67745
67757
|
hide: "\u9690\u85CF\u6279\u6CE8",
|
|
@@ -67762,7 +67774,7 @@ ${codeText}
|
|
|
67762
67774
|
quickMenuCommand: "\u6DFB\u52A0\u6279\u6CE8"
|
|
67763
67775
|
}
|
|
67764
67776
|
};
|
|
67765
|
-
const enUS$
|
|
67777
|
+
const enUS$m = {
|
|
67766
67778
|
comment: {
|
|
67767
67779
|
count: "Annotations ({num})",
|
|
67768
67780
|
hide: "Hide Annotations",
|
|
@@ -67785,7 +67797,7 @@ ${codeText}
|
|
|
67785
67797
|
quickMenuCommand: "Add annotation"
|
|
67786
67798
|
}
|
|
67787
67799
|
};
|
|
67788
|
-
const jaJP$
|
|
67800
|
+
const jaJP$m = {
|
|
67789
67801
|
comment: {
|
|
67790
67802
|
count: "\u6CE8\u91C8 ({num})",
|
|
67791
67803
|
hide: "\u6CE8\u91C8\u3092\u975E\u8868\u793A",
|
|
@@ -67809,9 +67821,9 @@ ${codeText}
|
|
|
67809
67821
|
}
|
|
67810
67822
|
};
|
|
67811
67823
|
i18n$1.mergeLang({
|
|
67812
|
-
"zh-CN": zhCN$
|
|
67813
|
-
"en-US": enUS$
|
|
67814
|
-
"ja-JP": jaJP$
|
|
67824
|
+
"zh-CN": zhCN$m,
|
|
67825
|
+
"en-US": enUS$m,
|
|
67826
|
+
"ja-JP": jaJP$m
|
|
67815
67827
|
});
|
|
67816
67828
|
class OnesEditorCommentsRender {
|
|
67817
67829
|
renderText(editor, path, attributes) {
|
|
@@ -70399,7 +70411,7 @@ ${codeText}
|
|
|
70399
70411
|
return void 0;
|
|
70400
70412
|
}
|
|
70401
70413
|
};
|
|
70402
|
-
const zhCN$
|
|
70414
|
+
const zhCN$l = {
|
|
70403
70415
|
table: {
|
|
70404
70416
|
cellBackground: "\u5355\u5143\u683C\u80CC\u666F\u8272",
|
|
70405
70417
|
deleteSelectRow: "\u5220\u9664\u6240\u9009\u884C",
|
|
@@ -70430,7 +70442,7 @@ ${codeText}
|
|
|
70430
70442
|
}
|
|
70431
70443
|
}
|
|
70432
70444
|
};
|
|
70433
|
-
const enUS$
|
|
70445
|
+
const enUS$l = {
|
|
70434
70446
|
table: {
|
|
70435
70447
|
cellBackground: "Cell background color",
|
|
70436
70448
|
deleteSelectRow: "Delete selected rows",
|
|
@@ -70461,7 +70473,7 @@ ${codeText}
|
|
|
70461
70473
|
}
|
|
70462
70474
|
}
|
|
70463
70475
|
};
|
|
70464
|
-
const jaJP$
|
|
70476
|
+
const jaJP$l = {
|
|
70465
70477
|
table: {
|
|
70466
70478
|
cellBackground: "\u30BB\u30EB\u306E\u80CC\u666F\u8272",
|
|
70467
70479
|
deleteSelectRow: "\u9078\u629E\u3057\u305F\u884C\u3092\u524A\u9664",
|
|
@@ -70493,9 +70505,9 @@ ${codeText}
|
|
|
70493
70505
|
}
|
|
70494
70506
|
};
|
|
70495
70507
|
i18n$1.mergeLang({
|
|
70496
|
-
"zh-CN": zhCN$
|
|
70497
|
-
"en-US": enUS$
|
|
70498
|
-
"ja-JP": jaJP$
|
|
70508
|
+
"zh-CN": zhCN$l,
|
|
70509
|
+
"en-US": enUS$l,
|
|
70510
|
+
"ja-JP": jaJP$l
|
|
70499
70511
|
});
|
|
70500
70512
|
const tableStyle = "";
|
|
70501
70513
|
const logger$N = getLogger("table");
|
|
@@ -70903,21 +70915,21 @@ ${codeText}
|
|
|
70903
70915
|
return false;
|
|
70904
70916
|
}
|
|
70905
70917
|
}
|
|
70906
|
-
const zhCN$
|
|
70918
|
+
const zhCN$k = {
|
|
70907
70919
|
pasteSpecial: {
|
|
70908
70920
|
originFormats: "\u4FDD\u6301\u539F\u6837\u5F0F",
|
|
70909
70921
|
plainText: "\u7C98\u8D34\u7EAF\u6587\u672C",
|
|
70910
70922
|
markdown: "\u7C98\u8D34\u4E3A Markdown"
|
|
70911
70923
|
}
|
|
70912
70924
|
};
|
|
70913
|
-
const enUS$
|
|
70925
|
+
const enUS$k = {
|
|
70914
70926
|
pasteSpecial: {
|
|
70915
70927
|
originFormats: "Keep origin formats",
|
|
70916
70928
|
plainText: "Paste as plain text",
|
|
70917
70929
|
markdown: "Paste as markdown"
|
|
70918
70930
|
}
|
|
70919
70931
|
};
|
|
70920
|
-
const jaJP$
|
|
70932
|
+
const jaJP$k = {
|
|
70921
70933
|
pasteSpecial: {
|
|
70922
70934
|
originFormats: "\u5143\u306E\u30B9\u30BF\u30A4\u30EB\u3092\u7DAD\u6301\u3059\u308B",
|
|
70923
70935
|
plainText: "\u30D7\u30EC\u30FC\u30F3\u30C6\u30AD\u30B9\u30C8\u3092\u8CBC\u308A\u4ED8\u3051\u308B",
|
|
@@ -70925,11 +70937,11 @@ ${codeText}
|
|
|
70925
70937
|
}
|
|
70926
70938
|
};
|
|
70927
70939
|
i18n$1.mergeLang({
|
|
70928
|
-
"zh-CN": zhCN$
|
|
70929
|
-
"en-US": enUS$
|
|
70930
|
-
"ja-JP": jaJP$
|
|
70940
|
+
"zh-CN": zhCN$k,
|
|
70941
|
+
"en-US": enUS$k,
|
|
70942
|
+
"ja-JP": jaJP$k
|
|
70931
70943
|
});
|
|
70932
|
-
const style$
|
|
70944
|
+
const style$6 = "";
|
|
70933
70945
|
const logger$L = getLogger("html-to-doc");
|
|
70934
70946
|
function getDocFromHtmlInFirefox(html) {
|
|
70935
70947
|
const reg = /(<span data-editor-doc=")[\s\S]*( id="ones-editor-doc"\s?>)/g;
|
|
@@ -74340,7 +74352,7 @@ ${content}
|
|
|
74340
74352
|
(_a = this.dialog) == null ? void 0 : _a.destroy();
|
|
74341
74353
|
}
|
|
74342
74354
|
}
|
|
74343
|
-
const zhCN$
|
|
74355
|
+
const zhCN$j = {
|
|
74344
74356
|
find: {
|
|
74345
74357
|
findLabel: "\u67E5\u627E:",
|
|
74346
74358
|
replaceLabel: "\u66FF\u6362:",
|
|
@@ -74352,7 +74364,7 @@ ${content}
|
|
|
74352
74364
|
replacePlaceholder: "\u66FF\u6362\u4E3A"
|
|
74353
74365
|
}
|
|
74354
74366
|
};
|
|
74355
|
-
const enUS$
|
|
74367
|
+
const enUS$j = {
|
|
74356
74368
|
find: {
|
|
74357
74369
|
findLabel: "Search:",
|
|
74358
74370
|
replaceLabel: "Replace:",
|
|
@@ -74364,7 +74376,7 @@ ${content}
|
|
|
74364
74376
|
replacePlaceholder: "Replace with"
|
|
74365
74377
|
}
|
|
74366
74378
|
};
|
|
74367
|
-
const jaJP$
|
|
74379
|
+
const jaJP$j = {
|
|
74368
74380
|
find: {
|
|
74369
74381
|
findLabel: "\u691C\u7D22\uFF1A",
|
|
74370
74382
|
replaceLabel: "\u7F6E\u63DB\uFF1A",
|
|
@@ -74377,9 +74389,9 @@ ${content}
|
|
|
74377
74389
|
}
|
|
74378
74390
|
};
|
|
74379
74391
|
i18n$1.mergeLang({
|
|
74380
|
-
"zh-CN": zhCN$
|
|
74381
|
-
"en-US": enUS$
|
|
74382
|
-
"ja-JP": jaJP$
|
|
74392
|
+
"zh-CN": zhCN$j,
|
|
74393
|
+
"en-US": enUS$j,
|
|
74394
|
+
"ja-JP": jaJP$j
|
|
74383
74395
|
});
|
|
74384
74396
|
function handleFindReplace(editor) {
|
|
74385
74397
|
const dialog = editor.addCustom("find-dialog", () => new FindDialog(editor));
|
|
@@ -74401,7 +74413,7 @@ ${content}
|
|
|
74401
74413
|
"CtrlOrCmd+F": handleFindReplace,
|
|
74402
74414
|
"CtrlOrCmd+Shift+H": handleReplaceAndFind
|
|
74403
74415
|
};
|
|
74404
|
-
const style$
|
|
74416
|
+
const style$5 = "";
|
|
74405
74417
|
function editorShowFindDialog(editor) {
|
|
74406
74418
|
handleFindReplace(editor);
|
|
74407
74419
|
}
|
|
@@ -74649,28 +74661,28 @@ ${content}
|
|
|
74649
74661
|
this.isShown = false;
|
|
74650
74662
|
}
|
|
74651
74663
|
}
|
|
74652
|
-
const zhCN$
|
|
74664
|
+
const zhCN$i = {
|
|
74653
74665
|
authError: {
|
|
74654
74666
|
tips: '<div>\u670D\u52A1\u5DF2\u65AD\u5F00\uFF0C\u6B63\u5728\u91CD\u65B0\u8FDE\u63A5\uFF0C\u4E3A\u907F\u514D\u5185\u5BB9\u4E22\u5931\uFF0C\u6211\u4EEC\u6682\u65F6\u7981\u7528\u7F16\u8F91\u80FD\u529B\uFF0C\u4F60\u53EF\u4EE5<span id="exit">\u9000\u51FA\u7F16\u8F91</span></div>',
|
|
74655
74667
|
successTips: "<div>\u7F16\u8F91\u72B6\u6001\u5DF2\u6062\u590D\uFF0C\u4F60\u53EF\u4EE5\u7EE7\u7EED\u7F16\u8F91</div>"
|
|
74656
74668
|
}
|
|
74657
74669
|
};
|
|
74658
|
-
const enUS$
|
|
74670
|
+
const enUS$i = {
|
|
74659
74671
|
authError: {
|
|
74660
74672
|
tips: '<div>Network disconnected. To avoid any potential loss of content, editing is temporarily disabled. <span id="exit">Exit editor<span id="exit">',
|
|
74661
74673
|
successTips: "<div>The editing mode has been restored and you can now continue editing.</div>"
|
|
74662
74674
|
}
|
|
74663
74675
|
};
|
|
74664
|
-
const jaJP$
|
|
74676
|
+
const jaJP$i = {
|
|
74665
74677
|
authError: {
|
|
74666
74678
|
tips: '<div>\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3002\u30C7\u30FC\u30BF\u640D\u5931\u306E\u56DE\u907F\u306E\u305F\u3081\u306B\u3001\u63A5\u7D9A\u304C\u56DE\u5FA9\u3059\u308B\u307E\u3067\u7DE8\u96C6\u6A5F\u80FD\u306F\u4F7F\u3048\u307E\u305B\u3093\u3002<span id="exit">\u7DE8\u96C6\u3092\u7D42\u4E86</span></div>',
|
|
74667
74679
|
successTips: "<div>\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u304C\u56DE\u5FA9\u3057\u307E\u3057\u305F\u3002\u5F15\u304D\u7D9A\u3051\u3054\u7DE8\u96C6\u3044\u305F\u3060\u3051\u307E\u3059\u3002</div>"
|
|
74668
74680
|
}
|
|
74669
74681
|
};
|
|
74670
74682
|
i18n$1.mergeLang({
|
|
74671
|
-
"zh-CN": zhCN$
|
|
74672
|
-
"en-US": enUS$
|
|
74673
|
-
"ja-JP": jaJP$
|
|
74683
|
+
"zh-CN": zhCN$i,
|
|
74684
|
+
"en-US": enUS$i,
|
|
74685
|
+
"ja-JP": jaJP$i
|
|
74674
74686
|
});
|
|
74675
74687
|
const logger$B = getLogger("re-auth");
|
|
74676
74688
|
const DOC_RE_AUTH_KEYS = "doc-re-auth-event";
|
|
@@ -75245,7 +75257,7 @@ ${content}
|
|
|
75245
75257
|
return false;
|
|
75246
75258
|
}
|
|
75247
75259
|
}
|
|
75248
|
-
const zhCN$
|
|
75260
|
+
const zhCN$h = {
|
|
75249
75261
|
contextMenu: {
|
|
75250
75262
|
copyMarkdown: "\u590D\u5236\u4E3A Markdown",
|
|
75251
75263
|
paste: "\u7C98\u8D34",
|
|
@@ -75258,7 +75270,7 @@ ${content}
|
|
|
75258
75270
|
uneditableBlockSelected: "\u9009\u4E2D\u533A\u57DF\u5305\u542B\u9501\u5B9A\u533A\u5757\uFF0C\u6682\u4E0D\u652F\u6301\u526A\u5207"
|
|
75259
75271
|
}
|
|
75260
75272
|
};
|
|
75261
|
-
const enUS$
|
|
75273
|
+
const enUS$h = {
|
|
75262
75274
|
contextMenu: {
|
|
75263
75275
|
copyMarkdown: "Copy as Markdown",
|
|
75264
75276
|
paste: "Paste",
|
|
@@ -75271,7 +75283,7 @@ ${content}
|
|
|
75271
75283
|
uneditableBlockSelected: "The selected area contains locked blocks, and cutting is not currently supported"
|
|
75272
75284
|
}
|
|
75273
75285
|
};
|
|
75274
|
-
const jaJP$
|
|
75286
|
+
const jaJP$h = {
|
|
75275
75287
|
contextMenu: {
|
|
75276
75288
|
copyMarkdown: "Markdown \u3068\u3057\u3066\u30B3\u30D4\u30FC",
|
|
75277
75289
|
paste: "\u8CBC\u308A\u4ED8\u3051",
|
|
@@ -75285,9 +75297,9 @@ ${content}
|
|
|
75285
75297
|
}
|
|
75286
75298
|
};
|
|
75287
75299
|
i18n$1.mergeLang({
|
|
75288
|
-
"zh-CN": zhCN$
|
|
75289
|
-
"en-US": enUS$
|
|
75290
|
-
"ja-JP": jaJP$
|
|
75300
|
+
"zh-CN": zhCN$h,
|
|
75301
|
+
"en-US": enUS$h,
|
|
75302
|
+
"ja-JP": jaJP$h
|
|
75291
75303
|
});
|
|
75292
75304
|
function hideToolbar(editor) {
|
|
75293
75305
|
const toolbar2 = editor.findCustom("toolbar-handler");
|
|
@@ -75313,7 +75325,7 @@ ${content}
|
|
|
75313
75325
|
"CtrlOrCmd+Z": undoHandler,
|
|
75314
75326
|
"CtrlOrCmd+Shift+Z": redoHandler
|
|
75315
75327
|
};
|
|
75316
|
-
const zhCN$
|
|
75328
|
+
const zhCN$g = {
|
|
75317
75329
|
commands: {
|
|
75318
75330
|
bold: "\u7C97\u4F53",
|
|
75319
75331
|
italic: "\u659C\u4F53",
|
|
@@ -75325,7 +75337,7 @@ ${content}
|
|
|
75325
75337
|
more: "\u66F4\u591A"
|
|
75326
75338
|
}
|
|
75327
75339
|
};
|
|
75328
|
-
const enUS$
|
|
75340
|
+
const enUS$g = {
|
|
75329
75341
|
commands: {
|
|
75330
75342
|
bold: "Bold",
|
|
75331
75343
|
italic: "Italic",
|
|
@@ -75337,7 +75349,7 @@ ${content}
|
|
|
75337
75349
|
more: "More"
|
|
75338
75350
|
}
|
|
75339
75351
|
};
|
|
75340
|
-
const jaJP$
|
|
75352
|
+
const jaJP$g = {
|
|
75341
75353
|
commands: {
|
|
75342
75354
|
bold: "\u592A\u5B57",
|
|
75343
75355
|
italic: "\u659C\u4F53",
|
|
@@ -75350,9 +75362,9 @@ ${content}
|
|
|
75350
75362
|
}
|
|
75351
75363
|
};
|
|
75352
75364
|
i18n$1.mergeLang({
|
|
75353
|
-
"zh-CN": zhCN$
|
|
75354
|
-
"en-US": enUS$
|
|
75355
|
-
"ja-JP": jaJP$
|
|
75365
|
+
"zh-CN": zhCN$g,
|
|
75366
|
+
"en-US": enUS$g,
|
|
75367
|
+
"ja-JP": jaJP$g
|
|
75356
75368
|
});
|
|
75357
75369
|
var FilePreviewType = /* @__PURE__ */ ((FilePreviewType2) => {
|
|
75358
75370
|
FilePreviewType2["Card"] = "card";
|
|
@@ -75874,7 +75886,7 @@ ${content}
|
|
|
75874
75886
|
toStandardDoc: toStandardDoc$1,
|
|
75875
75887
|
getResources
|
|
75876
75888
|
};
|
|
75877
|
-
const zhCN$
|
|
75889
|
+
const zhCN$f = {
|
|
75878
75890
|
file: {
|
|
75879
75891
|
abstract: "\u9644\u4EF6",
|
|
75880
75892
|
commands: {
|
|
@@ -75886,7 +75898,7 @@ ${content}
|
|
|
75886
75898
|
}
|
|
75887
75899
|
}
|
|
75888
75900
|
};
|
|
75889
|
-
const enUS$
|
|
75901
|
+
const enUS$f = {
|
|
75890
75902
|
file: {
|
|
75891
75903
|
abstract: "Attachment",
|
|
75892
75904
|
commands: {
|
|
@@ -75898,7 +75910,7 @@ ${content}
|
|
|
75898
75910
|
}
|
|
75899
75911
|
}
|
|
75900
75912
|
};
|
|
75901
|
-
const jaJP$
|
|
75913
|
+
const jaJP$f = {
|
|
75902
75914
|
file: {
|
|
75903
75915
|
abstract: "\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB",
|
|
75904
75916
|
commands: {
|
|
@@ -75911,9 +75923,9 @@ ${content}
|
|
|
75911
75923
|
}
|
|
75912
75924
|
};
|
|
75913
75925
|
i18n$1.mergeLang({
|
|
75914
|
-
"zh-CN": zhCN$
|
|
75915
|
-
"en-US": enUS$
|
|
75916
|
-
"ja-JP": jaJP$
|
|
75926
|
+
"zh-CN": zhCN$f,
|
|
75927
|
+
"en-US": enUS$f,
|
|
75928
|
+
"ja-JP": jaJP$f
|
|
75917
75929
|
});
|
|
75918
75930
|
function getEndsWithLinkIndex(str) {
|
|
75919
75931
|
const regex = /(\s|^)(http|https):\/\/[\w\-]+(\.[\w\-]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?$/;
|
|
@@ -75953,7 +75965,7 @@ ${content}
|
|
|
75953
75965
|
"Space": autoLink
|
|
75954
75966
|
};
|
|
75955
75967
|
const index$6 = "";
|
|
75956
|
-
const zhCN$
|
|
75968
|
+
const zhCN$e = {
|
|
75957
75969
|
version: {
|
|
75958
75970
|
latest: "\u6700\u65B0\u7248\u672C",
|
|
75959
75971
|
insert: "{name} \u6DFB\u52A0",
|
|
@@ -75996,7 +76008,7 @@ ${content}
|
|
|
75996
76008
|
filterMemoed: "\u7B5B\u9009\u5DF2\u5907\u6CE8\u7684\u7248\u672C"
|
|
75997
76009
|
}
|
|
75998
76010
|
};
|
|
75999
|
-
const enUS$
|
|
76011
|
+
const enUS$e = {
|
|
76000
76012
|
version: {
|
|
76001
76013
|
latest: "Latest",
|
|
76002
76014
|
insert: "Added by {name}",
|
|
@@ -76039,7 +76051,7 @@ ${content}
|
|
|
76039
76051
|
filterMemoed: "Filter versions with comments"
|
|
76040
76052
|
}
|
|
76041
76053
|
};
|
|
76042
|
-
const jaJP$
|
|
76054
|
+
const jaJP$e = {
|
|
76043
76055
|
version: {
|
|
76044
76056
|
latest: "\u6700\u65B0",
|
|
76045
76057
|
insert: "{name}\u304C\u8FFD\u52A0\u3057\u307E\u3057\u305F",
|
|
@@ -76083,9 +76095,9 @@ ${content}
|
|
|
76083
76095
|
}
|
|
76084
76096
|
};
|
|
76085
76097
|
i18n$1.mergeLang({
|
|
76086
|
-
"zh-CN": zhCN$
|
|
76087
|
-
"en-US": enUS$
|
|
76088
|
-
"ja-JP": jaJP$
|
|
76098
|
+
"zh-CN": zhCN$e,
|
|
76099
|
+
"en-US": enUS$e,
|
|
76100
|
+
"ja-JP": jaJP$e
|
|
76089
76101
|
});
|
|
76090
76102
|
var HistoryClass = /* @__PURE__ */ ((HistoryClass2) => {
|
|
76091
76103
|
HistoryClass2["NEW"] = "history-new";
|
|
@@ -77608,30 +77620,30 @@ ${content}
|
|
|
77608
77620
|
(_c = this.editor) == null ? void 0 : _c.destroy();
|
|
77609
77621
|
}
|
|
77610
77622
|
}
|
|
77611
|
-
const zhCN$
|
|
77623
|
+
const zhCN$d = {
|
|
77612
77624
|
expandCollapseButton: {
|
|
77613
77625
|
expand: "\u5C55\u5F00",
|
|
77614
77626
|
collapse: "\u6536\u8D77"
|
|
77615
77627
|
}
|
|
77616
77628
|
};
|
|
77617
|
-
const enUS$
|
|
77629
|
+
const enUS$d = {
|
|
77618
77630
|
expandCollapseButton: {
|
|
77619
77631
|
expand: "Expand",
|
|
77620
77632
|
collapse: "Collapse"
|
|
77621
77633
|
}
|
|
77622
77634
|
};
|
|
77623
|
-
const jaJP$
|
|
77635
|
+
const jaJP$d = {
|
|
77624
77636
|
expandCollapseButton: {
|
|
77625
77637
|
expand: "\u5C55\u958B",
|
|
77626
77638
|
collapse: "\u7E2E\u5C0F"
|
|
77627
77639
|
}
|
|
77628
77640
|
};
|
|
77629
77641
|
i18n$1.mergeLang({
|
|
77630
|
-
"zh-CN": zhCN$
|
|
77631
|
-
"en-US": enUS$
|
|
77632
|
-
"ja-JP": jaJP$
|
|
77642
|
+
"zh-CN": zhCN$d,
|
|
77643
|
+
"en-US": enUS$d,
|
|
77644
|
+
"ja-JP": jaJP$d
|
|
77633
77645
|
});
|
|
77634
|
-
const style$
|
|
77646
|
+
const style$4 = "";
|
|
77635
77647
|
const logger$q = getLogger("heading-collapse");
|
|
77636
77648
|
class CollapsedHandler {
|
|
77637
77649
|
constructor(editor) {
|
|
@@ -78278,7 +78290,7 @@ ${content}
|
|
|
78278
78290
|
this.emit("change", this.editor, this.toc);
|
|
78279
78291
|
}
|
|
78280
78292
|
}
|
|
78281
|
-
const style$
|
|
78293
|
+
const style$3 = "";
|
|
78282
78294
|
function isEmptyToc(editor, toc) {
|
|
78283
78295
|
if (toc.nodes.length === 0) {
|
|
78284
78296
|
return true;
|
|
@@ -78404,25 +78416,25 @@ ${content}
|
|
|
78404
78416
|
convertTo: convertTo$8,
|
|
78405
78417
|
convertFrom: convertFrom$4
|
|
78406
78418
|
};
|
|
78407
|
-
const zhCN$
|
|
78419
|
+
const zhCN$c = {
|
|
78408
78420
|
toc: {
|
|
78409
78421
|
empty: "No Toc"
|
|
78410
78422
|
}
|
|
78411
78423
|
};
|
|
78412
|
-
const enUS$
|
|
78424
|
+
const enUS$c = {
|
|
78413
78425
|
toc: {
|
|
78414
78426
|
empty: "No Toc"
|
|
78415
78427
|
}
|
|
78416
78428
|
};
|
|
78417
|
-
const jaJP$
|
|
78429
|
+
const jaJP$c = {
|
|
78418
78430
|
toc: {
|
|
78419
78431
|
empty: "No Toc"
|
|
78420
78432
|
}
|
|
78421
78433
|
};
|
|
78422
78434
|
i18n$1.mergeLang({
|
|
78423
|
-
"zh-CN": zhCN$
|
|
78424
|
-
"en-US": enUS$
|
|
78425
|
-
"ja-JP": jaJP$
|
|
78435
|
+
"zh-CN": zhCN$c,
|
|
78436
|
+
"en-US": enUS$c,
|
|
78437
|
+
"ja-JP": jaJP$c
|
|
78426
78438
|
});
|
|
78427
78439
|
function isHeadingBlock(block) {
|
|
78428
78440
|
return !!block.getAttribute("data-style-heading");
|
|
@@ -78872,7 +78884,7 @@ ${content}
|
|
|
78872
78884
|
}
|
|
78873
78885
|
}
|
|
78874
78886
|
const mentionStyle = "";
|
|
78875
|
-
const zhCN$
|
|
78887
|
+
const zhCN$b = {
|
|
78876
78888
|
mention: {
|
|
78877
78889
|
abstract: "\u6210\u5458",
|
|
78878
78890
|
placeholder: "\u641C\u7D22\u6210\u5458",
|
|
@@ -78880,7 +78892,7 @@ ${content}
|
|
|
78880
78892
|
header: "\u63D0\u53CA\u6210\u5458"
|
|
78881
78893
|
}
|
|
78882
78894
|
};
|
|
78883
|
-
const enUS$
|
|
78895
|
+
const enUS$b = {
|
|
78884
78896
|
mention: {
|
|
78885
78897
|
abstract: "Member",
|
|
78886
78898
|
placeholder: "Please select a member",
|
|
@@ -78888,7 +78900,7 @@ ${content}
|
|
|
78888
78900
|
header: "Mention members"
|
|
78889
78901
|
}
|
|
78890
78902
|
};
|
|
78891
|
-
const jaJP$
|
|
78903
|
+
const jaJP$b = {
|
|
78892
78904
|
mention: {
|
|
78893
78905
|
abstract: "\u30E1\u30F3\u30D0\u30FC",
|
|
78894
78906
|
placeholder: "\u30E1\u30F3\u30D0\u30FC\u3092\u691C\u7D22",
|
|
@@ -78897,11 +78909,11 @@ ${content}
|
|
|
78897
78909
|
}
|
|
78898
78910
|
};
|
|
78899
78911
|
i18n$1.mergeLang({
|
|
78900
|
-
"zh-CN": zhCN$
|
|
78901
|
-
"en-US": enUS$
|
|
78902
|
-
"ja-JP": jaJP$
|
|
78912
|
+
"zh-CN": zhCN$b,
|
|
78913
|
+
"en-US": enUS$b,
|
|
78914
|
+
"ja-JP": jaJP$b
|
|
78903
78915
|
});
|
|
78904
|
-
const zhCN$
|
|
78916
|
+
const zhCN$a = {
|
|
78905
78917
|
templates: {
|
|
78906
78918
|
title: "\u9009\u62E9\u6A21\u677F\uFF0C\u5FEB\u901F\u521B\u5EFA",
|
|
78907
78919
|
create: "\u65B0\u5EFA\u6A21\u677F",
|
|
@@ -78909,7 +78921,7 @@ ${content}
|
|
|
78909
78921
|
customizedMark: "\u81EA\u5B9A\u4E49"
|
|
78910
78922
|
}
|
|
78911
78923
|
};
|
|
78912
|
-
const enUS$
|
|
78924
|
+
const enUS$a = {
|
|
78913
78925
|
templates: {
|
|
78914
78926
|
title: "Choose a template",
|
|
78915
78927
|
create: "New template",
|
|
@@ -78917,7 +78929,7 @@ ${content}
|
|
|
78917
78929
|
customizedMark: "Custom"
|
|
78918
78930
|
}
|
|
78919
78931
|
};
|
|
78920
|
-
const jaJP$
|
|
78932
|
+
const jaJP$a = {
|
|
78921
78933
|
templates: {
|
|
78922
78934
|
title: "\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u9078\u629E",
|
|
78923
78935
|
create: "\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u65B0\u898F\u4F5C\u6210",
|
|
@@ -78926,9 +78938,9 @@ ${content}
|
|
|
78926
78938
|
}
|
|
78927
78939
|
};
|
|
78928
78940
|
i18n$1.mergeLang({
|
|
78929
|
-
"zh-CN": zhCN$
|
|
78930
|
-
"en-US": enUS$
|
|
78931
|
-
"ja-JP": jaJP$
|
|
78941
|
+
"zh-CN": zhCN$a,
|
|
78942
|
+
"en-US": enUS$a,
|
|
78943
|
+
"ja-JP": jaJP$a
|
|
78932
78944
|
});
|
|
78933
78945
|
const selectTemplates = "";
|
|
78934
78946
|
const CHOOSE_TEMPLATE_IMAGE_SRC = "data:image/svg+xml;base64,Cjxzdmcgd2lkdGg9IjEyMCIgaGVpZ2h0PSIxMjAiIHZpZXdCb3g9IjAgMCAxMjAgMTIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cmVjdCB3aWR0aD0iMTIwIiBoZWlnaHQ9IjEyMCIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTQ4IDU5QzQ4IDU0LjU4MTcgNTEuNTgxNyA1MSA1NiA1MUg5M0M5OC41MjI4IDUxIDEwMyA1NS40NzcyIDEwMyA2MVY4OEMxMDMgOTEuODY2IDk5Ljg2NiA5NSA5NiA5NUg1NkM1MS41ODE3IDk1IDQ4IDkxLjQxODMgNDggODdWNTlaIiBmaWxsPSIjRDZFOUZBIi8+CjxwYXRoIGQ9Ik0xOCA2NEMxOCA2Mi4zNDMxIDE5LjM0MzEgNjEgMjEgNjFINTZDNjAuNDE4MyA2MSA2NCA2NC41ODE3IDY0IDY5VjgzQzY0IDg1LjIwOTEgNjIuMjA5MSA4NyA2MCA4N0gyNkMyMS41ODE3IDg3IDE4IDgzLjQxODMgMTggNzlWNjRaIiBmaWxsPSIjRUFFNEY2Ii8+CjxyZWN0IHg9IjI0IiB5PSIzMSIgd2lkdGg9IjY1IiBoZWlnaHQ9IjUwIiByeD0iNSIgZmlsbD0iIzk5QzdGMiIvPgo8cmVjdCB4PSIzMy41IiB5PSI0MyIgd2lkdGg9IjQ2IiBoZWlnaHQ9IjUiIHJ4PSIyLjUiIGZpbGw9IndoaXRlIi8+CjxyZWN0IHg9IjMzLjUiIHk9IjU0IiB3aWR0aD0iNDYiIGhlaWdodD0iNSIgcng9IjIuNSIgZmlsbD0id2hpdGUiLz4KPHJlY3QgeD0iMjQiIHk9IjMxIiB3aWR0aD0iNjUiIGhlaWdodD0iNTAiIHJ4PSI1IiBzdHJva2U9IiNGOEY4RjgiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik01MCA4NS4yNjhDNTMuODI2MyA4My4wNTg5IDU1LjEzNzMgNzguMTY2MiA1Mi45MjgyIDc0LjMzOThMNjMuMzIwNSA2OC4zMzk4QzY4Ljg0MzMgNzcuOTA1NyA2NS41NjU4IDkwLjEzNzUgNTYgOTUuNjYwNEM0Ni40MzQxIDEwMS4xODMgMzQuMjAyMyA5Ny45MDU3IDI4LjY3OTQgODguMzM5OEwzOS4wNzE3IDgyLjMzOThDNDEuMjgwOSA4Ni4xNjYyIDQ2LjE3MzYgODcuNDc3MiA1MCA4NS4yNjhaIiBmaWxsPSIjQUI5M0RDIi8+CjxyZWN0IHg9IjU5IiB5PSI2NSIgd2lkdGg9IjQyIiBoZWlnaHQ9IjI4IiByeD0iNSIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTYzIDg4VjczLjA4MDhDNjMgNzEuNzA5NiA2My4zNjE0IDcwLjY4NjcgNjQuMDg0MSA3MC4wMTJDNjQuODI4NyA2OS4zMzczIDY1Ljg1OCA2OSA2Ny4xNzIgNjlIOTIuODYwOUM5NS42MjAzIDY5IDk3IDcwLjM2MDMgOTcgNzMuMDgwOFY4OEg5My41MTc5TDg3LjM3NDkgODAuNjIyQzg3LjA5MDIgODAuMzE3MyA4Ni43NjE3IDgwLjA4ODggODYuMzg5NCA3OS45MzY0Qzg2LjAxNzEgNzkuNzg0MSA4NS42NDQ4IDc5LjcwNzkgODUuMjcyNSA3OS43MDc5Qzg0LjkwMDIgNzkuNzA3OSA4NC41Mjc5IDc5Ljc4NDEgODQuMTU1NiA3OS45MzY0QzgzLjgwNTIgODAuMDg4OCA4My40NTQ4IDgwLjMxNzMgODMuMTA0MyA4MC42MjJMNzYuNzMxNCA4Ni4yMzcxTDc0LjIwMTkgODMuOTUxOUM3My42MzI1IDgzLjQyOTYgNzMuMDA4NCA4My4xNjg0IDcyLjMyOTUgODMuMTY4NEM3MS42NTA2IDgzLjE2ODQgNzEuMDM3NCA4My40Mjk2IDcwLjQ4OTkgODMuOTUxOUw2Ni40NDkzIDg4SDYzWk03NC40NjQ3IDgwLjYyMkM3NS4zNjI2IDgwLjYyMiA3Ni4xNDAxIDgwLjI5NTUgNzYuNzk3MSA3OS42NDI2Qzc3LjQ3NiA3OC45ODk3IDc3LjgxNTUgNzguMjE3MSA3Ny44MTU1IDc3LjMyNDdDNzcuODE1NSA3Ni40MTA3IDc3LjQ3NiA3NS42MzggNzYuNzk3MSA3NS4wMDY5Qzc2LjE0MDEgNzQuMzU0IDc1LjM2MjYgNzQuMDE2NiA3NC40NjQ3IDczLjk5NDhDNzMuNTQ0OSA3My45NTEzIDcyLjc1NjUgNzQuMjY2OSA3Mi4wOTk1IDc0Ljk0MTZDNzEuNDQyNSA3NS42MTYzIDcxLjExNCA3Ni40MTA3IDcxLjExNCA3Ny4zMjQ3QzcxLjExNCA3OC4yMTcxIDcxLjQ0MjUgNzguOTg5NyA3Mi4wOTk1IDc5LjY0MjZDNzIuNzU2NSA4MC4yOTU1IDczLjU0NDkgODAuNjIyIDc0LjQ2NDcgODAuNjIyWiIgZmlsbD0iI0Y3RDA3RiIvPgo8Y2lyY2xlIGN4PSI5NSIgY3k9IjQyIiByPSIyIiBzdHJva2U9IiM1MEMzOTgiIHN0cm9rZS13aWR0aD0iMiIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTk0Ljc1MDEgMjQuNDY4N0wxMDAuNzgxIDI3LjkxNDlMOTQuNzE5IDMxLjQxNDlMOTQuNzUwMSAyNC40Njg3WiIgc3Ryb2tlPSIjNUNBNUVBIiBzdHJva2Utd2lkdGg9IjEuOCIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwNSAzOEMxMDUgMzguNTUyMyAxMDUuNDQ4IDM5IDEwNiAzOUMxMDYuNTUyIDM5IDEwNyAzOC41NTIzIDEwNyAzOFYzNkgxMDlDMTA5LjU1MiAzNiAxMTAgMzUuNTUyMyAxMTAgMzVDMTEwIDM0LjQ0NzcgMTA5LjU1MiAzNCAxMDkgMzRIMTA3VjMyQzEwNyAzMS40NDc3IDEwNi41NTIgMzEgMTA2IDMxQzEwNS40NDggMzEgMTA1IDMxLjQ0NzcgMTA1IDMyVjM0SDEwM0MxMDIuNDQ4IDM0IDEwMiAzNC40NDc3IDEwMiAzNUMxMDIgMzUuNTUyMyAxMDIuNDQ4IDM2IDEwMyAzNkgxMDVWMzhaIiBmaWxsPSIjQUI5M0RDIi8+Cjwvc3ZnPgo=";
|
|
@@ -79111,7 +79123,7 @@ ${content}
|
|
|
79111
79123
|
}
|
|
79112
79124
|
}
|
|
79113
79125
|
const index$4 = "";
|
|
79114
|
-
const zhCN$
|
|
79126
|
+
const zhCN$9 = {
|
|
79115
79127
|
callout: {
|
|
79116
79128
|
name: "\u9AD8\u4EAE\u5757",
|
|
79117
79129
|
command: {
|
|
@@ -79122,7 +79134,7 @@ ${content}
|
|
|
79122
79134
|
}
|
|
79123
79135
|
}
|
|
79124
79136
|
};
|
|
79125
|
-
const enUS$
|
|
79137
|
+
const enUS$9 = {
|
|
79126
79138
|
callout: {
|
|
79127
79139
|
name: "Callout",
|
|
79128
79140
|
command: {
|
|
@@ -79133,7 +79145,7 @@ ${content}
|
|
|
79133
79145
|
}
|
|
79134
79146
|
}
|
|
79135
79147
|
};
|
|
79136
|
-
const jaJP$
|
|
79148
|
+
const jaJP$9 = {
|
|
79137
79149
|
callout: {
|
|
79138
79150
|
name: "\u30E1\u30C3\u30BB\u30FC\u30B8\u30DC\u30C3\u30AF\u30B9",
|
|
79139
79151
|
command: {
|
|
@@ -79145,9 +79157,9 @@ ${content}
|
|
|
79145
79157
|
}
|
|
79146
79158
|
};
|
|
79147
79159
|
i18n$1.mergeLang({
|
|
79148
|
-
"zh-CN": zhCN$
|
|
79149
|
-
"en-US": enUS$
|
|
79150
|
-
"ja-JP": jaJP$
|
|
79160
|
+
"zh-CN": zhCN$9,
|
|
79161
|
+
"en-US": enUS$9,
|
|
79162
|
+
"ja-JP": jaJP$9
|
|
79151
79163
|
});
|
|
79152
79164
|
function isCalloutBlockData(v) {
|
|
79153
79165
|
return v.type === "callout";
|
|
@@ -80427,7 +80439,7 @@ ${content}
|
|
|
80427
80439
|
}
|
|
80428
80440
|
}
|
|
80429
80441
|
const mobileHelperStyles = "";
|
|
80430
|
-
const zhCN$
|
|
80442
|
+
const zhCN$8 = {
|
|
80431
80443
|
mobile: {
|
|
80432
80444
|
insert: "\u63D2\u5165",
|
|
80433
80445
|
commands: {
|
|
@@ -80435,7 +80447,7 @@ ${content}
|
|
|
80435
80447
|
}
|
|
80436
80448
|
}
|
|
80437
80449
|
};
|
|
80438
|
-
const enUS$
|
|
80450
|
+
const enUS$8 = {
|
|
80439
80451
|
mobile: {
|
|
80440
80452
|
insert: "Insert",
|
|
80441
80453
|
commands: {
|
|
@@ -80443,7 +80455,7 @@ ${content}
|
|
|
80443
80455
|
}
|
|
80444
80456
|
}
|
|
80445
80457
|
};
|
|
80446
|
-
const jaJP$
|
|
80458
|
+
const jaJP$8 = {
|
|
80447
80459
|
mobile: {
|
|
80448
80460
|
insert: "\u633F\u5165",
|
|
80449
80461
|
commands: {
|
|
@@ -80452,9 +80464,9 @@ ${content}
|
|
|
80452
80464
|
}
|
|
80453
80465
|
};
|
|
80454
80466
|
i18n$1.mergeLang({
|
|
80455
|
-
"zh-CN": zhCN$
|
|
80456
|
-
"en-US": enUS$
|
|
80457
|
-
"ja-JP": jaJP$
|
|
80467
|
+
"zh-CN": zhCN$8,
|
|
80468
|
+
"en-US": enUS$8,
|
|
80469
|
+
"ja-JP": jaJP$8
|
|
80458
80470
|
});
|
|
80459
80471
|
const LONG_PRESS_DELAY = 800;
|
|
80460
80472
|
class OnesEditorMobileHelper {
|
|
@@ -80563,7 +80575,7 @@ ${content}
|
|
|
80563
80575
|
);
|
|
80564
80576
|
return contents;
|
|
80565
80577
|
}
|
|
80566
|
-
const zhCN$
|
|
80578
|
+
const zhCN$7 = {
|
|
80567
80579
|
layout: {
|
|
80568
80580
|
title: "\u5206\u680F",
|
|
80569
80581
|
columnDrag: "\u957F\u6309\u62D6\u62FD\n\u70B9\u51FB\u53EF\u64CD\u4F5C\u5220\u9664",
|
|
@@ -80572,7 +80584,7 @@ ${content}
|
|
|
80572
80584
|
currentCols: "{currentColumns} \u680F"
|
|
80573
80585
|
}
|
|
80574
80586
|
};
|
|
80575
|
-
const enUS$
|
|
80587
|
+
const enUS$7 = {
|
|
80576
80588
|
layout: {
|
|
80577
80589
|
title: "Column",
|
|
80578
80590
|
columnDrag: "Click and hold the column to drag it.\nClick to delete it.",
|
|
@@ -80581,7 +80593,7 @@ ${content}
|
|
|
80581
80593
|
currentCols: "{currentColumns} columns"
|
|
80582
80594
|
}
|
|
80583
80595
|
};
|
|
80584
|
-
const jaJP$
|
|
80596
|
+
const jaJP$7 = {
|
|
80585
80597
|
layout: {
|
|
80586
80598
|
title: "\u6BB5\u7D44\u307F",
|
|
80587
80599
|
columnDrag: "\u30C9\u30E9\u30C3\u30B0\u3059\u308B\u306B\u306F\u3001\u30DE\u30A6\u30B9\u306E\u30DC\u30BF\u30F3\u3092\u62BC\u3057\u306A\u304C\u3089\u79FB\u52D5\u3057\u307E\u3059\u3002\n\u524A\u9664\u3059\u308B\u306B\u306F\u3001\u30AF\u30EA\u30C3\u30AF\u3057\u307E\u3059\u3002",
|
|
@@ -80591,9 +80603,9 @@ ${content}
|
|
|
80591
80603
|
}
|
|
80592
80604
|
};
|
|
80593
80605
|
i18n$1.mergeLang({
|
|
80594
|
-
"zh-CN": zhCN$
|
|
80595
|
-
"en-US": enUS$
|
|
80596
|
-
"ja-JP": jaJP$
|
|
80606
|
+
"zh-CN": zhCN$7,
|
|
80607
|
+
"en-US": enUS$7,
|
|
80608
|
+
"ja-JP": jaJP$7
|
|
80597
80609
|
});
|
|
80598
80610
|
const layoutStyles = "";
|
|
80599
80611
|
const LAYOUT_NAME = "LayoutBlock";
|
|
@@ -82473,7 +82485,7 @@ ${content}
|
|
|
82473
82485
|
handleUpdateBlock: handleUpdateBlock$4,
|
|
82474
82486
|
convertTo: convertTo$5
|
|
82475
82487
|
};
|
|
82476
|
-
const zhCN$
|
|
82488
|
+
const zhCN$6 = {
|
|
82477
82489
|
webpage: {
|
|
82478
82490
|
title: "\u7F51\u9875",
|
|
82479
82491
|
youku: "\u4F18\u9177\u89C6\u9891",
|
|
@@ -82499,7 +82511,7 @@ ${content}
|
|
|
82499
82511
|
}
|
|
82500
82512
|
}
|
|
82501
82513
|
};
|
|
82502
|
-
const enUS$
|
|
82514
|
+
const enUS$6 = {
|
|
82503
82515
|
webpage: {
|
|
82504
82516
|
title: "Webpage",
|
|
82505
82517
|
youku: "Youku",
|
|
@@ -82525,7 +82537,7 @@ ${content}
|
|
|
82525
82537
|
}
|
|
82526
82538
|
}
|
|
82527
82539
|
};
|
|
82528
|
-
const jaJP$
|
|
82540
|
+
const jaJP$6 = {
|
|
82529
82541
|
webpage: {
|
|
82530
82542
|
title: "Web \u30DA\u30FC\u30B8",
|
|
82531
82543
|
youku: "Youku \u52D5\u753B",
|
|
@@ -82552,9 +82564,9 @@ ${content}
|
|
|
82552
82564
|
}
|
|
82553
82565
|
};
|
|
82554
82566
|
i18n$1.mergeLang({
|
|
82555
|
-
"zh-CN": zhCN$
|
|
82556
|
-
"en-US": enUS$
|
|
82557
|
-
"ja-JP": jaJP$
|
|
82567
|
+
"zh-CN": zhCN$6,
|
|
82568
|
+
"en-US": enUS$6,
|
|
82569
|
+
"ja-JP": jaJP$6
|
|
82558
82570
|
});
|
|
82559
82571
|
const webpageStyle = "";
|
|
82560
82572
|
function getContentTypeFromHeaders(headers) {
|
|
@@ -83219,7 +83231,7 @@ ${content}
|
|
|
83219
83231
|
});
|
|
83220
83232
|
return { ...properties, abstract: i18n$1.t("drawio.abstract") };
|
|
83221
83233
|
}
|
|
83222
|
-
const enUS$
|
|
83234
|
+
const enUS$5 = {
|
|
83223
83235
|
drawio: {
|
|
83224
83236
|
title: "Flowchart/UML",
|
|
83225
83237
|
empty: "Empty graph",
|
|
@@ -83231,7 +83243,7 @@ ${content}
|
|
|
83231
83243
|
save: "Saving"
|
|
83232
83244
|
}
|
|
83233
83245
|
};
|
|
83234
|
-
const zhCN$
|
|
83246
|
+
const zhCN$5 = {
|
|
83235
83247
|
drawio: {
|
|
83236
83248
|
title: "\u6D41\u7A0B\u56FE/UML",
|
|
83237
83249
|
empty: "\u7A7A\u56FE\u8868",
|
|
@@ -83243,7 +83255,7 @@ ${content}
|
|
|
83243
83255
|
save: "\u4FDD\u5B58\u4E2D"
|
|
83244
83256
|
}
|
|
83245
83257
|
};
|
|
83246
|
-
const jaJP$
|
|
83258
|
+
const jaJP$5 = {
|
|
83247
83259
|
drawio: {
|
|
83248
83260
|
title: "\u30D5\u30ED\u30FC\u30C1\u30E3\u30FC\u30C8/UML",
|
|
83249
83261
|
empty: "\u30B0\u30E9\u30D5\u30C7\u30FC\u30BF\u306A\u3057",
|
|
@@ -83256,9 +83268,9 @@ ${content}
|
|
|
83256
83268
|
}
|
|
83257
83269
|
};
|
|
83258
83270
|
const langs = {
|
|
83259
|
-
"en-US": enUS$
|
|
83260
|
-
"zh-CN": zhCN$
|
|
83261
|
-
"ja-JP": jaJP$
|
|
83271
|
+
"en-US": enUS$5,
|
|
83272
|
+
"zh-CN": zhCN$5,
|
|
83273
|
+
"ja-JP": jaJP$5
|
|
83262
83274
|
};
|
|
83263
83275
|
i18n$1.mergeLang(langs);
|
|
83264
83276
|
const logger$d = getLogger("embed-block-drawio");
|
|
@@ -83382,7 +83394,7 @@ ${content}
|
|
|
83382
83394
|
getBlockProperties: getBlockProperties$4,
|
|
83383
83395
|
convertTo: convertTo$4
|
|
83384
83396
|
};
|
|
83385
|
-
const style$
|
|
83397
|
+
const style$2 = "";
|
|
83386
83398
|
const index$2 = "";
|
|
83387
83399
|
const UPDATE_DELAY = 500;
|
|
83388
83400
|
const DEFAULT_EDIT_CODE_HEIGHT = 300;
|
|
@@ -83818,7 +83830,7 @@ ${content}
|
|
|
83818
83830
|
destroy() {
|
|
83819
83831
|
}
|
|
83820
83832
|
}
|
|
83821
|
-
const zhCN$
|
|
83833
|
+
const zhCN$4 = {
|
|
83822
83834
|
graph: {
|
|
83823
83835
|
invalid: "\u65E0\u6548\u7684 {EmbedName} \u5185\u5BB9\uFF1A{message}",
|
|
83824
83836
|
empty: "\u7A7A\u7684 {EmbedName}",
|
|
@@ -83830,7 +83842,7 @@ ${content}
|
|
|
83830
83842
|
retry: "\u91CD\u8BD5"
|
|
83831
83843
|
}
|
|
83832
83844
|
};
|
|
83833
|
-
const enUS$
|
|
83845
|
+
const enUS$4 = {
|
|
83834
83846
|
graph: {
|
|
83835
83847
|
invalid: "Invalid {EmbedName} content: {message}",
|
|
83836
83848
|
empty: "Empty {EmbedName}",
|
|
@@ -83842,7 +83854,7 @@ ${content}
|
|
|
83842
83854
|
retry: "Try again"
|
|
83843
83855
|
}
|
|
83844
83856
|
};
|
|
83845
|
-
const jaJP$
|
|
83857
|
+
const jaJP$4 = {
|
|
83846
83858
|
graph: {
|
|
83847
83859
|
invalid: "\u7121\u52B9\u306A{EmbedName}\uFF1A{message}",
|
|
83848
83860
|
empty: "\u7A7A\u306E {EmbedName}",
|
|
@@ -83855,9 +83867,9 @@ ${content}
|
|
|
83855
83867
|
}
|
|
83856
83868
|
};
|
|
83857
83869
|
i18n$1.mergeLang({
|
|
83858
|
-
"zh-CN": zhCN$
|
|
83859
|
-
"en-US": enUS$
|
|
83860
|
-
"ja-JP": jaJP$
|
|
83870
|
+
"zh-CN": zhCN$4,
|
|
83871
|
+
"en-US": enUS$4,
|
|
83872
|
+
"ja-JP": jaJP$4
|
|
83861
83873
|
});
|
|
83862
83874
|
function createEmbedContent$3(editor, content, block) {
|
|
83863
83875
|
const mermaid = MermaidInstance.get(editor, block);
|
|
@@ -84169,28 +84181,28 @@ ${data2.flowchartText}
|
|
|
84169
84181
|
};
|
|
84170
84182
|
const common = "";
|
|
84171
84183
|
const DIVIDING_LINE_EMBED = "hr";
|
|
84172
|
-
const zhCN$
|
|
84184
|
+
const zhCN$3 = {
|
|
84173
84185
|
dividingLine: {
|
|
84174
84186
|
type: "\u5206\u5272\u7EBF",
|
|
84175
84187
|
abstract: "\u5206\u5272\u7EBF"
|
|
84176
84188
|
}
|
|
84177
84189
|
};
|
|
84178
|
-
const enUS$
|
|
84190
|
+
const enUS$3 = {
|
|
84179
84191
|
dividingLine: {
|
|
84180
84192
|
type: "Dividing-Line",
|
|
84181
84193
|
abstract: "Dividing-Line"
|
|
84182
84194
|
}
|
|
84183
84195
|
};
|
|
84184
|
-
const jaJP$
|
|
84196
|
+
const jaJP$3 = {
|
|
84185
84197
|
dividingLine: {
|
|
84186
84198
|
type: "\u533A\u5207\u308A\u7DDA",
|
|
84187
84199
|
abstract: "\u533A\u5207\u308A\u7DDA"
|
|
84188
84200
|
}
|
|
84189
84201
|
};
|
|
84190
84202
|
i18n$1.mergeLang({
|
|
84191
|
-
"zh-CN": zhCN$
|
|
84192
|
-
"en-US": enUS$
|
|
84193
|
-
"ja-JP": jaJP$
|
|
84203
|
+
"zh-CN": zhCN$3,
|
|
84204
|
+
"en-US": enUS$3,
|
|
84205
|
+
"ja-JP": jaJP$3
|
|
84194
84206
|
});
|
|
84195
84207
|
function createEmbedContent(_editor, content) {
|
|
84196
84208
|
const hrElementContainer = createElement("div", ["editor-embed-container"], content);
|
|
@@ -84249,7 +84261,7 @@ ${data2.flowchartText}
|
|
|
84249
84261
|
};
|
|
84250
84262
|
const index$1 = "";
|
|
84251
84263
|
const index = "";
|
|
84252
|
-
const zhCN$
|
|
84264
|
+
const zhCN$2 = {
|
|
84253
84265
|
media: {
|
|
84254
84266
|
upload: {
|
|
84255
84267
|
failed: '<div class="line-1">{name}\u4E0A\u4F20\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8BD5</span></div>',
|
|
@@ -84268,7 +84280,7 @@ ${data2.flowchartText}
|
|
|
84268
84280
|
}
|
|
84269
84281
|
}
|
|
84270
84282
|
};
|
|
84271
|
-
const enUS$
|
|
84283
|
+
const enUS$2 = {
|
|
84272
84284
|
media: {
|
|
84273
84285
|
upload: {
|
|
84274
84286
|
failed: '<div class="line-1">{name} upload failed</div><div class="line-2">Network error, you can <span class="retry-upload">Retry</span></div>',
|
|
@@ -84287,7 +84299,7 @@ ${data2.flowchartText}
|
|
|
84287
84299
|
}
|
|
84288
84300
|
}
|
|
84289
84301
|
};
|
|
84290
|
-
const jaJP$
|
|
84302
|
+
const jaJP$2 = {
|
|
84291
84303
|
media: {
|
|
84292
84304
|
upload: {
|
|
84293
84305
|
failed: '<div class="line-1">{name}\u306E\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <span class="retry-upload">\u518D\u8A66\u884C</span></div>',
|
|
@@ -84307,9 +84319,9 @@ ${data2.flowchartText}
|
|
|
84307
84319
|
}
|
|
84308
84320
|
};
|
|
84309
84321
|
i18n$1.mergeLang({
|
|
84310
|
-
"zh-CN": zhCN$
|
|
84311
|
-
"en-US": enUS$
|
|
84312
|
-
"ja-JP": jaJP$
|
|
84322
|
+
"zh-CN": zhCN$2,
|
|
84323
|
+
"en-US": enUS$2,
|
|
84324
|
+
"ja-JP": jaJP$2
|
|
84313
84325
|
});
|
|
84314
84326
|
var MediaType = /* @__PURE__ */ ((MediaType2) => {
|
|
84315
84327
|
MediaType2["AUDIO"] = "audio";
|
|
@@ -85328,7 +85340,7 @@ ${data2.flowchartText}
|
|
|
85328
85340
|
return false;
|
|
85329
85341
|
}
|
|
85330
85342
|
}
|
|
85331
|
-
const zhCN = {
|
|
85343
|
+
const zhCN$1 = {
|
|
85332
85344
|
placeholder: {
|
|
85333
85345
|
common: {
|
|
85334
85346
|
title: "\u8BF7\u8F93\u5165\u6807\u9898",
|
|
@@ -85348,7 +85360,7 @@ ${data2.flowchartText}
|
|
|
85348
85360
|
limitedEnvTips: "\u7531\u4E8E\u6D4F\u89C8\u5668\u9650\u5236\uFF0C\u8BF7\u4F7F\u7528 {shortCut} \u7C98\u8D34"
|
|
85349
85361
|
}
|
|
85350
85362
|
};
|
|
85351
|
-
const enUS = {
|
|
85363
|
+
const enUS$1 = {
|
|
85352
85364
|
placeholder: {
|
|
85353
85365
|
common: {
|
|
85354
85366
|
title: "Enter a title",
|
|
@@ -85368,7 +85380,7 @@ ${data2.flowchartText}
|
|
|
85368
85380
|
limitedEnvTips: "Press {shortCut} to paste due to browser restrictions"
|
|
85369
85381
|
}
|
|
85370
85382
|
};
|
|
85371
|
-
const jaJP = {
|
|
85383
|
+
const jaJP$1 = {
|
|
85372
85384
|
placeholder: {
|
|
85373
85385
|
common: {
|
|
85374
85386
|
title: "\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
@@ -85389,11 +85401,11 @@ ${data2.flowchartText}
|
|
|
85389
85401
|
}
|
|
85390
85402
|
};
|
|
85391
85403
|
i18n$1.mergeLang({
|
|
85392
|
-
"zh-CN": zhCN,
|
|
85393
|
-
"en-US": enUS,
|
|
85394
|
-
"ja-JP": jaJP
|
|
85404
|
+
"zh-CN": zhCN$1,
|
|
85405
|
+
"en-US": enUS$1,
|
|
85406
|
+
"ja-JP": jaJP$1
|
|
85395
85407
|
});
|
|
85396
|
-
const style = "";
|
|
85408
|
+
const style$1 = "";
|
|
85397
85409
|
class AutoNewLine {
|
|
85398
85410
|
constructor(editor) {
|
|
85399
85411
|
__publicField(this, "handleClick", (e2) => {
|
|
@@ -86797,129 +86809,181 @@ ${data2.flowchartText}
|
|
|
86797
86809
|
}
|
|
86798
86810
|
class FontBoldItem extends FontStyleBaseItem {
|
|
86799
86811
|
constructor() {
|
|
86800
|
-
super("bold", "text/style-bold");
|
|
86812
|
+
super(i18n$1.t("commands.bold"), "text/style-bold");
|
|
86801
86813
|
__publicField(this, "icon", BoldIcon);
|
|
86802
86814
|
}
|
|
86803
86815
|
}
|
|
86804
86816
|
class FontItalicItem extends FontStyleBaseItem {
|
|
86805
86817
|
constructor() {
|
|
86806
|
-
super("italic", "text/style-italic");
|
|
86818
|
+
super(i18n$1.t("commands.italic"), "text/style-italic");
|
|
86807
86819
|
__publicField(this, "icon", ItalicIcon);
|
|
86808
86820
|
}
|
|
86809
86821
|
}
|
|
86810
86822
|
class FontUnderlineItem extends FontStyleBaseItem {
|
|
86811
86823
|
constructor() {
|
|
86812
|
-
super("underline", "text/style-underline");
|
|
86824
|
+
super(i18n$1.t("commands.underline"), "text/style-underline");
|
|
86813
86825
|
__publicField(this, "icon", UnderlineIcon);
|
|
86814
86826
|
}
|
|
86815
86827
|
}
|
|
86816
86828
|
class FontStrikethroughItem extends FontStyleBaseItem {
|
|
86817
86829
|
constructor() {
|
|
86818
|
-
super("strikethrough", "text/style-strikethrough");
|
|
86830
|
+
super(i18n$1.t("commands.strikethrough"), "text/style-strikethrough");
|
|
86819
86831
|
__publicField(this, "icon", LineThroughIcon);
|
|
86820
86832
|
}
|
|
86821
86833
|
}
|
|
86822
|
-
class
|
|
86823
|
-
constructor(
|
|
86824
|
-
super(
|
|
86825
|
-
__publicField(this, "
|
|
86826
|
-
__publicField(this, "states");
|
|
86827
|
-
__publicField(this, "provider");
|
|
86828
|
-
__publicField(this, "handleMousedown", (event) => {
|
|
86829
|
-
event.preventDefault();
|
|
86830
|
-
event.stopPropagation();
|
|
86831
|
-
});
|
|
86832
|
-
this.provider = new ColorStyleProvider(editor);
|
|
86833
|
-
this.addListener("onClick", this.handleChangeColor);
|
|
86834
|
-
this.element.addEventListener("mousedown", this.handleMousedown);
|
|
86834
|
+
class InlineCodeItem extends FontStyleBaseItem {
|
|
86835
|
+
constructor() {
|
|
86836
|
+
super(i18n$1.t("commands.code"), "text/style-code");
|
|
86837
|
+
__publicField(this, "icon", InlineCodeIcon);
|
|
86835
86838
|
}
|
|
86836
|
-
|
|
86837
|
-
|
|
86838
|
-
|
|
86839
|
-
|
|
86840
|
-
|
|
86841
|
-
return {
|
|
86842
|
-
...command,
|
|
86843
|
-
id: "style-font"
|
|
86844
|
-
};
|
|
86845
|
-
}
|
|
86846
|
-
return null;
|
|
86839
|
+
}
|
|
86840
|
+
class SuperscriptItem extends FontStyleBaseItem {
|
|
86841
|
+
constructor() {
|
|
86842
|
+
super(i18n$1.t("commands.superscript"), "text/style-superscript");
|
|
86843
|
+
__publicField(this, "icon", SuperscriptIcon);
|
|
86847
86844
|
}
|
|
86848
|
-
|
|
86849
|
-
|
|
86850
|
-
|
|
86851
|
-
|
|
86845
|
+
}
|
|
86846
|
+
class SubscriptItem extends FontStyleBaseItem {
|
|
86847
|
+
constructor() {
|
|
86848
|
+
super(i18n$1.t("commands.subscript"), "text/style-subscript");
|
|
86849
|
+
__publicField(this, "icon", SubscriptIcon);
|
|
86850
|
+
}
|
|
86851
|
+
}
|
|
86852
|
+
class InsertImageItem {
|
|
86853
|
+
constructor() {
|
|
86854
|
+
__publicField(this, "id", "insert-image");
|
|
86855
|
+
__publicField(this, "name", "Insert Image");
|
|
86856
|
+
__publicField(this, "icon", ImageIcon);
|
|
86857
|
+
}
|
|
86858
|
+
onClick(editor, item) {
|
|
86859
|
+
const block = editor.getBlockById(editor.selection.range.start.blockId);
|
|
86860
|
+
const insertMenuProvider = new InsertMenuProvider$1(editor);
|
|
86861
|
+
const commands = insertMenuProvider.getAvailableCommands(editor, block, editor.selection.range);
|
|
86862
|
+
const command = commands.find((c) => c.id === "insert-image");
|
|
86852
86863
|
if (command) {
|
|
86853
|
-
|
|
86854
|
-
...command,
|
|
86855
|
-
id: "style-font"
|
|
86856
|
-
}, {
|
|
86857
|
-
type,
|
|
86858
|
-
value
|
|
86859
|
-
});
|
|
86864
|
+
insertMenuProvider.executeCommand(editor, block, editor.selection.range, command, {});
|
|
86860
86865
|
}
|
|
86861
|
-
|
|
86866
|
+
}
|
|
86867
|
+
}
|
|
86868
|
+
class InsertLinkItem {
|
|
86869
|
+
constructor() {
|
|
86870
|
+
__publicField(this, "id", "insert-link");
|
|
86871
|
+
__publicField(this, "name", "Insert Link");
|
|
86872
|
+
__publicField(this, "icon", LinkIcon);
|
|
86873
|
+
__publicField(this, "states", []);
|
|
86874
|
+
}
|
|
86875
|
+
getCommand(editor) {
|
|
86876
|
+
const commands = editor.editorCommandProviders.getCommands(editor.selection.range);
|
|
86877
|
+
return commands.find((command) => command.id === "insert-link");
|
|
86862
86878
|
}
|
|
86863
86879
|
updateState(editor) {
|
|
86864
|
-
const command = this.getCommand();
|
|
86880
|
+
const command = this.getCommand(editor);
|
|
86865
86881
|
if (command) {
|
|
86866
|
-
this.name = command.name;
|
|
86867
86882
|
this.states = command.states || [];
|
|
86868
86883
|
} else {
|
|
86869
86884
|
this.states = ["disabled"];
|
|
86870
86885
|
}
|
|
86871
86886
|
}
|
|
86887
|
+
onClick(editor, item) {
|
|
86888
|
+
const command = this.getCommand(editor);
|
|
86889
|
+
if (!command) {
|
|
86890
|
+
return;
|
|
86891
|
+
}
|
|
86892
|
+
editor.editorCommandProviders.executeCommand(editor.selection.range, command, {});
|
|
86893
|
+
}
|
|
86872
86894
|
}
|
|
86873
|
-
class
|
|
86874
|
-
constructor(
|
|
86895
|
+
class OrderedListItem {
|
|
86896
|
+
constructor() {
|
|
86897
|
+
__publicField(this, "id", "ordered-list");
|
|
86898
|
+
__publicField(this, "name", "Ordered List");
|
|
86899
|
+
__publicField(this, "icon", OrderedListIcon);
|
|
86875
86900
|
__publicField(this, "states", []);
|
|
86876
|
-
this.id = id;
|
|
86877
|
-
this.name = name;
|
|
86878
|
-
this.icon = icon;
|
|
86879
86901
|
}
|
|
86880
86902
|
getCommand(editor) {
|
|
86881
|
-
var _a;
|
|
86882
86903
|
const commands = editor.editorCommandProviders.getCommands(editor.selection.range);
|
|
86883
|
-
const
|
|
86884
|
-
|
|
86885
|
-
|
|
86904
|
+
const command = commands.find((c) => c.id === this.id);
|
|
86905
|
+
return command;
|
|
86906
|
+
}
|
|
86907
|
+
updateState(editor) {
|
|
86908
|
+
const command = this.getCommand(editor);
|
|
86909
|
+
if (command) {
|
|
86910
|
+
this.name = command.name;
|
|
86911
|
+
this.states = command.states || [];
|
|
86912
|
+
} else {
|
|
86913
|
+
this.states = ["disabled"];
|
|
86886
86914
|
}
|
|
86887
|
-
const command = (_a = parentCommand.children) == null ? void 0 : _a.find((c) => c.id === this.id);
|
|
86888
|
-
return command || null;
|
|
86889
86915
|
}
|
|
86890
86916
|
onClick(editor, item) {
|
|
86891
|
-
const command =
|
|
86917
|
+
const command = {
|
|
86918
|
+
...item,
|
|
86919
|
+
group: "BlockParagraphProvider"
|
|
86920
|
+
};
|
|
86892
86921
|
editor.editorCommandProviders.executeCommand(editor.selection.range, command, {});
|
|
86893
86922
|
}
|
|
86923
|
+
}
|
|
86924
|
+
class UnorderedListItem {
|
|
86925
|
+
constructor() {
|
|
86926
|
+
__publicField(this, "id", "unordered-list");
|
|
86927
|
+
__publicField(this, "name", "Unordered List");
|
|
86928
|
+
__publicField(this, "icon", UnorderedListIcon);
|
|
86929
|
+
__publicField(this, "states", []);
|
|
86930
|
+
}
|
|
86931
|
+
getCommand(editor) {
|
|
86932
|
+
const commands = editor.editorCommandProviders.getCommands(editor.selection.range);
|
|
86933
|
+
const command = commands.find((c) => c.id === this.id);
|
|
86934
|
+
return command;
|
|
86935
|
+
}
|
|
86894
86936
|
updateState(editor) {
|
|
86895
86937
|
const command = this.getCommand(editor);
|
|
86896
86938
|
if (command) {
|
|
86939
|
+
this.name = command.name;
|
|
86897
86940
|
this.states = command.states || [];
|
|
86898
86941
|
} else {
|
|
86899
86942
|
this.states = ["disabled"];
|
|
86900
86943
|
}
|
|
86901
86944
|
}
|
|
86902
|
-
|
|
86903
|
-
|
|
86904
|
-
|
|
86905
|
-
|
|
86945
|
+
onClick(editor, item) {
|
|
86946
|
+
const command = {
|
|
86947
|
+
...item,
|
|
86948
|
+
group: "BlockParagraphProvider"
|
|
86949
|
+
};
|
|
86950
|
+
editor.editorCommandProviders.executeCommand(editor.selection.range, command, {});
|
|
86906
86951
|
}
|
|
86907
86952
|
}
|
|
86908
|
-
class
|
|
86953
|
+
class CheckListItem {
|
|
86909
86954
|
constructor() {
|
|
86910
|
-
|
|
86955
|
+
__publicField(this, "id", "check-list");
|
|
86956
|
+
__publicField(this, "name", "Check List");
|
|
86957
|
+
__publicField(this, "icon", CheckListIcon);
|
|
86958
|
+
__publicField(this, "states", []);
|
|
86911
86959
|
}
|
|
86912
|
-
|
|
86913
|
-
|
|
86914
|
-
|
|
86915
|
-
|
|
86960
|
+
getCommand(editor) {
|
|
86961
|
+
const commands = editor.editorCommandProviders.getCommands(editor.selection.range);
|
|
86962
|
+
const command = commands.find((c) => c.id === this.id);
|
|
86963
|
+
return command;
|
|
86964
|
+
}
|
|
86965
|
+
updateState(editor) {
|
|
86966
|
+
const command = this.getCommand(editor);
|
|
86967
|
+
if (command) {
|
|
86968
|
+
this.name = command.name;
|
|
86969
|
+
this.states = command.states || [];
|
|
86970
|
+
} else {
|
|
86971
|
+
this.states = ["disabled"];
|
|
86972
|
+
}
|
|
86973
|
+
}
|
|
86974
|
+
onClick(editor, item) {
|
|
86975
|
+
const command = {
|
|
86976
|
+
...item,
|
|
86977
|
+
group: "BlockParagraphProvider"
|
|
86978
|
+
};
|
|
86979
|
+
editor.editorCommandProviders.executeCommand(editor.selection.range, command, {});
|
|
86916
86980
|
}
|
|
86917
86981
|
}
|
|
86918
86982
|
class ParagraphItem {
|
|
86919
86983
|
constructor() {
|
|
86920
86984
|
__publicField(this, "children", []);
|
|
86921
86985
|
__publicField(this, "id", "paragraph");
|
|
86922
|
-
__publicField(this, "name", "
|
|
86986
|
+
__publicField(this, "name", i18n$1.t("commands.text"));
|
|
86923
86987
|
__publicField(this, "states", []);
|
|
86924
86988
|
__publicField(this, "dropdown", true);
|
|
86925
86989
|
__publicField(this, "manualShowChildren", true);
|
|
@@ -86973,9 +87037,9 @@ ${data2.flowchartText}
|
|
|
86973
87037
|
}
|
|
86974
87038
|
}
|
|
86975
87039
|
if (heading === void 0) {
|
|
86976
|
-
this.name = "
|
|
87040
|
+
this.name = i18n$1.t("commands.text");
|
|
86977
87041
|
} else {
|
|
86978
|
-
this.name =
|
|
87042
|
+
this.name = i18n$1.t("commands.heading", { name: `${heading}` });
|
|
86979
87043
|
}
|
|
86980
87044
|
}
|
|
86981
87045
|
onClick(editor, item) {
|
|
@@ -86988,193 +87052,232 @@ ${data2.flowchartText}
|
|
|
86988
87052
|
});
|
|
86989
87053
|
}
|
|
86990
87054
|
}
|
|
86991
|
-
class
|
|
86992
|
-
constructor() {
|
|
86993
|
-
__publicField(this, "id", `separator-${Date.now()}`);
|
|
86994
|
-
__publicField(this, "type", "separator");
|
|
86995
|
-
__publicField(this, "name", "");
|
|
86996
|
-
}
|
|
86997
|
-
}
|
|
86998
|
-
class OrderedListItem {
|
|
87055
|
+
class QuoteItem {
|
|
86999
87056
|
constructor() {
|
|
87000
|
-
__publicField(this, "id", "
|
|
87001
|
-
__publicField(this, "name", "
|
|
87002
|
-
__publicField(this, "icon",
|
|
87057
|
+
__publicField(this, "id", "quoted");
|
|
87058
|
+
__publicField(this, "name", "Quote");
|
|
87059
|
+
__publicField(this, "icon", QuoteIcon);
|
|
87003
87060
|
__publicField(this, "states", []);
|
|
87004
87061
|
}
|
|
87005
87062
|
getCommand(editor) {
|
|
87006
87063
|
const commands = editor.editorCommandProviders.getCommands(editor.selection.range);
|
|
87007
|
-
|
|
87008
|
-
return command;
|
|
87064
|
+
return commands.find((command) => command.id === "quote");
|
|
87009
87065
|
}
|
|
87010
87066
|
updateState(editor) {
|
|
87011
87067
|
const command = this.getCommand(editor);
|
|
87012
87068
|
if (command) {
|
|
87013
|
-
this.name = command.name;
|
|
87014
87069
|
this.states = command.states || [];
|
|
87015
87070
|
} else {
|
|
87016
87071
|
this.states = ["disabled"];
|
|
87017
87072
|
}
|
|
87018
87073
|
}
|
|
87019
87074
|
onClick(editor, item) {
|
|
87020
|
-
const command =
|
|
87021
|
-
|
|
87022
|
-
|
|
87023
|
-
}
|
|
87075
|
+
const command = this.getCommand(editor);
|
|
87076
|
+
if (!command) {
|
|
87077
|
+
return;
|
|
87078
|
+
}
|
|
87024
87079
|
editor.editorCommandProviders.executeCommand(editor.selection.range, command, {});
|
|
87025
87080
|
}
|
|
87026
87081
|
}
|
|
87027
|
-
class
|
|
87082
|
+
class SeparatorItem {
|
|
87028
87083
|
constructor() {
|
|
87029
|
-
__publicField(this, "id",
|
|
87030
|
-
__publicField(this, "
|
|
87031
|
-
__publicField(this, "
|
|
87084
|
+
__publicField(this, "id", `separator-${Date.now()}`);
|
|
87085
|
+
__publicField(this, "type", "separator");
|
|
87086
|
+
__publicField(this, "name", "");
|
|
87087
|
+
}
|
|
87088
|
+
}
|
|
87089
|
+
class AlignBaseItem {
|
|
87090
|
+
constructor(id, name, icon) {
|
|
87032
87091
|
__publicField(this, "states", []);
|
|
87092
|
+
this.id = id;
|
|
87093
|
+
this.name = name;
|
|
87094
|
+
this.icon = icon;
|
|
87033
87095
|
}
|
|
87034
87096
|
getCommand(editor) {
|
|
87097
|
+
var _a;
|
|
87035
87098
|
const commands = editor.editorCommandProviders.getCommands(editor.selection.range);
|
|
87036
|
-
const
|
|
87037
|
-
|
|
87038
|
-
|
|
87039
|
-
updateState(editor) {
|
|
87040
|
-
const command = this.getCommand(editor);
|
|
87041
|
-
if (command) {
|
|
87042
|
-
this.name = command.name;
|
|
87043
|
-
this.states = command.states || [];
|
|
87044
|
-
} else {
|
|
87045
|
-
this.states = ["disabled"];
|
|
87099
|
+
const parentCommand = commands.find((c) => c.id === "align");
|
|
87100
|
+
if (!parentCommand) {
|
|
87101
|
+
return null;
|
|
87046
87102
|
}
|
|
87103
|
+
const command = (_a = parentCommand.children) == null ? void 0 : _a.find((c) => c.id === this.id);
|
|
87104
|
+
return command || null;
|
|
87047
87105
|
}
|
|
87048
87106
|
onClick(editor, item) {
|
|
87049
|
-
const command =
|
|
87050
|
-
...item,
|
|
87051
|
-
group: "BlockParagraphProvider"
|
|
87052
|
-
};
|
|
87107
|
+
const command = this.getCommand(editor);
|
|
87053
87108
|
editor.editorCommandProviders.executeCommand(editor.selection.range, command, {});
|
|
87054
87109
|
}
|
|
87055
|
-
}
|
|
87056
|
-
class CheckListItem {
|
|
87057
|
-
constructor() {
|
|
87058
|
-
__publicField(this, "id", "check-list");
|
|
87059
|
-
__publicField(this, "name", "Check List");
|
|
87060
|
-
__publicField(this, "icon", CheckListIcon);
|
|
87061
|
-
__publicField(this, "states", []);
|
|
87062
|
-
}
|
|
87063
|
-
getCommand(editor) {
|
|
87064
|
-
const commands = editor.editorCommandProviders.getCommands(editor.selection.range);
|
|
87065
|
-
const command = commands.find((c) => c.id === this.id);
|
|
87066
|
-
return command;
|
|
87067
|
-
}
|
|
87068
87110
|
updateState(editor) {
|
|
87069
87111
|
const command = this.getCommand(editor);
|
|
87070
87112
|
if (command) {
|
|
87071
|
-
this.name = command.name;
|
|
87072
87113
|
this.states = command.states || [];
|
|
87073
87114
|
} else {
|
|
87074
87115
|
this.states = ["disabled"];
|
|
87075
87116
|
}
|
|
87076
87117
|
}
|
|
87077
|
-
|
|
87078
|
-
|
|
87079
|
-
|
|
87080
|
-
|
|
87081
|
-
};
|
|
87082
|
-
editor.editorCommandProviders.executeCommand(editor.selection.range, command, {});
|
|
87118
|
+
}
|
|
87119
|
+
class AlignLeftItem extends AlignBaseItem {
|
|
87120
|
+
constructor() {
|
|
87121
|
+
super("align-left", "Align left", AlignLeftIcon);
|
|
87083
87122
|
}
|
|
87084
87123
|
}
|
|
87085
|
-
class
|
|
87124
|
+
class AlignCenterItem extends AlignBaseItem {
|
|
87086
87125
|
constructor() {
|
|
87087
|
-
|
|
87088
|
-
__publicField(this, "name", "Insert Image");
|
|
87089
|
-
__publicField(this, "icon", ImageIcon);
|
|
87126
|
+
super("align-center", "Align center", AlignCenterIcon);
|
|
87090
87127
|
}
|
|
87091
|
-
|
|
87092
|
-
|
|
87093
|
-
|
|
87094
|
-
|
|
87095
|
-
const command = commands.find((c) => c.id === "insert-image");
|
|
87096
|
-
if (command) {
|
|
87097
|
-
insertMenuProvider.executeCommand(editor, block, editor.selection.range, command, {});
|
|
87098
|
-
}
|
|
87128
|
+
}
|
|
87129
|
+
class AlignRightItem extends AlignBaseItem {
|
|
87130
|
+
constructor() {
|
|
87131
|
+
super("align-right", "Align right", AlignRightIcon);
|
|
87099
87132
|
}
|
|
87100
87133
|
}
|
|
87101
|
-
|
|
87134
|
+
const UndoIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6 2L2.5 5.49999L6 9" stroke="currentColor" stroke-linejoin="round"></path>\n<path d="M3 5.5H9.5C11.7091 5.5 13.5 7.29086 13.5 9.5V9.5C13.5 11.7091 11.7091 13.5 9.5 13.5H8" stroke="currentColor"></path>\n</svg>';
|
|
87135
|
+
const RedoIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M10 2L13.5 5.49999L10 9" stroke="currentColor" stroke-linejoin="round"></path>\n<path d="M13 5.5H6.5C4.29086 5.5 2.5 7.29086 2.5 9.5V9.5C2.5 11.7091 4.29086 13.5 6.5 13.5H8" stroke="currentColor"></path>\n</svg>';
|
|
87136
|
+
class UndoItem {
|
|
87102
87137
|
constructor() {
|
|
87103
|
-
__publicField(this, "
|
|
87104
|
-
__publicField(this, "
|
|
87105
|
-
__publicField(this, "
|
|
87138
|
+
__publicField(this, "icon", UndoIcon);
|
|
87139
|
+
__publicField(this, "id", "undo");
|
|
87140
|
+
__publicField(this, "name", i18n$1.t("toolbar.undo"));
|
|
87106
87141
|
__publicField(this, "states", []);
|
|
87107
87142
|
}
|
|
87108
|
-
|
|
87109
|
-
|
|
87110
|
-
return commands.find((command) => command.id === "insert-link");
|
|
87143
|
+
onClick(editor, item) {
|
|
87144
|
+
editor.undoManager.undo();
|
|
87111
87145
|
}
|
|
87112
87146
|
updateState(editor) {
|
|
87113
|
-
|
|
87114
|
-
|
|
87115
|
-
this.states = command.states || [];
|
|
87147
|
+
if (editor.undoManager.canUndo()) {
|
|
87148
|
+
this.states = [];
|
|
87116
87149
|
} else {
|
|
87117
87150
|
this.states = ["disabled"];
|
|
87118
87151
|
}
|
|
87119
87152
|
}
|
|
87120
|
-
onClick(editor, item) {
|
|
87121
|
-
const command = this.getCommand(editor);
|
|
87122
|
-
if (!command) {
|
|
87123
|
-
return;
|
|
87124
|
-
}
|
|
87125
|
-
editor.editorCommandProviders.executeCommand(editor.selection.range, command, {});
|
|
87126
|
-
}
|
|
87127
87153
|
}
|
|
87128
|
-
class
|
|
87154
|
+
class RedoItem {
|
|
87129
87155
|
constructor() {
|
|
87130
|
-
__publicField(this, "
|
|
87131
|
-
__publicField(this, "
|
|
87132
|
-
__publicField(this, "
|
|
87156
|
+
__publicField(this, "icon", RedoIcon);
|
|
87157
|
+
__publicField(this, "id", "redo");
|
|
87158
|
+
__publicField(this, "name", i18n$1.t("toolbar.redo"));
|
|
87133
87159
|
__publicField(this, "states", []);
|
|
87134
87160
|
}
|
|
87135
|
-
|
|
87136
|
-
|
|
87137
|
-
return commands.find((command) => command.id === "quote");
|
|
87161
|
+
onClick(editor, item) {
|
|
87162
|
+
editor.undoManager.redo();
|
|
87138
87163
|
}
|
|
87139
87164
|
updateState(editor) {
|
|
87140
|
-
|
|
87141
|
-
|
|
87142
|
-
this.states = command.states || [];
|
|
87165
|
+
if (editor.undoManager.canRedo()) {
|
|
87166
|
+
this.states = [];
|
|
87143
87167
|
} else {
|
|
87144
87168
|
this.states = ["disabled"];
|
|
87145
87169
|
}
|
|
87146
87170
|
}
|
|
87147
|
-
|
|
87148
|
-
|
|
87149
|
-
|
|
87150
|
-
|
|
87171
|
+
}
|
|
87172
|
+
class InsertItem {
|
|
87173
|
+
constructor(editor) {
|
|
87174
|
+
__publicField(this, "name", i18n$1.t("toolbar.insert"));
|
|
87175
|
+
__publicField(this, "id", "insert");
|
|
87176
|
+
__publicField(this, "dropdown", true);
|
|
87177
|
+
__publicField(this, "manualShowChildren", true);
|
|
87178
|
+
__publicField(this, "childrenPlacement", "bottom-start");
|
|
87179
|
+
__publicField(this, "children", []);
|
|
87180
|
+
const provider = new InsertMenuProvider$1(editor);
|
|
87181
|
+
const startBlock = editor.getBlockById(editor.selection.range.start.blockId);
|
|
87182
|
+
const container = getParentContainer(startBlock);
|
|
87183
|
+
let commands = provider.getInsertCommands(editor, getContainerId(container));
|
|
87184
|
+
const index2 = commands.findIndex((c) => c.id === "section-1");
|
|
87185
|
+
if (index2 !== -1) {
|
|
87186
|
+
commands = commands.slice(index2);
|
|
87151
87187
|
}
|
|
87152
|
-
|
|
87188
|
+
this.children = commands;
|
|
87189
|
+
}
|
|
87190
|
+
onClick(editor, item) {
|
|
87191
|
+
const provider = new InsertMenuProvider$1(editor);
|
|
87192
|
+
const startBlock = editor.getBlockById(editor.selection.range.start.blockId);
|
|
87193
|
+
provider.executeCommand(editor, startBlock, editor.selection.range, item, {});
|
|
87194
|
+
}
|
|
87195
|
+
}
|
|
87196
|
+
const FindIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="11.5" cy="11.5" r="2.5" stroke="currentColor"></circle>\n<path d="M13.3542 13.3542L15 15" stroke="currentColor"></path>\n<path d="M13.5 8V5.41421C13.5 5.149 13.3946 4.89464 13.2071 4.70711L10.2929 1.79289C10.1054 1.60536 9.851 1.5 9.58579 1.5H3.5C2.94772 1.5 2.5 1.94772 2.5 2.5V13.5C2.5 14.0523 2.94772 14.5 3.5 14.5H8" stroke="currentColor" stroke-linejoin="round"></path>\n<path d="M9.5 1.5V4.5C9.5 5.05228 9.94772 5.5 10.5 5.5H13.5" stroke="currentColor" stroke-linejoin="round"></path>\n</svg>';
|
|
87197
|
+
class FindReplaceItem {
|
|
87198
|
+
constructor() {
|
|
87199
|
+
__publicField(this, "id", "find-replace");
|
|
87200
|
+
__publicField(this, "name", i18n$1.t("toolbar.findReplace"));
|
|
87201
|
+
__publicField(this, "icon", FindIcon);
|
|
87202
|
+
}
|
|
87203
|
+
onClick(editor, item) {
|
|
87204
|
+
editorShowFindDialog(editor);
|
|
87205
|
+
}
|
|
87206
|
+
}
|
|
87207
|
+
class CommentItem {
|
|
87208
|
+
constructor() {
|
|
87209
|
+
__publicField(this, "id", "comment");
|
|
87210
|
+
__publicField(this, "name", i18n$1.t("comment.command"));
|
|
87211
|
+
__publicField(this, "icon", CommentIcon$1);
|
|
87212
|
+
}
|
|
87213
|
+
onClick(editor, item) {
|
|
87214
|
+
editorAddComment(editor);
|
|
87153
87215
|
}
|
|
87154
87216
|
}
|
|
87155
87217
|
function getToolbarDefaultItems(editor) {
|
|
87156
87218
|
return [
|
|
87219
|
+
new UndoItem(),
|
|
87220
|
+
new RedoItem(),
|
|
87221
|
+
new SeparatorItem(),
|
|
87157
87222
|
new ParagraphItem(),
|
|
87158
87223
|
new SeparatorItem(),
|
|
87159
87224
|
new FontBoldItem(),
|
|
87160
87225
|
new FontItalicItem(),
|
|
87161
87226
|
new FontUnderlineItem(),
|
|
87162
87227
|
new FontStrikethroughItem(),
|
|
87163
|
-
new TextColorItem
|
|
87164
|
-
new
|
|
87165
|
-
new
|
|
87166
|
-
new
|
|
87167
|
-
new AlignRightItem(),
|
|
87228
|
+
new TextColorItem(editor),
|
|
87229
|
+
new InlineCodeItem(),
|
|
87230
|
+
new SuperscriptItem(),
|
|
87231
|
+
new SubscriptItem(),
|
|
87168
87232
|
new SeparatorItem(),
|
|
87169
87233
|
new OrderedListItem(),
|
|
87170
87234
|
new UnorderedListItem(),
|
|
87171
87235
|
new CheckListItem(),
|
|
87236
|
+
new InsertLinkItem(),
|
|
87237
|
+
new QuoteItem(),
|
|
87238
|
+
new SeparatorItem(),
|
|
87239
|
+
new AlignLeftItem(),
|
|
87240
|
+
new AlignCenterItem(),
|
|
87241
|
+
new AlignRightItem(),
|
|
87172
87242
|
new SeparatorItem(),
|
|
87173
87243
|
new InsertImageItem(),
|
|
87174
|
-
new
|
|
87175
|
-
new
|
|
87244
|
+
new SeparatorItem(),
|
|
87245
|
+
new InsertItem(editor),
|
|
87246
|
+
new SeparatorItem(),
|
|
87247
|
+
new FindReplaceItem(),
|
|
87248
|
+
new CommentItem()
|
|
87176
87249
|
];
|
|
87177
87250
|
}
|
|
87251
|
+
const zhCN = {
|
|
87252
|
+
toolbar: {
|
|
87253
|
+
undo: "\u64A4\u9500",
|
|
87254
|
+
redo: "\u91CD\u505A",
|
|
87255
|
+
insert: "\u63D2\u5165",
|
|
87256
|
+
findReplace: "\u67E5\u627E\u548C\u66FF\u6362"
|
|
87257
|
+
}
|
|
87258
|
+
};
|
|
87259
|
+
const enUS = {
|
|
87260
|
+
toolbar: {
|
|
87261
|
+
undo: "Undo",
|
|
87262
|
+
redo: "Redo",
|
|
87263
|
+
insert: "Insert",
|
|
87264
|
+
findReplace: "Find & Replace"
|
|
87265
|
+
}
|
|
87266
|
+
};
|
|
87267
|
+
const jaJP = {
|
|
87268
|
+
toolbar: {
|
|
87269
|
+
undo: "\u5143\u306B\u623B\u3059",
|
|
87270
|
+
redo: "\u3084\u308A\u76F4\u3059",
|
|
87271
|
+
insert: "\u633F\u5165",
|
|
87272
|
+
findReplace: "\u691C\u7D22\u3068\u7F6E\u63DB"
|
|
87273
|
+
}
|
|
87274
|
+
};
|
|
87275
|
+
i18n$1.mergeLang({
|
|
87276
|
+
"zh-CN": zhCN,
|
|
87277
|
+
"en-US": enUS,
|
|
87278
|
+
"ja-JP": jaJP
|
|
87279
|
+
});
|
|
87280
|
+
const style = "";
|
|
87178
87281
|
class MainToolbar {
|
|
87179
87282
|
constructor(editor, parent) {
|
|
87180
87283
|
__publicField(this, "toolbar");
|
|
@@ -87214,7 +87317,10 @@ ${data2.flowchartText}
|
|
|
87214
87317
|
this.updateState();
|
|
87215
87318
|
});
|
|
87216
87319
|
this.editor = editor;
|
|
87217
|
-
this.toolbar = new FixedToolbar(parent, this.getItems()
|
|
87320
|
+
this.toolbar = new FixedToolbar(parent, this.getItems(), {
|
|
87321
|
+
tooltipId: editor.clientId,
|
|
87322
|
+
id: "main-toolbar"
|
|
87323
|
+
});
|
|
87218
87324
|
this.toolbar.addListener("click", this.handleClick);
|
|
87219
87325
|
this.editor.addListener("selectionChanged", this.handleSelectionChanged);
|
|
87220
87326
|
this.updateState();
|
|
@@ -87226,27 +87332,7 @@ ${data2.flowchartText}
|
|
|
87226
87332
|
this.updateState();
|
|
87227
87333
|
}
|
|
87228
87334
|
getItems() {
|
|
87229
|
-
return
|
|
87230
|
-
new ParagraphItem(),
|
|
87231
|
-
new SeparatorItem(),
|
|
87232
|
-
new FontBoldItem(),
|
|
87233
|
-
new FontItalicItem(),
|
|
87234
|
-
new FontUnderlineItem(),
|
|
87235
|
-
new FontStrikethroughItem(),
|
|
87236
|
-
new TextColorItem(this.editor),
|
|
87237
|
-
new SeparatorItem(),
|
|
87238
|
-
new AlignLeftItem(),
|
|
87239
|
-
new AlignCenterItem(),
|
|
87240
|
-
new AlignRightItem(),
|
|
87241
|
-
new SeparatorItem(),
|
|
87242
|
-
new OrderedListItem(),
|
|
87243
|
-
new UnorderedListItem(),
|
|
87244
|
-
new CheckListItem(),
|
|
87245
|
-
new SeparatorItem(),
|
|
87246
|
-
new InsertImageItem(),
|
|
87247
|
-
new InsertLinkItem(),
|
|
87248
|
-
new QuoteItem()
|
|
87249
|
-
];
|
|
87335
|
+
return getToolbarDefaultItems(this.editor);
|
|
87250
87336
|
}
|
|
87251
87337
|
updateState() {
|
|
87252
87338
|
const items = this.toolbar.items;
|
|
@@ -87474,7 +87560,7 @@ ${data2.flowchartText}
|
|
|
87474
87560
|
}
|
|
87475
87561
|
}
|
|
87476
87562
|
});
|
|
87477
|
-
editor.version = "2.1.7-beta.
|
|
87563
|
+
editor.version = "2.1.7-beta.9";
|
|
87478
87564
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
87479
87565
|
window.setReauthFail = (fail) => {
|
|
87480
87566
|
window.isReauthError = fail;
|
|
@@ -87593,7 +87679,7 @@ ${data2.flowchartText}
|
|
|
87593
87679
|
}
|
|
87594
87680
|
}
|
|
87595
87681
|
OnesEditorToolbar.register(editor);
|
|
87596
|
-
editor.version = "2.1.7-beta.
|
|
87682
|
+
editor.version = "2.1.7-beta.9";
|
|
87597
87683
|
return editor;
|
|
87598
87684
|
}
|
|
87599
87685
|
async function showDocVersions(editor, options, serverUrl) {
|
|
@@ -133393,6 +133479,7 @@ ${data2.flowchartText}
|
|
|
133393
133479
|
exports2.CodeLineBlock = CodeLineBlock;
|
|
133394
133480
|
exports2.CodeTextDecorator = CodeTextDecorator;
|
|
133395
133481
|
exports2.ColorStyleProvider = ColorStyleProvider;
|
|
133482
|
+
exports2.CommentItem = CommentItem;
|
|
133396
133483
|
exports2.CommentsCommandProvider = CommentsCommandProvider;
|
|
133397
133484
|
exports2.DOC_RE_AUTH_KEYS = DOC_RE_AUTH_KEYS;
|
|
133398
133485
|
exports2.DefaultShortcuts = DefaultShortcuts;
|
|
@@ -133416,6 +133503,7 @@ ${data2.flowchartText}
|
|
|
133416
133503
|
exports2.EventCallbacks = EventCallbacks;
|
|
133417
133504
|
exports2.FILL_CHAR = FILL_CHAR;
|
|
133418
133505
|
exports2.FileExtError = FileExtError;
|
|
133506
|
+
exports2.FindReplaceItem = FindReplaceItem;
|
|
133419
133507
|
exports2.FixedToolbar = FixedToolbar;
|
|
133420
133508
|
exports2.FontBoldItem = FontBoldItem;
|
|
133421
133509
|
exports2.FontItalicItem = FontItalicItem;
|
|
@@ -133425,10 +133513,12 @@ ${data2.flowchartText}
|
|
|
133425
133513
|
exports2.HeadingProvider = HeadingProvider;
|
|
133426
133514
|
exports2.ImageBox = ImageBox;
|
|
133427
133515
|
exports2.InlineBoxCommandProvider = InlineBoxCommandProvider;
|
|
133516
|
+
exports2.InlineCodeItem = InlineCodeItem;
|
|
133428
133517
|
exports2.InlineCodeProvider = InlineCodeProvider;
|
|
133429
133518
|
exports2.InlineStyleProvider = InlineStyleProvider;
|
|
133430
133519
|
exports2.InputtingInsertion = InputtingInsertion;
|
|
133431
133520
|
exports2.InsertImageItem = InsertImageItem;
|
|
133521
|
+
exports2.InsertItem = InsertItem;
|
|
133432
133522
|
exports2.InsertLinkItem = InsertLinkItem;
|
|
133433
133523
|
exports2.InsertMenuProvider = InsertMenuProvider$1;
|
|
133434
133524
|
exports2.LayoutBlock = LayoutBlock;
|
|
@@ -133472,6 +133562,7 @@ ${data2.flowchartText}
|
|
|
133472
133562
|
exports2.QuotedProvider = QuotedProvider;
|
|
133473
133563
|
exports2.ReAuthToolbar = ReAuthToolbar;
|
|
133474
133564
|
exports2.ReadonlyToolbar = ReadonlyToolbar;
|
|
133565
|
+
exports2.RedoItem = RedoItem;
|
|
133475
133566
|
exports2.RemoteCarets = RemoteCarets;
|
|
133476
133567
|
exports2.RemoteCaretsDecorator = RemoteCaretsDecorator;
|
|
133477
133568
|
exports2.RemoteCaretsInsertion = RemoteCaretsInsertion;
|
|
@@ -133487,6 +133578,8 @@ ${data2.flowchartText}
|
|
|
133487
133578
|
exports2.ShareDBServer = ShareDBServer;
|
|
133488
133579
|
exports2.SimpleCache = SimpleCache;
|
|
133489
133580
|
exports2.StandardEmbedBlockCommands = StandardEmbedBlockCommands;
|
|
133581
|
+
exports2.SubscriptItem = SubscriptItem;
|
|
133582
|
+
exports2.SuperscriptItem = SuperscriptItem;
|
|
133490
133583
|
exports2.TEXT_STYLE_BACKGROUND_COLOR_PREFIX = TEXT_STYLE_BACKGROUND_COLOR_PREFIX;
|
|
133491
133584
|
exports2.TEXT_STYLE_COLOR_PREFIX = TEXT_STYLE_COLOR_PREFIX;
|
|
133492
133585
|
exports2.TableBlock = TableBlock;
|
|
@@ -133494,11 +133587,12 @@ ${data2.flowchartText}
|
|
|
133494
133587
|
exports2.TableShortcuts = TableShortcuts;
|
|
133495
133588
|
exports2.TextBlock = TextBlock;
|
|
133496
133589
|
exports2.TextBox = TextBox;
|
|
133497
|
-
exports2.TextColorItem = TextColorItem
|
|
133590
|
+
exports2.TextColorItem = TextColorItem;
|
|
133498
133591
|
exports2.TextCommandProvider = TextCommandProvider;
|
|
133499
133592
|
exports2.TextScriptProvider = TextScriptProvider;
|
|
133500
133593
|
exports2.TextStyleShortcuts = TextStyleShortcuts;
|
|
133501
133594
|
exports2.TocEmbed = TocEmbed;
|
|
133595
|
+
exports2.UndoItem = UndoItem;
|
|
133502
133596
|
exports2.UnorderedListItem = UnorderedListItem;
|
|
133503
133597
|
exports2.ZERO_WIDTH_SPACE_CHAR = ZERO_WIDTH_SPACE_CHAR;
|
|
133504
133598
|
exports2.abbreviation = abbreviation;
|