@elliemae/pui-app-sdk 3.3.0 → 3.4.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/dist/cjs/view/app-router.js +15 -1
- package/dist/esm/view/app-router.js +15 -1
- package/package.json +33 -33
|
@@ -67,7 +67,21 @@ const AppRouter = (_a) => {
|
|
|
67
67
|
action: history.action,
|
|
68
68
|
location: history.location
|
|
69
69
|
});
|
|
70
|
-
(0, import_react.useLayoutEffect)(() =>
|
|
70
|
+
(0, import_react.useLayoutEffect)(() => {
|
|
71
|
+
const unlisten = history.listen((...args) => {
|
|
72
|
+
if (args.length === 2) {
|
|
73
|
+
setState({
|
|
74
|
+
location: args[0],
|
|
75
|
+
action: args[1]
|
|
76
|
+
});
|
|
77
|
+
} else {
|
|
78
|
+
setState(args[0]);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
return () => {
|
|
82
|
+
unlisten();
|
|
83
|
+
};
|
|
84
|
+
}, [history]);
|
|
71
85
|
return /* @__PURE__ */ React.createElement(import_react_router_dom.Router, __spreadProps(__spreadValues({}, props), {
|
|
72
86
|
location: state.location,
|
|
73
87
|
navigationType: state.action,
|
|
@@ -38,7 +38,21 @@ const AppRouter = (_a) => {
|
|
|
38
38
|
action: history.action,
|
|
39
39
|
location: history.location
|
|
40
40
|
});
|
|
41
|
-
useLayoutEffect(() =>
|
|
41
|
+
useLayoutEffect(() => {
|
|
42
|
+
const unlisten = history.listen((...args) => {
|
|
43
|
+
if (args.length === 2) {
|
|
44
|
+
setState({
|
|
45
|
+
location: args[0],
|
|
46
|
+
action: args[1]
|
|
47
|
+
});
|
|
48
|
+
} else {
|
|
49
|
+
setState(args[0]);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
return () => {
|
|
53
|
+
unlisten();
|
|
54
|
+
};
|
|
55
|
+
}, [history]);
|
|
42
56
|
return /* @__PURE__ */ React.createElement(Router, __spreadProps(__spreadValues({}, props), {
|
|
43
57
|
location: state.location,
|
|
44
58
|
navigationType: state.action,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-app-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"description": "ICE MT UI Platform Application SDK ",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css",
|
|
@@ -104,47 +104,47 @@
|
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"@elliemae/app-react-dependencies": "^3.2.0",
|
|
107
|
-
"@elliemae/ds-basic": "^2.4.
|
|
108
|
-
"@elliemae/ds-button": "^2.4.
|
|
109
|
-
"@elliemae/ds-controlled-form": "^2.4.
|
|
110
|
-
"@elliemae/ds-date-picker": "^2.4.
|
|
111
|
-
"@elliemae/ds-date-range-picker": "^2.4.
|
|
112
|
-
"@elliemae/ds-dialog": "^2.4.
|
|
113
|
-
"@elliemae/ds-form": "^2.4.
|
|
114
|
-
"@elliemae/ds-form-layout-blocks": "^2.4.
|
|
115
|
-
"@elliemae/ds-grid": "^2.4.
|
|
116
|
-
"@elliemae/ds-loading-indicator": "^2.4.
|
|
117
|
-
"@elliemae/ds-modal": "^2.4.
|
|
118
|
-
"@elliemae/ds-popperjs": "^2.4.
|
|
119
|
-
"@elliemae/ds-toast": "^2.4.
|
|
107
|
+
"@elliemae/ds-basic": "^2.4.1",
|
|
108
|
+
"@elliemae/ds-button": "^2.4.1",
|
|
109
|
+
"@elliemae/ds-controlled-form": "^2.4.1",
|
|
110
|
+
"@elliemae/ds-date-picker": "^2.4.1",
|
|
111
|
+
"@elliemae/ds-date-range-picker": "^2.4.1",
|
|
112
|
+
"@elliemae/ds-dialog": "^2.4.1",
|
|
113
|
+
"@elliemae/ds-form": "^2.4.1",
|
|
114
|
+
"@elliemae/ds-form-layout-blocks": "^2.4.1",
|
|
115
|
+
"@elliemae/ds-grid": "^2.4.1",
|
|
116
|
+
"@elliemae/ds-loading-indicator": "^2.4.1",
|
|
117
|
+
"@elliemae/ds-modal": "^2.4.1",
|
|
118
|
+
"@elliemae/ds-popperjs": "^2.4.1",
|
|
119
|
+
"@elliemae/ds-toast": "^2.4.1",
|
|
120
120
|
"@elliemae/em-ssf-guest": "^1.11.1",
|
|
121
121
|
"@elliemae/pui-diagnostics": "^2.7.3",
|
|
122
122
|
"@elliemae/pui-micro-frontend-base": "^1.10.1",
|
|
123
|
-
"@elliemae/pui-theme": "^2.
|
|
124
|
-
"@elliemae/pui-user-monitoring": "^1.
|
|
123
|
+
"@elliemae/pui-theme": "^2.4.1",
|
|
124
|
+
"@elliemae/pui-user-monitoring": "^1.14.0"
|
|
125
125
|
},
|
|
126
126
|
"devDependencies": {
|
|
127
127
|
"@elliemae/app-react-dependencies": "~3.2.0",
|
|
128
128
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.3.0",
|
|
129
|
-
"@elliemae/ds-basic": "~2.4.
|
|
130
|
-
"@elliemae/ds-button": "~2.4.
|
|
131
|
-
"@elliemae/ds-controlled-form": "~2.4.
|
|
132
|
-
"@elliemae/ds-date-picker": "~2.4.
|
|
133
|
-
"@elliemae/ds-date-range-picker": "~2.4.
|
|
134
|
-
"@elliemae/ds-dialog": "~2.4.
|
|
135
|
-
"@elliemae/ds-form": "~2.4.
|
|
136
|
-
"@elliemae/ds-form-layout-blocks": "~2.4.
|
|
137
|
-
"@elliemae/ds-grid": "~2.4.
|
|
138
|
-
"@elliemae/ds-loading-indicator": "~2.4.
|
|
139
|
-
"@elliemae/ds-modal": "~2.4.
|
|
140
|
-
"@elliemae/ds-popperjs": "~2.4.
|
|
141
|
-
"@elliemae/ds-toast": "~2.4.
|
|
129
|
+
"@elliemae/ds-basic": "~2.4.1",
|
|
130
|
+
"@elliemae/ds-button": "~2.4.1",
|
|
131
|
+
"@elliemae/ds-controlled-form": "~2.4.1",
|
|
132
|
+
"@elliemae/ds-date-picker": "~2.4.1",
|
|
133
|
+
"@elliemae/ds-date-range-picker": "~2.4.1",
|
|
134
|
+
"@elliemae/ds-dialog": "~2.4.1",
|
|
135
|
+
"@elliemae/ds-form": "~2.4.1",
|
|
136
|
+
"@elliemae/ds-form-layout-blocks": "~2.4.1",
|
|
137
|
+
"@elliemae/ds-grid": "~2.4.1",
|
|
138
|
+
"@elliemae/ds-loading-indicator": "~2.4.1",
|
|
139
|
+
"@elliemae/ds-modal": "~2.4.1",
|
|
140
|
+
"@elliemae/ds-popperjs": "~2.4.1",
|
|
141
|
+
"@elliemae/ds-toast": "~2.4.1",
|
|
142
142
|
"@elliemae/em-ssf-guest": "~1.11.1",
|
|
143
|
-
"@elliemae/pui-cli": "~6.
|
|
143
|
+
"@elliemae/pui-cli": "~6.9.0",
|
|
144
144
|
"@elliemae/pui-diagnostics": "~2.7.3",
|
|
145
|
-
"@elliemae/pui-e2e-test-sdk": "~7.
|
|
145
|
+
"@elliemae/pui-e2e-test-sdk": "~7.1.0",
|
|
146
146
|
"@elliemae/pui-micro-frontend-base": "~1.10.1",
|
|
147
|
-
"@elliemae/pui-theme": "~2.
|
|
148
|
-
"@elliemae/pui-user-monitoring": "~1.
|
|
147
|
+
"@elliemae/pui-theme": "~2.4.1",
|
|
148
|
+
"@elliemae/pui-user-monitoring": "~1.14.0"
|
|
149
149
|
}
|
|
150
150
|
}
|