@astral/features 3.345.5 → 3.346.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.
@@ -1,4 +1,4 @@
1
1
  export const AUTO_SAVE_INDICATOR_DEFAULT_ERROR_STATE = {
2
2
  message: '',
3
- onRetry: () => { },
3
+ onRetry: () => undefined,
4
4
  };
@@ -7,18 +7,15 @@ export const CryptoproviderInfo = ({ workspaceSetupInfo }) => {
7
7
  if (!workspaceSetupInfo.isPluginInstalled) {
8
8
  return (_jsxs(_Fragment, { children: ["\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445", _jsx(Tooltip, { title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u043A\u0440\u0438\u043F\u0442\u043E\u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0435 \u0431\u0443\u0434\u0443\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u044B \u043F\u043E\u0441\u043B\u0435\n \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u201C\u041A\u0440\u0438\u043F\u0442\u043E\u041F\u0440\u043E \u042D\u0426\u041F Browser plug-in\u201D \u0438 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", children: _jsx(IconWrapper, { children: _jsx(InfoFillSm, {}) }) })] }));
9
9
  }
10
- else if (workspaceSetupInfo.hasCryptoProvider) {
10
+ if (workspaceSetupInfo.hasCryptoProvider) {
11
11
  return 'Установлен';
12
12
  }
13
- else {
14
- return 'Не установлен';
15
- }
13
+ return 'Не установлен';
16
14
  };
17
15
  return (_jsxs(WorkspaceInfoItem, { children: [_jsxs(Description, { children: [_jsx(Description.Name, { children: "\u041A\u0440\u0438\u043F\u0442\u043E\u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440" }), _jsx(Description.Value, { children: workspaceSetupInfo.cspVersion
18
16
  ? `Крипто Про CSP v${workspaceSetupInfo.cspVersion}`
19
17
  : getDescription() })] }), !workspaceSetupInfo.isPluginInstalled && (_jsx(Button, { variant: "link", endIcon: _jsx(OpenLinkOutlineMd, {}), href: "https://cryptopro.ru/downloads",
20
- /*
21
- проблемы с типами кнопки
22
- // @ts-ignore */
18
+ // biome-ignore lint/nursery/noTsIgnore: Проблемы с типами кнопки
19
+ // @ts-ignore
23
20
  target: "_blank", rel: "noopener noreferrer", children: "\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u041A\u0440\u0438\u043F\u0442\u043E\u041F\u0440\u043E CSP" }))] }));
24
21
  };
@@ -3,8 +3,7 @@ import { Button, Description, DownloadOutlineMd, Typography } from '@astral/ui';
3
3
  import { WorkspaceInfoItem } from '../styles';
4
4
  export const PluginInfo = ({ workspaceSetupInfo }) => {
5
5
  return (_jsxs(WorkspaceInfoItem, { children: [_jsxs(Description, { children: [_jsx(Description.Name, { children: "\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), _jsx(Description.Value, { children: "\u041A\u0440\u0438\u043F\u0442\u043E\u041F\u0440\u043E \u042D\u0426\u041F Browser plug-in" })] }), workspaceSetupInfo.isPluginInstalled ? (_jsx(Typography, { color: "green", colorIntensity: "900", children: "\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E" })) : (_jsx(Button, { variant: "text", endIcon: _jsx(DownloadOutlineMd, {}), href: "https://www.cryptopro.ru/products/cades/plugin/get_2_0",
6
- /*
7
- проблемы с типами кнопки
8
- // @ts-ignore */
6
+ // biome-ignore lint/nursery/noTsIgnore: Проблемы с типами кнопки
7
+ // @ts-ignore
9
8
  target: "_blank", rel: "noopener noreferrer", children: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C" }))] }));
10
9
  };
@@ -85,6 +85,7 @@ export class WorkspaceSetupService {
85
85
  };
86
86
  // делаем из класса singleton
87
87
  if (WorkspaceSetupService.instance) {
88
+ // biome-ignore lint/correctness/noConstructorReturn: <>
88
89
  return WorkspaceSetupService.instance;
89
90
  }
90
91
  WorkspaceSetupService.instance = this;
@@ -50,7 +50,9 @@ export class CryptoProStore {
50
50
  this.checkWorkspace = () => __awaiter(this, void 0, void 0, function* () {
51
51
  this.workspaceSetupInfo = yield this.workspaceSetupService
52
52
  .checkWorkspace()
53
- .finally(() => (this.isRequestSetupWorkspace = true));
53
+ .finally(() => {
54
+ this.isRequestSetupWorkspace = true;
55
+ });
54
56
  this.isPluginInstalled = this.workspaceSetupInfo.isPluginInstalled;
55
57
  });
56
58
  /**
@@ -133,6 +135,7 @@ export class CryptoProStore {
133
135
  });
134
136
  // делаем из класса singleton
135
137
  if (CryptoProStore.instance) {
138
+ // biome-ignore lint/correctness/noConstructorReturn: <>
136
139
  return CryptoProStore.instance;
137
140
  }
138
141
  CryptoProStore.instance = this;
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AUTO_SAVE_INDICATOR_DEFAULT_ERROR_STATE = void 0;
4
4
  exports.AUTO_SAVE_INDICATOR_DEFAULT_ERROR_STATE = {
5
5
  message: '',
6
- onRetry: () => { },
6
+ onRetry: () => undefined,
7
7
  };
@@ -10,19 +10,16 @@ const CryptoproviderInfo = ({ workspaceSetupInfo }) => {
10
10
  if (!workspaceSetupInfo.isPluginInstalled) {
11
11
  return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445", (0, jsx_runtime_1.jsx)(ui_1.Tooltip, { title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u043A\u0440\u0438\u043F\u0442\u043E\u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0435 \u0431\u0443\u0434\u0443\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u044B \u043F\u043E\u0441\u043B\u0435\n \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u201C\u041A\u0440\u0438\u043F\u0442\u043E\u041F\u0440\u043E \u042D\u0426\u041F Browser plug-in\u201D \u0438 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", children: (0, jsx_runtime_1.jsx)(styles_2.IconWrapper, { children: (0, jsx_runtime_1.jsx)(ui_1.InfoFillSm, {}) }) })] }));
12
12
  }
13
- else if (workspaceSetupInfo.hasCryptoProvider) {
13
+ if (workspaceSetupInfo.hasCryptoProvider) {
14
14
  return 'Установлен';
15
15
  }
16
- else {
17
- return 'Не установлен';
18
- }
16
+ return 'Не установлен';
19
17
  };
20
18
  return ((0, jsx_runtime_1.jsxs)(styles_1.WorkspaceInfoItem, { children: [(0, jsx_runtime_1.jsxs)(ui_1.Description, { children: [(0, jsx_runtime_1.jsx)(ui_1.Description.Name, { children: "\u041A\u0440\u0438\u043F\u0442\u043E\u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440" }), (0, jsx_runtime_1.jsx)(ui_1.Description.Value, { children: workspaceSetupInfo.cspVersion
21
19
  ? `Крипто Про CSP v${workspaceSetupInfo.cspVersion}`
22
20
  : getDescription() })] }), !workspaceSetupInfo.isPluginInstalled && ((0, jsx_runtime_1.jsx)(ui_1.Button, { variant: "link", endIcon: (0, jsx_runtime_1.jsx)(ui_1.OpenLinkOutlineMd, {}), href: "https://cryptopro.ru/downloads",
23
- /*
24
- проблемы с типами кнопки
25
- // @ts-ignore */
21
+ // biome-ignore lint/nursery/noTsIgnore: Проблемы с типами кнопки
22
+ // @ts-ignore
26
23
  target: "_blank", rel: "noopener noreferrer", children: "\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u041A\u0440\u0438\u043F\u0442\u043E\u041F\u0440\u043E CSP" }))] }));
27
24
  };
28
25
  exports.CryptoproviderInfo = CryptoproviderInfo;
@@ -6,9 +6,8 @@ const ui_1 = require("@astral/ui");
6
6
  const styles_1 = require("../styles");
7
7
  const PluginInfo = ({ workspaceSetupInfo }) => {
8
8
  return ((0, jsx_runtime_1.jsxs)(styles_1.WorkspaceInfoItem, { children: [(0, jsx_runtime_1.jsxs)(ui_1.Description, { children: [(0, jsx_runtime_1.jsx)(ui_1.Description.Name, { children: "\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), (0, jsx_runtime_1.jsx)(ui_1.Description.Value, { children: "\u041A\u0440\u0438\u043F\u0442\u043E\u041F\u0440\u043E \u042D\u0426\u041F Browser plug-in" })] }), workspaceSetupInfo.isPluginInstalled ? ((0, jsx_runtime_1.jsx)(ui_1.Typography, { color: "green", colorIntensity: "900", children: "\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E" })) : ((0, jsx_runtime_1.jsx)(ui_1.Button, { variant: "text", endIcon: (0, jsx_runtime_1.jsx)(ui_1.DownloadOutlineMd, {}), href: "https://www.cryptopro.ru/products/cades/plugin/get_2_0",
9
- /*
10
- проблемы с типами кнопки
11
- // @ts-ignore */
9
+ // biome-ignore lint/nursery/noTsIgnore: Проблемы с типами кнопки
10
+ // @ts-ignore
12
11
  target: "_blank", rel: "noopener noreferrer", children: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C" }))] }));
13
12
  };
14
13
  exports.PluginInfo = PluginInfo;
@@ -88,6 +88,7 @@ class WorkspaceSetupService {
88
88
  };
89
89
  // делаем из класса singleton
90
90
  if (WorkspaceSetupService.instance) {
91
+ // biome-ignore lint/correctness/noConstructorReturn: <>
91
92
  return WorkspaceSetupService.instance;
92
93
  }
93
94
  WorkspaceSetupService.instance = this;
@@ -53,7 +53,9 @@ class CryptoProStore {
53
53
  this.checkWorkspace = () => __awaiter(this, void 0, void 0, function* () {
54
54
  this.workspaceSetupInfo = yield this.workspaceSetupService
55
55
  .checkWorkspace()
56
- .finally(() => (this.isRequestSetupWorkspace = true));
56
+ .finally(() => {
57
+ this.isRequestSetupWorkspace = true;
58
+ });
57
59
  this.isPluginInstalled = this.workspaceSetupInfo.isPluginInstalled;
58
60
  });
59
61
  /**
@@ -136,6 +138,7 @@ class CryptoProStore {
136
138
  });
137
139
  // делаем из класса singleton
138
140
  if (CryptoProStore.instance) {
141
+ // biome-ignore lint/correctness/noConstructorReturn: <>
139
142
  return CryptoProStore.instance;
140
143
  }
141
144
  CryptoProStore.instance = this;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@astral/features",
3
3
  "main": "./node/index.js",
4
- "version": "3.345.5",
4
+ "version": "3.346.0",
5
5
  "dependencies": {
6
- "@astral/ui": "3.345.5",
6
+ "@astral/ui": "3.346.0",
7
7
  "mobx": "^6.8.0",
8
8
  "mobx-react-lite": "^3.4.0",
9
9
  "@astral/cryptopro-cades": "^1.5.1"