Skip to content

Commit 9aec8c7

Browse files
authored
Merge pull request #153 from icflorescu/next
Implement touch events, update dev deps
2 parents 3b60b76 + 970b192 commit 9aec8c7

File tree

4 files changed

+1468
-1512
lines changed

4 files changed

+1468
-1512
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
The following is a list of notable changes to the Mantine ContextMenu component.
44
Minor versions that are not listed in the changelog are minor bug fixes and small internal improvements or refactorings.
55

6+
## 7.7.0 (2024-04-04)
7+
8+
- Implement iOS touch events (thanks to [Juno Nguyen](https://github.com/JunoNgx), see [#152](https://github.com/icflorescu/mantine-contextmenu/pull/152))
9+
- Update dev dependencies to ensure compatibility with Mantine 7.7.x
10+
611
## 7.6.2 (2024-03-05)
712

813
- Update dev dependencies to ensure compatibility with Mantine 7.6.1

app/config.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
import { MantineColor } from '@mantine/core';
22
import {
3+
Icon,
34
IconAdjustments,
45
IconBrandCss3,
56
IconHeartHandshake,
67
IconHome,
78
IconList,
9+
IconProps,
810
IconQuestionMark,
911
IconRocket,
1012
IconThumbUpFilled,
11-
TablerIconsProps,
1213
} from '@tabler/icons-react';
1314
import type { Route } from 'next';
15+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
1416

1517
export const PRODUCT_NAME = 'Mantine ContextMenu';
1618
export const PRODUCT_DESCRIPTION =
@@ -41,7 +43,10 @@ export type RouteInfo = {
4143
href: Route;
4244
title: string;
4345
description: string;
44-
} & ({ icon?: never; color?: never } | { icon: React.FC<TablerIconsProps>; color: MantineColor });
46+
} & (
47+
| { icon?: never; color?: never }
48+
| { icon: ForwardRefExoticComponent<Omit<IconProps, 'ref'> & RefAttributes<Icon>>; color: MantineColor }
49+
);
4550

4651
export const EXAMPLES_ROUTE_COLOR: MantineColor = 'green';
4752

package.json

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mantine-contextmenu",
3-
"version": "7.6.2",
3+
"version": "7.7.0",
44
"description": "Craft your applications for productivity and meet your users’ expectations by enhancing your Mantine-based UIs with a desktop-grade, lightweight yet fully-featured, dark-theme aware context-menu component, built by the creator of Mantine DataTable",
55
"keywords": [
66
"ui",
@@ -72,38 +72,38 @@
7272
"format": "prettier --write ."
7373
},
7474
"devDependencies": {
75-
"@ducanh2912/next-pwa": "^10.2.5",
76-
"@mantine/code-highlight": "^7.6.1",
77-
"@mantine/core": "^7.6.1",
78-
"@mantine/hooks": "^7.6.1",
79-
"@mantine/notifications": "^7.6.1",
80-
"@tabler/icons-react": "^2.47.0",
81-
"@types/lodash": "^4.14.202",
82-
"@types/node": "^20.11.24",
83-
"@types/react": "^18.2.63",
84-
"@types/react-dom": "^18.2.19",
85-
"@typescript-eslint/eslint-plugin": "^7.1.1",
86-
"@typescript-eslint/parser": "^7.1.1",
75+
"@ducanh2912/next-pwa": "^10.2.6",
76+
"@mantine/code-highlight": "^7.7.1",
77+
"@mantine/core": "^7.7.1",
78+
"@mantine/hooks": "^7.7.1",
79+
"@mantine/notifications": "^7.7.1",
80+
"@tabler/icons-react": "^3.1.0",
81+
"@types/lodash": "^4.17.0",
82+
"@types/node": "^20.12.4",
83+
"@types/react": "^18.2.74",
84+
"@types/react-dom": "^18.2.24",
85+
"@typescript-eslint/eslint-plugin": "^7.5.0",
86+
"@typescript-eslint/parser": "^7.5.0",
8787
"clsx": "^2.1.0",
88-
"cssnano": "^6.0.5",
88+
"cssnano": "^6.1.2",
8989
"eslint": "^8.57.0",
90-
"eslint-config-next": "^14.1.2",
90+
"eslint-config-next": "^14.1.4",
9191
"eslint-config-prettier": "^9.1.0",
9292
"lodash": "^4.17.21",
93-
"next": "14.1.2",
94-
"postcss": "^8.4.35",
93+
"next": "14.1.4",
94+
"postcss": "^8.4.38",
9595
"postcss-cli": "^11.0.0",
96-
"postcss-import": "^16.0.1",
96+
"postcss-import": "^16.1.0",
9797
"postcss-preset-mantine": "^1.13.0",
9898
"postcss-simple-vars": "^7.0.1",
9999
"prettier": "^3.2.5",
100100
"react": "^18.2.0",
101101
"react-dom": "^18.2.0",
102-
"sharp": "^0.33.2",
102+
"sharp": "^0.33.3",
103103
"swr": "^2.2.5",
104104
"tsup": "^8.0.2",
105-
"typescript": "^5.3.3",
106-
"webpack": "^5.90.3"
105+
"typescript": "^5.4.3",
106+
"webpack": "^5.91.0"
107107
},
108108
"peerDependencies": {
109109
"@mantine/core": ">=7",

0 commit comments

Comments
 (0)