druxt-menu 0.22.0 → 0.22.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "druxt-menu",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "Drupal Menu and Menu item Druxt components, with support for the JSON:API Menu Items module.",
5
5
  "keywords": [
6
6
  "cms",
@@ -49,8 +49,8 @@
49
49
  "dependencies": {
50
50
  "deepmerge": "^4.3.1",
51
51
  "drupal-jsonapi-params": "^2.3.2",
52
- "druxt": "^0.25.0",
53
- "druxt-blocks": "^0.18.0"
52
+ "druxt": "^0.25.1",
53
+ "druxt-blocks": "^0.18.1"
54
54
  },
55
55
  "devDependencies": {
56
56
  "axios": "0.34.0",
@@ -1,7 +1,7 @@
1
1
  import DruxtMenu from 'druxt-menu/dist/components/DruxtMenu.vue'
2
2
 
3
3
  export default {
4
- title: '<%= options.title %>',
4
+ title: <%= JSON.stringify(options.title) %>,
5
5
  component: DruxtMenu,
6
6
  argTypes: {
7
7
  name: { table: { disable: true } },
@@ -9,7 +9,7 @@ export default {
9
9
  parameters: {
10
10
  docs: {
11
11
  description: {
12
- component: '<%= options.description || " " %>'
12
+ component: <%= JSON.stringify(options.description || ' ') %>
13
13
  }
14
14
  }
15
15
  }
@@ -21,7 +21,7 @@ export const Default = (args, { argTypes }) => {
21
21
  template: '<DruxtMenu v-bind="$props" v-on="$props" />',
22
22
  }
23
23
  }
24
- Default.storyName = '<%= options.label %>'
24
+ Default.storyName = <%= JSON.stringify(options.label) %>
25
25
  Default.args = {
26
26
  name: '<%= options.name %>',
27
27
  }
@@ -14,7 +14,7 @@ export default {
14
14
  options: [<%= (options.menus || []).map((menu) => `'${menu.attributes.drupal_internal__id}'`).join(', ') %>],
15
15
  control: {
16
16
  type: 'select',
17
- labels: Object.fromEntries([<%= (options.menus || []).map((o) => `['${o.attributes.drupal_internal__id}', "${o.attributes.label}"]`).join(', ') %>])
17
+ labels: Object.fromEntries([<%= (options.menus || []).map((o) => `['${o.attributes.drupal_internal__id}', ${JSON.stringify(o.attributes.label)}]`).join(', ') %>])
18
18
  }
19
19
  },
20
20
  }