@museumwnf/viewer-layout 3.65.0 → 3.66.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@museumwnf/viewer-layout",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.66.0",
|
|
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 () => {
|
package/src/tokens.reference.css
CHANGED
|
@@ -882,6 +882,7 @@
|
|
|
882
882
|
/* --mwnf-standalone-home-banner-title-weight: 400; Its title weight */
|
|
883
883
|
/* --mwnf-standalone-home-banner-line-size: 1.125rem; Its line under the title: size */
|
|
884
884
|
/* --mwnf-standalone-banner-background: transparent; Band colour under its picture */
|
|
885
|
+
/* --mwnf-standalone-banner-position: center; Where its picture sits (legacy's products: 0 0) */
|
|
885
886
|
/* --mwnf-standalone-banner-title-size: 1.875rem; Band title size */
|
|
886
887
|
/* --mwnf-standalone-banner-title-color: inherit; Band title colour */
|
|
887
888
|
/* --mwnf-standalone-banner-title-background: transparent; The title's own strip across the band */
|
|
@@ -950,6 +951,8 @@
|
|
|
950
951
|
/* --mwnf-standalone-home-footer-margin: 0; Room under the home page's footer, in the page's colour */
|
|
951
952
|
/* --mwnf-standalone-footer-social-top: calc(var(--mwnf-footer-padding) + 1px); The icons' distance from the footer's top */
|
|
952
953
|
/* --mwnf-standalone-footer-social-right: the content's right edge; Their distance from the right */
|
|
954
|
+
/* --mwnf-standalone-footer-social-left: auto; Their distance from the left (both set: centred between) */
|
|
955
|
+
/* --mwnf-standalone-footer-social-direction: inherit; Their order (ltr keeps it on a right-to-left page) */
|
|
953
956
|
/* --mwnf-standalone-footer-social-margin: 5px; The space either side of each icon */
|
|
954
957
|
/* --mwnf-standalone-inner-footer-social-margin: var(--mwnf-standalone-footer-social-margin); That space on the inner pages */
|
|
955
958
|
/* --mwnf-standalone-pill: transparent; The partner profile's rounded tab and items bars */
|