Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
simple-screenshot-feedback
Advanced tools
Readme
A simple plug and play feedback component for your website. Enable users to take screenshots of specific parts of your application and send feedback to a slack channel.
yarn install simple-screenshot-feedback
or
npm install --save simple-screenshot-feedback
import Feedback from "simple-screenshot-feedback"
export default function SomePage() {
return (
<>
...
<Feedback slackToken={...} slackChannel={...} handleSubmitError={...} />
</>
)
}
chat:write
- allows the bot to write in private channels it is added tochat:write.public
- allows the bot to write in public channelsThis is the token that you need to pass in to this component (slackToken
) to start sending feedback to Slack.
With the permissions you gave your new Slack app in Getting your Slack token you can now send feedback to any public channel by passing the channel name (e.g. #feedback
) into the component (slackChannel
).
If you want to post to a private channel you first need to invite the new Slack app to it by typing /invite @[APP NAME]
.
Prop | optional | default | type |
---|---|---|---|
slackToken | false | string | |
slackChannel | false | string | |
handleSubmitError | false | (err: Error) => void | |
location | true | "bottom-right" | "top-left" | "top-middle" | "top-right" | "bottom-left" | "bottom-middle" | "bottom-right" |
This component uses the html2canvas
library which depends on the window
object being available. If you're using server-side rendering you'll want to make sure this component is only imported on client render using dynamic imports.
Here's an example with next/dynamic
:
import dynamic from "next/dynamic";
import React from "react";
const FeedbackImport = dynamic(() => import("simple-screenshot-feedback"), { ssr: false });
export default function Feedback({ slackToken, slackChannel, handleSubmitError }) {
return (
<FeedbackImport
slackToken={slackToken}
slackChannel={slackChannel}
handleSubmitError={handleSubmitError}
/>
);
}
FAQs
Plug and play screenshot feedback tool that sends to Slack.
The npm package simple-screenshot-feedback receives a total of 38 weekly downloads. As such, simple-screenshot-feedback popularity was classified as not popular.
We found that simple-screenshot-feedback demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.