@jskit-ai/auth-web 0.2.47 → 0.2.48
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/auth-web",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.48",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jskit test"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@jskit-ai/auth-core": "0.2.31",
|
|
37
37
|
"@jskit-ai/http-runtime": "0.2.27",
|
|
38
38
|
"@jskit-ai/kernel": "0.2.27",
|
|
39
|
-
"@jskit-ai/shell-web": "0.2.
|
|
39
|
+
"@jskit-ai/shell-web": "0.2.42",
|
|
40
40
|
"@tanstack/vue-query": "^5.90.5",
|
|
41
41
|
"pinia": "^4.0.3",
|
|
42
42
|
"vue": "^3.5.44",
|
|
@@ -191,10 +191,14 @@ test("removing the authenticator takes a code or a recovery code, shows a wait b
|
|
|
191
191
|
});
|
|
192
192
|
|
|
193
193
|
// Whether every part of the shell's page around the console (its app bar and main at least) is inert, as it is while
|
|
194
|
-
// the step-up dialog is open, or else every part live.
|
|
194
|
+
// the step-up dialog is open, or else every part live but a closed modal drawer or side sheet, which stays inert.
|
|
195
195
|
async function shellPageIs(page, inert) {
|
|
196
|
-
const parts = await page.evaluate(() => [...document.querySelectorAll("[data-shell-page]")].map((part) =>
|
|
197
|
-
|
|
196
|
+
const parts = await page.evaluate(() => [...document.querySelectorAll("[data-shell-page]")].map((part) => ({
|
|
197
|
+
inert: part.inert,
|
|
198
|
+
closedDrawer: part.classList.contains("v-navigation-drawer--temporary") &&
|
|
199
|
+
!part.classList.contains("v-navigation-drawer--active")
|
|
200
|
+
})));
|
|
201
|
+
return parts.length >= 2 && parts.every((part) => part.inert === (inert || part.closedDrawer));
|
|
198
202
|
}
|
|
199
203
|
|
|
200
204
|
test("a route that asks for a fresh code opens the step-up dialog over an inert page, runs again after the code, and Escape cancels it, focus returning to the control each time", options, async () => {
|