@prezly/theme-kit-nextjs 1.16.0-1 → 1.16.1
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/adapter-nextjs/api-handlers/fetchGalleries.js +7 -3
- package/build/adapter-nextjs/api-handlers/fetchGalleries.js.map +1 -1
- package/build/adapter-nextjs/api-handlers/fetchStories.js +7 -3
- package/build/adapter-nextjs/api-handlers/fetchStories.js.map +1 -1
- package/build/adapter-nextjs/api-handlers/index.js +7 -2
- package/build/adapter-nextjs/api-handlers/index.js.map +1 -1
- package/build/adapter-nextjs/getNewsroomServerSideProps.js +7 -3
- package/build/adapter-nextjs/getNewsroomServerSideProps.js.map +1 -1
- package/build/adapter-nextjs/getNewsroomStaticProps.js +7 -3
- package/build/adapter-nextjs/getNewsroomStaticProps.js.map +1 -1
- package/build/adapter-nextjs/index.js +22 -6
- package/build/adapter-nextjs/index.js.map +1 -1
- package/build/adapter-nextjs/page-props/category.js +27 -27
- package/build/adapter-nextjs/page-props/category.js.map +1 -1
- package/build/adapter-nextjs/page-props/gallery.js +18 -13
- package/build/adapter-nextjs/page-props/gallery.js.map +1 -1
- package/build/adapter-nextjs/page-props/galleryAlbum.js +19 -13
- package/build/adapter-nextjs/page-props/galleryAlbum.js.map +1 -1
- package/build/adapter-nextjs/page-props/home.js +18 -13
- package/build/adapter-nextjs/page-props/home.js.map +1 -1
- package/build/adapter-nextjs/page-props/index.js +41 -8
- package/build/adapter-nextjs/page-props/index.js.map +1 -1
- package/build/adapter-nextjs/page-props/lib/types.js +2 -1
- package/build/adapter-nextjs/page-props/search.js +15 -10
- package/build/adapter-nextjs/page-props/search.js.map +1 -1
- package/build/adapter-nextjs/page-props/sitemap/SitemapBuilder.js +5 -1
- package/build/adapter-nextjs/page-props/sitemap/SitemapBuilder.js.map +1 -1
- package/build/adapter-nextjs/page-props/sitemap/createPaths.js +5 -1
- package/build/adapter-nextjs/page-props/sitemap/createPaths.js.map +1 -1
- package/build/adapter-nextjs/page-props/sitemap/getServerSideProps.js +11 -7
- package/build/adapter-nextjs/page-props/sitemap/getServerSideProps.js.map +1 -1
- package/build/adapter-nextjs/page-props/sitemap/index.js +24 -4
- package/build/adapter-nextjs/page-props/sitemap/index.js.map +1 -1
- package/build/adapter-nextjs/page-props/sitemap/types.js +2 -1
- package/build/adapter-nextjs/page-props/story.js +25 -25
- package/build/adapter-nextjs/page-props/story.js.map +1 -1
- package/build/adapter-nextjs/page-props/storyPreview.js +12 -11
- package/build/adapter-nextjs/page-props/storyPreview.js.map +1 -1
- package/build/adapter-nextjs/processRequest.js +9 -5
- package/build/adapter-nextjs/processRequest.js.map +1 -1
- package/build/adapter-nextjs/processStaticRequest.js +5 -1
- package/build/adapter-nextjs/processStaticRequest.js.map +1 -1
- package/build/components-nextjs/PageSeo/PageSeo.js +28 -24
- package/build/components-nextjs/PageSeo/PageSeo.js.map +1 -1
- package/build/components-nextjs/PageSeo/index.js +20 -2
- package/build/components-nextjs/PageSeo/index.js.map +1 -1
- package/build/components-nextjs/PageSeo/lib/getAbsoluteUrl.js +5 -1
- package/build/components-nextjs/PageSeo/lib/getAbsoluteUrl.js.map +1 -1
- package/build/components-nextjs/PageSeo/lib/types.js +2 -1
- package/build/components-nextjs/StorySeo/StorySeo.js +11 -7
- package/build/components-nextjs/StorySeo/StorySeo.js.map +1 -1
- package/build/components-nextjs/StorySeo/index.js +5 -1
- package/build/components-nextjs/StorySeo/index.js.map +1 -1
- package/build/components-nextjs/document.js +35 -8
- package/build/components-nextjs/document.js.map +1 -1
- package/build/components-nextjs/index.js +9 -3
- package/build/components-nextjs/index.js.map +1 -1
- package/build/data-fetching/api/PrezlyApi.js +36 -29
- package/build/data-fetching/api/PrezlyApi.js.map +1 -1
- package/build/data-fetching/api/getPrezlyApi.js +9 -5
- package/build/data-fetching/api/getPrezlyApi.js.map +1 -1
- package/build/data-fetching/api/index.js +17 -1
- package/build/data-fetching/api/index.js.map +1 -1
- package/build/data-fetching/api/queries.js +13 -5
- package/build/data-fetching/api/queries.js.map +1 -1
- package/build/data-fetching/index.js +19 -3
- package/build/data-fetching/index.js.map +1 -1
- package/build/data-fetching/lib/getAlgoliaSettings.js +7 -3
- package/build/data-fetching/lib/getAlgoliaSettings.js.map +1 -1
- package/build/data-fetching/lib/getEnvVariables.js +10 -3
- package/build/data-fetching/lib/getEnvVariables.js.map +1 -1
- package/build/data-fetching/lib/index.js +11 -4
- package/build/data-fetching/lib/index.js.map +1 -1
- package/build/data-fetching/lib/isSdkError.js +5 -1
- package/build/data-fetching/lib/isSdkError.js.map +1 -1
- package/build/data-fetching/lib/isUuid.js +5 -1
- package/build/data-fetching/lib/isUuid.js.map +1 -1
- package/build/data-fetching/types.js +2 -1
- package/build/index.js +25 -9
- package/build/index.js.map +1 -1
- package/build/infinite-loading/index.js +24 -4
- package/build/infinite-loading/index.js.map +1 -1
- package/build/infinite-loading/types.js +2 -1
- package/build/infinite-loading/useInfiniteGalleriesLoading.js +7 -3
- package/build/infinite-loading/useInfiniteGalleriesLoading.js.map +1 -1
- package/build/infinite-loading/useInfiniteLoading.js +13 -9
- package/build/infinite-loading/useInfiniteLoading.js.map +1 -1
- package/build/infinite-loading/useInfiniteStoriesLoading.js +11 -7
- package/build/infinite-loading/useInfiniteStoriesLoading.js.map +1 -1
- package/build/intl/index.js +25 -4
- package/build/intl/index.js.map +1 -1
- package/build/intl/languages.js +35 -22
- package/build/intl/languages.js.map +1 -1
- package/build/intl/locale.js +17 -11
- package/build/intl/locale.js.map +1 -1
- package/build/intl/localeObject.js +10 -3
- package/build/intl/localeObject.js.map +1 -1
- package/build/newsroom-context/context.js +11 -7
- package/build/newsroom-context/context.js.map +1 -1
- package/build/newsroom-context/hooks/index.js +27 -11
- package/build/newsroom-context/hooks/index.js.map +1 -1
- package/build/newsroom-context/hooks/useAlgoliaSettings.js +7 -3
- package/build/newsroom-context/hooks/useAlgoliaSettings.js.map +1 -1
- package/build/newsroom-context/hooks/useCategories.js +7 -3
- package/build/newsroom-context/hooks/useCategories.js.map +1 -1
- package/build/newsroom-context/hooks/useCompanyInformation.js +7 -3
- package/build/newsroom-context/hooks/useCompanyInformation.js.map +1 -1
- package/build/newsroom-context/hooks/useCurrentCategory.js +7 -3
- package/build/newsroom-context/hooks/useCurrentCategory.js.map +1 -1
- package/build/newsroom-context/hooks/useCurrentLocale.js +7 -3
- package/build/newsroom-context/hooks/useCurrentLocale.js.map +1 -1
- package/build/newsroom-context/hooks/useCurrentStory.js +7 -3
- package/build/newsroom-context/hooks/useCurrentStory.js.map +1 -1
- package/build/newsroom-context/hooks/useGetLinkLocaleSlug.js +14 -10
- package/build/newsroom-context/hooks/useGetLinkLocaleSlug.js.map +1 -1
- package/build/newsroom-context/hooks/useGetTranslationUrl.js +16 -12
- package/build/newsroom-context/hooks/useGetTranslationUrl.js.map +1 -1
- package/build/newsroom-context/hooks/useLanguages.js +7 -3
- package/build/newsroom-context/hooks/useLanguages.js.map +1 -1
- package/build/newsroom-context/hooks/useNewsroom.js +7 -3
- package/build/newsroom-context/hooks/useNewsroom.js.map +1 -1
- package/build/newsroom-context/hooks/useNewsroomContext.js +8 -4
- package/build/newsroom-context/hooks/useNewsroomContext.js.map +1 -1
- package/build/newsroom-context/index.js +21 -2
- package/build/newsroom-context/index.js.map +1 -1
- package/build/sentry/client.js +7 -3
- package/build/sentry/client.js.map +1 -1
- package/build/sentry/common.js +5 -1
- package/build/sentry/common.js.map +1 -1
- package/build/sentry/index.js +7 -2
- package/build/sentry/index.js.map +1 -1
- package/build/sentry/server.js +7 -3
- package/build/sentry/server.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/types.js +2 -1
- package/build/utils/boilerplate.js +9 -3
- package/build/utils/boilerplate.js.map +1 -1
- package/build/utils/constants.js +6 -3
- package/build/utils/constants.js.map +1 -1
- package/build/utils/getAssetsUrl.js +7 -3
- package/build/utils/getAssetsUrl.js.map +1 -1
- package/build/utils/getDataRequestLink.js +7 -3
- package/build/utils/getDataRequestLink.js.map +1 -1
- package/build/utils/getLocalizedCategoryData.js +9 -3
- package/build/utils/getLocalizedCategoryData.js.map +1 -1
- package/build/utils/getNewsroomLogoUrl.js +10 -5
- package/build/utils/getNewsroomLogoUrl.js.map +1 -1
- package/build/utils/getPrivacyPortalUrl.js +5 -1
- package/build/utils/getPrivacyPortalUrl.js.map +1 -1
- package/build/utils/getStoryPublicationDate.js +5 -1
- package/build/utils/getStoryPublicationDate.js.map +1 -1
- package/build/utils/getUploadcareGroupUrl.js +7 -3
- package/build/utils/getUploadcareGroupUrl.js.map +1 -1
- package/build/utils/index.js +26 -10
- package/build/utils/index.js.map +1 -1
- package/build/utils/isEmbargoStory.js +5 -1
- package/build/utils/isEmbargoStory.js.map +1 -1
- package/package.json +2 -2
- package/src/adapter-nextjs/page-props/category.ts +4 -8
- package/src/adapter-nextjs/page-props/story.ts +4 -8
- package/src/adapter-nextjs/page-props/storyPreview.ts +2 -4
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchGalleries = void 0;
|
|
4
|
+
const data_fetching_1 = require("../../data-fetching");
|
|
5
|
+
async function fetchGalleries(req, res) {
|
|
3
6
|
if (req.method !== 'POST') {
|
|
4
7
|
res.status(405);
|
|
5
8
|
return;
|
|
6
9
|
}
|
|
7
10
|
const { page, pageSize } = req.body;
|
|
8
11
|
try {
|
|
9
|
-
const api = getPrezlyApi(req);
|
|
12
|
+
const api = (0, data_fetching_1.getPrezlyApi)(req);
|
|
10
13
|
const { galleries } = await api.getGalleries({ page, pageSize });
|
|
11
14
|
res.status(200).json({ galleries });
|
|
12
15
|
}
|
|
@@ -16,4 +19,5 @@ export async function fetchGalleries(req, res) {
|
|
|
16
19
|
});
|
|
17
20
|
}
|
|
18
21
|
}
|
|
22
|
+
exports.fetchGalleries = fetchGalleries;
|
|
19
23
|
//# sourceMappingURL=fetchGalleries.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchGalleries.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/api-handlers/fetchGalleries.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"fetchGalleries.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/api-handlers/fetchGalleries.ts"],"names":[],"mappings":";;;AAEA,uDAAmD;AAE5C,KAAK,UAAU,cAAc,CAAC,GAAmB,EAAE,GAAoB;IAC1E,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM,EAAE;QACvB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAChB,OAAO;KACV;IAED,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;IAEpC,IAAI;QACA,MAAM,GAAG,GAAG,IAAA,4BAAY,EAAC,GAAG,CAAC,CAAC;QAE9B,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,GAAG,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;QAEjE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;KACvC;IAAC,OAAO,KAAK,EAAE;QACZ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;YACjB,OAAO,EAAG,KAAe,CAAC,OAAO;SACpC,CAAC,CAAC;KACN;AACL,CAAC;AAnBD,wCAmBC"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchStories = void 0;
|
|
4
|
+
const data_fetching_1 = require("../../data-fetching");
|
|
5
|
+
async function fetchStories(req, res) {
|
|
3
6
|
if (req.method !== 'POST') {
|
|
4
7
|
res.status(405);
|
|
5
8
|
return;
|
|
6
9
|
}
|
|
7
10
|
const { page, pageSize, category, include, localeCode } = req.body;
|
|
8
11
|
try {
|
|
9
|
-
const api = getPrezlyApi(req);
|
|
12
|
+
const api = (0, data_fetching_1.getPrezlyApi)(req);
|
|
10
13
|
const { stories } = await (category
|
|
11
14
|
? api.getStoriesFromCategory(category, { page, pageSize, include, localeCode })
|
|
12
15
|
: api.getStories({ page, pageSize, include, localeCode }));
|
|
@@ -18,4 +21,5 @@ export async function fetchStories(req, res) {
|
|
|
18
21
|
});
|
|
19
22
|
}
|
|
20
23
|
}
|
|
24
|
+
exports.fetchStories = fetchStories;
|
|
21
25
|
//# sourceMappingURL=fetchStories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchStories.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/api-handlers/fetchStories.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"fetchStories.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/api-handlers/fetchStories.ts"],"names":[],"mappings":";;;AAEA,uDAAmD;AAE5C,KAAK,UAAU,YAAY,CAAC,GAAmB,EAAE,GAAoB;IACxE,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM,EAAE;QACvB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAChB,OAAO;KACV;IAED,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC;IAEnE,IAAI;QACA,MAAM,GAAG,GAAG,IAAA,4BAAY,EAAC,GAAG,CAAC,CAAC;QAE9B,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,QAAQ;YAC/B,CAAC,CAAC,GAAG,CAAC,sBAAsB,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;YAC/E,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC;QAE/D,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;KACrC;IAAC,OAAO,KAAK,EAAE;QACZ,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;YACjB,OAAO,EAAG,KAAe,CAAC,OAAO;SACpC,CAAC,CAAC;KACN;AACL,CAAC;AArBD,oCAqBC"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchStories = exports.fetchGalleries = void 0;
|
|
4
|
+
var fetchGalleries_1 = require("./fetchGalleries");
|
|
5
|
+
Object.defineProperty(exports, "fetchGalleries", { enumerable: true, get: function () { return fetchGalleries_1.fetchGalleries; } });
|
|
6
|
+
var fetchStories_1 = require("./fetchStories");
|
|
7
|
+
Object.defineProperty(exports, "fetchStories", { enumerable: true, get: function () { return fetchStories_1.fetchStories; } });
|
|
3
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/api-handlers/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/api-handlers/index.ts"],"names":[],"mappings":";;;AAAA,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,+CAA8C;AAArC,4GAAA,YAAY,OAAA"}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getNewsroomServerSideProps = void 0;
|
|
4
|
+
const data_fetching_1 = require("../data-fetching");
|
|
2
5
|
/**
|
|
3
6
|
* Use this function in your `getServerSideProps` page methods to retrieve the data necessary for the NewsroomContextProvider and `processRequest` function.
|
|
4
7
|
* See README for usage examples.
|
|
5
8
|
*/
|
|
6
|
-
|
|
9
|
+
async function getNewsroomServerSideProps(context, options = {}) {
|
|
7
10
|
const { req: request, locale } = context;
|
|
8
|
-
const api = getPrezlyApi(request);
|
|
11
|
+
const api = (0, data_fetching_1.getPrezlyApi)(request);
|
|
9
12
|
const serverSideProps = await api.getNewsroomServerSideProps(request, locale, options.story);
|
|
10
13
|
if (options.loadHomepageContacts) {
|
|
11
14
|
serverSideProps.newsroomContextProps.contacts = await api.getNewsroomContacts();
|
|
12
15
|
}
|
|
13
16
|
return { api, serverSideProps };
|
|
14
17
|
}
|
|
18
|
+
exports.getNewsroomServerSideProps = getNewsroomServerSideProps;
|
|
15
19
|
//# sourceMappingURL=getNewsroomServerSideProps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNewsroomServerSideProps.js","sourceRoot":"","sources":["../../src/adapter-nextjs/getNewsroomServerSideProps.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"getNewsroomServerSideProps.js","sourceRoot":"","sources":["../../src/adapter-nextjs/getNewsroomServerSideProps.ts"],"names":[],"mappings":";;;AAGA,oDAAgD;AAOhD;;;GAGG;AACI,KAAK,UAAU,0BAA0B,CAC5C,OAAkC,EAClC,UAAmB,EAAE;IAErB,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAEzC,MAAM,GAAG,GAAG,IAAA,4BAAY,EAAC,OAAO,CAAC,CAAC;IAClC,MAAM,eAAe,GAAG,MAAM,GAAG,CAAC,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAE7F,IAAI,OAAO,CAAC,oBAAoB,EAAE;QAC9B,eAAe,CAAC,oBAAoB,CAAC,QAAQ,GAAG,MAAM,GAAG,CAAC,mBAAmB,EAAE,CAAC;KACnF;IAED,OAAO,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC;AACpC,CAAC;AAdD,gEAcC"}
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getNewsroomStaticProps = void 0;
|
|
4
|
+
const data_fetching_1 = require("../data-fetching");
|
|
2
5
|
/**
|
|
3
6
|
* Use this function in your `getNewsroomStaticProps` page methods to retrieve the data necessary for the NewsroomContextProvider and `processRequest` function.
|
|
4
7
|
* See README for usage examples.
|
|
5
8
|
*/
|
|
6
|
-
|
|
9
|
+
async function getNewsroomStaticProps(context, options = {}) {
|
|
7
10
|
const { locale } = context;
|
|
8
|
-
const api = getPrezlyApi();
|
|
11
|
+
const api = (0, data_fetching_1.getPrezlyApi)();
|
|
9
12
|
const staticProps = await api.getNewsroomServerSideProps(undefined, locale, options.story);
|
|
10
13
|
if (options.loadHomepageContacts) {
|
|
11
14
|
staticProps.newsroomContextProps.contacts = await api.getNewsroomContacts();
|
|
12
15
|
}
|
|
13
16
|
return { api, staticProps };
|
|
14
17
|
}
|
|
18
|
+
exports.getNewsroomStaticProps = getNewsroomStaticProps;
|
|
15
19
|
//# sourceMappingURL=getNewsroomStaticProps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNewsroomStaticProps.js","sourceRoot":"","sources":["../../src/adapter-nextjs/getNewsroomStaticProps.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"getNewsroomStaticProps.js","sourceRoot":"","sources":["../../src/adapter-nextjs/getNewsroomStaticProps.ts"],"names":[],"mappings":";;;AAGA,oDAAgD;AAOhD;;;GAGG;AACI,KAAK,UAAU,sBAAsB,CACxC,OAA8B,EAC9B,UAAmB,EAAE;IAErB,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAE3B,MAAM,GAAG,GAAG,IAAA,4BAAY,GAAE,CAAC;IAC3B,MAAM,WAAW,GAAG,MAAM,GAAG,CAAC,0BAA0B,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAE3F,IAAI,OAAO,CAAC,oBAAoB,EAAE;QAC9B,WAAW,CAAC,oBAAoB,CAAC,QAAQ,GAAG,MAAM,GAAG,CAAC,mBAAmB,EAAE,CAAC;KAC/E;IAED,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;AAChC,CAAC;AAdD,wDAcC"}
|
|
@@ -1,7 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./api-handlers"), exports);
|
|
18
|
+
__exportStar(require("./getNewsroomServerSideProps"), exports);
|
|
19
|
+
__exportStar(require("./getNewsroomStaticProps"), exports);
|
|
20
|
+
__exportStar(require("./page-props"), exports);
|
|
21
|
+
__exportStar(require("./processRequest"), exports);
|
|
22
|
+
__exportStar(require("./processStaticRequest"), exports);
|
|
7
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/adapter-nextjs/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/adapter-nextjs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,+DAA6C;AAC7C,2DAAyC;AACzC,+CAA6B;AAC7B,mDAAiC;AACjC,yDAAuC"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCategoryPageStaticPaths = exports.getCategoryPageStaticProps = exports.getCategoryPageServerSideProps = void 0;
|
|
4
|
+
const data_fetching_1 = require("../../data-fetching");
|
|
5
|
+
const intl_1 = require("../../intl");
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
|
+
const getNewsroomServerSideProps_1 = require("../getNewsroomServerSideProps");
|
|
8
|
+
const getNewsroomStaticProps_1 = require("../getNewsroomStaticProps");
|
|
9
|
+
const processRequest_1 = require("../processRequest");
|
|
10
|
+
const processStaticRequest_1 = require("../processStaticRequest");
|
|
11
|
+
function getCategoryPageServerSideProps(customProps, options) {
|
|
12
|
+
const { pageSize = utils_1.DEFAULT_PAGE_SIZE, extraStoryFields } = options || {};
|
|
10
13
|
return async function getServerSideProps(context) {
|
|
11
|
-
const { api, serverSideProps } = await getNewsroomServerSideProps(context);
|
|
14
|
+
const { api, serverSideProps } = await (0, getNewsroomServerSideProps_1.getNewsroomServerSideProps)(context);
|
|
12
15
|
const { slug } = context.params;
|
|
13
16
|
const category = await api.getCategoryBySlug(slug);
|
|
14
17
|
if (!category) {
|
|
@@ -25,12 +28,9 @@ export function getCategoryPageServerSideProps(customProps, options) {
|
|
|
25
28
|
include: extraStoryFields,
|
|
26
29
|
localeCode,
|
|
27
30
|
});
|
|
28
|
-
|
|
31
|
+
serverSideProps.newsroomContextProps.currentCategory = category;
|
|
32
|
+
return (0, processRequest_1.processRequest)(context, {
|
|
29
33
|
...serverSideProps,
|
|
30
|
-
newsroomContextProps: {
|
|
31
|
-
...serverSideProps.newsroomContextProps,
|
|
32
|
-
currentCategory: category,
|
|
33
|
-
},
|
|
34
34
|
// TODO: This is temporary until return types from API are figured out
|
|
35
35
|
stories: stories,
|
|
36
36
|
pagination: {
|
|
@@ -44,10 +44,11 @@ export function getCategoryPageServerSideProps(customProps, options) {
|
|
|
44
44
|
}, `/category/${slug}`);
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
exports.getCategoryPageServerSideProps = getCategoryPageServerSideProps;
|
|
48
|
+
function getCategoryPageStaticProps(customProps, options) {
|
|
49
|
+
const { pageSize = utils_1.DEFAULT_PAGE_SIZE, extraStoryFields } = options || {};
|
|
49
50
|
return async function getStaticProps(context) {
|
|
50
|
-
const { api, staticProps } = await getNewsroomStaticProps(context);
|
|
51
|
+
const { api, staticProps } = await (0, getNewsroomStaticProps_1.getNewsroomStaticProps)(context);
|
|
51
52
|
const { slug } = context.params;
|
|
52
53
|
const category = await api.getCategoryBySlug(slug);
|
|
53
54
|
if (!category) {
|
|
@@ -61,12 +62,9 @@ export function getCategoryPageStaticProps(customProps, options) {
|
|
|
61
62
|
include: extraStoryFields,
|
|
62
63
|
localeCode,
|
|
63
64
|
});
|
|
64
|
-
|
|
65
|
+
staticProps.newsroomContextProps.currentCategory = category;
|
|
66
|
+
return (0, processStaticRequest_1.processStaticRequest)(context, {
|
|
65
67
|
...staticProps,
|
|
66
|
-
newsroomContextProps: {
|
|
67
|
-
...staticProps.newsroomContextProps,
|
|
68
|
-
currentCategory: category,
|
|
69
|
-
},
|
|
70
68
|
// TODO: This is temporary until return types from API are figured out
|
|
71
69
|
stories: stories,
|
|
72
70
|
pagination: {
|
|
@@ -80,16 +78,17 @@ export function getCategoryPageStaticProps(customProps, options) {
|
|
|
80
78
|
});
|
|
81
79
|
};
|
|
82
80
|
}
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
exports.getCategoryPageStaticProps = getCategoryPageStaticProps;
|
|
82
|
+
async function getCategoryPageStaticPaths() {
|
|
83
|
+
const api = (0, data_fetching_1.getPrezlyApi)();
|
|
85
84
|
const [categories, defaultLanguage] = await Promise.all([
|
|
86
85
|
api.getCategories(),
|
|
87
86
|
api.getNewsroomDefaultLanguage(),
|
|
88
87
|
]);
|
|
89
|
-
const locale = LocaleObject.fromAnyCode(defaultLanguage.code);
|
|
88
|
+
const locale = intl_1.LocaleObject.fromAnyCode(defaultLanguage.code);
|
|
90
89
|
const paths = categories
|
|
91
90
|
.map((category) => {
|
|
92
|
-
const { slug } = getLocalizedCategoryData(category, locale);
|
|
91
|
+
const { slug } = (0, utils_1.getLocalizedCategoryData)(category, locale);
|
|
93
92
|
if (!slug) {
|
|
94
93
|
return undefined;
|
|
95
94
|
}
|
|
@@ -101,4 +100,5 @@ export async function getCategoryPageStaticPaths() {
|
|
|
101
100
|
fallback: 'blocking',
|
|
102
101
|
};
|
|
103
102
|
}
|
|
103
|
+
exports.getCategoryPageStaticPaths = getCategoryPageStaticPaths;
|
|
104
104
|
//# sourceMappingURL=category.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/category.ts"],"names":[],"mappings":"AASA,
|
|
1
|
+
{"version":3,"file":"category.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/category.ts"],"names":[],"mappings":";;;AASA,uDAAmD;AAEnD,qCAA0C;AAC1C,uCAA0E;AAC1E,8EAA2E;AAC3E,sEAAmE;AACnE,sDAAmD;AACnD,kEAA+D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AAC,MAAO,WAAiE,CACpE,OAAO,EACP,WAAW,CACd;gBACH,CAAC,CAAC,WAAW,CAAC;SACrB,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC;AA/CD,gEA+CC;AAEM,KAAK,UAAU,0BAA0B;IAC5C,MAAM,GAAG,GAAG,IAAA,4BAAY,GAAE,CAAC;IAC3B,MAAM,CAAC,UAAU,EAAE,eAAe,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACpD,GAAG,CAAC,aAAa,EAAE;QACnB,GAAG,CAAC,0BAA0B,EAAE;KACnC,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,mBAAY,CAAC,WAAW,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAE9D,MAAM,KAAK,GAAG,UAAU;SACnB,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;QACd,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,gCAAwB,EAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC5D,IAAI,CAAC,IAAI,EAAE;YACP,OAAO,SAAS,CAAC;SACpB;QAED,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC;IAChC,CAAC,CAAC;SACD,MAAM,CAA+B,OAAc,CAAC,CAAC;IAE1D,OAAO;QACH,KAAK;QACL,QAAQ,EAAE,UAAU;KACvB,CAAC;AACN,CAAC;AAvBD,gEAuBC"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getGalleryPageStaticProps = exports.getGalleryPageServerSideProps = void 0;
|
|
4
|
+
const utils_1 = require("../../utils");
|
|
5
|
+
const getNewsroomServerSideProps_1 = require("../getNewsroomServerSideProps");
|
|
6
|
+
const getNewsroomStaticProps_1 = require("../getNewsroomStaticProps");
|
|
7
|
+
const processRequest_1 = require("../processRequest");
|
|
8
|
+
const processStaticRequest_1 = require("../processStaticRequest");
|
|
9
|
+
function getGalleryPageServerSideProps(customProps, options) {
|
|
10
|
+
const { pageSize = utils_1.DEFAULT_GALLERY_PAGE_SIZE } = options || {};
|
|
8
11
|
return async function getServerSideProps(context) {
|
|
9
|
-
const { api, serverSideProps } = await getNewsroomServerSideProps(context);
|
|
12
|
+
const { api, serverSideProps } = await (0, getNewsroomServerSideProps_1.getNewsroomServerSideProps)(context);
|
|
10
13
|
const { query } = context;
|
|
11
14
|
const page = query.page && typeof query.page === 'string' ? Number(query.page) : undefined;
|
|
12
15
|
const { galleries, pagination } = await api.getGalleries({ page, pageSize });
|
|
@@ -20,7 +23,7 @@ export function getGalleryPageServerSideProps(customProps, options) {
|
|
|
20
23
|
},
|
|
21
24
|
};
|
|
22
25
|
}
|
|
23
|
-
return processRequest(context, {
|
|
26
|
+
return (0, processRequest_1.processRequest)(context, {
|
|
24
27
|
...serverSideProps,
|
|
25
28
|
galleries,
|
|
26
29
|
pagination: {
|
|
@@ -34,10 +37,11 @@ export function getGalleryPageServerSideProps(customProps, options) {
|
|
|
34
37
|
}, '/media');
|
|
35
38
|
};
|
|
36
39
|
}
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
exports.getGalleryPageServerSideProps = getGalleryPageServerSideProps;
|
|
41
|
+
function getGalleryPageStaticProps(customProps, options) {
|
|
42
|
+
const { pageSize = utils_1.DEFAULT_GALLERY_PAGE_SIZE } = options || {};
|
|
39
43
|
return async function getStaticProps(context) {
|
|
40
|
-
const { api, staticProps } = await getNewsroomStaticProps(context);
|
|
44
|
+
const { api, staticProps } = await (0, getNewsroomStaticProps_1.getNewsroomStaticProps)(context);
|
|
41
45
|
const { galleries, pagination } = await api.getGalleries({ pageSize });
|
|
42
46
|
// If there's only one gallery, redirect to it immediately
|
|
43
47
|
if (galleries.length === 1) {
|
|
@@ -49,7 +53,7 @@ export function getGalleryPageStaticProps(customProps, options) {
|
|
|
49
53
|
},
|
|
50
54
|
};
|
|
51
55
|
}
|
|
52
|
-
return processStaticRequest(context, {
|
|
56
|
+
return (0, processStaticRequest_1.processStaticRequest)(context, {
|
|
53
57
|
...staticProps,
|
|
54
58
|
galleries,
|
|
55
59
|
pagination: {
|
|
@@ -63,4 +67,5 @@ export function getGalleryPageStaticProps(customProps, options) {
|
|
|
63
67
|
});
|
|
64
68
|
};
|
|
65
69
|
}
|
|
70
|
+
exports.getGalleryPageStaticProps = getGalleryPageStaticProps;
|
|
66
71
|
//# sourceMappingURL=gallery.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gallery.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/gallery.ts"],"names":[],"mappings":"AASA,
|
|
1
|
+
{"version":3,"file":"gallery.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/gallery.ts"],"names":[],"mappings":";;;AASA,uCAAwD;AACxD,8EAA2E;AAC3E,sEAAmE;AACnE,sDAAmD;AACnD,kEAA+D;AAa/D,SAAgB,6BAA6B,CACzC,WAAqD,EACrD,OAAiB;IAEjB,MAAM,EAAE,QAAQ,GAAG,iCAAyB,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;IAE/D,OAAO,KAAK,UAAU,kBAAkB,CACpC,OAAkC;QAElC,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,GAAG,MAAM,IAAA,uDAA0B,EAAC,OAAO,CAAC,CAAC;QAC3E,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;QAE1B,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAC3F,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,MAAM,GAAG,CAAC,YAAY,CAAC,EAAE,IAAI,E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AgB,IAAI,EAAE;oBACnC,SAAS,EAAE,KAAK;iBACnB;aACJ,CAAC;SACL;QAED,OAAO,IAAA,2CAAoB,EAAC,OAAO,EAAE;YACjC,GAAG,WAAW;YACd,SAAS;YACT,UAAU,EAAE;gBACR,UAAU,EAAE,UAAU,CAAC,sBAAsB;gBAC7C,WAAW,EAAE,CAAC;gBACd,QAAQ;aACX;YACD,GAAG,CAAC,OAAO,WAAW,KAAK,UAAU;gBACjC,CAAC,CAAC,MAAO,WAAiE,CACpE,OAAO,EACP,WAAW,CACd;gBACH,CAAC,CAAC,WAAW,CAAC;SACrB,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC;AAzCD,8DAyCC"}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getGalleryAlbumPageStaticPaths = exports.getGalleryAlbumPageStaticProps = exports.getGalleryAlbumPageServerSideProps = void 0;
|
|
4
|
+
const data_fetching_1 = require("../../data-fetching");
|
|
5
|
+
const getNewsroomServerSideProps_1 = require("../getNewsroomServerSideProps");
|
|
6
|
+
const getNewsroomStaticProps_1 = require("../getNewsroomStaticProps");
|
|
7
|
+
const processRequest_1 = require("../processRequest");
|
|
8
|
+
const processStaticRequest_1 = require("../processStaticRequest");
|
|
9
|
+
function getGalleryAlbumPageServerSideProps(customProps) {
|
|
7
10
|
return async function getServerSideProps(context) {
|
|
8
|
-
const { api, serverSideProps } = await getNewsroomServerSideProps(context);
|
|
11
|
+
const { api, serverSideProps } = await (0, getNewsroomServerSideProps_1.getNewsroomServerSideProps)(context);
|
|
9
12
|
const { uuid } = context.params;
|
|
10
13
|
const gallery = await api.getGallery(uuid);
|
|
11
14
|
if (!gallery || !gallery.images_number) {
|
|
12
15
|
return { notFound: true };
|
|
13
16
|
}
|
|
14
|
-
return processRequest(context, {
|
|
17
|
+
return (0, processRequest_1.processRequest)(context, {
|
|
15
18
|
...serverSideProps,
|
|
16
19
|
gallery,
|
|
17
20
|
...(typeof customProps === 'function'
|
|
@@ -20,15 +23,16 @@ export function getGalleryAlbumPageServerSideProps(customProps) {
|
|
|
20
23
|
}, `/media/album/${uuid}`);
|
|
21
24
|
};
|
|
22
25
|
}
|
|
23
|
-
|
|
26
|
+
exports.getGalleryAlbumPageServerSideProps = getGalleryAlbumPageServerSideProps;
|
|
27
|
+
function getGalleryAlbumPageStaticProps(customProps) {
|
|
24
28
|
return async function getStaticProps(context) {
|
|
25
|
-
const { api, staticProps } = await getNewsroomStaticProps(context);
|
|
29
|
+
const { api, staticProps } = await (0, getNewsroomStaticProps_1.getNewsroomStaticProps)(context);
|
|
26
30
|
const { uuid } = context.params;
|
|
27
31
|
const gallery = await api.getGallery(uuid);
|
|
28
32
|
if (!gallery || !gallery.images_number) {
|
|
29
33
|
return { notFound: true };
|
|
30
34
|
}
|
|
31
|
-
return processStaticRequest(context, {
|
|
35
|
+
return (0, processStaticRequest_1.processStaticRequest)(context, {
|
|
32
36
|
...staticProps,
|
|
33
37
|
gallery,
|
|
34
38
|
...(typeof customProps === 'function'
|
|
@@ -37,8 +41,9 @@ export function getGalleryAlbumPageStaticProps(customProps) {
|
|
|
37
41
|
});
|
|
38
42
|
};
|
|
39
43
|
}
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
exports.getGalleryAlbumPageStaticProps = getGalleryAlbumPageStaticProps;
|
|
45
|
+
async function getGalleryAlbumPageStaticPaths() {
|
|
46
|
+
const api = (0, data_fetching_1.getPrezlyApi)();
|
|
42
47
|
const { galleries } = await api.getGalleries({});
|
|
43
48
|
const paths = galleries.map(({ uuid }) => ({ params: { uuid } }));
|
|
44
49
|
return {
|
|
@@ -46,4 +51,5 @@ export async function getGalleryAlbumPageStaticPaths() {
|
|
|
46
51
|
fallback: 'blocking',
|
|
47
52
|
};
|
|
48
53
|
}
|
|
54
|
+
exports.getGalleryAlbumPageStaticPaths = getGalleryAlbumPageStaticPaths;
|
|
49
55
|
//# sourceMappingURL=galleryAlbum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"galleryAlbum.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/galleryAlbum.ts"],"names":[],"mappings":"AASA,
|
|
1
|
+
{"version":3,"file":"galleryAlbum.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/galleryAlbum.ts"],"names":[],"mappings":";;;AASA,uDAAmD;AACnD,8EAA2E;AAC3E,sEAAmE;AACnE,sDAAmD;AACnD,kEAA+D;AAQ/D,SAAgB,kCAAkC,CAC9C,WAAqD;IAErD,OAAO,KAAK,UAAU,kBAAkB,CACpC,OAAkC;QAElC,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,GAAG,MAAM,IAAA,uDAA0B,EAAC,OAAO,CAAC,CAAC;QAE3E,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,MAA0B,CAAC;QACpD,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAE3C,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE;YACpC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SAC7B;QAED,OAAO,IAAA,+BAAc,EACjB,OAAO,EACP;YACI,GAAG,eAAe;YAClB,OAAO;YACP,GAAG,CAAC,OAAO,WAAW,KAAK,UAAU;gBACjC,CAAC,CAAC,MAAO,WAA0C,CAAC,OAAO,EAAE,eAAe,CAAC;gBAC7E,CAAC,CAAC,WAAW,CAAC;SACrB,EACD,gBAAgB,IAAI,EAAE,CACzB,CAAC;IACN,CAAC,CAAC;AACN,CAAC;AA3BD,gFA2BC;AAED,SAAgB,8BAA8B,CAC1C,WAA4E;IAE5E,OAAO,KAAK,UAAU,cAAc,CAChC,OAA8B;QAE9B,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,MAAM,IAAA,+CAAsB,EAAC,OAAO,CAAC,CAAC;QAEnE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,MAA0B,CAAC;QACpD,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAE3C,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE;YACpC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SAC7B;QAED,OAAO,IAAA,2CAAoB,EAAC,OAAO,EAAE;YACjC,GAAG,WAAW;YACd,OAAO;YACP,GAAG,CAAC,OAAO,WAAW,KAAK,UAAU;gBACjC,CAAC,CAAC,MAAO,WAAiE,CACpE,OAAO,EACP,WAAW,CACd;gBACH,CAAC,CAAC,WAAW,CAAC;SACrB,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC;AA1BD,wEA0BC;AAEM,KAAK,UAAU,8BAA8B;IAChD,MAAM,GAAG,GAAG,IAAA,4BAAY,GAAE,CAAC;IAC3B,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IAEjD,MAAM,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IAElE,OAAO;QACH,KAAK;QACL,QAAQ,EAAE,UAAU;KACvB,CAAC;AACN,CAAC;AAVD,wEAUC"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getHomepageStaticProps = exports.getHomepageServerSideProps = void 0;
|
|
4
|
+
const utils_1 = require("../../utils");
|
|
5
|
+
const getNewsroomServerSideProps_1 = require("../getNewsroomServerSideProps");
|
|
6
|
+
const getNewsroomStaticProps_1 = require("../getNewsroomStaticProps");
|
|
7
|
+
const processRequest_1 = require("../processRequest");
|
|
8
|
+
const processStaticRequest_1 = require("../processStaticRequest");
|
|
9
|
+
function getHomepageServerSideProps(customProps, options) {
|
|
10
|
+
const { pageSize = utils_1.DEFAULT_PAGE_SIZE, extraStoryFields } = options || {};
|
|
8
11
|
return async function getServerSideProps(context) {
|
|
9
|
-
const { api, serverSideProps } = await getNewsroomServerSideProps(context, {
|
|
12
|
+
const { api, serverSideProps } = await (0, getNewsroomServerSideProps_1.getNewsroomServerSideProps)(context, {
|
|
10
13
|
loadHomepageContacts: true,
|
|
11
14
|
});
|
|
12
15
|
const { query } = context;
|
|
@@ -19,7 +22,7 @@ export function getHomepageServerSideProps(customProps, options) {
|
|
|
19
22
|
localeCode,
|
|
20
23
|
});
|
|
21
24
|
const { stories, storiesTotal } = storiesPaginated;
|
|
22
|
-
return processRequest(context, {
|
|
25
|
+
return (0, processRequest_1.processRequest)(context, {
|
|
23
26
|
...serverSideProps,
|
|
24
27
|
// TODO: This is temporary until return types from API are figured out
|
|
25
28
|
stories: stories,
|
|
@@ -34,10 +37,11 @@ export function getHomepageServerSideProps(customProps, options) {
|
|
|
34
37
|
}, '/');
|
|
35
38
|
};
|
|
36
39
|
}
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
exports.getHomepageServerSideProps = getHomepageServerSideProps;
|
|
41
|
+
function getHomepageStaticProps(customProps, options) {
|
|
42
|
+
const { pageSize = utils_1.DEFAULT_PAGE_SIZE, extraStoryFields } = options || {};
|
|
39
43
|
return async function getStaticProps(context) {
|
|
40
|
-
const { api, staticProps } = await getNewsroomStaticProps(context, {
|
|
44
|
+
const { api, staticProps } = await (0, getNewsroomStaticProps_1.getNewsroomStaticProps)(context, {
|
|
41
45
|
loadHomepageContacts: true,
|
|
42
46
|
});
|
|
43
47
|
const { localeCode } = staticProps.newsroomContextProps;
|
|
@@ -47,7 +51,7 @@ export function getHomepageStaticProps(customProps, options) {
|
|
|
47
51
|
localeCode,
|
|
48
52
|
});
|
|
49
53
|
const { stories, storiesTotal } = storiesPaginated;
|
|
50
|
-
return processStaticRequest(context, {
|
|
54
|
+
return (0, processStaticRequest_1.processStaticRequest)(context, {
|
|
51
55
|
...staticProps,
|
|
52
56
|
// TODO: This is temporary until return types from API are figured out
|
|
53
57
|
stories: stories,
|
|
@@ -62,4 +66,5 @@ export function getHomepageStaticProps(customProps, options) {
|
|
|
62
66
|
});
|
|
63
67
|
};
|
|
64
68
|
}
|
|
69
|
+
exports.getHomepageStaticProps = getHomepageStaticProps;
|
|
65
70
|
//# sourceMappingURL=home.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"home.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/home.ts"],"names":[],"mappings":"AASA,
|
|
1
|
+
{"version":3,"file":"home.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/home.ts"],"names":[],"mappings":";;;AASA,uCAAgD;AAChD,8EAA2E;AAC3E,sEAAmE;AACnE,sDAAmD;AACnD,kEAA+D;AAc/D,SAAgB,0BAA0B,CAGxC,WAAqD,EAAE,OAAiB;IACtE,MAAM,EAAE,QAAQ,GAAG,yBAAiB,EAAE,gBAAgB,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;IAEzE,OAAO,KAAK,UAAU,kBAAkB,CACpC,OAAkC;QAElC,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,GAAG,MAAM,IAAA,uDAA0B,EAAC,OAAO,EAAE;YACvE,oBAAoB,EAAE,IAAI;SAC7B,CAAC,CAAC;QAEH,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;QAC1B,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAA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MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,gBAAgB,CAAC;QAEnD,OAAO,IAAA,2CAAoB,EAAC,OAAO,EAAE;YACjC,GAAG,WAAW;YACd,sEAAsE;YACtE,OAAO,EAAE,OAAsB;YAC/B,UAAU,EAAE;gBACR,UAAU,EAAE,YAAY;gBACxB,WAAW,EAAE,CAAC;gBACd,QAAQ;aACX;YACD,GAAG,CAAC,OAAO,WAAW,KAAK,UAAU;gBACjC,CAAC,CAAC,MAAO,WAAiE,CACpE,OAAO,EACP,WAAW,CACd;gBACH,CAAC,CAAC,WAAW,CAAC;SACrB,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC;AAvCD,wDAuCC"}
|
|
@@ -1,9 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.getStoryPreviewPageServerSideProps = exports.getStoryPageStaticProps = exports.getStoryPageStaticPaths = exports.getStoryPageServerSideProps = exports.getSearchPageStaticProps = exports.getSearchPageServerSideProps = exports.getHomepageStaticProps = exports.getHomepageServerSideProps = exports.getGalleryAlbumPageStaticProps = exports.getGalleryAlbumPageStaticPaths = exports.getGalleryAlbumPageServerSideProps = exports.getGalleryPageStaticProps = exports.getGalleryPageServerSideProps = exports.getCategoryPageStaticProps = exports.getCategoryPageStaticPaths = exports.getCategoryPageServerSideProps = void 0;
|
|
18
|
+
var category_1 = require("./category");
|
|
19
|
+
Object.defineProperty(exports, "getCategoryPageServerSideProps", { enumerable: true, get: function () { return category_1.getCategoryPageServerSideProps; } });
|
|
20
|
+
Object.defineProperty(exports, "getCategoryPageStaticPaths", { enumerable: true, get: function () { return category_1.getCategoryPageStaticPaths; } });
|
|
21
|
+
Object.defineProperty(exports, "getCategoryPageStaticProps", { enumerable: true, get: function () { return category_1.getCategoryPageStaticProps; } });
|
|
22
|
+
var gallery_1 = require("./gallery");
|
|
23
|
+
Object.defineProperty(exports, "getGalleryPageServerSideProps", { enumerable: true, get: function () { return gallery_1.getGalleryPageServerSideProps; } });
|
|
24
|
+
Object.defineProperty(exports, "getGalleryPageStaticProps", { enumerable: true, get: function () { return gallery_1.getGalleryPageStaticProps; } });
|
|
25
|
+
var galleryAlbum_1 = require("./galleryAlbum");
|
|
26
|
+
Object.defineProperty(exports, "getGalleryAlbumPageServerSideProps", { enumerable: true, get: function () { return galleryAlbum_1.getGalleryAlbumPageServerSideProps; } });
|
|
27
|
+
Object.defineProperty(exports, "getGalleryAlbumPageStaticPaths", { enumerable: true, get: function () { return galleryAlbum_1.getGalleryAlbumPageStaticPaths; } });
|
|
28
|
+
Object.defineProperty(exports, "getGalleryAlbumPageStaticProps", { enumerable: true, get: function () { return galleryAlbum_1.getGalleryAlbumPageStaticProps; } });
|
|
29
|
+
var home_1 = require("./home");
|
|
30
|
+
Object.defineProperty(exports, "getHomepageServerSideProps", { enumerable: true, get: function () { return home_1.getHomepageServerSideProps; } });
|
|
31
|
+
Object.defineProperty(exports, "getHomepageStaticProps", { enumerable: true, get: function () { return home_1.getHomepageStaticProps; } });
|
|
32
|
+
var search_1 = require("./search");
|
|
33
|
+
Object.defineProperty(exports, "getSearchPageServerSideProps", { enumerable: true, get: function () { return search_1.getSearchPageServerSideProps; } });
|
|
34
|
+
Object.defineProperty(exports, "getSearchPageStaticProps", { enumerable: true, get: function () { return search_1.getSearchPageStaticProps; } });
|
|
35
|
+
__exportStar(require("./sitemap"), exports);
|
|
36
|
+
var story_1 = require("./story");
|
|
37
|
+
Object.defineProperty(exports, "getStoryPageServerSideProps", { enumerable: true, get: function () { return story_1.getStoryPageServerSideProps; } });
|
|
38
|
+
Object.defineProperty(exports, "getStoryPageStaticPaths", { enumerable: true, get: function () { return story_1.getStoryPageStaticPaths; } });
|
|
39
|
+
Object.defineProperty(exports, "getStoryPageStaticProps", { enumerable: true, get: function () { return story_1.getStoryPageStaticProps; } });
|
|
40
|
+
var storyPreview_1 = require("./storyPreview");
|
|
41
|
+
Object.defineProperty(exports, "getStoryPreviewPageServerSideProps", { enumerable: true, get: function () { return storyPreview_1.getStoryPreviewPageServerSideProps; } });
|
|
9
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uCAKoB;AAJhB,0HAAA,8BAA8B,OAAA;AAC9B,sHAAA,0BAA0B,OAAA;AAC1B,sHAAA,0BAA0B,OAAA;AAG9B,qCAImB;AAHf,wHAAA,6BAA6B,OAAA;AAC7B,oHAAA,yBAAyB,OAAA;AAG7B,+CAKwB;AAJpB,kIAAA,kCAAkC,OAAA;AAClC,8HAAA,8BAA8B,OAAA;AAC9B,8HAAA,8BAA8B,OAAA;AAGlC,+BAAgG;AAAvF,kHAAA,0BAA0B,OAAA;AAAE,8GAAA,sBAAsB,OAAA;AAC3D,mCAAkF;AAAzE,sHAAA,4BAA4B,OAAA;AAAE,kHAAA,wBAAwB,OAAA;AAC/D,4CAA0B;AAC1B,iCAIiB;AAHb,oHAAA,2BAA2B,OAAA;AAC3B,gHAAA,uBAAuB,OAAA;AACvB,gHAAA,uBAAuB,OAAA;AAE3B,+CAAoE;AAA3D,kIAAA,kCAAkC,OAAA"}
|