reflet-sdk 0.6.1 → 0.6.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/dist/feedback.js CHANGED
@@ -1,6 +1,6 @@
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-C_apeUEq.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
4
  import { n as RefletContext, t as REFLET_Z_INDEX } from "./z-index-BL0SGZEP.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";
@@ -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.1" }),
1643
+ ...activeScreenshot?.context ?? collectPageContext({ sdkVersion: "0.6.2" }),
1644
1644
  consoleEvents: consoleRef.current?.events(),
1645
1645
  metadata: props.metadata,
1646
1646
  selections
@@ -2362,7 +2362,7 @@ function ShadowPortal({ children, offset, primaryColor, theme }) {
2362
2362
  }
2363
2363
  //#endregion
2364
2364
  //#region src/feedback/widget.tsx
2365
- const DevtoolsLayer = process.env.NODE_ENV === "development" ? lazy(() => import("./devtools-layer-Cry67xS8.js").then((module) => ({ default: module.DevtoolsLayer }))) : null;
2365
+ const DevtoolsLayer = process.env.NODE_ENV === "development" ? lazy(() => import("./devtools-layer-DOECMj0S.js").then((module) => ({ default: module.DevtoolsLayer }))) : null;
2366
2366
  function RefletFeedback(props) {
2367
2367
  const state = useWidgetState(props);
2368
2368
  const launcher = useWidgetLauncher(state);
@@ -809,7 +809,7 @@ function collectPageContext(options) {
809
809
  }
810
810
  //#endregion
811
811
  //#region src/feedback/types.ts
812
- const SDK_VERSION = "0.6.1";
812
+ const SDK_VERSION = "0.6.2";
813
813
  const DEFAULT_WIDGET_LABELS = {
814
814
  annotateHint: "Draw on the screenshot to point at the problem.",
815
815
  attachElement: "Attach this element",
@@ -1920,4 +1920,4 @@ function ElementPicker({ inspect, labels, onCancel, onPick }) {
1920
1920
  //#endregion
1921
1921
  export { TargetIcon as A, buildElementSelection as B, GripIcon as C, SpotlightIcon as D, PencilIcon as E, normalizeRect as F, WIDGET_MARKER as G, getFiberFromNode as H, DEFAULT_WIDGET_LABELS as I, releaseCapture as J, captureViewport as K, SDK_VERSION as L, TrashIcon as M, UndoIcon as N, SquareIcon as O, isDegenerate as P, collectPageContext as R, CloseIcon as S, MoreIcon as T, resolveComponentStack as U, describeElement as V, shortenSourcePath as W, BlurIcon as _, deriveTitle as a, CheckIcon as b, useFloatingPosition as c, SelectionOutline as d, drawAnnotations as f, ArrowIcon as g, stopClicksAtHost as h, createFeedbackTransport as i, TextIcon as j, Svg as k, onViewportChange as l, listenToKeydown as m, isWidgetOwned as n, submitWidgetFeedback as o, listenOnPageAndWidget as p, capturedFromCanvas as q, attachPreparedScreenshots as r, uploadImageBlob as s, ElementPicker as t, visibleViewport as u, CameraIcon as v, HighlightIcon as w, ChevronDownIcon as x, ChatIcon as y, MAX_SELECTION_COMMENT_LENGTH as z };
1922
1922
 
1923
- //# sourceMappingURL=picker-C_apeUEq.js.map
1923
+ //# sourceMappingURL=picker-DCoAFX5y.js.map