@rebasepro/plugin-insights 0.21.0 → 0.21.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.
Files changed (2) hide show
  1. package/README.md +9 -5
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -9,10 +9,10 @@ pnpm add @rebasepro/plugin-insights
9
9
  ```
10
10
 
11
11
  ESM-only: `"type": "module"` with no CommonJS build, so it is loaded with
12
- `import`. `require()` of it resolves only on Node 22.12+, which supports
13
- `require(esm)`.
12
+ `import`. It needs Node `>=22.22.0` (its `engines` floor), where `require()`
13
+ of it resolves too: Node has supported `require(esm)` since 22.12.
14
14
 
15
- **Peer dependencies:** `react >= 19.0.0`, `react-dom >= 19.0.0`
15
+ **Peer dependencies:** `react ^19.2.7`, `react-dom ^19.2.7`
16
16
 
17
17
  ## What This Package Does
18
18
 
@@ -68,6 +68,8 @@ Collection-level insights are the single source of truth: define once under `col
68
68
  ## Quick Start
69
69
 
70
70
  ```tsx
71
+ import { Rebase } from "@rebasepro/app";
72
+ import { RebaseShell } from "@rebasepro/cms";
71
73
  import { useInsightsPlugin } from "@rebasepro/plugin-insights";
72
74
 
73
75
  const insightsPlugin = useInsightsPlugin({
@@ -109,11 +111,13 @@ const insightsPlugin = useInsightsPlugin({
109
111
  });
110
112
 
111
113
  // Pass to your Rebase app:
112
- <RebaseFirebaseApp plugins={[insightsPlugin]} />
114
+ <Rebase client={rebaseClient} plugins={[insightsPlugin]}>
115
+ <RebaseShell />
116
+ </Rebase>
113
117
  ```
114
118
 
115
119
  ## Related Packages
116
120
 
117
121
  - `@rebasepro/app` — Core framework providing the plugin system
118
- - `@rebasepro/types` — Shared types (`RebasePlugin`, `SlotContribution`)
122
+ - `@rebasepro/cms-types` — Shared types (`RebasePlugin`, `SlotContribution`)
119
123
  - `@rebasepro/ui` — UI components used by insight widgets
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebasepro/plugin-insights",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "description": "Insights plugin for the Rebase admin panel: charts and saved queries over your collections.",
5
5
  "keywords": [
6
6
  "rebase",
@@ -36,10 +36,10 @@
36
36
  "./package.json": "./package.json"
37
37
  },
38
38
  "dependencies": {
39
- "@rebasepro/app": "0.21.0",
40
- "@rebasepro/types": "0.21.0",
41
- "@rebasepro/cms-types": "0.21.0",
42
- "@rebasepro/ui": "0.21.0"
39
+ "@rebasepro/app": "0.21.1",
40
+ "@rebasepro/types": "0.21.1",
41
+ "@rebasepro/cms-types": "0.21.1",
42
+ "@rebasepro/ui": "0.21.1"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": "^19.2.7",