![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@manifoldco/ui
Advanced tools
Manifold’s Web Component UI library, powered by Stencil.
npm i @manifoldco/ui
Manifold UI can be used in any frameworkless project (“vanilla” JS), or any modern framework like React, Vue, or Angular.
Framework | Supported? |
---|---|
Vanilla JS (no framework) | ✅ |
Angular | ✅ |
React | ✅ |
Vue | ✅ |
Ember | ✅ |
In any setup, you can use our CDN for UI:
<!-- latest (beware of breaking changes!) -->
<script src="https://js.cdn.manifold.co/@manifoldco/ui/dist/manifold.js"></script>
<!-- specific version -->
<script src="https://js.cdn.manifold.co/@manifoldco/ui@0.6.0/dist/manifold.js"></script>
<head>
<link
rel="stylesheet"
type="text/css"
href="https://js.cdn.manifold.co/@manifoldco/ui/dist/manifold/manifold.css"
/>
</head>
<body>
<manifold-marketplace></manifold-marketplace>
<script type="module">
import { defineCustomElements } from 'https://js.cdn.manifold.co/@manifoldco/ui/dist/esm/es2017/manifold.define.js';
defineCustomElements(window);
</script>
</body>
<head>
<link
rel="stylesheet"
type="text/css"
href="https://js.cdn.manifold.co/@manifoldco/ui/dist/manifold/manifold.css"
/>
</head>
<body>
<manifold-marketplace></manifold-marketplace>
<script src="https://js.cdn.manifold.co/@manifoldco/ui/dist/manifold.js"></script>
</body>
import React from 'react';
import ReactDOM from 'react-dom';
import '@manifoldco/ui/dist/manifold/manifold.css';
import(/* webpackChunkName: "manifold-ui" */ '@manifoldco/ui/dist/loader').then(
({ defineCustomElements }) => defineCustomElements(window)
);
const App = () => <manifold-marketplace />;
ReactDOM.render(<App />, document.getElementById('root'));
When using UI with TypeScript, you’ll likely see an error like this:
Property 'manifold-connection' does not exist on type 'JSX.IntrinsicElements'
To solve that, create a custom-elements.d.ts
file somewhere inside your project (must be inside
the include option in tsconfig.json
):
import { Components, JSX as LocalJSX } from '@manifoldco/ui/dist/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 {}
}
}
This will expose the types from Stencil to JSX, and you’ll be able to get typechecking as you write.
Note: Every element will have to be declared manually, at least until this PR is merged in TypeScript core.
Initializing Manifold UI works the same as any other Stencil project. For more advanced instructions on integrating with your specific stack, please refer to Stencil’s docs on integration.
[0.9.3] - 2019-01-13
<manifold-service-card>
back until 1.0 releaseFAQs
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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.