reflet-sdk 0.7.5 → 0.7.6

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,14 @@ 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
+ ## [0.7.6] - 2026-10-17
9
+
10
+ ### Changed
11
+
12
+ - Pick: the note card's actions are smaller. Pick another and Copy are icon buttons (their names show on hover), and View code is now Code with an icon.
13
+ - Devtools: an empty Board says "This page" or "Whole board" above its message instead of "0 on this page" or "0 on the board".
14
+ - Devtools: the panel has no divider lines under its tabs or above the account footer.
15
+
8
16
  ## [0.7.5] - 2026-10-17
9
17
 
10
18
  ### Added
package/README.md CHANGED
@@ -192,12 +192,12 @@ builds drop it at bundle time — the devtools chunk is never shipped to your
192
192
  users. Pass `devtools={false}` to turn it off.
193
193
 
194
194
  - **Pick** — click an element to write a note on it. The note card has a
195
- "View code" button, and Shift+click (or Shift+Enter) skips the note and opens
195
+ Code button, and Shift+click (or Shift+Enter) skips the note and opens
196
196
  the source file with the JSX element highlighted, ready to jump to in your
197
197
  editor. Locations come from React's debug stacks resolved through the dev
198
198
  server's source maps, Server Components included. Press ⌘C (Ctrl+C) on the
199
- aimed element, or Copy on the note card, to put the element and its source on
200
- the clipboard for a coding agent, without saving a note.
199
+ aimed element, or the note card's copy button, to put the element and its
200
+ source on the clipboard for a coding agent, without saving a note.
201
201
  - **Notes** — a note appears the moment you press Enter, as a numbered pin on
202
202
  its element, Figma-style; click the pin to read, edit or delete it, and find
203
203
  the same number on its card in the panel. Its source location and a
@@ -1,6 +1,6 @@
1
- import { $ as shortenSourcePath, G as describeElement, M as TargetIcon, Q as resolveComponentStack, R as DEFAULT_WIDGET_LABELS, U as buildElementSelection, V as collectPageContext, X as getFiberFromNode, a as uploadBlob, f as listenOnPageAndWidget, g as isSubmitEnter, it as releaseCapture, nt as capturedFromCanvas, o as ElementPicker, p as listenToKeydown, r as deriveTitle, rt as capturedViewportSize, s as isWidgetOwned, tt as captureViewport, z as SDK_VERSION } from "./submit-DJIKxRUp.js";
1
+ import { $ as resolveComponentStack, B as SDK_VERSION, H as collectPageContext, K as describeElement, N as TargetIcon, W as buildElementSelection, Z as getFiberFromNode, a as uploadBlob, at as releaseCapture, et as shortenSourcePath, f as listenOnPageAndWidget, g as isSubmitEnter, it as capturedViewportSize, nt as captureViewport, o as ElementPicker, p as listenToKeydown, r as deriveTitle, rt as capturedFromCanvas, s as isWidgetOwned, z as DEFAULT_WIDGET_LABELS } from "./submit-DsJwTy3X.js";
2
2
  import { t as SelectionOutline } from "./selection-outline-NzAAAZXR.js";
3
- import { A as probeDevRoute, B as reportFailure, D as disconnectBoard, E as callReflet, F as openDatabase, I as settle, M as startBoardConnect, N as committed, O as fetchBoardFeedback, P as describeStorageFailure, R as Notices, _ as RecordingLayer, a as SHEET_TABS, c as AccountNote, d as sessionSheetPlace, f as useSessionNavigation, g as copyToClipboard, h as ViewOptionsIcon, i as DevtoolsBarButtons, j as searchCode, k as fetchSourceFile, l as SESSIONS_STYLES, m as RefreshIcon, n as DevtoolsSheet, p as Menu, r as DevtoolsBar, s as AccountFooter, t as DEVTOOLS_STYLES, u as SessionsPanel, v as countLabel, w as devtoolsTransport, x as useWorkspaceLoader, y as SessionWorkspaceProvider, z as announce } from "./devtools-styles-TWR5Ps34.js";
3
+ import { A as probeDevRoute, B as reportFailure, D as disconnectBoard, E as callReflet, F as openDatabase, I as settle, M as startBoardConnect, N as committed, O as fetchBoardFeedback, P as describeStorageFailure, R as Notices, _ as RecordingLayer, a as SHEET_TABS, c as AccountNote, d as sessionSheetPlace, f as useSessionNavigation, g as copyToClipboard, h as ViewOptionsIcon, i as DevtoolsBarButtons, j as searchCode, k as fetchSourceFile, l as SESSIONS_STYLES, m as RefreshIcon, n as DevtoolsSheet, p as Menu, r as DevtoolsBar, s as AccountFooter, t as DEVTOOLS_STYLES, u as SessionsPanel, v as countLabel, w as devtoolsTransport, x as useWorkspaceLoader, y as SessionWorkspaceProvider, z as announce } from "./devtools-styles-DQpiubGB.js";
4
4
  import * as G$1 from "react";
5
5
  import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -448,7 +448,7 @@ function InboxToolbar({ onRefresh, onSelectScope, scope, state }) {
448
448
  children: [
449
449
  /* @__PURE__ */ jsx("span", {
450
450
  className: "dt-status",
451
- children: state.kind === "ready" ? `${state.page.total} ${SCOPE_PLACES[scope]}` : SCOPE_LABELS[scope]
451
+ children: state.kind === "ready" && state.page.total > 0 ? `${state.page.total} ${SCOPE_PLACES[scope]}` : SCOPE_LABELS[scope]
452
452
  }),
453
453
  /* @__PURE__ */ jsx(Menu, {
454
454
  items: INBOX_SCOPES.map((option) => ({
@@ -3719,7 +3719,7 @@ function DevtoolsLayer({ isWidgetOpen, position, publicKey }) {
3719
3719
  return element !== null;
3720
3720
  }, []);
3721
3721
  const inspect = useMemo(() => ({
3722
- label: "View code",
3722
+ label: "Code",
3723
3723
  onInspect: (element) => {
3724
3724
  setIsPicking(false);
3725
3725
  inspectElement(element);
@@ -3815,4 +3815,4 @@ function DevtoolsLayer({ isWidgetOpen, position, publicKey }) {
3815
3815
  //#endregion
3816
3816
  export { DevtoolsLayer };
3817
3817
 
3818
- //# sourceMappingURL=devtools-layer-o1O55wu1.js.map
3818
+ //# sourceMappingURL=devtools-layer-xN47FKpW.js.map