@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
@@ -0,0 +1,7 @@
1
+ export interface CertificationBadgeProps {
2
+ certificationDate?: string | Date;
3
+ variant?: 'default' | 'withIcon';
4
+ }
5
+ declare const CertificationBadge: ({ certificationDate, variant, }: CertificationBadgeProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default CertificationBadge;
7
+ //# sourceMappingURL=CertificationBadge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CertificationBadge.d.ts","sourceRoot":"","sources":["../../../src/components/CertificationBadge/CertificationBadge.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,uBAAuB;IACtC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;CAClC;AAED,QAAA,MAAM,kBAAkB,GAAI,iCAGzB,uBAAuB,4CA8CzB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import CertificationBadge from './CertificationBadge';
2
+ export default CertificationBadge;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CertificationBadge/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAEtD,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ 'components.certificationBadge.certified': string;
3
+ 'components.certificationBadge.certificationInProgress': string;
4
+ };
5
+ export default _default;
6
+ //# sourceMappingURL=messages.de.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.de.d.ts","sourceRoot":"","sources":["../../../src/components/CertificationBadge/messages.de.ts"],"names":[],"mappings":";;;;AAAA,wBAIE"}
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ 'components.certificationBadge.certified': string;
3
+ 'components.certificationBadge.certificationInProgress': string;
4
+ };
5
+ export default _default;
6
+ //# sourceMappingURL=messages.en.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.en.d.ts","sourceRoot":"","sources":["../../../src/components/CertificationBadge/messages.en.ts"],"names":[],"mappings":";;;;AAAA,wBAIE"}
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import FontsCustomization from '../../constants/fontCustomizations';
2
3
  export type AnalyticsFunction = ({ type, props, }: {
3
4
  type: 'track' | 'page';
4
5
  props?: Record<string, any>;
@@ -9,6 +10,8 @@ export interface ContextProviderProps {
9
10
  children: React.ReactNode;
10
11
  locale: string;
11
12
  analyticsFunction?: AnalyticsFunction;
13
+ colors?: Record<string, any>;
14
+ fonts?: FontsCustomization;
12
15
  }
13
16
  export declare const ContextProvider: React.FC<ContextProviderProps>;
14
17
  //# sourceMappingURL=ContextProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContextProvider.d.ts","sourceRoot":"","sources":["../../../src/components/ContextProvider/ContextProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAU7C,MAAM,MAAM,iBAAiB,GAAG,CAAC,EA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AAC,oBAAoB,CA6C1D,CAAC"}
@@ -2,7 +2,8 @@ import { CreditAvailability } from '../../models/fpm/FPMProject';
2
2
  export interface CreditsAvailableBadgeProps {
3
3
  status: CreditAvailability;
4
4
  href?: string;
5
+ variant?: 'default' | 'withIcon';
5
6
  }
6
- declare const CreditsAvailableBadge: ({ status, href, }: CreditsAvailableBadgeProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const CreditsAvailableBadge: ({ status, href, variant, }: CreditsAvailableBadgeProps) => import("react/jsx-runtime").JSX.Element;
7
8
  export default CreditsAvailableBadge;
8
9
  //# sourceMappingURL=CreditsAvailableBadge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreditsAvailableBadge.d.ts","sourceRoot":"","sources":["../../../src/components/CreditsAvailableBadge/CreditsAvailableBadge.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,kBAAkB,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,qBAAqB,GAAI,mBAG5B,0BAA0B,4CAgD5B,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"CreditsAvailableBadge.d.ts","sourceRoot":"","sources":["../../../src/components/CreditsAvailableBadge/CreditsAvailableBadge.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,kBAAkB,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;CAClC;AAED,QAAA,MAAM,qBAAqB,GAAI,4BAI5B,0BAA0B,4CAuE5B,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ProjectGridCard.d.ts","sourceRoot":"","sources":["../../../src/components/ProjectGridCard/ProjectGridCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAM7D,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED,eAAO,MAAM,eAAe,GAAI,cAE7B,oBAAoB,KAAG,KAAK,CAAC,GAAG,CAAC,OA2DnC,CAAC"}
1
+ {"version":3,"file":"ProjectGridCard.d.ts","sourceRoot":"","sources":["../../../src/components/ProjectGridCard/ProjectGridCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAO7D,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED,eAAO,MAAM,eAAe,GAAI,cAE7B,oBAAoB,KAAG,KAAK,CAAC,GAAG,CAAC,OA0CnC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import PortfolioProject from '../../models/PortfolioProject';
3
+ export interface ProjectGridCardV2Props {
4
+ project: PortfolioProject;
5
+ }
6
+ export declare const ProjectGridCardV2: ({ project, }: ProjectGridCardV2Props) => React.JSX.Element;
7
+ //# sourceMappingURL=ProjectGridCardV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProjectGridCardV2.d.ts","sourceRoot":"","sources":["../../../src/components/ProjectGridCardV2/ProjectGridCardV2.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAQ7D,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED,eAAO,MAAM,iBAAiB,GAAI,cAE/B,sBAAsB,KAAG,KAAK,CAAC,GAAG,CAAC,OAgFrC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ProjectGridCardV2 } from './ProjectGridCardV2';
2
+ export default ProjectGridCardV2;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ProjectGridCardV2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAe,iBAAiB,CAAC"}
@@ -5,6 +5,7 @@ import PortfolioProject from '../../models/PortfolioProject';
5
5
  import StrapiCustomerStory from '../../models/strapi/StrapiCustomerStory';
6
6
  import Locale from '../../models/Locale';
7
7
  import { AnalyticsFunction } from '../ContextProvider/ContextProvider';
8
+ import FontsCustomization from '../../constants/fontCustomizations';
8
9
  export interface CustomSliceProps {
9
10
  slice: any;
10
11
  id: string;
@@ -15,8 +16,10 @@ export interface SliceRendererProps {
15
16
  projects: PortfolioProject[];
16
17
  customerStories: IStrapiData<StrapiCustomerStory>[];
17
18
  locale?: Locale;
19
+ colors?: Record<string, any>;
20
+ fonts?: FontsCustomization;
18
21
  CustomSlice?: ({ slice, id }: CustomSliceProps) => React.JSX.Element;
19
22
  analyticsFunction?: AnalyticsFunction;
20
23
  }
21
- export declare const SliceRenderer: ({ slices, blogPosts, projects, customerStories, locale, CustomSlice, analyticsFunction, }: SliceRendererProps) => React.JSX.Element;
24
+ export declare const SliceRenderer: ({ slices, blogPosts, projects, customerStories, locale, colors, fonts, CustomSlice, analyticsFunction, }: SliceRendererProps) => React.JSX.Element;
22
25
  //# sourceMappingURL=SliceRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SliceRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/SliceRenderer/SliceRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B,OAAO,cAAc,MAAM,oCAAoC,CAAC;AAOhE,OAAO,WAAW,MAAM,iCAAiC,CAAC;AAO1D,OAAO,gBAAgB,MAAM,+BAA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