@streamlayer/react 0.2.11 → 0.2.12

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.
Files changed (3) hide show
  1. package/main.cjs +2 -2
  2. package/main.js +2 -2
  3. package/package.json +1 -1
package/main.cjs CHANGED
@@ -568,7 +568,7 @@ var Login = ({ login: login2, anonymousLogin }) => {
568
568
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(FormInputContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_phone_number_input.default, { value: phoneInput, onChange: (val) => setPhoneInput(`${val}`) }) }),
569
569
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(FormSubmit, { disabled: !(0, import_react_phone_number_input.isValidPhoneNumber)(phoneInput), type: "submit", children: "request code" })
570
570
  ] }),
571
- anonymousLogin && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(FormSubmit, { style: { display: "block", margin: "auto" }, disabled: true, onClick: anonymousLogin, children: "anonymous login" })
571
+ anonymousLogin && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(FormSubmit, { style: { display: "block", margin: "auto" }, onClick: anonymousLogin, children: "anonymous login" })
572
572
  ] }),
573
573
  phone && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(Form, { onSubmit: loginByCode, children: [
574
574
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(FormTitle, { children: "Enter Verification Code" }),
@@ -2957,7 +2957,7 @@ var bypass = async (instance, opts, done) => {
2957
2957
  }
2958
2958
  instance.sdk.authorizationBypass = async (schema, userKey) => {
2959
2959
  await instance.auth.login(schema, userKey);
2960
- localStorage.setItem("sl-user-schema", schema);
2960
+ localStorage.setItem("sl-user-schema", "streamlayer:streamlayer");
2961
2961
  };
2962
2962
  instance.sdk.logout = () => {
2963
2963
  instance.auth.logout();
package/main.js CHANGED
@@ -535,7 +535,7 @@ var Login = ({ login: login2, anonymousLogin }) => {
535
535
  /* @__PURE__ */ jsx3(FormInputContainer, { children: /* @__PURE__ */ jsx3(PhoneInput, { value: phoneInput, onChange: (val) => setPhoneInput(`${val}`) }) }),
536
536
  /* @__PURE__ */ jsx3(FormSubmit, { disabled: !isValidPhoneNumber(phoneInput), type: "submit", children: "request code" })
537
537
  ] }),
538
- anonymousLogin && /* @__PURE__ */ jsx3(FormSubmit, { style: { display: "block", margin: "auto" }, disabled: true, onClick: anonymousLogin, children: "anonymous login" })
538
+ anonymousLogin && /* @__PURE__ */ jsx3(FormSubmit, { style: { display: "block", margin: "auto" }, onClick: anonymousLogin, children: "anonymous login" })
539
539
  ] }),
540
540
  phone && /* @__PURE__ */ jsxs2(Form, { onSubmit: loginByCode, children: [
541
541
  /* @__PURE__ */ jsx3(FormTitle, { children: "Enter Verification Code" }),
@@ -2928,7 +2928,7 @@ var bypass = async (instance, opts, done) => {
2928
2928
  }
2929
2929
  instance.sdk.authorizationBypass = async (schema, userKey) => {
2930
2930
  await instance.auth.login(schema, userKey);
2931
- localStorage.setItem("sl-user-schema", schema);
2931
+ localStorage.setItem("sl-user-schema", "streamlayer:streamlayer");
2932
2932
  };
2933
2933
  instance.sdk.logout = () => {
2934
2934
  instance.auth.logout();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "type": "module",
5
5
  "author": "Renat Berezovsky (gh:BrRenat)",
6
6
  "main": "./main.cjs",