@openpresentation/opf 0.32.1 → 0.33.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 +9 -0
- package/dist/browser.js +20 -20
- package/dist/{catalog-refs-kAefsZWT.d.ts → catalog-refs-B_0_vZg0.d.ts} +5 -0
- package/dist/{catalog-schemas-LdqOPebq.d.ts → catalog-schemas-CQTM-G8p.d.ts} +10 -4
- package/dist/{chunk-CLRYHWQN.js → chunk-ABWEUXLV.js} +72 -6
- package/dist/{chunk-XFHXQCXL.js → chunk-BI4ERFAA.js} +52 -1
- package/dist/{chunk-SZFO3MAJ.js → chunk-DAS75LGR.js} +3 -3
- package/dist/{chunk-F7DN33UL.js → chunk-E7WQHMCL.js} +6 -6
- package/dist/chunk-IJXKVM4W.js +221 -0
- package/dist/{chunk-AQEAZDL2.js → chunk-INIMUBSE.js} +2 -1
- package/dist/{chunk-NEJ32O7X.js → chunk-KVHNDHVS.js} +1 -1
- package/dist/{chunk-NVAJASOD.js → chunk-OPVJLL7H.js} +6867 -1862
- package/dist/{chunk-GM7WFPGG.js → chunk-PRXZD2II.js} +6 -1
- package/dist/{chunk-BBVW5ZC2.js → chunk-QD6DPS7X.js} +2 -2
- package/dist/{chunk-LEF4X4KI.js → chunk-QF5RSRXU.js} +1797 -170
- package/dist/{chunk-HKUV7NEN.js → chunk-R6C6BQOG.js} +1 -1
- package/dist/{chunk-IT7FQKED.js → chunk-S5QRGMUQ.js} +6 -6
- package/dist/{chunk-OXLA4HXQ.js → chunk-UK3J6FSU.js} +346 -53
- package/dist/{chunk-XQO2CT6Q.js → chunk-VKEYV3ZK.js} +1 -1
- package/dist/{chunk-ONVFUVQ5.js → chunk-VMBLNCX2.js} +31 -13
- package/dist/{chunk-YFJIIIOL.js → chunk-VSBZC2PR.js} +2 -2
- package/dist/{chunk-UJSAR6GF.js → chunk-W4DYDRV2.js} +21 -0
- package/dist/{chunk-J63CIRIV.js → chunk-XANW7MB7.js} +4 -4
- package/dist/{chunk-PB7ME64J.js → chunk-XIOC6N5P.js} +1 -1
- package/dist/{chunk-2E6CDYL2.js → chunk-Y557TYML.js} +5 -5
- package/dist/{chunk-SW676APJ.js → chunk-YS333HLA.js} +2 -2
- package/dist/chunk-YYT6N7AI.js +642 -0
- package/dist/chunk-ZXOIGUHX.js +1 -0
- package/dist/{composition-Ds6WHyO7.d.ts → composition-zMiIgzip.d.ts} +2353 -272
- package/dist/composition.d.ts +3 -2
- package/dist/composition.js +2 -2
- package/dist/conversion-POHRAMSN.js +24 -0
- package/dist/{conversion-CdzrTxib.d.ts → conversion-mNth9XKm.d.ts} +20 -9
- package/dist/convert.d.ts +3 -2
- package/dist/convert.js +9 -9
- package/dist/data.d.ts +1 -1
- package/dist/data.js +3 -3
- package/dist/{deck-report-CKDNQ2t4.d.ts → deck-report-BSlRiR0_.d.ts} +3 -3
- package/dist/deck.d.ts +6 -5
- package/dist/deck.js +12 -12
- package/dist/diagram-engine-eager.js +1 -1
- package/dist/diagram-engine-lazy.js +1 -1
- package/dist/diff.js +5 -5
- package/dist/docs.js +48 -24
- package/dist/examples.js +7507 -142
- package/dist/font-policy.js +1 -1
- package/dist/format.js +3 -3
- package/dist/ids.js +5 -5
- package/dist/index.d.ts +13 -12
- package/dist/index.js +24 -24
- package/dist/markdown.d.ts +2 -1
- package/dist/markdown.js +9 -9
- package/dist/node-engine.d.ts +7 -6
- package/dist/node-engine.js +24 -24
- package/dist/{pagination-DRZ_JNFY.d.ts → pagination-CYzNMazO.d.ts} +20 -3
- package/dist/pagination.d.ts +4 -3
- package/dist/pagination.js +5 -5
- package/dist/patch.js +4 -4
- package/dist/precompiled.js +3 -3
- package/dist/{presentation-DnD7mfmf.d.ts → presentation-CXhfpB_z.d.ts} +876 -39
- package/dist/repo-readme.js +2 -2
- package/dist/schema-engine-ajv.js +2 -2
- package/dist/schema-engine-precompiled.js +3 -3
- package/dist/schema.d.ts +2 -2
- package/dist/schema.js +4 -4
- package/dist/schemas.d.ts +40 -4
- package/dist/schemas.js +2 -2
- package/dist/shape-catalog.d.ts +98 -0
- package/dist/shape-catalog.js +302 -0
- package/dist/shape-engine-eager.js +9 -0
- package/dist/shape-engine-lazy.js +12 -0
- package/dist/shape-engine-module-BK7JNEUV.js +3 -0
- package/dist/shape-geometry.d.ts +126 -0
- package/dist/shape-geometry.js +2 -0
- package/dist/source.js +11 -11
- package/dist/spec/README.md +1 -1
- package/dist/spec/reference/preset-geometry.json +10699 -0
- package/dist/spec/reference/preset-geometry.schema.json +126 -0
- package/dist/spec/schemas/catalog-index.schema.json +1 -0
- package/dist/spec/schemas/chart-type.schema.json +4 -4
- package/dist/spec/schemas/icon-set.schema.json +75 -0
- package/dist/spec/schemas/layout.schema.json +14 -1
- package/dist/spec/schemas/opf.schema.json +1144 -196
- package/dist/spec-files.d.ts +1 -1
- package/dist/spec-files.js +2 -2
- package/dist/symbol-font-encodings.js +1 -1
- package/dist/types.d.ts +10 -6
- package/dist/{validation-types-DxyYPebs.d.ts → validation-types-COwTel3H.d.ts} +2 -2
- package/dist/validator.d.ts +5 -4
- package/dist/validator.js +4 -4
- package/dist/yaml.d.ts +2 -1
- package/dist/yaml.js +8 -8
- package/package.json +21 -5
- package/dist/chunk-DGS47ONG.js +0 -1
- package/dist/conversion-5FUDQPED.js +0 -24
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defaultCatalogs } from './chunk-
|
|
2
|
-
import { localAssetSources, OPFApiError, parseSlideSelection, OPFExportError, asApiError, OPFImportError } from './chunk-
|
|
3
|
-
import { paginate, continueOverfull } from './chunk-
|
|
4
|
-
import { deckFormatOf, readDeckReport, stringify } from './chunk-
|
|
5
|
-
import { validate, OPFValidationError } from './chunk-
|
|
1
|
+
import { defaultCatalogs } from './chunk-INIMUBSE.js';
|
|
2
|
+
import { localAssetSources, OPFApiError, parseSlideSelection, OPFExportError, asApiError, OPFImportError } from './chunk-DAS75LGR.js';
|
|
3
|
+
import { paginate, continueOverfull } from './chunk-ABWEUXLV.js';
|
|
4
|
+
import { deckFormatOf, readDeckReport, stringify } from './chunk-XANW7MB7.js';
|
|
5
|
+
import { validate, OPFValidationError } from './chunk-UK3J6FSU.js';
|
|
6
|
+
import { ensureIcons } from './chunk-OPVJLL7H.js';
|
|
6
7
|
import { link, stat, readdir, lstat, readFile, open, unlink, mkdir, rename } from 'fs/promises';
|
|
7
8
|
import path6 from 'path';
|
|
8
9
|
import { readFileSync, statSync, realpathSync } from 'fs';
|
|
@@ -123,7 +124,7 @@ function localAssetProblems(deck, root) {
|
|
|
123
124
|
}
|
|
124
125
|
var RENDER_PACKAGE = "@openpresentation/opf-render";
|
|
125
126
|
var PPTX_PACKAGE = "@openpresentation/opf-pptx";
|
|
126
|
-
var PEER_RANGES = { [RENDER_PACKAGE]: "^0.
|
|
127
|
+
var PEER_RANGES = { [RENDER_PACKAGE]: "^0.33.0", [PPTX_PACKAGE]: "^0.33.0" };
|
|
127
128
|
var PPTX_TEXT_OPTIONS_FROM = "0.22.0";
|
|
128
129
|
var numbers = (version) => version.replace(/[-+].*$/, "").split(".").map((part) => Number.parseInt(part, 10) || 0);
|
|
129
130
|
function atLeast(version, minimum) {
|
|
@@ -466,7 +467,10 @@ var INFO = /* @__PURE__ */ new Set([
|
|
|
466
467
|
"svg-sanitized",
|
|
467
468
|
"script-font-unavailable",
|
|
468
469
|
"media-provenance-omitted",
|
|
469
|
-
"picture-not-measured"
|
|
470
|
+
"picture-not-measured",
|
|
471
|
+
"diagram-shapes-unavailable",
|
|
472
|
+
"smartart-unavailable",
|
|
473
|
+
"arrangement-adapted"
|
|
470
474
|
]);
|
|
471
475
|
var HELP = {
|
|
472
476
|
"text-overflow": "Shorten the text, or split the slide: add --paginate (measured with the same fonts) or run opf paginate.",
|
|
@@ -489,7 +493,12 @@ var HELP = {
|
|
|
489
493
|
"export-lossy": "The PowerPoint file draws this with its nearest native form (see feature and the message). Change the content if the difference matters, or export with --as images for an exact picture.",
|
|
490
494
|
"typeface-not-office-safe": 'Export with --typefaces safe (typefaces: "safe") to write Office-safe families and lay the text out with them, or install the fonts on the machines that open the file.',
|
|
491
495
|
"typeface-replaced": "Drop --typefaces safe to keep the selected families in the file.",
|
|
492
|
-
"
|
|
496
|
+
"diagram-shapes-unavailable": "The diagram stays one picture in PowerPoint (see the message). It looks the same; to edit it, change its source in OPF and export again.",
|
|
497
|
+
"smartart-unavailable": "The pyramid, matrix or cycle is exported as editable native shapes, which look the same; live SmartArt is written only where PowerPoint draws it exactly as the preview (docs/smartart.md). Shorten the entries named in the message, or give the region other proportions, to get live SmartArt. When the message names the fallback picture, install @openpresentation/opf-render: every live SmartArt carries OPF's picture of it for apps without SmartArt.",
|
|
498
|
+
"duplicate-font-face": "A --fonts face repeats a bundled family, weight and style; remove it or rename the family.",
|
|
499
|
+
"shape-property-dropped": "OPF has no form for this property of a PowerPoint shape (3-D, preset shadows, autofit and the others in docs/shapes.md); it was dropped and the shape imported. Set it again in the PowerPoint file if it matters.",
|
|
500
|
+
"shape-covers-content": "An overlay shape is always drawn over the content, and OPF has no layer behind it: give the content a card, or the slide a background, instead of a shape behind it.",
|
|
501
|
+
"shape-not-imported": "A filled shape across the whole slide is a background, and an overlay shape is drawn over the content; set the slide's background in OPF instead."
|
|
493
502
|
};
|
|
494
503
|
var Reporter = class {
|
|
495
504
|
findings = [];
|
|
@@ -646,16 +655,18 @@ function resolveExportOptions(options) {
|
|
|
646
655
|
if (options.raster !== void 0 && typeof options.raster !== "boolean") throw invalid("raster must be true or false.");
|
|
647
656
|
if (options.paginate !== void 0 && typeof options.paginate !== "boolean" && options.paginate !== "blocks") throw invalid('paginate must be true, false or "blocks".');
|
|
648
657
|
const charts = oneOf("charts", options.charts, ["auto", "native", "picture"]);
|
|
658
|
+
const diagrams = oneOf("diagrams", options.diagrams, ["picture", "shapes"]);
|
|
649
659
|
const provenance = oneOf("provenance", options.provenance, ["full", "references-only", "none"]);
|
|
650
660
|
const images = oneOf("images", options.images, ["compatible", "preserve"]);
|
|
651
661
|
const bodyText = oneOf("bodyText", options.bodyText, ["measured", "native"]);
|
|
662
|
+
const smartArt = oneOf("smartArt", options.smartArt, ["live", "shapes"]);
|
|
652
663
|
const slideNumbers = oneOf("slideNumbers", options.slideNumbers, ["static", "live"]);
|
|
653
664
|
const text = oneOf("text", options.text, EXPORT_TEXT);
|
|
654
665
|
const typefaces = oneOf("typefaces", options.typefaces, ["selected", "safe"]);
|
|
655
666
|
const as = oneOf("as", options.as, ["native", "images"]);
|
|
656
667
|
if (options.raster && format !== "pdf") throw invalid("raster applies to format pdf.");
|
|
657
|
-
if ((charts !== void 0 || provenance !== void 0 || images !== void 0 || bodyText !== void 0 || slideNumbers !== void 0 || typefaces !== void 0 || as !== void 0) && format !== "pptx") throw invalid("charts, provenance, images, bodyText, slideNumbers, typefaces and as apply to format pptx.");
|
|
658
|
-
if (as === "images" && (charts !== void 0 || provenance !== void 0 || images !== void 0 || bodyText !== void 0 || slideNumbers !== void 0 || typefaces !== void 0)) throw invalid('charts, provenance, images, bodyText, slideNumbers and typefaces do not apply to as: "images", where each slide is one picture.');
|
|
668
|
+
if ((charts !== void 0 || diagrams !== void 0 || provenance !== void 0 || images !== void 0 || bodyText !== void 0 || smartArt !== void 0 || slideNumbers !== void 0 || typefaces !== void 0 || as !== void 0) && format !== "pptx") throw invalid("charts, diagrams, provenance, images, bodyText, smartArt, slideNumbers, typefaces and as apply to format pptx.");
|
|
669
|
+
if (as === "images" && (charts !== void 0 || diagrams !== void 0 || provenance !== void 0 || images !== void 0 || bodyText !== void 0 || smartArt !== void 0 || slideNumbers !== void 0 || typefaces !== void 0)) throw invalid('charts, diagrams, provenance, images, bodyText, smartArt, slideNumbers and typefaces do not apply to as: "images", where each slide is one picture.');
|
|
659
670
|
if (options.scale !== void 0 && format !== "png" && format !== "pdf" && !(format === "pptx" && as === "images")) throw invalid('scale applies to format png (and raster pdf, and pptx with as: "images").');
|
|
660
671
|
if (options.includeHidden && format === "pptx") throw invalid("includeHidden applies to per-slide image and PDF output; the PPTX keeps a hidden slide as a hidden slide.");
|
|
661
672
|
if (options.slides !== void 0 && format === "pptx") throw invalid("slides is not available for pptx: the whole presentation is exported.");
|
|
@@ -696,6 +707,10 @@ async function runExport(presentation, options, ctx) {
|
|
|
696
707
|
const pptx = format === "pptx" ? ctx.pptx ?? await loadPptx() : void 0;
|
|
697
708
|
const userFonts = options.fonts ? [] : ctx.userFonts ?? await listFontDirectories(options.fontFolders, ctx.flags ? "--fonts" : "fonts");
|
|
698
709
|
const resolver = createImageResolver(assetRoot(options.assetDir, ctx.flags), reporter, ctx.flags ? "pass --asset-dir" : "pass assetDir");
|
|
710
|
+
await ensureIcons(presentation, { catalogs, readSource: async (source) => {
|
|
711
|
+
const uri = resolver.forMeasure(source);
|
|
712
|
+
return uri?.startsWith("data:image/svg+xml;base64,") ? Buffer.from(uri.slice(26), "base64").toString("utf8") : void 0;
|
|
713
|
+
} });
|
|
699
714
|
const embedScripts = format === "svg" && options.text === "fonts";
|
|
700
715
|
const lease = options.fonts ? void 0 : await leaseSharedFonts(renderer, presentation, userFonts, reporter, embedScripts);
|
|
701
716
|
try {
|
|
@@ -786,9 +801,11 @@ async function drawWith(presentation, handle, options, ctx, environment) {
|
|
|
786
801
|
...pictureLuminance ? { pictureLuminance } : {},
|
|
787
802
|
// opf-pptx still names its option `chartex` and its picture choice `fallback`.
|
|
788
803
|
...options.charts ? { chartex: options.charts === "picture" ? "fallback" : options.charts } : {},
|
|
804
|
+
...options.diagrams ? { diagrams: options.diagrams } : {},
|
|
789
805
|
...options.provenance ? { provenance: options.provenance === "none" ? false : options.provenance } : {},
|
|
790
806
|
...options.images ? { imageFormat: options.images } : {},
|
|
791
807
|
...options.bodyText ? { bodyText: options.bodyText } : {},
|
|
808
|
+
...options.smartArt ? { smartArt: options.smartArt } : {},
|
|
792
809
|
...options.slideNumbers ? { slideNumberFields: options.slideNumbers } : {},
|
|
793
810
|
...options.typefaces ? { typefaces: options.typefaces } : {},
|
|
794
811
|
...pictures ? { as: "images", scale: options.pictureScale, slideRasterizer } : {},
|
|
@@ -910,6 +927,7 @@ async function prepareExport(options, flags = false) {
|
|
|
910
927
|
}
|
|
911
928
|
async function runPreparedExport(prepared, presentation, checked) {
|
|
912
929
|
let initial = checked;
|
|
930
|
+
await ensureIcons(presentation, { catalogs: prepared.options.catalogs ?? defaultCatalogs() });
|
|
913
931
|
if (!initial) {
|
|
914
932
|
const check = validate(presentation, checkOptions(prepared.options.catalogs));
|
|
915
933
|
if (!check.valid) throw new OPFApiError(`The presentation is not valid OPF: ${firstError(check.findings)}`, "invalid-presentation", { findings: check.findings });
|
|
@@ -997,7 +1015,7 @@ function targetOf(output, options, flags) {
|
|
|
997
1015
|
checkOutputPattern(output, exported === "png" || exported === "svg");
|
|
998
1016
|
return exported ? { kind: "export", format: exported, zip: false } : { kind: "deck", format: deck };
|
|
999
1017
|
}
|
|
1000
|
-
var EXPORT_ONLY = ["slides", "includeHidden", "paginate", "scale", "raster", "text", "charts", "provenance", "images", "bodyText", "slideNumbers", "typefaces", "as", "date", "fonts", "assetDir"];
|
|
1018
|
+
var EXPORT_ONLY = ["slides", "includeHidden", "paginate", "scale", "raster", "text", "charts", "diagrams", "provenance", "images", "bodyText", "smartArt", "slideNumbers", "typefaces", "as", "date", "fonts", "assetDir"];
|
|
1001
1019
|
var given = (value) => value !== void 0 && value !== false && !(Array.isArray(value) && value.length === 0);
|
|
1002
1020
|
function checkApplicable(source, target, options, flags) {
|
|
1003
1021
|
const name = (key) => flags ? `--${key.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`)}` : key;
|
|
@@ -1010,8 +1028,8 @@ function checkApplicable(source, target, options, flags) {
|
|
|
1010
1028
|
}
|
|
1011
1029
|
const format = target.format;
|
|
1012
1030
|
if (given(options.raster) && format !== "pdf") throw invalid2(`${name("raster")} applies to pdf output.`);
|
|
1013
|
-
const pptxOnly = ["charts", "provenance", "images", "bodyText", "slideNumbers", "typefaces"].filter((key) => options[key] !== void 0);
|
|
1014
|
-
if ((pptxOnly.length || options.as !== void 0) && format !== "pptx") throw invalid2(`${names("charts", "provenance", "images", "bodyText", "slideNumbers", "typefaces", "as")} apply to pptx output.`);
|
|
1031
|
+
const pptxOnly = ["charts", "diagrams", "provenance", "images", "bodyText", "smartArt", "slideNumbers", "typefaces"].filter((key) => options[key] !== void 0);
|
|
1032
|
+
if ((pptxOnly.length || options.as !== void 0) && format !== "pptx") throw invalid2(`${names("charts", "diagrams", "provenance", "images", "bodyText", "smartArt", "slideNumbers", "typefaces", "as")} apply to pptx output.`);
|
|
1015
1033
|
if (options.as === "images" && pptxOnly.length) throw invalid2(`${names(...pptxOnly)} ${pptxOnly.length === 1 ? "does" : "do"} not apply to ${flags ? "--as images" : 'as: "images"'}, where each slide is one picture.`);
|
|
1016
1034
|
if (options.scale !== void 0 && format !== "png" && format !== "pdf" && !(format === "pptx" && options.as === "images")) throw invalid2(`${name("scale")} applies to png output (and raster pdf, and pptx ${flags ? "--as images" : 'with as: "images"'}).`);
|
|
1017
1035
|
if (given(options.includeHidden) && format === "pptx") throw invalid2(`${name("includeHidden")} applies to per-slide image and PDF output; the PPTX keeps a hidden slide as a hidden slide.`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsonEqual, formatPointer } from './chunk-
|
|
2
|
-
import { annotationText } from './chunk-
|
|
1
|
+
import { jsonEqual, formatPointer } from './chunk-UK3J6FSU.js';
|
|
2
|
+
import { annotationText } from './chunk-OPVJLL7H.js';
|
|
3
3
|
|
|
4
4
|
// src/diff-match.ts
|
|
5
5
|
var DEFAULT_MATCH_THRESHOLD = 0.5;
|
|
@@ -36,6 +36,18 @@ var specFileEntries = [
|
|
|
36
36
|
"kind": "reference",
|
|
37
37
|
"mediaType": "application/json"
|
|
38
38
|
},
|
|
39
|
+
{
|
|
40
|
+
"path": "reference/preset-geometry.json",
|
|
41
|
+
"packagePath": "@openpresentation/opf/spec/reference/preset-geometry.json",
|
|
42
|
+
"kind": "reference",
|
|
43
|
+
"mediaType": "application/json"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"path": "reference/preset-geometry.schema.json",
|
|
47
|
+
"packagePath": "@openpresentation/opf/spec/reference/preset-geometry.schema.json",
|
|
48
|
+
"kind": "reference",
|
|
49
|
+
"mediaType": "application/json"
|
|
50
|
+
},
|
|
39
51
|
{
|
|
40
52
|
"path": "reference/symbol-font-encodings.json",
|
|
41
53
|
"packagePath": "@openpresentation/opf/spec/reference/symbol-font-encodings.json",
|
|
@@ -90,6 +102,12 @@ var specFileEntries = [
|
|
|
90
102
|
"kind": "schema",
|
|
91
103
|
"mediaType": "application/json"
|
|
92
104
|
},
|
|
105
|
+
{
|
|
106
|
+
"path": "schemas/icon-set.schema.json",
|
|
107
|
+
"packagePath": "@openpresentation/opf/spec/schemas/icon-set.schema.json",
|
|
108
|
+
"kind": "schema",
|
|
109
|
+
"mediaType": "application/json"
|
|
110
|
+
},
|
|
93
111
|
{
|
|
94
112
|
"path": "schemas/language.schema.json",
|
|
95
113
|
"packagePath": "@openpresentation/opf/spec/schemas/language.schema.json",
|
|
@@ -152,6 +170,8 @@ var specFilePaths = [
|
|
|
152
170
|
"reference/engine-vocabularies.json",
|
|
153
171
|
"reference/font-policy.json",
|
|
154
172
|
"reference/font-policy.schema.json",
|
|
173
|
+
"reference/preset-geometry.json",
|
|
174
|
+
"reference/preset-geometry.schema.json",
|
|
155
175
|
"reference/symbol-font-encodings.json",
|
|
156
176
|
"reference/symbol-font-encodings.schema.json",
|
|
157
177
|
"schemas/audience.schema.json",
|
|
@@ -161,6 +181,7 @@ var specFilePaths = [
|
|
|
161
181
|
"schemas/color-scheme.schema.json",
|
|
162
182
|
"schemas/finding.schema.json",
|
|
163
183
|
"schemas/font-scheme.schema.json",
|
|
184
|
+
"schemas/icon-set.schema.json",
|
|
164
185
|
"schemas/language.schema.json",
|
|
165
186
|
"schemas/layout-preview-index.schema.json",
|
|
166
187
|
"schemas/layout.schema.json",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { fromMarkdown, toMarkdown } from './chunk-
|
|
2
|
-
import { fromYaml, toYaml } from './chunk-
|
|
1
|
+
import { fromMarkdown, toMarkdown } from './chunk-E7WQHMCL.js';
|
|
2
|
+
import { fromYaml, toYaml } from './chunk-S5QRGMUQ.js';
|
|
3
3
|
import { NOT_CHECKED } from './chunk-RYZPBJLB.js';
|
|
4
|
-
import { parseSource, validate, OPFValidationError } from './chunk-
|
|
5
|
-
import { checkCatalogsOption } from './chunk-
|
|
4
|
+
import { parseSource, validate, OPFValidationError } from './chunk-UK3J6FSU.js';
|
|
5
|
+
import { checkCatalogsOption } from './chunk-OPVJLL7H.js';
|
|
6
6
|
|
|
7
7
|
// src/deck-report.ts
|
|
8
8
|
var DECK_FORMATS = ["json", "yaml", "markdown"];
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
1
|
+
import { parseQuoteLines, levelsFromIndents, parseCodeFence, splitWhen } from './chunk-KVHNDHVS.js';
|
|
2
|
+
import { Ctx, splitLines, lineRange, readYamlMapping, readCsv, DECIMAL } from './chunk-QD6DPS7X.js';
|
|
3
|
+
import { runText, isRecord, FORMATTING } from './chunk-VKEYV3ZK.js';
|
|
4
|
+
import { METRIC_KEYS, nearest, BLOCK_AS_VALUES, SLIDE_OPTION_KEYS, BLOCK_OPTION_KEYS } from './chunk-UK3J6FSU.js';
|
|
5
|
+
import { PROMOTED_REGION_KEY } from './chunk-OPVJLL7H.js';
|
|
6
6
|
|
|
7
7
|
// src/markdown/inline.ts
|
|
8
8
|
var PUNCT = /[\p{P}\p{S}]/u;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { applyPatch, normalizePatch, walkPatch, toIdPointer, resolveIdPointer, parsePointer, readPointer, idToken, formatPointer, isIdToken } from './chunk-
|
|
2
|
-
import { isRecord, visitContentPayloads, promotedRegionKeys } from './chunk-
|
|
1
|
+
import { applyPatch, normalizePatch, walkPatch, toIdPointer, resolveIdPointer, parsePointer, readPointer, idToken, formatPointer, isIdToken } from './chunk-UK3J6FSU.js';
|
|
2
|
+
import { isRecord, visitContentPayloads, promotedRegionKeys } from './chunk-OPVJLL7H.js';
|
|
3
3
|
|
|
4
4
|
// src/ids.ts
|
|
5
5
|
var INDEX_TOKEN = /^(0|[1-9][0-9]*)$/;
|