@prezly/theme-kit-nextjs 1.16.0-0 → 1.16.0-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 +15 -69
- package/build/adapter-nextjs/api-handlers/fetchGalleries.js.map +1 -1
- package/build/adapter-nextjs/api-handlers/fetchStories.js +17 -71
- package/build/adapter-nextjs/api-handlers/fetchStories.js.map +1 -1
- package/build/adapter-nextjs/api-handlers/index.js +2 -7
- package/build/adapter-nextjs/api-handlers/index.js.map +1 -1
- package/build/adapter-nextjs/getNewsroomServerSideProps.js +9 -63
- package/build/adapter-nextjs/getNewsroomServerSideProps.js.map +1 -1
- package/build/adapter-nextjs/getNewsroomStaticProps.js +9 -63
- package/build/adapter-nextjs/getNewsroomStaticProps.js.map +1 -1
- package/build/adapter-nextjs/index.js +6 -22
- package/build/adapter-nextjs/index.js.map +1 -1
- package/build/adapter-nextjs/page-props/category.js +95 -202
- package/build/adapter-nextjs/page-props/category.js.map +1 -1
- package/build/adapter-nextjs/page-props/gallery.js +59 -141
- package/build/adapter-nextjs/page-props/gallery.js.map +1 -1
- package/build/adapter-nextjs/page-props/galleryAlbum.js +41 -139
- package/build/adapter-nextjs/page-props/galleryAlbum.js.map +1 -1
- package/build/adapter-nextjs/page-props/home.js +58 -142
- package/build/adapter-nextjs/page-props/home.js.map +1 -1
- package/build/adapter-nextjs/page-props/index.js +8 -41
- package/build/adapter-nextjs/page-props/index.js.map +1 -1
- package/build/adapter-nextjs/page-props/lib/types.js +1 -2
- package/build/adapter-nextjs/page-props/search.js +21 -103
- package/build/adapter-nextjs/page-props/search.js.map +1 -1
- package/build/adapter-nextjs/page-props/sitemap/SitemapBuilder.js +18 -22
- package/build/adapter-nextjs/page-props/sitemap/SitemapBuilder.js.map +1 -1
- package/build/adapter-nextjs/page-props/sitemap/createPaths.js +10 -45
- package/build/adapter-nextjs/page-props/sitemap/createPaths.js.map +1 -1
- package/build/adapter-nextjs/page-props/sitemap/getServerSideProps.js +29 -81
- package/build/adapter-nextjs/page-props/sitemap/getServerSideProps.js.map +1 -1
- package/build/adapter-nextjs/page-props/sitemap/index.js +4 -24
- package/build/adapter-nextjs/page-props/sitemap/index.js.map +1 -1
- package/build/adapter-nextjs/page-props/sitemap/types.js +1 -2
- package/build/adapter-nextjs/page-props/story.js +58 -166
- package/build/adapter-nextjs/page-props/story.js.map +1 -1
- package/build/adapter-nextjs/page-props/storyPreview.js +20 -85
- package/build/adapter-nextjs/page-props/storyPreview.js.map +1 -1
- package/build/adapter-nextjs/processRequest.js +9 -24
- package/build/adapter-nextjs/processRequest.js.map +1 -1
- package/build/adapter-nextjs/processStaticRequest.js +3 -18
- package/build/adapter-nextjs/processStaticRequest.js.map +1 -1
- package/build/components-nextjs/PageSeo/PageSeo.js +42 -57
- package/build/components-nextjs/PageSeo/PageSeo.js.map +1 -1
- package/build/components-nextjs/PageSeo/index.js +2 -20
- package/build/components-nextjs/PageSeo/index.js.map +1 -1
- package/build/components-nextjs/PageSeo/lib/getAbsoluteUrl.js +2 -6
- package/build/components-nextjs/PageSeo/lib/getAbsoluteUrl.js.map +1 -1
- package/build/components-nextjs/PageSeo/lib/types.js +1 -2
- package/build/components-nextjs/StorySeo/StorySeo.js +28 -36
- package/build/components-nextjs/StorySeo/StorySeo.js.map +1 -1
- package/build/components-nextjs/StorySeo/index.js +1 -5
- package/build/components-nextjs/StorySeo/index.js.map +1 -1
- package/build/components-nextjs/document.js +16 -72
- package/build/components-nextjs/document.js.map +1 -1
- package/build/components-nextjs/index.js +3 -9
- package/build/components-nextjs/index.js.map +1 -1
- package/build/data-fetching/api/PrezlyApi.js +171 -363
- package/build/data-fetching/api/PrezlyApi.js.map +1 -1
- package/build/data-fetching/api/getPrezlyApi.js +5 -9
- package/build/data-fetching/api/getPrezlyApi.js.map +1 -1
- package/build/data-fetching/api/index.js +1 -17
- package/build/data-fetching/api/index.js.map +1 -1
- package/build/data-fetching/api/queries.js +13 -45
- package/build/data-fetching/api/queries.js.map +1 -1
- package/build/data-fetching/index.js +3 -19
- package/build/data-fetching/index.js.map +1 -1
- package/build/data-fetching/lib/getAlgoliaSettings.js +6 -10
- package/build/data-fetching/lib/getAlgoliaSettings.js.map +1 -1
- package/build/data-fetching/lib/getEnvVariables.js +11 -29
- package/build/data-fetching/lib/getEnvVariables.js.map +1 -1
- package/build/data-fetching/lib/index.js +4 -11
- package/build/data-fetching/lib/index.js.map +1 -1
- package/build/data-fetching/lib/isSdkError.js +1 -5
- package/build/data-fetching/lib/isSdkError.js.map +1 -1
- package/build/data-fetching/lib/isUuid.js +2 -6
- package/build/data-fetching/lib/isUuid.js.map +1 -1
- package/build/data-fetching/types.js +1 -2
- package/build/index.js +9 -25
- package/build/index.js.map +1 -1
- package/build/infinite-loading/index.js +4 -24
- package/build/infinite-loading/index.js.map +1 -1
- package/build/infinite-loading/types.js +1 -2
- package/build/infinite-loading/useInfiniteGalleriesLoading.js +25 -83
- package/build/infinite-loading/useInfiniteGalleriesLoading.js.map +1 -1
- package/build/infinite-loading/useInfiniteLoading.js +21 -97
- package/build/infinite-loading/useInfiniteLoading.js.map +1 -1
- package/build/infinite-loading/useInfiniteStoriesLoading.js +36 -99
- package/build/infinite-loading/useInfiniteStoriesLoading.js.map +1 -1
- package/build/intl/index.js +4 -25
- package/build/intl/index.js.map +1 -1
- package/build/intl/languages.js +47 -93
- package/build/intl/languages.js.map +1 -1
- package/build/intl/locale.js +21 -27
- package/build/intl/locale.js.map +1 -1
- package/build/intl/localeConfig.js +11 -32
- package/build/intl/localeConfig.js.map +1 -1
- package/build/intl/localeObject.js +30 -49
- package/build/intl/localeObject.js.map +1 -1
- package/build/newsroom-context/context.js +18 -34
- package/build/newsroom-context/context.js.map +1 -1
- package/build/newsroom-context/hooks/index.js +11 -27
- package/build/newsroom-context/hooks/index.js.map +1 -1
- package/build/newsroom-context/hooks/useAlgoliaSettings.js +3 -7
- package/build/newsroom-context/hooks/useAlgoliaSettings.js.map +1 -1
- package/build/newsroom-context/hooks/useCategories.js +3 -7
- package/build/newsroom-context/hooks/useCategories.js.map +1 -1
- package/build/newsroom-context/hooks/useCompanyInformation.js +3 -7
- package/build/newsroom-context/hooks/useCompanyInformation.js.map +1 -1
- package/build/newsroom-context/hooks/useCurrentCategory.js +3 -7
- package/build/newsroom-context/hooks/useCurrentCategory.js.map +1 -1
- package/build/newsroom-context/hooks/useCurrentLocale.js +3 -7
- package/build/newsroom-context/hooks/useCurrentLocale.js.map +1 -1
- package/build/newsroom-context/hooks/useCurrentStory.js +3 -7
- package/build/newsroom-context/hooks/useCurrentStory.js.map +1 -1
- package/build/newsroom-context/hooks/useGetLinkLocaleSlug.js +10 -14
- package/build/newsroom-context/hooks/useGetLinkLocaleSlug.js.map +1 -1
- package/build/newsroom-context/hooks/useGetTranslationUrl.js +17 -26
- package/build/newsroom-context/hooks/useGetTranslationUrl.js.map +1 -1
- package/build/newsroom-context/hooks/useLanguages.js +3 -7
- package/build/newsroom-context/hooks/useLanguages.js.map +1 -1
- package/build/newsroom-context/hooks/useNewsroom.js +3 -7
- package/build/newsroom-context/hooks/useNewsroom.js.map +1 -1
- package/build/newsroom-context/hooks/useNewsroomContext.js +4 -8
- package/build/newsroom-context/hooks/useNewsroomContext.js.map +1 -1
- package/build/newsroom-context/index.js +2 -21
- package/build/newsroom-context/index.js.map +1 -1
- package/build/sentry/client.js +3 -7
- package/build/sentry/client.js.map +1 -1
- package/build/sentry/common.js +3 -7
- package/build/sentry/common.js.map +1 -1
- package/build/sentry/index.js +2 -7
- package/build/sentry/index.js.map +1 -1
- package/build/sentry/server.js +3 -7
- package/build/sentry/server.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/types.js +1 -2
- package/build/utils/boilerplate.js +3 -9
- package/build/utils/boilerplate.js.map +1 -1
- package/build/utils/constants.js +3 -6
- package/build/utils/constants.js.map +1 -1
- package/build/utils/getAssetsUrl.js +3 -7
- package/build/utils/getAssetsUrl.js.map +1 -1
- package/build/utils/getDataRequestLink.js +3 -7
- package/build/utils/getDataRequestLink.js.map +1 -1
- package/build/utils/getLocalizedCategoryData.js +15 -32
- package/build/utils/getLocalizedCategoryData.js.map +1 -1
- package/build/utils/getNewsroomLogoUrl.js +6 -12
- package/build/utils/getNewsroomLogoUrl.js.map +1 -1
- package/build/utils/getPrivacyPortalUrl.js +3 -7
- package/build/utils/getPrivacyPortalUrl.js.map +1 -1
- package/build/utils/getStoryPublicationDate.js +2 -6
- package/build/utils/getStoryPublicationDate.js.map +1 -1
- package/build/utils/getUploadcareGroupUrl.js +3 -7
- package/build/utils/getUploadcareGroupUrl.js.map +1 -1
- package/build/utils/index.js +10 -26
- package/build/utils/index.js.map +1 -1
- package/build/utils/isEmbargoStory.js +1 -5
- package/build/utils/isEmbargoStory.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,147 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { getPrezlyApi } from '../../data-fetching';
|
|
2
|
+
import { getNewsroomServerSideProps } from '../getNewsroomServerSideProps';
|
|
3
|
+
import { getNewsroomStaticProps } from '../getNewsroomStaticProps';
|
|
4
|
+
import { processRequest } from '../processRequest';
|
|
5
|
+
import { processStaticRequest } from '../processStaticRequest';
|
|
6
|
+
export function getGalleryAlbumPageServerSideProps(customProps) {
|
|
7
|
+
return async function getServerSideProps(context) {
|
|
8
|
+
const { api, serverSideProps } = await getNewsroomServerSideProps(context);
|
|
9
|
+
const { uuid } = context.params;
|
|
10
|
+
const gallery = await api.getGallery(uuid);
|
|
11
|
+
if (!gallery || !gallery.images_number) {
|
|
12
|
+
return { notFound: true };
|
|
8
13
|
}
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (_) try {
|
|
29
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
-
exports.getGalleryAlbumPageStaticPaths = exports.getGalleryAlbumPageStaticProps = exports.getGalleryAlbumPageServerSideProps = void 0;
|
|
51
|
-
var data_fetching_1 = require("../../data-fetching");
|
|
52
|
-
var getNewsroomServerSideProps_1 = require("../getNewsroomServerSideProps");
|
|
53
|
-
var getNewsroomStaticProps_1 = require("../getNewsroomStaticProps");
|
|
54
|
-
var processRequest_1 = require("../processRequest");
|
|
55
|
-
var processStaticRequest_1 = require("../processStaticRequest");
|
|
56
|
-
function getGalleryAlbumPageServerSideProps(customProps) {
|
|
57
|
-
return function getServerSideProps(context) {
|
|
58
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
59
|
-
var _a, api, serverSideProps, uuid, gallery, _b, _c, _d, _e;
|
|
60
|
-
return __generator(this, function (_f) {
|
|
61
|
-
switch (_f.label) {
|
|
62
|
-
case 0: return [4 /*yield*/, (0, getNewsroomServerSideProps_1.getNewsroomServerSideProps)(context)];
|
|
63
|
-
case 1:
|
|
64
|
-
_a = _f.sent(), api = _a.api, serverSideProps = _a.serverSideProps;
|
|
65
|
-
uuid = context.params.uuid;
|
|
66
|
-
return [4 /*yield*/, api.getGallery(uuid)];
|
|
67
|
-
case 2:
|
|
68
|
-
gallery = _f.sent();
|
|
69
|
-
if (!gallery || !gallery.images_number) {
|
|
70
|
-
return [2 /*return*/, { notFound: true }];
|
|
71
|
-
}
|
|
72
|
-
_b = processRequest_1.processRequest;
|
|
73
|
-
_c = [context];
|
|
74
|
-
_d = [__assign(__assign({}, serverSideProps), { gallery: gallery })];
|
|
75
|
-
if (!(typeof customProps === 'function')) return [3 /*break*/, 4];
|
|
76
|
-
return [4 /*yield*/, customProps(context, serverSideProps)];
|
|
77
|
-
case 3:
|
|
78
|
-
_e = _f.sent();
|
|
79
|
-
return [3 /*break*/, 5];
|
|
80
|
-
case 4:
|
|
81
|
-
_e = customProps;
|
|
82
|
-
_f.label = 5;
|
|
83
|
-
case 5: return [2 /*return*/, _b.apply(void 0, _c.concat([__assign.apply(void 0, _d.concat([(_e)])), "/media/album/".concat(uuid)]))];
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
});
|
|
14
|
+
return processRequest(context, {
|
|
15
|
+
...serverSideProps,
|
|
16
|
+
gallery,
|
|
17
|
+
...(typeof customProps === 'function'
|
|
18
|
+
? await customProps(context, serverSideProps)
|
|
19
|
+
: customProps),
|
|
20
|
+
}, `/media/album/${uuid}`);
|
|
87
21
|
};
|
|
88
22
|
}
|
|
89
|
-
|
|
90
|
-
function
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
if (!gallery || !gallery.images_number) {
|
|
104
|
-
return [2 /*return*/, { notFound: true }];
|
|
105
|
-
}
|
|
106
|
-
_b = processStaticRequest_1.processStaticRequest;
|
|
107
|
-
_c = [context];
|
|
108
|
-
_d = [__assign(__assign({}, staticProps), { gallery: gallery })];
|
|
109
|
-
if (!(typeof customProps === 'function')) return [3 /*break*/, 4];
|
|
110
|
-
return [4 /*yield*/, customProps(context, staticProps)];
|
|
111
|
-
case 3:
|
|
112
|
-
_e = _f.sent();
|
|
113
|
-
return [3 /*break*/, 5];
|
|
114
|
-
case 4:
|
|
115
|
-
_e = customProps;
|
|
116
|
-
_f.label = 5;
|
|
117
|
-
case 5: return [2 /*return*/, _b.apply(void 0, _c.concat([__assign.apply(void 0, _d.concat([(_e)]))]))];
|
|
118
|
-
}
|
|
119
|
-
});
|
|
23
|
+
export function getGalleryAlbumPageStaticProps(customProps) {
|
|
24
|
+
return async function getStaticProps(context) {
|
|
25
|
+
const { api, staticProps } = await getNewsroomStaticProps(context);
|
|
26
|
+
const { uuid } = context.params;
|
|
27
|
+
const gallery = await api.getGallery(uuid);
|
|
28
|
+
if (!gallery || !gallery.images_number) {
|
|
29
|
+
return { notFound: true };
|
|
30
|
+
}
|
|
31
|
+
return processStaticRequest(context, {
|
|
32
|
+
...staticProps,
|
|
33
|
+
gallery,
|
|
34
|
+
...(typeof customProps === 'function'
|
|
35
|
+
? await customProps(context, staticProps)
|
|
36
|
+
: customProps),
|
|
120
37
|
});
|
|
121
38
|
};
|
|
122
39
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
return [4 /*yield*/, api.getGalleries({})];
|
|
132
|
-
case 1:
|
|
133
|
-
galleries = (_a.sent()).galleries;
|
|
134
|
-
paths = galleries.map(function (_a) {
|
|
135
|
-
var uuid = _a.uuid;
|
|
136
|
-
return ({ params: { uuid: uuid } });
|
|
137
|
-
});
|
|
138
|
-
return [2 /*return*/, {
|
|
139
|
-
paths: paths,
|
|
140
|
-
fallback: 'blocking',
|
|
141
|
-
}];
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
});
|
|
40
|
+
export async function getGalleryAlbumPageStaticPaths() {
|
|
41
|
+
const api = getPrezlyApi();
|
|
42
|
+
const { galleries } = await api.getGalleries({});
|
|
43
|
+
const paths = galleries.map(({ uuid }) => ({ params: { uuid } }));
|
|
44
|
+
return {
|
|
45
|
+
paths,
|
|
46
|
+
fallback: 'blocking',
|
|
47
|
+
};
|
|
145
48
|
}
|
|
146
|
-
exports.getGalleryAlbumPageStaticPaths = getGalleryAlbumPageStaticPaths;
|
|
147
49
|
//# sourceMappingURL=galleryAlbum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"galleryAlbum.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/galleryAlbum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"galleryAlbum.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/galleryAlbum.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAQ/D,MAAM,UAAU,kCAAkC,CAC9C,WAAqD;IAErD,OAAO,KAAK,UAAU,kBAAkB,CACpC,OAAkC;QAElC,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,GAAG,MAAM,0BAA0B,CAAC,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,cAAc,CACjB,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;AAED,MAAM,UAAU,8BAA8B,CAC1C,WAA4E;IAE5E,OAAO,KAAK,UAAU,cAAc,CAChC,OAA8B;QAE9B,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,MAAM,sBAAsB,CAAC,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,oBAAoB,CAAC,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;AAED,MAAM,CAAC,KAAK,UAAU,8BAA8B;IAChD,MAAM,GAAG,GAAG,YAAY,EAAE,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"}
|
|
@@ -1,149 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (_) try {
|
|
29
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
-
exports.getHomepageStaticProps = exports.getHomepageServerSideProps = void 0;
|
|
51
|
-
var utils_1 = require("../../utils");
|
|
52
|
-
var getNewsroomServerSideProps_1 = require("../getNewsroomServerSideProps");
|
|
53
|
-
var getNewsroomStaticProps_1 = require("../getNewsroomStaticProps");
|
|
54
|
-
var processRequest_1 = require("../processRequest");
|
|
55
|
-
var processStaticRequest_1 = require("../processStaticRequest");
|
|
56
|
-
function getHomepageServerSideProps(customProps, options) {
|
|
57
|
-
var _a = options || {}, _b = _a.pageSize, pageSize = _b === void 0 ? utils_1.DEFAULT_PAGE_SIZE : _b, extraStoryFields = _a.extraStoryFields;
|
|
58
|
-
return function getServerSideProps(context) {
|
|
59
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
60
|
-
var _a, api, serverSideProps, query, page, localeCode, storiesPaginated, stories, storiesTotal, _b, _c, _d, _e;
|
|
61
|
-
return __generator(this, function (_f) {
|
|
62
|
-
switch (_f.label) {
|
|
63
|
-
case 0: return [4 /*yield*/, (0, getNewsroomServerSideProps_1.getNewsroomServerSideProps)(context, {
|
|
64
|
-
loadHomepageContacts: true,
|
|
65
|
-
})];
|
|
66
|
-
case 1:
|
|
67
|
-
_a = _f.sent(), api = _a.api, serverSideProps = _a.serverSideProps;
|
|
68
|
-
query = context.query;
|
|
69
|
-
page = query.page && typeof query.page === 'string' ? Number(query.page) : undefined;
|
|
70
|
-
localeCode = serverSideProps.newsroomContextProps.localeCode;
|
|
71
|
-
return [4 /*yield*/, api.getStories({
|
|
72
|
-
page: page,
|
|
73
|
-
pageSize: pageSize,
|
|
74
|
-
include: extraStoryFields,
|
|
75
|
-
localeCode: localeCode,
|
|
76
|
-
})];
|
|
77
|
-
case 2:
|
|
78
|
-
storiesPaginated = _f.sent();
|
|
79
|
-
stories = storiesPaginated.stories, storiesTotal = storiesPaginated.storiesTotal;
|
|
80
|
-
_b = processRequest_1.processRequest;
|
|
81
|
-
_c = [context];
|
|
82
|
-
_d = [__assign(__assign({}, serverSideProps), {
|
|
83
|
-
// TODO: This is temporary until return types from API are figured out
|
|
84
|
-
stories: stories, pagination: {
|
|
85
|
-
itemsTotal: storiesTotal,
|
|
86
|
-
currentPage: page !== null && page !== void 0 ? page : 1,
|
|
87
|
-
pageSize: pageSize,
|
|
88
|
-
} })];
|
|
89
|
-
if (!(typeof customProps === 'function')) return [3 /*break*/, 4];
|
|
90
|
-
return [4 /*yield*/, customProps(context, serverSideProps)];
|
|
91
|
-
case 3:
|
|
92
|
-
_e = _f.sent();
|
|
93
|
-
return [3 /*break*/, 5];
|
|
94
|
-
case 4:
|
|
95
|
-
_e = customProps;
|
|
96
|
-
_f.label = 5;
|
|
97
|
-
case 5: return [2 /*return*/, _b.apply(void 0, _c.concat([__assign.apply(void 0, _d.concat([(_e)])), '/']))];
|
|
98
|
-
}
|
|
99
|
-
});
|
|
1
|
+
import { DEFAULT_PAGE_SIZE } from '../../utils';
|
|
2
|
+
import { getNewsroomServerSideProps } from '../getNewsroomServerSideProps';
|
|
3
|
+
import { getNewsroomStaticProps } from '../getNewsroomStaticProps';
|
|
4
|
+
import { processRequest } from '../processRequest';
|
|
5
|
+
import { processStaticRequest } from '../processStaticRequest';
|
|
6
|
+
export function getHomepageServerSideProps(customProps, options) {
|
|
7
|
+
const { pageSize = DEFAULT_PAGE_SIZE, extraStoryFields } = options || {};
|
|
8
|
+
return async function getServerSideProps(context) {
|
|
9
|
+
const { api, serverSideProps } = await getNewsroomServerSideProps(context, {
|
|
10
|
+
loadHomepageContacts: true,
|
|
11
|
+
});
|
|
12
|
+
const { query } = context;
|
|
13
|
+
const page = query.page && typeof query.page === 'string' ? Number(query.page) : undefined;
|
|
14
|
+
const { localeCode } = serverSideProps.newsroomContextProps;
|
|
15
|
+
const storiesPaginated = await api.getStories({
|
|
16
|
+
page,
|
|
17
|
+
pageSize,
|
|
18
|
+
include: extraStoryFields,
|
|
19
|
+
localeCode,
|
|
100
20
|
});
|
|
21
|
+
const { stories, storiesTotal } = storiesPaginated;
|
|
22
|
+
return processRequest(context, {
|
|
23
|
+
...serverSideProps,
|
|
24
|
+
// TODO: This is temporary until return types from API are figured out
|
|
25
|
+
stories: stories,
|
|
26
|
+
pagination: {
|
|
27
|
+
itemsTotal: storiesTotal,
|
|
28
|
+
currentPage: page ?? 1,
|
|
29
|
+
pageSize,
|
|
30
|
+
},
|
|
31
|
+
...(typeof customProps === 'function'
|
|
32
|
+
? await customProps(context, serverSideProps)
|
|
33
|
+
: customProps),
|
|
34
|
+
}, '/');
|
|
101
35
|
};
|
|
102
36
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
// TODO: This is temporary until return types from API are figured out
|
|
129
|
-
stories: stories, pagination: {
|
|
130
|
-
itemsTotal: storiesTotal,
|
|
131
|
-
currentPage: 1,
|
|
132
|
-
pageSize: pageSize,
|
|
133
|
-
} })];
|
|
134
|
-
if (!(typeof customProps === 'function')) return [3 /*break*/, 4];
|
|
135
|
-
return [4 /*yield*/, customProps(context, staticProps)];
|
|
136
|
-
case 3:
|
|
137
|
-
_e = _f.sent();
|
|
138
|
-
return [3 /*break*/, 5];
|
|
139
|
-
case 4:
|
|
140
|
-
_e = customProps;
|
|
141
|
-
_f.label = 5;
|
|
142
|
-
case 5: return [2 /*return*/, _b.apply(void 0, _c.concat([__assign.apply(void 0, _d.concat([(_e)]))]))];
|
|
143
|
-
}
|
|
144
|
-
});
|
|
37
|
+
export function getHomepageStaticProps(customProps, options) {
|
|
38
|
+
const { pageSize = DEFAULT_PAGE_SIZE, extraStoryFields } = options || {};
|
|
39
|
+
return async function getStaticProps(context) {
|
|
40
|
+
const { api, staticProps } = await getNewsroomStaticProps(context, {
|
|
41
|
+
loadHomepageContacts: true,
|
|
42
|
+
});
|
|
43
|
+
const { localeCode } = staticProps.newsroomContextProps;
|
|
44
|
+
const storiesPaginated = await api.getStories({
|
|
45
|
+
pageSize,
|
|
46
|
+
include: extraStoryFields,
|
|
47
|
+
localeCode,
|
|
48
|
+
});
|
|
49
|
+
const { stories, storiesTotal } = storiesPaginated;
|
|
50
|
+
return processStaticRequest(context, {
|
|
51
|
+
...staticProps,
|
|
52
|
+
// TODO: This is temporary until return types from API are figured out
|
|
53
|
+
stories: stories,
|
|
54
|
+
pagination: {
|
|
55
|
+
itemsTotal: storiesTotal,
|
|
56
|
+
currentPage: 1,
|
|
57
|
+
pageSize,
|
|
58
|
+
},
|
|
59
|
+
...(typeof customProps === 'function'
|
|
60
|
+
? await customProps(context, staticProps)
|
|
61
|
+
: customProps),
|
|
145
62
|
});
|
|
146
63
|
};
|
|
147
64
|
}
|
|
148
|
-
exports.getHomepageStaticProps = getHomepageStaticProps;
|
|
149
65
|
//# sourceMappingURL=home.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"home.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/home.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"home.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/home.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAc/D,MAAM,UAAU,0BAA0B,CAGxC,WAAqD,EAAE,OAAiB;IACtE,MAAM,EAAE,QAAQ,GAAG,iBAAiB,EAAE,gBAAgB,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;IAEzE,OAAO,KAAK,UAAU,kBAAkB,CACpC,OAAkC;QAElC,MAAM,EAAE,GAAG,EAAE,eAAe,EAAE,GAAG,MAAM,0BAA0B,CAAC,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,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAE3F,MAAM,EAAE,UAAU,EAAE,GAAG,eAAe,CAAC,oBAAoB,CAAC;QAE5D,MAAM,gBAAgB,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC;YAC1C,IAAI;YACJ,QAAQ;YACR,OAAO,EAAE,gBAAgB;YACzB,UAAU;SACb,CAAC,CAAC;QACH,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,gBAAgB,CAAC;QAEnD,OAAO,cAAc,CACjB,OAAO,EACP;YACI,GAAG,eAAe;YAClB,sEAAsE;YACtE,OAAO,EAAE,OAAsB;YAC/B,UAAU,EAAE;gBACR,UAAU,EAAE,YAAY;gBACxB,WAAW,EAAE,IAAI,IAAI,CAAC;gBACtB,QAAQ;aACX;YACD,GAAG,CAAC,OAAO,WAAW,KAAK,UAAU;gBACjC,CAAC,CAAC,MAAO,WAA0C,CAAC,OAAO,EAAE,eAAe,CAAC;gBAC7E,CAAC,CAAC,WAAW,CAAC;SACrB,EACD,GAAG,CACN,CAAC;IACN,CAAC,CAAC;AACN,CAAC;AAED,MAAM,UAAU,sBAAsB,CAGpC,WAA4E,EAAE,OAAiB;IAC7F,MAAM,EAAE,QAAQ,GAAG,iBAAiB,EAAE,gBAAgB,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;IAEzE,OAAO,KAAK,UAAU,cAAc,CAChC,OAA8B;QAE9B,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,MAAM,sBAAsB,CAAC,OAAO,EAAE;YAC/D,oBAAoB,EAAE,IAAI;SAC7B,CAAC,CAAC;QAEH,MAAM,EAAE,UAAU,EAAE,GAAG,WAAW,CAAC,oBAAoB,CAAC;QAExD,MAAM,gBAAgB,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC;YAC1C,QAAQ;YACR,OAAO,EAAE,gBAAgB;YACzB,UAAU;SACb,CAAC,CAAC;QACH,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,gBAAgB,CAAC;QAEnD,OAAO,oBAAoB,CAAC,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"}
|
|
@@ -1,42 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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; } });
|
|
1
|
+
export { getCategoryPageServerSideProps, getCategoryPageStaticPaths, getCategoryPageStaticProps, } from './category';
|
|
2
|
+
export { getGalleryPageServerSideProps, getGalleryPageStaticProps, } from './gallery';
|
|
3
|
+
export { getGalleryAlbumPageServerSideProps, getGalleryAlbumPageStaticPaths, getGalleryAlbumPageStaticProps, } from './galleryAlbum';
|
|
4
|
+
export { getHomepageServerSideProps, getHomepageStaticProps } from './home';
|
|
5
|
+
export { getSearchPageServerSideProps, getSearchPageStaticProps } from './search';
|
|
6
|
+
export * from './sitemap';
|
|
7
|
+
export { getStoryPageServerSideProps, getStoryPageStaticPaths, getStoryPageStaticProps, } from './story';
|
|
8
|
+
export { getStoryPreviewPageServerSideProps } from './storyPreview';
|
|
42
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/adapter-nextjs/page-props/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,8BAA8B,EAC9B,0BAA0B,EAC1B,0BAA0B,GAE7B,MAAM,YAAY,CAAC;AACpB,OAAO,EACH,6BAA6B,EAC7B,yBAAyB,GAE5B,MAAM,WAAW,CAAC;AACnB,OAAO,EACH,kCAAkC,EAClC,8BAA8B,EAC9B,8BAA8B,GAEjC,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,0BAA0B,EAAE,sBAAsB,EAAsB,MAAM,QAAQ,CAAC;AAChG,OAAO,EAAE,4BAA4B,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAClF,cAAc,WAAW,CAAC;AAC1B,OAAO,EACH,2BAA2B,EAC3B,uBAAuB,EACvB,uBAAuB,GAC1B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,kCAAkC,EAAE,MAAM,gBAAgB,CAAC"}
|