@scaleflex/widget-xhr-upload 0.0.1

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/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@scaleflex/widget-xhr-upload",
3
+ "description": "Plain and simple classic HTML multipart form uploads with Scaleflex Media Asset Widget, as well as uploads using the HTTP PUT method.",
4
+ "version": "0.0.1",
5
+ "license": "MIT",
6
+ "main": "lib/index.js",
7
+ "types": "types/index.d.ts",
8
+ "files": [
9
+ "/dist",
10
+ "/lib",
11
+ "/types"
12
+ ],
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "dependencies": {
17
+ "@scaleflex/widget-companion-client": "^0.0.1",
18
+ "@scaleflex/widget-utils": "^0.0.1",
19
+ "cuid": "^3.0.0"
20
+ },
21
+ "peerDependencies": {
22
+ "@scaleflex/widget-core": "^0.0.0"
23
+ },
24
+ "gitHead": "64ea82e745b7deda36d6794863350e6671e9010d"
25
+ }
@@ -0,0 +1,22 @@
1
+ import Filerobot = require("@scaleflex/widget-core");
2
+ import XHRUploadLocale = require("./generatedLocale");
3
+
4
+ declare module XHRUpload {
5
+ export interface XHRUploadOptions extends Filerobot.PluginOptions {
6
+ limit?: number;
7
+ uploadQueryParams?: string;
8
+ bundle?: boolean;
9
+ formData?: boolean;
10
+ headers?: any;
11
+ fieldName?: string;
12
+ timeout?: number;
13
+ responseUrlFieldName?: string;
14
+ endpoint: string;
15
+ method?: "GET" | "POST" | "PUT" | "HEAD" | "get" | "post" | "put" | "head";
16
+ locale?: XHRUploadLocale;
17
+ }
18
+ }
19
+
20
+ declare class XHRUpload extends Filerobot.Plugin<XHRUpload.XHRUploadOptions> {}
21
+
22
+ export = XHRUpload;