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

@molecule/app-adjustment-slider-vue

Latest version: v1.1.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: vialoh
45 Stars
4 Forks
4 Versions
496 Downloads
TypeScript Repo language

Scan summary

@molecule/app-adjustment-slider-vue was last scanned on 29 Nov 2026 at version 1.1.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest was published on 29 Nov 2026.
  • Findings: No rules fired in version 1.1.1.
  • Downloads: 496 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.1.1 LATEST 29 Nov 2026 No rules fired
1.1.0 19 Nov 2026 No rules fired
0.0.1-stage 18 Nov 2026 No rules fired
0.0.0-stage 18 Nov 2026 Not shown

No rules fired in 1.1.1

Findings

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

README

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

@molecule/app-adjustment-slider-vue

Vue adjustment slider feature for molecule.dev.

Bipolar (zero-center) numeric slider tuned for photo-editor / DAW / animation parameter controls (brightness, contrast, saturation, exposure, gain, pan, etc.). It is the Vue counterpart of @molecule/app-adjustment-slider-react: same exports, same props (React names), same DOM for the same input.

Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit src/index.ts JSDoc, not this file.

Quick Start

import { createApp, defineComponent, h, ref } from 'vue'
import { AdjustmentSlider } from '@molecule/app-adjustment-slider-vue'

const App = defineComponent({
  setup() {
    const exposure = ref(0)
    return () =>
      h(AdjustmentSlider, {
        label: 'Exposure',
        value: exposure.value,
        onChange: (next: number) => (exposure.value = next),
        min: -100,
        max: 100,
        step: 1,
        bipolar: true,
        unit: '%',
      })
  },
})

createApp(App).mount('#app')

Type

feature

Installation

npm install @molecule/app-adjustment-slider-vue @molecule/app-ui @molecule/app-ui-vue @molecule/app-vue vue

API

Interfaces
AdjustmentSliderProps

Public props for <AdjustmentSlider>.

interface AdjustmentSliderProps {
  /** Visible label (rendered to the left of the slider). */
  label: string
  /** Current numeric value. */
  value: number
  /** Called whenever the slider value changes. */
  onChange: (value: number) => void
  /** Lower bound. Defaults to `-100`. */
  min?: number
  /** Upper bound. Defaults to `100`. */
  max?: number
  /** Step increment. Defaults to `1`. */
  step?: number
  /**
   * When `true` (default), the slider is bipolar with a center mark at zero
   * and double-click / Reset returns the value to `0`. When `false`, the
   * slider is unipolar (a normal range slider) and double-click resets to
   * `min`.
   */
  bipolar?: boolean
  /** Optional unit suffix (e.g. `'%'`, `'dB'`) appended to the default formatter. */
  unit?: string
  /**
   * Optional formatter overriding the default `value + (unit || '')` display.
   * Useful for rendering e.g. `+12` (signed) or `1.4 EV`.
   */
  format?: AdjustmentSliderFormatter
  /**
   * Optional reset handler. When provided, double-clicking the slider OR
   * pressing the visual Reset button calls this instead of resetting to
   * the default reset value.
   */
  onReset?: () => void
  /** Optional extra class names appended to the outer container. */
  className?: string
  /** Optional `data-mol-id` for AI-agent / E2E targeting. */
  dataMolId?: string
}
Types
AdjustmentSliderFormatter

Function signature used to format the rendered numeric value.

type AdjustmentSliderFormatter = (value: number) => string
Functions
clampStep(value, min, max, step)

Clamp a numeric value to the inclusive [min, max] range, snapping to the nearest multiple of step measured from min. Does not assume min === 0 (so bipolar [-100, 100] works correctly with non-integer steps).

function clampStep(value: number, min: number, max: number, step: number): number
  • value — The raw value to normalise.
  • min — Inclusive lower bound.
  • max — Inclusive upper bound.
  • step — Step increment (must be > 0).

Returns: The clamped + step-snapped value.

defaultResetValue(min, bipolar)

Compute the value the slider should reset to when double-clicked.

function defaultResetValue(min: number, bipolar: boolean): number
  • min — Inclusive lower bound.
  • bipolar — Whether the slider is in bipolar (zero-center) mode.

Returns: 0 for bipolar sliders, min otherwise.

defaultFormatter(unit)

Build the default value formatter — appends an optional unit suffix.

function defaultFormatter(unit?: string): AdjustmentSliderFormatter
  • unit — Optional unit string (e.g. '%').

Returns: A formatter producing "<value><unit>".

keyboardNudge(step, shift)

Compute the keyboard nudge step for arrow keys.

Plain arrow → step. Shift-modifier → step * 10 so users can move in coarser increments. Always at least step.

function keyboardNudge(step: number, shift: boolean): number
  • step — The base step increment.
  • shift — Whether the Shift modifier is held.

Returns: The effective per-keypress delta.

Constants
AdjustmentSlider

AdjustmentSlider component.

Bipolar (zero-center) adjustment slider — a labelled <input type="range"> tuned for photo-editor / DAW / animation parameter controls (brightness, contrast, saturation, exposure, gain, pan, etc.).

Behaviour:

  • When bipolar is true (default), a center mark is rendered at zero and the reset target is 0. When false, the slider is unipolar and the reset target is min.
  • Double-clicking the input resets the value (calling onReset if provided, otherwise emitting defaultResetValue(min, bipolar) via onChange).
  • Up/Right arrows nudge by step; Down/Left arrows nudge by -step. Holding Shift multiplies the nudge by 10.
  • The numeric value display is formatted via format if supplied, otherwise via value + (unit || '').

This is the Vue counterpart of @molecule/app-adjustment-slider-react's AdjustmentSlider: the same props (React names), the same ClassMap tokens, and the same DOM for the same input.

const AdjustmentSlider: DefineComponent<
  ExtractPropTypes<{
    label: { type: StringConstructor; required: true }
    value: { type: NumberConstructor; required: true }
    onChange: { type: PropType<AdjustmentSliderProps['onChange']>; required: true }
    min: { type: NumberConstructor; default: number }
    max: { type: NumberConstructor; default: number }
    step: { type: NumberConstructor; default: number }
    bipolar: { type: BooleanConstructor; default: boolean }
    unit: StringConstructor
    format: { type: PropType<AdjustmentSliderProps['format']>; default: undefined }
    onReset: { type: PropType<AdjustmentSliderProps['onReset']>; default: undefined }
    className: StringConstructor
    dataMolId: StringConstructor
  }>,
  () => VNode,
  {},
  {},
  {},
  ComponentOptionsMixin,
  ComponentOptionsMixin,
  {},
  string,
  PublicProps,
  Readonly<
    ExtractPropTypes<{
      label: { type: StringConstructor; required: true }
      value: { type: NumberConstructor; required: true }
      onChange: { type: PropType<AdjustmentSliderProps['onChange']>; required: true }
      min: { type: NumberConstructor; default: number }
      max: { type: NumberConstructor; default: number }
      step: { type: NumberConstructor; default: number }
      bipolar: { type: BooleanConstructor; default: boolean }
      unit: StringConstructor
      format: { type: PropType<AdjustmentSliderProps['format']>; default: undefined }
      onReset: { type: PropType<AdjustmentSliderProps['onReset']>; default: undefined }
      className: StringConstructor
      dataMolId: StringConstructor
    }>
  > &
    Readonly<{}>,
  {
    format: AdjustmentSliderFormatter | undefined
    onReset: (() => void) | undefined
    min: number
    max: number
    step: number
    bipolar: boolean
  },
  {},
  {},
  {},
  string,
  ComponentProvideOptions,
  true,
  {},
  any
>

Injection Notes

Requirements

Peer dependencies:

  • @molecule/app-ui ^1.3.11
  • @molecule/app-ui-vue ^1.1.0
  • @molecule/app-vue ^3.5.0 || ^4.0.0
  • vue ^3.4.0
Runtime Dependencies
  • @molecule/app-ui

  • @molecule/app-ui-vue

  • @molecule/app-vue

  • vue

  • Requires a bonded ClassMap (getClassMap()) and the binding's i18n plugin for the translated aria-labels — rendering throws without a ClassMap.

  • The numeric display doubles as the reset button; double-clicking the range input resets it too.

  • React's onChange / onReset props are Vue props of the same names, not events, so a consumer switches framework by changing only the import.

Translations

Translation strings are provided by @molecule/app-locales-adjustment-slider.

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 @molecule/app-adjustment-slider-vue

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

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

CVE

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

Frame 2085668439 (1)
Group 1261154229