@rh-support/components 2.1.82 → 2.1.84

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.
@@ -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.PropsWithoutRef<DropdownPropsType & IMultiSelectOnlyProps<OptionType>> & React.RefAttributes<unknown>>;
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,gJAY3D"}
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,qBAkBjC;kBAlBQ,WAAW;;;AAoBpB,OAAO,EAAE,WAAW,EAAE,CAAC"}
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,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAwB,MAAM,qBAAqB,CAAC;AAwB7E,OAAO,KAAK,EAAE,EAAE,SAAS,EAA+B,MAAM,OAAO,CAAC;AAKtE,oBAAY,UAAU;IAClB,KAAK,cAAc;IACnB,QAAQ,aAAa;CACxB;AAED,UAAU,kBAAkB;IACxB,yBAAyB,EAAE,OAAO,CAAC;IACnC,SAAS,EAAE,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;IAClC,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;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IACZ,eAAe,CAAC,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: cx('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' } },
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)),
@@ -96,7 +96,6 @@ a[href*='/attachments/']::before,
96
96
  button[data-link*='/attachments/']::before {
97
97
  margin-right: 4px;
98
98
  font-style: normal;
99
- font-size: inherit;
100
99
  text-rendering: auto;
101
100
  -webkit-font-smoothing: antialiased;
102
101
  content: '📎';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/components",
3
- "version": "2.1.82",
3
+ "version": "2.1.84",
4
4
  "description": "Contains all reusabel components for support app",
5
5
  "author": "Vikas Rathee <vrathee@redhat.com>",
6
6
  "license": "ISC",
@@ -44,7 +44,7 @@
44
44
  "prepublishOnly": "npm run build"
45
45
  },
46
46
  "peerDependencies": {
47
- "@cee-eng/hydrajs": "4.17.24",
47
+ "@cee-eng/hydrajs": "4.17.26",
48
48
  "@cee-eng/ui-toolkit": "1.1.8",
49
49
  "@patternfly/patternfly": "5.4.0",
50
50
  "@patternfly/react-core": "5.4.0",
@@ -62,14 +62,16 @@
62
62
  "use-deep-compare-effect": "^1.6.1"
63
63
  },
64
64
  "dependencies": {
65
- "@cee-eng/hydrajs": "4.17.24",
65
+ "@cee-eng/hydrajs": "4.17.26",
66
66
  "@cee-eng/ui-toolkit": "1.1.8",
67
67
  "@patternfly/patternfly": "5.4.0",
68
68
  "@patternfly/react-core": "5.4.0",
69
- "@patternfly/react-table": "5.4.0",
70
- "@rh-support/types": "2.0.4",
71
- "@rh-support/user-permissions": "2.1.50",
72
- "@rh-support/utils": "2.1.39",
69
+ "@patternfly/react-icons": "5.1.1",
70
+ "@patternfly/react-table": "5.1.1",
71
+ "@patternfly/react-tokens": "^5.4.0",
72
+ "@rh-support/types": "2.0.5",
73
+ "@rh-support/user-permissions": "2.1.52",
74
+ "@rh-support/utils": "2.1.41",
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": "^13.2.2",
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": "1761dac5582f46c8f89312a40a6424a0fa5aa9bf"
114
+ "gitHead": "ad90558bba194b3dbb01ce3d6bd3cbb797621c8c"
113
115
  }