@vbotma/sdk 3.1.8 → 3.2.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.
- package/dist/dts/features/Viewport/Viewport.d.ts +11 -11
- package/dist/dts/features/links/exports.d.ts +1 -1
- package/dist/dts/features/links/openVBotLink.d.ts +18 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.iife.js +2 -2
- package/dist/index.iife.js.map +1 -1
- package/dist/index.js +17 -19
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/dist/dts/features/links/openTelegramLink.d.ts +0 -18
package/dist/index.js
CHANGED
|
@@ -1380,7 +1380,7 @@ function _s() {
|
|
|
1380
1380
|
));
|
|
1381
1381
|
}
|
|
1382
1382
|
const et = /* @__PURE__ */ _s(), rn = /* @__PURE__ */ h(et);
|
|
1383
|
-
function ms({
|
|
1383
|
+
function ms({ openVbotLink: r, ...t }) {
|
|
1384
1384
|
return A((s, n) => r(
|
|
1385
1385
|
"https://t.me/share/url?" + new URLSearchParams({ url: s, text: n || "" }).toString().replace(/\+/g, "%20")
|
|
1386
1386
|
), { ...t, returns: "either" });
|
|
@@ -1389,7 +1389,7 @@ function ms({ openTelegramLink: r, ...t }) {
|
|
|
1389
1389
|
function bs() {
|
|
1390
1390
|
return ms({
|
|
1391
1391
|
...S(),
|
|
1392
|
-
|
|
1392
|
+
openVbotLink: et
|
|
1393
1393
|
});
|
|
1394
1394
|
}
|
|
1395
1395
|
const gs = /* @__PURE__ */ bs(), nn = /* @__PURE__ */ h(gs);
|
|
@@ -2693,9 +2693,7 @@ class Ks {
|
|
|
2693
2693
|
G("refresh_requested", () => {
|
|
2694
2694
|
t.set(!0);
|
|
2695
2695
|
}), this.isRefreshing = w(t), this.finishRefreshFp = () => p.pipe(
|
|
2696
|
-
c.fromEither(ke("web_app_finish_refresh",
|
|
2697
|
-
isRefreshed: !0
|
|
2698
|
-
})),
|
|
2696
|
+
c.fromEither(ke("web_app_finish_refresh")),
|
|
2699
2697
|
c.map(() => {
|
|
2700
2698
|
t.set(!1);
|
|
2701
2699
|
})
|
|
@@ -3595,17 +3593,17 @@ class Er {
|
|
|
3595
3593
|
* {name} is a viewport property name converted from camel case to kebab case.
|
|
3596
3594
|
*
|
|
3597
3595
|
* Default variables:
|
|
3598
|
-
* - `--
|
|
3599
|
-
* - `--
|
|
3600
|
-
* - `--
|
|
3601
|
-
* - `--
|
|
3602
|
-
* - `--
|
|
3603
|
-
* - `--
|
|
3604
|
-
* - `--
|
|
3605
|
-
* - `--
|
|
3606
|
-
* - `--
|
|
3607
|
-
* - `--
|
|
3608
|
-
* - `--
|
|
3596
|
+
* - `--vb-viewport-height`
|
|
3597
|
+
* - `--vb-viewport-width`
|
|
3598
|
+
* - `--vb-viewport-stable-height`
|
|
3599
|
+
* - `--vb-viewport-content-safe-area-inset-top`
|
|
3600
|
+
* - `--vb-viewport-content-safe-area-inset-bottom`
|
|
3601
|
+
* - `--vb-viewport-content-safe-area-inset-left`
|
|
3602
|
+
* - `--vb-viewport-content-safe-area-inset-right`
|
|
3603
|
+
* - `--vb-viewport-safe-area-inset-top`
|
|
3604
|
+
* - `--vb-viewport-safe-area-inset-bottom`
|
|
3605
|
+
* - `--vb-viewport-safe-area-inset-left`
|
|
3606
|
+
* - `--vb-viewport-safe-area-inset-right`
|
|
3609
3607
|
*
|
|
3610
3608
|
* Variables are being automatically updated if the viewport was changed.
|
|
3611
3609
|
*
|
|
@@ -3736,7 +3734,7 @@ class Er {
|
|
|
3736
3734
|
(q) => {
|
|
3737
3735
|
if (ae())
|
|
3738
3736
|
return b.left(new Ee());
|
|
3739
|
-
q || (q = (x) => `--
|
|
3737
|
+
q || (q = (x) => `--vb-viewport-${We(x)}`);
|
|
3740
3738
|
const Z = [
|
|
3741
3739
|
["height", this.height],
|
|
3742
3740
|
["stableHeight", this.stableHeight],
|
|
@@ -4020,8 +4018,8 @@ export {
|
|
|
4020
4018
|
ci as on,
|
|
4021
4019
|
sn as openLink,
|
|
4022
4020
|
ds as openLinkFp,
|
|
4023
|
-
rn as
|
|
4024
|
-
et as
|
|
4021
|
+
rn as openVBotLink,
|
|
4022
|
+
et as openVBotLinkFp,
|
|
4025
4023
|
Ei as parseInitDataQuery,
|
|
4026
4024
|
qi as parseInitDataQueryFp,
|
|
4027
4025
|
Ai as parseLaunchParamsQuery,
|