@openpresentation/opf 0.34.2 → 0.35.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 (89) hide show
  1. package/README.md +6 -6
  2. package/dist/browser.js +19 -19
  3. package/dist/{catalog-refs-wtuudZTe.d.ts → catalog-refs-BgotJhR5.d.ts} +105 -95
  4. package/dist/{catalog-schemas-CSxuFtsu.d.ts → catalog-schemas-BX-VEc5Q.d.ts} +1 -1
  5. package/dist/{chunk-RM4Z7ZSW.js → chunk-2GCTKQDD.js} +4 -4
  6. package/dist/{chunk-VI7VWDTN.js → chunk-3KPTVK77.js} +75 -283
  7. package/dist/{chunk-AQ3WR3H7.js → chunk-3ZTKRX7F.js} +4 -6
  8. package/dist/{chunk-IDYYLJCQ.js → chunk-4UMZDDJG.js} +11 -29
  9. package/dist/{chunk-NLJFNCZ4.js → chunk-6JHV2K67.js} +6 -6
  10. package/dist/{chunk-FK5XG742.js → chunk-6VGLE7C5.js} +114 -2
  11. package/dist/{chunk-V4G3BYPY.js → chunk-7KUUIL7W.js} +7 -7
  12. package/dist/{chunk-PHOSM2RA.js → chunk-ARPMSD7V.js} +1 -1
  13. package/dist/{chunk-UKI43JE6.js → chunk-GGN3NQDK.js} +1 -1
  14. package/dist/{chunk-XLXCXEVF.js → chunk-GKUAVSXU.js} +3 -10
  15. package/dist/{chunk-HX4HEJB4.js → chunk-HORPH6O7.js} +7 -6
  16. package/dist/{chunk-KJFCHCWV.js → chunk-JQNT37IO.js} +4 -13
  17. package/dist/{chunk-WBPXRUZT.js → chunk-KNMMEE67.js} +795 -467
  18. package/dist/{chunk-IGT4523S.js → chunk-LDLLZQPP.js} +706 -432
  19. package/dist/{chunk-6MSH3KCZ.js → chunk-MS2LPR7F.js} +1 -5
  20. package/dist/{chunk-NMZCPZ3R.js → chunk-MVPQEMCP.js} +97 -15
  21. package/dist/{chunk-P2X4BBW2.js → chunk-NPRNWPP4.js} +1 -1
  22. package/dist/{chunk-EQCZ2SFD.js → chunk-P2ACZJUL.js} +6 -6
  23. package/dist/chunk-SEC4IOOS.js +1 -0
  24. package/dist/{chunk-VVPPMHP6.js → chunk-VMPOCXTE.js} +5 -17
  25. package/dist/{chunk-MDAXXFAY.js → chunk-ZZWX4W2G.js} +2 -2
  26. package/dist/{composition-DF07Ha4R.d.ts → composition-BmJfljJl.d.ts} +198 -114
  27. package/dist/composition.d.ts +2 -2
  28. package/dist/composition.js +1 -1
  29. package/dist/{conversion-52ki0lfZ.d.ts → conversion-BbXhlurO.d.ts} +7 -7
  30. package/dist/conversion-VWCH3NKR.js +25 -0
  31. package/dist/convert.d.ts +11 -11
  32. package/dist/convert.js +61 -86
  33. package/dist/data.d.ts +1 -1
  34. package/dist/data.js +2 -2
  35. package/dist/{deck-report-C3EsoHC3.d.ts → deck-report-BYkbL7uT.d.ts} +3 -3
  36. package/dist/deck.d.ts +6 -6
  37. package/dist/deck.js +11 -11
  38. package/dist/diagram-engine-eager.js +1 -1
  39. package/dist/diagram-engine-lazy.js +1 -1
  40. package/dist/{diagram-plantuml-XRZ6VAOL.js → diagram-plantuml-GWXGKY7R.js} +1 -1
  41. package/dist/diff.d.ts +2 -2
  42. package/dist/diff.js +4 -4
  43. package/dist/docs.js +39 -39
  44. package/dist/examples.js +6336 -8170
  45. package/dist/{finding-l9dlQ2NF.d.ts → finding-mcHslZLA.d.ts} +6 -2
  46. package/dist/font-policy.d.ts +16 -2
  47. package/dist/font-policy.js +1 -1
  48. package/dist/format.js +2 -2
  49. package/dist/ids.d.ts +2 -2
  50. package/dist/ids.js +4 -4
  51. package/dist/index.d.ts +125 -27
  52. package/dist/index.js +24 -23
  53. package/dist/markdown.d.ts +1 -1
  54. package/dist/markdown.js +8 -8
  55. package/dist/node-engine.d.ts +6 -6
  56. package/dist/node-engine.js +21 -21
  57. package/dist/{pagination-Do7vNgU-.d.ts → pagination-C0FPjO29.d.ts} +4 -4
  58. package/dist/pagination.d.ts +3 -3
  59. package/dist/pagination.js +4 -4
  60. package/dist/patch.d.ts +4 -4
  61. package/dist/patch.js +3 -3
  62. package/dist/precompiled.js +2 -2
  63. package/dist/{presentation-ANs2WkaS.d.ts → presentation-Dx-kZC8Y.d.ts} +25 -81
  64. package/dist/repo-readme.js +1 -1
  65. package/dist/schema-engine-ajv.js +1 -1
  66. package/dist/schema-engine-precompiled.js +2 -2
  67. package/dist/schema.d.ts +5 -7
  68. package/dist/schema.js +3 -3
  69. package/dist/schemas.js +1 -1
  70. package/dist/source.js +10 -10
  71. package/dist/spec/reference/engine-defaults.json +1 -1
  72. package/dist/spec/reference/engine-vocabularies.json +43 -43
  73. package/dist/spec/reference/font-policy.json +114 -2
  74. package/dist/spec/reference/font-policy.schema.json +45 -1
  75. package/dist/spec/schemas/color-scheme.schema.json +2 -2
  76. package/dist/spec/schemas/finding.schema.json +2 -1
  77. package/dist/spec/schemas/layout.schema.json +27 -85
  78. package/dist/spec/schemas/opf.schema.json +26 -175
  79. package/dist/spec/schemas/theme.schema.json +10 -10
  80. package/dist/symbol-font-encodings.d.ts +2 -2
  81. package/dist/types.d.ts +74 -86
  82. package/dist/{validation-types-BNS41nzb.d.ts → validation-types-DKIe1RQW.d.ts} +5 -5
  83. package/dist/validator.d.ts +5 -7
  84. package/dist/validator.js +3 -3
  85. package/dist/yaml.d.ts +1 -1
  86. package/dist/yaml.js +7 -7
  87. package/package.json +5 -5
  88. package/dist/chunk-HSXWDXKM.js +0 -1
  89. package/dist/conversion-F3HSCFOV.js +0 -25
@@ -1,8 +1,7 @@
1
- import { parseQuoteLines, levelsFromIndents, parseCodeFence, splitWhen } from './chunk-P2X4BBW2.js';
2
- import { Ctx, splitLines, lineRange, readYamlMapping, readCsv, DECIMAL } from './chunk-MDAXXFAY.js';
3
- import { runText, isRecord, FORMATTING } from './chunk-PHOSM2RA.js';
4
- import { METRIC_KEYS, nearest, BLOCK_AS_VALUES, SLIDE_OPTION_KEYS, BLOCK_OPTION_KEYS } from './chunk-WBPXRUZT.js';
5
- import { PROMOTED_REGION_KEY } from './chunk-IGT4523S.js';
1
+ import { parseQuoteLines, levelsFromIndents, parseCodeFence, splitWhen } from './chunk-NPRNWPP4.js';
2
+ import { Ctx, splitLines, lineRange, readYamlMapping, readCsv, DECIMAL } from './chunk-ZZWX4W2G.js';
3
+ import { runText, isRecord, FORMATTING } from './chunk-ARPMSD7V.js';
4
+ import { METRIC_KEYS, nearest, BLOCK_AS_VALUES, SLIDE_OPTION_KEYS, BLOCK_OPTION_KEYS } from './chunk-KNMMEE67.js';
6
5
 
7
6
  // src/markdown/inline.ts
8
7
  var PUNCT = /[\p{P}\p{S}]/u;
@@ -1149,9 +1148,7 @@ var SlideParser = class {
1149
1148
  set("language", options.language);
1150
1149
  set("title", this.title);
1151
1150
  set("subtitle", this.subtitle);
1152
- const promoted = (block) => typeof block.options?.region === "string" && PROMOTED_REGION_KEY.test(block.options.region);
1153
- const content = this.blocks.filter((block) => !promoted(block));
1154
- const regions = this.blocks.filter(promoted);
1151
+ const content = this.blocks;
1155
1152
  const [only] = content;
1156
1153
  if (content.length === 1 && only?.key !== void 0 && only.options?.id === void 0 && only.options?.type === void 0 && only.options?.region === void 0 && isContentKey(only.key) && Object.keys(only.payload).length === 1) {
1157
1154
  slide[only.key] = only.payload[only.key];
@@ -1168,15 +1165,6 @@ var SlideParser = class {
1168
1165
  return Object.assign(out, block.payload);
1169
1166
  });
1170
1167
  }
1171
- for (const block of regions) {
1172
- const region = block.options.region;
1173
- const payload = {};
1174
- if (block.options?.id !== void 0) payload.id = block.options.id;
1175
- if (block.options?.type !== void 0) payload.type = block.options.type;
1176
- Object.assign(payload, block.payload);
1177
- ctx.ranges.set(`${path}/${region}`, block.range);
1178
- set(region, payload, block.range);
1179
- }
1180
1168
  set("notes", this.notes || void 0, this.notesRange);
1181
1169
  if (this.notesRange && this.notes) ctx.ranges.set(`${path}/notes`, this.notesRange);
1182
1170
  set("hidden", options.hidden);
@@ -1,5 +1,5 @@
1
- import { isRecord, same } from './chunk-PHOSM2RA.js';
2
- import { createLocator } from './chunk-WBPXRUZT.js';
1
+ import { isRecord, same } from './chunk-ARPMSD7V.js';
2
+ import { createLocator } from './chunk-KNMMEE67.js';
3
3
  import { parseDocument, isMap, isSeq, isScalar, YAMLMap, Scalar, stringify, visit } from 'yaml';
4
4
 
5
5
  var sentence = (text) => text.charAt(0).toUpperCase() + text.slice(1);