@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vbotma/sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "TypeScript Source Development Kit for VBot Mini Apps client application.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vbot-mini-apps",
|
|
@@ -29,15 +29,15 @@
|
|
|
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.4",
|
|
33
|
-
"@vbotma/transformers": "^1.1.3",
|
|
34
|
-
"@vbotma/signals": "^1.0.1",
|
|
35
32
|
"@vbotma/toolkit": "^1.0.4",
|
|
36
|
-
"@vbotma/
|
|
33
|
+
"@vbotma/signals": "^1.0.1",
|
|
34
|
+
"@vbotma/bridge": "^2.2.4",
|
|
35
|
+
"@vbotma/types": "^1.0.2",
|
|
36
|
+
"@vbotma/transformers": "^1.1.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"
|
|
40
|
-
"
|
|
39
|
+
"tsconfig": "0.0.2",
|
|
40
|
+
"test-utils": "0.0.1"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { PostEventError } from '@vbotma/bridge';
|
|
2
|
-
import { either as E } from 'fp-ts';
|
|
3
|
-
import { InvalidArgumentsError } from '../../errors.js';
|
|
4
|
-
export type OpenTelegramLinkError = PostEventError | InvalidArgumentsError;
|
|
5
|
-
/**
|
|
6
|
-
* Opens a Telegram link inside the Telegram app. The function expects passing a link in a full
|
|
7
|
-
* format using the hostname "t.me".
|
|
8
|
-
*
|
|
9
|
-
* The Mini App will be closed.
|
|
10
|
-
* @param url - URL to be opened.
|
|
11
|
-
* @example
|
|
12
|
-
* openTelegramLink('https://t.me/heyqbnk');
|
|
13
|
-
*/
|
|
14
|
-
export declare const openTelegramLinkFp: import('../../with-checks/withChecksFp.js').WithChecksFp<(url: string | URL) => E.Either<OpenTelegramLinkError, void>, false, never>;
|
|
15
|
-
/**
|
|
16
|
-
* @see openTelegramLinkFp
|
|
17
|
-
*/
|
|
18
|
-
export declare const openTelegramLink: import('../../with-checks/withChecksFp.js').WithChecks<(url: string | URL) => E.Either<OpenTelegramLinkError, void>, false, never>;
|