@scaleflex/widget-url 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/CHANGELOG.md +7358 -0
- package/LICENSE +21 -0
- package/README.md +102 -0
- package/lib/UrlUI.js +123 -0
- package/lib/UrlUI.styled.js +30 -0
- package/lib/defaultLocale.js +16 -0
- package/lib/index.js +268 -0
- package/lib/utils/forEachDroppedOrPastedUrl.js +94 -0
- package/package.json +34 -0
- package/types/index.d.ts +17 -0
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@scaleflex/widget-url",
|
|
3
|
+
"description": "The Url plugin lets users import files from the Internet. Paste any URL and it’ll be added!",
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"style": "dist/style.min.css",
|
|
8
|
+
"types": "types/index.d.ts",
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@scaleflex/widget-common": "^0.0.1",
|
|
11
|
+
"@scaleflex/widget-companion-client": "^0.0.1",
|
|
12
|
+
"@scaleflex/widget-icons": "^0.0.1",
|
|
13
|
+
"@scaleflex/widget-utils": "^0.0.1"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"react": "^19.0.0",
|
|
17
|
+
"react-dom": "^19.0.0"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"@scaleflex/widget-core": "^0.0.0",
|
|
21
|
+
"@scaleflex/widget-explorer": "^0.0.0",
|
|
22
|
+
"react": ">=19.0.0",
|
|
23
|
+
"react-dom": ">=19.0.0"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"/dist",
|
|
27
|
+
"/lib",
|
|
28
|
+
"/types"
|
|
29
|
+
],
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
33
|
+
"gitHead": "64ea82e745b7deda36d6794863350e6671e9010d"
|
|
34
|
+
}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Filerobot = require("@scaleflex/widget-core");
|
|
2
|
+
import CompanionClient = require("@scaleflex/widget-companion-client");
|
|
3
|
+
import UrlLocale = require("./generatedLocale");
|
|
4
|
+
|
|
5
|
+
declare module Url {
|
|
6
|
+
export interface UrlOptions
|
|
7
|
+
extends Filerobot.PluginOptions,
|
|
8
|
+
CompanionClient.RequestClientOptions {
|
|
9
|
+
replaceTargetContent?: boolean;
|
|
10
|
+
target?: Filerobot.PluginTarget;
|
|
11
|
+
locale?: UrlLocale;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare class Url extends Filerobot.Plugin<Url.UrlOptions> {}
|
|
16
|
+
|
|
17
|
+
export = Url;
|