videomail-client 13.8.9 → 13.8.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.
@@ -10595,6 +10595,7 @@ var __webpack_exports__ = {};
10595
10595
  "use strict";
10596
10596
  __webpack_require__.r(__webpack_exports__);
10597
10597
  __webpack_require__.d(__webpack_exports__, {
10598
+ Reactions: ()=>Reactions,
10598
10599
  VideomailClient: ()=>VideomailClient,
10599
10600
  VideoType: ()=>VideoType
10600
10601
  });
@@ -10852,7 +10853,7 @@ var __webpack_exports__ = {};
10852
10853
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10853
10854
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10854
10855
  var package_namespaceObject = {
10855
- rE: "13.8.9"
10856
+ rE: "13.8.11"
10856
10857
  };
10857
10858
  function isAudioEnabled(options) {
10858
10859
  return Boolean(options.audio.enabled);
@@ -19370,10 +19371,34 @@ var __webpack_exports__ = {};
19370
19371
  }
19371
19372
  client_define_property(VideomailClient, "ENC_TYPE_APP_JSON", constants["public"].ENC_TYPE_APP_JSON);
19372
19373
  client_define_property(VideomailClient, "ENC_TYPE_FORM", constants["public"].ENC_TYPE_FORM);
19374
+ const Reactions = {
19375
+ LOVE: {
19376
+ key: "love",
19377
+ label: "Love"
19378
+ },
19379
+ APPLAUSE: {
19380
+ key: "applause",
19381
+ label: "Applause"
19382
+ },
19383
+ FOLDED_HANDS: {
19384
+ key: "foldedHands",
19385
+ label: "Pray / Beg"
19386
+ },
19387
+ GRINNING_SWEAT: {
19388
+ key: "grinningSweat",
19389
+ label: "Smile / Grinning Sweat"
19390
+ },
19391
+ ANGER: {
19392
+ key: "anger",
19393
+ label: "Angry"
19394
+ }
19395
+ };
19373
19396
  })();
19397
+ exports.Reactions = __webpack_exports__.Reactions;
19374
19398
  exports.VideoType = __webpack_exports__.VideoType;
19375
19399
  exports.VideomailClient = __webpack_exports__.VideomailClient;
19376
19400
  for(var __rspack_i in __webpack_exports__)if (-1 === [
19401
+ "Reactions",
19377
19402
  "VideoType",
19378
19403
  "VideomailClient"
19379
19404
  ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
@@ -9,7 +9,8 @@ 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 { ReactionPretty, ReactionsPretty } from "./types/reaction";
12
+ export type { PartialReactions, ReactionKey, ReactionLabel, ReactionPretty, ReactionsPretty, ReactionsType, } from "./types/reaction";
13
+ export { Reactions } from "./types/reaction";
13
14
  export type { RecordingStats } from "./types/RecordingStats";
14
15
  export type { PartialVideomail, Videomail } from "./types/Videomail";
15
16
  export type { VideoTypeType } from "./types/VideoType";
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.9"
3622
+ rE: "13.8.11"
3623
3623
  };
3624
3624
  function isAudioEnabled(options) {
3625
3625
  return Boolean(options.audio.enabled);
@@ -8482,4 +8482,26 @@ class VideomailClient extends util_Despot {
8482
8482
  }
8483
8483
  client_define_property(VideomailClient, "ENC_TYPE_APP_JSON", constants["public"].ENC_TYPE_APP_JSON);
8484
8484
  client_define_property(VideomailClient, "ENC_TYPE_FORM", constants["public"].ENC_TYPE_FORM);
8485
- export { VideoType, VideomailClient };
8485
+ const Reactions = {
8486
+ LOVE: {
8487
+ key: "love",
8488
+ label: "Love"
8489
+ },
8490
+ APPLAUSE: {
8491
+ key: "applause",
8492
+ label: "Applause"
8493
+ },
8494
+ FOLDED_HANDS: {
8495
+ key: "foldedHands",
8496
+ label: "Pray / Beg"
8497
+ },
8498
+ GRINNING_SWEAT: {
8499
+ key: "grinningSweat",
8500
+ label: "Smile / Grinning Sweat"
8501
+ },
8502
+ ANGER: {
8503
+ key: "anger",
8504
+ label: "Angry"
8505
+ }
8506
+ };
8507
+ export { Reactions, VideoType, VideomailClient };
@@ -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 { ReactionsPretty } from "./reaction";
5
+ import { PartialReactions, ReactionsPretty } from "./reaction";
6
6
  import { RecordingStats } from "./RecordingStats";
7
7
  import { UserKey } from "./user";
8
8
  import VideoFormat from "./VideoFormat";
@@ -35,6 +35,7 @@ export interface Videomail {
35
35
  recordLocation?: string | undefined;
36
36
  parentKey?: string | undefined;
37
37
  parentSnapshots?: Videomail[] | undefined;
38
+ reactions?: PartialReactions | undefined;
38
39
  reactionsPretty?: ReactionsPretty | undefined;
39
40
  replyAllUrl?: string;
40
41
  replyUrl: string;
@@ -1,2 +1,30 @@
1
- export type ReactionPretty = number | string[];
1
+ export declare const Reactions: {
2
+ readonly LOVE: {
3
+ readonly key: "love";
4
+ readonly label: "Love";
5
+ };
6
+ readonly APPLAUSE: {
7
+ readonly key: "applause";
8
+ readonly label: "Applause";
9
+ };
10
+ readonly FOLDED_HANDS: {
11
+ readonly key: "foldedHands";
12
+ readonly label: "Pray / Beg";
13
+ };
14
+ readonly GRINNING_SWEAT: {
15
+ readonly key: "grinningSweat";
16
+ readonly label: "Smile / Grinning Sweat";
17
+ };
18
+ readonly ANGER: {
19
+ readonly key: "anger";
20
+ readonly label: "Angry";
21
+ };
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[];
2
29
  export type ReactionsPretty = Record<string, ReactionPretty[]>;
30
+ export {};
@@ -106,6 +106,13 @@ declare class Form extends Despot {
106
106
  recordLocation?: string | undefined | undefined;
107
107
  parentKey?: string | undefined | undefined;
108
108
  parentSnapshots?: Videomail[] | undefined | undefined;
109
+ reactions?: {
110
+ love?: string[];
111
+ applause?: string[];
112
+ foldedHands?: string[];
113
+ grinningSweat?: string[];
114
+ anger?: string[];
115
+ } | undefined;
109
116
  reactionsPretty?: {
110
117
  [x: string]: import("..").ReactionPretty[] | undefined;
111
118
  } | undefined;
@@ -252,6 +259,13 @@ declare class Form extends Despot {
252
259
  recordLocation?: string | undefined | undefined;
253
260
  parentKey?: string | undefined | undefined;
254
261
  parentSnapshots?: Videomail[] | undefined | undefined;
262
+ reactions?: {
263
+ love?: string[];
264
+ applause?: string[];
265
+ foldedHands?: string[];
266
+ grinningSweat?: string[];
267
+ anger?: string[];
268
+ } | undefined;
255
269
  reactionsPretty?: {
256
270
  [x: string]: import("..").ReactionPretty[] | undefined;
257
271
  } | undefined;
package/dist/umd/index.js CHANGED
@@ -10601,6 +10601,7 @@
10601
10601
  "use strict";
10602
10602
  __webpack_require__.r(__webpack_exports__);
10603
10603
  __webpack_require__.d(__webpack_exports__, {
10604
+ Reactions: ()=>Reactions,
10604
10605
  VideomailClient: ()=>VideomailClient,
10605
10606
  VideoType: ()=>VideoType
10606
10607
  });
@@ -10858,7 +10859,7 @@
10858
10859
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10859
10860
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10860
10861
  var package_namespaceObject = {
10861
- rE: "13.8.9"
10862
+ rE: "13.8.11"
10862
10863
  };
10863
10864
  function isAudioEnabled(options) {
10864
10865
  return Boolean(options.audio.enabled);
@@ -18999,6 +19000,28 @@
18999
19000
  if (this.options.logger.getLines) return this.options.logger.getLines();
19000
19001
  }
19001
19002
  }
19003
+ const Reactions = {
19004
+ LOVE: {
19005
+ key: "love",
19006
+ label: "Love"
19007
+ },
19008
+ APPLAUSE: {
19009
+ key: "applause",
19010
+ label: "Applause"
19011
+ },
19012
+ FOLDED_HANDS: {
19013
+ key: "foldedHands",
19014
+ label: "Pray / Beg"
19015
+ },
19016
+ GRINNING_SWEAT: {
19017
+ key: "grinningSweat",
19018
+ label: "Smile / Grinning Sweat"
19019
+ },
19020
+ ANGER: {
19021
+ key: "anger",
19022
+ label: "Angry"
19023
+ }
19024
+ };
19002
19025
  })();
19003
19026
  return __webpack_exports__;
19004
19027
  })());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "13.8.9",
3
+ "version": "13.8.11",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",