{/* ATTENTION */}

{/* When updating this file, please add the newest comments at the top of the file so they are displayed first */}

{/* Changes should include any functional changes made to the component and how that affects the component/function usage */}

{/* or changes made to the Types (and what effect that will have for the component/function) */}

import { Meta } from '@storybook/addon-docs/blocks'

<Meta
  title='ChangeLog/v4/4.7'
  parameters={{
    viewMode: 'docs',
    previewTabs: {
      canvas: { hidden: true },
    },
  }}
/>

{/* Include date, version & the change and it's functional effects */}

**20-SEPTEMBER-2024**

### 4.7.15

Introduced the `autoResize` prop for `textarea` type in `TextInput`. This prop allows the `textarea` to automatically expand to fit its content.

[TextInput](/story/components-formcomponents-textinput--textarea-autoresize)

---

**19-SEPTEMBER-2024**

### 4.7.14

- Reverting custom `onPaste` handling for TextInput that had some unintended side effects. Reverting back to default input onPaste behavior.

[TextInput](/docs/components-formcomponents-textinput--docs)

---

**18-SEPTEMBER-2024**

### 4.7.13

- Updated the sorting logic for `MultiSelect`. By default, we will allow the component to sort alphabetically. Now, sorting must be opted out by passing `sortAlphabetically={false}`. However, if the `isReorderable` prop is set to true, this will override the sorting and the options will be sorted by the order they are passed in.
- Allowing the options in `MultiSelect` to have a word break if the option name is too long.

[MultiSelect](/story/components-formcomponents-multiselect-exposed--word-break)

---

### 4.7.12

- `NewSelect` spacebar bug fix. No longer closes the select menu when pressing the spacebar.
- `TextInput` will now refocus after clicking the clear "x" button if the `onFocus` prop is defined.
- Pattern Docs update to show the "Predict" logo instead of "Marketplaces"

[NewSelect](/story/components-formcomponents-newselect--force-showing-search)

[Pattern Docs](/docs/general-pattern-docs--docs)

### 4.7.11

Addressing the `onPaste` bug with `TextInput`. We now properly handle pasting text to the `TextInput` component without removing current text.

[TextInput](/docs/components-formcomponents-textinput--docs)

---

**17-SEPTEMBER-2024**

### 4.7.10

Fixing the remaining `MultiSelect` bugs:

- Sorting
- Dragging
- Pre selected options

[MultiSelect](/story/components-formcomponents-multiselect-exposed--basic)

### 4.7.9

- Fixes a `MultiSelect` search bug for selected options.
- This is a temporary fix as it removes the ability to sort options that come in from an API. This will be handled in a follow-up PR.

[MultiSelect](/story/components-formcomponents-multiselect-exposed--basic)

### 4.7.8

Allowing the `Button` in `EmptyState` to have all `Button` styles as an option instead of forcing the green color variation.

[EmptyState](/story/components-emptystate--button-variation)

---

**16-SEPTEMBER-2024**

### 4.7.7

Adjusting the search functionality for `MultiSelect`. Now the search fiters every option in the list instead of just the unselected options.

[MultiSelect](/story/components-formcomponents-multiselect-exposed--basic)

### 4.7.6

Updating logos:

- Adding Predict logo
- Will remove the Marketplace logo in an upcoming PR

### 4.7.5

- Added the ability to determine if the `SideDrawer` is being closed from an outside click or not. Using this logic to fix the bug in the bullet below.
- Fixing the `Filter` race condition bug. The `Filter` was calling the `cancelCallout` each time it would close. We restructured this so that would only happen if the user clicked outside of the `Filter` and not when it was "saved" or "canceled".

[SideDrawer](/docs/components-sidedrawer--docs)

[Filter](/docs/components-filter--docs)

---

**12-SEPTEMBER-2024**

### 4.7.4

Allowing the `close` function from `SideDrawer` to be exposed through `children` and `footerContent` so that we can gracefully close the drawer with the standard transition.

[SideDrawer](/docs/components-sidedrawer--docs)

---

**11-SEPTEMBER-2024**

### 4.7.3

Fixes mismatch star images for `ReviewStars`.

[ReviewStars](/docs/components-reviewstars--docs)

---

**10-SEPTEMBER-2024**

### 4.7.2

- Added logic to the `LeftNavLink` component to handle when there are multiple link segments in the content object that might match.
- Fixed buttons `as='link'` in Next.js not rendering correctly.

[LeftNav](/docs/components-leftnav--multiple-link-segments)

[Button](/docs/components-buttons-button--link)

### 4.7.1

Adding loading state for parent CsvExport when there are more than 1 options available.

[CsvExport](/docs/components-csvexport--multiple-csv-api-download)

### 4.7.0

Created the `ReviewStars` component. This component will be used to display a product rating.

[ReviewStars](/docs/components-reviewstars--docs)
