@minicode-dev/chat 0.1.10 → 0.1.11
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/README.md +16 -0
- package/dist/chunks/{TanksLiveGameCard-BxQGR8P9.js → TanksLiveGameCard-BNJqWt1z.js} +44 -26
- package/dist/chunks/{TanksLiveGameCard-BxQGR8P9.js.map → TanksLiveGameCard-BNJqWt1z.js.map} +1 -1
- package/dist/chunks/{createLiveScene-GkalLsqm.js → createLiveScene-CJQtq54t.js} +2 -2
- package/dist/chunks/{createLiveScene-GkalLsqm.js.map → createLiveScene-CJQtq54t.js.map} +1 -1
- package/dist/index.js +1602 -1369
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/index.d.ts +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -122,7 +122,7 @@ export interface ChatCustomEmoji {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
export type ChatEffectId = 'nudge' | 'pig-disco' | 'confetti';
|
|
125
|
-
export interface ChatEffectEvent { effectId: ChatEffectId; id: string; sentAt: number; }
|
|
125
|
+
export interface ChatEffectEvent { effectId: ChatEffectId; id: string; sentAt: number; /** Countdown deadline, at most 24 hours after sentAt. */ endsAt?: number; sound?: boolean; }
|
|
126
126
|
export interface ChatEffectDefinition {
|
|
127
127
|
id: ChatEffectId;
|
|
128
128
|
label: string;
|
|
@@ -151,7 +151,7 @@ export interface ChatEffectsConfig {
|
|
|
151
151
|
export const EFFECT_CATALOG: readonly ChatEffectDefinition[];
|
|
152
152
|
export function getChatEffect(id: string): ChatEffectDefinition | undefined;
|
|
153
153
|
export const EFFECT_PREFIX: string;
|
|
154
|
-
export function encodeEffect(event: { effectId: ChatEffectId; id?: string; sentAt?: number }): string;
|
|
154
|
+
export function encodeEffect(event: { effectId: ChatEffectId; id?: string; sentAt?: number; endsAt?: number; sound?: boolean }): string;
|
|
155
155
|
export function decodeEffect(text: unknown): ChatEffectEvent | null;
|
|
156
156
|
|
|
157
157
|
export interface ChatStorageAdapter {
|