diff --git a/.changeset/bump-sdk-package.md b/.changeset/bump-sdk-package.md new file mode 100644 index 00000000..1f61f395 --- /dev/null +++ b/.changeset/bump-sdk-package.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": minor +--- + +Bump sdk typescript package diff --git a/.changeset/config.json b/.changeset/config.json index 79364623..8c8da719 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -1,7 +1,7 @@ { - "changelog": ["@changesets/changelog-github", { "repo": "serverlessworkflow/editor" }], + "changelog": ["@changesets/changelog-github", { "repo": "open-workflow-specification/editor" }], "commit": false, - "fixed": [["@serverlessworkflow/*"]], + "fixed": [["@openworkflowspec/*"]], "access": "public", "baseBranch": "main", "updateInternalDependencies": "patch" diff --git a/.changeset/containment-auto-layout.md b/.changeset/containment-auto-layout.md new file mode 100644 index 00000000..6f6c0477 --- /dev/null +++ b/.changeset/containment-auto-layout.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": minor +--- + +Add containment support integrated with auto-layout. diff --git a/.changeset/custom-tooltip.md b/.changeset/custom-tooltip.md new file mode 100644 index 00000000..7533a893 --- /dev/null +++ b/.changeset/custom-tooltip.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": minor +--- + +Implementation of tooltip diff --git a/.changeset/edge-path-highlight.md b/.changeset/edge-path-highlight.md new file mode 100644 index 00000000..f84615e8 --- /dev/null +++ b/.changeset/edge-path-highlight.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": minor +--- + +Add edge path highlighting on selection. diff --git a/.changeset/edges-routing.md b/.changeset/edges-routing.md new file mode 100644 index 00000000..197cca4c --- /dev/null +++ b/.changeset/edges-routing.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": minor +--- + +Apply auto-layout calculated waypoints to edges defined into parent nodes. Add explicit north / south fixed ports to nodes defined in ELK graph. diff --git a/.changeset/entry-exit-nodes.md b/.changeset/entry-exit-nodes.md new file mode 100644 index 00000000..d70a180f --- /dev/null +++ b/.changeset/entry-exit-nodes.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": minor +--- + +Add entry/exit container nodes diff --git a/.changeset/fix-cjs-use-sync-external-store-bundle.md b/.changeset/fix-cjs-use-sync-external-store-bundle.md new file mode 100644 index 00000000..6bb6e56c --- /dev/null +++ b/.changeset/fix-cjs-use-sync-external-store-bundle.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": minor +--- + +Fix ESM compatibility by keeping use-sync-external-store external in the build and declaring it as a runtime dependency. diff --git a/.changeset/improve-accessibility.md b/.changeset/improve-accessibility.md new file mode 100644 index 00000000..797f0c72 --- /dev/null +++ b/.changeset/improve-accessibility.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": minor +--- + +Audit and improve accessibility diff --git a/.changeset/mermaid-export.md b/.changeset/mermaid-export.md new file mode 100644 index 00000000..ac741956 --- /dev/null +++ b/.changeset/mermaid-export.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": minor +--- + +Add mermaid export functionality diff --git a/.changeset/node-container-styling.md b/.changeset/node-container-styling.md new file mode 100644 index 00000000..34b32d2a --- /dev/null +++ b/.changeset/node-container-styling.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": minor +--- + +Update node container styling and other small styling fixes diff --git a/.changeset/parse-sdk-validation-errors.md b/.changeset/parse-sdk-validation-errors.md new file mode 100644 index 00000000..7e799416 --- /dev/null +++ b/.changeset/parse-sdk-validation-errors.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": minor +--- + +Parse SDK validation errors into an array and update it in the store. diff --git a/.changeset/read-only-mode.md b/.changeset/read-only-mode.md new file mode 100644 index 00000000..3aa15c9f --- /dev/null +++ b/.changeset/read-only-mode.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": minor +--- + +Enable read-only mode locking nodes and edges on the canvas. diff --git a/.changeset/renders-validation-errors.md b/.changeset/renders-validation-errors.md new file mode 100644 index 00000000..7c8bd269 --- /dev/null +++ b/.changeset/renders-validation-errors.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": patch +--- + +Renders SDK validation errors on the diagram and in the sidepanel diff --git a/.changeset/selected-node-details.md b/.changeset/selected-node-details.md new file mode 100644 index 00000000..6b3ad49b --- /dev/null +++ b/.changeset/selected-node-details.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": minor +--- + +Add selected node details to sidepanel diff --git a/.changeset/setup-changeset.md b/.changeset/setup-changeset.md new file mode 100644 index 00000000..7188897f --- /dev/null +++ b/.changeset/setup-changeset.md @@ -0,0 +1,6 @@ +--- +"@openworkflowspec/i18n": minor +"@openworkflowspec/diagram-editor": minor +--- + +Setup changeset for first minor release diff --git a/.changeset/small-style-changes.md b/.changeset/small-style-changes.md new file mode 100644 index 00000000..f81ddf2f --- /dev/null +++ b/.changeset/small-style-changes.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": minor +--- + +Small styling changes diff --git a/.changeset/storybook-styling.md b/.changeset/storybook-styling.md new file mode 100644 index 00000000..07b7d4c5 --- /dev/null +++ b/.changeset/storybook-styling.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": minor +--- + +Implemented Storybook enhancements including color theme selector, folder restructuring, test setup, collapsible sections, and removed boilerplate code. diff --git a/.changeset/style-minimap.md b/.changeset/style-minimap.md new file mode 100644 index 00000000..8670df86 --- /dev/null +++ b/.changeset/style-minimap.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": patch +--- + +Small styling tweaks to minimap and buttons diff --git a/.changeset/style-start-end-node.md b/.changeset/style-start-end-node.md new file mode 100644 index 00000000..c76f8275 --- /dev/null +++ b/.changeset/style-start-end-node.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": minor +--- + +Styled Start/End nodes as Mermaid-like start/end circles. diff --git a/.changeset/toast-alert.md b/.changeset/toast-alert.md new file mode 100644 index 00000000..fef3f301 --- /dev/null +++ b/.changeset/toast-alert.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": minor +--- + +add toast alert system through shadcn Sonner diff --git a/.changeset/workflow-examples.md b/.changeset/workflow-examples.md new file mode 100644 index 00000000..a83c950d --- /dev/null +++ b/.changeset/workflow-examples.md @@ -0,0 +1,5 @@ +--- +"@openworkflowspec/diagram-editor": minor +--- + +Add workflow examples to Storybook diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 494f1b1b..59a71ada 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,5 +1,5 @@ blank_issues_enabled: false contact_links: - - name: CNCF Slack (#serverless-workflow) + - name: CNCF Slack (#open-workflow) url: https://slack.cncf.io/ - about: Join the CNCF Slack workspace and visit #serverless-workflow for real-time support. \ No newline at end of file + about: Join the CNCF Slack workspace and visit #open-workflow for real-time support. diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 47c4719a..fa9da799 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -32,9 +32,9 @@ body: label: Definition of Done description: To be considered "Done," this feature must meet the following criteria. options: - - label: "Implementation: Fully implemented according to the Serverless Workflow spec." + - label: "Implementation: Fully implemented according to the Open Workflow spec." - label: "Unit Tests: Comprehensive unit tests are included and passing." - label: "Integration Tests: Verified within the monorepo and target environments (Web/VS Code)." - label: "Documentation: Updated README.md, ADRs, or official docs." - label: "Performance: No significant regression in editor responsiveness." - - label: "Accessibility: UI changes comply with accessibility standards." \ No newline at end of file + - label: "Accessibility: UI changes comply with accessibility standards." diff --git a/.github/actions/setup-ci/action.yml b/.github/actions/setup-ci/action.yml index 0d75e241..744e9371 100644 --- a/.github/actions/setup-ci/action.yml +++ b/.github/actions/setup-ci/action.yml @@ -1,5 +1,5 @@ # -# Copyright 2021-Present The Serverless Workflow Specification Authors +# Copyright 2021-Present The Open Workflow Specification Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.github/workflows/ci_build.yaml b/.github/workflows/ci_build.yaml index 244f0356..a2190238 100644 --- a/.github/workflows/ci_build.yaml +++ b/.github/workflows/ci_build.yaml @@ -1,5 +1,5 @@ # -# Copyright 2021-Present The Serverless Workflow Specification Authors +# Copyright 2021-Present The Open Workflow Specification Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.github/workflows/ci_check_license_headers.yaml b/.github/workflows/ci_check_license_headers.yaml index a4e3bd5c..c3dc988b 100644 --- a/.github/workflows/ci_check_license_headers.yaml +++ b/.github/workflows/ci_check_license_headers.yaml @@ -1,5 +1,5 @@ # -# Copyright 2021-Present The Serverless Workflow Specification Authors +# Copyright 2021-Present The Open Workflow Specification Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.github/workflows/ci_codeql.yml b/.github/workflows/ci_codeql.yml index 7a98a0b6..b2ebd57f 100644 --- a/.github/workflows/ci_codeql.yml +++ b/.github/workflows/ci_codeql.yml @@ -1,5 +1,5 @@ # -# Copyright 2021-Present The Serverless Workflow Specification Authors +# Copyright 2021-Present The Open Workflow Specification Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.github/workflows/prepare-release.yaml b/.github/workflows/prepare-release.yaml index c060c8f0..47d32a37 100644 --- a/.github/workflows/prepare-release.yaml +++ b/.github/workflows/prepare-release.yaml @@ -1,5 +1,5 @@ # -# Copyright 2021-Present The Serverless Workflow Specification Authors +# Copyright 2021-Present The Open Workflow Specification Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml index b41f428e..8703f972 100644 --- a/.github/workflows/publish-release.yaml +++ b/.github/workflows/publish-release.yaml @@ -1,5 +1,5 @@ # -# Copyright 2021-Present The Serverless Workflow Specification Authors +# Copyright 2021-Present The Open Workflow Specification Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ permissions: jobs: publish: if: | - github.repository == 'serverlessworkflow/editor' && + github.repository == 'open-workflow-specification/editor' && github.event.pull_request.merged == true && github.event.pull_request.user.login == 'github-actions[bot]' && github.event.pull_request.title == 'chore: version packages' && diff --git a/.github/workflows/sync-issues-to-project.md b/.github/workflows/sync-issues-to-project.md index 5a83a3e9..c7161752 100644 --- a/.github/workflows/sync-issues-to-project.md +++ b/.github/workflows/sync-issues-to-project.md @@ -1,5 +1,5 @@ -# Contributing to Serverless Workflow Editor +# Contributing to Open Workflow Editor -Thank you for your interest in contributing to the CNCF Serverless Workflow Editor! We welcome all types of contributions, including bug reports, feature requests, documentation improvements, and code changes. +Thank you for your interest in contributing to the Open Workflow Editor! We welcome all types of contributions, including bug reports, feature requests, documentation improvements, and code changes. -This project is the official, vendor-neutral visual editor for the [Serverless Workflow Specification](https://github.com/serverlessworkflow/specification). +This project is the official, vendor-neutral visual editor for the [Open Workflow Specification](https://github.com/serverlessworkflow/specification). --- @@ -35,7 +35,7 @@ The project is structured as a monorepo to support multiple distribution targets ```bash # Clone the repository -git clone https://github.com/serverlessworkflow/editor.git +git clone https://github.com/open-workflow-specification/editor.git cd editor # Install dependencies @@ -65,7 +65,7 @@ The project aims for the editor to be **embeddable**, with the core logic decoup ## Reporting an Issue -If you find a bug or have a question, please check the [existing issues](https://github.com/serverlessworkflow/editor/issues) first. +If you find a bug or have a question, please check the [existing issues](https://github.com/open-workflow-specification/editor/issues) first. 1. Open a new issue using the appropriate template. 2. Provide a clear description of the problem. @@ -125,7 +125,7 @@ The project uses multiple testing strategies: Unit tests are written using [Vitest](https://vitest.dev/) with React Testing Library. Tests mirror the source structure in `tests/`: ```bash -cd packages/serverless-workflow-diagram-editor +cd packages/open-workflow-diagram-editor pnpm test ``` @@ -134,7 +134,7 @@ pnpm test E2E tests use [Playwright](https://playwright.dev/) and are located in `tests-e2e/`: ```bash -cd packages/serverless-workflow-diagram-editor +cd packages/open-workflow-diagram-editor pnpm test-e2e # Run tests headless pnpm test-e2e:ui # Run with Playwright UI ``` @@ -151,7 +151,7 @@ pnpm playwright:install:ci Run TypeScript type checking: ```bash -cd packages/serverless-workflow-diagram-editor +cd packages/open-workflow-diagram-editor pnpm typecheck ``` @@ -159,7 +159,7 @@ pnpm typecheck Pull requests automatically trigger: -- **Netlify Deploy Previews**: Storybook is automatically built and deployed for PRs that modify the `@serverlessworkflow/diagram-editor` package, allowing reviewers to preview changes interactively. +- **Netlify Deploy Previews**: Storybook is automatically built and deployed for PRs that modify the `@openworkflowspec/diagram-editor` package, allowing reviewers to preview changes interactively. - **Automated Checks**: Linting, type checking, tests, and builds must pass before merging. ## Pull Request Process @@ -178,7 +178,7 @@ Pull requests automatically trigger: **Note:** If you don't have the `upstream` remote configured: ```bash - git remote add upstream https://github.com/serverlessworkflow/editor.git + git remote add upstream https://github.com/open-workflow-specification/editor.git ``` 6. **Submit** a Pull Request (PR). @@ -188,4 +188,4 @@ Pull requests automatically trigger: ### Community and Communication -Join the conversation on the [CNCF Slack](https://slack.cncf.io/) in the `#serverless-workflow` channel. +Join the conversation on the [CNCF Slack](https://slack.cncf.io/) in the `#open-workflow` channel. diff --git a/GOVERNANCE.md b/GOVERNANCE.md index 32014f18..d9728a63 100644 --- a/GOVERNANCE.md +++ b/GOVERNANCE.md @@ -1,12 +1,12 @@ -# ADR: Post-MVP Roadmap for the Serverless Workflow Editor +# ADR: Post-MVP Roadmap for the Open Workflow Editor **Status:** Proposed -> This ADR sets out the **post-MVP roadmap** for the Serverless Workflow editor - how it grows from the existing read-only viewer into a full visual authoring tool. The MVP (read-only visualisation) is covered by the prior [ADR](https://github.com/serverlessworkflow/specification/blob/main/adr/v1.0-adr-shared-workflow-editor.md) and assumed here as the starting point. +> This ADR sets out the **post-MVP roadmap** for the Open Workflow editor - how it grows from the existing read-only viewer into a full visual authoring tool. The MVP (read-only visualisation) is covered by the prior [ADR](https://github.com/serverlessworkflow/specification/blob/main/adr/v1.0-adr-shared-workflow-editor.md) and assumed here as the starting point. ## Purpose @@ -41,13 +41,13 @@ Two principles guide the design: ## Licensing -- **Apache 2.0** (consistent with Serverless Workflow specification) +- **Apache 2.0** (consistent with Open Workflow specification) - All dependencies must be CNCF-compatible ## Governance & Community Alignment -- The editor is developed and maintained **as part of the Serverless Workflow project**, by the community rather than any single vendor. -- A **multi-maintainer model** with representatives from Quarkus Flow/Sonata Flow, Serverless Workflow Specification maintainers and other interested engine maintainers (e.g Zigflow/Synapse/Lemline etc) following spec governance model. +- The editor is developed and maintained **as part of the Open Workflow project**, by the community rather than any single vendor. +- A **multi-maintainer model** with representatives from Quarkus Flow/Sonata Flow, Open Workflow Specification maintainers and other interested engine maintainers (e.g Zigflow/Synapse/Lemline etc) following spec governance model. - The **specification remains the authority**: the editor follows the spec, it does not extend or fork it. Where editor work surfaces gaps or ambiguities, those are raised back to the specification. ## Scope @@ -96,4 +96,4 @@ The same shared package is embedded into target tools. This work is **self-conta ## References - [Prior MVP ADR](https://github.com/serverlessworkflow/specification/blob/main/adr/v1.0-adr-shared-workflow-editor.md) -- [Serverless Workflow specification](https://github.com/serverlessworkflow/specification) +- [Open Workflow specification](https://github.com/serverlessworkflow/specification) diff --git a/netlify.toml b/netlify.toml index 83da046a..41d14aa5 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,5 +1,5 @@ # -# Copyright 2021-Present The Serverless Workflow Specification Authors +# Copyright 2021-Present The Open Workflow Specification Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,7 +17,7 @@ [build.environment] NODE_VERSION = "24" PNPM_VERSION = "10.31.0" - PREVIEW_PACKAGE_NAME = "@serverlessworkflow/diagram-editor" + PREVIEW_PACKAGE_NAME = "@openworkflowspec/diagram-editor" [build] command = """ @@ -25,7 +25,7 @@ pnpm -F "${PREVIEW_PACKAGE_NAME}..." build:dev pnpm -F "$PREVIEW_PACKAGE_NAME" build:storybook """ - publish = "packages/serverless-workflow-diagram-editor/dist-storybook" + publish = "packages/open-workflow-diagram-editor/dist-storybook" ignore = """ set -e -o pipefail git fetch --no-tags --depth=1 origin main:refs/remotes/origin/main diff --git a/package.json b/package.json index 59b0c203..56c9a4b7 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,15 @@ { - "name": "serverless-workflow-editor", + "name": "open-workflow-editor", "private": true, - "description": "CNCF Serverless Workflow Specification Visual Editor", - "homepage": "https://github.com/serverlessworkflow/editor", + "description": "Open Workflow Specification Visual Editor", + "homepage": "https://github.com/open-workflow-specification/editor", "bugs": { - "url": "https://github.com/serverlessworkflow/editor/issues" + "url": "https://github.com/open-workflow-specification/editor/issues" }, "license": "Apache-2.0", "repository": { "type": "git", - "url": "https://github.com/serverlessworkflow/editor.git" + "url": "https://github.com/open-workflow-specification/editor.git" }, "type": "module", "scripts": { diff --git a/packages/i18n/CHANGELOG.md b/packages/i18n/CHANGELOG.md index a8cdfeef..2ca6be44 100644 --- a/packages/i18n/CHANGELOG.md +++ b/packages/i18n/CHANGELOG.md @@ -1,4 +1,4 @@ -# @serverlessworkflow/i18n +# @openworkflowspec/i18n ## 0.1.0 @@ -7,7 +7,7 @@ - [#154](https://github.com/serverlessworkflow/editor/pull/154) [`a3a4566`](https://github.com/serverlessworkflow/editor/commit/a3a456643c04c38cf9396ea812e2260691426db2) Thanks [@fantonangeli](https://github.com/fantonangeli)! - Setup changeset for first minor release -# @serverlessworkflow/i18n +# @openworkflowspec/i18n A lightweight internationalization (i18n) package for React applications, providing simple translation support with automatic locale detection. ## Overview -This package provides a minimal i18n solution built on React Context, designed for use in the Serverless Workflow Diagram Editor and other React applications. +This package provides a minimal i18n solution built on React Context, designed for use in the Open Workflow Diagram Editor and other React applications. ## Features @@ -33,7 +33,7 @@ This package provides a minimal i18n solution built on React Context, designed f ## Installation ```bash -pnpm add @serverlessworkflow/i18n +pnpm add @openworkflowspec/i18n ``` ## API Reference @@ -81,7 +81,7 @@ export const dictionaries = { Choose the user's locale either manually or through automatic detection: ```ts -import { detectLocale } from "@serverlessworkflow/i18n"; +import { detectLocale } from "@openworkflowspec/i18n"; import { dictionaries } from "./i18n/locales"; const supportedLocales = Object.keys(dictionaries) as Array; @@ -106,7 +106,7 @@ const locale = props.locale ?? detectLocale(supportedLocales, "en"); ### 3. Wrap your app with `I18nProvider` ```tsx -import { I18nProvider } from "@serverlessworkflow/i18n"; +import { I18nProvider } from "@openworkflowspec/i18n"; import { dictionaries } from "./i18n/locales"; function App() { @@ -125,7 +125,7 @@ function App() { Inside any component within the provider: ```tsx -import { useI18n } from "@serverlessworkflow/i18n"; +import { useI18n } from "@openworkflowspec/i18n"; function MyComponent() { const { t, locale } = useI18n(); @@ -194,4 +194,4 @@ Apache-2.0 ## Repository -Part of the [Serverless Workflow Editor](https://github.com/serverlessworkflow/editor) monorepo. +Part of the [Open Workflow Editor](https://github.com/open-workflow-specification/editor) monorepo. diff --git a/packages/i18n/package.json b/packages/i18n/package.json index b0efd37c..c6506c8f 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -1,16 +1,16 @@ { - "name": "@serverlessworkflow/i18n", + "name": "@openworkflowspec/i18n", "version": "0.1.0", - "description": "Serverless workflow internationalization component", + "description": "Open workflow internationalization component", "keywords": [], - "homepage": "https://github.com/serverlessworkflow/editor", + "homepage": "https://github.com/open-workflow-specification/editor", "bugs": { - "url": "https://github.com/serverlessworkflow/editor/issues" + "url": "https://github.com/open-workflow-specification/editor/issues" }, "license": "Apache-2.0", "repository": { "type": "git", - "url": "https://github.com/serverlessworkflow/editor.git" + "url": "https://github.com/open-workflow-specification/editor.git" }, "files": [ "dist", diff --git a/packages/i18n/src/core/createI18n.ts b/packages/i18n/src/core/createI18n.ts index dc8e472b..f29575f9 100644 --- a/packages/i18n/src/core/createI18n.ts +++ b/packages/i18n/src/core/createI18n.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/i18n/src/index.ts b/packages/i18n/src/index.ts index f1e375ff..c77e50d4 100644 --- a/packages/i18n/src/index.ts +++ b/packages/i18n/src/index.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/i18n/src/react/I18nProvider.tsx b/packages/i18n/src/react/I18nProvider.tsx index 9e82fd1c..0bf32f52 100644 --- a/packages/i18n/src/react/I18nProvider.tsx +++ b/packages/i18n/src/react/I18nProvider.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/i18n/src/utils/detectLocale.ts b/packages/i18n/src/utils/detectLocale.ts index bd1de452..f6f41679 100644 --- a/packages/i18n/src/utils/detectLocale.ts +++ b/packages/i18n/src/utils/detectLocale.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/i18n/tests/I18nProvider.test.tsx b/packages/i18n/tests/I18nProvider.test.tsx index f306b720..6689f6f3 100644 --- a/packages/i18n/tests/I18nProvider.test.tsx +++ b/packages/i18n/tests/I18nProvider.test.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/i18n/tests/createI18n.test.ts b/packages/i18n/tests/createI18n.test.ts index 645c006c..f8aecfae 100644 --- a/packages/i18n/tests/createI18n.test.ts +++ b/packages/i18n/tests/createI18n.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/i18n/tests/detectLocale.test.ts b/packages/i18n/tests/detectLocale.test.ts index 19b5401a..c8e83c48 100644 --- a/packages/i18n/tests/detectLocale.test.ts +++ b/packages/i18n/tests/detectLocale.test.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/i18n/tests/setupTests.ts b/packages/i18n/tests/setupTests.ts index b06ea034..08142dc6 100644 --- a/packages/i18n/tests/setupTests.ts +++ b/packages/i18n/tests/setupTests.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/i18n/vite.config.ts b/packages/i18n/vite.config.ts index f5e513d0..30f5b61c 100644 --- a/packages/i18n/vite.config.ts +++ b/packages/i18n/vite.config.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/i18n/vitest.config.ts b/packages/i18n/vitest.config.ts index 66d98e9a..336b69ef 100644 --- a/packages/i18n/vitest.config.ts +++ b/packages/i18n/vitest.config.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/serverless-workflow-diagram-editor/.oxfmtrc.json b/packages/open-workflow-diagram-editor/.oxfmtrc.json similarity index 100% rename from packages/serverless-workflow-diagram-editor/.oxfmtrc.json rename to packages/open-workflow-diagram-editor/.oxfmtrc.json diff --git a/packages/serverless-workflow-diagram-editor/.oxlintrc.json b/packages/open-workflow-diagram-editor/.oxlintrc.json similarity index 100% rename from packages/serverless-workflow-diagram-editor/.oxlintrc.json rename to packages/open-workflow-diagram-editor/.oxlintrc.json diff --git a/packages/serverless-workflow-diagram-editor/.storybook/main.ts b/packages/open-workflow-diagram-editor/.storybook/main.ts similarity index 81% rename from packages/serverless-workflow-diagram-editor/.storybook/main.ts rename to packages/open-workflow-diagram-editor/.storybook/main.ts index 8a59bd3b..a4511bb5 100644 --- a/packages/serverless-workflow-diagram-editor/.storybook/main.ts +++ b/packages/open-workflow-diagram-editor/.storybook/main.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,12 @@ const config: StorybookConfig = { disableTelemetry: true, // Do not collect data }, stories: ["../stories/**/*.mdx", "../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)"], - addons: ["@chromatic-com/storybook", "@storybook/addon-vitest", "@storybook/addon-a11y", "@storybook/addon-docs"], + addons: [ + "@chromatic-com/storybook", + "@storybook/addon-vitest", + "@storybook/addon-a11y", + "@storybook/addon-docs", + ], framework: "@storybook/react-vite", }; diff --git a/packages/serverless-workflow-diagram-editor/.storybook/preview.tsx b/packages/open-workflow-diagram-editor/.storybook/preview.tsx similarity index 96% rename from packages/serverless-workflow-diagram-editor/.storybook/preview.tsx rename to packages/open-workflow-diagram-editor/.storybook/preview.tsx index c43d6a91..c1d56a04 100644 --- a/packages/serverless-workflow-diagram-editor/.storybook/preview.tsx +++ b/packages/open-workflow-diagram-editor/.storybook/preview.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/serverless-workflow-diagram-editor/CHANGELOG.md b/packages/open-workflow-diagram-editor/CHANGELOG.md similarity index 98% rename from packages/serverless-workflow-diagram-editor/CHANGELOG.md rename to packages/open-workflow-diagram-editor/CHANGELOG.md index 3a759fcb..92d5b0ee 100644 --- a/packages/serverless-workflow-diagram-editor/CHANGELOG.md +++ b/packages/open-workflow-diagram-editor/CHANGELOG.md @@ -1,4 +1,4 @@ -# @serverlessworkflow/diagram-editor +# @openworkflowspec/diagram-editor ## 0.1.0 @@ -52,7 +52,7 @@ - @serverlessworkflow/i18n@0.1.0 -# @serverlessworkflow/diagram-editor +# @openworkflowspec/diagram-editor Official visual diagram editor for the [Open Workflow Specification](https://github.com/serverlessworkflow/specification). A vendor-neutral, embeddable React component with strict separation between core logic and platform APIs. @@ -23,6 +23,7 @@ Official visual diagram editor for the [Open Workflow Specification](https://git ### Requirements This package requires React 19 in the consuming application: + ```bash npm install react@^19 react-dom@^19 ``` @@ -30,11 +31,11 @@ npm install react@^19 react-dom@^19 ## Installation ```bash -npm install @serverlessworkflow/diagram-editor +npm install @openworkflowspec/diagram-editor # or -pnpm add @serverlessworkflow/diagram-editor +pnpm add @openworkflowspec/diagram-editor # or -yarn add @serverlessworkflow/diagram-editor +yarn add @openworkflowspec/diagram-editor ``` ### Usage @@ -42,8 +43,8 @@ yarn add @serverlessworkflow/diagram-editor Basic example: ```tsx -import { DiagramEditor } from '@serverlessworkflow/diagram-editor'; -import '@serverlessworkflow/diagram-editor/styles.css'; +import { DiagramEditor } from "@openworkflowspec/diagram-editor"; +import "@openworkflowspec/diagram-editor/styles.css"; const workflowContent = ` document: @@ -60,9 +61,8 @@ do: `; function App() { - return ( -
+
); @@ -71,19 +71,18 @@ function App() { ### Props -| Prop | Type | Required | Default | Description | -|------|------|----------|---------|-------------| -| `content` | `string` | Yes | - | Serverless Workflow specification in YAML or JSON format | -| `isReadOnly` | `boolean` | Yes | - | Enable read-only mode to prevent editing | -| `locale` | `string` | Yes | - | Language locale for the editor UI | -| `colorMode` | `'light' \| 'dark' \| 'system'` | No | `'system'` | Color theme for the editor | - +| Prop | Type | Required | Default | Description | +| ------------ | ------------------------------- | -------- | ---------- | -------------------------------------------------------- | +| `content` | `string` | Yes | - | Serverless Workflow specification in YAML or JSON format | +| `isReadOnly` | `boolean` | Yes | - | Enable read-only mode to prevent editing | +| `locale` | `string` | Yes | - | Language locale for the editor UI | +| `colorMode` | `'light' \| 'dark' \| 'system'` | No | `'system'` | Color theme for the editor | ## Development ```bash # Navigate to the package -cd packages/serverless-workflow-diagram-editor +cd packages/open-workflow-diagram-editor # Install dependencies (or run from repo root) pnpm install @@ -170,7 +169,7 @@ The shadcn CLI doesn't understand pnpm catalogs, so adding a component requires 1. **Generate the component** ```bash - cd packages/serverless-workflow-diagram-editor + cd packages/open-workflow-diagram-editor pnpm dlx shadcn@latest add ``` diff --git a/packages/serverless-workflow-diagram-editor/components.json b/packages/open-workflow-diagram-editor/components.json similarity index 100% rename from packages/serverless-workflow-diagram-editor/components.json rename to packages/open-workflow-diagram-editor/components.json diff --git a/packages/serverless-workflow-diagram-editor/package.json b/packages/open-workflow-diagram-editor/package.json similarity index 87% rename from packages/serverless-workflow-diagram-editor/package.json rename to packages/open-workflow-diagram-editor/package.json index 78a8f15f..2650f8fc 100644 --- a/packages/serverless-workflow-diagram-editor/package.json +++ b/packages/open-workflow-diagram-editor/package.json @@ -1,16 +1,16 @@ { - "name": "@serverlessworkflow/diagram-editor", + "name": "@openworkflowspec/diagram-editor", "version": "0.1.0", - "description": "React serverless workflow diagram component", + "description": "React open workflow diagram component", "keywords": [], - "homepage": "https://github.com/serverlessworkflow/editor", + "homepage": "https://github.com/open-workflow-specification/editor", "bugs": { - "url": "https://github.com/serverlessworkflow/editor/issues" + "url": "https://github.com/open-workflow-specification/editor/issues" }, "license": "Apache-2.0", "repository": { "type": "git", - "url": "https://github.com/serverlessworkflow/editor.git" + "url": "https://github.com/open-workflow-specification/editor.git" }, "files": [ "dist", @@ -41,7 +41,7 @@ "test-e2e:ui": "playwright test --ui" }, "dependencies": { - "@serverlessworkflow/i18n": "workspace:*", + "@openworkflowspec/i18n": "workspace:*", "@serverlessworkflow/sdk": "catalog:", "@xyflow/react": "catalog:", "class-variance-authority": "catalog:", diff --git a/packages/serverless-workflow-diagram-editor/playwright.config.ts b/packages/open-workflow-diagram-editor/playwright.config.ts similarity index 92% rename from packages/serverless-workflow-diagram-editor/playwright.config.ts rename to packages/open-workflow-diagram-editor/playwright.config.ts index 46b132dc..75768c59 100644 --- a/packages/serverless-workflow-diagram-editor/playwright.config.ts +++ b/packages/open-workflow-diagram-editor/playwright.config.ts @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/serverless-workflow-diagram-editor/src/components/ui/button.tsx b/packages/open-workflow-diagram-editor/src/components/ui/button.tsx similarity index 97% rename from packages/serverless-workflow-diagram-editor/src/components/ui/button.tsx rename to packages/open-workflow-diagram-editor/src/components/ui/button.tsx index 89b6c373..c24d08b6 100644 --- a/packages/serverless-workflow-diagram-editor/src/components/ui/button.tsx +++ b/packages/open-workflow-diagram-editor/src/components/ui/button.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/serverless-workflow-diagram-editor/src/components/ui/input.tsx b/packages/open-workflow-diagram-editor/src/components/ui/input.tsx similarity index 95% rename from packages/serverless-workflow-diagram-editor/src/components/ui/input.tsx rename to packages/open-workflow-diagram-editor/src/components/ui/input.tsx index 779b63ba..c13d40b8 100644 --- a/packages/serverless-workflow-diagram-editor/src/components/ui/input.tsx +++ b/packages/open-workflow-diagram-editor/src/components/ui/input.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/serverless-workflow-diagram-editor/src/components/ui/separator.tsx b/packages/open-workflow-diagram-editor/src/components/ui/separator.tsx similarity index 94% rename from packages/serverless-workflow-diagram-editor/src/components/ui/separator.tsx rename to packages/open-workflow-diagram-editor/src/components/ui/separator.tsx index a3346f94..68e8d52f 100644 --- a/packages/serverless-workflow-diagram-editor/src/components/ui/separator.tsx +++ b/packages/open-workflow-diagram-editor/src/components/ui/separator.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/serverless-workflow-diagram-editor/src/components/ui/shadcn.css b/packages/open-workflow-diagram-editor/src/components/ui/shadcn.css similarity index 96% rename from packages/serverless-workflow-diagram-editor/src/components/ui/shadcn.css rename to packages/open-workflow-diagram-editor/src/components/ui/shadcn.css index 69fa5f44..322e2c41 100644 --- a/packages/serverless-workflow-diagram-editor/src/components/ui/shadcn.css +++ b/packages/open-workflow-diagram-editor/src/components/ui/shadcn.css @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/serverless-workflow-diagram-editor/src/components/ui/sidebar.tsx b/packages/open-workflow-diagram-editor/src/components/ui/sidebar.tsx similarity index 99% rename from packages/serverless-workflow-diagram-editor/src/components/ui/sidebar.tsx rename to packages/open-workflow-diagram-editor/src/components/ui/sidebar.tsx index d7b5e99f..52b6fdd5 100644 --- a/packages/serverless-workflow-diagram-editor/src/components/ui/sidebar.tsx +++ b/packages/open-workflow-diagram-editor/src/components/ui/sidebar.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/serverless-workflow-diagram-editor/src/components/ui/skeleton.tsx b/packages/open-workflow-diagram-editor/src/components/ui/skeleton.tsx similarity index 92% rename from packages/serverless-workflow-diagram-editor/src/components/ui/skeleton.tsx rename to packages/open-workflow-diagram-editor/src/components/ui/skeleton.tsx index ee5fba64..5a25018f 100644 --- a/packages/serverless-workflow-diagram-editor/src/components/ui/skeleton.tsx +++ b/packages/open-workflow-diagram-editor/src/components/ui/skeleton.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/serverless-workflow-diagram-editor/src/components/ui/sonner.css b/packages/open-workflow-diagram-editor/src/components/ui/sonner.css similarity index 96% rename from packages/serverless-workflow-diagram-editor/src/components/ui/sonner.css rename to packages/open-workflow-diagram-editor/src/components/ui/sonner.css index c1896d09..661b1784 100644 --- a/packages/serverless-workflow-diagram-editor/src/components/ui/sonner.css +++ b/packages/open-workflow-diagram-editor/src/components/ui/sonner.css @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/serverless-workflow-diagram-editor/src/components/ui/sonner.tsx b/packages/open-workflow-diagram-editor/src/components/ui/sonner.tsx similarity index 95% rename from packages/serverless-workflow-diagram-editor/src/components/ui/sonner.tsx rename to packages/open-workflow-diagram-editor/src/components/ui/sonner.tsx index d5b9e2b6..e8de5262 100644 --- a/packages/serverless-workflow-diagram-editor/src/components/ui/sonner.tsx +++ b/packages/open-workflow-diagram-editor/src/components/ui/sonner.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/serverless-workflow-diagram-editor/src/components/ui/tooltip.tsx b/packages/open-workflow-diagram-editor/src/components/ui/tooltip.tsx similarity index 97% rename from packages/serverless-workflow-diagram-editor/src/components/ui/tooltip.tsx rename to packages/open-workflow-diagram-editor/src/components/ui/tooltip.tsx index e6f14d51..25e8920e 100644 --- a/packages/serverless-workflow-diagram-editor/src/components/ui/tooltip.tsx +++ b/packages/open-workflow-diagram-editor/src/components/ui/tooltip.tsx @@ -1,5 +1,5 @@ /* - * Copyright 2021-Present The Serverless Workflow Specification Authors + * Copyright 2021-Present The Open Workflow Specification Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/packages/serverless-workflow-diagram-editor/src/core/README.md b/packages/open-workflow-diagram-editor/src/core/README.md similarity index 87% rename from packages/serverless-workflow-diagram-editor/src/core/README.md rename to packages/open-workflow-diagram-editor/src/core/README.md index cf40b4e2..9cf3bd1d 100644 --- a/packages/serverless-workflow-diagram-editor/src/core/README.md +++ b/packages/open-workflow-diagram-editor/src/core/README.md @@ -1,5 +1,5 @@