@jasonshimmy/custom-elements-runtime 0.0.1-beta.2 → 0.0.1-beta.4

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.
package/dist/runtime.d.ts CHANGED
@@ -56,13 +56,6 @@ export type ComputedHandler<T extends ComponentState> = (state: T) => unknown;
56
56
  * @param api - Component API
57
57
  */
58
58
  export type LifecycleHandler<T extends ComponentState> = (state: T, api: ComponentAPI<T>) => void;
59
- /**
60
- * Represents a compiled template for fast rendering and hydration.
61
- */
62
- export type CompiledTemplate<S extends ComponentState = ComponentState> = {
63
- id: string;
64
- render: (state: S, api: ComponentAPI<S>) => DocumentFragment;
65
- };
66
59
  /**
67
60
  * Plugin interface for runtime hooks (init, render, error).
68
61
  */
@@ -86,6 +79,7 @@ export { useDataModel } from './data-binding';
86
79
  export { compileTemplate, renderCompiledTemplate, updateCompiledTemplate } from './template-compiler';
87
80
  export { mountVNode, patchVNode, createVNodeFromElement, parseVNodeFromHTML, safeReplaceChild, getVNodeKey } from './v-dom';
88
81
  export type { VNode } from './v-dom';
82
+ import type { CompiledTemplate } from './template-compiler';
89
83
  /**
90
84
  * Recursively sanitizes an object, removing dangerous keys and prototype pollution.
91
85
  * Handles circular references using a WeakSet.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jasonshimmy/custom-elements-runtime",
3
3
  "description": "A powerful, modern, and lightweight runtime for creating reactive web components with TypeScript",
4
- "version": "0.0.1-beta.2",
4
+ "version": "0.0.1-beta.4",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "web-components",