New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@highlight-run/react

Package Overview
Dependencies
Maintainers
4
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@highlight-run/react - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

8

dist/index.d.ts

@@ -20,3 +20,9 @@ import React, { ErrorInfo } from 'react';

hideHighlightBranding?: boolean;
error?: Error;
}
type ReportDialogProps = ReportDialogOptions & {
onCloseHandler?: () => void;
onSubmitHandler?: () => void;
};
declare function ReportDialog({ labelClose, labelComments, labelName, labelEmail, labelSubmit, subtitle2, subtitle, successMessage, successSubtitle, title, placeholderComments, user, onCloseHandler, onSubmitHandler, hideHighlightBranding, error, }: ReportDialogProps): JSX.Element;

@@ -81,2 +87,2 @@ type FallbackRender = (errorData: {

export { ErrorBoundary, ErrorBoundaryProps, FallbackRender, SampleBuggyButton };
export { ErrorBoundary, ErrorBoundaryProps, FallbackRender, ReportDialog, ReportDialogOptions, SampleBuggyButton };

89

dist/index.js

@@ -105,2 +105,3 @@ "use strict";

ErrorBoundary: () => ErrorBoundary,
ReportDialog: () => ReportDialog,
SampleBuggyButton: () => SampleBuggyButton

@@ -117,5 +118,5 @@ });

// esbuild-css-modules-plugin-namespace:/tmp/tmp-3208-N6p1R7Up4TC8/highlight-react/src/components/ReportDialog/styles.module.css.js
// esbuild-css-modules-plugin-namespace:/tmp/tmp-4693-AsaDvXAQh7MQ/highlight-react/src/components/ReportDialog/styles.module.css.js
var digest = "2f735a0e3c9a6ee703f650c3b0c9d25d75e14c779d8a9e548eb4864ea722c9cc";
var css = `._container_18ep0_1 {
var css = `._container_18f8u_1 {
--brand-color: #744ed4;

@@ -141,3 +142,3 @@ --brand-color-dark: #5629c6;

--font-family: Steradian, -apple-system, BlinkMacSystemFont, 'Segoe UI',
--font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji',

@@ -161,3 +162,3 @@ 'Segoe UI Emoji', 'Segoe UI Symbol';

@media only screen and (max-width: 420px) {
._card_18ep0_41 {
._card_18f8u_41 {
max-width: 100vw !important;

@@ -168,3 +169,3 @@ height: 100%;

._cardContents_18ep0_47 {
._cardContents_18f8u_47 {
height: 100%;

@@ -175,15 +176,15 @@ display: flex;

._form_18ep0_53 {
._form_18f8u_53 {
height: 100%;
}
._textareaLabel_18ep0_57 {
._textareaLabel_18f8u_57 {
flex: 1;
}
._form_18ep0_53 textarea {
._form_18f8u_53 textarea {
height: 100%;
}
._ad_18ep0_65 {
._ad_18f8u_65 {
display: none;

@@ -193,3 +194,3 @@ }

._card_18ep0_41 {
._card_18f8u_41 {
border-radius: var(--size-xSmall);

@@ -202,3 +203,3 @@ padding: 20px;

._title_18ep0_78 {
._title_18f8u_78 {
font-size: 20px;

@@ -208,3 +209,3 @@ color: var(--color-text-primary);

._subtitle_18ep0_83 {
._subtitle_18f8u_83 {
font-size: 13px;

@@ -216,3 +217,3 @@ margin-top: var(--size-medium) !important;

._form_18ep0_53 {
._form_18f8u_53 {
padding-top: var(--size-large);

@@ -225,3 +226,3 @@ display: flex;

._form_18ep0_53 label {
._form_18f8u_53 label {
display: flex;

@@ -234,7 +235,7 @@ flex-direction: column;

._form_18ep0_53 input {
._form_18f8u_53 input {
height: 28px;
}
._form_18ep0_53 textarea {
._form_18f8u_53 textarea {
font-family: var(--font-family);

@@ -244,4 +245,4 @@ min-height: 80px;

._form_18ep0_53 input,
._form_18ep0_53 textarea {
._form_18f8u_53 input,
._form_18f8u_53 textarea {
background-color: var(--color-white);

@@ -259,3 +260,3 @@ border: 1px solid #dcdbdd;

._form_18ep0_53 button {
._form_18f8u_53 button {
align-items: center;

@@ -276,7 +277,7 @@ display: flex;

._form_18ep0_53 button:hover {
._form_18f8u_53 button:hover {
background-color: var(--brand-color-dark);
}
._form_18ep0_53 button[disabled] {
._form_18f8u_53 button[disabled] {
opacity: 0.5;

@@ -286,3 +287,3 @@ pointer-events: none;

._form_18ep0_53 ._closeButton_18ep0_154 {
._form_18f8u_53 ._closeButton_18f8u_154 {
background-color: transparent;

@@ -295,3 +296,3 @@ color: #6f6e77 !important;

._form_18ep0_53 ._closeButton_18ep0_154:hover {
._form_18f8u_53 ._closeButton_18f8u_154:hover {
background-color: var(--color-gray-100);

@@ -301,3 +302,3 @@ border-color: var(--color-gray-300);

._confirmationButton_18ep0_167 {
._confirmationButton_18f8u_167 {
float: right;

@@ -307,3 +308,3 @@ margin-top: 3rem;

._formFooter_18ep0_172 {
._formFooter_18f8u_172 {
display: flex;

@@ -316,3 +317,3 @@ flex-direction: row-reverse;

._formActionsContainer_18ep0_180 {
._formActionsContainer_18f8u_180 {
display: flex;

@@ -323,7 +324,7 @@ flex-direction: row-reverse;

._ad_18ep0_65:hover {
._ad_18f8u_65:hover {
background-color: var(--color-gray-100);
}
._logoContainer_18ep0_190 {
._logoContainer_18f8u_190 {
display: flex;

@@ -340,7 +341,7 @@ align-items: center;

._logo_18ep0_190 {
._logo_18f8u_190 {
height: 16px;
}
._buggyButton_18ep0_206 {
._buggyButton_18f8u_206 {
align-items: center;

@@ -354,3 +355,3 @@ background: #5629c6;

display: flex;
font-family: Steradian, -apple-system, BlinkMacSystemFont, 'Segoe UI',
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI',
Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji',

@@ -377,3 +378,3 @@ 'Segoe UI Emoji', 'Segoe UI Symbol';

})();
var styles_module_css_default = { "container": "_container_18ep0_1", "card": "_card_18ep0_41", "cardContents": "_cardContents_18ep0_47", "form": "_form_18ep0_53", "textareaLabel": "_textareaLabel_18ep0_57", "ad": "_ad_18ep0_65", "title": "_title_18ep0_78", "subtitle": "_subtitle_18ep0_83", "closeButton": "_closeButton_18ep0_154", "confirmationButton": "_confirmationButton_18ep0_167", "formFooter": "_formFooter_18ep0_172", "formActionsContainer": "_formActionsContainer_18ep0_180", "logoContainer": "_logoContainer_18ep0_190", "logo": "_logo_18ep0_190", "buggyButton": "_buggyButton_18ep0_206" };
var styles_module_css_default = { "container": "_container_18f8u_1", "card": "_card_18f8u_41", "cardContents": "_cardContents_18f8u_47", "form": "_form_18f8u_53", "textareaLabel": "_textareaLabel_18f8u_57", "ad": "_ad_18f8u_65", "title": "_title_18f8u_78", "subtitle": "_subtitle_18f8u_83", "closeButton": "_closeButton_18f8u_154", "confirmationButton": "_confirmationButton_18f8u_167", "formFooter": "_formFooter_18f8u_172", "formActionsContainer": "_formActionsContainer_18f8u_180", "logoContainer": "_logoContainer_18f8u_190", "logo": "_logo_18f8u_190", "buggyButton": "_buggyButton_18f8u_206" };

@@ -396,3 +397,4 @@ // src/components/ReportDialog/ReportDialog.tsx

onSubmitHandler,
hideHighlightBranding = false
hideHighlightBranding = false,
error
}) {

@@ -404,3 +406,3 @@ const [name, setName] = (0, import_react.useState)((user == null ? void 0 : user.name) || "");

const [sentReport, setSentReport] = (0, import_react.useState)(false);
const reportDialogOpenTime = (0, import_react.useRef)(new Date().toISOString());
const reportDialogOpenTime = (0, import_react.useRef)((/* @__PURE__ */ new Date()).toISOString());
const isValid = (0, import_react.useMemo)(() => {

@@ -412,2 +414,8 @@ const isValidEmail = !!email.match(

}, [name, email, verbatim]);
import_react.default.useEffect(() => {
var _a;
if (((_a = window == null ? void 0 : window.H) == null ? void 0 : _a.consumeError) && error) {
window.H.consumeError(error);
}
}, [error]);
const handleSubmit = (event) => {

@@ -444,7 +452,7 @@ var _a;

font-display: swap;
font-family: 'Steradian';
font-family: 'Inter';
font-style: normal;
font-weight: normal;
src: local('Steradian Regular'), local('SteradianRegular'),
url('https://app.highlight.io/font/SteradianRegular.woff2')
src: local('Inter Regular'), local('InterRegular'),
url('https://app.highlight.io/font/Inter-Regular.woff2')
format('woff2');

@@ -454,7 +462,7 @@ }

font-display: swap;
font-family: 'Steradian';
font-family: 'Inter';
font-style: normal;
font-weight: 500;
src: local('Steradian Medium'), local('SteradianMedium'),
url('https://app.highlight.io/font/SteradianMedium.woff2')
src: local('Inter Medium'), local('InterMedium'),
url('https://app.highlight.io/font/Inter-Medium.woff2')
format('woff2');

@@ -716,2 +724,3 @@ }

ErrorBoundary,
ReportDialog,
SampleBuggyButton

@@ -718,0 +727,0 @@ });

{
"name": "@highlight-run/react",
"version": "3.2.0",
"version": "3.2.1",
"description": "The official Highlight SDK for React",

@@ -26,3 +26,3 @@ "license": "MIT",

"tsup": "^6.6.3",
"typescript": "^4.9.5"
"typescript": "^5.0.4"
},

@@ -29,0 +29,0 @@ "files": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc