@saar-ai/web-widget 0.6.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{chat-tMKkYmTC.js → chat-e1afSRBr.js} +188 -3
- package/dist/chunks/{host-widget-CAPud_Jz.js → host-widget-Ce-l1xu1.js} +1760 -116
- package/dist/chunks/{schemas-Bl_6mxe4.js → schemas-D-uDc-9q.js} +164 -1
- package/dist/chunks/{telemetry-BI_SEWTb.js → telemetry-CBblNC6C.js} +1 -1
- package/dist/dock/dock-drag.d.ts +81 -0
- package/dist/dock/dock-drag.d.ts.map +1 -0
- package/dist/dock/dock-motion.d.ts +14 -0
- package/dist/dock/dock-motion.d.ts.map +1 -1
- package/dist/dock/dock-pill.d.ts +7 -2
- package/dist/dock/dock-pill.d.ts.map +1 -1
- package/dist/dock/dock-row.d.ts +13 -2
- package/dist/dock/dock-row.d.ts.map +1 -1
- package/dist/dock/dock-sheet.d.ts +11 -1
- package/dist/dock/dock-sheet.d.ts.map +1 -1
- package/dist/dock/dock-state.d.ts +41 -0
- package/dist/dock/dock-state.d.ts.map +1 -1
- package/dist/dock/dock.d.ts +64 -0
- package/dist/dock/dock.d.ts.map +1 -1
- package/dist/dock/geometry.d.ts +74 -2
- package/dist/dock/geometry.d.ts.map +1 -1
- package/dist/generated/widget-css.d.ts.map +1 -1
- package/dist/host-widget.d.ts +14 -2
- package/dist/host-widget.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/messages.d.ts +14 -0
- package/dist/messages.d.ts.map +1 -1
- package/dist/next/index.js +1 -1
- package/dist/styles.d.ts +3 -3
- package/dist/theme/derive.d.ts +1 -1
- package/dist/theme/derive.d.ts.map +1 -1
- package/dist/use-chat-session.d.ts +45 -1
- package/dist/use-chat-session.d.ts.map +1 -1
- package/dist/use-voice-session.d.ts +35 -0
- package/dist/use-voice-session.d.ts.map +1 -1
- package/dist/voice-widget.d.ts.map +1 -1
- package/dist/widget.css +1 -1
- package/package.json +3 -3
- package/src/styles/concierge.css +160 -7
- package/src/styles/tokens.css +6 -0
|
@@ -1916,6 +1916,115 @@ function handleIntersectionResults(result, left, right) {
|
|
|
1916
1916
|
result.value = merged.data;
|
|
1917
1917
|
return result;
|
|
1918
1918
|
}
|
|
1919
|
+
var $ZodRecord = /*@__PURE__*/ $constructor("$ZodRecord", (inst, def) => {
|
|
1920
|
+
$ZodType.init(inst, def);
|
|
1921
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1922
|
+
const input = payload.value;
|
|
1923
|
+
if (!isPlainObject(input)) {
|
|
1924
|
+
payload.issues.push({
|
|
1925
|
+
expected: "record",
|
|
1926
|
+
code: "invalid_type",
|
|
1927
|
+
input,
|
|
1928
|
+
inst
|
|
1929
|
+
});
|
|
1930
|
+
return payload;
|
|
1931
|
+
}
|
|
1932
|
+
const proms = [];
|
|
1933
|
+
const values = def.keyType._zod.values;
|
|
1934
|
+
if (values) {
|
|
1935
|
+
payload.value = {};
|
|
1936
|
+
const recordKeys = /* @__PURE__ */ new Set();
|
|
1937
|
+
for (const key of values) if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
|
|
1938
|
+
recordKeys.add(typeof key === "number" ? key.toString() : key);
|
|
1939
|
+
const keyResult = def.keyType._zod.run({
|
|
1940
|
+
value: key,
|
|
1941
|
+
issues: []
|
|
1942
|
+
}, ctx);
|
|
1943
|
+
if (keyResult instanceof Promise) throw new Error("Async schemas not supported in object keys currently");
|
|
1944
|
+
if (keyResult.issues.length) {
|
|
1945
|
+
payload.issues.push({
|
|
1946
|
+
code: "invalid_key",
|
|
1947
|
+
origin: "record",
|
|
1948
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
1949
|
+
input: key,
|
|
1950
|
+
path: [key],
|
|
1951
|
+
inst
|
|
1952
|
+
});
|
|
1953
|
+
continue;
|
|
1954
|
+
}
|
|
1955
|
+
const outKey = keyResult.value;
|
|
1956
|
+
const result = def.valueType._zod.run({
|
|
1957
|
+
value: input[key],
|
|
1958
|
+
issues: []
|
|
1959
|
+
}, ctx);
|
|
1960
|
+
if (result instanceof Promise) proms.push(result.then((result) => {
|
|
1961
|
+
if (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues));
|
|
1962
|
+
payload.value[outKey] = result.value;
|
|
1963
|
+
}));
|
|
1964
|
+
else {
|
|
1965
|
+
if (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues));
|
|
1966
|
+
payload.value[outKey] = result.value;
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
let unrecognized;
|
|
1970
|
+
for (const key in input) if (!recordKeys.has(key)) {
|
|
1971
|
+
unrecognized = unrecognized ?? [];
|
|
1972
|
+
unrecognized.push(key);
|
|
1973
|
+
}
|
|
1974
|
+
if (unrecognized && unrecognized.length > 0) payload.issues.push({
|
|
1975
|
+
code: "unrecognized_keys",
|
|
1976
|
+
input,
|
|
1977
|
+
inst,
|
|
1978
|
+
keys: unrecognized
|
|
1979
|
+
});
|
|
1980
|
+
} else {
|
|
1981
|
+
payload.value = {};
|
|
1982
|
+
for (const key of Reflect.ownKeys(input)) {
|
|
1983
|
+
if (key === "__proto__") continue;
|
|
1984
|
+
if (!Object.prototype.propertyIsEnumerable.call(input, key)) continue;
|
|
1985
|
+
let keyResult = def.keyType._zod.run({
|
|
1986
|
+
value: key,
|
|
1987
|
+
issues: []
|
|
1988
|
+
}, ctx);
|
|
1989
|
+
if (keyResult instanceof Promise) throw new Error("Async schemas not supported in object keys currently");
|
|
1990
|
+
if (typeof key === "string" && number$1.test(key) && keyResult.issues.length) {
|
|
1991
|
+
const retryResult = def.keyType._zod.run({
|
|
1992
|
+
value: Number(key),
|
|
1993
|
+
issues: []
|
|
1994
|
+
}, ctx);
|
|
1995
|
+
if (retryResult instanceof Promise) throw new Error("Async schemas not supported in object keys currently");
|
|
1996
|
+
if (retryResult.issues.length === 0) keyResult = retryResult;
|
|
1997
|
+
}
|
|
1998
|
+
if (keyResult.issues.length) {
|
|
1999
|
+
if (def.mode === "loose") payload.value[key] = input[key];
|
|
2000
|
+
else payload.issues.push({
|
|
2001
|
+
code: "invalid_key",
|
|
2002
|
+
origin: "record",
|
|
2003
|
+
issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
|
|
2004
|
+
input: key,
|
|
2005
|
+
path: [key],
|
|
2006
|
+
inst
|
|
2007
|
+
});
|
|
2008
|
+
continue;
|
|
2009
|
+
}
|
|
2010
|
+
const result = def.valueType._zod.run({
|
|
2011
|
+
value: input[key],
|
|
2012
|
+
issues: []
|
|
2013
|
+
}, ctx);
|
|
2014
|
+
if (result instanceof Promise) proms.push(result.then((result) => {
|
|
2015
|
+
if (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues));
|
|
2016
|
+
payload.value[keyResult.value] = result.value;
|
|
2017
|
+
}));
|
|
2018
|
+
else {
|
|
2019
|
+
if (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues));
|
|
2020
|
+
payload.value[keyResult.value] = result.value;
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
2024
|
+
if (proms.length) return Promise.all(proms).then(() => payload);
|
|
2025
|
+
return payload;
|
|
2026
|
+
};
|
|
2027
|
+
});
|
|
1919
2028
|
var $ZodEnum = /*@__PURE__*/ $constructor("$ZodEnum", (inst, def) => {
|
|
1920
2029
|
$ZodType.init(inst, def);
|
|
1921
2030
|
const values = getEnumValues(def.entries);
|
|
@@ -3191,6 +3300,39 @@ var intersectionProcessor = (schema, ctx, json, params) => {
|
|
|
3191
3300
|
const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
|
|
3192
3301
|
json.allOf = [...isSimpleIntersection(a) ? a.allOf : [a], ...isSimpleIntersection(b) ? b.allOf : [b]];
|
|
3193
3302
|
};
|
|
3303
|
+
var recordProcessor = (schema, ctx, _json, params) => {
|
|
3304
|
+
const json = _json;
|
|
3305
|
+
const def = schema._zod.def;
|
|
3306
|
+
json.type = "object";
|
|
3307
|
+
const keyType = def.keyType;
|
|
3308
|
+
const patterns = keyType._zod.bag?.patterns;
|
|
3309
|
+
if (def.mode === "loose" && patterns && patterns.size > 0) {
|
|
3310
|
+
const valueSchema = process(def.valueType, ctx, {
|
|
3311
|
+
...params,
|
|
3312
|
+
path: [
|
|
3313
|
+
...params.path,
|
|
3314
|
+
"patternProperties",
|
|
3315
|
+
"*"
|
|
3316
|
+
]
|
|
3317
|
+
});
|
|
3318
|
+
json.patternProperties = {};
|
|
3319
|
+
for (const pattern of patterns) json.patternProperties[pattern.source] = valueSchema;
|
|
3320
|
+
} else {
|
|
3321
|
+
if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") json.propertyNames = process(def.keyType, ctx, {
|
|
3322
|
+
...params,
|
|
3323
|
+
path: [...params.path, "propertyNames"]
|
|
3324
|
+
});
|
|
3325
|
+
json.additionalProperties = process(def.valueType, ctx, {
|
|
3326
|
+
...params,
|
|
3327
|
+
path: [...params.path, "additionalProperties"]
|
|
3328
|
+
});
|
|
3329
|
+
}
|
|
3330
|
+
const keyValues = keyType._zod.values;
|
|
3331
|
+
if (keyValues) {
|
|
3332
|
+
const validKeyValues = [...keyValues].filter((v) => typeof v === "string" || typeof v === "number");
|
|
3333
|
+
if (validKeyValues.length > 0) json.required = validKeyValues;
|
|
3334
|
+
}
|
|
3335
|
+
};
|
|
3194
3336
|
var nullableProcessor = (schema, ctx, json, params) => {
|
|
3195
3337
|
const def = schema._zod.def;
|
|
3196
3338
|
const inner = process(def.innerType, ctx, params);
|
|
@@ -3900,6 +4042,27 @@ function intersection(left, right) {
|
|
|
3900
4042
|
right
|
|
3901
4043
|
});
|
|
3902
4044
|
}
|
|
4045
|
+
var ZodRecord = /*@__PURE__*/ $constructor("ZodRecord", (inst, def) => {
|
|
4046
|
+
$ZodRecord.init(inst, def);
|
|
4047
|
+
ZodType.init(inst, def);
|
|
4048
|
+
inst._zod.processJSONSchema = (ctx, json, params) => recordProcessor(inst, ctx, json, params);
|
|
4049
|
+
inst.keyType = def.keyType;
|
|
4050
|
+
inst.valueType = def.valueType;
|
|
4051
|
+
});
|
|
4052
|
+
function record(keyType, valueType, params) {
|
|
4053
|
+
if (!valueType || !valueType._zod) return new ZodRecord({
|
|
4054
|
+
type: "record",
|
|
4055
|
+
keyType: string(),
|
|
4056
|
+
valueType: keyType,
|
|
4057
|
+
...normalizeParams(valueType)
|
|
4058
|
+
});
|
|
4059
|
+
return new ZodRecord({
|
|
4060
|
+
type: "record",
|
|
4061
|
+
keyType,
|
|
4062
|
+
valueType,
|
|
4063
|
+
...normalizeParams(params)
|
|
4064
|
+
});
|
|
4065
|
+
}
|
|
3903
4066
|
var ZodEnum = /*@__PURE__*/ $constructor("ZodEnum", (inst, def) => {
|
|
3904
4067
|
$ZodEnum.init(inst, def);
|
|
3905
4068
|
ZodType.init(inst, def);
|
|
@@ -4120,4 +4283,4 @@ function superRefine(fn, params) {
|
|
|
4120
4283
|
return /* @__PURE__ */ _superRefine(fn, params);
|
|
4121
4284
|
}
|
|
4122
4285
|
//#endregion
|
|
4123
|
-
export { httpUrl as a, number as c, discriminatedUnion as i, object as l, array as n, literal as o, boolean as r, looseObject as s, _enum as t,
|
|
4286
|
+
export { httpUrl as a, number as c, string as d, discriminatedUnion as i, object as l, array as n, literal as o, boolean as r, looseObject as s, _enum as t, record as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as number, i as discriminatedUnion, l as object, o as literal, r as boolean, s as looseObject, t as _enum
|
|
1
|
+
import { c as number, d as string, i as discriminatedUnion, l as object, o as literal, r as boolean, s as looseObject, t as _enum } from "./schemas-D-uDc-9q.js";
|
|
2
2
|
//#region ../widget-protocol/dist/telemetry.js
|
|
3
3
|
/**
|
|
4
4
|
* The voice call's wire contract, as the CALLER's browser sees it: what the
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { type PointerEvent as ReactPointerEvent, type RefObject } from 'react';
|
|
2
|
+
import { type DesktopAlign } from './geometry.js';
|
|
3
|
+
/**
|
|
4
|
+
* THE DESKTOP DRAG — docs/DOCK_SPEC.md §9.1's `layout.draggable`, added
|
|
5
|
+
* 2026-09-11.
|
|
6
|
+
*
|
|
7
|
+
* On a desktop pointer the shopper may slide the dock sideways and drop it at
|
|
8
|
+
* `left`, `center` or `right`. Five rules, and every one of them is a way the
|
|
9
|
+
* gesture becomes a defect rather than a convenience:
|
|
10
|
+
*
|
|
11
|
+
* 1. **Horizontal only.** The bottom edge is the dock's entire contract with
|
|
12
|
+
* the merchant's furniture — §8.3 stacks above their sticky bar, §8.1
|
|
13
|
+
* clears the home indicator. A dock a shopper can park halfway up a
|
|
14
|
+
* product page is a dock that covers merchandise (§1 rule 3). There is no
|
|
15
|
+
* vertical term anywhere below, which is stronger than clamping one.
|
|
16
|
+
* 2. **`transform` per frame, and nothing else** (§7.1 rule 1). The ANCHOR
|
|
17
|
+
* (`left`/`right` on the fixed container) is not touched until the
|
|
18
|
+
* gesture settles, so no frame of a drag costs the merchant's document a
|
|
19
|
+
* layout. The value is a CSS custom property written straight onto the
|
|
20
|
+
* container (rule 5) — a drag that went through React state would
|
|
21
|
+
* re-render the transcript inside the sheet sixty times a second.
|
|
22
|
+
* 3. **Under `DRAG_TAP_SLOP_PX`, it was a tap.** The handle is the row's
|
|
23
|
+
* mark, which also toggles the sheet, and the pill, which opens the
|
|
24
|
+
* concierge. Both are pressed far more often than they are dragged, and a
|
|
25
|
+
* mouse that travels three pixels between press and release is a click
|
|
26
|
+
* everywhere else the shopper has ever clicked.
|
|
27
|
+
* 4. **The release SNAPS with §7.2's FLIP easing**, by the same mechanism
|
|
28
|
+
* the pill ↔ row swap uses: the anchor changes, the element is put back
|
|
29
|
+
* where the eye last saw it with one `transform`, and that transform is
|
|
30
|
+
* animated to zero. Measuring after the commit is what makes this exact —
|
|
31
|
+
* the three anchors are not the same distance apart, and computing the
|
|
32
|
+
* offset from the gesture instead would drift by a gutter.
|
|
33
|
+
* 5. **The window hears the release.** A pointer dragging a 48 px row across
|
|
34
|
+
* a 1440 px viewport leaves the handle almost immediately, and a
|
|
35
|
+
* `pointerup` that never reaches the handler leaves the dock translated,
|
|
36
|
+
* with its transitions off, until some future drag happens to finish.
|
|
37
|
+
*
|
|
38
|
+
* The hook owns no geometry of its own: `snapAlign` decides where a release
|
|
39
|
+
* lands and `readStoredAlign`/`persistAlign` own the storage key, all three
|
|
40
|
+
* in `geometry.ts` — because `cdn/dock-dom.ts` drags the PILL with exactly
|
|
41
|
+
* the same three, and §4.2 gives the two renderers one frame to disagree in.
|
|
42
|
+
*/
|
|
43
|
+
export interface DockDragOptions {
|
|
44
|
+
/** §9.1: a desktop viewport, a `pointer: fine` device, and the tenant said yes. */
|
|
45
|
+
readonly enabled: boolean;
|
|
46
|
+
/** §9.1's `layout.desktopAlign` — the starting position, and the fallback. */
|
|
47
|
+
readonly published: DesktopAlign;
|
|
48
|
+
/** The window the dock is living in — see `dock.tsx`'s `ownerWindowOf`. */
|
|
49
|
+
readonly win: Window | null;
|
|
50
|
+
/** §7.2's swap duration, 0 under reduced motion (§7.1 rule 10). */
|
|
51
|
+
readonly durationMs: number;
|
|
52
|
+
/**
|
|
53
|
+
* The pill, for rule 4's second half.
|
|
54
|
+
*
|
|
55
|
+
* The container's FLIP cannot express the pill's move: `pillAnchor` decides
|
|
56
|
+
* which END of the container the pill hangs off, and an alignment that
|
|
57
|
+
* changes SIDE changes that too — an untransitionable `left`/`right` swap,
|
|
58
|
+
* on top of the container's own move. So the pill is measured in its own
|
|
59
|
+
* right, before and after, and animated from the real first rect to the
|
|
60
|
+
* real last one.
|
|
61
|
+
*/
|
|
62
|
+
readonly pillRef?: RefObject<HTMLElement | null>;
|
|
63
|
+
}
|
|
64
|
+
export interface DockDragResult {
|
|
65
|
+
/** Where the dock sits: the shopper's remembered choice, else the tenant's. */
|
|
66
|
+
readonly align: DesktopAlign;
|
|
67
|
+
/** Did the gesture that just ended MOVE? Its trailing `click` has to be swallowed. */
|
|
68
|
+
readonly consumeClick: () => boolean;
|
|
69
|
+
/** Spread onto the handle — the row's mark, or the pill. */
|
|
70
|
+
readonly handleProps: {
|
|
71
|
+
onPointerDown?: (event: ReactPointerEvent<HTMLElement>) => void;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
/** The one custom property a drag writes (§7.1 rule 5). */
|
|
75
|
+
export declare const DRAG_VAR = "--wgt-drag-x";
|
|
76
|
+
export declare function useDockDrag(containerRef: {
|
|
77
|
+
current: HTMLElement | null;
|
|
78
|
+
}, { enabled, published, win, durationMs, pillRef }: DockDragOptions): DockDragResult;
|
|
79
|
+
/** §7.2's easing, re-exported so the stylesheet's own value has a source. */
|
|
80
|
+
export declare const DRAG_SETTLE_EASING = "cubic-bezier(0.2, 0, 0, 1)";
|
|
81
|
+
//# sourceMappingURL=dock-drag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dock-drag.d.ts","sourceRoot":"","sources":["../../src/dock/dock-drag.ts"],"names":[],"mappings":"AAEA,OAAO,EAML,KAAK,YAAY,IAAI,iBAAiB,EACtC,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,EAKL,KAAK,YAAY,EAClB,MAAM,eAAe,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,WAAW,eAAe;IAC9B,mFAAmF;IACnF,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,8EAA8E;IAC9E,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;IACjC,2EAA2E;IAC3E,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,mEAAmE;IACnE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,cAAc;IAC7B,+EAA+E;IAC/E,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,sFAAsF;IACtF,QAAQ,CAAC,YAAY,EAAE,MAAM,OAAO,CAAC;IACrC,4DAA4D;IAC5D,QAAQ,CAAC,WAAW,EAAE;QACpB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;KACjE,CAAC;CACH;AAED,2DAA2D;AAC3D,eAAO,MAAM,QAAQ,iBAAiB,CAAC;AAEvC,wBAAgB,WAAW,CACzB,YAAY,EAAE;IAAE,OAAO,EAAE,WAAW,GAAG,IAAI,CAAA;CAAE,EAC7C,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,eAAe,GAChE,cAAc,CA2QhB;AAED,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB,+BAAc,CAAC"}
|
|
@@ -57,6 +57,20 @@ export declare const CONTROL_MS = 120;
|
|
|
57
57
|
export declare const LEVEL_LERP = 0.25;
|
|
58
58
|
/** §5.5 — a page scroll past this much closes the sheet and ducks a live reply. */
|
|
59
59
|
export declare const PAGE_SCROLL_DUCK_PX = 24;
|
|
60
|
+
/**
|
|
61
|
+
* §5.3/§5.5's concierge-scroll exception — how long a flagged scroll stays
|
|
62
|
+
* ours.
|
|
63
|
+
*
|
|
64
|
+
* Longer than `recede.ts`'s own default window, deliberately: that one is
|
|
65
|
+
* sized for the few frames a bridge `navigate` emits before the document goes
|
|
66
|
+
* away, and a `spotlight` is a SMOOTH scroll across an arbitrary distance —
|
|
67
|
+
* the length of a collection page, on a slow phone. The cost of being generous
|
|
68
|
+
* is asymmetric and that is why it is generous: too long and the dock ignores
|
|
69
|
+
* one deliberate shopper scroll a second after the concierge acted; too short
|
|
70
|
+
* and it recedes and ducks in the middle of its own gesture, which is the
|
|
71
|
+
* failure the exception exists for.
|
|
72
|
+
*/
|
|
73
|
+
export declare const CONCIERGE_SCROLL_WINDOW_MS = 1200;
|
|
60
74
|
/** §3.3 — a downward drag past this fraction of the sheet's height dismisses it. */
|
|
61
75
|
export declare const SHEET_DISMISS_FRACTION = 0.4;
|
|
62
76
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dock-motion.d.ts","sourceRoot":"","sources":["../../src/dock/dock-motion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,EAAqD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1F,OAAO,EAGL,KAAK,cAAc,EAEpB,MAAM,kBAAkB,CAAC;AAE1B,wEAAwE;AACxE,eAAO,MAAM,OAAO,MAAM,CAAC;AAC3B,eAAO,MAAM,SAAS,MAAM,CAAC;AAC7B,eAAO,MAAM,WAAW,+BAA+B,CAAC;AACxD,2FAA2F;AAC3F,eAAO,MAAM,aAAa,MAAM,CAAC;AACjC,eAAO,MAAM,cAAc,MAAM,CAAC;AAClC,eAAO,MAAM,kBAAkB,+BAA+B,CAAC;AAC/D,uCAAuC;AACvC,eAAO,MAAM,aAAa,MAAM,CAAC;AACjC,gEAAgE;AAChE,eAAO,MAAM,UAAU,MAAM,CAAC;AAC9B,eAAO,MAAM,SAAS,MAAM,CAAC;AAC7B,eAAO,MAAM,UAAU,MAAM,CAAC;AAC9B,iDAAiD;AACjD,eAAO,MAAM,UAAU,OAAO,CAAC;AAC/B,mFAAmF;AACnF,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,oFAAoF;AACpF,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,IAAI,OAAO,CAiBjD;AAeD;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAU3C;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAItC;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CACxB,GA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AAS,EAAE,OAAO,EAClB,UAAU,SAAU,GACnB,IAAI,CAqJN;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,OAAO,GAAG,aAAa,CA0BlE"}
|
package/dist/dock/dock-pill.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RefObject } from 'react';
|
|
1
|
+
import type { PointerEvent as ReactPointerEvent, RefObject } from 'react';
|
|
2
2
|
import { type DockIdentityView } from './dock-row.js';
|
|
3
3
|
import type { DockMark } from './dock-state.js';
|
|
4
4
|
/**
|
|
@@ -32,7 +32,12 @@ export interface DockPillProps {
|
|
|
32
32
|
readonly expandLabel: string;
|
|
33
33
|
readonly form: 'pill' | 'row';
|
|
34
34
|
readonly onPress: () => void;
|
|
35
|
+
/** §9.1 — the pill IS the drag handle when the tenant allows it. */
|
|
36
|
+
readonly draggable?: boolean;
|
|
37
|
+
readonly dragHandleProps?: {
|
|
38
|
+
onPointerDown?: (event: ReactPointerEvent<HTMLElement>) => void;
|
|
39
|
+
};
|
|
35
40
|
readonly pillRef?: RefObject<HTMLButtonElement | null>;
|
|
36
41
|
}
|
|
37
|
-
export declare function DockPill({ identity, mark, label, line, expandLabel, form, onPress, pillRef, }: DockPillProps): import("react").JSX.Element;
|
|
42
|
+
export declare function DockPill({ identity, mark, label, line, expandLabel, form, onPress, draggable, dragHandleProps, pillRef, }: DockPillProps): import("react").JSX.Element;
|
|
38
43
|
//# sourceMappingURL=dock-pill.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dock-pill.d.ts","sourceRoot":"","sources":["../../src/dock/dock-pill.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"dock-pill.d.ts","sourceRoot":"","sources":["../../src/dock/dock-pill.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,IAAI,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG1E,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,oFAAoF;IACpF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,+DAA+D;IAC/D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B,oEAAoE;IACpE,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,eAAe,CAAC,EAAE;QACzB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;KACjE,CAAC;IACF,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;CACxD;AAED,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,WAAW,EACX,IAAI,EACJ,OAAO,EACP,SAAS,EACT,eAAe,EACf,OAAO,GACR,EAAE,aAAa,+BAiCf"}
|
package/dist/dock/dock-row.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RefObject } from 'react';
|
|
1
|
+
import type { PointerEvent as ReactPointerEvent, RefObject } from 'react';
|
|
2
2
|
import { type WidgetMessages } from '../messages.js';
|
|
3
3
|
import type { DockControl, DockMark, DockView } from './dock-state.js';
|
|
4
4
|
/**
|
|
@@ -115,6 +115,17 @@ export interface DockRowProps {
|
|
|
115
115
|
/** §11 — the mark's accessible name carries the live/rest state in words. */
|
|
116
116
|
readonly markStateLabel: string;
|
|
117
117
|
readonly onMarkPress: () => void;
|
|
118
|
+
/**
|
|
119
|
+
* §3.3 (revised 2026-09-11) — the sheet is up, so the two corners the row
|
|
120
|
+
* shares with it are square. An attribute rather than a class, because it
|
|
121
|
+
* is a STATE of the row and not a second kind of row.
|
|
122
|
+
*/
|
|
123
|
+
readonly sheetOpen?: boolean;
|
|
124
|
+
/** §9.1 — the MARK is the row's drag handle; `touch-action: none` lands there only. */
|
|
125
|
+
readonly draggable?: boolean;
|
|
126
|
+
readonly dragHandleProps?: {
|
|
127
|
+
onPointerDown?: (event: ReactPointerEvent<HTMLElement>) => void;
|
|
128
|
+
};
|
|
118
129
|
}
|
|
119
|
-
export declare function DockRow({ view, identity, form, messages, captionLine, captionSwapKey, captionTestId, draft, onDraftChange, onSubmit, placeholder, composerDisabled, onControl, onMicDown, onMicUp, interruptLabelled, micOpen, micDisabled, micUnavailableReason, attachBusy, rowRef, inputRef, captionDurationMs, markStateLabel, onMarkPress, }: DockRowProps): import("react").JSX.Element;
|
|
130
|
+
export declare function DockRow({ view, identity, form, messages, captionLine, captionSwapKey, captionTestId, draft, onDraftChange, onSubmit, placeholder, composerDisabled, onControl, onMicDown, onMicUp, interruptLabelled, micOpen, micDisabled, micUnavailableReason, attachBusy, rowRef, inputRef, captionDurationMs, markStateLabel, onMarkPress, sheetOpen, draggable, dragHandleProps, }: DockRowProps): import("react").JSX.Element;
|
|
120
131
|
//# sourceMappingURL=dock-row.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dock-row.d.ts","sourceRoot":"","sources":["../../src/dock/dock-row.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"dock-row.d.ts","sourceRoot":"","sources":["../../src/dock/dock-row.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAc,YAAY,IAAI,iBAAiB,EAAa,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjG,OAAO,EAAwC,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAE3F,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAM/D,2EAA2E;AAC3E,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;AAExD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,MAAM,GACP,EAAE;IACD,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,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BA2Ed"}
|
|
@@ -80,10 +80,20 @@ export interface DockSheetProps {
|
|
|
80
80
|
readonly onDismiss: () => void;
|
|
81
81
|
/** Bumped whenever the contents grew, so the scroll can follow a reader who was at the bottom. */
|
|
82
82
|
readonly followKey?: unknown;
|
|
83
|
+
/**
|
|
84
|
+
* §3.4 — is the sheet showing the WHOLE transcript rather than the latest
|
|
85
|
+
* exchange?
|
|
86
|
+
*
|
|
87
|
+
* False→true is the shopper asking for the history, by either route: the
|
|
88
|
+
* "Show conversation" control, or dragging the sheet open by its handle.
|
|
89
|
+
* That one transition is the only thing this prop is read for — see the
|
|
90
|
+
* follow effect's `justRevealed`.
|
|
91
|
+
*/
|
|
92
|
+
readonly historyRevealed?: boolean;
|
|
83
93
|
readonly sheetRef?: RefObject<HTMLDivElement | null>;
|
|
84
94
|
/** 0 under reduced motion (§7.1 rule 10). */
|
|
85
95
|
readonly durationMs: number;
|
|
86
96
|
readonly dragHandleLabel: string;
|
|
87
97
|
}
|
|
88
|
-
export declare function DockSheet({ snap, onSnapChange, label, peekOnly, header, children, onDismiss, followKey, sheetRef, durationMs, dragHandleLabel, }: DockSheetProps): import("react").JSX.Element;
|
|
98
|
+
export declare function DockSheet({ snap, onSnapChange, label, peekOnly, header, children, onDismiss, followKey, historyRevealed, sheetRef, durationMs, dragHandleLabel, }: DockSheetProps): import("react").JSX.Element;
|
|
89
99
|
//# sourceMappingURL=dock-sheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dock-sheet.d.ts","sourceRoot":"","sources":["../../src/dock/dock-sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAUf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;AAE3D;;;;;GAKG;AACH,eA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,GAAG,UAAU,CAAC;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAEtC;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAQtC,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,YAAY,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;IACrD,8DAA8D;IAC9D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,oEAAoE;IACpE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC7B,iGAAiG;IACjG,QAAQ,CAAC,SAAS,EAAE,MAAM,IAAI,CAAC;IAC/B,kGAAkG;IAClG,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;;;;;OAQG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACrD,6CAA6C;IAC7C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;CAClC;AAED,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,SAAS,EACT,SAAS,EACT,eAAuB,EACvB,QAAQ,EACR,UAAU,EACV,eAAe,GAChB,EAAE,cAAc,+BAkXhB"}
|
|
@@ -218,4 +218,45 @@ export declare const idleDockInput: DockStateInput;
|
|
|
218
218
|
* @returns everything the row, the caption and the sheet need for one render
|
|
219
219
|
*/
|
|
220
220
|
export declare function deriveDockState(input: DockStateInput): DockView;
|
|
221
|
+
/**
|
|
222
|
+
* A transcript turn, as the EXCHANGE split reads it: its speaker and nothing
|
|
223
|
+
* else.
|
|
224
|
+
*
|
|
225
|
+
* §3.4's split is a decision about the conversation's shape, so it lives here
|
|
226
|
+
* with the rest of them — and it takes speakers rather than turns because a
|
|
227
|
+
* turn carries text, cards, attachments, a locale and a delivery state, none
|
|
228
|
+
* of which this decision looks at. Nothing about the widget's turn type
|
|
229
|
+
* therefore reaches this module, which is what keeps it assertable without a
|
|
230
|
+
* DOM (`dock-state.test.ts`).
|
|
231
|
+
*/
|
|
232
|
+
export type DockSpeaker = 'caller' | 'agent' | 'event';
|
|
233
|
+
/**
|
|
234
|
+
* §3.4 (revised 2026-09-11) — where the LATEST EXCHANGE begins.
|
|
235
|
+
*
|
|
236
|
+
* An exchange is the shopper's line and the reply to it. The latest one
|
|
237
|
+
* therefore starts at the LAST caller turn and runs to the end, so a reply
|
|
238
|
+
* that arrived as three turns (a filler, the answer, the cards) stays whole.
|
|
239
|
+
*
|
|
240
|
+
* Two cases are not that shape and both are real:
|
|
241
|
+
*
|
|
242
|
+
* - the shopper has not spoken yet. The concierge opens with a greeting of
|
|
243
|
+
* its own, and a proactive nudge can add a second line before anybody has
|
|
244
|
+
* typed; the latest exchange is then the LAST agent turn alone, because
|
|
245
|
+
* two unanswered agent lines are two things said, not one exchange.
|
|
246
|
+
* - a `speaker: 'event'` row — §3.4's handoff marker. It is something that
|
|
247
|
+
* happened TO an exchange rather than a turn in one, so it never starts a
|
|
248
|
+
* new one and never ends the search for the caller line above it.
|
|
249
|
+
*/
|
|
250
|
+
export declare function latestExchangeStart(speakers: readonly DockSpeaker[]): number;
|
|
251
|
+
/**
|
|
252
|
+
* How many exchanges the transcript holds — the number "Show conversation"
|
|
253
|
+
* is offered on (§3.4: the control exists only when there is more than one).
|
|
254
|
+
*
|
|
255
|
+
* A caller line opens an exchange; anything said BEFORE the first one (the
|
|
256
|
+
* greeting, a proactive nudge) is an exchange of its own, because it is
|
|
257
|
+
* something the shopper can scroll back to and would otherwise be counted as
|
|
258
|
+
* nothing at all — leaving a dock that shows a greeting, then an answer, and
|
|
259
|
+
* claims there is nothing more to see.
|
|
260
|
+
*/
|
|
261
|
+
export declare function exchangeCount(speakers: readonly DockSpeaker[]): number;
|
|
221
262
|
//# sourceMappingURL=dock-state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dock-state.d.ts","sourceRoot":"","sources":["../../src/dock/dock-state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE5D,iGAAiG;AACjG,eAAO,MAAM,WAAW,YACtB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,UAAU,EACV,UAAU,EACV,QAAQ,EACR,cAAc,EACd,OAAO,EACP,aAAa,EACb,OAAO,EACP,SAAS,EACT,OAAO,EACP,OAAO,CACC,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD;;;;GAIG;AACH,MAAM,MAAM,WAAW,GACrB,KAAK,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,WAAW,GAAG,KAAK,GAAG,aAAa,GAAG,QAAQ,CAAC;AAExF,6EAA6E;AAC7E,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEzC,2FAA2F;AAC3F,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,CAAC;AAE5D,gDAAgD;AAChD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;AAE5C;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,OAAO,GAAG,WAAW,CAAC;AAE/D;;;;GAIG;AACH,MAAM,MAAM,eAAe,GACvB;IAAE,QAAQ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AQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAC;IAC1C,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,yGAAyG;AACzG,eAAO,MAAM,aAAa,EAAE,cAuB3B,CAAC;AAmCF;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,GAAG,QAAQ,CAO/D;AAqQD;;;;;;;;;;GAUG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;AAEvD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,GAAG,MAAM,CAM5E;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,SAAS,WAAW,EAAE,GAAG,MAAM,CAetE"}
|
package/dist/dock/dock.d.ts
CHANGED
|
@@ -67,6 +67,15 @@ export interface DockLayoutView {
|
|
|
67
67
|
readonly desktopWidth: DesktopWidth;
|
|
68
68
|
/** §5.4. `never` has no pill at all — no recede, no minimise control. */
|
|
69
69
|
readonly minimised: 'never' | 'shopper' | 'startMinimised';
|
|
70
|
+
/**
|
|
71
|
+
* §9.1 (added 2026-09-11) — may a DESKTOP shopper drag the dock sideways?
|
|
72
|
+
*
|
|
73
|
+
* Optional, defaulted `true`, because the api field is younger than this
|
|
74
|
+
* component: a host still passing a `layout` without it must get §9.1's
|
|
75
|
+
* default rather than a dock that refuses to move. Mobile never drags
|
|
76
|
+
* whatever this says — the gesture competes with the page's own scroll.
|
|
77
|
+
*/
|
|
78
|
+
readonly draggable?: boolean;
|
|
70
79
|
}
|
|
71
80
|
/** The tenant's `copy[locale]` (§9.1), as the dock reads it. */
|
|
72
81
|
export interface DockCopyView {
|
|
@@ -191,6 +200,31 @@ export interface DockProps {
|
|
|
191
200
|
readonly shelf?: ChatCards;
|
|
192
201
|
/** The text session's transcript, supplied by the caller (`voice-widget.tsx`). */
|
|
193
202
|
readonly transcript?: ReactNode;
|
|
203
|
+
/**
|
|
204
|
+
* §3.4 (revised 2026-09-11) — the LATEST EXCHANGE, for a text session's
|
|
205
|
+
* `peek` sheet: the shopper's last line and the reply to it, with whatever
|
|
206
|
+
* that reply brought.
|
|
207
|
+
*
|
|
208
|
+
* A second NODE rather than a count the dock slices itself, because the
|
|
209
|
+
* dock is handed a rendered transcript and has no idea what a turn is. The
|
|
210
|
+
* host renders the same turn list twice from one component — sliced at
|
|
211
|
+
* `latestExchangeStart` (`dock-state.ts`) — so a card, a price or an
|
|
212
|
+
* attachment cannot bind differently in the two views.
|
|
213
|
+
*
|
|
214
|
+
* Absent ⇒ the whole transcript is shown at both snap points, which is what
|
|
215
|
+
* every host that has not been updated gets and is the behaviour this
|
|
216
|
+
* revision replaced.
|
|
217
|
+
*/
|
|
218
|
+
readonly latestExchange?: ReactNode;
|
|
219
|
+
/**
|
|
220
|
+
* How many exchanges the transcript holds (`exchangeCount`).
|
|
221
|
+
*
|
|
222
|
+
* The ONE number "Show conversation" is offered on: at one exchange the
|
|
223
|
+
* latest view IS the transcript, and a control that expands a sheet to show
|
|
224
|
+
* exactly what it already showed is a control that teaches the shopper not
|
|
225
|
+
* to press things.
|
|
226
|
+
*/
|
|
227
|
+
readonly exchangeCount?: number;
|
|
194
228
|
/** Anything the sheet holds beside its main content: the basket, chips, the handoff marker. */
|
|
195
229
|
readonly sheetExtra?: ReactNode;
|
|
196
230
|
/** Bumped when the sheet's contents grew, so the scroll can follow a reader at the bottom. */
|
|
@@ -257,6 +291,36 @@ export interface DockProps {
|
|
|
257
291
|
readonly proactive?: string;
|
|
258
292
|
/** §5.5 — the bridge saw the shopper move to another page. Any change closes the sheet and ducks a live reply. */
|
|
259
293
|
readonly pageKey?: string | number;
|
|
294
|
+
/**
|
|
295
|
+
* §5.3/§5.5's concierge-scroll EXCEPTION: "Concierge-driven scrolls … are
|
|
296
|
+
* flagged and ignored." An OUT parameter — the dock writes the flag-raising
|
|
297
|
+
* function into `current`, and the widget calls it.
|
|
298
|
+
*
|
|
299
|
+
* Calling it says the scroll that is about to happen is OURS — a `spotlight`
|
|
300
|
+
* bringing a card into view — so for the next `ms` (default
|
|
301
|
+
* {@link CONCIERGE_SCROLL_WINDOW_MS}) the row does not recede and the sheet
|
|
302
|
+
* does not duck. Without the flag the dock acts on its own gesture: the
|
|
303
|
+
* shopper says "show me that rug", the concierge scrolls to it, and the row
|
|
304
|
+
* shrinks to a pill and the sheet closes at the exact moment it acted —
|
|
305
|
+
* which reads as the concierge walking away mid-sentence.
|
|
306
|
+
*
|
|
307
|
+
* ## Why a callback ref and not a nonce prop
|
|
308
|
+
*
|
|
309
|
+
* It was a nonce prop, bumped through `useState` immediately before the
|
|
310
|
+
* scroll, and that ordering was a lie: a state update is asynchronous, the
|
|
311
|
+
* scroll two statements later is not, and the dock's own listener captures
|
|
312
|
+
* on `document`. On a busy main thread the FIRST `scroll` event of a smooth
|
|
313
|
+
* scroll arrives before React has re-rendered, finds the flag unset, and
|
|
314
|
+
* ducks the sheet — the exact failure the exception exists to prevent, and
|
|
315
|
+
* one that only shows up under load. A function call happens now.
|
|
316
|
+
*
|
|
317
|
+
* `ms <= 0` DISARMS instead: a spotlight that found no card scrolled
|
|
318
|
+
* nothing, and a window left armed over a gesture that never happened would
|
|
319
|
+
* deafen the dock to the shopper's own next scroll for over a second.
|
|
320
|
+
*/
|
|
321
|
+
readonly conciergeScrollRef?: {
|
|
322
|
+
current: ((ms?: number) => void) | null;
|
|
323
|
+
};
|
|
260
324
|
/**
|
|
261
325
|
* Leave the call — a different intention from muting it, and the reason it
|
|
262
326
|
* is in the SHEET's header rather than in the row: §2 caps the row at three
|
package/dist/dock/dock.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dock.d.ts","sourceRoot":"","sources":["../../src/dock/dock.tsx"],"names":[],"mappings":"AAEA,OAAO,EASL,KAAK,aAAa,EAClB,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAwC,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAQjG,OAAO,EAAwC,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3F,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAYL,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"dock.d.ts","sourceRoot":"","sources":["../../src/dock/dock.tsx"],"names":[],"mappings":"AAEA,OAAO,EASL,KAAK,aAAa,EAClB,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAwC,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAQjG,OAAO,EAAwC,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3F,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,E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