videomail-client 10.2.0 → 10.2.2
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.
- package/dist/cjs/index.cjs +263 -81
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +5 -12
- package/dist/umd/index.js +263 -81
- package/package.json +18 -18
package/dist/esm/index.d.ts
CHANGED
|
@@ -3,9 +3,10 @@ import { FullVideomailErrorData, VideomailErrorData } from "./types/error";
|
|
|
3
3
|
import VideomailEvents from "./types/events";
|
|
4
4
|
import { PartialVideomailClientOptions } from "./types/options";
|
|
5
5
|
import RecordingStats from "./types/RecordingStats";
|
|
6
|
-
import Videomail from "./types/Videomail";
|
|
6
|
+
import Videomail, { PartialVideomail } from "./types/Videomail";
|
|
7
7
|
import { VideoType } from "./types/VideoType";
|
|
8
8
|
export type { Videomail };
|
|
9
|
+
export type { PartialVideomail };
|
|
9
10
|
export type { VideomailEvents };
|
|
10
11
|
export type { PartialVideomailClientOptions };
|
|
11
12
|
export type { RecordingStats };
|
package/dist/esm/index.js
CHANGED
|
@@ -3966,7 +3966,7 @@ class Form extends Despot {
|
|
|
3966
3966
|
}
|
|
3967
3967
|
const wrappers_form = Form;
|
|
3968
3968
|
var package_namespaceObject = {
|
|
3969
|
-
i8: "10.2.
|
|
3969
|
+
i8: "10.2.2"
|
|
3970
3970
|
};
|
|
3971
3971
|
function findOriginalExc(exc) {
|
|
3972
3972
|
if (exc instanceof Error && "response" in exc) {
|
|
@@ -5754,17 +5754,10 @@ function getRatio(options, videoHeight, videoWidth) {
|
|
|
5754
5754
|
}
|
|
5755
5755
|
const dimensions_getRatio = getRatio;
|
|
5756
5756
|
function limitHeight_limitHeight(height, options, calledFrom) {
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
options
|
|
5760
|
-
});
|
|
5761
|
-
if (height < 1) throw error_createError({
|
|
5762
|
-
message: `Passed limit-height argument ${height} cannot be less than 1! (Called from ${calledFrom})`,
|
|
5763
|
-
options
|
|
5764
|
-
});
|
|
5765
|
-
const limitedHeight = Math.min(height, document.documentElement.clientHeight);
|
|
5757
|
+
let limitedHeight = document.documentElement.clientHeight;
|
|
5758
|
+
if (height) limitedHeight = Math.min(height, limitedHeight);
|
|
5766
5759
|
if (limitedHeight < 1) throw error_createError({
|
|
5767
|
-
message: `Limited height ${limitedHeight} cannot be less than 1
|
|
5760
|
+
message: `Limited height ${limitedHeight} cannot be less than 1! (Called from ${calledFrom})`,
|
|
5768
5761
|
options
|
|
5769
5762
|
});
|
|
5770
5763
|
return limitedHeight;
|
|
@@ -5774,7 +5767,7 @@ function calculateWidth(responsive, videoHeight, options, ratio) {
|
|
|
5774
5767
|
let height = figureMinHeight(videoHeight, options);
|
|
5775
5768
|
if (responsive) height = limitHeight(height, options, "calculateWidth");
|
|
5776
5769
|
if (!height || height < 1) throw error_createError({
|
|
5777
|
-
message:
|
|
5770
|
+
message: `Height ${height} cannot be smaller than 1 when calculating width.`,
|
|
5778
5771
|
options
|
|
5779
5772
|
});
|
|
5780
5773
|
const chosenRatio = ratio ?? dimensions_getRatio(options, videoHeight);
|