@openpresentation/opf 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{catalogs-x1oFFQnd.d.ts → catalogs-BnnkUX9O.d.ts} +1 -1
- package/dist/catalogs.d.ts +2 -2
- package/dist/{chunk-KSN6RQG2.js → chunk-GQSK3T7X.js} +161 -2
- package/dist/{chunk-PFJE2IW4.js → chunk-H7UXKXEJ.js} +10 -2
- package/dist/{chunk-YLORKB63.js → chunk-IQ727X3E.js} +3 -3
- package/dist/{chunk-WG5A4KZG.js → chunk-OVPWNQIJ.js} +113 -27
- package/dist/composition.d.ts +86 -1
- package/dist/composition.js +1 -1
- package/dist/docs.js +3 -3
- package/dist/examples.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/pagination.js +4 -4
- package/dist/{presentation-UpSHz0aK.d.ts → presentation-B19O_Uzz.d.ts} +100 -6
- package/dist/{schemas-C1DxapX2.d.ts → schemas--QRVBhU1.d.ts} +10 -0
- package/dist/schemas.d.ts +1 -1
- package/dist/schemas.js +1 -1
- package/dist/spec/schemas/opf.schema.json +222 -12
- package/dist/types.d.ts +3 -3
- package/dist/validator.d.ts +3 -3
- package/dist/validator.js +3 -3
- package/package.json +1 -1
|
@@ -2484,22 +2484,66 @@
|
|
|
2484
2484
|
"type": "object",
|
|
2485
2485
|
"description": "Table content. Columns are optional; rows are the only required field.",
|
|
2486
2486
|
"additionalProperties": false,
|
|
2487
|
-
"required": [
|
|
2487
|
+
"required": [
|
|
2488
|
+
"rows"
|
|
2489
|
+
],
|
|
2488
2490
|
"properties": {
|
|
2489
2491
|
"columns": {
|
|
2490
2492
|
"type": "array",
|
|
2491
|
-
"items": {
|
|
2492
|
-
|
|
2493
|
-
|
|
2493
|
+
"items": {
|
|
2494
|
+
"oneOf": [
|
|
2495
|
+
{
|
|
2496
|
+
"type": "string"
|
|
2497
|
+
},
|
|
2498
|
+
{
|
|
2499
|
+
"type": "array",
|
|
2500
|
+
"items": {
|
|
2501
|
+
"$ref": "#/$defs/TextRun"
|
|
2502
|
+
}
|
|
2503
|
+
},
|
|
2504
|
+
{
|
|
2505
|
+
"$ref": "#/$defs/StyledTableCell"
|
|
2506
|
+
},
|
|
2507
|
+
{
|
|
2508
|
+
"type": "null"
|
|
2509
|
+
}
|
|
2510
|
+
]
|
|
2511
|
+
},
|
|
2512
|
+
"description": "Optional column labels. Labels may be strings, rich runs or styled cell objects. Null is an empty label or a placeholder covered by a preceding column span.",
|
|
2513
|
+
"examples": [
|
|
2514
|
+
[
|
|
2515
|
+
"Region",
|
|
2516
|
+
"Q3 Revenue",
|
|
2517
|
+
"Q4 Revenue",
|
|
2518
|
+
"YoY %"
|
|
2519
|
+
]
|
|
2520
|
+
]
|
|
2494
2521
|
},
|
|
2495
2522
|
"rows": {
|
|
2496
2523
|
"type": "array",
|
|
2497
2524
|
"items": {
|
|
2498
2525
|
"type": "array",
|
|
2499
|
-
"items": {
|
|
2526
|
+
"items": {
|
|
2527
|
+
"$ref": "#/$defs/TableCell"
|
|
2528
|
+
}
|
|
2500
2529
|
},
|
|
2501
2530
|
"description": "Two-dimensional table row data; each row aligns by index with columns when columns are supplied.",
|
|
2502
|
-
"examples": [
|
|
2531
|
+
"examples": [
|
|
2532
|
+
[
|
|
2533
|
+
[
|
|
2534
|
+
"North America",
|
|
2535
|
+
12.4,
|
|
2536
|
+
18.1,
|
|
2537
|
+
"46%"
|
|
2538
|
+
],
|
|
2539
|
+
[
|
|
2540
|
+
"EMEA",
|
|
2541
|
+
8.2,
|
|
2542
|
+
11.5,
|
|
2543
|
+
"40%"
|
|
2544
|
+
]
|
|
2545
|
+
]
|
|
2546
|
+
]
|
|
2503
2547
|
}
|
|
2504
2548
|
}
|
|
2505
2549
|
},
|
|
@@ -2568,13 +2612,179 @@
|
|
|
2568
2612
|
},
|
|
2569
2613
|
"TableCell": {
|
|
2570
2614
|
"oneOf": [
|
|
2571
|
-
{
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
{
|
|
2575
|
-
|
|
2615
|
+
{
|
|
2616
|
+
"$ref": "#/$defs/TableCellValue"
|
|
2617
|
+
},
|
|
2618
|
+
{
|
|
2619
|
+
"$ref": "#/$defs/StyledTableCell"
|
|
2620
|
+
}
|
|
2621
|
+
],
|
|
2622
|
+
"description": "A scalar, rich-run array, or styled/spanning cell object. Existing scalar and rich forms remain valid."
|
|
2623
|
+
},
|
|
2624
|
+
"TableCellValue": {
|
|
2625
|
+
"oneOf": [
|
|
2626
|
+
{
|
|
2627
|
+
"type": "string"
|
|
2628
|
+
},
|
|
2629
|
+
{
|
|
2630
|
+
"type": "number"
|
|
2631
|
+
},
|
|
2632
|
+
{
|
|
2633
|
+
"type": "boolean"
|
|
2634
|
+
},
|
|
2635
|
+
{
|
|
2636
|
+
"type": "null"
|
|
2637
|
+
},
|
|
2638
|
+
{
|
|
2639
|
+
"type": "array",
|
|
2640
|
+
"items": {
|
|
2641
|
+
"$ref": "#/$defs/TextRun"
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
],
|
|
2645
|
+
"description": "A scalar table value or canonical rich text runs, without cell decoration or geometry."
|
|
2646
|
+
},
|
|
2647
|
+
"StyledTableCell": {
|
|
2648
|
+
"type": "object",
|
|
2649
|
+
"additionalProperties": false,
|
|
2650
|
+
"required": [
|
|
2651
|
+
"value"
|
|
2652
|
+
],
|
|
2653
|
+
"properties": {
|
|
2654
|
+
"value": {
|
|
2655
|
+
"$ref": "#/$defs/TableCellValue",
|
|
2656
|
+
"description": "Editable cell content; styling and spans do not change its scalar type or rich runs."
|
|
2657
|
+
},
|
|
2658
|
+
"style": {
|
|
2659
|
+
"$ref": "#/$defs/TableCellStyle"
|
|
2660
|
+
},
|
|
2661
|
+
"colSpan": {
|
|
2662
|
+
"type": "integer",
|
|
2663
|
+
"minimum": 1,
|
|
2664
|
+
"description": "Number of grid columns covered, starting at this cell. Covered positions must contain null. Default 1."
|
|
2665
|
+
},
|
|
2666
|
+
"rowSpan": {
|
|
2667
|
+
"type": "integer",
|
|
2668
|
+
"minimum": 1,
|
|
2669
|
+
"description": "Number of grid rows covered, starting at this cell. Covered positions must contain null. Header cells cannot span into body rows. Default 1."
|
|
2670
|
+
}
|
|
2671
|
+
},
|
|
2672
|
+
"description": "A cell with explicit visual style or merged geometry. Its position remains its array column index; use null placeholders for every covered grid position."
|
|
2673
|
+
},
|
|
2674
|
+
"TableCellStyle": {
|
|
2675
|
+
"type": "object",
|
|
2676
|
+
"additionalProperties": false,
|
|
2677
|
+
"properties": {
|
|
2678
|
+
"fill": {
|
|
2679
|
+
"type": "string",
|
|
2680
|
+
"pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
|
|
2681
|
+
"description": "Explicit RGB or RGBA color. Eight-digit colors include alpha; #00000000 is transparent."
|
|
2682
|
+
},
|
|
2683
|
+
"color": {
|
|
2684
|
+
"type": "string",
|
|
2685
|
+
"pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
|
|
2686
|
+
"description": "Default text color, overridden by individual rich run colors."
|
|
2687
|
+
},
|
|
2688
|
+
"align": {
|
|
2689
|
+
"type": "string",
|
|
2690
|
+
"enum": [
|
|
2691
|
+
"left",
|
|
2692
|
+
"center",
|
|
2693
|
+
"right"
|
|
2694
|
+
],
|
|
2695
|
+
"description": "Horizontal text alignment inside the cell."
|
|
2696
|
+
},
|
|
2697
|
+
"verticalAlign": {
|
|
2698
|
+
"type": "string",
|
|
2699
|
+
"enum": [
|
|
2700
|
+
"top",
|
|
2701
|
+
"middle",
|
|
2702
|
+
"bottom"
|
|
2703
|
+
],
|
|
2704
|
+
"description": "Vertical alignment inside the padded cell box."
|
|
2705
|
+
},
|
|
2706
|
+
"padding": {
|
|
2707
|
+
"$ref": "#/$defs/TableCellPadding"
|
|
2708
|
+
},
|
|
2709
|
+
"borders": {
|
|
2710
|
+
"type": "object",
|
|
2711
|
+
"additionalProperties": false,
|
|
2712
|
+
"properties": {
|
|
2713
|
+
"top": {
|
|
2714
|
+
"$ref": "#/$defs/TableCellBorder"
|
|
2715
|
+
},
|
|
2716
|
+
"right": {
|
|
2717
|
+
"$ref": "#/$defs/TableCellBorder"
|
|
2718
|
+
},
|
|
2719
|
+
"bottom": {
|
|
2720
|
+
"$ref": "#/$defs/TableCellBorder"
|
|
2721
|
+
},
|
|
2722
|
+
"left": {
|
|
2723
|
+
"$ref": "#/$defs/TableCellBorder"
|
|
2724
|
+
}
|
|
2725
|
+
},
|
|
2726
|
+
"description": "Independent cell edges. Omitted edges retain the table theme border; width 0 removes an edge."
|
|
2727
|
+
}
|
|
2728
|
+
},
|
|
2729
|
+
"description": "Cell appearance. Sizes use reference pixels at a 720-pixel canvas short edge and scale with the slide."
|
|
2730
|
+
},
|
|
2731
|
+
"TableCellPadding": {
|
|
2732
|
+
"type": "object",
|
|
2733
|
+
"additionalProperties": false,
|
|
2734
|
+
"properties": {
|
|
2735
|
+
"top": {
|
|
2736
|
+
"type": "number",
|
|
2737
|
+
"minimum": 0,
|
|
2738
|
+
"maximum": 200
|
|
2739
|
+
},
|
|
2740
|
+
"right": {
|
|
2741
|
+
"type": "number",
|
|
2742
|
+
"minimum": 0,
|
|
2743
|
+
"maximum": 200
|
|
2744
|
+
},
|
|
2745
|
+
"bottom": {
|
|
2746
|
+
"type": "number",
|
|
2747
|
+
"minimum": 0,
|
|
2748
|
+
"maximum": 200
|
|
2749
|
+
},
|
|
2750
|
+
"left": {
|
|
2751
|
+
"type": "number",
|
|
2752
|
+
"minimum": 0,
|
|
2753
|
+
"maximum": 200
|
|
2754
|
+
}
|
|
2755
|
+
},
|
|
2756
|
+
"description": "Text insets in reference pixels. Defaults: top 8, right 10, bottom 4, left 10."
|
|
2757
|
+
},
|
|
2758
|
+
"TableCellBorder": {
|
|
2759
|
+
"type": "object",
|
|
2760
|
+
"additionalProperties": false,
|
|
2761
|
+
"required": [
|
|
2762
|
+
"color",
|
|
2763
|
+
"width"
|
|
2576
2764
|
],
|
|
2577
|
-
"
|
|
2765
|
+
"properties": {
|
|
2766
|
+
"color": {
|
|
2767
|
+
"type": "string",
|
|
2768
|
+
"pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
|
|
2769
|
+
"description": "Explicit RGB or RGBA color. Eight-digit colors include alpha; #00000000 is transparent."
|
|
2770
|
+
},
|
|
2771
|
+
"width": {
|
|
2772
|
+
"type": "number",
|
|
2773
|
+
"minimum": 0,
|
|
2774
|
+
"maximum": 32,
|
|
2775
|
+
"description": "Border width in reference pixels; 0 removes this edge."
|
|
2776
|
+
},
|
|
2777
|
+
"dash": {
|
|
2778
|
+
"type": "string",
|
|
2779
|
+
"enum": [
|
|
2780
|
+
"solid",
|
|
2781
|
+
"dash",
|
|
2782
|
+
"dot"
|
|
2783
|
+
],
|
|
2784
|
+
"description": "Default solid."
|
|
2785
|
+
}
|
|
2786
|
+
},
|
|
2787
|
+
"description": "One explicit cell border."
|
|
2578
2788
|
},
|
|
2579
2789
|
"Catalogs": {
|
|
2580
2790
|
"type": "object",
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { P as Presentation } from './presentation-
|
|
2
|
-
export { A as Audience, c as CatalogKind, e as ChartType, f as ColorScheme, F as FontScheme, L as Language, g as Layout, N as Narrative, P as Purpose, S as SocialPlatform, T as Theme, h as Tone } from './catalogs-
|
|
3
|
-
export { a as SchemaName } from './schemas
|
|
1
|
+
export { P as Presentation } from './presentation-B19O_Uzz.js';
|
|
2
|
+
export { A as Audience, c as CatalogKind, e as ChartType, f as ColorScheme, F as FontScheme, L as Language, g as Layout, N as Narrative, P as Purpose, S as SocialPlatform, T as Theme, h as Tone } from './catalogs-BnnkUX9O.js';
|
|
3
|
+
export { a as SchemaName } from './schemas--QRVBhU1.js';
|
|
4
4
|
export { ValidationIssue, ValidationResult } from './validator.js';
|
package/dist/validator.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as Presentation } from './presentation-
|
|
2
|
-
import { c as CatalogKind } from './catalogs-
|
|
3
|
-
import { a as SchemaName, J as JsonSchema } from './schemas
|
|
1
|
+
import { P as Presentation } from './presentation-B19O_Uzz.js';
|
|
2
|
+
import { c as CatalogKind } from './catalogs-BnnkUX9O.js';
|
|
3
|
+
import { a as SchemaName, J as JsonSchema } from './schemas--QRVBhU1.js';
|
|
4
4
|
|
|
5
5
|
interface ValidationIssue {
|
|
6
6
|
path: string;
|
package/dist/validator.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { OPFValidationError, assertValid, assertValidCatalogRecord, assertValidPresentation, validate, validateCatalogRecord, validatePresentation } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { OPFValidationError, assertValid, assertValidCatalogRecord, assertValidPresentation, validate, validateCatalogRecord, validatePresentation } from './chunk-H7UXKXEJ.js';
|
|
2
|
+
import './chunk-OVPWNQIJ.js';
|
|
3
|
+
import './chunk-GQSK3T7X.js';
|
|
4
4
|
import './chunk-TWMRZ43O.js';
|
package/package.json
CHANGED