@cratis/pi 7.96.1 → 7.97.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/corpus/product-sync.json +2 -2
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +22 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/ui-profile-and-theme.md +14 -3
- package/package.json +1 -1
|
@@ -178,7 +178,7 @@ default (`applicableNewScreenTemplates`); pick from those instead of guessing. E
|
|
|
178
178
|
`version`), `ShellOptionSyntax` (`add` to the root's `options`; `syntaxKind` is `Word`, `Text`, `Number` or `Flag`),
|
|
179
179
|
`ProfileAppearanceSyntax` (`colorScheme`, `accent`) and `NewScreenTemplateSyntax` with `propose-ast`. A refusal is the answer:
|
|
180
180
|
`PLAY0790` (a template nothing declares), `PLAY0792` (a blueprint the profile does not list), `PLAY0794` (a template that cannot
|
|
181
|
-
be the shell), `PLAY0795` (no `content` slot), `PLAY0797` (a bad color scheme or
|
|
181
|
+
be the shell), `PLAY0795` (no `content` slot), `PLAY0797` (a bad color scheme, accent, corners or identity value), `PLAY0799` (a new screens default that
|
|
182
182
|
cannot start a screen). `PLAY0796` (an option the shell does not expose) and `PLAY0791` (the legacy `layout` line) are warnings:
|
|
183
183
|
the proposal is accepted and `ui-profiles` shows them. Replay against the `ui-profile-root-positive` vector and its rejection
|
|
184
184
|
vectors (`ui-profile-root-unknown`, `ui-profile-root-not-a-shell`, `ui-profile-root-invalid`) in `Cratis.Screenplay.CanonicalCorpus`.
|
|
@@ -300,7 +300,7 @@ Requires Screenplay 4.200.0 or later (`screenplay --version`); 4.197.0 reads the
|
|
|
300
300
|
| Code | Severity | Meaning / fix |
|
|
301
301
|
| --- | --- | --- |
|
|
302
302
|
| PLAY0788 | E | A `root template` / `new screens use template` line is malformed, or pins a version on an own template. |
|
|
303
|
-
| PLAY0789 | E | A malformed or repeated `appearance` line, or a second `appearance` block. |
|
|
303
|
+
| PLAY0789 | E | A malformed or repeated `identity` or `appearance` line, or a second `identity` or `appearance` block. |
|
|
304
304
|
| PLAY0790 | E | The template is not declared (or the blueprint does not ship it). Declare it or take it from a blueprint. |
|
|
305
305
|
| PLAY0791 | W | The profile selects its shell with the legacy `layout <Name>`. Write `root template <Name>`; the quick fix rewrites it (or removes the ignored line beside a `root template`). |
|
|
306
306
|
| PLAY0792 | E | The blueprint is not in the profile's `packages` (or not installed). |
|
|
@@ -308,7 +308,7 @@ Requires Screenplay 4.200.0 or later (`screenplay --version`); 4.197.0 reads the
|
|
|
308
308
|
| PLAY0794 | E | The root template cannot be the shell (not a layout or application-scope template, fits a slot, `scopes` without `application`). |
|
|
309
309
|
| PLAY0795 | E | The root template has no `content` slot. |
|
|
310
310
|
| PLAY0796 | W | An `option` the shell does not expose. |
|
|
311
|
-
| PLAY0797 | E | Color scheme is not `light`, `dark` or `system`,
|
|
311
|
+
| PLAY0797 | E | Color scheme is not `light`, `dark` or `system`, the accent is not a hex colour, the corners are not `sharp`, `default` or `round`, or an `identity` value is outside Scene's rules (initials longer than 2, unknown icon, image that is not a PNG/JPG/SVG/WebP data URI of at most 400 KB). |
|
|
312
312
|
| PLAY0798 | E | More than one `root template` in a profile. |
|
|
313
313
|
| PLAY0799 | E | `new screens use template` cannot start a screen in a feature. |
|
|
314
314
|
|
package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"blueprint",
|
|
37
37
|
"bool",
|
|
38
38
|
"boolean",
|
|
39
|
+
"box",
|
|
39
40
|
"button",
|
|
40
41
|
"by",
|
|
41
42
|
"byte",
|
|
@@ -79,12 +80,14 @@
|
|
|
79
80
|
"contract",
|
|
80
81
|
"contribute",
|
|
81
82
|
"contributes",
|
|
83
|
+
"corners",
|
|
82
84
|
"correlation",
|
|
83
85
|
"count",
|
|
84
86
|
"criminal",
|
|
85
87
|
"csharp",
|
|
86
88
|
"dark",
|
|
87
89
|
"data",
|
|
90
|
+
"database",
|
|
88
91
|
"date",
|
|
89
92
|
"datetime",
|
|
90
93
|
"datetimeoffset",
|
|
@@ -93,6 +96,7 @@
|
|
|
93
96
|
"decimal",
|
|
94
97
|
"decimals",
|
|
95
98
|
"decrement",
|
|
99
|
+
"default",
|
|
96
100
|
"denied",
|
|
97
101
|
"depends",
|
|
98
102
|
"description",
|
|
@@ -142,6 +146,7 @@
|
|
|
142
146
|
"fits",
|
|
143
147
|
"float",
|
|
144
148
|
"flow",
|
|
149
|
+
"font",
|
|
145
150
|
"for",
|
|
146
151
|
"form",
|
|
147
152
|
"freeform",
|
|
@@ -164,6 +169,7 @@
|
|
|
164
169
|
"height",
|
|
165
170
|
"hidden",
|
|
166
171
|
"hint",
|
|
172
|
+
"home",
|
|
167
173
|
"hour",
|
|
168
174
|
"hours",
|
|
169
175
|
"icon",
|
|
@@ -182,6 +188,7 @@
|
|
|
182
188
|
"info",
|
|
183
189
|
"information",
|
|
184
190
|
"inherits",
|
|
191
|
+
"initials",
|
|
185
192
|
"instance",
|
|
186
193
|
"int",
|
|
187
194
|
"interest",
|
|
@@ -190,8 +197,11 @@
|
|
|
190
197
|
"item",
|
|
191
198
|
"items",
|
|
192
199
|
"join",
|
|
200
|
+
"jpeg",
|
|
201
|
+
"jpg",
|
|
193
202
|
"key",
|
|
194
203
|
"label",
|
|
204
|
+
"layers",
|
|
195
205
|
"layout",
|
|
196
206
|
"leave",
|
|
197
207
|
"legacy",
|
|
@@ -249,7 +259,9 @@
|
|
|
249
259
|
"outbound",
|
|
250
260
|
"outlet",
|
|
251
261
|
"overrides",
|
|
262
|
+
"package",
|
|
252
263
|
"packages",
|
|
264
|
+
"palette",
|
|
253
265
|
"parameter",
|
|
254
266
|
"parent",
|
|
255
267
|
"pattern",
|
|
@@ -258,6 +270,7 @@
|
|
|
258
270
|
"personal",
|
|
259
271
|
"place",
|
|
260
272
|
"platform",
|
|
273
|
+
"png",
|
|
261
274
|
"policy",
|
|
262
275
|
"politicalOpinions",
|
|
263
276
|
"populate",
|
|
@@ -285,6 +298,7 @@
|
|
|
285
298
|
"readmodel",
|
|
286
299
|
"reads",
|
|
287
300
|
"reason",
|
|
301
|
+
"receipt",
|
|
288
302
|
"recipient",
|
|
289
303
|
"redelivered",
|
|
290
304
|
"reducer",
|
|
@@ -304,6 +318,7 @@
|
|
|
304
318
|
"returns",
|
|
305
319
|
"role",
|
|
306
320
|
"root",
|
|
321
|
+
"round",
|
|
307
322
|
"route",
|
|
308
323
|
"row",
|
|
309
324
|
"rowGap",
|
|
@@ -332,7 +347,9 @@
|
|
|
332
347
|
"severity",
|
|
333
348
|
"sexLifeOrSexualOrientation",
|
|
334
349
|
"shape",
|
|
350
|
+
"sharp",
|
|
335
351
|
"short",
|
|
352
|
+
"show",
|
|
336
353
|
"sidebar",
|
|
337
354
|
"size",
|
|
338
355
|
"slice",
|
|
@@ -383,6 +400,7 @@
|
|
|
383
400
|
"unique",
|
|
384
401
|
"unload",
|
|
385
402
|
"use",
|
|
403
|
+
"users",
|
|
386
404
|
"uses",
|
|
387
405
|
"using",
|
|
388
406
|
"uuid",
|
|
@@ -394,6 +412,7 @@
|
|
|
394
412
|
"via",
|
|
395
413
|
"vitalInterests",
|
|
396
414
|
"warning",
|
|
415
|
+
"webp",
|
|
397
416
|
"when",
|
|
398
417
|
"where",
|
|
399
418
|
"width",
|
|
@@ -41083,7 +41102,7 @@
|
|
|
41083
41102
|
"severities": [
|
|
41084
41103
|
"error"
|
|
41085
41104
|
],
|
|
41086
|
-
"title": "A ui profile appearance block is
|
|
41105
|
+
"title": "A line in a ui profile identity or appearance block is not one the block accepts (color scheme \u003Cword\u003E, accent \u0022\u003Ccolour\u003E\u0022, corners \u003Cword\u003E, font \u003Cid\u003E, name \u0022\u003Ctext\u003E\u0022, logo initials|icon|image \u003Cvalue\u003E, show name \u003Ctrue|false\u003E), a line is repeated, or a profile declares more than one identity or appearance block.",
|
|
41087
41106
|
"reserved": false,
|
|
41088
41107
|
"retired": false
|
|
41089
41108
|
},
|
|
@@ -41323,7 +41342,7 @@
|
|
|
41323
41342
|
"severities": [
|
|
41324
41343
|
"error"
|
|
41325
41344
|
],
|
|
41326
|
-
"title": "
|
|
41345
|
+
"title": "The appearance color scheme is not light, dark or system, the accent is not a hex colour, the corners are not sharp, default or round, or an identity value is outside Scene\u0027s rules (a blank name, a logo of initials longer than two characters, an unknown logo icon, or an image that is not a PNG, JPG, SVG or WebP data URI of at most 400 KB).",
|
|
41327
41346
|
"reserved": false,
|
|
41328
41347
|
"retired": false,
|
|
41329
41348
|
"arguments": [
|
|
@@ -41337,7 +41356,7 @@
|
|
|
41337
41356
|
"name": "value",
|
|
41338
41357
|
"kind": "text",
|
|
41339
41358
|
"optional": false,
|
|
41340
|
-
"meaning": "The color scheme or
|
|
41359
|
+
"meaning": "The color scheme, accent, corners or identity value as authored."
|
|
41341
41360
|
}
|
|
41342
41361
|
]
|
|
41343
41362
|
},
|
package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.
|
|
1
|
+
4.235.0
|
package/package/corpus/skills/cratis-screenplay-ui-composition/references/ui-profile-and-theme.md
CHANGED
|
@@ -39,9 +39,15 @@ ui profile Desktop
|
|
|
39
39
|
root template AppShell
|
|
40
40
|
option showFooter true
|
|
41
41
|
|
|
42
|
+
identity
|
|
43
|
+
name "Contoso CRM"
|
|
44
|
+
logo initials "CC"
|
|
45
|
+
|
|
42
46
|
appearance
|
|
43
47
|
color scheme dark
|
|
44
48
|
accent "#4F46E5"
|
|
49
|
+
corners round
|
|
50
|
+
font inter
|
|
45
51
|
|
|
46
52
|
new screens use template Sheet
|
|
47
53
|
|
|
@@ -67,7 +73,12 @@ ui profile Web
|
|
|
67
73
|
needs a `content` slot, or no screen has a place in it.
|
|
68
74
|
- `option <name> <value>`: a configurable item the shell exposes (an own shell exposes the properties of its `exposure for <Shell>`).
|
|
69
75
|
The value is a bare word, a quoted string, a number, `true` or `false`. Set each name once.
|
|
70
|
-
- `
|
|
76
|
+
- `identity`: what the application calls itself and the mark it wears. `name "<text>"` (the application's own name when left out),
|
|
77
|
+
`logo initials "<AB>"` (1-2 characters), `logo icon <icon>` (`box`, `layers`, `home`, `users`, `receipt`, `package`, `database` or `palette`) or
|
|
78
|
+
`logo image "<data:image/png|jpeg|svg+xml|webp;base64,...>"` (400 KB at most; the logo travels inside the document, never as a file beside it),
|
|
79
|
+
and `show name true|false`. One block per profile, each line once. Give each application its own `identity` so Studio and Stage draw its logo.
|
|
80
|
+
- `appearance`: `color scheme` is `light`, `dark` or `system`; `accent` is a quoted `#RGB`, `#RRGGBB` or `#RRGGBBAA`; `corners` is `sharp`,
|
|
81
|
+
`default` or `round`; `font` is an id of Scene's font catalog (`inter`, `ibm-plex-sans`, `source-serif-4`, `system-ui`). One block per profile.
|
|
71
82
|
- `new screens use template`: the template a new screen starts from in a designer. It is an authoring default, it changes no existing
|
|
72
83
|
screen, and it has to be able to start a screen in a feature (not a layout or an application-scope root; a `scopes` list that leaves
|
|
73
84
|
out `feature` is refused).
|
|
@@ -78,7 +89,7 @@ ui profile Web
|
|
|
78
89
|
| Code | Severity | Cause | Fix |
|
|
79
90
|
| --- | --- | --- | --- |
|
|
80
91
|
| `PLAY0788` | Error | A `root template` or `new screens use template` line is malformed, or it pins a version on an own template | Write `[blueprint <B>] <Name> [version "<range>"]`; drop the version on an own template |
|
|
81
|
-
| `PLAY0789` | Error | A malformed `appearance` line, a repeated line, or two `appearance` blocks | `color scheme <word
|
|
92
|
+
| `PLAY0789` | Error | A malformed `identity` or `appearance` line, a repeated line, or two `identity` / `appearance` blocks | `color scheme <word>`, `accent "<colour>"`, `corners <word>`, `font <id>`, `name "<text>"`, `logo initials|icon|image <value>`, `show name <true|false>`, each once, one block each |
|
|
82
93
|
| `PLAY0790` | Error | The template is not declared in the document (or the blueprint does not ship it) | Declare `layout <Name>` or `screen template <Name>`, or take it from a blueprint |
|
|
83
94
|
| `PLAY0791` | Warning | The profile still selects its shell with the legacy `layout <Name>` line | Write `root template <Name>`; remove the `layout` line when a `root template` is present (the quick fix does either) |
|
|
84
95
|
| `PLAY0792` | Error | The blueprint is not listed in the profile's `packages` (or not installed) | Add it under `packages` |
|
|
@@ -86,7 +97,7 @@ ui profile Web
|
|
|
86
97
|
| `PLAY0794` | Error | The root template cannot be the shell: a dialog or ordinary screen template, a slot-fitting template, `scopes` without `application` | Choose a layout or an application-scope template |
|
|
87
98
|
| `PLAY0795` | Error | The root template has no `content` slot | Add the line `content` to it |
|
|
88
99
|
| `PLAY0796` | Warning | An `option` the shell does not expose | Use a name the shell exposes, or add the property to its `exposure` |
|
|
89
|
-
| `PLAY0797` | Error | An invalid color scheme or
|
|
100
|
+
| `PLAY0797` | Error | An invalid color scheme, accent, corners or identity value | `light`, `dark` or `system`; a quoted hex colour; `sharp`, `default` or `round`; 1-2 initials, a listed icon, an image data URI of at most 400 KB |
|
|
90
101
|
| `PLAY0798` | Error | More than one `root template` in one profile | Keep one |
|
|
91
102
|
| `PLAY0799` | Error | The `new screens use template` default cannot start a screen in a feature | Name a feature-scope screen template |
|
|
92
103
|
|