@minnai/create-aura-app 0.0.21 → 0.0.23

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": "@minnai/create-aura-app",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "Scaffolding tool for new Aura projects",
5
5
  "bin": "dist/index.js",
6
6
  "files": [
@@ -0,0 +1,24 @@
1
+ # Logs
2
+ logs
3
+ *.log
4
+ npm-debug.log*
5
+ yarn-debug.log*
6
+ yarn-error.log*
7
+ pnpm-debug.log*
8
+ lerna-debug.log*
9
+
10
+ node_modules
11
+ dist
12
+ dist-ssr
13
+ *.local
14
+
15
+ # Editor directories and files
16
+ .vscode/*
17
+ !.vscode/extensions.json
18
+ .idea
19
+ .DS_Store
20
+ *.suo
21
+ *.ntvs*
22
+ *.njsproj
23
+ *.sln
24
+ *.sw?
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "aura-starter",
2
+ "name": "working-aura-starter",
3
3
  "private": true,
4
4
  "version": "0.0.0",
5
5
  "type": "module",
@@ -37,4 +37,4 @@
37
37
  "typescript-eslint": "^8.46.4",
38
38
  "vite": "^5.4.11"
39
39
  }
40
- }
40
+ }
@@ -1,6 +1,7 @@
1
1
  import { atmosphere } from '@minnai/aura/atmosphere';
2
2
  import TasksAIR from '@minnai/aura/atmosphere/tasks';
3
3
  import YouTubeAIR from '@minnai/aura/atmosphere/youtube-player';
4
+ import NoteTakerAIR from '@minnai/aura/atmosphere/note-taker';
4
5
 
5
6
  // Local Ambiance
6
7
  import { StocksManifest, Component as StocksComponent, resources as stocksResources } from './stocks-air';
@@ -9,21 +10,15 @@ import { LOCAL_AIRS } from '../../aura.config';
9
10
 
10
11
  export const registerExampleAIRs = () => {
11
12
  // 1. Register Standard AIRs (Core)
12
- const coreAIRs = [
13
- { data: TasksAIR, id: 'tasks-air' },
14
- { data: YouTubeAIR, id: 'youtube-player-air' }
15
- ];
16
-
17
- coreAIRs.forEach(({ data, id }) => {
18
- if (LOCAL_AIRS.includes(id)) {
19
- const air = (data as any).default || data;
20
- if (air && air.manifest) {
21
- atmosphere.register({
22
- ...air.manifest,
23
- component: air.component || air.Component,
24
- resources: air.resources
25
- });
26
- }
13
+ // The Standard AIRs export a wrapper object { manifest, resources, component }
14
+ // We need to flatten this to match AIRManifest { id, meta, component }
15
+ [TasksAIR, YouTubeAIR, NoteTakerAIR].forEach((air: any) => {
16
+ if (LOCAL_AIRS.includes(air.manifest.id)) {
17
+ atmosphere.register({
18
+ ...air.manifest,
19
+ component: air.component,
20
+ resources: air.resources
21
+ });
27
22
  }
28
23
  });
29
24
 
@@ -44,11 +39,10 @@ export const registerExampleAIRs = () => {
44
39
  }
45
40
  };
46
41
 
47
- const getManifest = (air: any) => (air?.default || air)?.manifest;
48
-
49
42
  export const EXAMPLE_AIRS = [
50
- getManifest(YouTubeAIR),
51
- getManifest(TasksAIR),
43
+ NoteTakerAIR.manifest,
44
+ YouTubeAIR.manifest,
45
+ TasksAIR.manifest,
52
46
  StocksManifest,
53
47
  CurrencyManifest
54
- ].filter(manifest => manifest && LOCAL_AIRS.includes(manifest.id));
48
+ ].filter(manifest => LOCAL_AIRS.includes(manifest.id));
@@ -18,8 +18,6 @@ export const resources = {
18
18
  }
19
19
  },
20
20
  keys: {
21
- // Get a free key at: https://www.alphavantage.co/support/#api-key
22
- // And put it below!!
23
- STOCKS_API_KEY: ''
21
+ STOCKS_API_KEY:
24
22
  }
25
23
  } as const;
@@ -13,7 +13,7 @@ export function Playground() {
13
13
  const [activeFile, setActiveFile] = useState<string | null>(null);
14
14
  const [fileContent, setFileContent] = useState<string>('');
15
15
 
16
- const BUILTIN_AIRS = ['youtube-player-air', 'tasks-air'];
16
+ const BUILTIN_AIRS = ['note-taker-air', 'youtube-player-air', 'tasks-air'];
17
17
 
18
18
  const handleSelect = async (id: string) => {
19
19
  setSelectedId(id);
@@ -271,24 +271,7 @@ export default {
271
271
  }
272
272
  }
273
273
  ],
274
- resolve: {
275
- alias: {
276
- 'react': path.resolve(__dirname, './node_modules/react'),
277
- 'react-dom': path.resolve(__dirname, './node_modules/react-dom'),
278
- },
279
- dedupe: ['react', 'react-dom']
280
- },
281
274
  server: {
282
275
  port: 5175
283
- },
284
- optimizeDeps: {
285
- include: [
286
- '@minnai/aura',
287
- '@minnai/aura/sdk',
288
- '@minnai/aura/flux/index',
289
- '@minnai/aura/atmosphere',
290
- '@minnai/aura/atmosphere/tasks',
291
- '@minnai/aura/atmosphere/youtube-player'
292
- ]
293
276
  }
294
277
  })