Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@expressive-code/plugin-frames

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expressive-code/plugin-frames - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

2

dist/index.d.ts
import { StyleSettings, ExpressiveCodePlugin, AttachedPluginData } from '@expressive-code/core';
declare const framesStyleSettings: StyleSettings<"shadowColor" | "frameBoxShadowCssValue" | "editorActiveTabBackground" | "editorActiveTabForeground" | "editorActiveTabBorderTop" | "editorActiveTabBorderBottom" | "editorTabBorderRadius" | "editorTabBarBackground" | "editorTabBarBorderColor" | "editorTabBarBorderBottom" | "editorBackground" | "terminalTitlebarDotsForeground" | "terminalTitlebarBackground" | "terminalTitlebarForeground" | "terminalTitlebarBorderBottom" | "terminalBackground">;
declare const framesStyleSettings: StyleSettings<"shadowColor" | "frameBoxShadowCssValue" | "editorActiveTabBackground" | "editorActiveTabForeground" | "editorActiveTabBorder" | "editorActiveTabBorderTop" | "editorActiveTabBorderBottom" | "editorTabBorderRadius" | "editorTabBarBackground" | "editorTabBarBorderColor" | "editorTabBarBorderBottom" | "editorBackground" | "terminalTitlebarDotsForeground" | "terminalTitlebarBackground" | "terminalTitlebarForeground" | "terminalTitlebarBorderBottom" | "terminalBackground">;

@@ -5,0 +5,0 @@ interface PluginFramesOptions {

@@ -12,2 +12,3 @@ // src/index.ts

editorActiveTabForeground: ({ theme }) => theme.colors["tab.activeForeground"],
editorActiveTabBorder: "transparent",
editorActiveTabBorderTop: ({ theme }) => theme.colors["tab.activeBorderTop"],

@@ -18,3 +19,3 @@ editorActiveTabBorderBottom: ({ theme }) => theme.colors["tab.activeBorder"],

editorTabBarBorderColor: ({ coreStyles }) => multiplyAlpha(coreStyles.borderColor, 0.75),
editorTabBarBorderBottom: ({ theme, coreStyles }) => `${coreStyles.borderWidth} solid ${theme.colors["editorGroupHeader.tabsBorder"] || "transparent"}`,
editorTabBarBorderBottom: ({ theme }) => theme.colors["editorGroupHeader.tabsBorder"] || "transparent",
editorBackground: ({ coreStyles }) => coreStyles.codeBackground,

@@ -24,3 +25,3 @@ terminalTitlebarDotsForeground: ({ theme }) => theme.type === "dark" ? "#ffffff26" : "#00000026",

terminalTitlebarForeground: ({ theme }) => theme.colors["titleBar.activeForeground"],
terminalTitlebarBorderBottom: ({ theme, coreStyles }) => `${coreStyles.borderWidth} solid ${onBackground(coreStyles.borderColor, theme.type === "dark" ? "#000000bf" : "#ffffffbf")}`,
terminalTitlebarBorderBottom: ({ theme, coreStyles }) => onBackground(coreStyles.borderColor, theme.type === "dark" ? "#000000bf" : "#ffffffbf"),
terminalBackground: ({ theme }) => theme.colors["terminal.background"]

@@ -96,3 +97,3 @@ });

border-radius: ${framesStyles.editorTabBorderRadius} ${framesStyles.editorTabBorderRadius} 0 0;
border: ${coreStyles.borderWidth} solid ${coreStyles.borderColor};
border: ${coreStyles.borderWidth} solid ${framesStyles.editorActiveTabBorder};
border-bottom: none;

@@ -116,3 +117,3 @@ }

content: '';
border-bottom: ${coreStyles.borderWidth} solid ${coreStyles.borderColor};
border-bottom: ${coreStyles.borderWidth} solid ${framesStyles.editorTabBarBorderBottom};
}

@@ -153,3 +154,3 @@ }

inset: 0;
border-bottom: ${framesStyles.terminalTitlebarBorderBottom};
border-bottom: ${coreStyles.borderWidth} solid ${framesStyles.terminalTitlebarBorderBottom};
}

@@ -156,0 +157,0 @@ }

{
"name": "@expressive-code/plugin-frames",
"version": "0.2.0",
"version": "0.3.0",
"description": "Frames plugin for Expressive Code. Wraps code blocks in a styled editor or terminal frame with support for titles, multiple tabs and more.",

@@ -5,0 +5,0 @@ "keywords": [],

@@ -191,3 +191,3 @@ # @expressive-code/plugin-frames

- Editor styles:
`editorActiveTabBackground`, `editorActiveTabForeground`, `editorActiveTabBorderTop`, `editorActiveTabBorderBottom`, `editorTabBorderRadius`, `editorTabBarBackground`, `editorTabBarBorderColor`, `editorTabBarBorderBottom`, `editorBackground`
`editorActiveTabBackground`, `editorActiveTabForeground`, `editorActiveTabBorder`, `editorActiveTabBorderTop`, `editorActiveTabBorderBottom`, `editorTabBorderRadius`, `editorTabBarBackground`, `editorTabBarBorderColor`, `editorTabBarBorderBottom`, `editorBackground`

@@ -194,0 +194,0 @@ - Terminal styles:

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc