@spscommerce/ds-web-components 8.45.4 → 8.45.5
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/lib/index.js +7 -199
- package/dist/lib/index.umd.cjs +3 -183
- package/dist/package.json +6 -6
- package/lib/index.js +7 -199
- package/lib/index.umd.cjs +3 -183
- package/package.json +11 -11
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spscommerce/ds-web-components",
|
|
3
3
|
"description": "SPS Design System Native Web Components",
|
|
4
|
-
"version": "8.45.
|
|
4
|
+
"version": "8.45.5",
|
|
5
5
|
"author": "SPS Commerce",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": "https://github.com/spscommerce/woodland/tree/main/packages/@spscommerce/ds-web-components",
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@spscommerce/ds-shared": "workspace:*",
|
|
39
39
|
"@spscommerce/i18n": "workspace:*",
|
|
40
|
-
"@spscommerce/utils": "
|
|
40
|
+
"@spscommerce/utils": "catalog:peerDeps"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@spscommerce/ds-shared": "workspace:*",
|
|
44
44
|
"@spscommerce/i18n": "workspace:*",
|
|
45
|
-
"@spscommerce/utils": "
|
|
46
|
-
"@testing-library/react": "
|
|
45
|
+
"@spscommerce/utils": "catalog:",
|
|
46
|
+
"@testing-library/react": "catalog:",
|
|
47
47
|
"npm-check": "6.0.1",
|
|
48
48
|
"package-json": "10.0.0",
|
|
49
|
-
"react": "
|
|
50
|
-
"react-dom": "
|
|
49
|
+
"react": "catalog:",
|
|
50
|
+
"react-dom": "catalog:",
|
|
51
51
|
"test": "workspace:*"
|
|
52
52
|
}
|
|
53
53
|
}
|
package/lib/index.js
CHANGED
|
@@ -23,41 +23,9 @@ var g = {}, ze;
|
|
|
23
23
|
function Tt() {
|
|
24
24
|
if (ze) return g;
|
|
25
25
|
ze = 1, Object.defineProperty(g, "__esModule", { value: !0 });
|
|
26
|
-
/**
|
|
27
|
-
* @license
|
|
28
|
-
* Copyright 2018 The Incremental DOM Authors. All Rights Reserved.
|
|
29
|
-
*
|
|
30
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
31
|
-
* you may not use this file except in compliance with the License.
|
|
32
|
-
* You may obtain a copy of the License at
|
|
33
|
-
*
|
|
34
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
35
|
-
*
|
|
36
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
37
|
-
* distributed under the License is distributed on an "AS-IS" BASIS,
|
|
38
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
39
|
-
* See the License for the specific language governing permissions and
|
|
40
|
-
* limitations under the License.
|
|
41
|
-
*/
|
|
42
26
|
var e = {
|
|
43
27
|
default: "__default"
|
|
44
28
|
};
|
|
45
|
-
/**
|
|
46
|
-
* @license
|
|
47
|
-
* Copyright 2018 The Incremental DOM Authors. All Rights Reserved.
|
|
48
|
-
*
|
|
49
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
50
|
-
* you may not use this file except in compliance with the License.
|
|
51
|
-
* You may obtain a copy of the License at
|
|
52
|
-
*
|
|
53
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
54
|
-
*
|
|
55
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
56
|
-
* distributed under the License is distributed on an "AS-IS" BASIS,
|
|
57
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
58
|
-
* See the License for the specific language governing permissions and
|
|
59
|
-
* limitations under the License.
|
|
60
|
-
*/
|
|
61
29
|
var s = Object.prototype.hasOwnProperty;
|
|
62
30
|
function i() {
|
|
63
31
|
}
|
|
@@ -72,22 +40,6 @@ function Tt() {
|
|
|
72
40
|
for (; t.length > n; )
|
|
73
41
|
t.pop();
|
|
74
42
|
}
|
|
75
|
-
/**
|
|
76
|
-
* @license
|
|
77
|
-
* Copyright 2018 The Incremental DOM Authors. All Rights Reserved.
|
|
78
|
-
*
|
|
79
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
80
|
-
* you may not use this file except in compliance with the License.
|
|
81
|
-
* You may obtain a copy of the License at
|
|
82
|
-
*
|
|
83
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
84
|
-
*
|
|
85
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
86
|
-
* distributed under the License is distributed on an "AS-IS" BASIS,
|
|
87
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
88
|
-
* See the License for the specific language governing permissions and
|
|
89
|
-
* limitations under the License.
|
|
90
|
-
*/
|
|
91
43
|
function f(t) {
|
|
92
44
|
if (t.lastIndexOf("xml:", 0) === 0)
|
|
93
45
|
return "http://www.w3.org/XML/1998/namespace";
|
|
@@ -128,22 +80,6 @@ function Tt() {
|
|
|
128
80
|
var l = Z[n] || Z[e.default];
|
|
129
81
|
l(t, n, a);
|
|
130
82
|
}
|
|
131
|
-
/**
|
|
132
|
-
* @license
|
|
133
|
-
* Copyright 2018 The Incremental DOM Authors. All Rights Reserved.
|
|
134
|
-
*
|
|
135
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
136
|
-
* you may not use this file except in compliance with the License.
|
|
137
|
-
* You may obtain a copy of the License at
|
|
138
|
-
*
|
|
139
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
140
|
-
*
|
|
141
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
142
|
-
* distributed under the License is distributed on an "AS-IS" BASIS,
|
|
143
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
144
|
-
* See the License for the specific language governing permissions and
|
|
145
|
-
* limitations under the License.
|
|
146
|
-
*/
|
|
147
83
|
var J = !1, pe = !1;
|
|
148
84
|
function ye(t, n) {
|
|
149
85
|
if (!n)
|
|
@@ -204,45 +140,13 @@ function Tt() {
|
|
|
204
140
|
throw new Error("Expected value to be defined");
|
|
205
141
|
return t;
|
|
206
142
|
}
|
|
207
|
-
/**
|
|
208
|
-
* @license
|
|
209
|
-
* Copyright 2018 The Incremental DOM Authors. All Rights Reserved.
|
|
210
|
-
*
|
|
211
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
212
|
-
* you may not use this file except in compliance with the License.
|
|
213
|
-
* You may obtain a copy of the License at
|
|
214
|
-
*
|
|
215
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
216
|
-
*
|
|
217
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
218
|
-
* distributed under the License is distributed on an "AS-IS" BASIS,
|
|
219
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
220
|
-
* See the License for the specific language governing permissions and
|
|
221
|
-
* limitations under the License.
|
|
222
|
-
*/
|
|
223
143
|
var M = {
|
|
224
144
|
nodesCreated: null,
|
|
225
145
|
nodesDeleted: null
|
|
226
146
|
};
|
|
227
|
-
/**
|
|
228
|
-
* @license
|
|
229
|
-
* Copyright 2018 The Incremental DOM Authors. All Rights Reserved.
|
|
230
|
-
*
|
|
231
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
232
|
-
* you may not use this file except in compliance with the License.
|
|
233
|
-
* You may obtain a copy of the License at
|
|
234
|
-
*
|
|
235
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
236
|
-
*
|
|
237
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
238
|
-
* distributed under the License is distributed on an "AS-IS" BASIS,
|
|
239
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
240
|
-
* See the License for the specific language governing permissions and
|
|
241
|
-
* limitations under the License.
|
|
242
|
-
*/
|
|
243
147
|
var at = (
|
|
244
148
|
/** @class */
|
|
245
|
-
function() {
|
|
149
|
+
(function() {
|
|
246
150
|
function t() {
|
|
247
151
|
this.created = [], this.deleted = [];
|
|
248
152
|
}
|
|
@@ -253,24 +157,8 @@ function Tt() {
|
|
|
253
157
|
}, t.prototype.notifyChanges = function() {
|
|
254
158
|
M.nodesCreated && this.created.length > 0 && M.nodesCreated(this.created), M.nodesDeleted && this.deleted.length > 0 && M.nodesDeleted(this.deleted);
|
|
255
159
|
}, t;
|
|
256
|
-
}()
|
|
160
|
+
})()
|
|
257
161
|
);
|
|
258
|
-
/**
|
|
259
|
-
* @license
|
|
260
|
-
* Copyright 2018 The Incremental DOM Authors. All Rights Reserved.
|
|
261
|
-
*
|
|
262
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
263
|
-
* you may not use this file except in compliance with the License.
|
|
264
|
-
* You may obtain a copy of the License at
|
|
265
|
-
*
|
|
266
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
267
|
-
*
|
|
268
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
269
|
-
* distributed under the License is distributed on an "AS-IS" BASIS,
|
|
270
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
271
|
-
* See the License for the specific language governing permissions and
|
|
272
|
-
* limitations under the License.
|
|
273
|
-
*/
|
|
274
162
|
function ot(t) {
|
|
275
163
|
return t.nodeType === 11 || t.nodeType === 9;
|
|
276
164
|
}
|
|
@@ -309,25 +197,9 @@ function Tt() {
|
|
|
309
197
|
t.insertBefore(d, l), d = h;
|
|
310
198
|
}
|
|
311
199
|
}
|
|
312
|
-
/**
|
|
313
|
-
* @license
|
|
314
|
-
* Copyright 2018 The Incremental DOM Authors. All Rights Reserved.
|
|
315
|
-
*
|
|
316
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
317
|
-
* you may not use this file except in compliance with the License.
|
|
318
|
-
* You may obtain a copy of the License at
|
|
319
|
-
*
|
|
320
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
321
|
-
*
|
|
322
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
323
|
-
* distributed under the License is distributed on an "AS-IS" BASIS,
|
|
324
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
325
|
-
* See the License for the specific language governing permissions and
|
|
326
|
-
* limitations under the License.
|
|
327
|
-
*/
|
|
328
200
|
var ft = (
|
|
329
201
|
/** @class */
|
|
330
|
-
function() {
|
|
202
|
+
(function() {
|
|
331
203
|
function t(n, a, l) {
|
|
332
204
|
this._attrsArr = null, this.staticsApplied = !1, this.nameOrCtor = n, this.key = a, this.text = l;
|
|
333
205
|
}
|
|
@@ -337,7 +209,7 @@ function Tt() {
|
|
|
337
209
|
}, t.prototype.getAttrsArr = function(n) {
|
|
338
210
|
return this._attrsArr || (this._attrsArr = new Array(n));
|
|
339
211
|
}, t;
|
|
340
|
-
}()
|
|
212
|
+
})()
|
|
341
213
|
);
|
|
342
214
|
function he(t, n, a, l) {
|
|
343
215
|
var d = new ft(n, a, l);
|
|
@@ -376,22 +248,6 @@ function Tt() {
|
|
|
376
248
|
d[y] = S, d[y + 1] = w;
|
|
377
249
|
}
|
|
378
250
|
}
|
|
379
|
-
/**
|
|
380
|
-
* @license
|
|
381
|
-
* Copyright 2018 The Incremental DOM Authors. All Rights Reserved.
|
|
382
|
-
*
|
|
383
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
384
|
-
* you may not use this file except in compliance with the License.
|
|
385
|
-
* You may obtain a copy of the License at
|
|
386
|
-
*
|
|
387
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
388
|
-
*
|
|
389
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
390
|
-
* distributed under the License is distributed on an "AS-IS" BASIS,
|
|
391
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
392
|
-
* See the License for the specific language governing permissions and
|
|
393
|
-
* limitations under the License.
|
|
394
|
-
*/
|
|
395
251
|
function bt(t, n) {
|
|
396
252
|
return t === "svg" ? "http://www.w3.org/2000/svg" : t === "math" ? "http://www.w3.org/1998/Math/MathML" : n == null || H(n).nameOrCtor === "foreignObject" ? null : n.namespaceURI;
|
|
397
253
|
}
|
|
@@ -409,22 +265,6 @@ function Tt() {
|
|
|
409
265
|
var n = t.createTextNode("");
|
|
410
266
|
return he(n, "#text", null), n;
|
|
411
267
|
}
|
|
412
|
-
/**
|
|
413
|
-
* @license
|
|
414
|
-
* Copyright 2018 The Incremental DOM Authors. All Rights Reserved.
|
|
415
|
-
*
|
|
416
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
417
|
-
* you may not use this file except in compliance with the License.
|
|
418
|
-
* You may obtain a copy of the License at
|
|
419
|
-
*
|
|
420
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
421
|
-
*
|
|
422
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
423
|
-
* distributed under the License is distributed on an "AS-IS" BASIS,
|
|
424
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
425
|
-
* See the License for the specific language governing permissions and
|
|
426
|
-
* limitations under the License.
|
|
427
|
-
*/
|
|
428
268
|
var q = null, v = null, x = null, T = null, ie = [], re = [];
|
|
429
269
|
function ae() {
|
|
430
270
|
return re;
|
|
@@ -508,22 +348,6 @@ function Tt() {
|
|
|
508
348
|
function Ot() {
|
|
509
349
|
process.env.NODE_ENV !== "production" && (it("skip", v), se(!0)), v = x.lastChild;
|
|
510
350
|
}
|
|
511
|
-
/**
|
|
512
|
-
* @license
|
|
513
|
-
* Copyright 2018 The Incremental DOM Authors. All Rights Reserved.
|
|
514
|
-
*
|
|
515
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
516
|
-
* you may not use this file except in compliance with the License.
|
|
517
|
-
* You may obtain a copy of the License at
|
|
518
|
-
*
|
|
519
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
520
|
-
*
|
|
521
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
522
|
-
* distributed under the License is distributed on an "AS-IS" BASIS,
|
|
523
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
524
|
-
* See the License for the specific language governing permissions and
|
|
525
|
-
* limitations under the License.
|
|
526
|
-
*/
|
|
527
351
|
var je = 3, I = r();
|
|
528
352
|
function Dt(t, n, a) {
|
|
529
353
|
if (n.staticsApplied = !0, !(!a || !a.length)) {
|
|
@@ -615,22 +439,6 @@ function Tt() {
|
|
|
615
439
|
}
|
|
616
440
|
return n;
|
|
617
441
|
}
|
|
618
|
-
/**
|
|
619
|
-
* @license
|
|
620
|
-
* Copyright 2018 The Incremental DOM Authors. All Rights Reserved.
|
|
621
|
-
*
|
|
622
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
623
|
-
* you may not use this file except in compliance with the License.
|
|
624
|
-
* You may obtain a copy of the License at
|
|
625
|
-
*
|
|
626
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
627
|
-
*
|
|
628
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
629
|
-
* distributed under the License is distributed on an "AS-IS" BASIS,
|
|
630
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
631
|
-
* See the License for the specific language governing permissions and
|
|
632
|
-
* limitations under the License.
|
|
633
|
-
*/
|
|
634
442
|
return g.applyAttr = V, g.applyProp = xe, g.attributes = Z, g.close = Be, g.currentElement = St, g.currentPointer = At, g.open = $e, g.patch = Ee, g.patchInner = Ee, g.patchOuter = _t, g.skip = Ot, g.skipNode = fe, g.getKey = mt, g.clearCache = De, g.importNode = Oe, g.isDataInitialized = gt, g.notifications = M, g.symbols = e, g.attr = kt, g.elementClose = Te, g.elementOpen = ge, g.elementOpenEnd = It, g.elementOpenStart = Pt, g.elementVoid = Lt, g.text = Ft, g.key = Et, g;
|
|
635
443
|
}
|
|
636
444
|
var A = Tt();
|
|
@@ -638,7 +446,7 @@ function Ve(e) {
|
|
|
638
446
|
let s = A.currentPointer();
|
|
639
447
|
return s instanceof Comment && s.data !== e ? s.data = e : (s = document.createComment(e), A.currentElement().appendChild(s)), A.skipNode(), s;
|
|
640
448
|
}
|
|
641
|
-
const U = Symbol("ComponentMetadata"), E = Object.freeze({
|
|
449
|
+
const U = /* @__PURE__ */ Symbol("ComponentMetadata"), E = Object.freeze({
|
|
642
450
|
has(e, s) {
|
|
643
451
|
return !!(e[U] && Object.prototype.hasOwnProperty.call(e[U], s));
|
|
644
452
|
},
|
|
@@ -648,7 +456,7 @@ const U = Symbol("ComponentMetadata"), E = Object.freeze({
|
|
|
648
456
|
get(e, s, i) {
|
|
649
457
|
return e[U] && e[U][s] || i;
|
|
650
458
|
}
|
|
651
|
-
}), We = Symbol("ds-web-components:pragma:listeners-attached"), qe = "idom-pragma:content-begin", me = "idom-pragma:content-end";
|
|
459
|
+
}), We = /* @__PURE__ */ Symbol("ds-web-components:pragma:listeners-attached"), qe = "idom-pragma:content-begin", me = "idom-pragma:content-end";
|
|
652
460
|
function ve(e) {
|
|
653
461
|
for (const s of e)
|
|
654
462
|
if (typeof s == "function")
|
|
@@ -706,7 +514,7 @@ function as(e) {
|
|
|
706
514
|
}
|
|
707
515
|
};
|
|
708
516
|
}
|
|
709
|
-
const He = Symbol("Component Attribute Bindings"), K = Symbol("Component Class Bindings"), be = Symbol("Component Style Bindings"), Ut = {
|
|
517
|
+
const He = /* @__PURE__ */ Symbol("Component Attribute Bindings"), K = /* @__PURE__ */ Symbol("Component Class Bindings"), be = /* @__PURE__ */ Symbol("Component Style Bindings"), Ut = {
|
|
710
518
|
__initialized: !1,
|
|
711
519
|
__observer: null,
|
|
712
520
|
__queuedUpdate: null,
|