oasis-editor 0.0.129 → 0.0.130

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.
@@ -2562,14 +2562,14 @@ function I18nProvider(props) {
2562
2562
  });
2563
2563
  }
2564
2564
  const oasisMarkBase64 = "UklGRmQXAABXRUJQVlA4IFgXAACwWwCdASrAAAABPjEWiUMiISESyL50IAMEswHYDxjW/947Oi5/a/7H+1P90/ar5n65/UvwH+Q/QZm27Sf5n9r/I/5m/2n/p+wv9E/9j3AP07/0X92/HLuKeYL+mf4r/zf3f3tf9x+rnvH/z/qAfzf/J/9/sM/QX/bv02P28+Fb9s/2s+B39h//51gH//6yfrV/QO1z/CdMx6vl0OAGqD8Z+4X6H+9/up8b/6vvP+IeoL+Lfyr/CflxwuoAPz7+0/7T1iPk/9p6R/zXqAflpxyVAX8y+hD/5/6f0W/UX7UfAl/Ov75/zOxr6SR2HAT+kJLsdULBbdVn3b+sl8uZdjuThjIe3NwBwjfGz5SniiBN2m7i7b0hA/wxE1PuC+4EcbOyjUkU3CDDghPY1Va4tpUped9TFa05Qb1z7O+Ye73ccvEl10Sgdj6Hhy71hb/XpA23GjXBN/obAlaswz9gKwvW9d9npbC69rQeTm6DEr/cjrNngjQaHgFGjh4uVY1bY9Q+/iG037f80w0bLlYIe7smzz4tG1kC8r/KyWvzd3IXXrR2bKmhoB3Md69ltbERYFBI/2f+w7Jcsw+aUOGSwP6v6jv3tvwprg/7n5tto40/iRIKwEHQ5H/G5c0tpJ2pwREanIK3qHinjvovnkmuTw0mV2bumYqdc7he7hG0hpvBna8vIRpKYe6K1v3F8trOEtYUwr7w8e6j3nviknKtsFMtPtxZzn0YnhgtOn9inBlwqyEGR+wk7X1KHxOekXCA1UVbmLwGx1NqbI6r2WBOwQdpmpTg85DMOjwzW/JHUmfxKTDfhoXLi9gBMP/+Et6inspdrW1CHkZVLkDll2JyiPvClnvGv9m00oYce3evtpMlDhY3kVYGwfkoCHHyEv9iiN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3qYQJQyOHbj/jl4eLRUxXLQgLorpnB4HNs4v40tGGosw2Ka6eDt5K6P8DQK5ozy56BizczJenDjZ5DYx1Xu3YLmI/quRSR8ORIJqwhWFwM+Q8/gNfUL/YgQHlHmfhYi5vjU0TzsgnLyhP/kOFSnR9zjJkIMcYAFB/Ft1tfks1aQiBMtgP4sabdMsauWXINaIyR9ClOZLdIZQVGHUgLjxKW6YiFUs72zTJmKtf/RovsidqZlmEXrWGZ3UuGplChFUtjEkvwi2XxICgc0grD+9/tRt47usAAADGbVjPUInsKZHILQ8Tdvbj09q/9k2Mg7uynD2e+HudOmr+jOK+SyWmKsSZ4pH89FUSffyxPKUMVNp8o1m1apG/WDvwhmHllHVfELy0BgfyAIevaAuIOzl4NX3ayQnv+tsCnIGxjvF1IwPLyoflKFrL2OBFh3pJ57ChDdzSC9IDKqpaycKVMm2mWUPGBLK2cpD+b4VPleMoNCtKZz4AileaHHtk77gduJB8sihmMPR1lV1Vba4pOywdJgGueqt4IcTd2RJFxeSRNjuzHcR4tYGdli66ijJZC20ODhr8miT+cauMIflgiAAAAA=";
2565
- var _tmpl$$10 = /* @__PURE__ */ template(`<img alt aria-hidden=true>`);
2565
+ var _tmpl$$11 = /* @__PURE__ */ template(`<img alt aria-hidden=true>`);
2566
2566
  const OASIS_MARK_DATA_URI = `data:image/webp;base64,${oasisMarkBase64}`;
2567
2567
  const MARK_ASPECT = 3 / 4;
2568
2568
  function OasisBrandMark(props) {
2569
2569
  const height = () => props.height ?? 64;
2570
2570
  const width = () => Math.round(height() * MARK_ASPECT);
2571
2571
  return (() => {
2572
- var _el$ = _tmpl$$10();
2572
+ var _el$ = _tmpl$$11();
2573
2573
  setAttribute(_el$, "src", OASIS_MARK_DATA_URI);
2574
2574
  setAttribute(_el$, "draggable", false);
2575
2575
  createRenderEffect((_p$) => {
@@ -2586,7 +2586,7 @@ function OasisBrandMark(props) {
2586
2586
  return _el$;
2587
2587
  })();
2588
2588
  }
2589
- var _tmpl$$$ = /* @__PURE__ */ template(`<div class=oasis-editor-import-progress-label>`), _tmpl$2$C = /* @__PURE__ */ template(`<div role=status aria-live=polite><div class=oasis-editor-import-card><div class=oasis-editor-import-title></div><div class=oasis-editor-import-progress-track><div>`), _tmpl$3$q = /* @__PURE__ */ template(`<span class=oasis-editor-import-done-icon>Done`);
2589
+ var _tmpl$$10 = /* @__PURE__ */ template(`<div class=oasis-editor-import-progress-label>`), _tmpl$2$C = /* @__PURE__ */ template(`<div role=status aria-live=polite><div class=oasis-editor-import-card><div class=oasis-editor-import-title></div><div class=oasis-editor-import-progress-track><div>`), _tmpl$3$q = /* @__PURE__ */ template(`<span class=oasis-editor-import-done-icon>Done`);
2590
2590
  function OasisEditorLoading(props) {
2591
2591
  const t = useI18n();
2592
2592
  const variant = () => props.variant ?? "overlay";
@@ -2607,7 +2607,7 @@ function OasisEditorLoading(props) {
2607
2607
  return pct() != null;
2608
2608
  },
2609
2609
  get children() {
2610
- var _el$6 = _tmpl$$$();
2610
+ var _el$6 = _tmpl$$10();
2611
2611
  insert(_el$6, (() => {
2612
2612
  var _c$ = memo(() => !!isDone());
2613
2613
  return () => _c$() ? _tmpl$3$q() : `${pct()}%`;
@@ -2661,7 +2661,7 @@ function OasisEditorAppLazy(props = {}) {
2661
2661
  onCleanup(() => {
2662
2662
  cancelled = true;
2663
2663
  });
2664
- import("./OasisEditorApp-CDBzb0Eg.js").then((m) => {
2664
+ import("./OasisEditorApp-BQvsqccA.js").then((m) => {
2665
2665
  cancelled = true;
2666
2666
  setProgress(1);
2667
2667
  setTimeout(() => setApp(() => m.OasisEditorApp), 180);
@@ -5248,8 +5248,8 @@ function mount(target, props = {}) {
5248
5248
  unmount: () => client.dispose()
5249
5249
  });
5250
5250
  }
5251
- var _tmpl$$_ = /* @__PURE__ */ template(`<svg xmlns=http://www.w3.org/2000/svg width=24 height=24 viewBox="0 0 24 24"fill=none aria-hidden=true><text x=2 y=18 font-family="'Segoe UI', Arial, sans-serif"font-size=14 font-weight=700 fill=currentColor>ab</text><text x=15.5 y=11 font-family="'Segoe UI', Arial, sans-serif"font-size=10 font-weight=700 fill=#c00000>1`), _tmpl$2$B = /* @__PURE__ */ template(`<svg xmlns=http://www.w3.org/2000/svg width=24 height=24 viewBox="0 0 24 24"aria-hidden=true><g fill=currentColor><path d="M3.375 4.875 L7.125 8.625 L3.375 12.375 L2.25 11.25 L4.875 8.625 L2.25 6 Z"></path><rect x=10.125 y=6 width=9 height=1.6875 rx=0.25></rect><rect x=5.625 y=10.875 width=13.5 height=1.6875 rx=0.25></rect><rect x=5.625 y=15.75 width=13.5 height=1.6875 rx=0.25>`), _tmpl$3$p = /* @__PURE__ */ template(`<i>`);
5252
- const FootnoteIcon = () => _tmpl$$_();
5251
+ var _tmpl$$$ = /* @__PURE__ */ template(`<svg xmlns=http://www.w3.org/2000/svg width=24 height=24 viewBox="0 0 24 24"fill=none aria-hidden=true><text x=2 y=18 font-family="'Segoe UI', Arial, sans-serif"font-size=14 font-weight=700 fill=currentColor>ab</text><text x=15.5 y=11 font-family="'Segoe UI', Arial, sans-serif"font-size=10 font-weight=700 fill=#c00000>1`), _tmpl$2$B = /* @__PURE__ */ template(`<svg xmlns=http://www.w3.org/2000/svg width=24 height=24 viewBox="0 0 24 24"aria-hidden=true><g fill=currentColor><path d="M3.375 4.875 L7.125 8.625 L3.375 12.375 L2.25 11.25 L4.875 8.625 L2.25 6 Z"></path><rect x=10.125 y=6 width=9 height=1.6875 rx=0.25></rect><rect x=5.625 y=10.875 width=13.5 height=1.6875 rx=0.25></rect><rect x=5.625 y=15.75 width=13.5 height=1.6875 rx=0.25>`), _tmpl$3$p = /* @__PURE__ */ template(`<i>`);
5252
+ const FootnoteIcon = () => _tmpl$$$();
5253
5253
  const SpecialIndentFirstLineIcon = () => _tmpl$2$B();
5254
5254
  const CUSTOM_ICONS = {
5255
5255
  footnote: FootnoteIcon,
@@ -5273,11 +5273,11 @@ function ToolIcon(props) {
5273
5273
  children: (render2) => render2()()
5274
5274
  });
5275
5275
  }
5276
- var _tmpl$$Z = /* @__PURE__ */ template(`<button>`);
5276
+ var _tmpl$$_ = /* @__PURE__ */ template(`<button>`);
5277
5277
  function SurfaceButton(props) {
5278
5278
  const [local, others] = splitProps(props, ["type", "icon", "label", "variant", "size", "active", "class", "classList", "children"]);
5279
5279
  return (() => {
5280
- var _el$ = _tmpl$$Z();
5280
+ var _el$ = _tmpl$$_();
5281
5281
  spread(_el$, mergeProps({
5282
5282
  get type() {
5283
5283
  return local.type ?? "button";
@@ -5338,7 +5338,7 @@ function Text$1(props) {
5338
5338
  }
5339
5339
  }));
5340
5340
  }
5341
- var _tmpl$$Y = /* @__PURE__ */ template(`<div class=oasis-menubar role=menubar>`), _tmpl$2$A = /* @__PURE__ */ template(`<div class=oasis-menubar-dropdown role=menu>`), _tmpl$3$o = /* @__PURE__ */ template(`<div class=oasis-menubar-menu>`), _tmpl$4$j = /* @__PURE__ */ template(`<div class=oasis-menubar-separator role=separator>`), _tmpl$5$d = /* @__PURE__ */ template(`<i class=oasis-menubar-submenu-icon data-lucide=chevron-right>`), _tmpl$6$8 = /* @__PURE__ */ template(`<div class=oasis-menubar-submenu role=menu>`);
5341
+ var _tmpl$$Z = /* @__PURE__ */ template(`<div class=oasis-menubar role=menubar>`), _tmpl$2$A = /* @__PURE__ */ template(`<div class=oasis-menubar-dropdown role=menu>`), _tmpl$3$o = /* @__PURE__ */ template(`<div class=oasis-menubar-menu>`), _tmpl$4$j = /* @__PURE__ */ template(`<div class=oasis-menubar-separator role=separator>`), _tmpl$5$d = /* @__PURE__ */ template(`<i class=oasis-menubar-submenu-icon data-lucide=chevron-right>`), _tmpl$6$8 = /* @__PURE__ */ template(`<div class=oasis-menubar-submenu role=menu>`);
5342
5342
  function Menubar(props) {
5343
5343
  const t = useI18n();
5344
5344
  const [activeMenu, setActiveMenu] = createSignal(null);
@@ -5406,7 +5406,7 @@ function Menubar(props) {
5406
5406
  });
5407
5407
  const topLevelItems = () => pruneTree(menuTree());
5408
5408
  return (() => {
5409
- var _el$ = _tmpl$$Y();
5409
+ var _el$ = _tmpl$$Z();
5410
5410
  insert(_el$, createComponent(For, {
5411
5411
  get each() {
5412
5412
  return topLevelItems();
@@ -5580,10 +5580,10 @@ function MenuNode(props) {
5580
5580
  }
5581
5581
  });
5582
5582
  }
5583
- var _tmpl$$X = /* @__PURE__ */ template(`<div class=oasis-titlebar><div class=oasis-titlebar-left><div class=oasis-titlebar-menubar-slot>`);
5583
+ var _tmpl$$Y = /* @__PURE__ */ template(`<div class=oasis-titlebar><div class=oasis-titlebar-left><div class=oasis-titlebar-menubar-slot>`);
5584
5584
  function TitleBar(props) {
5585
5585
  return (() => {
5586
- var _el$ = _tmpl$$X(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
5586
+ var _el$ = _tmpl$$Y(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
5587
5587
  insert(_el$3, () => props.children);
5588
5588
  return _el$;
5589
5589
  })();
@@ -5678,7 +5678,7 @@ function getCaretRectFromSnapshot(snapshot, position2, paragraphOffset) {
5678
5678
  );
5679
5679
  return rectFromBox(slot.left, slot.top, 1, slot.height || line.height);
5680
5680
  }
5681
- var _tmpl$$W = /* @__PURE__ */ template(`<span class=oasis-outline-title>`), _tmpl$2$z = /* @__PURE__ */ template(`<div class=oasis-outline-list>`), _tmpl$3$n = /* @__PURE__ */ template(`<div class=oasis-outline-panel><div class=oasis-outline-header><button class=oasis-outline-toggle><i>`), _tmpl$4$i = /* @__PURE__ */ template(`<div class=oasis-outline-empty>`), _tmpl$5$c = /* @__PURE__ */ template(`<div class=oasis-outline-item>`);
5681
+ var _tmpl$$X = /* @__PURE__ */ template(`<span class=oasis-outline-title>`), _tmpl$2$z = /* @__PURE__ */ template(`<div class=oasis-outline-list>`), _tmpl$3$n = /* @__PURE__ */ template(`<div class=oasis-outline-panel><div class=oasis-outline-header><button class=oasis-outline-toggle><i>`), _tmpl$4$i = /* @__PURE__ */ template(`<div class=oasis-outline-empty>`), _tmpl$5$c = /* @__PURE__ */ template(`<div class=oasis-outline-item>`);
5682
5682
  function OutlinePanel(props) {
5683
5683
  const t = useI18n();
5684
5684
  const [collapsed, setCollapsed] = createSignal(props.defaultCollapsed ?? false);
@@ -5755,7 +5755,7 @@ function OutlinePanel(props) {
5755
5755
  return !collapsed();
5756
5756
  },
5757
5757
  get children() {
5758
- var _el$3 = _tmpl$$W();
5758
+ var _el$3 = _tmpl$$X();
5759
5759
  insert(_el$3, () => t("menu.view.outline") || "Outline");
5760
5760
  return _el$3;
5761
5761
  }
@@ -5823,7 +5823,7 @@ function OutlinePanel(props) {
5823
5823
  })();
5824
5824
  }
5825
5825
  delegateEvents(["click"]);
5826
- var _tmpl$$V = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-overflow-manager style="display:flex;align-items:center;flex:1 1 0%;min-width:0;position:relative;margin-right:8px"><button type=button class="oasis-editor-tool-button oasis-editor-tool-button-dropdown oasis-editor-toolbar-more-measure"aria-hidden=true tabindex=-1 style=position:absolute;visibility:hidden;pointer-events:none;right:0><i data-lucide=ellipsis></i></button><div style="display:flex;align-items:center;gap:8px;flex:1 1 0;min-width:0;overflow:hidden"></div><div style=flex-shrink:0;padding-left:8px;padding-right:16px;align-items:center><button type=button class="oasis-editor-tool-button oasis-editor-tool-button-dropdown"data-testid=editor-toolbar-overflow-dropdown><i data-lucide=ellipsis></i></button></div><div class="oasis-editor-toolbar-overflow-dropdown-menu oasis-editor-toolbar-overflow-menu"style="flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px;padding:8px;background:var(--oasis-paper);border:1px solid var(--oasis-toolbar-border);border-radius:var(--oasis-radius);box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);max-width:calc(100vw - 16px);overflow-x:hidden;overflow-y:auto">`), _tmpl$2$y = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-item-wrapper style=display:flex;align-items:center;flex-shrink:0>`);
5826
+ var _tmpl$$W = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-overflow-manager style="display:flex;align-items:center;flex:1 1 0%;min-width:0;position:relative;margin-right:8px"><button type=button class="oasis-editor-tool-button oasis-editor-tool-button-dropdown oasis-editor-toolbar-more-measure"aria-hidden=true tabindex=-1 style=position:absolute;visibility:hidden;pointer-events:none;right:0><i data-lucide=ellipsis></i></button><div style="display:flex;align-items:center;gap:8px;flex:1 1 0;min-width:0;overflow:hidden"></div><div style=flex-shrink:0;padding-left:8px;padding-right:16px;align-items:center><button type=button class="oasis-editor-tool-button oasis-editor-tool-button-dropdown"data-testid=editor-toolbar-overflow-dropdown><i data-lucide=ellipsis></i></button></div><div class="oasis-editor-toolbar-overflow-dropdown-menu oasis-editor-toolbar-overflow-menu"style="flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px;padding:8px;background:var(--oasis-paper);border:1px solid var(--oasis-toolbar-border);border-radius:var(--oasis-radius);box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);max-width:calc(100vw - 16px);overflow-x:hidden;overflow-y:auto">`), _tmpl$2$y = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-item-wrapper style=display:flex;align-items:center;flex-shrink:0>`);
5827
5827
  function ToolbarOverflowManager(props) {
5828
5828
  const t = useI18n();
5829
5829
  const [overflowCount, setOverflowCount] = createSignal(0);
@@ -5967,7 +5967,7 @@ function ToolbarOverflowManager(props) {
5967
5967
  };
5968
5968
  };
5969
5969
  return (() => {
5970
- var _el$ = _tmpl$$V(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.nextSibling, _el$5 = _el$4.firstChild, _el$6 = _el$4.nextSibling;
5970
+ var _el$ = _tmpl$$W(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.nextSibling, _el$5 = _el$4.firstChild, _el$6 = _el$4.nextSibling;
5971
5971
  var _ref$ = containerRef;
5972
5972
  typeof _ref$ === "function" ? use(_ref$, _el$) : containerRef = _el$;
5973
5973
  var _ref$2 = moreMeasureRef;
@@ -6055,7 +6055,7 @@ function resolveLabel(item, api) {
6055
6055
  if (item.labelKey) return api.t(item.labelKey);
6056
6056
  return void 0;
6057
6057
  }
6058
- var _tmpl$$U = /* @__PURE__ */ template(`<span>`), _tmpl$2$x = /* @__PURE__ */ template(`<button type=button>`);
6058
+ var _tmpl$$V = /* @__PURE__ */ template(`<span>`), _tmpl$2$x = /* @__PURE__ */ template(`<button type=button>`);
6059
6059
  function Button$1(props) {
6060
6060
  const [local, others] = splitProps(props, ["icon", "label", "active", "tooltip", "wide", "ribbonSize", "aria-label", "class", "classList"]);
6061
6061
  const ariaLabel = () => local["aria-label"] || local.tooltip || local.label || "";
@@ -6097,7 +6097,7 @@ function Button$1(props) {
6097
6097
  return local.label;
6098
6098
  },
6099
6099
  get children() {
6100
- var _el$2 = _tmpl$$U();
6100
+ var _el$2 = _tmpl$$V();
6101
6101
  insert(_el$2, () => local.label);
6102
6102
  return _el$2;
6103
6103
  }
@@ -6179,7 +6179,7 @@ function useDismiss(options) {
6179
6179
  });
6180
6180
  });
6181
6181
  }
6182
- var _tmpl$$T = /* @__PURE__ */ template(`<div>`);
6182
+ var _tmpl$$U = /* @__PURE__ */ template(`<div>`);
6183
6183
  function Popover(props) {
6184
6184
  let anchorRef;
6185
6185
  let panelRef;
@@ -6196,7 +6196,7 @@ function Popover(props) {
6196
6196
  closeOnEscape: props.closeOnEscape
6197
6197
  });
6198
6198
  const panel = (portalled) => (() => {
6199
- var _el$ = _tmpl$$T();
6199
+ var _el$ = _tmpl$$U();
6200
6200
  addEventListener(_el$, "mouseleave", props.onPanelMouseLeave);
6201
6201
  var _ref$ = panelRef;
6202
6202
  typeof _ref$ === "function" ? use(_ref$, _el$) : panelRef = _el$;
@@ -6248,7 +6248,7 @@ function Popover(props) {
6248
6248
  }
6249
6249
  })];
6250
6250
  }
6251
- var _tmpl$$S = /* @__PURE__ */ template(`<div>`), _tmpl$2$w = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-dropdown>`), _tmpl$3$m = /* @__PURE__ */ template(`<i>`), _tmpl$4$h = /* @__PURE__ */ template(`<span class=oasis-editor-tool-button-label>`), _tmpl$5$b = /* @__PURE__ */ template(`<i data-lucide=chevron-down class=oasis-editor-dropdown-chevron>`), _tmpl$6$7 = /* @__PURE__ */ template(`<button type=button class="oasis-editor-tool-button oasis-editor-tool-button-dropdown"aria-haspopup=menu>`);
6251
+ var _tmpl$$T = /* @__PURE__ */ template(`<div>`), _tmpl$2$w = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-dropdown>`), _tmpl$3$m = /* @__PURE__ */ template(`<i>`), _tmpl$4$h = /* @__PURE__ */ template(`<span class=oasis-editor-tool-button-label>`), _tmpl$5$b = /* @__PURE__ */ template(`<i data-lucide=chevron-down class=oasis-editor-dropdown-chevron>`), _tmpl$6$7 = /* @__PURE__ */ template(`<button type=button class="oasis-editor-tool-button oasis-editor-tool-button-dropdown"aria-haspopup=menu>`);
6252
6252
  function Menu(props) {
6253
6253
  const [open, setOpen] = createSignal(false);
6254
6254
  const ariaLabel = () => props.tooltip || props.label || "";
@@ -6321,7 +6321,7 @@ function Menu(props) {
6321
6321
  return _el$3;
6322
6322
  })(),
6323
6323
  get children() {
6324
- var _el$2 = _tmpl$$S();
6324
+ var _el$2 = _tmpl$$T();
6325
6325
  _el$2.$$click = (event) => {
6326
6326
  const el = event.target;
6327
6327
  if (el.closest("button") && !el.closest(".oasis-editor-tool-button-dropdown") && !el.closest(".oasis-editor-toolbar-list-options")) {
@@ -6336,7 +6336,7 @@ function Menu(props) {
6336
6336
  })();
6337
6337
  }
6338
6338
  delegateEvents(["click"]);
6339
- var _tmpl$$R = /* @__PURE__ */ template(`<select>`);
6339
+ var _tmpl$$S = /* @__PURE__ */ template(`<select>`);
6340
6340
  function Select(props) {
6341
6341
  let selectRef;
6342
6342
  const [local, others] = splitProps(props, ["wide", "small", "class", "tooltip", "aria-label", "value"]);
@@ -6352,7 +6352,7 @@ function Select(props) {
6352
6352
  }
6353
6353
  });
6354
6354
  return (() => {
6355
- var _el$ = _tmpl$$R();
6355
+ var _el$ = _tmpl$$S();
6356
6356
  var _ref$ = selectRef;
6357
6357
  typeof _ref$ === "function" ? use(_ref$, _el$) : selectRef = _el$;
6358
6358
  spread(_el$, mergeProps({
@@ -6379,15 +6379,15 @@ function Select(props) {
6379
6379
  return _el$;
6380
6380
  })();
6381
6381
  }
6382
- var _tmpl$$Q = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-separator>`);
6382
+ var _tmpl$$R = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-separator>`);
6383
6383
  function Separator(props) {
6384
6384
  return (() => {
6385
- var _el$ = _tmpl$$Q();
6385
+ var _el$ = _tmpl$$R();
6386
6386
  createRenderEffect((_$p) => setStyleProperty(_el$, "display", props.hidden ? "none" : void 0));
6387
6387
  return _el$;
6388
6388
  })();
6389
6389
  }
6390
- var _tmpl$$P = /* @__PURE__ */ template(`<div><button type=button class=oasis-editor-color-split-main></button><button type=button class=oasis-editor-color-split-menu-button aria-haspopup=menu><i data-lucide=chevron-down>`);
6390
+ var _tmpl$$Q = /* @__PURE__ */ template(`<div><button type=button class=oasis-editor-color-split-main></button><button type=button class=oasis-editor-color-split-menu-button aria-haspopup=menu><i data-lucide=chevron-down>`);
6391
6391
  function SplitButton(props) {
6392
6392
  return createComponent(Popover, {
6393
6393
  get open() {
@@ -6406,7 +6406,7 @@ function SplitButton(props) {
6406
6406
  return props.onPanelMouseLeave;
6407
6407
  },
6408
6408
  trigger: (api) => (() => {
6409
- var _el$ = _tmpl$$P(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
6409
+ var _el$ = _tmpl$$Q(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
6410
6410
  use((el) => api.ref(el), _el$);
6411
6411
  _el$2.$$click = () => props.onMain();
6412
6412
  insert(_el$2, () => props.mainContent);
@@ -6444,7 +6444,7 @@ function SplitButton(props) {
6444
6444
  });
6445
6445
  }
6446
6446
  delegateEvents(["click"]);
6447
- var _tmpl$$O = /* @__PURE__ */ template(`<i data-lucide=type>`), _tmpl$2$v = /* @__PURE__ */ template(`<button type=button class=oasis-editor-color-menu-action role=menuitem><span class=oasis-editor-color-menu-action-swatch></span><span>`), _tmpl$3$l = /* @__PURE__ */ template(`<div class=oasis-editor-color-menu-section><div class=oasis-editor-color-menu-heading></div><div class=oasis-editor-color-theme-grid>`), _tmpl$4$g = /* @__PURE__ */ template(`<div class=oasis-editor-color-menu-section><div class=oasis-editor-color-menu-heading></div><div class=oasis-editor-color-standard-grid>`), _tmpl$5$a = /* @__PURE__ */ template(`<button type=button class=oasis-editor-color-menu-action role=menuitem><span class="oasis-editor-color-menu-action-swatch oasis-editor-color-menu-more-swatch"></span><span>`), _tmpl$6$6 = /* @__PURE__ */ template(`<input type=color class=oasis-editor-color-custom-input>`), _tmpl$7$2 = /* @__PURE__ */ template(`<span class=oasis-editor-color-split-icon><i></i><span class=oasis-editor-color-split-indicator>`), _tmpl$8$1 = /* @__PURE__ */ template(`<i data-lucide=slash>`), _tmpl$9 = /* @__PURE__ */ template(`<div class=oasis-editor-color-theme-column>`), _tmpl$0 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-color-swatch>`);
6447
+ var _tmpl$$P = /* @__PURE__ */ template(`<i data-lucide=type>`), _tmpl$2$v = /* @__PURE__ */ template(`<button type=button class=oasis-editor-color-menu-action role=menuitem><span class=oasis-editor-color-menu-action-swatch></span><span>`), _tmpl$3$l = /* @__PURE__ */ template(`<div class=oasis-editor-color-menu-section><div class=oasis-editor-color-menu-heading></div><div class=oasis-editor-color-theme-grid>`), _tmpl$4$g = /* @__PURE__ */ template(`<div class=oasis-editor-color-menu-section><div class=oasis-editor-color-menu-heading></div><div class=oasis-editor-color-standard-grid>`), _tmpl$5$a = /* @__PURE__ */ template(`<button type=button class=oasis-editor-color-menu-action role=menuitem><span class="oasis-editor-color-menu-action-swatch oasis-editor-color-menu-more-swatch"></span><span>`), _tmpl$6$6 = /* @__PURE__ */ template(`<input type=color class=oasis-editor-color-custom-input>`), _tmpl$7$2 = /* @__PURE__ */ template(`<span class=oasis-editor-color-split-icon><i></i><span class=oasis-editor-color-split-indicator>`), _tmpl$8$1 = /* @__PURE__ */ template(`<i data-lucide=slash>`), _tmpl$9 = /* @__PURE__ */ template(`<div class=oasis-editor-color-theme-column>`), _tmpl$0 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-color-swatch>`);
6448
6448
  const normalizeColor = (value) => (value == null ? void 0 : value.trim().toLowerCase()) ?? "";
6449
6449
  function ColorPicker(props) {
6450
6450
  const [isOpen, setIsOpen] = createSignal(false);
@@ -6519,7 +6519,7 @@ function ColorPicker(props) {
6519
6519
  return _tmpl$8$1();
6520
6520
  },
6521
6521
  get children() {
6522
- return _tmpl$$O();
6522
+ return _tmpl$$P();
6523
6523
  }
6524
6524
  }));
6525
6525
  insert(_el$4, clearLabel);
@@ -6632,7 +6632,7 @@ function ColorPicker(props) {
6632
6632
  });
6633
6633
  }
6634
6634
  delegateEvents(["click", "input"]);
6635
- var _tmpl$$N = /* @__PURE__ */ template(`<div class=oasis-editor-table-grid-picker-status>`), _tmpl$2$u = /* @__PURE__ */ template(`<div class=oasis-editor-table-grid-picker-grid>`), _tmpl$3$k = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-dropdown>`), _tmpl$4$f = /* @__PURE__ */ template(`<button type=button class=oasis-editor-tool-button><i>`), _tmpl$5$9 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-table-grid-picker-cell>`);
6635
+ var _tmpl$$O = /* @__PURE__ */ template(`<div class=oasis-editor-table-grid-picker-status>`), _tmpl$2$u = /* @__PURE__ */ template(`<div class=oasis-editor-table-grid-picker-grid>`), _tmpl$3$k = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-dropdown>`), _tmpl$4$f = /* @__PURE__ */ template(`<button type=button class=oasis-editor-tool-button><i>`), _tmpl$5$9 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-table-grid-picker-cell>`);
6636
6636
  function GridPicker(props) {
6637
6637
  const t = useI18n();
6638
6638
  const [isOpen, setIsOpen] = createSignal(false);
@@ -6741,7 +6741,7 @@ function GridPicker(props) {
6741
6741
  })(),
6742
6742
  get children() {
6743
6743
  return [(() => {
6744
- var _el$2 = _tmpl$$N();
6744
+ var _el$2 = _tmpl$$O();
6745
6745
  insert(_el$2, statusLabel);
6746
6746
  return _el$2;
6747
6747
  })(), (() => {
@@ -6845,7 +6845,7 @@ const DEFAULT_PALETTE = {
6845
6845
  standardColors: STANDARD_COLORS,
6846
6846
  allowCustom: true
6847
6847
  };
6848
- var _tmpl$$M = /* @__PURE__ */ template(`<button type=button class=oasis-editor-style-gallery-card role=option><span>`), _tmpl$2$t = /* @__PURE__ */ template(`<div class=oasis-editor-style-gallery-grid>`), _tmpl$3$j = /* @__PURE__ */ template(`<div class=oasis-editor-style-gallery><div class=oasis-editor-style-gallery-ribbon><div class=oasis-editor-style-gallery-strip role=listbox></div><button type=button class=oasis-editor-style-gallery-expand aria-haspopup=listbox><i data-lucide=chevron-down>`), _tmpl$4$e = /* @__PURE__ */ template(`<option>`);
6848
+ var _tmpl$$N = /* @__PURE__ */ template(`<button type=button class=oasis-editor-style-gallery-card role=option><span>`), _tmpl$2$t = /* @__PURE__ */ template(`<div class=oasis-editor-style-gallery-grid>`), _tmpl$3$j = /* @__PURE__ */ template(`<div class=oasis-editor-style-gallery><div class=oasis-editor-style-gallery-ribbon><div class=oasis-editor-style-gallery-strip role=listbox></div><button type=button class=oasis-editor-style-gallery-expand aria-haspopup=listbox><i data-lucide=chevron-down>`), _tmpl$4$e = /* @__PURE__ */ template(`<option>`);
6849
6849
  function getQuickStyles(styles) {
6850
6850
  const applicable = styles.filter((style2) => style2.type !== "table" && (!style2.semiHidden || style2.unhideWhenUsed && style2.isUsed));
6851
6851
  const hasQuickStyles = applicable.some((style2) => style2.qFormat === true);
@@ -6925,7 +6925,7 @@ function StyleGallery(props) {
6925
6925
  return styles();
6926
6926
  },
6927
6927
  children: (style$1) => (() => {
6928
- var _el$ = _tmpl$$M(), _el$2 = _el$.firstChild;
6928
+ var _el$ = _tmpl$$N(), _el$2 = _el$.firstChild;
6929
6929
  _el$.$$click = () => apply(style$1);
6930
6930
  insert(_el$2, () => style$1.name);
6931
6931
  createRenderEffect((_p$) => {
@@ -7013,7 +7013,7 @@ function StyleGallery(props) {
7013
7013
  });
7014
7014
  }
7015
7015
  delegateEvents(["click", "keydown"]);
7016
- var _tmpl$$L = /* @__PURE__ */ template(`<option value>`), _tmpl$2$s = /* @__PURE__ */ template(`<option>`), _tmpl$3$i = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-item style=align-items:center>`);
7016
+ var _tmpl$$M = /* @__PURE__ */ template(`<option value>`), _tmpl$2$s = /* @__PURE__ */ template(`<option>`), _tmpl$3$i = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-item style=align-items:center>`);
7017
7017
  function renderMenuContent(content, api) {
7018
7018
  if (content.kind === "custom") {
7019
7019
  return content.render(api);
@@ -7195,7 +7195,7 @@ function RenderSelect(props) {
7195
7195
  return props.item.placeholder !== void 0;
7196
7196
  },
7197
7197
  get children() {
7198
- var _el$ = _tmpl$$L();
7198
+ var _el$ = _tmpl$$M();
7199
7199
  insert(_el$, () => props.item.placeholder);
7200
7200
  return _el$;
7201
7201
  }
@@ -7801,7 +7801,7 @@ function resolveResponsiveRibbonGroups(groups, availableWidth, measurements = {}
7801
7801
  allocatedWidth: allocatedWidths.get(group.id)
7802
7802
  }));
7803
7803
  }
7804
- var _tmpl$$K = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-tabs role=tablist>`), _tmpl$2$r = /* @__PURE__ */ template(`<button type=button class=oasis-editor-ribbon-tab role=tab>`);
7804
+ var _tmpl$$L = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-tabs role=tablist>`), _tmpl$2$r = /* @__PURE__ */ template(`<button type=button class=oasis-editor-ribbon-tab role=tab>`);
7805
7805
  function RibbonTabs(props) {
7806
7806
  const tabs = createMemo(() => buildRibbonTabDefinitions(props.api.t, props.api));
7807
7807
  const moveTab = (current, delta) => {
@@ -7811,7 +7811,7 @@ function RibbonTabs(props) {
7811
7811
  if (next) props.setActiveTab(next.id);
7812
7812
  };
7813
7813
  return (() => {
7814
- var _el$ = _tmpl$$K();
7814
+ var _el$ = _tmpl$$L();
7815
7815
  insert(_el$, createComponent(For, {
7816
7816
  get each() {
7817
7817
  return tabs();
@@ -7862,10 +7862,10 @@ function RibbonTabs(props) {
7862
7862
  })();
7863
7863
  }
7864
7864
  delegateEvents(["click", "keydown"]);
7865
- var _tmpl$$J = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-row>`);
7865
+ var _tmpl$$K = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-row>`);
7866
7866
  function RibbonRow(props) {
7867
7867
  return (() => {
7868
- var _el$ = _tmpl$$J();
7868
+ var _el$ = _tmpl$$K();
7869
7869
  insert(_el$, createComponent(For, {
7870
7870
  get each() {
7871
7871
  return props.items;
@@ -7880,7 +7880,7 @@ function RibbonRow(props) {
7880
7880
  return _el$;
7881
7881
  })();
7882
7882
  }
7883
- var _tmpl$$I = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-large-items>`), _tmpl$2$q = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-group-rows><div class=oasis-editor-ribbon-normal-rows>`), _tmpl$3$h = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-group-label>`), _tmpl$4$d = /* @__PURE__ */ template(`<section class=oasis-editor-ribbon-group>`), _tmpl$5$8 = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-collapsed-items>`), _tmpl$6$5 = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-group-rows>`);
7883
+ var _tmpl$$J = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-large-items>`), _tmpl$2$q = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-group-rows><div class=oasis-editor-ribbon-normal-rows>`), _tmpl$3$h = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-group-label>`), _tmpl$4$d = /* @__PURE__ */ template(`<section class=oasis-editor-ribbon-group>`), _tmpl$5$8 = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-collapsed-items>`), _tmpl$6$5 = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-group-rows>`);
7884
7884
  function groupItems(group) {
7885
7885
  return [...group.largeItems, ...group.rows[1], ...group.rows[2]];
7886
7886
  }
@@ -7945,7 +7945,7 @@ function RibbonGroup(props) {
7945
7945
  return props.group.largeItems.length > 0;
7946
7946
  },
7947
7947
  get children() {
7948
- var _el$3 = _tmpl$$I();
7948
+ var _el$3 = _tmpl$$J();
7949
7949
  insert(_el$3, createComponent(For, {
7950
7950
  get each() {
7951
7951
  return props.group.largeItems;
@@ -8006,7 +8006,7 @@ function RibbonGroup(props) {
8006
8006
  return _el$;
8007
8007
  })();
8008
8008
  }
8009
- var _tmpl$$H = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-panel role=tabpanel data-testid=editor-ribbon-panel>`);
8009
+ var _tmpl$$I = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-panel role=tabpanel data-testid=editor-ribbon-panel>`);
8010
8010
  function RibbonPanel(props) {
8011
8011
  const [availableWidth, setAvailableWidth] = createSignal(null);
8012
8012
  const [measurements, setMeasurements] = createSignal({});
@@ -8051,7 +8051,7 @@ function RibbonPanel(props) {
8051
8051
  requestAnimationFrame(measureGroups);
8052
8052
  });
8053
8053
  return (() => {
8054
- var _el$ = _tmpl$$H();
8054
+ var _el$ = _tmpl$$I();
8055
8055
  var _ref$ = panelRef;
8056
8056
  typeof _ref$ === "function" ? use(_ref$, _el$) : panelRef = _el$;
8057
8057
  insert(_el$, createComponent(For, {
@@ -8077,7 +8077,7 @@ function RibbonPanel(props) {
8077
8077
  return _el$;
8078
8078
  })();
8079
8079
  }
8080
- var _tmpl$$G = /* @__PURE__ */ template(`<section class=oasis-editor-toolbar>`), _tmpl$2$p = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-wrap-strip>`);
8080
+ var _tmpl$$H = /* @__PURE__ */ template(`<section class=oasis-editor-toolbar>`), _tmpl$2$p = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-wrap-strip>`);
8081
8081
  const shouldAllowNativeMouseDown = (target) => target instanceof Element && target.closest("select, input, textarea, label") !== null;
8082
8082
  function Toolbar(props) {
8083
8083
  const api = createToolbarApi(props.host, useI18n());
@@ -8117,7 +8117,7 @@ function Toolbar(props) {
8117
8117
  })
8118
8118
  });
8119
8119
  return (() => {
8120
- var _el$ = _tmpl$$G();
8120
+ var _el$ = _tmpl$$H();
8121
8121
  _el$.$$mousedown = (event) => {
8122
8122
  if (shouldAllowNativeMouseDown(event.target)) {
8123
8123
  return;
@@ -18760,11 +18760,11 @@ function buildCanvasTableLayout(options) {
18760
18760
  unsupported: Array.from(new Set(unsupported))
18761
18761
  };
18762
18762
  }
18763
- var _tmpl$$F = /* @__PURE__ */ template(`<div class=oasis-editor-page-break style="display:flex;align-items:center;justify-content:center;margin:16px 0;position:relative;user-select:none"><div style="position:absolute;left:0;right:0;top:50%;border-top:1px dashed var(--oasis-toolbar-border, #e0e3e7)"></div><div style="background:var(--oasis-bg, #f6f8fb);padding:0 12px;color:var(--oasis-text-muted, #5f6368);font-size:12px;font-family:var(--oasis-font-ui, sans-serif);z-index:1">`);
18763
+ var _tmpl$$G = /* @__PURE__ */ template(`<div class=oasis-editor-page-break style="display:flex;align-items:center;justify-content:center;margin:16px 0;position:relative;user-select:none"><div style="position:absolute;left:0;right:0;top:50%;border-top:1px dashed var(--oasis-toolbar-border, #e0e3e7)"></div><div style="background:var(--oasis-bg, #f6f8fb);padding:0 12px;color:var(--oasis-text-muted, #5f6368);font-size:12px;font-family:var(--oasis-font-ui, sans-serif);z-index:1">`);
18764
18764
  function PageBreak(_props) {
18765
18765
  const t = useI18n();
18766
18766
  return (() => {
18767
- var _el$ = _tmpl$$F(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
18767
+ var _el$ = _tmpl$$G(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
18768
18768
  insert(_el$3, () => t("metric.pageBreak") || "Page Break");
18769
18769
  return _el$;
18770
18770
  })();
@@ -22333,7 +22333,7 @@ function createCanvasPageRenderer(options) {
22333
22333
  }
22334
22334
  };
22335
22335
  }
22336
- var _tmpl$$E = /* @__PURE__ */ template(`<div class="oasis-editor-paper-stack oasis-editor-canvas-stack"style=position:relative>`), _tmpl$2$o = /* @__PURE__ */ template(`<div class=oasis-editor-canvas-page-slot style=position:relative>`), _tmpl$3$g = /* @__PURE__ */ template(`<div class=oasis-editor-paper data-renderer=canvas data-testid=editor-page style=position:relative;z-index:1><canvas>`), _tmpl$4$c = /* @__PURE__ */ template(`<div class=oasis-editor-table-revision-hit style=position:absolute;pointer-events:auto;background:transparent>`);
22336
+ var _tmpl$$F = /* @__PURE__ */ template(`<div class="oasis-editor-paper-stack oasis-editor-canvas-stack"style=position:relative>`), _tmpl$2$o = /* @__PURE__ */ template(`<div class=oasis-editor-canvas-page-slot style=position:relative>`), _tmpl$3$g = /* @__PURE__ */ template(`<div class=oasis-editor-paper data-renderer=canvas data-testid=editor-page style=position:relative;z-index:1><canvas>`), _tmpl$4$c = /* @__PURE__ */ template(`<div class=oasis-editor-table-revision-hit style=position:absolute;pointer-events:auto;background:transparent>`);
22337
22337
  const surfaceLogger = createEditorLogger("canvas-surface");
22338
22338
  function checkBrowserFonts(families) {
22339
22339
  if (typeof document === "undefined" || !document.fonts) {
@@ -22393,7 +22393,7 @@ function CanvasEditorSurface(props) {
22393
22393
  return layout;
22394
22394
  });
22395
22395
  return (() => {
22396
- var _el$ = _tmpl$$E();
22396
+ var _el$ = _tmpl$$F();
22397
22397
  insert(_el$, createComponent(Index, {
22398
22398
  get each() {
22399
22399
  return documentLayout().pages;
@@ -22927,7 +22927,7 @@ function computeRulerTicks(pageWidth, contentLeft, unit) {
22927
22927
  pushSide(-1);
22928
22928
  return ticks;
22929
22929
  }
22930
- var _tmpl$$D = /* @__PURE__ */ template(`<div class=oasis-editor-horizontal-ruler data-testid=editor-horizontal-ruler role=presentation><div class=oasis-editor-horizontal-ruler-track><div class=oasis-editor-horizontal-ruler-page><div class=oasis-editor-horizontal-ruler-margin style=left:0px></div><div class=oasis-editor-horizontal-ruler-margin></div><div class=oasis-editor-horizontal-ruler-content></div><button type=button class=oasis-editor-horizontal-ruler-margin-handle></button><button type=button class=oasis-editor-horizontal-ruler-margin-handle></button><button type=button class="oasis-editor-ruler-marker oasis-editor-ruler-marker-first-line"></button><button type=button class="oasis-editor-ruler-marker oasis-editor-ruler-marker-hanging"></button><button type=button class="oasis-editor-ruler-marker oasis-editor-ruler-marker-left-box"></button><button type=button class="oasis-editor-ruler-marker oasis-editor-ruler-marker-right-indent">`), _tmpl$2$n = /* @__PURE__ */ template(`<div>`), _tmpl$3$f = /* @__PURE__ */ template(`<div class=oasis-editor-horizontal-ruler-label>`);
22930
+ var _tmpl$$E = /* @__PURE__ */ template(`<div class=oasis-editor-horizontal-ruler data-testid=editor-horizontal-ruler role=presentation><div class=oasis-editor-horizontal-ruler-track><div class=oasis-editor-horizontal-ruler-page><div class=oasis-editor-horizontal-ruler-margin style=left:0px></div><div class=oasis-editor-horizontal-ruler-margin></div><div class=oasis-editor-horizontal-ruler-content></div><button type=button class=oasis-editor-horizontal-ruler-margin-handle></button><button type=button class=oasis-editor-horizontal-ruler-margin-handle></button><button type=button class="oasis-editor-ruler-marker oasis-editor-ruler-marker-first-line"></button><button type=button class="oasis-editor-ruler-marker oasis-editor-ruler-marker-hanging"></button><button type=button class="oasis-editor-ruler-marker oasis-editor-ruler-marker-left-box"></button><button type=button class="oasis-editor-ruler-marker oasis-editor-ruler-marker-right-indent">`), _tmpl$2$n = /* @__PURE__ */ template(`<div>`), _tmpl$3$f = /* @__PURE__ */ template(`<div class=oasis-editor-horizontal-ruler-label>`);
22931
22931
  function getActivePageSettings(state) {
22932
22932
  var _a;
22933
22933
  const idx = getActiveSectionIndex(state);
@@ -23133,7 +23133,7 @@ function HorizontalRuler(props) {
23133
23133
  }
23134
23134
  };
23135
23135
  return (() => {
23136
- var _el$ = _tmpl$$D(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$5.nextSibling, _el$7 = _el$6.nextSibling, _el$8 = _el$7.nextSibling, _el$9 = _el$8.nextSibling, _el$0 = _el$9.nextSibling, _el$1 = _el$0.nextSibling, _el$10 = _el$1.nextSibling;
23136
+ var _el$ = _tmpl$$E(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.nextSibling, _el$6 = _el$5.nextSibling, _el$7 = _el$6.nextSibling, _el$8 = _el$7.nextSibling, _el$9 = _el$8.nextSibling, _el$0 = _el$9.nextSibling, _el$1 = _el$0.nextSibling, _el$10 = _el$1.nextSibling;
23137
23137
  var _ref$ = pageRef;
23138
23138
  typeof _ref$ === "function" ? use(_ref$, _el$3) : pageRef = _el$3;
23139
23139
  insert(_el$3, createComponent(For, {
@@ -23230,10 +23230,10 @@ function HorizontalRuler(props) {
23230
23230
  })();
23231
23231
  }
23232
23232
  delegateEvents(["pointerdown"]);
23233
- var _tmpl$$C = /* @__PURE__ */ template(`<span aria-hidden=true class=oasis-editor-caret>`);
23233
+ var _tmpl$$D = /* @__PURE__ */ template(`<span aria-hidden=true class=oasis-editor-caret>`);
23234
23234
  function CaretOverlay(props) {
23235
23235
  return (() => {
23236
- var _el$ = _tmpl$$C();
23236
+ var _el$ = _tmpl$$D();
23237
23237
  createRenderEffect((_p$) => {
23238
23238
  var _v$ = !!props.active, _v$2 = {
23239
23239
  left: `${props.left}px`,
@@ -23254,10 +23254,10 @@ function CaretOverlay(props) {
23254
23254
  return _el$;
23255
23255
  })();
23256
23256
  }
23257
- var _tmpl$$B = /* @__PURE__ */ template(`<div aria-hidden=true class=oasis-editor-selection-overlay-root>`), _tmpl$2$m = /* @__PURE__ */ template(`<span aria-hidden=true class=oasis-editor-selection-box data-testid=editor-selection-box>`);
23257
+ var _tmpl$$C = /* @__PURE__ */ template(`<div aria-hidden=true class=oasis-editor-selection-overlay-root>`), _tmpl$2$m = /* @__PURE__ */ template(`<span aria-hidden=true class=oasis-editor-selection-box data-testid=editor-selection-box>`);
23258
23258
  function SelectionOverlay(props) {
23259
23259
  return (() => {
23260
- var _el$ = _tmpl$$B();
23260
+ var _el$ = _tmpl$$C();
23261
23261
  insert(_el$, createComponent(Index, {
23262
23262
  get each() {
23263
23263
  return props.boxes;
@@ -23283,7 +23283,7 @@ function SelectionOverlay(props) {
23283
23283
  return _el$;
23284
23284
  })();
23285
23285
  }
23286
- var _tmpl$$A = /* @__PURE__ */ template(`<div class=oasis-editor-revision-overlay data-testid=editor-revision-overlay><div class=oasis-editor-revision-overlay-content><span class=oasis-editor-revision-overlay-author><strong>:</strong> </span><span class=oasis-editor-revision-overlay-date></span></div><div class=oasis-editor-revision-overlay-arrow>`);
23286
+ var _tmpl$$B = /* @__PURE__ */ template(`<div class=oasis-editor-revision-overlay data-testid=editor-revision-overlay><div class=oasis-editor-revision-overlay-content><span class=oasis-editor-revision-overlay-author><strong>:</strong> </span><span class=oasis-editor-revision-overlay-date></span></div><div class=oasis-editor-revision-overlay-arrow>`);
23287
23287
  function RevisionOverlay(props) {
23288
23288
  const formattedDate = () => {
23289
23289
  try {
@@ -23298,7 +23298,7 @@ function RevisionOverlay(props) {
23298
23298
  return "Alterado por";
23299
23299
  };
23300
23300
  return (() => {
23301
- var _el$ = _tmpl$$A(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild;
23301
+ var _el$ = _tmpl$$B(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild;
23302
23302
  _el$4.nextSibling;
23303
23303
  var _el$7 = _el$3.nextSibling;
23304
23304
  insert(_el$4, label, _el$5);
@@ -23316,7 +23316,7 @@ function RevisionOverlay(props) {
23316
23316
  return _el$;
23317
23317
  })();
23318
23318
  }
23319
- var _tmpl$$z = /* @__PURE__ */ template(`<div aria-hidden=true class=oasis-editor-comment-overlay-root>`), _tmpl$2$l = /* @__PURE__ */ template(`<span class=oasis-editor-comment-highlight data-testid=editor-comment-highlight>`), _tmpl$3$e = /* @__PURE__ */ template(`<span class=oasis-editor-comment-popup-date>`), _tmpl$4$b = /* @__PURE__ */ template(`<span class=oasis-editor-comment-popup-resolved>✓`), _tmpl$5$7 = /* @__PURE__ */ template(`<div class=oasis-editor-comment-popup data-testid=editor-comment-popup><div class=oasis-editor-comment-popup-header><span class=oasis-editor-comment-popup-author></span></div><div class=oasis-editor-comment-popup-body>`);
23319
+ var _tmpl$$A = /* @__PURE__ */ template(`<div aria-hidden=true class=oasis-editor-comment-overlay-root>`), _tmpl$2$l = /* @__PURE__ */ template(`<span class=oasis-editor-comment-highlight data-testid=editor-comment-highlight>`), _tmpl$3$e = /* @__PURE__ */ template(`<span class=oasis-editor-comment-popup-date>`), _tmpl$4$b = /* @__PURE__ */ template(`<span class=oasis-editor-comment-popup-resolved>✓`), _tmpl$5$7 = /* @__PURE__ */ template(`<div class=oasis-editor-comment-popup data-testid=editor-comment-popup><div class=oasis-editor-comment-popup-header><span class=oasis-editor-comment-popup-author></span></div><div class=oasis-editor-comment-popup-body>`);
23320
23320
  function CommentHighlightOverlay(props) {
23321
23321
  const [activeCommentId, setActiveCommentId] = createSignal(null);
23322
23322
  const activeComment = createMemo(() => {
@@ -23343,7 +23343,7 @@ function CommentHighlightOverlay(props) {
23343
23343
  }
23344
23344
  };
23345
23345
  return (() => {
23346
- var _el$ = _tmpl$$z();
23346
+ var _el$ = _tmpl$$A();
23347
23347
  insert(_el$, createComponent(For, {
23348
23348
  get each() {
23349
23349
  return props.boxes();
@@ -23449,7 +23449,7 @@ function useSurfaceRect(surfaceRef) {
23449
23449
  });
23450
23450
  return { rect, tick, refresh };
23451
23451
  }
23452
- var _tmpl$$y = /* @__PURE__ */ template(`<div class=oasis-editor-floating-toolbar data-testid=editor-floating-table-toolbar><div class=oasis-editor-toolbar-group></div><div class=oasis-editor-toolbar-group></div><div class=oasis-editor-toolbar-group></div><div class=oasis-editor-toolbar-group></div><div class=oasis-editor-toolbar-group>`);
23452
+ var _tmpl$$z = /* @__PURE__ */ template(`<div class=oasis-editor-floating-toolbar data-testid=editor-floating-table-toolbar><div class=oasis-editor-toolbar-group></div><div class=oasis-editor-toolbar-group></div><div class=oasis-editor-toolbar-group></div><div class=oasis-editor-toolbar-group></div><div class=oasis-editor-toolbar-group>`);
23453
23453
  function FloatingTableToolbar(props) {
23454
23454
  const t = useI18n();
23455
23455
  const host = () => props.host();
@@ -23507,7 +23507,7 @@ function FloatingTableToolbar(props) {
23507
23507
  return document.body;
23508
23508
  },
23509
23509
  get children() {
23510
- var _el$ = _tmpl$$y(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.nextSibling, _el$5 = _el$4.nextSibling, _el$6 = _el$5.nextSibling;
23510
+ var _el$ = _tmpl$$z(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.nextSibling, _el$5 = _el$4.nextSibling, _el$6 = _el$5.nextSibling;
23511
23511
  _el$.$$mousedown = (event) => event.preventDefault();
23512
23512
  insert(_el$2, createComponent(Button$1, {
23513
23513
  icon: "combine",
@@ -23667,7 +23667,7 @@ function FloatingTableToolbar(props) {
23667
23667
  });
23668
23668
  }
23669
23669
  delegateEvents(["mousedown"]);
23670
- var _tmpl$$x = /* @__PURE__ */ template(`<svg><rect height=2 rx=1 fill=#9aa0a6></svg>`, false, true, false), _tmpl$2$k = /* @__PURE__ */ template(`<svg><rect rx=1.5></svg>`, false, true, false), _tmpl$3$d = /* @__PURE__ */ template(`<svg><polygon points="29,4 37,12 29,20 21,12"fill=#1a73e8></svg>`, false, true, false), _tmpl$4$a = /* @__PURE__ */ template(`<svg><polygon points="20,8 26,14 20,20 14,14"fill=#1a73e8></svg>`, false, true, false), _tmpl$5$6 = /* @__PURE__ */ template(`<svg viewBox="0 0 40 32"fill=none aria-hidden=true>`), _tmpl$6$4 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-layout-options-anchor data-testid=editor-layout-options-anchor><svg viewBox="0 0 24 24"fill=none aria-hidden=true><rect x=3 y=4 width=10 height=10 rx=1.5 fill=#1a73e8></rect><rect x=3 y=17 width=18 height=2 rx=1 fill=#9aa0a6></rect><rect x=15 y=5 width=6 height=2 rx=1 fill=#9aa0a6></rect><rect x=15 y=9 width=6 height=2 rx=1 fill=#9aa0a6>`), _tmpl$7$1 = /* @__PURE__ */ template(`<div class=oasis-editor-layout-options-popup data-testid=editor-layout-options-popup><div class=oasis-editor-layout-options-popup-header><span class=oasis-editor-layout-options-title></span><button type=button class=oasis-editor-layout-options-close>×</button></div><div class=oasis-editor-layout-options-group-label></div><div class=oasis-editor-layout-options-grid><button type=button class=oasis-editor-layout-options-cell data-testid=editor-layout-options-inline><svg viewBox="0 0 40 32"fill=none aria-hidden=true><rect x=4 y=7 width=9 height=2 rx=1 fill=#9aa0a6></rect><rect x=15 y=4 width=11 height=11 rx=1.5 fill=#1a73e8></rect><rect x=28 y=7 width=8 height=2 rx=1 fill=#9aa0a6></rect><rect x=4 y=20 width=32 height=2 rx=1 fill=#9aa0a6></rect><rect x=4 y=26 width=32 height=2 rx=1 fill=#9aa0a6></rect></svg></button></div><div class=oasis-editor-layout-options-group-label></div><div class=oasis-editor-layout-options-grid></div><div class=oasis-editor-layout-options-radios><label class=oasis-editor-layout-options-radio><input type=radio name=oasis-layout-position></label><label class=oasis-editor-layout-options-radio><input type=radio name=oasis-layout-position>`), _tmpl$8 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-layout-options-cell>`);
23670
+ var _tmpl$$y = /* @__PURE__ */ template(`<svg><rect height=2 rx=1 fill=#9aa0a6></svg>`, false, true, false), _tmpl$2$k = /* @__PURE__ */ template(`<svg><rect rx=1.5></svg>`, false, true, false), _tmpl$3$d = /* @__PURE__ */ template(`<svg><polygon points="29,4 37,12 29,20 21,12"fill=#1a73e8></svg>`, false, true, false), _tmpl$4$a = /* @__PURE__ */ template(`<svg><polygon points="20,8 26,14 20,20 14,14"fill=#1a73e8></svg>`, false, true, false), _tmpl$5$6 = /* @__PURE__ */ template(`<svg viewBox="0 0 40 32"fill=none aria-hidden=true>`), _tmpl$6$4 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-layout-options-anchor data-testid=editor-layout-options-anchor><svg viewBox="0 0 24 24"fill=none aria-hidden=true><rect x=3 y=4 width=10 height=10 rx=1.5 fill=#1a73e8></rect><rect x=3 y=17 width=18 height=2 rx=1 fill=#9aa0a6></rect><rect x=15 y=5 width=6 height=2 rx=1 fill=#9aa0a6></rect><rect x=15 y=9 width=6 height=2 rx=1 fill=#9aa0a6>`), _tmpl$7$1 = /* @__PURE__ */ template(`<div class=oasis-editor-layout-options-popup data-testid=editor-layout-options-popup><div class=oasis-editor-layout-options-popup-header><span class=oasis-editor-layout-options-title></span><button type=button class=oasis-editor-layout-options-close>×</button></div><div class=oasis-editor-layout-options-group-label></div><div class=oasis-editor-layout-options-grid><button type=button class=oasis-editor-layout-options-cell data-testid=editor-layout-options-inline><svg viewBox="0 0 40 32"fill=none aria-hidden=true><rect x=4 y=7 width=9 height=2 rx=1 fill=#9aa0a6></rect><rect x=15 y=4 width=11 height=11 rx=1.5 fill=#1a73e8></rect><rect x=28 y=7 width=8 height=2 rx=1 fill=#9aa0a6></rect><rect x=4 y=20 width=32 height=2 rx=1 fill=#9aa0a6></rect><rect x=4 y=26 width=32 height=2 rx=1 fill=#9aa0a6></rect></svg></button></div><div class=oasis-editor-layout-options-group-label></div><div class=oasis-editor-layout-options-grid></div><div class=oasis-editor-layout-options-radios><label class=oasis-editor-layout-options-radio><input type=radio name=oasis-layout-position></label><label class=oasis-editor-layout-options-radio><input type=radio name=oasis-layout-position>`), _tmpl$8 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-layout-options-cell>`);
23671
23671
  const WRAP_OPTIONS = [{
23672
23672
  preset: "square",
23673
23673
  labelKey: "layoutOptions.square"
@@ -23689,7 +23689,7 @@ const WRAP_OPTIONS = [{
23689
23689
  }];
23690
23690
  function WrapIcon(props) {
23691
23691
  const line = (x, y, w) => (() => {
23692
- var _el$ = _tmpl$$x();
23692
+ var _el$ = _tmpl$$y();
23693
23693
  setAttribute(_el$, "x", x);
23694
23694
  setAttribute(_el$, "y", y);
23695
23695
  setAttribute(_el$, "width", w);
@@ -38304,7 +38304,7 @@ function resolveResizedDimensions(geometry, deltaX, deltaY, preserveAspectRatio,
38304
38304
  nextHeight = clamp(nextWidth / aspectRatio, MIN_RESIZE_SIZE_PX);
38305
38305
  return { width: nextWidth, height: nextHeight };
38306
38306
  }
38307
- var _tmpl$$w = /* @__PURE__ */ template(`<button aria-hidden=true class=oasis-editor-rotate-handle tabindex=-1 type=button>`), _tmpl$2$j = /* @__PURE__ */ template(`<div aria-hidden=true style=transform-origin:center>`), _tmpl$3$c = /* @__PURE__ */ template(`<button aria-hidden=true class=oasis-editor-resize-handle tabindex=-1 type=button>`);
38307
+ var _tmpl$$x = /* @__PURE__ */ template(`<button aria-hidden=true class=oasis-editor-rotate-handle tabindex=-1 type=button>`), _tmpl$2$j = /* @__PURE__ */ template(`<div aria-hidden=true style=transform-origin:center>`), _tmpl$3$c = /* @__PURE__ */ template(`<button aria-hidden=true class=oasis-editor-resize-handle tabindex=-1 type=button>`);
38308
38308
  function ResizeHandlesOverlay(props) {
38309
38309
  return (() => {
38310
38310
  var _el$ = _tmpl$2$j();
@@ -38338,7 +38338,7 @@ function ResizeHandlesOverlay(props) {
38338
38338
  return props.onRotateStart;
38339
38339
  },
38340
38340
  get children() {
38341
- var _el$2 = _tmpl$$w();
38341
+ var _el$2 = _tmpl$$x();
38342
38342
  _el$2.$$mousedown = (event) => {
38343
38343
  var _a;
38344
38344
  if (!props.box()) {
@@ -38379,6 +38379,38 @@ function ResizeHandlesOverlay(props) {
38379
38379
  })();
38380
38380
  }
38381
38381
  delegateEvents(["mousedown"]);
38382
+ var _tmpl$$w = /* @__PURE__ */ template(`<div aria-hidden=true class=oasis-editor-table-handles-overlay><button aria-hidden=true class=oasis-editor-table-move-handle tabindex=-1 type=button></button><button aria-hidden=true class=oasis-editor-table-resize-corner tabindex=-1 type=button>`);
38383
+ function TableHandlesOverlay(props) {
38384
+ return createComponent(Show, {
38385
+ get when() {
38386
+ return memo(() => !!!props.readOnly)() && props.box();
38387
+ },
38388
+ children: (box) => (() => {
38389
+ var _el$ = _tmpl$$w(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
38390
+ _el$2.$$mousedown = (event) => {
38391
+ props.onMoveStart(event);
38392
+ };
38393
+ _el$3.$$mousedown = (event) => {
38394
+ props.onResizeStart(event);
38395
+ };
38396
+ createRenderEffect((_p$) => {
38397
+ var _v$ = `${box().left}px`, _v$2 = `${box().top}px`, _v$3 = `${box().width}px`, _v$4 = `${box().height}px`;
38398
+ _v$ !== _p$.e && setStyleProperty(_el$, "left", _p$.e = _v$);
38399
+ _v$2 !== _p$.t && setStyleProperty(_el$, "top", _p$.t = _v$2);
38400
+ _v$3 !== _p$.a && setStyleProperty(_el$, "width", _p$.a = _v$3);
38401
+ _v$4 !== _p$.o && setStyleProperty(_el$, "height", _p$.o = _v$4);
38402
+ return _p$;
38403
+ }, {
38404
+ e: void 0,
38405
+ t: void 0,
38406
+ a: void 0,
38407
+ o: void 0
38408
+ });
38409
+ return _el$;
38410
+ })()
38411
+ });
38412
+ }
38413
+ delegateEvents(["mousedown"]);
38382
38414
  const ZOOM_MIN = 50;
38383
38415
  const ZOOM_MAX = 200;
38384
38416
  const ZOOM_STEP = 10;
@@ -38513,6 +38545,7 @@ function OasisEditorEditor(props) {
38513
38545
  };
38514
38546
  const selectedImage = createMemo(() => overlays().selectedImageBox());
38515
38547
  const selectedTextBox = createMemo(() => overlays().selectedTextBoxBox());
38548
+ const selectedTable = createMemo(() => overlays().selectedTableBox());
38516
38549
  const commentsById = createMemo(() => {
38517
38550
  var _a;
38518
38551
  return ((_a = props.state().document.comments) == null ? void 0 : _a.items) ?? {};
@@ -38631,6 +38664,9 @@ function OasisEditorEditor(props) {
38631
38664
  get onTableDragHandleMouseDown() {
38632
38665
  return surfaceHandlers().onTableDragHandleMouseDown;
38633
38666
  },
38667
+ get onTableCornerResizeHandleMouseDown() {
38668
+ return surfaceHandlers().onTableCornerResizeHandleMouseDown;
38669
+ },
38634
38670
  get onRevisionMouseEnter() {
38635
38671
  return surfaceHandlers().onRevisionMouseEnter;
38636
38672
  },
@@ -38724,6 +38760,22 @@ function OasisEditorEditor(props) {
38724
38760
  surfaceHandlers().onTextBoxRotateHandleMouseDown(textBox.paragraphId, textBox.startOffset, event);
38725
38761
  }
38726
38762
  }), _el$5);
38763
+ insert(_el$4, createComponent(TableHandlesOverlay, {
38764
+ box: selectedTable,
38765
+ get readOnly() {
38766
+ return Boolean(layout().readOnly);
38767
+ },
38768
+ onMoveStart: (event) => {
38769
+ const table = selectedTable();
38770
+ if (!table) return;
38771
+ surfaceHandlers().onTableDragHandleMouseDown(table.tableId, event);
38772
+ },
38773
+ onResizeStart: (event) => {
38774
+ const table = selectedTable();
38775
+ if (!table) return;
38776
+ surfaceHandlers().onTableCornerResizeHandleMouseDown(table.tableId, event);
38777
+ }
38778
+ }), _el$5);
38727
38779
  insert(_el$4, createComponent(Show, {
38728
38780
  get when() {
38729
38781
  return memo(() => !!overlays().toolbarHost)() && overlays().showFloatingTableToolbar;
@@ -44196,8 +44248,8 @@ export {
44196
44248
  Show as ac,
44197
44249
  createRenderEffect as ad,
44198
44250
  style as ae,
44199
- setAttribute as af,
44200
- setStyleProperty as ag,
44251
+ setStyleProperty as af,
44252
+ setAttribute as ag,
44201
44253
  memo as ah,
44202
44254
  template as ai,
44203
44255
  Button as aj,