@museumwnf/viewer-layout 3.12.0 → 3.12.1

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.
Files changed (2) hide show
  1. package/dist/minisite.js +3 -3
  2. package/package.json +1 -1
package/dist/minisite.js CHANGED
@@ -182,10 +182,10 @@ function be(e) {
182
182
  let n = (t) => (e?.images ?? []).find((e) => e.display_order === t)?.url ?? null;
183
183
  return [...t.entries()].sort(([e], [t]) => e - t).map(([e, t]) => ({
184
184
  n: e,
185
- variants: [...t].sort((e, t) => (e.variant_order ?? 0) - (t.variant_order ?? 0)).flatMap((t) => t.details?.length ? t.details.map((e) => ({
185
+ variants: [...t].sort((e, t) => (e.variant_order ?? 0) - (t.variant_order ?? 0)).flatMap((t) => t.details?.length ? t.details.map((r) => ({
186
186
  entry: t,
187
- view: e,
188
- image: e.image_url ?? null
187
+ view: r,
188
+ image: r.image_url ?? n(e)
189
189
  })) : [{
190
190
  entry: t,
191
191
  image: t.image_url ?? n(e)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@museumwnf/viewer-layout",
3
- "version": "3.12.0",
3
+ "version": "3.12.1",
4
4
  "description": "Page structure for MWNF websites: PageShell composing seven optional, token-styled sections, the content components a page is made of, and the composed views a website names instead of writing a page.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",