@chuzi/shared 1.3.15 → 1.3.16
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 +3 -18
- package/dist/api/index.js +2 -4
- package/dist/api/index.js.map +1 -1
- package/dist/config/index.js +27 -0
- package/dist/config/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +29 -4
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +12 -5
- package/dist/types/index.js.map +1 -1
- package/dist/ui/index.js +27 -0
- package/dist/ui/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -270,6 +270,15 @@ var REALMS = {
|
|
|
270
270
|
experience_mapping_helper_realm_idea: "Highest-level concept for this realm.",
|
|
271
271
|
experience_mapping_save_experience: "Save to experience",
|
|
272
272
|
experience_mapping_saved_experience: "Saved to current experience. Some labels appear immediately.",
|
|
273
|
+
auth_email_placeholder: "Email",
|
|
274
|
+
auth_sign_in_button: "Send Sign-In Link",
|
|
275
|
+
auth_signing_in: "Sending...",
|
|
276
|
+
auth_magic_link_sent: "If that email is registered, a magic link has been sent.",
|
|
277
|
+
auth_magic_link_verifying: "Verifying magic link...",
|
|
278
|
+
auth_magic_link_verified: "Signed in. Redirecting...",
|
|
279
|
+
auth_magic_link_failed: "This magic link is invalid or expired.",
|
|
280
|
+
auth_magic_link_cta: "Use another email",
|
|
281
|
+
auth_login_failed: "Sign-in failed.",
|
|
273
282
|
experience_mapping_group_experience_root: "Experience Root",
|
|
274
283
|
experience_mapping_group_node_types: "Node Types",
|
|
275
284
|
experience_mapping_group_scene_structure: "Scene Structure",
|
|
@@ -499,6 +508,15 @@ var REALMS = {
|
|
|
499
508
|
experience_mapping_helper_realm_idea: "Highest-level concept for this realm.",
|
|
500
509
|
experience_mapping_save_experience: "Save to experience",
|
|
501
510
|
experience_mapping_saved_experience: "Saved to current experience. Some labels appear immediately.",
|
|
511
|
+
auth_email_placeholder: "Email",
|
|
512
|
+
auth_sign_in_button: "Send Sign-In Link",
|
|
513
|
+
auth_signing_in: "Sending...",
|
|
514
|
+
auth_magic_link_sent: "If that email is registered, a magic link has been sent.",
|
|
515
|
+
auth_magic_link_verifying: "Verifying magic link...",
|
|
516
|
+
auth_magic_link_verified: "Signed in. Redirecting...",
|
|
517
|
+
auth_magic_link_failed: "This magic link is invalid or expired.",
|
|
518
|
+
auth_magic_link_cta: "Use another email",
|
|
519
|
+
auth_login_failed: "Sign-in failed.",
|
|
502
520
|
experience_mapping_group_experience_root: "Experience Root",
|
|
503
521
|
experience_mapping_group_node_types: "Node Types",
|
|
504
522
|
experience_mapping_group_scene_structure: "Scene Structure",
|
|
@@ -726,6 +744,15 @@ var FALLBACK_LEXICON = {
|
|
|
726
744
|
experience_mapping_helper_realm_idea: "Highest-level concept for this realm.",
|
|
727
745
|
experience_mapping_save_experience: "Save to experience",
|
|
728
746
|
experience_mapping_saved_experience: "Saved to current experience. Some labels appear immediately.",
|
|
747
|
+
auth_email_placeholder: "Email",
|
|
748
|
+
auth_sign_in_button: "Send Sign-In Link",
|
|
749
|
+
auth_signing_in: "Sending...",
|
|
750
|
+
auth_magic_link_sent: "If that email is registered, a magic link has been sent.",
|
|
751
|
+
auth_magic_link_verifying: "Verifying magic link...",
|
|
752
|
+
auth_magic_link_verified: "Signed in. Redirecting...",
|
|
753
|
+
auth_magic_link_failed: "This magic link is invalid or expired.",
|
|
754
|
+
auth_magic_link_cta: "Use another email",
|
|
755
|
+
auth_login_failed: "Sign-in failed.",
|
|
729
756
|
experience_mapping_group_experience_root: "Experience Root",
|
|
730
757
|
experience_mapping_group_node_types: "Node Types",
|
|
731
758
|
experience_mapping_group_scene_structure: "Scene Structure",
|
|
@@ -949,11 +976,9 @@ function createChuziClient(config) {
|
|
|
949
976
|
const request = makeRequester(config);
|
|
950
977
|
return {
|
|
951
978
|
auth: {
|
|
952
|
-
|
|
953
|
-
|
|
979
|
+
requestMagicLink: (req) => request("POST", "/api/v1/auth/magic-link/request", { body: req }),
|
|
980
|
+
verifyMagicLink: (req) => request("POST", "/api/v1/auth/magic-link/verify", { body: req }),
|
|
954
981
|
logout: () => request("POST", "/api/v1/auth/logout"),
|
|
955
|
-
forgotPassword: (req) => request("POST", "/api/v1/auth/forgot-password", { body: req }),
|
|
956
|
-
resetPassword: (req) => request("POST", "/api/v1/auth/reset-password", { body: req }),
|
|
957
982
|
user: () => request("GET", "/api/v1/auth/user")
|
|
958
983
|
},
|
|
959
984
|
catalog: {
|