@papercraneai/cli 1.6.1 → 1.7.0-beta.1
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/bin/papercrane.js
CHANGED
|
@@ -646,10 +646,10 @@ Use these Tailwind classes for theme-aware colors:
|
|
|
646
646
|
console.log(chalk.bold('DASHBOARD GRID LAYOUT'));
|
|
647
647
|
console.log(chalk.dim('─'.repeat(60)));
|
|
648
648
|
console.log(`
|
|
649
|
-
${chalk.green('✅')} Wrap dashboard widgets in ${chalk.cyan('<DashboardGrid cols={4} rowHeight={140} gap={16}>')}
|
|
650
|
-
${chalk.green('✅')} Give each child a unique ${chalk.cyan('id')} attribute (e.g. id="revenue-chart")
|
|
649
|
+
${chalk.green('✅')} Wrap dashboard widgets in ${chalk.cyan('<DashboardGrid cols={4} rowHeight={140} gap={16}>')} — required for layout editing and data inspection
|
|
650
|
+
${chalk.green('✅')} Give each child a unique ${chalk.cyan('id')} attribute (e.g. id="revenue-chart") — required for drag, resize, delete, and inspect
|
|
651
651
|
${chalk.green('✅')} Add grid placement classes: ${chalk.cyan('col-start-N col-span-N row-start-N row-span-N')}
|
|
652
|
-
${chalk.green('✅')}
|
|
652
|
+
${chalk.green('✅')} Default grid is 4 columns. col-start: 1-4, col-span: 1-4, row-start: 1+, row-span: 1+ (users can expand beyond 4 via layout editor)
|
|
653
653
|
${chalk.red('❌')} Do NOT use responsive grid classes (grid-cols-2 md:grid-cols-4)
|
|
654
654
|
${chalk.red('❌')} Do NOT use sm:/md:/lg: breakpoint prefixes on grid placement classes
|
|
655
655
|
${chalk.dim(' Header/title sections above DashboardGrid are fine as plain divs')}
|
|
@@ -669,6 +669,10 @@ Use these Tailwind classes for theme-aware colors:
|
|
|
669
669
|
ChartContainer, ChartTooltip, ChartTooltipContent (from @/components/ui/chart)
|
|
670
670
|
BarChart, LineChart, AreaChart, PieChart (from recharts)
|
|
671
671
|
XAxis, YAxis, Bar, Line, Area, Pie, Cell
|
|
672
|
+
|
|
673
|
+
${chalk.green('Map Components:')}
|
|
674
|
+
ComposableMap, Geographies, Geography, Marker, ZoomableGroup (from react-simple-maps)
|
|
675
|
+
GeoJSON URL: https://cdn.jsdelivr.net/npm/world-atlas@2/countries-110m.json
|
|
672
676
|
`);
|
|
673
677
|
|
|
674
678
|
console.log(chalk.bold('QUICK START'));
|
|
@@ -15,8 +15,7 @@ export function CommandListener() {
|
|
|
15
15
|
|
|
16
16
|
async function init() {
|
|
17
17
|
try {
|
|
18
|
-
const
|
|
19
|
-
const mod = await import(/* turbopackIgnore: true */ pkg)
|
|
18
|
+
const mod = await import("@papercrane/dashboard-grid/plugin")
|
|
20
19
|
if (!cancelled && mod.createCommandHandler) {
|
|
21
20
|
handlerRef.current = mod.createCommandHandler()
|
|
22
21
|
}
|
|
@@ -10,7 +10,8 @@ interface DashboardGridProps {
|
|
|
10
10
|
className?: string
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
//
|
|
13
|
+
// Load the DashboardGrid plugin for edit mode, resize, delete, and inspect features.
|
|
14
|
+
// Falls back to a plain CSS grid when the plugin is not installed.
|
|
14
15
|
let pluginGrid: React.ComponentType<DashboardGridProps> | null = null
|
|
15
16
|
let pluginLoaded = false
|
|
16
17
|
|
|
@@ -23,8 +24,7 @@ export function DashboardGrid(props: DashboardGridProps) {
|
|
|
23
24
|
|
|
24
25
|
async function loadPlugin() {
|
|
25
26
|
try {
|
|
26
|
-
const
|
|
27
|
-
const mod = await import(/* turbopackIgnore: true */ pkg)
|
|
27
|
+
const mod = await import("@papercrane/dashboard-grid/plugin")
|
|
28
28
|
if (mod.createPlugin) {
|
|
29
29
|
const plugin = mod.createPlugin()
|
|
30
30
|
pluginGrid = plugin.DashboardGrid
|
package/lib/dev-server.js
CHANGED
|
@@ -332,7 +332,7 @@ export async function generateScaffolding(workspaceDir) {
|
|
|
332
332
|
const nextConfigPath = path.join(workspaceDir, 'next.config.mjs');
|
|
333
333
|
const nextConfig = `/** @type {import('next').NextConfig} */
|
|
334
334
|
const nextConfig = {
|
|
335
|
-
transpilePackages: ['@papercraneai/cli'],
|
|
335
|
+
transpilePackages: ['@papercraneai/cli', '@papercrane/dashboard-grid'],
|
|
336
336
|
turbopack: {
|
|
337
337
|
root: ${JSON.stringify(workspaceDir)},
|
|
338
338
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@papercraneai/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0-beta.1",
|
|
4
4
|
"description": "CLI tool for managing OAuth credentials for LLM integrations",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"input-otp": "^1.4.2",
|
|
76
76
|
"inquirer": "^8.2.6",
|
|
77
77
|
"lucide-react": "^0.559.0",
|
|
78
|
-
"next": "
|
|
78
|
+
"next": "16.1.7",
|
|
79
79
|
"next-themes": "^0.4.6",
|
|
80
80
|
"open": "^8.4.2",
|
|
81
81
|
"react": "19.2.1",
|
|
@@ -93,5 +93,11 @@
|
|
|
93
93
|
"typescript": "^5",
|
|
94
94
|
"vaul": "^1.1.2",
|
|
95
95
|
"zod": "^4.1.13"
|
|
96
|
+
},
|
|
97
|
+
"overrides": {
|
|
98
|
+
"react-simple-maps": {
|
|
99
|
+
"react": "$react",
|
|
100
|
+
"react-dom": "$react-dom"
|
|
101
|
+
}
|
|
96
102
|
}
|
|
97
103
|
}
|