@openpresentation/opf 0.15.1 → 0.16.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.
Files changed (73) hide show
  1. package/README.md +4 -0
  2. package/dist/{catalog-refs-BSfGELpt.d.ts → catalog-refs-_anZs-Qz.d.ts} +1 -1
  3. package/dist/{catalog-schemas-CinPh5WA.d.ts → catalog-schemas-BZCjgAxu.d.ts} +1 -1
  4. package/dist/catalog.d.ts +2 -2
  5. package/dist/catalog.js +609 -121
  6. package/dist/{chunk-5FTUIDUH.js → chunk-3XDRQYWZ.js} +1 -1
  7. package/dist/{chunk-O744SXXA.js → chunk-5PDN7BN6.js} +202 -95
  8. package/dist/{chunk-VGAOJEY7.js → chunk-5TO6I3GB.js} +1 -1
  9. package/dist/{chunk-3RKB4RDJ.js → chunk-5UEUAW57.js} +4 -2
  10. package/dist/{chunk-ZPU46TFA.js → chunk-6OR326EA.js} +1 -1
  11. package/dist/{chunk-UBFJ2QHH.js → chunk-BSYQDWT4.js} +12 -2
  12. package/dist/{chunk-3JG4YXWF.js → chunk-FQSIIADJ.js} +12 -5
  13. package/dist/chunk-K4DQQIT4.js +319 -0
  14. package/dist/chunk-KINQFU6X.js +51 -0
  15. package/dist/{chunk-374R35TJ.js → chunk-NAWQR7MN.js} +1 -1
  16. package/dist/{chunk-QDI75P2M.js → chunk-PX5AWL7Y.js} +141 -13
  17. package/dist/{chunk-U4J75TRG.js → chunk-SMLMI6IZ.js} +5 -2
  18. package/dist/{chunk-TWQJLI6E.js → chunk-UM24JFUE.js} +2 -2
  19. package/dist/{chunk-2CJPC4HI.js → chunk-WEDGVC5W.js} +185 -11
  20. package/dist/{composition-D2tghM82.d.ts → composition-D4ADF5c-.d.ts} +88 -9
  21. package/dist/composition.d.ts +2 -2
  22. package/dist/composition.js +1 -1
  23. package/dist/convert.d.ts +3 -3
  24. package/dist/convert.js +7 -7
  25. package/dist/data.d.ts +27 -10
  26. package/dist/data.js +2 -2
  27. package/dist/deck.d.ts +77 -0
  28. package/dist/deck.js +12 -0
  29. package/dist/diff.js +5 -5
  30. package/dist/docs.js +24 -24
  31. package/dist/examples.d.ts +1 -1
  32. package/dist/examples.js +2992 -748
  33. package/dist/format.js +2 -2
  34. package/dist/index.d.ts +9 -8
  35. package/dist/index.js +15 -13
  36. package/dist/markdown.d.ts +6 -7
  37. package/dist/markdown.js +7 -7
  38. package/dist/{pagination-wedbe7eq.d.ts → pagination-DzZPFheM.d.ts} +2 -2
  39. package/dist/pagination.d.ts +3 -3
  40. package/dist/pagination.js +4 -4
  41. package/dist/patch.js +4 -4
  42. package/dist/{presentation-CDKQVkyI.d.ts → presentation-COrFuj2g.d.ts} +16 -8
  43. package/dist/repo-readme.js +1 -1
  44. package/dist/schemas.d.ts +14 -0
  45. package/dist/schemas.js +1 -1
  46. package/dist/spec/catalogs/layouts/business-model-canvas.json +66 -1
  47. package/dist/spec/catalogs/layouts/capability-map.json +53 -3
  48. package/dist/spec/catalogs/layouts/chart-2x.json +32 -8
  49. package/dist/spec/catalogs/layouts/chart-3x-bottom-vertical-title-left.json +16 -10
  50. package/dist/spec/catalogs/layouts/chart-3x-left-title-center.json +16 -10
  51. package/dist/spec/catalogs/layouts/chart-3x-left.json +16 -10
  52. package/dist/spec/catalogs/layouts/chart-3x-right-title-center.json +16 -10
  53. package/dist/spec/catalogs/layouts/chart-3x-right.json +16 -10
  54. package/dist/spec/catalogs/layouts/chart-3x-top-vertical-title-left.json +16 -10
  55. package/dist/spec/catalogs/layouts/chart-3x.json +48 -12
  56. package/dist/spec/catalogs/layouts/dashboard.json +37 -5
  57. package/dist/spec/catalogs/layouts/image-2x.json +32 -8
  58. package/dist/spec/catalogs/layouts/image-3x.json +48 -12
  59. package/dist/spec/catalogs/layouts/index.json +1 -1
  60. package/dist/spec/catalogs/layouts/kpi-scorecard.json +48 -3
  61. package/dist/spec/catalogs/layouts/logic-tree.json +69 -0
  62. package/dist/spec/catalogs/layouts/market-size.json +26 -2
  63. package/dist/spec/catalogs/layouts/org-chart.json +53 -6
  64. package/dist/spec/catalogs/manifest.json +3 -3
  65. package/dist/spec/schemas/layout.schema.json +172 -5
  66. package/dist/spec/schemas/opf.schema.json +11 -6
  67. package/dist/types.d.ts +9 -31
  68. package/dist/{validation-types-BOcY9GTs.d.ts → validation-types-HxIgJfKx.d.ts} +2 -2
  69. package/dist/validator.d.ts +6 -6
  70. package/dist/validator.js +3 -3
  71. package/dist/yaml.d.ts +4 -4
  72. package/dist/yaml.js +8 -321
  73. package/package.json +5 -1
@@ -3,23 +3,30 @@
3
3
  "id": "chart-3x-bottom-vertical-title-left",
4
4
  "name": "Chart_3x_Bottom_Vertical_Title_Left",
5
5
  "summary": "Canonical OPF chart 3x title vertical layout.",
6
- "description": "Chart 3x Bottom Vertical Title Left OPF layout with 3 chart zones in a vertical reading flow and a slide title.",
6
+ "description": "Chart 3x Bottom Vertical Title Left OPF layout: a slide title over two supporting charts side by side, with a primary chart below them.",
7
7
  "design": {
8
8
  "titleAlignment": "left",
9
9
  "contentAlignment": "center",
10
10
  "contentBox": false,
11
- "contentDirection": "vertical",
12
- "chartPrimary": "bottom"
11
+ "contentDirection": "vertical"
13
12
  },
14
13
  "placeholders": [
15
14
  {
16
15
  "type": "title"
17
16
  },
18
17
  {
19
- "type": "chart"
20
- },
21
- {
22
- "type": "chart"
18
+ "type": "group",
19
+ "composition": {
20
+ "mode": "row"
21
+ },
22
+ "placeholders": [
23
+ {
24
+ "type": "chart"
25
+ },
26
+ {
27
+ "type": "chart"
28
+ }
29
+ ]
23
30
  },
24
31
  {
25
32
  "type": "chart"
@@ -38,9 +45,8 @@
38
45
  "composition": {
39
46
  "mode": "column",
40
47
  "weights": [
41
- 1,
42
- 1,
43
- 2
48
+ 2,
49
+ 3
44
50
  ]
45
51
  }
46
52
  }
@@ -3,13 +3,12 @@
3
3
  "id": "chart-3x-left-title-center",
4
4
  "name": "Chart_3x_Left_Title_Center",
5
5
  "summary": "Canonical OPF chart 3x title layout.",
6
- "description": "Chart 3x Left Title Center OPF layout with 3 chart zones and a slide title.",
6
+ "description": "Chart 3x Left Title Center OPF layout: a centered slide title over a primary chart on the left and two supporting charts stacked on the right.",
7
7
  "design": {
8
8
  "titleAlignment": "center",
9
9
  "contentAlignment": "center",
10
10
  "contentBox": false,
11
- "contentDirection": "horizontal",
12
- "chartPrimary": "left"
11
+ "contentDirection": "horizontal"
13
12
  },
14
13
  "placeholders": [
15
14
  {
@@ -19,10 +18,18 @@
19
18
  "type": "chart"
20
19
  },
21
20
  {
22
- "type": "chart"
23
- },
24
- {
25
- "type": "chart"
21
+ "type": "group",
22
+ "composition": {
23
+ "mode": "column"
24
+ },
25
+ "placeholders": [
26
+ {
27
+ "type": "chart"
28
+ },
29
+ {
30
+ "type": "chart"
31
+ }
32
+ ]
26
33
  }
27
34
  ],
28
35
  "tags": [
@@ -37,9 +44,8 @@
37
44
  "composition": {
38
45
  "mode": "row",
39
46
  "weights": [
40
- 2,
41
- 1,
42
- 1
47
+ 3,
48
+ 2
43
49
  ]
44
50
  }
45
51
  }
@@ -3,22 +3,29 @@
3
3
  "id": "chart-3x-left",
4
4
  "name": "Chart_3x_Left",
5
5
  "summary": "Canonical OPF chart 3x layout.",
6
- "description": "Chart 3x Left OPF layout with 3 chart zones.",
6
+ "description": "Chart 3x Left OPF layout: a primary chart on the left, two supporting charts stacked on the right.",
7
7
  "design": {
8
8
  "contentAlignment": "center",
9
9
  "contentBox": false,
10
- "contentDirection": "horizontal",
11
- "chartPrimary": "left"
10
+ "contentDirection": "horizontal"
12
11
  },
13
12
  "placeholders": [
14
13
  {
15
14
  "type": "chart"
16
15
  },
17
16
  {
18
- "type": "chart"
19
- },
20
- {
21
- "type": "chart"
17
+ "type": "group",
18
+ "composition": {
19
+ "mode": "column"
20
+ },
21
+ "placeholders": [
22
+ {
23
+ "type": "chart"
24
+ },
25
+ {
26
+ "type": "chart"
27
+ }
28
+ ]
22
29
  }
23
30
  ],
24
31
  "tags": [
@@ -32,9 +39,8 @@
32
39
  "composition": {
33
40
  "mode": "row",
34
41
  "weights": [
35
- 2,
36
- 1,
37
- 1
42
+ 3,
43
+ 2
38
44
  ]
39
45
  }
40
46
  }
@@ -3,23 +3,30 @@
3
3
  "id": "chart-3x-right-title-center",
4
4
  "name": "Chart_3x_Right_Title_Center",
5
5
  "summary": "Canonical OPF chart 3x title layout.",
6
- "description": "Chart 3x Right Title Center OPF layout with 3 chart zones and a slide title.",
6
+ "description": "Chart 3x Right Title Center OPF layout: a centered slide title over two supporting charts stacked on the left and a primary chart on the right.",
7
7
  "design": {
8
8
  "titleAlignment": "center",
9
9
  "contentAlignment": "center",
10
10
  "contentBox": false,
11
- "contentDirection": "horizontal",
12
- "chartPrimary": "right"
11
+ "contentDirection": "horizontal"
13
12
  },
14
13
  "placeholders": [
15
14
  {
16
15
  "type": "title"
17
16
  },
18
17
  {
19
- "type": "chart"
20
- },
21
- {
22
- "type": "chart"
18
+ "type": "group",
19
+ "composition": {
20
+ "mode": "column"
21
+ },
22
+ "placeholders": [
23
+ {
24
+ "type": "chart"
25
+ },
26
+ {
27
+ "type": "chart"
28
+ }
29
+ ]
23
30
  },
24
31
  {
25
32
  "type": "chart"
@@ -37,9 +44,8 @@
37
44
  "composition": {
38
45
  "mode": "row",
39
46
  "weights": [
40
- 1,
41
- 1,
42
- 2
47
+ 2,
48
+ 3
43
49
  ]
44
50
  }
45
51
  }
@@ -3,19 +3,26 @@
3
3
  "id": "chart-3x-right",
4
4
  "name": "Chart_3x_Right",
5
5
  "summary": "Canonical OPF chart 3x layout.",
6
- "description": "Chart 3x Right OPF layout with 3 chart zones.",
6
+ "description": "Chart 3x Right OPF layout: two supporting charts stacked on the left, a primary chart on the right.",
7
7
  "design": {
8
8
  "contentAlignment": "center",
9
9
  "contentBox": false,
10
- "contentDirection": "horizontal",
11
- "chartPrimary": "right"
10
+ "contentDirection": "horizontal"
12
11
  },
13
12
  "placeholders": [
14
13
  {
15
- "type": "chart"
16
- },
17
- {
18
- "type": "chart"
14
+ "type": "group",
15
+ "composition": {
16
+ "mode": "column"
17
+ },
18
+ "placeholders": [
19
+ {
20
+ "type": "chart"
21
+ },
22
+ {
23
+ "type": "chart"
24
+ }
25
+ ]
19
26
  },
20
27
  {
21
28
  "type": "chart"
@@ -32,9 +39,8 @@
32
39
  "composition": {
33
40
  "mode": "row",
34
41
  "weights": [
35
- 1,
36
- 1,
37
- 2
42
+ 2,
43
+ 3
38
44
  ]
39
45
  }
40
46
  }
@@ -3,13 +3,12 @@
3
3
  "id": "chart-3x-top-vertical-title-left",
4
4
  "name": "Chart_3x_Top_Vertical_Title_Left",
5
5
  "summary": "Canonical OPF chart 3x title vertical layout.",
6
- "description": "Chart 3x Top Vertical Title Left OPF layout with 3 chart zones in a vertical reading flow and a slide title.",
6
+ "description": "Chart 3x Top Vertical Title Left OPF layout: a slide title over a primary chart, with two supporting charts side by side below it.",
7
7
  "design": {
8
8
  "titleAlignment": "left",
9
9
  "contentAlignment": "center",
10
10
  "contentBox": false,
11
- "contentDirection": "vertical",
12
- "chartPrimary": "top"
11
+ "contentDirection": "vertical"
13
12
  },
14
13
  "placeholders": [
15
14
  {
@@ -19,10 +18,18 @@
19
18
  "type": "chart"
20
19
  },
21
20
  {
22
- "type": "chart"
23
- },
24
- {
25
- "type": "chart"
21
+ "type": "group",
22
+ "composition": {
23
+ "mode": "row"
24
+ },
25
+ "placeholders": [
26
+ {
27
+ "type": "chart"
28
+ },
29
+ {
30
+ "type": "chart"
31
+ }
32
+ ]
26
33
  }
27
34
  ],
28
35
  "tags": [
@@ -38,9 +45,8 @@
38
45
  "composition": {
39
46
  "mode": "column",
40
47
  "weights": [
41
- 2,
42
- 1,
43
- 1
48
+ 3,
49
+ 2
44
50
  ]
45
51
  }
46
52
  }
@@ -14,22 +14,58 @@
14
14
  "type": "title"
15
15
  },
16
16
  {
17
- "type": "chart"
17
+ "type": "group",
18
+ "composition": {
19
+ "mode": "column",
20
+ "weights": [
21
+ 2,
22
+ 1
23
+ ]
24
+ },
25
+ "placeholders": [
26
+ {
27
+ "type": "chart"
28
+ },
29
+ {
30
+ "type": "text"
31
+ }
32
+ ]
18
33
  },
19
34
  {
20
- "type": "text"
35
+ "type": "group",
36
+ "composition": {
37
+ "mode": "column",
38
+ "weights": [
39
+ 2,
40
+ 1
41
+ ]
42
+ },
43
+ "placeholders": [
44
+ {
45
+ "type": "chart"
46
+ },
47
+ {
48
+ "type": "text"
49
+ }
50
+ ]
21
51
  },
22
52
  {
23
- "type": "chart"
24
- },
25
- {
26
- "type": "text"
27
- },
28
- {
29
- "type": "chart"
30
- },
31
- {
32
- "type": "text"
53
+ "type": "group",
54
+ "composition": {
55
+ "mode": "column",
56
+ "weights": [
57
+ 2,
58
+ 1
59
+ ]
60
+ },
61
+ "placeholders": [
62
+ {
63
+ "type": "chart"
64
+ },
65
+ {
66
+ "type": "text"
67
+ }
68
+ ]
33
69
  }
34
70
  ],
35
71
  "composition": {
@@ -2,8 +2,8 @@
2
2
  "$schema": "https://openpresentation.org/schema/opf-layout/v1",
3
3
  "id": "dashboard",
4
4
  "name": "Dashboard",
5
- "summary": "Multiple small charts in a grid for an at-a-glance overview. Bird's-eye view of a business or function.",
6
- "description": "Multiple small charts in a grid for an at-a-glance overview. Bird's-eye view of a business or function.",
5
+ "summary": "Headline metrics above a row of small charts for an at-a-glance overview. Bird's-eye view of a business or function.",
6
+ "description": "Headline metrics above a row of small charts for an at-a-glance overview. Bird's-eye view of a business or function.",
7
7
  "design": {
8
8
  "titleAlignment": "left",
9
9
  "contentAlignment": "left",
@@ -15,10 +15,38 @@
15
15
  "type": "title"
16
16
  },
17
17
  {
18
- "type": "chart"
18
+ "type": "group",
19
+ "composition": {
20
+ "mode": "row"
21
+ },
22
+ "placeholders": [
23
+ {
24
+ "type": "metric"
25
+ },
26
+ {
27
+ "type": "metric"
28
+ },
29
+ {
30
+ "type": "metric"
31
+ }
32
+ ]
19
33
  },
20
34
  {
21
- "type": "chart"
35
+ "type": "group",
36
+ "composition": {
37
+ "mode": "row"
38
+ },
39
+ "placeholders": [
40
+ {
41
+ "type": "chart"
42
+ },
43
+ {
44
+ "type": "chart"
45
+ },
46
+ {
47
+ "type": "chart"
48
+ }
49
+ ]
22
50
  }
23
51
  ],
24
52
  "tags": [
@@ -30,6 +58,10 @@
30
58
  "vectorSrc": "https://www.pptx.gallery/layout-previews/dashboard.svg"
31
59
  },
32
60
  "composition": {
33
- "mode": "row"
61
+ "mode": "column",
62
+ "weights": [
63
+ 2,
64
+ 3
65
+ ]
34
66
  }
35
67
  }
@@ -9,16 +9,40 @@
9
9
  "type": "title"
10
10
  },
11
11
  {
12
- "type": "image"
12
+ "type": "group",
13
+ "composition": {
14
+ "mode": "column",
15
+ "weights": [
16
+ 2,
17
+ 1
18
+ ]
19
+ },
20
+ "placeholders": [
21
+ {
22
+ "type": "image"
23
+ },
24
+ {
25
+ "type": "text"
26
+ }
27
+ ]
13
28
  },
14
29
  {
15
- "type": "text"
16
- },
17
- {
18
- "type": "image"
19
- },
20
- {
21
- "type": "text"
30
+ "type": "group",
31
+ "composition": {
32
+ "mode": "column",
33
+ "weights": [
34
+ 2,
35
+ 1
36
+ ]
37
+ },
38
+ "placeholders": [
39
+ {
40
+ "type": "image"
41
+ },
42
+ {
43
+ "type": "text"
44
+ }
45
+ ]
22
46
  }
23
47
  ],
24
48
  "composition": {
@@ -9,22 +9,58 @@
9
9
  "type": "title"
10
10
  },
11
11
  {
12
- "type": "image"
12
+ "type": "group",
13
+ "composition": {
14
+ "mode": "column",
15
+ "weights": [
16
+ 2,
17
+ 1
18
+ ]
19
+ },
20
+ "placeholders": [
21
+ {
22
+ "type": "image"
23
+ },
24
+ {
25
+ "type": "text"
26
+ }
27
+ ]
13
28
  },
14
29
  {
15
- "type": "text"
30
+ "type": "group",
31
+ "composition": {
32
+ "mode": "column",
33
+ "weights": [
34
+ 2,
35
+ 1
36
+ ]
37
+ },
38
+ "placeholders": [
39
+ {
40
+ "type": "image"
41
+ },
42
+ {
43
+ "type": "text"
44
+ }
45
+ ]
16
46
  },
17
47
  {
18
- "type": "image"
19
- },
20
- {
21
- "type": "text"
22
- },
23
- {
24
- "type": "image"
25
- },
26
- {
27
- "type": "text"
48
+ "type": "group",
49
+ "composition": {
50
+ "mode": "column",
51
+ "weights": [
52
+ 2,
53
+ 1
54
+ ]
55
+ },
56
+ "placeholders": [
57
+ {
58
+ "type": "image"
59
+ },
60
+ {
61
+ "type": "text"
62
+ }
63
+ ]
28
64
  }
29
65
  ],
30
66
  "composition": {
@@ -3,7 +3,7 @@
3
3
  "kind": "layouts",
4
4
  "version": "1",
5
5
  "description": "Catalog of slide layouts available in the openpresentation.org catalog. Each entry is a lightweight summary; full layout records live in the per-id JSON files alongside this index.",
6
- "contentSha256": "f9121c466032011762d58ee27cd3e50f43a388cc75b841219f87b8001f7632a3",
6
+ "contentSha256": "877c1cd335cbbb8258a5b93e78e112d740906c33c9910586c8b12c63482b5adb",
7
7
  "records": [
8
8
  {
9
9
  "id": "title-slide",
@@ -15,13 +15,58 @@
15
15
  "type": "title"
16
16
  },
17
17
  {
18
- "type": "metric"
18
+ "type": "group",
19
+ "composition": {
20
+ "mode": "column",
21
+ "weights": [
22
+ 2,
23
+ 1
24
+ ]
25
+ },
26
+ "placeholders": [
27
+ {
28
+ "type": "metric"
29
+ },
30
+ {
31
+ "type": "text"
32
+ }
33
+ ]
19
34
  },
20
35
  {
21
- "type": "metric"
36
+ "type": "group",
37
+ "composition": {
38
+ "mode": "column",
39
+ "weights": [
40
+ 2,
41
+ 1
42
+ ]
43
+ },
44
+ "placeholders": [
45
+ {
46
+ "type": "metric"
47
+ },
48
+ {
49
+ "type": "text"
50
+ }
51
+ ]
22
52
  },
23
53
  {
24
- "type": "metric"
54
+ "type": "group",
55
+ "composition": {
56
+ "mode": "column",
57
+ "weights": [
58
+ 2,
59
+ 1
60
+ ]
61
+ },
62
+ "placeholders": [
63
+ {
64
+ "type": "metric"
65
+ },
66
+ {
67
+ "type": "text"
68
+ }
69
+ ]
25
70
  }
26
71
  ],
27
72
  "tags": [