helwasm: store-on-correct, store button reflects existence, use stored spec

- new read-only export hel_entry(name): the entry's canonical stored form, or ""
- Mark correct now also stores the name (keeps the entry); unmark keeps the stored
  name and just drops the hash (wraps add/rm for an ephemeral entry so the right
  hash is removed)
- Store button shows "Stored ✓" (disabled, ocean outline) when the name is already
  in the catalog, "Store" otherwise
- when a typed name already exists, the field adopts the full stored spec on blur
  (real mode/seq/date/parent) instead of a default-extended parse
This commit is contained in:
Oleksandr Kozachuk
2026-06-09 23:12:48 +02:00
parent c60e6c8ce2
commit 0dd173f113
7 changed files with 86 additions and 14 deletions
+2 -1
View File
@@ -1,11 +1,12 @@
/* tslint:disable */
/* eslint-disable */
export const memory: WebAssembly.Memory;
export const hel_init: () => void;
export const hel_command: (a: number, b: number) => [number, number];
export const hel_entry: (a: number, b: number) => [number, number];
export const hel_load_script: (a: number, b: number) => [number, number];
export const hel_parse: (a: number, b: number) => [number, number];
export const hel_parse_name: (a: number, b: number) => [number, number];
export const hel_init: () => void;
export const __wbindgen_free: (a: number, b: number, c: number) => void;
export const __wbindgen_malloc: (a: number, b: number) => number;
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;