@aphexcms/cms-core 1.0.0 → 2.0.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.
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Benjamin Sinidol
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/cli/index.js
CHANGED
|
File without changes
|
|
@@ -6,9 +6,9 @@ interface Props {
|
|
|
6
6
|
children?: any;
|
|
7
7
|
}
|
|
8
8
|
declare const AdminLayout: import("svelte").Component<Props, {
|
|
9
|
-
typesPanel: "
|
|
10
|
-
documentsPanel: "
|
|
11
|
-
editorPanel: "
|
|
9
|
+
typesPanel: "w-full" | "flex-1" | "hidden" | "w-[350px]" | "w-[60px]";
|
|
10
|
+
documentsPanel: "w-full" | "flex-1" | "hidden" | "w-[350px]" | "w-[60px]";
|
|
11
|
+
editorPanel: "w-full" | "flex-1" | "hidden";
|
|
12
12
|
}, "">;
|
|
13
13
|
type AdminLayout = ReturnType<typeof AdminLayout>;
|
|
14
14
|
export default AdminLayout;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { Sidebar } from '@aphexcms/ui/shadcn/sidebar';
|
|
2
|
+
import type { SidebarData } from '../../../types/sidebar.js';
|
|
3
|
+
import type { ComponentProps } from 'svelte';
|
|
4
|
+
type Props = ComponentProps<typeof Sidebar> & {
|
|
5
|
+
data: SidebarData;
|
|
6
|
+
onSignOut?: () => void | Promise<void>;
|
|
7
|
+
};
|
|
8
|
+
declare const AppSidebar: import("svelte").Component<Props, {}, "">;
|
|
2
9
|
type AppSidebar = ReturnType<typeof AppSidebar>;
|
|
3
10
|
export default AppSidebar;
|
|
4
11
|
//# sourceMappingURL=AppSidebar.svelte.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSidebar.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/layout/sidebar/AppSidebar.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppSidebar.svelte.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/layout/sidebar/AppSidebar.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,OAAO,EAKP,MAAM,6BAA6B,CAAC;AAItC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAG5C,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,OAAO,CAAC,GAAG;IAC7C,IAAI,EAAE,WAAW,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,IAAI,GA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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
2
|
+
"name": "@aphexcms/cms-core",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Aphex CMS Core - A Sanity-style CMS with ports and adapters architecture",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public",
|
|
7
|
+
"provenance": true
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/IcelandicIcecream/aphex.git",
|
|
12
|
+
"directory": "packages/cms-core"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"svelte": "./dist/index.js",
|
|
18
|
+
"bin": {
|
|
19
|
+
"aphex": "./dist/cli/index.js"
|
|
20
|
+
},
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"svelte": "./dist/index.js",
|
|
25
|
+
"default": "./dist/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./server": {
|
|
28
|
+
"types": "./dist/server/index.d.ts",
|
|
29
|
+
"default": "./dist/server/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./client": {
|
|
32
|
+
"types": "./dist/client/index.d.ts",
|
|
33
|
+
"default": "./dist/client/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./schema": {
|
|
36
|
+
"types": "./dist/schema/index.d.ts",
|
|
37
|
+
"default": "./dist/schema/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./routes/*": {
|
|
40
|
+
"types": "./dist/routes/*.d.ts",
|
|
41
|
+
"default": "./dist/routes/*.js"
|
|
42
|
+
},
|
|
43
|
+
"./*": {
|
|
44
|
+
"types": "./dist/*.d.ts",
|
|
45
|
+
"default": "./dist/*.js"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"files": [
|
|
49
|
+
"dist",
|
|
50
|
+
"dist/cli"
|
|
51
|
+
],
|
|
52
|
+
"keywords": [
|
|
53
|
+
"cms",
|
|
54
|
+
"svelte",
|
|
55
|
+
"sveltekit",
|
|
56
|
+
"content-management",
|
|
57
|
+
"sanity-style",
|
|
58
|
+
"typescript",
|
|
59
|
+
"aphex"
|
|
60
|
+
],
|
|
61
|
+
"author": "Benjamin Sinidol",
|
|
62
|
+
"license": "MIT",
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"@envelop/graphql-jit": "^11.0.0",
|
|
65
|
+
"@graphql-yoga/render-graphiql": "^5.16.2",
|
|
66
|
+
"@lucide/svelte": "^0.554.0",
|
|
67
|
+
"@sveltejs/kit": "^2.49.0",
|
|
68
|
+
"bits-ui": "^2.14.4",
|
|
69
|
+
"clsx": "^2.1.1",
|
|
70
|
+
"graphql": "^16.12.0",
|
|
71
|
+
"graphql-yoga": "^5.16.2",
|
|
72
|
+
"mode-watcher": "^1.1.0",
|
|
73
|
+
"svelte": "^5.44.0",
|
|
74
|
+
"tailwind-merge": "^3.4.0",
|
|
75
|
+
"tailwind-variants": "^3.2.2",
|
|
76
|
+
"@aphexcms/ui": "0.3.0"
|
|
77
|
+
},
|
|
78
|
+
"peerDependenciesMeta": {
|
|
79
|
+
"graphql": {
|
|
80
|
+
"optional": true
|
|
81
|
+
},
|
|
82
|
+
"graphql-yoga": {
|
|
83
|
+
"optional": true
|
|
84
|
+
},
|
|
85
|
+
"@envelop/graphql-jit": {
|
|
86
|
+
"optional": true
|
|
87
|
+
},
|
|
88
|
+
"@graphql-yoga/render-graphiql": {
|
|
89
|
+
"optional": true
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"dependencies": {
|
|
93
|
+
"@clack/prompts": "^0.11.0",
|
|
94
|
+
"@dnd-kit/helpers": "^0.3.0",
|
|
95
|
+
"@dnd-kit/svelte": "^0.3.0",
|
|
96
|
+
"cac": "^6.7.14",
|
|
97
|
+
"dayjs": "^1.11.19",
|
|
98
|
+
"esbuild": "^0.27.0",
|
|
99
|
+
"picocolors": "^1.1.1",
|
|
100
|
+
"s3mini": "^0.7.0",
|
|
101
|
+
"sharp": "^0.34.5",
|
|
102
|
+
"svelte-sonner": "^1.0.7",
|
|
103
|
+
"tsx": "^4.20.6"
|
|
104
|
+
},
|
|
105
|
+
"devDependencies": {
|
|
106
|
+
"@eslint/compat": "^2.0.0",
|
|
107
|
+
"@eslint/js": "^9.39.1",
|
|
108
|
+
"@internationalized/date": "^3.10.0",
|
|
109
|
+
"@sveltejs/adapter-auto": "^7.0.0",
|
|
110
|
+
"@sveltejs/kit": "^2.49.0",
|
|
111
|
+
"@sveltejs/package": "^2.5.6",
|
|
112
|
+
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
113
|
+
"@tailwindcss/vite": "^4.1.17",
|
|
114
|
+
"@types/node": "^22.0.0",
|
|
115
|
+
"eslint": "^9.39.1",
|
|
116
|
+
"eslint-config-prettier": "^10.1.8",
|
|
117
|
+
"eslint-plugin-svelte": "^3.13.0",
|
|
118
|
+
"globals": "^16.5.0",
|
|
119
|
+
"prettier": "^3.6.2",
|
|
120
|
+
"prettier-plugin-svelte": "^3.4.0",
|
|
121
|
+
"prettier-plugin-tailwindcss": "^0.7.1",
|
|
122
|
+
"svelte": "^5.44.0",
|
|
123
|
+
"svelte-check": "^4.3.4",
|
|
124
|
+
"tailwindcss": "^4.1.17",
|
|
125
|
+
"typescript": "^5.9.3",
|
|
126
|
+
"typescript-eslint": "^8.48.0",
|
|
127
|
+
"vite": "^7.2.4"
|
|
128
|
+
},
|
|
129
|
+
"scripts": {
|
|
130
|
+
"build": "svelte-package && tsc && node ../../scripts/fix-imports.js ./dist",
|
|
131
|
+
"check": "svelte-check --tsconfig ./tsconfig.json",
|
|
132
|
+
"format": "prettier --write .",
|
|
133
|
+
"lint": "prettier --check . && eslint .",
|
|
134
|
+
"package": "pnpm build && pnpm pack",
|
|
135
|
+
"dev:local": "node ../../scripts/swap-package-paths.js ./package.json src lib"
|
|
136
|
+
}
|
|
137
|
+
}
|