@mobilon-dev/chotto 0.3.21 → 0.3.23
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/{CreateChat-DoNHuQv0.js → CreateChat-CdkAwYO5.js} +1 -1
- package/dist/{CreateChat2-DpYCA_v_.js → CreateChat2-sDETTpTU.js} +1 -1
- package/dist/{CreateDialog-BOnzLE6I.js → CreateDialog-Bw8bOym2.js} +1 -1
- package/dist/{ModalVideoRecorder-BY3428rE.js → ModalVideoRecorder-BP9FfPE8.js} +1 -1
- package/dist/{SelectUser2-CanippyB.js → SelectUser2-BAKccRXs.js} +1 -1
- package/dist/chotto.css +1 -1
- package/dist/index-4foc416D.js +36385 -0
- package/dist/themes/dark.css +1 -1
- package/dist/themes/default.css +1 -1
- package/dist/themes/green.css +1 -1
- package/dist/themes/mobilon1.css +1 -1
- package/dist/types/apps/data/messages.d.ts +256 -1
- package/dist/types/components/2_feed_elements/AudioMessage/stories/AudioMessage.stories.d.ts +4 -0
- package/dist/types/components/2_feed_elements/CallMessage/stories/CallMessage.stories.d.ts +4 -0
- package/dist/types/components/2_feed_elements/DateMessage/stories/DateMessage.stories.d.ts +1 -0
- package/dist/types/components/2_feed_elements/FileMessage/stories/FileMessage.stories.d.ts +3 -0
- package/dist/types/components/2_feed_elements/ImageMessage/stories/ImageMessage.stories.d.ts +3 -0
- package/dist/types/components/2_feed_elements/MessageReactions/MessageReactions.vue.d.ts +61 -0
- package/dist/types/components/2_feed_elements/MessageReactions/composables/index.d.ts +4 -0
- package/dist/types/components/2_feed_elements/MessageReactions/composables/usePositioning.d.ts +16 -0
- package/dist/types/components/2_feed_elements/MessageReactions/composables/useReactions.d.ts +19 -0
- package/dist/types/components/2_feed_elements/MessageReactions/composables/useReactionsPanel.d.ts +23 -0
- package/dist/types/components/2_feed_elements/MessageReactions/composables/useReactionsState.d.ts +99 -0
- package/dist/types/components/2_feed_elements/MessageReactions/stories/MessageReactions.stories.d.ts +16 -0
- package/dist/types/components/2_feed_elements/MessageReactions/styles/types.d.ts +221 -0
- package/dist/types/components/2_feed_elements/MessageReactions/utils/quickReactions.d.ts +6 -0
- package/dist/types/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.d.ts +16 -0
- package/dist/types/components/2_feed_elements/ReplyStickerMessage/stories/ReplyStickerMessage.stories.d.ts +10 -0
- package/dist/types/components/2_feed_elements/ReplyStickerMessage/styles/types.d.ts +107 -0
- package/dist/types/components/2_feed_elements/StickerMessage/StickerMessage.vue.d.ts +41 -0
- package/dist/types/components/2_feed_elements/StickerMessage/libs/tgs-player/lottie-player.esm.d.ts +478 -0
- package/dist/types/components/2_feed_elements/StickerMessage/libs/tgs-player/tgs-player.esm.d.ts +478 -0
- package/dist/types/components/2_feed_elements/StickerMessage/stories/StickerMessage.stories.d.ts +19 -0
- package/dist/types/components/2_feed_elements/StickerMessage/styles/types.d.ts +245 -0
- package/dist/types/components/2_feed_elements/TextMessage/stories/TextMessage.stories.d.ts +1 -0
- package/dist/types/components/2_feed_elements/TypingMessage/stories/TypingMessage.stories.d.ts +1 -0
- package/dist/types/components/2_feed_elements/VideoMessage/stories/VideoMessage.stories.d.ts +3 -0
- package/dist/types/components/2_feed_elements/types/messages.d.ts +72 -0
- package/dist/types/components/3_compounds/SideBar/SideBar.vue.d.ts +2 -0
- package/dist/types/components/index.d.ts +3 -0
- package/dist/types/functions/createReactionHandlers.d.ts +23 -0
- package/dist/types/functions/index.d.ts +1 -0
- package/dist/types/main.d.ts +1 -0
- package/dist/types/utils/suppress-lit-warning.d.ts +0 -0
- package/dist/vuessages.es.js +84 -80
- package/dist/vuessages.umd.js +598 -46
- package/package.json +1 -1
- package/dist/index-D4aZYJgw.js +0 -21904
package/dist/types/components/2_feed_elements/MessageReactions/composables/usePositioning.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Находит ближайший feed-контейнер в DOM дереве
|
|
3
|
+
*/
|
|
4
|
+
export declare function findFeedContainer(element: HTMLElement | null): HTMLElement | null;
|
|
5
|
+
/**
|
|
6
|
+
* Определяет, является ли сообщение правым (outgoing)
|
|
7
|
+
*/
|
|
8
|
+
export declare function isRightMessage(element: HTMLElement | null): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Вычисляет позицию панели реакций относительно кнопки и feed контейнера
|
|
11
|
+
*/
|
|
12
|
+
export declare function calculatePanelPosition(panelElement: HTMLElement | null, buttonElement: HTMLElement | null, estimatedWidth?: number): Promise<Record<string, string>>;
|
|
13
|
+
/**
|
|
14
|
+
* Вычисляет позицию для fixed-элемента относительно viewport
|
|
15
|
+
*/
|
|
16
|
+
export declare function calculateFixedPanelPosition(panelElement: HTMLElement | null, buttonElement: HTMLElement | null, estimatedWidth?: number): Promise<Record<string, string>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { MessageReactions } from '@/types';
|
|
2
|
+
/**
|
|
3
|
+
* Добавляет или увеличивает реакцию в локальном состоянии
|
|
4
|
+
*/
|
|
5
|
+
export declare function updateLocalReactionsAdd(localReactions: {
|
|
6
|
+
value: MessageReactions | undefined;
|
|
7
|
+
}, key: string): void;
|
|
8
|
+
/**
|
|
9
|
+
* Удаляет или уменьшает реакцию в локальном состоянии
|
|
10
|
+
*/
|
|
11
|
+
export declare function updateLocalReactionsRemove(localReactions: {
|
|
12
|
+
value: MessageReactions | undefined;
|
|
13
|
+
}, key: string): void;
|
|
14
|
+
/**
|
|
15
|
+
* Переключает реакцию (добавляет, если нет, или удаляет, если есть)
|
|
16
|
+
*/
|
|
17
|
+
export declare function updateLocalReactionsToggle(localReactions: {
|
|
18
|
+
value: MessageReactions | undefined;
|
|
19
|
+
}, key: string): void;
|
package/dist/types/components/2_feed_elements/MessageReactions/composables/useReactionsPanel.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Композабл для управления панелями реакций (быстрые реакции и полный picker)
|
|
4
|
+
*/
|
|
5
|
+
export declare function useReactionsPanel(quickEmojis: Ref<readonly string[]>, addButtonRef: Ref<HTMLButtonElement | null>): {
|
|
6
|
+
isQuickReactionsOpen: Ref<boolean, boolean>;
|
|
7
|
+
isFullPickerOpen: Ref<boolean, boolean>;
|
|
8
|
+
pickerRef: Ref<HTMLElement | null, HTMLElement | null>;
|
|
9
|
+
quickReactionsRef: Ref<HTMLElement | null, HTMLElement | null>;
|
|
10
|
+
quickPanelStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
11
|
+
pickerStyle: Ref<Record<string, string>, Record<string, string>>;
|
|
12
|
+
openQuickPanel: () => void;
|
|
13
|
+
closeQuickPanel: () => void;
|
|
14
|
+
openFullPicker: () => Promise<void>;
|
|
15
|
+
closeFullPicker: () => void;
|
|
16
|
+
handleQuickPanelMouseEnter: () => void;
|
|
17
|
+
handleQuickPanelMouseLeave: () => void;
|
|
18
|
+
handlePickerMouseEnter: () => void;
|
|
19
|
+
handlePickerMouseLeave: () => void;
|
|
20
|
+
handleButtonMouseEnter: () => void;
|
|
21
|
+
handleButtonMouseLeave: () => void;
|
|
22
|
+
handleClickOutside: (event: MouseEvent) => void;
|
|
23
|
+
};
|
package/dist/types/components/2_feed_elements/MessageReactions/composables/useReactionsState.d.ts
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import type { MessageReactions } from '@/types';
|
|
3
|
+
/**
|
|
4
|
+
* Композабл для управления локальным состоянием реакций
|
|
5
|
+
*/
|
|
6
|
+
export declare function useReactionsState(initialReactions: Ref<MessageReactions | undefined>): {
|
|
7
|
+
localReactions: Ref<{
|
|
8
|
+
items: {
|
|
9
|
+
key: import("@/types").ReactionKey;
|
|
10
|
+
count: number;
|
|
11
|
+
reactedByMe?: boolean | undefined;
|
|
12
|
+
}[];
|
|
13
|
+
meta?: {
|
|
14
|
+
mode?: "single" | "multi" | undefined;
|
|
15
|
+
} | undefined;
|
|
16
|
+
recent?: {
|
|
17
|
+
userId: string | number;
|
|
18
|
+
key: import("@/types").ReactionKey;
|
|
19
|
+
date?: number | undefined;
|
|
20
|
+
}[] | undefined;
|
|
21
|
+
vendor?: {
|
|
22
|
+
telegram?: {
|
|
23
|
+
total_count?: number | undefined;
|
|
24
|
+
recent_reactions?: {
|
|
25
|
+
type: {
|
|
26
|
+
type: string;
|
|
27
|
+
emoji?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
actor?: {
|
|
30
|
+
id?: number | undefined;
|
|
31
|
+
is_bot?: boolean | undefined;
|
|
32
|
+
first_name?: string | undefined;
|
|
33
|
+
} | undefined;
|
|
34
|
+
date?: number | undefined;
|
|
35
|
+
}[] | undefined;
|
|
36
|
+
counts?: {
|
|
37
|
+
type: {
|
|
38
|
+
type: string;
|
|
39
|
+
emoji: string;
|
|
40
|
+
};
|
|
41
|
+
count: number;
|
|
42
|
+
}[] | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
whatsapp?: {
|
|
45
|
+
lastEventAt?: number | undefined;
|
|
46
|
+
} | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
} | undefined, MessageReactions | {
|
|
49
|
+
items: {
|
|
50
|
+
key: import("@/types").ReactionKey;
|
|
51
|
+
count: number;
|
|
52
|
+
reactedByMe?: boolean | undefined;
|
|
53
|
+
}[];
|
|
54
|
+
meta?: {
|
|
55
|
+
mode?: "single" | "multi" | undefined;
|
|
56
|
+
} | undefined;
|
|
57
|
+
recent?: {
|
|
58
|
+
userId: string | number;
|
|
59
|
+
key: import("@/types").ReactionKey;
|
|
60
|
+
date?: number | undefined;
|
|
61
|
+
}[] | undefined;
|
|
62
|
+
vendor?: {
|
|
63
|
+
telegram?: {
|
|
64
|
+
total_count?: number | undefined;
|
|
65
|
+
recent_reactions?: {
|
|
66
|
+
type: {
|
|
67
|
+
type: string;
|
|
68
|
+
emoji?: string | undefined;
|
|
69
|
+
};
|
|
70
|
+
actor?: {
|
|
71
|
+
id?: number | undefined;
|
|
72
|
+
is_bot?: boolean | undefined;
|
|
73
|
+
first_name?: string | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
date?: number | undefined;
|
|
76
|
+
}[] | undefined;
|
|
77
|
+
counts?: {
|
|
78
|
+
type: {
|
|
79
|
+
type: string;
|
|
80
|
+
emoji: string;
|
|
81
|
+
};
|
|
82
|
+
count: number;
|
|
83
|
+
}[] | undefined;
|
|
84
|
+
} | undefined;
|
|
85
|
+
whatsapp?: {
|
|
86
|
+
lastEventAt?: number | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
} | undefined>;
|
|
90
|
+
displayedReactions: import("vue").ComputedRef<{
|
|
91
|
+
key: import("@/types").ReactionKey;
|
|
92
|
+
count: number;
|
|
93
|
+
reactedByMe?: boolean | undefined;
|
|
94
|
+
}[]>;
|
|
95
|
+
hasReactions: import("vue").ComputedRef<boolean>;
|
|
96
|
+
addReaction: (key: string) => void;
|
|
97
|
+
removeReaction: (key: string) => void;
|
|
98
|
+
toggleReaction: (key: string) => void;
|
|
99
|
+
};
|
package/dist/types/components/2_feed_elements/MessageReactions/stories/MessageReactions.stories.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import TextMessage from '../../TextMessage/TextMessage.vue';
|
|
3
|
+
declare const meta: Meta<typeof TextMessage>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof TextMessage>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const LeftMessageReactions: Story;
|
|
8
|
+
export declare const LeftMessageSingleReaction: Story;
|
|
9
|
+
export declare const LeftMessageMultipleReactions: Story;
|
|
10
|
+
export declare const LeftMessageNoReactions: Story;
|
|
11
|
+
export declare const RightMessageReactions: Story;
|
|
12
|
+
export declare const RightMessageSingleReaction: Story;
|
|
13
|
+
export declare const RightMessageMultipleReactions: Story;
|
|
14
|
+
export declare const RightMessageNoReactions: Story;
|
|
15
|
+
export declare const AllReactionsActive: Story;
|
|
16
|
+
export declare const LargeCountReactions: Story;
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CSS variables for MessageReactions component
|
|
3
|
+
*/
|
|
4
|
+
export interface MessageReactionsThemeCSSVariables {
|
|
5
|
+
/** Отображение контейнера реакций */
|
|
6
|
+
'--chotto-messagereactions-display': string;
|
|
7
|
+
/** Выравнивание элементов контейнера реакций */
|
|
8
|
+
'--chotto-messagereactions-align-items': string;
|
|
9
|
+
/** Промежуток между элементами реакций */
|
|
10
|
+
'--chotto-messagereactions-gap': string;
|
|
11
|
+
/** Позиционирование контейнера реакций */
|
|
12
|
+
'--chotto-messagereactions-position': string;
|
|
13
|
+
/** Минимальная высота контейнера реакций */
|
|
14
|
+
'--chotto-messagereactions-min-height': string;
|
|
15
|
+
/** Z-index контейнера реакций */
|
|
16
|
+
'--chotto-messagereactions-z-index': string;
|
|
17
|
+
/** Позиционирование контейнера реакций без реакций */
|
|
18
|
+
'--chotto-messagereactions-no-reactions-position': string;
|
|
19
|
+
/** Отступ снизу контейнера реакций без реакций */
|
|
20
|
+
'--chotto-messagereactions-no-reactions-bottom': string;
|
|
21
|
+
/** Высота контейнера реакций без реакций */
|
|
22
|
+
'--chotto-messagereactions-no-reactions-height': string;
|
|
23
|
+
/** Ширина контейнера реакций без реакций */
|
|
24
|
+
'--chotto-messagereactions-no-reactions-width': string;
|
|
25
|
+
/** Переполнение контейнера реакций без реакций */
|
|
26
|
+
'--chotto-messagereactions-no-reactions-overflow': string;
|
|
27
|
+
/** Минимальная высота контейнера реакций без реакций */
|
|
28
|
+
'--chotto-messagereactions-no-reactions-min-height': string;
|
|
29
|
+
/** Внешние отступы контейнера реакций без реакций */
|
|
30
|
+
'--chotto-messagereactions-no-reactions-margin': string;
|
|
31
|
+
/** Внутренние отступы контейнера реакций без реакций */
|
|
32
|
+
'--chotto-messagereactions-no-reactions-padding': string;
|
|
33
|
+
/** Z-index контейнера реакций без реакций */
|
|
34
|
+
'--chotto-messagereactions-no-reactions-z-index': string;
|
|
35
|
+
/** Отступ справа для левых сообщений без реакций */
|
|
36
|
+
'--chotto-messagereactions-left-no-reactions-right': string;
|
|
37
|
+
/** Отступ слева для левых сообщений без реакций */
|
|
38
|
+
'--chotto-messagereactions-left-no-reactions-left': string;
|
|
39
|
+
/** Отступ слева для правых сообщений без реакций */
|
|
40
|
+
'--chotto-messagereactions-right-no-reactions-left': string;
|
|
41
|
+
/** Отступ справа для правых сообщений без реакций */
|
|
42
|
+
'--chotto-messagereactions-right-no-reactions-right': string;
|
|
43
|
+
/** Отображение чипа реакции */
|
|
44
|
+
'--chotto-messagereactions-chip-display': string;
|
|
45
|
+
/** Выравнивание элементов чипа реакции */
|
|
46
|
+
'--chotto-messagereactions-chip-align-items': string;
|
|
47
|
+
/** Промежуток между элементами чипа реакции */
|
|
48
|
+
'--chotto-messagereactions-chip-gap': string;
|
|
49
|
+
/** Граница чипа реакции */
|
|
50
|
+
'--chotto-messagereactions-chip-border': string;
|
|
51
|
+
/** Фон чипа реакции */
|
|
52
|
+
'--chotto-messagereactions-chip-bg': string;
|
|
53
|
+
/** Цвет текста чипа реакции */
|
|
54
|
+
'--chotto-messagereactions-chip-fg': string;
|
|
55
|
+
/** Скругление чипа реакции */
|
|
56
|
+
'--chotto-messagereactions-chip-border-radius': string;
|
|
57
|
+
/** Внутренние отступы чипа реакции */
|
|
58
|
+
'--chotto-messagereactions-chip-padding': string;
|
|
59
|
+
/** Размер шрифта чипа реакции */
|
|
60
|
+
'--chotto-messagereactions-chip-font-size': string;
|
|
61
|
+
/** Курсор чипа реакции */
|
|
62
|
+
'--chotto-messagereactions-chip-cursor': string;
|
|
63
|
+
/** Граница активного чипа реакции */
|
|
64
|
+
'--chotto-messagereactions-chip-active-border': string;
|
|
65
|
+
/** Фон активного чипа реакции */
|
|
66
|
+
'--chotto-messagereactions-chip-active-bg': string;
|
|
67
|
+
/** Толщина шрифта активного чипа реакции */
|
|
68
|
+
'--chotto-messagereactions-chip-active-font-weight': string;
|
|
69
|
+
/** Высота строки эмодзи реакции */
|
|
70
|
+
'--chotto-messagereactions-emoji-line-height': string;
|
|
71
|
+
/** Высота строки счётчика реакции */
|
|
72
|
+
'--chotto-messagereactions-count-line-height': string;
|
|
73
|
+
/** Отображение кнопки добавления реакции */
|
|
74
|
+
'--chotto-messagereactions-add-display': string;
|
|
75
|
+
/** Выравнивание элементов кнопки добавления реакции */
|
|
76
|
+
'--chotto-messagereactions-add-align-items': string;
|
|
77
|
+
/** Выравнивание содержимого кнопки добавления реакции */
|
|
78
|
+
'--chotto-messagereactions-add-justify-content': string;
|
|
79
|
+
/** Ширина кнопки добавления реакции */
|
|
80
|
+
'--chotto-messagereactions-add-width': string;
|
|
81
|
+
/** Высота кнопки добавления реакции */
|
|
82
|
+
'--chotto-messagereactions-add-height': string;
|
|
83
|
+
/** Скругление кнопки добавления реакции */
|
|
84
|
+
'--chotto-messagereactions-add-border-radius': string;
|
|
85
|
+
/** Граница кнопки добавления реакции */
|
|
86
|
+
'--chotto-messagereactions-add-border': string;
|
|
87
|
+
/** Фон кнопки добавления реакции */
|
|
88
|
+
'--chotto-messagereactions-add-bg': string;
|
|
89
|
+
/** Цвет кнопки добавления реакции */
|
|
90
|
+
'--chotto-messagereactions-add-color': string;
|
|
91
|
+
/** Курсор кнопки добавления реакции */
|
|
92
|
+
'--chotto-messagereactions-add-cursor': string;
|
|
93
|
+
/** Размер шрифта кнопки добавления реакции */
|
|
94
|
+
'--chotto-messagereactions-add-font-size': string;
|
|
95
|
+
/** Прозрачность кнопки добавления реакции */
|
|
96
|
+
'--chotto-messagereactions-add-opacity': string;
|
|
97
|
+
/** Переход кнопки добавления реакции */
|
|
98
|
+
'--chotto-messagereactions-add-transition': string;
|
|
99
|
+
/** События указателя кнопки добавления реакции */
|
|
100
|
+
'--chotto-messagereactions-add-pointer-events': string;
|
|
101
|
+
/** Позиционирование кнопки добавления реакции */
|
|
102
|
+
'--chotto-messagereactions-add-position': string;
|
|
103
|
+
/** Отступ снизу кнопки добавления реакции */
|
|
104
|
+
'--chotto-messagereactions-add-bottom': string;
|
|
105
|
+
/** Z-index кнопки добавления реакции */
|
|
106
|
+
'--chotto-messagereactions-add-z-index': string;
|
|
107
|
+
/** Отступ справа кнопки добавления реакции для левых сообщений */
|
|
108
|
+
'--chotto-messagereactions-add-left-right': string;
|
|
109
|
+
/** Отступ слева кнопки добавления реакции для левых сообщений */
|
|
110
|
+
'--chotto-messagereactions-add-left-left': string;
|
|
111
|
+
/** Отступ слева кнопки добавления реакции для правых сообщений */
|
|
112
|
+
'--chotto-messagereactions-add-right-left': string;
|
|
113
|
+
/** Отступ справа кнопки добавления реакции для правых сообщений */
|
|
114
|
+
'--chotto-messagereactions-add-right-right': string;
|
|
115
|
+
/** Позиционирование кнопки добавления реакции когда есть реакции */
|
|
116
|
+
'--chotto-messagereactions-add-has-reactions-position': string;
|
|
117
|
+
/** Отступ снизу кнопки добавления реакции когда есть реакции */
|
|
118
|
+
'--chotto-messagereactions-add-has-reactions-bottom': string;
|
|
119
|
+
/** Трансформация кнопки добавления реакции когда есть реакции */
|
|
120
|
+
'--chotto-messagereactions-add-has-reactions-transform': string;
|
|
121
|
+
/** Прозрачность кнопки добавления реакции когда есть чипы */
|
|
122
|
+
'--chotto-messagereactions-add-has-chip-opacity': string;
|
|
123
|
+
/** События указателя кнопки добавления реакции когда есть чипы */
|
|
124
|
+
'--chotto-messagereactions-add-has-chip-pointer-events': string;
|
|
125
|
+
/** Позиционирование панели быстрых реакций */
|
|
126
|
+
'--chotto-messagereactions-quick-panel-position': string;
|
|
127
|
+
/** Отступ сверху панели быстрых реакций */
|
|
128
|
+
'--chotto-messagereactions-quick-panel-top': string;
|
|
129
|
+
/** Отступ слева панели быстрых реакций */
|
|
130
|
+
'--chotto-messagereactions-quick-panel-left': string;
|
|
131
|
+
/** Внешний отступ сверху панели быстрых реакций */
|
|
132
|
+
'--chotto-messagereactions-quick-panel-margin-top': string;
|
|
133
|
+
/** Фон панели быстрых реакций */
|
|
134
|
+
'--chotto-messagereactions-quick-panel-bg': string;
|
|
135
|
+
/** Граница панели быстрых реакций */
|
|
136
|
+
'--chotto-messagereactions-quick-panel-border': string;
|
|
137
|
+
/** Скругление панели быстрых реакций */
|
|
138
|
+
'--chotto-messagereactions-quick-panel-border-radius': string;
|
|
139
|
+
/** Тень панели быстрых реакций */
|
|
140
|
+
'--chotto-messagereactions-quick-panel-box-shadow': string;
|
|
141
|
+
/** Внутренние отступы панели быстрых реакций */
|
|
142
|
+
'--chotto-messagereactions-quick-panel-padding': string;
|
|
143
|
+
/** Отображение панели быстрых реакций */
|
|
144
|
+
'--chotto-messagereactions-quick-panel-display': string;
|
|
145
|
+
/** Выравнивание элементов панели быстрых реакций */
|
|
146
|
+
'--chotto-messagereactions-quick-panel-align-items': string;
|
|
147
|
+
/** Промежуток между элементами панели быстрых реакций */
|
|
148
|
+
'--chotto-messagereactions-quick-panel-gap': string;
|
|
149
|
+
/** Z-index панели быстрых реакций */
|
|
150
|
+
'--chotto-messagereactions-quick-panel-z-index': string;
|
|
151
|
+
/** Отступ слева панели быстрых реакций для правых сообщений */
|
|
152
|
+
'--chotto-messagereactions-quick-panel-right-left': string;
|
|
153
|
+
/** Отступ справа панели быстрых реакций для правых сообщений */
|
|
154
|
+
'--chotto-messagereactions-quick-panel-right-right': string;
|
|
155
|
+
/** Отображение элемента быстрой реакции */
|
|
156
|
+
'--chotto-messagereactions-quick-item-display': string;
|
|
157
|
+
/** Выравнивание элементов элемента быстрой реакции */
|
|
158
|
+
'--chotto-messagereactions-quick-item-align-items': string;
|
|
159
|
+
/** Выравнивание содержимого элемента быстрой реакции */
|
|
160
|
+
'--chotto-messagereactions-quick-item-justify-content': string;
|
|
161
|
+
/** Ширина элемента быстрой реакции */
|
|
162
|
+
'--chotto-messagereactions-quick-item-width': string;
|
|
163
|
+
/** Высота элемента быстрой реакции */
|
|
164
|
+
'--chotto-messagereactions-quick-item-height': string;
|
|
165
|
+
/** Скругление элемента быстрой реакции */
|
|
166
|
+
'--chotto-messagereactions-quick-item-border-radius': string;
|
|
167
|
+
/** Граница элемента быстрой реакции */
|
|
168
|
+
'--chotto-messagereactions-quick-item-border': string;
|
|
169
|
+
/** Фон элемента быстрой реакции */
|
|
170
|
+
'--chotto-messagereactions-quick-item-bg': string;
|
|
171
|
+
/** Курсор элемента быстрой реакции */
|
|
172
|
+
'--chotto-messagereactions-quick-item-cursor': string;
|
|
173
|
+
/** Размер шрифта элемента быстрой реакции */
|
|
174
|
+
'--chotto-messagereactions-quick-item-font-size': string;
|
|
175
|
+
/** Переход элемента быстрой реакции */
|
|
176
|
+
'--chotto-messagereactions-quick-item-transition': string;
|
|
177
|
+
/** Фон элемента быстрой реакции при наведении */
|
|
178
|
+
'--chotto-messagereactions-quick-item-hover-bg': string;
|
|
179
|
+
/** Отображение кнопки развернуть */
|
|
180
|
+
'--chotto-messagereactions-expand-display': string;
|
|
181
|
+
/** Выравнивание элементов кнопки развернуть */
|
|
182
|
+
'--chotto-messagereactions-expand-align-items': string;
|
|
183
|
+
/** Выравнивание содержимого кнопки развернуть */
|
|
184
|
+
'--chotto-messagereactions-expand-justify-content': string;
|
|
185
|
+
/** Ширина кнопки развернуть */
|
|
186
|
+
'--chotto-messagereactions-expand-width': string;
|
|
187
|
+
/** Высота кнопки развернуть */
|
|
188
|
+
'--chotto-messagereactions-expand-height': string;
|
|
189
|
+
/** Скругление кнопки развернуть */
|
|
190
|
+
'--chotto-messagereactions-expand-border-radius': string;
|
|
191
|
+
/** Граница кнопки развернуть */
|
|
192
|
+
'--chotto-messagereactions-expand-border': string;
|
|
193
|
+
/** Фон кнопки развернуть */
|
|
194
|
+
'--chotto-messagereactions-expand-bg': string;
|
|
195
|
+
/** Курсор кнопки развернуть */
|
|
196
|
+
'--chotto-messagereactions-expand-cursor': string;
|
|
197
|
+
/** Размер шрифта кнопки развернуть */
|
|
198
|
+
'--chotto-messagereactions-expand-font-size': string;
|
|
199
|
+
/** Цвет кнопки развернуть */
|
|
200
|
+
'--chotto-messagereactions-expand-color': string;
|
|
201
|
+
/** Переход кнопки развернуть */
|
|
202
|
+
'--chotto-messagereactions-expand-transition': string;
|
|
203
|
+
/** Фон кнопки развернуть при наведении */
|
|
204
|
+
'--chotto-messagereactions-expand-hover-bg': string;
|
|
205
|
+
/** Высота строки span внутри кнопки развернуть */
|
|
206
|
+
'--chotto-messagereactions-expand-span-line-height': string;
|
|
207
|
+
/** Толщина шрифта span внутри кнопки развернуть */
|
|
208
|
+
'--chotto-messagereactions-expand-span-font-weight': string;
|
|
209
|
+
/** Z-index пикера реакций */
|
|
210
|
+
'--chotto-messagereactions-picker-z-index': string;
|
|
211
|
+
/** Позиционирование emoji picker внутри пикера */
|
|
212
|
+
'--chotto-messagereactions-picker-emoji-picker-position': string;
|
|
213
|
+
/** Z-index emoji picker внутри пикера */
|
|
214
|
+
'--chotto-messagereactions-picker-emoji-picker-z-index': string;
|
|
215
|
+
/** Переход появления/исчезновения попапа реакций */
|
|
216
|
+
'--chotto-messagereactions-popover-transition': string;
|
|
217
|
+
/** Прозрачность попапа реакций в начале */
|
|
218
|
+
'--chotto-messagereactions-popover-enter-from-opacity': string;
|
|
219
|
+
/** Трансформация попапа реакций в начале */
|
|
220
|
+
'--chotto-messagereactions-popover-enter-from-transform': string;
|
|
221
|
+
}
|
package/dist/types/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IStickerMessage } from '@/types';
|
|
2
|
+
import '@/utils/suppress-lit-warning';
|
|
3
|
+
import '../StickerMessage/libs/tgs-player/lottie-player.esm.js';
|
|
4
|
+
import '../StickerMessage/libs/tgs-player/tgs-player.esm.js';
|
|
5
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
message: {
|
|
7
|
+
type: () => IStickerMessage;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
message: {
|
|
12
|
+
type: () => IStickerMessage;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3-vite';
|
|
2
|
+
import ReplyStickerMessage from '../ReplyStickerMessage.vue';
|
|
3
|
+
declare const meta: Meta<typeof ReplyStickerMessage>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ReplyStickerMessage>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const RightPosition: Story;
|
|
8
|
+
export declare const WithHeader: Story;
|
|
9
|
+
export declare const AnimatedSticker: Story;
|
|
10
|
+
export declare const AnimatedStickerWithHeader: Story;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CSS variables for ReplyStickerMessage component
|
|
3
|
+
*/
|
|
4
|
+
export interface ReplyStickerMessageThemeCSSVariables {
|
|
5
|
+
/** Внешние отступы абзаца */
|
|
6
|
+
'--chotto-replystickermessage-p-margin': string;
|
|
7
|
+
/** Размер шрифта абзаца */
|
|
8
|
+
'--chotto-replystickermessage-p-font-size': string;
|
|
9
|
+
/** Цвет абзаца */
|
|
10
|
+
'--chotto-replystickermessage-p-color': string;
|
|
11
|
+
/** Переполнение абзаца */
|
|
12
|
+
'--chotto-replystickermessage-p-overflow': string;
|
|
13
|
+
/** Обрезка текста абзаца */
|
|
14
|
+
'--chotto-replystickermessage-p-text-overflow': string;
|
|
15
|
+
/** Отображение абзаца (webkit box) */
|
|
16
|
+
'--chotto-replystickermessage-p-display': string;
|
|
17
|
+
/** Лимит строк абзаца (webkit) */
|
|
18
|
+
'--chotto-replystickermessage-p-webkit-line-clamp': string;
|
|
19
|
+
/** Лимит строк абзаца */
|
|
20
|
+
'--chotto-replystickermessage-p-line-clamp': string;
|
|
21
|
+
/** Ориентация контейнера строк (webkit) */
|
|
22
|
+
'--chotto-replystickermessage-p-webkit-box-orient': string;
|
|
23
|
+
/** Колонка грида кнопки превью */
|
|
24
|
+
'--chotto-replystickermessage-preview-button-grid-column': string;
|
|
25
|
+
/** Позиционирование кнопки превью */
|
|
26
|
+
'--chotto-replystickermessage-preview-button-position': string;
|
|
27
|
+
/** Отображение кнопки превью */
|
|
28
|
+
'--chotto-replystickermessage-preview-button-display': string;
|
|
29
|
+
/** Направление флекс-контейнера кнопки превью */
|
|
30
|
+
'--chotto-replystickermessage-preview-button-flex-direction': string;
|
|
31
|
+
/** Внутренние отступы кнопки превью */
|
|
32
|
+
'--chotto-replystickermessage-preview-button-padding': string;
|
|
33
|
+
/** Ширина превью-стикера */
|
|
34
|
+
'--chotto-replystickermessage-preview-image-width': string;
|
|
35
|
+
/** Высота превью-стикера */
|
|
36
|
+
'--chotto-replystickermessage-preview-image-height': string;
|
|
37
|
+
/** Курсор при наведении на превью */
|
|
38
|
+
'--chotto-replystickermessage-preview-image-cursor': string;
|
|
39
|
+
/** Вписывание превью-стикера */
|
|
40
|
+
'--chotto-replystickermessage-preview-image-object-fit': string;
|
|
41
|
+
/** Скругление превью-стикера */
|
|
42
|
+
'--chotto-replystickermessage-preview-image-border-radius': string;
|
|
43
|
+
/** Внешние отступы превью-стикера */
|
|
44
|
+
'--chotto-replystickermessage-preview-image-margin': string;
|
|
45
|
+
/** Ширина анимированного превью-стикера (TGS) */
|
|
46
|
+
'--chotto-replystickermessage-preview-image-animated-width': string;
|
|
47
|
+
/** Высота анимированного превью-стикера (TGS) */
|
|
48
|
+
'--chotto-replystickermessage-preview-image-animated-height': string;
|
|
49
|
+
/** Курсор при наведении на анимированное превью */
|
|
50
|
+
'--chotto-replystickermessage-preview-image-animated-cursor': string;
|
|
51
|
+
/** Вписывание анимированного превью-стикера (TGS) */
|
|
52
|
+
'--chotto-replystickermessage-preview-image-animated-object-fit': string;
|
|
53
|
+
/** Скругление анимированного превью-стикера */
|
|
54
|
+
'--chotto-replystickermessage-preview-image-animated-border-radius': string;
|
|
55
|
+
/** Внешние отступы анимированного превью-стикера */
|
|
56
|
+
'--chotto-replystickermessage-preview-image-animated-margin': string;
|
|
57
|
+
/** Ширина стикера в модальном окне */
|
|
58
|
+
'--chotto-replystickermessage-modal-image-width': string;
|
|
59
|
+
/** Высота стикера в модальном окне */
|
|
60
|
+
'--chotto-replystickermessage-modal-image-height': string;
|
|
61
|
+
/** Вписывание стикера в модальном окне */
|
|
62
|
+
'--chotto-replystickermessage-modal-image-object-fit': string;
|
|
63
|
+
/** Скругление стикера в модальном окне */
|
|
64
|
+
'--chotto-replystickermessage-modal-image-border-radius': string;
|
|
65
|
+
/** Максимальная высота стикера в модальном окне */
|
|
66
|
+
'--chotto-replystickermessage-modal-image-max-height': string;
|
|
67
|
+
/** Ширина анимированного стикера в модальном окне (TGS) */
|
|
68
|
+
'--chotto-replystickermessage-modal-image-animated-width': string;
|
|
69
|
+
/** Высота анимированного стикера в модальном окне (TGS) */
|
|
70
|
+
'--chotto-replystickermessage-modal-image-animated-height': string;
|
|
71
|
+
/** Вписывание анимированного стикера в модальном окне (TGS) */
|
|
72
|
+
'--chotto-replystickermessage-modal-image-animated-object-fit': string;
|
|
73
|
+
/** Скругление анимированного стикера в модальном окне */
|
|
74
|
+
'--chotto-replystickermessage-modal-image-animated-border-radius': string;
|
|
75
|
+
/** Максимальная высота анимированного стикера в модальном окне (TGS) */
|
|
76
|
+
'--chotto-replystickermessage-modal-image-animated-max-height': string;
|
|
77
|
+
/** Перенос слов в контейнере текста */
|
|
78
|
+
'--chotto-replystickermessage-text-container-word-wrap': string;
|
|
79
|
+
/** Выравнивание содержимого текстового контейнера */
|
|
80
|
+
'--chotto-replystickermessage-text-container-align-content': string;
|
|
81
|
+
/** Перенос слов в тексте */
|
|
82
|
+
'--chotto-replystickermessage-text-container-word-break': string;
|
|
83
|
+
/** Отступ сверху у текста */
|
|
84
|
+
'--chotto-replystickermessage-text-margin-top': string;
|
|
85
|
+
/** Размер шрифта текста */
|
|
86
|
+
'--chotto-replystickermessage-text-font-size': string;
|
|
87
|
+
/** Цвет текста */
|
|
88
|
+
'--chotto-replystickermessage-text-color': string;
|
|
89
|
+
/** Отображение описания ответа */
|
|
90
|
+
'--chotto-replystickermessage-reply-description-display': string;
|
|
91
|
+
/** Выравнивание элементов описания ответа */
|
|
92
|
+
'--chotto-replystickermessage-reply-description-align-items': string;
|
|
93
|
+
/** Промежуток между элементами описания ответа */
|
|
94
|
+
'--chotto-replystickermessage-reply-description-column-gap': string;
|
|
95
|
+
/** Отступ снизу описания ответа */
|
|
96
|
+
'--chotto-replystickermessage-reply-description-margin-bottom': string;
|
|
97
|
+
/** Непереносимый пробел в описании */
|
|
98
|
+
'--chotto-replystickermessage-reply-description-white-space': string;
|
|
99
|
+
/** Цвет спана в описании ответа */
|
|
100
|
+
'--chotto-replystickermessage-reply-description-span-color': string;
|
|
101
|
+
/** Переход появления модального окна */
|
|
102
|
+
'--chotto-replystickermessage-modal-fade-enter-active-transition': string;
|
|
103
|
+
/** Прозрачность модального окна в начале */
|
|
104
|
+
'--chotto-replystickermessage-modal-fade-enter-from-opacity': string;
|
|
105
|
+
/** Прозрачность модального окна в конце */
|
|
106
|
+
'--chotto-replystickermessage-modal-fade-enter-to-opacity': string;
|
|
107
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { IStickerMessage } from '@/types';
|
|
2
|
+
import '@/utils/suppress-lit-warning';
|
|
3
|
+
import './libs/tgs-player/lottie-player.esm.js';
|
|
4
|
+
import './libs/tgs-player/tgs-player.esm.js';
|
|
5
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
message: {
|
|
7
|
+
type: () => IStickerMessage;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
applyStyle: {
|
|
11
|
+
type: FunctionConstructor;
|
|
12
|
+
default: () => null;
|
|
13
|
+
};
|
|
14
|
+
isFirstInSeries: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
reply: (...args: any[]) => void;
|
|
20
|
+
action: (...args: any[]) => void;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
message: {
|
|
23
|
+
type: () => IStickerMessage;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
applyStyle: {
|
|
27
|
+
type: FunctionConstructor;
|
|
28
|
+
default: () => null;
|
|
29
|
+
};
|
|
30
|
+
isFirstInSeries: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
}>> & Readonly<{
|
|
35
|
+
onReply?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
onAction?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
applyStyle: Function;
|
|
39
|
+
isFirstInSeries: boolean;
|
|
40
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
41
|
+
export default _default;
|