@trycourier/react-designer 0.0.0-canary-20250708135114 → 0.0.0-canary-20250714142320

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.
@@ -9,6 +9,9 @@ export declare const templateEditorContentAtom: import("jotai").PrimitiveAtom<El
9
9
  export declare const templateEditorPublishedAtAtom: import("jotai").PrimitiveAtom<string | null | undefined> & {
10
10
  init: string | null | undefined;
11
11
  };
12
+ export declare const templateEditorVersionAtom: import("jotai").PrimitiveAtom<string | null | undefined> & {
13
+ init: string | null | undefined;
14
+ };
12
15
  export declare const emailEditorAtom: import("jotai").PrimitiveAtom<Editor | null> & {
13
16
  init: Editor | null;
14
17
  };
@@ -4,3 +4,4 @@ export * from "./isTextSelected";
4
4
  export * from "./generateNodeIds";
5
5
  export * from "./createOrDuplicateNode";
6
6
  export * from "./multipleContainersKeyboardCoordinates";
7
+ export * from "./safeGetPos";
@@ -0,0 +1,13 @@
1
+ import type { NodeViewProps } from "@tiptap/react";
2
+ /**
3
+ * Safely gets the position from a NodeViewProps getPos function
4
+ * @param getPos The getPos function from NodeViewProps
5
+ * @returns The position as a number, or null if undefined
6
+ */
7
+ export declare const safeGetPos: (getPos: NodeViewProps["getPos"]) => number | null;
8
+ /**
9
+ * Safely gets a node at the position returned by getPos
10
+ * @param props NodeViewProps containing editor and getPos
11
+ * @returns The node or null if position is invalid
12
+ */
13
+ export declare const safeGetNodeAtPos: (props: NodeViewProps) => import("prosemirror-model").Node | null;