videomail-client 13.8.13 → 13.8.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.
@@ -10853,7 +10853,7 @@ var __webpack_exports__ = {};
10853
10853
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10854
10854
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10855
10855
  var package_namespaceObject = {
10856
- rE: "13.8.13"
10856
+ rE: "13.8.15"
10857
10857
  };
10858
10858
  function isAudioEnabled(options) {
10859
10859
  return Boolean(options.audio.enabled);
@@ -9,7 +9,7 @@ export type { FullVideomailErrorData, VideomailErrorData } from "./types/error";
9
9
  export type { VideomailEvents } from "./types/events";
10
10
  export type * from "./types/events/params";
11
11
  export type { VideomailClientOptions } from "./types/options";
12
- export type { PartialReactions, ReactionKey, ReactionLabel, ReactionPretty, ReactionsPretty, ReactionsType, } from "./types/reaction";
12
+ export type { ReactionKey, ReactionPrettyByUserKey, ReactionsByUserKey, ReactionsPrettyByUserKey, } from "./types/reaction";
13
13
  export { Reactions } from "./types/reaction";
14
14
  export type { RecordingStats } from "./types/RecordingStats";
15
15
  export type { PartialVideomail, Videomail } from "./types/Videomail";
package/dist/esm/index.js CHANGED
@@ -3619,7 +3619,7 @@ const constants = {
3619
3619
  }
3620
3620
  };
3621
3621
  var package_namespaceObject = {
3622
- rE: "13.8.13"
3622
+ rE: "13.8.15"
3623
3623
  };
3624
3624
  function isAudioEnabled(options) {
3625
3625
  return Boolean(options.audio.enabled);
@@ -2,7 +2,7 @@ import { PartialDeep } from "type-fest";
2
2
  import { BrowserStats } from "./BrowserStats";
3
3
  import { DeliveryRecord } from "./Delivery";
4
4
  import { EmailAddress, EmailAddresses } from "./EmailAddress";
5
- import { PartialReactions, ReactionsPretty } from "./reaction";
5
+ import { ReactionsByUserKey, ReactionsPrettyByUserKey } from "./reaction";
6
6
  import { RecordingStats } from "./RecordingStats";
7
7
  import { UserKey } from "./user";
8
8
  import VideoFormat from "./VideoFormat";
@@ -35,8 +35,8 @@ export interface Videomail {
35
35
  recordLocation?: string | undefined;
36
36
  parentKey?: string | undefined;
37
37
  parentSnapshots?: Videomail[] | undefined;
38
- reactions?: PartialReactions | undefined;
39
- reactionsPretty?: ReactionsPretty | undefined;
38
+ reactions?: ReactionsByUserKey | undefined;
39
+ reactionsPretty?: ReactionsPrettyByUserKey | undefined;
40
40
  replyAllUrl?: string;
41
41
  replyUrl: string;
42
42
  shareUrl?: string;
@@ -20,11 +20,10 @@ export declare const Reactions: {
20
20
  readonly label: "Angry";
21
21
  };
22
22
  };
23
- export type ReactionsType = (typeof Reactions)[keyof typeof Reactions];
24
- export type ReactionKey = ReactionsType["key"];
25
- export type ReactionLabel = ReactionsType["label"];
26
- type UserKey = string;
27
- export type PartialReactions = Partial<Record<ReactionKey, UserKey[]>>;
28
- export type ReactionPretty = number | UserKey[];
29
- export type ReactionsPretty = Record<string, ReactionPretty>;
30
- export {};
23
+ export type ReactionKey = (typeof Reactions)[keyof typeof Reactions]["key"];
24
+ export type ReactionsByUserKey = Partial<Record<ReactionKey, readonly string[]>>;
25
+ export interface ReactionPrettyByUserKey {
26
+ nickName?: string;
27
+ maskedEmailAddress?: string;
28
+ }
29
+ export type ReactionsPrettyByUserKey = Partial<Record<ReactionKey, Partial<Record<string, ReactionPrettyByUserKey>>>>;
@@ -107,14 +107,43 @@ declare class Form extends Despot {
107
107
  parentKey?: string | undefined | undefined;
108
108
  parentSnapshots?: Videomail[] | undefined | undefined;
109
109
  reactions?: {
110
- love?: string[];
111
- applause?: string[];
112
- foldedHands?: string[];
113
- grinningSweat?: string[];
114
- anger?: string[];
110
+ love?: readonly string[];
111
+ applause?: readonly string[];
112
+ foldedHands?: readonly string[];
113
+ grinningSweat?: readonly string[];
114
+ anger?: readonly string[];
115
115
  } | undefined;
116
116
  reactionsPretty?: {
117
- [x: string]: import("..").ReactionPretty | undefined;
117
+ love?: {
118
+ [x: string]: {
119
+ nickName?: string;
120
+ maskedEmailAddress?: string;
121
+ } | undefined;
122
+ };
123
+ applause?: {
124
+ [x: string]: {
125
+ nickName?: string;
126
+ maskedEmailAddress?: string;
127
+ } | undefined;
128
+ };
129
+ foldedHands?: {
130
+ [x: string]: {
131
+ nickName?: string;
132
+ maskedEmailAddress?: string;
133
+ } | undefined;
134
+ };
135
+ grinningSweat?: {
136
+ [x: string]: {
137
+ nickName?: string;
138
+ maskedEmailAddress?: string;
139
+ } | undefined;
140
+ };
141
+ anger?: {
142
+ [x: string]: {
143
+ nickName?: string;
144
+ maskedEmailAddress?: string;
145
+ } | undefined;
146
+ };
118
147
  } | undefined;
119
148
  replyAllUrl?: string;
120
149
  replyUrl?: string;
@@ -260,14 +289,43 @@ declare class Form extends Despot {
260
289
  parentKey?: string | undefined | undefined;
261
290
  parentSnapshots?: Videomail[] | undefined | undefined;
262
291
  reactions?: {
263
- love?: string[];
264
- applause?: string[];
265
- foldedHands?: string[];
266
- grinningSweat?: string[];
267
- anger?: string[];
292
+ love?: readonly string[];
293
+ applause?: readonly string[];
294
+ foldedHands?: readonly string[];
295
+ grinningSweat?: readonly string[];
296
+ anger?: readonly string[];
268
297
  } | undefined;
269
298
  reactionsPretty?: {
270
- [x: string]: import("..").ReactionPretty | undefined;
299
+ love?: {
300
+ [x: string]: {
301
+ nickName?: string;
302
+ maskedEmailAddress?: string;
303
+ } | undefined;
304
+ };
305
+ applause?: {
306
+ [x: string]: {
307
+ nickName?: string;
308
+ maskedEmailAddress?: string;
309
+ } | undefined;
310
+ };
311
+ foldedHands?: {
312
+ [x: string]: {
313
+ nickName?: string;
314
+ maskedEmailAddress?: string;
315
+ } | undefined;
316
+ };
317
+ grinningSweat?: {
318
+ [x: string]: {
319
+ nickName?: string;
320
+ maskedEmailAddress?: string;
321
+ } | undefined;
322
+ };
323
+ anger?: {
324
+ [x: string]: {
325
+ nickName?: string;
326
+ maskedEmailAddress?: string;
327
+ } | undefined;
328
+ };
271
329
  } | undefined;
272
330
  replyAllUrl?: string;
273
331
  replyUrl?: string;
package/dist/umd/index.js CHANGED
@@ -10859,7 +10859,7 @@
10859
10859
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10860
10860
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10861
10861
  var package_namespaceObject = {
10862
- rE: "13.8.13"
10862
+ rE: "13.8.15"
10863
10863
  };
10864
10864
  function isAudioEnabled(options) {
10865
10865
  return Boolean(options.audio.enabled);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "13.8.13",
3
+ "version": "13.8.15",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -94,7 +94,7 @@
94
94
  "@types/ua-parser-js": "0.7.39",
95
95
  "@vitest/eslint-plugin": "1.6.14",
96
96
  "audit-ci": "7.1.0",
97
- "chromatic": "15.3.0",
97
+ "chromatic": "16.1.0",
98
98
  "cross-env": "10.1.0",
99
99
  "eslint": "9.39.2",
100
100
  "eslint-import-resolver-typescript": "4.4.4",
@@ -108,8 +108,8 @@
108
108
  "eslint-plugin-security": "4.0.0",
109
109
  "eslint-plugin-simple-import-sort": "12.1.1",
110
110
  "globals": "17.4.0",
111
- "jsdom": "27.0.1",
112
- "msw": "2.12.14",
111
+ "jsdom": "29.0.2",
112
+ "msw": "2.13.0",
113
113
  "msw-storybook-addon": "2.0.6",
114
114
  "prettier": "3.8.1",
115
115
  "prettier-plugin-curly": "0.4.1",