reflet-sdk 0.7.2 → 0.7.4

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.
@@ -1,5 +1,5 @@
1
1
  import { r as DEVTOOLS_ROUTE_BASE } from "./protocol-cJVVwnPe.js";
2
- import { n as isLoopbackAddress, r as errorResponse, t as createDevtoolsHandler } from "./handler-B4Z6jkYX.js";
2
+ import { n as isLoopbackAddress, r as errorResponse, t as createDevtoolsHandler } from "./handler-B3_PQB1q.js";
3
3
  import { loadEnv } from "vite";
4
4
  //#region src/devtools/server/vite.ts
5
5
  const MAX_BODY_BYTES = 1048576;
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-Dx892JVJ.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-CG4LXioK.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";
@@ -1687,8 +1687,8 @@ const WIDGET_STYLES = `
1687
1687
  .root[data-editing="true"] { visibility: hidden; pointer-events: none; }
1688
1688
  button, select, input, textarea { font: inherit; color: inherit; }
1689
1689
  button { margin: 0; cursor: pointer; border: 0; background: none; transition: scale 120ms var(--rf-ease); }
1690
- button:disabled { cursor: not-allowed; opacity: .4; }
1691
- button:active:not(:disabled) { scale: .97; }
1690
+ button:disabled, button[aria-disabled="true"] { cursor: not-allowed; opacity: .4; }
1691
+ button:active:not(:disabled, [aria-disabled="true"]) { scale: .97; }
1692
1692
  svg { flex-shrink: 0; }
1693
1693
  :focus-visible { outline: 2px solid var(--rf-accent); outline-offset: 3px; }
1694
1694
  .icon-btn, .tool {
@@ -1764,7 +1764,7 @@ ${ANNOTATOR_STYLES}
1764
1764
  ${PICKER_STYLES}
1765
1765
  @media (prefers-reduced-motion: reduce) {
1766
1766
  *, *::before, *::after { animation: none !important; transition: none !important; }
1767
- button:active:not(:disabled) { scale: 1; }
1767
+ button:active:not(:disabled, [aria-disabled="true"]) { scale: 1; }
1768
1768
  }
1769
1769
  `;
1770
1770
  //#endregion
@@ -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.2" }),
2306
+ ...activeScreenshot?.context ?? collectPageContext({ sdkVersion: "0.7.4" }),
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-DhQE3leI.js").then((module) => ({ default: module.DevtoolsLayer }))) : null;
2373
- const TeamLayer = lazy(() => import("./team-layer-BS2JZfVl.js").then((module) => ({ default: module.TeamLayer })));
2372
+ const DevtoolsLayer = process.env.NODE_ENV === "development" ? lazy(() => import("./devtools-layer-CcTmlikp.js").then((module) => ({ default: module.DevtoolsLayer }))) : null;
2373
+ const TeamLayer = lazy(() => import("./team-layer-zLj_QPQX.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. */