@kvass/rich-text 1.4.11 → 1.4.13

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/index.js ADDED
@@ -0,0 +1,17 @@
1
+ import Component from './src/Component.vue'
2
+ export default Component
3
+
4
+ const Options = {
5
+ labels: {
6
+ primary: 'Primærfarge',
7
+ secondary: 'Sekundærfarge',
8
+ },
9
+ }
10
+ const setup = options => {
11
+ for (let key in options) {
12
+ if (!(key in Options)) return
13
+ Options[key] = options[key]
14
+ }
15
+ }
16
+
17
+ export { setup, Options }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@kvass/rich-text",
3
- "version": "1.4.11",
3
+ "version": "1.4.13",
4
4
  "description": "rich text component for kvass",
5
- "main": "src/Component.vue",
5
+ "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"No tests yet\"",
8
8
  "semantic-release": "semantic-release"
package/src/Component.vue CHANGED
@@ -88,7 +88,8 @@ const DefaultCommands = [
88
88
  'link',
89
89
  'cta',
90
90
  ]
91
- const DefaultLabels = { primary: 'Primær', secondary: 'Sekundær' }
91
+
92
+ import { Options } from '../index'
92
93
 
93
94
  export { DefaultCommands }
94
95
  export default {
@@ -104,7 +105,7 @@ export default {
104
105
  },
105
106
  labels: {
106
107
  type: Object,
107
- default: () => DefaultLabels,
108
+ default: () => Options.labels,
108
109
  },
109
110
  },
110
111
  watch: {
package/src/index.js DELETED
@@ -1,2 +0,0 @@
1
- import Component from './Component'
2
- export default Component