New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@constructor-io/constructorio-ui-autocomplete

Package Overview
Dependencies
Maintainers
0
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@constructor-io/constructorio-ui-autocomplete - npm Package Compare versions

Comparing version 1.23.18 to 1.23.19

lib/cjs/hooks/useSections/index.js

2

lib/cjs/hooks/useCioAutocomplete.js

@@ -111,3 +111,3 @@ "use strict";

try {
if ((advancedParameters === null || advancedParameters === void 0 ? void 0 : advancedParameters.fetchZeroStateOnFocus) && (items === null || items === void 0 ? void 0 : items.length) === 0) {
if (advancedParameters === null || advancedParameters === void 0 ? void 0 : advancedParameters.fetchZeroStateOnFocus) {
fetchRecommendationResults();

@@ -114,0 +114,0 @@ }

@@ -147,5 +147,5 @@ "use strict";

exports.getCioClient = getCioClient;
const getActiveSectionsWithData = (activeSections, sectionResults, sectionsRefs) => {
const getActiveSectionsWithData = (activeSections, sectionsResults, sectionsRefs) => {
const activeSectionsWithData = [];
activeSections === null || activeSections === void 0 ? void 0 : activeSections.forEach((sectionConfig, index) => {
const getSectionData = (sectionConfig) => {
const { type } = sectionConfig;

@@ -155,3 +155,3 @@ let sectionData;

case 'recommendations':
sectionData = sectionResults[sectionConfig.podId];
sectionData = sectionsResults[sectionConfig.podId];
break;

@@ -167,4 +167,8 @@ case 'custom':

// Autocomplete
sectionData = sectionResults[sectionConfig.indexSectionName];
sectionData = sectionsResults[sectionConfig.indexSectionName];
}
return sectionData;
};
activeSections === null || activeSections === void 0 ? void 0 : activeSections.forEach((sectionConfig, index) => {
const sectionData = getSectionData(sectionConfig);
if (Array.isArray(sectionData)) {

@@ -171,0 +175,0 @@ const section = Object.assign(Object.assign({}, sectionConfig), { data: sectionData });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = '1.23.18';
exports.default = '1.23.19';

@@ -120,3 +120,3 @@ 'use client';

try {
if (advancedParameters?.fetchZeroStateOnFocus && items?.length === 0) {
if (advancedParameters?.fetchZeroStateOnFocus) {
fetchRecommendationResults();

@@ -123,0 +123,0 @@ }

@@ -133,5 +133,5 @@ import ConstructorIOClient from '@constructor-io/constructorio-client-javascript';

};
export const getActiveSectionsWithData = (activeSections, sectionResults, sectionsRefs) => {
export const getActiveSectionsWithData = (activeSections, sectionsResults, sectionsRefs) => {
const activeSectionsWithData = [];
activeSections?.forEach((sectionConfig, index) => {
const getSectionData = (sectionConfig) => {
const { type } = sectionConfig;

@@ -141,3 +141,3 @@ let sectionData;

case 'recommendations':
sectionData = sectionResults[sectionConfig.podId];
sectionData = sectionsResults[sectionConfig.podId];
break;

@@ -153,4 +153,8 @@ case 'custom':

// Autocomplete
sectionData = sectionResults[sectionConfig.indexSectionName];
sectionData = sectionsResults[sectionConfig.indexSectionName];
}
return sectionData;
};
activeSections?.forEach((sectionConfig, index) => {
const sectionData = getSectionData(sectionConfig);
if (Array.isArray(sectionData)) {

@@ -157,0 +161,0 @@ const section = {

@@ -1,1 +0,1 @@

export default '1.23.18';
export default '1.23.19';

@@ -40,3 +40,3 @@ import ConstructorIOClient from '@constructor-io/constructorio-client-javascript';

export declare const getCioClient: (apiKey?: string, cioJsClientOptions?: ConstructorClientOptions) => ConstructorIOClient | null;
export declare const getActiveSectionsWithData: (activeSections: UserDefinedSection[], sectionResults: SectionsData, sectionsRefs: React.MutableRefObject<React.RefObject<HTMLLIElement>[]>) => Section[];
export declare const getActiveSectionsWithData: (activeSections: UserDefinedSection[], sectionsResults: SectionsData, sectionsRefs: React.MutableRefObject<React.RefObject<HTMLLIElement>[]>) => Section[];
export declare const escapeRegExp: (string: string) => string;

@@ -43,0 +43,0 @@ export declare const trackRecommendationView: (target: HTMLElement, activeSectionsWithData: Section[], cioClient: Nullable<ConstructorIOClient>) => void;

@@ -1,2 +0,2 @@

declare const _default: "1.23.18";
declare const _default: "1.23.19";
export default _default;
{
"name": "@constructor-io/constructorio-ui-autocomplete",
"version": "1.23.18",
"version": "1.23.19",
"description": "Constructor.io Autocomplete UI library for web applications",

@@ -5,0 +5,0 @@ "main": "lib/cjs/index.js",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc