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

@pretextbook/visual-editor

Latest version: v0.1.6

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: oscarlevin
14 Stars
14 Forks
6 Versions
330 Downloads
XSLT Repo language

Scan summary

@pretextbook/visual-editor was last scanned on 26 Nov 2026 at version 0.1.6. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 6 versions; the latest was published on 26 Nov 2026.
  • Findings: No rules fired in version 0.1.6.
  • Downloads: 330 downloads.

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.6 LATEST 26 Nov 2026 No rules fired
0.1.5 1 Nov 2026 No rules fired
0.1.4 11 Oct 2026 No rules fired
0.1.3 29 Sep 2026 Not shown
0.1.2 31 Aug 2026 Not shown

No rules fired in 0.1.6

Findings

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

README

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

Box-Edit (for PreTeXt)

The visual editor for PreTeXt

@pretextbook/visual-editor

A React-based visual editor for PreTeXt documents using TipTap and ProseMirror.

Features

  • TipTap Extensions: Custom TipTap extensions for PreTeXt elements (divisions, theorems, definitions, etc.)
  • React Components: Reusable React components for building visual editors
  • Dual Build Modes:
    • Library mode for use in other packages
    • Webview mode for VS Code extension integration

Installation

npm install @pretextbook/visual-editor

Usage as a Library

Importing Components
import { VisualEditor, MenuBar, BubbleMenu } from "@pretextbook/visual-editor";
import "@pretextbook/visual-editor/styles";
Importing TipTap Extensions
import {
  Divisions,
  Blocks,
  Inline,
  Title,
  TheoremLike,
  Definition,
  MathInline,
  MathEquation,
  KeyboardCommands,
} from "@pretextbook/visual-editor";

// Use in your TipTap editor
const editor = useEditor({
  extensions: [
    Divisions,
    Blocks,
    Inline,
    Title,
    // ... other extensions
  ],
  content: yourContent,
});
Utilities
import { json2ptx, cleanPtx, knownTags } from "@pretextbook/visual-editor";

// Convert TipTap JSON to PreTeXt XML
const ptxXml = json2ptx(editorJson);

// Clean PreTeXt source
const cleanedPtx = cleanPtx(rawPtx);

Development

Build Commands
  • npm run build:lib - Build the library for use in other packages
  • npm run build:webview - Build the webview for VS Code extension
  • npm run build:all - Build both library and webview versions
  • npm run dev - Start development server
  • npm run watch - Watch mode for development

Architecture

This package exports:

  • TipTap Extensions: Custom node and mark types for PreTeXt elements
  • React Components: UI components for the visual editor
  • Utilities: Helper functions for converting between formats

Dependencies

  • React 18+
  • TipTap 3.14+
  • KaTeX for math rendering

License

See LICENSE file in the repository root.

export default tseslint.config({
  extends: [
    // Remove ...tseslint.configs.recommended and replace with this
    ...tseslint.configs.recommendedTypeChecked,
    // Alternatively, use this for stricter rules
    ...tseslint.configs.strictTypeChecked,
    // Optionally, add this for stylistic rules
    ...tseslint.configs.stylisticTypeChecked,
  ],
  languageOptions: {
    // other options...
    parserOptions: {
      project: ["./tsconfig.node.json", "./tsconfig.app.json"],
      tsconfigRootDir: import.meta.dirname,
    },
  },
});

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from "eslint-plugin-react-x";
import reactDom from "eslint-plugin-react-dom";

export default tseslint.config({
  plugins: {
    // Add the react-x and react-dom plugins
    "react-x": reactX,
    "react-dom": reactDom,
  },
  rules: {
    // other rules...
    // Enable its recommended typescript rules
    ...reactX.configs["recommended-typescript"].rules,
    ...reactDom.configs.recommended.rules,
  },
});

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 @pretextbook/visual-editor

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

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229