@phantom/react-sdk 1.0.0 → 1.0.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/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -318,7 +318,8 @@ function ConnectModalContent({
|
|
|
318
318
|
const isConnectingState = baseConnect.isConnecting || isConnecting;
|
|
319
319
|
const errorState = baseConnect.error ? baseConnect.error.message : error;
|
|
320
320
|
const showDivider = !(allowedProviders.length === 1 && allowedProviders.includes("injected"));
|
|
321
|
-
const
|
|
321
|
+
const isInjectedOnly = allowedProviders.length === 1 && allowedProviders.includes("injected");
|
|
322
|
+
const shouldShowOtherWalletsButton = !isInjectedOnly && discoveredWallets.length > 2;
|
|
322
323
|
const walletsToShowInline = shouldShowOtherWalletsButton ? [] : discoveredWallets;
|
|
323
324
|
const connectWithAuthProvider = (0, import_react5.useCallback)(
|
|
324
325
|
async (provider, walletId) => {
|
|
@@ -587,7 +588,7 @@ function ConnectModalContent({
|
|
|
587
588
|
] })
|
|
588
589
|
}
|
|
589
590
|
),
|
|
590
|
-
allowedProviders.includes("injected") && (isExtensionInstalled.isInstalled || discoveredWallets.length > 0) &&
|
|
591
|
+
allowedProviders.includes("injected") && (isExtensionInstalled.isInstalled || discoveredWallets.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
|
591
592
|
showDivider && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { style: dividerStyle, children: [
|
|
592
593
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: dividerLineStyle }),
|
|
593
594
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { style: dividerTextStyle, children: "OR" }),
|
package/dist/index.mjs
CHANGED
|
@@ -269,7 +269,8 @@ function ConnectModalContent({
|
|
|
269
269
|
const isConnectingState = baseConnect.isConnecting || isConnecting;
|
|
270
270
|
const errorState = baseConnect.error ? baseConnect.error.message : error;
|
|
271
271
|
const showDivider = !(allowedProviders.length === 1 && allowedProviders.includes("injected"));
|
|
272
|
-
const
|
|
272
|
+
const isInjectedOnly = allowedProviders.length === 1 && allowedProviders.includes("injected");
|
|
273
|
+
const shouldShowOtherWalletsButton = !isInjectedOnly && discoveredWallets.length > 2;
|
|
273
274
|
const walletsToShowInline = shouldShowOtherWalletsButton ? [] : discoveredWallets;
|
|
274
275
|
const connectWithAuthProvider = useCallback3(
|
|
275
276
|
async (provider, walletId) => {
|
|
@@ -538,7 +539,7 @@ function ConnectModalContent({
|
|
|
538
539
|
] })
|
|
539
540
|
}
|
|
540
541
|
),
|
|
541
|
-
allowedProviders.includes("injected") && (isExtensionInstalled.isInstalled || discoveredWallets.length > 0) &&
|
|
542
|
+
allowedProviders.includes("injected") && (isExtensionInstalled.isInstalled || discoveredWallets.length > 0) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
542
543
|
showDivider && /* @__PURE__ */ jsxs("div", { style: dividerStyle, children: [
|
|
543
544
|
/* @__PURE__ */ jsx2("div", { style: dividerLineStyle }),
|
|
544
545
|
/* @__PURE__ */ jsx2("span", { style: dividerTextStyle, children: "OR" }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phantom/react-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/phantom/phantom-connect-sdk",
|
|
@@ -31,31 +31,31 @@
|
|
|
31
31
|
"prettier": "prettier --write \"src/**/*.{ts,tsx}\""
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@phantom/browser-sdk": "^1.0.
|
|
35
|
-
"@phantom/chain-interfaces": "^1.0.
|
|
36
|
-
"@phantom/constants": "^1.0.
|
|
37
|
-
"@phantom/wallet-sdk-ui": "^1.0.
|
|
34
|
+
"@phantom/browser-sdk": "^1.0.2",
|
|
35
|
+
"@phantom/chain-interfaces": "^1.0.2",
|
|
36
|
+
"@phantom/constants": "^1.0.2",
|
|
37
|
+
"@phantom/wallet-sdk-ui": "^1.0.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@testing-library/dom": "^10.4.0",
|
|
41
41
|
"@testing-library/jest-dom": "^6.9.1",
|
|
42
42
|
"@testing-library/react": "^16.3.0",
|
|
43
43
|
"@types/jest": "^29.5.14",
|
|
44
|
-
"@types/react": "^19.1
|
|
45
|
-
"@types/react-dom": "^19.1
|
|
44
|
+
"@types/react": "^19.0.1",
|
|
45
|
+
"@types/react-dom": "^19.0.1",
|
|
46
46
|
"eslint": "8.53.0",
|
|
47
47
|
"jest": "^29.7.0",
|
|
48
48
|
"jest-environment-jsdom": "^29.7.0",
|
|
49
49
|
"prettier": "^3.5.2",
|
|
50
|
-
"react": "19.0.
|
|
51
|
-
"react-dom": "19.0.
|
|
50
|
+
"react": "19.0.1",
|
|
51
|
+
"react-dom": "19.0.1",
|
|
52
52
|
"rimraf": "^6.0.1",
|
|
53
53
|
"ts-jest": "^29",
|
|
54
54
|
"tsup": "^6.7.0",
|
|
55
55
|
"typescript": "^5.0.4"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"react": ">=19.0.
|
|
58
|
+
"react": ">=19.0.1"
|
|
59
59
|
},
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"directory": "_release/package"
|