@hyperframes/studio 0.9.37 → 0.9.39

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.
Files changed (65) hide show
  1. package/dist/assets/{codec-BP7F-7Jx.js → codec-CY6KnWXa.js} +1 -1
  2. package/dist/assets/{hyperframes-player-_QnPoHup.js → hyperframes-player-B9-CuG_h.js} +1 -1
  3. package/dist/assets/{index-BJTCbv8z.css → index-4VGEAZyf.css} +1 -1
  4. package/dist/assets/{index-D6ePWUpc.js → index-Bjz2UaYv.js} +1 -1
  5. package/dist/assets/{index-tjhfci4N.js → index-_pkzoYYF.js} +166 -166
  6. package/dist/assets/{pausedVideoDecoder-B7U86zDa.js → pausedVideoDecoder-Dr7nKUUu.js} +1 -1
  7. package/dist/{chunk-63DH4LRB.js → chunk-44VRMER6.js} +2 -11
  8. package/dist/{chunk-45KKBU63.js → chunk-ATDO3YLX.js} +1 -1
  9. package/dist/chunk-FQ3VRKMC.js +148 -0
  10. package/dist/{chunk-YKBN653R.js → chunk-NBULUIWH.js} +252 -1
  11. package/dist/{domEditingLayers-7Q56QAU5.js → domEditingLayers-FRVHP6IB.js} +2 -2
  12. package/dist/index.d.ts +3 -85
  13. package/dist/index.html +2 -2
  14. package/dist/index.js +379 -400
  15. package/dist/keys-CaWcxUST.d.ts +86 -0
  16. package/dist/keys.d.ts +1 -0
  17. package/dist/keys.js +11 -0
  18. package/dist/player.js +2 -2
  19. package/dist/styles.css +1 -1
  20. package/package.json +12 -8
  21. package/src/components/editor/DomEditGestureReadout.test.tsx +204 -20
  22. package/src/components/editor/DomEditGestureReadout.tsx +36 -18
  23. package/src/components/editor/InlineTextToolbar.tsx +2 -2
  24. package/src/components/editor/domEditGestureReadoutPlacement.ts +144 -0
  25. package/src/components/editor/domEditGestureReadoutState.ts +18 -8
  26. package/src/components/editor/domEditingDom.ts +2 -15
  27. package/src/components/editor/propertyPanelFlatMediaSection.test.tsx +7 -36
  28. package/src/components/editor/propertyPanelFlatMediaSection.tsx +9 -32
  29. package/src/components/editor/useDomEditCompositionRect.ts +13 -4
  30. package/src/components/editor/useDomEditOverlayGestures.ts +1 -1
  31. package/src/components/editor/usePreviewCompositionRect.test.tsx +39 -0
  32. package/src/components/editor/useVolumeAutomation.test.tsx +0 -69
  33. package/src/components/editor/useVolumeAutomation.ts +0 -4
  34. package/src/hooks/elementPickerStyles.ts +53 -0
  35. package/src/hooks/gsapScriptCommitTypes.ts +2 -6
  36. package/src/hooks/timelineEditingHelpers.test.ts +39 -0
  37. package/src/hooks/timelineEditingHelpers.ts +13 -0
  38. package/src/hooks/useDomEditCommits.ts +4 -9
  39. package/src/hooks/useDomEditPersist.ts +2 -12
  40. package/src/hooks/useElementPicker.test.ts +83 -3
  41. package/src/hooks/useElementPicker.ts +27 -66
  42. package/src/hooks/useGsapScriptCommits.test.tsx +21 -0
  43. package/src/hooks/useGsapScriptCommits.ts +7 -3
  44. package/src/keys.test.ts +53 -0
  45. package/src/keys.ts +11 -0
  46. package/src/player/components/Player.test.ts +15 -0
  47. package/src/player/components/Player.tsx +6 -4
  48. package/src/player/components/audioGainApply.test.ts +13 -0
  49. package/src/player/components/audioGainApply.ts +0 -3
  50. package/src/player/components/studioKeyDefaults.ts +68 -0
  51. package/src/player/components/studioShortcuts.ts +2 -67
  52. package/src/player/hooks/playbackAdapterResolution.ts +15 -0
  53. package/src/player/hooks/previewMessageRouter.manifest.test.ts +67 -0
  54. package/src/player/hooks/previewMessageRouter.ts +38 -8
  55. package/src/player/hooks/timelinePlayerTestHarness.ts +27 -1
  56. package/src/player/hooks/useShadowPreviewReload.ts +24 -6
  57. package/src/player/hooks/useTimelinePlayer.shadowReload.test.ts +46 -0
  58. package/src/player/hooks/useTimelinePlayer.ts +5 -9
  59. package/src/player/lib/bridgePlayback.ts +156 -0
  60. package/src/player/lib/previewChannel.test.ts +260 -0
  61. package/src/player/lib/previewChannel.ts +100 -0
  62. package/src/player/sceneSwap.test.ts +12 -0
  63. package/src/player/sceneSwap.ts +2 -0
  64. package/src/utils/studioFileHistory.test.ts +29 -1
  65. package/src/utils/studioFileHistory.ts +24 -1
@@ -0,0 +1,86 @@
1
+ interface Combo {
2
+ mod: boolean;
3
+ meta: boolean;
4
+ ctrl: boolean;
5
+ shift: boolean;
6
+ alt: boolean;
7
+ key: string;
8
+ named: boolean;
9
+ }
10
+ /** "mod+shift+z", "Space", "b": mod is Cmd or Ctrl; Ctrl+Alt is refused because Windows sends AltGr as Ctrl+Alt. */
11
+ declare function parseCombo(text: string): Combo | null;
12
+ type ComboEvent = Pick<KeyboardEvent, "key" | "altKey" | "ctrlKey" | "metaKey" | "shiftKey"> & {
13
+ code?: string;
14
+ };
15
+ declare function matchCombo(e: ComboEvent, c: Combo): boolean;
16
+ declare function formatCombo(c: Combo): string;
17
+
18
+ /** Every single-character bare key Studio answers, by action. */
19
+ declare const DEFAULT_STUDIO_KEYS: {
20
+ fullscreen: string;
21
+ split: string;
22
+ record: string;
23
+ addKeyframe: string;
24
+ audioGain: string;
25
+ zoomSelection: string;
26
+ mute: string;
27
+ pause: string;
28
+ shuttleBack: string;
29
+ shuttleForward: string;
30
+ inPoint: string;
31
+ outPoint: string;
32
+ seekToIn: string;
33
+ seekToOut: string;
34
+ selectTool: string;
35
+ razorTool: string;
36
+ selectLeftward: string;
37
+ selectRightward: string;
38
+ exitRazor: string;
39
+ snap: string;
40
+ grid: string;
41
+ timelineSnap: string;
42
+ playPause: string;
43
+ frameBack: string;
44
+ frameForward: string;
45
+ frameBackTen: string;
46
+ frameForwardTen: string;
47
+ loop: string;
48
+ clearInPoint: string;
49
+ clearOutPoint: string;
50
+ undo: string;
51
+ redo: string;
52
+ redoAlt: string;
53
+ tabCompositions: string;
54
+ tabAssets: string;
55
+ group: string;
56
+ ungroup: string;
57
+ copy: string;
58
+ paste: string;
59
+ cut: string;
60
+ duplicate: string;
61
+ linkToggle: string;
62
+ detachAudio: string;
63
+ deleteLinked: string;
64
+ deleteLinkedAlt: string;
65
+ deleteSelected: string;
66
+ deleteSelectedAlt: string;
67
+ resetKeyframes: string;
68
+ nudgeLeft: string;
69
+ nudgeRight: string;
70
+ nudgeUp: string;
71
+ nudgeDown: string;
72
+ nudgeLeftTen: string;
73
+ nudgeRightTen: string;
74
+ nudgeUpTen: string;
75
+ nudgeDownTen: string;
76
+ captionSelectAll: string;
77
+ pickupClip: string;
78
+ pickupUp: string;
79
+ pickupDown: string;
80
+ pickupDrop: string;
81
+ cancel: string;
82
+ };
83
+ type StudioKeyAction = keyof typeof DEFAULT_STUDIO_KEYS;
84
+ type StudioKeys = Readonly<Record<StudioKeyAction, string>>;
85
+
86
+ export { type Combo as C, DEFAULT_STUDIO_KEYS as D, type StudioKeys as S, type StudioKeyAction as a, type ComboEvent as b, formatCombo as f, matchCombo as m, parseCombo as p };
package/dist/keys.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { C as Combo, b as ComboEvent, D as DEFAULT_STUDIO_KEYS, a as StudioKeyAction, S as StudioKeys, m as matchCombo, p as parseCombo } from './keys-CaWcxUST.js';
package/dist/keys.js ADDED
@@ -0,0 +1,11 @@
1
+ import {
2
+ DEFAULT_STUDIO_KEYS,
3
+ matchCombo,
4
+ parseCombo
5
+ } from "./chunk-FQ3VRKMC.js";
6
+ import "./chunk-MLKGABMK.js";
7
+ export {
8
+ DEFAULT_STUDIO_KEYS,
9
+ matchCombo,
10
+ parseCombo
11
+ };
package/dist/player.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Player
3
- } from "./chunk-YKBN653R.js";
3
+ } from "./chunk-NBULUIWH.js";
4
4
  import "./chunk-52AJB4PN.js";
5
- import "./chunk-63DH4LRB.js";
5
+ import "./chunk-44VRMER6.js";
6
6
  import "./chunk-MLKGABMK.js";
7
7
  export {
8
8
  Player