@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.js
CHANGED
|
@@ -19047,6 +19047,7 @@ ${injects.join("\n")}<\/script>`;
|
|
|
19047
19047
|
current: Number(this.swell.queryParams.page) || 1,
|
|
19048
19048
|
url: this.swell.url.pathname,
|
|
19049
19049
|
custom: !swellPage,
|
|
19050
|
+
title: swellPage?.label,
|
|
19050
19051
|
slug: void 0,
|
|
19051
19052
|
description: void 0,
|
|
19052
19053
|
$locale: void 0
|
|
@@ -19066,9 +19067,17 @@ ${injects.join("\n")}<\/script>`;
|
|
|
19066
19067
|
console.warn(err);
|
|
19067
19068
|
}
|
|
19068
19069
|
if (pageSchema?.page) {
|
|
19069
|
-
const {
|
|
19070
|
+
const {
|
|
19071
|
+
title,
|
|
19072
|
+
label,
|
|
19073
|
+
// 'label' is deprecated, kept for compatibility
|
|
19074
|
+
description,
|
|
19075
|
+
slug,
|
|
19076
|
+
$locale
|
|
19077
|
+
} = pageSchema.page;
|
|
19078
|
+
page.label = page.label || title || label || "";
|
|
19079
|
+
page.title = title || page.label;
|
|
19070
19080
|
page.slug = slug;
|
|
19071
|
-
page.label = label || page.label;
|
|
19072
19081
|
page.description = description;
|
|
19073
19082
|
page.$locale = $locale;
|
|
19074
19083
|
}
|
|
@@ -19785,9 +19794,9 @@ ${content.slice(pos)}`;
|
|
|
19785
19794
|
this.setGlobals(pageData);
|
|
19786
19795
|
}
|
|
19787
19796
|
let pageConfig;
|
|
19788
|
-
if (this.
|
|
19797
|
+
if (this.pageId) {
|
|
19789
19798
|
pageConfig = await this.renderPageTemplate(
|
|
19790
|
-
this.
|
|
19799
|
+
this.pageId,
|
|
19791
19800
|
pageData,
|
|
19792
19801
|
altTemplateId
|
|
19793
19802
|
);
|