@immediately-run/grove 0.1.3 → 0.1.4

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/llms.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  # @immediately-run/grove — the viewer kit for directory-as-content wikis
2
2
 
3
- > The Grove viewer: a kit of React components, layouts and themes for building immediately.run wikis. Composable as a fork, a dispatch target, or a pinned library. (v0.1.3)
3
+ > The Grove viewer: a kit of React components, layouts and themes for building immediately.run wikis. Composable as a fork, a dispatch target, or a pinned library. (v0.1.4)
4
4
 
5
5
  Grove is NOT a wiki engine: routing, MDX compilation, the frontmatter index, link
6
6
  spaces and heading anchors live in the sandbox + `@immediately-run/sdk`. What this
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immediately-run/grove",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "main": "src/main.tsx",
6
6
  "immediately.run": {
@@ -25,13 +25,13 @@
25
25
  "scripts": {
26
26
  "dev": "vite",
27
27
  "build": "tsc -b && vite build",
28
- "lint": "eslint .",
28
+ "lint": "eslint . --max-warnings 0",
29
29
  "test": "vitest run",
30
30
  "preview": "vite preview",
31
31
  "verify": "npm run check:llms && npm run check:engine-api:selftest && npm run check:engine-api && npm run check:manifest && npm run check:deps && npm run check:published && npm run check:theme-contrast && npm run check:theme-token-only && npm run lint && npm run build && npm run test",
32
32
  "check:theme-contrast": "node scripts/check-theme-contrast.mjs --self-test && node scripts/check-theme-contrast.mjs",
33
33
  "check:theme-token-only": "node scripts/check-theme-token-only.mjs --self-test && node scripts/check-theme-token-only.mjs",
34
- "check:manifest": "node scripts/check-manifest.mjs",
34
+ "check:manifest": "node scripts/check-manifest.mjs --self-test && node scripts/check-manifest.mjs",
35
35
  "check:deps": "node scripts/check-app-dependencies.mjs --self-test && node scripts/check-app-dependencies.mjs",
36
36
  "check:published": "node scripts/check-published-parity.mjs --self-test && node scripts/check-published-parity.mjs --offline-ok",
37
37
  "check:engine-api": "node scripts/check-engine-api.mjs",
@@ -58,6 +58,36 @@
58
58
  "passThrough": { "type": "boolean", "description": "Whether unknown keys are allowed (they are carried, unread). False makes the vocabulary closed." }
59
59
  }
60
60
  },
61
+ "themes": {
62
+ "type": "object",
63
+ "description": "The theme catalogue (R3-310, bucket-independent): every shipped look, keyed by its `theme:` id. The gallery enumerates THIS, so adding a theme adds a row with no edit to any entry.",
64
+ "additionalProperties": {
65
+ "type": "object",
66
+ "required": ["label", "preferred", "ships", "summary"],
67
+ "additionalProperties": false,
68
+ "properties": {
69
+ "label": { "type": "string", "description": "The reader-facing name in the theme menu." },
70
+ "preferred": { "enum": ["light", "dark"], "description": "The polarity the theme opens in when the reader and host have both said nothing." },
71
+ "ships": { "type": "boolean", "description": "Whether the theme is selectable today." },
72
+ "summary": { "type": "string" }
73
+ }
74
+ }
75
+ },
76
+ "pageVariants": {
77
+ "type": "object",
78
+ "description": "The page-variant catalogue (R3-309, bucket B): a frontmatter key on one entry — the page, not the chrome. Behaviour lives in CSS selected by the emitted data attribute; an undeclared value falls back rather than rendering unstyled.",
79
+ "additionalProperties": {
80
+ "type": "object",
81
+ "required": ["key", "value", "ships", "summary"],
82
+ "additionalProperties": false,
83
+ "properties": {
84
+ "key": { "type": "string", "description": "The frontmatter key (`layout`, `frame`)." },
85
+ "value": { "type": "string", "description": "The value that selects this variant." },
86
+ "ships": { "type": "boolean", "description": "Whether the variant has shipped CSS today." },
87
+ "summary": { "type": "string" }
88
+ }
89
+ }
90
+ },
61
91
  "layouts": {
62
92
  "type": "object",
63
93
  "description": "The layout-starters catalogue (R3-309, bucket A): `_layout.mdx` starters under `content/_layouts/` a contributor or agent copies from. Keyed by starter id (= filename); `layoutRole` is the declared kind the entry and the file must agree on — the field existed in the sample layouts for a year with nothing reading it, and the catalogue is what gives it a job.",