@knime/product-features 2.2.0 → 2.2.2
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 +18 -0
- package/dist/dataTransfer.js +3 -3
- package/dist/{dist-D6REgugT.js → dist-DvDWkkNg.js} +41 -12
- package/dist/dist-DvDWkkNg.js.map +1 -0
- package/dist/{rfcErrors-DZsECPcA.js → rfcErrors-B2gYd5aG.js} +2 -2
- package/dist/{rfcErrors-DZsECPcA.js.map → rfcErrors-B2gYd5aG.js.map} +1 -1
- package/dist/rfcErrors.js +1 -1
- package/dist/src/dataTransfer/index.d.ts +1 -0
- package/dist/src/dataTransfer/index.d.ts.map +1 -1
- package/dist/toasts.js +58 -4
- package/dist/toasts.js.map +1 -1
- package/dist/versions.js +1 -1
- package/package.json +4 -4
- package/dist/dist-D6REgugT.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @knime/product-features
|
|
2
2
|
|
|
3
|
+
## 2.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 287e612: KDS-998: Add drag handle icon
|
|
8
|
+
|
|
9
|
+
- `data-transfer`: consolidate `ProgressItem`, `ProgressList`, and `CollapsiblePanel` exports under a single barrel.
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [287e612]
|
|
12
|
+
- @knime/kds-styles@6.7.1
|
|
13
|
+
- @knime/kds-components@6.7.1
|
|
14
|
+
|
|
15
|
+
## 2.2.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 55cb50d: - `data-transfer`: export `ProgressItem` and `ProgressList` components (and their types `ProgressItemProps`, `ProgressItemBadge`, `ProgressItemAction`) so consuming repos can use them directly.
|
|
20
|
+
|
|
3
21
|
## 2.2.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/dist/dataTransfer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.js";
|
|
2
|
-
import { a as getFileExtension, c as promise_exports, l as sleep, o as getFileMimeType, r as formatFileSize, s as knimeFileFormats } from "./dist-
|
|
3
|
-
import { t as rfcErrors } from "./rfcErrors-
|
|
2
|
+
import { a as getFileExtension, c as promise_exports, l as sleep, o as getFileMimeType, r as formatFileSize, s as knimeFileFormats } from "./dist-DvDWkkNg.js";
|
|
3
|
+
import { t as rfcErrors } from "./rfcErrors-B2gYd5aG.js";
|
|
4
4
|
import { Fragment, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, reactive, readonly, ref, renderList, renderSlot, toDisplayString, unref, useId, useModel, vShow, watch, withCtx, withDirectives } from "vue";
|
|
5
5
|
import { KdsBadge, KdsButton, KdsIcon, KdsLoadingSkeleton, KdsProgressBar, vKdsTooltip } from "@knime/kds-components";
|
|
6
6
|
import { FetchError, ofetch } from "ofetch";
|
|
@@ -1288,6 +1288,6 @@ var useDownloadArtifact = (options = {}) => {
|
|
|
1288
1288
|
};
|
|
1289
1289
|
};
|
|
1290
1290
|
//#endregion
|
|
1291
|
-
export { API_BASE_URL, DownloadProgressPanel_default as DownloadProgressPanel, UploadProgressPanel_default as UploadProgressPanel, createHttpClient, defaultConfig, useDownloadArtifact, useFileUpload };
|
|
1291
|
+
export { API_BASE_URL, CollapsiblePanel_default as CollapsiblePanel, DownloadProgressPanel_default as DownloadProgressPanel, ProgressItem_default as ProgressItem, ProgressList_default as ProgressList, UploadProgressPanel_default as UploadProgressPanel, createHttpClient, defaultConfig, useDownloadArtifact, useFileUpload };
|
|
1292
1292
|
|
|
1293
1293
|
//# sourceMappingURL=dataTransfer.js.map
|
|
@@ -112,8 +112,8 @@ function prettyBytes(number, options) {
|
|
|
112
112
|
return applyFixedWidth(result, options.fixedWidth);
|
|
113
113
|
}
|
|
114
114
|
//#endregion
|
|
115
|
-
//#region ../../node_modules/.pnpm/dompurify@3.4.
|
|
116
|
-
/*! @license DOMPurify 3.4.
|
|
115
|
+
//#region ../../node_modules/.pnpm/dompurify@3.4.13/node_modules/dompurify/dist/purify.es.mjs
|
|
116
|
+
/*! @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 */
|
|
117
117
|
function _arrayLikeToArray(r, a) {
|
|
118
118
|
(null == a || a > r.length) && (a = r.length);
|
|
119
119
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
@@ -1063,7 +1063,7 @@ var _resolveSetOption = function _resolveSetOption(cfg, key, fallback, options)
|
|
|
1063
1063
|
function createDOMPurify() {
|
|
1064
1064
|
let window = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal();
|
|
1065
1065
|
const DOMPurify = (root) => createDOMPurify(root);
|
|
1066
|
-
DOMPurify.version = "3.4.
|
|
1066
|
+
DOMPurify.version = "3.4.13";
|
|
1067
1067
|
DOMPurify.removed = [];
|
|
1068
1068
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
1069
1069
|
DOMPurify.isSupported = false;
|
|
@@ -1087,6 +1087,7 @@ function createDOMPurify() {
|
|
|
1087
1087
|
const getAttributes = lookupGetter(ElementPrototype, "attributes");
|
|
1088
1088
|
const getNodeType = Node && Node.prototype ? lookupGetter(Node.prototype, "nodeType") : null;
|
|
1089
1089
|
const getNodeName = Node && Node.prototype ? lookupGetter(Node.prototype, "nodeName") : null;
|
|
1090
|
+
const getOwnerDocument = Node && Node.prototype ? lookupGetter(Node.prototype, "ownerDocument") : null;
|
|
1090
1091
|
if (typeof HTMLTemplateElement === "function") {
|
|
1091
1092
|
const template = document.createElement("template");
|
|
1092
1093
|
if (template.content && template.content.ownerDocument) document = template.content.ownerDocument;
|
|
@@ -1727,7 +1728,8 @@ function createDOMPurify() {
|
|
|
1727
1728
|
* @return The created NodeIterator
|
|
1728
1729
|
*/
|
|
1729
1730
|
const _createNodeIterator = function _createNodeIterator(root) {
|
|
1730
|
-
|
|
1731
|
+
const doc = getOwnerDocument ? getOwnerDocument(root) : root.ownerDocument;
|
|
1732
|
+
return createNodeIterator.call(doc || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
|
|
1731
1733
|
};
|
|
1732
1734
|
/**
|
|
1733
1735
|
* Replace template expression syntax (mustache, ERB, template
|
|
@@ -1765,7 +1767,8 @@ function createDOMPurify() {
|
|
|
1765
1767
|
const _scrubTemplateExpressions2 = function _scrubTemplateExpressions(node) {
|
|
1766
1768
|
var _node$querySelectorAl;
|
|
1767
1769
|
node.normalize();
|
|
1768
|
-
const
|
|
1770
|
+
const doc = getOwnerDocument ? getOwnerDocument(node) : node.ownerDocument;
|
|
1771
|
+
const walker = createNodeIterator.call(doc || node, node, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
|
|
1769
1772
|
let currentNode = walker.nextNode();
|
|
1770
1773
|
while (currentNode) {
|
|
1771
1774
|
currentNode.data = _stripTemplateExpressions(currentNode.data);
|
|
@@ -1872,7 +1875,7 @@ function createDOMPurify() {
|
|
|
1872
1875
|
* @param tagName the node's transformCaseFunc'd tag name
|
|
1873
1876
|
* @return true if the node was removed, false if kept
|
|
1874
1877
|
*/
|
|
1875
|
-
const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName) {
|
|
1878
|
+
const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName, root) {
|
|
1876
1879
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
1877
1880
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) return false;
|
|
1878
1881
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) return false;
|
|
@@ -1883,7 +1886,7 @@ function createDOMPurify() {
|
|
|
1883
1886
|
if (childNodes && parentNode) {
|
|
1884
1887
|
const childCount = childNodes.length;
|
|
1885
1888
|
for (let i = childCount - 1; i >= 0; --i) {
|
|
1886
|
-
const hoisted =
|
|
1889
|
+
const hoisted = currentNode === root ? cloneNode(childNodes[i], true) : childNodes[i];
|
|
1887
1890
|
parentNode.insertBefore(hoisted, getNextSibling(currentNode));
|
|
1888
1891
|
}
|
|
1889
1892
|
}
|
|
@@ -1892,6 +1895,24 @@ function createDOMPurify() {
|
|
|
1892
1895
|
return true;
|
|
1893
1896
|
};
|
|
1894
1897
|
/**
|
|
1898
|
+
* Fork a hook-mutable allowlist off its shared binding the first time a
|
|
1899
|
+
* (possibly lazily-installed) uponSanitize* hook is about to see it, so the
|
|
1900
|
+
* hook cannot widen the per-instance default or the setConfig binding by
|
|
1901
|
+
* reference and leak past the call. Returns the set unchanged once it is
|
|
1902
|
+
* already call-local, so repeated calls across elements are idempotent.
|
|
1903
|
+
*
|
|
1904
|
+
* @param hookList the uponSanitize* hook array for this event
|
|
1905
|
+
* @param set the current ALLOWED_TAGS / ALLOWED_ATTR binding
|
|
1906
|
+
* @param defaultSet the per-instance DEFAULT_ALLOWED_* constant
|
|
1907
|
+
* @param setConfigSet the captured setConfig() binding, or null
|
|
1908
|
+
* @return a call-local clone if a hook is present and set is still shared,
|
|
1909
|
+
* else set unchanged
|
|
1910
|
+
*/
|
|
1911
|
+
const _forkSharedAllowlist = function _forkSharedAllowlist(hookList, set, defaultSet, setConfigSet) {
|
|
1912
|
+
if (hookList.length === 0) return set;
|
|
1913
|
+
return set === defaultSet || set === setConfigSet ? clone(set) : set;
|
|
1914
|
+
};
|
|
1915
|
+
/**
|
|
1895
1916
|
* _sanitizeElements
|
|
1896
1917
|
*
|
|
1897
1918
|
* @protect nodeName
|
|
@@ -1902,23 +1923,30 @@ function createDOMPurify() {
|
|
|
1902
1923
|
*/
|
|
1903
1924
|
const _sanitizeElements = function _sanitizeElements(currentNode, root) {
|
|
1904
1925
|
_executeHooks(hooks.beforeSanitizeElements, currentNode, null);
|
|
1905
|
-
if (currentNode !== root && getParentNode(currentNode) === null)
|
|
1926
|
+
if (currentNode !== root && getParentNode(currentNode) === null) {
|
|
1927
|
+
if (IN_PLACE) _neutralizeSubtree(currentNode);
|
|
1928
|
+
return true;
|
|
1929
|
+
}
|
|
1906
1930
|
if (_isClobbered(currentNode)) {
|
|
1907
1931
|
_forceRemove(currentNode);
|
|
1908
1932
|
return true;
|
|
1909
1933
|
}
|
|
1910
1934
|
const tagName = transformCaseFunc(getNodeName ? getNodeName(currentNode) : currentNode.nodeName);
|
|
1935
|
+
ALLOWED_TAGS = _forkSharedAllowlist(hooks.uponSanitizeElement, ALLOWED_TAGS, DEFAULT_ALLOWED_TAGS, SET_CONFIG_ALLOWED_TAGS);
|
|
1911
1936
|
_executeHooks(hooks.uponSanitizeElement, currentNode, {
|
|
1912
1937
|
tagName,
|
|
1913
1938
|
allowedTags: ALLOWED_TAGS
|
|
1914
1939
|
});
|
|
1915
|
-
if (currentNode !== root && getParentNode(currentNode) === null)
|
|
1940
|
+
if (currentNode !== root && getParentNode(currentNode) === null) {
|
|
1941
|
+
if (IN_PLACE) _neutralizeSubtree(currentNode);
|
|
1942
|
+
return true;
|
|
1943
|
+
}
|
|
1916
1944
|
if (_isUnsafeNode(currentNode, tagName)) {
|
|
1917
1945
|
_forceRemove(currentNode);
|
|
1918
1946
|
return true;
|
|
1919
1947
|
}
|
|
1920
1948
|
if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
|
|
1921
|
-
const removed = _sanitizeDisallowedNode(currentNode, tagName);
|
|
1949
|
+
const removed = _sanitizeDisallowedNode(currentNode, tagName, root);
|
|
1922
1950
|
if (removed === false) _executeHooks(hooks.afterSanitizeElements, currentNode, null);
|
|
1923
1951
|
return removed;
|
|
1924
1952
|
}
|
|
@@ -2042,6 +2070,7 @@ function createDOMPurify() {
|
|
|
2042
2070
|
_executeHooks(hooks.beforeSanitizeAttributes, currentNode, null);
|
|
2043
2071
|
const attributes = currentNode.attributes;
|
|
2044
2072
|
if (!attributes || _isClobbered(currentNode)) return;
|
|
2073
|
+
ALLOWED_ATTR = _forkSharedAllowlist(hooks.uponSanitizeAttribute, ALLOWED_ATTR, DEFAULT_ALLOWED_ATTR, SET_CONFIG_ALLOWED_ATTR);
|
|
2045
2074
|
const hookEvent = {
|
|
2046
2075
|
attrName: "",
|
|
2047
2076
|
attrValue: "",
|
|
@@ -2232,8 +2261,8 @@ function createDOMPurify() {
|
|
|
2232
2261
|
}
|
|
2233
2262
|
if (body && FORCE_BODY) _forceRemove(body.firstChild);
|
|
2234
2263
|
const walkRoot = inPlace ? dirty : body;
|
|
2235
|
-
const nodeIterator = _createNodeIterator(walkRoot);
|
|
2236
2264
|
try {
|
|
2265
|
+
const nodeIterator = _createNodeIterator(walkRoot);
|
|
2237
2266
|
while (currentNode = nodeIterator.nextNode()) {
|
|
2238
2267
|
_sanitizeElements(currentNode, walkRoot);
|
|
2239
2268
|
_sanitizeAttributes(currentNode);
|
|
@@ -2646,4 +2675,4 @@ Object.values({
|
|
|
2646
2675
|
//#endregion
|
|
2647
2676
|
export { getFileExtension as a, promise_exports as c, formatLocalDateTimeString as i, sleep as l, formatDateTimeString as n, getFileMimeType as o, formatFileSize as r, knimeFileFormats as s, capitalize as t, truncateString_default as u };
|
|
2648
2677
|
|
|
2649
|
-
//# sourceMappingURL=dist-
|
|
2678
|
+
//# sourceMappingURL=dist-DvDWkkNg.js.map
|