@elcrm/telegram 0.0.65 → 0.0.66

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.d.ts CHANGED
@@ -1,4 +1,49 @@
1
- import { default as Footer } from './Footer/Footer';
2
- declare const Telegram: any;
1
+ import { Modal as _Modal } from './Madal/index';
2
+ declare namespace Telegram {
3
+ const WebApp: any;
4
+ const getUser: () => any;
5
+ /**
6
+ * Показывает уведомление с поддержкой тем оформления и хаптик-отклика.
7
+
8
+ * @param {string|object} type - Тип уведомления ('error', 'success', 'warning') или объект: {type, text, thema}.
9
+ * @param {string} [text] - Текст уведомления.
10
+ * @param {boolean} [thema] - Признак применения темы оформния.
11
+ *
12
+ * Пример использования:
13
+ * Telegram.Notice('error', 'Что-то пошло не так');
14
+ * Telegram.Notice({type: 'success', text: 'Операция выполнена', thema: true});
15
+ */
16
+ const Notice: (type: any, text?: any, thema?: any) => void;
17
+ const Header: () => import("react/jsx-runtime").JSX.Element;
18
+ const Footer: ({ actions, children, className, page, setPage, direction, }: import("./Footer/Footer").TFooter) => import("react/jsx-runtime").JSX.Element;
19
+ const toggleFooterMenu: () => void;
20
+ const Modal: typeof _Modal;
21
+ const MainButton: {
22
+ callback: never[];
23
+ set: (j: MainButton | boolean) => void;
24
+ };
25
+ const BackButton: {
26
+ state: boolean[];
27
+ listen: any;
28
+ router: (j: any) => void;
29
+ set: (j: any) => void;
30
+ };
31
+ }
32
+ type MainButton = {
33
+ text?: string;
34
+ color?: string;
35
+ textColor?: string;
36
+ isActive?: boolean;
37
+ callback?: () => void;
38
+ page: string;
39
+ };
3
40
  export default Telegram;
4
- export { Footer };
41
+ export declare const Header: () => import("react/jsx-runtime").JSX.Element, Footer: ({ actions, children, className, page, setPage, direction, }: import('./Footer/Footer').TFooter) => import("react/jsx-runtime").JSX.Element, toggleFooterMenu: () => void, Modal: typeof _Modal, MainButton: {
42
+ callback: never[];
43
+ set: (j: MainButton | boolean) => void;
44
+ }, BackButton: {
45
+ state: boolean[];
46
+ listen: any;
47
+ router: (j: any) => void;
48
+ set: (j: any) => void;
49
+ };