@redhat-cloud-services/frontend-components-utilities 3.2.10 → 3.2.11
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/Deffered/Deffered.d.ts +6 -0
- package/Deffered/Deffered.js +12 -16
- package/Deffered/Deffered.js.map +1 -0
- package/Deffered/index.d.ts +2 -0
- package/Deffered/index.js +19 -31
- package/Deffered/index.js.map +1 -0
- package/Deffered/package.json +1 -1
- package/MiddlewareListener/MiddlewareListener.d.ts +8 -0
- package/MiddlewareListener/MiddlewareListener.js +44 -79
- package/MiddlewareListener/MiddlewareListener.js.map +1 -0
- package/MiddlewareListener/index.d.ts +2 -0
- package/MiddlewareListener/index.js +19 -31
- package/MiddlewareListener/index.js.map +1 -0
- package/MiddlewareListener/package.json +1 -1
- package/RBAC/RBAC.d.ts +13 -6
- package/RBAC/RBAC.js +73 -78
- package/RBAC/RBAC.js.map +1 -0
- package/RBAC/index.js +19 -31
- package/RBAC/index.js.map +1 -0
- package/RBACHook/RBACHook.d.ts +4 -4
- package/RBACHook/RBACHook.js +82 -63
- package/RBACHook/RBACHook.js.map +1 -0
- package/RBACHook/index.js +19 -31
- package/RBACHook/index.js.map +1 -0
- package/ReducerRegistry/ReducerRegistry.d.ts +12 -0
- package/ReducerRegistry/ReducerRegistry.js +69 -104
- package/ReducerRegistry/ReducerRegistry.js.map +1 -0
- package/ReducerRegistry/index.d.ts +2 -0
- package/ReducerRegistry/index.js +19 -31
- package/ReducerRegistry/index.js.map +1 -0
- package/ReducerRegistry/package.json +1 -1
- package/Registry/Registry.d.ts +4 -0
- package/Registry/Registry.js +48 -53
- package/Registry/Registry.js.map +1 -0
- package/Registry/index.d.ts +2 -0
- package/Registry/index.js +19 -31
- package/Registry/index.js.map +1 -0
- package/Registry/package.json +1 -1
- package/RouterParams/RouterParams.d.ts +30 -0
- package/RouterParams/RouterParams.js +98 -133
- package/RouterParams/RouterParams.js.map +1 -0
- package/RouterParams/index.d.ts +2 -0
- package/RouterParams/index.js +19 -31
- package/RouterParams/index.js.map +1 -0
- package/RouterParams/package.json +1 -1
- package/RowLoader/RowLoader.d.ts +2 -0
- package/RowLoader/RowLoader.js +26 -71
- package/RowLoader/RowLoader.js.map +1 -0
- package/RowLoader/index.d.ts +2 -0
- package/RowLoader/index.js +19 -31
- package/RowLoader/index.js.map +1 -0
- package/RowLoader/package.json +1 -1
- package/debounce/debounce.d.ts +2 -0
- package/debounce/debounce.js +12 -25
- package/debounce/debounce.js.map +1 -0
- package/debounce/index.d.ts +2 -0
- package/debounce/index.js +19 -31
- package/debounce/index.js.map +1 -0
- package/debounce/package.json +1 -1
- package/esm/Deffered/Deffered.js +10 -10
- package/esm/Deffered/Deffered.js.map +1 -0
- package/esm/Deffered/index.js +2 -1
- package/esm/Deffered/index.js.map +1 -0
- package/esm/MiddlewareListener/MiddlewareListener.js +43 -68
- package/esm/MiddlewareListener/MiddlewareListener.js.map +1 -0
- package/esm/MiddlewareListener/index.js +2 -1
- package/esm/MiddlewareListener/index.js.map +1 -0
- package/esm/RBAC/RBAC.js +69 -64
- package/esm/RBAC/RBAC.js.map +1 -0
- package/esm/RBAC/index.js +2 -1
- package/esm/RBAC/index.js.map +1 -0
- package/esm/RBACHook/RBACHook.js +77 -46
- package/esm/RBACHook/RBACHook.js.map +1 -0
- package/esm/RBACHook/index.js +2 -1
- package/esm/RBACHook/index.js.map +1 -0
- package/esm/ReducerRegistry/ReducerRegistry.js +64 -85
- package/esm/ReducerRegistry/ReducerRegistry.js.map +1 -0
- package/esm/ReducerRegistry/index.js +2 -1
- package/esm/ReducerRegistry/index.js.map +1 -0
- package/esm/Registry/Registry.js +40 -35
- package/esm/Registry/Registry.js.map +1 -0
- package/esm/Registry/index.js +2 -1
- package/esm/Registry/index.js.map +1 -0
- package/esm/RouterParams/RouterParams.js +86 -107
- package/esm/RouterParams/RouterParams.js.map +1 -0
- package/esm/RouterParams/index.js +2 -1
- package/esm/RouterParams/index.js.map +1 -0
- package/esm/RowLoader/RowLoader.js +21 -59
- package/esm/RowLoader/RowLoader.js.map +1 -0
- package/esm/RowLoader/index.js +2 -1
- package/esm/RowLoader/index.js.map +1 -0
- package/esm/debounce/debounce.js +6 -14
- package/esm/debounce/debounce.js.map +1 -0
- package/esm/debounce/index.js +2 -1
- package/esm/debounce/index.js.map +1 -0
- package/esm/helpers/helpers.js +70 -73
- package/esm/helpers/helpers.js.map +1 -0
- package/esm/helpers/index.js +4 -3
- package/esm/helpers/index.js.map +1 -0
- package/esm/index.js +12 -11
- package/esm/index.js.map +1 -0
- package/esm/interceptors/index.js +2 -1
- package/esm/interceptors/index.js.map +1 -0
- package/esm/interceptors/interceptors.js +121 -106
- package/esm/interceptors/interceptors.js.map +1 -0
- package/esm/inventoryDependencies/index.js +4 -6
- package/esm/inventoryDependencies/index.js.map +1 -0
- package/esm/inventoryDependencies/inventoryDependencies.js +65 -126
- package/esm/inventoryDependencies/inventoryDependencies.js.map +1 -0
- package/esm/mergeMessages/index.js +3 -1
- package/esm/mergeMessages/index.js.map +1 -0
- package/esm/mergeMessages/mergeMessages.js +54 -67
- package/esm/mergeMessages/mergeMessages.js.map +1 -0
- package/esm/parseCvssScore/index.js +2 -1
- package/esm/parseCvssScore/index.js.map +1 -0
- package/esm/parseCvssScore/parseCvssScore.js +13 -15
- package/esm/parseCvssScore/parseCvssScore.js.map +1 -0
- package/esm/useInventory/index.js +2 -1
- package/esm/useInventory/index.js.map +1 -0
- package/esm/useInventory/useInventory.js +129 -125
- package/esm/useInventory/useInventory.js.map +1 -0
- package/helpers/helpers.d.ts +8 -0
- package/helpers/helpers.js +83 -106
- package/helpers/helpers.js.map +1 -0
- package/helpers/index.d.ts +2 -0
- package/helpers/index.js +26 -26
- package/helpers/index.js.map +1 -0
- package/helpers/package.json +1 -1
- package/index.d.ts +16 -0
- package/index.js +53 -137
- package/index.js.map +1 -0
- package/interceptors/index.d.ts +2 -0
- package/interceptors/index.js +19 -31
- package/interceptors/index.js.map +1 -0
- package/interceptors/interceptors.d.ts +11 -0
- package/interceptors/interceptors.js +135 -141
- package/interceptors/interceptors.js.map +1 -0
- package/interceptors/package.json +1 -1
- package/inventoryDependencies/index.d.ts +2 -0
- package/inventoryDependencies/index.js +26 -26
- package/inventoryDependencies/index.js.map +1 -0
- package/inventoryDependencies/inventoryDependencies.d.ts +126 -0
- package/inventoryDependencies/inventoryDependencies.js +67 -193
- package/inventoryDependencies/inventoryDependencies.js.map +1 -0
- package/inventoryDependencies/package.json +1 -1
- package/mergeMessages/index.d.ts +1 -0
- package/mergeMessages/index.js +2 -2
- package/mergeMessages/index.js.map +1 -0
- package/mergeMessages/mergeMessages.d.ts +1 -0
- package/mergeMessages/mergeMessages.js +53 -70
- package/mergeMessages/mergeMessages.js.map +1 -0
- package/mergeMessages/package.json +1 -1
- package/package.json +12 -6
- package/parseCvssScore/index.d.ts +2 -0
- package/parseCvssScore/index.js +19 -31
- package/parseCvssScore/index.js.map +1 -0
- package/parseCvssScore/package.json +1 -1
- package/parseCvssScore/parseCvssScore.d.ts +2 -0
- package/parseCvssScore/parseCvssScore.js +18 -26
- package/parseCvssScore/parseCvssScore.js.map +1 -0
- package/tsconfig.cjs.json +8 -0
- package/tsconfig.json +12 -0
- package/useInventory/index.d.ts +2 -0
- package/useInventory/index.js +19 -31
- package/useInventory/index.js.map +1 -0
- package/useInventory/package.json +1 -1
- package/useInventory/useInventory.d.ts +13 -0
- package/useInventory/useInventory.js +151 -148
- package/useInventory/useInventory.js.map +1 -0
|
@@ -1,129 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
import { Badge } from "@patternfly/react-core/dist/esm/components/Badge/Badge.js";
|
|
5
|
-
import { Bullseye } from "@patternfly/react-core/dist/esm/layouts/Bullseye/Bullseye.js";
|
|
6
|
-
import { Button } from "@patternfly/react-core/dist/esm/components/Button/Button.js";
|
|
7
|
-
import { Checkbox } from "@patternfly/react-core/dist/esm/components/Checkbox/Checkbox.js";
|
|
8
|
-
import { ClipboardCopy } from "@patternfly/react-core/dist/esm/components/ClipboardCopy/ClipboardCopy.js";
|
|
9
|
-
import { Dropdown } from "@patternfly/react-core/dist/esm/components/Dropdown/Dropdown.js";
|
|
10
|
-
import { DropdownItem } from "@patternfly/react-core/dist/esm/components/Dropdown/DropdownItem.js";
|
|
11
|
-
import { DropdownPosition } from "@patternfly/react-core/dist/esm/components/Dropdown/dropdownConstants.js";
|
|
12
|
-
import { DropdownToggle } from "@patternfly/react-core/dist/esm/components/Dropdown/DropdownToggle.js";
|
|
13
|
-
import { DropdownToggleCheckbox } from "@patternfly/react-core/dist/esm/components/Dropdown/DropdownToggleCheckbox.js";
|
|
14
|
-
import { TextInput } from "@patternfly/react-core/dist/esm/components/TextInput/TextInput.js";
|
|
15
|
-
import { Grid } from "@patternfly/react-core/dist/esm/layouts/Grid/Grid.js";
|
|
16
|
-
import { GridItem } from "@patternfly/react-core/dist/esm/layouts/Grid/GridItem.js";
|
|
17
|
-
import { Tab } from "@patternfly/react-core/dist/esm/components/Tabs/Tab.js";
|
|
18
|
-
import { Tabs } from "@patternfly/react-core/dist/esm/components/Tabs/Tabs.js";
|
|
19
|
-
import { Switch } from "@patternfly/react-core/dist/esm/components/Switch/Switch.js";
|
|
20
|
-
import { Form } from "@patternfly/react-core/dist/esm/components/Form/Form.js";
|
|
21
|
-
import { FormGroup } from "@patternfly/react-core/dist/esm/components/Form/FormGroup.js";
|
|
22
|
-
import { FormSelect } from "@patternfly/react-core/dist/esm/components/FormSelect/FormSelect.js";
|
|
23
|
-
import { FormSelectOption } from "@patternfly/react-core/dist/esm/components/FormSelect/FormSelectOption.js";
|
|
24
|
-
import { Label } from "@patternfly/react-core/dist/esm/components/Label/Label.js";
|
|
25
|
-
import { EmptyState } from "@patternfly/react-core/dist/esm/components/EmptyState/EmptyState.js";
|
|
26
|
-
import { EmptyStateBody } from "@patternfly/react-core/dist/esm/components/EmptyState/EmptyStateBody.js";
|
|
27
|
-
import { EmptyStateIcon } from "@patternfly/react-core/dist/esm/components/EmptyState/EmptyStateIcon.js";
|
|
28
|
-
import { EmptyStateVariant } from "@patternfly/react-core/dist/esm/components/EmptyState/EmptyState.js";
|
|
29
|
-
import { Select } from "@patternfly/react-core/dist/esm/components/Select/Select.js";
|
|
30
|
-
import { SelectOption } from "@patternfly/react-core/dist/esm/components/Select/SelectOption.js";
|
|
31
|
-
import { SelectVariant } from "@patternfly/react-core/dist/esm/components/Select/selectConstants.js";
|
|
32
|
-
import { SelectGroup } from "@patternfly/react-core/dist/esm/components/Select/SelectGroup.js";
|
|
33
|
-
import { Radio } from "@patternfly/react-core/dist/esm/components/Radio/Radio.js";
|
|
34
|
-
import { ChipGroup } from "@patternfly/react-core/dist/esm/components/ChipGroup/ChipGroup.js";
|
|
35
|
-
import { Chip } from "@patternfly/react-core/dist/esm/components/ChipGroup/Chip.js";
|
|
36
|
-
import { Title } from "@patternfly/react-core/dist/esm/components/Title/Title.js";
|
|
37
|
-
import { Split } from "@patternfly/react-core/dist/esm/layouts/Split/Split.js";
|
|
38
|
-
import { SplitItem } from "@patternfly/react-core/dist/esm/layouts/Split/SplitItem.js";
|
|
39
|
-
import { Spinner } from "@patternfly/react-core/dist/esm/components/Spinner/Spinner.js";
|
|
40
|
-
import { Flex } from "@patternfly/react-core/dist/esm/layouts/Flex/Flex.js";
|
|
41
|
-
import { FlexItem } from "@patternfly/react-core/dist/esm/layouts/Flex/FlexItem.js";
|
|
42
|
-
import { Pagination } from "@patternfly/react-core/dist/esm/components/Pagination/Pagination.js";
|
|
43
|
-
import { PaginationVariant } from "@patternfly/react-core/dist/esm/components/Pagination/Pagination.js";
|
|
44
|
-
import { Tooltip } from "@patternfly/react-core/dist/esm/components/Tooltip/Tooltip.js";
|
|
45
|
-
import { Modal } from "@patternfly/react-core/dist/esm/components/Modal/Modal.js";
|
|
46
|
-
import { Stack } from "@patternfly/react-core/dist/esm/layouts/Stack/Stack.js";
|
|
47
|
-
import { StackItem } from "@patternfly/react-core/dist/esm/layouts/Stack/StackItem.js";
|
|
48
|
-
import { Level } from "@patternfly/react-core/dist/esm/layouts/Level/Level.js";
|
|
49
|
-
import { LevelItem } from "@patternfly/react-core/dist/esm/layouts/Level/LevelItem.js";
|
|
50
|
-
import { KebabToggle } from "@patternfly/react-core/dist/esm/components/Dropdown/KebabToggle.js";
|
|
51
|
-
import { Toolbar } from "@patternfly/react-core/dist/esm/components/Toolbar/Toolbar.js";
|
|
52
|
-
import { ToolbarItem } from "@patternfly/react-core/dist/esm/components/Toolbar/ToolbarItem.js";
|
|
53
|
-
import { ToolbarContent } from "@patternfly/react-core/dist/esm/components/Toolbar/ToolbarContent.js";
|
|
54
|
-
import { ToolbarGroup } from "@patternfly/react-core/dist/esm/components/Toolbar/ToolbarGroup.js";
|
|
55
|
-
import { Drawer } from "@patternfly/react-core/dist/esm/components/Drawer/Drawer.js";
|
|
56
|
-
import { DrawerPanelContent } from "@patternfly/react-core/dist/esm/components/Drawer/DrawerPanelContent.js";
|
|
57
|
-
import { DrawerContent } from "@patternfly/react-core/dist/esm/components/Drawer/DrawerContent.js";
|
|
58
|
-
import { DrawerContentBody } from "@patternfly/react-core/dist/esm/components/Drawer/DrawerContentBody.js";
|
|
59
|
-
import { DrawerPanelBody } from "@patternfly/react-core/dist/esm/components/Drawer/DrawerPanelBody.js";
|
|
60
|
-
import { DrawerActions } from "@patternfly/react-core/dist/esm/components/Drawer/DrawerActions.js";
|
|
61
|
-
import { DrawerHead } from "@patternfly/react-core/dist/esm/components/Drawer/DrawerHead.js";
|
|
62
|
-
import { DrawerCloseButton } from "@patternfly/react-core/dist/esm/components/Drawer/DrawerCloseButton.js";
|
|
63
|
-
import CubesIcon from "@patternfly/react-icons/dist/esm/icons/cubes-icon";
|
|
64
|
-
import ExclamationTriangleIcon from "@patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon";
|
|
1
|
+
import { Badge, Bullseye, Button, Checkbox, ClipboardCopy, Dropdown, DropdownItem, DropdownPosition, DropdownToggle, DropdownToggleCheckbox, TextInput, Grid, GridItem, Tab, Tabs, Switch, Form, FormGroup, FormSelect, FormSelectOption, Label, EmptyState, EmptyStateBody, EmptyStateIcon, EmptyStateVariant, Select, SelectOption, SelectVariant, SelectGroup, Radio, ChipGroup, Chip, Title, Split, SplitItem, Spinner, Flex, FlexItem, Pagination, PaginationVariant, Tooltip, Modal, Stack, StackItem, Level, LevelItem, KebabToggle, Toolbar, ToolbarItem, ToolbarContent, ToolbarGroup, Drawer, DrawerPanelContent, DrawerContent, DrawerContentBody, DrawerPanelBody, DrawerActions, DrawerHead, DrawerCloseButton, } from '@patternfly/react-core';
|
|
2
|
+
import { CubesIcon, ExclamationTriangleIcon } from '@patternfly/react-icons';
|
|
65
3
|
export var reactIcons = {
|
|
66
|
-
|
|
67
|
-
|
|
4
|
+
CubesIcon: CubesIcon,
|
|
5
|
+
ExclamationTriangleIcon: ExclamationTriangleIcon,
|
|
68
6
|
};
|
|
69
7
|
export var reactCore = {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
};
|
|
8
|
+
Badge: Badge,
|
|
9
|
+
Bullseye: Bullseye,
|
|
10
|
+
Button: Button,
|
|
11
|
+
Checkbox: Checkbox,
|
|
12
|
+
ClipboardCopy: ClipboardCopy,
|
|
13
|
+
Dropdown: Dropdown,
|
|
14
|
+
DropdownItem: DropdownItem,
|
|
15
|
+
DropdownPosition: DropdownPosition,
|
|
16
|
+
DropdownToggle: DropdownToggle,
|
|
17
|
+
EmptyState: EmptyState,
|
|
18
|
+
EmptyStateBody: EmptyStateBody,
|
|
19
|
+
EmptyStateIcon: EmptyStateIcon,
|
|
20
|
+
EmptyStateVariant: EmptyStateVariant,
|
|
21
|
+
Flex: Flex,
|
|
22
|
+
FlexItem: FlexItem,
|
|
23
|
+
Grid: Grid,
|
|
24
|
+
GridItem: GridItem,
|
|
25
|
+
KebabToggle: KebabToggle,
|
|
26
|
+
Level: Level,
|
|
27
|
+
LevelItem: LevelItem,
|
|
28
|
+
Modal: Modal,
|
|
29
|
+
Pagination: Pagination,
|
|
30
|
+
PaginationVariant: PaginationVariant,
|
|
31
|
+
Split: Split,
|
|
32
|
+
SplitItem: SplitItem,
|
|
33
|
+
Stack: Stack,
|
|
34
|
+
StackItem: StackItem,
|
|
35
|
+
Spinner: Spinner,
|
|
36
|
+
Tab: Tab,
|
|
37
|
+
Tabs: Tabs,
|
|
38
|
+
Title: Title,
|
|
39
|
+
Tooltip: Tooltip,
|
|
40
|
+
Toolbar: Toolbar,
|
|
41
|
+
ToolbarItem: ToolbarItem,
|
|
42
|
+
ToolbarContent: ToolbarContent,
|
|
43
|
+
ToolbarGroup: ToolbarGroup,
|
|
44
|
+
TextInput: TextInput,
|
|
45
|
+
ChipGroup: ChipGroup,
|
|
46
|
+
Chip: Chip,
|
|
47
|
+
DropdownToggleCheckbox: DropdownToggleCheckbox,
|
|
48
|
+
Select: Select,
|
|
49
|
+
SelectOption: SelectOption,
|
|
50
|
+
SelectVariant: SelectVariant,
|
|
51
|
+
SelectGroup: SelectGroup,
|
|
52
|
+
Radio: Radio,
|
|
53
|
+
Drawer: Drawer,
|
|
54
|
+
DrawerPanelContent: DrawerPanelContent,
|
|
55
|
+
DrawerContent: DrawerContent,
|
|
56
|
+
DrawerContentBody: DrawerContentBody,
|
|
57
|
+
DrawerPanelBody: DrawerPanelBody,
|
|
58
|
+
DrawerActions: DrawerActions,
|
|
59
|
+
DrawerHead: DrawerHead,
|
|
60
|
+
DrawerCloseButton: DrawerCloseButton,
|
|
61
|
+
Switch: Switch,
|
|
62
|
+
Form: Form,
|
|
63
|
+
Label: Label,
|
|
64
|
+
FormGroup: FormGroup,
|
|
65
|
+
FormSelect: FormSelect,
|
|
66
|
+
FormSelectOption: FormSelectOption,
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=inventoryDependencies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventoryDependencies.js","sourceRoot":"","sources":["../../src/inventoryDependencies/inventoryDependencies.js"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,EACL,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,sBAAsB,EACtB,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,GAAG,EACH,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,KAAK,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,MAAM,EACN,YAAY,EACZ,aAAa,EACb,WAAW,EACX,KAAK,EACL,SAAS,EACT,IAAI,EACJ,KAAK,EACL,KAAK,EACL,SAAS,EACT,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,iBAAiB,EACjB,OAAO,EACP,KAAK,EACL,KAAK,EACL,SAAS,EACT,KA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AA;IACb,iBAAiB,mBAAA;IACjB,eAAe,iBAAA;IACf,aAAa,eAAA;IACb,UAAU,YAAA;IACV,iBAAiB,mBAAA;IACjB,MAAM,QAAA;IACN,IAAI,MAAA;IACJ,KAAK,OAAA;IACL,SAAS,WAAA;IACT,UAAU,YAAA;IACV,gBAAgB,kBAAA;CACjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mergeMessages/index.js"],"names":[],"mappings":";AAAA,OAAO,CAAC,iBAAiB,CAAC,CAAC"}
|
|
@@ -1,84 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
7
13
|
var program = require('commander');
|
|
8
|
-
|
|
9
14
|
var fs = require('fs');
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
globSync = _require.sync;
|
|
13
|
-
|
|
14
|
-
var _require2 = require('mkdirp'),
|
|
15
|
-
mkdirpSync = _require2.sync;
|
|
16
|
-
|
|
15
|
+
var globSync = require('glob').sync;
|
|
16
|
+
var mkdirpSync = require('mkdirp').sync;
|
|
17
17
|
var last = require('lodash/last');
|
|
18
|
-
|
|
19
18
|
var MESSAGES_PATTERN = 'build/messages/**/*.json';
|
|
20
19
|
var LANG_DIR = 'locales/';
|
|
21
20
|
var LANG_PATTERN = '';
|
|
22
21
|
var IGNORED = ['translations', 'data'];
|
|
23
|
-
program
|
|
22
|
+
program
|
|
23
|
+
.option('-p, --pattern <value>', 'file pattern')
|
|
24
|
+
.option('-I, --ignore-files <value>', 'array of ignored files')
|
|
25
|
+
.option('-L, --lang-pattern <value>', 'pattern to look for files with languages')
|
|
26
|
+
.option('-l, --lang-dir <dir>', 'folder with languages');
|
|
24
27
|
var rootFolder = "".concat(process.cwd(), "/");
|
|
25
28
|
program.parse(process.argv);
|
|
26
|
-
|
|
27
29
|
if (program.ignoreFiles) {
|
|
28
|
-
|
|
30
|
+
IGNORED = program.ignoreFiles.split(',');
|
|
29
31
|
}
|
|
30
|
-
|
|
31
32
|
if (program.pattern) {
|
|
32
|
-
|
|
33
|
+
MESSAGES_PATTERN = program.pattern;
|
|
33
34
|
}
|
|
34
|
-
|
|
35
35
|
if (program.langDir) {
|
|
36
|
-
|
|
36
|
+
LANG_DIR = program.langDir;
|
|
37
37
|
}
|
|
38
|
-
|
|
39
38
|
if (program.langPattern) {
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
var
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
return _defineProperty({}, locale, JSON.parse(fs.readFileSync(filename, 'utf8')));
|
|
52
|
-
}
|
|
53
|
-
}).reduce(function (acc, localeObj) {
|
|
54
|
-
return _objectSpread(_objectSpread({}, acc), localeObj);
|
|
55
|
-
}, {}); // Aggregates the default messages that were extracted from the example app's
|
|
56
|
-
// React components via the React Intl Babel plugin. An error will be thrown if
|
|
57
|
-
// there are messages in different components that use the same `id`. The result
|
|
58
|
-
// is a flat collection of `id: message` pairs for the app's default locale.
|
|
59
|
-
|
|
60
|
-
var defaultMessages = globSync("".concat(rootFolder).concat(MESSAGES_PATTERN)).map(function (filename) {
|
|
61
|
-
return fs.readFileSync(filename, 'utf8');
|
|
62
|
-
}).map(function (file) {
|
|
63
|
-
return JSON.parse(file);
|
|
64
|
-
}).reduce(function (collection, descriptors) {
|
|
65
|
-
descriptors.forEach(function (_ref2) {
|
|
66
|
-
var id = _ref2.id,
|
|
67
|
-
defaultMessage = _ref2.defaultMessage;
|
|
68
|
-
|
|
69
|
-
if (collection.hasOwnProperty(id)) {
|
|
70
|
-
throw new Error("Duplicate message id: ".concat(id));
|
|
39
|
+
LANG_PATTERN = "".concat(LANG_DIR).concat(program.langPattern);
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
LANG_PATTERN = "".concat(LANG_DIR, "/*.json");
|
|
43
|
+
}
|
|
44
|
+
var mergedTranslations = globSync("".concat(rootFolder).concat(LANG_PATTERN))
|
|
45
|
+
.map(function (filename) {
|
|
46
|
+
var _a;
|
|
47
|
+
var locale = last(filename.split('/')).split('.json')[0];
|
|
48
|
+
if (!IGNORED.includes(locale)) {
|
|
49
|
+
return _a = {}, _a[locale] = JSON.parse(fs.readFileSync(filename, 'utf8')), _a;
|
|
71
50
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
51
|
+
})
|
|
52
|
+
.reduce(function (acc, localeObj) {
|
|
53
|
+
return __assign(__assign({}, acc), localeObj);
|
|
54
|
+
}, {});
|
|
55
|
+
var defaultMessages = globSync("".concat(rootFolder).concat(MESSAGES_PATTERN))
|
|
56
|
+
.map(function (filename) { return fs.readFileSync(filename, 'utf8'); })
|
|
57
|
+
.map(function (file) { return JSON.parse(file); })
|
|
58
|
+
.reduce(function (collection, descriptors) {
|
|
59
|
+
descriptors.forEach(function (_a) {
|
|
60
|
+
var id = _a.id, defaultMessage = _a.defaultMessage;
|
|
61
|
+
if (collection.hasOwnProperty(id)) {
|
|
62
|
+
throw new Error("Duplicate message id: ".concat(id));
|
|
63
|
+
}
|
|
64
|
+
collection[id] = defaultMessage;
|
|
65
|
+
});
|
|
66
|
+
return collection;
|
|
67
|
+
}, {});
|
|
68
|
+
mkdirpSync("".concat(rootFolder).concat(LANG_DIR));
|
|
69
|
+
fs.writeFileSync("".concat(rootFolder).concat(LANG_DIR, "data.json"), JSON.stringify(__assign({ en: defaultMessages || {} }, mergedTranslations), null, 2));
|
|
70
|
+
fs.writeFileSync("".concat(rootFolder).concat(LANG_DIR, "translations.json"), JSON.stringify(__assign({}, defaultMessages) || {}, null, 2));
|
|
71
|
+
//# sourceMappingURL=mergeMessages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeMessages.js","sourceRoot":"","sources":["../../src/mergeMessages/mergeMessages.js"],"names":[],"mappings":";;;;;;;;;;;;AAAA,IAAM,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AACrC,IAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACjB,IAAM,QAAQ,GAAK,OAAO,CAAC,MAAM,CAAC,KAApB,CAAqB;AACnC,IAAM,UAAU,GAAK,OAAO,CAAC,QAAQ,CAAC,KAAtB,CAAuB;AAC/C,IAAM,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAEpC,IAAI,gBAAgB,GAAG,0BAA0B,CAAC;AAClD,IAAI,QAAQ,GAAG,UAAU,CAAC;AAC1B,IAAI,YAAY,GAAG,EAAE,CAAC;AACtB,IAAI,OAAO,GAAG,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;AAEvC,OAAO;KACJ,MAAM,CAAC,uBAAuB,EAAE,cAAc,CAAC;KAC/C,MAAM,CAAC,4BAA4B,EAAE,wBAAwB,CAAC;KAC9D,MAAM,CAAC,4BAA4B,EAAE,0CAA0C,CAAC;KAChF,MAAM,CAAC,sBAAsB,EAAE,uBAAuB,CAAC,CAAC;AAE3D,IAAM,UAAU,GAAG,UAAG,OAAO,CAAC,GAAG,EAAE,MAAG,CAAC;AAEvC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI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AC,IAAI,IAAK,OAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAhB,CAAgB,CAAC;KAC/B,MAAM,CAAC,UAAC,UAAU,EAAE,WAAW;IAC9B,WAAW,CAAC,OAAO,CAAC,UAAC,EAAsB;YAApB,EAAE,QAAA,EAAE,cAAc,oBAAA;QACvC,IAAI,UAAU,CAAC,cAAc,CAAC,EAAE,CAAC,EAAE;YACjC,MAAM,IAAI,KAAK,CAAC,gCAAyB,EAAE,CAAE,CAAC,CAAC;SAChD;QAED,UAAU,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC;IAClC,CAAC,CAAC,CAAC;IACH,OAAO,UAAU,CAAC;AACpB,CAAC,EAAE,EAAE,CAAC,CAAC;AAET,UAAU,CAAC,UAAG,UAAU,SAAG,QAAQ,CAAE,CAAC,CAAC;AAIvC,EAAE,CAAC,aAAa,CAAC,UAAG,UAAU,SAAG,QAAQ,cAAW,EAAE,IAAI,CAAC,SAAS,YAAG,EAAE,EAAE,eAAe,IAAI,EAAE,IAAK,kBAAkB,GAAI,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAErI,EAAE,CAAC,aAAa,CAAC,UAAG,UAAU,SAAG,QAAQ,sBAAmB,EAAE,IAAI,CAAC,SAAS,CAAC,aAAK,eAAe,KAAM,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/parseCvssScore/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Tooltip } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
position: 'left'
|
|
14
|
-
}, /*#__PURE__*/React.createElement("span", null, "N/A"));
|
|
2
|
+
import { Tooltip } from '@patternfly/react-core';
|
|
3
|
+
function parseCvssScore(cvssV2, cvssV3, withLabels) {
|
|
4
|
+
if (withLabels === void 0) { withLabels = false; }
|
|
5
|
+
var v2Tooltip = 'Prior to 2016 (approximately), CVEs were scored with Common Vulnerability Scoring System v2.';
|
|
6
|
+
var naTooltip = 'CVEs published before 2005 (approximately) did not have a CVSS Base Score.';
|
|
7
|
+
return ((cvssV3 && parseFloat(cvssV3).toFixed(1)) ||
|
|
8
|
+
(cvssV2 && (React.createElement(Tooltip, { content: v2Tooltip, position: 'left' },
|
|
9
|
+
React.createElement("span", null, "".concat(parseFloat(cvssV2).toFixed(1)),
|
|
10
|
+
" ",
|
|
11
|
+
withLabels && '(CVSSv2)')))) || (React.createElement(Tooltip, { content: naTooltip, position: 'left' },
|
|
12
|
+
React.createElement("span", null, "N/A"))));
|
|
15
13
|
}
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
export default parseCvssScore;
|
|
15
|
+
//# sourceMappingURL=parseCvssScore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseCvssScore.js","sourceRoot":"","sources":["../../src/parseCvssScore/parseCvssScore.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,SAAS,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,UAAkB;IAAlB,2BAAA,EAAA,kBAAkB;IACxD,IAAM,SAAS,GAAG,8FAA8F,CAAC;IACjH,IAAM,SAAS,GAAG,4EAA4E,CAAC;IAC/F,OAAO,CACL,CAAC,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACzC,CAAC,MAAM,IAAI,CACT,oBAAC,OAAO,IAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM;YAC3C,kCACG,UAAG,UAAU,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE;;gBAAG,UAAU,IAAI,UAAU,CACzD,CACC,CACX,CAAC,IAAI,CACJ,oBAAC,OAAO,IAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM;QAC3C,wCAAgB,CACR,CACX,CACF,CAAC;AACJ,CAAC;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/useInventory/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,cAAc,gBAAgB,CAAC"}
|