@markii/stdlib 0.1.0 → 0.2.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.
Files changed (2) hide show
  1. package/dist/contracts.js +11 -8
  2. package/package.json +1 -1
package/dist/contracts.js CHANGED
@@ -209,18 +209,21 @@ export const STANDARD_COMPONENTS = {
209
209
  required: false,
210
210
  description: 'Comma-separated numbers for static authoring, e.g. `values="1,3,2,5"`. Ignored in favor of a bound `data=` array when both are present. Non-numeric entries are dropped.',
211
211
  },
212
- height: {
213
- type: 'string',
214
- required: false,
215
- description: 'SVG viewport height in pixels, as a numeric string. Defaults to a sane built-in size; non-numeric/non-positive input falls back to the default.',
216
- },
217
- width: {
212
+ },
213
+ description: 'A leaf directive rendering a minimal hand-rolled inline SVG chart, e.g. `::chart{kind=line values="1,3,2,5"}`. Sizes to its container — use DESIGN.md §4\'s `width`/`align` layout presets to control its footprint, not a pixel attribute. Data binding (§8): `data=name` resolves against the value store — expects an array of numbers (typically a Lua script returning a table), or an array of `{value}` objects. Non-finite/non-numeric entries are filtered out and the point count is capped; an empty or all-invalid series renders a small neutral empty state rather than a broken chart. Never throws, and never places unescaped text into the emitted SVG markup.',
214
+ },
215
+ row: {
216
+ name: 'row',
217
+ kind: 'container',
218
+ attributes: {
219
+ cols: {
218
220
  type: 'string',
219
221
  required: false,
220
- description: 'SVG viewport width in pixels, as a numeric string. Defaults to a sane built-in size; non-numeric/non-positive input falls back to the default.',
222
+ enum: ['2', '3', '4'],
223
+ description: 'Fixed column count for the row. Defaults to auto-fit (a responsive number of equal-width columns) when absent or not one of the allowed values — an invalid `cols` is never an error.',
221
224
  },
222
225
  },
223
- description: 'A leaf directive rendering a minimal hand-rolled inline SVG chart, e.g. `::chart{kind=line values="1,3,2,5"}`. Data binding (§8): `data=name` resolves against the value store — expects an array of numbers (typically a Lua script returning a table), or an array of `{value}` objects. Non-finite/non-numeric entries are filtered out and the point count is capped; an empty or all-invalid series renders a small neutral empty state rather than a broken chart. Never throws, and never places unescaped text into the emitted SVG markup.',
226
+ description: "DESIGN.md §4's one layout container, e.g. `:::row{cols=3} ... :::`. Its block children become equal-width cells that wrap responsively and stack on narrow viewports — and simply stack in a plain markdown viewer. No spans, no per-cell sizing, no other knobs.",
224
227
  },
225
228
  };
226
229
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markii/stdlib",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Neutral, framework-agnostic standard component contracts for Mark (.mk.md) — the kind/attribute-schema seam every renderer (e.g. @markii/react) implements against. No React, zero dependencies.",
5
5
  "keywords": [
6
6
  "markdown",