Comparing version 0.5.0 to 0.5.1
import { jsxs, jsx } from 'react/jsx-runtime'; | ||
import { E as Editor$1 } from './editor-client-DkROErHx.js'; | ||
export { C as Code } from './editor-client-DkROErHx.js'; | ||
import { E as Editor$1 } from './editor-client-CkXUIfOF.js'; | ||
export { C as Code } from './editor-client-CkXUIfOF.js'; | ||
@@ -54,2 +54,5 @@ const R = '[data-codice-editor]'; | ||
} | ||
${R}[data-codice-editor-line-numbers="true"] textarea { | ||
padding-left: 51px; | ||
} | ||
`; | ||
@@ -56,0 +59,0 @@ |
{ | ||
"name": "codice", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"type": "module", | ||
@@ -11,2 +11,10 @@ "exports": "./dist/index.js", | ||
], | ||
"scripts": { | ||
"prepare": "bunchee", | ||
"build": "bunchee", | ||
"test": "vitest", | ||
"dev": "bunchee --watch", | ||
"site": "next dev site", | ||
"prepublishOnly": "rm -rf dist && pnpm run build" | ||
}, | ||
"peerDependencies": { | ||
@@ -24,8 +32,3 @@ "react": "^17.0.0 || ^18.0.0 || ^19.0.0" | ||
}, | ||
"scripts": { | ||
"build": "bunchee", | ||
"test": "vitest", | ||
"dev": "bunchee --watch", | ||
"site": "next dev site" | ||
} | ||
} | ||
"packageManager": "pnpm@9.15.4" | ||
} |
@@ -31,6 +31,7 @@ # Codice | ||
- `title` (optional): A string representing the title of the editor. | ||
- `value` (optional): A string representing the initial code value of the editor. | ||
- `onChange` (optional): A function called when the code in the editor changes. The function will receive the updated code as its argument. | ||
- `title` (optional): A string representing the title of the editor. | ||
- `controls` (optional): A boolean value indicating whether to display the controls for the editor. | ||
- `lineNumbers` (optional): A boolean value indicating whether to display line numbers in the editor. | ||
- `highlight` (optional): A function used to provide syntax highlighting for the code. It should accept the code as an argument and return the highlighted code as an HTML string. You can use any syntax highlighting library (e.g., [Prism](https://prismjs.com/)) to implement this functionality. | ||
@@ -53,4 +54,5 @@ | ||
- `title` (optional): A string representing the title of the code block. | ||
- `controls` (optional): A boolean value indicating whether to display the controls for the code block. | ||
- `title` (optional): A string representing the title of the code block. | ||
- `lineNumbers` (optional): A boolean value indicating whether to display line numbers in the code block. | ||
- `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. | ||
@@ -57,0 +59,0 @@ |
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
13601
290
100