@openpresentation/opf 0.2.1 → 0.2.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/schemas.d.ts CHANGED
@@ -65,17 +65,21 @@ declare const presentation: {
65
65
  readonly examples: ["Bob Lee", ["Bob Lee", "Carla Diaz"]];
66
66
  };
67
67
  readonly audience: {
68
- readonly type: "array";
69
- readonly items: {
70
- readonly oneOf: [{
71
- readonly type: "string";
72
- }, {
73
- readonly $ref: "#/$defs/Audience";
74
- }];
75
- };
76
- readonly minItems: 1;
77
- readonly description: "Intended audiences for the presentation. Each item accepts either:\n- A string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.\n- An inline Audience object for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.\n\nResolution order for catalog ids and references: inline catalogs.audiences.records[] → catalogs.audiences.source → default catalog at https://www.pptx.gallery/audiences.";
78
- readonly examples: [["executives"], ["board", "c-suite"], ["Series B investors", "https://acme.com/decks/audiences/acme-board.json"], [{
68
+ readonly oneOf: [{
69
+ readonly type: "string";
70
+ }, {
71
+ readonly type: "array";
72
+ readonly items: {
73
+ readonly oneOf: [{
74
+ readonly type: "string";
75
+ }, {
76
+ readonly $ref: "#/$defs/Audience";
77
+ }];
78
+ };
79
+ readonly minItems: 1;
80
+ }];
81
+ readonly description: "Intended audiences for the presentation. Accepts either:\n- A single string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.\n- An array of string shorthands and/or inline Audience objects for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.\n\nResolution order for catalog ids and references: inline catalogs.audiences.records[] → catalogs.audiences.source → default catalog at https://www.pptx.gallery/audiences.";
82
+ readonly examples: ["executives", "Biology Students and Wildlife Enthusiasts", ["executives"], ["board", "c-suite"], ["Series B investors", "https://acme.com/decks/audiences/acme-board.json"], [{
79
83
  readonly id: "executives";
80
84
  readonly attentionBudgetMinutes: 20;
81
85
  }, {
@@ -1668,7 +1672,7 @@ declare const presentation: {
1668
1672
  readonly items: {
1669
1673
  readonly $ref: "#/$defs/ListItem";
1670
1674
  };
1671
- readonly description: "Full-slide generic list payload. Presence of this field infers type 'list'.";
1675
+ readonly description: "Full-slide generic list payload. Presence of this field infers type 'list'. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for layout-agnostic blocks.";
1672
1676
  };
1673
1677
  readonly bullets: {
1674
1678
  readonly type: "array";
@@ -1728,7 +1732,7 @@ declare const presentation: {
1728
1732
  readonly items: {
1729
1733
  readonly $ref: "#/$defs/ContentPayload";
1730
1734
  };
1731
- readonly description: "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified.";
1735
+ readonly description: "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for equivalent blocks.";
1732
1736
  };
1733
1737
  readonly design: {
1734
1738
  readonly $ref: "#/$defs/Design";
@@ -4172,17 +4176,21 @@ declare const schemas: {
4172
4176
  readonly examples: ["Bob Lee", ["Bob Lee", "Carla Diaz"]];
4173
4177
  };
4174
4178
  readonly audience: {
4175
- readonly type: "array";
4176
- readonly items: {
4177
- readonly oneOf: [{
4178
- readonly type: "string";
4179
- }, {
4180
- readonly $ref: "#/$defs/Audience";
4181
- }];
4182
- };
4183
- readonly minItems: 1;
4184
- readonly description: "Intended audiences for the presentation. Each item accepts either:\n- A string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.\n- An inline Audience object for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.\n\nResolution order for catalog ids and references: inline catalogs.audiences.records[] → catalogs.audiences.source → default catalog at https://www.pptx.gallery/audiences.";
4185
- readonly examples: [["executives"], ["board", "c-suite"], ["Series B investors", "https://acme.com/decks/audiences/acme-board.json"], [{
4179
+ readonly oneOf: [{
4180
+ readonly type: "string";
4181
+ }, {
4182
+ readonly type: "array";
4183
+ readonly items: {
4184
+ readonly oneOf: [{
4185
+ readonly type: "string";
4186
+ }, {
4187
+ readonly $ref: "#/$defs/Audience";
4188
+ }];
4189
+ };
4190
+ readonly minItems: 1;
4191
+ }];
4192
+ readonly description: "Intended audiences for the presentation. Accepts either:\n- A single string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.\n- An array of string shorthands and/or inline Audience objects for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.\n\nResolution order for catalog ids and references: inline catalogs.audiences.records[] → catalogs.audiences.source → default catalog at https://www.pptx.gallery/audiences.";
4193
+ readonly examples: ["executives", "Biology Students and Wildlife Enthusiasts", ["executives"], ["board", "c-suite"], ["Series B investors", "https://acme.com/decks/audiences/acme-board.json"], [{
4186
4194
  readonly id: "executives";
4187
4195
  readonly attentionBudgetMinutes: 20;
4188
4196
  }, {
@@ -5775,7 +5783,7 @@ declare const schemas: {
5775
5783
  readonly items: {
5776
5784
  readonly $ref: "#/$defs/ListItem";
5777
5785
  };
5778
- readonly description: "Full-slide generic list payload. Presence of this field infers type 'list'.";
5786
+ readonly description: "Full-slide generic list payload. Presence of this field infers type 'list'. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for layout-agnostic blocks.";
5779
5787
  };
5780
5788
  readonly bullets: {
5781
5789
  readonly type: "array";
@@ -5835,7 +5843,7 @@ declare const schemas: {
5835
5843
  readonly items: {
5836
5844
  readonly $ref: "#/$defs/ContentPayload";
5837
5845
  };
5838
- readonly description: "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified.";
5846
+ readonly description: "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for equivalent blocks.";
5839
5847
  };
5840
5848
  readonly design: {
5841
5849
  readonly $ref: "#/$defs/Design";
@@ -8283,17 +8291,21 @@ declare const schemaEntries: readonly [{
8283
8291
  readonly examples: ["Bob Lee", ["Bob Lee", "Carla Diaz"]];
8284
8292
  };
8285
8293
  readonly audience: {
8286
- readonly type: "array";
8287
- readonly items: {
8288
- readonly oneOf: [{
8289
- readonly type: "string";
8290
- }, {
8291
- readonly $ref: "#/$defs/Audience";
8292
- }];
8293
- };
8294
- readonly minItems: 1;
8295
- readonly description: "Intended audiences for the presentation. Each item accepts either:\n- A string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.\n- An inline Audience object for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.\n\nResolution order for catalog ids and references: inline catalogs.audiences.records[] → catalogs.audiences.source → default catalog at https://www.pptx.gallery/audiences.";
8296
- readonly examples: [["executives"], ["board", "c-suite"], ["Series B investors", "https://acme.com/decks/audiences/acme-board.json"], [{
8294
+ readonly oneOf: [{
8295
+ readonly type: "string";
8296
+ }, {
8297
+ readonly type: "array";
8298
+ readonly items: {
8299
+ readonly oneOf: [{
8300
+ readonly type: "string";
8301
+ }, {
8302
+ readonly $ref: "#/$defs/Audience";
8303
+ }];
8304
+ };
8305
+ readonly minItems: 1;
8306
+ }];
8307
+ readonly description: "Intended audiences for the presentation. Accepts either:\n- A single string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.\n- An array of string shorthands and/or inline Audience objects for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.\n\nResolution order for catalog ids and references: inline catalogs.audiences.records[] → catalogs.audiences.source → default catalog at https://www.pptx.gallery/audiences.";
8308
+ readonly examples: ["executives", "Biology Students and Wildlife Enthusiasts", ["executives"], ["board", "c-suite"], ["Series B investors", "https://acme.com/decks/audiences/acme-board.json"], [{
8297
8309
  readonly id: "executives";
8298
8310
  readonly attentionBudgetMinutes: 20;
8299
8311
  }, {
@@ -9886,7 +9898,7 @@ declare const schemaEntries: readonly [{
9886
9898
  readonly items: {
9887
9899
  readonly $ref: "#/$defs/ListItem";
9888
9900
  };
9889
- readonly description: "Full-slide generic list payload. Presence of this field infers type 'list'.";
9901
+ readonly description: "Full-slide generic list payload. Presence of this field infers type 'list'. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for layout-agnostic blocks.";
9890
9902
  };
9891
9903
  readonly bullets: {
9892
9904
  readonly type: "array";
@@ -9946,7 +9958,7 @@ declare const schemaEntries: readonly [{
9946
9958
  readonly items: {
9947
9959
  readonly $ref: "#/$defs/ContentPayload";
9948
9960
  };
9949
- readonly description: "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified.";
9961
+ readonly description: "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for equivalent blocks.";
9950
9962
  };
9951
9963
  readonly design: {
9952
9964
  readonly $ref: "#/$defs/Design";
package/dist/schemas.js CHANGED
@@ -92,20 +92,29 @@ var presentation = {
92
92
  ]
93
93
  },
94
94
  "audience": {
95
- "type": "array",
96
- "items": {
97
- "oneOf": [
98
- {
99
- "type": "string"
95
+ "oneOf": [
96
+ {
97
+ "type": "string"
98
+ },
99
+ {
100
+ "type": "array",
101
+ "items": {
102
+ "oneOf": [
103
+ {
104
+ "type": "string"
105
+ },
106
+ {
107
+ "$ref": "#/$defs/Audience"
108
+ }
109
+ ]
100
110
  },
101
- {
102
- "$ref": "#/$defs/Audience"
103
- }
104
- ]
105
- },
106
- "minItems": 1,
107
- "description": "Intended audiences for the presentation. Each item accepts either:\n- A string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.\n- An inline Audience object for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.\n\nResolution order for catalog ids and references: inline catalogs.audiences.records[] \u2192 catalogs.audiences.source \u2192 default catalog at https://www.pptx.gallery/audiences.",
111
+ "minItems": 1
112
+ }
113
+ ],
114
+ "description": "Intended audiences for the presentation. Accepts either:\n- A single string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.\n- An array of string shorthands and/or inline Audience objects for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.\n\nResolution order for catalog ids and references: inline catalogs.audiences.records[] \u2192 catalogs.audiences.source \u2192 default catalog at https://www.pptx.gallery/audiences.",
108
115
  "examples": [
116
+ "executives",
117
+ "Biology Students and Wildlife Enthusiasts",
109
118
  [
110
119
  "executives"
111
120
  ],
@@ -2460,7 +2469,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
2460
2469
  "items": {
2461
2470
  "$ref": "#/$defs/ListItem"
2462
2471
  },
2463
- "description": "Full-slide generic list payload. Presence of this field infers type 'list'."
2472
+ "description": "Full-slide generic list payload. Presence of this field infers type 'list'. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for layout-agnostic blocks."
2464
2473
  },
2465
2474
  "bullets": {
2466
2475
  "type": "array",
@@ -2530,7 +2539,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
2530
2539
  "items": {
2531
2540
  "$ref": "#/$defs/ContentPayload"
2532
2541
  },
2533
- "description": "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified."
2542
+ "description": "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for equivalent blocks."
2534
2543
  },
2535
2544
  "design": {
2536
2545
  "$ref": "#/$defs/Design",