@vbotma/sdk 3.3.3 → 3.3.4
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/index.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.iife.js +3 -3
- package/dist/index.iife.js.map +1 -1
- package/dist/index.js +84 -83
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -3,11 +3,11 @@ var pt = (n, e, s) => e in n ? ct(n, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var t = (n, e, s) => pt(n, typeof e != "symbol" ? e + "" : e, s);
|
|
4
4
|
import { batch as ue, signal as O, computed as S } from "@vbotma/signals";
|
|
5
5
|
import { supports as te, isVBmaFp as ut, postEventFp as ye, off as ne, on as j, request2Fp as Ge, requestFp as lt, invokeCustomMethodFp as dt, retrieveLaunchParamsFp as le, retrieveRawInitDataFp as ht, captureSameReq as _t, getHostBridge as d, logger as He } from "@vbotma/bridge";
|
|
6
|
-
import { CancelledError as Mi, InvalidLaunchParamsError as Ri, InvokeCustomMethodFailedError as Ti, LaunchParamsRetrieveError as Vi, MethodParameterUnsupportedError as Li, MethodUnsupportedError as $i, TimeoutError as Pi, UnknownEnvError as Hi, applyPolyfills as Oi, createLogger as Di, createPostEvent as ji, createStartParam as Gi, createStartParamFp as
|
|
7
|
-
import { throwifyFpFn as he, throwifyAnyEither as
|
|
6
|
+
import { CancelledError as Mi, InvalidLaunchParamsError as Ri, InvokeCustomMethodFailedError as Ti, LaunchParamsRetrieveError as Vi, MethodParameterUnsupportedError as Li, MethodUnsupportedError as $i, TimeoutError as Pi, UnknownEnvError as Hi, applyPolyfills as Oi, createLogger as Di, createPostEvent as ji, createStartParam as Gi, createStartParamFp as Wi, debug as Ui, decodeBase64Url as Qi, decodeBase64UrlFp as Ki, decodeStartParam as zi, decodeStartParamFp as Ni, deepSnakeToCamelObjKeys as Ji, defineHostBridge as Yi, defineWebComponentBridge as Zi, emitEvent as Xi, encodeBase64Url as eo, getHostBridge as to, getReleaseVersion as so, isSafeToCreateStartParam as ro, isVBma as no, isVBmaFp as io, logger as oo, mockVBotEnv as ao, off as co, offAll as po, on as uo, retrieveLaunchParams as lo, retrieveLaunchParamsFp as ho, retrieveRawInitData as _o, retrieveRawInitDataFp as bo, retrieveRawLaunchParams as fo, retrieveRawLaunchParamsFp as go, setDebug as mo, setLaunchParams as wo, setTargetOrigin as Fo, supports as So, targetOrigin as Co } from "@vbotma/bridge";
|
|
7
|
+
import { throwifyFpFn as he, throwifyAnyEither as We, setStorageValue as bt, getStorageValue as ft, snakeToKebab as gt, createCbCollector as qe, camelToKebab as Ue, BetterTaskEither as we } from "@vbotma/toolkit";
|
|
8
8
|
import { BetterPromise as Qe } from "better-promises";
|
|
9
9
|
import { toRGBFullFp as mt, isRGB as be, pipeQueryToSchema as wt, pipeJsonToSchema as Ft } from "@vbotma/transformers";
|
|
10
|
-
import { isAnyRGB as
|
|
10
|
+
import { isAnyRGB as ko, isRGB as yo, isRGBA as qo, isRGBAShort as Io, isRGBShort as Eo, parseInitDataQuery as Bo, parseInitDataQueryFp as Ao, parseLaunchParamsQuery as xo, parseLaunchParamsQueryFp as Mo, serializeInitDataQuery as Ro, serializeLaunchParamsQuery as To, toRGB as Vo, toRGBFp as Lo, toRGBFull as $o, toRGBFullFp as Po } from "@vbotma/transformers";
|
|
11
11
|
import { either as m, function as p, option as N, taskEither as u } from "fp-ts";
|
|
12
12
|
import { errorClass as G, errorClassWithData as Ie } from "error-kid";
|
|
13
13
|
import { parse as Oe, record as St, string as z, array as Ct, safeParse as Fe, looseObject as De, pipe as Ke, transform as ze, date as Ne, optional as vt, number as Je, integer as kt } from "valibot";
|
|
@@ -95,7 +95,7 @@ class Y {
|
|
|
95
95
|
return !fe({ ...this.state(), ...Se(e) }, this.state());
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function W(n, e) {
|
|
99
99
|
return S(() => te(n, P(e)));
|
|
100
100
|
}
|
|
101
101
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -108,7 +108,7 @@ function h(n) {
|
|
|
108
108
|
() => ({ ok: !1 }),
|
|
109
109
|
(s) => ({
|
|
110
110
|
ok: !0,
|
|
111
|
-
data:
|
|
111
|
+
data: We(s)
|
|
112
112
|
})
|
|
113
113
|
)
|
|
114
114
|
);
|
|
@@ -352,7 +352,7 @@ class _e {
|
|
|
352
352
|
returns: "either",
|
|
353
353
|
isMounted: k.isMounted
|
|
354
354
|
});
|
|
355
|
-
this.isMounted = k.isMounted, this.isSupported =
|
|
355
|
+
this.isMounted = k.isMounted, this.isSupported = W(f, F), this.state = b.state, this.setStateFp = I((g) => {
|
|
356
356
|
const w = { ...this.state(), ...Se(g) };
|
|
357
357
|
return b.hasDiff(w) ? p.pipe(
|
|
358
358
|
a(f, l(w)),
|
|
@@ -485,7 +485,7 @@ function se(n) {
|
|
|
485
485
|
function oe(n, e) {
|
|
486
486
|
return O(n, e);
|
|
487
487
|
}
|
|
488
|
-
const Ze = /* @__PURE__ */ oe(ye), re = (...n) => Ze()(...n), Tt = (...n) =>
|
|
488
|
+
const Ze = /* @__PURE__ */ oe(ye), re = (...n) => Ze()(...n), Tt = (...n) => We(re(...n)), T = se({
|
|
489
489
|
postEvent: re
|
|
490
490
|
});
|
|
491
491
|
function Vt(n) {
|
|
@@ -714,7 +714,7 @@ class Pt {
|
|
|
714
714
|
isMounted: b.isMounted,
|
|
715
715
|
returns: "task"
|
|
716
716
|
});
|
|
717
|
-
this.isAvailable = F.getter("available"), this.isMounted = b.isMounted, this.isSupported =
|
|
717
|
+
this.isAvailable = F.getter("available"), this.isMounted = b.isMounted, this.isSupported = W("web_app_biometry_request_auth", e), this.state = F.state, this.unmount = b.unmount, this.mountFp = q(b.mount), this.authenticateFp = I((g) => this.isAvailable() ? p.pipe(
|
|
718
718
|
s("web_app_biometry_request_auth", "biometry_auth_requested", {
|
|
719
719
|
...g,
|
|
720
720
|
params: { reason: ((g || {}).reason || "").trim() }
|
|
@@ -916,7 +916,7 @@ class Gt {
|
|
|
916
916
|
isVBma: s,
|
|
917
917
|
returns: "task"
|
|
918
918
|
});
|
|
919
|
-
this.isSupported =
|
|
919
|
+
this.isSupported = W("web_app_invoke_custom_method", e), this.deleteItemFp = i((o, c) => {
|
|
920
920
|
const a = Array.isArray(o) ? o : [o];
|
|
921
921
|
return p.pipe(
|
|
922
922
|
a.length ? r("deleteStorageValues", { keys: a }, c) : u.right(void 0),
|
|
@@ -947,23 +947,23 @@ const me = /* @__PURE__ */ oe(0);
|
|
|
947
947
|
function Me() {
|
|
948
948
|
return me.set(me() + 1), me().toString();
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function Wt(n, e, s) {
|
|
951
951
|
return dt(n, e, Me(), {
|
|
952
952
|
...s || {},
|
|
953
953
|
postEvent: re
|
|
954
954
|
});
|
|
955
955
|
}
|
|
956
956
|
const Re = se({
|
|
957
|
-
invokeCustomMethod:
|
|
957
|
+
invokeCustomMethod: Wt
|
|
958
958
|
});
|
|
959
|
-
function
|
|
959
|
+
function Ut() {
|
|
960
960
|
return new Gt(p.pipe(
|
|
961
961
|
v(),
|
|
962
962
|
y,
|
|
963
963
|
Re
|
|
964
964
|
));
|
|
965
965
|
}
|
|
966
|
-
const Fn = /* @__PURE__ */
|
|
966
|
+
const Fn = /* @__PURE__ */ Ut();
|
|
967
967
|
class Qt {
|
|
968
968
|
constructor({ isVBma: e, request: s, version: r, createRequestId: i }) {
|
|
969
969
|
/**
|
|
@@ -1129,7 +1129,7 @@ class es {
|
|
|
1129
1129
|
version: r,
|
|
1130
1130
|
returns: "plain"
|
|
1131
1131
|
});
|
|
1132
|
-
this.isSupported =
|
|
1132
|
+
this.isSupported = W(i, r), this.impactOccurredFp = o((c) => e(i, { type: "impact", impact_style: c })), this.notificationOccurredFp = o((c) => e(i, { type: "notification", notification_type: c })), this.selectionChangedFp = o(() => e(i, { type: "selection_change" })), this.impactOccurred = /* @__PURE__ */ h(this.impactOccurredFp), this.notificationOccurred = /* @__PURE__ */ h(this.notificationOccurredFp), this.selectionChanged = /* @__PURE__ */ h(this.selectionChangedFp);
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
1135
|
function ts() {
|
|
@@ -1322,7 +1322,7 @@ class us {
|
|
|
1322
1322
|
}), o = O(!1), c = () => {
|
|
1323
1323
|
o.set(!1);
|
|
1324
1324
|
};
|
|
1325
|
-
this.isSupported =
|
|
1325
|
+
this.isSupported = W("web_app_open_invoice", e), this.isOpened = S(o), this.openSlugFp = i((a, l) => p.pipe(
|
|
1326
1326
|
this.isOpened() ? u.left(new Be("Invoice is already opened")) : u.right(void 0),
|
|
1327
1327
|
u.chain(() => (o.set(!0), s("web_app_open_invoice", "invoice_closed", {
|
|
1328
1328
|
...l,
|
|
@@ -1498,7 +1498,7 @@ class Ss {
|
|
|
1498
1498
|
returns: "task",
|
|
1499
1499
|
isMounted: l.isMounted
|
|
1500
1500
|
});
|
|
1501
|
-
this.isAvailable = a.getter("available"), this.isAccessRequested = a.getter("accessRequested"), this.isAccessGranted = a.getter("accessGranted"), this.isSupported =
|
|
1501
|
+
this.isAvailable = a.getter("available"), this.isAccessRequested = a.getter("accessRequested"), this.isAccessGranted = a.getter("accessGranted"), this.isSupported = W("web_app_check_location", e), this.isMounted = l.isMounted, this.state = a.state, this.unmount = l.unmount, this.mountFp = b(l.mount), this.openSettingsFp = F(() => r("web_app_open_location_settings")), this.requestLocationFp = k((C) => p.pipe(
|
|
1502
1502
|
s("web_app_request_location", "location_requested", C),
|
|
1503
1503
|
u.map((q) => {
|
|
1504
1504
|
if (!q.available)
|
|
@@ -2180,12 +2180,12 @@ class Is {
|
|
|
2180
2180
|
const [x, V] = qe(() => {
|
|
2181
2181
|
I.set(!1);
|
|
2182
2182
|
}), R = (H, $) => {
|
|
2183
|
-
const
|
|
2183
|
+
const U = () => {
|
|
2184
2184
|
Te(H, $() || null);
|
|
2185
2185
|
};
|
|
2186
|
-
|
|
2186
|
+
U(), x($.sub(U), Ve.bind(null, H));
|
|
2187
2187
|
};
|
|
2188
|
-
return _ || (_ = (H) => `--tg-${
|
|
2188
|
+
return _ || (_ = (H) => `--tg-${Ue(H)}`), R(_("bgColor"), this.bgColorRgb), R(_("bottomBarColor"), this.bottomBarColorRgb), R(_("headerColor"), this.headerColorRgb), I.set(!0), m.right(V);
|
|
2189
2189
|
}, { isVBma: o, returns: "either", isMounted: this.isMounted }), this.bindCssVars = /* @__PURE__ */ h(this.bindCssVarsFp);
|
|
2190
2190
|
const g = (_) => {
|
|
2191
2191
|
const x = k.getter(_), V = q(x), R = {
|
|
@@ -2203,9 +2203,9 @@ class Is {
|
|
|
2203
2203
|
k.setState({ [_]: $ });
|
|
2204
2204
|
})
|
|
2205
2205
|
);
|
|
2206
|
-
const
|
|
2206
|
+
const U = C($);
|
|
2207
2207
|
return p.pipe(
|
|
2208
|
-
|
|
2208
|
+
U ? i(R, { color: U }) : m.left(new Mt($)),
|
|
2209
2209
|
m.map(() => {
|
|
2210
2210
|
k.setState({ [_]: $ });
|
|
2211
2211
|
})
|
|
@@ -2293,7 +2293,7 @@ class xs {
|
|
|
2293
2293
|
requires: "web_app_send_notification",
|
|
2294
2294
|
returns: "task"
|
|
2295
2295
|
});
|
|
2296
|
-
this.isSupported =
|
|
2296
|
+
this.isSupported = W("web_app_send_notification", e), this.sendFp = r((i) => p.pipe(
|
|
2297
2297
|
u.fromEither(ye("web_app_send_notification", {
|
|
2298
2298
|
id: As(),
|
|
2299
2299
|
message: i.message,
|
|
@@ -2387,7 +2387,7 @@ class Ts {
|
|
|
2387
2387
|
requires: "web_app_open_popup",
|
|
2388
2388
|
returns: "task"
|
|
2389
2389
|
});
|
|
2390
|
-
this.isSupported =
|
|
2390
|
+
this.isSupported = W("web_app_open_popup", e), this.isOpened = S(i), this.showFp = c((a) => p.pipe(
|
|
2391
2391
|
this.isOpened() ? u.left(new Be("A popup is already opened")) : u.right(void 0),
|
|
2392
2392
|
u.chainW(() => u.fromEither(Rs(a))),
|
|
2393
2393
|
u.chain((l) => (i.set(!0), r("web_app_open_popup", "popup_closed", {
|
|
@@ -2522,14 +2522,14 @@ function Gs({ request: n, ...e }) {
|
|
|
2522
2522
|
), { ...e, requires: "web_app_request_write_access", returns: "task" });
|
|
2523
2523
|
}
|
|
2524
2524
|
// @__NO_SIDE_EFFECTS__
|
|
2525
|
-
function
|
|
2525
|
+
function Ws() {
|
|
2526
2526
|
return Gs(p.pipe(
|
|
2527
2527
|
v(),
|
|
2528
2528
|
y,
|
|
2529
2529
|
L
|
|
2530
2530
|
));
|
|
2531
2531
|
}
|
|
2532
|
-
const
|
|
2532
|
+
const Us = /* @__PURE__ */ Ws(), Hn = /* @__PURE__ */ h(Us);
|
|
2533
2533
|
class Qs {
|
|
2534
2534
|
constructor({
|
|
2535
2535
|
version: e,
|
|
@@ -2620,7 +2620,7 @@ class Qs {
|
|
|
2620
2620
|
const c = { version: e, requires: "web_app_open_scan_qr_popup", isVBma: i }, a = E({ ...c, returns: "either" }), l = E({ ...c, returns: "task" }), f = O(!1), F = () => {
|
|
2621
2621
|
f.set(!1);
|
|
2622
2622
|
};
|
|
2623
|
-
this.isSupported =
|
|
2623
|
+
this.isSupported = W("web_app_open_scan_qr_popup", e), this.isOpened = S(f), this.captureFp = l((b) => {
|
|
2624
2624
|
let k;
|
|
2625
2625
|
return p.pipe(
|
|
2626
2626
|
this.openFp({
|
|
@@ -2967,7 +2967,7 @@ class Js {
|
|
|
2967
2967
|
const a = r.stateGetter(o);
|
|
2968
2968
|
return S(() => a() || P(c));
|
|
2969
2969
|
};
|
|
2970
|
-
this.isSupported =
|
|
2970
|
+
this.isSupported = W("web_app_setup_secondary_button", s.version), this.bgColor = i("bgColor", e.bgColor), this.textColor = i("textColor", e.textColor), this.position = r.stateGetter("position"), this.hasShineEffect = r.stateGetter("hasShineEffect"), this.isEnabled = r.stateGetter("isEnabled"), this.isLoaderVisible = r.stateGetter("isLoaderVisible"), this.text = r.stateGetter("text"), this.isVisible = r.stateGetter("isVisible"), this.isMounted = r.isMounted, this.state = r.state, [this.setPosition, this.setPositionFp] = r.stateSetters("position"), [this.setBgColor, this.setBgColorFp] = r.stateSetters("bgColor"), [this.setTextColor, this.setTextColorFp] = r.stateSetters("textColor"), [
|
|
2971
2971
|
[this.disableShineEffect, this.disableShineEffectFp],
|
|
2972
2972
|
[this.enableShineEffect, this.enableShineEffectFp]
|
|
2973
2973
|
] = r.stateBoolSetters("hasShineEffect"), [
|
|
@@ -3172,7 +3172,7 @@ class er {
|
|
|
3172
3172
|
this.isVisible = s.stateGetter("isVisible"), this.isMounted = s.isMounted, this.isSupported = s.isSupported, [[this.hide, this.hideFp], [this.show, this.showFp]] = s.stateBoolSetters("isVisible"), this.onClick = s.onClick, this.onClickFp = s.onClickFp, this.offClick = s.offClick, this.offClickFp = s.offClickFp, this.mount = s.mount, this.mountFp = s.mountFp, this.unmount = s.unmount;
|
|
3173
3173
|
}
|
|
3174
3174
|
}
|
|
3175
|
-
const
|
|
3175
|
+
const Wn = /* @__PURE__ */ new er(
|
|
3176
3176
|
/* @__PURE__ */ Ae("settingsButton", "settings_button_pressed")
|
|
3177
3177
|
);
|
|
3178
3178
|
class tr {
|
|
@@ -3246,7 +3246,7 @@ class tr {
|
|
|
3246
3246
|
})
|
|
3247
3247
|
) : m.right(void 0);
|
|
3248
3248
|
};
|
|
3249
|
-
this.isSupported =
|
|
3249
|
+
this.isSupported = W("web_app_setup_swipe_behavior", o), this.isVerticalEnabled = a.getter("isVerticalEnabled"), this.isMounted = l.isMounted, this.disableVerticalFp = b(() => k(!1)), this.enableVerticalFp = b(() => k(!0)), this.mountFp = F(() => {
|
|
3250
3250
|
const C = () => {
|
|
3251
3251
|
};
|
|
3252
3252
|
return p.pipe(l.mount(), m.match(C, C));
|
|
@@ -3261,7 +3261,7 @@ function sr() {
|
|
|
3261
3261
|
Z("swipeBehavior")
|
|
3262
3262
|
));
|
|
3263
3263
|
}
|
|
3264
|
-
const
|
|
3264
|
+
const Un = /* @__PURE__ */ sr();
|
|
3265
3265
|
async function Qn(n) {
|
|
3266
3266
|
try {
|
|
3267
3267
|
const { clipboard: s } = navigator;
|
|
@@ -3716,8 +3716,8 @@ class Er {
|
|
|
3716
3716
|
F(x), l(V), f(R), a(H);
|
|
3717
3717
|
},
|
|
3718
3718
|
restoreState: e.get
|
|
3719
|
-
}),
|
|
3720
|
-
this.state = _.state, this.height = _.getter("height"), this.stableHeight = _.getter("stableHeight"), this.width = _.getter("width"), this.isExpanded = _.getter("isExpanded"), this.safeAreaInsets = _.getter("safeAreaInsets"), this.safeAreaInsetTop =
|
|
3719
|
+
}), U = (B) => S(() => this.safeAreaInsets()[B]), ae = (B) => S(() => this.contentSafeAreaInsets()[B]);
|
|
3720
|
+
this.state = _.state, this.height = _.getter("height"), this.stableHeight = _.getter("stableHeight"), this.width = _.getter("width"), this.isExpanded = _.getter("isExpanded"), this.safeAreaInsets = _.getter("safeAreaInsets"), this.safeAreaInsetTop = U("top"), this.safeAreaInsetBottom = U("bottom"), this.safeAreaInsetLeft = U("left"), this.safeAreaInsetRight = U("right"), this.contentSafeAreaInsets = _.getter("contentSafeAreaInsets"), this.contentSafeAreaInsetTop = ae("top"), this.contentSafeAreaInsetBottom = ae("bottom"), this.contentSafeAreaInsetLeft = ae("left"), this.contentSafeAreaInsetRight = ae("right");
|
|
3721
3721
|
const ot = E({ isVBma: q, returns: "task" }), Le = E({
|
|
3722
3722
|
isVBma: q,
|
|
3723
3723
|
returns: "either"
|
|
@@ -3742,7 +3742,7 @@ class Er {
|
|
|
3742
3742
|
(B) => {
|
|
3743
3743
|
if (ce())
|
|
3744
3744
|
return m.left(new Ee());
|
|
3745
|
-
B || (B = (M) => `--vb-viewport-${
|
|
3745
|
+
B || (B = (M) => `--vb-viewport-${Ue(M)}`);
|
|
3746
3746
|
const X = [
|
|
3747
3747
|
["height", this.height],
|
|
3748
3748
|
["stableHeight", this.stableHeight],
|
|
@@ -4314,7 +4314,7 @@ class Gr {
|
|
|
4314
4314
|
}
|
|
4315
4315
|
}
|
|
4316
4316
|
const bi = new Gr();
|
|
4317
|
-
class
|
|
4317
|
+
class Wr {
|
|
4318
4318
|
/**
|
|
4319
4319
|
* Listens to 'web_app_open_link' methods calls from Mini App.
|
|
4320
4320
|
*/
|
|
@@ -4332,8 +4332,8 @@ class Ur {
|
|
|
4332
4332
|
});
|
|
4333
4333
|
}
|
|
4334
4334
|
}
|
|
4335
|
-
const fi = new
|
|
4336
|
-
class
|
|
4335
|
+
const fi = new Wr();
|
|
4336
|
+
class Ur {
|
|
4337
4337
|
/**
|
|
4338
4338
|
* Listens to 'web_app_request_emoji_status_access' methods calls from Mini App.
|
|
4339
4339
|
*/
|
|
@@ -4369,7 +4369,7 @@ class Wr {
|
|
|
4369
4369
|
d().send("emoji_status_failed", e);
|
|
4370
4370
|
}
|
|
4371
4371
|
}
|
|
4372
|
-
const gi = new
|
|
4372
|
+
const gi = new Ur();
|
|
4373
4373
|
class Qr {
|
|
4374
4374
|
/**
|
|
4375
4375
|
* Listens to 'web_app_add_to_home_screen' methods calls from Mini App.
|
|
@@ -4651,12 +4651,12 @@ export {
|
|
|
4651
4651
|
Jr as HostClipboard,
|
|
4652
4652
|
zr as HostClosingBehavior,
|
|
4653
4653
|
en as HostCustomMethod,
|
|
4654
|
-
|
|
4654
|
+
Ur as HostEmojiStatus,
|
|
4655
4655
|
Yr as HostFiles,
|
|
4656
4656
|
Hr as HostHapticFeedback,
|
|
4657
4657
|
Qr as HostHomeScreen,
|
|
4658
4658
|
Dr as HostInvoice,
|
|
4659
|
-
|
|
4659
|
+
Wr as HostLink,
|
|
4660
4660
|
Gr as HostLocationManager,
|
|
4661
4661
|
Rr as HostMainButton,
|
|
4662
4662
|
Pr as HostMiniApp,
|
|
@@ -4715,23 +4715,24 @@ export {
|
|
|
4715
4715
|
ji as createPostEvent,
|
|
4716
4716
|
Me as createRequestId,
|
|
4717
4717
|
Gi as createStartParam,
|
|
4718
|
-
|
|
4719
|
-
|
|
4718
|
+
Wi as createStartParamFp,
|
|
4719
|
+
Ui as debug,
|
|
4720
4720
|
Qi as decodeBase64Url,
|
|
4721
4721
|
Ki as decodeBase64UrlFp,
|
|
4722
4722
|
zi as decodeStartParam,
|
|
4723
4723
|
Ni as decodeStartParamFp,
|
|
4724
4724
|
Ji as deepSnakeToCamelObjKeys,
|
|
4725
4725
|
Yi as defineHostBridge,
|
|
4726
|
+
Zi as defineWebComponentBridge,
|
|
4726
4727
|
Sn as deviceStorage,
|
|
4727
4728
|
Kn as downloadFile,
|
|
4728
4729
|
ir as downloadFileFp,
|
|
4729
|
-
|
|
4730
|
-
|
|
4730
|
+
Xi as emitEvent,
|
|
4731
|
+
eo as encodeBase64Url,
|
|
4731
4732
|
zn as getCurrentTime,
|
|
4732
4733
|
cr as getCurrentTimeFp,
|
|
4733
|
-
|
|
4734
|
-
|
|
4734
|
+
to as getHostBridge,
|
|
4735
|
+
so as getReleaseVersion,
|
|
4735
4736
|
kn as hapticFeedback,
|
|
4736
4737
|
Nn as hideKeyboard,
|
|
4737
4738
|
lr as hideKeyboardFp,
|
|
@@ -4764,34 +4765,34 @@ export {
|
|
|
4764
4765
|
In as initData,
|
|
4765
4766
|
rn as initFp,
|
|
4766
4767
|
En as invoice,
|
|
4767
|
-
|
|
4768
|
-
|
|
4768
|
+
Wt as invokeCustomMethod,
|
|
4769
|
+
ko as isAnyRGB,
|
|
4769
4770
|
st as isColorDark,
|
|
4770
4771
|
ks as isColorDarkFp,
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4772
|
+
yo as isRGB,
|
|
4773
|
+
qo as isRGBA,
|
|
4774
|
+
Io as isRGBAShort,
|
|
4775
|
+
Eo as isRGBShort,
|
|
4776
|
+
ro as isSafeToCreateStartParam,
|
|
4777
|
+
no as isVBma,
|
|
4778
|
+
io as isVBmaFp,
|
|
4778
4779
|
Mn as locationManager,
|
|
4779
|
-
|
|
4780
|
+
oo as logger,
|
|
4780
4781
|
Rn as mainButton,
|
|
4781
4782
|
Bs as miniApp,
|
|
4782
|
-
|
|
4783
|
+
ao as mockVBotEnv,
|
|
4783
4784
|
Tn as notification,
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4785
|
+
co as off,
|
|
4786
|
+
po as offAll,
|
|
4787
|
+
uo as on,
|
|
4787
4788
|
Bn as openLink,
|
|
4788
4789
|
_s as openLinkFp,
|
|
4789
4790
|
An as openVBotLink,
|
|
4790
4791
|
tt as openVBotLinkFp,
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4792
|
+
Bo as parseInitDataQuery,
|
|
4793
|
+
Ao as parseInitDataQueryFp,
|
|
4794
|
+
xo as parseLaunchParamsQuery,
|
|
4795
|
+
Mo as parseLaunchParamsQueryFp,
|
|
4795
4796
|
Vn as popup,
|
|
4796
4797
|
Tt as postEvent,
|
|
4797
4798
|
re as postEventFp,
|
|
@@ -4812,27 +4813,27 @@ export {
|
|
|
4812
4813
|
Ln as requestPhoneAccess,
|
|
4813
4814
|
nt as requestPhoneAccessFp,
|
|
4814
4815
|
Hn as requestWriteAccess,
|
|
4815
|
-
|
|
4816
|
+
Us as requestWriteAccessFp,
|
|
4816
4817
|
Yn as retrieveAndroidDeviceData,
|
|
4817
4818
|
br as retrieveAndroidDeviceDataFrom,
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4819
|
+
lo as retrieveLaunchParams,
|
|
4820
|
+
ho as retrieveLaunchParamsFp,
|
|
4821
|
+
_o as retrieveRawInitData,
|
|
4822
|
+
bo as retrieveRawInitDataFp,
|
|
4823
|
+
fo as retrieveRawLaunchParams,
|
|
4824
|
+
go as retrieveRawLaunchParamsFp,
|
|
4824
4825
|
jn as secondaryButton,
|
|
4825
4826
|
Gn as secureStorage,
|
|
4826
4827
|
Zn as sendData,
|
|
4827
4828
|
mr as sendDataFp,
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4829
|
+
Ro as serializeInitDataQuery,
|
|
4830
|
+
To as serializeLaunchParamsQuery,
|
|
4831
|
+
mo as setDebug,
|
|
4831
4832
|
vn as setEmojiStatus,
|
|
4832
4833
|
Xt as setEmojiStatusFp,
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4834
|
+
wo as setLaunchParams,
|
|
4835
|
+
Fo as setTargetOrigin,
|
|
4836
|
+
Wn as settingsButton,
|
|
4836
4837
|
Xn as shareMessage,
|
|
4837
4838
|
Sr as shareMessageFp,
|
|
4838
4839
|
ei as shareStory,
|
|
@@ -4840,16 +4841,16 @@ export {
|
|
|
4840
4841
|
xn as shareURL,
|
|
4841
4842
|
ws as shareURLFp,
|
|
4842
4843
|
ri as storagePermission,
|
|
4843
|
-
|
|
4844
|
-
|
|
4844
|
+
So as supports,
|
|
4845
|
+
Un as swipeBehavior,
|
|
4845
4846
|
ti as switchInlineQuery,
|
|
4846
4847
|
Ir as switchInlineQueryFp,
|
|
4847
|
-
|
|
4848
|
+
Co as targetOrigin,
|
|
4848
4849
|
de as themeParams,
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4850
|
+
Vo as toRGB,
|
|
4851
|
+
Lo as toRGBFp,
|
|
4852
|
+
$o as toRGBFull,
|
|
4853
|
+
Po as toRGBFullFp,
|
|
4853
4854
|
si as viewport
|
|
4854
4855
|
};
|
|
4855
4856
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vbotma/sdk",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.4",
|
|
4
4
|
"description": "TypeScript Source Development Kit for VBot Mini Apps client application.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vbot-mini-apps",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"error-kid": "^1.0.2",
|
|
30
30
|
"fp-ts": "^2.16.11",
|
|
31
31
|
"valibot": "^1.1.0",
|
|
32
|
+
"@vbotma/bridge": "^2.2.10",
|
|
32
33
|
"@vbotma/signals": "^1.0.1",
|
|
33
|
-
"@vbotma/toolkit": "^1.0.4",
|
|
34
34
|
"@vbotma/transformers": "^1.1.3",
|
|
35
|
-
"@vbotma/
|
|
36
|
-
"@vbotma/
|
|
35
|
+
"@vbotma/toolkit": "^1.0.4",
|
|
36
|
+
"@vbotma/types": "^1.0.4"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"tsconfig": "0.0.2",
|