@typesafe-html5/typescript 0.2.58 → 0.2.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +10 -6
  2. package/index.ts +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,11 +1,15 @@
1
- # TypeScript HTML Element Classes
1
+ # TypeScript Classes for HTML5 Elements
2
2
 
3
- This directory contains auto-generated TypeScript classes for creating HTML elements with a fluent, type-safe API. Each class provides:
3
+ Type-safe, auto-generated TypeScript classes for all HTML5 elements with full WCAG, ARIA support and validation. Part of Extended HTMLDocument - schema-first from HTML5 schema.
4
4
 
5
- - Constructor with optional props
6
- - Chainable setter methods for all attributes
7
- - Type-safe property interfaces
8
- - Automatic attribute handling (including null/undefined removal)
5
+ ## Features
6
+
7
+ - **Type-Safe**: Full TypeScript support with comprehensive type definitions
8
+ - **Fluent API**: Chainable setter methods for all attributes
9
+ - **ARIA Compliant**: Complete ARIA attribute support with proper types
10
+ - **Auto-Generated**: Consistent API across all HTML5 elements via schema-first approach
11
+ - **Null/Undefined Handling**: Automatic attribute removal for null/undefined values
12
+ - **Framework Agnostic**: Works in any JavaScript/TypeScript environment
9
13
 
10
14
  ## Installation
11
15
 
package/index.ts CHANGED
@@ -48,7 +48,7 @@ export { Map, type MapProps } from './block/map/map';
48
48
  export { Menu, type MenuProps } from './block/menu/menu';
49
49
  export { Nav, type NavProps } from './block/nav/nav';
50
50
  export { Noscript, type NoscriptProps } from './block/noscript/noscript';
51
- export { ObjectComponent as Object, type ObjectComponentProps as ObjectProps } from './block/object/object';
51
+ export { Object, type ObjectProps } from './block/object/object';
52
52
  export { Ol, type OlProps } from './block/ol/ol';
53
53
  export { Optgroup, type OptgroupProps } from './block/optgroup/optgroup';
54
54
  export { Option, type OptionProps } from './block/option/option';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typesafe-html5/typescript",
3
- "version": "0.2.58",
3
+ "version": "0.2.62",
4
4
  "description": "Type-safe, auto-generated TypeScript classes for all HTML5 elements with full WCAG, ARIA support and validation. Part of Extended HTMLDocument - schema-first from HTML5 schema.",
5
5
  "main": "index.ts",
6
6
  "types": "index.ts",