@alekstar79/context-menu 2.0.2 → 2.0.3
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.
- package/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
## 📦 Installation
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
|
-
npm install context-menu
|
|
47
|
+
npm install @alekstar79/context-menu
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
The library has an optional peer dependency on vue. If you are using the Vue component, install Vue 3 as well:
|
|
@@ -57,7 +57,7 @@ npm install vue@^3
|
|
|
57
57
|
1. Vanilla JS / TypeScript
|
|
58
58
|
|
|
59
59
|
```ts
|
|
60
|
-
import { defineConfig, Manager } from 'context-menu
|
|
60
|
+
import { defineConfig, Manager } from '@alekstar79/context-menu'
|
|
61
61
|
|
|
62
62
|
const config = defineConfig({
|
|
63
63
|
sprite: '/path/to/icons.svg', // path to SVG sprite
|
|
@@ -111,8 +111,8 @@ window.addEventListener('contextmenu', (e) => {
|
|
|
111
111
|
|
|
112
112
|
<script setup lang="ts">
|
|
113
113
|
import { ref } from 'vue'
|
|
114
|
-
import
|
|
115
|
-
import
|
|
114
|
+
import type { ISector } from '@alekstar79/context-menu/context-menu'
|
|
115
|
+
import ContextMenu from '@alekstar79/context-menu/context-menu/vue'
|
|
116
116
|
|
|
117
117
|
const sprite = '/icons.svg'
|
|
118
118
|
const sectors: ISector[] = [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alekstar79/context-menu",
|
|
3
3
|
"description": "Context Menu TS is a customizable radial context menu for web applications, written in TypeScript.",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Aleksey Tarasenko <alekstar79@yandex.ru>",
|