@trycourier/react-designer 0.0.0-canary-20250702160803 → 0.0.0-canary-20250708143845
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.css +1 -1
- package/dist/cjs/index.css.map +2 -2
- package/dist/cjs/index.js +43 -42
- package/dist/cjs/index.js.map +4 -4
- package/dist/cjs/styles.css +4 -1
- package/dist/components/Providers/store.d.ts +1 -0
- package/dist/components/TemplateEditor/Channels/Email/Email.d.ts +48 -0
- package/dist/components/TemplateEditor/Channels/Email/Email.test.d.ts +1 -0
- package/dist/components/TemplateEditor/Channels/Email/EmailEditor.test.d.ts +1 -0
- package/dist/components/TemplateEditor/Channels/Email/EmailLayout.d.ts +9 -0
- package/dist/components/TemplateEditor/Channels/Email/SideBar/SideBar.d.ts +3 -3
- package/dist/components/TemplateEditor/Channels/Email/SideBar/SideBarItemDetails/SideBarItemDetails.d.ts +1 -2
- package/dist/components/TemplateEditor/Channels/Email/SideBar/index.d.ts +1 -0
- package/dist/components/TemplateEditor/Channels/Email/index.d.ts +1 -0
- package/dist/components/TemplateEditor/Channels/Inbox/Inbox.d.ts +22 -0
- package/dist/components/TemplateEditor/Channels/Inbox/Inbox.test.d.ts +1 -0
- package/dist/components/TemplateEditor/Channels/Inbox/InboxEditor.d.ts +4 -0
- package/dist/components/TemplateEditor/Channels/Inbox/InboxEditor.test.d.ts +1 -0
- package/dist/components/TemplateEditor/Channels/Inbox/InboxLayout.d.ts +4 -0
- package/dist/components/TemplateEditor/Channels/Inbox/index.d.ts +2 -0
- package/dist/components/TemplateEditor/Channels/Push/Push.d.ts +22 -0
- package/dist/components/TemplateEditor/Channels/Push/Push.test.d.ts +1 -0
- package/dist/components/TemplateEditor/Channels/Push/PushEditor.d.ts +6 -0
- package/dist/components/TemplateEditor/Channels/Push/PushEditor.test.d.ts +1 -0
- package/dist/components/TemplateEditor/Channels/Push/PushLayout.d.ts +4 -0
- package/dist/components/TemplateEditor/Channels/Push/index.d.ts +2 -0
- package/dist/components/TemplateEditor/Channels/SMS/SMS.d.ts +22 -0
- package/dist/components/TemplateEditor/Channels/SMS/SMS.test.d.ts +1 -0
- package/dist/components/TemplateEditor/Channels/SMS/SMSEditor.d.ts +5 -0
- package/dist/components/TemplateEditor/Channels/SMS/SMSEditor.test.d.ts +1 -0
- package/dist/components/TemplateEditor/Channels/SMS/SMSLayout.d.ts +4 -0
- package/dist/components/TemplateEditor/Channels/SMS/index.d.ts +2 -0
- package/dist/components/TemplateEditor/Channels/index.d.ts +1 -0
- package/dist/components/TemplateEditor/Channels/useChannels.d.ts +13 -0
- package/dist/components/TemplateEditor/Channels/useChannels.test.d.ts +1 -0
- package/dist/components/TemplateEditor/Layout/Layout.d.ts +7 -0
- package/dist/components/TemplateEditor/Layout/index.d.ts +1 -0
- package/dist/components/TemplateEditor/index.d.ts +16 -0
- package/dist/components/TemplateEditor/store.d.ts +3 -0
- package/dist/components/utils/index.d.ts +1 -0
- package/dist/components/utils/safeGetPos.d.ts +13 -0
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.css.map +2 -2
- package/dist/esm/index.js +43 -42
- package/dist/esm/index.js.map +4 -4
- package/dist/esm/styles.css +4 -1
- package/dist/lib/utils/updateElemental/updateElemental.d.ts +0 -5
- package/dist/lib/utils/updateElemental/updateElemental.test.d.ts +1 -0
- package/dist/store.d.ts +2 -2
- package/dist/styles.css +4 -1
- package/dist/types/elemental.schema.d.ts +3 -3
- package/dist/types/elemental.types.d.ts +0 -1
- package/package.json +1 -1
package/dist/esm/styles.css
CHANGED
|
@@ -1467,6 +1467,9 @@ body {
|
|
|
1467
1467
|
.courier-self-center {
|
|
1468
1468
|
align-self: center;
|
|
1469
1469
|
}
|
|
1470
|
+
.courier-self-stretch {
|
|
1471
|
+
align-self: stretch;
|
|
1472
|
+
}
|
|
1470
1473
|
.courier-overflow-auto {
|
|
1471
1474
|
overflow: auto;
|
|
1472
1475
|
}
|
|
@@ -2211,7 +2214,7 @@ body {
|
|
|
2211
2214
|
.touch-transparent {
|
|
2212
2215
|
-webkit-tap-highlight-color: transparent;
|
|
2213
2216
|
}
|
|
2214
|
-
.courier-editor-preview-mode
|
|
2217
|
+
.courier-editor-preview-mode.courier-main-content {
|
|
2215
2218
|
flex-grow: 1;
|
|
2216
2219
|
width: 100%;
|
|
2217
2220
|
}
|
|
@@ -3,14 +3,9 @@ interface ElementalChannelSpecificProps {
|
|
|
3
3
|
channel?: string;
|
|
4
4
|
[key: string]: any;
|
|
5
5
|
}
|
|
6
|
-
interface ElementalMetaSpecificProps {
|
|
7
|
-
title?: string;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
6
|
export interface UpdateElementalOptions {
|
|
11
7
|
elements: ElementalNode[];
|
|
12
8
|
channel?: string | ElementalChannelSpecificProps;
|
|
13
|
-
meta?: ElementalMetaSpecificProps;
|
|
14
9
|
}
|
|
15
10
|
export declare function updateElemental(doc: ElementalContent | null | undefined, updates: UpdateElementalOptions): ElementalContent;
|
|
16
11
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
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<"brand" | "template"> & {
|
|
6
|
+
init: "brand" | "template";
|
|
7
7
|
};
|
|
8
8
|
export * from "./channels";
|
package/dist/styles.css
CHANGED
|
@@ -1467,6 +1467,9 @@ body {
|
|
|
1467
1467
|
.courier-self-center {
|
|
1468
1468
|
align-self: center;
|
|
1469
1469
|
}
|
|
1470
|
+
.courier-self-stretch {
|
|
1471
|
+
align-self: stretch;
|
|
1472
|
+
}
|
|
1470
1473
|
.courier-overflow-auto {
|
|
1471
1474
|
overflow: auto;
|
|
1472
1475
|
}
|
|
@@ -2211,7 +2214,7 @@ body {
|
|
|
2211
2214
|
.touch-transparent {
|
|
2212
2215
|
-webkit-tap-highlight-color: transparent;
|
|
2213
2216
|
}
|
|
2214
|
-
.courier-editor-preview-mode
|
|
2217
|
+
.courier-editor-preview-mode.courier-main-content {
|
|
2215
2218
|
flex-grow: 1;
|
|
2216
2219
|
width: 100%;
|
|
2217
2220
|
}
|
|
@@ -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
|
-
elements: ElementalNode[];
|
|
9
8
|
version: "2022-01-01";
|
|
10
|
-
}, {
|
|
11
9
|
elements: ElementalNode[];
|
|
10
|
+
}, {
|
|
12
11
|
version: "2022-01-01";
|
|
12
|
+
elements: ElementalNode[];
|
|
13
13
|
}>;
|
|
14
14
|
export declare const validateElemental: (json: unknown) => {
|
|
15
15
|
success: boolean;
|
|
16
16
|
data: {
|
|
17
|
-
elements: ElementalNode[];
|
|
18
17
|
version: "2022-01-01";
|
|
18
|
+
elements: ElementalNode[];
|
|
19
19
|
};
|
|
20
20
|
errors?: undefined;
|
|
21
21
|
} | {
|
package/package.json
CHANGED