@nutrient-sdk/viewer 1.9.0-nightly.20251107 → 1.9.0-nightly.20251108

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 (53) hide show
  1. package/dist/index.d.ts +356 -41
  2. package/dist/nutrient-viewer-lib/{chunk-848-a34c10c48a0090df.js → chunk-848-bcb8793282ed5983.js} +1 -1
  3. package/dist/nutrient-viewer-lib/{chunk-core-worker-5c1972d7d282f971.js → chunk-core-worker-bcc86f42bf5ea5cd.js} +2 -2
  4. package/dist/nutrient-viewer-lib/{chunk-gdpicture-c0e61339291d8c44.js → chunk-gdpicture-acd0811be11ef2f9.js} +1 -1
  5. package/dist/nutrient-viewer-lib/{chunk-gdpicture-worker-514e96ad09cca11a.js → chunk-gdpicture-worker-925435696a91aaa5.js} +2 -2
  6. package/dist/nutrient-viewer-lib/{chunk-lazy-sha-5c4b4d8f132b7426.js → chunk-lazy-sha-1942fa67db1dcbdd.js} +1 -1
  7. package/dist/nutrient-viewer-lib/{chunk-locale-ar-0a5ed83b630c3d03.js → chunk-locale-ar-6fd8ac5e5f916cb9.js} +1 -1
  8. package/dist/nutrient-viewer-lib/{chunk-locale-cs-9cab24f5560cddb4.js → chunk-locale-cs-18080940cf8d699a.js} +1 -1
  9. package/dist/nutrient-viewer-lib/{chunk-locale-cy-3c5ec430c567cde5.js → chunk-locale-cy-a03b063176f3402b.js} +1 -1
  10. package/dist/nutrient-viewer-lib/{chunk-locale-da-cce66bd22f035305.js → chunk-locale-da-a9f10ee95993c4b7.js} +1 -1
  11. package/dist/nutrient-viewer-lib/{chunk-locale-de-f597e9ad9876f7a7.js → chunk-locale-de-a5fb51d585c43cd8.js} +1 -1
  12. package/dist/nutrient-viewer-lib/{chunk-locale-el-8cd34e0d15c37c20.js → chunk-locale-el-fe89138ea631d0e1.js} +1 -1
  13. package/dist/nutrient-viewer-lib/{chunk-locale-en-GB-38c38ed45a488362.js → chunk-locale-en-GB-a8852226b45f9acd.js} +1 -1
  14. package/dist/nutrient-viewer-lib/{chunk-locale-es-13363090180711ef.js → chunk-locale-es-44c61a38ec254be3.js} +1 -1
  15. package/dist/nutrient-viewer-lib/{chunk-locale-fi-8d942ee518c31a4d.js → chunk-locale-fi-74c079ac0b7b0941.js} +1 -1
  16. package/dist/nutrient-viewer-lib/{chunk-locale-fr-d60ab654e91176d2.js → chunk-locale-fr-763f61dcd7d84a34.js} +1 -1
  17. package/dist/nutrient-viewer-lib/{chunk-locale-fr-CA-e2169cc2d679e9a7.js → chunk-locale-fr-CA-ed80ded73afbd371.js} +1 -1
  18. package/dist/nutrient-viewer-lib/{chunk-locale-he-a0579f8babff1437.js → chunk-locale-he-f1cdf8d052fb870f.js} +1 -1
  19. package/dist/nutrient-viewer-lib/{chunk-locale-hr-53d157af65804a27.js → chunk-locale-hr-0a020cf3aae1ecab.js} +1 -1
  20. package/dist/nutrient-viewer-lib/{chunk-locale-id-6e8de3f66653d63e.js → chunk-locale-id-1cd43d47181d10e0.js} +1 -1
  21. package/dist/nutrient-viewer-lib/{chunk-locale-it-eb03d43dd4f38972.js → chunk-locale-it-b664c57fc54ae4e2.js} +1 -1
  22. package/dist/nutrient-viewer-lib/{chunk-locale-ja-82391c81216fb6e0.js → chunk-locale-ja-93cc7e7bfe81209b.js} +1 -1
  23. package/dist/nutrient-viewer-lib/{chunk-locale-ko-b14ae5d042c3800c.js → chunk-locale-ko-2cf7391b08c933c8.js} +1 -1
  24. package/dist/nutrient-viewer-lib/{chunk-locale-ms-9cb420136b825908.js → chunk-locale-ms-e095947f1a6e3945.js} +1 -1
  25. package/dist/nutrient-viewer-lib/{chunk-locale-nb-NO-a608a9a66e1fbfc3.js → chunk-locale-nb-NO-626903784b66dadd.js} +1 -1
  26. package/dist/nutrient-viewer-lib/{chunk-locale-nl-74e8954858482208.js → chunk-locale-nl-b82fd3d077c15505.js} +1 -1
  27. package/dist/nutrient-viewer-lib/{chunk-locale-pl-d821bcdc04001da2.js → chunk-locale-pl-300797fedd903a95.js} +1 -1
  28. package/dist/nutrient-viewer-lib/{chunk-locale-pt-7831de01ba7ff3ce.js → chunk-locale-pt-225751f113a5aa9e.js} +1 -1
  29. package/dist/nutrient-viewer-lib/{chunk-locale-pt-PT-83b57ce8eedf9bff.js → chunk-locale-pt-PT-0ebaa3ddebbed4c0.js} +1 -1
  30. package/dist/nutrient-viewer-lib/{chunk-locale-ru-139129f71466163d.js → chunk-locale-ru-30f64094c6510969.js} +1 -1
  31. package/dist/nutrient-viewer-lib/{chunk-locale-sk-bf88874b3cf7fb2a.js → chunk-locale-sk-9207a33a1c1a5a9d.js} +1 -1
  32. package/dist/nutrient-viewer-lib/{chunk-locale-sl-2a0d5699dd89d5bc.js → chunk-locale-sl-e042c34e26aefbab.js} +1 -1
  33. package/dist/nutrient-viewer-lib/{chunk-locale-sv-62a40e8564b9c468.js → chunk-locale-sv-b764c61ba3fad2df.js} +1 -1
  34. package/dist/nutrient-viewer-lib/{chunk-locale-th-56f11012ccdc0326.js → chunk-locale-th-7e0b306fffe39fa9.js} +1 -1
  35. package/dist/nutrient-viewer-lib/{chunk-locale-tr-cdb6648cc927404f.js → chunk-locale-tr-75cf26e2187727e7.js} +1 -1
  36. package/dist/nutrient-viewer-lib/{chunk-locale-uk-9e70b56768ad7c58.js → chunk-locale-uk-1e000c3777396f13.js} +1 -1
  37. package/dist/nutrient-viewer-lib/{chunk-locale-zh-Hans-ed5861928d2ea384.js → chunk-locale-zh-Hans-f8b7730d17b40be2.js} +1 -1
  38. package/dist/nutrient-viewer-lib/{chunk-locale-zh-Hant-a7b37e0650c81bcc.js → chunk-locale-zh-Hant-5c701ab45afac43e.js} +1 -1
  39. package/dist/nutrient-viewer-lib/{chunk-offscreen-renderer-worker-a92c2520a0fceaf5.js → chunk-offscreen-renderer-worker-e2514d150616da5a.js} +2 -2
  40. package/dist/nutrient-viewer-lib/{chunk-server-5ebd420e0a0f5e39.js → chunk-server-83cb5a820cfbb045.js} +2 -2
  41. package/dist/nutrient-viewer-lib/{chunk-server-instant-37852dc2142957c6.js → chunk-server-instant-c07671374fb9bee9.js} +1 -1
  42. package/dist/nutrient-viewer-lib/{chunk-server-rest-38d323eff569012a.js → chunk-server-rest-2bc4ebb99d3a216c.js} +1 -1
  43. package/dist/nutrient-viewer-lib/{chunk-standalone-086158ae673022bc.js → chunk-standalone-2de194e1cdea9d6e.js} +1 -1
  44. package/dist/nutrient-viewer-lib/{chunk-standalone-server-d15c854ea384fcb3.js → chunk-standalone-server-fc5f81af99a2faf6.js} +1 -1
  45. package/dist/nutrient-viewer-lib/core-worker.js +2 -2
  46. package/dist/nutrient-viewer-lib/dark-402cc98d3d69bff8.css +1 -1
  47. package/dist/nutrient-viewer-lib/gdpicture-worker.js +1 -1
  48. package/dist/nutrient-viewer-lib/{nutrient-viewer-1.9.0-886d2f2.css → nutrient-viewer-1.9.0-97b5ceb.css} +1 -1
  49. package/dist/nutrient-viewer-lib/{nutrient-viewer-18a2fe5832e5d934.wasm → nutrient-viewer-505c0dd3b7233e46.wasm} +0 -0
  50. package/dist/nutrient-viewer-lib/nutrient-viewer-52d8e5da5c65466a.wasm.js +1 -1
  51. package/dist/nutrient-viewer-lib/offscreen-render-worker.js +1 -1
  52. package/dist/nutrient-viewer.js +2 -2
  53. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,5 +1,3 @@
1
-
2
-
3
1
  /**
4
2
  * This class should be used to create custom Immutable Record. It will overwrite the default
5
3
  * `Immutable#equals()` method to include the class name. if we don't do this, two different classes
@@ -384,7 +382,7 @@ declare const allowedTextComparisonInnerToolbarItem: string[];
384
382
 
385
383
  declare const allowedTextComparisonToolbarItem: string[];
386
384
 
387
- declare const allowedToolbarTypes: ("text" | "search" | "link" | "ellipse" | "image" | "line" | "polygon" | "polyline" | "spacer" | "note" | "comment" | "zoom-in" | "zoom-out" | "callout" | "redo" | "signature" | "undo" | "print" | "ink" | "debug" | "arrow" | "highlighter" | "custom" | "pager" | "pan" | "measure" | "rectangle" | "stamp" | "cloudy-rectangle" | "dashed-rectangle" | "cloudy-ellipse" | "dashed-ellipse" | "cloudy-polygon" | "dashed-polygon" | "text-highlighter" | "multi-annotations-selection" | "ink-eraser" | "form-creator" | "redact-rectangle" | "redact-text-highlighter" | "document-crop" | "document-editor" | "document-comparison" | "export-pdf" | "content-editor" | "ai-assistant" | "linearized-download-indicator" | "pager-expanded" | "sidebar-thumbnails" | "sidebar-document-outline" | "sidebar-layers" | "sidebar-annotations" | "sidebar-bookmarks" | "sidebar-signatures" | "sidebar-attachments" | "annotate" | "zoom-mode" | "marquee-zoom" | "layout-config" | "responsive-group")[];
385
+ declare const allowedToolbarTypes: ((typeof extraToolbarTypes)[number] | (typeof defaultToolbarTypes)[number])[];
388
386
 
389
387
  /**
390
388
  * @class
@@ -596,6 +594,34 @@ export declare class Annotation<T extends AnnotationProperties = AnnotationPrope
596
594
  constructor(options?: Partial<T>);
597
595
  }
598
596
 
597
+ declare namespace Annotation_2 {
598
+ export {
599
+ Annotation,
600
+ HighlightAnnotation,
601
+ ImageAnnotation,
602
+ InkAnnotation,
603
+ ShapeAnnotation,
604
+ LineAnnotation,
605
+ RectangleAnnotation,
606
+ EllipseAnnotation,
607
+ PolygonAnnotation,
608
+ PolylineAnnotation,
609
+ LinkAnnotation,
610
+ NoteAnnotation,
611
+ SquiggleAnnotation,
612
+ StampAnnotation,
613
+ StrikeOutAnnotation,
614
+ TextAnnotation,
615
+ TextMarkupAnnotation,
616
+ UnderlineAnnotation,
617
+ UnknownAnnotation,
618
+ WidgetAnnotation,
619
+ CommentMarkerAnnotation,
620
+ RedactionAnnotation,
621
+ MediaAnnotation };
622
+
623
+ }
624
+
599
625
  /** @inline */
600
626
  declare type AnnotationAdditionalActionsType = {
601
627
  onPointerEnter?: Action;
@@ -1013,7 +1039,7 @@ declare function AnnotationSelectionMixin<T extends Class<BaseMixin>>(Base: T):
1013
1039
  */
1014
1040
  getAnnotationsGroups(): Map_2<string, {
1015
1041
  groupKey: string;
1016
- annotationsIds: Set_2<string>;
1042
+ annotationsIds: Set_2<ID>;
1017
1043
  }> | null;
1018
1044
  /**
1019
1045
  * If there are any annotations groups, this function will return all annotations groups.
@@ -1046,9 +1072,9 @@ declare class AnnotationSerializer {
1046
1072
  toJSON(): Omit<BaseAnnotationJSON, 'type'>;
1047
1073
  static fromJSON(id: ID | null, json: IAnnotationJSON, options?: ICollaboratorPermissionsOptions): {
1048
1074
  group?: string | null | undefined;
1049
- canSetGroup?: boolean | undefined;
1050
- isEditable?: boolean | undefined;
1051
- isDeletable?: boolean | undefined;
1075
+ canSetGroup?: boolean;
1076
+ isEditable?: boolean;
1077
+ isDeletable?: boolean;
1052
1078
  blendMode?: IBlendMode | undefined;
1053
1079
  id: string | null;
1054
1080
  name: string | null;
@@ -1949,9 +1975,9 @@ declare abstract class BaseTextMarkupSerializer extends AnnotationSerializer {
1949
1975
  static fromJSON(id: ID | null, json: Omit<BaseTextMarkupAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): {
1950
1976
  rects: List<Rect>;
1951
1977
  group?: string | null | undefined;
1952
- canSetGroup?: boolean | undefined;
1953
- isEditable?: boolean | undefined;
1954
- isDeletable?: boolean | undefined;
1978
+ canSetGroup?: boolean;
1979
+ isEditable?: boolean;
1980
+ isDeletable?: boolean;
1955
1981
  blendMode?: IBlendMode | undefined;
1956
1982
  id: string | null;
1957
1983
  name: string | null;
@@ -4351,6 +4377,8 @@ export declare type ColorPreset = {
4351
4377
  };
4352
4378
  };
4353
4379
 
4380
+ declare type ColorPreset_2 = ColorPreset;
4381
+
4354
4382
  /**
4355
4383
  * @class
4356
4384
  *
@@ -5407,29 +5435,312 @@ declare const defaultAnnotationPresets: {
5407
5435
  [key: string]: Record<string, unknown>;
5408
5436
  };
5409
5437
 
5410
- declare const defaultAnnotationsSidebarContent: readonly [EllipseAnnotation, HighlightAnnotation, ImageAnnotation, InkAnnotation, LineAnnotation, NoteAnnotation, PolygonAnnotation, PolylineAnnotation, RectangleAnnotation, SquiggleAnnotation, StampAnnotation, StrikeOutAnnotation, TextAnnotation, UnderlineAnnotation, WidgetAnnotation];
5438
+ declare const defaultAnnotationsSidebarContent: typeof defaultAnnotationsSidebarContent_2;
5439
+
5440
+ /**
5441
+ * Returns a deep copy of an array containing the default annotation
5442
+ * classes that are included in the annotations sidebar UI.
5443
+ *
5444
+ * These members are:
5445
+ * 1. {@link NutrientViewer.Annotations.EllipseAnnotation}
5446
+ * 2. {@link NutrientViewer.Annotations.HighlightAnnotation}
5447
+ * 3. {@link NutrientViewer.Annotations.ImageAnnotation}
5448
+ * 4. {@link NutrientViewer.Annotations.InkAnnotation}
5449
+ * 5. {@link NutrientViewer.Annotations.LineAnnotation}
5450
+ * 6. {@link NutrientViewer.Annotations.NoteAnnotation}
5451
+ * 7. {@link NutrientViewer.Annotations.PolygonAnnotation}
5452
+ * 8. {@link NutrientViewer.Annotations.PolylineAnnotation}
5453
+ * 9. {@link NutrientViewer.Annotations.RectangleAnnotation}
5454
+ * 10. {@link NutrientViewer.Annotations.SquiggleAnnotation}
5455
+ * 11. {@link NutrientViewer.Annotations.StampAnnotation}
5456
+ * 12. {@link NutrientViewer.Annotations.StrikeOutAnnotation}
5457
+ * 13. {@link NutrientViewer.Annotations.TextAnnotation}
5458
+ * 14. {@link NutrientViewer.Annotations.UnderlineAnnotation}
5459
+ * 15. {@link NutrientViewer.Annotations.WidgetAnnotation}
5460
+ *
5461
+ * @see {@link ViewState#sidebarOptions}
5462
+ * @see {@link AnnotationsSidebarOptions}
5463
+ * @see {@link SidebarOptions}
5464
+ */
5465
+ declare const defaultAnnotationsSidebarContent_2: readonly [typeof Annotation_2.EllipseAnnotation, typeof Annotation_2.HighlightAnnotation, typeof Annotation_2.ImageAnnotation, typeof Annotation_2.InkAnnotation, typeof Annotation_2.LineAnnotation, typeof Annotation_2.NoteAnnotation, typeof Annotation_2.PolygonAnnotation, typeof Annotation_2.PolylineAnnotation, typeof Annotation_2.RectangleAnnotation, typeof Annotation_2.SquiggleAnnotation, typeof Annotation_2.StampAnnotation, typeof Annotation_2.StrikeOutAnnotation, typeof Annotation_2.TextAnnotation, typeof Annotation_2.UnderlineAnnotation, typeof Annotation_2.WidgetAnnotation];
5466
+
5467
+ declare const defaultDocumentEditorFooterItems: typeof defaultDocumentEditorFooterItems_2;
5411
5468
 
5412
- declare const defaultDocumentEditorFooterItems: {
5469
+ /**
5470
+ * Returns a deep copy of an array containing the default {@link NutrientViewer.DocumentEditorFooterItem|document editor footer items}
5471
+ * ordered by {@link NutrientViewer.DocumentEditorFooterItem#type} in the following way:
5472
+ *
5473
+ * 1. `cancel`
5474
+ * 2. `selected-pages`
5475
+ * 3. `spacer`
5476
+ * 4. `loading-indicator`
5477
+ * 5. `save-as`
5478
+ * 6. `save`
5479
+ *
5480
+ * The `loading-indicator` is only visible when the changes are being committed and `selected-pages` is only visible when you have selected multiple pages.
5481
+ *
5482
+ * @see {@link DocumentEditorFooterItem}
5483
+ */
5484
+ declare const defaultDocumentEditorFooterItems_2: {
5413
5485
  type: BuiltInDocumentEditorFooterItem;
5414
5486
  }[];
5415
5487
 
5416
- declare const defaultDocumentEditorToolbarItems: {
5488
+ declare const defaultDocumentEditorToolbarItems: typeof defaultDocumentEditorToolbarItems_2;
5489
+
5490
+ /**
5491
+ * Returns a deep copy of an array containing the default {@link NutrientViewer.DocumentEditorToolbarItem|document editor toolbar items}
5492
+ * ordered by {@link NutrientViewer.DocumentEditorToolbarItem#type} in the following way:
5493
+ *
5494
+ * 1. `add`
5495
+ * 2. `remove`
5496
+ * 3. `duplicate`
5497
+ * 4. `rotate-left`
5498
+ * 5. `rotate-right`
5499
+ * 6. `move`
5500
+ * 7. `move-left`
5501
+ * 8. `move-right`
5502
+ * 9. `import-document`
5503
+ * 10. `extract-pages`
5504
+ * 11. `spacer`
5505
+ * 12. `undo`
5506
+ * 13. `redo`
5507
+ * 14. `select-all`
5508
+ * 15. `select-none`
5509
+ * 16. `zoom-out`
5510
+ * 17. `zoom-in`
5511
+ */
5512
+ declare const defaultDocumentEditorToolbarItems_2: {
5417
5513
  type: BuiltInDocumentEditorToolbarItemType;
5418
5514
  }[];
5419
5515
 
5420
5516
  declare const defaultElectronicSignatureColorPresets: ColorPreset[];
5421
5517
 
5422
- declare const defaultStampAnnotationTemplates: StampAnnotation[];
5423
-
5424
- declare const defaultTextComparisonInnerToolbarItems: {
5518
+ declare const defaultStampAnnotationTemplates: typeof defaultStampAnnotationTemplates_2;
5519
+
5520
+ /**
5521
+ * Returns a deep copy of an array containing the default {@link NutrientViewer.stampAnnotationTemplates | stamp
5522
+ * and image annotation templates}, which are {@link NutrientViewer.Annotations.StampAnnotation | stamp annotation instances}.
5523
+ * However, {@link NutrientViewer.Annotations.ImageAnnotation | image annotation} templates can also be added to
5524
+ * this `Array` using {@link NutrientViewer.setStampAnnotationTemplates}.
5525
+ * Used by the stamp picker UI.
5526
+ * Initially it contains only the following {@link NutrientViewer.Annotations.StampAnnotation | stamp annotations}:
5527
+ *
5528
+ * 1. `Approved`
5529
+ * 2. `NotApproved`
5530
+ * 3. `Draft`
5531
+ * 4. `Final`
5532
+ * 5. `Completed`
5533
+ * 6. `Confidential`
5534
+ * 7. `ForPublicRelease`
5535
+ * 8. `NotForPublicRelease`
5536
+ * 9. `ForComment`
5537
+ * 10. `Void`
5538
+ * 11. `PreliminaryResults`
5539
+ * 12. `InformationOnly`
5540
+ * 13. `Rejected`
5541
+ * 14. `Accepted`
5542
+ * 15. `InitialHere`
5543
+ * 16. `SignHere`
5544
+ * 17. `Witness`
5545
+ * 18. `AsIs`
5546
+ * 19. `Departmental`
5547
+ * 20. `Experimental`
5548
+ * 21. `Expired`
5549
+ * 22. `Sold`
5550
+ * 23. `TopSecret`
5551
+ * 24. `Revised`
5552
+ * 25. `RejectedWithText`
5553
+ */
5554
+ declare const defaultStampAnnotationTemplates_2: StampAnnotation[];
5555
+
5556
+ declare const defaultTextComparisonInnerToolbarItems: typeof defaultTextComparisonInnerToolbarItems_2;
5557
+
5558
+ /**
5559
+ * Returns a deep copy of an array containing the default {@link TextComparisonInnerToolbarItem | text comparison instance toolbar items}
5560
+ * ordered by {@link TextComparisonInnerToolbarItem#type} in the following way:
5561
+ *
5562
+ * 1. `pager`
5563
+ * 2. `pan`
5564
+ * 3. `zoom-out`
5565
+ * 4. `zoom-in`
5566
+ * 5. `spacer`
5567
+ *
5568
+ * Please keep in mind that under some circumstances some items may be removed from the final list.
5569
+ */
5570
+ declare const defaultTextComparisonInnerToolbarItems_2: {
5425
5571
  type: string;
5426
5572
  }[];
5427
5573
 
5428
- declare const defaultTextComparisonToolbarItems: {
5574
+ declare const defaultTextComparisonToolbarItems: typeof defaultTextComparisonToolbarItems_2;
5575
+
5576
+ /**
5577
+ * Returns a deep copy of an array containing the default {@link NutrientViewer.TextComparisonToolbarItem|text comparison toolbar items}
5578
+ * ordered by {@link NutrientViewer.TextComparisonToolbarItem#type} in the following way:
5579
+ *
5580
+ * 1. `comparison-changes`
5581
+ * 2. `prev-change`
5582
+ * 3. `next-change`
5583
+ * 4. `scroll-lock`
5584
+ *
5585
+ * Please keep in mind that under some circumstances some items may be removed from the final list.
5586
+ */
5587
+ declare const defaultTextComparisonToolbarItems_2: {
5429
5588
  type: string;
5430
5589
  }[];
5431
5590
 
5432
- declare const defaultToolbarItems: readonly [{
5591
+ declare const defaultToolbarItems: typeof defaultToolbarItems_2;
5592
+
5593
+ /**
5594
+ * Returns a deep copy of an array containing the default {@link NutrientViewer.ToolbarItem|toolbar items}
5595
+ * ordered by {@link NutrientViewer.ToolbarItem#type} in the following way:
5596
+ *
5597
+ * 1. `sidebar-thumbnails`
5598
+ * 2. `sidebar-document-outline`
5599
+ * 3. `sidebar-annotations`
5600
+ * 4. `sidebar-bookmarks`
5601
+ * 5. `sidebar-signatures`
5602
+ * 6. `sidebar-attachments`
5603
+ * 7. `sidebar-layers`
5604
+ * 8. `pager`
5605
+ * 9. `pan`
5606
+ * 10. `zoom-out`
5607
+ * 11. `zoom-in`
5608
+ * 12. `zoom-mode`
5609
+ * 13. `spacer`
5610
+ * 14. `annotate`
5611
+ * 15. `ink`
5612
+ * 16. `highlighter`
5613
+ * 17. `text-highlighter`
5614
+ * 18. `ink-eraser`
5615
+ * 19. `signature`
5616
+ * 20. `image`
5617
+ * 21. `stamp`
5618
+ * 22. `note`
5619
+ * 23. `text`
5620
+ * 24. `line`
5621
+ * 25. `arrow`
5622
+ * 26. `rectangle`
5623
+ * 27. `cloudy-rectangle`
5624
+ * 28. `dashed-rectangle`
5625
+ * 29. `ellipse`
5626
+ * 30. `cloudy-ellipse`
5627
+ * 31. `dashed-ellipse`
5628
+ * 32. `polygon`
5629
+ * 33. `cloudy-polygon`
5630
+ * 34. `dashed-polygon`
5631
+ * 35. `polyline`
5632
+ * 36. `print`
5633
+ * 37. `document-editor`
5634
+ * 38. `document-crop`
5635
+ * 39. `search`
5636
+ * 40. `export-pdf`
5637
+ * 41. `debug`
5638
+ * 42. `content-editor`
5639
+ * 43. `link`
5640
+ * 44. `multi-annotations-selection`
5641
+ * 45. `callout`
5642
+ *
5643
+ * Please keep in mind that under some circumstances some items may be removed from the final list.
5644
+ *
5645
+ * Items hidden for touch devices:
5646
+ *
5647
+ * * `pan`
5648
+ *
5649
+ * Items hidden for touch devices when the media query `(max-width: 992px)` for medium devices matches:
5650
+ *
5651
+ * * `zoom-out`
5652
+ * * `zoom-in`
5653
+ * * `zoom-mode`
5654
+ *
5655
+ * Please keep in mind that the media query is only added for touch devices.
5656
+ * You can change this behavior by defining your own `mediaQueries` and replacing the original item.
5657
+ * To learn more about how to do so please refer to [our guide](https://www.nutrient.io/guides/web/current/customizing-the-interface/configure-the-toolbar/#toc_customizing-built-in-items).
5658
+ *
5659
+ * Items hidden for small screens `(max-width: 992px)`
5660
+ *
5661
+ * * `text`
5662
+ * * `callout`
5663
+ * * `ink`
5664
+ * * `highlighter`
5665
+ * * `text-highlighter`
5666
+ * * `ink-eraser`
5667
+ * * `line`
5668
+ * * `arrow`
5669
+ * * `rectangle`
5670
+ * * `cloudy-rectangle`
5671
+ * * `dashed-rectangle`
5672
+ * * `ellipse`
5673
+ * * `cloudy-ellipse`
5674
+ * * `dashed-ellipse`
5675
+ * * `polygon`
5676
+ * * `cloudy-polygon`
5677
+ * * `dashed-polygon`
5678
+ * * `polyline`
5679
+ * * `signature`
5680
+ * * `image`
5681
+ * * `stamp`
5682
+ * * `note`
5683
+ * * `undo`
5684
+ * * `redo`
5685
+ * * `link`
5686
+ *
5687
+ * Items shown on small screens `(max-width: 992px)`
5688
+ *
5689
+ * * `annotate`
5690
+ *
5691
+ * Items hidden when in {@link NutrientViewer.ViewState#readOnly| read-only mode}:
5692
+ *
5693
+ * * `text`
5694
+ * * `ink`
5695
+ * * `highlighter`
5696
+ * * `text-highlighter`
5697
+ * * `ink-eraser`
5698
+ * * `line`
5699
+ * * `arrow`
5700
+ * * `rectangle`
5701
+ * * `cloudy-rectangle`
5702
+ * * `dashed-rectangle`
5703
+ * * `ellipse`
5704
+ * * `cloudy-ellipse`
5705
+ * * `dashed-ellipse`
5706
+ * * `polygon`
5707
+ * * `cloudy-polygon`
5708
+ * * `dashed-polygon`
5709
+ * * `polyline`
5710
+ * * `signature`
5711
+ * * `image`
5712
+ * * `stamp`
5713
+ * * `note`
5714
+ * * `undo`
5715
+ * * `redo`
5716
+ * * `link`
5717
+ * * `multi-annotations-selection`
5718
+ *
5719
+ * Hidden when not in debug mode (See {@link https://www.nutrient.io/guides/web/troubleshoot/#bug-reports|this guide article}):
5720
+ *
5721
+ * * `debug`
5722
+ *
5723
+ * Hidden by default and only available when explicitly set via the API:
5724
+ *
5725
+ * * `layout-config`
5726
+ * * `marquee-zoom`
5727
+ * * `comment`
5728
+ * * `redact-text-highlighter`
5729
+ * * `redact-rectangle`
5730
+ * * `cloudy-rectangle`
5731
+ * * `dashed-rectangle`
5732
+ * * `cloudy-ellipse`
5733
+ * * `dashed-ellipse`
5734
+ * * `dashed-polygon`
5735
+ * * `undo`
5736
+ * * `redo`
5737
+ * * `document-comparison`
5738
+ * * `form-creator`
5739
+ * * `content-editor`
5740
+ * * `measure`
5741
+ * * `pager-expanded`: This is the expanded version of the pager which is visible by default on larger screens. In case you want to always show it, you should replace `pager` with `pager-expanded`.
5742
+ */
5743
+ declare const defaultToolbarItems_2: readonly [{
5433
5744
  readonly type: "sidebar-thumbnails";
5434
5745
  }, {
5435
5746
  readonly type: "sidebar-document-outline";
@@ -5511,6 +5822,8 @@ declare const defaultToolbarItems: readonly [{
5511
5822
  readonly type: "debug";
5512
5823
  }];
5513
5824
 
5825
+ declare const defaultToolbarTypes: ("text" | "search" | "link" | "ellipse" | "image" | "line" | "polygon" | "polyline" | "spacer" | "note" | "zoom-in" | "zoom-out" | "callout" | "signature" | "print" | "ink" | "debug" | "arrow" | "highlighter" | "pager" | "pan" | "rectangle" | "stamp" | "cloudy-polygon" | "text-highlighter" | "multi-annotations-selection" | "ink-eraser" | "document-crop" | "document-editor" | "export-pdf" | "linearized-download-indicator" | "sidebar-thumbnails" | "sidebar-document-outline" | "sidebar-layers" | "sidebar-annotations" | "sidebar-bookmarks" | "sidebar-signatures" | "sidebar-attachments" | "annotate" | "zoom-mode")[];
5826
+
5514
5827
  /**
5515
5828
  * Describes the configuration used to populate a document template.
5516
5829
  *
@@ -9927,6 +10240,8 @@ export declare type ExportPDFFlags = {
9927
10240
  officeConversionSettings?: OfficeConversionSettings;
9928
10241
  };
9929
10242
 
10243
+ declare const extraToolbarTypes: readonly ["layout-config", "marquee-zoom", "custom", "responsive-group", "comment", "redact-text-highlighter", "redact-rectangle", "cloudy-rectangle", "dashed-rectangle", "cloudy-ellipse", "dashed-ellipse", "dashed-polygon", "document-comparison", "measure", "undo", "redo", "form-creator", "content-editor", "ai-assistant", "pager-expanded"];
10244
+
9930
10245
  /**
9931
10246
  * @class
9932
10247
  * This record is used to persist information related to custom fonts on Standalone deployments.
@@ -10287,10 +10602,10 @@ export declare class FormFieldValue extends FormFieldValue_base {
10287
10602
  }
10288
10603
 
10289
10604
  declare const FormFieldValue_base: Immutable.Record.Factory<{
10290
- name?: string | undefined;
10291
- value?: string | number | Immutable.List<string> | null | undefined;
10292
- optionIndexes?: Immutable.List<number> | undefined;
10293
- isFitting?: boolean | undefined;
10605
+ name?: string;
10606
+ value?: string | Immutable.List<string> | number | null;
10607
+ optionIndexes?: Immutable.List<number>;
10608
+ isFitting?: boolean;
10294
10609
  }>;
10295
10610
 
10296
10611
  /**
@@ -11471,7 +11786,7 @@ declare interface INamedAction extends ActionProperties {
11471
11786
  action?: string;
11472
11787
  }
11473
11788
 
11474
- declare const InheritableImmutableRecord: new <T extends Record<string, unknown>>(values?: Partial<T> | Iterable<[string, unknown]> | undefined) => __dangerousImmutableRecordFactory<T>;
11789
+ declare const InheritableImmutableRecord: new <T extends Record<string, unknown>>(values?: Partial<T> | Iterable<[string, unknown]>) => __dangerousImmutableRecordFactory<T>;
11475
11790
 
11476
11791
  /**
11477
11792
  * @class
@@ -11591,8 +11906,8 @@ declare class InkAnnotationSerializer extends AnnotationSerializer {
11591
11906
  toJSON(): Serializers.InkAnnotationJSON;
11592
11907
  static fromJSON(id: ID | null, json: Omit<Serializers.InkAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): InkAnnotation;
11593
11908
  _linesToJSON(): {
11594
- points: [number, number][][];
11595
- intensities: number[][];
11909
+ points: Array<Array<[number, number]>>;
11910
+ intensities: Array<Array<number>>;
11596
11911
  };
11597
11912
  static _JSONToLines(linesJSON: {
11598
11913
  points: Array<Array<[number, number]>>;
@@ -15210,7 +15525,7 @@ declare function MiscellaneousMixin<T extends Class<BaseMixin>>(Base: T): {
15210
15525
  * on {@link Instance#addEventListener} for possible event types.
15211
15526
  * @param listener - A listener function.
15212
15527
  */
15213
- removeEventListener<K_1 extends keyof Events.EventNameToHandlerMap>(action: K_1, listener: Events.EventNameToHandlerMap[K_1]): void;
15528
+ removeEventListener<K extends keyof Events.EventNameToHandlerMap>(action: K, listener: Events.EventNameToHandlerMap[K]): void;
15214
15529
  /**
15215
15530
  * Brings the rect (in PDF page coordinates) into the viewport. This function will not change
15216
15531
  * the zoom level.
@@ -15262,7 +15577,7 @@ declare function MiscellaneousMixin<T extends Class<BaseMixin>>(Base: T): {
15262
15577
  * @param pageIndex - The index of the page you want to have information about. If none is provided, the first page (pageIndex `0`) will be used.
15263
15578
  * @returns The transformed point or rectangle.
15264
15579
  */
15265
- transformContentClientToPageSpace<T extends Point | Rect>(rectOrPoint: T, pageIndex: number): T;
15580
+ transformContentClientToPageSpace<T_1 extends Rect | Point>(rectOrPoint: T_1, pageIndex: number): T_1;
15266
15581
  /**
15267
15582
  * Transforms a {@link NutrientViewer.Geometry.Point} or a {@link NutrientViewer.Geometry.Rect} from the
15268
15583
  * PDF page space to the client space inside the content frame.
@@ -15279,7 +15594,7 @@ declare function MiscellaneousMixin<T extends Class<BaseMixin>>(Base: T): {
15279
15594
  * @param pageIndex - The index of the page you want to have information about. If none is provided, the first page (pageIndex `0`) will be used.
15280
15595
  * @returns The transformed point or rectangle.
15281
15596
  */
15282
- transformContentPageToClientSpace<T_1 extends Point | Rect>(rectOrPoint: T_1, pageIndex: number): T_1;
15597
+ transformContentPageToClientSpace<T_1 extends Rect | Point>(rectOrPoint: T_1, pageIndex: number): T_1;
15283
15598
  /**
15284
15599
  * Transforms a {@link NutrientViewer.Geometry.Point} or a {@link NutrientViewer.Geometry.Rect} from the
15285
15600
  * client space inside the main frame to the PDF page space.
@@ -15299,7 +15614,7 @@ declare function MiscellaneousMixin<T extends Class<BaseMixin>>(Base: T): {
15299
15614
  * @param pageIndex - The index of the page you want to have information about. If none is provided, the first page (pageIndex `0`) will be used.
15300
15615
  * @returns The transformed point or rectangle.
15301
15616
  */
15302
- transformClientToPageSpace<T_2 extends Point | Rect>(rectOrPoint: T_2, pageIndex: number): T_2;
15617
+ transformClientToPageSpace<T_1 extends Rect | Point>(rectOrPoint: T_1, pageIndex: number): T_1;
15303
15618
  /**
15304
15619
  * Transforms a {@link NutrientViewer.Geometry.Point} or a {@link NutrientViewer.Geometry.Rect} from the
15305
15620
  * PDF page space to the client space inside the main frame.
@@ -15318,7 +15633,7 @@ declare function MiscellaneousMixin<T extends Class<BaseMixin>>(Base: T): {
15318
15633
  * @param pageIndex - The index of the page you want to have information about. If none is provided, the first page (pageIndex `0`) will be used.
15319
15634
  * @returns The transformed point or rectangle.
15320
15635
  */
15321
- transformPageToClientSpace<T_3 extends Point | Rect>(rectOrPoint: T_3, pageIndex: number): T_3;
15636
+ transformPageToClientSpace<T_1 extends Rect | Point>(rectOrPoint: T_1, pageIndex: number): T_1;
15322
15637
  /**
15323
15638
  * Transforms a raw PDF bounding rect from the PDF page space to NutrientViewer's page space.
15324
15639
  *
@@ -16415,7 +16730,7 @@ declare const Options: {
16415
16730
  * @example
16416
16731
  * NutrientViewer.Options.LINE_CAP_PRESETS = ["openArrow", "closedArrow", "none"];
16417
16732
  */
16418
- LINE_CAP_PRESETS: LineCapPresets[];
16733
+ LINE_CAP_PRESETS: Array<LineCapPresets>;
16419
16734
  /**
16420
16735
  * The list of line widths to use for dropdowns in annotation toolbars.
16421
16736
  *
@@ -16423,7 +16738,7 @@ declare const Options: {
16423
16738
  * @example
16424
16739
  * NutrientViewer.Options.LINE_WIDTH_PRESETS = [1, 2, 4, 8, 32];
16425
16740
  */
16426
- LINE_WIDTH_PRESETS: number[] | null | undefined;
16741
+ LINE_WIDTH_PRESETS: Array<number> | null | undefined;
16427
16742
  /**
16428
16743
  * The list of colors to use in the text highlight annotation toolbar. You can't use transparent for this.
16429
16744
  *
@@ -16446,7 +16761,7 @@ declare const Options: {
16446
16761
  * }
16447
16762
  * ];
16448
16763
  */
16449
- HIGHLIGHT_COLOR_PRESETS: ColorPreset[];
16764
+ HIGHLIGHT_COLOR_PRESETS: Array<ColorPreset_2>;
16450
16765
  /**
16451
16766
  * The list of colors to use in the text markup annotation toolbar.
16452
16767
  *
@@ -16469,7 +16784,7 @@ declare const Options: {
16469
16784
  * }
16470
16785
  * ];
16471
16786
  */
16472
- TEXT_MARKUP_COLOR_PRESETS: ColorPreset[];
16787
+ TEXT_MARKUP_COLOR_PRESETS: Array<ColorPreset_2>;
16473
16788
  /**
16474
16789
  * The list of colors to use for note annotations. You can't pass transparent color as an option.
16475
16790
  *
@@ -16493,7 +16808,7 @@ declare const Options: {
16493
16808
  * }
16494
16809
  * ];
16495
16810
  */
16496
- NOTE_COLOR_PRESETS: ColorPreset[];
16811
+ NOTE_COLOR_PRESETS: Array<ColorPreset_2>;
16497
16812
  /**
16498
16813
  * Enables PDF JavaScript support. PDF documents may contain JavaScript for interactivity.
16499
16814
  * This enables things like form validation, formatting, or automatic calculation which are performed by a JavaScript scripts
@@ -21278,9 +21593,9 @@ declare abstract class ShapeAnnotationSerializer extends AnnotationSerializer {
21278
21593
  measurementPrecision: IMeasurementPrecision | null | undefined;
21279
21594
  measurementScale: MeasurementScale | null;
21280
21595
  group?: string | null | undefined;
21281
- canSetGroup?: boolean | undefined;
21282
- isEditable?: boolean | undefined;
21283
- isDeletable?: boolean | undefined;
21596
+ canSetGroup?: boolean;
21597
+ isEditable?: boolean;
21598
+ isDeletable?: boolean;
21284
21599
  blendMode?: IBlendMode | undefined;
21285
21600
  id: string | null;
21286
21601
  name: string | null;
@@ -23057,7 +23372,7 @@ declare function SignaturesMixin<T extends Class<BaseMixin>>(Base: T): {
23057
23372
  * new `array` of signatures which would overwrite the existing one, or a callback that will get
23058
23373
  * invoked with the current toolbar items and is expected to return the new `array` of items.
23059
23374
  */
23060
- setInkSignatures(stateOrFunction: List<ImageAnnotation | InkAnnotation> | ((annotations: List<InkAnnotation | ImageAnnotation>) => List<InkAnnotation | ImageAnnotation>)): Promise<void>;
23375
+ setInkSignatures(stateOrFunction: ((annotations: List<InkAnnotation | ImageAnnotation>) => List<InkAnnotation | ImageAnnotation>) | List<InkAnnotation | ImageAnnotation>): Promise<void>;
23061
23376
  /**
23062
23377
  * This method is used to update the stored signatures list.
23063
23378
  * It makes it possible to add new signatures and edit or remove existing ones.
@@ -23118,7 +23433,7 @@ declare function SignaturesMixin<T extends Class<BaseMixin>>(Base: T): {
23118
23433
  * @param stateOrFunction - a new `array` of signatures which would overwrite the existing one, or a callback that will get
23119
23434
  * invoked with the current toolbar items and is expected to return the new `array` of items.
23120
23435
  */
23121
- setStoredSignatures(stateOrFunction: List<ImageAnnotation | InkAnnotation> | ((annotations: List<InkAnnotation | ImageAnnotation>) => List<InkAnnotation | ImageAnnotation>)): Promise<void>;
23436
+ setStoredSignatures(stateOrFunction: ((annotations: List<InkAnnotation | ImageAnnotation>) => List<InkAnnotation | ImageAnnotation>) | List<InkAnnotation | ImageAnnotation>): Promise<void>;
23122
23437
 
23123
23438
  };
23124
23439
  } & T;
@@ -24619,7 +24934,7 @@ declare const textComparisonActionCreators: {
24619
24934
  payload: {
24620
24935
  instanceA: Instance;
24621
24936
  instanceB: Instance;
24622
- aiComparisonData?: AIComparisonData | null | undefined;
24937
+ aiComparisonData?: AIComparisonData | null;
24623
24938
  };
24624
24939
  };
24625
24940
  setToolbarItems: (payload: List<ToolbarItem_2>) => {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Nutrient Web SDK 1.9.0-886d2f2 (https://www.nutrient.io/sdk/web)
2
+ * Nutrient Web SDK 1.9.0-97b5ceb (https://www.nutrient.io/sdk/web)
3
3
  *
4
4
  * Copyright (c) 2016-2025 PSPDFKit GmbH. All rights reserved.
5
5
  *