@procivis/one-react-native-components 0.3.132 → 0.3.143
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/lib/commonjs/components/history/history-list-item-icon.js +2 -0
- package/lib/commonjs/components/history/history-list-item-icon.js.map +1 -1
- package/lib/commonjs/components/proof-request/index.js +1 -12
- package/lib/commonjs/components/proof-request/index.js.map +1 -1
- package/lib/commonjs/components/proof-request/v2/share-credential-v2-group.js.map +1 -1
- package/lib/commonjs/components/proof-request/v2/share-credential-v2.js.map +1 -1
- package/lib/commonjs/ui-components/buttons/scan-button.js +122 -27
- package/lib/commonjs/ui-components/buttons/scan-button.js.map +1 -1
- package/lib/commonjs/ui-components/credential/card/credential-details-card.js +37 -18
- package/lib/commonjs/ui-components/credential/card/credential-details-card.js.map +1 -1
- package/lib/commonjs/ui-components/credential/credential-attribute-item.js +13 -4
- package/lib/commonjs/ui-components/credential/credential-attribute-item.js.map +1 -1
- package/lib/commonjs/ui-components/icons/icons.js +36 -2
- package/lib/commonjs/ui-components/icons/icons.js.map +1 -1
- package/lib/commonjs/ui-components/list/wallet/empty-list.js +2 -1
- package/lib/commonjs/ui-components/list/wallet/empty-list.js.map +1 -1
- package/lib/commonjs/ui-components/notice/wallet-notice.js +4 -2
- package/lib/commonjs/ui-components/notice/wallet-notice.js.map +1 -1
- package/lib/commonjs/ui-components/text/expandableTypography.js +64 -0
- package/lib/commonjs/ui-components/text/expandableTypography.js.map +1 -0
- package/lib/commonjs/ui-components/text/index.js +15 -0
- package/lib/commonjs/ui-components/text/index.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/credential-schemas.js +24 -1
- package/lib/commonjs/utils/hooks/core/credential-schemas.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/proofs.js +1 -1
- package/lib/commonjs/utils/hooks/core/proofs.js.map +1 -1
- package/lib/commonjs/utils/hooks/core/wallet-unit.js +20 -1
- package/lib/commonjs/utils/hooks/core/wallet-unit.js.map +1 -1
- package/lib/commonjs/utils/parsers/credential-sharing-v2.js +34 -7
- package/lib/commonjs/utils/parsers/credential-sharing-v2.js.map +1 -1
- package/lib/commonjs/utils/parsers/credential.js +12 -4
- package/lib/commonjs/utils/parsers/credential.js.map +1 -1
- package/lib/commonjs/utils/parsers/index.js +0 -11
- package/lib/commonjs/utils/parsers/index.js.map +1 -1
- package/lib/commonjs/utils/parsers/query.js +1 -1
- package/lib/commonjs/utils/parsers/query.js.map +1 -1
- package/lib/module/components/history/history-list-item-icon.js +2 -0
- package/lib/module/components/history/history-list-item-icon.js.map +1 -1
- package/lib/module/components/proof-request/index.js +0 -1
- package/lib/module/components/proof-request/index.js.map +1 -1
- package/lib/module/components/proof-request/v2/share-credential-v2-group.js.map +1 -1
- package/lib/module/components/proof-request/v2/share-credential-v2.js.map +1 -1
- package/lib/module/ui-components/buttons/scan-button.js +124 -29
- package/lib/module/ui-components/buttons/scan-button.js.map +1 -1
- package/lib/module/ui-components/credential/card/credential-details-card.js +37 -18
- package/lib/module/ui-components/credential/card/credential-details-card.js.map +1 -1
- package/lib/module/ui-components/credential/credential-attribute-item.js +13 -4
- package/lib/module/ui-components/credential/credential-attribute-item.js.map +1 -1
- package/lib/module/ui-components/icons/icons.js +32 -0
- package/lib/module/ui-components/icons/icons.js.map +1 -1
- package/lib/module/ui-components/list/wallet/empty-list.js +2 -1
- package/lib/module/ui-components/list/wallet/empty-list.js.map +1 -1
- package/lib/module/ui-components/notice/wallet-notice.js +4 -2
- package/lib/module/ui-components/notice/wallet-notice.js.map +1 -1
- package/lib/module/ui-components/text/expandableTypography.js +55 -0
- package/lib/module/ui-components/text/expandableTypography.js.map +1 -0
- package/lib/module/ui-components/text/index.js +2 -1
- package/lib/module/ui-components/text/index.js.map +1 -1
- package/lib/module/utils/hooks/core/credential-schemas.js +24 -1
- package/lib/module/utils/hooks/core/credential-schemas.js.map +1 -1
- package/lib/module/utils/hooks/core/proofs.js +1 -1
- package/lib/module/utils/hooks/core/proofs.js.map +1 -1
- package/lib/module/utils/hooks/core/wallet-unit.js +18 -0
- package/lib/module/utils/hooks/core/wallet-unit.js.map +1 -1
- package/lib/module/utils/parsers/credential-sharing-v2.js +32 -6
- package/lib/module/utils/parsers/credential-sharing-v2.js.map +1 -1
- package/lib/module/utils/parsers/credential.js +10 -4
- package/lib/module/utils/parsers/credential.js.map +1 -1
- package/lib/module/utils/parsers/index.js +0 -1
- package/lib/module/utils/parsers/index.js.map +1 -1
- package/lib/module/utils/parsers/query.js +1 -1
- package/lib/module/utils/parsers/query.js.map +1 -1
- package/lib/typescript/components/proof-request/index.d.ts +0 -1
- package/lib/typescript/components/proof-request/v2/share-credential-v2-group.d.ts +8 -1
- package/lib/typescript/components/proof-request/v2/share-credential-v2.d.ts +1 -1
- package/lib/typescript/ui-components/buttons/scan-button.d.ts +9 -3
- package/lib/typescript/ui-components/credential/card/credential-details-card.d.ts +3 -0
- package/lib/typescript/ui-components/credential/credential-attribute-item.d.ts +3 -0
- package/lib/typescript/ui-components/icons/icons.d.ts +2 -0
- package/lib/typescript/ui-components/list/wallet/empty-list.d.ts +2 -2
- package/lib/typescript/ui-components/text/expandableTypography.d.ts +10 -0
- package/lib/typescript/ui-components/text/index.d.ts +2 -1
- package/lib/typescript/ui-components/text/typography.d.ts +14 -14
- package/lib/typescript/utils/hooks/app-state.d.ts +1 -1
- package/lib/typescript/utils/hooks/core/proofs.d.ts +2 -2
- package/lib/typescript/utils/hooks/core/wallet-unit.d.ts +5 -1
- package/lib/typescript/utils/parsers/credential-sharing-v2.d.ts +10 -2
- package/lib/typescript/utils/parsers/credential.d.ts +2 -1
- package/lib/typescript/utils/parsers/index.d.ts +0 -1
- package/package.json +5 -4
- package/src/components/history/history-list-item-icon.tsx +2 -0
- package/src/components/proof-request/index.ts +0 -1
- package/src/components/proof-request/v2/share-credential-v2-group.tsx +9 -2
- package/src/components/proof-request/v2/share-credential-v2.tsx +1 -1
- package/src/ui-components/buttons/scan-button.tsx +130 -38
- package/src/ui-components/credential/card/credential-details-card.tsx +46 -19
- package/src/ui-components/credential/credential-attribute-item.tsx +15 -3
- package/src/ui-components/icons/icons.tsx +24 -0
- package/src/ui-components/list/wallet/empty-list.tsx +11 -8
- package/src/ui-components/notice/wallet-notice.tsx +4 -2
- package/src/ui-components/text/expandableTypography.tsx +71 -0
- package/src/ui-components/text/index.ts +2 -1
- package/src/utils/hooks/core/credential-schemas.ts +23 -1
- package/src/utils/hooks/core/proofs.ts +3 -3
- package/src/utils/hooks/core/wallet-unit.ts +21 -0
- package/src/utils/parsers/credential-sharing-v2.tsx +71 -6
- package/src/utils/parsers/credential.ts +14 -3
- package/src/utils/parsers/index.ts +0 -1
- package/src/utils/parsers/query.ts +0 -1
- package/lib/commonjs/components/proof-request/v1/group.js +0 -35
- package/lib/commonjs/components/proof-request/v1/group.js.map +0 -1
- package/lib/commonjs/components/proof-request/v1/index.js +0 -39
- package/lib/commonjs/components/proof-request/v1/index.js.map +0 -1
- package/lib/commonjs/components/proof-request/v1/select-credential.js +0 -53
- package/lib/commonjs/components/proof-request/v1/select-credential.js.map +0 -1
- package/lib/commonjs/components/proof-request/v1/share-credential.js +0 -110
- package/lib/commonjs/components/proof-request/v1/share-credential.js.map +0 -1
- package/lib/commonjs/utils/parsers/credential-sharing.js +0 -263
- package/lib/commonjs/utils/parsers/credential-sharing.js.map +0 -1
- package/lib/module/components/proof-request/v1/group.js +0 -27
- package/lib/module/components/proof-request/v1/group.js.map +0 -1
- package/lib/module/components/proof-request/v1/index.js +0 -4
- package/lib/module/components/proof-request/v1/index.js.map +0 -1
- package/lib/module/components/proof-request/v1/select-credential.js +0 -44
- package/lib/module/components/proof-request/v1/select-credential.js.map +0 -1
- package/lib/module/components/proof-request/v1/share-credential.js +0 -101
- package/lib/module/components/proof-request/v1/share-credential.js.map +0 -1
- package/lib/module/utils/parsers/credential-sharing.js +0 -250
- package/lib/module/utils/parsers/credential-sharing.js.map +0 -1
- package/lib/typescript/components/proof-request/v1/group.d.ts +0 -2
- package/lib/typescript/components/proof-request/v1/index.d.ts +0 -3
- package/lib/typescript/components/proof-request/v1/select-credential.d.ts +0 -15
- package/lib/typescript/components/proof-request/v1/share-credential.d.ts +0 -27
- package/lib/typescript/utils/parsers/credential-sharing.d.ts +0 -20
- package/src/components/proof-request/v1/group.tsx +0 -26
- package/src/components/proof-request/v1/index.ts +0 -3
- package/src/components/proof-request/v1/select-credential.tsx +0 -55
- package/src/components/proof-request/v1/share-credential.tsx +0 -159
- package/src/utils/parsers/credential-sharing.tsx +0 -404
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getQueryKey","queryParams","params","map","param","getQueryKeyFromCredentialListQueryParams","getQueryKeyFromHistoryListQueryParams","getQueryKeyFromCredentialSchemaListQueryParams","getQueryKeyFromProofSchemaListQueryParams","getQueryKeyFromProofListQueryParams","getQueryKeyFromDidListQueryParams","getQueryKeyFromIdentifierListQueryParams"],"sources":["query.ts"],"sourcesContent":["import {\n CredentialListQuery,\n CredentialSchemaListQuery,\n DidListQuery,\n HistoryListQuery,\n IdentifierListQuery,\n ProofListQuery,\n ProofSchemaListQuery,\n} from '@procivis/react-native-one-core';\n\ntype QueryKey<ListQuery, ParamList> = ParamList extends ReadonlyArray<keyof ListQuery> // all params are inside the ListQuery\n ? keyof ListQuery extends ParamList[number] // all ListQuery fields are in the params\n ? Array<ListQuery[keyof ListQuery]>\n : void\n : void; // otherwise produce a wrong return type which should trigger compilation error\n\n/** Typecheck that all query params are included in the query key */\nfunction getQueryKey<ListQuery extends {}, ParamList extends ReadonlyArray<keyof ListQuery>>(\n queryParams: ListQuery,\n params: ParamList,\n): QueryKey<ListQuery, ParamList> {\n return params.map((param) => queryParams[param]) as QueryKey<ListQuery, ParamList>;\n}\n\nexport const getQueryKeyFromCredentialListQueryParams = (queryParams: Partial<CredentialListQuery> = {}) => {\n return getQueryKey(queryParams, [\n 'page',\n 'pageSize',\n 'organisationId',\n 'name',\n 'searchText',\n 'searchType',\n 'sort',\n 'sortDirection',\n 'exact',\n 'roles',\n 'ids',\n 'states',\n 'include',\n 'profiles',\n 'credentialSchemaIds',\n 'createdDateAfter',\n 'createdDateBefore',\n 'lastModifiedAfter',\n 'lastModifiedBefore',\n 'issuanceDateAfter',\n 'issuanceDateBefore',\n 'revocationDateAfter',\n 'revocationDateBefore',\n 'types',\n 'parentId',\n ]);\n};\n\nexport const getQueryKeyFromHistoryListQueryParams = (queryParams: Partial<HistoryListQuery> = {}) => {\n return getQueryKey(queryParams, [\n 'page',\n 'pageSize',\n 'sort',\n 'sortDirection',\n 'organisationId',\n 'entityIds',\n 'actions',\n 'entityTypes',\n 'createdDateAfter',\n 'createdDateBefore',\n 'identifierId',\n 'credentialId',\n 'credentialSchemaId',\n 'proofId',\n 'proofSchemaId',\n 'search',\n 'users',\n ]);\n};\n\nexport const getQueryKeyFromCredentialSchemaListQueryParams = (\n queryParams: Partial<CredentialSchemaListQuery> = {},\n) => {\n return getQueryKey(queryParams, [\n 'page',\n 'pageSize',\n 'organisationId',\n 'name',\n 'sort',\n 'sortDirection',\n 'exact',\n 'ids',\n 'include',\n '
|
|
1
|
+
{"version":3,"names":["getQueryKey","queryParams","params","map","param","getQueryKeyFromCredentialListQueryParams","getQueryKeyFromHistoryListQueryParams","getQueryKeyFromCredentialSchemaListQueryParams","getQueryKeyFromProofSchemaListQueryParams","getQueryKeyFromProofListQueryParams","getQueryKeyFromDidListQueryParams","getQueryKeyFromIdentifierListQueryParams"],"sources":["query.ts"],"sourcesContent":["import {\n CredentialListQuery,\n CredentialSchemaListQuery,\n DidListQuery,\n HistoryListQuery,\n IdentifierListQuery,\n ProofListQuery,\n ProofSchemaListQuery,\n} from '@procivis/react-native-one-core';\n\ntype QueryKey<ListQuery, ParamList> = ParamList extends ReadonlyArray<keyof ListQuery> // all params are inside the ListQuery\n ? keyof ListQuery extends ParamList[number] // all ListQuery fields are in the params\n ? Array<ListQuery[keyof ListQuery]>\n : void\n : void; // otherwise produce a wrong return type which should trigger compilation error\n\n/** Typecheck that all query params are included in the query key */\nfunction getQueryKey<ListQuery extends {}, ParamList extends ReadonlyArray<keyof ListQuery>>(\n queryParams: ListQuery,\n params: ParamList,\n): QueryKey<ListQuery, ParamList> {\n return params.map((param) => queryParams[param]) as QueryKey<ListQuery, ParamList>;\n}\n\nexport const getQueryKeyFromCredentialListQueryParams = (queryParams: Partial<CredentialListQuery> = {}) => {\n return getQueryKey(queryParams, [\n 'page',\n 'pageSize',\n 'organisationId',\n 'name',\n 'searchText',\n 'searchType',\n 'sort',\n 'sortDirection',\n 'exact',\n 'roles',\n 'ids',\n 'states',\n 'include',\n 'profiles',\n 'credentialSchemaIds',\n 'createdDateAfter',\n 'createdDateBefore',\n 'lastModifiedAfter',\n 'lastModifiedBefore',\n 'issuanceDateAfter',\n 'issuanceDateBefore',\n 'revocationDateAfter',\n 'revocationDateBefore',\n 'types',\n 'parentId',\n ]);\n};\n\nexport const getQueryKeyFromHistoryListQueryParams = (queryParams: Partial<HistoryListQuery> = {}) => {\n return getQueryKey(queryParams, [\n 'page',\n 'pageSize',\n 'sort',\n 'sortDirection',\n 'organisationId',\n 'entityIds',\n 'actions',\n 'entityTypes',\n 'createdDateAfter',\n 'createdDateBefore',\n 'identifierId',\n 'credentialId',\n 'credentialSchemaId',\n 'proofId',\n 'proofSchemaId',\n 'search',\n 'users',\n ]);\n};\n\nexport const getQueryKeyFromCredentialSchemaListQueryParams = (\n queryParams: Partial<CredentialSchemaListQuery> = {},\n) => {\n return getQueryKey(queryParams, [\n 'page',\n 'pageSize',\n 'organisationId',\n 'name',\n 'sort',\n 'sortDirection',\n 'exact',\n 'ids',\n 'include',\n 'schemaIds',\n 'formats',\n 'usesBatchIssuance',\n 'isMultiformatSchema',\n 'createdDateAfter',\n 'createdDateBefore',\n 'lastModifiedAfter',\n 'lastModifiedBefore',\n ]);\n};\n\nexport const getQueryKeyFromProofSchemaListQueryParams = (queryParams: Partial<ProofSchemaListQuery> = {}) => {\n return getQueryKey(queryParams, [\n 'page',\n 'pageSize',\n 'organisationId',\n 'name',\n 'sort',\n 'sortDirection',\n 'exact',\n 'ids',\n 'formats',\n 'createdDateAfter',\n 'createdDateBefore',\n 'lastModifiedAfter',\n 'lastModifiedBefore',\n ]);\n};\n\nexport const getQueryKeyFromProofListQueryParams = (queryParams: Partial<ProofListQuery> = {}) => {\n return getQueryKey(queryParams, [\n 'page',\n 'pageSize',\n 'organisationId',\n 'sort',\n 'sortDirection',\n 'name',\n 'ids',\n 'proofStates',\n 'proofRoles',\n 'proofSchemaIds',\n 'exact',\n 'profiles',\n 'createdDateAfter',\n 'createdDateBefore',\n 'lastModifiedAfter',\n 'lastModifiedBefore',\n 'requestedDateAfter',\n 'requestedDateBefore',\n 'completedDateAfter',\n 'completedDateBefore',\n ]);\n};\n\nexport const getQueryKeyFromDidListQueryParams = (queryParams: Partial<DidListQuery> = {}) => {\n return getQueryKey(queryParams, [\n 'page',\n 'pageSize',\n 'organisationId',\n 'sort',\n 'sortDirection',\n 'name',\n 'did',\n 'type',\n 'deactivated',\n 'exact',\n 'keyAlgorithms',\n 'keyRoles',\n 'keyStorages',\n 'keyIds',\n 'didMethods',\n ]);\n};\n\nexport const getQueryKeyFromIdentifierListQueryParams = (queryParams: Partial<IdentifierListQuery> = {}) => {\n return getQueryKey(queryParams, [\n 'page',\n 'pageSize',\n 'organisationId',\n 'ids',\n 'sort',\n 'sortDirection',\n 'name',\n 'types',\n 'states',\n 'exact',\n 'didMethods',\n 'isRemote',\n 'keyAlgorithms',\n 'keyRoles',\n 'keyStorages',\n 'certificateRoles',\n 'certificateRolesMatchMode',\n 'trustIssuanceSchemaId',\n 'trustVerificationSchemaId',\n 'createdDateAfter',\n 'createdDateBefore',\n 'lastModifiedAfter',\n 'lastModifiedBefore',\n ]);\n};\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { CredentialListItem, PresentationDefinitionV2, PresentationDefinitionV2Claim, PresentationSubmitV2CredentialRequest } from '@procivis/react-native-one-core';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
import { ImageSourcePropType, StyleProp, ViewStyle } from 'react-native';
|
|
4
|
-
import {
|
|
4
|
+
import { ShareCredentialCardLabels } from '../../../utils';
|
|
5
5
|
export type CredentialQuerySelection = Record<string, PresentationSubmitV2CredentialRequest | PresentationSubmitV2CredentialRequest[]>;
|
|
6
|
+
export type ShareCredentialLabels = ShareCredentialCardLabels & {
|
|
7
|
+
invalidCredentialNotice: string;
|
|
8
|
+
multipleCredentialsNotice: string;
|
|
9
|
+
multipleCredentialsSelect: string;
|
|
10
|
+
revokedCredentialNotice: string;
|
|
11
|
+
suspendedCredentialNotice: string;
|
|
12
|
+
};
|
|
6
13
|
export type ShareCredentialGroupLabels = ShareCredentialLabels & {
|
|
7
14
|
groupHeader: string;
|
|
8
15
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApplicableCredentialOrFailureHint, CredentialListItem, PresentationDefinitionV2Claim } from '@procivis/react-native-one-core';
|
|
2
2
|
import React, { FunctionComponent } from 'react';
|
|
3
3
|
import { ImageSourcePropType, StyleProp, ViewStyle } from 'react-native';
|
|
4
|
-
import { ShareCredentialLabels } from '
|
|
4
|
+
import { ShareCredentialLabels } from './share-credential-v2-group';
|
|
5
5
|
export type ShareCredentialV2Props = {
|
|
6
6
|
credentialQuery: ApplicableCredentialOrFailureHint;
|
|
7
7
|
credentialRequestId: string;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export type ScanButtonProps =
|
|
4
|
-
|
|
2
|
+
import { StyleProp, View, ViewStyle } from 'react-native';
|
|
3
|
+
export type ScanButtonProps = {
|
|
4
|
+
onSignPress?: () => void;
|
|
5
|
+
onIssuePress?: () => void;
|
|
6
|
+
onScanPress: () => void;
|
|
7
|
+
testID?: string;
|
|
8
|
+
style?: StyleProp<ViewStyle>;
|
|
9
|
+
};
|
|
10
|
+
declare const ScanButton: React.ForwardRefExoticComponent<ScanButtonProps & React.RefAttributes<React.ForwardRefExoticComponent<import("react-native").TouchableOpacityProps & React.RefAttributes<View>>>>;
|
|
5
11
|
export default ScanButton;
|
|
@@ -11,6 +11,9 @@ export type CredentialDetailsCardProps = ViewProps & {
|
|
|
11
11
|
onImagePreview?: (name: string, image: ImageSourcePropType) => void;
|
|
12
12
|
onAttributeSelected?: (id: string, selected: boolean) => void;
|
|
13
13
|
showAllButtonLabel?: string;
|
|
14
|
+
showLessButtonLabel?: string;
|
|
15
|
+
moreLabel?: string;
|
|
16
|
+
lessLabel?: string;
|
|
14
17
|
};
|
|
15
18
|
declare const CredentialDetailsCard: FC<CredentialDetailsCardProps>;
|
|
16
19
|
export default CredentialDetailsCard;
|
|
@@ -44,6 +44,9 @@ export type CredentialAttributeItemProps = CredentialAttribute & {
|
|
|
44
44
|
onImagePreview?: (name: string, image: ImageSourcePropType) => void;
|
|
45
45
|
onPress?: (id: string, selected: boolean) => void;
|
|
46
46
|
style?: StyleProp<ViewStyle>;
|
|
47
|
+
isExpanded?: boolean;
|
|
48
|
+
moreLabel?: string;
|
|
49
|
+
lessLabel?: string;
|
|
47
50
|
};
|
|
48
51
|
declare const CredentialAttributeItem: FC<CredentialAttributeItemProps>;
|
|
49
52
|
export default CredentialAttributeItem;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { SvgProps } from 'react-native-svg';
|
|
3
3
|
export declare const ScanIcon: FC<SvgProps>;
|
|
4
|
+
export declare const IssueIcon: FC<SvgProps>;
|
|
5
|
+
export declare const SignIcon: FC<SvgProps>;
|
|
4
6
|
export declare const HistoryIcon: FC<SvgProps>;
|
|
5
7
|
export declare const OptionsIcon: FC<SvgProps>;
|
|
6
8
|
export declare const BackIcon: FC<SvgProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TypographyProps } from './typography';
|
|
3
|
+
export type ExpandableTypographyProps = TypographyProps & {
|
|
4
|
+
numberOfLines?: number;
|
|
5
|
+
hideExpandButton?: boolean;
|
|
6
|
+
moreLabel?: string;
|
|
7
|
+
lessLabel?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const ExpandableTypography: React.FC<ExpandableTypographyProps>;
|
|
10
|
+
export default ExpandableTypography;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import ExpandableTypography, { ExpandableTypographyProps } from './expandableTypography';
|
|
1
2
|
import type { TypographyProps } from './typography';
|
|
2
3
|
import Typography from './typography';
|
|
3
|
-
export { Typography, TypographyProps };
|
|
4
|
+
export { ExpandableTypography, ExpandableTypographyProps, Typography, TypographyProps };
|
|
@@ -7,87 +7,87 @@ declare const presets: {
|
|
|
7
7
|
readonly lineHeight: 36;
|
|
8
8
|
readonly letterSpacing: 0.2;
|
|
9
9
|
readonly fontFamily?: string | undefined;
|
|
10
|
-
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" |
|
|
10
|
+
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "black" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "condensed" | 300 | "light" | "regular" | 100 | 200 | 400 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "medium" | "semibold" | "condensedBold" | "heavy" | undefined;
|
|
11
11
|
};
|
|
12
12
|
readonly l: {
|
|
13
13
|
readonly fontSize: 24;
|
|
14
14
|
readonly lineHeight: 33;
|
|
15
15
|
readonly fontFamily?: string | undefined;
|
|
16
|
-
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" |
|
|
16
|
+
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "black" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "condensed" | 300 | "light" | "regular" | 100 | 200 | 400 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "medium" | "semibold" | "condensedBold" | "heavy" | undefined;
|
|
17
17
|
};
|
|
18
18
|
readonly 'l/line-height-large': {
|
|
19
19
|
readonly fontSize: 24;
|
|
20
20
|
readonly lineHeight: 28;
|
|
21
21
|
readonly fontFamily?: string | undefined;
|
|
22
|
-
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" |
|
|
22
|
+
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "black" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "condensed" | 300 | "light" | "regular" | 100 | 200 | 400 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "medium" | "semibold" | "condensedBold" | "heavy" | undefined;
|
|
23
23
|
};
|
|
24
24
|
readonly regular: {
|
|
25
25
|
readonly fontSize: 17;
|
|
26
26
|
readonly lineHeight: 24;
|
|
27
27
|
readonly fontFamily?: string | undefined;
|
|
28
|
-
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" |
|
|
28
|
+
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "black" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "condensed" | 300 | "light" | "regular" | 100 | 200 | 400 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "medium" | "semibold" | "condensedBold" | "heavy" | undefined;
|
|
29
29
|
};
|
|
30
30
|
readonly m: {
|
|
31
31
|
readonly fontSize: 17;
|
|
32
32
|
readonly lineHeight: 22;
|
|
33
33
|
readonly letterSpacing: -0.2;
|
|
34
34
|
readonly fontFamily?: string | undefined;
|
|
35
|
-
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" |
|
|
35
|
+
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "black" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "condensed" | 300 | "light" | "regular" | 100 | 200 | 400 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "medium" | "semibold" | "condensedBold" | "heavy" | undefined;
|
|
36
36
|
};
|
|
37
37
|
readonly 'm/heading': {
|
|
38
38
|
readonly fontSize: 17;
|
|
39
39
|
readonly lineHeight: 22;
|
|
40
40
|
readonly letterSpacing: -0.2;
|
|
41
41
|
readonly fontFamily?: string | undefined;
|
|
42
|
-
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" |
|
|
42
|
+
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "black" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "condensed" | 300 | "light" | "regular" | 100 | 200 | 400 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "medium" | "semibold" | "condensedBold" | "heavy" | undefined;
|
|
43
43
|
};
|
|
44
44
|
readonly s: {
|
|
45
45
|
readonly fontSize: 14;
|
|
46
46
|
readonly lineHeight: 22;
|
|
47
47
|
readonly fontFamily?: string | undefined;
|
|
48
|
-
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" |
|
|
48
|
+
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "black" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "condensed" | 300 | "light" | "regular" | 100 | 200 | 400 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "medium" | "semibold" | "condensedBold" | "heavy" | undefined;
|
|
49
49
|
};
|
|
50
50
|
readonly 's/line-height-capped': {
|
|
51
51
|
readonly fontSize: 14;
|
|
52
52
|
readonly lineHeight: 22;
|
|
53
53
|
readonly letterSpacing: -0.2;
|
|
54
54
|
readonly fontFamily?: string | undefined;
|
|
55
|
-
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" |
|
|
55
|
+
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "black" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "condensed" | 300 | "light" | "regular" | 100 | 200 | 400 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "medium" | "semibold" | "condensedBold" | "heavy" | undefined;
|
|
56
56
|
};
|
|
57
57
|
readonly 's/line-height-small': {
|
|
58
58
|
readonly fontSize: 14;
|
|
59
59
|
readonly lineHeight: 18;
|
|
60
60
|
readonly letterSpacing: 0.3;
|
|
61
61
|
readonly fontFamily?: string | undefined;
|
|
62
|
-
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" |
|
|
62
|
+
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "black" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "condensed" | 300 | "light" | "regular" | 100 | 200 | 400 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "medium" | "semibold" | "condensedBold" | "heavy" | undefined;
|
|
63
63
|
};
|
|
64
64
|
readonly 's/code': {
|
|
65
65
|
readonly fontSize: 14;
|
|
66
66
|
readonly lineHeight: 22;
|
|
67
67
|
readonly letterSpacing: 0.2;
|
|
68
68
|
readonly fontFamily?: string | undefined;
|
|
69
|
-
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" |
|
|
69
|
+
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "black" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "condensed" | 300 | "light" | "regular" | 100 | 200 | 400 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "medium" | "semibold" | "condensedBold" | "heavy" | undefined;
|
|
70
70
|
};
|
|
71
71
|
readonly xs: {
|
|
72
72
|
readonly fontSize: 12;
|
|
73
73
|
readonly lineHeight: 22;
|
|
74
74
|
readonly letterSpacing: -0.1;
|
|
75
75
|
readonly fontFamily?: string | undefined;
|
|
76
|
-
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" |
|
|
76
|
+
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "black" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "condensed" | 300 | "light" | "regular" | 100 | 200 | 400 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "medium" | "semibold" | "condensedBold" | "heavy" | undefined;
|
|
77
77
|
};
|
|
78
78
|
readonly 'xs/line-height-small': {
|
|
79
79
|
readonly fontSize: 12;
|
|
80
80
|
readonly lineHeight: 18;
|
|
81
81
|
readonly letterSpacing: 0.3;
|
|
82
82
|
readonly fontFamily?: string | undefined;
|
|
83
|
-
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" |
|
|
83
|
+
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "black" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "condensed" | 300 | "light" | "regular" | 100 | 200 | 400 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "medium" | "semibold" | "condensedBold" | "heavy" | undefined;
|
|
84
84
|
};
|
|
85
85
|
readonly 'xs/code': {
|
|
86
86
|
readonly fontSize: 12;
|
|
87
87
|
readonly lineHeight: 18;
|
|
88
88
|
readonly letterSpacing: 0.3;
|
|
89
89
|
readonly fontFamily?: string | undefined;
|
|
90
|
-
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" |
|
|
90
|
+
readonly fontWeight?: 500 | "bold" | "normal" | "100" | "black" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "condensed" | 300 | "light" | "regular" | 100 | 200 | 400 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "medium" | "semibold" | "condensedBold" | "heavy" | undefined;
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
export type TypographyProps = BaseTextProps & {
|
|
@@ -106,7 +106,7 @@ declare const Typography: React.ForwardRefExoticComponent<import("react-native")
|
|
|
106
106
|
announcementCumulative?: boolean | undefined;
|
|
107
107
|
onAnnouncementFinished?: ((finished: boolean) => void) | undefined;
|
|
108
108
|
} & {
|
|
109
|
-
preset?: "s" | "regular" | "xl" | "l" | "l/line-height-large" | "m
|
|
109
|
+
preset?: "s" | "m" | "regular" | "xl" | "l" | "l/line-height-large" | "m/heading" | "s/line-height-capped" | "s/line-height-small" | "s/code" | "xs" | "xs/line-height-small" | "xs/code" | undefined;
|
|
110
110
|
caps?: boolean | undefined;
|
|
111
111
|
} & React.RefAttributes<Text>>;
|
|
112
112
|
export default Typography;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Returns current app state
|
|
3
3
|
*/
|
|
4
|
-
export declare function useAppState(): "
|
|
4
|
+
export declare function useAppState(): "active" | "background" | "inactive" | "unknown" | "extension";
|
|
5
5
|
export declare function useIsAppActive(): boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateProofRequest, HistoryErrorMetadata,
|
|
1
|
+
import { CreateProofRequest, HistoryErrorMetadata, PresentationSubmitV2CredentialRequest, ProofListQuery, ProofState, ProposeProofRequest, ShareProofRequest } from '@procivis/react-native-one-core';
|
|
2
2
|
import { Transport } from '../connectivity/connectivity';
|
|
3
3
|
export declare const PROOF_DETAIL_QUERY_KEY = "proof-detail";
|
|
4
4
|
export declare const PROOF_STATE_QUERY_KEY = "proof-state";
|
|
@@ -15,7 +15,7 @@ type ProofUrlHookParams = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const useProofUrl: () => import("react-query").UseMutationResult<string, unknown, ProofUrlHookParams, unknown>;
|
|
17
17
|
export declare const useProofAccept: () => import("react-query").UseMutationResult<void, unknown, {
|
|
18
|
-
credentials: Record<string,
|
|
18
|
+
credentials: Record<string, PresentationSubmitV2CredentialRequest[]>;
|
|
19
19
|
interactionId: string;
|
|
20
20
|
}, unknown>;
|
|
21
21
|
export declare const useProofReject: () => import("react-query").UseMutationResult<void, unknown, string, unknown>;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { HolderRegisterWalletUnitRequest, HolderWalletUnit, HolderWalletUnitUpdateRequest } from '@procivis/react-native-one-core';
|
|
1
|
+
import { HolderActivateWalletUnitRequest, HolderRegisterWalletUnitRequest, HolderWalletUnit, HolderWalletUnitUpdateRequest } from '@procivis/react-native-one-core';
|
|
2
2
|
export declare const WALLET_UNIT_QUERY_KEY = "wallet-unit";
|
|
3
3
|
export declare const WALLET_UNIT_TRUST_COLLECTIONS_QUERY_KEY = "wallet-unit-trust-collections";
|
|
4
4
|
export declare const useWalletUnitDetail: (walletUnitId: HolderWalletUnit['id'] | undefined, active?: boolean) => import("react-query").UseQueryResult<HolderWalletUnit | undefined, unknown>;
|
|
5
5
|
export declare const useWalletUnitTrustCollections: (walletUnitId: HolderWalletUnit['id'] | undefined, active?: boolean) => import("react-query").UseQueryResult<import("@procivis/react-native-one-core").TrustCollections | undefined, unknown>;
|
|
6
6
|
export declare const useRegisterWalletUnit: () => import("react-query").UseMutationResult<import("@procivis/react-native-one-core").HolderRegisterWalletUnitResponse, unknown, Omit<HolderRegisterWalletUnitRequest, "organisationId" | "keyType">, unknown>;
|
|
7
|
+
export declare const useActivateWalletUnit: () => import("react-query").UseMutationResult<void, unknown, {
|
|
8
|
+
id: string;
|
|
9
|
+
userIdToken: HolderActivateWalletUnitRequest['userIdToken'];
|
|
10
|
+
}, unknown>;
|
|
7
11
|
export declare const useWalletUnitStatus: () => import("react-query").UseMutationResult<void, unknown, string, unknown>;
|
|
8
12
|
export declare const useWalletUnitUpdate: () => import("react-query").UseMutationResult<void, unknown, {
|
|
9
13
|
walletUnitId: HolderWalletUnit['id'];
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import { CoreConfig, CredentialQueryFailureHint, PresentationDefinitionV2Claim, PresentationDefinitionV2Credential } from '@procivis/react-native-one-core';
|
|
1
|
+
import { CoreConfig, CredentialDetail, CredentialQueryFailureHint, PresentationDefinitionV2Claim, PresentationDefinitionV2Credential } from '@procivis/react-native-one-core';
|
|
2
2
|
import { CredentialAttribute, CredentialCardNotice, CredentialCardProps } from '../../ui-components';
|
|
3
3
|
import { CredentialDetailsCardPropsWithoutWidth } from '.';
|
|
4
|
-
import {
|
|
4
|
+
import { CardLabels } from './credential';
|
|
5
|
+
export type ShareCredentialCardLabels = CardLabels & {
|
|
6
|
+
selectiveDisclosure: string;
|
|
7
|
+
missingAttribute: string;
|
|
8
|
+
missingCredential: string;
|
|
9
|
+
multipleCredentials: string;
|
|
10
|
+
disclosurePolicyViolation: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const validityCheckedCardFromCredential: (credential: CredentialDetail | PresentationDefinitionV2Credential, expanded: boolean, selectiveDisclosureSupported: boolean | undefined, multipleCredentialsAvailable: boolean, config: CoreConfig, notice: CredentialCardNotice | undefined, testID: string, labels: ShareCredentialCardLabels, language: string | undefined) => Omit<CredentialCardProps, 'onHeaderPress' | 'style' | 'testID' | 'width'>;
|
|
5
13
|
export declare const shareCredentialCardAttributeFromV2Claim: (claim: PresentationDefinitionV2Claim, selection: string[] | undefined, parentShared: boolean, parentUserSelected: boolean, config: CoreConfig, testID: string, language: string | undefined, nested?: boolean, listValue?: boolean) => CredentialAttribute;
|
|
6
14
|
export declare const missingCredentialCardFromFailureHint: (failureHint: CredentialQueryFailureHint | undefined, notice: CredentialCardNotice | undefined, testID: string, labels: ShareCredentialCardLabels) => Omit<CredentialCardProps, 'onHeaderPress' | 'style' | 'width'>;
|
|
7
15
|
export declare const shareCredentialCardFromV2PresentationCredential: (credential: PresentationDefinitionV2Credential | undefined, failureHint: CredentialQueryFailureHint | undefined, expanded: boolean, multipleCredentialsAvailable: boolean, purpose: string | undefined, selectedFields: string[] | undefined, config: CoreConfig, testID: string, labels: ShareCredentialCardLabels, language: string | undefined) => CredentialDetailsCardPropsWithoutWidth;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Claim, CoreConfig, CredentialDetail, CredentialListItem, CredentialSchemaListItem } from '@procivis/react-native-one-core';
|
|
1
|
+
import { Claim, CoreConfig, CredentialDetail, CredentialListItem, CredentialSchemaListItem, PresentationDefinitionV2Credential } from '@procivis/react-native-one-core';
|
|
2
2
|
import { CredentialAttribute, CredentialCardProps, CredentialDetailsCardProps, CredentialHeaderProps } from '../../ui-components/credential';
|
|
3
3
|
import { CredentialCardNotice } from '../../ui-components/credential/card/credential-card';
|
|
4
4
|
export declare enum ValidityState {
|
|
@@ -29,3 +29,4 @@ export declare const detailsCardFromCredential: (credential: CredentialDetail, c
|
|
|
29
29
|
export declare const detailsCardFromCredentialWithClaims: (credential: CredentialDetail, claims: Claim[], config: CoreConfig, testID: string, labels: CardLabels, language: string | undefined) => CredentialDetailsCardPropsWithoutWidth;
|
|
30
30
|
export declare const nestAttributes: (attributes: CredentialAttribute[]) => CredentialAttribute[];
|
|
31
31
|
export declare function getCredentialSchemaWithoutImages<T extends CredentialSchemaListItem>(credentialSchema: T): T;
|
|
32
|
+
export declare function credentialDetailFromPresentationV2Credential(presentationCredential: CredentialDetail | PresentationDefinitionV2Credential): CredentialDetail;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@procivis/one-react-native-components",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.143",
|
|
4
4
|
"author": "Procivis AG (https://procivis.ch)",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "Common Procivis ONE UI components for react-native",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@babel/runtime": "^7.25.0",
|
|
54
54
|
"@commitlint/config-conventional": "^11.0.0",
|
|
55
55
|
"@gorhom/bottom-sheet": "^5.1.2",
|
|
56
|
-
"@procivis/react-native-one-core": "1.
|
|
56
|
+
"@procivis/react-native-one-core": "1.114493.0",
|
|
57
57
|
"@procivis/react-native-picker": "5.0.3",
|
|
58
58
|
"@react-native-async-storage/async-storage": "^1.17.3",
|
|
59
59
|
"@react-native-community/blur": "^4.4.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@react-native/typescript-config": "0.77.1",
|
|
73
73
|
"@react-navigation/native": "^6.0.6",
|
|
74
74
|
"@release-it/conventional-changelog": "^2.0.0",
|
|
75
|
-
"@sentry/react-native": "^
|
|
75
|
+
"@sentry/react-native": "^7.8.0",
|
|
76
76
|
"@storybook/addon-actions": "^8.6.7",
|
|
77
77
|
"@storybook/addon-controls": "^8.6.7",
|
|
78
78
|
"@storybook/addon-designs": "^8.2.1",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"vite": "^6.4.2"
|
|
143
143
|
},
|
|
144
144
|
"peerDependencies": {
|
|
145
|
-
"@procivis/react-native-one-core": "^1.
|
|
145
|
+
"@procivis/react-native-one-core": "^1.114493.0",
|
|
146
146
|
"@procivis/react-native-picker": "*",
|
|
147
147
|
"@react-native-community/blur": "*",
|
|
148
148
|
"@react-native-community/netinfo": "^11.4.1",
|
|
@@ -292,6 +292,7 @@
|
|
|
292
292
|
"packageManager": "pnpm@10.5.2",
|
|
293
293
|
"pnpm": {
|
|
294
294
|
"patchedDependencies": {
|
|
295
|
+
"react-native": "patches/react-native.patch",
|
|
295
296
|
"react-native-web": "patches/react-native-web.patch"
|
|
296
297
|
}
|
|
297
298
|
}
|
|
@@ -38,6 +38,7 @@ const defaultIcons: {
|
|
|
38
38
|
DELETED: HistoryStatusDeleteIcon,
|
|
39
39
|
ERRORED: HistoryStatusErrorIcon,
|
|
40
40
|
IMPORTED: HistoryStatusAcceptedIcon,
|
|
41
|
+
SIGNED: HistoryStatusAcceptedIcon,
|
|
41
42
|
ISSUED: HistoryStatusAcceptedIcon,
|
|
42
43
|
OFFERED: HistoryStatusAcceptedIcon,
|
|
43
44
|
PENDING: HistoryStatusAcceptedIcon,
|
|
@@ -73,6 +74,7 @@ const defaultIcons: {
|
|
|
73
74
|
IDENTIFIER: HistoryIdentifierIcon,
|
|
74
75
|
KEY: HistoryKeyIcon,
|
|
75
76
|
ORGANISATION: HistoryOrganisationIcon,
|
|
77
|
+
QES_DOCUMENT: HistoryCredentialIcon,
|
|
76
78
|
PROOF: HistoryProofRequestIcon,
|
|
77
79
|
PROOF_SCHEMA: HistorySchemaIcon,
|
|
78
80
|
WALLET_UNIT: HistoryTrustedEntityIcon,
|
|
@@ -18,8 +18,7 @@ import {
|
|
|
18
18
|
UpIcon,
|
|
19
19
|
} from '../../../ui-components';
|
|
20
20
|
import CredentialGroupHeader from '../../../ui-components/credential/group/credential-group-header';
|
|
21
|
-
import { concatTestID, useCredentialListExpandedCard } from '../../../utils';
|
|
22
|
-
import { ShareCredentialLabels } from '../v1/share-credential';
|
|
21
|
+
import { concatTestID, ShareCredentialCardLabels, useCredentialListExpandedCard } from '../../../utils';
|
|
23
22
|
import { GroupedShareCredentialV2Padding, ShareCredentialV2 } from './share-credential-v2';
|
|
24
23
|
|
|
25
24
|
export type CredentialQuerySelection = Record<
|
|
@@ -27,6 +26,14 @@ export type CredentialQuerySelection = Record<
|
|
|
27
26
|
PresentationSubmitV2CredentialRequest | PresentationSubmitV2CredentialRequest[]
|
|
28
27
|
>;
|
|
29
28
|
|
|
29
|
+
export type ShareCredentialLabels = ShareCredentialCardLabels & {
|
|
30
|
+
invalidCredentialNotice: string;
|
|
31
|
+
multipleCredentialsNotice: string;
|
|
32
|
+
multipleCredentialsSelect: string;
|
|
33
|
+
revokedCredentialNotice: string;
|
|
34
|
+
suspendedCredentialNotice: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
30
37
|
export type ShareCredentialGroupLabels = ShareCredentialLabels & {
|
|
31
38
|
groupHeader: string;
|
|
32
39
|
};
|
|
@@ -12,7 +12,7 @@ import { concatTestID, getValidityState, useCoreConfig, ValidityState } from '..
|
|
|
12
12
|
import { shareCredentialCardFromV2PresentationCredential } from '../../../utils/parsers/credential-sharing-v2';
|
|
13
13
|
import { SelectShareCredentialCardNotice } from '../select-share-credential-card-notice';
|
|
14
14
|
import { ShareCredentialCardNotice } from '../share-credential-card-notice';
|
|
15
|
-
import { ShareCredentialLabels } from '
|
|
15
|
+
import { ShareCredentialLabels } from './share-credential-v2-group';
|
|
16
16
|
|
|
17
17
|
export type ShareCredentialV2Props = {
|
|
18
18
|
credentialQuery: ApplicableCredentialOrFailureHint;
|