@museumwnf/viewer-layout 3.80.0 → 3.80.2
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/dist/LegacyItemSheet-DKgLfAz_.js +662 -0
- package/dist/RecordView-DAvWufWV.js +384 -0
- package/dist/{SiteShell-CzKgoOBm.js → SiteShell-D0u1FGMu.js} +47 -47
- package/dist/Theme-BUfsZDdm.js +408 -0
- package/dist/components.js +1 -1
- package/dist/{content-hV5uyd-b.js → content-B1458eb-.js} +6 -6
- package/dist/content.js +1 -1
- package/dist/{data-D9H1tB75.js → data-CD0QmDAc.js} +13 -13
- package/dist/{data-DlmKSxgh.js → data-CxiuR3R_.js} +16 -17
- package/dist/dxa.js +1075 -1075
- package/dist/index.js +1 -1
- package/dist/minisite.js +1159 -1159
- package/dist/standalone.js +967 -967
- package/dist/{themeSpecs-BJ82RvA1.js → themeSpecs-C0tSNkSd.js} +1 -1
- package/dist/views.js +298 -298
- package/package.json +9 -4
- package/src/dxa/testing.js +6 -2
- package/dist/LegacyItemSheet-CNooycyz.js +0 -662
- package/dist/RecordView-CBC7tBCX.js +0 -384
- package/dist/Theme-BCn6_VkI.js +0 -408
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@museumwnf/viewer-layout",
|
|
3
|
-
"version": "3.80.
|
|
3
|
+
"version": "3.80.2",
|
|
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",
|
|
@@ -54,10 +54,15 @@
|
|
|
54
54
|
"@museumwnf/viewer-core": "^2.24.0",
|
|
55
55
|
"@vitejs/plugin-vue": "^6.0.10",
|
|
56
56
|
"@vue/test-utils": "^2.5.1",
|
|
57
|
-
"jsdom": "^
|
|
58
|
-
"vite": "^8.
|
|
57
|
+
"jsdom": "^31.0.1",
|
|
58
|
+
"vite": "^8.4.0",
|
|
59
59
|
"vitest": "^5.1.0",
|
|
60
|
-
"vue": "^3.5.
|
|
60
|
+
"vue": "^3.5.46",
|
|
61
61
|
"vue-router": "^5.4.0"
|
|
62
|
+
},
|
|
63
|
+
"overrides": {
|
|
64
|
+
"glob": "^14.0.7",
|
|
65
|
+
"editorconfig": "^4.0.2",
|
|
66
|
+
"minimatch": "^11.0.10"
|
|
62
67
|
}
|
|
63
68
|
}
|
package/src/dxa/testing.js
CHANGED
|
@@ -791,10 +791,14 @@ export function describeExhibitionSmoke({
|
|
|
791
791
|
}, 30000)
|
|
792
792
|
|
|
793
793
|
it('renders a partner profile on the composed record view', async () => {
|
|
794
|
-
const
|
|
794
|
+
const named = (await visiblePartners()).filter((p) => partnerNames[p.id]?.name)
|
|
795
|
+
// A museum when there is one; an exhibition of institutions only (publishers,
|
|
796
|
+
// archives) shows one of those.
|
|
797
|
+
const museums = named.filter((p) => p.type !== 'institution')
|
|
798
|
+
const pool = museums.length > 0 ? museums : named
|
|
795
799
|
// The map needs the partner's coordinates: one that has them, if any.
|
|
796
800
|
const located = (p) => Number.isFinite(p.latitude) && Number.isFinite(p.longitude)
|
|
797
|
-
const partner =
|
|
801
|
+
const partner = pool.find(located) ?? pool[0]
|
|
798
802
|
const { app, host } = await mountSite(`#/partner/${partner.id}`)
|
|
799
803
|
await vi.waitFor(() => expect(host.querySelector('.mwnf-record')).not.toBeNull(), WAIT)
|
|
800
804
|
await vi.waitFor(() => expect(host.querySelector('.mwnf-record').textContent.trim().length).toBeGreaterThan(0), WAIT)
|