@bendyline/squisq 2.2.0 → 2.3.0

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.
Files changed (35) hide show
  1. package/NOTICE.md +3 -3
  2. package/README.md +8 -8
  3. package/dist/{Doc-BubIpWsp.d.ts → Doc-COe-rPQB.d.ts} +6 -4
  4. package/dist/{ImageEditDoc-CGxk5CHc.d.ts → ImageEditDoc-dtKahVyD.d.ts} +1 -1
  5. package/dist/{chunk-DYPMOPIW.js → chunk-EK446BUE.js} +1 -1
  6. package/dist/{chunk-7ARJZYQY.js → chunk-GIIOY6XR.js} +2048 -1200
  7. package/dist/{chunk-I2O6W7DX.js → chunk-QNTQIEIV.js} +16 -5
  8. package/dist/{chunk-FDYDYL77.js → chunk-QWCFK5FN.js} +1 -0
  9. package/dist/{chunk-CB45YGAM.js → chunk-SPTY4C6F.js} +134 -2
  10. package/dist/doc/index.d.ts +289 -6
  11. package/dist/doc/index.js +13 -4
  12. package/dist/generate/index.d.ts +1 -1
  13. package/dist/generate/index.js +0 -1
  14. package/dist/icons/index.js +0 -1
  15. package/dist/imageEdit/index.d.ts +3 -3
  16. package/dist/index.d.ts +6 -6
  17. package/dist/index.js +17 -10
  18. package/dist/jsonForm/index.d.ts +1 -1
  19. package/dist/jsonForm/index.js +1 -1
  20. package/dist/{materializePageSection-wSLA2A1g.d.ts → materializePageSection-BSMOocve.d.ts} +1 -1
  21. package/dist/narration/index.d.ts +1 -1
  22. package/dist/narration/index.js +3 -4
  23. package/dist/random/index.js +0 -1
  24. package/dist/recommend/index.js +1 -2
  25. package/dist/schemas/index.d.ts +17 -5
  26. package/dist/schemas/index.js +3 -1
  27. package/dist/{themeLibrary-DU9mUmVl.d.ts → themeLibrary-BUTWjufL.d.ts} +1 -1
  28. package/dist/timing/index.js +0 -1
  29. package/dist/transform/index.d.ts +2 -2
  30. package/package.json +5 -2
  31. package/dist/chunk-2L55443L.js +0 -0
  32. package/dist/chunk-QKPXHDLR.js +0 -0
  33. package/dist/chunk-WV5ARNDA.js +0 -0
  34. package/dist/chunk-XWNNA3KE.js +0 -0
  35. package/dist/chunk-YZNGMV3G.js +0 -0
package/NOTICE.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Third-Party Notices for @bendyline/squisq
2
2
 
3
- This notice applies to the `@bendyline/squisq` npm package. Squisq-authored
4
- code is licensed under the MIT license in `LICENSE`. Third-party components
5
- remain under their respective license terms.
3
+ This notice applies to the `@bendyline/squisq` npm package.
4
+ Squisq-authored code is licensed under the MIT license in `LICENSE`.
5
+ Third-party components remain under their respective license terms.
6
6
 
7
7
  ## Runtime dependencies
8
8
 
package/README.md CHANGED
@@ -25,14 +25,14 @@ npm install @bendyline/squisq
25
25
 
26
26
  ## New in this release
27
27
 
28
- The Squiggly Square markdown standard (see [`docs/SquigglySquare.md`](../../docs/SquigglySquare.md)) gained several authoring capabilities:
29
-
30
- - **[Standalone annotations](../../docs/SquigglySquare.md#standalone-annotations)** — a top-level paragraph that is exactly `{[templateName …]}` becomes a heading-less template block; the body that follows it is its contents.
31
- - **[Inline attribute coercion](../../docs/SquigglySquare.md#inline-attribute-coercion)** — `{[map center="47.6,-122.3" zoom=9]}` and `{[twoColumn left="Espresso|Bold"]}` now render without a data fence (typed via `TEMPLATE_INPUT_DESCRIPTORS`).
32
- - **[Validation additions](../../docs/SquigglySquare.md#validation)** — new `unknown-input` / `invalid-input-value` / `missing-input` warnings plus `possible-data-fence` / `conflicting-annotation-key` info diagnostics (a new `info` severity).
33
- - **[YAML data fences](../../docs/SquigglySquare.md#structured-data-fences)** now accept one level of nested mappings (a `map` `center` can be pure YAML).
34
- - **[Multi-line frontmatter](../../docs/SquigglySquare.md#multi-line-frontmatter)** — `squisq-custom-templates` / `squisq-custom-themes` can be authored as pretty JSON via YAML literal block scalars (`key: |-`).
35
- - **Custom-template tokens v2** (see [`docs/SquigglySquare.md`](../../docs/SquigglySquare.md), "Registering custom templates") — `{attr:key}`, pipe defaults on every token, and per-layer `repeat` with `{item}` / `{index}` tokens.
28
+ The Squiggly Square markdown standard (see [`docs/SquigglySquare.md`](https://github.com/bendyline/squisq/blob/main/docs/SquigglySquare.md)) gained several authoring capabilities:
29
+
30
+ - **[Standalone annotations](https://github.com/bendyline/squisq/blob/main/docs/SquigglySquare.md#standalone-annotations)** — a top-level paragraph that is exactly `{[templateName …]}` becomes a heading-less template block; the body that follows it is its contents.
31
+ - **[Inline attribute coercion](https://github.com/bendyline/squisq/blob/main/docs/SquigglySquare.md#inline-attribute-coercion)** — `{[map center="47.6,-122.3" zoom=9]}` and `{[twoColumn left="Espresso|Bold"]}` now render without a data fence (typed via `TEMPLATE_INPUT_DESCRIPTORS`).
32
+ - **[Validation additions](https://github.com/bendyline/squisq/blob/main/docs/SquigglySquare.md#validation)** — new `unknown-input` / `invalid-input-value` / `missing-input` warnings plus `possible-data-fence` / `conflicting-annotation-key` info diagnostics (a new `info` severity).
33
+ - **[YAML data fences](https://github.com/bendyline/squisq/blob/main/docs/SquigglySquare.md#structured-data-fences)** now accept one level of nested mappings (a `map` `center` can be pure YAML).
34
+ - **[Multi-line frontmatter](https://github.com/bendyline/squisq/blob/main/docs/SquigglySquare.md#multi-line-frontmatter)** — `squisq-custom-templates` / `squisq-custom-themes` can be authored as pretty JSON via YAML literal block scalars (`key: |-`).
35
+ - **Custom-template tokens v2** (see [`docs/SquigglySquare.md`](https://github.com/bendyline/squisq/blob/main/docs/SquigglySquare.md), "Registering custom templates") — `{attr:key}`, pipe defaults on every token, and per-layer `repeat` with `{item}` / `{index}` tokens.
36
36
 
37
37
  New `@bendyline/squisq/doc` exports powering the above: `coerceTemplateParams`, `lintTemplateParams`, `TEMPLATE_INPUT_DESCRIPTORS`, and `replaceDataFence`.
38
38
 
@@ -415,6 +415,8 @@ interface StatHighlightInput extends BaseTemplateBlock {
415
415
  */
416
416
  interface QuoteBlockInput extends BaseTemplateBlock {
417
417
  template: 'quote';
418
+ /** Optional heading above the quote. */
419
+ title?: string;
418
420
  /** The quote text (supports \n for line breaks) */
419
421
  quote: string;
420
422
  /** Attribution (author, source) */
@@ -757,10 +759,10 @@ interface VideoWithCaptionInput extends BaseTemplateBlock {
757
759
  posterSrc?: string;
758
760
  /** Alt text for accessibility */
759
761
  videoAlt: string;
760
- /** Start time within source video (seconds) */
761
- clipStart: number;
762
- /** End time within source video (seconds) */
763
- clipEnd: number;
762
+ /** Start time within source video (seconds). Defaults to 0. */
763
+ clipStart?: number;
764
+ /** End time within source video (seconds). Defaults to the block duration. */
765
+ clipEnd?: number;
764
766
  /** Source video total duration (for validation) */
765
767
  sourceDuration?: number;
766
768
  /** Caption text overlay */
@@ -1,4 +1,4 @@
1
- import { R as ImageLayer, a$ as TextLayer, aO as ShapeLayer, aw as PathLayer } from './Doc-BubIpWsp.js';
1
+ import { R as ImageLayer, a$ as TextLayer, aO as ShapeLayer, aw as PathLayer } from './Doc-COe-rPQB.js';
2
2
 
3
3
  /**
4
4
  * ImageEditDoc — JSON document describing a layered, editable image.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  expectedSyllablesAt,
3
3
  wordPosAtExpectedSyllables
4
- } from "./chunk-7ARJZYQY.js";
4
+ } from "./chunk-GIIOY6XR.js";
5
5
 
6
6
  // src/narration/types.ts
7
7
  var DEFAULT_FEATURE_CONFIG = Object.freeze({