@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.
- package/dist/commercetools-frontend-application-components.cjs.dev.js +340 -59
- package/dist/commercetools-frontend-application-components.cjs.prod.js +281 -38
- package/dist/commercetools-frontend-application-components.esm.js +340 -61
- package/dist/declarations/src/components/custom-views/custom-view-loader/custom-view-loader.d.ts +8 -0
- package/dist/declarations/src/components/custom-views/custom-view-loader/index.d.ts +1 -0
- package/dist/declarations/src/components/custom-views/custom-view-loader/messages.d.ts +7 -0
- package/dist/declarations/src/components/custom-views/custom-views-selector/custom-views-selector.d.ts +9 -0
- package/dist/declarations/src/components/custom-views/custom-views-selector/index.d.ts +1 -0
- package/dist/declarations/src/components/custom-views/custom-views-selector/messages.d.ts +7 -0
- package/dist/declarations/src/components/custom-views/custom-views-selector/use-custom-views-connector.d.ts +11 -0
- package/dist/declarations/src/components/detail-pages/custom-form-detail-page/custom-form-detail-page.d.ts +1 -0
- package/dist/declarations/src/components/detail-pages/form-detail-page/form-detail-page.d.ts +1 -0
- package/dist/declarations/src/components/detail-pages/info-detail-page/info-detail-page.d.ts +1 -0
- package/dist/declarations/src/components/detail-pages/tabular-detail-page/tabular-detail-page.d.ts +1 -0
- package/dist/declarations/src/components/main-pages/custom-form-main-page/custom-form-main-page.d.ts +1 -0
- package/dist/declarations/src/components/main-pages/form-main-page/form-main-page.d.ts +1 -0
- package/dist/declarations/src/components/main-pages/info-main-page/info-main-page.d.ts +1 -0
- package/dist/declarations/src/components/main-pages/tabular-main-page/tabular-main-page.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/custom-form-modal-page/custom-form-modal-page.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/form-modal-page/form-modal-page.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/info-modal-page/info-modal-page.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/internals/modal-page.d.ts +1 -0
- package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts +1 -0
- package/dist/declarations/src/index.d.ts +2 -0
- package/dist/declarations/src/types/generated/settings.d.ts +1832 -0
- package/dist/{public-page-layout-8cb7e83a.esm.js → public-page-layout-055bb438.esm.js} +5 -2
- package/dist/{public-page-layout-c1f12507.cjs.prod.js → public-page-layout-3653aa0b.cjs.prod.js} +5 -2
- package/dist/{public-page-layout-971ae258.cjs.dev.js → public-page-layout-c011d275.cjs.dev.js} +5 -2
- package/package.json +14 -8
package/dist/declarations/src/components/custom-views/custom-view-loader/custom-view-loader.d.ts
ADDED
|
@@ -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,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,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: {
|
package/dist/declarations/src/components/detail-pages/form-detail-page/form-detail-page.d.ts
CHANGED
|
@@ -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;
|
package/dist/declarations/src/components/detail-pages/info-detail-page/info-detail-page.d.ts
CHANGED
|
@@ -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: {
|
package/dist/declarations/src/components/detail-pages/tabular-detail-page/tabular-detail-page.d.ts
CHANGED
|
@@ -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
|
};
|
|
@@ -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
|
};
|
package/dist/declarations/src/components/main-pages/tabular-main-page/tabular-main-page.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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';
|