includio-cms 0.19.0 → 0.20.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.
Files changed (63) hide show
  1. package/API.md +409 -0
  2. package/CHANGELOG.md +55 -0
  3. package/DOCS.md +1 -1
  4. package/ROADMAP.md +1 -0
  5. package/dist/admin/api/rest/handler.d.ts +4 -0
  6. package/dist/admin/api/rest/handler.js +4 -0
  7. package/dist/admin/client/index.d.ts +2 -0
  8. package/dist/admin/client/index.js +4 -0
  9. package/dist/components/ui/input-group/input-group-input.svelte.d.ts +1 -1
  10. package/dist/components/ui/sidebar/sidebar-input.svelte.d.ts +1 -1
  11. package/dist/core/cms.d.ts +4 -0
  12. package/dist/core/cms.js +4 -0
  13. package/dist/core/index.d.ts +2 -0
  14. package/dist/core/index.js +2 -0
  15. package/dist/core/server/consentLogs/operations/create.d.ts +4 -0
  16. package/dist/core/server/consentLogs/operations/create.js +4 -0
  17. package/dist/core/server/fields/utils/resolveMedia.d.ts +5 -2
  18. package/dist/core/server/fields/utils/resolveMedia.js +2 -2
  19. package/dist/core/server/forms/submissions/operations/create.d.ts +7 -0
  20. package/dist/core/server/forms/submissions/operations/create.js +4 -0
  21. package/dist/core/server/forms/submissions/utils/parseMultipart.d.ts +4 -0
  22. package/dist/core/server/forms/submissions/utils/parseMultipart.js +4 -0
  23. package/dist/db-postgres/index.d.ts +2 -0
  24. package/dist/db-postgres/index.js +3 -0
  25. package/dist/entity/index.d.ts +4 -0
  26. package/dist/entity/index.js +4 -0
  27. package/dist/files-local/index.d.ts +1 -0
  28. package/dist/files-local/index.js +1 -0
  29. package/dist/index.d.ts +0 -2
  30. package/dist/index.js +0 -1
  31. package/dist/paraglide/messages/_index.d.ts +36 -3
  32. package/dist/paraglide/messages/_index.js +71 -3
  33. package/dist/paraglide/messages/en.d.ts +5 -0
  34. package/dist/paraglide/messages/en.js +14 -0
  35. package/dist/paraglide/messages/pl.d.ts +5 -0
  36. package/dist/paraglide/messages/pl.js +14 -0
  37. package/dist/server/auth.d.ts +4 -0
  38. package/dist/server/auth.js +4 -0
  39. package/dist/shop/client/index.d.ts +4 -0
  40. package/dist/shop/client/index.js +4 -0
  41. package/dist/sveltekit/config.d.ts +20 -0
  42. package/dist/sveltekit/config.js +20 -0
  43. package/dist/sveltekit/server/handle.d.ts +4 -0
  44. package/dist/sveltekit/server/handle.js +4 -0
  45. package/dist/sveltekit/server/index.d.ts +1 -0
  46. package/dist/sveltekit/server/index.js +2 -0
  47. package/dist/sveltekit/server/layout.d.ts +4 -0
  48. package/dist/sveltekit/server/layout.js +4 -0
  49. package/dist/sveltekit/server/preview.d.ts +4 -0
  50. package/dist/sveltekit/server/preview.js +4 -0
  51. package/dist/types/index.d.ts +1 -0
  52. package/dist/types/index.js +1 -0
  53. package/dist/types/plugins.d.ts +8 -0
  54. package/dist/updates/0.20.0/index.d.ts +2 -0
  55. package/dist/updates/0.20.0/index.js +54 -0
  56. package/dist/updates/index.js +2 -1
  57. package/package.json +7 -67
  58. package/dist/paraglide/messages/hello_world.d.ts +0 -5
  59. package/dist/paraglide/messages/hello_world.js +0 -33
  60. package/dist/paraglide/messages/login_hello.d.ts +0 -16
  61. package/dist/paraglide/messages/login_hello.js +0 -34
  62. package/dist/paraglide/messages/login_please_login.d.ts +0 -16
  63. package/dist/paraglide/messages/login_please_login.js +0 -34
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "includio-cms",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",
@@ -25,7 +25,8 @@
25
25
  "build:cli": "tsc cli/init/index.ts --outDir dist/cli/init --module commonjs --esModuleInterop",
26
26
  "changelog": "tsx scripts/generate-changelog.ts",
27
27
  "docs:compile": "tsx scripts/compile-docs.ts",
28
- "prepublishOnly": "tsx scripts/generate-changelog.ts && tsx scripts/compile-docs.ts"
28
+ "api:generate": "tsx scripts/generate-api-md.ts",
29
+ "prepublishOnly": "tsx scripts/generate-changelog.ts && tsx scripts/compile-docs.ts && tsx scripts/generate-api-md.ts && git commit -am \"Prepublish v${version} (CHANGELOG.md, DOCS.md and API.md updated)\""
29
30
  },
30
31
  "bin": {
31
32
  "includio": "./dist/cli/index.js"
@@ -38,6 +39,7 @@
38
39
  "CHANGELOG.md",
39
40
  "ROADMAP.md",
40
41
  "DOCS.md",
42
+ "API.md",
41
43
  "LICENSE"
42
44
  ],
43
45
  "sideEffects": [
@@ -56,87 +58,33 @@
56
58
  "svelte": "./dist/core/index.js",
57
59
  "node": "./dist/core/index.js"
58
60
  },
59
- "./entity": {
60
- "types": "./dist/entity/index.d.ts",
61
- "node": "./dist/entity/index.js"
62
- },
63
61
  "./types": {
64
62
  "types": "./dist/types/index.d.ts",
65
63
  "svelte": "./dist/types/index.js",
66
64
  "node": "./dist/types/index.js"
67
65
  },
68
- "./admin/helpers": {
69
- "types": "./dist/admin/helpers/index.d.ts",
70
- "svelte": "./dist/admin/helpers/index.js"
71
- },
72
- "./admin/ui": {
73
- "types": "./dist/admin/ui/index.d.ts",
74
- "svelte": "./dist/admin/ui/index.js"
75
- },
76
- "./admin": {
77
- "types": "./dist/admin/index.d.ts",
78
- "svelte": "./dist/admin/index.js"
79
- },
80
- "./admin/api/*": {
81
- "types": "./dist/admin/api/*.d.ts",
82
- "svelte": "./dist/admin/api/*.js",
83
- "node": "./dist/admin/api/*.js"
84
- },
85
- "./admin/api/rest/handler": {
86
- "types": "./dist/admin/api/rest/handler.d.ts",
87
- "svelte": "./dist/admin/api/rest/handler.js",
88
- "node": "./dist/admin/api/rest/handler.js"
89
- },
90
- "./admin/client/account": {
91
- "types": "./dist/admin/client/account/index.d.ts",
92
- "svelte": "./dist/admin/client/account/index.js"
93
- },
94
- "./admin/remote": {
95
- "types": "./dist/admin/remote/index.d.ts",
96
- "svelte": "./dist/admin/remote/index.js"
97
- },
98
66
  "./admin/client": {
99
67
  "types": "./dist/admin/client/index.d.ts",
100
68
  "svelte": "./dist/admin/client/index.js"
101
69
  },
102
- "./admin/client/*.svelte": {
103
- "types": "./dist/admin/client/*.svelte.d.ts",
104
- "svelte": "./dist/admin/client/*.svelte"
70
+ "./admin/remote": {
71
+ "types": "./dist/admin/remote/index.d.ts",
72
+ "svelte": "./dist/admin/remote/index.js"
105
73
  },
106
74
  "./sveltekit": {
107
75
  "types": "./dist/sveltekit/index.d.ts",
108
76
  "svelte": "./dist/sveltekit/index.js",
109
77
  "node": "./dist/sveltekit/index.js"
110
78
  },
111
- "./sveltekit/components/*.svelte": {
112
- "types": "./dist/sveltekit/components/*.svelte.d.ts",
113
- "svelte": "./dist/sveltekit/components/*.svelte"
114
- },
115
79
  "./sveltekit/server": {
116
80
  "types": "./dist/sveltekit/server/index.d.ts",
117
81
  "svelte": "./dist/sveltekit/server/index.js",
118
82
  "node": "./dist/sveltekit/server/index.js"
119
83
  },
120
- "./updates": {
121
- "types": "./dist/updates/index.d.ts",
122
- "node": "./dist/updates/index.js"
123
- },
124
84
  "./db-postgres": {
125
85
  "types": "./dist/db-postgres/index.d.ts",
126
86
  "node": "./dist/db-postgres/index.js"
127
87
  },
128
- "./db-postgres/schema-core": {
129
- "types": "./dist/db-postgres/schema-core.d.ts",
130
- "node": "./dist/db-postgres/schema-core.js"
131
- },
132
- "./db-postgres/schema-shop": {
133
- "types": "./dist/db-postgres/schema-shop.d.ts",
134
- "node": "./dist/db-postgres/schema-shop.js"
135
- },
136
- "./auth-schema": {
137
- "types": "./dist/server/db/schema/auth-schema.d.ts",
138
- "node": "./dist/server/db/schema/auth-schema.js"
139
- },
140
88
  "./shop": {
141
89
  "types": "./dist/shop/index.d.ts",
142
90
  "svelte": "./dist/shop/index.js",
@@ -151,10 +99,6 @@
151
99
  "types": "./dist/shop/http/index.d.ts",
152
100
  "node": "./dist/shop/http/index.js"
153
101
  },
154
- "./shop/svelte": {
155
- "types": "./dist/shop/svelte/index.d.ts",
156
- "svelte": "./dist/shop/svelte/index.js"
157
- },
158
102
  "./files-local": {
159
103
  "types": "./dist/files-local/index.d.ts",
160
104
  "node": "./dist/files-local/index.js"
@@ -167,10 +111,6 @@
167
111
  "types": "./dist/ai-openai/index.d.ts",
168
112
  "node": "./dist/ai-openai/index.js"
169
113
  },
170
- "./auth": {
171
- "types": "./dist/server/auth.d.ts",
172
- "node": "./dist/server/auth.js"
173
- },
174
114
  "./ai-claude": {
175
115
  "types": "./dist/ai-claude/index.d.ts",
176
116
  "node": "./dist/ai-claude/index.js"
@@ -1,5 +0,0 @@
1
- export function hello_world(inputs: {
2
- name: NonNullable<unknown>;
3
- }, options?: {
4
- locale?: "en" | "pl";
5
- }): string;
@@ -1,33 +0,0 @@
1
- /* eslint-disable */
2
- import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
-
4
- const en_hello_world = /** @type {(inputs: { name: NonNullable<unknown> }) => string} */ (i) => {
5
- return `Hello, ${i.name} from en!`
6
- };
7
-
8
- const pl_hello_world = /** @type {(inputs: { name: NonNullable<unknown> }) => string} */ (i) => {
9
- return `Hello, ${i.name} from pl!`
10
- };
11
-
12
- /**
13
- * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
14
- *
15
- * - Changing this function will be over-written by the next build.
16
- *
17
- * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
18
- * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
19
- *
20
- * @param {{ name: NonNullable<unknown> }} inputs
21
- * @param {{ locale?: "en" | "pl" }} options
22
- * @returns {string}
23
- */
24
- /* @__NO_SIDE_EFFECTS__ */
25
- export const hello_world = (inputs, options = {}) => {
26
- if (experimentalMiddlewareLocaleSplitting && isServer === false) {
27
- return /** @type {any} */ (globalThis).__paraglide_ssr.hello_world(inputs)
28
- }
29
- const locale = options.locale ?? getLocale()
30
- trackMessageCall("hello_world", locale)
31
- if (locale === "en") return en_hello_world(inputs)
32
- return pl_hello_world(inputs)
33
- };
@@ -1,16 +0,0 @@
1
- export { login_hello as login.hello };
2
- /**
3
- * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
4
- *
5
- * - Changing this function will be over-written by the next build.
6
- *
7
- * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
8
- * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
9
- *
10
- * @param {{}} inputs
11
- * @param {{ locale?: "en" | "pl" }} options
12
- * @returns {string}
13
- */
14
- declare function login_hello(inputs?: {}, options?: {
15
- locale?: "en" | "pl";
16
- }): string;
@@ -1,34 +0,0 @@
1
- /* eslint-disable */
2
- import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
-
4
- const en_login_hello = /** @type {(inputs: {}) => string} */ () => {
5
- return `Welcome back`
6
- };
7
-
8
- const pl_login_hello = /** @type {(inputs: {}) => string} */ () => {
9
- return `Witaj ponownie`
10
- };
11
-
12
- /**
13
- * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
14
- *
15
- * - Changing this function will be over-written by the next build.
16
- *
17
- * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
18
- * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
19
- *
20
- * @param {{}} inputs
21
- * @param {{ locale?: "en" | "pl" }} options
22
- * @returns {string}
23
- */
24
- /* @__NO_SIDE_EFFECTS__ */
25
- const login_hello = (inputs = {}, options = {}) => {
26
- if (experimentalMiddlewareLocaleSplitting && isServer === false) {
27
- return /** @type {any} */ (globalThis).__paraglide_ssr.login_hello(inputs)
28
- }
29
- const locale = options.locale ?? getLocale()
30
- trackMessageCall("login_hello", locale)
31
- if (locale === "en") return en_login_hello(inputs)
32
- return pl_login_hello(inputs)
33
- };
34
- export { login_hello as "login.hello" }
@@ -1,16 +0,0 @@
1
- export { login_please_login as login.please_login };
2
- /**
3
- * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
4
- *
5
- * - Changing this function will be over-written by the next build.
6
- *
7
- * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
8
- * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
9
- *
10
- * @param {{}} inputs
11
- * @param {{ locale?: "en" | "pl" }} options
12
- * @returns {string}
13
- */
14
- declare function login_please_login(inputs?: {}, options?: {
15
- locale?: "en" | "pl";
16
- }): string;
@@ -1,34 +0,0 @@
1
- /* eslint-disable */
2
- import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
-
4
- const en_login_please_login = /** @type {(inputs: {}) => string} */ () => {
5
- return `Login to your account`
6
- };
7
-
8
- const pl_login_please_login = /** @type {(inputs: {}) => string} */ () => {
9
- return `Zaloguj się na swoje konto`
10
- };
11
-
12
- /**
13
- * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
14
- *
15
- * - Changing this function will be over-written by the next build.
16
- *
17
- * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
18
- * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
19
- *
20
- * @param {{}} inputs
21
- * @param {{ locale?: "en" | "pl" }} options
22
- * @returns {string}
23
- */
24
- /* @__NO_SIDE_EFFECTS__ */
25
- const login_please_login = (inputs = {}, options = {}) => {
26
- if (experimentalMiddlewareLocaleSplitting && isServer === false) {
27
- return /** @type {any} */ (globalThis).__paraglide_ssr.login_please_login(inputs)
28
- }
29
- const locale = options.locale ?? getLocale()
30
- trackMessageCall("login_please_login", locale)
31
- if (locale === "en") return en_login_please_login(inputs)
32
- return pl_login_please_login(inputs)
33
- };
34
- export { login_please_login as "login.please_login" }