druxt-router 0.27.4 → 0.29.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.
@@ -268,6 +268,16 @@ export default {
268
268
  }
269
269
 
270
270
  return scopedSlots
271
+ },
272
+
273
+ /**
274
+ * Druxt development template tool configuration.
275
+ */
276
+ template: {
277
+ debug: '{ path, route }',
278
+ mixins: {
279
+ 'DruxtRouterMixin': 'druxt-router'
280
+ }
271
281
  }
272
282
  }
273
283
  }
package/nuxt/index.js CHANGED
@@ -18,6 +18,7 @@ const DruxtRouterNuxtModule = async function(moduleOptions = {}) {
18
18
  ...moduleOptions
19
19
  }
20
20
  };
21
+ await this.addModule(["druxt", options]);
21
22
  this.nuxt.hook("components:dirs", (dirs) => {
22
23
  dirs.push({ path: path.join(__dirname, "../dist/components") });
23
24
  });
@@ -63,7 +64,6 @@ const DruxtRouterNuxtModule = async function(moduleOptions = {}) {
63
64
  fileName: "druxt-router.js",
64
65
  options
65
66
  });
66
- this.options.store = true;
67
67
  this.addPlugin({
68
68
  src: path.resolve(__dirname, "../templates/store.js"),
69
69
  fileName: "store/druxt-router.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "druxt-router",
3
- "version": "0.27.4",
3
+ "version": "0.29.0",
4
4
  "description": "Drupal router for Nuxt, powered by the Drupal Decoupled Router module.",
5
5
  "keywords": [
6
6
  "cms",
@@ -42,17 +42,17 @@
42
42
  "templates"
43
43
  ],
44
44
  "dependencies": {
45
- "druxt": "^0.19.3",
45
+ "druxt": "^0.21.0",
46
46
  "url-parse": "^1.5.10"
47
47
  },
48
48
  "devDependencies": {
49
- "vue-router": "^3.5.4"
49
+ "vue-router": "^3.6.5"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "drupal-jsonapi-params": "*"
53
53
  },
54
54
  "optionalDependencies": {
55
- "vue": "^2.6.14",
55
+ "vue": "^2.7.10",
56
56
  "vuex": "^3.6.2"
57
57
  },
58
58
  "publishConfig": {
@@ -1,4 +1,10 @@
1
1
  import DruxtRouter from 'druxt-router/dist/components/DruxtRouter.vue'
2
+ import DruxtModule from 'druxt/dist/components/DruxtModule.vue'
3
+
4
+ DruxtRouter.__docgenInfo.props = [
5
+ ...DruxtModule.__docgenInfo.props,
6
+ ...DruxtRouter.__docgenInfo.props,
7
+ ].sort((a, b) => a.name < b.name ? -1 : 1).filter((o) => o.name !== 'v-model')
2
8
 
3
9
  export default {
4
10
  title: 'Druxt/Router/DruxtRouter',