Skip to content

docs(react-module-event): add README and @packageDocumentation TSDoc#4618

Open
odinr wants to merge 1 commit into
mainfrom
docs/react-module-event
Open

docs(react-module-event): add README and @packageDocumentation TSDoc#4618
odinr wants to merge 1 commit into
mainfrom
docs/react-module-event

Conversation

@odinr
Copy link
Copy Markdown
Collaborator

@odinr odinr commented May 5, 2026

Description

Add README and @packageDocumentation TSDoc to packages/react/modules/event.

What's included

  • README: exports table, useEventHandler and useEventStream with examples
  • TSDoc: @packageDocumentation block in src/index.ts

Closes equinor/fusion-core-tasks#877

Add README covering useEventHandler, useEventStream, EventConsumer,
and EventProvider with examples. Add @packageDocumentation to src/index.ts.

Closes equinor/fusion-core-tasks#877
Copilot AI review requested due to automatic review settings May 5, 2026 10:10
@odinr odinr requested a review from a team as a code owner May 5, 2026 10:10
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 5, 2026

⚠️ No Changeset found

Latest commit: 92c77f8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot added 👾 React 📚 documentation Improvements or additions to documentation 🧬 Modules labels May 5, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds consumer-facing documentation for the React Event module package (@equinor/fusion-framework-react-module-event) by introducing a package README and a @packageDocumentation block in the entrypoint. This improves discoverability and helps ensure the module is usable via docs/RAG.

Changes:

  • Added @packageDocumentation TSDoc to packages/react/modules/event/src/index.ts.
  • Added a new README.md describing exports and providing examples for useEventHandler and useEventStream.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
packages/react/modules/event/src/index.ts Adds package-level TSDoc describing the React hooks/context exports.
packages/react/modules/event/README.md New package README with exports table, hook usage examples, and related-link reference.


## Related

- [`@equinor/fusion-framework-module-event`](../../modules/event/README.md) — the underlying event module with full API documentation
**Signature:**

```ts
function useEventStream<TKey>(key: TKey, operator?: OperatorFunction): Observable;
**Signature:**

```ts
function useEventHandler(key: string, cb: FrameworkEventHandler): void;
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 55.98% 2179 / 3892
🔵 Statements 54.88% 2591 / 4721
🔵 Functions 43.41% 808 / 1861
🔵 Branches 36.67% 985 / 2686
File CoverageNo changed files found.
Generated in workflow #13600 for commit 92c77f8 by the Vitest Coverage Report Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📚 documentation Improvements or additions to documentation 🧬 Modules 👾 React

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants