reflet-sdk 0.7.5 → 0.7.7

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +16 -8
  3. package/dist/desktop.d.ts.map +1 -1
  4. package/dist/desktop.js +3 -2
  5. package/dist/desktop.js.map +1 -1
  6. package/dist/devtools-layer-CYIoe3Vo.js +372 -0
  7. package/dist/devtools-layer-CYIoe3Vo.js.map +1 -0
  8. package/dist/devtools-next.js +1 -1
  9. package/dist/devtools-vite.js +3 -3
  10. package/dist/feedback.js +6 -6
  11. package/dist/feedback.js.map +1 -1
  12. package/dist/{handler-ndF3gZBx.js → handler-1XhfZvZ0.js} +3 -3
  13. package/dist/{handler-ndF3gZBx.js.map → handler-1XhfZvZ0.js.map} +1 -1
  14. package/dist/{protocol-cJVVwnPe.js → protocol-BnurX0CF.js} +2 -1
  15. package/dist/protocol-BnurX0CF.js.map +1 -0
  16. package/dist/{reflet-proxy-BW6q9xds.js → reflet-proxy-DVE6ov2f.js} +14 -7
  17. package/dist/reflet-proxy-DVE6ov2f.js.map +1 -0
  18. package/dist/{submit-DJIKxRUp.js → submit-r3_M1ITo.js} +71 -9
  19. package/dist/submit-r3_M1ITo.js.map +1 -0
  20. package/dist/{team-layer-_It1_oSo.js → team-layer-5-uPYTjV.js} +162 -33
  21. package/dist/team-layer-5-uPYTjV.js.map +1 -0
  22. package/dist/{devtools-styles-TWR5Ps34.js → use-sheet-tab-CacYFVjI.js} +4241 -685
  23. package/dist/use-sheet-tab-CacYFVjI.js.map +1 -0
  24. package/package.json +1 -1
  25. package/dist/devtools-layer-o1O55wu1.js +0 -3818
  26. package/dist/devtools-layer-o1O55wu1.js.map +0 -1
  27. package/dist/devtools-styles-TWR5Ps34.js.map +0 -1
  28. package/dist/protocol-cJVVwnPe.js.map +0 -1
  29. package/dist/reflet-proxy-BW6q9xds.js.map +0 -1
  30. package/dist/selection-outline-NzAAAZXR.js +0 -51
  31. package/dist/selection-outline-NzAAAZXR.js.map +0 -1
  32. package/dist/submit-DJIKxRUp.js.map +0 -1
  33. package/dist/team-layer-_It1_oSo.js.map +0 -1
package/dist/feedback.js CHANGED
@@ -1,9 +1,8 @@
1
1
  "use client";
2
2
  import { n as Reflet } from "./client-oFFfRxAM.js";
3
- import { A as SquareIcon, C as ChevronDownIcon, D as MoreIcon, E as HighlightIcon, F as UndoIcon, H as MAX_SELECTION_COMMENT_LENGTH, I as isDegenerate, J as maskSecrets, L as normalizeRect, M as TargetIcon, N as TextIcon, O as PencilIcon, P as TrashIcon, R as DEFAULT_WIDGET_LABELS, S as CheckIcon, T as GripIcon, U as buildElementSelection, V as collectPageContext, _ as matchesHotkey, b as CameraIcon, c as useFloatingPosition, d as drawAnnotations, et as WIDGET_MARKER, f as listenOnPageAndWidget, g as isSubmitEnter, h as stopClicksAtHost, i as submitWidgetFeedback, it as releaseCapture, k as SpotlightIcon, n as createFeedbackTransport, o as ElementPicker, p as listenToKeydown, rt as capturedViewportSize, t as attachPreparedScreenshots, tt as captureViewport, v as ArrowIcon, w as CloseIcon, x as ChatIcon, y as BlurIcon, z as SDK_VERSION } from "./submit-DJIKxRUp.js";
3
+ import { A as PencilIcon, B as DEFAULT_WIDGET_LABELS, C as CheckIcon, D as GripIcon, F as TextIcon, G as buildElementSelection, I as TrashIcon, L as UndoIcon, M as SquareIcon, O as HighlightIcon, P as TargetIcon, R as isDegenerate, S as ChatIcon, T as CloseIcon, U as collectPageContext, V as SDK_VERSION, W as MAX_SELECTION_COMMENT_LENGTH, X as maskSecrets, _ as isSubmitEnter, at as capturedViewportSize, b as BlurIcon, c as useFloatingPosition, d as SelectionOutline, f as drawAnnotations, g as stopClicksAtHost, i as submitWidgetFeedback, j as SpotlightIcon, k as MoreIcon, m as listenToKeydown, n as createFeedbackTransport, nt as WIDGET_MARKER, o as ElementPicker, ot as releaseCapture, p as listenOnPageAndWidget, rt as captureViewport, t as attachPreparedScreenshots, v as matchesHotkey, w as ChevronDownIcon, x as CameraIcon, y as ArrowIcon, z as normalizeRect } from "./submit-r3_M1ITo.js";
4
4
  import { t as RefletContext } from "./react-context-Kazo_JCz.js";
5
5
  import { n as hasTeamActivation } from "./team-activation-Cv5U7OF1.js";
6
- import { t as SelectionOutline } from "./selection-outline-NzAAAZXR.js";
7
6
  import { t as REFLET_Z_INDEX } from "./z-index-CwokqVq_.js";
8
7
  import { Suspense, lazy, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
9
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1591,7 +1590,8 @@ const PICKER_STYLES = `
1591
1590
  .picker-note textarea:focus { outline: none; }
1592
1591
  .picker-note textarea::placeholder { color: var(--rf-text-muted); }
1593
1592
  .picker-note-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
1594
- .picker-note .picker-cancel { padding: 0 10px; }
1593
+ .picker-note .picker-cancel { gap: 6px; padding: 0 10px; }
1594
+ .picker-note .picker-icon-only { justify-content: center; aspect-ratio: 1; padding: 0; }
1595
1595
  .picker-note .submit { margin-left: auto; }
1596
1596
  @media (pointer: coarse) {
1597
1597
  .picker-hint { padding: 6px 8px 6px 14px; }
@@ -2303,7 +2303,7 @@ function useWidgetState(props) {
2303
2303
  setStep("compose");
2304
2304
  return submission.submit({
2305
2305
  context: {
2306
- ...activeScreenshot?.context ?? collectPageContext({ sdkVersion: "0.7.5" }),
2306
+ ...activeScreenshot?.context ?? collectPageContext({ sdkVersion: "0.7.7" }),
2307
2307
  consoleEvents: consoleRef.current?.events(),
2308
2308
  metadata: props.metadata,
2309
2309
  selections
@@ -2369,8 +2369,8 @@ function useWidgetState(props) {
2369
2369
  }
2370
2370
  //#endregion
2371
2371
  //#region src/feedback/widget.tsx
2372
- const DevtoolsLayer = process.env.NODE_ENV === "development" ? lazy(() => import("./devtools-layer-o1O55wu1.js").then((module) => ({ default: module.DevtoolsLayer }))) : null;
2373
- const TeamLayer = lazy(() => import("./team-layer-_It1_oSo.js").then((module) => ({ default: module.TeamLayer })));
2372
+ const DevtoolsLayer = process.env.NODE_ENV === "development" ? lazy(() => import("./devtools-layer-CYIoe3Vo.js").then((module) => ({ default: module.DevtoolsLayer }))) : null;
2373
+ const TeamLayer = lazy(() => import("./team-layer-5-uPYTjV.js").then((module) => ({ default: module.TeamLayer })));
2374
2374
  const DEFAULT_APP_URL = "https://www.reflet.app";
2375
2375
  const ignoreChanges = () => () => void 0;
2376
2376
  /** Activation reads the URL and storage, which only exist in the browser: the server renders without team tools. */