@commercetools-frontend/application-components 22.17.2 → 22.18.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.
@@ -5,10 +5,11 @@ type MessageDescriptor = {
5
5
  defaultMessage?: string;
6
6
  };
7
7
  type Label = string | MessageDescriptor;
8
- type Props = {
8
+ export type TConfirmationDialogProps = {
9
9
  isOpen: boolean;
10
10
  onClose?: (event: SyntheticEvent) => void;
11
- title: string;
11
+ title: ReactNode;
12
+ 'aria-label'?: string;
12
13
  size?: 'm' | 'l' | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 'scale';
13
14
  zIndex?: number;
14
15
  children: ReactNode;
@@ -26,9 +27,9 @@ type Props = {
26
27
  getParentSelector?: () => HTMLElement;
27
28
  };
28
29
  declare const ConfirmationDialog: {
29
- (props: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
30
+ (props: TConfirmationDialogProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
30
31
  displayName: string;
31
- defaultProps: Pick<Props, "labelSecondary" | "labelPrimary">;
32
+ defaultProps: Pick<TConfirmationDialogProps, "labelSecondary" | "labelPrimary">;
32
33
  Intl: {
33
34
  cancel: {
34
35
  id: string;
@@ -103,5 +104,8 @@ declare const ConfirmationDialog: {
103
104
  defaultMessage: string;
104
105
  };
105
106
  };
107
+ TextTitle: (props: {
108
+ title: string;
109
+ }) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
106
110
  };
107
111
  export default ConfirmationDialog;
@@ -1 +1 @@
1
- export { default } from './confirmation-dialog';
1
+ export { default, type TConfirmationDialogProps } from './confirmation-dialog';
@@ -5,10 +5,11 @@ type MessageDescriptor = {
5
5
  defaultMessage?: string;
6
6
  };
7
7
  type Label = string | MessageDescriptor;
8
- type Props = {
8
+ export type TFormDialogProps = {
9
9
  isOpen: boolean;
10
10
  onClose?: (event: SyntheticEvent) => void;
11
- title: string;
11
+ title: ReactNode;
12
+ 'aria-label'?: string;
12
13
  size?: 'm' | 'l' | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 'scale';
13
14
  zIndex?: number;
14
15
  children: ReactNode;
@@ -27,9 +28,9 @@ type Props = {
27
28
  iconLeftSecondaryButton?: ReactElement;
28
29
  };
29
30
  declare const FormDialog: {
30
- (props: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
31
+ (props: TFormDialogProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
31
32
  displayName: string;
32
- defaultProps: Pick<Props, "labelSecondary" | "labelPrimary">;
33
+ defaultProps: Pick<TFormDialogProps, "labelSecondary" | "labelPrimary">;
33
34
  Intl: {
34
35
  cancel: {
35
36
  id: string;
@@ -104,5 +105,8 @@ declare const FormDialog: {
104
105
  defaultMessage: string;
105
106
  };
106
107
  };
108
+ TextTitle: (props: {
109
+ title: string;
110
+ }) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
107
111
  };
108
112
  export default FormDialog;
@@ -1 +1 @@
1
- export { default } from './form-dialog';
1
+ export { default, type TFormDialogProps } from './form-dialog';
@@ -1 +1 @@
1
- export { default } from './info-dialog';
1
+ export { default, type TInfoDialogProps } from './info-dialog';
@@ -1,15 +1,19 @@
1
1
  import { SyntheticEvent, ReactNode } from 'react';
2
- type Props = {
2
+ export type TInfoDialogProps = {
3
3
  isOpen: boolean;
4
4
  onClose?: (event: SyntheticEvent) => void;
5
5
  size?: 'm' | 'l' | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 'scale';
6
6
  zIndex?: number;
7
- title: string;
7
+ title: ReactNode;
8
+ 'aria-label'?: string;
8
9
  children: ReactNode;
9
10
  getParentSelector?: () => HTMLElement;
10
11
  };
11
12
  declare const InfoDialog: {
12
- (props: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
13
+ (props: TInfoDialogProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
13
14
  displayName: string;
15
+ TextTitle: (props: {
16
+ title: string;
17
+ }) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
14
18
  };
15
19
  export default InfoDialog;
@@ -5,7 +5,8 @@ type Props = {
5
5
  onClose?: (event: SyntheticEvent) => void;
6
6
  size: 'm' | 'l' | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 'scale';
7
7
  zIndex?: number;
8
- title: string;
8
+ title: ReactNode;
9
+ 'aria-label'?: string;
9
10
  children: ReactNode;
10
11
  getParentSelector: typeof getDefaultParentSelector;
11
12
  };
@@ -1,9 +1,13 @@
1
- import type { SyntheticEvent } from 'react';
1
+ import type { ReactNode, SyntheticEvent } from 'react';
2
2
  type Props = {
3
- title: string;
3
+ title: ReactNode;
4
4
  onClose?: (event: SyntheticEvent) => void;
5
5
  children?: never;
6
6
  };
7
+ type TTextTitleProps = {
8
+ title: string;
9
+ };
10
+ export declare const TextTitle: (props: TTextTitleProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
7
11
  declare const DialogHeader: {
8
12
  (props: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
9
13
  displayName: string;
@@ -0,0 +1,19 @@
1
+ declare const _default: {
2
+ ProjectProduction: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ };
6
+ ProjectSuspended: {
7
+ id: string;
8
+ defaultMessage: string;
9
+ };
10
+ ProjectExpired: {
11
+ id: string;
12
+ defaultMessage: string;
13
+ };
14
+ ProjectWillExpire: {
15
+ id: string;
16
+ defaultMessage: string;
17
+ };
18
+ };
19
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const ProjectStamp: {
2
+ IsProduction: () => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
3
+ IsSuspended: () => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
4
+ IsExpired: () => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
5
+ WillExpire: (props: {
6
+ daysLeft: number;
7
+ }) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
8
+ };
9
+ export default ProjectStamp;
@@ -29,6 +29,7 @@ export type { TPageContentFull } from './components/page-content-containers/page
29
29
  export { default as Drawer } from './components/drawer';
30
30
  export { default as CustomViewLoader } from './components/custom-views/custom-view-loader';
31
31
  export { default as CustomViewsSelector } from './components/custom-views/custom-views-selector';
32
+ export { default as ProjectStamp } from './components/project-stamp/project-stamp';
32
33
  export { default as PortalsContainer } from './components/portals-container';
33
34
  export { default as useModalState } from './hooks/use-modal-state';
34
35
  export * from './theming';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/application-components",
3
- "version": "22.17.2",
3
+ "version": "22.18.0",
4
4
  "description": "Generic components for building Merchant Center applications",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -36,16 +36,17 @@
36
36
  "dependencies": {
37
37
  "@babel/runtime": "^7.22.15",
38
38
  "@babel/runtime-corejs3": "^7.22.15",
39
- "@commercetools-frontend/actions-global": "22.17.2",
40
- "@commercetools-frontend/application-config": "22.17.2",
41
- "@commercetools-frontend/application-shell-connectors": "22.17.2",
42
- "@commercetools-frontend/assets": "22.17.2",
43
- "@commercetools-frontend/constants": "22.17.2",
44
- "@commercetools-frontend/i18n": "22.17.2",
45
- "@commercetools-frontend/l10n": "22.17.2",
46
- "@commercetools-frontend/sentry": "22.17.2",
39
+ "@commercetools-frontend/actions-global": "22.18.0",
40
+ "@commercetools-frontend/application-config": "22.18.0",
41
+ "@commercetools-frontend/application-shell-connectors": "22.18.0",
42
+ "@commercetools-frontend/assets": "22.18.0",
43
+ "@commercetools-frontend/constants": "22.18.0",
44
+ "@commercetools-frontend/i18n": "22.18.0",
45
+ "@commercetools-frontend/l10n": "22.18.0",
46
+ "@commercetools-frontend/sentry": "22.18.0",
47
47
  "@commercetools-uikit/accessible-button": "^18.1.0",
48
48
  "@commercetools-uikit/card": "^18.1.0",
49
+ "@commercetools-uikit/stamp": "^18.1.0",
49
50
  "@commercetools-uikit/constraints": "^18.1.0",
50
51
  "@commercetools-uikit/design-system": "^18.1.0",
51
52
  "@commercetools-uikit/flat-button": "^18.1.0",