@treely/strapi-slices 8.0.4 → 8.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/components/CertificationBadge/CertificationBadge.d.ts +7 -0
- package/dist/components/CertificationBadge/CertificationBadge.d.ts.map +1 -0
- package/dist/components/CertificationBadge/index.d.ts +3 -0
- package/dist/components/CertificationBadge/index.d.ts.map +1 -0
- package/dist/components/CertificationBadge/messages.de.d.ts +6 -0
- package/dist/components/CertificationBadge/messages.de.d.ts.map +1 -0
- package/dist/components/CertificationBadge/messages.en.d.ts +6 -0
- package/dist/components/CertificationBadge/messages.en.d.ts.map +1 -0
- package/dist/components/CreditsAvailableBadge/CreditsAvailableBadge.d.ts +2 -1
- package/dist/components/CreditsAvailableBadge/CreditsAvailableBadge.d.ts.map +1 -1
- package/dist/components/ProjectGridCard/ProjectGridCard.d.ts.map +1 -1
- package/dist/components/ProjectGridCardV2/ProjectGridCardV2.d.ts +7 -0
- package/dist/components/ProjectGridCardV2/ProjectGridCardV2.d.ts.map +1 -0
- package/dist/components/ProjectGridCardV2/index.d.ts +3 -0
- package/dist/components/ProjectGridCardV2/index.d.ts.map +1 -0
- package/dist/components/SliceRenderer/SliceRenderer.d.ts.map +1 -1
- package/dist/index.cjs +1208 -958
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +1125 -875
- package/dist/index.js.map +4 -4
- package/dist/rootMessages.de.d.ts +2 -2
- package/dist/rootMessages.en.d.ts +2 -2
- package/dist/slices/Facts/Facts.d.ts.map +1 -1
- package/dist/slices/HeroWithHighlights/HeroWithHighlights.d.ts +17 -0
- package/dist/slices/HeroWithHighlights/HeroWithHighlights.d.ts.map +1 -0
- package/dist/slices/HeroWithHighlights/index.d.ts +3 -0
- package/dist/slices/HeroWithHighlights/index.d.ts.map +1 -0
- package/dist/slices/ProjectsGridV2/ProjectsGridV2.d.ts +13 -0
- package/dist/slices/ProjectsGridV2/ProjectsGridV2.d.ts.map +1 -0
- package/dist/slices/ProjectsGridV2/index.d.ts +3 -0
- package/dist/slices/ProjectsGridV2/index.d.ts.map +1 -0
- package/dist/utils/getMessages.d.ts +4 -4
- package/package.json +1 -1
- package/dist/components/ProjectGridCard/messages.de.d.ts +0 -6
- package/dist/components/ProjectGridCard/messages.de.d.ts.map +0 -1
- package/dist/components/ProjectGridCard/messages.en.d.ts +0 -6
- package/dist/components/ProjectGridCard/messages.en.d.ts.map +0 -1
|
@@ -38,8 +38,6 @@ declare const rootMessagesDe: {
|
|
|
38
38
|
'sections.cta.backgroundShapes': string;
|
|
39
39
|
'sections.cta.backgroundShapesLight': string;
|
|
40
40
|
'sections.comparison.backgroundShapes': string;
|
|
41
|
-
'components.projectGridCard.certified': string;
|
|
42
|
-
'components.projectGridCard.certificationInProgress': string;
|
|
43
41
|
'portfolio.smallCheckout.price.taxNotIncluded': string;
|
|
44
42
|
'portfolio.smallCheckout.price.taxIncluded': string;
|
|
45
43
|
'portfolio.smallCheckout.contributionValueCurrency.label.CHF': string;
|
|
@@ -84,6 +82,8 @@ declare const rootMessagesDe: {
|
|
|
84
82
|
'components.creditsAvailableBadge.text.some': string;
|
|
85
83
|
'components.creditsAvailableBadge.text.no': string;
|
|
86
84
|
'components.creditsAvailableBadge.text.notYet': string;
|
|
85
|
+
'components.certificationBadge.certified': string;
|
|
86
|
+
'components.certificationBadge.certificationInProgress': string;
|
|
87
87
|
};
|
|
88
88
|
export default rootMessagesDe;
|
|
89
89
|
//# sourceMappingURL=rootMessages.de.d.ts.map
|
|
@@ -38,8 +38,6 @@ declare const rootMessagesEn: {
|
|
|
38
38
|
'sections.cta.backgroundShapesDark': string;
|
|
39
39
|
'sections.cta.backgroundShapesLight': string;
|
|
40
40
|
'sections.comparison.backgroundShapes': string;
|
|
41
|
-
'components.projectGridCard.certified': string;
|
|
42
|
-
'components.projectGridCard.certificationInProgress': string;
|
|
43
41
|
'portfolio.smallCheckout.price.taxNotIncluded': string;
|
|
44
42
|
'portfolio.smallCheckout.price.taxIncluded': string;
|
|
45
43
|
'portfolio.smallCheckout.contributionValueCurrency.label.CHF': string;
|
|
@@ -84,6 +82,8 @@ declare const rootMessagesEn: {
|
|
|
84
82
|
'components.creditsAvailableBadge.text.some': string;
|
|
85
83
|
'components.creditsAvailableBadge.text.no': string;
|
|
86
84
|
'components.creditsAvailableBadge.text.notYet': string;
|
|
85
|
+
'components.certificationBadge.certified': string;
|
|
86
|
+
'components.certificationBadge.certificationInProgress': string;
|
|
87
87
|
};
|
|
88
88
|
export default rootMessagesEn;
|
|
89
89
|
//# sourceMappingURL=rootMessages.en.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Facts.d.ts","sourceRoot":"","sources":["../../../src/slices/Facts/Facts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,UAAU,MAAM,gCAAgC,CAAC;AAExD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE;QACL,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,UAAU,CAAC;QACpB,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;QACpC,KAAK,EAAE;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;KACzC,CAAC;CACH;AA6BD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"Facts.d.ts","sourceRoot":"","sources":["../../../src/slices/Facts/Facts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,UAAU,MAAM,gCAAgC,CAAC;AAExD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE;QACL,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,UAAU,CAAC;QACpB,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;QACpC,KAAK,EAAE;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;KACzC,CAAC;CACH;AA6BD,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAsFtC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface HeroWithHighlightsProps {
|
|
3
|
+
slice: {
|
|
4
|
+
/**
|
|
5
|
+
* Title with optional highlights. Use [text] to mark highlighted parts.
|
|
6
|
+
* Example: "Forest project [Portfolio]" or "[Participation requirements] for forest conversion"
|
|
7
|
+
*/
|
|
8
|
+
title: string;
|
|
9
|
+
subTitle?: string;
|
|
10
|
+
headingLevel?: 'h1' | 'h2' | 'h3';
|
|
11
|
+
headingSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl';
|
|
12
|
+
variant?: 'white' | 'gray';
|
|
13
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare const HeroWithHighlights: React.FC<HeroWithHighlightsProps>;
|
|
17
|
+
//# sourceMappingURL=HeroWithHighlights.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeroWithHighlights.d.ts","sourceRoot":"","sources":["../../../src/slices/HeroWithHighlights/HeroWithHighlights.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE;QACL;;;WAGG;QACH,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;QAClC,WAAW,CAAC,EACR,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;QACV,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;KACzC,CAAC;CACH;AAwBD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA6ChE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/slices/HeroWithHighlights/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PortfolioProject from '../../models/PortfolioProject';
|
|
3
|
+
import IStrapi from '../../models/strapi/IStrapi';
|
|
4
|
+
import IStrapiData from '../../models/strapi/IStrapiData';
|
|
5
|
+
import StrapiProject from '../../models/strapi/StrapiProject';
|
|
6
|
+
export interface ProjectsGridV2Props {
|
|
7
|
+
slice: {
|
|
8
|
+
projects: IStrapi<IStrapiData<StrapiProject>[]>;
|
|
9
|
+
};
|
|
10
|
+
projects: PortfolioProject[];
|
|
11
|
+
}
|
|
12
|
+
export declare const ProjectsGridV2: React.FC<ProjectsGridV2Props>;
|
|
13
|
+
//# sourceMappingURL=ProjectsGridV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectsGridV2.d.ts","sourceRoot":"","sources":["../../../src/slices/ProjectsGridV2/ProjectsGridV2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,OAAO,MAAM,6BAA6B,CAAC;AAClD,OAAO,WAAW,MAAM,iCAAiC,CAAC;AAC1D,OAAO,aAAa,MAAM,mCAAmC,CAAC;AAG9D,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE;QACL,QAAQ,EAAE,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;KACjD,CAAC;IACF,QAAQ,EAAE,gBAAgB,EAAE,CAAC;CAC9B;AAYD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAkDxD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/slices/ProjectsGridV2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,eAAe,cAAc,CAAC"}
|
|
@@ -38,8 +38,6 @@ declare const getMessages: (locale: string) => {
|
|
|
38
38
|
'sections.cta.backgroundShapes': string;
|
|
39
39
|
'sections.cta.backgroundShapesLight': string;
|
|
40
40
|
'sections.comparison.backgroundShapes': string;
|
|
41
|
-
'components.projectGridCard.certified': string;
|
|
42
|
-
'components.projectGridCard.certificationInProgress': string;
|
|
43
41
|
'portfolio.smallCheckout.price.taxNotIncluded': string;
|
|
44
42
|
'portfolio.smallCheckout.price.taxIncluded': string;
|
|
45
43
|
'portfolio.smallCheckout.contributionValueCurrency.label.CHF': string;
|
|
@@ -84,6 +82,8 @@ declare const getMessages: (locale: string) => {
|
|
|
84
82
|
'components.creditsAvailableBadge.text.some': string;
|
|
85
83
|
'components.creditsAvailableBadge.text.no': string;
|
|
86
84
|
'components.creditsAvailableBadge.text.notYet': string;
|
|
85
|
+
'components.certificationBadge.certified': string;
|
|
86
|
+
'components.certificationBadge.certificationInProgress': string;
|
|
87
87
|
} | {
|
|
88
88
|
'unit.formatter.tonsCo2': string;
|
|
89
89
|
'unit.formatter.tonsCo2PerYear': string;
|
|
@@ -124,8 +124,6 @@ declare const getMessages: (locale: string) => {
|
|
|
124
124
|
'sections.cta.backgroundShapesDark': string;
|
|
125
125
|
'sections.cta.backgroundShapesLight': string;
|
|
126
126
|
'sections.comparison.backgroundShapes': string;
|
|
127
|
-
'components.projectGridCard.certified': string;
|
|
128
|
-
'components.projectGridCard.certificationInProgress': string;
|
|
129
127
|
'portfolio.smallCheckout.price.taxNotIncluded': string;
|
|
130
128
|
'portfolio.smallCheckout.price.taxIncluded': string;
|
|
131
129
|
'portfolio.smallCheckout.contributionValueCurrency.label.CHF': string;
|
|
@@ -170,6 +168,8 @@ declare const getMessages: (locale: string) => {
|
|
|
170
168
|
'components.creditsAvailableBadge.text.some': string;
|
|
171
169
|
'components.creditsAvailableBadge.text.no': string;
|
|
172
170
|
'components.creditsAvailableBadge.text.notYet': string;
|
|
171
|
+
'components.certificationBadge.certified': string;
|
|
172
|
+
'components.certificationBadge.certificationInProgress': string;
|
|
173
173
|
};
|
|
174
174
|
export default getMessages;
|
|
175
175
|
//# sourceMappingURL=getMessages.d.ts.map
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.de.d.ts","sourceRoot":"","sources":["../../../src/components/ProjectGridCard/messages.de.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,UAAU;;;CAIf,CAAC;AACF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.en.d.ts","sourceRoot":"","sources":["../../../src/components/ProjectGridCard/messages.en.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,UAAU;;;CAIf,CAAC;AACF,eAAe,UAAU,CAAC"}
|