Skip to content

refactor(sdk): remove window.__YAVIO__ and meta tag config detection#6

Merged
johannmachemer merged 1 commit intomainfrom
refactor/remove-widget-global-config
Feb 26, 2026
Merged

refactor(sdk): remove window.__YAVIO__ and meta tag config detection#6
johannmachemer merged 1 commit intomainfrom
refactor/remove-widget-global-config

Conversation

@johannmachemer
Copy link
Contributor

Summary

  • Remove window.__YAVIO__ global injection and <meta name="yavio-config"> fallback from the React widget SDK
  • Config resolution now uses only tool result metadata (_meta.yavio) or explicit options passed to useYavio()
  • Clean up related tests and update README documentation
  • Bump @yavio/sdk to 0.1.3

Test plan

  • All 208 SDK tests pass
  • Verify widget initializes correctly with explicit config in a consuming app
  • Verify widget initializes correctly with _meta.yavio metadata

Config resolution for the React widget now uses only tool result
metadata (_meta.yavio) or explicit options passed to useYavio().
The global window.__YAVIO__ injection and <meta name="yavio-config">
fallback are no longer needed since the server proxy was removed.
@johannmachemer johannmachemer merged commit 2810f49 into main Feb 26, 2026
11 checks passed
@johannmachemer johannmachemer deleted the refactor/remove-widget-global-config branch February 26, 2026 21:14
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.

1 participant