@commercetools-frontend/application-shell-connectors 22.4.0 → 22.6.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-shell-connectors.cjs.dev.js +3 -2
- package/dist/commercetools-frontend-application-shell-connectors.cjs.prod.js +3 -2
- package/dist/commercetools-frontend-application-shell-connectors.esm.js +3 -2
- package/dist/declarations/src/components/application-context/application-context.d.ts +3 -0
- package/dist/declarations/src/types/generated/mc.d.ts +20 -4
- package/dist/declarations/src/types/generated/settings.d.ts +27 -0
- package/package.json +3 -3
|
@@ -46,7 +46,7 @@ var _valuesInstanceProperty__default = /*#__PURE__*/_interopDefault(_valuesInsta
|
|
|
46
46
|
var warning__default = /*#__PURE__*/_interopDefault(warning);
|
|
47
47
|
|
|
48
48
|
// NOTE: This string will be replaced on build time with the package version.
|
|
49
|
-
var version = "22.
|
|
49
|
+
var version = "22.6.0";
|
|
50
50
|
|
|
51
51
|
const mcHostnameRegex = /^mc(-(\d){4,})?\.(.*)$/;
|
|
52
52
|
const mcPreviewHostnameRegex = /^.*\.mc-preview\.(.*)$/;
|
|
@@ -293,7 +293,8 @@ const mapProjectToApplicationContextProject = project => {
|
|
|
293
293
|
currencies: project.currencies,
|
|
294
294
|
languages: project.languages,
|
|
295
295
|
ownerId: project.owner.id,
|
|
296
|
-
ownerName: project.owner.name
|
|
296
|
+
ownerName: project.owner.name,
|
|
297
|
+
sampleDataImportDataset: project.sampleDataImportDataset
|
|
297
298
|
};
|
|
298
299
|
};
|
|
299
300
|
const createApplicationContext = (environment, user, project, projectDataLocale) => ({
|
|
@@ -44,7 +44,7 @@ var _Object$entries__default = /*#__PURE__*/_interopDefault(_Object$entries);
|
|
|
44
44
|
var _valuesInstanceProperty__default = /*#__PURE__*/_interopDefault(_valuesInstanceProperty);
|
|
45
45
|
|
|
46
46
|
// NOTE: This string will be replaced on build time with the package version.
|
|
47
|
-
var version = "22.
|
|
47
|
+
var version = "22.6.0";
|
|
48
48
|
|
|
49
49
|
const mcHostnameRegex = /^mc(-(\d){4,})?\.(.*)$/;
|
|
50
50
|
const mcPreviewHostnameRegex = /^.*\.mc-preview\.(.*)$/;
|
|
@@ -291,7 +291,8 @@ const mapProjectToApplicationContextProject = project => {
|
|
|
291
291
|
currencies: project.currencies,
|
|
292
292
|
languages: project.languages,
|
|
293
293
|
ownerId: project.owner.id,
|
|
294
|
-
ownerName: project.owner.name
|
|
294
|
+
ownerName: project.owner.name,
|
|
295
|
+
sampleDataImportDataset: project.sampleDataImportDataset
|
|
295
296
|
};
|
|
296
297
|
};
|
|
297
298
|
const createApplicationContext = (environment, user, project, projectDataLocale) => ({
|
|
@@ -23,7 +23,7 @@ import warning from 'tiny-warning';
|
|
|
23
23
|
import { GRAPHQL_TARGETS } from '@commercetools-frontend/constants';
|
|
24
24
|
|
|
25
25
|
// NOTE: This string will be replaced on build time with the package version.
|
|
26
|
-
var version = "22.
|
|
26
|
+
var version = "22.6.0";
|
|
27
27
|
|
|
28
28
|
const mcHostnameRegex = /^mc(-(\d){4,})?\.(.*)$/;
|
|
29
29
|
const mcPreviewHostnameRegex = /^.*\.mc-preview\.(.*)$/;
|
|
@@ -270,7 +270,8 @@ const mapProjectToApplicationContextProject = project => {
|
|
|
270
270
|
currencies: project.currencies,
|
|
271
271
|
languages: project.languages,
|
|
272
272
|
ownerId: project.owner.id,
|
|
273
|
-
ownerName: project.owner.name
|
|
273
|
+
ownerName: project.owner.name,
|
|
274
|
+
sampleDataImportDataset: project.sampleDataImportDataset
|
|
274
275
|
};
|
|
275
276
|
};
|
|
276
277
|
const createApplicationContext = (environment, user, project, projectDataLocale) => ({
|
|
@@ -34,6 +34,7 @@ declare const Context: import("react").Context<{}>;
|
|
|
34
34
|
export declare const mapUserToApplicationContextUser: (user?: TFetchedUser) => TApplicationContextUser | null;
|
|
35
35
|
export declare const mapEnvironmentToApplicationContextEnvironment: <AdditionalEnvironmentProperties extends {}>(environment: AdditionalEnvironmentProperties & {
|
|
36
36
|
applicationId: string;
|
|
37
|
+
customViewId?: string | undefined;
|
|
37
38
|
applicationName: string;
|
|
38
39
|
entryPointUriPath: string;
|
|
39
40
|
revision: string;
|
|
@@ -52,6 +53,7 @@ export declare const mapEnvironmentToApplicationContextEnvironment: <AdditionalE
|
|
|
52
53
|
}, origin?: string) => AdditionalEnvironmentProperties & {
|
|
53
54
|
mcApiUrl: string;
|
|
54
55
|
applicationId: string;
|
|
56
|
+
customViewId?: string | undefined;
|
|
55
57
|
applicationName: string;
|
|
56
58
|
entryPointUriPath: string;
|
|
57
59
|
revision: string;
|
|
@@ -76,6 +78,7 @@ export declare const mapProjectToApplicationContextProject: (project?: TFetchedP
|
|
|
76
78
|
languages: string[];
|
|
77
79
|
ownerId: string;
|
|
78
80
|
ownerName: string;
|
|
81
|
+
sampleDataImportDataset: string | null | undefined;
|
|
79
82
|
} | null;
|
|
80
83
|
export type TApplicationContext<AdditionalEnvironmentProperties extends {}> = {
|
|
81
84
|
environment: AdditionalEnvironmentProperties & TApplicationContextEnvironment;
|
|
@@ -95,6 +95,12 @@ export type TIdTokenUserInfo = {
|
|
|
95
95
|
name?: Maybe<Scalars['String']>;
|
|
96
96
|
sub: Scalars['String'];
|
|
97
97
|
};
|
|
98
|
+
export type TImportResponse = {
|
|
99
|
+
__typename?: 'ImportResponse';
|
|
100
|
+
hasImportedSampleData?: Maybe<Scalars['Boolean']>;
|
|
101
|
+
importedSampleData?: Maybe<Scalars['String']>;
|
|
102
|
+
projectKey?: Maybe<Scalars['String']>;
|
|
103
|
+
};
|
|
98
104
|
export type TInvitationInput = {
|
|
99
105
|
emails: Array<Scalars['String']>;
|
|
100
106
|
organization: TInvitationOrganizationInput;
|
|
@@ -149,6 +155,7 @@ export type TMutation = {
|
|
|
149
155
|
createOAuthClient: TOAuthClient;
|
|
150
156
|
deleteAccount: TDeletedUser;
|
|
151
157
|
deleteOAuthClient: TOAuthClient;
|
|
158
|
+
importSampleData: TImportResponse;
|
|
152
159
|
invite: Array<TInvitationResult>;
|
|
153
160
|
random: Scalars['String'];
|
|
154
161
|
resetPassword: TResetUser;
|
|
@@ -174,6 +181,9 @@ export type TMutation_DeleteAccountArgs = {
|
|
|
174
181
|
export type TMutation_DeleteOAuthClientArgs = {
|
|
175
182
|
id: Scalars['ID'];
|
|
176
183
|
};
|
|
184
|
+
export type TMutation_ImportSampleDataArgs = {
|
|
185
|
+
projectKey: Scalars['String'];
|
|
186
|
+
};
|
|
177
187
|
export type TMutation_InviteArgs = {
|
|
178
188
|
draft: TInvitationInput;
|
|
179
189
|
origin?: InputMaybe<Scalars['String']>;
|
|
@@ -229,7 +239,7 @@ export type TOAuthClientQueryResult = TQueryResult & {
|
|
|
229
239
|
export type TOAuthClientTemplate = {
|
|
230
240
|
__typename?: 'OAuthClientTemplate';
|
|
231
241
|
key: Scalars['String'];
|
|
232
|
-
oAuthScopes: Array<
|
|
242
|
+
oAuthScopes: Array<Scalars['String']>;
|
|
233
243
|
};
|
|
234
244
|
export type TOrganization = {
|
|
235
245
|
__typename?: 'Organization';
|
|
@@ -264,6 +274,8 @@ export declare enum TPermissionScope {
|
|
|
264
274
|
ManageCartDiscounts = "manage_cart_discounts",
|
|
265
275
|
ManageCategories = "manage_categories",
|
|
266
276
|
ManageChangeHistory = "manage_change_history",
|
|
277
|
+
ManageConnectors = "manage_connectors",
|
|
278
|
+
ManageConnectorsDeployments = "manage_connectors_deployments",
|
|
267
279
|
ManageCustomerGroups = "manage_customer_groups",
|
|
268
280
|
ManageCustomers = "manage_customers",
|
|
269
281
|
ManageDiscountCodes = "manage_discount_codes",
|
|
@@ -305,6 +317,8 @@ export declare enum TPermissionScope {
|
|
|
305
317
|
ViewCartDiscounts = "view_cart_discounts",
|
|
306
318
|
ViewCategories = "view_categories",
|
|
307
319
|
ViewChangeHistory = "view_change_history",
|
|
320
|
+
ViewConnectors = "view_connectors",
|
|
321
|
+
ViewConnectorsDeployments = "view_connectors_deployments",
|
|
308
322
|
ViewCustomerGroups = "view_customer_groups",
|
|
309
323
|
ViewCustomers = "view_customers",
|
|
310
324
|
ViewDiscountCodes = "view_discount_codes",
|
|
@@ -351,6 +365,7 @@ export type TProject = TMetaData & {
|
|
|
351
365
|
name: Scalars['String'];
|
|
352
366
|
owner: TOrganization;
|
|
353
367
|
plan: Scalars['String'];
|
|
368
|
+
sampleDataImportDataset?: Maybe<Scalars['String']>;
|
|
354
369
|
shippingRateInputType?: Maybe<TShippingRateInputType>;
|
|
355
370
|
suspension: TProjectSuspension;
|
|
356
371
|
version?: Maybe<Scalars['Int']>;
|
|
@@ -379,12 +394,12 @@ export type TProjectPendingCreation = {
|
|
|
379
394
|
};
|
|
380
395
|
export type TProjectPermission = {
|
|
381
396
|
__typename?: 'ProjectPermission';
|
|
382
|
-
key:
|
|
397
|
+
key: Scalars['String'];
|
|
383
398
|
projectKey?: Maybe<Scalars['String']>;
|
|
384
399
|
storeKey?: Maybe<Scalars['String']>;
|
|
385
400
|
};
|
|
386
401
|
export type TProjectPermissionInput = {
|
|
387
|
-
key:
|
|
402
|
+
key: Scalars['String'];
|
|
388
403
|
projectKey?: InputMaybe<Scalars['String']>;
|
|
389
404
|
storeKey?: InputMaybe<Scalars['String']>;
|
|
390
405
|
};
|
|
@@ -424,7 +439,7 @@ export type TQuery = {
|
|
|
424
439
|
project?: Maybe<TProject>;
|
|
425
440
|
release?: Maybe<Scalars['String']>;
|
|
426
441
|
releases?: Maybe<TReleaseHistory>;
|
|
427
|
-
storeOAuthScopes: Array<
|
|
442
|
+
storeOAuthScopes: Array<Scalars['String']>;
|
|
428
443
|
};
|
|
429
444
|
export type TQuery_AllImpliedOAuthScopesArgs = {
|
|
430
445
|
onlyConfiguredOnTrustedClient?: InputMaybe<Scalars['Boolean']>;
|
|
@@ -618,6 +633,7 @@ export type TFetchProjectQuery = {
|
|
|
618
633
|
currencies: Array<string>;
|
|
619
634
|
languages: Array<string>;
|
|
620
635
|
initialized: boolean;
|
|
636
|
+
sampleDataImportDataset?: string | null;
|
|
621
637
|
expiry: {
|
|
622
638
|
__typename?: 'ProjectExpiry';
|
|
623
639
|
isActive: boolean;
|
|
@@ -22,6 +22,9 @@ export type Scalars = {
|
|
|
22
22
|
[key: string]: unknown;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
|
+
export type TAllPublicCustomApplicationsDevelopedByCommercetoolsQueryInput = {
|
|
26
|
+
organizationId?: InputMaybe<Scalars['String']>;
|
|
27
|
+
};
|
|
25
28
|
export type TApplicationExtension = {
|
|
26
29
|
__typename?: 'ApplicationExtension';
|
|
27
30
|
createdAt: Scalars['DateTime'];
|
|
@@ -505,7 +508,9 @@ export type TMutation = {
|
|
|
505
508
|
setOrganizationExtensionOidcSsoConfig?: Maybe<TOrganizationExtension>;
|
|
506
509
|
setProjectExtensionCategoryRecommendation?: Maybe<TProjectExtension>;
|
|
507
510
|
setProjectExtensionImageRegex?: Maybe<TProjectExtension>;
|
|
511
|
+
setProjectExtensionImportSampleDataset?: Maybe<TProjectExtension>;
|
|
508
512
|
setProjectExtensionOrderStatesVisibility?: Maybe<TProjectExtension>;
|
|
513
|
+
setProjectExtensionRichTextEditorSettings?: Maybe<TProjectExtension>;
|
|
509
514
|
uninstallCustomApplication?: Maybe<TRestrictedCustomApplicationInstallationForOrganization>;
|
|
510
515
|
updateCartDiscountsCustomView?: Maybe<TDiscountsCustomView>;
|
|
511
516
|
updateCustomApplication?: Maybe<TRestrictedCustomApplicationForOrganization>;
|
|
@@ -676,9 +681,15 @@ export type TMutation_SetProjectExtensionCategoryRecommendationArgs = {
|
|
|
676
681
|
export type TMutation_SetProjectExtensionImageRegexArgs = {
|
|
677
682
|
data?: InputMaybe<TImageRegexDataInput>;
|
|
678
683
|
};
|
|
684
|
+
export type TMutation_SetProjectExtensionImportSampleDatasetArgs = {
|
|
685
|
+
data?: InputMaybe<TSampleDatasets>;
|
|
686
|
+
};
|
|
679
687
|
export type TMutation_SetProjectExtensionOrderStatesVisibilityArgs = {
|
|
680
688
|
data?: InputMaybe<Array<InputMaybe<TOrderStatesVisibility>>>;
|
|
681
689
|
};
|
|
690
|
+
export type TMutation_SetProjectExtensionRichTextEditorSettingsArgs = {
|
|
691
|
+
data?: InputMaybe<TRichTextEditorSettingsInput>;
|
|
692
|
+
};
|
|
682
693
|
export type TMutation_UninstallCustomApplicationArgs = {
|
|
683
694
|
installedApplicationId: Scalars['ID'];
|
|
684
695
|
organizationId: Scalars['String'];
|
|
@@ -963,8 +974,10 @@ export type TProjectExtension = {
|
|
|
963
974
|
id: Scalars['ID'];
|
|
964
975
|
imageRegex?: Maybe<TImageRegex>;
|
|
965
976
|
installedApplications?: Maybe<Array<TRestrictedCustomApplicationInstallationForProject>>;
|
|
977
|
+
isRichTextEditorEnabled: Scalars['Boolean'];
|
|
966
978
|
orderStatesVisibility: Array<TOrderStatesVisibility>;
|
|
967
979
|
projectKey: Scalars['String'];
|
|
980
|
+
sampleDataImport?: Maybe<TSampleDataImportMetadata>;
|
|
968
981
|
updatedAt: Scalars['DateTime'];
|
|
969
982
|
};
|
|
970
983
|
export type TProjectExtension_ApplicationsArgs = {
|
|
@@ -1047,6 +1060,9 @@ export type TQuery_AllFeaturesArgs = {
|
|
|
1047
1060
|
export type TQuery_AllOrganizationExtensionsArgs = {
|
|
1048
1061
|
organizationIds?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
|
|
1049
1062
|
};
|
|
1063
|
+
export type TQuery_AllPublicCustomApplicationsDevelopedByCommercetoolsArgs = {
|
|
1064
|
+
params?: InputMaybe<TAllPublicCustomApplicationsDevelopedByCommercetoolsQueryInput>;
|
|
1065
|
+
};
|
|
1050
1066
|
export type TQuery_CartDiscountsCustomViewArgs = {
|
|
1051
1067
|
id: Scalars['ID'];
|
|
1052
1068
|
};
|
|
@@ -1175,6 +1191,9 @@ export type TRestrictedCustomApplicationInstallationForProject = {
|
|
|
1175
1191
|
export type TRestrictedCustomApplicationInstallationForProjectWhereInput = {
|
|
1176
1192
|
entryPointUriPath?: InputMaybe<Scalars['String']>;
|
|
1177
1193
|
};
|
|
1194
|
+
export type TRichTextEditorSettingsInput = {
|
|
1195
|
+
isRichTextEditorEnabled: Scalars['Boolean'];
|
|
1196
|
+
};
|
|
1178
1197
|
export type TRuleBuilderQuickSelectCreatefunctionsInput = {
|
|
1179
1198
|
set?: InputMaybe<Array<Scalars['String']>>;
|
|
1180
1199
|
};
|
|
@@ -1218,6 +1237,14 @@ export type TSalesPerformanceConfigurationInput = {
|
|
|
1218
1237
|
dateTo?: InputMaybe<Scalars['DateTime']>;
|
|
1219
1238
|
showPreviousTimeframe: Scalars['Boolean'];
|
|
1220
1239
|
};
|
|
1240
|
+
export type TSampleDataImportMetadata = {
|
|
1241
|
+
__typename?: 'SampleDataImportMetadata';
|
|
1242
|
+
completed: Scalars['Boolean'];
|
|
1243
|
+
dataset?: Maybe<TSampleDatasets>;
|
|
1244
|
+
};
|
|
1245
|
+
export declare enum TSampleDatasets {
|
|
1246
|
+
Fashion = "FASHION"
|
|
1247
|
+
}
|
|
1221
1248
|
export type TSort = {
|
|
1222
1249
|
__typename?: 'Sort';
|
|
1223
1250
|
key: Scalars['String'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-shell-connectors",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.6.0",
|
|
4
4
|
"description": "Contains complementary tools for @commercetools-frontend/application-shell",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@babel/runtime": "^7.20.13",
|
|
39
39
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
40
|
-
"@commercetools-frontend/constants": "22.
|
|
41
|
-
"@commercetools-frontend/sentry": "22.
|
|
40
|
+
"@commercetools-frontend/constants": "22.6.0",
|
|
41
|
+
"@commercetools-frontend/sentry": "22.6.0",
|
|
42
42
|
"@emotion/react": "11.11.0",
|
|
43
43
|
"@types/lodash": "^4.14.191",
|
|
44
44
|
"@types/prop-types": "^15.7.5",
|