Skip to content

chore: version packages#60

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main
Open

chore: version packages#60
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@perspective-ai/sdk@1.11.0

Minor Changes

  • 7a592f7: Widget: polished default appearance with a non-breaking, fully overridable
    frame.

    A bare inline widget (<div data-perspective-widget> / <Widget /> with no
    container sizing) now renders as a centered, framed card — border, rounded
    corners, soft shadow, a comfortable height, and a sensible max-width — so it
    looks finished with zero CSS. Previously it was an unstyled, full-bleed iframe
    that looked awkward on wide pages.

    Backward compatible: when the host has sized the container (a height, flex,
    height: 100%, etc.), the widget keeps filling it edge to edge with no framing,
    exactly as before.

    New frame config object (also a <Widget frame={…} /> prop) controls the
    inline widget's layout and appearance:

    • layout: "card" | "fill" — force a mode regardless of detection ("fill"
      restores the full-width behaviour; omit to auto-detect).
    • maxWidth, minHeight, radius, border, shadow, background — each
      maps to a --perspective-widget-* CSS custom property the card reads, so the
      same knob is reachable from the frame object, a stylesheet, or inline
      style. Because the SDK only reads these vars, an override wins at any
      specificity and isn't clobbered by global resets.

    Script-tag users get the same control declaratively via a packed
    data-perspective-frame attribute, mirroring data-perspective-brand:
    data-perspective-frame="layout=fill,radius=4px,shadow=none,bg=#fff".

@perspective-ai/sdk-react@1.11.0

Minor Changes

  • 7a592f7: Widget: polished default appearance with a non-breaking, fully overridable
    frame.

    A bare inline widget (<div data-perspective-widget> / <Widget /> with no
    container sizing) now renders as a centered, framed card — border, rounded
    corners, soft shadow, a comfortable height, and a sensible max-width — so it
    looks finished with zero CSS. Previously it was an unstyled, full-bleed iframe
    that looked awkward on wide pages.

    Backward compatible: when the host has sized the container (a height, flex,
    height: 100%, etc.), the widget keeps filling it edge to edge with no framing,
    exactly as before.

    New frame config object (also a <Widget frame={…} /> prop) controls the
    inline widget's layout and appearance:

    • layout: "card" | "fill" — force a mode regardless of detection ("fill"
      restores the full-width behaviour; omit to auto-detect).
    • maxWidth, minHeight, radius, border, shadow, background — each
      maps to a --perspective-widget-* CSS custom property the card reads, so the
      same knob is reachable from the frame object, a stylesheet, or inline
      style. Because the SDK only reads these vars, an override wins at any
      specificity and isn't clobbered by global resets.

    Script-tag users get the same control declaratively via a packed
    data-perspective-frame attribute, mirroring data-perspective-brand:
    data-perspective-frame="layout=fill,radius=4px,shadow=none,bg=#fff".

Patch Changes

  • Updated dependencies [7a592f7]
    • @perspective-ai/sdk@1.11.0

@github-actions github-actions Bot force-pushed the changeset-release/main branch from 6a9d777 to fbf1b3c Compare June 26, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants