@cymbal/atoms-email-renderer 0.0.2 → 0.2.0

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/index.d.ts CHANGED
@@ -85,7 +85,7 @@ type VerticalAlign = "top" | "middle" | "bottom";
85
85
  type RowHorizontalAlign = "left" | "center" | "right";
86
86
  /**
87
87
  * Positions the atom’s box horizontally within its parent (separate from `textStyles.align`).
88
- * `inherit` follows the nearest ancestor row’s `rowsStyles.horizontalAlign` (fallback `left`).
88
+ * `inherit` follows the nearest ancestor row’s `rowsStyles.contentHorizontalAlign` (fallback `left`).
89
89
  */
90
90
  type LayoutHorizontalAlign = "inherit" | RowHorizontalAlign;
91
91
  interface Padding {
@@ -118,10 +118,12 @@ interface AtomBorder {
118
118
  style: "solid" | "dashed" | "dotted";
119
119
  side: AtomBorderSide;
120
120
  }
121
- /** Integer flex weight (default 100); minimum 1. `max: "none"` means uncapped width. */
121
+ type LayoutWidthType = "percent" | "max" | "content";
122
+ /** `basis` stores percent mode, `max` stores max-width mode, and `type` selects the active sizing mode. */
122
123
  interface LayoutWidth {
123
124
  basis: number;
124
- max: number | "none";
125
+ max: number;
126
+ type: LayoutWidthType;
125
127
  }
126
128
  interface CornerRadius {
127
129
  topLeft: number;
@@ -166,18 +168,19 @@ type AtomTextAlign = "left" | "right" | "center" | "justify";
166
168
  type AtomFontFamily = "Consolas" | "Courier" | "Courier New" | "Lucida Console" | "Arial" | "Arial Black" | "Arial Narrow" | "Calibri" | "Franklin Gothic" | "Helvetica" | "Lucida Grande" | "Open Sans" | "Roboto" | "Tahoma" | "Trebuchet MS" | "Verdana" | "Garamond" | "Georgia" | "Times New Roman";
167
169
  interface RowsStyles {
168
170
  gap: number;
169
- horizontalAlign: RowHorizontalAlign;
171
+ contentHorizontalAlign: RowHorizontalAlign;
170
172
  }
171
173
  /** Main-axis alignment when column children use less than the container width (e.g. max caps). Default center. */
172
174
  interface ColumnsStyles {
173
175
  gap: number;
174
- verticalAlign: VerticalAlign;
175
- horizontalAlign: RowHorizontalAlign;
176
+ verticalGap: number;
177
+ contentVerticalAlign: VerticalAlign;
178
+ contentHorizontalAlign: RowHorizontalAlign;
176
179
  format: "default" | "table";
177
180
  }
178
181
  type ColumnsAtomSource = "horizontal-event" | "column-event";
179
182
  type RowsAtomSource = "event";
180
- type TextAtomSource = "event-list" | "form-disclaimer";
183
+ type TextAtomSource = "event-list" | "form-disclaimer" | "footer" | "view-in-browser";
181
184
  type ButtonAtomSource = "form-submit";
182
185
  type ImageAtomSource = "spotify" | "soundcloud" | "youtube";
183
186
  interface TextAtom {
@@ -208,6 +211,8 @@ interface ImageAtom {
208
211
  source: ImageAtomSource | null;
209
212
  src: string;
210
213
  href: string;
214
+ height: number;
215
+ width: number;
211
216
  layoutStyles: NullableLayoutStyles | null;
212
217
  }
213
218
  interface DividerAtom {
@@ -258,6 +263,7 @@ interface ContestAtom {
258
263
  atomKey: number;
259
264
  id: number | null;
260
265
  hasData: boolean;
266
+ legacyContestLeafLegoComponentId?: number | null;
261
267
  type: "contest";
262
268
  contestType: AtomContestType;
263
269
  entriesPerSubmission: number;
@@ -285,6 +291,8 @@ interface QuestionAtom {
285
291
  interface FormAtom {
286
292
  atomKey: number;
287
293
  id: number | null;
294
+ /** Original Lego form component ID, kept only for legacy embedded /pid widgets that pass form_id. */
295
+ legoFormId: number | null;
288
296
  hasData: boolean;
289
297
  type: "form";
290
298
  name: string;
@@ -297,7 +305,6 @@ interface FormAtom {
297
305
  lists: AtomFormMetadataItem[];
298
306
  children: Atom[];
299
307
  successChildren: Atom[] | null;
300
- belowSubmitChildren: Atom[];
301
308
  rowsStyles: NullableOverride<RowsStyles> | null;
302
309
  layoutStyles: NullableLayoutStyles | null;
303
310
  }