@hyperframes/studio 0.9.38 → 0.9.40
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/{codec-Dz2VdhdD.js → codec-BPK_2CLL.js} +1 -1
- package/dist/assets/{hyperframes-player-BkaWdGLq.js → hyperframes-player-D7qTTDIp.js} +1 -1
- package/dist/assets/{index-BJTCbv8z.css → index-4VGEAZyf.css} +1 -1
- package/dist/assets/{index-DsNxqAwr.js → index-CdA00Ybn.js} +145 -145
- package/dist/assets/{index-DONaC7VF.js → index-QS-DuxAU.js} +1 -1
- package/dist/assets/{pausedVideoDecoder-BGN2jKrN.js → pausedVideoDecoder-Byzz98Gb.js} +1 -1
- package/dist/{chunk-63DH4LRB.js → chunk-AV2PV7NE.js} +15 -68
- package/dist/chunk-FQ3VRKMC.js +148 -0
- package/dist/{chunk-YKBN653R.js → chunk-KF6YVXJP.js} +258 -1
- package/dist/{chunk-45KKBU63.js → chunk-VZ5MD32A.js} +1 -1
- package/dist/{domEditingLayers-7Q56QAU5.js → domEditingLayers-4KRREI5C.js} +2 -2
- package/dist/index.d.ts +3 -85
- package/dist/index.html +2 -2
- package/dist/index.js +321 -341
- package/dist/keys-CaWcxUST.d.ts +86 -0
- package/dist/keys.d.ts +1 -0
- package/dist/keys.js +11 -0
- package/dist/player.js +2 -2
- package/dist/styles.css +1 -1
- package/package.json +12 -8
- package/src/components/editor/DomEditGestureReadout.test.tsx +204 -20
- package/src/components/editor/DomEditGestureReadout.tsx +36 -18
- package/src/components/editor/InlineTextToolbar.tsx +2 -2
- package/src/components/editor/domEditGestureReadoutPlacement.ts +144 -0
- package/src/components/editor/domEditGestureReadoutState.ts +18 -8
- package/src/components/editor/domEditingDom.ts +23 -104
- package/src/components/editor/useDomEditCompositionRect.ts +13 -4
- package/src/components/editor/useDomEditOverlayGestures.ts +1 -1
- package/src/components/editor/usePreviewCompositionRect.test.tsx +39 -0
- package/src/hooks/elementPickerStyles.ts +53 -0
- package/src/hooks/useElementPicker.test.ts +83 -3
- package/src/hooks/useElementPicker.ts +27 -66
- package/src/keys.test.ts +53 -0
- package/src/keys.ts +11 -0
- package/src/player/components/Player.tsx +2 -0
- package/src/player/components/studioKeyDefaults.ts +68 -0
- package/src/player/components/studioShortcuts.ts +2 -67
- package/src/player/hooks/playbackAdapterResolution.ts +15 -0
- package/src/player/hooks/previewMessageRouter.manifest.test.ts +67 -0
- package/src/player/hooks/previewMessageRouter.ts +38 -8
- package/src/player/hooks/timelinePlayerTestHarness.ts +26 -1
- package/src/player/hooks/useShadowPreviewReload.ts +4 -1
- package/src/player/hooks/useTimelinePlayer.ts +5 -9
- package/src/player/lib/bridgePlayback.ts +156 -0
- package/src/player/lib/previewChannel.test.ts +260 -0
- package/src/player/lib/previewChannel.ts +115 -0
- package/src/player/lib/previewElements.test.ts +167 -0
- package/src/player/lib/previewElements.ts +117 -0
- package/src/player/sceneSwap.test.ts +12 -0
- package/src/player/sceneSwap.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import { GsapAnimation, ParsedGsap, PropertyGroupName } from '@hyperframes/core/
|
|
|
6
6
|
import { GsapAnimation as GsapAnimation$1, ArcPathSegment } from '@hyperframes/parsers/gsap-parser';
|
|
7
7
|
import { Composition } from '@hyperframes/sdk';
|
|
8
8
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
|
+
import { S as StudioKeys, a as StudioKeyAction } from './keys-CaWcxUST.js';
|
|
10
|
+
export { C as Combo, D as DEFAULT_STUDIO_KEYS, f as formatCombo, m as matchCombo, p as parseCombo } from './keys-CaWcxUST.js';
|
|
9
11
|
import * as zustand from 'zustand';
|
|
10
12
|
import { StoreApi } from 'zustand';
|
|
11
13
|
export { Player } from './player.js';
|
|
@@ -23,90 +25,6 @@ import '@base-ui/react/context-menu';
|
|
|
23
25
|
import '@base-ui/react/menu';
|
|
24
26
|
import '@base-ui/react/popover';
|
|
25
27
|
|
|
26
|
-
interface Combo {
|
|
27
|
-
mod: boolean;
|
|
28
|
-
meta: boolean;
|
|
29
|
-
ctrl: boolean;
|
|
30
|
-
shift: boolean;
|
|
31
|
-
alt: boolean;
|
|
32
|
-
key: string;
|
|
33
|
-
named: boolean;
|
|
34
|
-
}
|
|
35
|
-
/** "mod+shift+z", "Space", "b": mod is Cmd or Ctrl; Ctrl+Alt is refused because Windows sends AltGr as Ctrl+Alt. */
|
|
36
|
-
declare function parseCombo(text: string): Combo | null;
|
|
37
|
-
type ComboEvent = Pick<KeyboardEvent, "key" | "altKey" | "ctrlKey" | "metaKey" | "shiftKey"> & {
|
|
38
|
-
code?: string;
|
|
39
|
-
};
|
|
40
|
-
declare function matchCombo(e: ComboEvent, c: Combo): boolean;
|
|
41
|
-
declare function formatCombo(c: Combo): string;
|
|
42
|
-
|
|
43
|
-
/** Every single-character bare key Studio answers, by action. */
|
|
44
|
-
declare const DEFAULT_STUDIO_KEYS: {
|
|
45
|
-
fullscreen: string;
|
|
46
|
-
split: string;
|
|
47
|
-
record: string;
|
|
48
|
-
addKeyframe: string;
|
|
49
|
-
audioGain: string;
|
|
50
|
-
zoomSelection: string;
|
|
51
|
-
mute: string;
|
|
52
|
-
pause: string;
|
|
53
|
-
shuttleBack: string;
|
|
54
|
-
shuttleForward: string;
|
|
55
|
-
inPoint: string;
|
|
56
|
-
outPoint: string;
|
|
57
|
-
seekToIn: string;
|
|
58
|
-
seekToOut: string;
|
|
59
|
-
selectTool: string;
|
|
60
|
-
razorTool: string;
|
|
61
|
-
selectLeftward: string;
|
|
62
|
-
selectRightward: string;
|
|
63
|
-
exitRazor: string;
|
|
64
|
-
snap: string;
|
|
65
|
-
grid: string;
|
|
66
|
-
timelineSnap: string;
|
|
67
|
-
playPause: string;
|
|
68
|
-
frameBack: string;
|
|
69
|
-
frameForward: string;
|
|
70
|
-
frameBackTen: string;
|
|
71
|
-
frameForwardTen: string;
|
|
72
|
-
loop: string;
|
|
73
|
-
clearInPoint: string;
|
|
74
|
-
clearOutPoint: string;
|
|
75
|
-
undo: string;
|
|
76
|
-
redo: string;
|
|
77
|
-
redoAlt: string;
|
|
78
|
-
tabCompositions: string;
|
|
79
|
-
tabAssets: string;
|
|
80
|
-
group: string;
|
|
81
|
-
ungroup: string;
|
|
82
|
-
copy: string;
|
|
83
|
-
paste: string;
|
|
84
|
-
cut: string;
|
|
85
|
-
duplicate: string;
|
|
86
|
-
linkToggle: string;
|
|
87
|
-
detachAudio: string;
|
|
88
|
-
deleteLinked: string;
|
|
89
|
-
deleteLinkedAlt: string;
|
|
90
|
-
deleteSelected: string;
|
|
91
|
-
deleteSelectedAlt: string;
|
|
92
|
-
resetKeyframes: string;
|
|
93
|
-
nudgeLeft: string;
|
|
94
|
-
nudgeRight: string;
|
|
95
|
-
nudgeUp: string;
|
|
96
|
-
nudgeDown: string;
|
|
97
|
-
nudgeLeftTen: string;
|
|
98
|
-
nudgeRightTen: string;
|
|
99
|
-
nudgeUpTen: string;
|
|
100
|
-
nudgeDownTen: string;
|
|
101
|
-
captionSelectAll: string;
|
|
102
|
-
pickupClip: string;
|
|
103
|
-
pickupUp: string;
|
|
104
|
-
pickupDown: string;
|
|
105
|
-
pickupDrop: string;
|
|
106
|
-
cancel: string;
|
|
107
|
-
};
|
|
108
|
-
type StudioKeyAction = keyof typeof DEFAULT_STUDIO_KEYS;
|
|
109
|
-
type StudioKeys = Readonly<Record<StudioKeyAction, string>>;
|
|
110
28
|
declare function studioKeyClash(action: StudioKeyAction, text: string, keys?: StudioKeys): StudioKeyAction | null;
|
|
111
29
|
/** Replaces the host key map; a bad map is refused whole. null restores the defaults. */
|
|
112
30
|
declare function setStudioKeys(overrides: Partial<Record<StudioKeyAction, string>> | null): void;
|
|
@@ -4480,4 +4398,4 @@ declare function buildStudioTools(depsRef: {
|
|
|
4480
4398
|
readonly current: StudioAgentToolsDeps;
|
|
4481
4399
|
}): ModelContextTool[];
|
|
4482
4400
|
|
|
4483
|
-
export { type AgentModalAnchorPoint, type AgentPromptElementInfo, AskAgentModal, type AskAgentModalProps, AudioMeterStrip, type AudioMeterStripProps, AudioWaveform, type AudioWaveformProps, type BlockedTimelineEditIntent, type CanEditTimelineElement, ColorField,
|
|
4401
|
+
export { type AgentModalAnchorPoint, type AgentPromptElementInfo, AskAgentModal, type AskAgentModalProps, AudioMeterStrip, type AudioMeterStripProps, AudioWaveform, type AudioWaveformProps, type BlockedTimelineEditIntent, type CanEditTimelineElement, ColorField, CompositionBreadcrumb, type CompositionDimensions, type CompositionLevel, CompositionThumbnail, ConnectedDomEditOverlay, type ConnectedDomEditOverlayProps, DEFAULT_SHORTCUT_SECTIONS, Dock, type DockController, type DomEditCapabilities, type DomEditCommitDeclineReason, type DomEditCommitOutcome, type DomEditGroupPathOffsetCommit, DomEditOverlay, type DomEditOverlayProps, DomEditProvider, type DomEditSelection, type DomEditZOrder, type DomGeometryCommits, type EditHistoryHandle, EditorShell, type EditorShellProps, type ExternalFileChangeBlockedState, type ExternalFileChangeCoordinatorHandle, ExternalFileConflictBanner, type FadeEdge, type FadeHandleBox, type FadeHandleClipBox, type FfmpegStatus, FileTree, GradientField, GridOverlay, ImageThumbnail, type ImageThumbnailProps, LayersPanel, type LayersPanelHost, type LinkShortcutCallbacks, type MarqueeBand, type MarqueeGestures, type MarqueeGesturesDeps, MarqueeOverlay, type MarqueeOverlayProps, type Rect$1 as MarqueeRect, type MarqueeSelectionMode, type ModelContextTool, NLEPreview, type PanelId, type PatchOperation, type PersistedRenderSettings, type PickedElement, type PlaybackHealth, PlayerControls, type PlayerHandle, type PlayerHandleElement, type PlayerHandleListener, type PlayerHandleTimeListener, type DomEditCompositionRect as PreviewCompositionRect, type PreviewCopies, type PreviewFacts, PreviewGuides, PreviewOverlayProvider, type PreviewOverlayProviderProps, type PreviewPromotion, type PreviewQualityChosenBy, PreviewReadOnlyProvider, type PreviewSnapPreferences, PropertyPanel, type RenderJob, RenderQueue, type RenderQueueProps, type ResolutionPreset, SNAP_THRESHOLD_PX, type ShortcutHint, type ShortcutSection, ShortcutsButton, type ShortcutsButtonProps, type SnapContext, type SnapEdge, type SnapGuide, SnapGuideOverlay, type SnapGuideOverlayProps, type SnapGuidesState, type Rect as SnapRect, type SnapResult, type SnapTarget, SnapToolbar, SourceEditor, type SpacingGuide, type StartRenderOptions, type StudioAgentToolsDeps, StudioApp, StudioFileConflictError, StudioKeyAction, StudioKeys, type StudioLookSnapshot, type StudioPendingEditsDrainResult, TRACK_H, type ThumbnailPriority, type ThumbnailStill, Timeline, TimelineClipMenu, type TimelineClipMenuItem, type TimelineClipRenderContext, type TimelineEditCallbacks, type TimelineEditOutcome, type TimelineEditPermission, TimelineEditPopover, TimelineEditProvider, type TimelineElement, TimelineEmptyStatePart, TimelineFrame, TimelineGapMenu, TimelineHistoryButtons, type TimelineHistoryButtonsProps, TimelineKeyframeMenu, TimelineLanes, TimelineOverlays, TimelinePane, type TimelinePaneProps, TimelinePlayhead, TimelineProvider, TimelineRazorGuide, TimelineRuler, TimelineShortcutHint, type TimelineTheme, type TimelineTimeRange$1 as TimelineTimeRange, TimelineToolbar, type TimelineToolbarProps, type TimelineTrackPadding, type TimelineZIndexReorderCommit, type ToolResult, type UseClipboardOptions, type UseDomEditSessionParams, type UseDomGeometryCommitOptions, type UseDomStyleCommitOptions, type UseEditHistoryActionsOptions, type UsePersistentEditHistoryOptions, type UsePreviewPersistenceParams, type UseProjectFileWriterOptions, type UseRenderClipContentOptions, type UseThumbnailStillOptions, type UseTimelineEditingOptions, VideoThumbnail, type ZOrderAction, announcePreviewDocumentLoaded, applyPatch, buildCompositionSnapTarget, buildGridSnapEdges, buildPickerAgentContextPreview, buildPickerAgentPrompt, buildShortcutSections, buildStudioTools, cancelNewestStudioWaitingPress, collectSnapContext, collectStudioLookScene, currentTimelineRange, dispatchLinkShortcut, displayTrackOrder, extractSnapTargets, fadeHandleBoxes, findElementBlock, flushStudioPendingEdits, formatTime, getPersistedRenderSettings, getStudioKeys, liveTime, mergeStyleIntoTag, openAudioGainDialog, parseStyleString, persistRenderSettings, resolveDomEditSelection, resolveEquidistanceGuides, resolveGuideLineRect, resolveIframe, resolveMarqueeMode, resolveSnapAdjustment, resolveSourceFile, revertNewestStudioPendingEdit, setStudioKeys, snapEngagedForTravel, studioKeyClash, useAudioGainDialogStore, useAudioMetersVisible, useClipboard, useCompositionStack, useDockLayoutStore, useDomEditSelectionContext, useDomEditSession, useDomEditZOrder, useDomGeometryCommit, useDomStyleCommit, useEditHistoryActions, useElementPicker, useLivePreviewIframe, useMarqueeGestures, usePersistentEditHistory, usePlayerHandle, usePlayerStore, usePreviewCompositionRect, usePreviewGuidesStore, usePreviewIframeStore, usePreviewOverlayContext, usePreviewPersistence, useProjectFileWriter, useRenderClipContent, useRenderQueue, useStudioKeys, useThumbnailStill, useTimelineContext, useTimelineEditing, useTimelinePlayer, zoomTimelineToRange };
|
package/dist/index.html
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
document.documentElement.dataset.theme = "paper";
|
|
15
15
|
}
|
|
16
16
|
</script>
|
|
17
|
-
<script type="module" crossorigin src="/assets/index-
|
|
18
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
17
|
+
<script type="module" crossorigin src="/assets/index-CdA00Ybn.js"></script>
|
|
18
|
+
<link rel="stylesheet" crossorigin href="/assets/index-4VGEAZyf.css">
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
|
21
21
|
<div data-hf-id="hf-aph5" id="root"></div>
|