mantine-contextmenu 7.1.9 → 7.1.10

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/README.md +3 -1
  2. package/package.json +20 -15
package/README.md CHANGED
@@ -66,10 +66,12 @@ function App() {
66
66
  }
67
67
  ```
68
68
 
69
- Use the `showContextMenu` function geenrated by the `useContextMenu` in your code:
69
+ Use the `showContextMenu` function generated by the `useContextMenu` in your code:
70
70
 
71
71
  ```tsx
72
72
  'use client';
73
+ // 👆 Since 'useContextMenu' is a hook, don't forget to add the 'use client' directive
74
+ // at the top of your file if you're using it in a RSC context
73
75
 
74
76
  import { IconCopy, IconDownload } from '@tabler/icons-react';
75
77
  import { useContextMenu } from 'mantine-contextmenu';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mantine-contextmenu",
3
- "version": "7.1.9",
3
+ "version": "7.1.10",
4
4
  "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",
5
5
  "keywords": [
6
6
  "ui",
@@ -38,6 +38,13 @@
38
38
  "type": "github",
39
39
  "url": "https://github.com/sponsors/icflorescu"
40
40
  },
41
+ "files": [
42
+ "./dist",
43
+ "./README.md",
44
+ "./LICENSE"
45
+ ],
46
+ "main": "./dist/index.js",
47
+ "module": "./dist/index.mjs",
41
48
  "types": "./dist/index.d.ts",
42
49
  "exports": {
43
50
  ".": {
@@ -53,10 +60,8 @@
53
60
  "./styles.css": "./dist/styles.css",
54
61
  "./styles.layer.css": "./dist/styles.layer.css"
55
62
  },
56
- "files": [
57
- "./dist",
58
- "./README.md",
59
- "./LICENSE"
63
+ "sideEffects": [
64
+ "*.css"
60
65
  ],
61
66
  "scripts": {
62
67
  "dev": "next dev",
@@ -68,17 +73,17 @@
68
73
  },
69
74
  "devDependencies": {
70
75
  "@ducanh2912/next-pwa": "^9.7.2",
71
- "@mantine/code-highlight": "^7.1.7",
72
- "@mantine/core": "^7.1.7",
73
- "@mantine/hooks": "^7.1.7",
74
- "@mantine/notifications": "^7.1.7",
76
+ "@mantine/code-highlight": "^7.2.0",
77
+ "@mantine/core": "^7.2.0",
78
+ "@mantine/hooks": "^7.2.0",
79
+ "@mantine/notifications": "^7.2.0",
75
80
  "@tabler/icons-react": "^2.40.0",
76
81
  "@types/lodash": "^4.14.200",
77
82
  "@types/node": "^20.8.10",
78
- "@types/react": "^18.2.35",
83
+ "@types/react": "^18.2.36",
79
84
  "@types/react-dom": "^18.2.14",
80
- "@typescript-eslint/eslint-plugin": "^6.9.1",
81
- "@typescript-eslint/parser": "^6.9.1",
85
+ "@typescript-eslint/eslint-plugin": "^6.10.0",
86
+ "@typescript-eslint/parser": "^6.10.0",
82
87
  "clsx": "^2.0.0",
83
88
  "cssnano": "^6.0.1",
84
89
  "eslint": "^8.53.0",
@@ -101,9 +106,9 @@
101
106
  "webpack": "^5.89.0"
102
107
  },
103
108
  "peerDependencies": {
104
- "@mantine/core": ">=7.1",
105
- "@mantine/hooks": ">=7.1",
109
+ "@mantine/core": ">=7",
110
+ "@mantine/hooks": ">=7",
106
111
  "clsx": ">=2",
107
- "react": ">=18"
112
+ "react": ">=18.2"
108
113
  }
109
114
  }