@lupinum/ginko-content 0.12.0 → 0.14.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/CHANGELOG.md +22 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @lupinum/ginko-content
|
|
2
2
|
|
|
3
|
+
## 0.14.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`1140222`](https://github.com/lupinum-dev/ginko/commit/11402224fcc89dc2488cfb081eb41fd9376091c3)]:
|
|
8
|
+
- @lupinum/ginko@0.14.0
|
|
9
|
+
|
|
10
|
+
## 0.13.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [#88](https://github.com/lupinum-dev/ginko/pull/88) [`1fd53a1`](https://github.com/lupinum-dev/ginko/commit/1fd53a1524d9b5301ebf444982ccb5654b714b37) Thanks [@Mat4m0](https://github.com/Mat4m0)! - Change the Studio to one way of saving on every site: Speichern never puts anything online, and Veröffentlichen does.
|
|
15
|
+
|
|
16
|
+
For editors: a new entry starts as a draft, and Speichern on an entry or a single page that is online (Startseite, Preise, Öffnungszeiten) keeps the change as unpublished changes. "Veröffentlichen …" puts it online now or at a time, "Verwerfen" goes back to the version on the website, and an entry of a collection can still go back to a draft. Today lists what waits, with a Veröffentlichen button. A task on Today (for example "Heute geschlossen") has Veröffentlichen as its main button, so it still goes online with one press; its Speichern keeps the change unpublished. Moves in the navigation tree still go online at once. An AI assistant connected to the site also saves without publishing, unless you ask it to publish.
|
|
17
|
+
|
|
18
|
+
For site developers: remove `drafts` from `collection()` and `docsCollection()`; it is no longer an option. Schemas released with `drafts: true` or `drafts: false` still load and release. A file collection that lists its entries newest first by a date now always leaves out entries dated after the build day (before, only with `drafts: true`).
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [[`1fd53a1`](https://github.com/lupinum-dev/ginko/commit/1fd53a1524d9b5301ebf444982ccb5654b714b37)]:
|
|
23
|
+
- @lupinum/ginko@0.13.0
|
|
24
|
+
|
|
3
25
|
## 0.12.0
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -20,8 +20,8 @@ interface ContentError {
|
|
|
20
20
|
declare function errorLine(e: ContentError): string;
|
|
21
21
|
interface ReadOptions {
|
|
22
22
|
/**
|
|
23
|
-
* `false` leaves out entries marked `draft: true`, and scheduled entries: in a collection
|
|
24
|
-
*
|
|
23
|
+
* `false` leaves out entries marked `draft: true`, and scheduled entries: in a collection that lists its entries
|
|
24
|
+
* newest first by a date (`order: { field, dir: 'desc' }`), an entry dated after `today`.
|
|
25
25
|
* Default `true` (dev shows both).
|
|
26
26
|
*/
|
|
27
27
|
drafts?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -20,8 +20,8 @@ interface ContentError {
|
|
|
20
20
|
declare function errorLine(e: ContentError): string;
|
|
21
21
|
interface ReadOptions {
|
|
22
22
|
/**
|
|
23
|
-
* `false` leaves out entries marked `draft: true`, and scheduled entries: in a collection
|
|
24
|
-
*
|
|
23
|
+
* `false` leaves out entries marked `draft: true`, and scheduled entries: in a collection that lists its entries
|
|
24
|
+
* newest first by a date (`order: { field, dir: 'desc' }`), an entry dated after `today`.
|
|
25
25
|
* Default `true` (dev shows both).
|
|
26
26
|
*/
|
|
27
27
|
drafts?: boolean;
|
package/dist/index.mjs
CHANGED
|
@@ -841,7 +841,7 @@ function slugKeyOf(brick) {
|
|
|
841
841
|
return brick.fields.slug?.type === "slug" ? "slug" : void 0;
|
|
842
842
|
}
|
|
843
843
|
function scheduleKeyOf(brick) {
|
|
844
|
-
if (brick.kind !== "collection" || brick.
|
|
844
|
+
if (brick.kind !== "collection" || brick.order === "manual" || brick.order.dir !== "desc") return void 0;
|
|
845
845
|
return brick.fields[brick.order.field]?.type === "date" ? brick.order.field : void 0;
|
|
846
846
|
}
|
|
847
847
|
function brickProblemsOf(brick) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lupinum/ginko-content",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Ginko bricks from Markdown files in the site's repo. Installed, not imported: the Ginko module loads it.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"shiki": "^4.3.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@lupinum/ginko": "0.
|
|
39
|
+
"@lupinum/ginko": "0.14.0",
|
|
40
40
|
"sharp": "0.35.5",
|
|
41
41
|
"unbuild": "3.6.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@lupinum/ginko": "^0.
|
|
44
|
+
"@lupinum/ginko": "^0.14.0",
|
|
45
45
|
"sharp": "^0.33.0 || ^0.34.0 || ^0.35.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependenciesMeta": {
|