@rudyzeinoun/email-builder 0.0.27 → 0.0.29
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.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -123,6 +123,7 @@ var ContainerPropsSchema = import_zod2.z.object({
|
|
|
123
123
|
style: import_block_container.ContainerPropsSchema.shape.style,
|
|
124
124
|
className: import_zod2.z.string().optional().nullable(),
|
|
125
125
|
responsiveDisplay: import_zod2.z.string().optional().nullable(),
|
|
126
|
+
condition: import_zod2.z.string().optional().nullable(),
|
|
126
127
|
loopStart: import_zod2.z.number().optional().nullable(),
|
|
127
128
|
loopEnd: import_zod2.z.number().optional().nullable(),
|
|
128
129
|
props: import_zod2.z.object({
|
|
@@ -133,10 +134,10 @@ var ContainerPropsSchema = import_zod2.z.object({
|
|
|
133
134
|
// src/blocks/Container/ContainerReader.tsx
|
|
134
135
|
var import_react2 = __toESM(require("react"));
|
|
135
136
|
var import_block_container2 = require("@rudyzeinoun/block-container");
|
|
136
|
-
function ContainerReader({ style, props, className, loopStart, loopEnd, responsiveDisplay }) {
|
|
137
|
+
function ContainerReader({ style, props, className, loopStart, loopEnd, responsiveDisplay, condition }) {
|
|
137
138
|
var _a;
|
|
138
139
|
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 })));
|
|
140
|
+
return /* @__PURE__ */ import_react2.default.createElement(import_block_container2.Container, { className, loopStart, loopEnd, style, responsiveDisplay, condition }, childrenIds.map((childId) => /* @__PURE__ */ import_react2.default.createElement(ReaderBlock, { key: childId, id: childId })));
|
|
140
141
|
}
|
|
141
142
|
|
|
142
143
|
// src/blocks/EmailLayout/EmailLayoutPropsSchema.tsx
|
package/dist/index.mjs
CHANGED
|
@@ -90,6 +90,7 @@ var ContainerPropsSchema = z2.object({
|
|
|
90
90
|
style: BaseContainerPropsSchema.shape.style,
|
|
91
91
|
className: z2.string().optional().nullable(),
|
|
92
92
|
responsiveDisplay: z2.string().optional().nullable(),
|
|
93
|
+
condition: z2.string().optional().nullable(),
|
|
93
94
|
loopStart: z2.number().optional().nullable(),
|
|
94
95
|
loopEnd: z2.number().optional().nullable(),
|
|
95
96
|
props: z2.object({
|
|
@@ -100,10 +101,10 @@ var ContainerPropsSchema = z2.object({
|
|
|
100
101
|
// src/blocks/Container/ContainerReader.tsx
|
|
101
102
|
import React2 from "react";
|
|
102
103
|
import { Container as BaseContainer } from "@rudyzeinoun/block-container";
|
|
103
|
-
function ContainerReader({ style, props, className, loopStart, loopEnd, responsiveDisplay }) {
|
|
104
|
+
function ContainerReader({ style, props, className, loopStart, loopEnd, responsiveDisplay, condition }) {
|
|
104
105
|
var _a;
|
|
105
106
|
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 })));
|
|
107
|
+
return /* @__PURE__ */ React2.createElement(BaseContainer, { className, loopStart, loopEnd, style, responsiveDisplay, condition }, childrenIds.map((childId) => /* @__PURE__ */ React2.createElement(ReaderBlock, { key: childId, id: childId })));
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
// 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.29",
|
|
4
4
|
"description": "React component to render email messages",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"zod": "^1 || ^2 || ^3"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@rudyzeinoun/block-container": "^0.0.
|
|
30
|
+
"@rudyzeinoun/block-container": "^0.0.10",
|
|
31
31
|
"@usewaypoint/block-avatar": "^0.0.3",
|
|
32
32
|
"@rudyzeinoun/block-button": "^0.0.5",
|
|
33
33
|
"@rudyzeinoun/block-columns-container": "^0.0.7",
|