@cratis/stage.runtime 5.1.2 → 5.2.1

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/dist/src/App.d.ts CHANGED
@@ -4,6 +4,7 @@ import type { EffectiveNavItem, OutletLevel, PackageCatalog } from '@cratis/scen
4
4
  import { type ComponentRegistry } from '@cratis/scene.react';
5
5
  import { type CompositionOptions } from '@cratis/scene.blueprint.default';
6
6
  import '@cratis/components/tokens';
7
+ import '@cratis/components/Dialogs/styles';
7
8
  import '@cratis/components/CommandForm/styles';
8
9
  import '@cratis/components/Dropdown/styles';
9
10
  import '@cratis/components/Common/styles';
@@ -54,7 +55,7 @@ export declare function stageShellOf(scene: StageSceneApplication, screenTemplat
54
55
  * What the Stage decides about composing a screen, on top of the composition it shares with the preview: its own chrome around the
55
56
  * shell (the effective navigation regions are Scene's), its command form, its status line and its data sources.
56
57
  */
57
- export declare function stageComposition(scene: StageSceneApplication, locales: string[], locale: string, packageCatalog?: PackageCatalog, dictionary?: Record<string, string>, blueprintTemplates?: ScreenTemplate[], showFooter?: boolean, showThemeSwitcher?: boolean): CompositionOptions;
58
+ export declare function stageComposition(scene: StageSceneApplication, locales: string[], locale: string, packageCatalog?: PackageCatalog, dictionary?: Record<string, string>, blueprintTemplates?: ScreenTemplate[], showFooter?: boolean, showThemeSwitcher?: boolean, showActingUser?: boolean): CompositionOptions;
58
59
  /**
59
60
  * What the application calls itself and how it draws its mark: the logo its navigation declares, otherwise the `identity` of the ui profile
60
61
  * (its name, an icon logo and whether the name is shown), so the model's own title replaces the Stage's. Undefined when the model says neither.
@@ -0,0 +1,2 @@
1
+ /** A real caller selection for a live development sandbox, not a design-time persona preview. */
2
+ export declare function SandboxActingUser(): import("react").JSX.Element | null;
@@ -71,7 +71,10 @@ export declare function suppliedIdentifier(property: SchemaProperty, parameters:
71
71
  * @returns The selected row's value, or nothing when no selected row (or more than one, differently) carries one.
72
72
  */
73
73
  export declare function selectedIdentifier(property: SchemaProperty, selectedRows: Record<string, unknown>[]): string | undefined;
74
- /** Whether a row the person could select carries a property of this name - the key of an entity that already exists on the screen. */
74
+ /**
75
+ * Whether a row the person could select carries a property of this name - the key of an entity that already exists on the screen. A reference to
76
+ * another entity than the one the command acts on is never bound from a row, even when a row column shares its name.
77
+ */
75
78
  export declare function carriedBy(property: SchemaProperty, rows: Record<string, unknown>[]): boolean;
76
79
  /** The rows of every query the screen has read: the rows a table shows and the person could select, each also carrying its entity's key. */
77
80
  export declare function selectableRowsOf(queries: StageDataState['queries']): Record<string, unknown>[];
@@ -7,6 +7,8 @@ export declare const stageLocaleComponent = "Stage:locale";
7
7
  export declare const stageThemeToggleComponent = "Stage:themeToggle";
8
8
  /** The name the feedback button in the topbar is registered under. */
9
9
  export declare const stageNotesComponent = "Stage:notes";
10
+ /** The live sandbox's browser-local acting-user selection. */
11
+ export declare const stageActingUserComponent = "Stage:acting-user";
10
12
  /** The package a host renders with when the profile lists no component library: the Cratis component library, built on React Aria. */
11
13
  export declare const stageBaselinePackage = "Cratis.Components";
12
14
  /** The component library the profile opts in to by listing it; the application registers its support only then. */
@@ -70,6 +72,8 @@ export interface ChromeOptions {
70
72
  regions?: boolean;
71
73
  /** Whether the footer is drawn. On unless stated. */
72
74
  showFooter?: boolean;
75
+ /** Whether a live source offers the sandbox acting-user capability. Off for generated applications. */
76
+ showActingUser?: boolean;
73
77
  /** Whether the topbar offers the theme switcher. On unless stated. */
74
78
  showThemeSwitcher?: boolean;
75
79
  }
@@ -15,5 +15,7 @@ export { StageCommandForm } from './StageCommandForm';
15
15
  export { StageSceneGuardedAction as StageGuardedAction } from './stageData';
16
16
  export { StageDataProvider, useStageData, useStageQuery, dataChanged } from './stageData';
17
17
  export { createStageSliceInvoker, sliceFieldsFrom } from './stageSlices';
18
+ export { readSandboxActingUser, writeSandboxActingUser } from './sandboxActingUser';
19
+ export type { SandboxActingUserState } from './sandboxActingUser';
18
20
  export { readStageNotes } from './stageNotes';
19
21
  export type { StageNotesState } from './stageNotes';