@museumwnf/viewer-layout 3.61.0 → 3.63.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.
Files changed (32) hide show
  1. package/dist/FeaturedRecord-Fe19w6_G.js +213 -0
  2. package/dist/LegacyItemSheet-Bmg8etGz.js +532 -0
  3. package/dist/{OnDisplayIn-DW4iC5BB.js → OnDisplayIn-BH3Bqope.js} +16 -9
  4. package/dist/{PageShell-CPtgzcxv.js → PageShell-CIGVv7sK.js} +144 -111
  5. package/dist/{PartnerMap-U-Hi2FBi.js → PartnerMap-DdyMLtgH.js} +5 -1
  6. package/dist/RecordView-Bgd5mm_e.js +384 -0
  7. package/dist/{SiteShell-qvsZO4Iz.js → SiteShell-UsZ_cpe9.js} +3 -2
  8. package/dist/Theme-Daezwp0p.js +391 -0
  9. package/dist/{TimelineEventList-1feZA5t7.js → TimelineEventList-CIkKxyQu.js} +122 -238
  10. package/dist/TimelineResultsView-BF3VoCs_.js +686 -0
  11. package/dist/components.js +1 -1
  12. package/dist/{content-BNS5U0Xv.js → content-hV5uyd-b.js} +2 -2
  13. package/dist/content.js +6 -6
  14. package/dist/data-CsMfGCkv.js +77 -0
  15. package/dist/data-DzrH9ikw.js +45 -0
  16. package/dist/dxa.js +2046 -1008
  17. package/dist/index.js +7 -7
  18. package/dist/standalone.js +3 -3
  19. package/dist/{themeSpecs-CsDpl4rR.js → themeSpecs-DIdmAEc3.js} +1 -1
  20. package/dist/viewer-layout.css +1 -1
  21. package/dist/views.js +755 -37
  22. package/package.json +1 -1
  23. package/src/dxa/testing.js +176 -120
  24. package/src/styles/dxa-exhibition.css +2289 -32
  25. package/src/styles/dxa-gallery.css +17 -2
  26. package/dist/FeaturedRecord-DaGLHyhD.js +0 -87
  27. package/dist/ItemDetailView-D7m2C1Mg.js +0 -310
  28. package/dist/RecordView-BE4mbj6G.js +0 -363
  29. package/dist/Theme-4RmyRY0x.js +0 -318
  30. package/dist/TimelineResultsView-CkH3NDqL.js +0 -1401
  31. package/dist/data-EKYeMQcC.js +0 -45
  32. package/dist/data-kqAkoQvf.js +0 -37
@@ -1,45 +0,0 @@
1
- import { n as e } from "./chrome-Bv_mLlHM.js";
2
- import { partnerView as t, useSiteConfig as n } from "@museumwnf/viewer-core";
3
- import { FACET_CATEGORIES as r, FACET_LABEL_KEYS as i, GALLERY_ERA_WORDS as a, useFacetLabels as o, useGalleryCollection as s, useGalleryData as c, useGalleryItemDetail as l, useGalleryPartner as u, useGalleryTimeline as d } from "@museumwnf/viewer-core/dxa";
4
- // src/dxa/gallery/data.js
5
- var f = c(), p = s(f), m = d(f, p), h = u(f, p), { itemDetail: g } = l(f, m), { manifest: _, defaultLang: v, tr: y, md: b, mdInline: x, loadEnglish: S, labelOf: C, gallery: w, items: T, itemById: E, partners: D, countries: O, timelines: k, partnerById: A, itemRoute: j, partnerRoute: M, partnerObjectsRoute: N, itemFromUidPath: P, partnerFromKey: F, pickSiblings: I, siblingUrl: L } = f;
6
- function R(t, r = "hi_res") {
7
- return e(n().chrome, t) ?? f.chromeImage(t, r);
8
- }
9
- var { FACETS: z, haystack: B, tile: V, legacyOrder: H, collectionResults: U, countryIdForCode: W } = p, G = {
10
- pageSize: 20,
11
- sort: {
12
- undated: "first",
13
- tiebreak: (e, t) => H(e, t)
14
- }
15
- }, { timelineResults: K, timelineGallery: q } = m, { partnerList: J, partnerSheet: Y, partnerObjects: X } = h, Z = {
16
- countryLabel: (e) => C("countries", e),
17
- md: b,
18
- mdInline: x,
19
- route: M,
20
- objectsRoute: N
21
- };
22
- function Q(e) {
23
- let n = (D.value ?? []).filter((e) => e.featured);
24
- for (let e = n.length - 1; e > 0; e--) {
25
- let t = Math.floor(Math.random() * (e + 1));
26
- [n[e], n[t]] = [n[t], n[e]];
27
- }
28
- return n.slice(0, e).map((e) => t(e, y("partners", e.id, v), Z));
29
- }
30
- var $ = {
31
- spec: {
32
- ...Y,
33
- media: () => []
34
- },
35
- visible: () => !0,
36
- view: (e, n) => t(e, {
37
- ...y("partners", e.id, v),
38
- ...n
39
- }, Z),
40
- labels: { partner: {
41
- objects: "partner.action.viewObjects",
42
- homepage: "partner.nav.homepage"
43
- } }
44
- };
45
- export { q as A, J as C, I as D, M as E, k as M, y as N, L as O, o as P, F as S, N as T, G as _, R as a, A as b, v as c, B as d, E as f, C as g, T as h, a as i, K as j, V as k, Q as l, P as m, r as n, U as o, g as p, i as r, W as s, z as t, w as u, S as v, X as w, $ as x, _ as y };
@@ -1,37 +0,0 @@
1
- import { n as e } from "./chrome-Bv_mLlHM.js";
2
- import { partnerView as t, useSiteConfig as n } from "@museumwnf/viewer-core";
3
- import { FACET_CATEGORIES as r, FACET_LABEL_KEYS as i, PAGE_SIZE as a, useExhibitionCollection as ee, useExhibitionData as o, useExhibitionItemDetail as s, useExhibitionPartner as c, useExhibitionThemes as l, useExhibitionTimeline as u, useFacetLabels as d } from "@museumwnf/viewer-core/dxa";
4
- // src/dxa/exhibition/data.js
5
- var f = o(), p = ee(f), m = u(f, p), h = c(f), g = l(f), { itemDetail: _ } = s(f, m), { defaultLang: v, tr: y, md: b, mdInline: x, mdStrip: S, labelOf: C, loadEnglish: w, exhibition: T, relatedContent: E, items: D, itemById: O, countries: k, timelines: A, visiblePartners: j, visiblePartnerById: M, isHiddenPartner: N, itemRoute: te, partnerRoute: P, partnerObjectsRoute: F, countryLabelFromCode: I, exhibitionTitle: L, exhibitionSubtitle: R, exhibitionHeadline: z, bannerCaption: B } = f;
6
- function V(t, r = "hi_res") {
7
- return e(n().chrome, t) ?? f.chromeImage(t, r);
8
- }
9
- var { FACETS: H, haystack: U, tile: W, collectionResults: G, countryIdForCode: K } = p, { hasTimeline: q, timelineSpec: J, timelineGallerySpec: Y } = m, { partnerListSpec: X, partnerSheetSpec: Z } = h, Q = {
10
- countryLabel: (e) => C("countries", e),
11
- md: b,
12
- mdInline: x,
13
- route: P,
14
- objectsRoute: F,
15
- hidden: N
16
- }, $ = {
17
- spec: {
18
- ...Z,
19
- media: () => []
20
- },
21
- visible: (e) => !!M(e),
22
- view: (e, n) => t(e, {
23
- ...y("partners", e.id, v),
24
- ...n
25
- }, Q),
26
- labels: {
27
- partner: {
28
- objects: "partner.action.viewObjects",
29
- homepage: "partner.nav.homepage"
30
- },
31
- institution: {
32
- objects: "exhibition.action.viewItems",
33
- homepage: "exhibition.action.institutionHomepage"
34
- }
35
- }
36
- };
37
- export { g as A, b as C, F as D, X as E, y as F, d as I, M as L, Y as M, J as N, P as O, A as P, j as R, w as S, $ as T, U as _, B as a, D as b, k as c, v as d, T as f, q as g, L as h, a as i, W as j, E as k, K as l, R as m, r as n, V as o, z as p, i as r, G as s, H as t, I as u, O as v, S as w, C as x, _ as y };