Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@elastic/react-search-ui-views

Package Overview
Dependencies
Maintainers
68
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elastic/react-search-ui-views - npm Package Compare versions

Comparing version 1.21.5 to 1.22.0

2

lib/cjs/Autocomplete.d.ts
/// <reference types="react" />
import type { AutocompletedResult, AutocompletedSuggestion, AutocompletedSuggestions, AutocompleteResult, AutocompleteSuggestion } from "@elastic/search-ui";
export type SearchBoxAutocompleteViewProps = {
export declare type SearchBoxAutocompleteViewProps = {
allAutocompletedItemsCount: number;

@@ -5,0 +5,0 @@ autocompleteResults?: boolean | AutocompleteResult;

import React from "react";
import type { SearchContextState } from "@elastic/search-ui";
import { BaseContainerProps } from "./types";
export type ErrorBoundaryContainerContext = Pick<SearchContextState, "error">;
export type ErrorBoundaryViewProps = BaseContainerProps & ErrorBoundaryContainerContext;
export declare type ErrorBoundaryContainerContext = Pick<SearchContextState, "error">;
export declare type ErrorBoundaryViewProps = BaseContainerProps & ErrorBoundaryContainerContext;
declare function ErrorBoundary({ children, className, error, ...rest }: ErrorBoundaryViewProps & React.HTMLAttributes<HTMLDivElement>): JSX.Element;
export default ErrorBoundary;
import React from "react";
type FacetsProps = {
declare type FacetsProps = {
children: React.ReactNode;

@@ -4,0 +4,0 @@ className?: string;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {

@@ -10,0 +6,0 @@ if (k2 === undefined) k2 = k;

import React from "react";
import type { SearchContextState } from "@elastic/search-ui";
import { Rename, BaseContainerProps } from "./types";
export type PagingContainerContext = Pick<SearchContextState, "current" | "resultsPerPage" | "totalPages" | "setCurrent">;
export type PagingViewProps = Rename<BaseContainerProps & PagingContainerContext, {
export declare type PagingContainerContext = Pick<SearchContextState, "current" | "resultsPerPage" | "totalPages" | "setCurrent">;
export declare type PagingViewProps = Rename<BaseContainerProps & PagingContainerContext, {
setCurrent: "onChange";
}>;
export type PagingContainerProps = BaseContainerProps & PagingContainerContext & {
export declare type PagingContainerProps = BaseContainerProps & PagingContainerContext & {
view?: React.ComponentType<PagingViewProps>;

@@ -10,0 +10,0 @@ };

import type { SearchContextState } from "@elastic/search-ui";
import React from "react";
import { Rename, BaseContainerProps } from "./types";
export type PagingInfoContainerContext = Pick<SearchContextState, "pagingStart" | "pagingEnd" | "resultSearchTerm" | "totalResults">;
export type PagingInfoViewProps = Rename<BaseContainerProps & PagingInfoContainerContext, {
export declare type PagingInfoContainerContext = Pick<SearchContextState, "pagingStart" | "pagingEnd" | "resultSearchTerm" | "totalResults">;
export declare type PagingInfoViewProps = Rename<BaseContainerProps & PagingInfoContainerContext, {
pagingStart: "start";

@@ -10,3 +10,3 @@ resultSearchTerm: "searchTerm";

}>;
export type PagingInfoContainerProps = BaseContainerProps & PagingInfoContainerContext & {
export declare type PagingInfoContainerProps = BaseContainerProps & PagingInfoContainerContext & {
view?: React.ComponentType<PagingInfoViewProps>;

@@ -13,0 +13,0 @@ };

import React from "react";
import type { SearchContextState, SearchResult } from "@elastic/search-ui";
import { BaseContainerProps } from "./types";
export type ResultContainerContext = Pick<SearchContextState, "trackClickThrough">;
export type ResultContainerProps = BaseContainerProps & ResultContainerContext & {
export declare type ResultContainerContext = Pick<SearchContextState, "trackClickThrough">;
export declare type ResultContainerProps = BaseContainerProps & ResultContainerContext & {
view?: React.ComponentType<ResultViewProps>;

@@ -14,3 +14,3 @@ clickThroughTags?: string[];

};
export type ResultViewProps = BaseContainerProps & Pick<ResultContainerProps, "result" | "titleField" | "urlField" | "thumbnailField"> & {
export declare type ResultViewProps = BaseContainerProps & Pick<ResultContainerProps, "result" | "titleField" | "urlField" | "thumbnailField"> & {
key?: string;

@@ -17,0 +17,0 @@ onClickLink: () => void;

@@ -5,4 +5,4 @@ import type { SearchContextState, SearchResult } from "@elastic/search-ui";

import { ResultViewProps } from "./Result";
export type ResultsContainerContext = Pick<SearchContextState, "results">;
export type ResultsContainerProps = BaseContainerProps & ResultsContainerContext & {
export declare type ResultsContainerContext = Pick<SearchContextState, "results">;
export declare type ResultsContainerProps = BaseContainerProps & ResultsContainerContext & {
view?: React.ComponentType<ResultsViewProps>;

@@ -17,4 +17,4 @@ resultView?: React.ComponentType<ResultViewProps>;

};
export type ResultsViewProps = BaseContainerProps;
export declare type ResultsViewProps = BaseContainerProps;
declare function Results({ children, className, ...rest }: ResultsViewProps & React.HTMLAttributes<HTMLUListElement>): JSX.Element;
export default Results;
import type { SearchContextState } from "@elastic/search-ui";
import React from "react";
import { BaseContainerProps, Rename } from "./types";
export type ResultsPerPageContainerContext = Pick<SearchContextState, "resultsPerPage" | "setResultsPerPage">;
export type ResultsPerPageContainerProps = BaseContainerProps & ResultsPerPageContainerContext & {
export declare type ResultsPerPageContainerContext = Pick<SearchContextState, "resultsPerPage" | "setResultsPerPage">;
export declare type ResultsPerPageContainerProps = BaseContainerProps & ResultsPerPageContainerContext & {
view?: React.ComponentType<ResultsPerPageViewProps>;
options?: number[];
};
export type ResultsPerPageViewProps = BaseContainerProps & Pick<ResultsPerPageContainerProps, "options"> & Rename<ResultsPerPageContainerContext, {
export declare type ResultsPerPageViewProps = BaseContainerProps & Pick<ResultsPerPageContainerProps, "options"> & Rename<ResultsPerPageContainerContext, {
setResultsPerPage: "onChange";

@@ -11,0 +11,0 @@ resultsPerPage: "value";

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {

@@ -10,0 +6,0 @@ if (k2 === undefined) k2 = k;

import React, { FormEvent } from "react";
import type { AutocompleteResult, AutocompleteSuggestion, SearchContextState } from "@elastic/search-ui";
import { BaseContainerProps, SearchBoxAutocompleteViewProps, InputViewProps } from "./types";
export type SearchBoxContainerContext = Pick<SearchContextState, "autocompletedResults" | "autocompletedSuggestions" | "searchTerm" | "setSearchTerm" | "trackAutocompleteClickThrough" | "trackAutocompleteSuggestionClickThrough">;
export type SearchBoxContainerProps = BaseContainerProps & SearchBoxContainerContext & {
export declare type SearchBoxContainerContext = Pick<SearchContextState, "autocompletedResults" | "autocompletedSuggestions" | "searchTerm" | "setSearchTerm" | "trackAutocompleteClickThrough" | "trackAutocompleteSuggestionClickThrough">;
export declare type SearchBoxContainerProps = BaseContainerProps & SearchBoxContainerContext & {
view?: React.ComponentType<SearchBoxViewProps>;

@@ -19,3 +19,3 @@ autocompleteView?: React.ComponentType<SearchBoxAutocompleteViewProps>;

};
export type SearchBoxViewProps = BaseContainerProps & Pick<SearchBoxContainerProps, "autocompleteView" | "inputView" | "autocompleteSuggestions" | "autocompleteResults" | "autocompleteSuggestions" | "autocompletedResults" | "autocompletedSuggestions"> & {
export declare type SearchBoxViewProps = BaseContainerProps & Pick<SearchBoxContainerProps, "autocompleteView" | "inputView" | "autocompleteSuggestions" | "autocompleteResults" | "autocompleteSuggestions" | "autocompletedResults" | "autocompletedSuggestions"> & {
allAutocompletedItemsCount: number;

@@ -22,0 +22,0 @@ autocompletedSuggestionsCount: any;

/// <reference types="react" />
export type InputViewProps = {
export declare type InputViewProps = {
getAutocomplete: () => JSX.Element;

@@ -4,0 +4,0 @@ getButtonProps: (additionalProps?: any) => any;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {

@@ -10,0 +6,0 @@ if (k2 === undefined) k2 = k;

import type { SearchContextState } from "@elastic/search-ui";
import React from "react";
import { BaseContainerProps } from "./types";
export type SortingContainerContext = Pick<SearchContextState, "sortDirection" | "sortField" | "sortList" | "setSort">;
export type SortingViewProps = BaseContainerProps & Pick<SortingContainerProps, "label"> & {
export declare type SortingContainerContext = Pick<SearchContextState, "sortDirection" | "sortField" | "sortList" | "setSort">;
export declare type SortingViewProps = BaseContainerProps & Pick<SortingContainerProps, "label"> & {
onChange: (sortData?: any) => void;

@@ -13,3 +13,3 @@ options: {

};
export type SortingContainerProps = BaseContainerProps & SortingContainerContext & {
export declare type SortingContainerProps = BaseContainerProps & SortingContainerContext & {
view?: React.ComponentType<SortingViewProps>;

@@ -16,0 +16,0 @@ label?: string;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {

@@ -10,0 +6,0 @@ if (k2 === undefined) k2 = k;

@@ -17,3 +17,3 @@ /// <reference types="react" />

export type { SortingContainerContext, SortingContainerProps, SortingViewProps } from "../Sorting";
export type FacetViewProps = {
export declare type FacetViewProps = {
className?: string;

@@ -32,4 +32,4 @@ label: string;

};
export type FacetContainerContext = Pick<SearchContextState, "addFilter" | "removeFilter" | "setFilter" | "a11yNotify" | "filters" | "facets">;
export type FacetContainerProps = BaseContainerProps & {
export declare type FacetContainerContext = Pick<SearchContextState, "addFilter" | "removeFilter" | "setFilter" | "a11yNotify" | "filters" | "facets">;
export declare type FacetContainerProps = BaseContainerProps & {
filterType?: FilterType;

@@ -42,3 +42,3 @@ show?: number;

} & FacetContainerContext;
export type Rename<T, R extends {
export declare type Rename<T, R extends {
[K in keyof R]: K extends keyof T ? PropertyKey : "Error: key not in T";

@@ -45,0 +45,0 @@ }> = {

/// <reference types="react" />
import type { AutocompletedResult, AutocompletedSuggestion, AutocompletedSuggestions, AutocompleteResult, AutocompleteSuggestion } from "@elastic/search-ui";
export type SearchBoxAutocompleteViewProps = {
export declare type SearchBoxAutocompleteViewProps = {
allAutocompletedItemsCount: number;

@@ -5,0 +5,0 @@ autocompleteResults?: boolean | AutocompleteResult;

import React from "react";
import type { SearchContextState } from "@elastic/search-ui";
import { BaseContainerProps } from "./types";
export type ErrorBoundaryContainerContext = Pick<SearchContextState, "error">;
export type ErrorBoundaryViewProps = BaseContainerProps & ErrorBoundaryContainerContext;
export declare type ErrorBoundaryContainerContext = Pick<SearchContextState, "error">;
export declare type ErrorBoundaryViewProps = BaseContainerProps & ErrorBoundaryContainerContext;
declare function ErrorBoundary({ children, className, error, ...rest }: ErrorBoundaryViewProps & React.HTMLAttributes<HTMLDivElement>): JSX.Element;
export default ErrorBoundary;
import React from "react";
type FacetsProps = {
declare type FacetsProps = {
children: React.ReactNode;

@@ -4,0 +4,0 @@ className?: string;

import React from "react";
import type { SearchContextState } from "@elastic/search-ui";
import { Rename, BaseContainerProps } from "./types";
export type PagingContainerContext = Pick<SearchContextState, "current" | "resultsPerPage" | "totalPages" | "setCurrent">;
export type PagingViewProps = Rename<BaseContainerProps & PagingContainerContext, {
export declare type PagingContainerContext = Pick<SearchContextState, "current" | "resultsPerPage" | "totalPages" | "setCurrent">;
export declare type PagingViewProps = Rename<BaseContainerProps & PagingContainerContext, {
setCurrent: "onChange";
}>;
export type PagingContainerProps = BaseContainerProps & PagingContainerContext & {
export declare type PagingContainerProps = BaseContainerProps & PagingContainerContext & {
view?: React.ComponentType<PagingViewProps>;

@@ -10,0 +10,0 @@ };

import type { SearchContextState } from "@elastic/search-ui";
import React from "react";
import { Rename, BaseContainerProps } from "./types";
export type PagingInfoContainerContext = Pick<SearchContextState, "pagingStart" | "pagingEnd" | "resultSearchTerm" | "totalResults">;
export type PagingInfoViewProps = Rename<BaseContainerProps & PagingInfoContainerContext, {
export declare type PagingInfoContainerContext = Pick<SearchContextState, "pagingStart" | "pagingEnd" | "resultSearchTerm" | "totalResults">;
export declare type PagingInfoViewProps = Rename<BaseContainerProps & PagingInfoContainerContext, {
pagingStart: "start";

@@ -10,3 +10,3 @@ resultSearchTerm: "searchTerm";

}>;
export type PagingInfoContainerProps = BaseContainerProps & PagingInfoContainerContext & {
export declare type PagingInfoContainerProps = BaseContainerProps & PagingInfoContainerContext & {
view?: React.ComponentType<PagingInfoViewProps>;

@@ -13,0 +13,0 @@ };

import React from "react";
import type { SearchContextState, SearchResult } from "@elastic/search-ui";
import { BaseContainerProps } from "./types";
export type ResultContainerContext = Pick<SearchContextState, "trackClickThrough">;
export type ResultContainerProps = BaseContainerProps & ResultContainerContext & {
export declare type ResultContainerContext = Pick<SearchContextState, "trackClickThrough">;
export declare type ResultContainerProps = BaseContainerProps & ResultContainerContext & {
view?: React.ComponentType<ResultViewProps>;

@@ -14,3 +14,3 @@ clickThroughTags?: string[];

};
export type ResultViewProps = BaseContainerProps & Pick<ResultContainerProps, "result" | "titleField" | "urlField" | "thumbnailField"> & {
export declare type ResultViewProps = BaseContainerProps & Pick<ResultContainerProps, "result" | "titleField" | "urlField" | "thumbnailField"> & {
key?: string;

@@ -17,0 +17,0 @@ onClickLink: () => void;

@@ -5,4 +5,4 @@ import type { SearchContextState, SearchResult } from "@elastic/search-ui";

import { ResultViewProps } from "./Result";
export type ResultsContainerContext = Pick<SearchContextState, "results">;
export type ResultsContainerProps = BaseContainerProps & ResultsContainerContext & {
export declare type ResultsContainerContext = Pick<SearchContextState, "results">;
export declare type ResultsContainerProps = BaseContainerProps & ResultsContainerContext & {
view?: React.ComponentType<ResultsViewProps>;

@@ -17,4 +17,4 @@ resultView?: React.ComponentType<ResultViewProps>;

};
export type ResultsViewProps = BaseContainerProps;
export declare type ResultsViewProps = BaseContainerProps;
declare function Results({ children, className, ...rest }: ResultsViewProps & React.HTMLAttributes<HTMLUListElement>): JSX.Element;
export default Results;
import type { SearchContextState } from "@elastic/search-ui";
import React from "react";
import { BaseContainerProps, Rename } from "./types";
export type ResultsPerPageContainerContext = Pick<SearchContextState, "resultsPerPage" | "setResultsPerPage">;
export type ResultsPerPageContainerProps = BaseContainerProps & ResultsPerPageContainerContext & {
export declare type ResultsPerPageContainerContext = Pick<SearchContextState, "resultsPerPage" | "setResultsPerPage">;
export declare type ResultsPerPageContainerProps = BaseContainerProps & ResultsPerPageContainerContext & {
view?: React.ComponentType<ResultsPerPageViewProps>;
options?: number[];
};
export type ResultsPerPageViewProps = BaseContainerProps & Pick<ResultsPerPageContainerProps, "options"> & Rename<ResultsPerPageContainerContext, {
export declare type ResultsPerPageViewProps = BaseContainerProps & Pick<ResultsPerPageContainerProps, "options"> & Rename<ResultsPerPageContainerContext, {
setResultsPerPage: "onChange";

@@ -11,0 +11,0 @@ resultsPerPage: "value";

import React, { FormEvent } from "react";
import type { AutocompleteResult, AutocompleteSuggestion, SearchContextState } from "@elastic/search-ui";
import { BaseContainerProps, SearchBoxAutocompleteViewProps, InputViewProps } from "./types";
export type SearchBoxContainerContext = Pick<SearchContextState, "autocompletedResults" | "autocompletedSuggestions" | "searchTerm" | "setSearchTerm" | "trackAutocompleteClickThrough" | "trackAutocompleteSuggestionClickThrough">;
export type SearchBoxContainerProps = BaseContainerProps & SearchBoxContainerContext & {
export declare type SearchBoxContainerContext = Pick<SearchContextState, "autocompletedResults" | "autocompletedSuggestions" | "searchTerm" | "setSearchTerm" | "trackAutocompleteClickThrough" | "trackAutocompleteSuggestionClickThrough">;
export declare type SearchBoxContainerProps = BaseContainerProps & SearchBoxContainerContext & {
view?: React.ComponentType<SearchBoxViewProps>;

@@ -19,3 +19,3 @@ autocompleteView?: React.ComponentType<SearchBoxAutocompleteViewProps>;

};
export type SearchBoxViewProps = BaseContainerProps & Pick<SearchBoxContainerProps, "autocompleteView" | "inputView" | "autocompleteSuggestions" | "autocompleteResults" | "autocompleteSuggestions" | "autocompletedResults" | "autocompletedSuggestions"> & {
export declare type SearchBoxViewProps = BaseContainerProps & Pick<SearchBoxContainerProps, "autocompleteView" | "inputView" | "autocompleteSuggestions" | "autocompleteResults" | "autocompleteSuggestions" | "autocompletedResults" | "autocompletedSuggestions"> & {
allAutocompletedItemsCount: number;

@@ -22,0 +22,0 @@ autocompletedSuggestionsCount: any;

/// <reference types="react" />
export type InputViewProps = {
export declare type InputViewProps = {
getAutocomplete: () => JSX.Element;

@@ -4,0 +4,0 @@ getButtonProps: (additionalProps?: any) => any;

import type { SearchContextState } from "@elastic/search-ui";
import React from "react";
import { BaseContainerProps } from "./types";
export type SortingContainerContext = Pick<SearchContextState, "sortDirection" | "sortField" | "sortList" | "setSort">;
export type SortingViewProps = BaseContainerProps & Pick<SortingContainerProps, "label"> & {
export declare type SortingContainerContext = Pick<SearchContextState, "sortDirection" | "sortField" | "sortList" | "setSort">;
export declare type SortingViewProps = BaseContainerProps & Pick<SortingContainerProps, "label"> & {
onChange: (sortData?: any) => void;

@@ -13,3 +13,3 @@ options: {

};
export type SortingContainerProps = BaseContainerProps & SortingContainerContext & {
export declare type SortingContainerProps = BaseContainerProps & SortingContainerContext & {
view?: React.ComponentType<SortingViewProps>;

@@ -16,0 +16,0 @@ label?: string;

@@ -17,3 +17,3 @@ /// <reference types="react" />

export type { SortingContainerContext, SortingContainerProps, SortingViewProps } from "../Sorting";
export type FacetViewProps = {
export declare type FacetViewProps = {
className?: string;

@@ -32,4 +32,4 @@ label: string;

};
export type FacetContainerContext = Pick<SearchContextState, "addFilter" | "removeFilter" | "setFilter" | "a11yNotify" | "filters" | "facets">;
export type FacetContainerProps = BaseContainerProps & {
export declare type FacetContainerContext = Pick<SearchContextState, "addFilter" | "removeFilter" | "setFilter" | "a11yNotify" | "filters" | "facets">;
export declare type FacetContainerProps = BaseContainerProps & {
filterType?: FilterType;

@@ -42,3 +42,3 @@ show?: number;

} & FacetContainerContext;
export type Rename<T, R extends {
export declare type Rename<T, R extends {
[K in keyof R]: K extends keyof T ? PropertyKey : "Error: key not in T";

@@ -45,0 +45,0 @@ }> = {

{
"name": "@elastic/react-search-ui-views",
"version": "1.21.5",
"version": "1.22.0",
"description": "A collection of React UI components for building search experiences",

@@ -65,3 +65,3 @@ "homepage": "https://docs.elastic.co/search-ui",

"dependencies": {
"@elastic/search-ui": "1.21.5",
"@elastic/search-ui": "1.22.0",
"downshift": "^3.2.10",

@@ -81,3 +81,3 @@ "rc-pagination": "^4.0.4",

},
"gitHead": "94d8f2a2e70b98a6279b970ca0828a01cf01917c"
"gitHead": "5d226d90d4f69a79bee04d2ab83624b0b7165694"
}
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