stillflow.engine 0.4.2 → 0.4.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.
@@ -0,0 +1,2 @@
1
+ import { Binding } from "./stillflow-vm/binding.js";
2
+ export declare function jsx<T>(type: (properties: Record<string, any>, children: Binding<any>[]) => Binding<T>, properties: Record<string, any>, ...children: Binding<any>[]): Binding<T>;
@@ -0,0 +1,3 @@
1
+ export function jsx(type, properties, ...children) {
2
+ return type(properties, children);
3
+ }
@@ -1,4 +1,4 @@
1
- import { core, vm, collection, operators, adapters } from 'stillflow.engine';
1
+ import { core, vm, collection, operators, adapters } from '../index.js';
2
2
  const { jsxdom, dom } = adapters;
3
3
  const state = new core.State();
4
4
  const stillflow = new core.Stillflow(state);
@@ -3,5 +3,4 @@ export { Payload } from './payload.js';
3
3
  export { VMConfig as Config } from './abstract/config.js';
4
4
  export { VMGenerator as Generator } from './abstract/generator.js';
5
5
  export { VMTarget as Target, VMCompiler as Compiler } from './abstract/target.js';
6
- export { jsx } from './jsx-runtime.js';
7
6
  export { vm_create as create } from './create.js';
@@ -1,4 +1,3 @@
1
1
  export { Emitter } from './emitter.js';
2
2
  export { Payload } from './payload.js';
3
- export { jsx } from './jsx-runtime.js';
4
3
  export { vm_create as create } from './create.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stillflow.engine",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "A headless, transaction-based UI engine with AOT compilation.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -9,6 +9,9 @@
9
9
  "sideEffects": false,
10
10
  "exports": {
11
11
  ".": [
12
+ "./dist"
13
+ ],
14
+ "./main": [
12
15
  "./dist/index.js"
13
16
  ],
14
17
  "./adapters": [