Skip to content

Commit 1d92b2c

Browse files
committed
feat(profile): add QUALITY_TIERS and auto device profile; docs: migration note and README links
1 parent b6517aa commit 1d92b2c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/core/components.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,18 @@ export const SOURCE_TYPES = {
7878
IMAGE: "image",
7979
};
8080

81-
// Device Profiles
81+
// Device Profiles (legacy presets; retained for backward compatibility)
8282
export const DEVICE_PROFILES = {
8383
DESKTOP_FAST: "desktop-fast",
8484
DESKTOP_NORMAL: "desktop-normal",
8585
PHONE_NORMAL: "phone-normal",
8686
PHONE_SLOW: "phone-slow",
8787
};
88+
89+
// New capability/quality-based tiers (preferred going forward)
90+
export const QUALITY_TIERS = {
91+
LOW: "low",
92+
MEDIUM: "medium",
93+
HIGH: "high",
94+
ULTRA: "ultra",
95+
};

0 commit comments

Comments
 (0)