@baklavajs/renderer-vue
Advanced tools
Comparing version 2.0.1-next.0 to 2.0.2-alpha.0
@@ -1,2 +0,2 @@ | ||
import { ComputedRef, Ref } from "vue"; | ||
import { Ref } from "vue"; | ||
import { Editor, Graph } from "@baklavajs/core"; | ||
@@ -11,4 +11,4 @@ import { ICommand, ICommandHandler } from "./commands"; | ||
export interface IClipboard { | ||
isEmpty: ComputedRef<boolean>; | ||
isEmpty: boolean; | ||
} | ||
export declare function useClipboard(displayedGraph: Ref<Graph>, editor: Ref<Editor>, commandHandler: ICommandHandler): IClipboard; |
@@ -1,6 +0,5 @@ | ||
import { Ref } from "vue"; | ||
import { ICommand } from "./command"; | ||
export * from "./command"; | ||
export interface ICommandHandler { | ||
pressedKeys: Ref<string[]>; | ||
pressedKeys: string[]; | ||
registerCommand<T extends ICommand<any, any[]>>(name: string, command: T): void; | ||
@@ -7,0 +6,0 @@ executeCommand<T extends ICommand<any, any[]>>(name: string, throwOnNonexisting?: false): ReturnType<T["execute"]> | void; |
@@ -13,4 +13,4 @@ import { Ref } from "vue"; | ||
export interface IHistory { | ||
maxSteps: Ref<number>; | ||
maxSteps: number; | ||
} | ||
export declare function useHistory(graph: Ref<Graph>, commandHandler: ICommandHandler): IHistory; |
@@ -8,7 +8,7 @@ import { NodeInterface } from "@baklavajs/core"; | ||
export declare type SelectInterfaceItem<V> = string | IAdvancedSelectInterfaceItem<V>; | ||
export declare class SelectInterface<V = string> extends NodeInterface<V | undefined> { | ||
export declare class SelectInterface<V = string> extends NodeInterface<V> { | ||
component: import("vue").ComponentOptions<{}, any, any, any, any, any, any, any>; | ||
items: SelectInterfaceItem<V>[]; | ||
constructor(name: string, value: V | undefined, items: SelectInterfaceItem<V>[]); | ||
constructor(name: string, value: V, items: SelectInterfaceItem<V>[]); | ||
} | ||
export { SelectInterfaceComponent }; |
@@ -1,2 +0,1 @@ | ||
import { Ref, UnwrapRef } from "vue"; | ||
import { AbstractNode, Editor, Graph, GraphTemplate, NodeInterface } from "@baklavajs/core"; | ||
@@ -20,5 +19,5 @@ import { IBaklavaTapable, SequentialHook } from "@baklavajs/events"; | ||
export interface IBaklavaViewModel extends IBaklavaTapable { | ||
editor: Ref<Editor>; | ||
displayedGraph: Ref<Graph>; | ||
isSubgraph: Readonly<Ref<boolean>>; | ||
editor: Editor; | ||
displayedGraph: Graph; | ||
isSubgraph: Readonly<boolean>; | ||
settings: IViewSettings; | ||
@@ -42,2 +41,2 @@ commandHandler: ICommandHandler; | ||
} | ||
export declare function useBaklava(existingEditor?: Ref<UnwrapRef<Editor>>): IBaklavaViewModel; | ||
export declare function useBaklava(existingEditor?: Editor): IBaklavaViewModel; |
{ | ||
"name": "@baklavajs/renderer-vue", | ||
"version": "2.0.1-next.0+e58f3bd", | ||
"version": "2.0.2-alpha.0", | ||
"description": "Vue frontend for BaklavaJS", | ||
@@ -33,16 +33,16 @@ "author": "newcat <freddy.wagner@web.de>", | ||
"devDependencies": { | ||
"@baklavajs/core": "^2.0.1-next.0+e58f3bd", | ||
"@baklavajs/events": "^2.0.1-next.0+e58f3bd", | ||
"@baklavajs/core": "^2.0.2-alpha.0", | ||
"@baklavajs/events": "^2.0.2-alpha.0", | ||
"@types/resize-observer-browser": "^0.1.6", | ||
"@vitejs/plugin-vue": "^1.9.2", | ||
"@vue/compiler-sfc": "^3.2.19", | ||
"@vueuse/core": "^6.5.3", | ||
"@vitejs/plugin-vue": "^2.0.1", | ||
"@vue/compiler-sfc": "^3.2.26", | ||
"@vueuse/core": "^7.5.1", | ||
"rollup-plugin-peer-deps-external": "^2.2.4", | ||
"rollup-plugin-visualizer": "^5.5.2", | ||
"rollup-plugin-vue": "^6.0.0", | ||
"sass": "^1.42.1", | ||
"typescript": "^4.3.5", | ||
"vite": "^2.5.0", | ||
"vue": "^3.2.4", | ||
"vue-tsc": "^0.3.0" | ||
"sass": "^1.45.2", | ||
"typescript": "^4.5.4", | ||
"vite": "^2.7.10", | ||
"vue": "^3.2.26", | ||
"vue-tsc": "^0.30.1" | ||
}, | ||
@@ -52,3 +52,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "e58f3bdae14afff45c62291ac7ed3f96aca9680b" | ||
"gitHead": "fa0da75cf1e6ebf4d9fd82dee193a86aeefa8de5" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
255607
5208
0