@babsey/code-graph 0.0.16 → 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/code-graph.css +1 -1
- package/dist/code-graph.js +833 -565
- package/dist/code-graph.umd.cjs +1 -1
- package/dist/code.d.ts +21 -2
- package/dist/codeNode/codeNode.d.ts +36 -6
- package/dist/codeNode/defineCodeNode.d.ts +4 -1
- package/dist/codeNode/dynamicCodeNode.d.ts +4 -1
- package/dist/codeNodeInterfaces/baseStringInterface.d.ts +1 -0
- package/dist/codeNodeInterfaces/checkbox/checkboxInterface.d.ts +1 -2
- package/dist/codeNodeInterfaces/codeNode/CodeNodeInterface.vue.d.ts +2 -1
- package/dist/codeNodeInterfaces/codeNode/codeNodeInterface.d.ts +5 -1
- package/dist/codeNodeInterfaces/codeNodeInput/codeNodeInputInterface.d.ts +1 -0
- package/dist/codeNodeInterfaces/index.d.ts +2 -0
- package/dist/codeNodeInterfaces/integer/integerInterface.d.ts +0 -2
- package/dist/codeNodeInterfaces/listInput/listInputInterface.d.ts +5 -0
- package/dist/codeNodeInterfaces/number/numberInterface.d.ts +0 -2
- package/dist/codeNodeInterfaces/select/selectInterface.d.ts +0 -2
- package/dist/codeNodeInterfaces/slider/sliderInterface.d.ts +1 -2
- package/dist/codeNodeInterfaces/textInput/TextInputInterface.vue.d.ts +26 -0
- package/dist/codeNodeInterfaces/textInput/textInputInterface.d.ts +1 -1
- package/dist/codeNodeInterfaces/textareaInput/textareaInputInterface.d.ts +0 -2
- package/dist/codeNodeInterfaces/tupleInput/tupleInputInterface.d.ts +5 -0
- package/dist/components/CodeGraphEditor.vue.d.ts +14 -1
- package/dist/components/node/CodeGraphNode.vue.d.ts +7 -6
- package/dist/components/nodeInterface/CodeGraphNodeInterface.vue.d.ts +3 -2
- package/dist/components/nodePalette/CodeNodePalette.vue.d.ts +2 -1
- package/dist/components/nodePalette/PaletteEntry.vue.d.ts +2 -1
- package/dist/components/sidebar/Checkbox.vue.d.ts +2 -1
- package/dist/components/sidebar/CodeGraphSidebar.vue.d.ts +14 -1
- package/dist/icons/Check.vue.d.ts +3 -0
- package/dist/icons/CodeVariable.vue.d.ts +3 -0
- package/dist/icons/Copy.vue.d.ts +3 -0
- package/dist/icons/DotsVertical.vue.d.ts +3 -0
- package/dist/icons/LayoutSidebarLeftCollapse.vue.d.ts +2 -1
- package/dist/icons/LayoutSidebarLeftExpand.vue.d.ts +2 -1
- package/dist/icons/LayoutSidebarRight.vue.d.ts +2 -1
- package/dist/icons/LayoutSidebarRightCollapse.vue.d.ts +2 -1
- package/dist/icons/LayoutSidebarRightExpand.vue.d.ts +2 -1
- package/dist/icons/LockCode.vue.d.ts +3 -0
- package/dist/icons/Schema.vue.d.ts +2 -1
- package/dist/icons/SchemaOff.vue.d.ts +2 -1
- package/dist/icons/TransitionBottom.vue.d.ts +3 -0
- package/dist/icons/TrashOff.vue.d.ts +2 -1
- package/dist/icons/index.d.ts +6 -1
- package/dist/interfaceTypes/default.d.ts +1 -0
- package/package.json +8 -7
- package/dist/icons/VerticalDots.vue.d.ts +0 -2
|
@@ -4,21 +4,21 @@ type __VLS_Props = {
|
|
|
4
4
|
selected?: boolean;
|
|
5
5
|
dragging?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare var
|
|
7
|
+
declare var __VLS_73: {
|
|
8
8
|
type: string;
|
|
9
9
|
node: AbstractCodeNode;
|
|
10
10
|
intf: import('baklavajs').NodeInterface<unknown>;
|
|
11
|
-
},
|
|
11
|
+
}, __VLS_80: {
|
|
12
12
|
node: AbstractCodeNode;
|
|
13
13
|
intf: import('baklavajs').NodeInterface<unknown>;
|
|
14
14
|
type: string;
|
|
15
15
|
};
|
|
16
16
|
type __VLS_Slots = {} & {
|
|
17
|
-
nodeInterface?: (props: typeof
|
|
17
|
+
nodeInterface?: (props: typeof __VLS_73) => any;
|
|
18
18
|
} & {
|
|
19
|
-
nodeInterface?: (props: typeof
|
|
19
|
+
nodeInterface?: (props: typeof __VLS_80) => any;
|
|
20
20
|
};
|
|
21
|
-
declare const
|
|
21
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
22
22
|
select: () => any;
|
|
23
23
|
"start-drag": (ev: PointerEvent) => any;
|
|
24
24
|
update: () => any;
|
|
@@ -29,7 +29,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
29
29
|
}>, {
|
|
30
30
|
selected: boolean;
|
|
31
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
-
declare const
|
|
32
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
33
34
|
export default _default;
|
|
34
35
|
type __VLS_WithSlots<T, S> = T & {
|
|
35
36
|
new (): {
|
|
@@ -8,8 +8,9 @@ declare var __VLS_1: {};
|
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_1) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const
|
|
12
|
-
declare const
|
|
11
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
13
14
|
export default _default;
|
|
14
15
|
type __VLS_WithSlots<T, S> = T & {
|
|
15
16
|
new (): {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -2,7 +2,7 @@ interface IMenuItem {
|
|
|
2
2
|
label: string;
|
|
3
3
|
value: string;
|
|
4
4
|
}
|
|
5
|
-
declare const
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
6
|
type: {
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
required: true;
|
|
@@ -27,4 +27,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
27
27
|
required: true;
|
|
28
28
|
};
|
|
29
29
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
30
31
|
export default _default;
|
|
@@ -4,9 +4,10 @@ type __VLS_Props = {
|
|
|
4
4
|
modelValue: boolean;
|
|
5
5
|
name?: string;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
7
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
8
|
"update:modelValue": (v: boolean) => any;
|
|
9
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
10
|
"onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
|
|
11
11
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
12
13
|
export default _default;
|
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare var __VLS_25: {
|
|
2
|
+
node: import('baklavajs').AbstractNode;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
codeEditor?: (props: typeof __VLS_25) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
2
10
|
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
export { default as Check } from './Check.vue';
|
|
2
|
+
export { default as CodeVariable } from './CodeVariable.vue';
|
|
3
|
+
export { default as Copy } from './Copy.vue';
|
|
4
|
+
export { default as DotsVertical } from './DotsVertical.vue';
|
|
1
5
|
export { default as LayoutSidebarLeftCollapse } from './LayoutSidebarLeftCollapse.vue';
|
|
2
6
|
export { default as LayoutSidebarLeftExpand } from './LayoutSidebarLeftExpand.vue';
|
|
3
7
|
export { default as LayoutSidebarRight } from './LayoutSidebarRight.vue';
|
|
4
8
|
export { default as LayoutSidebarRightCollapse } from './LayoutSidebarRightCollapse.vue';
|
|
5
9
|
export { default as LayoutSidebarRightExpand } from './LayoutSidebarRightExpand.vue';
|
|
10
|
+
export { default as LockCode } from './LockCode.vue';
|
|
6
11
|
export { default as Schema } from './Schema.vue';
|
|
7
12
|
export { default as SchemaOff } from './SchemaOff.vue';
|
|
13
|
+
export { default as TransitionBottom } from './TransitionBottom.vue';
|
|
8
14
|
export { default as TrashOff } from './TrashOff.vue';
|
|
9
|
-
export { default as VerticalDots } from './VerticalDots.vue';
|
|
@@ -5,4 +5,5 @@ export declare const listType: NodeInterfaceType<object>;
|
|
|
5
5
|
export declare const nodeType: NodeInterfaceType<null>;
|
|
6
6
|
export declare const numberType: NodeInterfaceType<number>;
|
|
7
7
|
export declare const stringType: NodeInterfaceType<string>;
|
|
8
|
+
export declare const tupleType: NodeInterfaceType<object>;
|
|
8
9
|
export declare const addDefaultInterfaceTypes: (baklavaView: IBaklavaViewModel) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babsey/code-graph",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"author": "babsey <spreizer@web.de>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,27 +31,28 @@
|
|
|
31
31
|
"format": "prettier --write lib/ src/"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
+
"@codemirror/lang-python": "~6.2",
|
|
34
35
|
"@codemirror/theme-one-dark": "~6.1",
|
|
35
36
|
"@vueuse/core": "~13.9",
|
|
36
|
-
"baklavajs": "~2.
|
|
37
|
+
"baklavajs": "~2.8",
|
|
37
38
|
"codemirror": "~6.0",
|
|
38
39
|
"mustache": "~4.2",
|
|
39
40
|
"toposort": "~2.0",
|
|
40
41
|
"vue": "~3.5",
|
|
42
|
+
"vue-clipboard3": "~2.0",
|
|
41
43
|
"vue-codemirror": "~6.1"
|
|
42
44
|
},
|
|
43
45
|
"devDependencies": {
|
|
44
46
|
"@tsconfig/node-lts": "~22.0",
|
|
45
47
|
"@types/mustache": "~4.2",
|
|
46
|
-
"@types/node": "~24.
|
|
48
|
+
"@types/node": "~24.7",
|
|
47
49
|
"@types/toposort": "~2.0",
|
|
48
|
-
"@types/uuid": "~11.0",
|
|
49
50
|
"@vitejs/plugin-vue": "~6.0",
|
|
50
51
|
"@vue/eslint-config-prettier": "~10.2",
|
|
51
52
|
"@vue/eslint-config-typescript": "~14.6",
|
|
52
|
-
"@vue/language-core": "~3.
|
|
53
|
+
"@vue/language-core": "~3.1",
|
|
53
54
|
"@vue/tsconfig": "~0.8",
|
|
54
|
-
"eslint": "~9.
|
|
55
|
+
"eslint": "~9.37",
|
|
55
56
|
"eslint-plugin-vue": "~10.5",
|
|
56
57
|
"jiti": "~2.6",
|
|
57
58
|
"npm-run-all2": "~8.0",
|
|
@@ -62,6 +63,6 @@
|
|
|
62
63
|
"unplugin-dts": "~1.0.0-beta.6",
|
|
63
64
|
"vite": "~7.1",
|
|
64
65
|
"vite-plugin-vue-devtools": "~8.0",
|
|
65
|
-
"vue-tsc": "~3.
|
|
66
|
+
"vue-tsc": "~3.1"
|
|
66
67
|
}
|
|
67
68
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|