@treely/strapi-slices 5.8.1 → 5.9.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.
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const PreviewAlert: () => JSX.Element;
@@ -0,0 +1,3 @@
1
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, unknown>;
2
+ export default _default;
3
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, unknown>;
@@ -0,0 +1 @@
1
+ export { PreviewAlert } from './PreviewAlert';
package/dist/index.d.ts CHANGED
@@ -52,6 +52,7 @@ import mergeGlobalAndStrapiPageData from './utils/mergeGlobalAndStrapiPageData';
52
52
  import mergeGlobalAndStrapiProjectData from './utils/mergeGlobalAndStrapiProjectData';
53
53
  import strapiLinkUrl from './utils/strapiLinkUrl';
54
54
  import strapiMediaUrl from './utils/strapiMediaUrl';
55
+ export * from './components/PreviewAlert';
55
56
  export * from './components/SEOTags';
56
57
  export * from './components/SliceRenderer';
57
58
  export { mergeGlobalAndStrapiBlogPostData, mergeGlobalAndStrapiCustomerStoryData, mergeGlobalAndStrapiPageData, mergeGlobalAndStrapiProjectData, strapiLinkUrl, strapiMediaUrl, getPortfolioProjects, getStaticPathsFromStrapi, getStaticPropsFromStrapi, };
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import StrapiImage from '../../models/strapi/StrapiImage';
3
3
  import StrapiLink from '../../models/strapi/StrapiLink';
4
4
  import StrapiButtonWithVariant from '../../models/strapi/StrapiButtonWithVariant';
@@ -14,4 +14,4 @@ export interface HeroProps {
14
14
  shape?: StrapiImage;
15
15
  };
16
16
  }
17
- export declare const Hero: React.FC<HeroProps>;
17
+ export declare const Hero: ({ slice }: HeroProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import StrapiImage from '../../models/strapi/StrapiImage';
3
3
  import StrapiLink from '../../models/strapi/StrapiLink';
4
4
  export interface IconGridProps {
@@ -15,4 +15,4 @@ export interface IconGridProps {
15
15
  }[];
16
16
  };
17
17
  }
18
- export declare const IconGrid: React.FC<IconGridProps>;
18
+ export declare const IconGrid: ({ slice }: IconGridProps) => JSX.Element;
@@ -6,8 +6,8 @@ var axios = require('axios');
6
6
  var qs = require('qs');
7
7
  var axiosCacheInterceptor = require('axios-cache-interceptor');
8
8
  var React = require('react');
9
- var Head = require('next/head');
10
9
  var boemly = require('boemly');
10
+ var Head = require('next/head');
11
11
  var Image = require('next/image');
12
12
  var reactUse = require('react-use');
13
13
  var react = require('@phosphor-icons/react');
@@ -756,6 +756,17 @@ var strapiLinkUrl = function strapiLinkUrl(strapiLink) {
756
756
  return ((_strapiLink2 = strapiLink) == null ? void 0 : _strapiLink2.url) || '/';
757
757
  };
758
758
 
759
+ var PreviewAlert = function PreviewAlert() {
760
+ return React__default.default.createElement(boemly.Box, {
761
+ position: "fixed",
762
+ top: "4",
763
+ left: "4"
764
+ }, React__default.default.createElement(boemly.BoemlyAlert, {
765
+ text: "Preview",
766
+ status: "error"
767
+ }));
768
+ };
769
+
759
770
  var SEOTags = function SEOTags(_ref) {
760
771
  var _shareImage$url, _shareImage$alt;
761
772
  var title = _ref.title,
@@ -5581,6 +5592,7 @@ var SliceRenderer = function SliceRenderer(_ref) {
5581
5592
  }));
5582
5593
  };
5583
5594
 
5595
+ exports.PreviewAlert = PreviewAlert;
5584
5596
  exports.SEOTags = SEOTags;
5585
5597
  exports.SliceRenderer = SliceRenderer;
5586
5598
  exports.getPortfolioProjects = getPortfolioProjects;