@snapcall/stream-ui 1.22.0 → 1.23.0

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.
@@ -0,0 +1 @@
1
+ let e;self.onmessage=a=>{let{action:s,params:t}=a.data;"start"===s&&(e&&clearInterval(e),e=self.setInterval(()=>{self.postMessage("time")},1e3/t))};
package/dist/types.d.ts CHANGED
@@ -16,6 +16,12 @@ interface Step {
16
16
  title: string;
17
17
  description: string;
18
18
  image_url: string;
19
+ translation: {
20
+ title?: string;
21
+ description?: string;
22
+ button?: string;
23
+ languageCode?: string;
24
+ };
19
25
  }
20
26
  interface Flow {
21
27
  token: string;
@@ -24,6 +30,7 @@ interface Flow {
24
30
  steps: Array<Step>;
25
31
  }
26
32
  interface JoinOptions {
33
+ languageCode?: string;
27
34
  flowToken?: string;
28
35
  recorder?: boolean;
29
36
  apiKey?: string;
@@ -631,6 +638,7 @@ interface StreamUIBaseOptions {
631
638
  email?: string;
632
639
  name?: string;
633
640
  };
641
+ hideSwitchToMobilePopup?: boolean;
634
642
  }
635
643
  interface StreamUIInitOptions extends StreamUIBaseOptions {
636
644
  element: HTMLElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapcall/stream-ui",
3
- "version": "1.22.0",
3
+ "version": "1.23.0",
4
4
  "description": "",
5
5
  "source": "src/index.tsx",
6
6
  "main": "dist/stream-ui.js",
@@ -8,6 +8,15 @@
8
8
  "umd": "dist/stream-ui.umd.js",
9
9
  "types": "dist/types.d.ts",
10
10
  "targets": {
11
+ "streamerClient": {
12
+ "source": "streamerClient/index.ts",
13
+ "context": "browser",
14
+ "outputFormat": "commonjs",
15
+ "includeNodeModules": true,
16
+ "isLibrary": true,
17
+ "optimize": true,
18
+ "sourceMap": false
19
+ },
11
20
  "umd": {
12
21
  "context": "browser",
13
22
  "outputFormat": "global",
@@ -29,6 +38,7 @@
29
38
  "build": "parcel build",
30
39
  "build:npm": "parcel build --no-source-maps",
31
40
  "build:s3": "parcel build --no-source-maps --target umd",
41
+ "build:streamerClient": "parcel build --target streamerClient",
32
42
  "typecheck": "tsc --noEmit",
33
43
  "lint": "eslint src streamerClient --ext .ts,.tsx",
34
44
  "prettier": "prettier --check .",