Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4fda12aa2d | ||
|
|
e684d05e22 | ||
|
|
335744ff6d |
@@ -1,5 +1,12 @@
|
||||
# @thirdweb-dev/auth
|
||||
|
||||
## 4.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`e684d05e`](https://github.com/thirdweb-dev/js/commit/e684d05e222458f02c8158eb9385d68c879dd946)]:
|
||||
- @thirdweb-dev/wallets@2.0.1
|
||||
|
||||
## 4.0.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/auth",
|
||||
"version": "4.0.0",
|
||||
"version": "4.0.1",
|
||||
"main": "dist/thirdweb-dev-auth.cjs.js",
|
||||
"module": "dist/thirdweb-dev-auth.esm.js",
|
||||
"browser": {
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# thirdweb
|
||||
|
||||
## 0.13.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`e684d05e`](https://github.com/thirdweb-dev/js/commit/e684d05e222458f02c8158eb9385d68c879dd946)]:
|
||||
- @thirdweb-dev/wallets@2.0.1
|
||||
- @thirdweb-dev/auth@4.0.1
|
||||
|
||||
## 0.13.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "thirdweb",
|
||||
"main": "dist/cli/index.js",
|
||||
"version": "0.13.0",
|
||||
"version": "0.13.1",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/cli",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @thirdweb-dev/react-core
|
||||
|
||||
## 4.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`e684d05e`](https://github.com/thirdweb-dev/js/commit/e684d05e222458f02c8158eb9385d68c879dd946)]:
|
||||
- @thirdweb-dev/wallets@2.0.1
|
||||
- @thirdweb-dev/auth@4.0.1
|
||||
|
||||
## 4.0.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react-core",
|
||||
"version": "4.0.0",
|
||||
"version": "4.0.1",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-core",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
@@ -75,7 +75,7 @@
|
||||
"eslint": "^8.45.0",
|
||||
"eslint-config-prettier": "^8.9.0",
|
||||
"eslint-config-thirdweb": "workspace:*",
|
||||
"eslint-plugin-better-tree-shaking": "0.0.3",
|
||||
"eslint-plugin-better-tree-shaking": "0.0.4",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-inclusive-language": "^2.2.0",
|
||||
"eslint-plugin-prettier": "^5.0.0",
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# @thirdweb-dev/react-native-compat
|
||||
|
||||
## 0.3.6
|
||||
|
||||
## 0.3.5
|
||||
|
||||
## 0.3.4
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react-native-compat",
|
||||
"description": "Shims for Thirdweb in React Native Projects",
|
||||
"version": "0.3.5",
|
||||
"version": "0.3.6",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native-compat",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @thirdweb-dev/react-native
|
||||
|
||||
## 0.3.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`e684d05e`](https://github.com/thirdweb-dev/js/commit/e684d05e222458f02c8158eb9385d68c879dd946)]:
|
||||
- @thirdweb-dev/wallets@2.0.1
|
||||
- @thirdweb-dev/react-core@4.0.1
|
||||
|
||||
## 0.3.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react-native",
|
||||
"version": "0.3.5",
|
||||
"version": "0.3.6",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react-native",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @thirdweb-dev/react
|
||||
|
||||
## 4.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#1742](https://github.com/thirdweb-dev/js/pull/1742) [`e684d05e`](https://github.com/thirdweb-dev/js/commit/e684d05e222458f02c8158eb9385d68c879dd946) Thanks [@MananTank](https://github.com/MananTank)! - Apply ConnectWallet theme to Google Sign in popup opened from paperWallet, embeddedWallet
|
||||
|
||||
- Updated dependencies [[`e684d05e`](https://github.com/thirdweb-dev/js/commit/e684d05e222458f02c8158eb9385d68c879dd946)]:
|
||||
- @thirdweb-dev/wallets@2.0.1
|
||||
- @thirdweb-dev/react-core@4.0.1
|
||||
|
||||
## 4.0.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/react",
|
||||
"version": "4.0.0",
|
||||
"version": "4.0.1",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/react",
|
||||
"author": "thirdweb eng <[email protected]>",
|
||||
"license": "Apache-2.0",
|
||||
@@ -93,7 +93,7 @@
|
||||
"eslint": "^8.45.0",
|
||||
"eslint-config-prettier": "^8.9.0",
|
||||
"eslint-config-thirdweb": "workspace:*",
|
||||
"eslint-plugin-better-tree-shaking": "0.0.3",
|
||||
"eslint-plugin-better-tree-shaking": "0.0.4",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-inclusive-language": "^2.2.0",
|
||||
"eslint-plugin-prettier": "^5.0.0",
|
||||
|
||||
@@ -53,9 +53,9 @@ from {
|
||||
}
|
||||
`;
|
||||
|
||||
const PopoverContent = /* @__PURE__ */ styled(
|
||||
/* @__PURE__ */ RXPopover.Content,
|
||||
)<{ theme?: Theme }>`
|
||||
const PopoverContent = /* @__PURE__ */ (() => styled(RXPopover.Content)<{
|
||||
theme?: Theme;
|
||||
}>`
|
||||
border-radius: ${radius.sm};
|
||||
padding: ${spacing.sm} ${spacing.md};
|
||||
background-color: ${(p) => p.theme.colors.tooltipBg};
|
||||
@@ -64,10 +64,10 @@ const PopoverContent = /* @__PURE__ */ styled(
|
||||
animation: ${slideUpAndFade} 400ms cubic-bezier(0.16, 1, 0.3, 1);
|
||||
color: ${(p) => p.theme.colors.tooltipText};
|
||||
font-size: ${fontSize.md};
|
||||
`;
|
||||
`)();
|
||||
|
||||
const PopoverArrow = /* @__PURE__ */ styled(/* @__PURE__ */ RXPopover.Arrow)<{
|
||||
const PopoverArrow = /* @__PURE__ */ (() => styled(RXPopover.Arrow)<{
|
||||
theme?: Theme;
|
||||
}>`
|
||||
fill: ${(p) => p.theme.colors.tooltipBg};
|
||||
`;
|
||||
`)();
|
||||
|
||||
@@ -40,9 +40,7 @@ to {
|
||||
}
|
||||
`;
|
||||
|
||||
const TooltipContent = /* @__PURE__ */ styled(
|
||||
/* @__PURE__ */ RadixTooltip.Content,
|
||||
)<{
|
||||
const TooltipContent = /* @__PURE__ */ (() => styled(RadixTooltip.Content)<{
|
||||
theme?: Theme;
|
||||
}>`
|
||||
background: ${(p) => p.theme.colors.tooltipBg};
|
||||
@@ -58,12 +56,10 @@ const TooltipContent = /* @__PURE__ */ styled(
|
||||
z-index: 999999999999999;
|
||||
max-width: 300px;
|
||||
line-height: 1.5;
|
||||
`;
|
||||
`)();
|
||||
|
||||
const TooltipArrow = /* @__PURE__ */ styled(
|
||||
/* @__PURE__ */ RadixTooltip.Arrow,
|
||||
)<{
|
||||
const TooltipArrow = /* @__PURE__ */ (() => styled(RadixTooltip.Arrow)<{
|
||||
theme?: Theme;
|
||||
}>`
|
||||
fill: ${(p) => p.theme.colors.tooltipBg};
|
||||
`;
|
||||
`)();
|
||||
|
||||
@@ -72,11 +72,8 @@ const PlayButton: React.FC<PlayButtonProps> = ({ onClick, isPlaying }) => {
|
||||
);
|
||||
};
|
||||
|
||||
const VideoPlayer = /* @__PURE__ */ React.forwardRef<
|
||||
HTMLVideoElement,
|
||||
MediaRendererProps
|
||||
>(
|
||||
(
|
||||
const VideoPlayer = /* @__PURE__ */ (() =>
|
||||
React.forwardRef<HTMLVideoElement, MediaRendererProps>(function Video_Player(
|
||||
{
|
||||
src,
|
||||
alt,
|
||||
@@ -89,7 +86,7 @@ const VideoPlayer = /* @__PURE__ */ React.forwardRef<
|
||||
...restProps
|
||||
},
|
||||
ref,
|
||||
) => {
|
||||
) {
|
||||
const videoRef = useRef<HTMLVideoElement>(null);
|
||||
const [playing, setPlaying] = useState(!requireInteraction);
|
||||
const [muted, setMuted] = useState(true);
|
||||
@@ -170,196 +167,192 @@ const VideoPlayer = /* @__PURE__ */ React.forwardRef<
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
);
|
||||
}))();
|
||||
|
||||
VideoPlayer.displayName = "VideoPlayer";
|
||||
const AudioPlayer = /* @__PURE__ */ (() =>
|
||||
React.forwardRef<HTMLAudioElement, MediaRendererProps>(function Audio_Player(
|
||||
{ src, alt, poster, style, height, width, ...restProps },
|
||||
ref,
|
||||
) {
|
||||
const audioRef = useRef<HTMLAudioElement>(null);
|
||||
const [playing, setPlaying] = useState(false);
|
||||
const [muted, setMuted] = useState(true);
|
||||
|
||||
const AudioPlayer = /* @__PURE__ */ React.forwardRef<
|
||||
HTMLAudioElement,
|
||||
MediaRendererProps
|
||||
>(({ src, alt, poster, style, height, width, ...restProps }, ref) => {
|
||||
const audioRef = useRef<HTMLAudioElement>(null);
|
||||
const [playing, setPlaying] = useState(false);
|
||||
const [muted, setMuted] = useState(true);
|
||||
|
||||
useEffect(() => {
|
||||
if (audioRef.current) {
|
||||
if (playing) {
|
||||
audioRef.current.play();
|
||||
} else {
|
||||
audioRef.current.pause();
|
||||
audioRef.current.currentTime = 0;
|
||||
useEffect(() => {
|
||||
if (audioRef.current) {
|
||||
if (playing) {
|
||||
audioRef.current.play();
|
||||
} else {
|
||||
audioRef.current.pause();
|
||||
audioRef.current.currentTime = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}, [playing]);
|
||||
}, [playing]);
|
||||
|
||||
return (
|
||||
<div style={{ position: "relative", ...style }} {...restProps}>
|
||||
{poster ? (
|
||||
<img
|
||||
height={height}
|
||||
width={width}
|
||||
src={poster}
|
||||
style={{
|
||||
height: "100%",
|
||||
width: "100%",
|
||||
pointerEvents: "none",
|
||||
objectFit: "contain",
|
||||
return (
|
||||
<div style={{ position: "relative", ...style }} {...restProps}>
|
||||
{poster ? (
|
||||
<img
|
||||
height={height}
|
||||
width={width}
|
||||
src={poster}
|
||||
style={{
|
||||
height: "100%",
|
||||
width: "100%",
|
||||
pointerEvents: "none",
|
||||
objectFit: "contain",
|
||||
}}
|
||||
alt={alt}
|
||||
/>
|
||||
) : (
|
||||
<div
|
||||
style={{
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
display: "grid",
|
||||
placeItems: "center",
|
||||
pointerEvents: "none",
|
||||
backgroundColor: "#fff",
|
||||
color: "rgb(138, 147, 155)",
|
||||
}}
|
||||
>
|
||||
<CarbonDocumentAudio style={{ height: "64px", width: "64px" }} />
|
||||
</div>
|
||||
)}
|
||||
|
||||
<PlayButton
|
||||
onClick={() => {
|
||||
setPlaying((prev) => !prev);
|
||||
setMuted(false);
|
||||
}}
|
||||
alt={alt}
|
||||
isPlaying={playing}
|
||||
/>
|
||||
) : (
|
||||
<audio
|
||||
ref={mergeRefs([audioRef, ref])}
|
||||
src={src ?? undefined}
|
||||
loop
|
||||
playsInline
|
||||
muted={muted}
|
||||
preload="none"
|
||||
controlsList="nodownload"
|
||||
style={{
|
||||
position: "absolute",
|
||||
opacity: 0,
|
||||
pointerEvents: "none",
|
||||
zIndex: -1,
|
||||
visibility: "hidden",
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}))();
|
||||
|
||||
const IframePlayer = /* @__PURE__ */ (() =>
|
||||
React.forwardRef<HTMLIFrameElement, MediaRendererProps>(
|
||||
function Iframe_Player(
|
||||
{ src, alt, poster, requireInteraction, style, ...restProps },
|
||||
ref,
|
||||
) {
|
||||
const [playing, setPlaying] = useState(!requireInteraction);
|
||||
|
||||
return (
|
||||
<div style={{ position: "relative", ...style }} {...restProps}>
|
||||
<iframe
|
||||
src={playing ? src ?? undefined : undefined}
|
||||
ref={ref}
|
||||
style={{
|
||||
objectFit: "contain",
|
||||
zIndex: 1,
|
||||
height: "100%",
|
||||
width: "100%",
|
||||
transition: "opacity .5s",
|
||||
opacity: !poster ? 1 : playing ? 1 : 0,
|
||||
}}
|
||||
sandbox="allow-scripts"
|
||||
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
||||
/>
|
||||
{poster && (
|
||||
<img
|
||||
src={poster}
|
||||
style={{
|
||||
objectFit: "contain",
|
||||
pointerEvents: "none",
|
||||
position: "absolute",
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
zIndex: 2,
|
||||
transition: "opacity .5s",
|
||||
opacity: playing ? 0 : 1,
|
||||
top: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
}}
|
||||
alt={alt}
|
||||
/>
|
||||
)}
|
||||
<PlayButton
|
||||
onClick={() => {
|
||||
setPlaying((prev) => !prev);
|
||||
}}
|
||||
isPlaying={playing}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
))();
|
||||
|
||||
const LinkPlayer = /* @__PURE__ */ (() =>
|
||||
React.forwardRef<HTMLAnchorElement, MediaRendererProps>(function Link_Player(
|
||||
{ src, alt, style, ...restProps },
|
||||
ref,
|
||||
) {
|
||||
return (
|
||||
<div style={{ position: "relative", ...style }} {...restProps}>
|
||||
<div
|
||||
style={{
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
display: "grid",
|
||||
placeItems: "center",
|
||||
pointerEvents: "none",
|
||||
backgroundColor: "#fff",
|
||||
color: "rgb(138, 147, 155)",
|
||||
}}
|
||||
>
|
||||
<CarbonDocumentAudio style={{ height: "64px", width: "64px" }} />
|
||||
</div>
|
||||
)}
|
||||
|
||||
<PlayButton
|
||||
onClick={() => {
|
||||
setPlaying((prev) => !prev);
|
||||
setMuted(false);
|
||||
}}
|
||||
isPlaying={playing}
|
||||
/>
|
||||
<audio
|
||||
ref={mergeRefs([audioRef, ref])}
|
||||
src={src ?? undefined}
|
||||
loop
|
||||
playsInline
|
||||
muted={muted}
|
||||
preload="none"
|
||||
controlsList="nodownload"
|
||||
style={{
|
||||
position: "absolute",
|
||||
opacity: 0,
|
||||
pointerEvents: "none",
|
||||
zIndex: -1,
|
||||
visibility: "hidden",
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
||||
AudioPlayer.displayName = "AudioPlayer";
|
||||
|
||||
const IframePlayer = /* @__PURE__ */ React.forwardRef<
|
||||
HTMLIFrameElement,
|
||||
MediaRendererProps
|
||||
>(({ src, alt, poster, requireInteraction, style, ...restProps }, ref) => {
|
||||
const [playing, setPlaying] = useState(!requireInteraction);
|
||||
|
||||
return (
|
||||
<div style={{ position: "relative", ...style }} {...restProps}>
|
||||
<iframe
|
||||
src={playing ? src ?? undefined : undefined}
|
||||
ref={ref}
|
||||
style={{
|
||||
objectFit: "contain",
|
||||
zIndex: 1,
|
||||
height: "100%",
|
||||
width: "100%",
|
||||
transition: "opacity .5s",
|
||||
opacity: !poster ? 1 : playing ? 1 : 0,
|
||||
}}
|
||||
sandbox="allow-scripts"
|
||||
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
||||
/>
|
||||
{poster && (
|
||||
<img
|
||||
src={poster}
|
||||
style={{
|
||||
objectFit: "contain",
|
||||
pointerEvents: "none",
|
||||
position: "absolute",
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
zIndex: 2,
|
||||
transition: "opacity .5s",
|
||||
opacity: playing ? 0 : 1,
|
||||
top: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
}}
|
||||
alt={alt}
|
||||
/>
|
||||
)}
|
||||
<PlayButton
|
||||
onClick={() => {
|
||||
setPlaying((prev) => !prev);
|
||||
}}
|
||||
isPlaying={playing}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
||||
IframePlayer.displayName = "IframePlayer";
|
||||
|
||||
const LinkPlayer = /* @__PURE__ */ React.forwardRef<
|
||||
HTMLAnchorElement,
|
||||
MediaRendererProps
|
||||
>(({ src, alt, style, ...restProps }, ref) => {
|
||||
return (
|
||||
<div style={{ position: "relative", ...style }} {...restProps}>
|
||||
<div
|
||||
style={{
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
display: "grid",
|
||||
placeItems: "center",
|
||||
backgroundColor: "#fff",
|
||||
color: "rgb(138, 147, 155)",
|
||||
}}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
gap: "8px",
|
||||
alignItems: "center",
|
||||
flexWrap: "nowrap",
|
||||
}}
|
||||
>
|
||||
<CarbonDocumentUnknown
|
||||
<div
|
||||
style={{
|
||||
maxWidth: "128px",
|
||||
minWidth: "48px",
|
||||
width: "50%",
|
||||
aspectRatio: "1",
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
gap: "8px",
|
||||
alignItems: "center",
|
||||
flexWrap: "nowrap",
|
||||
}}
|
||||
/>
|
||||
<a
|
||||
rel="noopener noreferrer"
|
||||
style={{
|
||||
textDecoration: "underline",
|
||||
color: "rgb(138, 147, 155)",
|
||||
}}
|
||||
href={src ?? undefined}
|
||||
target="_blank"
|
||||
ref={ref as unknown as React.LegacyRef<HTMLAnchorElement>}
|
||||
>
|
||||
{alt || "File"}
|
||||
</a>
|
||||
<CarbonDocumentUnknown
|
||||
style={{
|
||||
maxWidth: "128px",
|
||||
minWidth: "48px",
|
||||
width: "50%",
|
||||
aspectRatio: "1",
|
||||
}}
|
||||
/>
|
||||
<a
|
||||
rel="noopener noreferrer"
|
||||
style={{
|
||||
textDecoration: "underline",
|
||||
color: "rgb(138, 147, 155)",
|
||||
}}
|
||||
href={src ?? undefined}
|
||||
target="_blank"
|
||||
ref={ref as unknown as React.LegacyRef<HTMLAnchorElement>}
|
||||
>
|
||||
{alt || "File"}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
||||
LinkPlayer.displayName = "LinkPlayer";
|
||||
);
|
||||
}))();
|
||||
|
||||
/**
|
||||
* This component can be used to render any media type, including image, audio, video, and html files.
|
||||
@@ -382,129 +375,125 @@ LinkPlayer.displayName = "LinkPlayer";
|
||||
*
|
||||
* You can try switching out the `src` prop to different types of URLs and media types to explore the possibilities.
|
||||
*/
|
||||
export const MediaRenderer = /* @__PURE__ */ React.forwardRef<
|
||||
HTMLMediaElement,
|
||||
MediaRendererProps
|
||||
>(
|
||||
(
|
||||
{
|
||||
src,
|
||||
poster,
|
||||
alt,
|
||||
gatewayUrl,
|
||||
requireInteraction = false,
|
||||
width = "300px",
|
||||
height = "300px",
|
||||
style,
|
||||
mimeType,
|
||||
...restProps
|
||||
},
|
||||
ref,
|
||||
) => {
|
||||
const mergedStyle: React.CSSProperties = {
|
||||
objectFit: "contain",
|
||||
width,
|
||||
height,
|
||||
...style,
|
||||
};
|
||||
const videoOrImageSrc = useResolvedMediaType(
|
||||
src ?? undefined,
|
||||
mimeType,
|
||||
gatewayUrl,
|
||||
);
|
||||
const possiblePosterSrc = useResolvedMediaType(
|
||||
poster ?? undefined,
|
||||
undefined,
|
||||
gatewayUrl,
|
||||
);
|
||||
export const MediaRenderer = /* @__PURE__ */ (() =>
|
||||
React.forwardRef<HTMLMediaElement, MediaRendererProps>(
|
||||
function Media_Renderer(
|
||||
{
|
||||
src,
|
||||
poster,
|
||||
alt,
|
||||
gatewayUrl,
|
||||
requireInteraction = false,
|
||||
width = "300px",
|
||||
height = "300px",
|
||||
style,
|
||||
mimeType,
|
||||
...restProps
|
||||
},
|
||||
ref,
|
||||
) {
|
||||
const mergedStyle: React.CSSProperties = {
|
||||
objectFit: "contain",
|
||||
width,
|
||||
height,
|
||||
...style,
|
||||
};
|
||||
const videoOrImageSrc = useResolvedMediaType(
|
||||
src ?? undefined,
|
||||
mimeType,
|
||||
gatewayUrl,
|
||||
);
|
||||
const possiblePosterSrc = useResolvedMediaType(
|
||||
poster ?? undefined,
|
||||
undefined,
|
||||
gatewayUrl,
|
||||
);
|
||||
|
||||
if (!videoOrImageSrc.mimeType) {
|
||||
return (
|
||||
<img
|
||||
style={mergedStyle}
|
||||
{...restProps}
|
||||
ref={ref as unknown as React.LegacyRef<HTMLImageElement>}
|
||||
alt={alt}
|
||||
/>
|
||||
);
|
||||
} else if (videoOrImageSrc.mimeType.startsWith("text/html")) {
|
||||
return (
|
||||
<IframePlayer
|
||||
style={mergedStyle}
|
||||
src={videoOrImageSrc.url}
|
||||
poster={possiblePosterSrc.url}
|
||||
requireInteraction={requireInteraction}
|
||||
{...restProps}
|
||||
/>
|
||||
);
|
||||
} else if (videoOrImageSrc.mimeType.startsWith("model")) {
|
||||
return (
|
||||
<Suspense
|
||||
fallback={
|
||||
poster ? (
|
||||
<img
|
||||
style={mergedStyle}
|
||||
src={poster}
|
||||
alt={alt}
|
||||
ref={ref as unknown as React.LegacyRef<HTMLImageElement>}
|
||||
{...restProps}
|
||||
/>
|
||||
) : null
|
||||
}
|
||||
>
|
||||
<ModelViewer
|
||||
if (!videoOrImageSrc.mimeType) {
|
||||
return (
|
||||
<img
|
||||
style={mergedStyle}
|
||||
src={videoOrImageSrc.url || ""}
|
||||
poster={poster}
|
||||
{...restProps}
|
||||
ref={ref as unknown as React.LegacyRef<HTMLImageElement>}
|
||||
alt={alt}
|
||||
/>
|
||||
);
|
||||
} else if (videoOrImageSrc.mimeType.startsWith("text/html")) {
|
||||
return (
|
||||
<IframePlayer
|
||||
style={mergedStyle}
|
||||
src={videoOrImageSrc.url}
|
||||
poster={possiblePosterSrc.url}
|
||||
requireInteraction={requireInteraction}
|
||||
{...restProps}
|
||||
/>
|
||||
</Suspense>
|
||||
);
|
||||
} else if (shouldRenderVideoTag(videoOrImageSrc.mimeType)) {
|
||||
);
|
||||
} else if (videoOrImageSrc.mimeType.startsWith("model")) {
|
||||
return (
|
||||
<Suspense
|
||||
fallback={
|
||||
poster ? (
|
||||
<img
|
||||
style={mergedStyle}
|
||||
src={poster}
|
||||
alt={alt}
|
||||
ref={ref as unknown as React.LegacyRef<HTMLImageElement>}
|
||||
{...restProps}
|
||||
/>
|
||||
) : null
|
||||
}
|
||||
>
|
||||
<ModelViewer
|
||||
style={mergedStyle}
|
||||
src={videoOrImageSrc.url || ""}
|
||||
poster={poster}
|
||||
alt={alt}
|
||||
{...restProps}
|
||||
/>
|
||||
</Suspense>
|
||||
);
|
||||
} else if (shouldRenderVideoTag(videoOrImageSrc.mimeType)) {
|
||||
return (
|
||||
<VideoPlayer
|
||||
style={mergedStyle}
|
||||
src={videoOrImageSrc.url}
|
||||
poster={possiblePosterSrc.url}
|
||||
requireInteraction={requireInteraction}
|
||||
{...restProps}
|
||||
/>
|
||||
);
|
||||
} else if (shouldRenderAudioTag(videoOrImageSrc.mimeType)) {
|
||||
return (
|
||||
<AudioPlayer
|
||||
style={mergedStyle}
|
||||
src={videoOrImageSrc.url}
|
||||
poster={possiblePosterSrc.url}
|
||||
requireInteraction={requireInteraction}
|
||||
{...restProps}
|
||||
/>
|
||||
);
|
||||
} else if (videoOrImageSrc.mimeType.startsWith("image/")) {
|
||||
return (
|
||||
<img
|
||||
style={mergedStyle}
|
||||
src={videoOrImageSrc.url}
|
||||
alt={alt}
|
||||
ref={ref as unknown as React.LegacyRef<HTMLImageElement>}
|
||||
{...restProps}
|
||||
/>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<VideoPlayer
|
||||
style={mergedStyle}
|
||||
src={videoOrImageSrc.url}
|
||||
poster={possiblePosterSrc.url}
|
||||
requireInteraction={requireInteraction}
|
||||
{...restProps}
|
||||
/>
|
||||
);
|
||||
} else if (shouldRenderAudioTag(videoOrImageSrc.mimeType)) {
|
||||
return (
|
||||
<AudioPlayer
|
||||
style={mergedStyle}
|
||||
src={videoOrImageSrc.url}
|
||||
poster={possiblePosterSrc.url}
|
||||
requireInteraction={requireInteraction}
|
||||
{...restProps}
|
||||
/>
|
||||
);
|
||||
} else if (videoOrImageSrc.mimeType.startsWith("image/")) {
|
||||
return (
|
||||
<img
|
||||
<LinkPlayer
|
||||
style={mergedStyle}
|
||||
src={videoOrImageSrc.url}
|
||||
alt={alt}
|
||||
ref={ref as unknown as React.LegacyRef<HTMLImageElement>}
|
||||
ref={ref as unknown as React.Ref<HTMLAnchorElement>}
|
||||
{...restProps}
|
||||
/>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<LinkPlayer
|
||||
style={mergedStyle}
|
||||
src={videoOrImageSrc.url}
|
||||
alt={alt}
|
||||
ref={ref as unknown as React.Ref<HTMLAnchorElement>}
|
||||
{...restProps}
|
||||
/>
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
MediaRenderer.displayName = "MediaRenderer";
|
||||
},
|
||||
))();
|
||||
|
||||
export interface MediaType {
|
||||
url?: string;
|
||||
|
||||
@@ -12,25 +12,24 @@ declare global {
|
||||
}
|
||||
}
|
||||
|
||||
export const ModelViewer = /* @__PURE__ */ React.forwardRef<
|
||||
HTMLDivElement,
|
||||
MediaRendererProps
|
||||
>(({ src, alt, poster, style }, ref) => {
|
||||
return (
|
||||
<div style={{ ...style }} ref={ref}>
|
||||
{src ? (
|
||||
<model-viewer
|
||||
src={src}
|
||||
alt={alt || "3D Model"}
|
||||
camera-controls
|
||||
poster={poster ? poster : null}
|
||||
style={{ width: "100%", height: "100%" } as CSSStyleDeclaration}
|
||||
/>
|
||||
) : null}
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
||||
ModelViewer.displayName = "ModelViewer";
|
||||
export const ModelViewer = /* @__PURE__ */ (() =>
|
||||
React.forwardRef<HTMLDivElement, MediaRendererProps>(function Model_Viewer(
|
||||
{ src, alt, poster, style },
|
||||
ref,
|
||||
) {
|
||||
return (
|
||||
<div style={{ ...style }} ref={ref}>
|
||||
{src ? (
|
||||
<model-viewer
|
||||
src={src}
|
||||
alt={alt || "3D Model"}
|
||||
camera-controls
|
||||
poster={poster ? poster : null}
|
||||
style={{ width: "100%", height: "100%" } as CSSStyleDeclaration}
|
||||
/>
|
||||
) : null}
|
||||
</div>
|
||||
);
|
||||
}))();
|
||||
|
||||
export default ModelViewer;
|
||||
|
||||
@@ -41,22 +41,23 @@ export interface ThirdwebNftMediaProps extends SharedMediaProps {
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
export const ThirdwebNftMedia = /* @__PURE__ */ React.forwardRef<
|
||||
HTMLMediaElement,
|
||||
ThirdwebNftMediaProps
|
||||
>(({ metadata, width = "300px", height = "300px", style, ...props }, ref) => {
|
||||
return (
|
||||
<MediaRenderer
|
||||
src={metadata.animation_url || metadata.image}
|
||||
poster={metadata.image}
|
||||
alt={metadata.name?.toString() || ""}
|
||||
ref={ref}
|
||||
width={width}
|
||||
height={height}
|
||||
style={{ ...style }}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
ThirdwebNftMedia.displayName = "ThirdwebNftMedia";
|
||||
export const ThirdwebNftMedia = /* @__PURE__ */ (() =>
|
||||
React.forwardRef<HTMLMediaElement, ThirdwebNftMediaProps>(
|
||||
function Thirdweb_NftMedia(
|
||||
{ metadata, width = "300px", height = "300px", style, ...props },
|
||||
ref,
|
||||
) {
|
||||
return (
|
||||
<MediaRenderer
|
||||
src={metadata.animation_url || metadata.image}
|
||||
poster={metadata.image}
|
||||
alt={metadata.name?.toString() || ""}
|
||||
ref={ref}
|
||||
width={width}
|
||||
height={height}
|
||||
style={{ ...style }}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
},
|
||||
))();
|
||||
|
||||
@@ -91,5 +91,3 @@ export type PortalProps = PropsWithChildren<{
|
||||
containerRef?: React.RefObject<Node>;
|
||||
unstable_skipInitialRender?: boolean;
|
||||
}>;
|
||||
|
||||
Portal.displayName = "Portal";
|
||||
|
||||
@@ -593,9 +593,9 @@ const dropdownContentFade = keyframes`
|
||||
}
|
||||
`;
|
||||
|
||||
const DropDownContent = /* @__PURE__ */ styled(
|
||||
/* @__PURE__ */ DropdownMenu.Content,
|
||||
)<{ theme?: Theme }>`
|
||||
const DropDownContent = /* @__PURE__ */ (() => styled(DropdownMenu.Content)<{
|
||||
theme?: Theme;
|
||||
}>`
|
||||
width: 320px;
|
||||
box-sizing: border-box;
|
||||
max-width: 100%;
|
||||
@@ -608,7 +608,7 @@ const DropDownContent = /* @__PURE__ */ styled(
|
||||
--bg: ${(props) => props.theme.colors.dropdownBg};
|
||||
z-index: 1000000;
|
||||
line-height: 1;
|
||||
`;
|
||||
`)();
|
||||
|
||||
const WalletInfoButton = styled.button<{ theme?: Theme }>`
|
||||
all: unset;
|
||||
@@ -689,13 +689,13 @@ const MenuButton = styled.button<{ theme?: Theme }>`
|
||||
}
|
||||
`;
|
||||
|
||||
const MenuLink = /* @__PURE__ */ MenuButton.withComponent("a");
|
||||
const MenuLink = /* @__PURE__ */ (() => MenuButton.withComponent("a"))();
|
||||
|
||||
export const DropdownMenuItem = /* @__PURE__ */ styled(
|
||||
/* @__PURE__ */ DropdownMenu.Item,
|
||||
export const DropdownMenuItem = /* @__PURE__ */ (() => styled(
|
||||
DropdownMenu.Item,
|
||||
)<{ theme?: Theme }>`
|
||||
outline: none;
|
||||
`;
|
||||
`)();
|
||||
|
||||
export const StyledChevronRightIcon = /* @__PURE__ */ styled(
|
||||
/* @__PURE__ */ ChevronRightIcon,
|
||||
|
||||
@@ -539,7 +539,7 @@ const NetworkList = /* @__PURE__ */ memo(function NetworkList(props: {
|
||||
);
|
||||
});
|
||||
|
||||
const TabButton = /* @__PURE__ */ styled(/* @__PURE__ */ Tabs.Trigger)<{
|
||||
const TabButton = /* @__PURE__ */ (() => styled(Tabs.Trigger)<{
|
||||
theme?: Theme;
|
||||
}>`
|
||||
all: unset;
|
||||
@@ -558,7 +558,7 @@ const TabButton = /* @__PURE__ */ styled(/* @__PURE__ */ Tabs.Trigger)<{
|
||||
background: ${(p) => p.theme.colors.secondaryButtonBg};
|
||||
color: ${(p) => p.theme.colors.primaryText};
|
||||
}
|
||||
`;
|
||||
`)();
|
||||
|
||||
const SectionLabel = styled.p<{ theme?: Theme }>`
|
||||
font-size: ${fontSize.sm};
|
||||
|
||||
@@ -1,9 +1,31 @@
|
||||
export function openGoogleSignInWindow() {
|
||||
const win = window.open("", undefined, "width=350, height=500");
|
||||
import { Theme } from "../../design-system";
|
||||
|
||||
export function openGoogleSignInWindow(themeObj: Theme) {
|
||||
// open the popup in the center of the screen
|
||||
const width = 350;
|
||||
const height = 500;
|
||||
const top = (window.innerHeight - height) / 2;
|
||||
const left = (window.innerWidth - width) / 2;
|
||||
|
||||
const win = window.open(
|
||||
"",
|
||||
undefined,
|
||||
`width=${width}, height=${height}, top=${top}, left=${left}`,
|
||||
);
|
||||
if (win) {
|
||||
win.document.title = "Sign In - Google Accounts";
|
||||
win.document.body.innerHTML = spinnerWindowHtml;
|
||||
win.document.body.style.background = themeObj.colors.modalBg;
|
||||
win.document.body.style.color = themeObj.colors.accentText;
|
||||
}
|
||||
|
||||
// close it when current window is closed or refreshed
|
||||
if (win) {
|
||||
window.addEventListener("beforeunload", () => {
|
||||
win?.close();
|
||||
});
|
||||
}
|
||||
|
||||
return win;
|
||||
}
|
||||
|
||||
@@ -14,7 +36,7 @@ const spinnerWindowHtml = `
|
||||
cy="25"
|
||||
r="20"
|
||||
fill="none"
|
||||
stroke="#000"
|
||||
stroke="currentColor"
|
||||
stroke-width="4"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
@@ -15,6 +15,7 @@ import { InputSelectionUI } from "../InputSelectionUI";
|
||||
import type { EmbeddedWalletLoginType } from "./types";
|
||||
import { TextDivider } from "../../../components/TextDivider";
|
||||
import { openGoogleSignInWindow } from "../../utils/openGoogleSignInWindow";
|
||||
import { useTheme } from "@emotion/react";
|
||||
|
||||
export const EmbeddedWalletFormUI = (props: {
|
||||
onSelect: (loginType: EmbeddedWalletLoginType) => void;
|
||||
@@ -23,6 +24,7 @@ export const EmbeddedWalletFormUI = (props: {
|
||||
const createWalletInstance = useCreateWalletInstance();
|
||||
const setConnectionStatus = useSetConnectionStatus();
|
||||
const setConnectedWallet = useSetConnectedWallet();
|
||||
const themeObj = useTheme() as Theme;
|
||||
|
||||
// Need to trigger google login on button click to avoid popup from being blocked
|
||||
const googleLogin = async () => {
|
||||
@@ -30,7 +32,7 @@ export const EmbeddedWalletFormUI = (props: {
|
||||
const embeddedWallet = createWalletInstance(props.walletConfig);
|
||||
setConnectionStatus("connecting");
|
||||
|
||||
const googleWindow = openGoogleSignInWindow();
|
||||
const googleWindow = openGoogleSignInWindow(themeObj);
|
||||
if (!googleWindow) {
|
||||
throw new Error("Failed to open google login window");
|
||||
}
|
||||
|
||||
@@ -13,9 +13,10 @@ import { Container, ModalHeader } from "../../../components/basic";
|
||||
import { Button } from "../../../components/buttons";
|
||||
import { ModalTitle } from "../../../components/modalElements";
|
||||
import { Text } from "../../../components/text";
|
||||
import { iconSize } from "../../../design-system";
|
||||
import { Theme, iconSize } from "../../../design-system";
|
||||
import { GoogleIcon } from "../../ConnectWallet/icons/GoogleIcon";
|
||||
import { openGoogleSignInWindow } from "../../utils/openGoogleSignInWindow";
|
||||
import { useTheme } from "@emotion/react";
|
||||
|
||||
export const EmbeddedWalletGoogleLogin = (
|
||||
props: ConnectUIProps<EmbeddedWallet>,
|
||||
@@ -25,12 +26,13 @@ export const EmbeddedWalletGoogleLogin = (
|
||||
const setConnectionStatus = useSetConnectionStatus();
|
||||
const setConnectedWallet = useSetConnectedWallet();
|
||||
const connectionStatus = useConnectionStatus();
|
||||
const themeObj = useTheme() as Theme;
|
||||
|
||||
const googleLogin = async () => {
|
||||
try {
|
||||
const embeddedWallet = createWalletInstance(props.walletConfig);
|
||||
setConnectionStatus("connecting");
|
||||
const googleWindow = openGoogleSignInWindow();
|
||||
const googleWindow = openGoogleSignInWindow(themeObj);
|
||||
if (!googleWindow) {
|
||||
throw new Error("Failed to open google login window");
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ import { InputSelectionUI } from "../InputSelectionUI";
|
||||
import { PaperLoginType } from "./types";
|
||||
import { TextDivider } from "../../../components/TextDivider";
|
||||
import { openGoogleSignInWindow } from "../../utils/openGoogleSignInWindow";
|
||||
import { useTheme } from "@emotion/react";
|
||||
|
||||
export const PaperFormUI = (props: {
|
||||
onSelect: (loginType: PaperLoginType) => void;
|
||||
@@ -24,13 +25,14 @@ export const PaperFormUI = (props: {
|
||||
const createWalletInstance = useCreateWalletInstance();
|
||||
const setConnectionStatus = useSetConnectionStatus();
|
||||
const setConnectedWallet = useSetConnectedWallet();
|
||||
const themeObj = useTheme() as Theme;
|
||||
|
||||
// Need to trigger google login on button click to avoid popup from being blocked
|
||||
const googleLogin = async () => {
|
||||
try {
|
||||
const paperWallet = createWalletInstance(props.walletConfig);
|
||||
setConnectionStatus("connecting");
|
||||
const googleWindow = openGoogleSignInWindow();
|
||||
const googleWindow = openGoogleSignInWindow(themeObj);
|
||||
if (!googleWindow) {
|
||||
throw new Error("Failed to open google login window");
|
||||
}
|
||||
|
||||
@@ -13,9 +13,10 @@ import { Container, ModalHeader } from "../../../components/basic";
|
||||
import { Button } from "../../../components/buttons";
|
||||
import { ModalTitle } from "../../../components/modalElements";
|
||||
import { Text } from "../../../components/text";
|
||||
import { iconSize } from "../../../design-system";
|
||||
import { Theme, iconSize } from "../../../design-system";
|
||||
import { GoogleIcon } from "../../ConnectWallet/icons/GoogleIcon";
|
||||
import { openGoogleSignInWindow } from "../../utils/openGoogleSignInWindow";
|
||||
import { useTheme } from "@emotion/react";
|
||||
|
||||
export const PaperGoogleLogin = (props: ConnectUIProps<PaperWallet>) => {
|
||||
const { goBack, modalSize, connected } = props;
|
||||
@@ -24,13 +25,14 @@ export const PaperGoogleLogin = (props: ConnectUIProps<PaperWallet>) => {
|
||||
const setConnectionStatus = useSetConnectionStatus();
|
||||
const setConnectedWallet = useSetConnectedWallet();
|
||||
const connectionStatus = useConnectionStatus();
|
||||
const themeObj = useTheme() as Theme;
|
||||
|
||||
// Need to trigger google login on button click to avoid popup from being blocked
|
||||
const googleLogin = async () => {
|
||||
try {
|
||||
const paperWallet = createWalletInstance(props.walletConfig);
|
||||
setConnectionStatus("connecting");
|
||||
const googleWindow = openGoogleSignInWindow();
|
||||
const googleWindow = openGoogleSignInWindow(themeObj);
|
||||
if (!googleWindow) {
|
||||
throw new Error("Failed to open google login window");
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
"eslint": "^8.45.0",
|
||||
"eslint-config-prettier": "^8.9.0",
|
||||
"eslint-config-thirdweb": "workspace:*",
|
||||
"eslint-plugin-better-tree-shaking": "0.0.3",
|
||||
"eslint-plugin-better-tree-shaking": "0.0.4",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-inclusive-language": "^2.2.0",
|
||||
"eslint-plugin-prettier": "^5.0.0",
|
||||
|
||||
@@ -58,9 +58,8 @@ export const BigNumberSchema = /* @__PURE__ */ (() =>
|
||||
return BigNumber.from(str);
|
||||
}))();
|
||||
|
||||
export const BigNumberishSchema = /* @__PURE__ */ BigNumberSchema.transform(
|
||||
(arg) => arg.toString(),
|
||||
);
|
||||
export const BigNumberishSchema = /* @__PURE__ */ (() =>
|
||||
BigNumberSchema.transform((arg) => arg.toString()))();
|
||||
|
||||
export const BigNumberTransformSchema = /* @__PURE__ */ (() =>
|
||||
z
|
||||
@@ -80,15 +79,11 @@ export const BigNumberTransformSchema = /* @__PURE__ */ (() =>
|
||||
return BigNumber.from(arg).toString();
|
||||
}))();
|
||||
|
||||
export const BasisPointsSchema = /* @__PURE__ */ z
|
||||
.number()
|
||||
.max(MAX_BPS, "Cannot exceed 100%")
|
||||
.min(0, "Cannot be below 0%");
|
||||
export const BasisPointsSchema = /* @__PURE__ */ (() =>
|
||||
z.number().max(MAX_BPS, "Cannot exceed 100%").min(0, "Cannot be below 0%"))();
|
||||
|
||||
export const PercentSchema = /* @__PURE__ */ z
|
||||
.number()
|
||||
.max(100, "Cannot exceed 100%")
|
||||
.min(0, "Cannot be below 0%");
|
||||
export const PercentSchema = /* @__PURE__ */ (() =>
|
||||
z.number().max(100, "Cannot exceed 100%").min(0, "Cannot be below 0%"))();
|
||||
|
||||
export const HexColor = /* @__PURE__ */ (() =>
|
||||
z.union([
|
||||
@@ -121,9 +116,10 @@ export const QuantitySchema = /* @__PURE__ */ (() =>
|
||||
|
||||
export type Quantity = z.output<typeof QuantitySchema>;
|
||||
|
||||
export const RawDateSchema = /* @__PURE__ */ z.date().transform((i) => {
|
||||
return BigNumber.from(Math.floor(i.getTime() / 1000));
|
||||
});
|
||||
export const RawDateSchema = /* @__PURE__ */ (() =>
|
||||
z.date().transform((i) => {
|
||||
return BigNumber.from(Math.floor(i.getTime() / 1000));
|
||||
}))();
|
||||
|
||||
/**
|
||||
* Default to now
|
||||
|
||||
@@ -111,9 +111,11 @@ function getGasStationUrl(chainId: ChainId.Polygon | ChainId.Mumbai): string {
|
||||
}
|
||||
}
|
||||
|
||||
const MIN_POLYGON_GAS_PRICE = /* @__PURE__ */ utils.parseUnits("31", "gwei");
|
||||
const MIN_POLYGON_GAS_PRICE = /* @__PURE__ */ (() =>
|
||||
utils.parseUnits("31", "gwei"))();
|
||||
|
||||
const MIN_MUMBAI_GAS_PRICE = /* @__PURE__ */ utils.parseUnits("1", "gwei");
|
||||
const MIN_MUMBAI_GAS_PRICE = /* @__PURE__ */ (() =>
|
||||
utils.parseUnits("1", "gwei"))();
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
||||
@@ -24,7 +24,8 @@ export type Role = keyof typeof roleMap;
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export const ALL_ROLES = /* @__PURE__ */ Object.keys(roleMap) as Role[];
|
||||
export const ALL_ROLES = /* @__PURE__ */ (() =>
|
||||
Object.keys(roleMap))() as Role[];
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
||||
@@ -6,10 +6,11 @@ import { utils } from "ethers";
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const InterfaceId_IERC721 = /* @__PURE__ */ utils.arrayify("0x80ac58cd");
|
||||
export const InterfaceId_IERC721 = /* @__PURE__ */ (() =>
|
||||
utils.arrayify("0x80ac58cd"))();
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const InterfaceId_IERC1155 =
|
||||
/* @__PURE__ */ utils.arrayify("0xd9b67a26");
|
||||
export const InterfaceId_IERC1155 = /* @__PURE__ */ (() =>
|
||||
utils.arrayify("0xd9b67a26"))();
|
||||
|
||||
@@ -5,12 +5,11 @@ import {
|
||||
CommonTrustedForwarderSchema,
|
||||
} from "./common";
|
||||
|
||||
export const AirdropContractInput =
|
||||
/* @__PURE__ */ CommonContractSchema.merge(CommonSymbolSchema);
|
||||
export const AirdropContractInput = /* @__PURE__ */ (() =>
|
||||
CommonContractSchema.merge(CommonSymbolSchema))();
|
||||
|
||||
export const AirdropContractOutput =
|
||||
/* @__PURE__ */ CommonContractOutputSchema.merge(CommonSymbolSchema);
|
||||
export const AirdropContractOutput = /* @__PURE__ */ (() =>
|
||||
CommonContractOutputSchema.merge(CommonSymbolSchema))();
|
||||
|
||||
export const AirdropContractDeploy = /* @__PURE__ */ AirdropContractInput.merge(
|
||||
CommonTrustedForwarderSchema,
|
||||
);
|
||||
export const AirdropContractDeploy = /* @__PURE__ */ (() =>
|
||||
AirdropContractInput.merge(CommonTrustedForwarderSchema))();
|
||||
|
||||
@@ -43,15 +43,14 @@ export const ClaimConditionInputSchema = /* @__PURE__ */ (() =>
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const ClaimConditionInputArray = /* @__PURE__ */ z.array(
|
||||
ClaimConditionInputSchema,
|
||||
);
|
||||
export const ClaimConditionInputArray = /* @__PURE__ */ (() =>
|
||||
z.array(ClaimConditionInputSchema))();
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const PartialClaimConditionInputSchema =
|
||||
/* @__PURE__ */ ClaimConditionInputSchema.partial();
|
||||
export const PartialClaimConditionInputSchema = /* @__PURE__ */ (() =>
|
||||
ClaimConditionInputSchema.partial())();
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
||||
@@ -59,12 +59,13 @@ export const CommonRoyaltySchema = /* @__PURE__ */ (() =>
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const CommonPrimarySaleSchema = /* @__PURE__ */ z.object({
|
||||
/**
|
||||
* primary sale recipient address
|
||||
*/
|
||||
primary_sale_recipient: AddressOrEnsSchema,
|
||||
});
|
||||
export const CommonPrimarySaleSchema = /* @__PURE__ */ (() =>
|
||||
z.object({
|
||||
/**
|
||||
* primary sale recipient address
|
||||
*/
|
||||
primary_sale_recipient: AddressOrEnsSchema,
|
||||
}))();
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
||||
@@ -40,19 +40,19 @@ export const BaseSignaturePayloadInput = /* @__PURE__ */ (() =>
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const Signature20PayloadInput =
|
||||
/* @__PURE__ */ BaseSignaturePayloadInput.extend({
|
||||
export const Signature20PayloadInput = /* @__PURE__ */ (() =>
|
||||
BaseSignaturePayloadInput.extend({
|
||||
quantity: AmountSchema,
|
||||
});
|
||||
}))();
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const Signature20PayloadOutput =
|
||||
/* @__PURE__ */ Signature20PayloadInput.extend({
|
||||
export const Signature20PayloadOutput = /* @__PURE__ */ (() =>
|
||||
Signature20PayloadInput.extend({
|
||||
mintStartTime: BigNumberSchema,
|
||||
mintEndTime: BigNumberSchema,
|
||||
});
|
||||
}))();
|
||||
|
||||
/**
|
||||
* @internal
|
||||
@@ -88,19 +88,19 @@ export const Signature1155PayloadInput = /* @__PURE__ */ (() =>
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const Signature1155PayloadInputWithTokenId =
|
||||
/* @__PURE__ */ Signature1155PayloadInput.extend({
|
||||
export const Signature1155PayloadInputWithTokenId = /* @__PURE__ */ (() =>
|
||||
Signature1155PayloadInput.extend({
|
||||
tokenId: BigNumberishSchema,
|
||||
});
|
||||
}))();
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const Signature1155PayloadOutput =
|
||||
/* @__PURE__ */ Signature721PayloadOutput.extend({
|
||||
export const Signature1155PayloadOutput = /* @__PURE__ */ (() =>
|
||||
Signature721PayloadOutput.extend({
|
||||
tokenId: BigNumberSchema,
|
||||
quantity: BigNumberSchema,
|
||||
});
|
||||
}))();
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
||||
@@ -102,7 +102,7 @@ export const AbiObjectSchema = /* @__PURE__ */ (() =>
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const AbiSchema = /* @__PURE__ */ z.array(AbiObjectSchema);
|
||||
export const AbiSchema = /* @__PURE__ */ (() => z.array(AbiObjectSchema))();
|
||||
// if we want to statically type this for external usage it has to *awlways* be the output type
|
||||
export type Abi = z.output<typeof AbiSchema>;
|
||||
|
||||
|
||||
@@ -9,20 +9,20 @@ import {
|
||||
} from "./common";
|
||||
import { MerkleSchema } from "./common/snapshots";
|
||||
|
||||
export const DropErc1155ContractInput =
|
||||
/* @__PURE__ */ CommonContractSchema.merge(CommonRoyaltySchema)
|
||||
export const DropErc1155ContractInput = /* @__PURE__ */ (() =>
|
||||
CommonContractSchema.merge(CommonRoyaltySchema)
|
||||
.merge(MerkleSchema)
|
||||
.merge(CommonSymbolSchema);
|
||||
.merge(CommonSymbolSchema))();
|
||||
|
||||
export const DropErc1155ContractOutput =
|
||||
/* @__PURE__ */ CommonContractOutputSchema.merge(CommonRoyaltySchema)
|
||||
export const DropErc1155ContractOutput = /* @__PURE__ */ (() =>
|
||||
CommonContractOutputSchema.merge(CommonRoyaltySchema)
|
||||
.merge(MerkleSchema)
|
||||
.merge(CommonSymbolSchema);
|
||||
.merge(CommonSymbolSchema))();
|
||||
|
||||
export const DropErc1155ContractDeploy =
|
||||
/* @__PURE__ */ DropErc1155ContractInput.merge(CommonPlatformFeeSchema)
|
||||
export const DropErc1155ContractDeploy = /* @__PURE__ */ (() =>
|
||||
DropErc1155ContractInput.merge(CommonPlatformFeeSchema)
|
||||
.merge(CommonPrimarySaleSchema)
|
||||
.merge(CommonTrustedForwarderSchema);
|
||||
.merge(CommonTrustedForwarderSchema))();
|
||||
|
||||
export const DropErc1155ContractSchema = {
|
||||
deploy: DropErc1155ContractDeploy,
|
||||
|
||||
@@ -8,20 +8,16 @@ import {
|
||||
} from "./common";
|
||||
import { MerkleSchema } from "./common/snapshots";
|
||||
|
||||
export const DropErc20ContractInput =
|
||||
/* @__PURE__ */ CommonContractSchema.merge(MerkleSchema).merge(
|
||||
CommonSymbolSchema,
|
||||
);
|
||||
export const DropErc20ContractInput = /* @__PURE__ */ (() =>
|
||||
CommonContractSchema.merge(MerkleSchema).merge(CommonSymbolSchema))();
|
||||
|
||||
export const DropErc20ContractOutput =
|
||||
/* @__PURE__ */ CommonContractOutputSchema.merge(MerkleSchema).merge(
|
||||
CommonSymbolSchema,
|
||||
);
|
||||
export const DropErc20ContractOutput = /* @__PURE__ */ (() =>
|
||||
CommonContractOutputSchema.merge(MerkleSchema).merge(CommonSymbolSchema))();
|
||||
|
||||
export const DropErc20ContractDeploy =
|
||||
/* @__PURE__ */ DropErc20ContractInput.merge(CommonPlatformFeeSchema)
|
||||
export const DropErc20ContractDeploy = /* @__PURE__ */ (() =>
|
||||
DropErc20ContractInput.merge(CommonPlatformFeeSchema)
|
||||
.merge(CommonPrimarySaleSchema)
|
||||
.merge(CommonTrustedForwarderSchema);
|
||||
.merge(CommonTrustedForwarderSchema))();
|
||||
|
||||
export const DropErc20ContractSchema = {
|
||||
deploy: DropErc20ContractDeploy,
|
||||
|
||||
@@ -9,20 +9,20 @@ import {
|
||||
} from "./common";
|
||||
import { MerkleSchema } from "./common/snapshots";
|
||||
|
||||
export const DropErc721ContractInput =
|
||||
/* @__PURE__ */ CommonContractSchema.merge(CommonRoyaltySchema)
|
||||
export const DropErc721ContractInput = /* @__PURE__ */ (() =>
|
||||
CommonContractSchema.merge(CommonRoyaltySchema)
|
||||
.merge(MerkleSchema)
|
||||
.merge(CommonSymbolSchema);
|
||||
.merge(CommonSymbolSchema))();
|
||||
|
||||
export const DropErc721ContractOutput =
|
||||
/* @__PURE__ */ CommonContractOutputSchema.merge(CommonRoyaltySchema)
|
||||
export const DropErc721ContractOutput = /* @__PURE__ */ (() =>
|
||||
CommonContractOutputSchema.merge(CommonRoyaltySchema)
|
||||
.merge(MerkleSchema)
|
||||
.merge(CommonSymbolSchema);
|
||||
.merge(CommonSymbolSchema))();
|
||||
|
||||
export const DropErc721ContractDeploy =
|
||||
/* @__PURE__ */ DropErc721ContractInput.merge(CommonPlatformFeeSchema)
|
||||
export const DropErc721ContractDeploy = /* @__PURE__ */ (() =>
|
||||
DropErc721ContractInput.merge(CommonPlatformFeeSchema)
|
||||
.merge(CommonPrimarySaleSchema)
|
||||
.merge(CommonTrustedForwarderSchema);
|
||||
.merge(CommonTrustedForwarderSchema))();
|
||||
|
||||
export const DropErc721ContractSchema = {
|
||||
deploy: DropErc721ContractDeploy,
|
||||
|
||||
@@ -8,17 +8,15 @@ import {
|
||||
CommonTrustedForwarderSchema,
|
||||
} from "./common";
|
||||
|
||||
export const LoyaltyCardContractInput =
|
||||
/* @__PURE__ */ CommonContractSchema.merge(CommonRoyaltySchema).merge(
|
||||
CommonSymbolSchema,
|
||||
);
|
||||
export const LoyaltyCardContractInput = /* @__PURE__ */ (() =>
|
||||
CommonContractSchema.merge(CommonRoyaltySchema).merge(CommonSymbolSchema))();
|
||||
|
||||
export const LoyaltyCardContractOutput =
|
||||
/* @__PURE__ */ CommonContractOutputSchema.merge(CommonRoyaltySchema).merge(
|
||||
export const LoyaltyCardContractOutput = /* @__PURE__ */ (() =>
|
||||
CommonContractOutputSchema.merge(CommonRoyaltySchema).merge(
|
||||
CommonSymbolSchema,
|
||||
);
|
||||
))();
|
||||
|
||||
export const LoyaltyCardContractDeploy =
|
||||
/* @__PURE__ */ LoyaltyCardContractInput.merge(CommonPlatformFeeSchema)
|
||||
export const LoyaltyCardContractDeploy = /* @__PURE__ */ (() =>
|
||||
LoyaltyCardContractInput.merge(CommonPlatformFeeSchema)
|
||||
.merge(CommonPrimarySaleSchema)
|
||||
.merge(CommonTrustedForwarderSchema);
|
||||
.merge(CommonTrustedForwarderSchema))();
|
||||
|
||||
@@ -9,10 +9,10 @@ export const MarketplaceContractInput = CommonContractSchema;
|
||||
|
||||
export const MarketplaceContractOutput = CommonContractOutputSchema;
|
||||
|
||||
export const MarketplaceContractDeploy =
|
||||
/* @__PURE__ */ MarketplaceContractInput.merge(CommonPlatformFeeSchema).merge(
|
||||
export const MarketplaceContractDeploy = /* @__PURE__ */ (() =>
|
||||
MarketplaceContractInput.merge(CommonPlatformFeeSchema).merge(
|
||||
CommonTrustedForwarderSchema,
|
||||
);
|
||||
))();
|
||||
|
||||
export const MarketplaceContractSchema = {
|
||||
deploy: MarketplaceContractDeploy,
|
||||
|
||||
@@ -6,18 +6,16 @@ import {
|
||||
CommonTrustedForwarderSchema,
|
||||
} from "./common";
|
||||
|
||||
export const MultiwrapContractInput =
|
||||
/* @__PURE__ */ CommonContractSchema.merge(CommonRoyaltySchema).merge(
|
||||
CommonSymbolSchema,
|
||||
);
|
||||
export const MultiwrapContractInput = /* @__PURE__ */ (() =>
|
||||
CommonContractSchema.merge(CommonRoyaltySchema).merge(CommonSymbolSchema))();
|
||||
|
||||
export const MultiwrapContractOutput =
|
||||
/* @__PURE__ */ CommonContractOutputSchema.merge(CommonRoyaltySchema).merge(
|
||||
export const MultiwrapContractOutput = /* @__PURE__ */ (() =>
|
||||
CommonContractOutputSchema.merge(CommonRoyaltySchema).merge(
|
||||
CommonSymbolSchema,
|
||||
);
|
||||
))();
|
||||
|
||||
export const MultiwrapContractDeploy =
|
||||
/* @__PURE__ */ MultiwrapContractInput.merge(CommonTrustedForwarderSchema);
|
||||
export const MultiwrapContractDeploy = /* @__PURE__ */ (() =>
|
||||
MultiwrapContractInput.merge(CommonTrustedForwarderSchema))();
|
||||
|
||||
export const MultiwrapContractSchema = {
|
||||
deploy: MultiwrapContractDeploy,
|
||||
|
||||
@@ -7,19 +7,18 @@ import {
|
||||
CommonTrustedForwarderSchema,
|
||||
} from "./common";
|
||||
|
||||
export const PackContractInput =
|
||||
/* @__PURE__ */ CommonContractSchema.merge(CommonRoyaltySchema).merge(
|
||||
CommonSymbolSchema,
|
||||
);
|
||||
export const PackContractInput = /* @__PURE__ */ (() =>
|
||||
CommonContractSchema.merge(CommonRoyaltySchema).merge(CommonSymbolSchema))();
|
||||
|
||||
export const PackContractOutput =
|
||||
/* @__PURE__ */ CommonContractOutputSchema.merge(CommonRoyaltySchema).merge(
|
||||
export const PackContractOutput = /* @__PURE__ */ (() =>
|
||||
CommonContractOutputSchema.merge(CommonRoyaltySchema).merge(
|
||||
CommonSymbolSchema,
|
||||
);
|
||||
))();
|
||||
|
||||
export const PackContractDeploy = /* @__PURE__ */ PackContractInput.merge(
|
||||
CommonPlatformFeeSchema,
|
||||
).merge(CommonTrustedForwarderSchema);
|
||||
export const PackContractDeploy = /* @__PURE__ */ (() =>
|
||||
PackContractInput.merge(CommonPlatformFeeSchema).merge(
|
||||
CommonTrustedForwarderSchema,
|
||||
))();
|
||||
|
||||
export const PackContractSchema = {
|
||||
deploy: PackContractDeploy,
|
||||
|
||||
@@ -13,11 +13,11 @@ const SplitRecipientInputSchema = /* @__PURE__ */ (() =>
|
||||
sharesBps: BasisPointsSchema.gt(0, "Shares must be greater than 0"),
|
||||
}))();
|
||||
|
||||
const SplitRecipientOuputSchema =
|
||||
/* @__PURE__ */ SplitRecipientInputSchema.extend({
|
||||
const SplitRecipientOuputSchema = /* @__PURE__ */ (() =>
|
||||
SplitRecipientInputSchema.extend({
|
||||
address: AddressOrEnsSchema,
|
||||
sharesBps: BasisPointsSchema,
|
||||
});
|
||||
}))();
|
||||
|
||||
export const SplitsContractInput = /* @__PURE__ */ (() =>
|
||||
CommonContractSchema.extend({
|
||||
@@ -63,9 +63,10 @@ export const SplitsContractOutput = /* @__PURE__ */ (() =>
|
||||
recipients: z.array(SplitRecipientOuputSchema),
|
||||
}))();
|
||||
|
||||
export const SplitsContractDeploy = /* @__PURE__ */ SplitsContractInput.merge(
|
||||
SplitsContractInput,
|
||||
).merge(CommonTrustedForwarderSchema);
|
||||
export const SplitsContractDeploy = /* @__PURE__ */ (() =>
|
||||
SplitsContractInput.merge(SplitsContractInput).merge(
|
||||
CommonTrustedForwarderSchema,
|
||||
))();
|
||||
|
||||
export const SplitsContractSchema = {
|
||||
deploy: SplitsContractDeploy,
|
||||
|
||||
@@ -8,20 +8,18 @@ import {
|
||||
CommonTrustedForwarderSchema,
|
||||
} from "./common";
|
||||
|
||||
export const TokenErc1155ContractInput =
|
||||
/* @__PURE__ */ CommonContractSchema.merge(CommonRoyaltySchema).merge(
|
||||
CommonSymbolSchema,
|
||||
);
|
||||
export const TokenErc1155ContractInput = /* @__PURE__ */ (() =>
|
||||
CommonContractSchema.merge(CommonRoyaltySchema).merge(CommonSymbolSchema))();
|
||||
|
||||
export const TokenErc1155ContractOutput =
|
||||
/* @__PURE__ */ CommonContractOutputSchema.merge(CommonRoyaltySchema).merge(
|
||||
export const TokenErc1155ContractOutput = /* @__PURE__ */ (() =>
|
||||
CommonContractOutputSchema.merge(CommonRoyaltySchema).merge(
|
||||
CommonSymbolSchema,
|
||||
);
|
||||
))();
|
||||
|
||||
export const TokenErc1155ContractDeploy =
|
||||
/* @__PURE__ */ TokenErc1155ContractInput.merge(CommonPlatformFeeSchema)
|
||||
export const TokenErc1155ContractDeploy = /* @__PURE__ */ (() =>
|
||||
TokenErc1155ContractInput.merge(CommonPlatformFeeSchema)
|
||||
.merge(CommonPrimarySaleSchema)
|
||||
.merge(CommonTrustedForwarderSchema);
|
||||
.merge(CommonTrustedForwarderSchema))();
|
||||
|
||||
export const TokenErc1155ContractSchema = {
|
||||
deploy: TokenErc1155ContractDeploy,
|
||||
|
||||
@@ -7,16 +7,16 @@ import {
|
||||
CommonTrustedForwarderSchema,
|
||||
} from "./common";
|
||||
|
||||
export const TokenErc20ContractInput =
|
||||
/* @__PURE__ */ CommonContractSchema.merge(CommonSymbolSchema);
|
||||
export const TokenErc20ContractInput = /* @__PURE__ */ (() =>
|
||||
CommonContractSchema.merge(CommonSymbolSchema))();
|
||||
|
||||
export const TokenErc20ContractOutput =
|
||||
/* @__PURE__ */ CommonContractOutputSchema.merge(CommonSymbolSchema);
|
||||
export const TokenErc20ContractOutput = /* @__PURE__ */ (() =>
|
||||
CommonContractOutputSchema.merge(CommonSymbolSchema))();
|
||||
|
||||
export const TokenErc20ContractDeploy =
|
||||
/* @__PURE__ */ TokenErc20ContractInput.merge(CommonPlatformFeeSchema)
|
||||
export const TokenErc20ContractDeploy = /* @__PURE__ */ (() =>
|
||||
TokenErc20ContractInput.merge(CommonPlatformFeeSchema)
|
||||
.merge(CommonPrimarySaleSchema)
|
||||
.merge(CommonTrustedForwarderSchema);
|
||||
.merge(CommonTrustedForwarderSchema))();
|
||||
|
||||
export const TokenErc20ContractSchema = {
|
||||
deploy: TokenErc20ContractDeploy,
|
||||
|
||||
@@ -8,20 +8,18 @@ import {
|
||||
CommonTrustedForwarderSchema,
|
||||
} from "./common";
|
||||
|
||||
export const TokenErc721ContractInput =
|
||||
/* @__PURE__ */ CommonContractSchema.merge(CommonRoyaltySchema).merge(
|
||||
CommonSymbolSchema,
|
||||
);
|
||||
export const TokenErc721ContractInput = /* @__PURE__ */ (() =>
|
||||
CommonContractSchema.merge(CommonRoyaltySchema).merge(CommonSymbolSchema))();
|
||||
|
||||
export const TokenErc721ContractOutput =
|
||||
/* @__PURE__ */ CommonContractOutputSchema.merge(CommonRoyaltySchema).merge(
|
||||
export const TokenErc721ContractOutput = /* @__PURE__ */ (() =>
|
||||
CommonContractOutputSchema.merge(CommonRoyaltySchema).merge(
|
||||
CommonSymbolSchema,
|
||||
);
|
||||
))();
|
||||
|
||||
export const TokenErc721ContractDeploy =
|
||||
/* @__PURE__ */ TokenErc721ContractInput.merge(CommonPlatformFeeSchema)
|
||||
export const TokenErc721ContractDeploy = /* @__PURE__ */ (() =>
|
||||
TokenErc721ContractInput.merge(CommonPlatformFeeSchema)
|
||||
.merge(CommonPrimarySaleSchema)
|
||||
.merge(CommonTrustedForwarderSchema);
|
||||
.merge(CommonTrustedForwarderSchema))();
|
||||
|
||||
export const TokenErc721ContractSchema = {
|
||||
deploy: TokenErc721ContractDeploy,
|
||||
|
||||
@@ -17,21 +17,19 @@ export const VoteSettingsInputSchema = /* @__PURE__ */ (() =>
|
||||
proposal_token_threshold: BigNumberishSchema.default(1),
|
||||
}))();
|
||||
|
||||
export const VoteSettingsOuputSchema =
|
||||
/* @__PURE__ */ VoteSettingsInputSchema.extend({
|
||||
export const VoteSettingsOuputSchema = /* @__PURE__ */ (() =>
|
||||
VoteSettingsInputSchema.extend({
|
||||
proposal_token_threshold: BigNumberSchema,
|
||||
});
|
||||
}))();
|
||||
|
||||
export const VoteContractInput = /* @__PURE__ */ CommonContractSchema.merge(
|
||||
VoteSettingsInputSchema,
|
||||
);
|
||||
export const VoteContractInput = /* @__PURE__ */ (() =>
|
||||
CommonContractSchema.merge(VoteSettingsInputSchema))();
|
||||
|
||||
export const VoteContractOutput =
|
||||
/* @__PURE__ */ CommonContractOutputSchema.merge(VoteSettingsOuputSchema);
|
||||
export const VoteContractOutput = /* @__PURE__ */ (() =>
|
||||
CommonContractOutputSchema.merge(VoteSettingsOuputSchema))();
|
||||
|
||||
export const VoteContractDeploy = /* @__PURE__ */ VoteContractInput.merge(
|
||||
CommonTrustedForwarderSchema,
|
||||
);
|
||||
export const VoteContractDeploy = /* @__PURE__ */ (() =>
|
||||
VoteContractInput.merge(CommonTrustedForwarderSchema))();
|
||||
|
||||
export const VoteContractSchema = {
|
||||
deploy: VoteContractDeploy,
|
||||
|
||||
@@ -3,12 +3,10 @@ import { z } from "zod";
|
||||
import { AddressSchema } from "./AddressSchema";
|
||||
|
||||
// Important for address check to come before ENS so network request is only made when necessary
|
||||
export const AddressOrEnsSchema = /* @__PURE__ */ z.union(
|
||||
[AddressSchema, EnsSchema],
|
||||
{
|
||||
export const AddressOrEnsSchema = /* @__PURE__ */ (() =>
|
||||
z.union([AddressSchema, EnsSchema], {
|
||||
invalid_type_error: "Provided value was not a valid address or ENS name",
|
||||
},
|
||||
);
|
||||
}))();
|
||||
|
||||
// Use this everywhere even though it's just string so we can optionally switch it out
|
||||
// more easily if we want to later
|
||||
|
||||
@@ -2,11 +2,12 @@ import { utils } from "ethers";
|
||||
import { z } from "zod";
|
||||
import { Address } from "./Address";
|
||||
|
||||
export const AddressSchema = /* @__PURE__ */ z.custom<Address>(
|
||||
(address) => typeof address === "string" && utils.isAddress(address),
|
||||
(out) => {
|
||||
return {
|
||||
message: `${out} is not a valid address`,
|
||||
};
|
||||
},
|
||||
);
|
||||
export const AddressSchema = /* @__PURE__ */ (() =>
|
||||
z.custom<Address>(
|
||||
(address) => typeof address === "string" && utils.isAddress(address),
|
||||
(out) => {
|
||||
return {
|
||||
message: `${out} is not a valid address`,
|
||||
};
|
||||
},
|
||||
))();
|
||||
|
||||
@@ -13,9 +13,8 @@ export const BigNumberSchema = /* @__PURE__ */ (() =>
|
||||
])
|
||||
.transform((arg) => BigNumber.from(arg)))();
|
||||
|
||||
export const BigNumberishSchema = /* @__PURE__ */ BigNumberSchema.transform(
|
||||
(arg) => arg.toString(),
|
||||
);
|
||||
export const BigNumberishSchema = /* @__PURE__ */ (() =>
|
||||
BigNumberSchema.transform((arg) => arg.toString()))();
|
||||
|
||||
export const BigNumberTransformSchema = /* @__PURE__ */ (() =>
|
||||
z
|
||||
|
||||
@@ -6,31 +6,32 @@ import { z } from "zod";
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
const CommonWrappableSchema = /* @__PURE__ */ z.object({
|
||||
contractAddress: AddressOrEnsSchema,
|
||||
});
|
||||
const CommonWrappableSchema = /* @__PURE__ */ (() =>
|
||||
z.object({
|
||||
contractAddress: AddressOrEnsSchema,
|
||||
}))();
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const ERC20WrappableSchema =
|
||||
/* @__PURE__ */ CommonWrappableSchema.extend({
|
||||
export const ERC20WrappableSchema = /* @__PURE__ */ (() =>
|
||||
CommonWrappableSchema.extend({
|
||||
quantity: AmountSchema,
|
||||
});
|
||||
}))();
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const ERC721WrappableSchema =
|
||||
/* @__PURE__ */ CommonWrappableSchema.extend({
|
||||
export const ERC721WrappableSchema = /* @__PURE__ */ (() =>
|
||||
CommonWrappableSchema.extend({
|
||||
tokenId: BigNumberishSchema,
|
||||
});
|
||||
}))();
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const ERC1155WrappableSchema =
|
||||
/* @__PURE__ */ CommonWrappableSchema.extend({
|
||||
export const ERC1155WrappableSchema = /* @__PURE__ */ (() =>
|
||||
CommonWrappableSchema.extend({
|
||||
tokenId: BigNumberishSchema,
|
||||
quantity: BigNumberishSchema,
|
||||
});
|
||||
}))();
|
||||
|
||||
@@ -9,10 +9,11 @@ import { z } from "zod";
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const EditionMetadataOutputSchema = /* @__PURE__ */ z.object({
|
||||
supply: BigNumberSchema,
|
||||
metadata: CommonNFTOutput,
|
||||
});
|
||||
export const EditionMetadataOutputSchema = /* @__PURE__ */ (() =>
|
||||
z.object({
|
||||
supply: BigNumberSchema,
|
||||
metadata: CommonNFTOutput,
|
||||
}))();
|
||||
|
||||
/**
|
||||
* @internal
|
||||
@@ -26,18 +27,20 @@ export const EditionMetadataWithOwnerOutputSchema = /* @__PURE__ */ (() =>
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const EditionMetadataInputSchema = /* @__PURE__ */ z.object({
|
||||
supply: BigNumberishSchema,
|
||||
metadata: CommonNFTInput,
|
||||
});
|
||||
export const EditionMetadataInputSchema = /* @__PURE__ */ (() =>
|
||||
z.object({
|
||||
supply: BigNumberishSchema,
|
||||
metadata: CommonNFTInput,
|
||||
}))();
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const EditionMetadataInputOrUriSchema = /* @__PURE__ */ z.object({
|
||||
supply: BigNumberishSchema,
|
||||
metadata: NFTInputOrUriSchema,
|
||||
});
|
||||
export const EditionMetadataInputOrUriSchema = /* @__PURE__ */ (() =>
|
||||
z.object({
|
||||
supply: BigNumberishSchema,
|
||||
metadata: NFTInputOrUriSchema,
|
||||
}))();
|
||||
|
||||
/**
|
||||
* @public
|
||||
|
||||
@@ -12,11 +12,12 @@ import { z } from "zod";
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
const ERC20RewardSchema = /* @__PURE__ */ ERC20WrappableSchema.omit({
|
||||
quantity: true,
|
||||
}).extend({
|
||||
quantityPerReward: AmountSchema,
|
||||
});
|
||||
const ERC20RewardSchema = /* @__PURE__ */ (() =>
|
||||
ERC20WrappableSchema.omit({
|
||||
quantity: true,
|
||||
}).extend({
|
||||
quantityPerReward: AmountSchema,
|
||||
}))();
|
||||
|
||||
/**
|
||||
* @internal
|
||||
@@ -26,11 +27,12 @@ const ERC721RewardSchema = ERC721WrappableSchema;
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
const ERC1155RewardSchema = /* @__PURE__ */ ERC1155WrappableSchema.omit({
|
||||
quantity: true,
|
||||
}).extend({
|
||||
quantityPerReward: BigNumberishSchema,
|
||||
});
|
||||
const ERC1155RewardSchema = /* @__PURE__ */ (() =>
|
||||
ERC1155WrappableSchema.omit({
|
||||
quantity: true,
|
||||
}).extend({
|
||||
quantityPerReward: BigNumberishSchema,
|
||||
}))();
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
||||
@@ -5,10 +5,11 @@ import { z } from "zod";
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const TokenMintInputSchema = /* @__PURE__ */ z.object({
|
||||
toAddress: AddressOrEnsSchema,
|
||||
amount: AmountSchema,
|
||||
});
|
||||
export const TokenMintInputSchema = /* @__PURE__ */ (() =>
|
||||
z.object({
|
||||
toAddress: AddressOrEnsSchema,
|
||||
amount: AmountSchema,
|
||||
}))();
|
||||
|
||||
/**
|
||||
* @public
|
||||
|
||||
@@ -12,12 +12,13 @@ export type SignerPermissions = {
|
||||
approvedCallTargets: string[];
|
||||
};
|
||||
|
||||
export const SignerPermissionsSchema = /* @__PURE__ */ z.object({
|
||||
startDate: StartDateSchema,
|
||||
expirationDate: EndDateSchema,
|
||||
nativeTokenLimitPerTransaction: /* @__PURE__ */ AmountSchema.default(0),
|
||||
approvedCallTargets: /* @__PURE__ */ z.array(AddressOrEnsSchema),
|
||||
});
|
||||
export const SignerPermissionsSchema = /* @__PURE__ */ (() =>
|
||||
z.object({
|
||||
startDate: StartDateSchema,
|
||||
expirationDate: EndDateSchema,
|
||||
nativeTokenLimitPerTransaction: AmountSchema.default(0),
|
||||
approvedCallTargets: z.array(AddressOrEnsSchema),
|
||||
}))();
|
||||
|
||||
export type SignerPermissionsInput = z.input<typeof SignerPermissionsSchema>;
|
||||
export type SignerPermissionsOutput = z.output<typeof SignerPermissionsSchema>;
|
||||
@@ -28,13 +29,15 @@ export type SignerWithPermissions = {
|
||||
permissions: SignerPermissions;
|
||||
};
|
||||
|
||||
export const PermissionSnapshotSchema = /* @__PURE__ */ z.array(
|
||||
/* @__PURE__ */ z.object({
|
||||
signer: AddressOrEnsSchema,
|
||||
makeAdmin: /* @__PURE__ */ z.boolean(),
|
||||
permissions: SignerPermissionsSchema,
|
||||
}),
|
||||
);
|
||||
export const PermissionSnapshotSchema = /* @__PURE__ */ (() =>
|
||||
z.array(
|
||||
z.object({
|
||||
signer: AddressOrEnsSchema,
|
||||
makeAdmin: z.boolean(),
|
||||
permissions: SignerPermissionsSchema,
|
||||
}),
|
||||
))();
|
||||
|
||||
export type PermissionSnapshotInput = z.input<typeof PermissionSnapshotSchema>;
|
||||
export type PermissionSnapshotOutput = z.output<
|
||||
typeof PermissionSnapshotSchema
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @thirdweb-dev/unity-js-bridge
|
||||
|
||||
## 0.2.87
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [[`e684d05e`](https://github.com/thirdweb-dev/js/commit/e684d05e222458f02c8158eb9385d68c879dd946)]:
|
||||
- @thirdweb-dev/wallets@2.0.1
|
||||
- @thirdweb-dev/auth@4.0.1
|
||||
|
||||
## 0.2.86
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/unity-js-bridge",
|
||||
"version": "0.2.86",
|
||||
"version": "0.2.87",
|
||||
"main": "dist/thirdweb-unity-bridge.js",
|
||||
"repository": "https://github.com/thirdweb-dev/js/tree/main/packages/unity-js-bridge",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @thirdweb-dev/wallets
|
||||
|
||||
## 2.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- [#1742](https://github.com/thirdweb-dev/js/pull/1742) [`e684d05e`](https://github.com/thirdweb-dev/js/commit/e684d05e222458f02c8158eb9385d68c879dd946) Thanks [@MananTank](https://github.com/MananTank)! - Fix RPCs not updated in given `chain` object when `clientId` is passed to the `EmbeddedWallet`, `PaperWallet`, `SmartWallet`, `BloctoWallet`, `SignerWallet` constructors.
|
||||
|
||||
## 2.0.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@thirdweb-dev/wallets",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"main": "dist/thirdweb-dev-wallets.cjs.js",
|
||||
"module": "dist/thirdweb-dev-wallets.esm.js",
|
||||
"types": "dist/thirdweb-dev-wallets.cjs.d.ts",
|
||||
@@ -438,7 +438,7 @@
|
||||
"bs58": "^5.0.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint-config-thirdweb": "workspace:*",
|
||||
"eslint-plugin-better-tree-shaking": "0.0.3",
|
||||
"eslint-plugin-better-tree-shaking": "0.0.4",
|
||||
"ethereum-provider": "^0.7.7",
|
||||
"ethers": "^5.7.2",
|
||||
"ethers-aws-kms-signer": "^1.3.2",
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
|
||||
export class EmbeddedWalletConnector extends Connector<EmbeddedWalletConnectionArgs> {
|
||||
readonly id: string = walletIds.paper;
|
||||
readonly name: string = "Paper Wallet";
|
||||
readonly name: string = "Embedded Wallet";
|
||||
ready = true;
|
||||
|
||||
private user: InitializedUser | null = null;
|
||||
@@ -108,6 +108,7 @@ export class EmbeddedWalletConnector extends Connector<EmbeddedWalletConnectionA
|
||||
const paper = await this.#embeddedWalletSdk;
|
||||
await paper?.auth.logout();
|
||||
this.#signer = undefined;
|
||||
this.#embeddedWalletSdk = undefined;
|
||||
this.user = null;
|
||||
}
|
||||
|
||||
|
||||
@@ -69,9 +69,9 @@ const SIGN_MESSAGE_LIB_ABI = [
|
||||
const __IS_SERVER__ = typeof window === "undefined";
|
||||
|
||||
export class SafeConnector extends Connector<SafeConnectionArgs> {
|
||||
static supportedChains = /* @__PURE__ */ Object.keys(
|
||||
CHAIN_ID_TO_GNOSIS_SERVER_URL,
|
||||
);
|
||||
static supportedChains = /* @__PURE__ */ (() =>
|
||||
Object.keys(CHAIN_ID_TO_GNOSIS_SERVER_URL))();
|
||||
|
||||
public supportedChains = SafeConnector.supportedChains;
|
||||
readonly id = "safe-wallet";
|
||||
ready = !__IS_SERVER__;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Connector, WagmiAdapter } from "../interfaces/connector";
|
||||
import { AbstractClientWallet, WalletMeta, WalletOptions } from "./base";
|
||||
import { walletIds } from "../constants/walletIds";
|
||||
import { Chain } from "@thirdweb-dev/chains";
|
||||
import { Chain, updateChainRPCs } from "@thirdweb-dev/chains";
|
||||
|
||||
type BloctoOptions = {
|
||||
appId?: string;
|
||||
@@ -25,6 +25,10 @@ export class BloctoWallet extends AbstractClientWallet<BloctoOptions> {
|
||||
};
|
||||
|
||||
constructor(options?: WalletOptions<BloctoOptions>) {
|
||||
if (options?.chain && options.clientId) {
|
||||
options.chain = updateChainRPCs(options.chain, options.clientId);
|
||||
}
|
||||
|
||||
super(BloctoWallet.id, options);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { getValidChainRPCs } from "@thirdweb-dev/chains";
|
||||
import { EmbeddedWalletConnector } from "../connectors/embedded-wallet";
|
||||
import {
|
||||
EmbeddedWalletAdditionalOptions,
|
||||
@@ -37,7 +38,14 @@ export class EmbeddedWallet extends AbstractClientWallet<
|
||||
...options,
|
||||
});
|
||||
|
||||
this.chain = options.chain;
|
||||
try {
|
||||
this.chain = {
|
||||
...options.chain,
|
||||
rpc: getValidChainRPCs(options.chain, options.clientId),
|
||||
};
|
||||
} catch {
|
||||
this.chain = options.chain;
|
||||
}
|
||||
}
|
||||
|
||||
protected async getConnector(): Promise<Connector> {
|
||||
|
||||
@@ -2,7 +2,12 @@ import { AsyncStorage, createAsyncLocalStorage } from "../../core";
|
||||
import { Connector } from "../interfaces/connector";
|
||||
import { walletIds } from "../constants/walletIds";
|
||||
import { AbstractClientWallet, WalletOptions } from "./base";
|
||||
import { Chain, defaultChains, Ethereum } from "@thirdweb-dev/chains";
|
||||
import {
|
||||
Chain,
|
||||
defaultChains,
|
||||
Ethereum,
|
||||
updateChainRPCs,
|
||||
} from "@thirdweb-dev/chains";
|
||||
import { Wallet, utils } from "ethers";
|
||||
|
||||
export type LocalWalletOptions = {
|
||||
@@ -46,7 +51,13 @@ export class LocalWallet extends AbstractClientWallet<
|
||||
|
||||
constructor(options?: WalletOptions<LocalWalletOptions>) {
|
||||
super(LocalWallet.id, options);
|
||||
|
||||
if (options?.chain && options.clientId) {
|
||||
options.chain = updateChainRPCs(options.chain, options.clientId);
|
||||
}
|
||||
|
||||
this.options = options || {};
|
||||
|
||||
this.#storage =
|
||||
options?.storage || createAsyncLocalStorage(walletIds.localWallet);
|
||||
}
|
||||
@@ -61,14 +72,18 @@ export class LocalWallet extends AbstractClientWallet<
|
||||
throw new Error("wallet is not initialized");
|
||||
}
|
||||
|
||||
const defaults = this.options.chain
|
||||
? [...defaultChains, this.options.chain]
|
||||
: defaultChains;
|
||||
const defaults = (
|
||||
this.options.chain
|
||||
? [...defaultChains, this.options.chain]
|
||||
: defaultChains
|
||||
).map((c) => updateChainRPCs(c, this.options.clientId));
|
||||
|
||||
this.connector = new LocalWalletConnector({
|
||||
chain: this.options.chain || Ethereum,
|
||||
chain:
|
||||
this.options.chain ||
|
||||
updateChainRPCs(Ethereum, this.options.clientId),
|
||||
ethersWallet: this.ethersWallet,
|
||||
chains: this.options.chains || defaults,
|
||||
chains: this.chains || defaults,
|
||||
clientId: this.options.clientId,
|
||||
secretKey: this.options.secretKey,
|
||||
});
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { getValidChainRPCs } from "@thirdweb-dev/chains";
|
||||
import type { PaperWalletConnector } from "../connectors/paper";
|
||||
import {
|
||||
PaperWalletAdditionalOptions as PaperWalletAdditionalOptions_,
|
||||
@@ -37,9 +38,17 @@ export class PaperWallet extends AbstractClientWallet<
|
||||
...options,
|
||||
});
|
||||
|
||||
try {
|
||||
this.chain = {
|
||||
...options.chain,
|
||||
rpc: getValidChainRPCs(options.chain, options.clientId),
|
||||
};
|
||||
} catch {
|
||||
this.chain = options.chain;
|
||||
}
|
||||
|
||||
if (options.paperClientId && options.paperClientId === "uninitialized") {
|
||||
this.paperClientId = "00000000-0000-0000-0000-000000000000";
|
||||
this.chain = options.chain;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -75,7 +84,6 @@ export class PaperWallet extends AbstractClientWallet<
|
||||
|
||||
// cast is okay because we assert that either clientId or paperClientId is defined above
|
||||
this.paperClientId = (options.paperClientId ?? options.clientId) as string;
|
||||
this.chain = options.chain;
|
||||
}
|
||||
private isClientIdLegacyPaper(clientId: string): boolean {
|
||||
return clientId.indexOf("-") > 0 && clientId.length === 36;
|
||||
|
||||
@@ -2,7 +2,12 @@ import { AsyncStorage, createAsyncLocalStorage } from "../../core";
|
||||
import { Connector } from "../interfaces/connector";
|
||||
import { walletIds } from "../constants/walletIds";
|
||||
import { AbstractClientWallet, WalletOptions } from "./base";
|
||||
import { Chain, defaultChains, Ethereum } from "@thirdweb-dev/chains";
|
||||
import {
|
||||
Chain,
|
||||
defaultChains,
|
||||
Ethereum,
|
||||
updateChainRPCs,
|
||||
} from "@thirdweb-dev/chains";
|
||||
import { Signer } from "ethers";
|
||||
|
||||
export type SignerWalletAdditionalOptions = {
|
||||
@@ -26,6 +31,11 @@ export class SignerWallet extends AbstractClientWallet<
|
||||
|
||||
constructor(options: WalletOptions<SignerWalletAdditionalOptions>) {
|
||||
super("signerWallet", options);
|
||||
|
||||
if (options.clientId && options.chain) {
|
||||
options.chain = updateChainRPCs(options.chain, options.clientId);
|
||||
}
|
||||
|
||||
this.options = options;
|
||||
this.signer = options.signer;
|
||||
this.#storage =
|
||||
@@ -40,14 +50,18 @@ export class SignerWallet extends AbstractClientWallet<
|
||||
this.signer = this.options.signer;
|
||||
}
|
||||
|
||||
const defaults = this.options.chain
|
||||
? [...defaultChains, this.options.chain]
|
||||
: defaultChains;
|
||||
const defaults = (
|
||||
this.options.chain
|
||||
? [...defaultChains, this.options.chain]
|
||||
: defaultChains
|
||||
).map((c) => updateChainRPCs(c, this.options.clientId));
|
||||
|
||||
this.connector = new SignerConnector({
|
||||
chain: this.options.chain || Ethereum,
|
||||
chain:
|
||||
this.options.chain ||
|
||||
updateChainRPCs(Ethereum, this.options.clientId),
|
||||
signer: this.signer,
|
||||
chains: this.options.chains || defaults,
|
||||
chains: this.chains || defaults,
|
||||
clientId: this.options.clientId,
|
||||
secretKey: this.options.secretKey,
|
||||
});
|
||||
|
||||
@@ -22,6 +22,7 @@ import {
|
||||
} from "../../core/types/walletConnect";
|
||||
import { WalletConnectV2Handler } from "../../core/WalletConnect/WalletConnectV2Handler";
|
||||
import { NoOpWalletConnectHandler } from "../../core/WalletConnect/constants";
|
||||
import { getValidChainRPCs } from "@thirdweb-dev/chains";
|
||||
|
||||
// export types and utils for convenience
|
||||
export * from "../connectors/smart-wallet/types";
|
||||
@@ -49,6 +50,15 @@ export class SmartWallet
|
||||
}
|
||||
|
||||
constructor(options: WalletOptions<SmartWalletConfig>) {
|
||||
if (options.clientId && typeof options.chain === "object") {
|
||||
try {
|
||||
options.chain = {
|
||||
...options.chain,
|
||||
rpc: getValidChainRPCs(options.chain, options.clientId),
|
||||
};
|
||||
} catch {}
|
||||
}
|
||||
|
||||
super(SmartWallet.id, {
|
||||
...options,
|
||||
});
|
||||
|
||||
Generated
+10
-10
@@ -592,8 +592,8 @@ importers:
|
||||
specifier: workspace:*
|
||||
version: link:../eslint-config-thirdweb
|
||||
eslint-plugin-better-tree-shaking:
|
||||
specifier: 0.0.3
|
||||
version: 0.0.3([email protected])
|
||||
specifier: 0.0.4
|
||||
version: 0.0.4([email protected])
|
||||
eslint-plugin-import:
|
||||
specifier: ^2.26.0
|
||||
version: 2.27.5(@typescript-eslint/[email protected])([email protected])
|
||||
@@ -710,8 +710,8 @@ importers:
|
||||
specifier: workspace:*
|
||||
version: link:../eslint-config-thirdweb
|
||||
eslint-plugin-better-tree-shaking:
|
||||
specifier: 0.0.3
|
||||
version: 0.0.3([email protected])
|
||||
specifier: 0.0.4
|
||||
version: 0.0.4([email protected])
|
||||
eslint-plugin-import:
|
||||
specifier: ^2.26.0
|
||||
version: 2.27.5(@typescript-eslint/[email protected])([email protected])
|
||||
@@ -1092,8 +1092,8 @@ importers:
|
||||
specifier: workspace:*
|
||||
version: link:../eslint-config-thirdweb
|
||||
eslint-plugin-better-tree-shaking:
|
||||
specifier: 0.0.3
|
||||
version: 0.0.3([email protected])
|
||||
specifier: 0.0.4
|
||||
version: 0.0.4([email protected])
|
||||
eslint-plugin-import:
|
||||
specifier: ^2.26.0
|
||||
version: 2.27.5(@typescript-eslint/[email protected])([email protected])
|
||||
@@ -1428,8 +1428,8 @@ importers:
|
||||
specifier: workspace:*
|
||||
version: link:../eslint-config-thirdweb
|
||||
eslint-plugin-better-tree-shaking:
|
||||
specifier: 0.0.3
|
||||
version: 0.0.3([email protected])
|
||||
specifier: 0.0.4
|
||||
version: 0.0.4([email protected])
|
||||
ethereum-provider:
|
||||
specifier: ^0.7.7
|
||||
version: 0.7.7
|
||||
@@ -17470,8 +17470,8 @@ packages:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
/[email protected].3([email protected]):
|
||||
resolution: {integrity: sha512-U5OjauLSVcXvlh2La3ptPwIs6JwLPJKP20OQdTDBe2oh0cHvBeEwhQ8mjFrEoCMdQdmMdrSBkSRLG3gLxFjK3A==}
|
||||
/[email protected].4([email protected]):
|
||||
resolution: {integrity: sha512-Silr3osATHKt3i4SNhqIV52hvZKNvhxs042vlPsw4pUfOkOI9eCZIFg+Q5qZ2zFSNWRAfLbXfG0oHCIz7CbN7w==}
|
||||
peerDependencies:
|
||||
eslint: '>=4.0.0'
|
||||
dependencies:
|
||||
|
||||
Reference in New Issue
Block a user