druxt-menu 0.12.1 → 0.13.0
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# druxt-menu
|
|
2
2
|
|
|
3
|
+
## 0.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 715e5ef: Updated component registration method to use the Nuxt `components:dirs` hook
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 49454cb: Fixed path to components in Storybook
|
|
12
|
+
- Updated dependencies [715e5ef]
|
|
13
|
+
- druxt-blocks@0.12.0
|
|
14
|
+
- druxt@0.10.0
|
|
15
|
+
|
|
3
16
|
## 0.12.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/druxt-menu.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolve } from 'path';
|
|
1
|
+
import { resolve, join } from 'path';
|
|
2
2
|
import { DrupalJsonApiParams } from 'drupal-jsonapi-params';
|
|
3
3
|
import { DruxtClient } from 'druxt';
|
|
4
4
|
|
|
@@ -24,11 +24,15 @@ async function DruxtMenuStorybook({ stories }) {
|
|
|
24
24
|
stories.push(resolve(options.buildDir, "./stories/druxt-menu.*.stories.js"));
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
const DruxtMenuNuxtModule = function(
|
|
27
|
+
const DruxtMenuNuxtModule = function() {
|
|
28
28
|
if (typeof this.options === "undefined" || !this.options.druxt) {
|
|
29
29
|
throw new TypeError("Druxt settings missing.");
|
|
30
30
|
}
|
|
31
31
|
const options = this.options.druxt;
|
|
32
|
+
this.nuxt.hook("components:dirs", (dirs) => {
|
|
33
|
+
dirs.push({ path: join(__dirname, "components") });
|
|
34
|
+
dirs.push({ path: join(__dirname, "components/blocks") });
|
|
35
|
+
});
|
|
32
36
|
this.addPlugin({
|
|
33
37
|
src: resolve(__dirname, "../nuxt/plugin.js"),
|
|
34
38
|
fileName: "druxt-menu.js",
|
package/dist/druxt-menu.ssr.js
CHANGED
|
@@ -28,11 +28,15 @@ async function DruxtMenuStorybook({ stories }) {
|
|
|
28
28
|
stories.push(path.resolve(options.buildDir, "./stories/druxt-menu.*.stories.js"));
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
const DruxtMenuNuxtModule = function(
|
|
31
|
+
const DruxtMenuNuxtModule = function() {
|
|
32
32
|
if (typeof this.options === "undefined" || !this.options.druxt) {
|
|
33
33
|
throw new TypeError("Druxt settings missing.");
|
|
34
34
|
}
|
|
35
35
|
const options = this.options.druxt;
|
|
36
|
+
this.nuxt.hook("components:dirs", (dirs) => {
|
|
37
|
+
dirs.push({ path: path.join(__dirname, "components") });
|
|
38
|
+
dirs.push({ path: path.join(__dirname, "components/blocks") });
|
|
39
|
+
});
|
|
36
40
|
this.addPlugin({
|
|
37
41
|
src: path.resolve(__dirname, "../nuxt/plugin.js"),
|
|
38
42
|
fileName: "druxt-menu.js",
|
package/nuxt/plugin.js
CHANGED
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
1
|
import { DruxtMenu } from 'druxt-menu'
|
|
3
|
-
import * as DruxtMenuComponents from 'druxt-menu/dist/components/index.mjs'
|
|
4
|
-
|
|
5
|
-
Vue.use({
|
|
6
|
-
install: function (Vue) {
|
|
7
|
-
if (Vue._druxt_menu_installed) return
|
|
8
|
-
Vue._druxt_menu_installed = true
|
|
9
|
-
|
|
10
|
-
// Register components.
|
|
11
|
-
for (const component in DruxtMenuComponents) {
|
|
12
|
-
Vue.component(DruxtMenuComponents[component].name, DruxtMenuComponents[component])
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
})
|
|
16
2
|
|
|
17
3
|
export default (context, inject) => {
|
|
18
4
|
const baseUrl = '<%= options.baseUrl %>'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "druxt-menu",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Drupal Menu and Menu item Druxt components, with support for the JSON:API Menu Items module.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"menu",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"deepmerge": "^4.2.2",
|
|
29
29
|
"drupal-jsonapi-params": "^1.1.12",
|
|
30
|
-
"druxt": "^0.
|
|
31
|
-
"druxt-blocks": "^0.
|
|
30
|
+
"druxt": "^0.10.0",
|
|
31
|
+
"druxt-blocks": "^0.12.0"
|
|
32
32
|
},
|
|
33
33
|
"optionalDependencies": {
|
|
34
34
|
"vue": "^2.6.14",
|