@trycourier/react-designer 0.0.0-canary-20250820153811 → 0.0.0-canary-20250828155722
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/cjs/index.js +34 -34
- package/dist/cjs/index.js.map +3 -3
- package/dist/components/Providers/useTemplateActions.d.ts +2 -2
- package/dist/components/TemplateEditor/Channels/Email/Email.d.ts +1 -1
- package/dist/components/TemplateEditor/Channels/Inbox/Inbox.d.ts +6 -2
- package/dist/components/TemplateEditor/Channels/Inbox/InboxEditor.d.ts +1 -1
- package/dist/components/TemplateEditor/Channels/Push/Push.d.ts +5 -3
- package/dist/components/TemplateEditor/Channels/SMS/SMS.d.ts +5 -3
- package/dist/components/TemplateEditor/TemplateEditor.d.ts +1 -1
- package/dist/components/TemplateEditor/index.d.ts +1 -0
- package/dist/esm/index.js +35 -35
- package/dist/esm/index.js.map +3 -3
- package/package.json +1 -1
|
@@ -14,6 +14,6 @@ export declare function useTemplateActions(): {
|
|
|
14
14
|
setTemplateError: (args_0: string | ((prev: string | null) => string | null) | null) => void;
|
|
15
15
|
templateData: import("./store").TenantData | null;
|
|
16
16
|
setTemplateData: (args_0: import("./store").TenantData | ((prev: import("./store").TenantData | null) => import("./store").TenantData | null) | null) => void;
|
|
17
|
-
templateEditorContent: import("
|
|
18
|
-
setTemplateEditorContent: (args_0: import("
|
|
17
|
+
templateEditorContent: import("../TemplateEditor").ElementalContent | null | undefined;
|
|
18
|
+
setTemplateEditorContent: (args_0: import("../TemplateEditor").ElementalContent | ((prev: import("../TemplateEditor").ElementalContent | null | undefined) => import("../TemplateEditor").ElementalContent | null | undefined) | null | undefined) => void;
|
|
19
19
|
};
|
|
@@ -20,7 +20,7 @@ interface BrandSettingsData {
|
|
|
20
20
|
mediumLink?: string;
|
|
21
21
|
xLink?: string;
|
|
22
22
|
}
|
|
23
|
-
export interface EmailProps extends Pick<TemplateEditorProps, "hidePublish" | "brandEditor" | "channels" | "variables" | "theme" | "routing"> {
|
|
23
|
+
export interface EmailProps extends Pick<TemplateEditorProps, "hidePublish" | "brandEditor" | "channels" | "variables" | "theme" | "routing" | "value"> {
|
|
24
24
|
isLoading?: boolean;
|
|
25
25
|
headerRenderer?: ({ hidePublish, channels, routing, }: {
|
|
26
26
|
hidePublish?: boolean;
|
|
@@ -7,7 +7,10 @@ import type { AnyExtension, Editor } from "@tiptap/react";
|
|
|
7
7
|
import type { TemplateEditorProps } from "../../TemplateEditor";
|
|
8
8
|
export declare const defaultInboxContent: ElementalNode[];
|
|
9
9
|
export declare const InboxConfig: TextMenuConfig;
|
|
10
|
-
|
|
10
|
+
interface InboxEditorContentProps {
|
|
11
|
+
value?: TiptapDoc;
|
|
12
|
+
}
|
|
13
|
+
export declare const InboxEditorContent: ({ value }: InboxEditorContentProps) => null;
|
|
11
14
|
export interface InboxRenderProps {
|
|
12
15
|
content: TiptapDoc;
|
|
13
16
|
extensions: AnyExtension[];
|
|
@@ -17,7 +20,7 @@ export interface InboxRenderProps {
|
|
|
17
20
|
editor: Editor;
|
|
18
21
|
}) => void;
|
|
19
22
|
}
|
|
20
|
-
export interface InboxProps extends Pick<TemplateEditorProps, "hidePublish" | "theme" | "variables" | "channels" | "routing"> {
|
|
23
|
+
export interface InboxProps extends Pick<TemplateEditorProps, "hidePublish" | "theme" | "variables" | "channels" | "routing" | "value"> {
|
|
21
24
|
readOnly?: boolean;
|
|
22
25
|
headerRenderer?: ({ hidePublish, channels, routing, }: {
|
|
23
26
|
hidePublish?: boolean;
|
|
@@ -27,3 +30,4 @@ export interface InboxProps extends Pick<TemplateEditorProps, "hidePublish" | "t
|
|
|
27
30
|
render?: (props: InboxRenderProps) => React.ReactNode;
|
|
28
31
|
}
|
|
29
32
|
export declare const Inbox: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<InboxProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
33
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { InboxRenderProps } from "./Inbox";
|
|
2
2
|
export interface InboxEditorProps extends InboxRenderProps {
|
|
3
3
|
}
|
|
4
|
-
export declare const InboxEditor: ({ content, extensions, editable, autofocus, onUpdate, }: InboxEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const InboxEditor: ({ content, extensions, editable, autofocus, onUpdate, }: InboxEditorProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -5,9 +5,11 @@ import type { ChannelType } from "@/store";
|
|
|
5
5
|
import type { ElementalNode } from "@/types/elemental.types";
|
|
6
6
|
import type { AnyExtension, Editor } from "@tiptap/react";
|
|
7
7
|
import type { TemplateEditorProps } from "../../TemplateEditor";
|
|
8
|
-
export declare const PushEditorContent: (
|
|
8
|
+
export declare const PushEditorContent: ({ value }: {
|
|
9
|
+
value?: TiptapDoc | null;
|
|
10
|
+
}) => null;
|
|
9
11
|
export interface PushRenderProps {
|
|
10
|
-
content: TiptapDoc;
|
|
12
|
+
content: TiptapDoc | null;
|
|
11
13
|
extensions: AnyExtension[];
|
|
12
14
|
editable: boolean;
|
|
13
15
|
autofocus: boolean;
|
|
@@ -15,7 +17,7 @@ export interface PushRenderProps {
|
|
|
15
17
|
editor: Editor;
|
|
16
18
|
}) => void;
|
|
17
19
|
}
|
|
18
|
-
export interface PushProps extends Pick<TemplateEditorProps, "hidePublish" | "theme" | "variables" | "channels" | "routing"> {
|
|
20
|
+
export interface PushProps extends Pick<TemplateEditorProps, "hidePublish" | "theme" | "variables" | "channels" | "routing" | "value"> {
|
|
19
21
|
readOnly?: boolean;
|
|
20
22
|
headerRenderer?: ({ hidePublish, channels, routing, }: {
|
|
21
23
|
hidePublish?: boolean;
|
|
@@ -6,9 +6,11 @@ import type { MessageRouting } from "../../../Providers/store";
|
|
|
6
6
|
import type { ChannelType } from "@/store";
|
|
7
7
|
import type { TemplateEditorProps } from "../../TemplateEditor";
|
|
8
8
|
export declare const defaultSMSContent: ElementalNode[];
|
|
9
|
-
export declare const SMSEditorContent: (
|
|
9
|
+
export declare const SMSEditorContent: ({ value }: {
|
|
10
|
+
value?: TiptapDoc | null;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export interface SMSRenderProps {
|
|
11
|
-
content: TiptapDoc;
|
|
13
|
+
content: TiptapDoc | null;
|
|
12
14
|
extensions: AnyExtension[];
|
|
13
15
|
editable: boolean;
|
|
14
16
|
autofocus: boolean;
|
|
@@ -16,7 +18,7 @@ export interface SMSRenderProps {
|
|
|
16
18
|
editor: Editor;
|
|
17
19
|
}) => void;
|
|
18
20
|
}
|
|
19
|
-
export interface SMSProps extends Pick<TemplateEditorProps, "hidePublish" | "theme" | "variables" | "channels" | "routing"> {
|
|
21
|
+
export interface SMSProps extends Pick<TemplateEditorProps, "hidePublish" | "theme" | "variables" | "channels" | "routing" | "value"> {
|
|
20
22
|
readOnly?: boolean;
|
|
21
23
|
headerRenderer?: ({ hidePublish, channels, routing, }: {
|
|
22
24
|
hidePublish?: boolean;
|
|
@@ -5,7 +5,7 @@ import { type MessageRouting } from "../Providers/store";
|
|
|
5
5
|
import type { Theme } from "../ui-kit/ThemeProvider/ThemeProvider.types";
|
|
6
6
|
export interface TemplateEditorProps {
|
|
7
7
|
theme?: Theme | string;
|
|
8
|
-
value?: ElementalContent;
|
|
8
|
+
value?: ElementalContent | null;
|
|
9
9
|
onChange?: (value: ElementalContent) => void;
|
|
10
10
|
variables?: Record<string, unknown>;
|
|
11
11
|
hidePublish?: boolean;
|
|
@@ -13,6 +13,7 @@ export declare const SMSChannel: import("react").MemoExoticComponent<import("rea
|
|
|
13
13
|
export declare const PushChannel: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Channels").PushProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
14
14
|
export declare const InboxChannel: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Channels").InboxProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
15
15
|
export { EmailEditorContainer, EmailEditorMain, type EmailEditorProps, type InboxEditorProps, type PushEditorProps, type SMSEditorProps, } from "./Channels";
|
|
16
|
+
export type { ElementalContent } from "@/types";
|
|
16
17
|
export { ChannelRootContainer, EditorSidebar } from "./Layout";
|
|
17
18
|
export { InboxEditor, PushEditor, SMSEditor } from "./Channels";
|
|
18
19
|
export { useAutoSave } from "@/hooks/useAutoSave";
|