@openpresentation/opf 0.11.2 → 0.11.3
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-DJ-B5ZyD.d.ts → catalogs-CUClB3nl.d.ts} +202 -5
- package/dist/catalogs.d.ts +1 -1
- package/dist/catalogs.js +1 -1
- package/dist/{chunk-K7IWYODS.js → chunk-57NWIYX3.js} +17 -4
- package/dist/{chunk-7LF37SG3.js → chunk-AEUSVEUY.js} +4915 -1640
- package/dist/{chunk-SDETQV7Y.js → chunk-HJL64ETN.js} +505 -0
- package/dist/{chunk-DJRZMGKY.js → chunk-JCXHSTSM.js} +142 -67
- package/dist/{chunk-LTSDDBNW.js → chunk-JTXCMVVP.js} +245 -10
- package/dist/{chunk-KZ6BT5UG.js → chunk-RXNFDGPC.js} +5 -5
- package/dist/{chunk-SMYEM3HV.js → chunk-UDPSGTZI.js} +2 -2
- package/dist/docs.js +21 -15
- package/dist/examples.d.ts +1 -1
- package/dist/font-policy.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/lint.d.ts +2 -2
- package/dist/lint.js +4 -4
- package/dist/pagination.js +4 -4
- package/dist/{presentation-bceTClm8.d.ts → presentation-Cn6vTOCP.d.ts} +13 -13
- package/dist/repo-readme.js +1 -1
- package/dist/schemas.js +1 -1
- package/dist/spec/README.md +3 -2
- package/dist/spec/catalogs/audiences/index.json +2 -0
- package/dist/spec/catalogs/chart-types/box-and-whisker.json +101 -49
- package/dist/spec/catalogs/chart-types/histogram.json +130 -108
- package/dist/spec/catalogs/chart-types/index.json +2 -0
- package/dist/spec/catalogs/chart-types/pareto.json +22 -106
- package/dist/spec/catalogs/color-schemes/black-and-white.json +10 -1
- package/dist/spec/catalogs/color-schemes/bold-red.json +10 -1
- package/dist/spec/catalogs/color-schemes/boost.json +10 -1
- package/dist/spec/catalogs/color-schemes/burnt-orange.json +10 -1
- package/dist/spec/catalogs/color-schemes/cool-horizon.json +10 -1
- package/dist/spec/catalogs/color-schemes/corporate-blue.json +10 -1
- package/dist/spec/catalogs/color-schemes/deep-purple.json +10 -1
- package/dist/spec/catalogs/color-schemes/forest-green.json +10 -1
- package/dist/spec/catalogs/color-schemes/golden-yellow.json +10 -1
- package/dist/spec/catalogs/color-schemes/index.json +2 -0
- package/dist/spec/catalogs/color-schemes/luxury.json +10 -1
- package/dist/spec/catalogs/color-schemes/pastel-red.json +10 -1
- package/dist/spec/catalogs/color-schemes/slate-gray.json +10 -1
- package/dist/spec/catalogs/color-schemes/steel-blue.json +10 -1
- package/dist/spec/catalogs/color-schemes/vibes.json +10 -1
- package/dist/spec/catalogs/font-schemes/angsana-new.json +2 -1
- package/dist/spec/catalogs/font-schemes/aparajita.json +2 -1
- package/dist/spec/catalogs/font-schemes/aptos.json +2 -1
- package/dist/spec/catalogs/font-schemes/arabic-typesetting.json +2 -1
- package/dist/spec/catalogs/font-schemes/arial.json +2 -1
- package/dist/spec/catalogs/font-schemes/batang.json +2 -1
- package/dist/spec/catalogs/font-schemes/bookman.json +2 -1
- package/dist/spec/catalogs/font-schemes/calibri.json +2 -1
- package/dist/spec/catalogs/font-schemes/century-schoolbook.json +2 -1
- package/dist/spec/catalogs/font-schemes/consolas.json +2 -1
- package/dist/spec/catalogs/font-schemes/constantia.json +2 -1
- package/dist/spec/catalogs/font-schemes/courier-new.json +2 -1
- package/dist/spec/catalogs/font-schemes/daunpenh.json +2 -1
- package/dist/spec/catalogs/font-schemes/david.json +2 -1
- package/dist/spec/catalogs/font-schemes/dilleniaupc.json +2 -1
- package/dist/spec/catalogs/font-schemes/fangsong.json +2 -1
- package/dist/spec/catalogs/font-schemes/garamond.json +2 -1
- package/dist/spec/catalogs/font-schemes/gautami.json +2 -1
- package/dist/spec/catalogs/font-schemes/georgia.json +2 -1
- package/dist/spec/catalogs/font-schemes/gisha.json +2 -1
- package/dist/spec/catalogs/font-schemes/grandview.json +2 -1
- package/dist/spec/catalogs/font-schemes/gungsuh.json +2 -1
- package/dist/spec/catalogs/font-schemes/impact.json +2 -1
- package/dist/spec/catalogs/font-schemes/index.json +236 -234
- package/dist/spec/catalogs/font-schemes/kalinga.json +2 -1
- package/dist/spec/catalogs/font-schemes/kartika.json +2 -1
- package/dist/spec/catalogs/font-schemes/khmer-ui.json +2 -1
- package/dist/spec/catalogs/font-schemes/latha.json +2 -1
- package/dist/spec/catalogs/font-schemes/lucida-sans.json +2 -1
- package/dist/spec/catalogs/font-schemes/malgun-gothic.json +2 -1
- package/dist/spec/catalogs/font-schemes/mangal.json +2 -1
- package/dist/spec/catalogs/font-schemes/meiryo.json +2 -1
- package/dist/spec/catalogs/font-schemes/microsoft-jhenghei.json +2 -1
- package/dist/spec/catalogs/font-schemes/microsoft-yahei.json +2 -1
- package/dist/spec/catalogs/font-schemes/mingliu.json +2 -1
- package/dist/spec/catalogs/font-schemes/miriam.json +2 -1
- package/dist/spec/catalogs/font-schemes/montserrat.json +2 -1
- package/dist/spec/catalogs/font-schemes/ms-mincho.json +2 -1
- package/dist/spec/catalogs/font-schemes/nirmala-ui.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-naksh-arabic.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-nastaliq-urdu.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-arabic.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-armenian.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-bengali.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-devangari.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-ethiopic.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-georgian.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-gujarati.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-gurmukhi.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-hebrew.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-jp.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-kannada.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-khmer.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-kr.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-malayalam.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-mongolian.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-oriya.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-sc.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-tamil.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-tc.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-telugu.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans-thai.json +2 -1
- package/dist/spec/catalogs/font-schemes/noto-sans.json +2 -1
- package/dist/spec/catalogs/font-schemes/nyala.json +2 -1
- package/dist/spec/catalogs/font-schemes/open-sans.json +2 -1
- package/dist/spec/catalogs/font-schemes/pmingliu.json +2 -1
- package/dist/spec/catalogs/font-schemes/poppins.json +2 -1
- package/dist/spec/catalogs/font-schemes/pt-serif.json +2 -1
- package/dist/spec/catalogs/font-schemes/raavi.json +2 -1
- package/dist/spec/catalogs/font-schemes/raleway.json +2 -1
- package/dist/spec/catalogs/font-schemes/roboto.json +2 -1
- package/dist/spec/catalogs/font-schemes/rockwell.json +2 -1
- package/dist/spec/catalogs/font-schemes/sakkal-majalla.json +2 -1
- package/dist/spec/catalogs/font-schemes/seaford.json +2 -1
- package/dist/spec/catalogs/font-schemes/segoe-ui-light.json +2 -1
- package/dist/spec/catalogs/font-schemes/segoe-ui.json +2 -1
- package/dist/spec/catalogs/font-schemes/shonar-bangla.json +2 -1
- package/dist/spec/catalogs/font-schemes/shruti.json +2 -1
- package/dist/spec/catalogs/font-schemes/simsun.json +2 -1
- package/dist/spec/catalogs/font-schemes/skeena.json +2 -1
- package/dist/spec/catalogs/font-schemes/sylfaen.json +2 -1
- package/dist/spec/catalogs/font-schemes/tahoma.json +2 -1
- package/dist/spec/catalogs/font-schemes/tenorite.json +2 -1
- package/dist/spec/catalogs/font-schemes/times-new-roman.json +2 -1
- package/dist/spec/catalogs/font-schemes/traditional-arabic.json +2 -1
- package/dist/spec/catalogs/font-schemes/trebuchet-ms.json +2 -1
- package/dist/spec/catalogs/font-schemes/tunga.json +2 -1
- package/dist/spec/catalogs/font-schemes/verdana.json +2 -1
- package/dist/spec/catalogs/font-schemes/vrinda.json +2 -1
- package/dist/spec/catalogs/font-schemes/yu-gothic.json +2 -1
- package/dist/spec/catalogs/languages/index.json +2 -0
- package/dist/spec/catalogs/layouts/action-plan.json +35 -0
- package/dist/spec/catalogs/layouts/agenda.json +35 -0
- package/dist/spec/catalogs/layouts/appendix-index.json +38 -0
- package/dist/spec/catalogs/layouts/architecture-stack.json +35 -0
- package/dist/spec/catalogs/layouts/assumptions-dependencies.json +35 -0
- package/dist/spec/catalogs/layouts/before-after.json +41 -0
- package/dist/spec/catalogs/layouts/benchmark-target-table.json +35 -0
- package/dist/spec/catalogs/layouts/bullet-list.json +38 -0
- package/dist/spec/catalogs/layouts/business-model-canvas.json +35 -0
- package/dist/spec/catalogs/layouts/capability-map.json +35 -0
- package/dist/spec/catalogs/layouts/case-study.json +35 -0
- package/dist/spec/catalogs/layouts/chapter-recap.json +35 -0
- package/dist/spec/catalogs/layouts/circular-lifecycle.json +35 -0
- package/dist/spec/catalogs/layouts/comparison.json +41 -0
- package/dist/spec/catalogs/layouts/competitive-landscape.json +35 -0
- package/dist/spec/catalogs/layouts/customer-journey.json +35 -0
- package/dist/spec/catalogs/layouts/customer-logos.json +38 -0
- package/dist/spec/catalogs/layouts/dashboard.json +41 -0
- package/dist/spec/catalogs/layouts/data-visualization.json +45 -0
- package/dist/spec/catalogs/layouts/decision-tree.json +35 -0
- package/dist/spec/catalogs/layouts/detailed-data-table.json +41 -0
- package/dist/spec/catalogs/layouts/ecosystem-map.json +35 -0
- package/dist/spec/catalogs/layouts/executive-decision.json +38 -0
- package/dist/spec/catalogs/layouts/executive-summary.json +38 -0
- package/dist/spec/catalogs/layouts/faq.json +35 -0
- package/dist/spec/catalogs/layouts/feature-comparison-matrix.json +35 -0
- package/dist/spec/catalogs/layouts/forecast-scenario.json +45 -0
- package/dist/spec/catalogs/layouts/funnel-pyramid.json +38 -0
- package/dist/spec/catalogs/layouts/gantt-project-plan.json +38 -0
- package/dist/spec/catalogs/layouts/geographic-map.json +35 -0
- package/dist/spec/catalogs/layouts/heatmap-cohort.json +38 -0
- package/dist/spec/catalogs/layouts/hub-and-spoke.json +35 -0
- package/dist/spec/catalogs/layouts/icon-grid.json +35 -0
- package/dist/spec/catalogs/layouts/image-focus.json +35 -0
- package/dist/spec/catalogs/layouts/index.json +352 -0
- package/dist/spec/catalogs/layouts/key-takeaway.json +32 -0
- package/dist/spec/catalogs/layouts/kpi-scorecard.json +44 -0
- package/dist/spec/catalogs/layouts/logic-tree.json +35 -0
- package/dist/spec/catalogs/layouts/market-size.json +35 -0
- package/dist/spec/catalogs/layouts/matrix-quadrant.json +48 -0
- package/dist/spec/catalogs/layouts/network-dependency-map.json +35 -0
- package/dist/spec/catalogs/layouts/one-column-explainer.json +35 -0
- package/dist/spec/catalogs/layouts/org-chart.json +45 -0
- package/dist/spec/catalogs/layouts/persona-grid.json +35 -0
- package/dist/spec/catalogs/layouts/photo-grid.json +48 -0
- package/dist/spec/catalogs/layouts/pricing-table.json +35 -0
- package/dist/spec/catalogs/layouts/process-flow.json +35 -0
- package/dist/spec/catalogs/layouts/product-feature.json +35 -0
- package/dist/spec/catalogs/layouts/pros-cons.json +41 -0
- package/dist/spec/catalogs/layouts/qa-discussion.json +38 -0
- package/dist/spec/catalogs/layouts/quote-highlight.json +35 -0
- package/dist/spec/catalogs/layouts/raci-matrix.json +35 -0
- package/dist/spec/catalogs/layouts/risk-heatmap.json +35 -0
- package/dist/spec/catalogs/layouts/roadmap.json +35 -0
- package/dist/spec/catalogs/layouts/screenshot-walkthrough.json +35 -0
- package/dist/spec/catalogs/layouts/section-divider.json +35 -0
- package/dist/spec/catalogs/layouts/single-message-statement.json +32 -0
- package/dist/spec/catalogs/layouts/stats-metrics.json +45 -0
- package/dist/spec/catalogs/layouts/status-rag.json +35 -0
- package/dist/spec/catalogs/layouts/swimlane-process.json +35 -0
- package/dist/spec/catalogs/layouts/swot-analysis.json +48 -0
- package/dist/spec/catalogs/layouts/team-bio.json +35 -0
- package/dist/spec/catalogs/layouts/testimonial-grid.json +44 -0
- package/dist/spec/catalogs/layouts/thank-you-cta.json +35 -0
- package/dist/spec/catalogs/layouts/three-column.json +45 -0
- package/dist/spec/catalogs/layouts/timeline.json +38 -0
- package/dist/spec/catalogs/layouts/title-slide.json +35 -0
- package/dist/spec/catalogs/layouts/two-column.json +42 -0
- package/dist/spec/catalogs/layouts/venn-overlap.json +35 -0
- package/dist/spec/catalogs/layouts/waterfall-bridge.json +45 -0
- package/dist/spec/catalogs/layouts/wheel-radial.json +35 -0
- package/dist/spec/catalogs/manifest.json +111 -0
- package/dist/spec/catalogs/narratives/index.json +746 -144
- package/dist/spec/catalogs/purposes/index.json +2 -0
- package/dist/spec/catalogs/social-platforms/index.json +2 -1
- package/dist/spec/catalogs/themes/index.json +10 -8
- package/dist/spec/catalogs/tones/index.json +2 -0
- package/dist/spec/reference/font-policy.json +5 -5
- package/dist/spec/schemas/audience.schema.json +21 -0
- package/dist/spec/schemas/catalog-index.schema.json +40 -3
- package/dist/spec/schemas/catalog-manifest.schema.json +83 -0
- package/dist/spec/schemas/chart-type.schema.json +5 -0
- package/dist/spec/schemas/color-scheme.schema.json +21 -0
- package/dist/spec/schemas/font-scheme.schema.json +21 -0
- package/dist/spec/schemas/language.schema.json +21 -0
- package/dist/spec/schemas/layout.schema.json +21 -0
- package/dist/spec/schemas/narrative.schema.json +21 -0
- package/dist/spec/schemas/opf.schema.json +5 -5
- package/dist/spec/schemas/purpose.schema.json +21 -0
- package/dist/spec/schemas/social-platform.schema.json +26 -5
- package/dist/spec/schemas/theme.schema.json +21 -0
- package/dist/spec/schemas/tone.schema.json +21 -0
- package/dist/spec-files.d.ts +2 -2
- package/dist/spec-files.js +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/validator.d.ts +2 -2
- package/dist/validator.js +3 -3
- package/package.json +1 -1
|
@@ -16,6 +16,23 @@ interface Audience {
|
|
|
16
16
|
* Human-readable audience name shown in pickers.
|
|
17
17
|
*/
|
|
18
18
|
name: string;
|
|
19
|
+
/**
|
|
20
|
+
* Present when this audience is deprecated, for example an alias kept for backward compatibility. Deprecated records stay resolvable so existing documents keep validating and rendering unchanged, but pickers and default listings exclude them and validators warn when a document references them. Same shape as the chart-type deprecation.
|
|
21
|
+
*/
|
|
22
|
+
deprecation?: {
|
|
23
|
+
/**
|
|
24
|
+
* Id of the non-deprecated audience record that documents should reference instead.
|
|
25
|
+
*/
|
|
26
|
+
replacedBy: string;
|
|
27
|
+
/**
|
|
28
|
+
* Why the record is deprecated.
|
|
29
|
+
*/
|
|
30
|
+
reason?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Package version in which the record is scheduled for removal from the bundled catalog, if any.
|
|
33
|
+
*/
|
|
34
|
+
removal?: string;
|
|
35
|
+
};
|
|
19
36
|
/**
|
|
20
37
|
* One-sentence positioning of the audience — who they are and what they care about.
|
|
21
38
|
*/
|
|
@@ -89,6 +106,23 @@ interface Purpose {
|
|
|
89
106
|
* Human-readable purpose name shown in pickers.
|
|
90
107
|
*/
|
|
91
108
|
name: string;
|
|
109
|
+
/**
|
|
110
|
+
* Present when this purpose is deprecated, for example an alias kept for backward compatibility. Deprecated records stay resolvable so existing documents keep validating and rendering unchanged, but pickers and default listings exclude them and validators warn when a document references them. Same shape as the chart-type deprecation.
|
|
111
|
+
*/
|
|
112
|
+
deprecation?: {
|
|
113
|
+
/**
|
|
114
|
+
* Id of the non-deprecated purpose record that documents should reference instead.
|
|
115
|
+
*/
|
|
116
|
+
replacedBy: string;
|
|
117
|
+
/**
|
|
118
|
+
* Why the record is deprecated.
|
|
119
|
+
*/
|
|
120
|
+
reason?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Package version in which the record is scheduled for removal from the bundled catalog, if any.
|
|
123
|
+
*/
|
|
124
|
+
removal?: string;
|
|
125
|
+
};
|
|
92
126
|
/**
|
|
93
127
|
* One-sentence positioning of the purpose — what this deck is trying to accomplish.
|
|
94
128
|
*/
|
|
@@ -154,6 +188,23 @@ interface Tone {
|
|
|
154
188
|
* Human-readable tone name shown in pickers.
|
|
155
189
|
*/
|
|
156
190
|
name: string;
|
|
191
|
+
/**
|
|
192
|
+
* Present when this tone is deprecated, for example an alias kept for backward compatibility. Deprecated records stay resolvable so existing documents keep validating and rendering unchanged, but pickers and default listings exclude them and validators warn when a document references them. Same shape as the chart-type deprecation.
|
|
193
|
+
*/
|
|
194
|
+
deprecation?: {
|
|
195
|
+
/**
|
|
196
|
+
* Id of the non-deprecated tone record that documents should reference instead.
|
|
197
|
+
*/
|
|
198
|
+
replacedBy: string;
|
|
199
|
+
/**
|
|
200
|
+
* Why the record is deprecated.
|
|
201
|
+
*/
|
|
202
|
+
reason?: string;
|
|
203
|
+
/**
|
|
204
|
+
* Package version in which the record is scheduled for removal from the bundled catalog, if any.
|
|
205
|
+
*/
|
|
206
|
+
removal?: string;
|
|
207
|
+
};
|
|
157
208
|
/**
|
|
158
209
|
* One-sentence positioning of the tone — when to reach for it.
|
|
159
210
|
*/
|
|
@@ -226,6 +277,23 @@ interface Theme {
|
|
|
226
277
|
* Human-readable theme name shown in pickers.
|
|
227
278
|
*/
|
|
228
279
|
name: string;
|
|
280
|
+
/**
|
|
281
|
+
* Present when this theme is deprecated, for example an alias kept for backward compatibility. Deprecated records stay resolvable so existing documents keep validating and rendering unchanged, but pickers and default listings exclude them and validators warn when a document references them. Same shape as the chart-type deprecation.
|
|
282
|
+
*/
|
|
283
|
+
deprecation?: {
|
|
284
|
+
/**
|
|
285
|
+
* Id of the non-deprecated theme record that documents should reference instead.
|
|
286
|
+
*/
|
|
287
|
+
replacedBy: string;
|
|
288
|
+
/**
|
|
289
|
+
* Why the record is deprecated.
|
|
290
|
+
*/
|
|
291
|
+
reason?: string;
|
|
292
|
+
/**
|
|
293
|
+
* Package version in which the record is scheduled for removal from the bundled catalog, if any.
|
|
294
|
+
*/
|
|
295
|
+
removal?: string;
|
|
296
|
+
};
|
|
229
297
|
/**
|
|
230
298
|
* One-sentence positioning of the theme — when to reach for it.
|
|
231
299
|
*/
|
|
@@ -302,6 +370,23 @@ interface Layout {
|
|
|
302
370
|
* Human-readable layout name shown in layout pickers.
|
|
303
371
|
*/
|
|
304
372
|
name: string;
|
|
373
|
+
/**
|
|
374
|
+
* Present when this layout is deprecated, for example an alias kept for backward compatibility. Deprecated records stay resolvable so existing documents keep validating and rendering unchanged, but pickers and default listings exclude them and validators warn when a document references them. Same shape as the chart-type deprecation.
|
|
375
|
+
*/
|
|
376
|
+
deprecation?: {
|
|
377
|
+
/**
|
|
378
|
+
* Id of the non-deprecated layout record that documents should reference instead.
|
|
379
|
+
*/
|
|
380
|
+
replacedBy: string;
|
|
381
|
+
/**
|
|
382
|
+
* Why the record is deprecated.
|
|
383
|
+
*/
|
|
384
|
+
reason?: string;
|
|
385
|
+
/**
|
|
386
|
+
* Package version in which the record is scheduled for removal from the bundled catalog, if any.
|
|
387
|
+
*/
|
|
388
|
+
removal?: string;
|
|
389
|
+
};
|
|
305
390
|
/**
|
|
306
391
|
* One-sentence positioning of the layout — when to reach for it.
|
|
307
392
|
*/
|
|
@@ -553,6 +638,29 @@ interface ChartType {
|
|
|
553
638
|
vectorSrc?: string;
|
|
554
639
|
[k: string]: unknown;
|
|
555
640
|
};
|
|
641
|
+
/**
|
|
642
|
+
* Publisher extension member, such as the `x-gallery` presentation metadata that pptx.gallery adds to the records it publishes. Engines and validators ignore top-level `x-*` members, and the pinned snapshot in spec/catalogs never carries them.
|
|
643
|
+
*
|
|
644
|
+
* This interface was referenced by `ChartType`'s JSON-Schema definition
|
|
645
|
+
* via the `patternProperty` "^x-".
|
|
646
|
+
*/
|
|
647
|
+
[k: string]: {
|
|
648
|
+
[k: string]: unknown;
|
|
649
|
+
} | "https://openpresentation.org/schema/opf-chart-type/v1" | string | ChartTypeMappings | ChartTypeDeprecation | number | "simple" | "calculated" | "hierarchical" | "normalized" | boolean | string[] | ChartDataColumn[] | ChartSampleData | {
|
|
650
|
+
/**
|
|
651
|
+
* Main preview image (PNG/JPG). Used as the primary visual in picker UIs and previews of the record.
|
|
652
|
+
*/
|
|
653
|
+
src?: string;
|
|
654
|
+
/**
|
|
655
|
+
* Smaller thumbnail preview suited to dense grid views.
|
|
656
|
+
*/
|
|
657
|
+
thumbnailSrc?: string;
|
|
658
|
+
/**
|
|
659
|
+
* SVG / vector preview for crisp scaling at any size.
|
|
660
|
+
*/
|
|
661
|
+
vectorSrc?: string;
|
|
662
|
+
[k: string]: unknown;
|
|
663
|
+
} | undefined;
|
|
556
664
|
}
|
|
557
665
|
/**
|
|
558
666
|
* Canonical and optional renderer-specific mappings used by engines to render this chart type.
|
|
@@ -729,6 +837,23 @@ interface Narrative {
|
|
|
729
837
|
* Human-readable template name, e.g. 'Problem → Solution'.
|
|
730
838
|
*/
|
|
731
839
|
name: string;
|
|
840
|
+
/**
|
|
841
|
+
* Present when this narrative is deprecated, for example an alias kept for backward compatibility. Deprecated records stay resolvable so existing documents keep validating and rendering unchanged, but pickers and default listings exclude them and validators warn when a document references them. Same shape as the chart-type deprecation.
|
|
842
|
+
*/
|
|
843
|
+
deprecation?: {
|
|
844
|
+
/**
|
|
845
|
+
* Id of the non-deprecated narrative record that documents should reference instead.
|
|
846
|
+
*/
|
|
847
|
+
replacedBy: string;
|
|
848
|
+
/**
|
|
849
|
+
* Why the record is deprecated.
|
|
850
|
+
*/
|
|
851
|
+
reason?: string;
|
|
852
|
+
/**
|
|
853
|
+
* Package version in which the record is scheduled for removal from the bundled catalog, if any.
|
|
854
|
+
*/
|
|
855
|
+
removal?: string;
|
|
856
|
+
};
|
|
732
857
|
/**
|
|
733
858
|
* One-sentence description of when and why to use this narrative.
|
|
734
859
|
*/
|
|
@@ -822,7 +947,7 @@ interface Beat {
|
|
|
822
947
|
}
|
|
823
948
|
|
|
824
949
|
/**
|
|
825
|
-
* Schema for social-platform records in the pptx.gallery library. Each record describes a single social-media platform — its base URL, profile-URL pattern, handle prefix, brand color, and themed icons. Records are referenced from OPF documents indirectly: the property keys of any Socials object (Organization.socials, Speaker.socials) match record ids, and
|
|
950
|
+
* Schema for social-platform records in the pptx.gallery library. Each record describes a single social-media platform — its base URL, profile-URL pattern, handle prefix, brand color, and themed icons. Records are referenced from OPF documents indirectly: the property keys of any Socials object (Organization.socials, Speaker.socials) match record ids, and engines use the catalog record's URL patterns and handle prefix to format and link the profile URL. The brand color and the themed icons are catalog metadata for authoring UIs: engines (opf-render, opf-pptx) render the profile URL, not icons or brand colors. The engine resolves references against catalogs.socialPlatforms (inline) → catalogs.socialPlatforms.source → the default catalog at https://www.pptx.gallery/social-platforms.
|
|
826
951
|
*/
|
|
827
952
|
interface SocialPlatform {
|
|
828
953
|
/**
|
|
@@ -837,6 +962,23 @@ interface SocialPlatform {
|
|
|
837
962
|
* Human-readable platform name shown in pickers and footers.
|
|
838
963
|
*/
|
|
839
964
|
name: string;
|
|
965
|
+
/**
|
|
966
|
+
* Present when this social platform is deprecated, for example an alias kept for backward compatibility. Deprecated records stay resolvable so existing documents keep validating and rendering unchanged, but pickers and default listings exclude them and validators warn when a document references them. Same shape as the chart-type deprecation.
|
|
967
|
+
*/
|
|
968
|
+
deprecation?: {
|
|
969
|
+
/**
|
|
970
|
+
* Id of the non-deprecated social platform record that documents should reference instead.
|
|
971
|
+
*/
|
|
972
|
+
replacedBy: string;
|
|
973
|
+
/**
|
|
974
|
+
* Why the record is deprecated.
|
|
975
|
+
*/
|
|
976
|
+
reason?: string;
|
|
977
|
+
/**
|
|
978
|
+
* Package version in which the record is scheduled for removal from the bundled catalog, if any.
|
|
979
|
+
*/
|
|
980
|
+
removal?: string;
|
|
981
|
+
};
|
|
840
982
|
/**
|
|
841
983
|
* One-sentence positioning of the platform — what it's used for and who's on it.
|
|
842
984
|
*/
|
|
@@ -866,19 +1008,19 @@ interface SocialPlatform {
|
|
|
866
1008
|
*/
|
|
867
1009
|
handleExample?: string;
|
|
868
1010
|
/**
|
|
869
|
-
* Brand color (hex)
|
|
1011
|
+
* Brand color (hex) for branded icon chips, link styling, or section accents in authoring UIs. Catalog metadata: engines do not draw it.
|
|
870
1012
|
*/
|
|
871
1013
|
brandColor?: string;
|
|
872
1014
|
/**
|
|
873
|
-
* Default icon source. Accepts an HTTPS URL, data URI, relative path, or asset reference. Used as the fallback when a themed (Light/Dark) variant isn't set.
|
|
1015
|
+
* Default icon source. Accepts an HTTPS URL, data URI, relative path, or asset reference. Used as the fallback when a themed (Light/Dark) variant isn't set. Catalog metadata for authoring UIs: engines do not draw icons.
|
|
874
1016
|
*/
|
|
875
1017
|
icon?: string;
|
|
876
1018
|
/**
|
|
877
|
-
* Light-colored icon variant intended for
|
|
1019
|
+
* Light-colored icon variant intended for authoring UIs that draw the icon on dark backgrounds (engines do not draw icons).
|
|
878
1020
|
*/
|
|
879
1021
|
iconLight?: string;
|
|
880
1022
|
/**
|
|
881
|
-
* Dark-colored icon variant intended for
|
|
1023
|
+
* Dark-colored icon variant intended for authoring UIs that draw the icon on light backgrounds (engines do not draw icons).
|
|
882
1024
|
*/
|
|
883
1025
|
iconDark?: string;
|
|
884
1026
|
/**
|
|
@@ -922,6 +1064,23 @@ interface Language {
|
|
|
922
1064
|
* Human-readable language name.
|
|
923
1065
|
*/
|
|
924
1066
|
name: string;
|
|
1067
|
+
/**
|
|
1068
|
+
* Present when this language is deprecated, for example an alias kept for backward compatibility. Deprecated records stay resolvable so existing documents keep validating and rendering unchanged, but pickers and default listings exclude them and validators warn when a document references them. Same shape as the chart-type deprecation.
|
|
1069
|
+
*/
|
|
1070
|
+
deprecation?: {
|
|
1071
|
+
/**
|
|
1072
|
+
* Id of the non-deprecated language record that documents should reference instead.
|
|
1073
|
+
*/
|
|
1074
|
+
replacedBy: string;
|
|
1075
|
+
/**
|
|
1076
|
+
* Why the record is deprecated.
|
|
1077
|
+
*/
|
|
1078
|
+
reason?: string;
|
|
1079
|
+
/**
|
|
1080
|
+
* Package version in which the record is scheduled for removal from the bundled catalog, if any.
|
|
1081
|
+
*/
|
|
1082
|
+
removal?: string;
|
|
1083
|
+
};
|
|
925
1084
|
/**
|
|
926
1085
|
* ISO 639-3 (or 639-2) three-letter language code. Carried for engines that prefer ISO codes.
|
|
927
1086
|
*/
|
|
@@ -1001,6 +1160,23 @@ interface ColorScheme {
|
|
|
1001
1160
|
* Human-readable scheme name shown in pickers.
|
|
1002
1161
|
*/
|
|
1003
1162
|
name: string;
|
|
1163
|
+
/**
|
|
1164
|
+
* Present when this color scheme is deprecated, for example an alias kept for backward compatibility. Deprecated records stay resolvable so existing documents keep validating and rendering unchanged, but pickers and default listings exclude them and validators warn when a document references them. Same shape as the chart-type deprecation.
|
|
1165
|
+
*/
|
|
1166
|
+
deprecation?: {
|
|
1167
|
+
/**
|
|
1168
|
+
* Id of the non-deprecated color scheme record that documents should reference instead.
|
|
1169
|
+
*/
|
|
1170
|
+
replacedBy: string;
|
|
1171
|
+
/**
|
|
1172
|
+
* Why the record is deprecated.
|
|
1173
|
+
*/
|
|
1174
|
+
reason?: string;
|
|
1175
|
+
/**
|
|
1176
|
+
* Package version in which the record is scheduled for removal from the bundled catalog, if any.
|
|
1177
|
+
*/
|
|
1178
|
+
removal?: string;
|
|
1179
|
+
};
|
|
1004
1180
|
/**
|
|
1005
1181
|
* One-sentence positioning of the palette — what mood it evokes and where to use it.
|
|
1006
1182
|
*/
|
|
@@ -1098,6 +1274,23 @@ interface FontScheme {
|
|
|
1098
1274
|
* Human-readable scheme name shown in pickers.
|
|
1099
1275
|
*/
|
|
1100
1276
|
name: string;
|
|
1277
|
+
/**
|
|
1278
|
+
* Present when this font scheme is deprecated, for example an alias kept for backward compatibility. Deprecated records stay resolvable so existing documents keep validating and rendering unchanged, but pickers and default listings exclude them and validators warn when a document references them. Same shape as the chart-type deprecation.
|
|
1279
|
+
*/
|
|
1280
|
+
deprecation?: {
|
|
1281
|
+
/**
|
|
1282
|
+
* Id of the non-deprecated font scheme record that documents should reference instead.
|
|
1283
|
+
*/
|
|
1284
|
+
replacedBy: string;
|
|
1285
|
+
/**
|
|
1286
|
+
* Why the record is deprecated.
|
|
1287
|
+
*/
|
|
1288
|
+
reason?: string;
|
|
1289
|
+
/**
|
|
1290
|
+
* Package version in which the record is scheduled for removal from the bundled catalog, if any.
|
|
1291
|
+
*/
|
|
1292
|
+
removal?: string;
|
|
1293
|
+
};
|
|
1101
1294
|
/**
|
|
1102
1295
|
* Heading (major) font family — mirrors the OOXML majorFont entry.
|
|
1103
1296
|
*/
|
|
@@ -1221,8 +1414,12 @@ interface CatalogIndexRecord {
|
|
|
1221
1414
|
/** Parsed shape of a catalog's `index.json`. */
|
|
1222
1415
|
interface CatalogIndex {
|
|
1223
1416
|
readonly $schema: string;
|
|
1417
|
+
/** Catalog kind as its default-catalog URL segment, e.g. `chart-types`. */
|
|
1418
|
+
readonly kind?: string;
|
|
1224
1419
|
readonly version: string;
|
|
1225
1420
|
readonly description: string;
|
|
1421
|
+
/** SHA-256 of the canonical JSON of the index-ordered records (see docs/default-catalog.md). */
|
|
1422
|
+
readonly contentSha256?: string;
|
|
1226
1423
|
readonly records: readonly CatalogIndexRecord[];
|
|
1227
1424
|
readonly [key: string]: unknown;
|
|
1228
1425
|
}
|
package/dist/catalogs.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a as CatalogEntry, b as CatalogIndex, c as CatalogIndexRecord, C as CatalogKind, d as CatalogRecord, i as audiences, j as catalogEntries, k as catalogIndexes, l as catalogKinds, m as catalogSchemaNames, n as catalogs, o as chartTypes, p as colorSchemes, q as fontSchemes, r as languages, s as layouts, t as narratives, u as purposes, v as socialPlatforms, w as themes, x as tones } from './catalogs-
|
|
1
|
+
export { a as CatalogEntry, b as CatalogIndex, c as CatalogIndexRecord, C as CatalogKind, d as CatalogRecord, i as audiences, j as catalogEntries, k as catalogIndexes, l as catalogKinds, m as catalogSchemaNames, n as catalogs, o as chartTypes, p as colorSchemes, q as fontSchemes, r as languages, s as layouts, t as narratives, u as purposes, v as socialPlatforms, w as themes, x as tones } from './catalogs-CUClB3nl.js';
|
|
2
2
|
import './schemas-X_NniU4A.js';
|
package/dist/catalogs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { audiences, catalogEntries, catalogIndexes, catalogKinds, catalogSchemaNames, catalogs, chartTypes, colorSchemes, fontSchemes, languages, layouts, narratives, purposes, socialPlatforms, themes, tones } from './chunk-
|
|
1
|
+
export { audiences, catalogEntries, catalogIndexes, catalogKinds, catalogSchemaNames, catalogs, chartTypes, colorSchemes, fontSchemes, languages, layouts, narratives, purposes, socialPlatforms, themes, tones } from './chunk-AEUSVEUY.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { validatePresentation, validationDefinition, validateCatalogRecord } from './chunk-
|
|
2
|
-
import { schemas, schemaEntries } from './chunk-
|
|
3
|
-
import { catalogKinds, catalogEntries, catalogSchemaNames } from './chunk-
|
|
1
|
+
import { validatePresentation, validationDefinition, validateCatalogRecord } from './chunk-JCXHSTSM.js';
|
|
2
|
+
import { schemas, schemaEntries } from './chunk-JTXCMVVP.js';
|
|
3
|
+
import { catalogKinds, catalogEntries, catalogSchemaNames } from './chunk-AEUSVEUY.js';
|
|
4
4
|
import { parseTree, printParseErrorCode, getNodePath } from 'jsonc-parser';
|
|
5
5
|
|
|
6
6
|
var own = (value, key) => Object.hasOwn(value, key);
|
|
@@ -447,7 +447,20 @@ function lintPresentation(document, options = {}) {
|
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
for (const issue of validation.warnings) {
|
|
450
|
-
const kind = issue.params.kind, id = issue.params.id;
|
|
450
|
+
const kind = issue.params.kind, id = issue.params.id, replacedBy = issue.params.replacedBy;
|
|
451
|
+
if (typeof replacedBy === "string" && typeof id === "string") {
|
|
452
|
+
const target = catalogs.get(kind)?.get(replacedBy);
|
|
453
|
+
diagnostics.push({
|
|
454
|
+
...schemaDiagnostic(issue),
|
|
455
|
+
ruleId: "opf/deprecated-catalog-id",
|
|
456
|
+
severity: "warning",
|
|
457
|
+
message: `Deprecated ${kind} catalog id ${JSON.stringify(id)}; use ${JSON.stringify(replacedBy)} instead.`,
|
|
458
|
+
help: "The deprecated id still resolves to its original record, so nothing breaks. Switch to the replacement when you next edit this reference.",
|
|
459
|
+
lookup: ["opf", "catalog", kind],
|
|
460
|
+
...target ? { suggestions: [target] } : {}
|
|
461
|
+
});
|
|
462
|
+
continue;
|
|
463
|
+
}
|
|
451
464
|
if (seen.has(issue.path) || typeof id === "string" && catalogs.get(kind)?.has(id))
|
|
452
465
|
continue;
|
|
453
466
|
diagnostics.push({
|