@trycourier/react-designer 0.0.0-canary-20251020152518 → 0.0.0-canary-20251022150014

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.
@@ -2,6 +2,7 @@ import type { MessageRouting } from "@/components/Providers/store";
2
2
  import type { TextMenuConfig } from "@/components/ui/TextMenu/config";
3
3
  import type { TiptapDoc } from "@/lib/utils";
4
4
  import type { ChannelType } from "@/store";
5
+ import type { ElementalNode } from "@/types/elemental.types";
5
6
  import type { AnyExtension, Editor } from "@tiptap/react";
6
7
  import type { HTMLAttributes } from "react";
7
8
  import type { TemplateEditorProps } from "../../TemplateEditor";
@@ -26,11 +27,6 @@ export interface PushProps extends Pick<TemplateEditorProps, "hidePublish" | "th
26
27
  }) => React.ReactNode;
27
28
  render?: (props: PushRenderProps) => React.ReactNode;
28
29
  }
29
- export declare const defaultPushContent: {
30
- raw: {
31
- title: string;
32
- text: string;
33
- };
34
- };
30
+ export declare const defaultPushContent: ElementalNode[];
35
31
  export declare const PushConfig: TextMenuConfig;
36
32
  export declare const Push: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<PushProps & import("react").RefAttributes<HTMLDivElement>>>;
@@ -1,15 +1,12 @@
1
1
  import type { TextMenuConfig } from "@/components/ui/TextMenu/config";
2
2
  import type { TiptapDoc } from "@/lib/utils";
3
+ import type { ElementalNode } from "@/types/elemental.types";
3
4
  import type { AnyExtension, Editor } from "@tiptap/react";
4
5
  import type { HTMLAttributes } from "react";
5
6
  import type { MessageRouting } from "../../../Providers/store";
6
7
  import type { ChannelType } from "@/store";
7
8
  import type { TemplateEditorProps } from "../../TemplateEditor";
8
- export declare const defaultSMSContent: {
9
- raw: {
10
- text: string;
11
- };
12
- };
9
+ export declare const defaultSMSContent: ElementalNode[];
13
10
  export declare const SMSEditorContent: ({ value }: {
14
11
  value?: TiptapDoc | null;
15
12
  }) => import("react/jsx-runtime").JSX.Element;
@@ -16,12 +16,12 @@ export declare const buttonSchema: z.ZodObject<{
16
16
  isStrike: z.ZodBoolean;
17
17
  }, "strip", z.ZodTypeAny, {
18
18
  padding: number;
19
- borderWidth: number;
20
19
  label: string;
21
20
  backgroundColor: string;
22
21
  textColor: string;
23
22
  borderColor: string;
24
23
  size: "full" | "default";
24
+ borderWidth: number;
25
25
  borderRadius: number;
26
26
  alignment: "left" | "center" | "right";
27
27
  fontStyle: "italic" | "normal";
@@ -31,12 +31,12 @@ export declare const buttonSchema: z.ZodObject<{
31
31
  link?: string | undefined;
32
32
  }, {
33
33
  padding: number;
34
- borderWidth: number;
35
34
  label: string;
36
35
  backgroundColor: string;
37
36
  textColor: string;
38
37
  borderColor: string;
39
38
  size: "full" | "default";
39
+ borderWidth: number;
40
40
  borderRadius: number;
41
41
  alignment: "left" | "center" | "right";
42
42
  fontStyle: "italic" | "normal";
@@ -12,8 +12,8 @@ export declare const imageBlockSchema: z.ZodObject<{
12
12
  imageNaturalWidth: z.ZodNumber;
13
13
  }, "strip", z.ZodTypeAny, {
14
14
  width: number;
15
- borderWidth: number;
16
15
  borderColor: string;
16
+ borderWidth: number;
17
17
  borderRadius: number;
18
18
  alignment: "left" | "center" | "right";
19
19
  sourcePath: string;
@@ -23,8 +23,8 @@ export declare const imageBlockSchema: z.ZodObject<{
23
23
  isUploading?: boolean | undefined;
24
24
  }, {
25
25
  width: number;
26
- borderWidth: number;
27
26
  borderColor: string;
27
+ borderWidth: number;
28
28
  borderRadius: number;
29
29
  alignment: "left" | "center" | "right";
30
30
  sourcePath: string;
@@ -11,23 +11,23 @@ export declare const textBlockSchema: z.ZodObject<{
11
11
  selected: z.ZodDefault<z.ZodBoolean>;
12
12
  id: z.ZodOptional<z.ZodString>;
13
13
  }, "strip", z.ZodTypeAny, {
14
- borderWidth: number;
15
14
  backgroundColor: string;
16
15
  textColor: string;
17
16
  paddingVertical: number;
18
17
  paddingHorizontal: number;
19
18
  borderColor: string;
19
+ borderWidth: number;
20
20
  borderRadius: number;
21
21
  textAlign: "left" | "center" | "right" | "justify";
22
22
  selected: boolean;
23
23
  id?: string | undefined;
24
24
  }, {
25
- borderWidth: number;
26
25
  backgroundColor: string;
27
26
  textColor: string;
28
27
  paddingVertical: number;
29
28
  paddingHorizontal: number;
30
29
  borderColor: string;
30
+ borderWidth: number;
31
31
  borderRadius: number;
32
32
  id?: string | undefined;
33
33
  textAlign?: "left" | "center" | "right" | "justify" | undefined;