@astral/features 3.52.1 → 3.52.3

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.
Files changed (17) hide show
  1. package/cryproPro/components/CryptoProCertAutocomplete/AutocompleteListItem/AutocompleteListItem.d.ts +2 -2
  2. package/cryproPro/components/CryptoProCertAutocomplete/AutocompleteListItem/styles.js +7 -3
  3. package/cryproPro/components/CryptoProCertAutocomplete/CryptoProCertAutocomplete.d.ts +2 -2
  4. package/cryproPro/components/CryptoProCertAutocomplete/utils/transformCertificates/transformCertificates.d.ts +1 -1
  5. package/cryproPro/components/CryptoProCertFormAutocomplete/CryptoProCertFormAutocomplete.d.ts +2 -2
  6. package/cryproPro/components/CryptoProProvider/CryptoProProvider.d.ts +2 -2
  7. package/cryproPro/components/SetupCryptoProWorkspaceModal/CryptoproviderInfo/CryptoproviderInfo.d.ts +1 -1
  8. package/cryproPro/components/SetupCryptoProWorkspaceModal/PluginInfo/PluginInfo.d.ts +1 -1
  9. package/cryproPro/components/SetupCryptoProWorkspaceModal/SetupCryptoProWorkspaceModal.d.ts +1 -1
  10. package/cryproPro/services/CryptoProCertificateService/CryptoProCertificateService.d.ts +1 -1
  11. package/cryproPro/services/CryptoProSignService/CryptoProSignService.d.ts +1 -1
  12. package/cryproPro/stores/CryptoProStore/CryptoProStore.d.ts +3 -3
  13. package/package.json +2 -2
  14. package/productSwitcher/components/IdentityProductSwitcher/hooks/useLogic/useLogic.d.ts +3 -3
  15. package/productSwitcher/components/IdentityProductSwitcher/utils/getIdentityTenants/getIdentityTenants.d.ts +1 -1
  16. package/productSwitcher/components/IdentityProductSwitcher/utils/getTenantsProducts/getTenantsProducts.d.ts +1 -1
  17. package/productSwitcher/utils/formatIdentityProducts/formatIdentityProducts.d.ts +2 -2
@@ -1,5 +1,5 @@
1
- import { HTMLAttributes, ReactNode } from 'react';
2
- import { CertificateType } from '../../../constants';
1
+ import { type HTMLAttributes, type ReactNode } from 'react';
2
+ import { type CertificateType } from '../../../constants';
3
3
  type AutocompleteListItemProps = Omit<HTMLAttributes<HTMLLIElement>, 'title'> & {
4
4
  title: ReactNode;
5
5
  sidetitle: string | null;
@@ -5,22 +5,24 @@ export const AutocompleteListAvatarIcon = styled(Avatar) `
5
5
  export const AutocompleteListItemLabel = styled.div `
6
6
  display: flex;
7
7
  flex-direction: column;
8
+
8
9
  width: 80%;
9
10
  `;
10
11
  export const AutocompleteListItemSideLabel = styled.div `
11
12
  display: flex;
12
13
  align-self: start;
13
14
  justify-content: end;
15
+
14
16
  width: 20%;
15
17
  `;
16
18
  export const AutocompleteListItemLabelTitle = styled(OverflowTypography) `
17
- font-weight: ${({ theme }) => theme.typography.fontWeightBold};
18
19
  font-size: ${({ theme }) => theme.typography.fontSize};
20
+ font-weight: ${({ theme }) => theme.typography.fontWeightBold};
19
21
  `;
20
22
  export const AutocompleteListItemIcon = styled(ListItemIcon) `
21
23
  display: flex;
22
- align-self: center;
23
- justify-self: center;
24
+ place-self: center center;
25
+
24
26
  padding-left: ${({ theme }) => theme.spacing(4)};
25
27
  `;
26
28
  export const GroupMenuItem = styled(MenuItem, {
@@ -28,11 +30,13 @@ export const GroupMenuItem = styled(MenuItem, {
28
30
  }) `
29
31
  ${({ theme, checked }) => checked && `background-color: ${theme.palette.primary[100]};`}
30
32
  align-items: flex-start;
33
+
31
34
  padding: 0;
32
35
  `;
33
36
  export const AutocompleteListItemContent = styled(MenuItem) `
34
37
  justify-content: space-around;
35
38
  justify-items: start;
39
+
36
40
  width: 100%;
37
41
  margin-left: 0;
38
42
  padding: ${({ theme }) => theme.spacing(2, 4, 2, 0)};
@@ -1,5 +1,5 @@
1
- import { Certificate } from '@astral/cryptopro-cades';
2
- import { AutocompleteProps } from '@astral/ui';
1
+ import { type Certificate } from '@astral/cryptopro-cades';
2
+ import { type AutocompleteProps } from '@astral/ui';
3
3
  /**
4
4
  * @description Autocomplete с сертификатами
5
5
  */
@@ -1,4 +1,4 @@
1
- import { Certificate } from '@astral/cryptopro-cades';
1
+ import { type Certificate } from '@astral/cryptopro-cades';
2
2
  import { CertificateType } from '../../../../constants';
3
3
  type CertificateShortInfo = {
4
4
  notAfter: string | null;
@@ -1,5 +1,5 @@
1
- import { Certificate } from '@astral/cryptopro-cades';
2
- import { AutocompleteProps, WithFormFieldProps } from '@astral/ui';
1
+ import { type Certificate } from '@astral/cryptopro-cades';
2
+ import { type AutocompleteProps, type WithFormFieldProps } from '@astral/ui';
3
3
  export type CryptoProCertFormAutocompleteProps<Multiple extends boolean = false, DisableClearable extends boolean = false, FreeSolo extends boolean = false> = WithFormFieldProps<AutocompleteProps<Certificate, Multiple, DisableClearable, FreeSolo>, any>;
4
4
  /**
5
5
  * @description Autocomplete с сертификатами для формы
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
- import { CryptoProStore } from '../../stores/CryptoProStore';
1
+ import { type PropsWithChildren } from 'react';
2
+ import { type CryptoProStore } from '../../stores/CryptoProStore';
3
3
  /**
4
4
  * @description Провайдер, который в случае отсутствия или неактивности
5
5
  * КриптоПро browser plug-in или отсутствия КриптоПро провайдера на
@@ -1,4 +1,4 @@
1
- import { CheckWorkspace } from '../../../services';
1
+ import { type CheckWorkspace } from '../../../services';
2
2
  type Props = {
3
3
  workspaceSetupInfo: CheckWorkspace;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { CheckWorkspace } from '../../../services';
1
+ import { type CheckWorkspace } from '../../../services';
2
2
  type Props = {
3
3
  workspaceSetupInfo: CheckWorkspace;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { CheckWorkspace } from '../../services/WorkspaceSetupService';
1
+ import { type CheckWorkspace } from '../../services/WorkspaceSetupService';
2
2
  type SetupCryptoProWorkspaceModalProps = {
3
3
  isDialogOpen: boolean;
4
4
  onCloseButtonClick: () => void;
@@ -1,4 +1,4 @@
1
- import { Certificate } from '@astral/cryptopro-cades';
1
+ import { type Certificate } from '@astral/cryptopro-cades';
2
2
  export type FormatedCertificate = {
3
3
  type: string;
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { CADESCOM_XML_SIGNATURE_TYPE, Certificate } from '@astral/cryptopro-cades';
1
+ import { type CADESCOM_XML_SIGNATURE_TYPE, type Certificate } from '@astral/cryptopro-cades';
2
2
  /**
3
3
  * @description Сервис для методов подписания КриптоПро
4
4
  * */
@@ -1,6 +1,6 @@
1
- import { CADESCOM_XML_SIGNATURE_TYPE, Certificate } from '@astral/cryptopro-cades';
2
- import { FormatedCertificate } from '../../services';
3
- import { CheckWorkspace } from '../../services/WorkspaceSetupService';
1
+ import { type CADESCOM_XML_SIGNATURE_TYPE, type Certificate } from '@astral/cryptopro-cades';
2
+ import { type FormatedCertificate } from '../../services';
3
+ import { type CheckWorkspace } from '../../services/WorkspaceSetupService';
4
4
  /**
5
5
  * @description Стор для работы с сертификатами и выполнения криптоопераций. Является фасадом для сервисом КриптоПро
6
6
  * */
package/package.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@astral/features",
3
3
  "browser": "./index.js",
4
4
  "main": "./index.js",
5
- "version": "3.52.1",
5
+ "version": "3.52.3",
6
6
  "dependencies": {
7
- "@astral/ui": "^3.52.1",
7
+ "@astral/ui": "^3.52.3",
8
8
  "mobx": "^6.8.0",
9
9
  "mobx-react-lite": "^3.4.0",
10
10
  "@astral/cryptopro-cades": "^1.5.1"
@@ -1,6 +1,6 @@
1
- import { MouseEvent } from 'react';
2
- import { WidgetProduct } from '@astral/ui';
3
- import { IdentityTenantsDTO } from '../../../../types';
1
+ import { type MouseEvent } from 'react';
2
+ import { type WidgetProduct } from '@astral/ui';
3
+ import { type IdentityTenantsDTO } from '../../../../types';
4
4
  export declare const useLogic: (identityUrl: string, openMenu: () => void) => {
5
5
  handleShowProducts: () => void;
6
6
  isLoading: boolean;
@@ -1,4 +1,4 @@
1
- import { IdentityTenantsDTO } from '../../../../types';
1
+ import { type IdentityTenantsDTO } from '../../../../types';
2
2
  /**
3
3
  * Получение данных из identity
4
4
  * @param identityUrl - адрес identity
@@ -1,4 +1,4 @@
1
- import { WidgetProduct } from '@astral/ui';
1
+ import { type WidgetProduct } from '@astral/ui';
2
2
  /**
3
3
  * Получение всех продуктов из разных экосистем и группировка в единую мапу
4
4
  * @param identityUrl - сслыка на identity
@@ -1,5 +1,5 @@
1
- import { WidgetProduct } from '@astral/ui';
2
- import { IdentityProductsWidgetDTO } from '../../types';
1
+ import { type WidgetProduct } from '@astral/ui';
2
+ import { type IdentityProductsWidgetDTO } from '../../types';
3
3
  /**
4
4
  * Форматирование данных identity под виджет UIKIT
5
5
  * @param identityProducts - список продуктов от identity