@tonconnect/ui 2.0.10-beta.2 → 2.0.10-beta.3
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/tonconnect-ui.min.js +152 -153
- package/dist/tonconnect-ui.min.js.map +1 -1
- package/lib/index.cjs +70 -70
- package/lib/index.cjs.map +1 -1
- package/lib/index.mjs +70 -70
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -2066,12 +2066,12 @@ const walletModal$1 = {
|
|
|
2066
2066
|
loading: "Loading wallets",
|
|
2067
2067
|
wallets: "Wallets",
|
|
2068
2068
|
mobileUniversalModal: {
|
|
2069
|
-
connectYourWallet: "Connect your TON
|
|
2069
|
+
connectYourWallet: "Connect your TON\xA0wallet",
|
|
2070
2070
|
openWalletOnTelegramOrSelect: "Use Wallet in Telegram or choose other application",
|
|
2071
2071
|
openWalletOnTelegram: "Connect Wallet in Telegram",
|
|
2072
2072
|
chooseOtherApplication: "Choose other application",
|
|
2073
2073
|
openLink: "Open Link",
|
|
2074
|
-
scan: "Scan with your mobile
|
|
2074
|
+
scan: "Scan with your mobile\xA0wallet"
|
|
2075
2075
|
},
|
|
2076
2076
|
desktopUniversalModal: {
|
|
2077
2077
|
connectYourWallet: "Connect your TON wallet",
|
|
@@ -2123,7 +2123,7 @@ const en = {
|
|
|
2123
2123
|
const common = {
|
|
2124
2124
|
close: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C",
|
|
2125
2125
|
openWallet: "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u0448\u0435\u043B\u0451\u043A",
|
|
2126
|
-
copyLink: "\
|
|
2126
|
+
copyLink: "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
|
|
2127
2127
|
linkCopied: "\u0421\u0441\u044B\u043B\u043A\u0430 \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0430",
|
|
2128
2128
|
copied: "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E",
|
|
2129
2129
|
yourWallet: "\u0412\u0430\u0448 \u043A\u043E\u0448\u0435\u043B\u0451\u043A",
|
|
@@ -2164,7 +2164,7 @@ const walletModal = {
|
|
|
2164
2164
|
loading: "\u041A\u043E\u0448\u0435\u043B\u044C\u043A\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044E\u0442\u0441\u044F",
|
|
2165
2165
|
wallets: "\u041A\u043E\u0448\u0435\u043B\u044C\u043A\u0438",
|
|
2166
2166
|
mobileUniversalModal: {
|
|
2167
|
-
connectYourWallet: "\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u043A\u043E\u0448\u0435\u043B\u0451\u043A",
|
|
2167
|
+
connectYourWallet: "\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0435 TON\xA0\u043A\u043E\u0448\u0435\u043B\u0451\u043A",
|
|
2168
2168
|
openWalletOnTelegramOrSelect: "\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0435 Wallet \u0432\xA0Telegram \u0438\u043B\u0438\xA0\u0432\u044B\u0431\u0435\u0440\u0435\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435",
|
|
2169
2169
|
openWalletOnTelegram: "\u041E\u0442\u043A\u0440\u044B\u0442\u044C Wallet \u0432 Telegram",
|
|
2170
2170
|
chooseOtherApplication: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435",
|
|
@@ -5828,7 +5828,6 @@ const ImageContainer = styled.div`
|
|
|
5828
5828
|
left: 0;
|
|
5829
5829
|
right: 0;
|
|
5830
5830
|
border: 0.5px solid rgba(0, 0, 0, 0.08);
|
|
5831
|
-
|
|
5832
5831
|
border-radius: inherit;
|
|
5833
5832
|
}
|
|
5834
5833
|
`;
|
|
@@ -5843,11 +5842,11 @@ const WalletImage = (props) => {
|
|
|
5843
5842
|
return props.class;
|
|
5844
5843
|
},
|
|
5845
5844
|
get children() {
|
|
5846
|
-
return createComponent(ImageStyled$2, {
|
|
5845
|
+
return [createComponent(ImageStyled$2, {
|
|
5847
5846
|
get src() {
|
|
5848
5847
|
return props.src;
|
|
5849
5848
|
}
|
|
5850
|
-
});
|
|
5849
|
+
}), createMemo(() => props.badge)];
|
|
5851
5850
|
}
|
|
5852
5851
|
});
|
|
5853
5852
|
};
|
|
@@ -5861,13 +5860,41 @@ const badgeBorders = {
|
|
|
5861
5860
|
s: "6px",
|
|
5862
5861
|
none: "0"
|
|
5863
5862
|
};
|
|
5863
|
+
const WalletUlContainer = styled.ul`
|
|
5864
|
+
display: flex;
|
|
5865
|
+
gap: 0;
|
|
5866
|
+
width: 100%;
|
|
5867
|
+
overflow-x: auto;
|
|
5868
|
+
padding: 8px 12px 16px 12px;
|
|
5869
|
+
margin: 0;
|
|
5870
|
+
list-style: none;
|
|
5871
|
+
flex-wrap: nowrap;
|
|
5872
|
+
|
|
5873
|
+
&&::-webkit-scrollbar {
|
|
5874
|
+
display: none;
|
|
5875
|
+
}
|
|
5876
|
+
-ms-overflow-style: none;
|
|
5877
|
+
scrollbar-width: none;
|
|
5878
|
+
|
|
5879
|
+
> li {
|
|
5880
|
+
display: flex;
|
|
5881
|
+
flex: 1;
|
|
5882
|
+
min-width: 78px;
|
|
5883
|
+
height: fit-content;
|
|
5884
|
+
}
|
|
5885
|
+
|
|
5886
|
+
> li > button {
|
|
5887
|
+
width: 100%;
|
|
5888
|
+
}
|
|
5889
|
+
`;
|
|
5864
5890
|
const WalletItemStyled = styled.button`
|
|
5865
5891
|
position: relative;
|
|
5866
5892
|
cursor: pointer;
|
|
5867
5893
|
border: none;
|
|
5868
5894
|
background-color: unset;
|
|
5869
5895
|
padding: 8px 4px;
|
|
5870
|
-
width:
|
|
5896
|
+
width: 100%;
|
|
5897
|
+
min-width: 78px;
|
|
5871
5898
|
display: flex;
|
|
5872
5899
|
flex-direction: column;
|
|
5873
5900
|
align-items: center;
|
|
@@ -5884,11 +5911,6 @@ const WalletItemStyled = styled.button`
|
|
|
5884
5911
|
transform: scale(0.96);
|
|
5885
5912
|
}
|
|
5886
5913
|
|
|
5887
|
-
${media("mobile")} {
|
|
5888
|
-
padding: 8px 0;
|
|
5889
|
-
width: 78px;
|
|
5890
|
-
}
|
|
5891
|
-
|
|
5892
5914
|
${mediaTouch} {
|
|
5893
5915
|
&:active {
|
|
5894
5916
|
transform: scale(0.92);
|
|
@@ -5899,13 +5921,13 @@ const ImageStyled$1 = styled(WalletImage)`
|
|
|
5899
5921
|
width: 60px;
|
|
5900
5922
|
height: 60px;
|
|
5901
5923
|
border-radius: ${(props) => borders$3[props.theme.borderRadius]};
|
|
5902
|
-
|
|
5903
5924
|
margin-bottom: 8px;
|
|
5925
|
+
position: relative;
|
|
5904
5926
|
`;
|
|
5905
5927
|
const BadgeStyled = styled(Image)`
|
|
5906
5928
|
position: absolute;
|
|
5907
|
-
right:
|
|
5908
|
-
|
|
5929
|
+
right: -6px;
|
|
5930
|
+
bottom: -6px;
|
|
5909
5931
|
width: 24px;
|
|
5910
5932
|
height: 24px;
|
|
5911
5933
|
border-radius: ${(props) => badgeBorders[props.theme.borderRadius]};
|
|
@@ -5967,12 +5989,15 @@ const WalletItem = (props) => {
|
|
|
5967
5989
|
return [createMemo(() => createMemo(() => typeof props.icon === "string")() ? createComponent(ImageStyled$1, {
|
|
5968
5990
|
get src() {
|
|
5969
5991
|
return props.icon;
|
|
5992
|
+
},
|
|
5993
|
+
get badge() {
|
|
5994
|
+
return createMemo(() => !!props.badgeUrl)() && createComponent(BadgeStyled, {
|
|
5995
|
+
get src() {
|
|
5996
|
+
return props.badgeUrl;
|
|
5997
|
+
}
|
|
5998
|
+
});
|
|
5970
5999
|
}
|
|
5971
|
-
}) : props.icon),
|
|
5972
|
-
get src() {
|
|
5973
|
-
return props.badgeUrl;
|
|
5974
|
-
}
|
|
5975
|
-
})), (() => {
|
|
6000
|
+
}) : props.icon), (() => {
|
|
5976
6001
|
const _el$ = _tmpl$$q.cloneNode(true);
|
|
5977
6002
|
use((el) => ctxRef = el, _el$);
|
|
5978
6003
|
insert(_el$, createComponent(StyledText, {
|
|
@@ -6682,7 +6707,7 @@ const AccountButtonDropdownStyled = styled.div`
|
|
|
6682
6707
|
|
|
6683
6708
|
color: ${(props) => props.theme.colors.text.primary}
|
|
6684
6709
|
`;
|
|
6685
|
-
const UlStyled
|
|
6710
|
+
const UlStyled = styled.ul`
|
|
6686
6711
|
background-color: ${(props) => props.theme.colors.background.primary};
|
|
6687
6712
|
padding: 8px;
|
|
6688
6713
|
`;
|
|
@@ -6743,7 +6768,7 @@ const AccountButtonDropdown = (props) => {
|
|
|
6743
6768
|
},
|
|
6744
6769
|
"data-tc-dropdown": "true",
|
|
6745
6770
|
get children() {
|
|
6746
|
-
return createComponent(UlStyled
|
|
6771
|
+
return createComponent(UlStyled, {
|
|
6747
6772
|
get children() {
|
|
6748
6773
|
return [(() => {
|
|
6749
6774
|
const _el$ = _tmpl$$5.cloneNode(true);
|
|
@@ -8164,6 +8189,7 @@ const WalletsUl = styled.ul`
|
|
|
8164
8189
|
align-self: flex-start;
|
|
8165
8190
|
max-width: 400px;
|
|
8166
8191
|
margin: 0 auto;
|
|
8192
|
+
list-style: none;
|
|
8167
8193
|
|
|
8168
8194
|
> li {
|
|
8169
8195
|
display: block;
|
|
@@ -8171,7 +8197,20 @@ const WalletsUl = styled.ul`
|
|
|
8171
8197
|
}
|
|
8172
8198
|
|
|
8173
8199
|
${media("mobile")} {
|
|
8174
|
-
|
|
8200
|
+
display: grid;
|
|
8201
|
+
grid-template-columns: repeat(4, 1fr);
|
|
8202
|
+
gap: 0;
|
|
8203
|
+
padding: 8px 12px 16px;
|
|
8204
|
+
max-width: none;
|
|
8205
|
+
|
|
8206
|
+
> li {
|
|
8207
|
+
min-width: 78px;
|
|
8208
|
+
display: flex;
|
|
8209
|
+
}
|
|
8210
|
+
|
|
8211
|
+
> li > * {
|
|
8212
|
+
width: 100%;
|
|
8213
|
+
}
|
|
8175
8214
|
}
|
|
8176
8215
|
`;
|
|
8177
8216
|
styled(Button)`
|
|
@@ -9583,29 +9622,6 @@ const tgBorders = {
|
|
|
9583
9622
|
s: "6px",
|
|
9584
9623
|
none: "0"
|
|
9585
9624
|
};
|
|
9586
|
-
const UlStyled = styled.ul`
|
|
9587
|
-
display: flex;
|
|
9588
|
-
justify-content: space-between;
|
|
9589
|
-
margin: 0 auto;
|
|
9590
|
-
width: fit-content;
|
|
9591
|
-
max-width: 100%;
|
|
9592
|
-
min-width: 100%;
|
|
9593
|
-
height: fit-content;
|
|
9594
|
-
overflow-x: auto;
|
|
9595
|
-
overflow-y: hidden;
|
|
9596
|
-
padding: 8px 19px 16px 19px;
|
|
9597
|
-
|
|
9598
|
-
&&::-webkit-scrollbar {
|
|
9599
|
-
display: none;
|
|
9600
|
-
}
|
|
9601
|
-
|
|
9602
|
-
-ms-overflow-style: none;
|
|
9603
|
-
scrollbar-width: none;
|
|
9604
|
-
|
|
9605
|
-
> li {
|
|
9606
|
-
height: fit-content;
|
|
9607
|
-
}
|
|
9608
|
-
`;
|
|
9609
9625
|
styled.li`
|
|
9610
9626
|
width: 82px;
|
|
9611
9627
|
min-width: 82px;
|
|
@@ -9636,27 +9652,6 @@ styled.li`
|
|
|
9636
9652
|
}
|
|
9637
9653
|
}
|
|
9638
9654
|
`;
|
|
9639
|
-
styled.div`
|
|
9640
|
-
width: 1px;
|
|
9641
|
-
margin: 0 10px;
|
|
9642
|
-
height: 24px;
|
|
9643
|
-
position: relative;
|
|
9644
|
-
top: 26px;
|
|
9645
|
-
|
|
9646
|
-
background-color: ${(props) => props.theme.colors.icon.secondary};
|
|
9647
|
-
opacity: 0.2;
|
|
9648
|
-
`;
|
|
9649
|
-
styled.div`
|
|
9650
|
-
width: 60px;
|
|
9651
|
-
height: 60px;
|
|
9652
|
-
border-radius: ${(props) => borders$1[props.theme.borderRadius]};
|
|
9653
|
-
display: flex;
|
|
9654
|
-
align-items: center;
|
|
9655
|
-
justify-content: center;
|
|
9656
|
-
|
|
9657
|
-
background-color: ${(props) => props.theme.colors.background.tint};
|
|
9658
|
-
margin-bottom: 8px;
|
|
9659
|
-
`;
|
|
9660
9655
|
const H1Styled$2 = styled(H1)`
|
|
9661
9656
|
margin-top: 38px;
|
|
9662
9657
|
margin-bottom: 4px;
|
|
@@ -9694,6 +9689,11 @@ const TelegramButtonStyled = styled(Button)`
|
|
|
9694
9689
|
font-weight: 500;
|
|
9695
9690
|
font-size: 16px;
|
|
9696
9691
|
line-height: 20px;
|
|
9692
|
+
|
|
9693
|
+
@media (max-width: 375px) {
|
|
9694
|
+
margin: 0 16px 24px;
|
|
9695
|
+
width: calc(100% - 32px);
|
|
9696
|
+
}
|
|
9697
9697
|
`;
|
|
9698
9698
|
const TGImageStyled = styled(Image)`
|
|
9699
9699
|
background-color: transparent;
|
|
@@ -9933,7 +9933,7 @@ const MobileUniversalModal = (props) => {
|
|
|
9933
9933
|
padding: "0 24px 8px 24px",
|
|
9934
9934
|
margin: "0",
|
|
9935
9935
|
children: "Choose other application"
|
|
9936
|
-
}), createComponent(
|
|
9936
|
+
}), createComponent(WalletUlContainer, {
|
|
9937
9937
|
get children() {
|
|
9938
9938
|
return [createComponent(For, {
|
|
9939
9939
|
get each() {
|
|
@@ -11037,7 +11037,7 @@ class TonConnectUITracker {
|
|
|
11037
11037
|
}
|
|
11038
11038
|
}
|
|
11039
11039
|
}
|
|
11040
|
-
const tonConnectUiVersion = "2.0.10-beta.
|
|
11040
|
+
const tonConnectUiVersion = "2.0.10-beta.3";
|
|
11041
11041
|
class TonConnectUI {
|
|
11042
11042
|
constructor(options) {
|
|
11043
11043
|
__publicField(this, "walletInfoStorage", new WalletInfoStorage());
|