@museumwnf/viewer-layout 3.3.0 → 3.5.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 (34) hide show
  1. package/README.md +191 -12
  2. package/dist/{FeaturedRecord-BJ8LaWGP.js → FeaturedRecord-DJfyvfqt.js} +1 -1
  3. package/dist/GlossaryPopover-DcptyNWI.js +654 -0
  4. package/dist/ItemDetailView-COWC8GDg.js +299 -0
  5. package/dist/{OnDisplayIn-Dv8i7uvH.js → OnDisplayIn-BfJoPonn.js} +38 -38
  6. package/dist/RecordView-C9rP8TyQ.js +263 -0
  7. package/dist/SiteShell-4vV2jIzf.js +192 -0
  8. package/dist/{Theme-Db88mckV.js → Theme-CZ-OVXao.js} +26 -26
  9. package/dist/TimelineEventList-gsoc-SBx.js +841 -0
  10. package/dist/TimelineResultsView-C2-TnM71.js +1386 -0
  11. package/dist/chrome-DPuPeWzV.js +1141 -0
  12. package/dist/components.js +1 -1
  13. package/dist/{content-p0tqKkcD.js → content-CtwBcSjU.js} +2 -2
  14. package/dist/content.js +6 -5
  15. package/dist/data-CJlLA-Mf.js +38 -0
  16. package/dist/data-DTbAYdr2.js +40 -0
  17. package/dist/dxa.js +638 -519
  18. package/dist/index.js +7 -6
  19. package/dist/standalone.js +762 -0
  20. package/dist/{themeSpecs-C_uGarTs.js → themeSpecs-B885l456.js} +3 -2
  21. package/dist/viewer-layout.css +1 -1
  22. package/dist/views.js +5 -4
  23. package/package.json +4 -3
  24. package/src/dxa/testing.js +37 -14
  25. package/src/styles/dxa-exhibition.css +25 -1
  26. package/src/styles/dxa-gallery.css +249 -2
  27. package/src/tokens.reference.css +78 -0
  28. package/dist/ItemDetailView-CfUtRLOV.js +0 -284
  29. package/dist/PageShell-CbJ9lQoQ.js +0 -961
  30. package/dist/SiteShell-C3OgZO8p.js +0 -154
  31. package/dist/TimelineEventList-COjkXEzS.js +0 -1487
  32. package/dist/TimelineResultsView-CmHomvV_.js +0 -1636
  33. package/dist/data-BfyYB8ff.js +0 -33
  34. package/dist/data-G8uXeEfE.js +0 -35
@@ -1,33 +0,0 @@
1
- import { partnerView as e } from "@museumwnf/viewer-core";
2
- import { FACET_CATEGORIES as t, FACET_LABEL_KEYS as n, PAGE_SIZE as r, useExhibitionCollection as i, useExhibitionData as a, useExhibitionItemDetail as o, useExhibitionPartner as s, useExhibitionThemes as c, useExhibitionTimeline as l, useFacetLabels as u } from "@museumwnf/viewer-core/dxa";
3
- //#region src/dxa/exhibition/data.js
4
- var d = a(), f = i(d), p = l(d, f), m = s(d), h = c(d), { itemDetail: g } = o(d, p), { defaultLang: _, tr: v, md: y, mdInline: b, mdStrip: x, labelOf: S, loadEnglish: C, exhibition: w, relatedContent: T, items: E, itemById: D, countries: O, timelines: k, visiblePartners: A, visiblePartnerById: j, isHiddenPartner: M, itemRoute: N, partnerRoute: P, partnerObjectsRoute: F, chromeImage: I, countryLabelFromCode: L, exhibitionTitle: R, exhibitionSubtitle: z, exhibitionHeadline: B, bannerCaption: V } = d, { FACETS: H, haystack: U, tile: W, collectionResults: G, countryIdForCode: K } = f, { hasTimeline: q, timelineSpec: J, timelineGallerySpec: Y } = p, { partnerListSpec: X, partnerSheetSpec: Z } = m, Q = {
5
- countryLabel: (e) => S("countries", e),
6
- md: y,
7
- mdInline: b,
8
- route: P,
9
- objectsRoute: F,
10
- hidden: M
11
- }, $ = {
12
- spec: {
13
- ...Z,
14
- media: () => []
15
- },
16
- visible: (e) => !!j(e),
17
- view: (t, n) => e(t, {
18
- ...v("partners", t.id, _),
19
- ...n
20
- }, Q),
21
- labels: {
22
- partner: {
23
- objects: "partner.action.viewObjects",
24
- homepage: "partner.nav.homepage"
25
- },
26
- institution: {
27
- objects: "exhibition.action.viewItems",
28
- homepage: "exhibition.action.institutionHomepage"
29
- }
30
- }
31
- };
32
- //#endregion
33
- export { h as A, y as C, F as D, X as E, v as F, u as I, j as L, Y as M, J as N, P as O, k as P, A as R, C as S, $ as T, U as _, V as a, E as b, O as c, _ as d, w as f, q as g, R as h, r as i, W as j, T as k, K as l, z as m, t as n, I as o, B as p, n as r, G as s, H as t, L as u, D as v, x as w, S as x, g as y };
@@ -1,35 +0,0 @@
1
- import { partnerView as e } from "@museumwnf/viewer-core";
2
- import { FACET_CATEGORIES as t, FACET_LABEL_KEYS as n, PAGE_SIZE as r, useFacetLabels as i, useGalleryCollection as a, useGalleryData as o, useGalleryItemDetail as s, useGalleryPartner as c, useGalleryTimeline as l } from "@museumwnf/viewer-core/dxa";
3
- //#region src/dxa/gallery/data.js
4
- var u = o(), d = a(u), f = l(u, d), p = c(u, d), { itemDetail: m } = s(u, f), { manifest: h, defaultLang: g, tr: _, md: v, mdInline: y, loadEnglish: b, labelOf: x, gallery: S, items: C, itemById: w, partners: T, countries: E, timelines: D, partnerById: O, itemRoute: k, partnerRoute: A, partnerObjectsRoute: j, itemFromUidPath: M, partnerFromKey: N, chromeImage: P, pickSiblings: F, siblingUrl: I } = u, { FACETS: L, haystack: R, tile: z, collectionResults: B, countryIdForCode: V } = d, { timelineResults: H, timelineGallery: U } = f, { partnerList: W, partnerSheet: G, partnerObjects: K } = p, q = {
5
- countryLabel: (e) => x("countries", e),
6
- md: v,
7
- mdInline: y,
8
- route: A,
9
- objectsRoute: j
10
- };
11
- function J(t) {
12
- let n = (T.value ?? []).filter((e) => e.featured);
13
- for (let e = n.length - 1; e > 0; e--) {
14
- let t = Math.floor(Math.random() * (e + 1));
15
- [n[e], n[t]] = [n[t], n[e]];
16
- }
17
- return n.slice(0, t).map((t) => e(t, _("partners", t.id, g), q));
18
- }
19
- var Y = {
20
- spec: {
21
- ...G,
22
- media: () => []
23
- },
24
- visible: () => !0,
25
- view: (t, n) => e(t, {
26
- ..._("partners", t.id, g),
27
- ...n
28
- }, q),
29
- labels: { partner: {
30
- objects: "partner.action.viewObjects",
31
- homepage: "partner.nav.homepage"
32
- } }
33
- };
34
- //#endregion
35
- export { H as A, K as C, I as D, F as E, _ as M, i as N, z as O, W as S, A as T, b as _, P as a, Y as b, g as c, R as d, w as f, x as g, C as h, r as i, D as j, U as k, J as l, M as m, t as n, B as o, m as p, n as r, V as s, L as t, S as u, h as v, j as w, N as x, O as y };