dara-core 1.20.0__py3-none-any.whl → 1.20.1__py3-none-any.whl

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.
@@ -1292,7 +1292,7 @@
1292
1292
  if (null == r2) return {};
1293
1293
  var t2 = {};
1294
1294
  for (var n2 in r2) if ({}.hasOwnProperty.call(r2, n2)) {
1295
- if (-1 !== e2.indexOf(n2)) continue;
1295
+ if (e2.includes(n2)) continue;
1296
1296
  t2[n2] = r2[n2];
1297
1297
  }
1298
1298
  return t2;
@@ -1830,7 +1830,7 @@
1830
1830
  invariant$1();
1831
1831
  };
1832
1832
  }
1833
- function noop$5() {
1833
+ function noop$4() {
1834
1834
  }
1835
1835
  var StaticRouter = /* @__PURE__ */ function(_React$Component) {
1836
1836
  _inheritsLoose$1(StaticRouter2, _React$Component);
@@ -1847,10 +1847,10 @@
1847
1847
  return _this.navigateTo(location2, "REPLACE");
1848
1848
  };
1849
1849
  _this.handleListen = function() {
1850
- return noop$5;
1850
+ return noop$4;
1851
1851
  };
1852
1852
  _this.handleBlock = function() {
1853
- return noop$5;
1853
+ return noop$4;
1854
1854
  };
1855
1855
  return _this;
1856
1856
  }
@@ -12446,14 +12446,14 @@
12446
12446
  function _nonIterableRest$2() {
12447
12447
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
12448
12448
  }
12449
- var noop$4 = function noop2() {
12449
+ var noop$3 = function noop2() {
12450
12450
  };
12451
12451
  var _WINDOW = {};
12452
12452
  var _DOCUMENT = {};
12453
12453
  var _MUTATION_OBSERVER = null;
12454
12454
  var _PERFORMANCE = {
12455
- mark: noop$4,
12456
- measure: noop$4
12455
+ mark: noop$3,
12456
+ measure: noop$3
12457
12457
  };
12458
12458
  try {
12459
12459
  if (typeof window !== "undefined") _WINDOW = window;
@@ -15789,7 +15789,7 @@
15789
15789
  }
15790
15790
  });
15791
15791
  }
15792
- function noop$3() {
15792
+ function noop$2() {
15793
15793
  }
15794
15794
  function errorContext(cb) {
15795
15795
  {
@@ -15929,9 +15929,9 @@
15929
15929
  }
15930
15930
  var EMPTY_OBSERVER = {
15931
15931
  closed: true,
15932
- next: noop$3,
15932
+ next: noop$2,
15933
15933
  error: defaultErrorHandler,
15934
- complete: noop$3
15934
+ complete: noop$2
15935
15935
  };
15936
15936
  var observable = function() {
15937
15937
  return typeof Symbol === "function" && Symbol.observable || "@@observable";
@@ -19574,7 +19574,6 @@
19574
19574
  }
19575
19575
  return value instanceof ShadowRoot || value instanceof getWindow$1(value).ShadowRoot;
19576
19576
  }
19577
- const invalidOverflowDisplayValues = /* @__PURE__ */ new Set(["inline", "contents"]);
19578
19577
  function isOverflowElement(element) {
19579
19578
  const {
19580
19579
  overflow,
@@ -19582,29 +19581,24 @@
19582
19581
  overflowY,
19583
19582
  display
19584
19583
  } = getComputedStyle$2(element);
19585
- return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
19584
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !["inline", "contents"].includes(display);
19586
19585
  }
19587
- const tableElements = /* @__PURE__ */ new Set(["table", "td", "th"]);
19588
19586
  function isTableElement$1(element) {
19589
- return tableElements.has(getNodeName$1(element));
19587
+ return ["table", "td", "th"].includes(getNodeName$1(element));
19590
19588
  }
19591
- const topLayerSelectors = [":popover-open", ":modal"];
19592
19589
  function isTopLayer(element) {
19593
- return topLayerSelectors.some((selector2) => {
19590
+ return [":popover-open", ":modal"].some((selector2) => {
19594
19591
  try {
19595
19592
  return element.matches(selector2);
19596
- } catch (_e2) {
19593
+ } catch (e2) {
19597
19594
  return false;
19598
19595
  }
19599
19596
  });
19600
19597
  }
19601
- const transformProperties = ["transform", "translate", "scale", "rotate", "perspective"];
19602
- const willChangeValues = ["transform", "translate", "scale", "rotate", "perspective", "filter"];
19603
- const containValues = ["paint", "layout", "strict", "content"];
19604
19598
  function isContainingBlock(elementOrCss) {
19605
19599
  const webkit = isWebKit();
19606
19600
  const css2 = isElement$1(elementOrCss) ? getComputedStyle$2(elementOrCss) : elementOrCss;
19607
- return transformProperties.some((value) => css2[value] ? css2[value] !== "none" : false) || (css2.containerType ? css2.containerType !== "normal" : false) || !webkit && (css2.backdropFilter ? css2.backdropFilter !== "none" : false) || !webkit && (css2.filter ? css2.filter !== "none" : false) || willChangeValues.some((value) => (css2.willChange || "").includes(value)) || containValues.some((value) => (css2.contain || "").includes(value));
19601
+ return css2.transform !== "none" || css2.perspective !== "none" || (css2.containerType ? css2.containerType !== "normal" : false) || !webkit && (css2.backdropFilter ? css2.backdropFilter !== "none" : false) || !webkit && (css2.filter ? css2.filter !== "none" : false) || ["transform", "perspective", "filter"].some((value) => (css2.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css2.contain || "").includes(value));
19608
19602
  }
19609
19603
  function getContainingBlock$1(element) {
19610
19604
  let currentNode = getParentNode$1(element);
@@ -19622,9 +19616,8 @@
19622
19616
  if (typeof CSS === "undefined" || !CSS.supports) return false;
19623
19617
  return CSS.supports("-webkit-backdrop-filter", "none");
19624
19618
  }
19625
- const lastTraversableNodeNames = /* @__PURE__ */ new Set(["html", "body", "#document"]);
19626
19619
  function isLastTraversableNode(node) {
19627
- return lastTraversableNodeNames.has(getNodeName$1(node));
19620
+ return ["html", "body", "#document"].includes(getNodeName$1(node));
19628
19621
  }
19629
19622
  function getComputedStyle$2(element) {
19630
19623
  return getWindow$1(element).getComputedStyle(element);
@@ -19824,9 +19817,8 @@
19824
19817
  function getAxisLength(axis) {
19825
19818
  return axis === "y" ? "height" : "width";
19826
19819
  }
19827
- const yAxisSides = /* @__PURE__ */ new Set(["top", "bottom"]);
19828
19820
  function getSideAxis(placement) {
19829
- return yAxisSides.has(getSide(placement)) ? "y" : "x";
19821
+ return ["top", "bottom"].includes(getSide(placement)) ? "y" : "x";
19830
19822
  }
19831
19823
  function getAlignmentAxis(placement) {
19832
19824
  return getOppositeAxis(getSideAxis(placement));
@@ -19851,19 +19843,19 @@
19851
19843
  function getOppositeAlignmentPlacement(placement) {
19852
19844
  return placement.replace(/start|end/g, (alignment) => oppositeAlignmentMap[alignment]);
19853
19845
  }
19854
- const lrPlacement = ["left", "right"];
19855
- const rlPlacement = ["right", "left"];
19856
- const tbPlacement = ["top", "bottom"];
19857
- const btPlacement = ["bottom", "top"];
19858
19846
  function getSideList(side, isStart, rtl) {
19847
+ const lr = ["left", "right"];
19848
+ const rl = ["right", "left"];
19849
+ const tb = ["top", "bottom"];
19850
+ const bt2 = ["bottom", "top"];
19859
19851
  switch (side) {
19860
19852
  case "top":
19861
19853
  case "bottom":
19862
- if (rtl) return isStart ? rlPlacement : lrPlacement;
19863
- return isStart ? lrPlacement : rlPlacement;
19854
+ if (rtl) return isStart ? rl : lr;
19855
+ return isStart ? lr : rl;
19864
19856
  case "left":
19865
19857
  case "right":
19866
- return isStart ? tbPlacement : btPlacement;
19858
+ return isStart ? tb : bt2;
19867
19859
  default:
19868
19860
  return [];
19869
19861
  }
@@ -20625,20 +20617,15 @@
20625
20617
  const nextIndex2 = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
20626
20618
  const nextPlacement = placements2[nextIndex2];
20627
20619
  if (nextPlacement) {
20628
- const ignoreCrossAxisOverflow = checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false;
20629
- if (!ignoreCrossAxisOverflow || // We leave the current main axis only if every placement on that axis
20630
- // overflows the main axis.
20631
- overflowsData.every((d2) => d2.overflows[0] > 0 && getSideAxis(d2.placement) === initialSideAxis)) {
20632
- return {
20633
- data: {
20634
- index: nextIndex2,
20635
- overflows: overflowsData
20636
- },
20637
- reset: {
20638
- placement: nextPlacement
20639
- }
20640
- };
20641
- }
20620
+ return {
20621
+ data: {
20622
+ index: nextIndex2,
20623
+ overflows: overflowsData
20624
+ },
20625
+ reset: {
20626
+ placement: nextPlacement
20627
+ }
20628
+ };
20642
20629
  }
20643
20630
  let resetPlacement = (_overflowsData$filter = overflowsData.filter((d2) => d2.overflows[0] <= 0).sort((a2, b2) => a2.overflows[1] - b2.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
20644
20631
  if (!resetPlacement) {
@@ -20676,7 +20663,6 @@
20676
20663
  }
20677
20664
  };
20678
20665
  };
20679
- const originSides = /* @__PURE__ */ new Set(["left", "top"]);
20680
20666
  async function convertValueToCoords(state, options) {
20681
20667
  const {
20682
20668
  placement,
@@ -20687,7 +20673,7 @@
20687
20673
  const side = getSide(placement);
20688
20674
  const alignment = getAlignment(placement);
20689
20675
  const isVertical = getSideAxis(placement) === "y";
20690
- const mainAxisMulti = originSides.has(side) ? -1 : 1;
20676
+ const mainAxisMulti = ["left", "top"].includes(side) ? -1 : 1;
20691
20677
  const crossAxisMulti = rtl && isVertical ? -1 : 1;
20692
20678
  const rawValue = evaluate(options, state);
20693
20679
  let {
@@ -21117,7 +21103,6 @@
21117
21103
  y
21118
21104
  };
21119
21105
  }
21120
- const absoluteOrFixed = /* @__PURE__ */ new Set(["absolute", "fixed"]);
21121
21106
  function getInnerBoundingClientRect$1(element, strategy) {
21122
21107
  const clientRect = getBoundingClientRect$1(element, true, strategy === "fixed");
21123
21108
  const top2 = clientRect.top + element.clientTop;
@@ -21175,7 +21160,7 @@
21175
21160
  if (!currentNodeIsContaining && computedStyle.position === "fixed") {
21176
21161
  currentContainingBlockComputedStyle = null;
21177
21162
  }
21178
- const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
21163
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
21179
21164
  if (shouldDropCurrentNode) {
21180
21165
  result = result.filter((ancestor) => ancestor !== currentNode);
21181
21166
  } else {
@@ -21231,9 +21216,6 @@
21231
21216
  scrollTop: 0
21232
21217
  };
21233
21218
  const offsets = createCoords(0);
21234
- function setLeftRTLScrollbarOffset() {
21235
- offsets.x = getWindowScrollBarX$1(documentElement);
21236
- }
21237
21219
  if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
21238
21220
  if (getNodeName$1(offsetParent) !== "body" || isOverflowElement(documentElement)) {
21239
21221
  scroll = getNodeScroll$1(offsetParent);
@@ -21243,12 +21225,9 @@
21243
21225
  offsets.x = offsetRect.x + offsetParent.clientLeft;
21244
21226
  offsets.y = offsetRect.y + offsetParent.clientTop;
21245
21227
  } else if (documentElement) {
21246
- setLeftRTLScrollbarOffset();
21228
+ offsets.x = getWindowScrollBarX$1(documentElement);
21247
21229
  }
21248
21230
  }
21249
- if (isFixed && !isOffsetParentAnElement && documentElement) {
21250
- setLeftRTLScrollbarOffset();
21251
- }
21252
21231
  const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
21253
21232
  const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
21254
21233
  const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
@@ -21328,9 +21307,6 @@
21328
21307
  isElement: isElement$1,
21329
21308
  isRTL
21330
21309
  };
21331
- function rectsAreEqual(a2, b2) {
21332
- return a2.x === b2.x && a2.y === b2.y && a2.width === b2.width && a2.height === b2.height;
21333
- }
21334
21310
  function observeMove(element, onMove) {
21335
21311
  let io = null;
21336
21312
  let timeoutId2;
@@ -21349,13 +21325,12 @@
21349
21325
  threshold = 1;
21350
21326
  }
21351
21327
  cleanup();
21352
- const elementRectForRootMargin = element.getBoundingClientRect();
21353
21328
  const {
21354
21329
  left: left2,
21355
21330
  top: top2,
21356
21331
  width,
21357
21332
  height
21358
- } = elementRectForRootMargin;
21333
+ } = element.getBoundingClientRect();
21359
21334
  if (!skip) {
21360
21335
  onMove();
21361
21336
  }
@@ -21386,9 +21361,6 @@
21386
21361
  refresh(false, ratio);
21387
21362
  }
21388
21363
  }
21389
- if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
21390
- refresh();
21391
- }
21392
21364
  isFirstUpdate = false;
21393
21365
  }
21394
21366
  try {
@@ -21397,7 +21369,7 @@
21397
21369
  // Handle <iframe>s
21398
21370
  root: root.ownerDocument
21399
21371
  });
21400
- } catch (_e2) {
21372
+ } catch (e2) {
21401
21373
  io = new IntersectionObserver(handleObserve, options);
21402
21374
  }
21403
21375
  io.observe(element);
@@ -21452,7 +21424,7 @@
21452
21424
  }
21453
21425
  function frameLoop() {
21454
21426
  const nextRefRect = getBoundingClientRect$1(reference2);
21455
- if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
21427
+ if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
21456
21428
  update();
21457
21429
  }
21458
21430
  prevRefRect = nextRefRect;
@@ -21494,10 +21466,7 @@
21494
21466
  platform: platformWithCache
21495
21467
  });
21496
21468
  };
21497
- var isClient = typeof document !== "undefined";
21498
- var noop$2 = function noop2() {
21499
- };
21500
- var index$2 = isClient ? React$1.useLayoutEffect : noop$2;
21469
+ var index$2 = typeof document !== "undefined" ? React$1.useLayoutEffect : React$1.useEffect;
21501
21470
  function deepEqual(a2, b2) {
21502
21471
  if (a2 === b2) {
21503
21472
  return true;
@@ -22076,11 +22045,11 @@
22076
22045
  performedPointerEventsMutationRef.current = false;
22077
22046
  }
22078
22047
  });
22079
- const isClickLikeOpenEvent = useEffectEvent(() => {
22080
- return dataRef.current.openEvent ? ["click", "mousedown"].includes(dataRef.current.openEvent.type) : false;
22081
- });
22082
22048
  React__namespace.useEffect(() => {
22083
22049
  if (!enabled) return;
22050
+ function isClickLikeOpenEvent() {
22051
+ return dataRef.current.openEvent ? ["click", "mousedown"].includes(dataRef.current.openEvent.type) : false;
22052
+ }
22084
22053
  function onMouseEnter(event) {
22085
22054
  clearTimeout(timeoutRef.current);
22086
22055
  blockMouseMoveRef.current = false;
@@ -22094,7 +22063,7 @@
22094
22063
  onOpenChange(true, event, "hover");
22095
22064
  }
22096
22065
  }, openDelay);
22097
- } else if (!open2) {
22066
+ } else {
22098
22067
  onOpenChange(true, event, "hover");
22099
22068
  }
22100
22069
  }
@@ -22116,9 +22085,7 @@
22116
22085
  onClose() {
22117
22086
  clearPointerEvents();
22118
22087
  cleanupMouseMoveHandler();
22119
- if (!isClickLikeOpenEvent()) {
22120
- closeWithDelay(event, true, "safe-polygon");
22121
- }
22088
+ closeWithDelay(event, true, "safe-polygon");
22122
22089
  }
22123
22090
  });
22124
22091
  const handler = handlerRef.current;
@@ -22144,9 +22111,7 @@
22144
22111
  onClose() {
22145
22112
  clearPointerEvents();
22146
22113
  cleanupMouseMoveHandler();
22147
- if (!isClickLikeOpenEvent()) {
22148
- closeWithDelay(event);
22149
- }
22114
+ closeWithDelay(event);
22150
22115
  }
22151
22116
  })(event);
22152
22117
  }
@@ -22169,7 +22134,7 @@
22169
22134
  ref.removeEventListener("mouseleave", onMouseLeave);
22170
22135
  };
22171
22136
  }
22172
- }, [elements, enabled, context2, mouseOnly, restMs, move, closeWithDelay, cleanupMouseMoveHandler, clearPointerEvents, onOpenChange, open2, openRef, tree, delayRef, handleCloseRef, dataRef, isClickLikeOpenEvent]);
22137
+ }, [elements, enabled, context2, mouseOnly, restMs, move, closeWithDelay, cleanupMouseMoveHandler, clearPointerEvents, onOpenChange, open2, openRef, tree, delayRef, handleCloseRef, dataRef]);
22173
22138
  index$1(() => {
22174
22139
  var _handleCloseRef$curre;
22175
22140
  if (!enabled) return;
@@ -22252,11 +22217,9 @@
22252
22217
  clearTimeout(timeoutRef.current);
22253
22218
  },
22254
22219
  onMouseLeave(event) {
22255
- if (!isClickLikeOpenEvent()) {
22256
- closeWithDelay(event.nativeEvent, false);
22257
- }
22220
+ closeWithDelay(event.nativeEvent, false);
22258
22221
  }
22259
- }), [closeWithDelay, isClickLikeOpenEvent]);
22222
+ }), [closeWithDelay]);
22260
22223
  return React__namespace.useMemo(() => enabled ? {
22261
22224
  reference: reference2,
22262
22225
  floating
@@ -22540,8 +22503,7 @@
22540
22503
  event: eventOption = "click",
22541
22504
  toggle = true,
22542
22505
  ignoreMouse = false,
22543
- keyboardHandlers = true,
22544
- stickIfOpen = true
22506
+ keyboardHandlers = true
22545
22507
  } = props;
22546
22508
  const pointerTypeRef = React__namespace.useRef();
22547
22509
  const didKeyDownRef = React__namespace.useRef(false);
@@ -22554,7 +22516,7 @@
22554
22516
  if (event.button !== 0) return;
22555
22517
  if (eventOption === "click") return;
22556
22518
  if (isMouseLikePointerType(pointerType, true) && ignoreMouse) return;
22557
- if (open2 && toggle && (dataRef.current.openEvent && stickIfOpen ? dataRef.current.openEvent.type === "mousedown" : true)) {
22519
+ if (open2 && toggle && (dataRef.current.openEvent ? dataRef.current.openEvent.type === "mousedown" : true)) {
22558
22520
  onOpenChange(false, event.nativeEvent, "click");
22559
22521
  } else {
22560
22522
  event.preventDefault();
@@ -22568,7 +22530,7 @@
22568
22530
  return;
22569
22531
  }
22570
22532
  if (isMouseLikePointerType(pointerType, true) && ignoreMouse) return;
22571
- if (open2 && toggle && (dataRef.current.openEvent && stickIfOpen ? dataRef.current.openEvent.type === "click" : true)) {
22533
+ if (open2 && toggle && (dataRef.current.openEvent ? dataRef.current.openEvent.type === "click" : true)) {
22572
22534
  onOpenChange(false, event.nativeEvent, "click");
22573
22535
  } else {
22574
22536
  onOpenChange(true, event.nativeEvent, "click");
@@ -22604,7 +22566,7 @@
22604
22566
  }
22605
22567
  }
22606
22568
  }
22607
- }), [dataRef, domReference, eventOption, ignoreMouse, keyboardHandlers, onOpenChange, open2, stickIfOpen, toggle]);
22569
+ }), [dataRef, domReference, eventOption, ignoreMouse, keyboardHandlers, onOpenChange, open2, toggle]);
22608
22570
  return React__namespace.useMemo(() => enabled ? {
22609
22571
  reference: reference2
22610
22572
  } : {}, [enabled, reference2]);
@@ -43791,11 +43753,9 @@
43791
43753
  requireRound();
43792
43754
  const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c = typeof document !== "undefined" ? React$1.useLayoutEffect : () => {
43793
43755
  };
43794
- var $8ae05eaa5c114e9c$var$_React_useInsertionEffect;
43795
- const $8ae05eaa5c114e9c$var$useEarlyEffect = ($8ae05eaa5c114e9c$var$_React_useInsertionEffect = React$1["useInsertionEffect"]) !== null && $8ae05eaa5c114e9c$var$_React_useInsertionEffect !== void 0 ? $8ae05eaa5c114e9c$var$_React_useInsertionEffect : $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c;
43796
43756
  function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {
43797
43757
  const ref = React$1.useRef(null);
43798
- $8ae05eaa5c114e9c$var$useEarlyEffect(() => {
43758
+ $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
43799
43759
  ref.current = fn;
43800
43760
  }, [
43801
43761
  fn
@@ -44035,54 +43995,11 @@
44035
43995
  "ping",
44036
43996
  "referrerPolicy"
44037
43997
  ]);
44038
- const $65484d02dcb7eb3e$var$globalAttrs = /* @__PURE__ */ new Set([
44039
- "dir",
44040
- "lang",
44041
- "hidden",
44042
- "inert",
44043
- "translate"
44044
- ]);
44045
- const $65484d02dcb7eb3e$var$globalEvents = /* @__PURE__ */ new Set([
44046
- "onClick",
44047
- "onAuxClick",
44048
- "onContextMenu",
44049
- "onDoubleClick",
44050
- "onMouseDown",
44051
- "onMouseEnter",
44052
- "onMouseLeave",
44053
- "onMouseMove",
44054
- "onMouseOut",
44055
- "onMouseOver",
44056
- "onMouseUp",
44057
- "onTouchCancel",
44058
- "onTouchEnd",
44059
- "onTouchMove",
44060
- "onTouchStart",
44061
- "onPointerDown",
44062
- "onPointerMove",
44063
- "onPointerUp",
44064
- "onPointerCancel",
44065
- "onPointerEnter",
44066
- "onPointerLeave",
44067
- "onPointerOver",
44068
- "onPointerOut",
44069
- "onGotPointerCapture",
44070
- "onLostPointerCapture",
44071
- "onScroll",
44072
- "onWheel",
44073
- "onAnimationStart",
44074
- "onAnimationEnd",
44075
- "onAnimationIteration",
44076
- "onTransitionCancel",
44077
- "onTransitionEnd",
44078
- "onTransitionRun",
44079
- "onTransitionStart"
44080
- ]);
44081
43998
  const $65484d02dcb7eb3e$var$propRe = /^(data-.*)$/;
44082
43999
  function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) {
44083
- let { labelable, isLink, global: global2, events = global2, propNames } = opts;
44000
+ let { labelable, isLink, propNames } = opts;
44084
44001
  let filteredProps = {};
44085
- for (const prop in props) if (Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || global2 && $65484d02dcb7eb3e$var$globalAttrs.has(prop) || events && $65484d02dcb7eb3e$var$globalEvents.has(prop) || prop.endsWith("Capture") && $65484d02dcb7eb3e$var$globalEvents.has(prop.slice(0, -7)) || (propNames === null || propNames === void 0 ? void 0 : propNames.has(prop)) || $65484d02dcb7eb3e$var$propRe.test(prop))) filteredProps[prop] = props[prop];
44002
+ for (const prop in props) if (Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || (propNames === null || propNames === void 0 ? void 0 : propNames.has(prop)) || $65484d02dcb7eb3e$var$propRe.test(prop))) filteredProps[prop] = props[prop];
44086
44003
  return filteredProps;
44087
44004
  }
44088
44005
  function $7215afc6de606d6b$export$de79e2c695e052f3(element) {
@@ -44140,8 +44057,7 @@
44140
44057
  function $c87311424ea30a05$var$testUserAgent(re) {
44141
44058
  var _window_navigator_userAgentData;
44142
44059
  if (typeof window === "undefined" || window.navigator == null) return false;
44143
- let brands = (_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands;
44144
- return Array.isArray(brands) && brands.some((brand) => re.test(brand.brand)) || re.test(window.navigator.userAgent);
44060
+ return ((_window_navigator_userAgentData = window.navigator["userAgentData"]) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand) => re.test(brand.brand))) || re.test(window.navigator.userAgent);
44145
44061
  }
44146
44062
  function $c87311424ea30a05$var$testPlatform(re) {
44147
44063
  var _window_navigator_userAgentData;
@@ -44331,8 +44247,9 @@
44331
44247
  return event.detail === 0 && !event.pointerType;
44332
44248
  }
44333
44249
  function $99facab73266f662$export$5add1d006293d136(ref, initialValue, onReset) {
44250
+ let resetValue = React$1.useRef(initialValue);
44334
44251
  let handleReset2 = $8ae05eaa5c114e9c$export$7f54fc3180508a52(() => {
44335
- if (onReset) onReset(initialValue);
44252
+ if (onReset) onReset(resetValue.current);
44336
44253
  });
44337
44254
  React$1.useEffect(() => {
44338
44255
  var _ref_current;
@@ -44393,14 +44310,9 @@
44393
44310
  }
44394
44311
  function $9446cca9a3875146$export$e1a7b8e69ef6c52f(value, step) {
44395
44312
  let roundedValue = value;
44396
- let precision = 0;
44397
44313
  let stepString = step.toString();
44398
- let eIndex = stepString.toLowerCase().indexOf("e-");
44399
- if (eIndex > 0) precision = Math.abs(Math.floor(Math.log10(Math.abs(step)))) + eIndex;
44400
- else {
44401
- let pointIndex = stepString.indexOf(".");
44402
- if (pointIndex >= 0) precision = stepString.length - pointIndex;
44403
- }
44314
+ let pointIndex = stepString.indexOf(".");
44315
+ let precision = pointIndex >= 0 ? stepString.length - pointIndex : 0;
44404
44316
  if (precision > 0) {
44405
44317
  let pow = Math.pow(10, precision);
44406
44318
  roundedValue = Math.round(roundedValue * pow) / pow;
@@ -44987,9 +44899,7 @@
44987
44899
  }
44988
44900
  function $6179b936705e76d3$var$setupGlobalTouchEvents() {
44989
44901
  if (typeof document === "undefined") return;
44990
- if ($6179b936705e76d3$var$hoverCount === 0) {
44991
- if (typeof PointerEvent !== "undefined") document.addEventListener("pointerup", $6179b936705e76d3$var$handleGlobalPointerEvent);
44992
- }
44902
+ if (typeof PointerEvent !== "undefined") document.addEventListener("pointerup", $6179b936705e76d3$var$handleGlobalPointerEvent);
44993
44903
  $6179b936705e76d3$var$hoverCount++;
44994
44904
  return () => {
44995
44905
  $6179b936705e76d3$var$hoverCount--;
@@ -45524,8 +45434,7 @@
45524
45434
  step
45525
45435
  ]);
45526
45436
  let value = React$1.useMemo(() => restrictValues($28f99e3e86e6ec45$var$convertValue(props.value)), [
45527
- props.value,
45528
- restrictValues
45437
+ props.value
45529
45438
  ]);
45530
45439
  let defaultValue = React$1.useMemo(() => {
45531
45440
  var _convertValue;
@@ -45534,13 +45443,11 @@
45534
45443
  ]);
45535
45444
  }, [
45536
45445
  props.defaultValue,
45537
- minValue,
45538
- restrictValues
45446
+ minValue
45539
45447
  ]);
45540
45448
  let onChange2 = $28f99e3e86e6ec45$var$createOnChange(props.value, props.defaultValue, props.onChange);
45541
45449
  let onChangeEnd = $28f99e3e86e6ec45$var$createOnChange(props.value, props.defaultValue, props.onChangeEnd);
45542
45450
  const [values, setValuesState] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange2);
45543
- let [initialValues] = React$1.useState(values);
45544
45451
  const [isDraggings, setDraggingsState] = React$1.useState(new Array(values.length).fill(false));
45545
45452
  const isEditablesRef = React$1.useRef(new Array(values.length).fill(true));
45546
45453
  const [focusedIndex, setFocusedIndex] = React$1.useState(void 0);
@@ -45608,7 +45515,6 @@
45608
45515
  }
45609
45516
  return {
45610
45517
  values,
45611
- defaultValues: props.defaultValue !== void 0 ? defaultValue : initialValues,
45612
45518
  getThumbValue: (index2) => values[index2],
45613
45519
  setThumbValue: updateValue,
45614
45520
  setThumbPercent,
@@ -45827,7 +45733,7 @@
45827
45733
  };
45828
45734
  }
45829
45735
  function $47b897dc8cdb026b$export$8d15029008292ae(opts, state) {
45830
- let { index: index2 = 0, isRequired, validationState, isInvalid, trackRef, inputRef, orientation = state.orientation, name, form } = opts;
45736
+ let { index: index2 = 0, isRequired, validationState, isInvalid, trackRef, inputRef, orientation = state.orientation, name } = opts;
45831
45737
  let isDisabled = opts.isDisabled || state.isDisabled;
45832
45738
  let isVertical = orientation === "vertical";
45833
45739
  let { direction } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
@@ -45946,7 +45852,7 @@
45946
45852
  onDown(e2.changedTouches[0].identifier);
45947
45853
  }
45948
45854
  }) : {};
45949
- $99facab73266f662$export$5add1d006293d136(inputRef, state.defaultValues[index2], (v) => {
45855
+ $99facab73266f662$export$5add1d006293d136(inputRef, value, (v) => {
45950
45856
  state.setThumbValue(index2, v);
45951
45857
  });
45952
45858
  return {
@@ -45958,7 +45864,6 @@
45958
45864
  step: state.step,
45959
45865
  value,
45960
45866
  name,
45961
- form,
45962
45867
  disabled: isDisabled,
45963
45868
  "aria-orientation": orientation,
45964
45869
  "aria-valuetext": state.getThumbValueLabel(index2),
@@ -46019,9 +45924,7 @@
46019
45924
  },
46020
45925
  defaultClassName: "react-aria-Slider"
46021
45926
  });
46022
- let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
46023
- global: true
46024
- });
45927
+ let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props);
46025
45928
  delete DOMProps.id;
46026
45929
  return /* @__PURE__ */ React$1.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
46027
45930
  values: [
@@ -46049,7 +45952,9 @@
46049
45952
  ]
46050
45953
  ]
46051
45954
  }, /* @__PURE__ */ React$1.createElement("div", {
46052
- ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, renderProps, groupProps),
45955
+ ...DOMProps,
45956
+ ...groupProps,
45957
+ ...renderProps,
46053
45958
  ref,
46054
45959
  slot: props.slot || void 0,
46055
45960
  "data-orientation": state.orientation,
@@ -46113,9 +46018,7 @@
46113
46018
  isDisabled
46114
46019
  }
46115
46020
  });
46116
- let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
46117
- global: true
46118
- });
46021
+ let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props);
46119
46022
  delete DOMProps.id;
46120
46023
  return /* @__PURE__ */ React$1.createElement("div", {
46121
46024
  ...$3ef42575df84b30b$export$9d1611c77c2fe928(DOMProps, thumbProps, hoverProps),
@@ -62512,7 +62415,7 @@ Inferred class string: "${iconClasses}."`
62512
62415
  function Root() {
62513
62416
  const history2 = createBrowserHistory({ basename });
62514
62417
  const syncOptions = useUrlSync({ history: history2 });
62515
- return /* @__PURE__ */ React.createElement(reactQuery.QueryClientProvider, { client: queryClient }, /* @__PURE__ */ React.createElement(styled.ThemeProvider, { theme }, /* @__PURE__ */ React.createElement(ErrorBoundary$1, null, /* @__PURE__ */ React.createElement(importersCtx.Provider, { value: importers }, /* @__PURE__ */ React.createElement(directionCtx.Provider, { value: { direction: "row" } }, /* @__PURE__ */ React.createElement(Recoil_index_5, null, /* @__PURE__ */ React.createElement(RecoilSync_index_3, { ...syncOptions }, /* @__PURE__ */ React.createElement(GlobalTaskProvider, null, /* @__PURE__ */ React.createElement(Router, { history: history2 }, /* @__PURE__ */ React.createElement(AuthWrapper, null, /* @__PURE__ */ React.createElement(NotificationWrapper, null), /* @__PURE__ */ React.createElement(TemplateRoot, null)))))))))));
62418
+ return /* @__PURE__ */ React.createElement(reactQuery.QueryClientProvider, { client: queryClient }, /* @__PURE__ */ React.createElement(styled.ThemeProvider, { theme }, /* @__PURE__ */ React.createElement(ErrorBoundary$1, null, /* @__PURE__ */ React.createElement(importersCtx.Provider, { value: importers }, /* @__PURE__ */ React.createElement(directionCtx.Provider, { value: { direction: "row" } }, /* @__PURE__ */ React.createElement(Router, { history: history2 }, /* @__PURE__ */ React.createElement(Recoil_index_5, null, /* @__PURE__ */ React.createElement(RecoilSync_index_3, { ...syncOptions }, /* @__PURE__ */ React.createElement(GlobalTaskProvider, null, /* @__PURE__ */ React.createElement(AuthWrapper, null, /* @__PURE__ */ React.createElement(NotificationWrapper, null), /* @__PURE__ */ React.createElement(TemplateRoot, null)))))))))));
62516
62419
  }
62517
62420
  const container = document.getElementById("dara_root");
62518
62421
  const root = clientExports.createRoot(container);
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dara-core
3
- Version: 1.20.0
3
+ Version: 1.20.1
4
4
  Summary: Dara Framework Core
5
5
  Home-page: https://dara.causalens.com/
6
6
  License: Apache-2.0
@@ -21,10 +21,10 @@ Requires-Dist: cachetools (>=5.0.0,<6.0.0)
21
21
  Requires-Dist: certifi (>=2024.7.4)
22
22
  Requires-Dist: click (==8.1.3)
23
23
  Requires-Dist: colorama (>=0.4.6,<0.5.0)
24
- Requires-Dist: create-dara-app (==1.20.0)
24
+ Requires-Dist: create-dara-app (==1.20.1)
25
25
  Requires-Dist: croniter (>=1.0.15,<3.0.0)
26
26
  Requires-Dist: cryptography (>=42.0.4)
27
- Requires-Dist: dara-components (==1.20.0) ; extra == "all"
27
+ Requires-Dist: dara-components (==1.20.1) ; extra == "all"
28
28
  Requires-Dist: exceptiongroup (>=1.1.3,<2.0.0)
29
29
  Requires-Dist: fastapi (>=0.115.0,<0.116.0)
30
30
  Requires-Dist: fastapi_vite_dara (==0.4.0)
@@ -55,7 +55,7 @@ Description-Content-Type: text/markdown
55
55
 
56
56
  # Dara Application Framework
57
57
 
58
- <img src="https://github.com/causalens/dara/blob/v1.20.0/img/dara_light.svg?raw=true">
58
+ <img src="https://github.com/causalens/dara/blob/v1.20.1/img/dara_light.svg?raw=true">
59
59
 
60
60
  ![Master tests](https://github.com/causalens/dara/actions/workflows/tests.yml/badge.svg?branch=master)
61
61
  [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
@@ -100,7 +100,7 @@ source .venv/bin/activate
100
100
  dara start
101
101
  ```
102
102
 
103
- ![Dara App](https://github.com/causalens/dara/blob/v1.20.0/img/components_gallery.png?raw=true)
103
+ ![Dara App](https://github.com/causalens/dara/blob/v1.20.1/img/components_gallery.png?raw=true)
104
104
 
105
105
  Note: `pip` installation uses [PEP 660](https://peps.python.org/pep-0660/) `pyproject.toml`-based editable installs which require `pip >= 21.3` and `setuptools >= 64.0.0`. You can upgrade both with:
106
106
 
@@ -117,9 +117,9 @@ Explore some of our favorite apps - a great way of getting started and getting t
117
117
 
118
118
  | Dara App | Description |
119
119
  | -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
120
- | ![Large Language Model](https://github.com/causalens/dara/blob/v1.20.0/img/llm.png?raw=true) | Demonstrates how to use incorporate a LLM chat box into your decision app to understand model insights |
121
- | ![Plot Interactivity](https://github.com/causalens/dara/blob/v1.20.0/img/plot_interactivity.png?raw=true) | Demonstrates how to enable the user to interact with plots, trigger actions based on clicks, mouse movements and other interactions with `Bokeh` or `Plotly` plots |
122
- | ![Graph Editor](https://github.com/causalens/dara/blob/v1.20.0/img/graph_viewer.png?raw=true) | Demonstrates how to use the `CausalGraphViewer` component to display your graphs or networks, customising the displayed information through colors and tooltips, and updating the page based on user interaction. |
120
+ | ![Large Language Model](https://github.com/causalens/dara/blob/v1.20.1/img/llm.png?raw=true) | Demonstrates how to use incorporate a LLM chat box into your decision app to understand model insights |
121
+ | ![Plot Interactivity](https://github.com/causalens/dara/blob/v1.20.1/img/plot_interactivity.png?raw=true) | Demonstrates how to enable the user to interact with plots, trigger actions based on clicks, mouse movements and other interactions with `Bokeh` or `Plotly` plots |
122
+ | ![Graph Editor](https://github.com/causalens/dara/blob/v1.20.1/img/graph_viewer.png?raw=true) | Demonstrates how to use the `CausalGraphViewer` component to display your graphs or networks, customising the displayed information through colors and tooltips, and updating the page based on user interaction. |
123
123
 
124
124
  Check out our [App Gallery](https://dara.causalens.com/gallery) for more inspiration!
125
125
 
@@ -146,9 +146,9 @@ And the supporting UI packages and tools.
146
146
  - `ui-utils` - miscellaneous utility functions
147
147
  - `ui-widgets` - widget components
148
148
 
149
- More information on the repository structure can be found in the [CONTRIBUTING.md](https://github.com/causalens/dara/blob/v1.20.0/CONTRIBUTING.md) file.
149
+ More information on the repository structure can be found in the [CONTRIBUTING.md](https://github.com/causalens/dara/blob/v1.20.1/CONTRIBUTING.md) file.
150
150
 
151
151
  ## License
152
152
 
153
- Dara is open-source and licensed under the [Apache 2.0 License](https://github.com/causalens/dara/blob/v1.20.0/LICENSE).
153
+ Dara is open-source and licensed under the [Apache 2.0 License](https://github.com/causalens/dara/blob/v1.20.1/LICENSE).
154
154
 
@@ -88,7 +88,7 @@ dara/core/metrics/cache.py,sha256=c1PSst_oZZvuVzBXYWdpf8Sbb97u6q0HS2dlsEVLpQU,26
88
88
  dara/core/metrics/runtime.py,sha256=YP-6Dz0GeI9_Yr7bUk_-OqShyFySGH_AKpDO126l6es,1833
89
89
  dara/core/metrics/utils.py,sha256=inR1Ab5hmWZY2lsgGwLCQOEdyhCD9PumU52X2JbwlKY,2251
90
90
  dara/core/persistence.py,sha256=10Hrvb2z5c9r0Hof7gpiiWfuKAAu6TLqLKoiZA9KpZo,18901
91
- dara/core/umd/dara.core.umd.js,sha256=JqfZfeArSHmREYQv7eRo-MvblT-t9bdkt1QKrg71Rvg,4726244
91
+ dara/core/umd/dara.core.umd.js,sha256=2FPBTzK4IaVT56k3R9TcMQJh8z2wYbjJSm39LzAMLHQ,4722215
92
92
  dara/core/umd/style.css,sha256=YQtQ4veiSktnyONl0CU1iU1kKfcQhreH4iASi1MP7Ak,4095007
93
93
  dara/core/visual/__init__.py,sha256=QN0wbG9HPQ_vXh8BO8DnBXeYLIENVTNtRmYzZf1lx7c,577
94
94
  dara/core/visual/components/__init__.py,sha256=wuGRk8bogiLWPOXAF-Fo4F6_L__0tBrI2p2SqgH2lnE,2385
@@ -112,8 +112,8 @@ dara/core/visual/themes/__init__.py,sha256=aM4mgoIYo2neBSw5FRzswsht7PUKjLthiHLmF
112
112
  dara/core/visual/themes/dark.py,sha256=UQGDooOc8ric73eHs9E0ltYP4UCrwqQ3QxqN_fb4PwY,1942
113
113
  dara/core/visual/themes/definitions.py,sha256=nS_gQvOzCt5hTmj74d0_siq_9QWuj6wNuir4VCHy0Dk,2779
114
114
  dara/core/visual/themes/light.py,sha256=-Tviq8oEwGbdFULoDOqPuHO0UpAZGsBy8qFi0kAGolQ,1944
115
- dara_core-1.20.0.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
116
- dara_core-1.20.0.dist-info/METADATA,sha256=hAW5rfPIeUEXAk_DYZTkoo2B4hu8nvNpOSAR67fnPII,7534
117
- dara_core-1.20.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
118
- dara_core-1.20.0.dist-info/entry_points.txt,sha256=H__D5sNIGuPIhVam0DChNL-To5k8Y7nY7TAFz9Mz6cc,139
119
- dara_core-1.20.0.dist-info/RECORD,,
115
+ dara_core-1.20.1.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
116
+ dara_core-1.20.1.dist-info/METADATA,sha256=FPiTqZe5qD2bFOefRHRBrlo0eZiTwVgpkjjXuZoDEcE,7534
117
+ dara_core-1.20.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
118
+ dara_core-1.20.1.dist-info/entry_points.txt,sha256=H__D5sNIGuPIhVam0DChNL-To5k8Y7nY7TAFz9Mz6cc,139
119
+ dara_core-1.20.1.dist-info/RECORD,,