@tonconnect/ui-react 0.0.13 → 0.0.14
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/lib/index.js +14 -6
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +14 -6
- package/lib/index.umd.js.map +1 -1
- package/package.json +2 -2
package/lib/index.umd.js
CHANGED
|
@@ -4056,7 +4056,7 @@ var __objRest = (source, exclude) => {
|
|
|
4056
4056
|
this.storage = storage;
|
|
4057
4057
|
this.walletConnectionSource = walletConnectionSource;
|
|
4058
4058
|
this.type = "http";
|
|
4059
|
-
this.standardUniversalLink = "
|
|
4059
|
+
this.standardUniversalLink = "tc://";
|
|
4060
4060
|
this.pendingRequests = /* @__PURE__ */ new Map();
|
|
4061
4061
|
this.nextRequestId = 0;
|
|
4062
4062
|
this.session = null;
|
|
@@ -6825,7 +6825,8 @@ var __objRest = (source, exclude) => {
|
|
|
6825
6825
|
primary: "#0F0F0F",
|
|
6826
6826
|
secondary: "#7A8999",
|
|
6827
6827
|
tertiary: "#C1CAD2",
|
|
6828
|
-
success: "#29CC6A"
|
|
6828
|
+
success: "#29CC6A",
|
|
6829
|
+
error: "#F5A73B"
|
|
6829
6830
|
},
|
|
6830
6831
|
background: {
|
|
6831
6832
|
primary: "#FFFFFF",
|
|
@@ -6850,7 +6851,8 @@ var __objRest = (source, exclude) => {
|
|
|
6850
6851
|
primary: "#E5E5EA",
|
|
6851
6852
|
secondary: "#909099",
|
|
6852
6853
|
tertiary: "#434347",
|
|
6853
|
-
success: "#29CC6A"
|
|
6854
|
+
success: "#29CC6A",
|
|
6855
|
+
error: "#F5A73B"
|
|
6854
6856
|
},
|
|
6855
6857
|
background: {
|
|
6856
6858
|
primary: "#121214",
|
|
@@ -7949,7 +7951,7 @@ var __objRest = (source, exclude) => {
|
|
|
7949
7951
|
const _tmpl$$a = /* @__PURE__ */ template$1(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="11"></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M7.86358 9.13637C7.51211 8.7849 7.51211 8.21505 7.86358 7.86358C8.21505 7.51211 8.7849 7.51211 9.13637 7.86358L12 10.7272L14.8636 7.86358C15.2151 7.51211 15.7849 7.51211 16.1364 7.86358C16.4878 8.21505 16.4878 8.7849 16.1364 9.13637L13.2728 12L16.1364 14.8636C16.4878 15.2151 16.4878 15.7849 16.1364 16.1364C15.7849 16.4878 15.2151 16.4878 14.8636 16.1364L12 13.2728L9.13637 16.1364C8.7849 16.4878 8.21505 16.4878 7.86358 16.1364C7.51211 15.7849 7.51211 15.2151 7.86358 14.8636L10.7272 12L7.86358 9.13637Z"></path></svg>`);
|
|
7950
7952
|
const ErrorIcon = (props) => {
|
|
7951
7953
|
const theme = useTheme();
|
|
7952
|
-
const fill = () => props.fill || theme.colors.icon.
|
|
7954
|
+
const fill = () => props.fill || theme.colors.icon.error;
|
|
7953
7955
|
return (() => {
|
|
7954
7956
|
const _el$ = _tmpl$$a.cloneNode(true), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
|
|
7955
7957
|
createRenderEffect((_p$) => {
|
|
@@ -8114,6 +8116,7 @@ var __objRest = (source, exclude) => {
|
|
|
8114
8116
|
setTimeout(() => setIsCopiedShown(false), 1e3);
|
|
8115
8117
|
});
|
|
8116
8118
|
const onDisconnect = () => {
|
|
8119
|
+
setAction(null);
|
|
8117
8120
|
connector.disconnect();
|
|
8118
8121
|
props.onClose();
|
|
8119
8122
|
};
|
|
@@ -8304,9 +8307,10 @@ var __objRest = (source, exclude) => {
|
|
|
8304
8307
|
`;
|
|
8305
8308
|
const _tmpl$$4 = /* @__PURE__ */ template$1(`<div></div>`);
|
|
8306
8309
|
const Notifications = (props) => {
|
|
8310
|
+
const timeouts = [];
|
|
8311
|
+
const [openedNotifications, setOpenedNotifications] = createSignal([]);
|
|
8307
8312
|
let lastId = -1;
|
|
8308
8313
|
const liveTimeoutMs = 4500;
|
|
8309
|
-
const [openedNotifications, setOpenedNotifications] = createSignal([]);
|
|
8310
8314
|
createEffect(on(action, (action2) => {
|
|
8311
8315
|
if (action2 && action2.showNotification) {
|
|
8312
8316
|
lastId++;
|
|
@@ -8315,9 +8319,12 @@ var __objRest = (source, exclude) => {
|
|
|
8315
8319
|
id,
|
|
8316
8320
|
action: action2.name
|
|
8317
8321
|
}));
|
|
8318
|
-
setTimeout(() => setOpenedNotifications((notifications2) => notifications2.filter((notification) => notification.id !== id)), liveTimeoutMs);
|
|
8322
|
+
timeouts.push(setTimeout(() => setOpenedNotifications((notifications2) => notifications2.filter((notification) => notification.id !== id)), liveTimeoutMs));
|
|
8319
8323
|
}
|
|
8320
8324
|
}));
|
|
8325
|
+
onCleanup(() => {
|
|
8326
|
+
timeouts.forEach(clearTimeout);
|
|
8327
|
+
});
|
|
8321
8328
|
return (() => {
|
|
8322
8329
|
const _el$ = _tmpl$$4.cloneNode(true);
|
|
8323
8330
|
insert(_el$, createComponent(TransitionGroup, {
|
|
@@ -12030,6 +12037,7 @@ var __objRest = (source, exclude) => {
|
|
|
12030
12037
|
});
|
|
12031
12038
|
}
|
|
12032
12039
|
disconnect() {
|
|
12040
|
+
widgetController.clearAction();
|
|
12033
12041
|
this.walletInfoStorage.removeWalletInfo();
|
|
12034
12042
|
return this.connector.disconnect();
|
|
12035
12043
|
}
|