@screenreader-speech-capture/bridge 0.3.0 → 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.
Files changed (160) hide show
  1. package/dist/cli.mjs +4965 -4771
  2. package/dist/ui/adapter-node.js +1 -1
  3. package/dist/ui/client/ui/_app/immutable/assets/0.C_wdfB9t.css +1 -0
  4. package/dist/ui/client/ui/_app/immutable/assets/0.C_wdfB9t.css.br +0 -0
  5. package/dist/ui/client/ui/_app/immutable/assets/0.C_wdfB9t.css.gz +0 -0
  6. package/dist/ui/client/ui/_app/immutable/assets/2.GfBw0twm.css +1 -0
  7. package/dist/ui/client/ui/_app/immutable/assets/2.GfBw0twm.css.br +0 -0
  8. package/dist/ui/client/ui/_app/immutable/assets/2.GfBw0twm.css.gz +0 -0
  9. package/dist/ui/client/ui/_app/immutable/assets/3.C6Oee9hv.css +1 -0
  10. package/dist/ui/client/ui/_app/immutable/assets/3.C6Oee9hv.css.br +0 -0
  11. package/dist/ui/client/ui/_app/immutable/assets/3.C6Oee9hv.css.gz +0 -0
  12. package/dist/ui/client/ui/_app/immutable/assets/4.DwCEZqGT.css +1 -0
  13. package/dist/ui/client/ui/_app/immutable/assets/4.DwCEZqGT.css.br +0 -0
  14. package/dist/ui/client/ui/_app/immutable/assets/4.DwCEZqGT.css.gz +0 -0
  15. package/dist/ui/client/ui/_app/immutable/assets/5.DVcIZgbI.css +1 -0
  16. package/dist/ui/client/ui/_app/immutable/assets/5.DVcIZgbI.css.br +0 -0
  17. package/dist/ui/client/ui/_app/immutable/assets/5.DVcIZgbI.css.gz +0 -0
  18. package/dist/ui/client/ui/_app/immutable/assets/6.CgsZgeqQ.css +1 -0
  19. package/dist/ui/client/ui/_app/immutable/assets/6.CgsZgeqQ.css.br +0 -0
  20. package/dist/ui/client/ui/_app/immutable/assets/6.CgsZgeqQ.css.gz +0 -0
  21. package/dist/ui/client/ui/_app/immutable/assets/ActionDialog.DaaxszBK.css +1 -0
  22. package/dist/ui/client/ui/_app/immutable/assets/ActionDialog.DaaxszBK.css.br +0 -0
  23. package/dist/ui/client/ui/_app/immutable/assets/ActionDialog.DaaxszBK.css.gz +0 -0
  24. package/dist/ui/client/ui/_app/immutable/assets/Pane.DsGQzOhZ.css +1 -0
  25. package/dist/ui/client/ui/_app/immutable/assets/Pane.DsGQzOhZ.css.br +4 -0
  26. package/dist/ui/client/ui/_app/immutable/assets/Pane.DsGQzOhZ.css.gz +0 -0
  27. package/dist/ui/client/ui/_app/immutable/chunks/{Cb63XE4v.js → DbGQpjFg.js} +1 -1
  28. package/dist/ui/client/ui/_app/immutable/chunks/DbGQpjFg.js.br +0 -0
  29. package/dist/ui/client/ui/_app/immutable/chunks/DbGQpjFg.js.gz +0 -0
  30. package/dist/ui/client/ui/_app/immutable/chunks/{OAsMjdHF.js → cBM7TtzK.js} +13 -13
  31. package/dist/ui/client/ui/_app/immutable/chunks/cBM7TtzK.js.br +0 -0
  32. package/dist/ui/client/ui/_app/immutable/chunks/cBM7TtzK.js.gz +0 -0
  33. package/dist/ui/client/ui/_app/immutable/entry/app.sg1O-aaT.js +2 -0
  34. package/dist/ui/client/ui/_app/immutable/entry/app.sg1O-aaT.js.br +0 -0
  35. package/dist/ui/client/ui/_app/immutable/entry/app.sg1O-aaT.js.gz +0 -0
  36. package/dist/ui/client/ui/_app/immutable/nodes/0.ChTQinKu.js +1 -0
  37. package/dist/ui/client/ui/_app/immutable/nodes/0.ChTQinKu.js.br +0 -0
  38. package/dist/ui/client/ui/_app/immutable/nodes/0.ChTQinKu.js.gz +0 -0
  39. package/dist/ui/client/ui/_app/immutable/nodes/{2.4VpydhMh.js → 2.Bmw_bms2.js} +1 -1
  40. package/dist/ui/client/ui/_app/immutable/nodes/2.Bmw_bms2.js.br +0 -0
  41. package/dist/ui/client/ui/_app/immutable/nodes/2.Bmw_bms2.js.gz +0 -0
  42. package/dist/ui/client/ui/_app/immutable/nodes/3.D1KLwmTV.js +5 -0
  43. package/dist/ui/client/ui/_app/immutable/nodes/3.D1KLwmTV.js.br +0 -0
  44. package/dist/ui/client/ui/_app/immutable/nodes/3.D1KLwmTV.js.gz +0 -0
  45. package/dist/ui/client/ui/_app/immutable/nodes/{4.B9Ke6ZBV.js → 4.DxLsBVbm.js} +4 -4
  46. package/dist/ui/client/ui/_app/immutable/nodes/4.DxLsBVbm.js.br +0 -0
  47. package/dist/ui/client/ui/_app/immutable/nodes/4.DxLsBVbm.js.gz +0 -0
  48. package/dist/ui/client/ui/_app/immutable/nodes/5.mJKxiKw-.js +6 -0
  49. package/dist/ui/client/ui/_app/immutable/nodes/5.mJKxiKw-.js.br +0 -0
  50. package/dist/ui/client/ui/_app/immutable/nodes/5.mJKxiKw-.js.gz +0 -0
  51. package/dist/ui/client/ui/_app/immutable/nodes/6.BH9jsHQr.js +7 -0
  52. package/dist/ui/client/ui/_app/immutable/nodes/6.BH9jsHQr.js.br +0 -0
  53. package/dist/ui/client/ui/_app/immutable/nodes/6.BH9jsHQr.js.gz +0 -0
  54. package/dist/ui/client/ui/_app/version.json +1 -1
  55. package/dist/ui/client/ui/_app/version.json.br +0 -0
  56. package/dist/ui/client/ui/_app/version.json.gz +0 -0
  57. package/dist/ui/server/.vite/manifest.json +37 -28
  58. package/dist/ui/server/_app/immutable/assets/ActionDialog.DaaxszBK.css +1 -0
  59. package/dist/ui/server/_app/immutable/assets/Pane.DsGQzOhZ.css +1 -0
  60. package/dist/ui/server/_app/immutable/assets/_layout.C_wdfB9t.css +1 -0
  61. package/dist/ui/server/_app/immutable/assets/_layout.GfBw0twm.css +1 -0
  62. package/dist/ui/server/_app/immutable/assets/_page.C6Oee9hv.css +1 -0
  63. package/dist/ui/server/_app/immutable/assets/_page.CgsZgeqQ.css +1 -0
  64. package/dist/ui/server/_app/immutable/assets/_page.DVcIZgbI.css +1 -0
  65. package/dist/ui/server/_app/immutable/assets/_page.DwCEZqGT.css +1 -0
  66. package/dist/ui/server/chunks/{dialog.js → ActionDialog.js} +16 -2
  67. package/dist/ui/server/chunks/ActionDialog.js.map +1 -0
  68. package/dist/ui/server/chunks/Pane.js.map +1 -1
  69. package/dist/ui/server/chunks/instance.js +3 -3
  70. package/dist/ui/server/chunks/internal.js +1 -1
  71. package/dist/ui/server/chunks/sessions.js.map +1 -1
  72. package/dist/ui/server/chunks/setup.js.map +1 -1
  73. package/dist/ui/server/chunks/speech.js.map +1 -1
  74. package/dist/ui/server/chunks/src.js +43 -34
  75. package/dist/ui/server/chunks/src.js.map +1 -1
  76. package/dist/ui/server/chunks/validate.js.map +1 -1
  77. package/dist/ui/server/entries/endpoints/api/sessions/_id_id_/end/_server.ts.js +9 -0
  78. package/dist/ui/server/entries/endpoints/api/sessions/_id_id_/end/_server.ts.js.map +1 -0
  79. package/dist/ui/server/entries/hooks.server.js +3 -6
  80. package/dist/ui/server/entries/hooks.server.js.map +1 -1
  81. package/dist/ui/server/entries/pages/_layout.svelte.js +94 -78
  82. package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
  83. package/dist/ui/server/entries/pages/_page.server.ts.js.map +1 -1
  84. package/dist/ui/server/entries/pages/_page.svelte.js +121 -78
  85. package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
  86. package/dist/ui/server/entries/pages/settings/_page.server.ts.js.map +1 -1
  87. package/dist/ui/server/entries/pages/settings/_page.svelte.js +15 -16
  88. package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -1
  89. package/dist/ui/server/entries/pages/setup/_layout.svelte.js.map +1 -1
  90. package/dist/ui/server/entries/pages/setup/_page.svelte.js +24 -13
  91. package/dist/ui/server/entries/pages/setup/_page.svelte.js.map +1 -1
  92. package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js +83 -59
  93. package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js.map +1 -1
  94. package/dist/ui/server/manifest-full.js +8 -8
  95. package/dist/ui/server/manifest.js +8 -8
  96. package/dist/ui/server/nodes/0.js +2 -2
  97. package/dist/ui/server/nodes/2.js +2 -2
  98. package/dist/ui/server/nodes/3.js +2 -2
  99. package/dist/ui/server/nodes/4.js +2 -2
  100. package/dist/ui/server/nodes/5.js +2 -2
  101. package/dist/ui/server/nodes/6.js +2 -2
  102. package/dist/ui/server/server.js +8 -8
  103. package/package.json +1 -1
  104. package/dist/ui/client/ui/_app/immutable/assets/0.ONZWQgDA.css +0 -1
  105. package/dist/ui/client/ui/_app/immutable/assets/0.ONZWQgDA.css.br +0 -0
  106. package/dist/ui/client/ui/_app/immutable/assets/0.ONZWQgDA.css.gz +0 -0
  107. package/dist/ui/client/ui/_app/immutable/assets/2.DSVNnDlO.css +0 -1
  108. package/dist/ui/client/ui/_app/immutable/assets/2.DSVNnDlO.css.br +0 -3
  109. package/dist/ui/client/ui/_app/immutable/assets/2.DSVNnDlO.css.gz +0 -0
  110. package/dist/ui/client/ui/_app/immutable/assets/3.WduKm4aT.css +0 -1
  111. package/dist/ui/client/ui/_app/immutable/assets/3.WduKm4aT.css.br +0 -0
  112. package/dist/ui/client/ui/_app/immutable/assets/3.WduKm4aT.css.gz +0 -0
  113. package/dist/ui/client/ui/_app/immutable/assets/4.DEk4yqpA.css +0 -1
  114. package/dist/ui/client/ui/_app/immutable/assets/4.DEk4yqpA.css.br +0 -0
  115. package/dist/ui/client/ui/_app/immutable/assets/4.DEk4yqpA.css.gz +0 -0
  116. package/dist/ui/client/ui/_app/immutable/assets/5.YyxFzHED.css +0 -1
  117. package/dist/ui/client/ui/_app/immutable/assets/5.YyxFzHED.css.br +0 -0
  118. package/dist/ui/client/ui/_app/immutable/assets/5.YyxFzHED.css.gz +0 -0
  119. package/dist/ui/client/ui/_app/immutable/assets/6.C0Nhvs_m.css +0 -1
  120. package/dist/ui/client/ui/_app/immutable/assets/6.C0Nhvs_m.css.br +0 -0
  121. package/dist/ui/client/ui/_app/immutable/assets/6.C0Nhvs_m.css.gz +0 -0
  122. package/dist/ui/client/ui/_app/immutable/assets/Pane.Dgdg5KMw.css +0 -1
  123. package/dist/ui/client/ui/_app/immutable/assets/Pane.Dgdg5KMw.css.br +0 -0
  124. package/dist/ui/client/ui/_app/immutable/assets/Pane.Dgdg5KMw.css.gz +0 -0
  125. package/dist/ui/client/ui/_app/immutable/chunks/Cb63XE4v.js.br +0 -0
  126. package/dist/ui/client/ui/_app/immutable/chunks/Cb63XE4v.js.gz +0 -0
  127. package/dist/ui/client/ui/_app/immutable/chunks/OAsMjdHF.js.br +0 -0
  128. package/dist/ui/client/ui/_app/immutable/chunks/OAsMjdHF.js.gz +0 -0
  129. package/dist/ui/client/ui/_app/immutable/entry/app.B2MXuPeH.js +0 -2
  130. package/dist/ui/client/ui/_app/immutable/entry/app.B2MXuPeH.js.br +0 -0
  131. package/dist/ui/client/ui/_app/immutable/entry/app.B2MXuPeH.js.gz +0 -0
  132. package/dist/ui/client/ui/_app/immutable/nodes/0.CEfoZ0Mb.js +0 -1
  133. package/dist/ui/client/ui/_app/immutable/nodes/0.CEfoZ0Mb.js.br +0 -0
  134. package/dist/ui/client/ui/_app/immutable/nodes/0.CEfoZ0Mb.js.gz +0 -0
  135. package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js.br +0 -0
  136. package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js.gz +0 -0
  137. package/dist/ui/client/ui/_app/immutable/nodes/3.BzIz3rja.js +0 -5
  138. package/dist/ui/client/ui/_app/immutable/nodes/3.BzIz3rja.js.br +0 -0
  139. package/dist/ui/client/ui/_app/immutable/nodes/3.BzIz3rja.js.gz +0 -0
  140. package/dist/ui/client/ui/_app/immutable/nodes/4.B9Ke6ZBV.js.br +0 -0
  141. package/dist/ui/client/ui/_app/immutable/nodes/4.B9Ke6ZBV.js.gz +0 -0
  142. package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js +0 -6
  143. package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js.br +0 -0
  144. package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js.gz +0 -0
  145. package/dist/ui/client/ui/_app/immutable/nodes/6.B_1Pts2e.js +0 -6
  146. package/dist/ui/client/ui/_app/immutable/nodes/6.B_1Pts2e.js.br +0 -0
  147. package/dist/ui/client/ui/_app/immutable/nodes/6.B_1Pts2e.js.gz +0 -0
  148. package/dist/ui/server/_app/immutable/assets/Pane.Dgdg5KMw.css +0 -1
  149. package/dist/ui/server/_app/immutable/assets/_layout.DSVNnDlO.css +0 -1
  150. package/dist/ui/server/_app/immutable/assets/_layout.ONZWQgDA.css +0 -1
  151. package/dist/ui/server/_app/immutable/assets/_page.C0Nhvs_m.css +0 -1
  152. package/dist/ui/server/_app/immutable/assets/_page.DEk4yqpA.css +0 -1
  153. package/dist/ui/server/_app/immutable/assets/_page.WduKm4aT.css +0 -1
  154. package/dist/ui/server/_app/immutable/assets/_page.YyxFzHED.css +0 -1
  155. package/dist/ui/server/chunks/dialog.js.map +0 -1
  156. package/dist/ui/server/entries/endpoints/api/sessions/end/_server.ts.js +0 -9
  157. package/dist/ui/server/entries/endpoints/api/sessions/end/_server.ts.js.map +0 -1
  158. /package/dist/ui/client/ui/_app/immutable/chunks/{BlC5mir6.js → D-UxlRn_.js} +0 -0
  159. /package/dist/ui/client/ui/_app/immutable/chunks/{BlC5mir6.js.br → D-UxlRn_.js.br} +0 -0
  160. /package/dist/ui/client/ui/_app/immutable/chunks/{BlC5mir6.js.gz → D-UxlRn_.js.gz} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"_layout.svelte.js","names":["$.attr","$.ensure_array_like","$.escape"],"sources":["../../../../../src/lib/components/TabBar/TabBar.svelte","../../../../../src/routes/setup/+layout.svelte"],"sourcesContent":["<script lang=\"ts\">\n import { isCurrent, type NavItem } from '#lib/core/navigation.js';\n\n type Props = {\n /** Names the navigation landmark. */\n label: string;\n items: Pick<NavItem, 'href' | 'label' | 'exact'>[];\n currentPath: string;\n };\n\n let { label, items, currentPath }: Props = $props();\n</script>\n\n<!-- Pages that look like tabs: links, so each has its own address and \"back\" works. -->\n<nav aria-label={label}>\n <ul>\n {#each items as item (item.href)}\n <li>\n <!-- The caller passes hrefs it built with resolve(). -->\n <!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->\n <a href={item.href} aria-current={isCurrent(item, currentPath) ? 'page' : undefined}>\n {item.label}\n </a>\n </li>\n {/each}\n </ul>\n</nav>\n\n<style>\n nav {\n border-bottom: 1px solid var(--md-sys-color-outline-variant);\n border-width: 0 0 max(1px, var(--app-border-width));\n }\n\n ul {\n display: flex;\n flex-wrap: wrap;\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n a {\n display: flex;\n align-items: center;\n min-height: 48px;\n padding: 0 16px;\n /* Always there, so the label doesn't move when the tab becomes the current one. */\n border-bottom: 3px solid transparent;\n color: var(--md-sys-color-on-surface-variant);\n font-size: 14px;\n font-weight: 500;\n line-height: 20px;\n text-decoration: none;\n }\n\n a:hover {\n background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);\n }\n\n a[aria-current='page'] {\n border-bottom-color: var(--md-sys-color-primary);\n color: var(--md-sys-color-on-surface);\n }\n</style>\n","<script lang=\"ts\">\n import { resolve } from '$app/paths';\n import { page } from '$app/state';\n import Pane from '#lib/components/Pane/Pane.svelte';\n import TabBar from '#lib/components/TabBar/TabBar.svelte';\n import type { LayoutProps } from './$types';\n\n let { children }: LayoutProps = $props();\n\n const tabs = [\n { href: resolve('/setup'), label: 'Check', exact: true },\n { href: resolve('/setup/instructions'), label: 'Instructions' },\n ];\n</script>\n\n<Pane heading=\"Setup\">\n <TabBar label=\"Setup\" items={tabs} currentPath={page.url.pathname} />\n {@render children()}\n</Pane>\n"],"mappings":";;;;;;;;CAAA,WAAA,WAAA,eAAA;;EAUE,IAAI,EAAE,OAAO,OAAO,gBAAoB;EAIzB,WAAA,KAAA,OAAAA,KAAA,cAAA,KAAK,EAAA,4DAAA;EAEX,MAAA,aAAAC,kBAAA,KAAK;;GAAI,IAAA,OAAI,WAAA;GAIP,WAAA,KAAA,SAAAD,KAAA,QAAA,KAAK,IAAI,IAAAA,KAAA,gBAAgB,UAAU,MAAM,WAAW,IAAI,SAAS,KAAA,CAAS,EAAA,0BAAAE,YAChF,KAAK,KAAK,EAAA,UAAA;;;CAVb,CAAA;;;;CCXR,WAAA,WAAA,eAAA;EAOE,IAAI,EAAE,aAAuB;EAE7B,MAAM,OAAO,CACX;GAAE,MAAM,QAAQ,QAAQ;GAAG,OAAO;GAAS,OAAO;EAAI,GACtD;GAAE,MAAM,QAAQ,qBAAqB;GAAG,OAAO;EAAc,CAC9D;;;;IAI4B,OAAA,YAAA;KAAA,OAAA;KAAA,OAAA;KAAI,aAAe,KAAK,IAAI;IAAQ,CAAA;;IACxD,SAAQ,UAAA;;;;;CAJX,CAAA"}
1
+ {"version":3,"file":"_layout.svelte.js","names":["$.attr","$.ensure_array_like","$.escape"],"sources":["../../../../../src/lib/components/TabBar/TabBar.svelte","../../../../../src/routes/setup/+layout.svelte"],"sourcesContent":["<script lang=\"ts\">\n import { isCurrent, type NavItem } from '#lib/core/navigation.js';\n\n type Props = {\n /** Names the navigation landmark. */\n label: string;\n items: Pick<NavItem, 'href' | 'label' | 'exact'>[];\n currentPath: string;\n };\n\n let { label, items, currentPath }: Props = $props();\n</script>\n\n<!-- Pages that look like tabs: links, so each has its own address and \"back\" works. -->\n<nav aria-label={label}>\n <ul>\n {#each items as item (item.href)}\n <li>\n <!-- The caller passes hrefs it built with resolve(). -->\n <!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->\n <a href={item.href} aria-current={isCurrent(item, currentPath) ? 'page' : undefined}>\n {item.label}\n </a>\n </li>\n {/each}\n </ul>\n</nav>\n\n<style>\n nav {\n border-bottom: 1px solid var(--md-sys-color-outline-variant);\n border-width: 0 0 max(1px, var(--app-border-width));\n }\n\n ul {\n display: flex;\n flex-wrap: wrap;\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n a {\n display: flex;\n align-items: center;\n min-height: 48px;\n padding: 0 16px;\n /* Always there, so the label doesn't move when the tab becomes the current one. */\n border-bottom: 3px solid transparent;\n color: var(--md-sys-color-on-surface-variant);\n font-size: var(--md-sys-typescale-body-medium-size);\n font-weight: 500;\n line-height: var(--md-sys-typescale-body-medium-line-height);\n text-decoration: none;\n }\n\n a:hover {\n background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);\n }\n\n a[aria-current='page'] {\n border-bottom-color: var(--md-sys-color-primary);\n color: var(--md-sys-color-on-surface);\n }\n</style>\n","<script lang=\"ts\">\n import { resolve } from '$app/paths';\n import { page } from '$app/state';\n import Pane from '#lib/components/Pane/Pane.svelte';\n import TabBar from '#lib/components/TabBar/TabBar.svelte';\n import type { LayoutProps } from './$types';\n\n let { children }: LayoutProps = $props();\n\n const tabs = [\n { href: resolve('/setup'), label: 'Check', exact: true },\n { href: resolve('/setup/instructions'), label: 'Instructions' },\n ];\n</script>\n\n<Pane heading=\"Setup\">\n <TabBar label=\"Setup\" items={tabs} currentPath={page.url.pathname} />\n {@render children()}\n</Pane>\n"],"mappings":";;;;;;;;CAAA,WAAA,WAAA,eAAA;;EAUE,IAAI,EAAE,OAAO,OAAO,gBAAoB;EAIzB,WAAA,KAAA,OAAAA,KAAA,cAAA,KAAK,EAAA,4DAAA;EAEX,MAAA,aAAAC,kBAAA,KAAK;;GAAI,IAAA,OAAI,WAAA;GAIP,WAAA,KAAA,SAAAD,KAAA,QAAA,KAAK,IAAI,IAAAA,KAAA,gBAAgB,UAAU,MAAM,WAAW,IAAI,SAAS,KAAA,CAAS,EAAA,0BAAAE,YAChF,KAAK,KAAK,EAAA,UAAA;;;CAVb,CAAA;;;;CCXR,WAAA,WAAA,eAAA;EAOE,IAAI,EAAE,aAAuB;EAE7B,MAAM,OAAO,CACX;GAAE,MAAM,QAAQ,QAAQ;GAAG,OAAO;GAAS,OAAO;EAAI,GACtD;GAAE,MAAM,QAAQ,qBAAqB;GAAG,OAAO;EAAc,CAC9D;;;;IAI4B,OAAA,YAAA;KAAA,OAAA;KAAA,OAAA;KAAI,aAAe,KAAK,IAAI;IAAQ,CAAA;;IACxD,SAAQ,UAAA;;;;;CAJX,CAAA"}
@@ -7,7 +7,7 @@ import { t as ExternalLink } from "../../../chunks/ExternalLink.js";
7
7
  import "../../../chunks/paths.js";
8
8
  import { a as SCREEN_READER_ID, n as CHECK_CHORD, o as deriveCheckRows, s as docsUrl } from "../../../chunks/setup.js";
9
9
  import "../../../chunks/text-button.js";
10
- import "../../../chunks/dialog.js";
10
+ import { t as ActionDialog } from "../../../chunks/ActionDialog.js";
11
11
  // src/lib/components/ScreenReaderLink/ScreenReaderLink.svelte
12
12
  function ScreenReaderLink($$renderer, $$props) {
13
13
  $$renderer.component(($$renderer) => {
@@ -23,7 +23,7 @@ function SetupStatus($$renderer, $$props) {
23
23
  /** `null` until the status was read once. */
24
24
  /** Whether the last read of the status worked. */
25
25
  /** Reads the status again. */
26
- let { rows, reachable, onCheck } = $$props;
26
+ let { rows, reachable, onRefresh } = $$props;
27
27
  const ICONS = {
28
28
  ok: "check_circle",
29
29
  warning: "warning",
@@ -95,8 +95,19 @@ function SetupStatus($$renderer, $$props) {
95
95
  function SendKeysDialog($$renderer, $$props) {
96
96
  $$renderer.component(($$renderer) => {
97
97
  let { open, onSend, onClose } = $$props;
98
- $$renderer.push(`<md-dialog${attr("open", open, true)} class="svelte-6mj6i9"><div slot="headline">Send ${escape_html(CHECK_CHORD)} during a session?</div> <div slot="content"><p class="svelte-6mj6i9">A session is running. The keys go to the window in front on the bridge's machine, and the
99
- speech they cause is recorded in that session.</p></div> <div slot="actions"><md-text-button type="button">Cancel</md-text-button> <md-text-button type="button">Send</md-text-button></div></md-dialog>`);
98
+ ActionDialog($$renderer, {
99
+ open,
100
+ headline: `Send ${stringify(CHECK_CHORD)} during a session?`,
101
+ confirmLabel: "Send",
102
+ failureMessage: "The keys could not be sent.",
103
+ onConfirm: () => Promise.resolve(onSend()),
104
+ onClose,
105
+ children: ($$renderer) => {
106
+ $$renderer.push(`<p>A session is running. The keys go to the window in front on the bridge's machine, and the speech
107
+ they cause is recorded in that session.</p>`);
108
+ },
109
+ $$slots: { default: true }
110
+ });
100
111
  });
101
112
  }
102
113
  // src/lib/components/SpeechTest/SpeechTest.svelte
@@ -117,13 +128,13 @@ function SpeechTest($$renderer, $$props) {
117
128
  const progress = derived(() => !busy() ? "" : reconnecting ? "Connection lost, reconnecting…" : via === "keys" ? `Sending ${CHECK_CHORD} and waiting for speech…` : "Listening. Make the screen reader speak, for example with a key press.");
118
129
  const outcome = derived(() => phase === "heard" ? "Speech arrived." : phase === "silent" ? "Nothing arrived." : phase === "failed" ? `The check failed: ${failure}` : "");
119
130
  const announced = derived(() => outcome() !== "" ? outcome() : local ? "" : progress());
120
- $$renderer.push(`<p class="scope">Checks that what the screen reader says reaches the bridge. Listen and make it speak, or let the
131
+ $$renderer.push(`<p class="note svelte-xev9kd">Checks that what the screen reader says reaches the bridge. Listen and make it speak, or let the
121
132
  bridge send ${escape_html(CHECK_CHORD)} (read the window title in NVDA and JAWS) to the window in front.</p> `);
122
- if (local) $$renderer.push(`<!--[0--><p class="scope">This page is opened on the bridge's own machine: the screen reader reads this page too, and that
133
+ if (local) $$renderer.push(`<!--[0--><p class="note svelte-xev9kd">This page is opened on the bridge's own machine: the screen reader reads this page too, and that
123
134
  speech can pass the check.</p>`);
124
135
  else $$renderer.push("<!--[-1-->");
125
136
  $$renderer.push(`<!--]--> <div class="actions svelte-xev9kd"><md-filled-button type="button"${attr("soft-disabled", busy() ? true : void 0)}>Listen</md-filled-button> <md-outlined-button type="button"${attr("soft-disabled", cannotSend() ? true : void 0)}>Send ${escape_html(CHECK_CHORD)}</md-outlined-button> <md-text-button type="button"${attr("soft-disabled", busy() ? void 0 : true)}>Stop</md-text-button></div> `);
126
- if (input !== null && !input.available) $$renderer.push(`<!--[0--><p class="scope">${escape_html(CHECK_CHORD)} can't be sent: ${escape_html(input.reason ?? "native input is not available")}</p>`);
137
+ if (input !== null && !input.available) $$renderer.push(`<!--[0--><p class="note svelte-xev9kd">${escape_html(CHECK_CHORD)} can't be sent: ${escape_html(input.reason ?? "native input is not available")}</p>`);
127
138
  else $$renderer.push("<!--[-1-->");
128
139
  $$renderer.push(`<!--]--> `);
129
140
  if (local && progress() !== "") $$renderer.push(`<!--[0--><p class="result svelte-xev9kd">${escape_html(progress())}</p>`);
@@ -136,7 +147,7 @@ function SpeechTest($$renderer, $$props) {
136
147
  let entry = each_array[$$index];
137
148
  $$renderer.push(`<li>${escape_html(entry.text)}</li>`);
138
149
  }
139
- $$renderer.push(`<!--]--></ol> <p class="scope svelte-xev9kd">Wrong characters? Set the <a${attr("href", resolve("/settings"))} class="svelte-xev9kd">text encoding</a>.</p>`);
150
+ $$renderer.push(`<!--]--></ol> <p class="note svelte-xev9kd">Wrong characters? Set the <a${attr("href", resolve("/settings"))} class="svelte-xev9kd">text encoding</a>.</p>`);
140
151
  } else if (phase === "silent" && via === "manual") {
141
152
  $$renderer.push(`<!--[1--><ul class="hints svelte-xev9kd"><li class="svelte-xev9kd">`);
142
153
  ScreenReaderLink($$renderer, {
@@ -164,7 +175,7 @@ function SpeechTest($$renderer, $$props) {
164
175
  });
165
176
  $$renderer.push(`<!---->.</li></ul>`);
166
177
  } else if (phase === "silent") {
167
- $$renderer.push(`<!--[2--><p class="scope">${escape_html(CHECK_CHORD)} was sent. Use Listen and make the screen reader speak by hand: if that works, the keys
178
+ $$renderer.push(`<!--[2--><p class="note svelte-xev9kd">${escape_html(CHECK_CHORD)} was sent. Use Listen and make the screen reader speak by hand: if that works, the keys
168
179
  don't reach the screen reader (`);
169
180
  ExternalLink($$renderer, {
170
181
  href: docsUrl(version, "usage/troubleshooting.md#browser-and-input"),
@@ -189,11 +200,11 @@ function _page($$renderer, $$props) {
189
200
  $$renderer.component(($$renderer) => {
190
201
  let { data } = $$props;
191
202
  const { status: statusStore, voiceCheck } = appStores();
192
- const status = derived(() => statusStore.status ?? data.status);
203
+ const status = derived(() => statusStore.status);
193
204
  const rows = derived(() => status() === null ? null : deriveCheckRows(status()));
194
205
  async function isSessionRunning() {
195
- await statusStore.retry();
196
- return (statusStore.status ?? data.status)?.session.current != null;
206
+ await statusStore.refresh();
207
+ return statusStore.status?.session.current != null;
197
208
  }
198
209
  head("g40i6i", $$renderer, ($$renderer) => {
199
210
  $$renderer.title(($$renderer) => {
@@ -204,7 +215,7 @@ function _page($$renderer, $$props) {
204
215
  SetupStatus($$renderer, {
205
216
  rows: rows(),
206
217
  reachable: statusStore.reachable,
207
- onCheck: () => statusStore.retry()
218
+ onRefresh: () => statusStore.refresh()
208
219
  });
209
220
  $$renderer.push(`<!----></section> <section class="part" aria-labelledby="test-heading"><h2 id="test-heading">Speech test</h2> `);
210
221
  SpeechTest($$renderer, {
@@ -1 +1 @@
1
- {"version":3,"file":"_page.svelte.js","names":["$.attr","$.stringify","$.escape","$.ensure_array_like","$.attr_class","$.clsx","$.attr","$.escape","$.derived","$.escape","$.attr","$.attr_class","$.stringify","$.ensure_array_like","$.derived","onMount"],"sources":["../../../../../src/lib/components/ScreenReaderLink/ScreenReaderLink.svelte","../../../../../src/lib/components/SetupStatus/SetupStatus.svelte","../../../../../src/lib/components/SpeechTest/SendKeysDialog.svelte","../../../../../src/lib/components/SpeechTest/SpeechTest.svelte","../../../../../src/routes/setup/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n import type { Snippet } from 'svelte';\n import { resolve } from '$app/paths';\n import { SCREEN_READER_ID } from '#lib/core/setup.js';\n\n type Props = { children: Snippet };\n\n let { children }: Props = $props();\n</script>\n\n<!-- To the screen reader steps of the Setup instructions. -->\n<a href=\"{resolve('/setup/instructions')}#{SCREEN_READER_ID}\">{@render children()}</a>\n\n<style>\n a {\n color: var(--md-sys-color-primary);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/button/outlined-button.js';\n import '@material/web/icon/icon.js';\n import { tick } from 'svelte';\n import ExternalLink from '#lib/components/ExternalLink/ExternalLink.svelte';\n import ScreenReaderLink from '#lib/components/ScreenReaderLink/ScreenReaderLink.svelte';\n import type { CheckRow, CheckTone } from '#lib/core/setup.js';\n\n type Props = {\n /** `null` until the status was read once. */\n rows: CheckRow[] | null;\n /** Whether the last read of the status worked. */\n reachable: boolean;\n /** Reads the status again. */\n onCheck: () => Promise<void>;\n };\n\n let { rows, reachable, onCheck }: Props = $props();\n\n const ICONS: Record<CheckTone, string> = {\n ok: 'check_circle',\n warning: 'warning',\n neutral: 'radio_button_unchecked',\n };\n\n /** What the last \"Check again\" found; empty until someone asks. */\n let result = $state('');\n\n async function check(): Promise<void> {\n result = '';\n await onCheck();\n await tick();\n if (!reachable) return; // The alert says it.\n const warnings = rows?.filter((row) => row.tone === 'warning').length ?? 0;\n result =\n warnings === 0\n ? 'Checked: no warnings.'\n : `Checked: ${warnings} ${warnings === 1 ? 'warning' : 'warnings'}.`;\n }\n</script>\n\n{#if !reachable}\n <p role=\"alert\" class=\"unreachable\">\n The bridge is not reachable.{rows === null ? '' : ' This is the last state that was read.'}\n </p>\n{:else if rows === null}\n <p class=\"note\">Reading the status…</p>\n{/if}\n\n{#if rows !== null}\n <ul aria-label=\"Setup status\">\n {#each rows as row (row.id)}\n <li class={row.tone}>\n <md-icon aria-hidden=\"true\">{ICONS[row.tone]}</md-icon>\n <span class=\"label\">{row.label}</span>\n <span class=\"state\">\n {#if row.tone === 'warning'}<span class=\"visually-hidden\">Warning:</span>{/if}\n {row.state}\n {#if row.library !== null}\n {@const { name, href } = row.library}\n <span>\n ({#if href === null}{name}{:else}<ExternalLink {href}>\n {name}<span class=\"visually-hidden\"> on GitHub</span>\n </ExternalLink>{/if})\n </span>\n {/if}\n {#if row.help !== null}\n <span class=\"help\">\n {#if 'href' in row.help}\n <ExternalLink href={row.help.href}>\n {row.help.label}<span class=\"visually-hidden\"> (help for {row.label})</span>\n </ExternalLink>\n {:else}\n <ScreenReaderLink>\n {row.help.label}<span class=\"visually-hidden\"> (help for {row.label})</span>\n </ScreenReaderLink>\n {/if}\n </span>\n {/if}\n </span>\n </li>\n {/each}\n </ul>\n{/if}\n\n<!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n<md-outlined-button type=\"button\" onclick={() => void check()}>\n {reachable ? 'Check again' : 'Try again'}\n</md-outlined-button>\n\n<p role=\"status\" class=\"note\">{result}</p>\n\n<style>\n ul {\n margin: 0 0 12px;\n padding: 0;\n list-style: none;\n }\n\n li {\n display: grid;\n grid-template-columns: 24px minmax(0, 180px) minmax(0, 1fr);\n gap: 4px 12px;\n align-items: start;\n padding: 8px 0;\n color: var(--md-sys-color-on-surface);\n font-size: 14px;\n line-height: 24px;\n }\n\n li + li {\n border-top: 1px solid var(--md-sys-color-outline-variant);\n }\n\n .ok md-icon {\n color: var(--app-success);\n }\n\n .warning md-icon {\n color: var(--app-warning);\n }\n\n .neutral md-icon {\n color: var(--md-sys-color-on-surface-variant);\n }\n\n .label {\n font-weight: 500;\n }\n\n .state {\n overflow-wrap: anywhere;\n }\n\n .help {\n margin-left: 8px;\n }\n\n @media (max-width: 600px) {\n li {\n grid-template-columns: 24px minmax(0, 1fr);\n }\n\n .state {\n grid-column: 2;\n }\n }\n\n .note,\n .unreachable {\n margin: 0 0 12px;\n color: var(--md-sys-color-on-surface-variant);\n font-size: 13px;\n line-height: 18px;\n }\n\n .unreachable {\n color: var(--md-sys-color-error);\n font-size: 14px;\n line-height: 20px;\n }\n\n p[role='status'] {\n margin: 8px 0 0;\n }\n\n p[role='status']:empty {\n margin: 0;\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/button/text-button.js';\n import '@material/web/dialog/dialog.js';\n import { CHECK_CHORD } from '#lib/core/setup.js';\n\n type Props = {\n open: boolean;\n onSend: () => void;\n onClose: () => void;\n };\n\n let { open, onSend, onClose }: Props = $props();\n</script>\n\n<md-dialog {open} onclosed={onClose}>\n <div slot=\"headline\">Send {CHECK_CHORD} during a session?</div>\n <div slot=\"content\">\n <p>\n A session is running. The keys go to the window in front on the bridge's machine, and the\n speech they cause is recorded in that session.\n </p>\n </div>\n <div slot=\"actions\">\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" onclick={onClose}>Cancel</md-text-button>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button\n type=\"button\"\n onclick={() => {\n onClose();\n onSend();\n }}\n >\n Send\n </md-text-button>\n </div>\n</md-dialog>\n\n<style>\n md-dialog {\n max-width: min(400px, calc(100% - 48px));\n --md-dialog-container-color: var(--md-sys-color-surface-container-high);\n --md-dialog-headline-color: var(--md-sys-color-on-surface);\n --md-dialog-supporting-text-color: var(--md-sys-color-on-surface-variant);\n }\n\n p {\n margin: 0;\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/button/filled-button.js';\n import '@material/web/button/outlined-button.js';\n import '@material/web/button/text-button.js';\n import { resolve } from '$app/paths';\n import type { InputAvailabilityDto, SpeechEntryDto } from '@screenreader-speech-capture/shared';\n import ExternalLink from '#lib/components/ExternalLink/ExternalLink.svelte';\n import ScreenReaderLink from '#lib/components/ScreenReaderLink/ScreenReaderLink.svelte';\n import { CHECK_CHORD, docsUrl, type CheckVia } from '#lib/core/setup.js';\n import type { CheckPhase } from '#lib/stores/voice-check.svelte.js';\n import SendKeysDialog from './SendKeysDialog.svelte';\n\n type Props = {\n phase: CheckPhase;\n via: CheckVia;\n /** The speech that arrived, oldest first. */\n entries: readonly SpeechEntryDto[];\n reconnecting: boolean;\n failure: string;\n /**\n * The page is opened on the screen reader's own machine: the screen reader reads it, so what\n * arrived is hidden from it, and the page's own speech can pass the check.\n */\n local: boolean;\n /** Whether the bridge can send keys; `null` until the status was read. */\n input: InputAvailabilityDto | null;\n /** The port the bridge listens on for speech, and its version; `null` until known. */\n port: number | null;\n version: string | null;\n onListen: () => void;\n onSendKeys: () => void;\n onStop: () => void;\n /** Read right before the keys are sent: they need a confirmation while a session runs. */\n isSessionRunning: () => Promise<boolean>;\n };\n\n let {\n phase,\n via,\n entries,\n reconnecting,\n failure,\n local,\n input,\n port,\n version,\n onListen,\n onSendKeys,\n onStop,\n isSessionRunning,\n }: Props = $props();\n\n let confirmOpen = $state(false);\n let asking = $state(false);\n\n const busy = $derived(phase === 'starting' || phase === 'listening');\n const cannotSend = $derived(busy || input?.available !== true);\n\n const progress = $derived(\n !busy\n ? ''\n : reconnecting\n ? 'Connection lost, reconnecting…'\n : via === 'keys'\n ? `Sending ${CHECK_CHORD} and waiting for speech…`\n : 'Listening. Make the screen reader speak, for example with a key press.',\n );\n const outcome = $derived(\n phase === 'heard'\n ? 'Speech arrived.'\n : phase === 'silent'\n ? 'Nothing arrived.'\n : phase === 'failed'\n ? `The check failed: ${failure}`\n : '',\n );\n // On the bridge's machine the progress is not announced: its speech would pass the check.\n const announced = $derived(outcome !== '' ? outcome : local ? '' : progress);\n\n async function send(): Promise<void> {\n if (cannotSend || asking) return;\n asking = true;\n try {\n if (await isSessionRunning()) confirmOpen = true;\n else onSendKeys();\n } finally {\n asking = false;\n }\n }\n</script>\n\n<p class=\"scope\">\n Checks that what the screen reader says reaches the bridge. Listen and make it speak, or let the\n bridge send {CHECK_CHORD} (read the window title in NVDA and JAWS) to the window in front.\n</p>\n{#if local}\n <p class=\"scope\">\n This page is opened on the bridge's own machine: the screen reader reads this page too, and that\n speech can pass the check.\n </p>\n{/if}\n\n<!-- Soft-disabled: a disabled button would drop the focus it has after a click. -->\n<div class=\"actions\">\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-filled-button\n type=\"button\"\n soft-disabled={busy ? true : undefined}\n onclick={() => {\n if (!busy) onListen();\n }}\n >\n Listen\n </md-filled-button>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-outlined-button\n type=\"button\"\n soft-disabled={cannotSend ? true : undefined}\n onclick={() => void send()}\n >\n Send {CHECK_CHORD}\n </md-outlined-button>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button\n type=\"button\"\n soft-disabled={busy ? undefined : true}\n onclick={() => {\n if (busy) onStop();\n }}\n >\n Stop\n </md-text-button>\n</div>\n\n{#if input !== null && !input.available}\n <p class=\"scope\">\n {CHECK_CHORD} can't be sent: {input.reason ?? 'native input is not available'}\n </p>\n{/if}\n\n{#if local && progress !== ''}<p class=\"result\">{progress}</p>{/if}\n<!-- A live region that is always there. It says how it went, never what was spoken. -->\n<p role=\"status\" class=\"result {phase}\">{announced}</p>\n\n{#if phase === 'heard'}\n <ol aria-label=\"Speech that arrived\" aria-hidden={local ? 'true' : undefined}>\n {#each entries as entry (entry.seq)}\n <li>{entry.text}</li>\n {/each}\n </ol>\n <p class=\"scope\">\n Wrong characters? Set the <a href={resolve('/settings')}>text encoding</a>.\n </p>\n{:else if phase === 'silent' && via === 'manual'}\n <ul class=\"hints\">\n <li>\n <ScreenReaderLink>Select the socket voice</ScreenReaderLink> in the screen reader.\n </li>\n <li>\n The voice must send to {port === null ? \"the bridge's port\" : `port ${port}`}\n (<ExternalLink href={docsUrl(version, 'usage/troubleshooting.md#speech')}>\n troubleshooting\n </ExternalLink>).\n </li>\n <li>\n JAWS: turn off\n <ExternalLink href={docsUrl(version, 'usage/vm-setup.md#jaws-language-detection')}>\n Detect Language Changes\n </ExternalLink>.\n </li>\n </ul>\n{:else if phase === 'silent'}\n <p class=\"scope\">\n {CHECK_CHORD} was sent. Use Listen and make the screen reader speak by hand: if that works, the keys\n don't reach the screen reader (<ExternalLink\n href={docsUrl(version, 'usage/troubleshooting.md#browser-and-input')}\n >\n troubleshooting\n </ExternalLink>).\n </p>\n{/if}\n\n<SendKeysDialog open={confirmOpen} onSend={onSendKeys} onClose={() => (confirmOpen = false)} />\n\n<style>\n .actions {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n margin-bottom: 12px;\n }\n\n .result {\n margin: 0 0 8px;\n color: var(--md-sys-color-on-surface);\n font-size: 14px;\n line-height: 20px;\n overflow-wrap: anywhere;\n }\n\n .result:empty {\n margin: 0;\n }\n\n .result.heard {\n color: var(--app-success);\n font-weight: 500;\n }\n\n .result.failed {\n color: var(--md-sys-color-error);\n }\n\n ol {\n margin: 0 0 12px;\n padding: 8px 12px 8px 36px;\n border-radius: 12px;\n background: var(--md-sys-color-surface-container-low);\n color: var(--md-sys-color-on-surface);\n font-size: var(--app-log-text-size);\n line-height: var(--app-log-text-line-height);\n overflow-wrap: anywhere;\n }\n\n .hints {\n margin: 0;\n padding-left: 20px;\n color: var(--md-sys-color-on-surface);\n font-size: 14px;\n line-height: 20px;\n }\n\n .hints li + li {\n margin-top: 4px;\n }\n\n /* The link to the settings; the other links style themselves. */\n p a {\n color: var(--md-sys-color-primary);\n }\n</style>\n","<script lang=\"ts\">\n import { onMount, untrack } from 'svelte';\n import SetupStatus from '#lib/components/SetupStatus/SetupStatus.svelte';\n import SpeechTest from '#lib/components/SpeechTest/SpeechTest.svelte';\n import { appStores } from '#lib/app-context.js';\n import { deriveCheckRows } from '#lib/core/setup.js';\n import type { PageProps } from './$types';\n\n let { data }: PageProps = $props();\n\n const { status: statusStore, voiceCheck } = appStores();\n\n // On the server the status store is still empty, the layout's load has the status.\n const status = $derived(statusStore.status ?? data.status);\n const rows = $derived(status === null ? null : deriveCheckRows(status));\n\n onMount(() => {\n // The layout's status is as old as the app's first page; this page is about the current one.\n void statusStore.retry();\n return () => voiceCheck.stop();\n });\n\n // Speech arrived: the voice row has something new to say.\n $effect(() => {\n if (voiceCheck.phase === 'heard') untrack(() => void statusStore.retry());\n });\n\n async function isSessionRunning(): Promise<boolean> {\n await statusStore.retry();\n return (statusStore.status ?? data.status)?.session.current != null;\n }\n</script>\n\n<svelte:head>\n <title>Setup · Speech Capture</title>\n</svelte:head>\n\n<section class=\"part\" aria-labelledby=\"status-heading\">\n <h2 id=\"status-heading\">Status</h2>\n <SetupStatus {rows} reachable={statusStore.reachable} onCheck={() => statusStore.retry()} />\n</section>\n\n<section class=\"part\" aria-labelledby=\"test-heading\">\n <h2 id=\"test-heading\">Speech test</h2>\n <SpeechTest\n phase={voiceCheck.phase}\n via={voiceCheck.via}\n entries={voiceCheck.entries}\n reconnecting={voiceCheck.reconnecting}\n failure={voiceCheck.failure}\n local={data.local}\n input={status?.input.native ?? null}\n port={status?.tcp.port ?? null}\n version={status?.bridge.version ?? null}\n onListen={() => void voiceCheck.start('manual')}\n onSendKeys={() => void voiceCheck.start('keys')}\n onStop={() => voiceCheck.stop()}\n {isSessionRunning}\n />\n</section>\n"],"mappings":"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"}
1
+ {"version":3,"file":"_page.svelte.js","names":["$.attr","$.stringify","$.escape","$.ensure_array_like","$.attr_class","$.clsx","$.stringify","$.derived","$.escape","$.attr","$.attr_class","$.stringify","$.ensure_array_like","$.derived","onMount"],"sources":["../../../../../src/lib/components/ScreenReaderLink/ScreenReaderLink.svelte","../../../../../src/lib/components/SetupStatus/SetupStatus.svelte","../../../../../src/lib/components/SpeechTest/SendKeysDialog.svelte","../../../../../src/lib/components/SpeechTest/SpeechTest.svelte","../../../../../src/routes/setup/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n import type { Snippet } from 'svelte';\n import { resolve } from '$app/paths';\n import { SCREEN_READER_ID } from '#lib/core/setup.js';\n\n type Props = { children: Snippet };\n\n let { children }: Props = $props();\n</script>\n\n<!-- To the screen reader steps of the Setup instructions. -->\n<a href=\"{resolve('/setup/instructions')}#{SCREEN_READER_ID}\">{@render children()}</a>\n\n<style>\n a {\n color: var(--md-sys-color-primary);\n }\n</style>\n","<script lang=\"ts\">\n import '@material/web/button/outlined-button.js';\n import '@material/web/icon/icon.js';\n import { tick } from 'svelte';\n import ExternalLink from '#lib/components/ExternalLink/ExternalLink.svelte';\n import ScreenReaderLink from '#lib/components/ScreenReaderLink/ScreenReaderLink.svelte';\n import type { CheckRow, CheckTone } from '#lib/core/setup.js';\n\n type Props = {\n /** `null` until the status was read once. */\n rows: CheckRow[] | null;\n /** Whether the last read of the status worked. */\n reachable: boolean;\n /** Reads the status again. */\n onRefresh: () => Promise<void>;\n };\n\n let { rows, reachable, onRefresh }: Props = $props();\n\n const ICONS: Record<CheckTone, string> = {\n ok: 'check_circle',\n warning: 'warning',\n neutral: 'radio_button_unchecked',\n };\n\n /** What the last \"Check again\" found; empty until someone asks. */\n let result = $state('');\n\n async function check(): Promise<void> {\n result = '';\n await onRefresh();\n await tick();\n if (!reachable) return; // The alert already says so.\n const warnings = rows?.filter((row) => row.tone === 'warning').length ?? 0;\n result =\n warnings === 0\n ? 'Checked: no warnings.'\n : `Checked: ${warnings} ${warnings === 1 ? 'warning' : 'warnings'}.`;\n }\n</script>\n\n{#if !reachable}\n <p role=\"alert\" class=\"unreachable\">\n The bridge is not reachable.{rows === null ? '' : ' This is the last state that was read.'}\n </p>\n{:else if rows === null}\n <p class=\"note\">Reading the status…</p>\n{/if}\n\n{#if rows !== null}\n <ul aria-label=\"Setup status\">\n {#each rows as row (row.id)}\n <li class={row.tone}>\n <md-icon aria-hidden=\"true\">{ICONS[row.tone]}</md-icon>\n <span class=\"label\">{row.label}</span>\n <span class=\"state\">\n {#if row.tone === 'warning'}<span class=\"visually-hidden\">Warning:</span>{/if}\n {row.state}\n {#if row.library !== null}\n {@const { name, href } = row.library}\n <span>\n ({#if href === null}{name}{:else}<ExternalLink {href}>\n {name}<span class=\"visually-hidden\"> on GitHub</span>\n </ExternalLink>{/if})\n </span>\n {/if}\n {#if row.help !== null}\n <span class=\"help\">\n {#if 'href' in row.help}\n <ExternalLink href={row.help.href}>\n {row.help.label}<span class=\"visually-hidden\"> (help for {row.label})</span>\n </ExternalLink>\n {:else}\n <ScreenReaderLink>\n {row.help.label}<span class=\"visually-hidden\"> (help for {row.label})</span>\n </ScreenReaderLink>\n {/if}\n </span>\n {/if}\n </span>\n </li>\n {/each}\n </ul>\n{/if}\n\n<!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n<md-outlined-button type=\"button\" onclick={() => void check()}>\n {reachable ? 'Check again' : 'Try again'}\n</md-outlined-button>\n\n<p role=\"status\" class=\"note\">{result}</p>\n\n<style>\n ul {\n margin: 0 0 12px;\n padding: 0;\n list-style: none;\n }\n\n li {\n display: grid;\n grid-template-columns: 24px minmax(0, 180px) minmax(0, 1fr);\n gap: 4px 12px;\n align-items: start;\n padding: 8px 0;\n color: var(--md-sys-color-on-surface);\n font-size: var(--md-sys-typescale-body-medium-size);\n line-height: 24px;\n }\n\n li + li {\n border-top: 1px solid var(--md-sys-color-outline-variant);\n }\n\n .ok md-icon {\n color: var(--app-success);\n }\n\n .warning md-icon {\n color: var(--app-warning);\n }\n\n .neutral md-icon {\n color: var(--md-sys-color-on-surface-variant);\n }\n\n .label {\n font-weight: 500;\n }\n\n .state {\n overflow-wrap: anywhere;\n }\n\n .help {\n margin-left: 8px;\n }\n\n @media (max-width: 600px) {\n li {\n grid-template-columns: 24px minmax(0, 1fr);\n }\n\n .state {\n grid-column: 2;\n }\n }\n\n .note {\n margin: 0 0 12px;\n }\n\n .unreachable {\n margin: 0 0 12px;\n color: var(--md-sys-color-error);\n font-size: var(--md-sys-typescale-body-medium-size);\n line-height: var(--md-sys-typescale-body-medium-line-height);\n }\n\n p[role='status'] {\n margin: 8px 0 0;\n }\n\n p[role='status']:empty {\n margin: 0;\n }\n</style>\n","<script lang=\"ts\">\n import ActionDialog from '#lib/components/ActionDialog/ActionDialog.svelte';\n import { CHECK_CHORD } from '#lib/core/setup.js';\n\n type Props = {\n open: boolean;\n onSend: () => void;\n onClose: () => void;\n };\n\n let { open, onSend, onClose }: Props = $props();\n</script>\n\n<ActionDialog\n {open}\n headline=\"Send {CHECK_CHORD} during a session?\"\n confirmLabel=\"Send\"\n failureMessage=\"The keys could not be sent.\"\n onConfirm={() => Promise.resolve(onSend())}\n {onClose}\n>\n <p>\n A session is running. The keys go to the window in front on the bridge's machine, and the speech\n they cause is recorded in that session.\n </p>\n</ActionDialog>\n","<script lang=\"ts\">\n import '@material/web/button/filled-button.js';\n import '@material/web/button/outlined-button.js';\n import '@material/web/button/text-button.js';\n import { resolve } from '$app/paths';\n import type { InputAvailabilityDto, SpeechEntryDto } from '@screenreader-speech-capture/shared';\n import ExternalLink from '#lib/components/ExternalLink/ExternalLink.svelte';\n import ScreenReaderLink from '#lib/components/ScreenReaderLink/ScreenReaderLink.svelte';\n import { CHECK_CHORD, docsUrl, type CheckVia } from '#lib/core/setup.js';\n import type { CheckPhase } from '#lib/stores/voice-check.svelte.js';\n import SendKeysDialog from './SendKeysDialog.svelte';\n\n type Props = {\n phase: CheckPhase;\n via: CheckVia;\n /** The speech that arrived, oldest first. */\n entries: readonly SpeechEntryDto[];\n reconnecting: boolean;\n failure: string;\n /**\n * The page is opened on the screen reader's own machine: the screen reader reads it, so what\n * arrived is hidden from it, and the page's own speech can pass the check.\n */\n local: boolean;\n /** Whether the bridge can send keys; `null` until the status was read. */\n input: InputAvailabilityDto | null;\n /** The port the bridge listens on for speech, and its version; `null` until known. */\n port: number | null;\n version: string | null;\n onListen: () => void;\n onSendKeys: () => void;\n onStop: () => void;\n /** Read right before the keys are sent: they need a confirmation while a session runs. */\n isSessionRunning: () => Promise<boolean>;\n };\n\n let {\n phase,\n via,\n entries,\n reconnecting,\n failure,\n local,\n input,\n port,\n version,\n onListen,\n onSendKeys,\n onStop,\n isSessionRunning,\n }: Props = $props();\n\n let confirmOpen = $state(false);\n let asking = $state(false);\n\n const busy = $derived(phase === 'starting' || phase === 'listening');\n const cannotSend = $derived(busy || input?.available !== true);\n\n const progress = $derived(\n !busy\n ? ''\n : reconnecting\n ? 'Connection lost, reconnecting…'\n : via === 'keys'\n ? `Sending ${CHECK_CHORD} and waiting for speech…`\n : 'Listening. Make the screen reader speak, for example with a key press.',\n );\n const outcome = $derived(\n phase === 'heard'\n ? 'Speech arrived.'\n : phase === 'silent'\n ? 'Nothing arrived.'\n : phase === 'failed'\n ? `The check failed: ${failure}`\n : '',\n );\n // On the bridge's machine the progress is not announced: its speech would pass the check.\n const announced = $derived(outcome !== '' ? outcome : local ? '' : progress);\n\n async function send(): Promise<void> {\n if (cannotSend || asking) return;\n asking = true;\n try {\n if (await isSessionRunning()) confirmOpen = true;\n else onSendKeys();\n } finally {\n asking = false;\n }\n }\n</script>\n\n<p class=\"note\">\n Checks that what the screen reader says reaches the bridge. Listen and make it speak, or let the\n bridge send {CHECK_CHORD} (read the window title in NVDA and JAWS) to the window in front.\n</p>\n{#if local}\n <p class=\"note\">\n This page is opened on the bridge's own machine: the screen reader reads this page too, and that\n speech can pass the check.\n </p>\n{/if}\n\n<!-- Soft-disabled: a disabled button would drop the focus it has after a click. -->\n<div class=\"actions\">\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-filled-button\n type=\"button\"\n soft-disabled={busy ? true : undefined}\n onclick={() => {\n if (!busy) onListen();\n }}\n >\n Listen\n </md-filled-button>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-outlined-button\n type=\"button\"\n soft-disabled={cannotSend ? true : undefined}\n onclick={() => void send()}\n >\n Send {CHECK_CHORD}\n </md-outlined-button>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button\n type=\"button\"\n soft-disabled={busy ? undefined : true}\n onclick={() => {\n if (busy) onStop();\n }}\n >\n Stop\n </md-text-button>\n</div>\n\n{#if input !== null && !input.available}\n <p class=\"note\">\n {CHECK_CHORD} can't be sent: {input.reason ?? 'native input is not available'}\n </p>\n{/if}\n\n{#if local && progress !== ''}<p class=\"result\">{progress}</p>{/if}\n<!-- A live region that is always there. It says how it went, never what was spoken. -->\n<p role=\"status\" class=\"result {phase}\">{announced}</p>\n\n{#if phase === 'heard'}\n <ol aria-label=\"Speech that arrived\" aria-hidden={local ? 'true' : undefined}>\n {#each entries as entry (entry.seq)}\n <li>{entry.text}</li>\n {/each}\n </ol>\n <p class=\"note\">\n Wrong characters? Set the <a href={resolve('/settings')}>text encoding</a>.\n </p>\n{:else if phase === 'silent' && via === 'manual'}\n <ul class=\"hints\">\n <li>\n <ScreenReaderLink>Select the socket voice</ScreenReaderLink> in the screen reader.\n </li>\n <li>\n The voice must send to {port === null ? \"the bridge's port\" : `port ${port}`}\n (<ExternalLink href={docsUrl(version, 'usage/troubleshooting.md#speech')}>\n troubleshooting\n </ExternalLink>).\n </li>\n <li>\n JAWS: turn off\n <ExternalLink href={docsUrl(version, 'usage/vm-setup.md#jaws-language-detection')}>\n Detect Language Changes\n </ExternalLink>.\n </li>\n </ul>\n{:else if phase === 'silent'}\n <p class=\"note\">\n {CHECK_CHORD} was sent. Use Listen and make the screen reader speak by hand: if that works, the keys\n don't reach the screen reader (<ExternalLink\n href={docsUrl(version, 'usage/troubleshooting.md#browser-and-input')}\n >\n troubleshooting\n </ExternalLink>).\n </p>\n{/if}\n\n<SendKeysDialog open={confirmOpen} onSend={onSendKeys} onClose={() => (confirmOpen = false)} />\n\n<style>\n /* A paragraph about the page or a section. */\n .note {\n margin: 0 0 12px;\n }\n\n .actions {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n margin-bottom: 12px;\n }\n\n .result {\n margin: 0 0 8px;\n color: var(--md-sys-color-on-surface);\n font-size: var(--md-sys-typescale-body-medium-size);\n line-height: var(--md-sys-typescale-body-medium-line-height);\n overflow-wrap: anywhere;\n }\n\n .result:empty {\n margin: 0;\n }\n\n .result.heard {\n color: var(--app-success);\n font-weight: 500;\n }\n\n .result.failed {\n color: var(--md-sys-color-error);\n }\n\n ol {\n margin: 0 0 12px;\n padding: 8px 12px 8px 36px;\n border-radius: var(--md-sys-shape-corner-medium);\n background: var(--md-sys-color-surface-container-low);\n color: var(--md-sys-color-on-surface);\n font-size: var(--app-log-text-size);\n line-height: var(--app-log-text-line-height);\n overflow-wrap: anywhere;\n }\n\n .hints {\n margin: 0;\n padding-left: 20px;\n color: var(--md-sys-color-on-surface);\n font-size: var(--md-sys-typescale-body-medium-size);\n line-height: var(--md-sys-typescale-body-medium-line-height);\n }\n\n .hints li + li {\n margin-top: 4px;\n }\n\n /* The link to the settings; the other links style themselves. */\n p a {\n color: var(--md-sys-color-primary);\n }\n</style>\n","<script lang=\"ts\">\n import { onMount, untrack } from 'svelte';\n import SetupStatus from '#lib/components/SetupStatus/SetupStatus.svelte';\n import SpeechTest from '#lib/components/SpeechTest/SpeechTest.svelte';\n import { appStores } from '#lib/app-context.js';\n import { deriveCheckRows } from '#lib/core/setup.js';\n import type { PageProps } from './$types';\n\n let { data }: PageProps = $props();\n\n const { status: statusStore, voiceCheck } = appStores();\n\n const status = $derived(statusStore.status);\n const rows = $derived(status === null ? null : deriveCheckRows(status));\n\n onMount(() => {\n // The layout's status dates from the app's first page load; this page needs the current one.\n void statusStore.refresh();\n return () => voiceCheck.stop();\n });\n\n // Speech arrived: the voice row has something new to say.\n $effect(() => {\n if (voiceCheck.phase === 'heard') untrack(() => void statusStore.refresh());\n });\n\n async function isSessionRunning(): Promise<boolean> {\n await statusStore.refresh();\n return statusStore.status?.session.current != null;\n }\n</script>\n\n<svelte:head>\n <title>Setup · Speech Capture</title>\n</svelte:head>\n\n<section class=\"part\" aria-labelledby=\"status-heading\">\n <h2 id=\"status-heading\">Status</h2>\n <SetupStatus {rows} reachable={statusStore.reachable} onRefresh={() => statusStore.refresh()} />\n</section>\n\n<section class=\"part\" aria-labelledby=\"test-heading\">\n <h2 id=\"test-heading\">Speech test</h2>\n <SpeechTest\n phase={voiceCheck.phase}\n via={voiceCheck.via}\n entries={voiceCheck.entries}\n reconnecting={voiceCheck.reconnecting}\n failure={voiceCheck.failure}\n local={data.local}\n input={status?.input.native ?? null}\n port={status?.tcp.port ?? null}\n version={status?.bridge.version ?? null}\n onListen={() => void voiceCheck.start('manual')}\n onSendKeys={() => void voiceCheck.start('keys')}\n onStop={() => voiceCheck.stop()}\n {isSessionRunning}\n />\n</section>\n"],"mappings":"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"}
@@ -2,26 +2,18 @@ import { nt as resolve } from "../../../../chunks/internal.js";
2
2
  import { a as head, c as stringify, d as attr, h as escape_html, r as derived } from "../../../../chunks/server2.js";
3
3
  import "../../../../chunks/index-server.js";
4
4
  import { t as page } from "../../../../chunks/state.js";
5
- import "../../../../chunks/paths.js";
6
- import "../../../../chunks/text-button.js";
7
- import { n as appStores } from "../../../../chunks/app-context.js";
8
5
  import { t as ExternalLink } from "../../../../chunks/ExternalLink.js";
9
6
  import { i as HOST_NAME_PATTERN } from "../../../../chunks/rules.js";
10
7
  import { a as SCREEN_READER_ID, s as docsUrl } from "../../../../chunks/setup.js";
8
+ import "../../../../chunks/paths.js";
9
+ import "../../../../chunks/text-button.js";
10
+ import { n as appStores } from "../../../../chunks/app-context.js";
11
11
  // ../shared/src/rules/service-paths.ts
12
12
  /** Playwright MCP (streamable HTTP): `http://<bridge>:5151/playwright-mcp`. */
13
13
  var PLAYWRIGHT_MCP_PATH = "/playwright-mcp";
14
- // src/lib/components/CommandBlock/CommandBlock.svelte
15
- function CommandBlock($$renderer, $$props) {
16
- $$renderer.component(($$renderer) => {
17
- /** What the block holds, for the button's name: `Copy <label>`. */
18
- /** Resolves `false` when the browser didn't take it. */
19
- let { label, text, onCopy } = $$props;
20
- const result = derived(() => "");
21
- $$renderer.push(`<div class="command svelte-1c2bq9d"><pre class="svelte-1c2bq9d"><code class="svelte-1c2bq9d">${escape_html(text)}</code></pre> <md-text-button type="button"${attr("aria-label", `Copy ${stringify(label)}`)}><md-icon slot="icon" aria-hidden="true">content_copy</md-icon> Copy</md-text-button></div> <p role="status" class="svelte-1c2bq9d">${escape_html(result())}</p>`);
22
- });
23
- }
24
14
  var DEFAULT_VOICE_HOST = "127.0.0.1";
15
+ /** The id `text-to-socket-engine-register` gives the default voice. */
16
+ var DEFAULT_VOICE_ID = "textToSocketVoice";
25
17
  /** Installs the socket voice and registers the default one. */
26
18
  var INSTALL_VOICE = "npm install -g text-to-socket-engine\ntext-to-socket-engine-register";
27
19
  /** The socket voice for a bridge that listens on `host` and `port` (`tcp` of the status). */
@@ -34,11 +26,13 @@ function voiceSetup({ host, port }) {
34
26
  const name = `Text To Socket ${target}:${port}`;
35
27
  if (target === DEFAULT_VOICE_HOST && port === 4449) return {
36
28
  name,
29
+ id: DEFAULT_VOICE_ID,
37
30
  addVoice: null
38
31
  };
39
32
  const id = `ssc${port}`;
40
33
  return {
41
34
  name,
35
+ id,
42
36
  addVoice: `text-to-socket-engine-add-voice ${id} "${name}" ${target} ${port} voice=${id}`
43
37
  };
44
38
  }
@@ -90,6 +84,55 @@ function mcpClientConfig(url) {
90
84
  };
91
85
  return JSON.stringify({ mcpServers: { "screenreader-vm": server } }, null, 2);
92
86
  }
87
+ // src/lib/components/ScreenReaderSteps/ScreenReaderSteps.svelte
88
+ function ScreenReaderSteps($$renderer, $$props) {
89
+ $$renderer.component(($$renderer) => {
90
+ /** Where the bridge listens for speech; `null` until known (the default voice is named). */
91
+ let { tcp, version } = $$props;
92
+ const voice = derived(() => voiceSetup(tcp ?? {
93
+ host: "127.0.0.1",
94
+ port: 4449
95
+ }));
96
+ const docs = (path) => docsUrl(version, path);
97
+ $$renderer.push(`<div class="prose"><p>Select the socket voice. NVDA lists it as <strong>${escape_html(voice().name)}</strong>, JAWS as <strong>${escape_html(voice().id)}</strong>.</p> <h3>NVDA</h3> <ol><li>Open the NVDA menu (NVDA+N) → Preferences → Settings… → Speech.</li> <li>Under Synthesizer, choose Change… → Microsoft Speech API version 5 → OK.</li> <li>Under Voice, select ${escape_html(voice().name)}.</li></ol> <h3>JAWS</h3> <ol><li>Open JAWS → Options → Voices → Voice Adjustment….</li> <li>Create or select a voice profile and set its Synthesizer to SAPI 5 (the label can differ
98
+ between JAWS versions).</li> <li>Select ${escape_html(voice().id)} as the Voice, apply it to all contexts and save the profile.</li> <li>In Settings Center (Insert+F2), turn off <em>Detect Language Changes</em>, or web pages are
99
+ read by another voice.</li></ol> <ul class="more"><li>`);
100
+ ExternalLink($$renderer, {
101
+ href: docs("usage/vm-setup.md#a-german-voice"),
102
+ children: ($$renderer) => {
103
+ $$renderer.push(`<!---->JAWS in German or another language doesn't list the voice`);
104
+ },
105
+ $$slots: { default: true }
106
+ });
107
+ $$renderer.push(`<!----></li> <li>`);
108
+ ExternalLink($$renderer, {
109
+ href: docs("usage/vm-setup.md#prepare-the-vm"),
110
+ children: ($$renderer) => {
111
+ $$renderer.push(`<!---->Prepare the VM for CI`);
112
+ },
113
+ $$slots: { default: true }
114
+ });
115
+ $$renderer.push(`<!----></li> <li>`);
116
+ ExternalLink($$renderer, {
117
+ href: docs("usage/vm-setup.md#screen-reader-licensing"),
118
+ children: ($$renderer) => {
119
+ $$renderer.push(`<!---->Screen reader licensing`);
120
+ },
121
+ $$slots: { default: true }
122
+ });
123
+ $$renderer.push(`<!----></li></ul></div>`);
124
+ });
125
+ }
126
+ // src/lib/components/CommandBlock/CommandBlock.svelte
127
+ function CommandBlock($$renderer, $$props) {
128
+ $$renderer.component(($$renderer) => {
129
+ /** What the block holds, for the button's name: `Copy <label>`. */
130
+ /** Resolves `false` when the browser didn't take it. */
131
+ let { label, text, onCopy } = $$props;
132
+ const result = derived(() => "");
133
+ $$renderer.push(`<div class="command svelte-1c2bq9d"><pre class="svelte-1c2bq9d"><code class="svelte-1c2bq9d">${escape_html(text)}</code></pre> <md-text-button type="button"${attr("aria-label", `Copy ${stringify(label)}`)}><md-icon slot="icon" aria-hidden="true">content_copy</md-icon> Copy</md-text-button></div> <p class="note svelte-1c2bq9d" role="status">${escape_html(result())}</p>`);
134
+ });
135
+ }
93
136
  // src/lib/components/TestMachineInstructions/TestMachineInstructions.svelte
94
137
  function TestMachineInstructions($$renderer, $$props) {
95
138
  $$renderer.component(($$renderer) => {
@@ -98,12 +141,12 @@ function TestMachineInstructions($$renderer, $$props) {
98
141
  /** The services as the status has them; `null` until known. */
99
142
  let { address, local, loopbackOnly, httpPort, playwright, mcp, version, onCopy } = $$props;
100
143
  const docs = (path) => docsUrl(version, path);
101
- $$renderer.push(`<section class="part" aria-labelledby="machine-heading"><h2 id="machine-heading">Test machine</h2> `);
144
+ $$renderer.push(`<div class="prose">`);
102
145
  if (loopbackOnly) $$renderer.push(`<!--[0--><p class="warning svelte-2oo2iv">The bridge only listens on its own machine, so other machines can't connect. Start it without <code class="svelte-2oo2iv">--http-host</code>, or with an address they reach.</p>`);
103
146
  else $$renderer.push("<!--[-1-->");
104
147
  $$renderer.push(`<!--]--> `);
105
148
  if (local) {
106
- $$renderer.push(`<!--[0--><p class="svelte-2oo2iv">Windows can block the port without asking. On the bridge's machine, in an <strong>administrator</strong> PowerShell (`);
149
+ $$renderer.push(`<!--[0--><p>Windows can block the port without asking. On the bridge's machine, in an <strong>administrator</strong> PowerShell (`);
107
150
  ExternalLink($$renderer, {
108
151
  href: docs("usage/vm-setup.md#firewall"),
109
152
  children: ($$renderer) => {
@@ -117,21 +160,21 @@ function TestMachineInstructions($$renderer, $$props) {
117
160
  text: firewallCommand(httpPort),
118
161
  onCopy
119
162
  });
120
- $$renderer.push(`<!----> <p class="svelte-2oo2iv">Replace <code class="svelte-2oo2iv">&lt;test-machine-ip></code> with the test machine's address, or its subnet.</p>`);
121
- } else $$renderer.push(`<!--[-1--><p class="svelte-2oo2iv">This machine already reaches the bridge, so the firewall lets it through.</p>`);
122
- $$renderer.push(`<!--]--> <p class="svelte-2oo2iv">On the test machine (Node 20 or newer), store the bridge's address and check it:</p> `);
163
+ $$renderer.push(`<!----> <p>Replace <code class="svelte-2oo2iv">&lt;test-machine-ip></code> with the test machine's address, or its subnet.</p>`);
164
+ } else $$renderer.push(`<!--[-1--><p>This machine already reaches the bridge, so the firewall lets it through.</p>`);
165
+ $$renderer.push(`<!--]--> <p>On the test machine (Node 20 or newer), store the bridge's address and check it:</p> `);
123
166
  CommandBlock($$renderer, {
124
167
  label: "the client commands",
125
168
  text: clientCommands(address.url),
126
169
  onCopy
127
170
  });
128
171
  $$renderer.push(`<!----> `);
129
- if (address.placeholder) $$renderer.push(`<!--[0--><p class="svelte-2oo2iv">Replace <code class="svelte-2oo2iv">&lt;vm-ip></code> with the VM's address: one from the <code class="svelte-2oo2iv">HTTP API</code> row of the bridge's start output, or from <code class="svelte-2oo2iv">ipconfig</code> on the VM.</p>`);
172
+ if (address.placeholder) $$renderer.push(`<!--[0--><p>Replace <code class="svelte-2oo2iv">&lt;vm-ip></code> with the VM's address: one from the <code class="svelte-2oo2iv">HTTP API</code> row of the bridge's start output, or from <code class="svelte-2oo2iv">ipconfig</code> on the VM.</p>`);
130
173
  else $$renderer.push("<!--[-1-->");
131
- $$renderer.push(`<!--]--> <h3 class="svelte-2oo2iv">Playwright tests</h3> `);
174
+ $$renderer.push(`<!--]--> <h3>Playwright tests</h3> `);
132
175
  if (playwright?.state === "stopped") $$renderer.push(`<!--[0--><p class="svelte-2oo2iv">The Playwright server is off. <a${attr("href", resolve("/settings"))} class="svelte-2oo2iv">Turn it on in Settings.</a></p>`);
133
176
  else if (playwright !== null) {
134
- $$renderer.push(`<!--[1--><p class="svelte-2oo2iv">In the test project, with the bridge's Playwright version:</p> `);
177
+ $$renderer.push(`<!--[1--><p>In the test project, with the bridge's Playwright version:</p> `);
135
178
  CommandBlock($$renderer, {
136
179
  label: "the test packages command",
137
180
  text: playwrightInstall(playwright.version),
@@ -139,7 +182,7 @@ function TestMachineInstructions($$renderer, $$props) {
139
182
  });
140
183
  $$renderer.push(`<!---->`);
141
184
  } else $$renderer.push("<!--[-1-->");
142
- $$renderer.push(`<!--]--> <p class="svelte-2oo2iv">`);
185
+ $$renderer.push(`<!--]--> <p>`);
143
186
  ExternalLink($$renderer, {
144
187
  href: docs("usage/client.md"),
145
188
  children: ($$renderer) => {
@@ -147,10 +190,10 @@ function TestMachineInstructions($$renderer, $$props) {
147
190
  },
148
191
  $$slots: { default: true }
149
192
  });
150
- $$renderer.push(`<!----></p> <h3 class="svelte-2oo2iv">AI agents</h3> `);
193
+ $$renderer.push(`<!----></p> <h3>AI agents</h3> `);
151
194
  if (mcp?.state === "stopped") $$renderer.push(`<!--[0--><p class="svelte-2oo2iv">Playwright MCP is off. <a${attr("href", resolve("/settings"))} class="svelte-2oo2iv">Turn it on in Settings.</a></p>`);
152
195
  else {
153
- $$renderer.push(`<!--[-1--><p class="svelte-2oo2iv">Point the agent's MCP client at the bridge:</p> `);
196
+ $$renderer.push(`<!--[-1--><p>Point the agent's MCP client at the bridge:</p> `);
154
197
  CommandBlock($$renderer, {
155
198
  label: "the MCP configuration",
156
199
  text: mcpClientConfig(address.url),
@@ -158,7 +201,7 @@ function TestMachineInstructions($$renderer, $$props) {
158
201
  });
159
202
  $$renderer.push(`<!---->`);
160
203
  }
161
- $$renderer.push(`<!--]--> <p class="svelte-2oo2iv">`);
204
+ $$renderer.push(`<!--]--> <p>`);
162
205
  ExternalLink($$renderer, {
163
206
  href: docs("usage/agents.md"),
164
207
  children: ($$renderer) => {
@@ -166,7 +209,7 @@ function TestMachineInstructions($$renderer, $$props) {
166
209
  },
167
210
  $$slots: { default: true }
168
211
  });
169
- $$renderer.push(`<!----></p></section>`);
212
+ $$renderer.push(`<!----></p></div>`);
170
213
  });
171
214
  }
172
215
  // src/lib/components/VoiceInstructions/VoiceInstructions.svelte
@@ -179,7 +222,7 @@ function VoiceInstructions($$renderer, $$props) {
179
222
  port: 4449
180
223
  }));
181
224
  const docs = (path) => docsUrl(version, path);
182
- $$renderer.push(`<section class="part" aria-labelledby="voice-heading"><h2 id="voice-heading">Socket voice</h2> <p class="svelte-1tbxerf">On the bridge's machine, in an <strong>administrator</strong> prompt:</p> `);
225
+ $$renderer.push(`<div class="prose"><p>On the bridge's machine, in an <strong>administrator</strong> prompt:</p> `);
183
226
  CommandBlock($$renderer, {
184
227
  label: "the install commands",
185
228
  text: INSTALL_VOICE,
@@ -187,7 +230,7 @@ function VoiceInstructions($$renderer, $$props) {
187
230
  });
188
231
  $$renderer.push(`<!----> `);
189
232
  if (voice().addVoice !== null) {
190
- $$renderer.push(`<!--[0--><p class="svelte-1tbxerf">The default voice doesn't send to where this bridge listens. Add a voice that does, in the
233
+ $$renderer.push(`<!--[0--><p>The default voice doesn't send to where this bridge listens. Add a voice that does, in the
191
234
  same prompt:</p> `);
192
235
  CommandBlock($$renderer, {
193
236
  label: "the add-voice command",
@@ -196,7 +239,7 @@ function VoiceInstructions($$renderer, $$props) {
196
239
  });
197
240
  $$renderer.push(`<!---->`);
198
241
  } else $$renderer.push("<!--[-1-->");
199
- $$renderer.push(`<!--]--> <ul class="more svelte-1tbxerf"><li class="svelte-1tbxerf">`);
242
+ $$renderer.push(`<!--]--> <ul class="more"><li>`);
200
243
  ExternalLink($$renderer, {
201
244
  href: docs("usage/troubleshooting.md#speech"),
202
245
  children: ($$renderer) => {
@@ -204,7 +247,7 @@ function VoiceInstructions($$renderer, $$props) {
204
247
  },
205
248
  $$slots: { default: true }
206
249
  });
207
- $$renderer.push(`<!----></li> <li class="svelte-1tbxerf">`);
250
+ $$renderer.push(`<!----></li> <li>`);
208
251
  ExternalLink($$renderer, {
209
252
  href: docs("usage/vm-setup.md#more-voices--other-ports"),
210
253
  children: ($$renderer) => {
@@ -212,32 +255,7 @@ function VoiceInstructions($$renderer, $$props) {
212
255
  },
213
256
  $$slots: { default: true }
214
257
  });
215
- $$renderer.push(`<!----></li></ul></section> <section class="part"${attr("aria-labelledby", SCREEN_READER_ID)}><h2${attr("id", SCREEN_READER_ID)} tabindex="-1">Screen reader</h2> <p class="svelte-1tbxerf">Select the voice <strong>${escape_html(voice().name)}</strong>.</p> <h3 class="svelte-1tbxerf">NVDA</h3> <ol class="svelte-1tbxerf"><li class="svelte-1tbxerf">Open the NVDA menu (NVDA+N) → Preferences → Settings… → Speech.</li> <li class="svelte-1tbxerf">Under Synthesizer, choose Change… → Microsoft Speech API version 5 → OK.</li> <li class="svelte-1tbxerf">Under Voice, select ${escape_html(voice().name)}.</li></ol> <h3 class="svelte-1tbxerf">JAWS</h3> <ol class="svelte-1tbxerf"><li class="svelte-1tbxerf">Open JAWS → Options → Voices → Voice Adjustment….</li> <li class="svelte-1tbxerf">Create or select a voice profile and set its Synthesizer to SAPI 5 (the label can differ
216
- between JAWS versions).</li> <li class="svelte-1tbxerf">Select ${escape_html(voice().name)} as the Voice, apply it to all contexts and save the profile.</li> <li class="svelte-1tbxerf">In Settings Center (Insert+F2), turn off <em>Detect Language Changes</em> (German: <em lang="de">Sprachwechsel erkennen</em>), or web pages are read by another voice.</li></ol> <ul class="more svelte-1tbxerf"><li class="svelte-1tbxerf">`);
217
- ExternalLink($$renderer, {
218
- href: docs("usage/vm-setup.md#a-german-voice"),
219
- children: ($$renderer) => {
220
- $$renderer.push(`<!---->JAWS in German or another language doesn't list the voice`);
221
- },
222
- $$slots: { default: true }
223
- });
224
- $$renderer.push(`<!----></li> <li class="svelte-1tbxerf">`);
225
- ExternalLink($$renderer, {
226
- href: docs("usage/vm-setup.md#prepare-the-vm"),
227
- children: ($$renderer) => {
228
- $$renderer.push(`<!---->Prepare the VM for CI`);
229
- },
230
- $$slots: { default: true }
231
- });
232
- $$renderer.push(`<!----></li> <li class="svelte-1tbxerf">`);
233
- ExternalLink($$renderer, {
234
- href: docs("usage/vm-setup.md#screen-reader-licensing"),
235
- children: ($$renderer) => {
236
- $$renderer.push(`<!---->Screen reader licensing`);
237
- },
238
- $$slots: { default: true }
239
- });
240
- $$renderer.push(`<!----></li></ul></section>`);
258
+ $$renderer.push(`<!----></li></ul></div>`);
241
259
  });
242
260
  }
243
261
  // src/routes/setup/instructions/+page.svelte
@@ -245,7 +263,7 @@ function _page($$renderer, $$props) {
245
263
  $$renderer.component(($$renderer) => {
246
264
  let { data } = $$props;
247
265
  const { status: statusStore, clipboard } = appStores();
248
- const status = derived(() => statusStore.status ?? data.status);
266
+ const status = derived(() => statusStore.status);
249
267
  const httpPort = derived(() => data.http?.port ?? 5151);
250
268
  const copy = (text) => clipboard.copy(text);
251
269
  head("149ah0g", $$renderer, ($$renderer) => {
@@ -253,12 +271,18 @@ function _page($$renderer, $$props) {
253
271
  $$renderer.push(`<title>Setup instructions · Speech Capture</title>`);
254
272
  });
255
273
  });
274
+ $$renderer.push(`<section class="part" aria-labelledby="voice-heading"><h2 id="voice-heading">Socket voice</h2> `);
256
275
  VoiceInstructions($$renderer, {
257
276
  tcp: status()?.tcp ?? null,
258
277
  version: status()?.bridge.version ?? null,
259
278
  onCopy: copy
260
279
  });
261
- $$renderer.push(`<!----> `);
280
+ $$renderer.push(`<!----></section> <section class="part"${attr("aria-labelledby", SCREEN_READER_ID)}><h2${attr("id", SCREEN_READER_ID)} tabindex="-1">Screen reader</h2> `);
281
+ ScreenReaderSteps($$renderer, {
282
+ tcp: status()?.tcp ?? null,
283
+ version: status()?.bridge.version ?? null
284
+ });
285
+ $$renderer.push(`<!----></section> <section class="part" aria-labelledby="machine-heading"><h2 id="machine-heading">Test machine</h2> `);
262
286
  TestMachineInstructions($$renderer, {
263
287
  address: bridgeAddress(page.url, httpPort()),
264
288
  local: data.local,
@@ -269,7 +293,7 @@ function _page($$renderer, $$props) {
269
293
  version: status()?.bridge.version ?? null,
270
294
  onCopy: copy
271
295
  });
272
- $$renderer.push(`<!---->`);
296
+ $$renderer.push(`<!----></section>`);
273
297
  });
274
298
  }
275
299
  export { _page as default };