@levo-so/blocks 0.3.2 → 0.3.3

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@levo-so/blocks",
3
3
  "description": "Set of blocks for Levo studio",
4
- "version": "0.3.2",
4
+ "version": "0.3.3",
5
5
  "author": "Levo Engineering <devs@theinternetfolks.com>",
6
6
  "dependencies": {
7
7
  "clsx": "2.1.1",
@@ -16,8 +16,8 @@
16
16
  "typescript": "5.9.3",
17
17
  "@levo-so/core": "0.2.1",
18
18
  "@levo-so/react": "0.2.1",
19
- "@levo-so/studio": "0.3.2",
20
- "@levo/ts-config": "0.0.0"
19
+ "@levo/ts-config": "0.0.0",
20
+ "@levo-so/studio": "0.3.3"
21
21
  },
22
22
  "exports": {
23
23
  ".": "./src/index.ts"
@@ -30,8 +30,8 @@
30
30
  "peerDependencies": {
31
31
  "react": ">=18",
32
32
  "react-dom": ">=18",
33
- "@levo-so/studio": "0.3.2",
34
33
  "@levo-so/core": "0.2.1",
34
+ "@levo-so/studio": "0.3.3",
35
35
  "@levo-so/react": "0.2.1"
36
36
  },
37
37
  "publishConfig": {
@@ -53,6 +53,7 @@ const EventDetails2: React.FC<ILevoBlockBaseProps<IEventDetailsContent>> = () =>
53
53
  <Icon elementKey="time-icon" />
54
54
  <ClientOnly>
55
55
  <Typography elementKey="time-range">
56
+ {/* Client-only, so dayjs renders these in the viewer's own timezone. */}
56
57
  {`${dayjs(data?.starts_at).format("hh:mm A")} - ${dayjs(data?.ends_at).format("hh:mm A")}`}
57
58
  </Typography>
58
59
  </ClientOnly>
@@ -72,6 +73,9 @@ const EventDetails2: React.FC<ILevoBlockBaseProps<IEventDetailsContent>> = () =>
72
73
  eventID={data?._id as string}
73
74
  title={data?.title}
74
75
  external={data?.external_ticketing}
76
+ startsAt={data?.starts_at}
77
+ endsAt={data?.ends_at}
78
+ eventUrl={data?.url}
75
79
  />
76
80
  ) : null}
77
81
  <BlogContent elementKey="description" content={data?.description || ""} />
@@ -52,6 +52,7 @@ const EventDetails: React.FC<ILevoBlockBaseProps<IEventDetailsContent>> = () =>
52
52
  <Icon elementKey="time-icon" />
53
53
  <ClientOnly>
54
54
  <Typography elementKey="time-range">
55
+ {/* Client-only, so dayjs renders these in the viewer's own timezone. */}
55
56
  {`${dayjs(data?.starts_at).format("hh:mm A")} - ${dayjs(data?.ends_at).format("hh:mm A")}`}
56
57
  </Typography>
57
58
  </ClientOnly>
@@ -71,6 +72,9 @@ const EventDetails: React.FC<ILevoBlockBaseProps<IEventDetailsContent>> = () =>
71
72
  eventID={data?._id as string}
72
73
  title={data?.title}
73
74
  external={data?.external_ticketing}
75
+ startsAt={data?.starts_at}
76
+ endsAt={data?.ends_at}
77
+ eventUrl={data?.url}
74
78
  />
75
79
  ) : null}
76
80
  <Typography elementKey="description">{data?.description}</Typography>