@treely/strapi-slices 8.0.3 → 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.
Files changed (42) hide show
  1. package/dist/components/CertificationBadge/CertificationBadge.d.ts +7 -0
  2. package/dist/components/CertificationBadge/CertificationBadge.d.ts.map +1 -0
  3. package/dist/components/CertificationBadge/index.d.ts +3 -0
  4. package/dist/components/CertificationBadge/index.d.ts.map +1 -0
  5. package/dist/components/CertificationBadge/messages.de.d.ts +6 -0
  6. package/dist/components/CertificationBadge/messages.de.d.ts.map +1 -0
  7. package/dist/components/CertificationBadge/messages.en.d.ts +6 -0
  8. package/dist/components/CertificationBadge/messages.en.d.ts.map +1 -0
  9. package/dist/components/ContextProvider/ContextProvider.d.ts +3 -0
  10. package/dist/components/ContextProvider/ContextProvider.d.ts.map +1 -1
  11. package/dist/components/CreditsAvailableBadge/CreditsAvailableBadge.d.ts +2 -1
  12. package/dist/components/CreditsAvailableBadge/CreditsAvailableBadge.d.ts.map +1 -1
  13. package/dist/components/ProjectGridCard/ProjectGridCard.d.ts.map +1 -1
  14. package/dist/components/ProjectGridCardV2/ProjectGridCardV2.d.ts +7 -0
  15. package/dist/components/ProjectGridCardV2/ProjectGridCardV2.d.ts.map +1 -0
  16. package/dist/components/ProjectGridCardV2/index.d.ts +3 -0
  17. package/dist/components/ProjectGridCardV2/index.d.ts.map +1 -0
  18. package/dist/components/SliceRenderer/SliceRenderer.d.ts +4 -1
  19. package/dist/components/SliceRenderer/SliceRenderer.d.ts.map +1 -1
  20. package/dist/index.cjs +1446 -1183
  21. package/dist/index.cjs.map +4 -4
  22. package/dist/index.d.ts +2 -1
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +1362 -1099
  25. package/dist/index.js.map +4 -4
  26. package/dist/rootMessages.de.d.ts +2 -2
  27. package/dist/rootMessages.en.d.ts +2 -2
  28. package/dist/slices/Facts/Facts.d.ts.map +1 -1
  29. package/dist/slices/HeroWithHighlights/HeroWithHighlights.d.ts +17 -0
  30. package/dist/slices/HeroWithHighlights/HeroWithHighlights.d.ts.map +1 -0
  31. package/dist/slices/HeroWithHighlights/index.d.ts +3 -0
  32. package/dist/slices/HeroWithHighlights/index.d.ts.map +1 -0
  33. package/dist/slices/ProjectsGridV2/ProjectsGridV2.d.ts +13 -0
  34. package/dist/slices/ProjectsGridV2/ProjectsGridV2.d.ts.map +1 -0
  35. package/dist/slices/ProjectsGridV2/index.d.ts +3 -0
  36. package/dist/slices/ProjectsGridV2/index.d.ts.map +1 -0
  37. package/dist/utils/getMessages.d.ts +4 -4
  38. package/package.json +1 -1
  39. package/dist/components/ProjectGridCard/messages.de.d.ts +0 -6
  40. package/dist/components/ProjectGridCard/messages.de.d.ts.map +0 -1
  41. package/dist/components/ProjectGridCard/messages.en.d.ts +0 -6
  42. 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,CAqFtC,CAAC"}
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,3 @@
1
+ import { HeroWithHighlights } from './HeroWithHighlights';
2
+ export default HeroWithHighlights;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ import { ProjectsGridV2 } from './ProjectsGridV2';
2
+ export default ProjectsGridV2;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@treely/strapi-slices",
3
- "version": "8.0.3",
3
+ "version": "8.1.0",
4
4
  "license": "MIT",
5
5
  "author": "Tree.ly FlexCo",
6
6
  "description": "@treely/strapi-slices is a open source library maintained by Tree.ly.",
@@ -1,6 +0,0 @@
1
- declare const messagesDe: {
2
- 'components.projectGridCard.certified': string;
3
- 'components.projectGridCard.certificationInProgress': string;
4
- };
5
- export default messagesDe;
6
- //# sourceMappingURL=messages.de.d.ts.map
@@ -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,6 +0,0 @@
1
- declare const messagesDe: {
2
- 'components.projectGridCard.certified': string;
3
- 'components.projectGridCard.certificationInProgress': string;
4
- };
5
- export default messagesDe;
6
- //# sourceMappingURL=messages.en.d.ts.map
@@ -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"}