@cratis/scene.components 2.0.0 → 3.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.
@@ -2,25 +2,19 @@
2
2
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
3
 
4
4
  import { fireEvent, render, screen } from '@testing-library/react';
5
- import { PrimeReactProvider } from '@primereact/core';
6
5
  import { externalComponent } from '../../given';
7
6
  import { SceneObjectNavigationalBar } from '../SceneObjectNavigationalBar';
8
7
 
9
8
  describe('when navigating back up the trail', () => {
10
9
  /**
11
- * The `PrimeReactProvider` became mandatory with PrimeReact 11: every v11 component bottoms out in
12
- * `usePrimeReact()`, which throws when the context is absent rather than falling back to a default
13
- * configuration. The bar reaches one through the tooltip on its crumbs, so without this the spec fails
14
- * at `render` with a provider error instead of exercising the trail at all. No preset is supplied -
15
- * what is specified here is the navigation behavior, not how a crumb looks.
10
+ * No provider wrapper. Components 3 needed `PrimeReactProvider` here because the tooltip on each crumb
11
+ * bottomed out in a PrimeReact component that threw without one; Components 4 owns its own tooltip and
12
+ * this package no longer depends on PrimeReact at all. What is specified here is the navigation
13
+ * behavior, not how a crumb looks.
16
14
  */
17
15
  beforeEach(() => {
18
16
  const element = externalComponent('Cratis.Components:objectNavigationalBar', { navigationPath: ['shipping', 'address', 'street'] });
19
- render(
20
- <PrimeReactProvider>
21
- <SceneObjectNavigationalBar element={element} slots={{}} />
22
- </PrimeReactProvider>
23
- );
17
+ render(<SceneObjectNavigationalBar element={element} slots={{}} />);
24
18
  fireEvent.click(screen.getByText('address'));
25
19
  });
26
20
 
package/package.json CHANGED
@@ -1,7 +1,18 @@
1
1
  {
2
2
  "name": "@cratis/scene.components",
3
- "version": "2.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "The Cratis Components package: exposes @cratis/components' Arc-bound data, form and dialog composites as Scene components. Built on PrimeReact and Tailwind, and declares both as dependencies.",
5
+ "keywords": [
6
+ "cratis",
7
+ "scene",
8
+ "react",
9
+ "ui",
10
+ "components",
11
+ "primereact",
12
+ "tailwind",
13
+ "cqrs",
14
+ "event-sourcing"
15
+ ],
5
16
  "author": "Cratis",
6
17
  "license": "MIT",
7
18
  "repository": {
@@ -42,32 +53,25 @@
42
53
  "build-storybook": "storybook build"
43
54
  },
44
55
  "dependencies": {
45
- "@cratis/scene.engine": "2.0.0",
46
- "@cratis/scene.model": "2.0.0",
47
- "@cratis/scene.react": "2.0.0"
56
+ "@cratis/scene.engine": "3.1.0",
57
+ "@cratis/scene.model": "3.1.0",
58
+ "@cratis/scene.react": "3.1.0"
48
59
  },
49
60
  "devDependencies": {
50
- "@cratis/components": "^3.0.0",
51
- "@cratis/scene.engine": "2.0.0",
52
- "@cratis/scene.model": "2.0.0",
53
- "@cratis/scene.react": "2.0.0",
54
- "@primereact/core": "11.1.0",
55
- "@primereact/headless": "11.1.0",
61
+ "@cratis/components": "^4.1.1",
62
+ "@cratis/scene.engine": "3.1.0",
63
+ "@cratis/scene.model": "3.1.0",
64
+ "@cratis/scene.react": "3.1.0",
56
65
  "@storybook/addon-links": "^10.4.1",
57
66
  "@storybook/react": "^10.4.1",
58
67
  "@storybook/react-vite": "^10.4.1",
59
68
  "primeicons": "8.0.0",
60
- "primereact": "11.1.0",
61
69
  "react": "^19.2.6",
62
70
  "react-dom": "^19.2.6",
63
71
  "storybook": "^10.4.1"
64
72
  },
65
73
  "peerDependencies": {
66
- "@cratis/components": "^3.0.0",
67
- "@primereact/core": "^11.0.0",
68
- "@primereact/headless": "^11.0.0",
69
- "primeicons": "^8.0.0",
70
- "primereact": "^11.0.0",
74
+ "@cratis/components": "^4.1.1",
71
75
  "react": "^19.0.0",
72
76
  "react-dom": "^19.0.0"
73
77
  }