@sentry-internal/feedback
Advanced tools
Comparing version 7.103.0 to 7.104.0
@@ -154,3 +154,4 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const feedbackEvent = await prepareFeedbackEvent({ | ||
scope, | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
scope: scope , | ||
client, | ||
@@ -1429,2 +1430,20 @@ event: baseEvent, | ||
/** | ||
* Internal handler when dialog is opened | ||
*/ | ||
function handleOpenDialog() { | ||
// Flush replay if integration exists | ||
const client = core.getClient(); | ||
const replay = | ||
client && | ||
client.getIntegrationByName && | ||
client.getIntegrationByName('Replay'); | ||
if (!replay) { | ||
return; | ||
} | ||
replay.flush().catch(err => { | ||
DEBUG_BUILD && utils.logger.error(err); | ||
}); | ||
} | ||
/** | ||
* Displays the default actor | ||
@@ -1461,2 +1480,3 @@ */ | ||
} | ||
handleOpenDialog(); | ||
return; | ||
@@ -1514,2 +1534,3 @@ } | ||
} | ||
handleOpenDialog(); | ||
} catch (err) { | ||
@@ -1634,5 +1655,7 @@ // TODO: Error handling? | ||
constructor({ | ||
autoInject = true, | ||
id = 'sentry-feedback', | ||
isEmailRequired = false, | ||
isNameRequired = false, | ||
showBranding = true, | ||
autoInject = true, | ||
showEmail = true, | ||
@@ -1644,4 +1667,2 @@ showName = true, | ||
}, | ||
isEmailRequired = false, | ||
isNameRequired = false, | ||
@@ -1680,5 +1701,5 @@ themeDark, | ||
this.options = { | ||
autoInject, | ||
showBranding, | ||
id, | ||
showBranding, | ||
autoInject, | ||
isEmailRequired, | ||
@@ -1685,0 +1706,0 @@ isNameRequired, |
@@ -152,3 +152,4 @@ import { GLOBAL_OBJ, getLocationHref, logger, isBrowser } from '@sentry/utils'; | ||
const feedbackEvent = await prepareFeedbackEvent({ | ||
scope, | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
scope: scope , | ||
client, | ||
@@ -1427,2 +1428,20 @@ event: baseEvent, | ||
/** | ||
* Internal handler when dialog is opened | ||
*/ | ||
function handleOpenDialog() { | ||
// Flush replay if integration exists | ||
const client = getClient(); | ||
const replay = | ||
client && | ||
client.getIntegrationByName && | ||
client.getIntegrationByName('Replay'); | ||
if (!replay) { | ||
return; | ||
} | ||
replay.flush().catch(err => { | ||
DEBUG_BUILD && logger.error(err); | ||
}); | ||
} | ||
/** | ||
* Displays the default actor | ||
@@ -1459,2 +1478,3 @@ */ | ||
} | ||
handleOpenDialog(); | ||
return; | ||
@@ -1512,2 +1532,3 @@ } | ||
} | ||
handleOpenDialog(); | ||
} catch (err) { | ||
@@ -1632,5 +1653,7 @@ // TODO: Error handling? | ||
constructor({ | ||
autoInject = true, | ||
id = 'sentry-feedback', | ||
isEmailRequired = false, | ||
isNameRequired = false, | ||
showBranding = true, | ||
autoInject = true, | ||
showEmail = true, | ||
@@ -1642,4 +1665,2 @@ showName = true, | ||
}, | ||
isEmailRequired = false, | ||
isNameRequired = false, | ||
@@ -1678,5 +1699,5 @@ themeDark, | ||
this.options = { | ||
autoInject, | ||
showBranding, | ||
id, | ||
showBranding, | ||
autoInject, | ||
isEmailRequired, | ||
@@ -1683,0 +1704,0 @@ isNameRequired, |
{ | ||
"name": "@sentry-internal/feedback", | ||
"version": "7.103.0", | ||
"version": "7.104.0", | ||
"description": "Sentry SDK integration for user feedback", | ||
@@ -32,7 +32,7 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/core": "7.103.0", | ||
"@sentry/types": "7.103.0", | ||
"@sentry/utils": "7.103.0" | ||
"@sentry/core": "7.104.0", | ||
"@sentry/types": "7.104.0", | ||
"@sentry/utils": "7.104.0" | ||
}, | ||
"sideEffects": false | ||
} |
@@ -45,3 +45,3 @@ import { Integration } from '@sentry/types'; | ||
private _hasInsertedActorStyles; | ||
constructor({ id, showBranding, autoInject, showEmail, showName, useSentryUser, isEmailRequired, isNameRequired, themeDark, themeLight, colorScheme, buttonLabel, cancelButtonLabel, submitButtonLabel, formTitle, emailPlaceholder, emailLabel, messagePlaceholder, messageLabel, namePlaceholder, nameLabel, successMessageText, onFormClose, onFormOpen, onSubmitError, onSubmitSuccess, }?: OptionalFeedbackConfiguration); | ||
constructor({ autoInject, id, isEmailRequired, isNameRequired, showBranding, showEmail, showName, useSentryUser, themeDark, themeLight, colorScheme, buttonLabel, cancelButtonLabel, submitButtonLabel, formTitle, emailPlaceholder, emailLabel, messagePlaceholder, messageLabel, namePlaceholder, nameLabel, successMessageText, onFormClose, onFormOpen, onSubmitError, onSubmitSuccess, }?: OptionalFeedbackConfiguration); | ||
/** | ||
@@ -48,0 +48,0 @@ * Setup and initialize feedback container |
@@ -45,3 +45,3 @@ import type { Integration } from '@sentry/types'; | ||
private _hasInsertedActorStyles; | ||
constructor({ id, showBranding, autoInject, showEmail, showName, useSentryUser, isEmailRequired, isNameRequired, themeDark, themeLight, colorScheme, buttonLabel, cancelButtonLabel, submitButtonLabel, formTitle, emailPlaceholder, emailLabel, messagePlaceholder, messageLabel, namePlaceholder, nameLabel, successMessageText, onFormClose, onFormOpen, onSubmitError, onSubmitSuccess, }?: OptionalFeedbackConfiguration); | ||
constructor({ autoInject, id, isEmailRequired, isNameRequired, showBranding, showEmail, showName, useSentryUser, themeDark, themeLight, colorScheme, buttonLabel, cancelButtonLabel, submitButtonLabel, formTitle, emailPlaceholder, emailLabel, messagePlaceholder, messageLabel, namePlaceholder, nameLabel, successMessageText, onFormClose, onFormOpen, onSubmitError, onSubmitSuccess, }?: OptionalFeedbackConfiguration); | ||
/** | ||
@@ -48,0 +48,0 @@ * Setup and initialize feedback container |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
359666
4910
+ Added@sentry/core@7.104.0(transitive)
+ Added@sentry/types@7.104.0(transitive)
+ Added@sentry/utils@7.104.0(transitive)
- Removed@sentry/core@7.103.0(transitive)
- Removed@sentry/types@7.103.0(transitive)
- Removed@sentry/utils@7.103.0(transitive)
Updated@sentry/core@7.104.0
Updated@sentry/types@7.104.0
Updated@sentry/utils@7.104.0