@usefy/screen-recorder 0.2.0 → 0.2.1

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/index.js CHANGED
@@ -2122,7 +2122,139 @@ ScreenRecorder.displayName = "ScreenRecorder";
2122
2122
  if (document.getElementById(id)) return;
2123
2123
  var style = document.createElement('style');
2124
2124
  style.id = id;
2125
- style.textContent = `/* components/Status/StatusBadge.module.scss */
2125
+ style.textContent = `/* components/Countdown/Countdown.module.scss */
2126
+ @keyframes pulse {
2127
+ 0%, 100% {
2128
+ opacity: 1;
2129
+ }
2130
+ 50% {
2131
+ opacity: 0.5;
2132
+ }
2133
+ }
2134
+ @keyframes pulse-record {
2135
+ 0%, 100% {
2136
+ opacity: 1;
2137
+ }
2138
+ 50% {
2139
+ opacity: 0.5;
2140
+ }
2141
+ }
2142
+ @keyframes spin {
2143
+ from {
2144
+ transform: rotate(0deg);
2145
+ }
2146
+ to {
2147
+ transform: rotate(360deg);
2148
+ }
2149
+ }
2150
+ @keyframes fade-in {
2151
+ 0% {
2152
+ opacity: 0;
2153
+ }
2154
+ 100% {
2155
+ opacity: 1;
2156
+ }
2157
+ }
2158
+ @keyframes slide-up {
2159
+ 0% {
2160
+ transform: translateY(10px);
2161
+ opacity: 0;
2162
+ }
2163
+ 100% {
2164
+ transform: translateY(0);
2165
+ opacity: 1;
2166
+ }
2167
+ }
2168
+ @keyframes countdown-scale {
2169
+ 0% {
2170
+ transform: scale(0.5);
2171
+ opacity: 0;
2172
+ }
2173
+ 50% {
2174
+ transform: scale(1.2);
2175
+ opacity: 1;
2176
+ }
2177
+ 100% {
2178
+ transform: scale(1);
2179
+ opacity: 1;
2180
+ }
2181
+ }
2182
+ .Countdown_overlay__cif1q {
2183
+ position: fixed;
2184
+ top: 0;
2185
+ right: 0;
2186
+ bottom: 0;
2187
+ left: 0;
2188
+ display: flex;
2189
+ flex-direction: column;
2190
+ align-items: center;
2191
+ justify-content: center;
2192
+ background-color: rgba(0, 0, 0, 0.5);
2193
+ backdrop-filter: blur(4px);
2194
+ -webkit-backdrop-filter: blur(4px);
2195
+ animation: fade-in 200ms ease-out;
2196
+ }
2197
+
2198
+ .Countdown_countdownCircle__cif1q {
2199
+ display: flex;
2200
+ align-items: center;
2201
+ justify-content: center;
2202
+ width: 8rem;
2203
+ height: 8rem;
2204
+ border-radius: 9999px;
2205
+ background-color: rgba(255, 255, 255, 0.1);
2206
+ border: 4px solid rgba(255, 255, 255, 0.3);
2207
+ color: white;
2208
+ font-size: 4.5rem;
2209
+ font-weight: 700;
2210
+ animation: countdown-scale 500ms ease-out;
2211
+ }
2212
+
2213
+ .Countdown_message__cif1q {
2214
+ margin-top: 1.5rem;
2215
+ color: rgba(255, 255, 255, 0.8);
2216
+ font-size: 1.125rem;
2217
+ line-height: 1.25;
2218
+ font-weight: 500;
2219
+ }
2220
+
2221
+ .Countdown_cancelButton__cif1q {
2222
+ -webkit-appearance: none;
2223
+ -moz-appearance: none;
2224
+ appearance: none;
2225
+ background: none;
2226
+ border: none;
2227
+ padding: 0;
2228
+ margin: 0;
2229
+ font: inherit;
2230
+ color: inherit;
2231
+ cursor: pointer;
2232
+ }
2233
+ .Countdown_cancelButton__cif1q:disabled {
2234
+ cursor: not-allowed;
2235
+ }
2236
+ .Countdown_cancelButton__cif1q {
2237
+ margin-top: 2rem;
2238
+ padding: 0.5rem 1.5rem;
2239
+ border-radius: 9999px;
2240
+ background-color: rgba(255, 255, 255, 0.1);
2241
+ color: white;
2242
+ font-size: 0.875rem;
2243
+ line-height: 1.5;
2244
+ font-weight: 500;
2245
+ transition-property: color, background-color, border-color;
2246
+ transition-duration: 200ms;
2247
+ transition-timing-function: ease-out;
2248
+ }
2249
+ .Countdown_cancelButton__cif1q:hover {
2250
+ background-color: rgba(255, 255, 255, 0.2);
2251
+ }
2252
+ .Countdown_cancelButton__cif1q:focus {
2253
+ outline: none;
2254
+ box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
2255
+ }
2256
+
2257
+ /* components/Status/StatusBadge.module.scss */
2126
2258
  @keyframes pulse {
2127
2259
  0%, 100% {
2128
2260
  opacity: 1;
@@ -2329,138 +2461,6 @@ ScreenRecorder.displayName = "ScreenRecorder";
2329
2461
  color: #9ca3af;
2330
2462
  }
2331
2463
 
2332
- /* components/Countdown/Countdown.module.scss */
2333
- @keyframes pulse {
2334
- 0%, 100% {
2335
- opacity: 1;
2336
- }
2337
- 50% {
2338
- opacity: 0.5;
2339
- }
2340
- }
2341
- @keyframes pulse-record {
2342
- 0%, 100% {
2343
- opacity: 1;
2344
- }
2345
- 50% {
2346
- opacity: 0.5;
2347
- }
2348
- }
2349
- @keyframes spin {
2350
- from {
2351
- transform: rotate(0deg);
2352
- }
2353
- to {
2354
- transform: rotate(360deg);
2355
- }
2356
- }
2357
- @keyframes fade-in {
2358
- 0% {
2359
- opacity: 0;
2360
- }
2361
- 100% {
2362
- opacity: 1;
2363
- }
2364
- }
2365
- @keyframes slide-up {
2366
- 0% {
2367
- transform: translateY(10px);
2368
- opacity: 0;
2369
- }
2370
- 100% {
2371
- transform: translateY(0);
2372
- opacity: 1;
2373
- }
2374
- }
2375
- @keyframes countdown-scale {
2376
- 0% {
2377
- transform: scale(0.5);
2378
- opacity: 0;
2379
- }
2380
- 50% {
2381
- transform: scale(1.2);
2382
- opacity: 1;
2383
- }
2384
- 100% {
2385
- transform: scale(1);
2386
- opacity: 1;
2387
- }
2388
- }
2389
- .Countdown_overlay__cif1q {
2390
- position: fixed;
2391
- top: 0;
2392
- right: 0;
2393
- bottom: 0;
2394
- left: 0;
2395
- display: flex;
2396
- flex-direction: column;
2397
- align-items: center;
2398
- justify-content: center;
2399
- background-color: rgba(0, 0, 0, 0.5);
2400
- backdrop-filter: blur(4px);
2401
- -webkit-backdrop-filter: blur(4px);
2402
- animation: fade-in 200ms ease-out;
2403
- }
2404
-
2405
- .Countdown_countdownCircle__cif1q {
2406
- display: flex;
2407
- align-items: center;
2408
- justify-content: center;
2409
- width: 8rem;
2410
- height: 8rem;
2411
- border-radius: 9999px;
2412
- background-color: rgba(255, 255, 255, 0.1);
2413
- border: 4px solid rgba(255, 255, 255, 0.3);
2414
- color: white;
2415
- font-size: 4.5rem;
2416
- font-weight: 700;
2417
- animation: countdown-scale 500ms ease-out;
2418
- }
2419
-
2420
- .Countdown_message__cif1q {
2421
- margin-top: 1.5rem;
2422
- color: rgba(255, 255, 255, 0.8);
2423
- font-size: 1.125rem;
2424
- line-height: 1.25;
2425
- font-weight: 500;
2426
- }
2427
-
2428
- .Countdown_cancelButton__cif1q {
2429
- -webkit-appearance: none;
2430
- -moz-appearance: none;
2431
- appearance: none;
2432
- background: none;
2433
- border: none;
2434
- padding: 0;
2435
- margin: 0;
2436
- font: inherit;
2437
- color: inherit;
2438
- cursor: pointer;
2439
- }
2440
- .Countdown_cancelButton__cif1q:disabled {
2441
- cursor: not-allowed;
2442
- }
2443
- .Countdown_cancelButton__cif1q {
2444
- margin-top: 2rem;
2445
- padding: 0.5rem 1.5rem;
2446
- border-radius: 9999px;
2447
- background-color: rgba(255, 255, 255, 0.1);
2448
- color: white;
2449
- font-size: 0.875rem;
2450
- line-height: 1.5;
2451
- font-weight: 500;
2452
- transition-property: color, background-color, border-color;
2453
- transition-duration: 200ms;
2454
- transition-timing-function: ease-out;
2455
- }
2456
- .Countdown_cancelButton__cif1q:hover {
2457
- background-color: rgba(255, 255, 255, 0.2);
2458
- }
2459
- .Countdown_cancelButton__cif1q:focus {
2460
- outline: none;
2461
- box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
2462
- }
2463
-
2464
2464
  /* components/Status/ErrorMessage.module.scss */
2465
2465
  @keyframes pulse {
2466
2466
  0%, 100% {
@@ -2634,11 +2634,111 @@ ScreenRecorder.displayName = "ScreenRecorder";
2634
2634
  height: 1rem;
2635
2635
  color: #ef4444;
2636
2636
  }
2637
- .dark .ErrorMessage_dismissIcon__m4xi6 {
2638
- color: #f87171;
2637
+ .dark .ErrorMessage_dismissIcon__m4xi6 {
2638
+ color: #f87171;
2639
+ }
2640
+
2641
+ .ErrorMessage_retryButton__m4xi6 {
2642
+ -webkit-appearance: none;
2643
+ -moz-appearance: none;
2644
+ appearance: none;
2645
+ background: none;
2646
+ border: none;
2647
+ padding: 0;
2648
+ margin: 0;
2649
+ font: inherit;
2650
+ color: inherit;
2651
+ cursor: pointer;
2652
+ }
2653
+ .ErrorMessage_retryButton__m4xi6:disabled {
2654
+ cursor: not-allowed;
2655
+ }
2656
+ .ErrorMessage_retryButton__m4xi6 {
2657
+ width: 100%;
2658
+ padding: 0.5rem;
2659
+ border-radius: 0.375rem;
2660
+ background-color: #fee2e2;
2661
+ color: #b91c1c;
2662
+ font-weight: 500;
2663
+ font-size: 0.875rem;
2664
+ line-height: 1.5;
2665
+ transition-property: color, background-color, border-color;
2666
+ transition-duration: 200ms;
2667
+ transition-timing-function: ease-out;
2668
+ }
2669
+ .ErrorMessage_retryButton__m4xi6:hover {
2670
+ background-color: #fecaca;
2671
+ }
2672
+ .ErrorMessage_retryButton__m4xi6:focus {
2673
+ outline: none;
2674
+ box-shadow: 0 0 0 2px white, 0 0 0 4px #ef4444;
2675
+ }
2676
+ .dark .ErrorMessage_retryButton__m4xi6 {
2677
+ background-color: rgba(153, 27, 27, 0.5);
2678
+ color: #fecaca;
2679
+ }
2680
+ .dark .ErrorMessage_retryButton__m4xi6:hover {
2681
+ background-color: #991b1b;
2682
+ }
2683
+
2684
+ /* components/Trigger/Trigger.module.scss */
2685
+ @keyframes pulse {
2686
+ 0%, 100% {
2687
+ opacity: 1;
2688
+ }
2689
+ 50% {
2690
+ opacity: 0.5;
2691
+ }
2692
+ }
2693
+ @keyframes pulse-record {
2694
+ 0%, 100% {
2695
+ opacity: 1;
2696
+ }
2697
+ 50% {
2698
+ opacity: 0.5;
2699
+ }
2700
+ }
2701
+ @keyframes spin {
2702
+ from {
2703
+ transform: rotate(0deg);
2704
+ }
2705
+ to {
2706
+ transform: rotate(360deg);
2707
+ }
2708
+ }
2709
+ @keyframes fade-in {
2710
+ 0% {
2711
+ opacity: 0;
2712
+ }
2713
+ 100% {
2714
+ opacity: 1;
2715
+ }
2716
+ }
2717
+ @keyframes slide-up {
2718
+ 0% {
2719
+ transform: translateY(10px);
2720
+ opacity: 0;
2721
+ }
2722
+ 100% {
2723
+ transform: translateY(0);
2724
+ opacity: 1;
2725
+ }
2726
+ }
2727
+ @keyframes countdown-scale {
2728
+ 0% {
2729
+ transform: scale(0.5);
2730
+ opacity: 0;
2731
+ }
2732
+ 50% {
2733
+ transform: scale(1.2);
2734
+ opacity: 1;
2735
+ }
2736
+ 100% {
2737
+ transform: scale(1);
2738
+ opacity: 1;
2739
+ }
2639
2740
  }
2640
-
2641
- .ErrorMessage_retryButton__m4xi6 {
2741
+ .Trigger_trigger__dtqfb {
2642
2742
  -webkit-appearance: none;
2643
2743
  -moz-appearance: none;
2644
2744
  appearance: none;
@@ -2650,35 +2750,71 @@ ScreenRecorder.displayName = "ScreenRecorder";
2650
2750
  color: inherit;
2651
2751
  cursor: pointer;
2652
2752
  }
2653
- .ErrorMessage_retryButton__m4xi6:disabled {
2753
+ .Trigger_trigger__dtqfb:disabled {
2654
2754
  cursor: not-allowed;
2655
2755
  }
2656
- .ErrorMessage_retryButton__m4xi6 {
2657
- width: 100%;
2658
- padding: 0.5rem;
2659
- border-radius: 0.375rem;
2660
- background-color: #fee2e2;
2661
- color: #b91c1c;
2756
+ .Trigger_trigger__dtqfb {
2757
+ position: fixed;
2758
+ display: flex;
2759
+ align-items: center;
2760
+ justify-content: center;
2761
+ gap: 0.5rem;
2762
+ padding: 0.625rem 1rem;
2763
+ border-radius: 9999px;
2662
2764
  font-weight: 500;
2663
2765
  font-size: 0.875rem;
2664
2766
  line-height: 1.5;
2665
- transition-property: color, background-color, border-color;
2767
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
2768
+ background-color: #dc2626;
2769
+ color: white;
2770
+ transition-property: all;
2666
2771
  transition-duration: 200ms;
2667
2772
  transition-timing-function: ease-out;
2668
2773
  }
2669
- .ErrorMessage_retryButton__m4xi6:hover {
2670
- background-color: #fecaca;
2774
+ .Trigger_trigger__dtqfb:hover:not(:disabled) {
2775
+ background-color: #b91c1c;
2776
+ transform: scale(1.05);
2671
2777
  }
2672
- .ErrorMessage_retryButton__m4xi6:focus {
2778
+ .Trigger_trigger__dtqfb:active:not(:disabled) {
2779
+ background-color: #991b1b;
2780
+ transform: scale(0.95);
2781
+ }
2782
+ .Trigger_trigger__dtqfb:focus {
2673
2783
  outline: none;
2674
- box-shadow: 0 0 0 2px white, 0 0 0 4px #ef4444;
2784
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1), 0 0 0 2px white, 0 0 0 4px #ef4444;
2675
2785
  }
2676
- .dark .ErrorMessage_retryButton__m4xi6 {
2677
- background-color: rgba(153, 27, 27, 0.5);
2678
- color: #fecaca;
2786
+ .Trigger_trigger__dtqfb:disabled {
2787
+ opacity: 0.5;
2788
+ cursor: not-allowed;
2679
2789
  }
2680
- .dark .ErrorMessage_retryButton__m4xi6:hover {
2681
- background-color: #991b1b;
2790
+ .Trigger_trigger__dtqfb:disabled:hover {
2791
+ background-color: #dc2626;
2792
+ transform: none;
2793
+ }
2794
+
2795
+ .Trigger_topLeft__dtqfb {
2796
+ top: 1rem;
2797
+ left: 1rem;
2798
+ }
2799
+
2800
+ .Trigger_topRight__dtqfb {
2801
+ top: 1rem;
2802
+ right: 1rem;
2803
+ }
2804
+
2805
+ .Trigger_bottomLeft__dtqfb {
2806
+ bottom: 1rem;
2807
+ left: 1rem;
2808
+ }
2809
+
2810
+ .Trigger_bottomRight__dtqfb {
2811
+ bottom: 1rem;
2812
+ right: 1rem;
2813
+ }
2814
+
2815
+ .Trigger_icon__dtqfb {
2816
+ width: 1.25rem;
2817
+ height: 1.25rem;
2682
2818
  }
2683
2819
 
2684
2820
  /* components/Controls/Timer.module.scss */
@@ -2781,7 +2917,7 @@ ScreenRecorder.displayName = "ScreenRecorder";
2781
2917
  color: #6b7280;
2782
2918
  }
2783
2919
 
2784
- /* components/Trigger/Trigger.module.scss */
2920
+ /* ScreenRecorder.module.scss */
2785
2921
  @keyframes pulse {
2786
2922
  0%, 100% {
2787
2923
  opacity: 1;
@@ -2838,83 +2974,29 @@ ScreenRecorder.displayName = "ScreenRecorder";
2838
2974
  opacity: 1;
2839
2975
  }
2840
2976
  }
2841
- .Trigger_trigger__dtqfb {
2842
- -webkit-appearance: none;
2843
- -moz-appearance: none;
2844
- appearance: none;
2845
- background: none;
2846
- border: none;
2847
- padding: 0;
2848
- margin: 0;
2849
- font: inherit;
2850
- color: inherit;
2851
- cursor: pointer;
2852
- }
2853
- .Trigger_trigger__dtqfb:disabled {
2854
- cursor: not-allowed;
2855
- }
2856
- .Trigger_trigger__dtqfb {
2857
- position: fixed;
2858
- display: flex;
2859
- align-items: center;
2860
- justify-content: center;
2861
- gap: 0.5rem;
2862
- padding: 0.625rem 1rem;
2863
- border-radius: 9999px;
2864
- font-weight: 500;
2865
- font-size: 0.875rem;
2866
- line-height: 1.5;
2867
- box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
2868
- background-color: #dc2626;
2869
- color: white;
2870
- transition-property: all;
2871
- transition-duration: 200ms;
2872
- transition-timing-function: ease-out;
2873
- }
2874
- .Trigger_trigger__dtqfb:hover:not(:disabled) {
2875
- background-color: #b91c1c;
2876
- transform: scale(1.05);
2877
- }
2878
- .Trigger_trigger__dtqfb:active:not(:disabled) {
2879
- background-color: #991b1b;
2880
- transform: scale(0.95);
2881
- }
2882
- .Trigger_trigger__dtqfb:focus {
2883
- outline: none;
2884
- box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1), 0 0 0 2px white, 0 0 0 4px #ef4444;
2885
- }
2886
- .Trigger_trigger__dtqfb:disabled {
2887
- opacity: 0.5;
2888
- cursor: not-allowed;
2889
- }
2890
- .Trigger_trigger__dtqfb:disabled:hover {
2891
- background-color: #dc2626;
2892
- transform: none;
2893
- }
2894
-
2895
- .Trigger_topLeft__dtqfb {
2896
- top: 1rem;
2897
- left: 1rem;
2977
+ .ScreenRecorder_spinner__l636w {
2978
+ animation: spin 1s linear infinite;
2979
+ width: 1rem;
2980
+ height: 1rem;
2898
2981
  }
2899
2982
 
2900
- .Trigger_topRight__dtqfb {
2901
- top: 1rem;
2902
- right: 1rem;
2983
+ .ScreenRecorder_spinnerTrack__l636w {
2984
+ opacity: 0.25;
2903
2985
  }
2904
2986
 
2905
- .Trigger_bottomLeft__dtqfb {
2906
- bottom: 1rem;
2907
- left: 1rem;
2987
+ .ScreenRecorder_spinnerHead__l636w {
2988
+ opacity: 0.75;
2908
2989
  }
2909
2990
 
2910
- .Trigger_bottomRight__dtqfb {
2911
- bottom: 1rem;
2912
- right: 1rem;
2991
+ .ScreenRecorder_requestingContent__l636w {
2992
+ display: flex;
2993
+ align-items: center;
2994
+ justify-content: center;
2995
+ gap: 0.5rem;
2913
2996
  }
2914
2997
 
2915
- .Trigger_icon__dtqfb {
2916
- width: 1.25rem;
2917
- height: 1.25rem;
2998
+ .ScreenRecorder_opacityReduced__l636w {
2999
+ opacity: 0.75;
2918
3000
  }
2919
3001
 
2920
3002
  /* components/Preview/VideoPlayer.module.scss */
@@ -3313,88 +3395,6 @@ ScreenRecorder.displayName = "ScreenRecorder";
3313
3395
  color: #f87171;
3314
3396
  }
3315
3397
 
3316
- /* ScreenRecorder.module.scss */
3317
- @keyframes pulse {
3318
- 0%, 100% {
3319
- opacity: 1;
3320
- }
3321
- 50% {
3322
- opacity: 0.5;
3323
- }
3324
- }
3325
- @keyframes pulse-record {
3326
- 0%, 100% {
3327
- opacity: 1;
3328
- }
3329
- 50% {
3330
- opacity: 0.5;
3331
- }
3332
- }
3333
- @keyframes spin {
3334
- from {
3335
- transform: rotate(0deg);
3336
- }
3337
- to {
3338
- transform: rotate(360deg);
3339
- }
3340
- }
3341
- @keyframes fade-in {
3342
- 0% {
3343
- opacity: 0;
3344
- }
3345
- 100% {
3346
- opacity: 1;
3347
- }
3348
- }
3349
- @keyframes slide-up {
3350
- 0% {
3351
- transform: translateY(10px);
3352
- opacity: 0;
3353
- }
3354
- 100% {
3355
- transform: translateY(0);
3356
- opacity: 1;
3357
- }
3358
- }
3359
- @keyframes countdown-scale {
3360
- 0% {
3361
- transform: scale(0.5);
3362
- opacity: 0;
3363
- }
3364
- 50% {
3365
- transform: scale(1.2);
3366
- opacity: 1;
3367
- }
3368
- 100% {
3369
- transform: scale(1);
3370
- opacity: 1;
3371
- }
3372
- }
3373
- .ScreenRecorder_spinner__l636w {
3374
- animation: spin 1s linear infinite;
3375
- width: 1rem;
3376
- height: 1rem;
3377
- }
3378
-
3379
- .ScreenRecorder_spinnerTrack__l636w {
3380
- opacity: 0.25;
3381
- }
3382
-
3383
- .ScreenRecorder_spinnerHead__l636w {
3384
- opacity: 0.75;
3385
- }
3386
-
3387
- .ScreenRecorder_requestingContent__l636w {
3388
- display: flex;
3389
- align-items: center;
3390
- justify-content: center;
3391
- gap: 0.5rem;
3392
- }
3393
-
3394
- .ScreenRecorder_opacityReduced__l636w {
3395
- opacity: 0.75;
3396
- }
3397
-
3398
3398
  /* components/Preview/PreviewModal.module.scss */
3399
3399
  @keyframes pulse {
3400
3400
  0%, 100% {