@vue-pdf-viewer/shared 1.4.0-beta.2 → 1.4.0-beta.4
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/locales/en_US.json +1 -0
- package/dist/locales/it_IT.json +1 -0
- package/dist/locales/pt_PT.json +1 -0
- package/dist/locales/th_TH.json +1 -0
- package/dist/locales/zh_CN.json +2 -1
- package/dist/types.d.ts +10 -5
- package/dist/types.js +11 -5
- package/package.json +1 -1
package/dist/locales/en_US.json
CHANGED
|
@@ -123,5 +123,6 @@
|
|
|
123
123
|
"annotationImageLabel": "Image",
|
|
124
124
|
"annotationImageTooltip": "Add image",
|
|
125
125
|
"annotationImageUnsupportedFileMessage": "Unsupported file type",
|
|
126
|
+
"annotationImageUnsupportedFileSizeMessage": "File should not exceed {size}",
|
|
126
127
|
"annotationImageDeleteTooltip": "Remove image"
|
|
127
128
|
}
|
package/dist/locales/it_IT.json
CHANGED
|
@@ -123,5 +123,6 @@
|
|
|
123
123
|
"annotationImageLabel": "Immagine",
|
|
124
124
|
"annotationImageTooltip": "Aggiungi immagine",
|
|
125
125
|
"annotationImageUnsupportedFileMessage": "Tipo di file non supportato",
|
|
126
|
+
"annotationImageUnsupportedFileSizeMessage": "Il file non deve superare {size}",
|
|
126
127
|
"annotationImageDeleteTooltip": "Elimina immagine"
|
|
127
128
|
}
|
package/dist/locales/pt_PT.json
CHANGED
|
@@ -123,5 +123,6 @@
|
|
|
123
123
|
"annotationImageLabel": "Imagem",
|
|
124
124
|
"annotationImageTooltip": "Adicionar imagem",
|
|
125
125
|
"annotationImageUnsupportedFileMessage": "Tipo de arquivo não suportado",
|
|
126
|
+
"annotationImageUnsupportedFileSizeMessage": "O arquivo não deve exceder {size}",
|
|
126
127
|
"annotationImageDeleteTooltip": "Excluir imagem"
|
|
127
128
|
}
|
package/dist/locales/th_TH.json
CHANGED
|
@@ -123,5 +123,6 @@
|
|
|
123
123
|
"annotationImageLabel": "รูปภาพ",
|
|
124
124
|
"annotationImageTooltip": "เพิ่มรูปภาพ",
|
|
125
125
|
"annotationImageUnsupportedFileMessage": "ประเภทไฟล์ไม่รองรับ",
|
|
126
|
+
"annotationImageUnsupportedFileSizeMessage": "ไฟล์ต้องมีขนาดไม่เกิน {size}",
|
|
126
127
|
"annotationImageDeleteTooltip": "ลบรูปภาพ"
|
|
127
128
|
}
|
package/dist/locales/zh_CN.json
CHANGED
|
@@ -122,6 +122,7 @@
|
|
|
122
122
|
"annotationCommentTooltip": "注释",
|
|
123
123
|
"annotationImageLabel": "图片",
|
|
124
124
|
"annotationImageTooltip": "添加图片",
|
|
125
|
-
"annotationImageUnsupportedFileMessage": "
|
|
125
|
+
"annotationImageUnsupportedFileMessage": "不支持此文件类型",
|
|
126
|
+
"annotationImageUnsupportedFileSizeMessage": "文件大小不能超过 {size}",
|
|
126
127
|
"annotationImageDeleteTooltip": "删除图片"
|
|
127
128
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -197,14 +197,19 @@ export interface ImageOption extends AnnotationToolOption {
|
|
|
197
197
|
types?: ImageType[];
|
|
198
198
|
}
|
|
199
199
|
export declare enum ImageType {
|
|
200
|
+
apng = "image/apng",
|
|
201
|
+
avif = "image/avif",
|
|
202
|
+
bmp = "image/bmp",
|
|
203
|
+
gif = "image/gif",
|
|
200
204
|
jpeg = "image/jpeg",
|
|
201
205
|
png = "image/png",
|
|
202
|
-
gif = "image/gif",
|
|
203
|
-
tiff = "image/tiff",
|
|
204
206
|
svg = "image/svg+xml",
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
207
|
+
webp = "image/webp",
|
|
208
|
+
icon = "image/x-icon"
|
|
209
|
+
}
|
|
210
|
+
export declare enum ErrorCode {
|
|
211
|
+
UnsupportedFileType = "unsupported-file-type",
|
|
212
|
+
FileSizeExceeded = "file-size-exceeded"
|
|
208
213
|
}
|
|
209
214
|
export type VPVEvent = EventAnnotation | EventCore;
|
|
210
215
|
export interface AnnotationAttachment {
|
package/dist/types.js
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
export var ImageType;
|
|
2
2
|
(function (ImageType) {
|
|
3
|
+
ImageType["apng"] = "image/apng";
|
|
4
|
+
ImageType["avif"] = "image/avif";
|
|
5
|
+
ImageType["bmp"] = "image/bmp";
|
|
6
|
+
ImageType["gif"] = "image/gif";
|
|
3
7
|
ImageType["jpeg"] = "image/jpeg";
|
|
4
8
|
ImageType["png"] = "image/png";
|
|
5
|
-
ImageType["gif"] = "image/gif";
|
|
6
|
-
ImageType["tiff"] = "image/tiff";
|
|
7
9
|
ImageType["svg"] = "image/svg+xml";
|
|
8
|
-
ImageType["
|
|
9
|
-
ImageType["
|
|
10
|
-
ImageType["jbig2"] = "image/x-jbig2";
|
|
10
|
+
ImageType["webp"] = "image/webp";
|
|
11
|
+
ImageType["icon"] = "image/x-icon";
|
|
11
12
|
})(ImageType || (ImageType = {}));
|
|
13
|
+
export var ErrorCode;
|
|
14
|
+
(function (ErrorCode) {
|
|
15
|
+
ErrorCode["UnsupportedFileType"] = "unsupported-file-type";
|
|
16
|
+
ErrorCode["FileSizeExceeded"] = "file-size-exceeded";
|
|
17
|
+
})(ErrorCode || (ErrorCode = {}));
|