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/CHANGELOG.md +8 -0
- package/README.md +3 -3
- package/dist/{devtools-layer-o1O55wu1.js → devtools-layer-xN47FKpW.js} +5 -5
- package/dist/devtools-layer-xN47FKpW.js.map +1 -0
- package/dist/{devtools-styles-TWR5Ps34.js → devtools-styles-DQpiubGB.js} +4 -7
- package/dist/devtools-styles-DQpiubGB.js.map +1 -0
- package/dist/feedback.js +6 -5
- package/dist/feedback.js.map +1 -1
- package/dist/{submit-DJIKxRUp.js → submit-DsJwTy3X.js} +25 -9
- package/dist/submit-DsJwTy3X.js.map +1 -0
- package/dist/{team-layer-_It1_oSo.js → team-layer-VlQtvR5O.js} +2 -2
- package/dist/{team-layer-_It1_oSo.js.map → team-layer-VlQtvR5O.js.map} +1 -1
- package/package.json +1 -1
- package/dist/devtools-layer-o1O55wu1.js.map +0 -1
- package/dist/devtools-styles-TWR5Ps34.js.map +0 -1
- package/dist/submit-DJIKxRUp.js.map +0 -1
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
|
|
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.
|
|
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-
|
|
2373
|
-
const TeamLayer = lazy(() => import("./team-layer-
|
|
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. */
|