@react-querybuilder/antd 8.8.0 → 8.8.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.
@@ -2,8 +2,6 @@ import { Button } from "antd";
2
2
  import type { ComponentPropsWithoutRef } from "react";
3
3
  import * as React from "react";
4
4
  import type { ActionWithRulesProps } from "react-querybuilder";
5
- // TODO: This may be unnecessary. Find out if there's a way to allow
6
- // `data-${string}` index keys without breaking other type contraints.
7
5
  type RemoveDataIndexKeys<T> = { [K in keyof T as `data-${string}` extends K ? never : K] : T[K] };
8
6
  /**
9
7
  * @group Props
@@ -5,7 +5,6 @@ import type { DragHandleProps } from "react-querybuilder";
5
5
  /**
6
6
  * @group Props
7
7
  */
8
- // oxlint-disable-next-line typescript/no-explicit-any
9
8
  export type AntDDragHandleProps = DragHandleProps & {
10
9
  label?: any;
11
10
  } & ComponentPropsWithRef<typeof HolderOutlined>;
@@ -5,7 +5,6 @@
5
5
  */
6
6
  import type { Dayjs } from "dayjs";
7
7
  type GenerateConfig<DateType> = {
8
- // Get
9
8
  getWeekDay: (value: DateType) => number;
10
9
  getMillisecond: (value: DateType) => number;
11
10
  getSecond: (value: DateType) => number;
@@ -17,7 +16,6 @@ type GenerateConfig<DateType> = {
17
16
  getNow: () => DateType;
18
17
  getFixedDate: (fixed: string) => DateType;
19
18
  getEndDate: (value: DateType) => DateType;
20
- // Set
21
19
  addYear: (value: DateType, diff: number) => DateType;
22
20
  addMonth: (value: DateType, diff: number) => DateType;
23
21
  addDate: (value: DateType, diff: number) => DateType;
@@ -28,7 +26,6 @@ type GenerateConfig<DateType> = {
28
26
  setMinute: (value: DateType, minute: number) => DateType;
29
27
  setSecond: (value: DateType, second: number) => DateType;
30
28
  setMillisecond: (value: DateType, millisecond: number) => DateType;
31
- // Compare
32
29
  isAfter: (date1: DateType, date2: DateType) => boolean;
33
30
  isValidate: (date: DateType) => boolean;
34
31
  locale: {
@@ -2,8 +2,6 @@ import { Button } from "antd";
2
2
  import type { ComponentPropsWithoutRef } from "react";
3
3
  import * as React from "react";
4
4
  import type { ActionWithRulesProps } from "react-querybuilder";
5
- // TODO: This may be unnecessary. Find out if there's a way to allow
6
- // `data-${string}` index keys without breaking other type contraints.
7
5
  type RemoveDataIndexKeys<T> = { [K in keyof T as `data-${string}` extends K ? never : K] : T[K] };
8
6
  /**
9
7
  * @group Props
@@ -5,7 +5,6 @@ import type { DragHandleProps } from "react-querybuilder";
5
5
  /**
6
6
  * @group Props
7
7
  */
8
- // oxlint-disable-next-line typescript/no-explicit-any
9
8
  export type AntDDragHandleProps = DragHandleProps & {
10
9
  label?: any;
11
10
  } & ComponentPropsWithRef<typeof HolderOutlined>;
@@ -5,7 +5,6 @@
5
5
  */
6
6
  import type { Dayjs } from "dayjs";
7
7
  type GenerateConfig<DateType> = {
8
- // Get
9
8
  getWeekDay: (value: DateType) => number;
10
9
  getMillisecond: (value: DateType) => number;
11
10
  getSecond: (value: DateType) => number;
@@ -17,7 +16,6 @@ type GenerateConfig<DateType> = {
17
16
  getNow: () => DateType;
18
17
  getFixedDate: (fixed: string) => DateType;
19
18
  getEndDate: (value: DateType) => DateType;
20
- // Set
21
19
  addYear: (value: DateType, diff: number) => DateType;
22
20
  addMonth: (value: DateType, diff: number) => DateType;
23
21
  addDate: (value: DateType, diff: number) => DateType;
@@ -28,7 +26,6 @@ type GenerateConfig<DateType> = {
28
26
  setMinute: (value: DateType, minute: number) => DateType;
29
27
  setSecond: (value: DateType, second: number) => DateType;
30
28
  setMillisecond: (value: DateType, millisecond: number) => DateType;
31
- // Compare
32
29
  isAfter: (date1: DateType, date2: DateType) => boolean;
33
30
  isValidate: (date: DateType) => boolean;
34
31
  locale: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@react-querybuilder/antd",
3
3
  "description": "Custom Ant Design components for react-querybuilder",
4
- "version": "8.8.0",
4
+ "version": "8.8.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -58,21 +58,21 @@
58
58
  "@testing-library/react": "^16.3.0",
59
59
  "@types/react": "^19.1.8",
60
60
  "@vitejs/plugin-react": "^4.6.0",
61
- "antd": "^5.26.3",
61
+ "antd": "^5.26.4",
62
62
  "dayjs": "^1.11.13",
63
63
  "react": "^19.1.0",
64
64
  "react-dom": "^19.1.0",
65
- "react-querybuilder": "8.8.0",
65
+ "react-querybuilder": "8.8.1",
66
66
  "rollup-plugin-visualizer": "^6.0.3",
67
67
  "typescript": "^5.8.3",
68
- "vite": "^7.0.2"
68
+ "vite": "^7.0.3"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "@ant-design/icons": ">=5",
72
72
  "antd": ">=5.11.0",
73
73
  "dayjs": ">=1",
74
74
  "react": ">=18",
75
- "react-querybuilder": "8.8.0"
75
+ "react-querybuilder": "8.8.1"
76
76
  },
77
- "gitHead": "589e5db7bdc8256169653b23c1f2706468f2b632"
77
+ "gitHead": "54ecd781d760eec8a7852114b77d6c57c9030300"
78
78
  }