@openpresentation/opf 0.20.5 → 0.21.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-Z75YB54S.js → chunk-2X4ZG2CN.js} +5 -5
- package/dist/{chunk-WD4W7KKK.js → chunk-6UBIR2U3.js} +54 -11
- package/dist/{chunk-DYGYMBBW.js → chunk-7YFMWEPQ.js} +2 -2
- package/dist/{chunk-7PQZDC2H.js → chunk-ARLOTG23.js} +1 -1
- package/dist/{chunk-VFMHM2IL.js → chunk-BWWGYOOG.js} +22 -0
- package/dist/{chunk-IDMQWS6O.js → chunk-D2XIDBUB.js} +6 -6
- package/dist/{chunk-5SQ6CIWR.js → chunk-D7WZVSNV.js} +5 -5
- package/dist/{chunk-OIGCC6VA.js → chunk-EFICNDGV.js} +2 -2
- package/dist/{chunk-YOLDSF7U.js → chunk-THEUCQZZ.js} +1 -1
- package/dist/{chunk-S4FR7ATF.js → chunk-U55BQQKU.js} +1 -1
- package/dist/{chunk-V66KJA3H.js → chunk-VLFDWV7L.js} +1 -1
- package/dist/{chunk-52GKVP3I.js → chunk-W62CX2WG.js} +22 -12
- package/dist/{chunk-URUNMZFO.js → chunk-WZPFIPOO.js} +2 -2
- package/dist/{chunk-XAYMPBNE.js → chunk-X6SB52RP.js} +333 -149
- package/dist/{chunk-2M7U4WL3.js → chunk-XQARTOZJ.js} +260 -104
- package/dist/{chunk-TZ5IZETE.js → chunk-YD44KIRA.js} +1 -1
- package/dist/{chunk-TCBEF5OY.js → chunk-YZ7RZ4MU.js} +1 -1
- package/dist/{composition-QtS1rnhv.d.ts → composition-DzAV0cfU.d.ts} +133 -3
- package/dist/composition.d.ts +1 -1
- package/dist/composition.js +1 -1
- package/dist/conversion-524P44NX.js +19 -0
- package/dist/{conversion-Cqwu0Ds9.d.ts → conversion-CtTg2ivR.d.ts} +6 -5
- package/dist/convert.d.ts +3 -3
- package/dist/convert.js +7 -7
- package/dist/data.d.ts +1 -1
- package/dist/data.js +2 -2
- package/dist/{deck-report-BdG5H3Qj.d.ts → deck-report-971nEzTY.d.ts} +2 -2
- package/dist/deck.d.ts +6 -6
- package/dist/deck.js +10 -10
- package/dist/diff.d.ts +1 -1
- package/dist/diff.js +5 -5
- package/dist/docs.js +16 -10
- package/dist/examples.d.ts +1 -1
- package/dist/{finding-DqgwzUmr.d.ts → finding-l9dlQ2NF.d.ts} +4 -0
- package/dist/format.js +2 -2
- package/dist/index.d.ts +21 -15
- package/dist/index.js +20 -20
- package/dist/markdown.d.ts +4 -4
- package/dist/markdown.js +7 -7
- package/dist/node-engine.d.ts +30 -9
- package/dist/node-engine.js +20 -20
- package/dist/{pagination-CAX6mHG6.d.ts → pagination-BTqRj7dM.d.ts} +2 -2
- package/dist/pagination.d.ts +2 -2
- package/dist/pagination.js +4 -4
- package/dist/patch.d.ts +1 -1
- package/dist/patch.js +4 -4
- package/dist/{presentation-BG4QCcdB.d.ts → presentation-ZNcXSpvm.d.ts} +50 -4
- package/dist/repo-readme.js +1 -1
- package/dist/schemas.js +1 -1
- package/dist/spec/schemas/finding.schema.json +6 -1
- package/dist/spec/schemas/opf.schema.json +8 -0
- package/dist/types.d.ts +2 -2
- package/dist/{validation-types-DRaNnieo.d.ts → validation-types-uLDSrJgM.d.ts} +3 -3
- package/dist/{validator-BJtXHJKh.d.ts → validator-DxAjRPmE.d.ts} +4 -10
- package/dist/validator.d.ts +5 -5
- package/dist/validator.js +3 -3
- package/dist/yaml.d.ts +4 -4
- package/dist/yaml.js +7 -7
- package/package.json +1 -1
- package/dist/conversion-DRCJIMWS.js +0 -19
|
@@ -3175,6 +3175,14 @@
|
|
|
3175
3175
|
"description": "Text alternative for the chart: what the data shows (the point and the key numbers), not 'a chart' or 'bar chart'. The preview exposes it as the chart's accessible name (role img with aria-label) and the PowerPoint export writes it as the chart frame's alternative text (descr); import reads it back. An empty string marks the chart decorative, with the same meaning as an empty Asset alt, but it is a reviewed choice that opf/chart-text-alternative still reports as info (a chart almost always carries a message). When absent, validate accepts text beside the chart instead.",
|
|
3176
3176
|
"examples": ["Revenue grew from $12M in Q1 to $18M in Q2, with the steepest rise in the West region."]
|
|
3177
3177
|
},
|
|
3178
|
+
"colors": {
|
|
3179
|
+
"type": "array",
|
|
3180
|
+
"items": { "$ref": "#/$defs/ColorRef" },
|
|
3181
|
+
"minItems": 1,
|
|
3182
|
+
"maxItems": 24,
|
|
3183
|
+
"description": "Optional series colors, by position: entry i replaces palette color i, the color of series i (the i-th plotted value column), of slice or category i on a pie, doughnut, treemap or funnel chart, and of the i-th color a histogram, pareto, waterfall or box-and-whisker chart draws with. An entry is any ColorRef: a hex color, a color-scheme slot or role ('accent3', 'secondary') or a 'var:<id>' color variable; a scheme name keeps following the deck if its scheme changes, and is written to PowerPoint as a theme color. Positions past the last entry keep the deck palette (accent1 to accent6, then their tints). A color is kept at 3:1 contrast against the chart panel (a lighter or darker shade is used when it falls short) and 'chart.highlight' wins over it: highlighted marks take the primary color and the rest the muted neutral. A color that cannot be resolved falls back to the palette color for its position. Absent keeps the deck palette exactly.",
|
|
3184
|
+
"examples": [["accent3", "#7B241C"]]
|
|
3185
|
+
},
|
|
3178
3186
|
"highlight": {
|
|
3179
3187
|
"$ref": "#/$defs/ChartHighlight",
|
|
3180
3188
|
"description": "Optional emphasis: the series and/or categories that carry the message. The engines draw the highlighted marks in the deck's primary (accent) color and every other mark in a muted neutral derived from the theme (a light grey on a light chart panel, a dim grey on a dark one); there is no color field. A mark is highlighted when its series OR its category is named. Absent keeps today's colors exactly. Supported on column, bar and line charts (series and categories; on a line a category highlight marks that category's points), pie and doughnut charts (categories, one per slice), and area, scatter and radar charts (series); the histogram, pareto, waterfall, funnel, treemap, box-and-whisker, map and combo constructs drop the option with a 'chart-option-adapted' diagnostic, as does a part the type cannot highlight. A name that matches no column or row label is a 'chart-highlight-unknown-name' error."
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { P as Presentation } from './presentation-
|
|
1
|
+
export { P as Presentation } from './presentation-ZNcXSpvm.js';
|
|
2
2
|
export { b as CatalogKind } from './catalog-refs-CSHevLn1.js';
|
|
3
3
|
export { SchemaName } from './schemas.js';
|
|
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-
|
|
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';
|
|
5
5
|
import './json-BFSdESOE.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as Catalog } from './catalog-refs-CSHevLn1.js';
|
|
2
|
-
import { T as TextMeasurement } from './composition-
|
|
3
|
-
import { c as FindingSeverity, F as FindingReport } from './finding-
|
|
2
|
+
import { T as TextMeasurement } from './composition-DzAV0cfU.js';
|
|
3
|
+
import { c as FindingSeverity, F as FindingReport } from './finding-l9dlQ2NF.js';
|
|
4
4
|
import { J as JsonPrimitive } from './json-BFSdESOE.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -249,7 +249,7 @@ interface ValidateOptions {
|
|
|
249
249
|
thresholds?: Partial<ValidationThresholds>;
|
|
250
250
|
/** The host's fonts. The layout rules use `fonts.textMeasurement`; see `ValidateFonts`. */
|
|
251
251
|
fonts?: ValidateFonts;
|
|
252
|
-
/** Chart series palette (opaque `#RRGGBB`), in the engine's order. Default:
|
|
252
|
+
/** Chart series palette (opaque `#RRGGBB`), in the engine's order. Default: `chartSeriesPalette` of each slide's colour scheme (accent1 to accent6, then their tints), as opf-render and opf-pptx draw them. */
|
|
253
253
|
chartPalette?: readonly string[];
|
|
254
254
|
/** Check as a template (true) or a normal deck (false), overriding the root `template` marker. */
|
|
255
255
|
template?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { b as CatalogKind } from './catalog-refs-CSHevLn1.js';
|
|
2
2
|
import { SchemaName } from './schemas.js';
|
|
3
|
-
import { a as Finding } from './finding-
|
|
4
|
-
import { P as Presentation } from './presentation-
|
|
5
|
-
import { b as ValidationThresholds, c as ValidationRuleInfo, V as ValidationReport, a as ValidateOptions } from './validation-types-
|
|
3
|
+
import { a as Finding } from './finding-l9dlQ2NF.js';
|
|
4
|
+
import { P as Presentation } from './presentation-ZNcXSpvm.js';
|
|
5
|
+
import { b as ValidationThresholds, c as ValidationRuleInfo, V as ValidationReport, a as ValidateOptions } from './validation-types-uLDSrJgM.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* RR-78: the version of the catalog record schemas (spec/schemas/<kind>.schema.json) this core reads. A catalog package
|
|
@@ -19,12 +19,6 @@ type CatalogRecordKind = CatalogKind | CatalogDisplayKind;
|
|
|
19
19
|
/** The companion schema each catalog record kind validates against. */
|
|
20
20
|
declare const catalogSchemaNames: Readonly<Record<CatalogRecordKind, SchemaName>>;
|
|
21
21
|
|
|
22
|
-
/**
|
|
23
|
-
* The series palette opf-render and opf-pptx draw charts with (`CHART_COLORS`), in series order. A host with
|
|
24
|
-
* its own palette passes `ValidateOptions.chartPalette`.
|
|
25
|
-
*/
|
|
26
|
-
declare const DEFAULT_CHART_PALETTE: readonly string[];
|
|
27
|
-
|
|
28
22
|
/**
|
|
29
23
|
* The rule registry: every rule `validate` can report, with its category, default severity, cost, rationale and the
|
|
30
24
|
* standard it follows. The format, references and policy rules are produced by the schema and reference checks; the
|
|
@@ -70,4 +64,4 @@ declare function assertValid(value: unknown, options?: ValidateOptions): asserts
|
|
|
70
64
|
declare function validateCatalogRecord(kind: CatalogRecordKind, value: unknown): ValidationReport;
|
|
71
65
|
declare function assertValidCatalogRecord(kind: CatalogRecordKind, value: unknown): void;
|
|
72
66
|
|
|
73
|
-
export { CATALOG_SCHEMA as C,
|
|
67
|
+
export { CATALOG_SCHEMA as C, DEFAULT_VALIDATION_THRESHOLDS as D, OPFValidationError as O, type CatalogDisplayKind as a, type CatalogRecordKind as b, assertValid as c, assertValidCatalogRecord as d, catalogDisplayKinds as e, catalogSchemaNames as f, findValidationRule as g, validateCatalogRecord as h, validationRules as i, promotedRegionKeys as p, validate as v };
|
package/dist/validator.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { D as
|
|
2
|
-
import './finding-
|
|
3
|
-
import './presentation-
|
|
4
|
-
export { C as Contract, d as ValidateFonts, a as ValidateOptions, e as ValidationCategory, f as ValidationChecks, V as ValidationReport, g as ValidationRuleCost, c as ValidationRuleInfo, b as ValidationThresholds, v as validationCategories } from './validation-types-
|
|
1
|
+
export { D as DEFAULT_VALIDATION_THRESHOLDS, O as OPFValidationError, c as assertValid, d as assertValidCatalogRecord, g as findValidationRule, p as promotedRegionKeys, v as validate, h as validateCatalogRecord, i as validationRules } from './validator-DxAjRPmE.js';
|
|
2
|
+
import './finding-l9dlQ2NF.js';
|
|
3
|
+
import './presentation-ZNcXSpvm.js';
|
|
4
|
+
export { C as Contract, d as ValidateFonts, a as ValidateOptions, e as ValidationCategory, f as ValidationChecks, V as ValidationReport, g as ValidationRuleCost, c as ValidationRuleInfo, b as ValidationThresholds, v as validationCategories } from './validation-types-uLDSrJgM.js';
|
|
5
5
|
import './catalog-refs-CSHevLn1.js';
|
|
6
6
|
import './schemas.js';
|
|
7
7
|
import './json-BFSdESOE.js';
|
|
8
|
-
import './composition-
|
|
8
|
+
import './composition-DzAV0cfU.js';
|
|
9
9
|
import './chart-data-BnNqgnC-.js';
|
package/dist/validator.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { promotedRegionKeys } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, assertValid, assertValidCatalogRecord, findValidationRule, validate, validateCatalogRecord, validationCategories, validationRules } from './chunk-XQARTOZJ.js';
|
|
2
|
+
export { promotedRegionKeys } from './chunk-X6SB52RP.js';
|
|
3
|
+
import './chunk-BWWGYOOG.js';
|
package/dist/yaml.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-
|
|
3
|
-
import { a as ValidateOptions, V as ValidationReport } from './validation-types-
|
|
4
|
-
import { a as Finding, b as FindingLocation } from './finding-
|
|
5
|
-
import './composition-
|
|
2
|
+
import { P as Presentation } from './presentation-ZNcXSpvm.js';
|
|
3
|
+
import { a as ValidateOptions, V as ValidationReport } from './validation-types-uLDSrJgM.js';
|
|
4
|
+
import { a as Finding, b as FindingLocation } from './finding-l9dlQ2NF.js';
|
|
5
|
+
import './composition-DzAV0cfU.js';
|
|
6
6
|
import './chart-data-BnNqgnC-.js';
|
|
7
7
|
import './json-BFSdESOE.js';
|
|
8
8
|
|
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-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
1
|
+
export { OPFYamlError, YAML_SCHEMA_URL, fromYaml, parseYamlData, scanYamlComments, toYaml } from './chunk-D2XIDBUB.js';
|
|
2
|
+
import './chunk-ARLOTG23.js';
|
|
3
|
+
import './chunk-U55BQQKU.js';
|
|
4
|
+
import './chunk-YZ7RZ4MU.js';
|
|
5
|
+
import './chunk-XQARTOZJ.js';
|
|
6
|
+
import './chunk-X6SB52RP.js';
|
|
7
|
+
import './chunk-BWWGYOOG.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpresentation/opf",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "Canonical Open Presentation Format schemas, TypeScript types, local validation and composition; in Node, the file API and the CLI defaults register the pptx.gallery catalog of @openpresentation/gallery.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Open Presentation",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export { convertFiles, deckFileFormat, exportFormatOf, openDeck, planConversion, readInput, saveDeck, writePlanned } from './chunk-WD4W7KKK.js';
|
|
2
|
-
import './chunk-OIGCC6VA.js';
|
|
3
|
-
import './chunk-52GKVP3I.js';
|
|
4
|
-
import './chunk-UJSAR6GF.js';
|
|
5
|
-
import './chunk-TZ5IZETE.js';
|
|
6
|
-
import './chunk-5SQ6CIWR.js';
|
|
7
|
-
import './chunk-Z75YB54S.js';
|
|
8
|
-
import './chunk-IDMQWS6O.js';
|
|
9
|
-
import './chunk-7PQZDC2H.js';
|
|
10
|
-
import './chunk-URUNMZFO.js';
|
|
11
|
-
import './chunk-YOLDSF7U.js';
|
|
12
|
-
import './chunk-S4FR7ATF.js';
|
|
13
|
-
import './chunk-DYGYMBBW.js';
|
|
14
|
-
import './chunk-V66KJA3H.js';
|
|
15
|
-
import './chunk-TCBEF5OY.js';
|
|
16
|
-
import './chunk-2M7U4WL3.js';
|
|
17
|
-
import './chunk-XAYMPBNE.js';
|
|
18
|
-
import './chunk-VFMHM2IL.js';
|
|
19
|
-
import './chunk-F7PLNWHQ.js';
|