@hyperframes/studio 0.7.81 → 0.7.83

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 (41) hide show
  1. package/dist/assets/{hyperframes-player-B32VouCm.js → hyperframes-player-DSRuJMfh.js} +1 -1
  2. package/dist/assets/{index-DCTAKfpa.js → index-BrWVfpCQ.js} +1 -1
  3. package/dist/assets/{index-B5u2_pSh.js → index-DRtvHA1J.js} +150 -150
  4. package/dist/assets/{index-HeUw0EKI.js → index-YZR6OfQ5.js} +1 -1
  5. package/dist/index.html +1 -1
  6. package/dist/index.js +3057 -3101
  7. package/dist/index.js.map +1 -1
  8. package/package.json +7 -7
  9. package/src/App.tsx +2 -5
  10. package/src/components/StudioHeader.tsx +3 -18
  11. package/src/components/StudioRightPanel.tsx +14 -22
  12. package/src/components/TimelineToolbar.tsx +120 -132
  13. package/src/components/editor/EaseCurveSection.tsx +9 -90
  14. package/src/components/editor/EaseModeControls.tsx +110 -0
  15. package/src/components/editor/PropertyPanel.test.tsx +2 -3
  16. package/src/components/editor/PropertyPanel.tsx +7 -12
  17. package/src/components/editor/PropertyPanelFlat.tsx +0 -2
  18. package/src/components/editor/floatingPanel.test.ts +20 -1
  19. package/src/components/editor/floatingPanel.ts +15 -0
  20. package/src/components/editor/manualEditingAvailability.test.ts +13 -40
  21. package/src/components/editor/manualEditingAvailability.ts +0 -41
  22. package/src/components/editor/propertyPanel3dTransform.tsx +1 -2
  23. package/src/components/editor/propertyPanelFlatLayoutSection.tsx +1 -2
  24. package/src/components/nle/PreviewOverlays.tsx +8 -20
  25. package/src/components/renders/RenderQueue.test.tsx +62 -0
  26. package/src/components/renders/RenderQueue.tsx +60 -38
  27. package/src/components/renders/useRenderQueue.ts +5 -11
  28. package/src/components/sidebar/LeftSidebar.tsx +15 -22
  29. package/src/components/ui/Tooltip.tsx +25 -7
  30. package/src/hooks/useAppHotkeys.ts +1 -2
  31. package/src/hooks/useDomEditPreviewSync.ts +1 -2
  32. package/src/hooks/useDomEditWiring.ts +2 -3
  33. package/src/hooks/useDomSelection.ts +0 -27
  34. package/src/hooks/usePreviewInteraction.ts +2 -3
  35. package/src/hooks/useStudioContextValue.ts +3 -7
  36. package/src/player/components/Timeline.tsx +1 -2
  37. package/src/player/components/TimelineLanes.tsx +33 -35
  38. package/src/player/components/useAutoExpandKeyframedClips.ts +0 -2
  39. package/src/player/components/useTimelineTrackLayout.ts +1 -5
  40. package/src/utils/studioUrlState.test.ts +5 -8
  41. package/src/utils/studioUrlState.ts +1 -10
@@ -2,7 +2,6 @@ import { useMemo, useRef } from "react";
2
2
  import type { GsapAnimation } from "@hyperframes/core/gsap-parser";
3
3
  import { animationLaneGroups } from "./TimelinePropertyLanes";
4
4
  import { usePlayerStore, type TimelineElement } from "../store/playerStore";
5
- import { STUDIO_KEYFRAMES_ENABLED } from "../../components/editor/manualEditingAvailability";
6
5
  import type { DraggedClipState } from "./timelineClipDragTypes";
7
6
  import { useTimelineTrackDerivations } from "./useTimelineTrackDerivations";
8
7
  import {
@@ -90,10 +89,7 @@ function useTimelineRowHeights(
90
89
  });
91
90
  return {
92
91
  laneCounts,
93
- rowHeights: trackHeights(
94
- heightTracks,
95
- STUDIO_KEYFRAMES_ENABLED ? expandedClipIds : undefined,
96
- ),
92
+ rowHeights: trackHeights(heightTracks, expandedClipIds),
97
93
  };
98
94
  }, [expandedClipIds, gsapAnimations, tracks, selectedElementId, selectedElementIds]);
99
95
  const rowHeightsRef = useRef<readonly number[]>(rowHeights);
@@ -34,12 +34,8 @@ describe("resolveMasterCompositionPath", () => {
34
34
 
35
35
  describe("normalizeStudioUrlPanelTab", () => {
36
36
  it("accepts slideshow and variables as valid tabs", () => {
37
- expect(normalizeStudioUrlPanelTab("slideshow", { inspectorPanelsEnabled: true })).toBe(
38
- "slideshow",
39
- );
40
- expect(normalizeStudioUrlPanelTab("variables", { inspectorPanelsEnabled: true })).toBe(
41
- "variables",
42
- );
37
+ expect(normalizeStudioUrlPanelTab("slideshow")).toBe("slideshow");
38
+ expect(normalizeStudioUrlPanelTab("variables")).toBe("variables");
43
39
  });
44
40
  });
45
41
 
@@ -184,9 +180,10 @@ describe("studio url state", () => {
184
180
  ).toBe("compositions/title.html");
185
181
  });
186
182
 
187
- it("normalizes url tabs against feature flags", () => {
183
+ it("passes through every valid tab and rejects unknown ones", () => {
188
184
  expect(normalizeStudioUrlPanelTab("renders")).toBe("renders");
189
- expect(normalizeStudioUrlPanelTab("layers", { inspectorPanelsEnabled: false })).toBe("renders");
185
+ expect(normalizeStudioUrlPanelTab("layers")).toBe("layers");
186
+ expect(normalizeStudioUrlPanelTab("nope" as never)).toBeNull();
190
187
  });
191
188
 
192
189
  it("hydrates seek first, preserves the initial url state, then restores selection", async () => {
@@ -1,6 +1,5 @@
1
1
  import type { RightPanelTab } from "./studioHelpers";
2
2
  import { buildProjectHash, parseProjectHashRoute } from "./projectRouting";
3
- import { STUDIO_INSPECTOR_PANELS_ENABLED } from "../components/editor/manualEditingAvailability";
4
3
  import { roundTo3 } from "./rounding";
5
4
 
6
5
  export interface StudioUrlSelectionState {
@@ -34,17 +33,9 @@ export function resolveMasterCompositionPath(fileTree: string[]): string | null
34
33
  return fileTree.find((p) => p.endsWith(".html")) ?? null;
35
34
  }
36
35
 
37
- export function normalizeStudioUrlPanelTab(
38
- tab: RightPanelTab | null,
39
- options: {
40
- inspectorPanelsEnabled?: boolean;
41
- } = {},
42
- ): RightPanelTab | null {
36
+ export function normalizeStudioUrlPanelTab(tab: RightPanelTab | null): RightPanelTab | null {
43
37
  if (!tab) return null;
44
38
  if (!VALID_TABS.includes(tab)) return null;
45
- const inspectorPanelsEnabled = options.inspectorPanelsEnabled ?? STUDIO_INSPECTOR_PANELS_ENABLED;
46
-
47
- if (!inspectorPanelsEnabled && tab !== "renders") return "renders";
48
39
  return tab;
49
40
  }
50
41