@lovelace_lol/embody 0.0.1 → 0.0.3

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/index.js CHANGED
@@ -7554,17 +7554,20 @@ var BETTA_FISH_PRESET = {
7554
7554
  var AU_MAPPING_CONFIG = BETTA_FISH_PRESET;
7555
7555
  var FISH_AU_MAPPING_CONFIG = BETTA_FISH_PRESET;
7556
7556
 
7557
+ // src/presets/registry.ts
7558
+ var EMBEDDED_PRESETS = {
7559
+ cc4: CC4_PRESET,
7560
+ fish: BETTA_FISH_PRESET
7561
+ };
7562
+ function getEmbeddedPreset(presetId) {
7563
+ const normalized = presetId.trim().toLowerCase();
7564
+ return EMBEDDED_PRESETS[normalized];
7565
+ }
7566
+
7557
7567
  // src/presets/index.ts
7558
7568
  function getPreset(presetType) {
7559
- switch (presetType) {
7560
- case "fish":
7561
- case "skeletal":
7562
- return BETTA_FISH_PRESET;
7563
- case "cc4":
7564
- case "custom":
7565
- default:
7566
- return CC4_PRESET;
7567
- }
7569
+ const compatibilityId = presetType === "skeletal" ? "fish" : presetType;
7570
+ return compatibilityId ? getEmbeddedPreset(compatibilityId) ?? CC4_PRESET : CC4_PRESET;
7568
7571
  }
7569
7572
  var resolvePreset = getPreset;
7570
7573
  async function getPresetWithProfile(presetType, profile) {