screenreader-speech-capture 0.8.1 → 0.8.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.
- package/dist/cli.mjs +22 -1
- package/dist/ui/adapter-node.js +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/2.ChCvyBVk.css +1 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.ChCvyBVk.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.ChCvyBVk.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/{app.D_WMpF1j.js → app.BQe0vf14.js} +2 -2
- package/dist/ui/client/ui/_app/immutable/entry/app.BQe0vf14.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.BQe0vf14.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.CWoJ2uhd.js +52 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.CWoJ2uhd.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.CWoJ2uhd.js.gz +0 -0
- package/dist/ui/client/ui/_app/version.json +1 -1
- package/dist/ui/client/ui/_app/version.json.br +0 -0
- package/dist/ui/client/ui/_app/version.json.gz +0 -0
- package/dist/ui/server/.vite/manifest.json +11 -2
- package/dist/ui/server/_app/immutable/assets/_page.ChCvyBVk.css +1 -0
- package/dist/ui/server/chunks/instance.js +4 -3
- package/dist/ui/server/chunks/instance.js.map +1 -1
- package/dist/ui/server/chunks/internal.js +1 -1
- package/dist/ui/server/entries/hooks.server.js +14 -0
- package/dist/ui/server/entries/hooks.server.js.map +1 -0
- package/dist/ui/server/entries/pages/_layout.server.ts.js +9 -3
- package/dist/ui/server/entries/pages/_layout.server.ts.js.map +1 -1
- package/dist/ui/server/entries/pages/_page.svelte.js +20 -4
- package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
- package/dist/ui/server/manifest-full.js +1 -1
- package/dist/ui/server/manifest.js +1 -1
- package/dist/ui/server/nodes/2.js +2 -2
- package/dist/ui/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/2.IKhva0W0.css +0 -1
- package/dist/ui/client/ui/_app/immutable/assets/2.IKhva0W0.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/2.IKhva0W0.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.D_WMpF1j.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.D_WMpF1j.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.Y_rJeHBb.js +0 -50
- package/dist/ui/client/ui/_app/immutable/nodes/2.Y_rJeHBb.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.Y_rJeHBb.js.gz +0 -0
- package/dist/ui/server/_app/immutable/assets/_page.IKhva0W0.css +0 -1
|
@@ -2122,7 +2122,7 @@ function is_prerendering(state) {
|
|
|
2122
2122
|
* @param {Response} response
|
|
2123
2123
|
*/
|
|
2124
2124
|
function with_version_header(response) {
|
|
2125
|
-
response.headers.set("x-sveltekit-version", "
|
|
2125
|
+
response.headers.set("x-sveltekit-version", "1795444618528");
|
|
2126
2126
|
return response;
|
|
2127
2127
|
}
|
|
2128
2128
|
/**
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// src/hooks.server.ts
|
|
2
|
+
/**
|
|
3
|
+
* Set by the bridge (`LOCAL_HEADER` in `packages/bridge/src/composition/ui.ts`) on a request that
|
|
4
|
+
* comes from the bridge's own machine, and removed from every other one. The UI can't import it:
|
|
5
|
+
* the bridge and the UI don't depend on each other.
|
|
6
|
+
*/
|
|
7
|
+
var LOCAL_HEADER = "x-sr-bridge-local";
|
|
8
|
+
var handle = ({ event, resolve }) => {
|
|
9
|
+
event.locals.local = event.request.headers.get(LOCAL_HEADER) === "1";
|
|
10
|
+
return resolve(event);
|
|
11
|
+
};
|
|
12
|
+
export { handle };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=hooks.server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.server.js","names":[],"sources":["../../../src/hooks.server.ts"],"sourcesContent":["import type { Handle } from '@sveltejs/kit/hooks';\n\n/**\n * Set by the bridge (`LOCAL_HEADER` in `packages/bridge/src/composition/ui.ts`) on a request that\n * comes from the bridge's own machine, and removed from every other one. The UI can't import it:\n * the bridge and the UI don't depend on each other.\n */\nconst LOCAL_HEADER = 'x-sr-bridge-local';\n\nexport const handle: Handle = ({ event, resolve }) => {\n event.locals.local = event.request.headers.get(LOCAL_HEADER) === '1';\n return resolve(event);\n};\n"],"mappings":";;;;;;AAOA,IAAM,eAAe;AAErB,IAAa,UAAkB,EAAE,OAAO,cAAc;CACpD,MAAM,OAAO,QAAQ,MAAM,QAAQ,QAAQ,IAAI,YAAY,MAAM;CACjE,OAAO,QAAQ,KAAK;AACtB"}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { t as bridgeApiFromEnv } from "../../chunks/bridge-api.js";
|
|
2
2
|
// src/routes/+layout.server.ts
|
|
3
|
-
var load = async ({ fetch }) => {
|
|
3
|
+
var load = async ({ fetch, locals }) => {
|
|
4
4
|
try {
|
|
5
|
-
return {
|
|
5
|
+
return {
|
|
6
|
+
status: await bridgeApiFromEnv(fetch).status(),
|
|
7
|
+
local: locals.local
|
|
8
|
+
};
|
|
6
9
|
} catch {
|
|
7
|
-
return {
|
|
10
|
+
return {
|
|
11
|
+
status: null,
|
|
12
|
+
local: locals.local
|
|
13
|
+
};
|
|
8
14
|
}
|
|
9
15
|
};
|
|
10
16
|
export { load };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_layout.server.ts.js","names":[],"sources":["../../../../src/routes/+layout.server.ts"],"sourcesContent":["import { bridgeApiFromEnv } from '#lib/server/bridge-api.js';\nimport type { LayoutServerLoad } from './$types';\n\nexport const load: LayoutServerLoad = async ({ fetch }) => {\n try {\n return { status: await bridgeApiFromEnv(fetch).status() };\n } catch {\n // The header stays and shows \"bridge unreachable\"; the refresh button retries.\n return { status: null };\n }\n};\n"],"mappings":";;AAGA,IAAa,OAAyB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"_layout.server.ts.js","names":[],"sources":["../../../../src/routes/+layout.server.ts"],"sourcesContent":["import { bridgeApiFromEnv } from '#lib/server/bridge-api.js';\nimport type { LayoutServerLoad } from './$types';\n\nexport const load: LayoutServerLoad = async ({ fetch, locals }) => {\n try {\n return { status: await bridgeApiFromEnv(fetch).status(), local: locals.local };\n } catch {\n // The header stays and shows \"bridge unreachable\"; the refresh button retries.\n return { status: null, local: locals.local };\n }\n};\n"],"mappings":";;AAGA,IAAa,OAAyB,OAAO,EAAE,OAAO,aAAa;CACjE,IAAI;EACF,OAAO;GAAE,QAAQ,MAAM,iBAAiB,KAAK,CAAC,CAAC,OAAO;GAAG,OAAO,OAAO;EAAM;CAC/E,QAAQ;EAEN,OAAO;GAAE,QAAQ;GAAM,OAAO,OAAO;EAAM;CAC7C;AACF"}
|
|
@@ -4,9 +4,15 @@ import "../../chunks/index-server.js";
|
|
|
4
4
|
import { n as goto } from "../../chunks/navigation.js";
|
|
5
5
|
import { B as __decorate, C as EASING, I as r, L as n, M as T, O as i$1, P as e$1, R as i, b as mixinDelegatesAria, c as canClearSpeech, d as logHeading, i as speechStore, k as A, l as canDeleteSession, n as sessionsPaneStore, r as sessionsStore, s as canAddMarker, u as formatReceivedTime, w as e, z as t } from "../../chunks/composition.js";
|
|
6
6
|
import { t as page } from "../../chunks/state.js";
|
|
7
|
-
import { i as Button, n as styles$3, r as styles$4, t as redispatchEvent } from "../../chunks/outlined-text-field.js";
|
|
8
7
|
import "../../chunks/icon-button.js";
|
|
8
|
+
import { i as Button, n as styles$3, r as styles$4, t as redispatchEvent } from "../../chunks/outlined-text-field.js";
|
|
9
9
|
import { m as API_LIMITS } from "../../chunks/src.js";
|
|
10
|
+
// src/lib/components/LoopbackBanner/LoopbackBanner.svelte
|
|
11
|
+
function LoopbackBanner($$renderer) {
|
|
12
|
+
$$renderer.push(`<div class="banner svelte-qexebn" role="note"><md-icon aria-hidden="true" class="svelte-qexebn">warning</md-icon> <p class="svelte-qexebn"><strong>The speech log is hidden from the screen reader (aria-hidden).</strong> This page is opened on the bridge's own machine (loopback or its own network address): the screen
|
|
13
|
+
reader would read new rows aloud and they would be recorded again. Open the UI from another machine
|
|
14
|
+
to read the log with a screen reader.</p></div>`);
|
|
15
|
+
}
|
|
10
16
|
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/filled-tonal-button.js
|
|
11
17
|
/**
|
|
12
18
|
* @license
|
|
@@ -716,6 +722,10 @@ function SpeechTable($$renderer, $$props) {
|
|
|
716
722
|
function SpeechLog($$renderer, $$props) {
|
|
717
723
|
$$renderer.component(($$renderer) => {
|
|
718
724
|
/** `#3 Checkout flow`, or `Outside sessions`. */
|
|
725
|
+
/**
|
|
726
|
+
* The page is opened on the screen reader's own machine: the screen reader would read new
|
|
727
|
+
* rows, and that speech would be logged again. The rows are hidden from it.
|
|
728
|
+
*/
|
|
719
729
|
/** Oldest first. */
|
|
720
730
|
/** Whether a marker added now shows up in this log (see `canAddMarker`). */
|
|
721
731
|
/** Rejects with a message to show; resolves when the marker is in. */
|
|
@@ -723,7 +733,7 @@ function SpeechLog($$renderer, $$props) {
|
|
|
723
733
|
/** Whether the shown scope can be cleared: the current session, or the speech outside sessions. */
|
|
724
734
|
/** Rejects with a message to show; resolves when the speech is cleared. */
|
|
725
735
|
/** Rejects with a message to show; resolves when the session is deleted. */
|
|
726
|
-
let { heading, entries, connection, canMark, onAddMarker, canDelete, onDelete, canClear, onClear } = $$props;
|
|
736
|
+
let { heading, local = false, entries, connection, canMark, onAddMarker, canDelete, onDelete, canClear, onClear } = $$props;
|
|
727
737
|
let markerOpen = false;
|
|
728
738
|
let deleteOpen = false;
|
|
729
739
|
let clearOpen = false;
|
|
@@ -740,7 +750,7 @@ function SpeechLog($$renderer, $$props) {
|
|
|
740
750
|
else $$renderer.push("<!--[-1-->");
|
|
741
751
|
$$renderer.push(`<!--]--></div>`);
|
|
742
752
|
} else $$renderer.push("<!--[-1-->");
|
|
743
|
-
$$renderer.push(`<!--]--></header> <div class="scroll svelte-1jnrixz"
|
|
753
|
+
$$renderer.push(`<!--]--></header> <div class="scroll svelte-1jnrixz"${attr("role", local ? void 0 : "region")}${attr("aria-label", local ? void 0 : "Speech log")}${attr("aria-live", local ? void 0 : "off")}${attr("aria-hidden", local ? "true" : void 0)}${attr("tabindex", local ? void 0 : 0)}>`);
|
|
744
754
|
SpeechTable($$renderer, { entries });
|
|
745
755
|
$$renderer.push(`<!----> `);
|
|
746
756
|
if (entries.length === 0) {
|
|
@@ -1053,8 +1063,14 @@ function _page($$renderer, $$props) {
|
|
|
1053
1063
|
onEnd: end
|
|
1054
1064
|
});
|
|
1055
1065
|
$$renderer.push(`<!----></aside> <div class="log svelte-1uha8ag">`);
|
|
1066
|
+
if (data.local) {
|
|
1067
|
+
$$renderer.push("<!--[0-->");
|
|
1068
|
+
LoopbackBanner($$renderer, {});
|
|
1069
|
+
} else $$renderer.push("<!--[-1-->");
|
|
1070
|
+
$$renderer.push(`<!--]--> <div class="log-body svelte-1uha8ag">`);
|
|
1056
1071
|
SpeechLog($$renderer, {
|
|
1057
1072
|
heading: heading(),
|
|
1073
|
+
local: data.local,
|
|
1058
1074
|
entries: speechStore.entries,
|
|
1059
1075
|
connection: speechStore.connection,
|
|
1060
1076
|
canMark: canMark(),
|
|
@@ -1064,7 +1080,7 @@ function _page($$renderer, $$props) {
|
|
|
1064
1080
|
canDelete: canDelete(),
|
|
1065
1081
|
onDelete: remove
|
|
1066
1082
|
});
|
|
1067
|
-
$$renderer.push(`<!----></div></div>`);
|
|
1083
|
+
$$renderer.push(`<!----></div></div></div>`);
|
|
1068
1084
|
});
|
|
1069
1085
|
}
|
|
1070
1086
|
export { _page as default };
|