@openpresentation/opf 0.34.1 → 0.34.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 +18 -18
- package/dist/{catalog-refs-CoIrOdAw.d.ts → catalog-refs-wtuudZTe.d.ts} +12 -3
- package/dist/{catalog-schemas-FjLRPtjB.d.ts → catalog-schemas-CSxuFtsu.d.ts} +1 -1
- package/dist/{chunk-HHVQ2SDT.js → chunk-6MSH3KCZ.js} +1 -1
- package/dist/{chunk-SR6T4LKI.js → chunk-AQ3WR3H7.js} +2 -2
- package/dist/{chunk-X72WPTST.js → chunk-EQCZ2SFD.js} +6 -6
- package/dist/chunk-HSXWDXKM.js +1 -0
- package/dist/{chunk-6PMXVP5G.js → chunk-HX4HEJB4.js} +201 -21
- package/dist/{chunk-MAFJ5O2D.js → chunk-IDYYLJCQ.js} +6 -6
- package/dist/{chunk-CJVKOJ6B.js → chunk-IGT4523S.js} +406 -58
- package/dist/{chunk-XLSWZSQS.js → chunk-KJFCHCWV.js} +2 -2
- package/dist/{chunk-ABA2D6X5.js → chunk-MDAXXFAY.js} +2 -2
- package/dist/{chunk-AGYPRTEC.js → chunk-NMZCPZ3R.js} +3 -3
- package/dist/{chunk-2B6GLT2O.js → chunk-P2X4BBW2.js} +1 -1
- package/dist/{chunk-FCSYIBVR.js → chunk-PHOSM2RA.js} +1 -1
- package/dist/{chunk-MUILZGRY.js → chunk-RM4Z7ZSW.js} +4 -4
- package/dist/{chunk-244OPLAV.js → chunk-UKI43JE6.js} +1 -1
- package/dist/{chunk-AAWHOCXS.js → chunk-V4G3BYPY.js} +2 -2
- package/dist/{chunk-LCT5ZV3Q.js → chunk-VI7VWDTN.js} +17 -1
- package/dist/{chunk-CQXBGZQP.js → chunk-VVPPMHP6.js} +5 -5
- package/dist/{chunk-AEHDXNZX.js → chunk-WBPXRUZT.js} +459 -270
- package/dist/{chunk-L3MCLD3X.js → chunk-XLXCXEVF.js} +2 -2
- package/dist/{composition-CvtvgBDE.d.ts → composition-DF07Ha4R.d.ts} +154 -135
- package/dist/composition.d.ts +2 -2
- package/dist/composition.js +1 -1
- package/dist/{conversion-CyNRlWGw.d.ts → conversion-52ki0lfZ.d.ts} +9 -7
- package/dist/conversion-F3HSCFOV.js +25 -0
- package/dist/convert.d.ts +2 -2
- package/dist/convert.js +7 -7
- package/dist/data.d.ts +1 -1
- package/dist/data.js +2 -2
- package/dist/{deck-report-BVlQZ42f.d.ts → deck-report-C3EsoHC3.d.ts} +3 -3
- package/dist/deck.d.ts +5 -5
- package/dist/deck.js +11 -11
- package/dist/diff.js +4 -4
- package/dist/docs.js +16 -16
- package/dist/example-files/technical/assets/alice.png +0 -0
- package/dist/example-files/technical/assets/context-photo.png +0 -0
- package/dist/example-files/technical/assets/cover-image.png +0 -0
- package/dist/example-files/technical/assets/cover.png +0 -0
- package/dist/example-files/technical/assets/diagram.svg +1 -0
- package/dist/example-files/technical/assets/icon.svg +1 -0
- package/dist/example-files/technical/assets/logo-dark.svg +1 -0
- package/dist/example-files/technical/assets/logo-light.svg +1 -0
- package/dist/example-files/technical/assets/logo.svg +1 -0
- package/dist/example-files/technical/assets/primary-logo.svg +1 -0
- package/dist/example-files/technical/assets/product-shot.png +0 -0
- package/dist/example-files/technical/assets/watermark.png +0 -0
- package/dist/example-files/technical/assets/wordmark.svg +1 -0
- package/dist/examples.js +49 -1
- package/dist/format.js +2 -2
- package/dist/ids.js +4 -4
- package/dist/index.d.ts +12 -12
- package/dist/index.js +21 -21
- package/dist/markdown.d.ts +1 -1
- package/dist/markdown.js +8 -8
- package/dist/node-engine.d.ts +21 -7
- package/dist/node-engine.js +37 -21
- package/dist/{pagination-CZQQYk7L.d.ts → pagination-Do7vNgU-.d.ts} +2 -2
- package/dist/pagination.d.ts +3 -3
- package/dist/pagination.js +4 -4
- package/dist/patch.js +3 -3
- package/dist/precompiled.js +2 -2
- package/dist/{presentation-s9262acV.d.ts → presentation-ANs2WkaS.d.ts} +8 -0
- package/dist/schema-engine-ajv.js +1 -1
- package/dist/schema-engine-precompiled.js +2 -2
- package/dist/schema.d.ts +2 -2
- package/dist/schema.js +3 -3
- package/dist/schemas.js +1 -1
- package/dist/source.d.ts +5 -0
- package/dist/source.js +10 -10
- package/dist/spec/schemas/icon-set.schema.json +5 -0
- package/dist/spec/schemas/opf.schema.json +9 -1
- package/dist/symbol-font-encodings.js +12695 -12736
- package/dist/types.d.ts +2 -2
- package/dist/{validation-types-CYbsUuZ9.d.ts → validation-types-BNS41nzb.d.ts} +2 -2
- package/dist/validator.d.ts +4 -4
- package/dist/validator.js +3 -3
- package/dist/yaml.d.ts +1 -1
- package/dist/yaml.js +7 -7
- package/package.json +7 -7
- package/dist/chunk-UJZN2ZH6.js +0 -1
- package/dist/conversion-CSQ5EHD2.js +0 -25
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="640" height="360" viewBox="0 0 640 360" role="img" aria-label="Three-step flow diagram"><title>Three-step flow diagram</title><rect width="640" height="360" fill="#F8FAFC"/><g stroke="#334155" stroke-width="3" fill="none"><path d="M200 180H260M380 180H440"/></g><rect x="60" y="130" width="140" height="100" rx="14" fill="#2563EB"/><rect x="260" y="130" width="120" height="100" rx="14" fill="#14B8A6"/><rect x="440" y="130" width="140" height="100" rx="14" fill="#7C3AED"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128" role="img" aria-label="Example icon"><title>Example icon</title><rect x="4" y="4" width="120" height="120" rx="28" fill="#2563EB"/><g transform="translate(24 24) scale(.88)"><rect x="8" y="10" width="34" height="34" rx="7" fill="#FFFFFF"/><rect x="48" y="10" width="34" height="34" rx="7" fill="#CFE8F3"/><rect x="8" y="50" width="34" height="34" rx="7" fill="#CFE8F3"/><rect x="48" y="50" width="34" height="34" rx="7" fill="#FFFFFF"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="320" height="96" viewBox="0 0 320 96" role="img" aria-label="Example logo for light backgrounds"><title>Example logo for light backgrounds</title><rect x="8" y="10" width="34" height="34" rx="7" fill="#2563EB"/><rect x="48" y="10" width="34" height="34" rx="7" fill="#14B8A6"/><rect x="8" y="50" width="34" height="34" rx="7" fill="#14B8A6"/><rect x="48" y="50" width="34" height="34" rx="7" fill="#2563EB"/><rect x="110" y="23" width="188" height="13" rx="6" fill="#0F172A"/><rect x="110" y="49" width="132" height="11" rx="5" fill="#0F172A" fill-opacity=".62"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="320" height="96" viewBox="0 0 320 96" role="img" aria-label="Example logo for dark backgrounds"><title>Example logo for dark backgrounds</title><rect x="8" y="10" width="34" height="34" rx="7" fill="#FFFFFF"/><rect x="48" y="10" width="34" height="34" rx="7" fill="#FFFFFF"/><rect x="8" y="50" width="34" height="34" rx="7" fill="#FFFFFF"/><rect x="48" y="50" width="34" height="34" rx="7" fill="#FFFFFF"/><rect x="110" y="23" width="188" height="13" rx="6" fill="#FFFFFF"/><rect x="110" y="49" width="132" height="11" rx="5" fill="#FFFFFF" fill-opacity=".62"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="320" height="96" viewBox="0 0 320 96" role="img" aria-label="Example logo"><title>Example logo</title><rect x="8" y="10" width="34" height="34" rx="7" fill="#2563EB"/><rect x="48" y="10" width="34" height="34" rx="7" fill="#14B8A6"/><rect x="8" y="50" width="34" height="34" rx="7" fill="#14B8A6"/><rect x="48" y="50" width="34" height="34" rx="7" fill="#2563EB"/><rect x="110" y="23" width="188" height="13" rx="6" fill="#0F172A"/><rect x="110" y="49" width="132" height="11" rx="5" fill="#0F172A" fill-opacity=".62"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="320" height="96" viewBox="0 0 320 96" role="img" aria-label="Primary organization logo"><title>Primary organization logo</title><rect x="8" y="10" width="34" height="34" rx="7" fill="#7C3AED"/><rect x="48" y="10" width="34" height="34" rx="7" fill="#DB2777"/><rect x="8" y="50" width="34" height="34" rx="7" fill="#DB2777"/><rect x="48" y="50" width="34" height="34" rx="7" fill="#7C3AED"/><rect x="110" y="23" width="188" height="13" rx="6" fill="#0F172A"/><rect x="110" y="49" width="132" height="11" rx="5" fill="#0F172A" fill-opacity=".62"/></svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="320" height="96" viewBox="0 0 320 96" role="img" aria-label="Example wordmark"><title>Example wordmark</title><rect x="110" y="23" width="188" height="13" rx="6" fill="#0F172A"/><rect x="110" y="49" width="132" height="11" rx="5" fill="#0F172A" fill-opacity=".62"/></svg>
|
package/dist/examples.js
CHANGED
|
@@ -109497,7 +109497,7 @@ var examplesData = Object.freeze([
|
|
|
109497
109497
|
"deck": {
|
|
109498
109498
|
"$schema": "https://openpresentation.org/schema/opf/v1",
|
|
109499
109499
|
"name": "Trees and overlapping sets",
|
|
109500
|
-
"description": "Three shared-geometry diagram layouts: reporting lines, a hierarchy, and overlapping sets. All examples are illustrative.",
|
|
109500
|
+
"description": "Three shared-geometry diagram layouts: reporting lines (with an assistant), a hierarchy, and overlapping sets (with a named overlap). All examples are illustrative.",
|
|
109501
109501
|
"design": {
|
|
109502
109502
|
"background": "light1",
|
|
109503
109503
|
"footer": {
|
|
@@ -109577,6 +109577,54 @@ var examplesData = Object.freeze([
|
|
|
109577
109577
|
}
|
|
109578
109578
|
],
|
|
109579
109579
|
"id": "layout-venn"
|
|
109580
|
+
},
|
|
109581
|
+
{
|
|
109582
|
+
"layout": "org-chart",
|
|
109583
|
+
"title": "Give the pilot lead a chief of staff",
|
|
109584
|
+
"blocks": [
|
|
109585
|
+
{
|
|
109586
|
+
"region": "people",
|
|
109587
|
+
"items": [
|
|
109588
|
+
{
|
|
109589
|
+
"text": "Pilot lead",
|
|
109590
|
+
"level": 0
|
|
109591
|
+
},
|
|
109592
|
+
{
|
|
109593
|
+
"text": "Chief of staff",
|
|
109594
|
+
"level": 1,
|
|
109595
|
+
"assistant": true
|
|
109596
|
+
},
|
|
109597
|
+
{
|
|
109598
|
+
"text": "Delivery",
|
|
109599
|
+
"level": 1
|
|
109600
|
+
},
|
|
109601
|
+
{
|
|
109602
|
+
"text": "Evidence",
|
|
109603
|
+
"level": 1
|
|
109604
|
+
}
|
|
109605
|
+
]
|
|
109606
|
+
}
|
|
109607
|
+
],
|
|
109608
|
+
"id": "layout-org-chart-assistant"
|
|
109609
|
+
},
|
|
109610
|
+
{
|
|
109611
|
+
"layout": "venn",
|
|
109612
|
+
"title": "Where the pilot earns its keep",
|
|
109613
|
+
"blocks": [
|
|
109614
|
+
{
|
|
109615
|
+
"region": "sets",
|
|
109616
|
+
"items": [
|
|
109617
|
+
"Clear scope",
|
|
109618
|
+
"Evidence",
|
|
109619
|
+
"Shared goal",
|
|
109620
|
+
{
|
|
109621
|
+
"text": "Ready to scale",
|
|
109622
|
+
"overlap": true
|
|
109623
|
+
}
|
|
109624
|
+
]
|
|
109625
|
+
}
|
|
109626
|
+
],
|
|
109627
|
+
"id": "layout-venn-overlap"
|
|
109580
109628
|
}
|
|
109581
109629
|
],
|
|
109582
109630
|
"catalogs": {
|
package/dist/format.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { OPFFormatError, format, isFormatted, sortPresentationKeys } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { OPFFormatError, format, isFormatted, sortPresentationKeys } from './chunk-6MSH3KCZ.js';
|
|
2
|
+
import './chunk-VI7VWDTN.js';
|
|
3
3
|
import './chunk-PRXZD2II.js';
|
package/dist/ids.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { OPFIdError, assignIds, touches } from './chunk-
|
|
2
|
-
export { OPFPatchHashError, documentHash, idToken, isIdToken, resolveIdPatch, resolveIdPointer, toIdPatch, toIdPointer } from './chunk-
|
|
1
|
+
export { OPFIdError, assignIds, touches } from './chunk-KJFCHCWV.js';
|
|
2
|
+
export { OPFPatchHashError, documentHash, idToken, isIdToken, resolveIdPatch, resolveIdPointer, toIdPatch, toIdPointer } from './chunk-WBPXRUZT.js';
|
|
3
3
|
import './chunk-JBARNYFR.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-VI7VWDTN.js';
|
|
5
|
+
import './chunk-IGT4523S.js';
|
|
6
6
|
import './chunk-BLCDUM7B.js';
|
|
7
7
|
import './chunk-PRXZD2II.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
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 { a4 as ConvertInput, a5 as ConvertOptions, a6 as ConvertResult, a7 as ConvertFormat, a8 as OpenOptions, a9 as SaveOptions, aa as SaveResult } from './conversion-
|
|
3
|
-
export { ab as ConvertedFile, i as ExportFormat, F as FontsHandle, O as OPFApiError, o as OPFExportError, p as OPFImportError, S as SlideSelection, W as parseSlideSelection } from './conversion-
|
|
2
|
+
import { a4 as ConvertInput, a5 as ConvertOptions, a6 as ConvertResult, a7 as ConvertFormat, a8 as OpenOptions, a9 as SaveOptions, aa as SaveResult } from './conversion-52ki0lfZ.js';
|
|
3
|
+
export { ab as ConvertedFile, i as ExportFormat, F as FontsHandle, O as OPFApiError, o as OPFExportError, p as OPFImportError, S as SlideSelection, W as parseSlideSelection } from './conversion-52ki0lfZ.js';
|
|
4
4
|
export { R as RuleExplanation, e as explain } from './explain-iZeNOUc6.js';
|
|
5
5
|
import { createValidator as createValidator$1, validate as validate$1 } from './validator.js';
|
|
6
6
|
export { DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, ValidationCacheInfo, Validator, assertValid, assertValidCatalogRecord, findValidationRule, validateCatalogRecord, validationRules } from './validator.js';
|
|
7
|
-
import { R as ResolveVariablesOptions, h as VariableDiagnostic } from './validation-types-
|
|
8
|
-
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-
|
|
9
|
-
import { a as FontFamilies, T as TextMeasurement } from './composition-
|
|
10
|
-
export { b as CHART_TYPES, c as ChartDrawPlan, d as ChartFallback, C as ComposeSlideOptions, E as ENGINE_DEFAULT_CHART_TYPES, e as ENGINE_DEFAULT_COLOR_SCHEME, f as ENGINE_DEFAULT_FONT_SCHEME, g as ENGINE_DEFAULT_THEME, F as Fonts, h as LANGUAGES, i as LOGO_SHAPES, j as LanguageFamilyName, k as LanguageVocabulary, L as LayoutDiagnostic, l as LogoShape, m as LogoVariant, n as MeasureTextWidth, N as NumberLocale, R as ResolveLogoOptions, o as ResolvedLogo, S as SOCIAL_PLATFORMS, p as SocialPlatformVocabulary, q as TextStyle, r as asciiDigits, s as chartDrawDiagnostics, t as chartDrawPlan, u as diagramsPending, v as ensureDiagrams, w as ensureShapes, x as formatNumber, y as formatPercentNumber, z as isPlaceLabel, A as isSupportedNumberingSystem, B as languageInEffect, D as localizeDigits, G as markLabelColor, H as normalizeLanguageFamily, I as numberLocale, J as numberingSystemExtension, K as numberingSystemOf, O as numeralScripts, P as plainLanguageTag, Q as shapesPending, U as supportedNumberingSystems } from './composition-
|
|
7
|
+
import { R as ResolveVariablesOptions, h as VariableDiagnostic } from './validation-types-BNS41nzb.js';
|
|
8
|
+
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-BNS41nzb.js';
|
|
9
|
+
import { a as FontFamilies, T as TextMeasurement } from './composition-DF07Ha4R.js';
|
|
10
|
+
export { b as CHART_TYPES, c as ChartDrawPlan, d as ChartFallback, C as ComposeSlideOptions, E as ENGINE_DEFAULT_CHART_TYPES, e as ENGINE_DEFAULT_COLOR_SCHEME, f as ENGINE_DEFAULT_FONT_SCHEME, g as ENGINE_DEFAULT_THEME, F as Fonts, h as LANGUAGES, i as LOGO_SHAPES, j as LanguageFamilyName, k as LanguageVocabulary, L as LayoutDiagnostic, l as LogoShape, m as LogoVariant, n as MeasureTextWidth, N as NumberLocale, R as ResolveLogoOptions, o as ResolvedLogo, S as SOCIAL_PLATFORMS, p as SocialPlatformVocabulary, q as TextStyle, r as asciiDigits, s as chartDrawDiagnostics, t as chartDrawPlan, u as diagramsPending, v as ensureDiagrams, w as ensureShapes, x as formatNumber, y as formatPercentNumber, z as isPlaceLabel, A as isSupportedNumberingSystem, B as languageInEffect, D as localizeDigits, G as markLabelColor, H as normalizeLanguageFamily, I as numberLocale, J as numberingSystemExtension, K as numberingSystemOf, O as numeralScripts, P as plainLanguageTag, Q as shapesPending, U as supportedNumberingSystems } from './composition-DF07Ha4R.js';
|
|
11
11
|
export { SpecFileEntry, SpecFileKind, SpecFilePath, specFileEntries, specFileKinds, specFilePaths } from './spec-files.js';
|
|
12
|
-
import { P as Presentation } from './presentation-
|
|
12
|
+
import { P as Presentation } from './presentation-ANs2WkaS.js';
|
|
13
13
|
export { Audience, ChartType, ColorScheme, FontScheme, Language, Layout, Narrative, Purpose, SocialPlatform, Theme, Tone } from './types.js';
|
|
14
|
-
import { a as CatalogKind, U as UnresolvedReferenceDiagnostic, d as CatalogOptions, C as Catalog, c as RecordProvenance } from './catalog-refs-
|
|
15
|
-
export { e as CATALOG_GROUP_PATTERN, f as CATALOG_REFERENCE_PATTERN, g as CatalogRecordMap, h as CatalogRecords, i as CatalogReferenceSite, I as IconOptions, j as IconReference, k as IconResolution, l as IconSetRecord, O as OPFCatalogsOptionError, m as OPFUnresolvedReferenceError, n as ResolvedIcon, o as ResolvedReference, p as catalogGroupSource, q as catalogKinds, r as catalogRecords, s as catalogReferenceSites, t as embedIcons, u as ensureIcons, v as iconsPending, w as nearIconNames, x as parseIconReference, y as parseReference, z as resolveIcon, A as resolveReference, B as unresolvedReference } from './catalog-refs-
|
|
14
|
+
import { a as CatalogKind, U as UnresolvedReferenceDiagnostic, d as CatalogOptions, C as Catalog, c as RecordProvenance } from './catalog-refs-wtuudZTe.js';
|
|
15
|
+
export { e as CATALOG_GROUP_PATTERN, f as CATALOG_REFERENCE_PATTERN, g as CatalogRecordMap, h as CatalogRecords, i as CatalogReferenceSite, I as IconOptions, j as IconReference, k as IconResolution, l as IconSetRecord, O as OPFCatalogsOptionError, m as OPFUnresolvedReferenceError, n as ResolvedIcon, o as ResolvedReference, p as catalogGroupSource, q as catalogKinds, r as catalogRecords, s as catalogReferenceSites, t as embedIcons, u as ensureIcons, v as iconsPending, w as nearIconNames, x as parseIconReference, y as parseReference, z as resolveIcon, A as resolveReference, B as unresolvedReference } from './catalog-refs-wtuudZTe.js';
|
|
16
16
|
import { a as Finding, J as JsonPatchOperation } from './finding-l9dlQ2NF.js';
|
|
17
17
|
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';
|
|
18
|
-
export { a as CATALOG_SCHEMA, b as CatalogDisplayKind, C as CatalogRecordKind, c as catalogDisplayKinds, d as catalogIconKinds, e as catalogSchemaNames } from './catalog-schemas-
|
|
18
|
+
export { a as CATALOG_SCHEMA, b as CatalogDisplayKind, C as CatalogRecordKind, c as catalogDisplayKinds, d as catalogIconKinds, e as catalogSchemaNames } from './catalog-schemas-CSxuFtsu.js';
|
|
19
19
|
import { continueOverfull as continueOverfull$1, paginate as paginate$1 } from './pagination.js';
|
|
20
|
-
export { C as ContinuationResult, d as ContinuedSlide, O as OPFPaginationError, P as PaginatedPage, e as PaginationMapping, f as PaginationOptions, g as PaginationResult, a as PresentationPaginationOptions, b as PresentationPaginationResult, S as SlideContext, h as SlideContextDiagnostic, i as SlideContextOptions, j as blockUnits, k as continuationPages, l as paginateSlide, r as resolveSlideContext } from './pagination-
|
|
20
|
+
export { C as ContinuationResult, d as ContinuedSlide, O as OPFPaginationError, P as PaginatedPage, e as PaginationMapping, f as PaginationOptions, g as PaginationResult, a as PresentationPaginationOptions, b as PresentationPaginationResult, S as SlideContext, h as SlideContextDiagnostic, i as SlideContextOptions, j as blockUnits, k as continuationPages, l as paginateSlide, r as resolveSlideContext } from './pagination-Do7vNgU-.js';
|
|
21
21
|
export { ApplyPatchOptions, OPFPatchError, OPFPatchHashError, OPFPatchValidationError, PatchResult, applyPatch, documentHash, idToken, isIdToken, resolveIdPatch, resolveIdPointer, toIdPatch, toIdPointer } from './patch.js';
|
|
22
22
|
export { AssignIdsContext, AssignIdsOptions, AssignIdsResult, AssignedId, IdErrorCode, OPFIdError, PatchScope, PatchScopeKind, PatchTouch, assignIds, touches } from './ids.js';
|
|
23
23
|
export { DiffOptions, MergeConflict, MergeOptions, MergeResult, PresentationDiff, diff, merge } from './diff.js';
|
|
@@ -27,7 +27,7 @@ export { StringifyOptions, parse, stringify } from './deck.js';
|
|
|
27
27
|
export { DataCell, DataImportOptions, ImportedChart, ImportedChartData, ImportedChartType, ImportedTable, IngestOptions, OPFDataImportError, TabularData, ingest, parseTabularData } from './data.js';
|
|
28
28
|
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-B_k-WTex.js';
|
|
29
29
|
export { FONT_POLICY, FontAvailability, FontAvailabilityCode, FontAvailabilityDiagnostic, FontLicenseClass, FontPolicyDecision, FontPolicyEntry, FontPolicyTable, FontReplacement, FontReplacementCompatibility, FontReplacementMeasurement, applyFontPolicyDecisions, fontAvailabilityDiagnostics, fontPolicyFor } from './font-policy.js';
|
|
30
|
-
export { a as DECK_FORMATS, D as DeckFormat, P as ParseOptions, d as deckFormatOf } from './deck-report-
|
|
30
|
+
export { a as DECK_FORMATS, D as DeckFormat, P as ParseOptions, d as deckFormatOf } from './deck-report-C3EsoHC3.js';
|
|
31
31
|
import './json-BFSdESOE.js';
|
|
32
32
|
import './shape-geometry.js';
|
|
33
33
|
|
package/dist/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { defaultCatalogs } from './chunk-XJUMFH33.js';
|
|
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-
|
|
2
|
+
import { stats, embed, edit, OPFApiError, asApiError } from './chunk-NMZCPZ3R.js';
|
|
3
|
+
export { OPFApiError, OPFExportError, OPFImportError, OPFMoveToCustomError, copySlides, fill, fillRecords, localAssetSources, moveToCustom, parseSlideSelection, sameRecord, updateFromCatalog } from './chunk-NMZCPZ3R.js';
|
|
4
4
|
export { specFileEntries, specFileKinds, specFilePaths } from './chunk-W4DYDRV2.js';
|
|
5
5
|
export { FONT_POLICY, applyFontPolicyDecisions, fontAvailabilityDiagnostics, fontPolicyFor } from './chunk-FK5XG742.js';
|
|
6
|
-
export { OPFDataImportError, ingest, parseTabularData } from './chunk-
|
|
7
|
-
import { paginate, continueOverfull } from './chunk-
|
|
8
|
-
export { OPFPaginationError, blockUnits, continuationPages, paginateSlide } from './chunk-
|
|
9
|
-
export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-
|
|
10
|
-
export { fromMarkdown, toMarkdown } from './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
export { OPFFormatError, format } from './chunk-
|
|
6
|
+
export { OPFDataImportError, ingest, parseTabularData } from './chunk-UKI43JE6.js';
|
|
7
|
+
import { paginate, continueOverfull } from './chunk-XLXCXEVF.js';
|
|
8
|
+
export { OPFPaginationError, blockUnits, continuationPages, paginateSlide } from './chunk-XLXCXEVF.js';
|
|
9
|
+
export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-RM4Z7ZSW.js';
|
|
10
|
+
export { fromMarkdown, toMarkdown } from './chunk-IDYYLJCQ.js';
|
|
11
|
+
import './chunk-EQCZ2SFD.js';
|
|
12
|
+
export { OPFFormatError, format } from './chunk-6MSH3KCZ.js';
|
|
13
13
|
import './chunk-RYZPBJLB.js';
|
|
14
|
-
export { explain } from './chunk-
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
17
|
-
export { OPFMarkdownError } from './chunk-
|
|
18
|
-
import './chunk-
|
|
19
|
-
export { OPFIdError, assignIds, touches } from './chunk-
|
|
20
|
-
export { diff, merge } from './chunk-
|
|
21
|
-
import { validate, createValidator, OPFValidationError } from './chunk-
|
|
22
|
-
export { CATALOG_SCHEMA, DEFAULT_VALIDATION_THRESHOLDS, OPFPatchError, OPFPatchHashError, OPFPatchValidationError, OPFValidationError, applyPatch, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogIconKinds, catalogSchemaNames, documentHash, findValidationRule, idToken, isIdToken, resolveDrawnFontFamilies, resolveIdPatch, resolveIdPointer, resolveSlideContext, toIdPatch, toIdPointer, validateCatalogRecord, validationCategories, validationRules } from './chunk-
|
|
14
|
+
export { explain } from './chunk-V4G3BYPY.js';
|
|
15
|
+
import './chunk-VVPPMHP6.js';
|
|
16
|
+
import './chunk-P2X4BBW2.js';
|
|
17
|
+
export { OPFMarkdownError } from './chunk-MDAXXFAY.js';
|
|
18
|
+
import './chunk-PHOSM2RA.js';
|
|
19
|
+
export { OPFIdError, assignIds, touches } from './chunk-KJFCHCWV.js';
|
|
20
|
+
export { diff, merge } from './chunk-AQ3WR3H7.js';
|
|
21
|
+
import { validate, createValidator, OPFValidationError } from './chunk-WBPXRUZT.js';
|
|
22
|
+
export { CATALOG_SCHEMA, DEFAULT_VALIDATION_THRESHOLDS, OPFPatchError, OPFPatchHashError, OPFPatchValidationError, OPFValidationError, applyPatch, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogIconKinds, catalogSchemaNames, documentHash, findValidationRule, idToken, isIdToken, resolveDrawnFontFamilies, resolveIdPatch, resolveIdPointer, resolveSlideContext, toIdPatch, toIdPointer, validateCatalogRecord, validationCategories, validationRules } from './chunk-WBPXRUZT.js';
|
|
23
23
|
import './chunk-JBARNYFR.js';
|
|
24
|
-
export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-
|
|
25
|
-
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, asciiDigits, catalogGroupSource, catalogKinds, catalogRecords, catalogReferenceSites, chartDrawDiagnostics, chartDrawPlan, chartNumber, coerceVariableValue, datasetDiagnostics, diagramsPending, embedIcons, ensureDiagrams, ensureIcons, ensureShapes, formatDataNumber, formatNumber, formatPercentNumber, formatVariableNumber, fromExcelNumberFormat, hasContentVariables, iconsPending, inlineChartData, inlineDatasets, inlineTableData, isDatasetRef, isPlaceLabel, isSupportedNumberingSystem, isTemplate, isXYChartType, languageInEffect, listBuiltinVariables, listVariables, localizeDigits, markLabelColor, nearIconNames, normalizeLanguageFamily, numberFormatError, numberLocale, numberingSystemExtension, numberingSystemOf, numeralScripts, parseIconReference, parseReference, plainLanguageTag, resolveChartData, resolveDesignRecords, resolveFontScheme, resolveIcon, resolveReference, resolveSlideVariables, resolveTableData, resolveVariables, shapesPending, suggestChartNumberFix, supportedNumberingSystems, tableCellDisplayValue, toExcelNumberFormat, unresolvedReference, unusedDatasets, variableDeclarations } from './chunk-
|
|
24
|
+
export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-VI7VWDTN.js';
|
|
25
|
+
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, asciiDigits, catalogGroupSource, catalogKinds, catalogRecords, catalogReferenceSites, chartDrawDiagnostics, chartDrawPlan, chartNumber, coerceVariableValue, datasetDiagnostics, diagramsPending, embedIcons, ensureDiagrams, ensureIcons, ensureShapes, formatDataNumber, formatNumber, formatPercentNumber, formatVariableNumber, fromExcelNumberFormat, hasContentVariables, iconsPending, inlineChartData, inlineDatasets, inlineTableData, isDatasetRef, isPlaceLabel, isSupportedNumberingSystem, isTemplate, isXYChartType, languageInEffect, listBuiltinVariables, listVariables, localizeDigits, markLabelColor, nearIconNames, normalizeLanguageFamily, numberFormatError, numberLocale, numberingSystemExtension, numberingSystemOf, numeralScripts, parseIconReference, parseReference, plainLanguageTag, resolveChartData, resolveDesignRecords, resolveFontScheme, resolveIcon, resolveReference, resolveSlideVariables, resolveTableData, resolveVariables, shapesPending, suggestChartNumberFix, supportedNumberingSystems, tableCellDisplayValue, toExcelNumberFormat, unresolvedReference, unusedDatasets, variableDeclarations } from './chunk-IGT4523S.js';
|
|
26
26
|
import './chunk-BLCDUM7B.js';
|
|
27
27
|
import './chunk-PRXZD2II.js';
|
|
28
28
|
|
|
@@ -48,7 +48,7 @@ var paginate2 = (input, options) => paginate(input, withDefaultCatalog(options))
|
|
|
48
48
|
var continueOverfull2 = (input, options) => continueOverfull(input, withDefaultCatalog(options));
|
|
49
49
|
var embed2 = (document, options) => embed(document, withDefaultCatalog(options));
|
|
50
50
|
var edit2 = (deck, patch, options) => edit(deck, patch, withDefaultCatalog(options));
|
|
51
|
-
var engine = () => import('./conversion-
|
|
51
|
+
var engine = () => import('./conversion-F3HSCFOV.js');
|
|
52
52
|
var rethrow = (error, fallback) => {
|
|
53
53
|
if (error instanceof OPFValidationError) throw error;
|
|
54
54
|
throw asApiError(OPFApiError, error, fallback);
|
package/dist/markdown.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Catalog } from './composition.js';
|
|
|
2
2
|
import { Presentation } from './index.js';
|
|
3
3
|
import { Finding, FindingLocation } from './index.js';
|
|
4
4
|
import { ValidateOptions, ValidationReport } from './index.js';
|
|
5
|
-
import './composition-
|
|
5
|
+
import './composition-DF07Ha4R.js';
|
|
6
6
|
import './chart-data-B_k-WTex.js';
|
|
7
7
|
import './shape-geometry.js';
|
|
8
8
|
import './json-BFSdESOE.js';
|
package/dist/markdown.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { fromMarkdown, toMarkdown } from './chunk-
|
|
1
|
+
export { fromMarkdown, toMarkdown } from './chunk-IDYYLJCQ.js';
|
|
2
2
|
import './chunk-RYZPBJLB.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
export { OPFMarkdownError } from './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
3
|
+
import './chunk-VVPPMHP6.js';
|
|
4
|
+
import './chunk-P2X4BBW2.js';
|
|
5
|
+
export { OPFMarkdownError } from './chunk-MDAXXFAY.js';
|
|
6
|
+
import './chunk-PHOSM2RA.js';
|
|
7
|
+
import './chunk-WBPXRUZT.js';
|
|
8
8
|
import './chunk-JBARNYFR.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import './chunk-VI7VWDTN.js';
|
|
10
|
+
import './chunk-IGT4523S.js';
|
|
11
11
|
import './chunk-BLCDUM7B.js';
|
|
12
12
|
import './chunk-PRXZD2II.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, E as EmbeddedFace, R as Renderer, a as Reporter, P as Peer, b as PptxModule, O as OPFApiError } from './conversion-
|
|
3
|
-
export { C as ConversionPlan, D as Diagnostic, c as EXPORT_FORMATS, d as EXPORT_TEXT, e as ExportContext, f as ExportContinuedSlide, g as ExportFile, h as ExportFontSummary, i as ExportFormat, j as ExportOptions, k as ExportResult, l as ExportRun, m as ExportText, I as ImportOptions, n as ImportResult, o as OPFExportError, p as OPFImportError, q as PEER_RANGES, r as PPTX_PACKAGE, s as PreparedExport, t as RENDER_EXTRAS, u as RENDER_PACKAGE, v as ReportFinding, w as ResolvedExportOptions, S as SlideSelection, x as Source, V as VERSIONS, y as asApiError, z as assetRoot, A as checkDate, B as checkOptions, G as checkRenamedOptions, H as checkScale, J as deckFileFormat, K as exportFormatOf, L as finishReport, M as importPresentation, N as loadPptx, Q as loadRenderer, T as locatePackage, U as missingPeerFrom, W as parseSlideSelection, X as planConversion, Y as prepareExport, Z as reaches, _ as readInput, $ as reportThrown, a0 as resolveExportOptions, a1 as runExport, a2 as runPreparedExport, a3 as writePlanned } from './conversion-
|
|
1
|
+
export { b as DeckReport, c as DeckReportOptions, r as readDeckReport } from './deck-report-C3EsoHC3.js';
|
|
2
|
+
import { F as FontsHandle, E as EmbeddedFace, R as Renderer, a as Reporter, P as Peer, b as PptxModule, O as OPFApiError } from './conversion-52ki0lfZ.js';
|
|
3
|
+
export { C as ConversionPlan, D as Diagnostic, c as EXPORT_FORMATS, d as EXPORT_TEXT, e as ExportContext, f as ExportContinuedSlide, g as ExportFile, h as ExportFontSummary, i as ExportFormat, j as ExportOptions, k as ExportResult, l as ExportRun, m as ExportText, I as ImportOptions, n as ImportResult, o as OPFExportError, p as OPFImportError, q as PEER_RANGES, r as PPTX_PACKAGE, s as PreparedExport, t as RENDER_EXTRAS, u as RENDER_PACKAGE, v as ReportFinding, w as ResolvedExportOptions, S as SlideSelection, x as Source, V as VERSIONS, y as asApiError, z as assetRoot, A as checkDate, B as checkOptions, G as checkRenamedOptions, H as checkScale, J as deckFileFormat, K as exportFormatOf, L as finishReport, M as importPresentation, N as loadPptx, Q as loadRenderer, T as locatePackage, U as missingPeerFrom, W as parseSlideSelection, X as planConversion, Y as prepareExport, Z as reaches, _ as readInput, $ as reportThrown, a0 as resolveExportOptions, a1 as runExport, a2 as runPreparedExport, a3 as writePlanned } from './conversion-52ki0lfZ.js';
|
|
4
4
|
import { Catalog } from './composition.js';
|
|
5
5
|
import { Fonts } from './composition.js';
|
|
6
6
|
import { PresentationPaginationResult } from './index.js';
|
|
7
|
-
import './presentation-
|
|
8
|
-
import './validation-types-
|
|
7
|
+
import './presentation-ANs2WkaS.js';
|
|
8
|
+
import './validation-types-BNS41nzb.js';
|
|
9
9
|
import './finding-l9dlQ2NF.js';
|
|
10
10
|
import './json-BFSdESOE.js';
|
|
11
11
|
import './chart-data-B_k-WTex.js';
|
|
@@ -87,6 +87,11 @@ declare function leaseSharedFonts(renderer: Renderer, presentation: unknown, use
|
|
|
87
87
|
declare function embeddedFor(handle: FontsHandle, text?: "fonts" | "system" | "paths"): (EmbeddedFace & {
|
|
88
88
|
embed?: "used";
|
|
89
89
|
})[];
|
|
90
|
+
/**
|
|
91
|
+
* One `fonts/font-substituted` info finding per requested family that was drawn with another face (Aptos with Intos): which face
|
|
92
|
+
* stood in, how close it is, and why when the font policy says (a proprietary font OPF does not bundle). Not one per slide or weight.
|
|
93
|
+
*/
|
|
94
|
+
declare function reportSubstitutions(reporter: Reporter, handle: FontsHandle): void;
|
|
90
95
|
|
|
91
96
|
interface ImportRun {
|
|
92
97
|
/** The imported presentation, undefined when `fromPptx` threw (the reporter then holds the error finding). */
|
|
@@ -186,7 +191,10 @@ interface MeasuringFontsOptions {
|
|
|
186
191
|
interface MeasuringFonts {
|
|
187
192
|
/** The fonts `opf convert` draws `deck` with; absent for an estimate or a rejected format. */
|
|
188
193
|
fonts?: Fonts;
|
|
189
|
-
/**
|
|
194
|
+
/**
|
|
195
|
+
* Why there are no fonts: the missing or too old peer (`peer-not-installed`, `peer-too-old`) that measuring needs. A font package
|
|
196
|
+
* the deck's faces need is one too: its `details` then have `packages`, `faces` and `install` (see `missingFontPackages`).
|
|
197
|
+
*/
|
|
190
198
|
estimated?: OPFApiError;
|
|
191
199
|
/** A real renderer format refusal; the caller must still validate the original source and return its report. */
|
|
192
200
|
invalidDocument?: true;
|
|
@@ -199,9 +207,15 @@ interface MeasuringFonts {
|
|
|
199
207
|
* fonts and says why in `estimated`. With `fontFolders` the fonts are required, so a missing renderer throws.
|
|
200
208
|
*/
|
|
201
209
|
declare function measuringFonts(deck: unknown, options: MeasuringFontsOptions): Promise<MeasuringFonts>;
|
|
210
|
+
/** The font packages a measurement found missing: from `estimated` when it is a font package error, else undefined. */
|
|
211
|
+
declare function missingFontPackages(estimated: OPFApiError | undefined): {
|
|
212
|
+
packages: string[];
|
|
213
|
+
faces: string[];
|
|
214
|
+
install?: string;
|
|
215
|
+
} | undefined;
|
|
202
216
|
|
|
203
217
|
/** The catalogs a call registers when it names none: `[gallery, galleryIconSets()]`. */
|
|
204
218
|
declare function defaultCatalogs(): readonly Catalog[];
|
|
205
219
|
|
|
206
|
-
export { FontsHandle, OPFApiError, Peer, PptxModule, Renderer, Reporter, checkDestinations, checkOutputPattern, createZip, deckStem, defaultCatalogs, embeddedFor, iconSourceReader, leaseSharedFonts, listFontDirectories, localAssetProblems, measuringFonts, padNumber, paginateDeck, pointerOf, prepareFonts, publishNew, runImport, stemOf, writeFiles };
|
|
220
|
+
export { FontsHandle, OPFApiError, Peer, PptxModule, Renderer, Reporter, checkDestinations, checkOutputPattern, createZip, deckStem, defaultCatalogs, embeddedFor, iconSourceReader, leaseSharedFonts, listFontDirectories, localAssetProblems, measuringFonts, missingFontPackages, padNumber, paginateDeck, pointerOf, prepareFonts, publishNew, reportSubstitutions, runImport, stemOf, writeFiles };
|
|
207
221
|
export type { AssetProblem, ImportRun, MeasuringFonts, MeasuringFontsOptions, PaginateDeckOptions, PaginatedDeck, PlannedFile };
|
package/dist/node-engine.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
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, iconSourceReader, 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-
|
|
1
|
+
import { loadRenderer, listFontDirectories, leaseSharedFonts, prepareFonts, missingPeerFrom } from './chunk-HX4HEJB4.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, iconSourceReader, importPresentation, leaseSharedFonts, listFontDirectories, loadPptx, loadRenderer, localAssetProblems, locatePackage, missingPeerFrom, padNumber, planConversion, pointerOf, prepareExport, prepareFonts, publishNew, reaches, readInput, reportSubstitutions, reportThrown, resolveExportOptions, runExport, runImport, runPreparedExport, stemOf, writeFiles, writePlanned } from './chunk-HX4HEJB4.js';
|
|
3
3
|
import { defaultCatalogs } from './chunk-XJUMFH33.js';
|
|
4
4
|
export { defaultCatalogs } from './chunk-XJUMFH33.js';
|
|
5
|
-
import { OPFApiError } from './chunk-
|
|
6
|
-
export { OPFApiError, OPFExportError, OPFImportError, asApiError, parseSlideSelection } from './chunk-
|
|
5
|
+
import { OPFApiError } from './chunk-NMZCPZ3R.js';
|
|
6
|
+
export { OPFApiError, OPFExportError, OPFImportError, asApiError, parseSlideSelection } from './chunk-NMZCPZ3R.js';
|
|
7
7
|
import './chunk-W4DYDRV2.js';
|
|
8
8
|
import './chunk-FK5XG742.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import { paginate } from './chunk-
|
|
11
|
-
export { readDeckReport } from './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
9
|
+
import './chunk-UKI43JE6.js';
|
|
10
|
+
import { paginate } from './chunk-XLXCXEVF.js';
|
|
11
|
+
export { readDeckReport } from './chunk-RM4Z7ZSW.js';
|
|
12
|
+
import './chunk-IDYYLJCQ.js';
|
|
13
|
+
import './chunk-EQCZ2SFD.js';
|
|
14
|
+
import './chunk-6MSH3KCZ.js';
|
|
15
15
|
import './chunk-RYZPBJLB.js';
|
|
16
|
-
import './chunk-
|
|
17
|
-
import './chunk-
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
20
|
-
import './chunk-
|
|
21
|
-
import './chunk-
|
|
22
|
-
import './chunk-
|
|
23
|
-
import './chunk-
|
|
16
|
+
import './chunk-V4G3BYPY.js';
|
|
17
|
+
import './chunk-VVPPMHP6.js';
|
|
18
|
+
import './chunk-P2X4BBW2.js';
|
|
19
|
+
import './chunk-MDAXXFAY.js';
|
|
20
|
+
import './chunk-PHOSM2RA.js';
|
|
21
|
+
import './chunk-KJFCHCWV.js';
|
|
22
|
+
import './chunk-AQ3WR3H7.js';
|
|
23
|
+
import './chunk-WBPXRUZT.js';
|
|
24
24
|
import './chunk-JBARNYFR.js';
|
|
25
|
-
import './chunk-
|
|
26
|
-
import './chunk-
|
|
25
|
+
import './chunk-VI7VWDTN.js';
|
|
26
|
+
import './chunk-IGT4523S.js';
|
|
27
27
|
import './chunk-BLCDUM7B.js';
|
|
28
28
|
import './chunk-PRXZD2II.js';
|
|
29
29
|
|
|
@@ -66,8 +66,24 @@ async function measuringFonts(deck, options) {
|
|
|
66
66
|
} };
|
|
67
67
|
if (error instanceof OPFApiError && (error.code === "peer-not-installed" || error.code === "peer-too-old") && !folders.length) return { estimated: error, release: () => {
|
|
68
68
|
} };
|
|
69
|
+
const fontPackage = !folders.length && !(error instanceof OPFApiError) ? missingFontPackagesError(error) : void 0;
|
|
70
|
+
if (fontPackage) return { estimated: fontPackage, release: () => {
|
|
71
|
+
} };
|
|
69
72
|
throw error;
|
|
70
73
|
}
|
|
71
74
|
}
|
|
75
|
+
function missingFontPackagesError(error) {
|
|
76
|
+
const mapped = missingPeerFrom(error);
|
|
77
|
+
return mapped?.code === "peer-not-installed" && Array.isArray(mapped.details?.packages) ? mapped : void 0;
|
|
78
|
+
}
|
|
79
|
+
function missingFontPackages(estimated) {
|
|
80
|
+
const details = estimated?.details;
|
|
81
|
+
if (!details || !Array.isArray(details.packages)) return void 0;
|
|
82
|
+
return {
|
|
83
|
+
packages: details.packages.filter((name) => typeof name === "string"),
|
|
84
|
+
faces: Array.isArray(details.faces) ? details.faces.filter((name) => typeof name === "string") : [],
|
|
85
|
+
...typeof details.install === "string" ? { install: details.install } : {}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
72
88
|
|
|
73
|
-
export { measuringFonts, paginateDeck };
|
|
89
|
+
export { measuringFonts, missingFontPackages, paginateDeck };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ComposeSlideOptions, M as MessageSurface, F as Fonts, L as LayoutDiagnostic } from './composition-
|
|
2
|
-
import { U as UnresolvedReferenceDiagnostic, R as ResolvedColorRoles, b as ColorVariant, c as RecordProvenance, d as CatalogOptions, C as Catalog } from './catalog-refs-
|
|
1
|
+
import { C as ComposeSlideOptions, M as MessageSurface, F as Fonts, L as LayoutDiagnostic } from './composition-DF07Ha4R.js';
|
|
2
|
+
import { U as UnresolvedReferenceDiagnostic, R as ResolvedColorRoles, b as ColorVariant, c as RecordProvenance, d as CatalogOptions, C as Catalog } from './catalog-refs-wtuudZTe.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* One slide's composition context: the layout, canvas, theme and font families that `composeSlide` needs,
|
package/dist/pagination.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import './composition-
|
|
2
|
-
import './catalog-refs-
|
|
3
|
-
export { C as ContinuationResult, d as ContinuedSlide, O as OPFPaginationError, P as PaginatedPage, m as PaginationDiagnostic, e as PaginationMapping, f as PaginationOptions, g as PaginationResult, a as PresentationPaginationOptions, b as PresentationPaginationResult, j as blockUnits, k as continuationPages, c as continueOverfull, p as paginate, l as paginateSlide } from './pagination-
|
|
1
|
+
import './composition-DF07Ha4R.js';
|
|
2
|
+
import './catalog-refs-wtuudZTe.js';
|
|
3
|
+
export { C as ContinuationResult, d as ContinuedSlide, O as OPFPaginationError, P as PaginatedPage, m as PaginationDiagnostic, e as PaginationMapping, f as PaginationOptions, g as PaginationResult, a as PresentationPaginationOptions, b as PresentationPaginationResult, j as blockUnits, k as continuationPages, c as continueOverfull, p as paginate, l as paginateSlide } from './pagination-Do7vNgU-.js';
|
|
4
4
|
import './chart-data-B_k-WTex.js';
|
|
5
5
|
import './shape-geometry.js';
|
package/dist/pagination.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { OPFPaginationError, blockUnits, continuationPages, continueOverfull, paginate, paginateSlide } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { OPFPaginationError, blockUnits, continuationPages, continueOverfull, paginate, paginateSlide } from './chunk-XLXCXEVF.js';
|
|
2
|
+
import './chunk-WBPXRUZT.js';
|
|
3
3
|
import './chunk-JBARNYFR.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-VI7VWDTN.js';
|
|
5
|
+
import './chunk-IGT4523S.js';
|
|
6
6
|
import './chunk-BLCDUM7B.js';
|
|
7
7
|
import './chunk-PRXZD2II.js';
|
package/dist/patch.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { OPFPatchError, OPFPatchHashError, OPFPatchValidationError, applyPatch, applyPatchWithInverse, documentHash, escapePointerToken, formatPointer, getAtPointer, hasPointer, idToken, invertPatch, isIdToken, jsonEqual, normalizePatch, parsePointer, pointerFromPath, readPointer, resolveIdPatch, resolveIdPointer, splitPointer, toIdPatch, toIdPointer, unescapePointerToken, walkPatch } from './chunk-
|
|
1
|
+
export { OPFPatchError, OPFPatchHashError, OPFPatchValidationError, applyPatch, applyPatchWithInverse, documentHash, escapePointerToken, formatPointer, getAtPointer, hasPointer, idToken, invertPatch, isIdToken, jsonEqual, normalizePatch, parsePointer, pointerFromPath, readPointer, resolveIdPatch, resolveIdPointer, splitPointer, toIdPatch, toIdPointer, unescapePointerToken, walkPatch } from './chunk-WBPXRUZT.js';
|
|
2
2
|
import './chunk-JBARNYFR.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-VI7VWDTN.js';
|
|
4
|
+
import './chunk-IGT4523S.js';
|
|
5
5
|
import './chunk-BLCDUM7B.js';
|
|
6
6
|
import './chunk-PRXZD2II.js';
|
package/dist/precompiled.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { installSchemaEngine } from './chunk-43JWUIGF.js';
|
|
2
|
-
import { schemaEngine } from './chunk-
|
|
3
|
-
import './chunk-
|
|
2
|
+
import { schemaEngine } from './chunk-HSXWDXKM.js';
|
|
3
|
+
import './chunk-VI7VWDTN.js';
|
|
4
4
|
import './chunk-PRXZD2II.js';
|
|
5
5
|
|
|
6
6
|
// src/precompiled.ts
|
|
@@ -378,6 +378,14 @@ type ListItem = (string | TextRun[] | {
|
|
|
378
378
|
* Zero-based nesting level for the list item.
|
|
379
379
|
*/
|
|
380
380
|
level?: number;
|
|
381
|
+
/**
|
|
382
|
+
* org-chart only: the entry is its manager's assistant, written among the reports and drawn beside the line below the manager. See docs/smartart.md.
|
|
383
|
+
*/
|
|
384
|
+
assistant?: boolean;
|
|
385
|
+
/**
|
|
386
|
+
* venn only, on the last entry: it labels where all the sets overlap and is not a set. See docs/smartart.md.
|
|
387
|
+
*/
|
|
388
|
+
overlap?: boolean;
|
|
381
389
|
/**
|
|
382
390
|
* An icon drawn on a chip at the start of the entry, in place of its bullet: "<set>:<name>" ("lucide:truck"), a name from the deck's icons, or an SVG source. Drawn on first-level entries of an unnumbered list. Decoration only: when the slide has no room for the chips without setting text smaller, they are not drawn (finding opf/icon-dropped). See docs/icons.md.
|
|
383
391
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { installedSchemaEngine } from './chunk-43JWUIGF.js';
|
|
2
2
|
import { qualifyBranch } from './chunk-JBARNYFR.js';
|
|
3
|
-
import { schemas } from './chunk-
|
|
3
|
+
import { schemas } from './chunk-VI7VWDTN.js';
|
|
4
4
|
import './chunk-PRXZD2II.js';
|
|
5
5
|
import Ajv2020 from 'ajv/dist/2020.js';
|
|
6
6
|
import addFormats from 'ajv-formats';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { precompiledMarker, schemaEngine } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { precompiledMarker, schemaEngine } from './chunk-HSXWDXKM.js';
|
|
2
|
+
import './chunk-VI7VWDTN.js';
|
|
3
3
|
import './chunk-PRXZD2II.js';
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CatalogRecordKind } from './catalog-schemas-
|
|
1
|
+
import { C as CatalogRecordKind } from './catalog-schemas-CSxuFtsu.js';
|
|
2
2
|
import { SchemaName } from './schemas.js';
|
|
3
|
-
import './catalog-refs-
|
|
3
|
+
import './catalog-refs-wtuudZTe.js';
|
|
4
4
|
import './json-BFSdESOE.js';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/schema.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { COMMON_KEYS, UNRANKED_PRIORITY, activeSchema, catalogKindAt, createSchemaValue, describeField, isPromotedRegionKey, listSchemaFields, resolveSchema, schemaAtPath, schemaCatalogKinds, schemaLabel, schemaType, schemaVariants, splitOpfPath } from './chunk-
|
|
1
|
+
export { COMMON_KEYS, UNRANKED_PRIORITY, activeSchema, catalogKindAt, createSchemaValue, describeField, isPromotedRegionKey, listSchemaFields, resolveSchema, schemaAtPath, schemaCatalogKinds, schemaLabel, schemaType, schemaVariants, splitOpfPath } from './chunk-WBPXRUZT.js';
|
|
2
2
|
import './chunk-JBARNYFR.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-VI7VWDTN.js';
|
|
4
|
+
import './chunk-IGT4523S.js';
|
|
5
5
|
import './chunk-BLCDUM7B.js';
|
|
6
6
|
import './chunk-PRXZD2II.js';
|
package/dist/schemas.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { audience, chartType, colorScheme, fontScheme, iconSet, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-
|
|
1
|
+
export { audience, chartType, colorScheme, fontScheme, iconSet, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-VI7VWDTN.js';
|
|
2
2
|
import './chunk-PRXZD2II.js';
|
package/dist/source.d.ts
CHANGED
|
@@ -81,6 +81,11 @@ type SyntaxProblemCode = "missing-value" | "missing-comma" | "trailing-comma" |
|
|
|
81
81
|
interface AnalyzeOptions {
|
|
82
82
|
/** The most problems returned (default 5). */
|
|
83
83
|
limit?: number;
|
|
84
|
+
/**
|
|
85
|
+
* The text is shown in the source editor, which opens a list of choices on a key chord: the "needs a value" hint then ends with "Press
|
|
86
|
+
* Ctrl+Space after the colon for options." Without it (the CLI, a script, a server) the hint stops after what could be written.
|
|
87
|
+
*/
|
|
88
|
+
editor?: boolean;
|
|
84
89
|
}
|
|
85
90
|
/**
|
|
86
91
|
* The root causes of the syntax errors in a JSON text, one problem per cause, in position order, at most `options.limit` (5).
|
package/dist/source.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { explain } from './chunk-
|
|
2
|
-
import { readMarkdown, frontMatter, splitSegments, isOutline, NOTES, fenceStart, fenceClose, COMMENT } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import { splitLines } from './chunk-
|
|
5
|
-
export { analyzeYamlSyntax } from './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import { rememberByText, SLIDE_OPTION_KEYS, FENCE_KINDS, createLocator, parsePointer } from './chunk-
|
|
8
|
-
export { BLOCK_AS_VALUES, BLOCK_OPTION_KEYS, FENCE_ATTRIBUTES, FENCE_KINDS, LINE_KEYWORDS, METRIC_KEYS, PATTERN_PHRASES, SLIDE_OPTION_KEYS, SPAN_FLAGS, SPAN_VALUES, analyzeJsonSyntax, applyTextEdits, describeFinding, distance, nearest, segmentsOf as pointerSegments, starterValue } from './chunk-
|
|
1
|
+
export { explain } from './chunk-V4G3BYPY.js';
|
|
2
|
+
import { readMarkdown, frontMatter, splitSegments, isOutline, NOTES, fenceStart, fenceClose, COMMENT } from './chunk-VVPPMHP6.js';
|
|
3
|
+
import './chunk-P2X4BBW2.js';
|
|
4
|
+
import { splitLines } from './chunk-MDAXXFAY.js';
|
|
5
|
+
export { analyzeYamlSyntax } from './chunk-MDAXXFAY.js';
|
|
6
|
+
import './chunk-PHOSM2RA.js';
|
|
7
|
+
import { rememberByText, SLIDE_OPTION_KEYS, FENCE_KINDS, createLocator, parsePointer } from './chunk-WBPXRUZT.js';
|
|
8
|
+
export { BLOCK_AS_VALUES, BLOCK_OPTION_KEYS, FENCE_ATTRIBUTES, FENCE_KINDS, LINE_KEYWORDS, METRIC_KEYS, PATTERN_PHRASES, SLIDE_OPTION_KEYS, SPAN_FLAGS, SPAN_VALUES, analyzeJsonSyntax, applyTextEdits, describeFinding, distance, nearest, segmentsOf as pointerSegments, starterValue } from './chunk-WBPXRUZT.js';
|
|
9
9
|
import './chunk-JBARNYFR.js';
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
10
|
+
import './chunk-VI7VWDTN.js';
|
|
11
|
+
import './chunk-IGT4523S.js';
|
|
12
12
|
import './chunk-BLCDUM7B.js';
|
|
13
13
|
import './chunk-PRXZD2II.js';
|
|
14
14
|
import { findNodeAtOffset, getNodePath, parseTree } from 'jsonc-parser';
|
|
@@ -66,6 +66,11 @@
|
|
|
66
66
|
]
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
|
+
"renamed": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"description": "Former icon names by current name, from the source package's aliases. Only a finding and an icon search read it; an old name is never an icon.",
|
|
72
|
+
"additionalProperties": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" }
|
|
73
|
+
},
|
|
69
74
|
"tags": {
|
|
70
75
|
"type": "object",
|
|
71
76
|
"description": "Search keywords by icon name, from the source package: what an icon search (the MCP's search_icons, pptx.gallery) matches besides the name.",
|