@scaleflex/widget-core 4.8.5 → 4.8.7
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/LICENSE +21 -21
- package/README.md +1201 -1201
- package/dist/style.css +10 -6
- package/dist/style.min.css +1 -1
- package/lib/Client.js +7 -7
- package/lib/Plugin.js +40 -40
- package/lib/Providers.js +8 -8
- 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 +203 -197
- 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 +38 -38
- package/types/index.d.ts +301 -301
- package/CHANGELOG.md +0 -7660
package/dist/style.css
CHANGED
|
@@ -27,16 +27,20 @@
|
|
|
27
27
|
|
|
28
28
|
.SfxModal-Wrapper *, .filerobot-Root *, #SfxPopper * {
|
|
29
29
|
scrollbar-color: auto !important;
|
|
30
|
-
/* Track */
|
|
31
|
-
/* Handle */
|
|
32
30
|
}
|
|
33
31
|
.SfxModal-Wrapper *::-webkit-scrollbar, .filerobot-Root *::-webkit-scrollbar, #SfxPopper *::-webkit-scrollbar {
|
|
34
32
|
width: 12px !important;
|
|
35
33
|
height: 12px !important;
|
|
36
34
|
}
|
|
35
|
+
.SfxModal-Wrapper *, .filerobot-Root *, #SfxPopper * {
|
|
36
|
+
/* Track */
|
|
37
|
+
}
|
|
37
38
|
.SfxModal-Wrapper *::-webkit-scrollbar-track, .filerobot-Root *::-webkit-scrollbar-track, #SfxPopper *::-webkit-scrollbar-track {
|
|
38
39
|
background: transparent !important;
|
|
39
40
|
}
|
|
41
|
+
.SfxModal-Wrapper *, .filerobot-Root *, #SfxPopper * {
|
|
42
|
+
/* Handle */
|
|
43
|
+
}
|
|
40
44
|
.SfxModal-Wrapper *::-webkit-scrollbar-thumb, .filerobot-Root *::-webkit-scrollbar-thumb, #SfxPopper *::-webkit-scrollbar-thumb {
|
|
41
45
|
background: #CCD6DE;
|
|
42
46
|
border: 4px solid #FFFFFF;
|
|
@@ -191,6 +195,10 @@
|
|
|
191
195
|
box-shadow: 0 0 0 2px rgba(170, 225, 255, 0.85);
|
|
192
196
|
}
|
|
193
197
|
|
|
198
|
+
.filerobot-c-empty-wrapper {
|
|
199
|
+
display: flex;
|
|
200
|
+
height: 100%;
|
|
201
|
+
}
|
|
194
202
|
.filerobot-c-empty {
|
|
195
203
|
height: 100%;
|
|
196
204
|
width: 100%;
|
|
@@ -204,10 +212,6 @@
|
|
|
204
212
|
line-height: 14px;
|
|
205
213
|
font-size: 12px;
|
|
206
214
|
}
|
|
207
|
-
.filerobot-c-empty-wrapper {
|
|
208
|
-
display: flex;
|
|
209
|
-
height: 100%;
|
|
210
|
-
}
|
|
211
215
|
.filerobot-c-empty.left {
|
|
212
216
|
align-items: flex-start;
|
|
213
217
|
}
|
package/dist/style.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");.filerobot-Root{box-sizing:border-box;font-family:Roboto,sans-serif,Helvetica,Arial,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;line-height:1;overflow:hidden;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#333;position:relative;text-align:left}.filerobot-Root :disabled{cursor:not-allowed}#SfxPopper *,.SfxModal-Wrapper,.filerobot-Root *{font-family:Roboto,sans-serif,Helvetica,Arial,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}#SfxPopper *{box-sizing:border-box}#SfxPopper *,.SfxModal-Wrapper *,.filerobot-Root *{scrollbar-color:auto!important}#SfxPopper ::-webkit-scrollbar,.SfxModal-Wrapper ::-webkit-scrollbar,.filerobot-Root ::-webkit-scrollbar{height:12px!important;width:12px!important}#SfxPopper ::-webkit-scrollbar-track,.SfxModal-Wrapper ::-webkit-scrollbar-track,.filerobot-Root ::-webkit-scrollbar-track{background:transparent!important}#SfxPopper ::-webkit-scrollbar-thumb,.SfxModal-Wrapper ::-webkit-scrollbar-thumb,.filerobot-Root ::-webkit-scrollbar-thumb{background:#ccd6de;border:4px solid #fff;border-radius:99px;padding:4px 6px}.filerobot-Root *,.filerobot-Root :after,.filerobot-Root :before{box-sizing:inherit}.filerobot-Root [hidden]{display:none}.filerobot-u-reset{-webkit-appearance:none;backface-visibility:visible;background:none;border:none;border-collapse:separate;-o-border-image:none;border-image:none;border-radius:0;border-spacing:0;box-shadow:none;clear:none;color:inherit;cursor:auto;display:inline;empty-cells:show;float:none;font-family:inherit;font-size:inherit;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:400;-webkit-hyphens:none;hyphens:none;left:auto;letter-spacing:normal;line-height:1;list-style:none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;outline:medium none invert;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;z-index:auto}.filerobot-u-reset span{max-width:250px;overflow:hidden;text-overflow:ellipsis}.filerobot-u-reset span :not(:disabled) :active{background-color:#eceef2}.filerobot-c-horizontal-separator{border-bottom:1px solid #dfe7ed;display:block;height:1px;left:0;position:absolute;right:0;width:100%}.filerobot-c-icon{max-height:100%;max-width:100%;fill:currentColor;display:inline-block;overflow:hidden}.filerobot-c-btn{display:inline-block;font-family:inherit;font-size:16px;font-weight:500;line-height:1;text-align:center;transition-duration:.3s;transition-property:background-color,color;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.filerobot-c-btn:not(:disabled):not(.disabled){cursor:pointer}.filerobot-c-btn::-moz-focus-inner{border:0}.filerobot-c-btn-primary{background-color:#5282db;border-radius:4px;color:#fff;font-size:14px;padding:10px 18px}.filerobot-c-btn-primary:hover{background-color:#2b64cf}.filerobot-c-btn-primary:focus{box-shadow:0 0 0 3px rgba(82,130,219,.4);outline:none}.filerobot-size--md .filerobot-c-btn-primary{padding:13px 22px}[data-filerobot-theme=dark] .filerobot-c-btn-primary{color:#eaeaea}[data-filerobot-theme=dark] .filerobot-c-btn-primary:focus{outline:none}[data-filerobot-theme=dark] .filerobot-c-btn-primary::-moz-focus-inner{border:0}[data-filerobot-theme=dark] .filerobot-c-btn-primary:focus{box-shadow:0 0 0 2px rgba(170,225,255,.85)}.filerobot-c-empty{align-items:center;background-color:#fff;color:#939393;flex:1;flex-flow:column wrap;font-size:12px;justify-content:center;line-height:14px;width:100%}.filerobot-c-empty
|
|
1
|
+
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");.filerobot-Root{box-sizing:border-box;font-family:Roboto,sans-serif,Helvetica,Arial,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;line-height:1;overflow:hidden;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#333;position:relative;text-align:left}.filerobot-Root :disabled{cursor:not-allowed}#SfxPopper *,.SfxModal-Wrapper,.filerobot-Root *{font-family:Roboto,sans-serif,Helvetica,Arial,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}#SfxPopper *{box-sizing:border-box}#SfxPopper *,.SfxModal-Wrapper *,.filerobot-Root *{scrollbar-color:auto!important}#SfxPopper ::-webkit-scrollbar,.SfxModal-Wrapper ::-webkit-scrollbar,.filerobot-Root ::-webkit-scrollbar{height:12px!important;width:12px!important}#SfxPopper ::-webkit-scrollbar-track,.SfxModal-Wrapper ::-webkit-scrollbar-track,.filerobot-Root ::-webkit-scrollbar-track{background:transparent!important}#SfxPopper ::-webkit-scrollbar-thumb,.SfxModal-Wrapper ::-webkit-scrollbar-thumb,.filerobot-Root ::-webkit-scrollbar-thumb{background:#ccd6de;border:4px solid #fff;border-radius:99px;padding:4px 6px}.filerobot-Root *,.filerobot-Root :after,.filerobot-Root :before{box-sizing:inherit}.filerobot-Root [hidden]{display:none}.filerobot-u-reset{-webkit-appearance:none;backface-visibility:visible;background:none;border:none;border-collapse:separate;-o-border-image:none;border-image:none;border-radius:0;border-spacing:0;box-shadow:none;clear:none;color:inherit;cursor:auto;display:inline;empty-cells:show;float:none;font-family:inherit;font-size:inherit;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:400;-webkit-hyphens:none;hyphens:none;left:auto;letter-spacing:normal;line-height:1;list-style:none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;outline:medium none invert;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;z-index:auto}.filerobot-u-reset span{max-width:250px;overflow:hidden;text-overflow:ellipsis}.filerobot-u-reset span :not(:disabled) :active{background-color:#eceef2}.filerobot-c-horizontal-separator{border-bottom:1px solid #dfe7ed;display:block;height:1px;left:0;position:absolute;right:0;width:100%}.filerobot-c-icon{max-height:100%;max-width:100%;fill:currentColor;display:inline-block;overflow:hidden}.filerobot-c-btn{display:inline-block;font-family:inherit;font-size:16px;font-weight:500;line-height:1;text-align:center;transition-duration:.3s;transition-property:background-color,color;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.filerobot-c-btn:not(:disabled):not(.disabled){cursor:pointer}.filerobot-c-btn::-moz-focus-inner{border:0}.filerobot-c-btn-primary{background-color:#5282db;border-radius:4px;color:#fff;font-size:14px;padding:10px 18px}.filerobot-c-btn-primary:hover{background-color:#2b64cf}.filerobot-c-btn-primary:focus{box-shadow:0 0 0 3px rgba(82,130,219,.4);outline:none}.filerobot-size--md .filerobot-c-btn-primary{padding:13px 22px}[data-filerobot-theme=dark] .filerobot-c-btn-primary{color:#eaeaea}[data-filerobot-theme=dark] .filerobot-c-btn-primary:focus{outline:none}[data-filerobot-theme=dark] .filerobot-c-btn-primary::-moz-focus-inner{border:0}[data-filerobot-theme=dark] .filerobot-c-btn-primary:focus{box-shadow:0 0 0 2px rgba(170,225,255,.85)}.filerobot-c-empty,.filerobot-c-empty-wrapper{display:flex;height:100%}.filerobot-c-empty{align-items:center;background-color:#fff;color:#939393;flex:1;flex-flow:column wrap;font-size:12px;justify-content:center;line-height:14px;width:100%}.filerobot-c-empty.left{align-items:flex-start}.filerobot-c-empty.right{align-items:flex-end}.filerobot-c-empty{align-items:flex-start;color:#768a9f}svg{outline:none}
|
package/lib/Client.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _excluded = ["sorting", "recursive", "filters", "offset", "limit", "format", "noPagination", "noFormatAndSortParams", "noRecursiveParam", "moreQueries", "useCustomEncoding"];
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
5
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
4
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
5
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
6
6
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
7
7
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
8
8
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
@@ -26,8 +26,8 @@ var Client = /*#__PURE__*/_createClass(function Client(filerobot) {
|
|
|
26
26
|
var _selectUser;
|
|
27
27
|
return (_selectUser = selectUser(_this.filerobot.getGlobalState())) === null || _selectUser === void 0 ? void 0 : _selectUser.sassKey;
|
|
28
28
|
});
|
|
29
|
-
/**
|
|
30
|
-
* @param {string|string[]} id
|
|
29
|
+
/**
|
|
30
|
+
* @param {string|string[]} id
|
|
31
31
|
*/
|
|
32
32
|
_defineProperty(this, "abort", function (id) {
|
|
33
33
|
var abortSingleId = function abortSingleId(_id) {
|
|
@@ -137,9 +137,9 @@ var Client = /*#__PURE__*/_createClass(function Client(filerobot) {
|
|
|
137
137
|
}
|
|
138
138
|
};
|
|
139
139
|
|
|
140
|
-
/**
|
|
141
|
-
* Handle 'KEY_EXPIRED' response code by sending renew SassKey request
|
|
142
|
-
* @returns {boolean} - TRUE if handled
|
|
140
|
+
/**
|
|
141
|
+
* Handle 'KEY_EXPIRED' response code by sending renew SassKey request
|
|
142
|
+
* @returns {boolean} - TRUE if handled
|
|
143
143
|
*/
|
|
144
144
|
var handleKeyExpiredCode = function handleKeyExpiredCode() {
|
|
145
145
|
var _xhr$response4, _xhr$response5, _this$filerobot, _this$filerobot$sassK;
|
package/lib/Plugin.js
CHANGED
|
@@ -18,8 +18,8 @@ import { createRoot } from 'react-dom/client';
|
|
|
18
18
|
import findDOMElement from '@scaleflex/widget-utils/lib/findDOMElement';
|
|
19
19
|
import Providers from './Providers';
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* Defer a frequent call to the microtask queue.
|
|
21
|
+
/**
|
|
22
|
+
* Defer a frequent call to the microtask queue.
|
|
23
23
|
*/
|
|
24
24
|
function debounce(fn) {
|
|
25
25
|
var calling = null;
|
|
@@ -43,14 +43,14 @@ function debounce(fn) {
|
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
/**
|
|
47
|
-
* Boilerplate that all Plugins share - and should not be used
|
|
48
|
-
* directly. It also shows which methods final plugins should implement/override,
|
|
49
|
-
* this deciding on structure.
|
|
50
|
-
*
|
|
51
|
-
* @param {object} main Filerobot core object
|
|
52
|
-
* @param {object} object with plugin options
|
|
53
|
-
* @returns {Array|string} files or success/fail message
|
|
46
|
+
/**
|
|
47
|
+
* Boilerplate that all Plugins share - and should not be used
|
|
48
|
+
* directly. It also shows which methods final plugins should implement/override,
|
|
49
|
+
* this deciding on structure.
|
|
50
|
+
*
|
|
51
|
+
* @param {object} main Filerobot core object
|
|
52
|
+
* @param {object} object with plugin options
|
|
53
|
+
* @returns {Array|string} files or success/fail message
|
|
54
54
|
*/
|
|
55
55
|
var Plugin = /*#__PURE__*/function () {
|
|
56
56
|
function Plugin(filerobot) {
|
|
@@ -75,11 +75,11 @@ var Plugin = /*#__PURE__*/function () {
|
|
|
75
75
|
this.log = this.filerobot.log;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
/**
|
|
79
|
-
* Returns current state of whole redux's store, uses the same one of scaleflexWidget's core class,
|
|
80
|
-
* for easier access from the extended plugin class only.
|
|
81
|
-
*
|
|
82
|
-
* @returns {object}
|
|
78
|
+
/**
|
|
79
|
+
* Returns current state of whole redux's store, uses the same one of scaleflexWidget's core class,
|
|
80
|
+
* for easier access from the extended plugin class only.
|
|
81
|
+
*
|
|
82
|
+
* @returns {object}
|
|
83
83
|
*/
|
|
84
84
|
return _createClass(Plugin, [{
|
|
85
85
|
key: "getGlobalState",
|
|
@@ -87,10 +87,10 @@ var Plugin = /*#__PURE__*/function () {
|
|
|
87
87
|
return this.filerobot.getGlobalState();
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
/**
|
|
91
|
-
* returns the plugin's common state/slice from the redux's store
|
|
92
|
-
* @param {string} sliceName - the slice's name (property) to be accessed from the redux's store state.
|
|
93
|
-
* @returns {Object}
|
|
90
|
+
/**
|
|
91
|
+
* returns the plugin's common state/slice from the redux's store
|
|
92
|
+
* @param {string} sliceName - the slice's name (property) to be accessed from the redux's store state.
|
|
93
|
+
* @returns {Object}
|
|
94
94
|
*/
|
|
95
95
|
}, {
|
|
96
96
|
key: "getPluginCommonState",
|
|
@@ -103,19 +103,19 @@ var Plugin = /*#__PURE__*/function () {
|
|
|
103
103
|
return pluginCommonState || {};
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
/**
|
|
107
|
-
* To be overriden from the plugin itself with the common state/slice of the plugin getting dispatched to.
|
|
108
|
-
* @param {string} update - object contains the updates.
|
|
109
|
-
* @returns {Object}
|
|
106
|
+
/**
|
|
107
|
+
* To be overriden from the plugin itself with the common state/slice of the plugin getting dispatched to.
|
|
108
|
+
* @param {string} update - object contains the updates.
|
|
109
|
+
* @returns {Object}
|
|
110
110
|
*/
|
|
111
111
|
}, {
|
|
112
112
|
key: "setPluginCommonState",
|
|
113
113
|
value: function setPluginCommonState(update) {}
|
|
114
114
|
|
|
115
|
-
/**
|
|
116
|
-
* Same dispatch as core's one but wrapping it in-case of future changes/logs...etc.
|
|
117
|
-
*
|
|
118
|
-
* @param {Function/Object} actionCreator
|
|
115
|
+
/**
|
|
116
|
+
* Same dispatch as core's one but wrapping it in-case of future changes/logs...etc.
|
|
117
|
+
*
|
|
118
|
+
* @param {Function/Object} actionCreator
|
|
119
119
|
*/
|
|
120
120
|
}, {
|
|
121
121
|
key: "dispatch",
|
|
@@ -161,22 +161,22 @@ var Plugin = /*#__PURE__*/function () {
|
|
|
161
161
|
key: "afterUpdate",
|
|
162
162
|
value: function afterUpdate() {}
|
|
163
163
|
|
|
164
|
-
/**
|
|
165
|
-
* Called when plugin is mounted, whether in DOM or into another plugin.
|
|
166
|
-
* Needed because sometimes plugins are mounted separately/after `install`,
|
|
167
|
-
* so this.el and this.parent might not be available in `install`.
|
|
164
|
+
/**
|
|
165
|
+
* Called when plugin is mounted, whether in DOM or into another plugin.
|
|
166
|
+
* Needed because sometimes plugins are mounted separately/after `install`,
|
|
167
|
+
* so this.el and this.parent might not be available in `install`.
|
|
168
168
|
*/
|
|
169
169
|
}, {
|
|
170
170
|
key: "onMount",
|
|
171
171
|
value: function onMount() {}
|
|
172
172
|
|
|
173
|
-
/**
|
|
174
|
-
* Check if supplied `target` is a DOM element or an `object`.
|
|
175
|
-
* If it’s an object — target is a plugin, and we search `plugins`
|
|
176
|
-
* for a plugin with same name and return its target.
|
|
177
|
-
*
|
|
178
|
-
* @param {string|object} target
|
|
179
|
-
*
|
|
173
|
+
/**
|
|
174
|
+
* Check if supplied `target` is a DOM element or an `object`.
|
|
175
|
+
* If it’s an object — target is a plugin, and we search `plugins`
|
|
176
|
+
* for a plugin with same name and return its target.
|
|
177
|
+
*
|
|
178
|
+
* @param {string|object} target
|
|
179
|
+
*
|
|
180
180
|
*/
|
|
181
181
|
}, {
|
|
182
182
|
key: "mount",
|
|
@@ -279,8 +279,8 @@ var Plugin = /*#__PURE__*/function () {
|
|
|
279
279
|
return this.filerobot.checkPluginExistence(pluginIdToCheck);
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
/**
|
|
283
|
-
* Called to get the plugin's reducer.
|
|
282
|
+
/**
|
|
283
|
+
* Called to get the plugin's reducer.
|
|
284
284
|
*/
|
|
285
285
|
}, {
|
|
286
286
|
key: "getPluginReducer",
|
package/lib/Providers.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["newOpts"];
|
|
2
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
2
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
5
5
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
6
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -77,12 +77,12 @@ var Providers = function Providers(_ref) {
|
|
|
77
77
|
}, [filerobot]);
|
|
78
78
|
return /*#__PURE__*/_jsx(StoreProvider, {
|
|
79
79
|
store: filerobot.store,
|
|
80
|
-
children: /*#__PURE__*/_jsx(
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
children: /*#__PURE__*/_jsx(StyleSheetManager, {
|
|
81
|
+
shouldForwardProp: function shouldForwardProp(propName, target) {
|
|
82
|
+
return typeof target === 'string' ? isPropValid(propName) : true;
|
|
83
|
+
},
|
|
84
|
+
children: /*#__PURE__*/_jsx(ThemeProvider, {
|
|
85
|
+
theme: filerobot.opts.theme,
|
|
86
86
|
children: /*#__PURE__*/_jsx(FilerobotPackagesContext.Provider, {
|
|
87
87
|
value: memoizedPackages,
|
|
88
88
|
children: /*#__PURE__*/_jsx(ModalDispatcherContext.Provider, {
|
package/lib/SassKeyRenewer.js
CHANGED
|
@@ -16,15 +16,15 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
16
16
|
import { RESPONSE_CODES } from '@scaleflex/widget-utils/lib/constants';
|
|
17
17
|
import { saveUserSassKey, selectUserSessionUuid, userLogout } from './slices/user.slice';
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* Spec: https://scaleflexhq.atlassian.net/wiki/spaces/SHARED/pages/34570620/Session+handling
|
|
21
|
-
* Task: https://scaleflexhq.atlassian.net/browse/FRA-3494
|
|
22
|
-
*
|
|
23
|
-
* Notice!
|
|
24
|
-
* SassKeyRenewer works only when there is defined a session uuid:
|
|
25
|
-
* - Hub case
|
|
26
|
-
* - standalone Widget with enabled auth
|
|
27
|
-
* Doesn't work for Widget with security template (for this case is used logic to regenerate sass key from sec template user.slice.js:generateUserKey())
|
|
19
|
+
/**
|
|
20
|
+
* Spec: https://scaleflexhq.atlassian.net/wiki/spaces/SHARED/pages/34570620/Session+handling
|
|
21
|
+
* Task: https://scaleflexhq.atlassian.net/browse/FRA-3494
|
|
22
|
+
*
|
|
23
|
+
* Notice!
|
|
24
|
+
* SassKeyRenewer works only when there is defined a session uuid:
|
|
25
|
+
* - Hub case
|
|
26
|
+
* - standalone Widget with enabled auth
|
|
27
|
+
* Doesn't work for Widget with security template (for this case is used logic to regenerate sass key from sec template user.slice.js:generateUserKey())
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
30
|
export var TIMER_DELAY_STORAGE_NAME = 'sassKeyRenewerTimerDelay';
|
|
@@ -176,9 +176,9 @@ var SassKeyRenewer = /*#__PURE__*/_createClass(function SassKeyRenewer(filerobot
|
|
|
176
176
|
_this.isSending = false;
|
|
177
177
|
});
|
|
178
178
|
});
|
|
179
|
-
/**
|
|
180
|
-
* @param {function} cb - Call back function
|
|
181
|
-
* @param {string} [requestId] - Optional. Should be used in cases when need to cancel previous simil request handler that has same ID.
|
|
179
|
+
/**
|
|
180
|
+
* @param {function} cb - Call back function
|
|
181
|
+
* @param {string} [requestId] - Optional. Should be used in cases when need to cancel previous simil request handler that has same ID.
|
|
182
182
|
*/
|
|
183
183
|
_defineProperty(this, "addSuccessHandlerToTheQueue", function (cb, requestId) {
|
|
184
184
|
_this.log('Run addSuccessHandlerToTheQueue()', {
|