@scaleflex/widget-screen-capture 4.0.7 → 4.1.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.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 scaleflex
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2019 scaleflex
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,156 +1,156 @@
1
- # `@scaleflex/widget-screen-capture`
2
-
3
- [![Plugins][plugins-image]](#plugins)
4
- [![Website][filerobot-image]][sfx-url]
5
- [![Version][filerobot-version]][version-url]
6
- [![Scaleflex team][made-by-image]][sfx-url]
7
- [![License][license-image]][license-url]
8
- [![CodeSandbox][codeSandbox-image]][codeSandbox-url]
9
-
10
-
11
- <div align='center'>
12
- <img title="Scaleflex Widget logo" alt="Scaleflex Widget logo" src="https://assets.scaleflex.com/Corporate+Branding/%5B2025%5D+ALL+LOGOS+%2B+ICONS/SCALEFLEX/VXP+logo/Horizontal+White/VXP+logo+WHITE.png?vh=663932" width="140"/>
13
- </div>
14
-
15
- The screen capture records the device's screen with processing the recorded video for uploading in [Scaleflex Media Asset Widget](https://www.npmjs.com/package/@scaleflex/widget-core).
16
-
17
- ## Usage
18
-
19
- ### NPM
20
-
21
- ```bash
22
- npm install --save @scaleflex/widget-screen-capture
23
- ```
24
-
25
- ### YARN
26
-
27
- ```bash
28
- yarn add @scaleflex/widget-screen-capture
29
- ```
30
-
31
- then
32
-
33
- ```js
34
- import ScreenCapture from '@scaleflex/widget-screen-capture'
35
- ...
36
- ...
37
- ...
38
- scaleflexWidget.use(ScreenCapture, propertiesObject)
39
- ```
40
-
41
- ### CDN
42
-
43
- The plugin from CDN is found inside `Scaleflex` global object `Scaleflex.ScreenCapture`
44
-
45
- ```js
46
- const ScreenCapture = window.ScaleflexWidget.ScreenCapture
47
- ...
48
- ...
49
- ...
50
- scaleflexWidget.use(ScreenCapture, propertiesObject)
51
- ```
52
-
53
- ### Plugin's styles
54
-
55
- ```js
56
- import '@scaleflex/widget-core/dist/style.css'
57
- import '@scaleflex/widget-screen-capture/dist/style.css'
58
- ```
59
-
60
- or if you prefer the minified version
61
-
62
- ```js
63
- import '@scaleflex/widget-core/dist/style.min.css'
64
- import '@scaleflex/widget-screen-capture/dist/style.min.css'
65
- ```
66
-
67
- > The plugin's css file should be imported after the [Core's css file](../@scaleflex/widget-core/#modules-styles) for having the styles shown correctly.
68
-
69
- ## Properties
70
-
71
- ### `title`
72
-
73
- <u>Type:</u> `string`.
74
-
75
- <u>Default:</u> `'Screen cast'`
76
-
77
- The title shown in the top bar of the panel.
78
-
79
- ### `preferredVideoMimeType`
80
-
81
- <u>Type:</u> `string`.
82
-
83
- <u>Default:</u> `null`
84
-
85
- The mime type for the recorded video to be saved with if you provided un-supported mime type then the browser's default would be used, if you left it `null` then if found any suitable type inside [`allowedFileTypes`](../core/README.md/#restrictions) it would be used.
86
-
87
- ### `displayMediaConstraints`
88
-
89
- <u>Type:</u> `object`.
90
-
91
- <u>Default:</u>
92
-
93
- ```js
94
- video: {
95
- width: 1280,
96
- height: 720,
97
- frameRate: {
98
- ideal: 3,
99
- max: 5
100
- },
101
- cursor: 'motion',
102
- displaySurface: 'monitor'
103
- }
104
- ```
105
-
106
- The options being passed for [`getDisplayMedia`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia) method of [`navigator.mediaDevices`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaDevices). Check the available options/properties from [`MDN Docs`](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints#properties_of_shared_screen_tracks) Whether to show the video's recording length or not while it is in progress.
107
-
108
- ### `userMediaConstraints`
109
-
110
- <u>Type:</u> `object`.
111
-
112
- <u>Default:</u>
113
-
114
- ```js
115
- {
116
- audio: true
117
- }
118
- ```
119
-
120
- The options being passed for [`getUserMedia`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia) method of [`navigator.mediaDevices`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaDevices). Check the available options/properties from [`MDN Docs`](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamConstraints/audio) Whether to show the video's recording length or not while it is in progress.
121
-
122
- ### `locale`
123
-
124
- <u>Type:</u> `object`.
125
-
126
- <u>Default:</u>
127
-
128
- ```js
129
- strings: {
130
- startCapturing: 'Begin screen capturing',
131
- stopCapturing: 'Stop screen capturing',
132
- submitRecordedFile: 'Submit captured video',
133
- streamActive: 'Stream active',
134
- streamPassive: 'Stream passive',
135
- micDisabled: 'Microphone access denied by user',
136
- recording: 'Recording'
137
- }
138
- ```
139
-
140
- Customizing some of the translations or the language's strings and replace the default locale.
141
-
142
- <!-- Variables -->
143
-
144
- [npm-url]: https://www.npmjs.com/package/@scaleflex/widget-screen-capture
145
- [license-url]: https://opensource.org/licenses/MIT
146
- [sfx-url]: https://www.scaleflex.com/
147
- [version-url]: https://www.npmjs.com/package/@scaleflex/widget-screen-capture
148
- [codeSandbox-url]: https://codesandbox.io/p/sandbox/scalelfex-widget-v4-sandbox-dtp6l3?file=%2Fsrc%2Findex.js
149
-
150
- [npm-image]: https://img.shields.io/npm/v/@telus/remark-config.svg?style=for-the-badge&logo=npm
151
- [license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge
152
- [made-by-image]: https://img.shields.io/badge/%3C%2F%3E%20with%20%E2%99%A5%20by-the%20Scaleflex%20team-6986fa.svg?style=for-the-badge
153
- [plugins-image]: https://img.shields.io/static/v1?label=Scaleflex&message=Plugins&color=yellow&style=for-the-badge
154
- [filerobot-image]: https://img.shields.io/static/v1?label=Scaleflex&message=website&color=orange&style=for-the-badge
155
- [filerobot-version]: https://img.shields.io/npm/v/@scaleflex/widget-screen-capture?label=Version&style=for-the-badge&logo=npm
156
- [codeSandbox-image]: https://img.shields.io/badge/CodeSandbox-black?style=for-the-badge&logo=CodeSandbox
1
+ # `@scaleflex/widget-screen-capture`
2
+
3
+ [![Plugins][plugins-image]](#plugins)
4
+ [![Website][filerobot-image]][sfx-url]
5
+ [![Version][filerobot-version]][version-url]
6
+ [![Scaleflex team][made-by-image]][sfx-url]
7
+ [![License][license-image]][license-url]
8
+ [![CodeSandbox][codeSandbox-image]][codeSandbox-url]
9
+
10
+
11
+ <div align='center'>
12
+ <img title="Scaleflex Widget logo" alt="Scaleflex Widget logo" src="https://assets.scaleflex.com/Corporate+Branding/%5B2025%5D+ALL+LOGOS+%2B+ICONS/SCALEFLEX/VXP+logo/Horizontal+White/VXP+logo+WHITE.png?vh=663932" width="140"/>
13
+ </div>
14
+
15
+ The screen capture records the device's screen with processing the recorded video for uploading in [Scaleflex Media Asset Widget](https://www.npmjs.com/package/@scaleflex/widget-core).
16
+
17
+ ## Usage
18
+
19
+ ### NPM
20
+
21
+ ```bash
22
+ npm install --save @scaleflex/widget-screen-capture
23
+ ```
24
+
25
+ ### YARN
26
+
27
+ ```bash
28
+ yarn add @scaleflex/widget-screen-capture
29
+ ```
30
+
31
+ then
32
+
33
+ ```js
34
+ import ScreenCapture from '@scaleflex/widget-screen-capture'
35
+ ...
36
+ ...
37
+ ...
38
+ scaleflexWidget.use(ScreenCapture, propertiesObject)
39
+ ```
40
+
41
+ ### CDN
42
+
43
+ The plugin from CDN is found inside `Scaleflex` global object `Scaleflex.ScreenCapture`
44
+
45
+ ```js
46
+ const ScreenCapture = window.ScaleflexWidget.ScreenCapture
47
+ ...
48
+ ...
49
+ ...
50
+ scaleflexWidget.use(ScreenCapture, propertiesObject)
51
+ ```
52
+
53
+ ### Plugin's styles
54
+
55
+ ```js
56
+ import '@scaleflex/widget-core/dist/style.css'
57
+ import '@scaleflex/widget-screen-capture/dist/style.css'
58
+ ```
59
+
60
+ or if you prefer the minified version
61
+
62
+ ```js
63
+ import '@scaleflex/widget-core/dist/style.min.css'
64
+ import '@scaleflex/widget-screen-capture/dist/style.min.css'
65
+ ```
66
+
67
+ > The plugin's css file should be imported after the [Core's css file](../@scaleflex/widget-core/#modules-styles) for having the styles shown correctly.
68
+
69
+ ## Properties
70
+
71
+ ### `title`
72
+
73
+ <u>Type:</u> `string`.
74
+
75
+ <u>Default:</u> `'Screen cast'`
76
+
77
+ The title shown in the top bar of the panel.
78
+
79
+ ### `preferredVideoMimeType`
80
+
81
+ <u>Type:</u> `string`.
82
+
83
+ <u>Default:</u> `null`
84
+
85
+ The mime type for the recorded video to be saved with if you provided un-supported mime type then the browser's default would be used, if you left it `null` then if found any suitable type inside [`allowedFileTypes`](../core/README.md/#restrictions) it would be used.
86
+
87
+ ### `displayMediaConstraints`
88
+
89
+ <u>Type:</u> `object`.
90
+
91
+ <u>Default:</u>
92
+
93
+ ```js
94
+ video: {
95
+ width: 1280,
96
+ height: 720,
97
+ frameRate: {
98
+ ideal: 3,
99
+ max: 5
100
+ },
101
+ cursor: 'motion',
102
+ displaySurface: 'monitor'
103
+ }
104
+ ```
105
+
106
+ The options being passed for [`getDisplayMedia`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia) method of [`navigator.mediaDevices`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaDevices). Check the available options/properties from [`MDN Docs`](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints#properties_of_shared_screen_tracks) Whether to show the video's recording length or not while it is in progress.
107
+
108
+ ### `userMediaConstraints`
109
+
110
+ <u>Type:</u> `object`.
111
+
112
+ <u>Default:</u>
113
+
114
+ ```js
115
+ {
116
+ audio: true
117
+ }
118
+ ```
119
+
120
+ The options being passed for [`getUserMedia`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia) method of [`navigator.mediaDevices`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaDevices). Check the available options/properties from [`MDN Docs`](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamConstraints/audio) Whether to show the video's recording length or not while it is in progress.
121
+
122
+ ### `locale`
123
+
124
+ <u>Type:</u> `object`.
125
+
126
+ <u>Default:</u>
127
+
128
+ ```js
129
+ strings: {
130
+ startCapturing: 'Begin screen capturing',
131
+ stopCapturing: 'Stop screen capturing',
132
+ submitRecordedFile: 'Submit captured video',
133
+ streamActive: 'Stream active',
134
+ streamPassive: 'Stream passive',
135
+ micDisabled: 'Microphone access denied by user',
136
+ recording: 'Recording'
137
+ }
138
+ ```
139
+
140
+ Customizing some of the translations or the language's strings and replace the default locale.
141
+
142
+ <!-- Variables -->
143
+
144
+ [npm-url]: https://www.npmjs.com/package/@scaleflex/widget-screen-capture
145
+ [license-url]: https://opensource.org/licenses/MIT
146
+ [sfx-url]: https://www.scaleflex.com/
147
+ [version-url]: https://www.npmjs.com/package/@scaleflex/widget-screen-capture
148
+ [codeSandbox-url]: https://codesandbox.io/p/sandbox/scalelfex-widget-v4-sandbox-dtp6l3?file=%2Fsrc%2Findex.js
149
+
150
+ [npm-image]: https://img.shields.io/npm/v/@telus/remark-config.svg?style=for-the-badge&logo=npm
151
+ [license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge
152
+ [made-by-image]: https://img.shields.io/badge/%3C%2F%3E%20with%20%E2%99%A5%20by-the%20Scaleflex%20team-6986fa.svg?style=for-the-badge
153
+ [plugins-image]: https://img.shields.io/static/v1?label=Scaleflex&message=Plugins&color=yellow&style=for-the-badge
154
+ [filerobot-image]: https://img.shields.io/static/v1?label=Scaleflex&message=website&color=orange&style=for-the-badge
155
+ [filerobot-version]: https://img.shields.io/npm/v/@scaleflex/widget-screen-capture?label=Version&style=for-the-badge&logo=npm
156
+ [codeSandbox-image]: https://img.shields.io/badge/CodeSandbox-black?style=for-the-badge&logo=CodeSandbox
package/dist/style.css CHANGED
@@ -5,7 +5,8 @@
5
5
  display: flex;
6
6
  justify-content: center;
7
7
  align-items: center;
8
- flex-direction: column; }
8
+ flex-direction: column;
9
+ }
9
10
 
10
11
  .filerobot-ScreenCapture-videoContainer {
11
12
  width: 100%;
@@ -14,9 +15,11 @@
14
15
  overflow: hidden;
15
16
  background-color: #37414B;
16
17
  text-align: center;
17
- position: relative; }
18
- .filerobot-size--md .filerobot-ScreenCapture-videoContainer {
19
- max-width: 100%; }
18
+ position: relative;
19
+ }
20
+ .filerobot-size--md .filerobot-ScreenCapture-videoContainer {
21
+ max-width: 100%;
22
+ }
20
23
 
21
24
  .filerobot-ScreenCapture-video {
22
25
  max-width: 100%;
@@ -27,7 +30,8 @@
27
30
  bottom: 0;
28
31
  left: 0;
29
32
  margin: auto;
30
- outline: none; }
33
+ outline: none;
34
+ }
31
35
 
32
36
  .filerobot-ScreenCapture-buttonContainer {
33
37
  width: 100%;
@@ -37,35 +41,46 @@
37
41
  align-items: center;
38
42
  justify-content: center;
39
43
  padding: 0 20px;
40
- background-color: #fff; }
41
- [data-filerobot-theme="dark"] .filerobot-ScreenCapture-buttonContainer {
42
- background-color: #1f1f1f;
43
- border-top: 1px solid #333; }
44
+ background-color: #fff;
45
+ }
46
+ [data-filerobot-theme=dark] .filerobot-ScreenCapture-buttonContainer {
47
+ background-color: #1f1f1f;
48
+ border-top: 1px solid #333;
49
+ }
44
50
 
51
+ .filerobot-ScreenCapture-button:focus {
52
+ outline: none;
53
+ }
54
+ .filerobot-ScreenCapture-button::-moz-focus-inner {
55
+ border: 0;
56
+ }
57
+ .filerobot-ScreenCapture-button:focus {
58
+ box-shadow: 0 0 0 3px rgba(82, 130, 219, 0.5);
59
+ }
45
60
  .filerobot-ScreenCapture-button {
46
61
  width: 45px;
47
62
  height: 45px;
48
63
  border-radius: 50%;
49
64
  color: #fff;
50
65
  cursor: pointer;
51
- transition: all 0.3s; }
52
- .filerobot-ScreenCapture-button:focus {
53
- outline: none; }
54
- .filerobot-ScreenCapture-button::-moz-focus-inner {
55
- border: 0; }
56
- .filerobot-ScreenCapture-button:focus {
57
- box-shadow: 0 0 0 3px rgba(82, 130, 219, 0.5); }
58
- [data-filerobot-theme="dark"] .filerobot-ScreenCapture-button:focus {
59
- outline: none; }
60
- [data-filerobot-theme="dark"] .filerobot-ScreenCapture-button::-moz-focus-inner {
61
- border: 0; }
62
- [data-filerobot-theme="dark"] .filerobot-ScreenCapture-button:focus {
63
- box-shadow: 0 0 0 2px rgba(170, 225, 255, 0.85); }
64
- .filerobot-size--md .filerobot-ScreenCapture-button {
65
- width: 60px;
66
- height: 60px; }
67
- .filerobot-ScreenCapture-button:hover {
68
- background-color: #d31b2d; }
66
+ transition: all 0.3s;
67
+ }
68
+ [data-filerobot-theme=dark] .filerobot-ScreenCapture-button:focus {
69
+ outline: none;
70
+ }
71
+ [data-filerobot-theme=dark] .filerobot-ScreenCapture-button::-moz-focus-inner {
72
+ border: 0;
73
+ }
74
+ [data-filerobot-theme=dark] .filerobot-ScreenCapture-button:focus {
75
+ box-shadow: 0 0 0 2px rgba(170, 225, 255, 0.85);
76
+ }
77
+ .filerobot-size--md .filerobot-ScreenCapture-button {
78
+ width: 60px;
79
+ height: 60px;
80
+ }
81
+ .filerobot-ScreenCapture-button:hover {
82
+ background-color: rgb(210.5769230769, 26.9230769231, 45.1923076923);
83
+ }
69
84
 
70
85
  .filerobot-ScreenCapture-button svg {
71
86
  width: 30px;
@@ -75,18 +90,23 @@
75
90
  display: inline-block;
76
91
  vertical-align: text-top;
77
92
  overflow: hidden;
78
- fill: currentColor; }
93
+ fill: currentColor;
94
+ }
79
95
 
80
96
  .filerobot-ScreenCapture-button--submit {
81
97
  background-color: #5282DB;
82
- margin-left: 12px; }
83
- .filerobot-ScreenCapture-button--submit:hover {
84
- background-color: #3d73d7; }
85
- .filerobot-ScreenCapture-button--submit:disabled {
86
- background-color: #939393;
87
- cursor: default; }
88
- .filerobot-ScreenCapture-button--submit:disabled:hover {
89
- background-color: #eaeaea; }
98
+ margin-left: 12px;
99
+ }
100
+ .filerobot-ScreenCapture-button--submit:hover {
101
+ background-color: rgb(60.8923444976, 114.7488038278, 214.6076555024);
102
+ }
103
+ .filerobot-ScreenCapture-button--submit:disabled {
104
+ background-color: #939393;
105
+ cursor: default;
106
+ }
107
+ .filerobot-ScreenCapture-button--submit:disabled:hover {
108
+ background-color: #eaeaea;
109
+ }
90
110
 
91
111
  .filerobot-ScreenCapture-title {
92
112
  font-size: 22px;
@@ -97,30 +117,39 @@
97
117
  padding: 0 15px;
98
118
  max-width: 500px;
99
119
  text-align: center;
100
- color: #333; }
120
+ color: #333;
121
+ }
101
122
 
102
123
  .filerobot-ScreenCapture-icon--stream {
103
124
  position: absolute;
104
125
  right: 0;
105
126
  top: 0;
106
127
  margin: 1rem;
107
- z-index: 1; }
108
- .filerobot-ScreenCapture-icon--stream svg {
109
- fill: #939393; }
128
+ z-index: 1;
129
+ }
130
+ .filerobot-ScreenCapture-icon--stream svg {
131
+ fill: #939393;
132
+ }
110
133
 
111
134
  .filerobot-ScreenCapture-icon--streamActive svg {
112
- animation: filerobot-ScreenCapture-icon--blink 1s cubic-bezier(0.47, 0, 0.75, 0.72) infinite; }
135
+ animation: filerobot-ScreenCapture-icon--blink 1s cubic-bezier(0.47, 0, 0.75, 0.72) infinite;
136
+ }
113
137
 
114
138
  @keyframes filerobot-ScreenCapture-icon--blink {
115
139
  0% {
116
- fill: #5282DB; }
140
+ fill: #5282DB;
141
+ }
117
142
  50% {
118
- fill: #939393; }
143
+ fill: #939393;
144
+ }
119
145
  100% {
120
- fill: #5282DB; } }
121
-
146
+ fill: #5282DB;
147
+ }
148
+ }
122
149
  .filerobot-ScreenCapture-button--video {
123
150
  color: #fff;
124
- background: #e32437; }
125
- .filerobot-ScreenCapture-button--video:hover {
126
- background-color: #bc1828; }
151
+ background: #e32437;
152
+ }
153
+ .filerobot-ScreenCapture-button--video:hover {
154
+ background-color: rgb(187.967611336, 24.032388664, 40.3400809717);
155
+ }
@@ -1 +1 @@
1
- @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");.filerobot-ScreenCapture-container{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;width:100%}.filerobot-ScreenCapture-videoContainer{background-color:#37414b;flex:1;flex-grow:1;overflow:hidden;position:relative;text-align:center;width:100%}.filerobot-size--md .filerobot-ScreenCapture-videoContainer{max-width:100%}.filerobot-ScreenCapture-video{bottom:0;left:0;margin:auto;max-height:100%;max-width:100%;outline:none;position:absolute;right:0;top:0}.filerobot-ScreenCapture-buttonContainer{align-items:center;background-color:#fff;border-top:1px solid #eaeaea;display:flex;height:75px;justify-content:center;padding:0 20px;width:100%}[data-filerobot-theme=dark] .filerobot-ScreenCapture-buttonContainer{background-color:#1f1f1f;border-top:1px solid #333}.filerobot-ScreenCapture-button{border-radius:50%;color:#fff;cursor:pointer;height:45px;transition:all .3s;width:45px}.filerobot-ScreenCapture-button:focus{outline:none}.filerobot-ScreenCapture-button::-moz-focus-inner{border:0}.filerobot-ScreenCapture-button:focus{box-shadow:0 0 0 3px rgba(82,130,219,.5)}[data-filerobot-theme=dark] .filerobot-ScreenCapture-button:focus{outline:none}[data-filerobot-theme=dark] .filerobot-ScreenCapture-button::-moz-focus-inner{border:0}[data-filerobot-theme=dark] .filerobot-ScreenCapture-button:focus{box-shadow:0 0 0 2px rgba(170,225,255,.85)}.filerobot-size--md .filerobot-ScreenCapture-button{height:60px;width:60px}.filerobot-ScreenCapture-button:hover{background-color:#d31b2d}.filerobot-ScreenCapture-button svg{display:inline-block;height:30px;max-height:100%;max-width:100%;overflow:hidden;vertical-align:text-top;width:30px;fill:currentColor}.filerobot-ScreenCapture-button--submit{background-color:#5282db;margin-left:12px}.filerobot-ScreenCapture-button--submit:hover{background-color:#3d73d7}.filerobot-ScreenCapture-button--submit:disabled{background-color:#939393;cursor:default}.filerobot-ScreenCapture-button--submit:disabled:hover{background-color:#eaeaea}.filerobot-ScreenCapture-title{color:#333;font-size:22px;font-weight:400;line-height:1.35;margin:0 0 5px;max-width:500px;padding:0 15px;text-align:center}.filerobot-ScreenCapture-icon--stream{margin:1rem;position:absolute;right:0;top:0;z-index:1}.filerobot-ScreenCapture-icon--stream svg{fill:#939393}.filerobot-ScreenCapture-icon--streamActive svg{animation:filerobot-ScreenCapture-icon--blink 1s cubic-bezier(.47,0,.75,.72) infinite}@keyframes filerobot-ScreenCapture-icon--blink{0%{fill:#5282db}50%{fill:#939393}to{fill:#5282db}}.filerobot-ScreenCapture-button--video{background:#e32437;color:#fff}.filerobot-ScreenCapture-button--video:hover{background-color:#bc1828}
1
+ @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");.filerobot-ScreenCapture-container{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;width:100%}.filerobot-ScreenCapture-videoContainer{background-color:#37414b;flex:1;flex-grow:1;overflow:hidden;position:relative;text-align:center;width:100%}.filerobot-size--md .filerobot-ScreenCapture-videoContainer{max-width:100%}.filerobot-ScreenCapture-video{bottom:0;left:0;margin:auto;max-height:100%;max-width:100%;outline:none;position:absolute;right:0;top:0}.filerobot-ScreenCapture-buttonContainer{align-items:center;background-color:#fff;border-top:1px solid #eaeaea;display:flex;height:75px;justify-content:center;padding:0 20px;width:100%}[data-filerobot-theme=dark] .filerobot-ScreenCapture-buttonContainer{background-color:#1f1f1f;border-top:1px solid #333}.filerobot-ScreenCapture-button:focus{outline:none}.filerobot-ScreenCapture-button::-moz-focus-inner{border:0}.filerobot-ScreenCapture-button:focus{box-shadow:0 0 0 3px rgba(82,130,219,.5)}.filerobot-ScreenCapture-button{border-radius:50%;color:#fff;cursor:pointer;height:45px;transition:all .3s;width:45px}[data-filerobot-theme=dark] .filerobot-ScreenCapture-button:focus{outline:none}[data-filerobot-theme=dark] .filerobot-ScreenCapture-button::-moz-focus-inner{border:0}[data-filerobot-theme=dark] .filerobot-ScreenCapture-button:focus{box-shadow:0 0 0 2px rgba(170,225,255,.85)}.filerobot-size--md .filerobot-ScreenCapture-button{height:60px;width:60px}.filerobot-ScreenCapture-button:hover{background-color:#d31b2d}.filerobot-ScreenCapture-button svg{display:inline-block;height:30px;max-height:100%;max-width:100%;overflow:hidden;vertical-align:text-top;width:30px;fill:currentColor}.filerobot-ScreenCapture-button--submit{background-color:#5282db;margin-left:12px}.filerobot-ScreenCapture-button--submit:hover{background-color:#3d73d7}.filerobot-ScreenCapture-button--submit:disabled{background-color:#939393;cursor:default}.filerobot-ScreenCapture-button--submit:disabled:hover{background-color:#eaeaea}.filerobot-ScreenCapture-title{color:#333;font-size:22px;font-weight:400;line-height:1.35;margin:0 0 5px;max-width:500px;padding:0 15px;text-align:center}.filerobot-ScreenCapture-icon--stream{margin:1rem;position:absolute;right:0;top:0;z-index:1}.filerobot-ScreenCapture-icon--stream svg{fill:#939393}.filerobot-ScreenCapture-icon--streamActive svg{animation:filerobot-ScreenCapture-icon--blink 1s cubic-bezier(.47,0,.75,.72) infinite}@keyframes filerobot-ScreenCapture-icon--blink{0%{fill:#5282db}50%{fill:#939393}to{fill:#5282db}}.filerobot-ScreenCapture-button--video{background:#e32437;color:#fff}.filerobot-ScreenCapture-button--video:hover{background-color:#bc1828}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- /**
3
- * Control screen capture recording. Will show record or stop button.
2
+ /**
3
+ * Control screen capture recording. Will show record or stop button.
4
4
  */
5
5
  export default function RecordButton(_ref) {
6
6
  var recording = _ref.recording,
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- /**
3
- * Submit recorded video to filerobot. Enabled when file is available
2
+ /**
3
+ * Submit recorded video to filerobot. Enabled when file is available
4
4
  */
5
5
  export default function SubmitButton(_ref) {
6
6
  var recordedVideo = _ref.recordedVideo,
package/lib/index.js CHANGED
@@ -47,8 +47,8 @@ function getMediaDevices() {
47
47
  return null;
48
48
  }
49
49
 
50
- /**
51
- * Screen capture
50
+ /**
51
+ * Screen capture
52
52
  */
53
53
  var ScreenCapture = /*#__PURE__*/function (_Plugin) {
54
54
  // static VERSION = packageInfo.version