@apiteam/twa-bridge 0.0.2-beta.4 → 7.0.0-beta.1

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/README.md CHANGED
@@ -27,7 +27,7 @@ Telegram distributes SDK via [link](https://core.telegram.org/bots/webapps#initi
27
27
  This package allows to work with SDK as with a npm package:
28
28
 
29
29
  ```js
30
- import { bridgeOpenPopup } from '@apiteam/twa-bridge'
30
+ import { bridgeOpenPopup } from '@apiteam/twa-bridge/solid'
31
31
 
32
32
  bridgeOpenPopup({ message: 'message' })
33
33
  ```
@@ -39,4 +39,18 @@ And yes, it supports TS.
39
39
  import { createIsViewportChanged } from '@apiteam/twa-bridge/solid'
40
40
 
41
41
  const viewport = createIsViewportChanged()
42
- ```
42
+ ```
43
+
44
+ ### Errors
45
+
46
+ | ID | Description |
47
+ | --- | ----------------------------------------------------------------- |
48
+ | 1 | Method not supported |
49
+ | 2 | Ooof! Something is wrong. Init data is missing |
50
+ | 3 | Title too long, maximum length 64 characters |
51
+ | 4 | Your message is too short, at least 1 character |
52
+ | 5 | Your message is too long, maximum 256 characters |
53
+ | 6 | You are passing too few buttons, at least 1 button |
54
+ | 7 | You are passing too many buttons, maximum 3 buttons |
55
+ | 8 | The button text ignores the following values: "ok, close, cancel" |
56
+ | 9 | EDIT_MESSAGE
package/package.json CHANGED
@@ -1,18 +1,9 @@
1
1
  {
2
2
  "name": "@apiteam/twa-bridge",
3
- "version": "0.0.2-beta.4",
3
+ "version": "7.0.0-beta.1",
4
4
  "description": "Telegram bridge",
5
5
  "license": "MIT",
6
- "main": "index.js",
7
- "module": "index.mjs",
8
- "typings": "index.d.ts",
9
- "browser": {
10
- "./index.cjs": "index.cjs",
11
- "./index.js": "index.js"
12
- },
13
- "unpkg": "index.cjs",
14
- "types": "index.d.ts",
15
- "type": "module",
6
+ "types": "index.ts",
16
7
  "author": {
17
8
  "name": "Egor Kytyukov",
18
9
  "url": "https://vk.com/xuserz"