
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@fusebit/monaco-jsonforms
Advanced tools
The Fusebit Monaco jsonforms package enables you to easily integrate a monaco code editor to react with jsonforms.
The Fusebit Monaco jsonforms package enables you to easily integrate a monaco code editor to react with jsonforms.
npm i @fusebit/monaco-jsonforms
In raw HTML:
<script src="https://cdn.fusebit.io/fusebit/js/fusebit-form/latest/jsonforms-core.js"></script>
<script src="https://cdn.fusebit.io/fusebit/js/fusebit-form/latest/jsonforms-react.js"></script>
<script src="https://cdn.fusebit.io/fusebit/js/fusebit-form/latest/jsonforms-material.js"></script>
<script src="https://unpkg.com/@fusebit/monaco-jsonforms@latest/dist/cjs/index.js"></script>
...
<JSONFormsReact.JsonForms
renderers={[
...JSONFormsMaterial.materialRenderers,
MonacoJSONForms.MonacoEditorControl,
]}
...
/>
Use it in JSONForms as a custom render by importing the controls and adding them to your JSONForms renderers
import { JsonForms } from '@jsonforms/react';
import { MonacoEditorControl } from '@fusebit/monaco-jsonforms';
return <JsonForms {...props} cells={materialCells} renderers={[...materialRenderers, MonacoEditorControl]} />;
For schema.json
:
{
"type": "object",
"properties": {
"mappingCode": {
"type": "string",
"title": "Transformation JavaScript function",
"isExpandable": false,
"language": "javascript"
}
}
}
Notes:
the isExpandable
flag allows for the editor to vertically expand to fit the code supplied.
the language
flag allows for the editor to change it's language. If it's undefined, it will default to javascript.
For uischema.json
:
{
"type": "CodeBlock",
"scope": "#/properties/mappingCode",
"label": "Customer Transform"
}
npm install && npm run-script build
FAQs
The Fusebit Monaco jsonforms package enables you to easily integrate a monaco code editor to react with jsonforms.
The npm package @fusebit/monaco-jsonforms receives a total of 2 weekly downloads. As such, @fusebit/monaco-jsonforms popularity was classified as not popular.
We found that @fusebit/monaco-jsonforms demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.