retouche-dev 0.1.0 → 0.1.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/PROMPT.md +2 -2
- package/dist/cli.js +4 -4
- package/dist/{clock-DPQ0w5RJ.js → clock-BJi08VJS.js} +3 -1
- package/dist/{follow-files-VmBxVLp-.js → follow-files-Dcya6bMQ.js} +17 -3
- package/dist/{handler-O-I_szZX.js → handler-CoK5CtV4.js} +256 -83
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/{layer-DVJN6vRD.js → layer-Bw5Xt2p7.js} +475 -312
- package/dist/next.js +9 -2
- package/dist/vite.js +12 -5
- package/dist/{voice-markdown-DhG3jnuj.js → voice-markdown-BiOKT1SX.js} +1 -1
- package/package.json +5 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as handArrow } from "./hand-arrow-Dc5fTEjK.js";
|
|
2
2
|
import { a, c as o, i as _$2, n as O$2, o as d, r as S$2, s as k$1, t as C$2 } from "./rdt-hook-D5CYLcRL.js";
|
|
3
3
|
import { a as propertyGroupsOf, c as parseClassToken, i as isCustomProperty, n as classGroupsOf, o as arbitraryProperty, r as isWatchedGroup, s as classTokens, t as WATCHED_GROUPS } from "./class-groups-DKpPgmHx.js";
|
|
4
|
-
import { a as formatNote, c as renderFacts, f as followCommand, i as siteText, l as reviewItems, m as shellFollowPrompt, n as itemMarkdown, o as formatNotes, r as sessionMarkdown, s as factText } from "./voice-markdown-
|
|
5
|
-
import {
|
|
4
|
+
import { a as formatNote, c as renderFacts, f as followCommand, i as siteText, l as reviewItems, m as shellFollowPrompt, n as itemMarkdown, o as formatNotes, r as sessionMarkdown, s as factText } from "./voice-markdown-BiOKT1SX.js";
|
|
5
|
+
import { A as voiceIdSchema, C as sourceFileSchema, L as voiceStreamSchema, P as voiceSessionSchema, S as routeMarkerSchema, T as unpairedBodySchema, _ as TRANSCRIBER_PROVIDER_NAMES, b as isServerFrame, d as ROUTE_BASE, f as SERVER_FRAME_ORIGIN, g as TRANSCRIBER_PROVIDERS, h as STREAMED_TRANSCRIBERS, j as voiceKeyAnswerSchema, k as voiceHistorySchema, l as ENDPOINTS, n as recordedMs, o as voiceFollowSchema, r as pendingPassages, s as BUILT_IN_AGENTS, t as clock, u as REQUEST_HEADER, w as statusSchema, x as pairTokenSchema, y as errorBodySchema, z as voiceTranscriptSchema } from "./clock-BJi08VJS.js";
|
|
6
6
|
import { n as THEMES, r as themeTokens, t as EASE_MORPH } from "./theme-T9ScDE2Z.js";
|
|
7
7
|
import { n as retoucheConfigSchema } from "./define-config-CepEvVVV.js";
|
|
8
8
|
import { a as wordTimes, i as wordOwners, r as spokenWords, t as momentWeight } from "./spoken-timeline-1xtFghWv.js";
|
|
@@ -2729,6 +2729,7 @@ function stopClicksAtHost(host) {
|
|
|
2729
2729
|
// src/client/fiber/react-fiber.ts
|
|
2730
2730
|
const MEMO_TYPE = Symbol.for("react.memo");
|
|
2731
2731
|
const FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
2732
|
+
const ELEMENT_TYPES = /* @__PURE__ */ new Set([Symbol.for("react.transitional.element"), Symbol.for("react.element")]);
|
|
2732
2733
|
const MAX_WRAPPER_DEPTH = 3;
|
|
2733
2734
|
const MAX_CLONE_DEPTH = 3;
|
|
2734
2735
|
const FIBER_KEY_PREFIXES = ["__reactFiber$", "__reactInternalInstance$"];
|
|
@@ -2826,8 +2827,11 @@ function hostElementsOf(fiber) {
|
|
|
2826
2827
|
}
|
|
2827
2828
|
return elements;
|
|
2828
2829
|
}
|
|
2830
|
+
function isElement(value) {
|
|
2831
|
+
return isRecord(value) && !("then" in value && typeof value.then === "function") && "$$typeof" in value && ELEMENT_TYPES.has(value.$$typeof) && "type" in value && "key" in value && "props" in value;
|
|
2832
|
+
}
|
|
2829
2833
|
function isPassedElement(value) {
|
|
2830
|
-
return
|
|
2834
|
+
return isElement(value) && "_owner" in value && isProps(value.props);
|
|
2831
2835
|
}
|
|
2832
2836
|
function sameStyling(passed, rendered) {
|
|
2833
2837
|
if (passed.className !== rendered.className) return false;
|
|
@@ -2860,14 +2864,10 @@ function writtenPlace(fiber) {
|
|
|
2860
2864
|
};
|
|
2861
2865
|
}
|
|
2862
2866
|
// src/client/renders/record/app-values.ts
|
|
2863
|
-
const ELEMENT_TYPES = /* @__PURE__ */ new Set([Symbol.for("react.transitional.element"), Symbol.for("react.element")]);
|
|
2864
2867
|
const UNREADABLE = { kind: "object" };
|
|
2865
2868
|
function isArrayValue(value) {
|
|
2866
2869
|
return Array.isArray(value);
|
|
2867
2870
|
}
|
|
2868
|
-
function isElement(value) {
|
|
2869
|
-
return isRecord(value) && "$$typeof" in value && ELEMENT_TYPES.has(value.$$typeof) && "type" in value && "key" in value && "props" in value;
|
|
2870
|
-
}
|
|
2871
2871
|
function isPlainObject(value) {
|
|
2872
2872
|
if (!isRecord(value) || isElement(value)) return false;
|
|
2873
2873
|
const prototype = Object.getPrototypeOf(value);
|
|
@@ -3231,7 +3231,7 @@ function renderReportOf(element) {
|
|
|
3231
3231
|
};
|
|
3232
3232
|
return tally.report;
|
|
3233
3233
|
}
|
|
3234
|
-
// src/client/fiber/strip-override.ts
|
|
3234
|
+
// src/client/fiber/strip/strip-override.ts
|
|
3235
3235
|
const COMPUTED_PROPERTY = {
|
|
3236
3236
|
"font-family": "font-family",
|
|
3237
3237
|
"font-size": "font-size",
|
|
@@ -3521,18 +3521,37 @@ var DevRouteError = class extends Error {
|
|
|
3521
3521
|
this.status = status;
|
|
3522
3522
|
}
|
|
3523
3523
|
};
|
|
3524
|
-
|
|
3524
|
+
let pairing = null;
|
|
3525
|
+
async function pairWith(port, signal) {
|
|
3526
|
+
const response = await fetch(`http://127.0.0.1:${port}/`, {
|
|
3527
|
+
cache: "no-store",
|
|
3528
|
+
signal
|
|
3529
|
+
});
|
|
3530
|
+
return pairTokenSchema.parse(await response.json()).token;
|
|
3531
|
+
}
|
|
3532
|
+
async function sendDevRoute(request, token) {
|
|
3525
3533
|
const search = request.search ? `?${request.search.toString()}` : "";
|
|
3526
3534
|
const hasBody = request.body !== void 0;
|
|
3527
|
-
|
|
3535
|
+
return await fetch(`${ROUTE_BASE}${request.endpoint}${search}`, {
|
|
3528
3536
|
body: hasBody ? JSON.stringify(request.body) : null,
|
|
3529
3537
|
headers: hasBody ? {
|
|
3530
3538
|
"content-type": "application/json",
|
|
3531
|
-
[REQUEST_HEADER]:
|
|
3532
|
-
} : { [REQUEST_HEADER]:
|
|
3539
|
+
[REQUEST_HEADER]: token
|
|
3540
|
+
} : { [REQUEST_HEADER]: token },
|
|
3533
3541
|
method: hasBody ? "POST" : "GET",
|
|
3534
3542
|
signal: request.signal ?? null
|
|
3535
3543
|
});
|
|
3544
|
+
}
|
|
3545
|
+
async function pairedResponse(request, response) {
|
|
3546
|
+
if (!(response.status === 401 || response.ok && request.endpoint === ENDPOINTS.status)) return response;
|
|
3547
|
+
const body = await response.clone().json().catch(() => null);
|
|
3548
|
+
const unpaired = unpairedBodySchema.safeParse(body);
|
|
3549
|
+
if (!unpaired.success) return response;
|
|
3550
|
+
pairing = pairWith(unpaired.data.pair, request.signal ?? null);
|
|
3551
|
+
return await sendDevRoute(request, await pairing);
|
|
3552
|
+
}
|
|
3553
|
+
async function requestDevRoute(request) {
|
|
3554
|
+
const response = await pairedResponse(request, await sendDevRoute(request, await pairing?.catch(() => null) ?? "unpaired"));
|
|
3536
3555
|
if (response.ok) return response;
|
|
3537
3556
|
const body = await response.json().catch(() => null);
|
|
3538
3557
|
const failure = errorBodySchema.safeParse(body);
|
|
@@ -13658,50 +13677,30 @@ function RenderedRow(t0) {
|
|
|
13658
13677
|
function _temp$14(node) {
|
|
13659
13678
|
return node.isConnected;
|
|
13660
13679
|
}
|
|
13661
|
-
function
|
|
13662
|
-
const $ = c$1(
|
|
13663
|
-
const {
|
|
13664
|
-
const components = useSyncExternalStore(onRenderReports, renderedComponents);
|
|
13680
|
+
function RenderedRows(t0) {
|
|
13681
|
+
const $ = c$1(12);
|
|
13682
|
+
const { components, onInspect, rowHeight } = t0;
|
|
13665
13683
|
const [scrollTop, setScrollTop] = useState(0);
|
|
13666
|
-
if (components.length === 0) {
|
|
13667
|
-
let t1;
|
|
13668
|
-
if ($[0] !== id) {
|
|
13669
|
-
t1 = /* @__PURE__ */ jsx$1("p", {
|
|
13670
|
-
className: "dt-rendered-empty",
|
|
13671
|
-
id,
|
|
13672
|
-
children: "Nothing has rendered since the switch went on."
|
|
13673
|
-
});
|
|
13674
|
-
$[0] = id;
|
|
13675
|
-
$[1] = t1;
|
|
13676
|
-
} else t1 = $[1];
|
|
13677
|
-
return t1;
|
|
13678
|
-
}
|
|
13679
|
-
const rowHeight = matchMedia(COARSE_POINTER).matches ? 44 : 28;
|
|
13680
13684
|
let t1;
|
|
13681
|
-
if ($[
|
|
13685
|
+
if ($[0] !== components || $[1] !== onInspect || $[2] !== rowHeight || $[3] !== scrollTop) {
|
|
13682
13686
|
const { first, last } = windowAt(scrollTop, components.length, rowHeight);
|
|
13683
13687
|
let t2;
|
|
13684
|
-
if ($[
|
|
13688
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
13685
13689
|
t2 = (event) => {
|
|
13686
13690
|
setScrollTop(event.currentTarget.scrollTop);
|
|
13687
13691
|
};
|
|
13688
|
-
$[
|
|
13689
|
-
} else t2 = $[
|
|
13692
|
+
$[5] = t2;
|
|
13693
|
+
} else t2 = $[5];
|
|
13690
13694
|
const t3 = `repeat(${components.length}, ${rowHeight}px)`;
|
|
13691
|
-
|
|
13695
|
+
let t4;
|
|
13696
|
+
if ($[6] !== t3) {
|
|
13697
|
+
t4 = { gridTemplateRows: t3 };
|
|
13698
|
+
$[6] = t3;
|
|
13699
|
+
$[7] = t4;
|
|
13700
|
+
} else t4 = $[7];
|
|
13692
13701
|
let t5;
|
|
13693
|
-
if ($[8] !==
|
|
13694
|
-
t5 = {
|
|
13695
|
-
gridTemplateRows: t3,
|
|
13696
|
-
height: t4
|
|
13697
|
-
};
|
|
13698
|
-
$[8] = t3;
|
|
13699
|
-
$[9] = t4;
|
|
13700
|
-
$[10] = t5;
|
|
13701
|
-
} else t5 = $[10];
|
|
13702
|
-
let t6;
|
|
13703
|
-
if ($[11] !== components.length || $[12] !== first || $[13] !== onInspect) {
|
|
13704
|
-
t6 = (component, index) => /* @__PURE__ */ jsx$1("li", {
|
|
13702
|
+
if ($[8] !== components.length || $[9] !== first || $[10] !== onInspect) {
|
|
13703
|
+
t5 = (component, index) => /* @__PURE__ */ jsx$1("li", {
|
|
13705
13704
|
"aria-posinset": first + index + 1,
|
|
13706
13705
|
"aria-setsize": components.length,
|
|
13707
13706
|
style: { gridRow: first + index + 1 },
|
|
@@ -13710,27 +13709,74 @@ function RenderedList(t0) {
|
|
|
13710
13709
|
onInspect
|
|
13711
13710
|
})
|
|
13712
13711
|
}, component.id);
|
|
13713
|
-
$[
|
|
13714
|
-
$[
|
|
13715
|
-
$[
|
|
13716
|
-
$[
|
|
13717
|
-
} else
|
|
13712
|
+
$[8] = components.length;
|
|
13713
|
+
$[9] = first;
|
|
13714
|
+
$[10] = onInspect;
|
|
13715
|
+
$[11] = t5;
|
|
13716
|
+
} else t5 = $[11];
|
|
13718
13717
|
t1 = /* @__PURE__ */ jsx$1("ul", {
|
|
13719
13718
|
"aria-label": "Components that rendered",
|
|
13720
13719
|
className: "dt-rendered",
|
|
13721
|
-
id,
|
|
13722
13720
|
onScroll: t2,
|
|
13723
|
-
style:
|
|
13724
|
-
children: components.slice(first, last).map(
|
|
13721
|
+
style: t4,
|
|
13722
|
+
children: components.slice(first, last).map(t5)
|
|
13725
13723
|
});
|
|
13726
|
-
$[
|
|
13727
|
-
$[
|
|
13728
|
-
$[
|
|
13729
|
-
$[
|
|
13730
|
-
$[
|
|
13731
|
-
} else t1 = $[
|
|
13724
|
+
$[0] = components;
|
|
13725
|
+
$[1] = onInspect;
|
|
13726
|
+
$[2] = rowHeight;
|
|
13727
|
+
$[3] = scrollTop;
|
|
13728
|
+
$[4] = t1;
|
|
13729
|
+
} else t1 = $[4];
|
|
13732
13730
|
return t1;
|
|
13733
13731
|
}
|
|
13732
|
+
function RenderedList(t0) {
|
|
13733
|
+
const $ = c$1(11);
|
|
13734
|
+
const { id, isShown, onInspect } = t0;
|
|
13735
|
+
const components = useSyncExternalStore(onRenderReports, renderedComponents);
|
|
13736
|
+
const rowHeight = matchMedia(COARSE_POINTER).matches ? 44 : 28;
|
|
13737
|
+
const rowsInView = Math.min(Math.max(components.length, 1), ROWS_IN_VIEW);
|
|
13738
|
+
const t1 = !isShown;
|
|
13739
|
+
const t2 = isShown ? rowsInView * rowHeight : 0;
|
|
13740
|
+
let t3;
|
|
13741
|
+
if ($[0] !== t2) {
|
|
13742
|
+
t3 = { maxHeight: t2 };
|
|
13743
|
+
$[0] = t2;
|
|
13744
|
+
$[1] = t3;
|
|
13745
|
+
} else t3 = $[1];
|
|
13746
|
+
let t4;
|
|
13747
|
+
if ($[2] !== components || $[3] !== onInspect) {
|
|
13748
|
+
t4 = components.length === 0 ? /* @__PURE__ */ jsx$1("p", {
|
|
13749
|
+
className: "dt-rendered-empty",
|
|
13750
|
+
style: { height: rowHeight },
|
|
13751
|
+
children: "Nothing has rendered since the switch went on."
|
|
13752
|
+
}) : /* @__PURE__ */ jsx$1(RenderedRows, {
|
|
13753
|
+
components,
|
|
13754
|
+
onInspect,
|
|
13755
|
+
rowHeight
|
|
13756
|
+
});
|
|
13757
|
+
$[2] = components;
|
|
13758
|
+
$[3] = onInspect;
|
|
13759
|
+
$[4] = t4;
|
|
13760
|
+
} else t4 = $[4];
|
|
13761
|
+
let t5;
|
|
13762
|
+
if ($[5] !== id || $[6] !== isShown || $[7] !== t1 || $[8] !== t3 || $[9] !== t4) {
|
|
13763
|
+
t5 = /* @__PURE__ */ jsx$1("div", {
|
|
13764
|
+
className: "dt-rendered-reveal",
|
|
13765
|
+
"data-shown": isShown,
|
|
13766
|
+
id,
|
|
13767
|
+
inert: t1,
|
|
13768
|
+
style: t3,
|
|
13769
|
+
children: t4
|
|
13770
|
+
});
|
|
13771
|
+
$[5] = id;
|
|
13772
|
+
$[6] = isShown;
|
|
13773
|
+
$[7] = t1;
|
|
13774
|
+
$[8] = t3;
|
|
13775
|
+
$[9] = t4;
|
|
13776
|
+
$[10] = t5;
|
|
13777
|
+
} else t5 = $[10];
|
|
13778
|
+
return t5;
|
|
13779
|
+
}
|
|
13734
13780
|
// src/client/renders/footer/renders-footer.tsx
|
|
13735
13781
|
const STORED_LIST = {
|
|
13736
13782
|
fallback: false,
|
|
@@ -13739,142 +13785,221 @@ const STORED_LIST = {
|
|
|
13739
13785
|
schema: z.boolean()
|
|
13740
13786
|
};
|
|
13741
13787
|
function RenderedListToggle(t0) {
|
|
13742
|
-
const $ = c$1(
|
|
13743
|
-
const { controls, isOpen, onToggle } = t0;
|
|
13788
|
+
const $ = c$1(13);
|
|
13789
|
+
const { controls, isOpen, isShown, onToggle } = t0;
|
|
13744
13790
|
const { length } = useSyncExternalStore(onRenderReports, renderedComponents);
|
|
13745
|
-
const t1 =
|
|
13746
|
-
|
|
13747
|
-
|
|
13748
|
-
|
|
13791
|
+
const t1 = !isShown;
|
|
13792
|
+
const t2 = length === 1 ? "component" : "components";
|
|
13793
|
+
let t3;
|
|
13794
|
+
if ($[0] !== length || $[1] !== t2) {
|
|
13795
|
+
t3 = /* @__PURE__ */ jsxs("span", { children: [
|
|
13749
13796
|
length,
|
|
13750
13797
|
" ",
|
|
13751
|
-
|
|
13798
|
+
t2
|
|
13752
13799
|
] });
|
|
13753
13800
|
$[0] = length;
|
|
13754
|
-
$[1] =
|
|
13755
|
-
$[2] =
|
|
13756
|
-
} else
|
|
13757
|
-
let t3;
|
|
13758
|
-
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
13759
|
-
t3 = /* @__PURE__ */ jsx$1(ChevronUpIcon, {});
|
|
13760
|
-
$[3] = t3;
|
|
13761
|
-
} else t3 = $[3];
|
|
13801
|
+
$[1] = t2;
|
|
13802
|
+
$[2] = t3;
|
|
13803
|
+
} else t3 = $[2];
|
|
13762
13804
|
let t4;
|
|
13763
|
-
if ($[
|
|
13764
|
-
t4 = /* @__PURE__ */
|
|
13805
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
13806
|
+
t4 = /* @__PURE__ */ jsx$1(ChevronUpIcon, {});
|
|
13807
|
+
$[3] = t4;
|
|
13808
|
+
} else t4 = $[3];
|
|
13809
|
+
let t5;
|
|
13810
|
+
if ($[4] !== controls || $[5] !== isOpen || $[6] !== onToggle || $[7] !== t3) {
|
|
13811
|
+
t5 = /* @__PURE__ */ jsx$1("span", { children: /* @__PURE__ */ jsxs("button", {
|
|
13765
13812
|
"aria-controls": controls,
|
|
13766
13813
|
"aria-expanded": isOpen,
|
|
13767
13814
|
className: "dt-renders-more",
|
|
13768
13815
|
onClick: onToggle,
|
|
13769
13816
|
type: "button",
|
|
13770
|
-
children: [
|
|
13771
|
-
});
|
|
13817
|
+
children: [t3, t4]
|
|
13818
|
+
}) });
|
|
13772
13819
|
$[4] = controls;
|
|
13773
13820
|
$[5] = isOpen;
|
|
13774
13821
|
$[6] = onToggle;
|
|
13775
|
-
$[7] =
|
|
13776
|
-
$[8] =
|
|
13777
|
-
} else
|
|
13778
|
-
|
|
13822
|
+
$[7] = t3;
|
|
13823
|
+
$[8] = t5;
|
|
13824
|
+
} else t5 = $[8];
|
|
13825
|
+
let t6;
|
|
13826
|
+
if ($[9] !== isShown || $[10] !== t1 || $[11] !== t5) {
|
|
13827
|
+
t6 = /* @__PURE__ */ jsx$1("span", {
|
|
13828
|
+
className: "dt-renders-slot",
|
|
13829
|
+
"data-shown": isShown,
|
|
13830
|
+
inert: t1,
|
|
13831
|
+
children: t5
|
|
13832
|
+
});
|
|
13833
|
+
$[9] = isShown;
|
|
13834
|
+
$[10] = t1;
|
|
13835
|
+
$[11] = t5;
|
|
13836
|
+
$[12] = t6;
|
|
13837
|
+
} else t6 = $[12];
|
|
13838
|
+
return t6;
|
|
13839
|
+
}
|
|
13840
|
+
function RendersSwitch(t0) {
|
|
13841
|
+
const $ = c$1(19);
|
|
13842
|
+
const { areShown, onToggle } = t0;
|
|
13843
|
+
const seen = useSyncExternalStore(onRenderReports, rendersSeen);
|
|
13844
|
+
const t1 = areShown ? "Stop highlighting renders" : void 0;
|
|
13845
|
+
let t2;
|
|
13846
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
13847
|
+
t2 = /* @__PURE__ */ jsx$1(RendersIcon, {});
|
|
13848
|
+
$[0] = t2;
|
|
13849
|
+
} else t2 = $[0];
|
|
13850
|
+
const t3 = !areShown;
|
|
13851
|
+
let t4;
|
|
13852
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
13853
|
+
t4 = /* @__PURE__ */ jsx$1("span", { children: "Highlight renders" });
|
|
13854
|
+
$[1] = t4;
|
|
13855
|
+
} else t4 = $[1];
|
|
13856
|
+
let t5;
|
|
13857
|
+
if ($[2] !== areShown || $[3] !== t3) {
|
|
13858
|
+
t5 = /* @__PURE__ */ jsx$1("span", {
|
|
13859
|
+
"aria-hidden": areShown,
|
|
13860
|
+
className: "dt-renders-slot",
|
|
13861
|
+
"data-shown": t3,
|
|
13862
|
+
children: t4
|
|
13863
|
+
});
|
|
13864
|
+
$[2] = areShown;
|
|
13865
|
+
$[3] = t3;
|
|
13866
|
+
$[4] = t5;
|
|
13867
|
+
} else t5 = $[4];
|
|
13868
|
+
const t6 = !areShown;
|
|
13869
|
+
let t7;
|
|
13870
|
+
if ($[5] !== seen) {
|
|
13871
|
+
t7 = RENDER_COUNT.format(seen);
|
|
13872
|
+
$[5] = seen;
|
|
13873
|
+
$[6] = t7;
|
|
13874
|
+
} else t7 = $[6];
|
|
13875
|
+
let t8;
|
|
13876
|
+
if ($[7] !== t7) {
|
|
13877
|
+
t8 = /* @__PURE__ */ jsx$1("span", {
|
|
13878
|
+
className: "dt-renders-seen",
|
|
13879
|
+
children: t7
|
|
13880
|
+
});
|
|
13881
|
+
$[7] = t7;
|
|
13882
|
+
$[8] = t8;
|
|
13883
|
+
} else t8 = $[8];
|
|
13884
|
+
let t9;
|
|
13885
|
+
if ($[9] !== areShown || $[10] !== t6 || $[11] !== t8) {
|
|
13886
|
+
t9 = /* @__PURE__ */ jsx$1("span", {
|
|
13887
|
+
"aria-hidden": t6,
|
|
13888
|
+
className: "dt-renders-slot",
|
|
13889
|
+
"data-shown": areShown,
|
|
13890
|
+
children: t8
|
|
13891
|
+
});
|
|
13892
|
+
$[9] = areShown;
|
|
13893
|
+
$[10] = t6;
|
|
13894
|
+
$[11] = t8;
|
|
13895
|
+
$[12] = t9;
|
|
13896
|
+
} else t9 = $[12];
|
|
13897
|
+
let t10;
|
|
13898
|
+
if ($[13] !== areShown || $[14] !== onToggle || $[15] !== t1 || $[16] !== t5 || $[17] !== t9) {
|
|
13899
|
+
t10 = /* @__PURE__ */ jsxs("button", {
|
|
13900
|
+
"aria-label": "Highlight renders",
|
|
13901
|
+
"aria-pressed": areShown,
|
|
13902
|
+
className: "dt-renders-toggle",
|
|
13903
|
+
onClick: onToggle,
|
|
13904
|
+
title: t1,
|
|
13905
|
+
type: "button",
|
|
13906
|
+
children: [
|
|
13907
|
+
t2,
|
|
13908
|
+
t5,
|
|
13909
|
+
t9
|
|
13910
|
+
]
|
|
13911
|
+
});
|
|
13912
|
+
$[13] = areShown;
|
|
13913
|
+
$[14] = onToggle;
|
|
13914
|
+
$[15] = t1;
|
|
13915
|
+
$[16] = t5;
|
|
13916
|
+
$[17] = t9;
|
|
13917
|
+
$[18] = t10;
|
|
13918
|
+
} else t10 = $[18];
|
|
13919
|
+
return t10;
|
|
13779
13920
|
}
|
|
13780
13921
|
function RendersFooter(t0) {
|
|
13781
|
-
const $ = c$1(
|
|
13922
|
+
const $ = c$1(24);
|
|
13782
13923
|
const { areShown, end, onInspect, onToggle } = t0;
|
|
13783
13924
|
const [isListOpen, setIsListOpen] = useStoredPreference(STORED_LIST);
|
|
13784
|
-
const seen = useSyncExternalStore(onRenderReports, rendersSeen);
|
|
13785
13925
|
const listId = useId();
|
|
13786
|
-
const
|
|
13787
|
-
let
|
|
13788
|
-
if ($[0] !==
|
|
13789
|
-
|
|
13926
|
+
const t1 = areShown && isListOpen;
|
|
13927
|
+
let t2;
|
|
13928
|
+
if ($[0] !== listId || $[1] !== onInspect || $[2] !== t1) {
|
|
13929
|
+
t2 = /* @__PURE__ */ jsx$1(RenderedList, {
|
|
13790
13930
|
id: listId,
|
|
13931
|
+
isShown: t1,
|
|
13791
13932
|
onInspect
|
|
13792
13933
|
});
|
|
13793
|
-
$[0] =
|
|
13794
|
-
$[1] =
|
|
13795
|
-
$[2] =
|
|
13796
|
-
$[3] =
|
|
13797
|
-
} else
|
|
13798
|
-
const t2 = areShown ? "Stop highlighting renders" : void 0;
|
|
13934
|
+
$[0] = listId;
|
|
13935
|
+
$[1] = onInspect;
|
|
13936
|
+
$[2] = t1;
|
|
13937
|
+
$[3] = t2;
|
|
13938
|
+
} else t2 = $[3];
|
|
13799
13939
|
let t3;
|
|
13800
|
-
if ($[4]
|
|
13801
|
-
t3 = /* @__PURE__ */ jsx$1(
|
|
13802
|
-
|
|
13803
|
-
|
|
13940
|
+
if ($[4] !== areShown || $[5] !== onToggle) {
|
|
13941
|
+
t3 = /* @__PURE__ */ jsx$1(RendersSwitch, {
|
|
13942
|
+
areShown,
|
|
13943
|
+
onToggle
|
|
13944
|
+
});
|
|
13945
|
+
$[4] = areShown;
|
|
13946
|
+
$[5] = onToggle;
|
|
13947
|
+
$[6] = t3;
|
|
13948
|
+
} else t3 = $[6];
|
|
13804
13949
|
let t4;
|
|
13805
|
-
if ($[
|
|
13806
|
-
t4 =
|
|
13807
|
-
|
|
13808
|
-
|
|
13809
|
-
|
|
13810
|
-
$[
|
|
13811
|
-
$[
|
|
13812
|
-
|
|
13813
|
-
} else t4 = $[7];
|
|
13950
|
+
if ($[7] !== isListOpen || $[8] !== setIsListOpen) {
|
|
13951
|
+
t4 = () => {
|
|
13952
|
+
setIsListOpen(!isListOpen);
|
|
13953
|
+
};
|
|
13954
|
+
$[7] = isListOpen;
|
|
13955
|
+
$[8] = setIsListOpen;
|
|
13956
|
+
$[9] = t4;
|
|
13957
|
+
} else t4 = $[9];
|
|
13814
13958
|
let t5;
|
|
13815
|
-
if ($[
|
|
13816
|
-
t5 = /* @__PURE__ */
|
|
13817
|
-
|
|
13818
|
-
|
|
13819
|
-
|
|
13820
|
-
|
|
13821
|
-
title: t2,
|
|
13822
|
-
type: "button",
|
|
13823
|
-
children: [t3, t4]
|
|
13959
|
+
if ($[10] !== areShown || $[11] !== isListOpen || $[12] !== listId || $[13] !== t4) {
|
|
13960
|
+
t5 = /* @__PURE__ */ jsx$1(RenderedListToggle, {
|
|
13961
|
+
controls: listId,
|
|
13962
|
+
isOpen: isListOpen,
|
|
13963
|
+
isShown: areShown,
|
|
13964
|
+
onToggle: t4
|
|
13824
13965
|
});
|
|
13825
|
-
$[
|
|
13826
|
-
$[
|
|
13827
|
-
$[
|
|
13828
|
-
$[
|
|
13829
|
-
$[
|
|
13830
|
-
} else t5 = $[
|
|
13966
|
+
$[10] = areShown;
|
|
13967
|
+
$[11] = isListOpen;
|
|
13968
|
+
$[12] = listId;
|
|
13969
|
+
$[13] = t4;
|
|
13970
|
+
$[14] = t5;
|
|
13971
|
+
} else t5 = $[14];
|
|
13831
13972
|
let t6;
|
|
13832
|
-
if ($[
|
|
13833
|
-
t6 =
|
|
13834
|
-
|
|
13835
|
-
|
|
13836
|
-
onToggle: () => {
|
|
13837
|
-
setIsListOpen(!isListOpen);
|
|
13838
|
-
}
|
|
13973
|
+
if ($[15] !== end || $[16] !== t5) {
|
|
13974
|
+
t6 = /* @__PURE__ */ jsxs("div", {
|
|
13975
|
+
className: "dt-renders-end",
|
|
13976
|
+
children: [t5, end]
|
|
13839
13977
|
});
|
|
13840
|
-
$[
|
|
13841
|
-
$[
|
|
13842
|
-
$[
|
|
13843
|
-
|
|
13844
|
-
$[17] = setIsListOpen;
|
|
13845
|
-
$[18] = t6;
|
|
13846
|
-
} else t6 = $[18];
|
|
13978
|
+
$[15] = end;
|
|
13979
|
+
$[16] = t5;
|
|
13980
|
+
$[17] = t6;
|
|
13981
|
+
} else t6 = $[17];
|
|
13847
13982
|
let t7;
|
|
13848
|
-
if ($[
|
|
13983
|
+
if ($[18] !== t3 || $[19] !== t6) {
|
|
13849
13984
|
t7 = /* @__PURE__ */ jsxs("div", {
|
|
13850
|
-
className: "dt-renders-end",
|
|
13851
|
-
children: [t6, end]
|
|
13852
|
-
});
|
|
13853
|
-
$[19] = end;
|
|
13854
|
-
$[20] = t6;
|
|
13855
|
-
$[21] = t7;
|
|
13856
|
-
} else t7 = $[21];
|
|
13857
|
-
let t8;
|
|
13858
|
-
if ($[22] !== t5 || $[23] !== t7) {
|
|
13859
|
-
t8 = /* @__PURE__ */ jsxs("div", {
|
|
13860
13985
|
className: "dt-renders-bar",
|
|
13861
|
-
children: [
|
|
13986
|
+
children: [t3, t6]
|
|
13862
13987
|
});
|
|
13863
|
-
$[
|
|
13864
|
-
$[
|
|
13865
|
-
$[
|
|
13866
|
-
} else
|
|
13867
|
-
let
|
|
13868
|
-
if ($[
|
|
13869
|
-
|
|
13988
|
+
$[18] = t3;
|
|
13989
|
+
$[19] = t6;
|
|
13990
|
+
$[20] = t7;
|
|
13991
|
+
} else t7 = $[20];
|
|
13992
|
+
let t8;
|
|
13993
|
+
if ($[21] !== t2 || $[22] !== t7) {
|
|
13994
|
+
t8 = /* @__PURE__ */ jsxs("footer", {
|
|
13870
13995
|
className: "dt-renders",
|
|
13871
|
-
children: [
|
|
13996
|
+
children: [t2, t7]
|
|
13872
13997
|
});
|
|
13873
|
-
$[
|
|
13874
|
-
$[
|
|
13875
|
-
$[
|
|
13876
|
-
} else
|
|
13877
|
-
return
|
|
13998
|
+
$[21] = t2;
|
|
13999
|
+
$[22] = t7;
|
|
14000
|
+
$[23] = t8;
|
|
14001
|
+
} else t8 = $[23];
|
|
14002
|
+
return t8;
|
|
13878
14003
|
}
|
|
13879
14004
|
// src/client/route/use-dev-route.ts
|
|
13880
14005
|
function settled(current, probed) {
|
|
@@ -13989,8 +14114,10 @@ ${themeTokens(".dt")}
|
|
|
13989
14114
|
}
|
|
13990
14115
|
*, *::before, *::after { box-sizing: border-box; }
|
|
13991
14116
|
.dt { font-family: var(--rt-font); font-size: 13px; line-height: 20px; letter-spacing: -.003em; color: var(--rt-text); }
|
|
13992
|
-
button { margin: 0; padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; color: inherit;
|
|
13993
|
-
button
|
|
14117
|
+
button { margin: 0; padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; color: inherit; touch-action: manipulation; }
|
|
14118
|
+
:is(button, select, option, summary) { cursor: pointer; }
|
|
14119
|
+
:is(button, select, option):disabled { cursor: not-allowed; }
|
|
14120
|
+
button:disabled { opacity: .35; }
|
|
13994
14121
|
:where(button) > * { transition: scale 120ms var(--rt-ease); }
|
|
13995
14122
|
:where(button:active:not(:disabled)) > * { scale: .96; }
|
|
13996
14123
|
svg { flex-shrink: 0; }
|
|
@@ -14048,7 +14175,7 @@ const REDUCED_MOTION_STYLES = `
|
|
|
14048
14175
|
*, *::before, *::after { animation: none !important; transition: none !important; }
|
|
14049
14176
|
button, .dt-row, .dt-lens { transition: background-color 120ms linear, color 120ms linear !important; }
|
|
14050
14177
|
.dt-flash { --pulse: 0 !important; opacity: 1 !important; }
|
|
14051
|
-
.dt-body { animation: dt-edge-top linear both, dt-edge-bottom linear both !important; animation-timeline: scroll(self), scroll(self) !important; animation-range: 0 var(--edge), calc(100% - var(--edge)) 100% !important; }
|
|
14178
|
+
:is(.dt-body, .dt-rendered) { animation: dt-edge-top linear both, dt-edge-bottom linear both !important; animation-timeline: scroll(self), scroll(self) !important; animation-range: 0 var(--edge), calc(100% - var(--edge)) 100% !important; }
|
|
14052
14179
|
.dt-body::before { animation: dt-edge-in linear both !important; animation-timeline: scroll(nearest) !important; animation-range: 0 var(--edge) !important; }
|
|
14053
14180
|
.dt-body::after { animation: dt-edge-out linear both !important; animation-timeline: scroll(nearest) !important; animation-range: calc(100% - var(--edge)) 100% !important; }
|
|
14054
14181
|
.dt-lens-strip { animation: dt-lens-edges linear both !important; animation-timeline: scroll(self inline) !important; }
|
|
@@ -14669,7 +14796,7 @@ const PANEL_STYLES = `
|
|
|
14669
14796
|
}
|
|
14670
14797
|
.dt-lenses ~ .dt-body { --pad-top: 12px; }
|
|
14671
14798
|
@supports (animation-timeline: scroll()) {
|
|
14672
|
-
.dt-body {
|
|
14799
|
+
:is(.dt-body, .dt-rendered) {
|
|
14673
14800
|
--edge: 24px;
|
|
14674
14801
|
--ramp: transparent, rgb(0 0 0 / 16%) calc(var(--edge) * .25), rgb(0 0 0 / 50%) calc(var(--edge) * .5), rgb(0 0 0 / 84%) calc(var(--edge) * .75), #000 var(--edge);
|
|
14675
14802
|
mask:
|
|
@@ -14680,6 +14807,7 @@ const PANEL_STYLES = `
|
|
|
14680
14807
|
animation-timeline: scroll(self), scroll(self);
|
|
14681
14808
|
animation-range: 0 var(--edge), calc(100% - var(--edge)) 100%;
|
|
14682
14809
|
}
|
|
14810
|
+
.dt-rendered { --edge: 16px; }
|
|
14683
14811
|
.dt-body::before, .dt-body::after {
|
|
14684
14812
|
content: ""; position: sticky; z-index: 1; flex: none; height: var(--edge); margin-inline: -12px;
|
|
14685
14813
|
opacity: 0; pointer-events: none; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
|
|
@@ -14750,21 +14878,41 @@ ${Array.from({ length: 8 }, (_, index) => `:is(.dt-body, .dt-inspector) > :nth-c
|
|
|
14750
14878
|
.dt-row-change mark { background: none; color: inherit; }
|
|
14751
14879
|
.dt-row-change mark[data-change="removed"] { color: var(--rt-text-faint); }
|
|
14752
14880
|
|
|
14753
|
-
.dt-renders { display: flex; flex: none; flex-direction: column; max-height: 45%; padding: 4px 6px 6px;
|
|
14881
|
+
.dt-renders { display: flex; flex: none; flex-direction: column; max-height: 45%; padding: 4px 6px 6px; }
|
|
14754
14882
|
.dt-renders-bar { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 6px; }
|
|
14755
14883
|
.dt-renders-end { display: flex; align-items: center; gap: 2px; }
|
|
14756
14884
|
.dt-renders-toggle, .dt-renders-more {
|
|
14757
14885
|
display: inline-flex; align-items: center; gap: 6px; height: var(--hit); padding: 0 10px 0 8px; border-radius: var(--rt-pill);
|
|
14758
|
-
color: var(--rt-text-muted); font-size: 12px; font-weight: 500; line-height: 16px;
|
|
14886
|
+
color: var(--rt-text-muted); font-size: 12px; font-weight: 500; line-height: 16px;
|
|
14887
|
+
transition: color 120ms var(--rt-ease), background-color 200ms var(--rt-ease);
|
|
14759
14888
|
}
|
|
14889
|
+
.dt-renders-toggle { gap: 0; }
|
|
14760
14890
|
.dt-renders-toggle[aria-pressed="true"] { background: color-mix(in srgb, var(--rt-flash) 12%, transparent); color: var(--rt-flash-ink); }
|
|
14761
|
-
.dt-renders-
|
|
14891
|
+
.dt-renders-slot {
|
|
14892
|
+
display: inline-grid; grid-template-columns: 1fr; overflow: hidden;
|
|
14893
|
+
transition: grid-template-columns 240ms var(--rt-ease), opacity 200ms var(--rt-ease) 40ms, filter 200ms var(--rt-ease) 40ms;
|
|
14894
|
+
}
|
|
14895
|
+
.dt-renders-slot[data-shown="false"] {
|
|
14896
|
+
grid-template-columns: 0fr; opacity: 0; filter: blur(2px);
|
|
14897
|
+
transition-duration: 180ms, 120ms, 120ms; transition-delay: 0s; transition-timing-function: var(--rt-ease-exit);
|
|
14898
|
+
}
|
|
14899
|
+
.dt-renders-slot > * { min-width: 0; white-space: nowrap; }
|
|
14900
|
+
.dt-renders-toggle .dt-renders-slot > *::before { content: ""; display: inline-block; width: 6px; }
|
|
14901
|
+
.dt-renders-seen { font-weight: 550; font-variant-numeric: tabular-nums; letter-spacing: 0; }
|
|
14762
14902
|
.dt-renders-more { gap: 4px; padding: 0 6px 0 10px; font-variant-numeric: tabular-nums; }
|
|
14763
14903
|
.dt-renders-more svg { transition: rotate 200ms var(--rt-ease), scale 120ms var(--rt-ease); }
|
|
14764
14904
|
.dt-renders-more[aria-expanded="true"] svg { rotate: 180deg; }
|
|
14765
14905
|
.dt-renders button:focus-visible { outline-offset: -2px; }
|
|
14906
|
+
.dt-rendered-reveal {
|
|
14907
|
+
display: flex; flex: 0 1 auto; flex-direction: column; min-height: 0; margin-bottom: 4px; overflow: hidden;
|
|
14908
|
+
transition: max-height 260ms var(--rt-ease), margin-bottom 260ms var(--rt-ease), opacity 200ms var(--rt-ease);
|
|
14909
|
+
}
|
|
14910
|
+
.dt-rendered-reveal[data-shown="false"] {
|
|
14911
|
+
margin-bottom: 0; opacity: 0;
|
|
14912
|
+
transition-duration: 200ms, 200ms, 160ms; transition-timing-function: var(--rt-ease-exit);
|
|
14913
|
+
}
|
|
14766
14914
|
.dt-rendered {
|
|
14767
|
-
display: grid; flex: 0 1 auto; min-height: 0; margin: 0
|
|
14915
|
+
display: grid; flex: 0 1 auto; min-height: 0; margin: 0; padding: 0; list-style: none; overflow-y: auto; overscroll-behavior: contain;
|
|
14768
14916
|
scrollbar-width: thin; scrollbar-color: var(--rt-border) transparent;
|
|
14769
14917
|
}
|
|
14770
14918
|
.dt-rendered-row {
|
|
@@ -14779,7 +14927,10 @@ ${Array.from({ length: 8 }, (_, index) => `:is(.dt-body, .dt-inspector) > :nth-c
|
|
|
14779
14927
|
.dt-rendered-count { flex: none; margin-left: auto; color: var(--rt-text-muted); font-variant-numeric: tabular-nums; }
|
|
14780
14928
|
.dt-rendered-count[data-latest="true"] { animation: dt-rendered-tick ${FLASH_MS}ms linear; }
|
|
14781
14929
|
@keyframes dt-rendered-tick { from { color: var(--rt-flash-ink); } }
|
|
14782
|
-
.dt-rendered-empty {
|
|
14930
|
+
.dt-rendered-empty {
|
|
14931
|
+
display: flex; flex: none; align-items: center; margin: 0; padding: 0 8px; overflow: hidden;
|
|
14932
|
+
color: var(--rt-text-muted); font-size: 12px; line-height: 16px; white-space: nowrap;
|
|
14933
|
+
}
|
|
14783
14934
|
|
|
14784
14935
|
.dt-issues { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
|
|
14785
14936
|
.dt-issues code { color: var(--rt-error-ink); font-size: 11.5px; }
|
|
@@ -20521,13 +20672,14 @@ function transcriberKeyActions(options) {
|
|
|
20521
20672
|
const SPEECH_HEARINGS = ["browser", "device"];
|
|
20522
20673
|
const HEARINGS = [...SPEECH_HEARINGS, "transcriber"];
|
|
20523
20674
|
// src/client/voice/use-listening.ts
|
|
20524
|
-
function useDeviceAvailability(language) {
|
|
20525
|
-
const $ = c$1(
|
|
20675
|
+
function useDeviceAvailability(language, isShown) {
|
|
20676
|
+
const $ = c$1(4);
|
|
20526
20677
|
const [check, setCheck] = useState(null);
|
|
20527
20678
|
let t0;
|
|
20528
20679
|
let t1;
|
|
20529
|
-
if ($[0] !== language) {
|
|
20680
|
+
if ($[0] !== isShown || $[1] !== language) {
|
|
20530
20681
|
t0 = () => {
|
|
20682
|
+
if (!isShown) return;
|
|
20531
20683
|
let isCurrent = true;
|
|
20532
20684
|
const probe = async () => {
|
|
20533
20685
|
const availability = await deviceAvailability(language);
|
|
@@ -20541,13 +20693,14 @@ function useDeviceAvailability(language) {
|
|
|
20541
20693
|
isCurrent = false;
|
|
20542
20694
|
};
|
|
20543
20695
|
};
|
|
20544
|
-
t1 = [language];
|
|
20545
|
-
$[0] =
|
|
20546
|
-
$[1] =
|
|
20547
|
-
$[2] =
|
|
20696
|
+
t1 = [isShown, language];
|
|
20697
|
+
$[0] = isShown;
|
|
20698
|
+
$[1] = language;
|
|
20699
|
+
$[2] = t0;
|
|
20700
|
+
$[3] = t1;
|
|
20548
20701
|
} else {
|
|
20549
|
-
t0 = $[
|
|
20550
|
-
t1 = $[
|
|
20702
|
+
t0 = $[2];
|
|
20703
|
+
t1 = $[3];
|
|
20551
20704
|
}
|
|
20552
20705
|
useEffect(t0, t1);
|
|
20553
20706
|
return check?.language === language ? check.availability : null;
|
|
@@ -20569,8 +20722,8 @@ function fallback(offered, transcribers) {
|
|
|
20569
20722
|
}
|
|
20570
20723
|
function useListening(options) {
|
|
20571
20724
|
const $ = c$1(16);
|
|
20572
|
-
const { status, stored } = options;
|
|
20573
|
-
const device = useDeviceAvailability(stored.language);
|
|
20725
|
+
const { isShown, status, stored } = options;
|
|
20726
|
+
const device = useDeviceAvailability(stored.language, isShown);
|
|
20574
20727
|
let t0;
|
|
20575
20728
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
20576
20729
|
t0 = canRecordSpeech();
|
|
@@ -20671,49 +20824,51 @@ function blockerOf(isSupported, route) {
|
|
|
20671
20824
|
if (routeProblem !== void 0) return routeProblem;
|
|
20672
20825
|
return isSupported ? null : "unsupported";
|
|
20673
20826
|
}
|
|
20674
|
-
function useVoicePreferences(route) {
|
|
20675
|
-
const $ = c$1(
|
|
20827
|
+
function useVoicePreferences(route, isShown) {
|
|
20828
|
+
const $ = c$1(17);
|
|
20676
20829
|
const [stored, setStored] = useStoredPreference(VOICE_PREFERENCES);
|
|
20677
20830
|
const status = route.kind === "ready" ? route.status : null;
|
|
20678
20831
|
const agents = status?.agents ?? null;
|
|
20679
20832
|
let t0;
|
|
20680
|
-
if ($[0] !==
|
|
20833
|
+
if ($[0] !== isShown || $[1] !== status || $[2] !== stored) {
|
|
20681
20834
|
t0 = {
|
|
20835
|
+
isShown,
|
|
20682
20836
|
status,
|
|
20683
20837
|
stored
|
|
20684
20838
|
};
|
|
20685
|
-
$[0] =
|
|
20686
|
-
$[1] =
|
|
20687
|
-
$[2] =
|
|
20688
|
-
|
|
20839
|
+
$[0] = isShown;
|
|
20840
|
+
$[1] = status;
|
|
20841
|
+
$[2] = stored;
|
|
20842
|
+
$[3] = t0;
|
|
20843
|
+
} else t0 = $[3];
|
|
20689
20844
|
const { listening, offer } = useListening(t0);
|
|
20690
20845
|
let t1;
|
|
20691
|
-
if ($[
|
|
20846
|
+
if ($[4] !== agents || $[5] !== stored) {
|
|
20692
20847
|
t1 = agents?.find((t2) => {
|
|
20693
20848
|
const { id } = t2;
|
|
20694
20849
|
return id === stored.agent;
|
|
20695
20850
|
}) ?? agents?.find(_temp$7) ?? agents?.[0] ?? null;
|
|
20696
|
-
$[
|
|
20697
|
-
$[
|
|
20698
|
-
$[
|
|
20699
|
-
} else t1 = $[
|
|
20851
|
+
$[4] = agents;
|
|
20852
|
+
$[5] = stored;
|
|
20853
|
+
$[6] = t1;
|
|
20854
|
+
} else t1 = $[6];
|
|
20700
20855
|
const agent = t1;
|
|
20701
20856
|
const t2 = listening !== null;
|
|
20702
20857
|
const t3 = agent?.id ?? null;
|
|
20703
20858
|
let t4;
|
|
20704
|
-
if ($[
|
|
20859
|
+
if ($[7] !== listening || $[8] !== stored || $[9] !== t3) {
|
|
20705
20860
|
t4 = {
|
|
20706
20861
|
...stored,
|
|
20707
20862
|
...listening,
|
|
20708
20863
|
agent: t3
|
|
20709
20864
|
};
|
|
20710
|
-
$[
|
|
20711
|
-
$[
|
|
20712
|
-
$[
|
|
20713
|
-
$[
|
|
20714
|
-
} else t4 = $[
|
|
20865
|
+
$[7] = listening;
|
|
20866
|
+
$[8] = stored;
|
|
20867
|
+
$[9] = t3;
|
|
20868
|
+
$[10] = t4;
|
|
20869
|
+
} else t4 = $[10];
|
|
20715
20870
|
let t5;
|
|
20716
|
-
if ($[
|
|
20871
|
+
if ($[11] !== agents || $[12] !== offer || $[13] !== setStored || $[14] !== t2 || $[15] !== t4) {
|
|
20717
20872
|
t5 = {
|
|
20718
20873
|
agents,
|
|
20719
20874
|
isSupported: t2,
|
|
@@ -20721,13 +20876,13 @@ function useVoicePreferences(route) {
|
|
|
20721
20876
|
preferences: t4,
|
|
20722
20877
|
setStored
|
|
20723
20878
|
};
|
|
20724
|
-
$[
|
|
20725
|
-
$[
|
|
20726
|
-
$[
|
|
20727
|
-
$[
|
|
20728
|
-
$[
|
|
20729
|
-
$[
|
|
20730
|
-
} else t5 = $[
|
|
20879
|
+
$[11] = agents;
|
|
20880
|
+
$[12] = offer;
|
|
20881
|
+
$[13] = setStored;
|
|
20882
|
+
$[14] = t2;
|
|
20883
|
+
$[15] = t4;
|
|
20884
|
+
$[16] = t5;
|
|
20885
|
+
} else t5 = $[16];
|
|
20731
20886
|
return t5;
|
|
20732
20887
|
}
|
|
20733
20888
|
function _temp$7(t0) {
|
|
@@ -20873,9 +21028,9 @@ function useVoiceController(settings) {
|
|
|
20873
21028
|
return t3;
|
|
20874
21029
|
}
|
|
20875
21030
|
function useVoice(options) {
|
|
20876
|
-
const $ = c$1(
|
|
20877
|
-
const { components, refreshRoute, route } = options;
|
|
20878
|
-
const { agents, isSupported, offer, preferences, setStored } = useVoicePreferences(route);
|
|
21031
|
+
const $ = c$1(41);
|
|
21032
|
+
const { components, isOffered, isShown, refreshRoute, route } = options;
|
|
21033
|
+
const { agents, isSupported, offer, preferences, setStored } = useVoicePreferences(route, isShown);
|
|
20879
21034
|
const t0 = agents ?? NO_AGENTS;
|
|
20880
21035
|
let t1;
|
|
20881
21036
|
if ($[0] !== components || $[1] !== preferences || $[2] !== t0) {
|
|
@@ -20969,10 +21124,11 @@ function useVoice(options) {
|
|
|
20969
21124
|
const t10 = route.kind === "ready" ? route.status.follow : null;
|
|
20970
21125
|
const t11 = blocker ?? state.problem;
|
|
20971
21126
|
let t12;
|
|
20972
|
-
if ($[28] !== agents || $[29] !== controller.recorder.feed || $[30] !==
|
|
21127
|
+
if ($[28] !== agents || $[29] !== controller.recorder.feed || $[30] !== isOffered || $[31] !== offer || $[32] !== preferences || $[33] !== state.analysis || $[34] !== state.phase || $[35] !== state.session || $[36] !== state.shotUrls || $[37] !== t10 || $[38] !== t11 || $[39] !== t9) {
|
|
20973
21128
|
t12 = {
|
|
20974
21129
|
...offer,
|
|
20975
21130
|
actions: t9,
|
|
21131
|
+
isOffered,
|
|
20976
21132
|
agents,
|
|
20977
21133
|
analysis: state.analysis,
|
|
20978
21134
|
feed: controller.recorder.feed,
|
|
@@ -20985,17 +21141,18 @@ function useVoice(options) {
|
|
|
20985
21141
|
};
|
|
20986
21142
|
$[28] = agents;
|
|
20987
21143
|
$[29] = controller.recorder.feed;
|
|
20988
|
-
$[30] =
|
|
20989
|
-
$[31] =
|
|
20990
|
-
$[32] =
|
|
20991
|
-
$[33] = state.
|
|
20992
|
-
$[34] = state.
|
|
20993
|
-
$[35] = state.
|
|
20994
|
-
$[36] =
|
|
20995
|
-
$[37] =
|
|
20996
|
-
$[38] =
|
|
20997
|
-
$[39] =
|
|
20998
|
-
|
|
21144
|
+
$[30] = isOffered;
|
|
21145
|
+
$[31] = offer;
|
|
21146
|
+
$[32] = preferences;
|
|
21147
|
+
$[33] = state.analysis;
|
|
21148
|
+
$[34] = state.phase;
|
|
21149
|
+
$[35] = state.session;
|
|
21150
|
+
$[36] = state.shotUrls;
|
|
21151
|
+
$[37] = t10;
|
|
21152
|
+
$[38] = t11;
|
|
21153
|
+
$[39] = t9;
|
|
21154
|
+
$[40] = t12;
|
|
21155
|
+
} else t12 = $[40];
|
|
20999
21156
|
return t12;
|
|
21000
21157
|
}
|
|
21001
21158
|
// src/client/voice/feedback/feedback-styles.ts
|
|
@@ -21217,12 +21374,12 @@ ${`
|
|
|
21217
21374
|
.dt-voice-select select:focus-visible { outline: none; }
|
|
21218
21375
|
.dt-voice-select:has(select:focus-visible) { outline: 2px solid var(--rt-accent); outline-offset: 2px; }
|
|
21219
21376
|
.dt-voice-select ::picker(select) {
|
|
21220
|
-
position-area: block-end span-inline-start; max-width: min(300px, 90vw); max-height: min(320px, 60vh); margin-block: 4px; padding: 4px; border: 0;
|
|
21377
|
+
position-area: block-end span-inline-start; min-inline-size: max(anchor-size(self-inline), 200px); max-width: min(300px, 90vw); max-height: min(320px, 60vh); margin-block: 4px; padding: 4px; border: 0;
|
|
21221
21378
|
border-radius: var(--rt-radius-card); background: var(--rt-card); box-shadow: var(--rt-shadow-popover); color: var(--rt-text);
|
|
21222
21379
|
}
|
|
21223
|
-
.dt-voice-select option { gap:
|
|
21380
|
+
.dt-voice-select option { gap: 12px; min-height: 32px; padding: 6px 10px 6px 12px; border-radius: calc(var(--rt-radius-card) - 4px); font-weight: 400; text-wrap: pretty; }
|
|
21224
21381
|
.dt-voice-select option:checked { font-weight: 500; }
|
|
21225
|
-
.dt-voice-select option::checkmark { color: var(--rt-accent-ink); }
|
|
21382
|
+
.dt-voice-select option::checkmark { order: 1; margin-inline-start: auto; color: var(--rt-accent-ink); }
|
|
21226
21383
|
.dt-voice-select option:focus-visible { background: var(--rt-bg-hover); outline: none; }
|
|
21227
21384
|
}
|
|
21228
21385
|
.dt-voice-listening { display: flex; flex-direction: column; gap: 6px; }
|
|
@@ -21263,7 +21420,7 @@ ${`
|
|
|
21263
21420
|
.dt-voice-actions svg { width: 14px; height: 14px; }
|
|
21264
21421
|
.dt-voice-transcript summary {
|
|
21265
21422
|
display: flex; align-items: center; gap: 8px; height: var(--hit); padding: 0 4px; width: fit-content;
|
|
21266
|
-
border-radius: var(--rt-radius-tiny); color: var(--rt-text-muted); font-weight: 500; list-style: none;
|
|
21423
|
+
border-radius: var(--rt-radius-tiny); color: var(--rt-text-muted); font-weight: 500; list-style: none;
|
|
21267
21424
|
}
|
|
21268
21425
|
.dt-voice-transcript summary::-webkit-details-marker { display: none; }
|
|
21269
21426
|
.dt-voice-transcript ol { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; padding: 0 4px; list-style: none; }
|
|
@@ -21291,7 +21448,7 @@ ${PAGE_STYLES}
|
|
|
21291
21448
|
${`
|
|
21292
21449
|
.dt-voice-history summary {
|
|
21293
21450
|
display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--hit); padding: 0 4px;
|
|
21294
|
-
border-radius: var(--rt-radius-tiny); list-style: none;
|
|
21451
|
+
border-radius: var(--rt-radius-tiny); list-style: none;
|
|
21295
21452
|
}
|
|
21296
21453
|
.dt-voice-history summary::-webkit-details-marker { display: none; }
|
|
21297
21454
|
.dt-voice-when { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
@@ -22280,6 +22437,7 @@ function VoiceToggle(t0) {
|
|
|
22280
22437
|
t2 = $[2];
|
|
22281
22438
|
}
|
|
22282
22439
|
useEffect(t1, t2);
|
|
22440
|
+
if (!voice.isOffered) return null;
|
|
22283
22441
|
let t3;
|
|
22284
22442
|
if ($[3] !== onOpen || $[4] !== place || $[5] !== voice) {
|
|
22285
22443
|
t3 = /* @__PURE__ */ jsx$1(MainButton, {
|
|
@@ -27105,135 +27263,140 @@ function LayerSurface(t0) {
|
|
|
27105
27263
|
return t10;
|
|
27106
27264
|
}
|
|
27107
27265
|
function Layer(props) {
|
|
27108
|
-
const $ = c$1(
|
|
27266
|
+
const $ = c$1(42);
|
|
27109
27267
|
const state = useLayerState(useLayerConfig(props), props.rememberDotVisibility);
|
|
27110
27268
|
const [route, refreshRoute] = useDevRoute();
|
|
27111
|
-
|
|
27112
|
-
|
|
27113
|
-
|
|
27269
|
+
const t0 = props.voice === true;
|
|
27270
|
+
let t1;
|
|
27271
|
+
if ($[0] !== refreshRoute || $[1] !== route || $[2] !== state.navigation.isVoice || $[3] !== state.picker.components || $[4] !== t0) {
|
|
27272
|
+
t1 = {
|
|
27114
27273
|
components: state.picker.components,
|
|
27274
|
+
isOffered: t0,
|
|
27275
|
+
isShown: state.navigation.isVoice,
|
|
27115
27276
|
refreshRoute,
|
|
27116
27277
|
route
|
|
27117
27278
|
};
|
|
27118
27279
|
$[0] = refreshRoute;
|
|
27119
27280
|
$[1] = route;
|
|
27120
|
-
$[2] = state.
|
|
27121
|
-
$[3] =
|
|
27122
|
-
|
|
27123
|
-
|
|
27281
|
+
$[2] = state.navigation.isVoice;
|
|
27282
|
+
$[3] = state.picker.components;
|
|
27283
|
+
$[4] = t0;
|
|
27284
|
+
$[5] = t1;
|
|
27285
|
+
} else t1 = $[5];
|
|
27286
|
+
const voice = useVoice(t1);
|
|
27124
27287
|
const { navigation, selection } = state;
|
|
27125
27288
|
const { isOpen } = navigation;
|
|
27126
27289
|
const dock = useDock(isOpen);
|
|
27127
27290
|
const theme = useTheme();
|
|
27128
|
-
const
|
|
27129
|
-
let t2;
|
|
27130
|
-
if ($[4] !== state) {
|
|
27131
|
-
t2 = layerKeys(state);
|
|
27132
|
-
$[4] = state;
|
|
27133
|
-
$[5] = t2;
|
|
27134
|
-
} else t2 = $[5];
|
|
27291
|
+
const t2 = theme.theme;
|
|
27135
27292
|
let t3;
|
|
27136
|
-
if ($[6] !== state
|
|
27137
|
-
t3 = state
|
|
27293
|
+
if ($[6] !== state) {
|
|
27294
|
+
t3 = layerKeys(state);
|
|
27295
|
+
$[6] = state;
|
|
27296
|
+
$[7] = t3;
|
|
27297
|
+
} else t3 = $[7];
|
|
27298
|
+
let t4;
|
|
27299
|
+
if ($[8] !== state.areRendersShown) {
|
|
27300
|
+
t4 = state.areRendersShown && /* @__PURE__ */ jsx$1("div", {
|
|
27138
27301
|
"aria-hidden": "true",
|
|
27139
27302
|
className: "dt-flashes",
|
|
27140
27303
|
ref: drawFlashes
|
|
27141
27304
|
});
|
|
27142
|
-
$[
|
|
27143
|
-
$[
|
|
27144
|
-
} else
|
|
27145
|
-
const
|
|
27146
|
-
const
|
|
27147
|
-
const
|
|
27148
|
-
const
|
|
27149
|
-
let
|
|
27150
|
-
if ($[
|
|
27151
|
-
|
|
27305
|
+
$[8] = state.areRendersShown;
|
|
27306
|
+
$[9] = t4;
|
|
27307
|
+
} else t4 = $[9];
|
|
27308
|
+
const t5 = isOpen ? state.shownCorners : state.corners;
|
|
27309
|
+
const t6 = isOpen ? navigation.element : null;
|
|
27310
|
+
const t7 = isOpen ? selection : null;
|
|
27311
|
+
const t8 = isOpen ? state.shown : state.instances;
|
|
27312
|
+
let t9;
|
|
27313
|
+
if ($[10] !== navigation.inspectElement || $[11] !== state.areDotsShown || $[12] !== state.hovered || $[13] !== state.instances || $[14] !== state.pressDot || $[15] !== state.setHovered || $[16] !== state.siteNumbers || $[17] !== t5 || $[18] !== t6 || $[19] !== t7 || $[20] !== t8) {
|
|
27314
|
+
t9 = /* @__PURE__ */ jsx$1(PageLayer, {
|
|
27152
27315
|
areDotsShown: state.areDotsShown,
|
|
27153
|
-
corners:
|
|
27316
|
+
corners: t5,
|
|
27154
27317
|
hovered: state.hovered,
|
|
27155
|
-
inspected:
|
|
27318
|
+
inspected: t6,
|
|
27156
27319
|
instances: state.instances,
|
|
27157
27320
|
onHover: state.setHovered,
|
|
27158
27321
|
onInspect: navigation.inspectElement,
|
|
27159
27322
|
onSelect: state.pressDot,
|
|
27160
|
-
selection:
|
|
27161
|
-
shown:
|
|
27323
|
+
selection: t7,
|
|
27324
|
+
shown: t8,
|
|
27162
27325
|
siteNumbers: state.siteNumbers
|
|
27163
27326
|
});
|
|
27164
|
-
$[
|
|
27165
|
-
$[
|
|
27166
|
-
$[
|
|
27167
|
-
$[
|
|
27168
|
-
$[
|
|
27169
|
-
$[
|
|
27170
|
-
$[
|
|
27171
|
-
$[
|
|
27172
|
-
$[
|
|
27173
|
-
$[
|
|
27174
|
-
$[
|
|
27175
|
-
$[19] = t8;
|
|
27176
|
-
} else t8 = $[19];
|
|
27177
|
-
let t9;
|
|
27178
|
-
if ($[20] !== voice) {
|
|
27179
|
-
t9 = /* @__PURE__ */ jsx$1(VoicePageLayer, { voice });
|
|
27180
|
-
$[20] = voice;
|
|
27327
|
+
$[10] = navigation.inspectElement;
|
|
27328
|
+
$[11] = state.areDotsShown;
|
|
27329
|
+
$[12] = state.hovered;
|
|
27330
|
+
$[13] = state.instances;
|
|
27331
|
+
$[14] = state.pressDot;
|
|
27332
|
+
$[15] = state.setHovered;
|
|
27333
|
+
$[16] = state.siteNumbers;
|
|
27334
|
+
$[17] = t5;
|
|
27335
|
+
$[18] = t6;
|
|
27336
|
+
$[19] = t7;
|
|
27337
|
+
$[20] = t8;
|
|
27181
27338
|
$[21] = t9;
|
|
27182
27339
|
} else t9 = $[21];
|
|
27183
27340
|
let t10;
|
|
27184
|
-
if ($[22] !==
|
|
27185
|
-
t10 = /* @__PURE__ */ jsx$1(
|
|
27341
|
+
if ($[22] !== voice) {
|
|
27342
|
+
t10 = /* @__PURE__ */ jsx$1(VoicePageLayer, { voice });
|
|
27343
|
+
$[22] = voice;
|
|
27344
|
+
$[23] = t10;
|
|
27345
|
+
} else t10 = $[23];
|
|
27346
|
+
let t11;
|
|
27347
|
+
if ($[24] !== dock || $[25] !== route || $[26] !== state || $[27] !== theme || $[28] !== voice) {
|
|
27348
|
+
t11 = /* @__PURE__ */ jsx$1(LayerSurface, {
|
|
27186
27349
|
dock,
|
|
27187
27350
|
route,
|
|
27188
27351
|
state,
|
|
27189
27352
|
theme,
|
|
27190
27353
|
voice
|
|
27191
27354
|
});
|
|
27192
|
-
$[
|
|
27193
|
-
$[
|
|
27194
|
-
$[
|
|
27195
|
-
$[
|
|
27196
|
-
$[
|
|
27197
|
-
$[
|
|
27198
|
-
} else
|
|
27199
|
-
let
|
|
27200
|
-
if ($[
|
|
27201
|
-
|
|
27355
|
+
$[24] = dock;
|
|
27356
|
+
$[25] = route;
|
|
27357
|
+
$[26] = state;
|
|
27358
|
+
$[27] = theme;
|
|
27359
|
+
$[28] = voice;
|
|
27360
|
+
$[29] = t11;
|
|
27361
|
+
} else t11 = $[29];
|
|
27362
|
+
let t12;
|
|
27363
|
+
if ($[30] !== dock || $[31] !== isOpen || $[32] !== state.picker) {
|
|
27364
|
+
t12 = /* @__PURE__ */ jsx$1(PickerOverlay, {
|
|
27202
27365
|
dock,
|
|
27203
27366
|
isPanelOpen: isOpen,
|
|
27204
27367
|
picker: state.picker
|
|
27205
27368
|
});
|
|
27206
|
-
$[
|
|
27207
|
-
$[
|
|
27208
|
-
$[
|
|
27209
|
-
$[
|
|
27210
|
-
} else
|
|
27211
|
-
let
|
|
27212
|
-
if ($[
|
|
27213
|
-
|
|
27369
|
+
$[30] = dock;
|
|
27370
|
+
$[31] = isOpen;
|
|
27371
|
+
$[32] = state.picker;
|
|
27372
|
+
$[33] = t12;
|
|
27373
|
+
} else t12 = $[33];
|
|
27374
|
+
let t13;
|
|
27375
|
+
if ($[34] !== t10 || $[35] !== t11 || $[36] !== t12 || $[37] !== t3 || $[38] !== t4 || $[39] !== t9 || $[40] !== theme.theme) {
|
|
27376
|
+
t13 = /* @__PURE__ */ jsx$1(ShadowPortal, {
|
|
27214
27377
|
styles: STYLES,
|
|
27215
27378
|
children: /* @__PURE__ */ jsxs("div", {
|
|
27216
27379
|
className: "dt",
|
|
27217
|
-
"data-theme":
|
|
27218
|
-
ref:
|
|
27380
|
+
"data-theme": t2,
|
|
27381
|
+
ref: t3,
|
|
27219
27382
|
children: [
|
|
27220
|
-
|
|
27221
|
-
t8,
|
|
27383
|
+
t4,
|
|
27222
27384
|
t9,
|
|
27223
27385
|
t10,
|
|
27224
|
-
t11
|
|
27386
|
+
t11,
|
|
27387
|
+
t12
|
|
27225
27388
|
]
|
|
27226
27389
|
})
|
|
27227
27390
|
});
|
|
27228
|
-
$[
|
|
27229
|
-
$[
|
|
27230
|
-
$[
|
|
27231
|
-
$[
|
|
27232
|
-
$[
|
|
27233
|
-
$[
|
|
27234
|
-
$[
|
|
27235
|
-
$[
|
|
27236
|
-
} else
|
|
27237
|
-
return
|
|
27391
|
+
$[34] = t10;
|
|
27392
|
+
$[35] = t11;
|
|
27393
|
+
$[36] = t12;
|
|
27394
|
+
$[37] = t3;
|
|
27395
|
+
$[38] = t4;
|
|
27396
|
+
$[39] = t9;
|
|
27397
|
+
$[40] = theme.theme;
|
|
27398
|
+
$[41] = t13;
|
|
27399
|
+
} else t13 = $[41];
|
|
27400
|
+
return t13;
|
|
27238
27401
|
}
|
|
27239
27402
|
export { Layer as default };
|