@betterbugs/web-sdk 0.0.46 → 0.0.48

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/types/index.d.ts CHANGED
@@ -24,10 +24,35 @@ declare module '@betterbugs/web-sdk' {
24
24
  mainHeading?: string;
25
25
  emailFieldLabel?: string;
26
26
  emailFieldPlaceholder?: string;
27
+ /**
28
+ * Locks the report form's **Email** field so the reporter can read the
29
+ * prefilled address but cannot change it. The field is also taken out of
30
+ * the tab order and will not take focus from a click.
31
+ *
32
+ * Honoured only while the prefilled address (the `email` option above, or
33
+ * `setEmail()`) is a **valid** one, and only in `production` mode —
34
+ * `development` mode has no Email field. If the address is missing or
35
+ * malformed the field stays editable, so the reporter can still supply the
36
+ * valid address the form requires.
37
+ *
38
+ * @default false
39
+ */
40
+ emailFieldReadOnly?: boolean;
27
41
  titleFieldLabel?: string;
28
42
  titleFieldPlaceholder?: string;
29
43
  descriptionFieldLabel?: string;
30
44
  descriptionFieldPlaceholder?: string;
45
+ /**
46
+ * Options shown in the report form's **Issue Type** dropdown.
47
+ *
48
+ * A list given here **replaces** the built-in options
49
+ * (`General Enquiry`, `Give Feedback`, `Report a Bug`) rather than adding
50
+ * to them. Entries are trimmed and de-duplicated; if none are usable the
51
+ * SDK warns and keeps the built-in options.
52
+ *
53
+ * @default ['General Enquiry', 'Give Feedback', 'Report a Bug']
54
+ */
55
+ issueTypes?: string[];
31
56
  metaData?: Record<string | number, string | number | null>;
32
57
  // captureRewindOnScreenshot?: boolean;
33
58
  /**