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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tee3apps-cms-sdk-react",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "description": "Uses JSON to dynamically generate and render UI pages in a website",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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
- justifyContent: getJustifyContent(props.justify),
267
- alignItems: getAlignItems(props.align),
263
+ width: "100%",
268
264
  height: "100%",
269
- width: "100%"
265
+ justifyContent: getJustifyContent(props.justify),
266
+ alignItems: getAlignItems(props.align)
270
267
  }}>
271
- <div style={{ width: '100%' }}> {childrenArray}</div>
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 ?? props.images?.all?.url ?? ''}`;
133
- const altText = props.images?.alt ?? props.images?.all?.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 && !props.images?.all?.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: "block",
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",