@cratis/stage.runtime 4.190.1 → 4.190.3

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.
@@ -0,0 +1,35 @@
1
+ import type { Form, Screen } from '@cratis/scene.model';
2
+ /** The component a screen that names the blueprint's confirmation dialog is drawn with. */
3
+ export declare const stageConfirmDialogComponent = "Stage:confirmDialog";
4
+ /**
5
+ * One choice of a confirmation dialog: an action of the screen with the form of the command it executes.
6
+ */
7
+ export interface StageDecision {
8
+ /** The command the decision executes. */
9
+ command: string;
10
+ /** The label the action carries, when the model gave it one. */
11
+ label?: string;
12
+ /** The screen the person goes to once the command succeeded. */
13
+ navigateToScreen?: string;
14
+ /** The type name of the command, when the action carries one. */
15
+ typeName?: string;
16
+ /** The route of the command, when the action carries one. */
17
+ route?: string;
18
+ /** The form the screen declares for the command, when it declares one. */
19
+ form?: Form;
20
+ }
21
+ /**
22
+ * The screens with those that fill the default blueprint's confirmation dialog turned into one decision dialog.
23
+ *
24
+ * Scene lays a dialog template's slots out as a page, so a screen written against `ConfirmDialog` drew its actions as bare command buttons
25
+ * and its forms below them, each asking for the identifier of the entity the decision is about (Cratis/Stage#672). Such a screen is drawn as
26
+ * one dialog instead: a button for each action, and the form of the chosen one. A screen that fills a template of the application's own
27
+ * with that name, and every other screen, is left as it is.
28
+ *
29
+ * @param screens The screens of the scene.
30
+ * @param ownTemplates The templates the application declares itself, which win over the blueprint's of the same name.
31
+ * @returns The screens, those that are a decision dialog holding one confirm-dialog element and no flat forms.
32
+ */
33
+ export declare function asDialogScreens(screens: readonly Screen[], ownTemplates: readonly {
34
+ name: string;
35
+ }[]): Screen[];
@@ -0,0 +1,3 @@
1
+ import { type IconAdapter } from '@cratis/scene.react';
2
+ export declare const stageLucideAdapter: IconAdapter;
3
+ export declare const stageIconAdapters: import("@cratis/scene.react").IconAdapterRegistry;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/stage.runtime",
3
- "version": "4.190.1",
3
+ "version": "4.190.3",
4
4
  "description": "The Cratis Stage application runtime for Arc and Scene",
5
5
  "author": "Cratis",
6
6
  "type": "module",
@@ -41,14 +41,15 @@
41
41
  "@cratis/arc.react": "22.112.1",
42
42
  "@cratis/components": "4.29.0",
43
43
  "@cratis/fundamentals": "7.25.1",
44
- "@cratis/scene.blueprint.default": "4.78.0",
45
- "@cratis/scene.components": "4.78.0",
46
- "@cratis/scene.engine": "4.78.0",
47
- "@cratis/scene.model": "4.78.0",
48
- "@cratis/scene.primereact": "4.78.0",
49
- "@cratis/scene.react": "4.78.0",
44
+ "@cratis/scene.blueprint.default": "4.78.3",
45
+ "@cratis/scene.components": "4.78.3",
46
+ "@cratis/scene.engine": "4.78.3",
47
+ "@cratis/scene.model": "4.78.3",
48
+ "@cratis/scene.primereact": "4.78.3",
49
+ "@cratis/scene.react": "4.78.3",
50
50
  "@primereact/ui": "11.2.0",
51
51
  "@primeuix/themes": "3.0.1",
52
+ "lucide-react": "1.52.0",
52
53
  "primereact": "11.2.0",
53
54
  "react": "19.3.0",
54
55
  "vite": "8.3.2"