@hitgrab/finder 0.1.12-alpha → 0.1.14-alpha
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/core/finder-core-implementation.d.ts +1 -1
- package/dist/core/finder-core.d.ts +2 -1
- package/dist/core/types/rule-types.d.ts +0 -4
- package/dist/index.d.ts +1 -2
- package/dist/index.js +3176 -2872
- package/dist/index.umd.cjs +31 -23
- package/dist/react/components/finder-content-empty.d.ts +5 -4
- package/dist/react/components/finder-content-groups.d.ts +5 -5
- package/dist/react/components/finder-content-items.d.ts +5 -5
- package/dist/react/components/finder-content-loading.d.ts +5 -4
- package/dist/react/components/finder-content-no-matches.d.ts +5 -4
- package/dist/react/components/finder-content.d.ts +9 -9
- package/dist/react/providers/finder-core-context.d.ts +2 -2
- package/dist/react/types/react-types.d.ts +25 -11
- package/package.json +13 -15
|
@@ -7,7 +7,7 @@ import { FinderCore } from "./finder-core";
|
|
|
7
7
|
import { FinderConstructorOptions, SnapshotSerializedMixins, EventCallback } from "./types/core-types";
|
|
8
8
|
import { FinderEventName } from "./types/event-types";
|
|
9
9
|
import { FinderRule } from "./types/rule-types";
|
|
10
|
-
declare class FinderCoreImplementation<FItem, FContext> {
|
|
10
|
+
declare class FinderCoreImplementation<FItem, FContext = any> {
|
|
11
11
|
#private;
|
|
12
12
|
isReady: boolean;
|
|
13
13
|
isLoading: boolean;
|
|
@@ -5,7 +5,7 @@ import { FinderRule } from "./types/rule-types";
|
|
|
5
5
|
*/
|
|
6
6
|
declare class FinderCore<FItem = any, FContext = any> {
|
|
7
7
|
#private;
|
|
8
|
-
constructor(items: FItem[] | null | undefined, options: FinderConstructorOptions<FItem>);
|
|
8
|
+
constructor(items: FItem[] | null | undefined, options: FinderConstructorOptions<FItem, FContext>);
|
|
9
9
|
get items(): FItem[];
|
|
10
10
|
get context(): FContext;
|
|
11
11
|
get isReady(): boolean;
|
|
@@ -26,6 +26,7 @@ declare class FinderCore<FItem = any, FContext = any> {
|
|
|
26
26
|
*/
|
|
27
27
|
get matches(): import("./types/core-types").ResultSnapshot<FItem>;
|
|
28
28
|
get search(): {
|
|
29
|
+
rule: import("..").SearchRule<unknown, any> | undefined;
|
|
29
30
|
searchTerm: string;
|
|
30
31
|
hasSearchTerm: boolean;
|
|
31
32
|
hasSearchRule: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export { finderRuleset, searchRule, filterRule, sortByRule, groupByRule, ruleEff
|
|
|
3
3
|
export type { FinderRule, SearchRule, SortByRule, GroupByRule, FilterRule, HydratedFilterRule, FilterRuleUnion, FilterOption } from "./core/types/rule-types";
|
|
4
4
|
export type { RuleEffect, SearchEffect } from "./core/types/effect-types";
|
|
5
5
|
export type { FinderEvent, FinderInitEvent, FinderReadyEvent, FinderFirstUserInteractionEvent, FinderChangeEvent } from "./core/types/event-types";
|
|
6
|
-
export type { StringMatchSegment } from "./core/types/string-match-types";
|
|
7
6
|
/**
|
|
8
7
|
* React hooks and components
|
|
9
8
|
*/
|
|
@@ -11,4 +10,4 @@ export { useFinder } from "./react/hooks/use-finder";
|
|
|
11
10
|
export { Finder } from "./react/components/finder";
|
|
12
11
|
export { useFinderRef } from "./react/hooks/use-finder-ref";
|
|
13
12
|
export { StringMatch } from "./react/components/string-match";
|
|
14
|
-
export type { FinderProps, FinderContentProps,
|
|
13
|
+
export type { FinderProps, FinderContentProps, StringMatchSegmentProps } from "./react/types/react-types";
|