@khanacademy/wonder-blocks-progress-spinner 1.1.31 → 1.1.34

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
@@ -1,5 +1,26 @@
1
1
  # @khanacademy/wonder-blocks-progress-spinner
2
2
 
3
+ ## 1.1.34
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [34c7aacb]
8
+ - @khanacademy/wonder-blocks-color@1.2.0
9
+
10
+ ## 1.1.33
11
+
12
+ ### Patch Changes
13
+
14
+ - 83486dba: Setting data-test-id attribute based on testId prop
15
+
16
+ ## 1.1.32
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [5f4a4297]
21
+ - Updated dependencies [2b96fd59]
22
+ - @khanacademy/wonder-blocks-core@4.3.2
23
+
3
24
  ## 1.1.31
4
25
 
5
26
  ### Patch Changes
package/dist/es/index.js CHANGED
@@ -25,7 +25,8 @@ class CircularSpinner extends React.Component {
25
25
  const {
26
26
  size,
27
27
  light,
28
- style
28
+ style,
29
+ testId
29
30
  } = this.props;
30
31
  const height = heights[size];
31
32
  const path = paths[size];
@@ -34,7 +35,8 @@ class CircularSpinner extends React.Component {
34
35
  xmlns: "http://www.w3.org/2000/svg",
35
36
  width: height,
36
37
  height: height,
37
- viewBox: `0 0 ${height} ${height}`
38
+ viewBox: `0 0 ${height} ${height}`,
39
+ "data-test-id": testId
38
40
  }, React.createElement(StyledPath, {
39
41
  style: [styles.loadingSpinner, {
40
42
  fill: color
package/dist/index.js CHANGED
@@ -148,7 +148,8 @@ class CircularSpinner extends react__WEBPACK_IMPORTED_MODULE_0__["Component"] {
148
148
  const {
149
149
  size,
150
150
  light,
151
- style
151
+ style,
152
+ testId
152
153
  } = this.props;
153
154
  const height = heights[size];
154
155
  const path = paths[size];
@@ -157,7 +158,8 @@ class CircularSpinner extends react__WEBPACK_IMPORTED_MODULE_0__["Component"] {
157
158
  xmlns: "http://www.w3.org/2000/svg",
158
159
  width: height,
159
160
  height: height,
160
- viewBox: `0 0 ${height} ${height}`
161
+ viewBox: `0 0 ${height} ${height}`,
162
+ "data-test-id": testId
161
163
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](StyledPath, {
162
164
  style: [styles.loadingSpinner, {
163
165
  fill: color
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-progress-spinner",
3
- "version": "1.1.31",
3
+ "version": "1.1.34",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,9 +15,9 @@
15
15
  "author": "",
16
16
  "license": "MIT",
17
17
  "dependencies": {
18
- "@babel/runtime": "^7.16.3",
19
- "@khanacademy/wonder-blocks-color": "^1.1.20",
20
- "@khanacademy/wonder-blocks-core": "^4.3.1",
18
+ "@babel/runtime": "^7.18.6",
19
+ "@khanacademy/wonder-blocks-color": "^1.2.0",
20
+ "@khanacademy/wonder-blocks-core": "^4.3.2",
21
21
  "@khanacademy/wonder-blocks-spacing": "^3.0.5"
22
22
  },
23
23
  "peerDependencies": {
@@ -457,7 +457,7 @@ exports[`wonder-blocks-progress-spinner example 2 1`] = `
457
457
  style={
458
458
  Object {
459
459
  "alignItems": "stretch",
460
- "background": "#0a2a66",
460
+ "background": "#0b2149",
461
461
  "borderStyle": "solid",
462
462
  "borderWidth": 0,
463
463
  "boxSizing": "border-box",
@@ -66,7 +66,7 @@ export default class CircularSpinner extends React.Component<Props> {
66
66
  };
67
67
 
68
68
  render(): React.Node {
69
- const {size, light, style} = this.props;
69
+ const {size, light, style, testId} = this.props;
70
70
 
71
71
  const height = heights[size];
72
72
  const path = paths[size];
@@ -78,6 +78,7 @@ export default class CircularSpinner extends React.Component<Props> {
78
78
  width={height}
79
79
  height={height}
80
80
  viewBox={`0 0 ${height} ${height}`}
81
+ data-test-id={testId}
81
82
  >
82
83
  <StyledPath
83
84
  style={[styles.loadingSpinner, {fill: color}]}