@talkjs/web-components 0.3.14 → 0.3.15
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/default.cjs +1 -1
- package/default.d.ts +102 -1
- package/default.js +2 -2
- package/package.json +1 -1
package/default.d.ts
CHANGED
|
@@ -2044,6 +2044,107 @@ declare class InboxController {
|
|
|
2044
2044
|
get chatbox(): ChatboxController;
|
|
2045
2045
|
}
|
|
2046
2046
|
//#endregion
|
|
2047
|
+
//#region src/data/dependencyUrls.d.ts
|
|
2048
|
+
/**
|
|
2049
|
+
* Configuration object passed to {@link setDependencyUrls} to override the URLs
|
|
2050
|
+
* from which TalkJS UI components fetch external dependencies.
|
|
2051
|
+
*
|
|
2052
|
+
* @public
|
|
2053
|
+
*/
|
|
2054
|
+
interface DependencyUrls {
|
|
2055
|
+
/**
|
|
2056
|
+
* Override URLs for third-party libraries loaded dynamically at runtime.
|
|
2057
|
+
*/
|
|
2058
|
+
libs?: LibUrls;
|
|
2059
|
+
/**
|
|
2060
|
+
* Override URLs for emoji dataset JSON files (`emoji-picker-element-data`),
|
|
2061
|
+
* keyed by lowercase, hyphen-separated locale code (for example, `"en"`,
|
|
2062
|
+
* `"fr"`, `"zh-tw"`).
|
|
2063
|
+
*/
|
|
2064
|
+
emojiData?: Record<string, string>;
|
|
2065
|
+
/**
|
|
2066
|
+
* Override URLs for emoji picker UI translation modules
|
|
2067
|
+
* (`emoji-picker-element/i18n/*.js`), keyed by lowercase, hyphen-separated
|
|
2068
|
+
* locale code (for example, `"en"`, `"fr"`, `"zh-tw"`).
|
|
2069
|
+
*/
|
|
2070
|
+
emojiPickerTranslations?: Record<string, string>;
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* Custom URLs for third-party libraries loaded dynamically by TalkJS UI
|
|
2074
|
+
* components.
|
|
2075
|
+
*
|
|
2076
|
+
* @public
|
|
2077
|
+
*/
|
|
2078
|
+
interface LibUrls {
|
|
2079
|
+
/**
|
|
2080
|
+
* URL for the `emoji-picker-element` ESM bundle.
|
|
2081
|
+
*
|
|
2082
|
+
* @remarks
|
|
2083
|
+
* Defaults to `"https://cdn.jsdelivr.net/npm/emoji-picker-element@1.26.3/+esm"`.
|
|
2084
|
+
*/
|
|
2085
|
+
"emoji-picker-element"?: string;
|
|
2086
|
+
/**
|
|
2087
|
+
* URL for the `mpegts.js` library.
|
|
2088
|
+
*
|
|
2089
|
+
* @remarks
|
|
2090
|
+
* Defaults to `"https://cdn.jsdelivr.net/npm/mpegts.js@1.7.3"`.
|
|
2091
|
+
*/
|
|
2092
|
+
"mpegts.js"?: string;
|
|
2093
|
+
/**
|
|
2094
|
+
* URL for the `opus-media-recorder` WebM Opus encoder WebAssembly binary.
|
|
2095
|
+
*
|
|
2096
|
+
* @remarks
|
|
2097
|
+
* Defaults to `"https://cdn.jsdelivr.net/npm/opus-media-recorder@0.8.0/WebMOpusEncoder.wasm"`.
|
|
2098
|
+
*/
|
|
2099
|
+
"opus-media-recorder-wasm"?: string;
|
|
2100
|
+
}
|
|
2101
|
+
/**
|
|
2102
|
+
* Overrides the URLs from which TalkJS UI components fetch external
|
|
2103
|
+
* dependencies such as third-party libraries, emoji datasets, and emoji picker
|
|
2104
|
+
* translations.
|
|
2105
|
+
*
|
|
2106
|
+
* @remarks
|
|
2107
|
+
* All fields are optional and are deep-merged with existing values and built-in
|
|
2108
|
+
* defaults. Call this before mounting any TalkJS UI component. Calling it after
|
|
2109
|
+
* assets have started loading throws an `Error`.
|
|
2110
|
+
*
|
|
2111
|
+
* To disable automatic web font loading as well, call
|
|
2112
|
+
* {@link disableFontLoading}. See the
|
|
2113
|
+
* {@link https://talkjs.com/docs/Guides/Self_Hosting_Dependencies/ | Self-hosting dependencies}
|
|
2114
|
+
* guide for a full example.
|
|
2115
|
+
*
|
|
2116
|
+
* @param urls - Partial dependency URL overrides to merge into the current
|
|
2117
|
+
* configuration.
|
|
2118
|
+
*
|
|
2119
|
+
* @example
|
|
2120
|
+
* ```ts
|
|
2121
|
+
* setDependencyUrls({
|
|
2122
|
+
* libs: { "emoji-picker-element": "https://cdn.example.com/emoji-picker.js" },
|
|
2123
|
+
* });
|
|
2124
|
+
* ```
|
|
2125
|
+
*
|
|
2126
|
+
* @public
|
|
2127
|
+
*/
|
|
2128
|
+
declare function setDependencyUrls(urls: DependencyUrls): void;
|
|
2129
|
+
//#endregion
|
|
2130
|
+
//#region src/util/registerFonts.d.ts
|
|
2131
|
+
/**
|
|
2132
|
+
* Prevents TalkJS UI components from automatically registering web fonts
|
|
2133
|
+
* (`Inter` weights from the TalkJS CDN and the Windows country flag emoji
|
|
2134
|
+
* polyfill font).
|
|
2135
|
+
*
|
|
2136
|
+
* @remarks
|
|
2137
|
+
* Call this before mounting any TalkJS UI component. Calling it after a
|
|
2138
|
+
* component has already mounted throws an error.
|
|
2139
|
+
*
|
|
2140
|
+
* See the
|
|
2141
|
+
* {@link https://talkjs.com/docs/Guides/Self_Hosting_Dependencies/ | Self-hosting dependencies}
|
|
2142
|
+
* guide for how to self-host or replace TalkJS's fonts with CSS.
|
|
2143
|
+
*
|
|
2144
|
+
* @public
|
|
2145
|
+
*/
|
|
2146
|
+
declare function disableFontLoading(): void;
|
|
2147
|
+
//#endregion
|
|
2047
2148
|
//#region src/view/components/system/AudioPlayer.d.ts
|
|
2048
2149
|
/**
|
|
2049
2150
|
* @public
|
|
@@ -2726,6 +2827,6 @@ declare global {
|
|
|
2726
2827
|
}
|
|
2727
2828
|
}
|
|
2728
2829
|
//#endregion
|
|
2729
|
-
export { type AfterMessagesProps, type App, type AudioBlock, type AudioBlockProps, AudioPlayer, type AudioPlayerProps, type AvatarProps, type BackButtonClickEvent, type BaseChatboxProps, type BaseConversationListProps, type BeforeMessagesProps, type BrowserPermission, type BrowserPermissionRequest, type ChatHeaderProps, type ChatSearchBoxProps, type ChatSearchState, type ChatboxController, ChatboxElement, type ChatboxProps, type CommonChatboxProps, type CommonConversationListProps, type CompactMessageContentProps, type ConversationImageProps, type ConversationListController, ConversationListElement, type ConversationListItemProps, type ConversationListProps, type ConversationSearch, type ConversationSearchState, type ConversationSnapshot, type Coordinates, type DeleteMessageEvent, type DeviceFeatures, Editor, type EditorController, type EditorProps, EmojiPicker, type EmojiPickerProps, EmojiSuggestBar, type EmojiSuggestBarProps, type FileBlock, type FileBlockProps, type FocusMessageEvent, type GenericFileBlock, type GlobalSearchBoxProps, type GlobalSearchResultHeaderProps, type GlobalSearchResultItemProps, type GlobalSearchStatus, type GroupChatImageProps, Highlightable, type HighlightableProps, Icon, type IconProps, type ImageBlock, type ImageBlockProps, type InboxController, InboxElement, type InboxProps, KeyboardNavigationListItem, type KeyboardNavigationListItemProps, type LocationBlock, type LocationBlockProps, MentionSuggestList, type MentionSuggestListProps, type MentionableUser, MenuItem, type MenuItemProps, type MessageActionEvent, type MessageActionMenuProps, MessageContent, type MessageContentProps, type MessageDividerProps, type MessageFieldProps, type MessageListFooterProps, type MessageListHeaderProps, type MessagePermissions, type MessageProps, type MessageSearch, type MessageSearchState, type MessageSnapshot, type MessageStatus, type MissingBrowserPermissionEvent, type NoConversationSelectedProps, type ParticipantSnapshot, type PendingMessage, PopoverButton, type PopoverButtonProps, ReactionPicker, type ReactionPickerProps, type ReactionsSummarySnapshot, type RecordingPreviewProps, type ReferencedMessageProps, type ReferencedMessageSnapshot, type ReplyBarProps, SearchInput, type SearchInputProps, type SearchMessageSnapshot, type SelectConversationEvent, type SendMessageEvent, type SendMessageOverrides, type SingleReactionSnapshot, type TalkSession, Text, type TextBlock, type TextBlockProps, type TextProps, type Theme, TimeAgo, type TimeAgoProps, type Translation, type TranslationStrings, type TypingSnapshot, type UploadState, type UserPermissions, type UserSnapshot, type VideoBlock, type VideoBlockProps, VirtualMessage, type VirtualMessageProps, type VoiceBlock, type VoiceBlockProps, type VoiceRecorderController, type VoiceRecorderProps, type VoiceRecorderState, Waveform, type WaveformProps, classicTheme, defaultTheme, formatDuration, formatFilesize, getGoogleMapsUrls, getPhotoUrlWithFallback, getRandomColor, getSVGForInitials, html, useParticipants, useReactions, useTimeAgo, userFriendlyDate };
|
|
2830
|
+
export { type AfterMessagesProps, type App, type AudioBlock, type AudioBlockProps, AudioPlayer, type AudioPlayerProps, type AvatarProps, type BackButtonClickEvent, type BaseChatboxProps, type BaseConversationListProps, type BeforeMessagesProps, type BrowserPermission, type BrowserPermissionRequest, type ChatHeaderProps, type ChatSearchBoxProps, type ChatSearchState, type ChatboxController, ChatboxElement, type ChatboxProps, type CommonChatboxProps, type CommonConversationListProps, type CompactMessageContentProps, type ConversationImageProps, type ConversationListController, ConversationListElement, type ConversationListItemProps, type ConversationListProps, type ConversationSearch, type ConversationSearchState, type ConversationSnapshot, type Coordinates, type DeleteMessageEvent, type DependencyUrls, type DeviceFeatures, Editor, type EditorController, type EditorProps, EmojiPicker, type EmojiPickerProps, EmojiSuggestBar, type EmojiSuggestBarProps, type FileBlock, type FileBlockProps, type FocusMessageEvent, type GenericFileBlock, type GlobalSearchBoxProps, type GlobalSearchResultHeaderProps, type GlobalSearchResultItemProps, type GlobalSearchStatus, type GroupChatImageProps, Highlightable, type HighlightableProps, Icon, type IconProps, type ImageBlock, type ImageBlockProps, type InboxController, InboxElement, type InboxProps, KeyboardNavigationListItem, type KeyboardNavigationListItemProps, type LibUrls, type LocationBlock, type LocationBlockProps, MentionSuggestList, type MentionSuggestListProps, type MentionableUser, MenuItem, type MenuItemProps, type MessageActionEvent, type MessageActionMenuProps, MessageContent, type MessageContentProps, type MessageDividerProps, type MessageFieldProps, type MessageListFooterProps, type MessageListHeaderProps, type MessagePermissions, type MessageProps, type MessageSearch, type MessageSearchState, type MessageSnapshot, type MessageStatus, type MissingBrowserPermissionEvent, type NoConversationSelectedProps, type ParticipantSnapshot, type PendingMessage, PopoverButton, type PopoverButtonProps, ReactionPicker, type ReactionPickerProps, type ReactionsSummarySnapshot, type RecordingPreviewProps, type ReferencedMessageProps, type ReferencedMessageSnapshot, type ReplyBarProps, SearchInput, type SearchInputProps, type SearchMessageSnapshot, type SelectConversationEvent, type SendMessageEvent, type SendMessageOverrides, type SingleReactionSnapshot, type TalkSession, Text, type TextBlock, type TextBlockProps, type TextProps, type Theme, TimeAgo, type TimeAgoProps, type Translation, type TranslationStrings, type TypingSnapshot, type UploadState, type UserPermissions, type UserSnapshot, type VideoBlock, type VideoBlockProps, VirtualMessage, type VirtualMessageProps, type VoiceBlock, type VoiceBlockProps, type VoiceRecorderController, type VoiceRecorderProps, type VoiceRecorderState, Waveform, type WaveformProps, classicTheme, defaultTheme, disableFontLoading, formatDuration, formatFilesize, getGoogleMapsUrls, getPhotoUrlWithFallback, getRandomColor, getSVGForInitials, html, setDependencyUrls, useParticipants, useReactions, useTimeAgo, userFriendlyDate };
|
|
2730
2831
|
import * as Preact from "preact/compat";
|
|
2731
2832
|
export { Preact };
|