@cognite/dune 0.3.6 → 0.3.7

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.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  to: '<%= useCurrentDir ? "" : ((directoryName || name) + "/") %>eslint.config.mjs'
3
3
  ---
4
+ import { auraEslintPlugin } from '@cognite/aura/eslint';
4
5
  import js from '@eslint/js';
5
6
  import importPlugin from 'eslint-plugin-import';
6
7
  import noOnlyTestsPlugin from 'eslint-plugin-no-only-tests';
@@ -80,6 +81,7 @@ export default tseslint.config(
80
81
  },
81
82
  },
82
83
  plugins: {
84
+ aura: auraEslintPlugin,
83
85
  'react-hooks': reactHooks,
84
86
  'react-refresh': reactRefresh,
85
87
  },
@@ -89,6 +91,7 @@ export default tseslint.config(
89
91
  '@typescript-eslint/no-explicit-any': 'error',
90
92
  '@typescript-eslint/no-non-null-assertion': 'off',
91
93
  '@typescript-eslint/no-unused-vars': ['error', noUnusedVarsOptions],
94
+ 'aura/no-overriding-styles': 'warn',
92
95
  'no-unused-vars': 'off',
93
96
  'react-refresh/only-export-components': ['error', { allowConstantExport: true }],
94
97
  },
@@ -21,9 +21,9 @@ to: '<%= useCurrentDir ? "" : ((directoryName || name) + "/") %>package.json'
21
21
  "deploy-preview": "dune deploy:interactive"
22
22
  },
23
23
  "dependencies": {
24
- "@cognite/aura": "^0.1.4",
24
+ "@cognite/aura": "^0.1.5",
25
25
  "@cognite/sdk": "^10.3.0",
26
- "@cognite/dune": "^0.3.6",
26
+ "@cognite/dune": "^0.3.7",
27
27
  "@tabler/icons-react": "^3.35.0",
28
28
  "@tanstack/react-query": "^5.90.10",
29
29
  "clsx": "^2.1.1",
@@ -92,8 +92,8 @@ function App() {
92
92
  <Card>
93
93
  <div className="p-15 gap-16">
94
94
  <CardHeader>
95
- <CardTitle as="h1" className="text-4xl">Welcome to Dune</CardTitle>
96
- <CardDescription className="text-xl">{INTRO_COPY}</CardDescription>
95
+ <CardTitle as="h1">Welcome to Dune</CardTitle>
96
+ <CardDescription>{INTRO_COPY}</CardDescription>
97
97
  </CardHeader>
98
98
 
99
99
  <CardContent>
@@ -119,34 +119,36 @@ function App() {
119
119
  </span>
120
120
  </div>
121
121
  </CollapsibleTrigger>
122
- <CollapsibleContent className="py-2">
123
- {step.body}
122
+ <CollapsibleContent>
123
+ <div className="py-2">{step.body}</div>
124
124
  </CollapsibleContent>
125
125
  </Collapsible>
126
126
  ))}
127
127
  </div>
128
128
 
129
- <Alert className="bg-mountain-50 mb-10">
130
- <AlertDescription>
131
- <div className="flex flex-wrap items-center gap-2 text-lg">
132
- <span>Your app will deploy to</span>
133
- {orgLabel ? (
134
- <>
135
- <span>org</span>
136
- <Badge variant="nordic" background>
137
- {orgLabel}
138
- </Badge>
139
- <span>and project</span>
140
- </>
141
- ) : (
142
- <span>project</span>
143
- )}
144
- <Badge variant="nordic" background>
145
- {projectLabel}
146
- </Badge>
147
- </div>
148
- </AlertDescription>
149
- </Alert>
129
+ <div className="mb-10">
130
+ <Alert variant="secondary">
131
+ <AlertDescription>
132
+ <div className="flex flex-wrap items-center gap-2 text-lg">
133
+ <span>Your app will deploy to</span>
134
+ {orgLabel ? (
135
+ <>
136
+ <span>org</span>
137
+ <Badge variant="nordic" background>
138
+ {orgLabel}
139
+ </Badge>
140
+ <span>and project</span>
141
+ </>
142
+ ) : (
143
+ <span>project</span>
144
+ )}
145
+ <Badge variant="nordic" background>
146
+ {projectLabel}
147
+ </Badge>
148
+ </div>
149
+ </AlertDescription>
150
+ </Alert>
151
+ </div>
150
152
 
151
153
  <Collapsible>
152
154
  <CollapsibleTrigger className="w-full">
@@ -160,20 +162,22 @@ function App() {
160
162
  </span>
161
163
  </div>
162
164
  </CollapsibleTrigger>
163
- <CollapsibleContent className="py-2">
164
- <p>
165
- For additional support and feedback, please head to{' '}
166
- <a
167
- href={DUNE_DOCUMENTATION_HREF}
168
- rel="noreferrer"
169
- style={{ color: '#486AED' }}
170
- target="_blank"
171
- >
172
- Dune documentation
173
- </a>{' '}
174
- or the{' '}
175
- <span style={{ color: '#486AED' }}>#Dune Slack channel</span>.
176
- </p>
165
+ <CollapsibleContent>
166
+ <div className="py-2">
167
+ <p>
168
+ For additional support and feedback, please head to{' '}
169
+ <a
170
+ href={DUNE_DOCUMENTATION_HREF}
171
+ rel="noreferrer"
172
+ style={{ color: '#486AED' }}
173
+ target="_blank"
174
+ >
175
+ Dune documentation
176
+ </a>{' '}
177
+ or the{' '}
178
+ <span style={{ color: '#486AED' }}>#Dune Slack channel</span>.
179
+ </p>
180
+ </div>
177
181
  </CollapsibleContent>
178
182
  </Collapsible>
179
183
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cognite/dune",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Build and deploy React apps to Cognite Data Fusion",
5
5
  "keywords": ["cognite", "dune", "cdf", "fusion", "react", "scaffold", "deploy"],
6
6
  "license": "Apache-2.0",