wave-ui 2.41.0 → 2.42.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wave-ui",
3
- "version": "2.41.0",
3
+ "version": "2.42.2",
4
4
  "description": "An emerging UI framework for Vue.js (2 & 3) with only the bright side. :sunny:",
5
5
  "author": "Antoni Andre <antoniandre.web@gmail.com>",
6
6
  "license": "MIT",
@@ -46,7 +46,7 @@
46
46
  "*.vue"
47
47
  ],
48
48
  "devDependencies": {
49
- "@babel/core": "^7.18.13",
49
+ "@babel/core": "^7.19.0",
50
50
  "@babel/eslint-parser": "^7.18.9",
51
51
  "@babel/plugin-proposal-class-properties": "^7.18.6",
52
52
  "@mdi/font": "^5.9.55",
@@ -56,17 +56,17 @@
56
56
  "axios": "^0.25.0",
57
57
  "eslint": "^7.32.0",
58
58
  "font-awesome": "^4.7.0",
59
- "gsap": "^3.11.0",
59
+ "gsap": "^3.11.1",
60
60
  "ionicons": "^4.6.3",
61
61
  "material-design-icons": "^3.0.1",
62
62
  "postcss": "^8.4.16",
63
63
  "rollup-plugin-delete": "^2.0.0",
64
- "sass": "^1.54.5",
64
+ "sass": "^1.54.8",
65
65
  "simple-syntax-highlighter": "^2.2.3",
66
66
  "splitpanes": "^3.1.1",
67
67
  "vite": "^2.9.15",
68
68
  "vite-plugin-pug": "^0.3.1",
69
- "vue": "^3.2.37",
69
+ "vue": "^3.2.38",
70
70
  "vue-router": "^4.1.5",
71
71
  "vueperslides": "^3.4.2",
72
72
  "vuex": "^4.0.2"
@@ -103,7 +103,7 @@ export default {
103
103
  ]
104
104
  },
105
105
  externalLink () {
106
- return /^(https?:)?\/\//.test(this.route)
106
+ return /^(https?:)?\/\/|mailto:|tel:/.test(this.route)
107
107
  },
108
108
  classes () {
109
109
  return {
@@ -1,4 +1,4 @@
1
- import { reactive } from 'vue'
1
+ import { reactive, inject } from 'vue'
2
2
  import config, { mergeConfig } from './utils/config'
3
3
  import NotificationManager from './utils/notification-manager'
4
4
  import colors from './utils/colors'
@@ -116,6 +116,7 @@ export default class WaveUI {
116
116
 
117
117
  // Make waveui reactive and expose the single instance in Vue.
118
118
  app.config.globalProperties.$waveui = reactive(this)
119
+ app.provide('$waveui', WaveUI.instance)
119
120
  }
120
121
  }
121
122
 
@@ -124,4 +125,7 @@ export default class WaveUI {
124
125
  }
125
126
  }
126
127
 
127
- WaveUI.version = '__VERSION__'
128
+ /**
129
+ * Returns the WaveUI instance. Equivalent to using `$waveui` inside templates.
130
+ */
131
+ export const useWaveUI = () => inject('$waveui')