@levo-so/blocks 0.1.93 → 0.1.95

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": "@levo-so/blocks",
3
- "version": "0.1.93",
3
+ "version": "0.1.95",
4
4
  "author": "Levo Engineering <devs@theinternetfolks.com>",
5
5
  "description": "Set of blocks for Levo studio",
6
6
  "type": "module",
@@ -15,9 +15,9 @@
15
15
  "peerDependencies": {
16
16
  "react": ">=18",
17
17
  "react-dom": ">=18",
18
- "@levo-so/studio": "0.1.92",
19
- "@levo-so/core": "0.1.82",
20
- "@levo-so/react": "0.1.86"
18
+ "@levo-so/react": "0.1.86",
19
+ "@levo-so/studio": "0.1.95",
20
+ "@levo-so/core": "0.1.82"
21
21
  },
22
22
  "dependencies": {
23
23
  "dayjs": "1.11.13",
@@ -30,7 +30,7 @@
30
30
  "@types/react-dom": "19.2.3",
31
31
  "typescript": "5.9.3",
32
32
  "@levo/ts-config": "0.0.0",
33
- "@levo-so/studio": "0.1.92",
33
+ "@levo-so/studio": "0.1.95",
34
34
  "@levo-so/core": "0.1.82",
35
35
  "@levo-so/react": "0.1.86"
36
36
  },
@@ -500,6 +500,7 @@ export const BlogPost1: IBlock = {
500
500
  "grid-template-columns": "256px 1fr",
501
501
  "column-gap": "3xl",
502
502
  "align-items": "start",
503
+ "justify-content": "center",
503
504
  tablet: {
504
505
  "grid-template-columns": "1fr",
505
506
  "row-gap": "2xl",
@@ -512,7 +513,7 @@ export const BlogPost1: IBlock = {
512
513
  },
513
514
  "content-section": {
514
515
  display: "flex",
515
- width: "100%",
516
+ "max-width": "100%",
516
517
  "flex-direction": "column",
517
518
  "justify-content": "between",
518
519
  "row-gap": "3xl",
@@ -526,7 +527,6 @@ export const BlogPost1: IBlock = {
526
527
  },
527
528
  content: {
528
529
  display: "flex",
529
- width: "100%",
530
530
  "flex-direction": "column",
531
531
  "row-gap": "xl",
532
532
  },
@@ -544,7 +544,8 @@ export const BlogPost1: IBlock = {
544
544
  "border-width": "1px",
545
545
  "border-color": "border",
546
546
  position: "sticky",
547
- top: "2rem",
547
+ top: "7rem",
548
+ "align-self": "start",
548
549
  width: "100%",
549
550
  tablet: {
550
551
  position: "static",
@@ -219,11 +219,7 @@ const BlogPost1: React.FC<ILevoBlockBaseProps<IBlogPost1Content>> = () => {
219
219
  </ClientOnly>
220
220
  )}
221
221
  <Box elementKey="content-section">
222
- <BlogContent
223
- elementKey="content"
224
- content={data.content?.html || ""}
225
- className={headings.length > 0 ? "!max-w-none" : ""}
226
- />
222
+ <BlogContent elementKey="content" content={data.content?.html || ""} />
227
223
  </Box>
228
224
  </Box>
229
225
  </Container>
@@ -355,11 +355,15 @@ const Community1: React.FC<ILevoBlockBaseProps<ICommunity1Content>> = ({ content
355
355
  }, [forumData, checkMembership]);
356
356
 
357
357
  const detailPageStudioConfig = useMemo(() => {
358
- return forumData?.studio_config?.find((v) => v?.block_instance_id === null);
358
+ return forumData?.studio_config && Array.isArray(forumData?.studio_config)
359
+ ? forumData?.studio_config?.find((v) => v?.block_instance_id === null)
360
+ : null;
359
361
  }, [forumData]);
360
362
 
361
363
  const listingPageStudioConfig = useMemo(() => {
362
- return forumData?.studio_config?.find((v) => v?.block_instance_id !== null);
364
+ return forumData?.studio_config && Array.isArray(forumData?.studio_config)
365
+ ? forumData?.studio_config?.find((v) => v?.block_instance_id !== null)
366
+ : null;
363
367
  }, [forumData]);
364
368
 
365
369
  const postDetailPageURLPattern = useMemo(() => {
@@ -226,11 +226,15 @@ const CommunityPost1: React.FC<ILevoBlockBaseProps<ICommunityPost1Content>> = ({
226
226
  }, [forumData, checkMembership]);
227
227
 
228
228
  const detailPageStudioConfig = useMemo(() => {
229
- return forumData?.studio_config?.find((v) => v?.block_instance_id === null);
229
+ return forumData?.studio_config && Array.isArray(forumData?.studio_config)
230
+ ? forumData?.studio_config?.find((v) => v?.block_instance_id === null)
231
+ : null;
230
232
  }, [forumData]);
231
233
 
232
234
  const listingPageStudioConfig = useMemo(() => {
233
- return forumData?.studio_config?.find((v) => v?.block_instance_id !== null);
235
+ return forumData?.studio_config && Array.isArray(forumData?.studio_config)
236
+ ? forumData?.studio_config?.find((v) => v?.block_instance_id !== null)
237
+ : null;
234
238
  }, [forumData]);
235
239
 
236
240
  const postDetailPageURLPattern = useMemo(() => {