includio-cms 0.6.0 → 0.6.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/ROADMAP.md +20 -4
  3. package/dist/admin/client/collection/collection-entries.svelte +43 -1
  4. package/dist/admin/client/collection/table-toolbar.svelte +64 -1
  5. package/dist/admin/client/collection/table-toolbar.svelte.d.ts +11 -0
  6. package/dist/admin/components/fields/field-renderer.svelte +3 -2
  7. package/dist/admin/components/fields/field-renderer.svelte.d.ts +1 -0
  8. package/dist/admin/components/fields/object-field.svelte +5 -5
  9. package/dist/admin/components/fields/object-field.svelte.d.ts +1 -1
  10. package/dist/admin/components/fields/text-field-wrapper.svelte +5 -3
  11. package/dist/admin/components/layout/layout-renderer.svelte +81 -107
  12. package/dist/admin/components/layout/layout-renderer.svelte.d.ts +1 -0
  13. package/dist/admin/components/tiptap/InlineBlockNodeView.svelte +13 -6
  14. package/dist/admin/components/tiptap/content-editor.svelte +11 -2
  15. package/dist/admin/styles/admin.css +2 -1
  16. package/dist/ai-claude/index.js +10 -4
  17. package/dist/cli/index.js +10 -3
  18. package/dist/cli/install-peers.d.ts +3 -0
  19. package/dist/cli/install-peers.js +52 -0
  20. package/dist/core/fields/fieldSchemaToTs.js +2 -0
  21. package/dist/core/fields/layoutUtils.d.ts +30 -3
  22. package/dist/core/fields/layoutUtils.js +145 -17
  23. package/dist/core/server/generator/generator.js +21 -10
  24. package/dist/entity/index.d.ts +26 -0
  25. package/dist/entity/index.js +113 -0
  26. package/dist/paraglide/messages/_index.d.ts +36 -3
  27. package/dist/paraglide/messages/_index.js +71 -3
  28. package/dist/paraglide/messages/en.d.ts +5 -0
  29. package/dist/paraglide/messages/en.js +14 -0
  30. package/dist/paraglide/messages/pl.d.ts +5 -0
  31. package/dist/paraglide/messages/pl.js +14 -0
  32. package/dist/types/layout.d.ts +8 -0
  33. package/dist/updates/0.6.0/index.d.ts +2 -0
  34. package/dist/updates/0.6.0/index.js +20 -0
  35. package/dist/updates/index.js +2 -1
  36. package/package.json +20 -6
  37. package/dist/paraglide/messages/hello_world.d.ts +0 -5
  38. package/dist/paraglide/messages/hello_world.js +0 -33
  39. package/dist/paraglide/messages/login_hello.d.ts +0 -16
  40. package/dist/paraglide/messages/login_hello.js +0 -34
  41. package/dist/paraglide/messages/login_please_login.d.ts +0 -16
  42. package/dist/paraglide/messages/login_please_login.js +0 -34
@@ -0,0 +1,113 @@
1
+ import { generateZodSchemaFromFields } from '../core/fields/fieldSchemaToTs.js';
2
+ import { getFieldsFromConfig } from '../core/fields/layoutUtils.js';
3
+ import { getRawEntries } from '../core/server/entries/operations/get.js';
4
+ export function createEntityAPI(cms, opts) {
5
+ const db = cms.databaseAdapter;
6
+ const userId = opts?.userId ?? 'system';
7
+ function validate(slug, data) {
8
+ const config = cms.getBySlug(slug);
9
+ const schema = generateZodSchemaFromFields(getFieldsFromConfig(config), cms.languages);
10
+ const result = schema.safeParse(data);
11
+ if (!result.success) {
12
+ throw Error('Invalid data: ' + JSON.stringify(result.error.flatten()));
13
+ }
14
+ return result.data;
15
+ }
16
+ return {
17
+ async create(slug, data, options) {
18
+ const config = cms.getBySlug(slug);
19
+ const type = config.type === 'collection' ? 'collection' : 'singleton';
20
+ const entry = await db.createEntry({
21
+ slug,
22
+ type,
23
+ sortOrder: options?.sortOrder ?? null
24
+ });
25
+ const entryData = data ?? {};
26
+ const validatedData = data && !options?.skipValidation ? validate(slug, entryData) : entryData;
27
+ await db.createEntryVersion({
28
+ entryId: entry.id,
29
+ data: validatedData,
30
+ createdBy: userId
31
+ });
32
+ return entry;
33
+ },
34
+ async update(entryId, data, options) {
35
+ const entries = await db.getEntries({ ids: [entryId] });
36
+ const entry = entries[0];
37
+ if (!entry)
38
+ throw Error('Entry not found');
39
+ const validatedData = !options?.skipValidation ? validate(entry.slug, data) : data;
40
+ const versions = await db.getEntryVersions({ entryIds: [entryId] });
41
+ const sorted = versions.sort((a, b) => b.versionNumber - a.versionNumber);
42
+ const latestDraft = sorted.find((v) => v.id !== entry.publishedVersionId);
43
+ if (latestDraft) {
44
+ if (JSON.stringify(latestDraft.data) === JSON.stringify(validatedData)) {
45
+ return latestDraft;
46
+ }
47
+ return db.updateEntryVersion({
48
+ id: latestDraft.id,
49
+ data: { data: validatedData, createdAt: new Date() }
50
+ });
51
+ }
52
+ return db.createEntryVersion({
53
+ entryId,
54
+ data: validatedData,
55
+ createdBy: userId
56
+ });
57
+ },
58
+ async publish(entryId) {
59
+ const versions = await db.getEntryVersions({ entryIds: [entryId] });
60
+ const entries = await db.getEntries({ ids: [entryId] });
61
+ const entry = entries[0];
62
+ if (!entry)
63
+ throw Error('Entry not found');
64
+ const draft = versions
65
+ .filter((v) => v.id !== entry.publishedVersionId)
66
+ .sort((a, b) => b.versionNumber - a.versionNumber)[0];
67
+ if (!draft)
68
+ throw Error('No draft to publish');
69
+ await db.updateEntry({
70
+ id: entryId,
71
+ data: {
72
+ publishedVersionId: draft.id,
73
+ publishedAt: new Date(),
74
+ publishedBy: userId,
75
+ archivedAt: null
76
+ }
77
+ });
78
+ },
79
+ async unpublish(entryId) {
80
+ await db.updateEntry({
81
+ id: entryId,
82
+ data: {
83
+ publishedVersionId: null,
84
+ publishedAt: null,
85
+ publishedBy: null
86
+ }
87
+ });
88
+ },
89
+ async archive(entryId) {
90
+ await db.updateEntry({
91
+ id: entryId,
92
+ data: { archivedAt: new Date() }
93
+ });
94
+ },
95
+ async unarchive(entryId) {
96
+ await db.updateEntry({
97
+ id: entryId,
98
+ data: { archivedAt: null }
99
+ });
100
+ },
101
+ async delete(entryId) {
102
+ await db.deleteEntry({ id: entryId });
103
+ },
104
+ async list(slug, options) {
105
+ return getRawEntries({ slug, ...options });
106
+ },
107
+ async createAndPublish(slug, data, options) {
108
+ const entry = await this.create(slug, data, options);
109
+ await this.publish(entry.id);
110
+ return entry;
111
+ }
112
+ };
113
+ }
@@ -1,3 +1,36 @@
1
- export * from "./hello_world.js";
2
- export * from "./login_hello.js";
3
- export * from "./login_please_login.js";
1
+ export function hello_world(inputs: {
2
+ name: NonNullable<unknown>;
3
+ }, options?: {
4
+ locale?: "en" | "pl";
5
+ }): string;
6
+ /**
7
+ * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
8
+ *
9
+ * - Changing this function will be over-written by the next build.
10
+ *
11
+ * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
12
+ * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
13
+ *
14
+ * @param {{}} inputs
15
+ * @param {{ locale?: "en" | "pl" }} options
16
+ * @returns {string}
17
+ */
18
+ declare function login_hello(inputs?: {}, options?: {
19
+ locale?: "en" | "pl";
20
+ }): string;
21
+ /**
22
+ * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
23
+ *
24
+ * - Changing this function will be over-written by the next build.
25
+ *
26
+ * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
27
+ * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
28
+ *
29
+ * @param {{}} inputs
30
+ * @param {{ locale?: "en" | "pl" }} options
31
+ * @returns {string}
32
+ */
33
+ declare function login_please_login(inputs?: {}, options?: {
34
+ locale?: "en" | "pl";
35
+ }): string;
36
+ export { login_hello as login.hello, login_please_login as login.please_login };
@@ -1,4 +1,72 @@
1
1
  /* eslint-disable */
2
- export * from './hello_world.js'
3
- export * from './login_hello.js'
4
- export * from './login_please_login.js'
2
+ import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from "../runtime.js"
3
+ import * as en from "./en.js"
4
+ import * as pl from "./pl.js"
5
+ /**
6
+ * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
7
+ *
8
+ * - Changing this function will be over-written by the next build.
9
+ *
10
+ * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
11
+ * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
12
+ *
13
+ * @param {{ name: NonNullable<unknown> }} inputs
14
+ * @param {{ locale?: "en" | "pl" }} options
15
+ * @returns {string}
16
+ */
17
+ /* @__NO_SIDE_EFFECTS__ */
18
+ export const hello_world = (inputs, options = {}) => {
19
+ if (experimentalMiddlewareLocaleSplitting && isServer === false) {
20
+ return /** @type {any} */ (globalThis).__paraglide_ssr.hello_world(inputs)
21
+ }
22
+ const locale = options.locale ?? getLocale()
23
+ trackMessageCall("hello_world", locale)
24
+ if (locale === "en") return en.hello_world(inputs)
25
+ return pl.hello_world(inputs)
26
+ };
27
+ /**
28
+ * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
29
+ *
30
+ * - Changing this function will be over-written by the next build.
31
+ *
32
+ * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
33
+ * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
34
+ *
35
+ * @param {{}} inputs
36
+ * @param {{ locale?: "en" | "pl" }} options
37
+ * @returns {string}
38
+ */
39
+ /* @__NO_SIDE_EFFECTS__ */
40
+ const login_hello = (inputs = {}, options = {}) => {
41
+ if (experimentalMiddlewareLocaleSplitting && isServer === false) {
42
+ return /** @type {any} */ (globalThis).__paraglide_ssr.login_hello(inputs)
43
+ }
44
+ const locale = options.locale ?? getLocale()
45
+ trackMessageCall("login_hello", locale)
46
+ if (locale === "en") return en.login_hello(inputs)
47
+ return pl.login_hello(inputs)
48
+ };
49
+ export { login_hello as "login.hello" }
50
+ /**
51
+ * This function has been compiled by [Paraglide JS](https://inlang.com/m/gerre34r).
52
+ *
53
+ * - Changing this function will be over-written by the next build.
54
+ *
55
+ * - If you want to change the translations, you can either edit the source files e.g. `en.json`, or
56
+ * use another inlang app like [Fink](https://inlang.com/m/tdozzpar) or the [VSCode extension Sherlock](https://inlang.com/m/r7kp499g).
57
+ *
58
+ * @param {{}} inputs
59
+ * @param {{ locale?: "en" | "pl" }} options
60
+ * @returns {string}
61
+ */
62
+ /* @__NO_SIDE_EFFECTS__ */
63
+ const login_please_login = (inputs = {}, options = {}) => {
64
+ if (experimentalMiddlewareLocaleSplitting && isServer === false) {
65
+ return /** @type {any} */ (globalThis).__paraglide_ssr.login_please_login(inputs)
66
+ }
67
+ const locale = options.locale ?? getLocale()
68
+ trackMessageCall("login_please_login", locale)
69
+ if (locale === "en") return en.login_please_login(inputs)
70
+ return pl.login_please_login(inputs)
71
+ };
72
+ export { login_please_login as "login.please_login" }
@@ -0,0 +1,5 @@
1
+ export const hello_world: (inputs: {
2
+ name: NonNullable<unknown>;
3
+ }) => string;
4
+ export const login_hello: (inputs: {}) => string;
5
+ export const login_please_login: (inputs: {}) => string;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+
3
+
4
+ export const hello_world = /** @type {(inputs: { name: NonNullable<unknown> }) => string} */ (i) => {
5
+ return `Hello, ${i.name} from en!`
6
+ };
7
+
8
+ export const login_hello = /** @type {(inputs: {}) => string} */ () => {
9
+ return `Welcome back`
10
+ };
11
+
12
+ export const login_please_login = /** @type {(inputs: {}) => string} */ () => {
13
+ return `Login to your account`
14
+ };
@@ -0,0 +1,5 @@
1
+ export const hello_world: (inputs: {
2
+ name: NonNullable<unknown>;
3
+ }) => string;
4
+ export const login_hello: (inputs: {}) => string;
5
+ export const login_please_login: (inputs: {}) => string;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+
3
+
4
+ export const hello_world = /** @type {(inputs: { name: NonNullable<unknown> }) => string} */ (i) => {
5
+ return `Hello, ${i.name} from pl!`
6
+ };
7
+
8
+ export const login_hello = /** @type {(inputs: {}) => string} */ () => {
9
+ return `Witaj ponownie`
10
+ };
11
+
12
+ export const login_please_login = /** @type {(inputs: {}) => string} */ () => {
13
+ return `Zaloguj się na swoje konto`
14
+ };
@@ -17,6 +17,10 @@ interface LayoutNodeBase {
17
17
  export interface SectionNode extends LayoutNodeBase {
18
18
  type: 'section';
19
19
  label: Localized;
20
+ /**
21
+ * Field references — supports top-level slugs and dot-notation for object fields.
22
+ * @example ['title', 'hero.subtitle', 'companyInfo.contact.email']
23
+ */
20
24
  fields?: string[];
21
25
  children?: LayoutNode[];
22
26
  }
@@ -28,6 +32,10 @@ export interface ColumnsNode extends LayoutNodeBase {
28
32
  export interface CardNode extends LayoutNodeBase {
29
33
  type: 'card';
30
34
  label: Localized;
35
+ /**
36
+ * Field references — supports top-level slugs and dot-notation for object fields.
37
+ * @example ['companyInfo.name', 'companyInfo.motto'] — fields from different objects in one card
38
+ */
31
39
  fields?: string[];
32
40
  children?: LayoutNode[];
33
41
  autoGrid?: boolean;
@@ -0,0 +1,2 @@
1
+ import type { CmsUpdate } from '../index.js';
2
+ export declare const update: CmsUpdate;
@@ -0,0 +1,20 @@
1
+ export const update = {
2
+ version: '0.6.0',
3
+ date: '2026-03-10',
4
+ description: 'Entity module, collection filters, layout dot-notation, peerDeps migration',
5
+ features: [
6
+ 'Entity module — programmatic CRUD API for entries (`getEntity`)',
7
+ 'CLI `install-peers` command for automatic peer dependency installation',
8
+ 'Collection data filters — filter entries by select/radio field values in toolbar',
9
+ 'Layout dot-notation — distribute object fields across layout nodes'
10
+ ],
11
+ fixes: [
12
+ 'AI Claude: lazy client init, no crash without API key',
13
+ 'Codegen: quote hyphenated slugs, PascalCase form schemas, improved query types',
14
+ 'TipTap: inline block content field lang fix + placeholder UX',
15
+ 'Zod schema: skip lang wrapper for non-localized content field'
16
+ ],
17
+ breakingChanges: [
18
+ 'Runtime dependencies moved to peerDependencies — run `pnpm includio install-peers` after upgrade'
19
+ ]
20
+ };
@@ -20,7 +20,8 @@ import { update as update055 } from './0.5.5/index.js';
20
20
  import { update as update056 } from './0.5.6/index.js';
21
21
  import { update as update057 } from './0.5.7/index.js';
22
22
  import { update as update058 } from './0.5.8/index.js';
23
- export const updates = [update0065, update0066, update0067, update0068, update0069, update010, update011, update012, update013, update014, update015, update020, update022, update050, update051, update052, update053, update054, update055, update056, update057, update058];
23
+ import { update as update060 } from './0.6.0/index.js';
24
+ export const updates = [update0065, update0066, update0067, update0068, update0069, update010, update011, update012, update013, update014, update015, update020, update022, update050, update051, update052, update053, update054, update055, update056, update057, update058, update060];
24
25
  export const getUpdatesFrom = (fromVersion) => {
25
26
  const fromParts = fromVersion.split('.').map(Number);
26
27
  return updates.filter((update) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "includio-cms",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",
@@ -49,6 +49,10 @@
49
49
  "types": "./dist/core/index.d.ts",
50
50
  "node": "./dist/core/index.js"
51
51
  },
52
+ "./entity": {
53
+ "types": "./dist/entity/index.d.ts",
54
+ "node": "./dist/entity/index.js"
55
+ },
52
56
  "./types": {
53
57
  "types": "./dist/types/index.d.ts",
54
58
  "svelte": "./dist/types/index.js",
@@ -145,11 +149,21 @@
145
149
  "zod": "^4.0.0"
146
150
  },
147
151
  "peerDependenciesMeta": {
148
- "runed": { "optional": true },
149
- "svelte-tiptap": { "optional": true },
150
- "paneforge": { "optional": true },
151
- "svelte-sonner": { "optional": true },
152
- "embla-carousel-svelte": { "optional": true }
152
+ "runed": {
153
+ "optional": true
154
+ },
155
+ "svelte-tiptap": {
156
+ "optional": true
157
+ },
158
+ "paneforge": {
159
+ "optional": true
160
+ },
161
+ "svelte-sonner": {
162
+ "optional": true
163
+ },
164
+ "embla-carousel-svelte": {
165
+ "optional": true
166
+ }
153
167
  },
154
168
  "devDependencies": {
155
169
  "@chromatic-com/storybook": "^5.0.1",
@@ -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" }