@openpresentation/opf 0.36.0 → 0.37.1
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/THIRD-PARTY-NOTICES.md +99 -0
- package/dist/browser.js +19 -19
- package/dist/{catalog-refs-BgotJhR5.d.ts → catalog-refs-BeRgtpZS.d.ts} +4 -4
- package/dist/{catalog-schemas-BX-VEc5Q.d.ts → catalog-schemas-CwY-3cCP.d.ts} +1 -1
- package/dist/{chunk-6WVPFWPD.js → chunk-434E2RWO.js} +4 -4
- package/dist/{chunk-OFL3WY6F.js → chunk-63Y75CCK.js} +77 -15
- package/dist/{chunk-O65COLKF.js → chunk-BPILTZUJ.js} +118 -19
- package/dist/{chunk-4FA4AZXY.js → chunk-DDD4WUEH.js} +2375 -825
- package/dist/{chunk-MS2LPR7F.js → chunk-DMV3G65U.js} +1 -1
- package/dist/{chunk-AZELWKG2.js → chunk-EHYAVRL3.js} +5 -4
- package/dist/{chunk-7JE3XTL7.js → chunk-HBO64RWP.js} +4 -4
- package/dist/{chunk-J7FUSZZ5.js → chunk-HOK3DZA6.js} +6 -6
- package/dist/chunk-I4NQP7Z4.js +1 -0
- package/dist/{chunk-2NIID3QD.js → chunk-ITGR2RW2.js} +6 -6
- package/dist/chunk-IW4TXMJY.js +646 -0
- package/dist/{chunk-SER6GJTT.js → chunk-KB7TPZQI.js} +23 -6
- package/dist/{chunk-VDZXNNZF.js → chunk-M4IPCFDV.js} +1 -1
- package/dist/{chunk-F5SY7MSA.js → chunk-MNJ4JV7I.js} +1 -1
- package/dist/{chunk-XRMYP4JD.js → chunk-ORVMHVOS.js} +86 -2
- package/dist/{chunk-BPSZ7OWD.js → chunk-PDBZN7EJ.js} +26 -21
- package/dist/{chunk-3KPTVK77.js → chunk-Q2L5ERNK.js} +1248 -120
- package/dist/{chunk-HHQROUYC.js → chunk-QFT4R2IL.js} +4405 -2808
- package/dist/chunk-QQBOI5XI.js +86 -0
- package/dist/{chunk-TJMESSBQ.js → chunk-SIF5JDZC.js} +109 -9
- package/dist/{chunk-GNKOQ6NA.js → chunk-XY332BQP.js} +4 -4
- package/dist/{chunk-APCNAAA7.js → chunk-ZB427MLO.js} +2 -2
- package/dist/{composition-CSM7YfBl.d.ts → composition-DiKC371V.d.ts} +707 -134
- package/dist/composition.d.ts +3 -3
- package/dist/composition.js +1 -1
- package/dist/{conversion-CL7ipVGO.d.ts → conversion-DBkC9Y2e.d.ts} +6 -6
- package/dist/conversion-P56LOOE2.js +25 -0
- package/dist/convert.d.ts +5 -5
- package/dist/convert.js +63 -23
- package/dist/data.d.ts +41 -3
- package/dist/data.js +2 -2
- package/dist/{deck-report-DhsB0SUz.d.ts → deck-report-BwgsIRAf.d.ts} +3 -3
- package/dist/deck.d.ts +6 -6
- package/dist/deck.js +11 -11
- package/dist/diff.js +4 -4
- package/dist/docs.js +43 -31
- package/dist/examples.js +2338 -392
- package/dist/font-policy.js +1 -1
- package/dist/format.js +2 -2
- package/dist/ids.d.ts +17 -4
- package/dist/ids.js +4 -4
- package/dist/index.d.ts +140 -23
- package/dist/index.js +22 -22
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.js +8 -8
- package/dist/metric-data-B4Q8RFRR.d.ts +382 -0
- package/dist/node-engine.d.ts +6 -6
- package/dist/node-engine.js +21 -21
- package/dist/{pagination-BSqq32xt.d.ts → pagination-C9qnH_n-.d.ts} +5 -5
- package/dist/pagination.d.ts +4 -4
- package/dist/pagination.js +4 -4
- package/dist/patch.js +3 -3
- package/dist/precompiled.js +2 -2
- package/dist/{presentation-Dx-kZC8Y.d.ts → presentation-DmOhusrX.d.ts} +541 -110
- 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.d.ts +46 -2
- package/dist/schemas.js +1 -1
- package/dist/shape-engine-eager.js +2 -2
- package/dist/shape-engine-lazy.js +1 -1
- package/dist/{shape-engine-module-N74FCHGY.js → shape-engine-module-YU2XGIQN.js} +2 -2
- package/dist/shape-geometry.js +1 -1
- package/dist/source.js +10 -11
- package/dist/spec/reference/engine-defaults.json +1 -1
- package/dist/spec/reference/engine-vocabularies.json +1 -0
- package/dist/spec/schemas/font-scheme.schema.json +9 -7
- package/dist/spec/schemas/layout.schema.json +5 -4
- package/dist/spec/schemas/narrative.schema.json +1 -0
- package/dist/spec/schemas/opf.schema.json +661 -98
- package/dist/types.d.ts +16 -12
- package/dist/{validation-types-bnrso0JL.d.ts → validation-types-CV-ngACL.d.ts} +49 -6
- package/dist/validator.d.ts +5 -5
- package/dist/validator.js +3 -3
- package/dist/yaml.d.ts +2 -2
- package/dist/yaml.js +7 -7
- package/package.json +7 -6
- package/dist/chart-data-B_k-WTex.d.ts +0 -194
- package/dist/chunk-6VGLE7C5.js +0 -3983
- package/dist/chunk-SEC4IOOS.js +0 -1
- package/dist/chunk-WCPDN7AY.js +0 -642
- package/dist/conversion-FTGQLJK7.js +0 -25
package/dist/font-policy.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { FONT_POLICY, applyFontPolicyDecisions, fontAvailabilityDiagnostics, fontPolicyFor } from './chunk-
|
|
1
|
+
export { FONT_POLICY, applyFontPolicyDecisions, fontAvailabilityDiagnostics, fontPolicyFor } from './chunk-QQBOI5XI.js';
|
|
2
2
|
import './chunk-PRXZD2II.js';
|
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-DMV3G65U.js';
|
|
2
|
+
import './chunk-Q2L5ERNK.js';
|
|
3
3
|
import './chunk-PRXZD2II.js';
|
package/dist/ids.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { JsonPatchOperation } from './index.js';
|
|
2
2
|
export { OPFPatchHashError, documentHash, idToken, isIdToken, resolveIdPatch, resolveIdPointer, toIdPatch, toIdPointer } from './patch.js';
|
|
3
3
|
|
|
4
|
+
/** The entries of a payload that can carry an `id` of their own (FR-02): list items, bullets, timeline events and inline table rows. */
|
|
5
|
+
type ItemKind = "item" | "bullet" | "event" | "row";
|
|
6
|
+
|
|
4
7
|
type IdErrorCode = "invalid-document" | "invalid-id" | "duplicate-id";
|
|
5
8
|
/** Thrown by `assignIds` for a value that is not a document or a `generate` that returns an unusable id. */
|
|
6
9
|
declare class OPFIdError extends Error {
|
|
@@ -10,8 +13,11 @@ declare class OPFIdError extends Error {
|
|
|
10
13
|
constructor(code: IdErrorCode, message: string, path?: string);
|
|
11
14
|
}
|
|
12
15
|
interface AssignIdsContext {
|
|
13
|
-
/**
|
|
14
|
-
|
|
16
|
+
/**
|
|
17
|
+
* `slide` for an entry of `slides`; `block` for a content payload (a block or a nested group); with `items: true` also `item` (a list
|
|
18
|
+
* item), `bullet`, `event` (a timeline event) and `row` (an inline table row).
|
|
19
|
+
*/
|
|
20
|
+
kind: "slide" | "block" | ItemKind;
|
|
15
21
|
/** The JSON Pointer of the node, in index form (`/slides/2/blocks/0`). */
|
|
16
22
|
pointer: string;
|
|
17
23
|
/** The node, read only. */
|
|
@@ -26,11 +32,17 @@ interface AssignIdsOptions {
|
|
|
26
32
|
* result is to be deterministic. The default makes `slide-1`, `slide-2`, ... and `block-1`, `block-2`, ... skipping ids in use.
|
|
27
33
|
*/
|
|
28
34
|
generate?: (context: AssignIdsContext) => string;
|
|
35
|
+
/**
|
|
36
|
+
* Also give an id to every list item, bullet, timeline event and inline table row (FR-02). Off by default: a deck nobody co-edits keeps
|
|
37
|
+
* its short forms. When on, a string or run-array item becomes `{ "id", "text" }` and an array row becomes `{ "id", "cells" }`, since only
|
|
38
|
+
* the object forms can carry an id. The default ids are `item-1`, `bullet-1`, `event-1` and `row-1`. Dataset and chart data rows never get ids.
|
|
39
|
+
*/
|
|
40
|
+
items?: boolean;
|
|
29
41
|
}
|
|
30
42
|
interface AssignedId {
|
|
31
43
|
/** The JSON Pointer of the node that got the id, in index form. */
|
|
32
44
|
pointer: string;
|
|
33
|
-
kind: "slide" | "block";
|
|
45
|
+
kind: "slide" | "block" | ItemKind;
|
|
34
46
|
id: string;
|
|
35
47
|
}
|
|
36
48
|
interface AssignIdsResult {
|
|
@@ -46,7 +58,8 @@ interface AssignIdsResult {
|
|
|
46
58
|
* use, so a valid document stays valid. The input is not changed; `patch` is the same change as operations, for an editor to apply as one
|
|
47
59
|
* undoable edit. The id is added as the node's last member (`format` puts it in canonical order).
|
|
48
60
|
*
|
|
49
|
-
* Slides and
|
|
61
|
+
* Slides, payloads, overlays, list items, bullets, timeline events and table rows share ONE id namespace in the schema (a duplicate is a
|
|
62
|
+
* validation error); runs, dataset rows and chart data rows have no id.
|
|
50
63
|
*/
|
|
51
64
|
declare function assignIds(document: unknown, options?: AssignIdsOptions): AssignIdsResult;
|
|
52
65
|
/**
|
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-63Y75CCK.js';
|
|
2
|
+
export { OPFPatchHashError, documentHash, idToken, isIdToken, resolveIdPatch, resolveIdPointer, toIdPatch, toIdPointer } from './chunk-DDD4WUEH.js';
|
|
3
3
|
import './chunk-JBARNYFR.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
4
|
+
import './chunk-Q2L5ERNK.js';
|
|
5
|
+
import './chunk-QFT4R2IL.js';
|
|
6
6
|
import './chunk-BLCDUM7B.js';
|
|
7
7
|
import './chunk-PRXZD2II.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
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-DBkC9Y2e.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-DBkC9Y2e.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 { e as ValidationCategory, a as ValidateOptions, V as ValidationReport, 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, f as ValidationChecks, 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
|
|
9
|
-
import {
|
|
10
|
-
|
|
7
|
+
import { e as ValidationCategory, a as ValidateOptions, V as ValidationReport, R as ResolveVariablesOptions, h as VariableDiagnostic } from './validation-types-CV-ngACL.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, f as ValidationChecks, 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 VariableTranslation, q as VariableUse, r as VariableUseForm, s as VariableValues, t as coerceVariableValue, u as formatVariableNumber, w as hasContentVariables, x as isTemplate, y as listBuiltinVariables, z as listVariables, A as pickTranslation, E as resolveVariables, F as translationAt, G as translationLanguageAt, v as validationCategories, H as variableDeclarations, I as visibleLength } from './validation-types-CV-ngACL.js';
|
|
9
|
+
import { T as TextMeasurement, b as TextStyle, c as FontFamilies } from './composition-DiKC371V.js';
|
|
10
|
+
import { LayoutBox } from './composition.js';
|
|
11
|
+
export { d as CHART_TYPES, e as ChartDrawPlan, f as ChartFallback, C as ComposeSlideOptions, D as DateNames, E as ENGINE_DEFAULT_CHART_TYPES, h as ENGINE_DEFAULT_COLOR_SCHEME, i as ENGINE_DEFAULT_FONT_SCHEME, j as ENGINE_DEFAULT_THEME, F as Fonts, k as LANGUAGES, l as LOGO_SHAPES, m as LanguageVocabulary, L as LayoutDiagnostic, n as LogoShape, o as LogoVariant, p as MeasureTextWidth, N as NumberLocale, R as ResolveLogoOptions, q as ResolvedLogo, S as SCHEME_COLOR_NAMES, r as SOCIAL_PLATFORMS, s as SchemeColorName, t as ScriptGroupName, u as SocialPlatformVocabulary, v as TableColorScaleCell, w as TableColorScaleColors, x as TableColorScaleRange, y as TableColorScaleResult, z as TableColorScaleSpec, A as TableRowEntry, B as asciiDigits, G as chartDrawDiagnostics, H as chartDrawPlan, I as dateNamesOf, J as diagramsPending, K as ensureDiagrams, O as ensureShapes, P as formatNumber, Q as formatPercentNumber, U as isPlaceLabel, V as isSupportedNumberingSystem, W as languageInEffect, X as localizeDigits, Y as longDatePattern, Z as markLabelColor, _ as mixOklab, $ as normalizeScriptGroup, a0 as numberLocale, a1 as numberingSystemExtension, a2 as numberingSystemOf, a3 as numeralScripts, a4 as oklabToSrgb, a5 as pinTableColorScale, a6 as plainLanguageTag, a7 as resolveTableColorScale, a8 as rowCells, a9 as rowId, aa as shapesPending, ab as srgbToOklab, ac as supportedNumberingSystems, ad as tableColorScaleDiagnostics, ae as tableColorScaleOf, af as tableColorScaleText, ag as tableRows } from './composition-DiKC371V.js';
|
|
11
12
|
export { SpecFileEntry, SpecFileKind, SpecFilePath, specFileEntries, specFileKinds, specFilePaths } from './spec-files.js';
|
|
12
|
-
import { P as Presentation } from './presentation-
|
|
13
|
+
import { P as Presentation } from './presentation-DmOhusrX.js';
|
|
13
14
|
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-
|
|
15
|
+
import { a as CatalogKind, U as UnresolvedReferenceDiagnostic, d as CatalogOptions, C as Catalog, c as RecordProvenance } from './catalog-refs-BeRgtpZS.js';
|
|
16
|
+
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-BeRgtpZS.js';
|
|
16
17
|
import { a as Finding, J as JsonPatchOperation, d as FindingFix } from './finding-mcHslZLA.js';
|
|
17
18
|
export { e as FindingCategory, f as FindingFocus, b as FindingLocation, F as FindingReport, c as FindingSeverity, g as FindingSuggestion, V as ValidationIssue } from './finding-mcHslZLA.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-
|
|
19
|
+
export { a as CATALOG_SCHEMA, b as CatalogDisplayKind, C as CatalogRecordKind, c as catalogDisplayKinds, d as catalogIconKinds, e as catalogSchemaNames } from './catalog-schemas-CwY-3cCP.js';
|
|
19
20
|
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-
|
|
21
|
+
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-C9qnH_n-.js';
|
|
21
22
|
export { ApplyPatchOptions, OPFPatchError, OPFPatchHashError, OPFPatchValidationError, PatchResult, applyPatch, documentHash, idToken, isIdToken, resolveIdPatch, resolveIdPointer, toIdPatch, toIdPointer } from './patch.js';
|
|
22
23
|
export { AssignIdsContext, AssignIdsOptions, AssignIdsResult, AssignedId, IdErrorCode, OPFIdError, PatchScope, PatchScopeKind, PatchTouch, assignIds, touches } from './ids.js';
|
|
23
24
|
export { DiffOptions, MergeConflict, MergeOptions, MergeResult, PresentationDiff, diff, merge } from './diff.js';
|
|
24
25
|
export { FormatOptions, OPFFormatError, format } from './format.js';
|
|
25
26
|
export { FromMarkdownOptions, FromMarkdownResult, OPFMarkdownError, ToMarkdownOptions, ToMarkdownResult, fromMarkdown, toMarkdown } from './markdown.js';
|
|
26
27
|
export { StringifyOptions, parse, stringify } from './deck.js';
|
|
27
|
-
export { DataCell, DataImportOptions, ImportedChart, ImportedChartData, ImportedChartType, ImportedTable, IngestOptions, OPFDataImportError, TabularData, ingest, parseTabularData } from './data.js';
|
|
28
|
-
export {
|
|
28
|
+
export { DataCell, DataImportOptions, ImportedChart, ImportedChartData, ImportedChartType, ImportedTable, IngestOptions, OPFDataImportError, TabularData, declareColumns, inferColumnDeclaration, ingest, parseTabularData, storeCell, updateMetricLiterals } from './data.js';
|
|
29
|
+
export { a5 as ChartComboSeries, C as ChartMapping, d as ChartNumberFix, e as ChartNumberFixOperation, f as ChartNumberFixOptions, g as DataAggregate, D as DataCellValue, h as DataColumn, c as DataColumnRole, b as DataColumnType, i as DataCondition, j as DataDiagnostic, k as DataDiagnosticCode, l as DataFilter, m as DataGenerator, n as DataLink, o as DataProvenance, p as DataResolveOptions, q as DataSource, r as DataStyledCell, s as DataTableCell, t as DataTableHeader, u as DataTableValue, v as DataTextRun, w as Dataset, a as DatasetColumn, x as DatasetRef, M as MetricData, y as MetricDataDiagnostic, z as MetricDelta, A as MetricDerivedKey, B as MetricRecord, R as ResolveMetricOptions, E as ResolvedChartData, F as ResolvedMetric, G as ResolvedMetricValue, H as ResolvedTableData, I as cellMatchesType, J as chartNumber, K as dataProvenance, L as dataSourcesOf, N as datasetColumnDeclaration, O as datasetDiagnostics, P as formatDataNumber, Q as fromExcelNumberFormat, S as inlineChartData, T as inlineDatasets, U as inlineTableData, V as isDatasetRef, W as isXYChartType, X as numberFormatError, Y as resolveChartData, Z as resolveDataSource, _ as resolveMetric, $ as resolveTableData, a0 as suggestCellTypeFix, a1 as suggestChartNumberFix, a2 as tableCellDisplayValue, a3 as toExcelNumberFormat, a4 as unusedDatasets } from './metric-data-B4Q8RFRR.js';
|
|
29
30
|
export { FONT_POLICY, FontAvailability, FontAvailabilityCode, FontAvailabilityDiagnostic, FontLicenseClass, FontPolicyDecision, FontPolicyEntry, FontPolicyTable, FontReplacement, FontReplacementCompatibility, FontReplacementMeasurement, FontScriptReplacement, 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-
|
|
31
|
+
export { a as DECK_FORMATS, D as DeckFormat, P as ParseOptions, d as deckFormatOf } from './deck-report-BwgsIRAf.js';
|
|
31
32
|
import './json-BFSdESOE.js';
|
|
32
33
|
import './shape-geometry.js';
|
|
33
34
|
|
|
@@ -72,6 +73,14 @@ declare function resolveSlideVariables<T>(slide: T, values: {
|
|
|
72
73
|
darkBackground?: boolean;
|
|
73
74
|
}): T;
|
|
74
75
|
|
|
76
|
+
/**
|
|
77
|
+
* Applies the safe rewrites of the table to a record the importer restored: every renamed key of a record `value` (a whole record or any
|
|
78
|
+
* part of one) is renamed in place of the old one unless the new key is already there, and a font scheme's short `scriptGroup` values
|
|
79
|
+
* are written long. Returns the same object when nothing needs rewriting (nothing is copied), else a rewritten copy; the input is never
|
|
80
|
+
* mutated. `segments` is the path of `value` inside its record, for the keys whose rename depends on where they sit.
|
|
81
|
+
*/
|
|
82
|
+
declare function renameRecordKeys<T>(value: T, segments?: readonly string[]): T;
|
|
83
|
+
|
|
75
84
|
/** One stale copy `embed` replaced (refreshStaleLayouts). */
|
|
76
85
|
interface RefreshedRecord {
|
|
77
86
|
group: string;
|
|
@@ -343,8 +352,8 @@ interface DatasetFact {
|
|
|
343
352
|
title: string | null;
|
|
344
353
|
columns: number;
|
|
345
354
|
rows: number;
|
|
346
|
-
/**
|
|
347
|
-
|
|
355
|
+
/** The data source the dataset names: the id of an entry of `datasources`, or an inline data source's `src`; null when it names none. */
|
|
356
|
+
datasource: string | null;
|
|
348
357
|
/** Charts and tables that reference it. */
|
|
349
358
|
referencedBy: number;
|
|
350
359
|
}
|
|
@@ -404,7 +413,7 @@ interface PresentationStats {
|
|
|
404
413
|
id: string;
|
|
405
414
|
name: string;
|
|
406
415
|
title: string | null;
|
|
407
|
-
|
|
416
|
+
organization: string | null;
|
|
408
417
|
hasPhoto: boolean;
|
|
409
418
|
}[];
|
|
410
419
|
};
|
|
@@ -441,6 +450,8 @@ interface PresentationStats {
|
|
|
441
450
|
table: number;
|
|
442
451
|
image: number;
|
|
443
452
|
video: number;
|
|
453
|
+
/** Embeds (FR-08): `embed` payloads, a live web page shown as a linked picture outside a web presenter. */
|
|
454
|
+
embed: number;
|
|
444
455
|
/** Block entries at any depth. */
|
|
445
456
|
blocks: number;
|
|
446
457
|
/** Root blocks placed in a cell of their slide's grid (`"region": "top:center"` on a slide without a layout). */
|
|
@@ -500,7 +511,7 @@ interface PresentationStats {
|
|
|
500
511
|
data: {
|
|
501
512
|
inline: number;
|
|
502
513
|
dataset: number;
|
|
503
|
-
|
|
514
|
+
withDatasource: number;
|
|
504
515
|
};
|
|
505
516
|
};
|
|
506
517
|
tables: {
|
|
@@ -512,7 +523,7 @@ interface PresentationStats {
|
|
|
512
523
|
};
|
|
513
524
|
datasets: {
|
|
514
525
|
count: number;
|
|
515
|
-
|
|
526
|
+
withDatasource: number;
|
|
516
527
|
items: DatasetFact[];
|
|
517
528
|
};
|
|
518
529
|
citations: {
|
|
@@ -606,6 +617,94 @@ declare function stats$1(presentation: unknown, options?: StatsOptions): Present
|
|
|
606
617
|
*/
|
|
607
618
|
declare function localAssetSources(presentation: unknown): string[];
|
|
608
619
|
|
|
620
|
+
/** The slide id a link names, or undefined for any other link (an http(s), mailto or tel link, or no link). */
|
|
621
|
+
declare function slideLinkId(link: unknown): string | undefined;
|
|
622
|
+
/** The `link` of one slide link as written: `slide:<id>`. */
|
|
623
|
+
declare function slideLink(id: string): string;
|
|
624
|
+
/** Every slide link in a value, with its JSON Pointer. `extensions` objects are opaque and skipped. */
|
|
625
|
+
declare function collectSlideLinks(value: unknown, base?: string): Array<{
|
|
626
|
+
pointer: string;
|
|
627
|
+
id: string;
|
|
628
|
+
}>;
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* The `embed` content kind (FR-08): a live web page that a web presenter may show when its host allows, and a linked picture
|
|
632
|
+
* everywhere else. Engines never load `src`; these helpers only read the authored value, so every engine names, proportions and
|
|
633
|
+
* links an embed the same way.
|
|
634
|
+
*/
|
|
635
|
+
/** A frame with no `aspectRatio` is 16:9, as a video's is. */
|
|
636
|
+
declare const EMBED_DEFAULT_ASPECT: number;
|
|
637
|
+
/** An embed as authored in object form (a string is `{ src }`). */
|
|
638
|
+
interface EmbedValue {
|
|
639
|
+
src: string;
|
|
640
|
+
title?: string;
|
|
641
|
+
aspectRatio?: number;
|
|
642
|
+
preview?: string;
|
|
643
|
+
}
|
|
644
|
+
/** The object form of an embed value (the string shorthand is `{ src }`), or undefined when the value is neither. */
|
|
645
|
+
declare function embedValue(value: unknown): EmbedValue | undefined;
|
|
646
|
+
/** The site an address names: its host without a leading `www.`; the address itself when it does not parse. */
|
|
647
|
+
declare function embedSite(src: string): string;
|
|
648
|
+
/** What the page is called: the authored `title`, else the site name. */
|
|
649
|
+
declare function embedTitle(value: unknown): string;
|
|
650
|
+
/** Width to height of the frame: the authored `aspectRatio`, else 16:9. */
|
|
651
|
+
declare function embedAspect(value: unknown): number;
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* The card an embed is drawn as where it has no `preview` (FR-08): a rounded panel with a link badge, the title in the
|
|
655
|
+
* heading font (up to three lines, then clipped with an ellipsis) and the site name below it in the body font, the whole block centered
|
|
656
|
+
* in the panel both ways and every line centered. The title's size follows the card (a tenth of its shorter side, between 28 and 40 at
|
|
657
|
+
* scale 1); the badge, the gaps and the site name scale with it by fixed ratios. Geometry is shared:
|
|
658
|
+
* the preview, the PDF and the PowerPoint export draw exactly these boxes and lines.
|
|
659
|
+
*
|
|
660
|
+
* The card draws at any frame size. Text is never smaller than the readability floor: a title that does not fit at the floor in the
|
|
661
|
+
* room the frame has is clipped, the site name is left out when the title would have to be clipped to make room for it, and a frame
|
|
662
|
+
* too small for one line of the title keeps only the badge.
|
|
663
|
+
*/
|
|
664
|
+
interface EmbedCardInput {
|
|
665
|
+
/** The frame the card fills, in reference pixels. */
|
|
666
|
+
frame: LayoutBox;
|
|
667
|
+
/** The title (or the site name when the embed has none). */
|
|
668
|
+
title: string;
|
|
669
|
+
/** The site name, drawn below the title. */
|
|
670
|
+
site: string;
|
|
671
|
+
headingFamily: string;
|
|
672
|
+
bodyFamily: string;
|
|
673
|
+
/** The deck's scale: min(width, height) / 720. */
|
|
674
|
+
scale: number;
|
|
675
|
+
/** The readability floor in pixels at scale 1 (default 16). */
|
|
676
|
+
minFontSizePx?: number;
|
|
677
|
+
measurement?: TextMeasurement;
|
|
678
|
+
}
|
|
679
|
+
interface EmbedCardText {
|
|
680
|
+
box: LayoutBox;
|
|
681
|
+
/** The lines as drawn; the last one ends with an ellipsis when `clipped`. */
|
|
682
|
+
lines: string[];
|
|
683
|
+
fontSize: number;
|
|
684
|
+
lineHeight: number;
|
|
685
|
+
clipped: boolean;
|
|
686
|
+
style: TextStyle;
|
|
687
|
+
/** Every line is centered on the middle of `box`; `lineWidths` holds each line's measured width. */
|
|
688
|
+
align: 'center';
|
|
689
|
+
lineWidths: number[];
|
|
690
|
+
}
|
|
691
|
+
interface EmbedCardLayout {
|
|
692
|
+
frame: LayoutBox;
|
|
693
|
+
/** Corner radius of the panel. */
|
|
694
|
+
radius: number;
|
|
695
|
+
/** The link badge: a circle (`badge`) with an arrow glyph (`arrow`, its square box, turned a quarter and a half... see `arrowPoints`). */
|
|
696
|
+
icon: {
|
|
697
|
+
badge: LayoutBox;
|
|
698
|
+
arrow: LayoutBox;
|
|
699
|
+
points: [number, number][];
|
|
700
|
+
};
|
|
701
|
+
title?: EmbedCardText;
|
|
702
|
+
site?: EmbedCardText;
|
|
703
|
+
}
|
|
704
|
+
/** The arrow of the badge: PowerPoint's right arrow preset (adj1 = adj2 = 50000) in `box`, turned 45 degrees to point up and right. */
|
|
705
|
+
declare function embedArrowPoints(box: LayoutBox): [number, number][];
|
|
706
|
+
declare function embedCardLayout(input: EmbedCardInput): EmbedCardLayout;
|
|
707
|
+
|
|
609
708
|
interface EditOptions {
|
|
610
709
|
/** The catalogs the result's references resolve in. In Node the default catalog when omitted, as `opf edit` registers it; in the browser build none. */
|
|
611
710
|
catalogs?: readonly Catalog[];
|
|
@@ -697,7 +796,11 @@ declare const isSafePatch: (fix: FindingFix) => fix is Patch;
|
|
|
697
796
|
*/
|
|
698
797
|
declare function fix$1(document: unknown, options?: FixOptions): FixResult;
|
|
699
798
|
|
|
700
|
-
/**
|
|
799
|
+
/**
|
|
800
|
+
* The values of one deck, keyed by variable id. A variable's entry is its value; FR-10: for a text, list, url, image or date variable it may
|
|
801
|
+
* also be `{ "value": ..., "translations": { "de": { "value": ... } } }` (a date's entries have a `format`), giving the translations the
|
|
802
|
+
* deck keeps. A value given without translations removes the template's translations of that variable (a date's formats stay).
|
|
803
|
+
*/
|
|
701
804
|
type FillRecord = Record<string, unknown>;
|
|
702
805
|
interface FillOptions extends Pick<ResolveVariablesOptions, "partial" | "examples"> {
|
|
703
806
|
/** The form of text data: `csv`, `tsv` or `json`. Omitted: `json` when the text starts with `{` or `[`, else `csv`. */
|
|
@@ -731,6 +834,11 @@ interface FillResult {
|
|
|
731
834
|
diagnostics: (VariableDiagnostic & {
|
|
732
835
|
records: number[];
|
|
733
836
|
})[];
|
|
837
|
+
/** FR-10: the variables whose translations were removed because a record gave a value without translations, with those records. Absent when none was. */
|
|
838
|
+
translationsRemoved?: {
|
|
839
|
+
id: string;
|
|
840
|
+
records: number[];
|
|
841
|
+
}[];
|
|
734
842
|
}
|
|
735
843
|
/**
|
|
736
844
|
* The records of text data. JSON keeps rich values (text runs, lists, image objects): an object is one record and an array of
|
|
@@ -741,11 +849,20 @@ declare function fillRecords(raw: string, options?: Pick<FillOptions, "format" |
|
|
|
741
849
|
/**
|
|
742
850
|
* Fill a template: `data` is text (CSV, TSV or JSON), one record or a list of records; omitted, one deck is filled from the
|
|
743
851
|
* variables' own values (and their examples with `examples`). Each deck is the template resolved with one record
|
|
744
|
-
* (`resolveVariables`), no longer marked as a template. Throws `OPFDataImportError` for data without records and a `TypeError`
|
|
852
|
+
* (`resolveVariables`), no longer marked as a template and without the template's document `id` (a filled deck is a new deck; core never mints an id, so the host does). Throws `OPFDataImportError` for data without records and a `TypeError`
|
|
745
853
|
* for a template that is not an object.
|
|
746
854
|
*/
|
|
747
855
|
declare function fill(template: unknown, data?: string | FillRecord | readonly FillRecord[], options?: FillOptions): FillResult;
|
|
748
856
|
|
|
857
|
+
/** The milliseconds since the epoch of an ISO 8601 date or date-time (a date is midnight UTC, a date-time without an offset is UTC); undefined when the text is neither. */
|
|
858
|
+
declare function parseInstant(text: unknown): number | undefined;
|
|
859
|
+
/**
|
|
860
|
+
* Why an address (a data source's `src`, an embed's) looks like it holds a credential, or undefined: a URL with a password in its user information
|
|
861
|
+
* (`https://user:secret@host`), or a query parameter named like a key or a token (`?api_key=...`, `?access_token=...`). The reason never
|
|
862
|
+
* repeats the secret. Paths and `asset:` references are never credentials.
|
|
863
|
+
*/
|
|
864
|
+
declare function credentialInSrc(src: unknown): string | undefined;
|
|
865
|
+
|
|
749
866
|
/**
|
|
750
867
|
* The role families a slide composes with when a host measures text (WI-1, P24): each role family resolves once through
|
|
751
868
|
* the host's measurement (heading at weight 700, the others at 400), and composition then asks for the family the host
|
|
@@ -822,5 +939,5 @@ declare function open(input: string | Uint8Array | ArrayBuffer, options?: OpenOp
|
|
|
822
939
|
*/
|
|
823
940
|
declare function save(deck: Presentation, path: string, options?: SaveOptions): Promise<SaveResult>;
|
|
824
941
|
|
|
825
|
-
export { Catalog, CatalogKind, CatalogOptions, ConvertFormat, ConvertInput, ConvertOptions, ConvertResult, DEFAULT_FIX_ROUNDS, FIX_REPAIR_CATEGORIES, Finding, FindingFix, FontFamilies, JsonPatchOperation, OPFMoveToCustomError, OpenOptions, Presentation, RecordProvenance, ResolveVariablesOptions, SLIDE_SCOPED_BUILTINS, SaveOptions, SaveResult, TextMeasurement, UnresolvedReferenceDiagnostic, ValidateOptions, ValidationCategory, ValidationReport, VariableDiagnostic, continueOverfull, convert, copySlides, createValidator, edit, embed, fill, fillRecords, fix, isSafePatch, localAssetSources, moveToCustom, open, paginate, resolveDesignRecords, resolveDrawnFontFamilies, resolveFontScheme, resolveSlideVariables, sameRecord, save, stats, updateFromCatalog, validate };
|
|
826
|
-
export type { AppliedFix, CatalogPatchOperation, CatalogRecordChange, CatalogRef, CatalogUpdate, CopiedRecordRename, CopySlidesResult, DatasetFact, EditOptions, EditResult, EmbedResult, EmbeddedRecord, FillOptions, FillRecord, FillResult, FilledDeck, FixOptions, FixResult, HeaderFooterFact, MoveToCustomErrorCode, MoveToCustomPatchOperation, MoveToCustomResult, MovedRecord, PresentationStats, ReferenceFact, RefreshedRecord, ResolvedDesignRecords, SlideScopedBuiltin, SlideSizeFact, SlideStats, StatsOptions, StatsSlideRef, TableFact };
|
|
942
|
+
export { Catalog, CatalogKind, CatalogOptions, ConvertFormat, ConvertInput, ConvertOptions, ConvertResult, DEFAULT_FIX_ROUNDS, EMBED_DEFAULT_ASPECT, FIX_REPAIR_CATEGORIES, Finding, FindingFix, FontFamilies, JsonPatchOperation, OPFMoveToCustomError, OpenOptions, Presentation, RecordProvenance, ResolveVariablesOptions, SLIDE_SCOPED_BUILTINS, SaveOptions, SaveResult, TextMeasurement, TextStyle, UnresolvedReferenceDiagnostic, ValidateOptions, ValidationCategory, ValidationReport, VariableDiagnostic, collectSlideLinks, continueOverfull, convert, copySlides, createValidator, credentialInSrc, edit, embed, embedArrowPoints, embedAspect, embedCardLayout, embedSite, embedTitle, embedValue, fill, fillRecords, fix, isSafePatch, localAssetSources, moveToCustom, open, paginate, parseInstant, renameRecordKeys, resolveDesignRecords, resolveDrawnFontFamilies, resolveFontScheme, resolveSlideVariables, sameRecord, save, slideLink, slideLinkId, stats, updateFromCatalog, validate };
|
|
943
|
+
export type { AppliedFix, CatalogPatchOperation, CatalogRecordChange, CatalogRef, CatalogUpdate, CopiedRecordRename, CopySlidesResult, DatasetFact, EditOptions, EditResult, EmbedCardInput, EmbedCardLayout, EmbedCardText, EmbedResult, EmbedValue, EmbeddedRecord, FillOptions, FillRecord, FillResult, FilledDeck, FixOptions, FixResult, HeaderFooterFact, MoveToCustomErrorCode, MoveToCustomPatchOperation, MoveToCustomResult, MovedRecord, PresentationStats, ReferenceFact, RefreshedRecord, ResolvedDesignRecords, SlideScopedBuiltin, SlideSizeFact, SlideStats, StatsOptions, StatsSlideRef, TableFact };
|
package/dist/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { defaultCatalogs } from './chunk-XJUMFH33.js';
|
|
2
|
-
import { stats, embed, fix, edit, OPFApiError, asApiError } from './chunk-
|
|
3
|
-
export { DEFAULT_FIX_ROUNDS, FIX_REPAIR_CATEGORIES, OPFApiError, OPFExportError, OPFImportError, OPFMoveToCustomError, copySlides, fill, fillRecords, isSafePatch, localAssetSources, moveToCustom, parseSlideSelection, sameRecord, updateFromCatalog } from './chunk-
|
|
2
|
+
import { stats, embed, fix, edit, OPFApiError, asApiError } from './chunk-BPILTZUJ.js';
|
|
3
|
+
export { DEFAULT_FIX_ROUNDS, FIX_REPAIR_CATEGORIES, OPFApiError, OPFExportError, OPFImportError, OPFMoveToCustomError, copySlides, embedArrowPoints, embedCardLayout, fill, fillRecords, isSafePatch, localAssetSources, moveToCustom, parseSlideSelection, sameRecord, updateFromCatalog } from './chunk-BPILTZUJ.js';
|
|
4
4
|
export { specFileEntries, specFileKinds, specFilePaths } from './chunk-W4DYDRV2.js';
|
|
5
|
-
export { FONT_POLICY, applyFontPolicyDecisions, fontAvailabilityDiagnostics, fontPolicyFor } from './chunk-
|
|
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-
|
|
5
|
+
export { FONT_POLICY, applyFontPolicyDecisions, fontAvailabilityDiagnostics, fontPolicyFor } from './chunk-QQBOI5XI.js';
|
|
6
|
+
export { OPFDataImportError, declareColumns, inferColumnDeclaration, ingest, parseTabularData, storeCell, updateMetricLiterals } from './chunk-ORVMHVOS.js';
|
|
7
|
+
import { paginate, continueOverfull } from './chunk-PDBZN7EJ.js';
|
|
8
|
+
export { OPFPaginationError, blockUnits, continuationPages, paginateSlide } from './chunk-PDBZN7EJ.js';
|
|
9
|
+
export { DECK_FORMATS, deckFormatOf, parse, stringify } from './chunk-XY332BQP.js';
|
|
10
|
+
export { fromMarkdown, toMarkdown } from './chunk-ITGR2RW2.js';
|
|
11
|
+
import './chunk-HOK3DZA6.js';
|
|
12
|
+
export { OPFFormatError, format } from './chunk-DMV3G65U.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-SIF5JDZC.js';
|
|
15
|
+
import './chunk-HBO64RWP.js';
|
|
16
|
+
import './chunk-MNJ4JV7I.js';
|
|
17
|
+
export { OPFMarkdownError } from './chunk-ZB427MLO.js';
|
|
18
|
+
import './chunk-EHYAVRL3.js';
|
|
19
|
+
export { OPFIdError, assignIds, touches } from './chunk-63Y75CCK.js';
|
|
20
|
+
export { diff, merge } from './chunk-434E2RWO.js';
|
|
21
|
+
import { validate, createValidator, OPFValidationError } from './chunk-DDD4WUEH.js';
|
|
22
|
+
export { CATALOG_SCHEMA, DEFAULT_VALIDATION_THRESHOLDS, OPFPatchError, OPFPatchHashError, OPFPatchValidationError, OPFValidationError, applyPatch, assertValid, assertValidCatalogRecord, catalogDisplayKinds, catalogIconKinds, catalogSchemaNames, collectSlideLinks, credentialInSrc, documentHash, findValidationRule, idToken, isIdToken, parseInstant, renameRecordKeys, resolveDrawnFontFamilies, resolveIdPatch, resolveIdPointer, resolveSlideContext, slideLink, slideLinkId, toIdPatch, toIdPointer, validateCatalogRecord, validationCategories, validationRules } from './chunk-DDD4WUEH.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,
|
|
24
|
+
export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone } from './chunk-Q2L5ERNK.js';
|
|
25
|
+
export { CATALOG_GROUP_PATTERN, CATALOG_REFERENCE_PATTERN, CHART_TYPES, DEFAULT_VARIABLE_DATE_FORMAT, EMBED_DEFAULT_ASPECT, ENGINE_DEFAULT_CHART_TYPES, ENGINE_DEFAULT_COLOR_SCHEME, ENGINE_DEFAULT_FONT_SCHEME, ENGINE_DEFAULT_THEME, LANGUAGES, LOGO_SHAPES, OPFCatalogsOptionError, OPFUnresolvedReferenceError, OPFVariableError, SCHEME_COLOR_NAMES, SLIDE_SCOPED_BUILTINS, SOCIAL_PLATFORMS, VARIABLE_KINDS, asciiDigits, catalogGroupSource, catalogKinds, catalogRecords, catalogReferenceSites, cellMatchesType, chartDrawDiagnostics, chartDrawPlan, chartNumber, coerceVariableValue, dataProvenance, dataSourcesOf, datasetColumnDeclaration, datasetDiagnostics, dateNamesOf, diagramsPending, embedAspect, embedIcons, embedSite, embedTitle, embedValue, ensureDiagrams, ensureIcons, ensureShapes, formatDataNumber, formatNumber, formatPercentNumber, formatVariableNumber, fromExcelNumberFormat, hasContentVariables, iconsPending, inlineChartData, inlineDatasets, inlineTableData, isDatasetRef, isPlaceLabel, isSupportedNumberingSystem, isTemplate, isXYChartType, languageInEffect, listBuiltinVariables, listVariables, localizeDigits, longDatePattern, markLabelColor, mixOklab, nearIconNames, normalizeScriptGroup, numberFormatError, numberLocale, numberingSystemExtension, numberingSystemOf, numeralScripts, oklabToSrgb, parseIconReference, parseReference, pickTranslation, pinTableColorScale, plainLanguageTag, resolveChartData, resolveDataSource, resolveDesignRecords, resolveFontScheme, resolveIcon, resolveMetric, resolveReference, resolveSlideVariables, resolveTableColorScale, resolveTableData, resolveVariables, rowCells, rowId, shapesPending, srgbToOklab, suggestCellTypeFix, suggestChartNumberFix, supportedNumberingSystems, tableCellDisplayValue, tableColorScaleDiagnostics, tableColorScaleOf, tableColorScaleText, tableRows, toExcelNumberFormat, translationAt, translationLanguageAt, unresolvedReference, unusedDatasets, variableDeclarations, visibleLength } from './chunk-QFT4R2IL.js';
|
|
26
26
|
import './chunk-BLCDUM7B.js';
|
|
27
27
|
import './chunk-PRXZD2II.js';
|
|
28
28
|
|
|
@@ -49,7 +49,7 @@ var continueOverfull2 = (input, options) => continueOverfull(input, withDefaultC
|
|
|
49
49
|
var embed2 = (document, options) => embed(document, withDefaultCatalog(options));
|
|
50
50
|
var fix2 = (document, options) => fix(document, withDefaultCatalog(options));
|
|
51
51
|
var edit2 = (deck, patch, options) => edit(deck, patch, withDefaultCatalog(options));
|
|
52
|
-
var engine = () => import('./conversion-
|
|
52
|
+
var engine = () => import('./conversion-P56LOOE2.js');
|
|
53
53
|
var rethrow = (error, fallback) => {
|
|
54
54
|
if (error instanceof OPFValidationError) throw error;
|
|
55
55
|
throw asApiError(OPFApiError, error, fallback);
|
package/dist/markdown.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ 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-
|
|
6
|
-
import './
|
|
5
|
+
import './composition-DiKC371V.js';
|
|
6
|
+
import './metric-data-B4Q8RFRR.js';
|
|
7
7
|
import './shape-geometry.js';
|
|
8
8
|
import './json-BFSdESOE.js';
|
|
9
9
|
|
package/dist/markdown.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { fromMarkdown, toMarkdown } from './chunk-
|
|
1
|
+
export { fromMarkdown, toMarkdown } from './chunk-ITGR2RW2.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-HBO64RWP.js';
|
|
4
|
+
import './chunk-MNJ4JV7I.js';
|
|
5
|
+
export { OPFMarkdownError } from './chunk-ZB427MLO.js';
|
|
6
|
+
import './chunk-EHYAVRL3.js';
|
|
7
|
+
import './chunk-DDD4WUEH.js';
|
|
8
8
|
import './chunk-JBARNYFR.js';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import './chunk-Q2L5ERNK.js';
|
|
10
|
+
import './chunk-QFT4R2IL.js';
|
|
11
11
|
import './chunk-BLCDUM7B.js';
|
|
12
12
|
import './chunk-PRXZD2II.js';
|