@astral/features 4.87.0 → 4.88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -6
- package/node/productSwitcher/AstralProductSwitcher/stories/BasicUsage.story.d.ts +0 -4
- package/node/productSwitcher/AstralProductSwitcher/stories/BasicUsage.story.js +0 -10
- package/node/productSwitcher/AstralProductSwitcher/stories/Group.story.d.ts +0 -7
- package/node/productSwitcher/AstralProductSwitcher/stories/Group.story.js +0 -14
- package/node/productSwitcher/AstralProductSwitcher/stories/Interaction.story.d.ts +0 -6
- package/node/productSwitcher/AstralProductSwitcher/stories/Interaction.story.js +0 -19
- package/node/productSwitcher/AstralProductSwitcher/stories/Tenant.story.d.ts +0 -7
- package/node/productSwitcher/AstralProductSwitcher/stories/Tenant.story.js +0 -14
- package/node/productSwitcher/AstralProductSwitcher/stories/common/index.d.ts +0 -2
- package/node/productSwitcher/AstralProductSwitcher/stories/common/index.js +0 -18
- package/node/productSwitcher/AstralProductSwitcher/stories/common/mockData.d.ts +0 -27
- package/node/productSwitcher/AstralProductSwitcher/stories/common/mockData.js +0 -119
- package/node/productSwitcher/AstralProductSwitcher/stories/common/mockResponses.d.ts +0 -59
- package/node/productSwitcher/AstralProductSwitcher/stories/common/mockResponses.js +0 -54
- package/node/productSwitcher/IdentityProductSwitcher/stories/BasicUsage.story.d.ts +0 -4
- package/node/productSwitcher/IdentityProductSwitcher/stories/BasicUsage.story.js +0 -9
- package/node/productSwitcher/IdentityProductSwitcher/stories/Interaction.story.d.ts +0 -6
- package/node/productSwitcher/IdentityProductSwitcher/stories/Interaction.story.js +0 -16
- package/node/productSwitcher/IdentityProductSwitcher/stories/common/index.d.ts +0 -2
- package/node/productSwitcher/IdentityProductSwitcher/stories/common/index.js +0 -18
- package/node/productSwitcher/IdentityProductSwitcher/stories/common/mockData.d.ts +0 -27
- package/node/productSwitcher/IdentityProductSwitcher/stories/common/mockData.js +0 -119
- package/node/productSwitcher/IdentityProductSwitcher/stories/common/mockResponses.d.ts +0 -47
- package/node/productSwitcher/IdentityProductSwitcher/stories/common/mockResponses.js +0 -58
- package/productSwitcher/AstralProductSwitcher/stories/BasicUsage.story.d.ts +0 -4
- package/productSwitcher/AstralProductSwitcher/stories/BasicUsage.story.js +0 -6
- package/productSwitcher/AstralProductSwitcher/stories/Group.story.d.ts +0 -7
- package/productSwitcher/AstralProductSwitcher/stories/Group.story.js +0 -10
- package/productSwitcher/AstralProductSwitcher/stories/Interaction.story.d.ts +0 -6
- package/productSwitcher/AstralProductSwitcher/stories/Interaction.story.js +0 -16
- package/productSwitcher/AstralProductSwitcher/stories/Tenant.story.d.ts +0 -7
- package/productSwitcher/AstralProductSwitcher/stories/Tenant.story.js +0 -10
- package/productSwitcher/AstralProductSwitcher/stories/common/index.d.ts +0 -2
- package/productSwitcher/AstralProductSwitcher/stories/common/index.js +0 -2
- package/productSwitcher/AstralProductSwitcher/stories/common/mockData.d.ts +0 -27
- package/productSwitcher/AstralProductSwitcher/stories/common/mockData.js +0 -116
- package/productSwitcher/AstralProductSwitcher/stories/common/mockResponses.d.ts +0 -59
- package/productSwitcher/AstralProductSwitcher/stories/common/mockResponses.js +0 -50
- package/productSwitcher/IdentityProductSwitcher/stories/BasicUsage.story.d.ts +0 -4
- package/productSwitcher/IdentityProductSwitcher/stories/BasicUsage.story.js +0 -5
- package/productSwitcher/IdentityProductSwitcher/stories/Interaction.story.d.ts +0 -6
- package/productSwitcher/IdentityProductSwitcher/stories/Interaction.story.js +0 -13
- package/productSwitcher/IdentityProductSwitcher/stories/common/index.d.ts +0 -2
- package/productSwitcher/IdentityProductSwitcher/stories/common/index.js +0 -2
- package/productSwitcher/IdentityProductSwitcher/stories/common/mockData.d.ts +0 -27
- package/productSwitcher/IdentityProductSwitcher/stories/common/mockData.js +0 -116
- package/productSwitcher/IdentityProductSwitcher/stories/common/mockResponses.d.ts +0 -47
- package/productSwitcher/IdentityProductSwitcher/stories/common/mockResponses.js +0 -54
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { MockRequest } from './mockData';
|
|
2
|
-
export declare const createProductsMockResponse: ({ searchParams }: MockRequest) => {
|
|
3
|
-
data: {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
productUrl: string;
|
|
7
|
-
description: string;
|
|
8
|
-
shortDescription: string;
|
|
9
|
-
iconFileId: string;
|
|
10
|
-
logoUrl: string;
|
|
11
|
-
backgroundHexColor: string;
|
|
12
|
-
tenantId: string;
|
|
13
|
-
}[];
|
|
14
|
-
meta: {
|
|
15
|
-
totalCount: number;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export declare const MOCK_FETCH_IDENTITY_PRODUCTS: {
|
|
19
|
-
url: string;
|
|
20
|
-
method: string;
|
|
21
|
-
status: number;
|
|
22
|
-
response: ({ searchParams }: MockRequest) => {
|
|
23
|
-
data: {
|
|
24
|
-
id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
productUrl: string;
|
|
27
|
-
description: string;
|
|
28
|
-
shortDescription: string;
|
|
29
|
-
iconFileId: string;
|
|
30
|
-
logoUrl: string;
|
|
31
|
-
backgroundHexColor: string;
|
|
32
|
-
tenantId: string;
|
|
33
|
-
}[];
|
|
34
|
-
meta: {
|
|
35
|
-
totalCount: number;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
}[];
|
|
39
|
-
export declare const MOCK_FETCH_IDENTITY_TENANTS: {
|
|
40
|
-
url: string;
|
|
41
|
-
method: string;
|
|
42
|
-
status: number;
|
|
43
|
-
response: {
|
|
44
|
-
id: string;
|
|
45
|
-
name: string;
|
|
46
|
-
}[];
|
|
47
|
-
}[];
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { ASTRAL_PRODUCTS, ECO_PRODUCTS, IDENTITY_URL } from './mockData';
|
|
2
|
-
export const createProductsMockResponse = ({ searchParams }) => {
|
|
3
|
-
switch (searchParams.tenantId) {
|
|
4
|
-
case 'astral': {
|
|
5
|
-
return {
|
|
6
|
-
data: ASTRAL_PRODUCTS,
|
|
7
|
-
meta: {
|
|
8
|
-
totalCount: ASTRAL_PRODUCTS.length,
|
|
9
|
-
},
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
case 'eco': {
|
|
13
|
-
return {
|
|
14
|
-
data: ECO_PRODUCTS,
|
|
15
|
-
meta: {
|
|
16
|
-
totalCount: ECO_PRODUCTS.length,
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
default: {
|
|
21
|
-
return {
|
|
22
|
-
data: [],
|
|
23
|
-
meta: {
|
|
24
|
-
totalCount: 0,
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
export const MOCK_FETCH_IDENTITY_PRODUCTS = [
|
|
31
|
-
{
|
|
32
|
-
url: `${IDENTITY_URL}/api/products/widget?tenantId=*`,
|
|
33
|
-
method: 'GET',
|
|
34
|
-
status: 200,
|
|
35
|
-
response: createProductsMockResponse,
|
|
36
|
-
},
|
|
37
|
-
];
|
|
38
|
-
export const MOCK_FETCH_IDENTITY_TENANTS = [
|
|
39
|
-
{
|
|
40
|
-
url: `${IDENTITY_URL}/api/tenants/widget`,
|
|
41
|
-
method: 'GET',
|
|
42
|
-
status: 200,
|
|
43
|
-
response: [
|
|
44
|
-
{
|
|
45
|
-
id: 'astral',
|
|
46
|
-
name: 'Астрал',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
id: 'eco',
|
|
50
|
-
name: 'Экосистема',
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
},
|
|
54
|
-
];
|