@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.
@@ -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) => new lr(t, n.src ?? "", r, e);
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
@@ -1,10 +1,10 @@
1
1
  export type JPLDashboardLayoutNode = {
2
- type: 'jpl';
2
+ type: string;
3
3
  id?: string;
4
4
  src: string;
5
5
  };
6
6
  export type JPLDashboardTileNode = {
7
- type: 'jpl';
7
+ type: string;
8
8
  id?: string;
9
9
  src: string;
10
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rotorjs/jpl",
3
- "version": "0.0.0",
3
+ "version": "0.1.1",
4
4
  "description": "Rotor",
5
5
  "author": {
6
6
  "name": "Aaron Burmeister"