@nutrient-sdk/viewer 1.7.0-nightly.20250903 → 1.7.0-nightly.20250904
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +156 -11
- package/dist/nutrient-viewer-lib/{chunk-848-c305e43a222de666.js → chunk-848-32082bcb33dffb5f.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-core-worker-129f8797eec31cad.js → chunk-core-worker-dde6c55dfcd242dd.js} +2 -2
- package/dist/nutrient-viewer-lib/{chunk-gdpicture-1a0b1efb25679697.js → chunk-gdpicture-7876d2226fca365c.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-gdpicture-worker-8ec141650a20a18f.js → chunk-gdpicture-worker-b3e5b8ebc2a5a580.js} +2 -2
- package/dist/nutrient-viewer-lib/{chunk-lazy-sha-0754bf879d18f4ab.js → chunk-lazy-sha-62bde050d50b9cde.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ar-094775c251086c64.js → chunk-locale-ar-fb3b70fc0acf6d8a.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-cs-e1a71cd283682d6e.js → chunk-locale-cs-b0d1178e898a0d18.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-cy-bc1f005455affea2.js → chunk-locale-cy-f6a1f0a24dd91e0c.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-da-93c6a1c192163424.js → chunk-locale-da-54328d68522cd5d3.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-de-3c1fd7c4e128ab65.js → chunk-locale-de-8327fd7efbf31386.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-el-1970d98e27018acb.js → chunk-locale-el-d0c08bc3a91096bc.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-en-GB-2c10f636ecd1db6c.js → chunk-locale-en-GB-20c7dedca7bfeb22.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-es-ed996cd505e4260d.js → chunk-locale-es-af26b8b2ce61eaa3.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-fi-04c545f0abe9fb78.js → chunk-locale-fi-47242c5fe7a30437.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-fr-d61ad175e8734fe5.js → chunk-locale-fr-05368faa38d37e9f.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-fr-CA-952df3b009dc4cae.js → chunk-locale-fr-CA-4a088be7f93242eb.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-he-860426c62a12a3b7.js → chunk-locale-he-4da16a00f0fbfb50.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-hr-601ba8e066975d82.js → chunk-locale-hr-e85d292681d61350.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-id-04dbec26a2152eb1.js → chunk-locale-id-4c03f1087e3e7e34.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-it-7cb477dc74df55bd.js → chunk-locale-it-6903f673adf4de55.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ja-86581e843cf658c7.js → chunk-locale-ja-ed46f56446ce994d.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ko-71c96e0107305b17.js → chunk-locale-ko-62615ef440df346a.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ms-540e7762a8f4675a.js → chunk-locale-ms-9491985ee757af5c.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-nb-NO-6ab09d4a9c74512c.js → chunk-locale-nb-NO-dd0674209731aecb.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-nl-f3b606ef8938b8e4.js → chunk-locale-nl-a5d4d39497fa97e4.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-pl-54f57b3ca7e27c8e.js → chunk-locale-pl-7e4b203d8381b5f0.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-pt-da5d9527b3add094.js → chunk-locale-pt-8ce15c47c382b8c1.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-pt-PT-7600d9a4d831f185.js → chunk-locale-pt-PT-035cdaa5fd63fe47.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ru-49e96ebbd92b0ca7.js → chunk-locale-ru-c8444f00e1149044.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-sk-b77166493dc2aa1a.js → chunk-locale-sk-8005e13a69a8ba0d.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-sl-419a0ab9ab843d4b.js → chunk-locale-sl-0b4788c96bda7328.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-sv-d19c6d237770f55a.js → chunk-locale-sv-b593977731ba46c0.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-th-06092113724dc04d.js → chunk-locale-th-f28ace3029696757.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-tr-35e2007a8e2d49e0.js → chunk-locale-tr-1381e34dfb4b99c5.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-uk-ba6daaf6d617e586.js → chunk-locale-uk-f4ee49677e65d221.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-zh-Hans-ff66ab7a19c7decc.js → chunk-locale-zh-Hans-4fe5762d52e06d74.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-zh-Hant-380e83a7da7f3501.js → chunk-locale-zh-Hant-ee5e32b4359d4f9a.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-server-93e0dbde988ef09d.js → chunk-server-9f58282c1abe195b.js} +2 -2
- package/dist/nutrient-viewer-lib/{chunk-server-instant-1719d0a0da7719b7.js → chunk-server-instant-4b18074613f1639c.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-server-rest-52e557ac075a521b.js → chunk-server-rest-f262e8f4046e5af1.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-standalone-128b5bc9125af0b1.js → chunk-standalone-cd3d9f6c43f90708.js} +2 -2
- package/dist/nutrient-viewer-lib/{chunk-standalone-server-47ab8b53f331f7d8.js → chunk-standalone-server-679b3793fa29f5e4.js} +2 -2
- package/dist/nutrient-viewer-lib/core-worker.js +2 -2
- package/dist/nutrient-viewer-lib/dark-402cc98d3d69bff8.css +1 -1
- package/dist/nutrient-viewer-lib/gdpicture-worker.js +1 -1
- package/dist/nutrient-viewer-lib/{nutrient-viewer-1.7.0-29b8a9f.css → nutrient-viewer-1.7.0-b1d6ce1.css} +1 -1
- package/dist/nutrient-viewer-lib/{nutrient-viewer-d3b05bc0e54d01ad.wasm → nutrient-viewer-56c374b7c9804252.wasm} +0 -0
- package/dist/nutrient-viewer-lib/nutrient-viewer-f17d4f56165b1d99.wasm.js +1 -1
- package/dist/nutrient-viewer.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
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
|
|
@@ -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" | "
|
|
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
|
|
@@ -9468,12 +9532,7 @@ declare type ImportPageIndex = Array<number | Range_4>;
|
|
|
9468
9532
|
declare interface INamedAction extends ActionCtorProps {
|
|
9469
9533
|
action?: string;}
|
|
9470
9534
|
|
|
9471
|
-
declare
|
|
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;
|
|
9535
|
+
declare const InheritableImmutableRecord: new <T extends Record<string, unknown>>(values?: Iterable<[string, unknown]> | Partial<T> | undefined) => __dangerousImmutableRecordFactory<T>;
|
|
9477
9536
|
|
|
9478
9537
|
/**
|
|
9479
9538
|
* The blend mode defines how the color of the annotation will be applied to its background.
|
|
@@ -10072,7 +10131,7 @@ declare interface IShapeAnnotation extends AnnotationProperties {
|
|
|
10072
10131
|
|
|
10073
10132
|
declare type IShowSignatureValidationStatusMode = (typeof ShowSignatureValidationStatusMode)[keyof typeof ShowSignatureValidationStatusMode];
|
|
10074
10133
|
|
|
10075
|
-
declare type ISidebarMode = (typeof SidebarMode)[keyof typeof SidebarMode];
|
|
10134
|
+
declare type ISidebarMode = (typeof SidebarMode)[keyof typeof SidebarMode] | (string & {});
|
|
10076
10135
|
|
|
10077
10136
|
declare type ISidebarPlacement = (typeof SidebarPlacement)[keyof typeof SidebarPlacement];
|
|
10078
10137
|
|
|
@@ -13293,6 +13352,7 @@ declare function MiscellaneousMixin<T extends Class<BaseMixin>>(Base: T): {
|
|
|
13293
13352
|
* @param {NutrientViewer.CustomUIConfiguration | NutrientViewer.Instance~CustomUIConfigurationSetter} customUIConfigurationOrCustomUIConfigurationSetter
|
|
13294
13353
|
*/
|
|
13295
13354
|
setCustomUIConfiguration(customUIConfigurationOrCustomUIConfigurationSetter: ((customUI: CustomUI | null) => CustomUI) | Partial<Record<"Sidebar", Partial<{
|
|
13355
|
+
[x: string & {}]: Renderer;
|
|
13296
13356
|
CUSTOM: Renderer;
|
|
13297
13357
|
ANNOTATIONS: Renderer;
|
|
13298
13358
|
BOOKMARKS: Renderer;
|
|
@@ -20674,7 +20734,42 @@ declare type SharedConfiguration = {
|
|
|
20674
20734
|
*/
|
|
20675
20735
|
onCommentCreationStart?: OnCommentCreationStartCallback;
|
|
20676
20736
|
documentEditorConfiguration?: documentEditorUIConfig;
|
|
20677
|
-
|
|
20737
|
+
/**
|
|
20738
|
+
* In-place UI customization API for the supported components using slots.
|
|
20739
|
+
* Refer to {@link https://www.nutrient.io/guides/web/user-interface/ui-customization/introduction/|this guide} to get started.
|
|
20740
|
+
*
|
|
20741
|
+
* Can be used to:
|
|
20742
|
+
* - fully replace the default component UI with a custom one
|
|
20743
|
+
* - insert a custom UI at a predefined slot in an existing component
|
|
20744
|
+
* - replace an existing slot in a component with your own custom UI
|
|
20745
|
+
*
|
|
20746
|
+
* See the list of supported slots {@link https://www.nutrient.io/guides/web/user-interface/ui-customization/supported-slots/|here}.
|
|
20747
|
+
* @example
|
|
20748
|
+
* NutrientViewer.load({
|
|
20749
|
+
* ui: {
|
|
20750
|
+
* commentThread: {
|
|
20751
|
+
* header: (instance, id) => {
|
|
20752
|
+
* const header = document.createElement('div');
|
|
20753
|
+
* header.innerText = 'Custom Comment Thread Header';
|
|
20754
|
+
*
|
|
20755
|
+
* return {
|
|
20756
|
+
* render: (params) => header,
|
|
20757
|
+
* onMount: (id) => {
|
|
20758
|
+
* console.log(`Comment thread header mounted`);
|
|
20759
|
+
* },
|
|
20760
|
+
* onUnmount: (id) => {
|
|
20761
|
+
* console.log(`Comment thread header unmounted`);
|
|
20762
|
+
* }
|
|
20763
|
+
* };
|
|
20764
|
+
* }
|
|
20765
|
+
* }
|
|
20766
|
+
* }
|
|
20767
|
+
* });
|
|
20768
|
+
* @public
|
|
20769
|
+
* @member {?NutrientViewer.UI} ui
|
|
20770
|
+
* @memberof NutrientViewer.Configuration
|
|
20771
|
+
*/
|
|
20772
|
+
ui?: UI;
|
|
20678
20773
|
/**
|
|
20679
20774
|
* ***Server only***
|
|
20680
20775
|
*
|
|
@@ -20836,6 +20931,7 @@ declare const ShowSignatureValidationStatusMode: {
|
|
|
20836
20931
|
|
|
20837
20932
|
/**
|
|
20838
20933
|
* Controls the current sidebar mode in the viewer.
|
|
20934
|
+
* It can also be a custom string corresponding to a custom sidebar id.
|
|
20839
20935
|
* @public
|
|
20840
20936
|
* @readonly
|
|
20841
20937
|
* @memberof NutrientViewer
|
|
@@ -20944,6 +21040,13 @@ T extends AttachmentsSidebarOptions ? {
|
|
|
20944
21040
|
[SidebarMode.ATTACHMENTS]: AttachmentsSidebarOptions;} :
|
|
20945
21041
|
never;
|
|
20946
21042
|
|
|
21043
|
+
declare type SidebarParams = {
|
|
21044
|
+
/**
|
|
21045
|
+
* ID for the sidebar.
|
|
21046
|
+
*/
|
|
21047
|
+
id: string;};
|
|
21048
|
+
|
|
21049
|
+
|
|
20947
21050
|
/**
|
|
20948
21051
|
* Controls the sidebar placement.
|
|
20949
21052
|
* @public
|
|
@@ -20959,6 +21062,8 @@ declare const SidebarPlacement: {
|
|
|
20959
21062
|
readonly END: "END";};
|
|
20960
21063
|
|
|
20961
21064
|
|
|
21065
|
+
declare type SidebarUI = Record<string, UIFactory<SidebarParams>>;
|
|
21066
|
+
|
|
20962
21067
|
declare type Signature = InkAnnotation | ImageAnnotation;
|
|
20963
21068
|
|
|
20964
21069
|
declare type SignatureAppearance = {
|
|
@@ -21616,6 +21721,25 @@ export declare class Size extends Size_base {
|
|
|
21616
21721
|
|
|
21617
21722
|
declare const Size_base: Record_2.Factory<ISize>;
|
|
21618
21723
|
|
|
21724
|
+
declare type Slot<Params> = {
|
|
21725
|
+
/**
|
|
21726
|
+
* The render function is called whenever any `params` change that may affect the UI and expects a DOM element to be returned.
|
|
21727
|
+
*
|
|
21728
|
+
* This may be called any number of times.
|
|
21729
|
+
* You should treat this as a pure function and always return a DOM element based on the current `params`.
|
|
21730
|
+
*/
|
|
21731
|
+
render?: (params: Params) => HTMLElement | null;
|
|
21732
|
+
/**
|
|
21733
|
+
* Invoked once, when the component is mounted to the DOM.
|
|
21734
|
+
* Use it for setup tasks such as attaching event listeners, firing analytics events, etc.
|
|
21735
|
+
*/
|
|
21736
|
+
onMount?: (id: string) => void;
|
|
21737
|
+
/**
|
|
21738
|
+
* Invoked once, when the component is unmounted from the DOM.
|
|
21739
|
+
* Use it for cleanup tasks such as removing event listeners, etc.
|
|
21740
|
+
*/
|
|
21741
|
+
onUnmount?: (id: string) => void;};
|
|
21742
|
+
|
|
21619
21743
|
/**
|
|
21620
21744
|
* @classdesc
|
|
21621
21745
|
* A squiggle markup annotation. Please refer to {@link NutrientViewer.Annotations.MarkupAnnotation} for
|
|
@@ -25135,6 +25259,21 @@ declare type TwoStepSignatureCallback = (arg0: {
|
|
|
25135
25259
|
dataToBeSigned: ArrayBuffer;}) =>
|
|
25136
25260
|
Promise<ArrayBuffer | SignatureCallbackResponsePkcs7 | SignatureCallbackResponseRaw>;
|
|
25137
25261
|
|
|
25262
|
+
declare interface UI {
|
|
25263
|
+
/**
|
|
25264
|
+
* Replace the entire comment thread component UI with a custom implementation by passing a function.
|
|
25265
|
+
* Or customize it partly by passing an object configuration.
|
|
25266
|
+
*
|
|
25267
|
+
* The UI customization function is invoked when the SDK is ready to render a comment thread.
|
|
25268
|
+
*/
|
|
25269
|
+
commentThread?: CommentThreadUIConfig;
|
|
25270
|
+
/**
|
|
25271
|
+
* UI Customization for custom sidebars.
|
|
25272
|
+
* Use this to render a custom sidebar by passing a function.
|
|
25273
|
+
*/
|
|
25274
|
+
sidebar?: SidebarUI;}
|
|
25275
|
+
|
|
25276
|
+
|
|
25138
25277
|
/**
|
|
25139
25278
|
* Indicates which UI element certain JavaScript `Date` instance will be rendered in.
|
|
25140
25279
|
* Used as part of {@link NutrientViewer.Configuration#dateTimeString}.
|
|
@@ -25160,6 +25299,12 @@ declare const UIElement: {
|
|
|
25160
25299
|
readonly Sidebar: "Sidebar";};
|
|
25161
25300
|
|
|
25162
25301
|
|
|
25302
|
+
/**
|
|
25303
|
+
* A factory function that creates a UI customization slot.
|
|
25304
|
+
* It can receive instance and an id, returning a slot object with lifecycle methods.
|
|
25305
|
+
*/
|
|
25306
|
+
declare type UIFactory<Params> = (instance: Instance | null, id: string) => Slot<Params>;
|
|
25307
|
+
|
|
25163
25308
|
declare type UIRendererConfiguration = {
|
|
25164
25309
|
node: Node;
|
|
25165
25310
|
onRenderItem?: ItemCustomRenderer;};
|