From e54564817eaf55f30e43b0d9812a000dc7417dd8 Mon Sep 17 00:00:00 2001 From: Martin Stamm Date: Mon, 29 Jul 2024 13:49:12 +0200 Subject: [PATCH] adasdfdsaf --- .github/workflows/CI.yml | 18 ++++++++++++ README.md | 27 ++++++++++++++++++ demo.config.mjs | 2 +- {test/example => example}/App.css | 0 {test/example => example}/App.jsx | 0 .../BottomPanel/BottomPanel.jsx | 2 +- .../BottomPanel/Bottom_panel_left.png | Bin .../BottomPanel/bottom-panel.css | 0 .../example => example}/DropZone/DropZone.css | 0 .../example => example}/DropZone/DropZone.jsx | 0 {test/example => example}/Modeler/Modeler.css | 0 {test/example => example}/Modeler/Modeler.jsx | 0 .../Modeler/connectors/asana-connector-2.json | 0 ...omation-anywhere-outbound-connector-1.json | 0 .../connectors/aws-dynamodb-connector-6.json | 0 .../aws-eventbridge-connector-4.json | 0 .../aws-eventbridge-connector-boundary-2.json | 0 ...-eventbridge-connector-intermediate-3.json | 0 ...eventbridge-connector-message-start-1.json | 0 ...s-eventbridge-connector-start-event-2.json | 0 .../connectors/aws-lambda-connector-4.json | 0 .../connectors/aws-sns-connector-6.json | 0 .../aws-sns-inbound-boundary-2.json | 0 .../aws-sns-inbound-intermediate-3.json | 0 .../aws-sns-inbound-message-start-1.json | 0 .../aws-sns-inbound-start-event-2.json | 0 .../aws-sqs-boundary-connector-3.json | 0 .../connectors/aws-sqs-connector-9.json | 0 ...-sqs-inbound-intermediate-connector-8.json | 0 .../aws-sqs-start-event-connector-7.json | 0 .../connectors/aws-sqs-start-message-2.json | 0 .../connectors/blue-prism-connector-3.json | 0 .../connectors/easy-post-connector-3.json | 0 .../connectors/github-connector-4.json | 0 .../github-webhook-connector-boundary-2.json | 0 ...thub-webhook-connector-intermediate-3.json | 0 ...hub-webhook-connector-message-start-1.json | 0 ...ithub-webhook-connector-start-event-3.json | 0 .../connectors/gitlab-connector-3.json | 0 .../connectors/google-drive-connector-2.json | 0 .../google-maps-platform-connector-3.json | 0 .../connectors/google-sheets-connector-2.json | 0 .../connectors/graphql-connector-4.json | 0 .../connectors/http-json-connector-5.json | 0 .../http-json-connector-hybrid-5.json | 0 .../connectors/http-polling-connector-1.json | 0 .../http-polling-connector-boundary-1.json | 0 .../Modeler/connectors/kafka-connector-3.json | 0 .../kafka-connector-message-start-1.json | 0 .../connectors/kafka-inbound-connector-2.json | 0 .../kafka-inbound-connector-boundary-2.json | 0 .../kafka-inbound-connector-hybrid-2.json | 0 ...afka-inbound-connector-intermediate-1.json | 0 .../microsoft-office365-mail-connector-1.json | 0 .../microsoft-teams-connector-2.json | 0 .../connectors/openai-connector-3.json | 0 .../connectors/operate-connector-4.json | 0 .../power-automate-connector-3.json | 0 .../connectors/rabbitmq-connector-3.json | 0 ...rabbitmq-inbound-connector-boundary-2.json | 0 ...itmq-inbound-connector-intermediate-4.json | 0 ...tmq-inbound-connector-message-start-1.json | 0 ...bitmq-inbound-connector-start-event-3.json | 0 .../connectors/salesforce-connector-2.json | 0 .../connectors/sendgrid-connector-2.json | 0 .../Modeler/connectors/slack-connector-2.json | 0 .../connectors/slack-inbound-boundary-2.json | 0 .../slack-inbound-intermediate-4.json | 0 .../slack-inbound-message-start-2.json | 0 .../slack-inbound-start-event-3.json | 0 .../connectors/twilio-connector-3.json | 0 .../twilio-webhook-boundary-connector-2.json | 0 .../twilio-webhook-connector-2.json | 0 ...ilio-webhook-intermediate-connector-3.json | 0 ...lio-webhook-message-start-connector-1.json | 0 .../connectors/uipath-connector-4.json | 0 .../webhook-connector-boundary-2.json | 0 .../webhook-connector-intermediate-5.json | 0 .../webhook-connector-start-event-8.json | 0 .../webhook-connector-start-message-2.json | 0 .../connectors/whatsapp-connector-2.json | 0 {test/example => example}/Modeler/diagram.xml | 0 {test/example => example}/index.css | 0 {test/example => example}/index.html | 0 {test/example => example}/main.jsx | 0 package.json | 8 ++++-- 86 files changed, 52 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/CI.yml create mode 100644 README.md rename {test/example => example}/App.css (100%) rename {test/example => example}/App.jsx (100%) rename {test/example => example}/BottomPanel/BottomPanel.jsx (82%) rename {test/example => example}/BottomPanel/Bottom_panel_left.png (100%) rename {test/example => example}/BottomPanel/bottom-panel.css (100%) rename {test/example => example}/DropZone/DropZone.css (100%) rename {test/example => example}/DropZone/DropZone.jsx (100%) rename {test/example => example}/Modeler/Modeler.css (100%) rename {test/example => example}/Modeler/Modeler.jsx (100%) rename {test/example => example}/Modeler/connectors/asana-connector-2.json (100%) rename {test/example => example}/Modeler/connectors/automation-anywhere-outbound-connector-1.json (100%) rename {test/example => example}/Modeler/connectors/aws-dynamodb-connector-6.json (100%) rename {test/example => example}/Modeler/connectors/aws-eventbridge-connector-4.json (100%) rename {test/example => example}/Modeler/connectors/aws-eventbridge-connector-boundary-2.json (100%) rename {test/example => example}/Modeler/connectors/aws-eventbridge-connector-intermediate-3.json (100%) rename {test/example => example}/Modeler/connectors/aws-eventbridge-connector-message-start-1.json (100%) rename {test/example => example}/Modeler/connectors/aws-eventbridge-connector-start-event-2.json (100%) rename {test/example => example}/Modeler/connectors/aws-lambda-connector-4.json (100%) rename {test/example => example}/Modeler/connectors/aws-sns-connector-6.json (100%) rename {test/example => example}/Modeler/connectors/aws-sns-inbound-boundary-2.json (100%) rename {test/example => example}/Modeler/connectors/aws-sns-inbound-intermediate-3.json (100%) rename {test/example => example}/Modeler/connectors/aws-sns-inbound-message-start-1.json (100%) rename {test/example => example}/Modeler/connectors/aws-sns-inbound-start-event-2.json (100%) rename {test/example => example}/Modeler/connectors/aws-sqs-boundary-connector-3.json (100%) rename {test/example => example}/Modeler/connectors/aws-sqs-connector-9.json (100%) rename {test/example => example}/Modeler/connectors/aws-sqs-inbound-intermediate-connector-8.json (100%) rename {test/example => example}/Modeler/connectors/aws-sqs-start-event-connector-7.json (100%) rename {test/example => example}/Modeler/connectors/aws-sqs-start-message-2.json (100%) rename {test/example => example}/Modeler/connectors/blue-prism-connector-3.json (100%) rename {test/example => example}/Modeler/connectors/easy-post-connector-3.json (100%) rename {test/example => example}/Modeler/connectors/github-connector-4.json (100%) rename {test/example => example}/Modeler/connectors/github-webhook-connector-boundary-2.json (100%) rename {test/example => example}/Modeler/connectors/github-webhook-connector-intermediate-3.json (100%) rename {test/example => example}/Modeler/connectors/github-webhook-connector-message-start-1.json (100%) rename {test/example => example}/Modeler/connectors/github-webhook-connector-start-event-3.json (100%) rename {test/example => example}/Modeler/connectors/gitlab-connector-3.json (100%) rename {test/example => example}/Modeler/connectors/google-drive-connector-2.json (100%) rename {test/example => example}/Modeler/connectors/google-maps-platform-connector-3.json (100%) rename {test/example => example}/Modeler/connectors/google-sheets-connector-2.json (100%) rename {test/example => example}/Modeler/connectors/graphql-connector-4.json (100%) rename {test/example => example}/Modeler/connectors/http-json-connector-5.json (100%) rename {test/example => example}/Modeler/connectors/http-json-connector-hybrid-5.json (100%) rename {test/example => example}/Modeler/connectors/http-polling-connector-1.json (100%) rename {test/example => example}/Modeler/connectors/http-polling-connector-boundary-1.json (100%) rename {test/example => example}/Modeler/connectors/kafka-connector-3.json (100%) rename {test/example => example}/Modeler/connectors/kafka-connector-message-start-1.json (100%) rename {test/example => example}/Modeler/connectors/kafka-inbound-connector-2.json (100%) rename {test/example => example}/Modeler/connectors/kafka-inbound-connector-boundary-2.json (100%) rename {test/example => example}/Modeler/connectors/kafka-inbound-connector-hybrid-2.json (100%) rename {test/example => example}/Modeler/connectors/kafka-inbound-connector-intermediate-1.json (100%) rename {test/example => example}/Modeler/connectors/microsoft-office365-mail-connector-1.json (100%) rename {test/example => example}/Modeler/connectors/microsoft-teams-connector-2.json (100%) rename {test/example => example}/Modeler/connectors/openai-connector-3.json (100%) rename {test/example => example}/Modeler/connectors/operate-connector-4.json (100%) rename {test/example => example}/Modeler/connectors/power-automate-connector-3.json (100%) rename {test/example => example}/Modeler/connectors/rabbitmq-connector-3.json (100%) rename {test/example => example}/Modeler/connectors/rabbitmq-inbound-connector-boundary-2.json (100%) rename {test/example => example}/Modeler/connectors/rabbitmq-inbound-connector-intermediate-4.json (100%) rename {test/example => example}/Modeler/connectors/rabbitmq-inbound-connector-message-start-1.json (100%) rename {test/example => example}/Modeler/connectors/rabbitmq-inbound-connector-start-event-3.json (100%) rename {test/example => example}/Modeler/connectors/salesforce-connector-2.json (100%) rename {test/example => example}/Modeler/connectors/sendgrid-connector-2.json (100%) rename {test/example => example}/Modeler/connectors/slack-connector-2.json (100%) rename {test/example => example}/Modeler/connectors/slack-inbound-boundary-2.json (100%) rename {test/example => example}/Modeler/connectors/slack-inbound-intermediate-4.json (100%) rename {test/example => example}/Modeler/connectors/slack-inbound-message-start-2.json (100%) rename {test/example => example}/Modeler/connectors/slack-inbound-start-event-3.json (100%) rename {test/example => example}/Modeler/connectors/twilio-connector-3.json (100%) rename {test/example => example}/Modeler/connectors/twilio-webhook-boundary-connector-2.json (100%) rename {test/example => example}/Modeler/connectors/twilio-webhook-connector-2.json (100%) rename {test/example => example}/Modeler/connectors/twilio-webhook-intermediate-connector-3.json (100%) rename {test/example => example}/Modeler/connectors/twilio-webhook-message-start-connector-1.json (100%) rename {test/example => example}/Modeler/connectors/uipath-connector-4.json (100%) rename {test/example => example}/Modeler/connectors/webhook-connector-boundary-2.json (100%) rename {test/example => example}/Modeler/connectors/webhook-connector-intermediate-5.json (100%) rename {test/example => example}/Modeler/connectors/webhook-connector-start-event-8.json (100%) rename {test/example => example}/Modeler/connectors/webhook-connector-start-message-2.json (100%) rename {test/example => example}/Modeler/connectors/whatsapp-connector-2.json (100%) rename {test/example => example}/Modeler/diagram.xml (100%) rename {test/example => example}/index.css (100%) rename {test/example => example}/index.html (100%) rename {test/example => example}/main.jsx (100%) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..71bda94 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,18 @@ +name: CI +on: [ push, pull_request ] +jobs: + Build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + - name: Install dependencies + run: npm ci + - name: Build + run: xvfb-run npm run all diff --git a/README.md b/README.md new file mode 100644 index 0000000..fd7504c --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# @bpmn-io/variable-outline + +A React component to display variables in a BPMN diagram. + +## Usage + +Simply add the component to your existing React application and pass the bpmn-js +`injector` to the component: + +```js +import VariableOutline from '@bpmn-io/variable-outline'; +import '@bpmn-io/variable-outline/dist/style.css'; + +export function MyComponent(props) { + const { + injector + } = props; + + return +} +``` + +## Development + +Start a demo page with `npm run start`. + +Run all tests with `npm run test` \ No newline at end of file diff --git a/demo.config.mjs b/demo.config.mjs index a7d4501..45d78ba 100644 --- a/demo.config.mjs +++ b/demo.config.mjs @@ -4,7 +4,7 @@ import svgr from 'vite-plugin-svgr'; // https://vitejs.dev/config/ export default defineConfig({ - root: 'test/example', + root: 'example', plugins: [ react(), svgr() diff --git a/test/example/App.css b/example/App.css similarity index 100% rename from test/example/App.css rename to example/App.css diff --git a/test/example/App.jsx b/example/App.jsx similarity index 100% rename from test/example/App.jsx rename to example/App.jsx diff --git a/test/example/BottomPanel/BottomPanel.jsx b/example/BottomPanel/BottomPanel.jsx similarity index 82% rename from test/example/BottomPanel/BottomPanel.jsx rename to example/BottomPanel/BottomPanel.jsx index f1102ba..a6d88ce 100644 --- a/test/example/BottomPanel/BottomPanel.jsx +++ b/example/BottomPanel/BottomPanel.jsx @@ -1,5 +1,5 @@ import './bottom-panel.css'; -import ReactComponent from '../../../lib/'; +import ReactComponent from '../../lib'; export const BottomPanel = ({ injector }) => { diff --git a/test/example/BottomPanel/Bottom_panel_left.png b/example/BottomPanel/Bottom_panel_left.png similarity index 100% rename from test/example/BottomPanel/Bottom_panel_left.png rename to example/BottomPanel/Bottom_panel_left.png diff --git a/test/example/BottomPanel/bottom-panel.css b/example/BottomPanel/bottom-panel.css similarity index 100% rename from test/example/BottomPanel/bottom-panel.css rename to example/BottomPanel/bottom-panel.css diff --git a/test/example/DropZone/DropZone.css b/example/DropZone/DropZone.css similarity index 100% rename from test/example/DropZone/DropZone.css rename to example/DropZone/DropZone.css diff --git a/test/example/DropZone/DropZone.jsx b/example/DropZone/DropZone.jsx similarity index 100% rename from test/example/DropZone/DropZone.jsx rename to example/DropZone/DropZone.jsx diff --git a/test/example/Modeler/Modeler.css b/example/Modeler/Modeler.css similarity index 100% rename from test/example/Modeler/Modeler.css rename to example/Modeler/Modeler.css diff --git a/test/example/Modeler/Modeler.jsx b/example/Modeler/Modeler.jsx similarity index 100% rename from test/example/Modeler/Modeler.jsx rename to example/Modeler/Modeler.jsx diff --git a/test/example/Modeler/connectors/asana-connector-2.json b/example/Modeler/connectors/asana-connector-2.json similarity index 100% rename from test/example/Modeler/connectors/asana-connector-2.json rename to example/Modeler/connectors/asana-connector-2.json diff --git a/test/example/Modeler/connectors/automation-anywhere-outbound-connector-1.json b/example/Modeler/connectors/automation-anywhere-outbound-connector-1.json similarity index 100% rename from test/example/Modeler/connectors/automation-anywhere-outbound-connector-1.json rename to example/Modeler/connectors/automation-anywhere-outbound-connector-1.json diff --git a/test/example/Modeler/connectors/aws-dynamodb-connector-6.json b/example/Modeler/connectors/aws-dynamodb-connector-6.json similarity index 100% rename from test/example/Modeler/connectors/aws-dynamodb-connector-6.json rename to example/Modeler/connectors/aws-dynamodb-connector-6.json diff --git a/test/example/Modeler/connectors/aws-eventbridge-connector-4.json b/example/Modeler/connectors/aws-eventbridge-connector-4.json similarity index 100% rename from test/example/Modeler/connectors/aws-eventbridge-connector-4.json rename to example/Modeler/connectors/aws-eventbridge-connector-4.json diff --git a/test/example/Modeler/connectors/aws-eventbridge-connector-boundary-2.json b/example/Modeler/connectors/aws-eventbridge-connector-boundary-2.json similarity index 100% rename from test/example/Modeler/connectors/aws-eventbridge-connector-boundary-2.json rename to example/Modeler/connectors/aws-eventbridge-connector-boundary-2.json diff --git a/test/example/Modeler/connectors/aws-eventbridge-connector-intermediate-3.json b/example/Modeler/connectors/aws-eventbridge-connector-intermediate-3.json similarity index 100% rename from test/example/Modeler/connectors/aws-eventbridge-connector-intermediate-3.json rename to example/Modeler/connectors/aws-eventbridge-connector-intermediate-3.json diff --git a/test/example/Modeler/connectors/aws-eventbridge-connector-message-start-1.json b/example/Modeler/connectors/aws-eventbridge-connector-message-start-1.json similarity index 100% rename from test/example/Modeler/connectors/aws-eventbridge-connector-message-start-1.json rename to example/Modeler/connectors/aws-eventbridge-connector-message-start-1.json diff --git a/test/example/Modeler/connectors/aws-eventbridge-connector-start-event-2.json b/example/Modeler/connectors/aws-eventbridge-connector-start-event-2.json similarity index 100% rename from test/example/Modeler/connectors/aws-eventbridge-connector-start-event-2.json rename to example/Modeler/connectors/aws-eventbridge-connector-start-event-2.json diff --git a/test/example/Modeler/connectors/aws-lambda-connector-4.json b/example/Modeler/connectors/aws-lambda-connector-4.json similarity index 100% rename from test/example/Modeler/connectors/aws-lambda-connector-4.json rename to example/Modeler/connectors/aws-lambda-connector-4.json diff --git a/test/example/Modeler/connectors/aws-sns-connector-6.json b/example/Modeler/connectors/aws-sns-connector-6.json similarity index 100% rename from test/example/Modeler/connectors/aws-sns-connector-6.json rename to example/Modeler/connectors/aws-sns-connector-6.json diff --git a/test/example/Modeler/connectors/aws-sns-inbound-boundary-2.json b/example/Modeler/connectors/aws-sns-inbound-boundary-2.json similarity index 100% rename from test/example/Modeler/connectors/aws-sns-inbound-boundary-2.json rename to example/Modeler/connectors/aws-sns-inbound-boundary-2.json diff --git a/test/example/Modeler/connectors/aws-sns-inbound-intermediate-3.json b/example/Modeler/connectors/aws-sns-inbound-intermediate-3.json similarity index 100% rename from test/example/Modeler/connectors/aws-sns-inbound-intermediate-3.json rename to example/Modeler/connectors/aws-sns-inbound-intermediate-3.json diff --git a/test/example/Modeler/connectors/aws-sns-inbound-message-start-1.json b/example/Modeler/connectors/aws-sns-inbound-message-start-1.json similarity index 100% rename from test/example/Modeler/connectors/aws-sns-inbound-message-start-1.json rename to example/Modeler/connectors/aws-sns-inbound-message-start-1.json diff --git a/test/example/Modeler/connectors/aws-sns-inbound-start-event-2.json b/example/Modeler/connectors/aws-sns-inbound-start-event-2.json similarity index 100% rename from test/example/Modeler/connectors/aws-sns-inbound-start-event-2.json rename to example/Modeler/connectors/aws-sns-inbound-start-event-2.json diff --git a/test/example/Modeler/connectors/aws-sqs-boundary-connector-3.json b/example/Modeler/connectors/aws-sqs-boundary-connector-3.json similarity index 100% rename from test/example/Modeler/connectors/aws-sqs-boundary-connector-3.json rename to example/Modeler/connectors/aws-sqs-boundary-connector-3.json diff --git a/test/example/Modeler/connectors/aws-sqs-connector-9.json b/example/Modeler/connectors/aws-sqs-connector-9.json similarity index 100% rename from test/example/Modeler/connectors/aws-sqs-connector-9.json rename to example/Modeler/connectors/aws-sqs-connector-9.json diff --git a/test/example/Modeler/connectors/aws-sqs-inbound-intermediate-connector-8.json b/example/Modeler/connectors/aws-sqs-inbound-intermediate-connector-8.json similarity index 100% rename from test/example/Modeler/connectors/aws-sqs-inbound-intermediate-connector-8.json rename to example/Modeler/connectors/aws-sqs-inbound-intermediate-connector-8.json diff --git a/test/example/Modeler/connectors/aws-sqs-start-event-connector-7.json b/example/Modeler/connectors/aws-sqs-start-event-connector-7.json similarity index 100% rename from test/example/Modeler/connectors/aws-sqs-start-event-connector-7.json rename to example/Modeler/connectors/aws-sqs-start-event-connector-7.json diff --git a/test/example/Modeler/connectors/aws-sqs-start-message-2.json b/example/Modeler/connectors/aws-sqs-start-message-2.json similarity index 100% rename from test/example/Modeler/connectors/aws-sqs-start-message-2.json rename to example/Modeler/connectors/aws-sqs-start-message-2.json diff --git a/test/example/Modeler/connectors/blue-prism-connector-3.json b/example/Modeler/connectors/blue-prism-connector-3.json similarity index 100% rename from test/example/Modeler/connectors/blue-prism-connector-3.json rename to example/Modeler/connectors/blue-prism-connector-3.json diff --git a/test/example/Modeler/connectors/easy-post-connector-3.json b/example/Modeler/connectors/easy-post-connector-3.json similarity index 100% rename from test/example/Modeler/connectors/easy-post-connector-3.json rename to example/Modeler/connectors/easy-post-connector-3.json diff --git a/test/example/Modeler/connectors/github-connector-4.json b/example/Modeler/connectors/github-connector-4.json similarity index 100% rename from test/example/Modeler/connectors/github-connector-4.json rename to example/Modeler/connectors/github-connector-4.json diff --git a/test/example/Modeler/connectors/github-webhook-connector-boundary-2.json b/example/Modeler/connectors/github-webhook-connector-boundary-2.json similarity index 100% rename from test/example/Modeler/connectors/github-webhook-connector-boundary-2.json rename to example/Modeler/connectors/github-webhook-connector-boundary-2.json diff --git a/test/example/Modeler/connectors/github-webhook-connector-intermediate-3.json b/example/Modeler/connectors/github-webhook-connector-intermediate-3.json similarity index 100% rename from test/example/Modeler/connectors/github-webhook-connector-intermediate-3.json rename to example/Modeler/connectors/github-webhook-connector-intermediate-3.json diff --git a/test/example/Modeler/connectors/github-webhook-connector-message-start-1.json b/example/Modeler/connectors/github-webhook-connector-message-start-1.json similarity index 100% rename from test/example/Modeler/connectors/github-webhook-connector-message-start-1.json rename to example/Modeler/connectors/github-webhook-connector-message-start-1.json diff --git a/test/example/Modeler/connectors/github-webhook-connector-start-event-3.json b/example/Modeler/connectors/github-webhook-connector-start-event-3.json similarity index 100% rename from test/example/Modeler/connectors/github-webhook-connector-start-event-3.json rename to example/Modeler/connectors/github-webhook-connector-start-event-3.json diff --git a/test/example/Modeler/connectors/gitlab-connector-3.json b/example/Modeler/connectors/gitlab-connector-3.json similarity index 100% rename from test/example/Modeler/connectors/gitlab-connector-3.json rename to example/Modeler/connectors/gitlab-connector-3.json diff --git a/test/example/Modeler/connectors/google-drive-connector-2.json b/example/Modeler/connectors/google-drive-connector-2.json similarity index 100% rename from test/example/Modeler/connectors/google-drive-connector-2.json rename to example/Modeler/connectors/google-drive-connector-2.json diff --git a/test/example/Modeler/connectors/google-maps-platform-connector-3.json b/example/Modeler/connectors/google-maps-platform-connector-3.json similarity index 100% rename from test/example/Modeler/connectors/google-maps-platform-connector-3.json rename to example/Modeler/connectors/google-maps-platform-connector-3.json diff --git a/test/example/Modeler/connectors/google-sheets-connector-2.json b/example/Modeler/connectors/google-sheets-connector-2.json similarity index 100% rename from test/example/Modeler/connectors/google-sheets-connector-2.json rename to example/Modeler/connectors/google-sheets-connector-2.json diff --git a/test/example/Modeler/connectors/graphql-connector-4.json b/example/Modeler/connectors/graphql-connector-4.json similarity index 100% rename from test/example/Modeler/connectors/graphql-connector-4.json rename to example/Modeler/connectors/graphql-connector-4.json diff --git a/test/example/Modeler/connectors/http-json-connector-5.json b/example/Modeler/connectors/http-json-connector-5.json similarity index 100% rename from test/example/Modeler/connectors/http-json-connector-5.json rename to example/Modeler/connectors/http-json-connector-5.json diff --git a/test/example/Modeler/connectors/http-json-connector-hybrid-5.json b/example/Modeler/connectors/http-json-connector-hybrid-5.json similarity index 100% rename from test/example/Modeler/connectors/http-json-connector-hybrid-5.json rename to example/Modeler/connectors/http-json-connector-hybrid-5.json diff --git a/test/example/Modeler/connectors/http-polling-connector-1.json b/example/Modeler/connectors/http-polling-connector-1.json similarity index 100% rename from test/example/Modeler/connectors/http-polling-connector-1.json rename to example/Modeler/connectors/http-polling-connector-1.json diff --git a/test/example/Modeler/connectors/http-polling-connector-boundary-1.json b/example/Modeler/connectors/http-polling-connector-boundary-1.json similarity index 100% rename from test/example/Modeler/connectors/http-polling-connector-boundary-1.json rename to example/Modeler/connectors/http-polling-connector-boundary-1.json diff --git a/test/example/Modeler/connectors/kafka-connector-3.json b/example/Modeler/connectors/kafka-connector-3.json similarity index 100% rename from test/example/Modeler/connectors/kafka-connector-3.json rename to example/Modeler/connectors/kafka-connector-3.json diff --git a/test/example/Modeler/connectors/kafka-connector-message-start-1.json b/example/Modeler/connectors/kafka-connector-message-start-1.json similarity index 100% rename from test/example/Modeler/connectors/kafka-connector-message-start-1.json rename to example/Modeler/connectors/kafka-connector-message-start-1.json diff --git a/test/example/Modeler/connectors/kafka-inbound-connector-2.json b/example/Modeler/connectors/kafka-inbound-connector-2.json similarity index 100% rename from test/example/Modeler/connectors/kafka-inbound-connector-2.json rename to example/Modeler/connectors/kafka-inbound-connector-2.json diff --git a/test/example/Modeler/connectors/kafka-inbound-connector-boundary-2.json b/example/Modeler/connectors/kafka-inbound-connector-boundary-2.json similarity index 100% rename from test/example/Modeler/connectors/kafka-inbound-connector-boundary-2.json rename to example/Modeler/connectors/kafka-inbound-connector-boundary-2.json diff --git a/test/example/Modeler/connectors/kafka-inbound-connector-hybrid-2.json b/example/Modeler/connectors/kafka-inbound-connector-hybrid-2.json similarity index 100% rename from test/example/Modeler/connectors/kafka-inbound-connector-hybrid-2.json rename to example/Modeler/connectors/kafka-inbound-connector-hybrid-2.json diff --git a/test/example/Modeler/connectors/kafka-inbound-connector-intermediate-1.json b/example/Modeler/connectors/kafka-inbound-connector-intermediate-1.json similarity index 100% rename from test/example/Modeler/connectors/kafka-inbound-connector-intermediate-1.json rename to example/Modeler/connectors/kafka-inbound-connector-intermediate-1.json diff --git a/test/example/Modeler/connectors/microsoft-office365-mail-connector-1.json b/example/Modeler/connectors/microsoft-office365-mail-connector-1.json similarity index 100% rename from test/example/Modeler/connectors/microsoft-office365-mail-connector-1.json rename to example/Modeler/connectors/microsoft-office365-mail-connector-1.json diff --git a/test/example/Modeler/connectors/microsoft-teams-connector-2.json b/example/Modeler/connectors/microsoft-teams-connector-2.json similarity index 100% rename from test/example/Modeler/connectors/microsoft-teams-connector-2.json rename to example/Modeler/connectors/microsoft-teams-connector-2.json diff --git a/test/example/Modeler/connectors/openai-connector-3.json b/example/Modeler/connectors/openai-connector-3.json similarity index 100% rename from test/example/Modeler/connectors/openai-connector-3.json rename to example/Modeler/connectors/openai-connector-3.json diff --git a/test/example/Modeler/connectors/operate-connector-4.json b/example/Modeler/connectors/operate-connector-4.json similarity index 100% rename from test/example/Modeler/connectors/operate-connector-4.json rename to example/Modeler/connectors/operate-connector-4.json diff --git a/test/example/Modeler/connectors/power-automate-connector-3.json b/example/Modeler/connectors/power-automate-connector-3.json similarity index 100% rename from test/example/Modeler/connectors/power-automate-connector-3.json rename to example/Modeler/connectors/power-automate-connector-3.json diff --git a/test/example/Modeler/connectors/rabbitmq-connector-3.json b/example/Modeler/connectors/rabbitmq-connector-3.json similarity index 100% rename from test/example/Modeler/connectors/rabbitmq-connector-3.json rename to example/Modeler/connectors/rabbitmq-connector-3.json diff --git a/test/example/Modeler/connectors/rabbitmq-inbound-connector-boundary-2.json b/example/Modeler/connectors/rabbitmq-inbound-connector-boundary-2.json similarity index 100% rename from test/example/Modeler/connectors/rabbitmq-inbound-connector-boundary-2.json rename to example/Modeler/connectors/rabbitmq-inbound-connector-boundary-2.json diff --git a/test/example/Modeler/connectors/rabbitmq-inbound-connector-intermediate-4.json b/example/Modeler/connectors/rabbitmq-inbound-connector-intermediate-4.json similarity index 100% rename from test/example/Modeler/connectors/rabbitmq-inbound-connector-intermediate-4.json rename to example/Modeler/connectors/rabbitmq-inbound-connector-intermediate-4.json diff --git a/test/example/Modeler/connectors/rabbitmq-inbound-connector-message-start-1.json b/example/Modeler/connectors/rabbitmq-inbound-connector-message-start-1.json similarity index 100% rename from test/example/Modeler/connectors/rabbitmq-inbound-connector-message-start-1.json rename to example/Modeler/connectors/rabbitmq-inbound-connector-message-start-1.json diff --git a/test/example/Modeler/connectors/rabbitmq-inbound-connector-start-event-3.json b/example/Modeler/connectors/rabbitmq-inbound-connector-start-event-3.json similarity index 100% rename from test/example/Modeler/connectors/rabbitmq-inbound-connector-start-event-3.json rename to example/Modeler/connectors/rabbitmq-inbound-connector-start-event-3.json diff --git a/test/example/Modeler/connectors/salesforce-connector-2.json b/example/Modeler/connectors/salesforce-connector-2.json similarity index 100% rename from test/example/Modeler/connectors/salesforce-connector-2.json rename to example/Modeler/connectors/salesforce-connector-2.json diff --git a/test/example/Modeler/connectors/sendgrid-connector-2.json b/example/Modeler/connectors/sendgrid-connector-2.json similarity index 100% rename from test/example/Modeler/connectors/sendgrid-connector-2.json rename to example/Modeler/connectors/sendgrid-connector-2.json diff --git a/test/example/Modeler/connectors/slack-connector-2.json b/example/Modeler/connectors/slack-connector-2.json similarity index 100% rename from test/example/Modeler/connectors/slack-connector-2.json rename to example/Modeler/connectors/slack-connector-2.json diff --git a/test/example/Modeler/connectors/slack-inbound-boundary-2.json b/example/Modeler/connectors/slack-inbound-boundary-2.json similarity index 100% rename from test/example/Modeler/connectors/slack-inbound-boundary-2.json rename to example/Modeler/connectors/slack-inbound-boundary-2.json diff --git a/test/example/Modeler/connectors/slack-inbound-intermediate-4.json b/example/Modeler/connectors/slack-inbound-intermediate-4.json similarity index 100% rename from test/example/Modeler/connectors/slack-inbound-intermediate-4.json rename to example/Modeler/connectors/slack-inbound-intermediate-4.json diff --git a/test/example/Modeler/connectors/slack-inbound-message-start-2.json b/example/Modeler/connectors/slack-inbound-message-start-2.json similarity index 100% rename from test/example/Modeler/connectors/slack-inbound-message-start-2.json rename to example/Modeler/connectors/slack-inbound-message-start-2.json diff --git a/test/example/Modeler/connectors/slack-inbound-start-event-3.json b/example/Modeler/connectors/slack-inbound-start-event-3.json similarity index 100% rename from test/example/Modeler/connectors/slack-inbound-start-event-3.json rename to example/Modeler/connectors/slack-inbound-start-event-3.json diff --git a/test/example/Modeler/connectors/twilio-connector-3.json b/example/Modeler/connectors/twilio-connector-3.json similarity index 100% rename from test/example/Modeler/connectors/twilio-connector-3.json rename to example/Modeler/connectors/twilio-connector-3.json diff --git a/test/example/Modeler/connectors/twilio-webhook-boundary-connector-2.json b/example/Modeler/connectors/twilio-webhook-boundary-connector-2.json similarity index 100% rename from test/example/Modeler/connectors/twilio-webhook-boundary-connector-2.json rename to example/Modeler/connectors/twilio-webhook-boundary-connector-2.json diff --git a/test/example/Modeler/connectors/twilio-webhook-connector-2.json b/example/Modeler/connectors/twilio-webhook-connector-2.json similarity index 100% rename from test/example/Modeler/connectors/twilio-webhook-connector-2.json rename to example/Modeler/connectors/twilio-webhook-connector-2.json diff --git a/test/example/Modeler/connectors/twilio-webhook-intermediate-connector-3.json b/example/Modeler/connectors/twilio-webhook-intermediate-connector-3.json similarity index 100% rename from test/example/Modeler/connectors/twilio-webhook-intermediate-connector-3.json rename to example/Modeler/connectors/twilio-webhook-intermediate-connector-3.json diff --git a/test/example/Modeler/connectors/twilio-webhook-message-start-connector-1.json b/example/Modeler/connectors/twilio-webhook-message-start-connector-1.json similarity index 100% rename from test/example/Modeler/connectors/twilio-webhook-message-start-connector-1.json rename to example/Modeler/connectors/twilio-webhook-message-start-connector-1.json diff --git a/test/example/Modeler/connectors/uipath-connector-4.json b/example/Modeler/connectors/uipath-connector-4.json similarity index 100% rename from test/example/Modeler/connectors/uipath-connector-4.json rename to example/Modeler/connectors/uipath-connector-4.json diff --git a/test/example/Modeler/connectors/webhook-connector-boundary-2.json b/example/Modeler/connectors/webhook-connector-boundary-2.json similarity index 100% rename from test/example/Modeler/connectors/webhook-connector-boundary-2.json rename to example/Modeler/connectors/webhook-connector-boundary-2.json diff --git a/test/example/Modeler/connectors/webhook-connector-intermediate-5.json b/example/Modeler/connectors/webhook-connector-intermediate-5.json similarity index 100% rename from test/example/Modeler/connectors/webhook-connector-intermediate-5.json rename to example/Modeler/connectors/webhook-connector-intermediate-5.json diff --git a/test/example/Modeler/connectors/webhook-connector-start-event-8.json b/example/Modeler/connectors/webhook-connector-start-event-8.json similarity index 100% rename from test/example/Modeler/connectors/webhook-connector-start-event-8.json rename to example/Modeler/connectors/webhook-connector-start-event-8.json diff --git a/test/example/Modeler/connectors/webhook-connector-start-message-2.json b/example/Modeler/connectors/webhook-connector-start-message-2.json similarity index 100% rename from test/example/Modeler/connectors/webhook-connector-start-message-2.json rename to example/Modeler/connectors/webhook-connector-start-message-2.json diff --git a/test/example/Modeler/connectors/whatsapp-connector-2.json b/example/Modeler/connectors/whatsapp-connector-2.json similarity index 100% rename from test/example/Modeler/connectors/whatsapp-connector-2.json rename to example/Modeler/connectors/whatsapp-connector-2.json diff --git a/test/example/Modeler/diagram.xml b/example/Modeler/diagram.xml similarity index 100% rename from test/example/Modeler/diagram.xml rename to example/Modeler/diagram.xml diff --git a/test/example/index.css b/example/index.css similarity index 100% rename from test/example/index.css rename to example/index.css diff --git a/test/example/index.html b/example/index.html similarity index 100% rename from test/example/index.html rename to example/index.html diff --git a/test/example/main.jsx b/example/main.jsx similarity index 100% rename from test/example/main.jsx rename to example/main.jsx diff --git a/package.json b/package.json index 6a7e676..77fdc72 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "@bpmn-io/variable-outline", "version": "0.0.0", - "description": "", + "description": "A React component to display variables in a BPMN diagram.", "main": "dist/variable-outline.mjs", "scripts": { - "all": "run-s lint test", + "all": "run-s lint test build", "start": "vite --config demo.config.mjs", "build": "vite build", "test": "vitest run", @@ -12,7 +12,9 @@ "lint": "eslint .", "prepare": "vite build" }, - "author": "", + "files": [ + "dist" + ], "license": "MIT", "dependencies": { "@carbon/icons-react": "^11.43.0",