@bendyline/squisq 2.13.3 → 2.13.5

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 (34) hide show
  1. package/dist/{Doc-BPhdJFS_.d.ts → Doc-BQUVDooL.d.ts} +16 -0
  2. package/dist/{ImageEditDoc-DDx-sw_S.d.ts → ImageEditDoc-glA5UUau.d.ts} +1 -1
  3. package/dist/{chunk-D3JQMZUT.js → chunk-CPD3MFX7.js} +1 -1
  4. package/dist/{chunk-POZCKPCO.js → chunk-CZHWFQ7C.js} +1 -1
  5. package/dist/{chunk-VX7MPZOK.js → chunk-F5WTRHWL.js} +4 -4
  6. package/dist/{chunk-JFJZ4NS6.js → chunk-FJNTG3VZ.js} +2 -2
  7. package/dist/{chunk-JOBMPMY5.js → chunk-FSZ6HB7S.js} +1 -1
  8. package/dist/{chunk-F3LRTRST.js → chunk-K75GTKSN.js} +5 -5
  9. package/dist/{chunk-6NWVLLMI.js → chunk-KVEOD57Z.js} +5 -0
  10. package/dist/{chunk-ISVJ42I3.js → chunk-SG3HXPMF.js} +3 -0
  11. package/dist/{chunk-5FUBK3DK.js → chunk-ZF4NWRZU.js} +384 -159
  12. package/dist/doc/index.d.ts +51 -7
  13. package/dist/doc/index.js +8 -6
  14. package/dist/fence/index.d.ts +1 -1
  15. package/dist/generate/index.d.ts +1 -1
  16. package/dist/imageEdit/index.d.ts +3 -3
  17. package/dist/index.d.ts +6 -6
  18. package/dist/index.js +13 -9
  19. package/dist/jsonForm/index.d.ts +1 -1
  20. package/dist/jsonForm/index.js +1 -1
  21. package/dist/markdown/index.d.ts +6 -1
  22. package/dist/markdown/index.js +5 -3
  23. package/dist/{materializePageSection-DnQi-0TA.d.ts → materializePageSection-_ftXlwvB.d.ts} +1 -1
  24. package/dist/mediaEdit/index.d.ts +2 -2
  25. package/dist/narration/index.d.ts +1 -1
  26. package/dist/narration/index.js +4 -4
  27. package/dist/recommend/index.js +2 -2
  28. package/dist/schemas/index.d.ts +4 -4
  29. package/dist/schemas/index.js +1 -1
  30. package/dist/{themeLibrary-DM7eSK1w.d.ts → themeLibrary-D6GK29l3.d.ts} +1 -1
  31. package/dist/timing/index.d.ts +1 -1
  32. package/dist/transform/index.d.ts +2 -2
  33. package/dist/transform/index.js +5 -5
  34. package/package.json +1 -1
@@ -789,6 +789,13 @@ interface BigTextInput extends BaseTemplateBlock {
789
789
  * vertical video's title clear of captions burned into the lower band.
790
790
  */
791
791
  placement?: 'center' | 'upper' | 'lower';
792
+ /**
793
+ * What keeps the title legible over the image (default `bloom`, a radial
794
+ * shade tinted from the theme background). `frosted` leaves the photo clear
795
+ * and sets the title on a frosted-glass plate that hugs it, as the frosted
796
+ * cover does. Ignored without an image.
797
+ */
798
+ backdrop?: 'bloom' | 'frosted';
792
799
  }
793
800
  /**
794
801
  * Transcript block - one conversational beat: speaker (avatar + name)
@@ -2341,6 +2348,15 @@ interface StartBlockConfig {
2341
2348
  * (so a square crop, such as a social link card, shows all of it).
2342
2349
  */
2343
2350
  coverStyle?: 'scrim' | 'frosted';
2351
+ /**
2352
+ * Where a frosted cover puts its subtitle. `'stacked'` (default): under the title, on the
2353
+ * title's plate. `'split'`: the title on a plate near the top of the frame and the
2354
+ * subtitle, set as a display deck, on a plate of its own near the bottom — a vertical
2355
+ * cover's name and its hook. Both plates stay inside the middle 3:4 that feeds crop a
2356
+ * 9:16 frame to, with even room above the title and below the subtitle. A split that would crowd the frame (two plates closer than half
2357
+ * the title's size) stacks instead. No effect without a subtitle or with the scrim style.
2358
+ */
2359
+ coverLayout?: 'stacked' | 'split';
2344
2360
  }
2345
2361
  /**
2346
2362
  * A structural problem detected while converting or validating a document.
@@ -1,4 +1,4 @@
1
- import { a3 as ImageLayer, by as TextLayer, bj as ShapeLayer, aZ as PathLayer } from './Doc-BPhdJFS_.js';
1
+ import { a3 as ImageLayer, by as TextLayer, bj as ShapeLayer, aZ as PathLayer } from './Doc-BQUVDooL.js';
2
2
 
3
3
  /**
4
4
  * ImageEditDoc — JSON document describing a layered, editable image.
@@ -11,7 +11,7 @@ import {
11
11
  sanitizeUrl,
12
12
  splitKeyValueToken,
13
13
  tokenizeAttrTokens
14
- } from "./chunk-6NWVLLMI.js";
14
+ } from "./chunk-KVEOD57Z.js";
15
15
  import {
16
16
  resolveIcon
17
17
  } from "./chunk-CZ7AUSLI.js";
@@ -16,7 +16,7 @@ import {
16
16
  splitKeyValueToken,
17
17
  tokenizeAttrTokens,
18
18
  walkMarkdownTree
19
- } from "./chunk-6NWVLLMI.js";
19
+ } from "./chunk-KVEOD57Z.js";
20
20
 
21
21
  // src/doc/asciiDiagram/chars.ts
22
22
  function toCells(s) {
@@ -4,7 +4,7 @@ import {
4
4
  flattenRenderableBlocks,
5
5
  getPinnedBlockMeta,
6
6
  markdownToDoc
7
- } from "./chunk-5FUBK3DK.js";
7
+ } from "./chunk-ZF4NWRZU.js";
8
8
  import {
9
9
  deriveTemplateInputs,
10
10
  extractImages,
@@ -12,7 +12,7 @@ import {
12
12
  isAsciiTimelineFence,
13
13
  isPictureFence,
14
14
  isTreeFence
15
- } from "./chunk-POZCKPCO.js";
15
+ } from "./chunk-CZHWFQ7C.js";
16
16
  import {
17
17
  extractContent,
18
18
  mapElementToBlock,
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-WNEH3BZP.js";
25
25
  import {
26
26
  parseMarkdown
27
- } from "./chunk-D3JQMZUT.js";
27
+ } from "./chunk-CPD3MFX7.js";
28
28
  import {
29
29
  isContainerTemplate
30
30
  } from "./chunk-DOOUVVOM.js";
@@ -32,7 +32,7 @@ import {
32
32
  extractPlainText,
33
33
  getChildren,
34
34
  stringifyHtmlNodes
35
- } from "./chunk-6NWVLLMI.js";
35
+ } from "./chunk-KVEOD57Z.js";
36
36
  import {
37
37
  parseBuildSpec
38
38
  } from "./chunk-P53Z4RYC.js";
@@ -3,14 +3,14 @@ import {
3
3
  parseMarkdown,
4
4
  remarkWikiLinks,
5
5
  toMdast
6
- } from "./chunk-D3JQMZUT.js";
6
+ } from "./chunk-CPD3MFX7.js";
7
7
  import {
8
8
  formatFrontmatterYaml,
9
9
  getChildren,
10
10
  splitFrontmatterBlock,
11
11
  stringifyHtmlNodes,
12
12
  walkMarkdownTree
13
- } from "./chunk-6NWVLLMI.js";
13
+ } from "./chunk-KVEOD57Z.js";
14
14
 
15
15
  // src/markdown/stringify.ts
16
16
  import { unified } from "unified";
@@ -8,7 +8,7 @@ import {
8
8
  expectedSyllablesAt,
9
9
  flattenRenderableBlocks,
10
10
  wordPosAtExpectedSyllables
11
- } from "./chunk-5FUBK3DK.js";
11
+ } from "./chunk-ZF4NWRZU.js";
12
12
 
13
13
  // src/narration/types.ts
14
14
  var DEFAULT_FEATURE_CONFIG = Object.freeze({
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-FTN6SGW5.js";
4
4
  import {
5
5
  applySavedPresentation
6
- } from "./chunk-VX7MPZOK.js";
6
+ } from "./chunk-F5WTRHWL.js";
7
7
  import {
8
8
  SHAPE_NAMES,
9
9
  buildChartData,
@@ -31,7 +31,7 @@ import {
31
31
  templateRegistry,
32
32
  writeCustomTemplatesToFrontmatter,
33
33
  writeCustomThemesToFrontmatter
34
- } from "./chunk-5FUBK3DK.js";
34
+ } from "./chunk-ZF4NWRZU.js";
35
35
  import {
36
36
  ASCII_TREE_VOCAB,
37
37
  ASCII_VOCAB,
@@ -54,7 +54,7 @@ import {
54
54
  toCells,
55
55
  toGrid,
56
56
  traceBoxes
57
- } from "./chunk-POZCKPCO.js";
57
+ } from "./chunk-CZHWFQ7C.js";
58
58
  import {
59
59
  iconMarker
60
60
  } from "./chunk-7ZAAICW4.js";
@@ -87,7 +87,7 @@ import {
87
87
  } from "./chunk-L7QZORLB.js";
88
88
  import {
89
89
  parseMarkdown
90
- } from "./chunk-D3JQMZUT.js";
90
+ } from "./chunk-CPD3MFX7.js";
91
91
  import {
92
92
  TABLE_FED_TEMPLATES,
93
93
  TEMPLATE_ALIASES,
@@ -105,7 +105,7 @@ import {
105
105
  parseVideoEmbedUrl,
106
106
  readFrontmatterThemeId,
107
107
  serializeAnnotation
108
- } from "./chunk-6NWVLLMI.js";
108
+ } from "./chunk-KVEOD57Z.js";
109
109
  import {
110
110
  BUILD_PARAM_KEYS,
111
111
  buildSpecParams
@@ -172,11 +172,15 @@ function findNodesByType(root, type) {
172
172
  });
173
173
  return results;
174
174
  }
175
+ function isHtmlLineBreak(rawHtml) {
176
+ return /^<br\s*\/?>$/i.test(rawHtml.trim());
177
+ }
175
178
  function extractPlainText(node) {
176
179
  if ("value" in node && typeof node.value === "string") {
177
180
  return node.value;
178
181
  }
179
182
  if (node.type === "break") return "\n";
183
+ if (node.type === "htmlInline" && isHtmlLineBreak(node.rawHtml)) return "\n";
180
184
  const children = getChildren(node);
181
185
  const separator = node.type === "list" || node.type === "listItem" || node.type === "table" ? "\n" : node.type === "tableRow" ? " " : "";
182
186
  return children.map(extractPlainText).join(separator);
@@ -2433,6 +2437,7 @@ export {
2433
2437
  getChildren,
2434
2438
  walkMarkdownTree,
2435
2439
  findNodesByType,
2440
+ isHtmlLineBreak,
2436
2441
  extractPlainText,
2437
2442
  countNodes,
2438
2443
  parseFrontmatter,
@@ -309,6 +309,9 @@ function validateStartBlock(value, issues) {
309
309
  if (value.coverStyle !== void 0 && value.coverStyle !== "scrim" && value.coverStyle !== "frosted") {
310
310
  add(issues, "startBlock.coverStyle", 'must be "scrim" or "frosted"', value.coverStyle);
311
311
  }
312
+ if (value.coverLayout !== void 0 && value.coverLayout !== "stacked" && value.coverLayout !== "split") {
313
+ add(issues, "startBlock.coverLayout", 'must be "stacked" or "split"', value.coverLayout);
314
+ }
312
315
  }
313
316
  function validateCaptions(value, issues) {
314
317
  if (!isRecord(value)) {