@getlupa/client 1.14.9 → 1.14.14

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.
@@ -10,23 +10,28 @@ declare const lupaSearch: {
10
10
  searchBox: (options: SearchBoxOptions, mountOptions?: {
11
11
  fetch?: boolean;
12
12
  mountingBehavior?: "replace" | "append" | "prepend";
13
+ allowedMountUrls?: string[];
13
14
  }) => void;
14
15
  searchResults: (options: SearchResultsOptions, mountOptions?: {
15
16
  fetch?: boolean;
16
17
  mountingBehavior?: "replace" | "append" | "prepend";
18
+ allowedMountUrls?: string[];
17
19
  }) => void;
18
20
  tracking: (options: TrackingOptions) => void;
19
21
  productList: (options: ProductListOptions, mountOptions?: {
20
22
  fetch?: boolean;
21
23
  mountingBehavior?: "replace" | "append" | "prepend";
24
+ allowedMountUrls?: string[];
22
25
  }) => void;
23
26
  searchContainer: (options: SearchContainerOptions, mountOptions?: {
24
27
  fetch?: boolean;
25
28
  mountingBehavior?: "replace" | "append" | "prepend";
29
+ allowedMountUrls?: string[];
26
30
  }) => void;
27
31
  recommendations: (options: ProductRecommendationOptions, mountOptions?: {
28
32
  fetch?: boolean;
29
33
  mountingBehavior?: "replace" | "append" | "prepend";
34
+ allowedMountUrls?: string[];
30
35
  }) => void;
31
36
  clearSearchBox: (selector?: string) => void;
32
37
  clearSearchResults: (selector?: string) => void;
@@ -36,11 +41,13 @@ declare const lupaSearch: {
36
41
  chat: (options: ChatOptions, mountOptions?: {
37
42
  fetch?: boolean;
38
43
  mountingBehavior?: "replace" | "append" | "prepend";
44
+ allowedMountUrls?: string[];
39
45
  }) => void;
40
46
  clearChat: (selector?: string) => void;
41
47
  preconfiguredSearchContainer: (preconfiguredSearchContainerOptions: PreconfiguredSearchContainerOptions, mountOptions?: {
42
48
  fetch?: boolean;
43
49
  mountingBehavior?: "replace" | "append" | "prepend";
50
+ allowedMountUrls?: string[];
44
51
  }) => void;
45
52
  getSearchBoxComponent: ({ searchBoxOptions, labels, panelOptions, redirections, placeholderImage }: PreconfiguredSearchContainerOptions) => SearchBoxOptions;
46
53
  getSearchResultsComponent: ({ searchResultOptions, labels, redirections, placeholderImage, configuratorOverrides, callbacks, additionalFields }: PreconfiguredSearchContainerOptions) => SearchResultsOptions;
@@ -4,6 +4,7 @@ import { PreconfiguredSearchContainerOptions } from './types/PreconfiguredSearch
4
4
  type MountOptions = {
5
5
  fetch?: boolean;
6
6
  mountingBehavior?: 'replace' | 'append' | 'prepend';
7
+ allowedMountUrls?: string[];
7
8
  };
8
9
  export declare const applySearchBox: (options: SearchBoxOptions, mountOptions?: MountOptions) => void;
9
10
  export declare const searchBox: (options: SearchBoxOptions, mountOptions?: MountOptions) => void;
@@ -0,0 +1,13 @@
1
+ import { ProductListOptions, ProductRecommendationOptions, SearchBoxOptions, SearchResultsOptions } from '@getlupa/vue';
2
+ export type ResolvedSearchBoxOptions = SearchBoxOptions & {
3
+ allowedMountUrls?: string[];
4
+ };
5
+ export type ResolvedSearchResultOptions = SearchResultsOptions & {
6
+ allowedMountUrls?: string[];
7
+ };
8
+ export type ResolvedProductListOptions = ProductListOptions & {
9
+ allowedMountUrls?: string[];
10
+ };
11
+ export type ResolvedProductRecommendationOptions = ProductRecommendationOptions & {
12
+ allowedMountUrls?: string[];
13
+ };
@@ -8,3 +8,4 @@ export declare const createVue: (selector: string | Element, mountingBehavior: s
8
8
  app: import("vue").App<Element>;
9
9
  mountElement: Element;
10
10
  };
11
+ export declare const canMount: (allowedMountUrls?: string[]) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/client",
3
- "version": "1.14.9",
3
+ "version": "1.14.14",
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.14.9",
23
+ "@getlupa/vue": "0.14.10",
24
24
  "@rushstack/eslint-patch": "^1.3.2",
25
25
  "@tsconfig/node18": "^2.0.1",
26
26
  "@types/jsdom": "^21.1.1",