@bendyline/squisq-react 2.7.0 → 2.7.2

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/NOTICE.md CHANGED
@@ -9,7 +9,7 @@ Third-party components remain under their respective license terms.
9
9
  | Package | Version | License | Repository |
10
10
  | ----------------------------- | -------------------- | ----------------------------- | ------------------------------------------- |
11
11
  | @fortawesome/fontawesome-free | 7.2.0 | CC-BY-4.0 AND OFL-1.1 AND MIT | https://github.com/FortAwesome/Font-Awesome |
12
- | mermaid | 11.16.0 | MIT | https://github.com/mermaid-js/mermaid |
12
+ | mermaid | 11.16.1 | MIT | https://github.com/mermaid-js/mermaid |
13
13
  | preact _(bundled)_ | 10.29.0 | MIT | https://github.com/preactjs/preact |
14
14
  | react _(peer)_ | ^18.0.0 \|\| ^19.0.0 | MIT | https://github.com/facebook/react |
15
15
  | react-dom _(peer)_ | ^18.0.0 \|\| ^19.0.0 | MIT | https://github.com/facebook/react |
@@ -100,7 +100,7 @@ COMPONENTS
100
100
  - mdast-util-phrasing@4.1.0 (MIT); files: license
101
101
  - mdast-util-to-markdown@2.1.2 (MIT); files: license
102
102
  - mdast-util-to-string@4.0.0 (MIT); files: license
103
- - mermaid@11.16.0 (MIT); files: LICENSE
103
+ - mermaid@11.16.1 (MIT); files: LICENSE
104
104
  - micromark-core-commonmark@2.0.3 (MIT); files: license
105
105
  - micromark-extension-directive@3.0.2 (MIT); files: license
106
106
  - micromark-extension-frontmatter@2.0.0 (MIT); files: license
@@ -2985,7 +2985,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
2985
2985
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2986
2986
 
2987
2987
  ==============================================================================
2988
- mermaid@11.16.0 - LICENSE
2988
+ mermaid@11.16.1 - LICENSE
2989
2989
  ==============================================================================
2990
2990
  The MIT License (MIT)
2991
2991
 
@@ -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";