@scaleflex/widget-core 4.0.7 → 4.3.0
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 +7519 -7491
- package/LICENSE +21 -21
- package/README.md +1201 -1211
- package/dist/style.css +94 -58
- package/dist/style.min.css +1 -1
- package/lib/Client.js +5 -5
- package/lib/Plugin.js +40 -40
- package/lib/SassKeyRenewer.js +12 -12
- package/lib/_common.scss +243 -243
- package/lib/_utils.scss +38 -38
- package/lib/_variables.scss +63 -63
- package/lib/index.js +196 -196
- package/lib/slices/common.slice.js +9 -9
- package/lib/slices/info.slice.js +10 -10
- package/lib/slices/uploads.slice.js +9 -9
- package/lib/slices/user.slice.js +9 -9
- package/lib/style.scss +3 -3
- package/package.json +3 -3
- package/types/index.d.ts +301 -301
|
@@ -9,15 +9,15 @@ import { PLUGINS_IDS } from '@scaleflex/widget-utils/lib/constants';
|
|
|
9
9
|
import getActionErrorState from '@scaleflex/widget-utils/lib/getActionErrorState';
|
|
10
10
|
import { fetchUserAuthState, generateUserKey } from './user.slice';
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* The order of the code in slice file is:
|
|
14
|
-
* 1. initialState (*No* export needed)
|
|
15
|
-
* 2. automated thunks functions -- uses createThunk API-- (export needed)
|
|
16
|
-
* 3. createSlice (*No* export needed)
|
|
17
|
-
* 4. actions exports
|
|
18
|
-
* 5. selectors (export needed)
|
|
19
|
-
* 6. default reducer export
|
|
20
|
-
*
|
|
12
|
+
/**
|
|
13
|
+
* The order of the code in slice file is:
|
|
14
|
+
* 1. initialState (*No* export needed)
|
|
15
|
+
* 2. automated thunks functions -- uses createThunk API-- (export needed)
|
|
16
|
+
* 3. createSlice (*No* export needed)
|
|
17
|
+
* 4. actions exports
|
|
18
|
+
* 5. selectors (export needed)
|
|
19
|
+
* 6. default reducer export
|
|
20
|
+
*
|
|
21
21
|
*/
|
|
22
22
|
export var slicePropName = 'common';
|
|
23
23
|
var sliceName = "".concat(PLUGINS_IDS.CORE, "/").concat(slicePropName);
|
package/lib/slices/info.slice.js
CHANGED
|
@@ -7,16 +7,16 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
7
7
|
import { createSlice } from '@reduxjs/toolkit';
|
|
8
8
|
import { PLUGINS_IDS } from '@scaleflex/widget-utils/lib/constants';
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* The order of the code in slice file is:
|
|
12
|
-
* 1. initialState (*No* export needed)
|
|
13
|
-
* 2. automated thunks functions -- uses createThunk API-- (export needed)
|
|
14
|
-
* 3. createSlice (*No* export needed)
|
|
15
|
-
* 4. actions exports
|
|
16
|
-
* 5. selectors (export needed)
|
|
17
|
-
|
|
18
|
-
* 7. default reducer export
|
|
19
|
-
*
|
|
10
|
+
/**
|
|
11
|
+
* The order of the code in slice file is:
|
|
12
|
+
* 1. initialState (*No* export needed)
|
|
13
|
+
* 2. automated thunks functions -- uses createThunk API-- (export needed)
|
|
14
|
+
* 3. createSlice (*No* export needed)
|
|
15
|
+
* 4. actions exports
|
|
16
|
+
* 5. selectors (export needed)
|
|
17
|
+
|
|
18
|
+
* 7. default reducer export
|
|
19
|
+
*
|
|
20
20
|
*/
|
|
21
21
|
var slicePropName = 'info';
|
|
22
22
|
var sliceName = "".concat(PLUGINS_IDS.CORE, "/").concat(slicePropName);
|
|
@@ -17,15 +17,15 @@ import createThunk from '@scaleflex/widget-utils/lib/createThunk';
|
|
|
17
17
|
import supportsUploadProgress from '../supportsUploadProgress';
|
|
18
18
|
import { ScaleflexWidget } from '../';
|
|
19
19
|
|
|
20
|
-
/**
|
|
21
|
-
* The order of the code in slice file is:
|
|
22
|
-
* 1. initialState (*No* export needed)
|
|
23
|
-
* 2. automated thunks functions -- uses createThunk API-- (export needed)
|
|
24
|
-
* 3. createSlice (*No* export needed)
|
|
25
|
-
* 4. actions exports
|
|
26
|
-
* 5. selectors (export needed)
|
|
27
|
-
* 6. default reducer export
|
|
28
|
-
*
|
|
20
|
+
/**
|
|
21
|
+
* The order of the code in slice file is:
|
|
22
|
+
* 1. initialState (*No* export needed)
|
|
23
|
+
* 2. automated thunks functions -- uses createThunk API-- (export needed)
|
|
24
|
+
* 3. createSlice (*No* export needed)
|
|
25
|
+
* 4. actions exports
|
|
26
|
+
* 5. selectors (export needed)
|
|
27
|
+
* 6. default reducer export
|
|
28
|
+
*
|
|
29
29
|
*/
|
|
30
30
|
var slicePropName = 'uploads';
|
|
31
31
|
var sliceName = "".concat(PLUGINS_IDS.CORE, "/").concat(slicePropName);
|
package/lib/slices/user.slice.js
CHANGED
|
@@ -10,15 +10,15 @@ import createThunk from '@scaleflex/widget-utils/lib/createThunk';
|
|
|
10
10
|
import { AUTH_STATE, PERMISSIONS, PLUGINS_IDS } from '@scaleflex/widget-utils/lib/constants';
|
|
11
11
|
import { slicePropName as coreCommonSliceName } from './common.slice';
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* The order of the code in slice file is:
|
|
15
|
-
* 1. initialState (*No* export needed)
|
|
16
|
-
* 2. automated thunks functions -- uses createThunk API-- (export needed)
|
|
17
|
-
* 3. createSlice (*No* export needed)
|
|
18
|
-
* 4. actions exports
|
|
19
|
-
* 5. selectors (export needed)
|
|
20
|
-
* 6. default reducer export
|
|
21
|
-
*
|
|
13
|
+
/**
|
|
14
|
+
* The order of the code in slice file is:
|
|
15
|
+
* 1. initialState (*No* export needed)
|
|
16
|
+
* 2. automated thunks functions -- uses createThunk API-- (export needed)
|
|
17
|
+
* 3. createSlice (*No* export needed)
|
|
18
|
+
* 4. actions exports
|
|
19
|
+
* 5. selectors (export needed)
|
|
20
|
+
* 6. default reducer export
|
|
21
|
+
*
|
|
22
22
|
*/
|
|
23
23
|
var slicePropName = 'user';
|
|
24
24
|
var sliceName = "".concat(PLUGINS_IDS.CORE, "/").concat(slicePropName);
|
package/lib/style.scss
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
@import './_variables.scss';
|
|
2
|
-
@import './_utils.scss';
|
|
3
|
-
@import './_common.scss';
|
|
1
|
+
@import './_variables.scss';
|
|
2
|
+
@import './_utils.scss';
|
|
3
|
+
@import './_common.scss';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleflex/widget-core",
|
|
3
3
|
"description": "Core module for the extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, Box, One Drive, S3 and more.",
|
|
4
|
-
"version": "4.0
|
|
4
|
+
"version": "4.3.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"style": "dist/style.min.css",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@reduxjs/toolkit": "^1.9.5",
|
|
19
19
|
"@scaleflex/icons": "^3.0.0-beta.11",
|
|
20
20
|
"@scaleflex/ui": "^3.0.0-beta.11",
|
|
21
|
-
"@scaleflex/widget-utils": "^4.0
|
|
21
|
+
"@scaleflex/widget-utils": "^4.3.0",
|
|
22
22
|
"@transloadit/prettier-bytes": "0.1.0",
|
|
23
23
|
"cuid": "^3.0.0",
|
|
24
24
|
"lodash.throttle": "^4.1.1",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"react": ">=19.0.0",
|
|
35
35
|
"react-dom": ">=19.0.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "712930995f6dfd4a0d874c0638dde61065fd0683"
|
|
38
38
|
}
|