@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.
Files changed (49) hide show
  1. package/package.json +6 -6
  2. package/node/productSwitcher/AstralProductSwitcher/stories/BasicUsage.story.d.ts +0 -4
  3. package/node/productSwitcher/AstralProductSwitcher/stories/BasicUsage.story.js +0 -10
  4. package/node/productSwitcher/AstralProductSwitcher/stories/Group.story.d.ts +0 -7
  5. package/node/productSwitcher/AstralProductSwitcher/stories/Group.story.js +0 -14
  6. package/node/productSwitcher/AstralProductSwitcher/stories/Interaction.story.d.ts +0 -6
  7. package/node/productSwitcher/AstralProductSwitcher/stories/Interaction.story.js +0 -19
  8. package/node/productSwitcher/AstralProductSwitcher/stories/Tenant.story.d.ts +0 -7
  9. package/node/productSwitcher/AstralProductSwitcher/stories/Tenant.story.js +0 -14
  10. package/node/productSwitcher/AstralProductSwitcher/stories/common/index.d.ts +0 -2
  11. package/node/productSwitcher/AstralProductSwitcher/stories/common/index.js +0 -18
  12. package/node/productSwitcher/AstralProductSwitcher/stories/common/mockData.d.ts +0 -27
  13. package/node/productSwitcher/AstralProductSwitcher/stories/common/mockData.js +0 -119
  14. package/node/productSwitcher/AstralProductSwitcher/stories/common/mockResponses.d.ts +0 -59
  15. package/node/productSwitcher/AstralProductSwitcher/stories/common/mockResponses.js +0 -54
  16. package/node/productSwitcher/IdentityProductSwitcher/stories/BasicUsage.story.d.ts +0 -4
  17. package/node/productSwitcher/IdentityProductSwitcher/stories/BasicUsage.story.js +0 -9
  18. package/node/productSwitcher/IdentityProductSwitcher/stories/Interaction.story.d.ts +0 -6
  19. package/node/productSwitcher/IdentityProductSwitcher/stories/Interaction.story.js +0 -16
  20. package/node/productSwitcher/IdentityProductSwitcher/stories/common/index.d.ts +0 -2
  21. package/node/productSwitcher/IdentityProductSwitcher/stories/common/index.js +0 -18
  22. package/node/productSwitcher/IdentityProductSwitcher/stories/common/mockData.d.ts +0 -27
  23. package/node/productSwitcher/IdentityProductSwitcher/stories/common/mockData.js +0 -119
  24. package/node/productSwitcher/IdentityProductSwitcher/stories/common/mockResponses.d.ts +0 -47
  25. package/node/productSwitcher/IdentityProductSwitcher/stories/common/mockResponses.js +0 -58
  26. package/productSwitcher/AstralProductSwitcher/stories/BasicUsage.story.d.ts +0 -4
  27. package/productSwitcher/AstralProductSwitcher/stories/BasicUsage.story.js +0 -6
  28. package/productSwitcher/AstralProductSwitcher/stories/Group.story.d.ts +0 -7
  29. package/productSwitcher/AstralProductSwitcher/stories/Group.story.js +0 -10
  30. package/productSwitcher/AstralProductSwitcher/stories/Interaction.story.d.ts +0 -6
  31. package/productSwitcher/AstralProductSwitcher/stories/Interaction.story.js +0 -16
  32. package/productSwitcher/AstralProductSwitcher/stories/Tenant.story.d.ts +0 -7
  33. package/productSwitcher/AstralProductSwitcher/stories/Tenant.story.js +0 -10
  34. package/productSwitcher/AstralProductSwitcher/stories/common/index.d.ts +0 -2
  35. package/productSwitcher/AstralProductSwitcher/stories/common/index.js +0 -2
  36. package/productSwitcher/AstralProductSwitcher/stories/common/mockData.d.ts +0 -27
  37. package/productSwitcher/AstralProductSwitcher/stories/common/mockData.js +0 -116
  38. package/productSwitcher/AstralProductSwitcher/stories/common/mockResponses.d.ts +0 -59
  39. package/productSwitcher/AstralProductSwitcher/stories/common/mockResponses.js +0 -50
  40. package/productSwitcher/IdentityProductSwitcher/stories/BasicUsage.story.d.ts +0 -4
  41. package/productSwitcher/IdentityProductSwitcher/stories/BasicUsage.story.js +0 -5
  42. package/productSwitcher/IdentityProductSwitcher/stories/Interaction.story.d.ts +0 -6
  43. package/productSwitcher/IdentityProductSwitcher/stories/Interaction.story.js +0 -13
  44. package/productSwitcher/IdentityProductSwitcher/stories/common/index.d.ts +0 -2
  45. package/productSwitcher/IdentityProductSwitcher/stories/common/index.js +0 -2
  46. package/productSwitcher/IdentityProductSwitcher/stories/common/mockData.d.ts +0 -27
  47. package/productSwitcher/IdentityProductSwitcher/stories/common/mockData.js +0 -116
  48. package/productSwitcher/IdentityProductSwitcher/stories/common/mockResponses.d.ts +0 -47
  49. 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
- ];