@commercetools-frontend-extensions/change-history 8.42.1 → 8.43.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.
@@ -137,7 +137,7 @@ var debounce__default = /*#__PURE__*/_interopDefault(debounce);
137
137
  var RadioInput__default = /*#__PURE__*/_interopDefault(RadioInput);
138
138
 
139
139
  // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
140
- var version = "8.42.1";
140
+ var version = "8.43.0";
141
141
 
142
142
  var fetchFeatureStatusQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchFeatureStatusQuery" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allFeatures" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "reason" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 84, source: { body: "query FetchFeatureStatusQuery {\n allFeatures {\n name\n value\n reason\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
143
143
  /**
@@ -4403,7 +4403,6 @@ const MESSAGE_MAPPER$1 = {
4403
4403
  [RESOURCE_TYPE_NAME.CHANNEL]: messages$16,
4404
4404
  [RESOURCE_TYPE_NAME.CUSTOM_OBJECT]: messages$15,
4405
4405
  [RESOURCE_TYPE_NAME.CUSTOMER]: messages$14,
4406
- // [RESOURCE_TYPE_NAME.CUSTOMER_GROUP]: customerGroupMessages,
4407
4406
  [RESOURCE_TYPE_NAME.DISCOUNT_CODE]: messages$12,
4408
4407
  [RESOURCE_TYPE_NAME.INVENTORY_ENTRY]: messages$10,
4409
4408
  [RESOURCE_TYPE_NAME.ORDER]: messages$$,
@@ -4430,7 +4429,6 @@ const MESSAGE_MAPPER$1 = {
4430
4429
  [RESOURCE_TYPE.CHANNEL]: messages$16,
4431
4430
  [RESOURCE_TYPE.CUSTOM_OBJECT]: messages$15,
4432
4431
  [RESOURCE_TYPE.CUSTOMER]: messages$14,
4433
- // [RESOURCE_TYPE.CUSTOMER_GROUP]: customerGroupMessages,
4434
4432
  [RESOURCE_TYPE.DISCOUNT_CODE]: messages$12,
4435
4433
  [RESOURCE_TYPE.INVENTORY_ENTRY]: messages$10,
4436
4434
  [RESOURCE_TYPE.ORDER]: messages$$,
@@ -13233,20 +13231,23 @@ const ChangeHistoryListConnector = props => {
13233
13231
  const allFilterKeys = _Object$values__default["default"](FILTER_KEY);
13234
13232
  const filterValues = _reduceInstanceProperty__default["default"](allFilterKeys).call(allFilterKeys, (acc, key) => {
13235
13233
  if (key === FILTER_KEY.CREATED_AT) {
13234
+ // This one has some additional logic to translate date filters into an actual date range
13236
13235
  acc[key] = createDatesFromSelectedFilter(timeZone, locale, newFilters[key]);
13237
13236
  } else if (key === FILTER_KEY.RESOURCE_TYPES) {
13238
- const resourceTypes = getResourceTypeFilter(newFilters, props.allowedResourceTypes);
13239
13237
  // This one has some additional logic to ensure we only fetch the allowed resource types
13238
+ const resourceTypes = getResourceTypeFilter(newFilters, props.allowedResourceTypes);
13240
13239
  if (resourceTypes) {
13241
13240
  acc[key] = resourceTypes;
13242
13241
  }
13243
13242
  } else if (key === FILTER_KEY.CHANGES) {
13243
+ // This one has some additional logic to parse the change value from the filter
13244
13244
  const value = newFilters[key];
13245
13245
  if (value) {
13246
13246
  const parsedValue = JSON.parse(value.appliedFilterValues[0].value);
13247
13247
  acc[FILTER_KEY.CHANGES] = [parsedValue.change.value];
13248
13248
  }
13249
13249
  } else if (key === FILTER_KEY.RESOURCE_ID) {
13250
+ // This one has some additional logic to handle the resource ID prop for the in-context views
13250
13251
  const value = newFilters[key];
13251
13252
  if (value) {
13252
13253
  acc[key] = value.appliedFilterValues[0].value;
@@ -15460,6 +15461,13 @@ const getFirst60Options = (storesOptions, currentValues) => {
15460
15461
  return _sliceInstanceProperty__default["default"](storesOptions).call(storesOptions, 0, LOWER_STORES_LIMIT + currentValuesLength);
15461
15462
  };
15462
15463
 
15464
+ reactIntl.defineMessages({
15465
+ searchInputPlaceholder: {
15466
+ id: 'ChangeHistory.list.searchInputPlaceholder',
15467
+ description: 'Placeholder for search input',
15468
+ defaultMessage: 'Search by entity ID'
15469
+ }
15470
+ });
15463
15471
  const filterTypeInMessages = reactIntl.defineMessages({
15464
15472
  [FILTER_OPERATOR.in]: {
15465
15473
  id: 'Search.Filters.Definitions.Text.in',
@@ -21285,15 +21293,15 @@ const loadMessages = locale => {
21285
21293
  const intlLocale = i18n.mapLocaleToIntlLocale(locale);
21286
21294
  switch (intlLocale) {
21287
21295
  case 'de':
21288
- return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-de" */'./de-09f61294.cjs.dev.js'); });
21296
+ return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-de" */'./de-c64c7be6.cjs.dev.js'); });
21289
21297
  case 'es':
21290
- return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-es" */'./es-4f55de32.cjs.dev.js'); });
21298
+ return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-es" */'./es-0549e536.cjs.dev.js'); });
21291
21299
  case 'fr-FR':
21292
- return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-fr-FR" */'./fr-FR-98e0d12b.cjs.dev.js'); });
21300
+ return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-fr-FR" */'./fr-FR-e7c4e125.cjs.dev.js'); });
21293
21301
  case 'pt-BR':
21294
- return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-3f5983c9.cjs.dev.js'); });
21302
+ return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-2c2e6c98.cjs.dev.js'); });
21295
21303
  default:
21296
- return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-en" */'./en-53d43a34.cjs.dev.js'); });
21304
+ return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-en" */'./en-cd57f8ed.cjs.dev.js'); });
21297
21305
  }
21298
21306
  };
21299
21307
 
@@ -137,7 +137,7 @@ var debounce__default = /*#__PURE__*/_interopDefault(debounce);
137
137
  var RadioInput__default = /*#__PURE__*/_interopDefault(RadioInput);
138
138
 
139
139
  // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
140
- var version = "8.42.1";
140
+ var version = "8.43.0";
141
141
 
142
142
  var fetchFeatureStatusQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchFeatureStatusQuery" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allFeatures" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "reason" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 84, source: { body: "query FetchFeatureStatusQuery {\n allFeatures {\n name\n value\n reason\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
143
143
  /**
@@ -4376,7 +4376,6 @@ const MESSAGE_MAPPER$1 = {
4376
4376
  [RESOURCE_TYPE_NAME.CHANNEL]: messages$16,
4377
4377
  [RESOURCE_TYPE_NAME.CUSTOM_OBJECT]: messages$15,
4378
4378
  [RESOURCE_TYPE_NAME.CUSTOMER]: messages$14,
4379
- // [RESOURCE_TYPE_NAME.CUSTOMER_GROUP]: customerGroupMessages,
4380
4379
  [RESOURCE_TYPE_NAME.DISCOUNT_CODE]: messages$12,
4381
4380
  [RESOURCE_TYPE_NAME.INVENTORY_ENTRY]: messages$10,
4382
4381
  [RESOURCE_TYPE_NAME.ORDER]: messages$$,
@@ -4403,7 +4402,6 @@ const MESSAGE_MAPPER$1 = {
4403
4402
  [RESOURCE_TYPE.CHANNEL]: messages$16,
4404
4403
  [RESOURCE_TYPE.CUSTOM_OBJECT]: messages$15,
4405
4404
  [RESOURCE_TYPE.CUSTOMER]: messages$14,
4406
- // [RESOURCE_TYPE.CUSTOMER_GROUP]: customerGroupMessages,
4407
4405
  [RESOURCE_TYPE.DISCOUNT_CODE]: messages$12,
4408
4406
  [RESOURCE_TYPE.INVENTORY_ENTRY]: messages$10,
4409
4407
  [RESOURCE_TYPE.ORDER]: messages$$,
@@ -13175,20 +13173,23 @@ const ChangeHistoryListConnector = props => {
13175
13173
  const allFilterKeys = _Object$values__default["default"](FILTER_KEY);
13176
13174
  const filterValues = _reduceInstanceProperty__default["default"](allFilterKeys).call(allFilterKeys, (acc, key) => {
13177
13175
  if (key === FILTER_KEY.CREATED_AT) {
13176
+ // This one has some additional logic to translate date filters into an actual date range
13178
13177
  acc[key] = createDatesFromSelectedFilter(timeZone, locale, newFilters[key]);
13179
13178
  } else if (key === FILTER_KEY.RESOURCE_TYPES) {
13180
- const resourceTypes = getResourceTypeFilter(newFilters, props.allowedResourceTypes);
13181
13179
  // This one has some additional logic to ensure we only fetch the allowed resource types
13180
+ const resourceTypes = getResourceTypeFilter(newFilters, props.allowedResourceTypes);
13182
13181
  if (resourceTypes) {
13183
13182
  acc[key] = resourceTypes;
13184
13183
  }
13185
13184
  } else if (key === FILTER_KEY.CHANGES) {
13185
+ // This one has some additional logic to parse the change value from the filter
13186
13186
  const value = newFilters[key];
13187
13187
  if (value) {
13188
13188
  const parsedValue = JSON.parse(value.appliedFilterValues[0].value);
13189
13189
  acc[FILTER_KEY.CHANGES] = [parsedValue.change.value];
13190
13190
  }
13191
13191
  } else if (key === FILTER_KEY.RESOURCE_ID) {
13192
+ // This one has some additional logic to handle the resource ID prop for the in-context views
13192
13193
  const value = newFilters[key];
13193
13194
  if (value) {
13194
13195
  acc[key] = value.appliedFilterValues[0].value;
@@ -15350,6 +15351,13 @@ const getFirst60Options = (storesOptions, currentValues) => {
15350
15351
  return _sliceInstanceProperty__default["default"](storesOptions).call(storesOptions, 0, LOWER_STORES_LIMIT + currentValuesLength);
15351
15352
  };
15352
15353
 
15354
+ reactIntl.defineMessages({
15355
+ searchInputPlaceholder: {
15356
+ id: 'ChangeHistory.list.searchInputPlaceholder',
15357
+ description: 'Placeholder for search input',
15358
+ defaultMessage: 'Search by entity ID'
15359
+ }
15360
+ });
15353
15361
  const filterTypeInMessages = reactIntl.defineMessages({
15354
15362
  [FILTER_OPERATOR.in]: {
15355
15363
  id: 'Search.Filters.Definitions.Text.in',
@@ -21074,15 +21082,15 @@ const loadMessages = locale => {
21074
21082
  const intlLocale = i18n.mapLocaleToIntlLocale(locale);
21075
21083
  switch (intlLocale) {
21076
21084
  case 'de':
21077
- return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-de" */'./de-4068d791.cjs.prod.js'); });
21085
+ return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-de" */'./de-079e6cad.cjs.prod.js'); });
21078
21086
  case 'es':
21079
- return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-es" */'./es-5ea78b93.cjs.prod.js'); });
21087
+ return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-es" */'./es-55faf3de.cjs.prod.js'); });
21080
21088
  case 'fr-FR':
21081
- return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-fr-FR" */'./fr-FR-622110a0.cjs.prod.js'); });
21089
+ return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-fr-FR" */'./fr-FR-f1089b99.cjs.prod.js'); });
21082
21090
  case 'pt-BR':
21083
- return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-c8959ae8.cjs.prod.js'); });
21091
+ return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-29bf9f10.cjs.prod.js'); });
21084
21092
  default:
21085
- return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-en" */'./en-ed9ac514.cjs.prod.js'); });
21093
+ return Promise.resolve().then(function () { return require(/* webpackChunkName: "change-history-i18n-en" */'./en-3a67c803.cjs.prod.js'); });
21086
21094
  }
21087
21095
  };
21088
21096
 
@@ -81,7 +81,7 @@ import { oneLineTrim } from 'common-tags';
81
81
  import { parseChunkImport, mapLocaleToIntlLocale } from '@commercetools-frontend/i18n';
82
82
 
83
83
  // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
84
- var version = "8.42.1";
84
+ var version = "8.43.0";
85
85
 
86
86
  var fetchFeatureStatusQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchFeatureStatusQuery" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allFeatures" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "reason" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 84, source: { body: "query FetchFeatureStatusQuery {\n allFeatures {\n name\n value\n reason\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
87
87
  /**
@@ -4347,7 +4347,6 @@ const MESSAGE_MAPPER$1 = {
4347
4347
  [RESOURCE_TYPE_NAME.CHANNEL]: messages$16,
4348
4348
  [RESOURCE_TYPE_NAME.CUSTOM_OBJECT]: messages$15,
4349
4349
  [RESOURCE_TYPE_NAME.CUSTOMER]: messages$14,
4350
- // [RESOURCE_TYPE_NAME.CUSTOMER_GROUP]: customerGroupMessages,
4351
4350
  [RESOURCE_TYPE_NAME.DISCOUNT_CODE]: messages$12,
4352
4351
  [RESOURCE_TYPE_NAME.INVENTORY_ENTRY]: messages$10,
4353
4352
  [RESOURCE_TYPE_NAME.ORDER]: messages$$,
@@ -4374,7 +4373,6 @@ const MESSAGE_MAPPER$1 = {
4374
4373
  [RESOURCE_TYPE.CHANNEL]: messages$16,
4375
4374
  [RESOURCE_TYPE.CUSTOM_OBJECT]: messages$15,
4376
4375
  [RESOURCE_TYPE.CUSTOMER]: messages$14,
4377
- // [RESOURCE_TYPE.CUSTOMER_GROUP]: customerGroupMessages,
4378
4376
  [RESOURCE_TYPE.DISCOUNT_CODE]: messages$12,
4379
4377
  [RESOURCE_TYPE.INVENTORY_ENTRY]: messages$10,
4380
4378
  [RESOURCE_TYPE.ORDER]: messages$$,
@@ -13177,20 +13175,23 @@ const ChangeHistoryListConnector = props => {
13177
13175
  const allFilterKeys = _Object$values(FILTER_KEY);
13178
13176
  const filterValues = _reduceInstanceProperty(allFilterKeys).call(allFilterKeys, (acc, key) => {
13179
13177
  if (key === FILTER_KEY.CREATED_AT) {
13178
+ // This one has some additional logic to translate date filters into an actual date range
13180
13179
  acc[key] = createDatesFromSelectedFilter(timeZone, locale, newFilters[key]);
13181
13180
  } else if (key === FILTER_KEY.RESOURCE_TYPES) {
13182
- const resourceTypes = getResourceTypeFilter(newFilters, props.allowedResourceTypes);
13183
13181
  // This one has some additional logic to ensure we only fetch the allowed resource types
13182
+ const resourceTypes = getResourceTypeFilter(newFilters, props.allowedResourceTypes);
13184
13183
  if (resourceTypes) {
13185
13184
  acc[key] = resourceTypes;
13186
13185
  }
13187
13186
  } else if (key === FILTER_KEY.CHANGES) {
13187
+ // This one has some additional logic to parse the change value from the filter
13188
13188
  const value = newFilters[key];
13189
13189
  if (value) {
13190
13190
  const parsedValue = JSON.parse(value.appliedFilterValues[0].value);
13191
13191
  acc[FILTER_KEY.CHANGES] = [parsedValue.change.value];
13192
13192
  }
13193
13193
  } else if (key === FILTER_KEY.RESOURCE_ID) {
13194
+ // This one has some additional logic to handle the resource ID prop for the in-context views
13194
13195
  const value = newFilters[key];
13195
13196
  if (value) {
13196
13197
  acc[key] = value.appliedFilterValues[0].value;
@@ -15404,6 +15405,13 @@ const getFirst60Options = (storesOptions, currentValues) => {
15404
15405
  return _sliceInstanceProperty(storesOptions).call(storesOptions, 0, LOWER_STORES_LIMIT + currentValuesLength);
15405
15406
  };
15406
15407
 
15408
+ defineMessages({
15409
+ searchInputPlaceholder: {
15410
+ id: 'ChangeHistory.list.searchInputPlaceholder',
15411
+ description: 'Placeholder for search input',
15412
+ defaultMessage: 'Search by entity ID'
15413
+ }
15414
+ });
15407
15415
  const filterTypeInMessages = defineMessages({
15408
15416
  [FILTER_OPERATOR.in]: {
15409
15417
  id: 'Search.Filters.Definitions.Text.in',
@@ -21229,15 +21237,15 @@ const loadMessages = locale => {
21229
21237
  const intlLocale = mapLocaleToIntlLocale(locale);
21230
21238
  switch (intlLocale) {
21231
21239
  case 'de':
21232
- return import(/* webpackChunkName: "change-history-i18n-de" */'./de-43131054.esm.js');
21240
+ return import(/* webpackChunkName: "change-history-i18n-de" */'./de-dd42d489.esm.js');
21233
21241
  case 'es':
21234
- return import(/* webpackChunkName: "change-history-i18n-es" */'./es-7a8f8f70.esm.js');
21242
+ return import(/* webpackChunkName: "change-history-i18n-es" */'./es-691396c2.esm.js');
21235
21243
  case 'fr-FR':
21236
- return import(/* webpackChunkName: "change-history-i18n-fr-FR" */'./fr-FR-f3ababa7.esm.js');
21244
+ return import(/* webpackChunkName: "change-history-i18n-fr-FR" */'./fr-FR-2f678d5f.esm.js');
21237
21245
  case 'pt-BR':
21238
- return import(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-dee519cb.esm.js');
21246
+ return import(/* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-f321b66b.esm.js');
21239
21247
  default:
21240
- return import(/* webpackChunkName: "change-history-i18n-en" */'./en-6549d798.esm.js');
21248
+ return import(/* webpackChunkName: "change-history-i18n-en" */'./en-74f50f36.esm.js');
21241
21249
  }
21242
21250
  };
21243
21251