@chuzi/shared 1.3.17 → 1.3.19
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/dist/api/index.d.ts +7 -1
- package/dist/api/index.js +9 -1
- package/dist/api/index.js.map +1 -1
- package/dist/config/index.js +33 -0
- package/dist/config/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +42 -1
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +9 -1
- package/dist/types/index.js.map +1 -1
- package/dist/ui/index.js +33 -0
- package/dist/ui/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -274,6 +274,12 @@ var REALMS = {
|
|
|
274
274
|
auth_password_input_placeholder: "Password",
|
|
275
275
|
auth_password_sign_in_button: "Sign In",
|
|
276
276
|
auth_password_signing_in: "Signing in...",
|
|
277
|
+
auth_signin_tab: "Sign in",
|
|
278
|
+
auth_signup_tab: "Sign up",
|
|
279
|
+
auth_signup_subtitle: "Create your account with a magic link.",
|
|
280
|
+
auth_signin_subtitle: "Jump back in with your magic link.",
|
|
281
|
+
auth_sign_up_button: "Send Sign-Up Link",
|
|
282
|
+
auth_username_placeholder: "Username",
|
|
277
283
|
auth_sign_in_button: "Send Sign-In Link",
|
|
278
284
|
auth_signing_in: "Sending...",
|
|
279
285
|
auth_magic_link_sent: "If that email is registered, a magic link has been sent.",
|
|
@@ -282,6 +288,11 @@ var REALMS = {
|
|
|
282
288
|
auth_magic_link_failed: "This magic link is invalid or expired.",
|
|
283
289
|
auth_magic_link_cta: "Use another email",
|
|
284
290
|
auth_login_failed: "Sign-in failed.",
|
|
291
|
+
auth_username_checking: "Checking username availability...",
|
|
292
|
+
auth_username_available: "Username is available.",
|
|
293
|
+
auth_username_unavailable: "Username is taken; updated to an available suggestion.",
|
|
294
|
+
auth_username_required: "Username is required.",
|
|
295
|
+
auth_username_update_failed: "Could not reserve a unique username.",
|
|
285
296
|
experience_mapping_group_experience_root: "Experience Root",
|
|
286
297
|
experience_mapping_group_node_types: "Node Types",
|
|
287
298
|
experience_mapping_group_scene_structure: "Scene Structure",
|
|
@@ -515,6 +526,12 @@ var REALMS = {
|
|
|
515
526
|
auth_password_input_placeholder: "Password",
|
|
516
527
|
auth_password_sign_in_button: "Sign In",
|
|
517
528
|
auth_password_signing_in: "Signing in...",
|
|
529
|
+
auth_signin_tab: "Sign in",
|
|
530
|
+
auth_signup_tab: "Sign up",
|
|
531
|
+
auth_signup_subtitle: "Create your account with a magic link.",
|
|
532
|
+
auth_signin_subtitle: "Jump back in with your magic link.",
|
|
533
|
+
auth_sign_up_button: "Send Sign-Up Link",
|
|
534
|
+
auth_username_placeholder: "Username",
|
|
518
535
|
auth_sign_in_button: "Send Sign-In Link",
|
|
519
536
|
auth_signing_in: "Sending...",
|
|
520
537
|
auth_magic_link_sent: "If that email is registered, a magic link has been sent.",
|
|
@@ -523,6 +540,11 @@ var REALMS = {
|
|
|
523
540
|
auth_magic_link_failed: "This magic link is invalid or expired.",
|
|
524
541
|
auth_magic_link_cta: "Use another email",
|
|
525
542
|
auth_login_failed: "Sign-in failed.",
|
|
543
|
+
auth_username_checking: "Checking username availability...",
|
|
544
|
+
auth_username_available: "Username is available.",
|
|
545
|
+
auth_username_unavailable: "Username is taken; updated to an available suggestion.",
|
|
546
|
+
auth_username_required: "Username is required.",
|
|
547
|
+
auth_username_update_failed: "Could not reserve a unique username.",
|
|
526
548
|
experience_mapping_group_experience_root: "Experience Root",
|
|
527
549
|
experience_mapping_group_node_types: "Node Types",
|
|
528
550
|
experience_mapping_group_scene_structure: "Scene Structure",
|
|
@@ -754,6 +776,12 @@ var FALLBACK_LEXICON = {
|
|
|
754
776
|
auth_password_input_placeholder: "Password",
|
|
755
777
|
auth_password_sign_in_button: "Sign In",
|
|
756
778
|
auth_password_signing_in: "Signing in...",
|
|
779
|
+
auth_signin_tab: "Sign in",
|
|
780
|
+
auth_signup_tab: "Sign up",
|
|
781
|
+
auth_signup_subtitle: "Create your account with a magic link.",
|
|
782
|
+
auth_signin_subtitle: "Jump back in with your magic link.",
|
|
783
|
+
auth_sign_up_button: "Send Sign-Up Link",
|
|
784
|
+
auth_username_placeholder: "Username",
|
|
757
785
|
auth_sign_in_button: "Send Sign-In Link",
|
|
758
786
|
auth_signing_in: "Sending...",
|
|
759
787
|
auth_magic_link_sent: "If that email is registered, a magic link has been sent.",
|
|
@@ -762,6 +790,11 @@ var FALLBACK_LEXICON = {
|
|
|
762
790
|
auth_magic_link_failed: "This magic link is invalid or expired.",
|
|
763
791
|
auth_magic_link_cta: "Use another email",
|
|
764
792
|
auth_login_failed: "Sign-in failed.",
|
|
793
|
+
auth_username_checking: "Checking username availability...",
|
|
794
|
+
auth_username_available: "Username is available.",
|
|
795
|
+
auth_username_unavailable: "Username is taken; updated to an available suggestion.",
|
|
796
|
+
auth_username_required: "Username is required.",
|
|
797
|
+
auth_username_update_failed: "Could not reserve a unique username.",
|
|
765
798
|
experience_mapping_group_experience_root: "Experience Root",
|
|
766
799
|
experience_mapping_group_node_types: "Node Types",
|
|
767
800
|
experience_mapping_group_scene_structure: "Scene Structure",
|
|
@@ -988,6 +1021,10 @@ function createChuziClient(config) {
|
|
|
988
1021
|
login: (req) => request("POST", "/api/v1/auth/login", { body: req }),
|
|
989
1022
|
requestMagicLink: (req) => request("POST", "/api/v1/auth/magic-link/request", { body: req }),
|
|
990
1023
|
verifyMagicLink: (req) => request("POST", "/api/v1/auth/magic-link/verify", { body: req }),
|
|
1024
|
+
usernameAvailability: (username, opts) => request("GET", "/api/v1/auth/username-availability", {
|
|
1025
|
+
signal: opts?.signal,
|
|
1026
|
+
query: { username }
|
|
1027
|
+
}),
|
|
991
1028
|
logout: () => request("POST", "/api/v1/auth/logout"),
|
|
992
1029
|
user: () => request("GET", "/api/v1/auth/user")
|
|
993
1030
|
},
|
|
@@ -1055,7 +1092,11 @@ function createChuziClient(config) {
|
|
|
1055
1092
|
publicProfile: (userId, opts) => request("GET", `/api/v1/users/${encodeURIComponent(userId)}/public`, opts),
|
|
1056
1093
|
updateRealm: (req) => request("PUT", "/api/v1/user/realm", { body: req }),
|
|
1057
1094
|
updateLocale: (req) => request("PUT", "/api/v1/user/locale", { body: req }),
|
|
1058
|
-
updateProfile: (req) => request("PUT", "/api/v1/user/profile", { body: req })
|
|
1095
|
+
updateProfile: (req) => request("PUT", "/api/v1/user/profile", { body: req }),
|
|
1096
|
+
usernameAvailability: (username, opts) => request("GET", "/api/v1/user/username-availability", {
|
|
1097
|
+
signal: opts?.signal,
|
|
1098
|
+
query: { username }
|
|
1099
|
+
})
|
|
1059
1100
|
},
|
|
1060
1101
|
credits: {
|
|
1061
1102
|
balance: (opts) => request("GET", "/api/v1/credits/balance", opts),
|