You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .changeset/library-theming-api.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
Adds a public theming API for embedding hosts. You can now theme the editor with a typed helper instead of hand-writing CSS variables: `createApollonTheme()` maps a structured `ApollonTheme` (primary, background, grid, etc.) to the underlying `--apollon-*` custom properties, and `<Apollon>` accepts optional `theme` and `dataTheme` props (also available as `ApollonOptions` fields) that are applied to the editor mount node.
Everything ships from one entry now: `@tumaet/apollon` exports the `<Apollon>` React component, the hooks, the provider, and the imperative `ApollonEditor` API together, with every dependency external. `react`, `react-dom`, and `@xyflow/react` are required peers alongside `yjs` / `y-protocols`, so your app and the editor share a single copy of each — no duplicate React, and your bundle analyzer / SBOM sees the real packages instead of a copy inlined into one chunk.
6
+
7
+
If you imported from the `/react` or `/external` subpaths, switch to `@tumaet/apollon`:
8
+
9
+
-`@tumaet/apollon/external` → `@tumaet/apollon` — same `ApollonEditor` API, just drop the subpath.
10
+
-`@tumaet/apollon/react` → `@tumaet/apollon` — the component, hooks, and provider are on the main entry.
11
+
- Install the peers if you haven't: `react react-dom @xyflow/react` (npm 7+ auto-installs them; pnpm/yarn users add them explicitly).
12
+
- The main entry is a client module (`"use client"`) — import it from client components, not React Server Components.
13
+
-`@tumaet/apollon/internals` and `@tumaet/apollon/export` are unchanged.
14
+
15
+
See the [Upgrading guide](https://ls1intum.github.io/Apollon/library/upgrading) for the full walkthrough.
Copy file name to clipboardExpand all lines: .github/pull_request_template.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,5 +29,6 @@ Write "n/a — no Changesets-tracked package changed" if this PR doesn't touch @
29
29
-[ ] Added a changeset whose summary is written in the user's voice (`pnpm changeset`, [how](https://ls1intum.github.io/Apollon/contributor/development/release-notes/)) — or this PR doesn't touch a Changesets-tracked package (`@tumaet/apollon`, `@tumaet/webapp`, `@tumaet/server`)
30
30
-[ ] PR title's Conventional Commit type (`feat`/`fix`/…) matches the kind of change — it groups the release note
31
31
-[ ] Tests added or updated
32
+
-[ ] Ran `pnpm lint && pnpm format:check && pnpm build && pnpm test` locally — green
32
33
-[ ] Documentation updated (if applicable)
33
34
-[ ] Screenshots or screencasts attached (if a UI change)
Copy file name to clipboardExpand all lines: AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Conventions for AI coding agents in this repo, the TUM UML diagram editor. Follo
13
13
14
14
A pnpm + Vite monorepo (the server compiles with `tsc`, not Vite).
15
15
16
-
-**`library/`** — `@tumaet/apollon`, the embeddable React editor, published to npm. Native HTML + Base UI primitives (`@base-ui-components/react`) styled via `--apollon-*` CSS variables; `lucide-react` icons; Yjs collaboration — the live-cursor/presence layer lives here ([`collaboration.md`](docs/library/api/collaboration.md)).
16
+
-**`library/`** — `@tumaet/apollon`, the embeddable React editor, published to npm. Native HTML + Base UI primitives (`@base-ui/react`) styled via `--apollon-*` CSS variables; `lucide-react` icons; Yjs collaboration — the live-cursor/presence layer lives here ([`collaboration.md`](docs/library/api/collaboration.md)).
17
17
-**`standalone/webapp/`** — `@tumaet/webapp` (private). React + Vite + Tailwind; Capacitor for iOS/Android.
0 commit comments