@redhat-cloud-services/frontend-components 3.9.3 → 3.9.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.
- package/BulkSelect/BulkSelect.d.ts +1 -1
- package/BulkSelect/bulk-select.scss +13 -13
- package/ConditionalFilter/conditional-filter.scss +78 -87
- package/CullingInfo/CullingInformation.scss +4 -4
- package/DownloadButton/DownloadButton.spec.ct.d.ts +1 -0
- package/DownloadButton/DownloadButton.spec.ct.js +24 -0
- package/EmptyTable/EmptyTable.scss +7 -7
- package/ErrorState/error-state.scss +3 -3
- package/FilterChips/filter-chips.scss +9 -10
- package/FilterHooks/tagFilterHook.scss +15 -16
- package/InsightsLabel/labels.scss +14 -12
- package/InvalidObject/icon-404.scss +5 -9
- package/LongTextTooltip/index.d.ts +1 -1
- package/LongTextTooltip/index.js +2 -2
- package/Main/Main.d.ts +8 -0
- package/Main/main.scss +1 -1
- package/Maintenance/maintenance.scss +5 -5
- package/NotAuthorized/NotAuthorized.scss +5 -5
- package/Ouia/WithOuia.d.ts +1 -1
- package/Ouia/useOuia.d.ts +1 -1
- package/PageHeader/page-header.scss +5 -5
- package/Pagination/pagination.scss +5 -6
- package/PrimaryToolbar/PrimaryToolbar.d.ts +1 -1
- package/PrimaryToolbar/primary-toolbar.scss +40 -51
- package/Reboot/reboot.scss +7 -7
- package/SimpleTableFilter/simple-table-filter.scss +10 -10
- package/Skeleton/skeleton.scss +16 -16
- package/SkeletonTable/SkeletonTable.scss +1 -1
- package/Spinner/spinner.scss +15 -17
- package/TableToolbar/TableToolbar.scss +9 -9
- package/TagCount/tagCount.scss +4 -4
- package/TagModal/tagModal.scss +1 -1
- package/Unavailable/Unavailable.scss +1 -1
- package/cypress/cypress.webpack.config.js +37 -0
- package/cypress/fixtures/example.json +5 -0
- package/cypress/plugins/index.js +30 -0
- package/cypress/support/commands.js +25 -0
- package/cypress/support/index.js +21 -0
- package/cypress.json +9 -0
- package/esm/BulkSelect/BulkSelect.js +2 -2
- package/esm/BulkSelect/bulk-select.scss +13 -13
- package/esm/ConditionalFilter/CheckboxFilter.js +1 -1
- package/esm/ConditionalFilter/ConditionalFilter.js +2 -2
- package/esm/ConditionalFilter/GroupFilter.js +3 -3
- package/esm/ConditionalFilter/RadioFilter.js +1 -1
- package/esm/ConditionalFilter/TextFilter.js +1 -1
- package/esm/ConditionalFilter/conditional-filter.scss +78 -87
- package/esm/CullingInfo/CullingInformation.scss +4 -4
- package/esm/DownloadButton/DownloadButton.spec.ct.js +19 -0
- package/esm/EmptyTable/EmptyTable.scss +7 -7
- package/esm/ErrorState/ErrorState.js +1 -1
- package/esm/ErrorState/error-state.scss +3 -3
- package/esm/FilterChips/FilterChips.js +1 -1
- package/esm/FilterChips/filter-chips.scss +9 -10
- package/esm/FilterHooks/tagFilterHook.js +1 -1
- package/esm/FilterHooks/tagFilterHook.scss +15 -16
- package/esm/Filters/FilterInput.js +1 -1
- package/esm/InsightsLabel/labels.scss +14 -12
- package/esm/InvalidObject/InvalidObject.js +1 -1
- package/esm/InvalidObject/icon-404.scss +5 -9
- package/esm/LongTextTooltip/index.js +1 -1
- package/esm/Main/main.scss +1 -1
- package/esm/Maintenance/Maintenance.js +1 -1
- package/esm/Maintenance/maintenance.scss +5 -5
- package/esm/NotAuthorized/NotAuthorized.js +1 -1
- package/esm/NotAuthorized/NotAuthorized.scss +5 -5
- package/esm/NotConnected/NotConnected.js +1 -1
- package/esm/PageHeader/page-header.scss +5 -5
- package/esm/Pagination/PaginationNav.js +1 -1
- package/esm/Pagination/pagination.scss +5 -6
- package/esm/PrimaryToolbar/Actions.js +1 -1
- package/esm/PrimaryToolbar/PrimaryToolbar.js +1 -1
- package/esm/PrimaryToolbar/primary-toolbar.scss +40 -51
- package/esm/Reboot/reboot.scss +7 -7
- package/esm/SimpleTableFilter/SimpleTableFilter.js +1 -1
- package/esm/SimpleTableFilter/simple-table-filter.scss +10 -10
- package/esm/Skeleton/skeleton.scss +16 -16
- package/esm/SkeletonTable/SkeletonTable.js +1 -1
- package/esm/SkeletonTable/SkeletonTable.scss +1 -1
- package/esm/Spinner/spinner.scss +15 -17
- package/esm/TableToolbar/TableToolbar.scss +9 -9
- package/esm/TagCount/tagCount.scss +4 -4
- package/esm/TagModal/TableWithFilter.js +2 -2
- package/esm/TagModal/TagModal.js +1 -1
- package/esm/TagModal/tagModal.scss +1 -1
- package/esm/Unavailable/Unavailable.js +1 -1
- package/esm/Unavailable/Unavailable.scss +1 -1
- package/esm/usePendoFeedback/usePendoFeedback.js +1 -5
- package/index.d.ts +0 -8
- package/package.json +11 -3
- package/useChrome/useChrome.d.ts +1 -1
- package/usePendoFeedback/usePendoFeedback.d.ts +1 -1
- package/usePendoFeedback/usePendoFeedback.js +1 -5
|
@@ -19,8 +19,8 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
19
19
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
20
|
};
|
|
21
21
|
import React, { Fragment } from 'react';
|
|
22
|
-
import {
|
|
23
|
-
import { Table,
|
|
22
|
+
import { Bullseye, EmptyState, EmptyStateBody, EmptyStateVariant, Pagination, Title } from '@patternfly/react-core';
|
|
23
|
+
import { Table, TableBody, TableHeader } from '@patternfly/react-table';
|
|
24
24
|
import { EmptyTable } from '../EmptyTable';
|
|
25
25
|
import { TableToolbar } from '../TableToolbar';
|
|
26
26
|
import { PrimaryToolbar } from '../PrimaryToolbar';
|
package/esm/TagModal/TagModal.js
CHANGED
|
@@ -37,7 +37,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
37
37
|
};
|
|
38
38
|
import React, { Component } from 'react';
|
|
39
39
|
import '../TagModal/tagModal.css';
|
|
40
|
-
import {
|
|
40
|
+
import { Button, Modal, Tab, TabTitleText, Tabs } from '@patternfly/react-core';
|
|
41
41
|
import classNames from 'classnames';
|
|
42
42
|
import TableWithFilter from './TableWithFilter';
|
|
43
43
|
var calculateChecked = function (rows, selected) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { EmptyState, EmptyStateIcon, EmptyStateVariant,
|
|
2
|
+
import { EmptyState, EmptyStateBody, EmptyStateIcon, EmptyStateVariant, Title } from '@patternfly/react-core';
|
|
3
3
|
import { ExclamationCircleIcon } from '@patternfly/react-icons';
|
|
4
4
|
import '../Unavailable/Unavailable.css';
|
|
5
5
|
var Unavailable = function () {
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import useChrome from '../useChrome';
|
|
2
2
|
var usePendoFeedback = function () {
|
|
3
|
-
var args = [];
|
|
4
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
5
|
-
args[_i] = arguments[_i];
|
|
6
|
-
}
|
|
7
3
|
var usePendoFeedbackInternal = useChrome().usePendoFeedback;
|
|
8
4
|
if (typeof usePendoFeedbackInternal !== 'function') {
|
|
9
5
|
console.warn('The "usePendoFeedback" hook is not available in this enviroment. Default feedback form will be used. Wait for chrome updates.');
|
|
10
6
|
return;
|
|
11
7
|
}
|
|
12
|
-
return usePendoFeedbackInternal
|
|
8
|
+
return usePendoFeedbackInternal();
|
|
13
9
|
};
|
|
14
10
|
export default usePendoFeedback;
|
|
15
11
|
//# sourceMappingURL=usePendoFeedback.js.map
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redhat-cloud-services/frontend-components",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.6",
|
|
4
4
|
"description": "Common components for RedHat Cloud Services project.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"start": "concurrently \"npm run build:esm -- --watch\" \"npm run build:js -- --watch\" \"npm run build:css -- --watch\" \"npm run build:packages\"",
|
|
20
20
|
"build:esm": "tsc --module es2015 --target es5",
|
|
21
21
|
"build:js": "tsc -p tsconfig.cjs.json",
|
|
22
|
+
"test:ct": "cypress run-ct",
|
|
22
23
|
"transform:css": "node ../../scripts/transform-scss.js"
|
|
23
24
|
},
|
|
24
25
|
"repository": {
|
|
@@ -49,11 +50,18 @@
|
|
|
49
50
|
"sanitize-html": "^2.3.2",
|
|
50
51
|
"@scalprum/core": "^0.1.1",
|
|
51
52
|
"@scalprum/react-core": "^0.1.7",
|
|
52
|
-
"@redhat-cloud-services/types": "0.0.
|
|
53
|
+
"@redhat-cloud-services/types": "^0.0.5"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@patternfly/patternfly": ">=4.102.2",
|
|
56
57
|
"node-sass-package-importer": "^5.3.2",
|
|
57
|
-
"@types/react": "^16.9.34"
|
|
58
|
+
"@types/react": "^16.9.34",
|
|
59
|
+
"@cypress/react": "^5.12.4",
|
|
60
|
+
"@cypress/webpack-dev-server": "^1.8.4",
|
|
61
|
+
"css-loader": "^6.7.1",
|
|
62
|
+
"cypress": "^9.6.0",
|
|
63
|
+
"eslint-plugin-cypress": "^2.12.1",
|
|
64
|
+
"sass-loader": "^12.6.0",
|
|
65
|
+
"style-loader": "^3.3.1"
|
|
58
66
|
}
|
|
59
67
|
}
|
package/useChrome/useChrome.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ChromeAPI } from '@redhat-cloud-services/types';
|
|
2
2
|
export declare type UseChromeSelector<T = any> = (chromeState: ChromeAPI) => T;
|
|
3
|
-
declare const useChrome: (selector?: UseChromeSelector<
|
|
3
|
+
declare const useChrome: <T = ChromeAPI>(selector?: UseChromeSelector<T> | undefined) => ChromeAPI | T;
|
|
4
4
|
export default useChrome;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const usePendoFeedback: (
|
|
1
|
+
declare const usePendoFeedback: () => void;
|
|
2
2
|
export default usePendoFeedback;
|
|
@@ -5,16 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var useChrome_1 = __importDefault(require("../useChrome"));
|
|
7
7
|
var usePendoFeedback = function () {
|
|
8
|
-
var args = [];
|
|
9
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
10
|
-
args[_i] = arguments[_i];
|
|
11
|
-
}
|
|
12
8
|
var usePendoFeedbackInternal = (0, useChrome_1.default)().usePendoFeedback;
|
|
13
9
|
if (typeof usePendoFeedbackInternal !== 'function') {
|
|
14
10
|
console.warn('The "usePendoFeedback" hook is not available in this enviroment. Default feedback form will be used. Wait for chrome updates.');
|
|
15
11
|
return;
|
|
16
12
|
}
|
|
17
|
-
return usePendoFeedbackInternal
|
|
13
|
+
return usePendoFeedbackInternal();
|
|
18
14
|
};
|
|
19
15
|
exports.default = usePendoFeedback;
|
|
20
16
|
//# sourceMappingURL=usePendoFeedback.js.map
|