hyperframes 0.8.102 → 0.8.104
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/{add-VPQE3RDA.js → add-KXAWOEZJ.js} +5 -5
- package/dist/{asset-W7Y72RKR.js → asset-QAIWASUI.js} +2 -2
- package/dist/{auth-Y4RA74AF.js → auth-2FQGBN5W.js} +1 -1
- package/dist/{autoUpdate-WW6MT77L.js → autoUpdate-UXMPQYUO.js} +2 -2
- package/dist/{backgroundChecks-73O5CHLQ.js → backgroundChecks-RPBCDLBU.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{beats-WFS46BCN.js → beats-F4PZIT7L.js} +4 -4
- package/dist/{benchmark-RGLEFQ5G.js → benchmark-AIGZ6NZT.js} +5 -5
- package/dist/{browser-L2HUA3T6.js → browser-AQTVWA2I.js} +3 -3
- package/dist/{catalog-JAEFC7JA.js → catalog-LVB5GLIS.js} +5 -5
- package/dist/{check-JJJTI3XT.js → check-ZMENBYIU.js} +12 -12
- package/dist/{checkBrowser-GCBWRN6L.js → checkBrowser-26NJ47DY.js} +10 -10
- package/dist/{chunk-UUWKFFIS.js → chunk-2M6YQAMV.js} +1 -1
- package/dist/{chunk-UFWRM7II.js → chunk-4V63UZIV.js} +1 -1
- package/dist/{chunk-FYYNMTSB.js → chunk-6CPVF7DM.js} +1 -1
- package/dist/{chunk-XL2CUGEG.js → chunk-7QGIB2E6.js} +5 -6
- package/dist/{chunk-MCABWC2G.js → chunk-E5HKS3CE.js} +1 -1
- package/dist/{chunk-VBTX4DPW.js → chunk-ELDDZYIJ.js} +1 -1
- package/dist/{chunk-YYVDW3U3.js → chunk-IEBXD6Y6.js} +2 -2
- package/dist/{chunk-RNCCSWOD.js → chunk-JUDUP2IC.js} +2 -2
- package/dist/{chunk-AR3DNUZK.js → chunk-MZWGD4IR.js} +1 -1
- package/dist/{chunk-3AQWEGA4.js → chunk-PRWBZGQ5.js} +1 -1
- package/dist/{chunk-KQMNHUSQ.js → chunk-RUQUOWIV.js} +3 -3
- package/dist/{chunk-364C3NZJ.js → chunk-S4EZWGRD.js} +2 -2
- package/dist/{chunk-NOFP4LDK.js → chunk-SA4HX7OJ.js} +2 -2
- package/dist/{chunk-5WCH43SG.js → chunk-TKZAN2AY.js} +2 -2
- package/dist/{chunk-RPJZ2OIC.js → chunk-TVKKKJQT.js} +1 -1
- package/dist/{chunk-XGMLRDCS.js → chunk-VAFKQ546.js} +1 -1
- package/dist/{chunk-KH6C7WX4.js → chunk-XOBW5TFB.js} +2 -2
- package/dist/{chunk-VG7RVEYC.js → chunk-ZASIQRKO.js} +3 -3
- package/dist/{clean-VPKV37YK.js → clean-4NIBDW2Y.js} +4 -4
- package/dist/cli.js +44 -44
- package/dist/{cloud-Y7DY5RBU.js → cloud-XONUMPVD.js} +4 -4
- package/dist/{compare-2IBGPG4Z.js → compare-PLEGE2AB.js} +7 -7
- package/dist/{component-6D3CRP27.js → component-YODSQLKS.js} +3 -3
- package/dist/{compositions-3YOJVZHN.js → compositions-ZYGETZWE.js} +5 -5
- package/dist/{delete-PPQEJ7WN.js → delete-2YR5ZDZI.js} +2 -2
- package/dist/{doctor-NPFWKGFN.js → doctor-WS4BOIAN.js} +3 -3
- package/dist/{events-WZVJQKZT.js → events-AWJJTVYV.js} +2 -2
- package/dist/{events-GBXFJDHM.js → events-QEEFQ76R.js} +3 -3
- package/dist/{feedback-VQSKHS6W.js → feedback-32I2DS3H.js} +4 -4
- package/dist/{figma-FQRSLUPF.js → figma-THXKL7C3.js} +3 -3
- package/dist/fontLocalizeCli.js +1 -1
- package/dist/{get-BPSVNOBT.js → get-2RK36VX3.js} +2 -2
- package/dist/{grade-compare-5DVQDKDM.js → grade-compare-4R5XDPJU.js} +7 -7
- package/dist/{help-LHVN2JXZ.js → help-YKZ5HPQO.js} +1 -1
- package/dist/{history-FNA6JRDA.js → history-2IPTBA55.js} +6 -6
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-RVYWRVMP.js → info-H2ZIL5YN.js} +5 -5
- package/dist/{init-JOEJCQGG.js → init-2ZEQAKSE.js} +6 -6
- package/dist/{inspect-XGIRSOZJ.js → inspect-FQEXVZUP.js} +9 -9
- package/dist/{keyframes-TUFGKZLT.js → keyframes-GHCATB4L.js} +6 -6
- package/dist/{layout-XHDUU7SG.js → layout-JUAYXDNX.js} +9 -9
- package/dist/{lint-IT3XLO4V.js → lint-45XP4TUK.js} +6 -6
- package/dist/{list-DD4WNXO2.js → list-CKALQL3O.js} +2 -2
- package/dist/{login-6VNLZQVC.js → login-QQDJUIGO.js} +4 -4
- package/dist/{media-treatment-C4KOV2A6.js → media-treatment-CBQ2DANK.js} +5 -5
- package/dist/{motionShot-XRSPP3G6.js → motionShot-TGJGSYGV.js} +1 -1
- package/dist/{normalize-audio-23OENV4B.js → normalize-audio-OVVPWEUL.js} +4 -4
- package/dist/{play-7MXFYNVD.js → play-YIHX3DZX.js} +7 -7
- package/dist/{present-DERIUORA.js → present-FWJNW3Z3.js} +7 -7
- package/dist/{preview-5RNTVKJW.js → preview-TAICDDJL.js} +5 -5
- package/dist/{render-MPUHSMQI.js → render-LHTKQD2G.js} +5 -5
- package/dist/{render-U6KEOEJM.js → render-TSOLZGAK.js} +5 -5
- package/dist/{skills-SKOWWTXY.js → skills-4M2LBGYL.js} +5 -5
- package/dist/{skillsUpdateCheck-NNJJCMBN.js → skillsUpdateCheck-WDI32JU4.js} +3 -3
- package/dist/{snapshot-K363RKEN.js → snapshot-33SGYIF6.js} +7 -7
- package/dist/{staticProjectServer-TEVGFDXU.js → staticProjectServer-QDLEH37G.js} +3 -3
- package/dist/studio/assets/{hyperframes-player-BuRiFtrF.js → hyperframes-player-DAoaajuM.js} +1 -1
- package/dist/studio/assets/{index-BT3sauee.js → index-BDK4rTMb.js} +1 -1
- package/dist/studio/assets/{index-xB5O0hPw.css → index-CQN3M56N.css} +1 -1
- package/dist/studio/assets/{index-C2utDZt-.js → index-De2aO4XM.js} +179 -179
- package/dist/studio/assets/{index-BM35fjFf.js → index-WV9LroAD.js} +1 -1
- package/dist/studio/{chunk-MTAVNAGW.js → chunk-46XP7J3B.js} +2 -2
- package/dist/studio/{chunk-S65AQH6M.js → chunk-DI4LCJHL.js} +3 -2
- package/dist/studio/chunk-DI4LCJHL.js.map +1 -0
- package/dist/studio/{chunk-7X4XRP3L.js → chunk-HIGHVWYD.js} +2 -2
- package/dist/studio/{domEditingLayers-NU6Z5QWA.js → domEditingLayers-AQBDFNUC.js} +3 -3
- package/dist/studio/index.d.ts +183 -170
- package/dist/studio/index.html +2 -2
- package/dist/studio/index.js +550 -389
- package/dist/studio/index.js.map +1 -1
- package/dist/studio/player.js +2 -2
- package/dist/studio/styles.css +1 -1
- package/dist/{studio-api-VNIEVFVL.js → studio-api-RMDM77U2.js} +1 -1
- package/dist/{studioServer-YQGQ3V4W.js → studioServer-CTDEYU7Q.js} +5 -5
- package/dist/{telemetry-MRO55C62.js → telemetry-7P3TXR5K.js} +3 -3
- package/dist/{timeline-FRQ77XDZ.js → timeline-WOBSPT6V.js} +6 -6
- package/dist/{tokens-UHPUH375.js → tokens-2A4LMJYJ.js} +2 -2
- package/dist/{transcribe-J7MUTYBO.js → transcribe-7VKKNU5N.js} +3 -3
- package/dist/{updateCheck-GLRNJI6D.js → updateCheck-5UKKIEDG.js} +2 -2
- package/dist/{upgrade-RCC4OG57.js → upgrade-QZIZVUIX.js} +2 -2
- package/dist/{validate-KK5PW37V.js → validate-D2YZV5KV.js} +6 -6
- package/package.json +1 -1
- package/dist/studio/chunk-S65AQH6M.js.map +0 -1
- /package/dist/studio/{chunk-MTAVNAGW.js.map → chunk-46XP7J3B.js.map} +0 -0
- /package/dist/studio/{chunk-7X4XRP3L.js.map → chunk-HIGHVWYD.js.map} +0 -0
- /package/dist/studio/{domEditingLayers-NU6Z5QWA.js.map → domEditingLayers-AQBDFNUC.js.map} +0 -0
|
@@ -6,11 +6,11 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
serveStaticProjectHtml
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ELDDZYIJ.js";
|
|
10
10
|
import "./chunk-XUHOIDKG.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-E5HKS3CE.js";
|
|
12
12
|
import "./chunk-X7MTZ4T2.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-7QGIB2E6.js";
|
|
14
14
|
import "./chunk-M4KS6MJN.js";
|
|
15
15
|
import "./chunk-4Z5O7BTD.js";
|
|
16
16
|
import "./chunk-O5TBFZ7X.js";
|
package/dist/studio/assets/{hyperframes-player-BuRiFtrF.js → hyperframes-player-DAoaajuM.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var xe=Object.defineProperty;var ke=(r,i,e)=>i in r?xe(r,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[i]=e;var h=(r,i,e)=>ke(r,typeof i!="symbol"?i+"":i,e);import{r as fe,i as Ie,a as w,b as _e,p as Oe,c as Ne,d as Fe,s as Ve,e as ge,F as ye}from"./index-
|
|
1
|
+
var xe=Object.defineProperty;var ke=(r,i,e)=>i in r?xe(r,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[i]=e;var h=(r,i,e)=>ke(r,typeof i!="symbol"?i+"":i,e);import{r as fe,i as Ie,a as w,b as _e,p as Oe,c as Ne,d as Fe,s as Ve,e as ge,F as ye}from"./index-De2aO4XM.js";function He(r){return r.hasRuntime||r.runtimeInjected?!1:!!(r.hasNestedCompositions||r.hasTimelines&&r.attempts>=5)}function z(r){return typeof r=="object"&&r!==null}function Ue(r){return z(r)&&typeof r.getDuration=="function"}function We(r){return z(r)&&typeof r.duration=="function"&&typeof r.time=="function"&&typeof r.seek=="function"&&typeof r.play=="function"&&typeof r.pause=="function"}function ze(r){if(!/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(r))throw new Error(`Invalid HyperFrames runtime version: ${r}`);return`https://cdn.jsdelivr.net/npm/@hyperframes/core@${r}/dist/hyperframe.runtime.iife.js`}const U=typeof __HYPERFRAMES_RUNTIME_CDN_URL__=="string"?__HYPERFRAMES_RUNTIME_CDN_URL__:ze("0.0.0-dev");function $(r){if(r===null)return null;const i=Number.parseInt(r,10);return Number.isFinite(i)&&i>0?i:null}function $e(r){const i=(r==null?void 0:r.querySelector("[data-composition-id][data-width][data-height]"))??(r==null?void 0:r.querySelector("[data-width][data-height]"));if(!i)return null;const e=$(i.getAttribute("data-width")),t=$(i.getAttribute("data-height"));return e!==null&&t!==null?{width:e,height:t}:null}class je{constructor(i,e){h(this,"_interval",null);h(this,"_runtimeInjected",!1);this._iframe=i,this._callbacks=e}get runtimeInjected(){return this._runtimeInjected}start(){this.stop(),this._runtimeInjected=!1;let i=0;this._interval=setInterval(()=>{var e;i++;try{const t=this._iframe.contentWindow;if(!t)return;const s=!!(t.__hf||t.__player),n=!!(t.__timelines&&Object.keys(t.__timelines).length>0),o=!!((e=this._iframe.contentDocument)!=null&&e.querySelector("[data-composition-src]"));if(He({hasRuntime:s,hasTimelines:n,hasNestedCompositions:o,runtimeInjected:this._runtimeInjected,attempts:i})){this._injectRuntime();return}if(this._runtimeInjected&&!s)return;const a=this._resolvePlaybackDurationAdapter(t);if(a&&a.getDuration()>0){this.stop();const c=$e(this._iframe.contentDocument);this._callbacks.onReady({duration:a.getDuration(),adapter:a,compositionSize:c});return}}catch{}i>=40&&(this.stop(),this._callbacks.onError("Composition timeline not found after 8s"))},200)}stop(){this._interval!==null&&(clearInterval(this._interval),this._interval=null)}resolveDirectTimelineAdapter(){try{const i=this._iframe.contentWindow;return i?this._resolveDirectTimelineAdapterFromWindow(i):null}catch{return null}}resolveDirectTimelineAdapterFromWindow(i){return this._resolveDirectTimelineAdapterFromWindow(i)}hasRuntimeBridge(i){return Reflect.get(i,"__hf")!==void 0||z(Reflect.get(i,"__player"))}_injectRuntime(){var i,e;this._runtimeInjected=!0;try{const t=this._iframe.contentDocument;if(!t)return;const s=t.createElement("script");s.src=U,(t.head||t.documentElement).appendChild(s),(e=(i=this._callbacks).onRuntimeInjected)==null||e.call(i)}catch{}}_resolveDirectTimelineAdapterFromWindow(i){var a,c;if(this.hasRuntimeBridge(i))return null;const e=Reflect.get(i,"__timelines");if(!z(e))return null;const t=Object.keys(e);if(t.length===0)return null;const s=(c=(a=this._iframe.contentDocument)==null?void 0:a.querySelector("[data-composition-id]"))==null?void 0:c.getAttribute("data-composition-id"),n=s&&s in e?s:t[t.length-1],o=e[n];return We(o)?o:null}_resolvePlaybackDurationAdapter(i){const e=Reflect.get(i,"__player");if(Ue(e))return{kind:"runtime",getDuration:()=>e.getDuration()};const t=this._resolveDirectTimelineAdapterFromWindow(i);return t?{kind:"direct-timeline",timeline:t,getDuration:()=>t.duration()}:null}}const Be=`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
position: relative;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as P}from"./index-
|
|
1
|
+
import{g as P}from"./index-De2aO4XM.js";function j(c,d){for(var s=0;s<d.length;s++){const a=d[s];if(typeof a!="string"&&!Array.isArray(a)){for(const i in a)if(i!=="default"&&!(i in c)){const l=Object.getOwnPropertyDescriptor(a,i);l&&Object.defineProperty(c,i,l.get?l:{enumerable:!0,get:()=>a[i]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var v={},w;function k(){if(w)return v;w=1,Object.defineProperty(v,"__esModule",{value:!0}),v.default=d;var c=window.OfflineAudioContext||window.webkitOfflineAudioContext;function d(e){var r=a(e);return r.start(0),[i,y,O(e.sampleRate),s].reduce(function(t,o){return o(t)},r.buffer.getChannelData(0))}function s(e){return e.sort(function(r,t){return t.count-r.count}).splice(0,5)[0].tempo}function a(e){var r=e.length,t=e.numberOfChannels,o=e.sampleRate,n=new c(t,r,o),u=n.createBufferSource();u.buffer=e;var f=n.createBiquadFilter();return f.type="lowpass",u.connect(f),f.connect(n.destination),u}function i(e){for(var r=[],t=.9,o=.3,n=15;r.length<n&&t>=o;)r=l(e,t),t-=.05;if(r.length<n)throw new Error("Could not find enough samples for a reliable detection.");return r}function l(e,r){for(var t=[],o=0,n=e.length;o<n;o+=1)e[o]>r&&(t.push(o),o+=1e4);return t}function y(e){var r=[];return e.forEach(function(t,o){for(var n=function(x){var g=e[o+x]-t,_=r.some(function(h){if(h.interval===g)return h.count+=1});_||r.push({interval:g,count:1})},u=0;u<10;u+=1)n(u)}),r}function O(e){return function(r){var t=[];return r.forEach(function(o){if(o.interval!==0){for(var n=60/(o.interval/e);n<90;)n*=2;for(;n>180;)n/=2;n=Math.round(n);var u=t.some(function(f){if(f.tempo===n)return f.count+=o.count});u||t.push({tempo:n,count:o.count})}}),t}}return v}var p,b;function q(){return b||(b=1,p=k().default),p}var m=q();const A=P(m),D=j({__proto__:null,default:A},[m]);export{D as i};
|