@aptos-labs/wallet-adapter-react 7.1.3 → 7.2.1

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.
@@ -1,7 +1,7 @@
1
1
  import { ForwardRefExoticComponent, ReactNode, RefAttributes, SVGProps } from "react";
2
2
  import { HeadlessComponentProps } from "./utils";
3
- export declare const EXPLORE_ECOSYSTEM_URL = "https://aptosfoundation.org/ecosystem/projects/all";
4
3
  declare const educationScreenIndicators: ForwardRefExoticComponent<HeadlessComponentProps & RefAttributes<HTMLButtonElement>>[];
4
+ /** @deprecated Use {@link AboutPetraWebEducationScreen} instead. */
5
5
  export interface AboutAptosConnectEducationScreen {
6
6
  /** A component that renders an SVG to illustrate the idea of the current screen. */
7
7
  Graphic: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
@@ -33,6 +33,7 @@ export interface AboutAptosConnectEducationScreen {
33
33
  /** A function that navigates the user to the initial wallet selection screen. */
34
34
  cancel: () => void;
35
35
  }
36
+ /** @deprecated Use {@link AboutPetraWebProps} instead. */
36
37
  export interface AboutAptosConnectProps {
37
38
  /**
38
39
  * A function for defining how each education screen should be rendered.
@@ -49,6 +50,8 @@ export interface AboutAptosConnectProps {
49
50
  /**
50
51
  * A headless component for rendering education screens that explain the basics
51
52
  * of Aptos Connect and web3 wallets.
53
+ *
54
+ * @deprecated Use {@link AboutPetraWeb} instead.
52
55
  */
53
56
  export declare const AboutAptosConnect: {
54
57
  ({ renderEducationScreen, children }: AboutAptosConnectProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"AboutAptosConnect.d.ts","sourceRoot":"","sources":["../../src/components/AboutAptosConnect.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EACzB,SAAS,EACT,aAAa,EACb,QAAQ,EAMT,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,sBAAsB,EAA2B,MAAM,SAAS,CAAC;AAE1E,eAAO,MAAM,qBAAqB,uDACoB,CAAC;AAgEvD,QAAA,MAAM,yBAAyB,wFAoB5B,CAAC;AAEJ,MAAM,WAAW,gCAAgC;IAC/C,oFAAoF;IACpF,OAAO,EAAE,yBAAyB,CAChC,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,KAAK,CAAC,GAAG,aAAa,CAAC,aAAa,CAAC,CACpE,CAAC;IACF,yEAAyE;IACzE,KAAK,EAAE,yBAAyB,CAC9B,sBAAsB,GAAG,aAAa,CAAC,kBAAkB,CAAC,CAC3D,CAAC;IACF,oFAAoF;IACpF,WAAW,EAAE,yBAAyB,CACpC,sBAAsB,GAAG,aAAa,CAAC,oBAAoB,CAAC,CAC7D,CAAC;IACF,iDAAiD;IACjD,WAAW,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,gBAAgB,EAAE,OAAO,yBAAyB,CAAC;IACnD;;;;OAIG;IACH,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB;;;;OAIG;IACH,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,iFAAiF;IACjF,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,qBAAqB,EAAE,CACrB,MAAM,EAAE,gCAAgC,KACrC,SAAS,CAAC;IACf;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAmDD;;;GAGG;AACH,eAAO,MAAM,iBAAiB;0CArDqB,sBAAsB;;;;CAuDvE,CAAC"}
1
+ {"version":3,"file":"AboutAptosConnect.d.ts","sourceRoot":"","sources":["../../src/components/AboutAptosConnect.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EACzB,SAAS,EACT,aAAa,EACb,QAAQ,EAMT,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,sBAAsB,EAA2B,MAAM,SAAS,CAAC;AAmE1E,QAAA,MAAM,yBAAyB,wFAoB5B,CAAC;AAEJ,oEAAoE;AACpE,MAAM,WAAW,gCAAgC;IAC/C,oFAAoF;IACpF,OAAO,EAAE,yBAAyB,CAChC,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,KAAK,CAAC,GAAG,aAAa,CAAC,aAAa,CAAC,CACpE,CAAC;IACF,yEAAyE;IACzE,KAAK,EAAE,yBAAyB,CAC9B,sBAAsB,GAAG,aAAa,CAAC,kBAAkB,CAAC,CAC3D,CAAC;IACF,oFAAoF;IACpF,WAAW,EAAE,yBAAyB,CACpC,sBAAsB,GAAG,aAAa,CAAC,oBAAoB,CAAC,CAC7D,CAAC;IACF,iDAAiD;IACjD,WAAW,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,gBAAgB,EAAE,OAAO,yBAAyB,CAAC;IACnD;;;;OAIG;IACH,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB;;;;OAIG;IACH,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,iFAAiF;IACjF,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,0DAA0D;AAC1D,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,qBAAqB,EAAE,CACrB,MAAM,EAAE,gCAAgC,KACrC,SAAS,CAAC;IACf;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAmDD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;0CAvDqB,sBAAsB;;;;CAyDvE,CAAC"}
@@ -0,0 +1,60 @@
1
+ import { ForwardRefExoticComponent, ReactNode, RefAttributes, SVGProps } from "react";
2
+ import { HeadlessComponentProps } from "./utils";
3
+ export declare const EXPLORE_ECOSYSTEM_URL = "https://aptosnetwork.com/ecosystem/directory/category/defi";
4
+ declare const educationScreenIndicators: ForwardRefExoticComponent<HeadlessComponentProps & RefAttributes<HTMLButtonElement>>[];
5
+ export interface AboutPetraWebEducationScreen {
6
+ /** A component that renders an SVG to illustrate the idea of the current screen. */
7
+ Graphic: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
8
+ /** A headless component that renders the title of the current screen. */
9
+ Title: ForwardRefExoticComponent<HeadlessComponentProps & RefAttributes<HTMLHeadingElement>>;
10
+ /** A headless component that renders the description text of the current screen. */
11
+ Description: ForwardRefExoticComponent<HeadlessComponentProps & RefAttributes<HTMLParagraphElement>>;
12
+ /** The index of the current education screen. */
13
+ screenIndex: number;
14
+ /** The total number of education screens. */
15
+ totalScreens: number;
16
+ /**
17
+ * An array of headless components for indicating the current screen of the set.
18
+ * Each indicator will navigate the user to the screen it represents when clicked.
19
+ */
20
+ screenIndicators: typeof educationScreenIndicators;
21
+ /**
22
+ * A function that navigates the user to the previous education screen.
23
+ * If the user is on the first education screen, they will be navigated to the
24
+ * initial wallet selection screen.
25
+ */
26
+ back: () => void;
27
+ /**
28
+ * A function that navigates the user to the next education screen.
29
+ * If the user is on the last education screen, they will be navigated to the
30
+ * initial wallet selection screen.
31
+ */
32
+ next: () => void;
33
+ /** A function that navigates the user to the initial wallet selection screen. */
34
+ cancel: () => void;
35
+ }
36
+ export interface AboutPetraWebProps {
37
+ /**
38
+ * A function for defining how each education screen should be rendered.
39
+ * Each screen is modeled as a uniform set of headless components and utilities
40
+ * that allow you to construct your UI and apply your own styles.
41
+ */
42
+ renderEducationScreen: (screen: AboutPetraWebEducationScreen) => ReactNode;
43
+ /**
44
+ * The initial wallet selection UI that will be replaced by the education
45
+ * screens when `AboutPetraWeb.Trigger` is clicked.
46
+ */
47
+ children?: ReactNode;
48
+ }
49
+ /**
50
+ * A headless component for rendering education screens that explain the basics
51
+ * of Petra Web and web3 wallets.
52
+ */
53
+ export declare const AboutPetraWeb: {
54
+ ({ renderEducationScreen, children }: AboutPetraWebProps): import("react/jsx-runtime").JSX.Element;
55
+ displayName: string;
56
+ } & {
57
+ Trigger: ForwardRefExoticComponent<HeadlessComponentProps & RefAttributes<HTMLButtonElement>>;
58
+ };
59
+ export {};
60
+ //# sourceMappingURL=AboutPetraWeb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AboutPetraWeb.d.ts","sourceRoot":"","sources":["../../src/components/AboutPetraWeb.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EACzB,SAAS,EACT,aAAa,EACb,QAAQ,EAMT,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,sBAAsB,EAA2B,MAAM,SAAS,CAAC;AAE1E,eAAO,MAAM,qBAAqB,+DAC4B,CAAC;AA8D/D,QAAA,MAAM,yBAAyB,wFAoB5B,CAAC;AAEJ,MAAM,WAAW,4BAA4B;IAC3C,oFAAoF;IACpF,OAAO,EAAE,yBAAyB,CAChC,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,KAAK,CAAC,GAAG,aAAa,CAAC,aAAa,CAAC,CACpE,CAAC;IACF,yEAAyE;IACzE,KAAK,EAAE,yBAAyB,CAC9B,sBAAsB,GAAG,aAAa,CAAC,kBAAkB,CAAC,CAC3D,CAAC;IACF,oFAAoF;IACpF,WAAW,EAAE,yBAAyB,CACpC,sBAAsB,GAAG,aAAa,CAAC,oBAAoB,CAAC,CAC7D,CAAC;IACF,iDAAiD;IACjD,WAAW,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,gBAAgB,EAAE,OAAO,yBAAyB,CAAC;IACnD;;;;OAIG;IACH,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB;;;;OAIG;IACH,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,iFAAiF;IACjF,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,qBAAqB,EAAE,CAAC,MAAM,EAAE,4BAA4B,KAAK,SAAS,CAAC;IAC3E;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAmDD;;;GAGG;AACH,eAAO,MAAM,aAAa;0CArDyB,kBAAkB;;;;CAuDnE,CAAC"}
@@ -2,7 +2,7 @@ import { HeadlessComponentProps } from "./utils";
2
2
  export declare const APTOS_PRIVACY_POLICY_URL = "https://aptoslabs.com/privacy";
3
3
  /**
4
4
  * A headless component for rendering the Aptos Labs privacy policy disclaimer
5
- * that should be placed under the Aptos Connect login options.
5
+ * that should be placed under the Petra Web login options.
6
6
  */
7
7
  export declare const AptosPrivacyPolicy: import("react").ForwardRefExoticComponent<HeadlessComponentProps & import("react").RefAttributes<HTMLDivElement>> & {
8
8
  Disclaimer: import("react").ForwardRefExoticComponent<HeadlessComponentProps & import("react").RefAttributes<HTMLSpanElement>>;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "@aptos-labs/wallet-adapter-core";
2
2
  export * from "./WalletProvider";
3
3
  export * from "./components/AboutAptosConnect";
4
+ export * from "./components/AboutPetraWeb";
4
5
  export * from "./components/AptosPrivacyPolicy";
5
6
  export * from "./components/WalletItem";
6
7
  export * from "./useWallet";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC"}
package/dist/index.js CHANGED
@@ -72,9 +72,10 @@ var index_exports = {};
72
72
  __export(index_exports, {
73
73
  APTOS_PRIVACY_POLICY_URL: () => APTOS_PRIVACY_POLICY_URL,
74
74
  AboutAptosConnect: () => AboutAptosConnect,
75
+ AboutPetraWeb: () => AboutPetraWeb,
75
76
  AptosPrivacyPolicy: () => AptosPrivacyPolicy,
76
77
  AptosWalletAdapterProvider: () => AptosWalletAdapterProvider,
77
- EXPLORE_ECOSYSTEM_URL: () => EXPLORE_ECOSYSTEM_URL,
78
+ EXPLORE_ECOSYSTEM_URL: () => EXPLORE_ECOSYSTEM_URL2,
78
79
  WalletContext: () => WalletContext,
79
80
  WalletItem: () => WalletItem,
80
81
  useWallet: () => useWallet
@@ -563,7 +564,7 @@ function createHeadlessComponent(displayName, elementType, props) {
563
564
 
564
565
  // src/components/AboutAptosConnect.tsx
565
566
  var import_jsx_runtime6 = require("react/jsx-runtime");
566
- var EXPLORE_ECOSYSTEM_URL = "https://aptosfoundation.org/ecosystem/projects/all";
567
+ var EXPLORE_ECOSYSTEM_URL = "https://aptosnetwork.com/ecosystem/directory/category/defi";
567
568
  var AboutAptosConnectContext = (0, import_react7.createContext)(null);
568
569
  function useAboutAptosConnectContext(displayName) {
569
570
  const context = (0, import_react7.useContext)(AboutAptosConnectContext);
@@ -581,7 +582,7 @@ var educationScreens = [
581
582
  children: "A better way to login."
582
583
  }),
583
584
  Description: createHeadlessComponent("EducationScreen.Description", "p", {
584
- children: "Aptos Connect is a web3 wallet that uses a Social Login to create accounts on the Aptos blockchain."
585
+ children: "Petra Web is a web3 wallet that uses a Social Login to create accounts on the Aptos blockchain."
585
586
  })
586
587
  },
587
588
  {
@@ -600,7 +601,7 @@ var educationScreens = [
600
601
  }),
601
602
  Description: createHeadlessComponent("EducationScreen.Description", "p", {
602
603
  children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
603
- "Aptos Connect lets you take one account across any application built on Aptos.",
604
+ "Petra Web lets you take one account across any application built on Aptos.",
604
605
  " ",
605
606
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
606
607
  "a",
@@ -674,14 +675,126 @@ var AboutAptosConnect = Object.assign(Root, {
674
675
  Trigger
675
676
  });
676
677
 
678
+ // src/components/AboutPetraWeb.tsx
679
+ var import_react8 = require("react");
680
+ var import_jsx_runtime7 = require("react/jsx-runtime");
681
+ var EXPLORE_ECOSYSTEM_URL2 = "https://aptosnetwork.com/ecosystem/directory/category/defi";
682
+ var AboutPetraWebContext = (0, import_react8.createContext)(null);
683
+ function useAboutPetraWebContext(displayName) {
684
+ const context = (0, import_react8.useContext)(AboutPetraWebContext);
685
+ if (!context) {
686
+ throw new Error(`\`${displayName}\` must be used within \`AboutPetraWeb\``);
687
+ }
688
+ return context;
689
+ }
690
+ var educationScreens2 = [
691
+ {
692
+ Graphic: LinkGraphic,
693
+ Title: createHeadlessComponent("EducationScreen.Title", "h3", {
694
+ children: "A better way to login."
695
+ }),
696
+ Description: createHeadlessComponent("EducationScreen.Description", "p", {
697
+ children: "Petra Web is a web3 wallet that uses a Social Login to create accounts on the Aptos blockchain."
698
+ })
699
+ },
700
+ {
701
+ Graphic: WalletGraphic,
702
+ Title: createHeadlessComponent("EducationScreen.Title", "h2", {
703
+ children: "What is a wallet?"
704
+ }),
705
+ Description: createHeadlessComponent("EducationScreen.Description", "p", {
706
+ children: "Wallets are a secure way to send, receive, and interact with digital assets like cryptocurrencies & NFTs."
707
+ })
708
+ },
709
+ {
710
+ Graphic: Web3Graphic,
711
+ Title: createHeadlessComponent("EducationScreen.Title", "h2", {
712
+ children: "Explore more of web3."
713
+ }),
714
+ Description: createHeadlessComponent("EducationScreen.Description", "p", {
715
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
716
+ "Petra Web lets you take one account across any application built on Aptos.",
717
+ " ",
718
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
719
+ "a",
720
+ {
721
+ href: EXPLORE_ECOSYSTEM_URL2,
722
+ target: "_blank",
723
+ rel: "noopener noreferrer",
724
+ children: "Explore the ecosystem"
725
+ }
726
+ ),
727
+ "."
728
+ ] })
729
+ })
730
+ }
731
+ ];
732
+ var educationScreenIndicators2 = Array(educationScreens2.length).fill(null).map(
733
+ (_, index) => createHeadlessComponent(
734
+ "AboutPetraWeb.ScreenIndicator",
735
+ "button",
736
+ (displayName) => {
737
+ const context = useAboutPetraWebContext(displayName);
738
+ const isActive = context.screenIndex - 1 === index;
739
+ return {
740
+ "aria-label": `Go to screen ${index + 1}`,
741
+ "aria-current": isActive ? "step" : void 0,
742
+ "data-active": isActive || void 0,
743
+ onClick: () => {
744
+ context.setScreenIndex(index + 1);
745
+ }
746
+ };
747
+ }
748
+ )
749
+ );
750
+ var Root2 = ({ renderEducationScreen, children }) => {
751
+ const [screenIndex, setScreenIndex] = (0, import_react8.useState)(0);
752
+ const currentEducationScreen = (0, import_react8.useMemo)(
753
+ () => educationScreens2.map((screen, i) => __spreadProps(__spreadValues({}, screen), {
754
+ screenIndex: i,
755
+ totalScreens: educationScreens2.length,
756
+ screenIndicators: educationScreenIndicators2,
757
+ back: () => {
758
+ setScreenIndex(screenIndex - 1);
759
+ },
760
+ next: () => {
761
+ setScreenIndex(
762
+ screenIndex === educationScreens2.length ? 0 : screenIndex + 1
763
+ );
764
+ },
765
+ cancel: () => {
766
+ setScreenIndex(0);
767
+ }
768
+ }))[screenIndex - 1],
769
+ [screenIndex]
770
+ );
771
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(AboutPetraWebContext.Provider, { value: { screenIndex, setScreenIndex }, children: screenIndex === 0 ? children : renderEducationScreen(currentEducationScreen) });
772
+ };
773
+ Root2.displayName = "AboutPetraWeb";
774
+ var Trigger2 = createHeadlessComponent(
775
+ "AboutPetraWeb.Trigger",
776
+ "button",
777
+ (displayName) => {
778
+ const context = useAboutPetraWebContext(displayName);
779
+ return {
780
+ onClick: () => {
781
+ context.setScreenIndex(1);
782
+ }
783
+ };
784
+ }
785
+ );
786
+ var AboutPetraWeb = Object.assign(Root2, {
787
+ Trigger: Trigger2
788
+ });
789
+
677
790
  // src/components/AptosPrivacyPolicy.tsx
678
- var import_react9 = require("react");
791
+ var import_react10 = require("react");
679
792
 
680
793
  // src/graphics/SmallAptosLogo.tsx
681
- var import_react8 = require("react");
682
- var import_jsx_runtime7 = require("react/jsx-runtime");
683
- var SmallAptosLogo = (0, import_react8.forwardRef)((props, ref) => {
684
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
794
+ var import_react9 = require("react");
795
+ var import_jsx_runtime8 = require("react/jsx-runtime");
796
+ var SmallAptosLogo = (0, import_react9.forwardRef)((props, ref) => {
797
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
685
798
  "svg",
686
799
  __spreadProps(__spreadValues({
687
800
  ref,
@@ -690,7 +803,7 @@ var SmallAptosLogo = (0, import_react8.forwardRef)((props, ref) => {
690
803
  viewBox: "0 0 12 12",
691
804
  fill: "none"
692
805
  }, props), {
693
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
806
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
694
807
  "path",
695
808
  {
696
809
  fillRule: "evenodd",
@@ -705,9 +818,9 @@ var SmallAptosLogo = (0, import_react8.forwardRef)((props, ref) => {
705
818
  SmallAptosLogo.displayName = "SmallAptosLogo";
706
819
 
707
820
  // src/components/AptosPrivacyPolicy.tsx
708
- var import_jsx_runtime8 = require("react/jsx-runtime");
821
+ var import_jsx_runtime9 = require("react/jsx-runtime");
709
822
  var APTOS_PRIVACY_POLICY_URL = "https://aptoslabs.com/privacy";
710
- var Root2 = createHeadlessComponent("AptosPrivacyPolicy.Root", "div");
823
+ var Root3 = createHeadlessComponent("AptosPrivacyPolicy.Root", "div");
711
824
  var Disclaimer = createHeadlessComponent(
712
825
  "AptosPrivacyPolicy.Disclaimer",
713
826
  "span",
@@ -719,15 +832,15 @@ var Link = createHeadlessComponent("AptosPrivacyPolicy.Disclaimer", "a", {
719
832
  rel: "noopener noreferrer",
720
833
  children: "Privacy Policy"
721
834
  });
722
- var PoweredBy = (0, import_react9.forwardRef)(({ className }, ref) => {
723
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { ref, className, children: [
724
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "Powered by" }),
725
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SmallAptosLogo, {}),
726
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: "Aptos Labs" })
835
+ var PoweredBy = (0, import_react10.forwardRef)(({ className }, ref) => {
836
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { ref, className, children: [
837
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: "Powered by" }),
838
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SmallAptosLogo, {}),
839
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: "Aptos Labs" })
727
840
  ] });
728
841
  });
729
842
  PoweredBy.displayName = "AptosPrivacyPolicy.PoweredBy";
730
- var AptosPrivacyPolicy = Object.assign(Root2, {
843
+ var AptosPrivacyPolicy = Object.assign(Root3, {
731
844
  Disclaimer,
732
845
  Link,
733
846
  PoweredBy
@@ -736,20 +849,20 @@ var AptosPrivacyPolicy = Object.assign(Root2, {
736
849
  // src/components/WalletItem.tsx
737
850
  var import_wallet_adapter_core2 = require("@aptos-labs/wallet-adapter-core");
738
851
  var import_react_slot2 = require("@radix-ui/react-slot");
739
- var import_react10 = require("react");
740
- var import_jsx_runtime9 = require("react/jsx-runtime");
852
+ var import_react11 = require("react");
853
+ var import_jsx_runtime10 = require("react/jsx-runtime");
741
854
  function useWalletItemContext(displayName) {
742
- const context = (0, import_react10.useContext)(WalletItemContext);
855
+ const context = (0, import_react11.useContext)(WalletItemContext);
743
856
  if (!context) {
744
857
  throw new Error(`\`${displayName}\` must be used within \`WalletItem\``);
745
858
  }
746
859
  return context;
747
860
  }
748
- var WalletItemContext = (0, import_react10.createContext)(null);
749
- var Root3 = (0, import_react10.forwardRef)(
861
+ var WalletItemContext = (0, import_react11.createContext)(null);
862
+ var Root4 = (0, import_react11.forwardRef)(
750
863
  ({ wallet, onConnect, className, asChild, children }, ref) => {
751
864
  const { connect } = useWallet();
752
- const connectWallet = (0, import_react10.useCallback)(() => {
865
+ const connectWallet = (0, import_react11.useCallback)(() => {
753
866
  connect(wallet.name);
754
867
  onConnect == null ? void 0 : onConnect();
755
868
  }, [connect, wallet.name, onConnect]);
@@ -757,10 +870,10 @@ var Root3 = (0, import_react10.forwardRef)(
757
870
  const mobileSupport = "deeplinkProvider" in wallet && wallet.deeplinkProvider;
758
871
  if (!isWalletReady && (0, import_wallet_adapter_core2.isRedirectable)() && !mobileSupport) return null;
759
872
  const Component = asChild ? import_react_slot2.Slot : "div";
760
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(WalletItemContext.Provider, { value: { wallet, connectWallet }, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Component, { ref, className, children }) });
873
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(WalletItemContext.Provider, { value: { wallet, connectWallet }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Component, { ref, className, children }) });
761
874
  }
762
875
  );
763
- Root3.displayName = "WalletItem";
876
+ Root4.displayName = "WalletItem";
764
877
  var Icon = createHeadlessComponent(
765
878
  "WalletItem.Icon",
766
879
  "img",
@@ -806,7 +919,7 @@ var InstallLink = createHeadlessComponent(
806
919
  };
807
920
  }
808
921
  );
809
- var WalletItem = Object.assign(Root3, {
922
+ var WalletItem = Object.assign(Root4, {
810
923
  Icon,
811
924
  Name,
812
925
  ConnectButton,
@@ -816,6 +929,7 @@ var WalletItem = Object.assign(Root3, {
816
929
  0 && (module.exports = {
817
930
  APTOS_PRIVACY_POLICY_URL,
818
931
  AboutAptosConnect,
932
+ AboutPetraWeb,
819
933
  AptosPrivacyPolicy,
820
934
  AptosWalletAdapterProvider,
821
935
  EXPLORE_ECOSYSTEM_URL,