@patterkit/model 0.3.0 → 0.4.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/dist/index.d.cts CHANGED
@@ -227,7 +227,7 @@ declare function effectiveGameId(entity: {
227
227
  gameId?: string;
228
228
  name: string;
229
229
  }): string;
230
- type PropertyType = "boolean" | "number" | "string" | "flags" | "enum";
230
+ type PropertyType = "boolean" | "number" | "string" | "flags" | "enum" | "quality";
231
231
  interface PropertyDecl {
232
232
  name: string;
233
233
  type: PropertyType;
@@ -251,6 +251,11 @@ interface PropertyDecl {
251
251
  temporary?: boolean;
252
252
  /** For enum / flags. */
253
253
  values?: string[];
254
+ /** For quality: the ORDERED ladder of stage names (the shared engine's quality type, expr 0.4.0).
255
+ * Ordering operators compare by position in this list and `advance()` steps along it, so the order
256
+ * is the meaning - unlike `values`, whose order is presentation only. Default seeds to the first
257
+ * stage when no `default` is declared. */
258
+ stages?: string[];
254
259
  /** Free-text author note documenting what this property is for (authoring only; shown as a hint). */
255
260
  purpose?: string;
256
261
  }
@@ -265,6 +270,8 @@ interface HostScopeDecl {
265
270
  name: string;
266
271
  type: PropertyType;
267
272
  values?: string[];
273
+ /** For quality: the ordered stage ladder (see `PropertyDecl.stages`). */
274
+ stages?: string[];
268
275
  default?: ScalarValue;
269
276
  writable?: boolean;
270
277
  /** Free-text author note documenting the property (authoring only; shown as a hint). */
package/dist/index.d.ts CHANGED
@@ -227,7 +227,7 @@ declare function effectiveGameId(entity: {
227
227
  gameId?: string;
228
228
  name: string;
229
229
  }): string;
230
- type PropertyType = "boolean" | "number" | "string" | "flags" | "enum";
230
+ type PropertyType = "boolean" | "number" | "string" | "flags" | "enum" | "quality";
231
231
  interface PropertyDecl {
232
232
  name: string;
233
233
  type: PropertyType;
@@ -251,6 +251,11 @@ interface PropertyDecl {
251
251
  temporary?: boolean;
252
252
  /** For enum / flags. */
253
253
  values?: string[];
254
+ /** For quality: the ORDERED ladder of stage names (the shared engine's quality type, expr 0.4.0).
255
+ * Ordering operators compare by position in this list and `advance()` steps along it, so the order
256
+ * is the meaning - unlike `values`, whose order is presentation only. Default seeds to the first
257
+ * stage when no `default` is declared. */
258
+ stages?: string[];
254
259
  /** Free-text author note documenting what this property is for (authoring only; shown as a hint). */
255
260
  purpose?: string;
256
261
  }
@@ -265,6 +270,8 @@ interface HostScopeDecl {
265
270
  name: string;
266
271
  type: PropertyType;
267
272
  values?: string[];
273
+ /** For quality: the ordered stage ladder (see `PropertyDecl.stages`). */
274
+ stages?: string[];
268
275
  default?: ScalarValue;
269
276
  writable?: boolean;
270
277
  /** Free-text author note documenting the property (authoring only; shown as a hint). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patterkit/model",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Patter data-model types: source (scene/block/group/snippet/beat/jump), project, locale, authoring. The shape source-of-truth.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -34,6 +34,6 @@
34
34
  "build": "tsup src/index.ts --format esm,cjs --dts --clean"
35
35
  },
36
36
  "dependencies": {
37
- "@wildwinter/expr": "^0.3.0"
37
+ "@wildwinter/expr": "^0.4.0"
38
38
  }
39
39
  }