@lotics/cli 0.27.0 → 0.28.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.
@@ -11,7 +11,8 @@
11
11
  * Conventions (locked decisions):
12
12
  * - Vite + React + TypeScript (strict mode).
13
13
  * - Entry: src/App.tsx with `export default`. main.tsx wires `mount(<App/>)`
14
- * and imports @lotics/ui/index.css for the base style reset.
14
+ * and imports @lotics/ui/index.css (base style reset) + @lotics/ui/fonts.css
15
+ * (path-independent Inter @font-face bundle — Text renders unstyled without it).
15
16
  * - Vite default `base: "/"` so emitted asset URLs are absolute; the render
16
17
  * endpoint rewrites root-relative paths to `/v1/apps/{id}/asset/...`.
17
18
  * Don't switch to `base: "./"` without updating `rewriteAssetPaths`.
@@ -11,7 +11,8 @@
11
11
  * Conventions (locked decisions):
12
12
  * - Vite + React + TypeScript (strict mode).
13
13
  * - Entry: src/App.tsx with `export default`. main.tsx wires `mount(<App/>)`
14
- * and imports @lotics/ui/index.css for the base style reset.
14
+ * and imports @lotics/ui/index.css (base style reset) + @lotics/ui/fonts.css
15
+ * (path-independent Inter @font-face bundle — Text renders unstyled without it).
15
16
  * - Vite default `base: "/"` so emitted asset URLs are absolute; the render
16
17
  * endpoint rewrites root-relative paths to `/v1/apps/{id}/asset/...`.
17
18
  * Don't switch to `base: "./"` without updating `rewriteAssetPaths`.
@@ -48,7 +49,7 @@ export function buildStarterTemplate(args) {
48
49
  },
49
50
  dependencies: {
50
51
  "@lotics/app-sdk": "^0.5.0",
51
- "@lotics/ui": "^0.2.0",
52
+ "@lotics/ui": "^1.3.0",
52
53
  "@react-native-picker/picker": "^2.7.0",
53
54
  "expo-image": "~3.0.9",
54
55
  "lucide-react": "^0.562.0",
@@ -135,6 +136,12 @@ export default defineConfig({
135
136
  { find: "react-native", replacement: "react-native-web" },
136
137
  ],
137
138
  extensions: [".web.tsx", ".web.ts", ".tsx", ".ts", ".jsx", ".js"],
139
+ // @lotics/ui ships source and is consumed across many subpath entries
140
+ // (./card, ./metric, ./use_screen_size, …). Without dedupe, Vite can
141
+ // pre-bundle a subpath into its own chunk with a second React copy — a
142
+ // hook called from there hits a null dispatcher ("Invalid hook call").
143
+ // Pin React (and RN-Web) to a single instance shared by every chunk.
144
+ dedupe: ["react", "react-dom", "react-native-web"],
138
145
  },
139
146
  build: {
140
147
  outDir: "dist",
@@ -186,6 +193,7 @@ export default defineConfig({
186
193
  {
187
194
  path: "src/main.tsx",
188
195
  content: `import "@lotics/ui/index.css";
196
+ import "@lotics/ui/fonts.css";
189
197
  import { mount } from "@lotics/app-sdk";
190
198
  import App from "./App";
191
199
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/cli",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "description": "Lotics SDK and CLI for AI agents",
5
5
  "type": "module",
6
6
  "bin": {