@loomhq/record-sdk 2.36.13 → 2.36.18-draft
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/cjs/index.js +797 -699
- package/dist/cjs/is-supported.js +1 -1
- package/dist/esm/index.js +797 -699
- package/dist/esm/is-supported.js +1 -1
- package/dist/is-supported.d.ts +17 -0
- package/dist/record-sdk.d.ts +187 -0
- package/package.json +13 -13
package/dist/esm/is-supported.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var Oe=Object.create;var me=Object.defineProperty;var ye=Object.getOwnPropertyDescriptor;var Ae=Object.getOwnPropertyNames;var Ie=Object.getPrototypeOf,xe=Object.prototype.hasOwnProperty;var Te=(s,a)=>()=>(a||s((a={exports:{}}).exports,a),a.exports);var Re=(s,a,b,h)=>{if(a&&typeof a=="object"||typeof a=="function")for(let v of Ae(a))!xe.call(s,v)&&v!==b&&me(s,v,{get:()=>a[v],enumerable:!(h=ye(a,v))||h.enumerable});return s};var Ce=(s,a,b)=>(b=s!=null?Oe(Ie(s)):{},Re(a||!s||!s.__esModule?me(b,"default",{value:s,enumerable:!0}):b,s));var pe=Te((C,V)=>{(function(s,a){"use strict";var b="0.7.31",h="",v="?",_="function",f="undefined",k="object",N="string",_e="major",r="model",o="name",e="type",i="vendor",t="version",E="architecture",A="console",l="mobile",n="tablet",S="smarttv",I="wearable",ee="embedded",z=255,W="Amazon",H="Apple",ie="ASUS",re="BlackBerry",O="Browser",M="Chrome",Ee="Edge",P="Firefox",U="Google",oe="Huawei",Y="LG",F="Microsoft",te="Motorola",L="Opera",j="Samsung",K="Sony",ae="Xiaomi",X="Zebra",se="Facebook",Se=function(d,m){var c={};for(var w in d)m[w]&&m[w].length%2===0?c[w]=m[w].concat(d[w]):c[w]=d[w];return c},G=function(d){for(var m={},c=0;c<d.length;c++)m[d[c].toUpperCase()]=d[c];return m},ne=function(d,m){return typeof d===N?x(m).indexOf(x(d))!==-1:!1},x=function(d){return d.toLowerCase()},De=function(d){return typeof d===N?d.replace(/[^\d\.]/g,h).split(".")[0]:a},$=function(d,m){if(typeof d===N)return d=d.replace(/^\s\s*/,h).replace(/\s\s*$/,h),typeof m===f?d:d.substring(0,z)},T=function(d,m){for(var c=0,w,u,B,p,R,D;c<m.length&&!R;){var le=m[c],ue=m[c+1];for(w=u=0;w<le.length&&!R;)if(R=le[w++].exec(d),R)for(B=0;B<ue.length;B++)D=R[++u],p=ue[B],typeof p===k&&p.length>0?p.length===2?typeof p[1]==_?this[p[0]]=p[1].call(this,D):this[p[0]]=p[1]:p.length===3?typeof p[1]===_&&!(p[1].exec&&p[1].test)?this[p[0]]=D?p[1].call(this,D,p[2]):a:this[p[0]]=D?D.replace(p[1],p[2]):a:p.length===4&&(this[p[0]]=D?p[3].call(this,D.replace(p[1],p[2])):a):this[p]=D||a;c+=2}},Z=function(d,m){for(var c in m)if(typeof m[c]===k&&m[c].length>0){for(var w=0;w<m[c].length;w++)if(ne(m[c][w],d))return c===v?a:c}else if(ne(m[c],d))return c===v?a:c;return d},ke={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},de={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ce={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[t,[o,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[t,[o,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[o,t],[/opios[\/ ]+([\w\.]+)/i],[t,[o,L+" Mini"]],[/\bopr\/([\w\.]+)/i],[t,[o,L]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[o,t],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[t,[o,"UC"+O]],[/\bqbcore\/([\w\.]+)/i],[t,[o,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[t,[o,"WeChat"]],[/konqueror\/([\w\.]+)/i],[t,[o,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[t,[o,"IE"]],[/yabrowser\/([\w\.]+)/i],[t,[o,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[o,/(.+)/,"$1 Secure "+O],t],[/\bfocus\/([\w\.]+)/i],[t,[o,P+" Focus"]],[/\bopt\/([\w\.]+)/i],[t,[o,L+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[t,[o,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[t,[o,"Dolphin"]],[/coast\/([\w\.]+)/i],[t,[o,L+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[t,[o,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[t,[o,P]],[/\bqihu|(qi?ho?o?|360)browser/i],[[o,"360 "+O]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[o,/(.+)/,"$1 "+O],t],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],t],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[o,t],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[o],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[o,se],t],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[o,t],[/\bgsa\/([\w\.]+) .*safari\//i],[t,[o,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[t,[o,M+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[o,M+" WebView"],t],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[t,[o,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[o,t],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[t,[o,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[t,o],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[o,[t,Z,ke]],[/(webkit|khtml)\/([\w\.]+)/i],[o,t],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[o,"Netscape"],t],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[t,[o,P+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[o,t]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[E,"amd64"]],[/(ia32(?=;))/i],[[E,x]],[/((?:i[346]|x)86)[;\)]/i],[[E,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[E,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/windows (ce|mobile); ppc;/i],[[E,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[E,/ower/,h,x]],[/(sun4\w)[;\)]/i],[[E,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[E,x]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[r,[i,j],[e,n]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[r,[i,j],[e,l]],[/\((ip(?:hone|od)[\w ]*);/i],[r,[i,H],[e,l]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[r,[i,H],[e,n]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[r,[i,oe],[e,n]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[r,[i,oe],[e,l]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[r,/_/g," "],[i,ae],[e,l]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[r,/_/g," "],[i,ae],[e,n]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[r,[i,"OPPO"],[e,l]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[r,[i,"Vivo"],[e,l]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[r,[i,"Realme"],[e,l]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[r,[i,te],[e,l]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[r,[i,te],[e,n]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[r,[i,Y],[e,n]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[r,[i,Y],[e,l]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[r,[i,"Lenovo"],[e,n]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[r,/_/g," "],[i,"Nokia"],[e,l]],[/(pixel c)\b/i],[r,[i,U],[e,n]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[r,[i,U],[e,l]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[i,K],[e,l]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[r,"Xperia Tablet"],[i,K],[e,n]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[r,[i,"OnePlus"],[e,l]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[r,[i,W],[e,n]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[r,/(.+)/g,"Fire Phone $1"],[i,W],[e,l]],[/(playbook);[-\w\),; ]+(rim)/i],[r,i,[e,n]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[r,[i,re],[e,l]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[r,[i,ie],[e,n]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[r,[i,ie],[e,l]],[/(nexus 9)/i],[r,[i,"HTC"],[e,n]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[i,[r,/_/g," "],[e,l]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[r,[i,"Acer"],[e,n]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[r,[i,"Meizu"],[e,l]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[r,[i,"Sharp"],[e,l]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[i,r,[e,l]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[i,r,[e,n]],[/(surface duo)/i],[r,[i,F],[e,n]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[r,[i,"Fairphone"],[e,l]],[/(u304aa)/i],[r,[i,"AT&T"],[e,l]],[/\bsie-(\w*)/i],[r,[i,"Siemens"],[e,l]],[/\b(rct\w+) b/i],[r,[i,"RCA"],[e,n]],[/\b(venue[\d ]{2,7}) b/i],[r,[i,"Dell"],[e,n]],[/\b(q(?:mv|ta)\w+) b/i],[r,[i,"Verizon"],[e,n]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[r,[i,"Barnes & Noble"],[e,n]],[/\b(tm\d{3}\w+) b/i],[r,[i,"NuVision"],[e,n]],[/\b(k88) b/i],[r,[i,"ZTE"],[e,n]],[/\b(nx\d{3}j) b/i],[r,[i,"ZTE"],[e,l]],[/\b(gen\d{3}) b.+49h/i],[r,[i,"Swiss"],[e,l]],[/\b(zur\d{3}) b/i],[r,[i,"Swiss"],[e,n]],[/\b((zeki)?tb.*\b) b/i],[r,[i,"Zeki"],[e,n]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[i,"Dragon Touch"],r,[e,n]],[/\b(ns-?\w{0,9}) b/i],[r,[i,"Insignia"],[e,n]],[/\b((nxa|next)-?\w{0,9}) b/i],[r,[i,"NextBook"],[e,n]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[i,"Voice"],r,[e,l]],[/\b(lvtel\-)?(v1[12]) b/i],[[i,"LvTel"],r,[e,l]],[/\b(ph-1) /i],[r,[i,"Essential"],[e,l]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[r,[i,"Envizen"],[e,n]],[/\b(trio[-\w\. ]+) b/i],[r,[i,"MachSpeed"],[e,n]],[/\btu_(1491) b/i],[r,[i,"Rotor"],[e,n]],[/(shield[\w ]+) b/i],[r,[i,"Nvidia"],[e,n]],[/(sprint) (\w+)/i],[i,r,[e,l]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[i,F],[e,l]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[r,[i,X],[e,n]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[r,[i,X],[e,l]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[i,r,[e,A]],[/droid.+; (shield) bui/i],[r,[i,"Nvidia"],[e,A]],[/(playstation [345portablevi]+)/i],[r,[i,K],[e,A]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[r,[i,F],[e,A]],[/smart-tv.+(samsung)/i],[i,[e,S]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[i,j],[e,S]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[i,Y],[e,S]],[/(apple) ?tv/i],[i,[r,H+" TV"],[e,S]],[/crkey/i],[[r,M+"cast"],[i,U],[e,S]],[/droid.+aft(\w)( bui|\))/i],[r,[i,W],[e,S]],[/\(dtv[\);].+(aquos)/i],[r,[i,"Sharp"],[e,S]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[i,$],[r,$],[e,S]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[e,S]],[/((pebble))app/i],[i,r,[e,I]],[/droid.+; (glass) \d/i],[r,[i,U],[e,I]],[/droid.+; (wt63?0{2,3})\)/i],[r,[i,X],[e,I]],[/(quest( 2)?)/i],[r,[i,se],[e,I]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[i,[e,ee]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[r,[e,l]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[r,[e,n]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[e,n]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[e,l]],[/(android[-\w\. ]{0,9});.+buil/i],[r,[i,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[t,[o,Ee+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[t,[o,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[o,t],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[t,o]],os:[[/microsoft (windows) (vista|xp)/i],[o,t],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[o,[t,Z,de]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[o,"Windows"],[t,Z,de]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[t,/_/g,"."],[o,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[o,"Mac OS"],[t,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[t,o],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[o,t],[/\(bb(10);/i],[t,[o,re]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[t,[o,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[t,[o,P+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[t,[o,"webOS"]],[/crkey\/([\d\.]+)/i],[t,[o,M+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[o,"Chromium OS"],t],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[o,t],[/(sunos) ?([\w\.\d]*)/i],[[o,"Solaris"],t],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[o,t]]},g=function(d,m){if(typeof d===k&&(m=d,d=a),!(this instanceof g))return new g(d,m).getResult();var c=d||(typeof s!==f&&s.navigator&&s.navigator.userAgent?s.navigator.userAgent:h),w=m?Se(ce,m):ce;return this.getBrowser=function(){var u={};return u[o]=a,u[t]=a,T.call(u,c,w.browser),u.major=De(u.version),u},this.getCPU=function(){var u={};return u[E]=a,T.call(u,c,w.cpu),u},this.getDevice=function(){var u={};return u[i]=a,u[r]=a,u[e]=a,T.call(u,c,w.device),u},this.getEngine=function(){var u={};return u[o]=a,u[t]=a,T.call(u,c,w.engine),u},this.getOS=function(){var u={};return u[o]=a,u[t]=a,T.call(u,c,w.os),u},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return c},this.setUA=function(u){return c=typeof u===N&&u.length>z?$(u,z):u,this},this.setUA(c),this};g.VERSION=b,g.BROWSER=G([o,t,_e]),g.CPU=G([E]),g.DEVICE=G([r,i,e,A,l,S,n,I,ee]),g.ENGINE=g.OS=G([o,t]),typeof C!==f?(typeof V!==f&&V.exports&&(C=V.exports=g),C.UAParser=g):typeof define===_&&define.amd?define(function(){return g}):typeof s!==f&&(s.UAParser=g);var y=typeof s!==f&&(s.jQuery||s.Zepto);if(y&&!y.ua){var q=new g;y.ua=q.getResult(),y.ua.get=function(){return q.getUA()},y.ua.set=function(d){q.setUA(d);var m=q.getResult();for(var c in m)y.ua[c]=m[c]}}})(typeof window=="object"?window:C)});var fe=Ce(pe());var Q=(s=>(s.Fatal="fatal",s.Error="error",s.Warning="warn",s.Info="info",s.Debug="debug",s))(Q||{});var J="integrations.media-devices",Ne=J+".request_device_permissions",He=Ne+".failed",Ye=J+".has_media_device_permissions",Fe=J+".display_surface_selected";var we=s=>{let a=navigator==null?void 0:navigator.mediaDevices;if(!(a!=null&&a.getUserMedia&&(a!=null&&a.getDisplayMedia))){let{userAgent:b}=navigator;return s({level:Q.Warning,message:"Media Utilities: Browser does not provide full navigator.mediaDevices support",context:{mediaDevices:a,userAgent:b}}),!1}return!0};var Me=s=>{if(["/sdk-testbench/","/sdk-testbench/preview"].includes(s.pathname))return"https://loomlocal.com:4444";let a="(?://|[a-z]\\.)(?:loom.com|loomlocal.com)";return new RegExp(a,"ig").test(s.origin)?s.origin:"https://www.loom.com"},be="loomhq:3pc.supported",Pe="loomhq:3pc.unsupported",Ue=s=>{let a=document.createElement("iframe"),b=new URLSearchParams(s);return a.id="3pc",a.src=`${Me(location)}/generic/third-party-cookie-check?${b}`,a.style.display="block",a.style.width="0",a.style.height="0",a.style.border="none",a.style.visibility="hidden",new Promise(h=>{let v=_=>{if(![be,Pe].includes(_.data))return;let k=_.data===be;h(k),document.body.removeChild(a),window.removeEventListener("message",v)};window.addEventListener("message",v),document.body.appendChild(a)})},ve=Ue;var he=s=>{if(["/sdk-testbench/","/sdk-testbench/preview"].includes(s.pathname))return"https://loomlocal.com:4444";let a="(?://|[a-z]\\.)(?:loom.com|loomlocal.com)";return new RegExp(a,"ig").test(s.origin)?s.origin:"https://www.loom.com"};var ge="2.36.13",Le=["Chrome","Chrome Headless","Edge","Brave"];var Ge=s=>Le.includes(s.browserName||"")?s.thirdPartyCookieSupport?s.hasMediaStreamsSupport?{supported:!0,error:void 0}:{supported:!1,error:"no-media-streams-support"}:{supported:!1,error:"third-party-cookies-disabled"}:{supported:!1,error:"incompatible-browser"},qe=async({loomSDKVersion:s,browserName:a,browserVersion:b,thirdPartyCookieSupport:h,hasMediaStreamsSupport:v})=>{let _=new URL("integrations-app/sdk/is-supported",he(location));return await fetch(_.toString(),{method:"POST",headers:{["Content-Type"]:"application/json"},body:JSON.stringify({loomSDKVersion:s,browserName:a,browserVersion:b,thirdPartyCookieSupport:h,hasMediaStreamsSupport:v})})},si=async()=>{let{getBrowser:s}=new fe.default,{name:a,version:b}=s(),h=await ve({loomSDKVersion:ge}),v=we(()=>{}),_={loomSDKVersion:ge,browserName:a,browserVersion:b,thirdPartyCookieSupport:h,hasMediaStreamsSupport:v},f;try{f=await qe(_)}catch(k){return Ge(_)}return f.status!==200?{supported:!1,error:(await f.json()).errors[0]}:{supported:!0,error:void 0}};export{si as isSupported};
|
|
1
|
+
var Oe=Object.create;var me=Object.defineProperty;var ye=Object.getOwnPropertyDescriptor;var Ae=Object.getOwnPropertyNames;var Ie=Object.getPrototypeOf,xe=Object.prototype.hasOwnProperty;var Te=(s,a)=>()=>(a||s((a={exports:{}}).exports,a),a.exports);var Re=(s,a,b,h)=>{if(a&&typeof a=="object"||typeof a=="function")for(let v of Ae(a))!xe.call(s,v)&&v!==b&&me(s,v,{get:()=>a[v],enumerable:!(h=ye(a,v))||h.enumerable});return s};var Ce=(s,a,b)=>(b=s!=null?Oe(Ie(s)):{},Re(a||!s||!s.__esModule?me(b,"default",{value:s,enumerable:!0}):b,s));var pe=Te((C,V)=>{(function(s,a){"use strict";var b="0.7.31",h="",v="?",_="function",f="undefined",k="object",N="string",_e="major",r="model",o="name",e="type",i="vendor",t="version",E="architecture",A="console",l="mobile",n="tablet",S="smarttv",I="wearable",ee="embedded",z=255,W="Amazon",H="Apple",ie="ASUS",re="BlackBerry",O="Browser",M="Chrome",Ee="Edge",P="Firefox",U="Google",oe="Huawei",Y="LG",F="Microsoft",te="Motorola",L="Opera",j="Samsung",K="Sony",ae="Xiaomi",X="Zebra",se="Facebook",Se=function(d,m){var c={};for(var w in d)m[w]&&m[w].length%2===0?c[w]=m[w].concat(d[w]):c[w]=d[w];return c},G=function(d){for(var m={},c=0;c<d.length;c++)m[d[c].toUpperCase()]=d[c];return m},ne=function(d,m){return typeof d===N?x(m).indexOf(x(d))!==-1:!1},x=function(d){return d.toLowerCase()},De=function(d){return typeof d===N?d.replace(/[^\d\.]/g,h).split(".")[0]:a},$=function(d,m){if(typeof d===N)return d=d.replace(/^\s\s*/,h).replace(/\s\s*$/,h),typeof m===f?d:d.substring(0,z)},T=function(d,m){for(var c=0,w,u,B,p,R,D;c<m.length&&!R;){var le=m[c],ue=m[c+1];for(w=u=0;w<le.length&&!R;)if(R=le[w++].exec(d),R)for(B=0;B<ue.length;B++)D=R[++u],p=ue[B],typeof p===k&&p.length>0?p.length===2?typeof p[1]==_?this[p[0]]=p[1].call(this,D):this[p[0]]=p[1]:p.length===3?typeof p[1]===_&&!(p[1].exec&&p[1].test)?this[p[0]]=D?p[1].call(this,D,p[2]):a:this[p[0]]=D?D.replace(p[1],p[2]):a:p.length===4&&(this[p[0]]=D?p[3].call(this,D.replace(p[1],p[2])):a):this[p]=D||a;c+=2}},Z=function(d,m){for(var c in m)if(typeof m[c]===k&&m[c].length>0){for(var w=0;w<m[c].length;w++)if(ne(m[c][w],d))return c===v?a:c}else if(ne(m[c],d))return c===v?a:c;return d},ke={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},de={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ce={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[t,[o,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[t,[o,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[o,t],[/opios[\/ ]+([\w\.]+)/i],[t,[o,L+" Mini"]],[/\bopr\/([\w\.]+)/i],[t,[o,L]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[o,t],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[t,[o,"UC"+O]],[/\bqbcore\/([\w\.]+)/i],[t,[o,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[t,[o,"WeChat"]],[/konqueror\/([\w\.]+)/i],[t,[o,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[t,[o,"IE"]],[/yabrowser\/([\w\.]+)/i],[t,[o,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[o,/(.+)/,"$1 Secure "+O],t],[/\bfocus\/([\w\.]+)/i],[t,[o,P+" Focus"]],[/\bopt\/([\w\.]+)/i],[t,[o,L+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[t,[o,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[t,[o,"Dolphin"]],[/coast\/([\w\.]+)/i],[t,[o,L+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[t,[o,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[t,[o,P]],[/\bqihu|(qi?ho?o?|360)browser/i],[[o,"360 "+O]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[o,/(.+)/,"$1 "+O],t],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],t],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[o,t],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[o],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[o,se],t],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[o,t],[/\bgsa\/([\w\.]+) .*safari\//i],[t,[o,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[t,[o,M+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[o,M+" WebView"],t],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[t,[o,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[o,t],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[t,[o,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[t,o],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[o,[t,Z,ke]],[/(webkit|khtml)\/([\w\.]+)/i],[o,t],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[o,"Netscape"],t],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[t,[o,P+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[o,t]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[E,"amd64"]],[/(ia32(?=;))/i],[[E,x]],[/((?:i[346]|x)86)[;\)]/i],[[E,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[E,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/windows (ce|mobile); ppc;/i],[[E,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[E,/ower/,h,x]],[/(sun4\w)[;\)]/i],[[E,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[E,x]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[r,[i,j],[e,n]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[r,[i,j],[e,l]],[/\((ip(?:hone|od)[\w ]*);/i],[r,[i,H],[e,l]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[r,[i,H],[e,n]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[r,[i,oe],[e,n]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[r,[i,oe],[e,l]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[r,/_/g," "],[i,ae],[e,l]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[r,/_/g," "],[i,ae],[e,n]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[r,[i,"OPPO"],[e,l]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[r,[i,"Vivo"],[e,l]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[r,[i,"Realme"],[e,l]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[r,[i,te],[e,l]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[r,[i,te],[e,n]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[r,[i,Y],[e,n]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[r,[i,Y],[e,l]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[r,[i,"Lenovo"],[e,n]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[r,/_/g," "],[i,"Nokia"],[e,l]],[/(pixel c)\b/i],[r,[i,U],[e,n]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[r,[i,U],[e,l]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[i,K],[e,l]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[r,"Xperia Tablet"],[i,K],[e,n]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[r,[i,"OnePlus"],[e,l]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[r,[i,W],[e,n]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[r,/(.+)/g,"Fire Phone $1"],[i,W],[e,l]],[/(playbook);[-\w\),; ]+(rim)/i],[r,i,[e,n]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[r,[i,re],[e,l]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[r,[i,ie],[e,n]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[r,[i,ie],[e,l]],[/(nexus 9)/i],[r,[i,"HTC"],[e,n]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[i,[r,/_/g," "],[e,l]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[r,[i,"Acer"],[e,n]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[r,[i,"Meizu"],[e,l]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[r,[i,"Sharp"],[e,l]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[i,r,[e,l]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[i,r,[e,n]],[/(surface duo)/i],[r,[i,F],[e,n]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[r,[i,"Fairphone"],[e,l]],[/(u304aa)/i],[r,[i,"AT&T"],[e,l]],[/\bsie-(\w*)/i],[r,[i,"Siemens"],[e,l]],[/\b(rct\w+) b/i],[r,[i,"RCA"],[e,n]],[/\b(venue[\d ]{2,7}) b/i],[r,[i,"Dell"],[e,n]],[/\b(q(?:mv|ta)\w+) b/i],[r,[i,"Verizon"],[e,n]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[r,[i,"Barnes & Noble"],[e,n]],[/\b(tm\d{3}\w+) b/i],[r,[i,"NuVision"],[e,n]],[/\b(k88) b/i],[r,[i,"ZTE"],[e,n]],[/\b(nx\d{3}j) b/i],[r,[i,"ZTE"],[e,l]],[/\b(gen\d{3}) b.+49h/i],[r,[i,"Swiss"],[e,l]],[/\b(zur\d{3}) b/i],[r,[i,"Swiss"],[e,n]],[/\b((zeki)?tb.*\b) b/i],[r,[i,"Zeki"],[e,n]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[i,"Dragon Touch"],r,[e,n]],[/\b(ns-?\w{0,9}) b/i],[r,[i,"Insignia"],[e,n]],[/\b((nxa|next)-?\w{0,9}) b/i],[r,[i,"NextBook"],[e,n]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[i,"Voice"],r,[e,l]],[/\b(lvtel\-)?(v1[12]) b/i],[[i,"LvTel"],r,[e,l]],[/\b(ph-1) /i],[r,[i,"Essential"],[e,l]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[r,[i,"Envizen"],[e,n]],[/\b(trio[-\w\. ]+) b/i],[r,[i,"MachSpeed"],[e,n]],[/\btu_(1491) b/i],[r,[i,"Rotor"],[e,n]],[/(shield[\w ]+) b/i],[r,[i,"Nvidia"],[e,n]],[/(sprint) (\w+)/i],[i,r,[e,l]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[i,F],[e,l]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[r,[i,X],[e,n]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[r,[i,X],[e,l]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[i,r,[e,A]],[/droid.+; (shield) bui/i],[r,[i,"Nvidia"],[e,A]],[/(playstation [345portablevi]+)/i],[r,[i,K],[e,A]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[r,[i,F],[e,A]],[/smart-tv.+(samsung)/i],[i,[e,S]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[i,j],[e,S]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[i,Y],[e,S]],[/(apple) ?tv/i],[i,[r,H+" TV"],[e,S]],[/crkey/i],[[r,M+"cast"],[i,U],[e,S]],[/droid.+aft(\w)( bui|\))/i],[r,[i,W],[e,S]],[/\(dtv[\);].+(aquos)/i],[r,[i,"Sharp"],[e,S]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[i,$],[r,$],[e,S]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[e,S]],[/((pebble))app/i],[i,r,[e,I]],[/droid.+; (glass) \d/i],[r,[i,U],[e,I]],[/droid.+; (wt63?0{2,3})\)/i],[r,[i,X],[e,I]],[/(quest( 2)?)/i],[r,[i,se],[e,I]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[i,[e,ee]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[r,[e,l]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[r,[e,n]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[e,n]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[e,l]],[/(android[-\w\. ]{0,9});.+buil/i],[r,[i,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[t,[o,Ee+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[t,[o,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[o,t],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[t,o]],os:[[/microsoft (windows) (vista|xp)/i],[o,t],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[o,[t,Z,de]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[o,"Windows"],[t,Z,de]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[t,/_/g,"."],[o,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[o,"Mac OS"],[t,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[t,o],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[o,t],[/\(bb(10);/i],[t,[o,re]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[t,[o,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[t,[o,P+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[t,[o,"webOS"]],[/crkey\/([\d\.]+)/i],[t,[o,M+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[o,"Chromium OS"],t],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[o,t],[/(sunos) ?([\w\.\d]*)/i],[[o,"Solaris"],t],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[o,t]]},g=function(d,m){if(typeof d===k&&(m=d,d=a),!(this instanceof g))return new g(d,m).getResult();var c=d||(typeof s!==f&&s.navigator&&s.navigator.userAgent?s.navigator.userAgent:h),w=m?Se(ce,m):ce;return this.getBrowser=function(){var u={};return u[o]=a,u[t]=a,T.call(u,c,w.browser),u.major=De(u.version),u},this.getCPU=function(){var u={};return u[E]=a,T.call(u,c,w.cpu),u},this.getDevice=function(){var u={};return u[i]=a,u[r]=a,u[e]=a,T.call(u,c,w.device),u},this.getEngine=function(){var u={};return u[o]=a,u[t]=a,T.call(u,c,w.engine),u},this.getOS=function(){var u={};return u[o]=a,u[t]=a,T.call(u,c,w.os),u},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return c},this.setUA=function(u){return c=typeof u===N&&u.length>z?$(u,z):u,this},this.setUA(c),this};g.VERSION=b,g.BROWSER=G([o,t,_e]),g.CPU=G([E]),g.DEVICE=G([r,i,e,A,l,S,n,I,ee]),g.ENGINE=g.OS=G([o,t]),typeof C!==f?(typeof V!==f&&V.exports&&(C=V.exports=g),C.UAParser=g):typeof define===_&&define.amd?define(function(){return g}):typeof s!==f&&(s.UAParser=g);var y=typeof s!==f&&(s.jQuery||s.Zepto);if(y&&!y.ua){var q=new g;y.ua=q.getResult(),y.ua.get=function(){return q.getUA()},y.ua.set=function(d){q.setUA(d);var m=q.getResult();for(var c in m)y.ua[c]=m[c]}}})(typeof window=="object"?window:C)});var fe=Ce(pe());var Q=(s=>(s.Fatal="fatal",s.Error="error",s.Warning="warn",s.Info="info",s.Debug="debug",s))(Q||{});var J="integrations.media-devices",Ne=J+".request_device_permissions",He=Ne+".failed",Ye=J+".has_media_device_permissions",Fe=J+".display_surface_selected";var we=s=>{let a=navigator==null?void 0:navigator.mediaDevices;if(!(a!=null&&a.getUserMedia&&(a!=null&&a.getDisplayMedia))){let{userAgent:b}=navigator;return s({level:Q.Warning,message:"Media Utilities: Browser does not provide full navigator.mediaDevices support",context:{mediaDevices:a,userAgent:b}}),!1}return!0};var Me=s=>{if(["/sdk-testbench/","/sdk-testbench/preview"].includes(s.pathname))return"https://loomlocal.com:4444";let a="(?://|[a-z]\\.)(?:loom.com|loomlocal.com)";return new RegExp(a,"ig").test(s.origin)?s.origin:"https://www.loom.com"},be="loomhq:3pc.supported",Pe="loomhq:3pc.unsupported",Ue=s=>{let a=document.createElement("iframe"),b=new URLSearchParams(s);return a.id="3pc",a.src=`${Me(location)}/generic/third-party-cookie-check?${b}`,a.style.display="block",a.style.width="0",a.style.height="0",a.style.border="none",a.style.visibility="hidden",new Promise(h=>{let v=_=>{if(![be,Pe].includes(_.data))return;let k=_.data===be;h(k),document.body.removeChild(a),window.removeEventListener("message",v)};window.addEventListener("message",v),document.body.appendChild(a)})},ve=Ue;var he=s=>{if(["/sdk-testbench/","/sdk-testbench/preview"].includes(s.pathname))return"https://loomlocal.com:4444";let a="(?://|[a-z]\\.)(?:loom.com|loomlocal.com)";return new RegExp(a,"ig").test(s.origin)?s.origin:"https://www.loom.com"};var ge="2.36.18",Le=["Chrome","Chrome Headless","Edge","Brave"];var Ge=s=>Le.includes(s.browserName||"")?s.thirdPartyCookieSupport?s.hasMediaStreamsSupport?{supported:!0,error:void 0}:{supported:!1,error:"no-media-streams-support"}:{supported:!1,error:"third-party-cookies-disabled"}:{supported:!1,error:"incompatible-browser"},qe=async({loomSDKVersion:s,browserName:a,browserVersion:b,thirdPartyCookieSupport:h,hasMediaStreamsSupport:v})=>{let _=new URL("integrations-app/sdk/is-supported",he(location));return await fetch(_.toString(),{method:"POST",headers:{["Content-Type"]:"application/json"},body:JSON.stringify({loomSDKVersion:s,browserName:a,browserVersion:b,thirdPartyCookieSupport:h,hasMediaStreamsSupport:v})})},si=async()=>{let{getBrowser:s}=new fe.default,{name:a,version:b}=s(),h=await ve({loomSDKVersion:ge}),v=we(()=>{}),_={loomSDKVersion:ge,browserName:a,browserVersion:b,thirdPartyCookieSupport:h,hasMediaStreamsSupport:v},f;try{f=await qe(_)}catch(k){return Ge(_)}return f.status!==200?{supported:!1,error:(await f.json()).errors[0]}:{supported:!0,error:void 0}};export{si as isSupported};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type IsSupportedFunction = () => Promise<{
|
|
2
|
+
supported: boolean;
|
|
3
|
+
error: SDKUnsupportedReasons | undefined;
|
|
4
|
+
}>;
|
|
5
|
+
declare enum SDKUnsupportedReasons {
|
|
6
|
+
IncompatibleBrowser = "incompatible-browser",
|
|
7
|
+
ThirdPartyCookiesDisabled = "third-party-cookies-disabled",
|
|
8
|
+
NoMediaStreamsSupport = "no-media-streams-support"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Check if the client being initialized is compatible with loom features.
|
|
12
|
+
* @returns Support information
|
|
13
|
+
*/
|
|
14
|
+
declare const isSupported: IsSupportedFunction;
|
|
15
|
+
//# sourceMappingURL=is-supported.d.ts.map
|
|
16
|
+
|
|
17
|
+
export { SDKUnsupportedReasons, isSupported };
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
type IsSupportedFunction = () => Promise<{
|
|
2
|
+
supported: boolean;
|
|
3
|
+
error: SDKUnsupportedReasons | undefined;
|
|
4
|
+
}>;
|
|
5
|
+
declare enum SDKUnsupportedReasons {
|
|
6
|
+
IncompatibleBrowser = "incompatible-browser",
|
|
7
|
+
ThirdPartyCookiesDisabled = "third-party-cookies-disabled",
|
|
8
|
+
NoMediaStreamsSupport = "no-media-streams-support"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Check if the client being initialized is compatible with loom features.
|
|
12
|
+
* @returns Support information
|
|
13
|
+
*/
|
|
14
|
+
declare const isSupported: IsSupportedFunction;
|
|
15
|
+
//# sourceMappingURL=is-supported.d.ts.map
|
|
16
|
+
|
|
17
|
+
declare enum Environment {
|
|
18
|
+
Development = "development",
|
|
19
|
+
Testbench = "testbench",
|
|
20
|
+
Staging = "staging",
|
|
21
|
+
Production = "production"
|
|
22
|
+
}
|
|
23
|
+
declare enum RecordingType {
|
|
24
|
+
ScreenAndCamera = "screen_cam",
|
|
25
|
+
ScreenOnly = "screen",
|
|
26
|
+
CameraOnly = "cam"
|
|
27
|
+
}
|
|
28
|
+
interface SDKStyles {
|
|
29
|
+
/**
|
|
30
|
+
* Font family to be used instead of loom defaults. This is 1:1 with `font-family`.
|
|
31
|
+
*/
|
|
32
|
+
fontFamily?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Base font unit size used to calculate the font size for the text.
|
|
35
|
+
*/
|
|
36
|
+
fontUnitSize?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Collection of record button color options
|
|
39
|
+
*/
|
|
40
|
+
recordButtonColor?: string;
|
|
41
|
+
recordButtonHoverColor?: string;
|
|
42
|
+
recordButtonActiveColor?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Collection of primary color overrides
|
|
45
|
+
*/
|
|
46
|
+
primaryColor?: string;
|
|
47
|
+
primaryHoverColor?: string;
|
|
48
|
+
primaryActiveColor?: string;
|
|
49
|
+
}
|
|
50
|
+
interface SDKConfig {
|
|
51
|
+
bubbleResizable: boolean;
|
|
52
|
+
insertButtonText: string;
|
|
53
|
+
disablePreviewModal?: boolean;
|
|
54
|
+
enableOnboardingTutorial?: boolean;
|
|
55
|
+
allowedRecordingTypes?: [RecordingType, ...RecordingType[]];
|
|
56
|
+
/**
|
|
57
|
+
* The default selection for recording type. If `allowedRecordingTypes` is specified, should
|
|
58
|
+
* include this default type in the list. If unspecified, defaults to Screen and Camera
|
|
59
|
+
*/
|
|
60
|
+
defaultRecordingType?: RecordingType;
|
|
61
|
+
/**
|
|
62
|
+
* Collection of styles that can be applied to the loom components.
|
|
63
|
+
*/
|
|
64
|
+
styles?: SDKStyles;
|
|
65
|
+
}
|
|
66
|
+
declare enum SDKState {
|
|
67
|
+
Closed = "closed",
|
|
68
|
+
PreRecording = "pre-recording",
|
|
69
|
+
ActiveRecording = "active-recording",
|
|
70
|
+
PostRecording = "post-recording"
|
|
71
|
+
}
|
|
72
|
+
interface LoomVideo {
|
|
73
|
+
id: string;
|
|
74
|
+
title: string;
|
|
75
|
+
height: number;
|
|
76
|
+
width: number;
|
|
77
|
+
sharedUrl: string;
|
|
78
|
+
embedUrl: string;
|
|
79
|
+
thumbnailHeight?: number;
|
|
80
|
+
thumbnailWidth?: number;
|
|
81
|
+
thumbnailUrl?: string;
|
|
82
|
+
duration?: number;
|
|
83
|
+
providerUrl: string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Types pull eventemitter3 to avoid bundling types from that package.
|
|
87
|
+
*/
|
|
88
|
+
type ValidEventTypes = string | symbol | any;
|
|
89
|
+
type EventNames<T extends ValidEventTypes> = T extends string | symbol ? T : keyof T;
|
|
90
|
+
type ArgumentMap<T> = {
|
|
91
|
+
[K in keyof T]: T[K] extends (...args: any[]) => void ? Parameters<T[K]> : T[K] extends any[] ? T[K] : any[];
|
|
92
|
+
};
|
|
93
|
+
type EventListener<T extends ValidEventTypes, K extends EventNames<T>> = T extends string | symbol ? (...args: any[]) => void : (...args: ArgumentMap<Exclude<T, string | symbol>>[Extract<K, keyof T>]) => void;
|
|
94
|
+
type EventArgs<T extends ValidEventTypes, K extends EventNames<T>> = Parameters<EventListener<T, K>>;
|
|
95
|
+
interface EventEmitter<EventTypes extends ValidEventTypes = string | symbol, Context = any> {
|
|
96
|
+
eventNames(): Array<EventNames<EventTypes>>;
|
|
97
|
+
listeners<T extends EventNames<EventTypes>>(event: T): Array<EventListener<EventTypes, T>>;
|
|
98
|
+
listenerCount(event: EventNames<EventTypes>): number;
|
|
99
|
+
emit<T extends EventNames<EventTypes>>(event: T, ...args: EventArgs<EventTypes, T>): boolean;
|
|
100
|
+
on<T extends EventNames<EventTypes>>(event: T, fn: EventListener<EventTypes, T>, context?: Context): this;
|
|
101
|
+
addListener<T extends EventNames<EventTypes>>(event: T, fn: EventListener<EventTypes, T>, context?: Context): this;
|
|
102
|
+
once<T extends EventNames<EventTypes>>(event: T, fn: EventListener<EventTypes, T>, context?: Context): this;
|
|
103
|
+
removeListener<T extends EventNames<EventTypes>>(event: T, fn?: EventListener<EventTypes, T>, context?: Context, once?: boolean): this;
|
|
104
|
+
off<T extends EventNames<EventTypes>>(event: T, fn?: EventListener<EventTypes, T>, context?: Context, once?: boolean): this;
|
|
105
|
+
removeAllListeners(event?: EventNames<EventTypes>): this;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
type HookFn<T> = (a: T) => void;
|
|
109
|
+
interface Hooks {
|
|
110
|
+
onInsertClicked: HookFn<LoomVideo>;
|
|
111
|
+
onStart?: HookFn<void>;
|
|
112
|
+
onRecordingStarted?: HookFn<void>;
|
|
113
|
+
onCancel?: HookFn<void>;
|
|
114
|
+
onComplete?: HookFn<void>;
|
|
115
|
+
onAnalyticsEvent?: HookFn<string>;
|
|
116
|
+
onLifecycleUpdate?: HookFn<SDKState>;
|
|
117
|
+
onRecordingComplete: HookFn<LoomVideo>;
|
|
118
|
+
onUploadComplete: HookFn<LoomVideo>;
|
|
119
|
+
}//# sourceMappingURL=hooks.d.ts.map
|
|
120
|
+
|
|
121
|
+
interface Position {
|
|
122
|
+
x: number;
|
|
123
|
+
y: number;
|
|
124
|
+
}
|
|
125
|
+
interface ButtonEmitterEvents {
|
|
126
|
+
'bubble-drag-end': (pos: Position) => void;
|
|
127
|
+
'bubble-drag-start': (pos: Position) => void;
|
|
128
|
+
'bubble-move': (pos: Position) => void;
|
|
129
|
+
cancel: () => void;
|
|
130
|
+
complete: () => void;
|
|
131
|
+
'insert-click': (video: LoomVideo) => void;
|
|
132
|
+
'lifecycle-update': (state: SDKState) => void;
|
|
133
|
+
'recording-complete': (video: LoomVideo) => void;
|
|
134
|
+
'recording-start': () => void;
|
|
135
|
+
start: () => void;
|
|
136
|
+
'upload-complete': (video: LoomVideo) => void;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Public definition for the SDK Button.
|
|
140
|
+
*/
|
|
141
|
+
interface SDKButtonInterface extends EventEmitter<ButtonEmitterEvents> {
|
|
142
|
+
/**
|
|
143
|
+
* Opens the recording panel to start a user's record flow.
|
|
144
|
+
*/
|
|
145
|
+
openPreRecordPanel: () => void;
|
|
146
|
+
/**
|
|
147
|
+
* Closes the recording panel.
|
|
148
|
+
*/
|
|
149
|
+
closePreRecordPanel: () => void;
|
|
150
|
+
/**
|
|
151
|
+
* Move the recording bubble.
|
|
152
|
+
* @param pos New position where the bubble will be moved to. This value is pixels relative
|
|
153
|
+
* to the bubble's iframe container.
|
|
154
|
+
*/
|
|
155
|
+
moveBubble: (p: Position) => void;
|
|
156
|
+
/**
|
|
157
|
+
* End a recording in progress
|
|
158
|
+
*/
|
|
159
|
+
endRecording: () => void;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
type ButtonFn = (a?: {
|
|
163
|
+
element?: HTMLElement;
|
|
164
|
+
hooks?: Hooks;
|
|
165
|
+
}) => SDKButtonInterface;
|
|
166
|
+
type SDKResult = {
|
|
167
|
+
teardown: () => void;
|
|
168
|
+
configureButton: ButtonFn;
|
|
169
|
+
status: () => {
|
|
170
|
+
state: SDKState | undefined;
|
|
171
|
+
success: boolean;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
type SetupFunction = (a: {
|
|
175
|
+
/**
|
|
176
|
+
* @deprecated `apiKey` has been renamed to `publicAppId`, please use that instead
|
|
177
|
+
*/
|
|
178
|
+
apiKey?: string;
|
|
179
|
+
publicAppId?: string;
|
|
180
|
+
environment?: Environment;
|
|
181
|
+
config?: Partial<SDKConfig>;
|
|
182
|
+
jws?: string;
|
|
183
|
+
}) => Promise<SDKResult>;
|
|
184
|
+
declare const setup: SetupFunction;
|
|
185
|
+
//# sourceMappingURL=setup.d.ts.map
|
|
186
|
+
|
|
187
|
+
export { Hooks, LoomVideo, RecordingType, SDKButtonInterface, SDKResult, SDKState, SDKUnsupportedReasons, SetupFunction, isSupported, setup };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loomhq/record-sdk",
|
|
3
3
|
"description": "The Loom Software Development Kit",
|
|
4
|
-
"version": "2.36.
|
|
4
|
+
"version": "2.36.18-draft",
|
|
5
5
|
"author": "@loomhq/platform",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=12",
|
|
@@ -22,11 +22,12 @@
|
|
|
22
22
|
"@emotion/core": "^10.1.1",
|
|
23
23
|
"@emotion/react": "^11.9.3",
|
|
24
24
|
"@emotion/styled": "^10.0.27",
|
|
25
|
+
"@loomhq/enums": "^2.3.5",
|
|
25
26
|
"@loomhq/esbuild-plugin-umd": "^0.4.2",
|
|
26
|
-
"@loomhq/lens": "^10.
|
|
27
|
+
"@loomhq/lens": "^10.83.0",
|
|
27
28
|
"@reduxjs/toolkit": "^1.8.3",
|
|
28
29
|
"@testing-library/jest-dom": "^5.16.5",
|
|
29
|
-
"@testing-library/react": "^12.1.
|
|
30
|
+
"@testing-library/react": "^12.1.4",
|
|
30
31
|
"@types/jest": "^27.5.2",
|
|
31
32
|
"@types/node": "^16.11.7",
|
|
32
33
|
"@types/react": "^17.0.48",
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
"react-error-boundary": "^3.1.0",
|
|
53
54
|
"react-redux": "^7.2.6",
|
|
54
55
|
"react-shadow": "^19.0.3",
|
|
55
|
-
"redux": "^4.
|
|
56
|
+
"redux": "^4.2.0",
|
|
56
57
|
"redux-mock-store": "^1.5.4",
|
|
57
58
|
"redux-thunk": "^2.3.0",
|
|
58
59
|
"rollup": "^2.57.0",
|
|
@@ -63,14 +64,13 @@
|
|
|
63
64
|
"typescript": "^4.9.4",
|
|
64
65
|
"ua-parser-js": "^0.7.25",
|
|
65
66
|
"@loomhq/bundler": "1.0.14",
|
|
66
|
-
"@loomhq/camera-bubble": "12.4.
|
|
67
|
-
"@loomhq/
|
|
68
|
-
"@loomhq/iframe-redux": "0.1.
|
|
69
|
-
"@loomhq/media-utilities": "2.1.
|
|
70
|
-
"@loomhq/
|
|
71
|
-
"@loomhq/sdk-
|
|
72
|
-
"@loomhq/
|
|
73
|
-
"@loomhq/third-party-cookie-check": "2.0.13",
|
|
67
|
+
"@loomhq/camera-bubble": "12.4.18",
|
|
68
|
+
"@loomhq/outcomes": "2.1.43",
|
|
69
|
+
"@loomhq/iframe-redux": "0.1.12",
|
|
70
|
+
"@loomhq/media-utilities": "2.1.10",
|
|
71
|
+
"@loomhq/sdk-background": "1.26.44",
|
|
72
|
+
"@loomhq/sdk-store": "0.23.16",
|
|
73
|
+
"@loomhq/third-party-cookie-check": "2.0.14",
|
|
74
74
|
"@loomhq/tsconfig": "1.0.5"
|
|
75
75
|
},
|
|
76
76
|
"exports": {
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"build:types:declarations": "tsc",
|
|
115
115
|
"ci/lint": "pnpm lint --quiet --cache --cache-location /tmp/eslintcache/ --cache-strategy content",
|
|
116
116
|
"ci/test:unit": "jest --ci --runInBand --reporters=default --reporters=jest-junit --coverage",
|
|
117
|
-
"clean:build": "rm -rf ./dist",
|
|
117
|
+
"clean:build": "rm -rf ./dist && rm -f tsconfig.tsbuildinfo",
|
|
118
118
|
"lint": "eslint \"**/*.{js,ts,jsx,tsx,graphql}\"",
|
|
119
119
|
"test": "jest --maxWorkers=2",
|
|
120
120
|
"test:cypress": "cypress run"
|