@anvilkit/puck-studio 0.0.1 → 0.1.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.
@@ -0,0 +1,88 @@
1
+ /* src/styles.css */
2
+ :root {
3
+ --background: oklch(1 0 0);
4
+ --foreground: oklch(0.145 0 0);
5
+ --card: oklch(1 0 0);
6
+ --card-foreground: oklch(0.145 0 0);
7
+ --popover: oklch(1 0 0);
8
+ --popover-foreground: oklch(0.145 0 0);
9
+ --primary: oklch(0.205 0 0);
10
+ --primary-foreground: oklch(0.985 0 0);
11
+ --secondary: oklch(0.97 0 0);
12
+ --secondary-foreground: oklch(0.205 0 0);
13
+ --muted: oklch(0.97 0 0);
14
+ --muted-foreground: oklch(0.556 0 0);
15
+ --accent: oklch(0.97 0 0);
16
+ --accent-foreground: oklch(0.205 0 0);
17
+ --destructive: oklch(0.577 0.245 27.325);
18
+ --border: oklch(0.922 0 0);
19
+ --input: oklch(0.922 0 0);
20
+ --ring: oklch(0.708 0 0);
21
+ --chart-1: oklch(0.809 0.105 251.813);
22
+ --chart-2: oklch(0.623 0.214 259.815);
23
+ --chart-3: oklch(0.546 0.245 262.881);
24
+ --chart-4: oklch(0.488 0.243 264.376);
25
+ --chart-5: oklch(0.424 0.199 265.638);
26
+ --radius: 0.625rem;
27
+ --sidebar: oklch(0.985 0 0);
28
+ --sidebar-foreground: oklch(0.145 0 0);
29
+ --sidebar-primary: oklch(0.205 0 0);
30
+ --sidebar-primary-foreground: oklch(0.985 0 0);
31
+ --sidebar-accent: oklch(0.97 0 0);
32
+ --sidebar-accent-foreground: oklch(0.205 0 0);
33
+ --sidebar-border: oklch(0.922 0 0);
34
+ --sidebar-ring: oklch(0.708 0 0);
35
+ }
36
+ .dark {
37
+ --background: oklch(0.145 0 0);
38
+ --foreground: oklch(0.985 0 0);
39
+ --card: oklch(0.205 0 0);
40
+ --card-foreground: oklch(0.985 0 0);
41
+ --popover: oklch(0.205 0 0);
42
+ --popover-foreground: oklch(0.985 0 0);
43
+ --primary: oklch(0.922 0 0);
44
+ --primary-foreground: oklch(0.205 0 0);
45
+ --secondary: oklch(0.269 0 0);
46
+ --secondary-foreground: oklch(0.985 0 0);
47
+ --muted: oklch(0.269 0 0);
48
+ --muted-foreground: oklch(0.708 0 0);
49
+ --accent: oklch(0.269 0 0);
50
+ --accent-foreground: oklch(0.985 0 0);
51
+ --destructive: oklch(0.704 0.191 22.216);
52
+ --border: oklch(1 0 0 / 10%);
53
+ --input: oklch(1 0 0 / 15%);
54
+ --ring: oklch(0.556 0 0);
55
+ --chart-1: oklch(0.809 0.105 251.813);
56
+ --chart-2: oklch(0.623 0.214 259.815);
57
+ --chart-3: oklch(0.546 0.245 262.881);
58
+ --chart-4: oklch(0.488 0.243 264.376);
59
+ --chart-5: oklch(0.424 0.199 265.638);
60
+ --sidebar: oklch(0.205 0 0);
61
+ --sidebar-foreground: oklch(0.985 0 0);
62
+ --sidebar-primary: oklch(0.488 0.243 264.376);
63
+ --sidebar-primary-foreground: oklch(0.985 0 0);
64
+ --sidebar-accent: oklch(0.269 0 0);
65
+ --sidebar-accent-foreground: oklch(0.205 0 0);
66
+ --sidebar-border: oklch(1 0 0 / 10%);
67
+ --sidebar-ring: oklch(0.556 0 0);
68
+ }
69
+ ::-webkit-scrollbar {
70
+ width: 4px;
71
+ }
72
+ ::-webkit-scrollbar-track {
73
+ background: transparent;
74
+ }
75
+ ::-webkit-scrollbar-thumb {
76
+ background: oklch(0.708 0 0);
77
+ border-radius: 20px;
78
+ }
79
+ .dark ::-webkit-scrollbar-thumb {
80
+ background: oklch(0.4 0 0);
81
+ }
82
+ * {
83
+ scrollbar-color: oklch(0.708 0 0) transparent;
84
+ scrollbar-width: thin;
85
+ }
86
+ .dark * {
87
+ scrollbar-color: oklch(0.4 0 0) transparent;
88
+ }
package/package.json CHANGED
@@ -1,65 +1,109 @@
1
- {
2
- "name": "@anvilkit/puck-studio",
3
- "version": "0.0.1",
4
- "description": "Shadcn UI replacement for all Puck Editor override surfaces",
5
- "publishConfig": {
6
- "access": "public"
7
- },
8
- "type": "module",
9
- "exports": {
10
- ".": {
11
- "types": "./dist/index.d.ts",
12
- "import": "./dist/index.mjs",
13
- "require": "./dist/index.js"
14
- },
15
- "./styles.css": "./dist/styles.css"
16
- },
17
- "main": "./dist/index.js",
18
- "module": "./dist/index.mjs",
19
- "types": "./dist/index.d.ts",
20
- "files": [
21
- "dist"
22
- ],
23
- "peerDependencies": {
24
- "@base-ui/react": "^1.2.0",
25
- "@puckeditor/core": "^0.21.1",
26
- "react": "^19.2.4",
27
- "react-dom": "^19.2.4",
28
- "tailwindcss": "^4.2.1"
29
- },
30
- "dependencies": {
31
- "@base-ui-components/react": "1.0.0-rc.0",
32
- "@dnd-kit/core": "^6.3.1",
33
- "@dnd-kit/sortable": "^10.0.0",
34
- "@dnd-kit/utilities": "^3.2.2",
35
- "@floating-ui/react": "^0.27.19",
36
- "@puckeditor/plugin-ai": "^0.6.0",
37
- "@radix-ui/react-tooltip": "^1.2.8",
38
- "class-variance-authority": "^0.7.1",
39
- "clsx": "^2.1.1",
40
- "cmdk": "^1.1.1",
41
- "lucide-react": "^0.577.0",
42
- "motion": "^12.36.0",
43
- "tailwind-merge": "^3.5.0",
44
- "zustand": "^5.0.11"
45
- },
46
- "devDependencies": {
47
- "@puckeditor/core": "0.21.1",
48
- "@tailwindcss/postcss": "^4.2.1",
49
- "@types/node": "^22.19.15",
50
- "@types/react": "^19.2.14",
51
- "@types/react-dom": "^19.2.3",
52
- "next": "^16.1.6",
53
- "react": "^19.2.4",
54
- "react-dom": "^19.2.4",
55
- "shadcn": "^4.0.5",
56
- "tsup": "^8.5.1",
57
- "tw-animate-css": "^1.4.0",
58
- "typescript": "^5.9.3"
59
- },
60
- "scripts": {
61
- "build": "tsup",
62
- "dev": "next dev",
63
- "lint": "tsc --noEmit"
64
- }
65
- }
1
+ {
2
+ "name": "@anvilkit/puck-studio",
3
+ "version": "0.1.0",
4
+ "description": "Shadcn UI replacement for all Puck Editor override surfaces",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "type": "module",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.mjs",
13
+ "require": "./dist/index.js"
14
+ },
15
+ "./legacy": {
16
+ "types": "./dist/legacy.d.ts",
17
+ "import": "./dist/legacy.mjs",
18
+ "require": "./dist/legacy.js"
19
+ },
20
+ "./overrides": {
21
+ "types": "./dist/overrides.d.ts",
22
+ "import": "./dist/overrides.mjs",
23
+ "require": "./dist/overrides.js"
24
+ },
25
+ "./styles.css": "./dist/styles.css"
26
+ },
27
+ "main": "./dist/index.js",
28
+ "module": "./dist/index.mjs",
29
+ "types": "./dist/index.d.ts",
30
+ "files": [
31
+ "dist",
32
+ "!dist/**/*.map"
33
+ ],
34
+ "sideEffects": [
35
+ "./dist/styles.css"
36
+ ],
37
+ "scripts": {
38
+ "build": "tsup",
39
+ "dev": "next dev",
40
+ "lint": "tsc --noEmit && eslint src",
41
+ "lint:types": "tsc --noEmit",
42
+ "release": "npx -y -p node@24.10.0 -c 'node ./node_modules/semantic-release/bin/semantic-release.js'",
43
+ "release:dry": "npx -y -p node@24.10.0 -c 'node ./node_modules/semantic-release/bin/semantic-release.js --dry-run --no-ci'",
44
+ "test": "vitest --run",
45
+ "test:types": "tsd"
46
+ },
47
+ "peerDependencies": {
48
+ "@base-ui/react": "^1.3.0",
49
+ "@puckeditor/core": "^0.21.1",
50
+ "react": "^19.2.4",
51
+ "react-dom": "^19.2.4",
52
+ "tailwindcss": "^4.2.1"
53
+ },
54
+ "dependencies": {
55
+ "@dnd-kit/core": "^6.3.1",
56
+ "@dnd-kit/sortable": "^10.0.0",
57
+ "@dnd-kit/utilities": "^3.2.2",
58
+ "@floating-ui/react": "^0.27.19",
59
+ "@puckeditor/plugin-ai": "^0.6.0",
60
+ "class-variance-authority": "^0.7.1",
61
+ "clsx": "^2.1.1",
62
+ "cmdk": "^1.1.1",
63
+ "lucide-react": "^0.577.0",
64
+ "motion": "^12.38.0",
65
+ "tailwind-merge": "^3.5.0",
66
+ "zustand": "^5.0.12"
67
+ },
68
+ "devDependencies": {
69
+ "@eslint/js": "^10.0.1",
70
+ "@puckeditor/core": "0.21.1",
71
+ "@semantic-release/changelog": "^6.0.3",
72
+ "@semantic-release/commit-analyzer": "^13.0.1",
73
+ "@semantic-release/git": "^10.0.1",
74
+ "@semantic-release/github": "^12.0.6",
75
+ "@semantic-release/npm": "^13.1.5",
76
+ "@semantic-release/release-notes-generator": "^14.1.0",
77
+ "@tailwindcss/postcss": "^4.2.1",
78
+ "@types/node": "^22.19.15",
79
+ "@types/react": "^19.2.14",
80
+ "@types/react-dom": "^19.2.3",
81
+ "conventional-changelog-conventionalcommits": "^9.3.0",
82
+ "eslint": "^9.0.0",
83
+ "next": "^16.1.6",
84
+ "react": "^19.2.4",
85
+ "react-dom": "^19.2.4",
86
+ "semantic-release": "^25.0.3",
87
+ "shadcn": "^4.0.8",
88
+ "tsd": "^0.33.0",
89
+ "tsup": "^8.5.1",
90
+ "tw-animate-css": "^1.4.0",
91
+ "typescript": "^5.9.3",
92
+ "typescript-eslint": "^8.0.0",
93
+ "vitest": "^4.1.0"
94
+ },
95
+ "tsd": {
96
+ "directory": "src/types",
97
+ "compilerOptions": {
98
+ "strict": true,
99
+ "paths": {
100
+ "@anvilkit/puck-studio": [
101
+ "./index.ts"
102
+ ],
103
+ "@/*": [
104
+ "./src/*"
105
+ ]
106
+ }
107
+ }
108
+ }
109
+ }