Comparing version 0.1.0 to 0.2.0
@@ -1,4 +0,4 @@ | ||
import React from 'react'; | ||
import * as react from 'react'; | ||
declare function Editor({ title, value, onChange, highlight, ...props }: { | ||
declare const Editor: react.ForwardRefExoticComponent<{ | ||
title?: string; | ||
@@ -8,4 +8,4 @@ value?: string; | ||
highlight?: (code: string) => string; | ||
} & React.HTMLAttributes<HTMLDivElement>): JSX.Element; | ||
} & react.HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>; | ||
export { Editor }; |
{ | ||
"name": "codice", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"type": "module", | ||
@@ -24,10 +24,11 @@ "exports": "./dist/index.mjs", | ||
"@types/react": "^18.0.33", | ||
"bunchee": "^3.0.1", | ||
"bunchee": "^3.7.2", | ||
"codice": "link:./", | ||
"next": "^13.2.3", | ||
"next": "13.4.20-canary.27", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"sugar-high": "^0.4.6", | ||
"sugar-high": "^0.5.2", | ||
"typescript": "^5.0.4" | ||
} | ||
}, | ||
"packageManager": "pnpm@7.24.3" | ||
} |
@@ -49,3 +49,2 @@ # Codice | ||
- `--editor-background-color`: The background color of the editor. | ||
- `--editor-control-color`: The color of the editor controls. | ||
@@ -58,3 +57,2 @@ For example, you can set the following CSS in your application: | ||
--editor-background-color: #f5f5f5; | ||
--editor-control-color: #ccc; | ||
} | ||
@@ -65,4 +63,12 @@ ``` | ||
### CSS Class Names | ||
- `editor-controls__control`: The class name for the controls in the editor. | ||
- `editor-controls__control--close`: The class name for the close button. | ||
- `editor-controls__control--minimize`: The class name for the minimize button. | ||
- `editor-controls__control--maximize`: The class name for the maximize button. | ||
### License | ||
Codice is released under the MIT License. For more details, see the LICENSE file included in this repository. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7366
5
122
71