diff --git a/.changeset/six-trains-remain.md b/.changeset/six-trains-remain.md deleted file mode 100644 index 475f11ebd..000000000 --- a/.changeset/six-trains-remain.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@khanacademy/wonder-blocks-timing": major ---- - -- **[BREAKING CHANGE]** Policy types are now using enums across all APIs -- **[BREAKING CHANGE]** `useScheduledTimeout` has been renamed to `useTimeout` and the original `useTimeout` has been removed. To update existing uses of `useTimeout` to the new API: if `active` was `true` just delete that argument or replace it with `{schedulingPolicy: SchedulingPolicy.Immediately}`; if `active` was `false` replace it with `{schedulingPolicy: SchedulingPolicy.OnDemand}`. -- **[BREAKING CHANGE]** `useScheduledInterval` has been renamed to `useInterval` and the original `useInterval` has been removed. To update existing uses of `useInterval` to the new API: if `active` was `true` just delete that argument or replace it with `{schedulingPolicy: SchedulingPolicy.Immediately}`; if `active` was `false` replace it with `{schedulingPolicy: SchedulingPolicy.OnDemand}`. -- **[NEW]** `useTimeout` now supports an optional `ActionPolicy` in the options. The default is to not reset the timeout when the `action` callback changes. This can be changed to `ActionPolicy.Reset` to reset the timeout when the `action` callback changes (it is recommended that you use `useCallback` on your `action` callback to avoid resetting the timeout everytime a component renders when using the `Reset` policy). -- **[NEW]** `useInterval` now supports an optional `ActionPolicy` in the options. The default is to not reset the interval when the `action` callback changes. This can be changed to `ActionPolicy.Reset` to reset the interval when the `action` callback changes (it is recommended that you use `useCallback` on your `action` callback to avoid resetting the interval everytime a component renders when using the `Reset` policy). -- **[BUGFIX]** `useTimeout` will now correctly reset the timeout when the `set` method is called, as intended. -- **[BUGFIX]** `useInterval` will now correctly reset the interval when the `set` method is called, as intended. diff --git a/.changeset/thirty-owls-sell.md b/.changeset/thirty-owls-sell.md deleted file mode 100644 index 12a672f28..000000000 --- a/.changeset/thirty-owls-sell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@khanacademy/wonder-blocks-dropdown": minor ---- - -Add `Listbox` component with Single and Multiple selection support diff --git a/packages/wonder-blocks-birthday-picker/CHANGELOG.md b/packages/wonder-blocks-birthday-picker/CHANGELOG.md index 2958dfaff..755f92141 100644 --- a/packages/wonder-blocks-birthday-picker/CHANGELOG.md +++ b/packages/wonder-blocks-birthday-picker/CHANGELOG.md @@ -1,5 +1,12 @@ # @khanacademy/wonder-blocks-birthday-picker +## 2.0.61 + +### Patch Changes + +- Updated dependencies [7030948a] + - @khanacademy/wonder-blocks-dropdown@5.3.0 + ## 2.0.60 ### Patch Changes diff --git a/packages/wonder-blocks-birthday-picker/package.json b/packages/wonder-blocks-birthday-picker/package.json index c74ef54b3..00daf74ae 100644 --- a/packages/wonder-blocks-birthday-picker/package.json +++ b/packages/wonder-blocks-birthday-picker/package.json @@ -1,6 +1,6 @@ { "name": "@khanacademy/wonder-blocks-birthday-picker", - "version": "2.0.60", + "version": "2.0.61", "design": "v1", "publishConfig": { "access": "public" @@ -15,7 +15,7 @@ "dependencies": { "@babel/runtime": "^7.18.6", "@khanacademy/wonder-blocks-core": "^6.4.0", - "@khanacademy/wonder-blocks-dropdown": "^5.2.1", + "@khanacademy/wonder-blocks-dropdown": "^5.3.0", "@khanacademy/wonder-blocks-icon": "^4.1.0", "@khanacademy/wonder-blocks-layout": "^2.0.32", "@khanacademy/wonder-blocks-tokens": "^1.3.0", diff --git a/packages/wonder-blocks-dropdown/CHANGELOG.md b/packages/wonder-blocks-dropdown/CHANGELOG.md index 4316ad4e2..cbf32a643 100644 --- a/packages/wonder-blocks-dropdown/CHANGELOG.md +++ b/packages/wonder-blocks-dropdown/CHANGELOG.md @@ -1,5 +1,17 @@ # @khanacademy/wonder-blocks-dropdown +## 5.3.0 + +### Minor Changes + +- 7030948a: Add `Listbox` component with Single and Multiple selection support + +### Patch Changes + +- Updated dependencies [f72f7dd4] + - @khanacademy/wonder-blocks-timing@5.0.0 + - @khanacademy/wonder-blocks-modal@5.1.2 + ## 5.2.1 ### Patch Changes diff --git a/packages/wonder-blocks-dropdown/package.json b/packages/wonder-blocks-dropdown/package.json index 4df95ee6a..0d9bd86e3 100644 --- a/packages/wonder-blocks-dropdown/package.json +++ b/packages/wonder-blocks-dropdown/package.json @@ -1,6 +1,6 @@ { "name": "@khanacademy/wonder-blocks-dropdown", - "version": "5.2.1", + "version": "5.3.0", "design": "v1", "description": "Dropdown variants for Wonder Blocks.", "main": "dist/index.js", @@ -21,9 +21,9 @@ "@khanacademy/wonder-blocks-core": "^6.4.0", "@khanacademy/wonder-blocks-icon": "^4.1.0", "@khanacademy/wonder-blocks-layout": "^2.0.32", - "@khanacademy/wonder-blocks-modal": "^5.1.1", + "@khanacademy/wonder-blocks-modal": "^5.1.2", "@khanacademy/wonder-blocks-search-field": "^2.2.10", - "@khanacademy/wonder-blocks-timing": "^4.0.2", + "@khanacademy/wonder-blocks-timing": "^5.0.0", "@khanacademy/wonder-blocks-tokens": "^1.3.0", "@khanacademy/wonder-blocks-typography": "^2.1.11" }, diff --git a/packages/wonder-blocks-modal/CHANGELOG.md b/packages/wonder-blocks-modal/CHANGELOG.md index 20df411b3..98453ede0 100644 --- a/packages/wonder-blocks-modal/CHANGELOG.md +++ b/packages/wonder-blocks-modal/CHANGELOG.md @@ -1,5 +1,12 @@ # @khanacademy/wonder-blocks-modal +## 5.1.2 + +### Patch Changes + +- Updated dependencies [f72f7dd4] + - @khanacademy/wonder-blocks-timing@5.0.0 + ## 5.1.1 ### Patch Changes diff --git a/packages/wonder-blocks-modal/package.json b/packages/wonder-blocks-modal/package.json index 0ff0f8e9a..88d317865 100644 --- a/packages/wonder-blocks-modal/package.json +++ b/packages/wonder-blocks-modal/package.json @@ -1,6 +1,6 @@ { "name": "@khanacademy/wonder-blocks-modal", - "version": "5.1.1", + "version": "5.1.2", "design": "v2", "publishConfig": { "access": "public" @@ -21,7 +21,7 @@ "@khanacademy/wonder-blocks-icon-button": "^5.2.1", "@khanacademy/wonder-blocks-layout": "^2.0.32", "@khanacademy/wonder-blocks-theming": "^2.0.2", - "@khanacademy/wonder-blocks-timing": "^4.0.2", + "@khanacademy/wonder-blocks-timing": "^5.0.0", "@khanacademy/wonder-blocks-tokens": "^1.3.0", "@khanacademy/wonder-blocks-typography": "^2.1.11" }, diff --git a/packages/wonder-blocks-popover/CHANGELOG.md b/packages/wonder-blocks-popover/CHANGELOG.md index 0ac2fb89a..fb88ab00c 100644 --- a/packages/wonder-blocks-popover/CHANGELOG.md +++ b/packages/wonder-blocks-popover/CHANGELOG.md @@ -1,5 +1,12 @@ # @khanacademy/wonder-blocks-popover +## 3.2.2 + +### Patch Changes + +- @khanacademy/wonder-blocks-modal@5.1.2 +- @khanacademy/wonder-blocks-tooltip@2.3.1 + ## 3.2.1 ### Patch Changes diff --git a/packages/wonder-blocks-popover/package.json b/packages/wonder-blocks-popover/package.json index 681d9ff37..e73fbbf10 100644 --- a/packages/wonder-blocks-popover/package.json +++ b/packages/wonder-blocks-popover/package.json @@ -1,6 +1,6 @@ { "name": "@khanacademy/wonder-blocks-popover", - "version": "3.2.1", + "version": "3.2.2", "design": "v1", "publishConfig": { "access": "public" @@ -18,9 +18,9 @@ "@babel/runtime": "^7.18.6", "@khanacademy/wonder-blocks-core": "^6.4.0", "@khanacademy/wonder-blocks-icon-button": "^5.2.1", - "@khanacademy/wonder-blocks-modal": "^5.1.1", + "@khanacademy/wonder-blocks-modal": "^5.1.2", "@khanacademy/wonder-blocks-tokens": "^1.3.0", - "@khanacademy/wonder-blocks-tooltip": "^2.3.0", + "@khanacademy/wonder-blocks-tooltip": "^2.3.1", "@khanacademy/wonder-blocks-typography": "^2.1.11" }, "peerDependencies": { diff --git a/packages/wonder-blocks-timing/CHANGELOG.md b/packages/wonder-blocks-timing/CHANGELOG.md index 26f18114a..91d1bd037 100644 --- a/packages/wonder-blocks-timing/CHANGELOG.md +++ b/packages/wonder-blocks-timing/CHANGELOG.md @@ -1,5 +1,17 @@ # @khanacademy/wonder-blocks-timing +## 5.0.0 + +### Major Changes + +- f72f7dd4: - **[BREAKING CHANGE]** Policy types are now using enums across all APIs + - **[BREAKING CHANGE]** `useScheduledTimeout` has been renamed to `useTimeout` and the original `useTimeout` has been removed. To update existing uses of `useTimeout` to the new API: if `active` was `true` just delete that argument or replace it with `{schedulingPolicy: SchedulingPolicy.Immediately}`; if `active` was `false` replace it with `{schedulingPolicy: SchedulingPolicy.OnDemand}`. + - **[BREAKING CHANGE]** `useScheduledInterval` has been renamed to `useInterval` and the original `useInterval` has been removed. To update existing uses of `useInterval` to the new API: if `active` was `true` just delete that argument or replace it with `{schedulingPolicy: SchedulingPolicy.Immediately}`; if `active` was `false` replace it with `{schedulingPolicy: SchedulingPolicy.OnDemand}`. + - **[NEW]** `useTimeout` now supports an optional `ActionPolicy` in the options. The default is to not reset the timeout when the `action` callback changes. This can be changed to `ActionPolicy.Reset` to reset the timeout when the `action` callback changes (it is recommended that you use `useCallback` on your `action` callback to avoid resetting the timeout everytime a component renders when using the `Reset` policy). + - **[NEW]** `useInterval` now supports an optional `ActionPolicy` in the options. The default is to not reset the interval when the `action` callback changes. This can be changed to `ActionPolicy.Reset` to reset the interval when the `action` callback changes (it is recommended that you use `useCallback` on your `action` callback to avoid resetting the interval everytime a component renders when using the `Reset` policy). + - **[BUGFIX]** `useTimeout` will now correctly reset the timeout when the `set` method is called, as intended. + - **[BUGFIX]** `useInterval` will now correctly reset the interval when the `set` method is called, as intended. + ## 4.0.2 ### Patch Changes diff --git a/packages/wonder-blocks-timing/package.json b/packages/wonder-blocks-timing/package.json index e1372263f..6e176d084 100644 --- a/packages/wonder-blocks-timing/package.json +++ b/packages/wonder-blocks-timing/package.json @@ -1,7 +1,7 @@ { "name": "@khanacademy/wonder-blocks-timing", "private": false, - "version": "4.0.2", + "version": "5.0.0", "design": "v1", "publishConfig": { "access": "public" diff --git a/packages/wonder-blocks-tooltip/CHANGELOG.md b/packages/wonder-blocks-tooltip/CHANGELOG.md index 8a30b7f5c..c652b6c84 100644 --- a/packages/wonder-blocks-tooltip/CHANGELOG.md +++ b/packages/wonder-blocks-tooltip/CHANGELOG.md @@ -1,5 +1,11 @@ # @khanacademy/wonder-blocks-tooltip +## 2.3.1 + +### Patch Changes + +- @khanacademy/wonder-blocks-modal@5.1.2 + ## 2.3.0 ### Minor Changes diff --git a/packages/wonder-blocks-tooltip/package.json b/packages/wonder-blocks-tooltip/package.json index 7efbe9227..7bdeaca49 100644 --- a/packages/wonder-blocks-tooltip/package.json +++ b/packages/wonder-blocks-tooltip/package.json @@ -1,6 +1,6 @@ { "name": "@khanacademy/wonder-blocks-tooltip", - "version": "2.3.0", + "version": "2.3.1", "design": "v1", "publishConfig": { "access": "public" @@ -18,7 +18,7 @@ "@babel/runtime": "^7.18.6", "@khanacademy/wonder-blocks-core": "^6.4.0", "@khanacademy/wonder-blocks-layout": "^2.0.32", - "@khanacademy/wonder-blocks-modal": "^5.1.1", + "@khanacademy/wonder-blocks-modal": "^5.1.2", "@khanacademy/wonder-blocks-tokens": "^1.3.0", "@khanacademy/wonder-blocks-typography": "^2.1.11" },