@stapel/search-react 0.20.0 → 0.22.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.
Files changed (98) hide show
  1. package/CHANGELOG.md +138 -0
  2. package/README.md +65 -2
  3. package/dist/api/generated/schema.d.ts +96 -4
  4. package/dist/api/generated/schema.d.ts.map +1 -1
  5. package/dist/api/types.d.ts +68 -6
  6. package/dist/api/types.d.ts.map +1 -1
  7. package/dist/api/types.js.map +1 -1
  8. package/dist/default/FacetGroupControl.d.ts +34 -4
  9. package/dist/default/FacetGroupControl.d.ts.map +1 -1
  10. package/dist/default/FacetGroupControl.js +112 -7
  11. package/dist/default/FacetGroupControl.js.map +1 -1
  12. package/dist/default/FacetPanelPane.d.ts.map +1 -1
  13. package/dist/default/FacetPanelPane.js +27 -1
  14. package/dist/default/FacetPanelPane.js.map +1 -1
  15. package/dist/default/LocationSummaryLine.d.ts +3 -0
  16. package/dist/default/LocationSummaryLine.d.ts.map +1 -1
  17. package/dist/default/LocationSummaryLine.js +55 -8
  18. package/dist/default/LocationSummaryLine.js.map +1 -1
  19. package/dist/default/PartitionChips.d.ts +23 -0
  20. package/dist/default/PartitionChips.d.ts.map +1 -0
  21. package/dist/default/PartitionChips.js +94 -0
  22. package/dist/default/PartitionChips.js.map +1 -0
  23. package/dist/default/PopularValues.d.ts +58 -0
  24. package/dist/default/PopularValues.d.ts.map +1 -0
  25. package/dist/default/PopularValues.js +46 -0
  26. package/dist/default/PopularValues.js.map +1 -0
  27. package/dist/default/SearchPage.d.ts.map +1 -1
  28. package/dist/default/SearchPage.js +5 -0
  29. package/dist/default/SearchPage.js.map +1 -1
  30. package/dist/default/index.d.ts +5 -1
  31. package/dist/default/index.d.ts.map +1 -1
  32. package/dist/default/index.js +6 -1
  33. package/dist/default/index.js.map +1 -1
  34. package/dist/headless/FacetPanel.d.ts +29 -1
  35. package/dist/headless/FacetPanel.d.ts.map +1 -1
  36. package/dist/headless/FacetPanel.js +14 -0
  37. package/dist/headless/FacetPanel.js.map +1 -1
  38. package/dist/headless/SearchStateProvider.d.ts +15 -0
  39. package/dist/headless/SearchStateProvider.d.ts.map +1 -1
  40. package/dist/headless/SearchStateProvider.js +38 -3
  41. package/dist/headless/SearchStateProvider.js.map +1 -1
  42. package/dist/headless/useFacetLabels.js +7 -7
  43. package/dist/headless/useFacetLabels.js.map +1 -1
  44. package/dist/i18n/es.d.ts.map +1 -1
  45. package/dist/i18n/es.js +12 -0
  46. package/dist/i18n/es.js.map +1 -1
  47. package/dist/i18n/keys.d.ts +72 -0
  48. package/dist/i18n/keys.d.ts.map +1 -1
  49. package/dist/i18n/keys.js +86 -0
  50. package/dist/i18n/keys.js.map +1 -1
  51. package/dist/i18n/ru.d.ts.map +1 -1
  52. package/dist/i18n/ru.js +14 -0
  53. package/dist/i18n/ru.js.map +1 -1
  54. package/dist/index.d.ts +4 -3
  55. package/dist/index.d.ts.map +1 -1
  56. package/dist/index.js +2 -1
  57. package/dist/index.js.map +1 -1
  58. package/dist/state/degradations.d.ts +9 -0
  59. package/dist/state/degradations.d.ts.map +1 -1
  60. package/dist/state/degradations.js +13 -0
  61. package/dist/state/degradations.js.map +1 -1
  62. package/dist/state/facets.d.ts +29 -6
  63. package/dist/state/facets.d.ts.map +1 -1
  64. package/dist/state/facets.js +120 -16
  65. package/dist/state/facets.js.map +1 -1
  66. package/dist/state/translit.d.ts +58 -0
  67. package/dist/state/translit.d.ts.map +1 -0
  68. package/dist/state/translit.js +115 -0
  69. package/dist/state/translit.js.map +1 -0
  70. package/dist/state/urlState.d.ts +26 -1
  71. package/dist/state/urlState.d.ts.map +1 -1
  72. package/dist/state/urlState.js +43 -17
  73. package/dist/state/urlState.js.map +1 -1
  74. package/llms.txt +4 -2
  75. package/manifest.json +49 -2
  76. package/nav-manifest.json +1 -1
  77. package/package.json +8 -8
  78. package/src/analytics/generated/events.json +1 -1
  79. package/src/api/generated/schema.ts +96 -4
  80. package/src/api/types.ts +77 -5
  81. package/src/default/FacetGroupControl.tsx +213 -8
  82. package/src/default/FacetPanelPane.tsx +36 -1
  83. package/src/default/LocationSummaryLine.tsx +114 -53
  84. package/src/default/PartitionChips.tsx +161 -0
  85. package/src/default/PopularValues.tsx +151 -0
  86. package/src/default/SearchPage.tsx +5 -0
  87. package/src/default/index.ts +15 -0
  88. package/src/headless/FacetPanel.tsx +49 -1
  89. package/src/headless/SearchStateProvider.tsx +59 -3
  90. package/src/headless/useFacetLabels.ts +7 -7
  91. package/src/i18n/es.ts +16 -0
  92. package/src/i18n/keys.ts +91 -0
  93. package/src/i18n/ru.ts +20 -0
  94. package/src/index.ts +12 -0
  95. package/src/state/degradations.ts +14 -0
  96. package/src/state/facets.ts +154 -28
  97. package/src/state/translit.ts +113 -0
  98. package/src/state/urlState.ts +72 -13
@@ -24,6 +24,7 @@ const ISSUE_KEY = {
24
24
  geo_incomplete: "search.url.issue.geo_incomplete",
25
25
  bbox_malformed: "search.url.issue.bbox_malformed",
26
26
  range_malformed: "search.url.issue.range_malformed",
27
+ radius_without_place: "search.url.issue.radius_without_place",
27
28
  };
28
29
  function num(raw, param, issues) {
29
30
  const value = Number(raw);
@@ -43,7 +44,7 @@ function parseGeo(params, issues) {
43
44
  code: "bbox_malformed",
44
45
  messageKey: ISSUE_KEY.bbox_malformed,
45
46
  });
46
- return undefined;
47
+ return { geo: undefined };
47
48
  }
48
49
  const values = parts.map((p) => Number(p));
49
50
  if (values.some((v) => !Number.isFinite(v))) {
@@ -52,42 +53,62 @@ function parseGeo(params, issues) {
52
53
  code: "bbox_malformed",
53
54
  messageKey: ISSUE_KEY.bbox_malformed,
54
55
  });
55
- return undefined;
56
+ return { geo: undefined };
56
57
  }
57
58
  // `minLon > maxLon` is LEGAL — it means the box crosses the antimeridian
58
59
  // (`stapel-search/query.py`). Normalizing it here would silently turn a
59
60
  // Pacific search into the rest of the world.
60
61
  return {
61
- kind: "bbox",
62
- minLat: values[0],
63
- minLon: values[1],
64
- maxLat: values[2],
65
- maxLon: values[3],
62
+ geo: {
63
+ kind: "bbox",
64
+ minLat: values[0],
65
+ minLon: values[1],
66
+ maxLat: values[2],
67
+ maxLon: values[3],
68
+ },
66
69
  };
67
70
  }
68
71
  const rawLat = params.get(SEARCH_PARAM.lat);
69
72
  const rawLon = params.get(SEARCH_PARAM.lon);
70
- if (rawLat === null && rawLon === null)
71
- return undefined;
73
+ if (rawLat === null && rawLon === null) {
74
+ // A radius parked in the URL with no point to measure it from. See
75
+ // `radius_without_place`: the search below is correct, the screen was the
76
+ // liar.
77
+ const orphan = params.get(SEARCH_PARAM.radiusKm);
78
+ if (orphan !== null) {
79
+ issues.push({
80
+ param: SEARCH_PARAM.radiusKm,
81
+ code: "radius_without_place",
82
+ messageKey: ISSUE_KEY.radius_without_place,
83
+ });
84
+ const km = Number(orphan);
85
+ if (Number.isFinite(km) && km > 0) {
86
+ return { geo: undefined, orphanRadiusKm: km };
87
+ }
88
+ }
89
+ return { geo: undefined };
90
+ }
72
91
  if (rawLat === null || rawLon === null) {
73
92
  issues.push({
74
93
  param: rawLat === null ? SEARCH_PARAM.lat : SEARCH_PARAM.lon,
75
94
  code: "geo_incomplete",
76
95
  messageKey: ISSUE_KEY.geo_incomplete,
77
96
  });
78
- return undefined;
97
+ return { geo: undefined };
79
98
  }
80
99
  const lat = num(rawLat, SEARCH_PARAM.lat, issues);
81
100
  const lon = num(rawLon, SEARCH_PARAM.lon, issues);
82
101
  if (lat === undefined || lon === undefined)
83
- return undefined;
102
+ return { geo: undefined };
84
103
  const rawRadius = params.get(SEARCH_PARAM.radiusKm);
85
104
  const radiusKm = rawRadius === null ? undefined : num(rawRadius, SEARCH_PARAM.radiusKm, issues);
86
105
  return {
87
- kind: "center",
88
- lat,
89
- lon,
90
- ...(radiusKm !== undefined ? { radiusKm } : {}),
106
+ geo: {
107
+ kind: "center",
108
+ lat,
109
+ lon,
110
+ ...(radiusKm !== undefined ? { radiusKm } : {}),
111
+ },
91
112
  };
92
113
  }
93
114
  function parseFacetSelection(raw) {
@@ -145,6 +166,7 @@ export function parseSearchState(params, options) {
145
166
  // (`query.py`), so the codec mirrors that instead of inventing a refusal
146
167
  // the backend does not have.
147
168
  const direction = rawDirection === null ? undefined : rawDirection === "prev" ? "prev" : "next";
169
+ const geoParse = parseGeo(params, issues);
148
170
  const state = {
149
171
  type: params.get(SEARCH_PARAM.type) ?? options.defaultType,
150
172
  q: params.get(SEARCH_PARAM.q) ?? options.defaultQ ?? "",
@@ -153,14 +175,18 @@ export function parseSearchState(params, options) {
153
175
  ...optional(SEARCH_PARAM.lang, params.get(SEARCH_PARAM.lang) ?? options.defaultLang),
154
176
  ...optional(SEARCH_PARAM.category, params.get(SEARCH_PARAM.category) ?? options.defaultCategory),
155
177
  ...optional(SEARCH_PARAM.owner, params.get(SEARCH_PARAM.owner) ?? undefined),
156
- ...optional("geo", parseGeo(params, issues)),
178
+ ...optional("geo", geoParse.geo),
157
179
  ...optional(SEARCH_PARAM.sort, params.get(SEARCH_PARAM.sort) ?? options.defaultSort),
158
180
  ...optional("facets", parseFacetSelection(params.get(SEARCH_PARAM.facets))),
159
181
  ...optional(SEARCH_PARAM.anchor, params.get(SEARCH_PARAM.anchor) ?? undefined),
160
182
  ...optional("direction", direction),
161
183
  ...optional("limit", limit),
162
184
  };
163
- return { state, issues };
185
+ return {
186
+ state,
187
+ issues,
188
+ ...optional("orphanRadiusKm", geoParse.orphanRadiusKm),
189
+ };
164
190
  }
165
191
  /** `exactOptionalPropertyTypes` makes `{k: undefined}` and "absent" different
166
192
  * types; this spreads to nothing when the value is absent. */
@@ -1 +1 @@
1
- {"version":3,"file":"urlState.js","sourceRoot":"","sources":["../../src/state/urlState.ts"],"names":[],"mappings":"AA4BA,kEAAkE;AAClE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,MAAM;IACZ,CAAC,EAAE,GAAG;IACN,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,IAA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AAK,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,KAAK,CAAC;AACf,CAAC"}
package/llms.txt CHANGED
@@ -1,6 +1,6 @@
1
- # @stapel/search-react 0.20.0
1
+ # @stapel/search-react 0.22.0
2
2
 
3
- Headless React flow pair for stapel-search (contract >=0.10 <0.11) — business + state, zero visual opinion.
3
+ Headless React flow pair for stapel-search (contract >=0.14 <0.15) — business + state, zero visual opinion.
4
4
  Built on @stapel/core: typed client + StapelApiError envelope, auth token refresh,
5
5
  verification-403 interception, i18n engine, analytics facade, TanStack Query layer.
6
6
 
@@ -85,6 +85,8 @@ const { tracked } = useTracked();
85
85
  - search.location-summary → <LocationSummaryLine> [everywhere|placed|narrowed|long-place|wide] demo/LocationSummaryLine.demo.tsx
86
86
  - search.page → <SearchPage> [desktop|phone|unreadable-link] demo/SearchPage.demo.tsx
87
87
  - search.page-size-select → <PageSizeSelect> [ladder|off-ladder] demo/PageSizeSelect.demo.tsx
88
+ - search.partition-chips → <PartitionChips> [parent|child] demo/PartitionChips.demo.tsx
89
+ - search.popular-values → <PopularValues> [desktop|narrow-column] demo/PopularValues.demo.tsx
88
90
  - search.range-filter-row → <RangeFilterRow> [untouched|applied] demo/RangeFilterRow.demo.tsx
89
91
  - search.ranking-pane → <RankingDisclosurePane> [desktop|phone] demo/RankingDisclosurePane.demo.tsx
90
92
  - search.result-card → <SearchResultCard> [gallery|promoted|unresolved|plain] demo/SearchResultCard.demo.tsx
package/manifest.json CHANGED
@@ -1,10 +1,10 @@
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.20.0",
4
+ "version": "0.22.0",
5
5
  "backend": {
6
6
  "module": "stapel-search",
7
- "contract": ">=0.10 <0.11"
7
+ "contract": ">=0.14 <0.15"
8
8
  },
9
9
  "layers": [
10
10
  "api",
@@ -573,6 +573,31 @@
573
573
  ],
574
574
  "source": "demo/PageSizeSelect.demo.tsx"
575
575
  },
576
+ {
577
+ "id": "search.partition-chips",
578
+ "title": "Partition chips",
579
+ "description": "A single-select row of the parent plus its children, where the first chip is the parent itself rather than a way of clearing the others — searching the parent IS the union of its children. It is a real radiogroup with roving tabindex: Tab reaches the row once and lands on the chosen chip, the arrow keys move along it and choose as they go. A row of aria-pressed toggles would announce the opposite — independent switches, with no reason why pressing one released another.",
580
+ "component": "PartitionChips",
581
+ "variants": [
582
+ "parent",
583
+ "child"
584
+ ],
585
+ "source": "demo/PartitionChips.demo.tsx"
586
+ },
587
+ {
588
+ "id": "search.popular-values",
589
+ "title": "Popular values",
590
+ "description": "The head of one facet as a multi-column list of value + count, each line applying that filter. The numbers are the answer's own drill-down counts — the same ones the checkbox rows carry — so a value cannot read 802 here and 93 in the panel. Values with no evidence behind them are dropped rather than printed with a blank where the number belongs: the block IS the numbers. Whether a phone has room for it is the page's decision and arrives as the `hidden` prop, never as a media query inside.",
591
+ "component": "PopularValues",
592
+ "tokens": [
593
+ "text-muted"
594
+ ],
595
+ "variants": [
596
+ "desktop",
597
+ "narrow-column"
598
+ ],
599
+ "source": "demo/PopularValues.demo.tsx"
600
+ },
576
601
  {
577
602
  "id": "search.range-filter-row",
578
603
  "title": "Numeric range filter",
@@ -744,6 +769,7 @@
744
769
  "search.degraded.category_rollup",
745
770
  "search.degraded.exact_facet_counts",
746
771
  "search.degraded.exact_total",
772
+ "search.degraded.facet_plan_evidence",
747
773
  "search.degraded.phrase_synonyms",
748
774
  "search.degraded.scorer",
749
775
  "search.degraded.title",
@@ -758,6 +784,9 @@
758
784
  "search.facets.approximate",
759
785
  "search.facets.clear",
760
786
  "search.facets.clear_all",
787
+ "search.facets.dictionary_chosen",
788
+ "search.facets.dictionary_empty",
789
+ "search.facets.dictionary_search",
761
790
  "search.facets.drill_down_hint",
762
791
  "search.facets.empty",
763
792
  "search.facets.load_failed",
@@ -766,6 +795,7 @@
766
795
  "search.facets.match_count.one",
767
796
  "search.facets.match_count.other",
768
797
  "search.facets.not_counted",
798
+ "search.facets.popular_all",
769
799
  "search.facets.range_apply",
770
800
  "search.facets.range_clear",
771
801
  "search.facets.range_from",
@@ -779,6 +809,9 @@
779
809
  "search.facets.show_less",
780
810
  "search.facets.skipped",
781
811
  "search.facets.title",
812
+ "search.facets.withheld",
813
+ "search.facets.withheld.one",
814
+ "search.facets.withheld.other",
782
815
  "search.filters.all",
783
816
  "search.filters.apply",
784
817
  "search.filters.chip_more",
@@ -798,7 +831,9 @@
798
831
  "search.geo.clear",
799
832
  "search.geo.everywhere",
800
833
  "search.geo.near_me",
834
+ "search.geo.near_you",
801
835
  "search.geo.radius_km",
836
+ "search.geo.radius_km_short",
802
837
  "search.geo.radius_label",
803
838
  "search.geo.title",
804
839
  "search.language.any",
@@ -809,6 +844,8 @@
809
844
  "search.nav.ranking",
810
845
  "search.nav.ranking.short",
811
846
  "search.nav.results",
847
+ "search.partition.all",
848
+ "search.partition.label",
812
849
  "search.range.price",
813
850
  "search.ranking.applies_to",
814
851
  "search.ranking.empty",
@@ -860,6 +897,7 @@
860
897
  "search.url.issue.bbox_malformed",
861
898
  "search.url.issue.geo_incomplete",
862
899
  "search.url.issue.not_a_number",
900
+ "search.url.issue.radius_without_place",
863
901
  "search.url.issue.range_malformed",
864
902
  "search.url.issues_title",
865
903
  "search.view.grid",
@@ -869,6 +907,7 @@
869
907
  "exports": {
870
908
  "runtime": [
871
909
  "FACETABLE_FEATURE_TYPES",
910
+ "FACET_PLAN_EVIDENCE",
872
911
  "FILTER_PREFIX",
873
912
  "FacetPanel",
874
913
  "RANGE_FEATURE_TYPES",
@@ -901,6 +940,7 @@
901
940
  "buildFacetGroups",
902
941
  "buildRangeGroups",
903
942
  "clearFilters",
943
+ "consonantKey",
904
944
  "coreRangeLabelKey",
905
945
  "countIsEstimate",
906
946
  "countKind",
@@ -931,6 +971,8 @@
931
971
  "setRangeValue",
932
972
  "suggestTerms",
933
973
  "toggleFilterValue",
974
+ "translitKey",
975
+ "translitPrefixMatch",
934
976
  "useAppliedSort",
935
977
  "useFacetPanel",
936
978
  "useHostFacetLabels",
@@ -949,13 +991,18 @@
949
991
  "BuildFacetGroupsInput",
950
992
  "BuildRangeGroupsInput",
951
993
  "CreateSearchRuntimeOptions",
994
+ "FacetCategoryCount",
952
995
  "FacetGroup",
953
996
  "FacetLabelRequest",
954
997
  "FacetLabelResolver",
998
+ "FacetLabelSource",
999
+ "FacetLabels",
1000
+ "FacetLabelsMap",
955
1001
  "FacetMeta",
956
1002
  "FacetOption",
957
1003
  "FacetPanelBag",
958
1004
  "FacetSelection",
1005
+ "FacetWithheldGroup",
959
1006
  "ParseSearchStateOptions",
960
1007
  "ParsedSearchState",
961
1008
  "RangeGroup",
package/nav-manifest.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@stapel/search-react",
3
- "version": "0.20.0",
3
+ "version": "0.22.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.20.0",
3
+ "version": "0.22.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": {
@@ -52,14 +52,14 @@
52
52
  ],
53
53
  "size-limit": [
54
54
  {
55
- "name": "index — the headless pair (client + hooks + URL codec + facet model incl. the facetability rule and the host label seam): no antd, no react-router",
55
+ "name": "index — the headless pair (client + hooks + URL codec + facet model incl. the facetability rule, the label-source order and the across-alphabets prefix matcher): no antd, no react-router",
56
56
  "path": "dist/index.js",
57
- "limit": "11 KB"
57
+ "limit": "12 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) must stay out of the main bundle",
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 and the partition chip row) must stay out of the main bundle",
61
61
  "path": "dist/default/index.js",
62
- "limit": "22 KB"
62
+ "limit": "24.5 KB"
63
63
  },
64
64
  {
65
65
  "name": "router — the react-router binding is opt-in; the main entry must never pull a router",
@@ -69,7 +69,7 @@
69
69
  {
70
70
  "name": "i18n/ru — the Russian bundle is opt-in, not carried by the main entry",
71
71
  "path": "dist/i18n/ru.js",
72
- "limit": "4.5 KB"
72
+ "limit": "4.75 KB"
73
73
  },
74
74
  {
75
75
  "name": "i18n/es — the Spanish bundle is opt-in, not carried by the main entry",
@@ -115,12 +115,12 @@
115
115
  "size-limit": "^11.2.0",
116
116
  "typescript": "^5.8.3",
117
117
  "vitest": "^3.2.4",
118
- "@stapel/attributes-react": "^0.14.1",
119
118
  "@stapel/core": "^0.24.0",
120
119
  "@stapel/image": "^0.4.2",
121
120
  "@stapel/showcase": "^0.3.0",
122
121
  "@stapel/tokens": "^0.7.0",
123
- "@stapel/tokens-antd": "^0.16.0"
122
+ "@stapel/attributes-react": "^0.14.1",
123
+ "@stapel/tokens-antd": "^0.16.1"
124
124
  },
125
125
  "engines": {
126
126
  "node": ">=22"
@@ -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.20.0",
4
+ "version": "0.22.0",
5
5
  "defined": [],
6
6
  "flows": []
7
7
  }
@@ -135,6 +135,19 @@ export interface paths {
135
135
  export type webhooks = Record<string, never>;
136
136
  export interface components {
137
137
  schemas: {
138
+ /** @description One partition of the answer — a heading, never a filter over it. */
139
+ BandSummary: {
140
+ id: components["schemas"]["IdEnum"];
141
+ /** @description How many rows are in this band. `null` when the engine cannot say. The two counts add up to the top-level `count`, which is the machine-checkable form of 'nothing is hidden by distance'. */
142
+ count: number | null;
143
+ /** @description True when `count` is a floor (a capped count). Render 'N+'. */
144
+ count_is_lower_bound: boolean;
145
+ /**
146
+ * Format: double
147
+ * @description Present on `nearby` only: the edge, in km, the band was cut at. `all` has no edge — it is everything else, which is the promise.
148
+ */
149
+ radius_km?: number;
150
+ };
138
151
  /** @description One destination in the dropdown, ready to render and ready to follow. */
139
152
  CategorySuggestion: {
140
153
  /** @description Category id. A `listings`-graded row derives it from the path's leaf segment. */
@@ -149,6 +162,17 @@ export interface components {
149
162
  category: string;
150
163
  /** @description Live listings a buyer would see under this category, descendants included — the same number the SERP reports for it. On a `listings`-graded row: how many of them match the typed query, which is the count a `?q=…&category=…` tap will show. */
151
164
  count: number;
165
+ /**
166
+ * @description What `count` counted. `category`: everything live under this category, the typed text ignored — the row is a PLACE. `query_in_category`: only the documents matching the typed text, which is what a `listings`-graded row is about. The two are different numbers about different pages, which is why the row says which one it is instead of leaving a storefront to guess.
167
+ *
168
+ * * `category` - category
169
+ * * `query_in_category` - query_in_category
170
+ */
171
+ count_scope: components["schemas"]["CountScopeEnum"];
172
+ /** @description The /query parameters this row's `count` was computed for — send them VERBATIM (plus your own `type`/`lang`/paging) when the buyer follows the row. Always carries `category`; carries `q` only when `count_scope` is `query_in_category`. Assembling these yourself re-opens the defect this field exists to close: a place row followed with the typed text opens an empty page while its count promised stock. */
173
+ query: {
174
+ [key: string]: string;
175
+ };
152
176
  /** @description Number of segments in `path`. */
153
177
  depth: number;
154
178
  /**
@@ -163,6 +187,28 @@ export interface components {
163
187
  */
164
188
  match: components["schemas"]["MatchEnum"];
165
189
  };
190
+ /**
191
+ * @description * `category` - category
192
+ * * `query_in_category` - query_in_category
193
+ * @enum {string}
194
+ */
195
+ CountScopeEnum: "category" | "query_in_category";
196
+ /** @description One filter the query's own words produced, ready to be replayed. */
197
+ ExtractedFilter: {
198
+ slug: string;
199
+ value: string;
200
+ label: string;
201
+ value_label: string;
202
+ method: components["schemas"]["MethodEnum"];
203
+ /** Format: double */
204
+ confidence: number;
205
+ /** @description `[start, end)` into the RAW query, so a UI can underline the words that became this chip. */
206
+ span: number[];
207
+ /** @description The literal query parameter this filter IS — e.g. `f.color=krasnyy`. Re-send it verbatim to KEEP the chip, omit it to remove it, and send `qu=off` alongside so the server does not extract it again. Nothing about extraction is remembered server-side, which is why the parameter has to be complete. */
208
+ param: string;
209
+ /** @description True when this filter actually narrowed the answer. A false one still contributed to each row's `match_count`. */
210
+ applied: boolean;
211
+ };
166
212
  /** @description Captions for one slug's option codes. */
167
213
  FacetLabels: {
168
214
  /** @description True when `values` holds translation KEYS to run through the catalogue; false when it holds literal captions. The reader cannot tell by looking — `b.apple` and `Б/у` are both strings. */
@@ -183,6 +229,16 @@ export interface components {
183
229
  dropped_filters: string[];
184
230
  /** @description Range slugs that address a core document column rather than an attribute (`r.price`). Offer them as filters unconditionally: they exist for every document in every category, which is why they are not in the category's own plan. */
185
231
  core_ranges: string[];
232
+ /** @description Where the plan came from. `category` — the queried category's own authored schema. `evidence` — the categories the CANDIDATE SET actually contains, used when that schema did not fill MAX_FACET_FIELDS, which is every branch category and every text query (`categories.features` resolves own + ANCESTOR-inherited features, so a branch owns no axes; its leaves do). */
233
+ plan: string;
234
+ /** @description `{slug, coverage, candidates}` for groups that were counted and then withheld because they describe too little of the result set (FACET_MIN_COVERAGE). Present so a panel can say «3 filters apply to too few of these» instead of «no filters» — the second is false whenever this list is not empty. Only slugs the evidence plan borrowed from another category are ever here, and never one the reader has already filtered on. */
235
+ withheld: {
236
+ [key: string]: unknown;
237
+ }[];
238
+ /** @description `{category, count}` — the categories this answer's candidate set is made of, busiest first, `category` being the same slash-joined id path the `category` filter takes. The evidence the plan was drawn from, and what a panel needs to offer the CATEGORY itself as the first filter on a text search. Empty when the plan is the queried category's own. */
239
+ categories: {
240
+ [key: string]: unknown;
241
+ }[];
186
242
  };
187
243
  HealthResponse: {
188
244
  backend: string;
@@ -196,6 +252,12 @@ export interface components {
196
252
  lag_seconds?: number | null;
197
253
  stale_reason?: string;
198
254
  };
255
+ /**
256
+ * @description * `nearby` - nearby
257
+ * * `all` - all
258
+ * @enum {string}
259
+ */
260
+ IdEnum: "nearby" | "all";
199
261
  /**
200
262
  * @description * `exact` - exact
201
263
  * * `prefix` - prefix
@@ -206,6 +268,24 @@ export interface components {
206
268
  * @enum {string}
207
269
  */
208
270
  MatchEnum: "exact" | "prefix" | "word" | "substring" | "listings" | "vector";
271
+ /**
272
+ * @description * `exact` - exact
273
+ * * `translit` - translit
274
+ * * `alias` - alias
275
+ * * `vector` - vector
276
+ * @enum {string}
277
+ */
278
+ MethodEnum: "exact" | "translit" | "alias" | "vector";
279
+ /** @description What a free-text query turned out to be ABOUT, beside its words. */
280
+ QueryUnderstanding: {
281
+ filters: components["schemas"]["ExtractedFilter"][];
282
+ category_path: string[];
283
+ /** Format: double */
284
+ category_confidence: number;
285
+ /** @description The query with every extracted span removed — the text the engine still had to match. Empty is normal and correct: «красный» is entirely a filter, and the answer is then the filters' set. */
286
+ residual: string;
287
+ degraded: string[];
288
+ };
209
289
  /** @description The P2B Art. 5 disclosure, generated from the scorer registry. */
210
290
  RankingResponse: {
211
291
  doc_type: string;
@@ -252,10 +332,14 @@ export interface components {
252
332
  promoted: boolean;
253
333
  /**
254
334
  * Format: double
255
- * @description Great-circle distance from the searched centre.
335
+ * @description Great-circle distance from the searched centre, in km. For an ANONYMOUS reader it is measured from the same ~1.1km grid point the card publishes and floored to that grid's quantum (the cell's diagonal, ~1.574km): a distance finer than the position it came from is the position, three requests away. The listing's own owner, staff and the service transport get the exact number. Coarse is enough for what it drives — a card saying «12 км» does not need metres — and it never overstates proximity, being floored rather than rounded.
256
336
  */
257
337
  distance_km: number | null;
258
- /** @description Stored row fields, so a result page costs one query. */
338
+ /** @description `nearby` | `all` | `""`. Which partition this row sits in, present only under `geo_mode=rank`. A LABEL, never a filter: `all` carries every remaining row, including rows with no coordinates at all, so a query never returns fewer results because of distance. `""` means the request ranked by proximity but gave no centre, which is not an error. */
339
+ band?: string;
340
+ /** @description How many of the filters the QUERY's own words produced this row satisfies — including the soft ones that were not applied as filters. Orders rows within a band, strongest first. Present only when the query produced signals. */
341
+ match_count?: number;
342
+ /** @description Stored row fields, so a result page costs one query. For an ANONYMOUS reader the card never carries full-precision coordinates, on every path and whatever the flags: a key naming half a pair (`lat`, `latitude`, `lon`, `lng`, `*_lat`…) is rewritten onto the ~1.1km public grid from the row's own columns, and a key carrying a position this module cannot turn into an area (`geohash`, `location`, `coordinates`…) is removed rather than truncated — two differently-aligned areas around one point intersect down to a sliver. `geo_precision_km` says how wide the area is: draw a CIRCLE, never a marker. Under `geo_mode=rank` the pair is ADDED even to a card that carried no position at all. */
259
343
  card: {
260
344
  [key: string]: unknown;
261
345
  };
@@ -263,6 +347,10 @@ export interface components {
263
347
  /** @description The query envelope: AnchorPagination's keys, plus what search owes. */
264
348
  SearchResponse: {
265
349
  items: components["schemas"]["SearchItem"][];
350
+ /** @description Per-band counts in render order — `nearby` («Объявления поблизости») then `all` («Все объявления»). Present only under `geo_mode=rank`; empty when no centre was given. The rows themselves carry `band`; this is the summary a heading needs. The top-level `count` remains the WHOLE matching total, never the nearby one. */
351
+ bands?: components["schemas"]["BandSummary"][];
352
+ /** @description What the query's words became. Absent entirely while QUERY_UNDERSTANDING is off or `qu=off` was sent. */
353
+ query_understanding?: components["schemas"]["QueryUnderstanding"];
266
354
  /** @description {slug: {value: count}}, counted with the slug's own filter removed. */
267
355
  facets: {
268
356
  [key: string]: {
@@ -338,7 +426,7 @@ export interface operations {
338
426
  query: {
339
427
  /** @description Opaque keyset cursor from a previous answer. */
340
428
  anchor?: string;
341
- /** @description minLat,minLon,maxLat,maxLon. minLon > maxLon means the box crosses +/-180. */
429
+ /** @description minLat,minLon,maxLat,maxLon. minLon > maxLon means the box crosses +/-180. For an anonymous caller the rectangle is grown OUTWARD to whole ~1.1km cells of the public geo grid, so it can only ever ask about the area a public card publishes: a box EXCLUDES rows, and halving one around a listing would otherwise converge on the seller's pin in a few dozen requests. */
342
430
  bbox?: string;
343
431
  /** @description root/leaf path; a prefix filter, so a parent finds its descendants. */
344
432
  category?: string;
@@ -348,6 +436,8 @@ export interface operations {
348
436
  "f.<slug>"?: string;
349
437
  /** @description on | off | comma-separated slugs. Default is the category's plan. */
350
438
  facets?: string;
439
+ /** @description rank | filter. What `radius_km` means. `rank` PARTITIONS: the answer comes back as `nearby` (inside the radius) then `all` (every remaining row), nothing is withheld, and `count` stays the whole matching total — a query can never come back empty because of distance. `filter` is the historical hard cut, for a caller that genuinely wants only what is within N km. `rank` is the default inside the feature; while STAPEL_SEARCH['GEO_BANDS'] is off this parameter is inert and `radius_km` filters as it always has. */
440
+ geo_mode?: string;
351
441
  /** @description Language of the query: selects the analyzer AND narrows the corpus. Omit it and only the analyzer is chosen (from Accept-Language) — a header must not hide a catalogue. */
352
442
  lang?: string;
353
443
  /** @description Centre latitude (with lon). */
@@ -359,9 +449,11 @@ export interface operations {
359
449
  owner?: string;
360
450
  /** @description Free text. Dictionary-normalized here; morphology belongs to the engine. */
361
451
  q?: string;
452
+ /** @description auto | off. Whether the query's own words may become filters. `auto` (the default while QUERY_UNDERSTANDING is on) extracts and reports what it extracted under `query_understanding`; each filter carries the literal `param` to replay. Send `qu=off` with those replayed params afterwards — extraction is stateless, so without it a removed chip comes straight back. */
453
+ qu?: string;
362
454
  /** @description Range filter, `from..to`; either end may be omitted. */
363
455
  "r.<slug>"?: string;
364
- /** @description Radius around the centre. */
456
+ /** @description Distance around the centre, in km. Its MEANING is `geo_mode`'s: under `rank` it is the edge of the `nearby` band and excludes nothing; under `filter` it is a hard cut. Defaults to NEAR_BAND_RADIUS_KM under `rank`. */
365
457
  radius_km?: number;
366
458
  /** @description relevance | newest | price_asc | price_desc | distance. An explicit sort never receives a promotional boost. */
367
459
  sort?: string;