@directcryptopay/sdk 0.2.3 → 0.3.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.
Files changed (127) hide show
  1. package/README.md +51 -87
  2. package/dist/core/config.d.ts +9 -46
  3. package/dist/core/iframe.d.ts +16 -0
  4. package/dist/dcp-sdk.umd.js +1 -12811
  5. package/dist/dcp.d.ts +12 -5
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.js +219 -2
  8. package/dist/types.d.ts +26 -164
  9. package/package.json +3 -13
  10. package/dist/ExchangeController-CPMQq6Q-.js +0 -217
  11. package/dist/HelpersUtil-DfMFC7Bf.js +0 -120
  12. package/dist/NavigationUtil-kj9LEOOd.js +0 -8
  13. package/dist/PhArrowCircleDown-lsK25DCk.js +0 -73
  14. package/dist/PhArrowClockwise-NeKHZ1co.js +0 -73
  15. package/dist/PhArrowDown-C9AkNvLs.js +0 -73
  16. package/dist/PhArrowLeft-RNfIQP1X.js +0 -73
  17. package/dist/PhArrowRight-DM1tna0G.js +0 -73
  18. package/dist/PhArrowSquareOut-S5XYbAZj.js +0 -73
  19. package/dist/PhArrowUp-DmktzOWy.js +0 -73
  20. package/dist/PhArrowUpRight-BkNeW_5i.js +0 -73
  21. package/dist/PhArrowsClockwise-CQ4pG76b.js +0 -73
  22. package/dist/PhArrowsDownUp-H6gxaNM6.js +0 -73
  23. package/dist/PhArrowsLeftRight-DZSsfMR6.js +0 -73
  24. package/dist/PhBank-4_9QzqIB.js +0 -73
  25. package/dist/PhBrowser-B-JSznId.js +0 -73
  26. package/dist/PhCaretDown-vV5oHMNi.js +0 -73
  27. package/dist/PhCaretLeft-BLo6Y_f4.js +0 -73
  28. package/dist/PhCaretRight-CqQN4TT3.js +0 -73
  29. package/dist/PhCaretUp-Df7UCAHy.js +0 -73
  30. package/dist/PhCheck-gtpfK4ed.js +0 -73
  31. package/dist/PhCircleHalf-Uq7dwDYw.js +0 -73
  32. package/dist/PhClock-SDCW-NmF.js +0 -73
  33. package/dist/PhCompass-B7hgtdx-.js +0 -73
  34. package/dist/PhCopy-BcnhyXCy.js +0 -73
  35. package/dist/PhCreditCard-BJjByVgu.js +0 -73
  36. package/dist/PhCurrencyDollar-B7ZXqXBy.js +0 -73
  37. package/dist/PhDesktop-B3VKPuJx.js +0 -73
  38. package/dist/PhDeviceMobile-Bnd0TYEH.js +0 -73
  39. package/dist/PhDotsThree-yyMWyZ-R.js +0 -73
  40. package/dist/PhEnvelope-67uzHbI9.js +0 -73
  41. package/dist/PhFunnelSimple-B-DCsloI.js +0 -73
  42. package/dist/PhGlobe-TMm_6qGk.js +0 -73
  43. package/dist/PhIdentificationCard-CePPD2xc.js +0 -73
  44. package/dist/PhImage-gY96WtHR.js +0 -73
  45. package/dist/PhInfo-DRQM_ZDP.js +0 -73
  46. package/dist/PhLightbulb-B0TxPfZ1.js +0 -73
  47. package/dist/PhMagnifyingGlass-B8si5_6W.js +0 -73
  48. package/dist/PhPaperPlaneRight-DVu5PLYd.js +0 -73
  49. package/dist/PhPlus-BfTsQnUz.js +0 -73
  50. package/dist/PhPower-CxYUGOWn.js +0 -73
  51. package/dist/PhPuzzlePiece-CQ4wh0gV.js +0 -73
  52. package/dist/PhQrCode-BuJ97NYJ.js +0 -73
  53. package/dist/PhQuestion-kJoP8Mja.js +0 -73
  54. package/dist/PhQuestionMark-C46ZkFpu.js +0 -73
  55. package/dist/PhSealCheck-Eh8jVqSN.js +0 -73
  56. package/dist/PhSignOut-jk97OSVt.js +0 -73
  57. package/dist/PhSpinner-CiYOhwMg.js +0 -73
  58. package/dist/PhTrash-pxerMqzd.js +0 -73
  59. package/dist/PhUser-BMg0VV4A.js +0 -73
  60. package/dist/PhVault-DYQvx5A-.js +0 -73
  61. package/dist/PhWarning-NLC5Mj87.js +0 -73
  62. package/dist/PhWarningCircle-Ch2jU9fA.js +0 -73
  63. package/dist/PhX-Bx4wpwm3.js +0 -73
  64. package/dist/SwapController-Cti0Cyxa.js +0 -457
  65. package/dist/ccip-CKZd2XJ7.js +0 -150
  66. package/dist/core/api.d.ts +0 -39
  67. package/dist/core/logic.d.ts +0 -2
  68. package/dist/core/wallet.d.ts +0 -55
  69. package/dist/data-capture-7D5CL385.js +0 -490
  70. package/dist/email-AmK0INbZ.js +0 -344
  71. package/dist/embedded-wallet-Pn0I_XLn.js +0 -820
  72. package/dist/features-x8XNprEe.js +0 -274
  73. package/dist/hashTypedData-B50-z0AA.js +0 -197
  74. package/dist/if-defined-CdZSZ6UL.js +0 -10
  75. package/dist/index-4ewUtPPp.js +0 -7981
  76. package/dist/index-51l86yqx.js +0 -276
  77. package/dist/index-B6K56LF_.js +0 -85
  78. package/dist/index-BAmv9PxJ.js +0 -257
  79. package/dist/index-BEswjY9r.js +0 -117
  80. package/dist/index-BSKRq56S.js +0 -355
  81. package/dist/index-BaygXQxx.js +0 -172
  82. package/dist/index-BcPxaHr5.js +0 -118
  83. package/dist/index-Bjt7nGaJ.js +0 -199
  84. package/dist/index-BkTSyAJb.js +0 -21991
  85. package/dist/index-Bmnl7l2U.js +0 -555
  86. package/dist/index-BvPvouSq.js +0 -56
  87. package/dist/index-C-6iznUO.js +0 -174
  88. package/dist/index-C1QEJL-2.js +0 -572
  89. package/dist/index-C4M5s_AM.js +0 -228
  90. package/dist/index-CEqcN8QP.js +0 -1175
  91. package/dist/index-CM3YaYca.js +0 -8189
  92. package/dist/index-CclBLA5r.js +0 -517
  93. package/dist/index-ChTxJOiF.js +0 -46
  94. package/dist/index-CmAv0Tzr.js +0 -86
  95. package/dist/index-CmvoKY4x.js +0 -125
  96. package/dist/index-D7PmdQ9B.js +0 -1750
  97. package/dist/index-D7k2Pc4e.js +0 -1083
  98. package/dist/index-D7lmgqUR.js +0 -153
  99. package/dist/index-DG_-qYze.js +0 -107
  100. package/dist/index-DHot9Fdb.js +0 -218
  101. package/dist/index-DV2LrPtU.js +0 -123
  102. package/dist/index-DYBaJQ2W.js +0 -65
  103. package/dist/index-D_8VUmn1.js +0 -41543
  104. package/dist/index-D_gLn3rT.js +0 -100
  105. package/dist/index-DqcVUSC9.js +0 -62
  106. package/dist/index-I7VDqINw.js +0 -128
  107. package/dist/index-Oz72I9VP.js +0 -209
  108. package/dist/index-UclsHkJ0.js +0 -118
  109. package/dist/index-X8zir_1j.js +0 -110
  110. package/dist/index-XvlWKGCu.js +0 -1281
  111. package/dist/index-dO97xPlt.js +0 -171
  112. package/dist/index-uBeF6OAB.js +0 -387
  113. package/dist/index-zeA_RiCV.js +0 -159
  114. package/dist/localBatchGatewayRequest-BUZHGdjw.js +0 -91
  115. package/dist/onramp-CdnBuF0r.js +0 -855
  116. package/dist/parseSignature-CcyTNGr4.js +0 -3304
  117. package/dist/pay-with-exchange-CSM6WCOV.js +0 -525
  118. package/dist/property-Bd8U3_QP.js +0 -618
  119. package/dist/receive-DooMu4Dx.js +0 -232
  120. package/dist/ref-CpgjXAw7.js +0 -107
  121. package/dist/send-3T7CyYic.js +0 -1166
  122. package/dist/socials-Dt-iHL17.js +0 -620
  123. package/dist/swaps-CjA9Es42.js +0 -1760
  124. package/dist/transactions-nRm9DVzn.js +0 -37
  125. package/dist/ui/Modal.d.ts +0 -9
  126. package/dist/ui/index.d.ts +0 -6
  127. package/dist/w3m-modal-NV25AXhM.js +0 -1706
@@ -1,86 +0,0 @@
1
- import { c_ as d, cV as p, cX as m, cZ as r, cY as x } from "./index-D_8VUmn1.js";
2
- import { n as h, c as f } from "./index-CEqcN8QP.js";
3
- const g = d`
4
- :host {
5
- display: flex;
6
- }
7
-
8
- :host([data-size='sm']) > svg {
9
- width: 12px;
10
- height: 12px;
11
- }
12
-
13
- :host([data-size='md']) > svg {
14
- width: 16px;
15
- height: 16px;
16
- }
17
-
18
- :host([data-size='lg']) > svg {
19
- width: 24px;
20
- height: 24px;
21
- }
22
-
23
- :host([data-size='xl']) > svg {
24
- width: 32px;
25
- height: 32px;
26
- }
27
-
28
- svg {
29
- animation: rotate 1.4s linear infinite;
30
- color: var(--local-color);
31
- }
32
-
33
- :host([data-size='md']) > svg > circle {
34
- stroke-width: 6px;
35
- }
36
-
37
- :host([data-size='sm']) > svg > circle {
38
- stroke-width: 8px;
39
- }
40
-
41
- @keyframes rotate {
42
- 100% {
43
- transform: rotate(360deg);
44
- }
45
- }
46
- `;
47
- var l = function(s, t, o, C) {
48
- var n = arguments.length, e = n < 3 ? t : C === null ? C = Object.getOwnPropertyDescriptor(t, o) : C, a;
49
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(s, t, o, C);
50
- else for (var c = s.length - 1; c >= 0; c--) (a = s[c]) && (e = (n < 3 ? a(e) : n > 3 ? a(t, o, e) : a(t, o)) || e);
51
- return n > 3 && e && Object.defineProperty(t, o, e), e;
52
- };
53
- let i = class extends m {
54
- constructor() {
55
- super(...arguments), this.color = "primary", this.size = "lg";
56
- }
57
- render() {
58
- const t = {
59
- primary: r.tokens.theme.textPrimary,
60
- secondary: r.tokens.theme.textSecondary,
61
- tertiary: r.tokens.theme.textTertiary,
62
- invert: r.tokens.theme.textInvert,
63
- error: r.tokens.core.textError,
64
- warning: r.tokens.core.textWarning,
65
- "accent-primary": r.tokens.core.textAccentPrimary
66
- };
67
- return this.style.cssText = `
68
- --local-color: ${this.color === "inherit" ? "inherit" : t[this.color]};
69
- `, this.dataset.size = this.size, x`<svg viewBox="0 0 16 17" fill="none">
70
- <path
71
- d="M8.75 2.65625V4.65625C8.75 4.85516 8.67098 5.04593 8.53033 5.18658C8.38968 5.32723 8.19891 5.40625 8 5.40625C7.80109 5.40625 7.61032 5.32723 7.46967 5.18658C7.32902 5.04593 7.25 4.85516 7.25 4.65625V2.65625C7.25 2.45734 7.32902 2.26657 7.46967 2.12592C7.61032 1.98527 7.80109 1.90625 8 1.90625C8.19891 1.90625 8.38968 1.98527 8.53033 2.12592C8.67098 2.26657 8.75 2.45734 8.75 2.65625ZM14 7.90625H12C11.8011 7.90625 11.6103 7.98527 11.4697 8.12592C11.329 8.26657 11.25 8.45734 11.25 8.65625C11.25 8.85516 11.329 9.04593 11.4697 9.18658C11.6103 9.32723 11.8011 9.40625 12 9.40625H14C14.1989 9.40625 14.3897 9.32723 14.5303 9.18658C14.671 9.04593 14.75 8.85516 14.75 8.65625C14.75 8.45734 14.671 8.26657 14.5303 8.12592C14.3897 7.98527 14.1989 7.90625 14 7.90625ZM11.3588 10.9544C11.289 10.8846 11.2062 10.8293 11.115 10.7915C11.0239 10.7538 10.9262 10.7343 10.8275 10.7343C10.7288 10.7343 10.6311 10.7538 10.54 10.7915C10.4488 10.8293 10.366 10.8846 10.2963 10.9544C10.2265 11.0241 10.1711 11.107 10.1334 11.1981C10.0956 11.2893 10.0762 11.387 10.0762 11.4856C10.0762 11.5843 10.0956 11.682 10.1334 11.7731C10.1711 11.8643 10.2265 11.9471 10.2963 12.0169L11.7106 13.4312C11.8515 13.5721 12.0426 13.6513 12.2419 13.6513C12.4411 13.6513 12.6322 13.5721 12.7731 13.4312C12.914 13.2904 12.9932 13.0993 12.9932 12.9C12.9932 12.7007 12.914 12.5096 12.7731 12.3687L11.3588 10.9544ZM8 11.9062C7.80109 11.9062 7.61032 11.9853 7.46967 12.1259C7.32902 12.2666 7.25 12.4573 7.25 12.6562V14.6562C7.25 14.8552 7.32902 15.0459 7.46967 15.1866C7.61032 15.3272 7.80109 15.4062 8 15.4062C8.19891 15.4062 8.38968 15.3272 8.53033 15.1866C8.67098 15.0459 8.75 14.8552 8.75 14.6562V12.6562C8.75 12.4573 8.67098 12.2666 8.53033 12.1259C8.38968 11.9853 8.19891 11.9062 8 11.9062ZM4.64125 10.9544L3.22688 12.3687C3.08598 12.5096 3.00682 12.7007 3.00682 12.9C3.00682 13.0993 3.08598 13.2904 3.22688 13.4312C3.36777 13.5721 3.55887 13.6513 3.75813 13.6513C3.95738 13.6513 4.14848 13.5721 4.28937 13.4312L5.70375 12.0169C5.84465 11.876 5.9238 11.6849 5.9238 11.4856C5.9238 11.2864 5.84465 11.0953 5.70375 10.9544C5.56285 10.8135 5.37176 10.7343 5.1725 10.7343C4.97324 10.7343 4.78215 10.8135 4.64125 10.9544ZM4.75 8.65625C4.75 8.45734 4.67098 8.26657 4.53033 8.12592C4.38968 7.98527 4.19891 7.90625 4 7.90625H2C1.80109 7.90625 1.61032 7.98527 1.46967 8.12592C1.32902 8.26657 1.25 8.45734 1.25 8.65625C1.25 8.85516 1.32902 9.04593 1.46967 9.18658C1.61032 9.32723 1.80109 9.40625 2 9.40625H4C4.19891 9.40625 4.38968 9.32723 4.53033 9.18658C4.67098 9.04593 4.75 8.85516 4.75 8.65625ZM4.2875 3.88313C4.1466 3.74223 3.95551 3.66307 3.75625 3.66307C3.55699 3.66307 3.3659 3.74223 3.225 3.88313C3.0841 4.02402 3.00495 4.21512 3.00495 4.41438C3.00495 4.61363 3.0841 4.80473 3.225 4.94562L4.64125 6.35813C4.78215 6.49902 4.97324 6.57818 5.1725 6.57818C5.37176 6.57818 5.56285 6.49902 5.70375 6.35813C5.84465 6.21723 5.9238 6.02613 5.9238 5.82688C5.9238 5.62762 5.84465 5.43652 5.70375 5.29563L4.2875 3.88313Z"
72
- fill="currentColor"
73
- />
74
- </svg>`;
75
- }
76
- };
77
- i.styles = [p, g];
78
- l([
79
- h()
80
- ], i.prototype, "color", void 0);
81
- l([
82
- h()
83
- ], i.prototype, "size", void 0);
84
- i = l([
85
- f("wui-loading-spinner")
86
- ], i);
@@ -1,125 +0,0 @@
1
- import { dp as d, cU as g, cV as u, cX as m, cY as p } from "./index-D_8VUmn1.js";
2
- import { n as s, c as v } from "./index-CEqcN8QP.js";
3
- import "./index-I7VDqINw.js";
4
- const w = d`<svg width="86" height="96" fill="none">
5
- <path
6
- d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z"
7
- />
8
- </svg>`, f = d`<svg viewBox="0 0 48 54" fill="none">
9
- <path
10
- d="M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z"
11
- />
12
- </svg>`, k = d`
13
- <svg fill="none" viewBox="0 0 36 40">
14
- <path
15
- d="M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.61 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z"
16
- />
17
- </svg>
18
- `, y = g`
19
- :host {
20
- position: relative;
21
- border-radius: inherit;
22
- display: flex;
23
- justify-content: center;
24
- align-items: center;
25
- width: var(--local-width);
26
- height: var(--local-height);
27
- }
28
-
29
- :host([data-round='true']) {
30
- background: ${({ tokens: e }) => e.theme.foregroundPrimary};
31
- border-radius: 100%;
32
- outline: 1px solid ${({ tokens: e }) => e.core.glass010};
33
- }
34
-
35
- svg {
36
- position: absolute;
37
- top: 0;
38
- left: 0;
39
- width: 100%;
40
- height: 100%;
41
- z-index: 1;
42
- }
43
-
44
- svg > path {
45
- stroke: var(--local-stroke);
46
- }
47
-
48
- wui-image {
49
- width: 100%;
50
- height: 100%;
51
- -webkit-clip-path: var(--local-path);
52
- clip-path: var(--local-path);
53
- background: ${({ tokens: e }) => e.theme.foregroundPrimary};
54
- }
55
-
56
- wui-icon {
57
- transform: translateY(-5%);
58
- width: var(--local-icon-size);
59
- height: var(--local-icon-size);
60
- }
61
- `;
62
- var a = function(e, i, r, n) {
63
- var l = arguments.length, o = l < 3 ? i : n === null ? n = Object.getOwnPropertyDescriptor(i, r) : n, c;
64
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, i, r, n);
65
- else for (var h = e.length - 1; h >= 0; h--) (c = e[h]) && (o = (l < 3 ? c(o) : l > 3 ? c(i, r, o) : c(i, r)) || o);
66
- return l > 3 && o && Object.defineProperty(i, r, o), o;
67
- };
68
- let t = class extends m {
69
- constructor() {
70
- super(...arguments), this.size = "md", this.name = "uknown", this.networkImagesBySize = {
71
- sm: k,
72
- md: f,
73
- lg: w
74
- }, this.selected = !1, this.round = !1;
75
- }
76
- render() {
77
- const i = {
78
- sm: "4",
79
- md: "6",
80
- lg: "10"
81
- };
82
- return this.round ? (this.dataset.round = "true", this.style.cssText = `
83
- --local-width: var(--apkt-spacing-10);
84
- --local-height: var(--apkt-spacing-10);
85
- --local-icon-size: var(--apkt-spacing-4);
86
- `) : this.style.cssText = `
87
-
88
- --local-path: var(--apkt-path-network-${this.size});
89
- --local-width: var(--apkt-width-network-${this.size});
90
- --local-height: var(--apkt-height-network-${this.size});
91
- --local-icon-size: var(--apkt-spacing-${i[this.size]});
92
- `, p`${this.templateVisual()} ${this.svgTemplate()} `;
93
- }
94
- svgTemplate() {
95
- return this.round ? null : this.networkImagesBySize[this.size];
96
- }
97
- templateVisual() {
98
- return this.imageSrc ? p`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>` : p`<wui-icon size="inherit" color="default" name="networkPlaceholder"></wui-icon>`;
99
- }
100
- };
101
- t.styles = [u, y];
102
- a([
103
- s()
104
- ], t.prototype, "size", void 0);
105
- a([
106
- s()
107
- ], t.prototype, "name", void 0);
108
- a([
109
- s({ type: Object })
110
- ], t.prototype, "networkImagesBySize", void 0);
111
- a([
112
- s()
113
- ], t.prototype, "imageSrc", void 0);
114
- a([
115
- s({ type: Boolean })
116
- ], t.prototype, "selected", void 0);
117
- a([
118
- s({ type: Boolean })
119
- ], t.prototype, "round", void 0);
120
- t = a([
121
- v("wui-network-image")
122
- ], t);
123
- export {
124
- f as n
125
- };