@rudyzeinoun/email-builder 0.0.28 → 0.0.30
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 +142 -112
- package/dist/index.d.ts +142 -112
- package/dist/index.js +6 -4
- package/dist/index.mjs +6 -4
- package/package.json +3 -3
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
|
+
conditionStatement: import_zod.z.string().optional().nullable(),
|
|
95
96
|
loopStart: import_zod.z.number().optional().nullable(),
|
|
96
97
|
loopEnd: import_zod.z.number().optional().nullable(),
|
|
97
98
|
props: import_zod.z.object(__spreadProps(__spreadValues({}, BasePropsShape), {
|
|
@@ -107,13 +108,13 @@ var ColumnsContainerPropsSchema_default = ColumnsContainerPropsSchema;
|
|
|
107
108
|
// src/blocks/ColumnsContainer/ColumnsContainerReader.tsx
|
|
108
109
|
var import_react = __toESM(require("react"));
|
|
109
110
|
var import_block_columns_container2 = require("@rudyzeinoun/block-columns-container");
|
|
110
|
-
function ColumnsContainerReader({ style, props, className, loopStart, loopEnd, responsiveDisplay }) {
|
|
111
|
+
function ColumnsContainerReader({ style, props, className, loopStart, loopEnd, responsiveDisplay, conditionStatement }) {
|
|
111
112
|
const _a = props != null ? props : {}, { columns } = _a, restProps = __objRest(_a, ["columns"]);
|
|
112
113
|
let cols = void 0;
|
|
113
114
|
if (columns) {
|
|
114
115
|
cols = columns.map((col) => col.childrenIds.map((childId) => /* @__PURE__ */ import_react.default.createElement(ReaderBlock, { key: childId, id: childId })));
|
|
115
116
|
}
|
|
116
|
-
return /* @__PURE__ */ import_react.default.createElement(import_block_columns_container2.ColumnsContainer, { props: restProps, columns: cols, style, className, loopStart, loopEnd, responsiveDisplay });
|
|
117
|
+
return /* @__PURE__ */ import_react.default.createElement(import_block_columns_container2.ColumnsContainer, { props: restProps, columns: cols, style, className, loopStart, loopEnd, responsiveDisplay, conditionStatement });
|
|
117
118
|
}
|
|
118
119
|
|
|
119
120
|
// src/blocks/Container/ContainerPropsSchema.tsx
|
|
@@ -123,6 +124,7 @@ var ContainerPropsSchema = import_zod2.z.object({
|
|
|
123
124
|
style: import_block_container.ContainerPropsSchema.shape.style,
|
|
124
125
|
className: import_zod2.z.string().optional().nullable(),
|
|
125
126
|
responsiveDisplay: import_zod2.z.string().optional().nullable(),
|
|
127
|
+
conditionStatement: import_zod2.z.string().optional().nullable(),
|
|
126
128
|
loopStart: import_zod2.z.number().optional().nullable(),
|
|
127
129
|
loopEnd: import_zod2.z.number().optional().nullable(),
|
|
128
130
|
props: import_zod2.z.object({
|
|
@@ -133,10 +135,10 @@ var ContainerPropsSchema = import_zod2.z.object({
|
|
|
133
135
|
// src/blocks/Container/ContainerReader.tsx
|
|
134
136
|
var import_react2 = __toESM(require("react"));
|
|
135
137
|
var import_block_container2 = require("@rudyzeinoun/block-container");
|
|
136
|
-
function ContainerReader({ style, props, className, loopStart, loopEnd, responsiveDisplay }) {
|
|
138
|
+
function ContainerReader({ style, props, className, loopStart, loopEnd, responsiveDisplay, conditionStatement }) {
|
|
137
139
|
var _a;
|
|
138
140
|
const childrenIds = (_a = props == null ? void 0 : props.childrenIds) != null ? _a : [];
|
|
139
|
-
return /* @__PURE__ */ import_react2.default.createElement(import_block_container2.Container, { className, loopStart, loopEnd, style, responsiveDisplay }, childrenIds.map((childId) => /* @__PURE__ */ import_react2.default.createElement(ReaderBlock, { key: childId, id: childId })));
|
|
141
|
+
return /* @__PURE__ */ import_react2.default.createElement(import_block_container2.Container, { className, loopStart, loopEnd, style, responsiveDisplay, conditionStatement }, childrenIds.map((childId) => /* @__PURE__ */ import_react2.default.createElement(ReaderBlock, { key: childId, id: childId })));
|
|
140
142
|
}
|
|
141
143
|
|
|
142
144
|
// src/blocks/EmailLayout/EmailLayoutPropsSchema.tsx
|
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
|
+
conditionStatement: z.string().optional().nullable(),
|
|
62
63
|
loopStart: z.number().optional().nullable(),
|
|
63
64
|
loopEnd: z.number().optional().nullable(),
|
|
64
65
|
props: z.object(__spreadProps(__spreadValues({}, BasePropsShape), {
|
|
@@ -74,13 +75,13 @@ var ColumnsContainerPropsSchema_default = ColumnsContainerPropsSchema;
|
|
|
74
75
|
// src/blocks/ColumnsContainer/ColumnsContainerReader.tsx
|
|
75
76
|
import React from "react";
|
|
76
77
|
import { ColumnsContainer as BaseColumnsContainer } from "@rudyzeinoun/block-columns-container";
|
|
77
|
-
function ColumnsContainerReader({ style, props, className, loopStart, loopEnd, responsiveDisplay }) {
|
|
78
|
+
function ColumnsContainerReader({ style, props, className, loopStart, loopEnd, responsiveDisplay, conditionStatement }) {
|
|
78
79
|
const _a = props != null ? props : {}, { columns } = _a, restProps = __objRest(_a, ["columns"]);
|
|
79
80
|
let cols = void 0;
|
|
80
81
|
if (columns) {
|
|
81
82
|
cols = columns.map((col) => col.childrenIds.map((childId) => /* @__PURE__ */ React.createElement(ReaderBlock, { key: childId, id: childId })));
|
|
82
83
|
}
|
|
83
|
-
return /* @__PURE__ */ React.createElement(BaseColumnsContainer, { props: restProps, columns: cols, style, className, loopStart, loopEnd, responsiveDisplay });
|
|
84
|
+
return /* @__PURE__ */ React.createElement(BaseColumnsContainer, { props: restProps, columns: cols, style, className, loopStart, loopEnd, responsiveDisplay, conditionStatement });
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
// src/blocks/Container/ContainerPropsSchema.tsx
|
|
@@ -90,6 +91,7 @@ var ContainerPropsSchema = z2.object({
|
|
|
90
91
|
style: BaseContainerPropsSchema.shape.style,
|
|
91
92
|
className: z2.string().optional().nullable(),
|
|
92
93
|
responsiveDisplay: z2.string().optional().nullable(),
|
|
94
|
+
conditionStatement: z2.string().optional().nullable(),
|
|
93
95
|
loopStart: z2.number().optional().nullable(),
|
|
94
96
|
loopEnd: z2.number().optional().nullable(),
|
|
95
97
|
props: z2.object({
|
|
@@ -100,10 +102,10 @@ var ContainerPropsSchema = z2.object({
|
|
|
100
102
|
// src/blocks/Container/ContainerReader.tsx
|
|
101
103
|
import React2 from "react";
|
|
102
104
|
import { Container as BaseContainer } from "@rudyzeinoun/block-container";
|
|
103
|
-
function ContainerReader({ style, props, className, loopStart, loopEnd, responsiveDisplay }) {
|
|
105
|
+
function ContainerReader({ style, props, className, loopStart, loopEnd, responsiveDisplay, conditionStatement }) {
|
|
104
106
|
var _a;
|
|
105
107
|
const childrenIds = (_a = props == null ? void 0 : props.childrenIds) != null ? _a : [];
|
|
106
|
-
return /* @__PURE__ */ React2.createElement(BaseContainer, { className, loopStart, loopEnd, style, responsiveDisplay }, childrenIds.map((childId) => /* @__PURE__ */ React2.createElement(ReaderBlock, { key: childId, id: childId })));
|
|
108
|
+
return /* @__PURE__ */ React2.createElement(BaseContainer, { className, loopStart, loopEnd, style, responsiveDisplay, conditionStatement }, childrenIds.map((childId) => /* @__PURE__ */ React2.createElement(ReaderBlock, { key: childId, id: childId })));
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
// src/blocks/EmailLayout/EmailLayoutPropsSchema.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rudyzeinoun/email-builder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"description": "React component to render email messages",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"zod": "^1 || ^2 || ^3"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@rudyzeinoun/block-container": "^0.0.
|
|
30
|
+
"@rudyzeinoun/block-container": "^0.0.11",
|
|
31
31
|
"@usewaypoint/block-avatar": "^0.0.3",
|
|
32
32
|
"@rudyzeinoun/block-button": "^0.0.5",
|
|
33
|
-
"@rudyzeinoun/block-columns-container": "^0.0.
|
|
33
|
+
"@rudyzeinoun/block-columns-container": "^0.0.8",
|
|
34
34
|
"@usewaypoint/block-divider": "^0.0.4",
|
|
35
35
|
"@rudyzeinoun/block-heading": "^0.0.5",
|
|
36
36
|
"@rudyzeinoun/block-html": "^0.0.5",
|