mantine-contextmenu 7.1.9 β†’ 7.1.11

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 +8 -4
  2. package/package.json +23 -18
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';
@@ -108,7 +110,9 @@ Make sure to browse the list of [usage examples](https://icflorescu.github.io/ma
108
110
 
109
111
  ## Other useful resources
110
112
 
111
- πŸ’‘ [Mantine DataTable](https://icflorescu.github.io/mantine-datatable/) - The "dark-theme aware" **data-table component** for your Mantine UI applications, built by the creator of Mantine ContextMenu.
113
+ πŸ’‘ [Mantine DataTable](https://icflorescu.github.io/mantine-datatable/) - The lightweight, dependency-free, dark-theme aware table component for your Mantine UI data-rich applications, featuring asynchronous data loading support, pagination, intuitive Gmail-style additive batch rows selection, column sorting, custom cell data rendering, row expansion, nesting, context menus, and much more. Built by the creator of Mantine ContextMenu.
114
+
115
+ [![Mantine DataTable](https://user-images.githubusercontent.com/581999/279479387-525bb797-cb15-4739-85c6-94ceded94bc1.png)](https://icflorescu.github.io/mantine-datatable/)
112
116
 
113
117
  ## Contributing
114
118
 
@@ -120,11 +124,11 @@ Here's the list of people who have already contributed to Mantine ContextMenu:
120
124
 
121
125
  Want to [become a code contributor](https://icflorescu.github.io/mantine-contextmenu/contribute-and-support)?
122
126
 
123
- ## Sponsor the project
127
+ ## Support the project
124
128
 
125
129
  If you find this package useful, please consider ❀️ [sponsoring my work](https://github.com/sponsors/icflorescu).
126
130
  Your sponsorship will help me dedicate more time to maintaining the project and will encourage me to add new features and fix existing bugs.
127
- If you're a company using Mantine ContextMenu in a commercial project, you can also [hire my services](https://github.com/icflorescu).
131
+ If you're a company using Mantine, Mantine ContextMenu or [Mantine DataTable](https://icflorescu.github.io/mantine-datatable/) in a commercial project, you can also [hire my services](https://github.com/icflorescu).
128
132
 
129
133
  ## Other means of support
130
134
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mantine-contextmenu",
3
- "version": "7.1.9",
3
+ "version": "7.1.11",
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.1",
77
+ "@mantine/core": "^7.2.1",
78
+ "@mantine/hooks": "^7.2.1",
79
+ "@mantine/notifications": "^7.2.1",
75
80
  "@tabler/icons-react": "^2.40.0",
76
- "@types/lodash": "^4.14.200",
77
- "@types/node": "^20.8.10",
78
- "@types/react": "^18.2.35",
79
- "@types/react-dom": "^18.2.14",
80
- "@typescript-eslint/eslint-plugin": "^6.9.1",
81
- "@typescript-eslint/parser": "^6.9.1",
81
+ "@types/lodash": "^4.14.201",
82
+ "@types/node": "^20.9.0",
83
+ "@types/react": "^18.2.37",
84
+ "@types/react-dom": "^18.2.15",
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
  }