@pequity/squirrel 1.2.5 → 1.2.6

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.
@@ -1,17 +1,10 @@
1
- type WithSubActions = {
2
- name: never;
3
- subActions: {
1
+ export type PActionBarAction = {
2
+ name?: string;
3
+ label: string;
4
+ icon?: string;
5
+ subActions?: {
4
6
  name: string;
5
7
  label: string;
6
8
  icon?: string;
7
9
  }[];
8
10
  };
9
- type WithoutSubActions = {
10
- name: string;
11
- subActions: never;
12
- };
13
- export type PActionBarAction = {
14
- label: string;
15
- icon?: string;
16
- } & (WithSubActions | WithoutSubActions);
17
- export {};
@@ -5,10 +5,10 @@ type Props = {
5
5
  };
6
6
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
7
  "click:dismiss": () => void;
8
- "click:action": (value: string) => void;
8
+ "click:action": (value: string | undefined) => void;
9
9
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<Props>>> & {
10
10
  "onClick:dismiss"?: (() => any) | undefined;
11
- "onClick:action"?: ((value: string) => any) | undefined;
11
+ "onClick:action"?: ((value: string | undefined) => any) | undefined;
12
12
  }, {}, {}>;
13
13
  export default _default;
14
14
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pequity/squirrel",
3
3
  "description": "Squirrel component library",
4
- "version": "1.2.5",
4
+ "version": "1.2.6",
5
5
  "packageManager": "pnpm@8.9.2",
6
6
  "type": "module",
7
7
  "scripts": {
@@ -1,18 +1,10 @@
1
- type WithSubActions = {
2
- name: never;
3
- subActions: {
1
+ export type PActionBarAction = {
2
+ name?: string;
3
+ label: string;
4
+ icon?: string;
5
+ subActions?: {
4
6
  name: string;
5
7
  label: string;
6
8
  icon?: string;
7
9
  }[];
8
10
  };
9
-
10
- type WithoutSubActions = {
11
- name: string;
12
- subActions: never;
13
- };
14
-
15
- export type PActionBarAction = {
16
- label: string;
17
- icon?: string;
18
- } & (WithSubActions | WithoutSubActions);