@underverse-ui/underverse 1.0.133 → 1.0.135

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5322,7 +5322,7 @@ var Modal = ({
5322
5322
  if (!element) return false;
5323
5323
  let current = element;
5324
5324
  while (current) {
5325
- if (current.hasAttribute?.("data-datepicker") || current.hasAttribute?.("data-popover") || current.hasAttribute?.("data-dropdown") || current.hasAttribute?.("data-dropdown-menu") || current.hasAttribute?.("data-radix-popper-content-wrapper") || current.hasAttribute?.("data-radix-portal") || current.getAttribute?.("role") === "listbox" || current.getAttribute?.("role") === "dialog" || current.classList?.contains("datepicker-portal") || current.classList?.contains("popover-portal")) {
5325
+ if (current.hasAttribute?.("data-datepicker") || current.hasAttribute?.("data-popover") || current.hasAttribute?.("data-dropdown") || current.hasAttribute?.("data-dropdown-menu") || current.hasAttribute?.("data-radix-popper-content-wrapper") || current.hasAttribute?.("data-radix-portal") || current.hasAttribute?.("data-tippy-root") || current.getAttribute?.("role") === "listbox" || current.getAttribute?.("role") === "dialog" || current.classList?.contains("datepicker-portal") || current.classList?.contains("popover-portal") || current.classList?.contains("tippy-box") || current.classList?.contains("tippy-content")) {
5326
5326
  return true;
5327
5327
  }
5328
5328
  current = current.parentElement;
@@ -25350,6 +25350,7 @@ var letter_spacing_default = LetterSpacing;
25350
25350
 
25351
25351
  // src/components/UEditor/table-align.ts
25352
25352
  import { Table as Table3 } from "@tiptap/extension-table";
25353
+ import { Plugin as Plugin3 } from "@tiptap/pm/state";
25353
25354
 
25354
25355
  // src/components/UEditor/table-align-utils.ts
25355
25356
  function findTableNodeInfoAtResolvedPos($pos) {
@@ -25477,6 +25478,24 @@ var UEditorTable = Table3.extend({
25477
25478
  return true;
25478
25479
  }
25479
25480
  };
25481
+ },
25482
+ addProseMirrorPlugins() {
25483
+ return [
25484
+ new Plugin3({
25485
+ appendTransaction(_transactions, _oldState, newState) {
25486
+ const { doc, schema } = newState;
25487
+ const paragraphType = schema.nodes.paragraph;
25488
+ if (!paragraphType) return null;
25489
+ const needsLeading = doc.firstChild?.type.name === "table";
25490
+ const needsTrailing = doc.lastChild?.type.name === "table";
25491
+ if (!needsLeading && !needsTrailing) return null;
25492
+ const tr = newState.tr;
25493
+ if (needsTrailing) tr.insert(doc.content.size, paragraphType.create());
25494
+ if (needsLeading) tr.insert(0, paragraphType.create());
25495
+ return tr;
25496
+ }
25497
+ })
25498
+ ];
25480
25499
  }
25481
25500
  });
25482
25501
  var table_align_default = UEditorTable;
@@ -27567,6 +27586,7 @@ var CustomBubbleMenu = ({
27567
27586
  "div",
27568
27587
  {
27569
27588
  ref: menuRef,
27589
+ "data-popover": true,
27570
27590
  className: "fixed z-99999 flex rounded-xl border border-border/40 bg-card text-card-foreground shadow-lg backdrop-blur-sm overflow-hidden animate-in fade-in-0 zoom-in-95",
27571
27591
  style: {
27572
27592
  top: `${position.top}px`,
@@ -27614,6 +27634,7 @@ var CustomFloatingMenu = ({ editor }) => {
27614
27634
  /* @__PURE__ */ jsx82(
27615
27635
  "div",
27616
27636
  {
27637
+ "data-popover": true,
27617
27638
  className: "fixed z-99999 rounded-2xl border border-border/50 bg-card text-card-foreground shadow-lg backdrop-blur-sm overflow-hidden animate-in fade-in-0 slide-in-from-bottom-2",
27618
27639
  style: {
27619
27640
  top: `${position.top}px`,