@indxsearch/intrface 3.14.0 → 3.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/intrface.css CHANGED
@@ -1,2 +1,2 @@
1
- ._withOffer_1074j_2{flex-direction:column;gap:8px;width:100%;display:flex}._offerRow_1074j_10{align-items:center;gap:10px;min-width:0;min-height:36px;display:flex}._offerHint_1074j_18{font:var(--text-xs);color:var(--lv4);flex-shrink:0;align-items:center;gap:4px;display:inline-flex}._kbd_1074j_27{min-width:18px;height:18px;font:var(--text-2xs);color:var(--lv5);background:var(--lv2);border-radius:3px;justify-content:center;align-items:center;padding:0 5px;display:inline-flex}._askStrong_1074j_42 kbd{background:var(--lv3);color:var(--lv7)}._message_1mgfk_1{text-align:center;flex-direction:column;align-items:center;gap:6px;padding:80px 24px;display:flex}._icon_1mgfk_10{margin-bottom:10px;display:flex}._title_1mgfk_15{font:var(--text-lg);color:var(--lv7)}._detail_1mgfk_20{font:var(--text-sm);color:var(--lv5)}._technical_1mgfk_25{font-family:var(--font-mono,ui-monospace, monospace);color:var(--lv4);max-width:60ch;margin-top:4px;font-size:11px}._button_1mgfk_33{margin-top:10px}._placeholder_1qr5o_1{opacity:.05;justify-content:center;align-items:center;height:100%;min-height:600px;max-height:1000px;display:flex}._invalid_1qr5o_11 p{font:var(--text-base);padding:25px}._searchedFor_1qr5o_17{font:var(--text-sm);color:var(--lv5);flex-wrap:wrap;align-items:center;gap:4px 10px;margin-bottom:8px;display:flex}._searchedFor_1qr5o_17 strong{color:var(--lv8);font-weight:var(--med)}._row_11svi_1{border-bottom:1px solid var(--lv0);font:var(--text-xs);isolation:isolate;color:var(--lv5);padding:20px 25px 20px 30px;position:relative}@media (prefers-color-scheme:dark){._row_11svi_1{border-color:var(--lv2)}}._row_11svi_1:last-child{border-bottom:none}._content_11svi_22{flex-direction:column;gap:10px;line-height:1.8;display:flex}._content_11svi_22 .indx-chip{background-color:var(--lv0)}._indexNumber_11svi_36{font:var(--text-2xs);color:var(--lv4);position:absolute;top:25px;left:5px}._scoreNumber_11svi_44{font:var(--text-2xs);color:var(--lv4);position:absolute;top:25px;right:5px}._skeletonBars_11svi_53{flex-direction:column;gap:10px;display:flex}@keyframes _skeletonAppear_f970z_1{0%{opacity:0}to{opacity:1}}._wrapper_f970z_6{animation:.2s .15s both _skeletonAppear_f970z_1}@media (prefers-reduced-motion:reduce){._wrapper_f970z_6{animation:none}}._row_ujwhc_1{flex-wrap:wrap;align-items:center;gap:6px;display:flex}._title_ujwhc_8{font:var(--text-base);color:var(--lv8)}._listRows_13obt_2{flex-direction:column;gap:12px;display:flex}._sliderArea_13obt_8{flex-direction:column;gap:14px;padding:4px 0 10px;display:flex}._inputRow_13obt_15{justify-content:space-between;display:flex}._histogramRow_13obt_22{height:8px;margin-top:2px}._list_18vbb_2{flex-direction:column;gap:10px;display:flex}._count_18vbb_7{font:var(--text-xs);color:var(--lv5);justify-content:space-between;align-items:center;gap:8px;display:flex}._countValue_18vbb_17{flex-shrink:0}._chip_18vbb_22{min-width:0;max-width:100%}._chip_18vbb_22 svg{flex-shrink:0}._chipLabel_18vbb_32{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}._grid_18vbb_40{flex-wrap:wrap;gap:10px;display:flex}._grid_18vbb_40 li{flex:0 auto;min-width:0;max-width:100%}._active_18vbb_54{background:var(--lv1)}._notice_4sel0_1{font:var(--text-xs);color:var(--lv5);flex-direction:column;gap:2px;display:flex}._technical_4sel0_9{font-family:var(--font-mono,ui-monospace, monospace);color:var(--lv4);font-size:11px}._disabledMessage_adany_1{font:var(--text-2xs);margin-bottom:10px}._histogram_adany_6{height:20px;margin-bottom:2px;position:relative}._histogramLayer_adany_14{align-items:flex-end;padding:0 10px;display:flex;position:absolute;inset:0}._histogramLive_adany_22,._histogramLit_adany_23{pointer-events:none}._histogramLive_adany_22 ._histogramFill_adany_30{background:var(--lv3);border-radius:0}._histogramLit_adany_23 ._histogramFill_adany_30{background:var(--lv5);border-radius:0}._histogramBar_adany_43{cursor:pointer;background:0 0;border:0;flex:0 0;align-items:flex-end;min-width:0;height:100%;padding:0;display:flex}._histogramSeparators_adany_61{pointer-events:none;position:absolute;inset:0}._histogramSeparator_adany_48{background:var(--lv0);width:1px;margin-left:-.5px;position:absolute;top:0;bottom:0}._active_adany_76 ._histogramSeparator_adany_48{background:var(--lv1)}._histogramBar_adany_43:disabled{cursor:default}._histogramBar_adany_43:focus-visible{outline:1px solid var(--lv5);outline-offset:1px}._histogramFill_adany_30{background:var(--lv2);border-radius:1px 1px 0 0;width:100%;transition:height .15s;display:block}._active_adany_76{background:var(--lv1)}._list_9je85_2{flex-direction:column;gap:10px;display:flex}._grid_9je85_9{flex-wrap:wrap;gap:10px;display:flex}._grid_9je85_9 li{flex:0 auto;min-width:0;max-width:100%}._count_9je85_22{font:var(--text-xs);color:var(--lv5);justify-content:space-between;align-items:center;gap:8px;display:flex}._countValue_9je85_31{flex-shrink:0}._chip_9je85_35{min-width:0;max-width:100%}._active_9je85_41{background:var(--lv1)}._grid_1xjna_2{flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none;display:flex}._grid_1xjna_2 li{flex:0 auto;min-width:0;max-width:100%}._chip_1xjna_21{min-width:0;max-width:100%}._chip_1xjna_21 svg{flex-shrink:0}._chipLabel_1xjna_32{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}._select_nwf7i_1{padding:6px 10px;font-size:14px}._radioGroup_nwf7i_6{flex-direction:column;gap:6px;display:flex}._list_1y4fk_1{flex-direction:column;gap:15px;list-style-type:none;display:flex}._panel_gjc13_1,._thread_gjc13_4{flex-direction:column;gap:20px;display:flex}._fill_gjc13_5{gap:12px;height:100%;min-height:0}._fill_gjc13_5 ._thread_gjc13_4{overscroll-behavior:contain;flex:1;min-height:0;overflow-y:auto}._fill_gjc13_5>:last-child:not(._thread_gjc13_4){flex-shrink:0}._answer_gjc13_8{flex-direction:column;gap:10px;display:flex}._paragraph_gjc13_9{font:var(--text-sm);color:var(--lv8);margin:0;line-height:1.55}._action_gjc13_10{margin-top:10px}._turn_gjc13_11{flex-direction:column;gap:20px;display:flex}._heading_gjc13_14{font:var(--text-sm);font-weight:var(--med);color:var(--lv8);margin:4px 0 0}._list_gjc13_15{font:var(--text-sm);color:var(--lv8);flex-direction:column;gap:4px;margin:0;padding-left:20px;line-height:1.55;display:flex}._inlineCode_gjc13_16{font-family:var(--font-mono);background:var(--lv1);border-radius:4px;padding:1px 5px;font-size:.92em}._codeBlock_gjc13_17{background:var(--lv1);border-radius:var(--radius);font:var(--text-xs);font-family:var(--font-mono);color:var(--lv8);margin:0;padding:12px 14px;line-height:1.6;overflow-x:auto}._codeBlock_gjc13_17 code{font:inherit;white-space:pre}._searched_gjc13_22{flex-wrap:wrap;align-items:center;gap:6px;display:flex}._searchedLabel_gjc13_23{font:var(--text-xs);color:var(--lv5)}._steps_gjc13_26{flex-direction:column;gap:4px;display:flex}._stepDone_gjc13_27{font:var(--text-xs);color:var(--lv5)}
1
+ ._row_epo6h_3{box-sizing:border-box;background:var(--lv2);border-radius:var(--radius);min-height:44px;color:var(--lv6);font:var(--text-sm);align-items:center;gap:10px;min-width:0;padding:0 12px;display:flex}._icon_epo6h_17{color:var(--lv5);flex:none;display:inline-flex}._line_epo6h_24{min-width:0;height:44px;color:inherit;font:inherit;text-align:left;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:none;flex:1;padding:0;overflow:hidden}._line_epo6h_24:focus-visible{outline:2px solid var(--lv5);outline-offset:-2px;border-radius:var(--radius)}._text_epo6h_41{flex:1;min-width:0}._question_epo6h_43{min-width:0;color:var(--lv8);text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}._actions_epo6h_52{flex:none;align-items:center;gap:10px;display:inline-flex}._enter_epo6h_59{font:var(--text-xs);color:var(--lv4);align-items:center;gap:4px;display:inline-flex}._grid_1xjna_2{flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none;display:flex}._grid_1xjna_2 li{flex:0 auto;min-width:0;max-width:100%}._chip_1xjna_21{min-width:0;max-width:100%}._chip_1xjna_21 svg{flex-shrink:0}._chipLabel_1xjna_32{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}._withOffer_1zrln_2{flex-direction:column;gap:8px;width:100%;display:flex}._offerRow_1zrln_10{align-items:center;gap:10px;min-width:0;min-height:44px;display:flex}._offerHint_1zrln_18{font:var(--text-xs);color:var(--lv4);flex-shrink:0;align-items:center;gap:4px;display:inline-flex}._kbd_1zrln_27{min-width:18px;height:18px;font:var(--text-2xs);color:var(--lv5);background:var(--lv2);border-radius:3px;justify-content:center;align-items:center;padding:0 5px;display:inline-flex}._askStrong_1zrln_42 kbd{background:var(--lv3);color:var(--lv7)}._thinking_1zrln_45{font:var(--text-xs);color:var(--lv5);align-items:center;gap:6px;padding:0 8px;display:inline-flex}._thinking_1zrln_45 svg{width:14px;height:14px}._offerQuick_1zrln_56{flex:1}._filterChip_1zrln_59{background:0 0;min-width:0;height:auto;padding:0}._filterChip_1zrln_59:hover{background:0 0}._filtersPopover_1zrln_63{width:320px;max-width:calc(100vw - 32px);padding:0}._message_1mgfk_1{text-align:center;flex-direction:column;align-items:center;gap:6px;padding:80px 24px;display:flex}._icon_1mgfk_10{margin-bottom:10px;display:flex}._title_1mgfk_15{font:var(--text-lg);color:var(--lv7)}._detail_1mgfk_20{font:var(--text-sm);color:var(--lv5)}._technical_1mgfk_25{font-family:var(--font-mono,ui-monospace, monospace);color:var(--lv4);max-width:60ch;margin-top:4px;font-size:11px}._button_1mgfk_33{margin-top:10px}._placeholder_1qr5o_1{opacity:.05;justify-content:center;align-items:center;height:100%;min-height:600px;max-height:1000px;display:flex}._invalid_1qr5o_11 p{font:var(--text-base);padding:25px}._searchedFor_1qr5o_17{font:var(--text-sm);color:var(--lv5);flex-wrap:wrap;align-items:center;gap:4px 10px;margin-bottom:8px;display:flex}._searchedFor_1qr5o_17 strong{color:var(--lv8);font-weight:var(--med)}._row_11svi_1{border-bottom:1px solid var(--lv0);font:var(--text-xs);isolation:isolate;color:var(--lv5);padding:20px 25px 20px 30px;position:relative}@media (prefers-color-scheme:dark){._row_11svi_1{border-color:var(--lv2)}}._row_11svi_1:last-child{border-bottom:none}._content_11svi_22{flex-direction:column;gap:10px;line-height:1.8;display:flex}._content_11svi_22 .indx-chip{background-color:var(--lv0)}._indexNumber_11svi_36{font:var(--text-2xs);color:var(--lv4);position:absolute;top:25px;left:5px}._scoreNumber_11svi_44{font:var(--text-2xs);color:var(--lv4);position:absolute;top:25px;right:5px}._skeletonBars_11svi_53{flex-direction:column;gap:10px;display:flex}@keyframes _skeletonAppear_f970z_1{0%{opacity:0}to{opacity:1}}._wrapper_f970z_6{animation:.2s .15s both _skeletonAppear_f970z_1}@media (prefers-reduced-motion:reduce){._wrapper_f970z_6{animation:none}}._row_ujwhc_1{flex-wrap:wrap;align-items:center;gap:6px;display:flex}._title_ujwhc_8{font:var(--text-base);color:var(--lv8)}._listRows_13obt_2{flex-direction:column;gap:12px;display:flex}._sliderArea_13obt_8{flex-direction:column;gap:14px;padding:4px 0 10px;display:flex}._inputRow_13obt_15{justify-content:space-between;display:flex}._histogramRow_13obt_22{height:8px;margin-top:2px}._list_18vbb_2{flex-direction:column;gap:10px;display:flex}._count_18vbb_7{font:var(--text-xs);color:var(--lv5);justify-content:space-between;align-items:center;gap:8px;display:flex}._countValue_18vbb_17{flex-shrink:0}._chip_18vbb_22{min-width:0;max-width:100%}._chip_18vbb_22 svg{flex-shrink:0}._chipLabel_18vbb_32{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}._grid_18vbb_40{flex-wrap:wrap;gap:10px;display:flex}._grid_18vbb_40 li{flex:0 auto;min-width:0;max-width:100%}._active_18vbb_54{background:var(--lv1)}._notice_4sel0_1{font:var(--text-xs);color:var(--lv5);flex-direction:column;gap:2px;display:flex}._technical_4sel0_9{font-family:var(--font-mono,ui-monospace, monospace);color:var(--lv4);font-size:11px}._disabledMessage_adany_1{font:var(--text-2xs);margin-bottom:10px}._histogram_adany_6{height:20px;margin-bottom:2px;position:relative}._histogramLayer_adany_14{align-items:flex-end;padding:0 10px;display:flex;position:absolute;inset:0}._histogramLive_adany_22,._histogramLit_adany_23{pointer-events:none}._histogramLive_adany_22 ._histogramFill_adany_30{background:var(--lv3);border-radius:0}._histogramLit_adany_23 ._histogramFill_adany_30{background:var(--lv5);border-radius:0}._histogramBar_adany_43{cursor:pointer;background:0 0;border:0;flex:0 0;align-items:flex-end;min-width:0;height:100%;padding:0;display:flex}._histogramSeparators_adany_61{pointer-events:none;position:absolute;inset:0}._histogramSeparator_adany_48{background:var(--lv0);width:1px;margin-left:-.5px;position:absolute;top:0;bottom:0}._active_adany_76 ._histogramSeparator_adany_48{background:var(--lv1)}._histogramBar_adany_43:disabled{cursor:default}._histogramBar_adany_43:focus-visible{outline:1px solid var(--lv5);outline-offset:1px}._histogramFill_adany_30{background:var(--lv2);border-radius:1px 1px 0 0;width:100%;transition:height .15s;display:block}._active_adany_76{background:var(--lv1)}._list_9je85_2{flex-direction:column;gap:10px;display:flex}._grid_9je85_9{flex-wrap:wrap;gap:10px;display:flex}._grid_9je85_9 li{flex:0 auto;min-width:0;max-width:100%}._count_9je85_22{font:var(--text-xs);color:var(--lv5);justify-content:space-between;align-items:center;gap:8px;display:flex}._countValue_9je85_31{flex-shrink:0}._chip_9je85_35{min-width:0;max-width:100%}._active_9je85_41{background:var(--lv1)}._select_nwf7i_1{padding:6px 10px;font-size:14px}._radioGroup_nwf7i_6{flex-direction:column;gap:6px;display:flex}._list_1y4fk_1{flex-direction:column;gap:15px;list-style-type:none;display:flex}._panel_gjc13_1,._thread_gjc13_4{flex-direction:column;gap:20px;display:flex}._fill_gjc13_5{gap:12px;height:100%;min-height:0}._fill_gjc13_5 ._thread_gjc13_4{overscroll-behavior:contain;flex:1;min-height:0;overflow-y:auto}._fill_gjc13_5>:last-child:not(._thread_gjc13_4){flex-shrink:0}._answer_gjc13_8{flex-direction:column;gap:10px;display:flex}._paragraph_gjc13_9{font:var(--text-sm);color:var(--lv8);margin:0;line-height:1.55}._action_gjc13_10{margin-top:10px}._turn_gjc13_11{flex-direction:column;gap:20px;display:flex}._heading_gjc13_14{font:var(--text-sm);font-weight:var(--med);color:var(--lv8);margin:4px 0 0}._list_gjc13_15{font:var(--text-sm);color:var(--lv8);flex-direction:column;gap:4px;margin:0;padding-left:20px;line-height:1.55;display:flex}._inlineCode_gjc13_16{font-family:var(--font-mono);background:var(--lv1);border-radius:4px;padding:1px 5px;font-size:.92em}._codeBlock_gjc13_17{background:var(--lv1);border-radius:var(--radius);font:var(--text-xs);font-family:var(--font-mono);color:var(--lv8);margin:0;padding:12px 14px;line-height:1.6;overflow-x:auto}._codeBlock_gjc13_17 code{font:inherit;white-space:pre}._searched_gjc13_22{flex-wrap:wrap;align-items:center;gap:6px;display:flex}._searchedLabel_gjc13_23{font:var(--text-xs);color:var(--lv5)}._steps_gjc13_26{flex-direction:column;gap:4px;display:flex}._stepDone_gjc13_27{font:var(--text-xs);color:var(--lv5)}
2
2
  /*$vite$:1*/
@@ -5,17 +5,37 @@
5
5
  * (JevProbe/Replay/Typing.cs and Panel.cs); keep them in step.
6
6
  */
7
7
  export type Offer = 'none' | 'invite' | 'strong';
8
- /** Entered at one probability, left only below a lower one. The dataset's settings carry them. */
8
+ /** How forward the offer is, the dataset's `mode`: `strict`, only the full offer; `soft`, the quiet
9
+ * one early and the full one when sure; `open`, asking always there (Enter asks whatever the
10
+ * judge says); `inviting`, open with the invitation sweeping as soon as the judge reads a question
11
+ * starting, but no answer until asked; `proactive`, inviting, and the answer written on its own
12
+ * once the judge is sure, reads it as finished, and the visitor has stopped. */
13
+ export type SearchOrAskMode = 'strict' | 'soft' | 'open' | 'inviting' | 'proactive';
14
+ /** The mode that applies: the page's own where it chose one, else the dataset's. Strict, soft,
15
+ * open and inviting only change what the page shows, so a page may choose any of them. Proactive
16
+ * starts answers nobody asked for, which the server allows only for a dataset set to proactive
17
+ * (and within its day's cap), so a page's proactive is inviting anywhere else. */
18
+ export declare function pageMode(dataset: SearchOrAskMode, page?: SearchOrAskMode): SearchOrAskMode;
19
+ /** Entered at one probability, left only below a lower one. The dataset's settings carry them, and
20
+ * each judgement its own resolved: `hint` the inviting and proactive modes' "type a bit more",
21
+ * low (the dataset's kind decides it unless set), `finished` the score proactive needs to answer
22
+ * on its own. */
9
23
  export interface OfferThresholds {
10
24
  strong: number;
11
25
  strongHide: number;
12
26
  invite: number;
13
27
  inviteHide: number;
28
+ hint?: number | null;
29
+ finished?: number;
14
30
  }
15
31
  export declare const DEFAULT_THRESHOLDS: OfferThresholds;
16
32
  export declare function isIdentifier(text: string): boolean;
17
- /** Whether a pause on this text may ask the server at all. */
18
- export declare function triggers(text: string): boolean;
33
+ /** A sentence, in any language: a question mark, or three words. No word list: the words of a
34
+ * question are the judge's to read (27 Oct 2026), so nothing here knows "how" from "hvordan". */
35
+ export declare function sentence(text: string): boolean;
36
+ /** Whether a pause on this text may ask the server at all: a sentence, or `minChars` (4; the
37
+ * inviting and proactive modes ask from 3, so "How" gets its hint). */
38
+ export declare function triggers(text: string, minChars?: number): boolean;
19
39
  /** The next offer from the current one and a new probability, with hysteresis. */
20
40
  export declare function nextOffer(current: Offer, p: number, t?: OfferThresholds): Offer;
21
41
  /** One word can show a question starting ("how" scores high) but holds nothing to answer yet, so
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indxsearch/intrface",
3
- "version": "3.14.0",
3
+ "version": "3.15.1",
4
4
  "description": "Indx Search interface components for React. Provides ready-to-use filter panels, search inputs, faceted navigation, and sorting components. Built on @indxsearch/systm.",
5
5
  "keywords": [
6
6
  "indx",
@@ -71,9 +71,9 @@
71
71
  "./styles.css": "./dist/intrface.css"
72
72
  },
73
73
  "dependencies": {
74
- "@indxsearch/indx-types": "^3.0.0",
74
+ "@indxsearch/indx-types": "^3.1.0",
75
75
  "@indxsearch/pixl": "^1.5.1",
76
- "@indxsearch/systm": "^2.23.0",
76
+ "@indxsearch/systm": "^2.24.0",
77
77
  "react-range": "^1.10.0"
78
78
  },
79
79
  "publishConfig": {