@astral/features 4.18.0-rc.2 → 4.18.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/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/AstralProductSwitcher.d.ts +1 -2
- package/node/productSwitcher/AstralProductSwitcher/public.d.ts +1 -0
- package/node/productSwitcher/AstralProductSwitcher/public.js +5 -0
- package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/BasicUsage.story.d.ts +1 -2
- package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/Group.story.d.ts +1 -2
- package/{productSwitcher/components → node/productSwitcher}/AstralProductSwitcher/stories/Tenant.story.d.ts +1 -2
- package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/utils/getFilteredProducts/getFilteredProducts.js +2 -2
- package/{productSwitcher/components → node/productSwitcher}/IdentityProductSwitcher/IdentityProductSwitcher.d.ts +1 -2
- package/{productSwitcher/components → node/productSwitcher}/IdentityProductSwitcher/hooks/useLogic/useLogic.d.ts +1 -1
- package/node/productSwitcher/IdentityProductSwitcher/public.d.ts +1 -0
- package/node/productSwitcher/IdentityProductSwitcher/public.js +5 -0
- package/{productSwitcher/components → node/productSwitcher}/IdentityProductSwitcher/stories/BasicUsage.story.d.ts +1 -2
- package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/styles.d.ts +2 -2
- package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/getIdentityTenants/getIdentityTenants.d.ts +1 -1
- package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/getTenantsProducts/getTenantsProducts.js +1 -1
- package/node/productSwitcher/index.d.ts +2 -1
- package/node/productSwitcher/index.js +4 -3
- package/package.json +7 -7
- package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/AstralProductSwitcher.d.ts +1 -2
- package/productSwitcher/AstralProductSwitcher/public.d.ts +1 -0
- package/productSwitcher/AstralProductSwitcher/public.js +1 -0
- package/{node/productSwitcher/components/IdentityProductSwitcher → productSwitcher/AstralProductSwitcher}/stories/BasicUsage.story.d.ts +1 -2
- package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/Group.story.d.ts +1 -2
- package/{node/productSwitcher/components → productSwitcher}/AstralProductSwitcher/stories/Tenant.story.d.ts +1 -2
- package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/utils/getFilteredProducts/getFilteredProducts.js +2 -2
- package/{node/productSwitcher/components → productSwitcher}/IdentityProductSwitcher/IdentityProductSwitcher.d.ts +1 -2
- package/{node/productSwitcher/components → productSwitcher}/IdentityProductSwitcher/hooks/useLogic/useLogic.d.ts +1 -1
- package/productSwitcher/IdentityProductSwitcher/public.d.ts +1 -0
- package/productSwitcher/IdentityProductSwitcher/public.js +1 -0
- package/productSwitcher/{components/AstralProductSwitcher → IdentityProductSwitcher}/stories/BasicUsage.story.d.ts +1 -2
- package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/styles.d.ts +2 -2
- package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/getIdentityTenants/getIdentityTenants.d.ts +1 -1
- package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/getTenantsProducts/getTenantsProducts.js +1 -1
- package/productSwitcher/index.d.ts +2 -1
- package/productSwitcher/index.js +2 -1
- package/node/productSwitcher/components/AstralProductSwitcher/public.d.ts +0 -2
- package/node/productSwitcher/components/AstralProductSwitcher/public.js +0 -18
- package/node/productSwitcher/components/IdentityProductSwitcher/public.d.ts +0 -1
- package/node/productSwitcher/components/IdentityProductSwitcher/public.js +0 -17
- package/node/productSwitcher/components/index.d.ts +0 -2
- package/node/productSwitcher/components/index.js +0 -18
- package/productSwitcher/components/AstralProductSwitcher/public.d.ts +0 -2
- package/productSwitcher/components/AstralProductSwitcher/public.js +0 -2
- package/productSwitcher/components/IdentityProductSwitcher/public.d.ts +0 -1
- package/productSwitcher/components/IdentityProductSwitcher/public.js +0 -1
- package/productSwitcher/components/index.d.ts +0 -2
- package/productSwitcher/components/index.js +0 -2
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/AstralProductSwitcher.js +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/enums.d.ts +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/enums.js +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/index.d.ts +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/index.js +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/BasicUsage.story.js +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/Group.story.js +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/Interaction.story.d.ts +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/Interaction.story.js +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/Tenant.story.js +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/common/index.d.ts +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/common/index.js +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/common/mockData.d.ts +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/common/mockData.js +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/common/mockResponses.d.ts +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/common/mockResponses.js +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/utils/getFilteredProducts/getFilteredProducts.d.ts +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/utils/getFilteredProducts/index.d.ts +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/utils/getFilteredProducts/index.js +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/utils/index.d.ts +0 -0
- /package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/utils/index.js +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/IdentityProductSwitcher.js +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/hooks/index.d.ts +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/hooks/index.js +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/hooks/useLogic/index.d.ts +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/hooks/useLogic/index.js +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/hooks/useLogic/useLogic.js +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/index.d.ts +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/index.js +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/stories/BasicUsage.story.js +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/stories/Interaction.story.d.ts +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/stories/Interaction.story.js +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/stories/common/index.d.ts +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/stories/common/index.js +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/stories/common/mockData.d.ts +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/stories/common/mockData.js +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/stories/common/mockResponses.d.ts +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/stories/common/mockResponses.js +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/styles.js +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/getIdentityTenants/getIdentityTenants.js +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/getIdentityTenants/index.d.ts +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/getIdentityTenants/index.js +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/getTenantsProducts/getTenantsProducts.d.ts +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/getTenantsProducts/index.d.ts +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/getTenantsProducts/index.js +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/index.d.ts +0 -0
- /package/node/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/index.js +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/AstralProductSwitcher.js +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/enums.d.ts +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/enums.js +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/index.d.ts +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/index.js +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/BasicUsage.story.js +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/Group.story.js +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/Interaction.story.d.ts +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/Interaction.story.js +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/Tenant.story.js +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/common/index.d.ts +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/common/index.js +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/common/mockData.d.ts +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/common/mockData.js +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/common/mockResponses.d.ts +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/stories/common/mockResponses.js +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/utils/getFilteredProducts/getFilteredProducts.d.ts +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/utils/getFilteredProducts/index.d.ts +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/utils/getFilteredProducts/index.js +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/utils/index.d.ts +0 -0
- /package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/utils/index.js +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/IdentityProductSwitcher.js +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/hooks/index.d.ts +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/hooks/index.js +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/hooks/useLogic/index.d.ts +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/hooks/useLogic/index.js +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/hooks/useLogic/useLogic.js +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/index.d.ts +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/index.js +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/stories/BasicUsage.story.js +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/stories/Interaction.story.d.ts +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/stories/Interaction.story.js +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/stories/common/index.d.ts +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/stories/common/index.js +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/stories/common/mockData.d.ts +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/stories/common/mockData.js +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/stories/common/mockResponses.d.ts +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/stories/common/mockResponses.js +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/styles.js +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/getIdentityTenants/getIdentityTenants.js +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/getIdentityTenants/index.d.ts +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/getIdentityTenants/index.js +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/getTenantsProducts/getTenantsProducts.d.ts +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/getTenantsProducts/index.d.ts +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/getTenantsProducts/index.js +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/index.d.ts +0 -0
- /package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/utils/index.js +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type ProductSwitcherProps } from '@astral/ui';
|
|
3
2
|
import { ProductFilterType } from './enums';
|
|
4
3
|
export type AstralProductSwitcherType = {
|
|
@@ -15,4 +14,4 @@ export type AstralProductSwitcherType = {
|
|
|
15
14
|
*/
|
|
16
15
|
filter?: ProductSwitcherProps['filter'];
|
|
17
16
|
};
|
|
18
|
-
export declare const AstralProductSwitcher: ({ identityUrl, filterBy, code, filter, }: AstralProductSwitcherType) => JSX.Element;
|
|
17
|
+
export declare const AstralProductSwitcher: ({ identityUrl, filterBy, code, filter, }: AstralProductSwitcherType) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AstralProductSwitcher } from './AstralProductSwitcher';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AstralProductSwitcher = void 0;
|
|
4
|
+
var AstralProductSwitcher_1 = require("./AstralProductSwitcher");
|
|
5
|
+
Object.defineProperty(exports, "AstralProductSwitcher", { enumerable: true, get: function () { return AstralProductSwitcher_1.AstralProductSwitcher; } });
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Meta } from '@storybook/react-vite';
|
|
3
2
|
declare const meta: Meta;
|
|
4
3
|
export default meta;
|
|
5
|
-
export declare const BasicUsage: () => JSX.Element;
|
|
4
|
+
export declare const BasicUsage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Meta } from '@storybook/react-vite';
|
|
3
2
|
declare const meta: Meta;
|
|
4
3
|
export default meta;
|
|
5
4
|
/**
|
|
6
5
|
* Чтобы получить список продуктов, отфильтрованных по группам, необходимо указать параметр ```filterBy``` в значение ```group``` и указать параметр ```code```, равный ```коду вашей группы```
|
|
7
6
|
*/
|
|
8
|
-
export declare const Group: () => JSX.Element;
|
|
7
|
+
export declare const Group: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Meta } from '@storybook/react-vite';
|
|
3
2
|
declare const meta: Meta;
|
|
4
3
|
export default meta;
|
|
5
4
|
/**
|
|
6
5
|
* Чтобы получить список продуктов, отфильтрованных по экосистемам, необходимо указать параметр ```filterBy``` в значение ```tenant``` и указать параметр ```code```, равный ```коду вашей экосистемы```
|
|
7
6
|
*/
|
|
8
|
-
export declare const Tenant: () => JSX.Element;
|
|
7
|
+
export declare const Tenant: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getFilteredProducts = void 0;
|
|
4
|
-
const utils_1 = require("
|
|
5
|
-
const getGroupsProducts_1 = require("
|
|
4
|
+
const utils_1 = require("../../../utils");
|
|
5
|
+
const getGroupsProducts_1 = require("../../../utils/getGroupsProducts");
|
|
6
6
|
const enums_1 = require("../../enums");
|
|
7
7
|
/**
|
|
8
8
|
* Получение всех продуктов из разных экосистем и группировка в единую мапу
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const ASTRAL_IDENTITY_DEFAULT_TENANT = "astral";
|
|
3
2
|
export type IdentityProductSwitcherType = {
|
|
4
3
|
/**
|
|
@@ -6,4 +5,4 @@ export type IdentityProductSwitcherType = {
|
|
|
6
5
|
* */
|
|
7
6
|
identityUrl: string;
|
|
8
7
|
};
|
|
9
|
-
export declare const IdentityProductSwitcher: ({ identityUrl, }: IdentityProductSwitcherType) => JSX.Element;
|
|
8
|
+
export declare const IdentityProductSwitcher: ({ identityUrl, }: IdentityProductSwitcherType) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type WidgetProduct } from '@astral/ui';
|
|
2
2
|
import { type MouseEvent } from 'react';
|
|
3
|
-
import { type IdentityTenantsDTO } from '
|
|
3
|
+
import { type IdentityTenantsDTO } from '../../../types';
|
|
4
4
|
export declare const useLogic: (identityUrl: string, openMenu: () => void) => {
|
|
5
5
|
handleShowProducts: () => void;
|
|
6
6
|
isLoading: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IdentityProductSwitcher } from './IdentityProductSwitcher';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdentityProductSwitcher = void 0;
|
|
4
|
+
var IdentityProductSwitcher_1 = require("./IdentityProductSwitcher");
|
|
5
|
+
Object.defineProperty(exports, "IdentityProductSwitcher", { enumerable: true, get: function () { return IdentityProductSwitcher_1.IdentityProductSwitcher; } });
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Meta } from '@storybook/react-vite';
|
|
3
2
|
declare const meta: Meta;
|
|
4
3
|
export default meta;
|
|
5
|
-
export declare const BasicUsage: () => JSX.Element;
|
|
4
|
+
export declare const BasicUsage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Grid, MenuItem, type StyledComponent, ToggleButton, ToggleButtonGroup } from '@astral/ui';
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
|
-
export declare const StyledMenu: ({ children, onClose, open, title, ...restProps }: import("@astral/ui").MenuProps) => JSX.Element;
|
|
3
|
+
export declare const StyledMenu: ({ children, onClose, open, title, ...restProps }: import("@astral/ui").MenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare const StyledMenuItem: typeof MenuItem;
|
|
5
5
|
export declare const Logo: StyledComponent<{
|
|
6
6
|
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
-
as?: import("react").ElementType<any> | undefined;
|
|
7
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
8
8
|
}, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
9
9
|
export declare const ErrorContainer: StyledComponent<ComponentProps<typeof Grid>>;
|
|
10
10
|
export declare const TenantsToggleButtonGroup: StyledComponent<ComponentProps<typeof ToggleButtonGroup>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getTenantsProducts = void 0;
|
|
4
|
-
const utils_1 = require("
|
|
4
|
+
const utils_1 = require("../../../utils");
|
|
5
5
|
/**
|
|
6
6
|
* Получение всех продуктов из разных экосистем и группировка в единую мапу
|
|
7
7
|
* @param identityUrl - ссылка на identity
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { AstralProductSwitcher
|
|
1
|
+
export { AstralProductSwitcher } from './AstralProductSwitcher';
|
|
2
|
+
export { IdentityProductSwitcher } from './IdentityProductSwitcher';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IdentityProductSwitcher = exports.AstralProductSwitcher = void 0;
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "AstralProductSwitcher", { enumerable: true, get: function () { return
|
|
6
|
-
|
|
4
|
+
var AstralProductSwitcher_1 = require("./AstralProductSwitcher");
|
|
5
|
+
Object.defineProperty(exports, "AstralProductSwitcher", { enumerable: true, get: function () { return AstralProductSwitcher_1.AstralProductSwitcher; } });
|
|
6
|
+
var IdentityProductSwitcher_1 = require("./IdentityProductSwitcher");
|
|
7
|
+
Object.defineProperty(exports, "IdentityProductSwitcher", { enumerable: true, get: function () { return IdentityProductSwitcher_1.IdentityProductSwitcher; } });
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astral/features",
|
|
3
3
|
"main": "./node/index.js",
|
|
4
|
-
"version": "4.18.
|
|
4
|
+
"version": "4.18.1",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@astral/ui": "4.18.
|
|
7
|
-
"mobx": "^6.
|
|
8
|
-
"mobx-react-lite": "^
|
|
6
|
+
"@astral/ui": "4.18.1",
|
|
7
|
+
"mobx": "^6.15.0",
|
|
8
|
+
"mobx-react-lite": "^4.1.1",
|
|
9
9
|
"@astral/cryptopro-cades": "^1.5.1"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"react": "^17.0.0 || ^18.0.0",
|
|
13
|
-
"react-dom": "^17.0.0 || ^18.0.0",
|
|
14
|
-
"@types/react": "^17.0.0 || ^18.0.0"
|
|
12
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
13
|
+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
14
|
+
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
15
15
|
},
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type ProductSwitcherProps } from '@astral/ui';
|
|
3
2
|
import { ProductFilterType } from './enums';
|
|
4
3
|
export type AstralProductSwitcherType = {
|
|
@@ -15,4 +14,4 @@ export type AstralProductSwitcherType = {
|
|
|
15
14
|
*/
|
|
16
15
|
filter?: ProductSwitcherProps['filter'];
|
|
17
16
|
};
|
|
18
|
-
export declare const AstralProductSwitcher: ({ identityUrl, filterBy, code, filter, }: AstralProductSwitcherType) => JSX.Element;
|
|
17
|
+
export declare const AstralProductSwitcher: ({ identityUrl, filterBy, code, filter, }: AstralProductSwitcherType) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AstralProductSwitcher } from './AstralProductSwitcher';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AstralProductSwitcher } from './AstralProductSwitcher';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Meta } from '@storybook/react-vite';
|
|
3
2
|
declare const meta: Meta;
|
|
4
3
|
export default meta;
|
|
5
|
-
export declare const BasicUsage: () => JSX.Element;
|
|
4
|
+
export declare const BasicUsage: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Meta } from '@storybook/react-vite';
|
|
3
2
|
declare const meta: Meta;
|
|
4
3
|
export default meta;
|
|
5
4
|
/**
|
|
6
5
|
* Чтобы получить список продуктов, отфильтрованных по группам, необходимо указать параметр ```filterBy``` в значение ```group``` и указать параметр ```code```, равный ```коду вашей группы```
|
|
7
6
|
*/
|
|
8
|
-
export declare const Group: () => JSX.Element;
|
|
7
|
+
export declare const Group: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Meta } from '@storybook/react-vite';
|
|
3
2
|
declare const meta: Meta;
|
|
4
3
|
export default meta;
|
|
5
4
|
/**
|
|
6
5
|
* Чтобы получить список продуктов, отфильтрованных по экосистемам, необходимо указать параметр ```filterBy``` в значение ```tenant``` и указать параметр ```code```, равный ```коду вашей экосистемы```
|
|
7
6
|
*/
|
|
8
|
-
export declare const Tenant: () => JSX.Element;
|
|
7
|
+
export declare const Tenant: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getIdentityProducts } from '
|
|
2
|
-
import { getGroupsProducts } from '
|
|
1
|
+
import { getIdentityProducts } from '../../../utils';
|
|
2
|
+
import { getGroupsProducts } from '../../../utils/getGroupsProducts';
|
|
3
3
|
import { ProductFilterType } from '../../enums';
|
|
4
4
|
/**
|
|
5
5
|
* Получение всех продуктов из разных экосистем и группировка в единую мапу
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const ASTRAL_IDENTITY_DEFAULT_TENANT = "astral";
|
|
3
2
|
export type IdentityProductSwitcherType = {
|
|
4
3
|
/**
|
|
@@ -6,4 +5,4 @@ export type IdentityProductSwitcherType = {
|
|
|
6
5
|
* */
|
|
7
6
|
identityUrl: string;
|
|
8
7
|
};
|
|
9
|
-
export declare const IdentityProductSwitcher: ({ identityUrl, }: IdentityProductSwitcherType) => JSX.Element;
|
|
8
|
+
export declare const IdentityProductSwitcher: ({ identityUrl, }: IdentityProductSwitcherType) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type WidgetProduct } from '@astral/ui';
|
|
2
2
|
import { type MouseEvent } from 'react';
|
|
3
|
-
import { type IdentityTenantsDTO } from '
|
|
3
|
+
import { type IdentityTenantsDTO } from '../../../types';
|
|
4
4
|
export declare const useLogic: (identityUrl: string, openMenu: () => void) => {
|
|
5
5
|
handleShowProducts: () => void;
|
|
6
6
|
isLoading: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IdentityProductSwitcher } from './IdentityProductSwitcher';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { IdentityProductSwitcher } from './IdentityProductSwitcher';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Meta } from '@storybook/react-vite';
|
|
3
2
|
declare const meta: Meta;
|
|
4
3
|
export default meta;
|
|
5
|
-
export declare const BasicUsage: () => JSX.Element;
|
|
4
|
+
export declare const BasicUsage: () => import("react/jsx-runtime").JSX.Element;
|
package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/styles.d.ts
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Grid, MenuItem, type StyledComponent, ToggleButton, ToggleButtonGroup } from '@astral/ui';
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
|
-
export declare const StyledMenu: ({ children, onClose, open, title, ...restProps }: import("@astral/ui").MenuProps) => JSX.Element;
|
|
3
|
+
export declare const StyledMenu: ({ children, onClose, open, title, ...restProps }: import("@astral/ui").MenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare const StyledMenuItem: typeof MenuItem;
|
|
5
5
|
export declare const Logo: StyledComponent<{
|
|
6
6
|
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
-
as?: import("react").ElementType<any> | undefined;
|
|
7
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
8
8
|
}, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
9
9
|
export declare const ErrorContainer: StyledComponent<ComponentProps<typeof Grid>>;
|
|
10
10
|
export declare const TenantsToggleButtonGroup: StyledComponent<ComponentProps<typeof ToggleButtonGroup>>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { AstralProductSwitcher
|
|
1
|
+
export { AstralProductSwitcher } from './AstralProductSwitcher';
|
|
2
|
+
export { IdentityProductSwitcher } from './IdentityProductSwitcher';
|
package/productSwitcher/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { AstralProductSwitcher
|
|
1
|
+
export { AstralProductSwitcher } from './AstralProductSwitcher';
|
|
2
|
+
export { IdentityProductSwitcher } from './IdentityProductSwitcher';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./AstralProductSwitcher"), exports);
|
|
18
|
-
__exportStar(require("./enums"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './IdentityProductSwitcher';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./IdentityProductSwitcher"), exports);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./AstralProductSwitcher"), exports);
|
|
18
|
-
__exportStar(require("./IdentityProductSwitcher"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './IdentityProductSwitcher';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './IdentityProductSwitcher';
|
|
File without changes
|
/package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/enums.d.ts
RENAMED
|
File without changes
|
/package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/enums.js
RENAMED
|
File without changes
|
/package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/index.d.ts
RENAMED
|
File without changes
|
/package/node/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/enums.d.ts
RENAMED
|
File without changes
|
/package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/enums.js
RENAMED
|
File without changes
|
/package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/index.d.ts
RENAMED
|
File without changes
|
/package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/utils/index.d.ts
RENAMED
|
File without changes
|
/package/productSwitcher/{components/AstralProductSwitcher → AstralProductSwitcher}/utils/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/index.d.ts
RENAMED
|
File without changes
|
/package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/productSwitcher/{components/IdentityProductSwitcher → IdentityProductSwitcher}/styles.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|