create-ec-app 0.0.11 → 1.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.
@@ -16,28 +16,28 @@
16
16
  "lint:fix": "biome lint --apply ."
17
17
  },
18
18
  "dependencies": {
19
- "@tailwindcss/vite": "^4.1.18",
20
- "tailwindcss": "^4.1.18",
21
- "@tanstack/react-query": "^5.90.16",
19
+ "@tailwindcss/vite": "^4.2.1",
20
+ "tailwindcss": "^4.2.1",
21
+ "@tanstack/react-query": "^5.90.21",
22
22
  "@types/xrm": "^9.0.88",
23
- "react": "^19.2.3",
24
- "react-dom": "^19.2.3",
25
- "zod": "^4.3.5",
26
- "zustand": "^5.0.9"
23
+ "react": "^19.2.4",
24
+ "react-dom": "^19.2.4",
25
+ "zod": "^4.3.6",
26
+ "zustand": "^5.0.11"
27
27
  },
28
28
  "devDependencies": {
29
- "@eslint/js": "^9.39.2",
30
- "@tanstack/eslint-plugin-query": "^5.91.2",
31
- "@types/node": "^24.10.4",
32
- "@types/react": "^19.2.7",
29
+ "@eslint/js": "^9.39.3",
30
+ "@tanstack/eslint-plugin-query": "^5.91.4",
31
+ "@types/node": "^24.11.0",
32
+ "@types/react": "^19.2.14",
33
33
  "@types/react-dom": "^19.2.3",
34
- "@vitejs/plugin-react": "^5.1.2",
35
- "eslint": "^9.39.2",
34
+ "@vitejs/plugin-react": "^5.1.4",
35
+ "eslint": "^9.39.3",
36
36
  "eslint-plugin-react-hooks": "^7.0.1",
37
- "eslint-plugin-react-refresh": "^0.4.26",
37
+ "eslint-plugin-react-refresh": "^0.5.2",
38
38
  "globals": "^16.5.0",
39
39
  "typescript": "~5.9.3",
40
- "typescript-eslint": "^8.52.0",
41
- "vite": "^7.3.0"
40
+ "typescript-eslint": "^8.56.1",
41
+ "vite": "^7.3.1"
42
42
  }
43
43
  }
@@ -1 +1,3 @@
1
1
  @import "tailwindcss";
2
+
3
+ @custom-variant hover (&:hover);
@@ -1,38 +1,37 @@
1
-
2
1
  const getAuthToken = async (): Promise<string> => {
3
- const tokenModule = await import("../../token.json");
4
- const token = tokenModule.default.accessToken;
5
- return token;
2
+ const tokenModule = await import("../../token.json");
3
+ const token = tokenModule.default.accessToken;
4
+ return token;
6
5
  };
7
6
 
8
7
  export const getApiUrl = (): string => {
9
- if (window.parent && window.parent.Xrm) {
10
- const globalContext = window.Xrm.Utility.getGlobalContext();
11
- const clientUrl = globalContext.getClientUrl();
12
- return `${clientUrl}/api/data/v9.2`;
13
- }
8
+ if (window.top?.Xrm) {
9
+ const globalContext = window.top.Xrm.Utility.getGlobalContext();
10
+ const clientUrl = globalContext.getClientUrl();
11
+ return `${clientUrl}/api/data/v9.2`;
12
+ }
14
13
 
15
- return "https://DOMAIN.REGION.dynamics.com/api/data/v9.2";
14
+ return "https://DOMAIN.REGION.dynamics.com/api/data/v9.2";
16
15
  };
17
16
 
18
17
  export const getAuthHeaders = async (): Promise<HeadersInit> => {
19
- if (window.parent && window.parent.Xrm) {
20
- return {
21
- "Content-Type": "application/json",
22
- "OData-MaxVersion": "4.0",
23
- "OData-Version": "4.0",
24
- Prefer: 'odata.include-annotations="*"',
25
- };
26
- }
18
+ if (window.top?.Xrm) {
19
+ return {
20
+ "Content-Type": "application/json",
21
+ "OData-MaxVersion": "4.0",
22
+ "OData-Version": "4.0",
23
+ Prefer: 'odata.include-annotations="*"',
24
+ };
25
+ }
27
26
 
28
- const token = await getAuthToken();
29
- const headers: HeadersInit = {
30
- Authorization: `Bearer ${token}`,
31
- "Content-Type": "application/json",
32
- "OData-MaxVersion": "4.0",
33
- "OData-Version": "4.0",
34
- Prefer: 'odata.include-annotations="*"',
35
- };
27
+ const token = await getAuthToken();
28
+ const headers: HeadersInit = {
29
+ Authorization: `Bearer ${token}`,
30
+ "Content-Type": "application/json",
31
+ "OData-MaxVersion": "4.0",
32
+ "OData-Version": "4.0",
33
+ Prefer: 'odata.include-annotations="*"',
34
+ };
36
35
 
37
- return headers;
38
- };
36
+ return headers;
37
+ };
@@ -1,6 +1,7 @@
1
1
  @import "tailwindcss";
2
2
  @import "tw-animate-css";
3
3
 
4
+ @custom-variant hover (&:hover);
4
5
  @custom-variant dark (&:is(.dark *));
5
6
 
6
7
  @theme inline {
@@ -118,4 +119,3 @@
118
119
  @apply bg-background text-foreground;
119
120
  }
120
121
  }
121
-
@@ -1,3 +0,0 @@
1
- VITE_AAD_CLIENT_ID=db392465-21e2-4e5f-9fa5-a25d4dab354f
2
- VITE_AAD_TENANT_ID=961b8f6e-3902-49b5-b679-5beabfc73016
3
- VITE_AUTH_DEBUG=true