@openpresentation/opf 0.22.2 → 0.24.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-X3PQMMAY.js → chunk-33OBLTKZ.js} +1 -1
- package/dist/{chunk-SPCONMIY.js → chunk-4I3XPRAO.js} +1 -1
- package/dist/{chunk-3T7MNRBY.js → chunk-5PHLSH4E.js} +1 -1
- package/dist/{chunk-MAJHCGOW.js → chunk-6WDLGY25.js} +4 -4
- package/dist/{chunk-3UAVON3O.js → chunk-BN3A5TVI.js} +194 -4
- package/dist/{chunk-23MOKE4B.js → chunk-F6CDJTSE.js} +43 -9
- package/dist/{chunk-BULGAKBY.js → chunk-H5GFPQAS.js} +2 -2
- package/dist/{chunk-SBWIZSPB.js → chunk-H77YYHPL.js} +5 -5
- package/dist/{chunk-MLMTXXM4.js → chunk-JHSTEBPC.js} +5 -5
- package/dist/{chunk-VKNFZEMG.js → chunk-N3ZPLGK5.js} +137 -16
- package/dist/{chunk-KUNXFN7B.js → chunk-RE4F2USA.js} +1 -1
- package/dist/{chunk-MG34DCDB.js → chunk-RP2KIC7W.js} +2 -2
- package/dist/{chunk-YSJRBRHB.js → chunk-RQACV2FR.js} +1 -1
- package/dist/{chunk-2SENTA2R.js → chunk-RXKXY75X.js} +1 -1
- package/dist/{chunk-YUIEWE5B.js → chunk-UIKXX5EX.js} +2 -2
- package/dist/{chunk-AHKRJSCF.js → chunk-VKPFDUR5.js} +6 -6
- package/dist/{chunk-7XNAMCGT.js → chunk-ZFNKRZZQ.js} +6 -6
- package/dist/{composition-CkHn6JrM.d.ts → composition-qX-igJe5.d.ts} +147 -15
- package/dist/composition.d.ts +1 -1
- package/dist/composition.js +1 -1
- package/dist/{conversion-C_MOkYGH.d.ts → conversion-O0XSW0ZV.d.ts} +5 -5
- package/dist/conversion-XITF66VJ.js +19 -0
- 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-vnWmXBjq.d.ts → deck-report-CJ6gd_6-.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 +9 -9
- package/dist/examples.d.ts +1 -1
- package/dist/examples.js +5277 -839
- 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-C4jzAtFy.d.ts → pagination-LiWxhbsz.d.ts} +3 -1
- package/dist/pagination.d.ts +2 -2
- package/dist/pagination.js +4 -4
- package/dist/patch.js +4 -4
- package/dist/{presentation-fN6tORPZ.d.ts → presentation-Dn-fm0iY.d.ts} +35 -0
- package/dist/schemas.d.ts +4 -0
- package/dist/schemas.js +1 -1
- package/dist/spec/schemas/opf.schema.json +41 -1
- package/dist/spec/schemas/theme.schema.json +42 -3
- package/dist/types.d.ts +41 -1
- package/dist/{validation-types-B21fZfb2.d.ts → validation-types-CzPKoKWo.d.ts} +1 -1
- package/dist/{validator-Cflv4F9e.d.ts → validator-BuAV_HUo.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 +6 -6
- package/dist/conversion-LBQMY7LX.js +0 -19
package/dist/format.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { OPFFormatError, format, isFormatted, sortPresentationKeys } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { OPFFormatError, format, isFormatted, sortPresentationKeys } from './chunk-33OBLTKZ.js';
|
|
2
|
+
import './chunk-BN3A5TVI.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
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 { C as ConvertInput, a as ConvertOptions, b as ConvertResult, c as ConvertFormat, O as OpenOptions, S as SaveOptions, d as SaveResult } from './conversion-
|
|
3
|
-
export { e as ConvertedFile, E as ExportFormat, F as FontsHandle, f as OPFApiError, g as OPFExportError, h as OPFImportError, i as SlideSelection, p as parseSlideSelection } from './conversion-
|
|
4
|
-
import { v as validate$1 } from './validator-
|
|
5
|
-
export { C as CATALOG_SCHEMA, a as CatalogDisplayKind, b as CatalogRecordKind, D as DEFAULT_VALIDATION_THRESHOLDS, O as OPFValidationError, c as assertValid, d as assertValidCatalogRecord, e as catalogDisplayKinds, f as catalogSchemaNames, g as findValidationRule, h as validateCatalogRecord, i as validationRules } from './validator-
|
|
6
|
-
import { R as ResolveVariablesOptions, h as VariableDiagnostic } from './validation-types-
|
|
7
|
-
export { B as BuiltinVariableInfo, C as Contract, D as DEFAULT_VARIABLE_DATE_FORMAT, O as OPFVariableError, i as ResolveVariablesResult, j as VARIABLE_KINDS, d as ValidateFonts, a as ValidateOptions, e as ValidationCategory, f as ValidationChecks, V as ValidationReport, g as ValidationRuleCost, c as ValidationRuleInfo, b as ValidationThresholds, k as VariableDeclaration, l as VariableDiagnosticCode, m as VariableDiagnosticSeverity, n as VariableInfo, o as VariableKind, p as VariableUse, q as VariableUseForm, r as VariableValues, s as coerceVariableValue, t as formatVariableNumber, u as hasContentVariables, w as isTemplate, x as listBuiltinVariables, y as listVariables, z as resolveVariables, v as validationCategories, A as variableDeclarations } from './validation-types-
|
|
8
|
-
export { a as CHART_TYPES, C as ComposeSlideOptions, E as ENGINE_DEFAULT_CHART_TYPES, b as ENGINE_DEFAULT_COLOR_SCHEME, c as ENGINE_DEFAULT_FONT_SCHEME, d as ENGINE_DEFAULT_THEME, e as FontFamilies, F as Fonts, f as LANGUAGES, g as LOGO_SHAPES, h as LanguageFamilyName, i as LanguageVocabulary, L as LayoutDiagnostic, j as LogoShape, k as LogoVariant, M as MeasureTextWidth,
|
|
2
|
+
import { C as ConvertInput, a as ConvertOptions, b as ConvertResult, c as ConvertFormat, O as OpenOptions, S as SaveOptions, d as SaveResult } from './conversion-O0XSW0ZV.js';
|
|
3
|
+
export { e as ConvertedFile, E as ExportFormat, F as FontsHandle, f as OPFApiError, g as OPFExportError, h as OPFImportError, i as SlideSelection, p as parseSlideSelection } from './conversion-O0XSW0ZV.js';
|
|
4
|
+
import { v as validate$1 } from './validator-BuAV_HUo.js';
|
|
5
|
+
export { C as CATALOG_SCHEMA, a as CatalogDisplayKind, b as CatalogRecordKind, D as DEFAULT_VALIDATION_THRESHOLDS, O as OPFValidationError, c as assertValid, d as assertValidCatalogRecord, e as catalogDisplayKinds, f as catalogSchemaNames, g as findValidationRule, h as validateCatalogRecord, i as validationRules } from './validator-BuAV_HUo.js';
|
|
6
|
+
import { R as ResolveVariablesOptions, h as VariableDiagnostic } from './validation-types-CzPKoKWo.js';
|
|
7
|
+
export { B as BuiltinVariableInfo, C as Contract, D as DEFAULT_VARIABLE_DATE_FORMAT, O as OPFVariableError, i as ResolveVariablesResult, j as VARIABLE_KINDS, d as ValidateFonts, a as ValidateOptions, e as ValidationCategory, f as ValidationChecks, V as ValidationReport, g as ValidationRuleCost, c as ValidationRuleInfo, b as ValidationThresholds, k as VariableDeclaration, l as VariableDiagnosticCode, m as VariableDiagnosticSeverity, n as VariableInfo, o as VariableKind, p as VariableUse, q as VariableUseForm, r as VariableValues, s as coerceVariableValue, t as formatVariableNumber, u as hasContentVariables, w as isTemplate, x as listBuiltinVariables, y as listVariables, z as resolveVariables, v as validationCategories, A as variableDeclarations } from './validation-types-CzPKoKWo.js';
|
|
8
|
+
export { a as CHART_TYPES, C as ComposeSlideOptions, E as ENGINE_DEFAULT_CHART_TYPES, b as ENGINE_DEFAULT_COLOR_SCHEME, c as ENGINE_DEFAULT_FONT_SCHEME, d as ENGINE_DEFAULT_THEME, e as FontFamilies, F as Fonts, f as LANGUAGES, g as LOGO_SHAPES, h as LanguageFamilyName, i as LanguageVocabulary, L as LayoutDiagnostic, j as LogoShape, k as LogoVariant, M as MeasureTextWidth, l as ResolveLogoOptions, m as ResolvedLogo, S as SOCIAL_PLATFORMS, n as SocialPlatformVocabulary, T as TextMeasurement, o as TextStyle, p as normalizeLanguageFamily } from './composition-qX-igJe5.js';
|
|
9
9
|
export { SpecFileEntry, SpecFileKind, SpecFilePath, specFileEntries, specFileKinds, specFilePaths } from './spec-files.js';
|
|
10
|
-
import { P as Presentation } from './presentation-
|
|
10
|
+
import { P as Presentation } from './presentation-Dn-fm0iY.js';
|
|
11
11
|
export { Audience, ChartType, ColorScheme, FontScheme, Language, Layout, Narrative, Purpose, SocialPlatform, Theme, Tone } from './types.js';
|
|
12
12
|
import { b as CatalogKind, U as UnresolvedReferenceDiagnostic, a as CatalogOptions, C as Catalog, R as RecordProvenance } from './catalog-refs-CSHevLn1.js';
|
|
13
13
|
export { c as CATALOG_GROUP_PATTERN, d as CATALOG_REFERENCE_PATTERN, e as CatalogRecordMap, f as CatalogRecords, g as CatalogReferenceSite, O as OPFCatalogsOptionError, h as OPFUnresolvedReferenceError, i as ResolvedReference, 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';
|
|
14
14
|
import { a as Finding, J as JsonPatchOperation } from './finding-l9dlQ2NF.js';
|
|
15
15
|
export { d as FindingCategory, e as FindingFix, f as FindingFocus, b as FindingLocation, F as FindingReport, c as FindingSeverity, g as FindingSuggestion, V as ValidationIssue } from './finding-l9dlQ2NF.js';
|
|
16
|
-
import { p as paginate$1 } from './pagination-
|
|
17
|
-
export { O as OPFPaginationError, P as PaginatedPage, b as PaginationMapping, c as PaginationOptions, d as PaginationResult, a as PresentationPaginationOptions, e as PresentationPaginationResult, S as SlideContext, f as SlideContextDiagnostic, g as SlideContextOptions, h as paginateSlide, r as resolveSlideContext } from './pagination-
|
|
16
|
+
import { p as paginate$1 } from './pagination-LiWxhbsz.js';
|
|
17
|
+
export { O as OPFPaginationError, P as PaginatedPage, b as PaginationMapping, c as PaginationOptions, d as PaginationResult, a as PresentationPaginationOptions, e as PresentationPaginationResult, S as SlideContext, f as SlideContextDiagnostic, g as SlideContextOptions, h as paginateSlide, r as resolveSlideContext } from './pagination-LiWxhbsz.js';
|
|
18
18
|
export { ApplyPatchOptions, OPFPatchError, OPFPatchValidationError, PatchResult, applyPatch } from './patch.js';
|
|
19
19
|
export { DiffOptions, MergeConflict, MergeOptions, MergeResult, PresentationDiff, diff, merge } from './diff.js';
|
|
20
20
|
export { FormatOptions, OPFFormatError, format } from './format.js';
|
|
@@ -23,7 +23,7 @@ export { StringifyOptions, parse, stringify } from './deck.js';
|
|
|
23
23
|
export { DataCell, DataImportOptions, ImportedChart, ImportedChartData, ImportedChartType, ImportedTable, IngestOptions, OPFDataImportError, TabularData, ingest, parseTabularData } from './data.js';
|
|
24
24
|
export { I as ChartComboSeries, 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';
|
|
25
25
|
export { FONT_POLICY, FontAvailability, FontAvailabilityCode, FontAvailabilityDiagnostic, FontLicenseClass, FontPolicyDecision, FontPolicyEntry, FontPolicyTable, FontReplacement, FontReplacementCompatibility, FontReplacementMeasurement, applyFontPolicyDecisions, fontAvailabilityDiagnostics, fontPolicyFor } from './font-policy.js';
|
|
26
|
-
export { a as DECK_FORMATS, D as DeckFormat, P as ParseOptions, d as deckFormatOf } from './deck-report-
|
|
26
|
+
export { a as DECK_FORMATS, D as DeckFormat, P as ParseOptions, d as deckFormatOf } from './deck-report-CJ6gd_6-.js';
|
|
27
27
|
import './json-BFSdESOE.js';
|
|
28
28
|
|
|
29
29
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
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-RP2KIC7W.js';
|
|
2
|
+
import { stats, embed, edit, OPFApiError, asApiError } from './chunk-6WDLGY25.js';
|
|
3
|
+
export { OPFApiError, OPFExportError, OPFImportError, OPFMoveToCustomError, copySlides, fill, fillRecords, localAssetSources, moveToCustom, parseSlideSelection, sameRecord, updateFromCatalog } from './chunk-6WDLGY25.js';
|
|
4
4
|
export { specFileEntries, specFileKinds, specFilePaths } from './chunk-UJSAR6GF.js';
|
|
5
|
-
export { OPFDataImportError, ingest, parseTabularData } from './chunk-
|
|
6
|
-
export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-
|
|
7
|
-
export { fromMarkdown, toMarkdown } from './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
export { OPFMarkdownError } from './chunk-
|
|
10
|
-
export { diff, merge } from './chunk-
|
|
11
|
-
export { OPFPatchError, OPFPatchValidationError, applyPatch } from './chunk-
|
|
12
|
-
export { OPFFormatError, format } from './chunk-
|
|
13
|
-
import { paginate } from './chunk-
|
|
14
|
-
export { OPFPaginationError, paginateSlide } from './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
17
|
-
import { validate, OPFValidationError } from './chunk-
|
|
18
|
-
export { CATALOG_SCHEMA, DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogSchemaNames, findValidationRule, resolveSlideContext, validateCatalogRecord, validationCategories, validationRules } from './chunk-
|
|
19
|
-
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-
|
|
20
|
-
export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-
|
|
5
|
+
export { OPFDataImportError, ingest, parseTabularData } from './chunk-4I3XPRAO.js';
|
|
6
|
+
export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-JHSTEBPC.js';
|
|
7
|
+
export { fromMarkdown, toMarkdown } from './chunk-H77YYHPL.js';
|
|
8
|
+
import './chunk-ZFNKRZZQ.js';
|
|
9
|
+
export { OPFMarkdownError } from './chunk-5PHLSH4E.js';
|
|
10
|
+
export { diff, merge } from './chunk-H5GFPQAS.js';
|
|
11
|
+
export { OPFPatchError, OPFPatchValidationError, applyPatch } from './chunk-RQACV2FR.js';
|
|
12
|
+
export { OPFFormatError, format } from './chunk-33OBLTKZ.js';
|
|
13
|
+
import { paginate } from './chunk-UIKXX5EX.js';
|
|
14
|
+
export { OPFPaginationError, paginateSlide } from './chunk-UIKXX5EX.js';
|
|
15
|
+
import './chunk-RE4F2USA.js';
|
|
16
|
+
import './chunk-RXKXY75X.js';
|
|
17
|
+
import { validate, OPFValidationError } from './chunk-F6CDJTSE.js';
|
|
18
|
+
export { CATALOG_SCHEMA, DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogSchemaNames, findValidationRule, resolveSlideContext, validateCatalogRecord, validationCategories, validationRules } from './chunk-F6CDJTSE.js';
|
|
19
|
+
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-N3ZPLGK5.js';
|
|
20
|
+
export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-BN3A5TVI.js';
|
|
21
21
|
export { FONT_POLICY, applyFontPolicyDecisions, fontAvailabilityDiagnostics, fontPolicyFor } from './chunk-F7PLNWHQ.js';
|
|
22
22
|
|
|
23
23
|
// src/index.ts
|
|
@@ -31,7 +31,7 @@ var stats2 = (presentation2, options) => stats(presentation2, withDefaultCatalog
|
|
|
31
31
|
var paginate2 = (input, options) => paginate(input, withDefaultCatalog(options));
|
|
32
32
|
var embed2 = (document, options) => embed(document, withDefaultCatalog(options));
|
|
33
33
|
var edit2 = (deck, patch, options) => edit(deck, patch, withDefaultCatalog(options));
|
|
34
|
-
var engine = () => import('./conversion-
|
|
34
|
+
var engine = () => import('./conversion-XITF66VJ.js');
|
|
35
35
|
var rethrow = (error, fallback) => {
|
|
36
36
|
if (error instanceof OPFValidationError) throw error;
|
|
37
37
|
throw asApiError(OPFApiError, error, fallback);
|
package/dist/markdown.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { C as Catalog } from './catalog-refs-CSHevLn1.js';
|
|
2
|
-
import { P as Presentation } from './presentation-
|
|
2
|
+
import { P as Presentation } from './presentation-Dn-fm0iY.js';
|
|
3
3
|
import { a as Finding, b as FindingLocation } from './finding-l9dlQ2NF.js';
|
|
4
|
-
import { a as ValidateOptions, V as ValidationReport } from './validation-types-
|
|
5
|
-
import './composition-
|
|
4
|
+
import { a as ValidateOptions, V as ValidationReport } from './validation-types-CzPKoKWo.js';
|
|
5
|
+
import './composition-qX-igJe5.js';
|
|
6
6
|
import './chart-data-BnNqgnC-.js';
|
|
7
7
|
import './json-BFSdESOE.js';
|
|
8
8
|
|
package/dist/markdown.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { fromMarkdown, toMarkdown } from './chunk-
|
|
2
|
-
export { OPFMarkdownError } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
1
|
+
export { fromMarkdown, toMarkdown } from './chunk-H77YYHPL.js';
|
|
2
|
+
export { OPFMarkdownError } from './chunk-5PHLSH4E.js';
|
|
3
|
+
import './chunk-RE4F2USA.js';
|
|
4
|
+
import './chunk-RXKXY75X.js';
|
|
5
|
+
import './chunk-F6CDJTSE.js';
|
|
6
|
+
import './chunk-N3ZPLGK5.js';
|
|
7
|
+
import './chunk-BN3A5TVI.js';
|
package/dist/node-engine.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { b as DeckReport, c as DeckReportOptions, r as readDeckReport } from './deck-report-
|
|
2
|
-
import { F as FontsHandle, j as EmbeddedFace, R as Renderer, k as Reporter, P as Peer, l as PptxModule, f as OPFApiError } from './conversion-
|
|
3
|
-
export { m as ConversionPlan, D as Diagnostic, n as EXPORT_FORMATS, o as EXPORT_TEXT, q as ExportContext, r as ExportFile, s as ExportFontSummary, E as ExportFormat, t as ExportOptions, u as ExportResult, v as ExportRun, w as ExportText, I as ImportOptions, x as ImportResult, g as OPFExportError, h as OPFImportError, y as PEER_RANGES, z as PPTX_PACKAGE, A as PreparedExport, B as RENDER_EXTRAS, G as RENDER_PACKAGE, H as ReportFinding, J as ResolvedExportOptions, i as SlideSelection, K as Source, V as VERSIONS, L as asApiError, M as assetRoot, N as checkDate, Q as checkOptions, T as checkRenamedOptions, U as checkScale, W as deckFileFormat, X as exportFormatOf, Y as finishReport, Z as importPresentation, _ as loadPptx, $ as loadRenderer, a0 as locatePackage, a1 as missingPeerFrom, p as parseSlideSelection, a2 as planConversion, a3 as prepareExport, a4 as reaches, a5 as readInput, a6 as reportThrown, a7 as resolveExportOptions, a8 as runExport, a9 as runPreparedExport, aa as writePlanned } from './conversion-
|
|
1
|
+
export { b as DeckReport, c as DeckReportOptions, r as readDeckReport } from './deck-report-CJ6gd_6-.js';
|
|
2
|
+
import { F as FontsHandle, j as EmbeddedFace, R as Renderer, k as Reporter, P as Peer, l as PptxModule, f as OPFApiError } from './conversion-O0XSW0ZV.js';
|
|
3
|
+
export { m as ConversionPlan, D as Diagnostic, n as EXPORT_FORMATS, o as EXPORT_TEXT, q as ExportContext, r as ExportFile, s as ExportFontSummary, E as ExportFormat, t as ExportOptions, u as ExportResult, v as ExportRun, w as ExportText, I as ImportOptions, x as ImportResult, g as OPFExportError, h as OPFImportError, y as PEER_RANGES, z as PPTX_PACKAGE, A as PreparedExport, B as RENDER_EXTRAS, G as RENDER_PACKAGE, H as ReportFinding, J as ResolvedExportOptions, i as SlideSelection, K as Source, V as VERSIONS, L as asApiError, M as assetRoot, N as checkDate, Q as checkOptions, T as checkRenamedOptions, U as checkScale, W as deckFileFormat, X as exportFormatOf, Y as finishReport, Z as importPresentation, _ as loadPptx, $ as loadRenderer, a0 as locatePackage, a1 as missingPeerFrom, p as parseSlideSelection, a2 as planConversion, a3 as prepareExport, a4 as reaches, a5 as readInput, a6 as reportThrown, a7 as resolveExportOptions, a8 as runExport, a9 as runPreparedExport, aa as writePlanned } from './conversion-O0XSW0ZV.js';
|
|
4
4
|
import { C as Catalog } from './catalog-refs-CSHevLn1.js';
|
|
5
|
-
import { e as PresentationPaginationResult } from './pagination-
|
|
6
|
-
import './presentation-
|
|
7
|
-
import './validation-types-
|
|
8
|
-
import './composition-
|
|
5
|
+
import { e as PresentationPaginationResult } from './pagination-LiWxhbsz.js';
|
|
6
|
+
import './presentation-Dn-fm0iY.js';
|
|
7
|
+
import './validation-types-CzPKoKWo.js';
|
|
8
|
+
import './composition-qX-igJe5.js';
|
|
9
9
|
import './chart-data-BnNqgnC-.js';
|
|
10
10
|
import './finding-l9dlQ2NF.js';
|
|
11
11
|
import './json-BFSdESOE.js';
|
package/dist/node-engine.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
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-VKPFDUR5.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-VKPFDUR5.js';
|
|
3
|
+
import { defaultCatalogs } from './chunk-RP2KIC7W.js';
|
|
4
|
+
export { defaultCatalogs, galleryMismatch } from './chunk-RP2KIC7W.js';
|
|
5
|
+
import { OPFApiError } from './chunk-6WDLGY25.js';
|
|
6
|
+
export { OPFApiError, OPFExportError, OPFImportError, asApiError, parseSlideSelection } from './chunk-6WDLGY25.js';
|
|
7
7
|
import './chunk-UJSAR6GF.js';
|
|
8
|
-
import './chunk-
|
|
9
|
-
export { readDeckReport } from './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import { paginate } from './chunk-
|
|
17
|
-
import './chunk-
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
8
|
+
import './chunk-4I3XPRAO.js';
|
|
9
|
+
export { readDeckReport } from './chunk-JHSTEBPC.js';
|
|
10
|
+
import './chunk-H77YYHPL.js';
|
|
11
|
+
import './chunk-ZFNKRZZQ.js';
|
|
12
|
+
import './chunk-5PHLSH4E.js';
|
|
13
|
+
import './chunk-H5GFPQAS.js';
|
|
14
|
+
import './chunk-RQACV2FR.js';
|
|
15
|
+
import './chunk-33OBLTKZ.js';
|
|
16
|
+
import { paginate } from './chunk-UIKXX5EX.js';
|
|
17
|
+
import './chunk-RE4F2USA.js';
|
|
18
|
+
import './chunk-RXKXY75X.js';
|
|
19
|
+
import './chunk-F6CDJTSE.js';
|
|
20
|
+
import './chunk-N3ZPLGK5.js';
|
|
21
|
+
import './chunk-BN3A5TVI.js';
|
|
22
22
|
import './chunk-F7PLNWHQ.js';
|
|
23
23
|
|
|
24
24
|
// src/node/paginate.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ComposeSlideOptions, F as Fonts, L as LayoutDiagnostic } from './composition-
|
|
1
|
+
import { C as ComposeSlideOptions, R as ResolvedColorRoles, F as Fonts, L as LayoutDiagnostic } from './composition-qX-igJe5.js';
|
|
2
2
|
import { U as UnresolvedReferenceDiagnostic, R as RecordProvenance, a as CatalogOptions, C as Catalog } from './catalog-refs-CSHevLn1.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -38,6 +38,8 @@ interface SlideContext {
|
|
|
38
38
|
resolved: {
|
|
39
39
|
theme: Rec;
|
|
40
40
|
colorScheme: Rec;
|
|
41
|
+
/** RR-96: the slide's color roles (its variant's map over the scheme, the accents in order, and the scheme-derived neutrals), as the engines and the validator resolve them. */
|
|
42
|
+
roles: ResolvedColorRoles;
|
|
41
43
|
fontScheme: Rec;
|
|
42
44
|
/** Where the font scheme reference is written, dotted. */
|
|
43
45
|
fontSchemePath: string;
|
package/dist/pagination.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './composition-
|
|
1
|
+
import './composition-qX-igJe5.js';
|
|
2
2
|
import './catalog-refs-CSHevLn1.js';
|
|
3
|
-
export { O as OPFPaginationError, P as PaginatedPage, b as PaginationMapping, c as PaginationOptions, d as PaginationResult, a as PresentationPaginationOptions, e as PresentationPaginationResult, p as paginate, h as paginateSlide } from './pagination-
|
|
3
|
+
export { O as OPFPaginationError, P as PaginatedPage, b as PaginationMapping, c as PaginationOptions, d as PaginationResult, a as PresentationPaginationOptions, e as PresentationPaginationResult, p as paginate, h as paginateSlide } from './pagination-LiWxhbsz.js';
|
|
4
4
|
import './chart-data-BnNqgnC-.js';
|
package/dist/pagination.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { OPFPaginationError, paginate, paginateSlide } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { OPFPaginationError, paginate, paginateSlide } from './chunk-UIKXX5EX.js';
|
|
2
|
+
import './chunk-F6CDJTSE.js';
|
|
3
|
+
import './chunk-N3ZPLGK5.js';
|
|
4
|
+
import './chunk-BN3A5TVI.js';
|
package/dist/patch.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { OPFPatchError, OPFPatchValidationError, applyPatch, applyPatchWithInverse, escapePointerToken, formatPointer, getAtPointer, hasPointer, invertPatch, jsonEqual, normalizePatch, parsePointer, pointerFromPath, readPointer, splitPointer, unescapePointerToken } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { OPFPatchError, OPFPatchValidationError, applyPatch, applyPatchWithInverse, escapePointerToken, formatPointer, getAtPointer, hasPointer, invertPatch, jsonEqual, normalizePatch, parsePointer, pointerFromPath, readPointer, splitPointer, unescapePointerToken } from './chunk-RQACV2FR.js';
|
|
2
|
+
import './chunk-F6CDJTSE.js';
|
|
3
|
+
import './chunk-N3ZPLGK5.js';
|
|
4
|
+
import './chunk-BN3A5TVI.js';
|
|
@@ -1177,6 +1177,10 @@ interface Design {
|
|
|
1177
1177
|
* Default slide background applied across the deck unless overridden on a slide (slides.N.design.background); the resolved theme's background is the fallback. A background is the only canvas fill and never moves content. String shorthand accepts theme slots ('light1', 'light2', 'dark1', 'dark2'), hex colors, or an image source starting with 'asset:', 'https://', 'data:', './' or '../' (a cover image); object forms support theme, solid, gradient, image, or pattern fills.
|
|
1178
1178
|
*/
|
|
1179
1179
|
background?: (BackgroundShortcut | Background);
|
|
1180
|
+
/**
|
|
1181
|
+
* Optional color variant, as a background slot ('light1', 'light2', 'dark1', 'dark2'; the same as { background: slot }) or the object form, which is needed only for an accent order: which slot of the color scheme is the slide background (and so which are the text and the alternate surface), and optionally the order of the accents. A variant is a mapping over the same twelve-slot scheme, as PowerPoint's color map is, never a second scheme. Without it the background decides: a theme-slot background ('dark1', { type: 'theme', slot }) is the variant of that slot, a picture or gradient takes its 'tone', and any other background picks light or dark by its luminance. A slide's variant replaces the deck's whole, including its accent order.
|
|
1182
|
+
*/
|
|
1183
|
+
variant?: (ThemeBackgroundSlot | ColorVariant);
|
|
1180
1184
|
/**
|
|
1181
1185
|
* Which logo covers, section dividers and picture bullets draw. Logos live on the organization (Organization.logo); without this field covers and sections draw the primary organization's full logo and picture bullets its icon. A logo reference overrides that: 'var:organization.beta.logo' draws organization beta's logo, and a reference that names a shape ('var:organization.logo.wordmark') draws that shape everywhere this field applies. false draws no logo. A slide's design.logo overrides the deck's; absence inherits. An override naming an organization without a logo draws nothing (validation warns). Placement (reference engines, vetoable): on a cover or section slide (no body payload on a heading-only layout such as title, title-subtitle or section-divider, or no layout) the logo is drawn at the top-left of the free area, inside the slide padding and below any header furniture, in a box 56 reference pixels tall and at most four times as wide; the tag/title/subtitle group then centers in the remaining span. Content slides never get an automatic logo; a header or footer zone places one with image: 'var:organization.logo.icon'. composeSlide returns the cover box as geometry.logo.
|
|
1182
1186
|
*/
|
|
@@ -1463,6 +1467,10 @@ interface SolidBackground {
|
|
|
1463
1467
|
* via the `definition` "GradientBackground".
|
|
1464
1468
|
*/
|
|
1465
1469
|
interface GradientBackground {
|
|
1470
|
+
/**
|
|
1471
|
+
* Whether the background is dark or light, which picks the color map (dark1 or light1) so text, lines and neutrals read on it. Without a tone a picture or gradient takes the deck's variant, else counts as light.
|
|
1472
|
+
*/
|
|
1473
|
+
tone?: ("dark" | "light");
|
|
1466
1474
|
/**
|
|
1467
1475
|
* Fixed gradient background fill.
|
|
1468
1476
|
*/
|
|
@@ -1532,6 +1540,10 @@ interface GradientBackground {
|
|
|
1532
1540
|
* via the `definition` "ImageBackground".
|
|
1533
1541
|
*/
|
|
1534
1542
|
interface ImageBackground {
|
|
1543
|
+
/**
|
|
1544
|
+
* Whether the background is dark or light, which picks the color map (dark1 or light1) so text, lines and neutrals read on it. Without a tone a picture or gradient takes the deck's variant, else counts as light.
|
|
1545
|
+
*/
|
|
1546
|
+
tone?: ("dark" | "light");
|
|
1535
1547
|
/**
|
|
1536
1548
|
* Picture background.
|
|
1537
1549
|
*/
|
|
@@ -1637,6 +1649,25 @@ interface PatternBackground {
|
|
|
1637
1649
|
opacity?: number;
|
|
1638
1650
|
[k: string]: unknown;
|
|
1639
1651
|
}
|
|
1652
|
+
/**
|
|
1653
|
+
* A variant of the deck's single color scheme, as a mapping over its twelve slots (PowerPoint's clrMap): 'background' is the slot the slide background and the role bg1 take, and with it the other roles: light1 maps bg1 = light1, tx1 = dark1, bg2 = light2, tx2 = dark2; dark1 maps bg1 = dark1, tx1 = light1, bg2 = dark2, tx2 = light2; light2 and dark2 make that slot both the background and the alternate surface (light2: bg1 = bg2 = light2, tx1 = dark1, tx2 = dark2; dark2: bg1 = bg2 = dark2, tx1 = light1, tx2 = light2), which is how a slide with that theme background has always been drawn. Text, secondary text, the card surface and every neutral (borders, gridlines, chart axis, code panel) follow the map. The PowerPoint export writes it as the master's clrMap, or a slide's clrMapOvr.
|
|
1654
|
+
*
|
|
1655
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
1656
|
+
* via the `definition` "ColorVariant".
|
|
1657
|
+
*/
|
|
1658
|
+
interface ColorVariant {
|
|
1659
|
+
/**
|
|
1660
|
+
* PowerPoint theme-controlled slide background slot from the active color scheme. These are slots, not assumptions about actual colors: light1 is usually white and dark1 is usually black by convention, but the color scheme controls the real values.
|
|
1661
|
+
*/
|
|
1662
|
+
background: ("light1" | "light2" | "dark1" | "dark2");
|
|
1663
|
+
/**
|
|
1664
|
+
* Optional accent order: a permutation of accent1 to accent6. Entry i is the scheme slot drawn as accent i + 1, so primary, secondary and accent (the first three) and the chart series colors follow it. Default: the scheme's own order.
|
|
1665
|
+
*
|
|
1666
|
+
* @minItems 6
|
|
1667
|
+
* @maxItems 6
|
|
1668
|
+
*/
|
|
1669
|
+
accents?: [("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6"), ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6"), ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6"), ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6"), ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6"), ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6")];
|
|
1670
|
+
}
|
|
1640
1671
|
/**
|
|
1641
1672
|
* Repeated header or footer content split into left, center, and right zones. Header/footer content is slide furniture, separate from the main slide content payloads.
|
|
1642
1673
|
*
|
|
@@ -2993,6 +3024,10 @@ interface Design1 {
|
|
|
2993
3024
|
* Default slide background applied across the deck unless overridden on a slide (slides.N.design.background); the resolved theme's background is the fallback. A background is the only canvas fill and never moves content. String shorthand accepts theme slots ('light1', 'light2', 'dark1', 'dark2'), hex colors, or an image source starting with 'asset:', 'https://', 'data:', './' or '../' (a cover image); object forms support theme, solid, gradient, image, or pattern fills.
|
|
2994
3025
|
*/
|
|
2995
3026
|
background?: (BackgroundShortcut | Background);
|
|
3027
|
+
/**
|
|
3028
|
+
* Optional color variant, as a background slot ('light1', 'light2', 'dark1', 'dark2'; the same as { background: slot }) or the object form, which is needed only for an accent order: which slot of the color scheme is the slide background (and so which are the text and the alternate surface), and optionally the order of the accents. A variant is a mapping over the same twelve-slot scheme, as PowerPoint's color map is, never a second scheme. Without it the background decides: a theme-slot background ('dark1', { type: 'theme', slot }) is the variant of that slot, a picture or gradient takes its 'tone', and any other background picks light or dark by its luminance. A slide's variant replaces the deck's whole, including its accent order.
|
|
3029
|
+
*/
|
|
3030
|
+
variant?: (ThemeBackgroundSlot | ColorVariant);
|
|
2996
3031
|
/**
|
|
2997
3032
|
* Which logo covers, section dividers and picture bullets draw. Logos live on the organization (Organization.logo); without this field covers and sections draw the primary organization's full logo and picture bullets its icon. A logo reference overrides that: 'var:organization.beta.logo' draws organization beta's logo, and a reference that names a shape ('var:organization.logo.wordmark') draws that shape everywhere this field applies. false draws no logo. A slide's design.logo overrides the deck's; absence inherits. An override naming an organization without a logo draws nothing (validation warns). Placement (reference engines, vetoable): on a cover or section slide (no body payload on a heading-only layout such as title, title-subtitle or section-divider, or no layout) the logo is drawn at the top-left of the free area, inside the slide padding and below any header furniture, in a box 56 reference pixels tall and at most four times as wide; the tag/title/subtitle group then centers in the remaining span. Content slides never get an automatic logo; a header or footer zone places one with image: 'var:organization.logo.icon'. composeSlide returns the cover box as geometry.logo.
|
|
2998
3033
|
*/
|
package/dist/schemas.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ declare const presentation: JsonSchemaDocument & {
|
|
|
32
32
|
readonly "ListVariable": JsonObject;
|
|
33
33
|
readonly "BackgroundShortcut": JsonObject;
|
|
34
34
|
readonly "ImageSource": JsonObject;
|
|
35
|
+
readonly "ColorVariant": JsonObject;
|
|
35
36
|
readonly "Background": JsonObject;
|
|
36
37
|
readonly "ThemeBackground": JsonObject;
|
|
37
38
|
readonly "SolidBackground": JsonObject;
|
|
@@ -98,6 +99,7 @@ declare const purpose: JsonSchemaDocument;
|
|
|
98
99
|
declare const tone: JsonSchemaDocument;
|
|
99
100
|
declare const theme: JsonSchemaDocument & {
|
|
100
101
|
readonly $defs: {
|
|
102
|
+
readonly "ThemeVariant": JsonObject;
|
|
101
103
|
readonly "ThemeBackgroundSlot": JsonObject;
|
|
102
104
|
readonly "ThemeBackground": JsonObject;
|
|
103
105
|
};
|
|
@@ -161,6 +163,7 @@ declare const schemas: {
|
|
|
161
163
|
readonly "ListVariable": JsonObject;
|
|
162
164
|
readonly "BackgroundShortcut": JsonObject;
|
|
163
165
|
readonly "ImageSource": JsonObject;
|
|
166
|
+
readonly "ColorVariant": JsonObject;
|
|
164
167
|
readonly "Background": JsonObject;
|
|
165
168
|
readonly "ThemeBackground": JsonObject;
|
|
166
169
|
readonly "SolidBackground": JsonObject;
|
|
@@ -227,6 +230,7 @@ declare const schemas: {
|
|
|
227
230
|
readonly tone: JsonSchemaDocument;
|
|
228
231
|
readonly theme: JsonSchemaDocument & {
|
|
229
232
|
readonly $defs: {
|
|
233
|
+
readonly "ThemeVariant": JsonObject;
|
|
230
234
|
readonly "ThemeBackgroundSlot": JsonObject;
|
|
231
235
|
readonly "ThemeBackground": JsonObject;
|
|
232
236
|
};
|
package/dist/schemas.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-
|
|
1
|
+
export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-BN3A5TVI.js';
|
|
@@ -650,7 +650,7 @@
|
|
|
650
650
|
"theme": {
|
|
651
651
|
"$ref": "#/$defs/CatalogReference",
|
|
652
652
|
"description": "Theme for the deck: a themes reference, a bare id ('minimal') or 'name:id' ('acme:brand'). The theme supplies the default colour scheme, font scheme, background and dimensions; design.colorScheme, design.fontScheme, design.background and design.dimensions override it field by field. A reference that resolves nowhere is the warning opf/unresolved-reference and engines use the engine default theme.",
|
|
653
|
-
"examples": ["minimal", "classic", "
|
|
653
|
+
"examples": ["minimal", "classic", "bold", "acme:brand"]
|
|
654
654
|
},
|
|
655
655
|
"colorScheme": {
|
|
656
656
|
"oneOf": [
|
|
@@ -693,6 +693,14 @@
|
|
|
693
693
|
"description": "Default slide background applied across the deck unless overridden on a slide (slides.N.design.background); the resolved theme's background is the fallback. A background is the only canvas fill and never moves content. String shorthand accepts theme slots ('light1', 'light2', 'dark1', 'dark2'), hex colors, or an image source starting with 'asset:', 'https://', 'data:', './' or '../' (a cover image); object forms support theme, solid, gradient, image, or pattern fills.",
|
|
694
694
|
"examples": ["dark1", "#ffff00", { "type": "theme", "slot": "light1" }]
|
|
695
695
|
},
|
|
696
|
+
"variant": {
|
|
697
|
+
"oneOf": [
|
|
698
|
+
{ "$ref": "#/$defs/ThemeBackgroundSlot" },
|
|
699
|
+
{ "$ref": "#/$defs/ColorVariant" }
|
|
700
|
+
],
|
|
701
|
+
"description": "Optional color variant, as a background slot ('light1', 'light2', 'dark1', 'dark2'; the same as { background: slot }) or the object form, which is needed only for an accent order: which slot of the color scheme is the slide background (and so which are the text and the alternate surface), and optionally the order of the accents. A variant is a mapping over the same twelve-slot scheme, as PowerPoint's color map is, never a second scheme. Without it the background decides: a theme-slot background ('dark1', { type: 'theme', slot }) is the variant of that slot, a picture or gradient takes its 'tone', and any other background picks light or dark by its luminance. A slide's variant replaces the deck's whole, including its accent order.",
|
|
702
|
+
"examples": ["dark1", { "background": "light1", "accents": ["accent2", "accent1", "accent3", "accent4", "accent5", "accent6"] }]
|
|
703
|
+
},
|
|
696
704
|
"logo": {
|
|
697
705
|
"oneOf": [
|
|
698
706
|
{
|
|
@@ -1435,6 +1443,28 @@
|
|
|
1435
1443
|
"description": "An image source in a string shorthand: an 'asset:<id>' reference, an HTTPS URL, a data URI, or a relative path starting with './' or '../' (resolved against the OPF file location).",
|
|
1436
1444
|
"examples": ["asset:cover-photo", "https://cdn.acme.com/backgrounds/cover.jpg", "./images/harbour.jpg"]
|
|
1437
1445
|
},
|
|
1446
|
+
"ColorVariant": {
|
|
1447
|
+
"type": "object",
|
|
1448
|
+
"additionalProperties": false,
|
|
1449
|
+
"required": ["background"],
|
|
1450
|
+
"description": "A variant of the deck's single color scheme, as a mapping over its twelve slots (PowerPoint's clrMap): 'background' is the slot the slide background and the role bg1 take, and with it the other roles: light1 maps bg1 = light1, tx1 = dark1, bg2 = light2, tx2 = dark2; dark1 maps bg1 = dark1, tx1 = light1, bg2 = dark2, tx2 = light2; light2 and dark2 make that slot both the background and the alternate surface (light2: bg1 = bg2 = light2, tx1 = dark1, tx2 = dark2; dark2: bg1 = bg2 = dark2, tx1 = light1, tx2 = light2), which is how a slide with that theme background has always been drawn. Text, secondary text, the card surface and every neutral (borders, gridlines, chart axis, code panel) follow the map. The PowerPoint export writes it as the master's clrMap, or a slide's clrMapOvr.",
|
|
1451
|
+
"properties": {
|
|
1452
|
+
"background": {
|
|
1453
|
+
"$ref": "#/$defs/ThemeBackgroundSlot",
|
|
1454
|
+
"description": "The scheme slot that is the background (bg1) of the variant."
|
|
1455
|
+
},
|
|
1456
|
+
"accents": {
|
|
1457
|
+
"type": "array",
|
|
1458
|
+
"minItems": 6,
|
|
1459
|
+
"maxItems": 6,
|
|
1460
|
+
"uniqueItems": true,
|
|
1461
|
+
"items": { "type": "string", "enum": ["accent1", "accent2", "accent3", "accent4", "accent5", "accent6"] },
|
|
1462
|
+
"description": "Optional accent order: a permutation of accent1 to accent6. Entry i is the scheme slot drawn as accent i + 1, so primary, secondary and accent (the first three) and the chart series colors follow it. Default: the scheme's own order.",
|
|
1463
|
+
"examples": [["accent2", "accent1", "accent3", "accent4", "accent5", "accent6"]]
|
|
1464
|
+
}
|
|
1465
|
+
},
|
|
1466
|
+
"examples": [{ "background": "dark1" }, { "background": "light2", "accents": ["accent2", "accent1", "accent3", "accent4", "accent5", "accent6"] }]
|
|
1467
|
+
},
|
|
1438
1468
|
"Background": {
|
|
1439
1469
|
"description": "Background fill applied to slides. Theme backgrounds preserve PowerPoint's color-scheme background choice; other variants represent fixed background fills.",
|
|
1440
1470
|
"oneOf": [
|
|
@@ -1488,6 +1518,11 @@
|
|
|
1488
1518
|
"description": "Fixed gradient slide background fill.",
|
|
1489
1519
|
"required": ["type", "gradient"],
|
|
1490
1520
|
"properties": {
|
|
1521
|
+
"tone": {
|
|
1522
|
+
"type": "string",
|
|
1523
|
+
"enum": ["dark", "light"],
|
|
1524
|
+
"description": "Whether the background is dark or light, which picks the color map (dark1 or light1) so text, lines and neutrals read on it. Without a tone a picture or gradient takes the deck's variant, else counts as light."
|
|
1525
|
+
},
|
|
1491
1526
|
"type": {
|
|
1492
1527
|
"type": "string",
|
|
1493
1528
|
"const": "gradient",
|
|
@@ -1540,6 +1575,11 @@
|
|
|
1540
1575
|
"description": "Picture background: the image fills the whole canvas behind everything and never moves content (to push content aside, use an image block with placement). The string shorthand 'asset:x' (or any image source) is { type: 'image', src: 'asset:x' }, a cover image. Paint order: the colour scheme's default slide background, the picture, then the overlay, then furniture and content.",
|
|
1541
1576
|
"required": ["type", "src"],
|
|
1542
1577
|
"properties": {
|
|
1578
|
+
"tone": {
|
|
1579
|
+
"type": "string",
|
|
1580
|
+
"enum": ["dark", "light"],
|
|
1581
|
+
"description": "Whether the background is dark or light, which picks the color map (dark1 or light1) so text, lines and neutrals read on it. Without a tone a picture or gradient takes the deck's variant, else counts as light."
|
|
1582
|
+
},
|
|
1543
1583
|
"type": {
|
|
1544
1584
|
"type": "string",
|
|
1545
1585
|
"const": "image",
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"examples": [
|
|
23
23
|
"minimal",
|
|
24
24
|
"classic",
|
|
25
|
-
"dark",
|
|
26
25
|
"bold"
|
|
27
26
|
]
|
|
28
27
|
},
|
|
@@ -32,7 +31,6 @@
|
|
|
32
31
|
"examples": [
|
|
33
32
|
"Minimal",
|
|
34
33
|
"Classic",
|
|
35
|
-
"Dark",
|
|
36
34
|
"Bold"
|
|
37
35
|
]
|
|
38
36
|
},
|
|
@@ -41,7 +39,7 @@
|
|
|
41
39
|
"description": "One-sentence positioning of the theme — when to reach for it.",
|
|
42
40
|
"examples": [
|
|
43
41
|
"A clean, minimalist theme for professional, straightforward presentations.",
|
|
44
|
-
"A
|
|
42
|
+
"A vibrant, high-energy theme with bold colors for presentations that need to stand out."
|
|
45
43
|
]
|
|
46
44
|
},
|
|
47
45
|
"description": {
|
|
@@ -66,6 +64,20 @@
|
|
|
66
64
|
"background": {
|
|
67
65
|
"$ref": "#/$defs/ThemeBackground"
|
|
68
66
|
},
|
|
67
|
+
"variants": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"items": {
|
|
70
|
+
"$ref": "#/$defs/ThemeVariant"
|
|
71
|
+
},
|
|
72
|
+
"description": "The color variants the theme offers (OPF 0.23), for example light, light-alt, dark and dark-alt: named values of design.variant over the theme's one color scheme, so a dark deck is a variant of a theme and not a theme of its own. A picker lists them by name; choosing one sets design.variant (or a slide's design.variant) to the entry's 'variant'. A document stores that value and never the id, so a variant needs no record and the theme does not change when its variants do. The entry ids are unique within a theme.",
|
|
73
|
+
"examples": [
|
|
74
|
+
[
|
|
75
|
+
{ "id": "light", "name": "Light", "variant": "light1" },
|
|
76
|
+
{ "id": "dark", "name": "Dark", "variant": "dark1" },
|
|
77
|
+
{ "id": "dark-alt", "name": "Dark alt", "variant": { "background": "dark1", "accents": ["accent2", "accent1", "accent3", "accent4", "accent5", "accent6"] } }
|
|
78
|
+
]
|
|
79
|
+
]
|
|
80
|
+
},
|
|
69
81
|
"dimensions": {
|
|
70
82
|
"type": "string",
|
|
71
83
|
"enum": ["16:9", "4:3", "16:10", "1:1", "4:5", "9:16", "letter", "a4", "widescreen", "standard"],
|
|
@@ -192,6 +204,33 @@
|
|
|
192
204
|
}
|
|
193
205
|
},
|
|
194
206
|
"$defs": {
|
|
207
|
+
"ThemeVariant": {
|
|
208
|
+
"type": "object",
|
|
209
|
+
"additionalProperties": false,
|
|
210
|
+
"required": ["id", "name", "variant"],
|
|
211
|
+
"description": "One named color variant of a theme.",
|
|
212
|
+
"properties": {
|
|
213
|
+
"id": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"pattern": "^[a-z][a-z0-9-]*$",
|
|
216
|
+
"description": "The variant's id within the theme, lowercase kebab-case.",
|
|
217
|
+
"examples": ["light", "light-alt", "dark", "dark-alt"]
|
|
218
|
+
},
|
|
219
|
+
"name": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"description": "Human-readable variant name shown in pickers.",
|
|
222
|
+
"examples": ["Light", "Light alt", "Dark", "Dark alt"]
|
|
223
|
+
},
|
|
224
|
+
"variant": {
|
|
225
|
+
"description": "The value design.variant takes when the variant is chosen: a background slot ('light1', 'light2', 'dark1', 'dark2'; the same as { background: slot }) or the ColorVariant object of opf.schema.json, which adds an accent order.",
|
|
226
|
+
"oneOf": [
|
|
227
|
+
{ "$ref": "#/$defs/ThemeBackgroundSlot" },
|
|
228
|
+
{ "$ref": "https://openpresentation.org/schema/opf/v1#/$defs/ColorVariant" }
|
|
229
|
+
],
|
|
230
|
+
"examples": ["dark1", { "background": "light1", "accents": ["accent6", "accent5", "accent4", "accent1", "accent3", "accent2"] }]
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
195
234
|
"ThemeBackgroundSlot": {
|
|
196
235
|
"type": "string",
|
|
197
236
|
"description": "PowerPoint theme-controlled slide background slot from the active color scheme. These are slots, not assumptions about actual colors: light1 is usually white and dark1 is usually black by convention, but the color scheme controls the real values.",
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { P as Presentation } from './presentation-
|
|
1
|
+
export { P as Presentation } from './presentation-Dn-fm0iY.js';
|
|
2
2
|
export { b as CatalogKind } from './catalog-refs-CSHevLn1.js';
|
|
3
3
|
export { SchemaName } from './schemas.js';
|
|
4
4
|
export { a as Finding, d as FindingCategory, e as FindingFix, f as FindingFocus, b as FindingLocation, F as FindingReport, c as FindingSeverity, g as FindingSuggestion, J as JsonPatchOperation, V as ValidationIssue } from './finding-l9dlQ2NF.js';
|
|
@@ -255,6 +255,10 @@ interface Theme {
|
|
|
255
255
|
*/
|
|
256
256
|
fontScheme?: string;
|
|
257
257
|
background?: ThemeBackground;
|
|
258
|
+
/**
|
|
259
|
+
* The color variants the theme offers (OPF 0.23), for example light, light-alt, dark and dark-alt: named values of design.variant over the theme's one color scheme, so a dark deck is a variant of a theme and not a theme of its own. A picker lists them by name; choosing one sets design.variant (or a slide's design.variant) to the entry's 'variant'. A document stores that value and never the id, so a variant needs no record and the theme does not change when its variants do. The entry ids are unique within a theme.
|
|
260
|
+
*/
|
|
261
|
+
variants?: ThemeVariant[];
|
|
258
262
|
/**
|
|
259
263
|
* Default slide size for this theme. Accepts the same preset values as design.dimensions.preset.
|
|
260
264
|
*/
|
|
@@ -326,6 +330,42 @@ interface ThemeBackground {
|
|
|
326
330
|
slot: ThemeBackgroundSlot;
|
|
327
331
|
[k: string]: unknown;
|
|
328
332
|
}
|
|
333
|
+
/**
|
|
334
|
+
* One named color variant of a theme.
|
|
335
|
+
*
|
|
336
|
+
* This interface was referenced by `Theme`'s JSON-Schema
|
|
337
|
+
* via the `definition` "ThemeVariant".
|
|
338
|
+
*/
|
|
339
|
+
interface ThemeVariant {
|
|
340
|
+
/**
|
|
341
|
+
* The variant's id within the theme, lowercase kebab-case.
|
|
342
|
+
*/
|
|
343
|
+
id: string;
|
|
344
|
+
/**
|
|
345
|
+
* Human-readable variant name shown in pickers.
|
|
346
|
+
*/
|
|
347
|
+
name: string;
|
|
348
|
+
/**
|
|
349
|
+
* The value design.variant takes when the variant is chosen: a background slot ('light1', 'light2', 'dark1', 'dark2'; the same as { background: slot }) or the ColorVariant object of opf.schema.json, which adds an accent order.
|
|
350
|
+
*/
|
|
351
|
+
variant: (ThemeBackgroundSlot | ColorVariant);
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* A variant of the deck's single color scheme, as a mapping over its twelve slots (PowerPoint's clrMap): 'background' is the slot the slide background and the role bg1 take, and with it the other roles: light1 maps bg1 = light1, tx1 = dark1, bg2 = light2, tx2 = dark2; dark1 maps bg1 = dark1, tx1 = light1, bg2 = dark2, tx2 = light2; light2 and dark2 make that slot both the background and the alternate surface (light2: bg1 = bg2 = light2, tx1 = dark1, tx2 = dark2; dark2: bg1 = bg2 = dark2, tx1 = light1, tx2 = light2), which is how a slide with that theme background has always been drawn. Text, secondary text, the card surface and every neutral (borders, gridlines, chart axis, code panel) follow the map. The PowerPoint export writes it as the master's clrMap, or a slide's clrMapOvr.
|
|
355
|
+
*/
|
|
356
|
+
interface ColorVariant {
|
|
357
|
+
/**
|
|
358
|
+
* The scheme slot that is the background (bg1) of the variant.
|
|
359
|
+
*/
|
|
360
|
+
background: ("light1" | "light2" | "dark1" | "dark2");
|
|
361
|
+
/**
|
|
362
|
+
* Optional accent order: a permutation of accent1 to accent6. Entry i is the scheme slot drawn as accent i + 1, so primary, secondary and accent (the first three) and the chart series colors follow it. Default: the scheme's own order.
|
|
363
|
+
*
|
|
364
|
+
* @minItems 6
|
|
365
|
+
* @maxItems 6
|
|
366
|
+
*/
|
|
367
|
+
accents?: [("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6"), ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6"), ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6"), ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6"), ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6"), ("accent1" | "accent2" | "accent3" | "accent4" | "accent5" | "accent6")];
|
|
368
|
+
}
|
|
329
369
|
|
|
330
370
|
/**
|
|
331
371
|
* Schema for slide-layout records (OPF 0.19). A layout is a grid template: 'areas' names the cells of a grid using nested row arrays, 'columns' and 'rows' size its tracks, and 'regions' says, for every body area, which content kinds it takes and how several blocks share it. Slide content stays flat: engines bind a slide's blocks to the regions by reading order, role and kind (bindRegions in @openpresentation/opf), a block may pin itself to a region with 'region', and an empty region collapses into a neighbour. Built-in and custom layouts are records of this one schema; a custom layout is embedded under catalogs.custom.layouts or shipped in a catalog. Documents reference a layout from Slide.layout; a slide without a layout, with layout 'auto', or whose layout resolves nowhere composes automatically.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as Catalog } from './catalog-refs-CSHevLn1.js';
|
|
2
|
-
import { T as TextMeasurement } from './composition-
|
|
2
|
+
import { T as TextMeasurement } from './composition-qX-igJe5.js';
|
|
3
3
|
import { c as FindingSeverity, F as FindingReport } from './finding-l9dlQ2NF.js';
|
|
4
4
|
import { J as JsonPrimitive } from './json-BFSdESOE.js';
|
|
5
5
|
|