@jasonshimmy/custom-elements-runtime 0.0.1 → 0.0.2-beta.0

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
@@ -74,7 +74,7 @@ export { Store } from './store';
74
74
  export { eventBus } from './event-bus';
75
75
  export { renderToString, renderComponentsToString, generateHydrationScript } from './ssr';
76
76
  export type { SSRComponentConfig, SSRRenderOptions, SSRContext } from './ssr';
77
- export { html, compile, css, classes, styles, ref, on } from './template-helpers';
77
+ export { html, compile, css, classes, styles } from './template-helpers';
78
78
  export { useDataModel } from './data-binding';
79
79
  export { compileTemplate, renderCompiledTemplate, updateCompiledTemplate } from './template-compiler';
80
80
  export { mountVNode, patchVNode, createVNodeFromElement, parseVNodeFromHTML, safeReplaceChild, getVNodeKey } from './v-dom';
@@ -31,19 +31,6 @@ export declare function compile(strings: TemplateStringsArray, ...values: any[])
31
31
  * @param values - Dynamic values
32
32
  */
33
33
  export declare function css(strings: TemplateStringsArray, ...values: unknown[]): string;
34
- /**
35
- * Create a ref function for element references.
36
- * @param callback - Callback to run with the element
37
- */
38
- export declare function ref<T extends Element = Element>(callback: (el: T) => void): (el: Element) => void;
39
- /**
40
- * Create event handlers with strong typing for use in templates.
41
- * @param eventType - Event type
42
- * @param handler - Handler function
43
- */
44
- export declare function on<K extends keyof HTMLElementEventMap>(eventType: K, handler: (event: HTMLElementEventMap[K], state: any, api: any) => void): {
45
- [key in K]: (event: HTMLElementEventMap[K], state: any, api: any) => void;
46
- };
47
34
  /**
48
35
  * Helper for conditional classes. Returns a space-separated string of class names.
49
36
  * @param obj - Object with class names as keys and boolean conditions as values
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",
4
+ "version": "0.0.2-beta.0",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "web-components",