@treely/strapi-slices 5.17.4 → 6.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.
@@ -538,72 +538,6 @@ var getPortfolioProjects = /*#__PURE__*/function () {
538
538
  };
539
539
  }();
540
540
 
541
- /** @deprecated Migrate to getAllSlugsFromStrapi */
542
- var getStaticPathsFromStrapi = /*#__PURE__*/function () {
543
- var _ref = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(path, _temp) {
544
- var _ref2, _ref2$filters, filters, params;
545
- return _regeneratorRuntime().wrap(function _callee$(_context) {
546
- while (1) switch (_context.prev = _context.next) {
547
- case 0:
548
- _ref2 = _temp === void 0 ? {
549
- filters: {}
550
- } : _temp, _ref2$filters = _ref2.filters, filters = _ref2$filters === void 0 ? {} : _ref2$filters;
551
- params = {
552
- locale: 'all',
553
- 'pagination[pageSize]': STRAPI_DEFAULT_PAGE_SIZE,
554
- filters: filters
555
- };
556
- return _context.abrupt("return", strapiClient.get(path, {
557
- params: params
558
- }));
559
- case 3:
560
- case "end":
561
- return _context.stop();
562
- }
563
- }, _callee);
564
- }));
565
- return function getStaticPathsFromStrapi(_x, _x2) {
566
- return _ref.apply(this, arguments);
567
- };
568
- }();
569
-
570
- /** @deprecated Migrate to getStrapiSingleType or getStrapiCollectionType */
571
- var getStaticPropsFromStrapi = /*#__PURE__*/function () {
572
- var _ref2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(path, _ref) {
573
- var _ref$locale, locale, slug, _ref$preview, preview, _ref$filters, filters, cache, enrichedFilters, params;
574
- return _regeneratorRuntime().wrap(function _callee$(_context) {
575
- while (1) switch (_context.prev = _context.next) {
576
- case 0:
577
- _ref$locale = _ref.locale, locale = _ref$locale === void 0 ? 'en' : _ref$locale, slug = _ref.slug, _ref$preview = _ref.preview, preview = _ref$preview === void 0 ? false : _ref$preview, _ref$filters = _ref.filters, filters = _ref$filters === void 0 ? {} : _ref$filters;
578
- cache = preview ? false : undefined;
579
- enrichedFilters = filters;
580
- if (slug) {
581
- enrichedFilters.slug = slug;
582
- }
583
- params = {
584
- populate: 'deep,6',
585
- locale: locale,
586
- 'pagination[pageSize]': STRAPI_DEFAULT_PAGE_SIZE,
587
- filters: enrichedFilters
588
- };
589
- if (preview) {
590
- params.publicationState = 'preview';
591
- }
592
- return _context.abrupt("return", strapiClient.get(path, {
593
- params: params,
594
- cache: cache
595
- }));
596
- case 7:
597
- case "end":
598
- return _context.stop();
599
- }
600
- }, _callee);
601
- }));
602
- return function getStaticPropsFromStrapi(_x, _x2) {
603
- return _ref2.apply(this, arguments);
604
- };
605
- }();
606
-
607
541
  var getStrapiCollectionType = /*#__PURE__*/function () {
608
542
  var _ref2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(path, key, _ref) {
609
543
  var _ref$locale, locale, _ref$preview, preview, _ref$filters, filters, cache, params, _yield$strapiClient$g, data, localizedResponses, fallbackResponses, responses;
@@ -5821,5 +5755,5 @@ var SliceRenderer = function SliceRenderer(_ref) {
5821
5755
  }));
5822
5756
  };
5823
5757
 
5824
- export { PreviewAlert, SEOTags, SliceRenderer, getAllSlugsFromStrapi, getPortfolioProjects, getStaticPathsFromStrapi, getStaticPropsFromStrapi, getStrapiCollectionType, getStrapiSingleType, mergeGlobalAndStrapiBlogPostData, mergeGlobalAndStrapiCustomerStoryData, mergeGlobalAndStrapiPageData, mergeGlobalAndStrapiProject as mergeGlobalAndStrapiProjectData, strapiLinkUrl, strapiMediaUrl };
5758
+ export { PreviewAlert, SEOTags, SliceRenderer, getAllSlugsFromStrapi, getPortfolioProjects, getStrapiCollectionType, getStrapiSingleType, mergeGlobalAndStrapiBlogPostData, mergeGlobalAndStrapiCustomerStoryData, mergeGlobalAndStrapiPageData, mergeGlobalAndStrapiProject as mergeGlobalAndStrapiProjectData, strapiLinkUrl, strapiMediaUrl };
5825
5759
  //# sourceMappingURL=strapi-slices.esm.js.map