@types/office-js-preview 1.0.563 → 1.0.564

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.
@@ -8,7 +8,7 @@ This package contains type definitions for office-js-preview (https://github.com
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 25 Feb 2025 01:29:27 GMT
11
+ * Last updated: Tue, 25 Feb 2025 20:02:36 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -133476,7 +133476,27 @@ declare namespace PowerPoint {
133476
133476
  /** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
133477
133477
  context: RequestContext;
133478
133478
  /**
133479
- * Specifies the bold status of font. Returns `null` if the `TextRange` contains both bold and non-bold text fragments.
133479
+ * Specifies whether the text in the `TextRange` is set to use the **All Caps** attribute which makes lowercase letters appear as uppercase letters. The possible values are as follows:
133480
+ *
133481
+ * - `true`: All the text has the **All Caps** attribute.
133482
+ *
133483
+ * - `false`: None of the text has the **All Caps** attribute.
133484
+ *
133485
+ * - `null`: Returned if some, but not all, of the text has the **All Caps** attribute.
133486
+ *
133487
+ * @remarks
133488
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
133489
+ * @beta
133490
+ */
133491
+ allCaps: boolean | null;
133492
+ /**
133493
+ * Specifies whether the text in the `TextRange` is set to bold. The possible values are as follows:
133494
+ *
133495
+ * - `true`: All the text is bold.
133496
+ *
133497
+ * - `false`: None of the text is bold.
133498
+ *
133499
+ * - `null`: Returned if some, but not all, of the text is bold.
133480
133500
  *
133481
133501
  * @remarks
133482
133502
  * [Api set: PowerPointApi 1.4]
@@ -133490,7 +133510,27 @@ declare namespace PowerPoint {
133490
133510
  */
133491
133511
  color: string | null;
133492
133512
  /**
133493
- * Specifies the italic status of font. Returns 'null' if the 'TextRange' contains both italic and non-italic text fragments.
133513
+ * Specifies whether the text in the `TextRange` is set to use the **Double strikethrough** attribute. The possible values are as follows:
133514
+ *
133515
+ * - `true`: All the text has the **Double strikethrough** attribute.
133516
+ *
133517
+ * - `false`: None of the text has the **Double strikethrough** attribute.
133518
+ *
133519
+ * - `null`: Returned if some, but not all, of the text has the **Double strikethrough** attribute.
133520
+ *
133521
+ * @remarks
133522
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
133523
+ * @beta
133524
+ */
133525
+ doubleStrikethrough: boolean | null;
133526
+ /**
133527
+ * Specifies whether the text in the `TextRange` is set to italic. The possible values are as follows:
133528
+ *
133529
+ * - `true`: All the text is italicized.
133530
+ *
133531
+ * - `false`: None of the text is italicized.
133532
+ *
133533
+ * - `null`: Returned if some, but not all, of the text is italicized.
133494
133534
  *
133495
133535
  * @remarks
133496
133536
  * [Api set: PowerPointApi 1.4]
@@ -133510,6 +133550,62 @@ declare namespace PowerPoint {
133510
133550
  * [Api set: PowerPointApi 1.4]
133511
133551
  */
133512
133552
  size: number | null;
133553
+ /**
133554
+ * Specifies whether the text in the `TextRange` is set to use the **Small Caps** attribute which makes lowercase letters appear as small uppercase letters. The possible values are as follows:
133555
+ *
133556
+ * - `true`: All the text has the **Small Caps** attribute.
133557
+ *
133558
+ * - `false`: None of the text has the **Small Caps** attribute.
133559
+ *
133560
+ * - `null`: Returned if some, but not all, of the text has the **Small Caps** attribute.
133561
+ *
133562
+ * @remarks
133563
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
133564
+ * @beta
133565
+ */
133566
+ smallCaps: boolean | null;
133567
+ /**
133568
+ * Specifies whether the text in the `TextRange` is set to use the **Strikethrough** attribute. The possible values are as follows:
133569
+ *
133570
+ * - `true`: All the text has the **Strikethrough** attribute.
133571
+ *
133572
+ * - `false`: None of the text has the **Strikethrough** attribute.
133573
+ *
133574
+ * - `null`: Returned if some, but not all, of the text has the **Strikethrough** attribute.
133575
+ *
133576
+ * @remarks
133577
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
133578
+ * @beta
133579
+ */
133580
+ strikethrough: boolean | null;
133581
+ /**
133582
+ * Specifies whether the text in the `TextRange` is set to use the **Subscript** attribute. The possible values are as follows:
133583
+ *
133584
+ * - `true`: All the text has the **Subscript** attribute.
133585
+ *
133586
+ * - `false`: None of the text has the **Subscript** attribute.
133587
+ *
133588
+ * - `null`: Returned if some, but not all, of the text has the **Subscript** attribute.
133589
+ *
133590
+ * @remarks
133591
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
133592
+ * @beta
133593
+ */
133594
+ subscript: boolean | null;
133595
+ /**
133596
+ * Specifies whether the text in the `TextRange` is set to use the **Superscript** attribute. The possible values are as follows:
133597
+ *
133598
+ * - `true`: All the text has the **Superscript** attribute.
133599
+ *
133600
+ * - `false`: None of the text has the **Superscript** attribute.
133601
+ *
133602
+ * - `null`: Returned if some, but not all, of the text has the **Superscript** attribute.
133603
+ *
133604
+ * @remarks
133605
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
133606
+ * @beta
133607
+ */
133608
+ superscript: boolean | null;
133513
133609
  /**
133514
133610
  * Specifies the type of underline applied to the font. Returns `null` if the `TextRange` contains text fragments with different underline styles. See {@link PowerPoint.ShapeFontUnderlineStyle} for details.
133515
133611
  *
@@ -135998,7 +136094,27 @@ declare namespace PowerPoint {
135998
136094
  /** An interface for updating data on the `ShapeFont` object, for use in `shapeFont.set({ ... })`. */
135999
136095
  interface ShapeFontUpdateData {
136000
136096
  /**
136001
- * Specifies the bold status of font. Returns `null` if the `TextRange` contains both bold and non-bold text fragments.
136097
+ * Specifies whether the text in the `TextRange` is set to use the **All Caps** attribute which makes lowercase letters appear as uppercase letters. The possible values are as follows:
136098
+ *
136099
+ * - `true`: All the text has the **All Caps** attribute.
136100
+ *
136101
+ * - `false`: None of the text has the **All Caps**attribute.
136102
+ *
136103
+ * - `null`: Some, but not all, of the text has the **All Caps** attribute.
136104
+ *
136105
+ * @remarks
136106
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
136107
+ * @beta
136108
+ */
136109
+ allCaps?: boolean | null;
136110
+ /**
136111
+ * Specifies whether the text in the `TextRange` is set to bold. The possible values are as follows:
136112
+ *
136113
+ * - `true`: All the text is bold.
136114
+ *
136115
+ * - `false`: None of the text is bold.
136116
+ *
136117
+ * - `null`: Returned if some, but not all, of the text is bold.
136002
136118
  *
136003
136119
  * @remarks
136004
136120
  * [Api set: PowerPointApi 1.4]
@@ -136012,7 +136128,27 @@ declare namespace PowerPoint {
136012
136128
  */
136013
136129
  color?: string | null;
136014
136130
  /**
136015
- * Specifies the italic status of font. Returns 'null' if the 'TextRange' contains both italic and non-italic text fragments.
136131
+ * Specifies whether the text in the `TextRange` is set to use the **Double strikethrough** attribute. The possible values are as follows:
136132
+ *
136133
+ * - `true`: All the text has the **Double strikethrough** attribute.
136134
+ *
136135
+ * - `false`: None of the text has the **Double strikethrough** attribute.
136136
+ *
136137
+ * - `null`: Returned if some, but not all, of the text has the **Double strikethrough** attribute.
136138
+ *
136139
+ * @remarks
136140
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
136141
+ * @beta
136142
+ */
136143
+ doubleStrikethrough?: boolean | null;
136144
+ /**
136145
+ * Specifies whether the text in the `TextRange` is set to italic. The possible values are as follows:
136146
+ *
136147
+ * - `true`: All the text is italicized.
136148
+ *
136149
+ * - `false`: None of the text is italicized.
136150
+ *
136151
+ * - `null`: Returned if some, but not all, of the text is italicized.
136016
136152
  *
136017
136153
  * @remarks
136018
136154
  * [Api set: PowerPointApi 1.4]
@@ -136032,6 +136168,62 @@ declare namespace PowerPoint {
136032
136168
  * [Api set: PowerPointApi 1.4]
136033
136169
  */
136034
136170
  size?: number | null;
136171
+ /**
136172
+ * Specifies whether the text in the `TextRange` is set to use the **Small Caps** attribute which makes lowercase letters appear as small uppercase letters. The possible values are as follows:
136173
+ *
136174
+ * - `true`: All the text has the **Small Caps** attribute.
136175
+ *
136176
+ * - `false`: None of the text has the **Small Caps** attribute.
136177
+ *
136178
+ * - `null`: Returned if some, but not all, of the text has the **Small Caps** attribute.
136179
+ *
136180
+ * @remarks
136181
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
136182
+ * @beta
136183
+ */
136184
+ smallCaps?: boolean | null;
136185
+ /**
136186
+ * Specifies whether the text in the `TextRange` is set to use the **Strikethrough** attribute. The possible values are as follows:
136187
+ *
136188
+ * - `true`: All the text has the **Strikethrough** attribute.
136189
+ *
136190
+ * - `false`: None of the text has the **Strikethrough** attribute.
136191
+ *
136192
+ * - `null`: Returned if some, but not all, of the text has the **Strikethrough** attribute.
136193
+ *
136194
+ * @remarks
136195
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
136196
+ * @beta
136197
+ */
136198
+ strikethrough?: boolean | null;
136199
+ /**
136200
+ * Specifies whether the text in the `TextRange` is set to use the **Subscript** attribute. The possible values are as follows:
136201
+ *
136202
+ * - `true`: All the text has the **Subscript** attribute.
136203
+ *
136204
+ * - `false`: None of the text has the **Subscript** attribute.
136205
+ *
136206
+ * - `null`: Returned if some, but not all, of the text has the **Subscript** attribute.
136207
+ *
136208
+ * @remarks
136209
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
136210
+ * @beta
136211
+ */
136212
+ subscript?: boolean | null;
136213
+ /**
136214
+ * Specifies whether the text in the `TextRange` is set to use the **Superscript** attribute. The possible values are as follows:
136215
+ *
136216
+ * - `true`: All the text has the **Superscript** attribute.
136217
+ *
136218
+ * - `false`: None of the text has the **Superscript** attribute.
136219
+ *
136220
+ * - `null`: Returned if some, but not all, of the text has the **Superscript** attribute.
136221
+ *
136222
+ * @remarks
136223
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
136224
+ * @beta
136225
+ */
136226
+ superscript?: boolean | null;
136035
136227
  /**
136036
136228
  * Specifies the type of underline applied to the font. Returns `null` if the `TextRange` contains text fragments with different underline styles. See {@link PowerPoint.ShapeFontUnderlineStyle} for details.
136037
136229
  *
@@ -136444,7 +136636,27 @@ declare namespace PowerPoint {
136444
136636
  /** An interface describing the data returned by calling `shapeFont.toJSON()`. */
136445
136637
  interface ShapeFontData {
136446
136638
  /**
136447
- * Specifies the bold status of font. Returns `null` if the `TextRange` contains both bold and non-bold text fragments.
136639
+ * Specifies whether the text in the `TextRange` is set to use the **All Caps** attribute which makes lowercase letters appear as uppercase letters. The possible values are as follows:
136640
+ *
136641
+ * - `true`: All the text has the **All Caps** attribute.
136642
+ *
136643
+ * - `false`: None of the text has the **All Caps**attribute.
136644
+ *
136645
+ * - `null`: Some, but not all, of the text has the **All Caps** attribute.
136646
+ *
136647
+ * @remarks
136648
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
136649
+ * @beta
136650
+ */
136651
+ allCaps?: boolean | null;
136652
+ /**
136653
+ * Specifies whether the text in the `TextRange` is set to bold. The possible values are as follows:
136654
+ *
136655
+ * - `true`: All the text is bold.
136656
+ *
136657
+ * - `false`: None of the text is bold.
136658
+ *
136659
+ * - `null`: Returned if some, but not all, of the text is bold.
136448
136660
  *
136449
136661
  * @remarks
136450
136662
  * [Api set: PowerPointApi 1.4]
@@ -136458,7 +136670,27 @@ declare namespace PowerPoint {
136458
136670
  */
136459
136671
  color?: string | null;
136460
136672
  /**
136461
- * Specifies the italic status of font. Returns 'null' if the 'TextRange' contains both italic and non-italic text fragments.
136673
+ * Specifies whether the text in the `TextRange` is set to use the **Double strikethrough** attribute. The possible values are as follows:
136674
+ *
136675
+ * - `true`: All the text has the **Double strikethrough** attribute.
136676
+ *
136677
+ * - `false`: None of the text has the **Double strikethrough** attribute.
136678
+ *
136679
+ * - `null`: Returned if some, but not all, of the text has the **Double strikethrough** attribute.
136680
+ *
136681
+ * @remarks
136682
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
136683
+ * @beta
136684
+ */
136685
+ doubleStrikethrough?: boolean | null;
136686
+ /**
136687
+ * Specifies whether the text in the `TextRange` is set to italic. The possible values are as follows:
136688
+ *
136689
+ * - `true`: All the text is italicized.
136690
+ *
136691
+ * - `false`: None of the text is italicized.
136692
+ *
136693
+ * - `null`: Returned if some, but not all, of the text is italicized.
136462
136694
  *
136463
136695
  * @remarks
136464
136696
  * [Api set: PowerPointApi 1.4]
@@ -136478,6 +136710,62 @@ declare namespace PowerPoint {
136478
136710
  * [Api set: PowerPointApi 1.4]
136479
136711
  */
136480
136712
  size?: number | null;
136713
+ /**
136714
+ * Specifies whether the text in the `TextRange` is set to use the **Small Caps** attribute which makes lowercase letters appear as small uppercase letters. The possible values are as follows:
136715
+ *
136716
+ * - `true`: All the text has the **Small Caps** attribute.
136717
+ *
136718
+ * - `false`: None of the text has the **Small Caps** attribute.
136719
+ *
136720
+ * - `null`: Returned if some, but not all, of the text has the **Small Caps** attribute.
136721
+ *
136722
+ * @remarks
136723
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
136724
+ * @beta
136725
+ */
136726
+ smallCaps?: boolean | null;
136727
+ /**
136728
+ * Specifies whether the text in the `TextRange` is set to use the **Strikethrough** attribute. The possible values are as follows:
136729
+ *
136730
+ * - `true`: All the text has the **Strikethrough** attribute.
136731
+ *
136732
+ * - `false`: None of the text has the **Strikethrough** attribute.
136733
+ *
136734
+ * - `null`: Returned if some, but not all, of the text has the **Strikethrough** attribute.
136735
+ *
136736
+ * @remarks
136737
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
136738
+ * @beta
136739
+ */
136740
+ strikethrough?: boolean | null;
136741
+ /**
136742
+ * Specifies whether the text in the `TextRange` is set to use the **Subscript** attribute. The possible values are as follows:
136743
+ *
136744
+ * - `true`: All the text has the **Subscript** attribute.
136745
+ *
136746
+ * - `false`: None of the text has the **Subscript** attribute.
136747
+ *
136748
+ * - `null`: Returned if some, but not all, of the text has the **Subscript** attribute.
136749
+ *
136750
+ * @remarks
136751
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
136752
+ * @beta
136753
+ */
136754
+ subscript?: boolean | null;
136755
+ /**
136756
+ * Specifies whether the text in the `TextRange` is set to use the **Superscript** attribute. The possible values are as follows:
136757
+ *
136758
+ * - `true`: All the text has the **Superscript** attribute.
136759
+ *
136760
+ * - `false`: None of the text has the **Superscript** attribute.
136761
+ *
136762
+ * - `null`: Returned if some, but not all, of the text has the **Superscript** attribute.
136763
+ *
136764
+ * @remarks
136765
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
136766
+ * @beta
136767
+ */
136768
+ superscript?: boolean | null;
136481
136769
  /**
136482
136770
  * Specifies the type of underline applied to the font. Returns `null` if the `TextRange` contains text fragments with different underline styles. See {@link PowerPoint.ShapeFontUnderlineStyle} for details.
136483
136771
  *
@@ -137159,7 +137447,27 @@ declare namespace PowerPoint {
137159
137447
  */
137160
137448
  $all?: boolean;
137161
137449
  /**
137162
- * Specifies the bold status of font. Returns `null` if the `TextRange` contains both bold and non-bold text fragments.
137450
+ * Specifies whether the text in the `TextRange` is set to use the **All Caps** attribute which makes lowercase letters appear as uppercase letters. The possible values are as follows:
137451
+ *
137452
+ * - `true`: All the text has the **All Caps** attribute.
137453
+ *
137454
+ * - `false`: None of the text has the **All Caps**attribute.
137455
+ *
137456
+ * - `null`: Some, but not all, of the text has the **All Caps** attribute.
137457
+ *
137458
+ * @remarks
137459
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
137460
+ * @beta
137461
+ */
137462
+ allCaps?: boolean;
137463
+ /**
137464
+ * Specifies whether the text in the `TextRange` is set to bold. The possible values are as follows:
137465
+ *
137466
+ * - `true`: All the text is bold.
137467
+ *
137468
+ * - `false`: None of the text is bold.
137469
+ *
137470
+ * - `null`: Returned if some, but not all, of the text is bold.
137163
137471
  *
137164
137472
  * @remarks
137165
137473
  * [Api set: PowerPointApi 1.4]
@@ -137173,7 +137481,27 @@ declare namespace PowerPoint {
137173
137481
  */
137174
137482
  color?: boolean;
137175
137483
  /**
137176
- * Specifies the italic status of font. Returns 'null' if the 'TextRange' contains both italic and non-italic text fragments.
137484
+ * Specifies whether the text in the `TextRange` is set to use the **Double strikethrough** attribute. The possible values are as follows:
137485
+ *
137486
+ * - `true`: All the text has the **Double strikethrough** attribute.
137487
+ *
137488
+ * - `false`: None of the text has the **Double strikethrough** attribute.
137489
+ *
137490
+ * - `null`: Returned if some, but not all, of the text has the **Double strikethrough** attribute.
137491
+ *
137492
+ * @remarks
137493
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
137494
+ * @beta
137495
+ */
137496
+ doubleStrikethrough?: boolean;
137497
+ /**
137498
+ * Specifies whether the text in the `TextRange` is set to italic. The possible values are as follows:
137499
+ *
137500
+ * - `true`: All the text is italicized.
137501
+ *
137502
+ * - `false`: None of the text is italicized.
137503
+ *
137504
+ * - `null`: Returned if some, but not all, of the text is italicized.
137177
137505
  *
137178
137506
  * @remarks
137179
137507
  * [Api set: PowerPointApi 1.4]
@@ -137193,6 +137521,56 @@ declare namespace PowerPoint {
137193
137521
  * [Api set: PowerPointApi 1.4]
137194
137522
  */
137195
137523
  size?: boolean;
137524
+ /**
137525
+ * Specifies whether the text in the `TextRange` is set to use the **Small Caps** attribute which makes lowercase letters appear as small uppercase letters. The possible values are as follows:
137526
+ *
137527
+ * - `true`: All the text has the **Small Caps** attribute.
137528
+ *
137529
+ * - `false`: None of the text has the **Small Caps** attribute.
137530
+ *
137531
+ * - `null`: Returned if some, but not all, of the text has the **Small Caps** attribute.
137532
+ *
137533
+ * @remarks
137534
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
137535
+ * @beta
137536
+ */
137537
+ smallCaps?: boolean;
137538
+ /**
137539
+ * Specifies whether the text in the `TextRange` is set to use the **Strikethrough** attribute. The possible values are as follows:
137540
+ *
137541
+ * - `true`: All the text has the **Strikethrough** attribute.
137542
+ *
137543
+ * - `false`: None of the text has the **Strikethrough** attribute.
137544
+ *
137545
+ * - `null`: Returned if some, but not all, of the text has the **Strikethrough** attribute.
137546
+ *
137547
+ * @remarks
137548
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
137549
+ * @beta
137550
+ */
137551
+ strikethrough?: boolean;
137552
+ /**
137553
+ * Specifies whether the text in the `TextRange` is set to use the **Subscript** attribute. The possible values are as follows:
137554
+ *
137555
+ * - `true`: All the text has the **Subscript** attribute.
137556
+ *
137557
+ * - `false`: None of the text has the **Subscript** attribute.
137558
+ *
137559
+ * - `null`: Returned if some, but not all, of the text has the **Subscript** attribute.
137560
+ *
137561
+ * @remarks
137562
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
137563
+ * @beta
137564
+ */
137565
+ subscript?: boolean;
137566
+ /**
137567
+ * Specifies the superscript status of the font. Returns `null` if the `TextRange` contains both superscript and non-superscript text fragments.
137568
+ *
137569
+ * @remarks
137570
+ * [Api set: PowerPointApi BETA (PREVIEW ONLY)]
137571
+ * @beta
137572
+ */
137573
+ superscript?: boolean;
137196
137574
  /**
137197
137575
  * Specifies the type of underline applied to the font. Returns `null` if the `TextRange` contains text fragments with different underline styles. See {@link PowerPoint.ShapeFontUnderlineStyle} for details.
137198
137576
  *
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.563",
3
+ "version": "1.0.564",
4
4
  "description": "TypeScript definitions for office-js-preview",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
6
6
  "license": "MIT",
@@ -46,7 +46,7 @@
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
48
  "peerDependencies": {},
49
- "typesPublisherContentHash": "8d0c223fdb7d32b1da987bfa4ae5d7aabe1a8fa6ccfde14a6326467d0466e85c",
49
+ "typesPublisherContentHash": "49424e04f3e544871645d4ae3da29c74a05fa178b43601fa3c67d412d932deb5",
50
50
  "typeScriptVersion": "5.0",
51
51
  "nonNpm": true
52
52
  }