@ones-editor/editor 2.1.1-beta.88 → 2.1.1-beta.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1905,7 +1905,7 @@ div.scroll-container-root.mac > div.container-scroll-tool .container-scrollbar::
1905
1905
  [data-command-bar-id=quick-menu],
1906
1906
  [data-command-bar-id=empty-block-menu] {
1907
1907
  box-sizing: border-box;
1908
- width: 240px;
1908
+ min-width: 240px;
1909
1909
  }
1910
1910
  [data-command-bar-id=quick-menu] .command-item.menu-item,
1911
1911
  [data-command-bar-id=empty-block-menu] .command-item.menu-item {
@@ -2073,9 +2073,6 @@ div.tippy-box[data-theme=editor-tooltip] > .tippy-content {
2073
2073
  height: 40px;
2074
2074
  transform: scaleX(0.5);
2075
2075
  background-color: var(--Fills-Vibrant-Secondary, rgba(127, 127, 127, 0.4));
2076
- }
2077
- .editor-command-bar.toolbar.mobile .command-item svg {
2078
- stroke-width: 1.5;
2079
2076
  }div[data-type=editor-block].block-exclusive:after {
2080
2077
  content: attr(data-exclusive-tips);
2081
2078
  position: absolute;
@@ -38865,10 +38862,10 @@ ${codeText}
38865
38862
  const TreeIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M8.80894 1.37566L9.19382 1.05649V1.05649L8.80894 1.37566ZM7.26945 1.37566L6.88457 1.05649V1.05649L7.26945 1.37566ZM12.7147 6.08541L13.0996 5.76623V5.76623L12.7147 6.08541ZM11.4874 7.72375V7.22375H10.1891L11.152 8.09459L11.4874 7.72375ZM14.159 10.1399L14.4944 9.76908L14.159 10.1399ZM10.0508 11.8816V11.3816H9.55085V11.8816H10.0508ZM10.0508 15V15.5H10.5508V15H10.0508ZM6.02806 15H5.52806V15.5H6.02806V15ZM6.02806 11.8816H6.52806V11.3816H6.02806V11.8816ZM1.91945 10.1399L2.25483 10.5108H2.25483L1.91945 10.1399ZM4.59108 7.72375L4.92646 8.09459L5.88936 7.22375H4.59108V7.72375ZM3.36368 6.0854L3.74855 6.40458L3.36368 6.0854ZM9.19382 1.05649C8.59399 0.333182 7.48441 0.333182 6.88457 1.05649L7.65432 1.69483C7.85427 1.45373 8.22413 1.45373 8.42407 1.69483L9.19382 1.05649ZM13.0996 5.76623L9.19382 1.05649L8.42407 1.69483L12.3298 6.40458L13.0996 5.76623ZM11.945 8.22375C13.215 8.22375 13.9103 6.74387 13.0996 5.76623L12.3298 6.40458C12.6001 6.73046 12.3683 7.22375 11.945 7.22375V8.22375ZM11.4874 8.22375H11.945V7.22375H11.4874V8.22375ZM14.4944 9.76908L11.8227 7.35292L11.152 8.09459L13.8236 10.5108L14.4944 9.76908ZM13.4882 12.3816C14.8612 12.3816 15.5126 10.69 14.4944 9.76908L13.8236 10.5108C14.163 10.8177 13.9459 11.3816 13.4882 11.3816V12.3816ZM10.0508 12.3816H13.4882V11.3816H10.0508V12.3816ZM9.55085 11.8816V15H10.5508V11.8816H9.55085ZM10.0508 14.5H6.02806V15.5H10.0508V14.5ZM6.52806 15V11.8816H5.52806V15H6.52806ZM2.59021 12.3816H6.02806V11.3816H2.59021V12.3816ZM1.58407 9.76909C0.565789 10.69 1.21726 12.3816 2.59021 12.3816V11.3816C2.13256 11.3816 1.9154 10.8177 2.25483 10.5108L1.58407 9.76909ZM4.2557 7.35292L1.58407 9.76909L2.25483 10.5108L4.92646 8.09459L4.2557 7.35292ZM4.13343 8.22375H4.59108V7.22375H4.13343V8.22375ZM2.97881 5.76623C2.16805 6.74387 2.86334 8.22375 4.13343 8.22375V7.22375C3.71007 7.22375 3.4783 6.73046 3.74855 6.40458L2.97881 5.76623ZM6.88457 1.05649L2.97881 5.76623L3.74855 6.40458L7.65432 1.69483L6.88457 1.05649Z" fill="currentColor"/>\n</svg>\n';
38866
38863
  const TimeIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 8C1.5 4.41023 4.41023 1.5 8 1.5C11.5898 1.5 14.5 4.41023 14.5 8C14.5 11.5898 11.5898 14.5 8 14.5C4.41023 14.5 1.5 11.5898 1.5 8ZM8 0.5C3.85794 0.5 0.5 3.85794 0.5 8C0.5 12.1421 3.85794 15.5 8 15.5C12.1421 15.5 15.5 12.1421 15.5 8C15.5 3.85794 12.1421 0.5 8 0.5ZM7.5 3V8V8.5H8H12V7.5H8.5V3H7.5Z" fill="currentColor"/>\n</svg>\n';
38867
38864
  const SearchIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M10.8597 11.4183L14.0962 14.8891M12.5 7.5C12.5 10.5376 10.0376 13 7 13C3.96243 13 1.5 10.5376 1.5 7.5C1.5 4.46243 3.96243 2 7 2C10.0376 2 12.5 4.46243 12.5 7.5Z" stroke="#87888A" stroke-width="2"/>\n</svg>\n';
38868
- const TextGroupIcon = '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M6.96464 2.89758C6.86731 2.59171 6.58613 2.38168 6.26521 2.37516C5.94429 2.36863 5.65479 2.56705 5.5451 2.86871L0.54541 16.6187L1.95511 17.1313L3.59366 12.625H8.48584L9.91057 17.1024L11.34 16.6476L6.96464 2.89758ZM8.00853 11.125L6.20266 5.44981L4.13908 11.125H8.00853ZM19.5003 16.875V12.5039L19.5003 12.5L19.5003 12.4961V8.125H18.0003V9.43791C17.3443 8.92838 16.5202 8.625 15.6253 8.625C13.4852 8.625 11.7503 10.3599 11.7503 12.5C11.7503 14.6401 13.4852 16.375 15.6253 16.375C16.5202 16.375 17.3443 16.0716 18.0003 15.5621V16.875H19.5003ZM15.6253 10.125C16.9359 10.125 17.9986 11.1867 18.0003 12.497L18.0003 12.5L18.0003 12.503C17.9986 13.8133 16.9359 14.875 15.6253 14.875C14.3136 14.875 13.2503 13.8117 13.2503 12.5C13.2503 11.1883 14.3136 10.125 15.6253 10.125Z" fill="currentColor"/>\n</svg>\n';
38869
- const TabIcon = '<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M18 2.5L3 2.5" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/>\n<path d="M18 7.5H9.25" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/>\n<path d="M3 13.125V6.875L7.375 10L3 13.125Z" fill="currentColor"/>\n<path d="M18 12.5H9.25" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/>\n<path d="M18 17.5H3" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/>\n</svg>\n';
38870
- const ShiftTabIcon = '<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M3 2.5H18" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/>\n<path d="M9.25 7.5H18" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/>\n<path d="M7.375 13.125V6.875L3 10L7.375 13.125Z" fill="currentColor"/>\n<path d="M9.25 12.5H18" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/>\n<path d="M3 17.5H18" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/>\n</svg>\n';
38871
- const TableEditIcon = '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M10 18.125H2.875C2.32272 18.125 1.875 17.6773 1.875 17.125V2.875C1.875 2.32272 2.32272 1.875 2.875 1.875H17.125C17.6773 1.875 18.125 2.32272 18.125 2.875V10" stroke="currentColor" stroke-width="1.5"/>\n<path d="M2.5 5.625H17.5" stroke="currentColor" stroke-width="1.5"/>\n<path d="M2.5 11.875H10" stroke="currentColor" stroke-width="1.5"/>\n<path d="M6.875 2.5L6.875 17.5" stroke="currentColor" stroke-width="1.5"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M14.3804 11.2341L14.5986 10.2866C14.6371 10.1195 14.7983 10 14.9851 10H16.0149C16.2017 10 16.3629 10.1195 16.4014 10.2866L16.6196 11.2341C16.6471 11.3532 16.739 11.4503 16.86 11.5013C16.9613 11.5439 17.06 11.5907 17.156 11.6415C17.2523 11.6922 17.3462 11.747 17.4374 11.806C17.5462 11.8762 17.6842 11.9004 17.8108 11.8626L18.8179 11.5616C18.9954 11.5085 19.1893 11.5764 19.2826 11.7242L19.947 12.7758C20.0404 12.9236 20.0077 13.111 19.8687 13.2249L19.0799 13.8714C18.9808 13.9527 18.9347 14.0741 18.9469 14.1953C18.9572 14.2969 18.9622 14.3986 18.9621 14.5C18.9622 14.6014 18.9572 14.7031 18.947 14.8047C18.9348 14.9259 18.9808 15.0472 19.08 15.1285L19.8688 15.775C20.0078 15.889 20.0405 16.0764 19.9471 16.2242L19.2827 17.2758C19.1893 17.4236 18.9954 17.4914 18.8179 17.4384L17.8109 17.1374C17.6843 17.0995 17.5463 17.1237 17.4375 17.194C17.3462 17.253 17.2523 17.3078 17.156 17.3585C17.06 17.4093 16.9613 17.4561 16.86 17.4987C16.739 17.5497 16.6471 17.6468 16.6196 17.7659L16.4014 18.7134C16.3629 18.8805 16.2017 19 16.0149 19H14.9851C14.7983 19 14.6371 18.8805 14.5986 18.7134L14.3804 17.7659C14.3529 17.6468 14.261 17.5497 14.14 17.4987C14.0387 17.4561 13.94 17.4093 13.844 17.3585C13.7477 17.3078 13.6538 17.253 13.5625 17.194C13.4537 17.1237 13.3157 17.0995 13.1891 17.1374L12.1821 17.4384C12.0046 17.4914 11.8107 17.4236 11.7173 17.2758L11.0529 16.2242C10.9595 16.0764 10.9922 15.889 11.1312 15.775L11.92 15.1285C12.0192 15.0472 12.0652 14.9259 12.053 14.8047C12.0428 14.7031 12.0378 14.6014 12.0379 14.5C12.0378 14.3986 12.0428 14.2969 12.0531 14.1953C12.0653 14.0741 12.0192 13.9527 11.9201 13.8714L11.1313 13.2249C10.9923 13.111 10.9596 12.9236 11.053 12.7758L11.7174 11.7242C11.8107 11.5764 12.0046 11.5085 12.1821 11.5616L13.1892 11.8626C13.3158 11.9004 13.4538 11.8762 13.5626 11.806C13.6538 11.747 13.7477 11.6922 13.844 11.6415C13.94 11.5907 14.0387 11.5439 14.14 11.5013C14.261 11.4503 14.3529 11.3532 14.3804 11.2341ZM15.4097 15.642C16.1082 15.642 16.6745 15.1245 16.6745 14.4862C16.6745 13.8478 16.1082 13.3303 15.4097 13.3303C14.7112 13.3303 14.145 13.8478 14.145 14.4862C14.145 15.1245 14.7112 15.642 15.4097 15.642Z" fill="currentColor"/>\n</svg>\n';
38865
+ const TextGroupIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M2.49984 9.5L7.00009 9.5" stroke="#2D2D2E"/>\n<path d="M15.0001 13.5V6.5" stroke="#2D2D2E" stroke-linejoin="round"/>\n<path d="M15.0001 10C15.0001 11.3807 13.8808 12.5 12.5001 12.5C11.1194 12.5 10.0001 11.3807 10.0001 10C10.0001 8.61929 11.1194 7.5 12.5001 7.5C13.8808 7.5 15.0001 8.61929 15.0001 10Z" stroke="#2D2D2E"/>\n<path d="M1.00009 13.5L4.99984 2.5L8.50009 13.5" stroke="#2D2D2E" stroke-linejoin="round"/>\n</svg>\n';
38866
+ const TabIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14 2L2 2" stroke="#2D2D2E" stroke-linejoin="round"/>\n<path d="M14 6H7" stroke="#2D2D2E" stroke-linejoin="round"/>\n<path d="M2 10.5V5.5L5.5 8L2 10.5Z" fill="#2D2D2E"/>\n<path d="M14 10H7" stroke="#2D2D2E" stroke-linejoin="round"/>\n<path d="M14 14H2" stroke="#2D2D2E" stroke-linejoin="round"/>\n</svg>\n';
38867
+ const ShiftTabIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M2 2H14" stroke="#2D2D2E" stroke-linejoin="round"/>\n<path d="M7 6H14" stroke="#2D2D2E" stroke-linejoin="round"/>\n<path d="M5.5 10.5V5.5L2 8L5.5 10.5Z" fill="#2D2D2E"/>\n<path d="M7 10H14" stroke="#2D2D2E" stroke-linejoin="round"/>\n<path d="M2 14H14" stroke="#2D2D2E" stroke-linejoin="round"/>\n</svg>\n';
38868
+ 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';
38872
38869
  const index$f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38873
38870
  __proto__: null,
38874
38871
  TableEditIcon,
@@ -70674,7 +70671,8 @@ ${codeText}
70674
70671
  this.toolbar.updateItems(commands);
70675
70672
  }
70676
70673
  this.toolbar.manualShow(this.anchor, {
70677
- placement: clientType.isMobile ? "top" : "bottom-start"
70674
+ placement: clientType.isMobile ? "top" : "bottom-start",
70675
+ offset: clientType.isMobile ? [0, 14] : void 0
70678
70676
  });
70679
70677
  }
70680
70678
  cleaningDoc(item) {
@@ -86847,7 +86845,7 @@ ${data2.flowchartText}
86847
86845
  }
86848
86846
  }
86849
86847
  });
86850
- editor.version = "2.1.1-beta.88";
86848
+ editor.version = "2.1.1-beta.90";
86851
86849
  if (Logger$2.level === LogLevel.DEBUG) {
86852
86850
  window.setReauthFail = (fail) => {
86853
86851
  window.isReauthError = fail;
@@ -86948,7 +86946,7 @@ ${data2.flowchartText}
86948
86946
  });
86949
86947
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
86950
86948
  OnesEditorToolbar.register(editor);
86951
- editor.version = "2.1.1-beta.88";
86949
+ editor.version = "2.1.1-beta.90";
86952
86950
  return editor;
86953
86951
  }
86954
86952
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.1.1-beta.88",
3
+ "version": "2.1.1-beta.90",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",