@idle-screens/schema 3.2.0 → 3.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idle-screens/schema",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "Declarative, agent-authorable saver format for idle-screens: validate a data spec, then compile it into a runnable, seeded, flash-safe SaverPlugin.",
5
5
  "license": "MIT",
6
6
  "author": "Shawn Partridge",
@@ -1221,13 +1221,27 @@
1221
1221
  "required": [
1222
1222
  "type"
1223
1223
  ],
1224
- "additionalProperties": false,
1225
- "properties": {
1226
- "type": {
1227
- "const": "cut",
1228
- "description": "Only 'cut' is supported in v1; 'fade' is rejected at validation."
1224
+ "oneOf": [
1225
+ {
1226
+ "properties": {
1227
+ "type": { "const": "cut" }
1228
+ },
1229
+ "additionalProperties": false
1230
+ },
1231
+ {
1232
+ "properties": {
1233
+ "type": { "const": "morph" },
1234
+ "dur": {
1235
+ "type": "number",
1236
+ "minimum": 200,
1237
+ "maximum": 5000,
1238
+ "description": "Morph glide duration in ms. Requires structurally identical adjacent segments."
1239
+ }
1240
+ },
1241
+ "required": ["type", "dur"],
1242
+ "additionalProperties": false
1229
1243
  }
1230
- }
1244
+ ]
1231
1245
  }
1232
1246
  }
1233
1247
  }