@tma.js/sdk 3.0.1 → 3.0.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/index.js CHANGED
@@ -3,11 +3,11 @@ var Le = (s, e, r) => e in s ? $e(s, e, { enumerable: !0, configurable: !0, writ
3
3
  var t = (s, e, r) => Le(s, typeof e != "symbol" ? e + "" : e, r);
4
4
  import { computed as w, signal as j, batch as Ct } from "@tma.js/signals";
5
5
  import { supports as ot, isTMAFp as Re, postEventFp as Pe, off as ct, on as Y, requestFp as Oe, invokeCustomMethodFp as De, retrieveRawInitDataFp as Ue, retrieveLaunchParamsFp as St, captureSameReq as Ge, logger as re } from "@tma.js/bridge";
6
- import { CancelledError as lo, InvalidLaunchParamsError as po, InvokeCustomMethodFailedError as ho, LaunchParamsRetrieveError as fo, MethodParameterUnsupportedError as _o, MethodUnsupportedError as mo, TimeoutError as bo, UnknownEnvError as go, applyPolyfills as wo, createLogger as Fo, createPostEvent as Co, createStartParam as So, createStartParamFp as vo, debug as yo, decodeBase64Url as ko, decodeBase64UrlFp as Eo, decodeStartParam as Ao, decodeStartParamFp as Io, deepSnakeToCamelObjKeys as Bo, encodeBase64Url as xo, getReleaseVersion as qo, isSafeToCreateStartParam as Mo, isTMA as Vo, isTMAFp as To, logger as $o, mockTelegramEnv as Lo, off as Ro, offAll as Po, on as Oo, retrieveLaunchParams as Do, retrieveLaunchParamsFp as Uo, retrieveRawInitData as Go, retrieveRawInitDataFp as jo, retrieveRawLaunchParams as Ho, retrieveRawLaunchParamsFp as Wo, setDebug as Ko, setTargetOrigin as Qo, supports as zo, targetOrigin as No } from "@tma.js/bridge";
6
+ import { CancelledError as lo, InvalidLaunchParamsError as po, InvokeCustomMethodFailedError as ho, LaunchParamsRetrieveError as fo, MethodParameterUnsupportedError as _o, MethodUnsupportedError as mo, TimeoutError as bo, UnknownEnvError as go, applyPolyfills as wo, createLogger as Fo, createPostEvent as Co, createStartParam as So, createStartParamFp as vo, debug as yo, decodeBase64Url as ko, decodeBase64UrlFp as Eo, decodeStartParam as Ao, decodeStartParamFp as Io, deepSnakeToCamelObjKeys as Bo, emitEvent as xo, encodeBase64Url as qo, getReleaseVersion as Mo, isSafeToCreateStartParam as Vo, isTMA as To, isTMAFp as $o, logger as Lo, mockTelegramEnv as Ro, off as Po, offAll as Oo, on as Do, retrieveLaunchParams as Uo, retrieveLaunchParamsFp as Go, retrieveRawInitData as jo, retrieveRawInitDataFp as Ho, retrieveRawLaunchParams as Wo, retrieveRawLaunchParamsFp as Ko, setDebug as Qo, setTargetOrigin as zo, supports as No, targetOrigin as Jo } from "@tma.js/bridge";
7
7
  import { throwifyFpFn as yt, throwifyAnyEither as ce, getStorageValue as je, setStorageValue as He, snakeToKebab as We, createCbCollector as Lt, camelToKebab as le, BetterTaskEither as xt } from "@tma.js/toolkit";
8
8
  import { BetterPromise as Ke } from "better-promises";
9
9
  import { toRGBFullFp as Qe, isRGB as Et, pipeQueryToSchema as ze, pipeJsonToSchema as Ne } from "@tma.js/transformers";
10
- import { isAnyRGB as Yo, isRGB as Zo, isRGBA as Xo, isRGBAShort as ti, isRGBShort as ei, parseInitDataQuery as si, parseInitDataQueryFp as ri, parseLaunchParamsQuery as ni, parseLaunchParamsQueryFp as oi, serializeInitDataQuery as ii, serializeLaunchParamsQuery as ai, toRGB as ui, toRGBFp as ci, toRGBFull as li, toRGBFullFp as pi } from "@tma.js/transformers";
10
+ import { isAnyRGB as Zo, isRGB as Xo, isRGBA as ti, isRGBAShort as ei, isRGBShort as si, parseInitDataQuery as ri, parseInitDataQueryFp as ni, parseLaunchParamsQuery as oi, parseLaunchParamsQueryFp as ii, serializeInitDataQuery as ai, serializeLaunchParamsQuery as ui, toRGB as ci, toRGBFp as li, toRGBFull as pi, toRGBFullFp as hi } from "@tma.js/transformers";
11
11
  import { errorClassWithData as Je, errorClass as K } from "error-kid";
12
12
  import { parse as ne, record as Ye, string as J, array as Ze, safeParse as qt, looseObject as oe, pipe as pe, transform as he, date as de, optional as Xe, number as fe, integer as ts } from "valibot";
13
13
  var es = function(s, e, r) {
@@ -3881,10 +3881,11 @@ export {
3881
3881
  Bo as deepSnakeToCamelObjKeys,
3882
3882
  Yn as downloadFile,
3883
3883
  Nr as downloadFileFp,
3884
- xo as encodeBase64Url,
3884
+ xo as emitEvent,
3885
+ qo as encodeBase64Url,
3885
3886
  Zn as getCurrentTime,
3886
3887
  Yr as getCurrentTimeFp,
3887
- qo as getReleaseVersion,
3888
+ Mo as getReleaseVersion,
3888
3889
  qn as hapticFeedback,
3889
3890
  Xn as hideKeyboard,
3890
3891
  Xr as hideKeyboardFp,
@@ -3893,32 +3894,32 @@ export {
3893
3894
  fn as initFp,
3894
3895
  $n as invoice,
3895
3896
  hr as invokeCustomMethod,
3896
- Yo as isAnyRGB,
3897
+ Zo as isAnyRGB,
3897
3898
  xe as isColorDark,
3898
3899
  Mr as isColorDarkFp,
3899
- Zo as isRGB,
3900
- Xo as isRGBA,
3901
- ti as isRGBAShort,
3902
- ei as isRGBShort,
3903
- Mo as isSafeToCreateStartParam,
3904
- Vo as isTMA,
3905
- To as isTMAFp,
3900
+ Xo as isRGB,
3901
+ ti as isRGBA,
3902
+ ei as isRGBAShort,
3903
+ si as isRGBShort,
3904
+ Vo as isSafeToCreateStartParam,
3905
+ To as isTMA,
3906
+ $o as isTMAFp,
3906
3907
  On as locationManager,
3907
- $o as logger,
3908
+ Lo as logger,
3908
3909
  Dn as mainButton,
3909
3910
  $r as miniApp,
3910
- Lo as mockTelegramEnv,
3911
- Ro as off,
3912
- Po as offAll,
3913
- Oo as on,
3911
+ Ro as mockTelegramEnv,
3912
+ Po as off,
3913
+ Oo as offAll,
3914
+ Do as on,
3914
3915
  Ln as openLink,
3915
3916
  kr as openLinkFp,
3916
3917
  Rn as openTelegramLink,
3917
3918
  Ie as openTelegramLinkFp,
3918
- si as parseInitDataQuery,
3919
- ri as parseInitDataQueryFp,
3920
- ni as parseLaunchParamsQuery,
3921
- oi as parseLaunchParamsQueryFp,
3919
+ ri as parseInitDataQuery,
3920
+ ni as parseInitDataQueryFp,
3921
+ oi as parseLaunchParamsQuery,
3922
+ ii as parseLaunchParamsQueryFp,
3922
3923
  Un as popup,
3923
3924
  ur as postEvent,
3924
3925
  mt as postEventFp,
@@ -3939,21 +3940,21 @@ export {
3939
3940
  jr as requestWriteAccessFp,
3940
3941
  eo as retrieveAndroidDeviceData,
3941
3942
  sn as retrieveAndroidDeviceDataFrom,
3942
- Do as retrieveLaunchParams,
3943
- Uo as retrieveLaunchParamsFp,
3944
- Go as retrieveRawInitData,
3945
- jo as retrieveRawInitDataFp,
3946
- Ho as retrieveRawLaunchParams,
3947
- Wo as retrieveRawLaunchParamsFp,
3943
+ Uo as retrieveLaunchParams,
3944
+ Go as retrieveLaunchParamsFp,
3945
+ jo as retrieveRawInitData,
3946
+ Ho as retrieveRawInitDataFp,
3947
+ Wo as retrieveRawLaunchParams,
3948
+ Ko as retrieveRawLaunchParamsFp,
3948
3949
  Qn as secondaryButton,
3949
3950
  so as sendData,
3950
3951
  nn as sendDataFp,
3951
- ii as serializeInitDataQuery,
3952
- ai as serializeLaunchParamsQuery,
3953
- Ko as setDebug,
3952
+ ai as serializeInitDataQuery,
3953
+ ui as serializeLaunchParamsQuery,
3954
+ Qo as setDebug,
3954
3955
  xn as setEmojiStatus,
3955
3956
  mr as setEmojiStatusFp,
3956
- Qo as setTargetOrigin,
3957
+ zo as setTargetOrigin,
3957
3958
  zn as settingsButton,
3958
3959
  ro as shareMessage,
3959
3960
  an as shareMessageFp,
@@ -3961,16 +3962,16 @@ export {
3961
3962
  cn as shareStoryFp,
3962
3963
  Pn as shareURL,
3963
3964
  Ir as shareURLFp,
3964
- zo as supports,
3965
+ No as supports,
3965
3966
  Nn as swipeBehavior,
3966
3967
  oo as switchInlineQuery,
3967
3968
  pn as switchInlineQueryFp,
3968
- No as targetOrigin,
3969
+ Jo as targetOrigin,
3969
3970
  vt as themeParams,
3970
- ui as toRGB,
3971
- ci as toRGBFp,
3972
- li as toRGBFull,
3973
- pi as toRGBFullFp,
3971
+ ci as toRGB,
3972
+ li as toRGBFp,
3973
+ pi as toRGBFull,
3974
+ hi as toRGBFullFp,
3974
3975
  io as viewport
3975
3976
  };
3976
3977
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tma.js/sdk",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "TypeScript Source Development Kit for Telegram Mini Apps client application.",
5
5
  "author": "Vladislav Kibenko <wolfram.deus@gmail.com>",
6
6
  "homepage": "https://github.com/Telegram-Mini-Apps/tma.js#readme",
@@ -39,7 +39,7 @@
39
39
  "error-kid": "^1.0.2",
40
40
  "fp-ts": "^2.16.11",
41
41
  "valibot": "^1.1.0",
42
- "@tma.js/bridge": "^2.1.1",
42
+ "@tma.js/bridge": "^2.1.2",
43
43
  "@tma.js/signals": "^1.0.1",
44
44
  "@tma.js/toolkit": "^1.0.2",
45
45
  "@tma.js/transformers": "^1.1.1",