Skip to content

Document webframe page and visitor context#1249

Merged
gregberge merged 1 commit into
mainfrom
greg/rnd-12101-allow-webframe-in-integration-block-to-be-aware-of-the-full
Jul 17, 2026
Merged

Document webframe page and visitor context#1249
gregberge merged 1 commit into
mainfrom
greg/rnd-12101-allow-webframe-in-integration-block-to-be-aware-of-the-full

Conversation

@gregberge

Copy link
Copy Markdown
Contributor

What

Document the contextual state GitBook injects into an integration block webframe, alongside the values bound through the data prop:

  • state.page — the current page as { id, path, title }. Always available.
  • state.visitor — the visitor claims, when the integration has the site:visitor:claims scope.

Also restores the site:visitor:claims scope entry in the configuration reference.

Why

RND-12101 — an integration's webframe needs to be aware of the page it is rendered on. Frontend implementation: GitbookIO/gitbook#4411.

Changes

  • contentkit/interactivity.md + guides/interactivity.md: new "Page and visitor context" section.
  • development/contentkit/reference.md: note state.page / state.visitor in the webframe reference.
  • configurations.md: restore the site:visitor:claims scope.

Docs-only; no changeset (docs are not a versioned package in this repo).

🤖 Generated with Claude Code

Document the contextual `state` GitBook injects into an integration block
webframe: `state.page` ({ id, path, title }, always available) and
`state.visitor` (visitor claims, with the site:visitor:claims scope), and
restore the site:visitor:claims scope in the configuration reference.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 426fe89

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jul 17, 2026

Copy link
Copy Markdown

Open in StackBlitz

bun add https://pkg.pr.new/GitbookIO/integrations/@gitbook/api@1249

commit: 426fe89

@gregberge
gregberge merged commit f3842e7 into main Jul 17, 2026
15 of 16 checks passed
@gregberge
gregberge deleted the greg/rnd-12101-allow-webframe-in-integration-block-to-be-aware-of-the-full branch July 17, 2026 08:33
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.

2 participants