@types/office-js-preview 1.0.368 → 1.0.369

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 (https://github.com/OfficeD
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: Thu, 19 Jan 2023 19:32:41 GMT
11
+ * Last updated: Fri, 20 Jan 2023 16:32:37 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
14
14
 
@@ -87539,9 +87539,8 @@ declare namespace Word {
87539
87539
  *
87540
87540
  * @param base64File Required. The base64 encoded content of a .docx file.
87541
87541
  * @param insertLocation Required. The value must be 'Replace', 'Start', or 'End'.
87542
- * @param asNewParagraph Optional. Indicates whether to insert the content as new paragraphs. Default is false which indicates that the base64 content is merged as inline text into the existing paragraph.
87543
87542
  */
87544
- insertFileFromBase64(base64File: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.start | Word.InsertLocation.end | "Replace" | "Start" | "End", asNewParagraph?: boolean): Word.Range;
87543
+ insertFileFromBase64(base64File: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.start | Word.InsertLocation.end | "Replace" | "Start" | "End"): Word.Range;
87545
87544
  /**
87546
87545
  * Inserts HTML at the specified location.
87547
87546
  *
@@ -87570,9 +87569,8 @@ declare namespace Word {
87570
87569
  *
87571
87570
  * @param ooxml Required. The OOXML to be inserted.
87572
87571
  * @param insertLocation Required. The value must be 'Replace', 'Start', or 'End'.
87573
- * @param asNewParagraph Optional. Indicates whether to insert the OOXML as new paragraphs. Default is false which indicates that the OOXML is merged as inline text into the existing paragraph.
87574
87572
  */
87575
- insertOoxml(ooxml: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.start | Word.InsertLocation.end | "Replace" | "Start" | "End", asNewParagraph?: boolean): Word.Range;
87573
+ insertOoxml(ooxml: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.start | Word.InsertLocation.end | "Replace" | "Start" | "End"): Word.Range;
87576
87574
  /**
87577
87575
  * Inserts a paragraph at the specified location.
87578
87576
  *
@@ -88507,9 +88505,8 @@ declare namespace Word {
88507
88505
  *
88508
88506
  * @param base64File Required. The base64 encoded content of a .docx file.
88509
88507
  * @param insertLocation Required. The value must be 'Replace', 'Start', or 'End'. 'Replace' cannot be used with 'RichTextTable' and 'RichTextTableRow' content controls.
88510
- * @param asNewParagraph Optional. Indicates whether to insert the content as new paragraphs. Default is false which indicates that the base64 content is merged as inline text into the existing paragraph.
88511
88508
  */
88512
- insertFileFromBase64(base64File: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.start | Word.InsertLocation.end | "Replace" | "Start" | "End", asNewParagraph?: boolean): Word.Range;
88509
+ insertFileFromBase64(base64File: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.start | Word.InsertLocation.end | "Replace" | "Start" | "End"): Word.Range;
88513
88510
  /**
88514
88511
  * Inserts HTML into the content control at the specified location.
88515
88512
  *
@@ -88538,9 +88535,8 @@ declare namespace Word {
88538
88535
  *
88539
88536
  * @param ooxml Required. The OOXML to be inserted in to the content control.
88540
88537
  * @param insertLocation Required. The value must be 'Replace', 'Start', or 'End'. 'Replace' cannot be used with 'RichTextTable' and 'RichTextTableRow' content controls.
88541
- * @param asNewParagraph Optional. Indicates whether to insert the OOXML as new paragraphs. Default is false which indicates that the OOXML is merged as inline text into the existing paragraph.
88542
88538
  */
88543
- insertOoxml(ooxml: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.start | Word.InsertLocation.end | "Replace" | "Start" | "End", asNewParagraph?: boolean): Word.Range;
88539
+ insertOoxml(ooxml: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.start | Word.InsertLocation.end | "Replace" | "Start" | "End"): Word.Range;
88544
88540
  /**
88545
88541
  * Inserts a paragraph at the specified location.
88546
88542
  *
@@ -88702,6 +88698,16 @@ declare namespace Word {
88702
88698
  * @beta
88703
88699
  */
88704
88700
  readonly onDeleted: OfficeExtension.EventHandlers<Word.ContentControlEventArgs>;
88701
+ /**
88702
+ * Occurs when the content control is entered.
88703
+ *
88704
+ * @remarks
88705
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
88706
+ *
88707
+ * @eventproperty
88708
+ * @beta
88709
+ */
88710
+ readonly onEntered: OfficeExtension.EventHandlers<Word.ContentControlEventArgs>;
88705
88711
  /**
88706
88712
  * Occurs when selection within the content control is changed.
88707
88713
  *
@@ -90460,9 +90466,8 @@ declare namespace Word {
90460
90466
  *
90461
90467
  * @param base64File Required. The base64 encoded content of a .docx file.
90462
90468
  * @param insertLocation Required. The value must be 'Before' or 'After'.
90463
- * @param asNewParagraph Optional. Indicates whether to insert the content as new paragraphs. Default is false which indicates that the base64 content is merged as inline text into the existing paragraph.
90464
90469
  */
90465
- insertFileFromBase64(base64File: string, insertLocation: Word.InsertLocation.before | Word.InsertLocation.after | "Before" | "After", asNewParagraph?: boolean): Word.Range;
90470
+ insertFileFromBase64(base64File: string, insertLocation: Word.InsertLocation.before | Word.InsertLocation.after | "Before" | "After"): Word.Range;
90466
90471
  /**
90467
90472
  * Inserts HTML at the specified location.
90468
90473
  *
@@ -90491,9 +90496,8 @@ declare namespace Word {
90491
90496
  *
90492
90497
  * @param ooxml Required. The OOXML to be inserted.
90493
90498
  * @param insertLocation Required. The value must be 'Before' or 'After'.
90494
- * @param asNewParagraph Optional. Indicates whether to insert the OOXML as new paragraphs. Default is false which indicates that the OOXML is merged as inline text into the existing paragraph.
90495
90499
  */
90496
- insertOoxml(ooxml: string, insertLocation: Word.InsertLocation.before | Word.InsertLocation.after | "Before" | "After", asNewParagraph?: boolean): Word.Range;
90500
+ insertOoxml(ooxml: string, insertLocation: Word.InsertLocation.before | Word.InsertLocation.after | "Before" | "After"): Word.Range;
90497
90501
  /**
90498
90502
  * Inserts a paragraph at the specified location.
90499
90503
  *
@@ -91578,9 +91582,8 @@ declare namespace Word {
91578
91582
  *
91579
91583
  * @param base64File Required. The base64 encoded content of a .docx file.
91580
91584
  * @param insertLocation Required. The value must be 'Replace', 'Start', or 'End'.
91581
- * @param asNewParagraph Optional. Indicates whether to insert the content as new paragraphs. Default is false which indicates that the base64 content is merged as inline text into the existing paragraph.
91582
91585
  */
91583
- insertFileFromBase64(base64File: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.start | Word.InsertLocation.end | "Replace" | "Start" | "End", asNewParagraph?: boolean): Word.Range;
91586
+ insertFileFromBase64(base64File: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.start | Word.InsertLocation.end | "Replace" | "Start" | "End"): Word.Range;
91584
91587
  /**
91585
91588
  * Inserts HTML into the paragraph at the specified location.
91586
91589
  *
@@ -91609,9 +91612,8 @@ declare namespace Word {
91609
91612
  *
91610
91613
  * @param ooxml Required. The OOXML to be inserted in the paragraph.
91611
91614
  * @param insertLocation Required. The value must be 'Replace', 'Start', or 'End'.
91612
- * @param asNewParagraph Optional. Indicates whether to insert the OOXML as new paragraphs. Default is false which indicates that the OOXML is merged as inline text into the existing paragraph.
91613
91615
  */
91614
- insertOoxml(ooxml: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.start | Word.InsertLocation.end | "Replace" | "Start" | "End", asNewParagraph?: boolean): Word.Range;
91616
+ insertOoxml(ooxml: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.start | Word.InsertLocation.end | "Replace" | "Start" | "End"): Word.Range;
91615
91617
  /**
91616
91618
  * Inserts a paragraph at the specified location.
91617
91619
  *
@@ -92208,9 +92210,8 @@ declare namespace Word {
92208
92210
  *
92209
92211
  * @param base64File Required. The base64 encoded content of a .docx file.
92210
92212
  * @param insertLocation Required. The value must be 'Replace', 'Start', 'End', 'Before', or 'After'.
92211
- * @param asNewParagraph Optional. Indicates whether to insert the content as new paragraphs. Default is false which indicates that the base64 content is merged as inline text into the existing paragraph.
92212
92213
  */
92213
- insertFileFromBase64(base64File: string, insertLocation: Word.InsertLocation | "Replace" | "Start" | "End" | "Before" | "After", asNewParagraph?: boolean): Word.Range;
92214
+ insertFileFromBase64(base64File: string, insertLocation: Word.InsertLocation | "Replace" | "Start" | "End" | "Before" | "After"): Word.Range;
92214
92215
  /**
92215
92216
  * Inserts a footnote. The footnote reference is placed after the range.
92216
92217
  *
@@ -92248,9 +92249,8 @@ declare namespace Word {
92248
92249
  *
92249
92250
  * @param ooxml Required. The OOXML to be inserted.
92250
92251
  * @param insertLocation Required. The value must be 'Replace', 'Start', 'End', 'Before', or 'After'.
92251
- * @param asNewParagraph Optional. Indicates whether to insert the OOXML as new paragraphs. Default is false which indicates that the OOXML is merged as inline text into the existing paragraph.
92252
92252
  */
92253
- insertOoxml(ooxml: string, insertLocation: Word.InsertLocation | "Replace" | "Start" | "End" | "Before" | "After", asNewParagraph?: boolean): Word.Range;
92253
+ insertOoxml(ooxml: string, insertLocation: Word.InsertLocation | "Replace" | "Start" | "End" | "Before" | "After"): Word.Range;
92254
92254
  /**
92255
92255
  * Inserts a paragraph at the specified location.
92256
92256
  *
@@ -94356,6 +94356,20 @@ declare namespace Word {
94356
94356
  * @beta
94357
94357
  */
94358
94358
  commentAdded = "CommentAdded",
94359
+ /**
94360
+ * Represents that a content control has been entered.
94361
+ * @remarks
94362
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
94363
+ * @beta
94364
+ */
94365
+ contentControlEntered = "ContentControlEntered",
94366
+ /**
94367
+ * Represents that a content control has been exited.
94368
+ * @remarks
94369
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
94370
+ * @beta
94371
+ */
94372
+ contentControlExited = "ContentControlExited",
94359
94373
  }
94360
94374
  /**
94361
94375
  * An enum that specifies an event's source. It can be local or remote (through coauthoring).
@@ -94400,6 +94414,22 @@ declare namespace Word {
94400
94414
  * @beta
94401
94415
  */
94402
94416
  eventType: Word.EventType | "ContentControlDeleted" | "ContentControlSelectionChanged" | "ContentControlDataChanged" | "ContentControlAdded" | "CommentDeleted" | "CommentSelected" | "CommentDeselected" | "CommentChanged" | "CommentAdded";
94417
+ /**
94418
+ * Gets the content control IDs.
94419
+ *
94420
+ * @remarks
94421
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
94422
+ * @beta
94423
+ */
94424
+ ids: number[];
94425
+ /**
94426
+ * The source of the event. It can be local or remote (through coauthoring).
94427
+ *
94428
+ * @remarks
94429
+ * [Api set: WordApiOnline BETA (PREVIEW ONLY)]
94430
+ * @beta
94431
+ */
94432
+ source: Word.EventSource | "Local" | "Remote";
94403
94433
  }
94404
94434
  /**
94405
94435
  * Provides information about the comments that raised the comment event.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js-preview",
3
- "version": "1.0.368",
3
+ "version": "1.0.369",
4
4
  "description": "TypeScript definitions for Office.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
6
6
  "license": "MIT",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "2a6164b196b7e896b0a2a00b9fabee7af4ef32d0a064d74a9d8e472fd747cfda",
48
+ "typesPublisherContentHash": "4ca76ebc9fbfcb70e138baba73d02ddbaa1c785051331b340f80f6f63045039c",
49
49
  "typeScriptVersion": "4.2"
50
50
  }