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

@wasilabsoftware/jira-extension-plugin-react

v0.0.5

Published

React wrapper components for jira-extension-plugin web components

Readme

@wasilabsoftware/jira-extension-plugin-react

React wrapper components for jira-extension-plugin. These components provide full TypeScript support and React-friendly event bindings.

Installation

npm install @wasilabsoftware/@wasilabsoftware/jira-extension-plugin-react

This will automatically install:

  • jira-extension-plugin (core web components)
  • @stencil/react-output-target (React runtime)

Using with Next.js?

See the Next.js Usage Guide for specific Next.js setup instructions and examples.

Requirements

  • React >= 17.0.0
  • TypeScript >= 5.0.0 (for TypeScript projects)

Usage

Basic Example

import { JiraDashboard } from '@wasilabsoftware/jira-extension-plugin-react';

function App() {
  return (
    <JiraDashboard
      jiraDomain="https://your-domain.atlassian.net"
      jiraEmail="[email protected]"
      jiraToken="your-jira-token"
      apiToken="your-api-token"
      apiBaseUrl="https://your-api.workers.dev"
      projectKey="VINM"
      boardId="123"
      initialView="backlog"
    />
  );
}

Event Handling

Events are exposed as React props with the on prefix:

import { JiraIssueTable } from '@wasilabsoftware/jira-extension-plugin-react';

function IssueList() {
  const handleIssueSelected = (event: CustomEvent) => {
    console.log('Selected issue:', event.detail.issueKey);
    // Navigate to issue detail page, etc.
  };

  const handleCreateClick = () => {
    console.log('Create button clicked');
  };

  return (
    <JiraIssueTable
      jiraDomain="https://your-domain.atlassian.net"
      jiraEmail="[email protected]"
      jiraToken="your-jira-token"
      apiToken="your-api-token"
      apiBaseUrl="https://your-api.workers.dev"
      projectKey="VINM"
      sprintType="backlog"
      onIssueSelected={handleIssueSelected}
      onCreateIssueClick={handleCreateClick}
    />
  );
}

Available Components

All components from jira-extension-plugin are available as React components:

Main Components

  • <JiraDashboard> - Complete dashboard with navigation
  • <JiraIssueTable> - Sortable table of issues
  • <JiraIssueDetail> - Detailed issue view with comments
  • <JiraCreateIssue> - Form to create new issues
  • <JiraEditIssue> - Form to edit existing issues

UI Components

  • <JiraAvatar> - User avatar display
  • <JiraStatusBadge> - Status indicator
  • <JiraPriorityBadge> - Priority indicator
  • <JiraSpinner> - Loading spinner
  • <JiraError> - Error display

Props

JiraDashboard

| Prop | Type | Required | Description | |------|------|----------|-------------| | jiraDomain | string | ✅ | Your Jira domain (e.g., https://yourcompany.atlassian.net) | | jiraEmail | string | ✅ | Email associated with your Jira account | | jiraToken | string | ✅ | Jira API token | | apiToken | string | ✅ | External API token | | apiBaseUrl | string | ✅ | Base URL of your API | | projectKey | string | ✅ | Jira project key (e.g., "VINM") | | boardId | string | ❌ | Board ID for sprint view | | initialView | 'backlog' \| 'current-sprint' \| 'all' | ❌ | Initial view (default: 'backlog') |

JiraIssueTable

| Prop | Type | Required | Description | |------|------|----------|-------------| | jiraDomain | string | ✅ | Your Jira domain | | jiraEmail | string | ✅ | Email address | | jiraToken | string | ✅ | Jira API token | | apiToken | string | ✅ | External API token | | apiBaseUrl | string | ✅ | API base URL | | projectKey | string | ✅ | Jira project key | | sprintType | 'backlog' \| 'current-sprint' \| 'all' | ❌ | Issue filter (default: 'backlog') | | boardId | string | ❌ | Required for 'current-sprint' | | maxResults | number | ❌ | Max issues to fetch (default: 50) | | onIssueSelected | (event: CustomEvent) => void | ❌ | Fired when issue is clicked | | onCreateIssueClick | () => void | ❌ | Fired when create button clicked | | onLoadError | (event: CustomEvent) => void | ❌ | Fired on load errors |

JiraIssueDetail

| Prop | Type | Required | Description | |------|------|----------|-------------| | jiraDomain | string | ✅ | Your Jira domain | | jiraEmail | string | ✅ | Email address | | jiraToken | string | ✅ | Jira API token | | apiToken | string | ✅ | External API token | | apiBaseUrl | string | ✅ | API base URL | | issueKey | string | ✅ | Issue key (e.g., "VINM-123") | | editable | boolean | ❌ | Show edit button (default: true) | | onEditClick | () => void | ❌ | Fired when edit button clicked | | onCloseClick | () => void | ❌ | Fired when close button clicked | | onStatusChanged | (event: CustomEvent) => void | ❌ | Fired when status changes | | onLoadError | (event: CustomEvent) => void | ❌ | Fired on load errors |

TypeScript Support

All components are fully typed with TypeScript definitions included. You'll get autocomplete and type checking for all props and events.

import { JiraDashboard } from '@wasilabsoftware/jira-extension-plugin-react';
import type { IssueSelectedEventDetail } from '@wasilabsoftware/jira-extension-plugin-react';

function App() {
  const handleIssueSelected = (event: CustomEvent<IssueSelectedEventDetail>) => {
    const { issueKey } = event.detail; // Fully typed!
  };

  return (
    <JiraDashboard
      jiraDomain="https://example.atlassian.net"
      // TypeScript will enforce required props and validate types
      onIssueSelected={handleIssueSelected}
    />
  );
}

Styling

The components use CSS custom properties for theming. You can override these in your global CSS:

:root {
  --jira-color-primary: #0052cc;
  --jira-color-text-primary: #172b4d;
  --jira-font-family: 'Your Font', sans-serif;
}

See the main package for all available CSS variables.

Example: Complete Integration

import React, { useState } from 'react';
import {
  JiraDashboard,
  JiraIssueTable,
  JiraIssueDetail
} from '@wasilabsoftware/jira-extension-plugin-react';

function JiraApp() {
  const [view, setView] = useState<'list' | 'detail'>('list');
  const [selectedIssue, setSelectedIssue] = useState<string | null>(null);

  const authProps = {
    jiraDomain: process.env.REACT_APP_JIRA_DOMAIN!,
    jiraEmail: process.env.REACT_APP_JIRA_EMAIL!,
    jiraToken: process.env.REACT_APP_JIRA_TOKEN!,
    apiToken: process.env.REACT_APP_API_TOKEN!,
    apiBaseUrl: process.env.REACT_APP_API_BASE_URL!,
  };

  if (view === 'detail' && selectedIssue) {
    return (
      <JiraIssueDetail
        {...authProps}
        issueKey={selectedIssue}
        onCloseClick={() => setView('list')}
      />
    );
  }

  return (
    <JiraIssueTable
      {...authProps}
      projectKey="VINM"
      sprintType="backlog"
      onIssueSelected={(e) => {
        setSelectedIssue(e.detail.issueKey);
        setView('detail');
      }}
    />
  );
}

export default JiraApp;

API Requirements

This library requires a backend API proxy for Jira API calls. See the jira-extension-plugin documentation for API setup instructions.

Related Packages

License

MIT