reflet-sdk 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,18 @@ All notable changes to `reflet-sdk` will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [Unreleased]
9
+
10
+ ## [0.5.2] - 2026-09-29
11
+
12
+ ### Added
13
+
14
+ - Connect the devtools Board tab to Reflet without configuring a secret key. Approve access in Reflet and revoke it from the Board tab or Account → Devtools. Credentials stay on the dev server, isolated by project and backend; notes remain internal and are attributed to the connected member.
15
+
16
+ ### Fixed
17
+
18
+ - Using the widget no longer closes the app's open menus, popovers and pickers. Pointing at an element or attaching a screenshot keeps them open, so their content can be reported, and typing in the widget no longer loses focus to a menu's focus trap. The widget also stays clickable while a modal menu disables pointer events on the page.
19
+
8
20
  ## [0.5.1] - 2026-09-28
9
21
 
10
22
  ### Fixed
package/README.md CHANGED
@@ -207,7 +207,15 @@ turn it off.
207
207
  the reporter's source location, and a code search for the element's text.
208
208
 
209
209
  Code view and the board go through one dev-only route that reads files from
210
- your repository and holds the secret key server-side.
210
+ your repository and holds the board credential server-side.
211
+
212
+ To reach the board, click **Connect to Reflet** in the Board tab: sign in on
213
+ reflet.app, approve the organization that owns the widget's key, and the dev
214
+ server keeps a revocable token in `~/.reflet/devtools/`,
215
+ outside the repository. That token acts as you, only reaches the devtools
216
+ endpoints, and expires after 30 days unused; revoke it with Disconnect or from
217
+ Account → Devtools on reflet.app. Connect works on `localhost`, `*.localhost`
218
+ and `*.test`; elsewhere, set `REFLET_SECRET_KEY`.
211
219
 
212
220
  Next.js App Router, `app/api/reflet-devtools/[...path]/route.ts`:
213
221
 
@@ -226,9 +234,10 @@ export default defineConfig({ plugins: [react(), refletDevtools()] });
226
234
 
227
235
  | Env var | Purpose |
228
236
  |---------|---------|
229
- | `REFLET_SECRET_KEY` | Your `fb_sec_…` key, server-only. Needed to send notes and read the board. |
237
+ | `REFLET_SECRET_KEY` | Your `fb_sec_…` key, server-only. Optional: replaces Connect, and wins over it when set. |
230
238
  | `REFLET_EDITOR` | `vscode` (default), `cursor`, `windsurf`, `zed` or `webstorm` for "Open in editor". |
231
239
  | `REFLET_API_URL` | API override, for self-hosted or local Reflet backends. |
240
+ | `REFLET_APP_URL` | Web app origin Connect signs in on. Defaults to `https://www.reflet.app`. Same as the `appUrl` option. |
232
241
  | `REFLET_DEVTOOLS_HOSTS` | Comma-separated dev hostnames besides localhost, e.g. `app.test`. Same as the `allowedHosts` option. |
233
242
 
234
243
  The route only answers on `localhost`, `*.localhost`, loopback IPs and the