@ones-editor/editor 2.8.37-beta.27 → 2.8.37-beta.29

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.
@@ -128,4 +128,5 @@ import TableEditIcon from './table-edit.svg?raw';
128
128
  import AdjustWidthIcon from './adjust-width.svg?raw';
129
129
  import TocIcon from './toc.svg?raw';
130
130
  import AttachmentIcon from './attachment.svg?raw';
131
- export { TableEditIcon, TabIcon, ShiftTabIcon, DownloadIcon, AddEmojiIcon, BallIcon, CardIcon, FoodIcon, LightIcon, SmileIcon, SymbolIcon, TreeIcon, TimeIcon, ClearIcon, CloseIcon, PrevIcon, NextIcon, MoreIcon, TextColorIcon, AddIcon, ArrowDownIcon, ArrowUpIcon, ArrowLeftIcon, ArrowRightIcon, DeleteRowIcon, DeleteColIcon, MergeCellIcon, SplitCellIcon, DeleteTableIcon, Heading1Icon, Heading2Icon, Heading3Icon, Heading4Icon, Heading5Icon, Heading6Icon, Heading7Icon, Heading8Icon, HeadingNIcon, OrderedListIcon, UnorderedListIcon, CheckListIcon, BlockquoteIcon, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, ImageIcon, ImageMenuIcon, ImageErrorIcon, ImageEmptyIcon, LinkIcon, LinkOffIcon, WarningIcon, PasteSpecialIcon, LaunchIcon, CodeIcon, LayoutIcon, AudioIcon, GraphIcon, VideoIcon, FileIcon, MathIcon, MathMenuIcon, TableIcon, TableMenuIcon, BilibiliIcon, YoukuIcon, ModaoIcon, FigmaIcon, EditIcon, CommentIcon, RefreshIcon, HelpIcon, CheckMarkIcon, CircleCheckMarkIcon, TextIcon, RightArrowIcon, TencentVideoIcon, WebPageIcon, UmlIcon, DividingLineIcon, HeadingH1Icon, HeadingH2Icon, HeadingH3Icon, HeadingH4Icon, HeadingH5Icon, HeadingH6Icon, HeadingH7Icon, HeadingH8Icon, CheckboxIcon, QuoteIcon, LinkHrefIcon, OrderedIcon, UnorderedIcon, CopyIcon, CutIcon, DeleteIcon, LockBlockIcon, UnLockBlockIcon, InsertBeforeIcon, InsertAfterIcon, MentionIcon, CircleAddIcon, LoadingIcon, DragIcon, UmlBrandIcon, OnesLoadingIcon, BoldIcon, ItalicIcon, UnderlineIcon, LineThroughIcon, SubscriptIcon, SuperscriptIcon, InlineCodeIcon, ToMindMapIcon, FitIcon, FullScreenIcon, ExitFullScreenIcon, CaretDownIcon, StatusIcon, AlertEmojiIcon, ForbiddenIcon, WarningFilledIcon, InformationFilledIcon, SearchIcon, CalloutIcon, LoadingCircleIcon, TextGroupIcon, AdjustWidthIcon, TocIcon, AttachmentIcon, };
131
+ import Mention2Icon from './mention.svg?raw';
132
+ export { TableEditIcon, TabIcon, ShiftTabIcon, DownloadIcon, AddEmojiIcon, BallIcon, CardIcon, FoodIcon, LightIcon, SmileIcon, SymbolIcon, TreeIcon, TimeIcon, ClearIcon, CloseIcon, PrevIcon, NextIcon, MoreIcon, TextColorIcon, AddIcon, ArrowDownIcon, ArrowUpIcon, ArrowLeftIcon, ArrowRightIcon, DeleteRowIcon, DeleteColIcon, MergeCellIcon, SplitCellIcon, DeleteTableIcon, Heading1Icon, Heading2Icon, Heading3Icon, Heading4Icon, Heading5Icon, Heading6Icon, Heading7Icon, Heading8Icon, HeadingNIcon, OrderedListIcon, UnorderedListIcon, CheckListIcon, BlockquoteIcon, AlignCenterIcon, AlignLeftIcon, AlignRightIcon, ImageIcon, ImageMenuIcon, ImageErrorIcon, ImageEmptyIcon, LinkIcon, LinkOffIcon, WarningIcon, PasteSpecialIcon, LaunchIcon, CodeIcon, LayoutIcon, AudioIcon, GraphIcon, VideoIcon, FileIcon, MathIcon, MathMenuIcon, TableIcon, TableMenuIcon, BilibiliIcon, YoukuIcon, ModaoIcon, FigmaIcon, EditIcon, CommentIcon, RefreshIcon, HelpIcon, CheckMarkIcon, CircleCheckMarkIcon, TextIcon, RightArrowIcon, TencentVideoIcon, WebPageIcon, UmlIcon, DividingLineIcon, HeadingH1Icon, HeadingH2Icon, HeadingH3Icon, HeadingH4Icon, HeadingH5Icon, HeadingH6Icon, HeadingH7Icon, HeadingH8Icon, CheckboxIcon, QuoteIcon, LinkHrefIcon, OrderedIcon, UnorderedIcon, CopyIcon, CutIcon, DeleteIcon, LockBlockIcon, UnLockBlockIcon, InsertBeforeIcon, InsertAfterIcon, MentionIcon, CircleAddIcon, LoadingIcon, DragIcon, UmlBrandIcon, OnesLoadingIcon, BoldIcon, ItalicIcon, UnderlineIcon, LineThroughIcon, SubscriptIcon, SuperscriptIcon, InlineCodeIcon, ToMindMapIcon, FitIcon, FullScreenIcon, ExitFullScreenIcon, CaretDownIcon, StatusIcon, AlertEmojiIcon, ForbiddenIcon, WarningFilledIcon, InformationFilledIcon, SearchIcon, CalloutIcon, LoadingCircleIcon, TextGroupIcon, AdjustWidthIcon, TocIcon, AttachmentIcon, Mention2Icon, };
package/dist/index.js CHANGED
@@ -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;
@@ -41068,6 +41057,7 @@ ${codeText}
41068
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';
41069
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';
41070
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 mention = '<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';
41071
41061
  const index$f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41072
41062
  __proto__: null,
41073
41063
  TableEditIcon,
@@ -41199,7 +41189,8 @@ ${codeText}
41199
41189
  TextGroupIcon,
41200
41190
  AdjustWidthIcon,
41201
41191
  TocIcon,
41202
- AttachmentIcon
41192
+ AttachmentIcon,
41193
+ Mention2Icon: mention
41203
41194
  }, Symbol.toStringTag, { value: "Module" }));
41204
41195
  function createLoading() {
41205
41196
  const loading2 = createElement("span", ["editor-loading-icon"], null);
@@ -80497,14 +80488,10 @@ ${docStr}
80497
80488
  }
80498
80489
  nameElement.title = fileName;
80499
80490
  const infos = createElement("div", ["file-info"], detail);
80500
- if (creator) {
80501
- createElement("div", ["file-creator"], infos, creator);
80502
- }
80503
- if (created) {
80504
- const timeText = i18n$1.t("file.uploadedTime", { time: formatDate(new Date(created), "YYYY-MM-DD hh:mm") });
80505
- createElement("div", ["uploaded-time"], infos, timeText);
80506
- }
80507
- 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);
80508
80495
  const actions2 = createElement("div", ["file-actions"], card);
80509
80496
  const options = editor.getComponentOptions("file");
80510
80497
  let copilotButton;
@@ -94489,7 +94476,8 @@ ${JSON.stringify(error2, null, 2)}`);
94489
94476
  orderedList: "\u6709\u5E8F\u5217\u8868",
94490
94477
  unorderedList: "\u65E0\u5E8F\u5217\u8868",
94491
94478
  fullscreen: "\u5168\u5C4F",
94492
- file: "\u63D2\u5165\u6587\u4EF6"
94479
+ file: "\u63D2\u5165\u6587\u4EF6",
94480
+ mention: "\u63D0\u53CA\u7528\u6237"
94493
94481
  }
94494
94482
  };
94495
94483
  const zhHK = {
@@ -94505,7 +94493,8 @@ ${JSON.stringify(error2, null, 2)}`);
94505
94493
  orderedList: "\u6709\u5E8F\u5217\u8868",
94506
94494
  unorderedList: "\u7121\u5E8F\u5217\u8868",
94507
94495
  fullscreen: "\u5168\u5C4F",
94508
- file: "\u63D2\u5165\u6587\u4EF6"
94496
+ file: "\u63D2\u5165\u6587\u4EF6",
94497
+ mention: "\u63D0\u53CA\u7528\u6236"
94509
94498
  }
94510
94499
  };
94511
94500
  const enUS = {
@@ -94521,7 +94510,8 @@ ${JSON.stringify(error2, null, 2)}`);
94521
94510
  orderedList: "Ordered List",
94522
94511
  unorderedList: "Unordered List",
94523
94512
  fullscreen: "Full Screen",
94524
- file: "File"
94513
+ file: "File",
94514
+ mention: "Mention user"
94525
94515
  }
94526
94516
  };
94527
94517
  const jaJP = {
@@ -94537,7 +94527,8 @@ ${JSON.stringify(error2, null, 2)}`);
94537
94527
  orderedList: "\u756A\u53F7\u4ED8\u304D\u30EA\u30B9\u30C8",
94538
94528
  unorderedList: "\u7B87\u6761\u66F8\u304D\u30EA\u30B9\u30C8",
94539
94529
  fullscreen: "\u5168\u753B\u9762\u8868\u793A",
94540
- file: "\u30D5\u30A1\u30A4\u30EB\u3092\u633F\u5165"
94530
+ file: "\u30D5\u30A1\u30A4\u30EB\u3092\u633F\u5165",
94531
+ mention: "\u30E6\u30FC\u30B6\u30FC\u3092\u30E1\u30F3\u30B7\u30E7\u30F3"
94541
94532
  }
94542
94533
  };
94543
94534
  i18n$1.mergeLang({
@@ -94935,7 +94926,7 @@ ${JSON.stringify(error2, null, 2)}`);
94935
94926
  }
94936
94927
  }
94937
94928
  });
94938
- editor.version = "2.8.37-beta.27";
94929
+ editor.version = "2.8.37-beta.29";
94939
94930
  return editor;
94940
94931
  }
94941
94932
  function isDoc(doc2) {
@@ -95068,7 +95059,7 @@ ${JSON.stringify(error2, null, 2)}`);
95068
95059
  OnesEditorDropTarget.register(editor);
95069
95060
  OnesEditorTocProvider.register(editor);
95070
95061
  OnesEditorExclusiveBlock.register(editor);
95071
- editor.version = "2.8.37-beta.27";
95062
+ editor.version = "2.8.37-beta.29";
95072
95063
  return editor;
95073
95064
  }
95074
95065
  async function showDocVersions(editor, options, serverUrl) {
@@ -141029,6 +141020,7 @@ ${JSON.stringify(error2, null, 2)}`);
141029
141020
  exports2.MathIcon = mathIcon;
141030
141021
  exports2.MathMenuIcon = MathMenuIcon;
141031
141022
  exports2.MaxUserError = MaxUserError;
141023
+ exports2.Mention2Icon = mention;
141032
141024
  exports2.MentionIcon = MentionIcon;
141033
141025
  exports2.MergeCellIcon = MergeCellIcon;
141034
141026
  exports2.Mindmap = Mindmap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.8.37-beta.27",
3
+ "version": "2.8.37-beta.29",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {