@scrippsproduct/networks-ui-library 1.0.22 → 1.0.23-alpha.1

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.
@@ -1,8 +1,14 @@
1
- export function ShowAboutLayout({ series, type, showUpcoming, nextAirdates, firstColumnWidth }: {
1
+ export function ShowAboutLayout({ series, type, showUpcoming, nextAirdates, firstColumnWidth, socialShare }: {
2
2
  series: any;
3
3
  type?: string | undefined;
4
4
  showUpcoming?: boolean | undefined;
5
5
  nextAirdates?: never[] | undefined;
6
6
  firstColumnWidth?: string | undefined;
7
+ socialShare?: {
8
+ enabled: boolean;
9
+ url: string;
10
+ text: string;
11
+ longtext: string;
12
+ } | undefined;
7
13
  }): import("react/jsx-runtime").JSX.Element;
8
14
  export default ShowAboutLayout;
@@ -1,54 +1,71 @@
1
- import { jsx as a, Fragment as f, jsxs as b } from "react/jsx-runtime";
1
+ import { jsx as a, Fragment as k, jsxs as c } from "react/jsx-runtime";
2
2
  import "react";
3
- import { ImageCard as _ } from "../ImageCard/ImageCard.js";
4
- import { AdjustableTwoColumnGrid as k } from "../AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.js";
5
- import { Concat as l } from "../Concat/Concat.js";
6
- import { StringList as o } from "../StringList/StringList.js";
7
- import { ShowAboutContent as y } from "../ShowAboutContent/ShowAboutContent.js";
8
- import { getHoursMinsStr as T, classes as S } from "../../utils/helpers.js";
9
- import '../../assets/ShowAboutLayout.css';const A = {
3
+ import { ImageCard as x } from "../ImageCard/ImageCard.js";
4
+ import { AdjustableTwoColumnGrid as y } from "../AdjustableTwoColumnGrid/AdjustableTwoColumnGrid.js";
5
+ import { SocialShareBlock as T } from "../SocialShareBlock/SocialShareBlock.js";
6
+ import { Concat as p } from "../Concat/Concat.js";
7
+ import { StringList as e } from "../StringList/StringList.js";
8
+ import { ShowAboutContent as h } from "../ShowAboutContent/ShowAboutContent.js";
9
+ import { getHoursMinsStr as A, classes as n } from "../../utils/helpers.js";
10
+ import '../../assets/ShowAboutLayout.css';const r = {
10
11
  "series-about-tab": "_series-about-tab_cekq9_1",
11
12
  "slide-up": "_slide-up_cekq9_1"
12
13
  };
13
- function q({
14
+ function F({
14
15
  series: t,
15
- type: r = "series",
16
- showUpcoming: p = !1,
17
- nextAirdates: u = [],
18
- firstColumnWidth: c = "33%"
16
+ type: l = "series",
17
+ showUpcoming: g = !1,
18
+ nextAirdates: b = [],
19
+ firstColumnWidth: d = "33%",
20
+ socialShare: o = {
21
+ enabled: !1,
22
+ url: "",
23
+ text: "",
24
+ longtext: ""
25
+ }
19
26
  }) {
20
- var n, e;
21
- const i = t.cast.map((d) => d.real_name).join(", "), g = t != null && t.run_time ? T(t.run_time) : "", m = r === "series" ? ["TV Series", t.rating] : [t != null && t.year_released ? t == null ? void 0 : t.year_released : "Film", t.rating, g];
22
- return /* @__PURE__ */ a(f, { children: /* @__PURE__ */ b(k, { classname: S([A["series-about-tab"], "series-about-tab"]), firstColumnWidth: c, children: [
23
- t.detailImage === null ? /* @__PURE__ */ a(l, { list: [
24
- typeof t.genres == "string" ? t.genres : /* @__PURE__ */ a(o, { list: t.genres, separatorType: "comma", makeBlock: !0 }),
25
- /* @__PURE__ */ a(o, { list: m, separatorType: "pipe", makeBlock: !0 })
27
+ var u, i;
28
+ const s = t.cast.map((f) => f.real_name).join(", "), _ = t != null && t.run_time ? A(t.run_time) : "", m = l === "series" ? ["TV Series", t.rating] : [t != null && t.year_released ? t == null ? void 0 : t.year_released : "Film", t.rating, _];
29
+ return console.log("social share in ShowAboutLayout: ", o), /* @__PURE__ */ a(k, { children: /* @__PURE__ */ c(y, { classname: n([r["series-about-tab"], "series-about-tab"]), firstColumnWidth: d, children: [
30
+ t.detailImage === null ? /* @__PURE__ */ a(p, { list: [
31
+ typeof t.genres == "string" ? t.genres : /* @__PURE__ */ a(e, { list: t.genres, separatorType: "comma", makeBlock: !0 }),
32
+ /* @__PURE__ */ a(e, { list: m, separatorType: "pipe", makeBlock: !0 })
26
33
  ] }) : /* @__PURE__ */ a(
27
- _,
34
+ x,
28
35
  {
29
36
  image: {
30
- url: (n = t.detailImage) == null ? void 0 : n.url,
31
- aspectRatio: (e = t.detailImage) == null ? void 0 : e.aspectRatio
37
+ url: (u = t.detailImage) == null ? void 0 : u.url,
38
+ aspectRatio: (i = t.detailImage) == null ? void 0 : i.aspectRatio
32
39
  },
33
- content: /* @__PURE__ */ a(l, { list: [
34
- typeof t.genres == "string" ? t.genres : /* @__PURE__ */ a(o, { list: t.genres, separatorType: "comma", makeBlock: !0 }),
35
- /* @__PURE__ */ a(o, { list: m, separatorType: "pipe", makeBlock: !0 })
40
+ content: /* @__PURE__ */ a(p, { list: [
41
+ typeof t.genres == "string" ? t.genres : /* @__PURE__ */ a(e, { list: t.genres, separatorType: "comma", makeBlock: !0 }),
42
+ /* @__PURE__ */ a(e, { list: m, separatorType: "pipe", makeBlock: !0 })
36
43
  ] })
37
44
  }
38
45
  ),
39
- /* @__PURE__ */ a(
40
- y,
41
- {
42
- series: t,
43
- showUpcoming: p,
44
- castStr: i,
45
- type: r,
46
- nextAirDates: u
47
- }
48
- )
46
+ /* @__PURE__ */ c("div", { className: n([r["series-about-tab__content"], "series-about-tab__content"]), children: [
47
+ /* @__PURE__ */ a(
48
+ h,
49
+ {
50
+ series: t,
51
+ showUpcoming: g,
52
+ castStr: s,
53
+ type: l,
54
+ nextAirDates: b
55
+ }
56
+ ),
57
+ o.enabled && /* @__PURE__ */ a("div", { className: n([r["series-about-tab__social-share"], "series-about-tab__social-share"]), children: /* @__PURE__ */ a(
58
+ T,
59
+ {
60
+ url: o.url,
61
+ text: o.text,
62
+ longtext: o.longtext
63
+ }
64
+ ) })
65
+ ] })
49
66
  ] }) });
50
67
  }
51
68
  export {
52
- q as ShowAboutLayout,
53
- q as default
69
+ F as ShowAboutLayout,
70
+ F as default
54
71
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.22",
2
+ "version": "1.0.23-alpha.1",
3
3
  "name": "@scrippsproduct/networks-ui-library",
4
4
  "description": "React Component Library for use in Scripps Networks external applications",
5
5
  "author": {