@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.
- package/README.md +6 -6
- package/dist/browser.js +19 -19
- package/dist/{catalog-refs-wtuudZTe.d.ts → catalog-refs-BgotJhR5.d.ts} +105 -95
- package/dist/{catalog-schemas-CSxuFtsu.d.ts → catalog-schemas-BX-VEc5Q.d.ts} +1 -1
- package/dist/{chunk-RM4Z7ZSW.js → chunk-2GCTKQDD.js} +4 -4
- package/dist/{chunk-VI7VWDTN.js → chunk-3KPTVK77.js} +75 -283
- package/dist/{chunk-AQ3WR3H7.js → chunk-3ZTKRX7F.js} +4 -6
- package/dist/{chunk-IDYYLJCQ.js → chunk-4UMZDDJG.js} +11 -29
- package/dist/{chunk-NLJFNCZ4.js → chunk-6JHV2K67.js} +6 -6
- package/dist/{chunk-FK5XG742.js → chunk-6VGLE7C5.js} +114 -2
- package/dist/{chunk-V4G3BYPY.js → chunk-7KUUIL7W.js} +7 -7
- package/dist/{chunk-PHOSM2RA.js → chunk-ARPMSD7V.js} +1 -1
- package/dist/{chunk-UKI43JE6.js → chunk-GGN3NQDK.js} +1 -1
- package/dist/{chunk-XLXCXEVF.js → chunk-GKUAVSXU.js} +3 -10
- package/dist/{chunk-HX4HEJB4.js → chunk-HORPH6O7.js} +7 -6
- package/dist/{chunk-KJFCHCWV.js → chunk-JQNT37IO.js} +4 -13
- package/dist/{chunk-WBPXRUZT.js → chunk-KNMMEE67.js} +795 -467
- package/dist/{chunk-IGT4523S.js → chunk-LDLLZQPP.js} +706 -432
- package/dist/{chunk-6MSH3KCZ.js → chunk-MS2LPR7F.js} +1 -5
- package/dist/{chunk-NMZCPZ3R.js → chunk-MVPQEMCP.js} +97 -15
- package/dist/{chunk-P2X4BBW2.js → chunk-NPRNWPP4.js} +1 -1
- package/dist/{chunk-EQCZ2SFD.js → chunk-P2ACZJUL.js} +6 -6
- package/dist/chunk-SEC4IOOS.js +1 -0
- package/dist/{chunk-VVPPMHP6.js → chunk-VMPOCXTE.js} +5 -17
- package/dist/{chunk-MDAXXFAY.js → chunk-ZZWX4W2G.js} +2 -2
- package/dist/{composition-DF07Ha4R.d.ts → composition-BmJfljJl.d.ts} +198 -114
- package/dist/composition.d.ts +2 -2
- package/dist/composition.js +1 -1
- package/dist/{conversion-52ki0lfZ.d.ts → conversion-BbXhlurO.d.ts} +7 -7
- package/dist/conversion-VWCH3NKR.js +25 -0
- package/dist/convert.d.ts +11 -11
- package/dist/convert.js +61 -86
- package/dist/data.d.ts +1 -1
- package/dist/data.js +2 -2
- package/dist/{deck-report-C3EsoHC3.d.ts → deck-report-BYkbL7uT.d.ts} +3 -3
- package/dist/deck.d.ts +6 -6
- package/dist/deck.js +11 -11
- package/dist/diagram-engine-eager.js +1 -1
- package/dist/diagram-engine-lazy.js +1 -1
- package/dist/{diagram-plantuml-XRZ6VAOL.js → diagram-plantuml-GWXGKY7R.js} +1 -1
- package/dist/diff.d.ts +2 -2
- package/dist/diff.js +4 -4
- package/dist/docs.js +39 -39
- package/dist/examples.js +6336 -8170
- package/dist/{finding-l9dlQ2NF.d.ts → finding-mcHslZLA.d.ts} +6 -2
- package/dist/font-policy.d.ts +16 -2
- package/dist/font-policy.js +1 -1
- package/dist/format.js +2 -2
- package/dist/ids.d.ts +2 -2
- package/dist/ids.js +4 -4
- package/dist/index.d.ts +125 -27
- package/dist/index.js +24 -23
- package/dist/markdown.d.ts +1 -1
- package/dist/markdown.js +8 -8
- package/dist/node-engine.d.ts +6 -6
- package/dist/node-engine.js +21 -21
- package/dist/{pagination-Do7vNgU-.d.ts → pagination-C0FPjO29.d.ts} +4 -4
- package/dist/pagination.d.ts +3 -3
- package/dist/pagination.js +4 -4
- package/dist/patch.d.ts +4 -4
- package/dist/patch.js +3 -3
- package/dist/precompiled.js +2 -2
- package/dist/{presentation-ANs2WkaS.d.ts → presentation-Dx-kZC8Y.d.ts} +25 -81
- package/dist/repo-readme.js +1 -1
- package/dist/schema-engine-ajv.js +1 -1
- package/dist/schema-engine-precompiled.js +2 -2
- package/dist/schema.d.ts +5 -7
- package/dist/schema.js +3 -3
- package/dist/schemas.js +1 -1
- package/dist/source.js +10 -10
- package/dist/spec/reference/engine-defaults.json +1 -1
- package/dist/spec/reference/engine-vocabularies.json +43 -43
- package/dist/spec/reference/font-policy.json +114 -2
- package/dist/spec/reference/font-policy.schema.json +45 -1
- package/dist/spec/schemas/color-scheme.schema.json +2 -2
- package/dist/spec/schemas/finding.schema.json +2 -1
- package/dist/spec/schemas/layout.schema.json +27 -85
- package/dist/spec/schemas/opf.schema.json +26 -175
- package/dist/spec/schemas/theme.schema.json +10 -10
- package/dist/symbol-font-encodings.d.ts +2 -2
- package/dist/types.d.ts +74 -86
- package/dist/{validation-types-BNS41nzb.d.ts → validation-types-DKIe1RQW.d.ts} +5 -5
- package/dist/validator.d.ts +5 -7
- package/dist/validator.js +3 -3
- package/dist/yaml.d.ts +1 -1
- package/dist/yaml.js +7 -7
- package/package.json +5 -5
- package/dist/chunk-HSXWDXKM.js +0 -1
- package/dist/conversion-F3HSCFOV.js +0 -25
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { parseQuoteLines, levelsFromIndents, parseCodeFence, splitWhen } from './chunk-
|
|
2
|
-
import { Ctx, splitLines, lineRange, readYamlMapping, readCsv, DECIMAL } from './chunk-
|
|
3
|
-
import { runText, isRecord, FORMATTING } from './chunk-
|
|
4
|
-
import { METRIC_KEYS, nearest, BLOCK_AS_VALUES, SLIDE_OPTION_KEYS, BLOCK_OPTION_KEYS } from './chunk-
|
|
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
|
|
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-
|
|
2
|
-
import { createLocator } from './chunk-
|
|
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);
|