jsx-framework-test-pb 0.1.9 → 0.2.1

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,4 +1,6 @@
1
1
  import type { DevElement, ElementProps } from './types';
2
+ export type { Element } from './types';
3
+ export * from './types';
2
4
  export declare const Fragment: symbol;
3
5
  export declare function jsxDEV(type: string | Function | symbol, props: ElementProps, key?: string, isStaticChildren?: boolean, source?: {
4
6
  fileName: string;
@@ -1,4 +1,5 @@
1
1
  import { ELEMENT_TYPE, FRAGMENT_TYPE } from './utils/index.js';
2
+ export * from './types';
2
3
  export const Fragment = FRAGMENT_TYPE;
3
4
  export function jsxDEV(type, props, key, isStaticChildren, source, self) {
4
5
  return {
@@ -1,4 +1,6 @@
1
1
  import type { Element, ElementProps } from './types';
2
+ export type { Element } from './types';
3
+ export * from './types';
2
4
  export declare const Fragment: symbol;
3
5
  export declare function jsx(type: string | Function | symbol, props: ElementProps, key?: string): Element;
4
6
  export declare const jsxs: typeof jsx;
@@ -1,4 +1,5 @@
1
1
  import { ELEMENT_TYPE, FRAGMENT_TYPE } from './utils/index.js';
2
+ export * from './types';
2
3
  export const Fragment = FRAGMENT_TYPE;
3
4
  export function jsx(type, props, key) {
4
5
  return {
@@ -47,8 +47,8 @@ export function createElement(element) {
47
47
  return null;
48
48
  }
49
49
  function createReactiveChild(fn) {
50
- // Use a comment as a stable anchor point
51
- const anchor = document.createComment('');
50
+ // Use an empty text node as a stable anchor point (invisible in DOM)
51
+ const anchor = document.createTextNode('');
52
52
  let currentNode = null;
53
53
  let isFirstRun = true;
54
54
  const cleanup = effect(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsx-framework-test-pb",
3
- "version": "0.1.9",
3
+ "version": "0.2.1",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",