Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@manifoldco/ui
Advanced tools
Manifold’s reusable web components, built with Stencil.
npm i @manifoldco/ui
Framework | Supported? |
---|---|
Vanilla JS (no framework) | ✅ |
Angular | ✅ |
React | ✅ |
Vue | ✅ |
Ember | ✅ |
<manifold-marketplace />
<script type="module">
import { defineCustomElements } from 'https://unpkg.com/@manifoldco/ui/dist/esm/es2017/manifold.define.js';
defineCustomElements(window);
</script>
<manifold-marketplace />
<script src="https://unpkg.com/@manifoldco/ui/dist/manifold.js"></script>
import React from 'react';
import ReactDOM from 'react-dom';
import { defineCustomElements } from '@manifoldco/ui/dist/loader';
const App = () => <manifold-marketplace />;
ReactDOM.render(<App />, document.getElementById('root'));
defineCustomElements(window);
Initializing Manifold UI works the exact same as any other Stencil project. For more advanced instructions on integrating with your specific stack, please refer to Stencil’s docs on integration.
When using inside TypeScript, you’ll likely see this error (
manifold-connection
could be any custom element):
Property 'manifold-connection' does not exist on type 'JSX.IntrinsicElements'
To solve that, add the following to tsconfig.json
:
"compilerOptions": {
"typeRoots": ["./node_modules/@types", "./node_modules/@manifoldco"],
"types": ["ui"]
}
Next, create a custom-elements.d.ts
file somewhere inside your project
(must be inside the include option in tsconfig.json
):
declare module JSX {
interface IntrinsicElements extends StencilIntrinsicElements {}
}
This will do more than fix the error—now you’ll be able to typecheck the web components as you write! 🎉
FAQs
Manifold UI
The npm package @manifoldco/ui receives a total of 4 weekly downloads. As such, @manifoldco/ui popularity was classified as not popular.
We found that @manifoldco/ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.