kenspeckle 0.1.1 → 0.1.2

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/README.md +25 -11
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -55,11 +55,31 @@ npm install kenspeckle
55
55
 
56
56
  Peer dependencies: `svelte >= 5.40`, plus `@sveltejs/kit >= 2` for the `kenspeckle/kit` subpath (optional). SSR-safe — value factories return inert defaults on the server.
57
57
 
58
- ## What's inside
58
+ ## What's shipped
59
+
60
+ Five exports, two entry points. `kenspeckle` is Svelte-only; `kenspeckle/kit` adds the SvelteKit
61
+ pieces, so `$app/navigation` never enters the main entry.
62
+
63
+ | export | form | lineage |
64
+ | ----------------------- | -------------------------------------- | -------------------------- |
65
+ | `FiniteStateMachine` | class, with typed reactive `context` | runed `FiniteStateMachine` |
66
+ | `copy()` / `copyText()` | attachment + helper | svelte-put `copy` |
67
+ | `viewTransition()` | function; navigation form under `/kit` | new |
68
+ | `viewTransitionName()` | attachment + helper, `/kit` | new |
69
+ | `retreat()` | function, returns a disposer, `/kit` | new |
70
+
71
+ `FiniteStateMachine` gains a typed, `$state`-backed `context` object visible to lifecycle hooks and
72
+ guards — the sidecar-data mechanism every real FSM grows, built in.
73
+
74
+ View transitions are what the package is for so far; they get their own section below.
75
+
76
+ ## Planned
77
+
78
+ The rest of the curation. These names are the design, not an API you can call — nothing below has
79
+ shipped.
59
80
 
60
81
  | export | form | lineage |
61
82
  | ------------------------------------------------------------ | ------------------------------------------ | -------------------------------------------------------- |
62
- | `FiniteStateMachine` | class, with typed reactive `context` | runed `FiniteStateMachine` |
63
83
  | `StateHistory` | class | runed `StateHistory` |
64
84
  | `mounted()` | value factory | runed `IsMounted` |
65
85
  | `idle()` | value factory | runed `IsIdle` |
@@ -74,13 +94,9 @@ Peer dependencies: `svelte >= 5.40`, plus `@sveltejs/kit >= 2` for the `kenspeck
74
94
  | `intersected()` | attachment + helper | runed `useIntersectionObserver` · svelte-put `intersect` |
75
95
  | `resized()` | attachment + helper | runed `useResizeObserver` · svelte-put `resize` |
76
96
  | `mutated()` | attachment + helper | runed `useMutationObserver` |
77
- | `copy()` | attachment + helper | svelte-put `copy` |
78
97
  | `shortcut()` | attachment + helper | svelte-put `shortcut` |
79
98
  | `lockScroll` | attachment ≡ helper, stacked lock counting | new |
80
99
  | `dragScroll()` | attachment | svelte-put `dragscroll` |
81
- | `viewTransition()` | function; navigation form under `/kit` | new |
82
- | `viewTransitionName()` | attachment + helper | new |
83
- | `retreat()` | function, returns a disposer | new |
84
100
  | `debounced()` / `throttled()` | value factory | runed `Debounced` / `Throttled` |
85
101
  | `debounce()` / `throttle()` | function wrapper | runed `useDebounce` / `useThrottle` |
86
102
  | `previous()` | value factory | runed `Previous` |
@@ -94,11 +110,9 @@ Peer dependencies: `svelte >= 5.40`, plus `@sveltejs/kit >= 2` for the `kenspeck
94
110
  | `searchParams()` + helpers | value factory | runed `useSearchParams` |
95
111
  | `watch` / `watchOnce` / `extract` / `onCleanup` / `boolAttr` | unchanged | runed |
96
112
 
97
- Dropped, deliberately: runed's `Context` — Svelte ≥ 5.40's `createContext` returns a typed `[get, set]` pair and covers it. runed's `resource` waits in the backlog — SvelteKit remote functions cover the server-data case; it returns only if a real client-only async need shows up.
98
-
99
- `FiniteStateMachine` gains a typed, `$state`-backed `context` object visible to lifecycle hooks and guards — the sidecar-data mechanism every real FSM grows, built in.
100
-
101
- View transitions ship in two tiers. `viewTransition(update)` animates a state change within a route; the SvelteKit navigation form, plus `viewTransitionName` and `retreat`, come from the `kenspeckle/kit` subpath — separate so `$app/navigation` never enters the main entry. Both tiers fall back cleanly: with no `document.startViewTransition`, or under `prefers-reduced-motion`, the update still runs, untransitioned.
113
+ Dropped, deliberately: runed's `Context` — Svelte ≥ 5.40's `createContext` returns a typed
114
+ `[get, set]` pair and covers it. runed's `resource` waits in the backlog — SvelteKit remote functions
115
+ cover the server-data case; it returns only if a real client-only async need shows up.
102
116
 
103
117
  ## View transitions
104
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenspeckle",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Svelte 5 utilities under one naming convention: attachments first-class, view transitions, and a state machine with context.",
5
5
  "license": "MIT",
6
6
  "author": "Brandon Pittman <brandon@brandonpittman.com>",