@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.
@@ -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.117",
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.101",
290
- "@jskit-ai/realtime": "0.1.101",
291
- "@jskit-ai/kernel": "0.1.103",
292
- "@jskit-ai/shell-web": "0.1.102",
293
- "@jskit-ai/uploads-image-web": "0.1.80",
294
- "@jskit-ai/users-core": "0.1.112"
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: "append-text",
406
+ op: "ensure-import",
405
407
  file: "packages/main/src/client/providers/MainClientProvider.js",
406
- position: "top",
407
- skipIfContains: "import AccountSettingsProfileSection from \"/src/components/account/settings/AccountSettingsProfileSection.vue\";",
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: "append-text",
415
+ op: "ensure-import",
415
416
  file: "packages/main/src/client/providers/MainClientProvider.js",
416
- position: "top",
417
- skipIfContains: "import AccountSettingsPreferencesSection from \"/src/components/account/settings/AccountSettingsPreferencesSection.vue\";",
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: "append-text",
424
+ op: "ensure-import",
425
425
  file: "packages/main/src/client/providers/MainClientProvider.js",
426
- position: "top",
427
- skipIfContains: "import AccountSettingsNotificationsSection from \"/src/components/account/settings/AccountSettingsNotificationsSection.vue\";",
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: "append-text",
433
+ op: "ensure-call",
435
434
  file: "packages/main/src/client/providers/MainClientProvider.js",
436
- position: "bottom",
437
- skipIfContains: "registerMainClientComponent(\"local.main.account-settings.section.profile\", () => AccountSettingsProfileSection);",
438
- value: "\nregisterMainClientComponent(\"local.main.account-settings.section.profile\", () => AccountSettingsProfileSection);\n",
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: "append-text",
443
+ op: "ensure-call",
445
444
  file: "packages/main/src/client/providers/MainClientProvider.js",
446
- position: "bottom",
447
- skipIfContains: "registerMainClientComponent(\"local.main.account-settings.section.preferences\", () => AccountSettingsPreferencesSection);",
448
- value: "\nregisterMainClientComponent(\"local.main.account-settings.section.preferences\", () => AccountSettingsPreferencesSection);\n",
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: "append-text",
453
+ op: "ensure-call",
455
454
  file: "packages/main/src/client/providers/MainClientProvider.js",
456
- position: "bottom",
457
- skipIfContains: "registerMainClientComponent(\"local.main.account-settings.section.notifications\", () => AccountSettingsNotificationsSection);",
458
- value: "\nregisterMainClientComponent(\"local.main.account-settings.section.notifications\", () => AccountSettingsNotificationsSection);\n",
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.117",
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.101",
50
- "@jskit-ai/kernel": "0.1.103",
51
- "@jskit-ai/realtime": "0.1.101",
52
- "@jskit-ai/shell-web": "0.1.102",
53
- "@jskit-ai/uploads-image-web": "0.1.80",
54
- "@jskit-ai/users-core": "0.1.112"
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(findTextMutation("users-web-main-client-provider-account-settings-profile-import"), {
377
- op: "append-text",
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
- position: "top",
380
- skipIfContains:
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(findTextMutation("users-web-main-client-provider-account-settings-preferences-import"), {
388
- op: "append-text",
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
- position: "top",
391
- skipIfContains:
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(findTextMutation("users-web-main-client-provider-account-settings-notifications-import"), {
400
- op: "append-text",
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
- position: "top",
403
- skipIfContains:
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(findTextMutation("users-web-main-client-provider-account-settings-profile-register"), {
412
- op: "append-text",
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
- position: "bottom",
415
- skipIfContains:
416
- "registerMainClientComponent(\"local.main.account-settings.section.profile\", () => AccountSettingsProfileSection);",
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(findTextMutation("users-web-main-client-provider-account-settings-preferences-register"), {
424
- op: "append-text",
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
- position: "bottom",
427
- skipIfContains:
428
- "registerMainClientComponent(\"local.main.account-settings.section.preferences\", () => AccountSettingsPreferencesSection);",
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(findTextMutation("users-web-main-client-provider-account-settings-notifications-register"), {
436
- op: "append-text",
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
- position: "bottom",
439
- skipIfContains:
440
- "registerMainClientComponent(\"local.main.account-settings.section.notifications\", () => AccountSettingsNotificationsSection);",
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"