videomail-client 13.12.6 → 13.12.7

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.
@@ -10852,7 +10852,7 @@ var __webpack_exports__ = {};
10852
10852
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10853
10853
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10854
10854
  var package_namespaceObject = {
10855
- rE: "13.12.6"
10855
+ rE: "13.12.7"
10856
10856
  };
10857
10857
  function isAudioEnabled(options) {
10858
10858
  return Boolean(options.audio.enabled);
@@ -14984,7 +14984,13 @@ var __webpack_exports__ = {};
14984
14984
  };
14985
14985
  const path = videomail.public ? "wall" : "videomail";
14986
14986
  let url = `${this.options.apiUrl}/${path}/`;
14987
- if (method === FormMethod.PUT && videomail.key) url += videomail.key;
14987
+ if (method === FormMethod.PUT) {
14988
+ if (videomail.public) throw error_createError({
14989
+ message: "A public videomail cannot be updated.",
14990
+ options: this.options
14991
+ });
14992
+ if (videomail.key) url += videomail.key;
14993
+ }
14988
14994
  try {
14989
14995
  const request = yield client_default()(method, url).query(queryParams).set("Timezone-Id", this.timezoneId).withCredentials().send(videomail).timeout(this.options.timeouts.connection);
14990
14996
  return request;
@@ -19415,6 +19421,10 @@ var __webpack_exports__ = {};
19415
19421
  FIRE: {
19416
19422
  key: "fire",
19417
19423
  label: "Fire"
19424
+ },
19425
+ SAD: {
19426
+ key: "sad",
19427
+ label: "Sad"
19418
19428
  }
19419
19429
  };
19420
19430
  })();
package/dist/esm/index.js CHANGED
@@ -3613,7 +3613,7 @@ const constants = {
3613
3613
  }
3614
3614
  };
3615
3615
  var package_namespaceObject = {
3616
- rE: "13.12.6"
3616
+ rE: "13.12.7"
3617
3617
  };
3618
3618
  function isAudioEnabled(options) {
3619
3619
  return Boolean(options.audio.enabled);
@@ -4364,7 +4364,13 @@ class Resource {
4364
4364
  };
4365
4365
  const path = videomail.public ? "wall" : "videomail";
4366
4366
  let url = `${this.options.apiUrl}/${path}/`;
4367
- if (method === FormMethod.PUT && videomail.key) url += videomail.key;
4367
+ if (method === FormMethod.PUT) {
4368
+ if (videomail.public) throw error_createError({
4369
+ message: "A public videomail cannot be updated.",
4370
+ options: this.options
4371
+ });
4372
+ if (videomail.key) url += videomail.key;
4373
+ }
4368
4374
  try {
4369
4375
  const request = await superagent(method, url).query(queryParams).set("Timezone-Id", this.timezoneId).withCredentials().send(videomail).timeout(this.options.timeouts.connection);
4370
4376
  return request;
@@ -8513,6 +8519,10 @@ const Reactions = {
8513
8519
  FIRE: {
8514
8520
  key: "fire",
8515
8521
  label: "Fire"
8522
+ },
8523
+ SAD: {
8524
+ key: "sad",
8525
+ label: "Sad"
8516
8526
  }
8517
8527
  };
8518
8528
  export { Reactions, VideoType, VideomailClient };
@@ -15,6 +15,10 @@ export declare const Reactions: {
15
15
  readonly key: "fire";
16
16
  readonly label: "Fire";
17
17
  };
18
+ readonly SAD: {
19
+ readonly key: "sad";
20
+ readonly label: "Sad";
21
+ };
18
22
  };
19
23
  export type ReactionType = (typeof Reactions)[keyof typeof Reactions];
20
24
  export type ReactionKey = ReactionType["key"];
@@ -148,6 +148,7 @@ declare class Form extends Despot {
148
148
  applause?: readonly string[];
149
149
  grinningSweat?: readonly string[];
150
150
  fire?: readonly string[];
151
+ sad?: readonly string[];
151
152
  } | undefined;
152
153
  reactionsPretty?: {
153
154
  love?: {
@@ -174,6 +175,12 @@ declare class Form extends Despot {
174
175
  maskedEmailAddress?: string | undefined | undefined;
175
176
  } | undefined;
176
177
  };
178
+ sad?: {
179
+ [x: string]: {
180
+ nickName?: string | undefined | undefined;
181
+ maskedEmailAddress?: string | undefined | undefined;
182
+ } | undefined;
183
+ };
177
184
  } | undefined;
178
185
  commentUrl?: string | undefined | undefined;
179
186
  commentCount?: number | undefined | undefined;
@@ -325,6 +332,7 @@ declare class Form extends Despot {
325
332
  applause?: readonly string[];
326
333
  grinningSweat?: readonly string[];
327
334
  fire?: readonly string[];
335
+ sad?: readonly string[];
328
336
  } | undefined;
329
337
  reactionsPretty?: {
330
338
  love?: {
@@ -351,6 +359,12 @@ declare class Form extends Despot {
351
359
  maskedEmailAddress?: string | undefined | undefined;
352
360
  } | undefined;
353
361
  };
362
+ sad?: {
363
+ [x: string]: {
364
+ nickName?: string | undefined | undefined;
365
+ maskedEmailAddress?: string | undefined | undefined;
366
+ } | undefined;
367
+ };
354
368
  } | undefined;
355
369
  commentUrl?: string | undefined | undefined;
356
370
  commentCount?: number | undefined | undefined;
package/dist/umd/index.js CHANGED
@@ -10858,7 +10858,7 @@
10858
10858
  var client = __webpack_require__("./node_modules/superagent/lib/client.js");
10859
10859
  var client_default = /*#__PURE__*/ __webpack_require__.n(client);
10860
10860
  var package_namespaceObject = {
10861
- rE: "13.12.6"
10861
+ rE: "13.12.7"
10862
10862
  };
10863
10863
  function isAudioEnabled(options) {
10864
10864
  return Boolean(options.audio.enabled);
@@ -14882,7 +14882,13 @@
14882
14882
  };
14883
14883
  const path = videomail.public ? "wall" : "videomail";
14884
14884
  let url = `${this.options.apiUrl}/${path}/`;
14885
- if (method === FormMethod.PUT && videomail.key) url += videomail.key;
14885
+ if (method === FormMethod.PUT) {
14886
+ if (videomail.public) throw error_createError({
14887
+ message: "A public videomail cannot be updated.",
14888
+ options: this.options
14889
+ });
14890
+ if (videomail.key) url += videomail.key;
14891
+ }
14886
14892
  try {
14887
14893
  const request = await client_default()(method, url).query(queryParams).set("Timezone-Id", this.timezoneId).withCredentials().send(videomail).timeout(this.options.timeouts.connection);
14888
14894
  return request;
@@ -19036,6 +19042,10 @@
19036
19042
  FIRE: {
19037
19043
  key: "fire",
19038
19044
  label: "Fire"
19045
+ },
19046
+ SAD: {
19047
+ key: "sad",
19048
+ label: "Sad"
19039
19049
  }
19040
19050
  };
19041
19051
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "13.12.6",
3
+ "version": "13.12.7",
4
4
  "description": "A wicked npm package to record videos directly in the browser, for Deaf and Sign Language!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -76,11 +76,11 @@
76
76
  },
77
77
  "devDependencies": {
78
78
  "@chromatic-com/storybook": "5.1.2",
79
- "@eslint/config-inspector": "2.0.1",
79
+ "@eslint/config-inspector": "3.0.2",
80
80
  "@eslint/js": "10.0.1",
81
81
  "@rsbuild/plugin-node-polyfill": "1.4.4",
82
82
  "@rsbuild/plugin-stylus": "1.3.2",
83
- "@rsdoctor/rspack-plugin": "1.5.10",
83
+ "@rsdoctor/rspack-plugin": "1.5.11",
84
84
  "@rslib/core": "0.21.4",
85
85
  "@storybook/addon-a11y": "10.3.6",
86
86
  "@storybook/addon-docs": "10.3.6",
@@ -94,7 +94,7 @@
94
94
  "@types/ua-parser-js": "0.7.39",
95
95
  "@vitest/eslint-plugin": "1.6.17",
96
96
  "audit-ci": "7.1.0",
97
- "chromatic": "16.9.1",
97
+ "chromatic": "16.10.0",
98
98
  "cross-env": "10.1.0",
99
99
  "eslint": "10.3.0",
100
100
  "eslint-import-resolver-typescript": "4.4.4",
@@ -106,7 +106,7 @@
106
106
  "eslint-plugin-simple-import-sort": "13.0.0",
107
107
  "globals": "17.6.0",
108
108
  "jsdom": "29.1.1",
109
- "msw": "2.14.5",
109
+ "msw": "2.14.6",
110
110
  "msw-storybook-addon": "2.0.7",
111
111
  "prettier": "3.8.3",
112
112
  "prettier-plugin-curly": "0.4.1",
@@ -118,8 +118,8 @@
118
118
  "storybook-html-rsbuild": "3.3.3",
119
119
  "type-fest": "5.6.0",
120
120
  "typescript": "6.0.3",
121
- "typescript-eslint": "8.59.2",
122
- "vitest": "4.1.5"
121
+ "typescript-eslint": "8.59.3",
122
+ "vitest": "4.1.6"
123
123
  },
124
124
  "engines": {
125
125
  "node": "^24.15.0",