@elliemae/pui-app-sdk 5.25.0 → 5.25.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.
@@ -269,6 +269,9 @@ class CMicroAppGuest {
269
269
  if (useParentHistory && options?.history) {
270
270
  this.props.history = options.history;
271
271
  }
272
+ if (!useParentHistory && options?.initialRoute) {
273
+ this.props.history.push(options.initialRoute);
274
+ }
272
275
  return (0, import_app_bridge.getAppBridge)().then((appBridge) => {
273
276
  this.#appBridge = appBridge;
274
277
  if (this.onInit) this.onInit(this.props);
@@ -50,6 +50,7 @@ const useAppRenderer = (props) => {
50
50
  id,
51
51
  history,
52
52
  homeRoute,
53
+ initialRoute,
53
54
  onLoadComplete,
54
55
  onUnloadComplete,
55
56
  containerId
@@ -72,7 +73,8 @@ const useAppRenderer = (props) => {
72
73
  id,
73
74
  frameOptions: { containerId },
74
75
  history,
75
- homeRoute
76
+ homeRoute,
77
+ initialRoute
76
78
  });
77
79
  setTimeout(() => {
78
80
  try {
@@ -115,6 +117,7 @@ const useAppRenderer = (props) => {
115
117
  dispatch,
116
118
  history,
117
119
  homeRoute,
120
+ initialRoute,
118
121
  id,
119
122
  onLoadComplete,
120
123
  onUnloadComplete
@@ -236,6 +236,9 @@ class CMicroAppGuest {
236
236
  if (useParentHistory && options?.history) {
237
237
  this.props.history = options.history;
238
238
  }
239
+ if (!useParentHistory && options?.initialRoute) {
240
+ this.props.history.push(options.initialRoute);
241
+ }
239
242
  return getAppBridge().then((appBridge) => {
240
243
  this.#appBridge = appBridge;
241
244
  if (this.onInit) this.onInit(this.props);
@@ -17,6 +17,7 @@ const useAppRenderer = (props) => {
17
17
  id,
18
18
  history,
19
19
  homeRoute,
20
+ initialRoute,
20
21
  onLoadComplete,
21
22
  onUnloadComplete,
22
23
  containerId
@@ -39,7 +40,8 @@ const useAppRenderer = (props) => {
39
40
  id,
40
41
  frameOptions: { containerId },
41
42
  history,
42
- homeRoute
43
+ homeRoute,
44
+ initialRoute
43
45
  });
44
46
  setTimeout(() => {
45
47
  try {
@@ -82,6 +84,7 @@ const useAppRenderer = (props) => {
82
84
  dispatch,
83
85
  history,
84
86
  homeRoute,
87
+ initialRoute,
85
88
  id,
86
89
  onLoadComplete,
87
90
  onUnloadComplete