@bytescale/upload-widget
Advanced tools
Comparing version 4.21.0 to 4.22.0
@@ -10,2 +10,3 @@ import { UploadWidgetLocale } from "../modules/locales/UploadWidgetLocale"; | ||
import { UploadWidgetOnUpdateEvent } from "../config/UploadWidgetOnUpdateEvent"; | ||
import { UploadWidgetLocaleDeprecatedFields } from "../modules/locales/UploadWidgetLocaleDeprecatedFields"; | ||
export interface UploadWidgetConfig extends BytescaleApiClientConfig { | ||
@@ -15,3 +16,3 @@ container?: string | HTMLElement; | ||
layout?: UploadWidgetLayout; | ||
locale?: UploadWidgetLocale; | ||
locale?: Partial<UploadWidgetLocale> & Partial<UploadWidgetLocaleDeprecatedFields>; | ||
maxFileCount?: number; | ||
@@ -18,0 +19,0 @@ maxFileSizeBytes?: number; |
@@ -19,2 +19,2 @@ export { FileLike } from "./modules/FileLike"; | ||
export { UploadWidgetMethods } from "./config/UploadWidgetMethods"; | ||
export { UploaderLocaleEnUs } from "./modules/locales/EN_US"; | ||
export { UploadWidgetLocaleEnUs } from "./modules/locales/EN_US"; |
import { UploadWidgetLocale } from "../../modules/locales/UploadWidgetLocale"; | ||
export declare const UploaderLocaleEnUs: UploadWidgetLocale; | ||
export declare const UploadWidgetLocaleEnUs: UploadWidgetLocale; |
export interface UploadWidgetLocale { | ||
"addAnotherFile": string; | ||
"addAnotherImage": string; | ||
"cancel": string; | ||
"cancelInPreviewWindow": string; | ||
"cancelled!": string; | ||
"continue": string; | ||
"crop": string; | ||
"customValidationFailed": string; | ||
"done": string; | ||
"error!": string; | ||
"finish": string; | ||
"finishIcon": boolean; | ||
"image": string; | ||
"maxFilesReached": string; | ||
"maxImagesReached": string; | ||
"maxSize": string; | ||
"next": string; | ||
"of": string; | ||
"orDragDropFile": string; | ||
"orDragDropFiles": string; | ||
"orDragDropImage": string; | ||
"orDragDropImages": string; | ||
"pleaseWait": string; | ||
"processingFile": string; | ||
"remove": string; | ||
"removed!": string; | ||
"skip": string; | ||
"unsupportedFileType": string; | ||
"uploadFile": string; | ||
"uploadFiles": string; | ||
"uploadImage": string; | ||
"uploadImages": string; | ||
addAnotherFileBtn: string; | ||
addAnotherImageBtn: string; | ||
cancelBtn: string; | ||
cancelBtnClicked: string; | ||
cancelPreviewBtn: string; | ||
continueBtn: string; | ||
cropBtn: string; | ||
customValidationFailed: string; | ||
doneBtn: string; | ||
fileSizeLimitPrefix: string; | ||
finishBtn: string; | ||
finishBtnIcon: boolean; | ||
imageCropNumberPrefix: string; | ||
maxFilesReachedPrefix: string; | ||
maxImagesReachedPrefix: string; | ||
orDragDropFile: string; | ||
orDragDropFileMulti: string; | ||
orDragDropImage: string; | ||
orDragDropImageMulti: string; | ||
processingFile: string; | ||
removeBtn: string; | ||
removeBtnClicked: string; | ||
submitBtnError: string; | ||
submitBtnLoading: string; | ||
unsupportedFileType: string; | ||
uploadFileBtn: string; | ||
uploadFileMultiBtn: string; | ||
uploadImageBtn: string; | ||
uploadImageMultiBtn: string; | ||
xOfY: string; | ||
} |
{ | ||
"name": "@bytescale/upload-widget", | ||
"version": "4.21.0", | ||
"version": "4.22.0", | ||
"author": "Bytescale <hello@bytescale.com> (https://www.bytescale.com)", | ||
@@ -5,0 +5,0 @@ "description": "File Upload UI Widget โ Lightweight & supports: drag and drop, multiple file uploads, image cropping, customization, and more ๐ Comes with Cloud Storage ๐", |
@@ -292,34 +292,32 @@ <h1 align="center"> | ||
const myCustomLocale = { | ||
"error!": "Error!", | ||
"done": "Done", | ||
"addAnotherFile": "Add another file...", | ||
"addAnotherImage": "Add another image...", | ||
"cancel": "cancel", | ||
"cancelInPreviewWindow": "Cancel", | ||
"cancelled!": "cancelled", | ||
"continue": "Continue", | ||
"customValidationFailed": "Failed to validate file.", | ||
"crop": "Crop", | ||
"finish": "Finished", | ||
"finishIcon": true, | ||
"image": "Image", | ||
"maxFilesReached": "Maximum number of files:", | ||
"maxImagesReached": "Maximum number of images:", | ||
"maxSize": "File size limit:", | ||
"next": "Next", | ||
"of": "of", | ||
"orDragDropFile": "...or drag and drop a file.", | ||
"orDragDropFiles": "...or drag and drop files.", | ||
"orDragDropImage": "...or drag and drop an image.", | ||
"orDragDropImages": "...or drag and drop images.", | ||
"pleaseWait": "Please wait...", | ||
"removed!": "removed", | ||
"remove": "remove", | ||
"skip": "Skip", | ||
"unsupportedFileType": "File type not supported.", | ||
"uploadFile": "Upload a File", | ||
"uploadFiles": "Upload Files", | ||
"uploadImage": "Upload an Image", | ||
"uploadImages": "Upload Images", | ||
"validatingFile": "Validating file..." | ||
addAnotherFileBtn: "Add another file...", | ||
addAnotherImageBtn: "Add another image...", | ||
cancelBtn: "cancel", | ||
cancelBtnClicked: "cancelled", | ||
cancelPreviewBtn: "Cancel", | ||
continueBtn: "Continue", | ||
cropBtn: "Crop", | ||
customValidationFailed: "Failed to validate file.", | ||
doneBtn: "Done", | ||
fileSizeLimitPrefix: "File size limit:", | ||
finishBtn: "Finished", | ||
finishBtnIcon: true, | ||
imageCropNumberPrefix: "Image", | ||
maxFilesReachedPrefix: "Maximum number of files:", | ||
maxImagesReachedPrefix: "Maximum number of images:", | ||
orDragDropFile: "...or drag and drop a file.", | ||
orDragDropFileMulti: "...or drag and drop files.", | ||
orDragDropImage: "...or drag and drop an image.", | ||
orDragDropImageMulti: "...or drag and drop images.", | ||
processingFile: "Processing file...", | ||
removeBtn: "remove", | ||
removeBtnClicked: "removed", | ||
submitBtnError: "Error!", | ||
submitBtnLoading: "Please wait...", | ||
unsupportedFileType: "File type not supported.", | ||
uploadFileBtn: "Upload a File", | ||
uploadFileMultiBtn: "Upload Files", | ||
uploadImageBtn: "Upload an Image", | ||
uploadImageMultiBtn: "Upload Images", | ||
xOfY: "of" | ||
} | ||
@@ -326,0 +324,0 @@ ``` |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
298123
14859
78
4921
542
1