@uipath/apollo-react 3.33.1 → 3.33.2-pr230.7973f5b

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.
@@ -136,13 +136,13 @@ const AddNodeManager = ({ initializing, customPanel: CustomPanel, createNodeData
136
136
  if (firstConnection) {
137
137
  const firstEdgeSourceHandle = firstConnection.addNewNodeAsSource ? newNodeManifest && registry?.getDefaultHandle(newNodeManifest.nodeType, 'source')?.id : firstConnection.existingHandleId;
138
138
  const firstEdgeData = firstConnection.addNewNodeAsSource ? {
139
- source: finalNode.id,
139
+ source: newNode.id,
140
140
  sourceHandle: firstEdgeSourceHandle ?? 'output'
141
141
  } : {
142
142
  source: firstConnection.existingNodeId,
143
143
  sourceHandle: firstConnection.existingHandleId
144
144
  };
145
- onNodeAdded?.(firstEdgeData.source, firstEdgeData.sourceHandle, finalNode);
145
+ onNodeAdded?.(firstEdgeData.source, firstEdgeData.sourceHandle, newNode);
146
146
  }
147
147
  restoreEdgesRef.current = null;
148
148
  handleClose();
@@ -108,13 +108,13 @@ const AddNodeManager = ({ initializing, customPanel: CustomPanel, createNodeData
108
108
  if (firstConnection) {
109
109
  const firstEdgeSourceHandle = firstConnection.addNewNodeAsSource ? newNodeManifest && registry?.getDefaultHandle(newNodeManifest.nodeType, 'source')?.id : firstConnection.existingHandleId;
110
110
  const firstEdgeData = firstConnection.addNewNodeAsSource ? {
111
- source: finalNode.id,
111
+ source: newNode.id,
112
112
  sourceHandle: firstEdgeSourceHandle ?? 'output'
113
113
  } : {
114
114
  source: firstConnection.existingNodeId,
115
115
  sourceHandle: firstConnection.existingHandleId
116
116
  };
117
- onNodeAdded?.(firstEdgeData.source, firstEdgeData.sourceHandle, finalNode);
117
+ onNodeAdded?.(firstEdgeData.source, firstEdgeData.sourceHandle, newNode);
118
118
  }
119
119
  restoreEdgesRef.current = null;
120
120
  handleClose();
@@ -93,7 +93,7 @@ const BaseNodeComponent = (props)=>{
93
93
  nodeId: id
94
94
  }), [
95
95
  manifest,
96
- data.display,
96
+ data,
97
97
  id
98
98
  ]);
99
99
  const Icon = (0, external_react_namespaceObject.useMemo)(()=>{
@@ -65,7 +65,7 @@ const BaseNodeComponent = (props)=>{
65
65
  nodeId: id
66
66
  }), [
67
67
  manifest,
68
- data.display,
68
+ data,
69
69
  id
70
70
  ]);
71
71
  const Icon = useMemo(()=>{
@@ -148,19 +148,18 @@ class CategoryTree {
148
148
  });
149
149
  }
150
150
  flattenSinglePath() {
151
- if (1 !== this.rootCategories.length || this.rootNodes.length > 0) return CategoryTree.fromPrebuilt([
152
- ...this.rootCategories
153
- ], [
154
- ...this.rootNodes
155
- ]);
151
+ if (1 !== this.rootCategories.length) return this;
156
152
  let current = this.rootCategories[0];
153
+ let leafNodes = [
154
+ ...this.rootNodes
155
+ ];
157
156
  while(current)if (1 === current.nestedCategories.length && 0 === current.nodes.length) current = current.nestedCategories[0];
158
- else break;
159
- return current ? CategoryTree.fromPrebuilt([
160
- ...current.nestedCategories
161
- ], [
162
- ...current.nodes
163
- ]) : CategoryTree.fromPrebuilt([], []);
157
+ else {
158
+ if (0 !== current.nestedCategories.length) return this;
159
+ leafNodes = leafNodes.concat(current.nodes);
160
+ break;
161
+ }
162
+ return CategoryTree.fromPrebuilt([], leafNodes);
164
163
  }
165
164
  flatten() {
166
165
  const collectNodes = (categories)=>{
@@ -1 +1 @@
1
- {"version":3,"file":"CategoryTree.d.ts","sourceRoot":"","sources":["../../../src/canvas/core/CategoryTree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAKhF,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;IACrC,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB;AAKD,MAAM,WAAW,yBAAyB;IAExC,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,gBAAgB,KAAK,OAA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E,CAAA;KAAE;IAsFpE,iBAAiB,IAAI,gBAAgB,EAAE;IASvC,YAAY,IAAI,YAAY,EAAE;IAU9B,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI;IAWzD,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,YAAY;IAuB5C,MAAM,CAAC,OAAO,GAAE,yBAA8B,GAAG,YAAY;IA6C7D,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,YAAY;IAiChD,mBAAmB,CAAC,SAAS,EAAE,mBAAmB,GAAG,YAAY;IAiBjE,iBAAiB,IAAI,YAAY;IAgCjC,OAAO,IAAI,YAAY;IAmBvB,OAAO,IAAI,OAAO;IASlB,gBAAgB,IAAI,gBAAgB,EAAE;IAStC,WAAW,IAAI,YAAY,EAAE;IAa7B,gBAAgB,IAAI,MAAM;IAS1B,YAAY,IAAI,MAAM;CAOvB"}
@@ -120,19 +120,18 @@ class CategoryTree {
120
120
  });
121
121
  }
122
122
  flattenSinglePath() {
123
- if (1 !== this.rootCategories.length || this.rootNodes.length > 0) return CategoryTree.fromPrebuilt([
124
- ...this.rootCategories
125
- ], [
126
- ...this.rootNodes
127
- ]);
123
+ if (1 !== this.rootCategories.length) return this;
128
124
  let current = this.rootCategories[0];
125
+ let leafNodes = [
126
+ ...this.rootNodes
127
+ ];
129
128
  while(current)if (1 === current.nestedCategories.length && 0 === current.nodes.length) current = current.nestedCategories[0];
130
- else break;
131
- return current ? CategoryTree.fromPrebuilt([
132
- ...current.nestedCategories
133
- ], [
134
- ...current.nodes
135
- ]) : CategoryTree.fromPrebuilt([], []);
129
+ else {
130
+ if (0 !== current.nestedCategories.length) return this;
131
+ leafNodes = leafNodes.concat(current.nodes);
132
+ break;
133
+ }
134
+ return CategoryTree.fromPrebuilt([], leafNodes);
136
135
  }
137
136
  flatten() {
138
137
  const collectNodes = (categories)=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-react",
3
- "version": "3.33.1",
3
+ "version": "3.33.2-pr230.7973f5b",
4
4
  "description": "Apollo Design System - React component library with Material UI theming",
5
5
  "repository": {
6
6
  "type": "git",
@@ -159,16 +159,16 @@
159
159
  "@mui/system": "^5.18.0",
160
160
  "@mui/x-date-pickers": "^6.20.2",
161
161
  "@mui/x-tree-view": "^8.21.0",
162
- "@tiptap/core": "^3.17.1",
163
- "@tiptap/extension-document": "^3.17.1",
164
- "@tiptap/extension-hard-break": "^3.17.1",
165
- "@tiptap/extension-mention": "^3.17.1",
166
- "@tiptap/extension-paragraph": "^3.17.1",
167
- "@tiptap/extension-text": "^3.17.1",
168
- "@tiptap/extensions": "^3.17.1",
169
- "@tiptap/pm": "^3.17.1",
170
- "@tiptap/react": "^3.17.1",
171
- "@tiptap/suggestion": "^3.17.1",
162
+ "@tiptap/core": "^3.19.0",
163
+ "@tiptap/extension-document": "^3.19.0",
164
+ "@tiptap/extension-hard-break": "^3.19.0",
165
+ "@tiptap/extension-mention": "^3.19.0",
166
+ "@tiptap/extension-paragraph": "^3.19.0",
167
+ "@tiptap/extension-text": "^3.19.0",
168
+ "@tiptap/extensions": "^3.19.0",
169
+ "@tiptap/pm": "^3.19.0",
170
+ "@tiptap/react": "^3.19.0",
171
+ "@tiptap/suggestion": "^3.19.0",
172
172
  "@xyflow/react": "12.8.2",
173
173
  "@xyflow/system": "0.0.66",
174
174
  "d3-hierarchy": "^3.1.2",
@@ -198,8 +198,8 @@
198
198
  "use-sync-external-store": "^1.2.0",
199
199
  "zod": "^4.3.5",
200
200
  "zustand": "^5.0.9",
201
- "@uipath/apollo-core": "5.7.0",
202
- "@uipath/apollo-wind": "0.9.1"
201
+ "@uipath/apollo-wind": "0.9.1",
202
+ "@uipath/apollo-core": "5.7.0"
203
203
  },
204
204
  "devDependencies": {
205
205
  "@lingui/cli": "^5.6.1",