@stokr/components-library 0.8.7 → 0.8.8
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/api/StokrWeb3.js +1 -1
- package/dist/components/Checklist/UserChecklist.js +12 -13
- package/dist/components/CryptoAddress/CryptoAddress.js +3 -1
- package/dist/components/Header/Header.js +6 -6
- package/dist/components/MainMenu/MainMenu.js +18 -18
- package/dist/components/RegisterAlgorand/AlgoAdressSelect.js +1 -1
- package/package.json +1 -1
package/dist/api/StokrWeb3.js
CHANGED
|
@@ -112,7 +112,7 @@ var makeOptInTx = /*#__PURE__*/function () {
|
|
|
112
112
|
while (1) switch (_context3.prev = _context3.next) {
|
|
113
113
|
case 0:
|
|
114
114
|
_context3.next = 2;
|
|
115
|
-
return (0, _fetchData.default)('
|
|
115
|
+
return (0, _fetchData.default)('wallet/createOptinTx', {
|
|
116
116
|
account: address,
|
|
117
117
|
assetId: Number(assetId)
|
|
118
118
|
});
|
|
@@ -129,6 +129,12 @@ var UserChecklist = function UserChecklist(props) {
|
|
|
129
129
|
message: liquidWallets.length > 0 ? 'Your address is registered' : 'Register a Liquid address where you will receive the securities',
|
|
130
130
|
state: liquidWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
131
131
|
link: "".concat(platformURL, "/register-liquid-securities")
|
|
132
|
+
}, {
|
|
133
|
+
title: 'Algorand Address',
|
|
134
|
+
message: algoWallets.length > 0 ? 'Opt-in into more assets' : 'Register an Algorand address and opt-in into a project you want to invest in ',
|
|
135
|
+
state: algoWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
136
|
+
//: '',
|
|
137
|
+
openModal: _ToDoList.ToDoModal.ALGO
|
|
132
138
|
}, {
|
|
133
139
|
title: 'Ethereum Address',
|
|
134
140
|
message: ethWallets.length > 0 ? 'Your address is registered' : 'Register an Ethereum address where you will receive the securities',
|
|
@@ -136,12 +142,6 @@ var UserChecklist = function UserChecklist(props) {
|
|
|
136
142
|
//link: '', //`${platformURL}/register-ethereum`,
|
|
137
143
|
disabled: true,
|
|
138
144
|
tooltip: 'Connecting your ethereum wallet is currently disabled until we have a new offer using the ethereum network.'
|
|
139
|
-
}, {
|
|
140
|
-
title: 'Algorand Address',
|
|
141
|
-
message: algoWallets.length > 0 ? 'Opt-in into more assets' : 'Register an Algorand address and opt-in into a project you want to invest in ',
|
|
142
|
-
state: algoWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
143
|
-
//: '',
|
|
144
|
-
openModal: _ToDoList.ToDoModal.ALGO
|
|
145
145
|
}]);
|
|
146
146
|
setoptionalTasks([{
|
|
147
147
|
title: 'Tax ID',
|
|
@@ -172,20 +172,19 @@ var UserChecklist = function UserChecklist(props) {
|
|
|
172
172
|
message: !isFromAllowedCountry ? 'Sorry, you are living in a country where this is not available' : liquidWallets.length > 0 ? 'Your address is registered' : 'Register a Liquid address where you will receive the securities',
|
|
173
173
|
state: !isFromAllowedCountry ? _ToDoList.ToDoTaskState.NOT_AVAILABLE : liquidWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
174
174
|
link: isFromAllowedCountry && "".concat(platformURL, "/register-liquid-securities")
|
|
175
|
-
}, {
|
|
176
|
-
title: 'Ethereum Address',
|
|
177
|
-
message: !isFromAllowedCountry ? 'Sorry, you are living in a country where this is not available' : ethWallets.length > 0 ? 'Your address is registered' : 'Register an Ethereum address where you will receive the securities',
|
|
178
|
-
state: !isFromAllowedCountry ? _ToDoList.ToDoTaskState.NOT_AVAILABLE : ethWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
179
|
-
disabled: true,
|
|
180
|
-
tooltip: 'Connecting your ethereum wallet is currently disabled until we have a new offer using the ethereum network.'
|
|
181
175
|
}, {
|
|
182
176
|
title: 'Algorand Address',
|
|
183
177
|
message: algoWallets.length > 0 ? 'Opt-in into more assets' : 'Register an Algorand address and opt-in into a project you want to invest in ',
|
|
184
178
|
state: algoWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
185
179
|
openModal: _ToDoList.ToDoModal.ALGO
|
|
186
180
|
//link: '',
|
|
181
|
+
}, {
|
|
182
|
+
title: 'Ethereum Address',
|
|
183
|
+
message: !isFromAllowedCountry ? 'Sorry, you are living in a country where this is not available' : ethWallets.length > 0 ? 'Your address is registered' : 'Register an Ethereum address where you will receive the securities',
|
|
184
|
+
state: !isFromAllowedCountry ? _ToDoList.ToDoTaskState.NOT_AVAILABLE : ethWallets.length > 0 ? _ToDoList.ToDoTaskState.APPROVED : _ToDoList.ToDoTaskState.SKIPPED,
|
|
185
|
+
disabled: true,
|
|
186
|
+
tooltip: 'Connecting your ethereum wallet is currently disabled until we have a new offer using the ethereum network.'
|
|
187
187
|
}]);
|
|
188
|
-
|
|
189
188
|
setoptionalTasks([(countryObj === null || countryObj === void 0 ? void 0 : countryObj.SEPA) && {
|
|
190
189
|
title: 'Invest in Euro',
|
|
191
190
|
message: getInvestInEuroChecklist(isFromAllowedCountry, user).message,
|
|
@@ -76,7 +76,9 @@ var CryptoAddress = function CryptoAddress(_ref) {
|
|
|
76
76
|
}
|
|
77
77
|
}))), /*#__PURE__*/_react.default.createElement(_CryptoAddress.Body, {
|
|
78
78
|
noBody: noBody
|
|
79
|
-
}, /*#__PURE__*/_react.default.createElement(_CryptoAddress.DataBox, null, data.value && /*#__PURE__*/_react.default.createElement(_CryptoAddress.Value,
|
|
79
|
+
}, /*#__PURE__*/_react.default.createElement(_CryptoAddress.DataBox, null, data.value && /*#__PURE__*/_react.default.createElement(_CryptoAddress.Value, {
|
|
80
|
+
fontSize: fontSize
|
|
81
|
+
}, data.unit && "".concat(data.unit, " "), data.value, data.tooltip && /*#__PURE__*/_react.default.createElement("div", null, copyToClipBoard(data.value, copiedAddressToClipboard, setCopiedAddressToClipboard))), data.eqValue && /*#__PURE__*/_react.default.createElement(_CryptoAddress.Equal, null, '= ', data.eqUnit && "".concat(data.eqUnit, " "), data.eqValue)), /*#__PURE__*/_react.default.createElement(_CryptoAddress.InfoBox, null, /*#__PURE__*/_react.default.createElement(_CryptoAddress.Value, null, info.unit && /*#__PURE__*/_react.default.createElement("strong", null, info.unit), info.value), info.eqValue && /*#__PURE__*/_react.default.createElement(_CryptoAddress.Equal, null, info.noEqualsToSign ? ' ' : '= ', info.eqUnit && /*#__PURE__*/_react.default.createElement("strong", null, info.eqUnit), info.eqValue))), sideOptions && /*#__PURE__*/_react.default.createElement(_CryptoAddress.OptionsWrapper, null, sideOptions)))));
|
|
80
82
|
};
|
|
81
83
|
exports.CryptoAddress = CryptoAddress;
|
|
82
84
|
var copyToClipBoard = function copyToClipBoard(value, isCopied, setCopy) {
|
|
@@ -343,21 +343,21 @@ var Header = function Header(_ref3) {
|
|
|
343
343
|
return toggleMenu('main');
|
|
344
344
|
}
|
|
345
345
|
}, "Profile and Privacy")), /*#__PURE__*/_react.default.createElement(_Header.MobileMenuItem, null, /*#__PURE__*/_react.default.createElement("a", {
|
|
346
|
-
href: "".concat(newPlatformUrlForUserMenu, "/settings/
|
|
346
|
+
href: "".concat(newPlatformUrlForUserMenu, "/settings/liquid-address"),
|
|
347
347
|
onClick: function onClick() {
|
|
348
348
|
return toggleMenu('main');
|
|
349
349
|
}
|
|
350
|
-
}, "
|
|
351
|
-
href: "".concat(newPlatformUrlForUserMenu, "/settings/
|
|
350
|
+
}, "Liquid Address")), /*#__PURE__*/_react.default.createElement(_Header.MobileMenuItem, null, /*#__PURE__*/_react.default.createElement("a", {
|
|
351
|
+
href: "".concat(newPlatformUrlForUserMenu, "/settings/algorand-address"),
|
|
352
352
|
onClick: function onClick() {
|
|
353
353
|
return toggleMenu('main');
|
|
354
354
|
}
|
|
355
|
-
}, "
|
|
356
|
-
href: "".concat(newPlatformUrlForUserMenu, "/settings/
|
|
355
|
+
}, "Algorand Addresses")), /*#__PURE__*/_react.default.createElement(_Header.MobileMenuItem, null, /*#__PURE__*/_react.default.createElement("a", {
|
|
356
|
+
href: "".concat(newPlatformUrlForUserMenu, "/settings/ethereum-address"),
|
|
357
357
|
onClick: function onClick() {
|
|
358
358
|
return toggleMenu('main');
|
|
359
359
|
}
|
|
360
|
-
}, "
|
|
360
|
+
}, "Ethereum Addresses")))))), /*#__PURE__*/_react.default.createElement(_Header.MobileMenuPart, {
|
|
361
361
|
withPadding: true,
|
|
362
362
|
flexColumnt: true,
|
|
363
363
|
noPaddingTop: !signupFlow,
|
|
@@ -181,27 +181,27 @@ var MainMenu = /*#__PURE__*/function (_PureComponent) {
|
|
|
181
181
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
182
182
|
style: spanStyleForMenu
|
|
183
183
|
}, "Profile & Privacy")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
184
|
-
isActive: this.checkActive('ethereum-address'),
|
|
185
|
-
onClick: function onClick() {
|
|
186
|
-
window.location.replace("".concat(platformUrlForUserMenu, "/settings/ethereum-address"));
|
|
187
|
-
}
|
|
188
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
189
|
-
style: spanStyleForMenu
|
|
190
|
-
}, "Ethereum Addresses")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
191
184
|
isActive: this.checkActive('liquid-address'),
|
|
192
185
|
onClick: function onClick() {
|
|
193
186
|
window.location.replace("".concat(platformUrlForUserMenu, "/settings/liquid-address"));
|
|
194
187
|
}
|
|
195
188
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
196
189
|
style: spanStyleForMenu
|
|
197
|
-
}, "Liquid
|
|
190
|
+
}, "Liquid Address")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
198
191
|
isActive: this.checkActive('algorand-address'),
|
|
199
192
|
onClick: function onClick() {
|
|
200
193
|
window.location.replace("".concat(platformUrlForUserMenu, "/settings/algorand-address"));
|
|
201
194
|
}
|
|
202
195
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
203
196
|
style: spanStyleForMenu
|
|
204
|
-
}, "Algorand Addresses"))
|
|
197
|
+
}, "Algorand Addresses")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
198
|
+
isActive: this.checkActive('ethereum-address'),
|
|
199
|
+
onClick: function onClick() {
|
|
200
|
+
window.location.replace("".concat(platformUrlForUserMenu, "/settings/ethereum-address"));
|
|
201
|
+
}
|
|
202
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
203
|
+
style: spanStyleForMenu
|
|
204
|
+
}, "Ethereum Addresses")))))), !isAdmin && /*#__PURE__*/_react.default.createElement(_reactCollapse.Collapse, {
|
|
205
205
|
isOpened: isScrollDown,
|
|
206
206
|
hasNestedCollapse: true
|
|
207
207
|
}, /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOptions, null, /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
@@ -213,14 +213,6 @@ var MainMenu = /*#__PURE__*/function (_PureComponent) {
|
|
|
213
213
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
214
214
|
style: spanStyleForMenu
|
|
215
215
|
}, "Profile & Privacy")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
216
|
-
scrollDown: true,
|
|
217
|
-
isActive: this.checkActive('ethereum-address'),
|
|
218
|
-
onClick: function onClick() {
|
|
219
|
-
window.location.replace("".concat(platformUrlForUserMenu, "/settings/ethereum-address"));
|
|
220
|
-
}
|
|
221
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
222
|
-
style: spanStyleForMenu
|
|
223
|
-
}, "Ethereum Addresses")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
224
216
|
scrollDown: true,
|
|
225
217
|
isActive: this.checkActive('liquid-address'),
|
|
226
218
|
onClick: function onClick() {
|
|
@@ -228,7 +220,7 @@ var MainMenu = /*#__PURE__*/function (_PureComponent) {
|
|
|
228
220
|
}
|
|
229
221
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
230
222
|
style: spanStyleForMenu
|
|
231
|
-
}, "Liquid
|
|
223
|
+
}, "Liquid Address")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
232
224
|
scrollDown: true,
|
|
233
225
|
isActive: this.checkActive('algorand-address'),
|
|
234
226
|
onClick: function onClick() {
|
|
@@ -237,6 +229,14 @@ var MainMenu = /*#__PURE__*/function (_PureComponent) {
|
|
|
237
229
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
238
230
|
style: spanStyleForMenu
|
|
239
231
|
}, "Algorand Addresses")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
232
|
+
scrollDown: true,
|
|
233
|
+
isActive: this.checkActive('ethereum-address'),
|
|
234
|
+
onClick: function onClick() {
|
|
235
|
+
window.location.replace("".concat(platformUrlForUserMenu, "/settings/ethereum-address"));
|
|
236
|
+
}
|
|
237
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
238
|
+
style: spanStyleForMenu
|
|
239
|
+
}, "Ethereum Addresses")), /*#__PURE__*/_react.default.createElement(_MainMenu.SettingsOption, {
|
|
240
240
|
scrollDown: true,
|
|
241
241
|
onClick: function onClick() {
|
|
242
242
|
_this2.setScrollUp();
|
|
@@ -134,7 +134,7 @@ var AlgoAdressSelect = function AlgoAdressSelect(props) {
|
|
|
134
134
|
data = null;
|
|
135
135
|
_context2.prev = 3;
|
|
136
136
|
_context2.next = 6;
|
|
137
|
-
return (0, _fetchData.default)('
|
|
137
|
+
return (0, _fetchData.default)('wallet/algoBalances', {
|
|
138
138
|
accounts: addressArr
|
|
139
139
|
});
|
|
140
140
|
case 6:
|