create-kerf-component 5.0.0-beta.131 → 5.0.0-beta.133

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/README.md CHANGED
@@ -68,11 +68,6 @@ check:styles` runs `kerf-ui-analyze` (from the `@kerfjs/ui` dev dependency)
68
68
  string/template/regular-expression literals cannot masquerade as public
69
69
  exports. The scaffold already declares TypeScript; run `npm install` before
70
70
  invoking its copied local checker in a fresh offline directory.
71
- - **A structured prop schema**, `component-props.json`. `npm run props:generate`
72
- builds the package, then runs `kerf-ui-props` (from `@kerfjs/ui`) over the
73
- built declarations, so Kerf UI view tools (the editor, `validateView`,
74
- `kerf-ui-view`) can use the package's components. `npm run props:check` fails
75
- when the committed file is stale; `prepublishOnly` regenerates it.
76
71
  A component whose wiring helper writes runtime `data-*` state onto its DOM
77
72
  can declare it under `composition.wiring.stateAttributes` — each item is
78
73
  `{ name, on, helper, meaning }`, where `name` is a `data-*` name, `on` is the
@@ -107,8 +102,8 @@ check:styles` runs `kerf-ui-analyze` (from the `@kerfjs/ui` dev dependency)
107
102
  `composition.content`: `{ "interactive": [{ "kind": "root" }] }` when the
108
103
  control is its root, `"contains"` when it renders one inside, and
109
104
  `"whenProps": ["href"]` when only those props make it so; `exports` gives
110
- another JSX export its own rules. `@kerfjs/ui`'s view validator then reports
111
- a control placed in a `root` component's zones as `KUI-V014`. Omitted, the
105
+ another JSX export its own rules. `eslint-plugin-kerfjs`'s `ui-composition`
106
+ rule then reports a control placed inside a `root` component as `KUI-L205`. Omitted, the
112
107
  component's placements are unchecked.
113
108
  Each `publicExports` item names a `package.json#exports` subpath that maps to
114
109
  the `src/` file exporting it. A private, bundled application
@@ -36,27 +36,6 @@
36
36
  "items": {
37
37
  "$ref": "#/$defs/entry"
38
38
  }
39
- },
40
- "libraryPreviewModule": {
41
- "type": "string",
42
- "minLength": 1,
43
- "description": "Optional editor-only ESM preview registration module, relative to this catalog or a resolvable package export. It is imported by the Vite editor host, never evaluated as JSON."
44
- },
45
- "libraryPreviews": {
46
- "type": "object",
47
- "additionalProperties": {
48
- "type": "object",
49
- "additionalProperties": false,
50
- "properties": {
51
- "props": {
52
- "type": "object",
53
- "additionalProperties": {
54
- "$ref": "#/$defs/libraryPreviewJson"
55
- }
56
- }
57
- }
58
- },
59
- "description": "Library-only literal sample props, keyed by the complete component key. An empty entry restores automatic rendering. Values are literal JSON; no view bindings, CSS/icon expressions or JavaScript are evaluated."
60
39
  }
61
40
  },
62
41
  "additionalProperties": false,
@@ -290,16 +269,6 @@
290
269
  "content": {
291
270
  "$ref": "#/$defs/interactiveContent"
292
271
  },
293
- "configTypes": {
294
- "description": "Prop-value types (definition names in this package's component-props.json) that another component renders as this one, such as a NavStack view's toolbar config. A content field inside such a value is placed in this component, so this component is its parent for placement contracts. `TypeName.field` names one field of a type whose other fields render elsewhere.",
295
- "type": "array",
296
- "minItems": 1,
297
- "items": {
298
- "type": "string",
299
- "pattern": "^[A-Z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*)?$"
300
- },
301
- "uniqueItems": true
302
- },
303
272
  "rendersAs": {
304
273
  "description": "For a wrapper component: the cataloged roots it renders (package-qualified keys), any one of them or nothing. Composition checks treat an element of this entry as each declared root: a zone accepts it only if it accepts every root, and each root's parent contract applies to where it is placed.",
305
274
  "type": "array",
@@ -716,34 +685,6 @@
716
685
  }
717
686
  },
718
687
  "additionalProperties": false
719
- },
720
- "libraryPreviewJson": {
721
- "anyOf": [
722
- {
723
- "type": "null"
724
- },
725
- {
726
- "type": "boolean"
727
- },
728
- {
729
- "type": "number"
730
- },
731
- {
732
- "type": "string"
733
- },
734
- {
735
- "type": "array",
736
- "items": {
737
- "$ref": "#/$defs/libraryPreviewJson"
738
- }
739
- },
740
- {
741
- "type": "object",
742
- "additionalProperties": {
743
- "$ref": "#/$defs/libraryPreviewJson"
744
- }
745
- }
746
- ]
747
688
  }
748
689
  }
749
690
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-kerf-component",
3
- "version": "5.0.0-beta.131",
3
+ "version": "5.0.0-beta.133",
4
4
  "description": "Scaffold a publishable kerf component package that already follows kerf's hard packaging rules.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -94,21 +94,8 @@ so run `npm install` before the first local catalog command.
94
94
  ```bash
95
95
  npm run catalog:generate # write component-composition.json
96
96
  npm run catalog:check # no writes; fail when metadata, source, or output drift
97
- npm run props:generate # build, then write component-props.json
98
- npm run props:check # fail when component-props.json is stale
99
97
  ```
100
98
 
101
- `component-props.json` is the structured prop schema that Kerf UI view
102
- tools read: the editor's inspector, `validateView`, and the `kerf-ui-view`
103
- generator. It is generated from the built declarations by `kerf-ui-props`,
104
- which ships with `@kerfjs/ui`, and joined to the composition catalog by
105
- component key. Each component's props are listed with their types, required
106
- flags, documented defaults, zones, and slots. Add inspector hints (groups,
107
- order, controls) in an overlay file named by
108
- `package.json#kerfComponentCatalog.propsOverlay`. Run `props:generate` after
109
- changing a component's props, then commit the file. `prepublishOnly` regenerates
110
- it from the fresh build, so the published copy is always current.
111
-
112
99
  The generated catalog ships with the package. AI tools join each entry to
113
100
  Kerf's catalog by its `package:id` key, search this package first for
114
101
  application-specific concepts, and retain both packages' identities when
@@ -19,7 +19,6 @@
19
19
  "dist",
20
20
  "src/counter.css",
21
21
  "component-composition.json",
22
- "component-props.json",
23
22
  "kerf.components.json",
24
23
  "README.md",
25
24
  "LICENSE"
@@ -28,23 +27,20 @@
28
27
  "build": "tsup",
29
28
  "catalog:generate": "node scripts/kerf-component-catalog.mjs --write",
30
29
  "catalog:check": "node scripts/kerf-component-catalog.mjs --check",
31
- "props:generate": "npm run build && kerf-ui-props --write",
32
- "props:check": "kerf-ui-props --check",
33
30
  "check:styles": "kerf-ui-analyze --root . src",
34
31
  "typecheck": "tsc --noEmit",
35
- "prepublishOnly": "npm run catalog:check && npm run check:styles && npm run build && kerf-ui-props --write"
32
+ "prepublishOnly": "npm run catalog:check && npm run check:styles && npm run build"
36
33
  },
37
34
  "kerfComponentCatalog": {
38
35
  "source": "./kerf.components.json",
39
- "output": "./component-composition.json",
40
- "propsOutput": "./component-props.json"
36
+ "output": "./component-composition.json"
41
37
  },
42
38
  "peerDependencies": {
43
39
  "kerfjs": "^5.0.0-0"
44
40
  },
45
41
  "devDependencies": {
46
- "kerfjs": "^5.0.0-beta.131",
47
- "@kerfjs/ui": "^5.0.0-beta.131",
42
+ "kerfjs": "^5.0.0-beta.133",
43
+ "@kerfjs/ui": "^5.0.0-beta.133",
48
44
  "tsup": "^8",
49
45
  "typescript": "^5 || ^6"
50
46
  }