@phillips/seldon 1.66.0 → 1.67.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.
- package/dist/_virtual/attributes-to-props.js +4 -0
- package/dist/_virtual/constants.js +4 -0
- package/dist/_virtual/dom-to-react.js +4 -0
- package/dist/_virtual/domparser.js +4 -0
- package/dist/_virtual/html-to-dom.js +4 -0
- package/dist/_virtual/index10.js +4 -0
- package/dist/_virtual/index11.js +4 -0
- package/dist/_virtual/index7.js +4 -0
- package/dist/_virtual/index8.js +4 -0
- package/dist/_virtual/index9.js +4 -0
- package/dist/_virtual/node.js +4 -0
- package/dist/_virtual/possibleStandardNamesOptimized.js +4 -0
- package/dist/_virtual/utilities.js +4 -0
- package/dist/_virtual/utilities2.js +4 -0
- package/dist/_virtual/utilities3.js +4 -0
- package/dist/components/HTMLParser/HTMLParser.d.ts +24 -0
- package/dist/components/HTMLParser/HTMLParser.js +21 -0
- package/dist/components/HTMLParser/index.d.ts +1 -0
- package/dist/components/HTMLParser/utils.d.ts +7 -0
- package/dist/components/HTMLParser/utils.js +31 -0
- package/dist/components/Search/Search.js +23 -22
- package/dist/components/Search/SearchResults/SearchResults.d.ts +2 -1
- package/dist/components/Search/SearchResults/SearchResults.js +26 -16
- package/dist/node_modules/domelementtype/lib/index.js +12 -0
- package/dist/node_modules/domhandler/lib/index.js +84 -0
- package/dist/node_modules/domhandler/lib/node.js +356 -0
- package/dist/node_modules/dompurify/dist/purify.es.js +522 -0
- package/dist/node_modules/html-dom-parser/lib/client/constants.js +38 -0
- package/dist/node_modules/html-dom-parser/lib/client/domparser.js +56 -0
- package/dist/node_modules/html-dom-parser/lib/client/html-to-dom.js +20 -0
- package/dist/node_modules/html-dom-parser/lib/client/utilities.js +55 -0
- package/dist/node_modules/html-react-parser/esm/index.js +7 -0
- package/dist/node_modules/html-react-parser/lib/attributes-to-props.js +40 -0
- package/dist/node_modules/html-react-parser/lib/dom-to-react.js +60 -0
- package/dist/node_modules/html-react-parser/lib/index.js +42 -0
- package/dist/node_modules/html-react-parser/lib/utilities.js +58 -0
- package/dist/node_modules/inline-style-parser/index.js +86 -0
- package/dist/node_modules/react-property/lib/index.js +440 -0
- package/dist/node_modules/react-property/lib/possibleStandardNamesOptimized.js +493 -0
- package/dist/node_modules/style-to-js/cjs/index.js +19 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +16 -0
- package/dist/node_modules/style-to-object/cjs/index.js +21 -0
- package/dist/scss/components/Search/SearchResults/_searchResults.scss +4 -0
- package/dist/scss/components/Search/_search.scss +17 -2
- package/dist/scss/components/Search/_searchButton.scss +15 -5
- package/dist/scss/site-furniture/Header/_header.scss +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
import { __exports as l } from "../../../_virtual/index9.js";
|
|
2
|
+
import "./possibleStandardNamesOptimized.js";
|
|
3
|
+
import { __exports as y } from "../../../_virtual/possibleStandardNamesOptimized.js";
|
|
4
|
+
const h = 0, r = 1, i = 2, a = 3, c = 4, d = 5, E = 6;
|
|
5
|
+
function R(e) {
|
|
6
|
+
return t.hasOwnProperty(e) ? t[e] : null;
|
|
7
|
+
}
|
|
8
|
+
function s(e, o, n, g, w, k, x) {
|
|
9
|
+
this.acceptsBooleans = o === i || o === a || o === c, this.attributeName = g, this.attributeNamespace = w, this.mustUseProperty = n, this.propertyName = e, this.type = o, this.sanitizeURL = k, this.removeEmptyString = x;
|
|
10
|
+
}
|
|
11
|
+
const t = {}, C = [
|
|
12
|
+
"children",
|
|
13
|
+
"dangerouslySetInnerHTML",
|
|
14
|
+
// TODO: This prevents the assignment of defaultValue to regular
|
|
15
|
+
// elements (not just inputs). Now that ReactDOMInput assigns to the
|
|
16
|
+
// defaultValue property -- do we need this?
|
|
17
|
+
"defaultValue",
|
|
18
|
+
"defaultChecked",
|
|
19
|
+
"innerHTML",
|
|
20
|
+
"suppressContentEditableWarning",
|
|
21
|
+
"suppressHydrationWarning",
|
|
22
|
+
"style"
|
|
23
|
+
];
|
|
24
|
+
C.forEach((e) => {
|
|
25
|
+
t[e] = new s(
|
|
26
|
+
e,
|
|
27
|
+
h,
|
|
28
|
+
!1,
|
|
29
|
+
// mustUseProperty
|
|
30
|
+
e,
|
|
31
|
+
// attributeName
|
|
32
|
+
null,
|
|
33
|
+
// attributeNamespace
|
|
34
|
+
!1,
|
|
35
|
+
// sanitizeURL
|
|
36
|
+
!1
|
|
37
|
+
// removeEmptyString
|
|
38
|
+
);
|
|
39
|
+
});
|
|
40
|
+
[
|
|
41
|
+
["acceptCharset", "accept-charset"],
|
|
42
|
+
["className", "class"],
|
|
43
|
+
["htmlFor", "for"],
|
|
44
|
+
["httpEquiv", "http-equiv"]
|
|
45
|
+
].forEach(([e, o]) => {
|
|
46
|
+
t[e] = new s(
|
|
47
|
+
e,
|
|
48
|
+
r,
|
|
49
|
+
!1,
|
|
50
|
+
// mustUseProperty
|
|
51
|
+
o,
|
|
52
|
+
// attributeName
|
|
53
|
+
null,
|
|
54
|
+
// attributeNamespace
|
|
55
|
+
!1,
|
|
56
|
+
// sanitizeURL
|
|
57
|
+
!1
|
|
58
|
+
// removeEmptyString
|
|
59
|
+
);
|
|
60
|
+
});
|
|
61
|
+
["contentEditable", "draggable", "spellCheck", "value"].forEach((e) => {
|
|
62
|
+
t[e] = new s(
|
|
63
|
+
e,
|
|
64
|
+
i,
|
|
65
|
+
!1,
|
|
66
|
+
// mustUseProperty
|
|
67
|
+
e.toLowerCase(),
|
|
68
|
+
// attributeName
|
|
69
|
+
null,
|
|
70
|
+
// attributeNamespace
|
|
71
|
+
!1,
|
|
72
|
+
// sanitizeURL
|
|
73
|
+
!1
|
|
74
|
+
// removeEmptyString
|
|
75
|
+
);
|
|
76
|
+
});
|
|
77
|
+
[
|
|
78
|
+
"autoReverse",
|
|
79
|
+
"externalResourcesRequired",
|
|
80
|
+
"focusable",
|
|
81
|
+
"preserveAlpha"
|
|
82
|
+
].forEach((e) => {
|
|
83
|
+
t[e] = new s(
|
|
84
|
+
e,
|
|
85
|
+
i,
|
|
86
|
+
!1,
|
|
87
|
+
// mustUseProperty
|
|
88
|
+
e,
|
|
89
|
+
// attributeName
|
|
90
|
+
null,
|
|
91
|
+
// attributeNamespace
|
|
92
|
+
!1,
|
|
93
|
+
// sanitizeURL
|
|
94
|
+
!1
|
|
95
|
+
// removeEmptyString
|
|
96
|
+
);
|
|
97
|
+
});
|
|
98
|
+
[
|
|
99
|
+
"allowFullScreen",
|
|
100
|
+
"async",
|
|
101
|
+
// Note: there is a special case that prevents it from being written to the DOM
|
|
102
|
+
// on the client side because the browsers are inconsistent. Instead we call focus().
|
|
103
|
+
"autoFocus",
|
|
104
|
+
"autoPlay",
|
|
105
|
+
"controls",
|
|
106
|
+
"default",
|
|
107
|
+
"defer",
|
|
108
|
+
"disabled",
|
|
109
|
+
"disablePictureInPicture",
|
|
110
|
+
"disableRemotePlayback",
|
|
111
|
+
"formNoValidate",
|
|
112
|
+
"hidden",
|
|
113
|
+
"loop",
|
|
114
|
+
"noModule",
|
|
115
|
+
"noValidate",
|
|
116
|
+
"open",
|
|
117
|
+
"playsInline",
|
|
118
|
+
"readOnly",
|
|
119
|
+
"required",
|
|
120
|
+
"reversed",
|
|
121
|
+
"scoped",
|
|
122
|
+
"seamless",
|
|
123
|
+
// Microdata
|
|
124
|
+
"itemScope"
|
|
125
|
+
].forEach((e) => {
|
|
126
|
+
t[e] = new s(
|
|
127
|
+
e,
|
|
128
|
+
a,
|
|
129
|
+
!1,
|
|
130
|
+
// mustUseProperty
|
|
131
|
+
e.toLowerCase(),
|
|
132
|
+
// attributeName
|
|
133
|
+
null,
|
|
134
|
+
// attributeNamespace
|
|
135
|
+
!1,
|
|
136
|
+
// sanitizeURL
|
|
137
|
+
!1
|
|
138
|
+
// removeEmptyString
|
|
139
|
+
);
|
|
140
|
+
});
|
|
141
|
+
[
|
|
142
|
+
"checked",
|
|
143
|
+
// Note: `option.selected` is not updated if `select.multiple` is
|
|
144
|
+
// disabled with `removeAttribute`. We have special logic for handling this.
|
|
145
|
+
"multiple",
|
|
146
|
+
"muted",
|
|
147
|
+
"selected"
|
|
148
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
149
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
150
|
+
// instead in the assignment below.
|
|
151
|
+
].forEach((e) => {
|
|
152
|
+
t[e] = new s(
|
|
153
|
+
e,
|
|
154
|
+
a,
|
|
155
|
+
!0,
|
|
156
|
+
// mustUseProperty
|
|
157
|
+
e,
|
|
158
|
+
// attributeName
|
|
159
|
+
null,
|
|
160
|
+
// attributeNamespace
|
|
161
|
+
!1,
|
|
162
|
+
// sanitizeURL
|
|
163
|
+
!1
|
|
164
|
+
// removeEmptyString
|
|
165
|
+
);
|
|
166
|
+
});
|
|
167
|
+
[
|
|
168
|
+
"capture",
|
|
169
|
+
"download"
|
|
170
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
171
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
172
|
+
// instead in the assignment below.
|
|
173
|
+
].forEach((e) => {
|
|
174
|
+
t[e] = new s(
|
|
175
|
+
e,
|
|
176
|
+
c,
|
|
177
|
+
!1,
|
|
178
|
+
// mustUseProperty
|
|
179
|
+
e,
|
|
180
|
+
// attributeName
|
|
181
|
+
null,
|
|
182
|
+
// attributeNamespace
|
|
183
|
+
!1,
|
|
184
|
+
// sanitizeURL
|
|
185
|
+
!1
|
|
186
|
+
// removeEmptyString
|
|
187
|
+
);
|
|
188
|
+
});
|
|
189
|
+
[
|
|
190
|
+
"cols",
|
|
191
|
+
"rows",
|
|
192
|
+
"size",
|
|
193
|
+
"span"
|
|
194
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
195
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
196
|
+
// instead in the assignment below.
|
|
197
|
+
].forEach((e) => {
|
|
198
|
+
t[e] = new s(
|
|
199
|
+
e,
|
|
200
|
+
E,
|
|
201
|
+
!1,
|
|
202
|
+
// mustUseProperty
|
|
203
|
+
e,
|
|
204
|
+
// attributeName
|
|
205
|
+
null,
|
|
206
|
+
// attributeNamespace
|
|
207
|
+
!1,
|
|
208
|
+
// sanitizeURL
|
|
209
|
+
!1
|
|
210
|
+
// removeEmptyString
|
|
211
|
+
);
|
|
212
|
+
});
|
|
213
|
+
["rowSpan", "start"].forEach((e) => {
|
|
214
|
+
t[e] = new s(
|
|
215
|
+
e,
|
|
216
|
+
d,
|
|
217
|
+
!1,
|
|
218
|
+
// mustUseProperty
|
|
219
|
+
e.toLowerCase(),
|
|
220
|
+
// attributeName
|
|
221
|
+
null,
|
|
222
|
+
// attributeNamespace
|
|
223
|
+
!1,
|
|
224
|
+
// sanitizeURL
|
|
225
|
+
!1
|
|
226
|
+
// removeEmptyString
|
|
227
|
+
);
|
|
228
|
+
});
|
|
229
|
+
const f = /[\-\:]([a-z])/g, p = (e) => e[1].toUpperCase();
|
|
230
|
+
[
|
|
231
|
+
"accent-height",
|
|
232
|
+
"alignment-baseline",
|
|
233
|
+
"arabic-form",
|
|
234
|
+
"baseline-shift",
|
|
235
|
+
"cap-height",
|
|
236
|
+
"clip-path",
|
|
237
|
+
"clip-rule",
|
|
238
|
+
"color-interpolation",
|
|
239
|
+
"color-interpolation-filters",
|
|
240
|
+
"color-profile",
|
|
241
|
+
"color-rendering",
|
|
242
|
+
"dominant-baseline",
|
|
243
|
+
"enable-background",
|
|
244
|
+
"fill-opacity",
|
|
245
|
+
"fill-rule",
|
|
246
|
+
"flood-color",
|
|
247
|
+
"flood-opacity",
|
|
248
|
+
"font-family",
|
|
249
|
+
"font-size",
|
|
250
|
+
"font-size-adjust",
|
|
251
|
+
"font-stretch",
|
|
252
|
+
"font-style",
|
|
253
|
+
"font-variant",
|
|
254
|
+
"font-weight",
|
|
255
|
+
"glyph-name",
|
|
256
|
+
"glyph-orientation-horizontal",
|
|
257
|
+
"glyph-orientation-vertical",
|
|
258
|
+
"horiz-adv-x",
|
|
259
|
+
"horiz-origin-x",
|
|
260
|
+
"image-rendering",
|
|
261
|
+
"letter-spacing",
|
|
262
|
+
"lighting-color",
|
|
263
|
+
"marker-end",
|
|
264
|
+
"marker-mid",
|
|
265
|
+
"marker-start",
|
|
266
|
+
"overline-position",
|
|
267
|
+
"overline-thickness",
|
|
268
|
+
"paint-order",
|
|
269
|
+
"panose-1",
|
|
270
|
+
"pointer-events",
|
|
271
|
+
"rendering-intent",
|
|
272
|
+
"shape-rendering",
|
|
273
|
+
"stop-color",
|
|
274
|
+
"stop-opacity",
|
|
275
|
+
"strikethrough-position",
|
|
276
|
+
"strikethrough-thickness",
|
|
277
|
+
"stroke-dasharray",
|
|
278
|
+
"stroke-dashoffset",
|
|
279
|
+
"stroke-linecap",
|
|
280
|
+
"stroke-linejoin",
|
|
281
|
+
"stroke-miterlimit",
|
|
282
|
+
"stroke-opacity",
|
|
283
|
+
"stroke-width",
|
|
284
|
+
"text-anchor",
|
|
285
|
+
"text-decoration",
|
|
286
|
+
"text-rendering",
|
|
287
|
+
"underline-position",
|
|
288
|
+
"underline-thickness",
|
|
289
|
+
"unicode-bidi",
|
|
290
|
+
"unicode-range",
|
|
291
|
+
"units-per-em",
|
|
292
|
+
"v-alphabetic",
|
|
293
|
+
"v-hanging",
|
|
294
|
+
"v-ideographic",
|
|
295
|
+
"v-mathematical",
|
|
296
|
+
"vector-effect",
|
|
297
|
+
"vert-adv-y",
|
|
298
|
+
"vert-origin-x",
|
|
299
|
+
"vert-origin-y",
|
|
300
|
+
"word-spacing",
|
|
301
|
+
"writing-mode",
|
|
302
|
+
"xmlns:xlink",
|
|
303
|
+
"x-height"
|
|
304
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
305
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
306
|
+
// instead in the assignment below.
|
|
307
|
+
].forEach((e) => {
|
|
308
|
+
const o = e.replace(f, p);
|
|
309
|
+
t[o] = new s(
|
|
310
|
+
o,
|
|
311
|
+
r,
|
|
312
|
+
!1,
|
|
313
|
+
// mustUseProperty
|
|
314
|
+
e,
|
|
315
|
+
null,
|
|
316
|
+
// attributeNamespace
|
|
317
|
+
!1,
|
|
318
|
+
// sanitizeURL
|
|
319
|
+
!1
|
|
320
|
+
// removeEmptyString
|
|
321
|
+
);
|
|
322
|
+
});
|
|
323
|
+
[
|
|
324
|
+
"xlink:actuate",
|
|
325
|
+
"xlink:arcrole",
|
|
326
|
+
"xlink:role",
|
|
327
|
+
"xlink:show",
|
|
328
|
+
"xlink:title",
|
|
329
|
+
"xlink:type"
|
|
330
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
331
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
332
|
+
// instead in the assignment below.
|
|
333
|
+
].forEach((e) => {
|
|
334
|
+
const o = e.replace(f, p);
|
|
335
|
+
t[o] = new s(
|
|
336
|
+
o,
|
|
337
|
+
r,
|
|
338
|
+
!1,
|
|
339
|
+
// mustUseProperty
|
|
340
|
+
e,
|
|
341
|
+
"http://www.w3.org/1999/xlink",
|
|
342
|
+
!1,
|
|
343
|
+
// sanitizeURL
|
|
344
|
+
!1
|
|
345
|
+
// removeEmptyString
|
|
346
|
+
);
|
|
347
|
+
});
|
|
348
|
+
[
|
|
349
|
+
"xml:base",
|
|
350
|
+
"xml:lang",
|
|
351
|
+
"xml:space"
|
|
352
|
+
// NOTE: if you add a camelCased prop to this list,
|
|
353
|
+
// you'll need to set attributeName to name.toLowerCase()
|
|
354
|
+
// instead in the assignment below.
|
|
355
|
+
].forEach((e) => {
|
|
356
|
+
const o = e.replace(f, p);
|
|
357
|
+
t[o] = new s(
|
|
358
|
+
o,
|
|
359
|
+
r,
|
|
360
|
+
!1,
|
|
361
|
+
// mustUseProperty
|
|
362
|
+
e,
|
|
363
|
+
"http://www.w3.org/XML/1998/namespace",
|
|
364
|
+
!1,
|
|
365
|
+
// sanitizeURL
|
|
366
|
+
!1
|
|
367
|
+
// removeEmptyString
|
|
368
|
+
);
|
|
369
|
+
});
|
|
370
|
+
["tabIndex", "crossOrigin"].forEach((e) => {
|
|
371
|
+
t[e] = new s(
|
|
372
|
+
e,
|
|
373
|
+
r,
|
|
374
|
+
!1,
|
|
375
|
+
// mustUseProperty
|
|
376
|
+
e.toLowerCase(),
|
|
377
|
+
// attributeName
|
|
378
|
+
null,
|
|
379
|
+
// attributeNamespace
|
|
380
|
+
!1,
|
|
381
|
+
// sanitizeURL
|
|
382
|
+
!1
|
|
383
|
+
// removeEmptyString
|
|
384
|
+
);
|
|
385
|
+
});
|
|
386
|
+
const F = "xlinkHref";
|
|
387
|
+
t[F] = new s(
|
|
388
|
+
"xlinkHref",
|
|
389
|
+
r,
|
|
390
|
+
!1,
|
|
391
|
+
// mustUseProperty
|
|
392
|
+
"xlink:href",
|
|
393
|
+
"http://www.w3.org/1999/xlink",
|
|
394
|
+
!0,
|
|
395
|
+
// sanitizeURL
|
|
396
|
+
!1
|
|
397
|
+
// removeEmptyString
|
|
398
|
+
);
|
|
399
|
+
["src", "href", "action", "formAction"].forEach((e) => {
|
|
400
|
+
t[e] = new s(
|
|
401
|
+
e,
|
|
402
|
+
r,
|
|
403
|
+
!1,
|
|
404
|
+
// mustUseProperty
|
|
405
|
+
e.toLowerCase(),
|
|
406
|
+
// attributeName
|
|
407
|
+
null,
|
|
408
|
+
// attributeNamespace
|
|
409
|
+
!0,
|
|
410
|
+
// sanitizeURL
|
|
411
|
+
!0
|
|
412
|
+
// removeEmptyString
|
|
413
|
+
);
|
|
414
|
+
});
|
|
415
|
+
const {
|
|
416
|
+
CAMELCASE: A,
|
|
417
|
+
SAME: I,
|
|
418
|
+
possibleStandardNames: u
|
|
419
|
+
} = y, O = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", b = O + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", v = RegExp.prototype.test.bind(
|
|
420
|
+
// eslint-disable-next-line no-misleading-character-class
|
|
421
|
+
new RegExp("^(data|aria)-[" + b + "]*$")
|
|
422
|
+
), S = Object.keys(
|
|
423
|
+
u
|
|
424
|
+
).reduce((e, o) => {
|
|
425
|
+
const n = u[o];
|
|
426
|
+
return n === I ? e[o] = o : n === A ? e[o.toLowerCase()] = o : e[o] = n, e;
|
|
427
|
+
}, {});
|
|
428
|
+
l.BOOLEAN = a;
|
|
429
|
+
l.BOOLEANISH_STRING = i;
|
|
430
|
+
l.NUMERIC = d;
|
|
431
|
+
l.OVERLOADED_BOOLEAN = c;
|
|
432
|
+
l.POSITIVE_NUMERIC = E;
|
|
433
|
+
l.RESERVED = h;
|
|
434
|
+
l.STRING = r;
|
|
435
|
+
l.getPropertyInfo = R;
|
|
436
|
+
l.isCustomAttribute = v;
|
|
437
|
+
l.possibleStandardNames = S;
|
|
438
|
+
export {
|
|
439
|
+
l as default
|
|
440
|
+
};
|