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/dist/feedback.js CHANGED
@@ -1,6 +1,6 @@
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 SpotlightIcon, B as SDK_VERSION, C as ChevronDownIcon, D as HighlightIcon, E as GripIcon, F as TrashIcon, H as collectPageContext, I as UndoIcon, L as isDegenerate, N as TargetIcon, O as MoreIcon, P as TextIcon, R as normalizeRect, S as CheckIcon, U as MAX_SELECTION_COMMENT_LENGTH, W as buildElementSelection, Y as maskSecrets, _ as matchesHotkey, at as releaseCapture, b as CameraIcon, c as useFloatingPosition, d as drawAnnotations, f as listenOnPageAndWidget, g as isSubmitEnter, h as stopClicksAtHost, i as submitWidgetFeedback, it as capturedViewportSize, j as SquareIcon, k as PencilIcon, n as createFeedbackTransport, nt as captureViewport, o as ElementPicker, p as listenToKeydown, t as attachPreparedScreenshots, tt as WIDGET_MARKER, v as ArrowIcon, w as CloseIcon, x as ChatIcon, y as BlurIcon, z as DEFAULT_WIDGET_LABELS } from "./submit-DsJwTy3X.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
6
  import { t as SelectionOutline } from "./selection-outline-NzAAAZXR.js";
@@ -1591,7 +1591,8 @@ const PICKER_STYLES = `
1591
1591
  .picker-note textarea:focus { outline: none; }
1592
1592
  .picker-note textarea::placeholder { color: var(--rf-text-muted); }
1593
1593
  .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; }
1594
+ .picker-note .picker-cancel { gap: 6px; padding: 0 10px; }
1595
+ .picker-note .picker-icon-only { justify-content: center; aspect-ratio: 1; padding: 0; }
1595
1596
  .picker-note .submit { margin-left: auto; }
1596
1597
  @media (pointer: coarse) {
1597
1598
  .picker-hint { padding: 6px 8px 6px 14px; }
@@ -2303,7 +2304,7 @@ function useWidgetState(props) {
2303
2304
  setStep("compose");
2304
2305
  return submission.submit({
2305
2306
  context: {
2306
- ...activeScreenshot?.context ?? collectPageContext({ sdkVersion: "0.7.5" }),
2307
+ ...activeScreenshot?.context ?? collectPageContext({ sdkVersion: "0.7.6" }),
2307
2308
  consoleEvents: consoleRef.current?.events(),
2308
2309
  metadata: props.metadata,
2309
2310
  selections
@@ -2369,8 +2370,8 @@ function useWidgetState(props) {
2369
2370
  }
2370
2371
  //#endregion
2371
2372
  //#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 })));
2373
+ const DevtoolsLayer = process.env.NODE_ENV === "development" ? lazy(() => import("./devtools-layer-xN47FKpW.js").then((module) => ({ default: module.DevtoolsLayer }))) : null;
2374
+ const TeamLayer = lazy(() => import("./team-layer-VlQtvR5O.js").then((module) => ({ default: module.TeamLayer })));
2374
2375
  const DEFAULT_APP_URL = "https://www.reflet.app";
2375
2376
  const ignoreChanges = () => () => void 0;
2376
2377
  /** Activation reads the URL and storage, which only exist in the browser: the server renders without team tools. */