@getpara/react-common 2.0.0-alpha.18 → 2.0.0-alpha.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/components/HeroSpinner.js +5 -5
- package/dist/components/KnownDevices.js +5 -6
- package/dist/components/MoonPayEmbed.js +2 -3
- package/dist/components/NetworkSpeedBanner.js +5 -5
- package/dist/components/QRCode.js +7 -7
- package/dist/components/UserIdentifier.js +6 -7
- package/dist/components/common.d.ts +3 -3
- package/dist/components/common.js +7 -7
- package/dist/types/externalWalletCommon.d.ts +9 -2
- package/dist/types/externalWalletCommon.js +4 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/safeStyled.d.ts +2 -0
- package/dist/utils/safeStyled.js +25 -0
- package/package.json +4 -4
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "../chunk-GOCCUU3Z.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { CpslIcon, CpslSpinner, CpslText } from "@getpara/react-components";
|
|
5
|
-
import
|
|
5
|
+
import { safeStyled } from "../utils/index.js";
|
|
6
6
|
function HeroSpinner({
|
|
7
7
|
icon,
|
|
8
8
|
status = "inactive",
|
|
@@ -19,7 +19,7 @@ function HeroSpinner({
|
|
|
19
19
|
] })
|
|
20
20
|
] });
|
|
21
21
|
}
|
|
22
|
-
const Root =
|
|
22
|
+
const Root = safeStyled.div`
|
|
23
23
|
height: 276px;
|
|
24
24
|
display: flex;
|
|
25
25
|
flex-direction: column;
|
|
@@ -27,7 +27,7 @@ const Root = styled.div`
|
|
|
27
27
|
align-items: center;
|
|
28
28
|
gap: 16px;
|
|
29
29
|
`;
|
|
30
|
-
const Hero =
|
|
30
|
+
const Hero = safeStyled.div`
|
|
31
31
|
width: 150px;
|
|
32
32
|
height: 150px;
|
|
33
33
|
margin: 16px 0;
|
|
@@ -36,13 +36,13 @@ const Hero = styled.div`
|
|
|
36
36
|
align-items: center;
|
|
37
37
|
position: relative;
|
|
38
38
|
`;
|
|
39
|
-
const Text =
|
|
39
|
+
const Text = safeStyled.div`
|
|
40
40
|
display: flex;
|
|
41
41
|
gap: 4px;
|
|
42
42
|
align-items: center;
|
|
43
43
|
color: ${({ status }) => status === "error" ? "var(--cpsl-color-utility-red)" : "auto"};
|
|
44
44
|
`;
|
|
45
|
-
const Spinner =
|
|
45
|
+
const Spinner = safeStyled(CpslSpinner)`
|
|
46
46
|
position: absolute;
|
|
47
47
|
width: 150px;
|
|
48
48
|
height: 150px;
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
import "../chunk-GOCCUU3Z.js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { CpslButton, CpslIcon, CpslText } from "@getpara/react-components";
|
|
5
|
-
import styled from "styled-components";
|
|
6
5
|
import { CenteredColumnContainer, FullWidthFilledDisabledInput, CenteredText } from "./common.js";
|
|
7
6
|
import { QRCode } from "./QRCode.js";
|
|
8
|
-
import { getDeviceLogo, getDeviceModelName } from "../utils/index.js";
|
|
7
|
+
import { getDeviceLogo, getDeviceModelName, safeStyled } from "../utils/index.js";
|
|
9
8
|
import { useCopyToClipboard } from "../hooks/index.js";
|
|
10
9
|
const KnownDevices = ({ hints, link, showCurrentDevice }) => {
|
|
11
10
|
const [isCopied, copy] = useCopyToClipboard();
|
|
@@ -33,10 +32,10 @@ const KnownDevices = ({ hints, link, showCurrentDevice }) => {
|
|
|
33
32
|
] })
|
|
34
33
|
] });
|
|
35
34
|
};
|
|
36
|
-
const Container =
|
|
35
|
+
const Container = safeStyled(CenteredColumnContainer)`
|
|
37
36
|
gap: 16px;
|
|
38
37
|
`;
|
|
39
|
-
const DevicesContainer =
|
|
38
|
+
const DevicesContainer = safeStyled.div`
|
|
40
39
|
display: flex;
|
|
41
40
|
flex-direction: column;
|
|
42
41
|
gap: 8px;
|
|
@@ -45,12 +44,12 @@ const DevicesContainer = styled.div`
|
|
|
45
44
|
width: 100%;
|
|
46
45
|
border-radius: 16px;
|
|
47
46
|
`;
|
|
48
|
-
const DeviceListItem =
|
|
47
|
+
const DeviceListItem = safeStyled.div`
|
|
49
48
|
display: flex;
|
|
50
49
|
gap: 4px;
|
|
51
50
|
align-items: center;
|
|
52
51
|
`;
|
|
53
|
-
const DeviceLogo =
|
|
52
|
+
const DeviceLogo = safeStyled(CpslIcon)`
|
|
54
53
|
--icon-color: var(--cpsl-color-text-contrast);
|
|
55
54
|
--height: 16px;
|
|
56
55
|
--width: 16px;
|
|
@@ -5,8 +5,7 @@ import {
|
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { getNetworkPrefix, OnRampProvider, OnRampPurchaseStatus } from "@getpara/web-sdk";
|
|
7
7
|
import { lazy, useCallback, useEffect, useMemo, useState } from "react";
|
|
8
|
-
import { reverseCurrencyLookup, offRampSend, getCurrencyCode } from "../utils/index.js";
|
|
9
|
-
import styled from "styled-components";
|
|
8
|
+
import { reverseCurrencyLookup, offRampSend, getCurrencyCode, safeStyled } from "../utils/index.js";
|
|
10
9
|
const MOONPAY_PUBLISHABLE_KEY = "pk_live_EQva4LydtNDE0Rwd9X7SG9w58wqOzbux";
|
|
11
10
|
const MOONPAY_PUBLISHABLE_KEY_TEST = "pk_test_HYobzemmTBXxcSStVA4dSED6jT";
|
|
12
11
|
const MoonPayEmbed = ({ para, isDark, isEmbedded, onRampConfig, onRampPurchase, setOnRampPurchase }) => {
|
|
@@ -170,7 +169,7 @@ const MoonPayEmbed = ({ para, isDark, isEmbedded, onRampConfig, onRampPurchase,
|
|
|
170
169
|
return /* @__PURE__ */ jsx(Container, { isEmbedded, children: /* @__PURE__ */ jsx(LazyMoonPayProvider, { apiKey, debug: onRampPurchase.testMode, children: embed }) });
|
|
171
170
|
};
|
|
172
171
|
var MoonPayEmbed_default = MoonPayEmbed;
|
|
173
|
-
const Container =
|
|
172
|
+
const Container = safeStyled.div`
|
|
174
173
|
width: ${({ isEmbedded }) => isEmbedded ? "100%" : "100vw"};
|
|
175
174
|
height: ${({ isEmbedded }) => isEmbedded ? "640px" : "100vh"};
|
|
176
175
|
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import "../chunk-GOCCUU3Z.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { useEffect, useState } from "react";
|
|
5
|
-
import styled from "styled-components";
|
|
6
5
|
import { CpslIcon } from "@getpara/react-components";
|
|
7
|
-
|
|
6
|
+
import { safeStyled } from "../utils/index.js";
|
|
7
|
+
const BannerContainerWrapper = safeStyled.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
justify-content: center;
|
|
10
10
|
align-items: center;
|
|
11
11
|
width: 100%;
|
|
12
12
|
background-color: transparent;
|
|
13
13
|
`;
|
|
14
|
-
const BannerContainer =
|
|
14
|
+
const BannerContainer = safeStyled.div`
|
|
15
15
|
display: flex;
|
|
16
16
|
justify-content: center;
|
|
17
17
|
align-items: center;
|
|
@@ -27,14 +27,14 @@ const BannerContainer = styled.div`
|
|
|
27
27
|
text-overflow: ellipsis;
|
|
28
28
|
overflow: hidden;
|
|
29
29
|
`;
|
|
30
|
-
const WarningIcon =
|
|
30
|
+
const WarningIcon = safeStyled(CpslIcon)`
|
|
31
31
|
--icon-color: #fbbc04;
|
|
32
32
|
--width: ${({ $size }) => $size || "24px"};
|
|
33
33
|
--height: ${({ $size }) => $size || "24px"};
|
|
34
34
|
margin-right: 6px;
|
|
35
35
|
flex-shrink: 0;
|
|
36
36
|
`;
|
|
37
|
-
const BannerText =
|
|
37
|
+
const BannerText = safeStyled.span`
|
|
38
38
|
font-family: var(--cpsl-default-font);
|
|
39
39
|
font-weight: 500;
|
|
40
40
|
font-size: ${({ $fontSize }) => $fontSize || "14px"};
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import "../chunk-GOCCUU3Z.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { CpslButton, CpslIcon, CpslQrCode, CpslSpinner, CpslText } from "@getpara/react-components";
|
|
5
|
-
import styled from "styled-components";
|
|
6
5
|
import { useCopyToClipboard } from "../hooks/index.js";
|
|
7
6
|
import { isMobile } from "@getpara/web-sdk";
|
|
7
|
+
import { safeStyled } from "../utils/index.js";
|
|
8
8
|
const QRCode = ({ link, imageSrc, icon, qrSize = 202, spinnerSize = 60 }) => {
|
|
9
9
|
const [isCopied, copy] = useCopyToClipboard();
|
|
10
10
|
const isMobileScreen = isMobile();
|
|
@@ -23,7 +23,7 @@ const QRCode = ({ link, imageSrc, icon, qrSize = 202, spinnerSize = 60 }) => {
|
|
|
23
23
|
] })
|
|
24
24
|
] });
|
|
25
25
|
};
|
|
26
|
-
const QRContainer =
|
|
26
|
+
const QRContainer = safeStyled.div`
|
|
27
27
|
display: flex;
|
|
28
28
|
flex-direction: column;
|
|
29
29
|
justify-content: center;
|
|
@@ -36,11 +36,11 @@ const QRContainer = styled.div`
|
|
|
36
36
|
padding-bottom: ${({ $isMobile }) => $isMobile ? "0px" : "16px"};
|
|
37
37
|
padding-top: ${({ $isMobile }) => $isMobile ? "16px" : "0px"};
|
|
38
38
|
`;
|
|
39
|
-
const StyledQRCode =
|
|
39
|
+
const StyledQRCode = safeStyled(CpslQrCode)`
|
|
40
40
|
--qr-box-shadow: none;
|
|
41
41
|
--qr-border-radius: 0px;
|
|
42
42
|
`;
|
|
43
|
-
const CopyButton =
|
|
43
|
+
const CopyButton = safeStyled(CpslButton)`
|
|
44
44
|
--button-primary-color: var(--cpsl-color-text-contrast);
|
|
45
45
|
--button-primary-background-color: var(--cpsl-color-background-4);
|
|
46
46
|
|
|
@@ -57,18 +57,18 @@ const CopyButton = styled(CpslButton)`
|
|
|
57
57
|
|
|
58
58
|
--button-border-radius: 1000px;
|
|
59
59
|
`;
|
|
60
|
-
const MobileCopyButton =
|
|
60
|
+
const MobileCopyButton = safeStyled(CopyButton)`
|
|
61
61
|
--button-padding-top: 4px;
|
|
62
62
|
--button-padding-bottom: 4px;
|
|
63
63
|
|
|
64
64
|
padding: 0px 12px;
|
|
65
65
|
`;
|
|
66
|
-
const CopyIcon =
|
|
66
|
+
const CopyIcon = safeStyled(CpslIcon)`
|
|
67
67
|
--width: 16px;
|
|
68
68
|
--height: 16px;
|
|
69
69
|
--icon-color: var(--cpsl-color-text-contrast);
|
|
70
70
|
`;
|
|
71
|
-
const LoadingContainer =
|
|
71
|
+
const LoadingContainer = safeStyled.div`
|
|
72
72
|
display: flex;
|
|
73
73
|
justify-content: center;
|
|
74
74
|
align-items: center;
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
import "../chunk-GOCCUU3Z.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { CpslAvatar, CpslIcon, CpslText } from "@getpara/react-components";
|
|
5
|
-
import styled from "styled-components";
|
|
6
5
|
import { displayPhoneNumber } from "@getpara/web-sdk";
|
|
7
|
-
import { getExternalWalletDisplayName } from "../utils/index.js";
|
|
6
|
+
import { getExternalWalletDisplayName, safeStyled } from "../utils/index.js";
|
|
8
7
|
function defaultDisplay(authInfo) {
|
|
9
8
|
const { authType, identifier, externalWallet } = authInfo;
|
|
10
9
|
switch (authType) {
|
|
@@ -33,7 +32,7 @@ const UserIdentifier = ({ authInfo }) => {
|
|
|
33
32
|
/* @__PURE__ */ jsx(IdentifierText, { variant: "bodyS", weight: "medium", children: displayName || defaultName })
|
|
34
33
|
] });
|
|
35
34
|
};
|
|
36
|
-
const Container =
|
|
35
|
+
const Container = safeStyled.div`
|
|
37
36
|
padding: 8px 12px 8px 8px;
|
|
38
37
|
border-radius: 1000px;
|
|
39
38
|
background-color: var(--cpsl-color-background-4);
|
|
@@ -42,10 +41,10 @@ const Container = styled.div`
|
|
|
42
41
|
justify-content: flex-start;
|
|
43
42
|
gap: 4px;
|
|
44
43
|
`;
|
|
45
|
-
const IdentifierText =
|
|
44
|
+
const IdentifierText = safeStyled(CpslText)`
|
|
46
45
|
--color-override: var(--cpsl-color-background-96);
|
|
47
46
|
`;
|
|
48
|
-
const IconContainer =
|
|
47
|
+
const IconContainer = safeStyled.div`
|
|
49
48
|
display: flex;
|
|
50
49
|
background: var(--cpsl-color-background-0);
|
|
51
50
|
align-items: center;
|
|
@@ -54,10 +53,10 @@ const IconContainer = styled.div`
|
|
|
54
53
|
width: 20px;
|
|
55
54
|
height: 20px;
|
|
56
55
|
`;
|
|
57
|
-
const Icon =
|
|
56
|
+
const Icon = safeStyled(CpslIcon)`
|
|
58
57
|
--icon-color: var(--cpsl-color-text-primary);
|
|
59
58
|
`;
|
|
60
|
-
const Avatar =
|
|
59
|
+
const Avatar = safeStyled(CpslAvatar)`
|
|
61
60
|
--container-border-width: 0;
|
|
62
61
|
--container-padding: 0;
|
|
63
62
|
`;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CpslInput, CpslText } from '@getpara/react-components';
|
|
2
|
-
export declare const SpinnerContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
-
export declare const CenteredColumnContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const SpinnerContainer: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const CenteredColumnContainer: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
4
|
export declare const FilledDisabledInput: typeof CpslInput;
|
|
5
5
|
export declare const FullWidthFilledDisabledInput: typeof CpslInput;
|
|
6
6
|
export declare const CenteredText: typeof CpslText;
|
|
7
|
-
export declare const HeaderButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<any, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
7
|
+
export declare const HeaderButton: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<Omit<any, "ref"> & import("react").RefAttributes<any>, "ref"> & {
|
|
8
8
|
ref?: import("react").Ref<any>;
|
|
9
9
|
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<any>>, keyof import("react").Component<any, {}, any>>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../chunk-GOCCUU3Z.js";
|
|
3
3
|
import { CpslButton, CpslInput, CpslText } from "@getpara/react-components";
|
|
4
|
-
import
|
|
5
|
-
const SpinnerContainer =
|
|
4
|
+
import { safeStyled } from "../utils/index.js";
|
|
5
|
+
const SpinnerContainer = safeStyled.div`
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
justify-content: center;
|
|
9
9
|
`;
|
|
10
|
-
const CenteredColumnContainer =
|
|
10
|
+
const CenteredColumnContainer = safeStyled.div`
|
|
11
11
|
width: 100%;
|
|
12
12
|
height: 100%;
|
|
13
13
|
align-self: center;
|
|
@@ -16,21 +16,21 @@ const CenteredColumnContainer = styled.div`
|
|
|
16
16
|
align-items: center;
|
|
17
17
|
gap: 8px;
|
|
18
18
|
`;
|
|
19
|
-
const FilledDisabledInput =
|
|
19
|
+
const FilledDisabledInput = safeStyled(CpslInput)`
|
|
20
20
|
--container-border-color: var(--cpsl-color-input-border-placeholder);
|
|
21
21
|
--container-background-color: var(--cpsl-color-background-0);
|
|
22
22
|
--input-background-color: transparent;
|
|
23
23
|
--input-font-weight: 500;
|
|
24
24
|
--input-color: var(--cpsl-color-text-secondary) !important;
|
|
25
25
|
`;
|
|
26
|
-
const FullWidthFilledDisabledInput =
|
|
26
|
+
const FullWidthFilledDisabledInput = safeStyled(FilledDisabledInput)`
|
|
27
27
|
width: 100%;
|
|
28
28
|
`;
|
|
29
|
-
const CenteredText =
|
|
29
|
+
const CenteredText = safeStyled(CpslText)`
|
|
30
30
|
width: 100%;
|
|
31
31
|
text-align: center;
|
|
32
32
|
`;
|
|
33
|
-
const HeaderButton =
|
|
33
|
+
const HeaderButton = safeStyled(CpslButton)`
|
|
34
34
|
flex: 0;
|
|
35
35
|
--button-padding-top: 2px;
|
|
36
36
|
--button-padding-bottom: 2px;
|
|
@@ -53,7 +53,10 @@ export declare enum EvmWallet {
|
|
|
53
53
|
WALLETCONNECT = "WALLETCONNECT",
|
|
54
54
|
ZERION = "ZERION",
|
|
55
55
|
SAFE = "SAFE",
|
|
56
|
-
RABBY = "RABBY"
|
|
56
|
+
RABBY = "RABBY",
|
|
57
|
+
OKX = "OKX",
|
|
58
|
+
HAHA = "HAHA",
|
|
59
|
+
BACKPACK = "BACKPACK"
|
|
57
60
|
}
|
|
58
61
|
export declare enum SolanaWallet {
|
|
59
62
|
PHANTOM = "PHANTOM",
|
|
@@ -63,11 +66,13 @@ export declare enum SolanaWallet {
|
|
|
63
66
|
}
|
|
64
67
|
export declare enum CosmosWallet {
|
|
65
68
|
KEPLR = "KEPLR",
|
|
66
|
-
LEAP = "LEAP"
|
|
69
|
+
LEAP = "LEAP",
|
|
70
|
+
COSMOSTATION = "COSMOSTATION"
|
|
67
71
|
}
|
|
68
72
|
export declare const ExternalWallet: {
|
|
69
73
|
KEPLR: CosmosWallet.KEPLR;
|
|
70
74
|
LEAP: CosmosWallet.LEAP;
|
|
75
|
+
COSMOSTATION: CosmosWallet.COSMOSTATION;
|
|
71
76
|
PHANTOM: SolanaWallet.PHANTOM;
|
|
72
77
|
GLOW: SolanaWallet.GLOW;
|
|
73
78
|
BACKPACK: SolanaWallet.BACKPACK;
|
|
@@ -79,5 +84,7 @@ export declare const ExternalWallet: {
|
|
|
79
84
|
ZERION: EvmWallet.ZERION;
|
|
80
85
|
SAFE: EvmWallet.SAFE;
|
|
81
86
|
RABBY: EvmWallet.RABBY;
|
|
87
|
+
OKX: EvmWallet.OKX;
|
|
88
|
+
HAHA: EvmWallet.HAHA;
|
|
82
89
|
};
|
|
83
90
|
export type TExternalWallet = keyof typeof ExternalWallet;
|
|
@@ -10,6 +10,9 @@ var EvmWallet = /* @__PURE__ */ ((EvmWallet2) => {
|
|
|
10
10
|
EvmWallet2["ZERION"] = "ZERION";
|
|
11
11
|
EvmWallet2["SAFE"] = "SAFE";
|
|
12
12
|
EvmWallet2["RABBY"] = "RABBY";
|
|
13
|
+
EvmWallet2["OKX"] = "OKX";
|
|
14
|
+
EvmWallet2["HAHA"] = "HAHA";
|
|
15
|
+
EvmWallet2["BACKPACK"] = "BACKPACK";
|
|
13
16
|
return EvmWallet2;
|
|
14
17
|
})(EvmWallet || {});
|
|
15
18
|
var SolanaWallet = /* @__PURE__ */ ((SolanaWallet2) => {
|
|
@@ -22,6 +25,7 @@ var SolanaWallet = /* @__PURE__ */ ((SolanaWallet2) => {
|
|
|
22
25
|
var CosmosWallet = /* @__PURE__ */ ((CosmosWallet2) => {
|
|
23
26
|
CosmosWallet2["KEPLR"] = "KEPLR";
|
|
24
27
|
CosmosWallet2["LEAP"] = "LEAP";
|
|
28
|
+
CosmosWallet2["COSMOSTATION"] = "COSMOSTATION";
|
|
25
29
|
return CosmosWallet2;
|
|
26
30
|
})(CosmosWallet || {});
|
|
27
31
|
const ExternalWallet = __spreadValues(__spreadValues(__spreadValues({}, EvmWallet), SolanaWallet), CosmosWallet);
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
|
@@ -108,6 +108,7 @@ export * from "./getDeviceModelName.js";
|
|
|
108
108
|
export * from "./getBrowserName.js";
|
|
109
109
|
export * from "./formatBiometricHints.js";
|
|
110
110
|
export * from "./getExternalWalletDisplayName.js";
|
|
111
|
+
export * from "./safeStyled.js";
|
|
111
112
|
export {
|
|
112
113
|
NetworkAssetAddresses,
|
|
113
114
|
NetworkChainIds,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "../chunk-GOCCUU3Z.js";
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
const createStubComponent = () => {
|
|
5
|
+
const StubComponent = () => null;
|
|
6
|
+
StubComponent.attrs = () => createStubComponent();
|
|
7
|
+
StubComponent.withConfig = () => createStubComponent();
|
|
8
|
+
return StubComponent;
|
|
9
|
+
};
|
|
10
|
+
const createStubStyled = () => {
|
|
11
|
+
const styledStub = () => createStubComponent();
|
|
12
|
+
const handler = {
|
|
13
|
+
get: (_target, _prop) => {
|
|
14
|
+
return createStubComponent;
|
|
15
|
+
},
|
|
16
|
+
apply: () => {
|
|
17
|
+
return createStubComponent();
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
return new Proxy(styledStub, handler);
|
|
21
|
+
};
|
|
22
|
+
const safeStyled = typeof window !== "undefined" ? styled : createStubStyled();
|
|
23
|
+
export {
|
|
24
|
+
safeStyled
|
|
25
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/react-common",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"*.css"
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@getpara/react-components": "2.0.0-alpha.
|
|
15
|
-
"@getpara/web-sdk": "2.0.0-alpha.
|
|
14
|
+
"@getpara/react-components": "2.0.0-alpha.19",
|
|
15
|
+
"@getpara/web-sdk": "2.0.0-alpha.19",
|
|
16
16
|
"@moonpay/moonpay-react": "^1.8.3",
|
|
17
17
|
"@ramp-network/ramp-instant-sdk": "^4.0.5",
|
|
18
18
|
"libphonenumber-js": "^1.11.1",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"resolutions": {
|
|
41
41
|
"styled-components": "^6"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "80d2c5d7e1203fb12378aa29bfd4d7003c7d7075"
|
|
44
44
|
}
|