Scan your whole stack
From OX Research Newsroom
Are you using @editora/conditional-content?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.0.6
@editora/conditional-content was last scanned on 29 Nov 2026 at version 1.0.6. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.0.6 LATEST | 29 Nov 2026 | No rules fired |
| 1.0.5 | 27 Nov 2026 | No rules fired |
| 1.0.4 | 5 Oct 2026 | No rules fired |
| 1.0.3 | 5 Oct 2026 | Not shown |
| 1.0.2 | 2 Oct 2026 | Not shown |
Findings for v1.0.6. 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 1.0.6; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
[!IMPORTANT] Live Website: https://editora-ecosystem.netlify.app/\ Storybook: https://editora-ecosystem-storybook.netlify.app/
@editora/conditional-content adds template-style conditional blocks (IF/ELSE) to Editora, with audience/locale targeting and preview evaluation.
ELSE branchrole="dialog", focus trap, Esc close)npm install @editora/conditional-content
import { EditoraEditor } from '@editora/react';
import { ConditionalContentPlugin, BoldPlugin, HistoryPlugin } from '@editora/plugins';
const plugins = [
BoldPlugin(),
HistoryPlugin(),
ConditionalContentPlugin({
defaultCondition: 'user.role == "admin"',
enableElseByDefault: true,
}),
];
export default function App() {
return <EditoraEditor plugins={plugins} />;
}
<editora-editor id="editor"></editora-editor>
<script>
const editor = document.getElementById('editor');
editor.setConfig({
plugins: 'bold history conditionalContent',
toolbar: {
items: 'bold undo redo | conditionalContent conditionalPreview',
},
pluginConfig: {
conditionalContent: {
defaultCondition: 'user.role == "admin"',
enableElseByDefault: true,
},
},
});
</script>
Accepted aliases: conditionalContent, conditional-content, conditionalcontent.
openConditionalDialog → open insert/edit dialoginsertConditionalBlock → insert block directly with configeditConditionalBlock → edit currently selected conditional blocktoggleConditionalPreview → preview on/offdeleteConditionalBlock → remove the currently selected conditional blocksetConditionalContext → update runtime context for preview evaluationCtrl/Cmd + Alt + Shift + C → open conditional dialogCtrl/Cmd + Alt + Shift + P → toggle conditional previewF9 → open conditional dialog (fallback)F10 → toggle preview (fallback)Esc → close conditional dialogSupported examples:
user.role == "admin"locale == "en-US"user.tier != "free"order.total >= 100user.tags contains "beta"user.role in ["admin", "editor"]feature.newDashboard (truthy)!feature.newDashboard (falsy)You can override evaluator with evaluateCondition.
ConditionalContentPlugin({
async getContext({ editorRoot }) {
const docId = editorRoot.getAttribute('data-doc-id');
const res = await fetch(`/api/docs/${docId}/context`);
if (!res.ok) return {};
return res.json();
},
currentAudience: 'internal',
currentLocale: 'en-US',
});
ConditionalContentPlugin({
evaluateCondition(condition, context) {
// Plug your own parser/evaluator here
if (!condition) return true;
return condition === 'always' || Boolean(context['featureEnabled']);
},
});
(window as any).executeEditorCommand?.('setConditionalContext', {
user: { role: 'editor' },
audience: 'internal',
locale: 'en-US',
});
(window as any).executeEditorCommand?.('toggleConditionalPreview', true);
Esc always closes.IF/ELSE body visibility updates after context changes.IF branch.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.