@prezly/theme-kit-nextjs 4.3.1 → 4.3.3
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/build/cjs/adapter-nextjs/api-handlers/fetchGalleries.js +2 -2
- package/build/cjs/adapter-nextjs/api-handlers/fetchGalleries.js.map +1 -1
- package/build/cjs/adapter-nextjs/api-handlers/fetchStories.js +2 -2
- package/build/cjs/adapter-nextjs/api-handlers/fetchStories.js.map +1 -1
- package/build/cjs/adapter-nextjs/api-handlers/index.d.ts +2 -2
- package/build/cjs/adapter-nextjs/api-handlers/index.js +4 -4
- package/build/cjs/adapter-nextjs/api-handlers/index.js.map +1 -1
- package/build/cjs/adapter-nextjs/getNewsroomServerSideProps.d.ts +2 -2
- package/build/cjs/adapter-nextjs/getNewsroomServerSideProps.js +2 -2
- package/build/cjs/adapter-nextjs/getNewsroomServerSideProps.js.map +1 -1
- package/build/cjs/adapter-nextjs/getNewsroomStaticProps.d.ts +2 -2
- package/build/cjs/adapter-nextjs/getNewsroomStaticProps.js +2 -2
- package/build/cjs/adapter-nextjs/getNewsroomStaticProps.js.map +1 -1
- package/build/cjs/adapter-nextjs/index.d.ts +6 -6
- package/build/cjs/adapter-nextjs/index.js +6 -6
- package/build/cjs/adapter-nextjs/index.js.map +1 -1
- package/build/cjs/adapter-nextjs/page-props/category.js +10 -10
- package/build/cjs/adapter-nextjs/page-props/category.js.map +1 -1
- package/build/cjs/adapter-nextjs/page-props/gallery.js +8 -8
- package/build/cjs/adapter-nextjs/page-props/gallery.js.map +1 -1
- package/build/cjs/adapter-nextjs/page-props/galleryAlbum.js +10 -10
- package/build/cjs/adapter-nextjs/page-props/galleryAlbum.js.map +1 -1
- package/build/cjs/adapter-nextjs/page-props/home.js +8 -8
- package/build/cjs/adapter-nextjs/page-props/home.js.map +1 -1
- package/build/cjs/adapter-nextjs/page-props/index.d.ts +8 -8
- package/build/cjs/adapter-nextjs/page-props/index.js +24 -24
- package/build/cjs/adapter-nextjs/page-props/index.js.map +1 -1
- package/build/cjs/adapter-nextjs/page-props/search.js +8 -8
- package/build/cjs/adapter-nextjs/page-props/search.js.map +1 -1
- package/build/cjs/adapter-nextjs/page-props/sitemap/getServerSideProps.js +6 -6
- package/build/cjs/adapter-nextjs/page-props/sitemap/getServerSideProps.js.map +1 -1
- package/build/cjs/adapter-nextjs/page-props/sitemap/index.d.ts +4 -4
- package/build/cjs/adapter-nextjs/page-props/sitemap/index.js +7 -7
- package/build/cjs/adapter-nextjs/page-props/sitemap/index.js.map +1 -1
- package/build/cjs/adapter-nextjs/page-props/story.js +14 -14
- package/build/cjs/adapter-nextjs/page-props/story.js.map +1 -1
- package/build/cjs/adapter-nextjs/page-props/storyPreview.js +6 -6
- package/build/cjs/adapter-nextjs/page-props/storyPreview.js.map +1 -1
- package/build/cjs/adapter-nextjs/processRequest.js +2 -2
- package/build/cjs/adapter-nextjs/processRequest.js.map +1 -1
- package/build/cjs/client.d.ts +3 -3
- package/build/cjs/client.js +3 -3
- package/build/cjs/client.js.map +1 -1
- package/build/cjs/components-nextjs/PageSeo/PageSeo.js +12 -12
- package/build/cjs/components-nextjs/PageSeo/PageSeo.js.map +1 -1
- package/build/cjs/components-nextjs/PageSeo/index.d.ts +1 -1
- package/build/cjs/components-nextjs/PageSeo/index.js +2 -2
- package/build/cjs/components-nextjs/PageSeo/index.js.map +1 -1
- package/build/cjs/components-nextjs/PageSeo/lib/index.d.ts +1 -1
- package/build/cjs/components-nextjs/PageSeo/lib/index.js +2 -2
- package/build/cjs/components-nextjs/PageSeo/lib/index.js.map +1 -1
- package/build/cjs/components-nextjs/StorySeo/index.d.ts +1 -1
- package/build/cjs/components-nextjs/StorySeo/index.js +2 -2
- package/build/cjs/components-nextjs/StorySeo/index.js.map +1 -1
- package/build/cjs/components-nextjs/index.d.ts +3 -3
- package/build/cjs/components-nextjs/index.js +6 -6
- package/build/cjs/components-nextjs/index.js.map +1 -1
- package/build/cjs/data-fetching/NextPrezlyApi.js +2 -2
- package/build/cjs/data-fetching/NextPrezlyApi.js.map +1 -1
- package/build/cjs/data-fetching/getNextPrezlyApi.d.ts +1 -1
- package/build/cjs/data-fetching/getNextPrezlyApi.js +2 -2
- package/build/cjs/data-fetching/getNextPrezlyApi.js.map +1 -1
- package/build/cjs/data-fetching/index.d.ts +1 -1
- package/build/cjs/data-fetching/index.js +2 -2
- package/build/cjs/data-fetching/index.js.map +1 -1
- package/build/cjs/index.d.ts +8 -8
- package/build/cjs/index.js +8 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/infinite-loading/index.d.ts +4 -4
- package/build/cjs/infinite-loading/index.js +7 -7
- package/build/cjs/infinite-loading/index.js.map +1 -1
- package/build/cjs/infinite-loading/useInfiniteGalleriesLoading.js +2 -2
- package/build/cjs/infinite-loading/useInfiniteGalleriesLoading.js.map +1 -1
- package/build/cjs/infinite-loading/useInfiniteStoriesLoading.js +4 -4
- package/build/cjs/infinite-loading/useInfiniteStoriesLoading.js.map +1 -1
- package/build/cjs/intl/index.d.ts +2 -2
- package/build/cjs/intl/index.js +2 -2
- package/build/cjs/intl/index.js.map +1 -1
- package/build/cjs/intl/languages.js +2 -2
- package/build/cjs/intl/languages.js.map +1 -1
- package/build/cjs/newsroom-context/hooks/index.d.ts +11 -11
- package/build/cjs/newsroom-context/hooks/index.js +11 -11
- package/build/cjs/newsroom-context/hooks/index.js.map +1 -1
- package/build/cjs/newsroom-context/hooks/useAlgoliaSettings.js +2 -2
- package/build/cjs/newsroom-context/hooks/useAlgoliaSettings.js.map +1 -1
- package/build/cjs/newsroom-context/hooks/useCategories.js +2 -2
- package/build/cjs/newsroom-context/hooks/useCategories.js.map +1 -1
- package/build/cjs/newsroom-context/hooks/useCompanyInformation.js +2 -2
- package/build/cjs/newsroom-context/hooks/useCompanyInformation.js.map +1 -1
- package/build/cjs/newsroom-context/hooks/useCurrentCategory.js +2 -2
- package/build/cjs/newsroom-context/hooks/useCurrentCategory.js.map +1 -1
- package/build/cjs/newsroom-context/hooks/useCurrentLocale.js +2 -2
- package/build/cjs/newsroom-context/hooks/useCurrentLocale.js.map +1 -1
- package/build/cjs/newsroom-context/hooks/useCurrentStory.js +2 -2
- package/build/cjs/newsroom-context/hooks/useCurrentStory.js.map +1 -1
- package/build/cjs/newsroom-context/hooks/useGetLinkLocaleSlug.js +4 -4
- package/build/cjs/newsroom-context/hooks/useGetLinkLocaleSlug.js.map +1 -1
- package/build/cjs/newsroom-context/hooks/useGetTranslationUrl.js +4 -4
- package/build/cjs/newsroom-context/hooks/useGetTranslationUrl.js.map +1 -1
- package/build/cjs/newsroom-context/hooks/useLanguages.js +2 -2
- package/build/cjs/newsroom-context/hooks/useLanguages.js.map +1 -1
- package/build/cjs/newsroom-context/hooks/useNewsroom.js +2 -2
- package/build/cjs/newsroom-context/hooks/useNewsroom.js.map +1 -1
- package/build/cjs/newsroom-context/hooks/useNewsroomContext.js +2 -2
- package/build/cjs/newsroom-context/hooks/useNewsroomContext.js.map +1 -1
- package/build/cjs/newsroom-context/index.d.ts +2 -2
- package/build/cjs/newsroom-context/index.js +4 -4
- package/build/cjs/newsroom-context/index.js.map +1 -1
- package/build/cjs/sentry/client.js +2 -2
- package/build/cjs/sentry/client.js.map +1 -1
- package/build/cjs/sentry/index.d.ts +2 -2
- package/build/cjs/sentry/index.js +4 -4
- package/build/cjs/sentry/index.js.map +1 -1
- package/build/cjs/sentry/server.js +2 -2
- package/build/cjs/sentry/server.js.map +1 -1
- package/build/cjs/server.d.ts +2 -2
- package/build/cjs/server.js +2 -2
- package/build/cjs/server.js.map +1 -1
- package/build/cjs/types.d.ts +1 -1
- package/build/esm/adapter-nextjs/api-handlers/fetchGalleries.js +1 -1
- package/build/esm/adapter-nextjs/api-handlers/fetchGalleries.js.map +1 -1
- package/build/esm/adapter-nextjs/api-handlers/fetchStories.js +1 -1
- package/build/esm/adapter-nextjs/api-handlers/fetchStories.js.map +1 -1
- package/build/esm/adapter-nextjs/api-handlers/index.js.map +1 -1
- package/build/esm/adapter-nextjs/getNewsroomServerSideProps.js +1 -1
- package/build/esm/adapter-nextjs/getNewsroomServerSideProps.js.map +1 -1
- package/build/esm/adapter-nextjs/getNewsroomStaticProps.js +1 -1
- package/build/esm/adapter-nextjs/getNewsroomStaticProps.js.map +1 -1
- package/build/esm/adapter-nextjs/index.js +2 -2
- package/build/esm/adapter-nextjs/index.js.map +1 -1
- package/build/esm/adapter-nextjs/page-props/category.js +1 -1
- package/build/esm/adapter-nextjs/page-props/category.js.map +1 -1
- package/build/esm/adapter-nextjs/page-props/gallery.js.map +1 -1
- package/build/esm/adapter-nextjs/page-props/galleryAlbum.js +1 -1
- package/build/esm/adapter-nextjs/page-props/galleryAlbum.js.map +1 -1
- package/build/esm/adapter-nextjs/page-props/home.js.map +1 -1
- package/build/esm/adapter-nextjs/page-props/index.js +1 -1
- package/build/esm/adapter-nextjs/page-props/index.js.map +1 -1
- package/build/esm/adapter-nextjs/page-props/search.js.map +1 -1
- package/build/esm/adapter-nextjs/page-props/sitemap/getServerSideProps.js +1 -1
- package/build/esm/adapter-nextjs/page-props/sitemap/getServerSideProps.js.map +1 -1
- package/build/esm/adapter-nextjs/page-props/sitemap/index.js.map +1 -1
- package/build/esm/adapter-nextjs/page-props/story.js +2 -2
- package/build/esm/adapter-nextjs/page-props/story.js.map +1 -1
- package/build/esm/adapter-nextjs/page-props/storyPreview.js +1 -1
- package/build/esm/adapter-nextjs/page-props/storyPreview.js.map +1 -1
- package/build/esm/adapter-nextjs/processRequest.js +1 -1
- package/build/esm/adapter-nextjs/processRequest.js.map +1 -1
- package/build/esm/client.js +3 -3
- package/build/esm/client.js.map +1 -1
- package/build/esm/components-nextjs/PageSeo/PageSeo.js +2 -2
- package/build/esm/components-nextjs/PageSeo/PageSeo.js.map +1 -1
- package/build/esm/components-nextjs/PageSeo/index.js.map +1 -1
- package/build/esm/components-nextjs/PageSeo/lib/index.js.map +1 -1
- package/build/esm/components-nextjs/StorySeo/index.js.map +1 -1
- package/build/esm/components-nextjs/index.js +2 -2
- package/build/esm/components-nextjs/index.js.map +1 -1
- package/build/esm/data-fetching/NextPrezlyApi.js +1 -1
- package/build/esm/data-fetching/NextPrezlyApi.js.map +1 -1
- package/build/esm/data-fetching/getNextPrezlyApi.js.map +1 -1
- package/build/esm/data-fetching/index.js.map +1 -1
- package/build/esm/index.js +7 -7
- package/build/esm/index.js.map +1 -1
- package/build/esm/infinite-loading/index.js.map +1 -1
- package/build/esm/infinite-loading/useInfiniteGalleriesLoading.js.map +1 -1
- package/build/esm/infinite-loading/useInfiniteStoriesLoading.js +1 -1
- package/build/esm/infinite-loading/useInfiniteStoriesLoading.js.map +1 -1
- package/build/esm/intl/index.js.map +1 -1
- package/build/esm/intl/languages.js.map +1 -1
- package/build/esm/newsroom-context/hooks/index.js.map +1 -1
- package/build/esm/newsroom-context/hooks/useAlgoliaSettings.js.map +1 -1
- package/build/esm/newsroom-context/hooks/useCategories.js.map +1 -1
- package/build/esm/newsroom-context/hooks/useCompanyInformation.js.map +1 -1
- package/build/esm/newsroom-context/hooks/useCurrentCategory.js.map +1 -1
- package/build/esm/newsroom-context/hooks/useCurrentLocale.js.map +1 -1
- package/build/esm/newsroom-context/hooks/useCurrentStory.js.map +1 -1
- package/build/esm/newsroom-context/hooks/useGetLinkLocaleSlug.js.map +1 -1
- package/build/esm/newsroom-context/hooks/useGetTranslationUrl.js.map +1 -1
- package/build/esm/newsroom-context/hooks/useLanguages.js.map +1 -1
- package/build/esm/newsroom-context/hooks/useNewsroom.js.map +1 -1
- package/build/esm/newsroom-context/hooks/useNewsroomContext.js.map +1 -1
- package/build/esm/newsroom-context/index.js +1 -1
- package/build/esm/newsroom-context/index.js.map +1 -1
- package/build/esm/sentry/client.js.map +1 -1
- package/build/esm/sentry/index.js.map +1 -1
- package/build/esm/sentry/server.js.map +1 -1
- package/build/esm/server.js +2 -2
- package/build/esm/server.js.map +1 -1
- package/build/tsconfig.cjs.tsbuildinfo +1 -1
- package/build/tsconfig.esm.tsbuildinfo +1 -1
- package/build/types/adapter-nextjs/api-handlers/index.d.ts +2 -2
- package/build/types/adapter-nextjs/getNewsroomServerSideProps.d.ts +2 -2
- package/build/types/adapter-nextjs/getNewsroomStaticProps.d.ts +2 -2
- package/build/types/adapter-nextjs/index.d.ts +6 -6
- package/build/types/adapter-nextjs/page-props/index.d.ts +8 -8
- package/build/types/adapter-nextjs/page-props/sitemap/index.d.ts +4 -4
- package/build/types/client.d.ts +3 -3
- package/build/types/components-nextjs/PageSeo/index.d.ts +1 -1
- package/build/types/components-nextjs/PageSeo/lib/index.d.ts +1 -1
- package/build/types/components-nextjs/StorySeo/index.d.ts +1 -1
- package/build/types/components-nextjs/index.d.ts +3 -3
- package/build/types/data-fetching/getNextPrezlyApi.d.ts +1 -1
- package/build/types/data-fetching/index.d.ts +1 -1
- package/build/types/index.d.ts +8 -8
- package/build/types/infinite-loading/index.d.ts +4 -4
- package/build/types/intl/index.d.ts +2 -2
- package/build/types/newsroom-context/hooks/index.d.ts +11 -11
- package/build/types/newsroom-context/index.d.ts +2 -2
- package/build/types/sentry/index.d.ts +2 -2
- package/build/types/server.d.ts +2 -2
- package/build/types/types.d.ts +1 -1
- package/package.json +4 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSitemapServerSideProps = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
const index_js_1 = require("../../../data-fetching/index.js");
|
|
5
|
+
const createPaths_js_1 = require("./createPaths.js");
|
|
6
|
+
const SitemapBuilder_js_1 = require("./SitemapBuilder.js");
|
|
7
7
|
function getSitemapServerSideProps(options = {}) {
|
|
8
8
|
return async function getServerSideProps(ctx) {
|
|
9
9
|
const { res, req } = ctx;
|
|
@@ -14,13 +14,13 @@ function getSitemapServerSideProps(options = {}) {
|
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
const baseUrl = req.headers.host || '/';
|
|
17
|
-
const api = (0,
|
|
17
|
+
const api = (0, index_js_1.getNextPrezlyApi)(req);
|
|
18
18
|
const stories = await api.getAllStories({
|
|
19
19
|
pinning: options.pinning ?? false,
|
|
20
20
|
});
|
|
21
21
|
const categories = await api.getCategories();
|
|
22
|
-
const paths = (0,
|
|
23
|
-
const sitemapBuilder = new
|
|
22
|
+
const paths = (0, createPaths_js_1.createPaths)(stories, categories);
|
|
23
|
+
const sitemapBuilder = new SitemapBuilder_js_1.SitemapBuilder(baseUrl);
|
|
24
24
|
sitemapBuilder.addUrl('/');
|
|
25
25
|
paths.forEach((path) => sitemapBuilder.addUrl(path));
|
|
26
26
|
options.additionalPaths?.forEach((path) => sitemapBuilder.addUrl(path));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getServerSideProps.js","sourceRoot":"","sources":["../../../../../src/adapter-nextjs/page-props/sitemap/getServerSideProps.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"getServerSideProps.js","sourceRoot":"","sources":["../../../../../src/adapter-nextjs/page-props/sitemap/getServerSideProps.ts"],"names":[],"mappings":";;;AAEA,8DAAmE;AAEnE,qDAA+C;AAC/C,2DAAqD;AAErD,SAAgB,yBAAyB,CACrC,UAA6D,EAAE;IAE/D,OAAO,KAAK,UAAU,kBAAkB,CAAC,GAAoB;QACzD,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;QAEzB,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE;YACd,cAAc;YACd,OAAO;gBACH,KAAK,EAAE,EAAE;aACZ,CAAC;SACL;QAED,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,IAAI,GAAG,CAAC;QAExC,MAAM,GAAG,GAAG,IAAA,2BAAgB,EAAC,GAAG,CAAC,CAAC;QAClC,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,aAAa,CAAC;YACpC,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,KAAK;SACpC,CAAC,CAAC;QACH,MAAM,UAAU,GAAG,MAAM,GAAG,CAAC,aAAa,EAAE,CAAC;QAE7C,MAAM,KAAK,GAAG,IAAA,4BAAW,EAAC,OAAO,EAAE,UAAU,CAAC,CAAC;QAC/C,MAAM,cAAc,GAAG,IAAI,kCAAc,CAAC,OAAO,CAAC,CAAC;QAEnD,cAAc,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAC3B,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;QAErD,OAAO,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;QAExE,GAAG,CAAC,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAC1C,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC,CAAC;QACtC,GAAG,CAAC,GAAG,EAAE,CAAC;QAEV,OAAO;YACH,KAAK,EAAE,EAAE;SACZ,CAAC;IACN,CAAC,CAAC;AACN,CAAC;AArCD,8DAqCC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { getSitemapServerSideProps } from './getServerSideProps';
|
|
2
|
-
export { SitemapBuilder } from './SitemapBuilder';
|
|
3
|
-
export { createPaths } from './createPaths';
|
|
4
|
-
export * from './types';
|
|
1
|
+
export { getSitemapServerSideProps } from './getServerSideProps.js';
|
|
2
|
+
export { SitemapBuilder } from './SitemapBuilder.js';
|
|
3
|
+
export { createPaths } from './createPaths.js';
|
|
4
|
+
export * from './types.js';
|
|
@@ -15,11 +15,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.createPaths = exports.SitemapBuilder = exports.getSitemapServerSideProps = void 0;
|
|
18
|
-
var
|
|
19
|
-
Object.defineProperty(exports, "getSitemapServerSideProps", { enumerable: true, get: function () { return
|
|
20
|
-
var
|
|
21
|
-
Object.defineProperty(exports, "SitemapBuilder", { enumerable: true, get: function () { return
|
|
22
|
-
var
|
|
23
|
-
Object.defineProperty(exports, "createPaths", { enumerable: true, get: function () { return
|
|
24
|
-
__exportStar(require("./types"), exports);
|
|
18
|
+
var getServerSideProps_js_1 = require("./getServerSideProps.js");
|
|
19
|
+
Object.defineProperty(exports, "getSitemapServerSideProps", { enumerable: true, get: function () { return getServerSideProps_js_1.getSitemapServerSideProps; } });
|
|
20
|
+
var SitemapBuilder_js_1 = require("./SitemapBuilder.js");
|
|
21
|
+
Object.defineProperty(exports, "SitemapBuilder", { enumerable: true, get: function () { return SitemapBuilder_js_1.SitemapBuilder; } });
|
|
22
|
+
var createPaths_js_1 = require("./createPaths.js");
|
|
23
|
+
Object.defineProperty(exports, "createPaths", { enumerable: true, get: function () { return createPaths_js_1.createPaths; } });
|
|
24
|
+
__exportStar(require("./types.js"), exports);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/adapter-nextjs/page-props/sitemap/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/adapter-nextjs/page-props/sitemap/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iEAAoE;AAA3D,kIAAA,yBAAyB,OAAA;AAElC,yDAAqD;AAA5C,mHAAA,cAAc,OAAA;AACvB,mDAA+C;AAAtC,6GAAA,WAAW,OAAA;AACpB,6CAA2B"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getStoryPageStaticPaths = exports.getStoryPageStaticProps = exports.getStoryPageServerSideProps = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
4
|
+
const index_js_1 = require("../../data-fetching/index.js");
|
|
5
|
+
const index_js_2 = require("../../intl/index.js");
|
|
6
|
+
const getNewsroomServerSideProps_js_1 = require("../getNewsroomServerSideProps.js");
|
|
7
|
+
const getNewsroomStaticProps_js_1 = require("../getNewsroomStaticProps.js");
|
|
8
|
+
const processRequest_js_1 = require("../processRequest.js");
|
|
9
|
+
const processStaticRequest_js_1 = require("../processStaticRequest.js");
|
|
10
10
|
function getStoryPageServerSideProps(customProps) {
|
|
11
11
|
return async function getServerSideProps(context) {
|
|
12
|
-
const api = (0,
|
|
12
|
+
const api = (0, index_js_1.getNextPrezlyApi)(context.req);
|
|
13
13
|
const { slug } = context.params;
|
|
14
14
|
const story = slug ? await api.getStoryBySlug(slug) : null;
|
|
15
15
|
if (!story) {
|
|
16
16
|
return { notFound: true };
|
|
17
17
|
}
|
|
18
|
-
const { serverSideProps } = await (0,
|
|
18
|
+
const { serverSideProps } = await (0, getNewsroomServerSideProps_js_1.getNewsroomServerSideProps)(context, { story });
|
|
19
19
|
const { locale } = context;
|
|
20
|
-
if (locale && locale !==
|
|
20
|
+
if (locale && locale !== index_js_2.DUMMY_DEFAULT_LOCALE) {
|
|
21
21
|
return {
|
|
22
22
|
redirect: {
|
|
23
23
|
destination: `/${slug}`,
|
|
@@ -26,7 +26,7 @@ function getStoryPageServerSideProps(customProps) {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
serverSideProps.newsroomContextProps.currentStory = story;
|
|
29
|
-
return (0,
|
|
29
|
+
return (0, processRequest_js_1.processRequest)(context, {
|
|
30
30
|
...serverSideProps,
|
|
31
31
|
...(typeof customProps === 'function'
|
|
32
32
|
? await customProps(context, serverSideProps)
|
|
@@ -37,15 +37,15 @@ function getStoryPageServerSideProps(customProps) {
|
|
|
37
37
|
exports.getStoryPageServerSideProps = getStoryPageServerSideProps;
|
|
38
38
|
function getStoryPageStaticProps(customProps) {
|
|
39
39
|
return async function getStaticProps(context) {
|
|
40
|
-
const api = (0,
|
|
40
|
+
const api = (0, index_js_1.getNextPrezlyApi)();
|
|
41
41
|
const { slug } = context.params;
|
|
42
42
|
const story = slug ? await api.getStoryBySlug(slug) : null;
|
|
43
43
|
if (!story) {
|
|
44
44
|
return { notFound: true };
|
|
45
45
|
}
|
|
46
|
-
const { staticProps } = await (0,
|
|
46
|
+
const { staticProps } = await (0, getNewsroomStaticProps_js_1.getNewsroomStaticProps)(context, { story });
|
|
47
47
|
staticProps.newsroomContextProps.currentStory = story;
|
|
48
|
-
return (0,
|
|
48
|
+
return (0, processStaticRequest_js_1.processStaticRequest)(context, {
|
|
49
49
|
...staticProps,
|
|
50
50
|
...(typeof customProps === 'function'
|
|
51
51
|
? await customProps(context, staticProps)
|
|
@@ -55,7 +55,7 @@ function getStoryPageStaticProps(customProps) {
|
|
|
55
55
|
}
|
|
56
56
|
exports.getStoryPageStaticProps = getStoryPageStaticProps;
|
|
57
57
|
async function getStoryPageStaticPaths(options = {}) {
|
|
58
|
-
const api = (0,
|
|
58
|
+
const api = (0, index_js_1.getNextPrezlyApi)();
|
|
59
59
|
const stories = await api.getAllStories({
|
|
60
60
|
pinning: options.pinning ?? false,
|
|
61
61
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"story.js","sourceRoot":"","sources":["../../../../src/adapter-nextjs/page-props/story.ts"],"names":[],"mappings":";;;AAOA,
|
|
1
|
+
{"version":3,"file":"story.js","sourceRoot":"","sources":["../../../../src/adapter-nextjs/page-props/story.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getStoryPreviewPageServerSideProps = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
const index_js_1 = require("../../data-fetching/index.js");
|
|
5
|
+
const getNewsroomServerSideProps_js_1 = require("../getNewsroomServerSideProps.js");
|
|
6
|
+
const processRequest_js_1 = require("../processRequest.js");
|
|
7
7
|
function getStoryPreviewPageServerSideProps(customProps) {
|
|
8
8
|
return async function getServerSideProps(context) {
|
|
9
|
-
const api = (0,
|
|
9
|
+
const api = (0, index_js_1.getNextPrezlyApi)(context.req);
|
|
10
10
|
const { uuid } = context.params;
|
|
11
11
|
const story = await api.getStory(uuid);
|
|
12
12
|
if (!story) {
|
|
13
13
|
return { notFound: true };
|
|
14
14
|
}
|
|
15
|
-
const { serverSideProps } = await (0,
|
|
15
|
+
const { serverSideProps } = await (0, getNewsroomServerSideProps_js_1.getNewsroomServerSideProps)(context, { story });
|
|
16
16
|
serverSideProps.newsroomContextProps.currentStory = story;
|
|
17
|
-
return (0,
|
|
17
|
+
return (0, processRequest_js_1.processRequest)(context, {
|
|
18
18
|
...serverSideProps,
|
|
19
19
|
...(typeof customProps === 'function'
|
|
20
20
|
? await customProps(context, serverSideProps)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storyPreview.js","sourceRoot":"","sources":["../../../../src/adapter-nextjs/page-props/storyPreview.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"storyPreview.js","sourceRoot":"","sources":["../../../../src/adapter-nextjs/page-props/storyPreview.ts"],"names":[],"mappings":";;;AAEA,2DAAgE;AAChE,oFAA8E;AAC9E,4DAAsD;AAItD,SAAgB,kCAAkC,CAC9C,WAAqD;IAErD,OAAO,KAAK,UAAU,kBAAkB,CACpC,OAAkC;QAElC,MAAM,GAAG,GAAG,IAAA,2BAAgB,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC1C,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,MAA0B,CAAC;QACpD,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,KAAK,EAAE;YACR,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SAC7B;QAED,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,IAAA,0DAA0B,EAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAEjF,eAAe,CAAC,oBAAoB,CAAC,YAAY,GAAG,KAAK,CAAC;QAE1D,OAAO,IAAA,kCAAc,EAAC,OAAO,EAAE;YAC3B,GAAG,eAAe;YAClB,GAAG,CAAC,OAAO,WAAW,KAAK,UAAU;gBACjC,CAAC,CAAC,MAAO,WAA0C,CAAC,OAAO,EAAE,eAAe,CAAC;gBAC7E,CAAC,CAAC,WAAW,CAAC;SACrB,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC;AAxBD,gFAwBC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.processRequest = void 0;
|
|
4
4
|
const theme_kit_core_1 = require("@prezly/theme-kit-core");
|
|
5
|
-
const
|
|
5
|
+
const index_js_1 = require("../intl/index.js");
|
|
6
6
|
/**
|
|
7
7
|
* This function combines the props returned from `getNewsroomServerSideProps` and your optional custom props for the page.
|
|
8
8
|
* It also handles locale redirects, if `canonicalUrl` parameter is provided.
|
|
@@ -24,7 +24,7 @@ function processRequest(context, props, canonicalUrl) {
|
|
|
24
24
|
const { languages, localeCode } = pageProps.newsroomContextProps;
|
|
25
25
|
const currentLocale = theme_kit_core_1.LocaleObject.fromAnyCode(localeCode);
|
|
26
26
|
const shortestLocaleCode = (0, theme_kit_core_1.getShortestLocaleCode)(languages, currentLocale);
|
|
27
|
-
const redirect = (0,
|
|
27
|
+
const redirect = (0, index_js_1.getRedirectToCanonicalLocale)(shortestLocaleCode, nextLocale, canonicalUrl, query);
|
|
28
28
|
if (redirect) {
|
|
29
29
|
return { redirect };
|
|
30
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processRequest.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/processRequest.ts"],"names":[],"mappings":";;;AAAA,2DAA6E;AAG7E
|
|
1
|
+
{"version":3,"file":"processRequest.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/processRequest.ts"],"names":[],"mappings":";;;AAAA,2DAA6E;AAG7E,+CAAgE;AAGhE;;;;;;;;GAQG;AACH,SAAgB,cAAc,CAC1B,OAAkC,EAClC,KAA8C,EAC9C,YAAqB;IAErB,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;IAE9C,MAAM,EAAE,cAAc,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAE/C,2GAA2G;IAC3G,uCAAuC;IACvC,IAAI,CAAC,cAAc,IAAI,UAAU,EAAE;QAC/B,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;KAC7B;IAED,IAAI,YAAY,EAAE;QACd,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,SAAS,CAAC,oBAAoB,CAAC;QACjE,MAAM,aAAa,GAAG,6BAAY,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAC3D,MAAM,kBAAkB,GAAG,IAAA,sCAAqB,EAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QAE3E,MAAM,QAAQ,GAAG,IAAA,uCAA4B,EACzC,kBAAkB,EAClB,UAAU,EACV,YAAY,EACZ,KAAK,CACR,CAAC;QACF,IAAI,QAAQ,EAAE;YACV,OAAO,EAAE,QAAQ,EAAE,CAAC;SACvB;KACJ;IAED,OAAO;QACH,KAAK,EAAE,SAA8B;KACxC,CAAC;AACN,CAAC;AAlCD,wCAkCC"}
|
package/build/cjs/client.d.ts
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* This is a subset export created for Next 13 /app directory, which doesn't support tree-shaking properly.
|
|
3
3
|
* See https://github.com/vercel/next.js/issues/12557
|
|
4
4
|
*/
|
|
5
|
-
export * from './components-nextjs';
|
|
6
|
-
export * from './infinite-loading';
|
|
7
|
-
export * from './newsroom-context';
|
|
5
|
+
export * from './components-nextjs/index.js';
|
|
6
|
+
export * from './infinite-loading/index.js';
|
|
7
|
+
export * from './newsroom-context/index.js';
|
package/build/cjs/client.js
CHANGED
|
@@ -18,7 +18,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
__exportStar(require("./components-nextjs"), exports);
|
|
22
|
-
__exportStar(require("./infinite-loading"), exports);
|
|
23
|
-
__exportStar(require("./newsroom-context"), exports);
|
|
21
|
+
__exportStar(require("./components-nextjs/index.js"), exports);
|
|
22
|
+
__exportStar(require("./infinite-loading/index.js"), exports);
|
|
23
|
+
__exportStar(require("./newsroom-context/index.js"), exports);
|
|
24
24
|
//# sourceMappingURL=client.js.map
|
package/build/cjs/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH,+DAA6C;AAC7C,8DAA4C;AAC5C,8DAA4C"}
|
|
@@ -7,21 +7,21 @@ const theme_kit_core_1 = require("@prezly/theme-kit-core");
|
|
|
7
7
|
const router_1 = require("next/router");
|
|
8
8
|
const next_seo_1 = require("next-seo");
|
|
9
9
|
const react_1 = require("react");
|
|
10
|
-
const
|
|
11
|
-
const
|
|
10
|
+
const index_js_1 = require("../../newsroom-context/index.js");
|
|
11
|
+
const index_js_2 = require("./lib/index.js");
|
|
12
12
|
/**
|
|
13
13
|
* This component provides base page attributes for every Newsroom page.
|
|
14
14
|
* It depends on information from NewsroomContext, so the component should be placed inside the `NewsroomContextProvider`.
|
|
15
15
|
* You can pass additional props expected by NextSeo component to override any info that is provided by the NewsroomContext.
|
|
16
16
|
*/
|
|
17
17
|
function PageSeo({ title, description, imageUrl, canonical, openGraph, twitter, ...nextSeoProps }) {
|
|
18
|
-
const companyInformation = (0,
|
|
19
|
-
const site = (0,
|
|
20
|
-
const currentLocale = (0,
|
|
21
|
-
const languages = (0,
|
|
22
|
-
const getTranslationUrl = (0,
|
|
23
|
-
const getLinkLocaleSlug = (0,
|
|
24
|
-
const currentStory = (0,
|
|
18
|
+
const companyInformation = (0, index_js_1.useCompanyInformation)();
|
|
19
|
+
const site = (0, index_js_1.useNewsroom)();
|
|
20
|
+
const currentLocale = (0, index_js_1.useCurrentLocale)();
|
|
21
|
+
const languages = (0, index_js_1.useLanguages)();
|
|
22
|
+
const getTranslationUrl = (0, index_js_1.useGetTranslationUrl)();
|
|
23
|
+
const getLinkLocaleSlug = (0, index_js_1.useGetLinkLocaleSlug)();
|
|
24
|
+
const currentStory = (0, index_js_1.useCurrentStory)();
|
|
25
25
|
const { asPath } = (0, router_1.useRouter)();
|
|
26
26
|
const pageTitle = companyInformation.seo_settings.meta_title ||
|
|
27
27
|
companyInformation.seo_settings.default_meta_title ||
|
|
@@ -31,7 +31,7 @@ function PageSeo({ title, description, imageUrl, canonical, openGraph, twitter,
|
|
|
31
31
|
companyInformation.seo_settings.default_meta_description ||
|
|
32
32
|
description ||
|
|
33
33
|
companyInformation.about_plaintext;
|
|
34
|
-
const canonicalUrl = canonical || (0,
|
|
34
|
+
const canonicalUrl = canonical || (0, index_js_2.getAbsoluteUrl)(asPath, site.url, getLinkLocaleSlug(currentLocale));
|
|
35
35
|
const siteName = companyInformation.name;
|
|
36
36
|
const logoUrl = imageUrl || (0, theme_kit_core_1.getNewsroomLogoUrl)(site);
|
|
37
37
|
const alternateLanguageLinks = (0, react_1.useMemo)(() => {
|
|
@@ -44,7 +44,7 @@ function PageSeo({ title, description, imageUrl, canonical, openGraph, twitter,
|
|
|
44
44
|
if (!translationUrl) {
|
|
45
45
|
return undefined;
|
|
46
46
|
}
|
|
47
|
-
return (0,
|
|
47
|
+
return (0, index_js_2.getAbsoluteUrl)(translationUrl, site.url, currentStory && translationUrl !== '/' ? false : getLinkLocaleSlug(locale));
|
|
48
48
|
});
|
|
49
49
|
}, [currentStory, getLinkLocaleSlug, getTranslationUrl, languages, site.url]);
|
|
50
50
|
return ((0, jsx_runtime_1.jsx)(next_seo_1.NextSeo, { title: pageTitle, description: pageDescription, canonical: canonicalUrl, noindex: nextSeoProps.noindex ?? !site.is_indexable, nofollow: nextSeoProps.nofollow ?? !site.is_indexable, openGraph: {
|
|
@@ -74,7 +74,7 @@ function PageSeo({ title, description, imageUrl, canonical, openGraph, twitter,
|
|
|
74
74
|
{
|
|
75
75
|
rel: 'alternate',
|
|
76
76
|
type: 'application/rss+xml',
|
|
77
|
-
href: (0,
|
|
77
|
+
href: (0, index_js_2.getAbsoluteUrl)('/feed', site.url),
|
|
78
78
|
},
|
|
79
79
|
], languageAlternates: alternateLanguageLinks, ...nextSeoProps }));
|
|
80
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageSeo.js","sourceRoot":"","sources":["../../../../src/components-nextjs/PageSeo/PageSeo.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;AAEb,2DAIgC;AAEhC,wCAAwC;AACxC,uCAAmC;AAEnC,iCAAgC;AAEhC,
|
|
1
|
+
{"version":3,"file":"PageSeo.js","sourceRoot":"","sources":["../../../../src/components-nextjs/PageSeo/PageSeo.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { PageSeo } from './PageSeo';
|
|
1
|
+
export { PageSeo } from './PageSeo.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PageSeo = void 0;
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "PageSeo", { enumerable: true, get: function () { return
|
|
4
|
+
var PageSeo_js_1 = require("./PageSeo.js");
|
|
5
|
+
Object.defineProperty(exports, "PageSeo", { enumerable: true, get: function () { return PageSeo_js_1.PageSeo; } });
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components-nextjs/PageSeo/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components-nextjs/PageSeo/index.ts"],"names":[],"mappings":";;;AAAA,2CAAuC;AAA9B,qGAAA,OAAO,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { getAbsoluteUrl } from './getAbsoluteUrl';
|
|
1
|
+
export { getAbsoluteUrl } from './getAbsoluteUrl.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAbsoluteUrl = void 0;
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "getAbsoluteUrl", { enumerable: true, get: function () { return
|
|
4
|
+
var getAbsoluteUrl_js_1 = require("./getAbsoluteUrl.js");
|
|
5
|
+
Object.defineProperty(exports, "getAbsoluteUrl", { enumerable: true, get: function () { return getAbsoluteUrl_js_1.getAbsoluteUrl; } });
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components-nextjs/PageSeo/lib/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components-nextjs/PageSeo/lib/index.ts"],"names":[],"mappings":";;;AAAA,yDAAqD;AAA5C,mHAAA,cAAc,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { StorySeo } from './StorySeo';
|
|
1
|
+
export { StorySeo } from './StorySeo.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StorySeo = void 0;
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "StorySeo", { enumerable: true, get: function () { return
|
|
4
|
+
var StorySeo_js_1 = require("./StorySeo.js");
|
|
5
|
+
Object.defineProperty(exports, "StorySeo", { enumerable: true, get: function () { return StorySeo_js_1.StorySeo; } });
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components-nextjs/StorySeo/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components-nextjs/StorySeo/index.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AAAhC,uGAAA,QAAQ,OAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { PageSeo } from './PageSeo';
|
|
2
|
-
export { StorySeo } from './StorySeo';
|
|
3
|
-
export { PrezlyThemeDocument } from './document';
|
|
1
|
+
export { PageSeo } from './PageSeo/index.js';
|
|
2
|
+
export { StorySeo } from './StorySeo/index.js';
|
|
3
|
+
export { PrezlyThemeDocument } from './document.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PrezlyThemeDocument = exports.StorySeo = exports.PageSeo = void 0;
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "PageSeo", { enumerable: true, get: function () { return
|
|
6
|
-
var
|
|
7
|
-
Object.defineProperty(exports, "StorySeo", { enumerable: true, get: function () { return
|
|
8
|
-
var
|
|
9
|
-
Object.defineProperty(exports, "PrezlyThemeDocument", { enumerable: true, get: function () { return
|
|
4
|
+
var index_js_1 = require("./PageSeo/index.js");
|
|
5
|
+
Object.defineProperty(exports, "PageSeo", { enumerable: true, get: function () { return index_js_1.PageSeo; } });
|
|
6
|
+
var index_js_2 = require("./StorySeo/index.js");
|
|
7
|
+
Object.defineProperty(exports, "StorySeo", { enumerable: true, get: function () { return index_js_2.StorySeo; } });
|
|
8
|
+
var document_js_1 = require("./document.js");
|
|
9
|
+
Object.defineProperty(exports, "PrezlyThemeDocument", { enumerable: true, get: function () { return document_js_1.PrezlyThemeDocument; } });
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components-nextjs/index.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components-nextjs/index.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAApC,mGAAA,OAAO,OAAA;AAChB,gDAA+C;AAAtC,oGAAA,QAAQ,OAAA;AACjB,6CAAoD;AAA3C,kHAAA,mBAAmB,OAAA"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NextPrezlyApi = void 0;
|
|
4
4
|
const theme_kit_core_1 = require("@prezly/theme-kit-core");
|
|
5
|
-
const
|
|
5
|
+
const index_js_1 = require("../intl/index.js");
|
|
6
6
|
class NextPrezlyApi extends theme_kit_core_1.PrezlyApi {
|
|
7
7
|
async getNewsroomServerSideProps(request, nextLocaleIsoCode, story) {
|
|
8
8
|
const [newsroom, languages, categories, themePreset] = await Promise.all([
|
|
@@ -13,7 +13,7 @@ class NextPrezlyApi extends theme_kit_core_1.PrezlyApi {
|
|
|
13
13
|
]);
|
|
14
14
|
const currentLanguage = story
|
|
15
15
|
? (0, theme_kit_core_1.getLanguageFromStory)(languages, story)
|
|
16
|
-
: (0,
|
|
16
|
+
: (0, index_js_1.getLanguageFromNextLocaleIsoCode)(languages, nextLocaleIsoCode);
|
|
17
17
|
const defaultLanguage = (0, theme_kit_core_1.getDefaultLanguage)(languages);
|
|
18
18
|
const { code: localeCode } = currentLanguage || defaultLanguage;
|
|
19
19
|
const locale = theme_kit_core_1.LocaleObject.fromAnyCode(localeCode);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NextPrezlyApi.js","sourceRoot":"","sources":["../../../src/data-fetching/NextPrezlyApi.ts"],"names":[],"mappings":";;;AACA,2DAQgC;AAGhC
|
|
1
|
+
{"version":3,"file":"NextPrezlyApi.js","sourceRoot":"","sources":["../../../src/data-fetching/NextPrezlyApi.ts"],"names":[],"mappings":";;;AACA,2DAQgC;AAGhC,+CAAoE;AAGpE,MAAa,aAAc,SAAQ,0BAAS;IACxC,KAAK,CAAC,0BAA0B,CAC5B,OAAyB,EACzB,iBAA0B,EAC1B,KAAa;QAEb,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YACrE,IAAI,CAAC,WAAW,EAAE;YAClB,IAAI,CAAC,oBAAoB,EAAE;YAC3B,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,cAAc,EAAE;SACxB,CAAC,CAAC;QAEH,MAAM,eAAe,GAAG,KAAK;YACzB,CAAC,CAAC,IAAA,qCAAoB,EAAC,SAAS,EAAE,KAAK,CAAC;YACxC,CAAC,CAAC,IAAA,2CAAgC,EAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;QACrE,MAAM,eAAe,GAAG,IAAA,mCAAkB,EAAC,SAAS,CAAC,CAAC;QAEtD,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,eAAe,IAAI,eAAe,CAAC;QAChE,MAAM,MAAM,GAAG,6BAAY,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAEpD,6FAA6F;QAC7F,MAAM,kBAAkB,GAAG,IAAA,sCAAqB,EAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAEpE,MAAM,aAAa,GAAG,IAAA,iCAAgB,EAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAC1D,MAAM,eAAe,GAAG,IAAA,mCAAkB,EAAC,OAAO,CAAC,CAAC;QAEpD,OAAO;YACH,oBAAoB,EAAE;gBAClB,QAAQ;gBACR,kBAAkB;gBAClB,UAAU;gBACV,SAAS;gBACT,UAAU;gBACV,aAAa;gBACb,WAAW;gBACX,eAAe;aAClB;YACD,cAAc,EAAE,OAAO,CAAC,eAAe,CAAC;SAC3C,CAAC;IACN,CAAC;CACJ;AAzCD,sCAyCC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getNextPrezlyApi = void 0;
|
|
4
4
|
const theme_kit_core_1 = require("@prezly/theme-kit-core");
|
|
5
|
-
const
|
|
5
|
+
const NextPrezlyApi_js_1 = require("./NextPrezlyApi.js");
|
|
6
6
|
function getNextPrezlyApi(req) {
|
|
7
7
|
if (typeof window !== 'undefined') {
|
|
8
8
|
throw new Error('"getNextPrezlyApi" should only be used on back-end side.');
|
|
@@ -15,7 +15,7 @@ function getNextPrezlyApi(req) {
|
|
|
15
15
|
if (!PREZLY_NEWSROOM_UUID) {
|
|
16
16
|
throw new Error('"PREZLY_NEWSROOM_UUID" is not set in env variables.');
|
|
17
17
|
}
|
|
18
|
-
return new
|
|
18
|
+
return new NextPrezlyApi_js_1.NextPrezlyApi(PREZLY_ACCESS_TOKEN, PREZLY_NEWSROOM_UUID, PREZLY_THEME_UUID);
|
|
19
19
|
}
|
|
20
20
|
exports.getNextPrezlyApi = getNextPrezlyApi;
|
|
21
21
|
//# sourceMappingURL=getNextPrezlyApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNextPrezlyApi.js","sourceRoot":"","sources":["../../../src/data-fetching/getNextPrezlyApi.ts"],"names":[],"mappings":";;;AAAA,2DAAyD;AAGzD,
|
|
1
|
+
{"version":3,"file":"getNextPrezlyApi.js","sourceRoot":"","sources":["../../../src/data-fetching/getNextPrezlyApi.ts"],"names":[],"mappings":";;;AAAA,2DAAyD;AAGzD,yDAAmD;AAEnD,SAAgB,gBAAgB,CAAC,GAAqB;IAClD,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QAC/B,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;KAC/E;IAED,mFAAmF;IACnF,MAAM,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,GAAG,IAAA,gCAAe,EAAC,GAAG,CAAC,CAAC;IAE9F,IAAI,CAAC,mBAAmB,EAAE;QACtB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;KACzE;IAED,IAAI,CAAC,oBAAoB,EAAE;QACvB,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;KAC1E;IAED,OAAO,IAAI,gCAAa,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,iBAAiB,CAAC,CAAC;AAC3F,CAAC;AAjBD,4CAiBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { getNextPrezlyApi } from './getNextPrezlyApi';
|
|
1
|
+
export { getNextPrezlyApi } from './getNextPrezlyApi.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getNextPrezlyApi = void 0;
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "getNextPrezlyApi", { enumerable: true, get: function () { return
|
|
4
|
+
var getNextPrezlyApi_js_1 = require("./getNextPrezlyApi.js");
|
|
5
|
+
Object.defineProperty(exports, "getNextPrezlyApi", { enumerable: true, get: function () { return getNextPrezlyApi_js_1.getNextPrezlyApi; } });
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data-fetching/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data-fetching/index.ts"],"names":[],"mappings":";;;AAAA,6DAAyD;AAAhD,uHAAA,gBAAgB,OAAA"}
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from './adapter-nextjs';
|
|
2
|
-
export * from './components-nextjs';
|
|
3
|
-
export * from './data-fetching';
|
|
4
|
-
export * from './infinite-loading';
|
|
5
|
-
export * from './intl';
|
|
6
|
-
export * from './newsroom-context';
|
|
7
|
-
export * from './sentry';
|
|
8
|
-
export * from './types';
|
|
1
|
+
export * from './adapter-nextjs/index.js';
|
|
2
|
+
export * from './components-nextjs/index.js';
|
|
3
|
+
export * from './data-fetching/index.js';
|
|
4
|
+
export * from './infinite-loading/index.js';
|
|
5
|
+
export * from './intl/index.js';
|
|
6
|
+
export * from './newsroom-context/index.js';
|
|
7
|
+
export * from './sentry/index.js';
|
|
8
|
+
export * from './types.js';
|
package/build/cjs/index.js
CHANGED
|
@@ -14,12 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./adapter-nextjs"), exports);
|
|
18
|
-
__exportStar(require("./components-nextjs"), exports);
|
|
19
|
-
__exportStar(require("./data-fetching"), exports);
|
|
20
|
-
__exportStar(require("./infinite-loading"), exports);
|
|
21
|
-
__exportStar(require("./intl"), exports);
|
|
22
|
-
__exportStar(require("./newsroom-context"), exports);
|
|
23
|
-
__exportStar(require("./sentry"), exports);
|
|
24
|
-
__exportStar(require("./types"), exports);
|
|
17
|
+
__exportStar(require("./adapter-nextjs/index.js"), exports);
|
|
18
|
+
__exportStar(require("./components-nextjs/index.js"), exports);
|
|
19
|
+
__exportStar(require("./data-fetching/index.js"), exports);
|
|
20
|
+
__exportStar(require("./infinite-loading/index.js"), exports);
|
|
21
|
+
__exportStar(require("./intl/index.js"), exports);
|
|
22
|
+
__exportStar(require("./newsroom-context/index.js"), exports);
|
|
23
|
+
__exportStar(require("./sentry/index.js"), exports);
|
|
24
|
+
__exportStar(require("./types.js"), exports);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,+DAA6C;AAC7C,2DAAyC;AACzC,8DAA4C;AAC5C,kDAAgC;AAChC,8DAA4C;AAC5C,oDAAkC;AAClC,6CAA2B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { useInfiniteLoading } from './useInfiniteLoading';
|
|
2
|
-
export { useInfiniteStoriesLoading } from './useInfiniteStoriesLoading';
|
|
3
|
-
export { useInfiniteGalleriesLoading } from './useInfiniteGalleriesLoading';
|
|
4
|
-
export * from './types';
|
|
1
|
+
export { useInfiniteLoading } from './useInfiniteLoading.js';
|
|
2
|
+
export { useInfiniteStoriesLoading } from './useInfiniteStoriesLoading.js';
|
|
3
|
+
export { useInfiniteGalleriesLoading } from './useInfiniteGalleriesLoading.js';
|
|
4
|
+
export * from './types.js';
|
|
@@ -15,11 +15,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.useInfiniteGalleriesLoading = exports.useInfiniteStoriesLoading = exports.useInfiniteLoading = void 0;
|
|
18
|
-
var
|
|
19
|
-
Object.defineProperty(exports, "useInfiniteLoading", { enumerable: true, get: function () { return
|
|
20
|
-
var
|
|
21
|
-
Object.defineProperty(exports, "useInfiniteStoriesLoading", { enumerable: true, get: function () { return
|
|
22
|
-
var
|
|
23
|
-
Object.defineProperty(exports, "useInfiniteGalleriesLoading", { enumerable: true, get: function () { return
|
|
24
|
-
__exportStar(require("./types"), exports);
|
|
18
|
+
var useInfiniteLoading_js_1 = require("./useInfiniteLoading.js");
|
|
19
|
+
Object.defineProperty(exports, "useInfiniteLoading", { enumerable: true, get: function () { return useInfiniteLoading_js_1.useInfiniteLoading; } });
|
|
20
|
+
var useInfiniteStoriesLoading_js_1 = require("./useInfiniteStoriesLoading.js");
|
|
21
|
+
Object.defineProperty(exports, "useInfiniteStoriesLoading", { enumerable: true, get: function () { return useInfiniteStoriesLoading_js_1.useInfiniteStoriesLoading; } });
|
|
22
|
+
var useInfiniteGalleriesLoading_js_1 = require("./useInfiniteGalleriesLoading.js");
|
|
23
|
+
Object.defineProperty(exports, "useInfiniteGalleriesLoading", { enumerable: true, get: function () { return useInfiniteGalleriesLoading_js_1.useInfiniteGalleriesLoading; } });
|
|
24
|
+
__exportStar(require("./types.js"), exports);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/infinite-loading/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/infinite-loading/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iEAA6D;AAApD,2HAAA,kBAAkB,OAAA;AAC3B,+EAA2E;AAAlE,yIAAA,yBAAyB,OAAA;AAClC,mFAA+E;AAAtE,6IAAA,2BAA2B,OAAA;AACpC,6CAA2B"}
|