@cratis/pi 7.153.6 → 7.153.7

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.
@@ -263,6 +263,8 @@ precedence, PLAY0485 and examples.
263
263
  button. `on <Trigger>` observes an application trigger and `raise <Trigger>`
264
264
  fires one; that is where the two meet.
265
265
 
266
+ Extension components: [reference](references/extension-components.md).
267
+
266
268
  ## `design system`, `theme` and `ui profile`
267
269
 
268
270
  The `design system` is the per-application contract; a `theme` implements it with values; a `ui profile` picks a theme, and `appearance` keeps only `color scheme` (`accent`, `corners`, `font`: `PLAY0929`). Read [references/design-system-and-themes.md](references/design-system-and-themes.md) first.
@@ -0,0 +1,19 @@
1
+ # Extension components
2
+
3
+ A screen places a component an [extension package](../../cratis-screenplay-extension-packages/SKILL.md) provides through the system that names the extension, never through the package: `component <System>.<Component> <name>`. Swapping a compatible provider changes nothing on the screen.
4
+
5
+ ```play
6
+ screen Checkout
7
+ component Payments.PaymentForm payment
8
+ property amount = "10"
9
+ on succeeded
10
+ execute ConfirmPayment
11
+ with paymentIntentId from signal.paymentIntentId
12
+ on failed
13
+ notify warning "The payment failed"
14
+ ```
15
+
16
+ - `property` lines, `on <signal>` (camel case, a signal the component `raises`) and `signal.<value>` (a typed value the handled signal carries) are checked against the restored contract: `PLAY1114` unknown component, `PLAY1115` undeclared property, `PLAY1116` signal not raised, `PLAY1117` value the signal does not carry or no signal handled. `on <System>.<Trigger>` is checked against the contract's triggers (`PLAY1112`).
17
+ - A `ui profile` platform that the component's `platform` lines do not list is the warning `PLAY1118`.
18
+ - Nothing is checked until the contract is restored; an unrestored contract is reported where the system names the extension (`PLAY1108`).
19
+ - Read Screenplay [screens: extension components](https://github.com/Cratis/Screenplay/blob/main/Documentation/screenplay/screens.md#extension-components), [interaction triggers](https://github.com/Cratis/Screenplay/blob/main/Documentation/screenplay/interactions.md#interaction-triggers) and the [UI contract](https://github.com/Cratis/Screenplay/blob/main/Documentation/screenplay/ui-contract.md#extension-components) for exact placement. Stage's component hosting is in its [extensions documentation](https://github.com/Cratis/Stage/blob/main/Documentation/extensions/index.md); do not claim a component renders without a render and run.
@@ -984,6 +984,7 @@
984
984
  "cratis-screenplay-delivery-planning",
985
985
  "cratis-screenplay-discovery",
986
986
  "cratis-screenplay-event-modeling",
987
+ "cratis-screenplay-extension-packages",
987
988
  "cratis-screenplay-legacy-extraction",
988
989
  "cratis-screenplay-model-authoring",
989
990
  "cratis-screenplay-model-review",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "7.153.6",
3
+ "version": "7.153.7",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [