@khanacademy/wonder-blocks-clickable 4.1.2 → 4.2.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 +20 -0
- package/dist/es/index.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +3 -3
- package/src/components/__tests__/clickable-behavior.test.tsx +111 -105
- package/src/components/__tests__/clickable.test.tsx +56 -52
- package/src/components/clickable.tsx +2 -2
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-clickable
|
|
2
2
|
|
|
3
|
+
## 4.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 58075352: Change testId to render the default Testing Library HTML attribute: data-testid (was data-test-id)
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [58075352]
|
|
12
|
+
- @khanacademy/wonder-blocks-core@6.4.0
|
|
13
|
+
|
|
14
|
+
## 4.1.3
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [874081aa]
|
|
19
|
+
- Updated dependencies [874081aa]
|
|
20
|
+
- Updated dependencies [a9bf603a]
|
|
21
|
+
- @khanacademy/wonder-blocks-tokens@1.2.0
|
|
22
|
+
|
|
3
23
|
## 4.1.2
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/es/index.js
CHANGED
|
@@ -447,7 +447,7 @@ const Clickable = React.forwardRef(function Clickable(props, ref) {
|
|
|
447
447
|
disabled: disabled,
|
|
448
448
|
tabIndex: tabIndex
|
|
449
449
|
}, (state, childrenProps) => getCorrectTag(state, router, _extends({}, restProps, {
|
|
450
|
-
"data-
|
|
450
|
+
"data-testid": testId,
|
|
451
451
|
style: getStyle(state)
|
|
452
452
|
}, childrenProps)));
|
|
453
453
|
} else {
|
|
@@ -464,7 +464,7 @@ const Clickable = React.forwardRef(function Clickable(props, ref) {
|
|
|
464
464
|
disabled: disabled,
|
|
465
465
|
tabIndex: tabIndex
|
|
466
466
|
}, (state, childrenProps) => getCorrectTag(state, router, _extends({}, restProps, {
|
|
467
|
-
"data-
|
|
467
|
+
"data-testid": testId,
|
|
468
468
|
style: getStyle(state)
|
|
469
469
|
}, childrenProps)));
|
|
470
470
|
}
|
package/dist/index.js
CHANGED
|
@@ -471,7 +471,7 @@ const Clickable = React__namespace.forwardRef(function Clickable(props, ref) {
|
|
|
471
471
|
disabled: disabled,
|
|
472
472
|
tabIndex: tabIndex
|
|
473
473
|
}, (state, childrenProps) => getCorrectTag(state, router, _extends({}, restProps, {
|
|
474
|
-
"data-
|
|
474
|
+
"data-testid": testId,
|
|
475
475
|
style: getStyle(state)
|
|
476
476
|
}, childrenProps)));
|
|
477
477
|
} else {
|
|
@@ -488,7 +488,7 @@ const Clickable = React__namespace.forwardRef(function Clickable(props, ref) {
|
|
|
488
488
|
disabled: disabled,
|
|
489
489
|
tabIndex: tabIndex
|
|
490
490
|
}, (state, childrenProps) => getCorrectTag(state, router, _extends({}, restProps, {
|
|
491
|
-
"data-
|
|
491
|
+
"data-testid": testId,
|
|
492
492
|
style: getStyle(state)
|
|
493
493
|
}, childrenProps)));
|
|
494
494
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-clickable",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"description": "Clickable component for Wonder-Blocks.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime": "^7.18.6",
|
|
19
|
-
"@khanacademy/wonder-blocks-core": "^6.
|
|
20
|
-
"@khanacademy/wonder-blocks-tokens": "^1.
|
|
19
|
+
"@khanacademy/wonder-blocks-core": "^6.4.0",
|
|
20
|
+
"@khanacademy/wonder-blocks-tokens": "^1.2.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"aphrodite": "^1.2.5",
|