@cratis/stage.runtime 4.190.2 → 4.190.4

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,36 @@
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 - with the application's first other screen as the
32
+ * place to leave to - and no flat forms.
33
+ */
34
+ export declare function asDialogScreens(screens: readonly Screen[], ownTemplates: readonly {
35
+ name: string;
36
+ }[]): 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;
@@ -0,0 +1,15 @@
1
+ import type { ScreenTemplate } from '@cratis/scene.model';
2
+ /**
3
+ * The blueprint templates with every template that fits a slot of another template placed in the shell's content instead.
4
+ *
5
+ * A blueprint template may declare that it sits inside another one - the default blueprint's `MasterDetailScreen` fits
6
+ * `WorkspaceScreen.moduleContent` - and the shared composition then wraps the screen in that outer template with the outer
7
+ * template's own seeded content. A screen written in Screenplay fills only the slots of the template it names, so in the Stage
8
+ * the outer template only ever draws its seed: the workspace's module navigation, bound to a `ModuleSections` query no
9
+ * application has, drew "Nothing here yet" beside the master/detail and squeezed it into three quarters of the page.
10
+ * Placing the inner template in the content slot composes only the template the screen names, at the full content width.
11
+ *
12
+ * @param templates The blueprint templates in play.
13
+ * @returns The same templates, with a template qualified to another template's slot fitting the shell's content slot.
14
+ */
15
+ export declare function standaloneScreenTemplates(templates: readonly ScreenTemplate[]): ScreenTemplate[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/stage.runtime",
3
- "version": "4.190.2",
3
+ "version": "4.190.4",
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"