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

@expressive-code/core

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expressive-code/core - npm Package Compare versions

Comparing version 0.10.0 to 0.11.0

24

dist/index.d.ts

@@ -57,5 +57,7 @@ import * as hast from 'hast';

declare const codeLineClass = "ec-line";
declare function getCoreBaseStyles({ coreStyles }: {
declare function getCoreBaseStyles(options: {
theme: ExpressiveCodeTheme;
coreStyles: ResolvedCoreStyles;
useThemedScrollbars: boolean;
useThemedSelectionColors: boolean;
}): string;

@@ -519,2 +521,20 @@

/**
* Whether the theme is allowed to style the scrollbars. Defaults to `true`.
*
* If set to `false`, scrollbars will be rendered using the browser's default style.
*
* Note that you can override the individual scrollbar colors defined by the theme
* using the `styleOverrides` option.
*/
useThemedScrollbars?: boolean | undefined;
/**
* Whether the theme is allowed to style selected text. Defaults to `true`.
*
* If set to `false`, selected text will be rendered using the browser's default style.
*
* Note that you can override the individual selection colors defined by the theme
* using the `styleOverrides` option.
*/
useThemedSelectionColors?: boolean | undefined;
/**
* An optional set of style overrides that can be used to customize the appearance of

@@ -562,2 +582,4 @@ * the rendered code blocks without having to write custom CSS. You can customize core

readonly defaultLocale: string;
readonly useThemedScrollbars: boolean;
readonly useThemedSelectionColors: boolean;
readonly styleOverrides: Partial<typeof coreStyleSettings.defaultSettings>;

@@ -564,0 +586,0 @@ readonly coreStyles: ResolvedCoreStyles;

2

package.json
{
"name": "@expressive-code/core",
"version": "0.10.0",
"version": "0.11.0",
"description": "A text marking & annotation engine for presenting source code on the web.",

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

@@ -36,3 +36,3 @@ # @expressive-code/core

Unless you're a plugin or integration author, you should probably use a higher-level package like `remark-expressive-code` instead of this one.
Unless you're a plugin or integration author, you should probably use a higher-level package like [`astro-expressive-code`](https://www.npmjs.com/package/astro-expressive-code) or [`remark-expressive-code`](https://www.npmjs.com/package/remark-expressive-code) instead of this one.

@@ -97,2 +97,18 @@ ## Installation

- `useThemedScrollbars?: boolean`
Whether the theme is allowed to style the scrollbars. Defaults to `true`.
If set to `false`, scrollbars will be rendered using the browser's default style.
Note that you can override the individual scrollbar colors defined by the theme using the `styleOverrides` option.
- `useThemedSelectionColors?: boolean`
Whether the theme is allowed to style selected text. Defaults to `true`.
If set to `false`, selected text will be rendered using the browser's default style.
Note that you can override the individual selection colors defined by the theme using the `styleOverrides` option.
- `styleOverrides: Partial<UnresolvedCoreStyleSettings<CoreStyleSettings>>`

@@ -99,0 +115,0 @@

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 too big to display

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