@openpresentation/opf 0.23.0 → 0.24.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 +14 -14
- package/dist/{chunk-YMBA3V2O.js → chunk-33OBLTKZ.js} +1 -1
- package/dist/{chunk-TILQBXPZ.js → chunk-5PHLSH4E.js} +1 -1
- package/dist/{chunk-3FWUA763.js → chunk-6WDLGY25.js} +2 -2
- package/dist/{chunk-ZIRSAFRC.js → chunk-BN3A5TVI.js} +95 -4
- package/dist/{chunk-BOWBPSFF.js → chunk-DRCN5PFH.js} +7 -7
- package/dist/{chunk-L67MPTPZ.js → chunk-F6CDJTSE.js} +1 -1
- package/dist/{chunk-TMOQ532D.js → chunk-H5GFPQAS.js} +1 -1
- package/dist/{chunk-XKUEEDDN.js → chunk-H77YYHPL.js} +4 -4
- package/dist/{chunk-VHNG75IH.js → chunk-JHSTEBPC.js} +4 -4
- package/dist/{chunk-NIA2WEXN.js → chunk-RE4F2USA.js} +1 -1
- package/dist/{chunk-PLV7P236.js → chunk-RP2KIC7W.js} +2 -2
- package/dist/{chunk-VIOSRKMA.js → chunk-RQACV2FR.js} +1 -1
- package/dist/{chunk-F55S5HDP.js → chunk-RXKXY75X.js} +1 -1
- package/dist/{chunk-CNOLYQ4C.js → chunk-UIKXX5EX.js} +1 -1
- package/dist/{chunk-B2XALDGS.js → chunk-ZFNKRZZQ.js} +5 -5
- package/dist/conversion-MTGISXNM.js +19 -0
- package/dist/{conversion-t-YYHWL-.d.ts → conversion-O0XSW0ZV.d.ts} +2 -2
- package/dist/convert.js +6 -6
- package/dist/deck.js +9 -9
- package/dist/diff.js +4 -4
- package/dist/docs.js +6 -6
- package/dist/examples.js +6365 -1932
- package/dist/format.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +18 -18
- package/dist/markdown.js +6 -6
- package/dist/node-engine.d.ts +2 -2
- package/dist/node-engine.js +18 -18
- package/dist/pagination.js +3 -3
- package/dist/patch.js +3 -3
- package/dist/schemas.d.ts +2 -0
- package/dist/schemas.js +1 -1
- package/dist/spec/schemas/opf.schema.json +1 -1
- package/dist/spec/schemas/theme.schema.json +42 -3
- package/dist/types.d.ts +40 -0
- package/dist/validator.js +2 -2
- package/dist/yaml.js +6 -6
- package/package.json +6 -6
- package/dist/conversion-CY34E5WI.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,6 +1,6 @@
|
|
|
1
1
|
export { SchemaEntry, SchemaName, audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './schemas.js';
|
|
2
|
-
import { 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-
|
|
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
4
|
import { v as validate$1 } from './validator-BuAV_HUo.js';
|
|
5
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
6
|
import { R as ResolveVariablesOptions, h as VariableDiagnostic } from './validation-types-CzPKoKWo.js';
|
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
5
|
export { OPFDataImportError, ingest, parseTabularData } from './chunk-4I3XPRAO.js';
|
|
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-
|
|
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
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-
|
|
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-MTGISXNM.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.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-
|
|
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
6
|
import './chunk-N3ZPLGK5.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-BN3A5TVI.js';
|
package/dist/node-engine.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { b as DeckReport, c as DeckReportOptions, r as readDeckReport } from './deck-report-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-
|
|
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-
|
|
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
5
|
import { e as PresentationPaginationResult } from './pagination-LiWxhbsz.js';
|
|
6
6
|
import './presentation-Dn-fm0iY.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-DRCN5PFH.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-DRCN5PFH.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
8
|
import './chunk-4I3XPRAO.js';
|
|
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-
|
|
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
20
|
import './chunk-N3ZPLGK5.js';
|
|
21
|
-
import './chunk-
|
|
21
|
+
import './chunk-BN3A5TVI.js';
|
|
22
22
|
import './chunk-F7PLNWHQ.js';
|
|
23
23
|
|
|
24
24
|
// src/node/paginate.ts
|
package/dist/pagination.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { OPFPaginationError, paginate, paginateSlide } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { OPFPaginationError, paginate, paginateSlide } from './chunk-UIKXX5EX.js';
|
|
2
|
+
import './chunk-F6CDJTSE.js';
|
|
3
3
|
import './chunk-N3ZPLGK5.js';
|
|
4
|
-
import './chunk-
|
|
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-
|
|
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
3
|
import './chunk-N3ZPLGK5.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-BN3A5TVI.js';
|
package/dist/schemas.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ declare const purpose: JsonSchemaDocument;
|
|
|
99
99
|
declare const tone: JsonSchemaDocument;
|
|
100
100
|
declare const theme: JsonSchemaDocument & {
|
|
101
101
|
readonly $defs: {
|
|
102
|
+
readonly "ThemeVariant": JsonObject;
|
|
102
103
|
readonly "ThemeBackgroundSlot": JsonObject;
|
|
103
104
|
readonly "ThemeBackground": JsonObject;
|
|
104
105
|
};
|
|
@@ -229,6 +230,7 @@ declare const schemas: {
|
|
|
229
230
|
readonly tone: JsonSchemaDocument;
|
|
230
231
|
readonly theme: JsonSchemaDocument & {
|
|
231
232
|
readonly $defs: {
|
|
233
|
+
readonly "ThemeVariant": JsonObject;
|
|
232
234
|
readonly "ThemeBackgroundSlot": JsonObject;
|
|
233
235
|
readonly "ThemeBackground": JsonObject;
|
|
234
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": [
|
|
@@ -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
|
@@ -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.
|
package/dist/validator.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, assertValid, assertValidCatalogRecord, findValidationRule, validate, validateCatalogRecord, validationCategories, validationRules } from './chunk-
|
|
1
|
+
export { DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, assertValid, assertValidCatalogRecord, findValidationRule, validate, validateCatalogRecord, validationCategories, validationRules } from './chunk-F6CDJTSE.js';
|
|
2
2
|
export { promotedRegionKeys } from './chunk-N3ZPLGK5.js';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-BN3A5TVI.js';
|
package/dist/yaml.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { OPFYamlError, YAML_SCHEMA_URL, fromYaml, parseYamlData, scanYamlComments, toYaml } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
1
|
+
export { OPFYamlError, YAML_SCHEMA_URL, fromYaml, parseYamlData, scanYamlComments, toYaml } from './chunk-ZFNKRZZQ.js';
|
|
2
|
+
import './chunk-5PHLSH4E.js';
|
|
3
|
+
import './chunk-33OBLTKZ.js';
|
|
4
|
+
import './chunk-RXKXY75X.js';
|
|
5
|
+
import './chunk-F6CDJTSE.js';
|
|
6
6
|
import './chunk-N3ZPLGK5.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-BN3A5TVI.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpresentation/opf",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.2",
|
|
4
4
|
"description": "Canonical Open Presentation Format schemas, TypeScript types, local validation and composition; in Node, the file API and the CLI defaults register the pptx.gallery catalog of @openpresentation/gallery.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Open Presentation",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"pack:dry-run": "pnpm run build && npm pack --dry-run --cache /tmp/opf-npm-cache"
|
|
143
143
|
},
|
|
144
144
|
"dependencies": {
|
|
145
|
-
"@openpresentation/gallery": "^
|
|
145
|
+
"@openpresentation/gallery": "^4.0.0",
|
|
146
146
|
"ajv": "^8.17.1",
|
|
147
147
|
"ajv-formats": "^3.0.1",
|
|
148
148
|
"jsonc-parser": "3.3.1",
|
|
@@ -157,8 +157,8 @@
|
|
|
157
157
|
"@expo-google-fonts/roboto": "0.4.3",
|
|
158
158
|
"@expo-google-fonts/roboto-mono": "0.4.2",
|
|
159
159
|
"@expo-google-fonts/tinos": "0.4.2",
|
|
160
|
-
"@openpresentation/opf-pptx": "0.
|
|
161
|
-
"@openpresentation/opf-render": "0.
|
|
160
|
+
"@openpresentation/opf-pptx": "0.24.0",
|
|
161
|
+
"@openpresentation/opf-render": "0.24.1",
|
|
162
162
|
"@resvg/resvg-js": "2.6.2",
|
|
163
163
|
"@types/node": "^24.13.4",
|
|
164
164
|
"json-schema-to-typescript": "^16.0.0",
|
|
@@ -168,8 +168,8 @@
|
|
|
168
168
|
"typescript": "~5.9.3"
|
|
169
169
|
},
|
|
170
170
|
"peerDependencies": {
|
|
171
|
-
"@openpresentation/opf-pptx": "^0.
|
|
172
|
-
"@openpresentation/opf-render": "^0.
|
|
171
|
+
"@openpresentation/opf-pptx": "^0.24.0",
|
|
172
|
+
"@openpresentation/opf-render": "^0.24.0"
|
|
173
173
|
},
|
|
174
174
|
"peerDependenciesMeta": {
|
|
175
175
|
"@openpresentation/opf-pptx": {
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export { convertFiles, deckFileFormat, exportFormatOf, openDeck, planConversion, readInput, saveDeck, writePlanned } from './chunk-BOWBPSFF.js';
|
|
2
|
-
import './chunk-PLV7P236.js';
|
|
3
|
-
import './chunk-3FWUA763.js';
|
|
4
|
-
import './chunk-UJSAR6GF.js';
|
|
5
|
-
import './chunk-4I3XPRAO.js';
|
|
6
|
-
import './chunk-VHNG75IH.js';
|
|
7
|
-
import './chunk-XKUEEDDN.js';
|
|
8
|
-
import './chunk-B2XALDGS.js';
|
|
9
|
-
import './chunk-TILQBXPZ.js';
|
|
10
|
-
import './chunk-TMOQ532D.js';
|
|
11
|
-
import './chunk-VIOSRKMA.js';
|
|
12
|
-
import './chunk-YMBA3V2O.js';
|
|
13
|
-
import './chunk-CNOLYQ4C.js';
|
|
14
|
-
import './chunk-NIA2WEXN.js';
|
|
15
|
-
import './chunk-F55S5HDP.js';
|
|
16
|
-
import './chunk-L67MPTPZ.js';
|
|
17
|
-
import './chunk-N3ZPLGK5.js';
|
|
18
|
-
import './chunk-ZIRSAFRC.js';
|
|
19
|
-
import './chunk-F7PLNWHQ.js';
|