@nutrient-sdk/viewer 1.7.0-nightly.20250903 → 1.7.0-nightly.20250905

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 (51) hide show
  1. package/dist/index.d.ts +177 -22
  2. package/dist/nutrient-viewer-lib/{chunk-848-c305e43a222de666.js → chunk-848-3296fd6974df867d.js} +1 -1
  3. package/dist/nutrient-viewer-lib/{chunk-core-worker-129f8797eec31cad.js → chunk-core-worker-cb97278c505f6971.js} +2 -2
  4. package/dist/nutrient-viewer-lib/{chunk-gdpicture-1a0b1efb25679697.js → chunk-gdpicture-95ec46ac3a61db69.js} +1 -1
  5. package/dist/nutrient-viewer-lib/{chunk-gdpicture-worker-8ec141650a20a18f.js → chunk-gdpicture-worker-455a9f78a22b8f57.js} +2 -2
  6. package/dist/nutrient-viewer-lib/{chunk-lazy-sha-0754bf879d18f4ab.js → chunk-lazy-sha-16358bdb40d07c68.js} +1 -1
  7. package/dist/nutrient-viewer-lib/{chunk-locale-ar-094775c251086c64.js → chunk-locale-ar-638952ef51de1f2f.js} +1 -1
  8. package/dist/nutrient-viewer-lib/{chunk-locale-cs-e1a71cd283682d6e.js → chunk-locale-cs-18d9db3309d3dc21.js} +1 -1
  9. package/dist/nutrient-viewer-lib/{chunk-locale-cy-bc1f005455affea2.js → chunk-locale-cy-50ec3e2725569527.js} +1 -1
  10. package/dist/nutrient-viewer-lib/{chunk-locale-da-93c6a1c192163424.js → chunk-locale-da-5a21dd6b75dc6282.js} +1 -1
  11. package/dist/nutrient-viewer-lib/{chunk-locale-de-3c1fd7c4e128ab65.js → chunk-locale-de-7ef8c3aaaaf75dfc.js} +1 -1
  12. package/dist/nutrient-viewer-lib/{chunk-locale-el-1970d98e27018acb.js → chunk-locale-el-c13c380b5abdf9fb.js} +1 -1
  13. package/dist/nutrient-viewer-lib/{chunk-locale-en-GB-2c10f636ecd1db6c.js → chunk-locale-en-GB-06e60b9dd0b0baeb.js} +1 -1
  14. package/dist/nutrient-viewer-lib/{chunk-locale-es-ed996cd505e4260d.js → chunk-locale-es-c23fd6f585a48154.js} +1 -1
  15. package/dist/nutrient-viewer-lib/{chunk-locale-fi-04c545f0abe9fb78.js → chunk-locale-fi-648fd56f749435d7.js} +1 -1
  16. package/dist/nutrient-viewer-lib/{chunk-locale-fr-d61ad175e8734fe5.js → chunk-locale-fr-5a7ea4565f90afe5.js} +1 -1
  17. package/dist/nutrient-viewer-lib/{chunk-locale-fr-CA-952df3b009dc4cae.js → chunk-locale-fr-CA-022d77cea197812f.js} +1 -1
  18. package/dist/nutrient-viewer-lib/{chunk-locale-he-860426c62a12a3b7.js → chunk-locale-he-b4d2c951ca510d86.js} +1 -1
  19. package/dist/nutrient-viewer-lib/{chunk-locale-hr-601ba8e066975d82.js → chunk-locale-hr-2708da6ba37d3d0e.js} +1 -1
  20. package/dist/nutrient-viewer-lib/{chunk-locale-id-04dbec26a2152eb1.js → chunk-locale-id-6b99ff0970332087.js} +1 -1
  21. package/dist/nutrient-viewer-lib/{chunk-locale-it-7cb477dc74df55bd.js → chunk-locale-it-f2ca288dc06dc594.js} +1 -1
  22. package/dist/nutrient-viewer-lib/{chunk-locale-ja-86581e843cf658c7.js → chunk-locale-ja-f53812732bbd73a6.js} +1 -1
  23. package/dist/nutrient-viewer-lib/{chunk-locale-ko-71c96e0107305b17.js → chunk-locale-ko-dcbfc7c15227c774.js} +1 -1
  24. package/dist/nutrient-viewer-lib/{chunk-locale-ms-540e7762a8f4675a.js → chunk-locale-ms-344ccfd56e2eb6ea.js} +1 -1
  25. package/dist/nutrient-viewer-lib/{chunk-locale-nb-NO-6ab09d4a9c74512c.js → chunk-locale-nb-NO-79d69d3d0adecde3.js} +1 -1
  26. package/dist/nutrient-viewer-lib/{chunk-locale-nl-f3b606ef8938b8e4.js → chunk-locale-nl-909d03d9b1539cc3.js} +1 -1
  27. package/dist/nutrient-viewer-lib/{chunk-locale-pl-54f57b3ca7e27c8e.js → chunk-locale-pl-129e8e408040279c.js} +1 -1
  28. package/dist/nutrient-viewer-lib/{chunk-locale-pt-da5d9527b3add094.js → chunk-locale-pt-5d5ee0dcccd98eb9.js} +1 -1
  29. package/dist/nutrient-viewer-lib/{chunk-locale-pt-PT-7600d9a4d831f185.js → chunk-locale-pt-PT-84dd3a22123ea423.js} +1 -1
  30. package/dist/nutrient-viewer-lib/{chunk-locale-ru-49e96ebbd92b0ca7.js → chunk-locale-ru-30332b62b4cb3fc2.js} +1 -1
  31. package/dist/nutrient-viewer-lib/{chunk-locale-sk-b77166493dc2aa1a.js → chunk-locale-sk-6590513c2507b008.js} +1 -1
  32. package/dist/nutrient-viewer-lib/{chunk-locale-sl-419a0ab9ab843d4b.js → chunk-locale-sl-24722ccfdf131a94.js} +1 -1
  33. package/dist/nutrient-viewer-lib/{chunk-locale-sv-d19c6d237770f55a.js → chunk-locale-sv-0aa374925ba2c575.js} +1 -1
  34. package/dist/nutrient-viewer-lib/{chunk-locale-th-06092113724dc04d.js → chunk-locale-th-03e3c5316e488d8d.js} +1 -1
  35. package/dist/nutrient-viewer-lib/{chunk-locale-tr-35e2007a8e2d49e0.js → chunk-locale-tr-6c19e1721104f7f0.js} +1 -1
  36. package/dist/nutrient-viewer-lib/{chunk-locale-uk-ba6daaf6d617e586.js → chunk-locale-uk-7dcaffa219b13740.js} +1 -1
  37. package/dist/nutrient-viewer-lib/{chunk-locale-zh-Hans-ff66ab7a19c7decc.js → chunk-locale-zh-Hans-d3410644b41e0f3c.js} +1 -1
  38. package/dist/nutrient-viewer-lib/{chunk-locale-zh-Hant-380e83a7da7f3501.js → chunk-locale-zh-Hant-17e892b8994b2ddd.js} +1 -1
  39. package/dist/nutrient-viewer-lib/{chunk-server-93e0dbde988ef09d.js → chunk-server-925df0cd87709243.js} +2 -2
  40. package/dist/nutrient-viewer-lib/{chunk-server-instant-1719d0a0da7719b7.js → chunk-server-instant-6a5d7f9ae1e0a904.js} +1 -1
  41. package/dist/nutrient-viewer-lib/{chunk-server-rest-52e557ac075a521b.js → chunk-server-rest-56cf5e850ab9f13e.js} +1 -1
  42. package/dist/nutrient-viewer-lib/{chunk-standalone-128b5bc9125af0b1.js → chunk-standalone-0bd3e1457526afd3.js} +2 -2
  43. package/dist/nutrient-viewer-lib/{chunk-standalone-server-47ab8b53f331f7d8.js → chunk-standalone-server-a8a89441b2f50dd7.js} +2 -2
  44. package/dist/nutrient-viewer-lib/core-worker.js +2 -2
  45. package/dist/nutrient-viewer-lib/dark-402cc98d3d69bff8.css +1 -1
  46. package/dist/nutrient-viewer-lib/gdpicture-worker.js +1 -1
  47. package/dist/nutrient-viewer-lib/{nutrient-viewer-1.7.0-29b8a9f.css → nutrient-viewer-1.7.0-395f82e.css} +1 -1
  48. package/dist/nutrient-viewer-lib/nutrient-viewer-f17d4f56165b1d99.wasm.js +1 -1
  49. package/dist/nutrient-viewer-lib/{nutrient-viewer-d3b05bc0e54d01ad.wasm → nutrient-viewer-fc5e6f95ba319dca.wasm} +0 -0
  50. package/dist/nutrient-viewer.js +2 -2
  51. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- /// <reference types="node" />
2
-
1
+ // @ts-nocheck
3
2
  /**
4
3
  * This class should be used to create custom Immutable Record. It will overwrite the default
5
4
  * `Immutable#equals()` method to include the class name. if we don't do this, two different classes
@@ -469,7 +468,7 @@ T;
469
468
  * @property {string} summary - AI-generated summary of document changes
470
469
  * @property {string[]} categories - Array of AI-detected change categories
471
470
  * @property {DocumentComparisonResult} changes - Standard document comparison result
472
- * @property {AIComparisonPhase} phase - Current phase of the AI comparison process
471
+ * @property {IAIComparisonPhase} phase - Current phase of the AI comparison process
473
472
  * @property {AIComparisonError | null} error - Error information if comparison failed
474
473
  * @property {AIADocumentChangeTaggingItem[]} [taggedChanges] - Changes tagged with categories (optional)
475
474
  * @property {AIADocumentChangePayload[]} [transformedChanges] - Transformed changes for AI processing (optional)
@@ -479,7 +478,7 @@ declare interface AIComparisonData {
479
478
  summary: string;
480
479
  categories: string[];
481
480
  changes: DocumentComparisonResult;
482
- phase: AIComparisonPhase;
481
+ phase: IAIComparisonPhase;
483
482
  error: AIComparisonError | null;
484
483
  taggedChanges?: AIADocumentChangeTaggingItem[];
485
484
  transformedChanges?: AIADocumentChangePayload[];
@@ -524,13 +523,13 @@ declare const AIComparisonOperationType: {
524
523
  * @property {NutrientViewer.AIComparisonPhase} COMPLETED Comparison process completed successfully
525
524
  * @property {NutrientViewer.AIComparisonPhase} ERROR Error occurred during comparison
526
525
  */
527
- declare enum AIComparisonPhase {
528
- IDLE = "IDLE",
529
- LOADING = "LOADING",
530
- ANALYZING = "ANALYZING",
531
- TAGGING = "TAGGING",
532
- COMPLETED = "COMPLETED",
533
- ERROR = "ERROR",}
526
+ declare const AIComparisonPhase: {
527
+ readonly IDLE: "IDLE";
528
+ readonly LOADING: "LOADING";
529
+ readonly ANALYZING: "ANALYZING";
530
+ readonly TAGGING: "TAGGING";
531
+ readonly COMPLETED: "COMPLETED";
532
+ readonly ERROR: "ERROR";};
534
533
 
535
534
  /**
536
535
  * Result returned by AI-powered document comparison operations. This union type represents
@@ -621,7 +620,7 @@ declare const allowedTextComparisonInnerToolbarItem: string[];
621
620
  */
622
621
  declare const allowedTextComparisonToolbarItem: string[];
623
622
 
624
- declare const allowedToolbarTypes: ("text" | "search" | "link" | "ellipse" | "image" | "line" | "polygon" | "polyline" | "spacer" | "note" | "distance" | "comment" | "zoom-in" | "zoom-out" | "callout" | "arrow" | "highlighter" | "undo" | "redo" | "custom" | "signature" | "print" | "ink" | "pager" | "pan" | "layout-config" | "marquee-zoom" | "responsive-group" | "redact-text-highlighter" | "redact-rectangle" | "cloudy-rectangle" | "dashed-rectangle" | "cloudy-ellipse" | "dashed-ellipse" | "dashed-polygon" | "document-comparison" | "measure" | "form-creator" | "content-editor" | "perimeter" | "rectangle-area" | "ellipse-area" | "polygon-area" | "ai-assistant" | "pager-expanded" | "sidebar-thumbnails" | "sidebar-document-outline" | "sidebar-annotations" | "sidebar-bookmarks" | "sidebar-signatures" | "sidebar-attachments" | "sidebar-layers" | "multi-annotations-selection" | "zoom-mode" | "linearized-download-indicator" | "annotate" | "text-highlighter" | "ink-eraser" | "stamp" | "rectangle" | "cloudy-polygon" | "document-editor" | "document-crop" | "export-pdf" | "debug")[];
623
+ declare const allowedToolbarTypes: ("text" | "search" | "link" | "ellipse" | "image" | "line" | "polygon" | "polyline" | "spacer" | "note" | "distance" | "comment" | "zoom-in" | "zoom-out" | "callout" | "arrow" | "highlighter" | "undo" | "redo" | "custom" | "signature" | "print" | "ink" | "layout-config" | "marquee-zoom" | "responsive-group" | "redact-text-highlighter" | "redact-rectangle" | "cloudy-rectangle" | "dashed-rectangle" | "cloudy-ellipse" | "dashed-ellipse" | "dashed-polygon" | "document-comparison" | "measure" | "form-creator" | "content-editor" | "perimeter" | "rectangle-area" | "ellipse-area" | "polygon-area" | "ai-assistant" | "pager-expanded" | "sidebar-thumbnails" | "sidebar-document-outline" | "sidebar-annotations" | "sidebar-bookmarks" | "sidebar-signatures" | "sidebar-attachments" | "sidebar-layers" | "pager" | "multi-annotations-selection" | "pan" | "zoom-mode" | "linearized-download-indicator" | "annotate" | "text-highlighter" | "ink-eraser" | "stamp" | "rectangle" | "cloudy-polygon" | "document-editor" | "document-crop" | "export-pdf" | "debug")[];
625
624
 
626
625
  /**
627
626
  * @classdesc
@@ -5565,6 +5564,13 @@ declare class CommentMarkerAnnotationSerializer extends AnnotationSerializer {
5565
5564
  toJSON(): CommentMarkerAnnotationJSON;
5566
5565
  static fromJSON(id: InstantID | null, json: Omit<CommentMarkerAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): CommentMarkerAnnotation;}
5567
5566
 
5567
+ declare type CommentParams = {
5568
+ /**
5569
+ * Unique ID for the comment.
5570
+ */
5571
+ id: string;};
5572
+
5573
+
5568
5574
  declare function CommentPermissionMixin<T extends Class<BaseMixin>>(Base: T): {
5569
5575
  new (...args: any[]): {
5570
5576
  /**
@@ -5850,6 +5856,64 @@ declare function CommentsMixin<T extends Class<BaseMixin>>(Base: T): {
5850
5856
 
5851
5857
  T;
5852
5858
 
5859
+ declare type CommentThreadParams = {
5860
+ /**
5861
+ * ID for the comment thread.
5862
+ */
5863
+ id: string;};
5864
+
5865
+
5866
+ /**
5867
+ * Slots for partial customization of the comment thread.
5868
+ */
5869
+ declare type CommentThreadUI = {
5870
+ /**
5871
+ * Use this to render a custom UI in the header (top area) of the UI.
5872
+ */
5873
+ header?: UIFactory<CommentThreadParams>;
5874
+ /**
5875
+ * Use this to render a custom UI in the footer (bottom area) of the UI.
5876
+ */
5877
+ footer?: UIFactory<CommentThreadParams>;
5878
+ /**
5879
+ * Use this to customize the editor area.
5880
+ */
5881
+ editor?: UIFactory<CommentThreadParams>;
5882
+ /**
5883
+ * Use this to customize each comment fully or provide slots for partial customization.
5884
+ */
5885
+ comment?: CommentUIConfig;};
5886
+
5887
+
5888
+ declare type CommentThreadUIConfig = CommentThreadUIFactory | CommentThreadUI;
5889
+
5890
+ /**
5891
+ * UI function for full customization of CommentThread.
5892
+ */
5893
+ declare type CommentThreadUIFactory = UIFactory<CommentThreadParams>;
5894
+
5895
+ declare type CommentUI = {
5896
+ /**
5897
+ * Use this to render a custom UI in the header (top area) of the UI.
5898
+ */
5899
+ header?: UIFactory<CommentParams>;
5900
+ /**
5901
+ * Use this to render a custom UI in the footer (bottom area) of the UI
5902
+ */
5903
+ footer?: UIFactory<CommentParams>;
5904
+ /**
5905
+ * Use this to customize the body of the comment.
5906
+ */
5907
+ body?: UIFactory<CommentParams>;};
5908
+
5909
+
5910
+ declare type CommentUIConfig = CommentUIFactory | CommentUI;
5911
+
5912
+ /**
5913
+ * UI function for full customization of Comment.
5914
+ */
5915
+ declare type CommentUIFactory = UIFactory<CommentParams>;
5916
+
5853
5917
  /**
5854
5918
  * Represents a pair of documents to be compared.
5855
5919
  * @public
@@ -8993,6 +9057,8 @@ declare interface IAIComparisonOperationOptions extends IComparisonOperationOpti
8993
9057
 
8994
9058
  declare type IAIComparisonOperationType = (typeof AIComparisonOperationType)[keyof typeof AIComparisonOperationType];
8995
9059
 
9060
+ declare type IAIComparisonPhase = (typeof AIComparisonPhase)[keyof typeof AIComparisonPhase];
9061
+
8996
9062
  declare type IAlignment = (typeof Alignment)[keyof typeof Alignment];
8997
9063
 
8998
9064
  declare type IAnnotationJSON = Omit<BaseAnnotationJSON, 'id' | 'group' | 'permissions'>;
@@ -9468,12 +9534,7 @@ declare type ImportPageIndex = Array<number | Range_4>;
9468
9534
  declare interface INamedAction extends ActionCtorProps {
9469
9535
  action?: string;}
9470
9536
 
9471
- declare class InheritableImmutableRecord<T extends Record<string, unknown>> extends InheritableImmutableRecord_base implements __dangerousImmutableRecordFactory<T> {
9472
- constructor(values?: Partial<T> | Iterable<[string, unknown]>);}
9473
-
9474
- declare interface InheritableImmutableRecord<T extends Record<string, unknown>> extends __dangerousImmutableRecordFactory<T> {}
9475
-
9476
- declare const InheritableImmutableRecord_base: unknown;
9537
+ declare const InheritableImmutableRecord: new <T extends Record<string, unknown>>(values?: Iterable<[string, unknown]> | Partial<T> | undefined) => __dangerousImmutableRecordFactory<T>;
9477
9538
 
9478
9539
  /**
9479
9540
  * The blend mode defines how the color of the annotation will be applied to its background.
@@ -10072,7 +10133,7 @@ declare interface IShapeAnnotation extends AnnotationProperties {
10072
10133
 
10073
10134
  declare type IShowSignatureValidationStatusMode = (typeof ShowSignatureValidationStatusMode)[keyof typeof ShowSignatureValidationStatusMode];
10074
10135
 
10075
- declare type ISidebarMode = (typeof SidebarMode)[keyof typeof SidebarMode];
10136
+ declare type ISidebarMode = (typeof SidebarMode)[keyof typeof SidebarMode] | (string & {});
10076
10137
 
10077
10138
  declare type ISidebarPlacement = (typeof SidebarPlacement)[keyof typeof SidebarPlacement];
10078
10139
 
@@ -13293,6 +13354,7 @@ declare function MiscellaneousMixin<T extends Class<BaseMixin>>(Base: T): {
13293
13354
  * @param {NutrientViewer.CustomUIConfiguration | NutrientViewer.Instance~CustomUIConfigurationSetter} customUIConfigurationOrCustomUIConfigurationSetter
13294
13355
  */
13295
13356
  setCustomUIConfiguration(customUIConfigurationOrCustomUIConfigurationSetter: ((customUI: CustomUI | null) => CustomUI) | Partial<Record<"Sidebar", Partial<{
13357
+ [x: string & {}]: Renderer;
13296
13358
  CUSTOM: Renderer;
13297
13359
  ANNOTATIONS: Renderer;
13298
13360
  BOOKMARKS: Renderer;
@@ -14404,6 +14466,14 @@ declare const NutrientViewer: {
14404
14466
  readonly ANALYZE: "analyze";
14405
14467
  readonly TAG: "tag";};
14406
14468
 
14469
+ AIComparisonPhase: {
14470
+ readonly IDLE: "IDLE";
14471
+ readonly LOADING: "LOADING";
14472
+ readonly ANALYZING: "ANALYZING";
14473
+ readonly TAGGING: "TAGGING";
14474
+ readonly COMPLETED: "COMPLETED";
14475
+ readonly ERROR: "ERROR";};
14476
+
14407
14477
  /**
14408
14478
  * Merges the properties extracted from the location.hash into the {@link NutrientViewer.ViewState}.
14409
14479
  *
@@ -20674,7 +20744,42 @@ declare type SharedConfiguration = {
20674
20744
  */
20675
20745
  onCommentCreationStart?: OnCommentCreationStartCallback;
20676
20746
  documentEditorConfiguration?: documentEditorUIConfig;
20677
- ui?: any;
20747
+ /**
20748
+ * In-place UI customization API for the supported components using slots.
20749
+ * Refer to {@link https://www.nutrient.io/guides/web/user-interface/ui-customization/introduction/|this guide} to get started.
20750
+ *
20751
+ * Can be used to:
20752
+ * - fully replace the default component UI with a custom one
20753
+ * - insert a custom UI at a predefined slot in an existing component
20754
+ * - replace an existing slot in a component with your own custom UI
20755
+ *
20756
+ * See the list of supported slots {@link https://www.nutrient.io/guides/web/user-interface/ui-customization/supported-slots/|here}.
20757
+ * @example
20758
+ * NutrientViewer.load({
20759
+ * ui: {
20760
+ * commentThread: {
20761
+ * header: (instance, id) => {
20762
+ * const header = document.createElement('div');
20763
+ * header.innerText = 'Custom Comment Thread Header';
20764
+ *
20765
+ * return {
20766
+ * render: (params) => header,
20767
+ * onMount: (id) => {
20768
+ * console.log(`Comment thread header mounted`);
20769
+ * },
20770
+ * onUnmount: (id) => {
20771
+ * console.log(`Comment thread header unmounted`);
20772
+ * }
20773
+ * };
20774
+ * }
20775
+ * }
20776
+ * }
20777
+ * });
20778
+ * @public
20779
+ * @member {?NutrientViewer.UI} ui
20780
+ * @memberof NutrientViewer.Configuration
20781
+ */
20782
+ ui?: UI;
20678
20783
  /**
20679
20784
  * ***Server only***
20680
20785
  *
@@ -20836,6 +20941,7 @@ declare const ShowSignatureValidationStatusMode: {
20836
20941
 
20837
20942
  /**
20838
20943
  * Controls the current sidebar mode in the viewer.
20944
+ * It can also be a custom string corresponding to a custom sidebar id.
20839
20945
  * @public
20840
20946
  * @readonly
20841
20947
  * @memberof NutrientViewer
@@ -20944,6 +21050,13 @@ T extends AttachmentsSidebarOptions ? {
20944
21050
  [SidebarMode.ATTACHMENTS]: AttachmentsSidebarOptions;} :
20945
21051
  never;
20946
21052
 
21053
+ declare type SidebarParams = {
21054
+ /**
21055
+ * ID for the sidebar.
21056
+ */
21057
+ id: string;};
21058
+
21059
+
20947
21060
  /**
20948
21061
  * Controls the sidebar placement.
20949
21062
  * @public
@@ -20959,6 +21072,8 @@ declare const SidebarPlacement: {
20959
21072
  readonly END: "END";};
20960
21073
 
20961
21074
 
21075
+ declare type SidebarUI = Record<string, UIFactory<SidebarParams>>;
21076
+
20962
21077
  declare type Signature = InkAnnotation | ImageAnnotation;
20963
21078
 
20964
21079
  declare type SignatureAppearance = {
@@ -21616,6 +21731,25 @@ export declare class Size extends Size_base {
21616
21731
 
21617
21732
  declare const Size_base: Record_2.Factory<ISize>;
21618
21733
 
21734
+ declare type Slot<Params> = {
21735
+ /**
21736
+ * The render function is called whenever any `params` change that may affect the UI and expects a DOM element to be returned.
21737
+ *
21738
+ * This may be called any number of times.
21739
+ * You should treat this as a pure function and always return a DOM element based on the current `params`.
21740
+ */
21741
+ render?: (params: Params) => HTMLElement | null;
21742
+ /**
21743
+ * Invoked once, when the component is mounted to the DOM.
21744
+ * Use it for setup tasks such as attaching event listeners, firing analytics events, etc.
21745
+ */
21746
+ onMount?: (id: string) => void;
21747
+ /**
21748
+ * Invoked once, when the component is unmounted from the DOM.
21749
+ * Use it for cleanup tasks such as removing event listeners, etc.
21750
+ */
21751
+ onUnmount?: (id: string) => void;};
21752
+
21619
21753
  /**
21620
21754
  * @classdesc
21621
21755
  * A squiggle markup annotation. Please refer to {@link NutrientViewer.Annotations.MarkupAnnotation} for
@@ -23304,9 +23438,9 @@ declare const textComparisonActionCreators: {
23304
23438
  type: "SET_AI_COMPARISON_DATA";
23305
23439
  payload: AIComparisonData | null;};
23306
23440
 
23307
- updateAIComparisonPhase: (phase: AIComparisonPhase) => {
23441
+ updateAIComparisonPhase: (phase: IAIComparisonPhase) => {
23308
23442
  type: "UPDATE_AI_COMPARISON_PHASE";
23309
- payload: AIComparisonPhase;};
23443
+ payload: IAIComparisonPhase;};
23310
23444
 
23311
23445
  setAIComparisonError: (error: AIComparisonError | null) => {
23312
23446
  type: "SET_AI_COMPARISON_ERROR";
@@ -25135,6 +25269,21 @@ declare type TwoStepSignatureCallback = (arg0: {
25135
25269
  dataToBeSigned: ArrayBuffer;}) =>
25136
25270
  Promise<ArrayBuffer | SignatureCallbackResponsePkcs7 | SignatureCallbackResponseRaw>;
25137
25271
 
25272
+ declare interface UI {
25273
+ /**
25274
+ * Replace the entire comment thread component UI with a custom implementation by passing a function.
25275
+ * Or customize it partly by passing an object configuration.
25276
+ *
25277
+ * The UI customization function is invoked when the SDK is ready to render a comment thread.
25278
+ */
25279
+ commentThread?: CommentThreadUIConfig;
25280
+ /**
25281
+ * UI Customization for custom sidebars.
25282
+ * Use this to render a custom sidebar by passing a function.
25283
+ */
25284
+ sidebar?: SidebarUI;}
25285
+
25286
+
25138
25287
  /**
25139
25288
  * Indicates which UI element certain JavaScript `Date` instance will be rendered in.
25140
25289
  * Used as part of {@link NutrientViewer.Configuration#dateTimeString}.
@@ -25160,6 +25309,12 @@ declare const UIElement: {
25160
25309
  readonly Sidebar: "Sidebar";};
25161
25310
 
25162
25311
 
25312
+ /**
25313
+ * A factory function that creates a UI customization slot.
25314
+ * It can receive instance and an id, returning a slot object with lifecycle methods.
25315
+ */
25316
+ declare type UIFactory<Params> = (instance: Instance | null, id: string) => Slot<Params>;
25317
+
25163
25318
  declare type UIRendererConfiguration = {
25164
25319
  node: Node;
25165
25320
  onRenderItem?: ItemCustomRenderer;};
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Nutrient Web SDK 1.7.0-29b8a9f (https://www.nutrient.io/sdk/web)
2
+ * Nutrient Web SDK 1.7.0-395f82e (https://www.nutrient.io/sdk/web)
3
3
  *
4
4
  * Copyright (c) 2016-2025 PSPDFKit GmbH. All rights reserved.
5
5
  *