@bendyline/squisq-react 2.3.2 → 2.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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BlockRenderer,
3
3
  LinearDocView
4
- } from "./chunk-TQH6RTTV.js";
4
+ } from "./chunk-M2HEFJZP.js";
5
5
  import {
6
6
  useAudioSync,
7
7
  useDocPlayback,
@@ -434,10 +434,11 @@ function CardGridSection({ section }) {
434
434
  ] });
435
435
  }
436
436
  function ItemListSection({ section }) {
437
+ const { theme } = usePageView();
437
438
  const items = section.slots.items ?? [];
438
439
  return /* @__PURE__ */ jsxs2(Fragment, { children: [
439
440
  section.slots.title && /* @__PURE__ */ jsx3("h2", { className: "squisq-page-section-title squisq-page-items-title", children: section.slots.title }),
440
- /* @__PURE__ */ jsx3("ol", { className: "squisq-page-items", children: items.map((item, i) => /* @__PURE__ */ jsx3("li", { children: item.body }, i)) })
441
+ /* @__PURE__ */ jsx3("ol", { className: "squisq-page-items", children: items.map((item, i) => /* @__PURE__ */ jsx3("li", { children: item.markdown ? /* @__PURE__ */ jsx3(MarkdownRenderer, { nodes: item.markdown, theme }) : item.body }, i)) })
441
442
  ] });
442
443
  }
443
444
  function TimelineRailSection({ section }) {
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  MediaClipLayer,
11
11
  SocialCaptionOverlay,
12
12
  formatTime
13
- } from "./chunk-KLYYVRHA.js";
13
+ } from "./chunk-IUFWLNXS.js";
14
14
  import {
15
15
  BlockRenderer,
16
16
  CanvasSection,
@@ -18,7 +18,7 @@ import {
18
18
  PageSectionView,
19
19
  PageViewContext,
20
20
  usePageView
21
- } from "./chunk-TQH6RTTV.js";
21
+ } from "./chunk-M2HEFJZP.js";
22
22
  import {
23
23
  ImageLayer,
24
24
  MapLayer,
@@ -4,7 +4,7 @@ import {
4
4
  PageSectionView,
5
5
  PageViewContext,
6
6
  usePageView
7
- } from "../chunk-TQH6RTTV.js";
7
+ } from "../chunk-M2HEFJZP.js";
8
8
  import "../chunk-XYS7HMP4.js";
9
9
  import "../chunk-TT6ENR6T.js";
10
10
  import "../chunk-D7KN4CRG.js";
@@ -10,10 +10,10 @@ import {
10
10
  MediaClipLayer,
11
11
  SocialCaptionOverlay,
12
12
  formatTime
13
- } from "../chunk-KLYYVRHA.js";
13
+ } from "../chunk-IUFWLNXS.js";
14
14
  import {
15
15
  BlockRenderer
16
- } from "../chunk-TQH6RTTV.js";
16
+ } from "../chunk-M2HEFJZP.js";
17
17
  import "../chunk-XYS7HMP4.js";
18
18
  import "../chunk-NWZQGZIJ.js";
19
19
  import "../chunk-TT6ENR6T.js";