@openpresentation/opf 0.22.2 → 0.23.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-MAJHCGOW.js → chunk-3FWUA763.js} +4 -4
- package/dist/{chunk-SPCONMIY.js → chunk-4I3XPRAO.js} +1 -1
- package/dist/{chunk-7XNAMCGT.js → chunk-B2XALDGS.js} +6 -6
- package/dist/{chunk-AHKRJSCF.js → chunk-BOWBPSFF.js} +6 -6
- package/dist/{chunk-YUIEWE5B.js → chunk-CNOLYQ4C.js} +2 -2
- package/dist/{chunk-2SENTA2R.js → chunk-F55S5HDP.js} +1 -1
- package/dist/{chunk-23MOKE4B.js → chunk-L67MPTPZ.js} +43 -9
- package/dist/{chunk-VKNFZEMG.js → chunk-N3ZPLGK5.js} +137 -16
- package/dist/{chunk-KUNXFN7B.js → chunk-NIA2WEXN.js} +1 -1
- package/dist/{chunk-MG34DCDB.js → chunk-PLV7P236.js} +2 -2
- package/dist/{chunk-3T7MNRBY.js → chunk-TILQBXPZ.js} +1 -1
- package/dist/{chunk-BULGAKBY.js → chunk-TMOQ532D.js} +2 -2
- package/dist/{chunk-MLMTXXM4.js → chunk-VHNG75IH.js} +5 -5
- package/dist/{chunk-YSJRBRHB.js → chunk-VIOSRKMA.js} +1 -1
- package/dist/{chunk-SBWIZSPB.js → chunk-XKUEEDDN.js} +5 -5
- package/dist/{chunk-X3PQMMAY.js → chunk-YMBA3V2O.js} +1 -1
- package/dist/{chunk-3UAVON3O.js → chunk-ZIRSAFRC.js} +99 -0
- 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-CY34E5WI.js +19 -0
- package/dist/{conversion-C_MOkYGH.d.ts → conversion-t-YYHWL-.d.ts} +5 -5
- 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 +5 -5
- package/dist/examples.d.ts +1 -1
- package/dist/examples.js +213 -0
- 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 +2 -0
- package/dist/schemas.js +1 -1
- package/dist/spec/schemas/opf.schema.json +40 -0
- package/dist/types.d.ts +1 -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 +3 -3
- package/dist/conversion-LBQMY7LX.js +0 -19
package/dist/examples.d.ts
CHANGED
package/dist/examples.js
CHANGED
|
@@ -94515,6 +94515,219 @@ var examplesData = Object.freeze([
|
|
|
94515
94515
|
]
|
|
94516
94516
|
}
|
|
94517
94517
|
},
|
|
94518
|
+
{
|
|
94519
|
+
"slug": "color-variants",
|
|
94520
|
+
"file": "examples/technical/color-variants.opf.json",
|
|
94521
|
+
"category": "technical",
|
|
94522
|
+
"gallery": null,
|
|
94523
|
+
"deck": {
|
|
94524
|
+
"$schema": "https://openpresentation.org/schema/opf/v1",
|
|
94525
|
+
"name": "Color variants",
|
|
94526
|
+
"description": "Technical fixture for design.variant (core 0.23.0): one color scheme, a variant per deck and per slide, and the neutrals (borders, chart gridlines, axis text, code) that follow it.",
|
|
94527
|
+
"language": "en-US",
|
|
94528
|
+
"design": {
|
|
94529
|
+
"variant": "light1"
|
|
94530
|
+
},
|
|
94531
|
+
"slides": [
|
|
94532
|
+
{
|
|
94533
|
+
"title": "One scheme, several variants",
|
|
94534
|
+
"subtitle": "design.variant maps the same twelve slots",
|
|
94535
|
+
"bullets": [
|
|
94536
|
+
"The deck variant is light1: dark text on the light background",
|
|
94537
|
+
"A slide can choose dark1, dark2, light1 or light2",
|
|
94538
|
+
"Borders, gridlines and chart text follow the variant"
|
|
94539
|
+
]
|
|
94540
|
+
},
|
|
94541
|
+
{
|
|
94542
|
+
"title": "Chart on a light slide",
|
|
94543
|
+
"chart": {
|
|
94544
|
+
"type": "column",
|
|
94545
|
+
"data": {
|
|
94546
|
+
"columns": [
|
|
94547
|
+
"Quarter",
|
|
94548
|
+
"Revenue",
|
|
94549
|
+
"Costs"
|
|
94550
|
+
],
|
|
94551
|
+
"rows": [
|
|
94552
|
+
[
|
|
94553
|
+
"Q1",
|
|
94554
|
+
120,
|
|
94555
|
+
80
|
|
94556
|
+
],
|
|
94557
|
+
[
|
|
94558
|
+
"Q2",
|
|
94559
|
+
180,
|
|
94560
|
+
110
|
|
94561
|
+
],
|
|
94562
|
+
[
|
|
94563
|
+
"Q3",
|
|
94564
|
+
240,
|
|
94565
|
+
150
|
|
94566
|
+
],
|
|
94567
|
+
[
|
|
94568
|
+
"Q4",
|
|
94569
|
+
260,
|
|
94570
|
+
170
|
|
94571
|
+
]
|
|
94572
|
+
]
|
|
94573
|
+
},
|
|
94574
|
+
"axisTitles": {
|
|
94575
|
+
"category": "Quarter",
|
|
94576
|
+
"value": "$M"
|
|
94577
|
+
},
|
|
94578
|
+
"legend": "bottom",
|
|
94579
|
+
"alt": "Revenue and costs by quarter, on a light slide"
|
|
94580
|
+
}
|
|
94581
|
+
},
|
|
94582
|
+
{
|
|
94583
|
+
"title": "Table on a light slide",
|
|
94584
|
+
"table": {
|
|
94585
|
+
"columns": [
|
|
94586
|
+
"Region",
|
|
94587
|
+
{
|
|
94588
|
+
"name": "Revenue",
|
|
94589
|
+
"format": "#,##0"
|
|
94590
|
+
},
|
|
94591
|
+
{
|
|
94592
|
+
"name": "Growth",
|
|
94593
|
+
"format": "0%"
|
|
94594
|
+
}
|
|
94595
|
+
],
|
|
94596
|
+
"rows": [
|
|
94597
|
+
[
|
|
94598
|
+
"North",
|
|
94599
|
+
1240,
|
|
94600
|
+
0.12
|
|
94601
|
+
],
|
|
94602
|
+
[
|
|
94603
|
+
"South",
|
|
94604
|
+
980,
|
|
94605
|
+
0.08
|
|
94606
|
+
],
|
|
94607
|
+
[
|
|
94608
|
+
"East",
|
|
94609
|
+
1510,
|
|
94610
|
+
0.15
|
|
94611
|
+
],
|
|
94612
|
+
[
|
|
94613
|
+
"West",
|
|
94614
|
+
760,
|
|
94615
|
+
0.04
|
|
94616
|
+
]
|
|
94617
|
+
]
|
|
94618
|
+
}
|
|
94619
|
+
},
|
|
94620
|
+
{
|
|
94621
|
+
"title": "Chart on a dark slide",
|
|
94622
|
+
"design": {
|
|
94623
|
+
"variant": "dark1"
|
|
94624
|
+
},
|
|
94625
|
+
"chart": {
|
|
94626
|
+
"type": "column",
|
|
94627
|
+
"data": {
|
|
94628
|
+
"columns": [
|
|
94629
|
+
"Quarter",
|
|
94630
|
+
"Revenue",
|
|
94631
|
+
"Costs"
|
|
94632
|
+
],
|
|
94633
|
+
"rows": [
|
|
94634
|
+
[
|
|
94635
|
+
"Q1",
|
|
94636
|
+
120,
|
|
94637
|
+
80
|
|
94638
|
+
],
|
|
94639
|
+
[
|
|
94640
|
+
"Q2",
|
|
94641
|
+
180,
|
|
94642
|
+
110
|
|
94643
|
+
],
|
|
94644
|
+
[
|
|
94645
|
+
"Q3",
|
|
94646
|
+
240,
|
|
94647
|
+
150
|
|
94648
|
+
],
|
|
94649
|
+
[
|
|
94650
|
+
"Q4",
|
|
94651
|
+
260,
|
|
94652
|
+
170
|
|
94653
|
+
]
|
|
94654
|
+
]
|
|
94655
|
+
},
|
|
94656
|
+
"axisTitles": {
|
|
94657
|
+
"category": "Quarter",
|
|
94658
|
+
"value": "$M"
|
|
94659
|
+
},
|
|
94660
|
+
"legend": "bottom",
|
|
94661
|
+
"alt": "Revenue and costs by quarter, on a dark slide"
|
|
94662
|
+
}
|
|
94663
|
+
},
|
|
94664
|
+
{
|
|
94665
|
+
"title": "Table on a dark slide",
|
|
94666
|
+
"design": {
|
|
94667
|
+
"variant": "dark1"
|
|
94668
|
+
},
|
|
94669
|
+
"table": {
|
|
94670
|
+
"columns": [
|
|
94671
|
+
"Region",
|
|
94672
|
+
{
|
|
94673
|
+
"name": "Revenue",
|
|
94674
|
+
"format": "#,##0"
|
|
94675
|
+
},
|
|
94676
|
+
{
|
|
94677
|
+
"name": "Growth",
|
|
94678
|
+
"format": "0%"
|
|
94679
|
+
}
|
|
94680
|
+
],
|
|
94681
|
+
"rows": [
|
|
94682
|
+
[
|
|
94683
|
+
"North",
|
|
94684
|
+
1240,
|
|
94685
|
+
0.12
|
|
94686
|
+
],
|
|
94687
|
+
[
|
|
94688
|
+
"South",
|
|
94689
|
+
980,
|
|
94690
|
+
0.08
|
|
94691
|
+
],
|
|
94692
|
+
[
|
|
94693
|
+
"East",
|
|
94694
|
+
1510,
|
|
94695
|
+
0.15
|
|
94696
|
+
],
|
|
94697
|
+
[
|
|
94698
|
+
"West",
|
|
94699
|
+
760,
|
|
94700
|
+
0.04
|
|
94701
|
+
]
|
|
94702
|
+
]
|
|
94703
|
+
}
|
|
94704
|
+
},
|
|
94705
|
+
{
|
|
94706
|
+
"title": "A warm slide",
|
|
94707
|
+
"design": {
|
|
94708
|
+
"variant": "light2"
|
|
94709
|
+
},
|
|
94710
|
+
"bullets": [
|
|
94711
|
+
"light2 is the background and the card surface",
|
|
94712
|
+
"Text stays dark1",
|
|
94713
|
+
"Switching variant never changes the scheme"
|
|
94714
|
+
]
|
|
94715
|
+
},
|
|
94716
|
+
{
|
|
94717
|
+
"title": "A picture with a tone",
|
|
94718
|
+
"design": {
|
|
94719
|
+
"background": {
|
|
94720
|
+
"type": "image",
|
|
94721
|
+
"src": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABICAIAAACx52pFAAABXElEQVR42u3R6VoMABxG8fdju5aZmmZJlGyhmaYRZUsiZAtJwv1fRf+7OF/O8/yu4JyMNbYEignwAX2BMtYcCJTx5kCgjC9uC1QDhgJlYmkoUA3YESgTrZFAmWyNBMrk8mOBasCuQJlq7wpUA54IlKnOU4EcQA+Y7u4JVAP2Bcp0b1+gzPSeCZSZlecCOYAecO36C4FqwEuBHEAPmF19JVANOBAoszcOBKoBrwXK3M1DgRyAD1h7I1Dm144Eyvz6kUA14K1AWbj1TqAacCxQFjaOBUpj471Aadz+IJAD6AHNOx8FqgEnAqV590SgGvBJoCze+yyQA/gBXwTK0v2vAjkAH7D5TaC0Nk8FSuvBqUA14LtAWX74QyAH4AMe/RSoBpwJlPbWmUA14JdAaffPBUqnfy5QOoPfAtWAC4HS3b4QqAb8ESjd4aVA6Q0vBUpv569ANeCfQFkZ/RfoClmTzIBhRBzzAAAAAElFTkSuQmCC",
|
|
94722
|
+
"alt": "Dark blue gradient",
|
|
94723
|
+
"tone": "dark"
|
|
94724
|
+
}
|
|
94725
|
+
},
|
|
94726
|
+
"text": "The tone dark picks the dark1 variant, so the text and lines read on the picture."
|
|
94727
|
+
}
|
|
94728
|
+
]
|
|
94729
|
+
}
|
|
94730
|
+
},
|
|
94518
94731
|
{
|
|
94519
94732
|
"slug": "columns",
|
|
94520
94733
|
"file": "examples/technical/columns.opf.json",
|
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-YMBA3V2O.js';
|
|
2
|
+
import './chunk-ZIRSAFRC.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-t-YYHWL-.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-t-YYHWL-.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-PLV7P236.js';
|
|
2
|
+
import { stats, embed, edit, OPFApiError, asApiError } from './chunk-3FWUA763.js';
|
|
3
|
+
export { OPFApiError, OPFExportError, OPFImportError, OPFMoveToCustomError, copySlides, fill, fillRecords, localAssetSources, moveToCustom, parseSlideSelection, sameRecord, updateFromCatalog } from './chunk-3FWUA763.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-VHNG75IH.js';
|
|
7
|
+
export { fromMarkdown, toMarkdown } from './chunk-XKUEEDDN.js';
|
|
8
|
+
import './chunk-B2XALDGS.js';
|
|
9
|
+
export { OPFMarkdownError } from './chunk-TILQBXPZ.js';
|
|
10
|
+
export { diff, merge } from './chunk-TMOQ532D.js';
|
|
11
|
+
export { OPFPatchError, OPFPatchValidationError, applyPatch } from './chunk-VIOSRKMA.js';
|
|
12
|
+
export { OPFFormatError, format } from './chunk-YMBA3V2O.js';
|
|
13
|
+
import { paginate } from './chunk-CNOLYQ4C.js';
|
|
14
|
+
export { OPFPaginationError, paginateSlide } from './chunk-CNOLYQ4C.js';
|
|
15
|
+
import './chunk-NIA2WEXN.js';
|
|
16
|
+
import './chunk-F55S5HDP.js';
|
|
17
|
+
import { validate, OPFValidationError } from './chunk-L67MPTPZ.js';
|
|
18
|
+
export { CATALOG_SCHEMA, DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogSchemaNames, findValidationRule, resolveSlideContext, validateCatalogRecord, validationCategories, validationRules } from './chunk-L67MPTPZ.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-ZIRSAFRC.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-CY34E5WI.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-XKUEEDDN.js';
|
|
2
|
+
export { OPFMarkdownError } from './chunk-TILQBXPZ.js';
|
|
3
|
+
import './chunk-NIA2WEXN.js';
|
|
4
|
+
import './chunk-F55S5HDP.js';
|
|
5
|
+
import './chunk-L67MPTPZ.js';
|
|
6
|
+
import './chunk-N3ZPLGK5.js';
|
|
7
|
+
import './chunk-ZIRSAFRC.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-t-YYHWL-.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-t-YYHWL-.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-BOWBPSFF.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-BOWBPSFF.js';
|
|
3
|
+
import { defaultCatalogs } from './chunk-PLV7P236.js';
|
|
4
|
+
export { defaultCatalogs, galleryMismatch } from './chunk-PLV7P236.js';
|
|
5
|
+
import { OPFApiError } from './chunk-3FWUA763.js';
|
|
6
|
+
export { OPFApiError, OPFExportError, OPFImportError, asApiError, parseSlideSelection } from './chunk-3FWUA763.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-VHNG75IH.js';
|
|
10
|
+
import './chunk-XKUEEDDN.js';
|
|
11
|
+
import './chunk-B2XALDGS.js';
|
|
12
|
+
import './chunk-TILQBXPZ.js';
|
|
13
|
+
import './chunk-TMOQ532D.js';
|
|
14
|
+
import './chunk-VIOSRKMA.js';
|
|
15
|
+
import './chunk-YMBA3V2O.js';
|
|
16
|
+
import { paginate } from './chunk-CNOLYQ4C.js';
|
|
17
|
+
import './chunk-NIA2WEXN.js';
|
|
18
|
+
import './chunk-F55S5HDP.js';
|
|
19
|
+
import './chunk-L67MPTPZ.js';
|
|
20
|
+
import './chunk-N3ZPLGK5.js';
|
|
21
|
+
import './chunk-ZIRSAFRC.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-CNOLYQ4C.js';
|
|
2
|
+
import './chunk-L67MPTPZ.js';
|
|
3
|
+
import './chunk-N3ZPLGK5.js';
|
|
4
|
+
import './chunk-ZIRSAFRC.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-VIOSRKMA.js';
|
|
2
|
+
import './chunk-L67MPTPZ.js';
|
|
3
|
+
import './chunk-N3ZPLGK5.js';
|
|
4
|
+
import './chunk-ZIRSAFRC.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;
|
|
@@ -161,6 +162,7 @@ declare const schemas: {
|
|
|
161
162
|
readonly "ListVariable": JsonObject;
|
|
162
163
|
readonly "BackgroundShortcut": JsonObject;
|
|
163
164
|
readonly "ImageSource": JsonObject;
|
|
165
|
+
readonly "ColorVariant": JsonObject;
|
|
164
166
|
readonly "Background": JsonObject;
|
|
165
167
|
readonly "ThemeBackground": JsonObject;
|
|
166
168
|
readonly "SolidBackground": JsonObject;
|
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-ZIRSAFRC.js';
|