@humanspeak/svelte-json-view-lite 0.1.5 → 0.2.0

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.
package/README.md CHANGED
@@ -259,6 +259,7 @@ pnpm build # vite build + svelte-package + publint
259
259
 
260
260
  Part of the [Humanspeak](https://humanspeak.com) family of runes-native Svelte 5 packages:
261
261
 
262
+ <!-- prettier-ignore-start -->
262
263
  | Package | Description |
263
264
  | --- | --- |
264
265
  | [@humanspeak/svelte-markdown](https://markdown.svelte.page) | Runtime markdown renderer for Svelte |
@@ -271,6 +272,7 @@ Part of the [Humanspeak](https://humanspeak.com) family of runes-native Svelte 5
271
272
  | [@humanspeak/memory-cache](https://memory.svelte.page) | In-memory cache for TypeScript |
272
273
  | **[@humanspeak/svelte-json-view-lite](https://jsonview.svelte.page)** — _this package_ | JSON tree viewer for Svelte 5 |
273
274
  | [@humanspeak/svelte-scoped-props](https://scoped.svelte.page) | Scoped class props for Svelte |
275
+ <!-- prettier-ignore-end -->
274
276
 
275
277
  ## License
276
278
 
@@ -15,7 +15,9 @@
15
15
  live in a single punctuation span so the `.punctuation-base + .punctuation-base`
16
16
  adjacent-sibling margin rule isn't needed here.
17
17
  -->
18
- <div class={style.basicChildStyle} role="treeitem" aria-selected={false}>
18
+ <!-- Upstream parity: unselected treeitems omit aria-selected entirely. -->
19
+ <!-- svelte-ignore a11y_role_has_required_aria_props -->
20
+ <div class={style.basicChildStyle} role="treeitem">
19
21
  <!-- prettier-ignore -->
20
22
  {#if hasField}<span class={style.label}>{labelText}:</span>{/if}<span class={style.punctuation}
21
23
  >{openBracket}{closeBracket}{lastElement ? '' : ','}</span
@@ -133,12 +133,9 @@
133
133
  {#if count === 0}
134
134
  <EmptyObject {field} {openBracket} {closeBracket} {lastElement} {style} />
135
135
  {:else}
136
- <div
137
- class={style.basicChildStyle}
138
- role="treeitem"
139
- aria-expanded={expanded}
140
- aria-selected={false}
141
- >
136
+ <!-- Upstream parity: unselected treeitems omit aria-selected entirely. -->
137
+ <!-- svelte-ignore a11y_role_has_required_aria_props -->
138
+ <div class={style.basicChildStyle} role="treeitem" aria-expanded={expanded}>
142
139
  <!--
143
140
  The entire inline sequence inside a row lives on a single
144
141
  prettier-ignored line because Svelte preserves template whitespace
@@ -112,7 +112,9 @@
112
112
  whitespace natively; we hand-collapse it. Per-type snippet branches key
113
113
  off `kind` rather than re-running predicates.
114
114
  -->
115
- <div class={style.basicChildStyle} role="treeitem" aria-selected={false}>
115
+ <!-- Upstream parity: unselected treeitems omit aria-selected entirely. -->
116
+ <!-- svelte-ignore a11y_role_has_required_aria_props -->
117
+ <div class={style.basicChildStyle} role="treeitem">
116
118
  <!-- prettier-ignore -->
117
119
  {#if hasField}{#if snippets.label}{@render snippets.label({ field: field ?? '', level })}{:else}<span class={style.label}>{labelText}:</span>{/if}{/if}{#if activeSnippet && kind === 'null'}{@render snippets.null?.(
118
120
  { value: null, field, level }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humanspeak/svelte-json-view-lite",
3
- "version": "0.1.5",
3
+ "version": "0.2.0",
4
4
  "description": "Fast, tiny JSON tree viewer for Svelte 5 — port of react-json-view-lite with runes, SSR, snippet overrides, and zero runtime dependencies",
5
5
  "keywords": [
6
6
  "svelte",