@websolutespa/bom-mixer-ui 1.9.14 → 1.9.16
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 -6
- package/dist/cjs/index.js +20 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/meta/meta.js +21 -12
- package/dist/esm/components/meta/meta.js.map +1 -1
- 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/meta/meta.tsx +18 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @websolutespa/bom-mixer-ui
|
|
2
2
|
|
|
3
|
+
## 1.9.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Modified: Meta
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @websolutespa/bom-core@1.8.21
|
|
10
|
+
|
|
11
|
+
## 1.9.15
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Modified: Meta added indexable prop
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @websolutespa/bom-mixer-store@1.8.11
|
|
18
|
+
- @websolutespa/bom-mixer-models@1.8.18
|
|
19
|
+
- @websolutespa/bom-mixer-hooks@1.8.11
|
|
20
|
+
|
|
3
21
|
## 1.9.14
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -41,7 +59,6 @@
|
|
|
41
59
|
### Patch Changes
|
|
42
60
|
|
|
43
61
|
- Modified: Text, LazyLoader, IThemeFont
|
|
44
|
-
- Updated dependencies
|
|
45
62
|
- Updated dependencies
|
|
46
63
|
- @websolutespa/bom-core@1.8.17
|
|
47
64
|
- @websolutespa/bom-mixer-models@1.8.17
|
|
@@ -69,7 +86,6 @@
|
|
|
69
86
|
### Patch Changes
|
|
70
87
|
|
|
71
88
|
- Added: Text.Html
|
|
72
|
-
- Updated dependencies
|
|
73
89
|
- Updated dependencies
|
|
74
90
|
- @websolutespa/bom-mixer-store@1.8.4
|
|
75
91
|
- @websolutespa/bom-core@1.8.11
|
|
@@ -153,7 +169,6 @@
|
|
|
153
169
|
### Patch Changes
|
|
154
170
|
|
|
155
171
|
- Modified: Text added letter-spacing, MediaImage
|
|
156
|
-
- Updated dependencies
|
|
157
172
|
- Updated dependencies
|
|
158
173
|
- @websolutespa/bom-mixer-models@1.8.8
|
|
159
174
|
- @websolutespa/bom-core@1.8.10
|
|
@@ -173,7 +188,6 @@
|
|
|
173
188
|
- 3a7fc91: Added: a11y Select, Drawer, Media
|
|
174
189
|
- 3a7fc91: Added: a11y SvgAnimation
|
|
175
190
|
- 3a7fc91: Modified: theme ColorScheme
|
|
176
|
-
- Updated dependencies [3a7fc91]
|
|
177
191
|
- Updated dependencies [3a7fc91]
|
|
178
192
|
- @websolutespa/bom-mixer-icons@0.2.5
|
|
179
193
|
- @websolutespa/bom-mixer-hooks@1.8.9
|
|
@@ -307,7 +321,6 @@
|
|
|
307
321
|
|
|
308
322
|
- Modified: Media, Meta
|
|
309
323
|
- Added: SvgAnimation mode overOut
|
|
310
|
-
- Updated dependencies
|
|
311
324
|
- Updated dependencies
|
|
312
325
|
- @websolutespa/bom-core@1.7.5
|
|
313
326
|
- @websolutespa/bom-mixer-models@1.7.4
|
|
@@ -346,7 +359,6 @@
|
|
|
346
359
|
|
|
347
360
|
### Patch Changes
|
|
348
361
|
|
|
349
|
-
- Updating: dependencies
|
|
350
362
|
- Updated dependencies
|
|
351
363
|
- @websolutespa/bom-mixer-models@1.7.2
|
|
352
364
|
- @websolutespa/bom-mixer-forms@0.3.1
|
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, _d, _g;
|
|
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,19 +6179,26 @@ 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
|
|
6184
|
-
const
|
|
6191
|
+
const media = ((_d = page.meta) === null || _d === void 0 ? void 0 : _d.image) || page.media;
|
|
6192
|
+
const image = media ? media.src || media.url : brand === null || brand === void 0 ? void 0 : brand.logo;
|
|
6185
6193
|
return jsxRuntime.jsxs(Head__default.default, {
|
|
6186
6194
|
children: [jsxRuntime.jsx("title", {
|
|
6187
6195
|
children: title
|
|
6188
6196
|
}), jsxRuntime.jsx("meta", {
|
|
6189
6197
|
name: "description",
|
|
6190
6198
|
content: description
|
|
6191
|
-
}), false ,
|
|
6199
|
+
}), false , indexable() ? jsxRuntime.jsx("meta", {
|
|
6192
6200
|
name: "robots",
|
|
6193
|
-
content: ((
|
|
6201
|
+
content: ((_g = page.meta) === null || _g === void 0 ? void 0 : _g.robots) || 'index, follow'
|
|
6194
6202
|
}) : jsxRuntime.jsx("meta", {
|
|
6195
6203
|
name: "robots",
|
|
6196
6204
|
content: "noindex, nofollow"
|