@glimstone/vue 4.0.0 → 4.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.
@@ -0,0 +1,22 @@
1
+ import type { Component } from "vue";
2
+ import type { MenuEntry as CoreMenuEntry, MenuHead as CoreMenuHead, MenuItem as CoreMenuItem } from "@glimstone/core";
3
+ export type MenuEntry = CoreMenuEntry<Component>;
4
+ export type MenuItem = CoreMenuItem<Component>;
5
+ export type MenuHead = CoreMenuHead<Component>;
6
+ export interface MenuBarMenu {
7
+ label: string;
8
+ items: MenuEntry[];
9
+ }
10
+ export interface WindowAction {
11
+ label: string;
12
+ /** The translation key behind `label`, which picks the glyph, or `null`. */
13
+ labelKey: string | null;
14
+ glyph?: Component;
15
+ /** The forward action, filled with the accent and placed last. */
16
+ primary?: boolean;
17
+ /** This action already leaves the window, such as Done, so no Cancel or Close is added. */
18
+ wayOut?: boolean;
19
+ disabled?: boolean;
20
+ /** Runs on press. The window closes afterwards unless it returns false. */
21
+ onClick?: () => void | false;
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glimstone/vue",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "GlimStone's components for Vue",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -36,7 +36,7 @@
36
36
  "build": "vite build && vue-tsc -p tsconfig.build.json"
37
37
  },
38
38
  "dependencies": {
39
- "@glimstone/core": "4.0.0"
39
+ "@glimstone/core": "4.1.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@zag-js/combobox": "^1.46.0",