@rotorjs/jpl 0.0.0 → 0.1.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/createJPLDashboardReducer.d.ts +1 -0
- package/dist/main.js +7 -1
- package/dist/nodes.d.ts +2 -2
- package/package.json +1 -1
|
@@ -2,5 +2,6 @@ import { DashboardEngine, DashboardReducerInit, DashboardState } from '@rotorjs/
|
|
|
2
2
|
import { JPLDashboardReducer, JPLDashboardReducerOptions } from './JPLDashboardReducer';
|
|
3
3
|
export type JPLDashboardReducerInit = {
|
|
4
4
|
src: string;
|
|
5
|
+
initialState?: DashboardState;
|
|
5
6
|
};
|
|
6
7
|
export declare function createJPLDashboardReducer(options?: JPLDashboardReducerOptions): (engine: DashboardEngine, init: DashboardReducerInit, callback: (state: DashboardState) => void) => JPLDashboardReducer<DashboardEngine>;
|
package/dist/main.js
CHANGED
|
@@ -3638,7 +3638,13 @@ var sr = class extends $n {
|
|
|
3638
3638
|
//#endregion
|
|
3639
3639
|
//#region lib/createJPLDashboardReducer.ts
|
|
3640
3640
|
function ur(e) {
|
|
3641
|
-
return (t, n, r) =>
|
|
3641
|
+
return (t, n, r) => {
|
|
3642
|
+
let { src: i, initialState: a } = n;
|
|
3643
|
+
return new lr(t, i ?? "", r, {
|
|
3644
|
+
...e,
|
|
3645
|
+
initialState: a ?? e?.initialState
|
|
3646
|
+
});
|
|
3647
|
+
};
|
|
3642
3648
|
}
|
|
3643
3649
|
//#endregion
|
|
3644
3650
|
export { lr as JPLDashboardReducer, ur as createJPLDashboardReducer };
|
package/dist/nodes.d.ts
CHANGED