
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
@qualtrics/cocreate-guided-modal
Advanced tools
A guided modal component for creating AI-powered projects
A React modal component for creating AI-powered projects with a guided experience. The modal includes a form with use case selection and project overview input, integrated with AI-powered project generation.
npm install @qualtrics/cocreate-guided-modal
This package has the following peer dependencies:
Additional dependencies:
import { GuidedModal } from 'cocreate-guided-modal';
import type { ProjectInputs } from 'cocreate-guided-modal';
function App() {
const [isOpen, setIsOpen] = React.useState(true);
return (
<GuidedModal
isOpen={isOpen}
onClose={() => setIsOpen(false)}
/>
);
}
The component will automatically handle:
Prop | Type | Required | Description |
---|---|---|---|
isOpen | boolean | Yes | Controls the visibility of the modal |
onClose | () => void | No | Callback function when modal is closed. If not provided, the close button will not be shown |
type ProjectInputs = {
useCase: string; // Currently defaults to "Voice of Customer"
prompt: string; // Free-form text for project details
};
npm install
npm run dev # Start development server with Vite
npm run build # Build the package using Rollup
npm run preview # Preview the built package
npm run pack # Create an npm package
npm run test-local # Build, pack and test the package locally
To test the package locally:
npm run test-local
This will:
Alternatively, you can manually link the package:
npm run build
npm link
npm link @qualtrics/cocreate-guided-modal
To build the package for production:
npm run build
This will generate the following outputs in the dist
directory:
The component uses CSS modules for styling. The following classes are available:
.modalBody
- Custom styling for modal body.modalHorizontal
- Horizontal layout container.modalContainer
- Container for modal content.modalP
- Paragraph styling.modalDivider
- Divider line.modalVertical
- Vertical layout container.modalFooter
- Footer styling.modalButtons
- Button container stylingWhen contributing, please ensure:
FAQs
A guided modal component for creating AI-powered projects
We found that @qualtrics/cocreate-guided-modal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 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.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
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.