@rh-support/components 2.1.81 → 2.1.83
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/lib/esm/DropDownList/withMulti.d.ts +1 -1
- package/lib/esm/DropDownList/withMulti.d.ts.map +1 -1
- package/lib/esm/DropDownList/withMulti.js +1 -0
- package/lib/esm/LoadingDots/LoadingDots.d.ts.map +1 -1
- package/lib/esm/LoadingDots/LoadingDots.js +1 -1
- package/lib/esm/MarkdownEditor/MarkdownEditor.d.ts.map +1 -1
- package/lib/esm/MarkdownEditor/MarkdownEditor.js +1 -2
- package/lib/esm/MarkdownEditor/markdownEditor.css +0 -1
- package/package.json +15 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IDropdownListBasePropsForMultiSelect, IMultiSelectOnlyProps } from './types';
|
|
3
3
|
export declare function useMulti<OptionType, DropdownPropsType extends IDropdownListBasePropsForMultiSelect<OptionType>>(props: DropdownPropsType & IMultiSelectOnlyProps<OptionType>): DropdownPropsType;
|
|
4
|
-
export declare function withMulti<DropdownPropsType extends IDropdownListBasePropsForMultiSelect<OptionType>, OptionType>(WrappedComponent: React.ComponentType<DropdownPropsType>): React.ForwardRefExoticComponent<React.
|
|
4
|
+
export declare function withMulti<DropdownPropsType extends IDropdownListBasePropsForMultiSelect<OptionType>, OptionType>(WrappedComponent: React.ComponentType<DropdownPropsType>): React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
|
|
5
5
|
//# sourceMappingURL=withMulti.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withMulti.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/withMulti.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,oCAAoC,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAMtF,wBAAgB,QAAQ,CAAC,UAAU,EAAE,iBAAiB,SAAS,oCAAoC,CAAC,UAAU,CAAC,EAC3G,KAAK,EAAE,iBAAiB,GAAG,qBAAqB,CAAC,UAAU,CAAC,GAC7D,iBAAiB,CA8BnB;AAED,wBAAgB,SAAS,CAAC,iBAAiB,SAAS,oCAAoC,CAAC,UAAU,CAAC,EAAE,UAAU,EAC5G,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"withMulti.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/withMulti.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,oCAAoC,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAMtF,wBAAgB,QAAQ,CAAC,UAAU,EAAE,iBAAiB,SAAS,oCAAoC,CAAC,UAAU,CAAC,EAC3G,KAAK,EAAE,iBAAiB,GAAG,qBAAqB,CAAC,UAAU,CAAC,GAC7D,iBAAiB,CA8BnB;AAED,wBAAgB,SAAS,CAAC,iBAAiB,SAAS,oCAAoC,CAAC,UAAU,CAAC,EAAE,UAAU,EAC5G,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,iEAa3D"}
|
|
@@ -37,6 +37,7 @@ export function useMulti(props) {
|
|
|
37
37
|
return Object.assign(Object.assign({}, rest), { multiSelect: true, onChange: onChangeLocal, selectedItem: null, onOuterClick: onOuterClickLocal, isSelectedItem: isSelectedItemLocal });
|
|
38
38
|
}
|
|
39
39
|
export function withMulti(WrappedComponent) {
|
|
40
|
+
// @ts-ignore
|
|
40
41
|
const MultiSelectDropdown = forwardRef((props, ref) => (React.createElement(WrappedComponent, Object.assign({}, useMulti(props), { ref: ref }))));
|
|
41
42
|
const displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
42
43
|
MultiSelectDropdown.displayName = `withMulti${displayName}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingDots.d.ts","sourceRoot":"","sources":["../../../src/LoadingDots/LoadingDots.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAE3B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,MAAM;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAKD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"LoadingDots.d.ts","sourceRoot":"","sources":["../../../src/LoadingDots/LoadingDots.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAE3B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,MAAM;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAKD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,qBAuBjC;kBAvBQ,WAAW;;;AAyBpB,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@ const defaultProps = {
|
|
|
6
6
|
};
|
|
7
7
|
function LoadingDots(props) {
|
|
8
8
|
return (React.createElement(React.Fragment, null,
|
|
9
|
-
props.show && (React.createElement("div", { className: `loading-dots ${props.className ? props.className : ''}` },
|
|
9
|
+
props.show && (React.createElement("div", { role: "status", "aria-live": "polite", "aria-busy": props.show, className: `loading-dots ${props.className ? props.className : ''}` },
|
|
10
10
|
React.createElement("div", { "aria-hidden": "true" },
|
|
11
11
|
React.createElement("span", null, "."),
|
|
12
12
|
React.createElement("span", null, "."),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownEditor.d.ts","sourceRoot":"","sources":["../../../src/MarkdownEditor/MarkdownEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B,OAAO,EAAE,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EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAClD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,yBAAyB,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD,iBAAiB,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;CACnD;AAuBD,iBAAS,cAAc,CAAC,KAAK,EAAE,cAAc,qBAumB5C;kBAvmBQ,cAAc;;;AA2mBvB,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -20,7 +20,6 @@ import ListUlIcon from '@patternfly/react-icons/dist/js/icons/list-ul-icon';
|
|
|
20
20
|
import QuoteRightIcon from '@patternfly/react-icons/dist/js/icons/quote-right-icon';
|
|
21
21
|
import TrashIcon from '@patternfly/react-icons/dist/js/icons/trash-icon';
|
|
22
22
|
import { emojiPattern, haltEvent, isEmojiPattern, isImageFile } from '@rh-support/utils';
|
|
23
|
-
import cx from 'classnames';
|
|
24
23
|
import DOMPurify from 'dompurify';
|
|
25
24
|
import isEmpty from 'lodash/isEmpty';
|
|
26
25
|
import React, { useEffect, useRef, useState } from 'react';
|
|
@@ -385,7 +384,7 @@ function MarkdownEditor(props) {
|
|
|
385
384
|
React.createElement(ToolbarItem, null,
|
|
386
385
|
React.createElement("a", { className: "pf-v5-c-button pf-m-link pf-m-inline markdown-guidance", rel: "noopener noreferrer", target: "_blank", href: "/articles/4729621", "data-tracking-id": "md-guidance" },
|
|
387
386
|
React.createElement(Trans, null, "Markdown guidance")))))),
|
|
388
|
-
React.createElement("div", { className: "markdown-content" }, !isPreview ? (React.createElement("textarea", Object.assign({}, textAreaProps, { onKeyDown: keydown, placeholder: isPlainModeEnabled ? t(props.plainTextPlaceholder) : t(props.mdPlaceholder), ref: bindTextAreaRef, className:
|
|
387
|
+
React.createElement("div", { className: "markdown-content" }, !isPreview ? (React.createElement("textarea", Object.assign({}, textAreaProps, { onKeyDown: keydown, placeholder: isPlainModeEnabled ? t(props.plainTextPlaceholder) : t(props.mdPlaceholder), ref: bindTextAreaRef, className: `form-control markdown-text-area ${props.textAreaClassName} textArea`, value: mdValue, onChange: textChanged, rows: props.rows || contentRows, style: { height: '313px' } }))) : (React.createElement("div", { className: "markdown-preview-placeholder", style: { height: '313px' } },
|
|
389
388
|
React.createElement("div", { className: "markdown-preview", style: { maxHeight: '313px' } },
|
|
390
389
|
React.createElement("div", { dangerouslySetInnerHTML: {
|
|
391
390
|
__html: DOMPurify.sanitize(previewMDText(mdValue)),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/components",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.83",
|
|
4
4
|
"description": "Contains all reusabel components for support app",
|
|
5
5
|
"author": "Vikas Rathee <vrathee@redhat.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"prepublishOnly": "npm run build"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@cee-eng/hydrajs": "4.17.
|
|
47
|
+
"@cee-eng/hydrajs": "4.17.25",
|
|
48
48
|
"@cee-eng/ui-toolkit": "1.1.8",
|
|
49
|
-
"@patternfly/patternfly": "5.
|
|
50
|
-
"@patternfly/react-core": "5.
|
|
51
|
-
"@patternfly/react-table": "5.
|
|
49
|
+
"@patternfly/patternfly": "5.4.0",
|
|
50
|
+
"@patternfly/react-core": "5.4.0",
|
|
51
|
+
"@patternfly/react-table": "5.4.0",
|
|
52
52
|
"dompurify": "^2.2.6",
|
|
53
53
|
"downshift": "^6.0.5",
|
|
54
54
|
"js-worker-search": "^1.4.1",
|
|
@@ -62,14 +62,16 @@
|
|
|
62
62
|
"use-deep-compare-effect": "^1.6.1"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@cee-eng/hydrajs": "4.17.
|
|
65
|
+
"@cee-eng/hydrajs": "4.17.25",
|
|
66
66
|
"@cee-eng/ui-toolkit": "1.1.8",
|
|
67
|
-
"@patternfly/patternfly": "5.
|
|
68
|
-
"@patternfly/react-core": "5.
|
|
67
|
+
"@patternfly/patternfly": "5.4.0",
|
|
68
|
+
"@patternfly/react-core": "5.4.0",
|
|
69
|
+
"@patternfly/react-icons": "5.1.1",
|
|
69
70
|
"@patternfly/react-table": "5.1.1",
|
|
70
|
-
"@
|
|
71
|
-
"@rh-support/
|
|
72
|
-
"@rh-support/
|
|
71
|
+
"@patternfly/react-tokens": "^5.4.0",
|
|
72
|
+
"@rh-support/types": "2.0.5",
|
|
73
|
+
"@rh-support/user-permissions": "2.1.51",
|
|
74
|
+
"@rh-support/utils": "2.1.40",
|
|
73
75
|
"dompurify": "^2.2.6",
|
|
74
76
|
"downshift": "^6.0.5",
|
|
75
77
|
"js-worker-search": "^1.4.1",
|
|
@@ -79,7 +81,7 @@
|
|
|
79
81
|
"react": "18.2.0",
|
|
80
82
|
"react-bootstrap-typeahead": "^5.1.4",
|
|
81
83
|
"react-dom": "18.2.0",
|
|
82
|
-
"react-i18next": "^
|
|
84
|
+
"react-i18next": "^15.0.1",
|
|
83
85
|
"react-router-dom": "^5.1.2",
|
|
84
86
|
"react-toastify": "^5.4.1",
|
|
85
87
|
"resize-observer-polyfill": "^1.5.1",
|
|
@@ -109,5 +111,5 @@
|
|
|
109
111
|
"defaults and supports es6-module",
|
|
110
112
|
"maintained node versions"
|
|
111
113
|
],
|
|
112
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "0e8e72a89ed859d57ceb68dbbb94caa13a6f3569"
|
|
113
115
|
}
|