New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@khanacademy/wonder-blocks-clickable

Package Overview
Dependencies
Maintainers
1
Versions
386
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@khanacademy/wonder-blocks-clickable - npm Package Compare versions

Comparing version 0.0.0-PR2450-20250130232235 to 0.0.0-PR2453-20250204180605

LICENSE

405

CHANGELOG.md
# @khanacademy/wonder-blocks-clickable
## 0.0.0-PR2450-20250130232235
## 0.0.0-PR2453-20250204180605
### Minor Changes
- 1035bf3: Tooling:
- Switching to `pnpm`.
- Upgrading `rollup` to v4 and `@babel/runtime` to match the current webapp version.
### Patch Changes
- Updated dependencies [1035bf3]
- @khanacademy/wonder-blocks-tokens@0.0.0-PR2453-20250204180605
- @khanacademy/wonder-blocks-core@0.0.0-PR2453-20250204180605
## 6.0.0
### Major Changes
- 0199324d: Fixes keyboard tests in Dropdown and Clickable with specific key events. We now check `event.key` instead of `event.which` or `event.keyCode` to remove deprecated event properties and match the keys returned from Testing Library/userEvent.
- 0199324d: Fixes keyboard tests in Dropdown and Clickable with specific key events. We now check `event.key` instead of `event.which` or `event.keyCode` to remove deprecated event properties and match the keys returned from Testing Library/userEvent.
### Patch Changes
- Updated dependencies [0199324d]
- @khanacademy/wonder-blocks-core@0.0.0-PR2450-20250130232235
- Updated dependencies [0199324d]
- @khanacademy/wonder-blocks-core@12.0.0

@@ -18,5 +33,5 @@ ## 5.0.7

- Updated dependencies [8cfaeab0]
- Updated dependencies [c162abb4]
- @khanacademy/wonder-blocks-tokens@4.1.0
- Updated dependencies [8cfaeab0]
- Updated dependencies [c162abb4]
- @khanacademy/wonder-blocks-tokens@4.1.0

@@ -27,4 +42,4 @@ ## 5.0.6

- Updated dependencies [0de25cd8]
- @khanacademy/wonder-blocks-tokens@4.0.0
- Updated dependencies [0de25cd8]
- @khanacademy/wonder-blocks-tokens@4.0.0

@@ -35,4 +50,4 @@ ## 5.0.5

- Updated dependencies [7516b239]
- @khanacademy/wonder-blocks-core@11.1.0
- Updated dependencies [7516b239]
- @khanacademy/wonder-blocks-core@11.1.0

@@ -43,6 +58,6 @@ ## 5.0.4

- 11a0f5c6: No functional changes. Adding prepublishOnly script.
- Updated dependencies [11a0f5c6]
- @khanacademy/wonder-blocks-tokens@3.0.1
- @khanacademy/wonder-blocks-core@11.0.1
- 11a0f5c6: No functional changes. Adding prepublishOnly script.
- Updated dependencies [11a0f5c6]
- @khanacademy/wonder-blocks-tokens@3.0.1
- @khanacademy/wonder-blocks-core@11.0.1

@@ -53,4 +68,4 @@ ## 5.0.3

- Updated dependencies [d23c9c5f]
- @khanacademy/wonder-blocks-core@11.0.0
- Updated dependencies [d23c9c5f]
- @khanacademy/wonder-blocks-core@11.0.0

@@ -61,6 +76,6 @@ ## 5.0.2

- Updated dependencies [b6009b77]
- Updated dependencies [897686bc]
- Updated dependencies [56d961f1]
- @khanacademy/wonder-blocks-core@10.0.0
- Updated dependencies [b6009b77]
- Updated dependencies [897686bc]
- Updated dependencies [56d961f1]
- @khanacademy/wonder-blocks-core@10.0.0

@@ -71,4 +86,4 @@ ## 5.0.1

- Updated dependencies [f4abd572]
- @khanacademy/wonder-blocks-core@9.0.0
- Updated dependencies [f4abd572]
- @khanacademy/wonder-blocks-core@9.0.0

@@ -79,9 +94,9 @@ ## 5.0.0

- e6abdd17: Upgrade to React 18
- e6abdd17: Upgrade to React 18
### Patch Changes
- Updated dependencies [e6abdd17]
- @khanacademy/wonder-blocks-core@8.0.0
- @khanacademy/wonder-blocks-tokens@3.0.0
- Updated dependencies [e6abdd17]
- @khanacademy/wonder-blocks-core@8.0.0
- @khanacademy/wonder-blocks-tokens@3.0.0

@@ -92,4 +107,4 @@ ## 4.2.9

- Updated dependencies [6999fd39]
- @khanacademy/wonder-blocks-tokens@2.1.0
- Updated dependencies [6999fd39]
- @khanacademy/wonder-blocks-tokens@2.1.0

@@ -100,6 +115,6 @@ ## 4.2.8

- 02a1b298: Make sure we don't package tsconfig and tsbuildinfo files
- Updated dependencies [02a1b298]
- @khanacademy/wonder-blocks-core@7.0.1
- @khanacademy/wonder-blocks-tokens@2.0.1
- 02a1b298: Make sure we don't package tsconfig and tsbuildinfo files
- Updated dependencies [02a1b298]
- @khanacademy/wonder-blocks-core@7.0.1
- @khanacademy/wonder-blocks-tokens@2.0.1

@@ -110,4 +125,4 @@ ## 4.2.7

- Updated dependencies [07f7f407]
- @khanacademy/wonder-blocks-core@7.0.0
- Updated dependencies [07f7f407]
- @khanacademy/wonder-blocks-core@7.0.0

@@ -118,5 +133,5 @@ ## 4.2.6

- Updated dependencies [f17dc1ee]
- Updated dependencies [991eb43f]
- @khanacademy/wonder-blocks-tokens@2.0.0
- Updated dependencies [f17dc1ee]
- Updated dependencies [991eb43f]
- @khanacademy/wonder-blocks-tokens@2.0.0

@@ -127,6 +142,6 @@ ## 4.2.5

- 559e82d5: Update to build tooling, generating smaller output
- Updated dependencies [559e82d5]
- @khanacademy/wonder-blocks-core@6.4.3
- @khanacademy/wonder-blocks-tokens@1.3.1
- 559e82d5: Update to build tooling, generating smaller output
- Updated dependencies [559e82d5]
- @khanacademy/wonder-blocks-core@6.4.3
- @khanacademy/wonder-blocks-tokens@1.3.1

@@ -137,4 +152,4 @@ ## 4.2.4

- Updated dependencies [eab37b8b]
- @khanacademy/wonder-blocks-core@6.4.2
- Updated dependencies [eab37b8b]
- @khanacademy/wonder-blocks-core@6.4.2

@@ -145,7 +160,7 @@ ## 4.2.3

- f099cf87: Improves accessibility of the checked status on `OptionItem` components used
within the `ActionMenu` component. The checked status is communicated to
screenreaders by using a `menuitemcheckbox` role with the `aria-checked`
attribute (instead of `aria-selected`). - `CellCore` (used by `CompactCell` and `DetailCell`) has a new optional
prop for `aria-checked` - `ClickableRole` type now supports the `menuitemcheckbox` role - `OptionItem`'s `role` prop now also supports the `menuitemcheckbox` role
- f099cf87: Improves accessibility of the checked status on `OptionItem` components used
within the `ActionMenu` component. The checked status is communicated to
screenreaders by using a `menuitemcheckbox` role with the `aria-checked`
attribute (instead of `aria-selected`). - `CellCore` (used by `CompactCell` and `DetailCell`) has a new optional
prop for `aria-checked` - `ClickableRole` type now supports the `menuitemcheckbox` role - `OptionItem`'s `role` prop now also supports the `menuitemcheckbox` role

@@ -156,4 +171,4 @@ ## 4.2.2

- Updated dependencies [5dfac06e]
- @khanacademy/wonder-blocks-core@6.4.1
- Updated dependencies [5dfac06e]
- @khanacademy/wonder-blocks-core@6.4.1

@@ -164,4 +179,4 @@ ## 4.2.1

- Updated dependencies [9bfeead9]
- @khanacademy/wonder-blocks-tokens@1.3.0
- Updated dependencies [9bfeead9]
- @khanacademy/wonder-blocks-tokens@1.3.0

@@ -172,8 +187,8 @@ ## 4.2.0

- 58075352: Change testId to render the default Testing Library HTML attribute: data-testid (was data-test-id)
- 58075352: Change testId to render the default Testing Library HTML attribute: data-testid (was data-test-id)
### Patch Changes
- Updated dependencies [58075352]
- @khanacademy/wonder-blocks-core@6.4.0
- Updated dependencies [58075352]
- @khanacademy/wonder-blocks-core@6.4.0

@@ -184,6 +199,6 @@ ## 4.1.3

- Updated dependencies [874081aa]
- Updated dependencies [874081aa]
- Updated dependencies [a9bf603a]
- @khanacademy/wonder-blocks-tokens@1.2.0
- Updated dependencies [874081aa]
- Updated dependencies [874081aa]
- Updated dependencies [a9bf603a]
- @khanacademy/wonder-blocks-tokens@1.2.0

@@ -194,3 +209,3 @@ ## 4.1.2

- e6433bee: Fix event bubbling on ClickableBehavior when submit is used.
- e6433bee: Fix event bubbling on ClickableBehavior when submit is used.

@@ -201,4 +216,4 @@ ## 4.1.1

- Updated dependencies [4cfb4977]
- @khanacademy/wonder-blocks-tokens@1.1.0
- Updated dependencies [4cfb4977]
- @khanacademy/wonder-blocks-tokens@1.1.0

@@ -209,3 +224,3 @@ ## 4.1.0

- 60fdac1c: Added onMouseDown and onMouseUp props to Clickable
- 60fdac1c: Added onMouseDown and onMouseUp props to Clickable

@@ -216,4 +231,4 @@ ## 4.0.14

- Updated dependencies [e83f8991]
- @khanacademy/wonder-blocks-tokens@1.0.0
- Updated dependencies [e83f8991]
- @khanacademy/wonder-blocks-tokens@1.0.0

@@ -224,6 +239,6 @@ ## 4.0.13

- 7c51f377: Migrate wb-color imports to use tokens.color
- Updated dependencies [7cd7f6cc]
- Updated dependencies [7c51f377]
- @khanacademy/wonder-blocks-tokens@0.2.0
- 7c51f377: Migrate wb-color imports to use tokens.color
- Updated dependencies [7cd7f6cc]
- Updated dependencies [7c51f377]
- @khanacademy/wonder-blocks-tokens@0.2.0

@@ -234,4 +249,4 @@ ## 4.0.12

- Updated dependencies [6df21f71]
- @khanacademy/wonder-blocks-core@6.3.1
- Updated dependencies [6df21f71]
- @khanacademy/wonder-blocks-core@6.3.1

@@ -242,3 +257,3 @@ ## 4.0.11

- 6b8bf8d5: Fix onFocus handler on Clickable
- 6b8bf8d5: Fix onFocus handler on Clickable

@@ -249,3 +264,3 @@ ## 4.0.10

- 7b24db93: Get onFocus to work for buttons
- 7b24db93: Get onFocus to work for buttons

@@ -256,4 +271,4 @@ ## 4.0.9

- Updated dependencies [7055ca94]
- @khanacademy/wonder-blocks-core@6.3.0
- Updated dependencies [7055ca94]
- @khanacademy/wonder-blocks-core@6.3.0

@@ -264,4 +279,4 @@ ## 4.0.8

- Updated dependencies [48d3c7e9]
- @khanacademy/wonder-blocks-color@3.0.0
- Updated dependencies [48d3c7e9]
- @khanacademy/wonder-blocks-color@3.0.0

@@ -272,3 +287,3 @@ ## 4.0.7

- 80cab317: Include `aria-disabled=false` for `Links` (instead of `undefined`).
- 80cab317: Include `aria-disabled=false` for `Links` (instead of `undefined`).

@@ -279,4 +294,4 @@ ## 4.0.6

- Updated dependencies [4b97b9a2]
- @khanacademy/wonder-blocks-core@6.2.0
- Updated dependencies [4b97b9a2]
- @khanacademy/wonder-blocks-core@6.2.0

@@ -287,4 +302,4 @@ ## 4.0.5

- Updated dependencies [2871f0a9]
- @khanacademy/wonder-blocks-core@6.1.1
- Updated dependencies [2871f0a9]
- @khanacademy/wonder-blocks-core@6.1.1

@@ -295,6 +310,6 @@ ## 4.0.4

- 834855e5: Allow 'title' as a prop on Clickable
- Updated dependencies [efb59c29]
- Updated dependencies [8bc40ed2]
- @khanacademy/wonder-blocks-core@6.1.0
- 834855e5: Allow 'title' as a prop on Clickable
- Updated dependencies [efb59c29]
- Updated dependencies [8bc40ed2]
- @khanacademy/wonder-blocks-core@6.1.0

@@ -305,4 +320,4 @@ ## 4.0.3

- Updated dependencies [f19da46e]
- @khanacademy/wonder-blocks-core@6.0.2
- Updated dependencies [f19da46e]
- @khanacademy/wonder-blocks-core@6.0.2

@@ -313,5 +328,5 @@ ## 4.0.2

- 8dc4a5a3: Allow 'beforeNav' and 'safeWithNav' to be used without an 'href'
- Updated dependencies [1920feb8]
- @khanacademy/wonder-blocks-core@6.0.1
- 8dc4a5a3: Allow 'beforeNav' and 'safeWithNav' to be used without an 'href'
- Updated dependencies [1920feb8]
- @khanacademy/wonder-blocks-core@6.0.1

@@ -322,3 +337,3 @@ ## 4.0.1

- f230b267: Allow 'safeWithNav()' to be used on its own without 'beforeNav()' in prop types
- f230b267: Allow 'safeWithNav()' to be used on its own without 'beforeNav()' in prop types

@@ -329,14 +344,14 @@ ## 4.0.0

- 674a1e5c: Props are using discriminated union types to prevent invalid combinations of props
- 674a1e5c: Props are using discriminated union types to prevent invalid combinations of props
### Minor Changes
- 8c77f29d: Create new Switch component and add 'switch' role to ClickableRole
- 8c77f29d: Create new Switch component and add 'switch' role to ClickableRole
### Patch Changes
- 674a1e5c: We're no longer building flow types
- Updated dependencies [674a1e5c]
- Updated dependencies [674a1e5c]
- @khanacademy/wonder-blocks-core@6.0.0
- 674a1e5c: We're no longer building flow types
- Updated dependencies [674a1e5c]
- Updated dependencies [674a1e5c]
- @khanacademy/wonder-blocks-core@6.0.0

@@ -347,4 +362,4 @@ ## 3.1.3

- Updated dependencies [1344436f]
- @khanacademy/wonder-blocks-core@5.4.0
- Updated dependencies [1344436f]
- @khanacademy/wonder-blocks-core@5.4.0

@@ -355,4 +370,4 @@ ## 3.1.2

- Updated dependencies [9f3752d4]
- @khanacademy/wonder-blocks-core@5.3.1
- Updated dependencies [9f3752d4]
- @khanacademy/wonder-blocks-core@5.3.1

@@ -363,5 +378,5 @@ ## 3.1.1

- Updated dependencies [c37b99aa]
- Updated dependencies [c4cef3e6]
- @khanacademy/wonder-blocks-core@5.3.0
- Updated dependencies [c37b99aa]
- Updated dependencies [c4cef3e6]
- @khanacademy/wonder-blocks-core@5.3.0

@@ -372,3 +387,3 @@ ## 3.1.0

- ad8beb23: Added new tab index and ref props
- ad8beb23: Added new tab index and ref props

@@ -379,4 +394,4 @@ ## 3.0.13

- Updated dependencies [d4c412b5]
- @khanacademy/wonder-blocks-core@5.2.3
- Updated dependencies [d4c412b5]
- @khanacademy/wonder-blocks-core@5.2.3

@@ -387,4 +402,4 @@ ## 3.0.12

- Updated dependencies [64a188e3]
- @khanacademy/wonder-blocks-core@5.2.2
- Updated dependencies [64a188e3]
- @khanacademy/wonder-blocks-core@5.2.2

@@ -395,6 +410,6 @@ ## 3.0.11

- df9a10aa: Update state and props to be readonly in components using getDerivedStateFromProps()
- Updated dependencies [5a1ea891]
- Updated dependencies [df9a10aa]
- @khanacademy/wonder-blocks-core@5.2.1
- df9a10aa: Update state and props to be readonly in components using getDerivedStateFromProps()
- Updated dependencies [5a1ea891]
- Updated dependencies [df9a10aa]
- @khanacademy/wonder-blocks-core@5.2.1

@@ -405,6 +420,6 @@ ## 3.0.10

- Updated dependencies [fa70c895]
- Updated dependencies [19ab0408]
- Updated dependencies [fa70c895]
- @khanacademy/wonder-blocks-core@5.2.0
- Updated dependencies [fa70c895]
- Updated dependencies [19ab0408]
- Updated dependencies [fa70c895]
- @khanacademy/wonder-blocks-core@5.2.0

@@ -415,5 +430,5 @@ ## 3.0.9

- Updated dependencies [3c400719]
- Updated dependencies [a6164ed0]
- @khanacademy/wonder-blocks-core@5.1.0
- Updated dependencies [3c400719]
- Updated dependencies [a6164ed0]
- @khanacademy/wonder-blocks-core@5.1.0

@@ -428,5 +443,5 @@ ## 3.0.8

- c20f48f3: Don't transpile classes when building bundles
- Updated dependencies [c20f48f3]
- @khanacademy/wonder-blocks-core@5.0.4
- c20f48f3: Don't transpile classes when building bundles
- Updated dependencies [c20f48f3]
- @khanacademy/wonder-blocks-core@5.0.4

@@ -441,4 +456,4 @@ ## 3.0.5

- Updated dependencies [b281e2eb]
- @khanacademy/wonder-blocks-core@5.0.3
- Updated dependencies [b281e2eb]
- @khanacademy/wonder-blocks-core@5.0.3

@@ -449,4 +464,4 @@ ## 3.0.2

- Updated dependencies [21ce20c7]
- @khanacademy/wonder-blocks-core@5.0.2
- Updated dependencies [21ce20c7]
- @khanacademy/wonder-blocks-core@5.0.2

@@ -457,8 +472,8 @@ ## 3.0.1

- ccb6fe00: Miscellaneous TS type fixes
- d4c2b18c: Fix a variety of issues with Flow types generated by flowgen
- Updated dependencies [ccb6fe00]
- Updated dependencies [d4c2b18c]
- @khanacademy/wonder-blocks-core@5.0.1
- @khanacademy/wonder-blocks-color@2.0.1
- ccb6fe00: Miscellaneous TS type fixes
- d4c2b18c: Fix a variety of issues with Flow types generated by flowgen
- Updated dependencies [ccb6fe00]
- Updated dependencies [d4c2b18c]
- @khanacademy/wonder-blocks-core@5.0.1
- @khanacademy/wonder-blocks-color@2.0.1

@@ -469,9 +484,9 @@ ## 3.0.0

- 1ca4d7e3: Fix minor issue with generate Flow types (this is a major bump b/c I forgot to do one after doing the TS conversion)
- 1ca4d7e3: Fix minor issue with generate Flow types (this is a major bump b/c I forgot to do one after doing the TS conversion)
### Patch Changes
- Updated dependencies [1ca4d7e3]
- @khanacademy/wonder-blocks-color@2.0.0
- @khanacademy/wonder-blocks-core@5.0.0
- Updated dependencies [1ca4d7e3]
- @khanacademy/wonder-blocks-color@2.0.0
- @khanacademy/wonder-blocks-core@5.0.0

@@ -482,6 +497,6 @@ ## 2.4.8

- b5ba5568: Ensure that flow lib defs use React.ElementConfig<> isntead of JSX.LibraryManagedAttributes<>
- Updated dependencies [b5ba5568]
- @khanacademy/wonder-blocks-color@1.2.3
- @khanacademy/wonder-blocks-core@4.9.1
- b5ba5568: Ensure that flow lib defs use React.ElementConfig<> isntead of JSX.LibraryManagedAttributes<>
- Updated dependencies [b5ba5568]
- @khanacademy/wonder-blocks-color@1.2.3
- @khanacademy/wonder-blocks-core@4.9.1

@@ -492,4 +507,4 @@ ## 2.4.7

- Updated dependencies [779b031d]
- @khanacademy/wonder-blocks-core@4.9.0
- Updated dependencies [779b031d]
- @khanacademy/wonder-blocks-core@4.9.0

@@ -500,21 +515,21 @@ ## 2.4.6

- d816af08: Update build and test configs use TypeScript
- 3891f544: Update babel config to include plugins that Storybook needed
- 0d28bb1c: Configured TypeScript
- 3d05f764: Fix HOCs and other type errors
- c2ec4902: Update eslint configuration, fix lint
- 2983c05b: Include 'types' field in package.json
- 77ff6a66: Generate Flow types from TypeScript types
- ec8d4b7f: Fix miscellaneous TypeScript errors
- Updated dependencies [d816af08]
- Updated dependencies [3891f544]
- Updated dependencies [0d28bb1c]
- Updated dependencies [873f4a14]
- Updated dependencies [3d05f764]
- Updated dependencies [c2ec4902]
- Updated dependencies [2983c05b]
- Updated dependencies [77ff6a66]
- Updated dependencies [ec8d4b7f]
- @khanacademy/wonder-blocks-color@1.2.2
- @khanacademy/wonder-blocks-core@4.8.0
- d816af08: Update build and test configs use TypeScript
- 3891f544: Update babel config to include plugins that Storybook needed
- 0d28bb1c: Configured TypeScript
- 3d05f764: Fix HOCs and other type errors
- c2ec4902: Update eslint configuration, fix lint
- 2983c05b: Include 'types' field in package.json
- 77ff6a66: Generate Flow types from TypeScript types
- ec8d4b7f: Fix miscellaneous TypeScript errors
- Updated dependencies [d816af08]
- Updated dependencies [3891f544]
- Updated dependencies [0d28bb1c]
- Updated dependencies [873f4a14]
- Updated dependencies [3d05f764]
- Updated dependencies [c2ec4902]
- Updated dependencies [2983c05b]
- Updated dependencies [77ff6a66]
- Updated dependencies [ec8d4b7f]
- @khanacademy/wonder-blocks-color@1.2.2
- @khanacademy/wonder-blocks-core@4.8.0

@@ -525,8 +540,8 @@ ## 2.4.5

- 91cb727c: Remove file extensions from imports
- 91cb727c: Merge disjoint prop types since the codemod doesn't handle these properly.
- Updated dependencies [91cb727c]
- Updated dependencies [91cb727c]
- @khanacademy/wonder-blocks-color@1.2.1
- @khanacademy/wonder-blocks-core@4.7.0
- 91cb727c: Remove file extensions from imports
- 91cb727c: Merge disjoint prop types since the codemod doesn't handle these properly.
- Updated dependencies [91cb727c]
- Updated dependencies [91cb727c]
- @khanacademy/wonder-blocks-color@1.2.1
- @khanacademy/wonder-blocks-core@4.7.0

@@ -537,5 +552,5 @@ ## 2.4.4

- 496119f2: Cleanup WB interdependencies
- Updated dependencies [496119f2]
- @khanacademy/wonder-blocks-core@4.6.2
- 496119f2: Cleanup WB interdependencies
- Updated dependencies [496119f2]
- @khanacademy/wonder-blocks-core@4.6.2

@@ -546,3 +561,3 @@ ## 2.4.3

- @khanacademy/wonder-blocks-core@4.6.1
- @khanacademy/wonder-blocks-core@4.6.1

@@ -553,6 +568,6 @@ ## 2.4.2

- Updated dependencies [b561425a]
- Updated dependencies [a566e232]
- Updated dependencies [d2b21a6e]
- @khanacademy/wonder-blocks-core@4.6.0
- Updated dependencies [b561425a]
- Updated dependencies [a566e232]
- Updated dependencies [d2b21a6e]
- @khanacademy/wonder-blocks-core@4.6.0

@@ -563,3 +578,3 @@ ## 2.4.1

- 4c682709: handleClick no longer redundantly triggers on mouseup
- 4c682709: handleClick no longer redundantly triggers on mouseup

@@ -570,3 +585,3 @@ ## 2.4.0

- ceb111df: ClickableBehavior no longer has tabIndex 0 by default. It must be passed in.
- ceb111df: ClickableBehavior no longer has tabIndex 0 by default. It must be passed in.

@@ -577,4 +592,4 @@ ## 2.3.3

- Updated dependencies [175a2dd2]
- @khanacademy/wonder-blocks-core@4.5.0
- Updated dependencies [175a2dd2]
- @khanacademy/wonder-blocks-core@4.5.0

@@ -585,3 +600,3 @@ ## 2.3.2

- 5b8ba5da: Remove the default value of aria-label ""
- 5b8ba5da: Remove the default value of aria-label ""

@@ -592,4 +607,4 @@ ## 2.3.1

- Updated dependencies [6ee20af9]
- @khanacademy/wonder-blocks-core@4.4.0
- Updated dependencies [6ee20af9]
- @khanacademy/wonder-blocks-core@4.4.0

@@ -600,3 +615,3 @@ ## 2.3.0

- ee6fc773: Added keyboard support to search items when the dropdown is focused, included "Enter" as a key to trigger actions with the "option" role
- ee6fc773: Added keyboard support to search items when the dropdown is focused, included "Enter" as a key to trigger actions with the "option" role

@@ -607,5 +622,5 @@ ## 2.2.7

- Updated dependencies [5f4a4297]
- Updated dependencies [2b96fd59]
- @khanacademy/wonder-blocks-core@4.3.2
- Updated dependencies [5f4a4297]
- Updated dependencies [2b96fd59]
- @khanacademy/wonder-blocks-core@4.3.2

@@ -616,3 +631,3 @@ ## 2.2.6

- @khanacademy/wonder-blocks-core@4.3.1
- @khanacademy/wonder-blocks-core@4.3.1

@@ -623,4 +638,4 @@ ## 2.2.5

- Updated dependencies [246a921d]
- @khanacademy/wonder-blocks-core@4.3.0
- Updated dependencies [246a921d]
- @khanacademy/wonder-blocks-core@4.3.0

@@ -631,3 +646,3 @@ ## 2.2.4

- 166ecc97: Use `aria-disabled` instead of disabled, fix focused + disabled styles.
- 166ecc97: Use `aria-disabled` instead of disabled, fix focused + disabled styles.

@@ -638,3 +653,3 @@ ## 2.2.3

- @khanacademy/wonder-blocks-core@4.2.1
- @khanacademy/wonder-blocks-core@4.2.1

@@ -645,2 +660,2 @@ ## 2.2.2

- 901bfe82: Change disabled tabindex from -1 to 0
- 901bfe82: Change disabled tabindex from -1 to 0

@@ -36,12 +36,12 @@ import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/objectWithoutPropertiesLoose';

const disabledHandlers = {
onClick: () => void 0,
onMouseEnter: () => void 0,
onMouseLeave: () => void 0,
onMouseDown: () => void 0,
onMouseUp: () => void 0,
onTouchStart: () => void 0,
onTouchEnd: () => void 0,
onTouchCancel: () => void 0,
onKeyDown: () => void 0,
onKeyUp: () => void 0
onClick: () => undefined,
onMouseEnter: () => undefined,
onMouseLeave: () => undefined,
onMouseDown: () => undefined,
onMouseUp: () => undefined,
onTouchStart: () => undefined,
onTouchEnd: () => undefined,
onTouchCancel: () => undefined,
onKeyDown: () => undefined,
onKeyUp: () => undefined
};

@@ -66,4 +66,4 @@ const startState = {

super(props);
this.waitingForClick = void 0;
this.enterClick = void 0;
this.waitingForClick = undefined;
this.enterClick = undefined;
this.handleClick = e => {

@@ -70,0 +70,0 @@ const {

@@ -14,6 +14,3 @@ 'use strict';

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
function _interopNamespace(e) {
if (e && e.__esModule) return e;
function _interopNamespaceDefault(e) {
var n = Object.create(null);

@@ -31,9 +28,7 @@ if (e) {

}
n["default"] = e;
n.default = e;
return Object.freeze(n);
}
var _objectWithoutPropertiesLoose__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutPropertiesLoose);
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
var React__namespace = /*#__PURE__*/_interopNamespace(React);
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);

@@ -66,12 +61,12 @@ const getAppropriateTriggersForRole = role => {

const disabledHandlers = {
onClick: () => void 0,
onMouseEnter: () => void 0,
onMouseLeave: () => void 0,
onMouseDown: () => void 0,
onMouseUp: () => void 0,
onTouchStart: () => void 0,
onTouchEnd: () => void 0,
onTouchCancel: () => void 0,
onKeyDown: () => void 0,
onKeyUp: () => void 0
onClick: () => undefined,
onMouseEnter: () => undefined,
onMouseLeave: () => undefined,
onMouseDown: () => undefined,
onMouseUp: () => undefined,
onTouchStart: () => undefined,
onTouchEnd: () => undefined,
onTouchCancel: () => undefined,
onKeyDown: () => undefined,
onKeyUp: () => undefined
};

@@ -87,3 +82,3 @@ const startState = {

if (props.disabled) {
return _extends__default["default"]({}, startState, {
return _extends({}, startState, {
focused: state.focused

@@ -97,4 +92,4 @@ });

super(props);
this.waitingForClick = void 0;
this.enterClick = void 0;
this.waitingForClick = undefined;
this.enterClick = undefined;
this.handleClick = e => {

@@ -338,3 +333,3 @@ const {

const rel = this.props.rel || (this.props.target === "_blank" ? "noopener noreferrer" : undefined);
const childrenProps = this.props.disabled ? _extends__default["default"]({}, disabledHandlers, {
const childrenProps = this.props.disabled ? _extends({}, disabledHandlers, {
onFocus: this.handleFocus,

@@ -394,3 +389,3 @@ onBlur: this.handleBlur,

if (activeHref && useClient && props.href) {
return React__namespace.createElement(StyledLink, _extends__default["default"]({}, commonProps, {
return React__namespace.createElement(StyledLink, _extends({}, commonProps, {
to: props.href,

@@ -403,3 +398,3 @@ role: props.role,

} else if (activeHref && !useClient) {
return React__namespace.createElement(StyledAnchor, _extends__default["default"]({}, commonProps, {
return React__namespace.createElement(StyledAnchor, _extends({}, commonProps, {
href: props.href,

@@ -412,3 +407,3 @@ role: props.role,

} else {
return React__namespace.createElement(StyledButton, _extends__default["default"]({}, commonProps, {
return React__namespace.createElement(StyledButton, _extends({}, commonProps, {
type: "button",

@@ -440,3 +435,3 @@ "aria-disabled": props.disabled,

} = props,
restProps = _objectWithoutPropertiesLoose__default["default"](props, _excluded);
restProps = _objectWithoutPropertiesLoose(props, _excluded);
const ClickableBehavior = getClickableBehavior(href, skipClientNav, router);

@@ -457,3 +452,3 @@ const getStyle = state => [styles.reset, styles.link, !hideDefaultFocusRing && state.focused && (light ? styles.focusedLight : styles.focused), disabled && styles.disabled, style];

tabIndex: tabIndex
}, (state, childrenProps) => getCorrectTag(state, router, _extends__default["default"]({}, restProps, {
}, (state, childrenProps) => getCorrectTag(state, router, _extends({}, restProps, {
"data-testid": testId,

@@ -475,3 +470,3 @@ style: getStyle(state)

tabIndex: tabIndex
}, (state, childrenProps) => getCorrectTag(state, router, _extends__default["default"]({}, restProps, {
}, (state, childrenProps) => getCorrectTag(state, router, _extends({}, restProps, {
"data-testid": testId,

@@ -531,4 +526,4 @@ style: getStyle(state)

exports.ClickableBehavior = ClickableBehavior;
exports["default"] = Clickable;
exports.default = Clickable;
exports.getClickableBehavior = getClickableBehavior;
exports.isClientSideUrl = isClientSideUrl;
{
"name": "@khanacademy/wonder-blocks-clickable",
"version": "0.0.0-PR2450-20250130232235",
"version": "0.0.0-PR2453-20250204180605",
"design": "v1",

@@ -9,6 +9,2 @@ "description": "Clickable component for Wonder-Blocks.",

"types": "dist/index.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prepublishOnly": "../../utils/publish/package-pre-publish-check.sh"
},
"author": "",

@@ -20,5 +16,5 @@ "license": "MIT",

"dependencies": {
"@babel/runtime": "^7.18.6",
"@khanacademy/wonder-blocks-core": "0.0.0-PR2450-20250130232235",
"@khanacademy/wonder-blocks-tokens": "^4.1.0"
"@babel/runtime": "^7.24.5",
"@khanacademy/wonder-blocks-core": "0.0.0-PR2453-20250204180605",
"@khanacademy/wonder-blocks-tokens": "0.0.0-PR2453-20250204180605"
},

@@ -33,4 +29,7 @@ "peerDependencies": {

"devDependencies": {
"@khanacademy/wb-dev-build-settings": "^2.0.0"
"@khanacademy/wb-dev-build-settings": "0.0.0-PR2453-20250204180605"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc