@museumwnf/viewer-layout 3.65.0 → 3.65.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.
|
@@ -28,7 +28,7 @@ var { haystack: R, tile: z, legacyOrder: B, countryIdForCode: V } = f, H = t(f.F
|
|
|
28
28
|
objectsRoute: A
|
|
29
29
|
};
|
|
30
30
|
function Q(e) {
|
|
31
|
-
let t =
|
|
31
|
+
let t = [...E.value ?? []];
|
|
32
32
|
for (let e = t.length - 1; e > 0; e--) {
|
|
33
33
|
let n = Math.floor(Math.random() * (e + 1));
|
|
34
34
|
[t[e], t[n]] = [t[n], t[e]];
|
package/dist/dxa.js
CHANGED
|
@@ -2,7 +2,7 @@ import { s as e } from "./OnDisplayIn-BH3Bqope.js";
|
|
|
2
2
|
import { c as t, d as n, t as r } from "./PartnerMap-DdyMLtgH.js";
|
|
3
3
|
import { a as i, i as a, n as o, o as s } from "./TimelineEventList-CIkKxyQu.js";
|
|
4
4
|
import { t as c } from "./RecordView-Bgd5mm_e.js";
|
|
5
|
-
import { A as l, C as u, D as d, E as f, M as p, N as m, O as h, S as g, T as _, _ as v, a as y, b as ee, c as te, d as b, f as ne, g as x, h as re, i as ie, j as ae, k as oe, l as se, m as ce, n as le, o as ue, p as de, r as fe, s as pe, t as me, u as he, v as ge, w as _e, x as ve, y as ye } from "./data-
|
|
5
|
+
import { A as l, C as u, D as d, E as f, M as p, N as m, O as h, S as g, T as _, _ as v, a as y, b as ee, c as te, d as b, f as ne, g as x, h as re, i as ie, j as ae, k as oe, l as se, m as ce, n as le, o as ue, p as de, r as fe, s as pe, t as me, u as he, v as ge, w as _e, x as ve, y as ye } from "./data-DlmKSxgh.js";
|
|
6
6
|
import { A as S, C as be, D as xe, E as Se, M as Ce, N as we, O as Te, S as Ee, T as De, _ as Oe, a as ke, b as Ae, c as C, d as je, f as Me, g as Ne, h as Pe, i as Fe, j as w, k as Ie, l as Le, m as Re, n as ze, o as Be, p as Ve, r as He, s as Ue, t as We, u as Ge, v as T, w as Ke, x as qe, y as Je } from "./data-CtYatYQi.js";
|
|
7
7
|
import { n as Ye, r as E, t as Xe } from "./TimelineResultsView-BF3VoCs_.js";
|
|
8
8
|
import { t as Ze } from "./SiteShell-UsZ_cpe9.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@museumwnf/viewer-layout",
|
|
3
|
-
"version": "3.65.
|
|
3
|
+
"version": "3.65.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",
|
package/src/dxa/testing.js
CHANGED
|
@@ -256,6 +256,17 @@ export function describeGallerySmoke({ config, sharedTexts, ownTexts, manifest,
|
|
|
256
256
|
app.unmount()
|
|
257
257
|
}, 20000)
|
|
258
258
|
|
|
259
|
+
// Legacy's home drew three of the gallery's partners at random, whichever
|
|
260
|
+
// they were (dxa-api /partners/featured, inventory-app#2405).
|
|
261
|
+
it("draws up to three of the gallery's partners into the featured carousel", async () => {
|
|
262
|
+
const [partners] = await loadEntities(['partners'])
|
|
263
|
+
const { app, host } = await mountSite()
|
|
264
|
+
await vi.waitFor(() => expect(host.querySelector('.mwnf-featured-partners__name')).not.toBeNull(), WAIT)
|
|
265
|
+
// One bullet a partner, when there is more than one to turn through.
|
|
266
|
+
if (partners.length > 1) expect(host.querySelectorAll('.mwnf-featured-partners__bullet').length).toBe(Math.min(3, partners.length))
|
|
267
|
+
app.unmount()
|
|
268
|
+
}, 20000)
|
|
269
|
+
|
|
259
270
|
collectionTest(mountSite, picks.collection, { gallery: true })
|
|
260
271
|
|
|
261
272
|
it("renders the collection entrance as legacy's", async () => {
|