@aptos-labs/wallet-adapter-mui-design 2.7.0 → 2.8.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @aptos-labs/wallet-adapter-mui-design
2
2
 
3
+ ## 2.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6bec234: Added privacy policy disclaimer below Aptos Connect login options.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [6bec234]
12
+ - @aptos-labs/wallet-adapter-react@3.4.0
13
+
14
+ ## 2.7.1
15
+
16
+ ### Patch Changes
17
+
18
+ - @aptos-labs/wallet-adapter-react@3.3.1
19
+
3
20
  ## 2.7.0
4
21
 
5
22
  ### Minor Changes
package/dist/index.js CHANGED
@@ -308,6 +308,43 @@ function WalletsModal({
308
308
  onConnect: handleClose
309
309
  }, wallet.name))
310
310
  }),
311
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material3.Stack, {
312
+ component: import_wallet_adapter_react3.AptosPrivacyPolicy,
313
+ alignItems: "center",
314
+ children: [
315
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material3.Typography, {
316
+ component: "p",
317
+ fontSize: "12px",
318
+ lineHeight: "20px",
319
+ children: [
320
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_wallet_adapter_react3.AptosPrivacyPolicy.Disclaimer, {}),
321
+ " ",
322
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material3.Box, {
323
+ component: import_wallet_adapter_react3.AptosPrivacyPolicy.Link,
324
+ sx: {
325
+ color: grey[400],
326
+ textDecoration: "underline",
327
+ textUnderlineOffset: "4px"
328
+ }
329
+ }),
330
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
331
+ children: "."
332
+ })
333
+ ]
334
+ }),
335
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material3.Box, {
336
+ component: import_wallet_adapter_react3.AptosPrivacyPolicy.PoweredBy,
337
+ sx: {
338
+ display: "flex",
339
+ alignItems: "center",
340
+ gap: 0.75,
341
+ fontSize: "12px",
342
+ lineHeight: "20px",
343
+ color: grey[400]
344
+ }
345
+ })
346
+ ]
347
+ }),
311
348
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material3.Divider, {
312
349
  sx: { color: grey[400], pt: 2 },
313
350
  children: "Or"
package/dist/index.mjs CHANGED
@@ -158,6 +158,7 @@ function WalletButton({
158
158
 
159
159
  // src/WalletModel.tsx
160
160
  import {
161
+ AptosPrivacyPolicy,
161
162
  WalletItem,
162
163
  getAptosConnectWallets,
163
164
  isInstallRequired,
@@ -311,6 +312,43 @@ function WalletsModal({
311
312
  onConnect: handleClose
312
313
  }, wallet.name))
313
314
  }),
315
+ /* @__PURE__ */ jsxs3(Stack, {
316
+ component: AptosPrivacyPolicy,
317
+ alignItems: "center",
318
+ children: [
319
+ /* @__PURE__ */ jsxs3(Typography2, {
320
+ component: "p",
321
+ fontSize: "12px",
322
+ lineHeight: "20px",
323
+ children: [
324
+ /* @__PURE__ */ jsx3(AptosPrivacyPolicy.Disclaimer, {}),
325
+ " ",
326
+ /* @__PURE__ */ jsx3(Box, {
327
+ component: AptosPrivacyPolicy.Link,
328
+ sx: {
329
+ color: grey[400],
330
+ textDecoration: "underline",
331
+ textUnderlineOffset: "4px"
332
+ }
333
+ }),
334
+ /* @__PURE__ */ jsx3("span", {
335
+ children: "."
336
+ })
337
+ ]
338
+ }),
339
+ /* @__PURE__ */ jsx3(Box, {
340
+ component: AptosPrivacyPolicy.PoweredBy,
341
+ sx: {
342
+ display: "flex",
343
+ alignItems: "center",
344
+ gap: 0.75,
345
+ fontSize: "12px",
346
+ lineHeight: "20px",
347
+ color: grey[400]
348
+ }
349
+ })
350
+ ]
351
+ }),
314
352
  /* @__PURE__ */ jsx3(Divider, {
315
353
  sx: { color: grey[400], pt: 2 },
316
354
  children: "Or"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-labs/wallet-adapter-mui-design",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "description": "Aptos Wallet Adapter mui design",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -41,7 +41,7 @@
41
41
  "@emotion/styled": "^11.10.5",
42
42
  "@mui/icons-material": "^5.11.0",
43
43
  "@mui/material": "^5.11.6",
44
- "@aptos-labs/wallet-adapter-react": "3.3.0"
44
+ "@aptos-labs/wallet-adapter-react": "3.4.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "react": "^18",
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  AnyAptosWallet,
3
+ AptosPrivacyPolicy,
3
4
  WalletItem,
4
5
  getAptosConnectWallets,
5
6
  isInstallRequired,
@@ -159,6 +160,31 @@ export default function WalletsModal({
159
160
  />
160
161
  ))}
161
162
  </Stack>
163
+ <Stack component={AptosPrivacyPolicy} alignItems="center">
164
+ <Typography component="p" fontSize="12px" lineHeight="20px">
165
+ <AptosPrivacyPolicy.Disclaimer />{" "}
166
+ <Box
167
+ component={AptosPrivacyPolicy.Link}
168
+ sx={{
169
+ color: grey[400],
170
+ textDecoration: "underline",
171
+ textUnderlineOffset: "4px",
172
+ }}
173
+ />
174
+ <span>.</span>
175
+ </Typography>
176
+ <Box
177
+ component={AptosPrivacyPolicy.PoweredBy}
178
+ sx={{
179
+ display: "flex",
180
+ alignItems: "center",
181
+ gap: 0.75,
182
+ fontSize: "12px",
183
+ lineHeight: "20px",
184
+ color: grey[400],
185
+ }}
186
+ />
187
+ </Stack>
162
188
  <Divider sx={{ color: grey[400], pt: 2 }}>Or</Divider>
163
189
  </>
164
190
  )}