@jskit-ai/auth-web 0.1.66 → 0.1.68
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.descriptor.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default Object.freeze({
|
|
2
2
|
"packageVersion": 1,
|
|
3
3
|
"packageId": "@jskit-ai/auth-web",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.68",
|
|
5
5
|
"kind": "runtime",
|
|
6
6
|
"description": "Auth web module: Fastify auth routes plus web login/sign-out scaffolds.",
|
|
7
7
|
"dependsOn": [
|
|
@@ -178,15 +178,44 @@ export default Object.freeze({
|
|
|
178
178
|
"outlets": [
|
|
179
179
|
{
|
|
180
180
|
"target": "auth-profile-menu:primary-menu",
|
|
181
|
-
"defaultLinkComponentToken": "auth.web.profile.menu.link-item",
|
|
182
181
|
"surfaces": ["*"],
|
|
183
182
|
"source": "src/client/views/AuthProfileWidget.vue"
|
|
184
183
|
}
|
|
185
184
|
],
|
|
185
|
+
"topology": {
|
|
186
|
+
"placements": [
|
|
187
|
+
{
|
|
188
|
+
"id": "auth.profile-menu",
|
|
189
|
+
"description": "Authenticated profile menu actions.",
|
|
190
|
+
"surfaces": ["*"],
|
|
191
|
+
"variants": {
|
|
192
|
+
"compact": {
|
|
193
|
+
"outlet": "auth-profile-menu:primary-menu",
|
|
194
|
+
"renderers": {
|
|
195
|
+
"link": "auth.web.profile.menu.link-item"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"medium": {
|
|
199
|
+
"outlet": "auth-profile-menu:primary-menu",
|
|
200
|
+
"renderers": {
|
|
201
|
+
"link": "auth.web.profile.menu.link-item"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"expanded": {
|
|
205
|
+
"outlet": "auth-profile-menu:primary-menu",
|
|
206
|
+
"renderers": {
|
|
207
|
+
"link": "auth.web.profile.menu.link-item"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
]
|
|
213
|
+
},
|
|
186
214
|
"contributions": [
|
|
187
215
|
{
|
|
188
216
|
"id": "auth.profile.widget",
|
|
189
|
-
"target": "shell
|
|
217
|
+
"target": "shell.status",
|
|
218
|
+
"kind": "component",
|
|
190
219
|
"surfaces": ["*"],
|
|
191
220
|
"order": 1000,
|
|
192
221
|
"componentToken": "auth.web.profile.widget",
|
|
@@ -194,19 +223,19 @@ export default Object.freeze({
|
|
|
194
223
|
},
|
|
195
224
|
{
|
|
196
225
|
"id": "auth.profile.menu.sign-in",
|
|
197
|
-
"target": "auth
|
|
226
|
+
"target": "auth.profile-menu",
|
|
227
|
+
"kind": "link",
|
|
198
228
|
"surfaces": ["*"],
|
|
199
229
|
"order": 200,
|
|
200
|
-
"componentToken": "auth.web.profile.menu.link-item",
|
|
201
230
|
"when": "auth.authenticated !== true",
|
|
202
231
|
"source": "mutations.text#auth-web-placement-block"
|
|
203
232
|
},
|
|
204
233
|
{
|
|
205
234
|
"id": "auth.profile.menu.sign-out",
|
|
206
|
-
"target": "auth
|
|
235
|
+
"target": "auth.profile-menu",
|
|
236
|
+
"kind": "link",
|
|
207
237
|
"surfaces": ["*"],
|
|
208
238
|
"order": 1000,
|
|
209
|
-
"componentToken": "auth.web.profile.menu.link-item",
|
|
210
239
|
"when": "auth.authenticated === true",
|
|
211
240
|
"source": "mutations.text#auth-web-placement-block"
|
|
212
241
|
}
|
|
@@ -217,13 +246,11 @@ export default Object.freeze({
|
|
|
217
246
|
"mutations": {
|
|
218
247
|
"dependencies": {
|
|
219
248
|
"runtime": {
|
|
220
|
-
"@tanstack/vue-query": "5.92.12",
|
|
221
249
|
"@mdi/js": "^7.4.47",
|
|
222
|
-
"@jskit-ai/auth-core": "0.1.
|
|
223
|
-
"@jskit-ai/http-runtime": "0.1.
|
|
224
|
-
"@jskit-ai/kernel": "0.1.
|
|
225
|
-
"@jskit-ai/shell-web": "0.1.
|
|
226
|
-
"vuetify": "^4.0.0"
|
|
250
|
+
"@jskit-ai/auth-core": "0.1.66",
|
|
251
|
+
"@jskit-ai/http-runtime": "0.1.66",
|
|
252
|
+
"@jskit-ai/kernel": "0.1.67",
|
|
253
|
+
"@jskit-ai/shell-web": "0.1.66"
|
|
227
254
|
},
|
|
228
255
|
"dev": {}
|
|
229
256
|
},
|
|
@@ -281,10 +308,20 @@ export default Object.freeze({
|
|
|
281
308
|
"file": "src/placement.js",
|
|
282
309
|
"position": "bottom",
|
|
283
310
|
"skipIfContains": "id: \"auth.profile.widget\"",
|
|
284
|
-
"value": "\naddPlacement({\n id: \"auth.profile.widget\",\n target: \"shell
|
|
311
|
+
"value": "\naddPlacement({\n id: \"auth.profile.widget\",\n target: \"shell.status\",\n kind: \"component\",\n surfaces: [\"*\"],\n order: 1000,\n componentToken: \"auth.web.profile.widget\"\n});\n\naddPlacement({\n id: \"auth.profile.menu.sign-in\",\n target: \"auth.profile-menu\",\n kind: \"link\",\n surfaces: [\"*\"],\n order: 200,\n props: {\n label: \"Sign in\",\n to: \"/auth/login\"\n },\n when: ({ auth }) => auth?.authenticated !== true\n});\n\naddPlacement({\n id: \"auth.profile.menu.sign-out\",\n target: \"auth.profile-menu\",\n kind: \"link\",\n surfaces: [\"*\"],\n order: 1000,\n props: {\n label: \"Sign out\",\n to: \"/auth/signout\"\n },\n when: ({ auth }) => auth?.authenticated === true\n});\n",
|
|
285
312
|
"reason": "Append auth profile placement entries into app-owned placement registry.",
|
|
286
313
|
"category": "auth-web",
|
|
287
314
|
"id": "auth-web-placement-block"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"op": "append-text",
|
|
318
|
+
"file": "src/placementTopology.js",
|
|
319
|
+
"position": "bottom",
|
|
320
|
+
"skipIfContains": "id: \"auth.profile-menu\"",
|
|
321
|
+
"value": "\naddPlacementTopology({\n id: \"auth.profile-menu\",\n description: \"Authenticated profile menu actions.\",\n surfaces: [\"*\"],\n variants: {\n compact: {\n outlet: \"auth-profile-menu:primary-menu\",\n renderers: {\n link: \"auth.web.profile.menu.link-item\"\n }\n },\n medium: {\n outlet: \"auth-profile-menu:primary-menu\",\n renderers: {\n link: \"auth.web.profile.menu.link-item\"\n }\n },\n expanded: {\n outlet: \"auth-profile-menu:primary-menu\",\n renderers: {\n link: \"auth.web.profile.menu.link-item\"\n }\n }\n }\n});\n",
|
|
322
|
+
"reason": "Append auth profile menu topology into the app-owned placement topology.",
|
|
323
|
+
"category": "auth-web",
|
|
324
|
+
"id": "auth-web-profile-menu-topology"
|
|
288
325
|
}
|
|
289
326
|
]
|
|
290
327
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/auth-web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.68",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --test"
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
"./client/runtime/useSignOut": "./src/client/runtime/useSignOut.js"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@
|
|
22
|
-
"@jskit-ai/auth-core": "0.1.64",
|
|
21
|
+
"@jskit-ai/auth-core": "0.1.66",
|
|
23
22
|
"@mdi/js": "^7.4.47",
|
|
24
|
-
"@jskit-ai/kernel": "0.1.
|
|
25
|
-
"@jskit-ai/shell-web": "0.1.
|
|
26
|
-
"
|
|
27
|
-
"vuetify": "^4.0.0",
|
|
28
|
-
"@jskit-ai/http-runtime": "0.1.64"
|
|
23
|
+
"@jskit-ai/kernel": "0.1.67",
|
|
24
|
+
"@jskit-ai/shell-web": "0.1.66",
|
|
25
|
+
"@jskit-ai/http-runtime": "0.1.66"
|
|
29
26
|
},
|
|
30
27
|
"peerDependencies": {
|
|
28
|
+
"@tanstack/vue-query": "^5.90.5",
|
|
29
|
+
"pinia": "^3.0.4",
|
|
31
30
|
"vue": "^3.5.13",
|
|
32
|
-
"vue-router": "^5.0.4"
|
|
31
|
+
"vue-router": "^5.0.4",
|
|
32
|
+
"vuetify": "^4.0.0"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -75,7 +75,6 @@ const placementContext = computed(() => {
|
|
|
75
75
|
<v-list min-width="220" density="comfortable" class="py-1">
|
|
76
76
|
<ShellOutlet
|
|
77
77
|
target="auth-profile-menu:primary-menu"
|
|
78
|
-
default-link-component-token="auth.web.profile.menu.link-item"
|
|
79
78
|
:context="placementContext"
|
|
80
79
|
/>
|
|
81
80
|
</v-list>
|