
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
@premise/plugin-dynamic-pick-extension
Advanced tools
Dynamic Data Form Extension (Frontend and Backend Plugins)
Welcome to the dynamic-pick-extension plugin! This plugin is a Custom Field Extension that allow you to create <Select>
components that fetches data dynamically from an endpoint. This can be used together with the form-data-backend
plugin to write custom logic to fill the field.
cd packages/app/
yarn add @premise/plugin-dynamic-pick-extension
Add the import to your packages/app/src/App.tsx
on the frontend package of your backstage instance:
import { DynamicPickFieldExtension } from '@premise/plugin-dynamic-pick-extension';
import { ScaffolderFieldExtensions } from '@backstage/plugin-scaffolder-react';
Then add the imported field extension as a child of ScaffolderFieldExtensions
inside Route
<Route path="/create" element={<ScaffolderPage />}>
<ScaffolderFieldExtensions>
<DynamicPickFieldExtension />
</ScaffolderFieldExtensions>
</Route>
You should now see the custom filed DynamicPickExtension
clicking "Custom field explored" here http://localhost:3000/create/edit
.
To use the extension on a Backstage Template Action just add the ui-field
and ui-options
fields to the parameter
parameters:
- category:
title: Category
type: string
ui:field: DynamicPickExtension
ui:options:
# IMPORTANT: The endpoint needs to return a JSON array of strings.
external_data: https://dummyjson.com/products/categories
form-data-backend
plugin:parameters:
- team:
title: Github Team to add as admin of the repository
type: string
ui:field: DynamicPickExtension
ui:options:
# This is a provider added on the form-data-backend plugin
form_data: github/teams
`no_options_text``: string - Text to show when no options are available - Default: "No options"
parameters:
- team:
title: Github Team to add as admin of the repository
type: string
ui:field: DynamicPickExtension
ui:options:
# This is a provider added on the form-data-backend plugin
form_data: github/teams
no_options_text: "No teams available"
FAQs
Dynamic Data Form Extension (Frontend and Backend Plugins)
We found that @premise/plugin-dynamic-pick-extension demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.