@commercetools-frontend/application-components 22.30.2 → 22.31.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.
- package/dist/commercetools-frontend-application-components.cjs.dev.js +86 -97
- package/dist/commercetools-frontend-application-components.cjs.prod.js +75 -88
- package/dist/commercetools-frontend-application-components.esm.js +86 -96
- package/dist/declarations/src/components/detail-pages/custom-form-detail-page/custom-form-detail-page.d.ts +30 -1
- package/dist/declarations/src/components/detail-pages/form-detail-page/form-detail-page.d.ts +54 -1
- package/dist/declarations/src/components/detail-pages/info-detail-page/info-detail-page.d.ts +21 -0
- package/dist/declarations/src/components/detail-pages/tabular-detail-page/tabular-detail-page.d.ts +30 -0
- package/dist/declarations/src/components/dialogs/form-dialog/form-dialog.d.ts +1 -0
- package/dist/declarations/src/components/dialogs/internals/dialog-footer.d.ts +2 -1
- package/dist/declarations/src/components/internals/page-header.d.ts +3 -0
- package/dist/declarations/src/components/main-pages/custom-form-main-page/custom-form-main-page.d.ts +35 -3
- package/dist/declarations/src/components/main-pages/form-main-page/form-main-page.d.ts +51 -2
- package/dist/declarations/src/components/main-pages/info-main-page/info-main-page.d.ts +15 -0
- package/dist/declarations/src/components/main-pages/tabular-main-page/tabular-main-page.d.ts +27 -1
- package/dist/declarations/src/components/modal-pages/custom-form-modal-page/custom-form-modal-page.d.ts +9 -0
- package/dist/declarations/src/components/modal-pages/form-modal-page/form-modal-page.d.ts +12 -1
- package/dist/declarations/src/components/modal-pages/info-modal-page/info-modal-page.d.ts +9 -0
- package/dist/declarations/src/components/modal-pages/internals/modal-page.d.ts +6 -0
- package/dist/declarations/src/components/modal-pages/tabular-modal-page/tabular-modal-page.d.ts +9 -0
- package/dist/declarations/src/components/portals-container/portals-container.d.ts +29 -0
- package/dist/declarations/src/components/public-page-layout/public-page-layout.d.ts +17 -0
- package/dist/declarations/src/components/tab-header/tab-header.d.ts +19 -0
- package/dist/declarations/src/types/generated/settings.d.ts +22 -0
- package/dist/{public-page-layout-684509fb.esm.js → public-page-layout-2b41c29a.esm.js} +1 -1
- package/dist/{public-page-layout-eae1f3c9.cjs.dev.js → public-page-layout-a290e3fe.cjs.dev.js} +1 -1
- package/dist/{public-page-layout-6cc4616e.cjs.prod.js → public-page-layout-b24f0bd7.cjs.prod.js} +1 -1
- package/package.json +26 -26
|
@@ -2,12 +2,31 @@ import type { ReactNode } from 'react';
|
|
|
2
2
|
import type { LocationDescriptor } from 'history';
|
|
3
3
|
import { type MessageDescriptor } from 'react-intl';
|
|
4
4
|
export type TTabHeaderProps = {
|
|
5
|
+
/**
|
|
6
|
+
* A route path to redirect to when the tab is clicked.
|
|
7
|
+
*/
|
|
5
8
|
to: string | LocationDescriptor;
|
|
9
|
+
/**
|
|
10
|
+
* The label of the tab.
|
|
11
|
+
* * <br />
|
|
12
|
+
* Required if `intlMessage` is not provided.
|
|
13
|
+
*/
|
|
6
14
|
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The label of the tab, using an `intl` message object.
|
|
17
|
+
* <br />
|
|
18
|
+
* Required if `label` is not provided.
|
|
19
|
+
*/
|
|
7
20
|
intlMessage?: MessageDescriptor & {
|
|
8
21
|
values?: Record<string, ReactNode>;
|
|
9
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* If `true`, indicates that the element is in a disabled state.
|
|
25
|
+
*/
|
|
10
26
|
isDisabled: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* If `true`, marks the tab as active if the link matches exactly the route.
|
|
29
|
+
*/
|
|
11
30
|
exactPathMatch: boolean;
|
|
12
31
|
};
|
|
13
32
|
export declare const TabHeader: {
|
|
@@ -11,6 +11,7 @@ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
|
11
11
|
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
12
12
|
[SubKey in K]: Maybe<T[SubKey]>;
|
|
13
13
|
};
|
|
14
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
14
15
|
export type Scalars = {
|
|
15
16
|
ID: string;
|
|
16
17
|
String: string;
|
|
@@ -98,6 +99,7 @@ export type TBusinessUnitsListMyViewTableInput = {
|
|
|
98
99
|
};
|
|
99
100
|
export declare enum TCategoryRecommendationSearchProperty {
|
|
100
101
|
Attribute = "Attribute",
|
|
102
|
+
/** @deprecated The machine learning APIs are not available anymore. */
|
|
101
103
|
MachineLearning = "MachineLearning",
|
|
102
104
|
ProductType = "ProductType"
|
|
103
105
|
}
|
|
@@ -197,11 +199,14 @@ export type TCustomApplicationMenuLink = {
|
|
|
197
199
|
__typename?: 'CustomApplicationMenuLink';
|
|
198
200
|
createdAt: Scalars['DateTime'];
|
|
199
201
|
defaultLabel: Scalars['String'];
|
|
202
|
+
/** @deprecated This field has been moved outside of the menu link. */
|
|
200
203
|
icon: Scalars['String'];
|
|
204
|
+
/** @deprecated This field has been renamed to icon. */
|
|
201
205
|
iconName?: Maybe<Scalars['String']>;
|
|
202
206
|
id: Scalars['ID'];
|
|
203
207
|
labelAllLocales: Array<TLocalizedField>;
|
|
204
208
|
permissions: Array<Scalars['String']>;
|
|
209
|
+
/** @deprecated This field has been moved outside of the menu link and is now a top level field. */
|
|
205
210
|
submenuLinks: Array<TCustomApplicationSubmenuLink>;
|
|
206
211
|
updatedAt: Scalars['DateTime'];
|
|
207
212
|
};
|
|
@@ -295,6 +300,10 @@ export type TCustomViewDraftDataInput = {
|
|
|
295
300
|
locators: Array<Scalars['String']>;
|
|
296
301
|
permissions: Array<TCustomViewPermissionDataInput>;
|
|
297
302
|
type: TCustomViewType;
|
|
303
|
+
/**
|
|
304
|
+
* The value of this property depends on the value of the 'type' property value.
|
|
305
|
+
* In case the `type` value is `CustomPanel`, you are supposed to provide it's size.
|
|
306
|
+
*/
|
|
298
307
|
typeSettings?: InputMaybe<TCustomViewTypeSettingsInput>;
|
|
299
308
|
url: Scalars['String'];
|
|
300
309
|
};
|
|
@@ -694,8 +703,10 @@ export type TMutation = {
|
|
|
694
703
|
deleteProjectSettingsStoresView?: Maybe<TProjectSettingsStoresView>;
|
|
695
704
|
installCustomApplication?: Maybe<TRestrictedCustomApplicationInstallationForOrganization>;
|
|
696
705
|
installCustomView?: Maybe<TRestrictedCustomViewInstallationForOrganization>;
|
|
706
|
+
/** @deprecated Experimental feature - For internal usage only */
|
|
697
707
|
moveMessagesFromDeadLetterQueueToMainQueue?: Maybe<TBatchProcessResult>;
|
|
698
708
|
random: Scalars['String'];
|
|
709
|
+
/** @deprecated Experimental feature - For internal usage only */
|
|
699
710
|
removeMessagesFromDeadLetterQueue?: Maybe<TBatchProcessResult>;
|
|
700
711
|
sendLinkToVerifyCustomApplicationsMaintainerContactEmail?: Maybe<TCustomApplicationsMaintainerContactEmailVerificationRequest>;
|
|
701
712
|
setCustomApplicationsMaintainerContactInformation?: Maybe<TOrganizationExtension>;
|
|
@@ -1337,6 +1348,7 @@ export type TProductTypeAttributesViewUpdateInput = {
|
|
|
1337
1348
|
};
|
|
1338
1349
|
export type TProjectExtension = {
|
|
1339
1350
|
__typename?: 'ProjectExtension';
|
|
1351
|
+
/** @deprecated Feature not available anymore */
|
|
1340
1352
|
applications: Array<TApplicationExtension>;
|
|
1341
1353
|
categoryRecommendationSettings?: Maybe<TCategoryRecommendationSettings>;
|
|
1342
1354
|
createdAt: Scalars['DateTime'];
|
|
@@ -1409,13 +1421,18 @@ export type TQuery = {
|
|
|
1409
1421
|
activeProductDiscountsCustomView?: Maybe<TDiscountsCustomView>;
|
|
1410
1422
|
activeProductTypeAttributesView?: Maybe<TProductTypeAttributesView>;
|
|
1411
1423
|
activeProjectSettingsStoresView?: Maybe<TProjectSettingsStoresView>;
|
|
1424
|
+
/** @deprecated Experimental feature - For internal usage only */
|
|
1412
1425
|
allAppliedCustomApplicationPermissions: Array<TCustomApplicationInstallationPermission>;
|
|
1426
|
+
/** @deprecated Experimental feature - For internal usage only */
|
|
1413
1427
|
allAppliedCustomViewPermissions: Array<TCustomViewInstallationPermission>;
|
|
1428
|
+
/** @deprecated Experimental feature - For internal usage only */
|
|
1414
1429
|
allCustomApplications: TCustomApplicationsPagedQueryResult;
|
|
1430
|
+
/** @deprecated Experimental feature - For internal usage only */
|
|
1415
1431
|
allCustomViews: TCustomViewsPagedQueryResult;
|
|
1416
1432
|
allCustomViewsInstallationsByLocator: Array<TRestrictedCustomViewInstallationForProject>;
|
|
1417
1433
|
allCustomViewsLocatorGroups: Array<TCustomViewLocatorGroup>;
|
|
1418
1434
|
allFeatures: Array<TFeature>;
|
|
1435
|
+
/** @deprecated Experimental feature - For internal usage only */
|
|
1419
1436
|
allOrganizationExtensions: Array<TOrganizationExtension>;
|
|
1420
1437
|
allProjectExtensions: Array<TProjectExtension>;
|
|
1421
1438
|
allPublicCustomApplicationsDevelopedByCommercetools: Array<TPublicCustomApplicationDevelopedByCommercetools>;
|
|
@@ -1423,7 +1440,9 @@ export type TQuery = {
|
|
|
1423
1440
|
businessUnitsListMyViews: Array<Maybe<TBusinessUnitsListMyView>>;
|
|
1424
1441
|
cartDiscountsCustomView?: Maybe<TDiscountsCustomView>;
|
|
1425
1442
|
cartDiscountsCustomViews: Array<Maybe<TDiscountsCustomView>>;
|
|
1443
|
+
/** @deprecated Experimental feature - For internal usage only */
|
|
1426
1444
|
customApplication?: Maybe<TCustomApplication>;
|
|
1445
|
+
/** @deprecated Experimental feature - For internal usage only */
|
|
1427
1446
|
customView?: Maybe<TCustomView>;
|
|
1428
1447
|
customersListView?: Maybe<TCustomersListView>;
|
|
1429
1448
|
customersListViews: Array<Maybe<TCustomersListView>>;
|
|
@@ -1433,6 +1452,7 @@ export type TQuery = {
|
|
|
1433
1452
|
dashboardViews: Array<Maybe<TDashboardView>>;
|
|
1434
1453
|
discountCodesCustomView?: Maybe<TDiscountsCustomView>;
|
|
1435
1454
|
discountCodesCustomViews: Array<Maybe<TDiscountsCustomView>>;
|
|
1455
|
+
/** @deprecated Experimental feature - For internal usage only */
|
|
1436
1456
|
globalOrganizationExtension?: Maybe<TOrganizationExtension>;
|
|
1437
1457
|
myCustomApplications: Array<TMyCustomApplication>;
|
|
1438
1458
|
myCustomViews: Array<TMyCustomView>;
|
|
@@ -1452,6 +1472,7 @@ export type TQuery = {
|
|
|
1452
1472
|
projectExtension?: Maybe<TProjectExtension>;
|
|
1453
1473
|
projectSettingsStoresView?: Maybe<TProjectSettingsStoresView>;
|
|
1454
1474
|
projectSettingsStoresViews: Array<Maybe<TProjectSettingsStoresView>>;
|
|
1475
|
+
/** @deprecated Experimental feature - For internal usage only */
|
|
1455
1476
|
readMessagesFromDeadLetterQueue: Array<TMessage>;
|
|
1456
1477
|
release?: Maybe<Scalars['String']>;
|
|
1457
1478
|
ruleBuilderQuickSelectionValues?: Maybe<Array<Maybe<TRuleBuilderQuickSelectionValues>>>;
|
|
@@ -1602,6 +1623,7 @@ export type TRestrictedCustomApplicationForProject = {
|
|
|
1602
1623
|
icon: Scalars['String'];
|
|
1603
1624
|
id: Scalars['ID'];
|
|
1604
1625
|
mainMenuLink: TCustomApplicationMenuLink;
|
|
1626
|
+
/** @deprecated This field has been renamed to mainMenuLink field. The nested submenuLinks is also now a top level field. */
|
|
1605
1627
|
menuLinks?: Maybe<TCustomApplicationMenuLink>;
|
|
1606
1628
|
name: Scalars['String'];
|
|
1607
1629
|
permissions: Array<TCustomApplicationPermission>;
|
package/dist/{public-page-layout-eae1f3c9.cjs.dev.js → public-page-layout-a290e3fe.cjs.dev.js}
RENAMED
|
@@ -104,7 +104,7 @@ const PublicPageLayout = props => {
|
|
|
104
104
|
children: props.legalMessage
|
|
105
105
|
}), jsxRuntime.jsx(Text__default["default"].Detail, {
|
|
106
106
|
tone: "secondary",
|
|
107
|
-
children:
|
|
107
|
+
children: `${year} © commercetools`
|
|
108
108
|
})]
|
|
109
109
|
})
|
|
110
110
|
})]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-components",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.31.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,31 +36,31 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@babel/runtime": "^7.22.15",
|
|
38
38
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
39
|
-
"@commercetools-frontend/actions-global": "22.
|
|
40
|
-
"@commercetools-frontend/application-config": "22.
|
|
41
|
-
"@commercetools-frontend/application-shell-connectors": "22.
|
|
42
|
-
"@commercetools-frontend/assets": "22.
|
|
43
|
-
"@commercetools-frontend/constants": "22.
|
|
44
|
-
"@commercetools-frontend/i18n": "22.
|
|
45
|
-
"@commercetools-frontend/l10n": "22.
|
|
46
|
-
"@commercetools-frontend/sentry": "22.
|
|
47
|
-
"@commercetools-uikit/accessible-button": "^19.
|
|
48
|
-
"@commercetools-uikit/card": "^19.
|
|
49
|
-
"@commercetools-uikit/constraints": "^19.
|
|
50
|
-
"@commercetools-uikit/design-system": "^19.
|
|
51
|
-
"@commercetools-uikit/flat-button": "^19.
|
|
52
|
-
"@commercetools-uikit/hooks": "^19.
|
|
53
|
-
"@commercetools-uikit/icon-button": "^19.
|
|
54
|
-
"@commercetools-uikit/icons": "^19.
|
|
55
|
-
"@commercetools-uikit/label": "^19.
|
|
56
|
-
"@commercetools-uikit/messages": "^19.
|
|
57
|
-
"@commercetools-uikit/primary-button": "^19.
|
|
58
|
-
"@commercetools-uikit/secondary-button": "^19.
|
|
59
|
-
"@commercetools-uikit/secondary-icon-button": "^19.
|
|
60
|
-
"@commercetools-uikit/spacings": "^19.
|
|
61
|
-
"@commercetools-uikit/stamp": "^19.
|
|
62
|
-
"@commercetools-uikit/text": "^19.
|
|
63
|
-
"@commercetools-uikit/utils": "^19.
|
|
39
|
+
"@commercetools-frontend/actions-global": "22.31.0",
|
|
40
|
+
"@commercetools-frontend/application-config": "22.31.0",
|
|
41
|
+
"@commercetools-frontend/application-shell-connectors": "22.31.0",
|
|
42
|
+
"@commercetools-frontend/assets": "22.31.0",
|
|
43
|
+
"@commercetools-frontend/constants": "22.31.0",
|
|
44
|
+
"@commercetools-frontend/i18n": "22.31.0",
|
|
45
|
+
"@commercetools-frontend/l10n": "22.31.0",
|
|
46
|
+
"@commercetools-frontend/sentry": "22.31.0",
|
|
47
|
+
"@commercetools-uikit/accessible-button": "^19.9.0",
|
|
48
|
+
"@commercetools-uikit/card": "^19.9.0",
|
|
49
|
+
"@commercetools-uikit/constraints": "^19.9.0",
|
|
50
|
+
"@commercetools-uikit/design-system": "^19.9.0",
|
|
51
|
+
"@commercetools-uikit/flat-button": "^19.9.0",
|
|
52
|
+
"@commercetools-uikit/hooks": "^19.9.0",
|
|
53
|
+
"@commercetools-uikit/icon-button": "^19.9.0",
|
|
54
|
+
"@commercetools-uikit/icons": "^19.9.0",
|
|
55
|
+
"@commercetools-uikit/label": "^19.9.0",
|
|
56
|
+
"@commercetools-uikit/messages": "^19.9.0",
|
|
57
|
+
"@commercetools-uikit/primary-button": "^19.9.0",
|
|
58
|
+
"@commercetools-uikit/secondary-button": "^19.9.0",
|
|
59
|
+
"@commercetools-uikit/secondary-icon-button": "^19.9.0",
|
|
60
|
+
"@commercetools-uikit/spacings": "^19.9.0",
|
|
61
|
+
"@commercetools-uikit/stamp": "^19.9.0",
|
|
62
|
+
"@commercetools-uikit/text": "^19.9.0",
|
|
63
|
+
"@commercetools-uikit/utils": "^19.9.0",
|
|
64
64
|
"@emotion/react": "^11.11.4",
|
|
65
65
|
"@emotion/styled": "^11.11.0",
|
|
66
66
|
"@flopflip/react-broadcast": "14.0.2",
|