- Add README.md for project description and CLI usage - Create main application component with basic structure in app.tsx - Implement CodeMirror editor base functionality in editor.base.ts - Extend CodeMirror editor for JSON support in editor.json.ts - Add support for multiple languages in editor.ts - Create utility functions for editor manipulation in editor.utils.ts - Implement tab key formatting and indentation in tab.ts - Add Tailwind CSS integration in index.css - Develop JSON editor web component in json.ts - Create a template component for rendering in lib.ts - Set up main entry point in main.ts - Configure TypeScript settings in tsconfig.json - Define custom element typings in typings.d.ts - Configure Vite for library and application builds in vite.config.lib.ts and vite.config.ts
16 lines
447 B
TypeScript
16 lines
447 B
TypeScript
import type { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
|
|
interface KvCodeJsonAttributes extends HTMLAttributes<HTMLElement> {
|
|
value?: string;
|
|
readonly?: boolean;
|
|
placeholder?: string;
|
|
}
|
|
|
|
declare module 'react' {
|
|
namespace JSX {
|
|
interface IntrinsicElements {
|
|
'kv-template': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
'kv-code-json': DetailedHTMLProps<KvCodeJsonAttributes, HTMLElement>;
|
|
}
|
|
}
|
|
} |