infinity-forge 7.5.5 → 7.5.6
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.
|
@@ -8,7 +8,8 @@ export declare function AtenaPage(props: AtenaPageProps): import("react/jsx-runt
|
|
|
8
8
|
export declare function AtenaSSR(ctx: GetServerSidePropsContext<ParsedUrlQuery, PreviewData>, configurations: {
|
|
9
9
|
ssrFunction?: () => Promise<Record<string, any>>;
|
|
10
10
|
apiUrl?: string;
|
|
11
|
-
|
|
11
|
+
debugMode?: boolean;
|
|
12
|
+
disableAuth?: AppAtenaPageProps['disableAuth'];
|
|
12
13
|
modifierSections?: (sections: any) => {
|
|
13
14
|
sections: any;
|
|
14
15
|
[key: string]: any;
|
|
@@ -75,6 +75,9 @@ function AtenaSSR(ctx, configurations) {
|
|
|
75
75
|
switch (_f.label) {
|
|
76
76
|
case 0:
|
|
77
77
|
resolvedUrl = (((_c = (_b = ctx.resolvedUrl) === null || _b === void 0 ? void 0 : _b.split('/')) === null || _c === void 0 ? void 0 : _c[1]) || '');
|
|
78
|
+
if (configurations === null || configurations === void 0 ? void 0 : configurations.debugMode) {
|
|
79
|
+
console.log(resolvedUrl);
|
|
80
|
+
}
|
|
78
81
|
_f.label = 1;
|
|
79
82
|
case 1:
|
|
80
83
|
_f.trys.push([1, 3, , 4]);
|
|
@@ -85,15 +88,28 @@ function AtenaSSR(ctx, configurations) {
|
|
|
85
88
|
pagePromise = (configurations === null || configurations === void 0 ? void 0 : configurations.ssrFunction)
|
|
86
89
|
? (_d = configurations === null || configurations === void 0 ? void 0 : configurations.ssrFunction) === null || _d === void 0 ? void 0 : _d.call(configurations)
|
|
87
90
|
: ((_e = defaultPagesSSR === null || defaultPagesSSR === void 0 ? void 0 : defaultPagesSSR[resolvedUrl]) === null || _e === void 0 ? void 0 : _e.call(defaultPagesSSR, { ctx: ctx, apiUrl: configurations === null || configurations === void 0 ? void 0 : configurations.apiUrl })) || null;
|
|
91
|
+
if (configurations === null || configurations === void 0 ? void 0 : configurations.debugMode) {
|
|
92
|
+
console.log(pagePromise);
|
|
93
|
+
}
|
|
88
94
|
return [4 /*yield*/, Promise.all([(0, dynamic_sections_1.getInitialPropsDynamicSection)(ctx), pagePromise])];
|
|
89
95
|
case 2:
|
|
90
96
|
_a = _f.sent(), sections = _a[0], page = _a[1];
|
|
97
|
+
if (configurations === null || configurations === void 0 ? void 0 : configurations.debugMode) {
|
|
98
|
+
console.log('sections', sections);
|
|
99
|
+
console.log('page', page);
|
|
100
|
+
}
|
|
91
101
|
modifiedData = configurations.modifierSections ? configurations.modifierSections(sections) : { sections: sections };
|
|
102
|
+
if (configurations === null || configurations === void 0 ? void 0 : configurations.debugMode) {
|
|
103
|
+
console.log('modifiedData', modifiedData);
|
|
104
|
+
}
|
|
92
105
|
return [2 /*return*/, {
|
|
93
106
|
props: __assign(__assign({}, modifiedData), { page: page, resolvedUrl: resolvedUrl, disableAuth: (configurations === null || configurations === void 0 ? void 0 : configurations.disableAuth) || false }),
|
|
94
107
|
}];
|
|
95
108
|
case 3:
|
|
96
109
|
err_1 = _f.sent();
|
|
110
|
+
if (configurations === null || configurations === void 0 ? void 0 : configurations.debugMode) {
|
|
111
|
+
console.log('modifiedData', err_1);
|
|
112
|
+
}
|
|
97
113
|
return [2 /*return*/, { props: { resolvedUrl: resolvedUrl, sections: [], page: null, disableAuth: (configurations === null || configurations === void 0 ? void 0 : configurations.disableAuth) || false } }];
|
|
98
114
|
case 4: return [2 /*return*/];
|
|
99
115
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atena-page.js","sourceRoot":"","sources":["../../../../../src/ui/atena/presentation/dynamic-elements/atena-page.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,8BAkBC;AAED,
|
|
1
|
+
{"version":3,"file":"atena-page.js","sourceRoot":"","sources":["../../../../../src/ui/atena/presentation/dynamic-elements/atena-page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