Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@intersect.mbo/pdf-ui
Advanced tools
The @intersect.mbo/pdf-ui
is a React.js package that includes all the necessary logic and UI components required for the operation of a proposal discussion forum.
To install this pacakge, use npm or yarn:
npm install @intersect.mbo/pdf-ui
or
yarn add @intersect.mbo/pdf-ui
After installation, you can import the component and use it in your project.
'use client';
import dynamic from 'next/dynamic';
import { useValidateMutation } from "@/hooks/mutations";
import { useCardano, useGovernanceActions } from "@/context";
const ProposalDiscussion = dynamic(() => import('@intersect.mbo/pdf-ui'), {
ssr: false,
});
export default function Page() {
const { validateMetadata } = useValidateMutation();
const { walletApi, ...context } = useCardano();
const { createGovernanceActionJsonLD, createHash } = useGovernanceActions();
return (
<ProposalDiscussion
pdfApiUrl="https://xxxxx"
walletAPI={{
...context,
...walletApi,
createGovernanceActionJsonLD,
createHash,
}}
pathname={window.location.pathname}
validateMetadata={
validateMetadata as ComponentProps<
typeof ProposalDiscussion
>["validateMetadata"]
}
/>
);
}
import React, { ComponentProps } from "react";
import "@intersect.mbo/pdf-ui/style";
import { useCardano, useGovernanceActions } from "@/context";
import { useValidateMutation } from "@/hooks/mutations";
const ProposalDiscussion = React.lazy(
() => import("@intersect.mbo/pdf-ui/cjs"),
);
export const ProposalDiscussionPillar = () => {
const { validateMetadata } = useValidateMutation();
const { walletApi, ...context } = useCardano();
const { createGovernanceActionJsonLD, createHash } = useGovernanceActions();
return (
<ProposalDiscussion
pdfApiUrl="https://xxxxx"
walletAPI={{
...context,
...walletApi,
createGovernanceActionJsonLD,
createHash,
}}
pathname={window.location.pathname}
validateMetadata={
validateMetadata as ComponentProps<
typeof ProposalDiscussion
>["validateMetadata"]
}
/>
)
};
├── node_modules
├── src
│ ├── assets
│ ├── components
│ ├── context
│ ├── lib
│ ├── pages
│ ├── styles
│ └── App.jsx
│ └── index.js
│ └── index.scss
└── rollup.config.js
@intersect.mbo/pdf-ui
assets.@intersect.mbo/pdf-ui
components.Before starting, please ensure you have the following:
To launch the package, it is necessary to have an application (for example, a Next.js app) into which this package is imported. This wrapper application must provide wallet connectivity to supply the wallet API to the package.
FAQs
Proposal discussion ui
The npm package @intersect.mbo/pdf-ui receives a total of 396 weekly downloads. As such, @intersect.mbo/pdf-ui popularity was classified as not popular.
We found that @intersect.mbo/pdf-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.