@jskit-ai/users-web 0.2.105 → 0.2.106
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/CHANGELOG.md +5 -1
- package/locales/en.json +12 -1
- package/package.json +5 -5
- package/patterns/account-settings/PATTERN.md +59 -10
- package/patterns/account-settings/example/src/components/account/settings/AccountSettingsNotificationsSection.vue +25 -12
- package/patterns/account-settings/example/src/components/account/settings/AccountSettingsPreferencesSection.vue +25 -19
- package/patterns/account-settings/example/src/components/account/settings/AccountSettingsProfileSection.vue +74 -54
- package/patterns/account-settings/example/src/components/account/settings/AccountSettingsSignInMethodsSection.vue +7 -2
- package/src/client/account-settings/sections.js +39 -0
- package/src/client/components/AccountSettingsClientElement.vue +254 -28
- package/src/client/composables/useAccountSettingsRuntime.js +30 -5
- package/test/accountSettings.browser.test.js +371 -28
- package/test/accountSettingsSections.test.js +57 -0
- package/test/settingsPlacementContract.test.js +4 -2
|
@@ -90,10 +90,12 @@ test("package-owned account settings host is placement-backed rather than scaffo
|
|
|
90
90
|
);
|
|
91
91
|
|
|
92
92
|
assert.match(source, /useAccountSettingsSections/);
|
|
93
|
-
// The app bar carries the title, and Done only where Up can't go back; the
|
|
93
|
+
// The app bar carries the title, and Done only where Up can't go back; the list is headed by the account, with no
|
|
94
|
+
// line of copy above it.
|
|
94
95
|
assert.match(source, /<ShellPageActions v-if="showsDone">/u);
|
|
95
96
|
assert.match(source, /const showsDone = computed\(\(\) => !canGoUp\.value \|\| !doneTarget\.value\.sameOrigin\);/u);
|
|
96
|
-
assert.match(source, /settings-
|
|
97
|
+
assert.match(source, /data-testid="account-settings-account"/);
|
|
98
|
+
assert.doesNotMatch(source, /settings-panel__intro/);
|
|
97
99
|
assert.match(source, /useShellPageTitle/);
|
|
98
100
|
assert.doesNotMatch(source, /<h1/u);
|
|
99
101
|
assert.doesNotMatch(source, /AccountSettingsProfileSection|AccountSettingsPreferencesSection|AccountSettingsNotificationsSection/);
|