@axinom/mosaic-ui 0.33.0-rc.6 → 0.33.0-rc.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axinom/mosaic-ui",
3
- "version": "0.33.0-rc.6",
3
+ "version": "0.33.0-rc.7",
4
4
  "description": "UI components for building Axinom Mosaic applications",
5
5
  "author": "Axinom",
6
6
  "license": "PROPRIETARY",
@@ -32,7 +32,7 @@
32
32
  "build-storybook": "storybook build"
33
33
  },
34
34
  "dependencies": {
35
- "@axinom/mosaic-core": "^0.4.6-rc.6",
35
+ "@axinom/mosaic-core": "^0.4.6-rc.7",
36
36
  "@faker-js/faker": "^7.4.0",
37
37
  "@popperjs/core": "^2.9.2",
38
38
  "clsx": "^1.1.0",
@@ -102,5 +102,5 @@
102
102
  "publishConfig": {
103
103
  "access": "public"
104
104
  },
105
- "gitHead": "f799dc8db9f6dcbaa6c5b8ff202c41e426fe7464"
105
+ "gitHead": "08b711ee89a738d515cf8e21fb7a3d965e3a8a38"
106
106
  }
@@ -2,14 +2,6 @@ import { Not } from '../../types';
2
2
  import { IconName } from '../Icons';
3
3
  import { ConfirmAction, DefaultHandler, LinkAction } from '../models';
4
4
 
5
- /**
6
- * @deprecated ActionData interface has been changed and no longer uses `actionType` property
7
- */
8
- export enum ActionType {
9
- Navigation,
10
- Context,
11
- }
12
-
13
5
  export type ActionData<THandler = DefaultHandler> =
14
6
  | ContextActionData<THandler>
15
7
  | NavigationActionData;
@@ -41,12 +33,6 @@ export interface HandledAction<THandler> {
41
33
  }
42
34
 
43
35
  interface ActionBaseData {
44
- /**
45
- * @deprecated this property is no longer used,
46
- * instead specify `path` property for navigation type actions
47
- * and `onActionSelected` handler for context type actions
48
- */
49
- actionType?: ActionType;
50
36
  /** The label of the action. */
51
37
  label: string;
52
38
  /** Optional icon (default: 'IconName.ChevronRight') */
@@ -80,7 +80,10 @@ const meta: Meta<ActionsStoryComponentProps> = {
80
80
  },
81
81
  actionType: {
82
82
  ...groups.actionType,
83
- description: '<b>[Storybook only]</b> The type of actions to render.',
83
+ description: `<b>[Storybook only]</b> The type of actions to render.
84
+ 'Navigation' renders an actions with an anchor tag.
85
+ 'Context' renders an actions with an onClick handler.
86
+ 'Random' - a mix of both`,
84
87
  control: {
85
88
  type: 'radio',
86
89
  },
@@ -5,14 +5,6 @@ import { ConfirmAction, DefaultHandler, LinkAction } from '../../models';
5
5
  export enum PageHeaderActionType {
6
6
  Active,
7
7
  Context,
8
- /**
9
- * @deprecated This value is no longer necessary for navigation type actions in the
10
- * `PageHeaderAction` component, and will be removed in the future.
11
- * To create a navigation link, use the `path` property instead of the `onClick` handler,
12
- * which will automatically generate an anchor element.
13
- * @note This deprecation only affects the `Navigation` enum value in the PageHeaderActionType
14
- */
15
- Navigation,
16
8
  }
17
9
 
18
10
  export type PageHeaderActionProps =
@@ -27,8 +19,6 @@ export interface PageHeaderJsActionProps
27
19
  /**
28
20
  * Whether the action is an 'Active' or 'Context' type.
29
21
  * Changes the background color to the corresponding action type. (default: 'Context')
30
- * Type `Navigation` is deprecated and will be removed in the future
31
- * define instead of `onClick` handler `path` property to render element with anchor tag
32
22
  */
33
23
  actionType?: PageHeaderActionType;
34
24
  }
@@ -25,6 +25,11 @@ const meta: Meta<typeof PageHeaderAction> = {
25
25
  },
26
26
  options: iconOptions,
27
27
  },
28
+ path: {
29
+ control: {
30
+ type: 'text',
31
+ },
32
+ },
28
33
  },
29
34
  decorators: [
30
35
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types