@findlane/browser 0.30.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -395,6 +395,12 @@ export type BrowserEvents = {
|
|
|
395
395
|
query?: string;
|
|
396
396
|
position?: number;
|
|
397
397
|
}): void;
|
|
398
|
+
/** A facet match was picked: the match as the response gave it, the search's query, and its place among the rows.
|
|
399
|
+
* The Analytics page shows the filters opened this way, and from which searches. */
|
|
400
|
+
facetMatch(match: Pick<FacetMatch, "field" | "values" | "label">, details?: {
|
|
401
|
+
query?: string;
|
|
402
|
+
position?: number;
|
|
403
|
+
}): void;
|
|
398
404
|
addToCart(items: EventItem[], options?: {
|
|
399
405
|
currency?: string;
|
|
400
406
|
}): void;
|
package/dist/index.js
CHANGED
|
@@ -253,6 +253,7 @@ function eventSender(url, fetcher, mode, ids, test) {
|
|
|
253
253
|
},
|
|
254
254
|
suggestion: (query, details) => add({ type: "suggestion", query, ...details }),
|
|
255
255
|
bannerClick: (rule, details) => add({ type: "bannerClick", rule, ...details }),
|
|
256
|
+
facetMatch: (match, details) => add({ type: "facetMatch", field: match.field, value: match.values[0], label: match.label, ...details }),
|
|
256
257
|
addToCart: (items, options) => add({ type: "addToCart", items, ...options }),
|
|
257
258
|
purchase: (order) => add({ type: "purchase", ...order }),
|
|
258
259
|
consent(granted) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@findlane/browser",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "Findlane browser SDK: fast, typo-tolerant public search from the browser with an index's public ID, plus React hooks and components.",
|
|
5
5
|
"keywords": ["findlane", "search", "full-text search", "typo tolerance", "instant search", "ecommerce search", "browser", "react", "autocomplete"],
|
|
6
6
|
"license": "MIT",
|