@stonecrop/node-editor 0.2.5 → 0.2.7

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,9 +1,21 @@
1
1
  {
2
2
  "name": "@stonecrop/node-editor",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "Node editor UI for Stonecrop",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
+ "author": {
8
+ "name": "Tyler Matteson",
9
+ "email": "tyler@agritheory.com"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/agritheory/stonecrop",
14
+ "directory": "node_editor"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/agritheory/stonecrop/issues"
18
+ },
7
19
  "exports": {
8
20
  ".": {
9
21
  "import": "./dist/node-editor.js",
@@ -11,22 +23,27 @@
11
23
  },
12
24
  "./styles": "./dist/style.css"
13
25
  },
14
- "main": "index.js",
26
+ "main": "dist/node-editor.js",
27
+ "module": "dist/node-editor.js",
28
+ "umd": "dist/node-editor.umd.cjs",
15
29
  "files": [
16
30
  "dist/*",
17
- "src/**/*.vue"
31
+ "src/*"
18
32
  ],
19
33
  "dependencies": {
20
34
  "@vue-flow/core": "~1.19.3",
21
- "vue": "^3.2.47",
35
+ "vue": "^3.4.23",
22
36
  "vue-router": "^4",
23
37
  "xstate": "~4.37.2"
24
38
  },
25
39
  "devDependencies": {
26
- "@histoire/plugin-vue": "^0.16.1",
27
- "@vitejs/plugin-vue": "^4.2.1",
28
- "histoire": "^0.16.1",
29
- "vite": "^4.3.5"
40
+ "@histoire/plugin-vue": "^0.17.17",
41
+ "@vitejs/plugin-vue": "^5.0.4",
42
+ "histoire": "^0.17.17",
43
+ "vite": "^5.2.9"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
30
47
  },
31
48
  "engines": {
32
49
  "node": ">=20.11.0"
@@ -0,0 +1,7 @@
1
+ import { defineSetupVue3 } from '@histoire/plugin-vue'
2
+ //import { BaklavaVuePlugin } from '@baklavajs/plugin-renderer-vue3'
3
+
4
+ export const setupVue3 = defineSetupVue3(({ app }) => {
5
+ // TODO: (typing) add typing for ADate
6
+ //app.use(BaklavaVuePlugin)
7
+ })
package/src/index.ts ADDED
@@ -0,0 +1,11 @@
1
+ import { App } from 'vue'
2
+
3
+ import NodeEditor from '@/components/NodeEditor.vue'
4
+ import StateEditor from '@/components/StateEditor.vue'
5
+
6
+ function install(app: App /* options */) {
7
+ app.component('NodeEditor', NodeEditor)
8
+ app.component('StateEditor', StateEditor)
9
+ }
10
+
11
+ export { install, NodeEditor, StateEditor }