@ethora/chat-component 26.4.2 → 26.4.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.
@@ -0,0 +1,4 @@
1
+ import { TypographyConfig } from '../types/models/config.model';
2
+ export declare function applyTypography(cfg?: TypographyConfig): void;
3
+ /** Remove everything {@link applyTypography} injected. */
4
+ export declare function clearTypography(): void;
@@ -0,0 +1,8 @@
1
+ import { TypographyConfig } from '../types/models/config.model';
2
+ /**
3
+ * Loads and applies the host-provided font configuration whenever it changes.
4
+ * Wired into the chat root (ReduxWrapper) so the font is in place before the
5
+ * UI paints. No-op when `typography` is undefined — the default system font
6
+ * stack is kept, so existing integrations are unaffected.
7
+ */
8
+ export declare function useTypography(typography?: TypographyConfig): void;
package/dist/main.css CHANGED
@@ -1 +1 @@
1
- body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}html,body,#root{height:100%;margin:0;padding:0}::-webkit-scrollbar{width:4px}::-webkit-scrollbar-thumb{background-color:#5e3fde;border-radius:6px}::-webkit-scrollbar-track{background-color:#f0f0f0}*{scrollbar-width:thin;scrollbar-color:#5e3fde #f0f0f0}.apple-emoji{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}.emoji-mart{max-width:320px;max-height:360px;overflow-y:auto;border-radius:12px;box-shadow:0 4px 12px #0000001a}.message-highlight{animation:messageHighlight 2s ease-out;transition:background-color .3s ease}@keyframes messageHighlight{0%{background-color:#2196f366;transform:scale(1.02);box-shadow:0 0 0 2px #2196f333}30%{background-color:#2196f34d;box-shadow:0 0 0 2px #2196f326}60%{background-color:#2196f333;box-shadow:0 0 0 1px #2196f31a}to{background-color:transparent;transform:scale(1);box-shadow:none}}@media(max-width:768px){.message-notification-container{left:50%!important;right:auto!important;transform:translate(-50%)!important;align-items:center!important}.message-notification-container[data-position-horizontal=left],.message-notification-container[data-position-horizontal=right]{left:50%!important;right:auto!important;transform:translate(-50%)!important}}
1
+ body{margin:0;font-family:var( --ethora-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif );-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}html,body,#root{height:100%;margin:0;padding:0}::-webkit-scrollbar{width:4px}::-webkit-scrollbar-thumb{background-color:#5e3fde;border-radius:6px}::-webkit-scrollbar-track{background-color:#f0f0f0}*{scrollbar-width:thin;scrollbar-color:#5e3fde #f0f0f0}.apple-emoji{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}.emoji-mart{max-width:320px;max-height:360px;overflow-y:auto;border-radius:12px;box-shadow:0 4px 12px #0000001a}.message-highlight{animation:messageHighlight 2s ease-out;transition:background-color .3s ease}@keyframes messageHighlight{0%{background-color:#2196f366;transform:scale(1.02);box-shadow:0 0 0 2px #2196f333}30%{background-color:#2196f34d;box-shadow:0 0 0 2px #2196f326}60%{background-color:#2196f333;box-shadow:0 0 0 1px #2196f31a}to{background-color:transparent;transform:scale(1);box-shadow:none}}@media(max-width:768px){.message-notification-container{left:50%!important;right:auto!important;transform:translate(-50%)!important;align-items:center!important}.message-notification-container[data-position-horizontal=left],.message-notification-container[data-position-horizontal=right]{left:50%!important;right:auto!important;transform:translate(-50%)!important}}
package/dist/main.d.ts CHANGED
@@ -9,4 +9,7 @@ export { useQRCodeChat, handleQRChatId } from './hooks/useQRCodeChatHandler';
9
9
  export { useInAppNotifications } from './hooks/useInAppNotifications';
10
10
  export { default as usePushNotifications } from './hooks/usePushNotifications';
11
11
  export { resendMessage } from './utils/resendMessage';
12
+ export { applyTypography, clearTypography } from './helpers/applyTypography';
13
+ export { useTypography } from './hooks/useTypography';
14
+ export type { TypographyConfig, FontFaceSource, } from './types/models/config.model';
12
15
  export { ChatInputTestIds, MessageBubbleTestIds, RoomListTestIds, AuthTestIds, } from './testIds';