File tree Expand file tree Collapse file tree 3 files changed +22
-8
lines changed
core/src/types-hoist/feedback Expand file tree Collapse file tree 3 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,15 @@ export interface FeedbackGeneralConfiguration {
57
57
name : string ;
58
58
} ;
59
59
60
+ /**
61
+ * _experiments allows users to enable experimental or internal features.
62
+ * We don't consider such features as part of the public API and hence we don't guarantee semver for them.
63
+ * Experimental features can be added, changed or removed at any time.
64
+ *
65
+ * Default: undefined
66
+ */
67
+ _experiments : Partial < { annotations : boolean ; } >
68
+
60
69
/**
61
70
* Set an object that will be merged sent as tags data with the event.
62
71
*/
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ export const buildFeedbackIntegration = ({
84
84
email : 'email' ,
85
85
name : 'username' ,
86
86
} ,
87
+ _experiments = { } ,
87
88
tags,
88
89
styleNonce,
89
90
scriptNonce,
@@ -158,6 +159,8 @@ export const buildFeedbackIntegration = ({
158
159
onSubmitError,
159
160
onSubmitSuccess,
160
161
onFormSubmitted,
162
+
163
+ _experiments,
161
164
} ;
162
165
163
166
let _shadow : ShadowRoot | null = null ;
Original file line number Diff line number Diff line change @@ -395,14 +395,16 @@ export function ScreenshotEditorFactory({
395
395
return (
396
396
< div class = "editor" >
397
397
< style nonce = { options . styleNonce } dangerouslySetInnerHTML = { styles } />
398
- < button
399
- class = "editor__pen-tool"
400
- style = { { background : isAnnotating ? 'red' : 'white' } }
401
- onClick = { e => {
402
- e . preventDefault ( ) ;
403
- setIsAnnotating ( ! isAnnotating ) ;
404
- } }
405
- > </ button >
398
+ { options . _experiments . annotations && (
399
+ < button
400
+ class = "editor__pen-tool"
401
+ style = { { background : isAnnotating ? 'red' : 'white' } }
402
+ onClick = { e => {
403
+ e . preventDefault ( ) ;
404
+ setIsAnnotating ( ! isAnnotating ) ;
405
+ } }
406
+ > </ button >
407
+ ) }
406
408
< div class = "editor__canvas-container" ref = { canvasContainerRef } >
407
409
< div
408
410
class = "editor__crop-container"
You can’t perform that action at this time.
0 commit comments