@phillips/seldon 1.67.0 → 1.67.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.
Files changed (43) hide show
  1. package/dist/components/Search/SearchResults/SearchResults.js +17 -21
  2. package/dist/scss/componentStyles.scss +0 -1
  3. package/package.json +1 -1
  4. package/dist/_virtual/attributes-to-props.js +0 -4
  5. package/dist/_virtual/constants.js +0 -4
  6. package/dist/_virtual/dom-to-react.js +0 -4
  7. package/dist/_virtual/domparser.js +0 -4
  8. package/dist/_virtual/html-to-dom.js +0 -4
  9. package/dist/_virtual/index10.js +0 -4
  10. package/dist/_virtual/index11.js +0 -4
  11. package/dist/_virtual/index7.js +0 -4
  12. package/dist/_virtual/index8.js +0 -4
  13. package/dist/_virtual/index9.js +0 -4
  14. package/dist/_virtual/node.js +0 -4
  15. package/dist/_virtual/possibleStandardNamesOptimized.js +0 -4
  16. package/dist/_virtual/utilities.js +0 -4
  17. package/dist/_virtual/utilities2.js +0 -4
  18. package/dist/_virtual/utilities3.js +0 -4
  19. package/dist/components/HTMLParser/HTMLParser.d.ts +0 -24
  20. package/dist/components/HTMLParser/HTMLParser.js +0 -21
  21. package/dist/components/HTMLParser/index.d.ts +0 -1
  22. package/dist/components/HTMLParser/utils.d.ts +0 -7
  23. package/dist/components/HTMLParser/utils.js +0 -31
  24. package/dist/node_modules/domelementtype/lib/index.js +0 -12
  25. package/dist/node_modules/domhandler/lib/index.js +0 -84
  26. package/dist/node_modules/domhandler/lib/node.js +0 -356
  27. package/dist/node_modules/dompurify/dist/purify.es.js +0 -522
  28. package/dist/node_modules/html-dom-parser/lib/client/constants.js +0 -38
  29. package/dist/node_modules/html-dom-parser/lib/client/domparser.js +0 -56
  30. package/dist/node_modules/html-dom-parser/lib/client/html-to-dom.js +0 -20
  31. package/dist/node_modules/html-dom-parser/lib/client/utilities.js +0 -55
  32. package/dist/node_modules/html-react-parser/esm/index.js +0 -7
  33. package/dist/node_modules/html-react-parser/lib/attributes-to-props.js +0 -40
  34. package/dist/node_modules/html-react-parser/lib/dom-to-react.js +0 -60
  35. package/dist/node_modules/html-react-parser/lib/index.js +0 -42
  36. package/dist/node_modules/html-react-parser/lib/utilities.js +0 -58
  37. package/dist/node_modules/inline-style-parser/index.js +0 -86
  38. package/dist/node_modules/react-property/lib/index.js +0 -440
  39. package/dist/node_modules/react-property/lib/possibleStandardNamesOptimized.js +0 -493
  40. package/dist/node_modules/style-to-js/cjs/index.js +0 -19
  41. package/dist/node_modules/style-to-js/cjs/utilities.js +0 -16
  42. package/dist/node_modules/style-to-object/cjs/index.js +0 -21
  43. package/dist/scss/components/HTMLParser/_htmlParser.scss +0 -5
@@ -1,55 +0,0 @@
1
- import { __exports as l } from "../../../../_virtual/utilities2.js";
2
- import "../../../domhandler/lib/index.js";
3
- import "./constants.js";
4
- import { __exports as _ } from "../../../../_virtual/index8.js";
5
- import { __exports as p } from "../../../../_virtual/constants.js";
6
- Object.defineProperty(l, "__esModule", { value: !0 });
7
- l.formatAttributes = m;
8
- l.formatDOM = c;
9
- var i = _, d = p;
10
- function h(t) {
11
- return d.CASE_SENSITIVE_TAG_NAMES_MAP[t];
12
- }
13
- function m(t) {
14
- for (var r = {}, a = 0, n = t.length; a < n; a++) {
15
- var e = t[a];
16
- r[e.name] = e.value;
17
- }
18
- return r;
19
- }
20
- function x(t) {
21
- t = t.toLowerCase();
22
- var r = h(t);
23
- return r || t;
24
- }
25
- function c(t, r, a) {
26
- r === void 0 && (r = null);
27
- for (var n = [], e, s = 0, v = t.length; s < v; s++) {
28
- var o = t[s];
29
- switch (o.nodeType) {
30
- case 1: {
31
- var f = x(o.nodeName);
32
- e = new i.Element(f, m(o.attributes)), e.children = c(
33
- // template children are on content
34
- f === "template" ? o.content.childNodes : o.childNodes,
35
- e
36
- );
37
- break;
38
- }
39
- case 3:
40
- e = new i.Text(o.nodeValue);
41
- break;
42
- case 8:
43
- e = new i.Comment(o.nodeValue);
44
- break;
45
- default:
46
- continue;
47
- }
48
- var u = n[s - 1] || null;
49
- u && (u.next = e), e.parent = r, e.prev = u, e.next = null, n.push(e);
50
- }
51
- return a && (e = new i.ProcessingInstruction(a.substring(0, a.indexOf(" ")).toLowerCase(), a), e.next = n[0] || null, e.parent = r, n.unshift(e), n[1] && (n[1].prev = n[0])), n;
52
- }
53
- export {
54
- l as default
55
- };
@@ -1,7 +0,0 @@
1
- import t from "../lib/index.js";
2
- const a = t.default || t, e = lib.attributesToProps, r = lib.domToReact;
3
- export {
4
- e as attributesToProps,
5
- a as default,
6
- r as domToReact
7
- };
@@ -1,40 +0,0 @@
1
- import { __exports as v } from "../../../_virtual/attributes-to-props.js";
2
- import "../../react-property/lib/index.js";
3
- import "./utilities.js";
4
- import { __exports as E } from "../../../_virtual/index9.js";
5
- import { __exports as u } from "../../../_virtual/utilities.js";
6
- Object.defineProperty(v, "__esModule", { value: !0 });
7
- v.default = y;
8
- var i = E, l = u, T = ["checked", "value"], p = ["input", "select", "textarea"], d = {
9
- reset: !0,
10
- submit: !0
11
- };
12
- function y(r, f) {
13
- r === void 0 && (r = {});
14
- var e = {}, c = !!(r.type && d[r.type]);
15
- for (var s in r) {
16
- var n = r[s];
17
- if ((0, i.isCustomAttribute)(s)) {
18
- e[s] = n;
19
- continue;
20
- }
21
- var O = s.toLowerCase(), o = t(O);
22
- if (o) {
23
- var _ = (0, i.getPropertyInfo)(o);
24
- switch (T.includes(o) && p.includes(f) && !c && (o = t("default" + O)), e[o] = n, _ && _.type) {
25
- case i.BOOLEAN:
26
- e[o] = !0;
27
- break;
28
- case i.OVERLOADED_BOOLEAN:
29
- n === "" && (e[o] = !0);
30
- break;
31
- }
32
- continue;
33
- }
34
- l.PRESERVE_CUSTOM_ATTRIBUTES && (e[s] = n);
35
- }
36
- return (0, l.setStyleProp)(r.style, e), e;
37
- }
38
- function t(r) {
39
- return i.possibleStandardNames[r];
40
- }
@@ -1,60 +0,0 @@
1
- import { commonjsGlobal as o } from "../../../_virtual/_commonjsHelpers.js";
2
- import { __exports as b } from "../../../_virtual/dom-to-react.js";
3
- import R from "react";
4
- import "./attributes-to-props.js";
5
- import "./utilities.js";
6
- import { __exports as k } from "../../../_virtual/attributes-to-props.js";
7
- import { __exports as V } from "../../../_virtual/utilities.js";
8
- var P = o && o.__importDefault || function(r) {
9
- return r && r.__esModule ? r : { default: r };
10
- };
11
- Object.defineProperty(b, "__esModule", { value: !0 });
12
- b.default = y;
13
- var n = R, S = P(k), c = V, C = {
14
- cloneElement: n.cloneElement,
15
- createElement: n.createElement,
16
- isValidElement: n.isValidElement
17
- };
18
- function y(r, e) {
19
- e === void 0 && (e = {});
20
- for (var l = [], E = typeof e.replace == "function", s = e.transform || c.returnFirstArg, m = e.library || C, p = m.cloneElement, T = m.createElement, g = m.isValidElement, _ = r.length, a = 0; a < _; a++) {
21
- var t = r[a];
22
- if (E) {
23
- var u = e.replace(t, a);
24
- if (g(u)) {
25
- _ > 1 && (u = p(u, {
26
- key: u.key || a
27
- })), l.push(s(u, t, a));
28
- continue;
29
- }
30
- }
31
- if (t.type === "text") {
32
- var v = !t.data.trim().length;
33
- if (v && t.parent && !(0, c.canTextBeChildOfNode)(t.parent) || e.trim && v)
34
- continue;
35
- l.push(s(t.data, t, a));
36
- continue;
37
- }
38
- var i = t, f = {};
39
- M(i) ? ((0, c.setStyleProp)(i.attribs.style, i.attribs), f = i.attribs) : i.attribs && (f = (0, S.default)(i.attribs, i.name));
40
- var h = void 0;
41
- switch (t.type) {
42
- case "script":
43
- case "style":
44
- t.children[0] && (f.dangerouslySetInnerHTML = {
45
- __html: t.children[0].data
46
- });
47
- break;
48
- case "tag":
49
- t.name === "textarea" && t.children[0] ? f.defaultValue = t.children[0].data : t.children && t.children.length && (h = y(t.children, e));
50
- break;
51
- default:
52
- continue;
53
- }
54
- _ > 1 && (f.key = a), l.push(s(T(t.name, f, h), t, a));
55
- }
56
- return l.length === 1 ? l[0] : l;
57
- }
58
- function M(r) {
59
- return c.PRESERVE_CUSTOM_ATTRIBUTES && r.type === "tag" && (0, c.isCustomComponent)(r.name, r.attribs);
60
- }
@@ -1,42 +0,0 @@
1
- import { getDefaultExportFromCjs as _, commonjsGlobal as m } from "../../../_virtual/_commonjsHelpers.js";
2
- import { __exports as i } from "../../../_virtual/index7.js";
3
- import "../../html-dom-parser/lib/client/html-to-dom.js";
4
- import "./attributes-to-props.js";
5
- import "./dom-to-react.js";
6
- import "../../domhandler/lib/index.js";
7
- import { __exports as c } from "../../../_virtual/html-to-dom.js";
8
- import { __exports as d } from "../../../_virtual/attributes-to-props.js";
9
- import { __exports as b } from "../../../_virtual/dom-to-react.js";
10
- import { __exports as p } from "../../../_virtual/index8.js";
11
- (function(e) {
12
- var n = m && m.__importDefault || function(t) {
13
- return t && t.__esModule ? t : { default: t };
14
- };
15
- Object.defineProperty(e, "__esModule", { value: !0 }), e.htmlToDOM = e.domToReact = e.attributesToProps = e.Text = e.ProcessingInstruction = e.Element = e.Comment = void 0, e.default = s;
16
- var a = n(c);
17
- e.htmlToDOM = a.default;
18
- var f = n(d);
19
- e.attributesToProps = f.default;
20
- var u = n(b);
21
- e.domToReact = u.default;
22
- var r = p;
23
- Object.defineProperty(e, "Comment", { enumerable: !0, get: function() {
24
- return r.Comment;
25
- } }), Object.defineProperty(e, "Element", { enumerable: !0, get: function() {
26
- return r.Element;
27
- } }), Object.defineProperty(e, "ProcessingInstruction", { enumerable: !0, get: function() {
28
- return r.ProcessingInstruction;
29
- } }), Object.defineProperty(e, "Text", { enumerable: !0, get: function() {
30
- return r.Text;
31
- } });
32
- var l = { lowerCaseAttributeNames: !1 };
33
- function s(t, o) {
34
- if (typeof t != "string")
35
- throw new TypeError("First argument must be a string");
36
- return t ? (0, u.default)((0, a.default)(t, (o == null ? void 0 : o.htmlparser2) || l), o) : [];
37
- }
38
- })(i);
39
- const C = /* @__PURE__ */ _(i);
40
- export {
41
- C as default
42
- };
@@ -1,58 +0,0 @@
1
- import { commonjsGlobal as n } from "../../../_virtual/_commonjsHelpers.js";
2
- import { __exports as T } from "../../../_virtual/utilities.js";
3
- import m from "react";
4
- import { c as s } from "../../style-to-js/cjs/index.js";
5
- (function(e) {
6
- var o = n && n.__importDefault || function(t) {
7
- return t && t.__esModule ? t : { default: t };
8
- };
9
- Object.defineProperty(e, "__esModule", { value: !0 }), e.returnFirstArg = e.canTextBeChildOfNode = e.ELEMENTS_WITH_NO_TEXT_CHILDREN = e.PRESERVE_CUSTOM_ATTRIBUTES = void 0, e.isCustomComponent = u, e.setStyleProp = l;
10
- var i = m, a = o(s), f = /* @__PURE__ */ new Set([
11
- "annotation-xml",
12
- "color-profile",
13
- "font-face",
14
- "font-face-src",
15
- "font-face-uri",
16
- "font-face-format",
17
- "font-face-name",
18
- "missing-glyph"
19
- ]);
20
- function u(t, r) {
21
- return t.includes("-") ? !f.has(t) : !!(r && typeof r.is == "string");
22
- }
23
- var _ = {
24
- reactCompat: !0
25
- };
26
- function l(t, r) {
27
- if (typeof t == "string") {
28
- if (!t.trim()) {
29
- r.style = {};
30
- return;
31
- }
32
- try {
33
- r.style = (0, a.default)(t, _);
34
- } catch {
35
- r.style = {};
36
- }
37
- }
38
- }
39
- e.PRESERVE_CUSTOM_ATTRIBUTES = Number(i.version.split(".")[0]) >= 16, e.ELEMENTS_WITH_NO_TEXT_CHILDREN = /* @__PURE__ */ new Set([
40
- "tr",
41
- "tbody",
42
- "thead",
43
- "tfoot",
44
- "colgroup",
45
- "table",
46
- "head",
47
- "html",
48
- "frameset"
49
- ]);
50
- var E = function(t) {
51
- return !e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(t.name);
52
- };
53
- e.canTextBeChildOfNode = E;
54
- var c = function(t) {
55
- return t;
56
- };
57
- e.returnFirstArg = c;
58
- })(T);
@@ -1,86 +0,0 @@
1
- var p = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, N = /\n/g, O = /^\s*/, G = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, I = /^:\s*/, P = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, d = /^[;\s]*/, S = /^\s+|\s+$/g, X = `
2
- `, R = "/", A = "*", i = "", L = "comment", M = "declaration", C = function(e, c) {
3
- if (typeof e != "string")
4
- throw new TypeError("First argument must be a string");
5
- if (!e) return [];
6
- c = c || {};
7
- var o = 1, t = 1;
8
- function v(n) {
9
- var r = n.match(N);
10
- r && (o += r.length);
11
- var a = n.lastIndexOf(X);
12
- t = ~a ? n.length - a : t + n.length;
13
- }
14
- function E() {
15
- var n = { line: o, column: t };
16
- return function(r) {
17
- return r.position = new f(n), m(), r;
18
- };
19
- }
20
- function f(n) {
21
- this.start = n, this.end = { line: o, column: t }, this.source = c.source;
22
- }
23
- f.prototype.content = e;
24
- function h(n) {
25
- var r = new Error(
26
- c.source + ":" + o + ":" + t + ": " + n
27
- );
28
- if (r.reason = n, r.filename = c.source, r.line = o, r.column = t, r.source = e, !c.silent) throw r;
29
- }
30
- function u(n) {
31
- var r = n.exec(e);
32
- if (r) {
33
- var a = r[0];
34
- return v(a), e = e.slice(a.length), r;
35
- }
36
- }
37
- function m() {
38
- u(O);
39
- }
40
- function s(n) {
41
- var r;
42
- for (n = n || []; r = l(); )
43
- r !== !1 && n.push(r);
44
- return n;
45
- }
46
- function l() {
47
- var n = E();
48
- if (!(R != e.charAt(0) || A != e.charAt(1))) {
49
- for (var r = 2; i != e.charAt(r) && (A != e.charAt(r) || R != e.charAt(r + 1)); )
50
- ++r;
51
- if (r += 2, i === e.charAt(r - 1))
52
- return h("End of comment missing");
53
- var a = e.slice(2, r - 2);
54
- return t += 2, v(a), e = e.slice(r), t += 2, n({
55
- type: L,
56
- comment: a
57
- });
58
- }
59
- }
60
- function T() {
61
- var n = E(), r = u(G);
62
- if (r) {
63
- if (l(), !u(I)) return h("property missing ':'");
64
- var a = u(P), w = n({
65
- type: M,
66
- property: _(r[0].replace(p, i)),
67
- value: a ? _(a[0].replace(p, i)) : i
68
- });
69
- return u(d), w;
70
- }
71
- }
72
- function g() {
73
- var n = [];
74
- s(n);
75
- for (var r; r = T(); )
76
- r !== !1 && (n.push(r), s(n));
77
- return n;
78
- }
79
- return m(), g();
80
- };
81
- function _(e) {
82
- return e ? e.replace(S, i) : i;
83
- }
84
- export {
85
- C as i
86
- };