@heartlandone/vega-vue 1.3.0 → 1.3.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 -20
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -1,26 +1,10 @@
1
- # @heartlandone/vega-vue
1
+ # Vega Vue
2
2
 
3
- Vue specific wrapper for @heartlandone/vega
3
+ > Vue specific wrapper for [@heartlandone/vega](https://www.npmjs.com/package/@heartlandone/vega)
4
4
 
5
- ## To consume the package:
5
+ ## How to use
6
6
 
7
- 1. Install the package
8
- ```bash
9
- yarn add @heartlandone/vega-vue
10
- # or
11
- npm install @heartlandone/vega-vue
12
- ```
13
-
14
- 2. Skipping Component Resolution
15
- Please follow [this link](https://vuejs.org/guide/extras/web-components.html#using-custom-elements-in-vue) to let Vue know that the elements start with `vega-` is custom element instead of vue component.
16
-
17
- 3. Import `vega_min.css` for vega component styling and use `VegaComponentLibrary` as one of your app plugins, for example
18
- ```javascript
19
- import '@heartlandone/vega/style/vega_min.css';
20
- import { VegaComponentLibrary } from '@heartlandone/vega-vue';
21
-
22
- createApp(App).use(VegaComponentLibrary).mount('#app');
23
- ```
7
+ For installation guidance, please refer to https://vega.hlprd.com/guides/getting-started-developers#vue
24
8
 
25
9
  **Note:**
26
10
  - to pass a complex data (`array`, `object`) to the vega component property, please append `.prop` modifier to the property name, for more details please check [link](https://vuejs.org/guide/extras/web-components.html#passing-dom-properties)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heartlandone/vega-vue",
3
- "version": "1.3.0",
3
+ "version": "1.3.3",
4
4
  "description": "Vue specific wrapper for @heartlandone/vega",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -14,9 +14,9 @@
14
14
  "watch": "tsc --watch",
15
15
  "release": "npm run build",
16
16
  "version": "npm run release",
17
- "publish:patch": "npm version patch -m \"Publish $npm_package_name with version v%s.\" --tag-version-prefix=${npm_package_name}_v && git push --follow-tags && npm publish",
18
- "publish:minor": "npm version minor -m \"Publish $npm_package_name with version v%s.\" --tag-version-prefix=${npm_package_name}_v && git push --follow-tags && npm publish",
19
- "publish:major": "npm version major -m \"Publish $npm_package_name with version v%s.\" --tag-version-prefix=${npm_package_name}_v && git push --follow-tags && npm publish"
17
+ "publish:patch": "node ../scripts/publish-version.js patch",
18
+ "publish:minor": "node ../scripts/publish-version.js minor",
19
+ "publish:major": "node ../scripts/publish-version.js major"
20
20
  },
21
21
  "publishConfig": {
22
22
  "directory": "dist"
@@ -28,6 +28,6 @@
28
28
  "vue": "^3.0.0"
29
29
  },
30
30
  "dependencies": {
31
- "@heartlandone/vega": "*"
31
+ "@heartlandone/vega": "1.3.3"
32
32
  }
33
- }
33
+ }