Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@lexion-rte/ui

Latest version: v0.3.0

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
npm package Publisher: lexion-ret
1 Stars
0 Forks
1 Versions
11 Downloads
TypeScript Repo language

Scan summary

@lexion-rte/ui was last scanned on 1 Dec 2026 at version 0.3.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 1 Dec 2026.
  • Findings: No rules fired in version 0.3.0.
  • Downloads: 11 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.0 LATEST 1 Dec 2026 No rules fired

No rules fired in 0.3.0

Findings

Findings for v0.3.0. 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.3.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

This package is part of the Lexion framework-agnostic rich text editor.

Lexion is a framework-agnostic, headless rich text editor platform built on ProseMirror, designed to provide a shared core, reusable extensions, and framework-specific adapters.

@lexion-rte/ui

Toolbar UI primitives for Lexion integrations.

Overview

@lexion-rte/ui provides a toolbar area with icon-first buttons and command wiring to @lexion-rte/core.

It supports:

  • command execution through editor.execute(...)
  • automatic focus restoration through editor.focus?.() before command execution
  • item management methods (setItems, addItem, updateItem, removeItem)
  • icon states: enabled, disabled, hidden
  • Remix Icon class names (for example ri-bold)

Install

pnpm add @lexion-rte/ui remixicon

Example 1: Minimal Toolbar

import { LexionEditor } from "@lexion-rte/core";
import { starterKitExtension } from "@lexion-rte/starter-kit";
import {
  createLexionToolbar,
  createToolbarSeparatorItem,
  lexionToolbarIcons,
  injectLexionToolbarStyles
} from "@lexion-rte/ui";

import "remixicon/fonts/remixicon.css";

injectLexionToolbarStyles();

const editor = new LexionEditor({ extensions: [starterKitExtension] });
const toolbarHost = document.getElementById("toolbar");
if (!toolbarHost) throw new Error("Missing #toolbar");

const toolbar = createLexionToolbar({
  element: toolbarHost,
  editor,
  items: [
    { id: "bold", iconClass: lexionToolbarIcons.bold, label: "Bold", command: "toggleBold" },
    { id: "italic", iconClass: lexionToolbarIcons.italic, label: "Italic", command: "toggleItalic" },
    createToolbarSeparatorItem("sep-main"),
    { id: "undo", iconClass: lexionToolbarIcons.undo, label: "Undo", command: "undo" }
  ]
});

Example 2: Full Starter-kit Preset

import { LexionEditor } from "@lexion-rte/core";
import { starterKitExtension } from "@lexion-rte/starter-kit";
import {
  createLexionToolbar,
  createStarterKitToolbarItems,
  injectLexionToolbarStyles
} from "@lexion-rte/ui";

import "remixicon/fonts/remixicon.css";

injectLexionToolbarStyles();

const editor = new LexionEditor({ extensions: [starterKitExtension] });

const toolbar = createLexionToolbar({
  element: document.getElementById("toolbar")!,
  editor,
  items: createStarterKitToolbarItems({ withLabels: true })
});

// Example state changes
toolbar.disableItem("redo");
toolbar.hideItem("unset-link");

Example 3: Group Buttons in a Dropdown

const toolbar = createLexionToolbar({
  element: document.getElementById("toolbar")!,
  editor,
  items: [
    {
      id: "inline-format",
      iconClass: lexionToolbarIcons.textFormat,
      title: "Inline format",
      items: [
        { id: "bold", iconClass: lexionToolbarIcons.bold, label: "Bold", command: "toggleBold" },
        { id: "italic", iconClass: lexionToolbarIcons.italic, label: "Italic", command: "toggleItalic" },
        { id: "underline", iconClass: lexionToolbarIcons.underline, label: "Underline", command: "toggleUnderline" }
      ]
    }
  ]
});

Each dropdown row renders the icon + command name.

Example 4: Dynamic Enabled/Disabled/Hidden States

import type { LexionToolbar } from "@lexion-rte/ui";

function applyToolbarPolicy(toolbar: LexionToolbar, canEdit: boolean, canLink: boolean): void {
  toolbar.setItemStates({
    bold: canEdit ? "enabled" : "disabled",
    italic: canEdit ? "enabled" : "disabled",
    "set-link": canLink ? "enabled" : "hidden",
    "unset-link": canLink ? "enabled" : "hidden"
  });
}

Example 5: Add Visual Separators (No Dropdown)

toolbar.setItems([
  { id: "bold", iconClass: lexionToolbarIcons.bold, title: "Bold", command: "toggleBold" },
  { id: "italic", iconClass: lexionToolbarIcons.italic, title: "Italic", command: "toggleItalic" },
  { id: "sep-inline-actions", separator: true },
  { id: "undo", iconClass: lexionToolbarIcons.undo, title: "Undo", command: "undo" },
  { id: "redo", iconClass: lexionToolbarIcons.redo, title: "Redo", command: "redo" }
]);

Example 6: Add/Update/Remove Items at Runtime

toolbar.addItem({
  id: "save",
  iconClass: lexionToolbarIcons.save,
  label: "Save",
  title: "Save document",
  onClick: () => {
    console.log("saved");
    return false; // stop command execution path
  }
});

toolbar.updateItem("save", {
  iconClass: lexionToolbarIcons.check,
  label: "Saved",
  state: "disabled"
});

toolbar.removeItem("save");

Example 7: Integrate with @lexion-rte/web

import { createLexionWebEditor } from "@lexion-rte/web";
import {
  createLexionToolbar,
  createStarterKitToolbarItems,
  injectLexionToolbarStyles
} from "@lexion-rte/ui";

import "remixicon/fonts/remixicon.css";

injectLexionToolbarStyles();

const editorHost = document.getElementById("editor")!;
const toolbarHost = document.getElementById("toolbar")!;

const webEditor = createLexionWebEditor({
  element: editorHost
});

const toolbar = createLexionToolbar({
  element: toolbarHost,
  editor: webEditor,
  items: createStarterKitToolbarItems({ withLabels: false }),
  onItemExecute: (event) => {
    console.log(`toolbar: ${event.item.id}, executed: ${event.executed}`);
  }
});

// cleanup
window.addEventListener("beforeunload", () => {
  toolbar.destroy();
  webEditor.destroy();
});

Example 8: Inject Styles into a Specific Document

Useful for iframes or custom document roots.

const iframeDocument = iframe.contentDocument;
if (!iframeDocument) throw new Error("Iframe document not ready");

injectLexionToolbarStyles({
  document: iframeDocument,
  id: "lexion-toolbar-ui-styles"
});

API

LexionToolbarOptions
  • element: HTMLElement (required)
  • editor?: { execute(command, ...args): boolean; focus?(): void }
  • items?: LexionToolbarItemInput[]
  • className?: string
  • ariaLabel?: string (default "Editor toolbar")
  • onItemExecute?: (event) => void
  • autoUpdate?: boolean (default true, see Automatic State)
  • activeChecks?: Record<commandName, (state, args) => boolean> (merged over starterKitToolbarActiveChecks)

LexionToolbarItemInput supports:

  • command button item (command, args, label, iconClass, ...)
  • dropdown group item (items) where each nested item has iconClass + label + command config
  • separator item (separator: true) for visual grouping in the same toolbar row
  • active?: boolean on toggle buttons (bold, list types, ...): renders aria-pressed and the lexion-toolbar-ui__button--active class. Leave it undefined for plain action buttons.
LexionToolbarItemState
  • "enabled"
  • "disabled"
  • "hidden"
LexionToolbar methods
  • setEditor(editor | null)
  • getItems()
  • setItems(items)
  • addItem(item, index?)
  • updateItem(id, update)
  • removeItem(id)
  • clearItems()
  • setItemState(id, state)
  • setItemStates(record)
  • enableItem(id)
  • disableItem(id)
  • hideItem(id)
  • showItem(id, state?)
  • setItemActive(id, active)
  • setItemsActive(record)
  • refresh(): recompute the automatic state now
  • destroy()
Automatic State

Pass a LexionEditor (or an adapter that exposes one as editor, like LexionWebEditor) and the toolbar keeps itself in sync after every editor change:

  • An enabled item whose command cannot run (editor.can() returns false) renders disabled, e.g. Undo with nothing to undo. Items you set to disabled or hidden keep that state.
  • Known toggle commands get active / aria-pressed: bold, italic, code, strike, underline and link through isMarkActive; paragraph, headings, blockquote, code block and lists through isBlockActive.
  • getItems() returns what you configured; the automatic state only changes rendering. setItemActive() shows until the next editor update.
  • Pass autoUpdate: false to manage states yourself.
Accessibility
  • The toolbar has role="toolbar" and an aria-label.
  • It is a single Tab stop. ArrowLeft / ArrowRight / Home / End move between enabled buttons.
  • Dropdown triggers open with ArrowDown (or Enter / Space). Menu items have role="menuitem" and support ArrowUp / ArrowDown / Home / End. Escape closes the menu and returns focus to the trigger.
  • Keep active in sync with the selection, e.g. from editor.subscribe().
Styling helpers
  • lexionToolbarStyles
  • injectLexionToolbarStyles(options?)
  • lexionToolbarAppearance
Starter-kit preset
  • createStarterKitToolbarItems(options?)
  • createToolbarSeparatorItem(id, state?)
  • lexionToolbarIcons

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @lexion-rte/ui

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229