@openpresentation/opf 0.34.2 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/browser.js +19 -19
- package/dist/{catalog-refs-wtuudZTe.d.ts → catalog-refs-BgotJhR5.d.ts} +105 -95
- package/dist/{catalog-schemas-CSxuFtsu.d.ts → catalog-schemas-BX-VEc5Q.d.ts} +1 -1
- package/dist/{chunk-RM4Z7ZSW.js → chunk-2GCTKQDD.js} +4 -4
- package/dist/{chunk-VI7VWDTN.js → chunk-3KPTVK77.js} +75 -283
- package/dist/{chunk-AQ3WR3H7.js → chunk-3ZTKRX7F.js} +4 -6
- package/dist/{chunk-IDYYLJCQ.js → chunk-4UMZDDJG.js} +11 -29
- package/dist/{chunk-NLJFNCZ4.js → chunk-6JHV2K67.js} +6 -6
- package/dist/{chunk-FK5XG742.js → chunk-6VGLE7C5.js} +114 -2
- package/dist/{chunk-V4G3BYPY.js → chunk-7KUUIL7W.js} +7 -7
- package/dist/{chunk-PHOSM2RA.js → chunk-ARPMSD7V.js} +1 -1
- package/dist/{chunk-UKI43JE6.js → chunk-GGN3NQDK.js} +1 -1
- package/dist/{chunk-XLXCXEVF.js → chunk-GKUAVSXU.js} +3 -10
- package/dist/{chunk-HX4HEJB4.js → chunk-HORPH6O7.js} +7 -6
- package/dist/{chunk-KJFCHCWV.js → chunk-JQNT37IO.js} +4 -13
- package/dist/{chunk-WBPXRUZT.js → chunk-KNMMEE67.js} +795 -467
- package/dist/{chunk-IGT4523S.js → chunk-LDLLZQPP.js} +706 -432
- package/dist/{chunk-6MSH3KCZ.js → chunk-MS2LPR7F.js} +1 -5
- package/dist/{chunk-NMZCPZ3R.js → chunk-MVPQEMCP.js} +97 -15
- package/dist/{chunk-P2X4BBW2.js → chunk-NPRNWPP4.js} +1 -1
- package/dist/{chunk-EQCZ2SFD.js → chunk-P2ACZJUL.js} +6 -6
- package/dist/chunk-SEC4IOOS.js +1 -0
- package/dist/{chunk-VVPPMHP6.js → chunk-VMPOCXTE.js} +5 -17
- package/dist/{chunk-MDAXXFAY.js → chunk-ZZWX4W2G.js} +2 -2
- package/dist/{composition-DF07Ha4R.d.ts → composition-BmJfljJl.d.ts} +198 -114
- package/dist/composition.d.ts +2 -2
- package/dist/composition.js +1 -1
- package/dist/{conversion-52ki0lfZ.d.ts → conversion-BbXhlurO.d.ts} +7 -7
- package/dist/conversion-VWCH3NKR.js +25 -0
- package/dist/convert.d.ts +11 -11
- package/dist/convert.js +61 -86
- package/dist/data.d.ts +1 -1
- package/dist/data.js +2 -2
- package/dist/{deck-report-C3EsoHC3.d.ts → deck-report-BYkbL7uT.d.ts} +3 -3
- package/dist/deck.d.ts +6 -6
- package/dist/deck.js +11 -11
- package/dist/diagram-engine-eager.js +1 -1
- package/dist/diagram-engine-lazy.js +1 -1
- package/dist/{diagram-plantuml-XRZ6VAOL.js → diagram-plantuml-GWXGKY7R.js} +1 -1
- package/dist/diff.d.ts +2 -2
- package/dist/diff.js +4 -4
- package/dist/docs.js +39 -39
- package/dist/examples.js +6336 -8170
- package/dist/{finding-l9dlQ2NF.d.ts → finding-mcHslZLA.d.ts} +6 -2
- package/dist/font-policy.d.ts +16 -2
- package/dist/font-policy.js +1 -1
- package/dist/format.js +2 -2
- package/dist/ids.d.ts +2 -2
- package/dist/ids.js +4 -4
- package/dist/index.d.ts +125 -27
- package/dist/index.js +24 -23
- package/dist/markdown.d.ts +1 -1
- package/dist/markdown.js +8 -8
- package/dist/node-engine.d.ts +6 -6
- package/dist/node-engine.js +21 -21
- package/dist/{pagination-Do7vNgU-.d.ts → pagination-C0FPjO29.d.ts} +4 -4
- package/dist/pagination.d.ts +3 -3
- package/dist/pagination.js +4 -4
- package/dist/patch.d.ts +4 -4
- package/dist/patch.js +3 -3
- package/dist/precompiled.js +2 -2
- package/dist/{presentation-ANs2WkaS.d.ts → presentation-Dx-kZC8Y.d.ts} +25 -81
- package/dist/repo-readme.js +1 -1
- package/dist/schema-engine-ajv.js +1 -1
- package/dist/schema-engine-precompiled.js +2 -2
- package/dist/schema.d.ts +5 -7
- package/dist/schema.js +3 -3
- package/dist/schemas.js +1 -1
- package/dist/source.js +10 -10
- package/dist/spec/reference/engine-defaults.json +1 -1
- package/dist/spec/reference/engine-vocabularies.json +43 -43
- package/dist/spec/reference/font-policy.json +114 -2
- package/dist/spec/reference/font-policy.schema.json +45 -1
- package/dist/spec/schemas/color-scheme.schema.json +2 -2
- package/dist/spec/schemas/finding.schema.json +2 -1
- package/dist/spec/schemas/layout.schema.json +27 -85
- package/dist/spec/schemas/opf.schema.json +26 -175
- package/dist/spec/schemas/theme.schema.json +10 -10
- package/dist/symbol-font-encodings.d.ts +2 -2
- package/dist/types.d.ts +74 -86
- package/dist/{validation-types-BNS41nzb.d.ts → validation-types-DKIe1RQW.d.ts} +5 -5
- package/dist/validator.d.ts +5 -7
- package/dist/validator.js +3 -3
- package/dist/yaml.d.ts +1 -1
- package/dist/yaml.js +7 -7
- package/package.json +5 -5
- package/dist/chunk-HSXWDXKM.js +0 -1
- package/dist/conversion-F3HSCFOV.js +0 -25
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"colorScheme": {
|
|
54
54
|
"type": "string",
|
|
55
55
|
"pattern": "^(?:[a-z][a-z0-9-]*:)?[a-z][a-z0-9-]*$",
|
|
56
|
-
"description": "The theme's default
|
|
56
|
+
"description": "The theme's default color scheme: a reference (a bare id or 'name:id') resolved like design.colorScheme, but in the theme's own catalogs group first.",
|
|
57
57
|
"examples": ["cool-horizon", "boost", "burnt-orange"]
|
|
58
58
|
},
|
|
59
59
|
"fontScheme": {
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"design": {
|
|
100
100
|
"type": "object",
|
|
101
101
|
"additionalProperties": false,
|
|
102
|
-
"description": "The theme's design defaults (OPF 0.19), so a house style such as boxed content or
|
|
102
|
+
"description": "The theme's design defaults (OPF 0.19), so a house style such as boxed content or centered titles is set once: the keys and values of the deck's design for titleAlignment, titlePosition, contentAlignment, contentBox, imageFit, listBullet and listStyle. Per key the slide's design wins, then the deck's design, then this, then the layout record's design, then the engine default.",
|
|
103
103
|
"properties": {
|
|
104
104
|
"titleAlignment": {
|
|
105
105
|
"type": "string",
|
|
@@ -110,6 +110,14 @@
|
|
|
110
110
|
],
|
|
111
111
|
"description": "As design.titleAlignment of a deck."
|
|
112
112
|
},
|
|
113
|
+
"titlePosition": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"enum": [
|
|
116
|
+
"top",
|
|
117
|
+
"start"
|
|
118
|
+
],
|
|
119
|
+
"description": "As design.titlePosition of a deck."
|
|
120
|
+
},
|
|
113
121
|
"contentAlignment": {
|
|
114
122
|
"type": "string",
|
|
115
123
|
"enum": [
|
|
@@ -123,14 +131,6 @@
|
|
|
123
131
|
"type": "boolean",
|
|
124
132
|
"description": "As design.contentBox of a deck."
|
|
125
133
|
},
|
|
126
|
-
"contentDirection": {
|
|
127
|
-
"type": "string",
|
|
128
|
-
"enum": [
|
|
129
|
-
"horizontal",
|
|
130
|
-
"vertical"
|
|
131
|
-
],
|
|
132
|
-
"description": "As design.contentDirection of a deck."
|
|
133
|
-
},
|
|
134
134
|
"imageFit": {
|
|
135
135
|
"type": "string",
|
|
136
136
|
"enum": [
|
|
@@ -86,7 +86,7 @@ interface SymbolFontEncodingTable {
|
|
|
86
86
|
};
|
|
87
87
|
families: SymbolFontEncoding[];
|
|
88
88
|
}
|
|
89
|
-
/** One character of symbol-font text,
|
|
89
|
+
/** One character of symbol-font text, normalized to its code and Unicode equivalent. */
|
|
90
90
|
interface SymbolTextCharacter {
|
|
91
91
|
/** The character as it appears in the text (one code point). */
|
|
92
92
|
source: string;
|
|
@@ -119,7 +119,7 @@ declare function symbolUnicodeFor(family: string, code: number): string | null;
|
|
|
119
119
|
*/
|
|
120
120
|
declare function symbolCodeForUnicode(family: string, text: string): number | null;
|
|
121
121
|
/**
|
|
122
|
-
*
|
|
122
|
+
* Normalize text in a symbol-encoded family character by character: each character's code (or null when
|
|
123
123
|
* it is not symbol-encoded text) and the Unicode equivalent to draw (or null, with the table's reason).
|
|
124
124
|
* Unknown families map every character to `{code: null, unicode: null}`.
|
|
125
125
|
*/
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { P as Presentation } from './presentation-
|
|
2
|
-
export { a as CatalogKind } from './catalog-refs-
|
|
1
|
+
export { P as Presentation } from './presentation-Dx-kZC8Y.js';
|
|
2
|
+
export { a as CatalogKind } from './catalog-refs-BgotJhR5.js';
|
|
3
3
|
export { SchemaName } from './schemas.js';
|
|
4
|
-
export { a as Finding,
|
|
4
|
+
export { a as Finding, e as FindingCategory, d as FindingFix, f as FindingFocus, b as FindingLocation, F as FindingReport, c as FindingSeverity, g as FindingSuggestion, J as JsonPatchOperation, V as ValidationIssue } from './finding-mcHslZLA.js';
|
|
5
5
|
import './json-BFSdESOE.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -247,7 +247,7 @@ interface Theme {
|
|
|
247
247
|
*/
|
|
248
248
|
description?: string;
|
|
249
249
|
/**
|
|
250
|
-
* The theme's default
|
|
250
|
+
* The theme's default color scheme: a reference (a bare id or 'name:id') resolved like design.colorScheme, but in the theme's own catalogs group first.
|
|
251
251
|
*/
|
|
252
252
|
colorScheme?: string;
|
|
253
253
|
/**
|
|
@@ -264,13 +264,17 @@ interface Theme {
|
|
|
264
264
|
*/
|
|
265
265
|
dimensions?: ("16:9" | "4:3" | "16:10" | "1:1" | "4:5" | "9:16" | "letter" | "a4" | "widescreen" | "standard");
|
|
266
266
|
/**
|
|
267
|
-
* The theme's design defaults (OPF 0.19), so a house style such as boxed content or
|
|
267
|
+
* The theme's design defaults (OPF 0.19), so a house style such as boxed content or centered titles is set once: the keys and values of the deck's design for titleAlignment, titlePosition, contentAlignment, contentBox, imageFit, listBullet and listStyle. Per key the slide's design wins, then the deck's design, then this, then the layout record's design, then the engine default.
|
|
268
268
|
*/
|
|
269
269
|
design?: {
|
|
270
270
|
/**
|
|
271
271
|
* As design.titleAlignment of a deck.
|
|
272
272
|
*/
|
|
273
273
|
titleAlignment?: ("start" | "center" | "end");
|
|
274
|
+
/**
|
|
275
|
+
* As design.titlePosition of a deck.
|
|
276
|
+
*/
|
|
277
|
+
titlePosition?: ("top" | "start");
|
|
274
278
|
/**
|
|
275
279
|
* As design.contentAlignment of a deck.
|
|
276
280
|
*/
|
|
@@ -279,10 +283,6 @@ interface Theme {
|
|
|
279
283
|
* As design.contentBox of a deck.
|
|
280
284
|
*/
|
|
281
285
|
contentBox?: boolean;
|
|
282
|
-
/**
|
|
283
|
-
* As design.contentDirection of a deck.
|
|
284
|
-
*/
|
|
285
|
-
contentDirection?: ("horizontal" | "vertical");
|
|
286
286
|
/**
|
|
287
287
|
* As design.imageFit of a deck.
|
|
288
288
|
*/
|
|
@@ -397,70 +397,7 @@ type RegionEntry = (HeadingRegion | Region | Split);
|
|
|
397
397
|
*/
|
|
398
398
|
type RegionSize = (number | "auto");
|
|
399
399
|
/**
|
|
400
|
-
*
|
|
401
|
-
*
|
|
402
|
-
* This interface was referenced by `Layout`'s JSON-Schema
|
|
403
|
-
* via the `definition` "Region".
|
|
404
|
-
*/
|
|
405
|
-
type Region = {
|
|
406
|
-
/**
|
|
407
|
-
* The region's name, lowercase kebab-case, unique across the whole record. A block targets it with 'region': '<name>'. It may not be 'title' (those are heading regions), 'tag', 'auto' or one of the promoted-region words ('start', 'center', 'end', 'top', 'middle', 'bottom'), so a Markdown block's region= option stays unambiguous: the validate finding opf/layout-region.
|
|
408
|
-
*/
|
|
409
|
-
name: string;
|
|
410
|
-
size?: RegionSize;
|
|
411
|
-
/**
|
|
412
|
-
* Content kinds the region takes: the body content kinds, and 'group' for a content group of any content. A region that takes 'image' also takes a shape block. A group is also accepted where every one of its leaf kinds is. Omitted: every body content kind and 'group'.
|
|
413
|
-
*
|
|
414
|
-
* @minItems 1
|
|
415
|
-
*/
|
|
416
|
-
accepts?: [("text" | "list" | "image" | "video" | "chart" | "table" | "code" | "metric" | "quote" | "timeline" | "diagram" | "shape" | "group"), ...(("text" | "list" | "image" | "video" | "chart" | "table" | "code" | "metric" | "quote" | "timeline" | "diagram" | "shape" | "group"))[]];
|
|
417
|
-
/**
|
|
418
|
-
* Which content the region wants first. Binding gives a picture (image, video) to a media region first, then primary, secondary, supporting; every other kind to a primary region first, then secondary, supporting, media; of two equal regions the first in reading order fills first. A supporting region receives content only when no primary or secondary region that accepts it has room, or by a pin. Default 'primary'.
|
|
419
|
-
*/
|
|
420
|
-
role?: ("primary" | "secondary" | "media" | "supporting");
|
|
421
|
-
/**
|
|
422
|
-
* How several blocks share the region: 'none' one block fills it (blocks no region had room for join it, up to 6, and it flows as 'auto'); 'grid' by count (1 fills, 2 side by side, 3 in a row, 4 as 2 x 2, 5 as 3 + 2, 6 as 3 x 2, 7 to 12 in balanced rows of at most four, 9 as 3 x 3; rows and columns swap in a portrait region; the cells of a short row stretch to the full width, or keep one size and are centred in a grid of pictures); 'column' stacked at the heights the blocks need, one gap apart, and placed by the region's anchor (charts, pictures, tables, timelines and videos take what the measured blocks leave; blocks that do not fit share the region, each giving up the same fraction of what it can give up above its height at the minimum font size); 'auto' a grid when every block is short and a column when any block is long (more than 6 estimated lines in its grid cell at the starting size). design.contentDirection turns every flowing region into one row or one column. Default 'auto'.
|
|
423
|
-
*/
|
|
424
|
-
flow?: ("none" | "grid" | "column" | "auto");
|
|
425
|
-
/**
|
|
426
|
-
* Blocks the region holds on one slide. Default 1 for flow 'none' (which requires 1), else 6. Content beyond every region's room is drawn in the overflow region with the warning opf/layout-unplaced, and paginate moves it to a continuation slide.
|
|
427
|
-
*/
|
|
428
|
-
max?: number;
|
|
429
|
-
/**
|
|
430
|
-
* The region's outer edges that lie on the content box's edge extend to the slide edge, as a placed image does. A bled region is never drawn as a card. Default false.
|
|
431
|
-
*/
|
|
432
|
-
bleed?: boolean;
|
|
433
|
-
/**
|
|
434
|
-
* 'auto': a list in the region that does not fit its cell at the starting size (a lone list, or one of several blocks) flows into up to three columns before it shrinks, as a list payload's columns: 'auto'; a list of 6 or fewer entries is never split. 2 or more lists alone in a region are one list per cell in a grid instead. Default 1.
|
|
435
|
-
*/
|
|
436
|
-
listColumns?: ("auto" | 1);
|
|
437
|
-
/**
|
|
438
|
-
* How a metric block in the region is laid out. 'stack' (default): value, unit, label and the rest as one block at the region's anchor and content alignment. 'tile': the metric fills its cell (its card when the layout draws cards) from the start: the label first as an eyebrow, the value under it asking for a quarter of the cell's height (between its 76 px role size and twice it, fitted down as usual), and the description, delta and trend at the foot of the cell.
|
|
439
|
-
*/
|
|
440
|
-
metrics?: ("stack" | "tile");
|
|
441
|
-
/**
|
|
442
|
-
* The region lists the steps of a sequence. 'steps': two or more text or list blocks are the steps, each under a numbered badge (an accent circle with its numeral; a one-entry numbered list gives the badge its number and draws as a heading over its description) on one connector line through the badge centers; a lone list's entries are the steps, each beside its badge on a connector down the badge column; a lone list of 3 to 6 entries of one or two words is a flow of chips joined by arrows. 'numbered' (an agenda, ordered by nature): every list of two or more entries of one level draws its entries beside badges, numbered or not; an unnumbered list is counted in arabic, continuing from the region's previous unnumbered list, as drawing only (the document keeps no numbering). Steps keep the text size they have without the badges: a slide whose blocks would get smaller draws them as before. Absent: the region's content draws as any other.
|
|
443
|
-
*/
|
|
444
|
-
sequence?: ("steps" | "numbered");
|
|
445
|
-
/**
|
|
446
|
-
* The region draws its lone list of one level as a diagram (docs/smartart.md), in the first design that holds every entry at one size, the list's role size or larger (up to 1.5 times), never smaller: PowerPoint's own geometry (Basic Pyramid: 1 to 8 entries as stacked levels, the first at the apex; Basic Matrix: exactly four entries as the quadrants of a centered square over a diamond; Basic Cycle: 1 to 8 entries as circles on a ring, the first at the top and the rest clockwise, with an arrow from each to the next, in a frame of the cycle's own proportion centered in the region), which the PPTX export writes as live SmartArt where PowerPoint lays it out as the preview draws it; else OPF's own design (a stepped pyramid with each entry beside its level, four quadrants filling the region, or rounded rectangles on a ring filling the region with an arrow from each to the next). A matrix of other than four entries draws a grid of cards. 'chevrons' (Basic Chevron Process: 1 to 8 entries as a row of chevrons), 'flow' (Basic Process: a row of boxes with arrows between them) and 'vertical-flow' (Vertical Process: a column of boxes with arrows between them), in PowerPoint's geometry where it holds the entries, else OPF's own row or column filling the region. Nodes are filled in the primary color with a 1.5 pt outline in the background color (cards in the card neutral). A cycle's arrows are the primary lightened 40%. A list with nested entries, descriptions, icons or numbering, more than 8 levels or steps, or one no design holds, draws as a list; opf/arrangement-adapted (info) reports the cards and the lists. 'org-chart' and 'hierarchy' take a list whose entry levels form one tree (one root at the first level, each child one level below its parent); a skipped level or a second root keeps the authored list, reported by opf/arrangement-adapted. 'venn' draws 1 to 7 flat sets. These arrangements never draw the list smaller than its own size; whether PowerPoint can edit the result as native shapes and text is decided separately. Absent: the region's content draws as any other.
|
|
447
|
-
*/
|
|
448
|
-
arrangement?: ("pyramid" | "matrix" | "cycle" | "chevrons" | "flow" | "vertical-flow" | "org-chart" | "hierarchy" | "venn");
|
|
449
|
-
/**
|
|
450
|
-
* For arrangement 'pyramid': 'up' (default) puts the narrow tip first, at the top; 'down' puts the widest level first and the tip at the bottom. Entries retain their authored top-to-bottom order. Both the continuous and stepped designs use shared geometry; downward pyramids export as editable native shapes until live SmartArt is qualified.
|
|
451
|
-
*/
|
|
452
|
-
pyramidDirection?: ("up" | "down");
|
|
453
|
-
/**
|
|
454
|
-
* Vertical position of the region's content when it is shorter than the region. Replaces the 'anchor' of the record and of the splits around it. Default: the nearest of those that sets one, else 'top'. A picture shown whole (fit 'contain') and a video, whose 16:9 frame is the largest that fits the cell, sit at the anchor inside the cell.
|
|
455
|
-
*/
|
|
456
|
-
anchor?: ("top" | "middle" | "bottom");
|
|
457
|
-
/**
|
|
458
|
-
* What the region does on a slide that gives it no content: 'collapse' (default) joins its cells to a neighbouring area that shares the full length of one of its edges and is not itself empty; 'keep' leaves the space.
|
|
459
|
-
*/
|
|
460
|
-
empty?: ("collapse" | "keep");
|
|
461
|
-
};
|
|
462
|
-
/**
|
|
463
|
-
* Schema for slide-layout records. A layout is one ordered list of regions, declared once, in reading order: 'direction' says whether the record's 'regions' sit side by side (row) or are stacked (column), and each region says which content kinds it takes and how several blocks share it. A split is an entry that nests a second list the other way, which is how a layout gets two dimensions. 'title' and 'subtitle' are reserved heading regions. Engines compile the list into a grid of tracks (the guillotine partition it describes). Slide content stays flat: engines bind a slide's blocks to the regions by reading order, role and kind (bindRegions in @openpresentation/opf), a block may pin itself to a region with 'region', and an empty region collapses into a neighbour. Built-in and custom layouts are records of this one schema; a custom layout is embedded under catalogs.custom.layouts or shipped in a catalog. Documents reference a layout from Slide.layout; a slide without a layout, with layout 'auto', or whose layout resolves nowhere composes automatically.
|
|
400
|
+
* Schema for slide-layout records. A layout is one ordered list of regions, declared once, in reading order: 'direction' says whether the record's 'regions' sit side by side (row) or are stacked (column), and each region says which content kinds it takes and how several blocks share it. A split is an entry that nests a second list the other way, which is how a layout gets two dimensions. 'title' and 'subtitle' are reserved heading regions. Engines compile the list into a grid of tracks (the guillotine partition it describes). Slide content stays flat: engines bind a slide's blocks to the regions by reading order, role and kind (bindRegions in @openpresentation/opf), a block may pin itself to a region with 'region', and an empty region collapses into a neighbor. Built-in and custom layouts are records of this one schema; a custom layout is embedded under catalogs.custom.layouts or shipped in a catalog. Documents reference a layout from Slide.layout; a slide without a layout, with layout 'auto', or whose layout resolves nowhere composes automatically.
|
|
464
401
|
*
|
|
465
402
|
* A document references a record as a bare id or 'name:id' and resolves it in its own catalogs groups first, then in the catalog the host registered for the group's source; engines never fetch a catalog. A published record file carries '$schema' and 'id'; the copy a document embeds under catalogs.<group>.<kind>.<id> carries neither (the key is the id) and no 'x-*' display metadata.
|
|
466
403
|
*/
|
|
@@ -470,7 +407,7 @@ interface Layout {
|
|
|
470
407
|
*/
|
|
471
408
|
$schema: "https://openpresentation.org/schema/opf-layout/v2";
|
|
472
409
|
/**
|
|
473
|
-
* The layout's id in its catalog, lowercase kebab-case. Required in a published record file; a document references the record by it (a bare id, or 'name:id' for a named group) and embeds it keyed by it, without this field.
|
|
410
|
+
* The layout's id in its catalog, lowercase kebab-case. Required in a published record file; a document references the record by it (a bare id, or 'name:id' for a named group) and embeds it keyed by it, without this field.
|
|
474
411
|
*/
|
|
475
412
|
id: string;
|
|
476
413
|
/**
|
|
@@ -491,7 +428,7 @@ interface Layout {
|
|
|
491
428
|
*/
|
|
492
429
|
direction?: ("row" | "column");
|
|
493
430
|
/**
|
|
494
|
-
* Vertical position of the content of every body region when it is shorter than the region. A split's 'anchor' replaces it for the regions under that split, and a region's own 'anchor' replaces both. Only 'anchor' is inherited, and only by body regions: the heading regions 'title' and 'subtitle' never take it (they set their own, HeadingRegion.anchor), and the other region rules stay per region. One exception places the whole slide: when the record is a column and every entry of its 'regions' list is sized 'auto' (heading regions included), the record has no numeric row to hold the leftover height, so its 'anchor' places the whole stack, title and subtitle included, in the content box's leftover height: 'middle'
|
|
431
|
+
* Vertical position of the content of every body region when it is shorter than the region. A split's 'anchor' replaces it for the regions under that split, and a region's own 'anchor' replaces both. Only 'anchor' is inherited, and only by body regions: the heading regions 'title' and 'subtitle' never take it (they set their own, HeadingRegion.anchor), and the other region rules stay per region. One exception places the whole slide: when the record is a column and every entry of its 'regions' list is sized 'auto' (heading regions included), the record has no numeric row to hold the leftover height, so its 'anchor' places the whole stack, title and subtitle included, in the content box's leftover height: 'middle' centers it, 'bottom' sits it at the foot, 'top' (default) starts it at the top as before. A record with any numeric entry, a row record and an anchor on a split keep the rule above. Default 'top'.
|
|
495
432
|
*/
|
|
496
433
|
anchor?: ("top" | "middle" | "bottom");
|
|
497
434
|
/**
|
|
@@ -502,7 +439,7 @@ interface Layout {
|
|
|
502
439
|
*/
|
|
503
440
|
regions: [RegionEntry] | [RegionEntry, RegionEntry] | [RegionEntry, RegionEntry, RegionEntry] | [RegionEntry, RegionEntry, RegionEntry, RegionEntry] | [RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry] | [RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry] | [RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry] | [RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry] | [RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry] | [RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry] | [RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry] | [RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry, RegionEntry];
|
|
504
441
|
/**
|
|
505
|
-
* The region where content that no region accepts goes, whatever its 'accepts', while it has room; content beyond every region's room is drawn there too, with the warning opf/layout-unplaced. Omitted: the first primary region (in reading order)
|
|
442
|
+
* The region where content that no region accepts goes, whatever its 'accepts', while it has room; content beyond every region's room is drawn there too, with the warning opf/layout-unplaced. Omitted: the first primary region (in reading order) that is not a single-block region ('max': 1).
|
|
506
443
|
*/
|
|
507
444
|
overflowRegion?: string;
|
|
508
445
|
/**
|
|
@@ -542,6 +479,10 @@ interface DesignHints {
|
|
|
542
479
|
* Horizontal alignment of the title heading area. Logical, as design.titleAlignment of a deck: 'start' is the edge a paragraph starts on.
|
|
543
480
|
*/
|
|
544
481
|
titleAlignment?: ("start" | "center" | "end");
|
|
482
|
+
/**
|
|
483
|
+
* Where the heading group sits, as design.titlePosition of a deck: 'top' above the body, or 'start' beside it in a column of two fifths of the content width on the reading side. A record writes its regions under its title and sets 'start' to draw them beside it (the gallery's cycle, matrix and vertical-process do).
|
|
484
|
+
*/
|
|
485
|
+
titlePosition?: ("top" | "start");
|
|
545
486
|
/**
|
|
546
487
|
* Horizontal alignment of the body regions. Logical, as design.contentAlignment of a deck: 'start' is the edge a paragraph starts on.
|
|
547
488
|
*/
|
|
@@ -550,14 +491,6 @@ interface DesignHints {
|
|
|
550
491
|
* Whether the body regions are drawn inside a visible card or surface.
|
|
551
492
|
*/
|
|
552
493
|
contentBox?: boolean;
|
|
553
|
-
/**
|
|
554
|
-
* Axis along which parallel body content is arranged: 'vertical' is a column, 'horizontal' a row. On a layout slide it turns every flowing region into one row or one column; the slide's own composition.mode, columns and weights rank above it.
|
|
555
|
-
*/
|
|
556
|
-
contentDirection?: ("horizontal" | "vertical");
|
|
557
|
-
/**
|
|
558
|
-
* Where the primary chart sits relative to supporting content on automatic slides. Template layouts express this arrangement with their regions; chartPrimary does not override a template.
|
|
559
|
-
*/
|
|
560
|
-
chartPrimary?: ("none" | "top" | "bottom" | "start" | "end");
|
|
561
494
|
/**
|
|
562
495
|
* Default fit of the slide's image blocks: 'cover' fills the frame and crops around focus, 'contain' shows the whole picture, 'stretch' scales it to the frame, 'auto' covers when the crop keeps at least 85% of the picture and contains otherwise.
|
|
563
496
|
*/
|
|
@@ -616,6 +549,61 @@ interface HeadingRegion {
|
|
|
616
549
|
*/
|
|
617
550
|
rule?: boolean;
|
|
618
551
|
}
|
|
552
|
+
/**
|
|
553
|
+
* One body region of a layout: its name, its share of the space and the rules for which content it takes and how several blocks share it.
|
|
554
|
+
*
|
|
555
|
+
* This interface was referenced by `Layout`'s JSON-Schema
|
|
556
|
+
* via the `definition` "Region".
|
|
557
|
+
*/
|
|
558
|
+
interface Region {
|
|
559
|
+
/**
|
|
560
|
+
* The region's name, lowercase kebab-case, unique across the whole record. A block targets it with 'region': '<name>'. It may not be 'title' (those are heading regions), 'tag', 'auto' or one of the cell words of a slide without a layout ('start', 'center', 'end', 'top', 'middle', 'bottom'), so a block's 'region' (and a Markdown block's region= option) stays unambiguous: the validate finding opf/layout-region.
|
|
561
|
+
*/
|
|
562
|
+
name: string;
|
|
563
|
+
size?: RegionSize;
|
|
564
|
+
/**
|
|
565
|
+
* Content kinds the region takes: the body content kinds, and 'group' for a content group of any content. A region that takes 'image' also takes a shape block. A group is also accepted where every one of its leaf kinds is. Omitted: every body content kind and 'group'.
|
|
566
|
+
*
|
|
567
|
+
* @minItems 1
|
|
568
|
+
*/
|
|
569
|
+
accepts?: [("text" | "list" | "image" | "video" | "chart" | "table" | "code" | "metric" | "quote" | "timeline" | "diagram" | "shape" | "group"), ...(("text" | "list" | "image" | "video" | "chart" | "table" | "code" | "metric" | "quote" | "timeline" | "diagram" | "shape" | "group"))[]];
|
|
570
|
+
/**
|
|
571
|
+
* Which content the region wants first. Binding gives a picture (image, video) to a media region first, then primary, supporting; every other kind to a primary region first, then supporting, media; of two equal regions the first in reading order fills first. A supporting region receives content only when no primary region that accepts it has room, or by a pin. Default 'primary'. OPF 0.35 removed 'secondary': write 'supporting' (or 'primary' for content that must be bound first); the old value fails the schema as opf/catalog-record.
|
|
572
|
+
*/
|
|
573
|
+
role?: ("primary" | "media" | "supporting");
|
|
574
|
+
/**
|
|
575
|
+
* How several blocks share the region, in the words of composition.mode: 'auto' a grid when every block is short and a column when any block is long (more than 6 estimated lines in its grid cell at the starting size); 'grid' by count (1 fills, 2 side by side, 3 in a row, 4 as 2 x 2, 5 as 3 + 2, 6 as 3 x 2, 7 to 12 in balanced rows of at most four, 9 as 3 x 3; rows and columns swap in a portrait region; the cells of a short row stretch to the full width, or keep one size and are centered in a grid of pictures); 'row' side by side in one row, one cell each at equal widths in reading order, the counterpart of 'column' (the row is kept as written: no paragraph columns, lead block, list grid or regrouping replaces it); 'column' stacked at the heights the blocks need, one gap apart, and placed by the region's anchor (charts, pictures, tables, timelines and videos take what the measured blocks leave; blocks that do not fit share the region, each giving up the same fraction of what it can give up above its height at the minimum font size). A region of one block is 'max': 1, not a flow. OPF 0.35 removed 'none' (write 'max': 1) and design.contentDirection (write 'row' or 'column' here, or composition.mode on an automatic slide). Default 'auto'.
|
|
576
|
+
*/
|
|
577
|
+
flow?: ("auto" | "grid" | "row" | "column");
|
|
578
|
+
/**
|
|
579
|
+
* Blocks the region holds on one slide. Default 6. 1 makes a single-block region: its block fills it, and blocks no region had room for still join it, up to 6, arranged by its flow (as 'none' did before OPF 0.35); a single-block region is never the default overflowRegion, nor the region a slide's own composition.mode arranges. Content beyond every region's room is drawn in the overflow region with the warning opf/layout-unplaced, and paginate moves it to a continuation slide.
|
|
580
|
+
*/
|
|
581
|
+
max?: number;
|
|
582
|
+
/**
|
|
583
|
+
* The region's outer edges that lie on the content box's edge extend to the slide edge, as a placed image does. A bled region is never drawn as a card. Default false.
|
|
584
|
+
*/
|
|
585
|
+
bleed?: boolean;
|
|
586
|
+
/**
|
|
587
|
+
* How a metric block in the region is laid out. 'stack' (default): value, unit, label and the rest as one block at the region's anchor and content alignment. 'tile': the metric fills its cell (its card when the layout draws cards) from the start: the label first as an eyebrow, the value under it asking for a quarter of the cell's height (between its 76 px role size and twice it, fitted down as usual), and the description, delta and trend at the foot of the cell.
|
|
588
|
+
*/
|
|
589
|
+
metrics?: ("stack" | "tile");
|
|
590
|
+
/**
|
|
591
|
+
* What the region draws its content as. 'steps' and 'numbered' draw a sequence; the other values draw a lone list of one level as a diagram (docs/smartart.md). Absent: the region's content draws as any other.
|
|
592
|
+
*
|
|
593
|
+
* 'steps': two or more text or list blocks are the steps, each under a numbered badge (an accent circle with its numeral; a one-entry numbered list gives the badge its number and draws as a heading over its description) on one connector line through the badge centers; a lone list's entries are the steps, each beside its badge on a connector down the badge column; a lone list of 2 to 8 entries of one level, each of one or two words and at most 24 characters, without numbering, descriptions or icons, draws as Basic Process instead (the 'process' drawing below) where it holds every entry at the size the steps would have or larger. 'numbered' (an agenda, ordered by nature): every list of two or more entries of one level draws its entries beside badges, numbered or not; an unnumbered list is counted in arabic, continuing from the region's previous unnumbered list, as drawing only (the document keeps no numbering). Steps keep the text size they have without the badges: a slide whose blocks would get smaller draws them as before.
|
|
594
|
+
*
|
|
595
|
+
* The diagrams draw in the first design that holds every entry at one size, the list's role size or larger (up to 1.5 times), never smaller: PowerPoint's own geometry (Basic Pyramid: 1 to 8 entries as stacked levels, the first at the apex; Basic Matrix: exactly four entries as the quadrants of a centered square over a diamond; Basic Cycle: 1 to 8 entries as circles on a ring, the first at the top and the rest clockwise, with an arrow from each to the next, in a frame of the cycle's own proportion centered in the region), which the PPTX export writes as live SmartArt where PowerPoint lays it out as the preview draws it; else OPF's own design (a stepped pyramid with each entry beside its level, four quadrants filling the region, or rounded rectangles on a ring filling the region with an arrow from each to the next). 'inverted-pyramid' is the pyramid upside down: the widest level first and the tip at the bottom, the entries still in their authored top-to-bottom order; it exports as editable native shapes. A matrix of other than four entries draws a grid of cards. 'chevrons' (Basic Chevron Process: 1 to 8 entries as a row of chevrons), 'process' (Basic Process: a row of boxes with arrows between them) and 'vertical-process' (Vertical Process: a column of boxes with arrows between them), in PowerPoint's geometry where it holds the entries, else OPF's own row or column filling the region. Nodes are filled in the primary color with a 1.5 pt outline in the background color (cards in the card neutral). A cycle's arrows are the primary lightened 40%. A list with nested entries, descriptions, icons or numbering, more than 8 levels or steps, or one no design holds, draws as a list; opf/arrangement-adapted (info) reports the cards and the lists. 'org-chart' and 'hierarchy' take a list whose entry levels form one tree (one root at the first level, each child one level below its parent); a skipped level or a second root keeps the authored list, reported by opf/arrangement-adapted. 'venn' draws 1 to 7 flat sets. These arrangements never draw the list smaller than its own size; whether PowerPoint can edit the result as native shapes and text is decided separately.
|
|
596
|
+
*/
|
|
597
|
+
arrangement?: ("steps" | "numbered" | "pyramid" | "inverted-pyramid" | "matrix" | "cycle" | "chevrons" | "process" | "vertical-process" | "org-chart" | "hierarchy" | "venn");
|
|
598
|
+
/**
|
|
599
|
+
* Vertical position of the region's content when it is shorter than the region. Replaces the 'anchor' of the record and of the splits around it. Default: the nearest of those that sets one, else 'top'. A picture shown whole (fit 'contain') and a video, whose 16:9 frame is the largest that fits the cell, sit at the anchor inside the cell.
|
|
600
|
+
*/
|
|
601
|
+
anchor?: ("top" | "middle" | "bottom");
|
|
602
|
+
/**
|
|
603
|
+
* What the region does on a slide that gives it no content: 'collapse' (default) joins its cells to a neighboring area that shares the full length of one of its edges and is not itself empty; 'keep' leaves the space.
|
|
604
|
+
*/
|
|
605
|
+
empty?: ("collapse" | "keep");
|
|
606
|
+
}
|
|
619
607
|
/**
|
|
620
608
|
* A split nests a list of regions the other way inside one cell of its parent: a row of regions inside a column, or a column inside a row. It has no name; its regions are declared in reading order like the record's own. Splits nest at most three levels (the record's own list is level 1).
|
|
621
609
|
*
|
|
@@ -1125,11 +1113,11 @@ interface Language {
|
|
|
1125
1113
|
*/
|
|
1126
1114
|
interface ColorScheme {
|
|
1127
1115
|
/**
|
|
1128
|
-
* Identifies a published record file as a
|
|
1116
|
+
* Identifies a published record file as a color scheme record. Required in a published file; an embedded copy omits it.
|
|
1129
1117
|
*/
|
|
1130
1118
|
$schema: "https://openpresentation.org/schema/opf-color-scheme/v1";
|
|
1131
1119
|
/**
|
|
1132
|
-
* The
|
|
1120
|
+
* The color scheme's id in its catalog, lowercase kebab-case. Required in a published record file; a document references the record by it (a bare id, or 'name:id' for a named group) and embeds it keyed by it, without this field.
|
|
1133
1121
|
*/
|
|
1134
1122
|
id: string;
|
|
1135
1123
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as Catalog } from './catalog-refs-
|
|
2
|
-
import { T as TextMeasurement } from './composition-
|
|
3
|
-
import { c as FindingSeverity, F as FindingReport } from './finding-
|
|
1
|
+
import { C as Catalog } from './catalog-refs-BgotJhR5.js';
|
|
2
|
+
import { T as TextMeasurement } from './composition-BmJfljJl.js';
|
|
3
|
+
import { c as FindingSeverity, F as FindingReport } from './finding-mcHslZLA.js';
|
|
4
4
|
import { J as JsonPrimitive } from './json-BFSdESOE.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -205,7 +205,7 @@ interface ValidationThresholds {
|
|
|
205
205
|
minFontSizePt: number;
|
|
206
206
|
/** Minimum effective pixels per inch of an embedded raster image at its displayed size. */
|
|
207
207
|
minImagePpi: number;
|
|
208
|
-
/** Smallest CIE76
|
|
208
|
+
/** Smallest CIE76 color difference between two chart series (after color-vision simulation) before they count as confusable. */
|
|
209
209
|
minSeriesColorDifference: number;
|
|
210
210
|
}
|
|
211
211
|
/** Explicit host policy: the values a field may take. Document metadata is never interpreted as policy. */
|
|
@@ -252,7 +252,7 @@ interface ValidateOptions {
|
|
|
252
252
|
thresholds?: Partial<ValidationThresholds>;
|
|
253
253
|
/** The host's fonts. The layout rules use `fonts.textMeasurement`; see `ValidateFonts`. */
|
|
254
254
|
fonts?: ValidateFonts;
|
|
255
|
-
/** Chart series palette (opaque `#RRGGBB`), in the engine's order. Default: `chartSeriesPalette` of each slide's
|
|
255
|
+
/** Chart series palette (opaque `#RRGGBB`), in the engine's order. Default: `chartSeriesPalette` of each slide's color scheme (accent1 to accent6, then their tints), as opf-render and opf-pptx draw them. */
|
|
256
256
|
chartPalette?: readonly string[];
|
|
257
257
|
/** Check as a template (true) or a normal deck (false), overriding the root `template` marker. */
|
|
258
258
|
template?: boolean;
|
package/dist/validator.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { CatalogRecordKind } from './index.js';
|
|
2
2
|
import { Finding } from './index.js';
|
|
3
3
|
import { Presentation } from './index.js';
|
|
4
|
-
import { b as ValidationThresholds, c as ValidationRuleInfo, V as ValidationReport, a as ValidateOptions } from './validation-types-
|
|
5
|
-
export { C as Contract, d as ValidateFonts, e as ValidationCategory, f as ValidationChecks, g as ValidationRuleCost, v as validationCategories } from './validation-types-
|
|
6
|
-
|
|
4
|
+
import { b as ValidationThresholds, c as ValidationRuleInfo, V as ValidationReport, a as ValidateOptions } from './validation-types-DKIe1RQW.js';
|
|
5
|
+
export { C as Contract, d as ValidateFonts, e as ValidationCategory, f as ValidationChecks, g as ValidationRuleCost, v as validationCategories } from './validation-types-DKIe1RQW.js';
|
|
6
|
+
export { g as gridCells } from './composition-BmJfljJl.js';
|
|
7
|
+
import './catalog-refs-BgotJhR5.js';
|
|
7
8
|
import './schemas.js';
|
|
8
9
|
import './json-BFSdESOE.js';
|
|
9
|
-
import './composition-DF07Ha4R.js';
|
|
10
10
|
import './chart-data-B_k-WTex.js';
|
|
11
11
|
import './shape-geometry.js';
|
|
12
12
|
|
|
@@ -37,8 +37,6 @@ declare const validationRules: readonly ValidationRuleInfo[];
|
|
|
37
37
|
/** The rule a full id (`opf/text-contrast`) or bare name (`text-contrast`) names, or undefined. */
|
|
38
38
|
declare function findValidationRule(name: string): ValidationRuleInfo | undefined;
|
|
39
39
|
|
|
40
|
-
declare const promotedRegionKeys: readonly ["start", "center", "end", "start+center", "center+end", "start+center+end", "top", "middle", "bottom", "top+middle", "middle+bottom", "top+middle+bottom", "top:start", "top:center", "top:end", "top:start+center", "top:center+end", "top:start+center+end", "middle:start", "middle:center", "middle:end", "middle:start+center", "middle:center+end", "middle:start+center+end", "bottom:start", "bottom:center", "bottom:end", "bottom:start+center", "bottom:center+end", "bottom:start+center+end", "top+middle:start", "top+middle:center", "top+middle:end", "top+middle:start+center", "top+middle:center+end", "top+middle:start+center+end", "middle+bottom:start", "middle+bottom:center", "middle+bottom:end", "middle+bottom:start+center", "middle+bottom:center+end", "middle+bottom:start+center+end", "top+middle+bottom:start", "top+middle+bottom:center", "top+middle+bottom:end", "top+middle+bottom:start+center", "top+middle+bottom:center+end", "top+middle+bottom:start+center+end"];
|
|
41
|
-
|
|
42
40
|
declare class OPFValidationError extends Error {
|
|
43
41
|
/** The full report that failed. */
|
|
44
42
|
readonly report: ValidationReport;
|
|
@@ -86,5 +84,5 @@ declare function assertValid(value: unknown, options?: ValidateOptions): asserts
|
|
|
86
84
|
declare function validateCatalogRecord(kind: CatalogRecordKind, value: unknown): ValidationReport;
|
|
87
85
|
declare function assertValidCatalogRecord(kind: CatalogRecordKind, value: unknown): void;
|
|
88
86
|
|
|
89
|
-
export { DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, ValidateOptions, ValidationReport, ValidationRuleInfo, ValidationThresholds, assertValid, assertValidCatalogRecord, createValidator, findValidationRule,
|
|
87
|
+
export { DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, ValidateOptions, ValidationReport, ValidationRuleInfo, ValidationThresholds, assertValid, assertValidCatalogRecord, createValidator, findValidationRule, validate, validateCatalogRecord, validationRules };
|
|
90
88
|
export type { ValidationCacheInfo, Validator };
|
package/dist/validator.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, assertValid, assertValidCatalogRecord, createValidator, findValidationRule, validate, validateCatalogRecord, validationCategories, validationRules } from './chunk-
|
|
1
|
+
export { DEFAULT_VALIDATION_THRESHOLDS, OPFValidationError, assertValid, assertValidCatalogRecord, createValidator, findValidationRule, validate, validateCatalogRecord, validationCategories, validationRules } from './chunk-KNMMEE67.js';
|
|
2
2
|
import './chunk-JBARNYFR.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
export {
|
|
3
|
+
import './chunk-3KPTVK77.js';
|
|
4
|
+
export { gridCells } from './chunk-LDLLZQPP.js';
|
|
5
5
|
import './chunk-BLCDUM7B.js';
|
|
6
6
|
import './chunk-PRXZD2II.js';
|
package/dist/yaml.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Catalog } from './composition.js';
|
|
|
2
2
|
import { Presentation } from './index.js';
|
|
3
3
|
import { ValidateOptions, ValidationReport } from './index.js';
|
|
4
4
|
import { Finding, FindingLocation } from './index.js';
|
|
5
|
-
import './composition-
|
|
5
|
+
import './composition-BmJfljJl.js';
|
|
6
6
|
import './chart-data-B_k-WTex.js';
|
|
7
7
|
import './shape-geometry.js';
|
|
8
8
|
import './json-BFSdESOE.js';
|
package/dist/yaml.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { OPFYamlError, YAML_SCHEMA_URL, fromYaml, parseYamlData, scanYamlComments, toYaml } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { OPFYamlError, YAML_SCHEMA_URL, fromYaml, parseYamlData, scanYamlComments, toYaml } from './chunk-P2ACZJUL.js';
|
|
2
|
+
import './chunk-MS2LPR7F.js';
|
|
3
3
|
import './chunk-RYZPBJLB.js';
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
4
|
+
import './chunk-ZZWX4W2G.js';
|
|
5
|
+
import './chunk-ARPMSD7V.js';
|
|
6
|
+
import './chunk-KNMMEE67.js';
|
|
7
7
|
import './chunk-JBARNYFR.js';
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
8
|
+
import './chunk-3KPTVK77.js';
|
|
9
|
+
import './chunk-LDLLZQPP.js';
|
|
10
10
|
import './chunk-BLCDUM7B.js';
|
|
11
11
|
import './chunk-PRXZD2II.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openpresentation/opf",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"description": "Canonical Open Presentation Format schemas, TypeScript types, local validation and composition; in Node, the file API and the CLI defaults register the pptx.gallery catalog of @openpresentation/gallery.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Open Presentation",
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"jsonc-parser": "3.3.1",
|
|
190
190
|
"pele": "1.13.0",
|
|
191
191
|
"yaml": "^2.9.1",
|
|
192
|
-
"@openpresentation/gallery": "^0.
|
|
192
|
+
"@openpresentation/gallery": "^0.35.0"
|
|
193
193
|
},
|
|
194
194
|
"devDependencies": {
|
|
195
195
|
"@expo-google-fonts/arimo": "0.4.3",
|
|
@@ -210,8 +210,8 @@
|
|
|
210
210
|
"workerd": "1.20261113.1"
|
|
211
211
|
},
|
|
212
212
|
"peerDependencies": {
|
|
213
|
-
"@openpresentation/opf-pptx": "^0.
|
|
214
|
-
"@openpresentation/opf-render": "^0.
|
|
213
|
+
"@openpresentation/opf-pptx": "^0.35.0",
|
|
214
|
+
"@openpresentation/opf-render": "^0.35.0"
|
|
215
215
|
},
|
|
216
216
|
"peerDependenciesMeta": {
|
|
217
217
|
"@openpresentation/opf-pptx": {
|
|
@@ -232,5 +232,5 @@
|
|
|
232
232
|
"test:packed": "node test/packed-install-smoke.mjs",
|
|
233
233
|
"pack:dry-run": "pnpm run build:deps && pnpm run build && npm pack --dry-run --cache /tmp/opf-npm-cache"
|
|
234
234
|
},
|
|
235
|
-
"gitHead": "
|
|
235
|
+
"gitHead": "7697b266464772a98b57070b0937938d3a12852d"
|
|
236
236
|
}
|