reflet-sdk 0.3.4 → 0.3.5

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 CHANGED
@@ -5,6 +5,13 @@ All notable changes to `reflet-sdk` will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.3.5] - 2026-09-17
9
+
10
+ ### Changed
11
+
12
+ - Screenshot capture runs on `@zumer/snapdom` 3; apps that also install snapdom directly need `^3.0.0`
13
+ - Base UI, React and the rest of the toolchain move to their latest releases
14
+
8
15
  ## [0.3.4] - 2026-09-13
9
16
 
10
17
  ### Changed
@@ -120,21 +120,21 @@ interface CaptureOptions {
120
120
  * Returns null instead of throwing — a screenshot is never worth losing the
121
121
  * written feedback.
122
122
  */
123
- declare function captureViewport(options?: CaptureOptions): Promise<CapturedImage | null>;
124
- declare function releaseCapture(image: CapturedImage | null | undefined): void;
123
+ export declare function captureViewport(options?: CaptureOptions): Promise<CapturedImage | null>;
124
+ export declare function releaseCapture(image: CapturedImage | null | undefined): void;
125
125
  //#endregion
126
126
  //#region src/feedback/core/element-selector.d.ts
127
127
  /** Everything an agent needs to find the picked element back in the codebase. */
128
- declare function buildElementSelection(element: Element): ElementSelection;
128
+ export declare function buildElementSelection(element: Element): ElementSelection;
129
129
  //#endregion
130
130
  //#region src/feedback/core/page-context.d.ts
131
131
  /** Everything about the page that a bug report needs and the DOM already knows. */
132
- declare function collectPageContext(options?: {
132
+ export declare function collectPageContext(options?: {
133
133
  sdkVersion?: string;
134
134
  }): FeedbackContext;
135
135
  //#endregion
136
136
  //#region src/feedback/widget.d.ts
137
- declare function RefletFeedback(props: RefletFeedbackProps): import("react").JSX.Element | null;
137
+ export declare function RefletFeedback(props: RefletFeedbackProps): import("react").JSX.Element | null;
138
138
  //#endregion
139
- export { type Annotation, type AnnotationTool, type CapturedImage, type FeedbackWidgetCategory, type FeedbackWidgetLabels, RefletFeedback, type RefletFeedbackProps, buildElementSelection, captureViewport, collectPageContext, releaseCapture };
139
+ export type { Annotation, AnnotationTool, CapturedImage, FeedbackWidgetCategory, FeedbackWidgetLabels, RefletFeedbackProps };
140
140
  //# sourceMappingURL=feedback.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"feedback.d.ts","names":[],"sources":["../src/feedback/types.ts","../src/feedback/core/capture.ts","../src/feedback/core/element-selector.ts","../src/feedback/core/page-context.ts","../src/feedback/widget.tsx"],"mappings":";;cAKM;KAEM,iCACF;cAEJ;KAUM,yBAAyB;UAEpB;EACf;EACA;;UAGe;EACf;EACA,KAAK;EACL;;EAEA,SAAS;EACT,OAAO;EACP;EACA,MAAM;;UAGS;EACf,MAAM;EACN;EACA;;EAEA;EACA;;UAWe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UA8Ce;;EAEf;;EAEA;;EAEA;EACA,aAAa;EACb,kBAAkB;;EAElB;;EAEA;;EAEA;EACA,SAAS,QAAQ;;EAEjB,WAAW;;EAEX;EACA;EACA,aAAa;IAAU;;EACvB;EACA,YAAY;IAAU;;EACtB;EACA;EACA;EACA;EACA,OAAO;EACP;;;;UCwDe;;EAEf,UAAU;EACV;EACA;;EAEA;;;;;;;;;;iBA2GoB,gBACpB,UAAS,iBACR,QAAQ;iBAiDK,eAAe,OAAO;;;;iBCxGtB,sBAAsB,SAAS,UAAU;;;;iBChMzC,mBAAmB;EACjC;IACE;;;iBC5EY,eAAe,OAAO,sCAAmB,IAAA"}
1
+ {"version":3,"file":"feedback.d.ts","names":[],"sources":["../src/feedback/types.ts","../src/feedback/core/capture.ts","../src/feedback/core/element-selector.ts","../src/feedback/core/page-context.ts","../src/feedback/widget.tsx"],"mappings":";;cAKM;KAEM,iCACF;cAEJ;KAUM,yBAAyB;UAEpB;EACf;EACA;;UAGe;EACf;EACA,KAAK;EACL;;EAEA,SAAS;EACT,OAAO;EACP;EACA,MAAM;;UAGS;EACf,MAAM;EACN;EACA;;EAEA;EACA;;UAWe;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;UA8Ce;;EAEf;;EAEA;;EAEA;EACA,aAAa;EACb,kBAAkB;;EAElB;;EAEA;;EAEA;EACA,SAAS,QAAQ;;EAEjB,WAAW;;EAEX;EACA;EACA,aAAa;IAAU;;EACvB;EACA,YAAY;IAAU;;EACtB;EACA;EACA;EACA;EACA,OAAO;EACP;;;;UCwDe;;EAEf,UAAU;EACV;EACA;;EAEA;;;;;;;;;;wBA2GoB,gBACpB,UAAS,iBACR,QAAQ;wBAiDK,eAAe,OAAO;;;;wBCxGtB,sBAAsB,SAAS,UAAU;;;;wBChMzC,mBAAmB;EACjC;IACE;;;wBC5EY,eAAe,OAAO,sCAAmB,IAAA"}
package/dist/feedback.js CHANGED
@@ -809,7 +809,7 @@ function collectPageContext(options) {
809
809
  }
810
810
  //#endregion
811
811
  //#region src/feedback/types.ts
812
- const SDK_VERSION = "0.3.4";
812
+ const SDK_VERSION = "0.3.5";
813
813
  const DEFAULT_WIDGET_LABELS = {
814
814
  annotateHint: "Draw on the screenshot to point at the problem.",
815
815
  attachmentUploadFailed: "Your feedback was saved, but some screenshots are still pending. Retry to attach them.",
@@ -3680,7 +3680,7 @@ function useWidgetState(props) {
3680
3680
  return submission.submit({
3681
3681
  category,
3682
3682
  context: {
3683
- ...activeScreenshot?.context ?? collectPageContext({ sdkVersion: "0.3.4" }),
3683
+ ...activeScreenshot?.context ?? collectPageContext({ sdkVersion: "0.3.5" }),
3684
3684
  consoleEvents: consoleRef.current?.events(),
3685
3685
  metadata: props.metadata,
3686
3686
  selection: selection ?? void 0