Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@sqlrooms/layout-config

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sqlrooms/layout-config

latest
Source
npmnpm
Version
0.24.27
Version published
Weekly downloads
2.9K
-16.61%
Maintainers
1
Weekly downloads
 
Created
Source

A central configuration and type definitions package that maintains base layout configuration schemas and Zod schema definitions for SQLRooms. It provides TypeScript types and interfaces along with essential constants and utilities used for managing layouts.

Features

  • 📝 Layout Configuration: Define and manage room layout configuration schemas for Mosaic layouts
  • 🔍 Type Safety: Strong TypeScript typing for layout configuration objects
  • Validation: Zod schemas for runtime validation of layout configurations

Installation

npm install @sqlrooms/layout-config
# or
yarn add @sqlrooms/layout-config

Basic Usage

Working with Mosaic Layout Configuration

import {
  MosaicLayoutConfig,
  LayoutConfig,
  MAIN_VIEW,
} from '@sqlrooms/layout-config';

// Create a new room configuration
const layoutConfig: MosaicLayoutConfig = {
  type: 'mosaic',
  nodes: {
    direction: 'row',
    first: MAIN_VIEW,
    second: {
      direction: 'column',
      first: 'files',
      second: 'tables',
    },
  },
};

// This can be part of a bigger room configuration
interface RoomConfig {
  // ... other properties
  layout: LayoutConfig;
}

Advanced Features

  • Schema Extensions: Extend base schemas for custom room types
  • Configuration Validation: Validate configurations at runtime
  • Serialization: Convert configurations to/from JSON for storage

For more information, visit the SQLRooms documentation.

FAQs

Package last updated on 26 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts