@jskit-ai/users-web 0.1.117 → 0.1.119
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 +31 -32
- package/package.json +7 -7
- package/test/settingsPlacementContract.test.js +34 -41
package/package.descriptor.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { HOME_COG_OUTLET } from "./src/shared/toolsOutletContracts.js";
|
|
|
3
3
|
export default Object.freeze({
|
|
4
4
|
packageVersion: 1,
|
|
5
5
|
packageId: "@jskit-ai/users-web",
|
|
6
|
-
version: "0.1.
|
|
6
|
+
version: "0.1.119",
|
|
7
7
|
kind: "runtime",
|
|
8
8
|
description: "Users web module: account/profile UI plus shared users web widgets.",
|
|
9
9
|
dependsOn: [
|
|
@@ -286,12 +286,12 @@ export default Object.freeze({
|
|
|
286
286
|
dependencies: {
|
|
287
287
|
runtime: {
|
|
288
288
|
"@mdi/js": "^7.4.47",
|
|
289
|
-
"@jskit-ai/http-runtime": "0.1.
|
|
290
|
-
"@jskit-ai/realtime": "0.1.
|
|
291
|
-
"@jskit-ai/kernel": "0.1.
|
|
292
|
-
"@jskit-ai/shell-web": "0.1.
|
|
293
|
-
"@jskit-ai/uploads-image-web": "0.1.
|
|
294
|
-
"@jskit-ai/users-core": "0.1.
|
|
289
|
+
"@jskit-ai/http-runtime": "0.1.103",
|
|
290
|
+
"@jskit-ai/realtime": "0.1.103",
|
|
291
|
+
"@jskit-ai/kernel": "0.1.105",
|
|
292
|
+
"@jskit-ai/shell-web": "0.1.104",
|
|
293
|
+
"@jskit-ai/uploads-image-web": "0.1.82",
|
|
294
|
+
"@jskit-ai/users-core": "0.1.114"
|
|
295
295
|
},
|
|
296
296
|
dev: {}
|
|
297
297
|
},
|
|
@@ -399,63 +399,62 @@ export default Object.freeze({
|
|
|
399
399
|
reason: "Append users-web account settings semantic topology into app-owned placement topology.",
|
|
400
400
|
category: "users-web",
|
|
401
401
|
id: "users-web-account-settings-topology"
|
|
402
|
-
}
|
|
402
|
+
}
|
|
403
|
+
],
|
|
404
|
+
source: [
|
|
403
405
|
{
|
|
404
|
-
op: "
|
|
406
|
+
op: "ensure-import",
|
|
405
407
|
file: "packages/main/src/client/providers/MainClientProvider.js",
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
value: "import AccountSettingsProfileSection from \"/src/components/account/settings/AccountSettingsProfileSection.vue\";\n",
|
|
408
|
+
defaultImport: "AccountSettingsProfileSection",
|
|
409
|
+
from: "/src/components/account/settings/AccountSettingsProfileSection.vue",
|
|
409
410
|
reason: "Bind the app-owned account profile settings section into local main client provider imports.",
|
|
410
411
|
category: "users-web",
|
|
411
412
|
id: "users-web-main-client-provider-account-settings-profile-import"
|
|
412
413
|
},
|
|
413
414
|
{
|
|
414
|
-
op: "
|
|
415
|
+
op: "ensure-import",
|
|
415
416
|
file: "packages/main/src/client/providers/MainClientProvider.js",
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
value: "import AccountSettingsPreferencesSection from \"/src/components/account/settings/AccountSettingsPreferencesSection.vue\";\n",
|
|
417
|
+
defaultImport: "AccountSettingsPreferencesSection",
|
|
418
|
+
from: "/src/components/account/settings/AccountSettingsPreferencesSection.vue",
|
|
419
419
|
reason: "Bind the app-owned account preferences settings section into local main client provider imports.",
|
|
420
420
|
category: "users-web",
|
|
421
421
|
id: "users-web-main-client-provider-account-settings-preferences-import"
|
|
422
422
|
},
|
|
423
423
|
{
|
|
424
|
-
op: "
|
|
424
|
+
op: "ensure-import",
|
|
425
425
|
file: "packages/main/src/client/providers/MainClientProvider.js",
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
value: "import AccountSettingsNotificationsSection from \"/src/components/account/settings/AccountSettingsNotificationsSection.vue\";\n",
|
|
426
|
+
defaultImport: "AccountSettingsNotificationsSection",
|
|
427
|
+
from: "/src/components/account/settings/AccountSettingsNotificationsSection.vue",
|
|
429
428
|
reason: "Bind the app-owned account notifications settings section into local main client provider imports.",
|
|
430
429
|
category: "users-web",
|
|
431
430
|
id: "users-web-main-client-provider-account-settings-notifications-import"
|
|
432
431
|
},
|
|
433
432
|
{
|
|
434
|
-
op: "
|
|
433
|
+
op: "ensure-call",
|
|
435
434
|
file: "packages/main/src/client/providers/MainClientProvider.js",
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
435
|
+
callee: "registerMainClientComponent",
|
|
436
|
+
args: ["\"local.main.account-settings.section.profile\"", "() => AccountSettingsProfileSection"],
|
|
437
|
+
beforeClass: "MainClientProvider",
|
|
439
438
|
reason: "Bind the app-owned account profile settings section token into local main client provider registry.",
|
|
440
439
|
category: "users-web",
|
|
441
440
|
id: "users-web-main-client-provider-account-settings-profile-register"
|
|
442
441
|
},
|
|
443
442
|
{
|
|
444
|
-
op: "
|
|
443
|
+
op: "ensure-call",
|
|
445
444
|
file: "packages/main/src/client/providers/MainClientProvider.js",
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
445
|
+
callee: "registerMainClientComponent",
|
|
446
|
+
args: ["\"local.main.account-settings.section.preferences\"", "() => AccountSettingsPreferencesSection"],
|
|
447
|
+
beforeClass: "MainClientProvider",
|
|
449
448
|
reason: "Bind the app-owned account preferences settings section token into local main client provider registry.",
|
|
450
449
|
category: "users-web",
|
|
451
450
|
id: "users-web-main-client-provider-account-settings-preferences-register"
|
|
452
451
|
},
|
|
453
452
|
{
|
|
454
|
-
op: "
|
|
453
|
+
op: "ensure-call",
|
|
455
454
|
file: "packages/main/src/client/providers/MainClientProvider.js",
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
455
|
+
callee: "registerMainClientComponent",
|
|
456
|
+
args: ["\"local.main.account-settings.section.notifications\"", "() => AccountSettingsNotificationsSection"],
|
|
457
|
+
beforeClass: "MainClientProvider",
|
|
459
458
|
reason: "Bind the app-owned account notifications settings section token into local main client provider registry.",
|
|
460
459
|
category: "users-web",
|
|
461
460
|
id: "users-web-main-client-provider-account-settings-notifications-register"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/users-web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.119",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --test"
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@mdi/js": "^7.4.47",
|
|
49
|
-
"@jskit-ai/http-runtime": "0.1.
|
|
50
|
-
"@jskit-ai/kernel": "0.1.
|
|
51
|
-
"@jskit-ai/realtime": "0.1.
|
|
52
|
-
"@jskit-ai/shell-web": "0.1.
|
|
53
|
-
"@jskit-ai/uploads-image-web": "0.1.
|
|
54
|
-
"@jskit-ai/users-core": "0.1.
|
|
49
|
+
"@jskit-ai/http-runtime": "0.1.103",
|
|
50
|
+
"@jskit-ai/kernel": "0.1.105",
|
|
51
|
+
"@jskit-ai/realtime": "0.1.103",
|
|
52
|
+
"@jskit-ai/shell-web": "0.1.104",
|
|
53
|
+
"@jskit-ai/uploads-image-web": "0.1.82",
|
|
54
|
+
"@jskit-ai/users-core": "0.1.114"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@tanstack/vue-query": "^5.90.5",
|
|
@@ -44,6 +44,13 @@ function findTextMutation(id) {
|
|
|
44
44
|
: null;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
function findSourceMutation(id) {
|
|
48
|
+
const sourceMutations = descriptor?.mutations?.source;
|
|
49
|
+
return Array.isArray(sourceMutations)
|
|
50
|
+
? sourceMutations.find((entry) => String(entry?.id || "").trim() === id) || null
|
|
51
|
+
: null;
|
|
52
|
+
}
|
|
53
|
+
|
|
47
54
|
function findFileMutation(id) {
|
|
48
55
|
const fileMutations = descriptor?.mutations?.files;
|
|
49
56
|
return Array.isArray(fileMutations)
|
|
@@ -373,73 +380,59 @@ test("users-web descriptor metadata advertises home cog outlet and standard home
|
|
|
373
380
|
category: "users-web",
|
|
374
381
|
id: "users-web-component-account-settings-notifications"
|
|
375
382
|
});
|
|
376
|
-
assert.deepEqual(
|
|
377
|
-
op: "
|
|
383
|
+
assert.deepEqual(findSourceMutation("users-web-main-client-provider-account-settings-profile-import"), {
|
|
384
|
+
op: "ensure-import",
|
|
378
385
|
file: "packages/main/src/client/providers/MainClientProvider.js",
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
"import AccountSettingsProfileSection from \"/src/components/account/settings/AccountSettingsProfileSection.vue\";",
|
|
382
|
-
value: "import AccountSettingsProfileSection from \"/src/components/account/settings/AccountSettingsProfileSection.vue\";\n",
|
|
386
|
+
defaultImport: "AccountSettingsProfileSection",
|
|
387
|
+
from: "/src/components/account/settings/AccountSettingsProfileSection.vue",
|
|
383
388
|
reason: "Bind the app-owned account profile settings section into local main client provider imports.",
|
|
384
389
|
category: "users-web",
|
|
385
390
|
id: "users-web-main-client-provider-account-settings-profile-import"
|
|
386
391
|
});
|
|
387
|
-
assert.deepEqual(
|
|
388
|
-
op: "
|
|
392
|
+
assert.deepEqual(findSourceMutation("users-web-main-client-provider-account-settings-preferences-import"), {
|
|
393
|
+
op: "ensure-import",
|
|
389
394
|
file: "packages/main/src/client/providers/MainClientProvider.js",
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
"import AccountSettingsPreferencesSection from \"/src/components/account/settings/AccountSettingsPreferencesSection.vue\";",
|
|
393
|
-
value:
|
|
394
|
-
"import AccountSettingsPreferencesSection from \"/src/components/account/settings/AccountSettingsPreferencesSection.vue\";\n",
|
|
395
|
+
defaultImport: "AccountSettingsPreferencesSection",
|
|
396
|
+
from: "/src/components/account/settings/AccountSettingsPreferencesSection.vue",
|
|
395
397
|
reason: "Bind the app-owned account preferences settings section into local main client provider imports.",
|
|
396
398
|
category: "users-web",
|
|
397
399
|
id: "users-web-main-client-provider-account-settings-preferences-import"
|
|
398
400
|
});
|
|
399
|
-
assert.deepEqual(
|
|
400
|
-
op: "
|
|
401
|
+
assert.deepEqual(findSourceMutation("users-web-main-client-provider-account-settings-notifications-import"), {
|
|
402
|
+
op: "ensure-import",
|
|
401
403
|
file: "packages/main/src/client/providers/MainClientProvider.js",
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
"import AccountSettingsNotificationsSection from \"/src/components/account/settings/AccountSettingsNotificationsSection.vue\";",
|
|
405
|
-
value:
|
|
406
|
-
"import AccountSettingsNotificationsSection from \"/src/components/account/settings/AccountSettingsNotificationsSection.vue\";\n",
|
|
404
|
+
defaultImport: "AccountSettingsNotificationsSection",
|
|
405
|
+
from: "/src/components/account/settings/AccountSettingsNotificationsSection.vue",
|
|
407
406
|
reason: "Bind the app-owned account notifications settings section into local main client provider imports.",
|
|
408
407
|
category: "users-web",
|
|
409
408
|
id: "users-web-main-client-provider-account-settings-notifications-import"
|
|
410
409
|
});
|
|
411
|
-
assert.deepEqual(
|
|
412
|
-
op: "
|
|
410
|
+
assert.deepEqual(findSourceMutation("users-web-main-client-provider-account-settings-profile-register"), {
|
|
411
|
+
op: "ensure-call",
|
|
413
412
|
file: "packages/main/src/client/providers/MainClientProvider.js",
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
value:
|
|
418
|
-
"\nregisterMainClientComponent(\"local.main.account-settings.section.profile\", () => AccountSettingsProfileSection);\n",
|
|
413
|
+
callee: "registerMainClientComponent",
|
|
414
|
+
args: ["\"local.main.account-settings.section.profile\"", "() => AccountSettingsProfileSection"],
|
|
415
|
+
beforeClass: "MainClientProvider",
|
|
419
416
|
reason: "Bind the app-owned account profile settings section token into local main client provider registry.",
|
|
420
417
|
category: "users-web",
|
|
421
418
|
id: "users-web-main-client-provider-account-settings-profile-register"
|
|
422
419
|
});
|
|
423
|
-
assert.deepEqual(
|
|
424
|
-
op: "
|
|
420
|
+
assert.deepEqual(findSourceMutation("users-web-main-client-provider-account-settings-preferences-register"), {
|
|
421
|
+
op: "ensure-call",
|
|
425
422
|
file: "packages/main/src/client/providers/MainClientProvider.js",
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
value:
|
|
430
|
-
"\nregisterMainClientComponent(\"local.main.account-settings.section.preferences\", () => AccountSettingsPreferencesSection);\n",
|
|
423
|
+
callee: "registerMainClientComponent",
|
|
424
|
+
args: ["\"local.main.account-settings.section.preferences\"", "() => AccountSettingsPreferencesSection"],
|
|
425
|
+
beforeClass: "MainClientProvider",
|
|
431
426
|
reason: "Bind the app-owned account preferences settings section token into local main client provider registry.",
|
|
432
427
|
category: "users-web",
|
|
433
428
|
id: "users-web-main-client-provider-account-settings-preferences-register"
|
|
434
429
|
});
|
|
435
|
-
assert.deepEqual(
|
|
436
|
-
op: "
|
|
430
|
+
assert.deepEqual(findSourceMutation("users-web-main-client-provider-account-settings-notifications-register"), {
|
|
431
|
+
op: "ensure-call",
|
|
437
432
|
file: "packages/main/src/client/providers/MainClientProvider.js",
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
value:
|
|
442
|
-
"\nregisterMainClientComponent(\"local.main.account-settings.section.notifications\", () => AccountSettingsNotificationsSection);\n",
|
|
433
|
+
callee: "registerMainClientComponent",
|
|
434
|
+
args: ["\"local.main.account-settings.section.notifications\"", "() => AccountSettingsNotificationsSection"],
|
|
435
|
+
beforeClass: "MainClientProvider",
|
|
443
436
|
reason: "Bind the app-owned account notifications settings section token into local main client provider registry.",
|
|
444
437
|
category: "users-web",
|
|
445
438
|
id: "users-web-main-client-provider-account-settings-notifications-register"
|