@openpresentation/opf 0.26.10 → 0.28.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 -0
- package/dist/browser.js +20 -17
- package/dist/{catalog-refs-BSfGELpt.d.ts → catalog-refs-kAefsZWT.d.ts} +2 -1
- package/dist/{catalog-schemas-DoxA2BgY.d.ts → catalog-schemas-CC1d_h8s.d.ts} +3 -2
- package/dist/{chart-data-BnNqgnC-.d.ts → chart-data-Ci9s_NDN.d.ts} +2 -1
- package/dist/{chunk-XRMV2GMB.js → chunk-2CUCYENF.js} +758 -232
- package/dist/chunk-43JWUIGF.js +8 -0
- package/dist/{chunk-F4HFDP6I.js → chunk-5Q4IYLMW.js} +31 -15
- package/dist/{chunk-GIWNHRTX.js → chunk-BQUWRXTR.js} +4 -4
- package/dist/chunk-CR72ZJ6W.js +236 -0
- package/dist/{chunk-L52N5FZZ.js → chunk-F6DCEGB3.js} +6 -6
- package/dist/chunk-GM7WFPGG.js +10 -0
- package/dist/chunk-JBARNYFR.js +23 -0
- package/dist/{chunk-EQ6S5SEZ.js → chunk-KELC4K62.js} +1 -1
- package/dist/{chunk-77KL2PMM.js → chunk-KXKN3W5Z.js} +3 -3
- package/dist/{chunk-D25BNPTW.js → chunk-LLEXM7TQ.js} +4 -4
- package/dist/{chunk-3S2XVDPN.js → chunk-MTFK7QEY.js} +6 -6
- package/dist/{chunk-TKQ2VFV5.js → chunk-N77N4AOD.js} +1 -1
- package/dist/{chunk-NVT2YDVC.js → chunk-OAIAFXMS.js} +2 -2
- package/dist/{chunk-PHP45MO7.js → chunk-P6PKYJTS.js} +1 -1
- package/dist/{chunk-H7XMO36O.js → chunk-PCU4XGKV.js} +5 -5
- package/dist/{chunk-Y4TZCE7R.js → chunk-SEZ4EPW6.js} +2 -2
- package/dist/{chunk-Y25DYRME.js → chunk-TNUTRV6E.js} +1 -1
- package/dist/{chunk-G5WJMJV3.js → chunk-UOHWG4OS.js} +1 -1
- package/dist/{chunk-A54NGT2K.js → chunk-VGGPAMP7.js} +2 -2
- package/dist/{chunk-IVPA6NG6.js → chunk-WPKCWQ6W.js} +494 -120
- package/dist/{chunk-VZBFQLCA.js → chunk-XZ23FORL.js} +6 -6
- package/dist/chunk-ZROVYWGU.js +1 -0
- package/dist/{composition-DIftf6iP.d.ts → composition-C-hd_Ci3.d.ts} +134 -14
- package/dist/composition.d.ts +3 -3
- package/dist/composition.js +2 -1
- package/dist/conversion-XJTDWQ5W.js +24 -0
- package/dist/{conversion-ChmGA8Ul.d.ts → conversion-hbZeS5kD.d.ts} +8 -7
- package/dist/convert.d.ts +6 -5
- package/dist/convert.js +9 -7
- package/dist/data.d.ts +4 -3
- package/dist/data.js +3 -2
- package/dist/{deck-report-5vwMGcQz.d.ts → deck-report-DQMsvyBI.d.ts} +5 -4
- package/dist/deck.d.ts +9 -8
- package/dist/deck.js +13 -11
- package/dist/diff.d.ts +3 -2
- package/dist/diff.js +6 -4
- package/dist/docs.d.ts +2 -1
- package/dist/docs.js +33 -19
- package/dist/examples.d.ts +3 -2
- package/dist/examples.js +92 -50
- package/dist/{explain-JSuESV-Y.d.ts → explain-iZeNOUc6.d.ts} +2 -1
- package/dist/font-policy.d.ts +2 -1
- package/dist/font-policy.js +1 -0
- package/dist/format.d.ts +2 -1
- package/dist/format.js +3 -2
- package/dist/ids.d.ts +114 -0
- package/dist/ids.js +6 -0
- package/dist/index.d.ts +40 -16
- package/dist/index.js +24 -21
- package/dist/markdown.d.ts +8 -7
- package/dist/markdown.js +10 -8
- package/dist/node-engine.d.ts +33 -10
- package/dist/node-engine.js +37 -28
- package/dist/{pagination-D_kJe4jH.d.ts → pagination-DyAKYpXu.d.ts} +4 -3
- package/dist/pagination.d.ts +4 -4
- package/dist/pagination.js +6 -4
- package/dist/patch.d.ts +89 -4
- package/dist/patch.js +5 -3
- package/dist/precompiled.d.ts +2 -0
- package/dist/precompiled.js +7 -0
- package/dist/{presentation-Bwo8Ko6D.d.ts → presentation-8jLSTFqL.d.ts} +11 -11
- package/dist/repo-readme.js +3 -1
- package/dist/schema-engine-ajv.js +37 -0
- package/dist/schema-engine-precompiled.js +3 -0
- package/dist/schema.d.ts +4 -3
- package/dist/schema.js +5 -3
- package/dist/schemas.d.ts +2 -1
- package/dist/schemas.js +2 -1
- package/dist/source.d.ts +5 -4
- package/dist/source.js +12 -10
- package/dist/spec/README.md +1 -1
- package/dist/spec/schemas/audience.schema.json +1 -0
- package/dist/spec/schemas/catalog-index.schema.json +1 -0
- package/dist/spec/schemas/catalog-manifest.schema.json +1 -0
- package/dist/spec/schemas/chart-type.schema.json +1 -0
- package/dist/spec/schemas/color-scheme.schema.json +1 -0
- package/dist/spec/schemas/finding.schema.json +1 -0
- package/dist/spec/schemas/font-scheme.schema.json +1 -0
- package/dist/spec/schemas/language.schema.json +1 -0
- package/dist/spec/schemas/layout-preview-index.schema.json +1 -0
- package/dist/spec/schemas/layout.schema.json +8 -6
- package/dist/spec/schemas/narrative.schema.json +1 -0
- package/dist/spec/schemas/opf.schema.json +9 -8
- package/dist/spec/schemas/purpose.schema.json +1 -0
- package/dist/spec/schemas/social-platform.schema.json +1 -0
- package/dist/spec/schemas/theme.schema.json +3 -1
- package/dist/spec/schemas/tone.schema.json +1 -0
- package/dist/spec-files.d.ts +2 -1
- package/dist/spec-files.js +1 -0
- package/dist/symbol-font-encodings.d.ts +2 -1
- package/dist/symbol-font-encodings.js +2 -0
- package/dist/types.d.ts +9 -9
- package/dist/{validation-types-3ARvTsB0.d.ts → validation-types-mNmfcY9A.d.ts} +4 -3
- package/dist/validator.d.ts +8 -8
- package/dist/validator.js +5 -3
- package/dist/yaml.d.ts +8 -7
- package/dist/yaml.js +9 -7
- package/package.json +30 -9
- package/dist/conversion-IVKCKMCN.js +0 -21
package/dist/examples.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Presentation } from './index.js';
|
|
2
2
|
|
|
3
3
|
interface ExampleRecord {
|
|
4
4
|
/** Filename slug, without the `.opf.json` suffix. */
|
|
@@ -40,4 +40,5 @@ declare function getExamplesByGallery(slug: string): readonly ExampleRecord[];
|
|
|
40
40
|
/** All examples that belong to a given top-level category (`gallery`, `technical`, …). */
|
|
41
41
|
declare function getExamplesByCategory(category: string): readonly ExampleRecord[];
|
|
42
42
|
|
|
43
|
-
export {
|
|
43
|
+
export { exampleCategories, examples, galleries, getExample, getExamplesByCategory, getExamplesByGallery, getGallery };
|
|
44
|
+
export type { ExampleRecord, GalleryRecord };
|
package/dist/examples.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import './chunk-GM7WFPGG.js';
|
|
2
|
+
|
|
1
3
|
// src/generated/examples.ts
|
|
2
4
|
var examplesData = Object.freeze([
|
|
3
5
|
{
|
|
@@ -1047,7 +1049,7 @@ var examplesData = Object.freeze([
|
|
|
1047
1049
|
},
|
|
1048
1050
|
"image": {
|
|
1049
1051
|
"name": "Image",
|
|
1050
|
-
"summary": "One picture
|
|
1052
|
+
"summary": "One picture, shown whole, under an optional title.",
|
|
1051
1053
|
"tags": [
|
|
1052
1054
|
"Visuals"
|
|
1053
1055
|
],
|
|
@@ -1067,7 +1069,7 @@ var examplesData = Object.freeze([
|
|
|
1067
1069
|
"bleed": true
|
|
1068
1070
|
}
|
|
1069
1071
|
],
|
|
1070
|
-
"description": "Let one
|
|
1072
|
+
"description": "Let one picture carry the message, shown whole at its own proportions rather than cropped. Add a short title or caption to explain what the audience should notice. For a full-bleed crop, set the image block's fit to cover.",
|
|
1071
1073
|
"preview": {
|
|
1072
1074
|
"vectorSrc": "https://www.pptx.gallery/layout-previews/image.svg"
|
|
1073
1075
|
},
|
|
@@ -3062,7 +3064,8 @@ var examplesData = Object.freeze([
|
|
|
3062
3064
|
"video"
|
|
3063
3065
|
],
|
|
3064
3066
|
"role": "media",
|
|
3065
|
-
"flow": "none"
|
|
3067
|
+
"flow": "none",
|
|
3068
|
+
"anchor": "middle"
|
|
3066
3069
|
},
|
|
3067
3070
|
{
|
|
3068
3071
|
"name": "body",
|
|
@@ -5080,7 +5083,7 @@ var examplesData = Object.freeze([
|
|
|
5080
5083
|
},
|
|
5081
5084
|
"image": {
|
|
5082
5085
|
"name": "Image",
|
|
5083
|
-
"summary": "One picture
|
|
5086
|
+
"summary": "One picture, shown whole, under an optional title.",
|
|
5084
5087
|
"tags": [
|
|
5085
5088
|
"Visuals"
|
|
5086
5089
|
],
|
|
@@ -5100,7 +5103,7 @@ var examplesData = Object.freeze([
|
|
|
5100
5103
|
"bleed": true
|
|
5101
5104
|
}
|
|
5102
5105
|
],
|
|
5103
|
-
"description": "Let one
|
|
5106
|
+
"description": "Let one picture carry the message, shown whole at its own proportions rather than cropped. Add a short title or caption to explain what the audience should notice. For a full-bleed crop, set the image block's fit to cover.",
|
|
5104
5107
|
"preview": {
|
|
5105
5108
|
"vectorSrc": "https://www.pptx.gallery/layout-previews/image.svg"
|
|
5106
5109
|
},
|
|
@@ -6771,7 +6774,7 @@ var examplesData = Object.freeze([
|
|
|
6771
6774
|
},
|
|
6772
6775
|
"image": {
|
|
6773
6776
|
"name": "Image",
|
|
6774
|
-
"summary": "One picture
|
|
6777
|
+
"summary": "One picture, shown whole, under an optional title.",
|
|
6775
6778
|
"tags": [
|
|
6776
6779
|
"Visuals"
|
|
6777
6780
|
],
|
|
@@ -6791,7 +6794,7 @@ var examplesData = Object.freeze([
|
|
|
6791
6794
|
"bleed": true
|
|
6792
6795
|
}
|
|
6793
6796
|
],
|
|
6794
|
-
"description": "Let one
|
|
6797
|
+
"description": "Let one picture carry the message, shown whole at its own proportions rather than cropped. Add a short title or caption to explain what the audience should notice. For a full-bleed crop, set the image block's fit to cover.",
|
|
6795
6798
|
"preview": {
|
|
6796
6799
|
"vectorSrc": "https://www.pptx.gallery/layout-previews/image.svg"
|
|
6797
6800
|
},
|
|
@@ -11033,7 +11036,8 @@ var examplesData = Object.freeze([
|
|
|
11033
11036
|
"video"
|
|
11034
11037
|
],
|
|
11035
11038
|
"role": "media",
|
|
11036
|
-
"flow": "none"
|
|
11039
|
+
"flow": "none",
|
|
11040
|
+
"anchor": "middle"
|
|
11037
11041
|
},
|
|
11038
11042
|
{
|
|
11039
11043
|
"name": "body",
|
|
@@ -14336,7 +14340,8 @@ var examplesData = Object.freeze([
|
|
|
14336
14340
|
"video"
|
|
14337
14341
|
],
|
|
14338
14342
|
"role": "media",
|
|
14339
|
-
"flow": "none"
|
|
14343
|
+
"flow": "none",
|
|
14344
|
+
"anchor": "middle"
|
|
14340
14345
|
},
|
|
14341
14346
|
{
|
|
14342
14347
|
"name": "body",
|
|
@@ -15481,7 +15486,8 @@ var examplesData = Object.freeze([
|
|
|
15481
15486
|
"video"
|
|
15482
15487
|
],
|
|
15483
15488
|
"role": "media",
|
|
15484
|
-
"flow": "none"
|
|
15489
|
+
"flow": "none",
|
|
15490
|
+
"anchor": "middle"
|
|
15485
15491
|
},
|
|
15486
15492
|
{
|
|
15487
15493
|
"name": "body",
|
|
@@ -18585,7 +18591,8 @@ var examplesData = Object.freeze([
|
|
|
18585
18591
|
"video"
|
|
18586
18592
|
],
|
|
18587
18593
|
"role": "media",
|
|
18588
|
-
"flow": "none"
|
|
18594
|
+
"flow": "none",
|
|
18595
|
+
"anchor": "middle"
|
|
18589
18596
|
},
|
|
18590
18597
|
{
|
|
18591
18598
|
"name": "body",
|
|
@@ -20667,7 +20674,8 @@ var examplesData = Object.freeze([
|
|
|
20667
20674
|
"video"
|
|
20668
20675
|
],
|
|
20669
20676
|
"role": "media",
|
|
20670
|
-
"flow": "none"
|
|
20677
|
+
"flow": "none",
|
|
20678
|
+
"anchor": "middle"
|
|
20671
20679
|
},
|
|
20672
20680
|
{
|
|
20673
20681
|
"name": "body",
|
|
@@ -21826,7 +21834,7 @@ var examplesData = Object.freeze([
|
|
|
21826
21834
|
},
|
|
21827
21835
|
"image": {
|
|
21828
21836
|
"name": "Image",
|
|
21829
|
-
"summary": "One picture
|
|
21837
|
+
"summary": "One picture, shown whole, under an optional title.",
|
|
21830
21838
|
"tags": [
|
|
21831
21839
|
"Visuals"
|
|
21832
21840
|
],
|
|
@@ -21846,7 +21854,7 @@ var examplesData = Object.freeze([
|
|
|
21846
21854
|
"bleed": true
|
|
21847
21855
|
}
|
|
21848
21856
|
],
|
|
21849
|
-
"description": "Let one
|
|
21857
|
+
"description": "Let one picture carry the message, shown whole at its own proportions rather than cropped. Add a short title or caption to explain what the audience should notice. For a full-bleed crop, set the image block's fit to cover.",
|
|
21850
21858
|
"preview": {
|
|
21851
21859
|
"vectorSrc": "https://www.pptx.gallery/layout-previews/image.svg"
|
|
21852
21860
|
},
|
|
@@ -24683,7 +24691,7 @@ var examplesData = Object.freeze([
|
|
|
24683
24691
|
},
|
|
24684
24692
|
"image": {
|
|
24685
24693
|
"name": "Image",
|
|
24686
|
-
"summary": "One picture
|
|
24694
|
+
"summary": "One picture, shown whole, under an optional title.",
|
|
24687
24695
|
"tags": [
|
|
24688
24696
|
"Visuals"
|
|
24689
24697
|
],
|
|
@@ -24703,7 +24711,7 @@ var examplesData = Object.freeze([
|
|
|
24703
24711
|
"bleed": true
|
|
24704
24712
|
}
|
|
24705
24713
|
],
|
|
24706
|
-
"description": "Let one
|
|
24714
|
+
"description": "Let one picture carry the message, shown whole at its own proportions rather than cropped. Add a short title or caption to explain what the audience should notice. For a full-bleed crop, set the image block's fit to cover.",
|
|
24707
24715
|
"preview": {
|
|
24708
24716
|
"vectorSrc": "https://www.pptx.gallery/layout-previews/image.svg"
|
|
24709
24717
|
},
|
|
@@ -25842,7 +25850,8 @@ var examplesData = Object.freeze([
|
|
|
25842
25850
|
"video"
|
|
25843
25851
|
],
|
|
25844
25852
|
"role": "media",
|
|
25845
|
-
"flow": "none"
|
|
25853
|
+
"flow": "none",
|
|
25854
|
+
"anchor": "middle"
|
|
25846
25855
|
},
|
|
25847
25856
|
{
|
|
25848
25857
|
"name": "body",
|
|
@@ -26984,7 +26993,8 @@ var examplesData = Object.freeze([
|
|
|
26984
26993
|
"video"
|
|
26985
26994
|
],
|
|
26986
26995
|
"role": "media",
|
|
26987
|
-
"flow": "none"
|
|
26996
|
+
"flow": "none",
|
|
26997
|
+
"anchor": "middle"
|
|
26988
26998
|
},
|
|
26989
26999
|
{
|
|
26990
27000
|
"name": "body",
|
|
@@ -28119,7 +28129,7 @@ var examplesData = Object.freeze([
|
|
|
28119
28129
|
},
|
|
28120
28130
|
"image": {
|
|
28121
28131
|
"name": "Image",
|
|
28122
|
-
"summary": "One picture
|
|
28132
|
+
"summary": "One picture, shown whole, under an optional title.",
|
|
28123
28133
|
"tags": [
|
|
28124
28134
|
"Visuals"
|
|
28125
28135
|
],
|
|
@@ -28139,7 +28149,7 @@ var examplesData = Object.freeze([
|
|
|
28139
28149
|
"bleed": true
|
|
28140
28150
|
}
|
|
28141
28151
|
],
|
|
28142
|
-
"description": "Let one
|
|
28152
|
+
"description": "Let one picture carry the message, shown whole at its own proportions rather than cropped. Add a short title or caption to explain what the audience should notice. For a full-bleed crop, set the image block's fit to cover.",
|
|
28143
28153
|
"preview": {
|
|
28144
28154
|
"vectorSrc": "https://www.pptx.gallery/layout-previews/image.svg"
|
|
28145
28155
|
},
|
|
@@ -32757,7 +32767,7 @@ var examplesData = Object.freeze([
|
|
|
32757
32767
|
},
|
|
32758
32768
|
"image": {
|
|
32759
32769
|
"name": "Image",
|
|
32760
|
-
"summary": "One picture
|
|
32770
|
+
"summary": "One picture, shown whole, under an optional title.",
|
|
32761
32771
|
"tags": [
|
|
32762
32772
|
"Visuals"
|
|
32763
32773
|
],
|
|
@@ -32777,7 +32787,7 @@ var examplesData = Object.freeze([
|
|
|
32777
32787
|
"bleed": true
|
|
32778
32788
|
}
|
|
32779
32789
|
],
|
|
32780
|
-
"description": "Let one
|
|
32790
|
+
"description": "Let one picture carry the message, shown whole at its own proportions rather than cropped. Add a short title or caption to explain what the audience should notice. For a full-bleed crop, set the image block's fit to cover.",
|
|
32781
32791
|
"preview": {
|
|
32782
32792
|
"vectorSrc": "https://www.pptx.gallery/layout-previews/image.svg"
|
|
32783
32793
|
},
|
|
@@ -34798,7 +34808,8 @@ var examplesData = Object.freeze([
|
|
|
34798
34808
|
"video"
|
|
34799
34809
|
],
|
|
34800
34810
|
"role": "media",
|
|
34801
|
-
"flow": "none"
|
|
34811
|
+
"flow": "none",
|
|
34812
|
+
"anchor": "middle"
|
|
34802
34813
|
},
|
|
34803
34814
|
{
|
|
34804
34815
|
"name": "body",
|
|
@@ -36529,7 +36540,8 @@ var examplesData = Object.freeze([
|
|
|
36529
36540
|
"video"
|
|
36530
36541
|
],
|
|
36531
36542
|
"role": "media",
|
|
36532
|
-
"flow": "none"
|
|
36543
|
+
"flow": "none",
|
|
36544
|
+
"anchor": "middle"
|
|
36533
36545
|
},
|
|
36534
36546
|
{
|
|
36535
36547
|
"name": "body",
|
|
@@ -41933,7 +41945,7 @@ var examplesData = Object.freeze([
|
|
|
41933
41945
|
},
|
|
41934
41946
|
"image": {
|
|
41935
41947
|
"name": "Image",
|
|
41936
|
-
"summary": "One picture
|
|
41948
|
+
"summary": "One picture, shown whole, under an optional title.",
|
|
41937
41949
|
"tags": [
|
|
41938
41950
|
"Visuals"
|
|
41939
41951
|
],
|
|
@@ -41953,7 +41965,7 @@ var examplesData = Object.freeze([
|
|
|
41953
41965
|
"bleed": true
|
|
41954
41966
|
}
|
|
41955
41967
|
],
|
|
41956
|
-
"description": "Let one
|
|
41968
|
+
"description": "Let one picture carry the message, shown whole at its own proportions rather than cropped. Add a short title or caption to explain what the audience should notice. For a full-bleed crop, set the image block's fit to cover.",
|
|
41957
41969
|
"preview": {
|
|
41958
41970
|
"vectorSrc": "https://www.pptx.gallery/layout-previews/image.svg"
|
|
41959
41971
|
},
|
|
@@ -43095,7 +43107,8 @@ var examplesData = Object.freeze([
|
|
|
43095
43107
|
"video"
|
|
43096
43108
|
],
|
|
43097
43109
|
"role": "media",
|
|
43098
|
-
"flow": "none"
|
|
43110
|
+
"flow": "none",
|
|
43111
|
+
"anchor": "middle"
|
|
43099
43112
|
},
|
|
43100
43113
|
{
|
|
43101
43114
|
"name": "body",
|
|
@@ -46173,7 +46186,7 @@ var examplesData = Object.freeze([
|
|
|
46173
46186
|
},
|
|
46174
46187
|
"image": {
|
|
46175
46188
|
"name": "Image",
|
|
46176
|
-
"summary": "One picture
|
|
46189
|
+
"summary": "One picture, shown whole, under an optional title.",
|
|
46177
46190
|
"tags": [
|
|
46178
46191
|
"Visuals"
|
|
46179
46192
|
],
|
|
@@ -46193,7 +46206,7 @@ var examplesData = Object.freeze([
|
|
|
46193
46206
|
"bleed": true
|
|
46194
46207
|
}
|
|
46195
46208
|
],
|
|
46196
|
-
"description": "Let one
|
|
46209
|
+
"description": "Let one picture carry the message, shown whole at its own proportions rather than cropped. Add a short title or caption to explain what the audience should notice. For a full-bleed crop, set the image block's fit to cover.",
|
|
46197
46210
|
"preview": {
|
|
46198
46211
|
"vectorSrc": "https://www.pptx.gallery/layout-previews/image.svg"
|
|
46199
46212
|
},
|
|
@@ -49080,7 +49093,7 @@ var examplesData = Object.freeze([
|
|
|
49080
49093
|
},
|
|
49081
49094
|
"image": {
|
|
49082
49095
|
"name": "Image",
|
|
49083
|
-
"summary": "One picture
|
|
49096
|
+
"summary": "One picture, shown whole, under an optional title.",
|
|
49084
49097
|
"tags": [
|
|
49085
49098
|
"Visuals"
|
|
49086
49099
|
],
|
|
@@ -49100,7 +49113,7 @@ var examplesData = Object.freeze([
|
|
|
49100
49113
|
"bleed": true
|
|
49101
49114
|
}
|
|
49102
49115
|
],
|
|
49103
|
-
"description": "Let one
|
|
49116
|
+
"description": "Let one picture carry the message, shown whole at its own proportions rather than cropped. Add a short title or caption to explain what the audience should notice. For a full-bleed crop, set the image block's fit to cover.",
|
|
49104
49117
|
"preview": {
|
|
49105
49118
|
"vectorSrc": "https://www.pptx.gallery/layout-previews/image.svg"
|
|
49106
49119
|
},
|
|
@@ -52269,7 +52282,8 @@ var examplesData = Object.freeze([
|
|
|
52269
52282
|
"video"
|
|
52270
52283
|
],
|
|
52271
52284
|
"role": "media",
|
|
52272
|
-
"flow": "none"
|
|
52285
|
+
"flow": "none",
|
|
52286
|
+
"anchor": "middle"
|
|
52273
52287
|
},
|
|
52274
52288
|
{
|
|
52275
52289
|
"name": "body",
|
|
@@ -54312,7 +54326,8 @@ var examplesData = Object.freeze([
|
|
|
54312
54326
|
"video"
|
|
54313
54327
|
],
|
|
54314
54328
|
"role": "media",
|
|
54315
|
-
"flow": "none"
|
|
54329
|
+
"flow": "none",
|
|
54330
|
+
"anchor": "middle"
|
|
54316
54331
|
},
|
|
54317
54332
|
{
|
|
54318
54333
|
"name": "body",
|
|
@@ -55440,7 +55455,7 @@ var examplesData = Object.freeze([
|
|
|
55440
55455
|
},
|
|
55441
55456
|
"image": {
|
|
55442
55457
|
"name": "Image",
|
|
55443
|
-
"summary": "One picture
|
|
55458
|
+
"summary": "One picture, shown whole, under an optional title.",
|
|
55444
55459
|
"tags": [
|
|
55445
55460
|
"Visuals"
|
|
55446
55461
|
],
|
|
@@ -55460,7 +55475,7 @@ var examplesData = Object.freeze([
|
|
|
55460
55475
|
"bleed": true
|
|
55461
55476
|
}
|
|
55462
55477
|
],
|
|
55463
|
-
"description": "Let one
|
|
55478
|
+
"description": "Let one picture carry the message, shown whole at its own proportions rather than cropped. Add a short title or caption to explain what the audience should notice. For a full-bleed crop, set the image block's fit to cover.",
|
|
55464
55479
|
"preview": {
|
|
55465
55480
|
"vectorSrc": "https://www.pptx.gallery/layout-previews/image.svg"
|
|
55466
55481
|
},
|
|
@@ -56625,7 +56640,8 @@ var examplesData = Object.freeze([
|
|
|
56625
56640
|
"video"
|
|
56626
56641
|
],
|
|
56627
56642
|
"role": "media",
|
|
56628
|
-
"flow": "none"
|
|
56643
|
+
"flow": "none",
|
|
56644
|
+
"anchor": "middle"
|
|
56629
56645
|
},
|
|
56630
56646
|
{
|
|
56631
56647
|
"name": "body",
|
|
@@ -57735,7 +57751,7 @@ var examplesData = Object.freeze([
|
|
|
57735
57751
|
},
|
|
57736
57752
|
"image": {
|
|
57737
57753
|
"name": "Image",
|
|
57738
|
-
"summary": "One picture
|
|
57754
|
+
"summary": "One picture, shown whole, under an optional title.",
|
|
57739
57755
|
"tags": [
|
|
57740
57756
|
"Visuals"
|
|
57741
57757
|
],
|
|
@@ -57755,7 +57771,7 @@ var examplesData = Object.freeze([
|
|
|
57755
57771
|
"bleed": true
|
|
57756
57772
|
}
|
|
57757
57773
|
],
|
|
57758
|
-
"description": "Let one
|
|
57774
|
+
"description": "Let one picture carry the message, shown whole at its own proportions rather than cropped. Add a short title or caption to explain what the audience should notice. For a full-bleed crop, set the image block's fit to cover.",
|
|
57759
57775
|
"preview": {
|
|
57760
57776
|
"vectorSrc": "https://www.pptx.gallery/layout-previews/image.svg"
|
|
57761
57777
|
},
|
|
@@ -59504,7 +59520,7 @@ var examplesData = Object.freeze([
|
|
|
59504
59520
|
},
|
|
59505
59521
|
"image": {
|
|
59506
59522
|
"name": "Image",
|
|
59507
|
-
"summary": "One picture
|
|
59523
|
+
"summary": "One picture, shown whole, under an optional title.",
|
|
59508
59524
|
"tags": [
|
|
59509
59525
|
"Visuals"
|
|
59510
59526
|
],
|
|
@@ -59524,7 +59540,7 @@ var examplesData = Object.freeze([
|
|
|
59524
59540
|
"bleed": true
|
|
59525
59541
|
}
|
|
59526
59542
|
],
|
|
59527
|
-
"description": "Let one
|
|
59543
|
+
"description": "Let one picture carry the message, shown whole at its own proportions rather than cropped. Add a short title or caption to explain what the audience should notice. For a full-bleed crop, set the image block's fit to cover.",
|
|
59528
59544
|
"preview": {
|
|
59529
59545
|
"vectorSrc": "https://www.pptx.gallery/layout-previews/image.svg"
|
|
59530
59546
|
},
|
|
@@ -60626,7 +60642,7 @@ var examplesData = Object.freeze([
|
|
|
60626
60642
|
},
|
|
60627
60643
|
"image": {
|
|
60628
60644
|
"name": "Image",
|
|
60629
|
-
"summary": "One picture
|
|
60645
|
+
"summary": "One picture, shown whole, under an optional title.",
|
|
60630
60646
|
"tags": [
|
|
60631
60647
|
"Visuals"
|
|
60632
60648
|
],
|
|
@@ -60646,7 +60662,7 @@ var examplesData = Object.freeze([
|
|
|
60646
60662
|
"bleed": true
|
|
60647
60663
|
}
|
|
60648
60664
|
],
|
|
60649
|
-
"description": "Let one
|
|
60665
|
+
"description": "Let one picture carry the message, shown whole at its own proportions rather than cropped. Add a short title or caption to explain what the audience should notice. For a full-bleed crop, set the image block's fit to cover.",
|
|
60650
60666
|
"preview": {
|
|
60651
60667
|
"vectorSrc": "https://www.pptx.gallery/layout-previews/image.svg"
|
|
60652
60668
|
},
|
|
@@ -63785,7 +63801,8 @@ var examplesData = Object.freeze([
|
|
|
63785
63801
|
"video"
|
|
63786
63802
|
],
|
|
63787
63803
|
"role": "media",
|
|
63788
|
-
"flow": "none"
|
|
63804
|
+
"flow": "none",
|
|
63805
|
+
"anchor": "middle"
|
|
63789
63806
|
},
|
|
63790
63807
|
{
|
|
63791
63808
|
"name": "body",
|
|
@@ -69580,7 +69597,8 @@ var examplesData = Object.freeze([
|
|
|
69580
69597
|
"video"
|
|
69581
69598
|
],
|
|
69582
69599
|
"role": "media",
|
|
69583
|
-
"flow": "none"
|
|
69600
|
+
"flow": "none",
|
|
69601
|
+
"anchor": "middle"
|
|
69584
69602
|
},
|
|
69585
69603
|
{
|
|
69586
69604
|
"name": "body",
|
|
@@ -76007,7 +76025,8 @@ var examplesData = Object.freeze([
|
|
|
76007
76025
|
"video"
|
|
76008
76026
|
],
|
|
76009
76027
|
"role": "media",
|
|
76010
|
-
"flow": "none"
|
|
76028
|
+
"flow": "none",
|
|
76029
|
+
"anchor": "middle"
|
|
76011
76030
|
},
|
|
76012
76031
|
{
|
|
76013
76032
|
"name": "body",
|
|
@@ -78953,7 +78972,8 @@ var examplesData = Object.freeze([
|
|
|
78953
78972
|
"video"
|
|
78954
78973
|
],
|
|
78955
78974
|
"role": "media",
|
|
78956
|
-
"flow": "none"
|
|
78975
|
+
"flow": "none",
|
|
78976
|
+
"anchor": "middle"
|
|
78957
78977
|
},
|
|
78958
78978
|
{
|
|
78959
78979
|
"name": "body",
|
|
@@ -87373,7 +87393,7 @@ var examplesData = Object.freeze([
|
|
|
87373
87393
|
},
|
|
87374
87394
|
"image": {
|
|
87375
87395
|
"name": "Image",
|
|
87376
|
-
"summary": "One picture
|
|
87396
|
+
"summary": "One picture, shown whole, under an optional title.",
|
|
87377
87397
|
"tags": [
|
|
87378
87398
|
"Visuals"
|
|
87379
87399
|
],
|
|
@@ -87393,7 +87413,7 @@ var examplesData = Object.freeze([
|
|
|
87393
87413
|
"bleed": true
|
|
87394
87414
|
}
|
|
87395
87415
|
],
|
|
87396
|
-
"description": "Let one
|
|
87416
|
+
"description": "Let one picture carry the message, shown whole at its own proportions rather than cropped. Add a short title or caption to explain what the audience should notice. For a full-bleed crop, set the image block's fit to cover.",
|
|
87397
87417
|
"preview": {
|
|
87398
87418
|
"vectorSrc": "https://www.pptx.gallery/layout-previews/image.svg"
|
|
87399
87419
|
},
|
|
@@ -89026,7 +89046,8 @@ var examplesData = Object.freeze([
|
|
|
89026
89046
|
"video"
|
|
89027
89047
|
],
|
|
89028
89048
|
"role": "media",
|
|
89029
|
-
"flow": "none"
|
|
89049
|
+
"flow": "none",
|
|
89050
|
+
"anchor": "middle"
|
|
89030
89051
|
},
|
|
89031
89052
|
{
|
|
89032
89053
|
"name": "body",
|
|
@@ -91266,7 +91287,8 @@ var examplesData = Object.freeze([
|
|
|
91266
91287
|
"video"
|
|
91267
91288
|
],
|
|
91268
91289
|
"role": "media",
|
|
91269
|
-
"flow": "none"
|
|
91290
|
+
"flow": "none",
|
|
91291
|
+
"anchor": "middle"
|
|
91270
91292
|
},
|
|
91271
91293
|
{
|
|
91272
91294
|
"name": "body",
|
|
@@ -95114,6 +95136,26 @@ var examplesData = Object.freeze([
|
|
|
95114
95136
|
}
|
|
95115
95137
|
}
|
|
95116
95138
|
]
|
|
95139
|
+
},
|
|
95140
|
+
{
|
|
95141
|
+
"title": "No-Bullet Label Lists Override",
|
|
95142
|
+
"design": {
|
|
95143
|
+
"listBullet": "none"
|
|
95144
|
+
},
|
|
95145
|
+
"items": [
|
|
95146
|
+
{
|
|
95147
|
+
"text": "Clear scope",
|
|
95148
|
+
"description": "Two teams and one workflow keep the pilot focused."
|
|
95149
|
+
},
|
|
95150
|
+
{
|
|
95151
|
+
"text": "Consistent measures",
|
|
95152
|
+
"description": "Track completion and task time against a baseline."
|
|
95153
|
+
},
|
|
95154
|
+
{
|
|
95155
|
+
"text": "An explicit decision",
|
|
95156
|
+
"description": "Agree the evidence needed before expanding."
|
|
95157
|
+
}
|
|
95158
|
+
]
|
|
95117
95159
|
}
|
|
95118
95160
|
],
|
|
95119
95161
|
"assets": {
|
|
@@ -68,4 +68,5 @@ interface RuleExplanation {
|
|
|
68
68
|
*/
|
|
69
69
|
declare function explain(ruleId: string): RuleExplanation | undefined;
|
|
70
70
|
|
|
71
|
-
export {
|
|
71
|
+
export { distance as d, explain as e, nearest as n, segmentsOf as s };
|
|
72
|
+
export type { FindingTextContext as F, RuleExplanation as R, FindingText as a };
|
package/dist/font-policy.d.ts
CHANGED
|
@@ -139,4 +139,5 @@ interface FontAvailabilityDiagnostic {
|
|
|
139
139
|
*/
|
|
140
140
|
declare function fontAvailabilityDiagnostics(families: Iterable<string>): FontAvailabilityDiagnostic[];
|
|
141
141
|
|
|
142
|
-
export { FONT_POLICY,
|
|
142
|
+
export { FONT_POLICY, applyFontPolicyDecisions, fontAvailabilityDiagnostics, fontPolicyFor };
|
|
143
|
+
export type { FontAvailability, FontAvailabilityCode, FontAvailabilityDiagnostic, FontLicenseClass, FontPolicyDecision, FontPolicyEntry, FontPolicyTable, FontReplacement, FontReplacementCompatibility, FontReplacementMeasurement };
|
package/dist/font-policy.js
CHANGED
package/dist/format.d.ts
CHANGED
|
@@ -17,4 +17,5 @@ declare function format(input: unknown, options?: FormatOptions): string;
|
|
|
17
17
|
/** True when `source` is already exactly the canonical text. */
|
|
18
18
|
declare function isFormatted(source: string, options?: FormatOptions): boolean;
|
|
19
19
|
|
|
20
|
-
export {
|
|
20
|
+
export { OPFFormatError, format, isFormatted, sortPresentationKeys };
|
|
21
|
+
export type { FormatOptions };
|
package/dist/format.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { OPFFormatError, format, isFormatted, sortPresentationKeys } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { OPFFormatError, format, isFormatted, sortPresentationKeys } from './chunk-KELC4K62.js';
|
|
2
|
+
import './chunk-5Q4IYLMW.js';
|
|
3
|
+
import './chunk-GM7WFPGG.js';
|
package/dist/ids.d.ts
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { JsonPatchOperation } from './index.js';
|
|
2
|
+
export { OPFPatchHashError, documentHash, idToken, isIdToken, resolveIdPatch, resolveIdPointer, toIdPatch, toIdPointer } from './patch.js';
|
|
3
|
+
|
|
4
|
+
type IdErrorCode = "invalid-document" | "invalid-id" | "duplicate-id";
|
|
5
|
+
/** Thrown by `assignIds` for a value that is not a document or a `generate` that returns an unusable id. */
|
|
6
|
+
declare class OPFIdError extends Error {
|
|
7
|
+
readonly code: IdErrorCode;
|
|
8
|
+
/** The JSON Pointer of the slide or payload the error is about, when known. */
|
|
9
|
+
path?: string;
|
|
10
|
+
constructor(code: IdErrorCode, message: string, path?: string);
|
|
11
|
+
}
|
|
12
|
+
interface AssignIdsContext {
|
|
13
|
+
/** `slide` for an entry of `slides`; `block` for a content payload (a block, a nested group or a promoted region). */
|
|
14
|
+
kind: "slide" | "block";
|
|
15
|
+
/** The JSON Pointer of the node, in index form (`/slides/2/blocks/0`). */
|
|
16
|
+
pointer: string;
|
|
17
|
+
/** The node, read only. */
|
|
18
|
+
node: Readonly<Record<string, unknown>>;
|
|
19
|
+
/** The id of the nearest slide or group above the node that has one (an id assigned earlier in this call counts). */
|
|
20
|
+
parentId?: string;
|
|
21
|
+
}
|
|
22
|
+
interface AssignIdsOptions {
|
|
23
|
+
/**
|
|
24
|
+
* Make the id of a node. It must return a non-empty string no slide or payload of the document uses, or `assignIds` throws
|
|
25
|
+
* `OPFIdError` (`invalid-id`, `duplicate-id`). It is called in document order and must not depend on anything but its argument if the
|
|
26
|
+
* result is to be deterministic. The default makes `slide-1`, `slide-2`, ... and `block-1`, `block-2`, ... skipping ids in use.
|
|
27
|
+
*/
|
|
28
|
+
generate?: (context: AssignIdsContext) => string;
|
|
29
|
+
}
|
|
30
|
+
interface AssignedId {
|
|
31
|
+
/** The JSON Pointer of the node that got the id, in index form. */
|
|
32
|
+
pointer: string;
|
|
33
|
+
kind: "slide" | "block";
|
|
34
|
+
id: string;
|
|
35
|
+
}
|
|
36
|
+
interface AssignIdsResult {
|
|
37
|
+
/** A copy of the document in which every slide and payload has an id. */
|
|
38
|
+
document: unknown;
|
|
39
|
+
/** The `add` operations that produce `document` from the input: one `/…/id` per assigned id. Empty when nothing was missing. */
|
|
40
|
+
patch: JsonPatchOperation[];
|
|
41
|
+
assigned: AssignedId[];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Give every slide and content payload that has no `id` one, deterministically: the same document and `generate` give the same ids. An
|
|
45
|
+
* existing id is never changed (not even a duplicate: that is a validation finding, not an assignment), and a new id is never one in
|
|
46
|
+
* use, so a valid document stays valid. The input is not changed; `patch` is the same change as operations, for an editor to apply as one
|
|
47
|
+
* undoable edit. The id is added as the node's last member (`format` puts it in canonical order).
|
|
48
|
+
*
|
|
49
|
+
* Slides and payloads share one id namespace in the schema; list items, table rows and runs have no id.
|
|
50
|
+
*/
|
|
51
|
+
declare function assignIds(document: unknown, options?: AssignIdsOptions): AssignIdsResult;
|
|
52
|
+
/**
|
|
53
|
+
* The part of a presentation a location belongs to:
|
|
54
|
+
* - `document`: the whole document (the root);
|
|
55
|
+
* - `slide-order`: the `slides` array, or a slide as a whole (added, removed, moved, copied);
|
|
56
|
+
* - `slide`: a field of one slide, or a slide replaced or read as a whole;
|
|
57
|
+
* - `block`: a content payload (a block, a nested group or a promoted region) or the `blocks` array that holds it, below a slide;
|
|
58
|
+
* - `design`: the deck's `design` or a slide's `design`;
|
|
59
|
+
* - `assets`, `catalogs`: the deck's `assets` and `catalogs`;
|
|
60
|
+
* - `metadata`: every other deck field (`name`, `language`, `references`, `datasets`, `variables`, `narrative`, `extensions`, ...).
|
|
61
|
+
*/
|
|
62
|
+
type PatchScopeKind = "document" | "slide-order" | "slide" | "block" | "design" | "assets" | "catalogs" | "metadata";
|
|
63
|
+
/** One location an operation reads or writes. */
|
|
64
|
+
interface PatchTouch {
|
|
65
|
+
/** The index of the operation within the patch. */
|
|
66
|
+
operation: number;
|
|
67
|
+
op: JsonPatchOperation["op"];
|
|
68
|
+
/**
|
|
69
|
+
* The JSON Pointer of the location. With a document: in index form, as it is when the operation runs (id tokens resolved, an
|
|
70
|
+
* `add` at `-` given the index it appended at). Without one: as written.
|
|
71
|
+
*/
|
|
72
|
+
pointer: string;
|
|
73
|
+
/** The same location with `@id` tokens wherever an element has an id; without a document, as written. It survives reordering. */
|
|
74
|
+
idPointer: string;
|
|
75
|
+
kind: PatchScopeKind;
|
|
76
|
+
/**
|
|
77
|
+
* The ids of the slides and payloads this location is inside, is, or contains: every slide and payload on the path, plus the
|
|
78
|
+
* ones inside the value a write removes, replaces or inserts (removing a slide lists its blocks). Without a document: the ids the
|
|
79
|
+
* pointer names with id tokens and the ids inside the operation's value.
|
|
80
|
+
*/
|
|
81
|
+
ids: string[];
|
|
82
|
+
/** The ids in `ids` that belong to slides. */
|
|
83
|
+
slideIds: string[];
|
|
84
|
+
}
|
|
85
|
+
interface PatchScope {
|
|
86
|
+
/** What the patch looks at without changing: `test`, and the source of `copy`. In operation order. */
|
|
87
|
+
reads: PatchTouch[];
|
|
88
|
+
/** What the patch changes: `add`, `replace`, `remove`, both ends of `move`, the destination of `copy`. In operation order. */
|
|
89
|
+
writes: PatchTouch[];
|
|
90
|
+
/** Every id in `reads` and `writes`, in order of first appearance. */
|
|
91
|
+
ids: string[];
|
|
92
|
+
slideIds: string[];
|
|
93
|
+
/** The kinds of `reads` and `writes`, in the order `PatchScopeKind` lists them. */
|
|
94
|
+
kinds: PatchScopeKind[];
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* What a patch reads and writes, for conflict detection and permission checks.
|
|
98
|
+
*
|
|
99
|
+
* Without `document`, from the patch alone: the pointers as written, the id tokens they carry and the ids inside the values the
|
|
100
|
+
* operations insert. With `document`, the patch is walked operation by operation against that document (the version it was made for),
|
|
101
|
+
* so each location is resolved as it is when its operation runs: an earlier operation that inserts or moves a slide is accounted for,
|
|
102
|
+
* `@id` tokens become indexes, every location also gets its id form, and a `remove`, `replace` or `move` lists the ids of what it
|
|
103
|
+
* destroys. A patch that does not apply to `document` throws the `OPFPatchError` that `applyPatch` throws; the document is not changed.
|
|
104
|
+
*
|
|
105
|
+
* Two patches made against the same document conflict when a write of one has the same `idPointer` as, or sits inside or above, a
|
|
106
|
+
* location the other reads or writes (compare `pointer` when elements have no ids), or when what one destroys is in the `ids` of the
|
|
107
|
+
* other. A `move` changes where an element sits, not what is inside it, so it meets the element and its siblings but not an edit
|
|
108
|
+
* inside it: skip the descendants of a `move` location (`op` is `move`). A permission check reads `kind`, `slideIds` and `ids` of
|
|
109
|
+
* `writes`, moves included. What counts as a conflict and what a user may touch stays with the host.
|
|
110
|
+
*/
|
|
111
|
+
declare function touches(patch: unknown, document?: unknown): PatchScope;
|
|
112
|
+
|
|
113
|
+
export { OPFIdError, assignIds, touches };
|
|
114
|
+
export type { AssignIdsContext, AssignIdsOptions, AssignIdsResult, AssignedId, IdErrorCode, PatchScope, PatchScopeKind, PatchTouch };
|