create-sinter 0.15.0 → 0.16.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sinter",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "npm create sinter: a new app with sinter (JSON API bound to HTML) and temper (CSS for semantic HTML).",
5
5
  "license": "MIT",
6
6
  "author": "Tia Heinrich",
@@ -17,6 +17,9 @@ npm run dev
17
17
  - **Press "Fail next change", then tick a task.** The tick shows at once (`data-sn-optimistic`),
18
18
  the server refuses it, and the tick is taken back. The toast comes from `onError` in
19
19
  `src/sinter.config.ts`.
20
+ - **Add a task.** The demo server takes 300ms to answer. While it does, sinter marks the form
21
+ `aria-busy`, and temper dims it only after `--tm-busy-delay` (200ms), so a fast server shows
22
+ no busy state at all.
20
23
  - **Press N.** A key filter on `<body>` opens the dialog. The dialog itself needs no JavaScript:
21
24
  `command="show-modal"` is the browser's.
22
25
  - **Click the ring.** It is a component with a script (`src/components/task-chart.html` and
@@ -35,6 +35,7 @@
35
35
  </select>
36
36
  </div>
37
37
 
38
+ <!-- A busy line: temper gives it a spinner and shows it only after --tm-busy-delay (200ms). -->
38
39
  <p data-sn-show="$meta.tasks.loading && !tasks.length" aria-busy="true">Loading…</p>
39
40
  <p data-muted data-sn-show="$meta.tasks.loadedAt && !shown.length">No tasks here.</p>
40
41
 
@@ -9,10 +9,11 @@
9
9
  "check": "sinter check && temper check ."
10
10
  },
11
11
  "dependencies": {
12
- "@tiaforge-ui/sinter": "^0.15.0",
13
- "@tiaforge-ui/temper": "^0.1.9"
12
+ "@tiaforge-ui/sinter": "^0.16.0",
13
+ "@tiaforge-ui/temper": "^0.3.0"
14
14
  },
15
15
  "devDependencies": {
16
+ "@tiaforge-ui/temper-inspect": "^0.3.0",
16
17
  "typescript": "^7.0.2",
17
18
  "vite": "^8.3.5"
18
19
  }
@@ -9,8 +9,9 @@ export default defineConfig({
9
9
  plugins: [
10
10
  // Compiles the data-sn-* pages; typecheck: every expression is checked against src/sinter.types.ts in `vite build`.
11
11
  sinter({ typecheck: true }),
12
- // temper check on the markup: a wrong data-* value fails the build, the dev server warns.
13
- temper(),
12
+ // temper check on the markup: a wrong data-* value fails the build, the dev server warns. `inspect` also audits
13
+ // the rendered page in dev (overflow, contrast, clipped text) and prints findings in the terminal.
14
+ temper({ inspect: true }),
14
15
  // The demo backend (server/api.js). Replace it with your API, e.g. server: { proxy: { '/api': 'http://localhost:3000' } }.
15
16
  api(),
16
17
  ],