@axium/client 0.4.1 → 0.4.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.
@@ -94,7 +94,7 @@
94
94
  {:else if zIs(schema, 'literal')}
95
95
  <select bind:this={input} {id} {onchange} required={!optional}>
96
96
  {#each schema.values as value}
97
- <option {value}>{value}</option>
97
+ <option {value} selected={getByString(preferences, path) === value}>{value}</option>
98
98
  {/each}
99
99
  </select>
100
100
  {:else if zIs(schema, 'template_literal')}
@@ -134,8 +134,8 @@
134
134
  </div>
135
135
  {:else if zIs(schema, 'enum')}
136
136
  <select bind:this={input} {id} {onchange} required={!optional}>
137
- {#each Object.entries(schema.enum) as [key, val]}
138
- <option value={val}>{key}</option>
137
+ {#each Object.entries(schema.enum) as [key, value]}
138
+ <option value selected={getByString(preferences, path) === value}>{key}</option>
139
139
  {/each}
140
140
  </select>
141
141
  {:else}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/client",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "author": "James Prevett <jp@jamespre.dev>",
5
5
  "funding": {
6
6
  "type": "individual",