@quillmark/svelte 0.3.2 → 0.4.1

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.
@@ -57,9 +57,7 @@ export function controlKind(f) {
57
57
  case 'enum':
58
58
  return 'enum';
59
59
  case 'string':
60
- // Either spelling of a closed domain (the `enum` modifier or `values`)
61
- // promotes a string to a select; a bare string is a text input.
62
- return enumValues(f) ? 'enum' : 'text';
60
+ return 'text';
63
61
  case 'number':
64
62
  case 'integer':
65
63
  return 'number';
@@ -76,10 +74,6 @@ export function controlKind(f) {
76
74
  return 'text';
77
75
  }
78
76
  }
79
- /** The closed value domain of an enum/enum-string field, or undefined. */
80
- export function enumValues(f) {
81
- return f.enum ?? f.values;
82
- }
83
77
  /** `foo_bar` → `Foo bar`: the label fallback when a field declares no `ui.title`. */
84
78
  export function humanize(name) {
85
79
  const spaced = name.replace(/_/g, ' ').trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillmark/svelte",
3
- "version": "0.3.2",
3
+ "version": "0.4.1",
4
4
  "description": "Editor, live-preview and source surfaces over a Quillmark WASM session.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -66,7 +66,7 @@
66
66
  "check": "svelte-check --tsconfig ./tsconfig.json"
67
67
  },
68
68
  "peerDependencies": {
69
- "@quillmark/wasm": ">=0.103.0-0",
69
+ "@quillmark/wasm": ">=0.104.0-0",
70
70
  "svelte": "^5.0.0"
71
71
  },
72
72
  "dependencies": {