@hyperframes/studio 0.8.190 → 0.8.192
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-0HXJPmYC.js → hyperframes-player-ChN3cOr0.js} +3 -3
- package/dist/assets/{index-DsSfhjUS.js → index-BYbFcRR0.js} +1 -1
- package/dist/assets/{index-BYw97F07.js → index-CHu83hHM.js} +126 -125
- package/dist/assets/{index-B3vk3hfU.css → index-CYbvOVp-.css} +1 -1
- package/dist/{chunk-563JPIL4.js → chunk-6SXUUBPD.js} +9 -3
- package/dist/{chunk-FF5DM7BQ.js → chunk-7HZGKFFU.js} +18 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.html +2 -2
- package/dist/index.js +509 -282
- package/dist/player.js +2 -2
- package/dist/styles.css +1 -1
- package/dist/ui.d.ts +3 -1
- package/dist/ui.js +1 -1
- package/package.json +9 -8
- package/src/captions/parser.dom.test.ts +126 -0
- package/src/captions/parser.test.ts +71 -1
- package/src/captions/parser.ts +121 -65
- package/src/components/StudioRightPanels.tsx +9 -0
- package/src/components/dock/DockTab.tsx +2 -0
- package/src/components/dock/dockAccessibility.test.ts +3 -3
- package/src/components/dock/dockLayout.ts +1 -1
- package/src/components/dock/panelRegistry.ts +6 -0
- package/src/components/panels/MotionBlurPanel.test.tsx +177 -0
- package/src/components/panels/MotionBlurPanel.tsx +163 -0
- package/src/components/panels/motionBlurPanelModel.test.ts +143 -0
- package/src/components/panels/motionBlurPanelModel.ts +98 -0
- package/src/components/ui/Tooltip.test.tsx +32 -0
- package/src/components/ui/Tooltip.tsx +23 -3
- package/src/hooks/usePanelLayout.test.ts +1 -1
- package/src/player/components/TimelineClip.filmstrip.test.tsx +1 -1
- package/src/player/components/timelineMotionStyles.test.ts +1 -1
- package/src/styles/theme.css +1 -1
- package/src/utils/studioHelpers.ts +2 -1
- package/src/utils/studioUrlState.ts +8 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HyperframesLoader
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7HZGKFFU.js";
|
|
4
4
|
import {
|
|
5
5
|
buildProjectApiPath,
|
|
6
6
|
splitTimelineElementKey,
|
|
@@ -96,7 +96,8 @@ var PANEL_IDS = [
|
|
|
96
96
|
"layers",
|
|
97
97
|
"renders",
|
|
98
98
|
"variables",
|
|
99
|
-
"slideshow"
|
|
99
|
+
"slideshow",
|
|
100
|
+
"motionBlur"
|
|
100
101
|
];
|
|
101
102
|
var PANEL_DEFINITIONS = {
|
|
102
103
|
preview: {
|
|
@@ -127,7 +128,12 @@ var PANEL_DEFINITIONS = {
|
|
|
127
128
|
layers: { title: "Layers", zone: "right", reopen: { near: "design", direction: "within" } },
|
|
128
129
|
renders: { title: "Renders", zone: "right", reopen: { near: "design", direction: "within" } },
|
|
129
130
|
variables: { title: "Variables", zone: "right", reopen: { near: "design", direction: "within" } },
|
|
130
|
-
slideshow: { title: "Slideshow", zone: "right", reopen: { near: "design", direction: "within" } }
|
|
131
|
+
slideshow: { title: "Slideshow", zone: "right", reopen: { near: "design", direction: "within" } },
|
|
132
|
+
motionBlur: {
|
|
133
|
+
title: "Blur",
|
|
134
|
+
zone: "right",
|
|
135
|
+
reopen: { near: "design", direction: "within" }
|
|
136
|
+
}
|
|
131
137
|
};
|
|
132
138
|
function isPanelId(value) {
|
|
133
139
|
return typeof value === "string" && PANEL_IDS.includes(value);
|
|
@@ -415,7 +415,12 @@ function MenuSeparator({ className, ...props }) {
|
|
|
415
415
|
|
|
416
416
|
// src/components/ui/Tooltip.tsx
|
|
417
417
|
import { Tooltip as BaseTooltip } from "@base-ui/react/tooltip";
|
|
418
|
-
import {
|
|
418
|
+
import {
|
|
419
|
+
cloneElement,
|
|
420
|
+
useId as useId2,
|
|
421
|
+
useRef as useRef2,
|
|
422
|
+
useState
|
|
423
|
+
} from "react";
|
|
419
424
|
import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
420
425
|
var SIDE_OFFSET2 = 6;
|
|
421
426
|
var VIEWPORT_MARGIN2 = 8;
|
|
@@ -424,7 +429,8 @@ function Tooltip({
|
|
|
424
429
|
children,
|
|
425
430
|
delay = 400,
|
|
426
431
|
side = "top",
|
|
427
|
-
disabled = false
|
|
432
|
+
disabled = false,
|
|
433
|
+
lines
|
|
428
434
|
}) {
|
|
429
435
|
const [open, setOpen] = useState(false);
|
|
430
436
|
const boxRef = useRef2(null);
|
|
@@ -447,10 +453,18 @@ function Tooltip({
|
|
|
447
453
|
id: tooltipId,
|
|
448
454
|
role: "tooltip",
|
|
449
455
|
className: cn(
|
|
450
|
-
"pointer-events-none rounded-md border border-border-input bg-surface px-2 py-1 text-step-10 font-medium text-text-1
|
|
456
|
+
"pointer-events-none rounded-md border border-border-input bg-surface px-2 py-1 text-step-10 font-medium text-text-1 shadow-menu",
|
|
457
|
+
lines ? "max-w-[300px] whitespace-normal break-words" : "whitespace-nowrap",
|
|
451
458
|
floatingMotion("duration-tooltip")
|
|
452
459
|
),
|
|
453
|
-
children:
|
|
460
|
+
children: lines ? /* @__PURE__ */ jsx7(
|
|
461
|
+
"span",
|
|
462
|
+
{
|
|
463
|
+
className: "line-clamp-(--tooltip-lines)",
|
|
464
|
+
style: { "--tooltip-lines": lines },
|
|
465
|
+
children: label
|
|
466
|
+
}
|
|
467
|
+
) : label
|
|
454
468
|
}
|
|
455
469
|
)
|
|
456
470
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -2197,7 +2197,7 @@ interface UseCompositionStackResult {
|
|
|
2197
2197
|
}
|
|
2198
2198
|
declare function useCompositionStack({ projectId, activeCompositionPath, onCompositionChange, }: UseCompositionStackOptions): UseCompositionStackResult;
|
|
2199
2199
|
|
|
2200
|
-
declare const PANEL_IDS: readonly ["preview", "timeline", "compositions", "assets", "code", "catalog", "design", "layers", "renders", "variables", "slideshow"];
|
|
2200
|
+
declare const PANEL_IDS: readonly ["preview", "timeline", "compositions", "assets", "code", "catalog", "design", "layers", "renders", "variables", "slideshow", "motionBlur"];
|
|
2201
2201
|
type PanelId = (typeof PANEL_IDS)[number];
|
|
2202
2202
|
type PanelZone = "left" | "center" | "right";
|
|
2203
2203
|
|
|
@@ -2646,7 +2646,7 @@ interface StudioAppProps {
|
|
|
2646
2646
|
}
|
|
2647
2647
|
declare function StudioApp({ readOnlyPreview, readOnlyPreviewReason }?: StudioAppProps): react_jsx_runtime.JSX.Element;
|
|
2648
2648
|
|
|
2649
|
-
type RightPanelTab = "layers" | "design" | "renders" | "block-params" | "slideshow" | "variables";
|
|
2649
|
+
type RightPanelTab = "layers" | "design" | "renders" | "block-params" | "slideshow" | "variables" | "motionBlur";
|
|
2650
2650
|
interface AgentModalAnchorPoint {
|
|
2651
2651
|
x: number;
|
|
2652
2652
|
y: number;
|
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-CHu83hHM.js"></script>
|
|
18
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CYbvOVp-.css">
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
|
21
21
|
<div data-hf-id="hf-aph5" id="root"></div>
|