@baklavajs/renderer-vue
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -5,2 +5,3 @@ export type { CreateSubgraphCommand, DeleteNodesCommand, SaveSubgraphCommand, SwitchToMainGraphCommand } from "./graph"; | ||
export type { OpenSidebarCommand } from "./sidebar"; | ||
export type { StartSelectionBoxCommand } from "./editor/selectionBox"; | ||
export { CREATE_SUBGRAPH_COMMAND, DELETE_NODES_COMMAND, SAVE_SUBGRAPH_COMMAND, SWITCH_TO_MAIN_GRAPH_COMMAND, } from "./graph"; | ||
@@ -10,1 +11,2 @@ export { COMMIT_TRANSACTION_COMMAND, START_TRANSACTION_COMMAND, UNDO_COMMAND, REDO_COMMAND } from "./history"; | ||
export { OPEN_SIDEBAR_COMMAND } from "./sidebar"; | ||
export { START_SELECTION_BOX_COMMAND } from "./editor/selectionBox"; |
@@ -0,1 +1,13 @@ | ||
export interface HotkeyRegistrationOptions { | ||
/** | ||
* Whether to prevent the default action of the hotkey. | ||
* @default false | ||
*/ | ||
preventDefault?: boolean; | ||
/** | ||
* Whether to stop the propagation of the hotkey. | ||
* @default false | ||
*/ | ||
stopPropagation?: boolean; | ||
} | ||
export declare function useHotkeyHandler(executeCommand: (name: string) => void): { | ||
@@ -5,3 +17,3 @@ pressedKeys: import("vue").Ref<string[]>; | ||
handleKeyUp: (ev: KeyboardEvent) => void; | ||
registerHotkey: (keys: string[], commandName: string) => void; | ||
registerHotkey: (keys: string[], commandName: string, options?: HotkeyRegistrationOptions) => void; | ||
}; |
import { ICommand } from "./command"; | ||
import { HotkeyRegistrationOptions } from "./hotkeyHandler"; | ||
export * from "./command"; | ||
@@ -41,4 +42,5 @@ type AbstractCommand = ICommand<any, any[]>; | ||
* @param commandName Name of the command that should be executed when the keys are pressed. | ||
* @param options Options for the hotkey registration. | ||
*/ | ||
registerHotkey(keys: string[], commandName: string): void; | ||
registerHotkey(keys: string[], commandName: string, options?: HotkeyRegistrationOptions): void; | ||
/** @internal */ | ||
@@ -45,0 +47,0 @@ handleKeyUp(ev: KeyboardEvent): void; |
@@ -0,9 +1,9 @@ | ||
export { default as Minimap } from "./components/Minimap.vue"; | ||
export { default as Connection } from "./connection/ConnectionView.vue"; | ||
export { default as ConnectionWrapper } from "./connection/ConnectionWrapper.vue"; | ||
export { default as TemporaryConnection } from "./connection/TemporaryConnection.vue"; | ||
export { ContextMenu } from "./contextmenu"; | ||
export { default as Node } from "./node/Node.vue"; | ||
export { default as NodeInterface } from "./node/NodeInterface.vue"; | ||
export { default as NodePalette } from "./nodepalette/NodePalette.vue"; | ||
export { default as ContextMenu } from "./components/ContextMenu.vue"; | ||
export { default as Minimap } from "./components/Minimap.vue"; | ||
export { default as Sidebar } from "./sidebar/Sidebar.vue"; |
@@ -32,3 +32,3 @@ import { Ref } from "vue"; | ||
y: Ref<number>; | ||
items: import("vue").ComputedRef<import("../components/ContextMenu.vue").IMenuItem[]>; | ||
items: import("vue").ComputedRef<import("../contextmenu").IMenuItem[]>; | ||
open: (ev: MouseEvent) => void; | ||
@@ -35,0 +35,0 @@ onClick: (value: string) => void; |
@@ -8,2 +8,4 @@ export { default as ArrowBackUp } from "./ArrowBackUp.vue"; | ||
export { default as Hierarchy2 } from "./Hierarchy2.vue"; | ||
export { default as SelectAll } from "./SelectAll.vue"; | ||
export { default as Trash } from "./Trash.vue"; | ||
export { default as VerticalDots } from "./VerticalDots.vue"; |
@@ -9,3 +9,5 @@ /** | ||
export * from "./utility"; | ||
export { displayInSidebar } from "./sidebar"; | ||
export * as Components from "./components"; | ||
export * as Commands from "./commandList"; | ||
export { type IViewSettings } from "./settings"; |
@@ -9,1 +9,2 @@ export * from "./button/ButtonInterface"; | ||
export * from "./textinput/TextInputInterface"; | ||
export * from "./textareainput/TextareaInputInterface"; |
@@ -1,2 +0,2 @@ | ||
import { IMenuItem } from "../components/ContextMenu.vue"; | ||
import { IMenuItem } from "../contextmenu"; | ||
declare const _default: import("vue").DefineComponent<{ | ||
@@ -3,0 +3,0 @@ type: { |
@@ -18,2 +18,12 @@ interface SimpleContextMenuItem { | ||
enableMinimap: boolean; | ||
/** Toolbar settings */ | ||
toolbar: { | ||
/** Whether the toolbar should be enabled */ | ||
enabled: boolean; | ||
}; | ||
/** Palette settings */ | ||
palette: { | ||
/** Whether the palette should be enabled */ | ||
enabled: boolean; | ||
}; | ||
/** Background settings */ | ||
@@ -27,2 +37,4 @@ background: { | ||
sidebar: { | ||
/** Whether the sidebar should be enabled */ | ||
enabled: boolean; | ||
/** Width of the sidebar in pixels */ | ||
@@ -45,2 +57,4 @@ width: number; | ||
resizable: boolean; | ||
/** Inverts the order of inputs/outputs in nodes. */ | ||
reverseY: boolean; | ||
}; | ||
@@ -47,0 +61,0 @@ contextMenu: { |
@@ -0,1 +1,2 @@ | ||
export * from "./isInputElements"; | ||
export * from "./nodePosition"; | ||
@@ -2,0 +3,0 @@ export * from "./useDragMove"; |
{ | ||
"name": "@baklavajs/renderer-vue", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "Vue frontend for BaklavaJS", | ||
@@ -12,9 +12,9 @@ "author": "newcat <freddy.wagner@web.de>", | ||
], | ||
"main": "./dist/renderer-vue.umd.js", | ||
"module": "./dist/renderer-vue.es.js", | ||
"main": "./dist/renderer-vue.umd.cjs", | ||
"module": "./dist/renderer-vue.es.mjs", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/renderer-vue.es.js", | ||
"require": "./dist/renderer-vue.umd.js" | ||
"import": "./dist/renderer-vue.es.mjs", | ||
"require": "./dist/renderer-vue.umd.cjs" | ||
} | ||
@@ -35,3 +35,3 @@ }, | ||
"dependencies": { | ||
"@baklavajs/core": "^2.3.0", | ||
"@baklavajs/core": "^2.4.0", | ||
"@baklavajs/events": "^2.3.0" | ||
@@ -41,5 +41,5 @@ }, | ||
"@types/resize-observer-browser": "^0.1.11", | ||
"@vitejs/plugin-vue": "^5.0.2", | ||
"@vue/compiler-sfc": "^3.4.3", | ||
"@vueuse/core": "^10.7.1", | ||
"@vitejs/plugin-vue": "^5.0.3", | ||
"@vue/compiler-sfc": "^3.4.16", | ||
"@vueuse/core": "^10.7.2", | ||
"rimraf": "^5.0.5", | ||
@@ -49,7 +49,7 @@ "rollup-plugin-peer-deps-external": "^2.2.4", | ||
"rollup-plugin-vue": "^6.0.0", | ||
"sass": "^1.69.6", | ||
"sass": "^1.70.0", | ||
"typescript": "^5.3.3", | ||
"vite": "^5.0.10", | ||
"vite-plugin-dts": "^3.7.0", | ||
"vue": "^3.4.3", | ||
"vite": "^5.1.0", | ||
"vite-plugin-dts": "^3.7.2", | ||
"vue": "^3.4.16", | ||
"vue-tsc": "^1.8.27" | ||
@@ -60,3 +60,3 @@ }, | ||
}, | ||
"gitHead": "d5c041935e92caee19c887cd8cf3584090c9ded4" | ||
"gitHead": "00cb1e4427e8fa23f4e9db6d6c5ad8f58871f731" | ||
} |
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
481007
93
12868
1
Updated@baklavajs/core@^2.4.0