@elliemae/pui-app-sdk 4.7.1 → 4.8.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/dist/cjs/communication/http-client/response-interceptor.js +2 -5
- package/dist/cjs/utils/storybook/manager.js +2 -2
- package/dist/esm/communication/http-client/response-interceptor.js +2 -5
- package/dist/esm/utils/storybook/manager.js +2 -2
- package/dist/types/lib/utils/storybook/manager.d.ts +1 -1
- package/package.json +32 -32
|
@@ -41,12 +41,9 @@ const handleFailure = (error) => {
|
|
|
41
41
|
if (status === HTTP_UNAUTHORIZED && unAuthorizedFailureHandler && typeof unAuthorizedFailureHandler === "function") {
|
|
42
42
|
return unAuthorizedFailureHandler(error).then((authorizationHeader) => {
|
|
43
43
|
const { config } = error;
|
|
44
|
-
if (!config)
|
|
44
|
+
if (!config?.headers)
|
|
45
45
|
throw error;
|
|
46
|
-
config.headers =
|
|
47
|
-
...config.headers,
|
|
48
|
-
Authorization: authorizationHeader
|
|
49
|
-
};
|
|
46
|
+
config.headers["Authorization"] = authorizationHeader;
|
|
50
47
|
return new Promise((resolve, reject) => {
|
|
51
48
|
import_axios.default.request(config).then(resolve).catch(reject);
|
|
52
49
|
});
|
|
@@ -18,12 +18,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var manager_exports = {};
|
|
20
20
|
__export(manager_exports, {
|
|
21
|
-
|
|
21
|
+
initSBManager: () => initSBManager
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(manager_exports);
|
|
24
24
|
var import_addons = require("@storybook/addons");
|
|
25
25
|
var import_theme = require("./theme.js");
|
|
26
|
-
const
|
|
26
|
+
const initSBManager = (theme) => {
|
|
27
27
|
import_addons.addons.setConfig({
|
|
28
28
|
panelPosition: "bottom",
|
|
29
29
|
theme: (0, import_theme.createTheme)(theme)
|
|
@@ -10,12 +10,9 @@ const handleFailure = (error) => {
|
|
|
10
10
|
if (status === HTTP_UNAUTHORIZED && unAuthorizedFailureHandler && typeof unAuthorizedFailureHandler === "function") {
|
|
11
11
|
return unAuthorizedFailureHandler(error).then((authorizationHeader) => {
|
|
12
12
|
const { config } = error;
|
|
13
|
-
if (!config)
|
|
13
|
+
if (!config?.headers)
|
|
14
14
|
throw error;
|
|
15
|
-
config.headers =
|
|
16
|
-
...config.headers,
|
|
17
|
-
Authorization: authorizationHeader
|
|
18
|
-
};
|
|
15
|
+
config.headers["Authorization"] = authorizationHeader;
|
|
19
16
|
return new Promise((resolve, reject) => {
|
|
20
17
|
axios.request(config).then(resolve).catch(reject);
|
|
21
18
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { addons } from "@storybook/addons";
|
|
2
2
|
import { createTheme } from "./theme.js";
|
|
3
|
-
const
|
|
3
|
+
const initSBManager = (theme) => {
|
|
4
4
|
addons.setConfig({
|
|
5
5
|
panelPosition: "bottom",
|
|
6
6
|
theme: createTheme(theme)
|
|
7
7
|
});
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
initSBManager
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function
|
|
1
|
+
export function initSBManager(theme: any): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-app-sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -111,50 +111,50 @@
|
|
|
111
111
|
"indent": 4
|
|
112
112
|
},
|
|
113
113
|
"peerDependencies": {
|
|
114
|
-
"@elliemae/app-react-dependencies": "^4.
|
|
115
|
-
"@elliemae/ds-basic": "^3.
|
|
116
|
-
"@elliemae/ds-button": "^3.
|
|
117
|
-
"@elliemae/ds-controlled-form": "^3.
|
|
118
|
-
"@elliemae/ds-date-picker": "^3.
|
|
119
|
-
"@elliemae/ds-date-range-picker": "^3.
|
|
120
|
-
"@elliemae/ds-dialog": "^3.
|
|
121
|
-
"@elliemae/ds-form": "^3.
|
|
122
|
-
"@elliemae/ds-form-layout-blocks": "^3.
|
|
123
|
-
"@elliemae/ds-grid": "^3.
|
|
124
|
-
"@elliemae/ds-loading-indicator": "^3.
|
|
125
|
-
"@elliemae/ds-modal": "^3.
|
|
126
|
-
"@elliemae/ds-popperjs": "^3.
|
|
127
|
-
"@elliemae/ds-toast": "^3.
|
|
114
|
+
"@elliemae/app-react-dependencies": "^4.3.0",
|
|
115
|
+
"@elliemae/ds-basic": "^3.12.1",
|
|
116
|
+
"@elliemae/ds-button": "^3.12.1",
|
|
117
|
+
"@elliemae/ds-controlled-form": "^3.12.1",
|
|
118
|
+
"@elliemae/ds-date-picker": "^3.12.1",
|
|
119
|
+
"@elliemae/ds-date-range-picker": "^3.12.1",
|
|
120
|
+
"@elliemae/ds-dialog": "^3.12.1",
|
|
121
|
+
"@elliemae/ds-form": "^3.12.1",
|
|
122
|
+
"@elliemae/ds-form-layout-blocks": "^3.12.1",
|
|
123
|
+
"@elliemae/ds-grid": "^3.12.1",
|
|
124
|
+
"@elliemae/ds-loading-indicator": "^3.12.1",
|
|
125
|
+
"@elliemae/ds-modal": "^3.12.1",
|
|
126
|
+
"@elliemae/ds-popperjs": "^3.12.1",
|
|
127
|
+
"@elliemae/ds-toast": "^3.12.1",
|
|
128
128
|
"@elliemae/em-ssf-guest": "^1.11.2",
|
|
129
129
|
"@elliemae/pui-diagnostics": "^2.7.5",
|
|
130
130
|
"@elliemae/pui-micro-frontend-base": "^1.14.0",
|
|
131
|
-
"@elliemae/pui-scripting-object": "^1.
|
|
131
|
+
"@elliemae/pui-scripting-object": "^1.18.0",
|
|
132
132
|
"@elliemae/pui-theme": "^2.6.0",
|
|
133
133
|
"@elliemae/pui-user-monitoring": "^1.18.1"
|
|
134
134
|
},
|
|
135
135
|
"devDependencies": {
|
|
136
|
-
"@elliemae/app-react-dependencies": "~4.
|
|
136
|
+
"@elliemae/app-react-dependencies": "~4.3.0",
|
|
137
137
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.6.0",
|
|
138
|
-
"@elliemae/ds-basic": "~3.
|
|
139
|
-
"@elliemae/ds-button": "~3.
|
|
140
|
-
"@elliemae/ds-controlled-form": "~3.
|
|
141
|
-
"@elliemae/ds-date-picker": "~3.
|
|
142
|
-
"@elliemae/ds-date-range-picker": "~3.
|
|
143
|
-
"@elliemae/ds-dialog": "~3.
|
|
144
|
-
"@elliemae/ds-form": "~3.
|
|
145
|
-
"@elliemae/ds-form-layout-blocks": "~3.
|
|
146
|
-
"@elliemae/ds-grid": "~3.
|
|
147
|
-
"@elliemae/ds-loading-indicator": "~3.
|
|
148
|
-
"@elliemae/ds-modal": "~3.
|
|
149
|
-
"@elliemae/ds-popperjs": "~3.
|
|
150
|
-
"@elliemae/ds-toast": "~3.
|
|
138
|
+
"@elliemae/ds-basic": "~3.12.1",
|
|
139
|
+
"@elliemae/ds-button": "~3.12.1",
|
|
140
|
+
"@elliemae/ds-controlled-form": "~3.12.1",
|
|
141
|
+
"@elliemae/ds-date-picker": "~3.12.1",
|
|
142
|
+
"@elliemae/ds-date-range-picker": "~3.12.1",
|
|
143
|
+
"@elliemae/ds-dialog": "~3.12.1",
|
|
144
|
+
"@elliemae/ds-form": "~3.12.1",
|
|
145
|
+
"@elliemae/ds-form-layout-blocks": "~3.12.1",
|
|
146
|
+
"@elliemae/ds-grid": "~3.12.1",
|
|
147
|
+
"@elliemae/ds-loading-indicator": "~3.12.1",
|
|
148
|
+
"@elliemae/ds-modal": "~3.12.1",
|
|
149
|
+
"@elliemae/ds-popperjs": "~3.12.1",
|
|
150
|
+
"@elliemae/ds-toast": "~3.12.1",
|
|
151
151
|
"@elliemae/em-ssf-guest": "~1.11.2",
|
|
152
|
-
"@elliemae/pui-cli": "~7.
|
|
152
|
+
"@elliemae/pui-cli": "~7.23.0",
|
|
153
153
|
"@elliemae/pui-diagnostics": "~2.7.5",
|
|
154
154
|
"@elliemae/pui-doc-gen": "~1.4.1",
|
|
155
155
|
"@elliemae/pui-e2e-test-sdk": "~7.7.1",
|
|
156
156
|
"@elliemae/pui-micro-frontend-base": "~1.14.0",
|
|
157
|
-
"@elliemae/pui-scripting-object": "~1.
|
|
157
|
+
"@elliemae/pui-scripting-object": "~1.18.0",
|
|
158
158
|
"@elliemae/pui-theme": "~2.6.0",
|
|
159
159
|
"@elliemae/pui-user-monitoring": "~1.18.1"
|
|
160
160
|
}
|