@websolutespa/bom-mixer-ui 1.9.13 → 1.9.15
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/CHANGELOG.md +18 -0
- package/dist/cjs/index.js +18 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/meta/meta.js +19 -11
- package/dist/esm/components/meta/meta.js.map +1 -1
- package/dist/types/components/link/link.d.ts +2 -2
- package/dist/types/components/meta/meta.d.ts +3 -1
- package/dist/types/components/meta/meta.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/link/link.tsx +2 -2
- package/src/components/meta/meta.tsx +16 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @websolutespa/bom-mixer-ui
|
|
2
2
|
|
|
3
|
+
## 1.9.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Modified: Meta added indexable prop
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
- @websolutespa/bom-mixer-store@1.8.11
|
|
12
|
+
- @websolutespa/bom-mixer-models@1.8.18
|
|
13
|
+
- @websolutespa/bom-mixer-hooks@1.8.11
|
|
14
|
+
|
|
15
|
+
## 1.9.14
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Modified: Link component
|
|
20
|
+
|
|
3
21
|
## 1.9.13
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -6134,19 +6134,20 @@ const MediaGallery = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
6134
6134
|
});
|
|
6135
6135
|
MediaGallery.displayName = 'MediaGallery';
|
|
6136
6136
|
|
|
6137
|
-
function Meta(
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6137
|
+
function Meta(_a) {
|
|
6138
|
+
var _b, _c, _f;
|
|
6139
|
+
var {
|
|
6140
|
+
children,
|
|
6141
|
+
structuredDataCollections,
|
|
6142
|
+
brand
|
|
6143
|
+
} = _a,
|
|
6144
|
+
props = __rest(_a, ["children", "structuredDataCollections", "brand"]);
|
|
6144
6145
|
const page = bomMixerHooks.usePage();
|
|
6145
6146
|
const extra = bomMixerHooks.useExtra();
|
|
6146
6147
|
// title
|
|
6147
|
-
let title = ((
|
|
6148
|
+
let title = ((_b = page.meta) === null || _b === void 0 ? void 0 : _b.title) || page.title;
|
|
6148
6149
|
// description
|
|
6149
|
-
let description = ((
|
|
6150
|
+
let description = ((_c = page.meta) === null || _c === void 0 ? void 0 : _c.description) || page.abstract;
|
|
6150
6151
|
// prev / next
|
|
6151
6152
|
let relPrev = null;
|
|
6152
6153
|
let relNext = null;
|
|
@@ -6178,6 +6179,12 @@ function Meta(_ref) {
|
|
|
6178
6179
|
relNext = `${pathname}?${query}`;
|
|
6179
6180
|
}
|
|
6180
6181
|
}
|
|
6182
|
+
const indexable = () => {
|
|
6183
|
+
if (props.indexable === false || typeof props.indexable === 'function' && props.indexable(page) === false) {
|
|
6184
|
+
return false;
|
|
6185
|
+
}
|
|
6186
|
+
return bomCore.getIsProduction();
|
|
6187
|
+
};
|
|
6181
6188
|
// structuredData
|
|
6182
6189
|
const structuredData = bomMixerModels.resolveStructuredData(page, structuredDataCollections, brand);
|
|
6183
6190
|
// image
|
|
@@ -6188,9 +6195,9 @@ function Meta(_ref) {
|
|
|
6188
6195
|
}), jsxRuntime.jsx("meta", {
|
|
6189
6196
|
name: "description",
|
|
6190
6197
|
content: description
|
|
6191
|
-
}), false ,
|
|
6198
|
+
}), false , indexable() ? jsxRuntime.jsx("meta", {
|
|
6192
6199
|
name: "robots",
|
|
6193
|
-
content: ((
|
|
6200
|
+
content: ((_f = page.meta) === null || _f === void 0 ? void 0 : _f.robots) || 'index, follow'
|
|
6194
6201
|
}) : jsxRuntime.jsx("meta", {
|
|
6195
6202
|
name: "robots",
|
|
6196
6203
|
content: "noindex, nofollow"
|