druxt-breadcrumb 0.15.0 → 0.15.1
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.
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { join } from 'path';
|
|
1
|
+
import { join, resolve } from 'path';
|
|
2
2
|
|
|
3
3
|
const DruxtBreadcrumbModule = function() {
|
|
4
4
|
this.nuxt.hook("components:dirs", (dirs) => {
|
|
5
5
|
dirs.push({ path: join(__dirname, "components") });
|
|
6
6
|
dirs.push({ path: join(__dirname, "components/blocks") });
|
|
7
7
|
});
|
|
8
|
+
const { addTemplate, options } = this;
|
|
8
9
|
this.nuxt.hook("storybook:config", ({ stories }) => {
|
|
9
|
-
|
|
10
|
+
addTemplate({
|
|
11
|
+
src: resolve(__dirname, "../templates/druxt-breadcrumb.stories.js"),
|
|
12
|
+
fileName: "stories/druxt-breadcrumb.stories.js"
|
|
13
|
+
});
|
|
14
|
+
stories.push(resolve(options.buildDir, "./stories/druxt-breadcrumb.stories.js"));
|
|
10
15
|
});
|
|
11
16
|
};
|
|
12
17
|
DruxtBreadcrumbModule.meta = require("../package.json");
|
|
@@ -9,8 +9,13 @@ const DruxtBreadcrumbModule = function() {
|
|
|
9
9
|
dirs.push({ path: path.join(__dirname, "components") });
|
|
10
10
|
dirs.push({ path: path.join(__dirname, "components/blocks") });
|
|
11
11
|
});
|
|
12
|
+
const { addTemplate, options } = this;
|
|
12
13
|
this.nuxt.hook("storybook:config", ({ stories }) => {
|
|
13
|
-
|
|
14
|
+
addTemplate({
|
|
15
|
+
src: path.resolve(__dirname, "../templates/druxt-breadcrumb.stories.js"),
|
|
16
|
+
fileName: "stories/druxt-breadcrumb.stories.js"
|
|
17
|
+
});
|
|
18
|
+
stories.push(path.resolve(options.buildDir, "./stories/druxt-breadcrumb.stories.js"));
|
|
14
19
|
});
|
|
15
20
|
};
|
|
16
21
|
DruxtBreadcrumbModule.meta = require("../package.json");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "druxt-breadcrumb",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "Decoupled Router based Breadcrumb Druxt component.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"breadcrumb",
|
|
@@ -38,12 +38,13 @@
|
|
|
38
38
|
"main": "dist/druxt-breadcrumb.ssr.js",
|
|
39
39
|
"module": "dist/druxt-breadcrumb.esm.js",
|
|
40
40
|
"files": [
|
|
41
|
-
"dist"
|
|
41
|
+
"dist",
|
|
42
|
+
"templates"
|
|
42
43
|
],
|
|
43
44
|
"dependencies": {
|
|
44
|
-
"druxt": "^0.19.
|
|
45
|
-
"druxt-blocks": "^0.16.
|
|
46
|
-
"druxt-router": "^0.27.
|
|
45
|
+
"druxt": "^0.19.3",
|
|
46
|
+
"druxt-blocks": "^0.16.2",
|
|
47
|
+
"druxt-router": "^0.27.4"
|
|
47
48
|
},
|
|
48
49
|
"optionalDependencies": {
|
|
49
50
|
"vue": "^2.6.14",
|
package/{dist/components/DruxtBreadcrumb.stories.mjs → templates/druxt-breadcrumb.stories.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import DruxtBreadcrumb from '
|
|
1
|
+
import DruxtBreadcrumb from 'druxt-breadcrumb/dist/components//DruxtBreadcrumb.vue'
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
title: 'Druxt/Breadcrumb/DruxtBreadcrumb',
|
|
@@ -41,7 +41,9 @@ export const Wrapper = (args, { argTypes }) => ({
|
|
|
41
41
|
})
|
|
42
42
|
Wrapper.parameters = {
|
|
43
43
|
docs: {
|
|
44
|
-
|
|
44
|
+
description: {
|
|
45
|
+
story: 'The DruxtBreadcrumb component can be themed by using a Druxt Wrapper component.\n\nCreate an appropriately named component, using the relevant component option, with the following boilerplate:\n\n```jsx\n' + code + '\n```',
|
|
46
|
+
},
|
|
45
47
|
source: { code }
|
|
46
48
|
}
|
|
47
49
|
}
|
|
@@ -60,7 +62,9 @@ export const TemplateInjection = (args, { argTypes }) => ({
|
|
|
60
62
|
})
|
|
61
63
|
TemplateInjection.parameters = {
|
|
62
64
|
docs: {
|
|
63
|
-
|
|
65
|
+
description: {
|
|
66
|
+
story: 'The DruxtBreadcrumb component can be themed by injecting the default template into the compomnent.\n\n```jsx\n' + code + '\n```',
|
|
67
|
+
},
|
|
64
68
|
source: { code }
|
|
65
69
|
}
|
|
66
70
|
}
|