@ones-editor/editor 2.8.37-beta.3 → 2.8.37-beta.30

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.
Files changed (30) hide show
  1. package/@ones-editor/core/src/core/selection/range/simple-range.d.ts +2 -2
  2. package/@ones-editor/core/src/core/types.d.ts +2 -0
  3. package/@ones-editor/html-to-doc/src/html-to-doc/office-html-to-doc/helper/elem.d.ts +1 -0
  4. package/@ones-editor/main-toolbar/src/index.d.ts +1 -0
  5. package/@ones-editor/main-toolbar/src/items/comment.d.ts +1 -0
  6. package/@ones-editor/main-toolbar/src/items/file.d.ts +8 -0
  7. package/@ones-editor/main-toolbar/src/items/index.d.ts +4 -2
  8. package/@ones-editor/main-toolbar/src/items/insert.d.ts +2 -1
  9. package/@ones-editor/main-toolbar/src/items/mention.d.ts +8 -0
  10. package/@ones-editor/main-toolbar/src/locale/en-us.d.ts +3 -0
  11. package/@ones-editor/main-toolbar/src/locale/ja-jp.d.ts +3 -0
  12. package/@ones-editor/main-toolbar/src/locale/zh-cn.d.ts +3 -0
  13. package/@ones-editor/main-toolbar/src/locale/zh-hant-hk.d.ts +3 -0
  14. package/@ones-editor/main-toolbar/src/types.d.ts +2 -1
  15. package/@ones-editor/scroll-container/src/scroll-bar-handle.d.ts +1 -4
  16. package/@ones-editor/sharedb-doc/src/doc/auth-connection.d.ts +1 -0
  17. package/@ones-editor/sharedb-doc/src/doc/edit-status.d.ts +1 -1
  18. package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +1 -0
  19. package/@ones-editor/to-docx/src/index.d.ts +1 -0
  20. package/@ones-editor/to-docx/src/locale/en-us.d.ts +7 -0
  21. package/@ones-editor/to-docx/src/locale/index.d.ts +1 -0
  22. package/@ones-editor/to-docx/src/locale/ja-jp.d.ts +7 -0
  23. package/@ones-editor/to-docx/src/locale/zh-cn.d.ts +7 -0
  24. package/@ones-editor/to-docx/src/locale/zh-hant-hk.d.ts +7 -0
  25. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  26. package/@ones-editor/ui-base/src/icons/index.d.ts +3 -1
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.js +633 -380
  29. package/dist/types.d.ts +1 -0
  30. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2196,7 +2196,7 @@ div.scroll-container-root > div.container-scroll-tool .container-left-border-sha
2196
2196
  div.scroll-container-root > div.container-scroll-tool .container-scrollbar {
2197
2197
  position: absolute;
2198
2198
  left: 0;
2199
- z-index: 1000;
2199
+ z-index: 700;
2200
2200
  visibility: visible;
2201
2201
  overflow-x: auto;
2202
2202
  overflow-y: hidden;
@@ -3855,7 +3855,7 @@ div.comment-editor-root [data-type=editor-container].root div[data-type=editor-b
3855
3855
  min-width: 0;
3856
3856
  }
3857
3857
  .editor-root:not(.mobile) [data-type=editor-container].root div[data-type=editor-block].code-block {
3858
- min-width: 360px;
3858
+ min-width: 200px;
3859
3859
  }div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-align=center] [data-type=block-content][data-content-placeholder]::before {
3860
3860
  justify-content: center;
3861
3861
  }
@@ -5658,22 +5658,11 @@ div.editor-root div.editor-content div[data-type=editor-container] div.embed-blo
5658
5658
  color: #87888A;
5659
5659
  font-size: 12px;
5660
5660
  }
5661
- div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-info .file-creator {
5662
- max-width: 80px;
5661
+ div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-info .info {
5663
5662
  white-space: nowrap;
5664
5663
  overflow: hidden;
5665
5664
  text-overflow: ellipsis;
5666
5665
  }
5667
- div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-info .uploaded-time {
5668
- margin-left: 5px;
5669
- white-space: nowrap;
5670
- overflow: hidden;
5671
- text-overflow: ellipsis;
5672
- }
5673
- div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-info .file-size {
5674
- margin-left: 15px;
5675
- flex-shrink: 0;
5676
- }
5677
5666
  div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-actions {
5678
5667
  position: absolute;
5679
5668
  top: 0;
@@ -5728,10 +5717,10 @@ div.editor-root div.editor-content div[data-type=editor-container] div.embed-blo
5728
5717
  height: 24px;
5729
5718
  }
5730
5719
  div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] {
5731
- min-width: 360px;
5720
+ min-width: 200px;
5732
5721
  }
5733
5722
  div.editor-root:not(.mobile) div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root {
5734
- min-width: 360px;
5723
+ min-width: 200px;
5735
5724
  }:root {
5736
5725
  --editor-version-button-border: black;
5737
5726
  --editor-bg-color: #ffffff;
@@ -9089,7 +9078,7 @@ var __publicField = (obj, key, value) => {
9089
9078
  loggerClass.set(category, instance);
9090
9079
  return instance;
9091
9080
  }
9092
- const enUS$x = {
9081
+ const enUS$y = {
9093
9082
  name: "ONES Editor",
9094
9083
  date: {
9095
9084
  dateFromFuture: "From the future",
@@ -9109,7 +9098,7 @@ var __publicField = (obj, key, value) => {
9109
9098
  imageExportFailed: "Failed to load image"
9110
9099
  }
9111
9100
  };
9112
- const zhCN$x = {
9101
+ const zhCN$y = {
9113
9102
  name: "Ones Editor",
9114
9103
  date: {
9115
9104
  dateFromFuture: "\u6765\u81EA\u672A\u6765",
@@ -9129,7 +9118,7 @@ var __publicField = (obj, key, value) => {
9129
9118
  imageExportFailed: "\u56FE\u7247\u52A0\u8F7D\u5931\u8D25"
9130
9119
  }
9131
9120
  };
9132
- const zhHK$x = {
9121
+ const zhHK$y = {
9133
9122
  name: "Ones Editor",
9134
9123
  date: {
9135
9124
  dateFromFuture: "\u4F86\u81EA\u672A\u4F86",
@@ -9149,7 +9138,7 @@ var __publicField = (obj, key, value) => {
9149
9138
  imageExportFailed: "\u5716\u7247\u52A0\u8F09\u5931\u6557"
9150
9139
  }
9151
9140
  };
9152
- const jaJP$x = {
9141
+ const jaJP$y = {
9153
9142
  name: "ONES \u30A8\u30C7\u30A3\u30BF\u30FC",
9154
9143
  date: {
9155
9144
  dateFromFuture: "\u672A\u6765\u304B\u3089",
@@ -9171,10 +9160,10 @@ var __publicField = (obj, key, value) => {
9171
9160
  };
9172
9161
  const logger$4T = getLogger("i18n");
9173
9162
  const langs$3 = {
9174
- "en-US": enUS$x,
9175
- "zh-CN": zhCN$x,
9176
- "zh-HK": zhHK$x,
9177
- "ja-JP": jaJP$x
9163
+ "en-US": enUS$y,
9164
+ "zh-CN": zhCN$y,
9165
+ "zh-HK": zhHK$y,
9166
+ "ja-JP": jaJP$y
9178
9167
  };
9179
9168
  const i18n = KiwiIntl__default.default.init("en-US", langs$3);
9180
9169
  let currentLang = "en-US";
@@ -26343,7 +26332,7 @@ var __publicField = (obj, key, value) => {
26343
26332
  }
26344
26333
  }
26345
26334
  function moveInputToScreenCenter(editor) {
26346
- const container = editor.rootElement;
26335
+ const container = getScrollContainer$1(editor.rootContainer);
26347
26336
  const rect = container.getBoundingClientRect();
26348
26337
  const scale = getElementScale(container);
26349
26338
  const windowWidth = window.innerWidth;
@@ -26355,7 +26344,7 @@ var __publicField = (obj, key, value) => {
26355
26344
  const centerX = (x1 + x2) / 2;
26356
26345
  const centerY = (y1 + y2) / 2;
26357
26346
  const x = 0 - rect.left + centerX;
26358
- const y = 0 - rect.top + centerY;
26347
+ const y = 0 - rect.top + centerY + container.scrollTop;
26359
26348
  const input2 = editor.input.inputElement;
26360
26349
  input2.style.left = `${x / scale}px`;
26361
26350
  input2.style.top = `${y / scale}px`;
@@ -26552,6 +26541,9 @@ var __publicField = (obj, key, value) => {
26552
26541
  }
26553
26542
  }
26554
26543
  function editorScrollIntoView(editor) {
26544
+ if (!editor.scrollable()) {
26545
+ return;
26546
+ }
26555
26547
  if (!isElementVisible(editor.rootContainer)) {
26556
26548
  logger$3R.warn("editorScrollIntoView: editor is not visible");
26557
26549
  return;
@@ -31895,6 +31887,7 @@ ${codeText}
31895
31887
  __publicField(this, "inputHandlers", new EditorInputHandlers(this));
31896
31888
  __publicField(this, "settingsProvider");
31897
31889
  __publicField(this, "_readonly", false);
31890
+ __publicField(this, "_scrollable", true);
31898
31891
  __publicField(this, "getColor", (index2) => {
31899
31892
  const colors = this.options.colors;
31900
31893
  if (colors.length === 0) {
@@ -32123,6 +32116,12 @@ ${codeText}
32123
32116
  return false;
32124
32117
  return elem.closest("div.editor-root") === this.rootElement;
32125
32118
  }
32119
+ scrollable() {
32120
+ return this._scrollable;
32121
+ }
32122
+ setScrollable(scrollable2) {
32123
+ this._scrollable = scrollable2;
32124
+ }
32126
32125
  insertBlock(containerId, blockIndex, blockData, newRange, options) {
32127
32126
  const defaultPos = { blockId: blockData.id, offset: 0 };
32128
32127
  const defaultRange = { anchor: defaultPos, focus: defaultPos };
@@ -38233,6 +38232,7 @@ ${codeText}
38233
38232
  }
38234
38233
  try {
38235
38234
  origHandleMessage(msg);
38235
+ this.emit("opReceived");
38236
38236
  } catch (err) {
38237
38237
  if ((err == null ? void 0 : err.type) === "writeConflict") {
38238
38238
  this.emitWriteConflictError(err, msg);
@@ -39337,9 +39337,9 @@ ${codeText}
39337
39337
  }
39338
39338
  setStatus(status) {
39339
39339
  var _a, _b, _c;
39340
- if (status === "clean") {
39340
+ if (status === "clean" || status === "busy") {
39341
39341
  if (this.dirtyTimeout) {
39342
- logger$2U.info("on clean");
39342
+ logger$2U.info(`on ${status}`);
39343
39343
  clearTimeout(this.dirtyTimeout);
39344
39344
  this.dirtyTimeout = null;
39345
39345
  }
@@ -39411,6 +39411,9 @@ ${codeText}
39411
39411
  __publicField(this, "handleWriteConflictError", (error2) => {
39412
39412
  this.handleReset(`write conflict: ${error2.message}, ${JSON.stringify(error2.orgMsg)}`);
39413
39413
  });
39414
+ __publicField(this, "handleOpReceived", () => {
39415
+ this.editStatus.setStatus("busy");
39416
+ });
39414
39417
  __publicField(this, "insertObject", async (rootObjectName, index2, obj) => {
39415
39418
  const ops = [rootObjectName, index2, { i: obj }];
39416
39419
  return this.submitOp(ops);
@@ -39504,7 +39507,10 @@ ${codeText}
39504
39507
  if (containers.length === 0) {
39505
39508
  return Promise.resolve();
39506
39509
  }
39507
- const ops = containers.map(({ containerId, blocks }) => [docObjectContainerId2EditorDocContainerId(containerId), { i: blocks }]);
39510
+ const ops = containers.map(({ containerId, blocks }) => [
39511
+ docObjectContainerId2EditorDocContainerId(containerId),
39512
+ { i: blocks }
39513
+ ]);
39508
39514
  return this.submitOp([ops]);
39509
39515
  });
39510
39516
  __publicField(this, "submitDeleteChildContainer", async (containerId) => {
@@ -39523,7 +39529,10 @@ ${codeText}
39523
39529
  if (delta.delete.length === 0 && Object.keys(delta.insert).length === 0) {
39524
39530
  return Promise.resolve();
39525
39531
  }
39526
- const ops = [docObjectContainerId2EditorDocContainerId(containerId), index2];
39532
+ const ops = [
39533
+ docObjectContainerId2EditorDocContainerId(containerId),
39534
+ index2
39535
+ ];
39527
39536
  const deletedKeysSet = new Set(delta.delete);
39528
39537
  Object.entries(delta.insert).forEach(([key, value]) => {
39529
39538
  if (deletedKeysSet.has(key)) {
@@ -39574,6 +39583,7 @@ ${codeText}
39574
39583
  this.disableLogout = disableLogout;
39575
39584
  this.registerCallback(this.remoteCaretHandler);
39576
39585
  this.editStatus = new EditStatus(options);
39586
+ this.client.connection.addListener("opReceived", this.handleOpReceived);
39577
39587
  }
39578
39588
  beginBatchUpdate() {
39579
39589
  this.doc.preventCompose = false;
@@ -39758,7 +39768,9 @@ ${codeText}
39758
39768
  this.endBatchUpdate();
39759
39769
  }
39760
39770
  getComments() {
39761
- const comments = Object.values(this.data().comments).map((comment) => shareDBDocCommentToComment(comment));
39771
+ const comments = Object.values(this.data().comments).map(
39772
+ (comment) => shareDBDocCommentToComment(comment)
39773
+ );
39762
39774
  return comments;
39763
39775
  }
39764
39776
  getComment(commentId) {
@@ -39813,47 +39825,59 @@ ${codeText}
39813
39825
  }
39814
39826
  onDeleteBlock(containerId, blockIndex, local) {
39815
39827
  assert(logger$2T, this.callbacks.length > 0, "no callbacks");
39816
- this.callbacks.forEach((cb) => {
39817
- var _a;
39818
- return (_a = cb.onDeleteBlock) == null ? void 0 : _a.call(cb, editorDpcContainerId2DocObjectContainerId(containerId), blockIndex, local);
39819
- });
39828
+ this.callbacks.forEach(
39829
+ (cb) => {
39830
+ var _a;
39831
+ return (_a = cb.onDeleteBlock) == null ? void 0 : _a.call(cb, editorDpcContainerId2DocObjectContainerId(containerId), blockIndex, local);
39832
+ }
39833
+ );
39820
39834
  }
39821
39835
  onInsertBlock(containerId, blockIndex, data2, local) {
39822
39836
  assert(logger$2T, this.callbacks.length > 0, "no callbacks");
39823
- this.callbacks.forEach((cb) => {
39824
- var _a;
39825
- return (_a = cb.onInsertBlock) == null ? void 0 : _a.call(cb, editorDpcContainerId2DocObjectContainerId(containerId), blockIndex, data2, local);
39826
- });
39837
+ this.callbacks.forEach(
39838
+ (cb) => {
39839
+ var _a;
39840
+ return (_a = cb.onInsertBlock) == null ? void 0 : _a.call(cb, editorDpcContainerId2DocObjectContainerId(containerId), blockIndex, data2, local);
39841
+ }
39842
+ );
39827
39843
  }
39828
39844
  onUpdateBlockData(containerId, blockIndex, delta, local) {
39829
39845
  assert(logger$2T, this.callbacks.length > 0, "no callbacks");
39830
- this.callbacks.forEach((cb) => {
39831
- var _a;
39832
- return (_a = cb.onUpdateBlockData) == null ? void 0 : _a.call(cb, editorDpcContainerId2DocObjectContainerId(containerId), blockIndex, delta, local);
39833
- });
39846
+ this.callbacks.forEach(
39847
+ (cb) => {
39848
+ var _a;
39849
+ return (_a = cb.onUpdateBlockData) == null ? void 0 : _a.call(cb, editorDpcContainerId2DocObjectContainerId(containerId), blockIndex, delta, local);
39850
+ }
39851
+ );
39834
39852
  }
39835
39853
  onUpdateBlockText(containerId, blockIndex, actions2, local) {
39836
39854
  assert(logger$2T, this.callbacks.length > 0, "no callbacks");
39837
- this.callbacks.forEach((cb) => {
39838
- var _a;
39839
- return (_a = cb.onUpdateBlockText) == null ? void 0 : _a.call(cb, editorDpcContainerId2DocObjectContainerId(containerId), blockIndex, actions2, local);
39840
- });
39855
+ this.callbacks.forEach(
39856
+ (cb) => {
39857
+ var _a;
39858
+ return (_a = cb.onUpdateBlockText) == null ? void 0 : _a.call(cb, editorDpcContainerId2DocObjectContainerId(containerId), blockIndex, actions2, local);
39859
+ }
39860
+ );
39841
39861
  }
39842
39862
  onDeleteContainer(containerId, local) {
39843
39863
  assert(logger$2T, this.callbacks.length > 0, "no callbacks");
39844
39864
  assert(logger$2T, containerId !== "root", "should not delete root container in doc");
39845
- this.callbacks.forEach((cb) => {
39846
- var _a;
39847
- return (_a = cb.onDeleteChildContainer) == null ? void 0 : _a.call(cb, editorDpcContainerId2DocObjectContainerId(containerId), local);
39848
- });
39865
+ this.callbacks.forEach(
39866
+ (cb) => {
39867
+ var _a;
39868
+ return (_a = cb.onDeleteChildContainer) == null ? void 0 : _a.call(cb, editorDpcContainerId2DocObjectContainerId(containerId), local);
39869
+ }
39870
+ );
39849
39871
  }
39850
39872
  onCreateContainer(containerId, blocks, local) {
39851
39873
  assert(logger$2T, this.callbacks.length > 0, "no callbacks");
39852
39874
  assert(logger$2T, containerId !== "root", "should not create root container in doc");
39853
- this.callbacks.forEach((cb) => {
39854
- var _a;
39855
- return (_a = cb.onInsertChildContainer) == null ? void 0 : _a.call(cb, editorDpcContainerId2DocObjectContainerId(containerId), blocks, local);
39856
- });
39875
+ this.callbacks.forEach(
39876
+ (cb) => {
39877
+ var _a;
39878
+ return (_a = cb.onInsertChildContainer) == null ? void 0 : _a.call(cb, editorDpcContainerId2DocObjectContainerId(containerId), blocks, local);
39879
+ }
39880
+ );
39857
39881
  }
39858
39882
  onDeleteComment(commentId, local) {
39859
39883
  assert(logger$2T, this.callbacks.length > 0, "no callbacks");
@@ -40676,7 +40700,7 @@ ${codeText}
40676
40700
  handler.removeListener("insert", callback);
40677
40701
  }
40678
40702
  const style$e = "";
40679
- const zhCN$w = {
40703
+ const zhCN$x = {
40680
40704
  button: {
40681
40705
  ok: "\u786E\u5B9A",
40682
40706
  cancel: "\u53D6\u6D88",
@@ -40714,7 +40738,7 @@ ${codeText}
40714
40738
  loading: "\u52A0\u8F7D\u4E2D..."
40715
40739
  }
40716
40740
  };
40717
- const zhHK$w = {
40741
+ const zhHK$x = {
40718
40742
  button: {
40719
40743
  ok: "\u78BA\u5B9A",
40720
40744
  cancel: "\u53D6\u6D88",
@@ -40752,7 +40776,7 @@ ${codeText}
40752
40776
  loading: "\u52A0\u8F09\u4E2D..."
40753
40777
  }
40754
40778
  };
40755
- const enUS$w = {
40779
+ const enUS$x = {
40756
40780
  button: {
40757
40781
  ok: "OK",
40758
40782
  cancel: "Cancel",
@@ -40790,7 +40814,7 @@ ${codeText}
40790
40814
  loading: "Loading..."
40791
40815
  }
40792
40816
  };
40793
- const jaJP$w = {
40817
+ const jaJP$x = {
40794
40818
  button: {
40795
40819
  ok: "\u9069\u7528",
40796
40820
  cancel: "\u30AD\u30E3\u30F3\u30BB\u30EB",
@@ -40829,10 +40853,10 @@ ${codeText}
40829
40853
  }
40830
40854
  };
40831
40855
  i18n$1.mergeLang({
40832
- "zh-CN": zhCN$w,
40833
- "zh-HK": zhHK$w,
40834
- "en-US": enUS$w,
40835
- "ja-JP": jaJP$w
40856
+ "zh-CN": zhCN$x,
40857
+ "zh-HK": zhHK$x,
40858
+ "en-US": enUS$x,
40859
+ "ja-JP": jaJP$x
40836
40860
  });
40837
40861
  const button = "";
40838
40862
  const logger$2N = getLogger("button");
@@ -41032,6 +41056,8 @@ ${codeText}
41032
41056
  const TableEditIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M8 14.5H2.5C1.94772 14.5 1.5 14.0523 1.5 13.5V2.5C1.5 1.94772 1.94772 1.5 2.5 1.5H13.5C14.0523 1.5 14.5 1.94772 14.5 2.5V8" stroke="#2D2D2E"/>\n<path d="M1.6 4.8H14.4" stroke="#2D2D2E"/>\n<path d="M1.6 9.6H8.00078" stroke="#2D2D2E"/>\n<path d="M5.6 1.6L5.6 14.4" stroke="#2D2D2E"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M11.5043 8.98727L11.6789 8.22924C11.7097 8.09564 11.8387 8 11.9881 8H12.8119C12.9613 8 13.0903 8.09564 13.1211 8.22924L13.2957 8.98727C13.3177 9.08256 13.3912 9.16027 13.488 9.20102C13.569 9.23514 13.648 9.2726 13.7248 9.31318C13.8018 9.35372 13.877 9.3976 13.95 9.44477C14.037 9.50098 14.1474 9.52034 14.2487 9.49008L15.0543 9.24927C15.1963 9.20683 15.3514 9.26108 15.4261 9.37933L15.9576 10.2206C16.0323 10.3389 16.0062 10.4888 15.895 10.5799L15.2639 11.0972C15.1846 11.1622 15.1477 11.2593 15.1575 11.3562C15.1657 11.4375 15.1698 11.5189 15.1697 11.6C15.1698 11.6811 15.1658 11.7625 15.1576 11.8438C15.1478 11.9407 15.1847 12.0378 15.264 12.1028L15.895 12.62C16.0062 12.7112 16.0324 12.8611 15.9577 12.9793L15.4262 13.8206C15.3515 13.9389 15.1963 13.9931 15.0544 13.9507L14.2487 13.7099C14.1474 13.6796 14.037 13.699 13.95 13.7552C13.877 13.8024 13.8018 13.8463 13.7248 13.8868C13.648 13.9274 13.569 13.9649 13.488 13.999C13.3912 14.0397 13.3177 14.1174 13.2957 14.2127L13.1211 14.9708C13.0903 15.1044 12.9613 15.2 12.8119 15.2H11.9881C11.8387 15.2 11.7097 15.1044 11.6789 14.9708L11.5043 14.2127C11.4823 14.1174 11.4088 14.0397 11.312 13.999C11.231 13.9649 11.152 13.9274 11.0752 13.8868C10.9982 13.8463 10.923 13.8024 10.85 13.7552C10.763 13.699 10.6526 13.6796 10.5513 13.7099L9.74565 13.9507C9.60366 13.9931 9.44854 13.9389 9.37384 13.8206L8.84234 12.9793C8.76764 12.8611 8.79378 12.7112 8.905 12.62L9.53602 12.1028C9.61534 12.0378 9.6522 11.9407 9.64243 11.8438C9.63424 11.7625 9.63023 11.6811 9.63031 11.6C9.63023 11.5189 9.63426 11.4375 9.64247 11.3562C9.65226 11.2593 9.61539 11.1622 9.53607 11.0972L8.90506 10.5799C8.79384 10.4888 8.7677 10.3389 8.8424 10.2206L9.3739 9.37933C9.4486 9.26108 9.60371 9.20683 9.74571 9.24927L10.5514 9.49008C10.6526 9.52034 10.7631 9.50098 10.8501 9.44477C10.923 9.3976 10.9982 9.35372 11.0752 9.31318C11.152 9.2726 11.231 9.23514 11.312 9.20102C11.4088 9.16027 11.4823 9.08256 11.5043 8.98727ZM12.3278 12.5136C12.8866 12.5136 13.3396 12.0996 13.3396 11.5889C13.3396 11.0783 12.8866 10.6643 12.3278 10.6643C11.769 10.6643 11.316 11.0783 11.316 11.5889C11.316 12.0996 11.769 12.5136 12.3278 12.5136Z" fill="#2D2D2E"/>\n</svg>\n';
41033
41057
  const AdjustWidthIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M8 6H2.5C1.94772 6 1.5 6.44772 1.5 7V13.5C1.5 14.0523 1.94772 14.5 2.5 14.5H8M8 6H13.5C14.0523 6 14.5 6.44772 14.5 7V13.5C14.5 14.0523 14.0523 14.5 13.5 14.5H8M8 6V14.5" stroke="#2D2D2E"/>\n<path d="M1.5 2.5H14.5M1.5 1V4M8 1V4M14.5 1V4" stroke="#2D2D2E"/>\n</svg>\n';
41034
41058
  const TocIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M2 3.5L14 3.5" stroke="#2D2D2E"/>\n<path d="M2 6.50397H10" stroke="#2D2D2E"/>\n<path d="M2 12.5L14 12.5" stroke="#2D2D2E"/>\n<path d="M6 9.5H14" stroke="#2D2D2E"/>\n</svg>\n';
41059
+ const AttachmentIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.49669 1C4.80282 1 3.0118 2.3515 3.0118 3.76237L3 10.6206M6.49669 1C8.41943 1 10.0154 2.60058 10.0154 4.17342M6.49669 1C7.43289 1 8.28684 1.42118 8.90405 1.96796C9.50746 2.50252 10.0154 3.29036 10.0154 4.17342M10.0154 4.17342L10.0154 9.61446C10.0154 10.4166 9.23033 11.2316 8 11.2316C6.91283 11.2316 6.01026 10.5735 6.01026 9.87981L5.98457 5.04102M3 10.6206C3 13.1126 5.38055 15 8 15M3 10.6206C3 12.9301 5.13252 15 8 15M8 15C10.6194 15 13 13.1988 13 10.7068M8 15C10.8675 15 13 13.0162 13 10.7068M13 10.7068V5.04102" stroke="currentColor" stroke-linecap="square" stroke-linejoin="round"/>\n<path d="M13 4V10C13 12.7614 10.7614 15 8 15C5.23858 15 3 12.7614 3 10V4.5" stroke="currentColor"/>\n<path d="M10 9V4.5C10 2.567 8.433 1 6.5 1C4.567 1 3 2.567 3 4.5" stroke="currentColor"/>\n<path d="M10 9C10 10.1046 9.10457 11 8 11C6.89543 11 6 10.1046 6 9V4" stroke="currentColor"/>\n</svg>\n';
41060
+ const Mention2Icon = '<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M11.237 13.6469C10.2882 14.1888 9.18962 14.4985 8.01868 14.4985C4.42977 14.4985 1.52039 11.5892 1.52039 8.00024C1.52039 4.41134 4.42977 1.50195 8.01868 1.50195C11.6076 1.50195 14.517 4.41134 14.517 8.00024C14.517 8.70345 14.4221 9.21723 14.2284 9.56578C13.9961 10.0692 13.4926 10.7276 12.66 10.8438C12.3454 10.9008 12.0336 10.7797 11.7805 10.6233C11.3724 10.3711 11.2127 9.88274 11.2127 9.40298V4.48055" stroke="currentColor"/>\n<path d="M7.67957 4.73828C9.37526 4.73835 10.6913 6.20213 10.6913 7.93262C10.6913 9.6631 9.37526 11.1269 7.67957 11.127C5.98381 11.127 4.66785 9.66315 4.66785 7.93262C4.66785 6.20209 5.98381 4.73828 7.67957 4.73828Z" stroke="currentColor"/>\n</svg>\n';
41035
41061
  const index$f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41036
41062
  __proto__: null,
41037
41063
  TableEditIcon,
@@ -41162,7 +41188,9 @@ ${codeText}
41162
41188
  LoadingCircleIcon,
41163
41189
  TextGroupIcon,
41164
41190
  AdjustWidthIcon,
41165
- TocIcon
41191
+ TocIcon,
41192
+ AttachmentIcon,
41193
+ Mention2Icon
41166
41194
  }, Symbol.toStringTag, { value: "Module" }));
41167
41195
  function createLoading() {
41168
41196
  const loading2 = createElement("span", ["editor-loading-icon"], null);
@@ -42595,7 +42623,7 @@ ${codeText}
42595
42623
  });
42596
42624
  }
42597
42625
  initCommandBarElement(elem) {
42598
- addClass(elem, "dialog", "manual");
42626
+ addClass(elem, "command-dialog", "manual");
42599
42627
  }
42600
42628
  initItemElement(item, elem) {
42601
42629
  }
@@ -47948,7 +47976,33 @@ ${codeText}
47948
47976
  const childWidth = getSizeAsScale(scrollContainer, originWidth + maxRight + overflowWidth - paddingLeft - paddingRight);
47949
47977
  scrollbarContainer.firstElementChild.style.width = `${childWidth}px`;
47950
47978
  }
47951
- const resetScrollbar = debounce__default.default(resetScrollbarCore, 50);
47979
+ function debounceByArgs(func, wait) {
47980
+ const debouncers = /* @__PURE__ */ new Map();
47981
+ return function(...args) {
47982
+ var _a;
47983
+ const scrollWrap = args[1];
47984
+ let key = (scrollWrap == null ? void 0 : scrollWrap.genId) || "";
47985
+ if (!key) {
47986
+ key = genId();
47987
+ if (scrollWrap)
47988
+ scrollWrap.genId = key;
47989
+ }
47990
+ if (!debouncers.has(key)) {
47991
+ debouncers.set(key, debounce__default.default(
47992
+ (...innerArgs) => {
47993
+ const result = func.apply(this, innerArgs);
47994
+ if (scrollWrap)
47995
+ scrollWrap.genId = void 0;
47996
+ debouncers.delete(key);
47997
+ return result;
47998
+ },
47999
+ wait
48000
+ ));
48001
+ }
48002
+ return (_a = debouncers.get(key)) == null ? void 0 : _a.apply(this, args);
48003
+ };
48004
+ }
48005
+ const resetScrollbar = debounceByArgs(resetScrollbarCore, 50);
47952
48006
  function resetScrollbarLeft(scrollContainer, scrollbarContainer) {
47953
48007
  const scrollWrap = getContainerScrollArea(scrollContainer);
47954
48008
  const { paddingLeft } = getScrollWrapPaddingSize(scrollWrap);
@@ -48965,35 +49019,35 @@ ${codeText}
48965
49019
  }
48966
49020
  return rects[0];
48967
49021
  }
48968
- const zhCN$v = {
49022
+ const zhCN$w = {
48969
49023
  embedProperties: {
48970
49024
  edit: "\u7F16\u8F91",
48971
49025
  addComment: "\u6DFB\u52A0\u6279\u6CE8"
48972
49026
  }
48973
49027
  };
48974
- const zhHK$v = {
49028
+ const zhHK$w = {
48975
49029
  embedProperties: {
48976
49030
  edit: "\u7DE8\u8F2F",
48977
49031
  addComment: "\u6DFB\u52A0\u6279\u8A3B"
48978
49032
  }
48979
49033
  };
48980
- const enUS$v = {
49034
+ const enUS$w = {
48981
49035
  embedProperties: {
48982
49036
  edit: "Edit",
48983
49037
  addComment: "Add annotation"
48984
49038
  }
48985
49039
  };
48986
- const jaJP$v = {
49040
+ const jaJP$w = {
48987
49041
  embedProperties: {
48988
49042
  edit: "\u7DE8\u96C6",
48989
49043
  addComment: "\u6CE8\u91C8\u3092\u8FFD\u52A0"
48990
49044
  }
48991
49045
  };
48992
49046
  i18n$1.mergeLang({
48993
- "zh-CN": zhCN$v,
48994
- "zh-HK": zhHK$v,
48995
- "en-US": enUS$v,
48996
- "ja-JP": jaJP$v
49047
+ "zh-CN": zhCN$w,
49048
+ "zh-HK": zhHK$w,
49049
+ "en-US": enUS$w,
49050
+ "ja-JP": jaJP$w
48997
49051
  });
48998
49052
  const logger$2a = getLogger("embed-block-properties");
48999
49053
  function addCommentToBlock$1(editor, block) {
@@ -49565,35 +49619,35 @@ ${codeText}
49565
49619
  }
49566
49620
  }
49567
49621
  const exclusiveBlockStyles = "";
49568
- const zhCN$u = {
49622
+ const zhCN$v = {
49569
49623
  exclusive: {
49570
49624
  tips: "\u300C{editor}\u300D\u6B63\u5728\u7F16\u8F91\uFF0C\u300C{embedType}\u300D\u4E0D\u652F\u6301\u591A\u4EBA\u7F16\u8F91",
49571
49625
  fallbackAbstract: "\u8BE5 Block"
49572
49626
  }
49573
49627
  };
49574
- const zhHK$u = {
49628
+ const zhHK$v = {
49575
49629
  exclusive: {
49576
49630
  tips: "\u300C{editor}\u300D\u6B63\u5728\u7DE8\u8F2F\uFF0C\u300C{embedType}\u300D\u4E0D\u652F\u6301\u591A\u4EBA\u7DE8\u8F2F",
49577
49631
  fallbackAbstract: "\u8A72 Block"
49578
49632
  }
49579
49633
  };
49580
- const enUS$u = {
49634
+ const enUS$v = {
49581
49635
  exclusive: {
49582
49636
  tips: "\u300C{editor}\u300Dis editing\uFF0C\u300C{embedType}\u300Ddoes not support multi-person editing",
49583
49637
  fallbackAbstract: "This Block"
49584
49638
  }
49585
49639
  };
49586
- const jaJP$u = {
49640
+ const jaJP$v = {
49587
49641
  exclusive: {
49588
49642
  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",
49589
49643
  fallbackAbstract: "\u3053\u306E\u8981\u7D20"
49590
49644
  }
49591
49645
  };
49592
49646
  i18n$1.mergeLang({
49593
- "zh-CN": zhCN$u,
49594
- "zh-HK": zhHK$u,
49595
- "en-US": enUS$u,
49596
- "ja-JP": jaJP$u
49647
+ "zh-CN": zhCN$v,
49648
+ "zh-HK": zhHK$v,
49649
+ "en-US": enUS$v,
49650
+ "ja-JP": jaJP$v
49597
49651
  });
49598
49652
  function getBlockInfo(editor, block) {
49599
49653
  const data2 = editor.getBlockData(block);
@@ -49770,28 +49824,28 @@ ${codeText}
49770
49824
  }
49771
49825
  }
49772
49826
  const style$b = "";
49773
- const zhCN$t = {
49827
+ const zhCN$u = {
49774
49828
  locker: {
49775
49829
  lock: "\u9501\u5B9A",
49776
49830
  unlock: "\u89E3\u9664\u9501\u5B9A",
49777
49831
  lockedBy: "\u88AB {name} \u9501\u5B9A"
49778
49832
  }
49779
49833
  };
49780
- const zhHK$t = {
49834
+ const zhHK$u = {
49781
49835
  locker: {
49782
49836
  lock: "\u9396\u5B9A",
49783
49837
  unlock: "\u89E3\u9664\u9396\u5B9A",
49784
49838
  lockedBy: "\u88AB {name} \u9396\u5B9A"
49785
49839
  }
49786
49840
  };
49787
- const enUS$t = {
49841
+ const enUS$u = {
49788
49842
  locker: {
49789
49843
  lock: "Lock",
49790
49844
  unlock: "Unlock",
49791
49845
  lockedBy: "Locked by {name}"
49792
49846
  }
49793
49847
  };
49794
- const jaJP$t = {
49848
+ const jaJP$u = {
49795
49849
  locker: {
49796
49850
  lock: "\u30ED\u30C3\u30AF",
49797
49851
  unlock: "\u30ED\u30C3\u30AF\u89E3\u9664",
@@ -49799,10 +49853,10 @@ ${codeText}
49799
49853
  }
49800
49854
  };
49801
49855
  i18n$1.mergeLang({
49802
- "zh-CN": zhCN$t,
49803
- "zh-HK": zhHK$t,
49804
- "en-US": enUS$t,
49805
- "ja-JP": jaJP$t
49856
+ "zh-CN": zhCN$u,
49857
+ "zh-HK": zhHK$u,
49858
+ "en-US": enUS$u,
49859
+ "ja-JP": jaJP$u
49806
49860
  });
49807
49861
  class BlockLockerPasteHandler {
49808
49862
  async handleBeforePasteDoc(editor, doc2) {
@@ -52765,7 +52819,7 @@ ${codeText}
52765
52819
  }
52766
52820
  return blockContent;
52767
52821
  }
52768
- const zhCN$s = {
52822
+ const zhCN$t = {
52769
52823
  list: {
52770
52824
  confirm: "\u786E\u5B9A",
52771
52825
  setStart: "\u8BBE\u7F6E\u7F16\u53F7",
@@ -52785,7 +52839,7 @@ ${codeText}
52785
52839
  exitFullscreen: "\u9000\u51FA\u5168\u5C4F"
52786
52840
  }
52787
52841
  };
52788
- const zhHK$s = {
52842
+ const zhHK$t = {
52789
52843
  list: {
52790
52844
  confirm: "\u78BA\u5B9A",
52791
52845
  setStart: "\u8A2D\u7F6E\u7DE8\u865F",
@@ -52805,7 +52859,7 @@ ${codeText}
52805
52859
  exitFullscreen: "\u9000\u51FA\u5168\u5C4F"
52806
52860
  }
52807
52861
  };
52808
- const enUS$s = {
52862
+ const enUS$t = {
52809
52863
  list: {
52810
52864
  confirm: "Confirm",
52811
52865
  setStart: "Set number",
@@ -52825,7 +52879,7 @@ ${codeText}
52825
52879
  exitFullscreen: "Exit full screen"
52826
52880
  }
52827
52881
  };
52828
- const jaJP$s = {
52882
+ const jaJP$t = {
52829
52883
  list: {
52830
52884
  confirm: "OK",
52831
52885
  setStart: "\u756A\u53F7\u3092\u8A2D\u5B9A",
@@ -52846,10 +52900,10 @@ ${codeText}
52846
52900
  }
52847
52901
  };
52848
52902
  i18n$1.mergeLang({
52849
- "zh-CN": zhCN$s,
52850
- "zh-HK": zhHK$s,
52851
- "en-US": enUS$s,
52852
- "ja-JP": jaJP$s
52903
+ "zh-CN": zhCN$t,
52904
+ "zh-HK": zhHK$t,
52905
+ "en-US": enUS$t,
52906
+ "ja-JP": jaJP$t
52853
52907
  });
52854
52908
  const style$a = "";
52855
52909
  const logger$20 = getLogger("list-block:paste-handler");
@@ -55127,7 +55181,7 @@ ${codeText}
55127
55181
  return ` $${math.tex}$ `;
55128
55182
  }
55129
55183
  if (math.src) {
55130
- return `<img src="${editor.doc.buildResourceUrl(math.src, { withToken: true })}" />`;
55184
+ return `<img data-embed-type="mathjax" data-uuid="mathjax:${math.src}" src="${editor.doc.buildResourceUrl(math.src, { withToken: true })}" />`;
55131
55185
  }
55132
55186
  return `<code>$${math.tex}$</code>`;
55133
55187
  }
@@ -55308,7 +55362,7 @@ ${codeText}
55308
55362
  function convertTo$g(editor, blockData, doc2, type) {
55309
55363
  const mathData = blockData.embedData;
55310
55364
  if (type === "html") {
55311
- return `<img src="${editor.doc.buildResourceUrl(mathData.src, { withToken: true })}" />`;
55365
+ return `<img data-embed-type="mathjax" data-uuid="mathjax:${mathData.src}" src="${editor.doc.buildResourceUrl(mathData.src, { withToken: true })}" />`;
55312
55366
  }
55313
55367
  if (type === "markdown") {
55314
55368
  return `
@@ -55330,35 +55384,35 @@ $$${mathData.mathjaxText}$$
55330
55384
  getBlockProperties: getBlockProperties$c
55331
55385
  };
55332
55386
  const mathjaxStyle = "";
55333
- const zhCN$r = {
55387
+ const zhCN$s = {
55334
55388
  mathjax: {
55335
55389
  emptyText: "\u7A7A\u7684\u516C\u5F0F",
55336
55390
  abstract: "\u516C\u5F0F"
55337
55391
  }
55338
55392
  };
55339
- const zhHK$r = {
55393
+ const zhHK$s = {
55340
55394
  mathjax: {
55341
55395
  emptyText: "\u7A7A\u7684\u516C\u5F0F",
55342
55396
  abstract: "\u516C\u5F0F"
55343
55397
  }
55344
55398
  };
55345
- const enUS$r = {
55399
+ const enUS$s = {
55346
55400
  mathjax: {
55347
55401
  emptyText: "Empty formula",
55348
55402
  abstract: "Formula"
55349
55403
  }
55350
55404
  };
55351
- const jaJP$r = {
55405
+ const jaJP$s = {
55352
55406
  mathjax: {
55353
55407
  emptyText: "\u6570\u5F0F\u306A\u3057",
55354
55408
  abstract: "\u6570\u5F0F"
55355
55409
  }
55356
55410
  };
55357
55411
  i18n$1.mergeLang({
55358
- "zh-CN": zhCN$r,
55359
- "zh-HK": zhHK$r,
55360
- "en-US": enUS$r,
55361
- "ja-JP": jaJP$r
55412
+ "zh-CN": zhCN$s,
55413
+ "zh-HK": zhHK$s,
55414
+ "en-US": enUS$s,
55415
+ "ja-JP": jaJP$s
55362
55416
  });
55363
55417
  function convertToMath(editor, containerId, blockIndex, offset) {
55364
55418
  const block = editor.getBlockByIndex(containerId, blockIndex);
@@ -61092,7 +61146,7 @@ $$${mathData.mathjaxText}$$
61092
61146
  }
61093
61147
  }
61094
61148
  __publicField(StatusBoxCommand, "id", "insert-status");
61095
- const enUS$q = {
61149
+ const enUS$r = {
61096
61150
  status: {
61097
61151
  empty: "Set status",
61098
61152
  command: {
@@ -61116,7 +61170,7 @@ $$${mathData.mathjaxText}$$
61116
61170
  }
61117
61171
  }
61118
61172
  };
61119
- const zhCN$q = {
61173
+ const zhCN$r = {
61120
61174
  status: {
61121
61175
  empty: "\u8BBE\u7F6E\u72B6\u6001",
61122
61176
  command: {
@@ -61140,7 +61194,7 @@ $$${mathData.mathjaxText}$$
61140
61194
  }
61141
61195
  }
61142
61196
  };
61143
- const zhHK$q = {
61197
+ const zhHK$r = {
61144
61198
  status: {
61145
61199
  empty: "\u8A2D\u7F6E\u72C0\u614B",
61146
61200
  command: {
@@ -61164,7 +61218,7 @@ $$${mathData.mathjaxText}$$
61164
61218
  }
61165
61219
  }
61166
61220
  };
61167
- const jaJP$q = {
61221
+ const jaJP$r = {
61168
61222
  status: {
61169
61223
  empty: "\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8A2D\u5B9A",
61170
61224
  command: {
@@ -61189,10 +61243,10 @@ $$${mathData.mathjaxText}$$
61189
61243
  }
61190
61244
  };
61191
61245
  const langs$2 = {
61192
- "en-US": enUS$q,
61193
- "zh-CN": zhCN$q,
61194
- "zh-HK": zhHK$q,
61195
- "ja-JP": jaJP$q
61246
+ "en-US": enUS$r,
61247
+ "zh-CN": zhCN$r,
61248
+ "zh-HK": zhHK$r,
61249
+ "ja-JP": jaJP$r
61196
61250
  };
61197
61251
  i18n$1.mergeLang(langs$2);
61198
61252
  class EmojiPopup {
@@ -62243,7 +62297,7 @@ $$${mathData.mathjaxText}$$
62243
62297
  const TextColorShortcuts = {
62244
62298
  "CtrlOrCmd+Alt+KeyH": (editor) => executeShortcut(editor)
62245
62299
  };
62246
- const zhCN$p = {
62300
+ const zhCN$q = {
62247
62301
  quickMenu: {
62248
62302
  basic: {
62249
62303
  heading: {
@@ -62302,7 +62356,7 @@ $$${mathData.mathjaxText}$$
62302
62356
  selectBlock: "\u9009\u62E9\u533A\u5757"
62303
62357
  }
62304
62358
  };
62305
- const zhHK$p = {
62359
+ const zhHK$q = {
62306
62360
  quickMenu: {
62307
62361
  basic: {
62308
62362
  heading: {
@@ -62361,7 +62415,7 @@ $$${mathData.mathjaxText}$$
62361
62415
  selectBlock: "\u9078\u64C7\u5340\u584A"
62362
62416
  }
62363
62417
  };
62364
- const enUS$p = {
62418
+ const enUS$q = {
62365
62419
  quickMenu: {
62366
62420
  basic: {
62367
62421
  heading: {
@@ -62420,7 +62474,7 @@ $$${mathData.mathjaxText}$$
62420
62474
  selectBlock: "Select Block"
62421
62475
  }
62422
62476
  };
62423
- const jaJP$p = {
62477
+ const jaJP$q = {
62424
62478
  quickMenu: {
62425
62479
  basic: {
62426
62480
  heading: {
@@ -62480,10 +62534,10 @@ $$${mathData.mathjaxText}$$
62480
62534
  }
62481
62535
  };
62482
62536
  i18n$1.mergeLang({
62483
- "zh-CN": zhCN$p,
62484
- "zh-HK": zhHK$p,
62485
- "en-US": enUS$p,
62486
- "ja-JP": jaJP$p
62537
+ "zh-CN": zhCN$q,
62538
+ "zh-HK": zhHK$q,
62539
+ "en-US": enUS$q,
62540
+ "ja-JP": jaJP$q
62487
62541
  });
62488
62542
  class TextStylesFixedProvider extends ProxyProvider {
62489
62543
  constructor(editor, afterCommandCallback) {
@@ -64081,6 +64135,17 @@ $$${mathData.mathjaxText}$$
64081
64135
  const failedLoad = !!block.querySelector(".images > .image-container.error, .images > .image-container.empty ");
64082
64136
  const width = calImageBlockStyleWidth(editor, blockData, parentContainer, failedLoad);
64083
64137
  const height = calBlockHeight(editor, blockData, parentContainer, failedLoad);
64138
+ if (width.startsWith("0") && height.startsWith("0")) {
64139
+ const image = block.querySelector("img");
64140
+ if (image) {
64141
+ image.onload = () => {
64142
+ setTimeout(() => {
64143
+ updateImageBlockSize(editor, blockData, blockElement, parentContainerElement);
64144
+ }, 300);
64145
+ };
64146
+ }
64147
+ return;
64148
+ }
64084
64149
  const content = getBlockContent(block);
64085
64150
  if (width === "auto") {
64086
64151
  content.style.width = width;
@@ -66179,7 +66244,7 @@ ${codeText}
66179
66244
  };
66180
66245
  }
66181
66246
  }
66182
- const zhCN$o = {
66247
+ const zhCN$p = {
66183
66248
  code: {
66184
66249
  title: "\u4EE3\u7801",
66185
66250
  abstract: "\u4EE3\u7801",
@@ -66191,7 +66256,7 @@ ${codeText}
66191
66256
  plainText: "Plain Text"
66192
66257
  }
66193
66258
  };
66194
- const zhHK$o = {
66259
+ const zhHK$p = {
66195
66260
  code: {
66196
66261
  title: "\u4EE3\u78BC",
66197
66262
  abstract: "\u4EE3\u78BC",
@@ -66203,7 +66268,7 @@ ${codeText}
66203
66268
  plainText: "Plain Text"
66204
66269
  }
66205
66270
  };
66206
- const enUS$o = {
66271
+ const enUS$p = {
66207
66272
  code: {
66208
66273
  title: "Code",
66209
66274
  abstract: "Code",
@@ -66215,7 +66280,7 @@ ${codeText}
66215
66280
  plainText: "Plain Text"
66216
66281
  }
66217
66282
  };
66218
- const jaJP$o = {
66283
+ const jaJP$p = {
66219
66284
  code: {
66220
66285
  title: "\u30B3\u30FC\u30C9",
66221
66286
  abstract: "\u30B3\u30FC\u30C9",
@@ -66228,10 +66293,10 @@ ${codeText}
66228
66293
  }
66229
66294
  };
66230
66295
  i18n$1.mergeLang({
66231
- "zh-CN": zhCN$o,
66232
- "zh-HK": zhHK$o,
66233
- "en-US": enUS$o,
66234
- "ja-JP": jaJP$o
66296
+ "zh-CN": zhCN$p,
66297
+ "zh-HK": zhHK$p,
66298
+ "en-US": enUS$p,
66299
+ "ja-JP": jaJP$p
66235
66300
  });
66236
66301
  function convertToTable(editor, containerId, blockIndex, offset) {
66237
66302
  const block = editor.getBlockByIndex(containerId, blockIndex);
@@ -66625,7 +66690,7 @@ ${codeText}
66625
66690
  return false;
66626
66691
  }
66627
66692
  }
66628
- const enUS$n = {
66693
+ const enUS$o = {
66629
66694
  placeholder: {
66630
66695
  default: "Type / for commands",
66631
66696
  heading: "Heading {heading}",
@@ -66637,7 +66702,7 @@ ${codeText}
66637
66702
  mobileDefault: "Type to add content"
66638
66703
  }
66639
66704
  };
66640
- const zhCN$n = {
66705
+ const zhCN$o = {
66641
66706
  placeholder: {
66642
66707
  default: "\u8F93\u5165\u300C/\u300D\u5FEB\u901F\u63D2\u5165",
66643
66708
  heading: "\u6807\u9898{heading}",
@@ -66649,7 +66714,7 @@ ${codeText}
66649
66714
  mobileDefault: "\u8F93\u5165\u4EE5\u6DFB\u52A0\u5185\u5BB9"
66650
66715
  }
66651
66716
  };
66652
- const zhHK$n = {
66717
+ const zhHK$o = {
66653
66718
  placeholder: {
66654
66719
  default: "\u8F38\u5165\u300C/\u300D\u5FEB\u901F\u63D2\u5165",
66655
66720
  heading: "\u6A19\u984C{heading}",
@@ -66661,7 +66726,7 @@ ${codeText}
66661
66726
  mobileDefault: "\u8F38\u5165\u4EE5\u6DFB\u52A0\u5167\u5BB9"
66662
66727
  }
66663
66728
  };
66664
- const jaJP$n = {
66729
+ const jaJP$o = {
66665
66730
  placeholder: {
66666
66731
  default: "\u300C/\u300D\u3092\u5165\u529B\u3057\u3066\u7D20\u65E9\u304F\u633F\u5165\u3059\u308B",
66667
66732
  heading: "\u898B\u51FA\u3057{heading}",
@@ -66674,10 +66739,10 @@ ${codeText}
66674
66739
  }
66675
66740
  };
66676
66741
  const langs$1 = {
66677
- "en-US": enUS$n,
66678
- "zh-CN": zhCN$n,
66679
- "zh-HK": zhHK$n,
66680
- "ja-JP": jaJP$n
66742
+ "en-US": enUS$o,
66743
+ "zh-CN": zhCN$o,
66744
+ "zh-HK": zhHK$o,
66745
+ "ja-JP": jaJP$o
66681
66746
  };
66682
66747
  i18n$1.mergeLang(langs$1);
66683
66748
  function isEmptyTextBlockWithoutCompositionText(editor, block) {
@@ -67409,7 +67474,7 @@ ${codeText}
67409
67474
  this.rootButton.destroy();
67410
67475
  }
67411
67476
  }
67412
- const zhCN$m = {
67477
+ const zhCN$n = {
67413
67478
  blockMenu: {
67414
67479
  section: {
67415
67480
  basics: "\u57FA\u7840",
@@ -67433,7 +67498,7 @@ ${codeText}
67433
67498
  }
67434
67499
  }
67435
67500
  };
67436
- const zhHK$m = {
67501
+ const zhHK$n = {
67437
67502
  blockMenu: {
67438
67503
  section: {
67439
67504
  basics: "\u57FA\u790E",
@@ -67457,7 +67522,7 @@ ${codeText}
67457
67522
  }
67458
67523
  }
67459
67524
  };
67460
- const enUS$m = {
67525
+ const enUS$n = {
67461
67526
  blockMenu: {
67462
67527
  section: {
67463
67528
  basics: "Basic",
@@ -67481,7 +67546,7 @@ ${codeText}
67481
67546
  }
67482
67547
  }
67483
67548
  };
67484
- const jaJP$m = {
67549
+ const jaJP$n = {
67485
67550
  blockMenu: {
67486
67551
  section: {
67487
67552
  basics: "\u4E00\u822C",
@@ -67506,10 +67571,10 @@ ${codeText}
67506
67571
  }
67507
67572
  };
67508
67573
  i18n$1.mergeLang({
67509
- "zh-CN": zhCN$m,
67510
- "zh-HK": zhHK$m,
67511
- "en-US": enUS$m,
67512
- "ja-JP": jaJP$m
67574
+ "zh-CN": zhCN$n,
67575
+ "zh-HK": zhHK$n,
67576
+ "en-US": enUS$n,
67577
+ "ja-JP": jaJP$n
67513
67578
  });
67514
67579
  const style$8 = "";
67515
67580
  class DragData {
@@ -68477,7 +68542,7 @@ ${codeText}
68477
68542
  }
68478
68543
  }
68479
68544
  }
68480
- const zhCN$l = {
68545
+ const zhCN$m = {
68481
68546
  image: {
68482
68547
  title: "\u56FE\u7247",
68483
68548
  upload: {
@@ -68493,7 +68558,7 @@ ${codeText}
68493
68558
  abstract: "\u56FE\u7247"
68494
68559
  }
68495
68560
  };
68496
- const zhHK$l = {
68561
+ const zhHK$m = {
68497
68562
  image: {
68498
68563
  title: "\u5716\u7247",
68499
68564
  upload: {
@@ -68509,7 +68574,7 @@ ${codeText}
68509
68574
  abstract: "\u5716\u7247"
68510
68575
  }
68511
68576
  };
68512
- const enUS$l = {
68577
+ const enUS$m = {
68513
68578
  image: {
68514
68579
  title: "Image",
68515
68580
  upload: {
@@ -68525,7 +68590,7 @@ ${codeText}
68525
68590
  abstract: "Image"
68526
68591
  }
68527
68592
  };
68528
- const jaJP$l = {
68593
+ const jaJP$m = {
68529
68594
  image: {
68530
68595
  title: "\u753B\u50CF",
68531
68596
  upload: {
@@ -68542,10 +68607,10 @@ ${codeText}
68542
68607
  }
68543
68608
  };
68544
68609
  i18n$1.mergeLang({
68545
- "zh-CN": zhCN$l,
68546
- "zh-HK": zhHK$l,
68547
- "en-US": enUS$l,
68548
- "ja-JP": jaJP$l
68610
+ "zh-CN": zhCN$m,
68611
+ "zh-HK": zhHK$m,
68612
+ "en-US": enUS$m,
68613
+ "ja-JP": jaJP$m
68549
68614
  });
68550
68615
  function convertToImage(editor, containerId, blockIndex, offset) {
68551
68616
  const block = editor.getBlockByIndex(containerId, blockIndex);
@@ -69048,7 +69113,7 @@ ${codeText}
69048
69113
  const data2 = blockData.embedData;
69049
69114
  const images = getImages$1(data2);
69050
69115
  if (type === "html") {
69051
- return images.map((image) => `<img src="${editor.doc.buildResourceUrl(image.src, { withToken: true })}">`).join("");
69116
+ return images.map((image) => `<img data-embed-type="image" data-uuid="image:${data2.src}" src="${editor.doc.buildResourceUrl(image.src, { withToken: true })}">`).join("");
69052
69117
  }
69053
69118
  if (type === "markdown") {
69054
69119
  const markdown = images.map((image) => `![img](${editor.doc.buildResourceUrl(image.src, { withToken: true })})`).join("\n");
@@ -70374,6 +70439,9 @@ ${codeText}
70374
70439
  }
70375
70440
  });
70376
70441
  __publicField(this, "handleSelectionChanged", () => {
70442
+ if (!this.editor.scrollable()) {
70443
+ return;
70444
+ }
70377
70445
  setTimeout(() => {
70378
70446
  var _a;
70379
70447
  if (this.type !== "current") {
@@ -70988,7 +71056,14 @@ ${codeText}
70988
71056
  }
70989
71057
  onCreateComment(commentId, local) {
70990
71058
  const comment = this.commentsProvider.getComment(commentId);
70991
- this.list.handleCreateComment(comment, local);
71059
+ try {
71060
+ this.editor.setScrollable(false);
71061
+ this.list.handleCreateComment(comment, local);
71062
+ } finally {
71063
+ setTimeout(() => {
71064
+ this.editor.setScrollable(true);
71065
+ }, 1e3);
71066
+ }
70992
71067
  this.updateCommentCount();
70993
71068
  }
70994
71069
  onDeleteComment(commentId, local) {
@@ -71660,7 +71735,14 @@ ${codeText}
71660
71735
  const range = createBlockSimpleRange(editor, block, selectedBlock.start.offset, selectedBlock.end.offset);
71661
71736
  const command = `comment-${comment.id.toLocaleLowerCase()}`;
71662
71737
  const value = comment.id;
71663
- editorAddTextAttribute(editor, block, range, command, value);
71738
+ try {
71739
+ editor.setScrollable(false);
71740
+ editorAddTextAttribute(editor, block, range, command, value);
71741
+ } finally {
71742
+ setTimeout(() => {
71743
+ editor.setScrollable(true);
71744
+ }, 1e3);
71745
+ }
71664
71746
  }
71665
71747
  function addCommentToTextBlocks(editor, range, provider) {
71666
71748
  const selectedBlocks = getAllSelectedBlocks(editor, { range });
@@ -71952,7 +72034,7 @@ ${codeText}
71952
72034
  }
71953
72035
  }
71954
72036
  const style$7 = "";
71955
- const zhCN$k = {
72037
+ const zhCN$l = {
71956
72038
  comment: {
71957
72039
  count: "\u6279\u6CE8 ({num})",
71958
72040
  hide: "\u9690\u85CF\u6279\u6CE8",
@@ -71984,7 +72066,7 @@ ${codeText}
71984
72066
  commentHasAlreadyRemoved: "\u5F15\u7528\u5185\u5BB9\u5DF2\u88AB\u5220\u9664\uFF0C\u4E0D\u53EF\u91CD\u65B0\u6253\u5F00\u6279\u6CE8"
71985
72067
  }
71986
72068
  };
71987
- const zhHK$k = {
72069
+ const zhHK$l = {
71988
72070
  comment: {
71989
72071
  count: "\u6279\u8A3B ({num})",
71990
72072
  hide: "\u96B1\u85CF\u6279\u8A3B",
@@ -72007,7 +72089,7 @@ ${codeText}
72007
72089
  quickMenuCommand: "\u6DFB\u52A0\u6279\u8A3B"
72008
72090
  }
72009
72091
  };
72010
- const enUS$k = {
72092
+ const enUS$l = {
72011
72093
  comment: {
72012
72094
  count: "Annotations ({num})",
72013
72095
  hide: "Hide Annotations",
@@ -72015,7 +72097,7 @@ ${codeText}
72015
72097
  reply: "Reply",
72016
72098
  quicklyReply: "Reply...",
72017
72099
  send: "Confirm",
72018
- placeholder: "Add a annotation...",
72100
+ placeholder: "Add annotation...",
72019
72101
  replyPlaceholder: "Add annotation",
72020
72102
  edit: "Edit",
72021
72103
  delete: "Delete",
@@ -72039,7 +72121,7 @@ ${codeText}
72039
72121
  commentHasAlreadyRemoved: "Referenced content deleted. Comment can't be reopened."
72040
72122
  }
72041
72123
  };
72042
- const jaJP$k = {
72124
+ const jaJP$l = {
72043
72125
  comment: {
72044
72126
  count: "\u6CE8\u91C8 ({num})",
72045
72127
  hide: "\u6CE8\u91C8\u3092\u975E\u8868\u793A",
@@ -72072,10 +72154,10 @@ ${codeText}
72072
72154
  }
72073
72155
  };
72074
72156
  i18n$1.mergeLang({
72075
- "zh-CN": zhCN$k,
72076
- "zh-HK": zhHK$k,
72077
- "en-US": enUS$k,
72078
- "ja-JP": jaJP$k
72157
+ "zh-CN": zhCN$l,
72158
+ "zh-HK": zhHK$l,
72159
+ "en-US": enUS$l,
72160
+ "ja-JP": jaJP$l
72079
72161
  });
72080
72162
  class OnesEditorCommentPlaceholderHandler {
72081
72163
  constructor(editor) {
@@ -74653,7 +74735,7 @@ ${codeText}
74653
74735
  return void 0;
74654
74736
  }
74655
74737
  };
74656
- const zhCN$j = {
74738
+ const zhCN$k = {
74657
74739
  table: {
74658
74740
  cellBackground: "\u5355\u5143\u683C\u80CC\u666F\u8272",
74659
74741
  deleteSelectRow: "\u5220\u9664\u6240\u9009\u884C",
@@ -74685,7 +74767,7 @@ ${codeText}
74685
74767
  }
74686
74768
  }
74687
74769
  };
74688
- const zhHK$j = {
74770
+ const zhHK$k = {
74689
74771
  table: {
74690
74772
  cellBackground: "\u55AE\u5143\u683C\u80CC\u666F\u8272",
74691
74773
  deleteSelectRow: "\u522A\u9664\u6240\u9078\u884C",
@@ -74717,7 +74799,7 @@ ${codeText}
74717
74799
  }
74718
74800
  }
74719
74801
  };
74720
- const enUS$j = {
74802
+ const enUS$k = {
74721
74803
  table: {
74722
74804
  cellBackground: "Cell background color",
74723
74805
  deleteSelectRow: "Delete selected rows",
@@ -74749,7 +74831,7 @@ ${codeText}
74749
74831
  }
74750
74832
  }
74751
74833
  };
74752
- const jaJP$j = {
74834
+ const jaJP$k = {
74753
74835
  table: {
74754
74836
  cellBackground: "\u30BB\u30EB\u306E\u80CC\u666F\u8272",
74755
74837
  deleteSelectRow: "\u9078\u629E\u3057\u305F\u884C\u3092\u524A\u9664",
@@ -74782,10 +74864,10 @@ ${codeText}
74782
74864
  }
74783
74865
  };
74784
74866
  i18n$1.mergeLang({
74785
- "zh-CN": zhCN$j,
74786
- "zh-HK": zhHK$j,
74787
- "en-US": enUS$j,
74788
- "ja-JP": jaJP$j
74867
+ "zh-CN": zhCN$k,
74868
+ "zh-HK": zhHK$k,
74869
+ "en-US": enUS$k,
74870
+ "ja-JP": jaJP$k
74789
74871
  });
74790
74872
  const tableStyle = "";
74791
74873
  const logger$U = getLogger("table");
@@ -75207,28 +75289,28 @@ ${codeText}
75207
75289
  return false;
75208
75290
  }
75209
75291
  }
75210
- const zhCN$i = {
75292
+ const zhCN$j = {
75211
75293
  pasteSpecial: {
75212
75294
  originFormats: "\u4FDD\u6301\u539F\u6837\u5F0F",
75213
75295
  plainText: "\u7C98\u8D34\u7EAF\u6587\u672C",
75214
75296
  markdown: "\u7C98\u8D34\u4E3A Markdown"
75215
75297
  }
75216
75298
  };
75217
- const zhHK$i = {
75299
+ const zhHK$j = {
75218
75300
  pasteSpecial: {
75219
75301
  originFormats: "\u4FDD\u6301\u539F\u6A23\u5F0F",
75220
75302
  plainText: "\u7C98\u8CBC\u7D14\u6587\u672C",
75221
75303
  markdown: "\u7C98\u8CBC\u70BA Markdown"
75222
75304
  }
75223
75305
  };
75224
- const enUS$i = {
75306
+ const enUS$j = {
75225
75307
  pasteSpecial: {
75226
75308
  originFormats: "Keep source formatting",
75227
75309
  plainText: "Paste as plain text",
75228
75310
  markdown: "Paste as markdown"
75229
75311
  }
75230
75312
  };
75231
- const jaJP$i = {
75313
+ const jaJP$j = {
75232
75314
  pasteSpecial: {
75233
75315
  originFormats: "\u5143\u306E\u5F62\u5F0F\u3092\u4FDD\u6301",
75234
75316
  plainText: "\u30D7\u30EC\u30FC\u30F3\u30C6\u30AD\u30B9\u30C8\u3092\u8CBC\u308A\u4ED8\u3051\u308B",
@@ -75236,10 +75318,10 @@ ${codeText}
75236
75318
  }
75237
75319
  };
75238
75320
  i18n$1.mergeLang({
75239
- "zh-CN": zhCN$i,
75240
- "zh-HK": zhHK$i,
75241
- "en-US": enUS$i,
75242
- "ja-JP": jaJP$i
75321
+ "zh-CN": zhCN$j,
75322
+ "zh-HK": zhHK$j,
75323
+ "en-US": enUS$j,
75324
+ "ja-JP": jaJP$j
75243
75325
  });
75244
75326
  const style$6 = "";
75245
75327
  const logger$S = getLogger("html-to-doc");
@@ -75722,7 +75804,14 @@ ${codeText}
75722
75804
  ...options,
75723
75805
  listLevel: options.listLevel + 1
75724
75806
  };
75725
- const { text: text2, children } = options.tokensToTextWithChildren(item.tokens, newOptions);
75807
+ let heading;
75808
+ let tokens = item.tokens;
75809
+ if (item.tokens.length === 1 && item.tokens[0].type === "heading") {
75810
+ const token2 = item.tokens[0];
75811
+ heading = token2.depth;
75812
+ tokens = token2.tokens;
75813
+ }
75814
+ const { text: text2, children } = options.tokensToTextWithChildren(tokens, newOptions);
75726
75815
  let checkbox2;
75727
75816
  if (typeof item.checked === "boolean") {
75728
75817
  checkbox2 = item.checked ? "checked" : "unchecked";
@@ -75737,6 +75826,9 @@ ${codeText}
75737
75826
  text: text2,
75738
75827
  level: options.listLevel
75739
75828
  };
75829
+ if (heading) {
75830
+ block.heading = heading;
75831
+ }
75740
75832
  blocks.push(block);
75741
75833
  blocks.push(...children);
75742
75834
  });
@@ -77649,6 +77741,9 @@ ${docStr}
77649
77741
  function replaceCrLf(text2) {
77650
77742
  return text2.replace(/\r\n\s*/g, "").replace(/\n\s*/g, "").replace(/\r\s*/g, "");
77651
77743
  }
77744
+ function replaceCrLfWithSpace(text2) {
77745
+ return text2.replace(/\r\n\s*/g, " ").replace(/\n\s*/g, " ").replace(/\r\s*/g, " ");
77746
+ }
77652
77747
  function isImageElement(elem) {
77653
77748
  if (!elem.tagName) {
77654
77749
  return false;
@@ -78019,7 +78114,7 @@ ${docStr}
78019
78114
  }
78020
78115
  const currentAttributes = addNodeAttributes(node, attributes);
78021
78116
  if (node instanceof Text && node.nodeValue || node.nodeName === "BR") {
78022
- const insert = replaceCrLf((_a = node.nodeValue) != null ? _a : " ");
78117
+ const insert = replaceCrLfWithSpace((_a = node.nodeValue) != null ? _a : " ");
78023
78118
  if (insert) {
78024
78119
  ops.push(textNodeToOp(insert, currentAttributes));
78025
78120
  }
@@ -79230,7 +79325,7 @@ ${docStr}
79230
79325
  (_a = this.dialog) == null ? void 0 : _a.destroy();
79231
79326
  }
79232
79327
  }
79233
- const zhCN$h = {
79328
+ const zhCN$i = {
79234
79329
  find: {
79235
79330
  findLabel: "\u67E5\u627E:",
79236
79331
  replaceLabel: "\u66FF\u6362:",
@@ -79242,7 +79337,7 @@ ${docStr}
79242
79337
  replacePlaceholder: "\u66FF\u6362\u4E3A"
79243
79338
  }
79244
79339
  };
79245
- const zhHK$h = {
79340
+ const zhHK$i = {
79246
79341
  find: {
79247
79342
  findLabel: "\u67E5\u627E:",
79248
79343
  replaceLabel: "\u66FF\u63DB:",
@@ -79254,7 +79349,7 @@ ${docStr}
79254
79349
  replacePlaceholder: "\u66FF\u63DB\u70BA"
79255
79350
  }
79256
79351
  };
79257
- const enUS$h = {
79352
+ const enUS$i = {
79258
79353
  find: {
79259
79354
  findLabel: "Search:",
79260
79355
  replaceLabel: "Replace:",
@@ -79266,7 +79361,7 @@ ${docStr}
79266
79361
  replacePlaceholder: "Replace with"
79267
79362
  }
79268
79363
  };
79269
- const jaJP$h = {
79364
+ const jaJP$i = {
79270
79365
  find: {
79271
79366
  findLabel: "\u691C\u7D22\uFF1A",
79272
79367
  replaceLabel: "\u7F6E\u63DB\uFF1A",
@@ -79279,10 +79374,10 @@ ${docStr}
79279
79374
  }
79280
79375
  };
79281
79376
  i18n$1.mergeLang({
79282
- "zh-CN": zhCN$h,
79283
- "zh-HK": zhHK$h,
79284
- "en-US": enUS$h,
79285
- "ja-JP": jaJP$h
79377
+ "zh-CN": zhCN$i,
79378
+ "zh-HK": zhHK$i,
79379
+ "en-US": enUS$i,
79380
+ "ja-JP": jaJP$i
79286
79381
  });
79287
79382
  function handleFindReplace(editor) {
79288
79383
  const dialog = editor.addCustom("find-dialog", () => new FindDialog(editor));
@@ -80026,7 +80121,7 @@ ${docStr}
80026
80121
  return false;
80027
80122
  }
80028
80123
  }
80029
- const zhCN$g = {
80124
+ const zhCN$h = {
80030
80125
  contextMenu: {
80031
80126
  copyMarkdown: "\u590D\u5236\u4E3A Markdown",
80032
80127
  paste: "\u7C98\u8D34",
@@ -80039,7 +80134,7 @@ ${docStr}
80039
80134
  uneditableBlockSelected: "\u9009\u4E2D\u533A\u57DF\u5305\u542B\u9501\u5B9A\u533A\u5757\uFF0C\u6682\u4E0D\u652F\u6301\u526A\u5207"
80040
80135
  }
80041
80136
  };
80042
- const zhHK$g = {
80137
+ const zhHK$h = {
80043
80138
  contextMenu: {
80044
80139
  copyMarkdown: "\u8907\u88FD\u70BA Markdown",
80045
80140
  paste: "\u7C98\u8CBC",
@@ -80052,7 +80147,7 @@ ${docStr}
80052
80147
  uneditableBlockSelected: "\u9078\u4E2D\u5340\u57DF\u5305\u542B\u9396\u5B9A\u5340\u584A\uFF0C\u66AB\u4E0D\u652F\u6301\u526A\u5207"
80053
80148
  }
80054
80149
  };
80055
- const enUS$g = {
80150
+ const enUS$h = {
80056
80151
  contextMenu: {
80057
80152
  copyMarkdown: "Copy as Markdown",
80058
80153
  paste: "Paste",
@@ -80065,7 +80160,7 @@ ${docStr}
80065
80160
  uneditableBlockSelected: "The selected area contains locked blocks, and cutting is not currently supported"
80066
80161
  }
80067
80162
  };
80068
- const jaJP$g = {
80163
+ const jaJP$h = {
80069
80164
  contextMenu: {
80070
80165
  copyMarkdown: "Markdown \u3068\u3057\u3066\u30B3\u30D4\u30FC",
80071
80166
  paste: "\u8CBC\u308A\u4ED8\u3051",
@@ -80079,10 +80174,10 @@ ${docStr}
80079
80174
  }
80080
80175
  };
80081
80176
  i18n$1.mergeLang({
80082
- "zh-CN": zhCN$g,
80083
- "zh-HK": zhHK$g,
80084
- "en-US": enUS$g,
80085
- "ja-JP": jaJP$g
80177
+ "zh-CN": zhCN$h,
80178
+ "zh-HK": zhHK$h,
80179
+ "en-US": enUS$h,
80180
+ "ja-JP": jaJP$h
80086
80181
  });
80087
80182
  function hideToolbar(editor) {
80088
80183
  const toolbar2 = editor.findCustom("toolbar-handler");
@@ -80278,7 +80373,7 @@ ${docStr}
80278
80373
  const data2 = boxData;
80279
80374
  if (type === "html") {
80280
80375
  if (data2.src) {
80281
- return `<a href="${editor.doc.buildResourceUrl(data2.src, { withToken: true })}" >${data2.fileName}</a>`;
80376
+ return `<a data-embed-type="file" data-uuid="file:${data2.src}" href="${editor.doc.buildResourceUrl(data2.src, { withToken: true })}" >${data2.fileName}</a>`;
80282
80377
  }
80283
80378
  return `[${data2.fileName}]`;
80284
80379
  }
@@ -80393,14 +80488,10 @@ ${docStr}
80393
80488
  }
80394
80489
  nameElement.title = fileName;
80395
80490
  const infos = createElement("div", ["file-info"], detail);
80396
- if (creator) {
80397
- createElement("div", ["file-creator"], infos, creator);
80398
- }
80399
- if (created) {
80400
- const timeText = i18n$1.t("file.uploadedTime", { time: formatDate(new Date(created), "YYYY-MM-DD hh:mm") });
80401
- createElement("div", ["uploaded-time"], infos, timeText);
80402
- }
80403
- createElement("div", ["file-size"], infos, formatBytes(fileSize));
80491
+ const timeText = i18n$1.t("file.uploadedTime", { time: formatDate(new Date(created), "YYYY-MM-DD hh:mm") });
80492
+ const sizeText = formatBytes(fileSize);
80493
+ const infoText = `${creator} ${timeText} ${sizeText}`;
80494
+ createElement("div", ["info"], infos, infoText);
80404
80495
  const actions2 = createElement("div", ["file-actions"], card);
80405
80496
  const options = editor.getComponentOptions("file");
80406
80497
  let copilotButton;
@@ -80580,7 +80671,7 @@ ${docStr}
80580
80671
  const data2 = embedData;
80581
80672
  if (type === "html") {
80582
80673
  if (data2.src) {
80583
- return `<p><a href="${editor.doc.buildResourceUrl(data2.src, { withToken: true })}" >${data2.fileName}</a></p>`;
80674
+ return `<p><a data-embed-type="file" data-uuid="file:${data2.src}" href="${editor.doc.buildResourceUrl(data2.src, { withToken: true })}" >${data2.fileName}</a></p>`;
80584
80675
  }
80585
80676
  return `<p>[${data2.fileName}]</p>`;
80586
80677
  }
@@ -80630,7 +80721,7 @@ ${docStr}
80630
80721
  toStandardDoc: toStandardDoc$1,
80631
80722
  getResources
80632
80723
  };
80633
- const zhCN$f = {
80724
+ const zhCN$g = {
80634
80725
  file: {
80635
80726
  abstract: "\u9644\u4EF6",
80636
80727
  commands: {
@@ -80644,7 +80735,7 @@ ${docStr}
80644
80735
  askAi: "\u8BE2\u95EE Copilot"
80645
80736
  }
80646
80737
  };
80647
- const zhHK$f = {
80738
+ const zhHK$g = {
80648
80739
  file: {
80649
80740
  abstract: "\u9644\u4EF6",
80650
80741
  commands: {
@@ -80658,7 +80749,7 @@ ${docStr}
80658
80749
  askAi: "\u8A62\u554F Copilot"
80659
80750
  }
80660
80751
  };
80661
- const enUS$f = {
80752
+ const enUS$g = {
80662
80753
  file: {
80663
80754
  abstract: "Attachment",
80664
80755
  commands: {
@@ -80672,7 +80763,7 @@ ${docStr}
80672
80763
  askAi: "Ask Copilot"
80673
80764
  }
80674
80765
  };
80675
- const jaJP$f = {
80766
+ const jaJP$g = {
80676
80767
  file: {
80677
80768
  abstract: "\u6DFB\u4ED8\u30D5\u30A1\u30A4\u30EB",
80678
80769
  commands: {
@@ -80687,10 +80778,10 @@ ${docStr}
80687
80778
  }
80688
80779
  };
80689
80780
  i18n$1.mergeLang({
80690
- "zh-CN": zhCN$f,
80691
- "zh-HK": zhHK$f,
80692
- "en-US": enUS$f,
80693
- "ja-JP": jaJP$f
80781
+ "zh-CN": zhCN$g,
80782
+ "zh-HK": zhHK$g,
80783
+ "en-US": enUS$g,
80784
+ "ja-JP": jaJP$g
80694
80785
  });
80695
80786
  function getEndsWithLinkIndex(str) {
80696
80787
  const regex = /(\s|^)(http|https):\/\/[\w\-]+(\.[\w\-]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?$/;
@@ -80730,7 +80821,7 @@ ${docStr}
80730
80821
  "Space": autoLink
80731
80822
  };
80732
80823
  const index$6 = "";
80733
- const zhCN$e = {
80824
+ const zhCN$f = {
80734
80825
  version: {
80735
80826
  latest: "\u6700\u65B0\u7248\u672C",
80736
80827
  update: "{name}\u4FEE\u6539",
@@ -80774,7 +80865,7 @@ ${docStr}
80774
80865
  filterMemoed: "\u7B5B\u9009\u5DF2\u5907\u6CE8\u7684\u7248\u672C"
80775
80866
  }
80776
80867
  };
80777
- const zhHK$e = {
80868
+ const zhHK$f = {
80778
80869
  version: {
80779
80870
  latest: "\u6700\u65B0\u7248\u672C",
80780
80871
  update: "{name}\u4FEE\u6539",
@@ -80818,7 +80909,7 @@ ${docStr}
80818
80909
  filterMemoed: "\u7BE9\u9078\u5DF2\u5099\u8A3B\u7684\u7248\u672C"
80819
80910
  }
80820
80911
  };
80821
- const enUS$e = {
80912
+ const enUS$f = {
80822
80913
  version: {
80823
80914
  latest: "Latest",
80824
80915
  update: "Modified by {name}",
@@ -80862,7 +80953,7 @@ ${docStr}
80862
80953
  filterMemoed: "Filter versions with comments"
80863
80954
  }
80864
80955
  };
80865
- const jaJP$e = {
80956
+ const jaJP$f = {
80866
80957
  version: {
80867
80958
  latest: "\u6700\u65B0",
80868
80959
  update: "{name} \u304C\u5185\u5BB9\u3092\u5909\u66F4\u3057\u307E\u3057\u305F\u3002",
@@ -80907,10 +80998,10 @@ ${docStr}
80907
80998
  }
80908
80999
  };
80909
81000
  i18n$1.mergeLang({
80910
- "zh-CN": zhCN$e,
80911
- "zh-HK": zhHK$e,
80912
- "en-US": enUS$e,
80913
- "ja-JP": jaJP$e
81001
+ "zh-CN": zhCN$f,
81002
+ "zh-HK": zhHK$f,
81003
+ "en-US": enUS$f,
81004
+ "ja-JP": jaJP$f
80914
81005
  });
80915
81006
  var HistoryClass = /* @__PURE__ */ ((HistoryClass2) => {
80916
81007
  HistoryClass2["NEW"] = "history-new";
@@ -82795,35 +82886,35 @@ ${docStr}
82795
82886
  (_c = this.editor) == null ? void 0 : _c.destroy();
82796
82887
  }
82797
82888
  }
82798
- const zhCN$d = {
82889
+ const zhCN$e = {
82799
82890
  expandCollapseButton: {
82800
82891
  expand: "\u5C55\u5F00",
82801
82892
  collapse: "\u6536\u8D77"
82802
82893
  }
82803
82894
  };
82804
- const zhHK$d = {
82895
+ const zhHK$e = {
82805
82896
  expandCollapseButton: {
82806
82897
  expand: "\u5C55\u958B",
82807
82898
  collapse: "\u6536\u8D77"
82808
82899
  }
82809
82900
  };
82810
- const enUS$d = {
82901
+ const enUS$e = {
82811
82902
  expandCollapseButton: {
82812
82903
  expand: "Expand",
82813
82904
  collapse: "Collapse"
82814
82905
  }
82815
82906
  };
82816
- const jaJP$d = {
82907
+ const jaJP$e = {
82817
82908
  expandCollapseButton: {
82818
82909
  expand: "\u5C55\u958B",
82819
82910
  collapse: "\u7E2E\u5C0F"
82820
82911
  }
82821
82912
  };
82822
82913
  i18n$1.mergeLang({
82823
- "zh-CN": zhCN$d,
82824
- "zh-HK": zhHK$d,
82825
- "en-US": enUS$d,
82826
- "ja-JP": jaJP$d
82914
+ "zh-CN": zhCN$e,
82915
+ "zh-HK": zhHK$e,
82916
+ "en-US": enUS$e,
82917
+ "ja-JP": jaJP$e
82827
82918
  });
82828
82919
  const style$4 = "";
82829
82920
  const logger$w = getLogger("heading-collapse");
@@ -83651,28 +83742,28 @@ ${docStr}
83651
83742
  getOptions: getOptions$5,
83652
83743
  getBlockProperties: getBlockProperties$7
83653
83744
  };
83654
- const zhCN$c = {
83745
+ const zhCN$d = {
83655
83746
  toc: {
83656
83747
  name: "\u6807\u9898\u76EE\u5F55",
83657
83748
  empty: "\u5F53\u524D\u9875\u9762\u6682\u65E0\u6807\u9898\u6837\u5F0F\u6587\u672C",
83658
83749
  abstract: "\u6807\u9898\u76EE\u5F55"
83659
83750
  }
83660
83751
  };
83661
- const zhHK$c = {
83752
+ const zhHK$d = {
83662
83753
  toc: {
83663
83754
  name: "\u6A19\u984C\u76EE\u9304",
83664
83755
  empty: "\u7576\u524D\u9801\u9762\u66AB\u7121\u6A19\u984C\u6A23\u5F0F\u6587\u672C",
83665
83756
  abstract: "\u6A19\u984C\u76EE\u9304"
83666
83757
  }
83667
83758
  };
83668
- const enUS$c = {
83759
+ const enUS$d = {
83669
83760
  toc: {
83670
83761
  name: "Toc",
83671
83762
  empty: "No heading on this page",
83672
83763
  abstract: "Table of contents"
83673
83764
  }
83674
83765
  };
83675
- const jaJP$c = {
83766
+ const jaJP$d = {
83676
83767
  toc: {
83677
83768
  name: "Toc",
83678
83769
  empty: "\u3053\u306E\u30DA\u30FC\u30B8\u306B\u306F\u898B\u51FA\u3057\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
@@ -83680,10 +83771,10 @@ ${docStr}
83680
83771
  }
83681
83772
  };
83682
83773
  i18n$1.mergeLang({
83683
- "zh-CN": zhCN$c,
83684
- "zh-HK": zhHK$c,
83685
- "en-US": enUS$c,
83686
- "ja-JP": jaJP$c
83774
+ "zh-CN": zhCN$d,
83775
+ "zh-HK": zhHK$d,
83776
+ "en-US": enUS$d,
83777
+ "ja-JP": jaJP$d
83687
83778
  });
83688
83779
  function isHeadingBlock(block) {
83689
83780
  return !!block.getAttribute("data-style-heading");
@@ -84160,7 +84251,7 @@ ${docStr}
84160
84251
  }
84161
84252
  }
84162
84253
  const mentionStyle = "";
84163
- const zhCN$b = {
84254
+ const zhCN$c = {
84164
84255
  mention: {
84165
84256
  abstract: "\u6210\u5458",
84166
84257
  placeholder: "\u641C\u7D22\u6210\u5458",
@@ -84168,7 +84259,7 @@ ${docStr}
84168
84259
  header: "\u63D0\u53CA\u6210\u5458"
84169
84260
  }
84170
84261
  };
84171
- const zhHK$b = {
84262
+ const zhHK$c = {
84172
84263
  mention: {
84173
84264
  abstract: "\u6210\u54E1",
84174
84265
  placeholder: "\u641C\u7D22\u6210\u54E1",
@@ -84176,7 +84267,7 @@ ${docStr}
84176
84267
  header: "\u63D0\u53CA\u6210\u54E1"
84177
84268
  }
84178
84269
  };
84179
- const enUS$b = {
84270
+ const enUS$c = {
84180
84271
  mention: {
84181
84272
  abstract: "Member",
84182
84273
  placeholder: "Please select a member",
@@ -84184,7 +84275,7 @@ ${docStr}
84184
84275
  header: "Mention members"
84185
84276
  }
84186
84277
  };
84187
- const jaJP$b = {
84278
+ const jaJP$c = {
84188
84279
  mention: {
84189
84280
  abstract: "\u30E1\u30F3\u30D0\u30FC",
84190
84281
  placeholder: "\u30E1\u30F3\u30D0\u30FC\u3092\u691C\u7D22",
@@ -84193,12 +84284,12 @@ ${docStr}
84193
84284
  }
84194
84285
  };
84195
84286
  i18n$1.mergeLang({
84196
- "zh-CN": zhCN$b,
84197
- "zh-HK": zhHK$b,
84198
- "en-US": enUS$b,
84199
- "ja-JP": jaJP$b
84287
+ "zh-CN": zhCN$c,
84288
+ "zh-HK": zhHK$c,
84289
+ "en-US": enUS$c,
84290
+ "ja-JP": jaJP$c
84200
84291
  });
84201
- const zhCN$a = {
84292
+ const zhCN$b = {
84202
84293
  templates: {
84203
84294
  title: "\u9009\u62E9\u6A21\u677F\uFF0C\u5FEB\u901F\u521B\u5EFA",
84204
84295
  create: "\u65B0\u5EFA\u6A21\u677F",
@@ -84206,7 +84297,7 @@ ${docStr}
84206
84297
  customizedMark: "\u81EA\u5B9A\u4E49"
84207
84298
  }
84208
84299
  };
84209
- const zhHK$a = {
84300
+ const zhHK$b = {
84210
84301
  templates: {
84211
84302
  title: "\u9078\u64C7\u6A21\u677F\uFF0C\u5FEB\u901F\u5275\u5EFA",
84212
84303
  create: "\u65B0\u5EFA\u6A21\u677F",
@@ -84214,7 +84305,7 @@ ${docStr}
84214
84305
  customizedMark: "\u81EA\u5B9A\u7FA9"
84215
84306
  }
84216
84307
  };
84217
- const enUS$a = {
84308
+ const enUS$b = {
84218
84309
  templates: {
84219
84310
  title: "Choose a template",
84220
84311
  create: "New template",
@@ -84222,7 +84313,7 @@ ${docStr}
84222
84313
  customizedMark: "Custom"
84223
84314
  }
84224
84315
  };
84225
- const jaJP$a = {
84316
+ const jaJP$b = {
84226
84317
  templates: {
84227
84318
  title: "\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u9078\u629E",
84228
84319
  create: "\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u65B0\u898F\u4F5C\u6210",
@@ -84231,10 +84322,10 @@ ${docStr}
84231
84322
  }
84232
84323
  };
84233
84324
  i18n$1.mergeLang({
84234
- "zh-CN": zhCN$a,
84235
- "zh-HK": zhHK$a,
84236
- "en-US": enUS$a,
84237
- "ja-JP": jaJP$a
84325
+ "zh-CN": zhCN$b,
84326
+ "zh-HK": zhHK$b,
84327
+ "en-US": enUS$b,
84328
+ "ja-JP": jaJP$b
84238
84329
  });
84239
84330
  const selectTemplates = "";
84240
84331
  const CHOOSE_TEMPLATE_IMAGE_SRC = "data:image/svg+xml;base64,Cjxzdmcgd2lkdGg9IjEyMCIgaGVpZ2h0PSIxMjAiIHZpZXdCb3g9IjAgMCAxMjAgMTIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwM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Ni41NTIgMzEgMTA2IDMxQzEwNS40NDggMzEgMTA1IDMxLjQ0NzcgMTA1IDMyVjM0SDEwM0MxMDIuNDQ4IDM0IDEwMiAzNC40NDc3IDEwMiAzNUMxMDIgMzUuNTUyMyAxMDIuNDQ4IDM2IDEwMyAzNkgxMDVWMzhaIiBmaWxsPSIjQUI5M0RDIi8+Cjwvc3ZnPgo=";
@@ -84417,7 +84508,7 @@ ${docStr}
84417
84508
  }
84418
84509
  }
84419
84510
  const index$3 = "";
84420
- const zhCN$9 = {
84511
+ const zhCN$a = {
84421
84512
  callout: {
84422
84513
  name: "\u9AD8\u4EAE\u5757",
84423
84514
  command: {
@@ -84431,7 +84522,7 @@ ${docStr}
84431
84522
  }
84432
84523
  }
84433
84524
  };
84434
- const zhHK$9 = {
84525
+ const zhHK$a = {
84435
84526
  callout: {
84436
84527
  name: "\u9AD8\u4EAE\u584A",
84437
84528
  command: {
@@ -84445,7 +84536,7 @@ ${docStr}
84445
84536
  }
84446
84537
  }
84447
84538
  };
84448
- const enUS$9 = {
84539
+ const enUS$a = {
84449
84540
  callout: {
84450
84541
  name: "Callout",
84451
84542
  command: {
@@ -84459,7 +84550,7 @@ ${docStr}
84459
84550
  }
84460
84551
  }
84461
84552
  };
84462
- const jaJP$9 = {
84553
+ const jaJP$a = {
84463
84554
  callout: {
84464
84555
  name: "\u30E1\u30C3\u30BB\u30FC\u30B8\u30DC\u30C3\u30AF\u30B9",
84465
84556
  command: {
@@ -84474,10 +84565,10 @@ ${docStr}
84474
84565
  }
84475
84566
  };
84476
84567
  i18n$1.mergeLang({
84477
- "zh-CN": zhCN$9,
84478
- "zh-HK": zhHK$9,
84479
- "en-US": enUS$9,
84480
- "ja-JP": jaJP$9
84568
+ "zh-CN": zhCN$a,
84569
+ "zh-HK": zhHK$a,
84570
+ "en-US": enUS$a,
84571
+ "ja-JP": jaJP$a
84481
84572
  });
84482
84573
  function isCalloutBlockData(v) {
84483
84574
  return v.type === "callout";
@@ -85994,7 +86085,7 @@ ${docStr}
85994
86085
  mermaidText: "",
85995
86086
  src: ""
85996
86087
  }));
85997
- const zhCN$8 = {
86088
+ const zhCN$9 = {
85998
86089
  graph: {
85999
86090
  empty: "\u8F93\u5165\u4EE3\u7801\u5C55\u793A\u7ED8\u56FE",
86000
86091
  readonlyEmpty: "\u6682\u65E0\u7ED8\u56FE",
@@ -86011,7 +86102,7 @@ ${docStr}
86011
86102
  }
86012
86103
  }
86013
86104
  };
86014
- const zhHK$8 = {
86105
+ const zhHK$9 = {
86015
86106
  graph: {
86016
86107
  empty: "\u8F38\u5165\u4EE3\u78BC\u5C55\u793A\u7E6A\u5716",
86017
86108
  readonlyEmpty: "\u66AB\u7121\u7E6A\u5716",
@@ -86028,7 +86119,7 @@ ${docStr}
86028
86119
  }
86029
86120
  }
86030
86121
  };
86031
- const enUS$8 = {
86122
+ const enUS$9 = {
86032
86123
  graph: {
86033
86124
  empty: "Input code to generate diagram",
86034
86125
  readonlyEmpty: "No diagrams.",
@@ -86045,7 +86136,7 @@ ${docStr}
86045
86136
  }
86046
86137
  }
86047
86138
  };
86048
- const jaJP$8 = {
86139
+ const jaJP$9 = {
86049
86140
  graph: {
86050
86141
  empty: "\u30B3\u30FC\u30C9\u3092\u5165\u529B\u3057\u3066\u56F3\u8868\u3092\u8868\u793A\u3057\u307E\u3059\u3002",
86051
86142
  readonlyEmpty: "\u30C0\u30A4\u30A2\u30B0\u30E9\u30E0\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
@@ -86063,10 +86154,10 @@ ${docStr}
86063
86154
  }
86064
86155
  };
86065
86156
  i18n$1.mergeLang({
86066
- "zh-CN": zhCN$8,
86067
- "zh-HK": zhHK$8,
86068
- "en-US": enUS$8,
86069
- "ja-JP": jaJP$8
86157
+ "zh-CN": zhCN$9,
86158
+ "zh-HK": zhHK$9,
86159
+ "en-US": enUS$9,
86160
+ "ja-JP": jaJP$9
86070
86161
  });
86071
86162
  function createEmbedContent$5(editor, content, block) {
86072
86163
  const mermaid = MermaidInstance.get(editor, block.id);
@@ -86104,7 +86195,7 @@ ${docStr}
86104
86195
  const data2 = embedData;
86105
86196
  if (type === "html") {
86106
86197
  if (data2.src) {
86107
- return `<img src="${editor.doc.buildResourceUrl(data2.src, { withToken: true })}" />`;
86198
+ return `<img data-embed-type="mermaid" data-uuid="mermaid:${data2.src}" src="${editor.doc.buildResourceUrl(data2.src, { withToken: true })}" />`;
86108
86199
  }
86109
86200
  if (data2.mermaidText) {
86110
86201
  return `<div class="mermaid">${data2.mermaidText}</div>`;
@@ -86270,7 +86361,7 @@ ${data2.mermaidText}
86270
86361
  const data2 = embedData;
86271
86362
  if (type === "html") {
86272
86363
  if (data2.src) {
86273
- return `<img src="${editor.doc.buildResourceUrl(data2.src, { withToken: true })}" />`;
86364
+ return `<img data-embed-type="flowchart" data-uuid="flowchart:${data2.src}" src="${editor.doc.buildResourceUrl(data2.src, { withToken: true })}" />`;
86274
86365
  }
86275
86366
  if (data2.flowchartText) {
86276
86367
  return `<div>${data2.flowchartText}</div>`;
@@ -87059,7 +87150,7 @@ ${data2.flowchartText}
87059
87150
  });
87060
87151
  return { ...properties, abstract: i18n$1.t("drawio.abstract") };
87061
87152
  }
87062
- const enUS$7 = {
87153
+ const enUS$8 = {
87063
87154
  drawio: {
87064
87155
  title: "Flowchart/UML",
87065
87156
  empty: "Empty graph",
@@ -87077,7 +87168,7 @@ ${data2.flowchartText}
87077
87168
  }
87078
87169
  }
87079
87170
  };
87080
- const zhCN$7 = {
87171
+ const zhCN$8 = {
87081
87172
  drawio: {
87082
87173
  title: "\u6D41\u7A0B\u56FE/UML",
87083
87174
  empty: "\u7A7A\u56FE\u8868",
@@ -87095,7 +87186,7 @@ ${data2.flowchartText}
87095
87186
  }
87096
87187
  }
87097
87188
  };
87098
- const zhHK$7 = {
87189
+ const zhHK$8 = {
87099
87190
  drawio: {
87100
87191
  title: "\u6D41\u7A0B\u5716/UML",
87101
87192
  empty: "\u7A7A\u5716\u8868",
@@ -87113,7 +87204,7 @@ ${data2.flowchartText}
87113
87204
  }
87114
87205
  }
87115
87206
  };
87116
- const jaJP$7 = {
87207
+ const jaJP$8 = {
87117
87208
  drawio: {
87118
87209
  title: "\u30D5\u30ED\u30FC\u30C1\u30E3\u30FC\u30C8/UML",
87119
87210
  empty: "\u30B0\u30E9\u30D5\u30C7\u30FC\u30BF\u306A\u3057",
@@ -87132,10 +87223,10 @@ ${data2.flowchartText}
87132
87223
  }
87133
87224
  };
87134
87225
  const langs = {
87135
- "en-US": enUS$7,
87136
- "zh-CN": zhCN$7,
87137
- "zh-HK": zhHK$7,
87138
- "ja-JP": jaJP$7
87226
+ "en-US": enUS$8,
87227
+ "zh-CN": zhCN$8,
87228
+ "zh-HK": zhHK$8,
87229
+ "ja-JP": jaJP$8
87139
87230
  };
87140
87231
  i18n$1.mergeLang(langs);
87141
87232
  const logger$h = getLogger("embed-block-drawio");
@@ -87233,7 +87324,7 @@ ${data2.flowchartText}
87233
87324
  const data2 = embedData;
87234
87325
  if (type === "html") {
87235
87326
  if (data2.src) {
87236
- return `<img src="${editor.doc.buildResourceUrl(data2.src, { withToken: true })}" />`;
87327
+ return `<img data-embed-type="drawio" data-uuid="drawio:${data2.src}" src="${editor.doc.buildResourceUrl(data2.src, { withToken: true })}" />`;
87237
87328
  }
87238
87329
  if (data2.xmlSvg) {
87239
87330
  return data2.xmlSvg;
@@ -87427,7 +87518,7 @@ ${data2.flowchartText}
87427
87518
  const data2 = embedData;
87428
87519
  if (type === "html") {
87429
87520
  if (data2.src) {
87430
- return `<img src="${editor.doc.buildResourceUrl(data2.src, { withToken: true })}" />`;
87521
+ return `<img data-embed-type="plantuml" data-uuid="plantuml:${data2.src}" src="${editor.doc.buildResourceUrl(data2.src, { withToken: true })}" />`;
87431
87522
  }
87432
87523
  if (data2.plantumlText) {
87433
87524
  return `<div>${data2.plantumlText}</div>`;
@@ -88202,7 +88293,7 @@ ${data2.plantumlText}
88202
88293
  this.editor.removeListener("selectionChanged", this.handleSelectionChanged);
88203
88294
  }
88204
88295
  }
88205
- const zhCN$6 = {
88296
+ const zhCN$7 = {
88206
88297
  mobile: {
88207
88298
  insert: "\u63D2\u5165",
88208
88299
  commands: {
@@ -88210,7 +88301,7 @@ ${data2.plantumlText}
88210
88301
  }
88211
88302
  }
88212
88303
  };
88213
- const zhHK$6 = {
88304
+ const zhHK$7 = {
88214
88305
  mobile: {
88215
88306
  insert: "\u63D2\u5165",
88216
88307
  commands: {
@@ -88218,7 +88309,7 @@ ${data2.plantumlText}
88218
88309
  }
88219
88310
  }
88220
88311
  };
88221
- const enUS$6 = {
88312
+ const enUS$7 = {
88222
88313
  mobile: {
88223
88314
  insert: "Insert",
88224
88315
  commands: {
@@ -88226,7 +88317,7 @@ ${data2.plantumlText}
88226
88317
  }
88227
88318
  }
88228
88319
  };
88229
- const jaJP$6 = {
88320
+ const jaJP$7 = {
88230
88321
  mobile: {
88231
88322
  insert: "\u633F\u5165",
88232
88323
  commands: {
@@ -88235,10 +88326,10 @@ ${data2.plantumlText}
88235
88326
  }
88236
88327
  };
88237
88328
  i18n$1.mergeLang({
88238
- "zh-CN": zhCN$6,
88239
- "zh-HK": zhHK$6,
88240
- "en-US": enUS$6,
88241
- "ja-JP": jaJP$6
88329
+ "zh-CN": zhCN$7,
88330
+ "zh-HK": zhHK$7,
88331
+ "en-US": enUS$7,
88332
+ "ja-JP": jaJP$7
88242
88333
  });
88243
88334
  const mobileHelperStyles = "";
88244
88335
  const LONG_PRESS_DELAY = 800;
@@ -88358,7 +88449,7 @@ ${data2.plantumlText}
88358
88449
  );
88359
88450
  return contents;
88360
88451
  }
88361
- const zhCN$5 = {
88452
+ const zhCN$6 = {
88362
88453
  layout: {
88363
88454
  title: "\u5206\u680F",
88364
88455
  columnDrag: "\u957F\u6309\u62D6\u62FD\n\u70B9\u51FB\u53EF\u64CD\u4F5C\u5220\u9664",
@@ -88367,7 +88458,7 @@ ${data2.plantumlText}
88367
88458
  currentCols: "{currentColumns} \u680F"
88368
88459
  }
88369
88460
  };
88370
- const zhHK$5 = {
88461
+ const zhHK$6 = {
88371
88462
  layout: {
88372
88463
  title: "\u5206\u6B04",
88373
88464
  columnDrag: "\u9577\u6309\u62D6\u62FD\n\u9EDE\u64CA\u53EF\u64CD\u4F5C\u522A\u9664",
@@ -88376,7 +88467,7 @@ ${data2.plantumlText}
88376
88467
  currentCols: "{currentColumns} \u6B04"
88377
88468
  }
88378
88469
  };
88379
- const enUS$5 = {
88470
+ const enUS$6 = {
88380
88471
  layout: {
88381
88472
  title: "Column",
88382
88473
  columnDrag: "Click and hold the column to drag it.\nClick to delete it.",
@@ -88385,7 +88476,7 @@ ${data2.plantumlText}
88385
88476
  currentCols: "{currentColumns} columns"
88386
88477
  }
88387
88478
  };
88388
- const jaJP$5 = {
88479
+ const jaJP$6 = {
88389
88480
  layout: {
88390
88481
  title: "\u6BB5\u7D44\u307F",
88391
88482
  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",
@@ -88395,10 +88486,10 @@ ${data2.plantumlText}
88395
88486
  }
88396
88487
  };
88397
88488
  i18n$1.mergeLang({
88398
- "zh-CN": zhCN$5,
88399
- "zh-HK": zhHK$5,
88400
- "en-US": enUS$5,
88401
- "ja-JP": jaJP$5
88489
+ "zh-CN": zhCN$6,
88490
+ "zh-HK": zhHK$6,
88491
+ "en-US": enUS$6,
88492
+ "ja-JP": jaJP$6
88402
88493
  });
88403
88494
  const layoutStyles = "";
88404
88495
  const LAYOUT_NAME = "LayoutBlock";
@@ -90466,7 +90557,7 @@ ${data2.plantumlText}
90466
90557
  handleUpdateBlock,
90467
90558
  convertTo: convertTo$1
90468
90559
  };
90469
- const zhCN$4 = {
90560
+ const zhCN$5 = {
90470
90561
  webpage: {
90471
90562
  title: "\u7F51\u9875",
90472
90563
  youku: "\u4F18\u9177\u89C6\u9891",
@@ -90492,7 +90583,7 @@ ${data2.plantumlText}
90492
90583
  }
90493
90584
  }
90494
90585
  };
90495
- const zhHK$4 = {
90586
+ const zhHK$5 = {
90496
90587
  webpage: {
90497
90588
  title: "\u7DB2\u9801",
90498
90589
  youku: "\u512A\u9177\u8996\u983B",
@@ -90518,7 +90609,7 @@ ${data2.plantumlText}
90518
90609
  }
90519
90610
  }
90520
90611
  };
90521
- const enUS$4 = {
90612
+ const enUS$5 = {
90522
90613
  webpage: {
90523
90614
  title: "Webpage",
90524
90615
  youku: "Youku",
@@ -90544,7 +90635,7 @@ ${data2.plantumlText}
90544
90635
  }
90545
90636
  }
90546
90637
  };
90547
- const jaJP$4 = {
90638
+ const jaJP$5 = {
90548
90639
  webpage: {
90549
90640
  title: "Web \u30DA\u30FC\u30B8",
90550
90641
  youku: "Youku \u52D5\u753B",
@@ -90571,42 +90662,42 @@ ${data2.plantumlText}
90571
90662
  }
90572
90663
  };
90573
90664
  i18n$1.mergeLang({
90574
- "zh-CN": zhCN$4,
90575
- "zh-HK": zhHK$4,
90576
- "en-US": enUS$4,
90577
- "ja-JP": jaJP$4
90665
+ "zh-CN": zhCN$5,
90666
+ "zh-HK": zhHK$5,
90667
+ "en-US": enUS$5,
90668
+ "ja-JP": jaJP$5
90578
90669
  });
90579
90670
  const webpageStyle = "";
90580
90671
  const DIVIDING_LINE_EMBED = "hr";
90581
- const zhCN$3 = {
90672
+ const zhCN$4 = {
90582
90673
  dividingLine: {
90583
90674
  type: "\u5206\u5272\u7EBF",
90584
90675
  abstract: "\u5206\u5272\u7EBF"
90585
90676
  }
90586
90677
  };
90587
- const zhHK$3 = {
90678
+ const zhHK$4 = {
90588
90679
  dividingLine: {
90589
90680
  type: "\u5206\u5272\u7DDA",
90590
90681
  abstract: "\u5206\u5272\u7DDA"
90591
90682
  }
90592
90683
  };
90593
- const enUS$3 = {
90684
+ const enUS$4 = {
90594
90685
  dividingLine: {
90595
90686
  type: "Dividing-Line",
90596
90687
  abstract: "Dividing-Line"
90597
90688
  }
90598
90689
  };
90599
- const jaJP$3 = {
90690
+ const jaJP$4 = {
90600
90691
  dividingLine: {
90601
90692
  type: "\u533A\u5207\u308A\u7DDA",
90602
90693
  abstract: "\u533A\u5207\u308A\u7DDA"
90603
90694
  }
90604
90695
  };
90605
90696
  i18n$1.mergeLang({
90606
- "zh-CN": zhCN$3,
90607
- "zh-HK": zhHK$3,
90608
- "en-US": enUS$3,
90609
- "ja-JP": jaJP$3
90697
+ "zh-CN": zhCN$4,
90698
+ "zh-HK": zhHK$4,
90699
+ "en-US": enUS$4,
90700
+ "ja-JP": jaJP$4
90610
90701
  });
90611
90702
  function createEmbedContent(_editor, content) {
90612
90703
  const hrElementContainer = createElement("div", ["editor-embed-container"], content);
@@ -90665,7 +90756,7 @@ ${data2.plantumlText}
90665
90756
  };
90666
90757
  const index$1 = "";
90667
90758
  const index = "";
90668
- const zhCN$2 = {
90759
+ const zhCN$3 = {
90669
90760
  media: {
90670
90761
  upload: {
90671
90762
  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>',
@@ -90684,7 +90775,7 @@ ${data2.plantumlText}
90684
90775
  }
90685
90776
  }
90686
90777
  };
90687
- const zhHK$2 = {
90778
+ const zhHK$3 = {
90688
90779
  media: {
90689
90780
  upload: {
90690
90781
  failed: '<div class="line-1">{name}\u4E0A\u50B3\u5931\u6557</div><div class="line-2">\u7DB2\u7D61\u670D\u52D9\u7570\u5E38\uFF0C\u4F60\u53EF\u4EE5 <span class="retry-upload">\u91CD\u8A66</span></div>',
@@ -90703,7 +90794,7 @@ ${data2.plantumlText}
90703
90794
  }
90704
90795
  }
90705
90796
  };
90706
- const enUS$2 = {
90797
+ const enUS$3 = {
90707
90798
  media: {
90708
90799
  upload: {
90709
90800
  failed: '<div class="line-1">{name} upload failed</div><div class="line-2">Network error, you can <span class="retry-upload">Retry</span></div>',
@@ -90722,7 +90813,7 @@ ${data2.plantumlText}
90722
90813
  }
90723
90814
  }
90724
90815
  };
90725
- const jaJP$2 = {
90816
+ const jaJP$3 = {
90726
90817
  media: {
90727
90818
  upload: {
90728
90819
  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>',
@@ -90742,10 +90833,10 @@ ${data2.plantumlText}
90742
90833
  }
90743
90834
  };
90744
90835
  i18n$1.mergeLang({
90745
- "zh-CN": zhCN$2,
90746
- "zh-HK": zhHK$2,
90747
- "en-US": enUS$2,
90748
- "ja-JP": jaJP$2
90836
+ "zh-CN": zhCN$3,
90837
+ "zh-HK": zhHK$3,
90838
+ "en-US": enUS$3,
90839
+ "ja-JP": jaJP$3
90749
90840
  });
90750
90841
  var MediaType = /* @__PURE__ */ ((MediaType2) => {
90751
90842
  MediaType2["AUDIO"] = "audio";
@@ -91163,7 +91254,7 @@ ${data2.plantumlText}
91163
91254
  const mediaData = blockData.embedData;
91164
91255
  const url = editor.doc.buildResourceUrl(mediaData.src, { withToken: true });
91165
91256
  if (type === "html") {
91166
- return `<${mediaData.type} src="${url}" />`;
91257
+ return `<${this.embedType} data-embed-type="${this.embedType}" data-uuid="${this.embedType}:${mediaData.src}" src="${url}" />`;
91167
91258
  }
91168
91259
  if (type === "markdown") {
91169
91260
  return `![${mediaData.src}](${url})`;
@@ -91874,7 +91965,7 @@ ${data2.plantumlText}
91874
91965
  return false;
91875
91966
  }
91876
91967
  }
91877
- const zhCN$1 = {
91968
+ const zhCN$2 = {
91878
91969
  placeholder: {
91879
91970
  common: {
91880
91971
  title: "\u8BF7\u8F93\u5165\u6807\u9898",
@@ -91904,7 +91995,7 @@ ${data2.plantumlText}
91904
91995
  uploadResourceNoPopup: "\u6587\u4EF6\u8D44\u6E90\u4E0A\u4F20\u5F02\u5E38\uFF0C\u4E3A\u907F\u514D\u6570\u636E\u4E22\u5931\uFF0C\u5DF2\u6682\u65F6\u7981\u7528\u7F16\u8F91\u3002\u8BF7\u590D\u5236\u8FD8\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\uFF0C\u5237\u65B0\u9875\u9762\u540E\u91CD\u8BD5\u3002"
91905
91996
  }
91906
91997
  };
91907
- const zhHK$1 = {
91998
+ const zhHK$2 = {
91908
91999
  placeholder: {
91909
92000
  common: {
91910
92001
  title: "\u8ACB\u8F38\u5165\u6A19\u984C",
@@ -91934,7 +92025,7 @@ ${data2.plantumlText}
91934
92025
  uploadResourceNoPopup: "\u6587\u4EF6\u8CC7\u6E90\u4E0A\u50B3\u7570\u5E38\uFF0C\u70BA\u907F\u514D\u6578\u64DA\u4E1F\u5931\uFF0C\u5DF2\u66AB\u6642\u7981\u7528\u7DE8\u8F2F\u3002\u8ACB\u8907\u88FD\u9084\u672A\u4FDD\u5B58\u7684\u4FEE\u6539\uFF0C\u5237\u65B0\u9801\u9762\u5F8C\u91CD\u8A66\u3002"
91935
92026
  }
91936
92027
  };
91937
- const enUS$1 = {
92028
+ const enUS$2 = {
91938
92029
  placeholder: {
91939
92030
  common: {
91940
92031
  title: "Enter a title",
@@ -91964,7 +92055,7 @@ ${data2.plantumlText}
91964
92055
  uploadResourceNoPopup: "Resource upload error. Editing is temporarily disabled to prevent data loss. Please copy any unsaved changes and refresh the page to try again."
91965
92056
  }
91966
92057
  };
91967
- const jaJP$1 = {
92058
+ const jaJP$2 = {
91968
92059
  placeholder: {
91969
92060
  common: {
91970
92061
  title: "\u30BF\u30A4\u30C8\u30EB\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
@@ -91995,10 +92086,10 @@ ${data2.plantumlText}
91995
92086
  }
91996
92087
  };
91997
92088
  i18n$1.mergeLang({
91998
- "zh-CN": zhCN$1,
91999
- "zh-HK": zhHK$1,
92000
- "en-US": enUS$1,
92001
- "ja-JP": jaJP$1
92089
+ "zh-CN": zhCN$2,
92090
+ "zh-HK": zhHK$2,
92091
+ "en-US": enUS$2,
92092
+ "ja-JP": jaJP$2
92002
92093
  });
92003
92094
  const style$1 = "";
92004
92095
  class AutoNewLine {
@@ -92277,6 +92368,36 @@ ${JSON.stringify(error2, null, 2)}`);
92277
92368
  return !!document.querySelector(".editor-popup-info-container");
92278
92369
  }
92279
92370
  }
92371
+ const zhCN$1 = {
92372
+ toDocx: {
92373
+ videoUnsupportedExport: "[\u89C6\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",
92374
+ audioUnsupportedExport: "[\u97F3\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]"
92375
+ }
92376
+ };
92377
+ const zhHK$1 = {
92378
+ toDocx: {
92379
+ videoUnsupportedExport: "[\u8996\u983B\u66AB\u4E0D\u652F\u6301\u5C0E\u51FA]",
92380
+ audioUnsupportedExport: "[\u97F3\u983B\u66AB\u4E0D\u652F\u6301\u5C0E\u51FA]"
92381
+ }
92382
+ };
92383
+ const enUS$1 = {
92384
+ toDocx: {
92385
+ videoUnsupportedExport: "[Export unavailable for video content]",
92386
+ audioUnsupportedExport: "[Export unavailable for audio content]"
92387
+ }
92388
+ };
92389
+ const jaJP$1 = {
92390
+ toDocx: {
92391
+ videoUnsupportedExport: "[\u52D5\u753B\u306E\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8\u306B\u306F\u5BFE\u5FDC\u3057\u3066\u304A\u308A\u307E\u305B\u3093]",
92392
+ audioUnsupportedExport: "[\u97F3\u58F0\u306E\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8\u306B\u306F\u5BFE\u5FDC\u3057\u3066\u304A\u308A\u307E\u305B\u3093]"
92393
+ }
92394
+ };
92395
+ i18n$1.mergeLang({
92396
+ "zh-CN": zhCN$1,
92397
+ "zh-HK": zhHK$1,
92398
+ "en-US": enUS$1,
92399
+ "ja-JP": jaJP$1
92400
+ });
92280
92401
  const templateBase64 = "UEsDBBQABgAIAAAAIQBk9WPugQEAACkGAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC0lMtqwzAQRfeF/oPRtsRKuiilxMmij2Ub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/DMAAGRvY1Byb3BzL2FwcC54bWxQSwECLQAUAAYACAAAACEAiD+lv+EAAABVAQAAGAAAAAAAAAAAAAAAAAAHNwAAY3VzdG9tWG1sL2l0ZW1Qcm9wczEueG1sUEsBAi0AFAAGAAgAAAAhAMEnywi2AAAAIQEAABMAAAAAAAAAAAAAAAAARjgAAGN1c3RvbVhtbC9pdGVtMS54bWxQSwECLQAUAAYACAAAACEAdD85esIAAAAoAQAAHgAAAAAAAAAAAAAAAABVOQAAY3VzdG9tWG1sL19yZWxzL2l0ZW0xLnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAOuAYExTAwAAjw4AABIAAAAAAAAAAAAAAAAAWzsAAHdvcmQvZm9udFRhYmxlLnhtbFBLBQYAAAAADwAPANQDAADePgAAAAA=";
92281
92402
  const getDefaultDocXTemplate = () => {
92282
92403
  const blob = fromBase64ToBlob(templateBase64);
@@ -92744,7 +92865,7 @@ ${JSON.stringify(error2, null, 2)}`);
92744
92865
  return new docx.Paragraph({
92745
92866
  children: [
92746
92867
  new docx.TextRun({
92747
- text: "[\u89C6\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",
92868
+ text: i18n$1.t("toDocx.videoUnsupportedExport"),
92748
92869
  shading: {
92749
92870
  type: docx.ShadingType.CLEAR,
92750
92871
  color: "FFFFFF",
@@ -92758,7 +92879,7 @@ ${JSON.stringify(error2, null, 2)}`);
92758
92879
  return new docx.Paragraph({
92759
92880
  children: [
92760
92881
  new docx.TextRun({
92761
- text: "[\u97F3\u9891\u6682\u4E0D\u652F\u6301\u5BFC\u51FA]",
92882
+ text: i18n$1.t("toDocx.audioUnsupportedExport"),
92762
92883
  shading: {
92763
92884
  type: docx.ShadingType.CLEAR,
92764
92885
  color: "FFFFFF",
@@ -94064,10 +94185,15 @@ ${JSON.stringify(error2, null, 2)}`);
94064
94185
  }
94065
94186
  this.children = commands;
94066
94187
  }
94067
- onClick(editor, item) {
94188
+ onClick(editor, item, commandBar2) {
94068
94189
  const provider = new InsertMenuProvider(editor);
94069
94190
  const startBlock = editor.getBlockById(editor.selection.range.start.blockId);
94070
94191
  provider.executeCommand(editor, startBlock, editor.selection.range, item, {});
94192
+ commandBar2.close("clickItem");
94193
+ const bar2 = commandBar2;
94194
+ if (bar2.closeable) {
94195
+ bar2.closeable.close("clickItem");
94196
+ }
94071
94197
  }
94072
94198
  }
94073
94199
  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>';
@@ -94086,9 +94212,19 @@ ${JSON.stringify(error2, null, 2)}`);
94086
94212
  __publicField(this, "id", "comment");
94087
94213
  __publicField(this, "name", i18n$1.t("comment.command"));
94088
94214
  __publicField(this, "icon", CommentIcon$1);
94215
+ __publicField(this, "adding", false);
94089
94216
  }
94090
94217
  onClick(editor, item) {
94091
- editorAddComment(editor);
94218
+ if (this.adding) {
94219
+ return;
94220
+ }
94221
+ this.adding = true;
94222
+ setTimeout(() => {
94223
+ editorAddComment(editor);
94224
+ setTimeout(() => {
94225
+ this.adding = false;
94226
+ }, 300);
94227
+ }, 300);
94092
94228
  }
94093
94229
  }
94094
94230
  class ColorItem extends TextColorItem {
@@ -94190,7 +94326,7 @@ ${JSON.stringify(error2, null, 2)}`);
94190
94326
  return;
94191
94327
  }
94192
94328
  const content = toolbar2.content;
94193
- const toolbarRoot = content.closest(".editor-command-bar-root");
94329
+ const toolbarRoot = content.closest(".editor-main-toolbar-resizer");
94194
94330
  const toolbarRect = toolbarRoot.getBoundingClientRect();
94195
94331
  const toolbarRight = toolbarRect.right;
94196
94332
  items.forEach((item) => {
@@ -94250,13 +94386,77 @@ ${JSON.stringify(error2, null, 2)}`);
94250
94386
  moreItems.push(item);
94251
94387
  }
94252
94388
  });
94389
+ if (moreItems.length > 0) {
94390
+ if (moreItems[moreItems.length - 1].type === "separator") {
94391
+ moreItems.pop();
94392
+ }
94393
+ }
94253
94394
  this.hidden = moreItems.length === 0;
94254
94395
  this.children = moreItems;
94255
94396
  toolbar2.updateItems(items);
94256
94397
  }
94257
94398
  }
94399
+ class InsertFileItem {
94400
+ constructor() {
94401
+ __publicField(this, "id", "insert-file");
94402
+ __publicField(this, "name", i18n$1.t("toolbar.file"));
94403
+ __publicField(this, "icon", AttachmentIcon);
94404
+ }
94405
+ async onClick(editor, item) {
94406
+ const block = editor.getBlockById(editor.selection.range.start.blockId);
94407
+ const container = editor.getParentContainer(block);
94408
+ const index2 = editor.getBlockIndex(block);
94409
+ const file2 = await selectFile("*");
94410
+ if (!file2) {
94411
+ return;
94412
+ }
94413
+ const res = await editor.doc.uploadResource(file2);
94414
+ if (!res.resourceId) {
94415
+ return;
94416
+ }
94417
+ const data2 = {
94418
+ src: res.resourceId,
94419
+ fileName: file2.name,
94420
+ fileSize: file2.size,
94421
+ fileType: file2.type,
94422
+ created: Date.now(),
94423
+ creator: editor.doc.getUser().displayName,
94424
+ previewType: FilePreviewType.Card
94425
+ };
94426
+ editor.insertEmbed(getContainerId(container), index2 + 1, "office", data2);
94427
+ }
94428
+ }
94429
+ class InsertMentionItem {
94430
+ constructor() {
94431
+ __publicField(this, "id", "insert-mention");
94432
+ __publicField(this, "name", i18n$1.t("toolbar.mention"));
94433
+ __publicField(this, "icon", Mention2Icon);
94434
+ }
94435
+ onClick(editor, item) {
94436
+ editor.clearSelectedContents();
94437
+ const focus = editor.selection.range.focus;
94438
+ if (!focus.isSimple()) {
94439
+ return;
94440
+ }
94441
+ const block = editor.getBlockById(focus.blockId);
94442
+ if (!isTextKindBlock(editor, block)) {
94443
+ return;
94444
+ }
94445
+ editor.focus();
94446
+ editor.insertTextToBlock(block, focus.offset, "@");
94447
+ const mention = editor.findCustom("mention");
94448
+ if (mention) {
94449
+ const suggest = mention.suggest;
94450
+ if (suggest) {
94451
+ const container = getParentContainer(block);
94452
+ suggest.handleAfterInsertText(editor, getContainerId(container), getBlockIndex(block), focus.offset, "@");
94453
+ }
94454
+ }
94455
+ }
94456
+ }
94258
94457
  function getToolbarDefaultItems(editor) {
94259
- return [
94458
+ const commentsEnabled = !!editor.options.enableComments;
94459
+ const items = [
94260
94460
  new UndoItem(),
94261
94461
  new RedoItem(),
94262
94462
  new SeparatorItem(),
@@ -94283,10 +94483,13 @@ ${JSON.stringify(error2, null, 2)}`);
94283
94483
  new SeparatorItem(),
94284
94484
  new InsertItem(editor),
94285
94485
  new SeparatorItem(),
94286
- new FindReplaceItem(),
94287
- new CommentItem(),
94288
- new MoreItem(editor)
94486
+ new FindReplaceItem()
94289
94487
  ];
94488
+ if (commentsEnabled) {
94489
+ items.push(new CommentItem());
94490
+ }
94491
+ items.push(new MoreItem(editor));
94492
+ return items;
94290
94493
  }
94291
94494
  const zhCN = {
94292
94495
  toolbar: {
@@ -94299,7 +94502,10 @@ ${JSON.stringify(error2, null, 2)}`);
94299
94502
  quote: "\u5F15\u7528",
94300
94503
  checkList: "\u4EFB\u52A1\u5217\u8868",
94301
94504
  orderedList: "\u6709\u5E8F\u5217\u8868",
94302
- unorderedList: "\u65E0\u5E8F\u5217\u8868"
94505
+ unorderedList: "\u65E0\u5E8F\u5217\u8868",
94506
+ fullscreen: "\u5168\u5C4F",
94507
+ file: "\u63D2\u5165\u6587\u4EF6",
94508
+ mention: "\u63D0\u53CA\u7528\u6237"
94303
94509
  }
94304
94510
  };
94305
94511
  const zhHK = {
@@ -94313,7 +94519,10 @@ ${JSON.stringify(error2, null, 2)}`);
94313
94519
  quote: "\u5F15\u7528",
94314
94520
  checkList: "\u4EFB\u52D9\u5217\u8868",
94315
94521
  orderedList: "\u6709\u5E8F\u5217\u8868",
94316
- unorderedList: "\u7121\u5E8F\u5217\u8868"
94522
+ unorderedList: "\u7121\u5E8F\u5217\u8868",
94523
+ fullscreen: "\u5168\u5C4F",
94524
+ file: "\u63D2\u5165\u6587\u4EF6",
94525
+ mention: "\u63D0\u53CA\u7528\u6236"
94317
94526
  }
94318
94527
  };
94319
94528
  const enUS = {
@@ -94327,7 +94536,10 @@ ${JSON.stringify(error2, null, 2)}`);
94327
94536
  quote: "Quote",
94328
94537
  checkList: "Check List",
94329
94538
  orderedList: "Ordered List",
94330
- unorderedList: "Unordered List"
94539
+ unorderedList: "Unordered List",
94540
+ fullscreen: "Full Screen",
94541
+ file: "File",
94542
+ mention: "Mention user"
94331
94543
  }
94332
94544
  };
94333
94545
  const jaJP = {
@@ -94341,7 +94553,10 @@ ${JSON.stringify(error2, null, 2)}`);
94341
94553
  quote: "\u5F15\u7528",
94342
94554
  checkList: "\u30C1\u30A7\u30C3\u30AF\u30EA\u30B9\u30C8",
94343
94555
  orderedList: "\u756A\u53F7\u4ED8\u304D\u30EA\u30B9\u30C8",
94344
- unorderedList: "\u7B87\u6761\u66F8\u304D\u30EA\u30B9\u30C8"
94556
+ unorderedList: "\u7B87\u6761\u66F8\u304D\u30EA\u30B9\u30C8",
94557
+ fullscreen: "\u5168\u753B\u9762\u8868\u793A",
94558
+ file: "\u30D5\u30A1\u30A4\u30EB\u3092\u633F\u5165",
94559
+ mention: "\u30E6\u30FC\u30B6\u30FC\u3092\u30E1\u30F3\u30B7\u30E7\u30F3"
94345
94560
  }
94346
94561
  };
94347
94562
  i18n$1.mergeLang({
@@ -94355,10 +94570,11 @@ ${JSON.stringify(error2, null, 2)}`);
94355
94570
  constructor(editor, parent, options = {}) {
94356
94571
  __publicField(this, "toolbar");
94357
94572
  __publicField(this, "toolbarFullScreen");
94573
+ __publicField(this, "root");
94358
94574
  __publicField(this, "handleClick", (bar2, item) => {
94359
94575
  const command = item;
94360
94576
  if (command.onClick) {
94361
- command.onClick(this.editor, command);
94577
+ command.onClick(this.editor, command, bar2);
94362
94578
  this.handleSelectionChanged();
94363
94579
  return;
94364
94580
  }
@@ -94380,7 +94596,7 @@ ${JSON.stringify(error2, null, 2)}`);
94380
94596
  const parent = findParent(i, item.id);
94381
94597
  if (parent) {
94382
94598
  if (parent.onClick) {
94383
- parent.onClick(this.editor, item);
94599
+ parent.onClick(this.editor, item, bar2);
94384
94600
  this.handleSelectionChanged();
94385
94601
  return;
94386
94602
  }
@@ -94395,7 +94611,9 @@ ${JSON.stringify(error2, null, 2)}`);
94395
94611
  const root2 = createElement("div", ["editor-main-toolbar-root"], parent);
94396
94612
  const container = createElement("div", ["editor-main-toolbar-resizer"], root2);
94397
94613
  const resizer = createElement("div", ["editor-main-toolbar-container"], container);
94398
- this.toolbar = new FixedToolbar(resizer, this.getItems(), {
94614
+ const items = getToolbarDefaultItems(editor);
94615
+ this.root = root2;
94616
+ this.toolbar = new FixedToolbar(resizer, items, {
94399
94617
  tooltipId: editor.clientId,
94400
94618
  id: "main-toolbar"
94401
94619
  });
@@ -94432,13 +94650,14 @@ ${JSON.stringify(error2, null, 2)}`);
94432
94650
  this.toolbar.destroy();
94433
94651
  this.editor.removeListener("selectionChanged", this.handleSelectionChanged);
94434
94652
  (_a = this.toolbarFullScreen) == null ? void 0 : _a.destroy();
94653
+ this.root.remove();
94435
94654
  }
94436
94655
  setItems(items) {
94437
94656
  this.toolbar.updateItems(items);
94438
94657
  this.updateState();
94439
94658
  }
94440
94659
  getItems() {
94441
- return getToolbarDefaultItems(this.editor);
94660
+ return this.toolbar.items;
94442
94661
  }
94443
94662
  updateState() {
94444
94663
  const items = this.toolbar.items;
@@ -94477,8 +94696,22 @@ ${JSON.stringify(error2, null, 2)}`);
94477
94696
  });
94478
94697
  }
94479
94698
  const logger = getLogger("create-editor");
94699
+ function getHooks(options, local) {
94700
+ var _a;
94701
+ const hooks = [];
94702
+ if (!options.disableLock) {
94703
+ hooks.push(new BlockLockerHook());
94704
+ }
94705
+ if (!local) {
94706
+ hooks.push(new BlockExclusiveHook());
94707
+ }
94708
+ if ((_a = options.components) == null ? void 0 : _a.blockHooks) {
94709
+ hooks.push(...options.components.blockHooks);
94710
+ }
94711
+ return hooks;
94712
+ }
94480
94713
  function getDefaultOnesEditorOptions(options) {
94481
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
94714
+ var _a, _b, _c, _d, _e, _f, _g, _h;
94482
94715
  const enableComments = options == null ? void 0 : options.enableComments;
94483
94716
  const quickMenu = (_b = (_a = options.componentsOptions) == null ? void 0 : _a.quickMenu) != null ? _b : { id: "quick-menu", trigger: ["/"], commandProviders: [] };
94484
94717
  (_c = quickMenu.commandProviders) == null ? void 0 : _c.push(new GraphCommandProvider());
@@ -94495,11 +94728,11 @@ ${JSON.stringify(error2, null, 2)}`);
94495
94728
  commandProviders: [new TableBlockCommandProvider(), ...((_g = options.components) == null ? void 0 : _g.commandProviders) || []],
94496
94729
  decorators: [new CodeTextDecorator(), new RemoteCaretsDecorator()],
94497
94730
  insertions: [RemoteCaretsInsertion],
94498
- blockHooks: [new BlockLockerHook(), new BlockExclusiveHook(), ...((_h = options.components) == null ? void 0 : _h.blockHooks) || []],
94731
+ blockHooks: getHooks(options, false),
94499
94732
  textRenders: [
94500
94733
  enableComments && new OnesEditorCommentsRender(),
94501
94734
  new BlockPaddingRender(),
94502
- ...((_i = options.components) == null ? void 0 : _i.textRenders) || []
94735
+ ...((_h = options.components) == null ? void 0 : _h.textRenders) || []
94503
94736
  ].filter(Boolean),
94504
94737
  options: { ...options.componentsOptions, quickMenu }
94505
94738
  },
@@ -94518,15 +94751,7 @@ ${JSON.stringify(error2, null, 2)}`);
94518
94751
  TextColorShortcuts,
94519
94752
  ...options.shortcuts || []
94520
94753
  ],
94521
- colors: [
94522
- "#B21B57",
94523
- "#008796",
94524
- "#7241CC",
94525
- "#CC4C08",
94526
- "#5D8F00",
94527
- "#BD2C1C",
94528
- "#D17D00"
94529
- ]
94754
+ colors: ["#B21B57", "#008796", "#7241CC", "#CC4C08", "#5D8F00", "#BD2C1C", "#D17D00"]
94530
94755
  };
94531
94756
  return ret;
94532
94757
  }
@@ -94624,10 +94849,13 @@ ${JSON.stringify(error2, null, 2)}`);
94624
94849
  editor.input.addHandler(new ListPasteHandler());
94625
94850
  editor.doc.registerCallback(new HeadingBlockDocEvents(editor));
94626
94851
  editor.addCustom("remote-cursor", () => new RemoteCarets(editor));
94627
- editor.addCustom("editor-image-preview", () => new ImagePreviewHandler(editor, (editor2, img) => {
94628
- var _a2, _b2;
94629
- (_b2 = (_a2 = options.events) == null ? void 0 : _a2.onPreviewImage) == null ? void 0 : _b2.call(_a2, editor2, img);
94630
- }));
94852
+ editor.addCustom(
94853
+ "editor-image-preview",
94854
+ () => new ImagePreviewHandler(editor, (editor2, img) => {
94855
+ var _a2, _b2;
94856
+ (_b2 = (_a2 = options.events) == null ? void 0 : _a2.onPreviewImage) == null ? void 0 : _b2.call(_a2, editor2, img);
94857
+ })
94858
+ );
94631
94859
  if (options.blockMenuButton !== false) {
94632
94860
  editor.addCustom("block-menu", (editor2) => new OnesEditorBlockMenuButtons(editor2));
94633
94861
  }
@@ -94677,7 +94905,9 @@ ${JSON.stringify(error2, null, 2)}`);
94677
94905
  OnesEditorTocProvider.register(editor);
94678
94906
  OnesEditorExclusiveBlock.register(editor);
94679
94907
  if (!clientType.isMobile) {
94680
- editor.editorCommandProviders.registerCommandProvider(new TextCommandProvider(editor, { scriptDropDown: true, isFilter: true }));
94908
+ editor.editorCommandProviders.registerCommandProvider(
94909
+ new TextCommandProvider(editor, { scriptDropDown: true, isFilter: true })
94910
+ );
94681
94911
  editor.addCustom("editor-tooltip", () => new OnesEditorTooltip(editor));
94682
94912
  } else {
94683
94913
  editor.addCustom("mobile-helper", () => new OnesEditorMobileHelper(editor));
@@ -94724,14 +94954,14 @@ ${JSON.stringify(error2, null, 2)}`);
94724
94954
  }
94725
94955
  }
94726
94956
  });
94727
- editor.version = "2.8.37-beta.3";
94957
+ editor.version = "2.8.37-beta.30";
94728
94958
  return editor;
94729
94959
  }
94730
94960
  function isDoc(doc2) {
94731
94961
  return doc2.toJSON !== void 0;
94732
94962
  }
94733
94963
  async function createLocalEditor(root2, docData, options) {
94734
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
94964
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
94735
94965
  assert(logger, root2, "app does not exists");
94736
94966
  const doc2 = isDoc(docData) ? docData : new LocalDoc(docData, {
94737
94967
  serverUrl: options.serverUrl || ""
@@ -94747,6 +94977,7 @@ ${JSON.stringify(error2, null, 2)}`);
94747
94977
  id: options.id,
94748
94978
  scrollContainer: options == null ? void 0 : options.scrollContainer,
94749
94979
  enableResolveComments: options == null ? void 0 : options.enableResolveComments,
94980
+ enableComments,
94750
94981
  components: {
94751
94982
  blocks: [...StandardBlocks, ...(_f = (_e = options.components) == null ? void 0 : _e.blocks) != null ? _f : []],
94752
94983
  commandProviders: [new TableBlockCommandProvider()],
@@ -94754,7 +94985,7 @@ ${JSON.stringify(error2, null, 2)}`);
94754
94985
  embeds: [...StandardEmbeds, ...((_g = options.components) == null ? void 0 : _g.embeds) || []],
94755
94986
  boxes: [MathjaxBox, MentionBox, FileBox, StatusBox, ...((_h = options.components) == null ? void 0 : _h.boxes) || []],
94756
94987
  insertions: [RemoteCaretsInsertion],
94757
- blockHooks: [new BlockLockerHook(), ...((_i = options.components) == null ? void 0 : _i.blockHooks) || []],
94988
+ blockHooks: [...((_i = options.components) == null ? void 0 : _i.blockHooks) || []],
94758
94989
  textRenders: [
94759
94990
  enableComments && new OnesEditorCommentsRender(),
94760
94991
  new BlockPaddingRender(),
@@ -94787,10 +95018,13 @@ ${JSON.stringify(error2, null, 2)}`);
94787
95018
  editor.input.addHandler(new OnesEditorPasteHandler(editor));
94788
95019
  editor.input.addHandler(new BlockLockerPasteHandler());
94789
95020
  editor.input.addHandler(new ListPasteHandler());
94790
- editor.addCustom("editor-image-preview", () => new ImagePreviewHandler(editor, (editor2, img) => {
94791
- var _a2, _b2;
94792
- (_b2 = (_a2 = options.events) == null ? void 0 : _a2.onPreviewImage) == null ? void 0 : _b2.call(_a2, editor2, img);
94793
- }));
95021
+ editor.addCustom(
95022
+ "editor-image-preview",
95023
+ () => new ImagePreviewHandler(editor, (editor2, img) => {
95024
+ var _a2, _b2;
95025
+ (_b2 = (_a2 = options.events) == null ? void 0 : _a2.onPreviewImage) == null ? void 0 : _b2.call(_a2, editor2, img);
95026
+ })
95027
+ );
94794
95028
  if (options.blockMenuButton !== false) {
94795
95029
  editor.addCustom("block-menu", (editor2) => new OnesEditorBlockMenuButtons(editor2));
94796
95030
  }
@@ -94800,7 +95034,9 @@ ${JSON.stringify(error2, null, 2)}`);
94800
95034
  return new OnesEditorQuickMenu(editor, (_a2 = options.componentsOptions) == null ? void 0 : _a2.quickMenu);
94801
95035
  });
94802
95036
  editor.addCustom("block-menu", (editor2) => new OnesEditorBlockMenuButtons(editor2));
94803
- editor.editorCommandProviders.registerCommandProvider(new TextCommandProvider(editor, { scriptDropDown: true, isFilter: true }));
95037
+ editor.editorCommandProviders.registerCommandProvider(
95038
+ new TextCommandProvider(editor, { scriptDropDown: true, isFilter: true })
95039
+ );
94804
95040
  editor.addCustom("editor-tooltip", () => new OnesEditorTooltip(editor));
94805
95041
  (_k = editor.findCustom("editor-quick-menu")) == null ? void 0 : _k.addFilter("layout-quick-menu-filter", LayoutQuickMenuItemFilter.init(editor));
94806
95042
  (_l = editor.findCustom("editor-block-menu")) == null ? void 0 : _l.addFilter("layout-quick-menu-filter", LayoutQuickMenuItemFilter.init(editor));
@@ -94818,6 +95054,16 @@ ${JSON.stringify(error2, null, 2)}`);
94818
95054
  if (options.enableContextMenu !== false) {
94819
95055
  editor.addCustom("editor-context-menu", (editor2) => new OnesEditorContextMenu(editor2));
94820
95056
  }
95057
+ editor.addCustom("create-options", () => new OnesEditorCustomDataWrapper(editor, options));
95058
+ editor.addCustom("drop-target", () => new OnesEditorDropTarget(editor));
95059
+ editor.addCustom("list-to-mindmap", () => new OnesEditorListMindmap(editor));
95060
+ editor.addCustom("list-to-mention", () => new OnesEditorBlockMention(editor));
95061
+ editor.addCustom("code-caret", () => new OnesEditorCodeCaret(editor));
95062
+ editor.addCustom("layout-paste-handler", () => new LayoutBlockCaptionInputHandler(editor, true));
95063
+ if ((_m = options.componentsOptions) == null ? void 0 : _m.mention) {
95064
+ const mentionOptions = options.componentsOptions.mention;
95065
+ editor.addCustom("mention", () => new OnesEditorMention(editor, mentionOptions));
95066
+ }
94821
95067
  if (options.headingButton !== false) {
94822
95068
  editor.addCustom("heading-collapse", () => new HeadingBlockCollapseButton(editor));
94823
95069
  }
@@ -94838,7 +95084,10 @@ ${JSON.stringify(error2, null, 2)}`);
94838
95084
  }
94839
95085
  });
94840
95086
  OnesEditorToolbar.register(editor);
94841
- editor.version = "2.8.37-beta.3";
95087
+ OnesEditorDropTarget.register(editor);
95088
+ OnesEditorTocProvider.register(editor);
95089
+ OnesEditorExclusiveBlock.register(editor);
95090
+ editor.version = "2.8.37-beta.30";
94842
95091
  return editor;
94843
95092
  }
94844
95093
  async function showDocVersions(editor, options, serverUrl) {
@@ -140631,6 +140880,7 @@ ${JSON.stringify(error2, null, 2)}`);
140631
140880
  exports2.ArrowLeftIcon = arrowLeft;
140632
140881
  exports2.ArrowRightIcon = ArrowRightIcon;
140633
140882
  exports2.ArrowUpIcon = arrowUp;
140883
+ exports2.AttachmentIcon = AttachmentIcon;
140634
140884
  exports2.AudioIcon = AudioIcon;
140635
140885
  exports2.AuthError = AuthError;
140636
140886
  exports2.AuthHeader = AuthHeader;
@@ -140764,9 +141014,11 @@ ${JSON.stringify(error2, null, 2)}`);
140764
141014
  exports2.InputtingInsertion = InputtingInsertion;
140765
141015
  exports2.InsertAfterIcon = InsertAfterIcon;
140766
141016
  exports2.InsertBeforeIcon = InsertBeforeIcon;
141017
+ exports2.InsertFileItem = InsertFileItem;
140767
141018
  exports2.InsertImageItem = InsertImageItem;
140768
141019
  exports2.InsertItem = InsertItem;
140769
141020
  exports2.InsertLinkItem = InsertLinkItem;
141021
+ exports2.InsertMentionItem = InsertMentionItem;
140770
141022
  exports2.InsertMenuProvider = InsertMenuProvider;
140771
141023
  exports2.ItalicIcon = ItalicIcon;
140772
141024
  exports2.LaunchIcon = LaunchIcon;
@@ -140797,6 +141049,7 @@ ${JSON.stringify(error2, null, 2)}`);
140797
141049
  exports2.MathIcon = mathIcon;
140798
141050
  exports2.MathMenuIcon = MathMenuIcon;
140799
141051
  exports2.MaxUserError = MaxUserError;
141052
+ exports2.Mention2Icon = Mention2Icon;
140800
141053
  exports2.MentionIcon = MentionIcon;
140801
141054
  exports2.MergeCellIcon = MergeCellIcon;
140802
141055
  exports2.Mindmap = Mindmap;