@howone/sdk 0.3.5 → 0.3.7
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/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -162,7 +162,7 @@ function parseUserFromToken(token) {
|
|
|
162
162
|
const payload = decodeJwtPayload(token);
|
|
163
163
|
if (!payload) return null;
|
|
164
164
|
return {
|
|
165
|
-
id: payload.userId || payload.sub || "",
|
|
165
|
+
id: payload.puid || payload.userId || payload.sub || "",
|
|
166
166
|
email: payload.email || "",
|
|
167
167
|
name: payload.name || "",
|
|
168
168
|
avatar: payload.avatar || payload.picture || ""
|
|
@@ -1378,7 +1378,7 @@ var HowOneProvider = ({
|
|
|
1378
1378
|
/* @__PURE__ */ jsx7(ElementSelectorProvider, { children: /* @__PURE__ */ jsxs5(HowoneContext.Provider, { value, children: [
|
|
1379
1379
|
children,
|
|
1380
1380
|
showFloatingButton && /* @__PURE__ */ jsx7(FloatingButton, { onClick: () => window.open("https://howone.ai", "_blank") }),
|
|
1381
|
-
pendingRedirect && /* @__PURE__ */ jsx7("div", { className: "fixed inset-0 z-[
|
|
1381
|
+
pendingRedirect && /* @__PURE__ */ jsx7("div", { className: "fixed inset-0 z-[100000] h-full w-full flex flex-col items-center justify-center bg-black/65 backdrop-blur-sm text-white", children: /* @__PURE__ */ jsxs5("div", { className: "relative mt-6 flex h-[220px] w-[220px] items-center justify-center", children: [
|
|
1382
1382
|
/* @__PURE__ */ jsx7(
|
|
1383
1383
|
"div",
|
|
1384
1384
|
{
|