Comparing version 1.0.0-beta.0 to 1.0.0-beta.1
@@ -15,3 +15,3 @@ import * as react_jsx_runtime from 'react/jsx-runtime'; | ||
declare function Code({ children: code, title, controls, preformatted, lineNumbers, highlightLines, ...props }: { | ||
declare function Code({ children: code, title, controls, preformatted, lineNumbers, highlightLines, asMarkup, ...props }: { | ||
children: string; | ||
@@ -24,4 +24,5 @@ /** Whether to use a preformatted block <pre><code> */ | ||
highlightLines?: ([number, number] | number)[]; | ||
asMarkup?: boolean; | ||
} & React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element; | ||
export { Code, Editor }; |
import { jsxs, jsx } from 'react/jsx-runtime'; | ||
import { E as Editor$1 } from './editor-client-zXIq67GO.js'; | ||
export { C as Code } from './editor-client-zXIq67GO.js'; | ||
import { E as Editor$1 } from './editor-client-CRByiQqq.js'; | ||
export { C as Code } from './editor-client-CRByiQqq.js'; | ||
@@ -5,0 +5,0 @@ const R = '[data-codice="editor"]'; |
{ | ||
"name": "codice", | ||
"version": "1.0.0-beta.0", | ||
"version": "1.0.0-beta.1", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "exports": "./dist/index.js", |
@@ -61,2 +61,4 @@ # Codice | ||
- `preformatted` (optional): A boolean value indicating whether the code should be displayed as preformatted text. If `true`, the code will be displayed in a `pre` and a `code` element. If `false`, the code will be displayed in a `div` element. | ||
- `asMarkup` (optional): A boolean value indicating whether the code should be displayed as markup. If `true`, the code will be displayed with HTML entities escaped. If `false`, the code will be displayed as plain text. default is `false`. | ||
- `children`: The code content to be displayed in the code block. | ||
@@ -63,0 +65,0 @@ ### Styling |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
18391
483
108