@getpara/react-sdk 2.0.0-alpha.23 → 2.0.0-alpha.25

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.
@@ -4,7 +4,6 @@ import {
4
4
  __spreadValues
5
5
  } from "../../../chunk-MMUBH76A.js";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
- import styled from "styled-components";
8
7
  import { AccountTypeIcon, GradientScroll, StepContainer } from "../common.js";
9
8
  import { CpslButton, CpslIcon, CpslIdenticon, CpslText } from "@getpara/react-components";
10
9
  import { useAccount, useClient } from "../../../provider/index.js";
@@ -117,7 +116,7 @@ const AccountProfile = () => {
117
116
  ] })
118
117
  ] });
119
118
  };
120
- const Section = styled.div`
119
+ const Section = safeStyled.div`
121
120
  display: flex;
122
121
  flex-direction: column;
123
122
  align-items: flex-start;
@@ -125,8 +124,8 @@ const Section = styled.div`
125
124
  gap: 16px;
126
125
  width: 100%;
127
126
  `;
128
- const Content = styled(Section)``;
129
- const Title = styled(CpslText)``;
127
+ const Content = safeStyled(Section)``;
128
+ const Title = safeStyled(CpslText)``;
130
129
  const EntryContainer = safeStyled.div`
131
130
  position: relative;
132
131
  width: 100%;
@@ -152,7 +151,7 @@ const CopyIcon = safeStyled(CpslIcon)`
152
151
  --icon-color: var(--cpsl-color-text-contrast);
153
152
  }
154
153
  `;
155
- const EntryUnlink = styled.a`
154
+ const EntryUnlink = safeStyled.a`
156
155
  color: var(--cpsl-color-utility-red);
157
156
  position: absolute;
158
157
  right: 0;
@@ -3,7 +3,6 @@ import "../../../chunk-MMUBH76A.js";
3
3
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
4
  import { AuthInput } from "../AuthInput/AuthInput.js";
5
5
  import { AccountTypeIcon, GradientScroll, StepContainer } from "../common.js";
6
- import styled from "styled-components";
7
6
  import { CpslButton, CpslDivider, CpslText } from "@getpara/react-components";
8
7
  import { getAccountTypeName } from "../../constants/oAuthLogos.js";
9
8
  import { useExternalWallets } from "../../../provider/providers/ExternalWalletProvider.js";
@@ -11,6 +10,7 @@ import { useAccountLinking } from "../../../provider/providers/AccountLinkProvid
11
10
  import { useEffect, useMemo } from "react";
12
11
  import { EXTERNAL_WALLET_TYPES } from "@getpara/web-sdk";
13
12
  import { useInternalClient } from "../../../provider/hooks/utils/useInternalClient.js";
13
+ import { safeStyled } from "@getpara/react-common";
14
14
  function isExternalWallet(str) {
15
15
  return EXTERNAL_WALLET_TYPES.includes(str);
16
16
  }
@@ -92,14 +92,14 @@ function AccountProfileLinkOptions() {
92
92
  }) })
93
93
  ] }) });
94
94
  }
95
- const Content = styled.div`
95
+ const Content = safeStyled.div`
96
96
  display: flex;
97
97
  flex-direction: column;
98
98
  align-items: flex-start;
99
99
  gap: 8px;
100
100
  width: 100%;
101
101
  `;
102
- const Option = styled(CpslButton)`
102
+ const Option = safeStyled(CpslButton)`
103
103
  --button-justify-content: flex-start;
104
104
 
105
105
  height: 48px;
@@ -5,8 +5,8 @@ import { CpslButton, CpslText } from "@getpara/react-components";
5
5
  import { useEffect, useState } from "react";
6
6
  import { AccountTypeIcon } from "../common.js";
7
7
  import { getAccountTypeName } from "../../constants/oAuthLogos.js";
8
- import styled from "styled-components";
9
8
  import { useAccountLinking } from "../../../provider/providers/AccountLinkProvider.js";
9
+ import { safeStyled } from "@getpara/react-common";
10
10
  function AccountProfileUnlink() {
11
11
  var _a, _b;
12
12
  const { unlinkingAccount, unlinkAccountConfirm, isUnlinkAccountPending } = useAccountLinking(), [accountType, setAccountType] = useState((_b = (_a = unlinkingAccount == null ? void 0 : unlinkingAccount.externalWallet) == null ? void 0 : _a.providerId) != null ? _b : unlinkingAccount == null ? void 0 : unlinkingAccount.type);
@@ -28,17 +28,17 @@ function AccountProfileUnlink() {
28
28
  /* @__PURE__ */ jsx(CpslButton, { variant: "destructive", fullWidth: true, onClick: unlinkAccountConfirm, disabled: isUnlinkAccountPending, children: "Confirm" })
29
29
  ] });
30
30
  }
31
- const Content = styled.div`
31
+ const Content = safeStyled.div`
32
32
  display: flex;
33
33
  flex-direction: column;
34
34
  align-items: center;
35
35
  justify-content: flex-start;
36
36
  gap: 32px;
37
37
  `;
38
- const Upper = styled(Content)`
38
+ const Upper = safeStyled(Content)`
39
39
  gap: 8px;
40
40
  `;
41
- const Message = styled(CpslText)`
41
+ const Message = safeStyled(CpslText)`
42
42
  text-align: center;
43
43
  max-width: 342px;
44
44
  `;
@@ -119,7 +119,7 @@ const BODY_MOTION_VARIANTS = {
119
119
  const BODY_TRANSITION = {
120
120
  duration: 0.2
121
121
  };
122
- const SDK_VERSION = "2.0.0-alpha.22";
122
+ const SDK_VERSION = "2.0.0-alpha.24";
123
123
  export {
124
124
  BODY_MOTION_VARIANTS,
125
125
  BODY_TRANSITION,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/react-sdk",
3
- "version": "2.0.0-alpha.23",
3
+ "version": "2.0.0-alpha.25",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,9 +15,9 @@
15
15
  "*.css"
16
16
  ],
17
17
  "dependencies": {
18
- "@getpara/react-common": "2.0.0-alpha.23",
19
- "@getpara/react-components": "2.0.0-alpha.23",
20
- "@getpara/web-sdk": "2.0.0-alpha.23",
18
+ "@getpara/react-common": "2.0.0-alpha.25",
19
+ "@getpara/react-components": "2.0.0-alpha.25",
20
+ "@getpara/web-sdk": "2.0.0-alpha.25",
21
21
  "date-fns": "^3.6.0",
22
22
  "framer-motion": "11.3.28",
23
23
  "libphonenumber-js": "^1.11.1",
@@ -33,9 +33,9 @@
33
33
  "cli": "node ./dist/cli/cli.mjs"
34
34
  },
35
35
  "devDependencies": {
36
- "@getpara/cosmos-wallet-connectors": "2.0.0-alpha.23",
37
- "@getpara/evm-wallet-connectors": "2.0.0-alpha.23",
38
- "@getpara/solana-wallet-connectors": "2.0.0-alpha.23",
36
+ "@getpara/cosmos-wallet-connectors": "2.0.0-alpha.25",
37
+ "@getpara/evm-wallet-connectors": "2.0.0-alpha.25",
38
+ "@getpara/solana-wallet-connectors": "2.0.0-alpha.25",
39
39
  "@testing-library/dom": "^10.4.0",
40
40
  "@testing-library/react": "^16.3.0",
41
41
  "@testing-library/react-hooks": "^8.0.1",
@@ -63,5 +63,5 @@
63
63
  "resolutions": {
64
64
  "styled-components": "^6"
65
65
  },
66
- "gitHead": "e7c7e95f79bcfca4d57a80f4dd721dc5ecaff24d"
66
+ "gitHead": "51f576cb7d3f0d55fdd5508f7445b2c7b48d0696"
67
67
  }