@sonic-equipment/ui 245.0.0 → 246.0.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/dist/config.d.ts CHANGED
@@ -7,6 +7,7 @@ interface Config {
7
7
  COOKIE_DOMAIN?: string;
8
8
  HOME_PAGE_URL: string;
9
9
  SHOP_API_URL: string;
10
+ SHOP_URL: string;
10
11
  }
11
12
  export declare const configPerEnvironment: Record<Environment, () => Config>;
12
13
  export declare const config: Config;
package/dist/config.js CHANGED
@@ -15,6 +15,9 @@ const configPerEnvironment = {
15
15
  SHOP_API_URL:
16
16
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
17
17
  env?.VITE_SHOP_API_URL || '',
18
+ SHOP_URL:
19
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
20
+ env?.VITE_SHOP_URL || '',
18
21
  }),
19
22
  marketingLocal: () => ({
20
23
  ALGOLIA_API_KEY: 'e0edf30798a6b2e4e44fd25f0f2f9646',
@@ -26,6 +29,9 @@ const configPerEnvironment = {
26
29
  SHOP_API_URL:
27
30
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
28
31
  env?.VITE_SHOP_API_URL || 'https://localhost:8000',
32
+ SHOP_URL:
33
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
34
+ env?.VITE_SHOP_URL || 'https://localhost:8000',
29
35
  }),
30
36
  'next-development': () => ({
31
37
  // @ts-expect-error: process is not defined in the browser
@@ -41,6 +47,8 @@ const configPerEnvironment = {
41
47
  HOME_PAGE_URL: '/',
42
48
  // @ts-expect-error: process is not defined in the browser
43
49
  SHOP_API_URL: process.env.SHOP_API_URL || '',
50
+ // @ts-expect-error: process is not defined in the browser
51
+ SHOP_URL: process.env.SHOP_URL || '',
44
52
  }),
45
53
  'next-production': () => ({
46
54
  // @ts-expect-error: process is not defined in the browser
@@ -56,6 +64,8 @@ const configPerEnvironment = {
56
64
  HOME_PAGE_URL: '/',
57
65
  // @ts-expect-error: process is not defined in the browser
58
66
  SHOP_API_URL: process.env.SHOP_API_URL || '',
67
+ // @ts-expect-error: process is not defined in the browser
68
+ SHOP_URL: process.env.SHOP_URL || '',
59
69
  }),
60
70
  production: () => ({
61
71
  ALGOLIA_API_KEY: 'e31a3a53449eceb4d0f9273b9bcd9759',
@@ -65,6 +75,7 @@ const configPerEnvironment = {
65
75
  COOKIE_DOMAIN: '.sonic-equipment.com',
66
76
  HOME_PAGE_URL: 'https://sonic-equipment.com/',
67
77
  SHOP_API_URL: 'https://shopapi.sonic-equipment.com',
78
+ SHOP_URL: 'https://shop.sonic-equipment.com',
68
79
  }),
69
80
  sandbox: () => ({
70
81
  ALGOLIA_API_KEY: 'e0edf30798a6b2e4e44fd25f0f2f9646',
@@ -74,6 +85,7 @@ const configPerEnvironment = {
74
85
  COOKIE_DOMAIN: '.accept-sonic-equipment.com',
75
86
  HOME_PAGE_URL: 'https://accept-sonic-equipment.com/',
76
87
  SHOP_API_URL: 'https://shop.accept-sonic-equipment.com',
88
+ SHOP_URL: 'https://shop.accept-sonic-equipment.com',
77
89
  }),
78
90
  'sandbox-reverse-proxy': () => ({
79
91
  ALGOLIA_API_KEY: 'e0edf30798a6b2e4e44fd25f0f2f9646',
@@ -83,6 +95,7 @@ const configPerEnvironment = {
83
95
  COOKIE_DOMAIN: '.workers.dev',
84
96
  HOME_PAGE_URL: 'https://shop-accept.sonic-equipment.workers.dev/',
85
97
  SHOP_API_URL: 'https://shop-accept.sonic-equipment.workers.dev',
98
+ SHOP_URL: 'https://shop-accept.sonic-equipment.workers.dev',
86
99
  }),
87
100
  storybook: () => ({
88
101
  ALGOLIA_API_KEY: 'e0edf30798a6b2e4e44fd25f0f2f9646',
@@ -94,6 +107,7 @@ const configPerEnvironment = {
94
107
  SHOP_API_URL:
95
108
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
96
109
  env?.VITE_SHOP_API_URL || 'https://localhost:8000',
110
+ SHOP_URL: env.VITE_SHOP_URL || 'https://localhost:8000',
97
111
  }),
98
112
  };
99
113
  const configFunction = configPerEnvironment[environment];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonic-equipment/ui",
3
- "version": "245.0.0",
3
+ "version": "246.0.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "engines": {