@uniqode/card-templates 1.0.0 → 1.0.2

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.
@@ -1,5 +1,5 @@
1
1
  // Core TypeScript definitions for Uniqode Card Templates
2
- import * as React from 'react';
2
+ // Framework-agnostic Web Components library - no React dependency
3
3
  import {
4
4
  PRODUCT_STATE,
5
5
  LEAD_COLLECT_TYPE,
@@ -397,7 +397,7 @@ export interface BaseTemplateProps {
397
397
  config?: BaseCardConfig;
398
398
 
399
399
  // Styling overrides
400
- style?: React.CSSProperties;
400
+ style?: Record<string, string | number>;
401
401
  className?: string;
402
402
  }
403
403
 
@@ -414,18 +414,18 @@ export interface Layout12Props extends BaseTemplateProps {
414
414
  }
415
415
 
416
416
  // ============================================================================
417
- // WEB COMPONENT DECLARATIONS FOR JSX/TSX
417
+ // WEB COMPONENT DECLARATIONS FOR VANILLA JS/TS
418
418
  // ============================================================================
419
419
 
420
- declare global {
421
- namespace JSX {
422
- interface IntrinsicElements {
423
- 'uniqode-layout-12': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
424
- ref?: React.Ref<HTMLElement & UniqodeCardElement>;
425
- };
426
- }
427
- }
428
- }
420
+ // Note: For React/JSX usage, consumers should add their own type augmentation:
421
+ // declare namespace JSX {
422
+ // interface IntrinsicElements {
423
+ // 'uniqode-layout-12': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
424
+ // }
425
+ // }
426
+
427
+ // For Angular, use CUSTOM_ELEMENTS_SCHEMA in the module
428
+ // For Vue, components are auto-recognized
429
429
 
430
430
  // ============================================================================
431
431
  // WEB COMPONENT ELEMENT INTERFACE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniqode/card-templates",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Universal Web Components library for digital business card templates. Framework-agnostic, customizable, and production-ready.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",