@openpresentation/opf 0.26.9 → 0.27.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 (79) hide show
  1. package/README.md +6 -0
  2. package/dist/browser.js +20 -17
  3. package/dist/{chunk-H7XMO36O.js → chunk-353VBJ6K.js} +5 -5
  4. package/dist/chunk-43JWUIGF.js +8 -0
  5. package/dist/chunk-4ACS57MG.js +236 -0
  6. package/dist/{chunk-F4HFDP6I.js → chunk-4ZM5G3XX.js} +1 -1
  7. package/dist/{chunk-NVT2YDVC.js → chunk-7XUEKIXH.js} +2 -2
  8. package/dist/{chunk-Y25DYRME.js → chunk-ABFDFZIW.js} +1 -1
  9. package/dist/{chunk-A54NGT2K.js → chunk-APLNGCEZ.js} +2 -2
  10. package/dist/{chunk-G5WJMJV3.js → chunk-CXPBU5W4.js} +1 -1
  11. package/dist/{chunk-PHP45MO7.js → chunk-EO3JWEO5.js} +1 -1
  12. package/dist/chunk-GJO5NUVT.js +1 -0
  13. package/dist/chunk-GM7WFPGG.js +10 -0
  14. package/dist/{chunk-3S2XVDPN.js → chunk-GNKESMZT.js} +6 -6
  15. package/dist/chunk-JBARNYFR.js +23 -0
  16. package/dist/{chunk-TKQ2VFV5.js → chunk-JSHMFTSY.js} +1 -1
  17. package/dist/{chunk-VZBFQLCA.js → chunk-KZPZRHL6.js} +6 -6
  18. package/dist/{chunk-XRMV2GMB.js → chunk-LRTQXGJO.js} +236 -144
  19. package/dist/{chunk-EQ6S5SEZ.js → chunk-O3SA5SJ4.js} +1 -1
  20. package/dist/{chunk-GIWNHRTX.js → chunk-OSM3LZ2Y.js} +4 -4
  21. package/dist/{chunk-IVPA6NG6.js → chunk-PAGVSTVF.js} +348 -97
  22. package/dist/{chunk-Y4TZCE7R.js → chunk-SYW4BCGZ.js} +2 -2
  23. package/dist/{chunk-D25BNPTW.js → chunk-TMREBZBQ.js} +4 -4
  24. package/dist/{chunk-77KL2PMM.js → chunk-WJ4XTCOD.js} +2 -2
  25. package/dist/{chunk-XMCBFQPY.js → chunk-ZGTOZA2S.js} +6 -6
  26. package/dist/{composition-DIftf6iP.d.ts → composition-BGmpe5e4.d.ts} +51 -5
  27. package/dist/composition.d.ts +1 -1
  28. package/dist/composition.js +2 -1
  29. package/dist/{conversion-Bnx8mWl9.d.ts → conversion-8SQD4dqu.d.ts} +6 -6
  30. package/dist/conversion-LN6PFRZL.js +24 -0
  31. package/dist/convert.d.ts +2 -2
  32. package/dist/convert.js +9 -7
  33. package/dist/data.d.ts +1 -1
  34. package/dist/data.js +3 -2
  35. package/dist/{deck-report-5vwMGcQz.d.ts → deck-report-BaKgPh_N.d.ts} +2 -2
  36. package/dist/deck.d.ts +6 -6
  37. package/dist/deck.js +13 -11
  38. package/dist/diff.d.ts +1 -1
  39. package/dist/diff.js +6 -4
  40. package/dist/docs.js +8 -6
  41. package/dist/examples.d.ts +1 -1
  42. package/dist/examples.js +2 -0
  43. package/dist/{finding-l9dlQ2NF.d.ts → finding-Bh56sGtF.d.ts} +1 -1
  44. package/dist/font-policy.js +1 -0
  45. package/dist/format.js +3 -2
  46. package/dist/ids.d.ts +113 -0
  47. package/dist/ids.js +6 -0
  48. package/dist/index.d.ts +15 -12
  49. package/dist/index.js +24 -21
  50. package/dist/markdown.d.ts +4 -4
  51. package/dist/markdown.js +10 -8
  52. package/dist/node-engine.d.ts +8 -8
  53. package/dist/node-engine.js +24 -21
  54. package/dist/{pagination-D_kJe4jH.d.ts → pagination-BsUTsQvk.d.ts} +1 -1
  55. package/dist/pagination.d.ts +2 -2
  56. package/dist/pagination.js +6 -4
  57. package/dist/patch.d.ts +87 -4
  58. package/dist/patch.js +5 -3
  59. package/dist/precompiled.d.ts +2 -0
  60. package/dist/precompiled.js +7 -0
  61. package/dist/{presentation-Bwo8Ko6D.d.ts → presentation-C-nHZyMw.d.ts} +1 -1
  62. package/dist/repo-readme.js +2 -0
  63. package/dist/schema-engine-ajv.js +37 -0
  64. package/dist/schema-engine-precompiled.js +3 -0
  65. package/dist/schema.js +5 -3
  66. package/dist/schemas.js +2 -1
  67. package/dist/source.d.ts +1 -1
  68. package/dist/source.js +12 -10
  69. package/dist/spec/schemas/opf.schema.json +1 -1
  70. package/dist/spec-files.js +1 -0
  71. package/dist/symbol-font-encodings.js +2 -0
  72. package/dist/types.d.ts +2 -2
  73. package/dist/{validation-types-3ARvTsB0.d.ts → validation-types-6_jEaHeE.d.ts} +2 -2
  74. package/dist/validator.d.ts +5 -5
  75. package/dist/validator.js +5 -3
  76. package/dist/yaml.d.ts +4 -4
  77. package/dist/yaml.js +9 -7
  78. package/package.json +29 -8
  79. package/dist/conversion-63DPSXBJ.js +0 -21
@@ -0,0 +1,10 @@
1
+ var __getOwnPropNames = Object.getOwnPropertyNames;
2
+ var __commonJS = (cb, mod) => function __require() {
3
+ try {
4
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
5
+ } catch (e) {
6
+ throw mod = 0, e;
7
+ }
8
+ };
9
+
10
+ export { __commonJS };
@@ -1,10 +1,10 @@
1
1
  import { NOT_CHECKED } from './chunk-RYZPBJLB.js';
2
- import { readMarkdown, parseSlideText, escapeInline, serializeRuns } from './chunk-H7XMO36O.js';
3
- import { fenceCode } from './chunk-PHP45MO7.js';
4
- import { OPFMarkdownError, writeYaml, Ctx, readYamlMapping, csvField, scalarText } from './chunk-Y4TZCE7R.js';
5
- import { same, isRecord, runText, isPlainRun, FORMATTING } from './chunk-Y25DYRME.js';
6
- import { validate } from './chunk-IVPA6NG6.js';
7
- import { checkCatalogsOption } from './chunk-XRMV2GMB.js';
2
+ import { readMarkdown, parseSlideText, escapeInline, serializeRuns } from './chunk-353VBJ6K.js';
3
+ import { fenceCode } from './chunk-EO3JWEO5.js';
4
+ import { OPFMarkdownError, writeYaml, Ctx, readYamlMapping, csvField, scalarText } from './chunk-SYW4BCGZ.js';
5
+ import { same, isRecord, runText, isPlainRun, FORMATTING } from './chunk-ABFDFZIW.js';
6
+ import { validate } from './chunk-PAGVSTVF.js';
7
+ import { checkCatalogsOption } from './chunk-LRTQXGJO.js';
8
8
 
9
9
  // src/markdown/canon.ts
10
10
  var FORMAT_KEYS = FORMATTING;
@@ -0,0 +1,23 @@
1
+ // src/branch-schema.ts
2
+ var origin = /* @__PURE__ */ new WeakMap();
3
+ function qualifyBranch(node, rootId) {
4
+ if (Array.isArray(node)) {
5
+ const copy = node.map((item) => qualifyBranch(item, rootId));
6
+ origin.set(copy, node);
7
+ return copy;
8
+ }
9
+ if (node && typeof node === "object") {
10
+ const copy = {};
11
+ for (const [name, value] of Object.entries(node)) copy[name] = name === "$ref" && typeof value === "string" && value.startsWith("#") ? rootId + value : qualifyBranch(value, rootId);
12
+ origin.set(copy, node);
13
+ return copy;
14
+ }
15
+ return node;
16
+ }
17
+ var original = (node) => {
18
+ let current = node;
19
+ while (current && typeof current === "object" && origin.has(current)) current = origin.get(current);
20
+ return current;
21
+ };
22
+
23
+ export { original, qualifyBranch };
@@ -1,4 +1,4 @@
1
- import { chartNumber } from './chunk-XRMV2GMB.js';
1
+ import { chartNumber } from './chunk-LRTQXGJO.js';
2
2
 
3
3
  // src/data.ts
4
4
  var OPFDataImportError = class extends Error {
@@ -1,10 +1,10 @@
1
+ import { sortPresentationKeys } from './chunk-O3SA5SJ4.js';
1
2
  import { NOT_CHECKED } from './chunk-RYZPBJLB.js';
2
- import { Ctx, describeYamlErrors } from './chunk-Y4TZCE7R.js';
3
- import { same } from './chunk-Y25DYRME.js';
4
- import { validate } from './chunk-IVPA6NG6.js';
5
- import { checkCatalogsOption } from './chunk-XRMV2GMB.js';
6
- import { sortPresentationKeys } from './chunk-EQ6S5SEZ.js';
7
- import { presentation } from './chunk-F4HFDP6I.js';
3
+ import { Ctx, describeYamlErrors } from './chunk-SYW4BCGZ.js';
4
+ import { same } from './chunk-ABFDFZIW.js';
5
+ import { validate } from './chunk-PAGVSTVF.js';
6
+ import { presentation } from './chunk-4ZM5G3XX.js';
7
+ import { checkCatalogsOption } from './chunk-LRTQXGJO.js';
8
8
  import { Parser, parseDocument, isMap, isSeq, Document, visit, isScalar, isAlias } from 'yaml';
9
9
 
10
10
  var MAX_ALIAS_COUNT = 100;