@uipath/solution-tool 1.199.0-preview.110 → 1.199.0-preview.111

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/deploy.js CHANGED
@@ -37772,7 +37772,7 @@ class JSONApiResponse2 {
37772
37772
  var package_default2 = {
37773
37773
  name: "@uipath/solution-sdk",
37774
37774
  license: "MIT",
37775
- version: "1.199.0-preview.110",
37775
+ version: "1.199.0-preview.111",
37776
37776
  repository: {
37777
37777
  type: "git",
37778
37778
  url: "https://github.com/UiPath/cli.git",
@@ -43452,4 +43452,4 @@ export {
43452
43452
  activateDeploymentAsync
43453
43453
  };
43454
43454
 
43455
- //# debugId=5EC27349ED5C1F8364756E2164756E21
43455
+ //# debugId=8B17B5E653F07A2064756E2164756E21
package/dist/init.js CHANGED
@@ -31019,7 +31019,7 @@ function querystringSingleKey(key, value, keyPrefix = "") {
31019
31019
  var package_default = {
31020
31020
  name: "@uipath/solution-sdk",
31021
31021
  license: "MIT",
31022
- version: "1.199.0-preview.110",
31022
+ version: "1.199.0-preview.111",
31023
31023
  repository: {
31024
31024
  type: "git",
31025
31025
  url: "https://github.com/UiPath/cli.git",
@@ -48844,4 +48844,4 @@ export {
48844
48844
  SolutionInitError
48845
48845
  };
48846
48846
 
48847
- //# debugId=AE0D0B0A14193F8464756E2164756E21
48847
+ //# debugId=84A07F46B7BCF29264756E2164756E21
package/dist/pack.js CHANGED
@@ -212029,8 +212029,8 @@ var bpmn_spec_default = {
212029
212029
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
212030
212030
  </bpmn:Task>`,
212031
212031
  inputNotes: "Variable mappings use uipath:mapping with direct input/output elements, not a jsonBody pattern",
212032
- bpmnElementNotes: "Also used on bpmn:StartEvent and bpmn:EndEvent for variable mappings. On bpmn:Task with no serviceType, defaults to BPMN.Variables.",
212033
- extensionTagNotes: "Uses uipath:mapping (not uipath:activity). createExtensionTask checks for serviceType=BPMN.Variables on StartEvent/EndEvent/Task and routes to createModdleExtensionVariableMapping."
212032
+ bpmnElementNotes: "Also used on bpmn:StartEvent, bpmn:EndEvent, bpmn:ScriptTask, and bpmn:SubProcess for variable mappings. On bpmn:Task with no serviceType, defaults to BPMN.Variables.",
212033
+ extensionTagNotes: "Uses uipath:mapping (not uipath:activity). BPMN.Variables mappings are supported on StartEvent, EndEvent, Task, ScriptTask, and SubProcess owners."
212034
212034
  },
212035
212035
  "BPMN.ScriptTask": {
212036
212036
  extensionType: "BPMN.ScriptTask",
@@ -212773,6 +212773,7 @@ var SUPPORTED_UIPATH_EXTENSION_TAG_NAMES = Object.freeze([
212773
212773
  var SUPPORTED_UIPATH_EXTENSION_TAGS = Object.freeze(SUPPORTED_UIPATH_EXTENSION_TAG_NAMES.map((tag) => `uipath:${tag}`));
212774
212774
  var KNOWN_UIPATH_TAGS = new Set(SUPPORTED_UIPATH_EXTENSION_TAGS);
212775
212775
  var SEMANTIC_VALIDATION_ERROR = "BPMN_VALIDATION_ERROR";
212776
+ var BPMN_MODEL_NAMESPACE = "http://www.omg.org/spec/BPMN/20100524/MODEL";
212776
212777
 
212777
212778
  class BpmnValidateService {
212778
212779
  fileSystem;
@@ -212979,7 +212980,7 @@ class BpmnValidateService {
212979
212980
  });
212980
212981
  }
212981
212982
  const allowedOwners = getAllowedOwnerTypes(contract);
212982
- if (!allowedOwners.some((allowedOwner) => normalizeBpmnName(allowedOwner) === normalizeBpmnName(owner.name))) {
212983
+ if (!allowedOwners.some((allowedOwner) => getLocalName(allowedOwner) === getLocalName(owner.name) && resolveNamespace(owner) === BPMN_MODEL_NAMESPACE)) {
212983
212984
  diagnostics.push({
212984
212985
  file,
212985
212986
  element: describeElement(owner),
@@ -213448,10 +213449,23 @@ function findFirst(node, predicate) {
213448
213449
  return;
213449
213450
  }
213450
213451
  function hasLocalName(node, localName) {
213451
- return normalizeBpmnName(node.name).split(":").pop() === localName.toLowerCase();
213452
+ return getLocalName(node.name) === localName.toLowerCase();
213452
213453
  }
213453
- function normalizeBpmnName(name) {
213454
- return name.toLowerCase();
213454
+ function getLocalName(name) {
213455
+ return name.slice(name.lastIndexOf(":") + 1).toLowerCase();
213456
+ }
213457
+ function resolveNamespace(node) {
213458
+ const separator = node.name.indexOf(":");
213459
+ const prefix = separator === -1 ? "" : node.name.slice(0, separator);
213460
+ const declaration = prefix ? `xmlns:${prefix}` : "xmlns";
213461
+ let current = node;
213462
+ while (current) {
213463
+ if (Object.hasOwn(current.attributes, declaration)) {
213464
+ return current.attributes[declaration];
213465
+ }
213466
+ current = current.parent;
213467
+ }
213468
+ return;
213455
213469
  }
213456
213470
  function findBpmnOwner(payload) {
213457
213471
  const extensionElements = payload.parent;
@@ -213480,7 +213494,8 @@ function getAllowedOwnerTypes(contract) {
213480
213494
  "bpmn:StartEvent",
213481
213495
  "bpmn:EndEvent",
213482
213496
  "bpmn:Task",
213483
- "bpmn:ScriptTask"
213497
+ "bpmn:ScriptTask",
213498
+ "bpmn:SubProcess"
213484
213499
  ];
213485
213500
  }
213486
213501
  const placementTypes = Object.values(contract.placements).map((placement) => placement.type);
@@ -214094,7 +214109,7 @@ init_dist();
214094
214109
  // ../packager/packager-tool-flow/package.json
214095
214110
  var package_default = {
214096
214111
  name: "@uipath/packager-tool-flow",
214097
- version: "1.199.0-preview.110",
214112
+ version: "1.199.0-preview.111",
214098
214113
  description: "UiPath Flow tool implementation",
214099
214114
  type: "module",
214100
214115
  exports: {
@@ -250659,7 +250674,7 @@ var sdkUserAgentHostToken22 = singleton22("SdkUserAgentHostToken");
250659
250674
  var package_default3 = {
250660
250675
  name: "@uipath/project-packager",
250661
250676
  license: "MIT",
250662
- version: "1.199.0-preview.110",
250677
+ version: "1.199.0-preview.111",
250663
250678
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
250664
250679
  type: "module",
250665
250680
  main: "./dist/index.js",
@@ -262824,7 +262839,7 @@ var sdkUserAgentHostToken23 = singleton23("SdkUserAgentHostToken");
262824
262839
  var package_default4 = {
262825
262840
  name: "@uipath/project-packager",
262826
262841
  license: "MIT",
262827
- version: "1.199.0-preview.110",
262842
+ version: "1.199.0-preview.111",
262828
262843
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
262829
262844
  type: "module",
262830
262845
  main: "./dist/index.js",
@@ -281615,4 +281630,4 @@ export {
281615
281630
  packSolutionAsync
281616
281631
  };
281617
281632
 
281618
- //# debugId=C366F99B4BE497F164756E2164756E21
281633
+ //# debugId=80FF8D55B7F27A8D64756E2164756E21
package/dist/publish.js CHANGED
@@ -30734,7 +30734,7 @@ class TextApiResponse2 {
30734
30734
  var package_default2 = {
30735
30735
  name: "@uipath/solution-sdk",
30736
30736
  license: "MIT",
30737
- version: "1.199.0-preview.110",
30737
+ version: "1.199.0-preview.111",
30738
30738
  repository: {
30739
30739
  type: "git",
30740
30740
  url: "https://github.com/UiPath/cli.git",
@@ -33509,4 +33509,4 @@ export {
33509
33509
  publishSolutionAsync
33510
33510
  };
33511
33511
 
33512
- //# debugId=85EC2AB56147B35164756E2164756E21
33512
+ //# debugId=2BBE8EC2C725495564756E2164756E21
package/dist/tool.js CHANGED
@@ -30536,7 +30536,7 @@ import"./packager-tool.js";
30536
30536
  var package_default = {
30537
30537
  name: "@uipath/solution-tool",
30538
30538
  license: "MIT",
30539
- version: "1.199.0-preview.110",
30539
+ version: "1.199.0-preview.111",
30540
30540
  description: "Create, pack, publish, and deploy UiPath Automation Solutions.",
30541
30541
  repository: {
30542
30542
  type: "git",
@@ -64413,7 +64413,7 @@ var sdkUserAgentHostToken22 = singleton22("SdkUserAgentHostToken");
64413
64413
  var package_default2 = {
64414
64414
  name: "@uipath/project-packager",
64415
64415
  license: "MIT",
64416
- version: "1.199.0-preview.110",
64416
+ version: "1.199.0-preview.111",
64417
64417
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
64418
64418
  type: "module",
64419
64419
  main: "./dist/index.js",
@@ -76559,7 +76559,7 @@ var sdkUserAgentHostToken23 = singleton23("SdkUserAgentHostToken");
76559
76559
  var package_default3 = {
76560
76560
  name: "@uipath/project-packager",
76561
76561
  license: "MIT",
76562
- version: "1.199.0-preview.110",
76562
+ version: "1.199.0-preview.111",
76563
76563
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
76564
76564
  type: "module",
76565
76565
  main: "./dist/index.js",
@@ -82113,7 +82113,7 @@ class TextApiResponse2 {
82113
82113
  var package_default5 = {
82114
82114
  name: "@uipath/solution-sdk",
82115
82115
  license: "MIT",
82116
- version: "1.199.0-preview.110",
82116
+ version: "1.199.0-preview.111",
82117
82117
  repository: {
82118
82118
  type: "git",
82119
82119
  url: "https://github.com/UiPath/cli.git",
@@ -108778,4 +108778,4 @@ export {
108778
108778
  metadata
108779
108779
  };
108780
108780
 
108781
- //# debugId=9DD92CFC2817F68864756E2164756E21
108781
+ //# debugId=EC0848FA0FED428264756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/solution-tool",
3
3
  "license": "MIT",
4
- "version": "1.199.0-preview.110",
4
+ "version": "1.199.0-preview.111",
5
5
  "description": "Create, pack, publish, and deploy UiPath Automation Solutions.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -46,5 +46,5 @@
46
46
  "dist"
47
47
  ],
48
48
  "private": false,
49
- "gitHead": "a714aed479181e56e2a867470c3050b7230ec41f"
49
+ "gitHead": "1a86625f94b9abd4d02444b8c5deec7e9d08d210"
50
50
  }