@commercetools-frontend/application-components 22.8.4 → 22.9.1

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.
Files changed (29) hide show
  1. package/dist/commercetools-frontend-application-components.cjs.dev.js +340 -59
  2. package/dist/commercetools-frontend-application-components.cjs.prod.js +281 -38
  3. package/dist/commercetools-frontend-application-components.esm.js +340 -61
  4. package/dist/declarations/src/components/custom-views/custom-view-loader/custom-view-loader.d.ts +8 -0
  5. package/dist/declarations/src/components/custom-views/custom-view-loader/index.d.ts +1 -0
  6. package/dist/declarations/src/components/custom-views/custom-view-loader/messages.d.ts +7 -0
  7. package/dist/declarations/src/components/custom-views/custom-views-selector/custom-views-selector.d.ts +9 -0
  8. package/dist/declarations/src/components/custom-views/custom-views-selector/index.d.ts +1 -0
  9. package/dist/declarations/src/components/custom-views/custom-views-selector/messages.d.ts +7 -0
  10. package/dist/declarations/src/components/custom-views/custom-views-selector/use-custom-views-connector.d.ts +11 -0
  11. package/dist/declarations/src/components/detail-pages/custom-form-detail-page/custom-form-detail-page.d.ts +1 -0
  12. package/dist/declarations/src/components/detail-pages/form-detail-page/form-detail-page.d.ts +1 -0
  13. package/dist/declarations/src/components/detail-pages/info-detail-page/info-detail-page.d.ts +1 -0
  14. package/dist/declarations/src/components/detail-pages/tabular-detail-page/tabular-detail-page.d.ts +1 -0
  15. package/dist/declarations/src/components/main-pages/custom-form-main-page/custom-form-main-page.d.ts +1 -0
  16. package/dist/declarations/src/components/main-pages/form-main-page/form-main-page.d.ts +1 -0
  17. package/dist/declarations/src/components/main-pages/info-main-page/info-main-page.d.ts +1 -0
  18. package/dist/declarations/src/components/main-pages/tabular-main-page/tabular-main-page.d.ts +1 -0
  19. package/dist/declarations/src/components/modal-pages/custom-form-modal-page/custom-form-modal-page.d.ts +1 -0
  20. package/dist/declarations/src/components/modal-pages/form-modal-page/form-modal-page.d.ts +1 -0
  21. package/dist/declarations/src/components/modal-pages/info-modal-page/info-modal-page.d.ts +1 -0
  22. package/dist/declarations/src/components/modal-pages/internals/modal-page.d.ts +1 -0
  23. package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts +1 -0
  24. package/dist/declarations/src/index.d.ts +2 -0
  25. package/dist/declarations/src/types/generated/settings.d.ts +1832 -0
  26. package/dist/{public-page-layout-8cb7e83a.esm.js → public-page-layout-055bb438.esm.js} +5 -2
  27. package/dist/{public-page-layout-c1f12507.cjs.prod.js → public-page-layout-3653aa0b.cjs.prod.js} +5 -2
  28. package/dist/{public-page-layout-971ae258.cjs.dev.js → public-page-layout-c011d275.cjs.dev.js} +5 -2
  29. package/package.json +14 -8
@@ -0,0 +1,8 @@
1
+ import { CustomViewData } from '@commercetools-frontend/constants';
2
+ type TCustomViewLoaderProps = {
3
+ customView: CustomViewData;
4
+ hostUrl?: string;
5
+ onClose: () => void;
6
+ };
7
+ declare function CustomViewLoader(props: TCustomViewLoaderProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
8
+ export default CustomViewLoader;
@@ -0,0 +1 @@
1
+ export { default } from './custom-view-loader';
@@ -0,0 +1,7 @@
1
+ declare const messages: {
2
+ loadError: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ };
6
+ };
7
+ export default messages;
@@ -0,0 +1,9 @@
1
+ import { CustomViewData } from '@commercetools-frontend/constants';
2
+ type TCustomViewSelectorBaseProps = {
3
+ onCustomViewsResolved?: (customViews: CustomViewData[]) => void;
4
+ };
5
+ type TCustomViewSelectorProps = TCustomViewSelectorBaseProps & {
6
+ customViewLocatorCode?: string;
7
+ };
8
+ declare const CustomViewSelectorOrNothing: (props: TCustomViewSelectorProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
9
+ export default CustomViewSelectorOrNothing;
@@ -0,0 +1 @@
1
+ export { default } from './custom-views-selector';
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ title: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ };
6
+ };
7
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { CustomViewData } from '@commercetools-frontend/constants';
2
+ type TUseCustomViewsFetcherParams = {
3
+ customViewLocatorCode: string;
4
+ };
5
+ type TUseCustomViewsFetcher = (props: TUseCustomViewsFetcherParams) => {
6
+ customViews: CustomViewData[];
7
+ error?: Error;
8
+ loading: boolean;
9
+ };
10
+ export declare const useCustomViewsConnector: TUseCustomViewsFetcher;
11
+ export {};
@@ -13,6 +13,7 @@ type CustomFormDetailPageProps = {
13
13
  formControls?: ReactNode;
14
14
  hideControls?: boolean;
15
15
  previousPathLabel?: string | MessageDescriptor;
16
+ customViewLocatorCode?: string;
16
17
  onPreviousPathClick: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
17
18
  };
18
19
  declare const CustomFormDetailPage: {
@@ -9,6 +9,7 @@ type FormDetailPageProps = {
9
9
  title?: string;
10
10
  subtitle?: string | ReactElement;
11
11
  customTitleRow?: ReactNode;
12
+ customViewLocatorCode?: string;
12
13
  children: ReactNode;
13
14
  previousPathLabel?: string | MessageDescriptor;
14
15
  onPreviousPathClick: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
@@ -11,6 +11,7 @@ type InfoDetailPageProps = {
11
11
  customTitleRow?: ReactNode;
12
12
  children: ReactNode;
13
13
  previousPathLabel?: string | MessageDescriptor;
14
+ customViewLocatorCode?: string;
14
15
  onPreviousPathClick: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
15
16
  };
16
17
  declare const InfoDetailPage: {
@@ -13,6 +13,7 @@ type TTabularDetailPageProps = {
13
13
  tabControls: ReactNode;
14
14
  formControls?: ReactNode;
15
15
  hideControls: boolean;
16
+ customViewLocatorCode?: string;
16
17
  previousPathLabel?: string | MessageDescriptor;
17
18
  onPreviousPathClick: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
18
19
  };
@@ -3,6 +3,7 @@ type CustomFormMainPageProps = {
3
3
  title?: string;
4
4
  subtitle?: string | ReactElement;
5
5
  customTitleRow?: ReactNode;
6
+ customViewLocatorCode?: string;
6
7
  children: ReactNode;
7
8
  formControls?: ReactNode;
8
9
  hideControls?: boolean;
@@ -22,6 +22,7 @@ type FormMainPageProps = {
22
22
  labelPrimaryButton?: Label;
23
23
  labelSecondaryButton?: Label;
24
24
  iconLeftSecondaryButton?: ReactElement;
25
+ customViewLocatorCode?: string;
25
26
  onPrimaryButtonClick: (event: SyntheticEvent) => void;
26
27
  onSecondaryButtonClick: (event: SyntheticEvent) => void;
27
28
  };
@@ -3,6 +3,7 @@ type InfoMainPageProps = {
3
3
  title?: string;
4
4
  subtitle?: string | ReactElement;
5
5
  customTitleRow?: ReactNode;
6
+ customViewLocatorCode?: string;
6
7
  children: ReactNode;
7
8
  };
8
9
  declare const InfoMainPage: {
@@ -7,6 +7,7 @@ type TTabularMainPageProps = {
7
7
  tabControls: ReactNode;
8
8
  formControls?: ReactNode;
9
9
  hideControls: boolean;
10
+ customViewLocatorCode?: string;
10
11
  };
11
12
  declare const TabularMainPage: {
12
13
  (props: TTabularMainPageProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
@@ -10,6 +10,7 @@ type Props = {
10
10
  level?: number;
11
11
  title: string;
12
12
  isOpen: boolean;
13
+ customViewLocatorCode?: string;
13
14
  onClose?: (event: SyntheticEvent) => void;
14
15
  children: ReactNode;
15
16
  zIndex?: number;
@@ -11,6 +11,7 @@ type Props = {
11
11
  title: string;
12
12
  isOpen: boolean;
13
13
  onClose?: (event: SyntheticEvent) => void;
14
+ customViewLocatorCode?: string;
14
15
  children: ReactNode;
15
16
  zIndex?: number;
16
17
  baseZIndex?: number;
@@ -10,6 +10,7 @@ type Props = {
10
10
  level?: number;
11
11
  title: string;
12
12
  isOpen: boolean;
13
+ customViewLocatorCode?: string;
13
14
  onClose?: (event: SyntheticEvent) => void;
14
15
  children: ReactNode;
15
16
  zIndex?: number;
@@ -11,6 +11,7 @@ type Props = {
11
11
  level?: number;
12
12
  title: string;
13
13
  isOpen: boolean;
14
+ customViewLocatorCode?: string;
14
15
  onClose?: (event: SyntheticEvent) => void;
15
16
  children: ReactNode;
16
17
  zIndex?: number;
@@ -10,6 +10,7 @@ type Props = {
10
10
  level?: number;
11
11
  title: string;
12
12
  isOpen: boolean;
13
+ customViewLocatorCode?: string;
13
14
  onClose?: (event: SyntheticEvent) => void;
14
15
  children: ReactNode;
15
16
  zIndex?: number;
@@ -26,6 +26,8 @@ export type { TPageContentWide } from './components/page-content-containers/page
26
26
  export { default as PageContentFull } from './components/page-content-containers/page-content-full';
27
27
  export type { TPageContentFull } from './components/page-content-containers/page-content-full';
28
28
  export { default as CustomPanel } from './components/custom-views/custom-panel';
29
+ export { default as CustomViewLoader } from './components/custom-views/custom-view-loader';
30
+ export { default as CustomViewsSelector } from './components/custom-views/custom-views-selector';
29
31
  export { default as PortalsContainer } from './components/portals-container';
30
32
  export { default as useModalState } from './hooks/use-modal-state';
31
33
  export * from './theming';