reflet-sdk 0.6.2 → 0.6.3

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,7 +1,7 @@
1
1
  "use client";
2
2
  import { n as Reflet } from "./client-DAdWdIFY.js";
3
- import { A as TargetIcon, B as buildElementSelection, C as GripIcon, D as SpotlightIcon, E as PencilIcon, F as normalizeRect, G as WIDGET_MARKER, I as DEFAULT_WIDGET_LABELS, J as releaseCapture, K as captureViewport, L as SDK_VERSION, M as TrashIcon, N as UndoIcon, O as SquareIcon, P as isDegenerate, R as collectPageContext, S as CloseIcon, T as MoreIcon, _ as BlurIcon, b as CheckIcon, c as useFloatingPosition, d as SelectionOutline, f as drawAnnotations, g as ArrowIcon, h as stopClicksAtHost, i as createFeedbackTransport, j as TextIcon, m as listenToKeydown, o as submitWidgetFeedback, p as listenOnPageAndWidget, r as attachPreparedScreenshots, t as ElementPicker, v as CameraIcon, w as HighlightIcon, x as ChevronDownIcon, y as ChatIcon, z as MAX_SELECTION_COMMENT_LENGTH } from "./picker-DCoAFX5y.js";
4
- import { n as RefletContext, t as REFLET_Z_INDEX } from "./z-index-BL0SGZEP.js";
3
+ import { A as TargetIcon, B as buildElementSelection, C as GripIcon, D as SpotlightIcon, E as PencilIcon, F as normalizeRect, G as WIDGET_MARKER, I as DEFAULT_WIDGET_LABELS, J as releaseCapture, K as captureViewport, L as SDK_VERSION, M as TrashIcon, N as UndoIcon, O as SquareIcon, P as isDegenerate, R as collectPageContext, S as CloseIcon, T as MoreIcon, _ as BlurIcon, b as CheckIcon, c as useFloatingPosition, d as SelectionOutline, f as drawAnnotations, g as ArrowIcon, h as stopClicksAtHost, i as createFeedbackTransport, j as TextIcon, m as listenToKeydown, o as submitWidgetFeedback, p as listenOnPageAndWidget, r as attachPreparedScreenshots, t as ElementPicker, v as CameraIcon, w as HighlightIcon, x as ChevronDownIcon, y as ChatIcon, z as MAX_SELECTION_COMMENT_LENGTH } from "./picker-Rh-hsxyX.js";
4
+ import { n as RefletContext, t as REFLET_Z_INDEX } from "./z-index-CIb4-3Fy.js";
5
5
  import { Suspense, lazy, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  import { Slider } from "@base-ui/react/slider";
@@ -1640,7 +1640,7 @@ function useWidgetState(props) {
1640
1640
  setStep("compose");
1641
1641
  return submission.submit({
1642
1642
  context: {
1643
- ...activeScreenshot?.context ?? collectPageContext({ sdkVersion: "0.6.2" }),
1643
+ ...activeScreenshot?.context ?? collectPageContext({ sdkVersion: "0.6.3" }),
1644
1644
  consoleEvents: consoleRef.current?.events(),
1645
1645
  metadata: props.metadata,
1646
1646
  selections
@@ -2009,6 +2009,8 @@ summary::-webkit-details-marker { display: none; }
2009
2009
  //#endregion
2010
2010
  //#region src/feedback/ui/floating/picker-styles.ts
2011
2011
  const PICKER_STYLES = `
2012
+ .picker { position: fixed; inset: 0; z-index: ${REFLET_Z_INDEX.elementPicker}; pointer-events: none; }
2013
+ .picker-hint, .picker-note { pointer-events: auto; }
2012
2014
  .picker-box {
2013
2015
  position: fixed;
2014
2016
  top: 0;
@@ -2096,17 +2098,15 @@ const PICKER_STYLES = `
2096
2098
  .picker-cancel:hover { background: var(--rf-bg-hover); color: var(--rf-text); }
2097
2099
  .picker-note {
2098
2100
  position: fixed;
2099
- z-index: ${REFLET_Z_INDEX.annotatorOverlay};
2100
2101
  display: flex;
2101
2102
  flex-direction: column;
2102
2103
  gap: 6px;
2103
- width: 300px;
2104
+ width: 320px;
2104
2105
  max-width: calc(100vw - 24px);
2105
2106
  padding: 6px 6px 6px 8px;
2106
2107
  border-radius: 18px;
2107
2108
  animation: rf-in 180ms var(--rf-ease);
2108
2109
  }
2109
- .picker-note:focus-within { outline: 2px solid var(--rf-accent); outline-offset: 2px; }
2110
2110
  .picker-note-target {
2111
2111
  display: flex;
2112
2112
  align-items: center;
@@ -2134,7 +2134,9 @@ const PICKER_STYLES = `
2134
2134
  }
2135
2135
  .picker-note textarea:focus { outline: none; }
2136
2136
  .picker-note textarea::placeholder { color: var(--rf-text-muted); }
2137
- .picker-note-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
2137
+ .picker-note-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
2138
+ .picker-note .picker-cancel { padding: 0 10px; }
2139
+ .picker-note .submit { margin-left: auto; }
2138
2140
  @media (pointer: coarse) {
2139
2141
  .picker-hint { padding: 6px 8px 6px 14px; }
2140
2142
  .picker-hint kbd { display: none; }
@@ -2362,7 +2364,7 @@ function ShadowPortal({ children, offset, primaryColor, theme }) {
2362
2364
  }
2363
2365
  //#endregion
2364
2366
  //#region src/feedback/widget.tsx
2365
- const DevtoolsLayer = process.env.NODE_ENV === "development" ? lazy(() => import("./devtools-layer-DOECMj0S.js").then((module) => ({ default: module.DevtoolsLayer }))) : null;
2367
+ const DevtoolsLayer = process.env.NODE_ENV === "development" ? lazy(() => import("./devtools-layer-DtO89RlJ.js").then((module) => ({ default: module.DevtoolsLayer }))) : null;
2366
2368
  function RefletFeedback(props) {
2367
2369
  const state = useWidgetState(props);
2368
2370
  const launcher = useWidgetLauncher(state);