mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-10-12 16:09:33 +00:00
3.1 KiB
3.1 KiB
@gitbook/embed
0.6.0
Minor Changes
f35be52: AdddefaultTabanddefaultPageoptions to the Docs Embed to choose where it opens.defaultTabopens the embed on the assistant, search or docs tab.defaultPagesets the page the docs tab opens on in place of the site's home page, and the embed opens on that page unlessdefaultTabsays otherwise. Both work with the standalone script'sconfigure,frame.configureand<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=lighton its URL, and callinginittwice now updates the options instead of throwing.bf674a4: Add an optionalcontextproperty (string, up to 512 characters) to theconfirmationof custom AI tools, shown above the confirmation dialog to help the user understand what they are approving or rejecting. Theconfirmationcan 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
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: SupportassistantNameproperty 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 usage0aa34cc: 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
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