@cratis/stage.runtime 4.201.1 → 4.202.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.
@@ -19,4 +19,10 @@ export declare function stageNavigationModel(scene: {
19
19
  screens: Screen[];
20
20
  navigation?: NavigationModel;
21
21
  structure?: ApplicationStructure;
22
- }, isVisible?: (item: EffectiveNavItem) => boolean): SceneNavigationModel;
22
+ }, isVisible?: (item: EffectiveNavItem) => boolean, dictionary?: Record<string, string>): SceneNavigationModel;
23
+ /**
24
+ * The navigation with every `$strings.<key>` reference - an item's title, a group's label - replaced by the active locale's text.
25
+ * Screens are resolved when they are composed; navigation is read from the model by Scene's regions, so it is resolved here. A key the
26
+ * dictionary lacks stays as written, so a missing translation is seen rather than blank.
27
+ */
28
+ export declare function withStringsResolved<T>(value: T, dictionary: Record<string, string>): T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/stage.runtime",
3
- "version": "4.201.1",
3
+ "version": "4.202.1",
4
4
  "description": "The Cratis Stage application runtime for Arc and Scene",
5
5
  "author": "Cratis",
6
6
  "type": "module",