@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,118 +0,0 @@
1
- import { cU as h, cV as m, cW as f, cX as g, cY as a } from "./index-D_8VUmn1.js";
2
- import { n as i, c as b } from "./index-CEqcN8QP.js";
3
- import { o as p } from "./if-defined-CdZSZ6UL.js";
4
- import "./index-CmAv0Tzr.js";
5
- const y = h`
6
- :host {
7
- width: 100%;
8
- }
9
-
10
- button {
11
- display: flex;
12
- align-items: center;
13
- justify-content: space-between;
14
- padding: ${({ spacing: e }) => e[3]};
15
- width: 100%;
16
- background-color: ${({ tokens: e }) => e.theme.backgroundPrimary};
17
- border-radius: ${({ borderRadius: e }) => e[4]};
18
- transition:
19
- background-color ${({ durations: e }) => e.lg}
20
- ${({ easings: e }) => e["ease-out-power-2"]},
21
- scale ${({ durations: e }) => e.lg} ${({ easings: e }) => e["ease-out-power-2"]};
22
- will-change: background-color, scale;
23
- }
24
-
25
- wui-text {
26
- text-transform: capitalize;
27
- }
28
-
29
- wui-image {
30
- color: ${({ tokens: e }) => e.theme.textPrimary};
31
- }
32
-
33
- @media (hover: hover) {
34
- button:hover:enabled {
35
- background-color: ${({ tokens: e }) => e.theme.foregroundPrimary};
36
- }
37
- }
38
-
39
- button:disabled {
40
- opacity: 0.5;
41
- cursor: not-allowed;
42
- }
43
- `;
44
- var o = function(e, n, l, s) {
45
- var d = arguments.length, r = d < 3 ? n : s === null ? s = Object.getOwnPropertyDescriptor(n, l) : s, u;
46
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") r = Reflect.decorate(e, n, l, s);
47
- else for (var c = e.length - 1; c >= 0; c--) (u = e[c]) && (r = (d < 3 ? u(r) : d > 3 ? u(n, l, r) : u(n, l)) || r);
48
- return d > 3 && r && Object.defineProperty(n, l, r), r;
49
- };
50
- let t = class extends g {
51
- constructor() {
52
- super(...arguments), this.imageSrc = "google", this.loading = !1, this.disabled = !1, this.rightIcon = !0, this.rounded = !1, this.fullSize = !1;
53
- }
54
- render() {
55
- return this.dataset.rounded = this.rounded ? "true" : "false", a`
56
- <button
57
- ?disabled=${this.loading ? !0 : !!this.disabled}
58
- data-loading=${this.loading}
59
- tabindex=${p(this.tabIdx)}
60
- >
61
- <wui-flex gap="2" alignItems="center">
62
- ${this.templateLeftIcon()}
63
- <wui-flex gap="1">
64
- <slot></slot>
65
- </wui-flex>
66
- </wui-flex>
67
- ${this.templateRightIcon()}
68
- </button>
69
- `;
70
- }
71
- templateLeftIcon() {
72
- return this.icon ? a`<wui-image
73
- icon=${this.icon}
74
- iconColor=${p(this.iconColor)}
75
- ?boxed=${!0}
76
- ?rounded=${this.rounded}
77
- ></wui-image>` : a`<wui-image
78
- ?boxed=${!0}
79
- ?rounded=${this.rounded}
80
- ?fullSize=${this.fullSize}
81
- src=${this.imageSrc}
82
- ></wui-image>`;
83
- }
84
- templateRightIcon() {
85
- return this.rightIcon ? this.loading ? a`<wui-loading-spinner size="md" color="accent-primary"></wui-loading-spinner>` : a`<wui-icon name="chevronRight" size="lg" color="default"></wui-icon>` : null;
86
- }
87
- };
88
- t.styles = [m, f, y];
89
- o([
90
- i()
91
- ], t.prototype, "imageSrc", void 0);
92
- o([
93
- i()
94
- ], t.prototype, "icon", void 0);
95
- o([
96
- i()
97
- ], t.prototype, "iconColor", void 0);
98
- o([
99
- i({ type: Boolean })
100
- ], t.prototype, "loading", void 0);
101
- o([
102
- i()
103
- ], t.prototype, "tabIdx", void 0);
104
- o([
105
- i({ type: Boolean })
106
- ], t.prototype, "disabled", void 0);
107
- o([
108
- i({ type: Boolean })
109
- ], t.prototype, "rightIcon", void 0);
110
- o([
111
- i({ type: Boolean })
112
- ], t.prototype, "rounded", void 0);
113
- o([
114
- i({ type: Boolean })
115
- ], t.prototype, "fullSize", void 0);
116
- t = o([
117
- b("wui-list-item")
118
- ], t);
@@ -1,199 +0,0 @@
1
- import { cU as u, cV as g, cW as m, cX as p, cY as n } from "./index-D_8VUmn1.js";
2
- import { n as r, c as x } from "./index-CEqcN8QP.js";
3
- import "./index-I7VDqINw.js";
4
- import "./index-DqcVUSC9.js";
5
- const b = u`
6
- button {
7
- display: block;
8
- display: flex;
9
- align-items: center;
10
- padding: ${({ spacing: e }) => e[1]};
11
- transition: background-color ${({ durations: e }) => e.lg}
12
- ${({ easings: e }) => e["ease-out-power-2"]};
13
- will-change: background-color;
14
- background-color: ${({ tokens: e }) => e.theme.foregroundPrimary};
15
- border-radius: ${({ borderRadius: e }) => e[32]};
16
- }
17
-
18
- wui-image {
19
- border-radius: ${({ borderRadius: e }) => e[32]};
20
- }
21
-
22
- wui-text {
23
- padding-left: ${({ spacing: e }) => e[1]};
24
- padding-right: ${({ spacing: e }) => e[1]};
25
- }
26
-
27
- .left-icon-container {
28
- width: 24px;
29
- height: 24px;
30
- justify-content: center;
31
- align-items: center;
32
- }
33
-
34
- .left-image-container {
35
- position: relative;
36
- justify-content: center;
37
- align-items: center;
38
- }
39
-
40
- .chain-image {
41
- position: absolute;
42
- border: 1px solid ${({ tokens: e }) => e.theme.foregroundPrimary};
43
- }
44
-
45
- /* -- Sizes --------------------------------------------------- */
46
- button[data-size='lg'] {
47
- height: 32px;
48
- }
49
-
50
- button[data-size='md'] {
51
- height: 28px;
52
- }
53
-
54
- button[data-size='sm'] {
55
- height: 24px;
56
- }
57
-
58
- button[data-size='lg'] .token-image {
59
- width: 24px;
60
- height: 24px;
61
- }
62
-
63
- button[data-size='md'] .token-image {
64
- width: 20px;
65
- height: 20px;
66
- }
67
-
68
- button[data-size='sm'] .token-image {
69
- width: 16px;
70
- height: 16px;
71
- }
72
-
73
- button[data-size='lg'] .left-icon-container {
74
- width: 24px;
75
- height: 24px;
76
- }
77
-
78
- button[data-size='md'] .left-icon-container {
79
- width: 20px;
80
- height: 20px;
81
- }
82
-
83
- button[data-size='sm'] .left-icon-container {
84
- width: 16px;
85
- height: 16px;
86
- }
87
-
88
- button[data-size='lg'] .chain-image {
89
- width: 12px;
90
- height: 12px;
91
- bottom: 2px;
92
- right: -4px;
93
- }
94
-
95
- button[data-size='md'] .chain-image {
96
- width: 10px;
97
- height: 10px;
98
- bottom: 2px;
99
- right: -4px;
100
- }
101
-
102
- button[data-size='sm'] .chain-image {
103
- width: 8px;
104
- height: 8px;
105
- bottom: 2px;
106
- right: -3px;
107
- }
108
-
109
- /* -- Focus states --------------------------------------------------- */
110
- button:focus-visible:enabled {
111
- background-color: ${({ tokens: e }) => e.theme.foregroundSecondary};
112
- box-shadow: 0 0 0 4px ${({ tokens: e }) => e.core.foregroundAccent040};
113
- }
114
-
115
- /* -- Hover & Active states ----------------------------------------------------------- */
116
- @media (hover: hover) {
117
- button:hover:enabled,
118
- button:active:enabled {
119
- background-color: ${({ tokens: e }) => e.theme.foregroundSecondary};
120
- }
121
- }
122
-
123
- /* -- Disabled states --------------------------------------------------- */
124
- button:disabled {
125
- background-color: ${({ tokens: e }) => e.theme.foregroundSecondary};
126
- opacity: 0.5;
127
- }
128
- `;
129
- var a = function(e, t, s, d) {
130
- var c = arguments.length, o = c < 3 ? t : d === null ? d = Object.getOwnPropertyDescriptor(t, s) : d, l;
131
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, s, d);
132
- else for (var h = e.length - 1; h >= 0; h--) (l = e[h]) && (o = (c < 3 ? l(o) : c > 3 ? l(t, s, o) : l(t, s)) || o);
133
- return c > 3 && o && Object.defineProperty(t, s, o), o;
134
- };
135
- const f = {
136
- lg: "lg-regular",
137
- md: "lg-regular",
138
- sm: "md-regular"
139
- }, w = {
140
- lg: "lg",
141
- md: "md",
142
- sm: "sm"
143
- };
144
- let i = class extends p {
145
- constructor() {
146
- super(...arguments), this.size = "md", this.disabled = !1, this.text = "", this.loading = !1;
147
- }
148
- render() {
149
- return this.loading ? n` <wui-flex alignItems="center" gap="01" padding="01">
150
- <wui-shimmer width="20px" height="20px"></wui-shimmer>
151
- <wui-shimmer width="32px" height="18px" borderRadius="4xs"></wui-shimmer>
152
- </wui-flex>` : n`
153
- <button ?disabled=${this.disabled} data-size=${this.size}>
154
- ${this.imageTemplate()} ${this.textTemplate()}
155
- </button>
156
- `;
157
- }
158
- imageTemplate() {
159
- if (this.imageSrc && this.chainImageSrc)
160
- return n`<wui-flex class="left-image-container">
161
- <wui-image src=${this.imageSrc} class="token-image"></wui-image>
162
- <wui-image src=${this.chainImageSrc} class="chain-image"></wui-image>
163
- </wui-flex>`;
164
- if (this.imageSrc)
165
- return n`<wui-image src=${this.imageSrc} class="token-image"></wui-image>`;
166
- const t = w[this.size];
167
- return n`<wui-flex class="left-icon-container">
168
- <wui-icon size=${t} name="networkPlaceholder"></wui-icon>
169
- </wui-flex>`;
170
- }
171
- textTemplate() {
172
- const t = f[this.size];
173
- return n`<wui-text color="primary" variant=${t}
174
- >${this.text}</wui-text
175
- >`;
176
- }
177
- };
178
- i.styles = [g, m, b];
179
- a([
180
- r()
181
- ], i.prototype, "size", void 0);
182
- a([
183
- r()
184
- ], i.prototype, "imageSrc", void 0);
185
- a([
186
- r()
187
- ], i.prototype, "chainImageSrc", void 0);
188
- a([
189
- r({ type: Boolean })
190
- ], i.prototype, "disabled", void 0);
191
- a([
192
- r()
193
- ], i.prototype, "text", void 0);
194
- a([
195
- r({ type: Boolean })
196
- ], i.prototype, "loading", void 0);
197
- i = a([
198
- x("wui-token-button")
199
- ], i);