@bendyline/squisq 2.13.14 → 2.13.15

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/dist/{Doc-BhvotZx_.d.ts → Doc-C_Sh49ot.d.ts} +59 -6
  2. package/dist/{ImageEditDoc-D8hYio6b.d.ts → ImageEditDoc-Sqw3Tw-R.d.ts} +1 -1
  3. package/dist/{chunk-OIQ2GO2O.js → chunk-2CB37BOU.js} +1 -1
  4. package/dist/{chunk-CTT4XAGO.js → chunk-4HQ7QZKB.js} +2289 -630
  5. package/dist/chunk-C7DKMO4H.js +88 -0
  6. package/dist/{chunk-C4SB3NN4.js → chunk-DDJHIZED.js} +1 -1
  7. package/dist/{chunk-J2G6EOEJ.js → chunk-FYP7GNER.js} +72 -13
  8. package/dist/chunk-N3FQSUVT.js +515 -0
  9. package/dist/{chunk-SGNWO7OF.js → chunk-OFE5RZWW.js} +490 -24
  10. package/dist/{chunk-YQQWE4HG.js → chunk-OJCAKUHW.js} +192 -260
  11. package/dist/{chunk-7MS26OXD.js → chunk-UDPPWYYM.js} +6 -0
  12. package/dist/{chunk-5DFFVW75.js → chunk-Y34KYMAS.js} +1 -1
  13. package/dist/doc/index.d.ts +320 -22
  14. package/dist/doc/index.js +54 -8
  15. package/dist/fence/index.d.ts +1 -1
  16. package/dist/generate/index.d.ts +1 -1
  17. package/dist/imageEdit/index.d.ts +3 -3
  18. package/dist/index.d.ts +8 -8
  19. package/dist/index.js +125 -21
  20. package/dist/jsonForm/index.d.ts +1 -1
  21. package/dist/markdown/index.js +3 -3
  22. package/dist/{materializePageSection-CWxou4mX.d.ts → materializePageSection-Dmf-rf1b.d.ts} +121 -8
  23. package/dist/mediaEdit/index.d.ts +2 -2
  24. package/dist/narration/index.d.ts +1 -1
  25. package/dist/narration/index.js +4 -4
  26. package/dist/recommend/index.d.ts +129 -2
  27. package/dist/recommend/index.js +11 -3
  28. package/dist/schemas/index.d.ts +4 -4
  29. package/dist/{themeLibrary-BIYE6aLw.d.ts → themeLibrary-B4VLovhW.d.ts} +1 -1
  30. package/dist/timing/index.d.ts +66 -2
  31. package/dist/timing/index.js +12 -0
  32. package/dist/transform/index.d.ts +173 -16
  33. package/dist/transform/index.js +55 -16
  34. package/package.json +1 -1
  35. package/dist/chunk-FCB6JLWB.js +0 -125
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ import {
31
31
  traceWordPosAt,
32
32
  transcriptWordKeys,
33
33
  vadStep
34
- } from "./chunk-OIQ2GO2O.js";
34
+ } from "./chunk-2CB37BOU.js";
35
35
  import {
36
36
  fenceRendererLangs
37
37
  } from "./chunk-PGI7HSWE.js";
@@ -59,19 +59,35 @@ import {
59
59
  selectTranscriptClips
60
60
  } from "./chunk-ZP5F7LUH.js";
61
61
  import {
62
+ PRESENTATION_AUTHOR_LIMITS,
63
+ PRESENTATION_SLIDE_FORMAT,
64
+ PRESENTATION_STORYBOARD_FORMAT,
65
+ addressesAModel,
62
66
  distinctiveStems,
67
+ groundPresentationBeat,
63
68
  groundingSentences,
64
69
  isGroundedParaphrase,
65
70
  isVerbatimQuote,
66
71
  normalizeGroundingText,
67
72
  numbersIn,
73
+ presentationCorrection,
74
+ presentationRetryContext,
75
+ presentationSlidePrompt,
76
+ presentationSlideRequest,
77
+ presentationSlidesToWord,
78
+ presentationStoryboardPrompt,
79
+ presentationStoryboardRequest,
80
+ presentationStoryboardTokens,
81
+ presentationUsesStoryboard,
68
82
  rangeEndOnly,
83
+ readPresentationSlideReply,
84
+ readPresentationStoryboardReply,
69
85
  restatesHeadline,
70
86
  sourceNumbers,
71
87
  spelledNumbers,
72
88
  statedRanges,
73
89
  ungroundedNumber
74
- } from "./chunk-FCB6JLWB.js";
90
+ } from "./chunk-N3FQSUVT.js";
75
91
  import {
76
92
  DATA_BACKUP_PREFIX,
77
93
  DocumentVersionManager,
@@ -250,21 +266,16 @@ import {
250
266
  validateMarkdownSource,
251
267
  wordRevealDelay,
252
268
  writeDashboardLayoutsToFrontmatter
253
- } from "./chunk-J2G6EOEJ.js";
269
+ } from "./chunk-FYP7GNER.js";
254
270
  import {
255
271
  buildNarrationTimingJson,
256
272
  parseNarrationTimingJson,
257
273
  resolveNarrationTimingGenerator
258
274
  } from "./chunk-HKHOFTGM.js";
259
275
  import {
260
- AUTHORED_PRESENTATION_LAYOUT,
261
- CONCEPT_TEMPLATES,
262
276
  DEFAULT_TRANSFORM_STYLE_ID,
263
277
  DYNAMIC_PRESENTATION_STYLE,
264
278
  PRESENTATION_HINTS_KEY,
265
- PRESENTATION_KEY,
266
- PRESENTATION_LAYOUTS,
267
- PRESENTATION_LIMITS,
268
279
  allocateTiming,
269
280
  analyzeBlocks,
270
281
  applySavedPresentation,
@@ -273,7 +284,6 @@ import {
273
284
  compilePresentationPlan,
274
285
  conceptBuildSpec,
275
286
  conceptRevealTiming,
276
- conceptTemplate,
277
287
  createPresentationPlan,
278
288
  createTransformStyleRegistry,
279
289
  defaultPresentationHints,
@@ -282,28 +292,33 @@ import {
282
292
  getTransformStyleSummaries,
283
293
  matchPointsToSentences,
284
294
  parsePresentationHints,
285
- parsePresentationPlan,
286
- presentationLayoutFits,
287
295
  presentationPassageKey,
288
296
  presentationSections,
289
- presentationStat,
290
297
  resolveTransformStyle,
291
298
  serializePresentationHints,
292
- serializePresentationPlan,
293
299
  transformNarratedSegment,
294
300
  usesDynamicPresentation
295
- } from "./chunk-YQQWE4HG.js";
301
+ } from "./chunk-OJCAKUHW.js";
296
302
  import {
303
+ AUTHORED_PRESENTATION_LAYOUT,
297
304
  AUTHORING_TRICKS,
298
305
  BASE_INPUT_DESCRIPTORS,
299
306
  BLOCK_MEDIA_LAYOUT_POLICIES,
307
+ CONCEPT_MAX_DRAWN,
308
+ CONCEPT_SPECS,
309
+ CONCEPT_TEMPLATES,
300
310
  DEFAULT_LAYOUT,
301
311
  DIAGRAM_LABEL_HORIZONTAL_PADDING,
302
312
  DIAGRAM_LABEL_LINE_HEIGHT,
303
313
  DIAGRAM_LABEL_MIN_FONT_SIZE,
304
314
  DIAGRAM_LABEL_VERTICAL_PADDING,
305
315
  GEOMETRY_BOUND_TEMPLATES,
316
+ MARKDOWN_SHAPE_EXAMPLES,
317
+ PRESENTATION_KEY,
318
+ PRESENTATION_LAYOUTS,
306
319
  PRESENTATION_LAYOUT_GUIDE,
320
+ PRESENTATION_LAYOUT_LABELS,
321
+ PRESENTATION_LIMITS,
307
322
  SHAPE_NAMES,
308
323
  TEMPLATE_AUTHORING_METADATA,
309
324
  TEMPLATE_GUIDES,
@@ -328,6 +343,11 @@ import {
328
343
  computeDrawingLayout,
329
344
  computeLayoutLayers,
330
345
  conceptBuildStepTexts,
346
+ conceptDowngrade,
347
+ conceptDrawsAs,
348
+ conceptItemCount,
349
+ conceptItemsProblem,
350
+ conceptTemplate,
331
351
  contentBlock,
332
352
  countBlocks,
333
353
  countUpSpecFor,
@@ -357,6 +377,7 @@ import {
357
377
  formatCountValue,
358
378
  frostedBigTextLayout,
359
379
  fullBleedQuote,
380
+ funnelBlock,
360
381
  getAccentLayout,
361
382
  getAvailableTemplates,
362
383
  getBlockBodyText,
@@ -372,6 +393,7 @@ import {
372
393
  guideText,
373
394
  hasBlockBuilds,
374
395
  hasTemplate,
396
+ hubBlock,
375
397
  imageWithCaption,
376
398
  isDataFence,
377
399
  isGeometryBoundTemplate,
@@ -382,20 +404,31 @@ import {
382
404
  lintTemplateParams,
383
405
  listBlock,
384
406
  mapBlock,
407
+ markdownShapeExample,
408
+ markdownShapeGuide,
409
+ markdownShapeSummary,
385
410
  markdownToDoc,
386
411
  materializeBlockLayers,
412
+ matrixBlock,
387
413
  mediaOnly,
388
414
  motionDelay,
389
415
  motionEntrance,
390
416
  normalizeChartTable,
391
417
  normalizeShapeKind,
392
418
  parseDataFence,
419
+ parsePresentationPlan,
393
420
  parseStatNumber,
394
421
  parseYamlSubset,
395
422
  photoGrid,
396
423
  planContentBuilds,
424
+ presentationBeatExtras,
425
+ presentationLayoutFits,
426
+ presentationLayoutNeeds,
427
+ presentationLayoutProblem,
428
+ presentationStat,
397
429
  processBlock,
398
430
  pullQuote,
431
+ pyramidBlock,
399
432
  quoteBlock,
400
433
  readCustomTemplatesFromFrontmatter,
401
434
  readCustomThemesFromFrontmatter,
@@ -407,9 +440,10 @@ import {
407
440
  rightFeature,
408
441
  scaleAnimationDuration,
409
442
  sectionHeader,
443
+ serializePresentationPlan,
410
444
  shouldUseShadow,
411
- splitConceptItem,
412
445
  statHighlight,
446
+ statsBlock,
413
447
  templateCatalog,
414
448
  templateRegistry,
415
449
  themeWantsAmbientMotion,
@@ -423,6 +457,7 @@ import {
423
457
  topFeature,
424
458
  treeBlock,
425
459
  twoColumn,
460
+ vennBlock,
426
461
  videoPullQuote,
427
462
  videoWithCaption,
428
463
  wordIndexAtChar,
@@ -431,7 +466,7 @@ import {
431
466
  wrapWithPersistentLayers,
432
467
  writeCustomTemplatesToFrontmatter,
433
468
  writeCustomThemesToFrontmatter
434
- } from "./chunk-CTT4XAGO.js";
469
+ } from "./chunk-4HQ7QZKB.js";
435
470
  import {
436
471
  ASCII_CHAR_H,
437
472
  ASCII_CHAR_W,
@@ -445,13 +480,16 @@ import {
445
480
  asciiTimelineToTemplateData,
446
481
  autoTemplatePreservesContent,
447
482
  canvasToAsciiCell,
483
+ classifyListShape,
448
484
  computeDiagramLayout,
449
485
  deriveTemplateInputs,
450
486
  detectAsciiDiagram,
451
487
  detectAsciiTimeline,
452
488
  detectTree,
489
+ extractBlockquote,
453
490
  extractBlockquoteText,
454
491
  extractBodyPlainText,
492
+ extractConceptItems,
455
493
  extractEmbeddedVideos,
456
494
  extractFirstEmbeddedVideo,
457
495
  extractFirstImage,
@@ -469,6 +507,7 @@ import {
469
507
  isExplicitDiagramLang,
470
508
  isExplicitTimelineLang,
471
509
  isExplicitTreeLang,
510
+ isFigureText,
472
511
  isMaterializedMediaNode,
473
512
  isMediaAnnotationName,
474
513
  isPictureFence,
@@ -482,13 +521,20 @@ import {
482
521
  parseStandaloneAnnotation,
483
522
  parseTree,
484
523
  parseWrappedFlowTimeline,
524
+ pickAutoTemplate,
485
525
  profileBlockContents,
526
+ readMatrixItems,
486
527
  recommendTemplatesForBlock,
487
528
  renderMarkdownBlocksHtml,
529
+ shapeIsStated,
530
+ splitConceptItem,
531
+ splitStatItem,
488
532
  treeFromMarkdownList,
489
533
  treeFromTemplateData,
490
- treeToTemplateData
491
- } from "./chunk-SGNWO7OF.js";
534
+ treeToTemplateData,
535
+ unstatedShapeFallback,
536
+ vennOverlapIndex
537
+ } from "./chunk-OFE5RZWW.js";
492
538
  import {
493
539
  extractContent,
494
540
  mapElementToBlock,
@@ -629,7 +675,7 @@ import {
629
675
  stringifyMarkdown,
630
676
  unwrapMarkdownSource,
631
677
  wrapMarkdownSource
632
- } from "./chunk-5DFFVW75.js";
678
+ } from "./chunk-Y34KYMAS.js";
633
679
  import {
634
680
  DEFAULT_MARKDOWN_SAFETY_LIMITS,
635
681
  MarkdownLimitError,
@@ -644,13 +690,13 @@ import {
644
690
  serializePandocAttributes,
645
691
  toMdast,
646
692
  wikiLinkPath
647
- } from "./chunk-C4SB3NN4.js";
693
+ } from "./chunk-DDJHIZED.js";
648
694
  import {
649
695
  CONTAINER_TEMPLATES,
650
696
  TABLE_FED_TEMPLATES,
651
697
  isContainerTemplate,
652
698
  resolveTemplateName
653
- } from "./chunk-7MS26OXD.js";
699
+ } from "./chunk-UDPPWYYM.js";
654
700
  import {
655
701
  BLOCK_META_KEY_DESCRIPTORS,
656
702
  KNOWN_BLOCK_META_KEYS,
@@ -727,6 +773,13 @@ import {
727
773
  resolveBlockTransition,
728
774
  resolveTransitionDuration
729
775
  } from "./chunk-P53Z4RYC.js";
776
+ import {
777
+ docChapters,
778
+ formatCaptionsSrt,
779
+ formatCaptionsVtt,
780
+ formatChaptersFfmetadata,
781
+ formatChaptersText
782
+ } from "./chunk-C7DKMO4H.js";
730
783
  import {
731
784
  buildCaptionTrack
732
785
  } from "./chunk-5HWYSUXS.js";
@@ -765,6 +818,8 @@ export {
765
818
  BUILD_PARAM_KEYS,
766
819
  BUILD_PREVIOUS,
767
820
  BUILTIN_DASHBOARD_LAYOUTS,
821
+ CONCEPT_MAX_DRAWN,
822
+ CONCEPT_SPECS,
768
823
  CONCEPT_TEMPLATES,
769
824
  CONTAINER_TEMPLATES,
770
825
  COVER_SLIDE_FRONTMATTER_KEYS,
@@ -826,6 +881,7 @@ export {
826
881
  LOCAL_ONLY_RESOURCE_POLICY,
827
882
  LocalForageAdapter,
828
883
  LocalStorageAdapter,
884
+ MARKDOWN_SHAPE_EXAMPLES,
829
885
  MARKDOWN_SOURCE_TRANSFORMS,
830
886
  MAX_COVER_SLIDE_DURATION_SECONDS,
831
887
  MOTION_PROFILES,
@@ -853,11 +909,15 @@ export {
853
909
  PAGE_SHADOWS,
854
910
  PAGE_VARIANTS,
855
911
  PATH_SHAPE_KINDS,
912
+ PRESENTATION_AUTHOR_LIMITS,
856
913
  PRESENTATION_HINTS_KEY,
857
914
  PRESENTATION_KEY,
858
915
  PRESENTATION_LAYOUTS,
859
916
  PRESENTATION_LAYOUT_GUIDE,
917
+ PRESENTATION_LAYOUT_LABELS,
860
918
  PRESENTATION_LIMITS,
919
+ PRESENTATION_SLIDE_FORMAT,
920
+ PRESENTATION_STORYBOARD_FORMAT,
861
921
  PROOF_DIALECTS,
862
922
  PROOF_FRONTMATTER_KEYS,
863
923
  PROOF_JOIN_SEPARATOR,
@@ -885,6 +945,7 @@ export {
885
945
  accentForViewport,
886
946
  accentToColorScheme,
887
947
  addLayer,
948
+ addressesAModel,
888
949
  adjustY,
889
950
  advanceCoverage,
890
951
  alignNarration,
@@ -950,6 +1011,7 @@ export {
950
1011
  categorizeLintKind,
951
1012
  chooseControl,
952
1013
  chooseDashboardLayout,
1014
+ classifyListShape,
953
1015
  cleanupMarkdownSource,
954
1016
  clipEndpoints,
955
1017
  clipPoint,
@@ -966,6 +1028,10 @@ export {
966
1028
  computeLayoutLayers,
967
1029
  conceptBuildSpec,
968
1030
  conceptBuildStepTexts,
1031
+ conceptDowngrade,
1032
+ conceptDrawsAs,
1033
+ conceptItemCount,
1034
+ conceptItemsProblem,
969
1035
  conceptRevealTiming,
970
1036
  conceptTemplate,
971
1037
  condenseMarkdownSource,
@@ -1017,6 +1083,7 @@ export {
1017
1083
  detectTree,
1018
1084
  diagramBlock,
1019
1085
  distinctiveStems,
1086
+ docChapters,
1020
1087
  docToMarkdown,
1021
1088
  documentTitleFromFileName,
1022
1089
  downsampleTrace,
@@ -1036,8 +1103,10 @@ export {
1036
1103
  expandPersistentLayers,
1037
1104
  expectedSyllablesAt,
1038
1105
  exportImageEditDoc,
1106
+ extractBlockquote,
1039
1107
  extractBlockquoteText,
1040
1108
  extractBodyPlainText,
1109
+ extractConceptItems,
1041
1110
  extractContent,
1042
1111
  extractDocImages,
1043
1112
  extractEmbeddedVideos,
@@ -1068,6 +1137,10 @@ export {
1068
1137
  flattenRenderableBlocks,
1069
1138
  fontStack,
1070
1139
  formatBlockScalar,
1140
+ formatCaptionsSrt,
1141
+ formatCaptionsVtt,
1142
+ formatChaptersFfmetadata,
1143
+ formatChaptersText,
1071
1144
  formatCountUp,
1072
1145
  formatCountValue,
1073
1146
  formatFrontmatterValue,
@@ -1077,6 +1150,7 @@ export {
1077
1150
  fromMdast,
1078
1151
  frostedBigTextLayout,
1079
1152
  fullBleedQuote,
1153
+ funnelBlock,
1080
1154
  geohashOverlapsBounds,
1081
1155
  geohashToHierarchicalPath,
1082
1156
  getAccentLayout,
@@ -1118,6 +1192,7 @@ export {
1118
1192
  getTwoColumnPositions,
1119
1193
  getViewport,
1120
1194
  getViewportOrientation,
1195
+ groundPresentationBeat,
1121
1196
  groundingSentences,
1122
1197
  guessFontFallback,
1123
1198
  guideText,
@@ -1127,6 +1202,7 @@ export {
1127
1202
  hashString,
1128
1203
  haversineDistance,
1129
1204
  hexHueDegrees,
1205
+ hubBlock,
1130
1206
  iconClass,
1131
1207
  iconGlyph,
1132
1208
  iconMarker,
@@ -1147,6 +1223,7 @@ export {
1147
1223
  isExplicitDiagramLang,
1148
1224
  isExplicitTimelineLang,
1149
1225
  isExplicitTreeLang,
1226
+ isFigureText,
1150
1227
  isGeometryBoundTemplate,
1151
1228
  isGroundedParaphrase,
1152
1229
  isHex,
@@ -1187,6 +1264,9 @@ export {
1187
1264
  mapElementToBlock,
1188
1265
  mapJoinedSpanToSegment,
1189
1266
  markdownBlockSeparatorLines,
1267
+ markdownShapeExample,
1268
+ markdownShapeGuide,
1269
+ markdownShapeSummary,
1190
1270
  markdownToDoc,
1191
1271
  markerPath,
1192
1272
  matchByKeywordAffinity,
@@ -1199,6 +1279,7 @@ export {
1199
1279
  materializeFlashcards,
1200
1280
  materializePageSection,
1201
1281
  materializePageSections,
1282
+ matrixBlock,
1202
1283
  mayBeAnimatedImage,
1203
1284
  mediaKindForUrl,
1204
1285
  mediaOnly,
@@ -1253,15 +1334,28 @@ export {
1253
1334
  photoGrid,
1254
1335
  phraseOffset,
1255
1336
  phraseStartTime,
1337
+ pickAutoTemplate,
1256
1338
  pickContrastingText,
1257
1339
  pipStyleVars,
1258
1340
  plainTextFromInlineHtml,
1259
1341
  planContentBuilds,
1260
1342
  pointerSegments,
1343
+ presentationBeatExtras,
1344
+ presentationCorrection,
1261
1345
  presentationLayoutFits,
1346
+ presentationLayoutNeeds,
1347
+ presentationLayoutProblem,
1262
1348
  presentationPassageKey,
1349
+ presentationRetryContext,
1263
1350
  presentationSections,
1351
+ presentationSlidePrompt,
1352
+ presentationSlideRequest,
1353
+ presentationSlidesToWord,
1264
1354
  presentationStat,
1355
+ presentationStoryboardPrompt,
1356
+ presentationStoryboardRequest,
1357
+ presentationStoryboardTokens,
1358
+ presentationUsesStoryboard,
1265
1359
  previewBlockTemplate,
1266
1360
  primaryType,
1267
1361
  processBlock,
@@ -1269,6 +1363,7 @@ export {
1269
1363
  pruneImageEditVersions,
1270
1364
  pruneVersions,
1271
1365
  pullQuote,
1366
+ pyramidBlock,
1272
1367
  quoteAttrValue,
1273
1368
  quoteBlock,
1274
1369
  rangeEndOnly,
@@ -1280,6 +1375,9 @@ export {
1280
1375
  readImageEditDoc,
1281
1376
  readImageEditVersion,
1282
1377
  readImageEditVersionText,
1378
+ readMatrixItems,
1379
+ readPresentationSlideReply,
1380
+ readPresentationStoryboardReply,
1283
1381
  readProofingSettings,
1284
1382
  readVersion,
1285
1383
  reanchorPacing,
@@ -1356,6 +1454,7 @@ export {
1356
1454
  setByPointer,
1357
1455
  setCanvas,
1358
1456
  setFrontmatterValues,
1457
+ shapeIsStated,
1359
1458
  shapePath,
1360
1459
  shouldUseShadow,
1361
1460
  snapEndpoints,
@@ -1366,8 +1465,10 @@ export {
1366
1465
  splitFrontmatterBlock,
1367
1466
  splitIconMarkers,
1368
1467
  splitKeyValueToken,
1468
+ splitStatItem,
1369
1469
  statHighlight,
1370
1470
  statedRanges,
1471
+ statsBlock,
1371
1472
  stringifyHtmlNodes,
1372
1473
  stringifyMarkdown,
1373
1474
  stripBlockBackdropLayer,
@@ -1406,6 +1507,7 @@ export {
1406
1507
  twoColumn,
1407
1508
  ungroundedNumber,
1408
1509
  unquoteAttrValue,
1510
+ unstatedShapeFallback,
1409
1511
  unwrapMarkdownSource,
1410
1512
  updateLayer,
1411
1513
  usesDynamicPresentation,
@@ -1416,6 +1518,8 @@ export {
1416
1518
  validateMarkdownDoc,
1417
1519
  validateMarkdownSource,
1418
1520
  validateTheme,
1521
+ vennBlock,
1522
+ vennOverlapIndex,
1419
1523
  videoEmbedFromIframe,
1420
1524
  videoEmbedIframeAttributes,
1421
1525
  videoPullQuote,
@@ -1,4 +1,4 @@
1
- import { bH as Theme, bt as SurfaceScheme } from '../Doc-BhvotZx_.js';
1
+ import { bN as Theme, bz as SurfaceScheme } from '../Doc-C_Sh49ot.js';
2
2
  import '../types-Zk8qYuaT.js';
3
3
 
4
4
  /**
@@ -17,7 +17,7 @@ import {
17
17
  stringifyMarkdown,
18
18
  unwrapMarkdownSource,
19
19
  wrapMarkdownSource
20
- } from "../chunk-5DFFVW75.js";
20
+ } from "../chunk-Y34KYMAS.js";
21
21
  import {
22
22
  DEFAULT_MARKDOWN_SAFETY_LIMITS,
23
23
  MarkdownLimitError,
@@ -32,8 +32,8 @@ import {
32
32
  serializePandocAttributes,
33
33
  toMdast,
34
34
  wikiLinkPath
35
- } from "../chunk-C4SB3NN4.js";
36
- import "../chunk-7MS26OXD.js";
35
+ } from "../chunk-DDJHIZED.js";
36
+ import "../chunk-UDPPWYYM.js";
37
37
  import {
38
38
  BLOCK_META_KEY_DESCRIPTORS,
39
39
  KNOWN_BLOCK_META_KEYS,
@@ -1,4 +1,4 @@
1
- import { k as Block, aY as PageSectionKind, aW as PageEmphasis, bJ as ThemeColorScheme, aU as PageBackground, bH as Theme, cc as ViewportConfig, D as CustomTemplateDefinition, a$ as PageVariant, br as StartBlockConfig, T as Doc, bK as ThemePageStyle } from './Doc-BhvotZx_.js';
1
+ import { k as Block, b0 as PageSectionKind, a_ as PageEmphasis, bP as ThemeColorScheme, aY as PageBackground, bN as Theme, cj as ViewportConfig, D as CustomTemplateDefinition, b3 as PageVariant, bw as StartBlockConfig, U as Doc, bQ as ThemePageStyle } from './Doc-C_Sh49ot.js';
2
2
  import { M as MarkdownBlockNode } from './types-Zk8qYuaT.js';
3
3
 
4
4
  /** A prominent number found inside a short stat-like string. */
@@ -15,7 +15,7 @@ interface NumberHighlightMatch {
15
15
 
16
16
  declare const PRESENTATION_KEY = "squisq-presentation";
17
17
  /** The layouts a summary (a headline and up to four points) can fill. */
18
- declare const PRESENTATION_LAYOUTS: readonly ["title", "divider", "statement", "emphasis", "quote", "stat", "definition", "list", "comparison", "steps", "image", "cards", "process", "cycle", "layers"];
18
+ declare const PRESENTATION_LAYOUTS: readonly ["title", "divider", "statement", "emphasis", "quote", "stat", "definition", "list", "comparison", "steps", "image", "cards", "process", "cycle", "layers", "stats", "pyramid", "funnel", "hub", "venn", "matrix"];
19
19
  type PresentationLayout = (typeof PRESENTATION_LAYOUTS)[number];
20
20
  /** Shows a section's own block, with the template its author chose, instead of
21
21
  * a summary. A section shown this way is one slide for its whole narration. */
@@ -27,12 +27,26 @@ declare function presentationStat(headline: string, points: readonly string[]):
27
27
  line: string;
28
28
  index: number;
29
29
  } | null;
30
- /** Whether a summary can fill a layout: enough points for a list, steps,
31
- * cards, a process, a cycle (three) or a comparison; a prominent number for a key number; a short headline for a big
32
- * statement; and, for a quote, a headline found word for word in
33
- * `passage`, the source text the slide summarizes. An image slide also needs a
34
- * picture, which callers check. */
30
+ /** Whether a summary can fill a layout: the items a drawn layout takes
31
+ * (`conceptItemsProblem`: three stages for a cycle, a figure in every key
32
+ * number, four ideas for a matrix…); enough points for a list, steps or a
33
+ * comparison; a prominent number for a key number; a short headline for a big
34
+ * statement; and, for a quote, a headline found word for word in `passage`,
35
+ * the source text the slide summarizes. An image slide also needs a picture,
36
+ * which callers check. */
35
37
  declare function presentationLayoutFits(layout: PresentationLayout, headline: string, points: readonly string[], passage: string): boolean;
38
+ /** Why a summary cannot fill a layout, as a sentence its author can act on
39
+ * (a person reading a designer's help, a model reading a correction), or
40
+ * `undefined` when it can. */
41
+ declare function presentationLayoutProblem(layout: PresentationLayout, headline: string, points: readonly string[], passage: string): string | undefined;
42
+ /** What a slide must have for a layout to apply, as a designer's help says it
43
+ * ("at least 2 points", "exactly 4 points"), or `undefined` when any slide
44
+ * will do. It states what `presentationLayoutProblem` checks, so a picker's
45
+ * help and the plan agree. `points` names a slide's points in the host's own
46
+ * word ("highlights"). */
47
+ declare function presentationLayoutNeeds(layout: PresentationLayout, wording?: {
48
+ points?: string;
49
+ }): string | undefined;
36
50
  interface PresentationBeat {
37
51
  id: string;
38
52
  sourceStart: number;
@@ -45,7 +59,19 @@ interface PresentationBeat {
45
59
  media?: string[];
46
60
  /** Left out of the deck; the slide shown before it stays on screen instead. */
47
61
  hidden?: true;
62
+ /** A hub only: the one to three words its ideas share, written inside it. */
63
+ center?: string;
64
+ /** A matrix only: what grows from left to right, named along the foot. */
65
+ xAxis?: string;
66
+ /** A matrix only: what grows from bottom to top, named up the side. */
67
+ yAxis?: string;
48
68
  }
69
+ /** What a layout draws beyond its headline and points. */
70
+ type PresentationBeatExtras = Pick<PresentationBeat, 'center' | 'xAxis' | 'yAxis'>;
71
+ /** The extras of `source` that `layout` draws, trimmed; ones it does not draw,
72
+ * empty ones and ones too long to set are left out. Read loosely, so a model's
73
+ * reply and a saved beat pass through the same door. */
74
+ declare function presentationBeatExtras(layout: string, source: unknown): PresentationBeatExtras;
49
75
  interface PresentationPlan {
50
76
  version: 1;
51
77
  sourceText: string;
@@ -57,10 +83,97 @@ declare const PRESENTATION_LIMITS: {
57
83
  readonly beats: 80;
58
84
  readonly serializedCharacters: 160000;
59
85
  readonly mediaPerBeat: 4;
86
+ /** The most points a summary slide holds. */
87
+ readonly points: 4;
88
+ /** The longest a hub's centre or a matrix's axis name may be. */
89
+ readonly extraCharacters: 40;
60
90
  };
61
91
  declare function parsePresentationPlan(input: unknown): PresentationPlan | null;
62
92
  declare function serializePresentationPlan(plan: PresentationPlan): string;
63
93
 
94
+ /**
95
+ * Concept specs — what each concept template takes, as data.
96
+ *
97
+ * The ten concept templates draw a handful of ideas, and every product that
98
+ * lets an author choose one has to say the same things about it: how many
99
+ * items it takes, how an item is written, what order they come in, and what
100
+ * the template draws when it is given something else. Those facts used to be
101
+ * restated wherever they were needed (a prompt's "3–5", a validator's table,
102
+ * a picker's help text, each template's own fallback) and the copies drifted.
103
+ * This module is the one statement of them:
104
+ *
105
+ * - {@link CONCEPT_SPECS}: per template, the items an author should write and
106
+ * the inputs it takes beyond them. The authoring guide renders its counts
107
+ * from here ({@link conceptItemCount}), so a prompt and a check agree.
108
+ * - {@link conceptItemsProblem}: whether a set of items meets that contract,
109
+ * as a sentence an author or a repair prompt can act on.
110
+ * - {@link conceptDowngrade}: what a template draws instead when it cannot
111
+ * draw its own picture. The templates call it, so it cannot disagree with
112
+ * them, and `markdownToDoc` reports it (`template-shape-unmet`).
113
+ *
114
+ * Pure text in, plain data out.
115
+ *
116
+ * Related: `conceptItems.ts` (how one item is read), `conceptBlocks.ts` and
117
+ * `conceptShapes.ts` (the drawings), `authoringGuide.ts` (what authors are told).
118
+ */
119
+
120
+ /** Every template that draws a handful of ideas. */
121
+ declare const CONCEPT_TEMPLATES: readonly ["cards", "process", "cycle", "layers", "stats", "pyramid", "funnel", "hub", "venn", "matrix"];
122
+ type ConceptTemplateName = (typeof CONCEPT_TEMPLATES)[number];
123
+ /** The most ideas a concept template draws; more are shown as the list they are. */
124
+ declare const CONCEPT_MAX_DRAWN = 6;
125
+ /** An input a concept template takes beyond `title` and `items`. */
126
+ interface ConceptSpecInput {
127
+ key: string;
128
+ /** What an author writes there, as a guide lists it. */
129
+ guide: string;
130
+ }
131
+ interface ConceptSpec {
132
+ /** The fewest and the most items an author should write. */
133
+ items: readonly [min: number, max: number];
134
+ /** How an item is written: a label and its detail, or a figure and what it measures. */
135
+ itemForm: 'label-detail' | 'figure-caption';
136
+ /** The order the items are written in, when the drawing depends on it. */
137
+ order?: string;
138
+ /** Inputs beyond `title` and `items`. */
139
+ inputs?: readonly ConceptSpecInput[];
140
+ }
141
+ declare const CONCEPT_SPECS: Readonly<Record<ConceptTemplateName, ConceptSpec>>;
142
+ /** The concept template a name denotes, or `undefined`. */
143
+ declare function conceptTemplate(template: string): ConceptTemplateName | undefined;
144
+ interface ConceptItemsOptions {
145
+ /**
146
+ * The most items the author's surface holds, when that is fewer than the
147
+ * template takes (a summary slide holds four points).
148
+ */
149
+ max?: number;
150
+ }
151
+ /** How many items a template takes, as a guide says it: "2–4", or "exactly 4". */
152
+ declare function conceptItemCount(template: ConceptTemplateName, options?: ConceptItemsOptions): string;
153
+ /**
154
+ * Why `items` do not meet a template's contract, or `undefined` when they do:
155
+ * too few or too many, a key number without a figure, a Venn diagram without
156
+ * the item that names what its sets share. The sentence is written for the
157
+ * author, so a validator can log it and a repair prompt can quote it.
158
+ */
159
+ declare function conceptItemsProblem(template: ConceptTemplateName, items: readonly unknown[] | undefined, options?: ConceptItemsOptions): string | undefined;
160
+ /** What a concept template draws when it cannot draw its own picture, and why. */
161
+ interface ConceptDowngrade {
162
+ drawsAs: ConceptTemplateName | 'list';
163
+ /** Completes "…, so it is drawn as <drawsAs>": "a matrix places exactly four items and this has three". */
164
+ reason: string;
165
+ }
166
+ /**
167
+ * What a template draws instead of its own picture for these items, or
168
+ * `undefined` when it draws itself. A template never draws a broken diagram:
169
+ * a matrix without four ideas, a Venn diagram without two sets and key
170
+ * numbers without a figure draw as cards; a cycle too short or too wordy for
171
+ * a ring draws as a process; more than six ideas are shown as a list.
172
+ */
173
+ declare function conceptDowngrade(template: ConceptTemplateName, items: readonly unknown[] | undefined): ConceptDowngrade | undefined;
174
+ /** The template that draws these items: `template` itself unless it is downgraded. */
175
+ declare function conceptDrawsAs(template: ConceptTemplateName, items: readonly unknown[] | undefined): ConceptTemplateName | 'list';
176
+
64
177
  /**
65
178
  * PageSection — the framework-agnostic block model for Page (linear) mode.
66
179
  *
@@ -300,4 +413,4 @@ declare function materializePageSection(block: Block, options?: MaterializePageS
300
413
  */
301
414
  declare function materializePageSections(doc: Doc, options?: MaterializePageSectionsOptions): PageSectionMaterialization[];
302
415
 
303
- export { AUTHORED_PRESENTATION_LAYOUT as A, type MaterializePageSectionOptions as M, PRESENTATION_KEY as P, type MaterializePageSectionsOptions as a, PRESENTATION_LAYOUTS as b, PRESENTATION_LIMITS as c, type PageMedia as d, type PageRichText as e, type PageSection as f, type PageSectionDiagnostic as g, type PageSectionItem as h, type PageSectionMaterialization as i, type PageSectionSource as j, type PageSpatialKind as k, type PageTransformHints as l, type PresentationBeat as m, type PresentationBeatLayout as n, type PresentationLayout as o, type PresentationPlan as p, materializePageSection as q, materializePageSections as r, parsePresentationPlan as s, presentationLayoutFits as t, presentationStat as u, resolvePageStyle as v, serializePresentationPlan as w };
416
+ export { AUTHORED_PRESENTATION_LAYOUT as A, conceptItemCount as B, CONCEPT_MAX_DRAWN as C, conceptItemsProblem as D, conceptTemplate as E, materializePageSection as F, materializePageSections as G, parsePresentationPlan as H, presentationBeatExtras as I, presentationLayoutFits as J, presentationLayoutNeeds as K, presentationLayoutProblem as L, type MaterializePageSectionOptions as M, presentationStat as N, resolvePageStyle as O, PRESENTATION_KEY as P, serializePresentationPlan as Q, CONCEPT_SPECS as a, CONCEPT_TEMPLATES as b, type ConceptDowngrade as c, type ConceptItemsOptions as d, type ConceptSpec as e, type ConceptSpecInput as f, type ConceptTemplateName as g, type MaterializePageSectionsOptions as h, PRESENTATION_LAYOUTS as i, PRESENTATION_LIMITS as j, type PageMedia as k, type PageRichText as l, type PageSection as m, type PageSectionDiagnostic as n, type PageSectionItem as o, type PageSectionMaterialization as p, type PageSectionSource as q, type PageSpatialKind as r, type PageTransformHints as s, type PresentationBeat as t, type PresentationBeatExtras as u, type PresentationBeatLayout as v, type PresentationLayout as w, type PresentationPlan as x, conceptDowngrade as y, conceptDrawsAs as z };