create-bluecopa-react-app 1.0.23 → 1.0.25

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-bluecopa-react-app",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "CLI tool to create bluecopa React applications",
5
5
  "type": "module",
6
6
  "main": "./bin/create-bluecopa-react-app.js",
@@ -29,10 +29,12 @@ export default function App(props: any) {
29
29
  console.warn('Failed to parse VITE_BLUECOPA_API_TOKEN:', error);
30
30
  }
31
31
 
32
+ console.log("Copa User", import.meta.env.VITE_BLUECOPA_API_URL);
33
+
32
34
  copaSetConfig({
33
35
  apiBaseUrl: props.apiBaseUrl || import.meta.env.VITE_BLUECOPA_API_URL || 'https://develop.bluecopa.com',
34
36
  workspaceId: props.workspaceId || import.meta.env.VITE_BLUECOPA_WORKSPACE_ID || '',
35
- accessToken: props.accessToken || copaUser?.accessToken || '',
37
+ accessToken: props.accessToken || copaUser?.accessToken || import.meta.env.VITE_BLUECOPA_API_TOKEN || '',
36
38
  userId: props.userId || copaUser.userId || ''
37
39
  } as any);
38
40
  }, []);
@@ -708,7 +708,10 @@ function FileUploadTestSection() {
708
708
 
709
709
  const result = await fileUploadMutation.mutateAsync({
710
710
  data: parsedData,
711
- uploadType: "DEFINITION",
711
+ uploadType: "JSON",
712
+ contentType: "application/json",
713
+ method: "PUT",
714
+ path: "test/test.json",
712
715
  });
713
716
  console.log("File uploaded, fileId:", result.fileId);
714
717
  setFileId(result.fileId);
@@ -6,7 +6,7 @@
6
6
  "": {
7
7
  "name": "boilerplate-copa",
8
8
  "dependencies": {
9
- "@bluecopa/react": "^0.1.19",
9
+ "@bluecopa/react": "0.1.22",
10
10
  "@dnd-kit/core": "^6.3.1",
11
11
  "@dnd-kit/modifiers": "^9.0.0",
12
12
  "@dnd-kit/sortable": "^10.0.0",
@@ -66,9 +66,9 @@
66
66
  }
67
67
  },
68
68
  "node_modules/@bluecopa/core": {
69
- "version": "0.1.17",
70
- "resolved": "https://registry.npmjs.org/@bluecopa/core/-/core-0.1.17.tgz",
71
- "integrity": "sha512-w6tvOdCCjaBXAxYYV2tpRmrOTkC/L/VQ09v4qkBbU29NtMZRgLkBUOqEIiYsSff70ZtW05sT+VEAH9sympWhgQ==",
69
+ "version": "0.1.20",
70
+ "resolved": "https://registry.npmjs.org/@bluecopa/core/-/core-0.1.20.tgz",
71
+ "integrity": "sha512-+mKixu63XsaHUMqJ+z9WozB/YwojozzTVoCmT7BvWWHkr4kfbgBh2ylq/aSEtFzmyXlf8n7z+Wc0ZpLds+Vwww==",
72
72
  "license": "MIT",
73
73
  "dependencies": {
74
74
  "axios": "1.12.0",
@@ -80,12 +80,12 @@
80
80
  }
81
81
  },
82
82
  "node_modules/@bluecopa/react": {
83
- "version": "0.1.19",
84
- "resolved": "https://registry.npmjs.org/@bluecopa/react/-/react-0.1.19.tgz",
85
- "integrity": "sha512-KsXZBY/boOdrYQnSq3jZdplhZA3b6vzSL2jwoBNe9c1vQDRdmRHpnfS623dlengON6G1CEFrHfbpeLKGmoaq8Q==",
83
+ "version": "0.1.22",
84
+ "resolved": "https://registry.npmjs.org/@bluecopa/react/-/react-0.1.22.tgz",
85
+ "integrity": "sha512-oQNntF0vEcG/x/ceSm+Mzj3RyjcE9HSAg8DFNDYKX7hnX0Ux6PENb2/Pn2EasoudOxhGo4K+VljiW2GoWCQacA==",
86
86
  "license": "MIT",
87
87
  "dependencies": {
88
- "@bluecopa/core": "0.1.17",
88
+ "@bluecopa/core": "0.1.20",
89
89
  "@tanstack/react-query": "5.59.0",
90
90
  "@tanstack/react-query-devtools": "5.59.0"
91
91
  },
@@ -10,7 +10,7 @@
10
10
  "typecheck": "tsc"
11
11
  },
12
12
  "dependencies": {
13
- "@bluecopa/react": "0.1.21",
13
+ "@bluecopa/react": "0.1.23",
14
14
  "@dnd-kit/core": "^6.3.1",
15
15
  "@dnd-kit/modifiers": "^9.0.0",
16
16
  "@dnd-kit/sortable": "^10.0.0",