@cratis/scene.primereact 3.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.
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/primeReactPackage.js +6 -1
- package/dist/cjs/primeReactPackage.js.map +1 -1
- package/dist/cjs/theme/primeReactThemes.js +9 -2
- package/dist/cjs/theme/primeReactThemes.js.map +1 -1
- package/dist/esm/for_primeReactThemes/when_checking_attribution.js +7 -2
- package/dist/esm/for_primeReactThemes/when_checking_attribution.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/primeReactPackage.d.ts.map +1 -1
- package/dist/esm/primeReactPackage.js +6 -1
- package/dist/esm/primeReactPackage.js.map +1 -1
- package/dist/esm/theme/primeReactThemes.d.ts +2 -1
- package/dist/esm/theme/primeReactThemes.d.ts.map +1 -1
- package/dist/esm/theme/primeReactThemes.js +9 -3
- package/dist/esm/theme/primeReactThemes.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/for_primeReactThemes/when_checking_attribution.ts +12 -2
- package/package.json +7 -7
- package/primeReactPackage.ts +5 -0
- package/theme/primeReactThemes.ts +9 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright (c) Cratis. All rights reserved.
|
|
2
2
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
3
|
|
|
4
|
-
import { primeReactThemes } from '../theme';
|
|
4
|
+
import { primeReactThemeLicense, primeReactThemeLicenseUrl, primeReactThemes } from '../theme';
|
|
5
5
|
|
|
6
6
|
describe('when checking attribution', () => {
|
|
7
7
|
it('should credit an author on every theme', () => {
|
|
@@ -27,7 +27,17 @@ describe('when checking attribution', () => {
|
|
|
27
27
|
* catalog would have gone on advertising MIT indefinitely.
|
|
28
28
|
*/
|
|
29
29
|
it('should state the commercial license PrimeReact 11 actually ships under, not the MIT of v10', () => {
|
|
30
|
-
|
|
30
|
+
primeReactThemeLicense.should.equal('PrimeUI Community / Commercial');
|
|
31
|
+
primeReactThemes.filter((theme) => theme.license !== primeReactThemeLicense).should.deep.equal([]);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* A license name on its own does not tell a reader whether they qualify for the free Community tier
|
|
36
|
+
* or owe a commercial fee. The link is the part that answers that, so it is pinned too.
|
|
37
|
+
*/
|
|
38
|
+
it('should link to the terms on every theme, not just name them', () => {
|
|
39
|
+
primeReactThemeLicenseUrl.should.equal('https://primeui.dev/licenses/community');
|
|
40
|
+
primeReactThemes.filter((theme) => theme.licenseUrl !== primeReactThemeLicenseUrl).should.deep.equal([]);
|
|
31
41
|
});
|
|
32
42
|
|
|
33
43
|
it('should describe every theme for a picker', () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cratis/scene.primereact",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "The PrimeReact component package: maps Scene's abstract component names onto real PrimeReact components, and PrimeReact's free themes onto Scene themes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cratis",
|
|
@@ -52,15 +52,15 @@
|
|
|
52
52
|
"build-storybook": "storybook build"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@cratis/scene.engine": "3.
|
|
56
|
-
"@cratis/scene.model": "3.
|
|
57
|
-
"@cratis/scene.react": "3.
|
|
55
|
+
"@cratis/scene.engine": "3.1.0",
|
|
56
|
+
"@cratis/scene.model": "3.1.0",
|
|
57
|
+
"@cratis/scene.react": "3.1.0",
|
|
58
58
|
"@primeuix/themes": "^3.0.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@cratis/scene.engine": "3.
|
|
62
|
-
"@cratis/scene.model": "3.
|
|
63
|
-
"@cratis/scene.react": "3.
|
|
61
|
+
"@cratis/scene.engine": "3.1.0",
|
|
62
|
+
"@cratis/scene.model": "3.1.0",
|
|
63
|
+
"@cratis/scene.react": "3.1.0",
|
|
64
64
|
"@primereact/core": "11.1.0",
|
|
65
65
|
"@primereact/headless": "11.1.0",
|
|
66
66
|
"@primereact/types": "11.1.0",
|
package/primeReactPackage.ts
CHANGED
|
@@ -71,6 +71,11 @@ export const primeReactPackageManifest: ScenePackage = {
|
|
|
71
71
|
displayName: 'PrimeReact',
|
|
72
72
|
description: 'PrimeReact 11 components and PrimeTek\'s @primeuix/themes presets, mapped onto Scene\'s abstract component names.',
|
|
73
73
|
module: '@cratis/scene.primereact',
|
|
74
|
+
// PrimeReact 11 is PrimeTek's commercial PrimeUI, not MIT as version 10 was. The Community
|
|
75
|
+
// tier is free for eligible projects but still requires a key, so an author selecting this
|
|
76
|
+
// package needs to see the terms before they select it, not after a banner appears.
|
|
77
|
+
license: 'PrimeUI Community / Commercial',
|
|
78
|
+
licenseUrl: 'https://primeui.dev/licenses/community',
|
|
74
79
|
};
|
|
75
80
|
|
|
76
81
|
/**
|
|
@@ -41,7 +41,14 @@ export const primeReactThemeCompatibility: string[] = ['PrimeReact', 'Tailwind',
|
|
|
41
41
|
* @see https://primeui.dev/licenses/community for the free community tier and its eligibility limits.
|
|
42
42
|
* @see https://primeui.dev/licenses/commercial for the paid tier.
|
|
43
43
|
*/
|
|
44
|
-
export const primeReactThemeLicense = 'PrimeUI Commercial';
|
|
44
|
+
export const primeReactThemeLicense = 'PrimeUI Community / Commercial';
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Where those terms live. A license name alone tells a reader nothing about whether they qualify for the
|
|
48
|
+
* free Community tier or owe a commercial fee, so the catalog carries the link rather than making them
|
|
49
|
+
* search for it.
|
|
50
|
+
*/
|
|
51
|
+
export const primeReactThemeLicenseUrl = 'https://primeui.dev/licenses/community';
|
|
45
52
|
|
|
46
53
|
/**
|
|
47
54
|
* Every theme this package ships, as Scene {@link Theme}s.
|
|
@@ -61,6 +68,7 @@ export const primeReactThemes: Theme[] = themePresets.map((preset) => ({
|
|
|
61
68
|
author: 'PrimeTek',
|
|
62
69
|
authorUrl: 'https://primereact.org',
|
|
63
70
|
license: primeReactThemeLicense,
|
|
71
|
+
licenseUrl: primeReactThemeLicenseUrl,
|
|
64
72
|
}));
|
|
65
73
|
|
|
66
74
|
/**
|