@openpresentation/opf 0.20.1 → 0.20.2
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-4FBXVST6.js → chunk-2XIMI2V5.js} +6 -6
- package/dist/{chunk-7QUAOKS6.js → chunk-5YTTTLL2.js} +2 -2
- package/dist/{chunk-32MHL3B3.js → chunk-AXUY4BHG.js} +1 -1
- package/dist/{chunk-P6LMWUXV.js → chunk-E4VBQW2Z.js} +1 -1
- package/dist/{chunk-ZU5EQ23T.js → chunk-E662FTHI.js} +1 -1
- package/dist/{chunk-W7G5LSXI.js → chunk-J4NYP5JC.js} +1 -1
- package/dist/{chunk-UAXSW6VV.js → chunk-K66K65UQ.js} +2 -2
- package/dist/{chunk-NZDWCYDI.js → chunk-MSWNRD4C.js} +5 -5
- package/dist/{chunk-JMYM44I4.js → chunk-NVNK5BLL.js} +5 -5
- package/dist/{chunk-2XJUXMBS.js → chunk-NXYHBBVV.js} +1 -1
- package/dist/{chunk-BYEIFHWS.js → chunk-OGVRAMHE.js} +2 -2
- package/dist/{chunk-L6RRLN6Q.js → chunk-QEISIGFD.js} +2 -2
- package/dist/{chunk-VEHLQVGQ.js → chunk-QOQATI37.js} +1 -1
- package/dist/{chunk-RFJ5TR3V.js → chunk-SPSAQKNB.js} +5 -5
- package/dist/{chunk-UA5EROLC.js → chunk-SZALQLZP.js} +1 -1
- package/dist/{chunk-BDXJYO6R.js → chunk-XGR5HL7R.js} +2 -2
- package/dist/{chunk-2AGWO7RM.js → chunk-XWDAXVFZ.js} +4 -4
- package/dist/{composition-MFjGwuN_.d.ts → composition-QtS1rnhv.d.ts} +3 -2
- package/dist/composition.d.ts +1 -1
- package/dist/composition.js +1 -1
- package/dist/conversion-6YXKHUAU.js +19 -0
- package/dist/{conversion-DDd1mdIj.d.ts → conversion-DRBKSRAB.d.ts} +3 -3
- package/dist/convert.d.ts +2 -2
- package/dist/convert.js +7 -7
- package/dist/data.d.ts +1 -1
- package/dist/data.js +2 -2
- package/dist/{deck-report-DldBcTHe.d.ts → deck-report-4CNhJYk7.d.ts} +2 -2
- package/dist/deck.d.ts +5 -5
- package/dist/deck.js +10 -10
- package/dist/diff.js +5 -5
- package/dist/docs.js +6 -6
- package/dist/examples.d.ts +1 -1
- package/dist/format.js +2 -2
- package/dist/index.d.ts +11 -11
- package/dist/index.js +20 -20
- package/dist/markdown.d.ts +3 -3
- package/dist/markdown.js +7 -7
- package/dist/node-engine.d.ts +7 -7
- package/dist/node-engine.js +20 -20
- package/dist/{pagination-BKsZIEcA.d.ts → pagination-CAX6mHG6.d.ts} +1 -1
- package/dist/pagination.d.ts +2 -2
- package/dist/pagination.js +4 -4
- package/dist/patch.js +4 -4
- package/dist/{presentation-B_e2Djga.d.ts → presentation-CKbo-axq.d.ts} +1 -1
- package/dist/schemas.js +1 -1
- package/dist/spec/schemas/opf.schema.json +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/{validation-types-DtN8X_HZ.d.ts → validation-types-CxbvWnKh.d.ts} +1 -1
- package/dist/{validator-1d29Z3YY.d.ts → validator-Rq4en736.d.ts} +2 -2
- package/dist/validator.d.ts +4 -4
- package/dist/validator.js +3 -3
- package/dist/yaml.d.ts +3 -3
- package/dist/yaml.js +7 -7
- package/package.json +3 -3
- package/dist/conversion-WHN4D4WH.js +0 -19
package/dist/browser.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { OPFApiError } from './chunk-
|
|
2
|
-
export { OPFApiError, OPFExportError, OPFImportError, OPFMoveToCustomError, copySlides, edit, embed, fill, fillRecords, moveToCustom, parseSlideSelection, sameRecord, stats, updateFromCatalog } from './chunk-
|
|
1
|
+
import { OPFApiError } from './chunk-XWDAXVFZ.js';
|
|
2
|
+
export { OPFApiError, OPFExportError, OPFImportError, OPFMoveToCustomError, copySlides, edit, embed, fill, fillRecords, moveToCustom, parseSlideSelection, sameRecord, stats, updateFromCatalog } from './chunk-XWDAXVFZ.js';
|
|
3
3
|
export { specFileEntries, specFileKinds, specFilePaths } from './chunk-UJSAR6GF.js';
|
|
4
|
-
export { OPFDataImportError, ingest, parseTabularData } from './chunk-
|
|
5
|
-
export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-
|
|
6
|
-
export { fromMarkdown, toMarkdown } from './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
export { OPFMarkdownError } from './chunk-
|
|
9
|
-
export { diff, merge } from './chunk-
|
|
10
|
-
export { OPFPatchError, OPFPatchValidationError, applyPatch } from './chunk-
|
|
11
|
-
export { OPFFormatError, format } from './chunk-
|
|
12
|
-
export { OPFPaginationError, paginate, paginateSlide } from './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
15
|
-
export { CATALOG_SCHEMA, DEFAULT_CHART_PALETTE, DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogSchemaNames, findValidationRule, resolveSlideContext, validate, validateCatalogRecord, validationCategories, validationRules } from './chunk-
|
|
16
|
-
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-
|
|
17
|
-
export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-
|
|
4
|
+
export { OPFDataImportError, ingest, parseTabularData } from './chunk-J4NYP5JC.js';
|
|
5
|
+
export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-MSWNRD4C.js';
|
|
6
|
+
export { fromMarkdown, toMarkdown } from './chunk-SPSAQKNB.js';
|
|
7
|
+
import './chunk-2XIMI2V5.js';
|
|
8
|
+
export { OPFMarkdownError } from './chunk-E4VBQW2Z.js';
|
|
9
|
+
export { diff, merge } from './chunk-QEISIGFD.js';
|
|
10
|
+
export { OPFPatchError, OPFPatchValidationError, applyPatch } from './chunk-NXYHBBVV.js';
|
|
11
|
+
export { OPFFormatError, format } from './chunk-AXUY4BHG.js';
|
|
12
|
+
export { OPFPaginationError, paginate, paginateSlide } from './chunk-XGR5HL7R.js';
|
|
13
|
+
import './chunk-SZALQLZP.js';
|
|
14
|
+
import './chunk-E662FTHI.js';
|
|
15
|
+
export { CATALOG_SCHEMA, DEFAULT_CHART_PALETTE, DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogSchemaNames, findValidationRule, resolveSlideContext, validate, validateCatalogRecord, validationCategories, validationRules } from './chunk-5YTTTLL2.js';
|
|
16
|
+
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-K66K65UQ.js';
|
|
17
|
+
export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-QOQATI37.js';
|
|
18
18
|
export { FONT_POLICY, applyFontPolicyDecisions, fontAvailabilityDiagnostics, fontPolicyFor } from './chunk-F7PLNWHQ.js';
|
|
19
19
|
|
|
20
20
|
// src/browser.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { NOT_CHECKED, Ctx } from './chunk-
|
|
2
|
-
import { sortPresentationKeys } from './chunk-
|
|
3
|
-
import { same } from './chunk-
|
|
4
|
-
import { validate } from './chunk-
|
|
5
|
-
import { checkCatalogsOption } from './chunk-
|
|
6
|
-
import { presentation } from './chunk-
|
|
1
|
+
import { NOT_CHECKED, Ctx } from './chunk-E4VBQW2Z.js';
|
|
2
|
+
import { sortPresentationKeys } from './chunk-AXUY4BHG.js';
|
|
3
|
+
import { same } from './chunk-E662FTHI.js';
|
|
4
|
+
import { validate } from './chunk-5YTTTLL2.js';
|
|
5
|
+
import { checkCatalogsOption } from './chunk-K66K65UQ.js';
|
|
6
|
+
import { presentation } from './chunk-QOQATI37.js';
|
|
7
7
|
import { Parser, parseDocument, isMap, Document, visit, isScalar, isAlias, isSeq } from 'yaml';
|
|
8
8
|
|
|
9
9
|
var MAX_ALIAS_COUNT = 100;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { promotedRegionKeys, VARIABLE_KINDS, resolveChartData, chartPaletteForFill, imageBackground, tableGrid, timelineTextColor, LOGO_SHAPES, visitContentPayloads, readingRows, visualReadingOrder, intrinsicImageSize, resolveReference, textWidthMeasurer, normalizeHexColor, resolveColorRef, resolveDesignRecords, resolveFontFamilies, checkCatalogsOption, provenanceOf, unresolvedReference, OPFUnresolvedReferenceError, resolveColorRoles, resolveCanvasDimensions, resolveSlideVariables, defaultSlideBackground, isRecord, hasContentVariables, isTemplate, instantiateForValidation, layoutTemplateIssues, resolveScriptFonts, 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-
|
|
2
|
-
import { schemaEntries, schemas } from './chunk-
|
|
1
|
+
import { promotedRegionKeys, VARIABLE_KINDS, resolveChartData, chartPaletteForFill, imageBackground, tableGrid, timelineTextColor, LOGO_SHAPES, visitContentPayloads, readingRows, visualReadingOrder, intrinsicImageSize, resolveReference, textWidthMeasurer, normalizeHexColor, resolveColorRef, resolveDesignRecords, resolveFontFamilies, checkCatalogsOption, provenanceOf, unresolvedReference, OPFUnresolvedReferenceError, resolveColorRoles, resolveCanvasDimensions, resolveSlideVariables, defaultSlideBackground, isRecord, hasContentVariables, isTemplate, instantiateForValidation, layoutTemplateIssues, resolveScriptFonts, 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-K66K65UQ.js';
|
|
2
|
+
import { schemaEntries, schemas } from './chunk-QOQATI37.js';
|
|
3
3
|
import Ajv2020 from 'ajv/dist/2020.js';
|
|
4
4
|
import addFormats from 'ajv-formats';
|
|
5
5
|
import { parseTree, printParseErrorCode, getNodePath } from 'jsonc-parser';
|
|
@@ -5400,7 +5400,7 @@ function layoutMetric(value, box, options = {}) {
|
|
|
5400
5400
|
}
|
|
5401
5401
|
if (!Number.isFinite(rasterPadding) || rasterPadding < 0) throw new RangeError("Metric raster padding must be finite and nonnegative.");
|
|
5402
5402
|
if (options.overflow !== void 0 && !["warn", "error"].includes(options.overflow)) throw new RangeError("Invalid metric overflow policy.");
|
|
5403
|
-
const requestedAlignment = options.align ?? "
|
|
5403
|
+
const requestedAlignment = options.align ?? "center";
|
|
5404
5404
|
if (!["left", "center", "right"].includes(requestedAlignment)) throw new RangeError("Invalid metric alignment.");
|
|
5405
5405
|
const sourcePath = options.path ?? "metric", parts = [], diagnostics = [];
|
|
5406
5406
|
for (const role of ["value", "unit", "label", "description", "delta", "trend"]) {
|
|
@@ -6270,7 +6270,7 @@ function composeSlide(input, options = {}) {
|
|
|
6270
6270
|
const rasterPadding = (options.textRasterPadding ?? 1) * scale;
|
|
6271
6271
|
if (!Number.isFinite(rasterPadding) || rasterPadding < 0) throw new RangeError("Text raster padding must be finite and nonnegative.");
|
|
6272
6272
|
let coverGroup = false;
|
|
6273
|
-
const alignmentFor = (field) => (field === "title" || coverGroup && (field === "tag" || field === "subtitle") && hints.sources.contentAlignment !== "slide" ? hints.titleAlignment : hints.contentAlignment) ?? "left";
|
|
6273
|
+
const alignmentFor = (field) => (field === "title" || coverGroup && (field === "tag" || field === "subtitle") && hints.sources.contentAlignment !== "slide" ? hints.titleAlignment : hints.contentAlignment) ?? (field === "metric" ? "center" : "left");
|
|
6274
6274
|
const styleFor = (field, path2) => resolveTextStyle({
|
|
6275
6275
|
fontFamily: (field === "title" ? options.fontFamilies?.heading : field === "code" ? options.fontFamilies?.code : field === "tag" ? options.fontFamilies?.accent ?? options.fontFamilies?.body : options.fontFamilies?.body) ?? (field === "code" ? "monospace" : "sans-serif"),
|
|
6276
6276
|
fontWeight: field === "title" ? 700 : 400,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { fromMarkdown, toMarkdown } from './chunk-
|
|
2
|
-
import { fromYaml, toYaml } from './chunk-
|
|
3
|
-
import { NOT_CHECKED } from './chunk-
|
|
4
|
-
import { parseSource, validate, OPFValidationError } from './chunk-
|
|
5
|
-
import { checkCatalogsOption } from './chunk-
|
|
1
|
+
import { fromMarkdown, toMarkdown } from './chunk-SPSAQKNB.js';
|
|
2
|
+
import { fromYaml, toYaml } from './chunk-2XIMI2V5.js';
|
|
3
|
+
import { NOT_CHECKED } from './chunk-E4VBQW2Z.js';
|
|
4
|
+
import { parseSource, validate, OPFValidationError } from './chunk-5YTTTLL2.js';
|
|
5
|
+
import { checkCatalogsOption } from './chunk-K66K65UQ.js';
|
|
6
6
|
|
|
7
7
|
// src/deck-report.ts
|
|
8
8
|
var DECK_FORMATS = ["json", "yaml", "markdown"];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defaultCatalogs } from './chunk-
|
|
2
|
-
import { OPFApiError, parseSlideSelection, OPFExportError, asApiError, OPFImportError } from './chunk-
|
|
3
|
-
import { deckFormatOf, readDeckReport, stringify } from './chunk-
|
|
4
|
-
import { paginate } from './chunk-
|
|
5
|
-
import { validate, OPFValidationError } from './chunk-
|
|
1
|
+
import { defaultCatalogs } from './chunk-OGVRAMHE.js';
|
|
2
|
+
import { OPFApiError, parseSlideSelection, OPFExportError, asApiError, OPFImportError } from './chunk-XWDAXVFZ.js';
|
|
3
|
+
import { deckFormatOf, readDeckReport, stringify } from './chunk-MSWNRD4C.js';
|
|
4
|
+
import { paginate } from './chunk-XGR5HL7R.js';
|
|
5
|
+
import { validate, OPFValidationError } from './chunk-5YTTTLL2.js';
|
|
6
6
|
import { stat, readdir, lstat, mkdir, writeFile, rename, unlink, readFile } from 'fs/promises';
|
|
7
7
|
import path6 from 'path';
|
|
8
8
|
import { readFileSync, realpathSync, statSync } from 'fs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OPFApiError } from './chunk-
|
|
2
|
-
import { CATALOG_SCHEMA } from './chunk-
|
|
1
|
+
import { OPFApiError } from './chunk-XWDAXVFZ.js';
|
|
2
|
+
import { CATALOG_SCHEMA } from './chunk-5YTTTLL2.js';
|
|
3
3
|
import { CATALOG_SCHEMA as CATALOG_SCHEMA$1, gallery } from '@openpresentation/gallery';
|
|
4
4
|
|
|
5
5
|
function galleryMismatch(declared, reads = CATALOG_SCHEMA) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsonEqual, formatPointer } from './chunk-
|
|
2
|
-
import { annotationText } from './chunk-
|
|
1
|
+
import { jsonEqual, formatPointer } from './chunk-NXYHBBVV.js';
|
|
2
|
+
import { annotationText } from './chunk-K66K65UQ.js';
|
|
3
3
|
|
|
4
4
|
// src/diff-match.ts
|
|
5
5
|
var DEFAULT_MATCH_THRESHOLD = 0.5;
|
|
@@ -33,7 +33,7 @@ var presentation = {
|
|
|
33
33
|
},
|
|
34
34
|
"filename": {
|
|
35
35
|
"type": "string",
|
|
36
|
-
"description": "Optional base filename for exports (without extension). The opf CLI (
|
|
36
|
+
"description": "Optional base filename for exports (without extension). The opf CLI (convert) and the editor strip a trailing .pptx, .pdf, .png, or .svg (case-insensitive) and append the target format's extension. When omitted, they slugify name; with no usable name the CLI uses the input file name and the editor uses 'presentation'. See /docs/opf for full validation rules.",
|
|
37
37
|
"examples": [
|
|
38
38
|
"q4-2026-business-review",
|
|
39
39
|
"acme-series-b-pitch"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Ctx, splitLines, lineRange, readYamlMapping, NOT_CHECKED, OPFMarkdownError, writeYaml, readCsv, DECIMAL, csvField, scalarText } from './chunk-
|
|
2
|
-
import { parseQuoteLines, levelsFromIndents, parseCodeFence, splitWhen, fenceCode } from './chunk-
|
|
3
|
-
import { same, isRecord, runText, isPlainRun, FORMATTING } from './chunk-
|
|
4
|
-
import { validate } from './chunk-
|
|
5
|
-
import { checkCatalogsOption, PROMOTED_REGION_KEY } from './chunk-
|
|
1
|
+
import { Ctx, splitLines, lineRange, readYamlMapping, NOT_CHECKED, OPFMarkdownError, writeYaml, readCsv, DECIMAL, csvField, scalarText } from './chunk-E4VBQW2Z.js';
|
|
2
|
+
import { parseQuoteLines, levelsFromIndents, parseCodeFence, splitWhen, fenceCode } from './chunk-SZALQLZP.js';
|
|
3
|
+
import { same, isRecord, runText, isPlainRun, FORMATTING } from './chunk-E662FTHI.js';
|
|
4
|
+
import { validate } from './chunk-5YTTTLL2.js';
|
|
5
|
+
import { checkCatalogsOption, PROMOTED_REGION_KEY } from './chunk-K66K65UQ.js';
|
|
6
6
|
|
|
7
7
|
// src/markdown/canon.ts
|
|
8
8
|
var FORMAT_KEYS = FORMATTING;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { assertValid, resolveSlideScriptMeasurement, resolveSlideContext } from './chunk-
|
|
2
|
-
import { resolveSlideVariables, checkCatalogsOption, usesSlideBuiltin, composeSlide, codeHighlightSlice, tableRowBoundaries, visitContentPayloads, regionAccepts, slideTokenSpans, sliceNumberedItems } from './chunk-
|
|
1
|
+
import { assertValid, resolveSlideScriptMeasurement, resolveSlideContext } from './chunk-5YTTTLL2.js';
|
|
2
|
+
import { resolveSlideVariables, checkCatalogsOption, usesSlideBuiltin, composeSlide, codeHighlightSlice, tableRowBoundaries, visitContentPayloads, regionAccepts, slideTokenSpans, sliceNumberedItems } from './chunk-K66K65UQ.js';
|
|
3
3
|
|
|
4
4
|
// src/pagination.ts
|
|
5
5
|
var OPFPaginationError = class extends Error {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OPFDataImportError, parseTabularData } from './chunk-
|
|
2
|
-
import { applyPatchWithInverse } from './chunk-
|
|
3
|
-
import { validate, OPFValidationError } from './chunk-
|
|
4
|
-
import { embeddedCopy, checkCatalogsOption, catalogReferenceSites, parseReference, catalogGroupDeclared, resolveReference, dottedPath, unresolvedReference, recordReferenceSites, catalogGroupSource, registeredCatalog, catalogKinds, CATALOG_GROUP_PATTERN, isRecord, visitContentPayloads, listVariables, resolveVariables, LOGO_SHAPES, resolveDesignRecords, resolveFontFamilies, resolveCanvasDimensions, imageBackground } from './chunk-
|
|
1
|
+
import { OPFDataImportError, parseTabularData } from './chunk-J4NYP5JC.js';
|
|
2
|
+
import { applyPatchWithInverse } from './chunk-NXYHBBVV.js';
|
|
3
|
+
import { validate, OPFValidationError } from './chunk-5YTTTLL2.js';
|
|
4
|
+
import { embeddedCopy, checkCatalogsOption, catalogReferenceSites, parseReference, catalogGroupDeclared, resolveReference, dottedPath, unresolvedReference, recordReferenceSites, catalogGroupSource, registeredCatalog, catalogKinds, CATALOG_GROUP_PATTERN, isRecord, visitContentPayloads, listVariables, resolveVariables, LOGO_SHAPES, resolveDesignRecords, resolveFontFamilies, resolveCanvasDimensions, imageBackground } from './chunk-K66K65UQ.js';
|
|
5
5
|
|
|
6
6
|
// src/api-errors.ts
|
|
7
7
|
var OPFApiError = class extends Error {
|
|
@@ -1733,8 +1733,8 @@ interface ComposedItem {
|
|
|
1733
1733
|
composition: Composition;
|
|
1734
1734
|
/**
|
|
1735
1735
|
* Resolved horizontal text alignment for this item: titleAlignment for the
|
|
1736
|
-
* title, contentAlignment for every other item (slide design, deck design,
|
|
1737
|
-
* then left). Engines anchor native and preview text to this value.
|
|
1736
|
+
* title, contentAlignment for every other item (slide design, deck design or host, theme design,
|
|
1737
|
+
* layout design, then center for metrics or left for other items). Engines anchor native and preview text to this value.
|
|
1738
1738
|
*/
|
|
1739
1739
|
alignment: 'left' | 'center' | 'right';
|
|
1740
1740
|
/**
|
|
@@ -2404,6 +2404,7 @@ interface MetricLayout {
|
|
|
2404
2404
|
overflow: boolean;
|
|
2405
2405
|
}
|
|
2406
2406
|
interface MetricLayoutOptions extends QuoteLayoutOptions {
|
|
2407
|
+
/** Horizontal alignment of the complete metric; defaults to center. */
|
|
2407
2408
|
align?: 'left' | 'center' | 'right';
|
|
2408
2409
|
/** Unscaled clearance around available vector outlines; defaults to one reference pixel. */
|
|
2409
2410
|
textRasterPadding?: number;
|
package/dist/composition.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as AUTO_LAYOUT, p as AnnotatedRun, q as AnnotationFitter, r as AnnotationLayoutOptions, B as BackgroundImageFit, s as BindRegionsOptions, t as BoundBlock, u as CAPTIONABLE_FIELDS, v as CAPTION_FONT_RATIO, w as CAPTION_MAX_RATIO, x as CHART_HIGHLIGHT_MUTED_MIN_CONTRAST, y as CHART_HIGHLIGHT_MUTED_MIX, z as CHART_SERIES_MIN_DIFFERENCE, D as CHART_SERIES_MIN_LIGHTNESS_STEP, a as CHART_TYPES, G as CITATION_MARKER_RAISE, H as CITATION_MARKER_SCALE, I as CODE_HIGHLIGHT_LANGUAGES, J as CODE_HIGHLIGHT_MAX_LENGTH, K as CODE_PANEL_BACKGROUND, N as CODE_PANEL_FOREGROUND, O as CODE_SYNTAX_MIN_CONTRAST, P as Caption, Q as CaptionAlignment, U as CaptionObject, V as CaptionPosition, W as CaptionSettings, X as ChartHighlightMarks, Y as ChartLabelContent, Z as ChartLabelPosition, _ as ChartLegendPosition, $ as ChartOptionDiagnostic, a0 as ChartOptionKind, a1 as ChartOptionSupport, a2 as ChartOptionTarget, a3 as CitationMarker, a4 as CitationNote, a5 as CodeContent, a6 as CodeHighlightBand, a7 as CodeHighlightColors, a8 as CodeHighlightEntry, a9 as CodeHighlightIssue, aa as CodeHighlightLines, ab as CodeLayout, ac as CodeLayoutDiagnostic, ad as CodeLayoutOptions, ae as CodeLineSegment, af as CodeLineSource, ag as CodeRun, ah as CodeSyntaxPalette, ai as CodeSyntaxPaletteOptions, aj as CodeSyntaxPaletteTheme, ak as CodeTextFit, al as CodeTextPart, am as CodeToken, an as CodeTokenKind, C as ComposeSlideOptions, ao as ComposedBackgroundImage, ap as ComposedCaption, aq as ComposedFlow, ar as ComposedFootnoteEntry, as as ComposedFootnotes, at as ComposedGroup, au as ComposedHeadingArea, av as ComposedImage, aw as ComposedItem, ax as ComposedLayoutArea, ay as ComposedListColumn, az as ComposedLogo, aA as ComposedOverlay, aB as ComposedPlacement, aC as ComposedRegion, aD as Composition, aE as CompositionCandidate, aF as CompositionDecision, aG as CompositionExplanation, aH as CompositionPenalties, aI as CompositionTrack, aJ as DARK_BACKGROUND_LUMINANCE, aK as DEFAULT_CHART_LABEL_SEPARATOR, aL as DEFAULT_FURNITURE_DATE_FORMAT, aM as DESIGN_HINT_KEYS, aN as DeckCitations, aO as DesignHintKey, aP as DesignHintSource, aQ as DesignHints, E as ENGINE_DEFAULT_CHART_TYPES, b as ENGINE_DEFAULT_COLOR_SCHEME, c as ENGINE_DEFAULT_FONT_SCHEME, d as ENGINE_DEFAULT_THEME, aR as FONT_SIZE_GRID_PER_PX, aS as FOOTNOTE_MAX_RATIO, aT as FURNITURE_GAP, aU as FURNITURE_IMAGE_SHARE, aV as FlowShape, aW as FontFaceSelection, e as FontFamilies, F as Fonts, aX as FootnoteLayoutOptions, aY as FurnitureField, aZ as FurnitureImagePart, a_ as FurnitureLayout, a$ as FurniturePart, b0 as FurniturePartBase, b1 as FurnitureSocialLink, b2 as FurnitureTextExtras, b3 as FurnitureTextPart, b4 as HEADING_AREAS, b5 as ImageEdge, b6 as ImageFit, b7 as ImageFitPlacement, b8 as ImageFocus, b9 as ImageShape, f as LANGUAGES, ba as LAYOUT_BODY_KINDS, g as LOGO_SHAPES, i as LanguageVocabulary, bb as LayoutArea, bc as LayoutAreasOptions, bd as LayoutBodyKind, be as LayoutBox, bf as LayoutContent, L as LayoutDiagnostic, bg as LayoutRegion, bh as LayoutTemplate, bi as LayoutTemplateIssue, bj as ListBulletImage, bk as ListEntryLayout, bl as ListFit, bm as ListFitOptions, bn as ListNumber, bo as ListText, bp as ListValue, j as LogoShape, k as LogoVariant, bq as MAX_COMPOSITION_DEPTH, br as MAX_NUMBERING_LEVELS, bs as MAX_NUMBERING_VALUE, bt as MAX_REGION_BLOCKS, bu as MAX_ROMAN_VALUE, bv as MAX_TEMPLATE_TRACKS, bw as METRIC_TREND_MIN_CONTRAST, bx as METRIC_TREND_SHAPES, M as MeasureTextWidth, by as MetricContent, bz as MetricLayout, bA as MetricLayoutDiagnostic, bB as MetricLayoutOptions, bC as MetricSentiment, bD as MetricTextPart, bE as MetricTextSource, bF as MetricTrend, bG as MetricTrendColorOptions, bH as MetricTrendMark, bI as NUMBERING_STYLES, bJ as NUMBERING_SUFFIXES, bK as Numbering, bL as NumberingInput, bM as NumberingStyleName, bN as NumberingSuffix, bO as OPFCompositionError, bP as OPFLayoutTemplateError, bQ as PATTERN_PRESETS, bR as PATTERN_PRESET_ALIASES, bS as PATTERN_TILE_SIZE, bT as PICTURE_BULLET_SCALE, bU as PhysicalAlignment, bV as QuoteContent, bW as QuoteLayout, bX as QuoteLayoutDiagnostic, bY as QuoteLayoutOptions, bZ as QuotePhoto, b_ as QuoteTextPart, b$ as QuoteTextSource, c0 as REGION_ANCHORS, c1 as REGION_FLOWS, c2 as REGION_KINDS, c3 as REGION_ROLES, c4 as RESERVED_REGION_NAMES, c5 as ReadingBox, c6 as Reference, c7 as ReferencesSlideOptions, c8 as RegionAnchor, c9 as RegionBinding, ca as RegionBindingDiagnostic, cb as RegionBindingResult, cc as RegionFlow, cd as RegionKind, ce as RegionRole, cf as ResolveColorRefOptions, cg as ResolveColorRefRoles, ch as ResolveColorRolesOptions, ci as ResolveDesignHintsOptions, R as ResolveLogoOptions, cj as ResolveScriptFontsOptions, ck as ResolvedChartDataLabels, cl as ResolvedChartHighlight, cm as ResolvedChartOptions, cn as ResolvedColorRoles, co as ResolvedDesignHints, l as ResolvedLogo, cp as ResolvedNumbering, cq as ResolvedScriptFonts, cr as RichText, cs as RichTextFit, ct as RichTextFragment, cu as RichTextLine, cv as RichTextOptions, cw as RichTextRun, cx as RowDemand, S as SOCIAL_PLATFORMS, cy as SURFACE_ALT_MIN_CONTRAST, cz as SURFACE_ALT_MIX, cA as ScriptFontApp, cB as ScriptFontSlots, cC as ScriptFontSource, cD as ScriptFontSupplement, cE as ScriptMeasurementProfile, cF as ScriptRole, cG as SlideCitations, cH as SlideComposition, m as SocialPlatformVocabulary, cI as SocialProfile, cJ as SourceTextFit, cK as THEME_DESIGN_KEYS, cL as TIMELINE_OUTLINE_MIN_CONTRAST, cM as TIMELINE_STATUSES, cN as TIMELINE_TEXT_MIN_CONTRAST, cO as TableBorder, cP as TableCellLayout, cQ as TableCellStyle, cR as TableGrid, cS as TableGridCell, cT as TableGridIssue, cU as TableLayout, cV as TableLayoutOptions, cW as TableRowLayout, cX as TextDirection, cY as TextFit, cZ as TextLineInk, c_ as TextLineSegment, c$ as TextLineSource, T as TextMeasurement, d0 as TextPlacement, d1 as TextPlacementLine, n as TextStyle, d2 as TimelineContent, d3 as TimelineEvent, d4 as TimelineLayout, d5 as TimelineLayoutDiagnostic, d6 as TimelineLayoutOptions, d7 as TimelineMarkerShape, d8 as TimelineStatus, d9 as TimelineStatusColors, da as TimelineTextPart, db as WatermarkTextLayout, dc as WatermarkTextOptions, dd as allocateRows, de as annotationText, df as bindRegions, dg as blockKind, dh as captionSettings, di as chartColorForFill, dj as chartHighlightColors, dk as chartHighlightMarks, dl as chartLabelText, dm as chartOptionSupport, dn as chartOptionTarget, dp as chartPaletteForFill, dq as citationMarkerText, dr as codeHighlightBands, ds as codeHighlightColors, dt as codeHighlightLines, du as codeLineNumbers, dv as codeLineRuns, dw as codeSyntaxPalette, dx as codeSyntaxPaletteForScheme, dy as collectCitations, dz as colorContrast, dA as composeLayoutAreas, dB as composeSlide, dC as defaultSlideBackground, dD as fitImage, dE as fitList, dF as fitRichText, dG as fitText, dH as formatChartLabelNumber, dI as formatChartLabelPercent, dJ as formatFurnitureDate, dK as formatListNumber, dL as gridFlowShape, dM as imageBackground, dN as imageShape, dO as intrinsicImageAspect, dP as intrinsicImageSize, dQ as isDarkColor, dR as isLayoutTemplate, dS as layoutCaption, dT as layoutCode, dU as layoutContent, dV as layoutFootnotes, dW as layoutFurniture, dX as layoutMetric, dY as layoutQuote, dZ as layoutRegion, d_ as layoutStructure, d$ as layoutTable, e0 as layoutTemplate, e1 as layoutTemplateIssues, e2 as layoutTimeline, e3 as layoutWatermark, e4 as listColumnBreaks, e5 as listNumbers, e6 as measureText, e7 as measureTextOutline, e8 as metricTrendColor, e9 as metricTrendMark, ea as metricTrendPoints, eb as normalizeHexColor, ec as numberingAtLevel, ed as numberingStyleDraws, ee as paragraphDirection, ef as paragraphDirectionAt, eg as patternBitmap, eh as patternRuns, ei as physicalAlignment, ej as placeTextLines, ek as placedImageBlocks, el as referencesSlide, em as regionAccepts, en as regionRoleRank, eo as resolveCanvasDimensions, ep as resolveChartOptions, eq as resolveCodeLanguage, er as resolveColorRef, es as resolveColorRoles, et as resolveDesignHints, eu as resolveFontFamilies, ev as resolveLogo, ew as resolveNumbering, ex as resolvePatternPreset, ey as resolveScriptFonts, ez as resolveSlideDirection, eA as resolveSocialProfile, eB as resolveTextStyle, eC as rootNodes, eD as scriptFontRole, eE as sliceNumberedItems, eF as slideCitations, eG as snapFontSizeDown, eH as snapFontSizeUp, eI as surfaceAltColor, eJ as tableGrid, eK as tableRowBoundaries, eL as textColorForFill, eM as textWidthMeasurer, eN as timelineMarkerShapes, eO as timelineTextColor, eP as tokenizeCode, eQ as visualReadingOrder, eR as walkCitationRuns, eS as wrapText } from './composition-
|
|
1
|
+
export { A as AUTO_LAYOUT, p as AnnotatedRun, q as AnnotationFitter, r as AnnotationLayoutOptions, B as BackgroundImageFit, s as BindRegionsOptions, t as BoundBlock, u as CAPTIONABLE_FIELDS, v as CAPTION_FONT_RATIO, w as CAPTION_MAX_RATIO, x as CHART_HIGHLIGHT_MUTED_MIN_CONTRAST, y as CHART_HIGHLIGHT_MUTED_MIX, z as CHART_SERIES_MIN_DIFFERENCE, D as CHART_SERIES_MIN_LIGHTNESS_STEP, a as CHART_TYPES, G as CITATION_MARKER_RAISE, H as CITATION_MARKER_SCALE, I as CODE_HIGHLIGHT_LANGUAGES, J as CODE_HIGHLIGHT_MAX_LENGTH, K as CODE_PANEL_BACKGROUND, N as CODE_PANEL_FOREGROUND, O as CODE_SYNTAX_MIN_CONTRAST, P as Caption, Q as CaptionAlignment, U as CaptionObject, V as CaptionPosition, W as CaptionSettings, X as ChartHighlightMarks, Y as ChartLabelContent, Z as ChartLabelPosition, _ as ChartLegendPosition, $ as ChartOptionDiagnostic, a0 as ChartOptionKind, a1 as ChartOptionSupport, a2 as ChartOptionTarget, a3 as CitationMarker, a4 as CitationNote, a5 as CodeContent, a6 as CodeHighlightBand, a7 as CodeHighlightColors, a8 as CodeHighlightEntry, a9 as CodeHighlightIssue, aa as CodeHighlightLines, ab as CodeLayout, ac as CodeLayoutDiagnostic, ad as CodeLayoutOptions, ae as CodeLineSegment, af as CodeLineSource, ag as CodeRun, ah as CodeSyntaxPalette, ai as CodeSyntaxPaletteOptions, aj as CodeSyntaxPaletteTheme, ak as CodeTextFit, al as CodeTextPart, am as CodeToken, an as CodeTokenKind, C as ComposeSlideOptions, ao as ComposedBackgroundImage, ap as ComposedCaption, aq as ComposedFlow, ar as ComposedFootnoteEntry, as as ComposedFootnotes, at as ComposedGroup, au as ComposedHeadingArea, av as ComposedImage, aw as ComposedItem, ax as ComposedLayoutArea, ay as ComposedListColumn, az as ComposedLogo, aA as ComposedOverlay, aB as ComposedPlacement, aC as ComposedRegion, aD as Composition, aE as CompositionCandidate, aF as CompositionDecision, aG as CompositionExplanation, aH as CompositionPenalties, aI as CompositionTrack, aJ as DARK_BACKGROUND_LUMINANCE, aK as DEFAULT_CHART_LABEL_SEPARATOR, aL as DEFAULT_FURNITURE_DATE_FORMAT, aM as DESIGN_HINT_KEYS, aN as DeckCitations, aO as DesignHintKey, aP as DesignHintSource, aQ as DesignHints, E as ENGINE_DEFAULT_CHART_TYPES, b as ENGINE_DEFAULT_COLOR_SCHEME, c as ENGINE_DEFAULT_FONT_SCHEME, d as ENGINE_DEFAULT_THEME, aR as FONT_SIZE_GRID_PER_PX, aS as FOOTNOTE_MAX_RATIO, aT as FURNITURE_GAP, aU as FURNITURE_IMAGE_SHARE, aV as FlowShape, aW as FontFaceSelection, e as FontFamilies, F as Fonts, aX as FootnoteLayoutOptions, aY as FurnitureField, aZ as FurnitureImagePart, a_ as FurnitureLayout, a$ as FurniturePart, b0 as FurniturePartBase, b1 as FurnitureSocialLink, b2 as FurnitureTextExtras, b3 as FurnitureTextPart, b4 as HEADING_AREAS, b5 as ImageEdge, b6 as ImageFit, b7 as ImageFitPlacement, b8 as ImageFocus, b9 as ImageShape, f as LANGUAGES, ba as LAYOUT_BODY_KINDS, g as LOGO_SHAPES, i as LanguageVocabulary, bb as LayoutArea, bc as LayoutAreasOptions, bd as LayoutBodyKind, be as LayoutBox, bf as LayoutContent, L as LayoutDiagnostic, bg as LayoutRegion, bh as LayoutTemplate, bi as LayoutTemplateIssue, bj as ListBulletImage, bk as ListEntryLayout, bl as ListFit, bm as ListFitOptions, bn as ListNumber, bo as ListText, bp as ListValue, j as LogoShape, k as LogoVariant, bq as MAX_COMPOSITION_DEPTH, br as MAX_NUMBERING_LEVELS, bs as MAX_NUMBERING_VALUE, bt as MAX_REGION_BLOCKS, bu as MAX_ROMAN_VALUE, bv as MAX_TEMPLATE_TRACKS, bw as METRIC_TREND_MIN_CONTRAST, bx as METRIC_TREND_SHAPES, M as MeasureTextWidth, by as MetricContent, bz as MetricLayout, bA as MetricLayoutDiagnostic, bB as MetricLayoutOptions, bC as MetricSentiment, bD as MetricTextPart, bE as MetricTextSource, bF as MetricTrend, bG as MetricTrendColorOptions, bH as MetricTrendMark, bI as NUMBERING_STYLES, bJ as NUMBERING_SUFFIXES, bK as Numbering, bL as NumberingInput, bM as NumberingStyleName, bN as NumberingSuffix, bO as OPFCompositionError, bP as OPFLayoutTemplateError, bQ as PATTERN_PRESETS, bR as PATTERN_PRESET_ALIASES, bS as PATTERN_TILE_SIZE, bT as PICTURE_BULLET_SCALE, bU as PhysicalAlignment, bV as QuoteContent, bW as QuoteLayout, bX as QuoteLayoutDiagnostic, bY as QuoteLayoutOptions, bZ as QuotePhoto, b_ as QuoteTextPart, b$ as QuoteTextSource, c0 as REGION_ANCHORS, c1 as REGION_FLOWS, c2 as REGION_KINDS, c3 as REGION_ROLES, c4 as RESERVED_REGION_NAMES, c5 as ReadingBox, c6 as Reference, c7 as ReferencesSlideOptions, c8 as RegionAnchor, c9 as RegionBinding, ca as RegionBindingDiagnostic, cb as RegionBindingResult, cc as RegionFlow, cd as RegionKind, ce as RegionRole, cf as ResolveColorRefOptions, cg as ResolveColorRefRoles, ch as ResolveColorRolesOptions, ci as ResolveDesignHintsOptions, R as ResolveLogoOptions, cj as ResolveScriptFontsOptions, ck as ResolvedChartDataLabels, cl as ResolvedChartHighlight, cm as ResolvedChartOptions, cn as ResolvedColorRoles, co as ResolvedDesignHints, l as ResolvedLogo, cp as ResolvedNumbering, cq as ResolvedScriptFonts, cr as RichText, cs as RichTextFit, ct as RichTextFragment, cu as RichTextLine, cv as RichTextOptions, cw as RichTextRun, cx as RowDemand, S as SOCIAL_PLATFORMS, cy as SURFACE_ALT_MIN_CONTRAST, cz as SURFACE_ALT_MIX, cA as ScriptFontApp, cB as ScriptFontSlots, cC as ScriptFontSource, cD as ScriptFontSupplement, cE as ScriptMeasurementProfile, cF as ScriptRole, cG as SlideCitations, cH as SlideComposition, m as SocialPlatformVocabulary, cI as SocialProfile, cJ as SourceTextFit, cK as THEME_DESIGN_KEYS, cL as TIMELINE_OUTLINE_MIN_CONTRAST, cM as TIMELINE_STATUSES, cN as TIMELINE_TEXT_MIN_CONTRAST, cO as TableBorder, cP as TableCellLayout, cQ as TableCellStyle, cR as TableGrid, cS as TableGridCell, cT as TableGridIssue, cU as TableLayout, cV as TableLayoutOptions, cW as TableRowLayout, cX as TextDirection, cY as TextFit, cZ as TextLineInk, c_ as TextLineSegment, c$ as TextLineSource, T as TextMeasurement, d0 as TextPlacement, d1 as TextPlacementLine, n as TextStyle, d2 as TimelineContent, d3 as TimelineEvent, d4 as TimelineLayout, d5 as TimelineLayoutDiagnostic, d6 as TimelineLayoutOptions, d7 as TimelineMarkerShape, d8 as TimelineStatus, d9 as TimelineStatusColors, da as TimelineTextPart, db as WatermarkTextLayout, dc as WatermarkTextOptions, dd as allocateRows, de as annotationText, df as bindRegions, dg as blockKind, dh as captionSettings, di as chartColorForFill, dj as chartHighlightColors, dk as chartHighlightMarks, dl as chartLabelText, dm as chartOptionSupport, dn as chartOptionTarget, dp as chartPaletteForFill, dq as citationMarkerText, dr as codeHighlightBands, ds as codeHighlightColors, dt as codeHighlightLines, du as codeLineNumbers, dv as codeLineRuns, dw as codeSyntaxPalette, dx as codeSyntaxPaletteForScheme, dy as collectCitations, dz as colorContrast, dA as composeLayoutAreas, dB as composeSlide, dC as defaultSlideBackground, dD as fitImage, dE as fitList, dF as fitRichText, dG as fitText, dH as formatChartLabelNumber, dI as formatChartLabelPercent, dJ as formatFurnitureDate, dK as formatListNumber, dL as gridFlowShape, dM as imageBackground, dN as imageShape, dO as intrinsicImageAspect, dP as intrinsicImageSize, dQ as isDarkColor, dR as isLayoutTemplate, dS as layoutCaption, dT as layoutCode, dU as layoutContent, dV as layoutFootnotes, dW as layoutFurniture, dX as layoutMetric, dY as layoutQuote, dZ as layoutRegion, d_ as layoutStructure, d$ as layoutTable, e0 as layoutTemplate, e1 as layoutTemplateIssues, e2 as layoutTimeline, e3 as layoutWatermark, e4 as listColumnBreaks, e5 as listNumbers, e6 as measureText, e7 as measureTextOutline, e8 as metricTrendColor, e9 as metricTrendMark, ea as metricTrendPoints, eb as normalizeHexColor, ec as numberingAtLevel, ed as numberingStyleDraws, ee as paragraphDirection, ef as paragraphDirectionAt, eg as patternBitmap, eh as patternRuns, ei as physicalAlignment, ej as placeTextLines, ek as placedImageBlocks, el as referencesSlide, em as regionAccepts, en as regionRoleRank, eo as resolveCanvasDimensions, ep as resolveChartOptions, eq as resolveCodeLanguage, er as resolveColorRef, es as resolveColorRoles, et as resolveDesignHints, eu as resolveFontFamilies, ev as resolveLogo, ew as resolveNumbering, ex as resolvePatternPreset, ey as resolveScriptFonts, ez as resolveSlideDirection, eA as resolveSocialProfile, eB as resolveTextStyle, eC as rootNodes, eD as scriptFontRole, eE as sliceNumberedItems, eF as slideCitations, eG as snapFontSizeDown, eH as snapFontSizeUp, eI as surfaceAltColor, eJ as tableGrid, eK as tableRowBoundaries, eL as textColorForFill, eM as textWidthMeasurer, eN as timelineMarkerShapes, eO as timelineTextColor, eP as tokenizeCode, eQ as visualReadingOrder, eR as walkCitationRuns, eS as wrapText } from './composition-QtS1rnhv.js';
|
|
2
2
|
export { d as CATALOG_REFERENCE_PATTERN, C as Catalog, b as CatalogKind, a as CatalogOptions, f as CatalogRecords, g as CatalogReferenceSite, O as OPFCatalogsOptionError, h as OPFUnresolvedReferenceError, R as RecordProvenance, i as ResolvedReference, U as UnresolvedReferenceDiagnostic, j as catalogGroupSource, k as catalogKinds, l as catalogRecords, m as catalogReferenceSites, p as parseReference, r as resolveReference, u as unresolvedReference } from './catalog-refs-CSHevLn1.js';
|
|
3
3
|
export { I as ChartComboSeries, C as ChartMapping, D as DataCellValue, d as DataColumn, e as DataDiagnostic, h as DataSourceRef, j as DataTableCell, k as DataTableHeader, n as Dataset, o as DatasetRef, R as ResolvedChartData, p as ResolvedTableData, q as chartNumber, s as formatDataNumber, t as fromExcelNumberFormat, u as inlineChartData, v as inlineDatasets, w as inlineTableData, x as isDatasetRef, y as isXYChartType, z as numberFormatError, A as resolveChartData, B as resolveTableData, F as tableCellDisplayValue, G as toExcelNumberFormat } from './chart-data-BnNqgnC-.js';
|
package/dist/composition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AUTO_LAYOUT, CAPTIONABLE_FIELDS, CAPTION_FONT_RATIO, CAPTION_MAX_RATIO, CATALOG_REFERENCE_PATTERN, CHART_HIGHLIGHT_MUTED_MIN_CONTRAST, CHART_HIGHLIGHT_MUTED_MIX, CHART_SERIES_MIN_DIFFERENCE, CHART_SERIES_MIN_LIGHTNESS_STEP, CHART_TYPES, CITATION_MARKER_RAISE, CITATION_MARKER_SCALE, CODE_HIGHLIGHT_LANGUAGES, CODE_HIGHLIGHT_MAX_LENGTH, 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, HEADING_AREAS, LANGUAGES, LAYOUT_BODY_KINDS, LOGO_SHAPES, MAX_COMPOSITION_DEPTH, MAX_NUMBERING_LEVELS, MAX_NUMBERING_VALUE, MAX_REGION_BLOCKS, MAX_ROMAN_VALUE, MAX_TEMPLATE_TRACKS, METRIC_TREND_MIN_CONTRAST, METRIC_TREND_SHAPES, NUMBERING_STYLES, NUMBERING_SUFFIXES, OPFCatalogsOptionError, OPFCompositionError, OPFLayoutTemplateError, OPFUnresolvedReferenceError, PATTERN_PRESETS, PATTERN_PRESET_ALIASES, PATTERN_TILE_SIZE, PICTURE_BULLET_SCALE, REGION_ANCHORS, REGION_FLOWS, REGION_KINDS, REGION_ROLES, RESERVED_REGION_NAMES, SOCIAL_PLATFORMS, SURFACE_ALT_MIN_CONTRAST, SURFACE_ALT_MIX, THEME_DESIGN_KEYS, TIMELINE_OUTLINE_MIN_CONTRAST, TIMELINE_STATUSES, TIMELINE_TEXT_MIN_CONTRAST, allocateRows, annotationText, bindRegions, blockKind, captionSettings, catalogGroupSource, catalogKinds, catalogRecords, catalogReferenceSites, chartColorForFill, chartHighlightColors, chartHighlightMarks, chartLabelText, chartNumber, chartOptionSupport, chartOptionTarget, chartPaletteForFill, citationMarkerText, codeHighlightBands, codeHighlightColors, codeHighlightLines, codeLineNumbers, codeLineRuns, codeSyntaxPalette, codeSyntaxPaletteForScheme, collectCitations, colorContrast, composeLayoutAreas, composeSlide, defaultSlideBackground, fitImage, fitList, fitRichText, fitText, formatChartLabelNumber, formatChartLabelPercent, formatDataNumber, formatFurnitureDate, formatListNumber, fromExcelNumberFormat, gridFlowShape, imageBackground, imageShape, inlineChartData, inlineDatasets, inlineTableData, intrinsicImageAspect, intrinsicImageSize, isDarkColor, isDatasetRef, isLayoutTemplate, isXYChartType, layoutCaption, layoutCode, layoutContent, layoutFootnotes, layoutFurniture, layoutMetric, layoutQuote, layoutRegion, layoutStructure, layoutTable, layoutTemplate, layoutTemplateIssues, layoutTimeline, layoutWatermark, listColumnBreaks, listNumbers, measureText, measureTextOutline, metricTrendColor, metricTrendMark, metricTrendPoints, normalizeHexColor, numberFormatError, numberingAtLevel, numberingStyleDraws, paragraphDirection, paragraphDirectionAt, parseReference, patternBitmap, patternRuns, physicalAlignment, placeTextLines, placedImageBlocks, referencesSlide, regionAccepts, regionRoleRank, resolveCanvasDimensions, resolveChartData, resolveChartOptions, resolveCodeLanguage, resolveColorRef, resolveColorRoles, resolveDesignHints, resolveFontFamilies, resolveLogo, resolveNumbering, resolvePatternPreset, resolveReference, resolveScriptFonts, resolveSlideDirection, resolveSocialProfile, resolveTableData, resolveTextStyle, rootNodes, scriptFontRole, sliceNumberedItems, slideCitations, snapFontSizeDown, snapFontSizeUp, surfaceAltColor, tableCellDisplayValue, tableGrid, tableRowBoundaries, textColorForFill, textWidthMeasurer, timelineMarkerShapes, timelineTextColor, toExcelNumberFormat, tokenizeCode, unresolvedReference, visualReadingOrder, walkCitationRuns, wrapText } from './chunk-
|
|
1
|
+
export { AUTO_LAYOUT, CAPTIONABLE_FIELDS, CAPTION_FONT_RATIO, CAPTION_MAX_RATIO, CATALOG_REFERENCE_PATTERN, CHART_HIGHLIGHT_MUTED_MIN_CONTRAST, CHART_HIGHLIGHT_MUTED_MIX, CHART_SERIES_MIN_DIFFERENCE, CHART_SERIES_MIN_LIGHTNESS_STEP, CHART_TYPES, CITATION_MARKER_RAISE, CITATION_MARKER_SCALE, CODE_HIGHLIGHT_LANGUAGES, CODE_HIGHLIGHT_MAX_LENGTH, 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, HEADING_AREAS, LANGUAGES, LAYOUT_BODY_KINDS, LOGO_SHAPES, MAX_COMPOSITION_DEPTH, MAX_NUMBERING_LEVELS, MAX_NUMBERING_VALUE, MAX_REGION_BLOCKS, MAX_ROMAN_VALUE, MAX_TEMPLATE_TRACKS, METRIC_TREND_MIN_CONTRAST, METRIC_TREND_SHAPES, NUMBERING_STYLES, NUMBERING_SUFFIXES, OPFCatalogsOptionError, OPFCompositionError, OPFLayoutTemplateError, OPFUnresolvedReferenceError, PATTERN_PRESETS, PATTERN_PRESET_ALIASES, PATTERN_TILE_SIZE, PICTURE_BULLET_SCALE, REGION_ANCHORS, REGION_FLOWS, REGION_KINDS, REGION_ROLES, RESERVED_REGION_NAMES, SOCIAL_PLATFORMS, SURFACE_ALT_MIN_CONTRAST, SURFACE_ALT_MIX, THEME_DESIGN_KEYS, TIMELINE_OUTLINE_MIN_CONTRAST, TIMELINE_STATUSES, TIMELINE_TEXT_MIN_CONTRAST, allocateRows, annotationText, bindRegions, blockKind, captionSettings, catalogGroupSource, catalogKinds, catalogRecords, catalogReferenceSites, chartColorForFill, chartHighlightColors, chartHighlightMarks, chartLabelText, chartNumber, chartOptionSupport, chartOptionTarget, chartPaletteForFill, citationMarkerText, codeHighlightBands, codeHighlightColors, codeHighlightLines, codeLineNumbers, codeLineRuns, codeSyntaxPalette, codeSyntaxPaletteForScheme, collectCitations, colorContrast, composeLayoutAreas, composeSlide, defaultSlideBackground, fitImage, fitList, fitRichText, fitText, formatChartLabelNumber, formatChartLabelPercent, formatDataNumber, formatFurnitureDate, formatListNumber, fromExcelNumberFormat, gridFlowShape, imageBackground, imageShape, inlineChartData, inlineDatasets, inlineTableData, intrinsicImageAspect, intrinsicImageSize, isDarkColor, isDatasetRef, isLayoutTemplate, isXYChartType, layoutCaption, layoutCode, layoutContent, layoutFootnotes, layoutFurniture, layoutMetric, layoutQuote, layoutRegion, layoutStructure, layoutTable, layoutTemplate, layoutTemplateIssues, layoutTimeline, layoutWatermark, listColumnBreaks, listNumbers, measureText, measureTextOutline, metricTrendColor, metricTrendMark, metricTrendPoints, normalizeHexColor, numberFormatError, numberingAtLevel, numberingStyleDraws, paragraphDirection, paragraphDirectionAt, parseReference, patternBitmap, patternRuns, physicalAlignment, placeTextLines, placedImageBlocks, referencesSlide, regionAccepts, regionRoleRank, resolveCanvasDimensions, resolveChartData, resolveChartOptions, resolveCodeLanguage, resolveColorRef, resolveColorRoles, resolveDesignHints, resolveFontFamilies, resolveLogo, resolveNumbering, resolvePatternPreset, resolveReference, resolveScriptFonts, resolveSlideDirection, resolveSocialProfile, resolveTableData, resolveTextStyle, rootNodes, scriptFontRole, sliceNumberedItems, slideCitations, snapFontSizeDown, snapFontSizeUp, surfaceAltColor, tableCellDisplayValue, tableGrid, tableRowBoundaries, textColorForFill, textWidthMeasurer, timelineMarkerShapes, timelineTextColor, toExcelNumberFormat, tokenizeCode, unresolvedReference, visualReadingOrder, walkCitationRuns, wrapText } from './chunk-K66K65UQ.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { convertFiles, deckFileFormat, exportFormatOf, openDeck, planConversion, readInput, saveDeck, writePlanned } from './chunk-NVNK5BLL.js';
|
|
2
|
+
import './chunk-OGVRAMHE.js';
|
|
3
|
+
import './chunk-XWDAXVFZ.js';
|
|
4
|
+
import './chunk-UJSAR6GF.js';
|
|
5
|
+
import './chunk-J4NYP5JC.js';
|
|
6
|
+
import './chunk-MSWNRD4C.js';
|
|
7
|
+
import './chunk-SPSAQKNB.js';
|
|
8
|
+
import './chunk-2XIMI2V5.js';
|
|
9
|
+
import './chunk-E4VBQW2Z.js';
|
|
10
|
+
import './chunk-QEISIGFD.js';
|
|
11
|
+
import './chunk-NXYHBBVV.js';
|
|
12
|
+
import './chunk-AXUY4BHG.js';
|
|
13
|
+
import './chunk-XGR5HL7R.js';
|
|
14
|
+
import './chunk-SZALQLZP.js';
|
|
15
|
+
import './chunk-E662FTHI.js';
|
|
16
|
+
import './chunk-5YTTTLL2.js';
|
|
17
|
+
import './chunk-K66K65UQ.js';
|
|
18
|
+
import './chunk-QOQATI37.js';
|
|
19
|
+
import './chunk-F7PLNWHQ.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as DeckFormat } from './deck-report-
|
|
1
|
+
import { D as DeckFormat } from './deck-report-4CNhJYk7.js';
|
|
2
2
|
import { a as Finding, c as FindingSeverity } from './finding-CT_f_vbD.js';
|
|
3
|
-
import { P as Presentation } from './presentation-
|
|
4
|
-
import { V as ValidationReport, f as ValidationChecks, a as ValidateOptions } from './validation-types-
|
|
3
|
+
import { P as Presentation } from './presentation-CKbo-axq.js';
|
|
4
|
+
import { V as ValidationReport, f as ValidationChecks, a as ValidateOptions } from './validation-types-CxbvWnKh.js';
|
|
5
5
|
import { C as Catalog } from './catalog-refs-CSHevLn1.js';
|
|
6
6
|
|
|
7
7
|
/** The base class: thrown for the request and the files (`node-only` in the browser build, `invalid-option`, `input-not-found`, `input-unreadable`, `invalid-presentation`, `output-exists`, `output-not-file`, `output-unwritable`). */
|
package/dist/convert.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PaginatedPage, a as PresentationPaginationOptions } from './pagination-
|
|
2
|
-
import './composition-
|
|
1
|
+
import { P as PaginatedPage, a as PresentationPaginationOptions } from './pagination-CAX6mHG6.js';
|
|
2
|
+
import './composition-QtS1rnhv.js';
|
|
3
3
|
import './catalog-refs-CSHevLn1.js';
|
|
4
4
|
import './chart-data-BnNqgnC-.js';
|
|
5
5
|
|
package/dist/convert.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
6
|
-
import { promotedRegionKeys, isDatasetRef, inlineTableData, visitContentPayloads, chartNumber } from './chunk-
|
|
7
|
-
import './chunk-
|
|
1
|
+
import { paginate, OPFPaginationError } from './chunk-XGR5HL7R.js';
|
|
2
|
+
import { parseQuoteLines, parseCodeFence, splitWhen, parseListLine, levelsFromIndents, fenceCode } from './chunk-SZALQLZP.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-E662FTHI.js';
|
|
4
|
+
export { OPFConversionError } from './chunk-E662FTHI.js';
|
|
5
|
+
import './chunk-5YTTTLL2.js';
|
|
6
|
+
import { promotedRegionKeys, isDatasetRef, inlineTableData, visitContentPayloads, chartNumber } from './chunk-K66K65UQ.js';
|
|
7
|
+
import './chunk-QOQATI37.js';
|
|
8
8
|
|
|
9
9
|
// src/convert/tables.ts
|
|
10
10
|
function cellOf(raw) {
|
package/dist/data.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Chart } from './presentation-
|
|
1
|
+
import { C as Chart } from './presentation-CKbo-axq.js';
|
|
2
2
|
export { C as ChartMapping, a as ChartNumberFix, b as ChartNumberFixOperation, c as ChartNumberFixOptions, D as DataCellValue, d as DataColumn, e as DataDiagnostic, f as DataDiagnosticCode, g as DataResolveOptions, h as DataSourceRef, i as DataStyledCell, j as DataTableCell, k as DataTableHeader, l as DataTableValue, m as DataTextRun, n as Dataset, o as DatasetRef, R as ResolvedChartData, p as ResolvedTableData, q as chartNumber, r as datasetDiagnostics, s as formatDataNumber, t as fromExcelNumberFormat, u as inlineChartData, v as inlineDatasets, w as inlineTableData, x as isDatasetRef, y as isXYChartType, z as numberFormatError, A as resolveChartData, B as resolveTableData, E as suggestChartNumberFix, F as tableCellDisplayValue, G as toExcelNumberFormat, H as unusedDatasets } from './chart-data-BnNqgnC-.js';
|
|
3
3
|
|
|
4
4
|
type DataCell = string | number | boolean | null;
|
package/dist/data.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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-J4NYP5JC.js';
|
|
2
|
+
export { chartNumber, datasetDiagnostics, formatDataNumber, fromExcelNumberFormat, inlineChartData, inlineDatasets, inlineTableData, isDatasetRef, isXYChartType, numberFormatError, resolveChartData, resolveTableData, suggestChartNumberFix, tableCellDisplayValue, toExcelNumberFormat, unusedDatasets } from './chunk-K66K65UQ.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as Catalog } from './catalog-refs-CSHevLn1.js';
|
|
2
|
-
import { P as Presentation } from './presentation-
|
|
3
|
-
import { V as ValidationReport, a as ValidateOptions } from './validation-types-
|
|
2
|
+
import { P as Presentation } from './presentation-CKbo-axq.js';
|
|
3
|
+
import { V as ValidationReport, a as ValidateOptions } from './validation-types-CxbvWnKh.js';
|
|
4
4
|
|
|
5
5
|
/** The serializations of a deck: `json` (canonical), `yaml` (`.opf.yaml`) and `markdown` (`.opf.md`). */
|
|
6
6
|
type DeckFormat = "json" | "yaml" | "markdown";
|
package/dist/deck.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { D as DeckFormat, P as ParseOptions } from './deck-report-
|
|
2
|
-
export { a as DECK_FORMATS, d as deckFormatOf } from './deck-report-
|
|
3
|
-
import { P as Presentation } from './presentation-
|
|
1
|
+
import { D as DeckFormat, P as ParseOptions } from './deck-report-4CNhJYk7.js';
|
|
2
|
+
export { a as DECK_FORMATS, d as deckFormatOf } from './deck-report-4CNhJYk7.js';
|
|
3
|
+
import { P as Presentation } from './presentation-CKbo-axq.js';
|
|
4
4
|
import './catalog-refs-CSHevLn1.js';
|
|
5
|
-
import './validation-types-
|
|
6
|
-
import './composition-
|
|
5
|
+
import './validation-types-CxbvWnKh.js';
|
|
6
|
+
import './composition-QtS1rnhv.js';
|
|
7
7
|
import './chart-data-BnNqgnC-.js';
|
|
8
8
|
import './finding-CT_f_vbD.js';
|
|
9
9
|
import './json-BFSdESOE.js';
|
package/dist/deck.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
1
|
+
export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-MSWNRD4C.js';
|
|
2
|
+
import './chunk-SPSAQKNB.js';
|
|
3
|
+
import './chunk-2XIMI2V5.js';
|
|
4
|
+
import './chunk-E4VBQW2Z.js';
|
|
5
|
+
import './chunk-AXUY4BHG.js';
|
|
6
|
+
import './chunk-SZALQLZP.js';
|
|
7
|
+
import './chunk-E662FTHI.js';
|
|
8
|
+
import './chunk-5YTTTLL2.js';
|
|
9
|
+
import './chunk-K66K65UQ.js';
|
|
10
|
+
import './chunk-QOQATI37.js';
|
package/dist/diff.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { categoryOf, describeValue, diff, formatDiffReport, matchArrays, merge, similarity } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
1
|
+
export { categoryOf, describeValue, diff, formatDiffReport, matchArrays, merge, similarity } from './chunk-QEISIGFD.js';
|
|
2
|
+
import './chunk-NXYHBBVV.js';
|
|
3
|
+
import './chunk-5YTTTLL2.js';
|
|
4
|
+
import './chunk-K66K65UQ.js';
|
|
5
|
+
import './chunk-QOQATI37.js';
|