@swell/apps-sdk 1.0.132 → 1.0.133
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/dist/index.cjs +13 -4
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +13 -4
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +13 -4
- package/dist/index.mjs.map +2 -2
- package/dist/types/swell.d.ts +4 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -19146,6 +19146,7 @@ var SwellTheme3 = class {
|
|
|
19146
19146
|
current: Number(this.swell.queryParams.page) || 1,
|
|
19147
19147
|
url: this.swell.url.pathname,
|
|
19148
19148
|
custom: !swellPage,
|
|
19149
|
+
title: swellPage?.label,
|
|
19149
19150
|
slug: void 0,
|
|
19150
19151
|
description: void 0,
|
|
19151
19152
|
$locale: void 0
|
|
@@ -19165,9 +19166,17 @@ var SwellTheme3 = class {
|
|
|
19165
19166
|
console.warn(err);
|
|
19166
19167
|
}
|
|
19167
19168
|
if (pageSchema?.page) {
|
|
19168
|
-
const {
|
|
19169
|
+
const {
|
|
19170
|
+
title,
|
|
19171
|
+
label,
|
|
19172
|
+
// 'label' is deprecated, kept for compatibility
|
|
19173
|
+
description,
|
|
19174
|
+
slug,
|
|
19175
|
+
$locale
|
|
19176
|
+
} = pageSchema.page;
|
|
19177
|
+
page.label = page.label || title || label || "";
|
|
19178
|
+
page.title = title || page.label;
|
|
19169
19179
|
page.slug = slug;
|
|
19170
|
-
page.label = label || page.label;
|
|
19171
19180
|
page.description = description;
|
|
19172
19181
|
page.$locale = $locale;
|
|
19173
19182
|
}
|
|
@@ -19884,9 +19893,9 @@ ${content.slice(pos)}`;
|
|
|
19884
19893
|
this.setGlobals(pageData);
|
|
19885
19894
|
}
|
|
19886
19895
|
let pageConfig;
|
|
19887
|
-
if (this.
|
|
19896
|
+
if (this.pageId) {
|
|
19888
19897
|
pageConfig = await this.renderPageTemplate(
|
|
19889
|
-
this.
|
|
19898
|
+
this.pageId,
|
|
19890
19899
|
pageData,
|
|
19891
19900
|
altTemplateId
|
|
19892
19901
|
);
|