@cratis/scene.blueprint.components 1.1.0 → 3.0.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,6 +2,7 @@
2
2
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
3
 
4
4
  import { render, screen } from '@testing-library/react';
5
+ import { PrimeReactProvider } from '@primereact/core';
5
6
  import { SceneElement } from '@cratis/scene.model';
6
7
  import { SceneElementView } from '@cratis/scene.react';
7
8
  import { clearBindings, registerQuery } from '@cratis/scene.components';
@@ -11,13 +12,19 @@ import { SampleBindingName, arcPageHeader } from '../templates';
11
12
 
12
13
  class AllInvoices {}
13
14
 
15
+ // These pages render inside the default blueprint's shell, which reaches for PrimeReact directly. Every
16
+ // PrimeReact 11 component resolves its configuration through `PrimeReactProvider` and throws without one,
17
+ // so the provider is what makes the render happen at all rather than a styling nicety. No preset is handed
18
+ // over: these specs assert structure and text, and a theme would only add runtime CSS nothing here reads.
14
19
  function renderElement(element: SceneElement) {
15
20
  render(
16
- <SceneElementView
17
- element={resolveElementComponentNames(element, componentsBlueprintProfile, componentsBlueprintCatalog)}
18
- registry={componentsPreviewRegistry}
19
- resolveBinding={() => undefined}
20
- />,
21
+ <PrimeReactProvider>
22
+ <SceneElementView
23
+ element={resolveElementComponentNames(element, componentsBlueprintProfile, componentsBlueprintCatalog)}
24
+ registry={componentsPreviewRegistry}
25
+ resolveBinding={() => undefined}
26
+ />
27
+ </PrimeReactProvider>,
21
28
  );
22
29
  }
23
30
 
@@ -21,10 +21,18 @@ const tailwind: ScenePackage = {
21
21
  themes: [],
22
22
  };
23
23
 
24
- /** The base component library both of this blueprint's dependencies are written against, at the version this repository pins. */
24
+ /**
25
+ * The base component library both of this blueprint's dependencies are written against, at the version
26
+ * this repository pins.
27
+ *
28
+ * The version is load-bearing rather than incidental: `Cratis.Components` declares a required range on
29
+ * `PrimeReact`, and this fixture is what that range is resolved against. It moved to 11.1.0 with the
30
+ * PrimeReact 11 migration, and a stale 10.x here fails the selection as a version conflict - which is the
31
+ * spec doing its job, not a spec to be relaxed.
32
+ */
25
33
  const primeReact: ScenePackage = {
26
34
  name: 'PrimeReact',
27
- version: '10.9.8',
35
+ version: '11.1.0',
28
36
  kind: PackageKind.ComponentLibrary,
29
37
  dependencies: [{ name: 'Tailwind' }],
30
38
  components: ['column', 'table', 'dialog'],
package/package.json CHANGED
@@ -1,7 +1,17 @@
1
1
  {
2
2
  "name": "@cratis/scene.blueprint.components",
3
- "version": "1.1.0",
3
+ "version": "3.0.0",
4
4
  "description": "A blueprint of Arc-bound screen and dialog templates: full pages built from Cratis Components composites, so a data list, a command form or a master-detail screen is a template rather than something you assemble.",
5
+ "keywords": [
6
+ "cratis",
7
+ "scene",
8
+ "react",
9
+ "ui",
10
+ "templates",
11
+ "blueprint",
12
+ "cqrs",
13
+ "event-sourcing"
14
+ ],
5
15
  "author": "Cratis",
6
16
  "license": "MIT",
7
17
  "repository": {
@@ -40,32 +50,38 @@
40
50
  "build-storybook": "storybook build"
41
51
  },
42
52
  "dependencies": {
43
- "@cratis/components": "^2.8.1",
44
- "@cratis/scene.blueprint.default": "1.1.0",
45
- "@cratis/scene.components": "1.1.0",
46
- "@cratis/scene.engine": "1.1.0",
47
- "@cratis/scene.model": "1.1.0",
48
- "@cratis/scene.react": "1.1.0"
53
+ "@cratis/components": "^4.1.1",
54
+ "@cratis/scene.blueprint.default": "3.0.0",
55
+ "@cratis/scene.components": "3.0.0",
56
+ "@cratis/scene.engine": "3.0.0",
57
+ "@cratis/scene.model": "3.0.0",
58
+ "@cratis/scene.react": "3.0.0"
49
59
  },
50
60
  "devDependencies": {
51
- "@cratis/components": "^2.8.1",
52
- "@cratis/scene.blueprint.default": "1.1.0",
53
- "@cratis/scene.components": "1.1.0",
54
- "@cratis/scene.engine": "1.1.0",
55
- "@cratis/scene.model": "1.1.0",
56
- "@cratis/scene.react": "1.1.0",
61
+ "@cratis/components": "^4.1.1",
62
+ "@cratis/scene.blueprint.default": "3.0.0",
63
+ "@cratis/scene.components": "3.0.0",
64
+ "@cratis/scene.engine": "3.0.0",
65
+ "@cratis/scene.model": "3.0.0",
66
+ "@cratis/scene.react": "3.0.0",
67
+ "@primereact/core": "11.1.0",
68
+ "@primereact/headless": "11.1.0",
57
69
  "@storybook/addon-links": "^10.4.1",
58
70
  "@storybook/react": "^10.4.1",
59
71
  "@storybook/react-vite": "^10.4.1",
60
- "primeicons": "^7.0.0",
61
- "primereact": "10.9.8",
72
+ "primeicons": "8.0.0",
73
+ "primereact": "11.1.0",
62
74
  "react": "^19.2.6",
63
75
  "react-dom": "^19.2.6",
64
76
  "storybook": "^10.4.1"
65
77
  },
66
78
  "peerDependencies": {
67
- "primereact": "^10.9.0",
68
- "react": "^18.0.0 || ^19.0.0",
69
- "react-dom": "^18.0.0 || ^19.0.0"
79
+ "@cratis/components": "^4.1.1",
80
+ "@primereact/core": "^11.0.0",
81
+ "@primereact/headless": "^11.0.0",
82
+ "primeicons": "^8.0.0",
83
+ "primereact": "^11.0.0",
84
+ "react": "^19.0.0",
85
+ "react-dom": "^19.0.0"
70
86
  }
71
87
  }