includio-cms 0.36.3 → 0.36.5
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/API.md +1 -1
- package/CHANGELOG.md +16 -0
- package/DOCS.md +1 -1
- package/dist/admin/client/collection/collection-entries.svelte +7 -13
- package/dist/admin/utils/entryVersionData.d.ts +17 -0
- package/dist/admin/utils/entryVersionData.js +29 -0
- package/dist/paraglide/messages/_index.d.ts +3 -36
- package/dist/paraglide/messages/_index.js +3 -71
- package/dist/paraglide/messages/hello_world.d.ts +5 -0
- package/dist/paraglide/messages/hello_world.js +33 -0
- package/dist/paraglide/messages/login_hello.d.ts +16 -0
- package/dist/paraglide/messages/login_hello.js +34 -0
- package/dist/paraglide/messages/login_please_login.d.ts +16 -0
- package/dist/paraglide/messages/login_please_login.js +34 -0
- package/dist/updates/0.36.4/index.d.ts +2 -0
- package/dist/updates/0.36.4/index.js +12 -0
- package/dist/updates/0.36.5/index.d.ts +2 -0
- package/dist/updates/0.36.5/index.js +10 -0
- package/dist/updates/index.js +5 -1
- package/package.json +18 -18
- package/dist/paraglide/messages/en.d.ts +0 -5
- package/dist/paraglide/messages/en.js +0 -14
- package/dist/paraglide/messages/pl.d.ts +0 -5
- package/dist/paraglide/messages/pl.js +0 -14
package/API.md
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to includio-cms are documented here.
|
|
4
4
|
Generated from `src/lib/updates/` — do not edit manually.
|
|
5
5
|
|
|
6
|
+
## 0.36.5 — 2026-06-11
|
|
7
|
+
|
|
8
|
+
Zależności tiptap przypięte do exact `3.26.1` (wcześniej `^3.17.1`). Rozjazd zakresów powodował, że konsument mógł rozwiązać rdzeń `@tiptap/core` na inną wersję niż rozszerzenia (np. core 3.22.3 vs extension-highlight 3.26.1), co wywalało produkcyjny build („getStyleProperty is not exported by @tiptap/core"). Bez potrzeby override po stronie projektu.
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Wszystkie `@tiptap/*` deps przypięte do exact `3.26.1` (rdzeń, pm, starter-kit, suggestion i extensiony). Caret-zakresy (`^3.17.1`/`^3.20.0`) pozwalały pnpm rozwiązać rdzeń i rozszerzenia na różne minory w drzewie konsumenta — rozszerzenia 3.2x importują symbole (`getStyleProperty`) nieobecne w starszym rdzeniu, więc Rollup przerywał build. Exact pin gwarantuje spójną wersję bez override `@tiptap/core`/`@tiptap/pm` w projekcie konsumenta.
|
|
12
|
+
|
|
13
|
+
## 0.36.4 — 2026-06-11
|
|
14
|
+
|
|
15
|
+
Lista wpisów kolekcji — fix: URL pod nazwą wpisu (oraz wyszukiwarka i ostrzeżenia a11y) znikał, gdy początkowy draft v1 różnił się od późniejszej opublikowanej treści (np. slug ustawiony dopiero po publikacji). Ujednolicono precedencję wyboru wersji w jednym helperze (published-first), spójnie z resztą admina.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- `getVersionData` w liście kolekcji (`collection-entries.svelte`) preferowało draft przed published. `draftVersions[lang]` to najnowsza wersja z `publishedAt == null` — co może być przestarzałym początkowym draftem (v1), starszym niż najnowsza publikacja, gdy późniejsze edycje szły tylko przez publikację. Efekt: subtytuł URL czytał pusty/nieaktualny slug z v1 i znikał, mimo że opublikowana wersja miała slug. Naprawione przez nowy SSOT `getRawEntryVersionData(entry, language)` z precedencją published-first (requested lang published → draft, potem any lang published → draft) — spójną z `getRawCollectionEntryLabelWithLanguage`, custom columns i edytorem wpisu.
|
|
19
|
+
- Ten sam helper zasila też tekst wyszukiwarki (`getSearchText`) i ostrzeżenia a11y (`countA11yWarnings`) — wcześniej również czytały przestarzały draft. `columnData` uproszczone (redundantny published-first override usunięty).
|
|
20
|
+
- `extractEntryUrl` przekazuje teraz `language` do `resolveEntryUrl` — bez efektu dla płaskiego slug, ale poprawne dla projektów wielojęzycznych ze zlokalizowanym slugiem. Dodany regression test (`entryVersionData.spec.ts`) odtwarzający scenariusz pustego draftu v1 + opublikowanego sluga.
|
|
21
|
+
|
|
6
22
|
## 0.36.3 — 2026-06-11
|
|
7
23
|
|
|
8
24
|
Relacje opcjonalne — fix: niewybrana relacja (pole bez `required`) blokowała zapis wpisu („Invalid input: expected string, received null") albo wywalała populację przy pustym stringu. Teraz „brak wyboru" działa w obie strony — Zod akceptuje null/""/undefined, a populacja pomija puste wartości.
|
package/DOCS.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getCollectionEntryDisplayLabel } from '../../utils/entryLabel.js';
|
|
3
|
+
import { getRawEntryVersionData } from '../../utils/entryVersionData.js';
|
|
3
4
|
import { getEntryThumbnail, type MediaThumbnailLookup } from '../../utils/entryThumbnail.js';
|
|
4
5
|
import { arrayMove } from '../../utils/arrayMove.js';
|
|
5
6
|
import { getRemotes } from '../../../sveltekit/index.js';
|
|
@@ -426,15 +427,7 @@
|
|
|
426
427
|
}
|
|
427
428
|
|
|
428
429
|
function getVersionData(entry: RawEntry): Record<string, unknown> | undefined {
|
|
429
|
-
|
|
430
|
-
const draft = entry.draftVersions[lang];
|
|
431
|
-
const published = entry.publishedVersions[lang];
|
|
432
|
-
if (draft?.data) return draft.data as Record<string, unknown>;
|
|
433
|
-
if (published?.data) return published.data as Record<string, unknown>;
|
|
434
|
-
// Fallback: any lang
|
|
435
|
-
for (const v of Object.values(entry.draftVersions)) if (v?.data) return v.data as Record<string, unknown>;
|
|
436
|
-
for (const v of Object.values(entry.publishedVersions)) if (v?.data) return v.data as Record<string, unknown>;
|
|
437
|
-
return undefined;
|
|
430
|
+
return getRawEntryVersionData(entry, interfaceLanguage.current);
|
|
438
431
|
}
|
|
439
432
|
|
|
440
433
|
function getSearchText(entry: RawEntry): string {
|
|
@@ -467,7 +460,8 @@
|
|
|
467
460
|
return resolveEntryUrl({
|
|
468
461
|
slugField: collection.slugField,
|
|
469
462
|
pathTemplate: collection.pathTemplate,
|
|
470
|
-
data: data as Record<string, unknown
|
|
463
|
+
data: data as Record<string, unknown>,
|
|
464
|
+
language: interfaceLanguage.current
|
|
471
465
|
});
|
|
472
466
|
}
|
|
473
467
|
|
|
@@ -560,9 +554,9 @@
|
|
|
560
554
|
|
|
561
555
|
function mapEntryToRow(entry: RawEntry, lookup: Record<string, string> = {}, mediaThumbs: MediaThumbnailLookup = {}): CollectionDataTableRow {
|
|
562
556
|
const data = getVersionData(entry) || {};
|
|
563
|
-
//
|
|
564
|
-
|
|
565
|
-
const columnData =
|
|
557
|
+
// getVersionData is already published-first (see getRawEntryVersionData),
|
|
558
|
+
// so it doubles as the source for custom columns.
|
|
559
|
+
const columnData = data;
|
|
566
560
|
const customData: Record<string, unknown> = {};
|
|
567
561
|
if (collection.listColumns) {
|
|
568
562
|
for (const fieldSlug of collection.listColumns) {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { RawEntry } from '../../types/entries.js';
|
|
2
|
+
/**
|
|
3
|
+
* Effective entry data for the admin collection list.
|
|
4
|
+
*
|
|
5
|
+
* Resolves the version whose data the list should display for a raw entry,
|
|
6
|
+
* with **published-first** precedence: requested language published → draft,
|
|
7
|
+
* then any other language published → draft. Returns `undefined` only when the
|
|
8
|
+
* entry has no usable version data at all.
|
|
9
|
+
*
|
|
10
|
+
* Why published-first: `draftVersions[lang]` is the latest version with
|
|
11
|
+
* `publishedAt == null`, which can be an *older* lingering draft (e.g. the
|
|
12
|
+
* initial v1) when later edits were published without re-saving a draft. The
|
|
13
|
+
* rest of the admin (entry label, custom columns, entry editor) already prefers
|
|
14
|
+
* published — this keeps the URL subtitle, search text and a11y warnings
|
|
15
|
+
* consistent with it. Mirrors {@link getRawCollectionEntryLabelWithLanguage}.
|
|
16
|
+
*/
|
|
17
|
+
export declare function getRawEntryVersionData(entry: RawEntry, language: string): Record<string, unknown> | undefined;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Effective entry data for the admin collection list.
|
|
3
|
+
*
|
|
4
|
+
* Resolves the version whose data the list should display for a raw entry,
|
|
5
|
+
* with **published-first** precedence: requested language published → draft,
|
|
6
|
+
* then any other language published → draft. Returns `undefined` only when the
|
|
7
|
+
* entry has no usable version data at all.
|
|
8
|
+
*
|
|
9
|
+
* Why published-first: `draftVersions[lang]` is the latest version with
|
|
10
|
+
* `publishedAt == null`, which can be an *older* lingering draft (e.g. the
|
|
11
|
+
* initial v1) when later edits were published without re-saving a draft. The
|
|
12
|
+
* rest of the admin (entry label, custom columns, entry editor) already prefers
|
|
13
|
+
* published — this keeps the URL subtitle, search text and a11y warnings
|
|
14
|
+
* consistent with it. Mirrors {@link getRawCollectionEntryLabelWithLanguage}.
|
|
15
|
+
*/
|
|
16
|
+
export function getRawEntryVersionData(entry, language) {
|
|
17
|
+
for (const bucket of [entry.publishedVersions, entry.draftVersions]) {
|
|
18
|
+
const data = bucket?.[language]?.data;
|
|
19
|
+
if (data)
|
|
20
|
+
return data;
|
|
21
|
+
}
|
|
22
|
+
for (const bucket of [entry.publishedVersions, entry.draftVersions]) {
|
|
23
|
+
for (const version of Object.values(bucket ?? {})) {
|
|
24
|
+
if (version?.data)
|
|
25
|
+
return version.data;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
@@ -1,36 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
export * from "./hello_world.js";
|
|
2
|
+
export * from "./login_hello.js";
|
|
3
|
+
export * from "./login_please_login.js";
|
|
@@ -1,72 +1,4 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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" }
|
|
2
|
+
export * from './hello_world.js'
|
|
3
|
+
export * from './login_hello.js'
|
|
4
|
+
export * from './login_please_login.js'
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
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;
|
|
@@ -0,0 +1,34 @@
|
|
|
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" }
|
|
@@ -0,0 +1,16 @@
|
|
|
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;
|
|
@@ -0,0 +1,34 @@
|
|
|
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" }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const update = {
|
|
2
|
+
version: '0.36.4',
|
|
3
|
+
date: '2026-06-11',
|
|
4
|
+
description: 'Lista wpisów kolekcji — fix: URL pod nazwą wpisu (oraz wyszukiwarka i ostrzeżenia a11y) znikał, gdy początkowy draft v1 różnił się od późniejszej opublikowanej treści (np. slug ustawiony dopiero po publikacji). Ujednolicono precedencję wyboru wersji w jednym helperze (published-first), spójnie z resztą admina.',
|
|
5
|
+
features: [],
|
|
6
|
+
fixes: [
|
|
7
|
+
'`getVersionData` w liście kolekcji (`collection-entries.svelte`) preferowało draft przed published. `draftVersions[lang]` to najnowsza wersja z `publishedAt == null` — co może być przestarzałym początkowym draftem (v1), starszym niż najnowsza publikacja, gdy późniejsze edycje szły tylko przez publikację. Efekt: subtytuł URL czytał pusty/nieaktualny slug z v1 i znikał, mimo że opublikowana wersja miała slug. Naprawione przez nowy SSOT `getRawEntryVersionData(entry, language)` z precedencją published-first (requested lang published → draft, potem any lang published → draft) — spójną z `getRawCollectionEntryLabelWithLanguage`, custom columns i edytorem wpisu.',
|
|
8
|
+
'Ten sam helper zasila też tekst wyszukiwarki (`getSearchText`) i ostrzeżenia a11y (`countA11yWarnings`) — wcześniej również czytały przestarzały draft. `columnData` uproszczone (redundantny published-first override usunięty).',
|
|
9
|
+
'`extractEntryUrl` przekazuje teraz `language` do `resolveEntryUrl` — bez efektu dla płaskiego slug, ale poprawne dla projektów wielojęzycznych ze zlokalizowanym slugiem. Dodany regression test (`entryVersionData.spec.ts`) odtwarzający scenariusz pustego draftu v1 + opublikowanego sluga.'
|
|
10
|
+
],
|
|
11
|
+
breakingChanges: []
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const update = {
|
|
2
|
+
version: '0.36.5',
|
|
3
|
+
date: '2026-06-11',
|
|
4
|
+
description: 'Zależności tiptap przypięte do exact `3.26.1` (wcześniej `^3.17.1`). Rozjazd zakresów powodował, że konsument mógł rozwiązać rdzeń `@tiptap/core` na inną wersję niż rozszerzenia (np. core 3.22.3 vs extension-highlight 3.26.1), co wywalało produkcyjny build („getStyleProperty is not exported by @tiptap/core"). Bez potrzeby override po stronie projektu.',
|
|
5
|
+
features: [],
|
|
6
|
+
fixes: [
|
|
7
|
+
'Wszystkie `@tiptap/*` deps przypięte do exact `3.26.1` (rdzeń, pm, starter-kit, suggestion i extensiony). Caret-zakresy (`^3.17.1`/`^3.20.0`) pozwalały pnpm rozwiązać rdzeń i rozszerzenia na różne minory w drzewie konsumenta — rozszerzenia 3.2x importują symbole (`getStyleProperty`) nieobecne w starszym rdzeniu, więc Rollup przerywał build. Exact pin gwarantuje spójną wersję bez override `@tiptap/core`/`@tiptap/pm` w projekcie konsumenta.'
|
|
8
|
+
],
|
|
9
|
+
breakingChanges: []
|
|
10
|
+
};
|
package/dist/updates/index.js
CHANGED
|
@@ -70,6 +70,8 @@ import { update as update0360 } from './0.36.0/index.js';
|
|
|
70
70
|
import { update as update0361 } from './0.36.1/index.js';
|
|
71
71
|
import { update as update0362 } from './0.36.2/index.js';
|
|
72
72
|
import { update as update0363 } from './0.36.3/index.js';
|
|
73
|
+
import { update as update0364 } from './0.36.4/index.js';
|
|
74
|
+
import { update as update0365 } from './0.36.5/index.js';
|
|
73
75
|
export const updates = [
|
|
74
76
|
update0065,
|
|
75
77
|
update0066,
|
|
@@ -142,7 +144,9 @@ export const updates = [
|
|
|
142
144
|
update0360,
|
|
143
145
|
update0361,
|
|
144
146
|
update0362,
|
|
145
|
-
update0363
|
|
147
|
+
update0363,
|
|
148
|
+
update0364,
|
|
149
|
+
update0365
|
|
146
150
|
];
|
|
147
151
|
export const getUpdatesFrom = (fromVersion) => {
|
|
148
152
|
const fromParts = fromVersion.split('.').map(Number);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "includio-cms",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.5",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "vite build && npm run prepack",
|
|
@@ -285,23 +285,23 @@
|
|
|
285
285
|
"@tabler/icons-svelte": "^3.34.0",
|
|
286
286
|
"@tanstack/table-core": "^8.21.3",
|
|
287
287
|
"@thisux/sveltednd": "^0.0.20",
|
|
288
|
-
"@tiptap/core": "
|
|
289
|
-
"@tiptap/extension-bubble-menu": "
|
|
290
|
-
"@tiptap/extension-code-block": "
|
|
291
|
-
"@tiptap/extension-code-block-lowlight": "
|
|
292
|
-
"@tiptap/extension-highlight": "
|
|
293
|
-
"@tiptap/extension-image": "
|
|
294
|
-
"@tiptap/extension-link": "
|
|
295
|
-
"@tiptap/extension-placeholder": "
|
|
296
|
-
"@tiptap/extension-table": "
|
|
297
|
-
"@tiptap/extension-table-cell": "
|
|
298
|
-
"@tiptap/extension-table-header": "
|
|
299
|
-
"@tiptap/extension-table-row": "
|
|
300
|
-
"@tiptap/extension-text-align": "
|
|
301
|
-
"@tiptap/extension-underline": "
|
|
302
|
-
"@tiptap/pm": "
|
|
303
|
-
"@tiptap/starter-kit": "
|
|
304
|
-
"@tiptap/suggestion": "
|
|
288
|
+
"@tiptap/core": "3.26.1",
|
|
289
|
+
"@tiptap/extension-bubble-menu": "3.26.1",
|
|
290
|
+
"@tiptap/extension-code-block": "3.26.1",
|
|
291
|
+
"@tiptap/extension-code-block-lowlight": "3.26.1",
|
|
292
|
+
"@tiptap/extension-highlight": "3.26.1",
|
|
293
|
+
"@tiptap/extension-image": "3.26.1",
|
|
294
|
+
"@tiptap/extension-link": "3.26.1",
|
|
295
|
+
"@tiptap/extension-placeholder": "3.26.1",
|
|
296
|
+
"@tiptap/extension-table": "3.26.1",
|
|
297
|
+
"@tiptap/extension-table-cell": "3.26.1",
|
|
298
|
+
"@tiptap/extension-table-header": "3.26.1",
|
|
299
|
+
"@tiptap/extension-table-row": "3.26.1",
|
|
300
|
+
"@tiptap/extension-text-align": "3.26.1",
|
|
301
|
+
"@tiptap/extension-underline": "3.26.1",
|
|
302
|
+
"@tiptap/pm": "3.26.1",
|
|
303
|
+
"@tiptap/starter-kit": "3.26.1",
|
|
304
|
+
"@tiptap/suggestion": "3.26.1",
|
|
305
305
|
"arctic": "^3.7.0",
|
|
306
306
|
"dotenv": "^16.5.0",
|
|
307
307
|
"fast-glob": "^3.3.3",
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
};
|