@darajs/components 1.10.5 → 1.11.2
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/common/heading/heading.js.map +1 -1
- package/dist/common/markdown/markdown.d.ts.map +1 -1
- package/dist/common/markdown/markdown.js +1 -3
- package/dist/common/markdown/markdown.js.map +1 -1
- package/dist/common/text/text.js.map +1 -1
- package/dist/dara_components-1.11.2-py3-none-any.whl +0 -0
- package/dist/umd/dara.components.umd.js +48 -27
- package/package.json +13 -13
- package/dist/dara_components-1.10.5-py3-none-any.whl +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heading.js","sourceRoot":"","sources":["../../../js/common/heading/heading.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkC,SAAS,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC1G,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAQrD,MAAM,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;AAElC,MAAM,UAAU,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAErF,SAAS,OAAO,CAAC,KAAmB;IAChC,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAC/C,MAAM,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC7C,MAAM,GAAG,GAAG,IAAI,KAAK,CAAC,KAAK,EAAiC,CAAC;IAC7D,OAAO,CACH,KAAC,SAAS,eACG,GAAG,EACZ,EAAE,EAAE,GAAG,EACP,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,EAAE,EAAE,UAAU,CAAC,OAAO,CAAC,EACvB,KAAK,kBAAI,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"heading.js","sourceRoot":"","sources":["../../../js/common/heading/heading.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkC,SAAS,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC1G,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAQrD,MAAM,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;AAElC,MAAM,UAAU,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAErF,SAAS,OAAO,CAAC,KAAmB;IAChC,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAC/C,MAAM,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC7C,MAAM,GAAG,GAAG,IAAI,KAAK,CAAC,KAAK,EAAiC,CAAC;IAC7D,OAAO,CACH,KAAC,SAAS,eACG,GAAG,EACZ,EAAE,EAAE,GAAG,EACP,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,EAAE,EAAE,UAAU,CAAC,OAAO,CAAC,EACvB,KAAK,kBAAI,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,KAAY,IAAK,KAAK,aAEzE,OAAO,GACA,CACf,CAAC;AACN,CAAC;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../js/common/markdown/markdown.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAA8C,MAAM,cAAc,CAAC;AAG1G,UAAU,aAAc,SAAQ,oBAAoB;IAChD;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;CACvC;AAID;;GAEG;AACH,iBAAS,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../js/common/markdown/markdown.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAA8C,MAAM,cAAc,CAAC;AAG1G,UAAU,aAAc,SAAQ,oBAAoB;IAChD;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;CACvC;AAID;;GAEG;AACH,iBAAS,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,GAAG,CAAC,OAAO,CAmBnD;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -13,9 +13,7 @@ function Markdown(props) {
|
|
|
13
13
|
if (props.html_raw) {
|
|
14
14
|
rehypePlugins.push(rehypeRaw);
|
|
15
15
|
}
|
|
16
|
-
return (_jsx(CustomMarkdown, { "$rawCss": css, className: props.className, style: style, markdown: markdown,
|
|
17
|
-
// @ts-expect-error rehype type
|
|
18
|
-
rehypePlugins: rehypePlugins }));
|
|
16
|
+
return (_jsx(CustomMarkdown, { "$rawCss": css, className: props.className, style: style, markdown: markdown, rehypePlugins: rehypePlugins }));
|
|
19
17
|
}
|
|
20
18
|
export default Markdown;
|
|
21
19
|
//# sourceMappingURL=markdown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.js","sourceRoot":"","sources":["../../../js/common/markdown/markdown.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS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EACX,SAAS,EAAE,KAAK,CAAC,KAAY,IAC1B,KAAK,aAGX,IAAI,GACG,CACf,CAAC;AACN,CAAC;AAED,eAAe,IAAI,CAAC"}
|
|
Binary file
|
|
@@ -5631,7 +5631,7 @@
|
|
|
5631
5631
|
},
|
|
5632
5632
|
useDeepCompare([currentStartIdx, internalData])
|
|
5633
5633
|
);
|
|
5634
|
-
const onItemsRendered = React.useCallback((
|
|
5634
|
+
const onItemsRendered = React.useCallback((_a3, forceRefresh_1) => __awaiter$4(this, [_a3, forceRefresh_1], void 0, function* ({ overscanStartIndex, overscanStopIndex }, forceRefresh) {
|
|
5635
5635
|
try {
|
|
5636
5636
|
const isFirstItemLoaded = overscanStartIndex >= currentStartIdx && overscanStartIndex <= currentStopIdx;
|
|
5637
5637
|
const isLastItemLoaded = overscanStopIndex >= currentStartIdx && overscanStopIndex <= currentStopIdx;
|
|
@@ -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) {
|
|
@@ -43656,7 +43656,6 @@
|
|
|
43656
43656
|
color: ${(props) => props.isSelected ? "#FFF" : props.theme.colors.text};
|
|
43657
43657
|
text-overflow: ellipsis;
|
|
43658
43658
|
white-space: nowrap;
|
|
43659
|
-
border-radius: 0.25rem;
|
|
43660
43659
|
|
|
43661
43660
|
background-color: ${(props) => {
|
|
43662
43661
|
if (props.isSelected) {
|
|
@@ -43667,6 +43666,7 @@
|
|
|
43667
43666
|
}
|
|
43668
43667
|
return props.theme.colors.grey1;
|
|
43669
43668
|
}};
|
|
43669
|
+
border-radius: 0.25rem;
|
|
43670
43670
|
|
|
43671
43671
|
:hover {
|
|
43672
43672
|
background-color: ${(props) => props.isSelected ? props.theme.colors.primary : props.theme.colors.grey2};
|
|
@@ -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;
|
|
@@ -309939,25 +309940,23 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
309939
309940
|
const Heading = styled__default.default.h2`
|
|
309940
309941
|
overflow: hidden;
|
|
309941
309942
|
display: -webkit-box; /* stylelint-disable-line value-no-vendor-prefix */
|
|
309943
|
+
-webkit-box-orient: vertical;
|
|
309942
309944
|
|
|
309943
309945
|
font-size: 1rem;
|
|
309944
309946
|
font-weight: 700;
|
|
309945
309947
|
text-overflow: ellipsis;
|
|
309946
309948
|
|
|
309947
|
-
-webkit-box-orient: vertical;
|
|
309948
|
-
|
|
309949
309949
|
-webkit-line-clamp: 1;
|
|
309950
309950
|
`;
|
|
309951
309951
|
const Body = styled__default.default.span`
|
|
309952
309952
|
overflow: hidden;
|
|
309953
309953
|
display: -webkit-box; /* stylelint-disable-line value-no-vendor-prefix */
|
|
309954
|
+
-webkit-box-orient: vertical;
|
|
309954
309955
|
|
|
309955
309956
|
font-weight: 400;
|
|
309956
309957
|
line-height: 1.25rem;
|
|
309957
309958
|
text-overflow: ellipsis;
|
|
309958
309959
|
|
|
309959
|
-
-webkit-box-orient: vertical;
|
|
309960
|
-
|
|
309961
309960
|
-webkit-line-clamp: ${(props) => props.moreDetailsShown ? 1 : 2};
|
|
309962
309961
|
`;
|
|
309963
309962
|
const Icon = styled__default.default.div`
|
|
@@ -315808,6 +315807,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
315808
315807
|
var parseValues = function parseQueryStringValues(str, options) {
|
|
315809
315808
|
var obj = { __proto__: null };
|
|
315810
315809
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
|
|
315810
|
+
cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
315811
315811
|
var limit2 = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
|
|
315812
315812
|
var parts = cleanStr.split(options.delimiter, limit2);
|
|
315813
315813
|
var skipIndex = -1;
|
|
@@ -374477,7 +374477,7 @@ ${e3}`);
|
|
|
374477
374477
|
}
|
|
374478
374478
|
return style2;
|
|
374479
374479
|
};
|
|
374480
|
-
var version = "3.29.
|
|
374480
|
+
var version = "3.29.1";
|
|
374481
374481
|
var cytoscape$1 = function cytoscape2(options) {
|
|
374482
374482
|
if (options === void 0) {
|
|
374483
374483
|
options = {};
|
|
@@ -388470,6 +388470,7 @@ ${letters.join("\n")}`;
|
|
|
388470
388470
|
this.onMove = null;
|
|
388471
388471
|
this.onStartDrag = null;
|
|
388472
388472
|
this.renderRequestId = null;
|
|
388473
|
+
this.isStyleDirty = false;
|
|
388473
388474
|
this.searchResults = [];
|
|
388474
388475
|
this.selectedEdge = null;
|
|
388475
388476
|
this.selectedNode = null;
|
|
@@ -388504,11 +388505,18 @@ ${letters.join("\n")}`;
|
|
|
388504
388505
|
this.resizeObserver.disconnect();
|
|
388505
388506
|
this.app.destroy(true, true);
|
|
388506
388507
|
}
|
|
388508
|
+
markStylesDirty() {
|
|
388509
|
+
this.isStyleDirty = true;
|
|
388510
|
+
}
|
|
388507
388511
|
requestRender() {
|
|
388508
388512
|
if (this.renderRequestId) {
|
|
388509
388513
|
return;
|
|
388510
388514
|
}
|
|
388511
388515
|
this.renderRequestId = requestAnimationFrame(() => {
|
|
388516
|
+
if (this.isStyleDirty) {
|
|
388517
|
+
this.updateStyles();
|
|
388518
|
+
this.isStyleDirty = false;
|
|
388519
|
+
}
|
|
388512
388520
|
if (this.viewport && this.app.stage) {
|
|
388513
388521
|
this.graph.forEachEdge((e3, attrs2, source, target, sourceNodeAttributes, targetNodeAttributes) => {
|
|
388514
388522
|
const edgeObject = this.edgeMap.get(e3);
|
|
@@ -388672,7 +388680,7 @@ ${letters.join("\n")}`;
|
|
|
388672
388680
|
});
|
|
388673
388681
|
});
|
|
388674
388682
|
this.createGroupContainers();
|
|
388675
|
-
this.
|
|
388683
|
+
this.markStylesDirty();
|
|
388676
388684
|
this.requestRender();
|
|
388677
388685
|
}
|
|
388678
388686
|
}
|
|
@@ -388732,7 +388740,7 @@ ${letters.join("\n")}`;
|
|
|
388732
388740
|
} else {
|
|
388733
388741
|
this.selectedEdge = null;
|
|
388734
388742
|
}
|
|
388735
|
-
this.
|
|
388743
|
+
this.markStylesDirty();
|
|
388736
388744
|
this.requestRender();
|
|
388737
388745
|
}
|
|
388738
388746
|
selectNode(id2) {
|
|
@@ -388750,7 +388758,7 @@ ${letters.join("\n")}`;
|
|
|
388750
388758
|
node2.state.selected = true;
|
|
388751
388759
|
}
|
|
388752
388760
|
this.selectedNode = id2;
|
|
388753
|
-
this.
|
|
388761
|
+
this.markStylesDirty();
|
|
388754
388762
|
this.requestRender();
|
|
388755
388763
|
}
|
|
388756
388764
|
setDragMode(dragMode) {
|
|
@@ -388760,7 +388768,7 @@ ${letters.join("\n")}`;
|
|
|
388760
388768
|
this.theme = theme2;
|
|
388761
388769
|
this.background.updateTexture(theme2, this.textureCache);
|
|
388762
388770
|
[this.app.renderer.background.color] = colorToPixi(this.theme.colors.blue1);
|
|
388763
|
-
this.
|
|
388771
|
+
this.markStylesDirty();
|
|
388764
388772
|
this.requestRender();
|
|
388765
388773
|
}
|
|
388766
388774
|
start(container) {
|
|
@@ -388808,7 +388816,18 @@ ${letters.join("\n")}`;
|
|
|
388808
388816
|
this.viewport.addChild(this.edgeSymbolsLayer);
|
|
388809
388817
|
this.viewport.addChild(this.nodeLayer);
|
|
388810
388818
|
this.viewport.addChild(this.nodeLabelLayer);
|
|
388811
|
-
this.resizeObserver = new ResizeObserver(() => {
|
|
388819
|
+
this.resizeObserver = new ResizeObserver((entries) => {
|
|
388820
|
+
var _a3;
|
|
388821
|
+
const oldBounds = (_a3 = this.graph.getAttribute("extras")) === null || _a3 === void 0 ? void 0 : _a3.bounds;
|
|
388822
|
+
const boundsChanged = entries.some((entry) => {
|
|
388823
|
+
const newBounds = entry.contentRect;
|
|
388824
|
+
const newWidth = Math.round(newBounds.width);
|
|
388825
|
+
const newHeight = Math.round(newBounds.height);
|
|
388826
|
+
return (oldBounds === null || oldBounds === void 0 ? void 0 : oldBounds.width) !== newWidth || (oldBounds === null || oldBounds === void 0 ? void 0 : oldBounds.height) !== newHeight;
|
|
388827
|
+
});
|
|
388828
|
+
if (!boundsChanged) {
|
|
388829
|
+
return;
|
|
388830
|
+
}
|
|
388812
388831
|
this.app.resize();
|
|
388813
388832
|
this.viewport.resize(this.container.clientWidth, this.container.clientHeight);
|
|
388814
388833
|
this.background.updatePosition(this.container);
|
|
@@ -388836,7 +388855,7 @@ ${letters.join("\n")}`;
|
|
|
388836
388855
|
}
|
|
388837
388856
|
this.createGraph();
|
|
388838
388857
|
this.resetViewport();
|
|
388839
|
-
this.
|
|
388858
|
+
this.markStylesDirty();
|
|
388840
388859
|
this.initialized = true;
|
|
388841
388860
|
this.resetViewport();
|
|
388842
388861
|
});
|
|
@@ -389180,7 +389199,7 @@ ${letters.join("\n")}`;
|
|
|
389180
389199
|
}
|
|
389181
389200
|
onGraphAttributesUpdated({ attributes: attributes2 }) {
|
|
389182
389201
|
if (this.uid) {
|
|
389183
|
-
this.
|
|
389202
|
+
this.markStylesDirty();
|
|
389184
389203
|
this.requestRender();
|
|
389185
389204
|
}
|
|
389186
389205
|
this.uid = attributes2.uid;
|
|
@@ -389191,7 +389210,7 @@ ${letters.join("\n")}`;
|
|
|
389191
389210
|
if (!attributes2.x && !attributes2.y) {
|
|
389192
389211
|
this.debouncedUpdateLayout();
|
|
389193
389212
|
}
|
|
389194
|
-
this.
|
|
389213
|
+
this.markStylesDirty();
|
|
389195
389214
|
this.requestRender();
|
|
389196
389215
|
(_a3 = this.onAddNode) === null || _a3 === void 0 ? void 0 : _a3.call(this);
|
|
389197
389216
|
}
|
|
@@ -389201,7 +389220,7 @@ ${letters.join("\n")}`;
|
|
|
389201
389220
|
const targetNodeAttrs = this.graph.getNodeAttributes(target);
|
|
389202
389221
|
this.createEdge(key, attributes2, source, target, sourceNodeAttrs, targetNodeAttrs);
|
|
389203
389222
|
this.updateStrengthRange();
|
|
389204
|
-
this.
|
|
389223
|
+
this.markStylesDirty();
|
|
389205
389224
|
this.requestRender();
|
|
389206
389225
|
(_a3 = this.onAddEdge) === null || _a3 === void 0 ? void 0 : _a3.call(this);
|
|
389207
389226
|
}
|
|
@@ -389214,11 +389233,11 @@ ${letters.join("\n")}`;
|
|
|
389214
389233
|
}
|
|
389215
389234
|
onGraphEdgeAttributesUpdated() {
|
|
389216
389235
|
this.updateStrengthRange();
|
|
389217
|
-
this.
|
|
389236
|
+
this.markStylesDirty();
|
|
389218
389237
|
this.requestRender();
|
|
389219
389238
|
}
|
|
389220
389239
|
onGraphNodeAttributesUpdated() {
|
|
389221
|
-
this.
|
|
389240
|
+
this.markStylesDirty();
|
|
389222
389241
|
this.requestRender();
|
|
389223
389242
|
}
|
|
389224
389243
|
setLayout(layout2, edgePoints2, resetViewport = true) {
|
|
@@ -389232,7 +389251,7 @@ ${letters.join("\n")}`;
|
|
|
389232
389251
|
if (resetViewport) {
|
|
389233
389252
|
this.resetViewport();
|
|
389234
389253
|
}
|
|
389235
|
-
this.
|
|
389254
|
+
this.markStylesDirty();
|
|
389236
389255
|
this.requestRender();
|
|
389237
389256
|
}
|
|
389238
389257
|
getRelativeStrength(attributes2) {
|
|
@@ -389306,11 +389325,12 @@ ${letters.join("\n")}`;
|
|
|
389306
389325
|
}
|
|
389307
389326
|
});
|
|
389308
389327
|
}
|
|
389309
|
-
updateLayout(
|
|
389310
|
-
|
|
389311
|
-
|
|
389328
|
+
updateLayout() {
|
|
389329
|
+
return __awaiter$1(this, arguments, void 0, function* (retry = false) {
|
|
389330
|
+
var _a3;
|
|
389312
389331
|
(_a3 = this.onCleanup) === null || _a3 === void 0 ? void 0 : _a3.call(this);
|
|
389313
389332
|
try {
|
|
389333
|
+
this.graph.updateAttribute("extras", (prev) => Object.assign(Object.assign({}, prev), { bounds: { width: this.container.clientWidth, height: this.container.clientHeight } }));
|
|
389314
389334
|
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
389335
|
this.onAddNode = onAddNode;
|
|
389316
389336
|
this.onAddEdge = onAddEdge;
|
|
@@ -389784,7 +389804,7 @@ ${letters.join("\n")}`;
|
|
|
389784
389804
|
const parsedGraph = causalGraphParser(graphData, availableInputs, state.graph);
|
|
389785
389805
|
const newEditorMode = editorMode !== null && editorMode !== void 0 ? editorMode : isDag(parsedGraph) ? EditorMode.DEFAULT : EditorMode.PAG_VIEWER;
|
|
389786
389806
|
dispatch2({
|
|
389787
|
-
graph:
|
|
389807
|
+
graph: parsedGraph,
|
|
389788
389808
|
editorMode: newEditorMode,
|
|
389789
389809
|
type: GraphActionType.INIT_GRAPH
|
|
389790
389810
|
});
|
|
@@ -390042,6 +390062,7 @@ ${letters.join("\n")}`;
|
|
|
390042
390062
|
`;
|
|
390043
390063
|
const GraphPane = styled__default.default.div`
|
|
390044
390064
|
position: relative;
|
|
390065
|
+
z-index: 1;
|
|
390045
390066
|
|
|
390046
390067
|
display: flex;
|
|
390047
390068
|
flex: 1 1 auto;
|
|
@@ -390457,7 +390478,7 @@ ${letters.join("\n")}`;
|
|
|
390457
390478
|
selectedEdge,
|
|
390458
390479
|
selectedNode,
|
|
390459
390480
|
verboseDescriptions: props.verboseDescriptions
|
|
390460
|
-
}, children: [selectedEdge && jsxRuntime.exports.jsx(EdgeInfoContent, { api: api2, extraSections: props.edgeExtrasContent, onConfirmDirection: confirmDirection, onUpdateConstraint: updateConstraint, selectedConstraint, selectedEdge, state }, selectedEdge.join("-")), selectedNode && jsxRuntime.exports.jsx(NodeInfoContent, { api: api2, extraSections: props.nodeExtrasContent, selectedNode, state }, selectedNode)] }) }), error2 && jsxRuntime.exports.jsx(NotificationWrapper, { children: jsxRuntime.exports.jsx(Notification, { notification: error2, onDismiss: () => setError(null) }) }), jsxRuntime.exports.jsx("div", { ref: canvasParentRef, style: { height: "100%", width: "100%" } }), jsxRuntime.exports.jsx(Tooltip$1, { content: tooltipContent, followCursor: true, getReferenceClientRect: tooltipRef.current, visible: !isInPanel && !!tooltipContent }), jsxRuntime.exports.jsx(ConfirmationModal, Object.assign({ title: "Confirm Removal" }, removeEdgeProps))] }) }) }) });
|
|
390481
|
+
}, children: [selectedEdge && jsxRuntime.exports.jsx(EdgeInfoContent, { api: api2, extraSections: props.edgeExtrasContent, onConfirmDirection: confirmDirection, onUpdateConstraint: updateConstraint, selectedConstraint, selectedEdge, state }, selectedEdge.join("-")), selectedNode && jsxRuntime.exports.jsx(NodeInfoContent, { api: api2, extraSections: props.nodeExtrasContent, selectedNode, state }, selectedNode)] }) }), error2 && jsxRuntime.exports.jsx(NotificationWrapper, { children: jsxRuntime.exports.jsx(Notification, { notification: error2, onDismiss: () => setError(null) }) }), jsxRuntime.exports.jsx("div", { ref: canvasParentRef, style: { height: "100%", width: "100%" } }), jsxRuntime.exports.jsx(Tooltip$1, { appendTo: canvasParentRef.current, content: tooltipContent, followCursor: true, getReferenceClientRect: tooltipRef.current, visible: !isInPanel && !!tooltipContent }), jsxRuntime.exports.jsx(ConfirmationModal, Object.assign({ title: "Confirm Removal" }, removeEdgeProps))] }) }) }) });
|
|
390461
390482
|
}
|
|
390462
390483
|
var DndContext = React.createContext({
|
|
390463
390484
|
dragDropManager: void 0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darajs/components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.2",
|
|
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": "
|
|
33
|
-
"@darajs/prettier-config": "
|
|
34
|
-
"@darajs/stylelint-config": "
|
|
32
|
+
"@darajs/eslint-config": "1.11.2",
|
|
33
|
+
"@darajs/prettier-config": "1.11.2",
|
|
34
|
+
"@darajs/stylelint-config": "1.11.2",
|
|
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.
|
|
58
|
-
"@darajs/styled-components": "
|
|
59
|
-
"@darajs/ui-causal-graph-editor": "
|
|
60
|
-
"@darajs/ui-code-editor": "
|
|
61
|
-
"@darajs/ui-components": "
|
|
62
|
-
"@darajs/ui-hierarchy-viewer": "
|
|
63
|
-
"@darajs/ui-icons": "
|
|
64
|
-
"@darajs/ui-utils": "
|
|
57
|
+
"@darajs/core": "1.11.2",
|
|
58
|
+
"@darajs/styled-components": "1.11.2",
|
|
59
|
+
"@darajs/ui-causal-graph-editor": "1.11.2",
|
|
60
|
+
"@darajs/ui-code-editor": "1.11.2",
|
|
61
|
+
"@darajs/ui-components": "1.11.2",
|
|
62
|
+
"@darajs/ui-hierarchy-viewer": "1.11.2",
|
|
63
|
+
"@darajs/ui-icons": "1.11.2",
|
|
64
|
+
"@darajs/ui-utils": "1.11.2",
|
|
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": "859cfcf281a0635e05f7e633857346e9ec4fc116"
|
|
87
87
|
}
|
|
Binary file
|