fix: clear remaining `npm run check` errors (12 → 0)

Three groups of errors blocking the global typecheck:

A. Announce morfo used invalid family/intent vocabulary
   - `absent-clear` event used `family: 'absent'` and `intent: 'absent'`,
     neither valid in current MorfoEventSemantic schema
   - Renamed to `commit-reset` (family: commit, verb: reset, intent: neutral)
     matching SearchField's clear-reset pattern
   - Updated demo copy to reference the new event name
   - Cascade-resolved 4 errors (morfo + soma provider + demo + active-uix test)

B. Tree wrappers stripped bindable props
   - eidos `<TreeGrid>` didn't expose `expanded`/`value` as `$bindable`;
     they leaked through `...rest` and Svelte rejected `bind:expanded`
   - Same issue for `<TreeView>` with `expandedValue`/`selectedValue`
   - Now declared explicitly + forwarded via `bind:` to soma's Provider

C. Virtual containers passed wide `style` to native markup
   - `style` was typed `string | Record<string, unknown> | null | undefined`
     but the markup `<div style={...}>` only accepts string
   - Filtered with `typeof style === 'string'` derived guard before render

svelte-check result: 5076 files, 0 errors, 23 warnings (no-op warnings
in navigation-menu `href="#"` and table `state_referenced_locally`).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
active-uix
dev 5 months ago
parent ee54029b1b
commit f8897d92d6

@ -25,6 +25,8 @@
maxHeight,
stableRows,
style,
expanded = $bindable<string[]>([]),
value = $bindable<string[]>([]),
children: bodyContent,
...rest
}: TreeGridProps = $props();
@ -72,7 +74,7 @@
data-stable-rows={stableRows && stableRows > 0 && !maxHeight ? '' : undefined}
style={composedStyle}
>
<TreeGrid.Provider {...rest}>
<TreeGrid.Provider {...rest} bind:expanded bind:value>
{#snippet children(snippetProps)}
{@render bodyContent?.(snippetProps)}
{/snippet}

@ -24,6 +24,8 @@
maxHeight,
dir,
style,
expandedValue = $bindable<string[]>([]),
selectedValue = $bindable<string[]>([]),
children: bodyContent,
...rest
}: TreeViewProps = $props();
@ -67,7 +69,7 @@
{dir}
style={composedStyle}
>
<TreeView.Provider {...rest} {dir}>
<TreeView.Provider {...rest} {dir} bind:expandedValue bind:selectedValue>
{#if bodyContent}{@render bodyContent()}{/if}
</TreeView.Provider>
</div>

@ -18,6 +18,7 @@
const eidos = ActiveEidos.require();
const resolvedSize = $derived(eidos.resolve(size, 'md'));
const styleString = $derived(typeof style === 'string' ? style : undefined);
</script>
<div
@ -26,7 +27,7 @@
data-variant={variant}
data-color={color}
data-block={block ? '' : undefined}
{style}
style={styleString}
>
<VirtualGrid.Provider {...rest}>
{#snippet children(snippetProps)}

@ -19,6 +19,7 @@
const eidos = ActiveEidos.require();
const resolvedSize = $derived(eidos.resolve(size, 'md'));
const styleString = $derived(typeof style === 'string' ? style : undefined);
</script>
<div
@ -27,7 +28,7 @@
data-variant={variant}
data-color={color}
data-block={block ? '' : undefined}
{style}
style={styleString}
>
<VirtualList.Provider {...rest}>
{#snippet children(snippetProps)}

@ -33,12 +33,12 @@ export const announceMorfo = {
},
{
// All internal live regions cleared.
name: 'absent-clear',
name: 'commit-reset',
semantic: {
family: 'absent',
verb: 'cancel',
family: 'commit',
verb: 'reset',
target: v.partRef('provider'),
intent: 'absent',
intent: 'neutral',
sequence: 'post'
}
}

@ -444,7 +444,7 @@
<span data-uix-layer-badge="sema">sema</span>
· events
</h2>
<p data-uix-section-desc>Announce raises <code>commit-announce-polite</code> / <code>commit-announce-assertive</code> on every message post, and <code>absent-clear</code> when regions are wiped. Use Play to replay an event against the Provider.</p>
<p data-uix-section-desc>Announce raises <code>commit-announce-polite</code> / <code>commit-announce-assertive</code> on every message post, and <code>commit-reset</code> when regions are wiped. Use Play to replay an event against the Provider.</p>
<div data-uix-table-wrap>
<table data-uix-table>
<thead><tr><th>Name</th><th>Family</th><th>Verb</th><th>Sequence</th><th>Intent</th><th>Play</th></tr></thead>

Loading…
Cancel
Save

Powered by TurnKey Linux.