@ovalbee/flow-viewer 0.0.4 → 0.1.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.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { default as FlowViewer } from './FlowViewer.vue';
2
2
  export { default as FlowPreview } from './FlowPreview.vue';
3
3
  export { nodePreviewIconNames, nodePreviewIcons, } from './nodePreviewIcons.generated';
4
- export type { FlowPreviewDocument, FlowViewerCatalogNode, FlowViewerDocument, FlowViewerEdge, FlowViewerField, FlowViewerIcon, FlowViewerNode, FlowViewerNote, FlowViewerNoteColor, FlowViewerPosition, } from './types';
4
+ export type { FlowPreviewDocument, FlowViewerCatalogNode, FlowViewerDocument, FlowViewerEdge, FlowViewerField, FlowViewerIcon, FlowViewerNode, FlowViewerNodeAppearance, FlowViewerNote, FlowViewerNoteColor, FlowViewerPosition, FlowViewerWidget, } from './types';
package/dist/types.d.ts CHANGED
@@ -12,6 +12,12 @@ export type FlowViewerField = {
12
12
  description?: string;
13
13
  type: string;
14
14
  };
15
+ export type FlowViewerNodeAppearance = 'default' | 'compact' | 'folder';
16
+ /** A widget id from the editor, and its button text when the node spells it out. */
17
+ export type FlowViewerWidget = {
18
+ id: string;
19
+ label?: string;
20
+ };
15
21
  export type FlowViewerCatalogNode = {
16
22
  id: string;
17
23
  kind: 'node';
@@ -21,7 +27,8 @@ export type FlowViewerCatalogNode = {
21
27
  version: number;
22
28
  description: string;
23
29
  icon?: FlowViewerIcon;
24
- widgetPreview: 'button' | 'dataset' | 'lines' | null;
30
+ appearance: FlowViewerNodeAppearance;
31
+ widgets: FlowViewerWidget[];
25
32
  inputs: FlowViewerField[];
26
33
  outputs: FlowViewerField[];
27
34
  setup?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ovalbee/flow-viewer",
3
- "version": "0.0.4",
3
+ "version": "0.1.0",
4
4
  "description": "Read-only Vue viewer for OvalBee flow graphs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,6 +32,12 @@
32
32
  "sideEffects": [
33
33
  "**/*.css"
34
34
  ],
35
+ "scripts": {
36
+ "dev": "vite build --watch",
37
+ "typecheck": "vue-tsc --noEmit",
38
+ "build": "vue-tsc --noEmit && vite build",
39
+ "prepublishOnly": "pnpm build"
40
+ },
35
41
  "peerDependencies": {
36
42
  "@vue-flow/core": "^1.47.0",
37
43
  "@vue-flow/controls": "^1.1.3",
@@ -39,14 +45,15 @@
39
45
  "vue": "^3.3.0"
40
46
  },
41
47
  "devDependencies": {
42
- "@vitejs/plugin-vue": "^5.2.1",
48
+ "@vitejs/plugin-vue": "^6.0.8",
43
49
  "@vue-flow/core": "^1.47.0",
44
50
  "@vue-flow/controls": "^1.1.3",
45
51
  "@vue-flow/minimap": "^1.5.4",
52
+ "@vue/language-core": "^3.1.5",
46
53
  "lucide-vue-next": "0.577.0",
47
54
  "typescript": "~5.6.3",
48
- "vite": "^6.0.3",
49
- "vite-plugin-dts": "^4.3.0",
55
+ "vite": "^8.2.1",
56
+ "vite-plugin-dts": "^5.0.3",
50
57
  "vue": "^3.5.13",
51
58
  "vue-tsc": "^2.2.0"
52
59
  },
@@ -56,10 +63,5 @@
56
63
  "vue-flow",
57
64
  "flow-viewer"
58
65
  ],
59
- "license": "MIT",
60
- "scripts": {
61
- "dev": "vite build --watch",
62
- "typecheck": "vue-tsc --noEmit",
63
- "build": "vue-tsc --noEmit && vite build"
64
- }
65
- }
66
+ "license": "MIT"
67
+ }