@constructor-io/constructorio-ui-autocomplete 1.23.6 → 1.23.7
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/constructorio-ui-autocomplete-bundled.js +12 -13
- package/lib/cjs/hooks/useDownShift.js +1 -1
- package/lib/cjs/version.js +1 -1
- package/lib/mjs/hooks/useDownShift.js +1 -1
- package/lib/mjs/version.js +1 -1
- package/lib/types/components/Autocomplete/CioAutocompleteProvider.d.ts +2 -2
- package/lib/types/hooks/useCioAutocomplete.d.ts +2 -2
- package/lib/types/hooks/useSections.d.ts +1 -1
- package/lib/types/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -22,7 +22,7 @@ const useDownShift = ({ setQuery, items, onSubmit, cioClient, previousQuery = ''
|
|
|
22
22
|
}
|
|
23
23
|
// Autocomplete Select tracking
|
|
24
24
|
// Recommendation Select tracking
|
|
25
|
-
if (selectedItem.podId && ((_a = selectedItem.data) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
25
|
+
if (selectedItem.podId && ((_a = selectedItem.data) === null || _a === void 0 ? void 0 : _a.id) && selectedItem.strategy) {
|
|
26
26
|
cioClient === null || cioClient === void 0 ? void 0 : cioClient.tracker.trackRecommendationClick({
|
|
27
27
|
itemName: selectedItem.value,
|
|
28
28
|
itemId: selectedItem.data.id,
|
package/lib/cjs/version.js
CHANGED
|
@@ -19,7 +19,7 @@ const useDownShift = ({ setQuery, items, onSubmit, cioClient, previousQuery = ''
|
|
|
19
19
|
}
|
|
20
20
|
// Autocomplete Select tracking
|
|
21
21
|
// Recommendation Select tracking
|
|
22
|
-
if (selectedItem.podId && selectedItem.data?.id) {
|
|
22
|
+
if (selectedItem.podId && selectedItem.data?.id && selectedItem.strategy) {
|
|
23
23
|
cioClient?.tracker.trackRecommendationClick({
|
|
24
24
|
itemName: selectedItem.value,
|
|
25
25
|
itemId: selectedItem.data.id,
|
package/lib/mjs/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.23.
|
|
1
|
+
export default '1.23.7';
|
|
@@ -4,7 +4,7 @@ export declare const CioAutocompleteContext: React.Context<{
|
|
|
4
4
|
query: string;
|
|
5
5
|
sections: import("../../types").Section[];
|
|
6
6
|
totalNumResultsPerSection: Record<string, number>;
|
|
7
|
-
request: Partial<import("@constructor-io/constructorio-client-javascript
|
|
7
|
+
request: Partial<import("@constructor-io/constructorio-client-javascript").AutocompleteRequestType>;
|
|
8
8
|
featureToggles: {
|
|
9
9
|
featureDisplaySearchSuggestionImages: boolean;
|
|
10
10
|
featureDisplaySearchSuggestionResultCounts: boolean;
|
|
@@ -26,7 +26,7 @@ export declare const CioAutocompleteContext: React.Context<{
|
|
|
26
26
|
};
|
|
27
27
|
getSectionProps: (section: import("../../types").Section) => import("../../types").HTMLPropsWithCioDataAttributes<any>;
|
|
28
28
|
setQuery: React.Dispatch<React.SetStateAction<string>>;
|
|
29
|
-
cioClient: import("@constructor-io/constructorio-client-javascript
|
|
29
|
+
cioClient: import("@constructor-io/constructorio-client-javascript").Nullable<import("@constructor-io/constructorio-client-javascript/lib/types/constructorio")>;
|
|
30
30
|
autocompleteClassName: string;
|
|
31
31
|
selectedItem: import("../../types").Item;
|
|
32
32
|
advancedParameters: import("../../types").AdvancedParameters | undefined;
|
|
@@ -5,7 +5,7 @@ declare const useCioAutocomplete: (options: UseCioAutocompleteOptions) => {
|
|
|
5
5
|
query: string;
|
|
6
6
|
sections: Section[];
|
|
7
7
|
totalNumResultsPerSection: Record<string, number>;
|
|
8
|
-
request: Partial<import("@constructor-io/constructorio-client-javascript
|
|
8
|
+
request: Partial<import("@constructor-io/constructorio-client-javascript").AutocompleteRequestType>;
|
|
9
9
|
featureToggles: {
|
|
10
10
|
featureDisplaySearchSuggestionImages: boolean;
|
|
11
11
|
featureDisplaySearchSuggestionResultCounts: boolean;
|
|
@@ -27,7 +27,7 @@ declare const useCioAutocomplete: (options: UseCioAutocompleteOptions) => {
|
|
|
27
27
|
};
|
|
28
28
|
getSectionProps: (section: Section) => HTMLPropsWithCioDataAttributes<any>;
|
|
29
29
|
setQuery: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
30
|
-
cioClient: import("@constructor-io/constructorio-client-javascript
|
|
30
|
+
cioClient: import("@constructor-io/constructorio-client-javascript").Nullable<import("@constructor-io/constructorio-client-javascript/lib/types/constructorio")>;
|
|
31
31
|
autocompleteClassName: string;
|
|
32
32
|
selectedItem: import("../types").Item;
|
|
33
33
|
advancedParameters: import("../types").AdvancedParameters | undefined;
|
|
@@ -6,6 +6,6 @@ export default function useSections(query: string, cioClient: Nullable<Construct
|
|
|
6
6
|
activeSections: UserDefinedSection[];
|
|
7
7
|
activeSectionsWithData: Section[];
|
|
8
8
|
zeroStateActiveSections: number | false | undefined;
|
|
9
|
-
request: Partial<import("@constructor-io/constructorio-client-javascript
|
|
9
|
+
request: Partial<import("@constructor-io/constructorio-client-javascript").AutocompleteRequestType>;
|
|
10
10
|
totalNumResultsPerSection: Record<string, number>;
|
|
11
11
|
};
|
package/lib/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.23.
|
|
1
|
+
declare const _default: "1.23.7";
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructor-io/constructorio-ui-autocomplete",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.7",
|
|
4
4
|
"description": "Constructor.io Autocomplete UI library for web applications",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"webpack": "^5.75.0"
|
|
107
107
|
},
|
|
108
108
|
"peerDependencies": {
|
|
109
|
-
"@constructor-io/constructorio-client-javascript": "^2.
|
|
109
|
+
"@constructor-io/constructorio-client-javascript": "^2.51.0",
|
|
110
110
|
"downshift": "^7.2.1",
|
|
111
111
|
"react": ">=16.12.0",
|
|
112
112
|
"react-dom": ">=16.12.0",
|