mod-arch-shared 1.22.0 → 1.22.1
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/dist/components/DashboardDescriptionListGroup.js +1 -1
- package/dist/components/DashboardSearchField.js +1 -1
- package/dist/components/EditableLabelsDescriptionListGroup.js +1 -1
- package/dist/components/EditableTextDescriptionListGroup.d.ts +1 -1
- package/dist/components/EditableTextDescriptionListGroup.js +2 -2
- package/dist/components/FieldGroupHelpLabelIcon.js +1 -1
- package/dist/components/ResourceNameTooltip.d.ts +1 -1
- package/dist/components/ResourceNameTooltip.js +2 -2
- package/dist/components/SimpleSelect.js +1 -1
- package/dist/components/TypeaheadSelect.js +1 -1
- package/dist/components/WhosMyAdministrator.js +1 -1
- package/dist/components/design/HeaderIcon.d.ts +1 -1
- package/dist/components/design/HeaderIcon.js +2 -2
- package/dist/components/design/InfoGalleryItem.d.ts +1 -1
- package/dist/components/design/InfoGalleryItem.js +2 -2
- package/dist/components/design/TitleWithIcon.d.ts +1 -1
- package/dist/components/design/TitleWithIcon.js +2 -2
- package/dist/components/design/TypeBorderedCard.d.ts +1 -1
- package/dist/components/design/TypedObjectIcon.d.ts +1 -1
- package/dist/components/design/TypedObjectIcon.js +1 -1
- package/dist/components/table/TableRowTitleDescription.js +1 -1
- package/dist/components/table/manageColumns/ManageColumnsModal.js +1 -1
- package/dist/components/table/useCheckboxTable.js +1 -1
- package/dist/types/k8sTypes.d.ts +2 -2
- package/package.json +20 -21
|
@@ -3,7 +3,7 @@ import { ActionList, ActionListItem, Button, DescriptionListDescription, Descrip
|
|
|
3
3
|
import text from '@patternfly/react-styles/css/utilities/Text/text';
|
|
4
4
|
import { CheckIcon, PencilAltIcon, TimesIcon, OutlinedQuestionCircleIcon, } from '@patternfly/react-icons';
|
|
5
5
|
import './DashboardDescriptionListGroup.scss';
|
|
6
|
-
import DashboardPopupIconButton from '
|
|
6
|
+
import DashboardPopupIconButton from './dashboard/DashboardPopupIconButton';
|
|
7
7
|
import { useBrowserUnloadBlocker } from '../utilities/useBrowserUnloadBlocker';
|
|
8
8
|
import NavigationBlockerModal from './NavigationBlockerModal';
|
|
9
9
|
const DashboardDescriptionListGroup = (props) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { InputGroup, InputGroupItem, SearchInput } from '@patternfly/react-core';
|
|
3
|
-
import SimpleSelect from '
|
|
3
|
+
import SimpleSelect from './SimpleSelect';
|
|
4
4
|
import { asEnumMember } from '../utilities/utils';
|
|
5
5
|
// List all the possible search fields here
|
|
6
6
|
export var SearchType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { Label, LabelGroup, Alert, AlertVariant } from '@patternfly/react-core';
|
|
3
3
|
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
|
|
4
|
-
import DashboardDescriptionListGroup from '
|
|
4
|
+
import DashboardDescriptionListGroup from './DashboardDescriptionListGroup';
|
|
5
5
|
export const EditableLabelsDescriptionListGroup = ({ title = 'Labels', contentWhenEmpty = 'No labels', labels, onLabelsChange, isArchive, allExistingKeys, labelProps = {}, isCollapsible = true, overflowCount, onEditingChange, }) => {
|
|
6
6
|
const [isSavingEdits, setIsSavingEdits] = useState(false);
|
|
7
7
|
const [hasSavedEdits, setHasSavedEdits] = useState(false);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { DashboardDescriptionListGroupProps } from '
|
|
2
|
+
import { DashboardDescriptionListGroupProps } from './DashboardDescriptionListGroup';
|
|
3
3
|
type EditableTextDescriptionListGroupProps = Pick<DashboardDescriptionListGroupProps, 'title' | 'contentWhenEmpty'> & {
|
|
4
4
|
value: string;
|
|
5
5
|
saveEditedValue: (value: string) => Promise<void>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Alert, AlertVariant, ExpandableSection, TextArea, TextInput, } from '@patternfly/react-core';
|
|
3
3
|
import spacing from '@patternfly/react-styles/css/utilities/Spacing/spacing';
|
|
4
|
-
import DashboardDescriptionListGroup from '
|
|
5
|
-
import FormFieldset from '
|
|
4
|
+
import DashboardDescriptionListGroup from './DashboardDescriptionListGroup';
|
|
5
|
+
import FormFieldset from './FormFieldset';
|
|
6
6
|
const EditableTextDescriptionListGroup = ({ title, contentWhenEmpty, value, isArchive, saveEditedValue, baseTestId, editableVariant, truncateMaxLines = 12, onEditingChange, }) => {
|
|
7
7
|
const [isEditing, setIsEditing] = React.useState(false);
|
|
8
8
|
const [unsavedValue, setUnsavedValue] = React.useState(value);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Popover } from '@patternfly/react-core';
|
|
3
3
|
import { OutlinedQuestionCircleIcon } from '@patternfly/react-icons';
|
|
4
|
-
import DashboardPopupIconButton from '
|
|
4
|
+
import DashboardPopupIconButton from './dashboard/DashboardPopupIconButton';
|
|
5
5
|
const FieldGroupHelpLabelIcon = ({ content, onClick }) => (React.createElement(Popover, { bodyContent: content },
|
|
6
6
|
React.createElement(DashboardPopupIconButton, { icon: React.createElement(OutlinedQuestionCircleIcon, null), "aria-label": "More info", onClick: onClick })));
|
|
7
7
|
export default FieldGroupHelpLabelIcon;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ClipboardCopy, DescriptionList, DescriptionListDescription, DescriptionListGroup, DescriptionListTerm, Flex, FlexItem, Popover, Stack, StackItem, } from '@patternfly/react-core';
|
|
3
3
|
import { OutlinedQuestionCircleIcon } from '@patternfly/react-icons';
|
|
4
|
-
import '
|
|
5
|
-
import DashboardPopupIconButton from '
|
|
4
|
+
import './NotebookController.scss';
|
|
5
|
+
import DashboardPopupIconButton from './dashboard/DashboardPopupIconButton';
|
|
6
6
|
const ResourceNameTooltip = ({ children, resource, wrap = true, }) => (React.createElement("div", { style: { display: wrap ? 'block' : 'inline-flex' } },
|
|
7
7
|
React.createElement(Flex, { gap: { default: 'gapXs' }, alignItems: { default: 'alignItemsCenter' } },
|
|
8
8
|
React.createElement(FlexItem, null, children),
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { Truncate, MenuToggle,
|
|
3
3
|
// eslint-disable-next-line no-restricted-imports
|
|
4
4
|
Select, SelectList, SelectOption, SelectGroup, Divider, FormHelperText, HelperText, HelperTextItem, Skeleton, } from '@patternfly/react-core';
|
|
5
|
-
import TruncatedText from '
|
|
5
|
+
import TruncatedText from './TruncatedText';
|
|
6
6
|
import './SimpleSelect.scss';
|
|
7
7
|
const SimpleSelect = ({ isDisabled, onChange, options, groupedOptions, placeholder = 'Select...', value, toggleLabel, isFullWidth, icon, dataTestId, toggleProps, previewDescription = true, popperProps, isSkeleton, ...props }) => {
|
|
8
8
|
const [open, setOpen] = React.useState(false);
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
// eslint-disable-next-line no-restricted-imports
|
|
7
7
|
Select, SelectOption, SelectList, MenuToggle, TextInputGroup, TextInputGroupMain, TextInputGroupUtilities, Button, FormHelperText, HelperTextItem, HelperText, } from '@patternfly/react-core';
|
|
8
8
|
import { TimesIcon } from '@patternfly/react-icons';
|
|
9
|
-
import TruncatedText from '
|
|
9
|
+
import TruncatedText from './TruncatedText';
|
|
10
10
|
const defaultNoOptionsFoundMessage = (filter) => `No results found for "${filter}"`;
|
|
11
11
|
const defaultCreateOptionMessage = (newValue) => `Create "${newValue}"`;
|
|
12
12
|
const defaultFilterFunction = (filterValue, options) => options.filter((o) => String(o.content).toLowerCase().includes(filterValue.toLowerCase()));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Button, Popover, PopoverPosition } from '@patternfly/react-core';
|
|
3
3
|
import { OutlinedQuestionCircleIcon } from '@patternfly/react-icons';
|
|
4
|
-
import PopoverListContent from '
|
|
4
|
+
import PopoverListContent from './PopoverListContent';
|
|
5
5
|
const WhosMyAdministrator = ({ buttonLabel = "Who's my administrator?", headerContent, leadText, isInline, contentTestId, linkTestId, popoverPosition = PopoverPosition.bottom, }) => (React.createElement(Popover, { showClose: true, position: popoverPosition, headerContent: headerContent || 'Your administrator might be:', hasAutoWidth: true, maxWidth: "370px", bodyContent: React.createElement(PopoverListContent, { "data-testid": contentTestId, leadText: leadText, listHeading: headerContent ? 'Your administrator might be:' : undefined, listItems: [
|
|
6
6
|
'The person who gave you your username, or who helped you to log in for the first time',
|
|
7
7
|
'Someone in your IT department or help desk',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { sectionTypeBackgroundColor, typedBackgroundColor, sectionTypeIconColor, typedIconColor, } from '
|
|
3
|
-
import TypedObjectIcon from '
|
|
2
|
+
import { sectionTypeBackgroundColor, typedBackgroundColor, sectionTypeIconColor, typedIconColor, } from './utils';
|
|
3
|
+
import TypedObjectIcon from './TypedObjectIcon';
|
|
4
4
|
const HeaderIcon = ({ size = 40, padding = 4, display = 'inline-block', type, sectionType, }) => (React.createElement("div", { style: {
|
|
5
5
|
display,
|
|
6
6
|
width: size,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Button, ButtonVariant, Flex, FlexItem, Stack, StackItem, } from '@patternfly/react-core';
|
|
3
|
-
import { sectionTypeBackgroundColor } from '
|
|
4
|
-
import DividedGalleryItem from '
|
|
3
|
+
import { sectionTypeBackgroundColor } from './utils';
|
|
4
|
+
import DividedGalleryItem from './DividedGalleryItem';
|
|
5
5
|
const HEADER_ICON_SIZE = 40;
|
|
6
6
|
const HEADER_ICON_PADDING = 2;
|
|
7
7
|
const InfoGalleryItem = ({ title, imgSrc, sectionType, description, isOpen, onClick, testId, ...rest }) => (React.createElement(DividedGalleryItem, { "data-testid": testId, ...rest },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Flex, FlexItem } from '@patternfly/react-core';
|
|
3
|
-
import { typedBackgroundColor, typedObjectImage, } from '
|
|
4
|
-
import TypedObjectIcon from '
|
|
3
|
+
import { typedBackgroundColor, typedObjectImage, } from './utils';
|
|
4
|
+
import TypedObjectIcon from './TypedObjectIcon';
|
|
5
5
|
const TitleWithIcon = ({ title, objectType, iconSize = 40, padding = 4, }) => (React.createElement(Flex, { spaceItems: { default: 'spaceItemsSm' }, alignItems: { default: 'alignItemsCenter' } },
|
|
6
6
|
React.createElement(FlexItem, null,
|
|
7
7
|
React.createElement("div", { style: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { CardProps } from '@patternfly/react-core';
|
|
3
|
-
import { ProjectObjectType, SectionType } from '
|
|
3
|
+
import { ProjectObjectType, SectionType } from './utils';
|
|
4
4
|
import './TypeBorderCard.scss';
|
|
5
5
|
type TypeBorderedCardProps = CardProps & {
|
|
6
6
|
objectType?: ProjectObjectType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SVGIconProps } from '@patternfly/react-icons/dist/esm/createIcon';
|
|
3
|
-
import { ProjectObjectType } from '
|
|
3
|
+
import { ProjectObjectType } from './utils';
|
|
4
4
|
type TypedObjectIconProps = SVGIconProps & {
|
|
5
5
|
resourceType: ProjectObjectType;
|
|
6
6
|
useTypedColor?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ProjectObjectType, typedColor } from '
|
|
2
|
+
import { ProjectObjectType, typedColor } from './utils';
|
|
3
3
|
import { AgentsCatalogIcon, GroupIcon, RegisteredModelIcon, McpCatalogIcon, UserIcon, ModelCatalogIcon, ModelRegistryNavigatorIcon, } from '../../images/icons';
|
|
4
4
|
const TypedObjectIcon = ({ resourceType, useTypedColor, style, ...rest }) => {
|
|
5
5
|
let Icon;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Content } from '@patternfly/react-core';
|
|
3
|
-
import MarkdownView from '
|
|
3
|
+
import MarkdownView from '../MarkdownView';
|
|
4
4
|
const TableRowTitleDescription = ({ title, description,
|
|
5
5
|
// resource,
|
|
6
6
|
subtitle, descriptionAsMarkdown, label, }) => {
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { Button, Checkbox, EmptyState, EmptyStateBody, EmptyStateVariant, Flex, FlexItem, Label, Stack, StackItem, Tooltip, } from '@patternfly/react-core';
|
|
3
3
|
import { SearchIcon } from '@patternfly/react-icons';
|
|
4
4
|
import { DragDropSort, } from '@patternfly/react-drag-drop';
|
|
5
|
-
import ContentModal from '
|
|
5
|
+
import ContentModal from '../../modals/ContentModal';
|
|
6
6
|
import { ManageColumnSearchInput } from './ManageColumnSearchInput';
|
|
7
7
|
import { reorderColumns } from './utils';
|
|
8
8
|
import './ManageColumnsModal.scss';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { useCheckboxTableBase } from '
|
|
2
|
+
import { useCheckboxTableBase } from '.';
|
|
3
3
|
const useCheckboxTable = (dataIds, defaultSelectedIds, persistSelections) => {
|
|
4
4
|
const [selectedIds, setSelectedIds] = React.useState(defaultSelectedIds ?? []);
|
|
5
5
|
return useCheckboxTableBase(dataIds, selectedIds, setSelectedIds, React.useCallback((d) => d, []), { persistSelections });
|
package/dist/types/k8sTypes.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EitherNotBoth } from '
|
|
2
|
-
import { ContainerResources, K8sResourceCommon, NodeSelector, PodAffinity, TolerationEffect, TolerationOperator, Volume, VolumeMount } from '
|
|
1
|
+
import { EitherNotBoth } from './typeHelpers';
|
|
2
|
+
import { ContainerResources, K8sResourceCommon, NodeSelector, PodAffinity, TolerationEffect, TolerationOperator, Volume, VolumeMount } from './common';
|
|
3
3
|
export type K8sCondition = {
|
|
4
4
|
type: string;
|
|
5
5
|
status: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mod-arch-shared",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.1",
|
|
4
4
|
"description": "Shared UI components and utilities for modular architecture micro-frontend projects",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"mod-arch-core": ">=1.22.
|
|
54
|
-
"mod-arch-kubeflow": ">=1.22.
|
|
53
|
+
"mod-arch-core": ">=1.22.1",
|
|
54
|
+
"mod-arch-kubeflow": ">=1.22.1",
|
|
55
55
|
"react": ">=16.8.0",
|
|
56
56
|
"react-dom": ">=16.8.0",
|
|
57
57
|
"react-router-dom": ">=6.4.0"
|
|
@@ -64,42 +64,41 @@
|
|
|
64
64
|
"@testing-library/jest-dom": "^6.6.2",
|
|
65
65
|
"@testing-library/react": "^16.1.0",
|
|
66
66
|
"@types/classnames": "^2.3.1",
|
|
67
|
-
"@types/dompurify": "^3.0.5",
|
|
68
67
|
"@types/jest": "^29.5.13",
|
|
69
68
|
"@types/lodash-es": "^4.17.8",
|
|
70
69
|
"@types/react": "^18.3.1",
|
|
71
70
|
"@types/react-dom": "^18.3.1",
|
|
72
71
|
"@types/showdown": "^2.0.3",
|
|
73
|
-
"@patternfly/react-core": "^6.
|
|
74
|
-
"@patternfly/react-icons": "^6.
|
|
75
|
-
"@patternfly/react-styles": "^6.
|
|
76
|
-
"@patternfly/react-table": "^6.
|
|
77
|
-
"core-js": "^3.
|
|
72
|
+
"@patternfly/react-core": "^6.6.2",
|
|
73
|
+
"@patternfly/react-icons": "^6.6.1",
|
|
74
|
+
"@patternfly/react-styles": "^6.6.1",
|
|
75
|
+
"@patternfly/react-table": "^6.6.2",
|
|
76
|
+
"core-js": "^3.50.0",
|
|
78
77
|
"expect": "^29.7.0",
|
|
79
78
|
"jest": "^29.7.0",
|
|
80
79
|
"jest-environment-jsdom": "^29.7.0",
|
|
81
80
|
"npm-run-all2": "^7.0.1",
|
|
82
81
|
"react": "^18.3.1",
|
|
83
82
|
"react-dom": "^18.3.1",
|
|
84
|
-
"react-router-dom": "^6.30.
|
|
85
|
-
"sass": "^1.
|
|
86
|
-
"ts-jest": "^29.
|
|
87
|
-
"tsc-alias": "^1.
|
|
83
|
+
"react-router-dom": "^6.30.6",
|
|
84
|
+
"sass": "^1.103.1",
|
|
85
|
+
"ts-jest": "^29.4.12",
|
|
86
|
+
"tsc-alias": "^1.9.3",
|
|
88
87
|
"typescript": "^5.0.4",
|
|
89
|
-
"mod-arch-core": "1.22.
|
|
90
|
-
"mod-arch-kubeflow": "1.22.
|
|
88
|
+
"mod-arch-core": "1.22.1",
|
|
89
|
+
"mod-arch-kubeflow": "1.22.1"
|
|
91
90
|
},
|
|
92
91
|
"dependencies": {
|
|
93
|
-
"@patternfly/patternfly": "^6.
|
|
94
|
-
"@patternfly/react-drag-drop": "^6.
|
|
95
|
-
"classnames": "^2.
|
|
96
|
-
"dompurify": "^3.4.
|
|
92
|
+
"@patternfly/patternfly": "^6.6.1",
|
|
93
|
+
"@patternfly/react-drag-drop": "^6.6.2",
|
|
94
|
+
"classnames": "^2.5.1",
|
|
95
|
+
"dompurify": "^3.4.14",
|
|
97
96
|
"lodash-es": "^4.18.1",
|
|
98
97
|
"showdown": "^2.1.0"
|
|
99
98
|
},
|
|
100
99
|
"optionalDependencies": {
|
|
101
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
102
|
-
"@typescript-eslint/parser": "^8.
|
|
100
|
+
"@typescript-eslint/eslint-plugin": "^8.69.0",
|
|
101
|
+
"@typescript-eslint/parser": "^8.69.0",
|
|
103
102
|
"eslint": "^8.57.0",
|
|
104
103
|
"eslint-config-prettier": "^9.1.0",
|
|
105
104
|
"eslint-import-resolver-node": "^0.3.7",
|