@treely/strapi-slices 4.4.7 → 5.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/README.md CHANGED
@@ -63,17 +63,19 @@ Install the package:
63
63
 
64
64
  ```bash
65
65
  npm install @treely/strapi-slices
66
+ npm install boemly
66
67
  ```
67
68
 
68
69
  Use the slices:
69
70
 
70
- ```typescript
71
+ ```tsx
71
72
  import {
72
73
  IStrapiData,
73
74
  SliceRenderer,
74
75
  StrapiBlogPost,
75
76
  StrapiCustomerStory,
76
77
  } from '@treely/strapi-slices';
78
+ import { BoemlyThemeProvider } from 'boemly';
77
79
 
78
80
  // Get the slices, blog posts, and customer stories from Strapi
79
81
  // Get the projects from the FPM API
@@ -83,11 +85,13 @@ const projects: PortfolioProject[] = [];
83
85
  const customerStories: IStrapiData<StrapiCustomerStory> = [];
84
86
 
85
87
  const App = (): JSX.Element => (
86
- <SliceRenderer
87
- slices={slices}
88
- blogPosts={blogPosts}
89
- projects={projects}
90
- customerStories={customerStories}
91
- />
88
+ <BoemlyThemeProvider>
89
+ <SliceRenderer
90
+ slices={slices}
91
+ blogPosts={blogPosts}
92
+ projects={projects}
93
+ customerStories={customerStories}
94
+ />
95
+ </BoemlyThemeProvider>
92
96
  );
93
97
  ```
@@ -0,0 +1 @@
1
+ export declare const FONT_STYLE: import("@emotion/utils").SerializedStyles;
@@ -2386,14 +2386,7 @@ var unitMessagesEn = {
2386
2386
  var rootMessagesEn = /*#__PURE__*/_extends({}, messagesEn$5, messagesEn$4, messagesEn$1, messagesEn$3, messagesEn$2, messagesEn$c, messagesEn$b, messagesEn$a, messagesEn$9, messagesEn$8, messagesEn$7, messagesEn$6, messagesEn, unitMessagesEn);
2387
2387
 
2388
2388
  var _templateObject$4;
2389
- var GLOBAL_STYLE = /*#__PURE__*/react$1.css(_templateObject$4 || (_templateObject$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n // GintoNord\n @font-face {\n font-family: 'GintoNord';\n src: url('", "/assets/v3/fonts/ABCGintoNord-Bold.woff2')\n format('woff2');\n font-style: normal;\n font-weight: 700;\n font-display: block;\n }\n // Inter\n @font-face {\n font-family: 'Inter';\n src: url('", "/assets/v3/fonts/Inter-Regular.woff2') format('woff2');\n font-style: normal;\n font-weight: 400;\n font-display: block;\n }\n @font-face {\n font-family: 'Inter';\n src: url('", "/assets/v3/fonts/Inter-Medium.woff2') format('woff2');\n font-style: normal;\n font-weight: 500;\n font-display: block;\n }\n @font-face {\n font-family: 'Inter';\n src: url('", "/assets/v3/fonts/Inter-SemiBold.woff2') format('woff2');\n font-style: normal;\n font-weight: 600;\n font-display: block;\n }\n @font-face {\n font-family: 'Inter';\n src: url('", "/assets/v3/fonts/Inter-Bold.woff2') format('woff2');\n font-style: normal;\n font-weight: 700;\n font-display: block;\n }\n // SpaceMono\n @font-face {\n font-family: 'SpaceMono';\n src: url('", "/assets/v3/fonts/SpaceMono-Bold.woff2') format('woff2');\n font-style: normal;\n font-weight: 700;\n font-display: block;\n }\n\n :root {\n --default-hero-height: calc(100vh - var(--boemly-space-24));\n }\n\n a {\n text-decoration: none;\n }\n"])), CDN_URI, CDN_URI, CDN_URI, CDN_URI, CDN_URI, CDN_URI);
2390
-
2391
- var FONT_CUSTOMIZATIONS = {
2392
- body: 'Inter',
2393
- heading: 'Inter',
2394
- display: 'GintoNord',
2395
- mono: 'SpaceMono'
2396
- };
2389
+ var GLOBAL_STYLE = /*#__PURE__*/react$1.css(_templateObject$4 || (_templateObject$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n :root {\n --default-hero-height: calc(100vh - var(--boemly-space-24));\n }\n\n a {\n text-decoration: none;\n }\n"])));
2397
2390
 
2398
2391
  var cache = /*#__PURE__*/reactIntl.createIntlCache();
2399
2392
  var intlFactory = function intlFactory(locale) {
@@ -2409,9 +2402,7 @@ var IntlContext = /*#__PURE__*/React.createContext( /*#__PURE__*/intlFactory('en
2409
2402
  var ContextProvider = function ContextProvider(_ref) {
2410
2403
  var children = _ref.children,
2411
2404
  locale = _ref.locale;
2412
- return React__default.default.createElement(boemly.BoemlyThemeProvider, {
2413
- fonts: FONT_CUSTOMIZATIONS
2414
- }, React__default.default.createElement(react$1.Global, {
2405
+ return React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement(react$1.Global, {
2415
2406
  styles: {
2416
2407
  GLOBAL_STYLE: GLOBAL_STYLE
2417
2408
  }
@@ -2799,6 +2790,13 @@ var mergeBoundingBoxes = function mergeBoundingBoxes(boundingBoxes) {
2799
2790
  return [minLeft, minBottom, maxRight, maxTop];
2800
2791
  };
2801
2792
 
2793
+ var FONT_CUSTOMIZATIONS = {
2794
+ body: 'Inter',
2795
+ heading: 'Inter',
2796
+ display: 'GintoNord',
2797
+ mono: 'SpaceMono'
2798
+ };
2799
+
2802
2800
  var messages = {
2803
2801
  en: rootMessagesEn,
2804
2802
  de: rootMessagesDe