@alekstar79/context-menu 2.0.1 → 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.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +9 -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-ts'
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 ContextMenu from 'context-menu/vue'
115
- import type { ISector } from 'context-menu'
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,13 +1,21 @@
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.1",
4
+ "version": "2.0.3",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": "Aleksey Tarasenko <alekstar79@yandex.ru>",
8
8
  "main": "lib/context-menu.js",
9
9
  "module": "lib/context-menu.js",
10
10
  "types": "lib/index.d.ts",
11
+ "homepage": "https://github.com/alekstar79/context-menu.git",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/alekstar79/context-menu.git"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/alekstar79/context-menu/issues"
18
+ },
11
19
  "exports": {
12
20
  ".": {
13
21
  "import": "./lib/context-menu.js",