@lucifer91299/create-portal-app 1.1.13 → 1.1.15
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/README.md +6 -0
- package/dist/cli/index.js +31 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -264,6 +264,12 @@ See the full component and theming documentation at:
|
|
|
264
264
|
|
|
265
265
|
## Changelog
|
|
266
266
|
|
|
267
|
+
### v1.1.14
|
|
268
|
+
- **UI version bump** — generated projects now use `@lucifer91299/ui@^1.1.22` (NumberInput redesign, Input password toggle, HeaderNav, Drawer animation)
|
|
269
|
+
|
|
270
|
+
### v1.1.13
|
|
271
|
+
- **Onboarding page wider layout** — form container expanded from `max-w-3xl` to `max-w-5xl` to remove excess left/right negative space on wider screens; success screen expanded from `max-w-2xl` to `max-w-4xl` to match
|
|
272
|
+
|
|
267
273
|
### v1.1.12
|
|
268
274
|
- **Onboarding page redesigned** — replaced multi-step stepper with a single full-form using every component: `Input`, `Textarea`, `DatePicker`, `DateTimePicker`, `FileUpload`, `Select` (searchable), `NumberInput`, `Slider`, `TagInput`, `RadioGroup`, `Switch` ×3, `Checkbox` ×3, `OTPInput` — organised into 4 card sections (Personal, Professional, Plan & Preferences, Security) with validation and success state
|
|
269
275
|
|
package/dist/cli/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var p = __toESM(require("@clack/prompts"));
|
|
|
31
31
|
// src/templates/index.ts
|
|
32
32
|
function genPackageJson(o) {
|
|
33
33
|
const deps = {
|
|
34
|
-
"@lucifer91299/ui": o.localUiPath ? `file:${o.localUiPath}` : "^1.1.
|
|
34
|
+
"@lucifer91299/ui": o.localUiPath ? `file:${o.localUiPath}` : "^1.1.22",
|
|
35
35
|
"next": "^16.2.6",
|
|
36
36
|
"react": "^19.0.0",
|
|
37
37
|
"react-dom": "^19.0.0",
|
|
@@ -128,6 +128,35 @@ function genEnvLocal(o) {
|
|
|
128
128
|
}
|
|
129
129
|
return lines.join("\n") + "\n";
|
|
130
130
|
}
|
|
131
|
+
function genNextConfig(o) {
|
|
132
|
+
const apiHost = o.apiUrl ? (() => {
|
|
133
|
+
try {
|
|
134
|
+
return new URL(o.apiUrl).hostname;
|
|
135
|
+
} catch {
|
|
136
|
+
return "localhost";
|
|
137
|
+
}
|
|
138
|
+
})() : "localhost";
|
|
139
|
+
return `import type { NextConfig } from 'next'
|
|
140
|
+
|
|
141
|
+
const config: NextConfig = {
|
|
142
|
+
transpilePackages: ['@lucifer91299/ui'],
|
|
143
|
+
images: {
|
|
144
|
+
remotePatterns: [
|
|
145
|
+
// Add remote image domains here, e.g.:
|
|
146
|
+
// { protocol: 'https', hostname: 'example.com' },
|
|
147
|
+
],
|
|
148
|
+
},
|
|
149
|
+
allowedDevOrigins: [
|
|
150
|
+
'http://localhost:3000',
|
|
151
|
+
'http://localhost:3001',
|
|
152
|
+
'http://${apiHost}:3000',
|
|
153
|
+
'http://${apiHost}:3001',
|
|
154
|
+
],
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export default config
|
|
158
|
+
`;
|
|
159
|
+
}
|
|
131
160
|
function genGlobalsCSS() {
|
|
132
161
|
return `/* Project-specific utilities \u2014 SDK component styles are in @lucifer91299/ui/styles/components.css */
|
|
133
162
|
@tailwind base;
|
|
@@ -2211,12 +2240,7 @@ function scaffold(opts) {
|
|
|
2211
2240
|
w(f(".env.example"), genEnvLocal(opts).replace(/=.+/g, "="));
|
|
2212
2241
|
w(f("postcss.config.mjs"), `export default { plugins: { tailwindcss: {}, autoprefixer: {} } }
|
|
2213
2242
|
`);
|
|
2214
|
-
w(f("next.config.ts"),
|
|
2215
|
-
const config: NextConfig = {
|
|
2216
|
-
transpilePackages: ['@lucifer91299/ui'],
|
|
2217
|
-
}
|
|
2218
|
-
export default config
|
|
2219
|
-
`);
|
|
2243
|
+
w(f("next.config.ts"), genNextConfig(opts));
|
|
2220
2244
|
w(f("tsconfig.json"), JSON.stringify({
|
|
2221
2245
|
compilerOptions: {
|
|
2222
2246
|
target: "ES2017",
|
package/package.json
CHANGED