@knime/kds-table 6.6.1 → 6.7.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @knime/kds-table
2
2
 
3
+ ## 6.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [287e612]
8
+ - @knime/kds-styles@6.7.1
9
+ - @knime/kds-components@6.7.1
10
+
11
+ ## 6.7.0
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [c7da181]
16
+ - Updated dependencies [4b7f2d1]
17
+ - Updated dependencies [9fd0c13]
18
+ - @knime/kds-components@6.7.0
19
+ - @knime/utils@2.0.1
20
+ - @knime/kds-styles@6.7.0
21
+
3
22
  ## 6.6.1
4
23
 
5
24
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1600,8 +1600,8 @@ var oe = class extends b {
1600
1600
  }
1601
1601
  };
1602
1602
  //#endregion
1603
- //#region ../../node_modules/.pnpm/dompurify@3.4.12/node_modules/dompurify/dist/purify.es.mjs
1604
- /*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE */
1603
+ //#region ../../node_modules/.pnpm/dompurify@3.4.13/node_modules/dompurify/dist/purify.es.mjs
1604
+ /*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */
1605
1605
  function _arrayLikeToArray(r, a) {
1606
1606
  (null == a || a > r.length) && (a = r.length);
1607
1607
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
@@ -2551,7 +2551,7 @@ var _resolveSetOption = function _resolveSetOption(cfg, key, fallback, options)
2551
2551
  function createDOMPurify() {
2552
2552
  let window = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
2553
2553
  const DOMPurify = (root) => createDOMPurify(root);
2554
- DOMPurify.version = "3.4.12";
2554
+ DOMPurify.version = "3.4.13";
2555
2555
  DOMPurify.removed = [];
2556
2556
  if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
2557
2557
  DOMPurify.isSupported = false;
@@ -2575,6 +2575,7 @@ function createDOMPurify() {
2575
2575
  const getAttributes = lookupGetter(ElementPrototype, "attributes");
2576
2576
  const getNodeType = Node && Node.prototype ? lookupGetter(Node.prototype, "nodeType") : null;
2577
2577
  const getNodeName = Node && Node.prototype ? lookupGetter(Node.prototype, "nodeName") : null;
2578
+ const getOwnerDocument = Node && Node.prototype ? lookupGetter(Node.prototype, "ownerDocument") : null;
2578
2579
  if (typeof HTMLTemplateElement === "function") {
2579
2580
  const template = document.createElement("template");
2580
2581
  if (template.content && template.content.ownerDocument) document = template.content.ownerDocument;
@@ -3215,7 +3216,8 @@ function createDOMPurify() {
3215
3216
  * @return The created NodeIterator
3216
3217
  */
3217
3218
  const _createNodeIterator = function _createNodeIterator(root) {
3218
- return createNodeIterator.call(root.ownerDocument || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
3219
+ const doc = getOwnerDocument ? getOwnerDocument(root) : root.ownerDocument;
3220
+ return createNodeIterator.call(doc || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
3219
3221
  };
3220
3222
  /**
3221
3223
  * Replace template expression syntax (mustache, ERB, template
@@ -3253,7 +3255,8 @@ function createDOMPurify() {
3253
3255
  const _scrubTemplateExpressions2 = function _scrubTemplateExpressions(node) {
3254
3256
  var _node$querySelectorAl;
3255
3257
  node.normalize();
3256
- const walker = createNodeIterator.call(node.ownerDocument || node, node, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
3258
+ const doc = getOwnerDocument ? getOwnerDocument(node) : node.ownerDocument;
3259
+ const walker = createNodeIterator.call(doc || node, node, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
3257
3260
  let currentNode = walker.nextNode();
3258
3261
  while (currentNode) {
3259
3262
  currentNode.data = _stripTemplateExpressions(currentNode.data);
@@ -3360,7 +3363,7 @@ function createDOMPurify() {
3360
3363
  * @param tagName the node's transformCaseFunc'd tag name
3361
3364
  * @return true if the node was removed, false if kept
3362
3365
  */
3363
- const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName) {
3366
+ const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName, root) {
3364
3367
  if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
3365
3368
  if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false;
3366
3369
  if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false;
@@ -3371,7 +3374,7 @@ function createDOMPurify() {
3371
3374
  if (childNodes && parentNode) {
3372
3375
  const childCount = childNodes.length;
3373
3376
  for (let i = childCount - 1; i >= 0; --i) {
3374
- const hoisted = IN_PLACE ? childNodes[i] : cloneNode(childNodes[i], true);
3377
+ const hoisted = currentNode === root ? cloneNode(childNodes[i], true) : childNodes[i];
3375
3378
  parentNode.insertBefore(hoisted, getNextSibling(currentNode));
3376
3379
  }
3377
3380
  }
@@ -3380,6 +3383,24 @@ function createDOMPurify() {
3380
3383
  return true;
3381
3384
  };
3382
3385
  /**
3386
+ * Fork a hook-mutable allowlist off its shared binding the first time a
3387
+ * (possibly lazily-installed) uponSanitize* hook is about to see it, so the
3388
+ * hook cannot widen the per-instance default or the setConfig binding by
3389
+ * reference and leak past the call. Returns the set unchanged once it is
3390
+ * already call-local, so repeated calls across elements are idempotent.
3391
+ *
3392
+ * @param hookList the uponSanitize* hook array for this event
3393
+ * @param set the current ALLOWED_TAGS / ALLOWED_ATTR binding
3394
+ * @param defaultSet the per-instance DEFAULT_ALLOWED_* constant
3395
+ * @param setConfigSet the captured setConfig() binding, or null
3396
+ * @return a call-local clone if a hook is present and set is still shared,
3397
+ * else set unchanged
3398
+ */
3399
+ const _forkSharedAllowlist = function _forkSharedAllowlist(hookList, set, defaultSet, setConfigSet) {
3400
+ if (hookList.length === 0) return set;
3401
+ return set === defaultSet || set === setConfigSet ? clone(set) : set;
3402
+ };
3403
+ /**
3383
3404
  * _sanitizeElements
3384
3405
  *
3385
3406
  * @protect nodeName
@@ -3390,23 +3411,30 @@ function createDOMPurify() {
3390
3411
  */
3391
3412
  const _sanitizeElements = function _sanitizeElements(currentNode, root) {
3392
3413
  _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
3393
- if (currentNode !== root && getParentNode(currentNode) === null) return true;
3414
+ if (currentNode !== root && getParentNode(currentNode) === null) {
3415
+ if (IN_PLACE) _neutralizeSubtree(currentNode);
3416
+ return true;
3417
+ }
3394
3418
  if (_isClobbered(currentNode)) {
3395
3419
  _forceRemove(currentNode);
3396
3420
  return true;
3397
3421
  }
3398
3422
  const tagName = transformCaseFunc(getNodeName ? getNodeName(currentNode) : currentNode.nodeName);
3423
+ ALLOWED_TAGS = _forkSharedAllowlist(hooks.uponSanitizeElement, ALLOWED_TAGS, DEFAULT_ALLOWED_TAGS, SET_CONFIG_ALLOWED_TAGS);
3399
3424
  _executeHooks(hooks.uponSanitizeElement, currentNode, {
3400
3425
  tagName,
3401
3426
  allowedTags: ALLOWED_TAGS
3402
3427
  });
3403
- if (currentNode !== root && getParentNode(currentNode) === null) return true;
3428
+ if (currentNode !== root && getParentNode(currentNode) === null) {
3429
+ if (IN_PLACE) _neutralizeSubtree(currentNode);
3430
+ return true;
3431
+ }
3404
3432
  if (_isUnsafeNode(currentNode, tagName)) {
3405
3433
  _forceRemove(currentNode);
3406
3434
  return true;
3407
3435
  }
3408
3436
  if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
3409
- const removed = _sanitizeDisallowedNode(currentNode, tagName);
3437
+ const removed = _sanitizeDisallowedNode(currentNode, tagName, root);
3410
3438
  if (removed === false) _executeHooks(hooks.afterSanitizeElements, currentNode, null);
3411
3439
  return removed;
3412
3440
  }
@@ -3530,6 +3558,7 @@ function createDOMPurify() {
3530
3558
  _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
3531
3559
  const attributes = currentNode.attributes;
3532
3560
  if (!attributes || _isClobbered(currentNode)) return;
3561
+ ALLOWED_ATTR = _forkSharedAllowlist(hooks.uponSanitizeAttribute, ALLOWED_ATTR, DEFAULT_ALLOWED_ATTR, SET_CONFIG_ALLOWED_ATTR);
3533
3562
  const hookEvent = {
3534
3563
  attrName: "",
3535
3564
  attrValue: "",
@@ -3720,8 +3749,8 @@ function createDOMPurify() {
3720
3749
  }
3721
3750
  if (body && FORCE_BODY) _forceRemove(body.firstChild);
3722
3751
  const walkRoot = inPlace ? dirty : body;
3723
- const nodeIterator = _createNodeIterator(walkRoot);
3724
3752
  try {
3753
+ const nodeIterator = _createNodeIterator(walkRoot);
3725
3754
  while (currentNode = nodeIterator.nextNode()) {
3726
3755
  _sanitizeElements(currentNode, walkRoot);
3727
3756
  _sanitizeAttributes(currentNode);