@pie-lib/plot 2.41.0-mui-update.0 → 3.1.0-next.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.41.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.40.0-mui-update.0...@pie-lib/plot@2.41.0-mui-update.0) (2025-12-29)
6
+ # [3.0.0-next.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.27.3-next.0...@pie-lib/plot@3.0.0-next.0) (2026-01-19)
7
7
 
8
8
  **Note:** Version bump only for package @pie-lib/plot
9
9
 
@@ -11,47 +11,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- # [2.40.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.39.0-mui-update.0...@pie-lib/plot@2.40.0-mui-update.0) (2025-12-29)
14
+ ## [2.27.3-next.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.41.0-mui-update.0...@pie-lib/plot@2.27.3-next.0) (2026-01-19)
15
15
 
16
16
 
17
- ### Features
18
-
19
- * migrate from [@vx](https://github.com/vx) library to [@visx](https://github.com/visx) ([135bf60](https://github.com/pie-framework/pie-lib/commit/135bf605161bfbd0070ac181892df20931691ce3))
20
-
21
-
22
-
23
-
24
-
25
- # [2.39.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.38.0-mui-update.0...@pie-lib/plot@2.39.0-mui-update.0) (2025-12-17)
26
-
27
- **Note:** Version bump only for package @pie-lib/plot
28
-
29
-
30
-
31
-
32
-
33
- # [2.38.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.37.0-mui-update.0...@pie-lib/plot@2.38.0-mui-update.0) (2025-12-17)
34
-
35
- **Note:** Version bump only for package @pie-lib/plot
36
-
37
-
38
-
39
-
40
-
41
- # [2.37.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.36.0-mui-update.0...@pie-lib/plot@2.37.0-mui-update.0) (2025-12-11)
42
-
43
- **Note:** Version bump only for package @pie-lib/plot
44
-
45
-
46
-
47
-
48
-
49
- # [2.36.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.35.0-mui-update.0...@pie-lib/plot@2.36.0-mui-update.0) (2025-12-02)
50
-
51
-
52
- ### Features
17
+ ### Bug Fixes
53
18
 
54
- * sync latest changes from dev ([c936e9c](https://github.com/pie-framework/pie-lib/commit/c936e9c7f9e095e7d9b9805ac2bf72bd271e05f1))
19
+ * **plot:** fix focus PD-5452 ([882207c](https://github.com/pie-framework/pie-lib/commit/882207c6a1155a8e5818f5c7966239f8f341a0a6))
55
20
 
56
21
 
57
22
 
@@ -61,165 +26,91 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
61
26
 
62
27
  **Note:** Version bump only for package @pie-lib/plot
63
28
 
64
-
65
-
66
-
67
-
68
29
  ## [2.27.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.23.2...@pie-lib/plot@2.27.1) (2025-10-22)
69
30
 
70
31
  **Note:** Version bump only for package @pie-lib/plot
71
32
 
72
-
73
-
74
-
75
-
76
33
  # [2.27.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.26.0...@pie-lib/plot@2.27.0) (2025-10-16)
77
34
 
78
35
  **Note:** Version bump only for package @pie-lib/plot
79
36
 
80
-
81
-
82
-
83
-
84
37
  # [2.26.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.23.0...@pie-lib/plot@2.26.0) (2025-10-16)
85
38
 
86
-
87
39
  ### Bug Fixes
88
40
 
89
- * **plot/graphing:** add title height calculations through observer PD-5208 ([f993541](https://github.com/pie-framework/pie-lib/commit/f99354174b23dcd6a1f3524a15f9b64c4041d7e2))
90
-
91
-
92
-
93
-
41
+ - **plot/graphing:** add title height calculations through observer PD-5208 ([f993541](https://github.com/pie-framework/pie-lib/commit/f99354174b23dcd6a1f3524a15f9b64c4041d7e2))
94
42
 
95
43
  # [2.25.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.23.0...@pie-lib/plot@2.25.0) (2025-10-16)
96
44
 
97
-
98
45
  ### Bug Fixes
99
46
 
100
- * **plot/graphing:** add title height calculations through observer PD-5208 ([f993541](https://github.com/pie-framework/pie-lib/commit/f99354174b23dcd6a1f3524a15f9b64c4041d7e2))
101
-
102
-
103
-
104
-
47
+ - **plot/graphing:** add title height calculations through observer PD-5208 ([f993541](https://github.com/pie-framework/pie-lib/commit/f99354174b23dcd6a1f3524a15f9b64c4041d7e2))
105
48
 
106
49
  # [2.24.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.23.0...@pie-lib/plot@2.24.0) (2025-10-16)
107
50
 
108
-
109
51
  ### Bug Fixes
110
52
 
111
- * **plot/graphing:** add title height calculations through observer PD-5208 ([f993541](https://github.com/pie-framework/pie-lib/commit/f99354174b23dcd6a1f3524a15f9b64c4041d7e2))
112
-
113
-
114
-
115
-
53
+ - **plot/graphing:** add title height calculations through observer PD-5208 ([f993541](https://github.com/pie-framework/pie-lib/commit/f99354174b23dcd6a1f3524a15f9b64c4041d7e2))
116
54
 
117
55
  ## [2.23.2](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.23.1...@pie-lib/plot@2.23.2) (2025-10-14)
118
56
 
119
57
  **Note:** Version bump only for package @pie-lib/plot
120
58
 
121
-
122
-
123
-
124
-
125
59
  ## [2.23.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.23.0...@pie-lib/plot@2.23.1) (2025-10-09)
126
60
 
127
-
128
61
  ### Bug Fixes
129
62
 
130
- * **plot/graphing:** add title height calculations through observer PD-5208 ([f993541](https://github.com/pie-framework/pie-lib/commit/f99354174b23dcd6a1f3524a15f9b64c4041d7e2))
131
-
132
-
133
-
134
-
63
+ - **plot/graphing:** add title height calculations through observer PD-5208 ([f993541](https://github.com/pie-framework/pie-lib/commit/f99354174b23dcd6a1f3524a15f9b64c4041d7e2))
135
64
 
136
65
  # [2.23.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.7.3...@pie-lib/plot@2.23.0) (2025-09-25)
137
66
 
138
-
139
67
  ### Bug Fixes
140
68
 
141
- * fixed pie-lib/icons import [PD-5126] ([dcb506c](https://github.com/pie-framework/pie-lib/commit/dcb506c914a177f6d88bf73247a023bfe71dac1f))
142
-
69
+ - fixed pie-lib/icons import [PD-5126](<[dcb506c](https://github.com/pie-framework/pie-lib/commit/dcb506c914a177f6d88bf73247a023bfe71dac1f)>)
143
70
 
144
71
  ### Features
145
72
 
146
- * split pie-toolbox into multiple packages [PD-5126] ([7d55a25](https://github.com/pie-framework/pie-lib/commit/7d55a2552d084cd3d0d5c00dc77411b2ced2f5e2))
147
-
148
-
149
-
150
-
73
+ - split pie-toolbox into multiple packages [PD-5126](<[7d55a25](https://github.com/pie-framework/pie-lib/commit/7d55a2552d084cd3d0d5c00dc77411b2ced2f5e2)>)
151
74
 
152
75
  # [2.22.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.21.0...@pie-lib/plot@2.22.0) (2025-09-18)
153
76
 
154
77
  **Note:** Version bump only for package @pie-lib/plot
155
78
 
156
-
157
-
158
-
159
-
160
79
  # [2.21.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.20.0...@pie-lib/plot@2.21.0) (2025-09-18)
161
80
 
162
81
  **Note:** Version bump only for package @pie-lib/plot
163
82
 
164
-
165
-
166
-
167
-
168
83
  # [2.20.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.7.3...@pie-lib/plot@2.20.0) (2025-09-18)
169
84
 
170
-
171
85
  ### Bug Fixes
172
86
 
173
- * fixed pie-lib/icons import [PD-5126] ([dcb506c](https://github.com/pie-framework/pie-lib/commit/dcb506c914a177f6d88bf73247a023bfe71dac1f))
174
-
87
+ - fixed pie-lib/icons import [PD-5126](<[dcb506c](https://github.com/pie-framework/pie-lib/commit/dcb506c914a177f6d88bf73247a023bfe71dac1f)>)
175
88
 
176
89
  ### Features
177
90
 
178
- * split pie-toolbox into multiple packages [PD-5126] ([7d55a25](https://github.com/pie-framework/pie-lib/commit/7d55a2552d084cd3d0d5c00dc77411b2ced2f5e2))
179
-
180
-
181
-
182
-
91
+ - split pie-toolbox into multiple packages [PD-5126](<[7d55a25](https://github.com/pie-framework/pie-lib/commit/7d55a2552d084cd3d0d5c00dc77411b2ced2f5e2)>)
183
92
 
184
93
  # [2.19.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.18.0...@pie-lib/plot@2.19.0) (2025-09-17)
185
94
 
186
95
  **Note:** Version bump only for package @pie-lib/plot
187
96
 
188
-
189
-
190
-
191
-
192
97
  # [2.18.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.17.0...@pie-lib/plot@2.18.0) (2025-09-17)
193
98
 
194
99
  **Note:** Version bump only for package @pie-lib/plot
195
100
 
196
-
197
-
198
-
199
-
200
101
  # [2.17.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.16.1...@pie-lib/plot@2.17.0) (2025-09-17)
201
102
 
202
103
  **Note:** Version bump only for package @pie-lib/plot
203
104
 
204
-
205
-
206
-
207
-
208
105
  ## [2.16.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.7.3...@pie-lib/plot@2.16.1) (2025-08-11)
209
106
 
210
-
211
107
  ### Bug Fixes
212
108
 
213
- * fixed pie-lib/icons import [PD-5126] ([dcb506c](https://github.com/pie-framework/pie-lib/commit/dcb506c914a177f6d88bf73247a023bfe71dac1f))
214
-
109
+ - fixed pie-lib/icons import [PD-5126](<[dcb506c](https://github.com/pie-framework/pie-lib/commit/dcb506c914a177f6d88bf73247a023bfe71dac1f)>)
215
110
 
216
111
  ### Features
217
112
 
218
- * split pie-toolbox into multiple packages [PD-5126] ([7d55a25](https://github.com/pie-framework/pie-lib/commit/7d55a2552d084cd3d0d5c00dc77411b2ced2f5e2))
219
-
220
-
221
-
222
-
113
+ - split pie-toolbox into multiple packages [PD-5126](<[7d55a25](https://github.com/pie-framework/pie-lib/commit/7d55a2552d084cd3d0d5c00dc77411b2ced2f5e2)>)
223
114
 
224
115
  # [2.16.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/plot@2.7.3...@pie-lib/plot@2.16.0) (2025-08-07)
225
116
 
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _react = _interopRequireDefault(require("react"));
5
+ var _react2 = require("@testing-library/react");
6
+ var _draggable = _interopRequireDefault(require("../draggable"));
7
+ describe('draggable', function () {
8
+ it('renders with children', function () {
9
+ var _render = (0, _react2.render)(/*#__PURE__*/_react["default"].createElement(_draggable["default"], null, /*#__PURE__*/_react["default"].createElement("div", null, "hellow"))),
10
+ container = _render.container;
11
+ expect(container.firstChild).toBeInTheDocument();
12
+ });
13
+ describe('local', function () {
14
+ it('resets position state when receiving new props', function () {
15
+ // Render with initial props
16
+ var _render2 = (0, _react2.render)(/*#__PURE__*/_react["default"].createElement(_draggable["default"], {
17
+ position: {
18
+ x: 100,
19
+ y: 100
20
+ }
21
+ }, /*#__PURE__*/_react["default"].createElement("div", {
22
+ "data-testid": "draggable-child"
23
+ }, "content"))),
24
+ rerender = _render2.rerender,
25
+ container = _render2.container;
26
+
27
+ // Verify initial render
28
+ expect(container.firstChild).toBeInTheDocument();
29
+
30
+ // Update props - this triggers componentWillReceiveProps
31
+ // which should reset internal x/y state to 0
32
+ rerender(/*#__PURE__*/_react["default"].createElement(_draggable["default"], {
33
+ position: {
34
+ x: 200,
35
+ y: 200
36
+ }
37
+ }, /*#__PURE__*/_react["default"].createElement("div", {
38
+ "data-testid": "draggable-child"
39
+ }, "content")));
40
+
41
+ // The component should still render correctly after prop change
42
+ // The internal state reset is tested by ensuring no errors occur
43
+ // and the component continues to function properly
44
+ expect(container.firstChild).toBeInTheDocument();
45
+ });
46
+ });
47
+ });
48
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfcmVhY3QiLCJfaW50ZXJvcFJlcXVpcmVEZWZhdWx0IiwicmVxdWlyZSIsIl9yZWFjdDIiLCJfZHJhZ2dhYmxlIiwiZGVzY3JpYmUiLCJpdCIsIl9yZW5kZXIiLCJyZW5kZXIiLCJjcmVhdGVFbGVtZW50IiwiY29udGFpbmVyIiwiZXhwZWN0IiwiZmlyc3RDaGlsZCIsInRvQmVJblRoZURvY3VtZW50IiwiX3JlbmRlcjIiLCJwb3NpdGlvbiIsIngiLCJ5IiwicmVyZW5kZXIiXSwic291cmNlcyI6WyIuLi8uLi9zcmMvX190ZXN0c19fL2RyYWdnYWJsZS50ZXN0LmpzeCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgcmVuZGVyIH0gZnJvbSAnQHRlc3RpbmctbGlicmFyeS9yZWFjdCc7XG5pbXBvcnQgRHJhZ2dhYmxlIGZyb20gJy4uL2RyYWdnYWJsZSc7XG5cbmRlc2NyaWJlKCdkcmFnZ2FibGUnLCAoKSA9PiB7XG4gIGl0KCdyZW5kZXJzIHdpdGggY2hpbGRyZW4nLCAoKSA9PiB7XG4gICAgY29uc3QgeyBjb250YWluZXIgfSA9IHJlbmRlcihcbiAgICAgIDxEcmFnZ2FibGU+XG4gICAgICAgIDxkaXY+aGVsbG93PC9kaXY+XG4gICAgICA8L0RyYWdnYWJsZT4sXG4gICAgKTtcbiAgICBleHBlY3QoY29udGFpbmVyLmZpcnN0Q2hpbGQpLnRvQmVJblRoZURvY3VtZW50KCk7XG4gIH0pO1xuXG4gIGRlc2NyaWJlKCd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