@corva/create-app 0.106.0 → 0.107.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.
@@ -5,13 +5,13 @@ export const APP_RUNTIMES = {
5
5
  // NODE16: 'nodejs16.x',
6
6
  NODE18: 'nodejs18.x',
7
7
  NODE20: 'nodejs20.x',
8
- // NODE22: 'nodejs22.x',
9
- PYTHON3_8: 'python3.8',
10
- PYTHON3_9: 'python3.9',
11
- PYTHON3_10: 'python3.10',
8
+ NODE22: 'nodejs22.x',
9
+ // PYTHON3_8: 'python3.8',
10
+ // PYTHON3_9: 'python3.9',
11
+ // PYTHON3_10: 'python3.10',
12
12
  PYTHON3_11: 'python3.11',
13
13
  PYTHON3_12: 'python3.12',
14
- // PYTHON3_13: 'python3.13',
14
+ PYTHON3_13: 'python3.13',
15
15
  };
16
16
 
17
17
  export const TEMPLATE_TYPES = {
@@ -38,6 +38,7 @@ export const defaultUIAppManifest = {
38
38
  initial_size: { w: 4, h: 10 },
39
39
  multi_rig: false,
40
40
  full_screen_report: false,
41
+ use_app_header_v3: true,
41
42
  },
42
43
  },
43
44
  settings: {
@@ -11,7 +11,7 @@ const SCHEDULER_MAPPING = [SCHEDULER_TYPE_DATA_TIME, SCHEDULER_TYPE_DEPTH, SCHED
11
11
  {},
12
12
  );
13
13
 
14
- const NODE_RUNTIMES = [APP_RUNTIMES.NODE18, APP_RUNTIMES.NODE20];
14
+ const NODE_RUNTIMES = [APP_RUNTIMES.NODE18, APP_RUNTIMES.NODE20, APP_RUNTIMES.NODE22];
15
15
 
16
16
  export class Manifest {
17
17
  constructor(manifest) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/create-app",
3
- "version": "0.106.0",
3
+ "version": "0.107.0",
4
4
  "private": false,
5
5
  "description": "Create an app to use it in CORVA.AI",
6
6
  "keywords": [
@@ -27,7 +27,7 @@ function App({
27
27
 
28
28
  return (
29
29
  <AppContainer header={<AppHeader />} testId={appKey}>
30
- <div>
30
+ <div className={styles.container}>
31
31
  <img src={logo} alt="logo" className={styles.logo} />
32
32
  <p>
33
33
  Edit <code>src/App.js</code> and save to reload.
@@ -37,7 +37,7 @@ function App({
37
37
  <p>
38
38
  Frac Fleet: <span data-testid="fracFleet">{fracFleet?.name || 'No Frac Fleet'}</span>
39
39
  <br />
40
- Wells: <span data-testid="wellsList">{wellsList.map(well => well.name).join(', ')}</span>
40
+ Wells: <span data-testid="wellsList">{wellsList.map(well => well?.name).join(', ')}</span>
41
41
  </p>
42
42
  <a
43
43
  className="App-link"
@@ -1,3 +1,7 @@
1
+ .container {
2
+ text-align: center;
3
+ }
4
+
1
5
  @keyframes App-logo-spin {
2
6
  from {
3
7
  transform: rotate(0deg);
@@ -17,7 +17,7 @@ function App({ isExampleCheckboxChecked = DEFAULT_SETTINGS.isExampleCheckboxChec
17
17
  const { appKey } = useAppCommons();
18
18
  return (
19
19
  <AppContainer header={<AppHeader />} testId={appKey}>
20
- <div>
20
+ <div className={styles.container}>
21
21
  <img src={logo} alt="logo" className={styles.logo} />
22
22
  <p>
23
23
  Edit <code>src/App.js</code> and save to reload.
@@ -25,9 +25,9 @@ function App({ isExampleCheckboxChecked = DEFAULT_SETTINGS.isExampleCheckboxChec
25
25
  <br />
26
26
  </p>
27
27
  <p>
28
- Rig: <span data-testid="rig">{rig.name}</span>
28
+ Rig: <span data-testid="rig">{rig?.name}</span>
29
29
  <br />
30
- Well: <span data-testid="well">{well.name}</span>
30
+ Well: <span data-testid="well">{well?.name}</span>
31
31
  </p>
32
32
  <a
33
33
  className="App-link"
@@ -26,7 +26,7 @@ function App({
26
26
 
27
27
  return (
28
28
  <AppContainer header={<AppHeader />} testId={appKey}>
29
- <div>
29
+ <div className={styles.container}>
30
30
  <img src={logo} alt="logo" className={styles.logo} />
31
31
  <p>
32
32
  Edit <code>src/App.js</code> and save to reload.
@@ -36,7 +36,7 @@ function App({
36
36
  <p>
37
37
  Frac Fleet: <span data-testid="fracFleet">{fracFleet?.name || 'No Frac Fleet'}</span>
38
38
  <br />
39
- Wells: <span data-testid="wellsList">{wellsList.map(well => well.name).join(', ')}</span>
39
+ Wells: <span data-testid="wellsList">{wellsList.map(well => well?.name).join(', ')}</span>
40
40
  </p>
41
41
  <a
42
42
  className="App-link"
@@ -1,3 +1,7 @@
1
+ .container {
2
+ text-align: center;
3
+ }
4
+
1
5
  @keyframes App-logo-spin {
2
6
  from {
3
7
  transform: rotate(0deg);
@@ -20,7 +20,7 @@ function App({
20
20
  const { appKey } = useAppCommons();
21
21
  return (
22
22
  <AppContainer header={<AppHeader />} testId={appKey}>
23
- <div>
23
+ <div className={styles.container}>
24
24
  <img src={logo} alt="logo" className={styles.logo} />
25
25
  <p>
26
26
  Edit <code>src/App.js</code> and save to reload.
@@ -28,9 +28,9 @@ function App({
28
28
  <br />
29
29
  </p>
30
30
  <p>
31
- Rig: <span data-testid="rig">{rig.name}</span>
31
+ Rig: <span data-testid="rig">{rig?.name}</span>
32
32
  <br />
33
- Well: <span data-testid="well">{well.name}</span>
33
+ Well: <span data-testid="well">{well?.name}</span>
34
34
  </p>
35
35
  <a
36
36
  className="App-link"