@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.mjs
CHANGED
|
@@ -19028,6 +19028,7 @@ var SwellTheme3 = class {
|
|
|
19028
19028
|
current: Number(this.swell.queryParams.page) || 1,
|
|
19029
19029
|
url: this.swell.url.pathname,
|
|
19030
19030
|
custom: !swellPage,
|
|
19031
|
+
title: swellPage?.label,
|
|
19031
19032
|
slug: void 0,
|
|
19032
19033
|
description: void 0,
|
|
19033
19034
|
$locale: void 0
|
|
@@ -19047,9 +19048,17 @@ var SwellTheme3 = class {
|
|
|
19047
19048
|
console.warn(err);
|
|
19048
19049
|
}
|
|
19049
19050
|
if (pageSchema?.page) {
|
|
19050
|
-
const {
|
|
19051
|
+
const {
|
|
19052
|
+
title,
|
|
19053
|
+
label,
|
|
19054
|
+
// 'label' is deprecated, kept for compatibility
|
|
19055
|
+
description,
|
|
19056
|
+
slug,
|
|
19057
|
+
$locale
|
|
19058
|
+
} = pageSchema.page;
|
|
19059
|
+
page.label = page.label || title || label || "";
|
|
19060
|
+
page.title = title || page.label;
|
|
19051
19061
|
page.slug = slug;
|
|
19052
|
-
page.label = label || page.label;
|
|
19053
19062
|
page.description = description;
|
|
19054
19063
|
page.$locale = $locale;
|
|
19055
19064
|
}
|
|
@@ -19766,9 +19775,9 @@ ${content.slice(pos)}`;
|
|
|
19766
19775
|
this.setGlobals(pageData);
|
|
19767
19776
|
}
|
|
19768
19777
|
let pageConfig;
|
|
19769
|
-
if (this.
|
|
19778
|
+
if (this.pageId) {
|
|
19770
19779
|
pageConfig = await this.renderPageTemplate(
|
|
19771
|
-
this.
|
|
19780
|
+
this.pageId,
|
|
19772
19781
|
pageData,
|
|
19773
19782
|
altTemplateId
|
|
19774
19783
|
);
|