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
0
Versions
385
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 6.0.0 to 6.1.0

LICENSE

407

CHANGELOG.md
# @khanacademy/wonder-blocks-clickable
## 6.1.0
### Minor Changes
- f03298f: Tooling:
- Switching to `pnpm`.
- Upgrading `rollup` to v4 and `@babel/runtime` to match the current webapp version.
### Patch Changes
- 969864b: Update internal addStyle variable name to address aphrodite-add-style-variable-name linting rule
- bb2a026: pnpm: Switch to workspace protocol to handle dependency versions with changesets on monorepo setup"
- Updated dependencies [969864b]
- Updated dependencies [bb2a026]
- Updated dependencies [f03298f]
- @khanacademy/wonder-blocks-core@12.1.0
- @khanacademy/wonder-blocks-tokens@4.2.0
## 6.0.0

@@ -7,8 +26,8 @@

- 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@12.0.0
- Updated dependencies [0199324d]
- @khanacademy/wonder-blocks-core@12.0.0

@@ -19,5 +38,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

@@ -28,4 +47,4 @@ ## 5.0.6

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

@@ -36,4 +55,4 @@ ## 5.0.5

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

@@ -44,6 +63,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

@@ -54,4 +73,4 @@ ## 5.0.3

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

@@ -62,6 +81,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

@@ -72,4 +91,4 @@ ## 5.0.1

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

@@ -80,9 +99,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

@@ -93,4 +112,4 @@ ## 4.2.9

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

@@ -101,6 +120,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

@@ -111,4 +130,4 @@ ## 4.2.7

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

@@ -119,5 +138,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

@@ -128,6 +147,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

@@ -138,4 +157,4 @@ ## 4.2.4

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

@@ -146,7 +165,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

@@ -157,4 +176,4 @@ ## 4.2.2

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

@@ -165,4 +184,4 @@ ## 4.2.1

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

@@ -173,8 +192,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

@@ -185,6 +204,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

@@ -195,3 +214,3 @@ ## 4.1.2

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

@@ -202,4 +221,4 @@ ## 4.1.1

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

@@ -210,3 +229,3 @@ ## 4.1.0

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

@@ -217,4 +236,4 @@ ## 4.0.14

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

@@ -225,6 +244,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

@@ -235,4 +254,4 @@ ## 4.0.12

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

@@ -243,3 +262,3 @@ ## 4.0.11

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

@@ -250,3 +269,3 @@ ## 4.0.10

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

@@ -257,4 +276,4 @@ ## 4.0.9

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

@@ -265,4 +284,4 @@ ## 4.0.8

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

@@ -273,3 +292,3 @@ ## 4.0.7

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

@@ -280,4 +299,4 @@ ## 4.0.6

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

@@ -288,4 +307,4 @@ ## 4.0.5

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

@@ -296,6 +315,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

@@ -306,4 +325,4 @@ ## 4.0.3

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

@@ -314,5 +333,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

@@ -323,3 +342,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

@@ -330,14 +349,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

@@ -348,4 +367,4 @@ ## 3.1.3

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

@@ -356,4 +375,4 @@ ## 3.1.2

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

@@ -364,5 +383,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

@@ -373,3 +392,3 @@ ## 3.1.0

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

@@ -380,4 +399,4 @@ ## 3.0.13

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

@@ -388,4 +407,4 @@ ## 3.0.12

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

@@ -396,6 +415,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

@@ -406,6 +425,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

@@ -416,5 +435,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

@@ -429,5 +448,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

@@ -442,4 +461,4 @@ ## 3.0.5

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

@@ -450,4 +469,4 @@ ## 3.0.2

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

@@ -458,8 +477,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

@@ -470,9 +489,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

@@ -483,6 +502,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

@@ -493,4 +512,4 @@ ## 2.4.7

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

@@ -501,21 +520,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

@@ -526,8 +545,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

@@ -538,5 +557,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

@@ -547,3 +566,3 @@ ## 2.4.3

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

@@ -554,6 +573,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

@@ -564,3 +583,3 @@ ## 2.4.1

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

@@ -571,3 +590,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.

@@ -578,4 +597,4 @@ ## 2.3.3

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

@@ -586,3 +605,3 @@ ## 2.3.2

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

@@ -593,4 +612,4 @@ ## 2.3.1

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

@@ -601,3 +620,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

@@ -608,5 +627,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

@@ -617,3 +636,3 @@ ## 2.2.6

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

@@ -624,4 +643,4 @@ ## 2.2.5

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

@@ -632,3 +651,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.

@@ -639,3 +658,3 @@ ## 2.2.3

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

@@ -646,2 +665,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 => {

@@ -354,3 +354,3 @@ const {

const _excluded = ["href", "onClick", "skipClientNav", "beforeNav", "safeWithNav", "style", "target", "testId", "onFocus", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseUp", "hideDefaultFocusRing", "light", "disabled", "tabIndex"];
const StyledAnchor = addStyle("a");
const StyledA = addStyle("a");
const StyledButton = addStyle("button");

@@ -371,3 +371,3 @@ const StyledLink = addStyle(Link);

} else if (activeHref && !useClient) {
return React.createElement(StyledAnchor, _extends({}, commonProps, {
return React.createElement(StyledA, _extends({}, commonProps, {
href: props.href,

@@ -374,0 +374,0 @@ role: props.role,

@@ -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,

@@ -386,3 +381,3 @@ onBlur: this.handleBlur,

const _excluded = ["href", "onClick", "skipClientNav", "beforeNav", "safeWithNav", "style", "target", "testId", "onFocus", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseUp", "hideDefaultFocusRing", "light", "disabled", "tabIndex"];
const StyledAnchor = wonderBlocksCore.addStyle("a");
const StyledA = wonderBlocksCore.addStyle("a");
const StyledButton = wonderBlocksCore.addStyle("button");

@@ -395,3 +390,3 @@ const StyledLink = wonderBlocksCore.addStyle(reactRouterDom.Link);

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

@@ -404,3 +399,3 @@ role: props.role,

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

@@ -413,3 +408,3 @@ role: props.role,

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

@@ -441,3 +436,3 @@ "aria-disabled": props.disabled,

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

@@ -458,3 +453,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,

@@ -476,3 +471,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,

@@ -532,4 +527,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": "6.0.0",
"version": "6.1.0",
"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": "^12.0.0",
"@khanacademy/wonder-blocks-tokens": "^4.1.0"
"@babel/runtime": "^7.24.5",
"@khanacademy/wonder-blocks-core": "12.1.0",
"@khanacademy/wonder-blocks-tokens": "4.2.0"
},

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

"devDependencies": {
"@khanacademy/wb-dev-build-settings": "^2.0.0"
"@khanacademy/wb-dev-build-settings": "2.1.0"
},
"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