@tma.js/sdk 3.1.7 → 3.1.8
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.iife.js +3 -3
- package/dist/index.iife.js.map +1 -1
- package/dist/index.js +72 -64
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -117,70 +117,78 @@ function h(s) {
|
|
|
117
117
|
function X(s) {
|
|
118
118
|
return [s];
|
|
119
119
|
}
|
|
120
|
-
class ue extends (/* @__PURE__ */ ye(
|
|
121
|
-
"ValidationError",
|
|
122
|
-
(t, r) => ({ input: t, issues: r }),
|
|
123
|
-
"Validation error"
|
|
124
|
-
)) {
|
|
125
|
-
}
|
|
126
|
-
class Ie extends (/* @__PURE__ */ G(
|
|
127
|
-
"CSSVarsBoundError",
|
|
128
|
-
"CSS variables are already bound"
|
|
129
|
-
)) {
|
|
130
|
-
}
|
|
131
|
-
class vt extends (/* @__PURE__ */ ye(
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
120
|
+
class ue extends (/* @__PURE__ */ ye({
|
|
121
|
+
name: "ValidationError",
|
|
122
|
+
data: (t, r) => ({ input: t, issues: r }),
|
|
123
|
+
super: "Validation error"
|
|
124
|
+
})) {
|
|
125
|
+
}
|
|
126
|
+
class Ie extends (/* @__PURE__ */ G({
|
|
127
|
+
name: "CSSVarsBoundError",
|
|
128
|
+
super: "CSS variables are already bound"
|
|
129
|
+
})) {
|
|
130
|
+
}
|
|
131
|
+
class vt extends (/* @__PURE__ */ ye({
|
|
132
|
+
name: "DeviceStorageMethodError",
|
|
133
|
+
data: (t) => ({ error: t }),
|
|
134
|
+
super: (t) => [t]
|
|
135
|
+
})) {
|
|
136
|
+
}
|
|
137
|
+
class kt extends (/* @__PURE__ */ ye({
|
|
138
|
+
name: "SecureStorageMethodError",
|
|
139
|
+
data: (t) => ({ error: t }),
|
|
140
|
+
super: (t) => [t]
|
|
141
|
+
})) {
|
|
142
|
+
}
|
|
143
|
+
class yt extends (/* @__PURE__ */ G({
|
|
144
|
+
name: "NotAvailableError",
|
|
145
|
+
super: X
|
|
146
|
+
})) {
|
|
147
|
+
}
|
|
148
|
+
class Mr extends (/* @__PURE__ */ G({
|
|
149
|
+
name: "InvalidEnvError",
|
|
150
|
+
super: X
|
|
151
|
+
})) {
|
|
152
|
+
}
|
|
153
|
+
class It extends (/* @__PURE__ */ G({
|
|
154
|
+
name: "FunctionNotAvailableError",
|
|
155
|
+
super: X
|
|
156
|
+
})) {
|
|
157
|
+
}
|
|
158
|
+
class U extends (/* @__PURE__ */ G({
|
|
159
|
+
name: "InvalidArgumentsError",
|
|
160
|
+
super: (t, r) => [t, { cause: r }]
|
|
161
|
+
})) {
|
|
162
|
+
}
|
|
163
|
+
class Ee extends (/* @__PURE__ */ G({
|
|
164
|
+
name: "ConcurrentCallError",
|
|
165
|
+
super: X
|
|
166
|
+
})) {
|
|
167
|
+
}
|
|
168
|
+
class Et extends (/* @__PURE__ */ G({
|
|
169
|
+
name: "SetEmojiStatusError",
|
|
170
|
+
super: (t) => [`Failed to set emoji status: ${t}`]
|
|
171
|
+
})) {
|
|
172
|
+
}
|
|
173
|
+
class Qe extends (/* @__PURE__ */ G({
|
|
174
|
+
name: "AccessDeniedError",
|
|
175
|
+
super: X
|
|
176
|
+
})) {
|
|
177
|
+
}
|
|
178
|
+
class qt extends (/* @__PURE__ */ G({
|
|
179
|
+
name: "FullscreenFailedError",
|
|
180
|
+
super: X
|
|
181
|
+
})) {
|
|
182
|
+
}
|
|
183
|
+
class At extends (/* @__PURE__ */ G({
|
|
184
|
+
name: "ShareMessageError",
|
|
185
|
+
super: X
|
|
186
|
+
})) {
|
|
187
|
+
}
|
|
188
|
+
class Bt extends (/* @__PURE__ */ G({
|
|
189
|
+
name: "UnknownThemeParamsKeyError",
|
|
190
|
+
super: (t) => [`Unknown theme params key passed: ${t}`]
|
|
191
|
+
})) {
|
|
184
192
|
}
|
|
185
193
|
function A(s, t) {
|
|
186
194
|
const r = C(() => R(t.version) || "100"), n = C(() => R(t.isTma)), { requires: a, returns: o } = t, p = a ? typeof a == "object" ? a : { every: [a] } : void 0, i = (m) => {
|