Comparing version 0.4.3 to 0.4.4
import { jsxs, jsx } from 'react/jsx-runtime'; | ||
import { E as Editor$1 } from './editor-client-BpS6B1az.js'; | ||
export { C as Code } from './editor-client-BpS6B1az.js'; | ||
import { E as Editor$1 } from './editor-client-pYX-H5aS.js'; | ||
export { C as Code } from './editor-client-pYX-H5aS.js'; | ||
@@ -5,0 +5,0 @@ const css = ` |
{ | ||
"name": "codice", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"type": "module", | ||
@@ -11,10 +11,2 @@ "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": { | ||
@@ -32,3 +24,8 @@ "react": "^17.0.0 || ^18.0.0 || ^19.0.0" | ||
}, | ||
"packageManager": "pnpm@9.15.4" | ||
} | ||
"scripts": { | ||
"build": "bunchee", | ||
"test": "vitest", | ||
"dev": "bunchee --watch", | ||
"site": "next dev site" | ||
} | ||
} |
@@ -34,2 +34,3 @@ # Codice | ||
- `onChange` (optional): A function called when the code in the editor changes. The function will receive the updated code as its argument. | ||
- `controls` (optional): A boolean value indicating whether to display the controls for 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. | ||
@@ -54,2 +55,3 @@ | ||
- `title` (optional): A string representing the title of 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. | ||
@@ -56,0 +58,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
11126
253
89