piral-dashboard 0.15.0-alpha.4041 → 0.15.0-alpha.4231

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/esm/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ComponentType } from 'react';
1
+ import type { ComponentType, ReactNode } from 'react';
2
2
  import type { RouteComponentProps } from 'react-router-dom';
3
3
  import type { Dict, WrappedComponent, BaseComponentProps, AnyComponent, BaseRegistration, RegistrationDisposer } from 'piral-core';
4
4
  declare module 'piral-core/lib/types/custom' {
@@ -50,6 +50,10 @@ export interface InitialTile {
50
50
  preferences?: TilePreferences;
51
51
  }
52
52
  export interface DashboardContainerProps extends RouteComponentProps {
53
+ /**
54
+ * The tiles to display.
55
+ */
56
+ children?: ReactNode;
53
57
  }
54
58
  export interface DashboardTileProps {
55
59
  /**
@@ -68,6 +72,10 @@ export interface DashboardTileProps {
68
72
  * The provided tile preferences.
69
73
  */
70
74
  meta: TilePreferences;
75
+ /**
76
+ * The content of the tile to display.
77
+ */
78
+ children?: ReactNode;
71
79
  }
72
80
  export interface TileErrorInfoProps {
73
81
  /**
package/lib/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./create"), exports);
5
- (0, tslib_1.__exportStar)(require("./components"), exports);
6
- (0, tslib_1.__exportStar)(require("./Dashboard"), exports);
7
- (0, tslib_1.__exportStar)(require("./types"), exports);
4
+ tslib_1.__exportStar(require("./create"), exports);
5
+ tslib_1.__exportStar(require("./components"), exports);
6
+ tslib_1.__exportStar(require("./Dashboard"), exports);
7
+ tslib_1.__exportStar(require("./types"), exports);
8
8
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,wDAAyB;AACzB,4DAA6B;AAC7B,2DAA4B;AAC5B,uDAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB;AACzB,uDAA6B;AAC7B,sDAA4B;AAC5B,kDAAwB"}
package/lib/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ComponentType } from 'react';
1
+ import type { ComponentType, ReactNode } from 'react';
2
2
  import type { RouteComponentProps } from 'react-router-dom';
3
3
  import type { Dict, WrappedComponent, BaseComponentProps, AnyComponent, BaseRegistration, RegistrationDisposer } from 'piral-core';
4
4
  declare module 'piral-core/lib/types/custom' {
@@ -50,6 +50,10 @@ export interface InitialTile {
50
50
  preferences?: TilePreferences;
51
51
  }
52
52
  export interface DashboardContainerProps extends RouteComponentProps {
53
+ /**
54
+ * The tiles to display.
55
+ */
56
+ children?: ReactNode;
53
57
  }
54
58
  export interface DashboardTileProps {
55
59
  /**
@@ -68,6 +72,10 @@ export interface DashboardTileProps {
68
72
  * The provided tile preferences.
69
73
  */
70
74
  meta: TilePreferences;
75
+ /**
76
+ * The content of the tile to display.
77
+ */
78
+ children?: ReactNode;
71
79
  }
72
80
  export interface TileErrorInfoProps {
73
81
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piral-dashboard",
3
- "version": "0.15.0-alpha.4041",
3
+ "version": "0.15.0-alpha.4231",
4
4
  "description": "Plugin for creating a centralized dashboard in Piral.",
5
5
  "keywords": [
6
6
  "piral",
@@ -20,6 +20,19 @@
20
20
  "module": "esm/index.js",
21
21
  "main": "lib/index.js",
22
22
  "typings": "lib/index.d.ts",
23
+ "exports": {
24
+ ".": {
25
+ "import": "./esm/index.js",
26
+ "require": "./lib/index.js"
27
+ },
28
+ "./esm/*": {
29
+ "import": "./esm/*"
30
+ },
31
+ "./lib/*": {
32
+ "require": "./lib/*"
33
+ },
34
+ "./package.json": "./package.json"
35
+ },
23
36
  "sideEffects": false,
24
37
  "files": [
25
38
  "esm",
@@ -44,14 +57,14 @@
44
57
  "test": "echo \"Error: run tests from root\" && exit 1"
45
58
  },
46
59
  "devDependencies": {
47
- "@types/react": "^17.0.0",
60
+ "@types/react": "^18.0.0",
48
61
  "@types/react-router-dom": "^5.1.6",
49
- "piral-core": "0.15.0-alpha.4041",
50
- "react": "^17.0.1"
62
+ "piral-core": "0.15.0-alpha.4231",
63
+ "react": "^18.0.0"
51
64
  },
52
65
  "peerDependencies": {
53
- "piral-core": "0.14.x",
66
+ "piral-core": "0.14.x || 0.15.x",
54
67
  "react": ">=16.8.0"
55
68
  },
56
- "gitHead": "3d305d88c72e3e05a44acbf240a38f6ad7b03959"
69
+ "gitHead": "4e7f158bd276d82c5bf2c19d47ccfb3604f38e38"
57
70
  }
package/src/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ComponentType } from 'react';
1
+ import type { ComponentType, ReactNode } from 'react';
2
2
  import type { RouteComponentProps } from 'react-router-dom';
3
3
  import type {
4
4
  Dict,
@@ -62,7 +62,12 @@ export interface InitialTile {
62
62
  preferences?: TilePreferences;
63
63
  }
64
64
 
65
- export interface DashboardContainerProps extends RouteComponentProps {}
65
+ export interface DashboardContainerProps extends RouteComponentProps {
66
+ /**
67
+ * The tiles to display.
68
+ */
69
+ children?: ReactNode;
70
+ }
66
71
 
67
72
  export interface DashboardTileProps {
68
73
  /**
@@ -81,6 +86,10 @@ export interface DashboardTileProps {
81
86
  * The provided tile preferences.
82
87
  */
83
88
  meta: TilePreferences;
89
+ /**
90
+ * The content of the tile to display.
91
+ */
92
+ children?: ReactNode;
84
93
  }
85
94
 
86
95
  export interface TileErrorInfoProps {