@getcortexlabs/create-mavis 0.1.0-rc.14 → 0.1.0-rc.16

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.
Files changed (69) hide show
  1. package/README.md +21 -28
  2. package/package.json +2 -4
  3. package/src/adapters.mjs +45 -23
  4. package/src/add-desktop.mjs +354 -0
  5. package/src/capabilities.mjs +233 -134
  6. package/src/cli.mjs +64 -60
  7. package/src/desktop.mjs +155 -0
  8. package/src/doctor.mjs +77 -108
  9. package/src/native-framework.mjs +144 -0
  10. package/src/portability.mjs +7 -106
  11. package/src/scaffold.mjs +36 -12
  12. package/src/shared-api.mjs +3 -0
  13. package/src/ui.mjs +30 -42
  14. package/templates/desktop/common/LICENSE +21 -0
  15. package/templates/desktop/common/build.mjs +49 -0
  16. package/templates/desktop/common/src/components.ts +60 -0
  17. package/templates/desktop/common/src/contract.mjs +35 -0
  18. package/templates/desktop/common/src/renderer.ts +76 -0
  19. package/templates/desktop/common/src/storage.ts +29 -0
  20. package/templates/desktop/directory/main.ts +35 -0
  21. package/templates/desktop/macos/launch.mjs +6 -0
  22. package/templates/desktop/macos/package.mjs +114 -0
  23. package/templates/desktop/macos/src/host.mjs +471 -0
  24. package/templates/desktop/welcome/Welcome.vue +56 -0
  25. package/templates/desktop/welcome/main.ts +24 -0
  26. package/templates/desktop/windows/NativeScript-LICENSE +19 -0
  27. package/templates/desktop/windows/launch.mjs +16 -0
  28. package/templates/desktop/windows/package.mjs +54 -0
  29. package/templates/desktop/windows/prepare-host.mjs +73 -0
  30. package/templates/desktop/windows/src/host.mjs +294 -0
  31. package/templates/native-framework/angular/screen.ts +84 -0
  32. package/templates/native-framework/common/nativescript.config.ts +6 -0
  33. package/templates/native-framework/common/src/app.ts +5 -0
  34. package/templates/native-framework/common/src/model.ts +40 -0
  35. package/templates/native-framework/common/src/references.d.ts +8 -0
  36. package/templates/native-framework/common/tsconfig.json +16 -0
  37. package/templates/native-framework/common/webpack.config.js +67 -0
  38. package/templates/native-framework/plain/screen.ts +102 -0
  39. package/templates/native-framework/react/screen.ts +83 -0
  40. package/templates/native-framework/solid/screen.ts +111 -0
  41. package/templates/native-framework/svelte/Welcome.svelte +26 -0
  42. package/templates/native-framework/svelte/screen.ts +14 -0
  43. package/templates/native-framework/svelte-tooling/svelte.config.js +20 -0
  44. package/src/add-macos.mjs +0 -386
  45. package/src/macos-capabilities.generated.mjs +0 -4190
  46. package/src/macos.mjs +0 -394
  47. package/src/migrate-directory.mjs +0 -121
  48. package/templates/directory/macos/DirectoryStorage.swift +0 -68
  49. package/templates/macos/examples/tasks/shared/TaskDetail.lite.tsx +0 -57
  50. package/templates/macos/examples/tasks/shared/TaskRow.lite.tsx +0 -33
  51. package/templates/macos/examples/tasks/shared/Tasks.lite.tsx +0 -251
  52. package/templates/macos/examples/tasks/shared/types.ts +0 -10
  53. package/templates/macos/mobile/src/App.vue +0 -14
  54. package/templates/macos/mobile/src/app.ts +0 -7
  55. package/templates/macos/native/Package.swift +0 -19
  56. package/templates/macos/native/Sources/MavisDesktop/App.swift +0 -35
  57. package/templates/macos/native/Sources/MavisDesktop/Fonts/LICENSE +0 -45
  58. package/templates/macos/native/Sources/MavisDesktop/Fonts/lucide.ttf +0 -0
  59. package/templates/macos/root/tsconfig.json +0 -14
  60. package/templates/macos/scripts/generate.mjs +0 -13
  61. package/templates/macos/scripts/macos-manifest.mjs +0 -33
  62. package/templates/macos/scripts/macos.mjs +0 -58
  63. package/templates/macos/shared/Welcome.lite.tsx +0 -42
  64. package/templates/macos/web/index.html +0 -12
  65. package/templates/macos/web/src/main.js +0 -212
  66. package/templates/macos/web/src/mavis.js +0 -2
  67. package/templates/macos/web/src/style.css +0 -14
  68. package/templates/macos/web/vite.config.mjs +0 -14
  69. package/templates/migrations/directory-rc13.json +0 -36
@@ -1,212 +0,0 @@
1
- import { createApp, h } from 'vue'
2
- import { createMavisServices } from '@getcortexlabs/mavis-web/services'
3
- import {
4
- MAlert,
5
- MBadge,
6
- MAccordion,
7
- MAvatar,
8
- MAppBar,
9
- MBox,
10
- MBreadcrumb,
11
- MButton,
12
- MCard,
13
- MCarousel,
14
- MChart,
15
- MHeatmap,
16
- MCheckbox,
17
- MChip,
18
- MCollapsibleHeader,
19
- MColumn,
20
- MEmptyState,
21
- MDonutChart,
22
- MGauge,
23
- MDialog,
24
- MCommandPalette,
25
- MFormErrors,
26
- MFormGroup,
27
- MGradientBackground,
28
- MDataTable,
29
- MCombobox,
30
- MComposer,
31
- MColorPicker,
32
- MFilePicker,
33
- MPopover,
34
- MMenu,
35
- MSpeedDial,
36
- MTour,
37
- MTourTarget,
38
- MGrid,
39
- MIcon,
40
- MImage,
41
- MImageCompare,
42
- MImageCropper,
43
- MImageViewer,
44
- MInput,
45
- MListItem,
46
- MLink,
47
- MMasonry,
48
- MNavigationRail,
49
- MPagination,
50
- MNumberInput,
51
- MMultiSelect,
52
- MPinInput,
53
- MPlatform,
54
- MProgress,
55
- MRadioGroup,
56
- MRangeSlider,
57
- MRating,
58
- MRefreshControl,
59
- MResizablePanels,
60
- MReveal,
61
- MAnimatedText,
62
- MNumberFlow,
63
- MConfetti,
64
- MParticleField,
65
- MMarquee,
66
- MRow,
67
- MScreen,
68
- MCalendar,
69
- MTimePicker,
70
- MScheduler,
71
- MDatePicker,
72
- MDateRangePicker,
73
- MSegmentedControl,
74
- MSelect,
75
- MSeparator,
76
- MSortableList,
77
- MSwipeActions,
78
- MSwipeDeck,
79
- MKanban,
80
- MSkeleton,
81
- MSlider,
82
- MSheet,
83
- MSpan,
84
- MSparkline,
85
- MStack,
86
- MSwitch,
87
- MSteps,
88
- MTabBar,
89
- MTabs,
90
- MText,
91
- MThemeProvider,
92
- MToast,
93
- MNotificationCenter,
94
- MTimeline,
95
- MTreeView,
96
- MTooltip,
97
- MTransferList,
98
- MTreeSelect,
99
- MVirtualList,
100
- mavis,
101
- midnight,
102
- } from '@getcortexlabs/mavis-web'
103
- import Root, { screen } from './generated/entry'
104
- import '@getcortexlabs/mavis-web/style.css'
105
- import './style.css'
106
-
107
- // A screen with an MScreen of its own fills the window; any other gets a page around it.
108
- const app = createApp(screen ? Root : () => h('main', { class: 'mavis-page' }, h(Root)))
109
- for (const [name, component] of Object.entries({
110
- MScreen,
111
- MCalendar,
112
- MTimePicker,
113
- MScheduler,
114
- MDatePicker,
115
- MDateRangePicker,
116
- MColumn,
117
- MRow,
118
- MStack,
119
- MGrid,
120
- MBox,
121
- MCard,
122
- MText,
123
- MSpan,
124
- MSeparator,
125
- MThemeProvider,
126
- MPlatform,
127
- MButton,
128
- MInput,
129
- MCheckbox,
130
- MSelect,
131
- MMasonry,
132
- MResizablePanels,
133
- MVirtualList,
134
- MCollapsibleHeader,
135
- MRefreshControl,
136
- MIcon,
137
- MBadge,
138
- MProgress,
139
- MSkeleton,
140
- MAlert,
141
- MEmptyState,
142
- MSwitch,
143
- MSlider,
144
- MSegmentedControl,
145
- MRadioGroup,
146
- MListItem,
147
- MAccordion,
148
- MTabs,
149
- MSteps,
150
- MPagination,
151
- MSparkline,
152
- MImage,
153
- MSheet,
154
- MChip,
155
- MNumberInput,
156
- MRangeSlider,
157
- MMultiSelect,
158
- MAvatar,
159
- MDonutChart,
160
- MGauge,
161
- MTimeline,
162
- MTreeView,
163
- MBreadcrumb,
164
- MAppBar,
165
- MTabBar,
166
- MNavigationRail,
167
- MLink,
168
- MDialog,
169
- MCommandPalette,
170
- MTooltip,
171
- MToast,
172
- MNotificationCenter,
173
- MRating,
174
- MPinInput,
175
- MFormGroup,
176
- MFormErrors,
177
- MGradientBackground,
178
- MCarousel,
179
- MImageCompare,
180
- MImageCropper,
181
- MImageViewer,
182
- MDataTable,
183
- MSortableList,
184
- MSwipeActions,
185
- MSwipeDeck,
186
- MKanban,
187
- MCombobox,
188
- MComposer,
189
- MColorPicker,
190
- MFilePicker,
191
- MPopover,
192
- MMenu,
193
- MSpeedDial,
194
- MTour,
195
- MTourTarget,
196
- MTransferList,
197
- MTreeSelect,
198
- MChart,
199
- MHeatmap,
200
- MReveal,
201
- MAnimatedText,
202
- MNumberFlow,
203
- MConfetti,
204
- MParticleField,
205
- MMarquee,
206
- }))
207
- app.component(name, component)
208
- app
209
- .use(
210
- createMavisServices({ theme: mavis, darkTheme: midnight, appearance: '__MAVIS_APPEARANCE__' }),
211
- )
212
- .mount('#app')
@@ -1,2 +0,0 @@
1
- // Resolved by this host. Shared screens import the renderer's public API from #mavis.
2
- export * from '@getcortexlabs/mavis-web'
@@ -1,14 +0,0 @@
1
- html {
2
- color-scheme: __MAVIS_APPEARANCE__;
3
- background: __MAVIS_BACKGROUND__;
4
- }
5
- body {
6
- margin: 0;
7
- font-family: system-ui, sans-serif;
8
- }
9
- /* The page around a screen without an MScreen of its own. */
10
- .mavis-page {
11
- max-width: __MAVIS_WEB_WIDTH__;
12
- margin: 0 auto;
13
- padding: clamp(24px, 6vw, 64px);
14
- }
@@ -1,14 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import { fileURLToPath } from 'node:url'
3
- import vue from '@vitejs/plugin-vue'
4
- // Shared Vue files run here as written: they import Mavis from #mavis.
5
- export default defineConfig({
6
- plugins: [vue()],
7
- resolve: {
8
- alias: {
9
- '#shared-ui': fileURLToPath(new URL('../../shared', import.meta.url)),
10
- '#mavis': fileURLToPath(new URL('./src/mavis.js', import.meta.url)),
11
- },
12
- dedupe: ['vue'],
13
- },
14
- })
@@ -1,36 +0,0 @@
1
- {
2
- "release": "v0.1.0-rc.13",
3
- "commit": "165caa56d249d82d1190382648e3b8731e3bd30d",
4
- "files": {
5
- "shared/directory-store.ts": {
6
- "source": "1057a52eb5b3a6462ddbc5af2d15fa942901933fa5a8d80cb7257dda3cb688f9"
7
- },
8
- "shared/Edit.vue": {
9
- "source": "99dd95f1e51c6f772e414cbb3776cfb87e69c466d629cd64a3a1e6c4d9498b02"
10
- },
11
- "shared/Directory.vue": {
12
- "source": "df10903ecfc74c35f04d7dca6c607577f5a64481cad2e4f07041c4e91b02b869"
13
- },
14
- "shared/Details.vue": {
15
- "source": "13447a479351d429121bc759290a9b9681afc1acdf030e47f8d2d3b0ee546f7a"
16
- },
17
- "shared/routes.ts": {
18
- "source": "8834443fe8da682171d30170e49a2ce23825c30512dc1ff0fdbb5b7941028d66"
19
- },
20
- "vite/src/main.ts": {
21
- "source": "a31a5eeb43f6a2d546cdc178f54d7cb42ef6a12b4851b38d9e7f4f366552a5d9",
22
- "light": "77f63c02e6af15eedc365ce2594723a26c81d65cf48c29b9dbcc35ca1ed2dbc0",
23
- "dark": "b96bf8489885b352ca9f2bfbcdc12000ebcf48eea36f815b07a0de0a682a6566"
24
- },
25
- "mobile/src/app.ts": {
26
- "source": "fcf47aba9dfb7da5517c29d2df4af9942ff4a0859089ff39ff551c003f845729",
27
- "light": "95f9450e62357f0a973bdffc8d9ef86c7f6834420cc60894eecc5d1dfc30f181",
28
- "dark": "f2002da060b1b7da65c60bef43b0f4dedac0caad1bed570b7be9081274a044d5"
29
- },
30
- "nuxt/app/plugins/mavis.ts": {
31
- "source": "2d3490d89991983850fe5e741cd3163f236d6f583f3c37f807eeeac968a9ae27",
32
- "light": "bf7bf339f655642d56148e5c23cd75975c7a1e823a2ddf7d8647edf1c884debb",
33
- "dark": "edefc0f4c15a4d3c2dac1257f5a54408e443c9fd55afba09bda1e1660c3ca166"
34
- }
35
- }
36
- }