@rudyzeinoun/email-builder 0.0.45 → 0.0.47
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.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -41,6 +41,7 @@ declare const ReaderBlockSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", an
|
|
|
41
41
|
}>>>;
|
|
42
42
|
className: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
43
43
|
responsiveDisplay: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
|
+
stacking: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
45
|
conditionStatement: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
45
46
|
loopStart: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
46
47
|
loopEnd: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -105,6 +106,7 @@ declare const ReaderBlockSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", an
|
|
|
105
106
|
} | null | undefined;
|
|
106
107
|
className?: string | null | undefined;
|
|
107
108
|
responsiveDisplay?: string | null | undefined;
|
|
109
|
+
stacking?: string | null | undefined;
|
|
108
110
|
conditionStatement?: string | null | undefined;
|
|
109
111
|
loopStart?: number | null | undefined;
|
|
110
112
|
loopEnd?: number | null | undefined;
|
|
@@ -133,6 +135,7 @@ declare const ReaderBlockSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", an
|
|
|
133
135
|
} | null | undefined;
|
|
134
136
|
className?: string | null | undefined;
|
|
135
137
|
responsiveDisplay?: string | null | undefined;
|
|
138
|
+
stacking?: string | null | undefined;
|
|
136
139
|
conditionStatement?: string | null | undefined;
|
|
137
140
|
loopStart?: number | null | undefined;
|
|
138
141
|
loopEnd?: number | null | undefined;
|
|
@@ -1019,6 +1022,7 @@ declare const ReaderDocumentSchema: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodD
|
|
|
1019
1022
|
}>>>;
|
|
1020
1023
|
className: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1021
1024
|
responsiveDisplay: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1025
|
+
stacking: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1022
1026
|
conditionStatement: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1023
1027
|
loopStart: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1024
1028
|
loopEnd: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1083,6 +1087,7 @@ declare const ReaderDocumentSchema: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodD
|
|
|
1083
1087
|
} | null | undefined;
|
|
1084
1088
|
className?: string | null | undefined;
|
|
1085
1089
|
responsiveDisplay?: string | null | undefined;
|
|
1090
|
+
stacking?: string | null | undefined;
|
|
1086
1091
|
conditionStatement?: string | null | undefined;
|
|
1087
1092
|
loopStart?: number | null | undefined;
|
|
1088
1093
|
loopEnd?: number | null | undefined;
|
|
@@ -1111,6 +1116,7 @@ declare const ReaderDocumentSchema: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodD
|
|
|
1111
1116
|
} | null | undefined;
|
|
1112
1117
|
className?: string | null | undefined;
|
|
1113
1118
|
responsiveDisplay?: string | null | undefined;
|
|
1119
|
+
stacking?: string | null | undefined;
|
|
1114
1120
|
conditionStatement?: string | null | undefined;
|
|
1115
1121
|
loopStart?: number | null | undefined;
|
|
1116
1122
|
loopEnd?: number | null | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ declare const ReaderBlockSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", an
|
|
|
41
41
|
}>>>;
|
|
42
42
|
className: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
43
43
|
responsiveDisplay: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
|
+
stacking: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
45
|
conditionStatement: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
45
46
|
loopStart: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
46
47
|
loopEnd: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -105,6 +106,7 @@ declare const ReaderBlockSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", an
|
|
|
105
106
|
} | null | undefined;
|
|
106
107
|
className?: string | null | undefined;
|
|
107
108
|
responsiveDisplay?: string | null | undefined;
|
|
109
|
+
stacking?: string | null | undefined;
|
|
108
110
|
conditionStatement?: string | null | undefined;
|
|
109
111
|
loopStart?: number | null | undefined;
|
|
110
112
|
loopEnd?: number | null | undefined;
|
|
@@ -133,6 +135,7 @@ declare const ReaderBlockSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", an
|
|
|
133
135
|
} | null | undefined;
|
|
134
136
|
className?: string | null | undefined;
|
|
135
137
|
responsiveDisplay?: string | null | undefined;
|
|
138
|
+
stacking?: string | null | undefined;
|
|
136
139
|
conditionStatement?: string | null | undefined;
|
|
137
140
|
loopStart?: number | null | undefined;
|
|
138
141
|
loopEnd?: number | null | undefined;
|
|
@@ -1019,6 +1022,7 @@ declare const ReaderDocumentSchema: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodD
|
|
|
1019
1022
|
}>>>;
|
|
1020
1023
|
className: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1021
1024
|
responsiveDisplay: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1025
|
+
stacking: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1022
1026
|
conditionStatement: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1023
1027
|
loopStart: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1024
1028
|
loopEnd: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1083,6 +1087,7 @@ declare const ReaderDocumentSchema: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodD
|
|
|
1083
1087
|
} | null | undefined;
|
|
1084
1088
|
className?: string | null | undefined;
|
|
1085
1089
|
responsiveDisplay?: string | null | undefined;
|
|
1090
|
+
stacking?: string | null | undefined;
|
|
1086
1091
|
conditionStatement?: string | null | undefined;
|
|
1087
1092
|
loopStart?: number | null | undefined;
|
|
1088
1093
|
loopEnd?: number | null | undefined;
|
|
@@ -1111,6 +1116,7 @@ declare const ReaderDocumentSchema: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodD
|
|
|
1111
1116
|
} | null | undefined;
|
|
1112
1117
|
className?: string | null | undefined;
|
|
1113
1118
|
responsiveDisplay?: string | null | undefined;
|
|
1119
|
+
stacking?: string | null | undefined;
|
|
1114
1120
|
conditionStatement?: string | null | undefined;
|
|
1115
1121
|
loopStart?: number | null | undefined;
|
|
1116
1122
|
loopEnd?: number | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -92,6 +92,7 @@ var ColumnsContainerPropsSchema = import_zod.z.object({
|
|
|
92
92
|
style: import_block_columns_container.ColumnsContainerPropsSchema.shape.style,
|
|
93
93
|
className: import_zod.z.string().optional().nullable(),
|
|
94
94
|
responsiveDisplay: import_zod.z.string().optional().nullable(),
|
|
95
|
+
stacking: import_zod.z.string().optional().nullable(),
|
|
95
96
|
conditionStatement: import_zod.z.string().optional().nullable(),
|
|
96
97
|
loopStart: import_zod.z.number().optional().nullable(),
|
|
97
98
|
loopEnd: import_zod.z.number().optional().nullable(),
|
|
@@ -108,13 +109,13 @@ var ColumnsContainerPropsSchema_default = ColumnsContainerPropsSchema;
|
|
|
108
109
|
// src/blocks/ColumnsContainer/ColumnsContainerReader.tsx
|
|
109
110
|
var import_react = __toESM(require("react"));
|
|
110
111
|
var import_block_columns_container2 = require("@rudyzeinoun/block-columns-container");
|
|
111
|
-
function ColumnsContainerReader({ style, props, className, loopStart, loopEnd, responsiveDisplay, conditionStatement }) {
|
|
112
|
+
function ColumnsContainerReader({ style, props, className, loopStart, loopEnd, responsiveDisplay, conditionStatement, stacking }) {
|
|
112
113
|
const _a = props != null ? props : {}, { columns } = _a, restProps = __objRest(_a, ["columns"]);
|
|
113
114
|
let cols = void 0;
|
|
114
115
|
if (columns) {
|
|
115
116
|
cols = columns.map((col) => col.childrenIds.map((childId) => /* @__PURE__ */ import_react.default.createElement(ReaderBlock, { key: childId, id: childId })));
|
|
116
117
|
}
|
|
117
|
-
return /* @__PURE__ */ import_react.default.createElement(import_block_columns_container2.ColumnsContainer, { props: restProps, columns: cols, style, className, loopStart, loopEnd, responsiveDisplay, conditionStatement });
|
|
118
|
+
return /* @__PURE__ */ import_react.default.createElement(import_block_columns_container2.ColumnsContainer, { props: restProps, columns: cols, style, className, loopStart, loopEnd, responsiveDisplay, conditionStatement, stacking });
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
// src/blocks/Container/ContainerPropsSchema.tsx
|
|
@@ -325,13 +326,12 @@ function renderToStaticMarkup(document, { rootBlockId }) {
|
|
|
325
326
|
|
|
326
327
|
@media only screen and (max-width: 450px) {
|
|
327
328
|
.stack {
|
|
328
|
-
display:
|
|
329
|
+
display: table-row-group !important;
|
|
329
330
|
width: 100% !important;
|
|
330
331
|
max-width: 100% !important;
|
|
331
332
|
}
|
|
332
333
|
.stack.stack-header { display: table-header-group !important; }
|
|
333
334
|
.stack.stack-footer { display: table-footer-group !important; }
|
|
334
|
-
/* optional, helps images fit when stacked */
|
|
335
335
|
.stack img {
|
|
336
336
|
width: 100% !important;
|
|
337
337
|
height: auto !important;
|
package/dist/index.mjs
CHANGED
|
@@ -59,6 +59,7 @@ var ColumnsContainerPropsSchema = z.object({
|
|
|
59
59
|
style: BaseColumnsContainerPropsSchema.shape.style,
|
|
60
60
|
className: z.string().optional().nullable(),
|
|
61
61
|
responsiveDisplay: z.string().optional().nullable(),
|
|
62
|
+
stacking: z.string().optional().nullable(),
|
|
62
63
|
conditionStatement: z.string().optional().nullable(),
|
|
63
64
|
loopStart: z.number().optional().nullable(),
|
|
64
65
|
loopEnd: z.number().optional().nullable(),
|
|
@@ -75,13 +76,13 @@ var ColumnsContainerPropsSchema_default = ColumnsContainerPropsSchema;
|
|
|
75
76
|
// src/blocks/ColumnsContainer/ColumnsContainerReader.tsx
|
|
76
77
|
import React from "react";
|
|
77
78
|
import { ColumnsContainer as BaseColumnsContainer } from "@rudyzeinoun/block-columns-container";
|
|
78
|
-
function ColumnsContainerReader({ style, props, className, loopStart, loopEnd, responsiveDisplay, conditionStatement }) {
|
|
79
|
+
function ColumnsContainerReader({ style, props, className, loopStart, loopEnd, responsiveDisplay, conditionStatement, stacking }) {
|
|
79
80
|
const _a = props != null ? props : {}, { columns } = _a, restProps = __objRest(_a, ["columns"]);
|
|
80
81
|
let cols = void 0;
|
|
81
82
|
if (columns) {
|
|
82
83
|
cols = columns.map((col) => col.childrenIds.map((childId) => /* @__PURE__ */ React.createElement(ReaderBlock, { key: childId, id: childId })));
|
|
83
84
|
}
|
|
84
|
-
return /* @__PURE__ */ React.createElement(BaseColumnsContainer, { props: restProps, columns: cols, style, className, loopStart, loopEnd, responsiveDisplay, conditionStatement });
|
|
85
|
+
return /* @__PURE__ */ React.createElement(BaseColumnsContainer, { props: restProps, columns: cols, style, className, loopStart, loopEnd, responsiveDisplay, conditionStatement, stacking });
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
// src/blocks/Container/ContainerPropsSchema.tsx
|
|
@@ -292,13 +293,12 @@ function renderToStaticMarkup(document, { rootBlockId }) {
|
|
|
292
293
|
|
|
293
294
|
@media only screen and (max-width: 450px) {
|
|
294
295
|
.stack {
|
|
295
|
-
display:
|
|
296
|
+
display: table-row-group !important;
|
|
296
297
|
width: 100% !important;
|
|
297
298
|
max-width: 100% !important;
|
|
298
299
|
}
|
|
299
300
|
.stack.stack-header { display: table-header-group !important; }
|
|
300
301
|
.stack.stack-footer { display: table-footer-group !important; }
|
|
301
|
-
/* optional, helps images fit when stacked */
|
|
302
302
|
.stack img {
|
|
303
303
|
width: 100% !important;
|
|
304
304
|
height: auto !important;
|