@nutrient-sdk/viewer 1.9.0-nightly.20251020 → 1.9.0-nightly.20251022
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 +198 -191
- package/dist/nutrient-viewer-lib/{chunk-848-b5177ef527294b87.js → chunk-848-80625491767a05ef.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-core-worker-a8d696c82d622ce4.js → chunk-core-worker-578e4b7d9efc8f0c.js} +2 -2
- package/dist/nutrient-viewer-lib/{chunk-gdpicture-8ed5a61772f0c4f7.js → chunk-gdpicture-fde3610783829758.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-gdpicture-worker-45af630e809afd63.js → chunk-gdpicture-worker-f606e2bd891fd7b2.js} +2 -2
- package/dist/nutrient-viewer-lib/{chunk-lazy-sha-2854dfb1bb98f286.js → chunk-lazy-sha-93e09d791715558d.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ar-4b37b67eba57375a.js → chunk-locale-ar-0cc2680e46ea0731.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-cs-cd3ac86fbc507c0c.js → chunk-locale-cs-71f65fc30bc849b8.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-cy-c31eb7ad2afb0281.js → chunk-locale-cy-db16f1e76288938b.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-da-320bd86c50c72199.js → chunk-locale-da-962474e9ae3ba049.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-de-c4454415dc86ec92.js → chunk-locale-de-c264a8eef21a23b8.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-el-c345391ae9e52b73.js → chunk-locale-el-53483f3a7e6da311.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-en-GB-4aecd78dbebea423.js → chunk-locale-en-GB-888f55be45d1a13e.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-es-328e5e6b6395f04f.js → chunk-locale-es-478de82e2a5e9a55.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-fi-ff45a438887d2903.js → chunk-locale-fi-38eb3d4cfbc34144.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-fr-1f458bd5f8247c8d.js → chunk-locale-fr-38404a4acf00a3ea.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-fr-CA-3ec663114a74375f.js → chunk-locale-fr-CA-1e543ee6b34e47b8.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-he-81c2d1b0e8b51433.js → chunk-locale-he-d811d2de73b7526a.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-hr-cfecb1b6f86f99d5.js → chunk-locale-hr-685988987e7f2a56.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-id-e9f88039d59e8365.js → chunk-locale-id-419a9aaa59aeff3e.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-it-5fbd8662f42f461e.js → chunk-locale-it-44cce014fd1948b5.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ja-31999ddd4f0e0a0d.js → chunk-locale-ja-139385bc775b260c.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ko-a112080643054ea8.js → chunk-locale-ko-60b5d43b7ff7136f.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ms-5c18892f38e5592b.js → chunk-locale-ms-64e2023c2325a67b.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-nb-NO-ae0ab2a0c2e0ff32.js → chunk-locale-nb-NO-7d1ce2d96160c897.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-nl-79dd56c8b206f9a4.js → chunk-locale-nl-43bf62f631d9fdf7.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-pl-6c3b24388813abaf.js → chunk-locale-pl-6eaf43f7fb1b9e5e.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-pt-6518c9f30537500c.js → chunk-locale-pt-496e4dbf1c020d33.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-pt-PT-c3b6bda5966f9777.js → chunk-locale-pt-PT-7c0774f2185287b6.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ru-6cc52bf5661edbca.js → chunk-locale-ru-bfb11cdc0344963d.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-sk-a202ab5a40372a98.js → chunk-locale-sk-b38570ba631d555f.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-sl-0bb62fb6ff8bf447.js → chunk-locale-sl-977848a0c3245b6a.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-sv-b033deffc327bc73.js → chunk-locale-sv-5ea19db187f924f1.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-th-758cb9d68c3bb329.js → chunk-locale-th-f52efd06b1ddf07d.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-tr-2d53d1c32dc23835.js → chunk-locale-tr-256d244cd6254d53.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-uk-5c5be81f8e9760f3.js → chunk-locale-uk-02dbcf19d011999f.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-zh-Hans-3246b68cd31b13e2.js → chunk-locale-zh-Hans-196a530a5a6dddfe.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-zh-Hant-3657d15985a21c41.js → chunk-locale-zh-Hant-ad4adbed41157747.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-offscreen-renderer-worker-72d404e7f00963ab.js → chunk-offscreen-renderer-worker-fa9d66555caaca38.js} +2 -2
- package/dist/nutrient-viewer-lib/{chunk-server-887e71d34b0cde0f.js → chunk-server-92d3da6a3bdb0ac0.js} +2 -2
- package/dist/nutrient-viewer-lib/{chunk-server-instant-51ed8194fa73c19f.js → chunk-server-instant-e7a8487177709ae8.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-server-rest-feffc3845f8c402e.js → chunk-server-rest-a8811c9a9819e630.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-standalone-f3d2109f1735deba.js → chunk-standalone-0f2535922637e79c.js} +2 -2
- package/dist/nutrient-viewer-lib/{chunk-standalone-server-8584a872b107f1d9.js → chunk-standalone-server-77f2b920eecfe10f.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.9.0-4dd167e.css → nutrient-viewer-1.9.0-8860103.css} +1 -1
- package/dist/nutrient-viewer-lib/nutrient-viewer-26f239091dd2d0aa.wasm.js +1 -1
- package/dist/nutrient-viewer-lib/{nutrient-viewer-d2eeda15b5978b57.wasm → nutrient-viewer-4c09e75c6e152417.wasm} +0 -0
- package/dist/nutrient-viewer-lib/offscreen-render-worker.js +1 -1
- package/dist/nutrient-viewer.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -609,7 +609,7 @@ declare type AnnotationAdditionalActionsType = {
|
|
|
609
609
|
};
|
|
610
610
|
|
|
611
611
|
/** @inline */
|
|
612
|
-
declare type AnnotationBackendJSON<K extends BaseAnnotationJSON =
|
|
612
|
+
declare type AnnotationBackendJSON<K extends BaseAnnotationJSON = Serializers.AnnotationJSONUnion, R extends string = never> = { [P in
|
|
613
613
|
keyof K]?: NonNullable<K[P]> } &
|
|
614
614
|
{ [P in
|
|
615
615
|
Intersection<keyof K, BackendRequiredKeys | R>]-?: Exclude<NonNullable<K[P]>, undefined> };
|
|
@@ -619,10 +619,10 @@ declare type AnnotationJSONToAnnotation<T extends {
|
|
|
619
619
|
}> = AnnotationSerializerTypeMap[GetTypeFromAnnotationJSON<T>]['annotation'];
|
|
620
620
|
|
|
621
621
|
/**
|
|
622
|
-
* @deprecated Use {@link
|
|
622
|
+
* @deprecated Use {@link Serializers.AnnotationJSONUnion} instead.
|
|
623
623
|
* @hidden
|
|
624
624
|
*/
|
|
625
|
-
export declare type AnnotationJSONUnion =
|
|
625
|
+
export declare type AnnotationJSONUnion = Serializers.AnnotationJSONUnion;
|
|
626
626
|
|
|
627
627
|
/**
|
|
628
628
|
* @class
|
|
@@ -969,7 +969,7 @@ export declare namespace Annotations {
|
|
|
969
969
|
|
|
970
970
|
}
|
|
971
971
|
|
|
972
|
-
declare type AnnotationsBackendJSONUnion = AnnotationBackendJSON<
|
|
972
|
+
declare type AnnotationsBackendJSONUnion = AnnotationBackendJSON<Serializers.InkAnnotationJSON> | AnnotationBackendJSON<Serializers.LineAnnotationJSON> | AnnotationBackendJSON<Serializers.RectangleAnnotationJSON> | AnnotationBackendJSON<Serializers.EllipseAnnotationJSON> | AnnotationBackendJSON<Serializers.PolygonAnnotationJSON> | AnnotationBackendJSON<Serializers.PolylineAnnotationJSON> | AnnotationBackendJSON<Serializers.LinkAnnotationJSON> | AnnotationBackendJSON<Serializers.TextMarkupAnnotationJSON> | AnnotationBackendJSON<Serializers.TextMarkupAnnotationJSON> | AnnotationBackendJSON<Serializers.TextMarkupAnnotationJSON> | AnnotationBackendJSON<Serializers.TextMarkupAnnotationJSON> | AnnotationBackendJSON<Serializers.RedactionAnnotationJSON> | AnnotationBackendJSON<Serializers.TextAnnotationJSON> | AnnotationBackendJSON<Serializers.NoteAnnotationJSON> | AnnotationBackendJSON<Serializers.ImageAnnotationJSON> | AnnotationBackendJSON<Serializers.StampAnnotationJSON, 'color'> | AnnotationBackendJSON<Serializers.WidgetAnnotationJSON> | AnnotationBackendJSON<Serializers.CommentMarkerAnnotationJSON> | AnnotationBackendJSON<Serializers.UnknownAnnotationJSON> | AnnotationBackendJSON<Serializers.MediaAnnotationJSON>;
|
|
973
973
|
|
|
974
974
|
declare function AnnotationSelectionMixin<T extends Class<BaseMixin>>(Base: T): {
|
|
975
975
|
new (...args: any[]): {
|
|
@@ -1084,122 +1084,122 @@ declare type AnnotationSerializerTypeMap = {
|
|
|
1084
1084
|
'pspdfkit/ink': {
|
|
1085
1085
|
serializer: InkAnnotationSerializer;
|
|
1086
1086
|
annotation: InkAnnotation;
|
|
1087
|
-
json:
|
|
1088
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1087
|
+
json: Serializers.InkAnnotationJSON;
|
|
1088
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.InkAnnotationJSON>;
|
|
1089
1089
|
};
|
|
1090
1090
|
'pspdfkit/shape/line': {
|
|
1091
1091
|
serializer: LineAnnotationSerializer;
|
|
1092
1092
|
annotation: LineAnnotation;
|
|
1093
|
-
json:
|
|
1094
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1093
|
+
json: Serializers.LineAnnotationJSON;
|
|
1094
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.LineAnnotationJSON>;
|
|
1095
1095
|
};
|
|
1096
1096
|
'pspdfkit/shape/rectangle': {
|
|
1097
1097
|
serializer: RectangleAnnotationSerializer;
|
|
1098
1098
|
annotation: RectangleAnnotation;
|
|
1099
|
-
json:
|
|
1100
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1099
|
+
json: Serializers.RectangleAnnotationJSON;
|
|
1100
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.RectangleAnnotationJSON>;
|
|
1101
1101
|
};
|
|
1102
1102
|
'pspdfkit/shape/ellipse': {
|
|
1103
1103
|
serializer: EllipseAnnotationSerializer;
|
|
1104
1104
|
annotation: EllipseAnnotation;
|
|
1105
|
-
json:
|
|
1106
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1105
|
+
json: Serializers.EllipseAnnotationJSON;
|
|
1106
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.EllipseAnnotationJSON>;
|
|
1107
1107
|
};
|
|
1108
1108
|
'pspdfkit/shape/polygon': {
|
|
1109
1109
|
serializer: PolygonAnnotationSerializer;
|
|
1110
1110
|
annotation: PolygonAnnotation;
|
|
1111
|
-
json:
|
|
1112
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1111
|
+
json: Serializers.PolygonAnnotationJSON;
|
|
1112
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.PolygonAnnotationJSON>;
|
|
1113
1113
|
};
|
|
1114
1114
|
'pspdfkit/shape/polyline': {
|
|
1115
1115
|
serializer: PolylineAnnotationSerializer;
|
|
1116
1116
|
annotation: PolylineAnnotation;
|
|
1117
|
-
json:
|
|
1118
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1117
|
+
json: Serializers.PolylineAnnotationJSON;
|
|
1118
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.PolylineAnnotationJSON>;
|
|
1119
1119
|
};
|
|
1120
1120
|
'pspdfkit/link': {
|
|
1121
1121
|
serializer: LinkAnnotationSerializer;
|
|
1122
1122
|
annotation: LinkAnnotation;
|
|
1123
|
-
json:
|
|
1124
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1123
|
+
json: Serializers.LinkAnnotationJSON;
|
|
1124
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.LinkAnnotationJSON>;
|
|
1125
1125
|
};
|
|
1126
1126
|
'pspdfkit/markup/highlight': {
|
|
1127
1127
|
serializer: TextMarkupAnnotationSerializer;
|
|
1128
1128
|
annotation: HighlightAnnotation;
|
|
1129
|
-
json:
|
|
1130
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1129
|
+
json: Serializers.TextMarkupAnnotationJSON;
|
|
1130
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.TextMarkupAnnotationJSON>;
|
|
1131
1131
|
};
|
|
1132
1132
|
'pspdfkit/markup/squiggly': {
|
|
1133
1133
|
serializer: TextMarkupAnnotationSerializer;
|
|
1134
1134
|
annotation: SquiggleAnnotation;
|
|
1135
|
-
json:
|
|
1136
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1135
|
+
json: Serializers.TextMarkupAnnotationJSON;
|
|
1136
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.TextMarkupAnnotationJSON>;
|
|
1137
1137
|
};
|
|
1138
1138
|
'pspdfkit/markup/strikeout': {
|
|
1139
1139
|
serializer: TextMarkupAnnotationSerializer;
|
|
1140
1140
|
annotation: StrikeOutAnnotation;
|
|
1141
|
-
json:
|
|
1142
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1141
|
+
json: Serializers.TextMarkupAnnotationJSON;
|
|
1142
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.TextMarkupAnnotationJSON>;
|
|
1143
1143
|
};
|
|
1144
1144
|
'pspdfkit/markup/underline': {
|
|
1145
1145
|
serializer: TextMarkupAnnotationSerializer;
|
|
1146
1146
|
annotation: UnderlineAnnotation;
|
|
1147
|
-
json:
|
|
1148
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1147
|
+
json: Serializers.TextMarkupAnnotationJSON;
|
|
1148
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.TextMarkupAnnotationJSON>;
|
|
1149
1149
|
};
|
|
1150
1150
|
'pspdfkit/markup/redaction': {
|
|
1151
1151
|
serializer: RedactionAnnotationSerializer;
|
|
1152
1152
|
annotation: RedactionAnnotation;
|
|
1153
|
-
json:
|
|
1154
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1153
|
+
json: Serializers.RedactionAnnotationJSON;
|
|
1154
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.RedactionAnnotationJSON>;
|
|
1155
1155
|
};
|
|
1156
1156
|
'pspdfkit/text': {
|
|
1157
1157
|
serializer: TextAnnotationSerializer;
|
|
1158
1158
|
annotation: TextAnnotation;
|
|
1159
|
-
json:
|
|
1160
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1159
|
+
json: Serializers.TextAnnotationJSON;
|
|
1160
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.TextAnnotationJSON>;
|
|
1161
1161
|
};
|
|
1162
1162
|
'pspdfkit/note': {
|
|
1163
1163
|
serializer: NoteAnnotationSerializer;
|
|
1164
1164
|
annotation: NoteAnnotation;
|
|
1165
|
-
json:
|
|
1166
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1165
|
+
json: Serializers.NoteAnnotationJSON;
|
|
1166
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.NoteAnnotationJSON>;
|
|
1167
1167
|
};
|
|
1168
1168
|
'pspdfkit/image': {
|
|
1169
1169
|
serializer: ImageAnnotationSerializer;
|
|
1170
1170
|
annotation: ImageAnnotation;
|
|
1171
|
-
json:
|
|
1172
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1171
|
+
json: Serializers.ImageAnnotationJSON;
|
|
1172
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.ImageAnnotationJSON>;
|
|
1173
1173
|
};
|
|
1174
1174
|
'pspdfkit/stamp': {
|
|
1175
1175
|
serializer: StampAnnotationSerializer;
|
|
1176
1176
|
annotation: StampAnnotation;
|
|
1177
|
-
json:
|
|
1178
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1177
|
+
json: Serializers.StampAnnotationJSON;
|
|
1178
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.StampAnnotationJSON, 'color'>;
|
|
1179
1179
|
};
|
|
1180
1180
|
'pspdfkit/widget': {
|
|
1181
1181
|
serializer: WidgetAnnotationSerializer;
|
|
1182
1182
|
annotation: WidgetAnnotation;
|
|
1183
|
-
json:
|
|
1184
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1183
|
+
json: Serializers.WidgetAnnotationJSON;
|
|
1184
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.WidgetAnnotationJSON>;
|
|
1185
1185
|
};
|
|
1186
1186
|
'pspdfkit/comment-marker': {
|
|
1187
1187
|
serializer: CommentMarkerAnnotationSerializer;
|
|
1188
1188
|
annotation: CommentMarkerAnnotation;
|
|
1189
|
-
json:
|
|
1190
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1189
|
+
json: Serializers.CommentMarkerAnnotationJSON;
|
|
1190
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.CommentMarkerAnnotationJSON>;
|
|
1191
1191
|
};
|
|
1192
1192
|
'pspdfkit/unknown': {
|
|
1193
1193
|
serializer: UnknownAnnotationSerializer;
|
|
1194
1194
|
annotation: UnknownAnnotation;
|
|
1195
|
-
json:
|
|
1196
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1195
|
+
json: Serializers.UnknownAnnotationJSON;
|
|
1196
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.UnknownAnnotationJSON>;
|
|
1197
1197
|
};
|
|
1198
1198
|
'pspdfkit/media': {
|
|
1199
1199
|
serializer: MediaAnnotationSerializer;
|
|
1200
1200
|
annotation: MediaAnnotation;
|
|
1201
|
-
json:
|
|
1202
|
-
jsonForBackend: AnnotationBackendJSON<
|
|
1201
|
+
json: Serializers.MediaAnnotationJSON;
|
|
1202
|
+
jsonForBackend: AnnotationBackendJSON<Serializers.MediaAnnotationJSON>;
|
|
1203
1203
|
};
|
|
1204
1204
|
};
|
|
1205
1205
|
|
|
@@ -1838,7 +1838,7 @@ declare interface BaseAnnotationJSON extends ICollaboratorPermissionsOptions {
|
|
|
1838
1838
|
bbox: IRectJSON;
|
|
1839
1839
|
opacity?: number;
|
|
1840
1840
|
flags?: ('noPrint' | 'noZoom' | 'noRotate' | 'noView' | 'hidden' | 'locked' | 'lockedContents' | 'readOnly')[] | null;
|
|
1841
|
-
action?:
|
|
1841
|
+
action?: Serializers.ActionJSON | null;
|
|
1842
1842
|
note?: string | null;
|
|
1843
1843
|
createdAt?: string | Date;
|
|
1844
1844
|
updatedAt?: string | Date;
|
|
@@ -2033,7 +2033,7 @@ export declare class Bookmark extends Bookmark_base {
|
|
|
2033
2033
|
/** Bookmark serializer. Converts a bookmark to InstantJSON compliant objects. */
|
|
2034
2034
|
static toSerializableObject: typeof toJSON;
|
|
2035
2035
|
/** Bookmark deserializer. Converts a bookmark object to a {@link NutrientViewer.Bookmark}. */
|
|
2036
|
-
static fromSerializableObject: (bookmark:
|
|
2036
|
+
static fromSerializableObject: (bookmark: Serializers.BookmarkJSON) => Bookmark;
|
|
2037
2037
|
}
|
|
2038
2038
|
|
|
2039
2039
|
declare const Bookmark_base: Immutable.Record.Factory<BookmarkProps>;
|
|
@@ -4392,14 +4392,14 @@ declare class Comment_2 extends Comment_base {
|
|
|
4392
4392
|
* @param comment - The comment to serialize.
|
|
4393
4393
|
* @returns The serialized comment.
|
|
4394
4394
|
*/
|
|
4395
|
-
static toSerializableObject: (comment: Comment_2) =>
|
|
4395
|
+
static toSerializableObject: (comment: Comment_2) => Serializers.CommentJSON;
|
|
4396
4396
|
/**
|
|
4397
4397
|
* Comment deserializer. Converts a comment object to a {@link NutrientViewer.Comment}.
|
|
4398
4398
|
*
|
|
4399
4399
|
* @param comment - The comment to deserialize.
|
|
4400
4400
|
* @returns The deserialized comment.
|
|
4401
4401
|
*/
|
|
4402
|
-
static fromSerializableObject: (comment:
|
|
4402
|
+
static fromSerializableObject: (comment: Serializers.CommentJSON) => Comment_2;
|
|
4403
4403
|
/**
|
|
4404
4404
|
* A method that returns a set of user IDs that are mentioned in the comment.
|
|
4405
4405
|
*
|
|
@@ -4448,8 +4448,8 @@ export declare class CommentMarkerAnnotation extends Annotation {
|
|
|
4448
4448
|
declare class CommentMarkerAnnotationSerializer extends AnnotationSerializer {
|
|
4449
4449
|
annotation: CommentMarkerAnnotation;
|
|
4450
4450
|
constructor(annotation: CommentMarkerAnnotation);
|
|
4451
|
-
toJSON():
|
|
4452
|
-
static fromJSON(id: InstantID | null, json: Omit<
|
|
4451
|
+
toJSON(): Serializers.CommentMarkerAnnotationJSON;
|
|
4452
|
+
static fromJSON(id: InstantID | null, json: Omit<Serializers.CommentMarkerAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): CommentMarkerAnnotation;
|
|
4453
4453
|
}
|
|
4454
4454
|
|
|
4455
4455
|
declare type CommentParams = {
|
|
@@ -5060,7 +5060,12 @@ declare type CoreActionJSON = {
|
|
|
5060
5060
|
subactions?: Array<CoreActionJSON>;
|
|
5061
5061
|
} | {
|
|
5062
5062
|
type: 'named';
|
|
5063
|
-
action: string
|
|
5063
|
+
action: Omit<string, 'custom'>;
|
|
5064
|
+
subactions?: Array<CoreActionJSON>;
|
|
5065
|
+
} | {
|
|
5066
|
+
type: 'named';
|
|
5067
|
+
action: 'custom';
|
|
5068
|
+
customAction: NamedCustomAction;
|
|
5064
5069
|
subactions?: Array<CoreActionJSON>;
|
|
5065
5070
|
} | {
|
|
5066
5071
|
type: 'javaScript';
|
|
@@ -5527,7 +5532,7 @@ declare type DelimiterSettings = {
|
|
|
5527
5532
|
* @param options - The options for the form field.
|
|
5528
5533
|
* @returns The deserialized form field.
|
|
5529
5534
|
*/
|
|
5530
|
-
declare function deserializeFormField(id: ID, payload:
|
|
5535
|
+
declare function deserializeFormField(id: ID, payload: Serializers.FormFieldJSON, options?: ICollaboratorPermissionsOptions): FormField;
|
|
5531
5536
|
|
|
5532
5537
|
export declare namespace DigitalSignatures {
|
|
5533
5538
|
/**
|
|
@@ -7353,15 +7358,15 @@ export declare class EllipseAnnotation extends ShapeAnnotation<IEllipseAnnotatio
|
|
|
7353
7358
|
}
|
|
7354
7359
|
|
|
7355
7360
|
/**
|
|
7356
|
-
* @deprecated Use {@link
|
|
7361
|
+
* @deprecated Use {@link Serializers.EllipseAnnotationJSON} instead.
|
|
7357
7362
|
* @hidden
|
|
7358
7363
|
*/
|
|
7359
|
-
export declare type EllipseAnnotationJSON =
|
|
7364
|
+
export declare type EllipseAnnotationJSON = Serializers.EllipseAnnotationJSON;
|
|
7360
7365
|
|
|
7361
7366
|
declare class EllipseAnnotationSerializer extends ShapeAnnotationSerializer {
|
|
7362
7367
|
annotation: EllipseAnnotation;
|
|
7363
|
-
toJSON():
|
|
7364
|
-
static fromJSON(id: ID | null, json: Omit<
|
|
7368
|
+
toJSON(): Serializers.EllipseAnnotationJSON;
|
|
7369
|
+
static fromJSON(id: ID | null, json: Omit<Serializers.EllipseAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): EllipseAnnotation;
|
|
7365
7370
|
}
|
|
7366
7371
|
|
|
7367
7372
|
/**
|
|
@@ -10502,7 +10507,7 @@ path?: Array<string | number>)
|
|
|
10502
10507
|
*
|
|
10503
10508
|
* @param annotation - Serialized Annotation
|
|
10504
10509
|
*/
|
|
10505
|
-
declare function fromSerializableObject<K extends
|
|
10510
|
+
declare function fromSerializableObject<K extends Serializers.AnnotationJSONUnion | AnnotationsBackendJSONUnion>(annotation: K): AnnotationJSONToAnnotation<K>;
|
|
10506
10511
|
|
|
10507
10512
|
/**
|
|
10508
10513
|
*
|
|
@@ -11316,16 +11321,16 @@ export declare class ImageAnnotation extends Annotation<IImageAnnotation> {
|
|
|
11316
11321
|
}
|
|
11317
11322
|
|
|
11318
11323
|
/**
|
|
11319
|
-
* @deprecated Use {@link
|
|
11324
|
+
* @deprecated Use {@link Serializers.ImageAnnotationJSON} instead.
|
|
11320
11325
|
* @hidden
|
|
11321
11326
|
*/
|
|
11322
|
-
export declare type ImageAnnotationJSON =
|
|
11327
|
+
export declare type ImageAnnotationJSON = Serializers.ImageAnnotationJSON;
|
|
11323
11328
|
|
|
11324
11329
|
declare class ImageAnnotationSerializer extends AnnotationSerializer {
|
|
11325
11330
|
annotation: ImageAnnotation;
|
|
11326
11331
|
constructor(annotation: ImageAnnotation);
|
|
11327
|
-
toJSON():
|
|
11328
|
-
static fromJSON(id: ID | null, json: Omit<
|
|
11332
|
+
toJSON(): Serializers.ImageAnnotationJSON;
|
|
11333
|
+
static fromJSON(id: ID | null, json: Omit<Serializers.ImageAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): ImageAnnotation;
|
|
11329
11334
|
}
|
|
11330
11335
|
|
|
11331
11336
|
declare interface IMauiBridge {
|
|
@@ -11556,16 +11561,16 @@ export declare class InkAnnotation extends Annotation<IInkAnnotation> {
|
|
|
11556
11561
|
}
|
|
11557
11562
|
|
|
11558
11563
|
/**
|
|
11559
|
-
* @deprecated Use {@link
|
|
11564
|
+
* @deprecated Use {@link Serializers.InkAnnotationJSON} instead.
|
|
11560
11565
|
* @hidden
|
|
11561
11566
|
*/
|
|
11562
|
-
export declare type InkAnnotationJSON =
|
|
11567
|
+
export declare type InkAnnotationJSON = Serializers.InkAnnotationJSON;
|
|
11563
11568
|
|
|
11564
11569
|
declare class InkAnnotationSerializer extends AnnotationSerializer {
|
|
11565
11570
|
annotation: InkAnnotation;
|
|
11566
11571
|
constructor(annotation: InkAnnotation);
|
|
11567
|
-
toJSON():
|
|
11568
|
-
static fromJSON(id: ID | null, json: Omit<
|
|
11572
|
+
toJSON(): Serializers.InkAnnotationJSON;
|
|
11573
|
+
static fromJSON(id: ID | null, json: Omit<Serializers.InkAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): InkAnnotation;
|
|
11569
11574
|
_linesToJSON(): {
|
|
11570
11575
|
points: [number, number][][];
|
|
11571
11576
|
intensities: number[][];
|
|
@@ -13081,15 +13086,15 @@ export declare class LineAnnotation extends ShapeAnnotation<ILineAnnotation> {
|
|
|
13081
13086
|
}
|
|
13082
13087
|
|
|
13083
13088
|
/**
|
|
13084
|
-
* @deprecated Use {@link
|
|
13089
|
+
* @deprecated Use {@link Serializers.LineAnnotationJSON} instead.
|
|
13085
13090
|
* @hidden
|
|
13086
13091
|
*/
|
|
13087
|
-
export declare type LineAnnotationJSON =
|
|
13092
|
+
export declare type LineAnnotationJSON = Serializers.LineAnnotationJSON;
|
|
13088
13093
|
|
|
13089
13094
|
declare class LineAnnotationSerializer extends ShapeAnnotationSerializer {
|
|
13090
13095
|
annotation: LineAnnotation;
|
|
13091
|
-
toJSON():
|
|
13092
|
-
static fromJSON(id: ID | null, json: Omit<
|
|
13096
|
+
toJSON(): Serializers.LineAnnotationJSON;
|
|
13097
|
+
static fromJSON(id: ID | null, json: Omit<Serializers.LineAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): LineAnnotation;
|
|
13093
13098
|
}
|
|
13094
13099
|
|
|
13095
13100
|
/**
|
|
@@ -13198,8 +13203,8 @@ export declare class LinkAnnotation extends Annotation<ILinkAnnotation> {
|
|
|
13198
13203
|
declare class LinkAnnotationSerializer extends AnnotationSerializer {
|
|
13199
13204
|
annotation: LinkAnnotation;
|
|
13200
13205
|
constructor(annotation: LinkAnnotation);
|
|
13201
|
-
toJSON():
|
|
13202
|
-
static fromJSON(id: ID | null, json: Omit<
|
|
13206
|
+
toJSON(): Serializers.LinkAnnotationJSON;
|
|
13207
|
+
static fromJSON(id: ID | null, json: Omit<Serializers.LinkAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): LinkAnnotation;
|
|
13203
13208
|
}
|
|
13204
13209
|
|
|
13205
13210
|
/**
|
|
@@ -14839,8 +14844,8 @@ export declare class MediaAnnotation extends Annotation<IMediaAnnotation> {
|
|
|
14839
14844
|
declare class MediaAnnotationSerializer extends AnnotationSerializer {
|
|
14840
14845
|
annotation: MediaAnnotation;
|
|
14841
14846
|
constructor(annotation: MediaAnnotation);
|
|
14842
|
-
toJSON():
|
|
14843
|
-
static fromJSON(id: ID | null, json: Omit<
|
|
14847
|
+
toJSON(): Serializers.MediaAnnotationJSON;
|
|
14848
|
+
static fromJSON(id: ID | null, json: Omit<Serializers.MediaAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): MediaAnnotation;
|
|
14844
14849
|
}
|
|
14845
14850
|
|
|
14846
14851
|
export declare type MentionableUser = {
|
|
@@ -15777,6 +15782,8 @@ export declare class NamedAction extends Action {
|
|
|
15777
15782
|
constructor(options?: INamedAction);
|
|
15778
15783
|
}
|
|
15779
15784
|
|
|
15785
|
+
declare type NamedCustomAction = 'GoBack' | 'GoForward' | 'GoToPage' | 'Find' | 'Print' | 'Outline' | 'Search' | 'Brightness' | 'ZoomIn' | 'ZoomOut' | 'SaveAs' | 'Info' | 'FullScreen' | 'Close' | 'Quit';
|
|
15786
|
+
|
|
15780
15787
|
/** @inline */
|
|
15781
15788
|
declare interface NodeAnnotationToolbarItem extends Omit<Shared, 'node'> {
|
|
15782
15789
|
/**
|
|
@@ -15872,16 +15879,16 @@ export declare class NoteAnnotation<T extends INoteAnnotation = INoteAnnotation>
|
|
|
15872
15879
|
}
|
|
15873
15880
|
|
|
15874
15881
|
/**
|
|
15875
|
-
* @deprecated Use {@link
|
|
15882
|
+
* @deprecated Use {@link Serializers.NoteAnnotationJSON} instead.
|
|
15876
15883
|
* @hidden
|
|
15877
15884
|
*/
|
|
15878
|
-
export declare type NoteAnnotationJSON =
|
|
15885
|
+
export declare type NoteAnnotationJSON = Serializers.NoteAnnotationJSON;
|
|
15879
15886
|
|
|
15880
15887
|
declare class NoteAnnotationSerializer extends AnnotationSerializer {
|
|
15881
15888
|
annotation: NoteAnnotation;
|
|
15882
15889
|
constructor(annotation: NoteAnnotation);
|
|
15883
|
-
toJSON():
|
|
15884
|
-
static fromJSON(id: ID | null, json: Omit<
|
|
15890
|
+
toJSON(): Serializers.NoteAnnotationJSON;
|
|
15891
|
+
static fromJSON(id: ID | null, json: Omit<Serializers.NoteAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): NoteAnnotation;
|
|
15885
15892
|
}
|
|
15886
15893
|
|
|
15887
15894
|
/**
|
|
@@ -17107,15 +17114,15 @@ export declare class PolygonAnnotation extends ShapeAnnotation<IPolygonAnnotatio
|
|
|
17107
17114
|
}
|
|
17108
17115
|
|
|
17109
17116
|
/**
|
|
17110
|
-
* @deprecated Use {@link
|
|
17117
|
+
* @deprecated Use {@link Serializers.PolygonAnnotationJSON} instead.
|
|
17111
17118
|
* @hidden
|
|
17112
17119
|
*/
|
|
17113
|
-
export declare type PolygonAnnotationJSON =
|
|
17120
|
+
export declare type PolygonAnnotationJSON = Serializers.PolygonAnnotationJSON;
|
|
17114
17121
|
|
|
17115
17122
|
declare class PolygonAnnotationSerializer extends ShapeAnnotationSerializer {
|
|
17116
17123
|
annotation: PolygonAnnotation;
|
|
17117
|
-
toJSON():
|
|
17118
|
-
static fromJSON(id: ID | null, json: Omit<
|
|
17124
|
+
toJSON(): Serializers.PolygonAnnotationJSON;
|
|
17125
|
+
static fromJSON(id: ID | null, json: Omit<Serializers.PolygonAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: IObject): PolygonAnnotation;
|
|
17119
17126
|
}
|
|
17120
17127
|
|
|
17121
17128
|
/**
|
|
@@ -17177,15 +17184,15 @@ export declare class PolylineAnnotation extends ShapeAnnotation<IPolyLineAnnotat
|
|
|
17177
17184
|
}
|
|
17178
17185
|
|
|
17179
17186
|
/**
|
|
17180
|
-
* @deprecated Use {@link
|
|
17187
|
+
* @deprecated Use {@link Serializers.PolylineAnnotationJSON} instead.
|
|
17181
17188
|
* @hidden
|
|
17182
17189
|
*/
|
|
17183
|
-
export declare type PolylineAnnotationJSON =
|
|
17190
|
+
export declare type PolylineAnnotationJSON = Serializers.PolylineAnnotationJSON;
|
|
17184
17191
|
|
|
17185
17192
|
declare class PolylineAnnotationSerializer extends ShapeAnnotationSerializer {
|
|
17186
17193
|
annotation: PolylineAnnotation;
|
|
17187
|
-
toJSON():
|
|
17188
|
-
static fromJSON(id: ID | null, json: Omit<
|
|
17194
|
+
toJSON(): Serializers.PolylineAnnotationJSON;
|
|
17195
|
+
static fromJSON(id: ID | null, json: Omit<Serializers.PolylineAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): PolylineAnnotation;
|
|
17189
17196
|
}
|
|
17190
17197
|
|
|
17191
17198
|
/**
|
|
@@ -18373,15 +18380,15 @@ export declare class RectangleAnnotation extends ShapeAnnotation<IRectangleAnnot
|
|
|
18373
18380
|
}
|
|
18374
18381
|
|
|
18375
18382
|
/**
|
|
18376
|
-
* @deprecated Use {@link
|
|
18383
|
+
* @deprecated Use {@link Serializers.RectangleAnnotationJSON} instead.
|
|
18377
18384
|
* @hidden
|
|
18378
18385
|
*/
|
|
18379
|
-
export declare type RectangleAnnotationJSON =
|
|
18386
|
+
export declare type RectangleAnnotationJSON = Serializers.RectangleAnnotationJSON;
|
|
18380
18387
|
|
|
18381
18388
|
declare class RectangleAnnotationSerializer extends ShapeAnnotationSerializer {
|
|
18382
18389
|
annotation: RectangleAnnotation;
|
|
18383
|
-
toJSON():
|
|
18384
|
-
static fromJSON(id: ID | null, json: Omit<
|
|
18390
|
+
toJSON(): Serializers.RectangleAnnotationJSON;
|
|
18391
|
+
static fromJSON(id: ID | null, json: Omit<Serializers.RectangleAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): RectangleAnnotation;
|
|
18385
18392
|
}
|
|
18386
18393
|
|
|
18387
18394
|
/**
|
|
@@ -18442,10 +18449,10 @@ export declare class RedactionAnnotation extends TextMarkupAnnotation<IRedaction
|
|
|
18442
18449
|
}
|
|
18443
18450
|
|
|
18444
18451
|
/**
|
|
18445
|
-
* @deprecated Use {@link
|
|
18452
|
+
* @deprecated Use {@link Serializers.RedactionAnnotationJSON} instead.
|
|
18446
18453
|
* @hidden
|
|
18447
18454
|
*/
|
|
18448
|
-
export declare type RedactionAnnotationJSON =
|
|
18455
|
+
export declare type RedactionAnnotationJSON = Serializers.RedactionAnnotationJSON;
|
|
18449
18456
|
|
|
18450
18457
|
/**
|
|
18451
18458
|
*
|
|
@@ -18517,8 +18524,8 @@ export declare type RedactionAnnotationPreset = {
|
|
|
18517
18524
|
declare class RedactionAnnotationSerializer extends BaseTextMarkupSerializer {
|
|
18518
18525
|
annotation: RedactionAnnotation;
|
|
18519
18526
|
constructor(annotation: RedactionAnnotation);
|
|
18520
|
-
toJSON():
|
|
18521
|
-
static fromJSON(id: ID | null, json: Omit<
|
|
18527
|
+
toJSON(): Serializers.RedactionAnnotationJSON;
|
|
18528
|
+
static fromJSON(id: ID | null, json: Omit<Serializers.RedactionAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): RedactionAnnotation;
|
|
18522
18529
|
}
|
|
18523
18530
|
|
|
18524
18531
|
declare function RedactionsMixin<T extends Class<BaseMixin>>(Base: T): {
|
|
@@ -20123,6 +20130,79 @@ declare interface Seq<K, V> extends Collection<K, V> {
|
|
|
20123
20130
|
: this;
|
|
20124
20131
|
}
|
|
20125
20132
|
|
|
20133
|
+
declare function serializeAnnotation(annotation: InkAnnotation): AnnotationBackendJSON<Serializers.InkAnnotationJSON>;
|
|
20134
|
+
|
|
20135
|
+
declare function serializeAnnotation(annotation: LineAnnotation): AnnotationBackendJSON<Serializers.LineAnnotationJSON>;
|
|
20136
|
+
|
|
20137
|
+
declare function serializeAnnotation(annotation: RectangleAnnotation): AnnotationBackendJSON<Serializers.RectangleAnnotationJSON>;
|
|
20138
|
+
|
|
20139
|
+
declare function serializeAnnotation(annotation: EllipseAnnotation): AnnotationBackendJSON<Serializers.EllipseAnnotationJSON>;
|
|
20140
|
+
|
|
20141
|
+
declare function serializeAnnotation(annotation: PolygonAnnotation): AnnotationBackendJSON<Serializers.PolygonAnnotationJSON>;
|
|
20142
|
+
|
|
20143
|
+
declare function serializeAnnotation(annotation: PolylineAnnotation): AnnotationBackendJSON<Serializers.PolylineAnnotationJSON>;
|
|
20144
|
+
|
|
20145
|
+
declare function serializeAnnotation(annotation: TextAnnotation): AnnotationBackendJSON<Serializers.TextAnnotationJSON>;
|
|
20146
|
+
|
|
20147
|
+
declare function serializeAnnotation(annotation: NoteAnnotation): AnnotationBackendJSON<Serializers.NoteAnnotationJSON>;
|
|
20148
|
+
|
|
20149
|
+
declare function serializeAnnotation(annotation: StampAnnotation): AnnotationBackendJSON<Serializers.StampAnnotationJSON, 'color'>;
|
|
20150
|
+
|
|
20151
|
+
declare function serializeAnnotation(annotation: ImageAnnotation): AnnotationBackendJSON<Serializers.ImageAnnotationJSON>;
|
|
20152
|
+
|
|
20153
|
+
declare function serializeAnnotation(annotation: MediaAnnotation): AnnotationBackendJSON<Serializers.MediaAnnotationJSON>;
|
|
20154
|
+
|
|
20155
|
+
declare function serializeAnnotation(annotation: LinkAnnotation): AnnotationBackendJSON<Serializers.LinkAnnotationJSON>;
|
|
20156
|
+
|
|
20157
|
+
declare function serializeAnnotation(annotation: WidgetAnnotation): AnnotationBackendJSON<Serializers.WidgetAnnotationJSON>;
|
|
20158
|
+
|
|
20159
|
+
declare function serializeAnnotation(annotation: TextMarkupAnnotation): AnnotationBackendJSON<Serializers.TextMarkupAnnotationJSON>;
|
|
20160
|
+
|
|
20161
|
+
declare function serializeAnnotation(annotation: RedactionAnnotation): AnnotationBackendJSON<Serializers.RedactionAnnotationJSON>;
|
|
20162
|
+
|
|
20163
|
+
declare function serializeAnnotation(annotation: CommentMarkerAnnotation): AnnotationBackendJSON<Serializers.CommentMarkerAnnotationJSON>;
|
|
20164
|
+
|
|
20165
|
+
declare function serializeAnnotation(annotation: UnknownAnnotation): AnnotationBackendJSON<Serializers.UnknownAnnotationJSON>;
|
|
20166
|
+
|
|
20167
|
+
declare function serializeAnnotation(annotation: AnnotationsUnion): AnnotationsBackendJSONUnion;
|
|
20168
|
+
|
|
20169
|
+
/** @inline */
|
|
20170
|
+
declare type SerializedAdditionalActionsType = { [key in
|
|
20171
|
+
ActionTriggerEventType | FormFieldEventTriggerType | FormFieldInputEventTriggerType | WidgetActionTriggerEventType as string]?: {
|
|
20172
|
+
type: string;
|
|
20173
|
+
[key: string]: unknown;
|
|
20174
|
+
} };
|
|
20175
|
+
|
|
20176
|
+
declare type SerializedJSON = {
|
|
20177
|
+
skippedPdfObjectIds?: number[];
|
|
20178
|
+
annotations?: Serializers.AnnotationJSONUnion[];
|
|
20179
|
+
formFields?: Serializers.FormFieldJSON[];
|
|
20180
|
+
skippedPdfFormFieldIds?: number[];
|
|
20181
|
+
formFieldValues?: Record<string, any>[];
|
|
20182
|
+
comments?: Record<string, any>[];
|
|
20183
|
+
skippedComments?: number[];
|
|
20184
|
+
attachments?: Record<string, {
|
|
20185
|
+
binary: string;
|
|
20186
|
+
contentType: string;
|
|
20187
|
+
}>;
|
|
20188
|
+
skippedPdfBookmarkIds?: string[];
|
|
20189
|
+
bookmarks?: Serializers.BookmarkJSON[];
|
|
20190
|
+
};
|
|
20191
|
+
|
|
20192
|
+
/**
|
|
20193
|
+
* Form field serializer. Converts one of the supported {@link NutrientViewer.FormFields} to InstantJSON compliant objects.
|
|
20194
|
+
*
|
|
20195
|
+
* @returns The serialized form field.
|
|
20196
|
+
*/
|
|
20197
|
+
declare function serializeFormField(formField: FormField): Serializers.FormFieldJSON;
|
|
20198
|
+
|
|
20199
|
+
/**
|
|
20200
|
+
* Annotation preset serializer. Converts a {@link AnnotationPreset} to an object.
|
|
20201
|
+
*
|
|
20202
|
+
* @param preset - Annotation preset to serialize.
|
|
20203
|
+
*/
|
|
20204
|
+
declare function serializePreset(preset: AnnotationPreset): Record<string, any>;
|
|
20205
|
+
|
|
20126
20206
|
/**
|
|
20127
20207
|
* This namespace contains types and interfaces for serializing and deserializing
|
|
20128
20208
|
* PDF annotations, form fields, comments, bookmarks, and related data
|
|
@@ -20181,7 +20261,7 @@ declare interface Seq<K, V> extends Collection<K, V> {
|
|
|
20181
20261
|
* @see {@link NutrientViewer.Bookmark.toSerializableObject} | {@link NutrientViewer.Bookmark.fromSerializableObject}
|
|
20182
20262
|
* @see {@link NutrientViewer.Comment.toSerializableObject} | {@link NutrientViewer.Comment.fromSerializableObject}
|
|
20183
20263
|
*/
|
|
20184
|
-
export declare namespace
|
|
20264
|
+
export declare namespace Serializers {
|
|
20185
20265
|
/**
|
|
20186
20266
|
* @group FormField
|
|
20187
20267
|
*/
|
|
@@ -20548,79 +20628,6 @@ export declare namespace Serialisers {
|
|
|
20548
20628
|
export type ActionJSON = CoreActionJSON;
|
|
20549
20629
|
}
|
|
20550
20630
|
|
|
20551
|
-
declare function serializeAnnotation(annotation: InkAnnotation): AnnotationBackendJSON<Serialisers.InkAnnotationJSON>;
|
|
20552
|
-
|
|
20553
|
-
declare function serializeAnnotation(annotation: LineAnnotation): AnnotationBackendJSON<Serialisers.LineAnnotationJSON>;
|
|
20554
|
-
|
|
20555
|
-
declare function serializeAnnotation(annotation: RectangleAnnotation): AnnotationBackendJSON<Serialisers.RectangleAnnotationJSON>;
|
|
20556
|
-
|
|
20557
|
-
declare function serializeAnnotation(annotation: EllipseAnnotation): AnnotationBackendJSON<Serialisers.EllipseAnnotationJSON>;
|
|
20558
|
-
|
|
20559
|
-
declare function serializeAnnotation(annotation: PolygonAnnotation): AnnotationBackendJSON<Serialisers.PolygonAnnotationJSON>;
|
|
20560
|
-
|
|
20561
|
-
declare function serializeAnnotation(annotation: PolylineAnnotation): AnnotationBackendJSON<Serialisers.PolylineAnnotationJSON>;
|
|
20562
|
-
|
|
20563
|
-
declare function serializeAnnotation(annotation: TextAnnotation): AnnotationBackendJSON<Serialisers.TextAnnotationJSON>;
|
|
20564
|
-
|
|
20565
|
-
declare function serializeAnnotation(annotation: NoteAnnotation): AnnotationBackendJSON<Serialisers.NoteAnnotationJSON>;
|
|
20566
|
-
|
|
20567
|
-
declare function serializeAnnotation(annotation: StampAnnotation): AnnotationBackendJSON<Serialisers.StampAnnotationJSON, 'color'>;
|
|
20568
|
-
|
|
20569
|
-
declare function serializeAnnotation(annotation: ImageAnnotation): AnnotationBackendJSON<Serialisers.ImageAnnotationJSON>;
|
|
20570
|
-
|
|
20571
|
-
declare function serializeAnnotation(annotation: MediaAnnotation): AnnotationBackendJSON<Serialisers.MediaAnnotationJSON>;
|
|
20572
|
-
|
|
20573
|
-
declare function serializeAnnotation(annotation: LinkAnnotation): AnnotationBackendJSON<Serialisers.LinkAnnotationJSON>;
|
|
20574
|
-
|
|
20575
|
-
declare function serializeAnnotation(annotation: WidgetAnnotation): AnnotationBackendJSON<Serialisers.WidgetAnnotationJSON>;
|
|
20576
|
-
|
|
20577
|
-
declare function serializeAnnotation(annotation: TextMarkupAnnotation): AnnotationBackendJSON<Serialisers.TextMarkupAnnotationJSON>;
|
|
20578
|
-
|
|
20579
|
-
declare function serializeAnnotation(annotation: RedactionAnnotation): AnnotationBackendJSON<Serialisers.RedactionAnnotationJSON>;
|
|
20580
|
-
|
|
20581
|
-
declare function serializeAnnotation(annotation: CommentMarkerAnnotation): AnnotationBackendJSON<Serialisers.CommentMarkerAnnotationJSON>;
|
|
20582
|
-
|
|
20583
|
-
declare function serializeAnnotation(annotation: UnknownAnnotation): AnnotationBackendJSON<Serialisers.UnknownAnnotationJSON>;
|
|
20584
|
-
|
|
20585
|
-
declare function serializeAnnotation(annotation: AnnotationsUnion): AnnotationsBackendJSONUnion;
|
|
20586
|
-
|
|
20587
|
-
/** @inline */
|
|
20588
|
-
declare type SerializedAdditionalActionsType = { [key in
|
|
20589
|
-
ActionTriggerEventType | FormFieldEventTriggerType | FormFieldInputEventTriggerType | WidgetActionTriggerEventType as string]?: {
|
|
20590
|
-
type: string;
|
|
20591
|
-
[key: string]: unknown;
|
|
20592
|
-
} };
|
|
20593
|
-
|
|
20594
|
-
declare type SerializedJSON = {
|
|
20595
|
-
skippedPdfObjectIds?: number[];
|
|
20596
|
-
annotations?: Serialisers.AnnotationJSONUnion[];
|
|
20597
|
-
formFields?: Serialisers.FormFieldJSON[];
|
|
20598
|
-
skippedPdfFormFieldIds?: number[];
|
|
20599
|
-
formFieldValues?: Record<string, any>[];
|
|
20600
|
-
comments?: Record<string, any>[];
|
|
20601
|
-
skippedComments?: number[];
|
|
20602
|
-
attachments?: Record<string, {
|
|
20603
|
-
binary: string;
|
|
20604
|
-
contentType: string;
|
|
20605
|
-
}>;
|
|
20606
|
-
skippedPdfBookmarkIds?: string[];
|
|
20607
|
-
bookmarks?: Serialisers.BookmarkJSON[];
|
|
20608
|
-
};
|
|
20609
|
-
|
|
20610
|
-
/**
|
|
20611
|
-
* Form field serializer. Converts one of the supported {@link NutrientViewer.FormFields} to InstantJSON compliant objects.
|
|
20612
|
-
*
|
|
20613
|
-
* @returns The serialized form field.
|
|
20614
|
-
*/
|
|
20615
|
-
declare function serializeFormField(formField: FormField): Serialisers.FormFieldJSON;
|
|
20616
|
-
|
|
20617
|
-
/**
|
|
20618
|
-
* Annotation preset serializer. Converts a {@link AnnotationPreset} to an object.
|
|
20619
|
-
*
|
|
20620
|
-
* @param preset - Annotation preset to serialize.
|
|
20621
|
-
*/
|
|
20622
|
-
declare function serializePreset(preset: AnnotationPreset): Record<string, any>;
|
|
20623
|
-
|
|
20624
20631
|
declare interface ServerConfiguration extends SharedConfiguration {
|
|
20625
20632
|
/**
|
|
20626
20633
|
* ***required, Server only***
|
|
@@ -21207,8 +21214,8 @@ export declare abstract class ShapeAnnotation<T extends IShapeAnnotation = IShap
|
|
|
21207
21214
|
|
|
21208
21215
|
declare abstract class ShapeAnnotationSerializer extends AnnotationSerializer {
|
|
21209
21216
|
annotation: ShapeAnnotationsUnion;
|
|
21210
|
-
toJSON():
|
|
21211
|
-
static fromJSON(id: ID | null, json: Omit<
|
|
21217
|
+
toJSON(): Serializers.ShapeAnnotationJSON;
|
|
21218
|
+
static fromJSON(id: ID | null, json: Omit<Serializers.ShapeAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): {
|
|
21212
21219
|
strokeWidth: number | null;
|
|
21213
21220
|
strokeColor: Color | null;
|
|
21214
21221
|
fillColor: Color | null;
|
|
@@ -23591,16 +23598,16 @@ export declare class StampAnnotation extends Annotation<IStampAnnotation> {
|
|
|
23591
23598
|
}
|
|
23592
23599
|
|
|
23593
23600
|
/**
|
|
23594
|
-
* @deprecated Use {@link
|
|
23601
|
+
* @deprecated Use {@link Serializers.StampAnnotationJSON} instead.
|
|
23595
23602
|
* @hidden
|
|
23596
23603
|
*/
|
|
23597
|
-
export declare type StampAnnotationJSON =
|
|
23604
|
+
export declare type StampAnnotationJSON = Serializers.StampAnnotationJSON;
|
|
23598
23605
|
|
|
23599
23606
|
declare class StampAnnotationSerializer extends AnnotationSerializer {
|
|
23600
23607
|
annotation: StampAnnotation;
|
|
23601
23608
|
constructor(annotation: StampAnnotation);
|
|
23602
|
-
toJSON():
|
|
23603
|
-
static fromJSON(id: ID | null, json: Omit<
|
|
23609
|
+
toJSON(): Serializers.StampAnnotationJSON;
|
|
23610
|
+
static fromJSON(id: ID | null, json: Omit<Serializers.StampAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): StampAnnotation;
|
|
23604
23611
|
}
|
|
23605
23612
|
|
|
23606
23613
|
declare function StampAnnotationTemplatesMixin<T extends Class<BaseMixin>>(Base: T): {
|
|
@@ -24503,16 +24510,16 @@ export declare class TextAnnotation extends Annotation<ITextAnnotation> {
|
|
|
24503
24510
|
}
|
|
24504
24511
|
|
|
24505
24512
|
/**
|
|
24506
|
-
* @deprecated Use {@link
|
|
24513
|
+
* @deprecated Use {@link Serializers.TextAnnotationJSON} instead.
|
|
24507
24514
|
* @hidden
|
|
24508
24515
|
*/
|
|
24509
|
-
export declare type TextAnnotationJSON =
|
|
24516
|
+
export declare type TextAnnotationJSON = Serializers.TextAnnotationJSON;
|
|
24510
24517
|
|
|
24511
24518
|
declare class TextAnnotationSerializer extends AnnotationSerializer {
|
|
24512
24519
|
annotation: TextAnnotation;
|
|
24513
24520
|
constructor(annotation: TextAnnotation);
|
|
24514
|
-
toJSON():
|
|
24515
|
-
static fromJSON(id: ID | null, json: Omit<
|
|
24521
|
+
toJSON(): Serializers.TextAnnotationJSON;
|
|
24522
|
+
static fromJSON(id: ID | null, json: Omit<Serializers.TextAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): TextAnnotation;
|
|
24516
24523
|
_calloutToJSON(): {
|
|
24517
24524
|
start: [number, number];
|
|
24518
24525
|
knee: [number, number] | null;
|
|
@@ -24520,7 +24527,7 @@ declare class TextAnnotationSerializer extends AnnotationSerializer {
|
|
|
24520
24527
|
cap: ILineCap | null;
|
|
24521
24528
|
innerRectInset: InsetJSON | null;
|
|
24522
24529
|
} | null;
|
|
24523
|
-
static _JSONToCallout(calloutJSON:
|
|
24530
|
+
static _JSONToCallout(calloutJSON: Serializers.TextAnnotationJSON['callout']): Callout | null | undefined;
|
|
24524
24531
|
}
|
|
24525
24532
|
|
|
24526
24533
|
declare type TextComparisonAction = ReturnType<ActionCreators[keyof ActionCreators]>;
|
|
@@ -25085,16 +25092,16 @@ export declare class TextMarkupAnnotation<T extends ITextMarkupAnnotation = ITex
|
|
|
25085
25092
|
}
|
|
25086
25093
|
|
|
25087
25094
|
/**
|
|
25088
|
-
* @deprecated Use {@link
|
|
25095
|
+
* @deprecated Use {@link Serializers.TextMarkupAnnotationJSON} instead.
|
|
25089
25096
|
* @hidden
|
|
25090
25097
|
*/
|
|
25091
|
-
export declare type TextMarkupAnnotationJSON =
|
|
25098
|
+
export declare type TextMarkupAnnotationJSON = Serializers.TextMarkupAnnotationJSON;
|
|
25092
25099
|
|
|
25093
25100
|
declare class TextMarkupAnnotationSerializer extends BaseTextMarkupSerializer {
|
|
25094
25101
|
annotation: TextMarkupAnnotationsUnion;
|
|
25095
25102
|
constructor(annotation: TextMarkupAnnotationsUnion);
|
|
25096
|
-
toJSON():
|
|
25097
|
-
static fromJSON(id: ID | null, json: Omit<
|
|
25103
|
+
toJSON(): Serializers.TextMarkupAnnotationJSON;
|
|
25104
|
+
static fromJSON(id: ID | null, json: Omit<Serializers.TextMarkupAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): TextMarkupAnnotationsUnion;
|
|
25098
25105
|
typeForAnnotation(): "pspdfkit/markup/highlight" | "pspdfkit/markup/squiggly" | "pspdfkit/markup/strikeout" | "pspdfkit/markup/underline" | "pspdfkit/markup/redaction";
|
|
25099
25106
|
}
|
|
25100
25107
|
|
|
@@ -25639,7 +25646,7 @@ declare type TimestampType = {
|
|
|
25639
25646
|
password?: string;
|
|
25640
25647
|
};
|
|
25641
25648
|
|
|
25642
|
-
declare function toJSON(bookmark: Bookmark):
|
|
25649
|
+
declare function toJSON(bookmark: Bookmark): Serializers.BookmarkJSON;
|
|
25643
25650
|
|
|
25644
25651
|
/**
|
|
25645
25652
|
* Describes the properties of a Toolbar Item.
|
|
@@ -26242,10 +26249,10 @@ export declare class UnknownAnnotation extends Annotation {}
|
|
|
26242
26249
|
|
|
26243
26250
|
|
|
26244
26251
|
/**
|
|
26245
|
-
* @deprecated Use {@link
|
|
26252
|
+
* @deprecated Use {@link Serializers.UnknownAnnotationJSON} instead.
|
|
26246
26253
|
* @hidden
|
|
26247
26254
|
*/
|
|
26248
|
-
export declare type UnknownAnnotationJSON =
|
|
26255
|
+
export declare type UnknownAnnotationJSON = Serializers.UnknownAnnotationJSON;
|
|
26249
26256
|
|
|
26250
26257
|
/**
|
|
26251
26258
|
* Unknown annotations are used when we discover an annotation type during deserializing that we
|
|
@@ -26254,8 +26261,8 @@ export declare type UnknownAnnotationJSON = Serialisers.UnknownAnnotationJSON;
|
|
|
26254
26261
|
declare class UnknownAnnotationSerializer extends AnnotationSerializer {
|
|
26255
26262
|
annotation: UnknownAnnotation;
|
|
26256
26263
|
constructor(annotation: UnknownAnnotation);
|
|
26257
|
-
toJSON():
|
|
26258
|
-
static fromJSON(id: ID | null, json: Omit<
|
|
26264
|
+
toJSON(): Serializers.UnknownAnnotationJSON;
|
|
26265
|
+
static fromJSON(id: ID | null, json: Omit<Serializers.UnknownAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): UnknownAnnotation;
|
|
26259
26266
|
}
|
|
26260
26267
|
|
|
26261
26268
|
/**
|
|
@@ -26950,16 +26957,16 @@ declare type WidgetAnnotationAdditionalActionsType = {
|
|
|
26950
26957
|
};
|
|
26951
26958
|
|
|
26952
26959
|
/**
|
|
26953
|
-
* @deprecated Use {@link
|
|
26960
|
+
* @deprecated Use {@link Serializers.WidgetAnnotationJSON} instead.
|
|
26954
26961
|
* @hidden
|
|
26955
26962
|
*/
|
|
26956
|
-
export declare type WidgetAnnotationJSON =
|
|
26963
|
+
export declare type WidgetAnnotationJSON = Serializers.WidgetAnnotationJSON;
|
|
26957
26964
|
|
|
26958
26965
|
declare class WidgetAnnotationSerializer extends AnnotationSerializer {
|
|
26959
26966
|
annotation: WidgetAnnotation;
|
|
26960
26967
|
constructor(annotation: WidgetAnnotation);
|
|
26961
|
-
toJSON():
|
|
26962
|
-
static fromJSON(id: ID | null, json: Omit<
|
|
26968
|
+
toJSON(): Serializers.WidgetAnnotationJSON;
|
|
26969
|
+
static fromJSON(id: ID | null, json: Omit<Serializers.WidgetAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): WidgetAnnotation;
|
|
26963
26970
|
}
|
|
26964
26971
|
|
|
26965
26972
|
/** @inline */
|