@openpresentation/opf 0.37.0 → 0.37.1

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 (46) hide show
  1. package/THIRD-PARTY-NOTICES.md +99 -0
  2. package/dist/browser.js +16 -16
  3. package/dist/{chunk-JTNCBTEH.js → chunk-434E2RWO.js} +1 -1
  4. package/dist/{chunk-3A3PNYNP.js → chunk-63Y75CCK.js} +1 -1
  5. package/dist/{chunk-HS2JQ3AO.js → chunk-BPILTZUJ.js} +1 -1
  6. package/dist/{chunk-C5ACMFKB.js → chunk-DDD4WUEH.js} +990 -24
  7. package/dist/{chunk-6WN6PRCI.js → chunk-DMV3G65U.js} +1 -1
  8. package/dist/{chunk-XJU2X5JM.js → chunk-EHYAVRL3.js} +1 -1
  9. package/dist/{chunk-BHRCWV6B.js → chunk-HBO64RWP.js} +4 -4
  10. package/dist/{chunk-4FA4ZABY.js → chunk-HOK3DZA6.js} +5 -5
  11. package/dist/{chunk-YESKKKVE.js → chunk-I4NQP7Z4.js} +1 -1
  12. package/dist/{chunk-CYGQY6HH.js → chunk-ITGR2RW2.js} +5 -5
  13. package/dist/{chunk-EOMENOKY.js → chunk-KB7TPZQI.js} +5 -5
  14. package/dist/{chunk-56BYOGIF.js → chunk-MNJ4JV7I.js} +1 -1
  15. package/dist/{chunk-YZ4WMB5C.js → chunk-PDBZN7EJ.js} +1 -1
  16. package/dist/{chunk-KANQVJGK.js → chunk-Q2L5ERNK.js} +4 -1
  17. package/dist/{chunk-44IS6ZU2.js → chunk-SIF5JDZC.js} +1 -1
  18. package/dist/{chunk-TIVBO56G.js → chunk-XY332BQP.js} +3 -3
  19. package/dist/{chunk-VD7WLE3C.js → chunk-ZB427MLO.js} +2 -2
  20. package/dist/{conversion-DF_HgknQ.d.ts → conversion-DBkC9Y2e.d.ts} +2 -2
  21. package/dist/conversion-P56LOOE2.js +25 -0
  22. package/dist/convert.js +6 -6
  23. package/dist/deck.js +10 -10
  24. package/dist/diff.js +3 -3
  25. package/dist/docs.js +2 -2
  26. package/dist/format.js +2 -2
  27. package/dist/ids.js +3 -3
  28. package/dist/index.d.ts +2 -2
  29. package/dist/index.js +19 -19
  30. package/dist/markdown.js +7 -7
  31. package/dist/node-engine.d.ts +2 -2
  32. package/dist/node-engine.js +18 -18
  33. package/dist/pagination.js +3 -3
  34. package/dist/patch.js +2 -2
  35. package/dist/precompiled.js +2 -2
  36. package/dist/schema-engine-ajv.js +1 -1
  37. package/dist/schema-engine-precompiled.js +2 -2
  38. package/dist/schema.js +2 -2
  39. package/dist/schemas.js +1 -1
  40. package/dist/source.js +9 -10
  41. package/dist/spec/schemas/font-scheme.schema.json +4 -1
  42. package/dist/types.d.ts +6 -1
  43. package/dist/validator.js +2 -2
  44. package/dist/yaml.js +6 -6
  45. package/package.json +7 -6
  46. package/dist/conversion-XIWN7FMW.js +0 -25
@@ -1,6 +1,6 @@
1
1
  import { installSchemaEngine } from './chunk-43JWUIGF.js';
2
- import { schemaEngine } from './chunk-YESKKKVE.js';
3
- import './chunk-KANQVJGK.js';
2
+ import { schemaEngine } from './chunk-I4NQP7Z4.js';
3
+ import './chunk-Q2L5ERNK.js';
4
4
  import './chunk-PRXZD2II.js';
5
5
 
6
6
  // src/precompiled.ts
@@ -1,6 +1,6 @@
1
1
  import { installedSchemaEngine } from './chunk-43JWUIGF.js';
2
2
  import { qualifyBranch } from './chunk-JBARNYFR.js';
3
- import { schemas } from './chunk-KANQVJGK.js';
3
+ import { schemas } from './chunk-Q2L5ERNK.js';
4
4
  import './chunk-PRXZD2II.js';
5
5
  import Ajv2020 from 'ajv/dist/2020.js';
6
6
  import addFormats from 'ajv-formats';
@@ -1,3 +1,3 @@
1
- export { precompiledMarker, schemaEngine } from './chunk-YESKKKVE.js';
2
- import './chunk-KANQVJGK.js';
1
+ export { precompiledMarker, schemaEngine } from './chunk-I4NQP7Z4.js';
2
+ import './chunk-Q2L5ERNK.js';
3
3
  import './chunk-PRXZD2II.js';
package/dist/schema.js CHANGED
@@ -1,6 +1,6 @@
1
- export { COMMON_KEYS, UNRANKED_PRIORITY, activeSchema, catalogKindAt, createSchemaValue, describeField, listSchemaFields, resolveSchema, schemaAtPath, schemaCatalogKinds, schemaLabel, schemaType, schemaVariants, splitOpfPath } from './chunk-C5ACMFKB.js';
1
+ export { COMMON_KEYS, UNRANKED_PRIORITY, activeSchema, catalogKindAt, createSchemaValue, describeField, listSchemaFields, resolveSchema, schemaAtPath, schemaCatalogKinds, schemaLabel, schemaType, schemaVariants, splitOpfPath } from './chunk-DDD4WUEH.js';
2
2
  import './chunk-JBARNYFR.js';
3
- import './chunk-KANQVJGK.js';
3
+ import './chunk-Q2L5ERNK.js';
4
4
  import './chunk-QFT4R2IL.js';
5
5
  import './chunk-BLCDUM7B.js';
6
6
  import './chunk-PRXZD2II.js';
package/dist/schemas.js CHANGED
@@ -1,2 +1,2 @@
1
- export { audience, chartType, colorScheme, fontScheme, iconSet, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-KANQVJGK.js';
1
+ export { audience, chartType, colorScheme, fontScheme, iconSet, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-Q2L5ERNK.js';
2
2
  import './chunk-PRXZD2II.js';
package/dist/source.js CHANGED
@@ -1,17 +1,16 @@
1
- export { explain } from './chunk-44IS6ZU2.js';
2
- import { readMarkdown, frontMatter, splitSegments, isOutline, NOTES, fenceStart, fenceClose, COMMENT } from './chunk-BHRCWV6B.js';
3
- import './chunk-56BYOGIF.js';
4
- import { splitLines } from './chunk-VD7WLE3C.js';
5
- export { analyzeYamlSyntax } from './chunk-VD7WLE3C.js';
6
- import './chunk-XJU2X5JM.js';
7
- import { rememberByText, SLIDE_OPTION_KEYS, FENCE_KINDS, createLocator, parsePointer } from './chunk-C5ACMFKB.js';
8
- export { BLOCK_AS_VALUES, BLOCK_OPTION_KEYS, FENCE_ATTRIBUTES, FENCE_KINDS, LINE_KEYWORDS, METRIC_KEYS, PATTERN_PHRASES, SLIDE_OPTION_KEYS, SPAN_FLAGS, SPAN_VALUES, analyzeJsonSyntax, applyTextEdits, describeFinding, distance, nearest, segmentsOf as pointerSegments, starterValue } from './chunk-C5ACMFKB.js';
1
+ export { explain } from './chunk-SIF5JDZC.js';
2
+ import { readMarkdown, frontMatter, splitSegments, isOutline, NOTES, fenceStart, fenceClose, COMMENT } from './chunk-HBO64RWP.js';
3
+ import './chunk-MNJ4JV7I.js';
4
+ import { splitLines } from './chunk-ZB427MLO.js';
5
+ export { analyzeYamlSyntax } from './chunk-ZB427MLO.js';
6
+ import './chunk-EHYAVRL3.js';
7
+ import { rememberByText, SLIDE_OPTION_KEYS, FENCE_KINDS, createLocator, findNodeAtOffset, getNodePath, parsePointer, parseTree } from './chunk-DDD4WUEH.js';
8
+ export { BLOCK_AS_VALUES, BLOCK_OPTION_KEYS, FENCE_ATTRIBUTES, FENCE_KINDS, LINE_KEYWORDS, METRIC_KEYS, PATTERN_PHRASES, SLIDE_OPTION_KEYS, SPAN_FLAGS, SPAN_VALUES, analyzeJsonSyntax, applyTextEdits, describeFinding, distance, nearest, segmentsOf as pointerSegments, starterValue } from './chunk-DDD4WUEH.js';
9
9
  import './chunk-JBARNYFR.js';
10
- import './chunk-KANQVJGK.js';
10
+ import './chunk-Q2L5ERNK.js';
11
11
  import './chunk-QFT4R2IL.js';
12
12
  import './chunk-BLCDUM7B.js';
13
13
  import './chunk-PRXZD2II.js';
14
- import { findNodeAtOffset, getNodePath, parseTree } from 'jsonc-parser';
15
14
  import { parseDocument, isMap, isSeq, isScalar, isAlias } from 'yaml';
16
15
 
17
16
  var read = rememberByText(readText);
@@ -3,8 +3,11 @@
3
3
  "$id": "https://openpresentation.org/schema/opf-font-scheme/v1",
4
4
  "$comment": "The v1 in the $id is the pre-1.0 line, not a frozen contract: this schema may change in any 0.x minor release. The release that produced this copy is the version of the @openpresentation/opf package it came from (opf --version; opf schemas lists it next to each id). See docs/schema-versioning.md.",
5
5
  "title": "Font Scheme",
6
- "description": "Schema for font-scheme records. Each scheme pairs a major (heading) and minor (body) font family in the OOXML majorFont/minorFont sense, scoped to a target app (powerpoint or google-slides) and a language family (Latin, East Asian, or Complex Script). Documents reference a scheme from design.fontScheme (or design.fontScheme.id), from a theme's fontScheme and from a language's fontScheme / googleFontScheme. Role overrides on design.fontScheme (heading, body, accent, code), each a font family name, take precedence over the resolved scheme.\n\nA document references a record as a bare id or 'name:id' and resolves it in its own catalogs groups first, then in the catalog the host registered for the group's source; engines never fetch a catalog. A published record file carries '$schema' and 'id'; the copy a document embeds under catalogs.<group>.<kind>.<id> carries neither (the key is the id) and no 'x-*' display metadata.",
6
+ "description": "Schema for font-scheme records. Each scheme pairs a major (heading) and minor (body) font family in the OOXML majorFont/minorFont sense, scoped to a target app (powerpoint or google-slides) and a language family (Latin, East Asian, or Complex Script). Documents reference a scheme from design.fontScheme (or design.fontScheme.id), from a theme's fontScheme and from a language's fontScheme / googleFontScheme. Role overrides on design.fontScheme (heading, body, accent, code), each a font family name, take precedence over the resolved scheme.\n\nA document references a record as a bare id or 'name:id' and resolves it in its own catalogs groups first, then in the catalog the host registered for the group's source; engines never fetch a catalog. A published record file carries '$schema' and 'id'; the copy a document embeds under catalogs.<group>.<kind>.<id> carries neither (the key is the id) and no 'x-*' display metadata. Keys starting with 'x-' on a published record are a publisher's own display metadata and are ignored by the engines; any other key this schema does not list is refused.",
7
7
  "type": "object",
8
+ "patternProperties": {
9
+ "^x-": {}
10
+ },
8
11
  "additionalProperties": false,
9
12
  "required": [
10
13
  "$schema",
package/dist/types.d.ts CHANGED
@@ -1208,7 +1208,7 @@ interface ColorScheme {
1208
1208
  /**
1209
1209
  * Schema for font-scheme records. Each scheme pairs a major (heading) and minor (body) font family in the OOXML majorFont/minorFont sense, scoped to a target app (powerpoint or google-slides) and a language family (Latin, East Asian, or Complex Script). Documents reference a scheme from design.fontScheme (or design.fontScheme.id), from a theme's fontScheme and from a language's fontScheme / googleFontScheme. Role overrides on design.fontScheme (heading, body, accent, code), each a font family name, take precedence over the resolved scheme.
1210
1210
  *
1211
- * A document references a record as a bare id or 'name:id' and resolves it in its own catalogs groups first, then in the catalog the host registered for the group's source; engines never fetch a catalog. A published record file carries '$schema' and 'id'; the copy a document embeds under catalogs.<group>.<kind>.<id> carries neither (the key is the id) and no 'x-*' display metadata.
1211
+ * A document references a record as a bare id or 'name:id' and resolves it in its own catalogs groups first, then in the catalog the host registered for the group's source; engines never fetch a catalog. A published record file carries '$schema' and 'id'; the copy a document embeds under catalogs.<group>.<kind>.<id> carries neither (the key is the id) and no 'x-*' display metadata. Keys starting with 'x-' on a published record are a publisher's own display metadata and are ignored by the engines; any other key this schema does not list is refused.
1212
1212
  */
1213
1213
  interface FontScheme {
1214
1214
  /**
@@ -1311,6 +1311,11 @@ interface FontScheme {
1311
1311
  vectorSrc?: string;
1312
1312
  [k: string]: unknown;
1313
1313
  };
1314
+ /**
1315
+ * This interface was referenced by `FontScheme`'s JSON-Schema definition
1316
+ * via the `patternProperty` "^x-".
1317
+ */
1318
+ [k: string]: unknown;
1314
1319
  }
1315
1320
 
1316
1321
  export type { Audience, ChartType, ColorScheme, FontScheme, Language, Layout, Narrative, Purpose, SocialPlatform, Theme, Tone };
package/dist/validator.js CHANGED
@@ -1,6 +1,6 @@
1
- export { DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, assertValid, assertValidCatalogRecord, createValidator, findValidationRule, validate, validateCatalogRecord, validationCategories, validationRules } from './chunk-C5ACMFKB.js';
1
+ export { DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, assertValid, assertValidCatalogRecord, createValidator, findValidationRule, validate, validateCatalogRecord, validationCategories, validationRules } from './chunk-DDD4WUEH.js';
2
2
  import './chunk-JBARNYFR.js';
3
- import './chunk-KANQVJGK.js';
3
+ import './chunk-Q2L5ERNK.js';
4
4
  export { gridCells } from './chunk-QFT4R2IL.js';
5
5
  import './chunk-BLCDUM7B.js';
6
6
  import './chunk-PRXZD2II.js';
package/dist/yaml.js CHANGED
@@ -1,11 +1,11 @@
1
- export { OPFYamlError, YAML_SCHEMA_URL, fromYaml, parseYamlData, scanYamlComments, toYaml } from './chunk-4FA4ZABY.js';
2
- import './chunk-6WN6PRCI.js';
1
+ export { OPFYamlError, YAML_SCHEMA_URL, fromYaml, parseYamlData, scanYamlComments, toYaml } from './chunk-HOK3DZA6.js';
2
+ import './chunk-DMV3G65U.js';
3
3
  import './chunk-RYZPBJLB.js';
4
- import './chunk-VD7WLE3C.js';
5
- import './chunk-XJU2X5JM.js';
6
- import './chunk-C5ACMFKB.js';
4
+ import './chunk-ZB427MLO.js';
5
+ import './chunk-EHYAVRL3.js';
6
+ import './chunk-DDD4WUEH.js';
7
7
  import './chunk-JBARNYFR.js';
8
- import './chunk-KANQVJGK.js';
8
+ import './chunk-Q2L5ERNK.js';
9
9
  import './chunk-QFT4R2IL.js';
10
10
  import './chunk-BLCDUM7B.js';
11
11
  import './chunk-PRXZD2II.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openpresentation/opf",
3
- "version": "0.37.0",
3
+ "version": "0.37.1",
4
4
  "description": "Canonical Open Presentation Format schemas, TypeScript types, local validation and composition; in Node, the file API and the CLI defaults register the pptx.gallery catalog of @openpresentation/gallery.",
5
5
  "license": "MIT",
6
6
  "author": "Open Presentation",
@@ -178,6 +178,7 @@
178
178
  "dist",
179
179
  "README.md",
180
180
  "LICENSE",
181
+ "THIRD-PARTY-NOTICES.md",
181
182
  "package.json"
182
183
  ],
183
184
  "engines": {
@@ -186,10 +187,9 @@
186
187
  "dependencies": {
187
188
  "ajv": "^8.17.1",
188
189
  "ajv-formats": "^3.0.1",
189
- "jsonc-parser": "3.3.1",
190
190
  "pele": "1.13.0",
191
191
  "yaml": "^2.9.1",
192
- "@openpresentation/gallery": "^0.37.0"
192
+ "@openpresentation/gallery": "^0.37.1"
193
193
  },
194
194
  "devDependencies": {
195
195
  "@expo-google-fonts/arimo": "0.4.3",
@@ -203,6 +203,7 @@
203
203
  "@resvg/resvg-js": "2.6.2",
204
204
  "@types/node": "^24.13.4",
205
205
  "json-schema-to-typescript": "^16.0.0",
206
+ "jsonc-parser": "3.3.1",
206
207
  "pdf-lib": "1.17.1",
207
208
  "sharp": "0.35.5",
208
209
  "tsup": "^9.0.0",
@@ -210,8 +211,8 @@
210
211
  "workerd": "1.20261113.1"
211
212
  },
212
213
  "peerDependencies": {
213
- "@openpresentation/opf-pptx": "^0.37.0",
214
- "@openpresentation/opf-render": "^0.37.0"
214
+ "@openpresentation/opf-pptx": "^0.37.1",
215
+ "@openpresentation/opf-render": "^0.37.1"
215
216
  },
216
217
  "peerDependenciesMeta": {
217
218
  "@openpresentation/opf-pptx": {
@@ -232,5 +233,5 @@
232
233
  "test:packed": "node test/packed-install-smoke.mjs",
233
234
  "pack:dry-run": "pnpm run build:deps && pnpm run build && npm pack --dry-run --cache /tmp/opf-npm-cache"
234
235
  },
235
- "gitHead": "e6aa9c9ce3109709b8b8f14171ce71af339c3004"
236
+ "gitHead": "9c9fadf142756092c47a2eba3bfda13dcf406419"
236
237
  }
@@ -1,25 +0,0 @@
1
- export { convertFiles, deckFileFormat, exportFormatOf, openDeck, planConversion, readInput, saveDeck, writePlanned } from './chunk-EOMENOKY.js';
2
- import './chunk-XJUMFH33.js';
3
- import './chunk-HS2JQ3AO.js';
4
- import './chunk-W4DYDRV2.js';
5
- import './chunk-QQBOI5XI.js';
6
- import './chunk-ORVMHVOS.js';
7
- import './chunk-YZ4WMB5C.js';
8
- import './chunk-TIVBO56G.js';
9
- import './chunk-CYGQY6HH.js';
10
- import './chunk-4FA4ZABY.js';
11
- import './chunk-6WN6PRCI.js';
12
- import './chunk-RYZPBJLB.js';
13
- import './chunk-44IS6ZU2.js';
14
- import './chunk-BHRCWV6B.js';
15
- import './chunk-56BYOGIF.js';
16
- import './chunk-VD7WLE3C.js';
17
- import './chunk-XJU2X5JM.js';
18
- import './chunk-3A3PNYNP.js';
19
- import './chunk-JTNCBTEH.js';
20
- import './chunk-C5ACMFKB.js';
21
- import './chunk-JBARNYFR.js';
22
- import './chunk-KANQVJGK.js';
23
- import './chunk-QFT4R2IL.js';
24
- import './chunk-BLCDUM7B.js';
25
- import './chunk-PRXZD2II.js';