@dk122809_org/support-widget
v1.0.1
Published
Embeddable SV Stack support widget for host applications.
Maintainers
Readme
@svstack/support-widget
Embeddable support module for host applications such as EMS, WMS, and eProcurement.
This package is for the in-app support experience:
- create new support tickets
- view only the logged-in user's own tickets
- add comments on those tickets
- render inside the host application without redirecting to
support.svstack.com
Usage
import { SupportWidget } from '@svstack/support-widget';
import '@svstack/support-widget/styles.css';
export default function SupportTab({ token, currentUser }) {
return (
<SupportWidget
apiBaseUrl="https://support-api.example.com/api"
token={token}
currentUser={currentUser}
productName="EMS"
title="Support"
subtitle="Create and track support requests inside EMS"
/>
);
}productName should be set by the host app such as EMS, WMS, or eProcurement. The create-ticket form does not ask the user for product input; the widget sends that value automatically to the API.
Publish
Build the package:
cd support-widget
npm install
npm run buildVerify the publish contents:
npm run pack:checkPublish to npm:
npm login
npm publish --access publicSplit model
- Embedded package: create + own tickets + comments
support.svstack.comportal: login + all tickets + comments + resolve, but no creation
