@pie-lib/graphing 2.16.0 → 2.18.0

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/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [2.16.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.16.0) (2025-07-31)
6
+ # [2.18.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.18.0) (2025-07-31)
7
7
 
8
8
  **Note:** Version bump only for package @pie-lib/graphing
9
9
 
@@ -27,150 +27,90 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
27
27
 
28
28
 
29
29
 
30
- # [2.15.0-beta.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.8) (2025-07-25)
30
+ # [2.16.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.16.0) (2025-07-31)
31
31
 
32
32
  **Note:** Version bump only for package @pie-lib/graphing
33
33
 
34
-
35
-
36
-
37
-
38
- # [2.15.0-beta.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.7) (2025-07-25)
34
+ # [2.17.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.17.0) (2025-07-31)
39
35
 
40
36
  **Note:** Version bump only for package @pie-lib/graphing
41
37
 
38
+ # [2.16.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.16.0) (2025-07-31)
42
39
 
40
+ **Note:** Version bump only for package @pie-lib/graphing
43
41
 
42
+ # [2.15.0-beta.8](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.8) (2025-07-25)
44
43
 
44
+ **Note:** Version bump only for package @pie-lib/graphing
45
45
 
46
46
  # [2.15.0-beta.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.7) (2025-07-25)
47
47
 
48
48
  **Note:** Version bump only for package @pie-lib/graphing
49
49
 
50
+ # [2.15.0-beta.7](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.7) (2025-07-25)
50
51
 
51
-
52
-
52
+ **Note:** Version bump only for package @pie-lib/graphing
53
53
 
54
54
  # [2.15.0-beta.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.6) (2025-07-25)
55
55
 
56
56
  **Note:** Version bump only for package @pie-lib/graphing
57
57
 
58
-
59
-
60
-
61
-
62
58
  # [2.15.0-beta.6](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.6) (2025-07-25)
63
59
 
64
60
  **Note:** Version bump only for package @pie-lib/graphing
65
61
 
66
-
67
-
68
-
69
-
70
62
  # [2.15.0-beta.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.5) (2025-07-25)
71
63
 
72
64
  **Note:** Version bump only for package @pie-lib/graphing
73
65
 
74
-
75
-
76
-
77
-
78
66
  # [2.15.0-beta.5](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.5) (2025-07-25)
79
67
 
80
68
  **Note:** Version bump only for package @pie-lib/graphing
81
69
 
82
-
83
-
84
-
85
-
86
70
  # [2.15.0-beta.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.4) (2025-07-25)
87
71
 
88
72
  **Note:** Version bump only for package @pie-lib/graphing
89
73
 
90
-
91
-
92
-
93
-
94
74
  # [2.15.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.3) (2025-07-25)
95
75
 
96
76
  **Note:** Version bump only for package @pie-lib/graphing
97
77
 
98
-
99
-
100
-
101
-
102
78
  # [2.15.0-beta.4](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.4) (2025-07-23)
103
79
 
104
80
  **Note:** Version bump only for package @pie-lib/graphing
105
81
 
106
-
107
-
108
-
109
-
110
82
  # [2.15.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.3) (2025-07-23)
111
83
 
112
84
  **Note:** Version bump only for package @pie-lib/graphing
113
85
 
114
-
115
-
116
-
117
-
118
86
  # [2.15.0-beta.3](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.3) (2025-07-20)
119
87
 
120
88
  **Note:** Version bump only for package @pie-lib/graphing
121
89
 
122
-
123
-
124
-
125
-
126
90
  # [2.15.0-beta.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.2) (2025-07-20)
127
91
 
128
92
  **Note:** Version bump only for package @pie-lib/graphing
129
93
 
130
-
131
-
132
-
133
-
134
94
  # [2.15.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.1) (2025-07-20)
135
95
 
136
96
  **Note:** Version bump only for package @pie-lib/graphing
137
97
 
138
-
139
-
140
-
141
-
142
98
  # [2.15.0-beta.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.2) (2025-07-20)
143
99
 
144
100
  **Note:** Version bump only for package @pie-lib/graphing
145
101
 
146
-
147
-
148
-
149
-
150
102
  # [2.15.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.1) (2025-07-20)
151
103
 
152
104
  **Note:** Version bump only for package @pie-lib/graphing
153
105
 
154
-
155
-
156
-
157
-
158
106
  # [2.15.0-beta.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.1) (2025-07-20)
159
107
 
160
108
  **Note:** Version bump only for package @pie-lib/graphing
161
109
 
162
-
163
-
164
-
165
-
166
110
  # [2.15.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.15.0-beta.0) (2025-07-20)
167
111
 
168
112
  **Note:** Version bump only for package @pie-lib/graphing
169
113
 
170
-
171
-
172
-
173
-
174
114
  # [2.16.0-beta.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/graphing@2.14.21...@pie-lib/graphing@2.16.0-beta.0) (2025-07-15)
175
115
 
176
116
  **Note:** Version bump only for package @pie-lib/graphing
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "2.16.0",
6
+ "version": "2.18.0",
7
7
  "description": "Graphing components",
8
8
  "keywords": [
9
9
  "react",
@@ -19,12 +19,13 @@
19
19
  "@mapbox/point-geometry": "^0.1.0",
20
20
  "@material-ui/core": "^3.8.3",
21
21
  "@material-ui/icons": "^3.0.2",
22
- "@pie-lib/drag": "^2.5.0",
23
- "@pie-lib/editable-html": "^11.4.0",
24
- "@pie-lib/graphing-utils": "^1.4.0",
25
- "@pie-lib/plot": "^2.10.0",
26
- "@pie-lib/tools": "^0.12.0",
27
- "@pie-lib/translator": "^2.6.0",
22
+ "@pie-lib/drag": "^2.6.0",
23
+ "@pie-lib/editable-html": "^11.5.0",
24
+ "@pie-lib/graphing-utils": "^1.5.0",
25
+ "@pie-lib/plot": "^2.11.0",
26
+ "@pie-lib/render-ui": "^4.19.0",
27
+ "@pie-lib/tools": "^0.13.0",
28
+ "@pie-lib/translator": "^2.7.0",
28
29
  "@vx/axis": "^0.0.189",
29
30
  "@vx/clip-path": "^0.0.189",
30
31
  "@vx/event": "^0.0.189",
package/src/axis/axes.jsx CHANGED
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
5
5
  import Arrow from './arrow';
6
6
  import { withStyles } from '@material-ui/core';
7
7
  import { countWords, findLongestWord, amountToIncreaseWidth, getTickValues } from '../utils';
8
- import { color, Readable } from '../../../render-ui/src/index';
8
+ import { color, Readable } from '@pie-lib/render-ui';
9
9
 
10
10
  export const AxisPropTypes = {
11
11
  includeArrows: PropTypes.object,
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { types } from '@pie-lib/plot';
4
- import { color } from '../../render-ui/src/index';
4
+ import { color } from '@pie-lib/render-ui';
5
5
  import { withStyles } from '@material-ui/core/styles';
6
6
  import InputBase from '@material-ui/core/InputBase';
7
7
  import { roundNumber } from './utils';
@@ -4,7 +4,7 @@ import { withStyles } from '@material-ui/core/styles';
4
4
  import classNames from 'classnames';
5
5
  import uniq from 'lodash/uniq';
6
6
  import isString from 'lodash/isString';
7
- import { color } from '../../render-ui/src/index';
7
+ import { color } from '@pie-lib/render-ui';
8
8
 
9
9
  import ToolMenu from './tool-menu';
10
10
  import Graph, { graphPropTypes } from './graph';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { color, InputContainer } from '../../render-ui/src/index';
3
+ import { color, InputContainer } from '@pie-lib/render-ui';
4
4
  import { withStyles } from '@material-ui/core/styles';
5
5
  import ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary';
6
6
  import Typography from '@material-ui/core/Typography';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import classNames from 'classnames';
4
4
  import { withStyles } from '@material-ui/core/styles';
5
- import { color } from '../../render-ui/src/index';
5
+ import { color } from '@pie-lib/render-ui';
6
6
 
7
7
  const styles = (theme) => ({
8
8
  container: {
package/src/labels.jsx CHANGED
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { withStyles } from '@material-ui/core/styles';
4
4
  import { types } from '@pie-lib/plot';
5
- import { color, Readable } from '../../render-ui/src/index';
5
+ import { color, Readable } from '@pie-lib/render-ui';
6
6
  import EditableHtml from '@pie-lib/editable-html';
7
7
  import cn from 'classnames';
8
8
 
@@ -5,7 +5,7 @@ import { withStyles } from '@material-ui/core/styles';
5
5
  import AutosizeInput from 'react-input-autosize';
6
6
  import { useDebounce } from './use-debounce';
7
7
  import { types } from '@pie-lib/plot';
8
- import { color } from '../../render-ui/src/index';
8
+ import { color } from '@pie-lib/render-ui';
9
9
  import SvgIcon from './label-svg-icon';
10
10
 
11
11
  const inputStyles = (theme) => ({
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
3
3
  import { withStyles } from '@material-ui/core/styles';
4
4
  import cn from 'classnames';
5
5
  import Button from '@material-ui/core/Button';
6
- import { color } from '../../render-ui/src/index';
6
+ import { color } from '@pie-lib/render-ui';
7
7
  import { allTools } from './tools';
8
8
  import { withDragContext, DragSource, DropTarget } from '@pie-lib/drag';
9
9
  import Translator from '@pie-lib/translator';
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
3
3
  import { withStyles } from '@material-ui/core/styles';
4
4
  import classNames from 'classnames';
5
5
  import { types, gridDraggable } from '@pie-lib/plot';
6
- import { color } from '../../../../render-ui/src/index';
6
+ import { color } from '@pie-lib/render-ui';
7
7
  import * as utils from '../../utils';
8
8
  import { disabled, disabledSecondary, correct, incorrect, missing } from '../shared/styles';
9
9
 
@@ -10,7 +10,7 @@ import { rootEdgeComponent } from '../shared/line/with-root-edge';
10
10
  import ReactDOM from 'react-dom';
11
11
  import MarkLabel from '../../mark-label';
12
12
  import isEmpty from 'lodash/isEmpty';
13
- import { color } from '../../../../render-ui/src/index';
13
+ import { color } from '@pie-lib/render-ui';
14
14
 
15
15
  const opacityPulsate = (opacity) => ({
16
16
  '0%': { opacity: '0.0' },
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { withStyles } from '@material-ui/core/styles';
4
4
  import { types, gridDraggable } from '@pie-lib/plot';
5
- import { color } from '../../../../render-ui/src/index';
5
+ import { color } from '@pie-lib/render-ui';
6
6
  import * as utils from '../../utils';
7
7
  import classNames from 'classnames';
8
8
  import { correct, disabled, disabledSecondary, incorrect, missing } from '../shared/styles';
@@ -4,7 +4,7 @@ import { withStyles } from '@material-ui/core/styles';
4
4
  import { gridDraggable, types } from '@pie-lib/plot';
5
5
  import * as utils from '../../utils';
6
6
  import classNames from 'classnames';
7
- import { color } from '../../../../render-ui/src/index';
7
+ import { color } from '@pie-lib/render-ui';
8
8
  import { fade } from '@material-ui/core/styles/colorManipulator';
9
9
  import { correct, disabled, incorrect, missing } from '../shared/styles';
10
10
 
@@ -8,7 +8,7 @@ import { disabled, disabledSecondary, correct, incorrect, missing } from '../sty
8
8
  import ReactDOM from 'react-dom';
9
9
  import MarkLabel from '../../../mark-label';
10
10
  import isEmpty from 'lodash/isEmpty';
11
- import { color } from '../../../../../render-ui/src/index';
11
+ import { color } from '@pie-lib/render-ui';
12
12
  import { getMiddleOfTwoPoints, equalPoints, sameAxes } from '../../../utils';
13
13
 
14
14
  export const lineTool = (type, Component) => () => ({
@@ -5,7 +5,7 @@ import { types } from '@pie-lib/plot';
5
5
  import classNames from 'classnames';
6
6
  import { disabled, correct, incorrect, missing, disabledSecondary } from '../styles';
7
7
  import * as vx from '@vx/shape';
8
- import { color } from '../../../../../render-ui/src/index';
8
+ import { color } from '@pie-lib/render-ui';
9
9
 
10
10
  export class RawLinePath extends React.Component {
11
11
  static propTypes = {
@@ -4,7 +4,7 @@ import * as utils from '../../../utils';
4
4
  import { disabled, correct, incorrect, missing, disabledSecondary } from '../styles';
5
5
  import { RawBp } from './base-point';
6
6
  import { RawArrow } from './arrow-point';
7
- import { color } from '../../../../../render-ui/src/index';
7
+ import { color } from '@pie-lib/render-ui';
8
8
  import BaseArrow from './arrow';
9
9
 
10
10
  const opts = {
@@ -1,4 +1,4 @@
1
- import { color } from '../../../../render-ui/src/index';
1
+ import { color } from '@pie-lib/render-ui';
2
2
 
3
3
  export const disabled = (key = 'fill') => ({
4
4
  [key]: color.disabled(),
@@ -5,7 +5,7 @@ import { utils } from '@pie-lib/plot';
5
5
  import { graphProps as getGraphProps } from '../../../__tests__/utils';
6
6
 
7
7
  const { xy } = utils;
8
- jest.mock('@pie-lib/graphing-utils/index', () => ({
8
+ jest.mock('@pie-lib/graphing-utils', () => ({
9
9
  sinY: jest.fn().mockReturnValue(0),
10
10
  buildDataPoints: jest.fn().mockReturnValue([]),
11
11
  parabolaFromTwoPoints: jest.fn(() => jest.fn()),
package/src/undo-redo.jsx CHANGED
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
3
3
  import classNames from 'classnames';
4
4
  import Button from '@material-ui/core/Button';
5
5
  import { withStyles } from '@material-ui/core';
6
- import { color } from '../../render-ui/src/index';
6
+ import { color } from '@pie-lib/render-ui';
7
7
  import Translator from '@pie-lib/translator';
8
8
 
9
9
  const { translator } = Translator;