@stapel/search-react 0.38.0 → 0.39.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/CHANGELOG.md CHANGED
@@ -1,5 +1,53 @@
1
1
  # @stapel/search-react
2
2
 
3
+ ## 0.39.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 97c14d9: A pointer is not a section of this template.
8
+
9
+ From the owner's read of 0.38.0 on the stand: the storefront's car page drew
10
+ `All | New 0 | Used 3 | Car rental 0`. Two of those zeroes were a section's
11
+ real emptiness. The third was a count of a wholly different branch of the
12
+ catalogue, under a chip that would have filtered this page by an id path into
13
+ that branch.
14
+
15
+ A partition is one template split by a value its children's names express —
16
+ new / used / for rent. A POINTER (`CategoryChild.linked`, stapel-categories
17
+ 0.22.0) is another category an operator drew among these children so a person
18
+ can reach it from here. It does not narrow this feed and it has no count of its
19
+ own.
20
+
21
+ `PartitionChild` gains `linked?: boolean` and `href?: string`, and
22
+ `<PartitionChips>` splits its items ONCE, above everything that reads them: the
23
+ cells, the roving stop, the value lookup and the arrow keys see only the
24
+ SECTIONS. So a linked child can never be a radio, never draws a count (even
25
+ when a host maps its rows mechanically and hands one over), and never matches
26
+ `value` — a stale address naming a pointer leaves the row on its parent chip
27
+ instead of lighting a pointer up as the chosen section.
28
+
29
+ `<PartitionChips linkedChildren>` decides what happens to the pointer itself:
30
+
31
+ - `"chip"` (default) draws it AFTER the partitions, in its own row outside the
32
+ radiogroup — a `role="radiogroup"` containing a link announces a choice with
33
+ an option nobody can choose. It is an outlined pill (a hairline, no fill: it
34
+ is a way out of this page, not one of the choices on it) carrying the
35
+ target's name and a trailing arrow, and it is a real `<a href>`, so a
36
+ middle-click or a ctrl/cmd-click opens the target in a new tab and nothing on
37
+ this page changes. A linked entry with no `href` is not drawn at all — a link
38
+ with no address is not a link — and is still out of the partition either way.
39
+ - `"none"` omits it here, for a page whose TILE STAGE already shows the same
40
+ destination as a tile: one destination offered twice, a row apart, is a
41
+ person wondering what the difference is.
42
+
43
+ A row with no pointers renders exactly what it rendered before, with no extra
44
+ box around it.
45
+
46
+ The `default` size budget goes 32.75 → 33.25 KB, measured and written into the
47
+ entry's own note (32539 → 32779 B, dependencies held constant): 29 B over the
48
+ old line, and a ceiling that fails on 29 B of a shipped defect fix is a gate
49
+ proving nothing.
50
+
3
51
  ## 0.38.0
4
52
 
5
53
  ### Minor Changes
@@ -20,9 +20,46 @@ export interface PartitionChild {
20
20
  *
21
21
  * Omit it and nothing is drawn — an absent count is not a zero, and a
22
22
  * section whose total nobody asked for must not be captioned "0".
23
+ *
24
+ * Ignored on a POINTER — see {@link linked}.
23
25
  */
24
26
  readonly count?: number;
27
+ /**
28
+ * This entry is a POINTER to another category, not a section of THIS
29
+ * template (`CategoryChild.linked`, stapel-categories 0.22.0).
30
+ *
31
+ * A partition is one template split by a value its children's names express
32
+ * — new / used / for rent. A pointer is a different branch of the catalogue
33
+ * that an operator drew among these children so a person can reach it from
34
+ * here. It is not one of the halves, it does not narrow this feed, and it
35
+ * has NO count of its own: the number beside it is the number of listings in
36
+ * somebody else's category, which is why the storefront's
37
+ * `/c/transport-avtomobili` read `All | New 0 | Used 3 | Car rental 0`
38
+ * — two of those zeroes were a partition's real emptiness and one was a
39
+ * question nobody had asked.
40
+ *
41
+ * So a linked entry never becomes a radio, never carries a count, and never
42
+ * matches {@link PartitionChipsProps.value} — a stale address naming one
43
+ * leaves the row on its parent chip rather than lighting a pointer up as the
44
+ * chosen section. It is drawn AFTER the partitions as a link, or not at all:
45
+ * see {@link PartitionChipsProps.linkedChildren}.
46
+ */
47
+ readonly linked?: boolean;
48
+ /**
49
+ * WHERE a pointer leads — the target's own address, as the host builds it
50
+ * (`/c/<slug>`). Read only on a {@link linked} entry.
51
+ *
52
+ * The pointer's `path` is an id path into the CATALOGUE, and following it
53
+ * as a `category` filter is exactly the confusion this shape exists to end:
54
+ * a pointer is a destination, so the chip is a real `<a href>` that
55
+ * navigates, with no `f=` and no state change on this page. A linked entry
56
+ * with no `href` is not drawn — a link with no address is not a link.
57
+ */
58
+ readonly href?: string;
25
59
  }
60
+ /** What the row does with a POINTER among its children — see
61
+ * {@link PartitionChipsProps.linkedChildren}. */
62
+ export type PartitionLinkedChildren = "chip" | "none";
26
63
  export interface PartitionChipsProps {
27
64
  /** The children, in the order the catalogue declares them. */
28
65
  readonly items: readonly PartitionChild[];
@@ -47,6 +84,24 @@ export interface PartitionChipsProps {
47
84
  * browser's own `input[type=radio]` in `segmented`.
48
85
  */
49
86
  readonly variant?: "chips" | "segmented";
87
+ /**
88
+ * What the row does with a POINTER among its children. Default `"chip"`.
89
+ *
90
+ * - `"chip"` — drawn AFTER the partitions as an outlined link chip: the
91
+ * target's name and a trailing arrow, no count, a real `<a href>` that
92
+ * navigates to the target rather than filtering this page. Outlined and
93
+ * separate on purpose — it is not one of the choices, and a control that
94
+ * looks like the others while doing something else is worse than one
95
+ * that looks different;
96
+ * - `"none"` — not drawn here at all, for a page whose TILE STAGE already
97
+ * shows the same pointer as a tile. One destination offered twice, a row
98
+ * apart, is a person wondering what the difference is.
99
+ *
100
+ * Either way a pointer is out of the partition semantics: no radio, no
101
+ * count, never the chosen section. This prop only decides whether the link
102
+ * is offered in this row.
103
+ */
104
+ readonly linkedChildren?: PartitionLinkedChildren;
50
105
  }
51
106
  export declare function PartitionChips(props: PartitionChipsProps): ReactElement;
52
107
  //# sourceMappingURL=PartitionChips.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PartitionChips.d.ts","sourceRoot":"","sources":["../../src/default/PartitionChips.tsx"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAGV,YAAY,EACZ,SAAS,EACV,MAAM,OAAO,CAAC;AAMf;;oDAEoD;AACpD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CA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M,uBAAuB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD,MAAM,WAAW,mBAAmB;IAClC,8DAA8D;IAC9D,QAAQ,CAAC,KAAK,EAAE,SAAS,cAAc,EAAE,CAAC;IAC1C;iFAC6E;IAC7E,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACjD,kEAAkE;IAClE,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;IAC9B,uEAAuE;IACvE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;IACzC;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,uBAAuB,CAAC;CACnD;AA6KD,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,YAAY,CA2LvE"}
@@ -52,7 +52,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
52
52
  import { useEffect, useRef } from "react";
53
53
  import { Button, Segmented, Typography } from "antd";
54
54
  import { useT } from "@stapel/core";
55
- import { radii, spacing } from "@stapel/tokens";
55
+ import { cssVar, radii, spacing } from "@stapel/tokens";
56
56
  import { SEARCH_I18N_KEYS } from "../i18n/keys.js";
57
57
  /**
58
58
  * The `value` of the parent cell inside the segmented control. `null` is this
@@ -67,6 +67,22 @@ const ROW = {
67
67
  flexWrap: "wrap",
68
68
  gap: spacing[2],
69
69
  };
70
+ /**
71
+ * The pointer chip: the partition pill's geometry, OUTLINED — a hairline and
72
+ * no fill, so it reads as a way out of this page rather than as one of the
73
+ * choices on it.
74
+ */
75
+ const POINTER_CHIP = {
76
+ display: "inline-flex",
77
+ alignItems: "center",
78
+ gap: spacing[1],
79
+ borderRadius: radii.full,
80
+ border: `1px solid ${cssVar("border")}`,
81
+ paddingBlock: spacing[1],
82
+ paddingInline: spacing[3],
83
+ color: cssVar("text"),
84
+ lineHeight: 1.4,
85
+ };
70
86
  /** The keys that move the choice, in both variants. */
71
87
  const ARROW_KEYS = new Set(["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"]);
72
88
  /**
@@ -116,6 +132,32 @@ function ChildLabel(props) {
116
132
  return _jsx(_Fragment, { children: child.name });
117
133
  return (_jsxs(_Fragment, { children: [child.name, " ", _jsx(Typography.Text, { type: "secondary", "data-testid": `partition-count-${child.path}`, children: child.count })] }));
118
134
  }
135
+ /**
136
+ * The pointer chip's trailing mark — an arrow leaving to the right, the one
137
+ * glyph that says "this goes somewhere else" rather than "this narrows what
138
+ * is here".
139
+ *
140
+ * Drawn inline in `currentColor`, like every other glyph in this skin
141
+ * (`ChevronGlyph`, `PinGlyph`, `SlidersGlyph`): this package ships no icon set
142
+ * and one arrow is not the reason to take one. `aria-hidden`, because the
143
+ * chip's accessible name is the target's own — a screen reader announcing an
144
+ * arrow after it would be reading the decoration.
145
+ */
146
+ function PointerGlyph() {
147
+ return (_jsx("svg", { "aria-hidden": "true", focusable: "false", viewBox: "0 0 16 16", width: "1em", height: "1em", style: { flex: "0 0 auto" }, children: _jsx("path", { d: "M6 3.5 10.5 8 6 12.5", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" }) }));
148
+ }
149
+ /**
150
+ * The pointers, after the partitions and outside the radiogroup.
151
+ *
152
+ * OUTSIDE is not a layout preference: a `role="radiogroup"` whose children
153
+ * include a link announces a choice that has an option you cannot choose. The
154
+ * pointers are their own row, and each one is an ordinary anchor — a
155
+ * middle-click, a ctrl/cmd-click and "open in a new tab" all work, which is
156
+ * the whole difference between a destination and a filter.
157
+ */
158
+ function PointerChips(props) {
159
+ return (_jsx("div", { style: ROW, "data-testid": "partition-links", children: props.items.map((item) => (_jsxs("a", { href: item.href, style: POINTER_CHIP, "data-testid": `partition-link-${item.path}`, children: [item.name, _jsx(PointerGlyph, {})] }, item.path))) }));
160
+ }
119
161
  /** The row's cells, as `[value, label]` — the parent first, then the
120
162
  * children in catalogue order. */
121
163
  function cells(items, allLabel) {
@@ -127,7 +169,15 @@ function cells(items, allLabel) {
127
169
  export function PartitionChips(props) {
128
170
  const t = useT();
129
171
  const row = useRef(null);
130
- const options = cells(props.items, props.allLabel ?? t(SEARCH_I18N_KEYS.partitionAll));
172
+ /* THE TWO KINDS OF CHILD, SPLIT ONCE. Everything below the split — the
173
+ cells, the roving stop, the value lookup, the arrow keys — sees only the
174
+ SECTIONS, which is what keeps a pointer out of the partition's semantics
175
+ rather than out of one rendering of them. */
176
+ const sections = props.items.filter((item) => item.linked !== true);
177
+ const pointers = props.linkedChildren === "none"
178
+ ? []
179
+ : props.items.filter((item) => item.linked === true && item.href !== undefined);
180
+ const options = cells(sections, props.allLabel ?? t(SEARCH_I18N_KEYS.partitionAll));
131
181
  /**
132
182
  * Arrow keys move the choice AND the focus, which is what a radiogroup
133
183
  * does: in a single-select row the focused option is the selected one, so
@@ -195,6 +245,11 @@ export function PartitionChips(props) {
195
245
  cells_[stop]?.focus();
196
246
  }, [props.value, stop]);
197
247
  const name = props.label ?? t(SEARCH_I18N_KEYS.partitionLabel);
248
+ /* The pointers ride BESIDE whichever control was drawn, never inside it —
249
+ see `PointerChips`. A fragment rather than a wrapper element: this row is
250
+ mounted in a vertical `<Flex>` that already spaces its children, and an
251
+ extra box here would take that gap away from the row it wraps. */
252
+ const withPointers = (control) => pointers.length === 0 ? (control) : (_jsxs(_Fragment, { children: [control, _jsx(PointerChips, { items: pointers })] }));
198
253
  if (props.variant === "segmented") {
199
254
  // antd's own control: `.ant-segmented`, one `input[type=radio]` per cell
200
255
  // under a shared `name`, the selected cell's `checked`, and the arrow keys
@@ -202,7 +257,7 @@ export function PartitionChips(props) {
202
257
  // `aria-label` reach the root because the component spreads what it is
203
258
  // given over its own defaults (which are `radiogroup` and the string
204
259
  // "segmented control").
205
- return (_jsx(Segmented, { block: true, size: "small", ref: row, role: "radiogroup", "aria-label": name, "data-variant": "segmented", "data-testid": "partition-chips",
260
+ return withPointers(_jsx(Segmented, { block: true, size: "small", ref: row, role: "radiogroup", "aria-label": name, "data-variant": "segmented", "data-testid": "partition-chips",
206
261
  /* The keypress is noted where it HAPPENS, before antd's own handler
207
262
  turns it into a value change and the host turns that into a
208
263
  navigation. Capture, because the cell's `input` is where the event
@@ -221,7 +276,7 @@ export function PartitionChips(props) {
221
276
  props.onChange(next === ALL ? null : String(next));
222
277
  } }));
223
278
  }
224
- return (_jsx("div", { style: ROW, "data-variant": "chips", ref: row, role: "radiogroup", "aria-label": name, "data-testid": "partition-chips", children: options.map(([value, label], index) => {
279
+ return withPointers(_jsx("div", { style: ROW, "data-variant": "chips", ref: row, role: "radiogroup", "aria-label": name, "data-testid": "partition-chips", children: options.map(([value, label], index) => {
225
280
  const selected = value === props.value;
226
281
  return (_jsx(Button, { size: "small", shape: "round", type: selected ? "primary" : "default", role: "radio", "aria-checked": selected,
227
282
  // Roving tabindex: the row is ONE Tab stop and it lands on the
@@ -1 +1 @@
1
- {"version":3,"file":"PartitionChips.js","sourceRoot":"","sources":["../../src/default/PartitionChips.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAO1C,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAqDnD;;;;;GAKG;AACH,MAAM,GAAG,GAAG,SAAS,CAAC;AAEt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C,IAAI,EAAC,OAAO,kBACE,QAAQ;gBACtB,+DAA+D;gBAC/D,0CAA0C;gBAC1C,QAAQ,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EACjC,KAAK,EAAE,IAAI,iBACE,kBAAkB,KAAK,IAAI,KAAK,EAAE,oBAChC,MAAM,2BACC,+CAA+C,EACrE,SAAS,EAAE,SAAS,CAAC,KAAK,CAAC,EAC3B,OAAO,EAAE,GAAG,EAAE;oBACZ,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;gBACxB,CAAC,YAEA,KAAK,IAlBD,KAAK,IAAI,GAAG,CAmBV,CACV,CAAC;QACJ,CAAC,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
@@ -55,7 +55,7 @@ export type { FacetGroupControlProps, FacetGroupShape, FacetOptionNode, } from "
55
55
  export { PopularValues, popularOptions, popularValuesLadderCss, POPULAR_VALUES_CLASS, POPULAR_VALUES_COLUMNS, POPULAR_VALUES_LADDER, POPULAR_VALUES_LIMIT, POPULAR_VALUES_STYLE_HREF, POPULAR_VALUE_COLUMN_WIDTH, } from "./PopularValues.js";
56
56
  export type { PopularValuesProps } from "./PopularValues.js";
57
57
  export { PartitionChips } from "./PartitionChips.js";
58
- export type { PartitionChild, PartitionChipsProps } from "./PartitionChips.js";
58
+ export type { PartitionChild, PartitionChipsProps, PartitionLinkedChildren, } from "./PartitionChips.js";
59
59
  export { FacetPanelPane, FACET_OPEN_GROUPS, FACET_SEARCH_THRESHOLD, FACET_VISIBLE_GROUPS, } from "./FacetPanelPane.js";
60
60
  export type { FacetPanelPaneProps, CategoryFilterSlotProps, GeoFilterSlotProps, } from "./FacetPanelPane.js";
61
61
  export { RankingDisclosurePane, RANKING_MAX_WIDTH } from "./RankingDisclosurePane.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/default/index.ts"],"names":[],"mappings":"AAAA;;;;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AAE,MAAM,iBAAiB,CAAC;AAEhF,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAGrD,+EAA+E;AAC/E,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAK3D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
package/llms.txt CHANGED
@@ -1,4 +1,4 @@
1
- # @stapel/search-react 0.38.0
1
+ # @stapel/search-react 0.39.0
2
2
 
3
3
  Headless React flow pair for stapel-search (contract >=0.16 <0.17) — business + state, zero visual opinion.
4
4
  Built on @stapel/core: typed client + StapelApiError envelope, auth token refresh,
@@ -87,7 +87,7 @@ const { tracked } = useTracked();
87
87
  - search.other-categories-line → <OtherCategoriesLine> [line|narrow|empty] demo/OtherCategoriesLine.demo.tsx
88
88
  - search.page → <SearchPage> [desktop|phone|catalogue-leaf|under-a-header|system-scrollbar|legacy-rhythm|filters-header-navigates|unreadable-link] demo/SearchPage.demo.tsx
89
89
  - search.page-size-select → <PageSizeSelect> [ladder|off-ladder] demo/PageSizeSelect.demo.tsx
90
- - search.partition-chips → <PartitionChips> [parent|counted|child] demo/PartitionChips.demo.tsx
90
+ - search.partition-chips → <PartitionChips> [parent|counted|pointer|child] demo/PartitionChips.demo.tsx
91
91
  - search.popular-values → <PopularValues> [desktop|responsive|narrow-column] demo/PopularValues.demo.tsx
92
92
  - search.range-filter-row → <RangeFilterRow> [untouched|applied] demo/RangeFilterRow.demo.tsx
93
93
  - search.ranking-pane → <RankingDisclosurePane> [desktop|phone] demo/RankingDisclosurePane.demo.tsx
package/manifest.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$generated": "by scripts/gen-manifest.mjs — do not edit; drift-gated (pnpm gen:manifest:check)",
3
3
  "package": "@stapel/search-react",
4
- "version": "0.38.0",
4
+ "version": "0.39.0",
5
5
  "backend": {
6
6
  "module": "stapel-search",
7
7
  "contract": ">=0.16 <0.17"
@@ -611,6 +611,7 @@
611
611
  "variants": [
612
612
  "parent",
613
613
  "counted",
614
+ "pointer",
614
615
  "child"
615
616
  ],
616
617
  "source": "demo/PartitionChips.demo.tsx"
package/nav-manifest.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@stapel/search-react",
3
- "version": "0.38.0",
3
+ "version": "0.39.0",
4
4
  "entries": [
5
5
  {
6
6
  "id": "search.results",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stapel/search-react",
3
- "version": "0.38.0",
3
+ "version": "0.39.0",
4
4
  "description": "Headless React pair for stapel-search: a typed query client, TanStack Query hooks, and a URL-first state codec that makes a search shareable by construction (filters, ranges, geo, sort and the keyset cursor all live in the query string). Drill-down facets rendered with their remaining counts and with the server's own honesty flags — approximate, skipped, degraded — never swallowed; keyset pagination with the window refusal named; DSA Art. 26 `promoted` marking carried into every card slot and the P2B Art. 5 ranking disclosure exposed as data. Zero visual opinion in the main entry; an opt-in /default subpath ships the antd skin, and /router binds the codec to react-router's useSearchParams.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -57,9 +57,9 @@
57
57
  "limit": "14.5 KB"
58
58
  },
59
59
  {
60
- "name": "default — the antd skin (query box + a typeahead that offers CATEGORY destinations with their live counts, filters incl. ranges/geo/category slots + the phone chip row with its leading category chip and the location summary row + the rail's evidence-ranked disclosure groups, panel search and sticky count/clear footer, results incl. the view switch, the card photo GALLERY as a SkinCarousel strip, the empty state's derived exits, ranking, the dictionary control for a vocabulary facet, the popular-values block, the partition row in both its chip and segmented variants, the select-style dictionary FIELD the desktop rail opens, the from/to pickers a bounded integer axis draws and the rail's own scrollbar sheet) must stay out of the main bundle. Raised 24.5 → 25.5 KB for those four controls, then 25.5 → 26.25 KB for the chip row's APPLIED mode — one chip per applied value and per numeric bound, each removing that one constraint beside a rail that is already on screen (a storefront was carrying its own copy of it), then 26.25 → 27 KB for the \"search in other categories\" LINE — which is a net deletion on the page that mounts it, replacing a full-width block of one row per section that arrived after the results and pushed them, then 27 → 27.75 KB for the two frames the page now tells apart: the dictionary FIELD reaching `<SearchPage>` at all (per-layout default, field in the rail and inline in the sheet) and the footer bar being static in a column and sticky in a sheet, where it used to be pinned over the last two groups everywhere, then 27.75 → 28.5 KB for `categoryHref` on the other-categories line — a real `<a href>` per row with a modifier-click left to the browser, instead of a `<button>` with no address a person could open in a new tab, then 28.5 → 29.25 KB for the phone's dictionary SHEET — a trigger row over the shared `SkinPickerSheet` with a recommended band, an alphabetical rest paged fifty at a time and a draft committed in one write, which is the control the composer's vocabulary picker already was while the buyer got a wall of checkboxes, then 29.25 → 30.5 KB for the panel that draws all of it: groups and ranges as one ordered sequence with one «Apply» for the panel rather than one per row, the empty-group heading rule, `categoryFilter={false}` and the `resultsLead` slot for a page reached by walking the catalogue, `PopularValues columns=\\\"responsive\\\"` on a container query, `SortSelect` annotating a blocked option at every width, a loading arm that covers the whole pane (0.34 CLS on a live host), and the chip row reserving its own box (a further 0.045). Measured with dependencies held constant, this package's src at the commit before that work and then at it: 29.05 -> 30.16 KB — 1.11 KB, and every part of it is a shift or a mislabelled control a host was living with, then 30.5 -> 31 KB for `<SearchResultsPane columns>` and its pass-through on `<SearchPage resultsColumns>`: a fixed track count or a per-breakpoint map, emitted as a hoisted container-query sheet (the results block is the window minus a 280px rail, so a media query would answer about a width the cards never have). Measured with dependencies held constant, this package's src before and after: 30.40 -> 30.65 KB — 250 B, and what it replaces is a host's `!important` rule against a grid declaration it could not read back, then 31 -> 31.25 KB for the segmented partition being antd's `Segmented` rather than a row of buttons wearing a border: the walker read `data-variant=\"segmented\"` with `role=\"radiogroup\"` and found `.ant-segmented` zero times and `input[type=radio]` zero times (D304), so the cells are the design system's now — real radios under one name, the browser's own arrow keys and Tab stop. Measured with dependencies held constant, this package's src before and after: 30.95 -> 31.05 KB — 100 B, against ~30 lines of hand-rolled joined-row geometry deleted, then 31.25 -> 31.5 KB for the two PINNING seams: `<SearchPage railTop>` (the rail's sticky offset and its height cap moved together, so a rail under a 64px header still ends at the foot of the window) and `<SearchResultsPane stickyToolbar>` with the toolbar's own element in both header shapes. Measured with dependencies held constant, this package's src before and after: 31.05 -> 31.2 KB — 150 B, and what it replaces in one deployment is an `!important` over the pair's own inline geometry, a `:has()`, a `display: contents` and this pair's rail breakpoint restated in the host's media query, then 31.5 -> 31.75 KB for the rail saying when its answer is IN FLIGHT: `FacetPanelBag.refreshing` off `loadStateFromQuery(…, { keepPrevious })`, `data-facets-refreshing` on the rail, and each facet group standing on its own last measured height (a `min-block-size` floor held in a ref) until the new answer lands. Measured with dependencies held constant, this package's src before and after: 31.43 -> 31.51 KB — 80 B, against 0.0586 CLS on a partition press (p43), where the groups survive and RESIZE, then 31.75 -> 32 KB for the FIRST MOUNT, which had none of that: `refreshing` is never true on a cold load, so nothing above reached the one pass a plain load is made of. Three parts. `<SearchPage categoryFeaturesPending>` / `<FacetPanelPane categoryFeaturesPending>` is the third state `categoryFeatures` never had — undefined means both \"no schema\" and \"not yet\", and on a category leaf the schema is a SECOND read, so the panel drew the rail from the answer alone and then drew it again when the schema landed: on the live cars leaf make and model went from three-row checkbox lists to one-row dictionary fields, condition and colour from checkboxes to pills, and `orderFacetGroupsBySchema` reordered all of them (p41, 0.0586 CLS on a plain load of `/c/transport-avtomobili`, make -152px and model -76px). Told the schema is coming, the panel keeps the box it already reserves and draws the rail ONCE. Second, every group now stands on a DECLARED box from the frame it mounts in (`facetGroupReservedHeight` — heading, rows and fold per shape), with its measured height preferred only while an answer is in flight. Third, `<SearchPage filtersHeaderReserve>` puts the host's own band above the rail in flow from the first frame, for the partition row that is two chained catalogue reads behind the answer. Measured with dependencies held constant, this package's src before and after: 30.77 -> 31.14 KB — 366 B, then 32 -> 32.25 KB for the filter sheet's open state becoming the HOST's: `<SearchPage filtersOpen>` / `onFiltersOpenChange(open, reason)` as React's usual controlled pair, and `filtersHeader` accepting a function handed `{ closeFilters, open }`. What it costs is the four call sites naming WHY the sheet moved (`open`, `apply`, `dismiss`, `consumer`) and the slot's function arm; what it buys is a header whose own control NAVIGATES being able to take the sheet down on the same press — the page published only `defaultFiltersOpen`, so a partition chip inside the sheet left the drawer standing over the page it had just opened. Measured with dependencies held constant, this package's src before and after: 31.14 -> 31.26 KB — 120 B, then 32.25 -> 32.5 KB for the two levers a storefront could not reach: `<SearchPage footerBar>` (the rail's footer bar writes its own `display` inline, so a consumer stylesheet could only suppress it with an `!important` its own gate forbids, and this page hard-coded the column's value) and `PartitionChild.count`, which the chip draws itself in the muted weight the facet rows use instead of a host welding the number onto the name. Measured with dependencies held constant, this package's src before and after: 32.01 -> 32.10 KB — 90 B, against a string-joining hack and an unreachable bar, then 32.5 -> 32.75 KB for THE THREE BOXES A STOREFRONT WAS HOLDING FOR THIS PAIR. The phone chip row's reserve is `chipRowMinHeight(token.controlHeight)` instead of a `44 + …` constant: the touch floor raises the chips to 44 only BELOW the tablet breakpoint, so from 768px up the reserve stood 12px taller than the 40px row and the results pane ROSE when the row landed (0.0725 CLS on a category leaf at 768, against 0.00016 at 390). `<SortSelect compact>` reserves the width of the longest label it can display, measured by the browser through an `aria-hidden` sizer stacked with the select in one grid cell, instead of `minWidth: 0` inline and a control that GREW 115px when the answer named the sort. And `<SearchResultsPane>` names its own root (`data-testid=\"search-results-pane\"`) and takes `reserve` — `<SearchPage resultsReserve>` — for the box the feed arrives into, which a host was holding with `#search-page > :last-child`. Measured with dependencies held constant, this package's src before and after: 32.10 -> 32.25 KB — 150 B, against a hand-guessed height, a sibling-count selector and two stylesheet rules a consumer can now delete. 32.75 KB HOLDS for the rail's own scrollbar and the block rhythm (owner's walk of the storefront, dark theme): measured 32539 B against the 32.75 KB line, 290 B over the 32249 B this note last recorded, and 211 B of room left. The rail stays its own scroll container — filters that stay put while the results move under them is the whole point of it — and `railScrollbar` names whose BAR draws in the gutter: `\"styled\"` (the new default) is a hoisted rule set in both vendor forms, a 6px track with no arrows and no track fill and a thumb that is transparent at rest and arrives from the tokens on hover or focus-within, standing always under `(pointer: coarse)` where neither fires; `\"system\"` hands the port back to the platform and mounts no sheet at all. The system bar was never a decision, which is why the default is the new arm. The rest is `blockRhythm`: one gap for every block on this page from `var(--stapel-block-gap)` / `var(--stapel-block-gap-compact)` with each block's outer margin reset, in place of the flat `spacing[4]` the root `<Flex>` wrote inline. A budget is not raised for a change that fits under the line it already has",
60
+ "name": "default — the antd skin (query box + a typeahead that offers CATEGORY destinations with their live counts, filters incl. ranges/geo/category slots + the phone chip row with its leading category chip and the location summary row + the rail's evidence-ranked disclosure groups, panel search and sticky count/clear footer, results incl. the view switch, the card photo GALLERY as a SkinCarousel strip, the empty state's derived exits, ranking, the dictionary control for a vocabulary facet, the popular-values block, the partition row in both its chip and segmented variants, the select-style dictionary FIELD the desktop rail opens, the from/to pickers a bounded integer axis draws and the rail's own scrollbar sheet) must stay out of the main bundle. Raised 24.5 → 25.5 KB for those four controls, then 25.5 → 26.25 KB for the chip row's APPLIED mode — one chip per applied value and per numeric bound, each removing that one constraint beside a rail that is already on screen (a storefront was carrying its own copy of it), then 26.25 → 27 KB for the \"search in other categories\" LINE — which is a net deletion on the page that mounts it, replacing a full-width block of one row per section that arrived after the results and pushed them, then 27 → 27.75 KB for the two frames the page now tells apart: the dictionary FIELD reaching `<SearchPage>` at all (per-layout default, field in the rail and inline in the sheet) and the footer bar being static in a column and sticky in a sheet, where it used to be pinned over the last two groups everywhere, then 27.75 → 28.5 KB for `categoryHref` on the other-categories line — a real `<a href>` per row with a modifier-click left to the browser, instead of a `<button>` with no address a person could open in a new tab, then 28.5 → 29.25 KB for the phone's dictionary SHEET — a trigger row over the shared `SkinPickerSheet` with a recommended band, an alphabetical rest paged fifty at a time and a draft committed in one write, which is the control the composer's vocabulary picker already was while the buyer got a wall of checkboxes, then 29.25 → 30.5 KB for the panel that draws all of it: groups and ranges as one ordered sequence with one «Apply» for the panel rather than one per row, the empty-group heading rule, `categoryFilter={false}` and the `resultsLead` slot for a page reached by walking the catalogue, `PopularValues columns=\\\"responsive\\\"` on a container query, `SortSelect` annotating a blocked option at every width, a loading arm that covers the whole pane (0.34 CLS on a live host), and the chip row reserving its own box (a further 0.045). Measured with dependencies held constant, this package's src at the commit before that work and then at it: 29.05 -> 30.16 KB — 1.11 KB, and every part of it is a shift or a mislabelled control a host was living with, then 30.5 -> 31 KB for `<SearchResultsPane columns>` and its pass-through on `<SearchPage resultsColumns>`: a fixed track count or a per-breakpoint map, emitted as a hoisted container-query sheet (the results block is the window minus a 280px rail, so a media query would answer about a width the cards never have). Measured with dependencies held constant, this package's src before and after: 30.40 -> 30.65 KB — 250 B, and what it replaces is a host's `!important` rule against a grid declaration it could not read back, then 31 -> 31.25 KB for the segmented partition being antd's `Segmented` rather than a row of buttons wearing a border: the walker read `data-variant=\"segmented\"` with `role=\"radiogroup\"` and found `.ant-segmented` zero times and `input[type=radio]` zero times (D304), so the cells are the design system's now — real radios under one name, the browser's own arrow keys and Tab stop. Measured with dependencies held constant, this package's src before and after: 30.95 -> 31.05 KB — 100 B, against ~30 lines of hand-rolled joined-row geometry deleted, then 31.25 -> 31.5 KB for the two PINNING seams: `<SearchPage railTop>` (the rail's sticky offset and its height cap moved together, so a rail under a 64px header still ends at the foot of the window) and `<SearchResultsPane stickyToolbar>` with the toolbar's own element in both header shapes. Measured with dependencies held constant, this package's src before and after: 31.05 -> 31.2 KB — 150 B, and what it replaces in one deployment is an `!important` over the pair's own inline geometry, a `:has()`, a `display: contents` and this pair's rail breakpoint restated in the host's media query, then 31.5 -> 31.75 KB for the rail saying when its answer is IN FLIGHT: `FacetPanelBag.refreshing` off `loadStateFromQuery(…, { keepPrevious })`, `data-facets-refreshing` on the rail, and each facet group standing on its own last measured height (a `min-block-size` floor held in a ref) until the new answer lands. Measured with dependencies held constant, this package's src before and after: 31.43 -> 31.51 KB — 80 B, against 0.0586 CLS on a partition press (p43), where the groups survive and RESIZE, then 31.75 -> 32 KB for the FIRST MOUNT, which had none of that: `refreshing` is never true on a cold load, so nothing above reached the one pass a plain load is made of. Three parts. `<SearchPage categoryFeaturesPending>` / `<FacetPanelPane categoryFeaturesPending>` is the third state `categoryFeatures` never had — undefined means both \"no schema\" and \"not yet\", and on a category leaf the schema is a SECOND read, so the panel drew the rail from the answer alone and then drew it again when the schema landed: on the live cars leaf make and model went from three-row checkbox lists to one-row dictionary fields, condition and colour from checkboxes to pills, and `orderFacetGroupsBySchema` reordered all of them (p41, 0.0586 CLS on a plain load of `/c/transport-avtomobili`, make -152px and model -76px). Told the schema is coming, the panel keeps the box it already reserves and draws the rail ONCE. Second, every group now stands on a DECLARED box from the frame it mounts in (`facetGroupReservedHeight` — heading, rows and fold per shape), with its measured height preferred only while an answer is in flight. Third, `<SearchPage filtersHeaderReserve>` puts the host's own band above the rail in flow from the first frame, for the partition row that is two chained catalogue reads behind the answer. Measured with dependencies held constant, this package's src before and after: 30.77 -> 31.14 KB — 366 B, then 32 -> 32.25 KB for the filter sheet's open state becoming the HOST's: `<SearchPage filtersOpen>` / `onFiltersOpenChange(open, reason)` as React's usual controlled pair, and `filtersHeader` accepting a function handed `{ closeFilters, open }`. What it costs is the four call sites naming WHY the sheet moved (`open`, `apply`, `dismiss`, `consumer`) and the slot's function arm; what it buys is a header whose own control NAVIGATES being able to take the sheet down on the same press — the page published only `defaultFiltersOpen`, so a partition chip inside the sheet left the drawer standing over the page it had just opened. Measured with dependencies held constant, this package's src before and after: 31.14 -> 31.26 KB — 120 B, then 32.25 -> 32.5 KB for the two levers a storefront could not reach: `<SearchPage footerBar>` (the rail's footer bar writes its own `display` inline, so a consumer stylesheet could only suppress it with an `!important` its own gate forbids, and this page hard-coded the column's value) and `PartitionChild.count`, which the chip draws itself in the muted weight the facet rows use instead of a host welding the number onto the name. Measured with dependencies held constant, this package's src before and after: 32.01 -> 32.10 KB — 90 B, against a string-joining hack and an unreachable bar, then 32.5 -> 32.75 KB for THE THREE BOXES A STOREFRONT WAS HOLDING FOR THIS PAIR. The phone chip row's reserve is `chipRowMinHeight(token.controlHeight)` instead of a `44 + …` constant: the touch floor raises the chips to 44 only BELOW the tablet breakpoint, so from 768px up the reserve stood 12px taller than the 40px row and the results pane ROSE when the row landed (0.0725 CLS on a category leaf at 768, against 0.00016 at 390). `<SortSelect compact>` reserves the width of the longest label it can display, measured by the browser through an `aria-hidden` sizer stacked with the select in one grid cell, instead of `minWidth: 0` inline and a control that GREW 115px when the answer named the sort. And `<SearchResultsPane>` names its own root (`data-testid=\"search-results-pane\"`) and takes `reserve` — `<SearchPage resultsReserve>` — for the box the feed arrives into, which a host was holding with `#search-page > :last-child`. Measured with dependencies held constant, this package's src before and after: 32.10 -> 32.25 KB — 150 B, against a hand-guessed height, a sibling-count selector and two stylesheet rules a consumer can now delete. 32.75 KB HOLDS for the rail's own scrollbar and the block rhythm (owner's walk of the storefront, dark theme): measured 32539 B against the 32.75 KB line, 290 B over the 32249 B this note last recorded, and 211 B of room left. The rail stays its own scroll container — filters that stay put while the results move under them is the whole point of it — and `railScrollbar` names whose BAR draws in the gutter: `\"styled\"` (the new default) is a hoisted rule set in both vendor forms, a 6px track with no arrows and no track fill and a thumb that is transparent at rest and arrives from the tokens on hover or focus-within, standing always under `(pointer: coarse)` where neither fires; `\"system\"` hands the port back to the platform and mounts no sheet at all. The system bar was never a decision, which is why the default is the new arm. The rest is `blockRhythm`: one gap for every block on this page from `var(--stapel-block-gap)` / `var(--stapel-block-gap-compact)` with each block's outer margin reset, in place of the flat `spacing[4]` the root `<Flex>` wrote inline. A budget is not raised for a change that fits under the line it already has. 32.75 -> 33.25 KB for THE POINTER THAT WAS A PARTITION CHIP (owner's read of the stand at 0.38.0). Measured with dependencies held constant, this package's src before this change and then at it: 32539 -> 32779 B — 240 B, 29 of them over the old line, and a ceiling that fails on 29 B of a shipped defect fix is a gate proving nothing. `PartitionChild.linked`/`href` and `<PartitionChips linkedChildren>` split the row's items ONCE, above everything that reads them: the cells, the roving stop, the value lookup and the arrow keys see only the SECTIONS, so a pointer cannot be a radio, cannot carry a count and cannot be the chosen partition — the live row read `All | New 0 | Used 3 | Car rental 0`, where the last zero counted a category that is not a section of this template at all. The rest is the pointer's own chip: an outlined pill that is a real `<a href>` to the target, its inline arrow glyph (drawn here, like every other glyph in this skin — this package ships no icon set), and the row that carries them OUTSIDE the radiogroup, because a `role=\"radiogroup\"` containing a link announces a choice with an option nobody can choose. 33.25 KB leaves 471 B",
61
61
  "path": "dist/default/index.js",
62
- "limit": "32.75 KB"
62
+ "limit": "33.25 KB"
63
63
  },
64
64
  {
65
65
  "name": "router — the react-router binding is opt-in; the main entry must never pull a router",
@@ -115,9 +115,9 @@
115
115
  "size-limit": "^11.2.0",
116
116
  "typescript": "^5.8.3",
117
117
  "vitest": "^3.2.4",
118
+ "@stapel/image": "^0.4.2",
118
119
  "@stapel/core": "^0.26.1",
119
120
  "@stapel/attributes-react": "^0.17.0",
120
- "@stapel/image": "^0.4.2",
121
121
  "@stapel/showcase": "^0.3.0",
122
122
  "@stapel/tokens": "^0.8.0",
123
123
  "@stapel/tokens-antd": "^0.18.0"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$generated": "by scripts/gen-events.mjs — do not edit; drift-gated (pnpm gen:events:check)",
3
3
  "package": "@stapel/search-react",
4
- "version": "0.38.0",
4
+ "version": "0.39.0",
5
5
  "defined": [],
6
6
  "flows": []
7
7
  }
@@ -57,7 +57,7 @@ import type {
57
57
  } from "react";
58
58
  import { Button, Segmented, Typography } from "antd";
59
59
  import { useT } from "@stapel/core";
60
- import { radii, spacing } from "@stapel/tokens";
60
+ import { cssVar, radii, spacing } from "@stapel/tokens";
61
61
  import { SEARCH_I18N_KEYS } from "../i18n/keys.js";
62
62
 
63
63
  /** One child of a partitioned category. `path` is the slash-joined id path
@@ -81,10 +81,48 @@ export interface PartitionChild {
81
81
  *
82
82
  * Omit it and nothing is drawn — an absent count is not a zero, and a
83
83
  * section whose total nobody asked for must not be captioned "0".
84
+ *
85
+ * Ignored on a POINTER — see {@link linked}.
84
86
  */
85
87
  readonly count?: number;
88
+ /**
89
+ * This entry is a POINTER to another category, not a section of THIS
90
+ * template (`CategoryChild.linked`, stapel-categories 0.22.0).
91
+ *
92
+ * A partition is one template split by a value its children's names express
93
+ * — new / used / for rent. A pointer is a different branch of the catalogue
94
+ * that an operator drew among these children so a person can reach it from
95
+ * here. It is not one of the halves, it does not narrow this feed, and it
96
+ * has NO count of its own: the number beside it is the number of listings in
97
+ * somebody else's category, which is why the storefront's
98
+ * `/c/transport-avtomobili` read `All | New 0 | Used 3 | Car rental 0`
99
+ * — two of those zeroes were a partition's real emptiness and one was a
100
+ * question nobody had asked.
101
+ *
102
+ * So a linked entry never becomes a radio, never carries a count, and never
103
+ * matches {@link PartitionChipsProps.value} — a stale address naming one
104
+ * leaves the row on its parent chip rather than lighting a pointer up as the
105
+ * chosen section. It is drawn AFTER the partitions as a link, or not at all:
106
+ * see {@link PartitionChipsProps.linkedChildren}.
107
+ */
108
+ readonly linked?: boolean;
109
+ /**
110
+ * WHERE a pointer leads — the target's own address, as the host builds it
111
+ * (`/c/<slug>`). Read only on a {@link linked} entry.
112
+ *
113
+ * The pointer's `path` is an id path into the CATALOGUE, and following it
114
+ * as a `category` filter is exactly the confusion this shape exists to end:
115
+ * a pointer is a destination, so the chip is a real `<a href>` that
116
+ * navigates, with no `f=` and no state change on this page. A linked entry
117
+ * with no `href` is not drawn — a link with no address is not a link.
118
+ */
119
+ readonly href?: string;
86
120
  }
87
121
 
122
+ /** What the row does with a POINTER among its children — see
123
+ * {@link PartitionChipsProps.linkedChildren}. */
124
+ export type PartitionLinkedChildren = "chip" | "none";
125
+
88
126
  export interface PartitionChipsProps {
89
127
  /** The children, in the order the catalogue declares them. */
90
128
  readonly items: readonly PartitionChild[];
@@ -109,6 +147,24 @@ export interface PartitionChipsProps {
109
147
  * browser's own `input[type=radio]` in `segmented`.
110
148
  */
111
149
  readonly variant?: "chips" | "segmented";
150
+ /**
151
+ * What the row does with a POINTER among its children. Default `"chip"`.
152
+ *
153
+ * - `"chip"` — drawn AFTER the partitions as an outlined link chip: the
154
+ * target's name and a trailing arrow, no count, a real `<a href>` that
155
+ * navigates to the target rather than filtering this page. Outlined and
156
+ * separate on purpose — it is not one of the choices, and a control that
157
+ * looks like the others while doing something else is worse than one
158
+ * that looks different;
159
+ * - `"none"` — not drawn here at all, for a page whose TILE STAGE already
160
+ * shows the same pointer as a tile. One destination offered twice, a row
161
+ * apart, is a person wondering what the difference is.
162
+ *
163
+ * Either way a pointer is out of the partition semantics: no radio, no
164
+ * count, never the chosen section. This prop only decides whether the link
165
+ * is offered in this row.
166
+ */
167
+ readonly linkedChildren?: PartitionLinkedChildren;
112
168
  }
113
169
 
114
170
  /**
@@ -127,6 +183,23 @@ const ROW: CSSProperties = {
127
183
  gap: spacing[2],
128
184
  };
129
185
 
186
+ /**
187
+ * The pointer chip: the partition pill's geometry, OUTLINED — a hairline and
188
+ * no fill, so it reads as a way out of this page rather than as one of the
189
+ * choices on it.
190
+ */
191
+ const POINTER_CHIP: CSSProperties = {
192
+ display: "inline-flex",
193
+ alignItems: "center",
194
+ gap: spacing[1],
195
+ borderRadius: radii.full,
196
+ border: `1px solid ${cssVar("border")}`,
197
+ paddingBlock: spacing[1],
198
+ paddingInline: spacing[3],
199
+ color: cssVar("text"),
200
+ lineHeight: 1.4,
201
+ };
202
+
130
203
  /** The keys that move the choice, in both variants. */
131
204
  const ARROW_KEYS = new Set(["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"]);
132
205
 
@@ -189,6 +262,68 @@ function ChildLabel(props: { readonly child: PartitionChild }): ReactElement {
189
262
  );
190
263
  }
191
264
 
265
+ /**
266
+ * The pointer chip's trailing mark — an arrow leaving to the right, the one
267
+ * glyph that says "this goes somewhere else" rather than "this narrows what
268
+ * is here".
269
+ *
270
+ * Drawn inline in `currentColor`, like every other glyph in this skin
271
+ * (`ChevronGlyph`, `PinGlyph`, `SlidersGlyph`): this package ships no icon set
272
+ * and one arrow is not the reason to take one. `aria-hidden`, because the
273
+ * chip's accessible name is the target's own — a screen reader announcing an
274
+ * arrow after it would be reading the decoration.
275
+ */
276
+ function PointerGlyph(): ReactElement {
277
+ return (
278
+ <svg
279
+ aria-hidden="true"
280
+ focusable="false"
281
+ viewBox="0 0 16 16"
282
+ width="1em"
283
+ height="1em"
284
+ style={{ flex: "0 0 auto" }}
285
+ >
286
+ <path
287
+ d="M6 3.5 10.5 8 6 12.5"
288
+ fill="none"
289
+ stroke="currentColor"
290
+ strokeWidth="1.75"
291
+ strokeLinecap="round"
292
+ strokeLinejoin="round"
293
+ />
294
+ </svg>
295
+ );
296
+ }
297
+
298
+ /**
299
+ * The pointers, after the partitions and outside the radiogroup.
300
+ *
301
+ * OUTSIDE is not a layout preference: a `role="radiogroup"` whose children
302
+ * include a link announces a choice that has an option you cannot choose. The
303
+ * pointers are their own row, and each one is an ordinary anchor — a
304
+ * middle-click, a ctrl/cmd-click and "open in a new tab" all work, which is
305
+ * the whole difference between a destination and a filter.
306
+ */
307
+ function PointerChips(props: {
308
+ readonly items: readonly PartitionChild[];
309
+ }): ReactElement {
310
+ return (
311
+ <div style={ROW} data-testid="partition-links">
312
+ {props.items.map((item) => (
313
+ <a
314
+ key={item.path}
315
+ href={item.href}
316
+ style={POINTER_CHIP}
317
+ data-testid={`partition-link-${item.path}`}
318
+ >
319
+ {item.name}
320
+ <PointerGlyph />
321
+ </a>
322
+ ))}
323
+ </div>
324
+ );
325
+ }
326
+
192
327
  /** The row's cells, as `[value, label]` — the parent first, then the
193
328
  * children in catalogue order. */
194
329
  function cells(
@@ -206,8 +341,19 @@ function cells(
206
341
  export function PartitionChips(props: PartitionChipsProps): ReactElement {
207
342
  const t = useT();
208
343
  const row = useRef<HTMLDivElement>(null);
344
+ /* THE TWO KINDS OF CHILD, SPLIT ONCE. Everything below the split — the
345
+ cells, the roving stop, the value lookup, the arrow keys — sees only the
346
+ SECTIONS, which is what keeps a pointer out of the partition's semantics
347
+ rather than out of one rendering of them. */
348
+ const sections = props.items.filter((item) => item.linked !== true);
349
+ const pointers =
350
+ props.linkedChildren === "none"
351
+ ? []
352
+ : props.items.filter(
353
+ (item) => item.linked === true && item.href !== undefined
354
+ );
209
355
  const options = cells(
210
- props.items,
356
+ sections,
211
357
  props.allLabel ?? t(SEARCH_I18N_KEYS.partitionAll)
212
358
  );
213
359
 
@@ -282,6 +428,20 @@ export function PartitionChips(props: PartitionChipsProps): ReactElement {
282
428
 
283
429
  const name = props.label ?? t(SEARCH_I18N_KEYS.partitionLabel);
284
430
 
431
+ /* The pointers ride BESIDE whichever control was drawn, never inside it —
432
+ see `PointerChips`. A fragment rather than a wrapper element: this row is
433
+ mounted in a vertical `<Flex>` that already spaces its children, and an
434
+ extra box here would take that gap away from the row it wraps. */
435
+ const withPointers = (control: ReactElement): ReactElement =>
436
+ pointers.length === 0 ? (
437
+ control
438
+ ) : (
439
+ <>
440
+ {control}
441
+ <PointerChips items={pointers} />
442
+ </>
443
+ );
444
+
285
445
  if (props.variant === "segmented") {
286
446
  // antd's own control: `.ant-segmented`, one `input[type=radio]` per cell
287
447
  // under a shared `name`, the selected cell's `checked`, and the arrow keys
@@ -289,7 +449,7 @@ export function PartitionChips(props: PartitionChipsProps): ReactElement {
289
449
  // `aria-label` reach the root because the component spreads what it is
290
450
  // given over its own defaults (which are `radiogroup` and the string
291
451
  // "segmented control").
292
- return (
452
+ return withPointers(
293
453
  <Segmented
294
454
  block
295
455
  size="small"
@@ -328,7 +488,7 @@ export function PartitionChips(props: PartitionChipsProps): ReactElement {
328
488
  );
329
489
  }
330
490
 
331
- return (
491
+ return withPointers(
332
492
  <div
333
493
  style={ROW}
334
494
  data-variant="chips"
@@ -167,7 +167,11 @@ export {
167
167
  } from "./PopularValues.js";
168
168
  export type { PopularValuesProps } from "./PopularValues.js";
169
169
  export { PartitionChips } from "./PartitionChips.js";
170
- export type { PartitionChild, PartitionChipsProps } from "./PartitionChips.js";
170
+ export type {
171
+ PartitionChild,
172
+ PartitionChipsProps,
173
+ PartitionLinkedChildren,
174
+ } from "./PartitionChips.js";
171
175
 
172
176
  export {
173
177
  FacetPanelPane,