@visitscotland/component-library 5.19.0 → 5.20.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/client/manifest.json +274 -323
- package/dist/client/scripts/093dbadb21acf4310ea2.js +1 -0
- package/dist/client/scripts/09efaf35581f94d9341a.js +1 -0
- package/dist/client/scripts/1a2fe27ede39fb06df96.js +1 -0
- package/dist/client/scripts/50b89672eef23c1cba6c.js +1 -0
- package/dist/client/scripts/{937cc99f8cf1e41ae153.js → 64f99a851351addd116c.js} +1 -1
- package/dist/client/scripts/{6e70f15e6d2bdbf34199.js → 6c12b23e171896e42a5f.js} +1 -1
- package/dist/client/scripts/8e08333a06adfc57e26d.js +1 -0
- package/dist/client/scripts/{a518bb1554a077d87d19.js → a084de3f7ec65cfd1bbb.js} +1 -1
- package/dist/client/scripts/{891ca6d77a816816d620.js → b6c924ab21e8d58165f5.js} +1 -1
- package/dist/client/scripts/dca2c65879ee8c6fe5e7.js +1 -0
- package/dist/client/scripts/dfab0d5501435b36f6fb.js +1 -0
- package/dist/client/scripts/eacb9fb49685d24d4a62.js +1 -0
- package/dist/client/styles/{4fbfda37596f16bf48b4.css → 42559a474b2804a2ef3f.css} +1 -1
- package/dist/client/styles/{70f85bd1939b0ffd41bc.css → 72709ccc1d539e0e7922.css} +1 -1
- package/dist/client/styles/dca2c65879ee8c6fe5e7.css +1 -0
- package/dist/client/styles/{b85e16fbbf8d8cec5583.css → dfab0d5501435b36f6fb.css} +1 -1
- package/dist/components/{LoadingSpinner-Bt2Ghlfy.mjs → LoadingSpinner-Bun15Pvs.mjs} +102 -67
- package/dist/components/{LoadingSpinner-kkWdRoQn.js → LoadingSpinner-D-h3wMvy.js} +11 -11
- package/dist/components/src/custom-components/federated-search/composables/dataLayerComposable.d.ts +47 -0
- package/dist/components/src/{stores → custom-components/federated-search/stores}/federatedSearch.store.d.ts +11 -5
- package/dist/components/src/{utils/federated-search → custom-components/federated-search/utils}/cludo-autocomplete.d.ts +1 -1
- package/dist/components/src/{utils/federated-search → custom-components/federated-search/utils}/cludo-search.d.ts +1 -1
- package/dist/components/src/{utils/federated-search → custom-components/federated-search/utils}/event-search.d.ts +1 -1
- package/dist/components/src/utils/data-layer-templates.d.ts +4 -0
- package/dist/components/style.css +1 -1
- package/dist/components/vs-component-library-maps.js +1 -1
- package/dist/components/vs-component-library-maps.mjs +1 -1
- package/dist/components/vs-component-library.js +105 -105
- package/dist/components/vs-component-library.mjs +4484 -4336
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/manifest.json +1 -1
- package/dist/ssr/styles/{3e1d35bdf789dd396767.css → 6fce2da76f8992515487.css} +4 -5
- package/package.json +1 -1
- package/dist/client/scripts/1714d8bdf57ec37c7f7f.js +0 -1
- package/dist/client/scripts/20fefc2e8bed6e73892a.js +0 -1
- package/dist/client/scripts/2e638bf18671846cc500.js +0 -1
- package/dist/client/scripts/57614c88f07f20a282b2.js +0 -1
- package/dist/client/scripts/81f6df895ee29fb5e603.js +0 -1
- package/dist/client/scripts/98b385f33830385a4d2d.js +0 -1
- package/dist/client/scripts/9b38d68c8dc4375aa543.js +0 -1
- package/dist/client/scripts/b85e16fbbf8d8cec5583.js +0 -1
- package/dist/client/styles/20fefc2e8bed6e73892a.css +0 -1
- package/dist/client/styles/81f6df895ee29fb5e603.css +0 -1
- /package/dist/client/scripts/{4fbfda37596f16bf48b4.js → 42559a474b2804a2ef3f.js} +0 -0
- /package/dist/client/scripts/{70f85bd1939b0ffd41bc.js → 72709ccc1d539e0e7922.js} +0 -0
- /package/dist/client/styles/{2e638bf18671846cc500.css → 093dbadb21acf4310ea2.css} +0 -0
- /package/dist/client/styles/{57614c88f07f20a282b2.css → 8e08333a06adfc57e26d.css} +0 -0
- /package/dist/client/styles/{1714d8bdf57ec37c7f7f.css → eacb9fb49685d24d4a62.css} +0 -0
package/dist/components/src/custom-components/federated-search/composables/dataLayerComposable.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vue Composable for Data Layer interactions (e.g., Google Tag Manager).
|
|
3
|
+
* Replaces the dataLayerMixin for custom components. This will be removed to a wrapper
|
|
4
|
+
* project along with the components.
|
|
5
|
+
*/
|
|
6
|
+
export default function dataLayerComposable(): {
|
|
7
|
+
pageUrl: import('vue').ComputedRef<string>;
|
|
8
|
+
createDataLayerObject: (type: string, event: any) => void;
|
|
9
|
+
templateFiller: (template: Array<string>, values: any) => any;
|
|
10
|
+
compileFullTemplate: (templateValues: any) => any;
|
|
11
|
+
returnIsoDate: () => string;
|
|
12
|
+
pushToDataLayer: (object: any) => void;
|
|
13
|
+
dataLayerStore: import('pinia').Store<"datalayer", Pick<{
|
|
14
|
+
pageUrl: import('vue').Ref<string, string>;
|
|
15
|
+
tagsTestRun: import('vue').Ref<boolean, boolean>;
|
|
16
|
+
GTMData: import('vue').Ref<object, object>;
|
|
17
|
+
getValueFromKey: (key: string) => any;
|
|
18
|
+
setTestRun: (payload: boolean) => void;
|
|
19
|
+
setPageUrl: (payload: string) => void;
|
|
20
|
+
processPayload: (payload: {
|
|
21
|
+
key: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}) => void;
|
|
24
|
+
}, "pageUrl" | "tagsTestRun" | "GTMData">, Pick<{
|
|
25
|
+
pageUrl: import('vue').Ref<string, string>;
|
|
26
|
+
tagsTestRun: import('vue').Ref<boolean, boolean>;
|
|
27
|
+
GTMData: import('vue').Ref<object, object>;
|
|
28
|
+
getValueFromKey: (key: string) => any;
|
|
29
|
+
setTestRun: (payload: boolean) => void;
|
|
30
|
+
setPageUrl: (payload: string) => void;
|
|
31
|
+
processPayload: (payload: {
|
|
32
|
+
key: string;
|
|
33
|
+
value: string;
|
|
34
|
+
}) => void;
|
|
35
|
+
}, never>, Pick<{
|
|
36
|
+
pageUrl: import('vue').Ref<string, string>;
|
|
37
|
+
tagsTestRun: import('vue').Ref<boolean, boolean>;
|
|
38
|
+
GTMData: import('vue').Ref<object, object>;
|
|
39
|
+
getValueFromKey: (key: string) => any;
|
|
40
|
+
setTestRun: (payload: boolean) => void;
|
|
41
|
+
setPageUrl: (payload: string) => void;
|
|
42
|
+
processPayload: (payload: {
|
|
43
|
+
key: string;
|
|
44
|
+
value: string;
|
|
45
|
+
}) => void;
|
|
46
|
+
}, "getValueFromKey" | "setTestRun" | "setPageUrl" | "processPayload">>;
|
|
47
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CludoCredentials } from '
|
|
1
|
+
import { CludoCredentials } from '../../../types/types';
|
|
2
2
|
|
|
3
3
|
declare const useFederatedSearchStore: import('pinia').StoreDefinition<"federatedSearch", Pick<{
|
|
4
4
|
filters: import('vue').Ref<any, any>;
|
|
@@ -28,13 +28,15 @@ declare const useFederatedSearchStore: import('pinia').StoreDefinition<"federate
|
|
|
28
28
|
totalResults: import('vue').Ref<any, any>;
|
|
29
29
|
totalResultsCludo: import('vue').Ref<any, any>;
|
|
30
30
|
totalResultsEvents: import('vue').Ref<any, any>;
|
|
31
|
-
navigateToResultsPage: (resetPageNo?: boolean) => void;
|
|
31
|
+
navigateToResultsPage: (resetPageNo?: boolean, fromAutosuggest?: boolean) => void;
|
|
32
32
|
isHomePage: import('vue').Ref<boolean, boolean>;
|
|
33
33
|
startDate: import('vue').Ref<string, string>;
|
|
34
34
|
endDate: import('vue').Ref<string, string>;
|
|
35
35
|
sortBy: import('vue').Ref<any, any>;
|
|
36
36
|
siteLanguage: import('vue').Ref<any, any>;
|
|
37
|
-
|
|
37
|
+
searchInSessionCount: import('vue').Ref<number, number>;
|
|
38
|
+
queryInput: import('vue').Ref<string, string>;
|
|
39
|
+
}, "filters" | "currentPage" | "isHomePage" | "selectedSubCategory" | "isLoading" | "selectedCategory" | "searchTerm" | "endDate" | "startDate" | "cludoCredentials" | "cludoError" | "eventsApi" | "eventsApiError" | "results" | "searchUrl" | "selectedCategoryKey" | "selectedSubCategoryKey" | "totalResults" | "totalResultsCludo" | "totalResultsEvents" | "sortBy" | "siteLanguage" | "searchInSessionCount" | "queryInput">, Pick<{
|
|
38
40
|
filters: import('vue').Ref<any, any>;
|
|
39
41
|
currentPage: import('vue').Ref<number, number>;
|
|
40
42
|
cludoCredentials: import('vue').Ref<{
|
|
@@ -62,12 +64,14 @@ declare const useFederatedSearchStore: import('pinia').StoreDefinition<"federate
|
|
|
62
64
|
totalResults: import('vue').Ref<any, any>;
|
|
63
65
|
totalResultsCludo: import('vue').Ref<any, any>;
|
|
64
66
|
totalResultsEvents: import('vue').Ref<any, any>;
|
|
65
|
-
navigateToResultsPage: (resetPageNo?: boolean) => void;
|
|
67
|
+
navigateToResultsPage: (resetPageNo?: boolean, fromAutosuggest?: boolean) => void;
|
|
66
68
|
isHomePage: import('vue').Ref<boolean, boolean>;
|
|
67
69
|
startDate: import('vue').Ref<string, string>;
|
|
68
70
|
endDate: import('vue').Ref<string, string>;
|
|
69
71
|
sortBy: import('vue').Ref<any, any>;
|
|
70
72
|
siteLanguage: import('vue').Ref<any, any>;
|
|
73
|
+
searchInSessionCount: import('vue').Ref<number, number>;
|
|
74
|
+
queryInput: import('vue').Ref<string, string>;
|
|
71
75
|
}, never>, Pick<{
|
|
72
76
|
filters: import('vue').Ref<any, any>;
|
|
73
77
|
currentPage: import('vue').Ref<number, number>;
|
|
@@ -96,11 +100,13 @@ declare const useFederatedSearchStore: import('pinia').StoreDefinition<"federate
|
|
|
96
100
|
totalResults: import('vue').Ref<any, any>;
|
|
97
101
|
totalResultsCludo: import('vue').Ref<any, any>;
|
|
98
102
|
totalResultsEvents: import('vue').Ref<any, any>;
|
|
99
|
-
navigateToResultsPage: (resetPageNo?: boolean) => void;
|
|
103
|
+
navigateToResultsPage: (resetPageNo?: boolean, fromAutosuggest?: boolean) => void;
|
|
100
104
|
isHomePage: import('vue').Ref<boolean, boolean>;
|
|
101
105
|
startDate: import('vue').Ref<string, string>;
|
|
102
106
|
endDate: import('vue').Ref<string, string>;
|
|
103
107
|
sortBy: import('vue').Ref<any, any>;
|
|
104
108
|
siteLanguage: import('vue').Ref<any, any>;
|
|
109
|
+
searchInSessionCount: import('vue').Ref<number, number>;
|
|
110
|
+
queryInput: import('vue').Ref<string, string>;
|
|
105
111
|
}, "getAutoComplete" | "getSearchResults" | "navigateToResultsPage">>;
|
|
106
112
|
export default useFederatedSearchStore;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CludoCredentials, FederatedSearchResult } from '
|
|
1
|
+
import { CludoCredentials, FederatedSearchResult } from '../../../types/types';
|
|
2
2
|
|
|
3
3
|
declare function cludoSearch(searchTerm: string, cludoCredentials: CludoCredentials, page: number, selectedCategory: string, selectedCategoryKey: string): Promise<{
|
|
4
4
|
results: FederatedSearchResult[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FederatedSearchResult } from '
|
|
1
|
+
import { FederatedSearchResult } from '../../../types/types';
|
|
2
2
|
|
|
3
3
|
declare function eventSearch(api: string, searchTerm: string, page: number, selectedCategoryKey: string, selectedSubCategoryKey: string[], startDate: string, endDate: string, sortBy: string, siteLanguage: string): Promise<{
|
|
4
4
|
results: FederatedSearchResult[];
|
|
@@ -18,3 +18,7 @@ export const productSearchTemplate: string[];
|
|
|
18
18
|
export const cmsReferralTemplate: string[];
|
|
19
19
|
export const accordionOpenTemplate: string[];
|
|
20
20
|
export const tabClickTemplate: string[];
|
|
21
|
+
export const siteSearchOpenTemplate: string[];
|
|
22
|
+
export const siteSearchUsageTemplate: string[];
|
|
23
|
+
export const siteSearchClickTemplate: string[];
|
|
24
|
+
export const siteSearchCloseTemplate: string[];
|