@museumwnf/viewer-layout 3.72.0 → 3.73.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/README.md +57 -2
- package/dist/publications.js +1009 -0
- package/dist/travels.js +735 -0
- package/dist/viewer-layout.css +1 -1
- package/package.json +3 -1
- package/src/dxa/testing.js +9 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@museumwnf/viewer-layout",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.73.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",
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
"./dxa": "./dist/dxa.js",
|
|
31
31
|
"./standalone": "./dist/standalone.js",
|
|
32
32
|
"./minisite": "./dist/minisite.js",
|
|
33
|
+
"./publications": "./dist/publications.js",
|
|
34
|
+
"./travels": "./dist/travels.js",
|
|
33
35
|
"./dxa/gallery.css": "./src/styles/dxa-gallery.css",
|
|
34
36
|
"./dxa/exhibition.css": "./src/styles/dxa-exhibition.css",
|
|
35
37
|
"./dxa/testing": "./src/dxa/testing.js",
|
package/src/dxa/testing.js
CHANGED
|
@@ -641,11 +641,13 @@ export function describeGallerySmoke({ config, sharedTexts, ownTexts, manifest,
|
|
|
641
641
|
* The smoke test every DXA exhibition runs. It finds the records it needs in
|
|
642
642
|
* the exhibition's own package.
|
|
643
643
|
*
|
|
644
|
-
* - `config` with its `noticeProjects
|
|
645
|
-
*
|
|
646
|
-
* `
|
|
647
|
-
*
|
|
648
|
-
*
|
|
644
|
+
* - `config` with its `noticeProjects`, `sharedTexts` (viewer-i18n's
|
|
645
|
+
* exhibition catalogues), `ownTexts` (locales/en.json), `manifest`,
|
|
646
|
+
* `partnerNames` and `dynastyNames` (the package's English partner and
|
|
647
|
+
* dynasty translations) and `namespace` (this exhibition's own text
|
|
648
|
+
* namespace). The chips are checked on `config.projectColors`, the ones the
|
|
649
|
+
* site draws (derived from the package, its own `projectColors` winning),
|
|
650
|
+
* so a site passes its own table no more; one passed is ignored.
|
|
649
651
|
* - Optionally, `collection: { tiles, paginations }`; `theme: { id,
|
|
650
652
|
* pictureTitle, subthemes }`, a theme whose first picture and sub-theme
|
|
651
653
|
* titles the theme page shows; `relatedContent: true` when the
|
|
@@ -653,7 +655,7 @@ export function describeGallerySmoke({ config, sharedTexts, ownTexts, manifest,
|
|
|
653
655
|
* exhibition no dynasty of which has a translated history.
|
|
654
656
|
*/
|
|
655
657
|
export function describeExhibitionSmoke({
|
|
656
|
-
config, noticeProjects,
|
|
658
|
+
config, noticeProjects, sharedTexts, ownTexts, manifest, partnerNames, dynastyNames, namespace,
|
|
657
659
|
collection, theme: themePick, relatedContent = false, dynasties = true,
|
|
658
660
|
}) {
|
|
659
661
|
const { messages, mountSite } = mounter(config, sharedTexts, ownTexts)
|
|
@@ -730,7 +732,7 @@ export function describeExhibitionSmoke({
|
|
|
730
732
|
expect(!!host.querySelector('.mwnf-sheet-notice')).toBe(noticeProjects.includes(item.project_id))
|
|
731
733
|
// Every project needs its chip colour, or the chip falls back to the
|
|
732
734
|
// layout's default swatch.
|
|
733
|
-
expect(projectColors[item.project_id]).toBeTruthy()
|
|
735
|
+
expect(config.projectColors[item.project_id]).toBeTruthy()
|
|
734
736
|
app.unmount()
|
|
735
737
|
}
|
|
736
738
|
}, 120000)
|