@trycourier/react-designer 0.0.0-canary-20251111195505 → 0.0.0-canary-20251113161110

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.
@@ -931,8 +931,8 @@ body {
931
931
  .courier-left-\[-12px\] {
932
932
  left: -12px;
933
933
  }
934
- .courier-left-\[-20px\] {
935
- left: -20px;
934
+ .courier-left-\[-8px\] {
935
+ left: -8px;
936
936
  }
937
937
  .courier-left-\[50\%\] {
938
938
  left: 50%;
@@ -1090,9 +1090,15 @@ body {
1090
1090
  .courier-ml-2 {
1091
1091
  margin-left: 0.5rem;
1092
1092
  }
1093
+ .courier-ml-4 {
1094
+ margin-left: 1rem;
1095
+ }
1093
1096
  .courier-ml-auto {
1094
1097
  margin-left: auto;
1095
1098
  }
1099
+ .courier-mr-10 {
1100
+ margin-right: 2.5rem;
1101
+ }
1096
1102
  .courier-mr-14 {
1097
1103
  margin-right: 3.5rem;
1098
1104
  }
@@ -2043,9 +2049,15 @@ body {
2043
2049
  .courier-pb-6 {
2044
2050
  padding-bottom: 1.5rem;
2045
2051
  }
2052
+ .courier-pl-0 {
2053
+ padding-left: 0px;
2054
+ }
2046
2055
  .courier-pl-1 {
2047
2056
  padding-left: 0.25rem;
2048
2057
  }
2058
+ .courier-pl-10 {
2059
+ padding-left: 2.5rem;
2060
+ }
2049
2061
  .courier-pl-2 {
2050
2062
  padding-left: 0.5rem;
2051
2063
  }
@@ -2851,7 +2863,7 @@ body {
2851
2863
  padding-top: 2.5rem;
2852
2864
  padding-bottom: 2.5rem;
2853
2865
  padding-right: 2.5rem;
2854
- padding-left: 1rem;
2866
+ padding-left: 0px;
2855
2867
  caret-color: #000;
2856
2868
  outline-width: 0px;
2857
2869
  }
@@ -2861,7 +2873,7 @@ body {
2861
2873
  @media (min-width: 1024px) {
2862
2874
 
2863
2875
  .ProseMirror {
2864
- padding-left: 0.5rem;
2876
+ padding-left: 0px;
2865
2877
  padding-right: 2.5rem;
2866
2878
  }
2867
2879
  }
@@ -3051,6 +3063,9 @@ body {
3051
3063
 
3052
3064
  /* Global rule: Show drag handles for elements inside columns on hover */
3053
3065
  }
3066
+ /* .draggable-item {
3067
+ @apply courier-mr-10 courier-ml-4 lg:courier-ml-2 lg:courier-mr-10 courier-w-full;
3068
+ } */
3054
3069
  .ProseMirror > .react-renderer.node-imageBlock [data-cypress="draggable-handle"], .ProseMirror > .react-renderer.node-button [data-cypress="draggable-handle"], .ProseMirror > .react-renderer.node-divider [data-cypress="draggable-handle"], .ProseMirror > .react-renderer.node-paragraph [data-cypress="draggable-handle"], .ProseMirror > .react-renderer.node-heading [data-cypress="draggable-handle"], .ProseMirror > .react-renderer.node-blockquote [data-cypress="draggable-handle"], .ProseMirror > .react-renderer.node-column [data-cypress="draggable-handle"], .ProseMirror > .react-renderer.node-customCode [data-cypress="draggable-handle"] {
3055
3070
  visibility: hidden;
3056
3071
  }
@@ -4462,8 +4477,16 @@ body {
4462
4477
  }
4463
4478
  @media (min-width: 1024px) {
4464
4479
 
4465
- .lg\:courier-pl-2 {
4466
- padding-left: 0.5rem;
4480
+ .lg\:courier-ml-2 {
4481
+ margin-left: 0.5rem;
4482
+ }
4483
+
4484
+ .lg\:courier-mr-10 {
4485
+ margin-right: 2.5rem;
4486
+ }
4487
+
4488
+ .lg\:courier-pl-0 {
4489
+ padding-left: 0px;
4467
4490
  }
4468
4491
 
4469
4492
  .lg\:courier-pr-10 {
@@ -0,0 +1,18 @@
1
+ /**
2
+ * React 19 compatibility wrapper for DnD Kit refs
3
+ *
4
+ * React 19 made refs regular props instead of special properties,
5
+ * which breaks DnD Kit's setNodeRef callback pattern.
6
+ * This hook converts DnD Kit's setNodeRef into a React 19-compatible callback ref.
7
+ *
8
+ * @param setNodeRef - The setNodeRef function from useSortable or useDroppable
9
+ * @returns A callback ref compatible with React 19
10
+ *
11
+ * @example
12
+ * ```tsx
13
+ * const { setNodeRef } = useSortable({ id: 'item-1' });
14
+ * const ref = useDndRef(setNodeRef);
15
+ * return <div ref={ref}>Content</div>;
16
+ * ```
17
+ */
18
+ export declare function useDndRef<T extends HTMLElement>(setNodeRef: ((node: T | null) => void) | undefined): (element: T | null) => void;
@@ -17,6 +17,7 @@ export declare const InboxChannel: import("react").MemoExoticComponent<import("r
17
17
  export declare const MSTeamsChannel: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Channels").MSTeamsProps & import("react").RefAttributes<HTMLDivElement>>>;
18
18
  export declare const SlackChannel: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Channels").SlackProps & import("react").RefAttributes<HTMLDivElement>>>;
19
19
  export { EmailEditorContainer, EmailEditorMain, type EmailEditorProps, type InboxEditorProps, type MSTeamsEditorProps, type PushEditorProps, type SlackEditorProps, type SMSEditorProps, } from "./Channels";
20
+ export { CHANNELS } from "@/channels";
20
21
  export type { ChannelType } from "@/store";
21
22
  export type { ElementalContent } from "@/types";
22
23
  export { ChannelRootContainer, EditorSidebar } from "./Layout";
@@ -0,0 +1,3 @@
1
+ import type { IconProps } from "./Icon";
2
+ export declare const EmailIcon: ({ color, width, height, viewBox, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default EmailIcon;
@@ -1,3 +1,3 @@
1
1
  import type { IconProps } from "./Icon";
2
- export declare const MSTeamsIcon: ({ color, width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const MSTeamsIcon: ({ color, width, height, viewBox, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default MSTeamsIcon;
@@ -1,3 +1,3 @@
1
1
  import type { IconProps } from "./Icon";
2
- export declare const PushIcon: ({ color, width, height, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const PushIcon: ({ color, width, height, viewBox, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default PushIcon;
@@ -13,6 +13,7 @@ export { DesktopIcon } from "./DesktopIcon";
13
13
  export { DistributeIcon } from "./DistributeIcon";
14
14
  export { DownIcon } from "./DownIcon";
15
15
  export { DuplicateIcon } from "./DuplicateIcon";
16
+ export { EmailIcon } from "./EmailIcon";
16
17
  export { ExpandIcon } from "./ExpandIcon";
17
18
  export { FacebookIcon } from "./FacebookIcon";
18
19
  export { FontSizeIcon } from "./FontSizeIcon";