@carbonorm/carbonreact 4.0.17 → 4.0.19
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/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/CarbonReact.tsx +4 -4
package/dist/index.cjs.js
CHANGED
|
@@ -4452,7 +4452,7 @@ class CarbonReact extends react.Component {
|
|
|
4452
4452
|
}
|
|
4453
4453
|
}
|
|
4454
4454
|
reactRouterContext(children) {
|
|
4455
|
-
switch (this.props.routerType) {
|
|
4455
|
+
switch (this.props.routerType ?? exports.eRouterType.BrowserRouter) {
|
|
4456
4456
|
case exports.eRouterType.BrowserRouter:
|
|
4457
4457
|
return jsxRuntime_1(reactRouterDom.BrowserRouter, { children: children });
|
|
4458
4458
|
case exports.eRouterType.MemoryRouter:
|
|
@@ -4473,7 +4473,7 @@ class CarbonReact extends react.Component {
|
|
|
4473
4473
|
}
|
|
4474
4474
|
this.context = react.createContext(this.state);
|
|
4475
4475
|
const Context = this.context.Provider;
|
|
4476
|
-
return this.reactRouterContext(jsxRuntime_2(
|
|
4476
|
+
return this.reactRouterContext(jsxRuntime_2(jsxRuntime_3, { children: [jsxRuntime_1(GlobalHistory, {}), this.props.websocket &&
|
|
4477
4477
|
jsxRuntime_1(CarbonWebSocket, { ...(false !== this.props.websocket ? this.props.websocket : {}), instance: this }), jsxRuntime_1(Context, { value: this.state, children: this.props.children }), jsxRuntime_1(reactToastify.ToastContainer, {})] }));
|
|
4478
4478
|
}
|
|
4479
4479
|
}
|