@darajs/components 1.10.4 → 1.10.6
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.
|
Binary file
|
|
@@ -5773,8 +5773,8 @@
|
|
|
5773
5773
|
};
|
|
5774
5774
|
}
|
|
5775
5775
|
return {
|
|
5776
|
-
scrollLeft: element2.
|
|
5777
|
-
scrollTop: element2.
|
|
5776
|
+
scrollLeft: element2.scrollX,
|
|
5777
|
+
scrollTop: element2.scrollY
|
|
5778
5778
|
};
|
|
5779
5779
|
}
|
|
5780
5780
|
function getParentNode$1(node2) {
|
|
@@ -300220,7 +300220,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
300220
300220
|
let rects = [], prev = null;
|
|
300221
300221
|
for (let i2 = this.toEditorPos(e3.rangeStart), end2 = this.toEditorPos(e3.rangeEnd); i2 < end2; i2++) {
|
|
300222
300222
|
let rect = view.coordsForChar(i2);
|
|
300223
|
-
prev = rect && new DOMRect(rect.left, rect.
|
|
300223
|
+
prev = rect && new DOMRect(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top) || prev || new DOMRect();
|
|
300224
300224
|
rects.push(prev);
|
|
300225
300225
|
}
|
|
300226
300226
|
context2.updateCharacterBounds(e3.rangeStart, rects);
|
|
@@ -300263,6 +300263,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
300263
300263
|
if (pending.from == fromA && pending.to == toA && pending.insert.eq(insert2)) {
|
|
300264
300264
|
pending = this.pendingContextChange = null;
|
|
300265
300265
|
off += dLen;
|
|
300266
|
+
this.to += dLen;
|
|
300266
300267
|
return;
|
|
300267
300268
|
} else {
|
|
300268
300269
|
pending = null;
|
|
@@ -315808,6 +315809,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
315808
315809
|
var parseValues = function parseQueryStringValues(str, options) {
|
|
315809
315810
|
var obj = { __proto__: null };
|
|
315810
315811
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
|
|
315812
|
+
cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
315811
315813
|
var limit2 = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
|
|
315812
315814
|
var parts = cleanStr.split(options.delimiter, limit2);
|
|
315813
315815
|
var skipIndex = -1;
|
|
@@ -374477,7 +374479,7 @@ ${e3}`);
|
|
|
374477
374479
|
}
|
|
374478
374480
|
return style2;
|
|
374479
374481
|
};
|
|
374480
|
-
var version = "3.29.
|
|
374482
|
+
var version = "3.29.1";
|
|
374481
374483
|
var cytoscape$1 = function cytoscape2(options) {
|
|
374482
374484
|
if (options === void 0) {
|
|
374483
374485
|
options = {};
|
|
@@ -388470,6 +388472,7 @@ ${letters.join("\n")}`;
|
|
|
388470
388472
|
this.onMove = null;
|
|
388471
388473
|
this.onStartDrag = null;
|
|
388472
388474
|
this.renderRequestId = null;
|
|
388475
|
+
this.isStyleDirty = false;
|
|
388473
388476
|
this.searchResults = [];
|
|
388474
388477
|
this.selectedEdge = null;
|
|
388475
388478
|
this.selectedNode = null;
|
|
@@ -388504,11 +388507,18 @@ ${letters.join("\n")}`;
|
|
|
388504
388507
|
this.resizeObserver.disconnect();
|
|
388505
388508
|
this.app.destroy(true, true);
|
|
388506
388509
|
}
|
|
388510
|
+
markStylesDirty() {
|
|
388511
|
+
this.isStyleDirty = true;
|
|
388512
|
+
}
|
|
388507
388513
|
requestRender() {
|
|
388508
388514
|
if (this.renderRequestId) {
|
|
388509
388515
|
return;
|
|
388510
388516
|
}
|
|
388511
388517
|
this.renderRequestId = requestAnimationFrame(() => {
|
|
388518
|
+
if (this.isStyleDirty) {
|
|
388519
|
+
this.updateStyles();
|
|
388520
|
+
this.isStyleDirty = false;
|
|
388521
|
+
}
|
|
388512
388522
|
if (this.viewport && this.app.stage) {
|
|
388513
388523
|
this.graph.forEachEdge((e3, attrs2, source, target, sourceNodeAttributes, targetNodeAttributes) => {
|
|
388514
388524
|
const edgeObject = this.edgeMap.get(e3);
|
|
@@ -388672,7 +388682,7 @@ ${letters.join("\n")}`;
|
|
|
388672
388682
|
});
|
|
388673
388683
|
});
|
|
388674
388684
|
this.createGroupContainers();
|
|
388675
|
-
this.
|
|
388685
|
+
this.markStylesDirty();
|
|
388676
388686
|
this.requestRender();
|
|
388677
388687
|
}
|
|
388678
388688
|
}
|
|
@@ -388732,7 +388742,7 @@ ${letters.join("\n")}`;
|
|
|
388732
388742
|
} else {
|
|
388733
388743
|
this.selectedEdge = null;
|
|
388734
388744
|
}
|
|
388735
|
-
this.
|
|
388745
|
+
this.markStylesDirty();
|
|
388736
388746
|
this.requestRender();
|
|
388737
388747
|
}
|
|
388738
388748
|
selectNode(id2) {
|
|
@@ -388750,7 +388760,7 @@ ${letters.join("\n")}`;
|
|
|
388750
388760
|
node2.state.selected = true;
|
|
388751
388761
|
}
|
|
388752
388762
|
this.selectedNode = id2;
|
|
388753
|
-
this.
|
|
388763
|
+
this.markStylesDirty();
|
|
388754
388764
|
this.requestRender();
|
|
388755
388765
|
}
|
|
388756
388766
|
setDragMode(dragMode) {
|
|
@@ -388760,7 +388770,7 @@ ${letters.join("\n")}`;
|
|
|
388760
388770
|
this.theme = theme2;
|
|
388761
388771
|
this.background.updateTexture(theme2, this.textureCache);
|
|
388762
388772
|
[this.app.renderer.background.color] = colorToPixi(this.theme.colors.blue1);
|
|
388763
|
-
this.
|
|
388773
|
+
this.markStylesDirty();
|
|
388764
388774
|
this.requestRender();
|
|
388765
388775
|
}
|
|
388766
388776
|
start(container) {
|
|
@@ -388808,7 +388818,18 @@ ${letters.join("\n")}`;
|
|
|
388808
388818
|
this.viewport.addChild(this.edgeSymbolsLayer);
|
|
388809
388819
|
this.viewport.addChild(this.nodeLayer);
|
|
388810
388820
|
this.viewport.addChild(this.nodeLabelLayer);
|
|
388811
|
-
this.resizeObserver = new ResizeObserver(() => {
|
|
388821
|
+
this.resizeObserver = new ResizeObserver((entries) => {
|
|
388822
|
+
var _a3;
|
|
388823
|
+
const oldBounds = (_a3 = this.graph.getAttribute("extras")) === null || _a3 === void 0 ? void 0 : _a3.bounds;
|
|
388824
|
+
const boundsChanged = entries.some((entry) => {
|
|
388825
|
+
const newBounds = entry.contentRect;
|
|
388826
|
+
const newWidth = Math.round(newBounds.width);
|
|
388827
|
+
const newHeight = Math.round(newBounds.height);
|
|
388828
|
+
return (oldBounds === null || oldBounds === void 0 ? void 0 : oldBounds.width) !== newWidth || (oldBounds === null || oldBounds === void 0 ? void 0 : oldBounds.height) !== newHeight;
|
|
388829
|
+
});
|
|
388830
|
+
if (!boundsChanged) {
|
|
388831
|
+
return;
|
|
388832
|
+
}
|
|
388812
388833
|
this.app.resize();
|
|
388813
388834
|
this.viewport.resize(this.container.clientWidth, this.container.clientHeight);
|
|
388814
388835
|
this.background.updatePosition(this.container);
|
|
@@ -388836,7 +388857,7 @@ ${letters.join("\n")}`;
|
|
|
388836
388857
|
}
|
|
388837
388858
|
this.createGraph();
|
|
388838
388859
|
this.resetViewport();
|
|
388839
|
-
this.
|
|
388860
|
+
this.markStylesDirty();
|
|
388840
388861
|
this.initialized = true;
|
|
388841
388862
|
this.resetViewport();
|
|
388842
388863
|
});
|
|
@@ -389180,7 +389201,7 @@ ${letters.join("\n")}`;
|
|
|
389180
389201
|
}
|
|
389181
389202
|
onGraphAttributesUpdated({ attributes: attributes2 }) {
|
|
389182
389203
|
if (this.uid) {
|
|
389183
|
-
this.
|
|
389204
|
+
this.markStylesDirty();
|
|
389184
389205
|
this.requestRender();
|
|
389185
389206
|
}
|
|
389186
389207
|
this.uid = attributes2.uid;
|
|
@@ -389191,7 +389212,7 @@ ${letters.join("\n")}`;
|
|
|
389191
389212
|
if (!attributes2.x && !attributes2.y) {
|
|
389192
389213
|
this.debouncedUpdateLayout();
|
|
389193
389214
|
}
|
|
389194
|
-
this.
|
|
389215
|
+
this.markStylesDirty();
|
|
389195
389216
|
this.requestRender();
|
|
389196
389217
|
(_a3 = this.onAddNode) === null || _a3 === void 0 ? void 0 : _a3.call(this);
|
|
389197
389218
|
}
|
|
@@ -389201,7 +389222,7 @@ ${letters.join("\n")}`;
|
|
|
389201
389222
|
const targetNodeAttrs = this.graph.getNodeAttributes(target);
|
|
389202
389223
|
this.createEdge(key, attributes2, source, target, sourceNodeAttrs, targetNodeAttrs);
|
|
389203
389224
|
this.updateStrengthRange();
|
|
389204
|
-
this.
|
|
389225
|
+
this.markStylesDirty();
|
|
389205
389226
|
this.requestRender();
|
|
389206
389227
|
(_a3 = this.onAddEdge) === null || _a3 === void 0 ? void 0 : _a3.call(this);
|
|
389207
389228
|
}
|
|
@@ -389214,11 +389235,11 @@ ${letters.join("\n")}`;
|
|
|
389214
389235
|
}
|
|
389215
389236
|
onGraphEdgeAttributesUpdated() {
|
|
389216
389237
|
this.updateStrengthRange();
|
|
389217
|
-
this.
|
|
389238
|
+
this.markStylesDirty();
|
|
389218
389239
|
this.requestRender();
|
|
389219
389240
|
}
|
|
389220
389241
|
onGraphNodeAttributesUpdated() {
|
|
389221
|
-
this.
|
|
389242
|
+
this.markStylesDirty();
|
|
389222
389243
|
this.requestRender();
|
|
389223
389244
|
}
|
|
389224
389245
|
setLayout(layout2, edgePoints2, resetViewport = true) {
|
|
@@ -389232,7 +389253,7 @@ ${letters.join("\n")}`;
|
|
|
389232
389253
|
if (resetViewport) {
|
|
389233
389254
|
this.resetViewport();
|
|
389234
389255
|
}
|
|
389235
|
-
this.
|
|
389256
|
+
this.markStylesDirty();
|
|
389236
389257
|
this.requestRender();
|
|
389237
389258
|
}
|
|
389238
389259
|
getRelativeStrength(attributes2) {
|
|
@@ -389311,6 +389332,7 @@ ${letters.join("\n")}`;
|
|
|
389311
389332
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
389312
389333
|
(_a3 = this.onCleanup) === null || _a3 === void 0 ? void 0 : _a3.call(this);
|
|
389313
389334
|
try {
|
|
389335
|
+
this.graph.updateAttribute("extras", (prev) => Object.assign(Object.assign({}, prev), { bounds: { width: this.container.clientWidth, height: this.container.clientHeight } }));
|
|
389314
389336
|
const { layout: layout2, edgePoints: edgePoints2, onStartDrag, onEndDrag, onCleanup, onMove, onAddNode, onAddEdge } = yield this.layout.applyLayout(this.graph, (l2, e3) => this.setLayout(l2, e3, false));
|
|
389315
389337
|
this.onAddNode = onAddNode;
|
|
389316
389338
|
this.onAddEdge = onAddEdge;
|
|
@@ -389784,7 +389806,7 @@ ${letters.join("\n")}`;
|
|
|
389784
389806
|
const parsedGraph = causalGraphParser(graphData, availableInputs, state.graph);
|
|
389785
389807
|
const newEditorMode = editorMode !== null && editorMode !== void 0 ? editorMode : isDag(parsedGraph) ? EditorMode.DEFAULT : EditorMode.PAG_VIEWER;
|
|
389786
389808
|
dispatch2({
|
|
389787
|
-
graph:
|
|
389809
|
+
graph: parsedGraph,
|
|
389788
389810
|
editorMode: newEditorMode,
|
|
389789
389811
|
type: GraphActionType.INIT_GRAPH
|
|
389790
389812
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darajs/components",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.6",
|
|
4
4
|
"description": "Components for the Dara framework",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"prettier": "@darajs/prettier-config",
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/core": "^7.23.5",
|
|
32
|
-
"@darajs/eslint-config": "~1.10.
|
|
33
|
-
"@darajs/prettier-config": "~1.10.
|
|
34
|
-
"@darajs/stylelint-config": "~1.10.
|
|
32
|
+
"@darajs/eslint-config": "~1.10.3",
|
|
33
|
+
"@darajs/prettier-config": "~1.10.3",
|
|
34
|
+
"@darajs/stylelint-config": "~1.10.3",
|
|
35
35
|
"@testing-library/react-hooks": "^3.4.2",
|
|
36
36
|
"@types/lodash": "^4.14.155",
|
|
37
37
|
"@types/react": "18.2.60",
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@bokeh/bokehjs": "~3.1.1",
|
|
57
|
-
"@darajs/core": "1.10.
|
|
58
|
-
"@darajs/styled-components": "~1.10.
|
|
59
|
-
"@darajs/ui-causal-graph-editor": "~1.10.
|
|
60
|
-
"@darajs/ui-code-editor": "~1.10.
|
|
61
|
-
"@darajs/ui-components": "~1.10.
|
|
62
|
-
"@darajs/ui-hierarchy-viewer": "~1.10.
|
|
63
|
-
"@darajs/ui-icons": "~1.10.
|
|
64
|
-
"@darajs/ui-utils": "~1.10.
|
|
57
|
+
"@darajs/core": "1.10.6",
|
|
58
|
+
"@darajs/styled-components": "~1.10.3",
|
|
59
|
+
"@darajs/ui-causal-graph-editor": "~1.10.3",
|
|
60
|
+
"@darajs/ui-code-editor": "~1.10.3",
|
|
61
|
+
"@darajs/ui-components": "~1.10.3",
|
|
62
|
+
"@darajs/ui-hierarchy-viewer": "~1.10.3",
|
|
63
|
+
"@darajs/ui-icons": "~1.10.3",
|
|
64
|
+
"@darajs/ui-utils": "~1.10.3",
|
|
65
65
|
"@popperjs/core": "2.4.0",
|
|
66
66
|
"date-fns": "2.9.0",
|
|
67
67
|
"immer": "^10.0.0",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "c2a8bd47e67972d68201ac64286ff44fe31e5232"
|
|
87
87
|
}
|
|
Binary file
|