@medipha/chat 1.0.61 → 1.0.63

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 (36) hide show
  1. package/README.md +2 -0
  2. package/dist/dashboard/dashboard-module.d.ts +1 -1
  3. package/dist/dashboard/dashboard-module.types.d.ts +2 -5
  4. package/dist/features/composer/conversation-composer.d.ts +4 -0
  5. package/dist/features/composer/sticker/sticker-icon.d.ts +1 -0
  6. package/dist/features/composer/sticker/sticker-picker-button.d.ts +10 -0
  7. package/dist/features/composer/toolbar/composer-toolbar.d.ts +9 -3
  8. package/dist/features/message-list/bubble/message-bubble.d.ts +2 -1
  9. package/dist/features/message-list/bubble/message-content-body.d.ts +2 -1
  10. package/dist/features/stickers/sticker-keyword.d.ts +3 -0
  11. package/dist/features/stickers/sticker-label.d.ts +1 -0
  12. package/dist/features/stickers/sticker-message.d.ts +8 -0
  13. package/dist/features/stickers/sticker-picker/sticker-pack-section.d.ts +11 -0
  14. package/dist/features/stickers/sticker-picker/sticker-pack-tab-bar.d.ts +9 -0
  15. package/dist/features/stickers/sticker-picker/sticker-picker-panel.d.ts +8 -0
  16. package/dist/features/stickers/sticker-picker/use-active-sticker-section.d.ts +6 -0
  17. package/dist/features/stickers/sticker-picker/use-recent-stickers.d.ts +2 -0
  18. package/dist/features/stickers/sticker-sprite.d.ts +9 -0
  19. package/dist/features/stickers/sticker-storage.d.ts +2 -0
  20. package/dist/features/stickers/sticker-store.d.ts +15 -0
  21. package/dist/features/stickers/sticker-suggestion-bar.d.ts +9 -0
  22. package/dist/features/stickers/use-sticker-keyword-suggestions.d.ts +13 -0
  23. package/dist/features/stickers/use-sticker-playback.d.ts +2 -0
  24. package/dist/index.cjs +67 -66
  25. package/dist/index.js +11503 -10433
  26. package/dist/module/chat-module.types.d.ts +1 -0
  27. package/dist/module/session/chat-api-connection.d.ts +8 -0
  28. package/dist/module/session/chat-session.d.ts +2 -5
  29. package/dist/pages/conversation/conversation-detail/conversation-detail.d.ts +1 -0
  30. package/dist/pages/conversation/conversation-footer/conversation-footer.d.ts +1 -0
  31. package/dist/shared/components/user-profile-modal.d.ts +4 -4
  32. package/dist/shared/hooks/use-dismiss-on-outside-click.d.ts +9 -0
  33. package/dist/styles.css +1 -1
  34. package/dist/utils/chat.d.ts +2 -1
  35. package/package.json +2 -2
  36. package/dist/features/composer/stickers.d.ts +0 -6
@@ -75,7 +75,7 @@ export type MessageContent = LegacyMessageContent | RichMessageDocument;
75
75
  /** Compatibility alias retained for callers that compose legacy content directly. */
76
76
  export type MessageContentNode = LegacyMessageContentNode;
77
77
  export type MessageStatus = 'pending' | 'sending' | 'sent' | 'delivered' | 'read' | 'failed';
78
- export type MessageType = 'TEXT' | 'IMAGE' | 'DOCUMENT' | 'SYSTEM';
78
+ export type MessageType = 'TEXT' | 'IMAGE' | 'DOCUMENT' | 'STICKER' | 'SYSTEM';
79
79
  /** Only ever set when type is SYSTEM — which category of SYSTEM message this is, so the
80
80
  * bubble can pick an icon without inspecting the message text. */
81
81
  export type MessageSystemCategory = 'MESSAGE_PIN' | 'GROUP_INFO_UPDATE' | 'MEMBER_CHANGE' | 'GROUP_SETTING_UPDATE';
@@ -167,6 +167,7 @@ export interface ChatMessage {
167
167
  attachmentSizeBytes?: number | null;
168
168
  attachments?: ChatMessageAttachment[];
169
169
  attachmentIds?: string[];
170
+ stickerId?: number | null;
170
171
  replyToId?: string | null;
171
172
  replyTo?: MessageReplyPreview | null;
172
173
  reactionSummary: ReactionSummary;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipha/chat",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "description": "Embeddable Medic-ERP chat module for React applications.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -60,7 +60,7 @@
60
60
  "uuid": "^11.0.5",
61
61
  "yet-another-react-lightbox": "^3.32.2",
62
62
  "zustand": "^5.0.8",
63
- "@medipha/chat-core": "1.0.30"
63
+ "@medipha/chat-core": "1.0.34"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@eslint/js": "^10.0.1",
@@ -1,6 +0,0 @@
1
- /**
2
- * Sticker tray content. Rendered large and sent immediately on tap (unlike the emoji
3
- * picker, which inserts into the compose box). Backed by emoji glyphs for now — swap
4
- * for real sticker image assets later without changing the composer/bubble contract.
5
- */
6
- export declare const STICKERS: string[];