@aurum-sdk/core 0.2.2-canary.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/widgets.js CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkK6PG2PDFjs = require('./chunk-K6PG2PDF.js');
14
+ var _chunkFRA6K6V4js = require('./chunk-FRA6K6V4.js');
15
15
 
16
16
  // src/components/widgets/ConnectWidget.tsx
17
17
  var _react = require('react');
@@ -23,20 +23,20 @@ var noop = () => {
23
23
  };
24
24
  var WidgetShell = ({ brandConfig, children }) => {
25
25
  const headerPortalRef = _react.useRef.call(void 0, null);
26
- const { currentPage } = _chunkK6PG2PDFjs.useNavigation.call(void 0, );
27
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6PG2PDFjs.WidgetProvider, { mode: "widget", brandConfig, onDismiss: noop, headerPortalRef, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "widget-provider", children: [
26
+ const { currentPage } = _chunkFRA6K6V4js.useNavigation.call(void 0, );
27
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRA6K6V4js.WidgetProvider, { mode: "widget", brandConfig, onDismiss: noop, headerPortalRef, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "widget-provider", children: [
28
28
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: headerPortalRef }),
29
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6PG2PDFjs.PageTransitionContainer, { transitionKey: currentPage, children }),
29
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRA6K6V4js.PageTransitionContainer, { transitionKey: currentPage, children }),
30
30
  !brandConfig.hideFooter ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
31
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6PG2PDFjs.Spacer, { size: `${_chunkK6PG2PDFjs.POWERED_BY_SPACER_REM}rem` }),
32
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6PG2PDFjs.PoweredBy, {})
33
- ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6PG2PDFjs.Spacer, { size: "0.3125rem" })
31
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRA6K6V4js.Spacer, { size: `${_chunkFRA6K6V4js.POWERED_BY_SPACER_REM}rem` }),
32
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRA6K6V4js.PoweredBy, {})
33
+ ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRA6K6V4js.Spacer, { size: "0.3125rem" })
34
34
  ] }) });
35
35
  };
36
36
  var WidgetStyleContainer = ({ children, brandConfig }) => {
37
37
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "aurum-widget", style: { width: "100%" }, children: [
38
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "style", { children: _chunkK6PG2PDFjs.generateCompleteStyles.call(void 0, brandConfig) }),
39
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6PG2PDFjs.ThemeContainer, { theme: brandConfig.theme, children })
38
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "style", { children: _chunkFRA6K6V4js.generateCompleteStyles.call(void 0, brandConfig) }),
39
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRA6K6V4js.ThemeContainer, { theme: brandConfig.theme, children })
40
40
  ] });
41
41
  };
42
42
 
@@ -48,7 +48,7 @@ var ConnectWidget = ({ aurum, onConnect }) => {
48
48
  const excludedWalletIds = aurum.excludedWalletIds;
49
49
  const displayedWallets = _react.useMemo.call(void 0, () => {
50
50
  const filtered = walletAdapters.filter((w) => !excludedWalletIds.has(w.id));
51
- return _chunkK6PG2PDFjs.sortWallets.call(void 0, filtered, { filterHidden: false });
51
+ return _chunkFRA6K6V4js.sortWallets.call(void 0, filtered, { filterHidden: false });
52
52
  }, [walletAdapters, excludedWalletIds]);
53
53
  const handleConnect = _react.useCallback.call(void 0,
54
54
  async (result) => {
@@ -57,11 +57,11 @@ var ConnectWidget = ({ aurum, onConnect }) => {
57
57
  },
58
58
  [aurum, onConnect]
59
59
  );
60
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WidgetStyleContainer, { brandConfig, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6PG2PDFjs.ConnectUIProviders, { onConnect: handleConnect, displayedWallets, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WidgetShell, { brandConfig, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK6PG2PDFjs.ConnectPages, {}) }) }) });
60
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WidgetStyleContainer, { brandConfig, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRA6K6V4js.ConnectUIProviders, { onConnect: handleConnect, displayedWallets, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WidgetShell, { brandConfig, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFRA6K6V4js.ConnectPages, {}) }) }) });
61
61
  };
62
62
 
63
63
 
64
64
 
65
65
 
66
- exports.ConnectWidget = ConnectWidget; exports.WidgetProvider = _chunkK6PG2PDFjs.WidgetProvider; exports.useWidgetContext = _chunkK6PG2PDFjs.useWidgetContext;
66
+ exports.ConnectWidget = ConnectWidget; exports.WidgetProvider = _chunkFRA6K6V4js.WidgetProvider; exports.useWidgetContext = _chunkFRA6K6V4js.useWidgetContext;
67
67
  //# sourceMappingURL=widgets.js.map
package/dist/widgets.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  sortWallets,
12
12
  useNavigation,
13
13
  useWidgetContext
14
- } from "./chunk-THE7QLMS.mjs";
14
+ } from "./chunk-DPFIEHZ6.mjs";
15
15
 
16
16
  // src/components/widgets/ConnectWidget.tsx
17
17
  import { useMemo, useCallback } from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurum-sdk/core",
3
- "version": "0.2.2-canary.0",
3
+ "version": "0.2.2",
4
4
  "description": "Aurum wallet connection SDK",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -40,7 +40,7 @@
40
40
  "react": ">=18.0.0",
41
41
  "react-dom": ">=18.0.0",
42
42
  "viem": ">=2.0.0",
43
- "wagmi": ">=3.0.0"
43
+ "wagmi": ">=2.0.0"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "viem": {
@@ -60,7 +60,7 @@
60
60
  "react-dom": "^19.2.2",
61
61
  "tsup": "^8.0.0",
62
62
  "typescript": "^5.0.0",
63
- "viem": "^2.42.1",
63
+ "viem": "^2.44.2",
64
64
  "vite": "^6.0.0",
65
65
  "vitest": "^2.1.0",
66
66
  "wagmi": "^3.1.0"
@@ -85,19 +85,18 @@
85
85
  "@coinbase/wallet-sdk": "^4.3.7",
86
86
  "@gemini-wallet/core": "^0.3.2",
87
87
  "@metamask/sdk": "~0.33.1",
88
- "@react-native-async-storage/async-storage": "^1.24.0",
89
- "@reown/appkit": "^1.8.15",
90
- "@reown/appkit-adapter-wagmi": "^1.8.15",
88
+ "@react-native-async-storage/async-storage": "^2.0.0",
89
+ "@reown/appkit": "^1.8.17",
90
+ "@reown/appkit-adapter-wagmi": "^1.8.17",
91
91
  "@sentry/browser": "^10.29.0",
92
92
  "buffer": "^6.0.3",
93
93
  "lucide-react": "^0.460.0",
94
94
  "mobile-detect": "^1.4.5",
95
95
  "porto": "^0.2.37",
96
96
  "react-qrcode-logo": "^3.0.0",
97
- "x402-fetch": "^0.7.0",
98
97
  "zustand": "^5.0.9",
99
- "@aurum-sdk/logos": "^0.2.2-canary.0",
100
- "@aurum-sdk/types": "^0.2.2-canary.0"
98
+ "@aurum-sdk/logos": "^0.2.2",
99
+ "@aurum-sdk/types": "^0.2.2"
101
100
  },
102
101
  "scripts": {
103
102
  "build": "tsup",