Files
gitbook/packages/embed/CHANGELOG.md
T
github-actions[bot] e412e5b386 Version Packages
2026-10-09 11:10:02 +00:00

3.1 KiB

@gitbook/embed

0.6.0

Minor Changes

  • f35be52: Add defaultTab and defaultPage options to the Docs Embed to choose where it opens. defaultTab opens the embed on the assistant, search or docs tab. defaultPage sets the page the docs tab opens on in place of the site's home page, and the embed opens on that page unless defaultTab says otherwise. Both work with the standalone script's configure, frame.configure and <GitBookFrame> props.

Patch Changes

  • 94a496c: Make the Docs Embed widget match the page it is embedded in rather than the visitor's OS: a widget on a light page stays light even when the visitor's system is in dark mode, and the widget's own chrome and the docs inside it always render in the same scheme. Sites published with a single theme impose it on the widget too, since they render in it regardless. The standalone script takes ?theme=light on its URL, and calling init twice now updates the options instead of throwing.
  • bf674a4: Add an optional context property (string, up to 512 characters) to the confirmation of custom AI tools, shown above the confirmation dialog to help the user understand what they are approving or rejecting. The confirmation can now also be a function that receives the AI-provided input and returns the confirmation, so the context can be derived dynamically from the arguments the tool is about to run with. Available both to integrations (GitBookIntegrationTool) and to embed consumers (GitBookToolDefinition).

0.5.1

Patch Changes

  • 37a9453: Allow copying in embed
  • Updated dependencies [47c8ccb]
    • @gitbook/icons@0.5.0

0.5.0

Minor Changes

  • 88c38fa: Add Search tab to Docs Embed, refactor search

Patch Changes

  • 8d2a95b: Docs Embed: Better support light/dark mode overrides

0.4.0

Minor Changes

  • b3875a1: Support assistantName property to override Assistant name

0.3.0

Minor Changes

  • 370b731: Docs Embed: Make trademark optional

0.2.2

Patch Changes

  • b4b471f: Fix unexpected error thrown when using the embed in standalone mode

0.2.1

Patch Changes

  • 96e24a1: Fix signed JWT token usage
  • 0aa34cc: Fix Embed options in React
  • Updated dependencies [6f1db32]
    • @gitbook/icons@0.4.3

0.2.0

Minor Changes

  • 1430cee: Improve Docs Embed with separate Assistant and Docs tabs

Patch Changes

  • Updated dependencies [62438f4]
    • @gitbook/icons@0.4.0

0.1.5

Patch Changes

  • 10995e0: Use NPM Trusted publishing for publishing the package.
  • Updated dependencies [10995e0]
    • @gitbook/icons@0.3.4

0.1.4

Patch Changes

  • 6142d6b: Mark as sideEffects, fix all package bundles
  • Updated dependencies [6142d6b]
    • @gitbook/icons@0.3.3

0.1.3

Patch Changes

  • 295f03d: Republish packages
  • Updated dependencies [295f03d]
    • @gitbook/icons@0.3.2

0.1.2

Patch Changes

  • 7508674: Fix bundling of packages

0.1.1

Patch Changes

  • 6f368b5: Fix embed assistant window width on small screens

0.1.0

Minor Changes

  • 81a6bd7: Improve API to control the GitBook embed

Patch Changes

  • 8927e8f: Initial version of the embed SDK.
  • Updated dependencies [25e2b40]
    • @gitbook/icons@0.3.0