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.
- package/CHANGELOG.md +21 -0
- package/README.md +16 -8
- package/dist/desktop.d.ts.map +1 -1
- package/dist/desktop.js +3 -2
- package/dist/desktop.js.map +1 -1
- package/dist/devtools-layer-CYIoe3Vo.js +372 -0
- package/dist/devtools-layer-CYIoe3Vo.js.map +1 -0
- package/dist/devtools-next.js +1 -1
- package/dist/devtools-vite.js +3 -3
- package/dist/feedback.js +6 -6
- package/dist/feedback.js.map +1 -1
- package/dist/{handler-ndF3gZBx.js → handler-1XhfZvZ0.js} +3 -3
- package/dist/{handler-ndF3gZBx.js.map → handler-1XhfZvZ0.js.map} +1 -1
- package/dist/{protocol-cJVVwnPe.js → protocol-BnurX0CF.js} +2 -1
- package/dist/protocol-BnurX0CF.js.map +1 -0
- package/dist/{reflet-proxy-BW6q9xds.js → reflet-proxy-DVE6ov2f.js} +14 -7
- package/dist/reflet-proxy-DVE6ov2f.js.map +1 -0
- package/dist/{submit-DJIKxRUp.js → submit-r3_M1ITo.js} +71 -9
- package/dist/submit-r3_M1ITo.js.map +1 -0
- package/dist/{team-layer-_It1_oSo.js → team-layer-5-uPYTjV.js} +162 -33
- package/dist/team-layer-5-uPYTjV.js.map +1 -0
- package/dist/{devtools-styles-TWR5Ps34.js → use-sheet-tab-CacYFVjI.js} +4241 -685
- package/dist/use-sheet-tab-CacYFVjI.js.map +1 -0
- package/package.json +1 -1
- package/dist/devtools-layer-o1O55wu1.js +0 -3818
- package/dist/devtools-layer-o1O55wu1.js.map +0 -1
- package/dist/devtools-styles-TWR5Ps34.js.map +0 -1
- package/dist/protocol-cJVVwnPe.js.map +0 -1
- package/dist/reflet-proxy-BW6q9xds.js.map +0 -1
- package/dist/selection-outline-NzAAAZXR.js +0 -51
- package/dist/selection-outline-NzAAAZXR.js.map +0 -1
- package/dist/submit-DJIKxRUp.js.map +0 -1
- 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
|
|
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.
|
|
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-
|
|
2373
|
-
const TeamLayer = lazy(() => import("./team-layer-
|
|
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. */
|