@bendyline/squisq-react 2.7.0 → 2.7.1

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.
@@ -443,7 +443,7 @@ function ItemListSection({ section }) {
443
443
  const items = section.slots.items ?? [];
444
444
  return /* @__PURE__ */ jsxs2(Fragment, { children: [
445
445
  section.slots.title && /* @__PURE__ */ jsx3("h2", { className: "squisq-page-section-title squisq-page-items-title", children: section.slots.title }),
446
- /* @__PURE__ */ jsx3("ol", { className: "squisq-page-items", children: items.map((item, i) => /* @__PURE__ */ jsx3("li", { children: item.markdown ? /* @__PURE__ */ jsx3(
446
+ /* @__PURE__ */ jsx3("ol", { className: "squisq-page-items", children: items.map((item, i) => /* @__PURE__ */ jsx3("li", { children: /* @__PURE__ */ jsx3("div", { className: "squisq-page-item-body", children: item.markdown ? /* @__PURE__ */ jsx3(
447
447
  MarkdownRenderer,
448
448
  {
449
449
  nodes: item.markdown,
@@ -454,7 +454,7 @@ function ItemListSection({ section }) {
454
454
  htmlPolicy,
455
455
  linkSchemes
456
456
  }
457
- ) : item.body }, i)) })
457
+ ) : item.body }) }, i)) })
458
458
  ] });
459
459
  }
460
460
  function TimelineRailSection({ section }) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BlockRenderer,
3
3
  LinearDocView
4
- } from "./chunk-U3HRSQ45.js";
4
+ } from "./chunk-IQGW6SA6.js";
5
5
  import {
6
6
  useAudioSync,
7
7
  useDocPlayback,
@@ -325,7 +325,7 @@ function JsonView(props) {
325
325
  ) });
326
326
  }
327
327
 
328
- // src/jsonView/jsonFormFenceRenderer.tsx
328
+ // src/jsonView/JsonFormFence.tsx
329
329
  import { inferSchema } from "@bendyline/squisq/jsonForm";
330
330
  import { parseYamlSubset } from "@bendyline/squisq/doc";
331
331
  import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
@@ -348,10 +348,7 @@ function parseFenceBody(value) {
348
348
  return { error: `invalid YAML: ${err instanceof Error ? err.message : String(err)}` };
349
349
  }
350
350
  }
351
- function JsonFormFence({
352
- ctx,
353
- options
354
- }) {
351
+ function JsonFormFence({ ctx, options }) {
355
352
  const parsed = ctx.data !== void 0 ? { data: ctx.data } : parseFenceBody(ctx.value);
356
353
  const data = parsed.data;
357
354
  if (!data || typeof data !== "object" || Array.isArray(data)) {
@@ -384,9 +381,12 @@ function JsonFormFence({
384
381
  )) })
385
382
  ] });
386
383
  }
384
+
385
+ // src/jsonView/jsonFormFenceRenderer.tsx
386
+ import { jsx as jsx5 } from "react/jsx-runtime";
387
387
  function createJsonFormFenceRenderer(options = {}) {
388
388
  return function jsonFormFenceRenderer(ctx) {
389
- return /* @__PURE__ */ jsx4(JsonFormFence, { ctx, options });
389
+ return /* @__PURE__ */ jsx5(JsonFormFence, { ctx, options });
390
390
  };
391
391
  }
392
392
 
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  formatTime,
13
13
  resolveDocPlayerAppearance,
14
14
  useMediaClipDurations
15
- } from "./chunk-DYAFB3AH.js";
15
+ } from "./chunk-KXYE4AGL.js";
16
16
  import {
17
17
  BlockRenderer,
18
18
  CanvasSection,
@@ -20,7 +20,7 @@ import {
20
20
  PageSectionView,
21
21
  PageViewContext,
22
22
  usePageView
23
- } from "./chunk-U3HRSQ45.js";
23
+ } from "./chunk-IQGW6SA6.js";
24
24
  import {
25
25
  ImageLayer,
26
26
  MapLayer,
@@ -46,7 +46,7 @@ import {
46
46
  import {
47
47
  JsonView,
48
48
  createJsonFormFenceRenderer
49
- } from "./chunk-NJRSGSFW.js";
49
+ } from "./chunk-QF74BODY.js";
50
50
  import {
51
51
  useAutoSurface
52
52
  } from "./chunk-TT6ENR6T.js";
@@ -41,6 +41,8 @@ declare function JsonView(props: JsonViewProps): react_jsx_runtime.JSX.Element;
41
41
  * (`parseYamlSubset` — flat maps, inline arrays, one nesting level).
42
42
  * Unparseable bodies render as a plain code block with a quiet
43
43
  * diagnostic line, so a malformed fence stays visible and debuggable.
44
+ * The rendering itself lives in `JsonFormFence.tsx`; this module is the
45
+ * factory and its option surface.
44
46
  */
45
47
 
46
48
  /** One host action button rendered below the form. */
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  JsonView,
3
3
  createJsonFormFenceRenderer
4
- } from "../chunk-NJRSGSFW.js";
4
+ } from "../chunk-QF74BODY.js";
5
5
  import "../chunk-TT6ENR6T.js";
6
6
  import "../chunk-ESI3P77P.js";
7
7
  import "../chunk-WLUZTUNZ.js";
@@ -4,7 +4,7 @@ import {
4
4
  PageSectionView,
5
5
  PageViewContext,
6
6
  usePageView
7
- } from "../chunk-U3HRSQ45.js";
7
+ } from "../chunk-IQGW6SA6.js";
8
8
  import "../chunk-UJEHDVQO.js";
9
9
  import "../chunk-TT6ENR6T.js";
10
10
  import "../chunk-ESI3P77P.js";
@@ -10,10 +10,10 @@ import {
10
10
  MediaClipLayer,
11
11
  SocialCaptionOverlay,
12
12
  formatTime
13
- } from "../chunk-DYAFB3AH.js";
13
+ } from "../chunk-KXYE4AGL.js";
14
14
  import {
15
15
  BlockRenderer
16
- } from "../chunk-U3HRSQ45.js";
16
+ } from "../chunk-IQGW6SA6.js";
17
17
  import "../chunk-UJEHDVQO.js";
18
18
  import "../chunk-MVJQL2W2.js";
19
19
  import "../chunk-TT6ENR6T.js";