@constructor-io/constructorio-ui-autocomplete 1.7.0 → 1.7.2
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/README.md +3 -3
- package/dist/constructorio-ui-autocomplete-bundled.js +10 -10
- package/lib/cjs/constants.js +1 -1
- package/lib/cjs/hooks/useCioAutocomplete.js +20 -45
- package/lib/cjs/hooks/useConsoleErrors.js +16 -0
- package/lib/cjs/hooks/useDebouncedFetchSections.js +18 -12
- package/lib/cjs/hooks/useDownShift.js +1 -8
- package/lib/cjs/hooks/useFetchRecommendationPod.js +6 -1
- package/lib/cjs/hooks/useItems.js +12 -0
- package/lib/cjs/hooks/useSections.js +36 -0
- package/lib/cjs/utils.js +36 -17
- package/lib/mjs/constants.js +1 -1
- package/lib/mjs/hooks/useCioAutocomplete.js +20 -45
- package/lib/mjs/hooks/useConsoleErrors.js +14 -0
- package/lib/mjs/hooks/useDebouncedFetchSections.js +18 -14
- package/lib/mjs/hooks/useDownShift.js +1 -7
- package/lib/mjs/hooks/useFetchRecommendationPod.js +6 -1
- package/lib/mjs/hooks/useItems.js +10 -0
- package/lib/mjs/hooks/useSections.js +32 -0
- package/lib/mjs/utils.js +34 -15
- package/lib/types/constants.d.ts +1 -1
- package/lib/types/hooks/useCioAutocomplete.d.ts +3 -3
- package/lib/types/hooks/useConsoleErrors.d.ts +2 -0
- package/lib/types/hooks/useDownShift.d.ts +0 -1
- package/lib/types/hooks/useItems.d.ts +3 -0
- package/lib/types/hooks/useSections.d.ts +8 -0
- package/lib/types/types.d.ts +1 -1
- package/lib/types/utils.d.ts +6 -4
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ import { CioAutocomplete } from '@constructor-io/constructorio-ui-autocomplete';
|
|
|
29
29
|
function YourComponent() {
|
|
30
30
|
return (
|
|
31
31
|
<div>
|
|
32
|
-
<CioAutocomplete apiKey="
|
|
32
|
+
<CioAutocomplete apiKey="key_M57QS8SMPdLdLx4x" />
|
|
33
33
|
</div>
|
|
34
34
|
);
|
|
35
35
|
```
|
|
@@ -50,8 +50,8 @@ An `apiKey` or `cioJsClient` must be passed to the `useCioAutocomplete` hook alo
|
|
|
50
50
|
import { useCioAutocomplete } from '@constructor-io/constructorio-ui-autocomplete';
|
|
51
51
|
|
|
52
52
|
const args = {
|
|
53
|
-
apiKey:
|
|
54
|
-
onSubmit: (submitEvent) => console.dir(submitEvent)
|
|
53
|
+
"apiKey": "key_M57QS8SMPdLdLx4x",
|
|
54
|
+
"onSubmit": (submitEvent) => console.dir(submitEvent)
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
function YourComponent() {
|