@cratis/scene.blueprint.components 1.1.0 → 2.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.
- package/.storybook/main.ts +0 -7
- package/.storybook/preview.tsx +23 -6
- package/dist/esm/for_ArcPageHeader/when_rendering_a_gallery_screen.js +2 -1
- package/dist/esm/for_ArcPageHeader/when_rendering_a_gallery_screen.js.map +1 -1
- package/dist/esm/for_componentsBlueprint/when_resolving_its_dependencies.js +1 -1
- package/dist/esm/for_componentsBlueprint/when_resolving_its_dependencies.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/for_ArcPageHeader/when_rendering_a_gallery_screen.tsx +12 -5
- package/for_componentsBlueprint/when_resolving_its_dependencies.ts +10 -2
- package/package.json +24 -18
|
@@ -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
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
/**
|
|
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: '
|
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cratis/scene.blueprint.components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.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
5
|
"author": "Cratis",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,32 +40,38 @@
|
|
|
40
40
|
"build-storybook": "storybook build"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@cratis/components": "^
|
|
44
|
-
"@cratis/scene.blueprint.default": "
|
|
45
|
-
"@cratis/scene.components": "
|
|
46
|
-
"@cratis/scene.engine": "
|
|
47
|
-
"@cratis/scene.model": "
|
|
48
|
-
"@cratis/scene.react": "
|
|
43
|
+
"@cratis/components": "^3.0.0",
|
|
44
|
+
"@cratis/scene.blueprint.default": "2.0.0",
|
|
45
|
+
"@cratis/scene.components": "2.0.0",
|
|
46
|
+
"@cratis/scene.engine": "2.0.0",
|
|
47
|
+
"@cratis/scene.model": "2.0.0",
|
|
48
|
+
"@cratis/scene.react": "2.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@cratis/components": "^
|
|
52
|
-
"@cratis/scene.blueprint.default": "
|
|
53
|
-
"@cratis/scene.components": "
|
|
54
|
-
"@cratis/scene.engine": "
|
|
55
|
-
"@cratis/scene.model": "
|
|
56
|
-
"@cratis/scene.react": "
|
|
51
|
+
"@cratis/components": "^3.0.0",
|
|
52
|
+
"@cratis/scene.blueprint.default": "2.0.0",
|
|
53
|
+
"@cratis/scene.components": "2.0.0",
|
|
54
|
+
"@cratis/scene.engine": "2.0.0",
|
|
55
|
+
"@cratis/scene.model": "2.0.0",
|
|
56
|
+
"@cratis/scene.react": "2.0.0",
|
|
57
|
+
"@primereact/core": "11.1.0",
|
|
58
|
+
"@primereact/headless": "11.1.0",
|
|
57
59
|
"@storybook/addon-links": "^10.4.1",
|
|
58
60
|
"@storybook/react": "^10.4.1",
|
|
59
61
|
"@storybook/react-vite": "^10.4.1",
|
|
60
|
-
"primeicons": "
|
|
61
|
-
"primereact": "
|
|
62
|
+
"primeicons": "8.0.0",
|
|
63
|
+
"primereact": "11.1.0",
|
|
62
64
|
"react": "^19.2.6",
|
|
63
65
|
"react-dom": "^19.2.6",
|
|
64
66
|
"storybook": "^10.4.1"
|
|
65
67
|
},
|
|
66
68
|
"peerDependencies": {
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
69
|
+
"@cratis/components": "^3.0.0",
|
|
70
|
+
"@primereact/core": "^11.0.0",
|
|
71
|
+
"@primereact/headless": "^11.0.0",
|
|
72
|
+
"primeicons": "^8.0.0",
|
|
73
|
+
"primereact": "^11.0.0",
|
|
74
|
+
"react": "^19.0.0",
|
|
75
|
+
"react-dom": "^19.0.0"
|
|
70
76
|
}
|
|
71
77
|
}
|