@reqvire-org/ads 0.5.8 → 0.5.10

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.
Files changed (52) hide show
  1. package/dist/ads-errors.mjs +68 -1
  2. package/dist/analysis/owner-source.mjs +16 -2
  3. package/dist/asset-declaration.d.mts +5 -0
  4. package/dist/asset-declaration.mjs +8 -2
  5. package/dist/asset-model.mjs +3 -0
  6. package/dist/construction-output.mjs +28 -6
  7. package/dist/construction-spec.d.mts +115 -10
  8. package/dist/construction-spec.mjs +183 -45
  9. package/dist/end-alignment.mjs +17 -2
  10. package/dist/form-states.mjs +2 -2
  11. package/dist/grid-lowering.mjs +24 -1
  12. package/dist/lowering-layer.mjs +11 -10
  13. package/dist/lowering-overlaps.mjs +5 -3
  14. package/dist/lowering-properties.mjs +11 -1
  15. package/dist/lowering-region-layout.mjs +4 -4
  16. package/dist/lowering-sequence.mjs +6 -2
  17. package/dist/mcp/preview-http.bundle.js +3 -3
  18. package/dist/mcp/preview-widget.bundle.js +40 -40
  19. package/dist/measured-geometry.mjs +15 -3
  20. package/dist/owner-analysis-check.mjs +36 -0
  21. package/dist/owner-errors.mjs +6 -0
  22. package/dist/ownership-model.mjs +35 -9
  23. package/dist/platform-features.mjs +11 -0
  24. package/dist/press-scale.mjs +3 -1
  25. package/dist/profile-macro.d.mts +5 -0
  26. package/dist/profile-view-facts.mjs +1 -1
  27. package/dist/recipe-macro.d.mts +61 -6
  28. package/dist/recipe-model.mjs +11 -6
  29. package/dist/region-lowering.mjs +417 -36
  30. package/dist/role-vocabulary.d.mts +7 -0
  31. package/dist/role-vocabulary.mjs +13 -1
  32. package/dist/showcase/client.bundle.js +39 -39
  33. package/dist/showcase/http-client.bundle.js +17 -17
  34. package/dist/showcase/scenario-page.mjs +37 -12
  35. package/dist/showcase/ui/ui.css +1 -1
  36. package/dist/showcase/ui/ui.js +2 -2
  37. package/dist/skills/ads-designer/references/motion.md +4 -1
  38. package/dist/skills/ads-designer/references/recipes.md +35 -1
  39. package/dist/skills/ads-import/references/recipes.md +35 -1
  40. package/dist/skills/ads-port/references/recipes.md +35 -1
  41. package/dist/spatial-model.mjs +11 -2
  42. package/dist/surface-effects.mjs +11 -6
  43. package/docs/ARCHITECTURE.md +16 -0
  44. package/docs/ASSETS.md +7 -1
  45. package/docs/CHANGELOG.md +160 -18
  46. package/docs/GUIDE.md +20 -1
  47. package/docs/LANGUAGE.md +137 -16
  48. package/docs/MOTION.md +45 -0
  49. package/docs/PROFILE-KINDS.md +15 -4
  50. package/docs/RULES.md +12 -3
  51. package/docs/TOKEN-ROLES.md +8 -2
  52. package/package.json +1 -1
@@ -144,11 +144,14 @@ declare const tokenRolesByKind: {
144
144
  "text-decoration-color": string[];
145
145
  "box-shadow": string[];
146
146
  "background-image": string[];
147
+ "background-tile": string[];
147
148
  opacity: string[];
148
149
  blur: string[];
149
150
  "backdrop-blur": string[];
150
151
  "backdrop-saturate": string[];
151
152
  brightness: string[];
153
+ grayscale: string[];
154
+ invert: string[];
152
155
  mask: string[];
153
156
  "border-inline-start-color": string[];
154
157
  "border-inline-end-color": string[];
@@ -197,6 +200,10 @@ declare const tokenRolesByKind: {
197
200
  "clear-block-start": string[];
198
201
  "edge-gap": string[];
199
202
  "viewport-margin": string[];
203
+ "anchor-gap": string[];
204
+ "anchor-overlap": string[];
205
+ "anchor-outdent": string[];
206
+ "anchor-indent": string[];
200
207
  "sticky-layer": string[];
201
208
  };
202
209
  spatial: {
@@ -46,6 +46,8 @@ export const tokenShapeGrammars = {
46
46
  blur: "nonnegative-length",
47
47
  saturation: "nonnegative-percentage",
48
48
  brightness: "nonnegative-percentage",
49
+ grayscale: "nonnegative-percentage",
50
+ invert: "nonnegative-percentage",
49
51
  "box-share": "nonnegative-percentage",
50
52
  overlap: "nonnegative-length",
51
53
  "font-family": "font-family-list",
@@ -86,6 +88,8 @@ export const tokenRoleGuides = Object.freeze({
86
88
  blur: { purpose: "A blur radius: a filter, a backdrop, a shadow's blur.", write: "px" },
87
89
  saturation: { purpose: "How vivid colours are, as a filter: of what is behind a surface.", write: "a percentage: 100% leaves colours as they are, 0% is greyscale" },
88
90
  brightness: { purpose: "How bright a drawing is shown, as a filter: a picture with no dark version, dimmed in the dark theme.", write: "a percentage: 100% leaves it as it is, below 100% dims it, 0% is black" },
91
+ grayscale: { purpose: "How grey a drawing is shown, as a filter: colour artwork made quiet, or prepared for inverting on a dark page.", write: "a percentage: 0% leaves its colours, 100% is fully grey" },
92
+ invert: { purpose: "How far a drawing's tones are inverted, as a filter: dark marks made for a light page shown light on a dark one.", write: "a percentage: 0% leaves it as it is, 100% inverts it fully" },
89
93
  "box-share": { purpose: "A share of an element's own box: how far a backdrop is drawn past it on an axis, growing with the box.", write: "a percentage of the box's size on that axis" },
90
94
  overlap: { purpose: "How far neighbours of an arrangement overlap, in place of a gap between them.", write: "px or rem" },
91
95
  "font-family": { purpose: "The text font and its fallbacks.", write: null },
@@ -167,11 +171,14 @@ const tokenRolesByKind = {
167
171
  "text-decoration-color": ["paint"],
168
172
  "box-shadow": ["shadow"],
169
173
  "background-image": ["gradient"],
174
+ "background-tile": ["spacing", "frame-size"],
170
175
  opacity: ["opacity"],
171
176
  blur: ["blur"],
172
177
  "backdrop-blur": ["blur"],
173
178
  "backdrop-saturate": ["saturation"],
174
179
  brightness: ["brightness"],
180
+ grayscale: ["grayscale"],
181
+ invert: ["invert"],
175
182
  mask: ["gradient"],
176
183
  "border-inline-start-color": ["paint"],
177
184
  "border-inline-end-color": ["paint"],
@@ -209,6 +216,10 @@ const tokenRolesByKind = {
209
216
  "clear-block-start": ["layout-size"],
210
217
  "edge-gap": ["spacing"],
211
218
  "viewport-margin": ["spacing"],
219
+ "anchor-gap": ["spacing"],
220
+ "anchor-overlap": ["overlap"],
221
+ "anchor-outdent": ["spacing"],
222
+ "anchor-indent": ["spacing"],
212
223
  "sticky-layer": ["layer"]
213
224
  },
214
225
  spatial: {
@@ -268,7 +279,8 @@ export const sequenceStepTokenRoles = {
268
279
  scale: ["motion-scale"],
269
280
  "scale-inline": ["motion-scale"],
270
281
  "scale-block": ["motion-scale"],
271
- rotate: ["motion-angle"]
282
+ rotate: ["motion-angle"],
283
+ draw: []
272
284
  };
273
285
  export function spatialClauseFieldNames(clause) {
274
286
  const roles = Object.hasOwn(spatialClauseTokenRoles, clause) ? spatialClauseTokenRoles[clause] : void 0;