@tridion-sites/models 1.1.1 → 1.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @tridion-sites/models
2
2
 
3
+ ## 1.2.1
4
+
5
+ ### Minor Changes
6
+
7
+ - ed618c0898: Update ECL regular expression
8
+
3
9
  ## 1.1.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -748,7 +748,7 @@ Object.defineProperty(EclUri, "_eclUriRegExp", {
748
748
  enumerable: true,
749
749
  configurable: true,
750
750
  writable: true,
751
- value: new RegExp(/^ecl:(\d+)-([^\s-]+)-([^\s-]+)-([^\s-]*)-([^\s\(\)-]+)(-v(\d+))?$/)
751
+ value: new RegExp(/^ecl:(\d+)-([^-]+)-([^-]+)-([^-]+)-(\w+)(-v(\d+))?$/)
752
752
  });
753
753
  Object.defineProperty(EclUri, "create", {
754
754
  enumerable: true,
@@ -14074,12 +14074,17 @@ const processInstanceMapping = {
14074
14074
  };
14075
14075
 
14076
14076
  const mapTridionActivityDefinitionConstructorArgs = (mappingRegistry, backendModel) => {
14077
+ var _a, _b, _c;
14077
14078
  const activityDefinition = mapActivityDefinitionConstructorArgs(mappingRegistry, backendModel);
14078
14079
  const activityType = backendModel.ActivityType ? mapActivityType(backendModel.ActivityType) : undefined;
14079
14080
  const finishApprovalStatus = backendModel.FinishApprovalStatus
14080
14081
  ? mappingRegistry.map(backendModel.FinishApprovalStatus)
14081
14082
  : undefined;
14082
- const nextActivityDefinitions = mapLinks(mappingRegistry, backendModel.NextActivityDefinitions);
14083
+ const activityDefinitionsToHide = new Set(((_b = (_a = backendModel.ExtensionProperties) === null || _a === void 0 ? void 0 : _a['tm_ActivityTransitionsToHide']) === null || _b === void 0 ? void 0 : _b.split(',')) || []);
14084
+ const filteredActivityDefinitions = (_c = backendModel.NextActivityDefinitions) === null || _c === void 0 ? void 0 : _c.filter(activityDefinition => {
14085
+ return !activityDefinitionsToHide.has(activityDefinition.IdRef);
14086
+ });
14087
+ const nextActivityDefinitions = mapLinks(mappingRegistry, filteredActivityDefinitions);
14083
14088
  return Object.assign(Object.assign({}, activityDefinition), { activityType,
14084
14089
  finishApprovalStatus,
14085
14090
  nextActivityDefinitions });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tridion-sites/models",
3
- "version": "1.1.1",
3
+ "version": "1.2.1",
4
4
  "description": "Tridion Sites models",
5
5
  "author": "RWS",
6
6
  "homepage": "https://www.rws.com",