@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { applyPatch, normalizePatch, walkPatch, toIdPointer, resolveIdPointer, parsePointer, readPointer, idToken, formatPointer, isIdToken } from './chunk-
|
|
2
|
-
import { isRecord, visitContentPayloads, promotedRegionKeys } from './chunk-
|
|
1
|
+
import { applyPatch, normalizePatch, walkPatch, toIdPointer, resolveIdPointer, parsePointer, readPointer, idToken, formatPointer, isIdToken } from './chunk-WBPXRUZT.js';
|
|
2
|
+
import { isRecord, visitContentPayloads, promotedRegionKeys } from './chunk-IGT4523S.js';
|
|
3
3
|
|
|
4
4
|
// src/ids.ts
|
|
5
5
|
var INDEX_TOKEN = /^(0|[1-9][0-9]*)$/;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isRecord, same } from './chunk-
|
|
2
|
-
import { createLocator } from './chunk-
|
|
1
|
+
import { isRecord, same } from './chunk-PHOSM2RA.js';
|
|
2
|
+
import { createLocator } from './chunk-WBPXRUZT.js';
|
|
3
3
|
import { parseDocument, isMap, isSeq, isScalar, YAMLMap, Scalar, stringify, visit } from 'yaml';
|
|
4
4
|
|
|
5
5
|
var sentence = (text) => text.charAt(0).toUpperCase() + text.slice(1);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OPFDataImportError, parseTabularData } from './chunk-
|
|
2
|
-
import { applyPatchWithInverse, validate, OPFValidationError } from './chunk-
|
|
3
|
-
import { embeddedCopy, checkCatalogsOption, catalogReferenceSites, parseReference, catalogGroupDeclared, resolveReference, dottedPath, unresolvedReference, recordReferenceSites, catalogGroupSource, registeredCatalog, catalogKinds, CATALOG_GROUP_PATTERN, isRecord, visitContentPayloads, annotationText, listVariables, resolveVariables, LOGO_SHAPES, resolveDesignRecords, resolveFontFamilies, resolveCanvasDimensions, imageBackground } from './chunk-
|
|
1
|
+
import { OPFDataImportError, parseTabularData } from './chunk-UKI43JE6.js';
|
|
2
|
+
import { applyPatchWithInverse, validate, OPFValidationError } from './chunk-WBPXRUZT.js';
|
|
3
|
+
import { embeddedCopy, checkCatalogsOption, catalogReferenceSites, parseReference, catalogGroupDeclared, resolveReference, dottedPath, unresolvedReference, recordReferenceSites, catalogGroupSource, registeredCatalog, catalogKinds, CATALOG_GROUP_PATTERN, isRecord, visitContentPayloads, annotationText, listVariables, resolveVariables, LOGO_SHAPES, resolveDesignRecords, resolveFontFamilies, resolveCanvasDimensions, imageBackground } from './chunk-IGT4523S.js';
|
|
4
4
|
|
|
5
5
|
// src/api-errors.ts
|
|
6
6
|
var OPFApiError = class extends Error {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { fromMarkdown, toMarkdown } from './chunk-
|
|
2
|
-
import { fromYaml, toYaml } from './chunk-
|
|
1
|
+
import { fromMarkdown, toMarkdown } from './chunk-IDYYLJCQ.js';
|
|
2
|
+
import { fromYaml, toYaml } from './chunk-EQCZ2SFD.js';
|
|
3
3
|
import { NOT_CHECKED } from './chunk-RYZPBJLB.js';
|
|
4
|
-
import { parseSource, validate, OPFValidationError } from './chunk-
|
|
5
|
-
import { checkCatalogsOption } from './chunk-
|
|
4
|
+
import { parseSource, validate, OPFValidationError } from './chunk-WBPXRUZT.js';
|
|
5
|
+
import { checkCatalogsOption } from './chunk-IGT4523S.js';
|
|
6
6
|
|
|
7
7
|
// src/deck-report.ts
|
|
8
8
|
var DECK_FORMATS = ["json", "yaml", "markdown"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SOURCE_EXPLAIN, ruleDocumentation, findValidationRule, us } from './chunk-
|
|
1
|
+
import { SOURCE_EXPLAIN, ruleDocumentation, findValidationRule, us } from './chunk-WBPXRUZT.js';
|
|
2
2
|
|
|
3
3
|
// src/finding-text-explain-util.ts
|
|
4
4
|
var ex = (fix, problem, fixed) => ({ fix, problem, fixed });
|
|
@@ -491,7 +491,7 @@ var REFERENCES_EXPLAIN = {
|
|
|
491
491
|
{ catalogs: { custom: { layouts: { mine: { name: "Mine", regions: [{ name: "title" }, { name: "body", accepts: ["text"] }] } } } }, slides: [{ title: "Welcome", layout: "mine" }] }
|
|
492
492
|
),
|
|
493
493
|
"opf/unresolved-reference": ex(
|
|
494
|
-
"Choose an id the catalog has (the finding
|
|
494
|
+
"Choose an id the catalog has (the finding names a near miss when there is one, and where the ids are listed), embed the record under `catalogs.custom`, register the catalog that defines it, or remove the reference.",
|
|
495
495
|
{ slides: [{ title: "Pillars", layout: "pilars" }] },
|
|
496
496
|
{ slides: [{ title: "Pillars", layout: "pillars" }] }
|
|
497
497
|
),
|
|
@@ -2133,7 +2133,7 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
2133
2133
|
},
|
|
2134
2134
|
"NumberFormat": {
|
|
2135
2135
|
"type": "string",
|
|
2136
|
-
"description": "Number display pattern, shared by NumberVariable.format, data column formats (DataColumn.format) and table cell formats (StyledTableCell.format). An optional literal prefix, a numeric part of '#', '0', ',' and '.', and an optional literal suffix. '0' pads digits, '#' is optional, ',' groups thousands, digits after '.' fix the decimals ('0' required, '#' optional), and a '%' in the prefix or suffix multiplies the value by 100. English separators only. A format applies only to number values; strings, booleans, null and rich runs display unchanged. A column or cell format that is not a valid pattern is a 'number-format-invalid' error. The PPTX export writes it as the equivalent Excel number format code.",
|
|
2136
|
+
"description": "Number display pattern, shared by NumberVariable.format, data column formats (DataColumn.format) and table cell formats (StyledTableCell.format). An optional literal prefix, a numeric part of '#', '0', ',' and '.', and an optional literal suffix. '0' pads digits, '#' is optional, ',' groups thousands, digits after '.' fix the decimals ('0' required, '#' optional), and a '%' in the prefix or suffix multiplies the value by 100. English separators only. A format is one to three ';'-separated sections, positive;negative;zero, each such a pattern: with two, the second formats negative numbers, with three the third formats zero. A negative section formats the absolute value and prints no minus of its own, so '+0%;-0%' shows +12% and -5%. More than three sections, an empty section or a section without a numeric part is a 'number-format-invalid' error; there is no text section, color or condition. A format applies only to number values; strings, booleans, null and rich runs display unchanged. A column or cell format that is not a valid pattern is a 'number-format-invalid' error. The PPTX export writes it as the equivalent Excel number format code.",
|
|
2137
2137
|
"examples": [
|
|
2138
2138
|
"#,##0",
|
|
2139
2139
|
"0.0",
|
|
@@ -6190,6 +6190,14 @@ Names keep content theme-portable: re-theming the deck updates every named refer
|
|
|
6190
6190
|
"minimum": 0,
|
|
6191
6191
|
"description": "Zero-based nesting level for the list item."
|
|
6192
6192
|
},
|
|
6193
|
+
"assistant": {
|
|
6194
|
+
"type": "boolean",
|
|
6195
|
+
"description": "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."
|
|
6196
|
+
},
|
|
6197
|
+
"overlap": {
|
|
6198
|
+
"type": "boolean",
|
|
6199
|
+
"description": "venn only, on the last entry: it labels where all the sets overlap and is not a set. See docs/smartart.md."
|
|
6200
|
+
},
|
|
6193
6201
|
"icon": {
|
|
6194
6202
|
"$ref": "#/$defs/IconReference",
|
|
6195
6203
|
"description": `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.`
|
|
@@ -10955,6 +10963,14 @@ var iconSet = {
|
|
|
10955
10963
|
]
|
|
10956
10964
|
}
|
|
10957
10965
|
},
|
|
10966
|
+
"renamed": {
|
|
10967
|
+
"type": "object",
|
|
10968
|
+
"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.",
|
|
10969
|
+
"additionalProperties": {
|
|
10970
|
+
"type": "string",
|
|
10971
|
+
"pattern": "^[a-z0-9][a-z0-9-]*$"
|
|
10972
|
+
}
|
|
10973
|
+
},
|
|
10958
10974
|
"tags": {
|
|
10959
10975
|
"type": "object",
|
|
10960
10976
|
"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.",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { parseQuoteLines, levelsFromIndents, parseCodeFence, splitWhen } from './chunk-
|
|
2
|
-
import { Ctx, splitLines, lineRange, readYamlMapping, readCsv, DECIMAL } from './chunk-
|
|
3
|
-
import { runText, isRecord, FORMATTING } from './chunk-
|
|
4
|
-
import { METRIC_KEYS, nearest, BLOCK_AS_VALUES, SLIDE_OPTION_KEYS, BLOCK_OPTION_KEYS } from './chunk-
|
|
5
|
-
import { PROMOTED_REGION_KEY } from './chunk-
|
|
1
|
+
import { parseQuoteLines, levelsFromIndents, parseCodeFence, splitWhen } from './chunk-P2X4BBW2.js';
|
|
2
|
+
import { Ctx, splitLines, lineRange, readYamlMapping, readCsv, DECIMAL } from './chunk-MDAXXFAY.js';
|
|
3
|
+
import { runText, isRecord, FORMATTING } from './chunk-PHOSM2RA.js';
|
|
4
|
+
import { METRIC_KEYS, nearest, BLOCK_AS_VALUES, SLIDE_OPTION_KEYS, BLOCK_OPTION_KEYS } from './chunk-WBPXRUZT.js';
|
|
5
|
+
import { PROMOTED_REGION_KEY } from './chunk-IGT4523S.js';
|
|
6
6
|
|
|
7
7
|
// src/markdown/inline.ts
|
|
8
8
|
var PUNCT = /[\p{P}\p{S}]/u;
|