@trycourier/react-designer 0.0.0-canary-20250626144519 → 0.0.0-canary-20250702160803
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/README.md +2 -2
- package/dist/cjs/index.css +1 -1
- package/dist/cjs/index.css.map +2 -2
- package/dist/cjs/index.js +42 -42
- package/dist/cjs/index.js.map +4 -4
- package/dist/cjs/styles.css +1 -4
- package/dist/components/TemplateEditor/Channels/Email/Email.d.ts +0 -48
- package/dist/components/TemplateEditor/Channels/Email/SideBar/SideBar.d.ts +3 -3
- package/dist/components/TemplateEditor/Channels/Email/SideBar/SideBarItemDetails/SideBarItemDetails.d.ts +2 -1
- package/dist/components/TemplateEditor/Channels/Email/SideBar/index.d.ts +0 -1
- package/dist/components/TemplateEditor/Channels/Email/index.d.ts +0 -1
- package/dist/components/TemplateEditor/Channels/Inbox/Inbox.d.ts +0 -22
- package/dist/components/TemplateEditor/Channels/Inbox/index.d.ts +0 -2
- package/dist/components/TemplateEditor/Channels/Push/Push.d.ts +0 -22
- package/dist/components/TemplateEditor/Channels/Push/index.d.ts +0 -2
- package/dist/components/TemplateEditor/Channels/SMS/SMS.d.ts +0 -22
- package/dist/components/TemplateEditor/Channels/SMS/index.d.ts +0 -2
- package/dist/components/TemplateEditor/Channels/index.d.ts +0 -1
- package/dist/components/TemplateEditor/index.d.ts +0 -16
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.css.map +2 -2
- package/dist/esm/index.js +42 -42
- package/dist/esm/index.js.map +4 -4
- package/dist/esm/styles.css +1 -4
- package/dist/store.d.ts +2 -2
- package/dist/styles.css +1 -4
- package/dist/types/elemental.schema.d.ts +3 -3
- package/package.json +3 -3
- package/dist/components/TemplateEditor/Channels/Email/EmailLayout.d.ts +0 -9
- package/dist/components/TemplateEditor/Channels/Inbox/InboxEditor.d.ts +0 -4
- package/dist/components/TemplateEditor/Channels/Inbox/InboxLayout.d.ts +0 -4
- package/dist/components/TemplateEditor/Channels/Push/PushEditor.d.ts +0 -6
- package/dist/components/TemplateEditor/Channels/Push/PushLayout.d.ts +0 -4
- package/dist/components/TemplateEditor/Channels/SMS/SMSEditor.d.ts +0 -5
- package/dist/components/TemplateEditor/Channels/SMS/SMSLayout.d.ts +0 -4
- package/dist/components/TemplateEditor/Channels/useChannels.d.ts +0 -13
- package/dist/components/TemplateEditor/Layout/Layout.d.ts +0 -7
- package/dist/components/TemplateEditor/Layout/index.d.ts +0 -1
package/dist/esm/styles.css
CHANGED
|
@@ -1195,9 +1195,6 @@ body {
|
|
|
1195
1195
|
.courier-max-h-\[88px\] {
|
|
1196
1196
|
max-height: 88px;
|
|
1197
1197
|
}
|
|
1198
|
-
.courier-min-h-12 {
|
|
1199
|
-
min-height: 3rem;
|
|
1200
|
-
}
|
|
1201
1198
|
.courier-min-h-\[1\.5rem\] {
|
|
1202
1199
|
min-height: 1.5rem;
|
|
1203
1200
|
}
|
|
@@ -2214,7 +2211,7 @@ body {
|
|
|
2214
2211
|
.touch-transparent {
|
|
2215
2212
|
-webkit-tap-highlight-color: transparent;
|
|
2216
2213
|
}
|
|
2217
|
-
.courier-editor-preview-mode
|
|
2214
|
+
.courier-editor-preview-mode>div:first-child {
|
|
2218
2215
|
flex-grow: 1;
|
|
2219
2216
|
width: 100%;
|
|
2220
2217
|
}
|
package/dist/store.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ChannelType } from "./channels";
|
|
|
2
2
|
export declare const channelAtom: import("jotai").PrimitiveAtom<ChannelType> & {
|
|
3
3
|
init: ChannelType;
|
|
4
4
|
};
|
|
5
|
-
export declare const pageAtom: import("jotai").PrimitiveAtom<"
|
|
6
|
-
init: "
|
|
5
|
+
export declare const pageAtom: import("jotai").PrimitiveAtom<"template" | "brand"> & {
|
|
6
|
+
init: "template" | "brand";
|
|
7
7
|
};
|
|
8
8
|
export * from "./channels";
|
package/dist/styles.css
CHANGED
|
@@ -1195,9 +1195,6 @@ body {
|
|
|
1195
1195
|
.courier-max-h-\[88px\] {
|
|
1196
1196
|
max-height: 88px;
|
|
1197
1197
|
}
|
|
1198
|
-
.courier-min-h-12 {
|
|
1199
|
-
min-height: 3rem;
|
|
1200
|
-
}
|
|
1201
1198
|
.courier-min-h-\[1\.5rem\] {
|
|
1202
1199
|
min-height: 1.5rem;
|
|
1203
1200
|
}
|
|
@@ -2214,7 +2211,7 @@ body {
|
|
|
2214
2211
|
.touch-transparent {
|
|
2215
2212
|
-webkit-tap-highlight-color: transparent;
|
|
2216
2213
|
}
|
|
2217
|
-
.courier-editor-preview-mode
|
|
2214
|
+
.courier-editor-preview-mode>div:first-child {
|
|
2218
2215
|
flex-grow: 1;
|
|
2219
2216
|
width: 100%;
|
|
2220
2217
|
}
|
|
@@ -5,17 +5,17 @@ export declare const ElementalSchema: z.ZodObject<{
|
|
|
5
5
|
version: z.ZodLiteral<"2022-01-01">;
|
|
6
6
|
elements: z.ZodArray<z.ZodType<ElementalNode, z.ZodTypeDef, ElementalNode>, "many">;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
version: "2022-01-01";
|
|
9
8
|
elements: ElementalNode[];
|
|
10
|
-
}, {
|
|
11
9
|
version: "2022-01-01";
|
|
10
|
+
}, {
|
|
12
11
|
elements: ElementalNode[];
|
|
12
|
+
version: "2022-01-01";
|
|
13
13
|
}>;
|
|
14
14
|
export declare const validateElemental: (json: unknown) => {
|
|
15
15
|
success: boolean;
|
|
16
16
|
data: {
|
|
17
|
-
version: "2022-01-01";
|
|
18
17
|
elements: ElementalNode[];
|
|
18
|
+
version: "2022-01-01";
|
|
19
19
|
};
|
|
20
20
|
errors?: undefined;
|
|
21
21
|
} | {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trycourier/react-designer",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20250702160803",
|
|
4
4
|
"description": "React-based rich text designer component",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -128,10 +128,10 @@
|
|
|
128
128
|
],
|
|
129
129
|
"repository": {
|
|
130
130
|
"type": "git",
|
|
131
|
-
"url": "https://github.com/trycourier/
|
|
131
|
+
"url": "https://github.com/trycourier/courier-designer.git"
|
|
132
132
|
},
|
|
133
133
|
"bugs": {
|
|
134
|
-
"url": "https://github.com/trycourier/
|
|
134
|
+
"url": "https://github.com/trycourier/courier-designer/issues"
|
|
135
135
|
},
|
|
136
136
|
"scripts": {
|
|
137
137
|
"build": "tsc && node build.js",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type HTMLAttributes } from "react";
|
|
2
|
-
import { type EmailProps } from "./Email";
|
|
3
|
-
export declare const EmailEditorContainer: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
-
export declare const EmailEditorMain: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
5
|
-
previewMode: "desktop" | "mobile" | undefined;
|
|
6
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export interface EmailLayoutProps extends EmailProps {
|
|
8
|
-
}
|
|
9
|
-
export declare const EmailLayout: ({ variables, theme, isLoading, hidePublish, channels, brandEditor, routing, }: EmailLayoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes } from "react";
|
|
2
|
-
import { type PushRenderProps } from "./Push";
|
|
3
|
-
interface PushEditorProps extends PushRenderProps, Omit<HTMLAttributes<HTMLDivElement>, "content"> {
|
|
4
|
-
}
|
|
5
|
-
export declare const PushEditor: ({ content, extensions, editable, autofocus, onUpdate, className, }: PushEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes } from "react";
|
|
2
|
-
import type { SMSRenderProps } from "./SMS";
|
|
3
|
-
export interface SMSEditorProps extends SMSRenderProps, Omit<HTMLAttributes<HTMLDivElement>, "content"> {
|
|
4
|
-
}
|
|
5
|
-
export declare const SMSEditor: ({ content, extensions, editable, autofocus, onUpdate, className, }: SMSEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type Channel, type ChannelType } from "@/store";
|
|
2
|
-
import type { TemplateEditorProps } from "../TemplateEditor";
|
|
3
|
-
export declare const useChannels: ({ channels, routing, }: {
|
|
4
|
-
channels?: ChannelType[];
|
|
5
|
-
routing?: TemplateEditorProps["routing"];
|
|
6
|
-
}) => {
|
|
7
|
-
enabledChannels: Channel[];
|
|
8
|
-
disabledChannels: Channel[];
|
|
9
|
-
channel: ChannelType;
|
|
10
|
-
setChannel: (channelType: ChannelType) => void;
|
|
11
|
-
addChannel: (channelType: ChannelType) => void;
|
|
12
|
-
removeChannel: (channelToRemove: ChannelType) => Promise<void>;
|
|
13
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type HTMLAttributes } from "react";
|
|
2
|
-
export declare const ChannelRootContainer: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
3
|
-
previewMode: "desktop" | "mobile" | undefined;
|
|
4
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
-
export declare const EditorSidebar: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
6
|
-
previewMode: "desktop" | "mobile" | undefined;
|
|
7
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Layout";
|