@jskit-ai/auth-web 0.1.65 → 0.1.67
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.67",
|
|
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
|
}
|
|
@@ -219,10 +248,10 @@ export default Object.freeze({
|
|
|
219
248
|
"runtime": {
|
|
220
249
|
"@tanstack/vue-query": "5.92.12",
|
|
221
250
|
"@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.
|
|
251
|
+
"@jskit-ai/auth-core": "0.1.65",
|
|
252
|
+
"@jskit-ai/http-runtime": "0.1.65",
|
|
253
|
+
"@jskit-ai/kernel": "0.1.66",
|
|
254
|
+
"@jskit-ai/shell-web": "0.1.65",
|
|
226
255
|
"vuetify": "^4.0.0"
|
|
227
256
|
},
|
|
228
257
|
"dev": {}
|
|
@@ -281,10 +310,20 @@ export default Object.freeze({
|
|
|
281
310
|
"file": "src/placement.js",
|
|
282
311
|
"position": "bottom",
|
|
283
312
|
"skipIfContains": "id: \"auth.profile.widget\"",
|
|
284
|
-
"value": "\naddPlacement({\n id: \"auth.profile.widget\",\n target: \"shell
|
|
313
|
+
"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
314
|
"reason": "Append auth profile placement entries into app-owned placement registry.",
|
|
286
315
|
"category": "auth-web",
|
|
287
316
|
"id": "auth-web-placement-block"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"op": "append-text",
|
|
320
|
+
"file": "src/placementTopology.js",
|
|
321
|
+
"position": "bottom",
|
|
322
|
+
"skipIfContains": "id: \"auth.profile-menu\"",
|
|
323
|
+
"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",
|
|
324
|
+
"reason": "Append auth profile menu topology into the app-owned placement topology.",
|
|
325
|
+
"category": "auth-web",
|
|
326
|
+
"id": "auth-web-profile-menu-topology"
|
|
288
327
|
}
|
|
289
328
|
]
|
|
290
329
|
}
|
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.67",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --test"
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@tanstack/vue-query": "^5.90.5",
|
|
22
|
-
"@jskit-ai/auth-core": "0.1.
|
|
22
|
+
"@jskit-ai/auth-core": "0.1.65",
|
|
23
23
|
"@mdi/js": "^7.4.47",
|
|
24
|
-
"@jskit-ai/kernel": "0.1.
|
|
25
|
-
"@jskit-ai/shell-web": "0.1.
|
|
24
|
+
"@jskit-ai/kernel": "0.1.66",
|
|
25
|
+
"@jskit-ai/shell-web": "0.1.65",
|
|
26
26
|
"pinia": "^3.0.4",
|
|
27
27
|
"vuetify": "^4.0.0",
|
|
28
|
-
"@jskit-ai/http-runtime": "0.1.
|
|
28
|
+
"@jskit-ai/http-runtime": "0.1.65"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"vue": "^3.5.13",
|
|
@@ -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>
|