@digitalsamba/embedded-sdk 0.0.7 → 0.0.8
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/README.md +47 -39
- package/dist/cjs/index.d.ts +7 -38
- package/dist/cjs/index.js +109 -105
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/cjs/types.d.ts +42 -0
- package/dist/cjs/types.js +8 -0
- package/dist/cjs/umd.js +2 -1
- package/dist/cjs/utils/errors.js +5 -23
- package/dist/esm/index.d.ts +7 -38
- package/dist/esm/index.js +108 -105
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/types.d.ts +42 -0
- package/dist/esm/types.js +5 -0
- package/dist/esm/umd.js +2 -1
- package/dist/esm/utils/errors.js +9 -28
- package/dist/index.html +28 -6
- package/dist/types/index.d.ts +7 -38
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/types.d.ts +42 -0
- package/dist/umd/index.js +1 -1
- package/package.json +26 -4
package/dist/esm/utils/errors.js
CHANGED
@@ -1,41 +1,22 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
6
|
-
return extendStatics(d, b);
|
7
|
-
};
|
8
|
-
return function (d, b) {
|
9
|
-
if (typeof b !== "function" && b !== null)
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
11
|
-
extendStatics(d, b);
|
12
|
-
function __() { this.constructor = d; }
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
14
|
-
};
|
15
|
-
})();
|
16
|
-
var RichError = /** @class */ (function (_super) {
|
17
|
-
__extends(RichError, _super);
|
18
|
-
function RichError(error) {
|
19
|
-
var _this = _super.call(this, error.message) || this;
|
20
|
-
_this.name = error.name;
|
21
|
-
return _this;
|
1
|
+
export class RichError extends Error {
|
2
|
+
constructor(error) {
|
3
|
+
super(error.message);
|
4
|
+
this.name = error.name;
|
22
5
|
}
|
23
|
-
|
24
|
-
|
25
|
-
export { RichError };
|
26
|
-
export var UNKNOWN_TARGET = new RichError({
|
6
|
+
}
|
7
|
+
export const UNKNOWN_TARGET = new RichError({
|
27
8
|
name: "UNKNOWN_TARGET",
|
28
9
|
message: "Could not verify the identity of target frame. Commands may not work",
|
29
10
|
});
|
30
|
-
export
|
11
|
+
export const INVALID_CONFIG = new RichError({
|
31
12
|
name: "INVALID_INIT_CONFIG",
|
32
13
|
message: "Initializations options are invalid. Missing team name or room ID",
|
33
14
|
});
|
34
|
-
export
|
15
|
+
export const ALLOW_ATTRIBUTE_MISSING = new RichError({
|
35
16
|
name: "ALLOW_ATTRIBUTE_MISSING",
|
36
17
|
message: "You've provided a frame that is mising 'allow' attribute. Some functionality may not work.",
|
37
18
|
});
|
38
|
-
export
|
19
|
+
export const INVALID_URL = new RichError({
|
39
20
|
name: "INVALID_URL",
|
40
21
|
message: "Invalid frame url specified"
|
41
22
|
});
|
package/dist/index.html
CHANGED
@@ -5,16 +5,16 @@
|
|
5
5
|
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
7
7
|
<title>Document</title>
|
8
|
-
<script src="https://unpkg.com/@digitalsamba/embedded-sdk"></script
|
8
|
+
<!-- <script src="https://unpkg.com/@digitalsamba/embedded-sdk"></script>-->
|
9
|
+
<script src="./umd/index.js"></script>
|
9
10
|
</head>
|
10
11
|
<body>
|
11
12
|
<div class="ifp" style="display: flex">
|
13
|
+
<iframe allow="camera; microphone; display-capture; autoplay;" src="<>" width="700" height="500" class="if"></iframe>
|
12
14
|
|
13
|
-
|
15
|
+
<div class="log">
|
14
16
|
|
15
|
-
|
16
|
-
|
17
|
-
</div>
|
17
|
+
</div>
|
18
18
|
|
19
19
|
</div>
|
20
20
|
<div class="div" style=" border: 1px solid yellow">
|
@@ -27,7 +27,15 @@
|
|
27
27
|
<button class="c6">disableAudio</button>
|
28
28
|
<button class="c7">startScreenshare</button>
|
29
29
|
<button class="c8">stopScreenshare</button>
|
30
|
+
<button class="c9">startRecording</button>
|
31
|
+
<button class="c10">stopRecording</button>
|
32
|
+
<button class="c11">showToolbar</button>
|
33
|
+
<button class="c12">hideToolbar</button>
|
34
|
+
<button class="c13">hideToolbar</button>
|
35
|
+
<button class="c14">auto layout</button>
|
36
|
+
<button class="c15">tiled layout</button>
|
30
37
|
</div>
|
38
|
+
|
31
39
|
<script async defer>
|
32
40
|
const parent = document.querySelector('.ifp');
|
33
41
|
const frame = document.querySelector('.if');
|
@@ -40,6 +48,13 @@
|
|
40
48
|
const btn6 = document.querySelector('.c6');
|
41
49
|
const btn7 = document.querySelector('.c7');
|
42
50
|
const btn8 = document.querySelector('.c8');
|
51
|
+
const btn9 = document.querySelector('.c9');
|
52
|
+
const btn10 = document.querySelector('.c10');
|
53
|
+
const btn11 = document.querySelector('.c11');
|
54
|
+
const btn12 = document.querySelector('.c12');
|
55
|
+
const btn13 = document.querySelector('.c13');
|
56
|
+
const btn14 = document.querySelector('.c14');
|
57
|
+
const btn15 = document.querySelector('.c15');
|
43
58
|
|
44
59
|
// change these values to connect to your room
|
45
60
|
const TEAM = 'some-team';
|
@@ -47,7 +62,7 @@
|
|
47
62
|
const ROOM_URL = 'https://localhost:3000/Public'
|
48
63
|
|
49
64
|
//const api = new DigitalSambaEmbedded({ root: parent, team: TEAM, room: ROOM});
|
50
|
-
//const api = new DigitalSambaEmbedded({ frame});
|
65
|
+
// const api = new DigitalSambaEmbedded({ frame});
|
51
66
|
//const api = new DigitalSambaEmbedded({ url: ROOM_URL}, {reportErrors: true});
|
52
67
|
|
53
68
|
const api = DigitalSambaEmbedded.createControl({ url: ROOM_URL});
|
@@ -66,6 +81,13 @@
|
|
66
81
|
btn6.onclick = () => {api.disableAudio()}
|
67
82
|
btn7.onclick = () => {api.startScreenshare()}
|
68
83
|
btn8.onclick = () => {api.stopScreenshare()}
|
84
|
+
btn9.onclick = () => {api.startRecording()}
|
85
|
+
btn10.onclick = () => {api.stopRecording()}
|
86
|
+
btn11.onclick = () => {api.showToolbar()}
|
87
|
+
btn12.onclick = () => {api.hideToolbar()}
|
88
|
+
btn13.onclick = () => {api.toggleToolbar()}
|
89
|
+
btn14.onclick = () => {api.changeLayoutMode('auto')}
|
90
|
+
btn15.onclick = () => {api.changeLayoutMode('tiled')}
|
69
91
|
|
70
92
|
api.on('*', (data) => {
|
71
93
|
log.innerHTML += `<p>${Number(new Date)}: ev(${data.type}): ${JSON.stringify(data)}</p>`
|
package/dist/types/index.d.ts
CHANGED
@@ -1,41 +1,4 @@
|
|
1
|
-
|
2
|
-
root: HTMLElement;
|
3
|
-
frame: HTMLIFrameElement;
|
4
|
-
url: string;
|
5
|
-
team: string;
|
6
|
-
room: string;
|
7
|
-
token?: string;
|
8
|
-
}
|
9
|
-
export declare type FrameAttributes = {
|
10
|
-
align: string;
|
11
|
-
allow: string;
|
12
|
-
allowFullscreen: boolean;
|
13
|
-
frameBorder: string;
|
14
|
-
height: string;
|
15
|
-
longDesc: string;
|
16
|
-
marginHeight: string;
|
17
|
-
marginWidth: string;
|
18
|
-
name: string;
|
19
|
-
referrerPolicy: ReferrerPolicy;
|
20
|
-
scrolling: string;
|
21
|
-
src: string;
|
22
|
-
srcdoc: string;
|
23
|
-
width: string;
|
24
|
-
} & HTMLElement;
|
25
|
-
export interface InstanceProperties {
|
26
|
-
frameAttributes?: Partial<FrameAttributes>;
|
27
|
-
reportErrors?: boolean;
|
28
|
-
}
|
29
|
-
export declare type SendMessageType = "connect" | "enableVideo" | "enableAudio" | "disableVideo" | "disableAudio" | "toggleVideo" | "toggleAudio" | "startScreenshare" | "stopScreenshare";
|
30
|
-
export declare type ReceiveMessageType = "connected" | "userJoined" | "userLeft" | "videoEnabled" | "videoDisabled" | "audioEnabled" | "audioDisabled" | "screenshareStarted" | "screenshareStopped";
|
31
|
-
export interface SendMessage<P> {
|
32
|
-
type: SendMessageType;
|
33
|
-
payload?: P;
|
34
|
-
}
|
35
|
-
export interface ReceiveMessage {
|
36
|
-
type: ReceiveMessageType;
|
37
|
-
payload: unknown;
|
38
|
-
}
|
1
|
+
import { InitOptions, InstanceProperties, LayoutMode, ReceiveMessageType } from "./types";
|
39
2
|
export declare class DigitalSambaEmbedded {
|
40
3
|
initOptions: Partial<InitOptions>;
|
41
4
|
savedIframeSrc: string;
|
@@ -63,4 +26,10 @@ export declare class DigitalSambaEmbedded {
|
|
63
26
|
toggleAudio: (enable?: boolean) => void;
|
64
27
|
startScreenshare: () => void;
|
65
28
|
stopScreenshare: () => void;
|
29
|
+
startRecording: () => void;
|
30
|
+
stopRecording: () => void;
|
31
|
+
showToolbar: () => void;
|
32
|
+
hideToolbar: () => void;
|
33
|
+
changeLayoutMode: (mode: LayoutMode) => void;
|
34
|
+
toggleToolbar: (show?: boolean) => void;
|
66
35
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"program":{"fileNames":["../../node_modules/typescript/lib/lib.d.ts","../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../node_modules/typescript/lib/lib.scripthost.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/scheduler/tracing.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../../src/utils/errors.ts","../../src/index.ts","../../src/umd.ts","../../node_modules/@types/eslint/helpers.d.ts","../../node_modules/@types/estree/index.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/eslint/index.d.ts","../../node_modules/@types/eslint-scope/index.d.ts","../../node_modules/@types/node/ts4.8/assert.d.ts","../../node_modules/@types/node/ts4.8/assert/strict.d.ts","../../node_modules/@types/node/ts4.8/globals.d.ts","../../node_modules/@types/node/ts4.8/async_hooks.d.ts","../../node_modules/@types/node/ts4.8/buffer.d.ts","../../node_modules/@types/node/ts4.8/child_process.d.ts","../../node_modules/@types/node/ts4.8/cluster.d.ts","../../node_modules/@types/node/ts4.8/console.d.ts","../../node_modules/@types/node/ts4.8/constants.d.ts","../../node_modules/@types/node/ts4.8/crypto.d.ts","../../node_modules/@types/node/ts4.8/dgram.d.ts","../../node_modules/@types/node/ts4.8/diagnostics_channel.d.ts","../../node_modules/@types/node/ts4.8/dns.d.ts","../../node_modules/@types/node/ts4.8/dns/promises.d.ts","../../node_modules/@types/node/ts4.8/domain.d.ts","../../node_modules/@types/node/ts4.8/dom-events.d.ts","../../node_modules/@types/node/ts4.8/events.d.ts","../../node_modules/@types/node/ts4.8/fs.d.ts","../../node_modules/@types/node/ts4.8/fs/promises.d.ts","../../node_modules/@types/node/ts4.8/http.d.ts","../../node_modules/@types/node/ts4.8/http2.d.ts","../../node_modules/@types/node/ts4.8/https.d.ts","../../node_modules/@types/node/ts4.8/inspector.d.ts","../../node_modules/@types/node/ts4.8/module.d.ts","../../node_modules/@types/node/ts4.8/net.d.ts","../../node_modules/@types/node/ts4.8/os.d.ts","../../node_modules/@types/node/ts4.8/path.d.ts","../../node_modules/@types/node/ts4.8/perf_hooks.d.ts","../../node_modules/@types/node/ts4.8/process.d.ts","../../node_modules/@types/node/ts4.8/punycode.d.ts","../../node_modules/@types/node/ts4.8/querystring.d.ts","../../node_modules/@types/node/ts4.8/readline.d.ts","../../node_modules/@types/node/ts4.8/readline/promises.d.ts","../../node_modules/@types/node/ts4.8/repl.d.ts","../../node_modules/@types/node/ts4.8/stream.d.ts","../../node_modules/@types/node/ts4.8/stream/promises.d.ts","../../node_modules/@types/node/ts4.8/stream/consumers.d.ts","../../node_modules/@types/node/ts4.8/stream/web.d.ts","../../node_modules/@types/node/ts4.8/string_decoder.d.ts","../../node_modules/@types/node/ts4.8/test.d.ts","../../node_modules/@types/node/ts4.8/timers.d.ts","../../node_modules/@types/node/ts4.8/timers/promises.d.ts","../../node_modules/@types/node/ts4.8/tls.d.ts","../../node_modules/@types/node/ts4.8/trace_events.d.ts","../../node_modules/@types/node/ts4.8/tty.d.ts","../../node_modules/@types/node/ts4.8/url.d.ts","../../node_modules/@types/node/ts4.8/util.d.ts","../../node_modules/@types/node/ts4.8/v8.d.ts","../../node_modules/@types/node/ts4.8/vm.d.ts","../../node_modules/@types/node/ts4.8/wasi.d.ts","../../node_modules/@types/node/ts4.8/worker_threads.d.ts","../../node_modules/@types/node/ts4.8/zlib.d.ts","../../node_modules/@types/node/ts4.8/globals.global.d.ts","../../node_modules/@types/node/ts4.8/index.d.ts","../../../node_modules/@types/hoist-non-react-statics/index.d.ts","../../../node_modules/redux/index.d.ts","../../../node_modules/@types/react-redux/index.d.ts","../../../node_modules/@types/scheduler/index.d.ts"],"fileInfos":["2dc8c927c9c162a773c6bb3cdc4f3286c23f10eedc67414028f9cb5951610f60",{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"9b087de7268e4efc5f215347a62656663933d63c0b1d7b624913240367b999ea","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"775d9c9fd150d5de79e0450f35bc8b8f94ae64e3eb5da12725ff2a649dccc777","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},{"version":"ecf78e637f710f340ec08d5d92b3f31b134a46a4fcf2e758690d8c46ce62cba6","affectsGlobalScope":true},"5b1d4ebd62d975c7d3826202f8fac290bac0bae6e04d9e84d1707d7047e108df","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"b0e7534cd480e87b0976a4454e81d93ae31564f78a7068a7356408fe0c86f93e","affectsGlobalScope":true},"af7fd2870746deed40e130fc0a3966de74e8f52a97ec114d0fbb35876ab05ca9",{"version":"7b2f9eda59965cd1371e202b7e38b9b607594a1b3c6780751c2d2539f57b2be0","signature":"ba5b6ffe369d5c5b3d9daca09423b3c551e37ae2a6fe7cabb5ca3b80c7be065c"},{"version":"88aa8ed8523a4b5cbd9c4765f55557e58a23afb8e3a6148ae7bab9ebaab8d773","signature":"6ea3069543908661b7867695bb35b81b39efe235b747fd932408e7e16fe5fce1"},{"version":"682bd958f5237705f6613d4bb9446f31b551eb83f4e6e0b69c05e07cc4f6c105","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"946bd1737d9412395a8f24414c70f18660b84a75a12b0b448e6eb1a2161d06dd","f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","12269db43308334832b46233ce4d19e6c8b6453cb4877b081341184ee9a1700d","e050a0afcdbb269720a900c85076d18e0c1ab73e580202a2bf6964978181222a","7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"02873d070f9cb79f50833fbf4a9a27ac578a2edf8ddb8421eba1b37faba83bfb","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"c0db280fa6b09d7b8d6720a19a47f485956a41ee0e6914f1b704033eb69c6058","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","dd1d8b922bd0874a7715e43015ebfe4ce1eb55fbe405a6d97b7c9756dc608813","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","d903fafe96674bc0b2ac38a5be4a8fc07b14c2548d1cdb165a80ea24c44c0c54","b01a80007e448d035a16c74b5c95a5405b2e81b12fabcf18b75aa9eb9ef28990","04eb6578a588d6a46f50299b55f30e3a04ef27d0c5a46c57d8fcc211cd530faa","dbe5aa5a5dd8bd1c6a8d11b1310c3f0cdabaacc78a37b394a8c7b14faeb5fb84","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"d4ac44f01d42f541631c5fc88d0ed8efac29a3a3ad9a745d9fd58f8b61ed132e","7c013aa892414a7fdcfd861ae524a668eaa3ede8c7c0acafaf611948122c8d93","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","3163f47436da41706c6e2b3c1511f3b7cce9f9f3905b2f3e01246c48b4ba7d14","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","24ad30a03d6c9266b63540956868dd70fa2dc523d60d780d6586eb0c281946bc",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","4c8525f256873c7ba3135338c647eaf0ca7115a1a2805ae2d0056629461186ce","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"f7db71191aa7aac5d6bc927ed6e7075c2763d22c7238227ec0c63c8cf5cb6a8b","affectsGlobalScope":true},"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"652ee9c5103e89102d87bc20d167a02a0e3e5e53665674466c8cfea8a9e418c7","bfe1b52cf71aea9bf8815810cc5d9490fa9617313e3d3c2ee3809a28b80d0bb4",{"version":"d530250769a14518ebd6edda5b5f94abaaf3b9f612363c0da32082fa6acd0da8","affectsGlobalScope":true},"4370c91e46f6992a89e3979c50434cf932088e1b5ae6e3a5214d778634dea768","74b0245c42990ed8a849df955db3f4362c81b13f799ebc981b7bec2d5b414a57"],"options":{"declaration":true,"downlevelIteration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"jsx":4,"module":1,"noImplicitAny":true,"outDir":"./","strict":true,"target":1},"fileIdsList":[[55,57,105],[105],[54,55,56,105],[59,105],[62,105],[63,68,96,105],[64,75,76,83,93,104,105],[64,65,75,83,105],[66,105],[67,68,76,84,105],[68,93,101,105],[69,71,75,83,105],[70,105],[71,72,105],[75,105],[73,75,105],[75,76,77,93,104,105],[75,76,77,90,93,96,105],[105,109],[78,83,93,104,105],[75,76,78,79,83,93,101,104,105],[78,80,93,101,104,105],[59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111],[75,81,105],[82,104,105],[71,75,83,93,105],[84,105],[85,105],[62,86,105],[87,103,105,109],[88,105],[89,105],[75,90,91,105],[90,92,105,107],[63,75,93,94,95,96,105],[63,93,95,105],[93,94,105],[96,105],[97,105],[75,99,100,105],[99,100,105],[68,83,93,101,105],[102,105],[83,103,105],[63,78,89,104,105],[68,105],[93,105,106],[105,107],[105,108],[63,68,75,77,86,93,104,105,107,109],[93,105,110],[50,51,105],[50,52,105],[50,105],[49,105],[49,105,113,114],[45,46,47,48,105]],"referencedMap":[[58,1],[54,2],[57,3],[55,2],[56,2],[59,4],[60,4],[62,5],[63,6],[64,7],[65,8],[66,9],[67,10],[68,11],[69,12],[70,13],[71,14],[72,14],[74,15],[73,16],[75,15],[76,17],[77,18],[61,19],[111,2],[78,20],[79,21],[80,22],[112,23],[81,24],[82,25],[83,26],[84,27],[85,28],[86,29],[87,30],[88,31],[89,32],[90,33],[91,33],[92,34],[93,35],[95,36],[94,37],[96,38],[97,39],[98,2],[99,40],[100,41],[101,42],[102,43],[103,44],[104,45],[105,46],[106,47],[107,48],[108,49],[109,50],[110,51],[1,2],[9,2],[13,2],[12,2],[3,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[4,2],[5,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[6,2],[29,2],[30,2],[31,2],[32,2],[7,2],[33,2],[34,2],[35,2],[36,2],[8,2],[37,2],[42,2],[43,2],[38,2],[39,2],[40,2],[41,2],[2,2],[44,2],[11,2],[10,2],[52,52],[53,53],[51,54],[113,55],[47,2],[115,56],[45,2],[49,57],[50,55],[116,2],[48,2],[46,2],[114,2]],"exportedModulesMap":[[58,1],[54,2],[57,3],[55,2],[56,2],[59,4],[60,4],[62,5],[63,6],[64,7],[65,8],[66,9],[67,10],[68,11],[69,12],[70,13],[71,14],[72,14],[74,15],[73,16],[75,15],[76,17],[77,18],[61,19],[111,2],[78,20],[79,21],[80,22],[112,23],[81,24],[82,25],[83,26],[84,27],[85,28],[86,29],[87,30],[88,31],[89,32],[90,33],[91,33],[92,34],[93,35],[95,36],[94,37],[96,38],[97,39],[98,2],[99,40],[100,41],[101,42],[102,43],[103,44],[104,45],[105,46],[106,47],[107,48],[108,49],[109,50],[110,51],[1,2],[9,2],[13,2],[12,2],[3,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[4,2],[5,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[6,2],[29,2],[30,2],[31,2],[32,2],[7,2],[33,2],[34,2],[35,2],[36,2],[8,2],[37,2],[42,2],[43,2],[38,2],[39,2],[40,2],[41,2],[2,2],[44,2],[11,2],[10,2],[113,55],[47,2],[115,56],[45,2],[49,57],[50,55],[116,2],[48,2],[46,2],[114,2]],"semanticDiagnosticsPerFile":[58,54,57,55,56,59,60,62,63,64,65,66,67,68,69,70,71,72,74,73,75,76,77,61,111,78,79,80,112,81,82,83,84,85,86,87,88,89,90,91,92,93,95,94,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,1,9,13,12,3,14,15,16,17,18,19,20,21,4,5,25,22,23,24,26,27,28,6,29,30,31,32,7,33,34,35,36,8,37,42,43,38,39,40,41,2,44,11,10,52,53,51,113,47,115,45,49,50,116,48,46,114]},"version":"4.8.4"}
|
1
|
+
{"program":{"fileNames":["../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es5.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2015.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2016.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2017.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2018.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2019.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2020.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2021.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2022.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.esnext.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.dom.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2015.core.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2017.object.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2017.string.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2019.array.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2019.object.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2019.string.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2020.date.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2020.string.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2020.number.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2021.string.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2022.array.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2022.error.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2022.object.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.es2022.string.d.ts","../../.yarn/cache/typescript-patch-74ec80b1de-563a0ef47a.zip/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../src/types.ts","../../src/utils/errors.ts","../../src/index.ts","../../src/umd.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","d11a03592451da2d1065e09e61f4e2a9bf68f780f4f6623c18b57816a9679d17","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"9b087de7268e4efc5f215347a62656663933d63c0b1d7b624913240367b999ea","affectsGlobalScope":true},{"version":"3260e3386d9535b804205bdddb5618a9a27735bd22927f48ad54363abcd23d45","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"775d9c9fd150d5de79e0450f35bc8b8f94ae64e3eb5da12725ff2a649dccc777","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"a4da0551fd39b90ca7ce5f68fb55d4dc0c1396d589b612e1902f68ee090aaada","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},{"version":"e458f9c8735c6c15af7f18accd0757de932e205fda7e41f7ea66c67c29e89d75","signature":"4a20ff310273cce1bd64cb34def6e811239ca23e2c0826e18b85c254faa760b2"},{"version":"7b2f9eda59965cd1371e202b7e38b9b607594a1b3c6780751c2d2539f57b2be0","signature":"ba5b6ffe369d5c5b3d9daca09423b3c551e37ae2a6fe7cabb5ca3b80c7be065c"},{"version":"afa55f02854415a830130c43a5f87ea3e0431ba52c48248e218c80a79f90af54","signature":"d6932f153b832b6de5d1f7d48ff1abc3b2feadf27b28d318e6a885c94c8883bc"},{"version":"ed72852cc026c4e5b380682597fdd4f91bd9144a2fca18f8cfec062b294a21a3","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"}],"options":{"declaration":true,"downlevelIteration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"jsx":4,"module":1,"noImplicitAny":true,"outDir":"./","strict":true,"target":2},"fileIdsList":[[56,57],[58],[56]],"referencedMap":[[58,1],[59,2]],"exportedModulesMap":[[58,3]],"semanticDiagnosticsPerFile":[11,12,14,13,2,15,16,17,18,19,20,21,22,3,4,26,23,24,25,27,28,29,5,30,31,32,33,6,34,35,36,37,7,38,43,44,39,40,41,42,8,48,45,46,47,49,9,50,51,52,53,54,1,10,55,58,56,59,57]},"version":"4.8.4"}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
export interface InitOptions {
|
2
|
+
root: HTMLElement;
|
3
|
+
frame: HTMLIFrameElement;
|
4
|
+
url: string;
|
5
|
+
team: string;
|
6
|
+
room: string;
|
7
|
+
token?: string;
|
8
|
+
}
|
9
|
+
export declare type FrameAttributes = {
|
10
|
+
align: string;
|
11
|
+
allow: string;
|
12
|
+
allowFullscreen: boolean;
|
13
|
+
frameBorder: string;
|
14
|
+
height: string;
|
15
|
+
longDesc: string;
|
16
|
+
marginHeight: string;
|
17
|
+
marginWidth: string;
|
18
|
+
name: string;
|
19
|
+
referrerPolicy: ReferrerPolicy;
|
20
|
+
scrolling: string;
|
21
|
+
src: string;
|
22
|
+
srcdoc: string;
|
23
|
+
width: string;
|
24
|
+
} & HTMLElement;
|
25
|
+
export interface InstanceProperties {
|
26
|
+
frameAttributes?: Partial<FrameAttributes>;
|
27
|
+
reportErrors?: boolean;
|
28
|
+
}
|
29
|
+
export declare type SendMessageType = "connect" | "enableVideo" | "enableAudio" | "disableVideo" | "disableAudio" | "toggleVideo" | "toggleAudio" | "startScreenshare" | "stopScreenshare" | "startRecording" | "stopRecording" | "showToolbar" | "hideToolbar" | "toggleToolbar" | "changeLayoutMode";
|
30
|
+
export declare type ReceiveMessageType = "connected" | "userJoined" | "userLeft" | "videoEnabled" | "videoDisabled" | "audioEnabled" | "audioDisabled" | "screenshareStarted" | "screenshareStopped" | "recordingStarted" | "recordingStopped" | "recordingFailed" | "layoutModeChanged" | "activeSpeakerChanged";
|
31
|
+
export interface SendMessage<D> {
|
32
|
+
type: SendMessageType;
|
33
|
+
data?: D;
|
34
|
+
}
|
35
|
+
export interface ReceiveMessage {
|
36
|
+
type: ReceiveMessageType;
|
37
|
+
payload: unknown;
|
38
|
+
}
|
39
|
+
export declare enum LayoutMode {
|
40
|
+
tiled = "tiled",
|
41
|
+
auto = "auto"
|
42
|
+
}
|
package/dist/umd/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.DigitalSambaEmbedded=t():e.DigitalSambaEmbedded=t()}(this,(()=>(()=>{"use strict";var e={
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.DigitalSambaEmbedded=t():e.DigitalSambaEmbedded=t()}(this,(()=>(()=>{"use strict";var e={240:(e,t,s)=>{var i;Object.defineProperty(t,"__esModule",{value:!0}),t.DigitalSambaEmbedded=void 0;const r=s(162);class o{constructor(e={},t={},s=!0){this.savedIframeSrc="",this.allowedOrigin="*",this.connected=!1,this.frame=document.createElement("iframe"),this.eventHandlers={},this.reportErrors=!1,this.mountFrame=e=>{const{url:t,frame:s,root:i}=this.initOptions;if(i?i.appendChild(this.frame):s?(this.frame=s,s.allow||this.logError(r.ALLOW_ATTRIBUTE_MISSING)):document.body.appendChild(this.frame),t||this.frame.src&&this.frame.src!==window.location.href)try{const e=new URL(t||this.frame.src).toString();this.frame.src=e,this.savedIframeSrc=e}catch(e){this.logError(r.INVALID_URL)}e||(this.savedIframeSrc=this.frame.src,this.frame.src="")},this.load=(e={})=>{this.reportErrors=e.reportErrors||!1,this.setFrameSrc(),this.applyFrameProperties(e),this.frame.style.display="block"},this.on=(e,t)=>{this.eventHandlers[e]=t},this.onMessage=e=>{if("function"==typeof this.eventHandlers["*"]&&this.eventHandlers["*"](e.data),e.data.type){const t=this.eventHandlers[e.data.type];t instanceof Function&&t(e.data)}},this.setFrameSrc=()=>{let e=this.savedIframeSrc;const{team:t,room:s,token:i}=this.initOptions;if(t&&s&&(e=`https://${t}.digitalsamba.com/${s}`),e&&i){const t=new URL(e);t.searchParams.append("token",i),e=t.toString()}if(!e)return void this.logError(r.INVALID_CONFIG);this.frame.src=e;const o=new URL(this.frame.src);this.allowedOrigin=o.origin,this.frame.onload=()=>this.checkTarget()},this.logError=e=>{if(this.reportErrors)throw e},this.applyFrameProperties=e=>{e.frameAttributes&&Object.entries(e.frameAttributes).forEach((([e,t])=>{null!=t?this.frame.setAttribute(e,t.toString()):this.frame.removeAttribute(e)})),e.reportErrors&&(this.reportErrors=!0)},this.enableVideo=()=>{this.sendMessage({type:"enableVideo"})},this.disableVideo=()=>{this.sendMessage({type:"disableVideo"})},this.toggleVideo=e=>{void 0===e?this.sendMessage({type:"toggleVideo"}):e?this.enableVideo():this.disableVideo()},this.enableAudio=()=>{this.sendMessage({type:"enableAudio"})},this.disableAudio=()=>{this.sendMessage({type:"disableAudio"})},this.toggleAudio=e=>{void 0===e?this.sendMessage({type:"toggleAudio"}):e?this.enableAudio():this.disableAudio()},this.startScreenshare=()=>{this.sendMessage({type:"startScreenshare"})},this.stopScreenshare=()=>{this.sendMessage({type:"stopScreenshare"})},this.startRecording=()=>{this.sendMessage({type:"startRecording"})},this.stopRecording=()=>{this.sendMessage({type:"stopRecording"})},this.showToolbar=()=>{this.sendMessage({type:"showToolbar"})},this.hideToolbar=()=>{this.sendMessage({type:"hideToolbar"})},this.changeLayoutMode=e=>{this.sendMessage({type:"changeLayoutMode",data:e})},this.toggleToolbar=e=>{void 0===e?this.sendMessage({type:"toggleToolbar"}):e?this.showToolbar():this.hideToolbar()},this.initOptions=e,this.reportErrors=t.reportErrors||!1,this.frame.allow="camera; microphone; display-capture; autoplay;",this.frame.setAttribute("allowFullscreen","true"),this.mountFrame(s),s?this.load(t):this.frame.style.display="none",window.addEventListener("message",this.onMessage)}checkTarget(){this.sendMessage({type:"connect"});const e=window.setTimeout((()=>{this.logError(r.UNKNOWN_TARGET)}),5e3);this.on("connected",(()=>{this.connected=!0,clearTimeout(e)}))}sendMessage(e){this.frame.contentWindow&&this.frame.contentWindow.postMessage(e,{targetOrigin:this.allowedOrigin})}}t.DigitalSambaEmbedded=o,i=o,o.createControl=e=>new i(e,{},!1)},475:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0});const i=s(240);e.exports=i.DigitalSambaEmbedded},162:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.INVALID_URL=t.ALLOW_ATTRIBUTE_MISSING=t.INVALID_CONFIG=t.UNKNOWN_TARGET=t.RichError=void 0;class s extends Error{constructor(e){super(e.message),this.name=e.name}}t.RichError=s,t.UNKNOWN_TARGET=new s({name:"UNKNOWN_TARGET",message:"Could not verify the identity of target frame. Commands may not work"}),t.INVALID_CONFIG=new s({name:"INVALID_INIT_CONFIG",message:"Initializations options are invalid. Missing team name or room ID"}),t.ALLOW_ATTRIBUTE_MISSING=new s({name:"ALLOW_ATTRIBUTE_MISSING",message:"You've provided a frame that is mising 'allow' attribute. Some functionality may not work."}),t.INVALID_URL=new s({name:"INVALID_URL",message:"Invalid frame url specified"})}},t={};return function s(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,s),o.exports}(475)})()));
|
package/package.json
CHANGED
@@ -1,25 +1,47 @@
|
|
1
1
|
{
|
2
2
|
"name": "@digitalsamba/embedded-sdk",
|
3
3
|
"packageManager": "yarn@3.1.0",
|
4
|
-
"version": "0.0.
|
5
|
-
"license"
|
4
|
+
"version": "0.0.8",
|
5
|
+
"license": "BSD-2-Clause",
|
6
6
|
"scripts": {
|
7
7
|
"build": "npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:types",
|
8
8
|
"build:cjs": "node tools/cleanup cjs && tsc -p config/tsconfig.cjs.json",
|
9
9
|
"build:esm": "node tools/cleanup esm && tsc -p config/tsconfig.esm.json",
|
10
10
|
"build:umd": "node tools/cleanup umd && webpack --config config/webpack.config.js",
|
11
|
-
"build:types": "node tools/cleanup types && tsc -p config/tsconfig.types.json"
|
11
|
+
"build:types": "node tools/cleanup types && tsc -p config/tsconfig.types.json",
|
12
|
+
"prepare": "husky install"
|
12
13
|
},
|
13
14
|
"main": "dist/cjs/index.js",
|
14
15
|
"module": "dist/esm/index.js",
|
15
16
|
"umd:main": "dist/umd/index.js",
|
16
17
|
"types": "dist/types/index.d.js",
|
17
|
-
"files": [
|
18
|
+
"files": [
|
19
|
+
"dist"
|
20
|
+
],
|
18
21
|
"unpkg": "dist/umd/index.js",
|
19
22
|
"devDependencies": {
|
23
|
+
"@typescript-eslint/eslint-plugin": "^5.48.0",
|
24
|
+
"@typescript-eslint/parser": "^5.48.0",
|
25
|
+
"eslint": "^8.2.0",
|
26
|
+
"eslint-config-airbnb-base": "15.0.0",
|
27
|
+
"eslint-config-airbnb-typescript": "^17.0.0",
|
28
|
+
"eslint-config-prettier": "^8.6.0",
|
29
|
+
"eslint-plugin-import": "^2.25.2",
|
30
|
+
"husky": "^8.0.3",
|
31
|
+
"lint-staged": "^13.1.0",
|
32
|
+
"prettier": "2.8.1",
|
20
33
|
"ts-loader": "^9.4.1",
|
21
34
|
"typescript": "^4.8.3",
|
22
35
|
"webpack": "^5.74.0",
|
23
36
|
"webpack-cli": "^4.10.0"
|
37
|
+
},
|
38
|
+
"lint-staged": {
|
39
|
+
"*.{js,ts,md}": [
|
40
|
+
"eslint --fix",
|
41
|
+
"prettier --write"
|
42
|
+
]
|
43
|
+
},
|
44
|
+
"ts-standard": {
|
45
|
+
"project": "./tsconfig.json"
|
24
46
|
}
|
25
47
|
}
|