diff --git a/.changeset/app-owned-close-button.md b/.changeset/app-owned-close-button.md deleted file mode 100644 index ccdbf06..0000000 --- a/.changeset/app-owned-close-button.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -"@perspective-ai/sdk": minor ---- - -Slider, popup, and float now hand their close (X) button to the interview app. - -The app renders its own X (it emits `perspective:close` when clicked), placed -within its own header so it no longer overlaps the app's top-right UI such as -the participant avatar or the `…` menu. The SDK now only draws a temporary X -over the loading skeleton and removes it the moment the interview becomes -visible, so there's never a double or overlapping X. - -- The `perspective:init` handshake now sends `renderCloseButton` (`true` unless - `disableClose` is set) for slider, popup, and float. `widget`/`fullpage` have - no X and don't send it. -- The legacy `hasCloseButton` init flag is retired — the SDK no longer emits it. - It remains on the `InitMessage` type as `@deprecated` because the app may still - receive it from older deployed SDK clients. -- Backdrop-click and Escape close handlers are unchanged; float's launcher bubble - still closes the window. `disableClose` continues to suppress the X entirely. diff --git a/packages/sdk-react/CHANGELOG.md b/packages/sdk-react/CHANGELOG.md index 42918e9..072eec2 100644 --- a/packages/sdk-react/CHANGELOG.md +++ b/packages/sdk-react/CHANGELOG.md @@ -1,5 +1,12 @@ # @perspective-ai/sdk-react +## 1.12.0 + +### Patch Changes + +- Updated dependencies [d2f7626] + - @perspective-ai/sdk@1.12.0 + ## 1.11.0 ### Minor Changes diff --git a/packages/sdk-react/package.json b/packages/sdk-react/package.json index aec3b13..8ba510a 100644 --- a/packages/sdk-react/package.json +++ b/packages/sdk-react/package.json @@ -1,6 +1,6 @@ { "name": "@perspective-ai/sdk-react", - "version": "1.11.0", + "version": "1.12.0", "description": "React components for Perspective AI embed SDK", "type": "module", "sideEffects": false, diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index 6f38344..116082d 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -1,5 +1,25 @@ # @perspective-ai/sdk +## 1.12.0 + +### Minor Changes + +- d2f7626: Slider, popup, and float now hand their close (X) button to the interview app. + + The app renders its own X (it emits `perspective:close` when clicked), placed + within its own header so it no longer overlaps the app's top-right UI such as + the participant avatar or the `…` menu. The SDK now only draws a temporary X + over the loading skeleton and removes it the moment the interview becomes + visible, so there's never a double or overlapping X. + - The `perspective:init` handshake now sends `renderCloseButton` (`true` unless + `disableClose` is set) for slider, popup, and float. `widget`/`fullpage` have + no X and don't send it. + - The legacy `hasCloseButton` init flag is retired — the SDK no longer emits it. + It remains on the `InitMessage` type as `@deprecated` because the app may still + receive it from older deployed SDK clients. + - Backdrop-click and Escape close handlers are unchanged; float's launcher bubble + still closes the window. `disableClose` continues to suppress the X entirely. + ## 1.11.0 ### Minor Changes diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 29436e3..96e7782 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@perspective-ai/sdk", - "version": "1.11.0", + "version": "1.12.0", "description": "Embed SDK for Perspective AI research interviews", "type": "module", "sideEffects": [