react-covideo-embed 1.0.87 → 1.0.88
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/build/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap";@import"https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap";#covideo-embeddable-recorder{background:#f6f7f9;color:#272a32;font-style:normal;font-weight:400;font-size:15px;line-height:24px;box-sizing:border-box;text-align:left;max-width:100%}#covideo-embeddable-recorder *,#covideo-embeddable-recorder *:before,#covideo-embeddable-recorder *:after{box-sizing:border-box}#covideo-embeddable-recorder input,#covideo-embeddable-recorder button,#covideo-embeddable-recorder textarea,#covideo-embeddable-recorder select{font-family:inherit}#covideo-embeddable-recorder .ai-assist>button{width:32px;height:32px}#covideo-embeddable-recorder .ai-assist>button:hover{opacity:1!important}.ReactModal__Body--open .ai-assist img{width:100%;max-width:400px}.ReactModal__Body--open .ai-assist svg{box-sizing:content-box!important}@media(max-width:768px){.ReactModal__Body--open .ai-assist img{width:100%;height:auto}}@media(max-width:1240px){.ReactModal__Content{padding:0 15px!important;height:100%;display:block;inset:auto!important;position:initial!important;transform:none!important;margin-right:0!important;min-width:auto!important;width:auto!important}}.ai-assist *{font-family:Work Sans,sans-serif}.ai-assist img{width:100%;max-width:400px}@media(max-width:1240px){.ReactModal__Content{padding:0 15px!important;height:100%;display:block;inset:auto;position:initial!important;transform:none!important;margin-right:0!important;min-width:auto!important;width:auto!important}}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),Ue=require("react-query"),zr=require("axios"),y=require("react"),U9=require("react-resize-detector"),x0=require("dayjs"),q9=require("dayjs/plugin/utc"),W9=require("dayjs/plugin/timezone"),We=require("react-router-dom"),H9=require("file-saver"),c=require("styled-components"),G9=require("jwt-decode"),he=require("react-icons/md"),X=require("react-covideo-common"),ue=require("react-i18next"),Br=require("lodash"),S1=require("react-icons/ai"),F0=require("i18next");require("react-toastify/dist/ReactToastify.css");const h5=require("react-toastify"),Cd=require("lottie-react"),ot=require("react-icons/io"),Sn=require("react-icons/io5"),C1=require("react-select/creatable"),Bt=require("react-select"),Y9=require("react-slider"),Q9=require("react-modal"),U0=require("react-router"),y5=require("react-icons/bs"),f5=require("color-convert"),g5=require("react-full-screen"),Z9=require("react-icons/bi"),Tt=require("formik"),K9=require("yup"),di=require("react-compound-slider"),Ca=require("react-beautiful-dnd"),ka=require("react-spinners"),ja=require("rc-progress/lib"),kd=require("recordrtc"),_n=require("react-icons/fa"),X9=require("rc-progress"),J9=require("react-scroll"),jd=require("@mediapipe/tasks-vision"),e8=require("react-dropzone"),t8=require("react-infinite-scroll-component"),o8=require("js-cookie"),Ed=require("droplr-api");function m5(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(i,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return i.default=e,Object.freeze(i)}const q=m5(y),Dt=m5(K9),v5="React-Covideo-Embed-Version",i1={default:"https://api-sandbox.covideo.com/",development:"https://localhost:3000/api/",sandbox:"https://api-sandbox.covideo.com/",staging:"https://api-staging.covideo.com/",production:"https://api.covideo.com/"};var Qt=(e=>(e.jwt="react-covideo-embed-jwt",e.merge="react-covideo-merge",e.recordSettings="record_settings",e.recordError="react-covideo-record-error",e))(Qt||{});let i0=localStorage.getItem("react-covideo-embed-jwt"),nr=i1.default,ho;const In=(e,i=!1)=>{i||localStorage.setItem("react-covideo-embed-jwt",e),i0=e,Ae.defaults.headers.Authorization=`Bearer ${i0}`,k1.headers.Authorization=`Bearer ${i0}`},r8=e=>{nr=i1[e]||i1.default,Ae.defaults.baseURL=nr},i8=e=>{ho=e,Ae.defaults.headers.ApiKey=ho,k1.headers.ApiKey=ho};let k1={headers:{Authorization:`Bearer ${i0}`,...ho!==void 0?{ApiKey:ho}:{},[v5]:"1.0.88"}};const Ae=zr.create({baseURL:nr,headers:{"Content-Type":"application/json",Authorization:`Bearer ${i0}`,...ho!==void 0?{ApiKey:ho}:{},[v5]:"1.0.88"}});x0.extend(q9);x0.extend(W9);const b5=e=>e&&(Object.keys(e).forEach(i=>{if(typeof e[i]=="object")return b5(e[i]);typeof e[i]!="boolean"&&(e[i]=""+e[i])}),e),Td=(e,i=30)=>{const n=Math.floor(e/3600),a=Math.floor((e-n*3600)/60);let l=e-n*3600-a*60;const d=parseInt((l%1).toFixed(3).substring(2));let u=parseInt(Math.floor(d/(1e3/i)).toFixed(0));if(l=parseInt(Math.floor(l).toFixed(0)),isNaN(a))return"00:00:00:00";let h="";return n<10&&(h="0"),h+=n+":",a<10&&(h+="0"),h+=a+":",l<10&&(h+="0"),h+=l+":",u<10&&(h+="0"),h+u},sr=(e,i=1)=>{const n=Math.floor(e/3600),a=Math.floor((e-n*3600)/60),l=e-n*3600-a*60;if(isNaN(a))return"00:00.0";let d="";return a<10&&(d+="0"),d+=a+":",l<10&&(d+="0"),d+=l.toFixed(i),d},w5=(e,i)=>e.userId+"_"+e.customerId+"_"+(Math.random()+1).toString(36).substring(2)+"."+i,n8=()=>{const e=x0(new Date).date();let i="th";return e===1||e===21||e===31?i="st":e===2||e===22?i="nd":(e===3||e===23)&&(i="rd"),x0(new Date).format(`MMM D[${i}] YYYY @ h:mm A`)},s8=(e,i,n="YYYY-MM-DD HH:mm:ss")=>{const a=i.timeZone||Intl.DateTimeFormat().resolvedOptions().timeZone||x0.tz.guess(),l=x0(e,["M/DD/YYYY h:mm:ss A","M/DD/YYYY, h:mm:ss A","M/D/YYYY h:mm:ss A","M/D/YYYY, h:mm:ss A","MM/DD/YYYY"]),d=-x0().tz("America/New_York").utcOffset(),u=x0().tz(a).utcOffset(),h=l.add(d,"minute");return x0(h).add(u,"minute").format(n)},a8=(e,i,n)=>{const a=Array.from(e),[l]=a.splice(i,1);return a.splice(n,0,l),a},S5=({trimStart:e,trimEnd:i,videoDuration:n})=>n===0||i===0?!1:e!==0||n-i>.3,lr=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Ea=e=>(e/1e3).toFixed(2);function c8(e){return e.charAt(0).toUpperCase()+e.slice(1)}function C5(){for(let e in Qt)localStorage.removeItem(Qt[e])}const l8=(e,i=1)=>{const n=Math.floor(e/60),a=e-n*60;if(isNaN(n))return"00.0";let l="";return n<10&&(l+="0"),l+=n+":",a<10&&(l+="0"),l+=a.toFixed(i),l};function Ur(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}const k5=y.createContext({}),d8=c.createGlobalStyle`
|
|
2
3
|
* {
|
|
3
4
|
font-family: ${e=>e.$isCdk?"'Roboto', sans-serif":"'Work Sans', sans-serif"};
|
|
4
5
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap";@import"https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap";#covideo-embeddable-recorder{background:#f6f7f9;color:#272a32;font-style:normal;font-weight:400;font-size:15px;line-height:24px;box-sizing:border-box;text-align:left;max-width:100%}#covideo-embeddable-recorder *,#covideo-embeddable-recorder *:before,#covideo-embeddable-recorder *:after{box-sizing:border-box}#covideo-embeddable-recorder input,#covideo-embeddable-recorder button,#covideo-embeddable-recorder textarea,#covideo-embeddable-recorder select{font-family:inherit}#covideo-embeddable-recorder .ai-assist>button{width:32px;height:32px}#covideo-embeddable-recorder .ai-assist>button:hover{opacity:1!important}.ReactModal__Body--open .ai-assist img{width:100%;max-width:400px}.ReactModal__Body--open .ai-assist svg{box-sizing:content-box!important}@media(max-width:768px){.ReactModal__Body--open .ai-assist img{width:100%;height:auto}}@media(max-width:1240px){.ReactModal__Content{padding:0 15px!important;height:100%;display:block;inset:auto!important;position:initial!important;transform:none!important;margin-right:0!important;min-width:auto!important;width:auto!important}}.ai-assist *{font-family:Work Sans,sans-serif}.ai-assist img{width:100%;max-width:400px}@media(max-width:1240px){.ReactModal__Content{padding:0 15px!important;height:100%;display:block;inset:auto;position:initial!important;transform:none!important;margin-right:0!important;min-width:auto!important;width:auto!important}}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
1
2
|
import { jsxs as x, jsx as r, Fragment as pe } from "react/jsx-runtime";
|
|
2
3
|
import { useMutation as l0, useQuery as Vt, QueryClient as G3, QueryClientProvider as Y3, useQueryClient as j1, useQueries as z7 } from "react-query";
|
|
3
4
|
import Kr from "axios";
|
|
@@ -69,7 +70,7 @@ let oc = {
|
|
|
69
70
|
headers: {
|
|
70
71
|
Authorization: `Bearer ${s0}`,
|
|
71
72
|
...wo !== void 0 ? { ApiKey: wo } : {},
|
|
72
|
-
[x2]: "1.0.
|
|
73
|
+
[x2]: "1.0.88"
|
|
73
74
|
}
|
|
74
75
|
};
|
|
75
76
|
const Le = Kr.create({
|
|
@@ -78,7 +79,7 @@ const Le = Kr.create({
|
|
|
78
79
|
"Content-Type": "application/json",
|
|
79
80
|
Authorization: `Bearer ${s0}`,
|
|
80
81
|
...wo !== void 0 ? { ApiKey: wo } : {},
|
|
81
|
-
[x2]: "1.0.
|
|
82
|
+
[x2]: "1.0.88"
|
|
82
83
|
}
|
|
83
84
|
});
|
|
84
85
|
g0.extend(W7);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-covideo-embed",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.88",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Covideo platform as an embeddable React component.",
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"react-i18next": ">=14",
|
|
46
46
|
"react-icons": "5.0.1",
|
|
47
47
|
"react-infinite-scroll-component": "6.1.0",
|
|
48
|
+
"react-is": "18.0.0",
|
|
48
49
|
"react-modal": "^3.16.0",
|
|
49
50
|
"react-query": "^3.39.2",
|
|
50
51
|
"react-resize-detector": "^9.1.0",
|
|
@@ -58,16 +59,15 @@
|
|
|
58
59
|
"recordrtc": "^5.6.2",
|
|
59
60
|
"styled-components": "5.3.11",
|
|
60
61
|
"worker-timers": "5.1.9",
|
|
61
|
-
"yup": "0.29.3"
|
|
62
|
-
"react-is": "18.0.0"
|
|
62
|
+
"yup": "0.29.3"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"react-covideo-ai-assist": "^0.0.49",
|
|
66
65
|
"assert": "^2.1.0",
|
|
67
66
|
"buffer": "^6.0.3",
|
|
68
67
|
"constants-browserify": "^1.0.0",
|
|
69
68
|
"os-browserify": "^0.3.0",
|
|
70
69
|
"path-browserify": "^1.0.1",
|
|
70
|
+
"react-covideo-ai-assist": "^0.0.49",
|
|
71
71
|
"react-is": "18.0.0",
|
|
72
72
|
"stream-browserify": "^3.0.0"
|
|
73
73
|
},
|
|
@@ -141,6 +141,7 @@
|
|
|
141
141
|
"typescript": "^5.9.2",
|
|
142
142
|
"typescript-eslint": "^8.0.0",
|
|
143
143
|
"vite": "^6.4.1",
|
|
144
|
+
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
144
145
|
"vite-plugin-svgr": "^4.3.0",
|
|
145
146
|
"vitest": "^3.2.4",
|
|
146
147
|
"worker-timers": "5.1.9",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap";@import"https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap";#covideo-embeddable-recorder{background:#f6f7f9;color:#272a32;font-style:normal;font-weight:400;font-size:15px;line-height:24px;box-sizing:border-box;text-align:left;max-width:100%}#covideo-embeddable-recorder *,#covideo-embeddable-recorder *:before,#covideo-embeddable-recorder *:after{box-sizing:border-box}#covideo-embeddable-recorder input,#covideo-embeddable-recorder button,#covideo-embeddable-recorder textarea,#covideo-embeddable-recorder select{font-family:inherit}#covideo-embeddable-recorder .ai-assist>button{width:32px;height:32px}#covideo-embeddable-recorder .ai-assist>button:hover{opacity:1!important}.ReactModal__Body--open .ai-assist img{width:100%;max-width:400px}.ReactModal__Body--open .ai-assist svg{box-sizing:content-box!important}@media(max-width:768px){.ReactModal__Body--open .ai-assist img{width:100%;height:auto}}.ai-assist *{font-family:Work Sans,sans-serif}.ai-assist img{width:100%;max-width:400px}@media(max-width:1240px){.ReactModal__Content{padding:0 15px!important;height:100%;display:block;inset:auto;position:initial!important;transform:none!important;margin-right:0!important;min-width:auto!important;width:auto!important}}
|