@bendyline/squisq 2.11.18 → 2.11.19

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.
@@ -8,7 +8,7 @@ import {
8
8
  expectedSyllablesAt,
9
9
  flattenRenderableBlocks,
10
10
  wordPosAtExpectedSyllables
11
- } from "./chunk-7IGKCHDP.js";
11
+ } from "./chunk-QLN6ILHM.js";
12
12
 
13
13
  // src/narration/types.ts
14
14
  var DEFAULT_FEATURE_CONFIG = Object.freeze({
@@ -2,7 +2,7 @@ import {
2
2
  assertMarkdownDocumentWithinLimits,
3
3
  parseMarkdown,
4
4
  toMdast
5
- } from "./chunk-PGWYC3S2.js";
5
+ } from "./chunk-Y4OZ5DSG.js";
6
6
  import {
7
7
  formatFrontmatterYaml,
8
8
  getChildren,
@@ -5,7 +5,7 @@ import {
5
5
  flattenRenderableBlocks,
6
6
  getPinnedBlockMeta,
7
7
  markdownToDoc
8
- } from "./chunk-7IGKCHDP.js";
8
+ } from "./chunk-QLN6ILHM.js";
9
9
  import {
10
10
  isAsciiDiagramFence,
11
11
  isAsciiTimelineFence,
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-PFH3WV6J.js";
23
23
  import {
24
24
  parseMarkdown
25
- } from "./chunk-PGWYC3S2.js";
25
+ } from "./chunk-Y4OZ5DSG.js";
26
26
  import {
27
27
  isContainerTemplate
28
28
  } from "./chunk-WSFXV5BT.js";
@@ -1502,18 +1502,16 @@ function asciiTimelineToTemplateData(timeline) {
1502
1502
  id: track.id,
1503
1503
  ...track.label ? { label: track.label } : {},
1504
1504
  ...track.endLabel ? { endLabel: track.endLabel } : {},
1505
- events: track.events.map(
1506
- (event) => ({
1507
- id: event.id,
1508
- label: event.label,
1509
- ...event.description ? { description: event.description } : {},
1510
- position: clamp01((event.column - globalStart) / span),
1511
- ...event.side ? { side: event.side } : {},
1512
- ...event.descriptionSide ? { descriptionSide: event.descriptionSide } : {},
1513
- ...event.callout === false ? { callout: false } : {},
1514
- ...event.marker ? { marker: event.marker } : {}
1515
- })
1516
- )
1505
+ events: track.events.map((event) => ({
1506
+ id: event.id,
1507
+ label: event.label,
1508
+ ...event.description ? { description: event.description } : {},
1509
+ position: clamp01((event.column - globalStart) / span),
1510
+ ...event.side ? { side: event.side } : {},
1511
+ ...event.descriptionSide ? { descriptionSide: event.descriptionSide } : {},
1512
+ ...event.callout === false ? { callout: false } : {},
1513
+ ...event.marker ? { marker: event.marker } : {}
1514
+ }))
1517
1515
  }));
1518
1516
  const links = timeline.links.map((link) => ({ ...link }));
1519
1517
  return { tracks, links };
@@ -10008,34 +10006,28 @@ function collectRichMediaItems(layers, block) {
10008
10006
  (video) => !existingEmbeds.has(video.url)
10009
10007
  );
10010
10008
  return [
10011
- ...images.map(
10012
- (image) => ({
10013
- kind: "image",
10014
- src: image.src,
10015
- alt: image.alt,
10016
- ...image.width && image.height ? { aspectRatio: image.width / image.height } : {}
10017
- })
10018
- ),
10019
- ...videos.map(
10020
- (video) => ({
10021
- kind: "video",
10022
- src: video.src,
10023
- ...video.posterSrc ? { posterSrc: video.posterSrc } : {},
10024
- alt: video.alt,
10025
- aspectRatio: 16 / 9,
10026
- ...video.startAt != null ? { startAt: video.startAt } : {},
10027
- ...video.clipStart != null ? { clipStart: video.clipStart } : {},
10028
- ...video.clipEnd != null ? { clipEnd: video.clipEnd } : {}
10029
- })
10030
- ),
10031
- ...hosted.map(
10032
- (video) => ({
10033
- kind: "videoEmbed",
10034
- url: video.url,
10035
- title: video.title,
10036
- aspectRatio: video.aspectRatio
10037
- })
10038
- ),
10009
+ ...images.map((image) => ({
10010
+ kind: "image",
10011
+ src: image.src,
10012
+ alt: image.alt,
10013
+ ...image.width && image.height ? { aspectRatio: image.width / image.height } : {}
10014
+ })),
10015
+ ...videos.map((video) => ({
10016
+ kind: "video",
10017
+ src: video.src,
10018
+ ...video.posterSrc ? { posterSrc: video.posterSrc } : {},
10019
+ alt: video.alt,
10020
+ aspectRatio: 16 / 9,
10021
+ ...video.startAt != null ? { startAt: video.startAt } : {},
10022
+ ...video.clipStart != null ? { clipStart: video.clipStart } : {},
10023
+ ...video.clipEnd != null ? { clipEnd: video.clipEnd } : {}
10024
+ })),
10025
+ ...hosted.map((video) => ({
10026
+ kind: "videoEmbed",
10027
+ url: video.url,
10028
+ title: video.title,
10029
+ aspectRatio: video.aspectRatio
10030
+ })),
10039
10031
  ...sources.map((source) => ({ kind: "mermaid", source, aspectRatio: 16 / 9 })),
10040
10032
  ...embeddedSpatialMedia(block)
10041
10033
  ];
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-Q6ELOAOQ.js";
14
14
  import {
15
15
  resolveIcon
16
- } from "./chunk-7N4G32LG.js";
16
+ } from "./chunk-CZ7AUSLI.js";
17
17
 
18
18
  // src/markdown/convert.ts
19
19
  function convertPosition(pos) {
package/dist/doc/index.js CHANGED
@@ -74,9 +74,9 @@ import {
74
74
  validateMarkdownSource,
75
75
  wordRevealDelay,
76
76
  writeDashboardLayoutsToFrontmatter
77
- } from "../chunk-J4ACZBO4.js";
77
+ } from "../chunk-BA5MMBI6.js";
78
78
  import "../chunk-3XEABCT3.js";
79
- import "../chunk-NM747LUO.js";
79
+ import "../chunk-QKNFR55R.js";
80
80
  import {
81
81
  ASCII_CHAR_H,
82
82
  ASCII_CHAR_W,
@@ -210,7 +210,7 @@ import {
210
210
  wrapWithPersistentLayers,
211
211
  writeCustomTemplatesToFrontmatter,
212
212
  writeCustomThemesToFrontmatter
213
- } from "../chunk-7IGKCHDP.js";
213
+ } from "../chunk-QLN6ILHM.js";
214
214
  import {
215
215
  ASCII_DIAGRAM_FENCE_LANGS,
216
216
  ASCII_TIMELINE_FENCE_LANGS,
@@ -268,7 +268,7 @@ import {
268
268
  } from "../chunk-PFH3WV6J.js";
269
269
  import "../chunk-JSGIWW35.js";
270
270
  import "../chunk-L7QZORLB.js";
271
- import "../chunk-PGWYC3S2.js";
271
+ import "../chunk-Y4OZ5DSG.js";
272
272
  import {
273
273
  CONTAINER_TEMPLATES,
274
274
  TABLE_FED_TEMPLATES,
@@ -276,7 +276,7 @@ import {
276
276
  resolveTemplateName
277
277
  } from "../chunk-WSFXV5BT.js";
278
278
  import "../chunk-Q6ELOAOQ.js";
279
- import "../chunk-7N4G32LG.js";
279
+ import "../chunk-CZ7AUSLI.js";
280
280
  import "../chunk-4VOD55SX.js";
281
281
  import "../chunk-4OQFLZ6G.js";
282
282
  import "../chunk-GHOPHGOK.js";
@@ -1,5 +1,5 @@
1
- import { a as IconEntry } from '../inlineIconMarker-CiE8Hlvz.js';
2
- export { I as ICONS, b as IconFamily, c as IconTextRun, h as hasIconMarker, i as iconClass, d as iconMarker, s as splitIconMarkers, e as stripIconMarkers } from '../inlineIconMarker-CiE8Hlvz.js';
1
+ import { a as IconEntry } from '../inlineIconMarker-BGjv-W4j.js';
2
+ export { I as ICONS, b as IconFamily, c as IconTextRun, h as hasIconMarker, i as iconClass, d as iconMarker, s as splitIconMarkers, e as stripIconMarkers } from '../inlineIconMarker-BGjv-W4j.js';
3
3
 
4
4
  /**
5
5
  * Icon Resolver
@@ -12,7 +12,7 @@ import {
12
12
  looksLikeIconToken,
13
13
  resolveIcon,
14
14
  suggestIcons
15
- } from "../chunk-7N4G32LG.js";
15
+ } from "../chunk-CZ7AUSLI.js";
16
16
  export {
17
17
  ICONS,
18
18
  canonicalIconToken,
@@ -1 +1 @@
1
- export { c as IconTextRun, h as hasIconMarker, i as iconClass, d as iconMarker, s as splitIconMarkers, e as stripIconMarkers } from '../inlineIconMarker-CiE8Hlvz.js';
1
+ export { c as IconTextRun, h as hasIconMarker, i as iconClass, d as iconMarker, s as splitIconMarkers, e as stripIconMarkers } from '../inlineIconMarker-BGjv-W4j.js';
package/dist/index.d.ts CHANGED
@@ -21,7 +21,7 @@ export { C as CoalesceOptions, P as PrunePolicy, R as RevertFailureReason, a as
21
21
  export { DATA_BACKUP_PREFIX, DocumentVersionManager, DocumentVersionManagerOptions, VERSIONS_PREFIX, VERSION_TIMESTAMP_PATTERN, buildDataBackupPath, buildVersionPath, coalesceVersions, formatVersionTimestamp, getDocBasename, listVersions, parseVersionPath, parseVersionTimestamp, pruneVersions, readVersion, revertToVersion, saveVersion } from './versions/index.js';
22
22
  export { BuildJsonFormTokensOptions, ControlKind, InferSchemaOptions, JsonFormValidationError, JsonFormValidator, SquisqAnnotatedSchema, SquisqHints, SquisqWhen, appendPointer, arrayItemKind, buildJsonFormTokens, chooseControl, escapePointerSegment, evaluateWhen, getByPointer, inferSchema, isSafeConditionRegex, pointerSegments, primaryType, resolveFlag, resolveJsonFormTheme, resolveRef, setByPointer, toPointer } from './jsonForm/index.js';
23
23
  export { AnimatedImageFormat, AnimatedImageInfo, IMAGE_EDIT_ASSETS_PREFIX, IMAGE_EDIT_DEFAULT_BASENAME, IMAGE_EDIT_STATE_FILENAME, IMAGE_EDIT_VERSIONS_PREFIX, ImageEditExportFormat, ImageEditExportOptions, ImageEditVersionManager, ImageEditVersionManagerOptions, RevertImageEditFailureReason, RevertImageEditOptions, RevertImageEditResult, SaveImageEditVersionOptions, SaveImageEditVersionResult, addLayer, buildImageEditVersionPath, buildSvgString, coalesceImageEditVersions, createEmptyImageEditDoc, exportImageEditDoc, inspectAnimatedImage, listImageEditVersions, mayBeAnimatedImage, parseImageEditVersionPath, pruneImageEditVersions, readImageEditDoc, readImageEditVersion, readImageEditVersionText, removeLayer, reorderLayer, revertToImageEditVersion, saveImageEditVersion, setCanvas, touch, updateLayer, writeImageEditDoc } from './imageEdit/index.js';
24
- export { I as ICONS, a as IconEntry, b as IconFamily, c as IconTextRun, h as hasIconMarker, i as iconClass, d as iconMarker, s as splitIconMarkers, e as stripIconMarkers } from './inlineIconMarker-CiE8Hlvz.js';
24
+ export { I as ICONS, a as IconEntry, b as IconFamily, c as IconTextRun, h as hasIconMarker, i as iconClass, d as iconMarker, s as splitIconMarkers, e as stripIconMarkers } from './inlineIconMarker-BGjv-W4j.js';
25
25
  export { IconSuggestion, canonicalIconToken, iconGlyph, looksLikeIconToken, resolveIcon, suggestIcons } from './icons/index.js';
26
26
  export { BlockContentProfile, RecommendationResult, profileBlockContents, recommendTemplatesForBlock } from './recommend/index.js';
27
27
  export { AdvanceCoverage, AlignConfig, AlignInput, BandpassState, BuildAdvanceTimingOptions, BuildNarrationTimingOptions, BuildScriptOptions, DEFAULT_ALIGN_CONFIG, DEFAULT_FEATURE_CONFIG, DEFAULT_NUCLEI_CONFIG, DEFAULT_PACING_CONFIG, DEFAULT_VAD_CONFIG, EMPTY_ADVANCE_LOG, FeatureConfig, FeatureState, FrameFeatures, NarrationAlignment, NarrationBlockRange, NarrationScript, NarrationSessionConfig, NarrationSessionState, NarrationTimingBlock, NarrationTimingGenerator, NarrationTimingJsonV3, NarrationTimingMethod, NarrationTrace, NucleiConfig, NucleiState, PacingConfig, PacingState, PacingTick, ScriptBlockRange, ScriptToken, SlideAdvance, SlideAdvanceLog, TraceSample, VadConfig, VadState, WordTiming, advanceCoverage, alignNarration, bandpassRun, buildAdvanceTimingJson, buildNarrationScript, buildNarrationTimingJson, createBandpass, createFeatureState, createNarrationSession, createNucleiState, createPacingState, createVadState, detectSyllableOnsets, downsampleTrace, estimateSyllables, expectedSyllablesAt, extractFrameFeatures, featureStep, narrationSessionStep, nucleiStep, pacingStep, parseNarrationTimingJson, reanchorPacing, reanchorSession, recordSlideShown, resolveNarrationTimingGenerator, traceWordPosAt, vadStep, wordIndexAtChar, wordIndexAtTime, wordPosAtExpectedSyllables } from './narration/index.js';
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  recordSlideShown,
28
28
  traceWordPosAt,
29
29
  vadStep
30
- } from "./chunk-RYO4QW6R.js";
30
+ } from "./chunk-JVY3NH6H.js";
31
31
  import {
32
32
  fenceRendererLangs
33
33
  } from "./chunk-PGI7HSWE.js";
@@ -229,7 +229,7 @@ import {
229
229
  validateMarkdownSource,
230
230
  wordRevealDelay,
231
231
  writeDashboardLayoutsToFrontmatter
232
- } from "./chunk-J4ACZBO4.js";
232
+ } from "./chunk-BA5MMBI6.js";
233
233
  import {
234
234
  buildNarrationTimingJson,
235
235
  parseNarrationTimingJson,
@@ -261,7 +261,7 @@ import {
261
261
  serializePresentationPlan,
262
262
  transformNarratedSegment,
263
263
  usesDynamicPresentation
264
- } from "./chunk-NM747LUO.js";
264
+ } from "./chunk-QKNFR55R.js";
265
265
  import {
266
266
  ASCII_CHAR_H,
267
267
  ASCII_CHAR_W,
@@ -401,7 +401,7 @@ import {
401
401
  wrapWithPersistentLayers,
402
402
  writeCustomTemplatesToFrontmatter,
403
403
  writeCustomThemesToFrontmatter
404
- } from "./chunk-7IGKCHDP.js";
404
+ } from "./chunk-QLN6ILHM.js";
405
405
  import {
406
406
  ASCII_DIAGRAM_FENCE_LANGS,
407
407
  ASCII_TIMELINE_FENCE_LANGS,
@@ -567,7 +567,7 @@ import {
567
567
  stringifyMarkdown,
568
568
  unwrapMarkdownSource,
569
569
  wrapMarkdownSource
570
- } from "./chunk-LJZHC6GN.js";
570
+ } from "./chunk-K2Z7K65P.js";
571
571
  import {
572
572
  DEFAULT_MARKDOWN_SAFETY_LIMITS,
573
573
  MarkdownLimitError,
@@ -579,7 +579,7 @@ import {
579
579
  resolveMarkdownSafetyLimits,
580
580
  serializePandocAttributes,
581
581
  toMdast
582
- } from "./chunk-PGWYC3S2.js";
582
+ } from "./chunk-Y4OZ5DSG.js";
583
583
  import {
584
584
  BLOCK_META_KEY_DESCRIPTORS,
585
585
  CONTAINER_TEMPLATES,
@@ -634,7 +634,7 @@ import {
634
634
  looksLikeIconToken,
635
635
  resolveIcon,
636
636
  suggestIcons
637
- } from "./chunk-7N4G32LG.js";
637
+ } from "./chunk-CZ7AUSLI.js";
638
638
  import {
639
639
  DEFAULT_TRANSITION_DURATION_SECONDS,
640
640
  TRANSITION_DIRECTIONS,
@@ -4,8 +4,8 @@
4
4
  * FontAwesome Free icon catalog. Run `node scripts/generate-icon-data.mjs`
5
5
  * to regenerate after bumping @fortawesome/fontawesome-free.
6
6
  *
7
- * Entry count: 2141
8
- * Generated: 2026-05-14T03:38:13.863Z
7
+ * Entry count: 2163
8
+ * Generated: 2026-10-10T13:40:14.471Z
9
9
  */
10
10
  type IconFamily = 'brands' | 'solid' | 'regular';
11
11
  interface IconEntry {
@@ -17,7 +17,7 @@ import {
17
17
  stringifyMarkdown,
18
18
  unwrapMarkdownSource,
19
19
  wrapMarkdownSource
20
- } from "../chunk-LJZHC6GN.js";
20
+ } from "../chunk-K2Z7K65P.js";
21
21
  import {
22
22
  DEFAULT_MARKDOWN_SAFETY_LIMITS,
23
23
  MarkdownLimitError,
@@ -29,7 +29,7 @@ import {
29
29
  resolveMarkdownSafetyLimits,
30
30
  serializePandocAttributes,
31
31
  toMdast
32
- } from "../chunk-PGWYC3S2.js";
32
+ } from "../chunk-Y4OZ5DSG.js";
33
33
  import {
34
34
  BLOCK_META_KEY_DESCRIPTORS,
35
35
  KNOWN_BLOCK_META_KEYS,
@@ -73,7 +73,7 @@ import {
73
73
  videoEmbedIframeAttributes,
74
74
  walkMarkdownTree
75
75
  } from "../chunk-Q6ELOAOQ.js";
76
- import "../chunk-7N4G32LG.js";
76
+ import "../chunk-CZ7AUSLI.js";
77
77
  import "../chunk-4VOD55SX.js";
78
78
  export {
79
79
  BLOCK_META_KEY_DESCRIPTORS,
@@ -27,7 +27,7 @@ import {
27
27
  recordSlideShown,
28
28
  traceWordPosAt,
29
29
  vadStep
30
- } from "../chunk-RYO4QW6R.js";
30
+ } from "../chunk-JVY3NH6H.js";
31
31
  import "../chunk-NEWNNLWN.js";
32
32
  import {
33
33
  buildNarrationTimingJson,
@@ -41,7 +41,7 @@ import {
41
41
  wordIndexAtChar,
42
42
  wordIndexAtTime,
43
43
  wordPosAtExpectedSyllables
44
- } from "../chunk-7IGKCHDP.js";
44
+ } from "../chunk-QLN6ILHM.js";
45
45
  import "../chunk-A5QJJZ5S.js";
46
46
  import "../chunk-PUS54YU6.js";
47
47
  import "../chunk-PFH3WV6J.js";
@@ -24,17 +24,17 @@ import {
24
24
  serializePresentationPlan,
25
25
  transformNarratedSegment,
26
26
  usesDynamicPresentation
27
- } from "../chunk-NM747LUO.js";
28
- import "../chunk-7IGKCHDP.js";
27
+ } from "../chunk-QKNFR55R.js";
28
+ import "../chunk-QLN6ILHM.js";
29
29
  import "../chunk-A5QJJZ5S.js";
30
30
  import "../chunk-SVN7T6BK.js";
31
31
  import "../chunk-PUS54YU6.js";
32
32
  import "../chunk-PFH3WV6J.js";
33
33
  import "../chunk-L7QZORLB.js";
34
- import "../chunk-PGWYC3S2.js";
34
+ import "../chunk-Y4OZ5DSG.js";
35
35
  import "../chunk-WSFXV5BT.js";
36
36
  import "../chunk-Q6ELOAOQ.js";
37
- import "../chunk-7N4G32LG.js";
37
+ import "../chunk-CZ7AUSLI.js";
38
38
  import "../chunk-4VOD55SX.js";
39
39
  import "../chunk-GHOPHGOK.js";
40
40
  import "../chunk-XRW6P7IF.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/squisq",
3
- "version": "2.11.18",
3
+ "version": "2.11.19",
4
4
  "description": "Headless utilities for doc/block rendering, spatial math, Markdown, and storage",
5
5
  "license": "MIT",
6
6
  "author": "Bendyline",
@@ -157,7 +157,7 @@
157
157
  "genson-js": "0.0.8",
158
158
  "hast-util-from-html": "2.0.3",
159
159
  "localforage": "1.10.0",
160
- "ngeohash": "0.6.3",
160
+ "ngeohash": "0.6.4",
161
161
  "remark-directive": "3.0.1",
162
162
  "remark-frontmatter": "5.0.0",
163
163
  "remark-gfm": "4.0.1",