@getlupa/client 1.17.1 → 1.17.5

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.
@@ -12,27 +12,47 @@ declare const lupaSearch: {
12
12
  fetch?: boolean;
13
13
  mountingBehavior?: "replace" | "append" | "prepend";
14
14
  allowedMountUrls?: string[];
15
+ domPing?: {
16
+ intervalMs?: number;
17
+ count?: number;
18
+ };
15
19
  }) => void;
16
20
  searchResults: (options: SearchResultsOptions, mountOptions?: {
17
21
  fetch?: boolean;
18
22
  mountingBehavior?: "replace" | "append" | "prepend";
19
23
  allowedMountUrls?: string[];
24
+ domPing?: {
25
+ intervalMs?: number;
26
+ count?: number;
27
+ };
20
28
  }) => void;
21
29
  tracking: (options: TrackingOptions) => void;
22
30
  productList: (options: ProductListOptions, mountOptions?: {
23
31
  fetch?: boolean;
24
32
  mountingBehavior?: "replace" | "append" | "prepend";
25
33
  allowedMountUrls?: string[];
34
+ domPing?: {
35
+ intervalMs?: number;
36
+ count?: number;
37
+ };
26
38
  }) => void;
27
39
  searchContainer: (options: SearchContainerOptions, mountOptions?: {
28
40
  fetch?: boolean;
29
41
  mountingBehavior?: "replace" | "append" | "prepend";
30
42
  allowedMountUrls?: string[];
43
+ domPing?: {
44
+ intervalMs?: number;
45
+ count?: number;
46
+ };
31
47
  }) => void;
32
48
  recommendations: (options: ProductRecommendationOptions, mountOptions?: {
33
49
  fetch?: boolean;
34
50
  mountingBehavior?: "replace" | "append" | "prepend";
35
51
  allowedMountUrls?: string[];
52
+ domPing?: {
53
+ intervalMs?: number;
54
+ count?: number;
55
+ };
36
56
  }) => void;
37
57
  clearSearchBox: (selector?: string) => void;
38
58
  clearSearchResults: (selector?: string) => void;
@@ -43,12 +63,20 @@ declare const lupaSearch: {
43
63
  fetch?: boolean;
44
64
  mountingBehavior?: "replace" | "append" | "prepend";
45
65
  allowedMountUrls?: string[];
66
+ domPing?: {
67
+ intervalMs?: number;
68
+ count?: number;
69
+ };
46
70
  }) => void;
47
71
  clearChat: (selector?: string) => void;
48
72
  preconfiguredSearchContainer: (preconfiguredSearchContainerOptions: PreconfiguredSearchContainerOptions, mountOptions?: {
49
73
  fetch?: boolean;
50
74
  mountingBehavior?: "replace" | "append" | "prepend";
51
75
  allowedMountUrls?: string[];
76
+ domPing?: {
77
+ intervalMs?: number;
78
+ count?: number;
79
+ };
52
80
  }) => void;
53
81
  getSearchBoxComponent: ({ searchBoxOptions, labels, panelOptions, redirections, placeholderImage }: PreconfiguredSearchContainerOptions) => SearchBoxOptions;
54
82
  getSearchResultsComponent: ({ searchResultOptions, labels, redirections, placeholderImage, configuratorOverrides, callbacks, additionalFields }: PreconfiguredSearchContainerOptions) => SearchResultsOptions;
@@ -24,6 +24,10 @@ declare const _default: {
24
24
  keepOpen?: boolean;
25
25
  } & {
26
26
  allowedMountUrls?: string[];
27
+ domPing?: {
28
+ intervalMs?: number;
29
+ count?: number;
30
+ };
27
31
  } & {
28
32
  minInputLength?: number;
29
33
  labels?: import("@getlupa/vue/dist/src/types/search-box/SearchBoxOptions").SearchBoxOptionLabels;
@@ -82,6 +86,10 @@ declare const _default: {
82
86
  initialFilters?: import("@getlupa/client-sdk/Types").FilterGroup | Record<string, import("@getlupa/vue/dist/src/types/DataExtraction").DataExtraction>;
83
87
  } & {
84
88
  allowedMountUrls?: string[];
89
+ domPing?: {
90
+ intervalMs?: number;
91
+ count?: number;
92
+ };
85
93
  } & Partial<SearchResultsOptions>;
86
94
  };
87
95
  export default _default;
@@ -5,6 +5,10 @@ type MountOptions = {
5
5
  fetch?: boolean;
6
6
  mountingBehavior?: 'replace' | 'append' | 'prepend';
7
7
  allowedMountUrls?: string[];
8
+ domPing?: {
9
+ intervalMs?: number;
10
+ count?: number;
11
+ };
8
12
  };
9
13
  export declare const applySearchBox: (options: SearchBoxOptions, mountOptions?: MountOptions) => void;
10
14
  export declare const searchBox: (options: SearchBoxOptions, mountOptions?: MountOptions) => void;
@@ -1,9 +1,17 @@
1
1
  import { ProductListOptions, ProductRecommendationOptions, SearchBoxOptions, SearchResultsOptions } from '@getlupa/vue';
2
2
  export type ResolvedSearchBoxOptions = SearchBoxOptions & {
3
3
  allowedMountUrls?: string[];
4
+ domPing?: {
5
+ intervalMs?: number;
6
+ count?: number;
7
+ };
4
8
  };
5
9
  export type ResolvedSearchResultOptions = SearchResultsOptions & {
6
10
  allowedMountUrls?: string[];
11
+ domPing?: {
12
+ intervalMs?: number;
13
+ count?: number;
14
+ };
7
15
  };
8
16
  export type ResolvedProductListOptions = ProductListOptions & {
9
17
  allowedMountUrls?: string[];
@@ -1,4 +1,6 @@
1
1
  import { type Component } from 'vue';
2
+ export declare const createDomPing: () => (intervalMs?: number, count?: number) => void;
3
+ export declare const startDomPing: (intervalMs?: number, count?: number) => void;
2
4
  export declare const createVue: (selector: string | Element, mountingBehavior: string, rootComponent: Component, options: Record<string, unknown>, mountToParent?: boolean) => {
3
5
  mountedApp: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
4
6
  mountedComponent: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/client",
3
- "version": "1.17.1",
3
+ "version": "1.17.5",
4
4
  "main": "dist/lupaSearch.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/src/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@getlupa/client-sdk": "^1.3.4",
23
- "@getlupa/vue": "0.17.1",
23
+ "@getlupa/vue": "0.17.5",
24
24
  "@rushstack/eslint-patch": "^1.3.2",
25
25
  "@tsconfig/node18": "^2.0.1",
26
26
  "@types/jsdom": "^21.1.1",
@@ -50,5 +50,6 @@
50
50
  "vitest": "^0.32.0",
51
51
  "vue": "^3.3.4",
52
52
  "vue-tsc": "^1.6.5"
53
- }
53
+ },
54
+ "packageManager": "yarn@1.22.19"
54
55
  }