@redhat-cloud-services/frontend-components-advisor-components 3.10.5 → 3.10.6

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,8 +1,9 @@
1
1
  import './RebootRequired.scss';
2
+ import React from 'react';
2
3
  import { RuleDetailsMessages } from '../RuleDetails/RuleDetailsMessages';
3
4
  interface RebootRequiredProps {
4
5
  rebootRequired: boolean;
5
6
  messages: RuleDetailsMessages;
6
7
  }
7
- declare const RebootRequired: ({ messages, rebootRequired }: RebootRequiredProps) => import("react/jsx-runtime").JSX.Element;
8
+ declare const RebootRequired: ({ messages, rebootRequired }: RebootRequiredProps) => React.JSX.Element;
8
9
  export default RebootRequired;
@@ -1,4 +1,5 @@
1
1
  import './ReportDetails.scss';
2
+ import React from 'react';
2
3
  import { RuleContentOcp, RuleContentRhel } from '../types';
3
4
  interface Report {
4
5
  rule: RuleContentRhel | RuleContentOcp;
@@ -15,5 +16,5 @@ interface ReportDetailsProps {
15
16
  kbaLoading: boolean;
16
17
  isProd: boolean;
17
18
  }
18
- declare const ReportDetails: ({ report, kbaDetail, kbaLoading, isProd, }: ReportDetailsProps) => import("react/jsx-runtime").JSX.Element;
19
+ declare const ReportDetails: ({ report, kbaDetail, kbaLoading, isProd, }: ReportDetailsProps) => React.JSX.Element;
19
20
  export default ReportDetails;
@@ -1,9 +1,10 @@
1
1
  import './RuleDescription.scss';
2
+ import React from 'react';
2
3
  import { AdvisorProduct, RuleContentOcp, RuleContentRhel } from '../types';
3
4
  interface RuleDescriptionProps {
4
5
  product: AdvisorProduct;
5
6
  rule: RuleContentOcp | RuleContentRhel;
6
7
  isDetailsPage: boolean;
7
8
  }
8
- declare const RuleDescription: ({ product, rule, isDetailsPage }: RuleDescriptionProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const RuleDescription: ({ product, rule, isDetailsPage }: RuleDescriptionProps) => React.JSX.Element;
9
10
  export default RuleDescription;
@@ -16,5 +16,5 @@ export interface RuleDetailsProps {
16
16
  Topics?: React.ReactNode;
17
17
  ViewAffectedLink?: React.ReactNode;
18
18
  }
19
- declare const RuleDetails: ({ messages, product, header, rule, isDetailsPage, onVoteClick, resolutionRisk, resolutionRiskDesc, children, knowledgebaseUrl, Topics, ViewAffectedLink, }: RuleDetailsProps) => import("react/jsx-runtime").JSX.Element;
19
+ declare const RuleDetails: ({ messages, product, header, rule, isDetailsPage, onVoteClick, resolutionRisk, resolutionRiskDesc, children, knowledgebaseUrl, Topics, ViewAffectedLink, }: RuleDetailsProps) => React.JSX.Element;
20
20
  export default RuleDetails;
@@ -1,4 +1,5 @@
1
1
  import './RuleRating.scss';
2
+ import React from 'react';
2
3
  import { Rating } from '../types';
3
4
  import { RuleDetailsMessages } from '../RuleDetails/RuleDetailsMessages';
4
5
  export declare const DEBOUNCE_TIMEOUT = 2000;
@@ -8,5 +9,5 @@ interface RuleRatingProps {
8
9
  onVoteClick: (ruleId: string, calculatedRating: Rating) => unknown;
9
10
  messages: RuleDetailsMessages;
10
11
  }
11
- declare const RuleRating: ({ messages, ruleId, ruleRating, onVoteClick }: RuleRatingProps) => import("react/jsx-runtime").JSX.Element;
12
+ declare const RuleRating: ({ messages, ruleId, ruleRating, onVoteClick }: RuleRatingProps) => React.JSX.Element;
12
13
  export default RuleRating;
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  interface TemplateProcessorProps {
2
3
  template: string;
3
4
  definitions: Record<string, unknown>;
4
5
  onError?: (e: Error) => void;
5
6
  }
6
- declare const TemplateProcessor: ({ template, definitions, onError }: TemplateProcessorProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const TemplateProcessor: ({ template, definitions, onError }: TemplateProcessorProps) => React.JSX.Element;
7
8
  export default TemplateProcessor;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { Message } from '../RuleDetails/RuleDetailsMessages';
2
3
  import { AdvisorProduct, RuleContentOcp, RuleContentRhel } from '../types';
3
4
  interface ViewAffectedLinkProps {
@@ -9,5 +10,5 @@ interface ViewAffectedLinkProps {
9
10
  rule: RuleContentOcp | RuleContentRhel;
10
11
  linkComponent: any;
11
12
  }
12
- declare const ViewAffectedLink: ({ messages, product, rule, linkComponent: Link }: ViewAffectedLinkProps) => import("react/jsx-runtime").JSX.Element;
13
+ declare const ViewAffectedLink: ({ messages, product, rule, linkComponent: Link }: ViewAffectedLinkProps) => React.JSX.Element;
13
14
  export default ViewAffectedLink;
package/common.d.ts CHANGED
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import { RuleContentRhel, TopicRhel } from './types';
2
- export declare const barDividedList: (list: JSX.Element[]) => import("react/jsx-runtime").JSX.Element[];
3
- export declare const topicLinks: (rule: RuleContentRhel, topics: TopicRhel[], Link: any) => import("react/jsx-runtime").JSX.Element[];
3
+ export declare const barDividedList: (list: JSX.Element[]) => React.JSX.Element[];
4
+ export declare const topicLinks: (rule: RuleContentRhel, topics: TopicRhel[], Link: any) => React.JSX.Element[];
4
5
  export declare const ExternalLink: ({ href, content }: {
5
6
  href: string;
6
7
  content: string;
7
- }) => import("react/jsx-runtime").JSX.Element;
8
+ }) => React.JSX.Element;
@@ -1,8 +1,9 @@
1
1
  import './RebootRequired.scss';
2
+ import React from 'react';
2
3
  import { RuleDetailsMessages } from '../RuleDetails/RuleDetailsMessages';
3
4
  interface RebootRequiredProps {
4
5
  rebootRequired: boolean;
5
6
  messages: RuleDetailsMessages;
6
7
  }
7
- declare const RebootRequired: ({ messages, rebootRequired }: RebootRequiredProps) => import("react/jsx-runtime").JSX.Element;
8
+ declare const RebootRequired: ({ messages, rebootRequired }: RebootRequiredProps) => React.JSX.Element;
8
9
  export default RebootRequired;
@@ -1,4 +1,5 @@
1
1
  import './ReportDetails.scss';
2
+ import React from 'react';
2
3
  import { RuleContentOcp, RuleContentRhel } from '../types';
3
4
  interface Report {
4
5
  rule: RuleContentRhel | RuleContentOcp;
@@ -15,5 +16,5 @@ interface ReportDetailsProps {
15
16
  kbaLoading: boolean;
16
17
  isProd: boolean;
17
18
  }
18
- declare const ReportDetails: ({ report, kbaDetail, kbaLoading, isProd, }: ReportDetailsProps) => import("react/jsx-runtime").JSX.Element;
19
+ declare const ReportDetails: ({ report, kbaDetail, kbaLoading, isProd, }: ReportDetailsProps) => React.JSX.Element;
19
20
  export default ReportDetails;
@@ -1,9 +1,10 @@
1
1
  import './RuleDescription.scss';
2
+ import React from 'react';
2
3
  import { AdvisorProduct, RuleContentOcp, RuleContentRhel } from '../types';
3
4
  interface RuleDescriptionProps {
4
5
  product: AdvisorProduct;
5
6
  rule: RuleContentOcp | RuleContentRhel;
6
7
  isDetailsPage: boolean;
7
8
  }
8
- declare const RuleDescription: ({ product, rule, isDetailsPage }: RuleDescriptionProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const RuleDescription: ({ product, rule, isDetailsPage }: RuleDescriptionProps) => React.JSX.Element;
9
10
  export default RuleDescription;
@@ -16,5 +16,5 @@ export interface RuleDetailsProps {
16
16
  Topics?: React.ReactNode;
17
17
  ViewAffectedLink?: React.ReactNode;
18
18
  }
19
- declare const RuleDetails: ({ messages, product, header, rule, isDetailsPage, onVoteClick, resolutionRisk, resolutionRiskDesc, children, knowledgebaseUrl, Topics, ViewAffectedLink, }: RuleDetailsProps) => import("react/jsx-runtime").JSX.Element;
19
+ declare const RuleDetails: ({ messages, product, header, rule, isDetailsPage, onVoteClick, resolutionRisk, resolutionRiskDesc, children, knowledgebaseUrl, Topics, ViewAffectedLink, }: RuleDetailsProps) => React.JSX.Element;
20
20
  export default RuleDetails;
@@ -1,4 +1,5 @@
1
1
  import './RuleRating.scss';
2
+ import React from 'react';
2
3
  import { Rating } from '../types';
3
4
  import { RuleDetailsMessages } from '../RuleDetails/RuleDetailsMessages';
4
5
  export declare const DEBOUNCE_TIMEOUT = 2000;
@@ -8,5 +9,5 @@ interface RuleRatingProps {
8
9
  onVoteClick: (ruleId: string, calculatedRating: Rating) => unknown;
9
10
  messages: RuleDetailsMessages;
10
11
  }
11
- declare const RuleRating: ({ messages, ruleId, ruleRating, onVoteClick }: RuleRatingProps) => import("react/jsx-runtime").JSX.Element;
12
+ declare const RuleRating: ({ messages, ruleId, ruleRating, onVoteClick }: RuleRatingProps) => React.JSX.Element;
12
13
  export default RuleRating;
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  interface TemplateProcessorProps {
2
3
  template: string;
3
4
  definitions: Record<string, unknown>;
4
5
  onError?: (e: Error) => void;
5
6
  }
6
- declare const TemplateProcessor: ({ template, definitions, onError }: TemplateProcessorProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const TemplateProcessor: ({ template, definitions, onError }: TemplateProcessorProps) => React.JSX.Element;
7
8
  export default TemplateProcessor;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { Message } from '../RuleDetails/RuleDetailsMessages';
2
3
  import { AdvisorProduct, RuleContentOcp, RuleContentRhel } from '../types';
3
4
  interface ViewAffectedLinkProps {
@@ -9,5 +10,5 @@ interface ViewAffectedLinkProps {
9
10
  rule: RuleContentOcp | RuleContentRhel;
10
11
  linkComponent: any;
11
12
  }
12
- declare const ViewAffectedLink: ({ messages, product, rule, linkComponent: Link }: ViewAffectedLinkProps) => import("react/jsx-runtime").JSX.Element;
13
+ declare const ViewAffectedLink: ({ messages, product, rule, linkComponent: Link }: ViewAffectedLinkProps) => React.JSX.Element;
13
14
  export default ViewAffectedLink;
package/esm/common.d.ts CHANGED
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import { RuleContentRhel, TopicRhel } from './types';
2
- export declare const barDividedList: (list: JSX.Element[]) => import("react/jsx-runtime").JSX.Element[];
3
- export declare const topicLinks: (rule: RuleContentRhel, topics: TopicRhel[], Link: any) => import("react/jsx-runtime").JSX.Element[];
3
+ export declare const barDividedList: (list: JSX.Element[]) => React.JSX.Element[];
4
+ export declare const topicLinks: (rule: RuleContentRhel, topics: TopicRhel[], Link: any) => React.JSX.Element[];
4
5
  export declare const ExternalLink: ({ href, content }: {
5
6
  href: string;
6
7
  content: string;
7
- }) => import("react/jsx-runtime").JSX.Element;
8
+ }) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redhat-cloud-services/frontend-components-advisor-components",
3
- "version": "3.10.5",
3
+ "version": "3.10.6",
4
4
  "description": "Components to be used in Advisor applications and integrations.",
5
5
  "main": "index.js",
6
6
  "module": "esm/index.js",
@@ -19,29 +19,29 @@
19
19
  },
20
20
  "homepage": "https://github.com/RedHatInsights/frontend-components/tree/master/packages/advisor-components#readme",
21
21
  "peerDependencies": {
22
- "@patternfly/react-core": "^6.0.0",
23
- "@patternfly/react-icons": "^6.0.0",
24
- "prop-types": "^15.6.2",
25
- "react": "^18.2.0",
26
- "react-dom": "^18.2.0",
22
+ "@patternfly/react-core": "^6.6.1",
23
+ "@patternfly/react-icons": "^6.6.1",
24
+ "prop-types": "^15.8.1",
25
+ "react": "^18.3.1",
26
+ "react-dom": "^18.3.1",
27
27
  "react-router-dom": "^5.0.0 || ^6.0.0"
28
28
  },
29
29
  "dependencies": {
30
30
  "@redhat-cloud-services/frontend-components": "^7.0.13",
31
31
  "dot": "^1.1.3",
32
- "lodash": "^4.17.21",
33
- "marked": "14.1.2",
34
- "react-markdown": "^8.0.3",
32
+ "lodash": "^4.18.1",
33
+ "marked": "14.1.4",
34
+ "react-markdown": "^8.0.7",
35
35
  "rehype-raw": "^6.1.1",
36
36
  "rehype-sanitize": "^5.0.1",
37
- "sanitize-html": "^2.13.1"
37
+ "sanitize-html": "^2.17.7"
38
38
  },
39
39
  "devDependencies": {
40
- "@cypress/webpack-dev-server": "^3.5.1",
41
- "@types/dot": "^1.1.5",
42
- "css-loader": "^6.7.1",
43
- "eslint-plugin-cypress": "^4.2.1",
44
- "sass-loader": "^16.0.2",
45
- "style-loader": "^3.3.1"
40
+ "@cypress/webpack-dev-server": "^3.11.0",
41
+ "@types/dot": "^1.1.7",
42
+ "css-loader": "^6.11.0",
43
+ "eslint-plugin-cypress": "^4.3.0",
44
+ "sass-loader": "^16.0.8",
45
+ "style-loader": "^3.3.4"
46
46
  }
47
47
  }