@trycourier/react-designer 0.0.0-canary-20251020152518 → 0.0.0-canary-20251022150014

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.
@@ -1,2 +1,2 @@
1
1
  export { getTitle, getTitleFromContent, getTitleForChannel } from "./getTitle";
2
- export { getSubjectStorageFormat, createTitleUpdate, extractCurrentTitle, } from "./preserveStorageFormat";
2
+ export { getSubjectStorageFormat, createTitleUpdate, extractCurrentTitle, cleanSMSElements, cleanPushElements, cleanInboxElements, } from "./preserveStorageFormat";
@@ -3,6 +3,14 @@ import type { ElementalContent, ElementalNode } from "@/types/elemental.types";
3
3
  * Cleans an Inbox element by removing styling properties from text and action elements.
4
4
  */
5
5
  export declare function cleanInboxElements(elements: ElementalNode[]): ElementalNode[];
6
+ /**
7
+ * Cleans Push elements by removing styling properties from text elements.
8
+ */
9
+ export declare function cleanPushElements(elements: ElementalNode[]): ElementalNode[];
10
+ /**
11
+ * Cleans SMS elements by removing styling properties from text elements.
12
+ */
13
+ export declare function cleanSMSElements(elements: ElementalNode[]): ElementalNode[];
6
14
  /**
7
15
  * Cleans the entire template content by applying Inbox cleaning logic to all Inbox channels.
8
16
  */
@@ -14,7 +22,7 @@ export declare function cleanTemplateContent(content: ElementalContent): Element
14
22
  export declare function getSubjectStorageFormat(content: ElementalContent | null | undefined, channelName: string): "raw" | "meta" | "none";
15
23
  /**
16
24
  * Creates the appropriate subject/title storage structure based on the detected format.
17
- * For Push and Inbox channels, extracts the first text element as title.
25
+ * For Push, SMS, and Inbox channels, uses elements array.
18
26
  */
19
27
  export declare function createTitleUpdate(originalContent: ElementalContent | null | undefined, channelName: string, newTitle: string, elementalNodes: ElementalNode[]): {
20
28
  elements: ElementalNode[];
@@ -139,8 +139,8 @@ export interface ElementalActionNode extends IsElementalNode {
139
139
  }
140
140
  export interface ElementalDividerNode extends IsElementalNode {
141
141
  type: "divider";
142
- dividerColor?: string;
143
- borderWidth?: string;
142
+ color?: string;
143
+ width?: string;
144
144
  padding?: string;
145
145
  }
146
146
  export interface ElementalGroupNode extends IsElementalNode {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trycourier/react-designer",
3
- "version": "0.0.0-canary-20251020152518",
3
+ "version": "0.0.0-canary-20251022150014",
4
4
  "description": "React-based rich text designer component",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",