@openpresentation/opf 0.28.0 → 0.29.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/dist/browser.js +16 -16
- package/dist/{chunk-P6PKYJTS.js → chunk-5OMZW44K.js} +1 -1
- package/dist/{chunk-KXKN3W5Z.js → chunk-7UO6H32I.js} +2 -2
- package/dist/{chunk-CR72ZJ6W.js → chunk-ARFAQNOH.js} +2 -2
- package/dist/{chunk-MTFK7QEY.js → chunk-F5QC7E2O.js} +6 -6
- package/dist/{chunk-SEZ4EPW6.js → chunk-HRKV43GC.js} +2 -2
- package/dist/{chunk-LLEXM7TQ.js → chunk-I6G32TB5.js} +3 -3
- package/dist/{chunk-TNUTRV6E.js → chunk-KOCXV7H3.js} +1 -1
- package/dist/{chunk-WPKCWQ6W.js → chunk-M7YZU3DX.js} +1 -1
- package/dist/{chunk-N77N4AOD.js → chunk-P5E3FNYO.js} +1 -1
- package/dist/{chunk-F6DCEGB3.js → chunk-R455YZNO.js} +6 -6
- package/dist/{chunk-BQUWRXTR.js → chunk-SYCHWS7C.js} +4 -4
- package/dist/{chunk-PCU4XGKV.js → chunk-UKWNHK62.js} +5 -5
- package/dist/{chunk-2CUCYENF.js → chunk-W3SEWSO5.js} +20 -5
- package/dist/{chunk-UOHWG4OS.js → chunk-W7KPMUJF.js} +1 -1
- package/dist/{chunk-VGGPAMP7.js → chunk-WHDOOLIO.js} +2 -2
- package/dist/{chunk-XZ23FORL.js → chunk-XG4JKFZ6.js} +4 -4
- package/dist/{chunk-OAIAFXMS.js → chunk-Z7XNHIW7.js} +2 -2
- package/dist/composition.js +1 -1
- package/dist/{conversion-hbZeS5kD.d.ts → conversion-CCAmVKp8.d.ts} +2 -2
- package/dist/conversion-KV2WWCMK.js +24 -0
- package/dist/convert.js +6 -6
- package/dist/data.js +2 -2
- package/dist/deck.js +9 -9
- package/dist/diff.js +3 -3
- package/dist/ids.js +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +20 -20
- package/dist/markdown.js +7 -7
- package/dist/node-engine.d.ts +2 -2
- package/dist/node-engine.js +20 -20
- package/dist/pagination.js +3 -3
- package/dist/patch.js +2 -2
- package/dist/schema.js +2 -2
- package/dist/source.js +9 -9
- package/dist/validator.js +2 -2
- package/dist/yaml.js +5 -5
- package/package.json +5 -5
- package/dist/conversion-XJTDWQ5W.js +0 -24
package/dist/browser.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { OPFApiError } from './chunk-
|
|
2
|
-
export { OPFApiError, OPFExportError, OPFImportError, OPFMoveToCustomError, copySlides, edit, embed, fill, fillRecords, localAssetSources, moveToCustom, parseSlideSelection, sameRecord, stats, updateFromCatalog } from './chunk-
|
|
1
|
+
import { OPFApiError } from './chunk-I6G32TB5.js';
|
|
2
|
+
export { OPFApiError, OPFExportError, OPFImportError, OPFMoveToCustomError, copySlides, edit, embed, fill, fillRecords, localAssetSources, moveToCustom, parseSlideSelection, sameRecord, stats, updateFromCatalog } from './chunk-I6G32TB5.js';
|
|
3
3
|
export { specFileEntries, specFileKinds, specFilePaths } from './chunk-UJSAR6GF.js';
|
|
4
4
|
export { FONT_POLICY, applyFontPolicyDecisions, fontAvailabilityDiagnostics, fontPolicyFor } from './chunk-PJSPHHRK.js';
|
|
5
|
-
export { OPFDataImportError, ingest, parseTabularData } from './chunk-
|
|
6
|
-
export { OPFPaginationError, paginate, paginateSlide } from './chunk-
|
|
7
|
-
export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-
|
|
8
|
-
export { fromMarkdown, toMarkdown } from './chunk-
|
|
9
|
-
import './chunk-
|
|
5
|
+
export { OPFDataImportError, ingest, parseTabularData } from './chunk-P5E3FNYO.js';
|
|
6
|
+
export { OPFPaginationError, paginate, paginateSlide } from './chunk-7UO6H32I.js';
|
|
7
|
+
export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-SYCHWS7C.js';
|
|
8
|
+
export { fromMarkdown, toMarkdown } from './chunk-F5QC7E2O.js';
|
|
9
|
+
import './chunk-XG4JKFZ6.js';
|
|
10
10
|
export { OPFFormatError, format } from './chunk-KELC4K62.js';
|
|
11
11
|
import './chunk-RYZPBJLB.js';
|
|
12
|
-
export { explain } from './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
15
|
-
export { OPFMarkdownError } from './chunk-
|
|
16
|
-
import './chunk-
|
|
17
|
-
export { OPFIdError, assignIds, touches } from './chunk-
|
|
18
|
-
export { diff, merge } from './chunk-
|
|
19
|
-
export { CATALOG_SCHEMA, DEFAULT_VALIDATION_THRESHOLDS, OPFPatchError, OPFPatchHashError, OPFPatchValidationError, OPFValidationError, applyPatch, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogSchemaNames, documentHash, findValidationRule, idToken, isIdToken, resolveDrawnFontFamilies, resolveIdPatch, resolveIdPointer, resolveSlideContext, toIdPatch, toIdPointer, validate, validateCatalogRecord, validationCategories, validationRules } from './chunk-
|
|
12
|
+
export { explain } from './chunk-W7KPMUJF.js';
|
|
13
|
+
import './chunk-UKWNHK62.js';
|
|
14
|
+
import './chunk-5OMZW44K.js';
|
|
15
|
+
export { OPFMarkdownError } from './chunk-HRKV43GC.js';
|
|
16
|
+
import './chunk-KOCXV7H3.js';
|
|
17
|
+
export { OPFIdError, assignIds, touches } from './chunk-ARFAQNOH.js';
|
|
18
|
+
export { diff, merge } from './chunk-WHDOOLIO.js';
|
|
19
|
+
export { CATALOG_SCHEMA, DEFAULT_VALIDATION_THRESHOLDS, OPFPatchError, OPFPatchHashError, OPFPatchValidationError, OPFValidationError, applyPatch, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogSchemaNames, documentHash, findValidationRule, idToken, isIdToken, resolveDrawnFontFamilies, resolveIdPatch, resolveIdPointer, resolveSlideContext, toIdPatch, toIdPointer, validate, validateCatalogRecord, validationCategories, validationRules } from './chunk-M7YZU3DX.js';
|
|
20
20
|
import './chunk-JBARNYFR.js';
|
|
21
21
|
export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-5Q4IYLMW.js';
|
|
22
|
-
export { CATALOG_GROUP_PATTERN, CATALOG_REFERENCE_PATTERN, CHART_TYPES, DEFAULT_VARIABLE_DATE_FORMAT, ENGINE_DEFAULT_CHART_TYPES, ENGINE_DEFAULT_COLOR_SCHEME, ENGINE_DEFAULT_FONT_SCHEME, ENGINE_DEFAULT_THEME, LANGUAGES, LOGO_SHAPES, OPFCatalogsOptionError, OPFUnresolvedReferenceError, OPFVariableError, SLIDE_SCOPED_BUILTINS, SOCIAL_PLATFORMS, VARIABLE_KINDS, catalogGroupSource, catalogKinds, catalogRecords, catalogReferenceSites, chartNumber, coerceVariableValue, datasetDiagnostics, formatDataNumber, formatVariableNumber, fromExcelNumberFormat, hasContentVariables, inlineChartData, inlineDatasets, inlineTableData, isDatasetRef, isTemplate, isXYChartType, listBuiltinVariables, listVariables, normalizeLanguageFamily, numberFormatError, parseReference, resolveChartData, resolveDesignRecords, resolveFontScheme, resolveReference, resolveSlideVariables, resolveTableData, resolveVariables, suggestChartNumberFix, tableCellDisplayValue, toExcelNumberFormat, unresolvedReference, unusedDatasets, variableDeclarations } from './chunk-
|
|
22
|
+
export { CATALOG_GROUP_PATTERN, CATALOG_REFERENCE_PATTERN, CHART_TYPES, DEFAULT_VARIABLE_DATE_FORMAT, ENGINE_DEFAULT_CHART_TYPES, ENGINE_DEFAULT_COLOR_SCHEME, ENGINE_DEFAULT_FONT_SCHEME, ENGINE_DEFAULT_THEME, LANGUAGES, LOGO_SHAPES, OPFCatalogsOptionError, OPFUnresolvedReferenceError, OPFVariableError, SLIDE_SCOPED_BUILTINS, SOCIAL_PLATFORMS, VARIABLE_KINDS, catalogGroupSource, catalogKinds, catalogRecords, catalogReferenceSites, chartNumber, coerceVariableValue, datasetDiagnostics, formatDataNumber, formatVariableNumber, fromExcelNumberFormat, hasContentVariables, inlineChartData, inlineDatasets, inlineTableData, isDatasetRef, isTemplate, isXYChartType, listBuiltinVariables, listVariables, normalizeLanguageFamily, numberFormatError, parseReference, resolveChartData, resolveDesignRecords, resolveFontScheme, resolveReference, resolveSlideVariables, resolveTableData, resolveVariables, suggestChartNumberFix, tableCellDisplayValue, toExcelNumberFormat, unresolvedReference, unusedDatasets, variableDeclarations } from './chunk-W3SEWSO5.js';
|
|
23
23
|
import './chunk-GM7WFPGG.js';
|
|
24
24
|
|
|
25
25
|
// src/browser.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { assertValid, resolveSlideScriptMeasurement, resolveDrawnFontFamilies, resolveSlideContext } from './chunk-
|
|
2
|
-
import { resolveSlideVariables, checkCatalogsOption, usesSlideBuiltin, composeSlide, codeHighlightSlice, tableRowBoundaries, visitContentPayloads, regionAccepts, slideTokenSpans, sliceNumberedItems } from './chunk-
|
|
1
|
+
import { assertValid, resolveSlideScriptMeasurement, resolveDrawnFontFamilies, resolveSlideContext } from './chunk-M7YZU3DX.js';
|
|
2
|
+
import { resolveSlideVariables, checkCatalogsOption, usesSlideBuiltin, composeSlide, codeHighlightSlice, tableRowBoundaries, visitContentPayloads, regionAccepts, slideTokenSpans, sliceNumberedItems } from './chunk-W3SEWSO5.js';
|
|
3
3
|
|
|
4
4
|
// src/pagination.ts
|
|
5
5
|
var OPFPaginationError = class extends Error {
|
|
@@ -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-M7YZU3DX.js';
|
|
2
|
+
import { isRecord, visitContentPayloads, promotedRegionKeys } from './chunk-W3SEWSO5.js';
|
|
3
3
|
|
|
4
4
|
// src/ids.ts
|
|
5
5
|
var INDEX_TOKEN = /^(0|[1-9][0-9]*)$/;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { NOT_CHECKED } from './chunk-RYZPBJLB.js';
|
|
2
|
-
import { readMarkdown, parseSlideText, escapeInline, serializeRuns } from './chunk-
|
|
3
|
-
import { fenceCode } from './chunk-
|
|
4
|
-
import { OPFMarkdownError, writeYaml, Ctx, readYamlMapping, csvField, scalarText } from './chunk-
|
|
5
|
-
import { same, isRecord, runText, isPlainRun, FORMATTING } from './chunk-
|
|
6
|
-
import { validate } from './chunk-
|
|
7
|
-
import { checkCatalogsOption } from './chunk-
|
|
2
|
+
import { readMarkdown, parseSlideText, escapeInline, serializeRuns } from './chunk-UKWNHK62.js';
|
|
3
|
+
import { fenceCode } from './chunk-5OMZW44K.js';
|
|
4
|
+
import { OPFMarkdownError, writeYaml, Ctx, readYamlMapping, csvField, scalarText } from './chunk-HRKV43GC.js';
|
|
5
|
+
import { same, isRecord, runText, isPlainRun, FORMATTING } from './chunk-KOCXV7H3.js';
|
|
6
|
+
import { validate } from './chunk-M7YZU3DX.js';
|
|
7
|
+
import { checkCatalogsOption } from './chunk-W3SEWSO5.js';
|
|
8
8
|
|
|
9
9
|
// src/markdown/canon.ts
|
|
10
10
|
var FORMAT_KEYS = FORMATTING;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isRecord, same } from './chunk-
|
|
2
|
-
import { createLocator } from './chunk-
|
|
1
|
+
import { isRecord, same } from './chunk-KOCXV7H3.js';
|
|
2
|
+
import { createLocator } from './chunk-M7YZU3DX.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);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OPFDataImportError, parseTabularData } from './chunk-
|
|
2
|
-
import { applyPatchWithInverse, validate, OPFValidationError } from './chunk-
|
|
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-
|
|
1
|
+
import { OPFDataImportError, parseTabularData } from './chunk-P5E3FNYO.js';
|
|
2
|
+
import { applyPatchWithInverse, validate, OPFValidationError } from './chunk-M7YZU3DX.js';
|
|
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-W3SEWSO5.js';
|
|
4
4
|
|
|
5
5
|
// src/api-errors.ts
|
|
6
6
|
var OPFApiError = class extends Error {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { original } from './chunk-JBARNYFR.js';
|
|
2
2
|
import { schemas, schemaEntries } from './chunk-5Q4IYLMW.js';
|
|
3
|
-
import { promotedRegionKeys, VARIABLE_KINDS, resolveChartData, chartPaletteForFill, chartSeriesPalette, chartLeadFromScheme, normalizeHexColor, resolveChartColors, colorContrast, imageBackground, tableGrid, timelineTextColor, LOGO_SHAPES, visitContentPayloads, readingRows, visualReadingOrder, intrinsicImageSize, resolveReference, textWidthMeasurer, resolveColorRef, resolveDesignRecords, resolveFontFamilies, checkCatalogsOption, provenanceOf, unresolvedReference, OPFUnresolvedReferenceError, resolveColorRoles, resolveCanvasDimensions, resolveSlideVariables, normalizeColorVariant, isRecord, hasContentVariables, isTemplate, instantiateForValidation, layoutTemplateIssues, resolveScriptFonts, defaultSlideBackground, catalogReferenceSites, parseReference, catalogGroupDeclared, pointerPath, unusedDatasets, MAX_COMPOSITION_DEPTH, datasetDiagnostics, pathFor, catalogRecords, collectCitations, numberingFindings, walkCitationRuns, resolveTableData, resolveChartOptions, chartOptionTarget, codeHighlightLines, chartNumberFixesByCell, catalogKinds, catalogGroupSource, registeredCatalog, OPFCompositionError, composeSlide } from './chunk-
|
|
3
|
+
import { promotedRegionKeys, VARIABLE_KINDS, resolveChartData, chartPaletteForFill, chartSeriesPalette, chartLeadFromScheme, normalizeHexColor, resolveChartColors, colorContrast, imageBackground, tableGrid, timelineTextColor, LOGO_SHAPES, visitContentPayloads, readingRows, visualReadingOrder, intrinsicImageSize, resolveReference, textWidthMeasurer, resolveColorRef, resolveDesignRecords, resolveFontFamilies, checkCatalogsOption, provenanceOf, unresolvedReference, OPFUnresolvedReferenceError, resolveColorRoles, resolveCanvasDimensions, resolveSlideVariables, normalizeColorVariant, isRecord, hasContentVariables, isTemplate, instantiateForValidation, layoutTemplateIssues, resolveScriptFonts, defaultSlideBackground, catalogReferenceSites, parseReference, catalogGroupDeclared, pointerPath, unusedDatasets, MAX_COMPOSITION_DEPTH, datasetDiagnostics, pathFor, catalogRecords, collectCitations, numberingFindings, walkCitationRuns, resolveTableData, resolveChartOptions, chartOptionTarget, codeHighlightLines, chartNumberFixesByCell, catalogKinds, catalogGroupSource, registeredCatalog, OPFCompositionError, composeSlide } from './chunk-W3SEWSO5.js';
|
|
4
4
|
import { schemaEngine } from '#schema-engine';
|
|
5
5
|
import { parseTree, printParseErrorCode, getNodePath } from 'jsonc-parser';
|
|
6
6
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defaultCatalogs } from './chunk-
|
|
2
|
-
import { localAssetSources, OPFApiError, parseSlideSelection, OPFExportError, asApiError, OPFImportError } from './chunk-
|
|
3
|
-
import { paginate } from './chunk-
|
|
4
|
-
import { deckFormatOf, readDeckReport, stringify } from './chunk-
|
|
5
|
-
import { validate, OPFValidationError } from './chunk-
|
|
1
|
+
import { defaultCatalogs } from './chunk-Z7XNHIW7.js';
|
|
2
|
+
import { localAssetSources, OPFApiError, parseSlideSelection, OPFExportError, asApiError, OPFImportError } from './chunk-I6G32TB5.js';
|
|
3
|
+
import { paginate } from './chunk-7UO6H32I.js';
|
|
4
|
+
import { deckFormatOf, readDeckReport, stringify } from './chunk-SYCHWS7C.js';
|
|
5
|
+
import { validate, OPFValidationError } from './chunk-M7YZU3DX.js';
|
|
6
6
|
import { link, stat, readdir, lstat, readFile, open, unlink, mkdir, rename } from 'fs/promises';
|
|
7
7
|
import path6 from 'path';
|
|
8
8
|
import { readFileSync, statSync, realpathSync } from 'fs';
|
|
@@ -117,7 +117,7 @@ function localAssetProblems(deck, root) {
|
|
|
117
117
|
}
|
|
118
118
|
var RENDER_PACKAGE = "@openpresentation/opf-render";
|
|
119
119
|
var PPTX_PACKAGE = "@openpresentation/opf-pptx";
|
|
120
|
-
var PEER_RANGES = { [RENDER_PACKAGE]: "^0.
|
|
120
|
+
var PEER_RANGES = { [RENDER_PACKAGE]: "^0.29.0", [PPTX_PACKAGE]: "^0.29.0" };
|
|
121
121
|
var PPTX_TEXT_OPTIONS_FROM = "0.22.0";
|
|
122
122
|
var numbers = (version) => version.replace(/[-+].*$/, "").split(".").map((part) => Number.parseInt(part, 10) || 0);
|
|
123
123
|
function atLeast(version, minimum) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { fromMarkdown, toMarkdown } from './chunk-
|
|
2
|
-
import { fromYaml, toYaml } from './chunk-
|
|
1
|
+
import { fromMarkdown, toMarkdown } from './chunk-F5QC7E2O.js';
|
|
2
|
+
import { fromYaml, toYaml } from './chunk-XG4JKFZ6.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-M7YZU3DX.js';
|
|
5
|
+
import { checkCatalogsOption } from './chunk-W3SEWSO5.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-5OMZW44K.js';
|
|
2
|
+
import { Ctx, splitLines, lineRange, readYamlMapping, readCsv, DECIMAL } from './chunk-HRKV43GC.js';
|
|
3
|
+
import { runText, isRecord, FORMATTING } from './chunk-KOCXV7H3.js';
|
|
4
|
+
import { METRIC_KEYS, nearest, BLOCK_AS_VALUES, SLIDE_OPTION_KEYS, BLOCK_OPTION_KEYS } from './chunk-M7YZU3DX.js';
|
|
5
|
+
import { PROMOTED_REGION_KEY } from './chunk-W3SEWSO5.js';
|
|
6
6
|
|
|
7
7
|
// src/markdown/inline.ts
|
|
8
8
|
var PUNCT = /[\p{P}\p{S}]/u;
|
|
@@ -5832,14 +5832,29 @@ var SCRIPT_WIDTH_FACTORS = [
|
|
|
5832
5832
|
[/\p{Script=Ethiopic}/u, 1.13],
|
|
5833
5833
|
[/\p{Script=Georgian}/u, 1.28]
|
|
5834
5834
|
];
|
|
5835
|
+
var ZERO_WIDTH_MARK = /\p{Mn}|\p{Me}|\u200d|\ufe0f/u;
|
|
5836
|
+
var SPACING_MARK = /\p{Mc}/u;
|
|
5837
|
+
var LATIN_CJK = /\p{Script=Latin}|\p{Script=Han}|\p{Script=Hangul}|\p{Script=Hiragana}|\p{Script=Katakana}/u;
|
|
5838
|
+
function characterUnits(character) {
|
|
5839
|
+
if (ZERO_WIDTH_MARK.test(character)) return Number.NaN;
|
|
5840
|
+
if (SPACING_MARK.test(character) && LATIN_CJK.test(character)) return Number.NaN;
|
|
5841
|
+
const base = character === " " ? 0.32 : /[A-Z0-9]/.test(character) ? 0.62 : character.codePointAt(0) > 11904 ? 1 : 0.54;
|
|
5842
|
+
const factor = SCRIPT_WIDTH_FACTORS.find(([script]) => script.test(character))?.[1] ?? 1;
|
|
5843
|
+
return base * factor;
|
|
5844
|
+
}
|
|
5845
|
+
var ASCII_UNITS = Array.from({ length: 128 }, (_, code) => characterUnits(String.fromCharCode(code)));
|
|
5846
|
+
var characterUnitCache = /* @__PURE__ */ new Map();
|
|
5847
|
+
var CHARACTER_UNIT_CACHE_LIMIT = 65536;
|
|
5835
5848
|
function measureText(text2, fontSize) {
|
|
5836
5849
|
let units = 0;
|
|
5837
5850
|
for (const character of text2) {
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5851
|
+
const code = character.charCodeAt(0);
|
|
5852
|
+
let advance = code < 128 ? ASCII_UNITS[code] : characterUnitCache.get(character);
|
|
5853
|
+
if (advance === void 0) {
|
|
5854
|
+
advance = characterUnits(character);
|
|
5855
|
+
if (characterUnitCache.size < CHARACTER_UNIT_CACHE_LIMIT) characterUnitCache.set(character, advance);
|
|
5856
|
+
}
|
|
5857
|
+
if (!Number.isNaN(advance)) units += advance;
|
|
5843
5858
|
}
|
|
5844
5859
|
return units * fontSize;
|
|
5845
5860
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SOURCE_EXPLAIN, ruleDocumentation, findValidationRule, us } from './chunk-
|
|
1
|
+
import { SOURCE_EXPLAIN, ruleDocumentation, findValidationRule, us } from './chunk-M7YZU3DX.js';
|
|
2
2
|
|
|
3
3
|
// src/finding-text-explain-util.ts
|
|
4
4
|
var ex = (fix, problem, fixed) => ({ fix, problem, fixed });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsonEqual, formatPointer } from './chunk-
|
|
2
|
-
import { annotationText } from './chunk-
|
|
1
|
+
import { jsonEqual, formatPointer } from './chunk-M7YZU3DX.js';
|
|
2
|
+
import { annotationText } from './chunk-W3SEWSO5.js';
|
|
3
3
|
|
|
4
4
|
// src/diff-match.ts
|
|
5
5
|
var DEFAULT_MATCH_THRESHOLD = 0.5;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { sortPresentationKeys } from './chunk-KELC4K62.js';
|
|
2
2
|
import { NOT_CHECKED } from './chunk-RYZPBJLB.js';
|
|
3
|
-
import { Ctx, describeYamlErrors } from './chunk-
|
|
4
|
-
import { same } from './chunk-
|
|
5
|
-
import { validate } from './chunk-
|
|
3
|
+
import { Ctx, describeYamlErrors } from './chunk-HRKV43GC.js';
|
|
4
|
+
import { same } from './chunk-KOCXV7H3.js';
|
|
5
|
+
import { validate } from './chunk-M7YZU3DX.js';
|
|
6
6
|
import { presentation } from './chunk-5Q4IYLMW.js';
|
|
7
|
-
import { checkCatalogsOption } from './chunk-
|
|
7
|
+
import { checkCatalogsOption } from './chunk-W3SEWSO5.js';
|
|
8
8
|
import { Parser, parseDocument, isMap, isSeq, Document, visit, isScalar, isAlias } from 'yaml';
|
|
9
9
|
|
|
10
10
|
var MAX_ALIAS_COUNT = 100;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OPFApiError } from './chunk-
|
|
2
|
-
import { CATALOG_SCHEMA } from './chunk-
|
|
1
|
+
import { OPFApiError } from './chunk-I6G32TB5.js';
|
|
2
|
+
import { CATALOG_SCHEMA } from './chunk-M7YZU3DX.js';
|
|
3
3
|
import { CATALOG_SCHEMA as CATALOG_SCHEMA$1, gallery } from '@openpresentation/gallery';
|
|
4
4
|
|
|
5
5
|
function galleryMismatch(declared, reads = CATALOG_SCHEMA) {
|
package/dist/composition.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ASCII_QUOTE_MARKS, AUTO_LAYOUT, CAPTIONABLE_FIELDS, CAPTION_FONT_RATIO, CAPTION_MAX_RATIO, CATALOG_REFERENCE_PATTERN, CHART_HIGHLIGHT_MUTED_MIN_CONTRAST, CHART_HIGHLIGHT_MUTED_MIX, CHART_LEAD_MIN_CONTRAST, CHART_MAX_INTERVALS, CHART_MIN_TICK_SPACING_PX, CHART_SERIES_MIN_DIFFERENCE, CHART_SERIES_MIN_LIGHTNESS_STEP, CHART_SERIES_TIER_SIZE, CHART_SERIES_TINT_MIX, CHART_TEXT_FLOOR_PX, CHART_TEXT_PX, CHART_TYPES, CITATION_MARKER_RAISE, CITATION_MARKER_SCALE, CODE_HIGHLIGHT_LANGUAGES, CODE_HIGHLIGHT_MAX_LENGTH, CODE_NOMINAL_SIZE, CODE_PANEL_BACKGROUND, CODE_PANEL_FOREGROUND, CODE_SYNTAX_MIN_CONTRAST, DARK_BACKGROUND_LUMINANCE, DEFAULT_CHART_LABEL_SEPARATOR, DEFAULT_FURNITURE_DATE_FORMAT, DESIGN_HINT_KEYS, ENGINE_DEFAULT_CHART_TYPES, ENGINE_DEFAULT_COLOR_SCHEME, ENGINE_DEFAULT_FONT_SCHEME, ENGINE_DEFAULT_THEME, FONT_SIZE_GRID_PER_PX, FOOTNOTE_MAX_RATIO, FURNITURE_GAP, FURNITURE_IMAGE_SHARE, FURNITURE_ZONE_GUTTER, HEADING_AREAS, LANGUAGES, LAYOUT_BODY_KINDS, LEAD_NOMINAL_SIZE, LIST_NOMINAL_SIZE, LOGO_SHAPES, MAX_COMPOSITION_DEPTH, MAX_NUMBERING_LEVELS, MAX_NUMBERING_VALUE, MAX_REGION_BLOCKS, MAX_REGION_DEPTH, MAX_REGION_ENTRIES, MAX_ROMAN_VALUE, MAX_TEMPLATE_TRACKS, METRIC_TREND_MIN_CONTRAST, METRIC_TREND_SHAPES, METRIC_VALUE_MIN_CONTRAST, NEUTRAL_SHARES, NUMBERING_STYLES, NUMBERING_SUFFIXES, OPFCatalogsOptionError, OPFCompositionError, OPFLayoutTemplateError, OPFUnresolvedReferenceError, PATTERN_PRESETS, PATTERN_PRESET_ALIASES, PATTERN_TILE_SIZE, PICTURE_BULLET_SCALE, PROSE_NOMINAL_SIZE, QUOTE_MARKS, QUOTE_NOMINAL_SIZE, QUOTE_SOURCE_SEPARATOR, REGION_ANCHORS, REGION_FLOWS, REGION_KINDS, REGION_ROLES, RESERVED_REGION_NAMES, SOCIAL_PLATFORMS, SURFACE_ALT_MIN_CONTRAST, SURFACE_ALT_MIX, TABLE_NOMINAL_SIZE, THEME_DESIGN_KEYS, TIMELINE_OUTLINE_MIN_CONTRAST, TIMELINE_STATUSES, TIMELINE_TEXT_MIN_CONTRAST, allocateRows, annotationText, applyLuminance, bindRegions, blockKind, captionSettings, catalogGroupSource, catalogKinds, catalogRecords, catalogReferenceSites, chartColorForFill, chartHighlightColors, chartHighlightMarks, chartIntervalsFor, chartLabelText, chartLeadFromScheme, chartNumber, chartOptionSupport, chartOptionTarget, chartPaletteForFill, chartSeriesPalette, chartTextSize, chartValueAxis, citationMarkerText, clrMapAttributes, codeHighlightBands, codeHighlightColors, codeHighlightLines, codeLineNumbers, codeLineRuns, codeSyntaxPalette, codeSyntaxPaletteForRoles, codeSyntaxPaletteForScheme, collectCitations, colorContrast, colorMapFor, composeLayoutAreas, composeSlide, defaultSlideBackground, fitImage, fitList, fitRichText, fitText, formatChartLabelNumber, formatChartLabelPercent, formatDataNumber, formatFurnitureDate, formatListNumber, fromExcelNumberFormat, gridFlowShape, imageBackground, imageShape, inlineChartData, inlineDatasets, inlineTableData, intrinsicImageAspect, intrinsicImageSize, isColorVariant, isDarkColor, isDatasetRef, isLayoutTemplate, isWrappedInQuoteMarks, isXYChartType, layoutCaption, layoutCode, layoutContent, layoutEntries, layoutFootnotes, layoutFurniture, layoutMetric, layoutQuote, layoutRegion, layoutStructure, layoutTable, layoutTemplate, layoutTemplateIssues, layoutTimeline, layoutWatermark, listColumnBreaks, listNumbers, maxIntervalsFor, measureText, measureTextOutline, metricTrendColor, metricTrendMark, metricTrendPoints, metricValueColor, niceScale, normalizeColorVariant, normalizeHexColor, numberFormatError, numberingAtLevel, numberingStyleDraws, paragraphDirection, paragraphDirectionAt, parseReference, patternBitmap, patternRuns, physicalAlignment, placeTextLines, placedImageBlocks, quoteLanguage, quoteMarksFor, readableSchemeColor, referencesSlide, regionAccepts, regionRoleRank, resolveCanvasDimensions, resolveChartColors, resolveChartData, resolveChartOptions, resolveCodeLanguage, resolveColorRef, resolveColorRoles, resolveDesignHints, resolveFontFamilies, resolveLogo, resolveNumbering, resolvePatternPreset, resolveReference, resolveScriptFonts, resolveSlideDirection, resolveSocialProfile, resolveTableData, resolveTextStyle, rootNodes, scriptFontRole, shareHeights, sliceNumberedItems, slideCitations, snapFontSizeDown, snapFontSizeUp, stackCategoryValues, surfaceAltColor, tableCellDisplayValue, tableGrid, tableRowBoundaries, textColorForFill, textWidthMeasurer, timelineMarkerShapes, timelineTextColor, toExcelNumberFormat, tokenizeCode, unresolvedReference, unwrapQuoteMarks, visualReadingOrder, walkCitationRuns, wrapText } from './chunk-
|
|
1
|
+
export { ASCII_QUOTE_MARKS, AUTO_LAYOUT, CAPTIONABLE_FIELDS, CAPTION_FONT_RATIO, CAPTION_MAX_RATIO, CATALOG_REFERENCE_PATTERN, CHART_HIGHLIGHT_MUTED_MIN_CONTRAST, CHART_HIGHLIGHT_MUTED_MIX, CHART_LEAD_MIN_CONTRAST, CHART_MAX_INTERVALS, CHART_MIN_TICK_SPACING_PX, CHART_SERIES_MIN_DIFFERENCE, CHART_SERIES_MIN_LIGHTNESS_STEP, CHART_SERIES_TIER_SIZE, CHART_SERIES_TINT_MIX, CHART_TEXT_FLOOR_PX, CHART_TEXT_PX, CHART_TYPES, CITATION_MARKER_RAISE, CITATION_MARKER_SCALE, CODE_HIGHLIGHT_LANGUAGES, CODE_HIGHLIGHT_MAX_LENGTH, CODE_NOMINAL_SIZE, CODE_PANEL_BACKGROUND, CODE_PANEL_FOREGROUND, CODE_SYNTAX_MIN_CONTRAST, DARK_BACKGROUND_LUMINANCE, DEFAULT_CHART_LABEL_SEPARATOR, DEFAULT_FURNITURE_DATE_FORMAT, DESIGN_HINT_KEYS, ENGINE_DEFAULT_CHART_TYPES, ENGINE_DEFAULT_COLOR_SCHEME, ENGINE_DEFAULT_FONT_SCHEME, ENGINE_DEFAULT_THEME, FONT_SIZE_GRID_PER_PX, FOOTNOTE_MAX_RATIO, FURNITURE_GAP, FURNITURE_IMAGE_SHARE, FURNITURE_ZONE_GUTTER, HEADING_AREAS, LANGUAGES, LAYOUT_BODY_KINDS, LEAD_NOMINAL_SIZE, LIST_NOMINAL_SIZE, LOGO_SHAPES, MAX_COMPOSITION_DEPTH, MAX_NUMBERING_LEVELS, MAX_NUMBERING_VALUE, MAX_REGION_BLOCKS, MAX_REGION_DEPTH, MAX_REGION_ENTRIES, MAX_ROMAN_VALUE, MAX_TEMPLATE_TRACKS, METRIC_TREND_MIN_CONTRAST, METRIC_TREND_SHAPES, METRIC_VALUE_MIN_CONTRAST, NEUTRAL_SHARES, NUMBERING_STYLES, NUMBERING_SUFFIXES, OPFCatalogsOptionError, OPFCompositionError, OPFLayoutTemplateError, OPFUnresolvedReferenceError, PATTERN_PRESETS, PATTERN_PRESET_ALIASES, PATTERN_TILE_SIZE, PICTURE_BULLET_SCALE, PROSE_NOMINAL_SIZE, QUOTE_MARKS, QUOTE_NOMINAL_SIZE, QUOTE_SOURCE_SEPARATOR, REGION_ANCHORS, REGION_FLOWS, REGION_KINDS, REGION_ROLES, RESERVED_REGION_NAMES, SOCIAL_PLATFORMS, SURFACE_ALT_MIN_CONTRAST, SURFACE_ALT_MIX, TABLE_NOMINAL_SIZE, THEME_DESIGN_KEYS, TIMELINE_OUTLINE_MIN_CONTRAST, TIMELINE_STATUSES, TIMELINE_TEXT_MIN_CONTRAST, allocateRows, annotationText, applyLuminance, bindRegions, blockKind, captionSettings, catalogGroupSource, catalogKinds, catalogRecords, catalogReferenceSites, chartColorForFill, chartHighlightColors, chartHighlightMarks, chartIntervalsFor, chartLabelText, chartLeadFromScheme, chartNumber, chartOptionSupport, chartOptionTarget, chartPaletteForFill, chartSeriesPalette, chartTextSize, chartValueAxis, citationMarkerText, clrMapAttributes, codeHighlightBands, codeHighlightColors, codeHighlightLines, codeLineNumbers, codeLineRuns, codeSyntaxPalette, codeSyntaxPaletteForRoles, codeSyntaxPaletteForScheme, collectCitations, colorContrast, colorMapFor, composeLayoutAreas, composeSlide, defaultSlideBackground, fitImage, fitList, fitRichText, fitText, formatChartLabelNumber, formatChartLabelPercent, formatDataNumber, formatFurnitureDate, formatListNumber, fromExcelNumberFormat, gridFlowShape, imageBackground, imageShape, inlineChartData, inlineDatasets, inlineTableData, intrinsicImageAspect, intrinsicImageSize, isColorVariant, isDarkColor, isDatasetRef, isLayoutTemplate, isWrappedInQuoteMarks, isXYChartType, layoutCaption, layoutCode, layoutContent, layoutEntries, layoutFootnotes, layoutFurniture, layoutMetric, layoutQuote, layoutRegion, layoutStructure, layoutTable, layoutTemplate, layoutTemplateIssues, layoutTimeline, layoutWatermark, listColumnBreaks, listNumbers, maxIntervalsFor, measureText, measureTextOutline, metricTrendColor, metricTrendMark, metricTrendPoints, metricValueColor, niceScale, normalizeColorVariant, normalizeHexColor, numberFormatError, numberingAtLevel, numberingStyleDraws, paragraphDirection, paragraphDirectionAt, parseReference, patternBitmap, patternRuns, physicalAlignment, placeTextLines, placedImageBlocks, quoteLanguage, quoteMarksFor, readableSchemeColor, referencesSlide, regionAccepts, regionRoleRank, resolveCanvasDimensions, resolveChartColors, resolveChartData, resolveChartOptions, resolveCodeLanguage, resolveColorRef, resolveColorRoles, resolveDesignHints, resolveFontFamilies, resolveLogo, resolveNumbering, resolvePatternPreset, resolveReference, resolveScriptFonts, resolveSlideDirection, resolveSocialProfile, resolveTableData, resolveTextStyle, rootNodes, scriptFontRole, shareHeights, sliceNumberedItems, slideCitations, snapFontSizeDown, snapFontSizeUp, stackCategoryValues, surfaceAltColor, tableCellDisplayValue, tableGrid, tableRowBoundaries, textColorForFill, textWidthMeasurer, timelineMarkerShapes, timelineTextColor, toExcelNumberFormat, tokenizeCode, unresolvedReference, unwrapQuoteMarks, visualReadingOrder, walkCitationRuns, wrapText } from './chunk-W3SEWSO5.js';
|
|
2
2
|
import './chunk-GM7WFPGG.js';
|
|
@@ -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.
|
|
47
|
-
readonly "@openpresentation/opf-pptx": "^0.
|
|
46
|
+
readonly "@openpresentation/opf-render": "^0.29.0";
|
|
47
|
+
readonly "@openpresentation/opf-pptx": "^0.29.0";
|
|
48
48
|
};
|
|
49
49
|
interface Diagnostic {
|
|
50
50
|
code: string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { convertFiles, deckFileFormat, exportFormatOf, openDeck, planConversion, readInput, saveDeck, writePlanned } from './chunk-R455YZNO.js';
|
|
2
|
+
import './chunk-Z7XNHIW7.js';
|
|
3
|
+
import './chunk-I6G32TB5.js';
|
|
4
|
+
import './chunk-UJSAR6GF.js';
|
|
5
|
+
import './chunk-PJSPHHRK.js';
|
|
6
|
+
import './chunk-P5E3FNYO.js';
|
|
7
|
+
import './chunk-7UO6H32I.js';
|
|
8
|
+
import './chunk-SYCHWS7C.js';
|
|
9
|
+
import './chunk-F5QC7E2O.js';
|
|
10
|
+
import './chunk-XG4JKFZ6.js';
|
|
11
|
+
import './chunk-KELC4K62.js';
|
|
12
|
+
import './chunk-RYZPBJLB.js';
|
|
13
|
+
import './chunk-W7KPMUJF.js';
|
|
14
|
+
import './chunk-UKWNHK62.js';
|
|
15
|
+
import './chunk-5OMZW44K.js';
|
|
16
|
+
import './chunk-HRKV43GC.js';
|
|
17
|
+
import './chunk-KOCXV7H3.js';
|
|
18
|
+
import './chunk-ARFAQNOH.js';
|
|
19
|
+
import './chunk-WHDOOLIO.js';
|
|
20
|
+
import './chunk-M7YZU3DX.js';
|
|
21
|
+
import './chunk-JBARNYFR.js';
|
|
22
|
+
import './chunk-5Q4IYLMW.js';
|
|
23
|
+
import './chunk-W3SEWSO5.js';
|
|
24
|
+
import './chunk-GM7WFPGG.js';
|
package/dist/convert.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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-7UO6H32I.js';
|
|
2
|
+
import { parseQuoteLines, parseCodeFence, splitWhen, parseListLine, levelsFromIndents, fenceCode } from './chunk-5OMZW44K.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-KOCXV7H3.js';
|
|
4
|
+
export { OPFConversionError } from './chunk-KOCXV7H3.js';
|
|
5
|
+
import './chunk-M7YZU3DX.js';
|
|
6
6
|
import './chunk-JBARNYFR.js';
|
|
7
7
|
import './chunk-5Q4IYLMW.js';
|
|
8
|
-
import { promotedRegionKeys, isDatasetRef, inlineTableData, visitContentPayloads, chartNumber } from './chunk-
|
|
8
|
+
import { promotedRegionKeys, isDatasetRef, inlineTableData, visitContentPayloads, chartNumber } from './chunk-W3SEWSO5.js';
|
|
9
9
|
import './chunk-GM7WFPGG.js';
|
|
10
10
|
|
|
11
11
|
// src/convert/tables.ts
|
package/dist/data.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { OPFDataImportError, ingest, parseTabularData } from './chunk-
|
|
2
|
-
export { chartNumber, datasetDiagnostics, formatDataNumber, fromExcelNumberFormat, inlineChartData, inlineDatasets, inlineTableData, isDatasetRef, isXYChartType, numberFormatError, resolveChartData, resolveTableData, suggestChartNumberFix, tableCellDisplayValue, toExcelNumberFormat, unusedDatasets } from './chunk-
|
|
1
|
+
export { OPFDataImportError, ingest, parseTabularData } from './chunk-P5E3FNYO.js';
|
|
2
|
+
export { chartNumber, datasetDiagnostics, formatDataNumber, fromExcelNumberFormat, inlineChartData, inlineDatasets, inlineTableData, isDatasetRef, isXYChartType, numberFormatError, resolveChartData, resolveTableData, suggestChartNumberFix, tableCellDisplayValue, toExcelNumberFormat, unusedDatasets } from './chunk-W3SEWSO5.js';
|
|
3
3
|
import './chunk-GM7WFPGG.js';
|
package/dist/deck.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-SYCHWS7C.js';
|
|
2
|
+
import './chunk-F5QC7E2O.js';
|
|
3
|
+
import './chunk-XG4JKFZ6.js';
|
|
4
4
|
import './chunk-KELC4K62.js';
|
|
5
5
|
import './chunk-RYZPBJLB.js';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
6
|
+
import './chunk-UKWNHK62.js';
|
|
7
|
+
import './chunk-5OMZW44K.js';
|
|
8
|
+
import './chunk-HRKV43GC.js';
|
|
9
|
+
import './chunk-KOCXV7H3.js';
|
|
10
|
+
import './chunk-M7YZU3DX.js';
|
|
11
11
|
import './chunk-JBARNYFR.js';
|
|
12
12
|
import './chunk-5Q4IYLMW.js';
|
|
13
|
-
import './chunk-
|
|
13
|
+
import './chunk-W3SEWSO5.js';
|
|
14
14
|
import './chunk-GM7WFPGG.js';
|
package/dist/diff.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-WHDOOLIO.js';
|
|
2
|
+
import './chunk-M7YZU3DX.js';
|
|
3
3
|
import './chunk-JBARNYFR.js';
|
|
4
4
|
import './chunk-5Q4IYLMW.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-W3SEWSO5.js';
|
|
6
6
|
import './chunk-GM7WFPGG.js';
|
package/dist/ids.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { OPFIdError, assignIds, touches } from './chunk-
|
|
2
|
-
export { OPFPatchHashError, documentHash, idToken, isIdToken, resolveIdPatch, resolveIdPointer, toIdPatch, toIdPointer } from './chunk-
|
|
1
|
+
export { OPFIdError, assignIds, touches } from './chunk-ARFAQNOH.js';
|
|
2
|
+
export { OPFPatchHashError, documentHash, idToken, isIdToken, resolveIdPatch, resolveIdPointer, toIdPatch, toIdPointer } from './chunk-M7YZU3DX.js';
|
|
3
3
|
import './chunk-JBARNYFR.js';
|
|
4
4
|
import './chunk-5Q4IYLMW.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-W3SEWSO5.js';
|
|
6
6
|
import './chunk-GM7WFPGG.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { SchemaEntry, SchemaName, audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './schemas.js';
|
|
2
|
-
import { a3 as ConvertInput, a4 as ConvertOptions, a5 as ConvertResult, a6 as ConvertFormat, a7 as OpenOptions, a8 as SaveOptions, a9 as SaveResult } from './conversion-
|
|
3
|
-
export { aa as ConvertedFile, h as ExportFormat, F as FontsHandle, O as OPFApiError, n as OPFExportError, o as OPFImportError, S as SlideSelection, U as parseSlideSelection } from './conversion-
|
|
2
|
+
import { a3 as ConvertInput, a4 as ConvertOptions, a5 as ConvertResult, a6 as ConvertFormat, a7 as OpenOptions, a8 as SaveOptions, a9 as SaveResult } from './conversion-CCAmVKp8.js';
|
|
3
|
+
export { aa as ConvertedFile, h as ExportFormat, F as FontsHandle, O as OPFApiError, n as OPFExportError, o as OPFImportError, S as SlideSelection, U as parseSlideSelection } from './conversion-CCAmVKp8.js';
|
|
4
4
|
export { R as RuleExplanation, e as explain } from './explain-iZeNOUc6.js';
|
|
5
5
|
import { validate as validate$1 } from './validator.js';
|
|
6
6
|
export { DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, assertValid, assertValidCatalogRecord, findValidationRule, validateCatalogRecord, validationRules } from './validator.js';
|
package/dist/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defaultCatalogs } from './chunk-
|
|
2
|
-
import { stats, embed, edit, OPFApiError, asApiError } from './chunk-
|
|
3
|
-
export { OPFApiError, OPFExportError, OPFImportError, OPFMoveToCustomError, copySlides, fill, fillRecords, localAssetSources, moveToCustom, parseSlideSelection, sameRecord, updateFromCatalog } from './chunk-
|
|
1
|
+
import { defaultCatalogs } from './chunk-Z7XNHIW7.js';
|
|
2
|
+
import { stats, embed, edit, OPFApiError, asApiError } from './chunk-I6G32TB5.js';
|
|
3
|
+
export { OPFApiError, OPFExportError, OPFImportError, OPFMoveToCustomError, copySlides, fill, fillRecords, localAssetSources, moveToCustom, parseSlideSelection, sameRecord, updateFromCatalog } from './chunk-I6G32TB5.js';
|
|
4
4
|
export { specFileEntries, specFileKinds, specFilePaths } from './chunk-UJSAR6GF.js';
|
|
5
5
|
export { FONT_POLICY, applyFontPolicyDecisions, fontAvailabilityDiagnostics, fontPolicyFor } from './chunk-PJSPHHRK.js';
|
|
6
|
-
export { OPFDataImportError, ingest, parseTabularData } from './chunk-
|
|
7
|
-
import { paginate } from './chunk-
|
|
8
|
-
export { OPFPaginationError, paginateSlide } from './chunk-
|
|
9
|
-
export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-
|
|
10
|
-
export { fromMarkdown, toMarkdown } from './chunk-
|
|
11
|
-
import './chunk-
|
|
6
|
+
export { OPFDataImportError, ingest, parseTabularData } from './chunk-P5E3FNYO.js';
|
|
7
|
+
import { paginate } from './chunk-7UO6H32I.js';
|
|
8
|
+
export { OPFPaginationError, paginateSlide } from './chunk-7UO6H32I.js';
|
|
9
|
+
export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-SYCHWS7C.js';
|
|
10
|
+
export { fromMarkdown, toMarkdown } from './chunk-F5QC7E2O.js';
|
|
11
|
+
import './chunk-XG4JKFZ6.js';
|
|
12
12
|
export { OPFFormatError, format } from './chunk-KELC4K62.js';
|
|
13
13
|
import './chunk-RYZPBJLB.js';
|
|
14
|
-
export { explain } from './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
17
|
-
export { OPFMarkdownError } from './chunk-
|
|
18
|
-
import './chunk-
|
|
19
|
-
export { OPFIdError, assignIds, touches } from './chunk-
|
|
20
|
-
export { diff, merge } from './chunk-
|
|
21
|
-
import { validate, OPFValidationError } from './chunk-
|
|
22
|
-
export { CATALOG_SCHEMA, DEFAULT_VALIDATION_THRESHOLDS, OPFPatchError, OPFPatchHashError, OPFPatchValidationError, OPFValidationError, applyPatch, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogSchemaNames, documentHash, findValidationRule, idToken, isIdToken, resolveDrawnFontFamilies, resolveIdPatch, resolveIdPointer, resolveSlideContext, toIdPatch, toIdPointer, validateCatalogRecord, validationCategories, validationRules } from './chunk-
|
|
14
|
+
export { explain } from './chunk-W7KPMUJF.js';
|
|
15
|
+
import './chunk-UKWNHK62.js';
|
|
16
|
+
import './chunk-5OMZW44K.js';
|
|
17
|
+
export { OPFMarkdownError } from './chunk-HRKV43GC.js';
|
|
18
|
+
import './chunk-KOCXV7H3.js';
|
|
19
|
+
export { OPFIdError, assignIds, touches } from './chunk-ARFAQNOH.js';
|
|
20
|
+
export { diff, merge } from './chunk-WHDOOLIO.js';
|
|
21
|
+
import { validate, OPFValidationError } from './chunk-M7YZU3DX.js';
|
|
22
|
+
export { CATALOG_SCHEMA, DEFAULT_VALIDATION_THRESHOLDS, OPFPatchError, OPFPatchHashError, OPFPatchValidationError, OPFValidationError, applyPatch, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogSchemaNames, documentHash, findValidationRule, idToken, isIdToken, resolveDrawnFontFamilies, resolveIdPatch, resolveIdPointer, resolveSlideContext, toIdPatch, toIdPointer, validateCatalogRecord, validationCategories, validationRules } from './chunk-M7YZU3DX.js';
|
|
23
23
|
import './chunk-JBARNYFR.js';
|
|
24
24
|
export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-5Q4IYLMW.js';
|
|
25
|
-
export { CATALOG_GROUP_PATTERN, CATALOG_REFERENCE_PATTERN, CHART_TYPES, DEFAULT_VARIABLE_DATE_FORMAT, ENGINE_DEFAULT_CHART_TYPES, ENGINE_DEFAULT_COLOR_SCHEME, ENGINE_DEFAULT_FONT_SCHEME, ENGINE_DEFAULT_THEME, LANGUAGES, LOGO_SHAPES, OPFCatalogsOptionError, OPFUnresolvedReferenceError, OPFVariableError, SLIDE_SCOPED_BUILTINS, SOCIAL_PLATFORMS, VARIABLE_KINDS, catalogGroupSource, catalogKinds, catalogRecords, catalogReferenceSites, chartNumber, coerceVariableValue, datasetDiagnostics, formatDataNumber, formatVariableNumber, fromExcelNumberFormat, hasContentVariables, inlineChartData, inlineDatasets, inlineTableData, isDatasetRef, isTemplate, isXYChartType, listBuiltinVariables, listVariables, normalizeLanguageFamily, numberFormatError, parseReference, resolveChartData, resolveDesignRecords, resolveFontScheme, resolveReference, resolveSlideVariables, resolveTableData, resolveVariables, suggestChartNumberFix, tableCellDisplayValue, toExcelNumberFormat, unresolvedReference, unusedDatasets, variableDeclarations } from './chunk-
|
|
25
|
+
export { CATALOG_GROUP_PATTERN, CATALOG_REFERENCE_PATTERN, CHART_TYPES, DEFAULT_VARIABLE_DATE_FORMAT, ENGINE_DEFAULT_CHART_TYPES, ENGINE_DEFAULT_COLOR_SCHEME, ENGINE_DEFAULT_FONT_SCHEME, ENGINE_DEFAULT_THEME, LANGUAGES, LOGO_SHAPES, OPFCatalogsOptionError, OPFUnresolvedReferenceError, OPFVariableError, SLIDE_SCOPED_BUILTINS, SOCIAL_PLATFORMS, VARIABLE_KINDS, catalogGroupSource, catalogKinds, catalogRecords, catalogReferenceSites, chartNumber, coerceVariableValue, datasetDiagnostics, formatDataNumber, formatVariableNumber, fromExcelNumberFormat, hasContentVariables, inlineChartData, inlineDatasets, inlineTableData, isDatasetRef, isTemplate, isXYChartType, listBuiltinVariables, listVariables, normalizeLanguageFamily, numberFormatError, parseReference, resolveChartData, resolveDesignRecords, resolveFontScheme, resolveReference, resolveSlideVariables, resolveTableData, resolveVariables, suggestChartNumberFix, tableCellDisplayValue, toExcelNumberFormat, unresolvedReference, unusedDatasets, variableDeclarations } from './chunk-W3SEWSO5.js';
|
|
26
26
|
import './chunk-GM7WFPGG.js';
|
|
27
27
|
|
|
28
28
|
// src/index.ts
|
|
@@ -36,7 +36,7 @@ var stats2 = (presentation2, options) => stats(presentation2, withDefaultCatalog
|
|
|
36
36
|
var paginate2 = (input, options) => paginate(input, withDefaultCatalog(options));
|
|
37
37
|
var embed2 = (document, options) => embed(document, withDefaultCatalog(options));
|
|
38
38
|
var edit2 = (deck, patch, options) => edit(deck, patch, withDefaultCatalog(options));
|
|
39
|
-
var engine = () => import('./conversion-
|
|
39
|
+
var engine = () => import('./conversion-KV2WWCMK.js');
|
|
40
40
|
var rethrow = (error, fallback) => {
|
|
41
41
|
if (error instanceof OPFValidationError) throw error;
|
|
42
42
|
throw asApiError(OPFApiError, error, fallback);
|
package/dist/markdown.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { fromMarkdown, toMarkdown } from './chunk-
|
|
1
|
+
export { fromMarkdown, toMarkdown } from './chunk-F5QC7E2O.js';
|
|
2
2
|
import './chunk-RYZPBJLB.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
export { OPFMarkdownError } from './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
3
|
+
import './chunk-UKWNHK62.js';
|
|
4
|
+
import './chunk-5OMZW44K.js';
|
|
5
|
+
export { OPFMarkdownError } from './chunk-HRKV43GC.js';
|
|
6
|
+
import './chunk-KOCXV7H3.js';
|
|
7
|
+
import './chunk-M7YZU3DX.js';
|
|
8
8
|
import './chunk-JBARNYFR.js';
|
|
9
9
|
import './chunk-5Q4IYLMW.js';
|
|
10
|
-
import './chunk-
|
|
10
|
+
import './chunk-W3SEWSO5.js';
|
|
11
11
|
import './chunk-GM7WFPGG.js';
|
package/dist/node-engine.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { b as DeckReport, c as DeckReportOptions, r as readDeckReport } from './deck-report-DQMsvyBI.js';
|
|
2
|
-
import { F as FontsHandle, E as EmbeddedFace, R as Renderer, a as Reporter, P as Peer, b as PptxModule, O as OPFApiError } from './conversion-
|
|
3
|
-
export { C as ConversionPlan, D as Diagnostic, c as EXPORT_FORMATS, d as EXPORT_TEXT, e as ExportContext, f as ExportFile, g as ExportFontSummary, h as ExportFormat, i as ExportOptions, j as ExportResult, k as ExportRun, l as ExportText, I as ImportOptions, m as ImportResult, n as OPFExportError, o as OPFImportError, p as PEER_RANGES, q as PPTX_PACKAGE, r as PreparedExport, s as RENDER_EXTRAS, t as RENDER_PACKAGE, u as ReportFinding, v as ResolvedExportOptions, S as SlideSelection, w as Source, V as VERSIONS, x as asApiError, y as assetRoot, z as checkDate, A as checkOptions, B as checkRenamedOptions, G as checkScale, H as deckFileFormat, J as exportFormatOf, K as finishReport, L as importPresentation, M as loadPptx, N as loadRenderer, Q as locatePackage, T as missingPeerFrom, U as parseSlideSelection, W as planConversion, X as prepareExport, Y as reaches, Z as readInput, _ as reportThrown, $ as resolveExportOptions, a0 as runExport, a1 as runPreparedExport, a2 as writePlanned } from './conversion-
|
|
2
|
+
import { F as FontsHandle, E as EmbeddedFace, R as Renderer, a as Reporter, P as Peer, b as PptxModule, O as OPFApiError } from './conversion-CCAmVKp8.js';
|
|
3
|
+
export { C as ConversionPlan, D as Diagnostic, c as EXPORT_FORMATS, d as EXPORT_TEXT, e as ExportContext, f as ExportFile, g as ExportFontSummary, h as ExportFormat, i as ExportOptions, j as ExportResult, k as ExportRun, l as ExportText, I as ImportOptions, m as ImportResult, n as OPFExportError, o as OPFImportError, p as PEER_RANGES, q as PPTX_PACKAGE, r as PreparedExport, s as RENDER_EXTRAS, t as RENDER_PACKAGE, u as ReportFinding, v as ResolvedExportOptions, S as SlideSelection, w as Source, V as VERSIONS, x as asApiError, y as assetRoot, z as checkDate, A as checkOptions, B as checkRenamedOptions, G as checkScale, H as deckFileFormat, J as exportFormatOf, K as finishReport, L as importPresentation, M as loadPptx, N as loadRenderer, Q as locatePackage, T as missingPeerFrom, U as parseSlideSelection, W as planConversion, X as prepareExport, Y as reaches, Z as readInput, _ as reportThrown, $ as resolveExportOptions, a0 as runExport, a1 as runPreparedExport, a2 as writePlanned } from './conversion-CCAmVKp8.js';
|
|
4
4
|
import { Catalog } from './composition.js';
|
|
5
5
|
import { Fonts } from './composition.js';
|
|
6
6
|
import { PresentationPaginationResult } from './index.js';
|
package/dist/node-engine.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { loadRenderer, listFontDirectories, leaseSharedFonts, prepareFonts } from './chunk-
|
|
2
|
-
export { EXPORT_FORMATS, EXPORT_TEXT, PEER_RANGES, PPTX_PACKAGE, RENDER_EXTRAS, RENDER_PACKAGE, Reporter, VERSIONS, assetRoot, checkDate, checkDestinations, checkOptions, checkOutputPattern, checkRenamedOptions, checkScale, createZip, deckFileFormat, deckStem, embeddedFor, exportFormatOf, finishReport, importPresentation, leaseSharedFonts, listFontDirectories, loadPptx, loadRenderer, localAssetProblems, locatePackage, missingPeerFrom, padNumber, planConversion, pointerOf, prepareExport, prepareFonts, publishNew, reaches, readInput, reportThrown, resolveExportOptions, runExport, runImport, runPreparedExport, stemOf, writeFiles, writePlanned } from './chunk-
|
|
3
|
-
import { defaultCatalogs } from './chunk-
|
|
4
|
-
export { defaultCatalogs, galleryMismatch } from './chunk-
|
|
5
|
-
import { OPFApiError } from './chunk-
|
|
6
|
-
export { OPFApiError, OPFExportError, OPFImportError, asApiError, parseSlideSelection } from './chunk-
|
|
1
|
+
import { loadRenderer, listFontDirectories, leaseSharedFonts, prepareFonts } from './chunk-R455YZNO.js';
|
|
2
|
+
export { EXPORT_FORMATS, EXPORT_TEXT, PEER_RANGES, PPTX_PACKAGE, RENDER_EXTRAS, RENDER_PACKAGE, Reporter, VERSIONS, assetRoot, checkDate, checkDestinations, checkOptions, checkOutputPattern, checkRenamedOptions, checkScale, createZip, deckFileFormat, deckStem, embeddedFor, exportFormatOf, finishReport, importPresentation, leaseSharedFonts, listFontDirectories, loadPptx, loadRenderer, localAssetProblems, locatePackage, missingPeerFrom, padNumber, planConversion, pointerOf, prepareExport, prepareFonts, publishNew, reaches, readInput, reportThrown, resolveExportOptions, runExport, runImport, runPreparedExport, stemOf, writeFiles, writePlanned } from './chunk-R455YZNO.js';
|
|
3
|
+
import { defaultCatalogs } from './chunk-Z7XNHIW7.js';
|
|
4
|
+
export { defaultCatalogs, galleryMismatch } from './chunk-Z7XNHIW7.js';
|
|
5
|
+
import { OPFApiError } from './chunk-I6G32TB5.js';
|
|
6
|
+
export { OPFApiError, OPFExportError, OPFImportError, asApiError, parseSlideSelection } from './chunk-I6G32TB5.js';
|
|
7
7
|
import './chunk-UJSAR6GF.js';
|
|
8
8
|
import './chunk-PJSPHHRK.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import { paginate } from './chunk-
|
|
11
|
-
export { readDeckReport } from './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
9
|
+
import './chunk-P5E3FNYO.js';
|
|
10
|
+
import { paginate } from './chunk-7UO6H32I.js';
|
|
11
|
+
export { readDeckReport } from './chunk-SYCHWS7C.js';
|
|
12
|
+
import './chunk-F5QC7E2O.js';
|
|
13
|
+
import './chunk-XG4JKFZ6.js';
|
|
14
14
|
import './chunk-KELC4K62.js';
|
|
15
15
|
import './chunk-RYZPBJLB.js';
|
|
16
|
-
import './chunk-
|
|
17
|
-
import './chunk-
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
22
|
-
import './chunk-
|
|
23
|
-
import './chunk-
|
|
16
|
+
import './chunk-W7KPMUJF.js';
|
|
17
|
+
import './chunk-UKWNHK62.js';
|
|
18
|
+
import './chunk-5OMZW44K.js';
|
|
19
|
+
import './chunk-HRKV43GC.js';
|
|
20
|
+
import './chunk-KOCXV7H3.js';
|
|
21
|
+
import './chunk-ARFAQNOH.js';
|
|
22
|
+
import './chunk-WHDOOLIO.js';
|
|
23
|
+
import './chunk-M7YZU3DX.js';
|
|
24
24
|
import './chunk-JBARNYFR.js';
|
|
25
25
|
import './chunk-5Q4IYLMW.js';
|
|
26
|
-
import './chunk-
|
|
26
|
+
import './chunk-W3SEWSO5.js';
|
|
27
27
|
import './chunk-GM7WFPGG.js';
|
|
28
28
|
|
|
29
29
|
// src/node/paginate.ts
|
package/dist/pagination.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { OPFPaginationError, paginate, paginateSlide } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { OPFPaginationError, paginate, paginateSlide } from './chunk-7UO6H32I.js';
|
|
2
|
+
import './chunk-M7YZU3DX.js';
|
|
3
3
|
import './chunk-JBARNYFR.js';
|
|
4
4
|
import './chunk-5Q4IYLMW.js';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-W3SEWSO5.js';
|
|
6
6
|
import './chunk-GM7WFPGG.js';
|
package/dist/patch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { OPFPatchError, OPFPatchHashError, OPFPatchValidationError, applyPatch, applyPatchWithInverse, documentHash, escapePointerToken, formatPointer, getAtPointer, hasPointer, idToken, invertPatch, isIdToken, jsonEqual, normalizePatch, parsePointer, pointerFromPath, readPointer, resolveIdPatch, resolveIdPointer, splitPointer, toIdPatch, toIdPointer, unescapePointerToken, walkPatch } from './chunk-
|
|
1
|
+
export { OPFPatchError, OPFPatchHashError, OPFPatchValidationError, applyPatch, applyPatchWithInverse, documentHash, escapePointerToken, formatPointer, getAtPointer, hasPointer, idToken, invertPatch, isIdToken, jsonEqual, normalizePatch, parsePointer, pointerFromPath, readPointer, resolveIdPatch, resolveIdPointer, splitPointer, toIdPatch, toIdPointer, unescapePointerToken, walkPatch } from './chunk-M7YZU3DX.js';
|
|
2
2
|
import './chunk-JBARNYFR.js';
|
|
3
3
|
import './chunk-5Q4IYLMW.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-W3SEWSO5.js';
|
|
5
5
|
import './chunk-GM7WFPGG.js';
|
package/dist/schema.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { COMMON_KEYS, UNRANKED_PRIORITY, activeSchema, catalogKindAt, createSchemaValue, describeField, isPromotedRegionKey, listSchemaFields, resolveSchema, schemaAtPath, schemaCatalogKinds, schemaLabel, schemaType, schemaVariants, splitOpfPath } from './chunk-
|
|
1
|
+
export { COMMON_KEYS, UNRANKED_PRIORITY, activeSchema, catalogKindAt, createSchemaValue, describeField, isPromotedRegionKey, listSchemaFields, resolveSchema, schemaAtPath, schemaCatalogKinds, schemaLabel, schemaType, schemaVariants, splitOpfPath } from './chunk-M7YZU3DX.js';
|
|
2
2
|
import './chunk-JBARNYFR.js';
|
|
3
3
|
import './chunk-5Q4IYLMW.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-W3SEWSO5.js';
|
|
5
5
|
import './chunk-GM7WFPGG.js';
|
package/dist/source.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { explain } from './chunk-
|
|
2
|
-
import { readMarkdown, frontMatter, splitSegments, isOutline, NOTES, fenceStart, fenceClose, COMMENT } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import { splitLines } from './chunk-
|
|
5
|
-
export { analyzeYamlSyntax } from './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import { rememberByText, SLIDE_OPTION_KEYS, FENCE_KINDS, createLocator, parsePointer } from './chunk-
|
|
8
|
-
export { BLOCK_AS_VALUES, BLOCK_OPTION_KEYS, FENCE_ATTRIBUTES, FENCE_KINDS, LINE_KEYWORDS, METRIC_KEYS, PATTERN_PHRASES, SLIDE_OPTION_KEYS, SPAN_FLAGS, SPAN_VALUES, analyzeJsonSyntax, applyTextEdits, describeFinding, distance, nearest, segmentsOf as pointerSegments, starterValue } from './chunk-
|
|
1
|
+
export { explain } from './chunk-W7KPMUJF.js';
|
|
2
|
+
import { readMarkdown, frontMatter, splitSegments, isOutline, NOTES, fenceStart, fenceClose, COMMENT } from './chunk-UKWNHK62.js';
|
|
3
|
+
import './chunk-5OMZW44K.js';
|
|
4
|
+
import { splitLines } from './chunk-HRKV43GC.js';
|
|
5
|
+
export { analyzeYamlSyntax } from './chunk-HRKV43GC.js';
|
|
6
|
+
import './chunk-KOCXV7H3.js';
|
|
7
|
+
import { rememberByText, SLIDE_OPTION_KEYS, FENCE_KINDS, createLocator, parsePointer } from './chunk-M7YZU3DX.js';
|
|
8
|
+
export { BLOCK_AS_VALUES, BLOCK_OPTION_KEYS, FENCE_ATTRIBUTES, FENCE_KINDS, LINE_KEYWORDS, METRIC_KEYS, PATTERN_PHRASES, SLIDE_OPTION_KEYS, SPAN_FLAGS, SPAN_VALUES, analyzeJsonSyntax, applyTextEdits, describeFinding, distance, nearest, segmentsOf as pointerSegments, starterValue } from './chunk-M7YZU3DX.js';
|
|
9
9
|
import './chunk-JBARNYFR.js';
|
|
10
10
|
import './chunk-5Q4IYLMW.js';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-W3SEWSO5.js';
|
|
12
12
|
import './chunk-GM7WFPGG.js';
|
|
13
13
|
import { findNodeAtOffset, getNodePath, parseTree } from 'jsonc-parser';
|
|
14
14
|
import { parseDocument, isMap, isSeq, isScalar, isAlias } from 'yaml';
|
package/dist/validator.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, assertValid, assertValidCatalogRecord, findValidationRule, validate, validateCatalogRecord, validationCategories, validationRules } from './chunk-
|
|
1
|
+
export { DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, assertValid, assertValidCatalogRecord, findValidationRule, validate, validateCatalogRecord, validationCategories, validationRules } from './chunk-M7YZU3DX.js';
|
|
2
2
|
import './chunk-JBARNYFR.js';
|
|
3
3
|
import './chunk-5Q4IYLMW.js';
|
|
4
|
-
export { promotedRegionKeys } from './chunk-
|
|
4
|
+
export { promotedRegionKeys } from './chunk-W3SEWSO5.js';
|
|
5
5
|
import './chunk-GM7WFPGG.js';
|
package/dist/yaml.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { OPFYamlError, YAML_SCHEMA_URL, fromYaml, parseYamlData, scanYamlComments, toYaml } from './chunk-
|
|
1
|
+
export { OPFYamlError, YAML_SCHEMA_URL, fromYaml, parseYamlData, scanYamlComments, toYaml } from './chunk-XG4JKFZ6.js';
|
|
2
2
|
import './chunk-KELC4K62.js';
|
|
3
3
|
import './chunk-RYZPBJLB.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
4
|
+
import './chunk-HRKV43GC.js';
|
|
5
|
+
import './chunk-KOCXV7H3.js';
|
|
6
|
+
import './chunk-M7YZU3DX.js';
|
|
7
7
|
import './chunk-JBARNYFR.js';
|
|
8
8
|
import './chunk-5Q4IYLMW.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-W3SEWSO5.js';
|
|
10
10
|
import './chunk-GM7WFPGG.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpresentation/opf",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "Canonical Open Presentation Format schemas, TypeScript types, local validation and composition; in Node, the file API and the CLI defaults register the pptx.gallery catalog of @openpresentation/gallery.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Open Presentation",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"ajv-formats": "^3.0.1",
|
|
165
165
|
"jsonc-parser": "3.3.1",
|
|
166
166
|
"yaml": "^2.9.1",
|
|
167
|
-
"@openpresentation/gallery": "^0.
|
|
167
|
+
"@openpresentation/gallery": "^0.29.0"
|
|
168
168
|
},
|
|
169
169
|
"devDependencies": {
|
|
170
170
|
"@expo-google-fonts/arimo": "0.4.3",
|
|
@@ -185,8 +185,8 @@
|
|
|
185
185
|
"workerd": "1.20261023.1"
|
|
186
186
|
},
|
|
187
187
|
"peerDependencies": {
|
|
188
|
-
"@openpresentation/opf-pptx": "^0.
|
|
189
|
-
"@openpresentation/opf-render": "^0.
|
|
188
|
+
"@openpresentation/opf-pptx": "^0.29.0",
|
|
189
|
+
"@openpresentation/opf-render": "^0.29.0"
|
|
190
190
|
},
|
|
191
191
|
"peerDependenciesMeta": {
|
|
192
192
|
"@openpresentation/opf-pptx": {
|
|
@@ -207,5 +207,5 @@
|
|
|
207
207
|
"test:packed": "node test/packed-install-smoke.mjs",
|
|
208
208
|
"pack:dry-run": "pnpm run build:deps && pnpm run build && npm pack --dry-run --cache /tmp/opf-npm-cache"
|
|
209
209
|
},
|
|
210
|
-
"gitHead": "
|
|
210
|
+
"gitHead": "464e10d3c15647b0e43326ac7e6761e34789991a"
|
|
211
211
|
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export { convertFiles, deckFileFormat, exportFormatOf, openDeck, planConversion, readInput, saveDeck, writePlanned } from './chunk-F6DCEGB3.js';
|
|
2
|
-
import './chunk-OAIAFXMS.js';
|
|
3
|
-
import './chunk-LLEXM7TQ.js';
|
|
4
|
-
import './chunk-UJSAR6GF.js';
|
|
5
|
-
import './chunk-PJSPHHRK.js';
|
|
6
|
-
import './chunk-N77N4AOD.js';
|
|
7
|
-
import './chunk-KXKN3W5Z.js';
|
|
8
|
-
import './chunk-BQUWRXTR.js';
|
|
9
|
-
import './chunk-MTFK7QEY.js';
|
|
10
|
-
import './chunk-XZ23FORL.js';
|
|
11
|
-
import './chunk-KELC4K62.js';
|
|
12
|
-
import './chunk-RYZPBJLB.js';
|
|
13
|
-
import './chunk-UOHWG4OS.js';
|
|
14
|
-
import './chunk-PCU4XGKV.js';
|
|
15
|
-
import './chunk-P6PKYJTS.js';
|
|
16
|
-
import './chunk-SEZ4EPW6.js';
|
|
17
|
-
import './chunk-TNUTRV6E.js';
|
|
18
|
-
import './chunk-CR72ZJ6W.js';
|
|
19
|
-
import './chunk-VGGPAMP7.js';
|
|
20
|
-
import './chunk-WPKCWQ6W.js';
|
|
21
|
-
import './chunk-JBARNYFR.js';
|
|
22
|
-
import './chunk-5Q4IYLMW.js';
|
|
23
|
-
import './chunk-2CUCYENF.js';
|
|
24
|
-
import './chunk-GM7WFPGG.js';
|