@trycourier/react-designer 0.0.0-canary-20251008141850 → 0.0.0-canary-20251010141238

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.
@@ -1226,9 +1226,6 @@ body {
1226
1226
  .\!courier-w-fit {
1227
1227
  width: fit-content !important;
1228
1228
  }
1229
- .courier-w-0 {
1230
- width: 0px;
1231
- }
1232
1229
  .courier-w-0\.5 {
1233
1230
  width: 0.125rem;
1234
1231
  }
@@ -1283,6 +1280,9 @@ body {
1283
1280
  .courier-w-\[360px\] {
1284
1281
  width: 360px;
1285
1282
  }
1283
+ .courier-w-\[80vw\] {
1284
+ width: 80vw;
1285
+ }
1286
1286
  .courier-w-auto {
1287
1287
  width: auto;
1288
1288
  }
@@ -1365,10 +1365,6 @@ body {
1365
1365
  --tw-translate-x: -50%;
1366
1366
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1367
1367
  }
1368
- .courier-translate-x-full {
1369
- --tw-translate-x: 100%;
1370
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
1371
- }
1372
1368
  .courier-translate-y-\[-50\%\] {
1373
1369
  --tw-translate-y: -50%;
1374
1370
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
@@ -2128,9 +2124,6 @@ body {
2128
2124
  .courier-caret-black {
2129
2125
  caret-color: #000;
2130
2126
  }
2131
- .courier-opacity-0 {
2132
- opacity: 0;
2133
- }
2134
2127
  .courier-opacity-100 {
2135
2128
  opacity: 1;
2136
2129
  }
@@ -4,6 +4,7 @@ import type { TiptapDoc } from "@/lib/utils";
4
4
  import type { ChannelType } from "@/store";
5
5
  import type { ElementalNode } from "@/types/elemental.types";
6
6
  import type { AnyExtension, Editor } from "@tiptap/react";
7
+ import type { HTMLAttributes } from "react";
7
8
  import type { TemplateEditorProps } from "../../TemplateEditor";
8
9
  export declare const defaultInboxContent: ElementalNode[];
9
10
  export declare const InboxConfig: TextMenuConfig;
@@ -20,7 +21,7 @@ export interface InboxRenderProps {
20
21
  editor: Editor;
21
22
  }) => void;
22
23
  }
23
- export interface InboxProps extends Pick<TemplateEditorProps, "hidePublish" | "theme" | "variables" | "channels" | "routing" | "value"> {
24
+ export interface InboxProps extends Pick<TemplateEditorProps, "hidePublish" | "theme" | "variables" | "channels" | "routing" | "value">, Omit<HTMLAttributes<HTMLDivElement>, "value" | "onChange"> {
24
25
  readOnly?: boolean;
25
26
  headerRenderer?: ({ hidePublish, channels, routing, }: {
26
27
  hidePublish?: boolean;
@@ -1,4 +1,5 @@
1
1
  import type { InboxRenderProps } from "./Inbox";
2
2
  export interface InboxEditorProps extends InboxRenderProps {
3
+ readOnly?: boolean;
3
4
  }
4
- export declare const InboxEditor: ({ content, extensions, editable, autofocus, onUpdate, }: InboxEditorProps) => import("react/jsx-runtime").JSX.Element | null;
5
+ export declare const InboxEditor: ({ content, extensions, editable, autofocus, onUpdate, readOnly, }: InboxEditorProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -3,6 +3,7 @@ import type { TextMenuConfig } from "@/components/ui/TextMenu/config";
3
3
  import type { TiptapDoc } from "@/lib/utils";
4
4
  import type { ChannelType } from "@/store";
5
5
  import type { AnyExtension, Editor } from "@tiptap/react";
6
+ import type { HTMLAttributes } from "react";
6
7
  import type { TemplateEditorProps } from "../../TemplateEditor";
7
8
  export declare const PushEditorContent: ({ value }: {
8
9
  value?: TiptapDoc | null;
@@ -16,7 +17,7 @@ export interface PushRenderProps {
16
17
  editor: Editor;
17
18
  }) => void;
18
19
  }
19
- export interface PushProps extends Pick<TemplateEditorProps, "hidePublish" | "theme" | "variables" | "channels" | "routing" | "value"> {
20
+ export interface PushProps extends Pick<TemplateEditorProps, "hidePublish" | "theme" | "variables" | "channels" | "routing" | "value">, Omit<HTMLAttributes<HTMLDivElement>, "value" | "onChange"> {
20
21
  readOnly?: boolean;
21
22
  headerRenderer?: ({ hidePublish, channels, routing, }: {
22
23
  hidePublish?: boolean;
@@ -1,5 +1,6 @@
1
1
  import type { HTMLAttributes } from "react";
2
2
  import { type PushRenderProps } from "./Push";
3
3
  export interface PushEditorProps extends PushRenderProps, Omit<HTMLAttributes<HTMLDivElement>, "content"> {
4
+ readOnly?: boolean;
4
5
  }
5
- export declare const PushEditor: ({ content, extensions, editable, autofocus, onUpdate, className, }: PushEditorProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const PushEditor: ({ content, extensions, editable, autofocus, onUpdate, className, readOnly, }: PushEditorProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import type { TextMenuConfig } from "@/components/ui/TextMenu/config";
2
2
  import type { TiptapDoc } from "@/lib/utils";
3
3
  import type { AnyExtension, Editor } from "@tiptap/react";
4
+ import type { HTMLAttributes } from "react";
4
5
  import type { MessageRouting } from "../../../Providers/store";
5
6
  import type { ChannelType } from "@/store";
6
7
  import type { TemplateEditorProps } from "../../TemplateEditor";
@@ -21,7 +22,7 @@ export interface SMSRenderProps {
21
22
  editor: Editor;
22
23
  }) => void;
23
24
  }
24
- export interface SMSProps extends Pick<TemplateEditorProps, "hidePublish" | "theme" | "variables" | "channels" | "routing" | "value" | "dataMode"> {
25
+ export interface SMSProps extends Pick<TemplateEditorProps, "hidePublish" | "theme" | "variables" | "channels" | "routing" | "value" | "dataMode">, Omit<HTMLAttributes<HTMLDivElement>, "value" | "onChange"> {
25
26
  readOnly?: boolean;
26
27
  headerRenderer?: ({ hidePublish, channels, routing, }: {
27
28
  hidePublish?: boolean;
@@ -1,5 +1,6 @@
1
1
  import type { HTMLAttributes } from "react";
2
2
  import type { SMSRenderProps } from "./SMS";
3
3
  export interface SMSEditorProps extends SMSRenderProps, Omit<HTMLAttributes<HTMLDivElement>, "content"> {
4
+ readOnly?: boolean;
4
5
  }
5
- export declare const SMSEditor: ({ content, extensions, editable, autofocus, onUpdate, className, }: SMSEditorProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const SMSEditor: ({ content, extensions, editable, autofocus, onUpdate, className, readOnly, }: SMSEditorProps) => import("react/jsx-runtime").JSX.Element;
@@ -5,5 +5,6 @@ export declare const ChannelRootContainer: import("react").ForwardRefExoticCompo
5
5
  } & import("react").RefAttributes<HTMLDivElement>>;
6
6
  export declare const EditorSidebar: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
7
7
  previewMode: "desktop" | "mobile" | undefined;
8
- isExpanded?: boolean;
8
+ skipExpanded?: boolean;
9
+ width?: string;
9
10
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,7 @@
1
1
  export { BrandFooter } from "@/components/BrandEditor/Editor/BrandFooter";
2
2
  export { PreviewPanel } from "@/components/ui/PreviewPanel";
3
3
  export { TextMenu } from "@/components/ui/TextMenu";
4
- export { cn } from "@/lib/utils";
4
+ export { cn, convertElementalToTiptap, convertTiptapToElemental } from "@/lib/utils";
5
5
  export { SortableContext } from "@dnd-kit/sortable";
6
6
  export { useChannels } from "./Channels";
7
7
  export { default as EmailEditor } from "./Channels/Email/EmailEditor";
@@ -4,6 +4,7 @@ interface ThemeProviderProps {
4
4
  children: ReactNode;
5
5
  theme?: Theme | string;
6
6
  dataMode?: "light" | "dark";
7
+ className?: string;
7
8
  }
8
9
  export declare const ThemeProvider: import("react").ForwardRefExoticComponent<ThemeProviderProps & import("react").RefAttributes<HTMLDivElement>>;
9
10
  export declare const useTheme: () => Theme;