@directcryptopay/sdk 0.2.4 → 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-CbO41bcH.js +0 -217
  11. package/dist/HelpersUtil-DHm6EVSE.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-Ch0FFTEt.js +0 -457
  65. package/dist/ccip-BrGhNXIM.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-CpafmuCb.js +0 -490
  70. package/dist/email-Dcg4jlai.js +0 -344
  71. package/dist/embedded-wallet-DeoRdAPw.js +0 -820
  72. package/dist/features-B9Nde43h.js +0 -274
  73. package/dist/hashTypedData-a7b8tdkO.js +0 -197
  74. package/dist/if-defined-k21LutCn.js +0 -10
  75. package/dist/index-9vLw53Xl.js +0 -228
  76. package/dist/index-B5wUyynz.js +0 -107
  77. package/dist/index-B8LkUrww.js +0 -86
  78. package/dist/index-BA0VwKg0.js +0 -8189
  79. package/dist/index-BB9JJ24N.js +0 -125
  80. package/dist/index-BCkEvPQ6.js +0 -172
  81. package/dist/index-BDeO_csr.js +0 -171
  82. package/dist/index-Bb7babLF.js +0 -1281
  83. package/dist/index-BjOhprVS.js +0 -199
  84. package/dist/index-BjyMgZsf.js +0 -218
  85. package/dist/index-BkThIDLX.js +0 -159
  86. package/dist/index-BmFs6nb7.js +0 -209
  87. package/dist/index-C1QEJL-2.js +0 -572
  88. package/dist/index-C4qc4PdD.js +0 -387
  89. package/dist/index-CAPvUh14.js +0 -1750
  90. package/dist/index-CBMU3PTE.js +0 -65
  91. package/dist/index-CGwPkJLF.js +0 -355
  92. package/dist/index-CNGEqX3D.js +0 -153
  93. package/dist/index-CRlCq6IB.js +0 -7981
  94. package/dist/index-Cg_o-i9X.js +0 -118
  95. package/dist/index-D1BvhCbI.js +0 -62
  96. package/dist/index-DFi8TiHc.js +0 -128
  97. package/dist/index-DLwuveL9.js +0 -555
  98. package/dist/index-DMn7ktUQ.js +0 -56
  99. package/dist/index-DOXwtuwa.js +0 -117
  100. package/dist/index-DPPOW_Tp.js +0 -118
  101. package/dist/index-DQpzHpW-.js +0 -517
  102. package/dist/index-DXHg5C-W.js +0 -276
  103. package/dist/index-DcYjZV4H.js +0 -110
  104. package/dist/index-DeL88Lwc.js +0 -41655
  105. package/dist/index-DrWVlf8b.js +0 -46
  106. package/dist/index-Dsfuc4rB.js +0 -123
  107. package/dist/index-DuTny38n.js +0 -1175
  108. package/dist/index-Nfjb6bV0.js +0 -21991
  109. package/dist/index-WwwdQSN2.js +0 -85
  110. package/dist/index-Yha9Afch.js +0 -174
  111. package/dist/index-cbQHN7GC.js +0 -100
  112. package/dist/index-hyG3cYsv.js +0 -1083
  113. package/dist/index-qLxmmPaL.js +0 -257
  114. package/dist/localBatchGatewayRequest-vfcvRH0G.js +0 -91
  115. package/dist/onramp-BSiyOX4L.js +0 -855
  116. package/dist/parseSignature-CdCMAPZN.js +0 -3304
  117. package/dist/pay-with-exchange-CduNoMEz.js +0 -525
  118. package/dist/property-Bd8U3_QP.js +0 -618
  119. package/dist/receive-CrmptJlq.js +0 -232
  120. package/dist/ref-SOwYtCZb.js +0 -107
  121. package/dist/send-oMcHMEr6.js +0 -1166
  122. package/dist/socials-C0A4-FbY.js +0 -620
  123. package/dist/swaps-CbJJ9Ciu.js +0 -1760
  124. package/dist/transactions-BDfCoBS5.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-BjsTkny7.js +0 -1706
@@ -1,117 +0,0 @@
1
- import { cU as l, cV as b, cW as p, cX as h, cY as v } from "./index-DeL88Lwc.js";
2
- import { n as r, c as f } from "./index-DuTny38n.js";
3
- const m = l`
4
- button {
5
- background-color: transparent;
6
- padding: ${({ spacing: t }) => t[1]};
7
- }
8
-
9
- button:focus-visible {
10
- box-shadow: 0 0 0 4px ${({ tokens: t }) => t.core.foregroundAccent020};
11
- }
12
-
13
- button[data-variant='accent']:hover:enabled,
14
- button[data-variant='accent']:focus-visible {
15
- background-color: ${({ tokens: t }) => t.core.foregroundAccent010};
16
- }
17
-
18
- button[data-variant='primary']:hover:enabled,
19
- button[data-variant='primary']:focus-visible,
20
- button[data-variant='secondary']:hover:enabled,
21
- button[data-variant='secondary']:focus-visible {
22
- background-color: ${({ tokens: t }) => t.theme.foregroundSecondary};
23
- }
24
-
25
- button[data-size='xs'] > wui-icon {
26
- width: 8px;
27
- height: 8px;
28
- }
29
-
30
- button[data-size='sm'] > wui-icon {
31
- width: 12px;
32
- height: 12px;
33
- }
34
-
35
- button[data-size='xs'],
36
- button[data-size='sm'] {
37
- border-radius: ${({ borderRadius: t }) => t[1]};
38
- }
39
-
40
- button[data-size='md'],
41
- button[data-size='lg'] {
42
- border-radius: ${({ borderRadius: t }) => t[2]};
43
- }
44
-
45
- button[data-size='md'] > wui-icon {
46
- width: 16px;
47
- height: 16px;
48
- }
49
-
50
- button[data-size='lg'] > wui-icon {
51
- width: 20px;
52
- height: 20px;
53
- }
54
-
55
- button:disabled {
56
- background-color: transparent;
57
- cursor: not-allowed;
58
- opacity: 0.5;
59
- }
60
-
61
- button:hover:not(:disabled) {
62
- background-color: var(--wui-color-accent-glass-015);
63
- }
64
-
65
- button:focus-visible:not(:disabled) {
66
- background-color: var(--wui-color-accent-glass-015);
67
- box-shadow:
68
- inset 0 0 0 1px var(--wui-color-accent-100),
69
- 0 0 0 4px var(--wui-color-accent-glass-020);
70
- }
71
- `;
72
- var i = function(t, o, n, c) {
73
- var s = arguments.length, e = s < 3 ? o : c === null ? c = Object.getOwnPropertyDescriptor(o, n) : c, d;
74
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") e = Reflect.decorate(t, o, n, c);
75
- else for (var u = t.length - 1; u >= 0; u--) (d = t[u]) && (e = (s < 3 ? d(e) : s > 3 ? d(o, n, e) : d(o, n)) || e);
76
- return s > 3 && e && Object.defineProperty(o, n, e), e;
77
- };
78
- let a = class extends h {
79
- constructor() {
80
- super(...arguments), this.size = "md", this.disabled = !1, this.icon = "copy", this.iconColor = "default", this.variant = "accent";
81
- }
82
- render() {
83
- const o = {
84
- accent: "accent-primary",
85
- primary: "inverse",
86
- secondary: "default"
87
- };
88
- return v`
89
- <button data-variant=${this.variant} ?disabled=${this.disabled} data-size=${this.size}>
90
- <wui-icon
91
- color=${o[this.variant] || this.iconColor}
92
- size=${this.size}
93
- name=${this.icon}
94
- ></wui-icon>
95
- </button>
96
- `;
97
- }
98
- };
99
- a.styles = [b, p, m];
100
- i([
101
- r()
102
- ], a.prototype, "size", void 0);
103
- i([
104
- r({ type: Boolean })
105
- ], a.prototype, "disabled", void 0);
106
- i([
107
- r()
108
- ], a.prototype, "icon", void 0);
109
- i([
110
- r()
111
- ], a.prototype, "iconColor", void 0);
112
- i([
113
- r()
114
- ], a.prototype, "variant", void 0);
115
- a = i([
116
- f("wui-icon-link")
117
- ], a);
@@ -1,118 +0,0 @@
1
- import { cU as h, cV as m, cW as f, cX as g, cY as a } from "./index-DeL88Lwc.js";
2
- import { n as i, c as b } from "./index-DuTny38n.js";
3
- import { o as p } from "./if-defined-k21LutCn.js";
4
- import "./index-B8LkUrww.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);