@mobilon-dev/chotto 0.3.4 → 0.3.5

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.
Files changed (147) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +303 -303
  3. package/dist/{ModalVideoRecorder-CXr2HQuY.js → ModalVideoRecorder-BFZoDkGK.js} +2 -2
  4. package/dist/chotto.css +1 -1
  5. package/dist/index-DRZepRE6.js +20957 -0
  6. package/dist/types/{helpers → apps/helpers}/index.d.ts +5 -5
  7. package/dist/types/apps/helpers/sortByTimestamp.d.ts +5 -0
  8. package/dist/types/apps/helpers/useModalSelectUser2.d.ts +1 -0
  9. package/dist/types/{transform → apps/transform}/transformToFeed.d.ts +1 -1
  10. package/dist/types/components/atoms/Modal/styles/types.d.ts +161 -0
  11. package/dist/types/components/atoms/ModalFullscreen/styles/types.d.ts +133 -0
  12. package/dist/types/components/atoms/ModalNoFooter/styles/types.d.ts +105 -0
  13. package/dist/types/components/atoms/Tooltip/styles/types.d.ts +61 -0
  14. package/dist/types/components/blocks/ChatItem/ChatItem.vue.d.ts +23 -19
  15. package/dist/types/components/blocks/ChatItem/styles/types.d.ts +293 -0
  16. package/dist/types/components/blocks/ChatList/ChatList.vue.d.ts +1 -1
  17. package/dist/types/components/blocks/ChatList/styles/types.d.ts +123 -0
  18. package/dist/types/components/blocks/ChatPanel/styles/types.d.ts +53 -0
  19. package/dist/types/components/blocks/FeedFoundItem/styles/types.d.ts +89 -0
  20. package/dist/types/components/blocks/FeedFoundObjects/FeedFoundObjects.vue.d.ts +2 -2
  21. package/dist/types/components/blocks/FeedFoundObjects/styles/types.d.ts +37 -0
  22. package/dist/types/components/blocks/FeedSearch/styles/types.d.ts +51 -0
  23. package/dist/types/components/blocks/MessageKeyboard/styles/types.d.ts +51 -0
  24. package/dist/types/components/blocks/index.d.ts +0 -1
  25. package/dist/types/components/compounds/ChatInput/styles/types.d.ts +159 -0
  26. package/dist/types/components/compounds/CommunicationPanel/styles/types.d.ts +401 -0
  27. package/dist/types/components/compounds/Feed/Feed.vue.d.ts +11 -2
  28. package/dist/types/components/compounds/Feed/messages/AudioMessage/styles/types.d.ts +437 -0
  29. package/dist/types/components/compounds/Feed/messages/BaseReplyMessage/BaseReplyMessage.vue.d.ts +5 -1
  30. package/dist/types/components/compounds/Feed/messages/BaseReplyMessage/styles/types.d.ts +73 -0
  31. package/dist/types/components/compounds/Feed/messages/CallMessage/styles/types.d.ts +305 -0
  32. package/dist/types/components/compounds/Feed/messages/DateMessage/styles/types.d.ts +34 -0
  33. package/dist/types/components/compounds/Feed/messages/DateMessageSticky/styles/types.d.ts +35 -0
  34. package/dist/types/components/compounds/Feed/messages/FileMessage/styles/types.d.ts +253 -0
  35. package/dist/types/components/compounds/Feed/messages/ImageMessage/styles/types.d.ts +237 -0
  36. package/dist/types/components/compounds/Feed/messages/ReplyAudioMessage/styles/types.d.ts +71 -0
  37. package/dist/types/components/compounds/Feed/messages/ReplyCallMessage/styles/types.d.ts +61 -0
  38. package/dist/types/components/compounds/Feed/messages/ReplyFileMessage/styles/types.d.ts +67 -0
  39. package/dist/types/components/compounds/Feed/messages/ReplyImageMessage/styles/types.d.ts +85 -0
  40. package/dist/types/components/compounds/Feed/messages/ReplyTextMessage/styles/types.d.ts +35 -0
  41. package/dist/types/components/compounds/Feed/messages/ReplyVideoMessage/styles/types.d.ts +81 -0
  42. package/dist/types/components/compounds/Feed/messages/SystemMessage/styles/types.d.ts +23 -0
  43. package/dist/types/components/compounds/Feed/messages/TextMessage/styles/types.d.ts +203 -0
  44. package/dist/types/components/compounds/Feed/messages/TypingMessage/styles/types.d.ts +93 -0
  45. package/dist/types/components/compounds/Feed/messages/VideoMessage/VideoMessage.vue.d.ts +1 -1
  46. package/dist/types/components/compounds/Feed/messages/VideoMessage/styles/types.d.ts +241 -0
  47. package/dist/types/components/compounds/Feed/styles/types.d.ts +119 -0
  48. package/dist/types/components/compounds/ModalVideoRecorder/styles/types.d.ts +71 -0
  49. package/dist/types/components/compounds/SideBar/styles/types.d.ts +279 -0
  50. package/dist/types/components/compounds/TemplateSelector/TemplateSelector.vue.d.ts +2 -0
  51. package/dist/types/components/compounds/TemplateSelector/styles/types.d.ts +311 -0
  52. package/dist/types/components/compounds/UserProfile/styles/types.d.ts +61 -0
  53. package/dist/types/components/containers/BaseContainer/styles/types.d.ts +39 -0
  54. package/dist/types/components/containers/FloatContainer/styles/types.d.ts +89 -0
  55. package/dist/types/components/containers/PlaceholderComponent/styles/types.d.ts +17 -0
  56. package/dist/types/components/containers/SplashScreen/styles/types.d.ts +17 -0
  57. package/dist/types/components/elements/AudioRecorder/styles/types.d.ts +79 -0
  58. package/dist/types/components/elements/ButtonCommandsSelector/styles/types.d.ts +23 -0
  59. package/dist/types/components/elements/ButtonContextMenu/styles/types.d.ts +15 -0
  60. package/dist/types/components/elements/ButtonEmojiPicker/styles/types.d.ts +33 -0
  61. package/dist/types/components/elements/ButtonTemplateSelector/styles/types.d.ts +29 -0
  62. package/dist/types/components/elements/ButtonWabaTemplateSelector/styles/types.d.ts +29 -0
  63. package/dist/types/components/elements/ChannelSelector/ChannelSelector.vue.d.ts +2 -2
  64. package/dist/types/components/elements/ChannelSelector/styles/types.d.ts +49 -0
  65. package/dist/types/components/elements/ChatFilter/styles/types.d.ts +43 -0
  66. package/dist/types/components/elements/ChatInfo/styles/types.d.ts +93 -0
  67. package/dist/types/components/elements/ChatTabs/styles/types.d.ts +65 -0
  68. package/dist/types/components/elements/ContactInfo/ContactInfo.vue.d.ts +2 -2
  69. package/dist/types/components/elements/ContactInfo/stories/ContactInfo.stories.d.ts +2 -2
  70. package/dist/types/components/elements/ContactInfo/styles/types.d.ts +219 -0
  71. package/dist/types/components/elements/ContextMenu/styles/types.d.ts +59 -0
  72. package/dist/types/components/elements/FeedKeyboard/styles/types.d.ts +55 -0
  73. package/dist/types/components/elements/FilePreview/styles/types.d.ts +141 -0
  74. package/dist/types/components/elements/FileUploader/styles/types.d.ts +23 -0
  75. package/dist/types/components/elements/ThemeMode/styles/types.d.ts +99 -0
  76. package/dist/types/components/elements/VideoRecorder/styles/types.d.ts +37 -0
  77. package/dist/types/components/elements/WABAAttachmentSection/styles/types.d.ts +59 -0
  78. package/dist/types/components/elements/WABAQuickReplyButtons/styles/types.d.ts +35 -0
  79. package/dist/types/components/elements/WABASeparatedQuickButtons/styles/types.d.ts +65 -0
  80. package/dist/types/components/elements/WABATemplateSelector/WABATemplateSelector.vue.d.ts +2 -0
  81. package/dist/types/components/elements/WABATemplateSelector/stories/WABATemplateSelector.stories.d.ts +2 -0
  82. package/dist/types/components/elements/WABATemplateSelector/styles/types.d.ts +363 -0
  83. package/dist/types/components/layouts/AdaptiveExtendedLayout/styles/types.d.ts +83 -0
  84. package/dist/types/components/layouts/BaseLayout/styles/types.d.ts +63 -0
  85. package/dist/types/components/layouts/ChatWrapper/styles/types.d.ts +43 -0
  86. package/dist/types/components/layouts/ExtendedLayout/styles/types.d.ts +79 -0
  87. package/dist/types/components/layouts/FeedLayout/styles/types.d.ts +33 -0
  88. package/dist/types/components/molecules/CreateDialog/CreateDialog.vue.d.ts +2 -2
  89. package/dist/types/components/molecules/CreateDialog/stories/CreateDialog.stories.d.ts +2 -2
  90. package/dist/types/components/molecules/CreateDialog/styles/types.d.ts +19 -0
  91. package/dist/types/components/molecules/EmbedPreview/styles/types.d.ts +29 -0
  92. package/dist/types/components/molecules/LinkPreview/styles/types.d.ts +55 -0
  93. package/dist/types/components/molecules/SelectUser/styles/types.d.ts +53 -0
  94. package/dist/types/components/molecules/SelectUser2/styles/types.d.ts +19 -0
  95. package/dist/types/components/molecules/index.d.ts +4 -0
  96. package/dist/types/hooks/index.d.ts +12 -0
  97. package/dist/types/index.d.ts +1 -1
  98. package/dist/types/themes/index.d.ts +1 -2
  99. package/dist/types/themes/types.d.ts +64 -113
  100. package/dist/types/types/components.d.ts +33 -0
  101. package/dist/vuessages.es.js +65 -62
  102. package/dist/vuessages.umd.js +6 -6
  103. package/package.json +64 -63
  104. package/dist/CreateChat-Dv1RI_Uw.js +0 -31
  105. package/dist/CreateChat2-DR5H827U.js +0 -42
  106. package/dist/CreateDialog-lcy7szHJ.js +0 -77
  107. package/dist/SelectUser2-BpDHmoMk.js +0 -46
  108. package/dist/chat-background.svg +0 -3
  109. package/dist/index-BAlmGgQr.js +0 -20864
  110. package/dist/types/helpers/sortByTimestamp.d.ts +0 -1
  111. package/dist/types/helpers/useModalSelectUser2.d.ts +0 -1
  112. package/dist/types/themes/constants.d.ts +0 -18
  113. /package/dist/types/{BaseAdaptiveExtendedChatApp.vue.d.ts → apps/BaseAdaptiveExtendedChatApp/BaseAdaptiveExtendedChatApp.vue.d.ts} +0 -0
  114. /package/dist/types/{BaseBaseChatApp.vue.d.ts → apps/BaseBaseChatApp/BaseBaseChatApp.vue.d.ts} +0 -0
  115. /package/dist/types/{BaseExtendedChatApp.vue.d.ts → apps/BaseExtendedChatApp/BaseExtendedChatApp.vue.d.ts} +0 -0
  116. /package/dist/types/{BaseFeedChatApp.vue.d.ts → apps/BaseFeedChatApp/BaseFeedChatApp.vue.d.ts} +0 -0
  117. /package/dist/types/{FloatExtendedChatApp.vue.d.ts → apps/FloatExtendedChatApp/FloatExtendedChatApp.vue.d.ts} +0 -0
  118. /package/dist/types/{MobilonExtendedChatApp.vue.d.ts → apps/MobilonExtendedChatApp/MobilonExtendedChatApp.vue.d.ts} +0 -0
  119. /package/dist/types/{data → apps/data}/channels.d.ts +0 -0
  120. /package/dist/types/{data → apps/data}/chats.d.ts +0 -0
  121. /package/dist/types/{data → apps/data}/groupTemplates.d.ts +0 -0
  122. /package/dist/types/{data → apps/data}/index.d.ts +0 -0
  123. /package/dist/types/{data → apps/data}/messages.d.ts +0 -0
  124. /package/dist/types/{data → apps/data}/sidebarItems.d.ts +0 -0
  125. /package/dist/types/{data → apps/data}/templates.d.ts +0 -0
  126. /package/dist/types/{data → apps/data}/userProfile.d.ts +0 -0
  127. /package/dist/types/{data → apps/data}/users.d.ts +0 -0
  128. /package/dist/types/{data → apps/data}/wabaTemplates.d.ts +0 -0
  129. /package/dist/types/{helpers → apps/helpers}/formatTimestamp.d.ts +0 -0
  130. /package/dist/types/{helpers → apps/helpers}/playNotificationAudio.d.ts +0 -0
  131. /package/dist/types/{helpers → apps/helpers}/prepareTimeline.d.ts +0 -0
  132. /package/dist/types/{helpers → apps/helpers}/useCreateChat.d.ts +0 -0
  133. /package/dist/types/{helpers → apps/helpers}/useCreateChat2.d.ts +0 -0
  134. /package/dist/types/{helpers → apps/helpers}/useCreateDialog.d.ts +0 -0
  135. /package/dist/types/{stores → apps/stores}/useChatStore.d.ts +0 -0
  136. /package/dist/types/{helpers → hooks}/generatePreview.d.ts +0 -0
  137. /package/dist/types/{helpers → hooks}/getStatusMessage.d.ts +0 -0
  138. /package/dist/types/{helpers → hooks}/getTypeFileByMime.d.ts +0 -0
  139. /package/dist/types/{helpers → hooks}/throttle.d.ts +0 -0
  140. /package/dist/types/{helpers → hooks}/uploadFile.d.ts +0 -0
  141. /package/dist/types/{helpers → hooks}/useDelayDebouncedRef.d.ts +0 -0
  142. /package/dist/types/{helpers → hooks}/useImmediateDebouncedRef.d.ts +0 -0
  143. /package/dist/types/{helpers → hooks}/useMessage.d.ts +0 -0
  144. /package/dist/types/{helpers → hooks}/useModal.d.ts +0 -0
  145. /package/dist/types/{helpers → hooks}/useSearchModel.d.ts +0 -0
  146. /package/dist/types/{helpers → hooks}/useTheme.d.ts +0 -0
  147. /package/dist/types/{helpers → hooks}/useVideoRecorder.d.ts +0 -0
@@ -1,116 +1,67 @@
1
- export type ThemeName = 'dark' | 'default' | 'green' | 'mobilon1';
2
- export type ColorValue = string;
3
- export type FontFamily = string;
4
- export type FontSize = string;
5
- export type FontWeight = string | number;
6
- export type BorderRadius = string;
7
- export type BoxShadow = string;
8
- export type Margin = string;
9
- export type Padding = string;
10
- export type Width = string;
11
- export type Height = string;
1
+ /**
2
+ * CSS переменные для тем Chotto
3
+ */
12
4
  export interface ChottoThemeVariables {
13
- '--chotto-theme-font-family': FontFamily;
14
- '--chotto-theme-container-font-weight': FontWeight;
5
+ '--chotto-theme-primary-color': string;
6
+ '--chotto-theme-secondary-color': string;
7
+ '--chotto-theme-tertiary-color': string;
8
+ '--chotto-theme-primary-text-color': string;
9
+ '--chotto-theme-secondary-text-color': string;
10
+ '--chotto-theme-shadow-color': string;
11
+ '--chotto-theme-shadow-light-color': string;
12
+ '--chotto-theme-status-color-received': string;
13
+ '--chotto-theme-status-color-read': string;
14
+ '--chotto-theme-font-family': string;
15
+ '--chotto-theme-header-font': string;
16
+ '--chotto-theme-header-font-size': string;
17
+ '--chotto-theme-header-font-color': string;
18
+ '--chotto-theme-title-font-size': string;
19
+ '--chotto-theme-text-font-size': string;
20
+ '--chotto-theme-additional-text-font-size': string;
21
+ '--chotto-theme-small-text-font-size': string;
22
+ '--chotto-theme-small-text-font-weight': string | number;
23
+ '--chotto-theme-context-menu-font-size': string;
24
+ '--chotto-theme-header-font-weight': string | number;
25
+ '--chotto-theme-title-font-weight': string | number;
26
+ '--chotto-theme-container-font-weight': string | number;
27
+ '--chotto-theme-button-icon-size': string;
28
+ '--chotto-theme-text-icon-size': string;
29
+ '--chotto-theme-small-text-icon-size': string;
15
30
  '--chotto-theme-container-borders': string;
16
- '--chotto-theme-float-container-border-radius-header': BorderRadius;
17
- '--chotto-theme-float-container-box-shadow': BoxShadow;
18
- '--chotto-theme-float-container-bg-header': ColorValue;
19
- '--chotto-theme-modal-padding': Padding;
20
- '--chotto-theme-modal-border-radius': BorderRadius;
21
- '--chotto-theme-modal-mask-background': ColorValue;
22
- '--chotto-theme-modal-overlay-shadow': BoxShadow;
23
- '--chotto-theme-modal-bg': ColorValue;
24
- '--chotto-theme-layout-extended-third-col-bg': ColorValue;
25
- '--chotto-theme-layout-extended-second-col-bg': ColorValue;
26
- '--chotto-theme-layout-extended-first-col-bg': ColorValue;
27
- '--chotto-theme-layout-extended-first-col-width': Width;
28
- '--chotto-theme-layout-extended-second-col-width': Width;
29
- '--chotto-theme-layout-base-second-col-bg': ColorValue;
30
- '--chotto-theme-layout-base-first-col-bg': ColorValue;
31
- '--chotto-theme-layout-feed-bg': ColorValue;
32
- '--chotto-theme-message-right-bg': ColorValue;
33
- '--chotto-theme-message-right-secondary-bg': ColorValue;
34
- '--chotto-theme-message-left-bg': ColorValue;
35
- '--chotto-theme-message-left-secondary-bg': ColorValue;
36
- '--chotto-theme-message-accent-line-color': ColorValue;
37
- '--chotto-theme-message-focused-color': ColorValue;
38
- '--chotto-theme-message-margin': Margin;
39
- '--chotto-theme-message-type-icon-bg-color': ColorValue;
40
- '--chotto-theme-message-type-icon-color': ColorValue;
41
- '--chotto-theme-message-popup-info-bg-color': ColorValue;
42
- '--chotto-theme-message-popup-info-color': ColorValue;
43
- '--chotto-theme-message-border-radius': BorderRadius;
44
- '--chotto-theme-audio-message-transcript-delimiter-color': ColorValue;
45
- '--chotto-theme-audio-message-pbc-background-color': ColorValue;
46
- '--chotto-theme-audio-message-pb-background-color': ColorValue;
47
- '--chotto-theme-call-message-phone-icon-missed-color': ColorValue;
48
- '--chotto-theme-system-message-bg-color': ColorValue;
49
- '--chotto-theme-primary-color': ColorValue;
50
- '--chotto-theme-secondary-color': ColorValue;
51
- '--chotto-theme-primary-text-color': ColorValue;
52
- '--chotto-theme-secondary-text-color': ColorValue;
53
- '--chotto-theme-header-font': FontFamily;
54
- '--chotto-theme-header-font-size': FontSize;
55
- '--chotto-theme-title-font-size': FontSize;
56
- '--chotto-theme-text-font-size': FontSize;
57
- '--chotto-theme-additional-text-font-size': FontSize;
58
- '--chotto-theme-small-text-font-size': FontSize;
59
- '--chotto-theme-header-font-weight': FontWeight;
60
- '--chotto-theme-title-font-weight': FontWeight;
61
- '--chotto-theme-button-icon-size': FontSize;
62
- '--chotto-theme-text-icon-size': FontSize;
63
- '--chotto-theme-small-text-icon-size': FontSize;
64
- '--chotto-theme-button-color-active': ColorValue;
65
- '--chotto-theme-button-color-hover': ColorValue;
66
- '--chotto-theme-button-color-disabled': ColorValue;
67
- '--chotto-theme-action-button-color-active': ColorValue;
68
- '--chotto-theme-action-button-color-hover': ColorValue;
69
- '--chotto-theme-action-button-color-disabled': ColorValue;
70
- '--chotto-theme-shadow-color': ColorValue;
71
- '--chotto-theme-shadow-light-color': ColorValue;
72
- '--chotto-theme-status-color-received': ColorValue;
73
- '--chotto-theme-status-color-read': ColorValue;
74
- '--chotto-theme-item-background-color-focus': ColorValue;
75
- '--chotto-theme-item-background-color-hover': ColorValue;
76
- '--chotto-theme-item-border-color': ColorValue;
77
- '--chotto-theme-unread-background-color': ColorValue;
78
- '--chotto-theme-unread-text-color': ColorValue;
79
- '--chotto-theme-scrollbar-bg': ColorValue;
80
- '--chotto-theme-scrollbar-thumb-bg': ColorValue;
81
- '--chotto-theme-header-font-color'?: ColorValue;
82
- '--chotto-theme-small-text-font-weight'?: FontWeight;
83
- '--chotto-theme-context-menu-font-size'?: FontSize;
84
- '--chotto-theme-danger-button-color-active'?: ColorValue;
85
- '--chotto-theme-danger-button-color-hover'?: ColorValue;
86
- '--chotto-theme-danger-button-color-disabled'?: ColorValue;
87
- }
88
- export interface ThemeConfig {
89
- name: ThemeName;
90
- displayName: string;
91
- description: string;
92
- variables: ChottoThemeVariables;
93
- }
94
- export type ThemeRegistry = Record<ThemeName, ThemeConfig>;
95
- export type ChottoThemeVariableName = keyof ChottoThemeVariables;
96
- export type RequiredChottoThemeVariables = Omit<ChottoThemeVariables, '--chotto-theme-header-font-color' | '--chotto-theme-small-text-font-weight' | '--chotto-theme-context-menu-font-size' | '--chotto-theme-danger-button-color-active' | '--chotto-theme-danger-button-color-hover' | '--chotto-theme-danger-button-color-disabled'>;
97
- export type OptionalChottoThemeVariables = Pick<ChottoThemeVariables, '--chotto-theme-header-font-color' | '--chotto-theme-small-text-font-weight' | '--chotto-theme-context-menu-font-size' | '--chotto-theme-danger-button-color-active' | '--chotto-theme-danger-button-color-hover' | '--chotto-theme-danger-button-color-disabled'>;
98
- export interface ThemeValidationResult {
99
- theme: ThemeName;
100
- isValid: boolean;
101
- missingVariables: ChottoThemeVariableName[];
102
- extraVariables: ChottoThemeVariableName[];
103
- syntaxErrors: Array<{
104
- variable: ChottoThemeVariableName;
105
- error: string;
106
- line: number;
107
- }>;
108
- }
109
- export interface ThemeValidationSummary {
110
- totalThemes: number;
111
- validThemes: number;
112
- totalVariables: number;
113
- totalErrors: number;
114
- totalWarnings: number;
115
- results: ThemeValidationResult[];
31
+ '--chotto-theme-layout-extended-third-col-bg': string;
32
+ '--chotto-theme-layout-extended-second-col-bg': string;
33
+ '--chotto-theme-layout-extended-first-col-bg': string;
34
+ '--chotto-theme-layout-extended-first-col-width': string;
35
+ '--chotto-theme-layout-extended-second-col-width': string;
36
+ '--chotto-theme-layout-base-second-col-bg': string;
37
+ '--chotto-theme-layout-base-first-col-bg': string;
38
+ '--chotto-theme-layout-feed-bg': string;
39
+ '--chotto-theme-message-right-bg': string;
40
+ '--chotto-theme-message-right-secondary-bg': string;
41
+ '--chotto-theme-message-left-bg': string;
42
+ '--chotto-theme-message-left-secondary-bg': string;
43
+ '--chotto-theme-message-accent-line-color': string;
44
+ '--chotto-theme-message-focused-color': string;
45
+ '--chotto-theme-message-margin': string;
46
+ '--chotto-theme-message-type-icon-bg-color': string;
47
+ '--chotto-theme-message-type-icon-color': string;
48
+ '--chotto-theme-message-border-radius': string;
49
+ '--chotto-theme-message-modal-padding': string;
50
+ '--chotto-theme-message-modal-border-radius': string;
51
+ '--chotto-theme-message-modal-mask-background': string;
52
+ '--chotto-theme-message-modal-overlay-shadow': string;
53
+ '--chotto-theme-message-modal-bg': string;
54
+ '--chotto-theme-button-color-active': string;
55
+ '--chotto-theme-button-color-hover': string;
56
+ '--chotto-theme-button-color-disabled': string;
57
+ '--chotto-theme-action-button-color-active': string;
58
+ '--chotto-theme-action-button-color-hover': string;
59
+ '--chotto-theme-action-button-color-disabled': string;
60
+ '--chotto-theme-item-background-color-focus': string;
61
+ '--chotto-theme-item-background-color-hover': string;
62
+ '--chotto-theme-item-border-color': string;
63
+ '--chotto-theme-unread-background-color': string;
64
+ '--chotto-theme-unread-text-color': string;
65
+ '--chotto-theme-scrollbar-bg': string;
66
+ '--chotto-theme-scrollbar-thumb-bg': string;
116
67
  }
@@ -47,3 +47,36 @@ export interface IFilePreview {
47
47
  fileName?: string;
48
48
  fileSize: string;
49
49
  }
50
+ export interface IChatDialog {
51
+ branchId: string;
52
+ dialogId: string;
53
+ attributeId: string;
54
+ channelId: string;
55
+ icon?: string;
56
+ name: string;
57
+ fullname: string;
58
+ countUnread: number;
59
+ 'lastActivity.time': string;
60
+ 'lastActivity.timestamp': number;
61
+ isSelected: boolean;
62
+ colorUnread?: string;
63
+ }
64
+ export interface IChatItem {
65
+ chatId: number;
66
+ name: string;
67
+ avatar?: string;
68
+ countUnread: number;
69
+ lastMessage: string;
70
+ 'lastActivity.time': string;
71
+ 'lastActivity.timestamp': string;
72
+ isFixedBottom: boolean;
73
+ isFixedTop?: boolean;
74
+ status: string;
75
+ 'lastMessage.status': string;
76
+ actions?: IAction[];
77
+ typing: boolean;
78
+ metadata: string;
79
+ dialogsExpanded: boolean;
80
+ dialogs?: IChatDialog[];
81
+ isSelected: boolean;
82
+ }
@@ -1,67 +1,70 @@
1
- import { Q as s, A as t, I as o, N as r, B as n, l, m as d, n as i, o as u, p as c, q as m, r as C, j as p, C as h, c as B, d as S, s as F, X as M, i as y, t as A, u as T, G as P, O as b, F as f, e as I, f as L, v as W, R as x, g, w as k, x as v, J as E, L as R, Y as U, h as w, M as j, a as D, b as K, P as N, H as Q, S as V, K as O, k as q, y as z, T as G, U as H, V as J, W as X, z as Y, D as Z, E as $, a4 as _, aa, a8 as ea, a5 as sa, a6 as ta, a7 as oa, a9 as ra, Z as na, $ as la, a0 as da, a1 as ia, a3 as ua, a2 as ca } from "./index-BAlmGgQr.js";
1
+ import { Z as t, A as o, O as r, X as n, B as l, l as d, m as i, n as u, o as c, p as C, q as h, r as m, i as p, C as F, c as S, d as B, s as M, a0 as A, h as y, t as P, u as T, G as b, H as g, I, J as L, Y as W, j as v, F as x, e as f, v as k, $ as w, f as E, w as R, x as U, P as j, L as K, a1 as Q, g as V, M as D, a as N, b as O, Q as q, N as z, K as G, S as H, R as J, k as X, y as Y, T as Z, U as $, V as _, W as aa, z as ea, D as sa, E as ta, a2 as oa, a4 as ra, a5 as na, a3 as la, a6 as da, a7 as ia, a8 as ua, a9 as ca, ac as Ca, aa as ha, ab as ma } from "./index-DRZepRE6.js";
2
+ import "vue";
2
3
  export {
3
- s as AdaptiveExtendedLayout,
4
- t as AudioRecorder,
5
- o as BaseContainer,
6
- r as BaseLayout,
7
- n as ButtonCommandsSelector,
8
- l as ButtonContextMenu,
9
- d as ButtonEmojiPicker,
10
- i as ButtonTemplateSelector,
11
- u as ButtonWabaTemplateSelector,
12
- c as ChannelSelector,
13
- m as ChatFilter,
14
- C as ChatInfo,
4
+ t as AdaptiveExtendedLayout,
5
+ o as AudioRecorder,
6
+ r as BaseContainer,
7
+ n as BaseLayout,
8
+ l as ButtonCommandsSelector,
9
+ d as ButtonContextMenu,
10
+ i as ButtonEmojiPicker,
11
+ u as ButtonTemplateSelector,
12
+ c as ButtonWabaTemplateSelector,
13
+ C as ChannelSelector,
14
+ h as ChatFilter,
15
+ m as ChatInfo,
15
16
  p as ChatInput,
16
- h as ChatItem,
17
- B as ChatList,
18
- S as ChatPanel,
19
- F as ChatTabs,
20
- M as ChatWrapper,
17
+ F as ChatItem,
18
+ S as ChatList,
19
+ B as ChatPanel,
20
+ M as ChatTabs,
21
+ A as ChatWrapper,
21
22
  y as CommunicationPanel,
22
- A as ContactInfo,
23
+ P as ContactInfo,
23
24
  T as ContextMenu,
24
- P as EmbedPreview,
25
- b as ExtendedLayout,
26
- f as Feed,
27
- I as FeedFoundItem,
28
- L as FeedFoundObjects,
29
- W as FeedKeyboard,
30
- x as FeedLayout,
31
- g as FeedSearch,
32
- k as FilePreview,
33
- v as FileUploader,
34
- E as FloatContainer,
35
- R as LinkPreview,
36
- U as MenuIcon,
37
- w as MessageKeyboard,
38
- j as Modal,
39
- D as ModalFullscreen,
40
- K as ModalNoFooter,
41
- N as PlaceholderComponent,
42
- Q as SelectUser,
43
- V as SideBar,
44
- O as SplashScreen,
45
- q as TemplateSelector,
46
- z as ThemeMode,
47
- G as Tooltip,
48
- H as UserProfile,
49
- J as VideoRecorder,
50
- X as WABAAttachmentSection,
51
- Y as WABAQuickReplyButtons,
52
- Z as WABASeparatedQuickButtons,
53
- $ as WABATemplateSelector,
54
- _ as formatTimestamp,
55
- aa as getStatus,
56
- ea as getTypeFileByMime,
57
- sa as insertDaySeparators,
58
- ta as playNotificationAudio,
59
- oa as sortByTimestamp,
60
- ra as statuses,
61
- na as useModal,
62
- la as useModalCreateChat,
63
- da as useModalCreateChat2,
64
- ia as useModalCreateDialog,
65
- ua as useModalSelectUser2,
66
- ca as useModalVideoRecorder
25
+ b as CreateChat,
26
+ g as CreateChat2,
27
+ I as CreateDialog,
28
+ L as EmbedPreview,
29
+ W as ExtendedLayout,
30
+ v as Feed,
31
+ x as FeedFoundItem,
32
+ f as FeedFoundObjects,
33
+ k as FeedKeyboard,
34
+ w as FeedLayout,
35
+ E as FeedSearch,
36
+ R as FilePreview,
37
+ U as FileUploader,
38
+ j as FloatContainer,
39
+ K as LinkPreview,
40
+ Q as MenuIcon,
41
+ V as MessageKeyboard,
42
+ D as Modal,
43
+ N as ModalFullscreen,
44
+ O as ModalNoFooter,
45
+ q as PlaceholderComponent,
46
+ z as SelectUser,
47
+ G as SelectUser2,
48
+ H as SideBar,
49
+ J as SplashScreen,
50
+ X as TemplateSelector,
51
+ Y as ThemeMode,
52
+ Z as Tooltip,
53
+ $ as UserProfile,
54
+ _ as VideoRecorder,
55
+ aa as WABAAttachmentSection,
56
+ ea as WABAQuickReplyButtons,
57
+ sa as WABASeparatedQuickButtons,
58
+ ta as WABATemplateSelector,
59
+ oa as generatePreview,
60
+ ra as getStatus,
61
+ na as getTypeFileByMime,
62
+ la as statuses,
63
+ da as throttle,
64
+ ia as uploadFile,
65
+ ua as useMessage,
66
+ ca as useModal,
67
+ Ca as useModalVideoRecorder,
68
+ ha as useSearchModel,
69
+ ma as useTheme
67
70
  };