tee3apps-cms-sdk-react 0.0.32 → 0.0.33
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/PageComponents/BoxComponent.tsx +4 -7
- package/src/PageComponents/Visual-Components/ImageComponent.tsx +3 -3
- package/src/PageComponents/Visual-Components/TextComponent.tsx +6 -3
package/package.json
CHANGED
|
@@ -256,19 +256,16 @@ const BoxComponent: React.FC<BoxComponentProps> = ({
|
|
|
256
256
|
minHeight: "50px",
|
|
257
257
|
boxSizing: "border-box",
|
|
258
258
|
overflow: "hidden",
|
|
259
|
-
// justifyContent: "center",
|
|
260
|
-
// alignItems: props.align,
|
|
261
|
-
|
|
262
259
|
}}>
|
|
263
260
|
<div style={{
|
|
264
261
|
display: "flex",
|
|
265
262
|
flexDirection: "column",
|
|
266
|
-
|
|
267
|
-
alignItems: getAlignItems(props.align),
|
|
263
|
+
width: "100%",
|
|
268
264
|
height: "100%",
|
|
269
|
-
|
|
265
|
+
justifyContent: getJustifyContent(props.justify),
|
|
266
|
+
alignItems: getAlignItems(props.align)
|
|
270
267
|
}}>
|
|
271
|
-
|
|
268
|
+
{childrenArray}
|
|
272
269
|
</div>
|
|
273
270
|
</div>
|
|
274
271
|
);
|
|
@@ -129,11 +129,11 @@ const ImageComponent: React.FC<ImageComponentMainProps> = ({
|
|
|
129
129
|
const link = bannerLink(props);
|
|
130
130
|
|
|
131
131
|
// Use nullish coalescing to safely access image properties
|
|
132
|
-
const imageUrl = `${Linodeurl}${props.images?.url
|
|
133
|
-
const altText = props.images?.alt ??
|
|
132
|
+
const imageUrl = `${Linodeurl}${props.images?.url}`;
|
|
133
|
+
const altText = props.images?.alt ?? '';
|
|
134
134
|
|
|
135
135
|
// Don't render if no image URL is available
|
|
136
|
-
if (!props.images || (!props.images?.url
|
|
136
|
+
if (!props.images || (!props.images?.url)) {
|
|
137
137
|
return (
|
|
138
138
|
<div
|
|
139
139
|
className="image-box"
|
|
@@ -82,7 +82,7 @@ const TextComponent: React.FC<{ props: ComponentProps }> = ({ props }) => {
|
|
|
82
82
|
<div style={{
|
|
83
83
|
display: "flex",
|
|
84
84
|
flexDirection: "column",
|
|
85
|
-
alignItems:style?.textAlign === 'center' ? 'center' : style?.textAlign === 'right' ? 'flex-end' : 'flex-start',
|
|
85
|
+
alignItems: style?.textAlign === 'center' ? 'center' : style?.textAlign === 'right' ? 'flex-end' : 'flex-start',
|
|
86
86
|
width: "100%",
|
|
87
87
|
maxWidth: "100%",
|
|
88
88
|
wordWrap: "break-word",
|
|
@@ -92,7 +92,7 @@ const TextComponent: React.FC<{ props: ComponentProps }> = ({ props }) => {
|
|
|
92
92
|
}}>
|
|
93
93
|
<a
|
|
94
94
|
href={url}
|
|
95
|
-
target={props?.linktype=='EXTERNAL' ? props?.link?.target :'_self'}
|
|
95
|
+
target={props?.linktype == 'EXTERNAL' ? props?.link?.target : '_self'}
|
|
96
96
|
style={{
|
|
97
97
|
textDecoration: 'none',
|
|
98
98
|
display: "block",
|
|
@@ -114,7 +114,10 @@ const TextComponent: React.FC<{ props: ComponentProps }> = ({ props }) => {
|
|
|
114
114
|
|
|
115
115
|
return (
|
|
116
116
|
<div style={{
|
|
117
|
-
display: "
|
|
117
|
+
display: "flex",
|
|
118
|
+
flexDirection: "column",
|
|
119
|
+
alignItems: style?.textAlign === 'center' ? 'center' : style?.textAlign === 'right' ? 'flex-end' : 'flex-start',
|
|
120
|
+
justifyContent: 'center',
|
|
118
121
|
width: "100%",
|
|
119
122
|
maxWidth: "100%",
|
|
120
123
|
wordWrap: "break-word",
|