dara-core 1.11.3__py3-none-any.whl → 1.11.5__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.
@@ -29550,6 +29550,73 @@ var __privateWrapper = (obj, member, setter, getter) => ({
29550
29550
  function validateTimezone$1(_hours, minutes) {
29551
29551
  return minutes >= 0 && minutes <= 59;
29552
29552
  }
29553
+ globalThis && globalThis.__awaiter || function(thisArg, _arguments, P, generator) {
29554
+ function adopt(value) {
29555
+ return value instanceof P ? value : new P(function(resolve) {
29556
+ resolve(value);
29557
+ });
29558
+ }
29559
+ return new (P || (P = Promise))(function(resolve, reject) {
29560
+ function fulfilled(value) {
29561
+ try {
29562
+ step(generator.next(value));
29563
+ } catch (e3) {
29564
+ reject(e3);
29565
+ }
29566
+ }
29567
+ function rejected(value) {
29568
+ try {
29569
+ step(generator["throw"](value));
29570
+ } catch (e3) {
29571
+ reject(e3);
29572
+ }
29573
+ }
29574
+ function step(result) {
29575
+ result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
29576
+ }
29577
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
29578
+ });
29579
+ };
29580
+ styled__default.default.div`
29581
+ display: flex;
29582
+ flex: 1 1 100%;
29583
+ flex-direction: column;
29584
+ color: ${(props) => props.theme.colors.grey4};
29585
+ `;
29586
+ styled__default.default.div`
29587
+ display: flex;
29588
+ align-items: center;
29589
+ justify-content: space-between;
29590
+
29591
+ padding: 0.5rem 1rem;
29592
+
29593
+ font-size: 0.875rem;
29594
+
29595
+ background-color: ${(props) => props.$isLightTheme ? theme.colors.blue2 : darkTheme.colors.blue2} !important;
29596
+ border-radius: 0.25rem 0.25rem 0 0;
29597
+ `;
29598
+ styled__default.default.span`
29599
+ :hover {
29600
+ color: ${(props) => props.theme.colors.grey5};
29601
+ }
29602
+
29603
+ :active {
29604
+ color: ${(props) => props.theme.colors.grey6};
29605
+ }
29606
+ `;
29607
+ var CodeComponentThemes;
29608
+ (function(CodeComponentThemes2) {
29609
+ CodeComponentThemes2["DARK"] = "dark";
29610
+ CodeComponentThemes2["LIGHT"] = "light";
29611
+ })(CodeComponentThemes || (CodeComponentThemes = {}));
29612
+ styled__default.default.pre`
29613
+ min-width: fit-content;
29614
+ margin: 0;
29615
+ padding: 1rem;
29616
+
29617
+ background-color: ${(props) => props.$isLightTheme ? theme.colors.blue1 : darkTheme.colors.blue1} !important;
29618
+ border-radius: 0 0 0.25rem 0.25rem;
29619
+ `;
29553
29620
  globalThis && globalThis.__rest || function(s, e3) {
29554
29621
  var t2 = {};
29555
29622
  for (var p2 in s)
@@ -29671,7 +29738,17 @@ var __privateWrapper = (obj, member, setter, getter) => ({
29671
29738
  font-size: 0.9rem;
29672
29739
  }
29673
29740
 
29674
- pre {
29741
+ pre:first-child {
29742
+ margin-top: 0;
29743
+ }
29744
+
29745
+ pre:last-child {
29746
+ margin-bottom: 0;
29747
+ }
29748
+
29749
+ /* don't apply default styles if the pre block has the pretty code display */
29750
+ /* stylelint-disable-next-line */
29751
+ pre:not(.prism-code):not(:has(.prism-code)) {
29675
29752
  overflow-x: auto;
29676
29753
 
29677
29754
  margin-top: 1.7rem;
@@ -29792,7 +29869,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
29792
29869
  img:first-child,
29793
29870
  figure:first-child,
29794
29871
  video:first-child,
29795
- pre:first-child,
29796
29872
  hr:first-child {
29797
29873
  margin-top: 0;
29798
29874
  }
@@ -29810,7 +29886,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
29810
29886
  img:last-child,
29811
29887
  figure:last-child,
29812
29888
  video:last-child,
29813
- pre:last-child,
29814
29889
  hr:last-child {
29815
29890
  margin-bottom: 0;
29816
29891
  }
@@ -33755,7 +33830,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
33755
33830
  const InteractiveIcons = styled__default.default.div`
33756
33831
  position: absolute;
33757
33832
  top: 0.75rem;
33758
- left: 236px;
33833
+ right: 0.75rem;
33759
33834
 
33760
33835
  display: none;
33761
33836
  gap: 0.5rem;
@@ -33769,12 +33844,14 @@ var __privateWrapper = (obj, member, setter, getter) => ({
33769
33844
  styled__default.default.div`
33770
33845
  position: relative;
33771
33846
 
33847
+ display: flex;
33848
+ flex-direction: column;
33772
33849
  gap: 0.5rem;
33773
33850
 
33774
33851
  width: 100%;
33775
33852
  padding: 1rem;
33776
33853
 
33777
- background-color: ${(props) => props.theme.colors.blue1};
33854
+ background-color: ${(props) => props.$messageFromActiveUser ? props.theme.colors.blue2 : props.theme.colors.blue1};
33778
33855
  border-radius: 0.25rem;
33779
33856
  box-shadow: ${(props) => props.theme.shadow.medium};
33780
33857
 
@@ -33792,8 +33869,13 @@ var __privateWrapper = (obj, member, setter, getter) => ({
33792
33869
  font-size: 0.75rem;
33793
33870
  color: ${(props) => props.theme.colors.grey5};
33794
33871
  `;
33795
- styled__default.default.span`
33872
+ styled__default.default.div`
33873
+ display: flex;
33874
+ flex-direction: column;
33875
+ gap: 0.5rem;
33876
+
33796
33877
  width: 100%;
33878
+
33797
33879
  color: ${(props) => props.theme.colors.text};
33798
33880
  overflow-wrap: break-word;
33799
33881
  `;
@@ -33803,6 +33885,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
33803
33885
  color: ${(props) => props.theme.colors.grey4};
33804
33886
  `;
33805
33887
  styled__default.default(Trash)`
33888
+ cursor: pointer;
33806
33889
  height: 0.8rem;
33807
33890
  color: ${(props) => props.theme.colors.secondary};
33808
33891
 
@@ -33815,6 +33898,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
33815
33898
  }
33816
33899
  `;
33817
33900
  styled__default.default(PenToSquare)`
33901
+ cursor: pointer;
33818
33902
  height: 0.8rem;
33819
33903
  color: ${(props) => props.theme.colors.secondary};
33820
33904
 
@@ -33855,27 +33939,24 @@ var __privateWrapper = (obj, member, setter, getter) => ({
33855
33939
  flex-direction: column;
33856
33940
  gap: 1rem;
33857
33941
 
33858
- width: 350px;
33859
- height: calc(100vh - 2rem);
33942
+ width: ${(props) => props.$isPopup ? "350px" : "100%"};
33943
+ height: ${(props) => props.$isPopup ? "calc(100vh - 2rem)" : "100%"};
33860
33944
  padding: 1.5rem;
33861
33945
 
33862
- background-color: ${(props) => props.theme.colors.background}e6;
33863
- border-radius: 0.4rem;
33946
+ background-color: ${(props) => props.$isPopup ? `${props.theme.colors.background}e6` : "inherit"};
33947
+ border-radius: ${(props) => props.$isPopup ? "0.4rem" : 0};
33864
33948
  box-shadow: ${(props) => props.theme.shadow.medium};
33865
33949
  `;
33866
33950
  styled__default.default.div`
33867
33951
  display: flex;
33868
- flex-direction: column;
33869
- gap: 1rem;
33870
- justify-self: flex-end;
33871
-
33872
- height: 8.6rem;
33952
+ gap: 0.5rem;
33953
+ align-items: end;
33873
33954
  margin-top: auto;
33874
33955
  `;
33875
33956
  styled__default.default.div`
33876
33957
  display: flex;
33877
33958
  gap: 1rem;
33878
- justify-content: flex-end;
33959
+ align-items: end;
33879
33960
  `;
33880
33961
  styled__default.default.div`
33881
33962
  overflow-y: auto;
@@ -33883,7 +33964,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
33883
33964
  flex-direction: column;
33884
33965
  gap: 1rem;
33885
33966
 
33886
- max-height: calc(100% - 10.225rem);
33967
+ max-height: calc(100% - 6.225rem);
33887
33968
  margin: -0.25rem;
33888
33969
  padding: 0.25rem;
33889
33970
  `;
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dara-core
3
- Version: 1.11.3
3
+ Version: 1.11.5
4
4
  Summary: Dara Framework Core
5
5
  Home-page: https://dara.causalens.com/
6
6
  License: Apache-2.0
@@ -20,10 +20,10 @@ Requires-Dist: async-asgi-testclient (>=1.4.11,<2.0.0)
20
20
  Requires-Dist: certifi (>=2024.7.4)
21
21
  Requires-Dist: click (==8.1.3)
22
22
  Requires-Dist: colorama (>=0.4.6,<0.5.0)
23
- Requires-Dist: create-dara-app (==1.11.3)
23
+ Requires-Dist: create-dara-app (==1.11.5)
24
24
  Requires-Dist: croniter (>=1.0.15,<2.0.0)
25
25
  Requires-Dist: cryptography (>=42.0.4)
26
- Requires-Dist: dara-components (==1.11.3) ; extra == "all"
26
+ Requires-Dist: dara-components (==1.11.5) ; extra == "all"
27
27
  Requires-Dist: exceptiongroup (>=1.1.3,<2.0.0)
28
28
  Requires-Dist: fastapi (==0.109.0)
29
29
  Requires-Dist: fastapi-vite (==0.3.1)
@@ -51,7 +51,7 @@ Description-Content-Type: text/markdown
51
51
 
52
52
  # Dara Application Framework
53
53
 
54
- <img src="https://github.com/causalens/dara/blob/v1.11.3/img/dara_light.svg?raw=true">
54
+ <img src="https://github.com/causalens/dara/blob/v1.11.5/img/dara_light.svg?raw=true">
55
55
 
56
56
  ![Master tests](https://github.com/causalens/dara/actions/workflows/tests.yml/badge.svg?branch=master)
57
57
  [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
@@ -96,7 +96,7 @@ source .venv/bin/activate
96
96
  dara start
97
97
  ```
98
98
 
99
- ![Dara App](https://github.com/causalens/dara/blob/v1.11.3/img/components_gallery.png?raw=true)
99
+ ![Dara App](https://github.com/causalens/dara/blob/v1.11.5/img/components_gallery.png?raw=true)
100
100
 
101
101
  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:
102
102
 
@@ -113,9 +113,9 @@ Explore some of our favorite apps - a great way of getting started and getting t
113
113
 
114
114
  | Dara App | Description |
115
115
  | -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
116
- | ![Large Language Model](https://github.com/causalens/dara/blob/v1.11.3/img/llm.png?raw=true) | Demonstrates how to use incorporate a LLM chat box into your decision app to understand model insights |
117
- | ![Plot Interactivity](https://github.com/causalens/dara/blob/v1.11.3/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 |
118
- | ![Graph Editor](https://github.com/causalens/dara/blob/v1.11.3/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. |
116
+ | ![Large Language Model](https://github.com/causalens/dara/blob/v1.11.5/img/llm.png?raw=true) | Demonstrates how to use incorporate a LLM chat box into your decision app to understand model insights |
117
+ | ![Plot Interactivity](https://github.com/causalens/dara/blob/v1.11.5/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 |
118
+ | ![Graph Editor](https://github.com/causalens/dara/blob/v1.11.5/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. |
119
119
 
120
120
  Check out our [App Gallery](https://dara.causalens.com/gallery) for more inspiration!
121
121
 
@@ -127,9 +127,9 @@ This repository covers the Dara Application Framework first-party packages.
127
127
  - `dara-components`: Components for the Dara Framework.
128
128
  - `create-dara-app`: A CLI tool for creating new Dara applications.
129
129
 
130
- More information on the repository structure can be found in the [CONTRIBUTING.md](https://github.com/causalens/dara/blob/v1.11.3/CONTRIBUTING.md) file.
130
+ More information on the repository structure can be found in the [CONTRIBUTING.md](https://github.com/causalens/dara/blob/v1.11.5/CONTRIBUTING.md) file.
131
131
 
132
132
  ## License
133
133
 
134
- Dara is open-source and licensed under the [Apache 2.0 License](https://github.com/causalens/dara/blob/v1.11.3/LICENSE).
134
+ Dara is open-source and licensed under the [Apache 2.0 License](https://github.com/causalens/dara/blob/v1.11.5/LICENSE).
135
135
 
@@ -81,7 +81,7 @@ dara/core/metrics/cache.py,sha256=ybofUhZO0TCHeyhB_AtldWk1QTmTKh7GucTXpOkeTFA,25
81
81
  dara/core/metrics/runtime.py,sha256=YP-6Dz0GeI9_Yr7bUk_-OqShyFySGH_AKpDO126l6es,1833
82
82
  dara/core/metrics/utils.py,sha256=rYlBinxFc7VehFT5cTNXLk8gC74UEj7ZGq6vLgIDpSg,2247
83
83
  dara/core/persistence.py,sha256=TO94rPAN7jxZKVCC5YA4eE7GGDoNlCPe-BkkItV2VUE,10379
84
- dara/core/umd/dara.core.umd.js,sha256=twTea1tXTML5ysPkrSH5WsGSbGTCmJRk7uP0R3NVHgI,4872295
84
+ dara/core/umd/dara.core.umd.js,sha256=CveVsNCEQpeOiJFf8SEqZi3-NlJeokuzruZSMIhNd-A,4874755
85
85
  dara/core/umd/style.css,sha256=YQtQ4veiSktnyONl0CU1iU1kKfcQhreH4iASi1MP7Ak,4095007
86
86
  dara/core/visual/__init__.py,sha256=QN0wbG9HPQ_vXh8BO8DnBXeYLIENVTNtRmYzZf1lx7c,577
87
87
  dara/core/visual/components/__init__.py,sha256=O-Em_glGdZNO0LLl2RWmJSrQiXKxliXg_PuhVXGT81I,1811
@@ -105,8 +105,8 @@ dara/core/visual/themes/__init__.py,sha256=aM4mgoIYo2neBSw5FRzswsht7PUKjLthiHLmF
105
105
  dara/core/visual/themes/dark.py,sha256=UQGDooOc8ric73eHs9E0ltYP4UCrwqQ3QxqN_fb4PwY,1942
106
106
  dara/core/visual/themes/definitions.py,sha256=m3oN0txs65MZepqjj7AKMMxybf2aq5fTjcTwJmHqEbk,2744
107
107
  dara/core/visual/themes/light.py,sha256=-Tviq8oEwGbdFULoDOqPuHO0UpAZGsBy8qFi0kAGolQ,1944
108
- dara_core-1.11.3.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
109
- dara_core-1.11.3.dist-info/METADATA,sha256=apPr-NuhDCaDxyecVhwomFhRqfEUifI73Dgt2o_UrjU,6771
110
- dara_core-1.11.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
111
- dara_core-1.11.3.dist-info/entry_points.txt,sha256=H__D5sNIGuPIhVam0DChNL-To5k8Y7nY7TAFz9Mz6cc,139
112
- dara_core-1.11.3.dist-info/RECORD,,
108
+ dara_core-1.11.5.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
109
+ dara_core-1.11.5.dist-info/METADATA,sha256=xfJco1Ja1YtQnrkASoWYu6x7Nsb9BOROThFiIusFRpA,6771
110
+ dara_core-1.11.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
111
+ dara_core-1.11.5.dist-info/entry_points.txt,sha256=H__D5sNIGuPIhVam0DChNL-To5k8Y7nY7TAFz9Mz6cc,139
112
+ dara_core-1.11.5.dist-info/RECORD,,