vibes-diy 14.3.340 → 14.3.342

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.
@@ -1,6 +1,6 @@
1
1
  import { DERIVED_HUE, PAD_DRIVEN_TOKENS, VIBE_FONTS, getStylePreset, getVibeFont } from "@vibes.diy/prompts";
2
2
  import { generatePoufRoom, normalizePoufSeed } from "@vibes.diy/prompts/themes/pouf-rooms.js";
3
- import { POUF_BOLD_PRESETS, POUF_BOLD_TONE, POUF_ROOM_SLUGS } from "@vibes.diy/prompts/themes/style-presets.js";
3
+ import { POUF_BOLD_PRESETS, POUF_BOLD_TONE, POUF_ROOM_SLUGS, poufSeedEqualsPreset, } from "@vibes.diy/prompts/themes/style-presets.js";
4
4
  export const PIN_OFF_WORD = "off";
5
5
  const NUDGE_LIMIT = 15;
6
6
  function wrapHue(h) {
@@ -217,12 +217,7 @@ export function describePoufDials(pouf) {
217
217
  };
218
218
  }
219
219
  export function poufSeedMatchesRoom(pouf, roomSlug) {
220
- const room = getStylePreset(roomSlug === "pouf" ? "home" : roomSlug)?.palette.pouf;
221
- if (room === undefined)
222
- return false;
223
- if (pouf.up !== undefined || pouf.down !== undefined)
224
- return false;
225
- return room.lead === pouf.lead && room.locked === pouf.locked && room.tone === pouf.tone && room.gap === pouf.gap;
220
+ return poufSeedEqualsPreset(pouf, getStylePreset(roomSlug === "pouf" ? "home" : roomSlug)?.palette.pouf);
226
221
  }
227
222
  export function poufBoldRoom(slug) {
228
223
  const preset = POUF_BOLD_PRESETS.find((p) => p.slug === slug);