# Changelog

## 1.11.0

### Minor Changes

- [`323678a`](https://github.com/workos/widgets/commit/323678a8d32e032bfb34e68cbcdd5b8bda116ef4) Thanks [@thompsongl](https://github.com/thompsongl)! - Add user-initiated email change flow to the User Profile widget, including a verification code step and an optional set-password step for users without a password.

### Patch Changes

- [`c508b79`](https://github.com/workos/widgets/commit/c508b7965ec1958be60ad17ee75b74e3ffac5be3) Thanks [@workosbot](https://github.com/workosbot)! - Sync generated API from upstream OpenAPI spec.

- [`823754f`](https://github.com/workos/widgets/commit/823754fed89292f872b5aab215de334f8d3f53bf) Thanks [@dandorman](https://github.com/dandorman)! - Pipes: Support server-supplied provider icons via new `iconSlug`, `iconUrl`, and `iconDarkUrl` fields on `DataIntegration`

## 1.10.2

- Use form `POST` instead of `window.open` to launch Admin Portal
- Standardize dialog descriptions to use size 2 text
- Fix idle sessions from resulting in incorrect permissions error
- Fix semantic markup for data list elements in the `UserProfile` Widget

## 1.10.1

- Fix broken pagination in the `ApiKeys` Widget

## 1.10.0

- Add new `AdminPortalAuditLogStreaming` Widget for monitoring audit log stream status and configuration

## 1.9.1

- Fix expired admin portal link error for the `AdminPortalSsoConnection` Widget
- Fix incorrect "last sync" timestamp for the `DirectorySync` Widget
- Stop extra retries for failed queries responding with a 403 status code

## 1.9.0

- Add new `DirectorySync` Widget. See the [Directory Sync documentation](https://workos.com/docs/directory-sync) for more information.
- Fix a compatibility bug with updates to internal API responses

## 1.8.2

- Export schemas and models together with experimental fetch APIs

## 1.8.1

- Added experimental data fetching utilities for `@tanstack/react-query` and `swr`. Please note that these are not yet stable and the APIs may change at any time. We do not recommend using these in production at this time.

## 1.8.0

- Add support for localization using the `@workos-inc/i18n` package
- Add missing accessible label to the `UsersSearch` component

## 1.7.2

- Add missing provider icons in CSS

## 1.7.1

- Add support for CSRF protection in the `Pipes` Widget

## 1.7.0

- Fix alignment of connection status indicator in the `Pipes` Widget
- Add missing overridable selectors for several UI elements across all Widgets
- Invalidate all Widgets queries when switching organizations

## 1.6.0

- Add new `Pipes` Widget. See the [Pipes documentation](https://workos.com/docs/authkit/pipes) for more information.
- Unify DOM attributes for all Widgets' root elements for easier styling and debugging.
  - `.woswidgets-widget`: Applies to the root element of any Widget
  - `[data-woswidgets-widget-id="<WIDGET_ID>"]`: The ID of the Widget. The Widget ID is the kebab-cased version of the Widget's component name (e.g. `AdminPortalDomainVerification` > `admin-portal-domain-verification`)
  - `[data-woswidgets-widget-state="<'resolved' | 'loading' | 'error'>"]`: The current state of the Widget's data loading
- Fix caching bug with Widgets that share access tokens
- Expose `ApiKeys` and `AdminPortalSsoConnection` Widgets as subpath exports
- Remove unnecessary CSS style overrides for the `AdminPortalSsoConnection` Widget

## 1.5.1

- Throw an `IncorrectPermissionsError` when a fetch returns a 403, consolidate error messages
- Add `data-woswidgets-widget-id` to `AdminPortalDomainVerification` empty state
- Resolve access token during requests to fix caching issues

## 1.5.0

- Release `ApiKeys` Widget
- Add missing identity provider icons

## 1.4.0

- Add support for publishing multiple roles in the `UsersManagement` Widget
- Export prop types and loading components for all Widgets

## 1.3.1

- Remove broken CSS import in JS module

## 1.3.0

- Create new `AdminPortalDomainVerification` Widget
- Handle user location showing as undefined
- Add `AdminPortalSsoConnection` Widget
- Handle incorrect Widget permissions

## 1.2.1

- Use ESM compatible imports to fix broken build (backport for patch release)

## 1.2.0

- Added `truncateBehavior` prop to the `OrganizationSwitcher` Widget to control how long organization names get truncated when there is limited space
- Added `queryClient` prop to the root `WorkOsWidgets` component to allow users to provide their own Query Client

## 1.1.5

Internal changes to the publishing workflow. No user-facing changes included in this release.

## 1.1.4

- Add Widget type header to API requests
- Pin third-party actions to currently used SHA

## 1.1.2

- Fix broken imports
- Fix skeleton layout in `UserProfile` Widget
