@select-org/select-post-builder 1.1.27 → 1.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -344,14 +344,13 @@ declare module '@tiptap/core' {
344
344
 
345
345
  declare module '@tiptap/core' {
346
346
  interface Commands<ReturnType> {
347
- iframe: {
348
- /**
349
- * Insert an iframe node into the document
350
- */
351
- setIframe: (options: {
352
- src: string;
353
- width?: string;
354
- height?: string;
347
+ smartMediaUpload: {
348
+ insertMediaWithUpload: (params: {
349
+ source: File | Blob | string;
350
+ type: MediaNodeTypes;
351
+ mediaType?: MediaItemType;
352
+ caption?: string;
353
+ searchFrom?: ImageSearchFrom;
355
354
  }) => ReturnType;
356
355
  };
357
356
  }
@@ -360,13 +359,14 @@ declare module '@tiptap/core' {
360
359
 
361
360
  declare module '@tiptap/core' {
362
361
  interface Commands<ReturnType> {
363
- smartMediaUpload: {
364
- insertMediaWithUpload: (params: {
365
- source: File | Blob | string;
366
- type: MediaNodeTypes;
367
- mediaType?: MediaItemType;
368
- caption?: string;
369
- searchFrom?: ImageSearchFrom;
362
+ iframe: {
363
+ /**
364
+ * Insert an iframe node into the document
365
+ */
366
+ setIframe: (options: {
367
+ src: string;
368
+ width?: string;
369
+ height?: string;
370
370
  }) => ReturnType;
371
371
  };
372
372
  }
@@ -33827,23 +33827,28 @@ const PostBuilderEditorInstanceWithDialog = ({
33827
33827
  hasUnsavedChanges: metrics?.hasUnsavedChanges ?? false
33828
33828
  });
33829
33829
  };
33830
- return /* @__PURE__ */ jsxRuntime.jsx(Dialog, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
33831
- DialogContent,
33832
- {
33833
- className: "bg-transparent shadow-none border-0 p-3 lg:max-w-4xl shrink-0 max-h-[calc(100dvh-7rem)]! flex flex-col overflow-y-auto -translate-1/2",
33834
- showCloseButton: false,
33835
- children: [
33836
- /* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { children: [
33837
- /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { className: "sr-only", children: "Post Builder Modal" }),
33838
- !hideGroupSelector && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-3", children: [
33839
- /* @__PURE__ */ jsxRuntime.jsx(GroupSelector, { user, store, onGroupSelect }),
33840
- /* @__PURE__ */ jsxRuntime.jsx(DialogClose, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "outline", size: "icon", children: /* @__PURE__ */ jsxRuntime.jsx(X, {}) }) })
33841
- ] })
33842
- ] }),
33843
- /* @__PURE__ */ jsxRuntime.jsx(PostBuilderEditorInstance, { ...rest, store, placement })
33844
- ]
33845
- }
33846
- ) });
33830
+ return /* @__PURE__ */ jsxRuntime.jsxs(Dialog, { modal: false, open, onOpenChange: handleOpenChange, children: [
33831
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "z-9999 fixed inset-0 bg-black/50", onClick: () => handleOpenChange(false) }),
33832
+ /* @__PURE__ */ jsxRuntime.jsxs(
33833
+ DialogContent,
33834
+ {
33835
+ onInteractOutside: (e2) => e2.preventDefault(),
33836
+ onOpenAutoFocus: (e2) => e2.preventDefault(),
33837
+ className: "z-99999 bg-transparent shadow-none border-0 p-3 lg:max-w-4xl shrink-0 max-h-[calc(100dvh-7rem)]! flex flex-col overflow-y-auto -translate-1/2",
33838
+ showCloseButton: false,
33839
+ children: [
33840
+ /* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { children: [
33841
+ /* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { className: "sr-only", children: "Post Builder Modal" }),
33842
+ !hideGroupSelector && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-3", children: [
33843
+ /* @__PURE__ */ jsxRuntime.jsx(GroupSelector, { user, store, onGroupSelect }),
33844
+ /* @__PURE__ */ jsxRuntime.jsx(DialogClose, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "outline", size: "icon", children: /* @__PURE__ */ jsxRuntime.jsx(X, {}) }) })
33845
+ ] })
33846
+ ] }),
33847
+ /* @__PURE__ */ jsxRuntime.jsx(PostBuilderEditorInstance, { ...rest, store, placement })
33848
+ ]
33849
+ }
33850
+ )
33851
+ ] });
33847
33852
  };
33848
33853
  var M = (e2, i2, s2, u, m, a2, l2, h) => {
33849
33854
  let d = document.documentElement, w = ["light", "dark"];
@@ -590,6 +590,14 @@ body {
590
590
  z-index: 999;
591
591
  }
592
592
 
593
+ [data-theme="select-post-builder"] .z-9999 {
594
+ z-index: 9999;
595
+ }
596
+
597
+ [data-theme="select-post-builder"] .z-99999 {
598
+ z-index: 99999;
599
+ }
600
+
593
601
  [data-theme="select-post-builder"] .order-first {
594
602
  order: -9999;
595
603
  }
@@ -33797,23 +33797,28 @@ const PostBuilderEditorInstanceWithDialog = ({
33797
33797
  hasUnsavedChanges: metrics?.hasUnsavedChanges ?? false
33798
33798
  });
33799
33799
  };
33800
- return /* @__PURE__ */ jsx(Dialog, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs(
33801
- DialogContent,
33802
- {
33803
- className: "bg-transparent shadow-none border-0 p-3 lg:max-w-4xl shrink-0 max-h-[calc(100dvh-7rem)]! flex flex-col overflow-y-auto -translate-1/2",
33804
- showCloseButton: false,
33805
- children: [
33806
- /* @__PURE__ */ jsxs(DialogHeader, { children: [
33807
- /* @__PURE__ */ jsx(DialogTitle, { className: "sr-only", children: "Post Builder Modal" }),
33808
- !hideGroupSelector && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3", children: [
33809
- /* @__PURE__ */ jsx(GroupSelector, { user, store, onGroupSelect }),
33810
- /* @__PURE__ */ jsx(DialogClose, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", size: "icon", children: /* @__PURE__ */ jsx(X, {}) }) })
33811
- ] })
33812
- ] }),
33813
- /* @__PURE__ */ jsx(PostBuilderEditorInstance, { ...rest, store, placement })
33814
- ]
33815
- }
33816
- ) });
33800
+ return /* @__PURE__ */ jsxs(Dialog, { modal: false, open, onOpenChange: handleOpenChange, children: [
33801
+ /* @__PURE__ */ jsx("div", { className: "z-9999 fixed inset-0 bg-black/50", onClick: () => handleOpenChange(false) }),
33802
+ /* @__PURE__ */ jsxs(
33803
+ DialogContent,
33804
+ {
33805
+ onInteractOutside: (e2) => e2.preventDefault(),
33806
+ onOpenAutoFocus: (e2) => e2.preventDefault(),
33807
+ className: "z-99999 bg-transparent shadow-none border-0 p-3 lg:max-w-4xl shrink-0 max-h-[calc(100dvh-7rem)]! flex flex-col overflow-y-auto -translate-1/2",
33808
+ showCloseButton: false,
33809
+ children: [
33810
+ /* @__PURE__ */ jsxs(DialogHeader, { children: [
33811
+ /* @__PURE__ */ jsx(DialogTitle, { className: "sr-only", children: "Post Builder Modal" }),
33812
+ !hideGroupSelector && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3", children: [
33813
+ /* @__PURE__ */ jsx(GroupSelector, { user, store, onGroupSelect }),
33814
+ /* @__PURE__ */ jsx(DialogClose, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", size: "icon", children: /* @__PURE__ */ jsx(X, {}) }) })
33815
+ ] })
33816
+ ] }),
33817
+ /* @__PURE__ */ jsx(PostBuilderEditorInstance, { ...rest, store, placement })
33818
+ ]
33819
+ }
33820
+ )
33821
+ ] });
33817
33822
  };
33818
33823
  var M = (e2, i2, s2, u, m, a2, l2, h) => {
33819
33824
  let d = document.documentElement, w = ["light", "dark"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@select-org/select-post-builder",
3
- "version": "1.1.27",
3
+ "version": "1.1.29",
4
4
  "description": "A reusable, extensible Post Builder widget for the Select platform and beyond.",
5
5
  "main": "./dist/post-builder.cjs.js",
6
6
  "module": "./dist/post-builder.js",