Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@manifoldco/component-plan-matrix
Advanced tools
Place the following HTML where you’d like the component to appear (this works in any JS framework, or even no framework!):
<manifold-plan-matrix></manifold-plan-matrix>
Next place the following at the very beginning of the <body>
tag:
<!-- modern browsers -->
<script type="module">
import(
'https://js.cdn.manifold.co/@manifoldco/component-plan-matrix/loader/index.mjs'
).then(({ defineCustomElements }) => defineCustomElements(window));
</script>
<!-- legacy browsers -->
<script
nomodule
src="https://js.cdn.manifold.co/@manifoldco/component-plan-matrix/dist/manifold-plan-matrix.js"
></script>
Alternately, if you build your site with npm using webpack, create-react-app, etc., run:
npm install @manifoldco/component-plan-matrix
And add the following code to your application, ideally to your entry file so it’s loadded as early as possible:
import('@manifoldco/component-plan-matrix/loader').then(({ defineCustomElements }) =>
defineCustomElements(window)
);
This libary is built using Stencil. For more information about integrating with your site, please refer to the latest framework docs.
This Web Component works in all frameworks & environments, but if you’re using within a React & TypeScript setup, you’ll also need the following config.
Create a custom-elements.d.ts
file anywhere in your project that’s within tsconfig.json
’s
includes property:
import { Components, JSX as LocalJSX } from '@manifoldco/component-plan-matrix/loader';
import { DetailedHTMLProps, HTMLAttributes } from 'react';
type StencilProps<T> = {
[P in keyof T]?: Omit<T[P], 'ref'>;
};
type ReactProps<T> = {
[P in keyof T]?: DetailedHTMLProps<HTMLAttributes<T[P]>, T[P]>;
};
type StencilToReact<T = LocalJSX.IntrinsicElements, U = HTMLElementTagNameMap> = StencilProps<T> &
ReactProps<U>;
declare global {
export namespace JSX {
interface IntrinsicElements extends StencilToReact {}
}
}
FAQs
Stencil Component Starter
The npm package @manifoldco/component-plan-matrix receives a total of 5 weekly downloads. As such, @manifoldco/component-plan-matrix popularity was classified as not popular.
We found that @manifoldco/component-plan-matrix demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.