@websolutespa/bom-mixer-ui 1.5.3 → 1.5.4

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @websolutespa/bom-mixer-ui
2
2
 
3
+ ## 1.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified: Meta
8
+ - Updated dependencies
9
+ - @websolutespa/bom-mixer-models@1.5.4
10
+ - @websolutespa/bom-mixer-store@1.4.3
11
+
3
12
  ## 1.5.3
4
13
 
5
14
  ### Patch Changes
@@ -10,7 +19,7 @@
10
19
 
11
20
  ### Patch Changes
12
21
 
13
- - Modified: AccordionGroup, Media, Meta, Pagination, PopoverCollections, Popover, Tabs, utils.
22
+ - Modified: AccordionGroup, Media, Meta, Pagination, PopoverCollections, Popover, Tabs, utils
14
23
  - Updated dependencies
15
24
  - @websolutespa/bom-mixer-models@1.5.2
16
25
  - @websolutespa/bom-mixer-hooks@1.4.1
@@ -20,136 +29,136 @@
20
29
 
21
30
  ### Patch Changes
22
31
 
23
- - Added: default href to Link.
32
+ - Added: default href to Link
24
33
 
25
34
  ## 1.5.0
26
35
 
27
36
  ### Minor Changes
28
37
 
29
- - Modified LazyLoader.
38
+ - Modified LazyLoader
30
39
 
31
40
  ## 1.4.0
32
41
 
33
42
  ### Minor Changes
34
43
 
35
- - Added: Main.
36
- - Modified: Pagination.
44
+ - Added: Main
45
+ - Modified: Pagination
37
46
 
38
47
  ## 1.3.0
39
48
 
40
49
  ### Minor Changes
41
50
 
42
- - Added: accessibility.
43
- - Modified: IThemeForm, form fields, LazyComponents, Media.
51
+ - Added: accessibility
52
+ - Modified: IThemeForm, form fields, LazyComponents, Media
44
53
 
45
54
  ## 1.2.2
46
55
 
47
56
  ### Patch Changes
48
57
 
49
- - Modified: MediaImage.
58
+ - Modified: MediaImage
50
59
 
51
60
  ## 1.2.1
52
61
 
53
62
  ### Patch Changes
54
63
 
55
- - Added: LayoutDefault.
56
- - Modified: GlobalStyle, toKebabCase.
64
+ - Added: LayoutDefault
65
+ - Modified: GlobalStyle, toKebabCase
57
66
 
58
67
  ## 1.2.0
59
68
 
60
69
  ### Minor Changes
61
70
 
62
- - Fixing: circular references.
63
- - Added: Link wrapper for next/link.
64
- - Updating: next 13.
71
+ - Fixing: circular references
72
+ - Added: Link wrapper for next/link
73
+ - Updating: next 13
65
74
 
66
75
  ## 1.1.0
67
76
 
68
77
  ### Minor Changes
69
78
 
70
- - Modified: useApi.
79
+ - Modified: useApi
71
80
 
72
81
  ## 1.0.1
73
82
 
74
83
  ### Patch Changes
75
84
 
76
- - Fixing: types.
85
+ - Fixing: types
77
86
 
78
87
  ## 1.0.0
79
88
 
80
89
  ### Minor Changes
81
90
 
82
- - Added: useFormTester.
91
+ - Added: useFormTester
83
92
 
84
93
  ## 0.5.1
85
94
 
86
95
  ### Patch Changes
87
96
 
88
- - Fixing: useVariant.
97
+ - Fixing: useVariant
89
98
 
90
99
  ## 0.5.0
91
100
 
92
101
  ### Minor Changes
93
102
 
94
- - Modified: ui variants Forms, theme.json.
103
+ - Modified: ui variants Forms, theme.json
95
104
 
96
105
  ## 0.4.3
97
106
 
98
107
  ### Patch Changes
99
108
 
100
- - Modified: Text added getFontVariantResponsive.
109
+ - Modified: Text added getFontVariantResponsive
101
110
 
102
111
  ## 0.4.2
103
112
 
104
113
  ### Patch Changes
105
114
 
106
- - Modified: ui variants Grid, Container, Text.
115
+ - Modified: ui variants Grid, Container, Text
107
116
 
108
117
  ## 0.4.1
109
118
 
110
119
  ### Patch Changes
111
120
 
112
- - Added: source files.
121
+ - Added: source files
113
122
 
114
123
  ## 0.4.0
115
124
 
116
125
  ### Minor Changes
117
126
 
118
- - Added: splat routes.
119
- - Added: variants.
127
+ - Added: splat routes
128
+ - Added: variants
120
129
 
121
130
  ## 0.3.0
122
131
 
123
132
  ### Minor Changes
124
133
 
125
- - Added: @websolutespa/bom-core.
134
+ - Added: @websolutespa/bom-core
126
135
 
127
136
  ## 0.2.0
128
137
 
129
138
  ### Minor Changes
130
139
 
131
- - Modified: ITheme, LazyLoader.
140
+ - Modified: ITheme, LazyLoader
132
141
 
133
142
  ## 0.1.0
134
143
 
135
144
  ### Minor Changes
136
145
 
137
- - mock refactor.
146
+ - mock refactor
138
147
 
139
148
  ## 0.0.3
140
149
 
141
150
  ### Patch Changes
142
151
 
143
- - Modified: assets.
152
+ - Modified: assets
144
153
 
145
154
  ## 0.0.2
146
155
 
147
156
  ### Patch Changes
148
157
 
149
- - Modified: assets.
158
+ - Modified: assets
150
159
 
151
160
  ## 0.0.1
152
161
 
153
162
  ### Patch Changes
154
163
 
155
- - Added: first release.
164
+ - Added: first release
package/dist/cjs/index.js CHANGED
@@ -5127,11 +5127,10 @@ const MediaGallery = /*#__PURE__*/React.forwardRef((_a, ref) => {
5127
5127
  });
5128
5128
  MediaGallery.displayName = 'MediaGallery';
5129
5129
 
5130
- function resolveHref(href) {
5131
- const origin = process.env.NEXT_PUBLIC_URL;
5132
- return href.startsWith('http') ? href : `${origin}${href}`;
5133
- }
5134
- function Meta() {
5130
+ function Meta(_ref) {
5131
+ let {
5132
+ children
5133
+ } = _ref;
5135
5134
  var _a, _b, _e;
5136
5135
  const page = bomMixerHooks.usePage();
5137
5136
  const extra = bomMixerHooks.useExtra();
@@ -5142,7 +5141,7 @@ function Meta() {
5142
5141
  // prev / next
5143
5142
  let relPrev = null;
5144
5143
  let relNext = null;
5145
- if (bomMixerHooks.isPaginationInfo(extra.pagination)) {
5144
+ if (bomMixerHooks.isPaginationInfo(extra.pagination) && page.href) {
5146
5145
  const pagination = extra.pagination;
5147
5146
  title = title + ` - ${pagination.page}`;
5148
5147
  description = description + ` - ${pagination.page}`;
@@ -5184,60 +5183,62 @@ function Meta() {
5184
5183
  }) : jsxRuntime.jsx("meta", {
5185
5184
  name: "robots",
5186
5185
  content: "noindex, nofollow"
5187
- }), page.href != null && jsxRuntime.jsx("link", {
5186
+ }), page.href && jsxRuntime.jsx("link", {
5188
5187
  rel: "canonical",
5189
- href: resolveHref(page.href)
5188
+ href: bomMixerModels.resolveHref(page.href)
5190
5189
  }), relPrev && jsxRuntime.jsx("link", {
5191
5190
  rel: "prev",
5192
- href: resolveHref(relPrev)
5191
+ href: bomMixerModels.resolveHref(relPrev)
5193
5192
  }), relNext && jsxRuntime.jsx("link", {
5194
5193
  rel: "next",
5195
- href: resolveHref(relNext)
5194
+ href: bomMixerModels.resolveHref(relNext)
5196
5195
  }), page.alternates && page.alternates.map(alternate => jsxRuntime.jsx("link", {
5197
5196
  rel: "alternate",
5198
- href: resolveHref(alternate.id),
5197
+ href: bomMixerModels.resolveHref(alternate.id),
5199
5198
  hrefLang: alternate.locale
5200
5199
  }, `${alternate.locale}-${alternate.market}`)), page.media && jsxRuntime.jsx("meta", {
5201
5200
  property: "og:image",
5202
- content: resolveHref(page.media.src)
5203
- }), false , jsxRuntime.jsx("link", {
5204
- rel: "apple-touch-icon",
5205
- sizes: "180x180",
5206
- href: "/apple-touch-icon.png"
5207
- }), jsxRuntime.jsx("link", {
5208
- rel: "icon",
5209
- type: "image/png",
5210
- sizes: "32x32",
5211
- href: "/favicon-32x32.png"
5212
- }), jsxRuntime.jsx("link", {
5213
- rel: "icon",
5214
- type: "image/png",
5215
- sizes: "16x16",
5216
- href: "/favicon-16x16.png"
5217
- }), jsxRuntime.jsx("link", {
5218
- rel: "shortcut icon",
5219
- type: "image/x-icon",
5220
- href: "/favicon.ico"
5221
- }), jsxRuntime.jsx("link", {
5222
- rel: "manifest",
5223
- href: "/site.webmanifest",
5224
- crossOrigin: "use-credentials"
5225
- }), jsxRuntime.jsx("link", {
5226
- rel: "mask-icon",
5227
- href: "/safari-pinned-tab.svg",
5228
- color: "#000000"
5229
- }), jsxRuntime.jsx("meta", {
5230
- name: "msapplication-TileColor",
5231
- content: "#000000"
5232
- }), jsxRuntime.jsx("meta", {
5233
- name: "msapplication-config",
5234
- content: "/browserconfig.xml"
5235
- }), jsxRuntime.jsx("meta", {
5236
- name: "theme-color",
5237
- content: "#000"
5238
- }), structuredData && jsxRuntime.jsx("script", {
5201
+ content: bomMixerModels.resolveHref(page.media.src)
5202
+ }), false , structuredData && jsxRuntime.jsx("script", {
5239
5203
  type: "application/ld+json",
5240
5204
  children: structuredData
5205
+ }), children ? children : jsxRuntime.jsxs(jsxRuntime.Fragment, {
5206
+ children: [jsxRuntime.jsx("link", {
5207
+ rel: "apple-touch-icon",
5208
+ sizes: "180x180",
5209
+ href: "/apple-touch-icon.png"
5210
+ }), jsxRuntime.jsx("link", {
5211
+ rel: "icon",
5212
+ type: "image/png",
5213
+ sizes: "32x32",
5214
+ href: "/favicon-32x32.png"
5215
+ }), jsxRuntime.jsx("link", {
5216
+ rel: "icon",
5217
+ type: "image/png",
5218
+ sizes: "16x16",
5219
+ href: "/favicon-16x16.png"
5220
+ }), jsxRuntime.jsx("link", {
5221
+ rel: "shortcut icon",
5222
+ type: "image/x-icon",
5223
+ href: "/favicon.ico"
5224
+ }), jsxRuntime.jsx("link", {
5225
+ rel: "manifest",
5226
+ href: "/site.webmanifest",
5227
+ crossOrigin: "use-credentials"
5228
+ }), jsxRuntime.jsx("link", {
5229
+ rel: "mask-icon",
5230
+ href: "/safari-pinned-tab.svg",
5231
+ color: "#000000"
5232
+ }), jsxRuntime.jsx("meta", {
5233
+ name: "msapplication-TileColor",
5234
+ content: "#000000"
5235
+ }), jsxRuntime.jsx("meta", {
5236
+ name: "msapplication-config",
5237
+ content: "/browserconfig.xml"
5238
+ }), jsxRuntime.jsx("meta", {
5239
+ name: "theme-color",
5240
+ content: "#000"
5241
+ })]
5241
5242
  })]
5242
5243
  });
5243
5244
  }