@openpresentation/opf 0.24.2 → 0.26.0-rc.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 (65) hide show
  1. package/README.md +1 -1
  2. package/dist/browser.js +17 -17
  3. package/dist/{chunk-JHSTEBPC.js → chunk-3OE6PZIC.js} +5 -5
  4. package/dist/{chunk-33OBLTKZ.js → chunk-EQ6S5SEZ.js} +1 -1
  5. package/dist/{chunk-BN3A5TVI.js → chunk-F4HFDP6I.js} +206 -123
  6. package/dist/{chunk-ZFNKRZZQ.js → chunk-F5ABHDUX.js} +6 -6
  7. package/dist/{chunk-UIKXX5EX.js → chunk-FITOGMR3.js} +2 -2
  8. package/dist/{chunk-5PHLSH4E.js → chunk-GS37EBPQ.js} +1 -1
  9. package/dist/{chunk-RP2KIC7W.js → chunk-IC6OPLMU.js} +2 -2
  10. package/dist/{chunk-RE4F2USA.js → chunk-IWFXFWGD.js} +1 -1
  11. package/dist/{chunk-RQACV2FR.js → chunk-IY5SCRTV.js} +1 -1
  12. package/dist/{chunk-RXKXY75X.js → chunk-LU6XM5JQ.js} +1 -1
  13. package/dist/{chunk-H77YYHPL.js → chunk-MJ57RSYO.js} +5 -5
  14. package/dist/{chunk-DRCN5PFH.js → chunk-NJRFCM4H.js} +6 -6
  15. package/dist/{chunk-F6CDJTSE.js → chunk-P7S3ORB4.js} +9 -9
  16. package/dist/{chunk-F7PLNWHQ.js → chunk-PJSPHHRK.js} +1 -1
  17. package/dist/{chunk-4I3XPRAO.js → chunk-TKQ2VFV5.js} +1 -1
  18. package/dist/{chunk-6WDLGY25.js → chunk-WW62PPYV.js} +4 -4
  19. package/dist/{chunk-H5GFPQAS.js → chunk-X7RANZWP.js} +2 -2
  20. package/dist/{chunk-N3ZPLGK5.js → chunk-XRMV2GMB.js} +365 -266
  21. package/dist/{composition-qX-igJe5.d.ts → composition-Daqvi-GV.d.ts} +47 -28
  22. package/dist/composition.d.ts +1 -1
  23. package/dist/composition.js +1 -1
  24. package/dist/conversion-AJEJJHLO.js +19 -0
  25. package/dist/{conversion-O0XSW0ZV.d.ts → conversion-Dh8Q4RiX.d.ts} +5 -5
  26. package/dist/convert.d.ts +2 -2
  27. package/dist/convert.js +7 -7
  28. package/dist/data.d.ts +1 -1
  29. package/dist/data.js +2 -2
  30. package/dist/{deck-report-CJ6gd_6-.d.ts → deck-report-DHaboWbM.d.ts} +2 -2
  31. package/dist/deck.d.ts +5 -5
  32. package/dist/deck.js +10 -10
  33. package/dist/diff.js +5 -5
  34. package/dist/docs.js +27 -27
  35. package/dist/examples.d.ts +1 -1
  36. package/dist/examples.js +9555 -15758
  37. package/dist/font-policy.js +1 -1
  38. package/dist/format.js +2 -2
  39. package/dist/index.d.ts +11 -11
  40. package/dist/index.js +21 -21
  41. package/dist/markdown.d.ts +3 -3
  42. package/dist/markdown.js +7 -7
  43. package/dist/node-engine.d.ts +7 -7
  44. package/dist/node-engine.js +21 -21
  45. package/dist/{pagination-LiWxhbsz.d.ts → pagination-R8YFwVj7.d.ts} +1 -1
  46. package/dist/pagination.d.ts +2 -2
  47. package/dist/pagination.js +4 -4
  48. package/dist/patch.js +4 -4
  49. package/dist/{presentation-Dn-fm0iY.d.ts → presentation-Bwo8Ko6D.d.ts} +1 -1
  50. package/dist/repo-readme.js +1 -1
  51. package/dist/schemas.d.ts +8 -0
  52. package/dist/schemas.js +1 -1
  53. package/dist/spec/README.md +2 -2
  54. package/dist/spec/reference/font-policy.json +1 -1
  55. package/dist/spec/schemas/layout.schema.json +175 -88
  56. package/dist/spec/schemas/opf.schema.json +4 -4
  57. package/dist/types.d.ts +72 -24
  58. package/dist/{validation-types-CzPKoKWo.d.ts → validation-types-JW8e06ee.d.ts} +1 -1
  59. package/dist/{validator-BuAV_HUo.d.ts → validator-Dym2zYVK.d.ts} +3 -3
  60. package/dist/validator.d.ts +4 -4
  61. package/dist/validator.js +3 -3
  62. package/dist/yaml.d.ts +3 -3
  63. package/dist/yaml.js +7 -7
  64. package/package.json +18 -18
  65. package/dist/conversion-MTGISXNM.js +0 -19
@@ -1,11 +1,11 @@
1
- import { promotedRegionKeys, VARIABLE_KINDS, resolveChartData, chartPaletteForFill, chartSeriesPalette, normalizeHexColor, resolveChartColors, colorContrast, imageBackground, tableGrid, timelineTextColor, LOGO_SHAPES, visitContentPayloads, readingRows, visualReadingOrder, intrinsicImageSize, resolveReference, textWidthMeasurer, resolveColorRef, resolveDesignRecords, resolveFontFamilies, checkCatalogsOption, provenanceOf, unresolvedReference, OPFUnresolvedReferenceError, resolveColorRoles, resolveCanvasDimensions, resolveSlideVariables, normalizeColorVariant, isRecord, hasContentVariables, isTemplate, instantiateForValidation, layoutTemplateIssues, resolveScriptFonts, defaultSlideBackground, catalogReferenceSites, parseReference, catalogGroupDeclared, pointerPath, unusedDatasets, MAX_COMPOSITION_DEPTH, datasetDiagnostics, pathFor, catalogRecords, collectCitations, numberingFindings, walkCitationRuns, resolveTableData, resolveChartOptions, chartOptionTarget, codeHighlightLines, chartNumberFixesByCell, catalogKinds, catalogGroupSource, registeredCatalog, OPFCompositionError, composeSlide } from './chunk-N3ZPLGK5.js';
2
- import { schemas, schemaEntries } from './chunk-BN3A5TVI.js';
1
+ import { promotedRegionKeys, VARIABLE_KINDS, resolveChartData, chartPaletteForFill, chartSeriesPalette, normalizeHexColor, resolveChartColors, colorContrast, imageBackground, tableGrid, timelineTextColor, LOGO_SHAPES, visitContentPayloads, readingRows, visualReadingOrder, intrinsicImageSize, resolveReference, textWidthMeasurer, resolveColorRef, resolveDesignRecords, resolveFontFamilies, checkCatalogsOption, provenanceOf, unresolvedReference, OPFUnresolvedReferenceError, resolveColorRoles, resolveCanvasDimensions, resolveSlideVariables, normalizeColorVariant, isRecord, hasContentVariables, isTemplate, instantiateForValidation, layoutTemplateIssues, resolveScriptFonts, defaultSlideBackground, catalogReferenceSites, parseReference, catalogGroupDeclared, pointerPath, unusedDatasets, MAX_COMPOSITION_DEPTH, datasetDiagnostics, pathFor, catalogRecords, collectCitations, numberingFindings, walkCitationRuns, resolveTableData, resolveChartOptions, chartOptionTarget, codeHighlightLines, chartNumberFixesByCell, catalogKinds, catalogGroupSource, registeredCatalog, OPFCompositionError, composeSlide } from './chunk-XRMV2GMB.js';
2
+ import { schemas, schemaEntries } from './chunk-F4HFDP6I.js';
3
3
  import Ajv2020 from 'ajv/dist/2020.js';
4
4
  import addFormats from 'ajv-formats';
5
5
  import { parseTree, printParseErrorCode, getNodePath } from 'jsonc-parser';
6
6
 
7
7
  // src/catalog-schemas.ts
8
- var CATALOG_SCHEMA = 3;
8
+ var CATALOG_SCHEMA = 4;
9
9
  var catalogDisplayKinds = ["chartTypes", "languages", "socialPlatforms"];
10
10
  var catalogSchemaNames = {
11
11
  layouts: "layout",
@@ -2775,17 +2775,17 @@ var referenceRules = [
2775
2775
  "layout-template",
2776
2776
  "references",
2777
2777
  "error",
2778
- "A layout template's grid is malformed.",
2779
- 'A layout (OPF 0.19) is a grid of named areas. Engines cannot compose a grid whose rows have different lengths, whose names do not form one filled rectangle each, whose column or row sizes do not match the grid, that is larger than 12 x 12, or that holds a word that is not a name or ".". composeSlide refuses such a record, so a slide that names it composes automatically.',
2780
- { standard: "spec/schemas/layout.schema.json and the area rules of OPF 0.19 (docs/layout-templates.md)", approximations: "Checked on every layout record the document embeds and every registered record it uses, once the record passes its schema." }
2778
+ "A layout template's region list is malformed.",
2779
+ `A layout is one ordered list of regions, nested through splits for two dimensions. Engines cannot compose a list that is not 1 to 12 entries, an entry that is neither a region nor a split, a direction or size that is not valid, an "auto" size anywhere but in a column, splits nested more than three levels deep (the record's own list is level 1), or regions that compile to a grid larger than 12 x 12. composeSlide refuses such a record, so a slide that names it composes automatically.`,
2780
+ { standard: "spec/schemas/layout.schema.json and the region list rules (docs/layout-templates.md)", approximations: "Checked on every layout record the document embeds and every registered record it uses, once the record passes its schema." }
2781
2781
  ),
2782
2782
  rule(
2783
2783
  "layout-region",
2784
2784
  "references",
2785
2785
  "error",
2786
- "A layout template's regions do not match its areas.",
2787
- "Every body area of a layout needs a region that says what it accepts, and every region needs an area. Region names may not be title, subtitle, tag, auto or a promoted-region word (left, center, right, top, middle, bottom), so a Markdown block's region= stays unambiguous; a subtitle area needs a title area; a region with flow 'none' holds one block; overflowRegion must name a region. composeSlide refuses such a record.",
2788
- { standard: "spec/schemas/layout.schema.json and the region rules of OPF 0.19 (docs/layout-templates.md)" }
2786
+ "A layout template's regions are not valid.",
2787
+ "Region names are unique across the whole record and may not be tag, auto or a promoted-region word (left, center, right, top, middle, bottom), so a Markdown block's region= stays unambiguous; title and subtitle name the heading regions, which take only a size; a subtitle region needs a title region; a region accepts at least one content kind; a region with flow 'none' holds one block; overflowRegion must name a body region. composeSlide refuses such a record.",
2788
+ { standard: "spec/schemas/layout.schema.json and the region rules (docs/layout-templates.md)" }
2789
2789
  ),
2790
2790
  rule(
2791
2791
  "unresolved-reference",
@@ -3,7 +3,7 @@ var fontPolicySource = {
3
3
  "$schema": "./font-policy.schema.json",
4
4
  "provisionalDecisions": {
5
5
  "status": "provisional, owner may revise",
6
- "note": "Owner decisions resolved provisionally with the recommended defaults. Changing a decision here is the whole edit: every row whose replacement names this decision takes its family and compatibility from it. A recorded measurement for a different family is ignored (treated as unmeasured) until scripts/measure-font-replacements.mjs is re-run.",
6
+ "note": "Owner decisions resolved provisionally with the recommended defaults. Changing a decision here is the whole edit: every row whose replacement names this decision takes its family and compatibility from it. A recorded measurement for a different family is ignored (treated as unmeasured) until the measurement is repeated.",
7
7
  "decisions": {
8
8
  "aptos-preview": {
9
9
  "replacement": "Intos",
@@ -1,4 +1,4 @@
1
- import { chartNumber } from './chunk-N3ZPLGK5.js';
1
+ import { chartNumber } from './chunk-XRMV2GMB.js';
2
2
 
3
3
  // src/data.ts
4
4
  var OPFDataImportError = class extends Error {
@@ -1,7 +1,7 @@
1
- import { OPFDataImportError, parseTabularData } from './chunk-4I3XPRAO.js';
2
- import { applyPatchWithInverse } from './chunk-RQACV2FR.js';
3
- import { validate, OPFValidationError } from './chunk-F6CDJTSE.js';
4
- import { embeddedCopy, checkCatalogsOption, catalogReferenceSites, parseReference, catalogGroupDeclared, resolveReference, dottedPath, unresolvedReference, recordReferenceSites, catalogGroupSource, registeredCatalog, catalogKinds, CATALOG_GROUP_PATTERN, isRecord, visitContentPayloads, annotationText, listVariables, resolveVariables, LOGO_SHAPES, resolveDesignRecords, resolveFontFamilies, resolveCanvasDimensions, imageBackground } from './chunk-N3ZPLGK5.js';
1
+ import { OPFDataImportError, parseTabularData } from './chunk-TKQ2VFV5.js';
2
+ import { applyPatchWithInverse } from './chunk-IY5SCRTV.js';
3
+ import { validate, OPFValidationError } from './chunk-P7S3ORB4.js';
4
+ import { embeddedCopy, checkCatalogsOption, catalogReferenceSites, parseReference, catalogGroupDeclared, resolveReference, dottedPath, unresolvedReference, recordReferenceSites, catalogGroupSource, registeredCatalog, catalogKinds, CATALOG_GROUP_PATTERN, isRecord, visitContentPayloads, annotationText, listVariables, resolveVariables, LOGO_SHAPES, resolveDesignRecords, resolveFontFamilies, resolveCanvasDimensions, imageBackground } from './chunk-XRMV2GMB.js';
5
5
 
6
6
  // src/api-errors.ts
7
7
  var OPFApiError = class extends Error {
@@ -1,5 +1,5 @@
1
- import { jsonEqual, formatPointer } from './chunk-RQACV2FR.js';
2
- import { annotationText } from './chunk-N3ZPLGK5.js';
1
+ import { jsonEqual, formatPointer } from './chunk-IY5SCRTV.js';
2
+ import { annotationText } from './chunk-XRMV2GMB.js';
3
3
 
4
4
  // src/diff-match.ts
5
5
  var DEFAULT_MATCH_THRESHOLD = 0.5;