@hitgrab/finder 0.1.21-alpha → 0.1.22-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.
Files changed (2) hide show
  1. package/dist/index.d.mts +10 -10
  2. package/package.json +3 -5
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_runtime4 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/core/types/rule-types.d.ts
6
6
  /**
@@ -420,7 +420,7 @@ interface FinderContentLoadingProps<FItem, FContext> {
420
420
  }
421
421
  declare function FinderContentLoading<FItem, FContext>({
422
422
  children: Component
423
- }: FinderContentLoadingProps<FItem, FContext>): react_jsx_runtime4.JSX.Element | Iterable<ReactNode> | null;
423
+ }: FinderContentLoadingProps<FItem, FContext>): react_jsx_runtime3.JSX.Element | Iterable<ReactNode> | null;
424
424
  //#endregion
425
425
  //#region src/react/components/finder-content-empty.d.ts
426
426
  interface FinderContentEmptyProps<FItem, FContext> {
@@ -428,7 +428,7 @@ interface FinderContentEmptyProps<FItem, FContext> {
428
428
  }
429
429
  declare function FinderContentEmpty<FItem = any, FContext = any>({
430
430
  children: Component
431
- }: FinderContentEmptyProps<FItem, FContext>): react_jsx_runtime4.JSX.Element | Iterable<ReactNode> | null;
431
+ }: FinderContentEmptyProps<FItem, FContext>): react_jsx_runtime3.JSX.Element | Iterable<ReactNode> | null;
432
432
  //#endregion
433
433
  //#region src/react/components/finder-content-no-matches.d.ts
434
434
  interface FinderContentNoMatchesProps<FItem, FContext> {
@@ -436,7 +436,7 @@ interface FinderContentNoMatchesProps<FItem, FContext> {
436
436
  }
437
437
  declare function FinderContentNoMatches<FItem = any, FContext = any>({
438
438
  children: Component
439
- }: FinderContentNoMatchesProps<FItem, FContext>): react_jsx_runtime4.JSX.Element | Iterable<ReactNode> | null;
439
+ }: FinderContentNoMatchesProps<FItem, FContext>): react_jsx_runtime3.JSX.Element | Iterable<ReactNode> | null;
440
440
  //#endregion
441
441
  //#region src/react/components/finder-content-items.d.ts
442
442
  interface FinderContentItemsProps<FItem, FContext> {
@@ -444,7 +444,7 @@ interface FinderContentItemsProps<FItem, FContext> {
444
444
  }
445
445
  declare function FinderContentItems<FItem = any, FContext = any>({
446
446
  children: Component
447
- }: FinderContentItemsProps<FItem, FContext>): react_jsx_runtime4.JSX.Element | Iterable<ReactNode> | null;
447
+ }: FinderContentItemsProps<FItem, FContext>): react_jsx_runtime3.JSX.Element | Iterable<ReactNode> | null;
448
448
  //#endregion
449
449
  //#region src/react/components/finder-content-groups.d.ts
450
450
  interface FinderContentGroupsProps<FItem, FContext> {
@@ -452,7 +452,7 @@ interface FinderContentGroupsProps<FItem, FContext> {
452
452
  }
453
453
  declare function FinderContentGroups<FItem = any, FContext = any>({
454
454
  children: Component
455
- }: FinderContentGroupsProps<FItem, FContext>): react_jsx_runtime4.JSX.Element | Iterable<ReactNode> | null;
455
+ }: FinderContentGroupsProps<FItem, FContext>): react_jsx_runtime3.JSX.Element | Iterable<ReactNode> | null;
456
456
  //#endregion
457
457
  //#region src/react/components/finder-content.d.ts
458
458
  interface FinderContentContainerProps<FItem, FContext> {
@@ -466,7 +466,7 @@ interface FinderContentContainerProps<FItem, FContext> {
466
466
  }
467
467
  declare function FinderContent<FItem = any, FContext = any>({
468
468
  children: renderProps
469
- }: FinderContentContainerProps<FItem, FContext>): (react_jsx_runtime4.JSX.Element | undefined)[];
469
+ }: FinderContentContainerProps<FItem, FContext>): (react_jsx_runtime3.JSX.Element | undefined)[];
470
470
  declare namespace FinderContent {
471
471
  var Loading: typeof FinderContentLoading;
472
472
  var Empty: typeof FinderContentEmpty;
@@ -485,7 +485,7 @@ declare function FinderSearchTermHaystack({
485
485
  Match,
486
486
  Miss,
487
487
  children: haystack
488
- }: FinderSearchTermHaystackProps): string | react_jsx_runtime4.JSX.Element;
488
+ }: FinderSearchTermHaystackProps): string | react_jsx_runtime3.JSX.Element;
489
489
  //#endregion
490
490
  //#region src/react/components/finder.d.ts
491
491
  declare function Finder<FItem = any, FContext = any>({
@@ -511,7 +511,7 @@ declare function Finder<FItem = any, FContext = any>({
511
511
  onChange,
512
512
  controllerRef,
513
513
  children
514
- }: FinderProps<FItem, FContext>): react_jsx_runtime4.JSX.Element;
514
+ }: FinderProps<FItem, FContext>): react_jsx_runtime3.JSX.Element;
515
515
  declare namespace Finder {
516
516
  var Content: typeof FinderContent;
517
517
  var SearchTermHaystack: typeof FinderSearchTermHaystack;
@@ -535,6 +535,6 @@ declare function StringMatch({
535
535
  haystack,
536
536
  Match,
537
537
  Miss
538
- }: StringMatchProps): string | (string | react_jsx_runtime4.JSX.Element)[];
538
+ }: StringMatchProps): string | (string | react_jsx_runtime3.JSX.Element)[];
539
539
  //#endregion
540
540
  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": "0.1.21-alpha",
3
+ "version": "0.1.22-alpha",
4
4
  "description": "Effortless data manipulation with static rules.",
5
5
  "type": "module",
6
6
  "files": [
@@ -44,12 +44,14 @@
44
44
  "@eslint/js": "^9.36.0",
45
45
  "@testing-library/dom": "^10.4.1",
46
46
  "@testing-library/react": "^16.3.0",
47
+ "@testing-library/jest-dom": "^6.9.1",
47
48
  "@types/lodash": "^4.17.16",
48
49
  "@types/react": "^19.1.3",
49
50
  "@vitejs/plugin-react": "^4.3.2",
50
51
  "eslint": "^9.36.0",
51
52
  "eslint-plugin-react": "^7.37.5",
52
53
  "eslint-plugin-react-hooks": "^5.2.0",
54
+ "happy-dom": "^20.0.10",
53
55
  "prettier": "^3.6.2",
54
56
  "tsdown": "^0.16.1",
55
57
  "typescript": "^5.9.3",
@@ -62,9 +64,5 @@
62
64
  "lodash": "^4.17.21",
63
65
  "react": ">=18",
64
66
  "react-dom": ">=18"
65
- },
66
- "dependencies": {
67
- "@testing-library/jest-dom": "^6.9.1",
68
- "happy-dom": "^20.0.10"
69
67
  }
70
68
  }