@hyperframes/studio 0.9.50 → 0.9.52

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/ui.d.ts CHANGED
@@ -122,6 +122,8 @@ type PortalContainer = ComponentPropsWithoutRef<typeof Menu$1.Portal>["container
122
122
  * Chrome shared by every floating panel (`Popover` too); callers add their own shadow token.
123
123
  */
124
124
  declare const popupSurface: string;
125
+ /** One row. `data-highlighted` is set by keyboard and pointer alike, so the seen row is the Enter row. */
126
+ declare const menuItemBase: string;
125
127
  type MenuItemTone = "default" | "danger";
126
128
  interface PositionedProps {
127
129
  side?: "top" | "bottom" | "left" | "right";
@@ -298,4 +300,4 @@ interface ToggleProps {
298
300
  }
299
301
  declare function Toggle({ label, checked, onCommit, onTrack, disabled, className, "data-preview-state": previewState, }: ToggleProps): react_jsx_runtime.JSX.Element;
300
302
 
301
- export { Button, type ButtonSize, type ButtonVariant, ContextMenu, HyperframesLoader, type HyperframesLoaderProps, HyperframesLogo, IconButton, Input, type InputProps, Menu, MenuItem, type MenuItemTone, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuShortcut, NumberField, type NumberFieldProps, Popover, type PopupPreviewState, type PreviewState, Select, type SelectOption, type SelectProps, Slider, type SliderProps, Tab, TabPanel, Tabs, TabsList, Toggle, type ToggleProps, Tooltip, buttonBase, buttonSizes, buttonVariants, cn, fieldBase, fieldText, popupSurface };
303
+ export { Button, type ButtonSize, type ButtonVariant, ContextMenu, HyperframesLoader, type HyperframesLoaderProps, HyperframesLogo, IconButton, Input, type InputProps, Menu, MenuItem, type MenuItemTone, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuShortcut, NumberField, type NumberFieldProps, Popover, type PopupPreviewState, type PreviewState, Select, type SelectOption, type SelectProps, Slider, type SliderProps, Tab, TabPanel, Tabs, TabsList, Toggle, type ToggleProps, Tooltip, buttonBase, buttonSizes, buttonVariants, cn, fieldBase, fieldText, menuItemBase, popupSurface };
package/dist/ui.js CHANGED
@@ -29,8 +29,9 @@ import {
29
29
  cn,
30
30
  fieldBase,
31
31
  fieldText,
32
+ menuItemBase,
32
33
  popupSurface
33
- } from "./chunk-ZNUWV4FN.js";
34
+ } from "./chunk-G6FJSL7X.js";
34
35
  import "./chunk-MLKGABMK.js";
35
36
  export {
36
37
  Button,
@@ -61,5 +62,6 @@ export {
61
62
  cn,
62
63
  fieldBase,
63
64
  fieldText,
65
+ menuItemBase,
64
66
  popupSurface
65
67
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/studio",
3
- "version": "0.9.50",
3
+ "version": "0.9.52",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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/parsers": "0.9.50",
68
- "@hyperframes/sdk": "0.9.50",
69
- "@hyperframes/core": "0.9.50",
70
- "@hyperframes/shader-transitions": "0.9.50",
71
- "@hyperframes/studio-server": "0.9.50",
72
- "@hyperframes/player": "0.9.50"
67
+ "@hyperframes/core": "0.9.52",
68
+ "@hyperframes/parsers": "0.9.52",
69
+ "@hyperframes/player": "0.9.52",
70
+ "@hyperframes/sdk": "0.9.52",
71
+ "@hyperframes/shader-transitions": "0.9.52",
72
+ "@hyperframes/studio-server": "0.9.52"
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.50"
89
+ "@hyperframes/producer": "0.9.52"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "react": "19",
@@ -443,12 +443,14 @@ describe("open motion", () => {
443
443
  );
444
444
  });
445
445
 
446
- it("rounds a row's highlight more than the panel that holds it", async () => {
446
+ it("rounds a row's highlight to the panel's corner less the panel's inset", async () => {
447
447
  await openActionMenu();
448
448
 
449
449
  const rowRadius = [...items()[0]!.classList].find((c) => c.startsWith("rounded-"))!;
450
- expect([...popup()!.classList]).toContain("rounded-lg");
451
- expect(compileStudioCss([rowRadius])).toMatch(/calc\(var\(--radius-lg\) \+ 6px\)/);
450
+ expect([...popup()!.classList]).toEqual(expect.arrayContaining(["rounded-lg", "p-1"]));
451
+ expect(compileStudioCss([rowRadius])).toMatch(
452
+ /border-radius: calc\(var\(--radius-lg\) - 4px\)/,
453
+ );
452
454
  });
453
455
  });
454
456
 
@@ -71,8 +71,8 @@ export const POPUP_LAYER = "z-200";
71
71
  const menuPopup = cn(popupSurface, "min-w-36 p-1 shadow-menu");
72
72
 
73
73
  /** One row. `data-highlighted` is set by keyboard and pointer alike, so the seen row is the Enter row. */
74
- const itemBase = cn(
75
- "flex cursor-default select-none items-center justify-between gap-6 rounded-[calc(var(--radius-lg)+6px)] px-2 py-1.5",
74
+ export const menuItemBase = cn(
75
+ "flex cursor-default select-none items-center justify-between gap-6 rounded-[calc(var(--radius-lg)-4px)] px-2 py-1.5",
76
76
  "text-step-11 whitespace-nowrap text-text-1",
77
77
  "outline-hidden transition-colors ease-out-quint duration-hover",
78
78
  "data-[highlighted]:bg-hover data-[highlighted]:text-text-0",
@@ -210,7 +210,10 @@ interface MenuItemProps extends StyledProps<typeof BaseMenu.Item> {
210
210
  /** One action. `disabled` items are skipped by the arrow keys, not just dimmed. */
211
211
  export function MenuItem({ shortcut, tone, className, children, ...props }: MenuItemProps) {
212
212
  return (
213
- <BaseMenu.Item className={cn(itemBase, tone === "danger" && itemDanger, className)} {...props}>
213
+ <BaseMenu.Item
214
+ className={cn(menuItemBase, tone === "danger" && itemDanger, className)}
215
+ {...props}
216
+ >
214
217
  <span className="truncate">{children}</span>
215
218
  {shortcut ? <MenuShortcut>{shortcut}</MenuShortcut> : null}
216
219
  </BaseMenu.Item>
@@ -229,7 +232,7 @@ interface MenuRadioItemProps extends StyledProps<typeof BaseMenu.RadioItem> {
229
232
  /** One choice in a `MenuRadioGroup`. The dot renders only while it is checked. */
230
233
  export function MenuRadioItem({ className, children, ...props }: MenuRadioItemProps) {
231
234
  return (
232
- <BaseMenu.RadioItem className={cn(itemBase, className)} {...props}>
235
+ <BaseMenu.RadioItem className={cn(menuItemBase, className)} {...props}>
233
236
  <span className="truncate">{children}</span>
234
237
  {/* Fixed box so a checked and an unchecked row keep the same width. */}
235
238
  <span className="flex size-3 shrink-0 items-center justify-center">
@@ -246,7 +249,7 @@ export function MenuCheckboxItem({
246
249
  ...props
247
250
  }: StyledProps<typeof BaseMenu.CheckboxItem>) {
248
251
  return (
249
- <BaseMenu.CheckboxItem className={cn(itemBase, className)} {...props}>
252
+ <BaseMenu.CheckboxItem className={cn(menuItemBase, className)} {...props}>
250
253
  <span className="truncate">{children}</span>
251
254
  <span className="flex size-3 shrink-0 items-center justify-center text-accent-ink">
252
255
  <BaseMenu.CheckboxItemIndicator>✓</BaseMenu.CheckboxItemIndicator>
@@ -17,6 +17,7 @@ export {
17
17
  MenuRadioItem,
18
18
  MenuSeparator,
19
19
  MenuShortcut,
20
+ menuItemBase,
20
21
  popupSurface,
21
22
  } from "./Menu";
22
23
  export type { MenuItemTone, PopupPreviewState } from "./Menu";
package/src/ui.ts CHANGED
@@ -15,6 +15,7 @@ export {
15
15
  MenuRadioItem,
16
16
  MenuSeparator,
17
17
  MenuShortcut,
18
+ menuItemBase,
18
19
  popupSurface,
19
20
  } from "./components/ui/Menu";
20
21
  export type { MenuItemTone, PopupPreviewState } from "./components/ui/Menu";