@hyperframes/studio 0.9.52 → 0.9.53
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/assets/{hyperframes-player-D7LhzIg1.js → hyperframes-player-z7r-N5fm.js} +2 -2
- package/dist/assets/{index-CQ7o0CBU.js → index-2QPHxCxy.js} +1 -1
- package/dist/assets/{index-D3WxJaqm.js → index-Dpo7Q_9-.js} +160 -160
- package/dist/assets/index-Dv67Vrl6.js +74 -0
- package/dist/assets/{pausedVideoDecoder-BVUmBgn0.js → pausedVideoDecoder-BarDYEAf.js} +1 -1
- package/dist/chunk-USW3YBOG.js +70 -0
- package/dist/index.d.ts +6 -5
- package/dist/index.html +1 -1
- package/dist/index.js +45 -77
- package/dist/keys.d.ts +72 -1
- package/dist/keys.js +5 -4
- package/package.json +9 -9
- package/src/captions/keyboard.ts +1 -1
- package/src/components/RightPanelTabs.test.tsx +1 -1
- package/src/components/StudioHeader.dom.test.tsx +1 -1
- package/src/components/TimelineHistoryButtons.dom.test.tsx +1 -1
- package/src/components/TimelineToolbar.tsx +1 -1
- package/src/components/editor/SnapToolbar.tsx +1 -1
- package/src/components/editor/useDomEditNudge.ts +1 -1
- package/src/components/panels/SlideshowPanel.tsx +1 -1
- package/src/components/renders/RenderQueue.test.tsx +1 -1
- package/src/components/ui/Button.test.tsx +1 -1
- package/src/components/ui/Menu.test.tsx +1 -1
- package/src/components/ui/valueControls.test.tsx +1 -1
- package/src/hooks/appHotkeysDispatch.ts +1 -1
- package/src/hooks/linkShortcuts.ts +1 -1
- package/src/hooks/useAutomationSelectionKeyboard.ts +1 -1
- package/src/hooks/useKeyframeKeyboard.ts +1 -1
- package/src/index.ts +2 -2
- package/src/keys.test.ts +5 -7
- package/src/keys.ts +1 -6
- package/src/player/components/ShortcutsPanel.tsx +1 -1
- package/src/player/components/studioCombo.test.ts +1 -1
- package/src/player/components/studioShortcuts.ts +1 -1
- package/src/player/lib/playbackShortcuts.ts +3 -28
- package/src/utils/studioHelpers.ts +1 -1
- package/src/utils/studioPendingEdits.ts +1 -1
- package/src/utils/timelineDiscovery.ts +1 -1
- package/src/utils/typingTarget.test.ts +1 -1
- package/src/webmcp/polyfill.transport.test.ts +13 -3
- package/src/webmcp/types.ts +3 -3
- package/src/webmcp/useStudioAgentTools.polyfill.test.tsx +89 -121
- package/src/webmcp/useStudioAgentTools.test.tsx +2 -2
- package/src/webmcp/useStudioAgentTools.ts +2 -3
- package/dist/assets/index-BX3KHhGX.js +0 -71
- package/dist/chunk-5ZHKYODQ.js +0 -149
- package/dist/keys-B163OjLN.d.ts +0 -87
- package/src/player/components/studioCombo.ts +0 -108
- package/src/utils/typingTarget.ts +0 -56
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Input as V,ALL_FORMATS as G,UrlSource as K,VideoSampleSink as Q}from"./index-
|
|
1
|
+
import{Input as V,ALL_FORMATS as G,UrlSource as K,VideoSampleSink as Q}from"./index-2QPHxCxy.js";import{l as X}from"./index-Dpo7Q_9-.js";const x=1e-5,k=1e-9,T=h=>!h.variableFrameRate&&(h.frameRate??0)>0;function Y(h,s){const{sourceLead:r,inputLead:l,timeResolution:d,frameRate:p=0}=s;if(!T(s))return Math.max(l,h-r+l)+k;const w=Math.max(0,Math.floor((h-r)*p+k)),f=l+w/p;return(d>0?Math.round(f*d)/d:f)+x}function J(h,s,r){const{frameRate:l=0,sourceLead:d,inputLead:p}=r,w=T(r)?Math.round((h-p)*l)/l+d:h-p+d,f=Math.min(s,w);return{timestamp:f,duration:Math.max(T(r)?1/l:0,s-f+x)}}const E=64*1024*1024,M=4,Z=.5,$=2e3;async function q(h,s){if(!h.transparent)return h.sink.getSample(s);let r=null;try{for await(const l of h.sink.samplesAtTimestamps([s]))r==null||r.close(),r=l;return r}catch(l){throw r==null||r.close(),l}}function ot(h){const s=new Map,r=new Map,l=new Map,d=new Map,p=new Map;let w=0,f=!1;const _=t=>{var o,n;let e=new URL(t,location.href).pathname;try{e=decodeURIComponent(e)}catch{}return(n=Object.entries(((o=h.contentWindow)==null?void 0:o.__HF_MEDIA_SOURCE_FACTS__)??{}).filter(([i])=>e.endsWith(i)).sort(([i],[a])=>a.length-i.length)[0])==null?void 0:n[1]},b=(t=E)=>{for(const[e,o]of p){if(w<=t)break;e.pins>0||(p.delete(e),o.cache.delete(e.timestamp),w-=e.bytes,e.image.close())}},v=async t=>{if(t.disposed)return;t.disposed=!0,clearTimeout(t.idleTimer),r.get(t.key)===t&&r.delete(t.key);const e=(async()=>{t.transparent&&await t.tail,t.cancelReads(),t.input.dispose(),await y(t).catch(()=>{});for(const o of t.cache.values())p.delete(o),w-=o.bytes,o.image.close();t.cache.clear(),t.canvas.width=t.canvas.height=0})();return t.transparent?new Promise((o,n)=>{const i=setTimeout(()=>{t.cancelReads(),o()},$);e.then(o,n).finally(()=>clearTimeout(i))}):e},P=t=>{clearTimeout(t.idleTimer),!(t.disposed||t.users>0||[...t.cache.values()].some(e=>e.pins>0))&&(t.idleTimer=setTimeout(()=>{t.users>0||[...t.cache.values()].some(e=>e.pins>0)||r.get(t.key)===t&&(s.delete(t.key),v(t))},1e4))},D=async t=>{const e=X("thumbnail"),o=new V({source:new K(t,e),formats:G});l.set(o,e.cancelReads);try{const n=await o.getPrimaryVideoTrack();if(!n||f)throw new Error("Preview video unavailable");const[i,a,u,c,m,S,F,B,j]=await Promise.all([n.getDisplayWidth(),n.getDisplayHeight(),n.getFirstTimestamp(),n.getTimeResolution(),n.getSquarePixelWidth(),n.getSquarePixelHeight(),n.getRotation(),n.getFlip(),n.canBeTransparent()]),g=document.createElement("canvas");g.width=Math.max(1,Math.ceil(i));const z=F%180===0?m/S:S/m;return g.height=Math.max(1,Math.round(g.width/z)),{key:t,input:o,cancelReads:e.cancelReads,sink:new Q(n),canvas:g,rotation:F,flip:B,width:i,height:a,lead:u,ticks:c,transparent:j,tail:Promise.resolve(),iterator:null,iteratorEnd:0,lastTime:-1/0,cache:new Map,users:0,disposed:!1}}catch(n){throw o.dispose(),e.cancelReads(),n}finally{l.delete(o)}},I=()=>{for(const[t]of s){if(s.size<M)break;const e=r.get(t);e&&e.users===0&&![...e.cache.values()].some(o=>o.pins>0)&&(s.delete(t),v(e))}if(s.size>=M)throw new Error("Preview decoder budget reached")},L=async t=>{const e=t;if((d.get(e)??0)>performance.now())throw new Error("Preview decoder cooling down");let o=s.get(e);o||(I(),o=D(t),s.set(e,o)),s.delete(e),s.set(e,o);let n;try{n=await o}catch(i){throw s.get(e)===o&&(s.delete(e),d.set(e,performance.now()+5e3)),i}if(f||n.disposed)throw new DOMException("Preview disposed","AbortError");return r.set(e,n),n.users++,clearTimeout(n.idleTimer),n},y=async t=>{const e=t.iterator;t.iterator=null,await(e==null?void 0:e.return())},R=(t,e)=>{if(e.throwIfAborted(),f||t.disposed)throw new Error("Preview disposed")},O=async(t,e,o)=>{for(t.iterator||(t.iteratorEnd=e+8,t.iterator=t.sink.samples(e,t.iteratorEnd));;){R(t,o);const n=await t.iterator.next();if(n.done)return null;const i=n.value;let a=!1;try{if(R(t,o),i.timestamp>e+1e-6)return null;if(a=i.timestamp+i.duration>e+1e-6,a)return i}finally{a||i.close()}}},A=(t,e)=>(e.pins++,p.delete(e),p.set(e,t),e),W=async(t,e,o,n,i)=>{const a=t.canvas.getContext("2d",{alpha:!0});if(!a)throw new Error("Preview canvas unavailable");a.clearRect(0,0,t.canvas.width,t.canvas.height),a.imageSmoothingQuality="high",e.drawWithFit(a,{fit:"fill",rotation:t.rotation,flip:t.flip});const u=await createImageBitmap(t.canvas);if(i.aborted||f||t.disposed)throw u.close(),i.throwIfAborted(),new Error("Preview disposed");const c={image:u,...J(e.timestamp,o,n),bytes:u.width*u.height*4,pins:1},m=t.cache.get(c.timestamp);if(m)return m.duration=Math.max(m.duration,c.duration),u.close(),A(t,m);if(b(E-c.bytes),w+c.bytes>E)throw u.close(),new Error("Preview frame budget reached");return t.cache.set(c.timestamp,c),p.set(c,t),w+=c.bytes,c},U=(t,e,o)=>!t.transparent&&!o.variableFrameRate&&(o.frameRate??0)>0&&e>t.lastTime+1e-6&&e-t.lastTime<=Z,C=async(t,e,o,n)=>{R(t,n);const i=[...t.cache.values()].find(m=>e>=m.timestamp-1e-6&&e<m.timestamp+m.duration-1e-6);if(i)return A(t,i);const a=Y(e,o),u=U(t,e,o);let c=null;try{if((!u||a>=t.iteratorEnd)&&await y(t),c=u?await O(t,a,n):null,c||(await y(t),c=await q(t,a)),!c)throw new Error("No preview frame at requested time");return R(t,n),t.lastTime=e,await W(t,c,e,o,n)}finally{c==null||c.close(),(n.aborted||f)&&await y(t).catch(()=>{})}},H=(t,e)=>{const o=_(t.source);return{frameRate:o==null?void 0:o.frameRate,variableFrameRate:o==null?void 0:o.variableFrameRate,sourceLead:e.lead,inputLead:e.lead,timeResolution:e.ticks}},N=async(t,e)=>{e.throwIfAborted();const o=t.source;if(!o)throw new Error("Preview source unavailable");const n=await L(o);try{const i=H(t,n),a=n.tail.then(()=>C(n,t.time,i,e));n.tail=a.then(()=>{},()=>{});const u=await a;let c=!1;return b(),{source:u.image,timestamp:u.timestamp,duration:u.duration,width:n.width,height:n.height,release(){c||(c=!0,u.pins--,b(),P(n))}}}finally{n.users--,P(n)}};return{async decode(t,e){if(f)throw new DOMException("Preview disposed","AbortError");if(new Set(t.map(({source:a})=>a)).size>M)throw new Error("Preview decoder budget reached");const o=await Promise.allSettled(t.map(a=>N(a,e))),n=o.find(a=>a.status==="rejected"),i=o.flatMap(a=>a.status==="fulfilled"?[a.value]:[]);if(n||f||e.aborted){for(const a of i)a.release();throw n?n.reason:new DOMException("Preview cancelled","AbortError")}return i},async suspend(){const t=[...s.values()].map(e=>e.then(v).catch(()=>{}));s.clear();for(const[e,o]of l)o(),e.dispose();await Promise.all(t)},dispose(){if(!f){f=!0;for(const[t,e]of l)e(),t.dispose();for(const t of s.values())t.then(v).catch(()=>{});s.clear(),d.clear()}}}}export{ot as createPausedVideoDecoder};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// src/player/components/studioKeyDefaults.ts
|
|
2
|
+
var DEFAULT_STUDIO_KEYS = {
|
|
3
|
+
fullscreen: "f",
|
|
4
|
+
split: "s",
|
|
5
|
+
record: "r",
|
|
6
|
+
addKeyframe: "k",
|
|
7
|
+
audioGain: "g",
|
|
8
|
+
zoomSelection: "z",
|
|
9
|
+
mute: "m",
|
|
10
|
+
pause: "k",
|
|
11
|
+
shuttleBack: "j",
|
|
12
|
+
shuttleForward: "l",
|
|
13
|
+
inPoint: "i",
|
|
14
|
+
outPoint: "o",
|
|
15
|
+
seekToIn: "a",
|
|
16
|
+
seekToOut: "e",
|
|
17
|
+
selectTool: "v",
|
|
18
|
+
razorTool: "b",
|
|
19
|
+
selectLeftward: "[",
|
|
20
|
+
selectRightward: "]",
|
|
21
|
+
exitRazor: "a",
|
|
22
|
+
snap: "s",
|
|
23
|
+
grid: "g",
|
|
24
|
+
timelineSnap: "n",
|
|
25
|
+
shortcuts: "?",
|
|
26
|
+
playPause: "Space",
|
|
27
|
+
frameBack: "ArrowLeft",
|
|
28
|
+
frameForward: "ArrowRight",
|
|
29
|
+
frameBackTen: "shift+ArrowLeft",
|
|
30
|
+
frameForwardTen: "shift+ArrowRight",
|
|
31
|
+
loop: "shift+l",
|
|
32
|
+
clearInPoint: "shift+i",
|
|
33
|
+
clearOutPoint: "shift+o",
|
|
34
|
+
undo: "mod+z",
|
|
35
|
+
redo: "mod+shift+z",
|
|
36
|
+
redoAlt: "ctrl+y",
|
|
37
|
+
tabCompositions: "mod+1",
|
|
38
|
+
tabAssets: "mod+2",
|
|
39
|
+
group: "mod+g",
|
|
40
|
+
ungroup: "mod+shift+g",
|
|
41
|
+
copy: "mod+c",
|
|
42
|
+
paste: "mod+v",
|
|
43
|
+
cut: "mod+x",
|
|
44
|
+
duplicate: "mod+d",
|
|
45
|
+
linkToggle: "mod+l",
|
|
46
|
+
detachAudio: "alt+shift+d",
|
|
47
|
+
deleteLinked: "alt+Backspace",
|
|
48
|
+
deleteLinkedAlt: "alt+Delete",
|
|
49
|
+
deleteSelected: "Delete",
|
|
50
|
+
deleteSelectedAlt: "Backspace",
|
|
51
|
+
resetKeyframes: "Backspace",
|
|
52
|
+
nudgeLeft: "ArrowLeft",
|
|
53
|
+
nudgeRight: "ArrowRight",
|
|
54
|
+
nudgeUp: "ArrowUp",
|
|
55
|
+
nudgeDown: "ArrowDown",
|
|
56
|
+
nudgeLeftTen: "shift+ArrowLeft",
|
|
57
|
+
nudgeRightTen: "shift+ArrowRight",
|
|
58
|
+
nudgeUpTen: "shift+ArrowUp",
|
|
59
|
+
nudgeDownTen: "shift+ArrowDown",
|
|
60
|
+
captionSelectAll: "mod+a",
|
|
61
|
+
pickupClip: "Space",
|
|
62
|
+
pickupUp: "ArrowUp",
|
|
63
|
+
pickupDown: "ArrowDown",
|
|
64
|
+
pickupDrop: "Enter",
|
|
65
|
+
cancel: "Escape"
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export {
|
|
69
|
+
DEFAULT_STUDIO_KEYS
|
|
70
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -7,8 +7,9 @@ import { GsapAnimation as GsapAnimation$1, ArcPathSegment } from '@hyperframes/p
|
|
|
7
7
|
import { EditingElementHandle, LayerKind } from '@hyperframes/core/runtime/editing-port';
|
|
8
8
|
import { Composition } from '@hyperframes/sdk';
|
|
9
9
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
10
|
-
import {
|
|
11
|
-
export {
|
|
10
|
+
import { StudioKeys, StudioKeyAction } from './keys.js';
|
|
11
|
+
export { DEFAULT_STUDIO_KEYS } from './keys.js';
|
|
12
|
+
export { Combo, formatCombo, matchCombo, parseCombo } from '@hyperframes/core/key-combo';
|
|
12
13
|
import * as zustand from 'zustand';
|
|
13
14
|
import { StoreApi } from 'zustand';
|
|
14
15
|
export { Player } from './player.js';
|
|
@@ -4091,8 +4092,8 @@ declare function MarqueeOverlay({ candidateRects, marqueeRect }: MarqueeOverlayP
|
|
|
4091
4092
|
* Only the surface Studio registers against is declared. `getTools` and
|
|
4092
4093
|
* `executeTool` are the consumer side; Studio registers, it does not call.
|
|
4093
4094
|
*
|
|
4094
|
-
* These stay hand-written rather than imported from
|
|
4095
|
-
*
|
|
4095
|
+
* These stay hand-written rather than imported from `webmcp-types`, which
|
|
4096
|
+
* the polyfill pulls in. That package's `registerTool` is overloaded to
|
|
4096
4097
|
* infer argument types from a literal `inputSchema`, which is useful when you
|
|
4097
4098
|
* register one tool inline and actively hostile when you register a uniform
|
|
4098
4099
|
* list of them, as `registerStudioTools` does. Narrower is the safe operation
|
|
@@ -4133,7 +4134,7 @@ interface ModelContextTool {
|
|
|
4133
4134
|
* instead. See `toolResult.ts`.
|
|
4134
4135
|
*
|
|
4135
4136
|
* `options` is optional here although the spec always passes it: the
|
|
4136
|
-
* `@mcp-b/global` polyfill
|
|
4137
|
+
* `@mcp-b/global` polyfill before 6.0 called `execute(input)` with no
|
|
4137
4138
|
* second argument, so a Studio handler must not depend on receiving one.
|
|
4138
4139
|
*/
|
|
4139
4140
|
execute: (input: object, options?: ToolExecuteCallbackOptions) => Promise<unknown>;
|
package/dist/index.html
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
document.documentElement.dataset.theme = "paper";
|
|
15
15
|
}
|
|
16
16
|
</script>
|
|
17
|
-
<script type="module" crossorigin src="/assets/index-
|
|
17
|
+
<script type="module" crossorigin src="/assets/index-Dpo7Q_9-.js"></script>
|
|
18
18
|
<link rel="stylesheet" crossorigin href="/assets/index-CRiuMxyq.css">
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
package/dist/index.js
CHANGED
|
@@ -124,13 +124,8 @@ import {
|
|
|
124
124
|
popupSurface
|
|
125
125
|
} from "./chunk-G6FJSL7X.js";
|
|
126
126
|
import {
|
|
127
|
-
DEFAULT_STUDIO_KEYS
|
|
128
|
-
|
|
129
|
-
comboText,
|
|
130
|
-
formatCombo,
|
|
131
|
-
matchCombo,
|
|
132
|
-
parseCombo
|
|
133
|
-
} from "./chunk-5ZHKYODQ.js";
|
|
127
|
+
DEFAULT_STUDIO_KEYS
|
|
128
|
+
} from "./chunk-USW3YBOG.js";
|
|
134
129
|
import {
|
|
135
130
|
DOM_EDIT_LAYER_OBSERVER_INIT,
|
|
136
131
|
buildDefaultDomEditTextField,
|
|
@@ -248,6 +243,13 @@ import { memo as memo35, useCallback as useCallback78 } from "react";
|
|
|
248
243
|
|
|
249
244
|
// src/player/components/studioShortcuts.ts
|
|
250
245
|
import { useSyncExternalStore } from "react";
|
|
246
|
+
import {
|
|
247
|
+
comboClashKey,
|
|
248
|
+
comboText,
|
|
249
|
+
formatCombo,
|
|
250
|
+
matchCombo,
|
|
251
|
+
parseCombo
|
|
252
|
+
} from "@hyperframes/core/key-combo";
|
|
251
253
|
var SHARED_BY_DESIGN = [
|
|
252
254
|
["pause", "addKeyframe"],
|
|
253
255
|
["seekToIn", "exitRazor"],
|
|
@@ -854,39 +856,8 @@ var flatIdle = `${flatBtn} text-text-2 hover:bg-hover hover:text-text-0 active:b
|
|
|
854
856
|
var flatActive = `${flatBtn} bg-on text-text-0 hover:bg-on-hover active:scale-[0.98]`;
|
|
855
857
|
var flatDisabled = `${flatBtn} text-text-off cursor-not-allowed`;
|
|
856
858
|
|
|
857
|
-
// src/utils/typingTarget.ts
|
|
858
|
-
function isTypingTarget(target) {
|
|
859
|
-
const element = asElement(target);
|
|
860
|
-
if (!element) return false;
|
|
861
|
-
if (element.isContentEditable) return true;
|
|
862
|
-
return element.closest(TYPING_SELECTOR) !== null;
|
|
863
|
-
}
|
|
864
|
-
function ownsPlainKeys(target) {
|
|
865
|
-
return isTypingTarget(target) || asElement(target)?.closest(KEY_OWNING_CONTROLS) != null;
|
|
866
|
-
}
|
|
867
|
-
var KEY_OWNING_CONTROLS = "[role='slider'],video[controls],audio[controls]";
|
|
868
|
-
var TYPING_SELECTOR = [
|
|
869
|
-
"input",
|
|
870
|
-
"textarea",
|
|
871
|
-
"select",
|
|
872
|
-
"[contenteditable]:not([contenteditable='false'])",
|
|
873
|
-
"[role='textbox']",
|
|
874
|
-
"[role='searchbox']",
|
|
875
|
-
"[role='combobox']",
|
|
876
|
-
// A switch is a button in the DOM, but the native checkbox it replaces was an
|
|
877
|
-
// `input` and matched above. Without this row the shared Toggle would let a
|
|
878
|
-
// global shortcut claim Space instead of flipping the control (KTD13).
|
|
879
|
-
"[role='switch']",
|
|
880
|
-
"[role='dialog'][aria-modal='true']",
|
|
881
|
-
".cm-editor"
|
|
882
|
-
].join(",");
|
|
883
|
-
function asElement(target) {
|
|
884
|
-
if (!target || typeof target !== "object") return null;
|
|
885
|
-
const candidate = target;
|
|
886
|
-
return typeof candidate.closest === "function" ? target : null;
|
|
887
|
-
}
|
|
888
|
-
|
|
889
859
|
// src/player/components/ShortcutsPanel.tsx
|
|
860
|
+
import { isTypingTarget } from "@hyperframes/core/typing-target";
|
|
890
861
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
891
862
|
var STAY_ABOVE = { side: "none", align: "shift", fallbackAxisSide: "none" };
|
|
892
863
|
function useShortcutsOpen() {
|
|
@@ -10069,6 +10040,7 @@ async function retryStudioSave(operation, options = {}) {
|
|
|
10069
10040
|
}
|
|
10070
10041
|
|
|
10071
10042
|
// src/utils/studioPendingEdits.ts
|
|
10043
|
+
import { isTypingTarget as isTypingTarget2 } from "@hyperframes/core/typing-target";
|
|
10072
10044
|
var STUDIO_FLUSH_PENDING_EDITS_EVENT = "hf-studio-flush-pending-edits";
|
|
10073
10045
|
var pendingEdits = /* @__PURE__ */ new Map();
|
|
10074
10046
|
var historyClaims = () => 0;
|
|
@@ -10101,7 +10073,7 @@ function inspectDrainFailures(results) {
|
|
|
10101
10073
|
}
|
|
10102
10074
|
function focusedField() {
|
|
10103
10075
|
const active = document.activeElement;
|
|
10104
|
-
return active instanceof HTMLElement &&
|
|
10076
|
+
return active instanceof HTMLElement && isTypingTarget2(active) ? active : null;
|
|
10105
10077
|
}
|
|
10106
10078
|
function hasStudioPendingEdits() {
|
|
10107
10079
|
return pendingEdits.size > 0 || focusedField() !== null;
|
|
@@ -21661,6 +21633,7 @@ import {
|
|
|
21661
21633
|
} from "@hyperframes/core/audio-automation";
|
|
21662
21634
|
|
|
21663
21635
|
// src/utils/studioHelpers.ts
|
|
21636
|
+
import { isTypingTarget as isTypingTarget3 } from "@hyperframes/core/typing-target";
|
|
21664
21637
|
import { encodeUrlPath as encodeUrlPath2 } from "@hyperframes/parsers";
|
|
21665
21638
|
function getTimelineElementLabel(element) {
|
|
21666
21639
|
return element.label || element.id || element.tag;
|
|
@@ -21711,7 +21684,7 @@ function isManualGeometryStyleProperty(property) {
|
|
|
21711
21684
|
return property === "left" || property === "top" || property === "width" || property === "height";
|
|
21712
21685
|
}
|
|
21713
21686
|
function shouldIgnoreHistoryShortcut(target) {
|
|
21714
|
-
return
|
|
21687
|
+
return isTypingTarget3(target);
|
|
21715
21688
|
}
|
|
21716
21689
|
function getHistoryShortcutLabel(action) {
|
|
21717
21690
|
const isMac = typeof navigator !== "undefined" && /Mac|iPhone|iPad|iPod/i.test(navigator.platform);
|
|
@@ -21866,6 +21839,7 @@ async function resolveAssetHasAudio(projectId, assetPath) {
|
|
|
21866
21839
|
}
|
|
21867
21840
|
|
|
21868
21841
|
// src/hooks/useAutomationSelectionKeyboard.ts
|
|
21842
|
+
import { isTypingTarget as isTypingTarget4 } from "@hyperframes/core/typing-target";
|
|
21869
21843
|
function elementKeyOf(element) {
|
|
21870
21844
|
return element.key ?? element.id;
|
|
21871
21845
|
}
|
|
@@ -21965,7 +21939,7 @@ function handleCopy(e, state, lanes, sel) {
|
|
|
21965
21939
|
return true;
|
|
21966
21940
|
}
|
|
21967
21941
|
function automationOwnsKey(e) {
|
|
21968
|
-
if (
|
|
21942
|
+
if (isTypingTarget4(document.activeElement)) return false;
|
|
21969
21943
|
const state = usePlayerStore.getState();
|
|
21970
21944
|
if (matchesKey(e, "copy")) return state.automationSelection !== null;
|
|
21971
21945
|
if (!matchesKey(e, "paste")) return false;
|
|
@@ -21989,7 +21963,7 @@ function useAutomationSelectionKeyboard({
|
|
|
21989
21963
|
}) {
|
|
21990
21964
|
useEffect28(() => {
|
|
21991
21965
|
const handler = (e) => {
|
|
21992
|
-
if (
|
|
21966
|
+
if (isTypingTarget4(document.activeElement)) return;
|
|
21993
21967
|
if (e.defaultPrevented) return;
|
|
21994
21968
|
const state = usePlayerStore.getState();
|
|
21995
21969
|
if (handlePaste(e, state, lanes)) return;
|
|
@@ -29166,33 +29140,13 @@ var useCaptionStore = create6((set, get) => ({
|
|
|
29166
29140
|
}));
|
|
29167
29141
|
|
|
29168
29142
|
// src/player/lib/playbackShortcuts.ts
|
|
29143
|
+
import { shouldIgnorePlaybackShortcutTarget } from "@hyperframes/core/typing-target";
|
|
29169
29144
|
var FRAME_STEP_ACTIONS = [
|
|
29170
29145
|
"frameBack",
|
|
29171
29146
|
"frameForward",
|
|
29172
29147
|
"frameBackTen",
|
|
29173
29148
|
"frameForwardTen"
|
|
29174
29149
|
];
|
|
29175
|
-
var PLAYBACK_SHORTCUT_IGNORED_SELECTOR = [
|
|
29176
|
-
"button",
|
|
29177
|
-
"a[href]",
|
|
29178
|
-
"[role='button']",
|
|
29179
|
-
"[role='checkbox']",
|
|
29180
|
-
"[role='menuitem']",
|
|
29181
|
-
// Base UI's menu radio item is a `<div>`, so `button` above no longer catches it.
|
|
29182
|
-
"[role='menuitemradio']",
|
|
29183
|
-
"[role='radio']",
|
|
29184
|
-
"[role='spinbutton']"
|
|
29185
|
-
].join(",");
|
|
29186
|
-
function shouldIgnorePlaybackShortcutTarget(target) {
|
|
29187
|
-
if (ownsPlainKeys(target)) return true;
|
|
29188
|
-
if (!target || typeof target !== "object") return false;
|
|
29189
|
-
const candidate = target;
|
|
29190
|
-
if (typeof candidate.closest !== "function") return false;
|
|
29191
|
-
return candidate.closest.call(
|
|
29192
|
-
target,
|
|
29193
|
-
PLAYBACK_SHORTCUT_IGNORED_SELECTOR
|
|
29194
|
-
) !== null;
|
|
29195
|
-
}
|
|
29196
29150
|
var MODAL_DIALOG_SELECTOR = "[role=dialog][aria-modal=true]";
|
|
29197
29151
|
function isModalDialogOpen() {
|
|
29198
29152
|
const doc = globalThis.document;
|
|
@@ -37091,7 +37045,11 @@ import { useCallback as useCallback70 } from "react";
|
|
|
37091
37045
|
// src/captions/components/CaptionOverlay.tsx
|
|
37092
37046
|
import { memo as memo27, useEffect as useEffect50, useState as useState49, useCallback as useCallback57, useRef as useRef66 } from "react";
|
|
37093
37047
|
|
|
37048
|
+
// src/utils/timelineDiscovery.ts
|
|
37049
|
+
import { isTypingTarget as isTypingTarget5 } from "@hyperframes/core/typing-target";
|
|
37050
|
+
|
|
37094
37051
|
// src/captions/keyboard.ts
|
|
37052
|
+
import { ownsPlainKeys } from "@hyperframes/core/typing-target";
|
|
37095
37053
|
function resolveCaptionNudge(event, target) {
|
|
37096
37054
|
if (target != null && ownsPlainKeys(target)) return null;
|
|
37097
37055
|
return resolveCanvasNudgeDelta(event);
|
|
@@ -37397,7 +37355,7 @@ var CaptionOverlay = memo27(function CaptionOverlay2({ iframeRef }) {
|
|
|
37397
37355
|
}
|
|
37398
37356
|
return;
|
|
37399
37357
|
}
|
|
37400
|
-
if (matchesKey(e, "captionSelectAll") && !
|
|
37358
|
+
if (matchesKey(e, "captionSelectAll") && !isTypingTarget5(e.target)) {
|
|
37401
37359
|
e.preventDefault();
|
|
37402
37360
|
store.selectAll();
|
|
37403
37361
|
return;
|
|
@@ -42958,6 +42916,7 @@ function createDomEditOverlayGestureHandlers(opts) {
|
|
|
42958
42916
|
|
|
42959
42917
|
// src/components/editor/useDomEditNudge.ts
|
|
42960
42918
|
import { useCallback as useCallback61, useEffect as useEffect54, useRef as useRef70 } from "react";
|
|
42919
|
+
import { ownsPlainKeys as ownsPlainKeys2 } from "@hyperframes/core/typing-target";
|
|
42961
42920
|
function selectionIdentityKey(selection) {
|
|
42962
42921
|
if (!selection) return "";
|
|
42963
42922
|
return [
|
|
@@ -42984,7 +42943,7 @@ function resolveSingleNudgeTarget(sel, rect) {
|
|
|
42984
42943
|
function shouldIgnoreNudgeKey(p, event) {
|
|
42985
42944
|
if (!p.allowCanvasMovement || event.defaultPrevented) return true;
|
|
42986
42945
|
if (p.gestureRef.current || p.groupGestureRef.current || p.blockedMoveRef.current) return true;
|
|
42987
|
-
return
|
|
42946
|
+
return ownsPlainKeys2(event.target);
|
|
42988
42947
|
}
|
|
42989
42948
|
function useDomEditNudge(params) {
|
|
42990
42949
|
const sessionRef = useRef70(null);
|
|
@@ -50909,6 +50868,7 @@ var MotionPathOverlay = memo31(function MotionPathOverlay2({
|
|
|
50909
50868
|
// src/components/editor/SnapToolbar.tsx
|
|
50910
50869
|
import { memo as memo32, useCallback as useCallback69, useEffect as useEffect67, useRef as useRef83, useState as useState62 } from "react";
|
|
50911
50870
|
import { MagnetStraight, GridFour, Path, Ruler, FrameCorners } from "@phosphor-icons/react";
|
|
50871
|
+
import { ownsPlainKeys as ownsPlainKeys3 } from "@hyperframes/core/typing-target";
|
|
50912
50872
|
import { jsx as jsx117, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
50913
50873
|
var SnapToolbar = memo32(function SnapToolbar2() {
|
|
50914
50874
|
const keys = useStudioKeys();
|
|
@@ -50947,7 +50907,7 @@ var SnapToolbar = memo32(function SnapToolbar2() {
|
|
|
50947
50907
|
useEffect67(() => {
|
|
50948
50908
|
const handleKeyDown = (e) => {
|
|
50949
50909
|
if (e.defaultPrevented) return;
|
|
50950
|
-
if (
|
|
50910
|
+
if (ownsPlainKeys3(e.target)) return;
|
|
50951
50911
|
if (e.target instanceof HTMLIFrameElement) return;
|
|
50952
50912
|
if (matchesKey(e, "snap")) {
|
|
50953
50913
|
e.preventDefault();
|
|
@@ -55148,7 +55108,11 @@ function EditorShellBody({
|
|
|
55148
55108
|
);
|
|
55149
55109
|
}
|
|
55150
55110
|
|
|
55111
|
+
// src/index.ts
|
|
55112
|
+
import { formatCombo as formatCombo2, matchCombo as matchCombo2, parseCombo as parseCombo2 } from "@hyperframes/core/key-combo";
|
|
55113
|
+
|
|
55151
55114
|
// src/hooks/linkShortcuts.ts
|
|
55115
|
+
import { isTypingTarget as isTypingTarget6 } from "@hyperframes/core/typing-target";
|
|
55152
55116
|
var ACTIONS = [
|
|
55153
55117
|
["linkToggle", "linkToggle"],
|
|
55154
55118
|
["detachAudio", "detachAudio"],
|
|
@@ -55160,7 +55124,7 @@ var shortcutOf = (event) => {
|
|
|
55160
55124
|
return hit ? keyHint(hit[1]) : null;
|
|
55161
55125
|
};
|
|
55162
55126
|
function dispatchLinkShortcut(event, cb) {
|
|
55163
|
-
if (
|
|
55127
|
+
if (isTypingTarget6(event.target)) return false;
|
|
55164
55128
|
const shortcut = shortcutOf(event);
|
|
55165
55129
|
if (!shortcut) return false;
|
|
55166
55130
|
const { elements, selectedElementId, selectedElementIds } = usePlayerStore.getState();
|
|
@@ -90501,6 +90465,7 @@ function useBlockHandlers({
|
|
|
90501
90465
|
import { useCallback as useCallback159, useEffect as useEffect135, useRef as useRef165 } from "react";
|
|
90502
90466
|
|
|
90503
90467
|
// src/hooks/appHotkeysDispatch.ts
|
|
90468
|
+
import { isTypingTarget as isTypingTarget7, ownsPlainKeys as ownsPlainKeys4 } from "@hyperframes/core/typing-target";
|
|
90504
90469
|
function handleUndoRedoKey(event, onUndo, onRedo) {
|
|
90505
90470
|
const isUndo = matchesKey(event, "undo");
|
|
90506
90471
|
if (!isUndo && !matchesKey(event, "redo") && !matchesKey(event, "redoAlt")) return false;
|
|
@@ -90522,7 +90487,7 @@ function dispatchTabKey(event) {
|
|
|
90522
90487
|
function dispatchGroupKey(event, cb) {
|
|
90523
90488
|
const group = matchesKey(event, "group");
|
|
90524
90489
|
if (!group && !matchesKey(event, "ungroup")) return false;
|
|
90525
|
-
if (
|
|
90490
|
+
if (isTypingTarget7(event.target)) return false;
|
|
90526
90491
|
event.preventDefault();
|
|
90527
90492
|
if (cb.readOnlyPreview) return true;
|
|
90528
90493
|
if (group) cb.onGroupSelection?.();
|
|
@@ -90530,7 +90495,7 @@ function dispatchGroupKey(event, cb) {
|
|
|
90530
90495
|
return true;
|
|
90531
90496
|
}
|
|
90532
90497
|
function dispatchClipboardKey(event, cb) {
|
|
90533
|
-
if (
|
|
90498
|
+
if (isTypingTarget5(event.target)) return false;
|
|
90534
90499
|
const copy = matchesKey(event, "copy");
|
|
90535
90500
|
const paste = matchesKey(event, "paste");
|
|
90536
90501
|
const cut = matchesKey(event, "cut");
|
|
@@ -90584,7 +90549,7 @@ function dispatchModifierKey(event, _key, cb) {
|
|
|
90584
90549
|
return dispatchTabKey(event) || dispatchGroupKey(event, cb) || dispatchClipboardKey(event, cb);
|
|
90585
90550
|
}
|
|
90586
90551
|
function dispatchPlainKey(event, _key, cb) {
|
|
90587
|
-
if (
|
|
90552
|
+
if (ownsPlainKeys4(event.target)) return;
|
|
90588
90553
|
const keys = getStudioKeys();
|
|
90589
90554
|
if (matchesKey(event, "zoomSelection")) {
|
|
90590
90555
|
if (!zoomTimelineToSelectedClips()) return;
|
|
@@ -99527,6 +99492,7 @@ var RenderQueuePanel = memo59(function RenderQueuePanel2() {
|
|
|
99527
99492
|
// src/components/panels/SlideshowPanel.tsx
|
|
99528
99493
|
import { useState as useState161, useEffect as useEffect157, useCallback as useCallback182, useRef as useRef189 } from "react";
|
|
99529
99494
|
import { parseSlideshowManifest } from "@hyperframes/core/slideshow";
|
|
99495
|
+
import { isTypingTarget as isTypingTarget8 } from "@hyperframes/core/typing-target";
|
|
99530
99496
|
|
|
99531
99497
|
// src/components/panels/SlideshowSubPanels.tsx
|
|
99532
99498
|
import { useState as useState160, useCallback as useCallback181, useId as useId5 } from "react";
|
|
@@ -100199,7 +100165,7 @@ function makeSlideshowNotesController() {
|
|
|
100199
100165
|
}
|
|
100200
100166
|
function isPanelUndoKey(e) {
|
|
100201
100167
|
if (!(e.metaKey || e.ctrlKey) || e.shiftKey || e.key.toLowerCase() !== "z") return false;
|
|
100202
|
-
return !
|
|
100168
|
+
return !isTypingTarget8(e.target);
|
|
100203
100169
|
}
|
|
100204
100170
|
function SlideshowPanel({ scenes, onPersist, onPersistNotes }) {
|
|
100205
100171
|
const { editingFile } = useFileManagerContext();
|
|
@@ -102406,11 +102372,12 @@ import {
|
|
|
102406
102372
|
|
|
102407
102373
|
// src/hooks/useKeyframeKeyboard.ts
|
|
102408
102374
|
import { useEffect as useEffect162, useCallback as useCallback193 } from "react";
|
|
102375
|
+
import { isTypingTarget as isTypingTarget9 } from "@hyperframes/core/typing-target";
|
|
102409
102376
|
function useKeyframeKeyboard({ enabled, onAddKeyframe }) {
|
|
102410
102377
|
const handler = useCallback193(
|
|
102411
102378
|
(e) => {
|
|
102412
102379
|
if (!enabled || !onAddKeyframe) return;
|
|
102413
|
-
if (
|
|
102380
|
+
if (isTypingTarget9(document.activeElement)) return;
|
|
102414
102381
|
if (!matchesKey(e, "addKeyframe")) return;
|
|
102415
102382
|
e.preventDefault();
|
|
102416
102383
|
e.stopImmediatePropagation();
|
|
@@ -102666,6 +102633,7 @@ function LinkedSelectionToggle() {
|
|
|
102666
102633
|
}
|
|
102667
102634
|
|
|
102668
102635
|
// src/components/TimelineToolbar.tsx
|
|
102636
|
+
import { isTypingTarget as isTypingTarget10 } from "@hyperframes/core/typing-target";
|
|
102669
102637
|
import { Fragment as Fragment73, jsx as jsx263, jsxs as jsxs209 } from "react/jsx-runtime";
|
|
102670
102638
|
var NO_KEYFRAME_TOGGLE = {
|
|
102671
102639
|
state: "none",
|
|
@@ -102779,7 +102747,7 @@ var TimelineToolbar = memo63(function TimelineToolbar2({
|
|
|
102779
102747
|
useEffect163(() => {
|
|
102780
102748
|
const onKeyDown = (e) => {
|
|
102781
102749
|
if (!matchesKey(e, "timelineSnap")) return;
|
|
102782
|
-
if (
|
|
102750
|
+
if (isTypingTarget10(e.target)) return;
|
|
102783
102751
|
const store = usePlayerStore.getState();
|
|
102784
102752
|
store.setTimelineSnapEnabled(!store.timelineSnapEnabled);
|
|
102785
102753
|
};
|
|
@@ -104789,16 +104757,16 @@ export {
|
|
|
104789
104757
|
fieldText,
|
|
104790
104758
|
findElementBlock,
|
|
104791
104759
|
flushStudioPendingEdits,
|
|
104792
|
-
formatCombo,
|
|
104760
|
+
formatCombo2 as formatCombo,
|
|
104793
104761
|
formatTime,
|
|
104794
104762
|
getPersistedRenderSettings,
|
|
104795
104763
|
getStudioKeys,
|
|
104796
104764
|
liveTime,
|
|
104797
|
-
matchCombo,
|
|
104765
|
+
matchCombo2 as matchCombo,
|
|
104798
104766
|
menuItemBase,
|
|
104799
104767
|
mergeStyleIntoTag,
|
|
104800
104768
|
openAudioGainDialog,
|
|
104801
|
-
parseCombo,
|
|
104769
|
+
parseCombo2 as parseCombo,
|
|
104802
104770
|
parseStyleString,
|
|
104803
104771
|
persistRenderSettings,
|
|
104804
104772
|
playSeamTransitionLoop,
|
package/dist/keys.d.ts
CHANGED
|
@@ -1 +1,72 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Combo, ComboEvent, matchCombo, parseCombo } from '@hyperframes/core/key-combo';
|
|
2
|
+
|
|
3
|
+
/** Every single-character bare key Studio answers, by action. */
|
|
4
|
+
declare const DEFAULT_STUDIO_KEYS: {
|
|
5
|
+
fullscreen: string;
|
|
6
|
+
split: string;
|
|
7
|
+
record: string;
|
|
8
|
+
addKeyframe: string;
|
|
9
|
+
audioGain: string;
|
|
10
|
+
zoomSelection: string;
|
|
11
|
+
mute: string;
|
|
12
|
+
pause: string;
|
|
13
|
+
shuttleBack: string;
|
|
14
|
+
shuttleForward: string;
|
|
15
|
+
inPoint: string;
|
|
16
|
+
outPoint: string;
|
|
17
|
+
seekToIn: string;
|
|
18
|
+
seekToOut: string;
|
|
19
|
+
selectTool: string;
|
|
20
|
+
razorTool: string;
|
|
21
|
+
selectLeftward: string;
|
|
22
|
+
selectRightward: string;
|
|
23
|
+
exitRazor: string;
|
|
24
|
+
snap: string;
|
|
25
|
+
grid: string;
|
|
26
|
+
timelineSnap: string;
|
|
27
|
+
shortcuts: string;
|
|
28
|
+
playPause: string;
|
|
29
|
+
frameBack: string;
|
|
30
|
+
frameForward: string;
|
|
31
|
+
frameBackTen: string;
|
|
32
|
+
frameForwardTen: string;
|
|
33
|
+
loop: string;
|
|
34
|
+
clearInPoint: string;
|
|
35
|
+
clearOutPoint: string;
|
|
36
|
+
undo: string;
|
|
37
|
+
redo: string;
|
|
38
|
+
redoAlt: string;
|
|
39
|
+
tabCompositions: string;
|
|
40
|
+
tabAssets: string;
|
|
41
|
+
group: string;
|
|
42
|
+
ungroup: string;
|
|
43
|
+
copy: string;
|
|
44
|
+
paste: string;
|
|
45
|
+
cut: string;
|
|
46
|
+
duplicate: string;
|
|
47
|
+
linkToggle: string;
|
|
48
|
+
detachAudio: string;
|
|
49
|
+
deleteLinked: string;
|
|
50
|
+
deleteLinkedAlt: string;
|
|
51
|
+
deleteSelected: string;
|
|
52
|
+
deleteSelectedAlt: string;
|
|
53
|
+
resetKeyframes: string;
|
|
54
|
+
nudgeLeft: string;
|
|
55
|
+
nudgeRight: string;
|
|
56
|
+
nudgeUp: string;
|
|
57
|
+
nudgeDown: string;
|
|
58
|
+
nudgeLeftTen: string;
|
|
59
|
+
nudgeRightTen: string;
|
|
60
|
+
nudgeUpTen: string;
|
|
61
|
+
nudgeDownTen: string;
|
|
62
|
+
captionSelectAll: string;
|
|
63
|
+
pickupClip: string;
|
|
64
|
+
pickupUp: string;
|
|
65
|
+
pickupDown: string;
|
|
66
|
+
pickupDrop: string;
|
|
67
|
+
cancel: string;
|
|
68
|
+
};
|
|
69
|
+
type StudioKeyAction = keyof typeof DEFAULT_STUDIO_KEYS;
|
|
70
|
+
type StudioKeys = Readonly<Record<StudioKeyAction, string>>;
|
|
71
|
+
|
|
72
|
+
export { DEFAULT_STUDIO_KEYS, type StudioKeyAction, type StudioKeys };
|
package/dist/keys.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
DEFAULT_STUDIO_KEYS
|
|
3
|
-
|
|
4
|
-
parseCombo
|
|
5
|
-
} from "./chunk-5ZHKYODQ.js";
|
|
2
|
+
DEFAULT_STUDIO_KEYS
|
|
3
|
+
} from "./chunk-USW3YBOG.js";
|
|
6
4
|
import "./chunk-MLKGABMK.js";
|
|
5
|
+
|
|
6
|
+
// src/keys.ts
|
|
7
|
+
import { matchCombo, parseCombo } from "@hyperframes/core/key-combo";
|
|
7
8
|
export {
|
|
8
9
|
DEFAULT_STUDIO_KEYS,
|
|
9
10
|
matchCombo,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/studio",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.53",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@codemirror/state": "^6.6.0",
|
|
57
57
|
"@codemirror/view": "6.40.0",
|
|
58
58
|
"@lezer/highlight": "^1.2.3",
|
|
59
|
-
"@mcp-b/global": "^
|
|
59
|
+
"@mcp-b/global": "^6.1.0",
|
|
60
60
|
"@phosphor-icons/react": "^2.1.10",
|
|
61
61
|
"@tanstack/react-virtual": "^3.14.13",
|
|
62
62
|
"acorn": "^8.17.0",
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"dockview-react": "8.3.1",
|
|
65
65
|
"gsap": "^3.13.0",
|
|
66
66
|
"mediabunny": "^1.66.0",
|
|
67
|
-
"@hyperframes/core": "0.9.
|
|
68
|
-
"@hyperframes/parsers": "0.9.
|
|
69
|
-
"@hyperframes/player": "0.9.
|
|
70
|
-
"@hyperframes/sdk": "0.9.
|
|
71
|
-
"@hyperframes/shader-transitions": "0.9.
|
|
72
|
-
"@hyperframes/studio-server": "0.9.
|
|
67
|
+
"@hyperframes/core": "0.9.53",
|
|
68
|
+
"@hyperframes/parsers": "0.9.53",
|
|
69
|
+
"@hyperframes/player": "0.9.53",
|
|
70
|
+
"@hyperframes/sdk": "0.9.53",
|
|
71
|
+
"@hyperframes/shader-transitions": "0.9.53",
|
|
72
|
+
"@hyperframes/studio-server": "0.9.53"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@tailwindcss/vite": "^4.3.3",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"vite": "^6.4.5",
|
|
87
87
|
"vitest": "^4.1.12",
|
|
88
88
|
"zustand": "^5.0.0",
|
|
89
|
-
"@hyperframes/producer": "0.9.
|
|
89
|
+
"@hyperframes/producer": "0.9.53"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"react": "19",
|
package/src/captions/keyboard.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isEditableTarget } from "../utils/timelineDiscovery";
|
|
2
|
-
import { ownsPlainKeys } from "
|
|
2
|
+
import { ownsPlainKeys } from "@hyperframes/core/typing-target";
|
|
3
3
|
import { resolveCanvasNudgeDelta } from "../components/editor/domEditNudge";
|
|
4
4
|
|
|
5
5
|
type CaptionNudgeKeyEvent = Parameters<typeof resolveCanvasNudgeDelta>[0];
|
|
@@ -8,7 +8,7 @@ import React, { act } from "react";
|
|
|
8
8
|
import { createRoot, type Root } from "react-dom/client";
|
|
9
9
|
import { afterEach, expect, it, vi } from "vitest";
|
|
10
10
|
import { RightPanelTabs, type RightPanelTabDescriptor } from "./RightPanelTabs";
|
|
11
|
-
import { isTypingTarget } from "
|
|
11
|
+
import { isTypingTarget } from "@hyperframes/core/typing-target";
|
|
12
12
|
import { shouldIgnorePlaybackShortcutTarget } from "../player/lib/playbackShortcuts";
|
|
13
13
|
|
|
14
14
|
(globalThis as unknown as { IS_REACT_ACT_ENVIRONMENT: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
|
|
@@ -8,7 +8,7 @@ import React, { act } from "react";
|
|
|
8
8
|
import { createRoot, type Root } from "react-dom/client";
|
|
9
9
|
import { afterEach, beforeEach, expect, it, vi } from "vitest";
|
|
10
10
|
import { buttonSizes, buttonVariants } from "./ui";
|
|
11
|
-
import { isTypingTarget } from "
|
|
11
|
+
import { isTypingTarget } from "@hyperframes/core/typing-target";
|
|
12
12
|
import { shouldIgnorePlaybackShortcutTarget } from "../player/lib/playbackShortcuts";
|
|
13
13
|
|
|
14
14
|
(globalThis as unknown as { IS_REACT_ACT_ENVIRONMENT: boolean }).IS_REACT_ACT_ENVIRONMENT = true;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { act } from "react";
|
|
4
4
|
import { afterEach, beforeEach, expect, it, vi } from "vitest";
|
|
5
5
|
import { cleanupMounted, mountHost } from "./ui/mountHost.testHelpers";
|
|
6
|
-
import { isTypingTarget } from "
|
|
6
|
+
import { isTypingTarget } from "@hyperframes/core/typing-target";
|
|
7
7
|
import { shouldIgnorePlaybackShortcutTarget } from "../player/lib/playbackShortcuts";
|
|
8
8
|
|
|
9
9
|
const editHistory = {
|