@hitgrab/finder 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +10 -10
  2. package/package.json +10 -10
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react0 from "react";
2
2
  import { ElementType, PropsWithChildren, ReactElement, ReactNode, RefObject } from "react";
3
- import * as react_jsx_runtime7 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/core/types/rule-types.d.ts
6
6
  /**
@@ -423,7 +423,7 @@ interface FinderContentLoadingProps<FItem, FContext> {
423
423
  }
424
424
  declare function FinderContentLoading<FItem, FContext>({
425
425
  children: Component
426
- }: FinderContentLoadingProps<FItem, FContext>): react_jsx_runtime7.JSX.Element | Iterable<ReactNode> | null;
426
+ }: FinderContentLoadingProps<FItem, FContext>): react_jsx_runtime4.JSX.Element | Iterable<ReactNode> | null;
427
427
  //#endregion
428
428
  //#region src/react/components/finder-content-empty.d.ts
429
429
  interface FinderContentEmptyProps<FItem, FContext> {
@@ -431,7 +431,7 @@ interface FinderContentEmptyProps<FItem, FContext> {
431
431
  }
432
432
  declare function FinderContentEmpty<FItem = any, FContext = any>({
433
433
  children: Component
434
- }: FinderContentEmptyProps<FItem, FContext>): react_jsx_runtime7.JSX.Element | Iterable<ReactNode> | null;
434
+ }: FinderContentEmptyProps<FItem, FContext>): react_jsx_runtime4.JSX.Element | Iterable<ReactNode> | null;
435
435
  //#endregion
436
436
  //#region src/react/components/finder-content-no-matches.d.ts
437
437
  interface FinderContentNoMatchesProps<FItem, FContext> {
@@ -439,7 +439,7 @@ interface FinderContentNoMatchesProps<FItem, FContext> {
439
439
  }
440
440
  declare function FinderContentNoMatches<FItem = any, FContext = any>({
441
441
  children: Component
442
- }: FinderContentNoMatchesProps<FItem, FContext>): react_jsx_runtime7.JSX.Element | Iterable<ReactNode> | null;
442
+ }: FinderContentNoMatchesProps<FItem, FContext>): react_jsx_runtime4.JSX.Element | Iterable<ReactNode> | null;
443
443
  //#endregion
444
444
  //#region src/react/components/finder-content-items.d.ts
445
445
  interface FinderContentItemsProps<FItem, FContext> {
@@ -447,7 +447,7 @@ interface FinderContentItemsProps<FItem, FContext> {
447
447
  }
448
448
  declare function FinderContentItems<FItem = any, FContext = any>({
449
449
  children: Component
450
- }: FinderContentItemsProps<FItem, FContext>): react_jsx_runtime7.JSX.Element | Iterable<ReactNode> | null;
450
+ }: FinderContentItemsProps<FItem, FContext>): react_jsx_runtime4.JSX.Element | Iterable<ReactNode> | null;
451
451
  //#endregion
452
452
  //#region src/react/components/finder-content-groups.d.ts
453
453
  interface FinderContentGroupsProps<FItem, FContext> {
@@ -455,7 +455,7 @@ interface FinderContentGroupsProps<FItem, FContext> {
455
455
  }
456
456
  declare function FinderContentGroups<FItem = any, FContext = any>({
457
457
  children: Component
458
- }: FinderContentGroupsProps<FItem, FContext>): react_jsx_runtime7.JSX.Element | Iterable<ReactNode> | null;
458
+ }: FinderContentGroupsProps<FItem, FContext>): react_jsx_runtime4.JSX.Element | Iterable<ReactNode> | null;
459
459
  //#endregion
460
460
  //#region src/react/components/finder-content.d.ts
461
461
  interface FinderContentContainerProps<FItem, FContext> {
@@ -469,7 +469,7 @@ interface FinderContentContainerProps<FItem, FContext> {
469
469
  }
470
470
  declare function FinderContent<FItem = any, FContext = any>({
471
471
  children: renderProps
472
- }: FinderContentContainerProps<FItem, FContext>): (react_jsx_runtime7.JSX.Element | undefined)[];
472
+ }: FinderContentContainerProps<FItem, FContext>): (react_jsx_runtime4.JSX.Element | undefined)[];
473
473
  declare namespace FinderContent {
474
474
  var Loading: typeof FinderContentLoading;
475
475
  var Empty: typeof FinderContentEmpty;
@@ -488,7 +488,7 @@ declare function FinderSearchTermHaystack({
488
488
  Match,
489
489
  Miss,
490
490
  children: haystack
491
- }: FinderSearchTermHaystackProps): string | react_jsx_runtime7.JSX.Element;
491
+ }: FinderSearchTermHaystackProps): string | react_jsx_runtime4.JSX.Element;
492
492
  //#endregion
493
493
  //#region src/react/components/finder.d.ts
494
494
  declare function Finder<FItem = any, FContext = any>({
@@ -514,7 +514,7 @@ declare function Finder<FItem = any, FContext = any>({
514
514
  onChange,
515
515
  controllerRef,
516
516
  children
517
- }: FinderProps<FItem, FContext>): react_jsx_runtime7.JSX.Element;
517
+ }: FinderProps<FItem, FContext>): react_jsx_runtime4.JSX.Element;
518
518
  declare namespace Finder {
519
519
  var Content: typeof FinderContent;
520
520
  var SearchTermHaystack: typeof FinderSearchTermHaystack;
@@ -538,6 +538,6 @@ declare function StringMatch({
538
538
  haystack,
539
539
  Match,
540
540
  Miss
541
- }: StringMatchProps): string | (string | react_jsx_runtime7.JSX.Element)[];
541
+ }: StringMatchProps): string | (string | react_jsx_runtime4.JSX.Element)[];
542
542
  //#endregion
543
543
  export { type AnyFilterRuleDefinition, type FilterOption, type FilterRuleDefinition, Finder, type FinderChangeEvent, type FinderConstructorOptions, type FinderContentProps, type FinderEvent, type FinderFirstUserInteractionEvent, type FinderInitEvent, type FinderProps, type FinderReadyEvent, type FinderResultGroup, type GroupByRuleDefinition, type RuleDefinition, type RuleEffect, type SearchEffect, type SearchRuleDefinition, type SortByRuleDefinition, type SortDirection, StringMatch, type StringMatchSegmentProps, filterRule, finderRuleset, groupByRule, ruleEffect, searchEffect, searchRule, sortByRule, transformFilterToBoolean, transformFilterToMultiple, transformFilterToSingleValue, useFinder, useFinderRef };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitgrab/finder",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Effortless data manipulation with static rules.",
5
5
  "type": "module",
6
6
  "files": [
@@ -43,26 +43,26 @@
43
43
  "devDependencies": {
44
44
  "@eslint/js": "^9.36.0",
45
45
  "@testing-library/dom": "^10.4.1",
46
- "@testing-library/react": "^16.3.0",
47
46
  "@testing-library/jest-dom": "^6.9.1",
47
+ "@testing-library/react": "^16.3.0",
48
48
  "@types/lodash": "^4.17.16",
49
49
  "@types/react": "^19.1.3",
50
50
  "@vitejs/plugin-react": "^4.3.2",
51
51
  "eslint": "^9.36.0",
52
52
  "eslint-plugin-react": "^7.37.5",
53
53
  "eslint-plugin-react-hooks": "^5.2.0",
54
- "happy-dom": "^20.0.10",
55
- "prettier": "^3.6.2",
56
- "tsdown": "^0.16.1",
54
+ "happy-dom": "^20.8.9",
55
+ "prettier": "^3.8.1",
56
+ "tsdown": "^0.16.8",
57
57
  "typescript": "^5.9.3",
58
- "typescript-eslint": "^8.46.1",
59
- "vite": "^7.1.9",
58
+ "typescript-eslint": "^8.58.0",
59
+ "vite": "^7.3.2",
60
60
  "vite-plugin-checker": "^0.11.0",
61
61
  "vitest": "^3.2.4"
62
62
  },
63
63
  "peerDependencies": {
64
- "lodash": "^4.17.21",
65
- "react": ">=18",
66
- "react-dom": ">=18"
64
+ "lodash": "4.x",
65
+ "react": ">=18.x",
66
+ "react-dom": ">=18.x"
67
67
  }
68
68
  }