@openpresentation/opf 0.26.3 → 0.26.4
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 +1 -1
- package/dist/browser.js +13 -11
- package/dist/{chunk-34LIUOT7.js → chunk-6IXSHIAL.js} +6 -6
- package/dist/{chunk-PXOXTJTN.js → chunk-6NBTZYYD.js} +1 -1
- package/dist/{chunk-FXNUM2PN.js → chunk-EDCRBTJF.js} +4 -4
- package/dist/chunk-GWJBZ4LC.js +639 -0
- package/dist/{chunk-YVNFACTC.js → chunk-H5QC3X3K.js} +1 -1
- package/dist/{chunk-WASENX2R.js → chunk-MN7DRK57.js} +40 -648
- package/dist/{chunk-GLLR3AQ5.js → chunk-NZLW6FBQ.js} +1 -1
- package/dist/{chunk-7RY7QWWJ.js → chunk-O6BY3AU2.js} +1 -1
- package/dist/{chunk-PB5X2VSV.js → chunk-PIO73BQ6.js} +4 -3
- package/dist/{chunk-DEI2M2H6.js → chunk-QAEBYDKY.js} +2 -4
- package/dist/{chunk-54OV2WQC.js → chunk-QH2W6HIM.js} +1 -1
- package/dist/chunk-RYZPBJLB.js +4 -0
- package/dist/{chunk-NJWI6MPT.js → chunk-XFOOKVRI.js} +16 -1
- package/dist/{chunk-2ZQBMZTZ.js → chunk-ZSZDVIDV.js} +2 -2
- package/dist/{conversion-BjsKgxBZ.d.ts → conversion-DSafOGzh.d.ts} +2 -2
- package/dist/conversion-QIAJM6DQ.js +20 -0
- package/dist/convert.js +5 -5
- package/dist/deck.js +9 -7
- package/dist/diff.js +2 -2
- package/dist/docs.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +17 -15
- package/dist/markdown.js +7 -5
- package/dist/node-engine.d.ts +2 -2
- package/dist/node-engine.js +17 -15
- package/dist/pagination.js +2 -2
- package/dist/patch.js +1 -1
- package/dist/schema.js +1 -1
- package/dist/source.d.ts +102 -4
- package/dist/source.js +388 -9
- package/dist/validator.js +1 -1
- package/dist/yaml.js +5 -4
- package/package.json +5 -5
- package/dist/conversion-F4UCOGR7.js +0 -18
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OPFDataImportError, parseTabularData } from './chunk-TKQ2VFV5.js';
|
|
2
|
-
import { applyPatchWithInverse, validate, OPFValidationError } from './chunk-
|
|
2
|
+
import { applyPatchWithInverse, validate, OPFValidationError } from './chunk-XFOOKVRI.js';
|
|
3
3
|
import { embeddedCopy, checkCatalogsOption, catalogReferenceSites, parseReference, catalogGroupDeclared, resolveReference, dottedPath, unresolvedReference, recordReferenceSites, catalogGroupSource, registeredCatalog, catalogKinds, CATALOG_GROUP_PATTERN, isRecord, visitContentPayloads, annotationText, listVariables, resolveVariables, LOGO_SHAPES, resolveDesignRecords, resolveFontFamilies, resolveCanvasDimensions, imageBackground } from './chunk-XRMV2GMB.js';
|
|
4
4
|
|
|
5
5
|
// src/api-errors.ts
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { NOT_CHECKED
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { NOT_CHECKED } from './chunk-RYZPBJLB.js';
|
|
2
|
+
import { Ctx } from './chunk-QAEBYDKY.js';
|
|
3
|
+
import { same } from './chunk-6NBTZYYD.js';
|
|
4
|
+
import { validate } from './chunk-XFOOKVRI.js';
|
|
4
5
|
import { checkCatalogsOption } from './chunk-XRMV2GMB.js';
|
|
5
6
|
import { sortPresentationKeys } from './chunk-EQ6S5SEZ.js';
|
|
6
7
|
import { presentation } from './chunk-F4HFDP6I.js';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { isRecord, same } from './chunk-
|
|
1
|
+
import { isRecord, same } from './chunk-6NBTZYYD.js';
|
|
2
2
|
import { parseDocument, YAMLMap, Scalar, stringify } from 'yaml';
|
|
3
3
|
|
|
4
|
-
// src/not-checked.ts
|
|
5
|
-
var NOT_CHECKED = { syntax: "checked", schema: "not-run", references: "not-run", policy: "not-run", accessibility: "not-run", content: "not-run", layout: "not-run", backgroundPixels: "not-read", imageBytes: "embedded-only", nativeExport: "not-checked" };
|
|
6
4
|
function splitLines(source) {
|
|
7
5
|
const lines = [];
|
|
8
6
|
let start = 0;
|
|
@@ -191,4 +189,4 @@ var OPFMarkdownError = class extends Error {
|
|
|
191
189
|
}
|
|
192
190
|
};
|
|
193
191
|
|
|
194
|
-
export { Ctx, DECIMAL,
|
|
192
|
+
export { Ctx, DECIMAL, OPFMarkdownError, csvField, lineRange, readCsv, readYamlMapping, scalarText, splitLines, writeYaml };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assertValid, resolveSlideScriptMeasurement, resolveSlideContext } from './chunk-
|
|
1
|
+
import { assertValid, resolveSlideScriptMeasurement, resolveSlideContext } from './chunk-XFOOKVRI.js';
|
|
2
2
|
import { resolveSlideVariables, checkCatalogsOption, usesSlideBuiltin, composeSlide, codeHighlightSlice, tableRowBoundaries, visitContentPayloads, regionAccepts, slideTokenSpans, sliceNumberedItems } from './chunk-XRMV2GMB.js';
|
|
3
3
|
|
|
4
4
|
// src/pagination.ts
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// src/not-checked.ts
|
|
2
|
+
var NOT_CHECKED = { syntax: "checked", schema: "not-run", references: "not-run", policy: "not-run", accessibility: "not-run", content: "not-run", layout: "not-run", backgroundPixels: "not-read", imageBytes: "embedded-only", nativeExport: "not-checked" };
|
|
3
|
+
|
|
4
|
+
export { NOT_CHECKED };
|
|
@@ -4235,6 +4235,21 @@ function applyTextEdits(text, edits) {
|
|
|
4235
4235
|
}
|
|
4236
4236
|
return result + text.slice(cursor);
|
|
4237
4237
|
}
|
|
4238
|
+
function rememberByText(read, size = 2) {
|
|
4239
|
+
const kept = [];
|
|
4240
|
+
return (text) => {
|
|
4241
|
+
const at2 = kept.findIndex((entry) => entry.text === text);
|
|
4242
|
+
if (at2 >= 0) {
|
|
4243
|
+
const [entry] = kept.splice(at2, 1);
|
|
4244
|
+
kept.unshift(entry);
|
|
4245
|
+
return entry.value;
|
|
4246
|
+
}
|
|
4247
|
+
const value = read(text);
|
|
4248
|
+
kept.unshift({ text, value });
|
|
4249
|
+
if (kept.length > size) kept.pop();
|
|
4250
|
+
return value;
|
|
4251
|
+
};
|
|
4252
|
+
}
|
|
4238
4253
|
|
|
4239
4254
|
// src/json-syntax.ts
|
|
4240
4255
|
var WORD = /[\p{L}\p{N}_$.+\-%]/u;
|
|
@@ -5805,4 +5820,4 @@ function assertValidCatalogRecord(kind, value) {
|
|
|
5805
5820
|
if (!report2.valid) throw new OPFValidationError(report2);
|
|
5806
5821
|
}
|
|
5807
5822
|
|
|
5808
|
-
export { CATALOG_SCHEMA, COMMON_KEYS, DEFAULT_VALIDATION_THRESHOLDS, OPFPatchError, OPFPatchValidationError, OPFValidationError, UNRANKED_PRIORITY, activeSchema, analyzeJsonSyntax, applyPatch, applyPatchWithInverse, applyTextEdits, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogKindAt, catalogSchemaNames, createLocator, createSchemaValue, describeField, escapePointerToken, findValidationRule, formatPointer, getAtPointer, hasPointer, invertPatch, isPromotedRegionKey, jsonEqual, listSchemaFields, normalizePatch, parsePointer, parseSource, pointerFromPath, readPointer, resolveSchema, resolveSlideContext, resolveSlideScriptMeasurement, schemaAtPath, schemaCatalogKinds, schemaLabel, schemaType, schemaVariants, splitOpfPath, splitPointer2 as splitPointer, unescapePointerToken, validate, validateCatalogRecord, validationCategories, validationRules };
|
|
5823
|
+
export { CATALOG_SCHEMA, COMMON_KEYS, DEFAULT_VALIDATION_THRESHOLDS, OPFPatchError, OPFPatchValidationError, OPFValidationError, UNRANKED_PRIORITY, activeSchema, analyzeJsonSyntax, applyPatch, applyPatchWithInverse, applyTextEdits, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogKindAt, catalogSchemaNames, createLocator, createSchemaValue, describeField, escapePointerToken, findValidationRule, formatPointer, getAtPointer, hasPointer, invertPatch, isPromotedRegionKey, jsonEqual, listSchemaFields, normalizePatch, parsePointer, parseSource, pointerFromPath, readPointer, rememberByText, resolveSchema, resolveSlideContext, resolveSlideScriptMeasurement, schemaAtPath, schemaCatalogKinds, schemaLabel, schemaType, schemaVariants, splitOpfPath, splitPointer2 as splitPointer, unescapePointerToken, validate, validateCatalogRecord, validationCategories, validationRules };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OPFApiError } from './chunk-
|
|
2
|
-
import { CATALOG_SCHEMA } from './chunk-
|
|
1
|
+
import { OPFApiError } from './chunk-NZLW6FBQ.js';
|
|
2
|
+
import { CATALOG_SCHEMA } from './chunk-XFOOKVRI.js';
|
|
3
3
|
import { CATALOG_SCHEMA as CATALOG_SCHEMA$1, gallery } from '@openpresentation/gallery';
|
|
4
4
|
|
|
5
5
|
function galleryMismatch(declared, reads = CATALOG_SCHEMA) {
|
|
@@ -43,8 +43,8 @@ declare const RENDER_PACKAGE = "@openpresentation/opf-render";
|
|
|
43
43
|
declare const PPTX_PACKAGE = "@openpresentation/opf-pptx";
|
|
44
44
|
/** Peer ranges. The CLI checks the features it calls rather than the version, so a newer release in range keeps working. */
|
|
45
45
|
declare const PEER_RANGES: {
|
|
46
|
-
readonly "@openpresentation/opf-render": "^0.26.
|
|
47
|
-
readonly "@openpresentation/opf-pptx": "^0.26.
|
|
46
|
+
readonly "@openpresentation/opf-render": "^0.26.4";
|
|
47
|
+
readonly "@openpresentation/opf-pptx": "^0.26.4";
|
|
48
48
|
};
|
|
49
49
|
interface Diagnostic {
|
|
50
50
|
code: string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { convertFiles, deckFileFormat, exportFormatOf, openDeck, planConversion, readInput, saveDeck, writePlanned } from './chunk-6IXSHIAL.js';
|
|
2
|
+
import './chunk-ZSZDVIDV.js';
|
|
3
|
+
import './chunk-NZLW6FBQ.js';
|
|
4
|
+
import './chunk-UJSAR6GF.js';
|
|
5
|
+
import './chunk-PJSPHHRK.js';
|
|
6
|
+
import './chunk-TKQ2VFV5.js';
|
|
7
|
+
import './chunk-QH2W6HIM.js';
|
|
8
|
+
import './chunk-EDCRBTJF.js';
|
|
9
|
+
import './chunk-GWJBZ4LC.js';
|
|
10
|
+
import './chunk-PIO73BQ6.js';
|
|
11
|
+
import './chunk-RYZPBJLB.js';
|
|
12
|
+
import './chunk-MN7DRK57.js';
|
|
13
|
+
import './chunk-O6BY3AU2.js';
|
|
14
|
+
import './chunk-QAEBYDKY.js';
|
|
15
|
+
import './chunk-6NBTZYYD.js';
|
|
16
|
+
import './chunk-H5QC3X3K.js';
|
|
17
|
+
import './chunk-XFOOKVRI.js';
|
|
18
|
+
import './chunk-XRMV2GMB.js';
|
|
19
|
+
import './chunk-EQ6S5SEZ.js';
|
|
20
|
+
import './chunk-F4HFDP6I.js';
|
package/dist/convert.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { paginate, OPFPaginationError } from './chunk-
|
|
2
|
-
import { parseQuoteLines, parseCodeFence, splitWhen, parseListLine, levelsFromIndents, fenceCode } from './chunk-
|
|
3
|
-
import { CONTENT_KEYS, isRecord, contentKeysOf, refuse, clone, Loss, isSlideLike, assertValidOwner, report, OPFConversionError, plainOf, assertValidOutput, same, splitRuns, runsOf, lineIsPlain, linePlain, concatText, lineValue, joinLines, hasFormatting } from './chunk-
|
|
4
|
-
export { OPFConversionError } from './chunk-
|
|
5
|
-
import './chunk-
|
|
1
|
+
import { paginate, OPFPaginationError } from './chunk-QH2W6HIM.js';
|
|
2
|
+
import { parseQuoteLines, parseCodeFence, splitWhen, parseListLine, levelsFromIndents, fenceCode } from './chunk-O6BY3AU2.js';
|
|
3
|
+
import { CONTENT_KEYS, isRecord, contentKeysOf, refuse, clone, Loss, isSlideLike, assertValidOwner, report, OPFConversionError, plainOf, assertValidOutput, same, splitRuns, runsOf, lineIsPlain, linePlain, concatText, lineValue, joinLines, hasFormatting } from './chunk-6NBTZYYD.js';
|
|
4
|
+
export { OPFConversionError } from './chunk-6NBTZYYD.js';
|
|
5
|
+
import './chunk-XFOOKVRI.js';
|
|
6
6
|
import { promotedRegionKeys, isDatasetRef, inlineTableData, visitContentPayloads, chartNumber } from './chunk-XRMV2GMB.js';
|
|
7
7
|
import './chunk-F4HFDP6I.js';
|
|
8
8
|
|
package/dist/deck.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
1
|
+
export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-EDCRBTJF.js';
|
|
2
|
+
import './chunk-GWJBZ4LC.js';
|
|
3
|
+
import './chunk-PIO73BQ6.js';
|
|
4
|
+
import './chunk-RYZPBJLB.js';
|
|
5
|
+
import './chunk-MN7DRK57.js';
|
|
6
|
+
import './chunk-O6BY3AU2.js';
|
|
7
|
+
import './chunk-QAEBYDKY.js';
|
|
8
|
+
import './chunk-6NBTZYYD.js';
|
|
9
|
+
import './chunk-XFOOKVRI.js';
|
|
8
10
|
import './chunk-XRMV2GMB.js';
|
|
9
11
|
import './chunk-EQ6S5SEZ.js';
|
|
10
12
|
import './chunk-F4HFDP6I.js';
|
package/dist/diff.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { categoryOf, describeValue, diff, formatDiffReport, matchArrays, merge, similarity } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { categoryOf, describeValue, diff, formatDiffReport, matchArrays, merge, similarity } from './chunk-H5QC3X3K.js';
|
|
2
|
+
import './chunk-XFOOKVRI.js';
|
|
3
3
|
import './chunk-XRMV2GMB.js';
|
|
4
4
|
import './chunk-F4HFDP6I.js';
|