@medipha/chat 1.0.57 → 1.0.59

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.
@@ -111,7 +111,7 @@ export interface MessageReplyPreview {
111
111
  removedAt?: string | null;
112
112
  removedById?: string | null;
113
113
  }
114
- export type MediaKind = 'IMAGE' | 'VIDEO' | 'AUDIO' | 'DOCUMENT';
114
+ export type MediaKind = import('@medipha/chat-core').MediaKind;
115
115
  export interface ChatMessageAttachment {
116
116
  id: string;
117
117
  url: string;
@@ -123,7 +123,11 @@ export interface ChatMessageAttachment {
123
123
  durationMs?: number | null;
124
124
  width?: number | null;
125
125
  height?: number | null;
126
+ latitude?: number | null;
127
+ longitude?: number | null;
126
128
  }
129
+ export declare const buildGoogleMapsUrl: (latitude: number, longitude: number) => string;
130
+ export declare const getAttachmentMapUrl: (attachment: ChatMessageAttachment) => string | null;
127
131
  export declare const isInlineVideoAttachment: (attachment: ChatMessageAttachment) => boolean;
128
132
  export declare const isAudioAttachment: (attachment: ChatMessageAttachment) => boolean;
129
133
  export declare const formatMediaDuration: (durationSeconds: number | null | undefined) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipha/chat",
3
- "version": "1.0.57",
3
+ "version": "1.0.59",
4
4
  "description": "Embeddable Medic-ERP chat module for React applications.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -59,7 +59,7 @@
59
59
  "uuid": "^11.0.5",
60
60
  "yet-another-react-lightbox": "^3.32.2",
61
61
  "zustand": "^5.0.8",
62
- "@medipha/chat-core": "1.0.25"
62
+ "@medipha/chat-core": "1.0.28"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@eslint/js": "^10.0.1",
@@ -98,6 +98,7 @@
98
98
  "format:check": "prettier . --check",
99
99
  "format": "prettier . --write",
100
100
  "publish_ui:npm": "pnpm typecheck && pnpm build && pnpm publish --dry-run && pnpm publish",
101
+ "publish_core:npm": "pnpm typecheck && pnpm build && pnpm --filter @medipha/chat-core publish --dry-run && pnpm --filter @medipha/chat-core publish",
101
102
  "publish_all:npm": "pnpm typecheck && pnpm build && pnpm --filter @medipha/chat-core publish --dry-run && pnpm --filter @medipha/chat-core publish && pnpm publish --dry-run && pnpm publish"
102
103
  }
103
104
  }