@stapel/search-react 0.43.0 → 0.45.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 +92 -0
- package/MODULE.md +24 -3
- package/dist/default/PopularValues.d.ts +48 -44
- package/dist/default/PopularValues.d.ts.map +1 -1
- package/dist/default/PopularValues.js +87 -71
- package/dist/default/PopularValues.js.map +1 -1
- package/dist/default/index.d.ts +1 -1
- package/dist/default/index.d.ts.map +1 -1
- package/dist/default/index.js +1 -1
- package/dist/default/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/state/facets.d.ts +33 -0
- package/dist/state/facets.d.ts.map +1 -1
- package/dist/state/facets.js +43 -0
- package/dist/state/facets.js.map +1 -1
- package/dist/state/ranges.d.ts +6 -0
- package/dist/state/ranges.d.ts.map +1 -1
- package/dist/state/ranges.js +20 -0
- package/dist/state/ranges.js.map +1 -1
- package/llms.txt +1 -1
- package/manifest.json +2 -1
- package/nav-manifest.json +1 -1
- package/package.json +2 -2
- package/src/analytics/generated/events.json +1 -1
- package/src/default/PopularValues.tsx +92 -93
- package/src/default/index.ts +1 -4
- package/src/index.ts +1 -0
- package/src/state/facets.ts +41 -0
- package/src/state/ranges.ts +19 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,97 @@
|
|
|
1
1
|
# @stapel/search-react
|
|
2
2
|
|
|
3
|
+
## 0.45.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 26b513c: The popular-values band uses the width it is given.
|
|
8
|
+
|
|
9
|
+
Measured on the live storefront's `/c/transport` at 1440 (headless Chromium):
|
|
10
|
+
the results column is 1088px and the band's columns box drew **377px** of it —
|
|
11
|
+
three columns of a make and its count — leaving 711px of white and stacking
|
|
12
|
+
twelve values four rows deep.
|
|
13
|
+
|
|
14
|
+
Two causes, compounding:
|
|
15
|
+
|
|
16
|
+
- `inline-size: fit-content` sized the box to its WORDS, so the pane's width
|
|
17
|
+
was never used;
|
|
18
|
+
- the container-query ladder asked for `breakpoints.desktop` (1200px) before
|
|
19
|
+
granting a fourth column, and this block is the window less a 280px rail less
|
|
20
|
+
the gap — 1088px at 1440. **The top rung could never fire.** The rungs were
|
|
21
|
+
window-scale numbers measuring a container that is never window-sized, which
|
|
22
|
+
is the exact mistake the module's own doc argued a media query would make.
|
|
23
|
+
|
|
24
|
+
`columns="responsive"` is now native multicol over a column MEASURE — the same
|
|
25
|
+
mechanism the expanded band next door already uses. The element answers "how
|
|
26
|
+
many columns" from its own width, with no container query, no rungs and no
|
|
27
|
+
hoisted sheet.
|
|
28
|
+
|
|
29
|
+
`POPULAR_VALUE_COLUMN_WIDTH` is 150 (was 200), swept in a real browser over the
|
|
30
|
+
live twelve makes and a worst case of the longest make with a four-digit count:
|
|
31
|
+
200/170/160 all give 4 columns and 3 rows in that pane; 150 gives 6 and 2. The
|
|
32
|
+
used column is 155px there and never below 152px at any width swept, so nothing
|
|
33
|
+
wraps — the old claim that a value wraps under its own number below 200 does not
|
|
34
|
+
hold at the default type step.
|
|
35
|
+
|
|
36
|
+
Before and after, with the literal styles the component emits:
|
|
37
|
+
|
|
38
|
+
| pane | before | after |
|
|
39
|
+
| ------ | --------------------------- | ---------------------------- |
|
|
40
|
+
| 1088px | 3 cols, 4 rows, 666px white | **6 cols, 2 rows, no white** |
|
|
41
|
+
| 840px | 3 cols, 4 rows, 418px white | 4 cols, 3 rows, no white |
|
|
42
|
+
| 600px | 3 cols, 4 rows, 178px white | 3 cols, 4 rows, no white |
|
|
43
|
+
| 380px | 3 cols, 5 rows (cramped) | 2 cols, 6 rows |
|
|
44
|
+
|
|
45
|
+
The columns box halves, 68px to 34px.
|
|
46
|
+
|
|
47
|
+
The numeric arm is untouched: a host that names a count still gets that many
|
|
48
|
+
words-wide columns, still clamped by `POPULAR_VALUES_MAX_COLUMNS`. That ceiling
|
|
49
|
+
now governs the numeric arm only — the responsive arm has no count to cap and
|
|
50
|
+
needs none, because the measure is the ceiling: no pane, however wide, can
|
|
51
|
+
produce a column narrower than a value and its count.
|
|
52
|
+
|
|
53
|
+
REMOVED, and nothing outside this package imported them: `popularValuesLadderCss`,
|
|
54
|
+
`POPULAR_VALUES_CLASS`, `POPULAR_VALUES_LADDER`, `POPULAR_VALUES_STYLE_HREF`.
|
|
55
|
+
ADDED: `POPULAR_VALUES_COLUMN_GAP`, half of the arithmetic that decides how many
|
|
56
|
+
columns a pane buys, so a host sizing a reservation for this block need not
|
|
57
|
+
re-measure it.
|
|
58
|
+
|
|
59
|
+
## 0.44.0
|
|
60
|
+
|
|
61
|
+
### Minor Changes
|
|
62
|
+
|
|
63
|
+
- 77c61cd: `config.facet: false` is honoured on the numeric half of the rail.
|
|
64
|
+
|
|
65
|
+
Reviewers on a leaf selling thirteen second-hand laptops were offered a filter
|
|
66
|
+
rail of the parcel's weight, length, height and width, the packing quantity and
|
|
67
|
+
the minimum order — six from/to rows of the seller's own shipping and wholesale
|
|
68
|
+
paperwork, with the one real numeric axis (the battery) among them.
|
|
69
|
+
|
|
70
|
+
It was never a data defect. Every one of those slugs carries `facet: false` in
|
|
71
|
+
the catalogue — in both fixture catalogues and on the live stand — and
|
|
72
|
+
`stapel-search` honours it (`_is_facetable`, read off the feature and then off
|
|
73
|
+
its config, defaulting to true): the answer for that leaf counts twenty-four
|
|
74
|
+
facets and none of the six.
|
|
75
|
+
|
|
76
|
+
The client threw the flag away on exactly one path. The DISCRETE half is built
|
|
77
|
+
from the answer, which the engine has already filtered; the NUMERIC half walks
|
|
78
|
+
`categoryFeatures` — the raw category schema — and pushed every numeric feature
|
|
79
|
+
as a from/to row without ever asking. So the opt-out worked on every axis the
|
|
80
|
+
server enumerates and on none of the axes it cannot.
|
|
81
|
+
|
|
82
|
+
`featureAllowsFaceting` (new, exported) reads the flag the way the engine does,
|
|
83
|
+
off the feature and then off its `config`, defaulting to true so a catalogue
|
|
84
|
+
that says nothing is unchanged. `buildRangeGroups` now consults it. Counted
|
|
85
|
+
from the committed catalogue, 15,121 seller-only numeric occurrences across
|
|
86
|
+
2,642 leaves stop being offered as filters.
|
|
87
|
+
|
|
88
|
+
Two exemptions, both already load-bearing elsewhere in this module: a slug THIS
|
|
89
|
+
ANSWER measured (`facet_meta.ranges` — the server publishing bounds for it is
|
|
90
|
+
the server saying it counted it), and a slug the URL constrains, which keeps
|
|
91
|
+
the row that clears it. `isFacetableFeature` reads the same flag, where it is
|
|
92
|
+
the belt against a stale index rather than the fix; an applied filter outranks
|
|
93
|
+
it there exactly as it outranks the type table.
|
|
94
|
+
|
|
3
95
|
## 0.43.0
|
|
4
96
|
|
|
5
97
|
### Minor Changes
|
package/MODULE.md
CHANGED
|
@@ -248,6 +248,28 @@ vocabulary-backed one, whose control is a field over a dictionary.
|
|
|
248
248
|
The rule is the OPTION LIST's. Count-bearing controls a host composes itself —
|
|
249
249
|
partition chips, a vocabulary band — print whatever the host rules they print.
|
|
250
250
|
|
|
251
|
+
### And an axis the catalogue disowns is not drawn at all
|
|
252
|
+
|
|
253
|
+
`config.facet: false` is the catalogue's own buyer-facet opt-out (D74): the
|
|
254
|
+
parcel's weight, length, height and width, the wholesale block, the packing
|
|
255
|
+
quantity — commerce metadata the seller states about the SALE rather than an
|
|
256
|
+
axis anybody shops along. No library can infer it from the type, because the
|
|
257
|
+
very same `int` is `mileage` one category over, so the catalogue says it in one
|
|
258
|
+
key and `stapel-search` reads it (`_is_facetable`) off the feature and then off
|
|
259
|
+
its config, defaulting to true.
|
|
260
|
+
|
|
261
|
+
Since 0.44 this pair reads it the same way, in `featureAllowsFaceting`. The
|
|
262
|
+
discrete half never needed it — those groups are built from the ANSWER, which
|
|
263
|
+
the engine has already filtered — but the RANGE half is built from the raw
|
|
264
|
+
category schema, and it pushed every numeric feature as a from/to row without
|
|
265
|
+
ever asking. On the live laptops leaf that was six of the seven rows a buyer of
|
|
266
|
+
second-hand laptops was offered, and on the committed catalogue it is 15,121
|
|
267
|
+
seller-only numeric occurrences across 2,642 leaves. Two exemptions: a slug
|
|
268
|
+
THIS ANSWER measured (`facet_meta.ranges` — the server publishing bounds is the
|
|
269
|
+
server saying it counted it), and a slug the URL constrains, which keeps the
|
|
270
|
+
row that clears it. The flag is honoured on the discrete half too, where it is
|
|
271
|
+
the belt against a stale index rather than the fix.
|
|
272
|
+
|
|
251
273
|
## The chip row's order is the row's product
|
|
252
274
|
|
|
253
275
|
At 390px about four chips fit before the fold. On a live phone category the
|
|
@@ -255,9 +277,8 @@ first seven were battery health, four parcel dimensions and two wholesale
|
|
|
255
277
|
counts — numeric attributes the category happens to declare, drawn ahead of the
|
|
256
278
|
price, the condition and the vendor.
|
|
257
279
|
|
|
258
|
-
That is an ordering defect and it is fixed as one
|
|
259
|
-
|
|
260
|
-
attribute is `mileage`, so `orderChipFilters` re-ranks and deletes nothing:
|
|
280
|
+
That is an ordering defect in the part that survives, and it is fixed as one —
|
|
281
|
+
`orderChipFilters` re-ranks and deletes nothing:
|
|
261
282
|
|
|
262
283
|
1. the category chip, then the location chip — the two host-slot filters;
|
|
263
284
|
2. everything APPLIED, in band order — a constraint you set must be reachable
|
|
@@ -30,58 +30,60 @@ import type { ReactElement, ReactNode } from "react";
|
|
|
30
30
|
import type { FacetGroup, FacetOption } from "../state/facets.js";
|
|
31
31
|
/** How many values the block prints before the link into the full control. */
|
|
32
32
|
export declare const POPULAR_VALUES_LIMIT = 12;
|
|
33
|
-
/** How many columns the list flows into
|
|
34
|
-
* without turning a make into a two-line wrap. */
|
|
33
|
+
/** How many columns the list flows into when a host names a number. Three
|
|
34
|
+
* fills a desktop content column without turning a make into a two-line wrap. */
|
|
35
35
|
export declare const POPULAR_VALUES_COLUMNS = 3;
|
|
36
36
|
/**
|
|
37
|
-
* The ceiling on columns
|
|
37
|
+
* The ceiling on columns a HOST may ask for.
|
|
38
38
|
*
|
|
39
|
-
* Past four
|
|
40
|
-
* two-word cells: each column is one make and
|
|
41
|
-
*
|
|
42
|
-
* make. Four is where
|
|
39
|
+
* Past four a block whose width is fixed by its words stops being a table of
|
|
40
|
+
* contents and becomes a grid of two-word cells: each column is one make and
|
|
41
|
+
* one number, and a fifth column puts 60px of air between «Toyota 4» and the
|
|
42
|
+
* next make. Four is where that density still reads as a list.
|
|
43
|
+
*
|
|
44
|
+
* It governs the numeric arm ONLY, and since 0.45 that is the whole of its
|
|
45
|
+
* job. The responsive arm has no count to cap and needs none — see
|
|
46
|
+
* {@link POPULAR_VALUE_COLUMN_WIDTH}: there the MEASURE is the ceiling, so a
|
|
47
|
+
* column can never be narrower than a value and its count however many of them
|
|
48
|
+
* the pane holds.
|
|
43
49
|
*/
|
|
44
50
|
export declare const POPULAR_VALUES_MAX_COLUMNS = 4;
|
|
45
51
|
/**
|
|
46
|
-
* The
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
*
|
|
57
|
-
*
|
|
52
|
+
* The minimum measure one column of this block needs, and the whole of the
|
|
53
|
+
* responsive arm's layout input.
|
|
54
|
+
*
|
|
55
|
+
* `column-width` is a MINIMUM, not a width: the browser fits as many columns
|
|
56
|
+
* of at least this measure as the element's own width allows and then widens
|
|
57
|
+
* them to fill it. That is what makes the number a ceiling on density as well
|
|
58
|
+
* as a floor on legibility — no pane, however wide, can produce a column
|
|
59
|
+
* narrower than this.
|
|
60
|
+
*
|
|
61
|
+
* ── 150, and it is measured rather than reasoned ──────────────────────────
|
|
62
|
+
*
|
|
63
|
+
* It was 200, declared as the measure «Ford 1 204» needs. Swept in a real
|
|
64
|
+
* browser over the live twelve makes and over a worst case of the longest make
|
|
65
|
+
* on the stand with a four-digit count, at this gap:
|
|
58
66
|
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* wide screen. `container-type: inline-size` plus `@container` asks the only
|
|
64
|
-
* question that has an answer here — how wide is this block.
|
|
67
|
+
* 200 → 4 columns in the storefront's 1088px pane, 3 rows
|
|
68
|
+
* 170 → 4 columns, 3 rows
|
|
69
|
+
* 160 → 4 columns, 3 rows
|
|
70
|
+
* 150 → 6 columns, 2 rows
|
|
65
71
|
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* is where a layout of this density gains a column.
|
|
72
|
+
* 150 is the knee, and nothing wraps at it: because the browser widens the
|
|
73
|
+
* columns to fill, the USED column is 155px in that pane and never below 152px
|
|
74
|
+
* at any width swept. The old claim that a value wraps under its own number
|
|
75
|
+
* below 200 does not hold at the default type step.
|
|
71
76
|
*/
|
|
72
|
-
export declare const
|
|
73
|
-
readonly minInlineSize: number;
|
|
74
|
-
readonly columns: number;
|
|
75
|
-
}[];
|
|
77
|
+
export declare const POPULAR_VALUE_COLUMN_WIDTH = 150;
|
|
76
78
|
/**
|
|
77
|
-
* The
|
|
78
|
-
*
|
|
79
|
+
* The gutter between columns — one step up the scale from the row's own, so a
|
|
80
|
+
* new column reads as a column rather than as a wrapped line.
|
|
79
81
|
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
82
|
+
* Exported because it is half of the arithmetic that decides how many columns
|
|
83
|
+
* a pane produces (`floor((available + gap) / (width + gap))`), and a host
|
|
84
|
+
* sizing a reservation for this block should not have to re-measure it.
|
|
83
85
|
*/
|
|
84
|
-
export declare
|
|
86
|
+
export declare const POPULAR_VALUES_COLUMN_GAP: number;
|
|
85
87
|
/** The busiest values of the group, count-descending, capped. */
|
|
86
88
|
export declare function popularOptions(group: FacetGroup, limit?: number): readonly FacetOption[];
|
|
87
89
|
export interface PopularValuesProps {
|
|
@@ -97,10 +99,12 @@ export interface PopularValuesProps {
|
|
|
97
99
|
/**
|
|
98
100
|
* How many columns. Default {@link POPULAR_VALUES_COLUMNS}.
|
|
99
101
|
*
|
|
100
|
-
* `"responsive"`
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
102
|
+
* `"responsive"` hands the question to the ELEMENT: native multicol over
|
|
103
|
+
* {@link POPULAR_VALUE_COLUMN_WIDTH} fits as many columns as this block's own
|
|
104
|
+
* width allows, at every width, with no rungs to keep in step with a layout
|
|
105
|
+
* this component cannot see. The numeric form stays, and stays the default:
|
|
106
|
+
* a host that has already decided its layout should not have that decision
|
|
107
|
+
* taken back.
|
|
104
108
|
*/
|
|
105
109
|
readonly columns?: number | "responsive";
|
|
106
110
|
/** The block's heading. Defaults to the group's own label; `null` draws
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopularValues.d.ts","sourceRoot":"","sources":["../../src/default/PopularValues.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,KAAK,EAAiB,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASpE,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGlE,8EAA8E;AAC9E,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC;
|
|
1
|
+
{"version":3,"file":"PopularValues.d.ts","sourceRoot":"","sources":["../../src/default/PopularValues.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,KAAK,EAAiB,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASpE,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGlE,8EAA8E;AAC9E,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC;iFACiF;AACjF,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAmB,CAAC;AAS5D,iEAAiE;AACjE,wBAAgB,cAAc,CAC5B,KAAK,EAAE,UAAU,EACjB,KAAK,GAAE,MAA6B,GACnC,SAAS,WAAW,EAAE,CAIxB;AAkED,MAAM,WAAW,kBAAkB;IACjC,wEAAwE;IACxE,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B;wDACoD;IACpD,QAAQ,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,0EAA0E;IAC1E,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,6DAA6D;IAC7D,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IACzC;8DAC0D;IAC1D,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAC7B;2CACuC;IACvC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACjC;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,YAAY,GAAG,IAAI,CA4E5E"}
|
|
@@ -1,72 +1,65 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button, Flex, Typography } from "antd";
|
|
3
3
|
import { useT } from "@stapel/core";
|
|
4
|
-
import {
|
|
4
|
+
import { spacing } from "@stapel/tokens";
|
|
5
5
|
import { POINTER_FOCUS, POINTER_FOCUS_STYLE_HREF, pointerFocusCss, } from "./focusRing.js";
|
|
6
6
|
import { SEARCH_I18N_KEYS } from "../i18n/keys.js";
|
|
7
7
|
/** How many values the block prints before the link into the full control. */
|
|
8
8
|
export const POPULAR_VALUES_LIMIT = 12;
|
|
9
|
-
/** How many columns the list flows into
|
|
10
|
-
* without turning a make into a two-line wrap. */
|
|
9
|
+
/** How many columns the list flows into when a host names a number. Three
|
|
10
|
+
* fills a desktop content column without turning a make into a two-line wrap. */
|
|
11
11
|
export const POPULAR_VALUES_COLUMNS = 3;
|
|
12
12
|
/**
|
|
13
|
-
* The ceiling on columns
|
|
13
|
+
* The ceiling on columns a HOST may ask for.
|
|
14
14
|
*
|
|
15
|
-
* Past four
|
|
16
|
-
* two-word cells: each column is one make and
|
|
17
|
-
*
|
|
18
|
-
* make. Four is where
|
|
15
|
+
* Past four a block whose width is fixed by its words stops being a table of
|
|
16
|
+
* contents and becomes a grid of two-word cells: each column is one make and
|
|
17
|
+
* one number, and a fifth column puts 60px of air between «Toyota 4» and the
|
|
18
|
+
* next make. Four is where that density still reads as a list.
|
|
19
|
+
*
|
|
20
|
+
* It governs the numeric arm ONLY, and since 0.45 that is the whole of its
|
|
21
|
+
* job. The responsive arm has no count to cap and needs none — see
|
|
22
|
+
* {@link POPULAR_VALUE_COLUMN_WIDTH}: there the MEASURE is the ceiling, so a
|
|
23
|
+
* column can never be narrower than a value and its count however many of them
|
|
24
|
+
* the pane holds.
|
|
19
25
|
*/
|
|
20
26
|
export const POPULAR_VALUES_MAX_COLUMNS = 4;
|
|
21
27
|
/**
|
|
22
|
-
* The
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
*
|
|
33
|
-
*
|
|
28
|
+
* The minimum measure one column of this block needs, and the whole of the
|
|
29
|
+
* responsive arm's layout input.
|
|
30
|
+
*
|
|
31
|
+
* `column-width` is a MINIMUM, not a width: the browser fits as many columns
|
|
32
|
+
* of at least this measure as the element's own width allows and then widens
|
|
33
|
+
* them to fill it. That is what makes the number a ceiling on density as well
|
|
34
|
+
* as a floor on legibility — no pane, however wide, can produce a column
|
|
35
|
+
* narrower than this.
|
|
36
|
+
*
|
|
37
|
+
* ── 150, and it is measured rather than reasoned ──────────────────────────
|
|
38
|
+
*
|
|
39
|
+
* It was 200, declared as the measure «Ford 1 204» needs. Swept in a real
|
|
40
|
+
* browser over the live twelve makes and over a worst case of the longest make
|
|
41
|
+
* on the stand with a four-digit count, at this gap:
|
|
34
42
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* wide screen. `container-type: inline-size` plus `@container` asks the only
|
|
40
|
-
* question that has an answer here — how wide is this block.
|
|
43
|
+
* 200 → 4 columns in the storefront's 1088px pane, 3 rows
|
|
44
|
+
* 170 → 4 columns, 3 rows
|
|
45
|
+
* 160 → 4 columns, 3 rows
|
|
46
|
+
* 150 → 6 columns, 2 rows
|
|
41
47
|
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* is where a layout of this density gains a column.
|
|
48
|
+
* 150 is the knee, and nothing wraps at it: because the browser widens the
|
|
49
|
+
* columns to fill, the USED column is 155px in that pane and never below 152px
|
|
50
|
+
* at any width swept. The old claim that a value wraps under its own number
|
|
51
|
+
* below 200 does not hold at the default type step.
|
|
47
52
|
*/
|
|
48
|
-
export const
|
|
49
|
-
{ minInlineSize: POPULAR_VALUE_COLUMN_WIDTH * 2, columns: 2 },
|
|
50
|
-
{ minInlineSize: breakpoints.tablet, columns: 3 },
|
|
51
|
-
{ minInlineSize: breakpoints.desktop, columns: 4 },
|
|
52
|
-
];
|
|
53
|
+
export const POPULAR_VALUE_COLUMN_WIDTH = 150;
|
|
53
54
|
/**
|
|
54
|
-
* The
|
|
55
|
-
*
|
|
55
|
+
* The gutter between columns — one step up the scale from the row's own, so a
|
|
56
|
+
* new column reads as a column rather than as a wrapped line.
|
|
56
57
|
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
58
|
+
* Exported because it is half of the arithmetic that decides how many columns
|
|
59
|
+
* a pane produces (`floor((available + gap) / (width + gap))`), and a host
|
|
60
|
+
* sizing a reservation for this block should not have to re-measure it.
|
|
60
61
|
*/
|
|
61
|
-
export
|
|
62
|
-
const block = `.${POPULAR_VALUES_CLASS}`;
|
|
63
|
-
return [
|
|
64
|
-
`${block}{container-type:inline-size}`,
|
|
65
|
-
`${block}>[data-popular-columns]{column-count:1}`,
|
|
66
|
-
...POPULAR_VALUES_LADDER.map((rung) => `@container (min-width: ${String(rung.minInlineSize)}px)` +
|
|
67
|
-
`{${block}>[data-popular-columns]{column-count:${String(rung.columns)}}}`),
|
|
68
|
-
].join("\n");
|
|
69
|
-
}
|
|
62
|
+
export const POPULAR_VALUES_COLUMN_GAP = spacing[6];
|
|
70
63
|
/** A value with no evidence behind it is not a popular value. Uncounted
|
|
71
64
|
* options carry `count: null` and are dropped here rather than printed with a
|
|
72
65
|
* blank where the number belongs — the block IS the numbers. */
|
|
@@ -80,32 +73,55 @@ export function popularOptions(group, limit = POPULAR_VALUES_LIMIT) {
|
|
|
80
73
|
.slice(0, limit);
|
|
81
74
|
}
|
|
82
75
|
/**
|
|
83
|
-
* The columns box
|
|
76
|
+
* The columns box, in its two arms.
|
|
77
|
+
*
|
|
78
|
+
* ── The responsive arm: a block, and a MEASURE ────────────────────────────
|
|
79
|
+
*
|
|
80
|
+
* `column-width` asks the element's own width how many columns fit. That is
|
|
81
|
+
* the whole mechanism — no container query, no rungs, no hoisted sheet, and no
|
|
82
|
+
* number that has to be kept in step with a layout this component cannot see.
|
|
83
|
+
* It is also what the expanded band next door already does, so the two arms of
|
|
84
|
+
* one control stop answering "how many columns" two different ways.
|
|
85
|
+
*
|
|
86
|
+
* What it replaced was a container-query ladder whose rungs were the token
|
|
87
|
+
* WINDOW breakpoints — and this block is the window less a 280px rail less the
|
|
88
|
+
* gap, so at 1440 it is 1088px wide and the rung that grants a fourth column
|
|
89
|
+
* (1200px) could never fire. The ladder's own doc argued that a media query
|
|
90
|
+
* would be wrong here for precisely that reason, and then used the window's
|
|
91
|
+
* numbers to measure the container.
|
|
92
|
+
*
|
|
93
|
+
* `inline-size: fit-content` is deliberately NOT here, and its absence is
|
|
94
|
+
* load-bearing twice over. It sized the box to its words — 377px of a 1088px
|
|
95
|
+
* pane on the live storefront, 711px of white beside twelve values stacked
|
|
96
|
+
* four deep — and it is measurably incompatible with a column measure: set
|
|
97
|
+
* together, the box collapses to a single column. The defect `fit-content` was
|
|
98
|
+
* added for (three ~360px columns each holding «Chery 5») cannot arise here,
|
|
99
|
+
* because a column is never wider than the pane divided by however many
|
|
100
|
+
* {@link POPULAR_VALUE_COLUMN_WIDTH} fit in it.
|
|
84
101
|
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* — which on the storefront printed a make, then 300px of nothing, then the
|
|
88
|
-
* next make. The owner read it as broken, and it is: nothing about this block
|
|
89
|
-
* wants the pane's width, it wants its own.
|
|
102
|
+
* `column-fill: balance` spreads the rows evenly over the columns the width
|
|
103
|
+
* produces, rather than filling the first column to the box's block-size.
|
|
90
104
|
*
|
|
91
|
-
*
|
|
92
|
-
* size is `columns × (the widest item) + gaps` — exactly the block's natural
|
|
93
|
-
* measure — and `fit-content` takes that unless the available space is
|
|
94
|
-
* smaller, in which case the columns shrink instead of overflowing. The box
|
|
95
|
-
* stays a block, so it stays flush with the pane's leading edge; the ladder in
|
|
96
|
-
* the sheet still decides HOW MANY columns, and each one is now sized by the
|
|
97
|
-
* longest make in it.
|
|
105
|
+
* ── The numeric arm: unchanged, words-wide ────────────────────────────────
|
|
98
106
|
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
107
|
+
* A host that names a number has decided its own layout, and a count divides
|
|
108
|
+
* the container — so three columns of a box handed the whole results pane are
|
|
109
|
+
* three ~360px columns holding «Chery 5», a make and then 300px of nothing.
|
|
110
|
+
* `fit-content` is the cure there and stays: the box takes its natural measure
|
|
111
|
+
* (`columns × widest item + gaps`) unless the space is smaller, in which case
|
|
112
|
+
* the columns shrink rather than overflow.
|
|
102
113
|
*/
|
|
103
114
|
function COLUMNS(count) {
|
|
115
|
+
if (count === undefined) {
|
|
116
|
+
return {
|
|
117
|
+
columnWidth: POPULAR_VALUE_COLUMN_WIDTH,
|
|
118
|
+
columnGap: POPULAR_VALUES_COLUMN_GAP,
|
|
119
|
+
columnFill: "balance",
|
|
120
|
+
};
|
|
121
|
+
}
|
|
104
122
|
return {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
...(count === undefined ? {} : { columnCount: count }),
|
|
108
|
-
columnGap: spacing[6],
|
|
123
|
+
columnCount: count,
|
|
124
|
+
columnGap: POPULAR_VALUES_COLUMN_GAP,
|
|
109
125
|
inlineSize: "fit-content",
|
|
110
126
|
maxInlineSize: "100%",
|
|
111
127
|
};
|
|
@@ -127,7 +143,7 @@ export function PopularValues(props) {
|
|
|
127
143
|
if (options.length === 0)
|
|
128
144
|
return null;
|
|
129
145
|
const responsive = props.columns === "responsive";
|
|
130
|
-
return (_jsxs(Flex, { vertical: true, gap: spacing[2],
|
|
146
|
+
return (_jsxs(Flex, { vertical: true, gap: spacing[2], "data-testid": `popular-values-${group.slug}`, "data-label-source": group.labelSource, "data-columns": responsive ? "responsive" : String(props.columns ?? POPULAR_VALUES_COLUMNS), children: [_jsx("style", { href: POINTER_FOCUS_STYLE_HREF, precedence: "default", children: pointerFocusCss() }), props.heading !== null && (_jsx(Typography.Text, { strong: true, children: props.heading ?? group.label })), _jsx("div", { "data-testid": `popular-columns-${group.slug}`, style: COLUMNS(responsive
|
|
131
147
|
? undefined
|
|
132
148
|
: Math.min(props.columns ?? POPULAR_VALUES_COLUMNS, POPULAR_VALUES_MAX_COLUMNS)), children: options.map((option) => (_jsxs("div", { style: ROW, children: [_jsx(Button, { type: "link", size: "small", ...POINTER_FOCUS, style: { paddingInline: 0, height: "auto" }, "data-testid": `popular-value-${group.slug}-${option.value}`, "data-analytics": "none", "data-analytics-reason": "a filter is a read, not a flow step", onClick: () => {
|
|
133
149
|
props.onApply(group.slug, option.value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopularValues.js","sourceRoot":"","sources":["../../src/default/PopularValues.tsx"],"names":[],"mappings":";AA6BA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"PopularValues.js","sourceRoot":"","sources":["../../src/default/PopularValues.tsx"],"names":[],"mappings":";AA6BA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,eAAe,GAChB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,8EAA8E;AAC9E,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEvC;iFACiF;AACjF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC;AAExC;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAC;AAE9C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAW,OAAO,CAAC,CAAC,CAAC,CAAC;AAE5D;;gEAEgE;AAChE,SAAS,WAAW,CAAC,MAAmB;IACtC,OAAO,MAAM,CAAC,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC;AACnD,CAAC;AAED,iEAAiE;AACjE,MAAM,UAAU,cAAc,CAC5B,KAAiB,EACjB,QA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C,UAAU,CAAC,IAAI,IACd,IAAI,EAAC,WAAW,iBACH,iBAAiB,KAAK,CAAC,IAAI,IAAI,MAAM,CAAC,KAAK,EAAE,YAEzD,MAAM,CAAC,KAAK,GACG,KApBV,MAAM,CAAC,KAAK,CAqBhB,CACP,CAAC,GACE,EACL,KAAK,CAAC,SAAS,KAAK,SAAS,IAAI,CAChC,KAAC,MAAM,IACL,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,OAAO,KACR,aAAa,EACjB,KAAK,EAAE,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC,EAAE,iBACvC,eAAe,KAAK,CAAC,IAAI,EAAE,oBACzB,MAAM,2BACC,qDAAqD,EAC3E,OAAO,EAAE,KAAK,CAAC,SAAS,YAEvB,CAAC,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,GAC9B,CACV,IACI,CACR,CAAC;AACJ,CAAC"}
|
package/dist/default/index.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export { FacetGroupControl, facetGroupIsEmptyHeading, facetGroupReservedHeight,
|
|
|
58
58
|
export type { FacetGroupControlProps, FacetGroupShape, FacetOptionNode, } from "./FacetGroupControl.js";
|
|
59
59
|
export { SWATCH_SIZE, facetSwatch, isColorAxis, swatchColor, termHue, } from "./swatches.js";
|
|
60
60
|
export type { ColorAxisLike, TermExtra } from "./swatches.js";
|
|
61
|
-
export { PopularValues, popularOptions,
|
|
61
|
+
export { PopularValues, popularOptions, POPULAR_VALUES_COLUMNS, POPULAR_VALUES_COLUMN_GAP, POPULAR_VALUES_LIMIT, POPULAR_VALUES_MAX_COLUMNS, POPULAR_VALUE_COLUMN_WIDTH, } from "./PopularValues.js";
|
|
62
62
|
export type { PopularValuesProps } from "./PopularValues.js";
|
|
63
63
|
export { PartitionChips } from "./PartitionChips.js";
|
|
64
64
|
export type { PartitionChild, PartitionChipsProps, PartitionLinkedChildren, } from "./PartitionChips.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/default/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAGH,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,uBAAuB,EACvB,cAAc,EACd,UAAU,EACV,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,SAAS,GACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,6BAA6B,GAC9B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,EACZ,eAAe,GAChB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EACV,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,4BAA4B,EAC5B,uBAAuB,EACvB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,2BAA2B,EAC3B,gCAAgC,EAChC,2BAA2B,EAC3B,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,wBAAwB,EACxB,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,4BAA4B,EAC5B,0BAA0B,EAC1B,uBAAuB,EACvB,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AA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|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/default/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAGH,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,uBAAuB,EACvB,cAAc,EACd,UAAU,EACV,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,SAAS,GACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,6BAA6B,GAC9B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,EACZ,eAAe,GAChB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EACV,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,4BAA4B,EAC5B,uBAAuB,EACvB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,2BAA2B,EAC3B,gCAAgC,EAChC,2BAA2B,EAC3B,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,0BAA0B,CAAC;AAClC,YAAY,EACV,wBAAwB,EACxB,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,4BAA4B,EAC5B,0BAA0B,EAC1B,uBAAuB,EACvB,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM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AAgB,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC9E,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,YAAY,EACV,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,YAAY,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAG3E,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/default/index.js
CHANGED
|
@@ -53,7 +53,7 @@ export { SWATCH_SIZE, facetSwatch, isColorAxis, swatchColor, termHue, } from "./
|
|
|
53
53
|
// ── the browse surfaces a storefront PLACES (this pair does not lay them
|
|
54
54
|
// out: where a popular-values block or a partition row belongs on a
|
|
55
55
|
// category page is the page's decision) ──────────────────────────────────
|
|
56
|
-
export { PopularValues, popularOptions,
|
|
56
|
+
export { PopularValues, popularOptions, POPULAR_VALUES_COLUMNS, POPULAR_VALUES_COLUMN_GAP, POPULAR_VALUES_LIMIT, POPULAR_VALUES_MAX_COLUMNS, POPULAR_VALUE_COLUMN_WIDTH, } from "./PopularValues.js";
|
|
57
57
|
export { PartitionChips } from "./PartitionChips.js";
|
|
58
58
|
export { FacetPanelPane, FACET_OPEN_GROUPS, FACET_SEARCH_THRESHOLD, FACET_VISIBLE_GROUPS, } from "./FacetPanelPane.js";
|
|
59
59
|
export { RankingDisclosurePane, RANKING_MAX_WIDTH } from "./RankingDisclosurePane.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/default/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH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,EACxB,wBAAwB,EACxB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,0BAA0B,EAC1B,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAOhC,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,OAAO,GACR,MAAM,eAAe,CAAC;AAGvB,0EAA0E;AAC1E,uEAAuE;AACvE,8EAA8E;AAC9E,OAAO,EACL,aAAa,EACb,cAAc,EACd,sBAAsB,EACtB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/default/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,+EAA+E;AAC/E,OAAO,EACL,UAAU,EACV,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,uBAAuB,EACvB,cAAc,EACd,UAAU,EACV,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,SAAS,GACV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,6BAA6B,GAC9B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,EACZ,eAAe,GAChB,MAAM,gBAAgB,CAAC;AAcxB,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,2BAA2B,EAC3B,gCAAgC,EAChC,2BAA2B,EAC3B,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,0BAA0B,CAAC;AAOlC,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,4BAA4B,EAC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,gBAAgB,CAAC;AAE3C,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,WAAW,EAAE,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/dist/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export { EMPTY_FACET_KEYS, FILTER_PREFIX, RANGE_PREFIX, SEARCH_PARAM, activeFilt
|
|
|
48
48
|
export type { FacetKeyMap, ParseSearchStateOptions, ParsedSearchState, SearchStateIssue, SearchStateIssueCode, SearchStatePatch, WriteSearchStateDefaults, } from "./state/urlState.js";
|
|
49
49
|
export { FACET_PLAN_EVIDENCE, FACET_RANGES, countIsEstimate, countKind, degradationAudience, degradationMessageKey, isCountNuanceOnly, parseDegradations, readerFacing, } from "./state/degradations.js";
|
|
50
50
|
export type { SearchCountKind, SearchDegradationAudience, } from "./state/degradations.js";
|
|
51
|
-
export { FACETABLE_FEATURE_TYPES, buildFacetGroups, facetGroupHasEvidence, facetGroupIsDrawable, facetGroupIsVocabularyBacked, facetGroupOfferableOptions, facetOptionIsOfferable, facetOptionLabel, isFacetableFeature, orderFacetGroupsBySchema, } from "./state/facets.js";
|
|
51
|
+
export { FACETABLE_FEATURE_TYPES, buildFacetGroups, facetGroupHasEvidence, facetGroupIsDrawable, facetGroupIsVocabularyBacked, facetGroupOfferableOptions, facetOptionIsOfferable, facetOptionLabel, featureAllowsFaceting, isFacetableFeature, orderFacetGroupsBySchema, } from "./state/facets.js";
|
|
52
52
|
export type { BuildFacetGroupsInput, FacetGroup, FacetLabelSource, FacetOption, } from "./state/facets.js";
|
|
53
53
|
export { consonantKey, translitKey, translitPrefixMatch, } from "./state/translit.js";
|
|
54
54
|
export { RANGE_FEATURE_TYPES, RANGE_PICKER_MAX_VALUES, buildRangeGroups, coreRangeLabelKey, isRangeFeature, isRangeUsable, } from "./state/ranges.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAGH,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACxE,YAAY,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,YAAY,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EACL,YAAY,EACZ,2BAA2B,EAC3B,uBAAuB,EACvB,YAAY,EACZ,aAAa,GACd,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,MAAM,EACN,iBAAiB,EACjB,qBAAqB,EACrB,SAAS,EACT,YAAY,EACZ,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,eAAe,GAChB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,iBAA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EAClB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAGpD,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,eAAe,EACf,eAAe,EACf,WAAW,GACZ,MAAM,qBAAqB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -45,7 +45,7 @@ export { SEARCH_SORTS, SUGGEST_DEGRADED_CATEGORIES, SUGGEST_DEGRADED_ROLLUP, sug
|
|
|
45
45
|
// ── state (pure: no React, no router) ────────────────────────────────────────
|
|
46
46
|
export { EMPTY_FACET_KEYS, FILTER_PREFIX, RANGE_PREFIX, SEARCH_PARAM, activeFilterCount, buildFacetKeyMap, clearFilters, facetKeyForSlug, facetKeyMapFromLabels, facetSlugForKey, ownsParam, parseSearchState, patchSearchState, setFilterValues, setRangeValue, toggleFilterValue, writeSearchState, } from "./state/urlState.js";
|
|
47
47
|
export { FACET_PLAN_EVIDENCE, FACET_RANGES, countIsEstimate, countKind, degradationAudience, degradationMessageKey, isCountNuanceOnly, parseDegradations, readerFacing, } from "./state/degradations.js";
|
|
48
|
-
export { FACETABLE_FEATURE_TYPES, buildFacetGroups, facetGroupHasEvidence, facetGroupIsDrawable, facetGroupIsVocabularyBacked, facetGroupOfferableOptions, facetOptionIsOfferable, facetOptionLabel, isFacetableFeature, orderFacetGroupsBySchema, } from "./state/facets.js";
|
|
48
|
+
export { FACETABLE_FEATURE_TYPES, buildFacetGroups, facetGroupHasEvidence, facetGroupIsDrawable, facetGroupIsVocabularyBacked, facetGroupOfferableOptions, facetOptionIsOfferable, facetOptionLabel, featureAllowsFaceting, isFacetableFeature, orderFacetGroupsBySchema, } from "./state/facets.js";
|
|
49
49
|
export { consonantKey, translitKey, translitPrefixMatch, } from "./state/translit.js";
|
|
50
50
|
export { RANGE_FEATURE_TYPES, RANGE_PICKER_MAX_VALUES, buildRangeGroups, coreRangeLabelKey, isRangeFeature, isRangeUsable, } from "./state/ranges.js";
|
|
51
51
|
export { orderPanelItems } from "./state/panel.js";
|