@rotorjs/react 0.0.0 → 0.1.0

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.
@@ -1,7 +1,6 @@
1
- import { DashboardEventTarget, DashboardFact, DashboardVar } from '@rotorjs/dashboards';
1
+ import { DashboardEventTarget, DashboardFact, DashboardLayoutNode, DashboardTileNode, DashboardVar } from '@rotorjs/dashboards';
2
2
  import { ReactNode } from 'react';
3
- import { DashboardLayoutMap, DashboardLayoutNode } from './DashboardLayoutNode';
4
- import { DashboardTileMap, DashboardTileNode } from './DashboardTileNode';
3
+ import { DashboardLayoutMap, DashboardTileMap } from './DashboardContext';
5
4
  export type DashboardProps = {
6
5
  engine: DashboardEventTarget;
7
6
  initialVars?: {
@@ -1,6 +1,7 @@
1
- import { DashboardEventTarget, DashboardFact, DashboardVar } from '@rotorjs/dashboards';
2
- import { DashboardLayoutMap, DashboardLayoutNode } from './DashboardLayoutNode';
3
- import { DashboardTileMap } from './DashboardTileNode';
1
+ import { DashboardEventTarget, DashboardFact, DashboardLayoutNode, DashboardTileNode, DashboardVar } from '@rotorjs/dashboards';
2
+ import { ComponentType, PropsWithChildren } from 'react';
3
+ export type DashboardLayoutMap = Record<string, ComponentType<PropsWithChildren<DashboardLayoutNode>>>;
4
+ export type DashboardTileMap = Record<string, ComponentType<DashboardTileNode>>;
4
5
  export type DashboardContextValue = {
5
6
  engine: DashboardEventTarget;
6
7
  vars: {
@@ -1,5 +1,5 @@
1
+ import { DashboardLayoutNode } from '@rotorjs/dashboards';
1
2
  import { ReactNode } from 'react';
2
- import { DashboardLayoutNode } from './DashboardLayoutNode';
3
3
  export type DashboardLayoutProps = {
4
4
  layout?: DashboardLayoutNode;
5
5
  children: ReactNode;
@@ -1,4 +1,4 @@
1
- import { DashboardTileNode } from './DashboardTileNode';
1
+ import { DashboardTileNode } from '@rotorjs/dashboards';
2
2
  export type DashboardTilesProps = {
3
3
  content: DashboardTileNode[];
4
4
  };
package/dist/main.d.ts CHANGED
@@ -2,8 +2,6 @@ export * from './Dashboard';
2
2
  export * from './DashboardContext';
3
3
  export * from './DashboardError';
4
4
  export * from './DashboardLayout';
5
- export * from './DashboardLayoutNode';
6
- export * from './DashboardTileNode';
7
5
  export * from './DashboardTiles';
8
6
  export * from './getKey';
9
7
  export * from './useDashboardState';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rotorjs/react",
3
- "version": "0.0.0",
3
+ "version": "0.1.0",
4
4
  "description": "Rotor",
5
5
  "author": {
6
6
  "name": "Aaron Burmeister"
@@ -44,9 +44,8 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@eslint/js": "^10.0.1",
47
- "@jplorg/jpl": "^2.0.0",
48
47
  "@rotorjs/core": "^0.5.1",
49
- "@rotorjs/dashboards": "^0.11.0",
48
+ "@rotorjs/dashboards": "^0.12.0",
50
49
  "@types/react": "^19.1.12",
51
50
  "@types/react-dom": "^19.1.9",
52
51
  "@vitejs/plugin-react": "^6.0.1",
@@ -68,7 +67,7 @@
68
67
  },
69
68
  "peerDependencies": {
70
69
  "@rotorjs/core": "^0.5.0",
71
- "@rotorjs/dashboards": "^0.11.0"
70
+ "@rotorjs/dashboards": "^0.12.0"
72
71
  },
73
72
  "dependencies": {
74
73
  "uuid": "^14.0.0"
@@ -1,4 +0,0 @@
1
- import { DashboardNode } from '@rotorjs/dashboards';
2
- import { ComponentType, PropsWithChildren } from 'react';
3
- export type DashboardLayoutNode = DashboardNode;
4
- export type DashboardLayoutMap = Record<string, ComponentType<PropsWithChildren<DashboardLayoutNode>>>;
@@ -1,4 +0,0 @@
1
- import { DashboardNode } from '@rotorjs/dashboards';
2
- import { ComponentType } from 'react';
3
- export type DashboardTileNode = DashboardNode;
4
- export type DashboardTileMap = Record<string, ComponentType<DashboardTileNode>>;