npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@qualtrics/cocreate-guided-modal

v1.1.0

Published

A guided modal component for creating AI-powered projects

Readme

cocreate-guided-modal

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.

Installation

npm install @qualtrics/cocreate-guided-modal

Requirements

This package has the following peer dependencies:

  • React ^18.0.0
  • React DOM ^18.2.0
  • @qualtrics/ui-react ^2.56.0
  • react-hook-form ^7.54.2

Additional dependencies:

  • @qualtrics/base-styles ^0.4.1
  • @tanstack/react-query ^5.67.2
  • axios ^1.8.2

Features

  • Integrated with React Query for API calls
  • Form validation using react-hook-form
  • Responsive design with custom styling
  • Built with @qualtrics/ui-react components
  • Automatic redirection after successful submission

Usage

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:

  • Form state management
  • API calls for project creation
  • Redirection to the new project on success
  • Error handling with fallback to catalog

Props

| 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 |

Types

type ProjectInputs = {
  useCase: string;  // Currently defaults to "Voice of Customer"
  prompt: string;   // Free-form text for project details
};

Development

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Available scripts:
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

Testing Locally

To test the package locally:

  1. Build and pack the package:
npm run test-local

This will:

  • Build the package
  • Create a tarball
  • Update the local testing environment
  • Start the development server

Alternatively, you can manually link the package:

  1. Build the package:
npm run build
  1. Link the package globally:
npm link
  1. In your test project:
npm link @qualtrics/cocreate-guided-modal
  1. Import and use the component as shown in the Usage section above.

Building for Production

To build the package for production:

npm run build

This will generate the following outputs in the dist directory:

  • CommonJS bundle (dist/index.js)
  • ES Module bundle (dist/index.esm.js)
  • UMD bundle (dist/index.umd.js)
  • TypeScript declarations (dist/index.d.ts)

Styling

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 styling

Contributing

When contributing, please ensure:

  1. All new features include proper TypeScript types
  2. Maintain existing styling patterns
  3. Test thoroughly with the provided test project setup