oasis-editor 0.0.129 → 0.0.131

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$D = /* @__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$r = /* @__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";
@@ -2596,7 +2596,7 @@ function OasisEditorLoading(props) {
2596
2596
  };
2597
2597
  const isDone = () => (pct() ?? 0) >= 100;
2598
2598
  return (() => {
2599
- var _el$ = _tmpl$2$C(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$4.firstChild;
2599
+ var _el$ = _tmpl$2$D(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$4.firstChild;
2600
2600
  insert(_el$2, createComponent(OasisBrandMark, {
2601
2601
  height: 40,
2602
2602
  "class": "oasis-editor-loading-mark"
@@ -2607,10 +2607,10 @@ 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
- return () => _c$() ? _tmpl$3$q() : `${pct()}%`;
2613
+ return () => _c$() ? _tmpl$3$r() : `${pct()}%`;
2614
2614
  })());
2615
2615
  return _el$6;
2616
2616
  }
@@ -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-Dn2I2b-M.js").then((m) => {
2665
2665
  cancelled = true;
2666
2666
  setProgress(1);
2667
2667
  setTimeout(() => setApp(() => m.OasisEditorApp), 180);
@@ -5248,9 +5248,9 @@ 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$$_();
5253
- const SpecialIndentFirstLineIcon = () => _tmpl$2$B();
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$C = /* @__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$q = /* @__PURE__ */ template(`<i>`);
5252
+ const FootnoteIcon = () => _tmpl$$$();
5253
+ const SpecialIndentFirstLineIcon = () => _tmpl$2$C();
5254
5254
  const CUSTOM_ICONS = {
5255
5255
  footnote: FootnoteIcon,
5256
5256
  specialIndentFirstLine: SpecialIndentFirstLineIcon
@@ -5265,7 +5265,7 @@ function ToolIcon(props) {
5265
5265
  },
5266
5266
  get fallback() {
5267
5267
  return (() => {
5268
- var _el$3 = _tmpl$3$p();
5268
+ var _el$3 = _tmpl$3$q();
5269
5269
  createRenderEffect(() => setAttribute(_el$3, "data-lucide", props.name));
5270
5270
  return _el$3;
5271
5271
  })();
@@ -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$B = /* @__PURE__ */ template(`<div class=oasis-menubar-dropdown role=menu>`), _tmpl$3$p = /* @__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$9 = /* @__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,13 +5406,13 @@ 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();
5413
5413
  },
5414
5414
  children: (topLevel) => (() => {
5415
- var _el$2 = _tmpl$3$o();
5415
+ var _el$2 = _tmpl$3$p();
5416
5416
  _el$2.addEventListener("mouseenter", () => {
5417
5417
  if (activeMenu() && activeMenu() !== topLevel.id) {
5418
5418
  setActiveMenu(topLevel.id);
@@ -5447,7 +5447,7 @@ function Menubar(props) {
5447
5447
  return activeMenu() === topLevel.id;
5448
5448
  },
5449
5449
  get children() {
5450
- var _el$3 = _tmpl$2$A();
5450
+ var _el$3 = _tmpl$2$B();
5451
5451
  insert(_el$3, createComponent(For, {
5452
5452
  get each() {
5453
5453
  return topLevel.children;
@@ -5561,7 +5561,7 @@ function MenuNode(props) {
5561
5561
  return showSub() && hasChildren;
5562
5562
  },
5563
5563
  get children() {
5564
- var _el$6 = _tmpl$6$8();
5564
+ var _el$6 = _tmpl$6$9();
5565
5565
  insert(_el$6, createComponent(For, {
5566
5566
  get each() {
5567
5567
  return node.children;
@@ -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$A = /* @__PURE__ */ template(`<div class=oasis-outline-list>`), _tmpl$3$o = /* @__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);
@@ -5749,13 +5749,13 @@ function OutlinePanel(props) {
5749
5749
  }
5750
5750
  });
5751
5751
  return (() => {
5752
- var _el$ = _tmpl$3$n(), _el$2 = _el$.firstChild, _el$4 = _el$2.firstChild, _el$5 = _el$4.firstChild;
5752
+ var _el$ = _tmpl$3$o(), _el$2 = _el$.firstChild, _el$4 = _el$2.firstChild, _el$5 = _el$4.firstChild;
5753
5753
  insert(_el$2, createComponent(Show, {
5754
5754
  get when() {
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
  }
@@ -5766,7 +5766,7 @@ function OutlinePanel(props) {
5766
5766
  return !collapsed();
5767
5767
  },
5768
5768
  get children() {
5769
- var _el$6 = _tmpl$2$z();
5769
+ var _el$6 = _tmpl$2$A();
5770
5770
  insert(_el$6, createComponent(Show, {
5771
5771
  get when() {
5772
5772
  return items().length > 0;
@@ -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$z = /* @__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;
@@ -5979,7 +5979,7 @@ function ToolbarOverflowManager(props) {
5979
5979
  return items();
5980
5980
  },
5981
5981
  children: (item) => (() => {
5982
- var _el$7 = _tmpl$2$y();
5982
+ var _el$7 = _tmpl$2$z();
5983
5983
  insert(_el$7, item);
5984
5984
  return _el$7;
5985
5985
  })()
@@ -6055,12 +6055,12 @@ 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$y = /* @__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 || "";
6062
6062
  return (() => {
6063
- var _el$ = _tmpl$2$x();
6063
+ var _el$ = _tmpl$2$y();
6064
6064
  spread(_el$, mergeProps({
6065
6065
  get ["class"]() {
6066
6066
  return `oasis-editor-tool-button ${local.class || ""}`;
@@ -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,12 +6248,12 @@ 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$x = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-dropdown>`), _tmpl$3$n = /* @__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$8 = /* @__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 || "";
6255
6255
  return (() => {
6256
- var _el$ = _tmpl$2$w();
6256
+ var _el$ = _tmpl$2$x();
6257
6257
  insert(_el$, createComponent(Popover, {
6258
6258
  get open() {
6259
6259
  return open();
@@ -6268,7 +6268,7 @@ function Menu(props) {
6268
6268
  },
6269
6269
  onPanelMouseLeave: void 0,
6270
6270
  trigger: (api) => (() => {
6271
- var _el$3 = _tmpl$6$7();
6271
+ var _el$3 = _tmpl$6$8();
6272
6272
  _el$3.$$click = () => api.toggle();
6273
6273
  use((el) => api.ref(el), _el$3);
6274
6274
  insert(_el$3, createComponent(Show, {
@@ -6276,7 +6276,7 @@ function Menu(props) {
6276
6276
  return props.icon;
6277
6277
  },
6278
6278
  get children() {
6279
- var _el$4 = _tmpl$3$m();
6279
+ var _el$4 = _tmpl$3$n();
6280
6280
  createRenderEffect(() => setAttribute(_el$4, "data-lucide", props.icon));
6281
6281
  return _el$4;
6282
6282
  }
@@ -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,10 +6336,10 @@ 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>`), _tmpl$2$w = /* @__PURE__ */ template(`<span class=oasis-editor-tool-select-ribbon-large-label>`), _tmpl$3$m = /* @__PURE__ */ template(`<div class=oasis-editor-tool-select-ribbon-large-wrap>`);
6340
6340
  function Select(props) {
6341
6341
  let selectRef;
6342
- const [local, others] = splitProps(props, ["wide", "small", "class", "tooltip", "aria-label", "value"]);
6342
+ const [local, others] = splitProps(props, ["wide", "small", "class", "tooltip", "aria-label", "value", "label", "ribbonSize"]);
6343
6343
  const ariaLabel = () => local["aria-label"] || local.tooltip || "";
6344
6344
  createEffect(() => {
6345
6345
  const nextValue = local.value;
@@ -6351,8 +6351,8 @@ function Select(props) {
6351
6351
  selectRef.value = serialized;
6352
6352
  }
6353
6353
  });
6354
- return (() => {
6355
- var _el$ = _tmpl$$R();
6354
+ const select = () => (() => {
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({
@@ -6362,7 +6362,8 @@ function Select(props) {
6362
6362
  get classList() {
6363
6363
  return {
6364
6364
  "oasis-editor-tool-select-wide": local.wide,
6365
- "oasis-editor-tool-select-small": local.small
6365
+ "oasis-editor-tool-select-small": local.small,
6366
+ "oasis-editor-tool-select-ribbon-large": local.ribbonSize === "large"
6366
6367
  };
6367
6368
  },
6368
6369
  get title() {
@@ -6378,16 +6379,39 @@ function Select(props) {
6378
6379
  insert(_el$, () => others.children);
6379
6380
  return _el$;
6380
6381
  })();
6382
+ return createComponent(Show, {
6383
+ get when() {
6384
+ return local.ribbonSize === "large";
6385
+ },
6386
+ get fallback() {
6387
+ return select();
6388
+ },
6389
+ get children() {
6390
+ var _el$2 = _tmpl$3$m();
6391
+ insert(_el$2, createComponent(Show, {
6392
+ get when() {
6393
+ return local.label;
6394
+ },
6395
+ get children() {
6396
+ var _el$3 = _tmpl$2$w();
6397
+ insert(_el$3, () => local.label);
6398
+ return _el$3;
6399
+ }
6400
+ }), null);
6401
+ insert(_el$2, select, null);
6402
+ return _el$2;
6403
+ }
6404
+ });
6381
6405
  }
6382
- var _tmpl$$Q = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-separator>`);
6406
+ var _tmpl$$R = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-separator>`);
6383
6407
  function Separator(props) {
6384
6408
  return (() => {
6385
- var _el$ = _tmpl$$Q();
6409
+ var _el$ = _tmpl$$R();
6386
6410
  createRenderEffect((_$p) => setStyleProperty(_el$, "display", props.hidden ? "none" : void 0));
6387
6411
  return _el$;
6388
6412
  })();
6389
6413
  }
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>`);
6414
+ 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
6415
  function SplitButton(props) {
6392
6416
  return createComponent(Popover, {
6393
6417
  get open() {
@@ -6406,23 +6430,24 @@ function SplitButton(props) {
6406
6430
  return props.onPanelMouseLeave;
6407
6431
  },
6408
6432
  trigger: (api) => (() => {
6409
- var _el$ = _tmpl$$P(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
6433
+ var _el$ = _tmpl$$Q(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
6410
6434
  use((el) => api.ref(el), _el$);
6411
6435
  _el$2.$$click = () => props.onMain();
6412
6436
  insert(_el$2, () => props.mainContent);
6413
6437
  _el$3.$$click = () => api.toggle();
6414
6438
  createRenderEffect((_p$) => {
6415
- var _v$ = props.rootClass ?? "oasis-editor-color-split", _v$2 = !!(props.rootActive ?? api.open), _v$3 = props.tooltip, _v$4 = props.mainTestId, _v$5 = props.mainAriaLabel ?? props.tooltip, _v$6 = props.mainPressed, _v$7 = !!api.open, _v$8 = props.menuTestId, _v$9 = props.menuAriaLabel ?? `${props.tooltip ?? ""} menu`, _v$0 = api.open;
6439
+ var _v$ = props.rootClass ?? "oasis-editor-color-split", _v$2 = !!(props.rootActive ?? api.open), _v$3 = !!(props.ribbonSize === "large"), _v$4 = props.tooltip, _v$5 = props.mainTestId, _v$6 = props.mainAriaLabel ?? props.tooltip, _v$7 = props.mainPressed, _v$8 = !!api.open, _v$9 = props.menuTestId, _v$0 = props.menuAriaLabel ?? `${props.tooltip ?? ""} menu`, _v$1 = api.open;
6416
6440
  _v$ !== _p$.e && className(_el$, _p$.e = _v$);
6417
6441
  _v$2 !== _p$.t && _el$.classList.toggle("oasis-editor-color-split-active", _p$.t = _v$2);
6418
- _v$3 !== _p$.a && setAttribute(_el$, "title", _p$.a = _v$3);
6419
- _v$4 !== _p$.o && setAttribute(_el$2, "data-testid", _p$.o = _v$4);
6420
- _v$5 !== _p$.i && setAttribute(_el$2, "aria-label", _p$.i = _v$5);
6421
- _v$6 !== _p$.n && setAttribute(_el$2, "aria-pressed", _p$.n = _v$6);
6422
- _v$7 !== _p$.s && _el$3.classList.toggle("oasis-editor-color-split-open", _p$.s = _v$7);
6423
- _v$8 !== _p$.h && setAttribute(_el$3, "data-testid", _p$.h = _v$8);
6424
- _v$9 !== _p$.r && setAttribute(_el$3, "aria-label", _p$.r = _v$9);
6425
- _v$0 !== _p$.d && setAttribute(_el$3, "aria-expanded", _p$.d = _v$0);
6442
+ _v$3 !== _p$.a && _el$.classList.toggle("oasis-editor-color-split-ribbon-large", _p$.a = _v$3);
6443
+ _v$4 !== _p$.o && setAttribute(_el$, "title", _p$.o = _v$4);
6444
+ _v$5 !== _p$.i && setAttribute(_el$2, "data-testid", _p$.i = _v$5);
6445
+ _v$6 !== _p$.n && setAttribute(_el$2, "aria-label", _p$.n = _v$6);
6446
+ _v$7 !== _p$.s && setAttribute(_el$2, "aria-pressed", _p$.s = _v$7);
6447
+ _v$8 !== _p$.h && _el$3.classList.toggle("oasis-editor-color-split-open", _p$.h = _v$8);
6448
+ _v$9 !== _p$.r && setAttribute(_el$3, "data-testid", _p$.r = _v$9);
6449
+ _v$0 !== _p$.d && setAttribute(_el$3, "aria-label", _p$.d = _v$0);
6450
+ _v$1 !== _p$.l && setAttribute(_el$3, "aria-expanded", _p$.l = _v$1);
6426
6451
  return _p$;
6427
6452
  }, {
6428
6453
  e: void 0,
@@ -6434,7 +6459,8 @@ function SplitButton(props) {
6434
6459
  s: void 0,
6435
6460
  h: void 0,
6436
6461
  r: void 0,
6437
- d: void 0
6462
+ d: void 0,
6463
+ l: void 0
6438
6464
  });
6439
6465
  return _el$;
6440
6466
  })(),
@@ -6444,7 +6470,7 @@ function SplitButton(props) {
6444
6470
  });
6445
6471
  }
6446
6472
  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>`);
6473
+ 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$7 = /* @__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(`<span>`), _tmpl$9 = /* @__PURE__ */ template(`<i data-lucide=slash>`), _tmpl$0 = /* @__PURE__ */ template(`<div class=oasis-editor-color-theme-column>`), _tmpl$1 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-color-swatch>`);
6448
6474
  const normalizeColor = (value) => (value == null ? void 0 : value.trim().toLowerCase()) ?? "";
6449
6475
  function ColorPicker(props) {
6450
6476
  const [isOpen, setIsOpen] = createSignal(false);
@@ -6470,6 +6496,9 @@ function ColorPicker(props) {
6470
6496
  get tooltip() {
6471
6497
  return props.tooltip;
6472
6498
  },
6499
+ get ribbonSize() {
6500
+ return props.ribbonSize;
6501
+ },
6473
6502
  panelClass: "oasis-editor-color-menu",
6474
6503
  panelRole: "menu",
6475
6504
  onPanelMouseLeave: () => setPreviewColor(null),
@@ -6487,7 +6516,7 @@ function ColorPicker(props) {
6487
6516
  return `${props.tooltip} menu`;
6488
6517
  },
6489
6518
  get mainContent() {
6490
- return (() => {
6519
+ return [(() => {
6491
6520
  var _el$13 = _tmpl$7$2(), _el$14 = _el$13.firstChild, _el$15 = _el$14.nextSibling;
6492
6521
  createRenderEffect((_p$) => {
6493
6522
  var _v$3 = props.icon, _v$4 = !displayColor(), _v$5 = displayColor() ?? void 0;
@@ -6501,7 +6530,16 @@ function ColorPicker(props) {
6501
6530
  a: void 0
6502
6531
  });
6503
6532
  return _el$13;
6504
- })();
6533
+ })(), createComponent(Show, {
6534
+ get when() {
6535
+ return props.label;
6536
+ },
6537
+ get children() {
6538
+ var _el$16 = _tmpl$8$1();
6539
+ insert(_el$16, () => props.label);
6540
+ return _el$16;
6541
+ }
6542
+ })];
6505
6543
  },
6506
6544
  get children() {
6507
6545
  return [createComponent(Show, {
@@ -6516,10 +6554,10 @@ function ColorPicker(props) {
6516
6554
  return props.kind === "color";
6517
6555
  },
6518
6556
  get fallback() {
6519
- return _tmpl$8$1();
6557
+ return _tmpl$9();
6520
6558
  },
6521
6559
  get children() {
6522
- return _tmpl$$O();
6560
+ return _tmpl$$P();
6523
6561
  }
6524
6562
  }));
6525
6563
  insert(_el$4, clearLabel);
@@ -6534,24 +6572,24 @@ function ColorPicker(props) {
6534
6572
  return props.palette.themeColors;
6535
6573
  },
6536
6574
  children: (theme) => (() => {
6537
- var _el$17 = _tmpl$9();
6538
- insert(_el$17, createComponent(For, {
6575
+ var _el$18 = _tmpl$0();
6576
+ insert(_el$18, createComponent(For, {
6539
6577
  get each() {
6540
6578
  return theme.values;
6541
6579
  },
6542
6580
  children: (color) => (() => {
6543
- var _el$18 = _tmpl$0();
6544
- _el$18.$$click = () => applyColor(color);
6545
- _el$18.addEventListener("blur", () => setPreviewColor(null));
6546
- _el$18.addEventListener("focus", () => setPreviewColor(color));
6547
- _el$18.addEventListener("mouseenter", () => setPreviewColor(color));
6548
- setStyleProperty(_el$18, "background-color", color);
6581
+ var _el$19 = _tmpl$1();
6582
+ _el$19.$$click = () => applyColor(color);
6583
+ _el$19.addEventListener("blur", () => setPreviewColor(null));
6584
+ _el$19.addEventListener("focus", () => setPreviewColor(color));
6585
+ _el$19.addEventListener("mouseenter", () => setPreviewColor(color));
6586
+ setStyleProperty(_el$19, "background-color", color);
6549
6587
  createRenderEffect((_p$) => {
6550
6588
  var _v$6 = !!(activeColor() === normalizeColor(color)), _v$7 = `${theme.name} ${color}`, _v$8 = `${theme.name} ${color}`, _v$9 = `${props.testId}-theme-swatch-${color.replace("#", "")}`;
6551
- _v$6 !== _p$.e && _el$18.classList.toggle("oasis-editor-color-swatch-active", _p$.e = _v$6);
6552
- _v$7 !== _p$.t && setAttribute(_el$18, "title", _p$.t = _v$7);
6553
- _v$8 !== _p$.a && setAttribute(_el$18, "aria-label", _p$.a = _v$8);
6554
- _v$9 !== _p$.o && setAttribute(_el$18, "data-testid", _p$.o = _v$9);
6589
+ _v$6 !== _p$.e && _el$19.classList.toggle("oasis-editor-color-swatch-active", _p$.e = _v$6);
6590
+ _v$7 !== _p$.t && setAttribute(_el$19, "title", _p$.t = _v$7);
6591
+ _v$8 !== _p$.a && setAttribute(_el$19, "aria-label", _p$.a = _v$8);
6592
+ _v$9 !== _p$.o && setAttribute(_el$19, "data-testid", _p$.o = _v$9);
6555
6593
  return _p$;
6556
6594
  }, {
6557
6595
  e: void 0,
@@ -6559,10 +6597,10 @@ function ColorPicker(props) {
6559
6597
  a: void 0,
6560
6598
  o: void 0
6561
6599
  });
6562
- return _el$18;
6600
+ return _el$19;
6563
6601
  })()
6564
6602
  }));
6565
- return _el$17;
6603
+ return _el$18;
6566
6604
  })()
6567
6605
  }));
6568
6606
  return _el$5;
@@ -6574,18 +6612,18 @@ function ColorPicker(props) {
6574
6612
  return props.palette.standardColors;
6575
6613
  },
6576
6614
  children: (swatch) => (() => {
6577
- var _el$19 = _tmpl$0();
6578
- _el$19.$$click = () => applyColor(swatch.value);
6579
- _el$19.addEventListener("blur", () => setPreviewColor(null));
6580
- _el$19.addEventListener("focus", () => setPreviewColor(swatch.value));
6581
- _el$19.addEventListener("mouseenter", () => setPreviewColor(swatch.value));
6615
+ var _el$20 = _tmpl$1();
6616
+ _el$20.$$click = () => applyColor(swatch.value);
6617
+ _el$20.addEventListener("blur", () => setPreviewColor(null));
6618
+ _el$20.addEventListener("focus", () => setPreviewColor(swatch.value));
6619
+ _el$20.addEventListener("mouseenter", () => setPreviewColor(swatch.value));
6582
6620
  createRenderEffect((_p$) => {
6583
6621
  var _v$0 = !!(activeColor() === normalizeColor(swatch.value)), _v$1 = swatch.value, _v$10 = swatch.name, _v$11 = swatch.name, _v$12 = `${props.testId}-standard-swatch-${swatch.value.replace("#", "")}`;
6584
- _v$0 !== _p$.e && _el$19.classList.toggle("oasis-editor-color-swatch-active", _p$.e = _v$0);
6585
- _v$1 !== _p$.t && setStyleProperty(_el$19, "background-color", _p$.t = _v$1);
6586
- _v$10 !== _p$.a && setAttribute(_el$19, "title", _p$.a = _v$10);
6587
- _v$11 !== _p$.o && setAttribute(_el$19, "aria-label", _p$.o = _v$11);
6588
- _v$12 !== _p$.i && setAttribute(_el$19, "data-testid", _p$.i = _v$12);
6622
+ _v$0 !== _p$.e && _el$20.classList.toggle("oasis-editor-color-swatch-active", _p$.e = _v$0);
6623
+ _v$1 !== _p$.t && setStyleProperty(_el$20, "background-color", _p$.t = _v$1);
6624
+ _v$10 !== _p$.a && setAttribute(_el$20, "title", _p$.a = _v$10);
6625
+ _v$11 !== _p$.o && setAttribute(_el$20, "aria-label", _p$.o = _v$11);
6626
+ _v$12 !== _p$.i && setAttribute(_el$20, "data-testid", _p$.i = _v$12);
6589
6627
  return _p$;
6590
6628
  }, {
6591
6629
  e: void 0,
@@ -6594,7 +6632,7 @@ function ColorPicker(props) {
6594
6632
  o: void 0,
6595
6633
  i: void 0
6596
6634
  });
6597
- return _el$19;
6635
+ return _el$20;
6598
6636
  })()
6599
6637
  }));
6600
6638
  return _el$8;
@@ -6610,7 +6648,7 @@ function ColorPicker(props) {
6610
6648
  createRenderEffect(() => setAttribute(_el$1, "data-testid", `${props.testId}-more-colors`));
6611
6649
  return _el$1;
6612
6650
  })(), (() => {
6613
- var _el$12 = _tmpl$6$6();
6651
+ var _el$12 = _tmpl$6$7();
6614
6652
  _el$12.$$input = (event) => applyColor(event.currentTarget.value);
6615
6653
  var _ref$ = customColorInputRef;
6616
6654
  typeof _ref$ === "function" ? use(_ref$, _el$12) : customColorInputRef = _el$12;
@@ -6632,7 +6670,7 @@ function ColorPicker(props) {
6632
6670
  });
6633
6671
  }
6634
6672
  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>`);
6673
+ 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(`<span>`), _tmpl$5$9 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-tool-button><i>`), _tmpl$6$6 = /* @__PURE__ */ template(`<button type=button class=oasis-editor-table-grid-picker-cell>`);
6636
6674
  function GridPicker(props) {
6637
6675
  const t = useI18n();
6638
6676
  const [isOpen, setIsOpen] = createSignal(false);
@@ -6719,29 +6757,41 @@ function GridPicker(props) {
6719
6757
  col: 0
6720
6758
  }),
6721
6759
  trigger: (api) => (() => {
6722
- var _el$4 = _tmpl$4$f(), _el$5 = _el$4.firstChild;
6760
+ var _el$4 = _tmpl$5$9(), _el$5 = _el$4.firstChild;
6723
6761
  _el$4.$$click = () => api.toggle();
6724
6762
  use((el) => api.ref(el), _el$4);
6763
+ insert(_el$4, createComponent(Show, {
6764
+ get when() {
6765
+ return props.label;
6766
+ },
6767
+ get children() {
6768
+ var _el$6 = _tmpl$4$f();
6769
+ insert(_el$6, () => props.label);
6770
+ return _el$6;
6771
+ }
6772
+ }), null);
6725
6773
  createRenderEffect((_p$) => {
6726
- var _v$3 = !!api.open, _v$4 = tooltip(), _v$5 = tooltip(), _v$6 = props.testId, _v$7 = icon();
6774
+ var _v$3 = !!api.open, _v$4 = !!(props.ribbonSize === "large"), _v$5 = tooltip(), _v$6 = tooltip(), _v$7 = props.testId, _v$8 = icon();
6727
6775
  _v$3 !== _p$.e && _el$4.classList.toggle("oasis-editor-tool-button-active", _p$.e = _v$3);
6728
- _v$4 !== _p$.t && setAttribute(_el$4, "title", _p$.t = _v$4);
6729
- _v$5 !== _p$.a && setAttribute(_el$4, "aria-label", _p$.a = _v$5);
6730
- _v$6 !== _p$.o && setAttribute(_el$4, "data-testid", _p$.o = _v$6);
6731
- _v$7 !== _p$.i && setAttribute(_el$5, "data-lucide", _p$.i = _v$7);
6776
+ _v$4 !== _p$.t && _el$4.classList.toggle("oasis-editor-tool-button-ribbon-large", _p$.t = _v$4);
6777
+ _v$5 !== _p$.a && setAttribute(_el$4, "title", _p$.a = _v$5);
6778
+ _v$6 !== _p$.o && setAttribute(_el$4, "aria-label", _p$.o = _v$6);
6779
+ _v$7 !== _p$.i && setAttribute(_el$4, "data-testid", _p$.i = _v$7);
6780
+ _v$8 !== _p$.n && setAttribute(_el$5, "data-lucide", _p$.n = _v$8);
6732
6781
  return _p$;
6733
6782
  }, {
6734
6783
  e: void 0,
6735
6784
  t: void 0,
6736
6785
  a: void 0,
6737
6786
  o: void 0,
6738
- i: void 0
6787
+ i: void 0,
6788
+ n: void 0
6739
6789
  });
6740
6790
  return _el$4;
6741
6791
  })(),
6742
6792
  get children() {
6743
6793
  return [(() => {
6744
- var _el$2 = _tmpl$$N();
6794
+ var _el$2 = _tmpl$$O();
6745
6795
  insert(_el$2, statusLabel);
6746
6796
  return _el$2;
6747
6797
  })(), (() => {
@@ -6755,17 +6805,17 @@ function GridPicker(props) {
6755
6805
  return cols();
6756
6806
  },
6757
6807
  children: (c) => (() => {
6758
- var _el$6 = _tmpl$5$9();
6759
- _el$6.$$click = () => selectGridSize(r, c);
6760
- _el$6.$$mousedown = (event) => event.preventDefault();
6761
- _el$6.addEventListener("mouseenter", () => setHover({
6808
+ var _el$7 = _tmpl$6$6();
6809
+ _el$7.$$click = () => selectGridSize(r, c);
6810
+ _el$7.$$mousedown = (event) => event.preventDefault();
6811
+ _el$7.addEventListener("mouseenter", () => setHover({
6762
6812
  row: r,
6763
6813
  col: c
6764
6814
  }));
6765
- setAttribute(_el$6, "data-testid", `editor-toolbar-table-grid-${r}x${c}`);
6766
- setAttribute(_el$6, "aria-label", `${r} × ${c}`);
6767
- createRenderEffect(() => _el$6.classList.toggle("oasis-editor-table-grid-picker-cell-active", !!(r <= hover().row && c <= hover().col)));
6768
- return _el$6;
6815
+ setAttribute(_el$7, "data-testid", `editor-toolbar-table-grid-${r}x${c}`);
6816
+ setAttribute(_el$7, "aria-label", `${r} × ${c}`);
6817
+ createRenderEffect(() => _el$7.classList.toggle("oasis-editor-table-grid-picker-cell-active", !!(r <= hover().row && c <= hover().col)));
6818
+ return _el$7;
6769
6819
  })()
6770
6820
  })
6771
6821
  }));
@@ -6845,7 +6895,7 @@ const DEFAULT_PALETTE = {
6845
6895
  standardColors: STANDARD_COLORS,
6846
6896
  allowCustom: true
6847
6897
  };
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>`);
6898
+ 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
6899
  function getQuickStyles(styles) {
6850
6900
  const applicable = styles.filter((style2) => style2.type !== "table" && (!style2.semiHidden || style2.unhideWhenUsed && style2.isUsed));
6851
6901
  const hasQuickStyles = applicable.some((style2) => style2.qFormat === true);
@@ -6925,7 +6975,7 @@ function StyleGallery(props) {
6925
6975
  return styles();
6926
6976
  },
6927
6977
  children: (style$1) => (() => {
6928
- var _el$ = _tmpl$$M(), _el$2 = _el$.firstChild;
6978
+ var _el$ = _tmpl$$N(), _el$2 = _el$.firstChild;
6929
6979
  _el$.$$click = () => apply(style$1);
6930
6980
  insert(_el$2, () => style$1.name);
6931
6981
  createRenderEffect((_p$) => {
@@ -7013,7 +7063,7 @@ function StyleGallery(props) {
7013
7063
  });
7014
7064
  }
7015
7065
  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>`);
7066
+ 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
7067
  function renderMenuContent(content, api) {
7018
7068
  if (content.kind === "custom") {
7019
7069
  return content.render(api);
@@ -7188,6 +7238,12 @@ function RenderSelect(props) {
7188
7238
  get tooltip() {
7189
7239
  return resolveTooltip(props.item, props.api);
7190
7240
  },
7241
+ get label() {
7242
+ return resolveLabel(props.item, props.api);
7243
+ },
7244
+ get ribbonSize() {
7245
+ return props.item.ribbonSize;
7246
+ },
7191
7247
  onChange,
7192
7248
  get children() {
7193
7249
  return [createComponent(Show, {
@@ -7195,7 +7251,7 @@ function RenderSelect(props) {
7195
7251
  return props.item.placeholder !== void 0;
7196
7252
  },
7197
7253
  get children() {
7198
- var _el$ = _tmpl$$L();
7254
+ var _el$ = _tmpl$$M();
7199
7255
  insert(_el$, () => props.item.placeholder);
7200
7256
  return _el$;
7201
7257
  }
@@ -7249,6 +7305,12 @@ function RenderColorPicker(props) {
7249
7305
  get tooltip() {
7250
7306
  return resolveTooltip(props.item, props.api) ?? "";
7251
7307
  },
7308
+ get label() {
7309
+ return resolveLabel(props.item, props.api);
7310
+ },
7311
+ get ribbonSize() {
7312
+ return props.item.ribbonSize;
7313
+ },
7252
7314
  get testId() {
7253
7315
  return props.item.testId ?? props.item.id;
7254
7316
  },
@@ -7290,6 +7352,12 @@ function RenderGridPicker(props) {
7290
7352
  get icon() {
7291
7353
  return props.item.iconName;
7292
7354
  },
7355
+ get label() {
7356
+ return resolveLabel(props.item, props.api);
7357
+ },
7358
+ get ribbonSize() {
7359
+ return props.item.ribbonSize;
7360
+ },
7293
7361
  get maxRows() {
7294
7362
  return props.item.maxRows;
7295
7363
  },
@@ -7801,7 +7869,7 @@ function resolveResponsiveRibbonGroups(groups, availableWidth, measurements = {}
7801
7869
  allocatedWidth: allocatedWidths.get(group.id)
7802
7870
  }));
7803
7871
  }
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>`);
7872
+ 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
7873
  function RibbonTabs(props) {
7806
7874
  const tabs = createMemo(() => buildRibbonTabDefinitions(props.api.t, props.api));
7807
7875
  const moveTab = (current, delta) => {
@@ -7811,7 +7879,7 @@ function RibbonTabs(props) {
7811
7879
  if (next) props.setActiveTab(next.id);
7812
7880
  };
7813
7881
  return (() => {
7814
- var _el$ = _tmpl$$K();
7882
+ var _el$ = _tmpl$$L();
7815
7883
  insert(_el$, createComponent(For, {
7816
7884
  get each() {
7817
7885
  return tabs();
@@ -7862,10 +7930,10 @@ function RibbonTabs(props) {
7862
7930
  })();
7863
7931
  }
7864
7932
  delegateEvents(["click", "keydown"]);
7865
- var _tmpl$$J = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-row>`);
7933
+ var _tmpl$$K = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-row>`);
7866
7934
  function RibbonRow(props) {
7867
7935
  return (() => {
7868
- var _el$ = _tmpl$$J();
7936
+ var _el$ = _tmpl$$K();
7869
7937
  insert(_el$, createComponent(For, {
7870
7938
  get each() {
7871
7939
  return props.items;
@@ -7880,7 +7948,7 @@ function RibbonRow(props) {
7880
7948
  return _el$;
7881
7949
  })();
7882
7950
  }
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>`);
7951
+ 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
7952
  function groupItems(group) {
7885
7953
  return [...group.largeItems, ...group.rows[1], ...group.rows[2]];
7886
7954
  }
@@ -7945,7 +8013,7 @@ function RibbonGroup(props) {
7945
8013
  return props.group.largeItems.length > 0;
7946
8014
  },
7947
8015
  get children() {
7948
- var _el$3 = _tmpl$$I();
8016
+ var _el$3 = _tmpl$$J();
7949
8017
  insert(_el$3, createComponent(For, {
7950
8018
  get each() {
7951
8019
  return props.group.largeItems;
@@ -8006,7 +8074,7 @@ function RibbonGroup(props) {
8006
8074
  return _el$;
8007
8075
  })();
8008
8076
  }
8009
- var _tmpl$$H = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-panel role=tabpanel data-testid=editor-ribbon-panel>`);
8077
+ var _tmpl$$I = /* @__PURE__ */ template(`<div class=oasis-editor-ribbon-panel role=tabpanel data-testid=editor-ribbon-panel>`);
8010
8078
  function RibbonPanel(props) {
8011
8079
  const [availableWidth, setAvailableWidth] = createSignal(null);
8012
8080
  const [measurements, setMeasurements] = createSignal({});
@@ -8051,7 +8119,7 @@ function RibbonPanel(props) {
8051
8119
  requestAnimationFrame(measureGroups);
8052
8120
  });
8053
8121
  return (() => {
8054
- var _el$ = _tmpl$$H();
8122
+ var _el$ = _tmpl$$I();
8055
8123
  var _ref$ = panelRef;
8056
8124
  typeof _ref$ === "function" ? use(_ref$, _el$) : panelRef = _el$;
8057
8125
  insert(_el$, createComponent(For, {
@@ -8077,7 +8145,7 @@ function RibbonPanel(props) {
8077
8145
  return _el$;
8078
8146
  })();
8079
8147
  }
8080
- var _tmpl$$G = /* @__PURE__ */ template(`<section class=oasis-editor-toolbar>`), _tmpl$2$p = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-wrap-strip>`);
8148
+ var _tmpl$$H = /* @__PURE__ */ template(`<section class=oasis-editor-toolbar>`), _tmpl$2$p = /* @__PURE__ */ template(`<div class=oasis-editor-toolbar-wrap-strip>`);
8081
8149
  const shouldAllowNativeMouseDown = (target) => target instanceof Element && target.closest("select, input, textarea, label") !== null;
8082
8150
  function Toolbar(props) {
8083
8151
  const api = createToolbarApi(props.host, useI18n());
@@ -8117,7 +8185,7 @@ function Toolbar(props) {
8117
8185
  })
8118
8186
  });
8119
8187
  return (() => {
8120
- var _el$ = _tmpl$$G();
8188
+ var _el$ = _tmpl$$H();
8121
8189
  _el$.$$mousedown = (event) => {
8122
8190
  if (shouldAllowNativeMouseDown(event.target)) {
8123
8191
  return;
@@ -18760,11 +18828,11 @@ function buildCanvasTableLayout(options) {
18760
18828
  unsupported: Array.from(new Set(unsupported))
18761
18829
  };
18762
18830
  }
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">`);
18831
+ 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
18832
  function PageBreak(_props) {
18765
18833
  const t = useI18n();
18766
18834
  return (() => {
18767
- var _el$ = _tmpl$$F(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
18835
+ var _el$ = _tmpl$$G(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
18768
18836
  insert(_el$3, () => t("metric.pageBreak") || "Page Break");
18769
18837
  return _el$;
18770
18838
  })();
@@ -22333,7 +22401,7 @@ function createCanvasPageRenderer(options) {
22333
22401
  }
22334
22402
  };
22335
22403
  }
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>`);
22404
+ 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
22405
  const surfaceLogger = createEditorLogger("canvas-surface");
22338
22406
  function checkBrowserFonts(families) {
22339
22407
  if (typeof document === "undefined" || !document.fonts) {
@@ -22393,7 +22461,7 @@ function CanvasEditorSurface(props) {
22393
22461
  return layout;
22394
22462
  });
22395
22463
  return (() => {
22396
- var _el$ = _tmpl$$E();
22464
+ var _el$ = _tmpl$$F();
22397
22465
  insert(_el$, createComponent(Index, {
22398
22466
  get each() {
22399
22467
  return documentLayout().pages;
@@ -22927,7 +22995,7 @@ function computeRulerTicks(pageWidth, contentLeft, unit) {
22927
22995
  pushSide(-1);
22928
22996
  return ticks;
22929
22997
  }
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>`);
22998
+ 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
22999
  function getActivePageSettings(state) {
22932
23000
  var _a;
22933
23001
  const idx = getActiveSectionIndex(state);
@@ -23133,7 +23201,7 @@ function HorizontalRuler(props) {
23133
23201
  }
23134
23202
  };
23135
23203
  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;
23204
+ 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
23205
  var _ref$ = pageRef;
23138
23206
  typeof _ref$ === "function" ? use(_ref$, _el$3) : pageRef = _el$3;
23139
23207
  insert(_el$3, createComponent(For, {
@@ -23230,10 +23298,10 @@ function HorizontalRuler(props) {
23230
23298
  })();
23231
23299
  }
23232
23300
  delegateEvents(["pointerdown"]);
23233
- var _tmpl$$C = /* @__PURE__ */ template(`<span aria-hidden=true class=oasis-editor-caret>`);
23301
+ var _tmpl$$D = /* @__PURE__ */ template(`<span aria-hidden=true class=oasis-editor-caret>`);
23234
23302
  function CaretOverlay(props) {
23235
23303
  return (() => {
23236
- var _el$ = _tmpl$$C();
23304
+ var _el$ = _tmpl$$D();
23237
23305
  createRenderEffect((_p$) => {
23238
23306
  var _v$ = !!props.active, _v$2 = {
23239
23307
  left: `${props.left}px`,
@@ -23254,10 +23322,10 @@ function CaretOverlay(props) {
23254
23322
  return _el$;
23255
23323
  })();
23256
23324
  }
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>`);
23325
+ 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
23326
  function SelectionOverlay(props) {
23259
23327
  return (() => {
23260
- var _el$ = _tmpl$$B();
23328
+ var _el$ = _tmpl$$C();
23261
23329
  insert(_el$, createComponent(Index, {
23262
23330
  get each() {
23263
23331
  return props.boxes;
@@ -23283,7 +23351,7 @@ function SelectionOverlay(props) {
23283
23351
  return _el$;
23284
23352
  })();
23285
23353
  }
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>`);
23354
+ 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
23355
  function RevisionOverlay(props) {
23288
23356
  const formattedDate = () => {
23289
23357
  try {
@@ -23298,7 +23366,7 @@ function RevisionOverlay(props) {
23298
23366
  return "Alterado por";
23299
23367
  };
23300
23368
  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;
23369
+ var _el$ = _tmpl$$B(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild;
23302
23370
  _el$4.nextSibling;
23303
23371
  var _el$7 = _el$3.nextSibling;
23304
23372
  insert(_el$4, label, _el$5);
@@ -23316,7 +23384,7 @@ function RevisionOverlay(props) {
23316
23384
  return _el$;
23317
23385
  })();
23318
23386
  }
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>`);
23387
+ 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
23388
  function CommentHighlightOverlay(props) {
23321
23389
  const [activeCommentId, setActiveCommentId] = createSignal(null);
23322
23390
  const activeComment = createMemo(() => {
@@ -23343,7 +23411,7 @@ function CommentHighlightOverlay(props) {
23343
23411
  }
23344
23412
  };
23345
23413
  return (() => {
23346
- var _el$ = _tmpl$$z();
23414
+ var _el$ = _tmpl$$A();
23347
23415
  insert(_el$, createComponent(For, {
23348
23416
  get each() {
23349
23417
  return props.boxes();
@@ -23449,7 +23517,7 @@ function useSurfaceRect(surfaceRef) {
23449
23517
  });
23450
23518
  return { rect, tick, refresh };
23451
23519
  }
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>`);
23520
+ 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
23521
  function FloatingTableToolbar(props) {
23454
23522
  const t = useI18n();
23455
23523
  const host = () => props.host();
@@ -23507,7 +23575,7 @@ function FloatingTableToolbar(props) {
23507
23575
  return document.body;
23508
23576
  },
23509
23577
  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;
23578
+ 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
23579
  _el$.$$mousedown = (event) => event.preventDefault();
23512
23580
  insert(_el$2, createComponent(Button$1, {
23513
23581
  icon: "combine",
@@ -23667,7 +23735,7 @@ function FloatingTableToolbar(props) {
23667
23735
  });
23668
23736
  }
23669
23737
  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>`);
23738
+ 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
23739
  const WRAP_OPTIONS = [{
23672
23740
  preset: "square",
23673
23741
  labelKey: "layoutOptions.square"
@@ -23689,7 +23757,7 @@ const WRAP_OPTIONS = [{
23689
23757
  }];
23690
23758
  function WrapIcon(props) {
23691
23759
  const line = (x, y, w) => (() => {
23692
- var _el$ = _tmpl$$x();
23760
+ var _el$ = _tmpl$$y();
23693
23761
  setAttribute(_el$, "x", x);
23694
23762
  setAttribute(_el$, "y", y);
23695
23763
  setAttribute(_el$, "width", w);
@@ -38304,7 +38372,7 @@ function resolveResizedDimensions(geometry, deltaX, deltaY, preserveAspectRatio,
38304
38372
  nextHeight = clamp(nextWidth / aspectRatio, MIN_RESIZE_SIZE_PX);
38305
38373
  return { width: nextWidth, height: nextHeight };
38306
38374
  }
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>`);
38375
+ 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
38376
  function ResizeHandlesOverlay(props) {
38309
38377
  return (() => {
38310
38378
  var _el$ = _tmpl$2$j();
@@ -38338,7 +38406,7 @@ function ResizeHandlesOverlay(props) {
38338
38406
  return props.onRotateStart;
38339
38407
  },
38340
38408
  get children() {
38341
- var _el$2 = _tmpl$$w();
38409
+ var _el$2 = _tmpl$$x();
38342
38410
  _el$2.$$mousedown = (event) => {
38343
38411
  var _a;
38344
38412
  if (!props.box()) {
@@ -38379,6 +38447,38 @@ function ResizeHandlesOverlay(props) {
38379
38447
  })();
38380
38448
  }
38381
38449
  delegateEvents(["mousedown"]);
38450
+ 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>`);
38451
+ function TableHandlesOverlay(props) {
38452
+ return createComponent(Show, {
38453
+ get when() {
38454
+ return memo(() => !!!props.readOnly)() && props.box();
38455
+ },
38456
+ children: (box) => (() => {
38457
+ var _el$ = _tmpl$$w(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
38458
+ _el$2.$$mousedown = (event) => {
38459
+ props.onMoveStart(event);
38460
+ };
38461
+ _el$3.$$mousedown = (event) => {
38462
+ props.onResizeStart(event);
38463
+ };
38464
+ createRenderEffect((_p$) => {
38465
+ var _v$ = `${box().left}px`, _v$2 = `${box().top}px`, _v$3 = `${box().width}px`, _v$4 = `${box().height}px`;
38466
+ _v$ !== _p$.e && setStyleProperty(_el$, "left", _p$.e = _v$);
38467
+ _v$2 !== _p$.t && setStyleProperty(_el$, "top", _p$.t = _v$2);
38468
+ _v$3 !== _p$.a && setStyleProperty(_el$, "width", _p$.a = _v$3);
38469
+ _v$4 !== _p$.o && setStyleProperty(_el$, "height", _p$.o = _v$4);
38470
+ return _p$;
38471
+ }, {
38472
+ e: void 0,
38473
+ t: void 0,
38474
+ a: void 0,
38475
+ o: void 0
38476
+ });
38477
+ return _el$;
38478
+ })()
38479
+ });
38480
+ }
38481
+ delegateEvents(["mousedown"]);
38382
38482
  const ZOOM_MIN = 50;
38383
38483
  const ZOOM_MAX = 200;
38384
38484
  const ZOOM_STEP = 10;
@@ -38513,6 +38613,7 @@ function OasisEditorEditor(props) {
38513
38613
  };
38514
38614
  const selectedImage = createMemo(() => overlays().selectedImageBox());
38515
38615
  const selectedTextBox = createMemo(() => overlays().selectedTextBoxBox());
38616
+ const selectedTable = createMemo(() => overlays().selectedTableBox());
38516
38617
  const commentsById = createMemo(() => {
38517
38618
  var _a;
38518
38619
  return ((_a = props.state().document.comments) == null ? void 0 : _a.items) ?? {};
@@ -38631,6 +38732,9 @@ function OasisEditorEditor(props) {
38631
38732
  get onTableDragHandleMouseDown() {
38632
38733
  return surfaceHandlers().onTableDragHandleMouseDown;
38633
38734
  },
38735
+ get onTableCornerResizeHandleMouseDown() {
38736
+ return surfaceHandlers().onTableCornerResizeHandleMouseDown;
38737
+ },
38634
38738
  get onRevisionMouseEnter() {
38635
38739
  return surfaceHandlers().onRevisionMouseEnter;
38636
38740
  },
@@ -38724,6 +38828,22 @@ function OasisEditorEditor(props) {
38724
38828
  surfaceHandlers().onTextBoxRotateHandleMouseDown(textBox.paragraphId, textBox.startOffset, event);
38725
38829
  }
38726
38830
  }), _el$5);
38831
+ insert(_el$4, createComponent(TableHandlesOverlay, {
38832
+ box: selectedTable,
38833
+ get readOnly() {
38834
+ return Boolean(layout().readOnly);
38835
+ },
38836
+ onMoveStart: (event) => {
38837
+ const table = selectedTable();
38838
+ if (!table) return;
38839
+ surfaceHandlers().onTableDragHandleMouseDown(table.tableId, event);
38840
+ },
38841
+ onResizeStart: (event) => {
38842
+ const table = selectedTable();
38843
+ if (!table) return;
38844
+ surfaceHandlers().onTableCornerResizeHandleMouseDown(table.tableId, event);
38845
+ }
38846
+ }), _el$5);
38727
38847
  insert(_el$4, createComponent(Show, {
38728
38848
  get when() {
38729
38849
  return memo(() => !!overlays().toolbarHost)() && overlays().showFloatingTableToolbar;
@@ -43787,6 +43907,8 @@ function createDefaultToolbarPreset(t) {
43787
43907
  testId: "editor-toolbar-insert-image",
43788
43908
  iconName: "image",
43789
43909
  tooltipKey: "toolbar.image",
43910
+ labelKey: "toolbar.image",
43911
+ ribbonSize: "large",
43790
43912
  command: "insertImage"
43791
43913
  });
43792
43914
  items.push({
@@ -43795,6 +43917,8 @@ function createDefaultToolbarPreset(t) {
43795
43917
  testId: "editor-toolbar-insert-shape",
43796
43918
  iconName: "shapes",
43797
43919
  tooltipKey: "toolbar.shapes",
43920
+ labelKey: "toolbar.shapes",
43921
+ ribbonSize: "large",
43798
43922
  panelClass: "oasis-editor-shape-gallery-panel",
43799
43923
  content: {
43800
43924
  kind: "custom",
@@ -43806,6 +43930,8 @@ function createDefaultToolbarPreset(t) {
43806
43930
  id: "editor-toolbar-insert-table",
43807
43931
  testId: "editor-toolbar-insert-table",
43808
43932
  tooltipKey: "toolbar.table",
43933
+ labelKey: "toolbar.table",
43934
+ ribbonSize: "large",
43809
43935
  command: "insertTable"
43810
43936
  });
43811
43937
  items.push({
@@ -43814,7 +43940,9 @@ function createDefaultToolbarPreset(t) {
43814
43940
  testId: "editor-toolbar-link",
43815
43941
  iconName: "link",
43816
43942
  command: "link",
43817
- tooltip: `${t("toolbar.link")} (${mod}+K)`
43943
+ tooltip: `${t("toolbar.link")} (${mod}+K)`,
43944
+ labelKey: "toolbar.link",
43945
+ ribbonSize: "large"
43818
43946
  });
43819
43947
  items.push({
43820
43948
  type: "button",
@@ -43822,7 +43950,9 @@ function createDefaultToolbarPreset(t) {
43822
43950
  testId: "editor-toolbar-unlink",
43823
43951
  iconName: "unlink",
43824
43952
  command: "unlink",
43825
- tooltipKey: "toolbar.unlink"
43953
+ tooltipKey: "toolbar.unlink",
43954
+ labelKey: "toolbar.unlink",
43955
+ ribbonSize: "large"
43826
43956
  });
43827
43957
  items.push({
43828
43958
  type: "button",
@@ -43830,7 +43960,9 @@ function createDefaultToolbarPreset(t) {
43830
43960
  testId: "editor-toolbar-footnote",
43831
43961
  iconName: "footnote",
43832
43962
  command: "insertFootnote",
43833
- tooltip: `${t("toolbar.footnote")} (${mod}+Alt+F)`
43963
+ tooltip: `${t("toolbar.footnote")} (${mod}+Alt+F)`,
43964
+ labelKey: "toolbar.footnote",
43965
+ ribbonSize: "large"
43834
43966
  });
43835
43967
  items.push({
43836
43968
  type: "button",
@@ -43838,6 +43970,8 @@ function createDefaultToolbarPreset(t) {
43838
43970
  testId: "editor-toolbar-image-alt",
43839
43971
  iconName: "file-text",
43840
43972
  tooltipKey: "toolbar.alt",
43973
+ labelKey: "toolbar.alt",
43974
+ ribbonSize: "large",
43841
43975
  command: "editImageAlt",
43842
43976
  isVisible: (api) => api.commands.state("editImageAlt").isEnabled
43843
43977
  });
@@ -43847,6 +43981,8 @@ function createDefaultToolbarPreset(t) {
43847
43981
  testId: "editor-toolbar-image-caption",
43848
43982
  iconName: "subtitles",
43849
43983
  tooltipKey: "toolbar.imageCaption",
43984
+ labelKey: "toolbar.imageCaption",
43985
+ ribbonSize: "large",
43850
43986
  command: "insertImageCaption",
43851
43987
  isVisible: (api) => api.commands.state("insertImageCaption").isEnabled
43852
43988
  });
@@ -43949,6 +44085,7 @@ function createDefaultToolbarPreset(t) {
43949
44085
  items.push({
43950
44086
  type: "custom",
43951
44087
  id: "editor-toolbar-metrics",
44088
+ ribbonSize: "large",
43952
44089
  render: (api) => MetricGroup({ api })
43953
44090
  });
43954
44091
  items.push({ type: "separator", id: "sep-metrics" });
@@ -43959,7 +44096,9 @@ function createDefaultToolbarPreset(t) {
43959
44096
  testId: spec.id,
43960
44097
  iconName: spec.icon,
43961
44098
  command: spec.command,
43962
- tooltipKey: spec.tooltipKey
44099
+ tooltipKey: spec.tooltipKey,
44100
+ labelKey: spec.tooltipKey,
44101
+ ribbonSize: "large"
43963
44102
  });
43964
44103
  }
43965
44104
  for (const spec of TABLE_DESIGN_TOGGLES) {
@@ -43969,7 +44108,8 @@ function createDefaultToolbarPreset(t) {
43969
44108
  testId: spec.id,
43970
44109
  command: spec.command,
43971
44110
  labelKey: spec.labelKey,
43972
- tooltipKey: spec.labelKey
44111
+ tooltipKey: spec.labelKey,
44112
+ ribbonSize: "large"
43973
44113
  });
43974
44114
  }
43975
44115
  items.push({
@@ -43979,7 +44119,9 @@ function createDefaultToolbarPreset(t) {
43979
44119
  kind: "shading",
43980
44120
  command: "tableCellShading",
43981
44121
  defaultValue: "#f1f5f9",
43982
- tooltipKey: "table.cellColor"
44122
+ tooltipKey: "table.cellColor",
44123
+ labelKey: "table.cellColor",
44124
+ ribbonSize: "large"
43983
44125
  });
43984
44126
  items.push({
43985
44127
  type: "button",
@@ -43987,7 +44129,9 @@ function createDefaultToolbarPreset(t) {
43987
44129
  testId: "editor-toolbar-tbl-borders",
43988
44130
  iconName: "frame",
43989
44131
  command: "tableCellBorders",
43990
- tooltipKey: "table.applyBorders"
44132
+ tooltipKey: "table.applyBorders",
44133
+ labelKey: "table.applyBorders",
44134
+ ribbonSize: "large"
43991
44135
  });
43992
44136
  items.push({
43993
44137
  type: "button",
@@ -43995,13 +44139,17 @@ function createDefaultToolbarPreset(t) {
43995
44139
  testId: "editor-toolbar-tbl-no-borders",
43996
44140
  iconName: "square",
43997
44141
  command: "tableCellNoBorders",
43998
- tooltipKey: "table.removeBorders"
44142
+ tooltipKey: "table.removeBorders",
44143
+ labelKey: "table.removeBorders",
44144
+ ribbonSize: "large"
43999
44145
  });
44000
44146
  items.push({
44001
44147
  type: "select",
44002
44148
  id: "editor-toolbar-tbl-style",
44003
44149
  testId: "editor-toolbar-tbl-style",
44004
44150
  tooltipKey: "table.tableStyle",
44151
+ labelKey: "table.tableStyle",
44152
+ ribbonSize: "large",
44005
44153
  placeholder: t("table.tableStyle"),
44006
44154
  width: "wide",
44007
44155
  command: "setTableStyle",
@@ -44013,7 +44161,9 @@ function createDefaultToolbarPreset(t) {
44013
44161
  testId: "editor-toolbar-tbl-distribute-rows",
44014
44162
  iconName: "rows",
44015
44163
  command: "tableDistributeRows",
44016
- tooltipKey: "table.distributeRows"
44164
+ tooltipKey: "table.distributeRows",
44165
+ labelKey: "table.distributeRows",
44166
+ ribbonSize: "large"
44017
44167
  });
44018
44168
  items.push({
44019
44169
  type: "button",
@@ -44021,7 +44171,9 @@ function createDefaultToolbarPreset(t) {
44021
44171
  testId: "editor-toolbar-tbl-distribute-cols",
44022
44172
  iconName: "columns",
44023
44173
  command: "tableDistributeColumns",
44024
- tooltipKey: "table.distributeColumns"
44174
+ tooltipKey: "table.distributeColumns",
44175
+ labelKey: "table.distributeColumns",
44176
+ ribbonSize: "large"
44025
44177
  });
44026
44178
  items.push({
44027
44179
  type: "toggle",
@@ -44030,7 +44182,8 @@ function createDefaultToolbarPreset(t) {
44030
44182
  iconName: "move-horizontal",
44031
44183
  command: "tableToggleAutoFit",
44032
44184
  labelKey: "table.autoFit",
44033
- tooltipKey: "table.autoFit"
44185
+ tooltipKey: "table.autoFit",
44186
+ ribbonSize: "large"
44034
44187
  });
44035
44188
  items.push({
44036
44189
  type: "custom",
@@ -44196,8 +44349,8 @@ export {
44196
44349
  Show as ac,
44197
44350
  createRenderEffect as ad,
44198
44351
  style as ae,
44199
- setAttribute as af,
44200
- setStyleProperty as ag,
44352
+ setStyleProperty as af,
44353
+ setAttribute as ag,
44201
44354
  memo as ah,
44202
44355
  template as ai,
44203
44356
  Button as aj,