@sphereon/ui-components.ssi-react 0.3.1-unstable.3 → 0.4.0
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/views/ContactViewItem/index.d.ts +10 -0
- package/dist/components/views/ContactViewItem/index.js +9 -0
- package/dist/components/views/FormView/index.d.ts +2 -2
- package/dist/components/views/FormView/index.js +47 -2
- package/dist/components/views/SSICredentialCardView/index.d.ts +1 -0
- package/dist/components/views/SSICredentialCardView/index.js +3 -3
- package/dist/helpers/DateHelper/index.d.ts +3 -0
- package/dist/helpers/DateHelper/index.js +45 -0
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.js +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/styles/components/components/ContactViewItem/index.d.ts +10 -0
- package/dist/styles/components/components/ContactViewItem/index.js +23 -0
- package/dist/styles/components/components/DropDownListItem/index.js +10 -0
- package/dist/styles/components/components/index.d.ts +1 -0
- package/dist/styles/components/components/index.js +1 -0
- package/package.json +5 -4
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { CredentialRole, IImageAttributes } from '@sphereon/ssi-sdk.data-store';
|
|
3
|
+
export interface Props {
|
|
4
|
+
name: string;
|
|
5
|
+
uri?: string;
|
|
6
|
+
logo?: IImageAttributes;
|
|
7
|
+
roles: Array<CredentialRole>;
|
|
8
|
+
}
|
|
9
|
+
declare const ContactViewItem: FC<Props>;
|
|
10
|
+
export default ContactViewItem;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import SSILogo from '../../assets/logos/SSILogo';
|
|
3
|
+
import { ContactViewItemContactDetailsContainerStyled as ContactDetailsContainer, SSITextH3Styled as ContactNameCaption, SSITextH4Styled as ContactRolesCaption, ContactViewItemContactUriCaptionStyled as ContactUriCaption, ContactViewItemContainerStyled as Container, ContactViewItemLogoContainerStyled as LogoContainer, ContactViewItemNewStatusContainerStyled as StatusContainer, } from '../../../styles';
|
|
4
|
+
import { fontColors } from '@sphereon/ui-components.core';
|
|
5
|
+
const ContactViewItem = (props) => {
|
|
6
|
+
const { name, uri, roles, logo } = props;
|
|
7
|
+
return (_jsxs(Container, { children: [_jsx(StatusContainer, {}), _jsx(LogoContainer, { children: _jsx(SSILogo, { logo: logo, color: fontColors.dark }) }), _jsxs("div", { children: [_jsxs(ContactDetailsContainer, { children: [_jsx(ContactNameCaption, { children: name }), _jsx(ContactRolesCaption, { children: roles.join(', ') })] }), _jsx(ContactUriCaption, { children: uri })] })] }));
|
|
8
|
+
};
|
|
9
|
+
export default ContactViewItem;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties,
|
|
1
|
+
import { CSSProperties, ReactElement } from 'react';
|
|
2
2
|
import { JsonFormsCellRendererRegistryEntry, JsonFormsRendererRegistryEntry, JsonSchema, Middleware, UISchemaElement, ValidationMode } from '@jsonforms/core';
|
|
3
3
|
import { JSONFormState } from '../../../types';
|
|
4
4
|
import Ajv from 'ajv';
|
|
@@ -16,5 +16,5 @@ type Props<DataType = Record<any, any>> = {
|
|
|
16
16
|
readonly?: boolean;
|
|
17
17
|
config?: any;
|
|
18
18
|
};
|
|
19
|
-
declare const FormView:
|
|
19
|
+
declare const FormView: (props: Props) => ReactElement;
|
|
20
20
|
export default FormView;
|
|
@@ -1,12 +1,57 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
2
3
|
import { JsonForms } from '@jsonforms/react';
|
|
3
4
|
import { materialCells } from '@jsonforms/material-renderers';
|
|
4
5
|
import { jsonFormsMaterialRenderers } from '../../../renders/jsonFormsRenders';
|
|
6
|
+
import { formatDateToISO } from '../../../helpers';
|
|
7
|
+
const initializeDefaultValues = (schema, currentData = {}) => {
|
|
8
|
+
const result = { ...currentData };
|
|
9
|
+
if (!schema.properties) {
|
|
10
|
+
return result;
|
|
11
|
+
}
|
|
12
|
+
Object.entries(schema.properties).forEach(([key, property]) => {
|
|
13
|
+
if (typeof property === 'object') {
|
|
14
|
+
if (property.const && (!(key in result) || !result[key])) {
|
|
15
|
+
result[key] = property.const;
|
|
16
|
+
}
|
|
17
|
+
if (property.default && (!(key in result) || !result[key])) {
|
|
18
|
+
if (property.format?.startsWith('date') || property.format?.startsWith('time')) {
|
|
19
|
+
result[key] = formatDateToISO(property.default, property.format);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
result[key] = property.default;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (property.properties) {
|
|
26
|
+
if (!result[key]) {
|
|
27
|
+
result[key] = {};
|
|
28
|
+
}
|
|
29
|
+
result[key] = initializeDefaultValues(property, result[key]);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
5
35
|
const FormView = (props) => {
|
|
6
36
|
const { data, schema, uiSchema, validationMode = 'ValidateAndShow', renderers = jsonFormsMaterialRenderers, cells = materialCells, style, middleware, ajv, onFormStateChange, readonly = false, config, } = props;
|
|
37
|
+
const [formData, setFormData] = useState(data ?? {});
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
const initializedData = initializeDefaultValues(schema, formData);
|
|
40
|
+
setFormData(initializedData);
|
|
41
|
+
}, [schema]);
|
|
7
42
|
const onFormStateChanged = (state) => {
|
|
8
|
-
|
|
43
|
+
const updatedData = initializeDefaultValues(schema, state.data);
|
|
44
|
+
if (JSON.stringify(updatedData) !== JSON.stringify(state.data)) {
|
|
45
|
+
setFormData(updatedData);
|
|
46
|
+
void onFormStateChange?.({
|
|
47
|
+
...state,
|
|
48
|
+
data: updatedData,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
void onFormStateChange?.(state);
|
|
53
|
+
}
|
|
9
54
|
};
|
|
10
|
-
return (_jsx("div", { style: style, children: _jsx(JsonForms, { schema: schema, uischema: uiSchema, data:
|
|
55
|
+
return (_jsx("div", { style: style, children: _jsx(JsonForms, { schema: schema, uischema: uiSchema, data: formData, renderers: renderers, cells: cells, onChange: onFormStateChanged, validationMode: validationMode, middleware: middleware, ajv: ajv, readonly: readonly, config: config }) }));
|
|
11
56
|
};
|
|
12
57
|
export default FormView;
|
|
@@ -7,7 +7,7 @@ const SSICredentialCardView = (props) => {
|
|
|
7
7
|
const { header, body, footer } = props;
|
|
8
8
|
const { credentialTitle, credentialSubtitle, logo } = props.header ?? {};
|
|
9
9
|
const { issuerName, properties } = props.body ?? {};
|
|
10
|
-
const { credentialStatus, expirationDate } = props.footer ?? {};
|
|
10
|
+
const { credentialStatus, expirationDate, showExpirationDate = true } = props.footer ?? {};
|
|
11
11
|
const { backgroundColor = credentialCardColors.default, backgroundImage, textColor = backgroundColors.primaryLight } = props.display ?? {};
|
|
12
12
|
const getPropertyElementsFrom = (properties) => {
|
|
13
13
|
return properties.slice(0, 2).map((property, index) => (_jsxs(PropertyContainer, { style: {
|
|
@@ -17,8 +17,8 @@ const SSICredentialCardView = (props) => {
|
|
|
17
17
|
};
|
|
18
18
|
return (_jsx(Container, { style: { backgroundColor }, children: _jsx(BackgroundImage, { style: {
|
|
19
19
|
...(backgroundImage?.uri && { background: `url(${backgroundImage.uri})`, backgroundSize: 'cover' }),
|
|
20
|
-
}, children: _jsxs(AlphaContainer, { children: [header && (_jsxs(HeaderContainer, { children: [(!backgroundImage || logo) && (_jsx(LogoContainer, { children: _jsx(SSILogo, { logo: logo, color: textColor }) })), credentialTitle && (_jsxs(TitleContainer, { children: [_jsx(CredentialTitleText, { style: { color: textColor }, children: credentialTitle }), credentialSubtitle && _jsx(CredentialSubtitleText, { style: { color: textColor }, children: credentialSubtitle })] }))] })), body && (_jsx(ContentMainContainer, { children: _jsxs(ContentSubContainer, { children: [issuerName && (_jsx(IssueNameContainer, { children: _jsx(H4Text, { style: { color: textColor }, children: issuerName }) })), properties && _jsx(PropertiesContainer, { children: getPropertyElementsFrom(properties) })] }) })), footer && (_jsxs(FooterContainer, { children: [_jsx(ExpirationDateText, { style: { color: textColor }, children: expirationDate
|
|
20
|
+
}, children: _jsxs(AlphaContainer, { children: [header && (_jsxs(HeaderContainer, { children: [(!backgroundImage || logo) && (_jsx(LogoContainer, { children: _jsx(SSILogo, { logo: logo, color: textColor }) })), credentialTitle && (_jsxs(TitleContainer, { children: [_jsx(CredentialTitleText, { style: { color: textColor }, children: credentialTitle }), credentialSubtitle && _jsx(CredentialSubtitleText, { style: { color: textColor }, children: credentialSubtitle })] }))] })), body && (_jsx(ContentMainContainer, { children: _jsxs(ContentSubContainer, { children: [issuerName && (_jsx(IssueNameContainer, { children: _jsx(H4Text, { style: { color: textColor }, children: issuerName }) })), properties && _jsx(PropertiesContainer, { children: getPropertyElementsFrom(properties) })] }) })), footer && (_jsxs(FooterContainer, { children: [showExpirationDate && (_jsx(ExpirationDateText, { style: { color: textColor }, children: expirationDate
|
|
21
21
|
? `${Localization.translate('credential_card_expires_message')} ${toLocalDateString(expirationDate)}`
|
|
22
|
-
: Localization.translate('credential_status_never_expires_date_label') }), credentialStatus && (_jsx(StatusContainer, { children: credentialStatus && _jsx(SSIStatusLabel, { status: credentialStatus, color: textColor }) }))] }))] }) }) }));
|
|
22
|
+
: Localization.translate('credential_status_never_expires_date_label') })), credentialStatus && (_jsx(StatusContainer, { children: credentialStatus && _jsx(SSIStatusLabel, { status: credentialStatus, color: textColor }) }))] }))] }) }) }));
|
|
23
23
|
};
|
|
24
24
|
export default SSICredentialCardView;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export const formatDate = (dateString, format = 'date-time') => {
|
|
2
|
+
const userDateTimeOpts = Intl.DateTimeFormat().resolvedOptions();
|
|
3
|
+
if (!dateString) {
|
|
4
|
+
return '';
|
|
5
|
+
}
|
|
6
|
+
const date = dateString === 'now' ? new Date() : new Date(dateString);
|
|
7
|
+
if (isNaN(date.getTime())) {
|
|
8
|
+
console.error('Invalid date:', dateString);
|
|
9
|
+
return 'Invalid date';
|
|
10
|
+
}
|
|
11
|
+
const formatOptions = {
|
|
12
|
+
timeZone: userDateTimeOpts.timeZone,
|
|
13
|
+
};
|
|
14
|
+
if (format === 'date-time') {
|
|
15
|
+
formatOptions.dateStyle = 'short';
|
|
16
|
+
formatOptions.timeStyle = 'short';
|
|
17
|
+
}
|
|
18
|
+
else if (format === 'date') {
|
|
19
|
+
formatOptions.dateStyle = 'short';
|
|
20
|
+
}
|
|
21
|
+
else if (format === 'time') {
|
|
22
|
+
formatOptions.timeStyle = 'short';
|
|
23
|
+
}
|
|
24
|
+
return new Intl.DateTimeFormat(userDateTimeOpts.locale, formatOptions).format(date);
|
|
25
|
+
};
|
|
26
|
+
export const formatDateToISO = (dateString, format = 'date-time') => {
|
|
27
|
+
if (!dateString) {
|
|
28
|
+
return '';
|
|
29
|
+
}
|
|
30
|
+
const date = dateString === 'now' ? new Date() : new Date(dateString);
|
|
31
|
+
if (isNaN(date.getTime())) {
|
|
32
|
+
console.error('Invalid date:', dateString);
|
|
33
|
+
return 'Invalid date';
|
|
34
|
+
}
|
|
35
|
+
const isoString = date.toISOString();
|
|
36
|
+
if (format === 'date-time') {
|
|
37
|
+
return isoString.slice(0, 19).replace('T', ' ');
|
|
38
|
+
}
|
|
39
|
+
else if (format === 'date') {
|
|
40
|
+
return isoString.slice(0, 10);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
return isoString.slice(11, 19);
|
|
44
|
+
}
|
|
45
|
+
};
|
package/dist/helpers/index.d.ts
CHANGED
package/dist/helpers/index.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -46,9 +46,10 @@ import TextInputField from './components/fields/TextInputField';
|
|
|
46
46
|
import WarningImage from './components/assets/images/WarningImage';
|
|
47
47
|
import FormView from './components/views/FormView';
|
|
48
48
|
import InformationRequestView from './components/views/InformationRequestView';
|
|
49
|
+
import ContactViewItem from './components/views/ContactViewItem';
|
|
49
50
|
import { Row } from '@tanstack/react-table';
|
|
50
51
|
export * from './styles/fonts';
|
|
51
52
|
export * from './types';
|
|
52
53
|
export * from './helpers';
|
|
53
54
|
export * from './utils';
|
|
54
|
-
export { SSICredentialCardView, CredentialMiniCardView, CredentialMiniCardViewProps, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, IconButton, PrimaryButton, SecondaryButton, DropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, StepMarker, ProgressStepIndicator, PaginationControls, PaginationControlsProps, Row, DocumentIcon, CrossIcon, ImageIcon, MeatBallsIcon, PencilIcon, ViewIcon, CopyIcon, DeleteIcon, FileSelection, ComboBox, DragAndDropBox, PersonPlaceholder, PassportPhotoControl, passportPhotoControlTester, CredentialIssuanceWizardView, CredentialViewItem, JSONDataView, TextInputField, WarningImage, FormView, InformationRequestView, };
|
|
55
|
+
export { SSICredentialCardView, CredentialMiniCardView, CredentialMiniCardViewProps, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, IconButton, PrimaryButton, SecondaryButton, DropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, StepMarker, ProgressStepIndicator, PaginationControls, PaginationControlsProps, Row, DocumentIcon, CrossIcon, ImageIcon, MeatBallsIcon, PencilIcon, ViewIcon, CopyIcon, DeleteIcon, FileSelection, ComboBox, DragAndDropBox, PersonPlaceholder, PassportPhotoControl, passportPhotoControlTester, CredentialIssuanceWizardView, CredentialViewItem, JSONDataView, TextInputField, WarningImage, FormView, InformationRequestView, ContactViewItem, };
|
package/dist/index.js
CHANGED
|
@@ -46,8 +46,9 @@ import TextInputField from './components/fields/TextInputField';
|
|
|
46
46
|
import WarningImage from './components/assets/images/WarningImage';
|
|
47
47
|
import FormView from './components/views/FormView';
|
|
48
48
|
import InformationRequestView from './components/views/InformationRequestView';
|
|
49
|
+
import ContactViewItem from './components/views/ContactViewItem';
|
|
49
50
|
export * from './styles/fonts';
|
|
50
51
|
export * from './types';
|
|
51
52
|
export * from './helpers';
|
|
52
53
|
export * from './utils';
|
|
53
|
-
export { SSICredentialCardView, CredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, IconButton, PrimaryButton, SecondaryButton, DropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, StepMarker, ProgressStepIndicator, PaginationControls, PaginationControlsProps, DocumentIcon, CrossIcon, ImageIcon, MeatBallsIcon, PencilIcon, ViewIcon, CopyIcon, DeleteIcon, FileSelection, ComboBox, DragAndDropBox, PersonPlaceholder, PassportPhotoControl, passportPhotoControlTester, CredentialIssuanceWizardView, CredentialViewItem, JSONDataView, TextInputField, WarningImage, FormView, InformationRequestView, };
|
|
54
|
+
export { SSICredentialCardView, CredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, IconButton, PrimaryButton, SecondaryButton, DropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, StepMarker, ProgressStepIndicator, PaginationControls, PaginationControlsProps, DocumentIcon, CrossIcon, ImageIcon, MeatBallsIcon, PencilIcon, ViewIcon, CopyIcon, DeleteIcon, FileSelection, ComboBox, DragAndDropBox, PersonPlaceholder, PassportPhotoControl, passportPhotoControlTester, CredentialIssuanceWizardView, CredentialViewItem, JSONDataView, TextInputField, WarningImage, FormView, InformationRequestView, ContactViewItem, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ContactViewItemContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, never>> & string;
|
|
5
|
+
export declare const ContactViewItemNewStatusContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export declare const ContactViewItemLogoContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
export declare const ContactViewItemContactDetailsContainerStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export declare const ContactViewItemContactUriCaptionStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
9
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
+
}, never>> & string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { SSIFlexDirectionRowViewStyled } from '../../containers';
|
|
3
|
+
import { SSITextH5Styled } from '../../../fonts';
|
|
4
|
+
export const ContactViewItemContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
|
|
5
|
+
padding: 16px 24px 18px 7px;
|
|
6
|
+
`;
|
|
7
|
+
export const ContactViewItemNewStatusContainerStyled = styled.div `
|
|
8
|
+
height: 10px;
|
|
9
|
+
width: 17px;
|
|
10
|
+
margin: auto 0;
|
|
11
|
+
`;
|
|
12
|
+
export const ContactViewItemLogoContainerStyled = styled.div `
|
|
13
|
+
width: 78px;
|
|
14
|
+
margin: 2.5px 4px 2.5px 0;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
`;
|
|
18
|
+
export const ContactViewItemContactDetailsContainerStyled = styled.div `
|
|
19
|
+
margin-bottom: 6px;
|
|
20
|
+
`;
|
|
21
|
+
export const ContactViewItemContactUriCaptionStyled = styled(SSITextH5Styled) `
|
|
22
|
+
color: #4f4f4f;
|
|
23
|
+
`;
|
|
@@ -7,6 +7,16 @@ export const DropDownListItemContainerStyled = styled(SSIFlexDirectionRowViewSty
|
|
|
7
7
|
align-items: center;
|
|
8
8
|
background-color: ${backgroundColors.primaryLight};
|
|
9
9
|
padding: 10px 16px;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
transition: background-color 0.2s ease;
|
|
12
|
+
|
|
13
|
+
&:hover {
|
|
14
|
+
background-color: ${backgroundColors.lightGrey};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:active {
|
|
18
|
+
background-color: ${backgroundColors.secondaryLight};
|
|
19
|
+
}
|
|
10
20
|
`;
|
|
11
21
|
export const DropDownListItemCaptionContainerStyled = styled(SSITextH2Styled) `
|
|
12
22
|
flex: 1;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ui-components.ssi-react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"description": "SSI UI components for React",
|
|
6
6
|
"repository": "git@github.com:Sphereon-Opensource/UI-Components.git",
|
|
7
7
|
"author": "Sphereon <dev@sphereon.com>",
|
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
"@mui/styled-engine-sc": "^5.14.12",
|
|
41
41
|
"@mui/system": "^5.15.12",
|
|
42
42
|
"@mui/x-date-pickers": "^6.19.5",
|
|
43
|
-
"@sphereon/
|
|
43
|
+
"@sphereon/ssi-sdk.data-store": "^0.33",
|
|
44
|
+
"@sphereon/ui-components.core": "0.4.0",
|
|
44
45
|
"@tanstack/react-table": "^8.9.3",
|
|
45
46
|
"react-json-tree": "^0.18.0",
|
|
46
47
|
"react-loader-spinner": "5.4.5",
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"uint8arrays": "^3.1.1"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"@types/react": "~18.
|
|
54
|
+
"@types/react": "~18.3.18",
|
|
54
55
|
"ajv": "^8.12.0",
|
|
55
56
|
"cpy-cli": "^5.0.0",
|
|
56
57
|
"typescript": "4.9.5"
|
|
@@ -58,5 +59,5 @@
|
|
|
58
59
|
"peerDependencies": {
|
|
59
60
|
"react": ">= 18"
|
|
60
61
|
},
|
|
61
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "c63b21ea1ff8a2aef0b6de301d1a85143d9d8f8e"
|
|
62
63
|
}
|