@cratis/stage.runtime 4.228.0 → 5.0.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/dist/src/App.d.ts +3 -1
- package/dist/src/StageChrome.d.ts +2 -9
- package/dist/src/index.js +1535 -1121
- package/dist/src/navigationTree.d.ts +1 -1
- package/dist/src/stageComponents.d.ts +2 -0
- package/dist/src/stageNavigationModel.d.ts +8 -4
- package/dist/src/stageOutlets.d.ts +40 -0
- package/dist/src/stageSceneRouting.d.ts +130 -0
- package/dist/src/stageSlices.d.ts +2 -1
- package/dist/src/stageSlot.d.ts +16 -0
- package/package.json +9 -9
package/dist/src/App.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@cratis/showrunner.notes.react/styles';
|
|
2
2
|
import { type ApplicationStructure, type DialogTemplate, type InstanceContribution, type Layout, type NavigationModel, type SceneElement, type Screen, type ScreenTemplate, type Theme, type UiProfile, type ExposureDeclaration } from '@cratis/scene.model';
|
|
3
|
-
import type { EffectiveNavItem, PackageCatalog } from '@cratis/scene.engine';
|
|
3
|
+
import type { EffectiveNavItem, OutletLevel, PackageCatalog } from '@cratis/scene.engine';
|
|
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';
|
|
@@ -29,6 +29,8 @@ export interface StageSceneApplication {
|
|
|
29
29
|
structure?: ApplicationStructure;
|
|
30
30
|
/** The JSON schema of every modeled command, by name, which a toolbar slice's task dialog reads its fields from. */
|
|
31
31
|
commandSchemas?: Record<string, string>;
|
|
32
|
+
/** The outlets the modules, features and slices refine or contribute to, from the top down. */
|
|
33
|
+
outletLevels?: OutletLevel[];
|
|
32
34
|
responseContracts?: StageResponseContracts;
|
|
33
35
|
}
|
|
34
36
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import type { ComponentRegistry, RegisteredComponentProps } from '@cratis/scene.react';
|
|
3
|
+
import { StageSlot } from './stageSlot';
|
|
3
4
|
/** What the Stage's own components need that the document itself does not carry. */
|
|
4
5
|
export interface StageChromeState {
|
|
5
6
|
locales: string[];
|
|
@@ -30,15 +31,7 @@ export declare function StageThemeToggle({ element }: RegisteredComponentProps):
|
|
|
30
31
|
* as the model nests them, each entry linking to the screen it opens.
|
|
31
32
|
*/
|
|
32
33
|
export declare function StageNavigationTree({ element }: RegisteredComponentProps): import("react").JSX.Element;
|
|
33
|
-
|
|
34
|
-
* The `core:outlet` the Stage renders: the screen the Scene navigation host placed in the named outlet, drawn
|
|
35
|
-
* inside the Stage's own data scope so its queries, selections and commands work as they do on a primary screen.
|
|
36
|
-
*
|
|
37
|
-
* Scene's own outlet renders the placed screen in a scope of its own, which cannot see what the Stage resolves
|
|
38
|
-
* queries and selections with, so the Stage draws the same region itself - including the `Close` button of an outlet the host
|
|
39
|
-
* put in a slot the shell declares (`slot side`).
|
|
40
|
-
*/
|
|
41
|
-
export declare function StageOutlet({ element }: RegisteredComponentProps): import("react").JSX.Element;
|
|
34
|
+
export { StageSlot };
|
|
42
35
|
/** What the last interaction did, or could not do. */
|
|
43
36
|
export declare function StageActivity(): import("react").JSX.Element | null;
|
|
44
37
|
/**
|