Scan your whole stack
From OX Research Newsroom
Are you using @rytass/bpm-core-react?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.25.4
@rytass/bpm-core-react was last scanned on 24 Nov 2026 at version 0.25.4. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.25.4 LATEST | 24 Nov 2026 | No rules fired |
| 0.25.3 | 24 Nov 2026 | No rules fired |
| 0.25.2 | 24 Nov 2026 | No rules fired |
| 0.25.1 | 24 Nov 2026 | Not shown |
| 0.25.0 | 24 Nov 2026 | Not shown |
Findings for v0.25.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.25.4; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
React provider / hook / view components for the Rytass BPM approval workflow stack.
This package composes @mezzanine-ui/react primitives with the BPM domain logic in @rytass/bpm-core-client and @rytass/bpm-core-shared so a consumer can wire up the full BPM admin UI by re-exporting page modules from their Next.js App Router.
Form views understand the additive autocomplete and option-source schema
variants while preserving primitive single-value and multiple-value payloads.
Dynamic registry queries and server-side validation remain behind the BPM
client/core runtime boundaries; React controls do not call external sources
directly. Pass a dataSourceContext with kind: 'preview' for designer
preview or a published-template/instance kind: 'runtime' context for an
editable form. Read-only instance rendering should omit the runtime context
and pass optionSnapshots so historical labels remain available without a
network query.
The controlled FormBuilderView loads only the host-registered DataSource
Catalog. It filters sources by control capability, supports typed field and
constant parameter bindings, preserves bindings when a field key is renamed,
and asks for confirmation before switching the selection mode, replacing an
already-configured DataSource, or removing a field used by another dynamic
field. Picking a source applies at once; switching away from a configured
source drops its bindings. The editor can send the complete schema to the
server-side lint contract before publishing.
The current version is in package.json and CHANGELOG.md (the packages
share one version number under nx release).
Version 0.4.0 was a breaking release that dropped the bundled navigation shell:
BPM views no longer wrap themselves in an <AppLayout> / Mezzanine <Navigation>,
and the host owns the layout chrome. The 0.4.0 entry in CHANGELOG.md has the
migration walkthrough. Host-facing widgets in the root barrel are useBPMMember,
useBPMLogout, and <BPMNotificationBellButton />. For a host integration
recipe, see docs/integration-guide.md.
pnpm add @rytass/bpm-core-react @rytass/bpm-core-client @rytass/bpm-core-shared @mezzanine-ui/react @mezzanine-ui/icons
Required peers: react / react-dom 18+, @mezzanine-ui/react, @mezzanine-ui/core
and @mezzanine-ui/icons >=1.0.0 (this workspace develops against Mezzanine
1.7.0, pinned in the root package.json), plus @rytass/bpm-core-client and
@rytass/bpm-core-shared at the same version. Every other peer is declared
optional in package.json → peerDependenciesMeta and is needed only by the
feature that imports it:
next (>=15) — the pages/* and next/* subpaths; framework-agnostic
consumers can use views/* directly with their own router adapter.@xyflow/react, dagre — the flow designer and flow diagrams.@hello-pangea/dnd — drag-and-drop in the form builder.@uiw/react-codemirror, @codemirror/view, @codemirror/lang-json — JSON editors.react-pdf (>=10), pdfjs-dist (^5.4.296 || ^6.3.289) — PDF preview.ai (>=6), @ai-sdk/react, @ai-sdk/openai — the designer AI assistant.package.json is the authoritative list.
transpilePackages is not required by default. The published packages ship
compiled dist/ output with exports maps. This repository's apps/client
does not set transpilePackages (apps/client/next.config.js) and imports the
libraries through tsconfig path aliases to their source.
Add the setting only if your build reports an unresolved transitive import
under pnpm strict mode, for example @rytass/bpm-core-client/workflow imported
from inside node_modules/.pnpm/.... This README has not reproduced that
failure against the published packages; treat the snippet below as the workaround
to try in that case, not as a requirement.
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
// Include the sibling packages too — BPM views import from
// `@rytass/bpm-core-client/workflow`, `/organization`, `/template`,
// `/form` and re-export shared types from `@rytass/bpm-core-shared`.
// pnpm strict mode + Turbopack rejects the transitive resolution
// without each entry listed explicitly.
transpilePackages: [
'@rytass/bpm-core-react',
'@rytass/bpm-core-client',
'@rytass/bpm-core-shared',
],
};
The case pages check text field formats in a Web Worker started from a blob:
URL, so a designer's pattern that backtracks cannot freeze the page. If your
host sets a Content Security Policy, allow worker-src blob: (or script-src blob: where worker-src is not set). Without it the check falls back to the
main thread with no time limit; submitting still works.
The designer page shim (pages/templates/designer) reads these server-side
environment variables. Set them in the host's .env.local or deployment config.
BPM_AI_ASSISTANT_ENABLED=true: shows the designer AI assistant. It is hidden
by default. It also needs OPENAI_API_KEY (server-only); without the key the
toggle shows as a disabled placeholder.BPM_TEMPLATE_DRY_RUN_ENABLED=false: hides the 試跑流程 (dry-run) button. The
button is shown by default; only the exact value 'false' hides it.BPM_EXCLUDE_NODE_ACTORS_ALLOW_SKIPPABLE_STAGES=true: set it only when the API
host sets BPMRootModule excludeNodeActorsAllowSkippableStages: true. The
不可與前面關卡同一人 picker then also offers stages that can be skipped,
matching that host's publish check. Off by default. The compose wizard page
reads it too.For direct control, TemplateDesignerView accepts showAiAssistant,
aiAssistantAvailable, and showDryRun props.
BPM ships page bodies, providers, and widgets — never a full layout.
The host wires its own <Layout> / <Navigation> (or its own design
system equivalent), then drops BPM widgets and views into the slots:
// app/layout.tsx
import { BPMNextProviders } from '@rytass/bpm-core-react/next';
import { MyHostLayout } from './host-layout';
export default function RootLayout({ children }) {
return (
<html lang="zh-TW"><body>
<BPMNextProviders>
<MyHostLayout>{children}</MyHostLayout>
</BPMNextProviders>
</body></html>
);
}
// app/host-layout.tsx
'use client';
import {
BPMNotificationBellButton,
useBPMLogout,
useBPMMember,
useBPMRoutes,
useRouterAdapter,
} from '@rytass/bpm-core-react';
export function MyHostLayout({ children }) {
const router = useRouterAdapter();
const routes = useBPMRoutes();
const member = useBPMMember();
const logout = useBPMLogout();
return (
<div className="grid grid-cols-[240px_1fr]">
<aside>
<h1>My Console</h1>
<ul>
<li><a href={routes.dashboard()}>工作台</a></li>
<li><a href={routes.inbox()}>我的待簽</a></li>
{/* …host's own nav items… */}
</ul>
<div className="flex items-center gap-2">
<span>{member?.name}</span>
<BPMNotificationBellButton />
<button onClick={() => logout()}>登出</button>
</div>
</aside>
<main>{children}</main>
</div>
);
}
The page shims under pages/* are unchanged — they remain one-line
{ default, metadata } re-exports and are mounted under the host
layout exactly like any other Next.js page:
// app/inbox/page.tsx
export { default, metadata } from '@rytass/bpm-core-react/pages/inbox';
For an end-to-end reference layout (with the original 4-group BPM nav
structure, admin-only filtering, and member display), see
apps/client/src/app/_components/host-layout.tsx in the BPMCore repo.
'use client';
import { useRouter, usePathname } from 'next/navigation';
import {
AuthProvider,
RouterAdapterProvider,
} from '@rytass/bpm-core-react';
import { LoginView } from '@rytass/bpm-core-react/views/login';
function MyLoginPage() {
const next = useRouter();
const pathname = usePathname();
return (
<RouterAdapterProvider value={{ pathname, push: next.push, replace: next.replace }}>
<AuthProvider>
<LoginView brandTitle="My BPM" />
</AuthProvider>
</RouterAdapterProvider>
);
}
For SPA / Remix / Tanstack Router hosts, supply a RouterAdapter that bridges your router primitives.
The instance detail view ships UI for the four instance-scoped ad-hoc directives (they never modify the workflow template). When the signed-in member is the current task's approver, the page header shows:
allowAddSigner: true.Ad-hoc tasks appear in the tasks table tagged 「(臨時會簽)」/「(臨時加簽)」,
and still-pending directives are listed under 「待生效的臨時設定」 where the
creator can withdraw them. No extra wiring is required — the feature works
wherever InstanceDetailView (or the pages/instances/detail shim) is
mounted, provided the backend module is up to date. The standalone
InstanceTasksSection component requires the adhocDirectives prop
(fetch with listAdhocDirectives from @rytass/bpm-core-client/workflow).
When the host turns on signerRecallEnabled in the BPMCore module options
and the signed-in member has just approved a stage the next stage has not
acted on yet, the page header shows 取回重辦 next to 「取消案件」. The
button comes from the recallableTaskId query (readRecallableTaskId in
@rytass/bpm-core-client/workflow): it appears when the query returns a task
id and stays hidden when it returns null, when the host has the option off,
and when the server predates the query (the page reads it on its own, so an
old server never fails the page). It is re-read together with the instance, so
the button shows up right after the member approves in the tasks section.
The button opens a confirmation window (SignerRecallModal) that says the
next stage's task will be cancelled, the case returns to the member's stage,
and notifications already sent cannot be called back, with an optional
取回原因 field. The window calls recallTaskApproval itself:
SIGNER_RECALL_*, from
@rytass/bpm-core-shared/status) shows a Chinese sentence for that code
inside the window and turns the confirm button off, since the server has
already judged the recall not possible. A code this version has no sentence
for (one a newer server added) counts as a refusal too: the window shows
「取回失敗,請重新整理後再試。」 and the confirm button is off all the same.
The server's English message and the code are never shown.The recall is written to the timeline as 「簽核者取回重辦」, with the reason under 「取回原因」. No extra wiring is needed in the host.
If your host already owns the / namespace (an ERP, an existing
admin console, etc.), wrap the BPM tree in <BPMRoutesProvider> and
override every internal cross-link to a prefixed path. The full
BPMRoutes contract has 19 entries — overriding only some leaves
the rest pointing at the unprefixed defaults, which usually 404s on
your host. Use a small factory to keep the override exhaustive:
import {
BPMRoutesProvider,
createDefaultBPMRoutes,
type BPMRoutes,
} from '@rytass/bpm-core-react/next';
function createPrefixedRoutes(prefix: string): BPMRoutes {
const trim = prefix.replace(/\/$/, '');
return {
...createDefaultBPMRoutes(), // safety net for any future routes
dashboard: () => `${trim}`,
inbox: () => `${trim}/inbox`,
sent: () => `${trim}/sent`,
cc: () => `${trim}/cc`,
search: () => `${trim}/search`,
delegations: () => `${trim}/delegations`,
notifications: () => `${trim}/notifications`,
caseDetail: (id) => `${trim}/instances/${id}`,
caseNew: (templateId) => templateId
? `${trim}/instances/new?templateId=${encodeURIComponent(templateId)}`
: `${trim}/instances/new`,
templates: () => `${trim}/templates`,
templateCompose: () => `${trim}/templates/compose`,
templateDesigner: (id) => `${trim}/templates/${id}/designer`,
templateVersions: (id) => `${trim}/templates/${id}/versions`,
templateCategories: () => `${trim}/templates/categories`,
notificationSettings: () => `${trim}/settings/notifications`,
adminOrgs: () => `${trim}/admin/orgs`,
adminUsers: () => `${trim}/admin/users`,
adminDelegations: () => `${trim}/admin/delegations`,
adminWebhookEndpoints: () => `${trim}/admin/webhook-endpoints`,
adminStuckInstances: () => `${trim}/admin/stuck-instances`,
};
}
// In your layout:
<BPMRoutesProvider value={createPrefixedRoutes('/operations/approval')}>
<BPMNextProviders>{children}</BPMNextProviders>
</BPMRoutesProvider>
createDefaultBPMRoutes() is the source of truth for the route shape;
spreading it first means new BPMCore versions that add routes never
silently regress your host.
MIT
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.