@phillips/seldon 1.37.0 → 1.38.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 (59) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +15 -13
  2. package/dist/_virtual/attributes-to-props.js +4 -0
  3. package/dist/_virtual/constants.js +4 -0
  4. package/dist/_virtual/dom-to-react.js +4 -0
  5. package/dist/_virtual/domparser.js +4 -0
  6. package/dist/_virtual/html-to-dom.js +4 -0
  7. package/dist/_virtual/index10.js +4 -0
  8. package/dist/_virtual/index4.js +2 -2
  9. package/dist/_virtual/index6.js +4 -0
  10. package/dist/_virtual/index7.js +4 -0
  11. package/dist/_virtual/index8.js +4 -0
  12. package/dist/_virtual/index9.js +4 -0
  13. package/dist/_virtual/node.js +4 -0
  14. package/dist/_virtual/possibleStandardNamesOptimized.js +4 -0
  15. package/dist/_virtual/utilities.js +4 -0
  16. package/dist/_virtual/utilities2.js +4 -0
  17. package/dist/_virtual/utilities3.js +4 -0
  18. package/dist/components/HTMLParser/HTMLParser.d.ts +24 -0
  19. package/dist/components/HTMLParser/HTMLParser.js +21 -0
  20. package/dist/components/HTMLParser/index.d.ts +1 -0
  21. package/dist/components/HTMLParser/utils.d.ts +7 -0
  22. package/dist/components/HTMLParser/utils.js +31 -0
  23. package/dist/components/Link/Link.d.ts +1 -1
  24. package/dist/components/Link/Link.js +14 -13
  25. package/dist/components/Link/index.d.ts +2 -0
  26. package/dist/components/Link/types.d.ts +16 -0
  27. package/dist/components/Link/types.js +4 -0
  28. package/dist/components/Link/utils.d.ts +2 -1
  29. package/dist/components/UserManagement/UserManagement.d.ts +6 -2
  30. package/dist/components/UserManagement/UserManagement.js +35 -34
  31. package/dist/components/UserManagement/types.d.ts +8 -0
  32. package/dist/components/UserManagement/types.js +4 -0
  33. package/dist/index.d.ts +2 -0
  34. package/dist/index.js +39 -35
  35. package/dist/node_modules/domelementtype/lib/index.js +12 -0
  36. package/dist/node_modules/domhandler/lib/index.js +84 -0
  37. package/dist/node_modules/domhandler/lib/node.js +356 -0
  38. package/dist/node_modules/dompurify/dist/purify.es.js +522 -0
  39. package/dist/node_modules/exenv/index.js +1 -1
  40. package/dist/node_modules/html-dom-parser/lib/client/constants.js +38 -0
  41. package/dist/node_modules/html-dom-parser/lib/client/domparser.js +56 -0
  42. package/dist/node_modules/html-dom-parser/lib/client/html-to-dom.js +20 -0
  43. package/dist/node_modules/html-dom-parser/lib/client/utilities.js +55 -0
  44. package/dist/node_modules/html-react-parser/esm/index.js +7 -0
  45. package/dist/node_modules/html-react-parser/lib/attributes-to-props.js +40 -0
  46. package/dist/node_modules/html-react-parser/lib/dom-to-react.js +60 -0
  47. package/dist/node_modules/html-react-parser/lib/index.js +42 -0
  48. package/dist/node_modules/html-react-parser/lib/utilities.js +58 -0
  49. package/dist/node_modules/inline-style-parser/index.js +86 -0
  50. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  51. package/dist/node_modules/react-property/lib/index.js +440 -0
  52. package/dist/node_modules/react-property/lib/possibleStandardNamesOptimized.js +493 -0
  53. package/dist/node_modules/style-to-js/cjs/index.js +19 -0
  54. package/dist/node_modules/style-to-js/cjs/utilities.js +16 -0
  55. package/dist/node_modules/style-to-object/cjs/index.js +21 -0
  56. package/dist/scss/components/HTMLParser/_htmlParser.scss +3 -0
  57. package/dist/scss/components/UserManagement/_userManagement.scss +4 -0
  58. package/dist/scss/styles.scss +1 -0
  59. package/package.json +4 -1
@@ -1,26 +1,28 @@
1
- function n(e) {
1
+ var u = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
2
+ function f(e) {
2
3
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3
4
  }
4
- function c(e) {
5
+ function l(e) {
5
6
  if (e.__esModule) return e;
6
- var o = e.default;
7
- if (typeof o == "function") {
8
- var t = function r() {
9
- return this instanceof r ? Reflect.construct(o, arguments, this.constructor) : o.apply(this, arguments);
7
+ var r = e.default;
8
+ if (typeof r == "function") {
9
+ var t = function o() {
10
+ return this instanceof o ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
10
11
  };
11
- t.prototype = o.prototype;
12
+ t.prototype = r.prototype;
12
13
  } else t = {};
13
- return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
14
- var u = Object.getOwnPropertyDescriptor(e, r);
15
- Object.defineProperty(t, r, u.get ? u : {
14
+ return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
15
+ var n = Object.getOwnPropertyDescriptor(e, o);
16
+ Object.defineProperty(t, o, n.get ? n : {
16
17
  enumerable: !0,
17
18
  get: function() {
18
- return e[r];
19
+ return e[o];
19
20
  }
20
21
  });
21
22
  }), t;
22
23
  }
23
24
  export {
24
- c as getAugmentedNamespace,
25
- n as getDefaultExportFromCjs
25
+ u as commonjsGlobal,
26
+ l as getAugmentedNamespace,
27
+ f as getDefaultExportFromCjs
26
28
  };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var s = {};
2
+ export {
3
+ s as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -1,4 +1,4 @@
1
- var e = { exports: {} };
1
+ var r = {};
2
2
  export {
3
- e as __module
3
+ r as __exports
4
4
  };
@@ -0,0 +1,4 @@
1
+ var e = { exports: {} };
2
+ export {
3
+ e as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var a = {};
2
+ export {
3
+ a as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var t = {};
2
+ export {
3
+ t as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var t = {};
2
+ export {
3
+ t as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var t = {};
2
+ export {
3
+ t as __exports
4
+ };
@@ -0,0 +1,24 @@
1
+ export interface HTMLParserProps extends React.HTMLAttributes<HTMLDivElement> {
2
+ /**
3
+ * Rich Text content to be displayed
4
+ */
5
+ html: string;
6
+ /**
7
+ * Optional flag to only sanitize the content and bypass the transforms to our components
8
+ */
9
+ isOnlySanitize?: boolean;
10
+ /**
11
+ * Optional class name to add to the component
12
+ */
13
+ className?: string;
14
+ }
15
+ /**
16
+ * ## Overview
17
+ *
18
+ * A component for taking in rich text content from CMS and safely rendering the content in a consistent manner.
19
+ *
20
+ *
21
+ * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-htmlparser--overview)
22
+ */
23
+ declare const HTMLParser: ({ className, html, isOnlySanitize, ...props }: HTMLParserProps) => import("react/jsx-runtime").JSX.Element;
24
+ export default HTMLParser;
@@ -0,0 +1,21 @@
1
+ import { jsx as o, Fragment as c } from "react/jsx-runtime";
2
+ import n from "../../node_modules/classnames/index.js";
3
+ import f from "../../node_modules/dompurify/dist/purify.es.js";
4
+ import p from "../../node_modules/html-react-parser/esm/index.js";
5
+ import { getCommonProps as d } from "../../utils/index.js";
6
+ import { options as g } from "./utils.js";
7
+ const N = ({ className: s, html: r, isOnlySanitize: i = !1, ...e }) => {
8
+ const { className: t, ...a } = d(e, "HTMLParser"), m = f.sanitize(r), l = p(m, g);
9
+ return /* @__PURE__ */ o(c, { children: typeof r == "string" && r.length > 0 ? i ? /* @__PURE__ */ o(
10
+ "div",
11
+ {
12
+ ...a,
13
+ className: n(`${t}`, s),
14
+ ...e,
15
+ dangerouslySetInnerHTML: { __html: m }
16
+ }
17
+ ) : /* @__PURE__ */ o("div", { ...a, className: n(`${t}`, s), ...e, children: l }) : null });
18
+ };
19
+ export {
20
+ N as default
21
+ };
@@ -0,0 +1 @@
1
+ export { default as HTMLParser, type HTMLParserProps } from './HTMLParser';
@@ -0,0 +1,7 @@
1
+ export declare const options: {
2
+ replace({ attribs, children, name }: {
3
+ attribs: Record<string, string>;
4
+ children: React.ReactNode;
5
+ name: string;
6
+ }): import("react/jsx-runtime").JSX.Element | undefined;
7
+ };
@@ -0,0 +1,31 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import "../../node_modules/html-react-parser/esm/index.js";
3
+ import { TextVariants as e } from "../Text/types.js";
4
+ import n from "../Text/Text.js";
5
+ import { LinkVariants as m } from "../Link/types.js";
6
+ import d from "../Link/Link.js";
7
+ import "../../node_modules/html-react-parser/lib/index.js";
8
+ import { __exports as r } from "../../_virtual/index4.js";
9
+ const a = {
10
+ replace({ attribs: s, children: t, name: o }) {
11
+ if (o === "h1")
12
+ return /* @__PURE__ */ i(n, { variant: e.display1, children: r.domToReact(t, a) });
13
+ if (o === "h2")
14
+ return /* @__PURE__ */ i(n, { variant: e.heading2, children: r.domToReact(t, a) });
15
+ if (o === "h3")
16
+ return /* @__PURE__ */ i(n, { variant: e.heading3, children: r.domToReact(t, a) });
17
+ if (o === "h4")
18
+ return /* @__PURE__ */ i(n, { variant: e.heading4, children: r.domToReact(t, a) });
19
+ if (o === "blockquote")
20
+ return /* @__PURE__ */ i(n, { variant: e.blockquote, children: r.domToReact(t, a) });
21
+ if (o === "p")
22
+ return /* @__PURE__ */ i(n, { variant: e.body1, children: r.domToReact(t, a) });
23
+ if (o === "a") {
24
+ const { class: f, ...p } = s, c = r.attributesToProps(p);
25
+ return /* @__PURE__ */ i(d, { variant: m.inline, ...c, children: r.domToReact(t, a) });
26
+ }
27
+ }
28
+ };
29
+ export {
30
+ a as options
31
+ };
@@ -1,5 +1,5 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
- import { LinkVariants } from './utils';
2
+ import { LinkVariants } from './types';
3
3
  export interface LinkProps extends HTMLAttributes<HTMLAnchorElement> {
4
4
  /**
5
5
  * Describes where the link is used. It controls the styling of the link so we apply consistent styles. Defaults to `standalone`. See the documentation [here](https://www.figma.com/file/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?type=design&node-id=5731-12815) to see where each variant is used.
@@ -1,30 +1,31 @@
1
- import { jsx as o } from "react/jsx-runtime";
1
+ import { jsx as m } from "react/jsx-runtime";
2
2
  import k from "../../node_modules/classnames/index.js";
3
3
  import { getCommonProps as x } from "../../utils/index.js";
4
- import { getLinkVariantClassName as L, isLinkExternal as N, LinkVariants as t } from "./utils.js";
5
- import { TextVariants as m } from "../Text/types.js";
4
+ import { getLinkVariantClassName as L, isLinkExternal as N } from "./utils.js";
5
+ import { LinkVariants as s } from "./types.js";
6
+ import { TextVariants as t } from "../Text/types.js";
6
7
  import d from "../Text/Text.js";
7
- const T = ({
8
+ const j = ({
8
9
  children: n,
9
10
  className: i,
10
11
  element: a = "a",
11
- variant: r = t.standalone,
12
- href: e,
13
- ...s
12
+ variant: r = s.standalone,
13
+ href: o,
14
+ ...e
14
15
  }) => {
15
- const { className: l, ...c } = x(s, "Link"), p = k(l, L(r), i), f = N(e);
16
- return /* @__PURE__ */ o(
16
+ const { className: l, ...c } = x(e, "Link"), p = k(l, L(r), i), f = N(o);
17
+ return /* @__PURE__ */ m(
17
18
  a,
18
19
  {
19
20
  ...c,
20
- href: e,
21
+ href: o,
21
22
  className: p,
22
23
  ...f && a === "a" ? { rel: "noopener noreferrer", target: "_blank" } : {},
23
- ...s,
24
- children: /* @__PURE__ */ o(d, { variant: r === t.email ? m.email : m.ctaSm, children: n })
24
+ ...e,
25
+ children: /* @__PURE__ */ m(d, { variant: r === s.email ? t.email : t.ctaSm, children: n })
25
26
  }
26
27
  );
27
28
  };
28
29
  export {
29
- T as default
30
+ j as default
30
31
  };
@@ -0,0 +1,2 @@
1
+ export { LinkVariants } from './types';
2
+ export { default as Link, type LinkProps } from './Link';
@@ -0,0 +1,16 @@
1
+ export declare enum LinkVariants {
2
+ /** Default variant, used */
3
+ standalone = "standalone",
4
+ /** link rendering emailto: */
5
+ email = "email",
6
+ /** these links are being rendered in a list */
7
+ list = "list",
8
+ /** link is being rendered within body copy */
9
+ inline = "inline",
10
+ /** link is being rendered in the main nav bar */
11
+ navMain = "navMain",
12
+ /** link is being rendered in a nav bar flyout*/
13
+ navLinkLg = "navLinkLg",
14
+ /** link is being rendered in a nav bar flyout*/
15
+ navLinkSm = "navLinkSm"
16
+ }
@@ -0,0 +1,4 @@
1
+ var e = /* @__PURE__ */ ((n) => (n.standalone = "standalone", n.email = "email", n.list = "list", n.inline = "inline", n.navMain = "navMain", n.navLinkLg = "navLinkLg", n.navLinkSm = "navLinkSm", n))(e || {});
2
+ export {
3
+ e as LinkVariants
4
+ };
@@ -1,4 +1,5 @@
1
- export declare const getLinkVariantClassName: (variant: keyof typeof LinkVariants) => string;
1
+ import { LinkVariants as UpdatedLinkVariants } from './types';
2
+ export declare const getLinkVariantClassName: (variant: keyof typeof UpdatedLinkVariants) => string;
2
3
  export declare const isLinkExternal: (href?: string) => boolean;
3
4
  export declare enum LinkVariants {
4
5
  /** Default variant, used */
@@ -1,6 +1,7 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { LinkProps } from '../Link/Link';
3
3
  import { SupportedLanguages } from '../../types/commonTypes';
4
+ import { AuthState } from './types';
4
5
  export interface UserManagementProps extends React.HTMLAttributes<HTMLDivElement> {
5
6
  languageOptions?: {
6
7
  label: string;
@@ -8,12 +9,15 @@ export interface UserManagementProps extends React.HTMLAttributes<HTMLDivElement
8
9
  }[];
9
10
  currentLanguage?: SupportedLanguages;
10
11
  onLanguageChange?: (language: SupportedLanguages) => void;
11
- isLoggedIn?: boolean;
12
+ /**
13
+ * The authentication state for the current user
14
+ */
15
+ authState?: AuthState;
12
16
  onLogin?: () => void;
13
17
  onLogout?: () => void;
14
18
  accountDetailsLink?: React.ElementType<LinkProps>;
15
19
  loginLabel?: ReactNode;
16
20
  logoutLabel?: ReactNode;
17
21
  }
18
- declare const UserManagement: ({ accountDetailsLink, children, className, currentLanguage, languageOptions, onLanguageChange, isLoggedIn, onLogin, onLogout, loginLabel, logoutLabel, ...props }: React.PropsWithChildren<UserManagementProps>) => import("react/jsx-runtime").JSX.Element;
22
+ declare const UserManagement: ({ accountDetailsLink, children, className, currentLanguage, languageOptions, onLanguageChange, onLogin, onLogout, authState, loginLabel, logoutLabel, ...props }: React.PropsWithChildren<UserManagementProps>) => import("react/jsx-runtime").JSX.Element;
19
23
  export default UserManagement;
@@ -1,47 +1,48 @@
1
- import { jsxs as d, jsx as a } from "react/jsx-runtime";
2
- import { getCommonProps as j, px as A, noOp as r } from "../../utils/index.js";
1
+ import { jsxs as p, jsx as a, Fragment as S } from "react/jsx-runtime";
2
+ import { getCommonProps as j, px as w, noOp as o } from "../../utils/index.js";
3
3
  import M from "../Input/Input.js";
4
4
  import P from "../../assets/account_circle.svg.js";
5
- import S from "../Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
6
- import T from "../Navigation/NavigationList/NavigationList.js";
7
- import U from "../Navigation/NavigationItem/NavigationItem.js";
8
- import { SupportedLanguages as s } from "../../types/commonTypes.js";
9
- import w from "../../node_modules/classnames/index.js";
10
- const K = ({
11
- accountDetailsLink: m,
5
+ import T from "../Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
6
+ import U from "../Navigation/NavigationList/NavigationList.js";
7
+ import y from "../Navigation/NavigationItem/NavigationItem.js";
8
+ import { SupportedLanguages as m } from "../../types/commonTypes.js";
9
+ import z from "../../node_modules/classnames/index.js";
10
+ import { AuthState as r } from "./types.js";
11
+ const V = ({
12
+ accountDetailsLink: n,
12
13
  children: v,
13
- className: p,
14
- currentLanguage: o = s.en,
14
+ className: f,
15
+ currentLanguage: s = m.en,
15
16
  languageOptions: t = [
16
- { label: "English", value: s.en },
17
- { label: "中文", value: s.zh }
17
+ { label: "English", value: m.en },
18
+ { label: "中文", value: m.zh }
18
19
  ],
19
- onLanguageChange: h = r,
20
- isLoggedIn: n = !1,
21
- onLogin: f = r,
22
- onLogout: _ = r,
23
- loginLabel: N = "Login",
24
- logoutLabel: b = "Logout",
25
- ...c
20
+ onLanguageChange: _ = o,
21
+ onLogin: N = o,
22
+ onLogout: b = o,
23
+ authState: i = r.LoggedOut,
24
+ loginLabel: C = "Login",
25
+ logoutLabel: $ = "Logout",
26
+ ...g
26
27
  }) => {
27
- var i, g;
28
- const { className: l, ...C } = j(c, "UserManagement"), $ = (g = (i = t.find((e) => e.value === o)) == null ? void 0 : i.label) != null ? g : "English", x = m != null ? m : "a", E = (e) => {
29
- var u;
30
- (u = document.activeElement) == null || u.blur(), h(e);
28
+ var u, d;
29
+ const { className: l, ...x } = j(g, "UserManagement"), I = (d = (u = t.find((e) => e.value === s)) == null ? void 0 : u.label) != null ? d : "English", L = n != null ? n : "a", c = i === r.LoggedIn, A = i !== r.Loading, E = (e) => {
30
+ var h;
31
+ (h = document.activeElement) == null || h.blur(), _(e);
31
32
  };
32
- return /* @__PURE__ */ d("div", { ...C, className: w(l, p), ...c, children: [
33
- /* @__PURE__ */ d("ul", { className: `${l}__account-wrapper`, children: [
34
- n && /* @__PURE__ */ a(x, { children: /* @__PURE__ */ a(P, { className: `${l}__account-icon` }) }),
33
+ return /* @__PURE__ */ p("div", { ...x, className: z(l, f), ...g, children: [
34
+ /* @__PURE__ */ a("ul", { className: `${l}__account-wrapper`, children: A && /* @__PURE__ */ p(S, { children: [
35
+ /* @__PURE__ */ a(L, { children: /* @__PURE__ */ a(P, { className: `${l}__account-icon` }) }),
35
36
  /* @__PURE__ */ a(
36
- U,
37
+ y,
37
38
  {
38
39
  className: `${l}__login`,
39
- onClick: n ? _ : f,
40
- label: n ? b : N
40
+ onClick: c ? b : N,
41
+ label: c ? $ : C
41
42
  }
42
43
  )
43
- ] }),
44
- /* @__PURE__ */ a(S, { className: `${l}__language`, label: $, children: /* @__PURE__ */ a(T, { id: `${A}-langauge-selection-list`, className: `${l}__language__selections`, children: t.map((e) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(
44
+ ] }) }),
45
+ /* @__PURE__ */ a(T, { className: `${l}__language`, label: I, children: /* @__PURE__ */ a(U, { id: `${w}-langauge-selection-list`, className: `${l}__language__selections`, children: t.map((e) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(
45
46
  M,
46
47
  {
47
48
  type: "radio",
@@ -50,7 +51,7 @@ const K = ({
50
51
  value: e.value,
51
52
  inline: !0,
52
53
  name: "languages",
53
- checked: e.value === o,
54
+ checked: e.value === s,
54
55
  onChange: () => E(e.value)
55
56
  }
56
57
  ) }, e.value)) }) }),
@@ -58,5 +59,5 @@ const K = ({
58
59
  ] });
59
60
  };
60
61
  export {
61
- K as default
62
+ V as default
62
63
  };
@@ -0,0 +1,8 @@
1
+ export declare enum AuthState {
2
+ /** The authentication state hasn't loaded */
3
+ Loading = "Loading",
4
+ /** A user is logged in */
5
+ LoggedIn = "LoggedIn",
6
+ /** LoggedOut: There is no logged in user. */
7
+ LoggedOut = "LoggedOut"
8
+ }
@@ -0,0 +1,4 @@
1
+ var o = /* @__PURE__ */ ((g) => (g.Loading = "Loading", g.LoggedIn = "LoggedIn", g.LoggedOut = "LoggedOut", g))(o || {});
2
+ export {
3
+ o as AuthState
4
+ };
package/dist/index.d.ts CHANGED
@@ -31,7 +31,9 @@ export { default as Modal, type ModalProps } from './components/Modal/Modal';
31
31
  export { default as Drawer } from './components/Drawer/Drawer';
32
32
  export { default as StatefulViewingsList, type StatefulViewingsListProps, } from './components/ViewingsList/StatefulViewingsList';
33
33
  export * from './components/Text';
34
+ export * from './components/HTMLParser';
34
35
  export * from './components/Accordion';
35
36
  export { default as UserManagement, type UserManagementProps } from './components/UserManagement/UserManagement';
37
+ export { AuthState } from './components/UserManagement/types';
36
38
  export * from './types/commonTypes';
37
39
  export { Breadcrumb, type BreadcrumbProps } from './components/Breadcrumb';
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
- import { PaddingTokens as a, defaultYear as f, emailValidation as m, encodeURLSearchParams as p, findChildrenOfType as d, generatePaddingClassName as s, getCommonProps as i, noOp as l, px as u, useNormalizedInputProps as x } from "./utils/index.js";
1
+ import { PaddingTokens as a, defaultYear as f, emailValidation as m, encodeURLSearchParams as p, findChildrenOfType as s, generatePaddingClassName as d, getCommonProps as u, noOp as l, px as i, useNormalizedInputProps as x } from "./utils/index.js";
2
2
  import { default as g } from "./pages/Page.js";
3
3
  import { default as L } from "./components/Button/Button.js";
4
4
  import { ButtonVariants as I } from "./components/Button/types.js";
5
- import { default as P } from "./components/IconButton/IconButton.js";
5
+ import { default as B } from "./components/IconButton/IconButton.js";
6
6
  import { default as N } from "./components/ErrorBoundary/ErrorBoundary.js";
7
- import { default as T } from "./components/Footer/Footer.js";
8
- import { Grid as v } from "./components/Grid/Grid.js";
9
- import { default as h } from "./components/Header/Header.js";
7
+ import { default as V } from "./components/Footer/Footer.js";
8
+ import { Grid as h } from "./components/Grid/Grid.js";
9
+ import { default as w } from "./components/Header/Header.js";
10
10
  import { default as C } from "./components/Navigation/Navigation.js";
11
- import { default as y } from "./components/Navigation/NavigationItem/NavigationItem.js";
12
- import { default as M } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
11
+ import { default as H } from "./components/Navigation/NavigationItem/NavigationItem.js";
12
+ import { default as y } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
13
13
  import { default as R } from "./components/Navigation/NavigationList/NavigationList.js";
14
14
  import { default as z } from "./components/HeroBanner/HeroBanner.js";
15
15
  import { default as E } from "./components/Input/Input.js";
@@ -20,40 +20,44 @@ import { default as W } from "./components/LinkList/LinkList.js";
20
20
  import { default as Z } from "./components/Row/Row.js";
21
21
  import { default as $ } from "./components/GridItem/GridItem.js";
22
22
  import { GridItemAlign as re } from "./components/GridItem/types.js";
23
- import { default as te } from "./components/Search/Search.js";
23
+ import { default as oe } from "./components/Search/Search.js";
24
24
  import { default as fe } from "./components/Select/Select.js";
25
25
  import { default as pe } from "./components/SplitPanel/SplitPanel.js";
26
- import { default as se } from "./components/Subscribe/Subscribe.js";
26
+ import { default as de } from "./components/Subscribe/Subscribe.js";
27
27
  import { SubscriptionState as le } from "./components/Subscribe/types.js";
28
28
  import { default as xe } from "./components/Social/Social.js";
29
29
  import { default as ge } from "./components/ViewingsList/ViewingsList.js";
30
30
  import { default as Le } from "./components/Modal/Modal.js";
31
31
  import { default as Ie } from "./components/Drawer/Drawer.js";
32
- import { default as Pe } from "./components/ViewingsList/StatefulViewingsList.js";
32
+ import { default as Be } from "./components/ViewingsList/StatefulViewingsList.js";
33
33
  import { TextVariants as Ne } from "./components/Text/types.js";
34
- import { default as Te } from "./components/Text/Text.js";
35
- import { default as ve } from "./components/Accordion/Accordion.js";
36
- import { default as he } from "./components/Accordion/AccordionItem.js";
37
- import { default as Ce } from "./components/UserManagement/UserManagement.js";
38
- import { SupportedLanguages as ye } from "./types/commonTypes.js";
39
- import { default as Me } from "./components/Breadcrumb/Breadcrumb.js";
34
+ import { default as Ve } from "./components/Text/Text.js";
35
+ import { default as he } from "./components/HTMLParser/HTMLParser.js";
36
+ import { default as we } from "./components/Accordion/Accordion.js";
37
+ import { default as Ce } from "./components/Accordion/AccordionItem.js";
38
+ import { default as He } from "./components/UserManagement/UserManagement.js";
39
+ import { AuthState as ye } from "./components/UserManagement/types.js";
40
+ import { SupportedLanguages as Re } from "./types/commonTypes.js";
41
+ import { default as ze } from "./components/Breadcrumb/Breadcrumb.js";
40
42
  import "react/jsx-runtime";
41
43
  import "./node_modules/classnames/index.js";
42
44
  export {
43
- ve as Accordion,
44
- he as AccordionItem,
45
- Me as Breadcrumb,
45
+ we as Accordion,
46
+ Ce as AccordionItem,
47
+ ye as AuthState,
48
+ ze as Breadcrumb,
46
49
  L as Button,
47
50
  I as ButtonVariants,
48
51
  Ie as Drawer,
49
52
  N as ErrorBoundary,
50
- T as Footer,
51
- v as Grid,
53
+ V as Footer,
54
+ h as Grid,
52
55
  $ as GridItem,
53
56
  re as GridItemAlign,
54
- h as Header,
57
+ he as HTMLParser,
58
+ w as Header,
55
59
  z as HeroBanner,
56
- P as IconButton,
60
+ B as IconButton,
57
61
  E as Input,
58
62
  Y as Link,
59
63
  K as LinkBlock,
@@ -61,31 +65,31 @@ export {
61
65
  q as LinkVariants,
62
66
  Le as Modal,
63
67
  C as Navigation,
64
- y as NavigationItem,
65
- M as NavigationItemTrigger,
68
+ H as NavigationItem,
69
+ y as NavigationItemTrigger,
66
70
  R as NavigationList,
67
71
  a as PaddingTokens,
68
72
  g as Page,
69
73
  Z as Row,
70
- te as Search,
74
+ oe as Search,
71
75
  fe as Select,
72
76
  xe as Social,
73
77
  pe as SplitPanel,
74
- Pe as StatefulViewingsList,
75
- se as Subscribe,
78
+ Be as StatefulViewingsList,
79
+ de as Subscribe,
76
80
  le as SubscriptionState,
77
- ye as SupportedLanguages,
78
- Te as Text,
81
+ Re as SupportedLanguages,
82
+ Ve as Text,
79
83
  Ne as TextVariants,
80
- Ce as UserManagement,
84
+ He as UserManagement,
81
85
  ge as ViewingsList,
82
86
  f as defaultYear,
83
87
  m as emailValidation,
84
88
  p as encodeURLSearchParams,
85
- d as findChildrenOfType,
86
- s as generatePaddingClassName,
87
- i as getCommonProps,
89
+ s as findChildrenOfType,
90
+ d as generatePaddingClassName,
91
+ u as getCommonProps,
88
92
  l as noOp,
89
- u as px,
93
+ i as px,
90
94
  x as useNormalizedInputProps
91
95
  };
@@ -0,0 +1,12 @@
1
+ import { __exports as D } from "../../../_virtual/index9.js";
2
+ (function(i) {
3
+ Object.defineProperty(i, "__esModule", { value: !0 }), i.Doctype = i.CDATA = i.Tag = i.Style = i.Script = i.Comment = i.Directive = i.Text = i.Root = i.isTag = i.ElementType = void 0;
4
+ var t;
5
+ (function(c) {
6
+ c.Root = "root", c.Text = "text", c.Directive = "directive", c.Comment = "comment", c.Script = "script", c.Style = "style", c.Tag = "tag", c.CDATA = "cdata", c.Doctype = "doctype";
7
+ })(t = i.ElementType || (i.ElementType = {}));
8
+ function a(c) {
9
+ return c.type === t.Tag || c.type === t.Script || c.type === t.Style;
10
+ }
11
+ i.isTag = a, i.Root = t.Root, i.Text = t.Text, i.Directive = t.Directive, i.Comment = t.Comment, i.Script = t.Script, i.Style = t.Style, i.Tag = t.Tag, i.CDATA = t.CDATA, i.Doctype = t.Doctype;
12
+ })(D);