@jskit-ai/users-web 0.1.20 → 0.1.21
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/users-web",
|
|
4
|
-
version: "0.1.
|
|
4
|
+
version: "0.1.21",
|
|
5
5
|
description: "Users web module: workspace selector shell element plus workspace/profile/members UI elements.",
|
|
6
6
|
dependsOn: [
|
|
7
7
|
"@jskit-ai/http-runtime",
|
package/package.json
CHANGED
|
@@ -59,6 +59,9 @@ function useAccountSettingsRuntime() {
|
|
|
59
59
|
const vuetifyTheme = useTheme();
|
|
60
60
|
|
|
61
61
|
const accountSettingsQueryKey = ["users-web", "settings", "account"];
|
|
62
|
+
const accountProfileWriteQueryKey = ["users-web", "settings", "account-profile-write"];
|
|
63
|
+
const accountPreferencesWriteQueryKey = ["users-web", "settings", "account-preferences-write"];
|
|
64
|
+
const accountNotificationsWriteQueryKey = ["users-web", "settings", "account-notifications-write"];
|
|
62
65
|
const pendingInvitesQueryKey = ["users-web", "settings", "pending-invites"];
|
|
63
66
|
const sessionQueryKey = Object.freeze(["users-web", "session", "csrf"]);
|
|
64
67
|
const OWNERSHIP_PUBLIC = USERS_ROUTE_VISIBILITY_PUBLIC;
|
|
@@ -251,7 +254,7 @@ function useAccountSettingsRuntime() {
|
|
|
251
254
|
ownershipFilter: OWNERSHIP_PUBLIC,
|
|
252
255
|
resource: userProfileResource,
|
|
253
256
|
apiSuffix: "/settings/profile",
|
|
254
|
-
queryKeyFactory: () =>
|
|
257
|
+
queryKeyFactory: () => accountProfileWriteQueryKey,
|
|
255
258
|
readEnabled: false,
|
|
256
259
|
writeMethod: "PATCH",
|
|
257
260
|
fallbackSaveError: "Unable to update profile.",
|
|
@@ -293,7 +296,7 @@ function useAccountSettingsRuntime() {
|
|
|
293
296
|
ownershipFilter: OWNERSHIP_PUBLIC,
|
|
294
297
|
resource: userSettingsResource,
|
|
295
298
|
apiSuffix: "/settings/preferences",
|
|
296
|
-
queryKeyFactory: () =>
|
|
299
|
+
queryKeyFactory: () => accountPreferencesWriteQueryKey,
|
|
297
300
|
readEnabled: false,
|
|
298
301
|
writeMethod: "PATCH",
|
|
299
302
|
fallbackSaveError: "Unable to update preferences.",
|
|
@@ -325,7 +328,7 @@ function useAccountSettingsRuntime() {
|
|
|
325
328
|
ownershipFilter: OWNERSHIP_PUBLIC,
|
|
326
329
|
resource: userSettingsResource,
|
|
327
330
|
apiSuffix: "/settings/notifications",
|
|
328
|
-
queryKeyFactory: () =>
|
|
331
|
+
queryKeyFactory: () => accountNotificationsWriteQueryKey,
|
|
329
332
|
readEnabled: false,
|
|
330
333
|
writeMethod: "PATCH",
|
|
331
334
|
fallbackSaveError: "Unable to update notifications.",
|