flexium 0.10.7 → 0.12.8
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/README.md +10 -10
- package/dist/canvas.d.cts +83 -23
- package/dist/canvas.d.ts +83 -23
- package/dist/canvas.js +1 -1
- package/dist/canvas.js.map +1 -1
- package/dist/canvas.mjs +1 -1
- package/dist/canvas.mjs.map +1 -1
- package/dist/chunk-44RZHCII.mjs +2 -0
- package/dist/chunk-44RZHCII.mjs.map +1 -0
- package/dist/chunk-7BXR4ZFD.js +2 -0
- package/dist/chunk-7BXR4ZFD.js.map +1 -0
- package/dist/chunk-CPJRQL2C.mjs +2 -0
- package/dist/chunk-CPJRQL2C.mjs.map +1 -0
- package/dist/chunk-ENWGYQNU.js +2 -0
- package/dist/chunk-ENWGYQNU.js.map +1 -0
- package/dist/chunk-EXLNKYSH.js +2 -0
- package/dist/chunk-EXLNKYSH.js.map +1 -0
- package/dist/chunk-IA4FEBFE.js +2 -0
- package/dist/chunk-IA4FEBFE.js.map +1 -0
- package/dist/chunk-IOF6L2BT.mjs +2 -0
- package/dist/chunk-IOF6L2BT.mjs.map +1 -0
- package/dist/chunk-KBUONZI2.js +2 -0
- package/dist/chunk-KBUONZI2.js.map +1 -0
- package/dist/chunk-LUREDEUB.mjs +2 -0
- package/dist/chunk-LUREDEUB.mjs.map +1 -0
- package/dist/chunk-LUW7DIEW.js +2 -0
- package/dist/chunk-LUW7DIEW.js.map +1 -0
- package/dist/chunk-S6WF3XNF.mjs +2 -0
- package/dist/chunk-S6WF3XNF.mjs.map +1 -0
- package/dist/chunk-ZCO4NIGC.mjs +2 -0
- package/dist/chunk-ZCO4NIGC.mjs.map +1 -0
- package/dist/core.d.cts +41 -2
- package/dist/core.d.ts +41 -2
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/dom.d.cts +10 -33
- package/dist/dom.d.ts +10 -33
- package/dist/dom.js +1 -1
- package/dist/dom.js.map +1 -1
- package/dist/dom.mjs +1 -1
- package/dist/dom.mjs.map +1 -1
- package/dist/index.d.cts +1 -24
- package/dist/index.d.ts +1 -24
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/interactive.d.cts +65 -148
- package/dist/interactive.d.ts +65 -148
- package/dist/interactive.js +1 -1
- package/dist/interactive.js.map +1 -1
- package/dist/interactive.mjs +1 -1
- package/dist/interactive.mjs.map +1 -1
- package/dist/jsx-dev-runtime.d.cts +6 -2
- package/dist/jsx-dev-runtime.d.ts +6 -2
- package/dist/jsx-dev-runtime.js +1 -1
- package/dist/jsx-dev-runtime.js.map +1 -1
- package/dist/jsx-dev-runtime.mjs +1 -1
- package/dist/jsx-dev-runtime.mjs.map +1 -1
- package/dist/jsx-runtime.d.cts +6 -68
- package/dist/jsx-runtime.d.ts +6 -68
- package/dist/jsx-runtime.js +1 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/router.d.cts +48 -15
- package/dist/router.d.ts +48 -15
- package/dist/router.js +1 -1
- package/dist/router.js.map +1 -1
- package/dist/router.mjs +1 -1
- package/dist/router.mjs.map +1 -1
- package/package.json +13 -53
- package/dist/DrawText-CVAKQ5wZ.d.cts +0 -309
- package/dist/DrawText-Dlh1L1Ar.d.ts +0 -309
- package/dist/Motion-BrOAJzgH.d.cts +0 -87
- package/dist/Motion-BrOAJzgH.d.ts +0 -87
- package/dist/advanced.d.cts +0 -32
- package/dist/advanced.d.ts +0 -32
- package/dist/advanced.js +0 -2
- package/dist/advanced.js.map +0 -1
- package/dist/advanced.mjs +0 -2
- package/dist/advanced.mjs.map +0 -1
- package/dist/chunk-5ICRQIS2.js +0 -3
- package/dist/chunk-5ICRQIS2.js.map +0 -1
- package/dist/chunk-5K55ASOD.mjs +0 -3
- package/dist/chunk-5K55ASOD.mjs.map +0 -1
- package/dist/chunk-AZEHBSBG.js +0 -3
- package/dist/chunk-AZEHBSBG.js.map +0 -1
- package/dist/chunk-BBNYMXE7.mjs +0 -2
- package/dist/chunk-BBNYMXE7.mjs.map +0 -1
- package/dist/chunk-BYHIHYRR.mjs +0 -2
- package/dist/chunk-BYHIHYRR.mjs.map +0 -1
- package/dist/chunk-DZ7L3SHV.js +0 -2
- package/dist/chunk-DZ7L3SHV.js.map +0 -1
- package/dist/chunk-ECYYIQEX.mjs +0 -3
- package/dist/chunk-ECYYIQEX.mjs.map +0 -1
- package/dist/chunk-FDMJHFN7.mjs +0 -2
- package/dist/chunk-FDMJHFN7.mjs.map +0 -1
- package/dist/chunk-GKJQEOP7.mjs +0 -2
- package/dist/chunk-GKJQEOP7.mjs.map +0 -1
- package/dist/chunk-GYDP6MFV.js +0 -3
- package/dist/chunk-GYDP6MFV.js.map +0 -1
- package/dist/chunk-HB5VPQTB.mjs +0 -2
- package/dist/chunk-HB5VPQTB.mjs.map +0 -1
- package/dist/chunk-KNF5ERPK.mjs +0 -2
- package/dist/chunk-KNF5ERPK.mjs.map +0 -1
- package/dist/chunk-OPAAGNBO.mjs +0 -2
- package/dist/chunk-OPAAGNBO.mjs.map +0 -1
- package/dist/chunk-OPAQ4R4M.mjs +0 -2
- package/dist/chunk-OPAQ4R4M.mjs.map +0 -1
- package/dist/chunk-Q7IWDVJ4.js +0 -2
- package/dist/chunk-Q7IWDVJ4.js.map +0 -1
- package/dist/chunk-QPCIDSMM.js +0 -2
- package/dist/chunk-QPCIDSMM.js.map +0 -1
- package/dist/chunk-QZIX4FXS.mjs +0 -2
- package/dist/chunk-QZIX4FXS.mjs.map +0 -1
- package/dist/chunk-RMN5IPS5.js +0 -2
- package/dist/chunk-RMN5IPS5.js.map +0 -1
- package/dist/chunk-U6C6VDVZ.js +0 -2
- package/dist/chunk-U6C6VDVZ.js.map +0 -1
- package/dist/chunk-WQFQO5LK.js +0 -2
- package/dist/chunk-WQFQO5LK.js.map +0 -1
- package/dist/chunk-WVEJT7HD.mjs +0 -2
- package/dist/chunk-WVEJT7HD.mjs.map +0 -1
- package/dist/chunk-WWEWRI6S.js +0 -2
- package/dist/chunk-WWEWRI6S.js.map +0 -1
- package/dist/chunk-XJHWMHKF.js +0 -2
- package/dist/chunk-XJHWMHKF.js.map +0 -1
- package/dist/chunk-Y6KKAHLS.mjs +0 -3
- package/dist/chunk-Y6KKAHLS.mjs.map +0 -1
- package/dist/chunk-YDZ37ZZ4.js +0 -2
- package/dist/chunk-YDZ37ZZ4.js.map +0 -1
- package/dist/chunk-YPVRQKMW.js +0 -2
- package/dist/chunk-YPVRQKMW.js.map +0 -1
- package/dist/components-BMbqsbMY.d.cts +0 -126
- package/dist/components-C83mBQXW.d.ts +0 -126
- package/dist/core-CxHP8991.d.cts +0 -32
- package/dist/core-D0ggvjX3.d.ts +0 -32
- package/dist/effect-554ONNZR.js +0 -2
- package/dist/effect-554ONNZR.js.map +0 -1
- package/dist/effect-T2GVIS3T.mjs +0 -2
- package/dist/effect-T2GVIS3T.mjs.map +0 -1
- package/dist/owner-QS9tPwPr.d.cts +0 -27
- package/dist/owner-QS9tPwPr.d.ts +0 -27
- package/dist/portal-BK_0Z0hE.d.cts +0 -206
- package/dist/portal-CbguxtuQ.d.ts +0 -206
- package/dist/primitives/layout.d.cts +0 -295
- package/dist/primitives/layout.d.ts +0 -295
- package/dist/primitives/layout.js +0 -2
- package/dist/primitives/layout.js.map +0 -1
- package/dist/primitives/layout.mjs +0 -2
- package/dist/primitives/layout.mjs.map +0 -1
- package/dist/primitives/motion.d.cts +0 -230
- package/dist/primitives/motion.d.ts +0 -230
- package/dist/primitives/motion.js +0 -2
- package/dist/primitives/motion.js.map +0 -1
- package/dist/primitives/motion.mjs +0 -2
- package/dist/primitives/motion.mjs.map +0 -1
- package/dist/primitives/ui.d.cts +0 -81
- package/dist/primitives/ui.d.ts +0 -81
- package/dist/primitives/ui.js +0 -2
- package/dist/primitives/ui.js.map +0 -1
- package/dist/primitives/ui.mjs +0 -2
- package/dist/primitives/ui.mjs.map +0 -1
- package/dist/primitives.d.cts +0 -93
- package/dist/primitives.d.ts +0 -93
- package/dist/primitives.js +0 -2
- package/dist/primitives.js.map +0 -1
- package/dist/primitives.mjs +0 -2
- package/dist/primitives.mjs.map +0 -1
- package/dist/renderer-DSLb-FGg.d.cts +0 -135
- package/dist/renderer-DSLb-FGg.d.ts +0 -135
- package/dist/server.d.cts +0 -3
- package/dist/server.d.ts +0 -3
- package/dist/server.js +0 -2
- package/dist/server.js.map +0 -1
- package/dist/server.mjs +0 -2
- package/dist/server.mjs.map +0 -1
- package/dist/state-DitsMyev.d.cts +0 -96
- package/dist/state-DitsMyev.d.ts +0 -96
- package/dist/state-RYKSC35A.mjs +0 -2
- package/dist/state-RYKSC35A.mjs.map +0 -1
- package/dist/state-XUXPMCFJ.js +0 -2
- package/dist/state-XUXPMCFJ.js.map +0 -1
- package/dist/sync-Z4QqUDjF.d.cts +0 -25
- package/dist/sync-Z4QqUDjF.d.ts +0 -25
- package/dist/test-exports.d.cts +0 -68
- package/dist/test-exports.d.ts +0 -68
- package/dist/test-exports.js +0 -2
- package/dist/test-exports.js.map +0 -1
- package/dist/test-exports.mjs +0 -2
- package/dist/test-exports.mjs.map +0 -1
package/dist/interactive.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/interactive/loop.ts","../src/interactive/keyboard.ts","../src/interactive/mouse.ts"],"names":["createLoop","options","fixedFps","onUpdate","onFixedUpdate","onRender","fixedDelta","running","rafId","lastTime","accumulator","fps","frameCount","fpsTime","isFirstFrame","loop","currentTime","time","delta","alpha","keyboard","target","keys","anyKeyPressed","setAnyKeyPressed","state","justPressed","justReleased","normalizeKey","key","getKeySignal","code","s","handleKeyDown","setS","handleKeyUp","any","sig","handleBlur","pressed","keysSignal","Keys","mouse","canvas","position","setPosition","setDelta","wheelDelta","setWheelDelta","buttons","setButtons","lastX","lastY","frameDeltaX","frameDeltaY","frameWheelDelta","getCanvasCoordinates","event","rect","scaleX","scaleY","handleMouseMove","e","coords","handleMouseDown","newButtons","handleMouseUp","handleWheel","handleMouseLeave","handleContextMenu","_e","eventTarget","button","MouseButton"],"mappings":"4HA6BO,SAASA,CAAAA,CAAWC,CAAAA,CAAuB,EAAC,CAAS,CAC1D,GAAM,CAAE,QAAA,CAAAC,CAAAA,CAAW,EAAA,CAAI,QAAA,CAAAC,CAAAA,CAAU,cAAAC,CAAAA,CAAe,QAAA,CAAAC,CAAS,CAAA,CAAIJ,CAAAA,CAEvDK,CAAAA,CAAa,EAAIJ,CAAAA,CACnBK,CAAAA,CAAU,KAAA,CACVC,CAAAA,CACAC,CAAAA,CAAW,CAAA,CACXC,EAAc,CAAA,CACdC,CAAAA,CAAM,CAAA,CACNC,CAAAA,CAAa,CAAA,CACbC,CAAAA,CAAU,EACVC,CAAAA,CAAe,IAAA,CAEnB,SAASC,CAAAA,CAAKC,CAAAA,CAA2B,CACvC,GAAI,CAACT,CAAAA,CAAS,OAEdC,CAAAA,CAAQ,qBAAA,CAAsBO,CAAI,CAAA,CAGlC,IAAME,CAAAA,CAAOD,CAAAA,CAAc,GAAA,CAG3B,GAAIF,CAAAA,CAAc,CAChBL,EAAWQ,CAAAA,CACXH,CAAAA,CAAe,KAAA,CACf,MACF,CAEA,IAAMI,EAAQ,IAAA,CAAK,GAAA,CAAID,CAAAA,CAAOR,CAAAA,CAAU,GAAI,CAAA,CAkB5C,GAjBAA,CAAAA,CAAWQ,CAAAA,CAGXL,CAAAA,EAAAA,CACAC,CAAAA,EAAWK,CAAAA,CACPL,CAAAA,EAAW,IACbF,CAAAA,CAAMC,CAAAA,CACNA,CAAAA,CAAa,CAAA,CACbC,CAAAA,EAAW,CAAA,CAAA,CAITV,GACFA,CAAAA,CAASe,CAAK,CAAA,CAIZd,CAAAA,CAGF,IAFAM,CAAAA,EAAeQ,EAERR,CAAAA,EAAeJ,CAAAA,EACpBF,CAAAA,CAAcE,CAAU,CAAA,CACxBI,CAAAA,EAAe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AAA,CAAI,CAAC,CACxB,CAAA,CAEA,eAAA,EAA2B,CACzB,OAAOA,CAAAA,EAAQ,CAAE,GAAA,CAAI,CAAC,CACxB,EAEA,eAAA,EAAwB,CACtBI,CAAAA,CAAc,CAAA,CACdC,CAAAA,CAAc,CAAA,CACdC,CAAAA,CAAkB,CAAA,CAClBT,CAAAA,CAAS,CAAE,CAAA,CAAG,CAAA,CAAG,CAAA,CAAG,CAAE,CAAC,CAAA,CACvBE,CAAAA,CAAc,CAAC,EACjB,CAAA,CAEA,OAAA,EAAgB,CACduB,CAAAA,CAAY,mBAAA,CAAoB,WAAA,CAAaV,CAAe,CAAA,CAC5DU,CAAAA,CAAY,oBAAoB,WAAA,CAAaP,CAAe,CAAA,CAC5DO,CAAAA,CAAY,mBAAA,CAAoB,SAAA,CAAWL,CAAa,CAAA,CACxDK,CAAAA,CAAY,mBAAA,CAAoB,OAAA,CAASJ,CAAW,CAAA,CACpDI,CAAAA,CAAY,oBAAoB,YAAA,CAAcH,GAAgB,CAAA,CAC9DG,CAAAA,CAAY,mBAAA,CAAoB,aAAA,CAAeF,CAAiB,CAAA,CAE5DhD,CAAAA,GAAW,MAAA,EACb,MAAA,CAAO,mBAAA,CAAoB,SAAA,CAAW6C,CAAa,EAEvD,CACF,CACF,CAGO,IAAMO,CAAAA,CAAc,CACzB,IAAA,CAAM,CAAA,CACN,MAAA,CAAQ,CAAA,CACR,KAAA,CAAO,CACT","file":"interactive.mjs","sourcesContent":["/**\n * Loop - Core animation/game loop implementation with delta time and fixed timestep\n */\n\nexport interface LoopOptions {\n /** Target FPS for fixed update (default: 60) */\n fixedFps?: number\n /** Called every frame with delta time in seconds */\n onUpdate?: (delta: number) => void\n /** Called at fixed intervals (for physics) */\n onFixedUpdate?: (fixedDelta: number) => void\n /** Called every frame for rendering */\n onRender?: (alpha: number) => void\n}\n\nexport interface Loop {\n /** Start the loop */\n start(): void\n /** Stop the loop */\n stop(): void\n /** Check if loop is running */\n isRunning(): boolean\n /** Get current FPS */\n getFps(): number\n}\n\n/**\n * Create an animation loop with delta time and optional fixed timestep\n */\nexport function createLoop(options: LoopOptions = {}): Loop {\n const { fixedFps = 60, onUpdate, onFixedUpdate, onRender } = options\n\n const fixedDelta = 1 / fixedFps\n let running = false\n let rafId: number | undefined\n let lastTime = 0\n let accumulator = 0\n let fps = 0\n let frameCount = 0\n let fpsTime = 0\n let isFirstFrame = true\n\n function loop(currentTime: number): void {\n if (!running) return\n\n rafId = requestAnimationFrame(loop)\n\n // Convert to seconds\n const time = currentTime / 1000\n\n // Initialize lastTime on first frame and skip processing\n if (isFirstFrame) {\n lastTime = time\n isFirstFrame = false\n return\n }\n\n const delta = Math.min(time - lastTime, 0.25) // Cap at 250ms\n lastTime = time\n\n // FPS counter\n frameCount++\n fpsTime += delta\n if (fpsTime >= 1) {\n fps = frameCount\n frameCount = 0\n fpsTime -= 1\n }\n\n // Variable update\n if (onUpdate) {\n onUpdate(delta)\n }\n\n // Fixed update (for physics)\n if (onFixedUpdate) {\n accumulator += delta\n\n while (accumulator >= fixedDelta) {\n onFixedUpdate(fixedDelta)\n accumulator -= fixedDelta\n }\n }\n\n // Render with interpolation alpha\n if (onRender) {\n const alpha = onFixedUpdate ? accumulator / fixedDelta : 1\n onRender(alpha)\n }\n }\n\n return {\n start() {\n if (running) return\n running = true\n isFirstFrame = true\n accumulator = 0\n rafId = requestAnimationFrame(loop)\n },\n\n stop() {\n running = false\n if (rafId !== undefined) {\n cancelAnimationFrame(rafId)\n rafId = undefined\n }\n },\n\n isRunning() {\n return running\n },\n\n getFps() {\n return fps\n },\n }\n}\n","/**\n * keyboard - Reactive keyboard input handler\n *\n * Creates a keyboard input handler with reactive signals.\n * Philosophy: No hooks, just factory functions that return signal-based state.\n */\n\nimport { state, type StateValue } from '../core/state'\n\nexport interface KeyboardState {\n /** Check if a key is currently pressed */\n isPressed(key: string): boolean\n /** Check if a key was pressed in the current frame */\n isJustPressed(key: string): boolean\n /** Check if a key was released in the current frame */\n isJustReleased(key: string): boolean\n /** Get all currently pressed keys */\n getPressed(): string[]\n /** Get all currently pressed keys (alias) */\n getPressedKeys(): string[]\n /** \n * Reactive set of all currently pressed keys\n * @deprecated Use isPressed() or getPressed() instead for better performance\n */\n keys: StateValue<Set<string>>\n\n /** Clear all state at end of frame */\n clearFrameState(): void\n /** Remove event listeners */\n dispose(): void\n}\n\n/**\n * Create a keyboard input handler with reactive state\n *\n * @example\n * ```tsx\n * const kb = keyboard()\n *\n * effect(() => {\n * if (kb.isPressed(Keys.ArrowUp)) {\n * player.y -= speed\n * }\n * })\n * ```\n */\nexport function keyboard(target: EventTarget = window): KeyboardState {\n // Map of key code -> [signal, setter]\n const keys = new Map<string, [StateValue<boolean>, (v: boolean) => void]>()\n const [anyKeyPressed, setAnyKeyPressed] = state(false)\n const justPressed = new Set<string>()\n const justReleased = new Set<string>()\n\n function normalizeKey(key: string): string {\n return key.toLowerCase()\n }\n\n function getKeySignal(code: string): [StateValue<boolean>, (v: boolean) => void] {\n let s = keys.get(code)\n if (!s) {\n s = state(false)\n keys.set(code, s)\n }\n return s\n }\n\n // Cleanup original handlers if they exist or just overwrite?\n // Previous replace might have mixed things.\n // Re-implement handlers fully.\n\n function handleKeyDown(e: KeyboardEvent): void {\n const key = normalizeKey(e.code)\n const [s, setS] = getKeySignal(key)\n if (!s()) {\n setS(true)\n justPressed.add(key)\n setAnyKeyPressed(true)\n }\n }\n\n function handleKeyUp(e: KeyboardEvent): void {\n const key = normalizeKey(e.code)\n const [s, setS] = getKeySignal(key)\n if (s()) {\n setS(false)\n justReleased.add(key)\n // Re-check any key\n let any = false\n for (const [sig] of keys.values()) {\n if (sig()) {\n any = true\n break\n }\n }\n setAnyKeyPressed(any)\n }\n }\n\n function handleBlur(): void {\n // Clear all keys when window loses focus\n for (const [, setS] of keys.values()) {\n setS(false)\n }\n setAnyKeyPressed(false)\n justPressed.clear()\n justReleased.clear()\n }\n\n // Attach listeners\n target.addEventListener('keydown', handleKeyDown as EventListener)\n target.addEventListener('keyup', handleKeyUp as EventListener)\n window.addEventListener('blur', handleBlur)\n\n return {\n isPressed(key: string) {\n const s = keys.get(normalizeKey(key))\n return s ? s[0]() : false\n },\n\n isJustPressed(key: string) {\n return justPressed.has(normalizeKey(key))\n },\n\n isJustReleased(key: string) {\n return justReleased.has(normalizeKey(key))\n },\n\n getPressedKeys(): string[] {\n const pressed: string[] = []\n for (const [key, [sig]] of keys.entries()) {\n if (sig()) {\n pressed.push(key)\n }\n }\n return pressed\n },\n\n getPressed(): string[] {\n return this.getPressedKeys()\n },\n\n get keys() {\n // This getter returns a computed signal that derives from the individual key signals\n const [keysSignal] = state(() => {\n const pressed = new Set<string>()\n for (const [key, [sig]] of keys.entries()) {\n if (sig()) {\n pressed.add(key)\n }\n }\n return pressed\n })\n return keysSignal as unknown as StateValue<Set<string>>\n },\n\n clearFrameState(): void {\n justPressed.clear()\n justReleased.clear()\n },\n\n dispose(): void {\n target.removeEventListener('keydown', handleKeyDown as EventListener)\n target.removeEventListener('keyup', handleKeyUp as EventListener)\n if (target === window) {\n target.removeEventListener('blur', handleBlur)\n }\n },\n }\n}\n\n/** Common key codes for convenience */\nexport const Keys = {\n // Arrow keys\n ArrowUp: 'arrowup',\n ArrowDown: 'arrowdown',\n ArrowLeft: 'arrowleft',\n ArrowRight: 'arrowright',\n\n // WASD\n KeyW: 'keyw',\n KeyA: 'keya',\n KeyS: 'keys',\n KeyD: 'keyd',\n\n // Common keys\n Space: 'space',\n Enter: 'enter',\n Escape: 'escape',\n ShiftLeft: 'shiftleft',\n ShiftRight: 'shiftright',\n ControlLeft: 'controlleft',\n ControlRight: 'controlright',\n AltLeft: 'altleft',\n AltRight: 'altright',\n Tab: 'tab',\n\n // Numbers\n Digit0: 'digit0',\n Digit1: 'digit1',\n Digit2: 'digit2',\n Digit3: 'digit3',\n Digit4: 'digit4',\n Digit5: 'digit5',\n Digit6: 'digit6',\n Digit7: 'digit7',\n Digit8: 'digit8',\n Digit9: 'digit9',\n} as const\n","/**\n * mouse - Reactive mouse input handler\n *\n * Creates a mouse input handler with reactive signals.\n * Philosophy: No hooks, just factory functions that return signal-based state.\n */\n\nimport { state, type StateValue } from '../core/state'\n\nexport interface Vec2 {\n x: number\n y: number\n}\n\nexport interface MouseState {\n /** Current mouse position relative to target */\n readonly position: StateValue<Vec2>\n /** Mouse position delta since last frame */\n readonly delta: StateValue<Vec2>\n /** Check if a mouse button is pressed (0=left, 1=middle, 2=right) */\n isPressed(button: number): boolean\n /** Check if left mouse button is pressed */\n isLeftPressed(): boolean\n /** Check if right mouse button is pressed */\n isRightPressed(): boolean\n /** Check if middle mouse button is pressed */\n isMiddlePressed(): boolean\n /** Wheel delta (positive = scroll down) */\n readonly wheelDelta: StateValue<number>\n /** Clear frame state (call at end of frame) */\n clearFrameState(): void\n /** Cleanup event listeners */\n dispose(): void\n}\n\nexport interface MouseOptions {\n /** Element to track mouse relative to (default: window) */\n target?: EventTarget\n /** Canvas element for coordinate calculation (if different from target) */\n canvas?: HTMLCanvasElement\n}\n\n/**\n * Create a mouse input handler with reactive state\n *\n * @example\n * ```tsx\n * const m = mouse()\n *\n * effect(() => {\n * console.log('Mouse at:', m.position.value)\n * if (m.isLeftPressed()) {\n * draw(m.position.value)\n * }\n * })\n * ```\n */\nexport function mouse(options: MouseOptions = {}): MouseState {\n const { target = window, canvas } = options\n\n const [position, setPosition] = state<Vec2>({ x: 0, y: 0 })\n const [delta, setDelta] = state<Vec2>({ x: 0, y: 0 })\n const [wheelDelta, setWheelDelta] = state<number>(0)\n const [buttons, setButtons] = state<Set<number>>(new Set())\n\n let lastX = 0\n let lastY = 0\n let frameDeltaX = 0\n let frameDeltaY = 0\n let frameWheelDelta = 0\n\n function getCanvasCoordinates(event: MouseEvent): Vec2 {\n if (canvas) {\n const rect = canvas.getBoundingClientRect()\n const scaleX = canvas.width / rect.width\n const scaleY = canvas.height / rect.height\n return {\n x: (event.clientX - rect.left) * scaleX,\n y: (event.clientY - rect.top) * scaleY,\n }\n }\n return {\n x: event.clientX,\n y: event.clientY,\n }\n }\n\n function handleMouseMove(e: Event): void {\n const event = e as MouseEvent\n const coords = getCanvasCoordinates(event)\n\n frameDeltaX += coords.x - lastX\n frameDeltaY += coords.y - lastY\n lastX = coords.x\n lastY = coords.y\n\n setPosition(coords)\n setDelta({ x: frameDeltaX, y: frameDeltaY })\n }\n\n function handleMouseDown(e: Event): void {\n const event = e as MouseEvent\n const newButtons = new Set(buttons())\n newButtons.add(event.button)\n setButtons(newButtons)\n }\n\n function handleMouseUp(e: Event): void {\n const event = e as MouseEvent\n const newButtons = new Set(buttons())\n newButtons.delete(event.button)\n setButtons(newButtons)\n }\n\n function handleWheel(e: Event): void {\n const event = e as WheelEvent\n frameWheelDelta += Math.sign(event.deltaY)\n setWheelDelta(frameWheelDelta)\n }\n\n function handleMouseLeave(): void {\n setButtons(new Set())\n }\n\n function handleContextMenu(_e: Event): void {\n // Prevent context menu in game contexts if needed\n // e.preventDefault()\n }\n\n // Add event listeners\n const eventTarget = canvas || target\n eventTarget.addEventListener('mousemove', handleMouseMove)\n eventTarget.addEventListener('mousedown', handleMouseDown)\n eventTarget.addEventListener('mouseup', handleMouseUp)\n eventTarget.addEventListener('wheel', handleWheel)\n eventTarget.addEventListener('mouseleave', handleMouseLeave)\n eventTarget.addEventListener('contextmenu', handleContextMenu)\n\n if (target !== window) {\n window.addEventListener('mouseup', handleMouseUp)\n }\n\n return {\n get position() {\n return position\n },\n\n get delta() {\n return delta\n },\n\n get wheelDelta() {\n return wheelDelta\n },\n\n isPressed(button: number): boolean {\n return buttons().has(button)\n },\n\n isLeftPressed(): boolean {\n return buttons().has(0)\n },\n\n isRightPressed(): boolean {\n return buttons().has(2)\n },\n\n isMiddlePressed(): boolean {\n return buttons().has(1)\n },\n\n clearFrameState(): void {\n frameDeltaX = 0\n frameDeltaY = 0\n frameWheelDelta = 0\n setDelta({ x: 0, y: 0 })\n setWheelDelta(0)\n },\n\n dispose(): void {\n eventTarget.removeEventListener('mousemove', handleMouseMove)\n eventTarget.removeEventListener('mousedown', handleMouseDown)\n eventTarget.removeEventListener('mouseup', handleMouseUp)\n eventTarget.removeEventListener('wheel', handleWheel)\n eventTarget.removeEventListener('mouseleave', handleMouseLeave)\n eventTarget.removeEventListener('contextmenu', handleContextMenu)\n\n if (target !== window) {\n window.removeEventListener('mouseup', handleMouseUp)\n }\n },\n }\n}\n\n/** Mouse button constants */\nexport const MouseButton = {\n Left: 0,\n Middle: 1,\n Right: 2,\n} as const\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/interactive/loop.ts","../src/interactive/keyboard.ts","../src/interactive/mouse.ts"],"names":["loop","callbacks","fixedFps","onUpdate","onFixedUpdate","onRender","fixedDelta","maxDelta","running","lastTime","accumulator","fps","frameCount","fpsTime","rafId","currentTime","delta","alpha","Keys","keyboard","target","pressedKeys","setPressedKeys","state","justPressedKeys","setJustPressedKeys","justReleasedKeys","setJustReleasedKeys","handleKeyDown","e","key","currentPressed","newPressed","currentJustPressed","newJustPressed","handleKeyUp","currentJustReleased","newJustReleased","MouseButton","mouse","options","canvasGetter","position","setPosition","setDelta","wheelDelta","setWheelDelta","buttons","setButtons","lastX","lastY","handleMouseMove","me","canvas","x","y","rect","handleMouseDown","button","currentButtons","newButtons","handleMouseUp","handleWheel","currentPosition","currentDelta","currentWheelDelta"],"mappings":"+FAcO,SAASA,CAAAA,CAAKC,EAAgC,CACnD,GAAM,CAAE,QAAA,CAAAC,CAAAA,CAAW,GAAI,QAAA,CAAAC,CAAAA,CAAU,cAAAC,CAAAA,CAAe,QAAA,CAAAC,CAAS,CAAA,CAAIJ,CAAAA,CAEvDK,EAAa,CAAA,CAAIJ,CAAAA,CACjBK,EAAW,GAAA,CAEbC,CAAAA,CAAU,MACVC,CAAAA,CAAW,CAAA,CACXC,EAAc,CAAA,CACdC,CAAAA,CAAM,EACNC,CAAAA,CAAa,CAAA,CACbC,EAAU,CAAA,CACVC,CAAAA,CAAuB,KAE3B,SAASd,CAAAA,CAAKe,EAAq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js","sourcesContent":["export interface LoopCallbacks {\n fixedFps?: number\n onUpdate?: (delta: number) => void\n onFixedUpdate?: (fixedDelta: number) => void\n onRender?: (alpha: number) => void\n}\n\nexport interface Loop {\n start: () => void\n stop: () => void\n isRunning: () => boolean\n getFps: () => number\n}\n\nexport function loop(callbacks: LoopCallbacks): Loop {\n const { fixedFps = 60, onUpdate, onFixedUpdate, onRender } = callbacks\n\n const fixedDelta = 1 / fixedFps\n const maxDelta = 0.25 // Cap delta at 250ms to prevent spiral of death\n\n let running = false\n let lastTime = 0\n let accumulator = 0\n let fps = 0\n let frameCount = 0\n let fpsTime = 0\n let rafId: number | null = null\n\n function loop(currentTime: number) {\n if (!running) return\n\n // Calculate delta in seconds\n const delta = Math.min((currentTime - lastTime) / 1000, maxDelta)\n lastTime = currentTime\n\n // Variable timestep update\n if (onUpdate) {\n onUpdate(delta)\n }\n\n // Fixed timestep update\n if (onFixedUpdate) {\n accumulator += delta\n\n while (accumulator >= fixedDelta) {\n onFixedUpdate(fixedDelta)\n accumulator -= fixedDelta\n }\n }\n\n // Render with interpolation alpha\n if (onRender) {\n const alpha = accumulator / fixedDelta\n onRender(alpha)\n }\n\n // FPS calculation\n frameCount++\n if (currentTime - fpsTime >= 1000) {\n fps = frameCount\n frameCount = 0\n fpsTime = currentTime\n }\n\n rafId = requestAnimationFrame(loop)\n }\n\n return {\n start: () => {\n if (running) return\n running = true\n lastTime = performance.now()\n accumulator = 0\n rafId = requestAnimationFrame(loop)\n },\n\n stop: () => {\n running = false\n if (rafId !== null) {\n cancelAnimationFrame(rafId)\n rafId = null\n }\n },\n\n isRunning: () => running,\n\n getFps: () => fps\n }\n}\n","import { state } from '../core/state'\n\nexport enum Keys {\n // Arrow keys\n ArrowUp = 'ArrowUp',\n ArrowDown = 'ArrowDown',\n ArrowLeft = 'ArrowLeft',\n ArrowRight = 'ArrowRight',\n\n // WASD\n KeyW = 'KeyW',\n KeyA = 'KeyA',\n KeyS = 'KeyS',\n KeyD = 'KeyD',\n\n // Common keys\n Space = 'Space',\n Enter = 'Enter',\n Escape = 'Escape',\n Tab = 'Tab',\n\n // Modifiers\n ShiftLeft = 'ShiftLeft',\n ShiftRight = 'ShiftRight',\n ControlLeft = 'ControlLeft',\n ControlRight = 'ControlRight',\n AltLeft = 'AltLeft',\n AltRight = 'AltRight',\n\n // Numbers\n Digit0 = 'Digit0',\n Digit1 = 'Digit1',\n Digit2 = 'Digit2',\n Digit3 = 'Digit3',\n Digit4 = 'Digit4',\n Digit5 = 'Digit5',\n Digit6 = 'Digit6',\n Digit7 = 'Digit7',\n Digit8 = 'Digit8',\n Digit9 = 'Digit9',\n\n // Letters (additional common ones)\n KeyE = 'KeyE',\n KeyQ = 'KeyQ',\n KeyR = 'KeyR',\n KeyF = 'KeyF',\n}\n\nexport interface KeyboardState {\n isPressed: (key: string) => boolean\n isJustPressed: (key: string) => boolean\n isJustReleased: (key: string) => boolean\n getPressedKeys: () => string[]\n clearFrameState: () => void\n dispose: () => void\n}\n\nexport function keyboard(target: EventTarget = window): KeyboardState {\n const [pressedKeys, setPressedKeys] = state<Set<string>>(new Set<string>(), { key: ['keyboard', 'pressed'] })\n const [justPressedKeys, setJustPressedKeys] = state<Set<string>>(new Set<string>(), { key: ['keyboard', 'justPressed'] })\n const [justReleasedKeys, setJustReleasedKeys] = state<Set<string>>(new Set<string>(), { key: ['keyboard', 'justReleased'] })\n\n const handleKeyDown = (e: Event) => {\n const key = (e as KeyboardEvent).code\n const currentPressed = pressedKeys as Set<string>\n\n if (!currentPressed.has(key)) {\n const newPressed = new Set(currentPressed)\n newPressed.add(key)\n setPressedKeys(newPressed)\n\n const currentJustPressed = justPressedKeys as Set<string>\n const newJustPressed = new Set(currentJustPressed)\n newJustPressed.add(key)\n setJustPressedKeys(newJustPressed)\n }\n }\n\n const handleKeyUp = (e: Event) => {\n const key = (e as KeyboardEvent).code\n const currentPressed = pressedKeys as Set<string>\n\n const newPressed = new Set(currentPressed)\n newPressed.delete(key)\n setPressedKeys(newPressed)\n\n const currentJustReleased = justReleasedKeys as Set<string>\n const newJustReleased = new Set(currentJustReleased)\n newJustReleased.add(key)\n setJustReleasedKeys(newJustReleased)\n }\n\n target.addEventListener('keydown', handleKeyDown)\n target.addEventListener('keyup', handleKeyUp)\n\n return {\n isPressed: (key: string) => {\n const current = pressedKeys as Set<string>\n return current?.has(key) || false\n },\n\n isJustPressed: (key: string) => {\n const current = justPressedKeys as Set<string>\n return current?.has(key) || false\n },\n\n isJustReleased: (key: string) => {\n const current = justReleasedKeys as Set<string>\n return current?.has(key) || false\n },\n\n getPressedKeys: () => {\n const current = pressedKeys as Set<string>\n return Array.from(current || [])\n },\n\n clearFrameState: () => {\n setJustPressedKeys(new Set<string>())\n setJustReleasedKeys(new Set<string>())\n },\n\n dispose: () => {\n target.removeEventListener('keydown', handleKeyDown)\n target.removeEventListener('keyup', handleKeyUp)\n }\n }\n}\n","import { state } from '../core/state'\n\nexport enum MouseButton {\n Left = 0,\n Middle = 1,\n Right = 2\n}\n\nexport interface MouseOptions {\n canvas?: HTMLCanvasElement | (() => HTMLCanvasElement | undefined)\n target?: EventTarget\n}\n\nexport interface MouseState {\n x: number | null\n y: number | null\n deltaX: number\n deltaY: number\n wheelDelta: number\n isPressed: (button: MouseButton) => boolean\n isLeftPressed: () => boolean\n isRightPressed: () => boolean\n isMiddlePressed: () => boolean\n clearFrameState: () => void\n dispose: () => void\n}\n\nexport function mouse(options: MouseOptions = {}): MouseState {\n const target = options.target || window\n const canvasGetter = typeof options.canvas === 'function' ? options.canvas : () => options.canvas as HTMLCanvasElement | undefined\n\n const [position, setPosition] = state({ x: 0, y: 0 }, { key: ['mouse', 'position'] })\n const [delta, setDelta] = state({ x: 0, y: 0 }, { key: ['mouse', 'delta'] })\n const [wheelDelta, setWheelDelta] = state(0, { key: ['mouse', 'wheel'] })\n const [buttons, setButtons] = state<Set<number>>(new Set<number>(), { key: ['mouse', 'buttons'] })\n\n let lastX = 0\n let lastY = 0\n\n const handleMouseMove = (e: Event) => {\n const me = e as MouseEvent\n const canvas = canvasGetter()\n\n let x = me.clientX\n let y = me.clientY\n\n // If canvas is provided, calculate position relative to canvas\n if (canvas) {\n const rect = canvas.getBoundingClientRect()\n x = me.clientX - rect.left\n y = me.clientY - rect.top\n }\n\n setPosition({ x, y })\n setDelta({ x: x - lastX, y: y - lastY })\n lastX = x\n lastY = y\n }\n\n const handleMouseDown = (e: Event) => {\n const button = (e as MouseEvent).button\n const currentButtons = buttons as Set<number>\n const newButtons = new Set(currentButtons)\n newButtons.add(button)\n setButtons(newButtons)\n }\n\n const handleMouseUp = (e: Event) => {\n const button = (e as MouseEvent).button\n const currentButtons = buttons as Set<number>\n const newButtons = new Set(currentButtons)\n newButtons.delete(button)\n setButtons(newButtons)\n }\n\n const handleWheel = (e: Event) => {\n const we = e as WheelEvent\n setWheelDelta(we.deltaY)\n }\n\n target.addEventListener('mousemove', handleMouseMove)\n target.addEventListener('mousedown', handleMouseDown)\n target.addEventListener('mouseup', handleMouseUp)\n target.addEventListener('wheel', handleWheel)\n\n const currentButtons = buttons as Set<number>\n const currentPosition = position as { x: number; y: number }\n const currentDelta = delta as { x: number; y: number }\n const currentWheelDelta = wheelDelta as number\n\n return {\n get x() { return currentPosition.x },\n get y() { return currentPosition.y },\n get deltaX() { return currentDelta.x },\n get deltaY() { return currentDelta.y },\n get wheelDelta() { return currentWheelDelta },\n\n isPressed: (button: MouseButton) => currentButtons?.has(button) || false,\n\n isLeftPressed: () => currentButtons?.has(MouseButton.Left) || false,\n\n isRightPressed: () => currentButtons?.has(MouseButton.Right) || false,\n\n isMiddlePressed: () => currentButtons?.has(MouseButton.Middle) || false,\n\n clearFrameState: () => {\n setDelta({ x: 0, y: 0 })\n setWheelDelta(0)\n },\n\n dispose: () => {\n target.removeEventListener('mousemove', handleMouseMove)\n target.removeEventListener('mousedown', handleMouseDown)\n target.removeEventListener('mouseup', handleMouseUp)\n target.removeEventListener('wheel', handleWheel)\n }\n }\n}\n"]}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { FNode } from './dom.cjs';
|
|
2
|
+
export { Fragment } from './jsx-runtime.cjs';
|
|
3
|
+
|
|
4
|
+
declare function jsxDEV(type: any, props: any, key: any, isStaticChildren: boolean, source: any, self: any): FNode;
|
|
5
|
+
|
|
6
|
+
export { jsxDEV };
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { FNode } from './dom.js';
|
|
2
|
+
export { Fragment } from './jsx-runtime.js';
|
|
3
|
+
|
|
4
|
+
declare function jsxDEV(type: any, props: any, key: any, isStaticChildren: boolean, source: any, self: any): FNode;
|
|
5
|
+
|
|
6
|
+
export { jsxDEV };
|
package/dist/jsx-dev-runtime.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkEXLNKYSH_js=require('./chunk-EXLNKYSH.js');function x(r,a,e,t,i,s){return chunkEXLNKYSH_js.a(r,a,e)}Object.defineProperty(exports,"Fragment",{enumerable:true,get:function(){return chunkEXLNKYSH_js.c}});exports.jsxDEV=x;//# sourceMappingURL=jsx-dev-runtime.js.map
|
|
2
2
|
//# sourceMappingURL=jsx-dev-runtime.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"jsx-dev-runtime.js"}
|
|
1
|
+
{"version":3,"sources":["../src/jsx-dev-runtime.ts"],"names":["jsxDEV","type","props","key","isStaticChildren","source","self","jsx"],"mappings":"iEAGO,SAASA,CAAAA,CAAOC,CAAAA,CAAWC,CAAAA,CAAYC,CAAAA,CAAUC,CAAAA,CAA2BC,CAAAA,CAAaC,CAAAA,CAAW,CACvG,OAAOC,kBAAAA,CAAIN,CAAAA,CAAMC,CAAAA,CAAOC,CAAG,CAC/B","file":"jsx-dev-runtime.js","sourcesContent":["import { jsx, Fragment } from './jsx-runtime'\n\nexport { Fragment }\nexport function jsxDEV(type: any, props: any, key: any, isStaticChildren: boolean, source: any, self: any) {\n return jsx(type, props, key)\n}\n"]}
|
package/dist/jsx-dev-runtime.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import {a}from'./chunk-ZCO4NIGC.mjs';export{c as Fragment}from'./chunk-ZCO4NIGC.mjs';function x(r,a$1,e,t,i,s){return a(r,a$1,e)}export{x as jsxDEV};//# sourceMappingURL=jsx-dev-runtime.mjs.map
|
|
2
2
|
//# sourceMappingURL=jsx-dev-runtime.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"jsx-dev-runtime.mjs"}
|
|
1
|
+
{"version":3,"sources":["../src/jsx-dev-runtime.ts"],"names":["jsxDEV","type","props","key","isStaticChildren","source","self","jsx"],"mappings":"qFAGO,SAASA,CAAAA,CAAOC,CAAAA,CAAWC,GAAAA,CAAYC,CAAAA,CAAUC,CAAAA,CAA2BC,CAAAA,CAAaC,CAAAA,CAAW,CACvG,OAAOC,CAAAA,CAAIN,CAAAA,CAAMC,GAAAA,CAAOC,CAAG,CAC/B","file":"jsx-dev-runtime.mjs","sourcesContent":["import { jsx, Fragment } from './jsx-runtime'\n\nexport { Fragment }\nexport function jsxDEV(type: any, props: any, key: any, isStaticChildren: boolean, source: any, self: any) {\n return jsx(type, props, key)\n}\n"]}
|
package/dist/jsx-runtime.d.cts
CHANGED
|
@@ -1,78 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Flexium JSX Runtime
|
|
5
|
-
*
|
|
6
|
-
* This module provides the automatic JSX runtime for Flexium.
|
|
7
|
-
* It implements the new JSX transform introduced in React 17+.
|
|
8
|
-
*
|
|
9
|
-
* With automatic JSX runtime, you no longer need to import `f`:
|
|
10
|
-
*
|
|
11
|
-
* Before (classic):
|
|
12
|
-
* ```tsx
|
|
13
|
-
* import { f } from 'flexium/dom'
|
|
14
|
-
* function App() {
|
|
15
|
-
* return <div>Hello</div>
|
|
16
|
-
* }
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* After (automatic):
|
|
20
|
-
* ```tsx
|
|
21
|
-
* function App() {
|
|
22
|
-
* return <div>Hello</div>
|
|
23
|
-
* }
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* Usage in tsconfig.json:
|
|
27
|
-
* ```json
|
|
28
|
-
* {
|
|
29
|
-
* "compilerOptions": {
|
|
30
|
-
* "jsx": "react-jsx",
|
|
31
|
-
* "jsxImportSource": "flexium"
|
|
32
|
-
* }
|
|
33
|
-
* }
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* JSX runtime function for elements with multiple children
|
|
39
|
-
*
|
|
40
|
-
* @param type - Element type (string for built-in, function for components)
|
|
41
|
-
* @param props - Element properties including children
|
|
42
|
-
* @returns Flexium node
|
|
43
|
-
*/
|
|
44
|
-
declare function jsx(type: string | Function, props: Record<string, any>): FNode;
|
|
45
|
-
/**
|
|
46
|
-
* JSX runtime function for elements with static children
|
|
47
|
-
* (optimization hint from the compiler)
|
|
48
|
-
*
|
|
49
|
-
* @param type - Element type
|
|
50
|
-
* @param props - Element properties
|
|
51
|
-
* @returns Flexium node
|
|
52
|
-
*/
|
|
53
|
-
declare function jsxs(type: string | Function, props: Record<string, any>): FNode;
|
|
54
|
-
/**
|
|
55
|
-
* Fragment component for JSX
|
|
56
|
-
* Renders children without a wrapper element
|
|
57
|
-
*/
|
|
58
|
-
declare function Fragment(props: {
|
|
59
|
-
children?: any[];
|
|
60
|
-
}): FNode;
|
|
1
|
+
import { FNode, FNodeChild } from './dom.cjs';
|
|
61
2
|
|
|
3
|
+
declare function jsx(type: any, props: any, key?: any): FNode;
|
|
4
|
+
declare function jsxs(type: any, props: any, key?: any): FNode;
|
|
5
|
+
declare function Fragment(props: any): FNodeChild;
|
|
62
6
|
declare namespace JSX {
|
|
63
7
|
interface IntrinsicElements {
|
|
64
8
|
[elemName: string]: any;
|
|
65
9
|
}
|
|
66
|
-
type Element =
|
|
67
|
-
interface ElementClass {
|
|
68
|
-
render: any;
|
|
69
|
-
}
|
|
70
|
-
interface ElementAttributesProperty {
|
|
71
|
-
props: any;
|
|
72
|
-
}
|
|
10
|
+
type Element = FNode | FNodeChild;
|
|
73
11
|
interface ElementChildrenAttribute {
|
|
74
12
|
children: {};
|
|
75
13
|
}
|
|
76
14
|
}
|
|
77
15
|
|
|
78
|
-
export { Fragment, JSX, jsx,
|
|
16
|
+
export { Fragment, JSX, jsx, jsxs };
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,78 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Flexium JSX Runtime
|
|
5
|
-
*
|
|
6
|
-
* This module provides the automatic JSX runtime for Flexium.
|
|
7
|
-
* It implements the new JSX transform introduced in React 17+.
|
|
8
|
-
*
|
|
9
|
-
* With automatic JSX runtime, you no longer need to import `f`:
|
|
10
|
-
*
|
|
11
|
-
* Before (classic):
|
|
12
|
-
* ```tsx
|
|
13
|
-
* import { f } from 'flexium/dom'
|
|
14
|
-
* function App() {
|
|
15
|
-
* return <div>Hello</div>
|
|
16
|
-
* }
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* After (automatic):
|
|
20
|
-
* ```tsx
|
|
21
|
-
* function App() {
|
|
22
|
-
* return <div>Hello</div>
|
|
23
|
-
* }
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* Usage in tsconfig.json:
|
|
27
|
-
* ```json
|
|
28
|
-
* {
|
|
29
|
-
* "compilerOptions": {
|
|
30
|
-
* "jsx": "react-jsx",
|
|
31
|
-
* "jsxImportSource": "flexium"
|
|
32
|
-
* }
|
|
33
|
-
* }
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* JSX runtime function for elements with multiple children
|
|
39
|
-
*
|
|
40
|
-
* @param type - Element type (string for built-in, function for components)
|
|
41
|
-
* @param props - Element properties including children
|
|
42
|
-
* @returns Flexium node
|
|
43
|
-
*/
|
|
44
|
-
declare function jsx(type: string | Function, props: Record<string, any>): FNode;
|
|
45
|
-
/**
|
|
46
|
-
* JSX runtime function for elements with static children
|
|
47
|
-
* (optimization hint from the compiler)
|
|
48
|
-
*
|
|
49
|
-
* @param type - Element type
|
|
50
|
-
* @param props - Element properties
|
|
51
|
-
* @returns Flexium node
|
|
52
|
-
*/
|
|
53
|
-
declare function jsxs(type: string | Function, props: Record<string, any>): FNode;
|
|
54
|
-
/**
|
|
55
|
-
* Fragment component for JSX
|
|
56
|
-
* Renders children without a wrapper element
|
|
57
|
-
*/
|
|
58
|
-
declare function Fragment(props: {
|
|
59
|
-
children?: any[];
|
|
60
|
-
}): FNode;
|
|
1
|
+
import { FNode, FNodeChild } from './dom.js';
|
|
61
2
|
|
|
3
|
+
declare function jsx(type: any, props: any, key?: any): FNode;
|
|
4
|
+
declare function jsxs(type: any, props: any, key?: any): FNode;
|
|
5
|
+
declare function Fragment(props: any): FNodeChild;
|
|
62
6
|
declare namespace JSX {
|
|
63
7
|
interface IntrinsicElements {
|
|
64
8
|
[elemName: string]: any;
|
|
65
9
|
}
|
|
66
|
-
type Element =
|
|
67
|
-
interface ElementClass {
|
|
68
|
-
render: any;
|
|
69
|
-
}
|
|
70
|
-
interface ElementAttributesProperty {
|
|
71
|
-
props: any;
|
|
72
|
-
}
|
|
10
|
+
type Element = FNode | FNodeChild;
|
|
73
11
|
interface ElementChildrenAttribute {
|
|
74
12
|
children: {};
|
|
75
13
|
}
|
|
76
14
|
}
|
|
77
15
|
|
|
78
|
-
export { Fragment, JSX, jsx,
|
|
16
|
+
export { Fragment, JSX, jsx, jsxs };
|
package/dist/jsx-runtime.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkEXLNKYSH_js=require('./chunk-EXLNKYSH.js');Object.defineProperty(exports,"Fragment",{enumerable:true,get:function(){return chunkEXLNKYSH_js.c}});Object.defineProperty(exports,"jsx",{enumerable:true,get:function(){return chunkEXLNKYSH_js.a}});Object.defineProperty(exports,"jsxs",{enumerable:true,get:function(){return chunkEXLNKYSH_js.b}});//# sourceMappingURL=jsx-runtime.js.map
|
|
2
2
|
//# sourceMappingURL=jsx-runtime.js.map
|
package/dist/jsx-runtime.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{c as Fragment,a as jsx,
|
|
1
|
+
export{c as Fragment,a as jsx,b as jsxs}from'./chunk-ZCO4NIGC.mjs';//# sourceMappingURL=jsx-runtime.mjs.map
|
|
2
2
|
//# sourceMappingURL=jsx-runtime.mjs.map
|
package/dist/metafile-cjs.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/index.ts":{"bytes":706,"imports":[],"format":"esm"},"src/core/errors.ts":{"bytes":9307,"imports":[],"format":"esm"},"src/core/graph.ts":{"bytes":6286,"imports":[],"format":"esm"},"src/core/owner.ts":{"bytes":2491,"imports":[],"format":"esm"},"src/core/effect.ts":{"bytes":4421,"imports":[{"path":"src/core/errors.ts","kind":"import-statement","original":"./errors"},{"path":"src/core/graph.ts","kind":"import-statement","original":"./graph"},{"path":"src/core/owner.ts","kind":"import-statement","original":"./owner"}],"format":"esm"},"src/core/resource.ts":{"bytes":4165,"imports":[{"path":"src/core/state.ts","kind":"import-statement","original":"./state"},{"path":"src/core/effect.ts","kind":"import-statement","original":"./effect"},{"path":"src/core/state.ts","kind":"import-statement","original":"./state"}],"format":"esm"},"src/core/registry.ts":{"bytes":5400,"imports":[],"format":"esm"},"src/core/sync.ts":{"bytes":2762,"imports":[{"path":"./graph","kind":"import-statement","external":true}],"format":"esm"},"src/core/proxy.ts":{"bytes":20523,"imports":[{"path":"src/core/state.ts","kind":"import-statement","original":"./state"},{"path":"src/core/registry.ts","kind":"import-statement","original":"./registry"},{"path":"src/core/graph.ts","kind":"import-statement","original":"./graph"},{"path":"src/core/owner.ts","kind":"import-statement","original":"./owner"},{"path":"src/core/sync.ts","kind":"import-statement","original":"./sync"}],"format":"esm"},"src/core/component.ts":{"bytes":693,"imports":[],"format":"esm"},"src/core/state.ts":{"bytes":11237,"imports":[{"path":"src/core/resource.ts","kind":"import-statement","original":"./resource"},{"path":"src/core/proxy.ts","kind":"import-statement","original":"./proxy"},{"path":"src/core/component.ts","kind":"import-statement","original":"./component"},{"path":"src/core/registry.ts","kind":"import-statement","original":"./registry"}],"format":"esm"},"src/core.ts":{"bytes":496,"imports":[{"path":"src/core/state.ts","kind":"import-statement","original":"./core/state"},{"path":"src/core/effect.ts","kind":"import-statement","original":"./core/effect"}],"format":"esm"},"src/core/devtools.ts":{"bytes":905,"imports":[],"format":"esm"},"src/devtools/index.ts":{"bytes":6921,"imports":[{"path":"src/core/devtools.ts","kind":"import-statement","original":"../core/devtools"},{"path":"src/core/errors.ts","kind":"import-statement","original":"../core/errors"}],"format":"esm"},"src/advanced.ts":{"bytes":701,"imports":[{"path":"src/core/owner.ts","kind":"import-statement","original":"./core/owner"},{"path":"src/core/sync.ts","kind":"import-statement","original":"./core/sync"},{"path":"src/devtools/index.ts","kind":"import-statement","original":"./devtools"}],"format":"esm"},"src/renderers/dom/events.ts":{"bytes":3256,"imports":[{"path":"src/core/errors.ts","kind":"import-statement","original":"../../core/errors"}],"format":"esm"},"src/renderers/dom/index.ts":{"bytes":15690,"imports":[{"path":"src/renderers/dom/events.ts","kind":"import-statement","original":"./events"}],"format":"esm"},"src/core/fnode.ts":{"bytes":431,"imports":[],"format":"esm"},"src/renderers/dom/f.ts":{"bytes":2385,"imports":[{"path":"src/core/fnode.ts","kind":"import-statement","original":"../../core/fnode"}],"format":"esm"},"src/core/context.ts":{"bytes":2105,"imports":[{"path":"src/core/owner.ts","kind":"import-statement","original":"./owner"}],"format":"esm"},"src/renderers/dom/node-map.ts":{"bytes":885,"imports":[],"format":"esm"},"src/renderers/dom/reconcile.ts":{"bytes":9224,"imports":[{"path":"../../core/renderer","kind":"import-statement","external":true},{"path":"src/renderers/dom/index.ts","kind":"import-statement","original":"./index"},{"path":"src/renderers/dom/reactive.ts","kind":"import-statement","original":"./reactive"},{"path":"src/renderers/dom/node-map.ts","kind":"import-statement","original":"./node-map"}],"format":"esm"},"src/primitives/List/List.ts":{"bytes":12334,"imports":[{"path":"src/core/state.ts","kind":"import-statement","original":"../../core/state"},{"path":"src/core/effect.ts","kind":"import-statement","original":"../../core/effect"}],"format":"esm"},"src/primitives/List/index.ts":{"bytes":239,"imports":[{"path":"src/primitives/List/List.ts","kind":"import-statement","original":"./List"}],"format":"esm"},"src/renderers/dom/reactive.ts":{"bytes":23702,"imports":[{"path":"src/core/state.ts","kind":"import-statement","original":"../../core/state"},{"path":"src/core/effect.ts","kind":"import-statement","original":"../../core/effect"},{"path":"src/core/effect.ts","kind":"import-statement","original":"../../core/effect"},{"path":"src/core/owner.ts","kind":"import-statement","original":"../../core/owner"},{"path":"src/renderers/dom/index.ts","kind":"import-statement","original":"./index"},{"path":"src/renderers/dom/f.ts","kind":"import-statement","original":"./f"},{"path":"src/core/context.ts","kind":"import-statement","original":"../../core/context"},{"path":"src/renderers/dom/reconcile.ts","kind":"import-statement","original":"./reconcile"},{"path":"src/core/component.ts","kind":"import-statement","original":"../../core/component"},{"path":"src/primitives/List/index.ts","kind":"import-statement","original":"../../primitives/List"},{"path":"src/core/errors.ts","kind":"import-statement","original":"../../core/errors"},{"path":"src/renderers/dom/node-map.ts","kind":"import-statement","original":"./node-map"}],"format":"esm"},"src/renderers/dom/render.ts":{"bytes":6855,"imports":[{"path":"src/renderers/dom/index.ts","kind":"import-statement","original":"./index"},{"path":"src/renderers/dom/f.ts","kind":"import-statement","original":"./f"},{"path":"src/renderers/dom/reactive.ts","kind":"import-statement","original":"./reactive"}],"format":"esm"},"src/renderers/dom/portal.ts":{"bytes":1310,"imports":[{"path":"src/renderers/dom/reactive.ts","kind":"import-statement","original":"./reactive"},{"path":"src/core/effect.ts","kind":"import-statement","original":"../../core/effect"}],"format":"esm"},"src/renderers/dom/hydrate.ts":{"bytes":7644,"imports":[{"path":"src/core/state.ts","kind":"import-statement","original":"../../core/state"},{"path":"src/core/effect.ts","kind":"import-statement","original":"../../core/effect"}],"format":"esm"},"src/dom.ts":{"bytes":737,"imports":[{"path":"src/renderers/dom/index.ts","kind":"import-statement","original":"./renderers/dom"},{"path":"src/renderers/dom/f.ts","kind":"import-statement","original":"./renderers/dom/f"},{"path":"src/renderers/dom/render.ts","kind":"import-statement","original":"./renderers/dom/render"},{"path":"src/renderers/dom/reactive.ts","kind":"import-statement","original":"./renderers/dom/reactive"},{"path":"src/renderers/dom/portal.ts","kind":"import-statement","original":"./renderers/dom/portal"},{"path":"src/renderers/dom/hydrate.ts","kind":"import-statement","original":"./renderers/dom/hydrate"}],"format":"esm"},"src/primitives/utils.ts":{"bytes":5385,"imports":[],"format":"esm"},"src/primitives/canvas/utils.ts":{"bytes":927,"imports":[{"path":"src/core/state.ts","kind":"import-statement","original":"../../core/state"}],"format":"esm"},"src/primitives/canvas/renderer.ts":{"bytes":5699,"imports":[{"path":"src/primitives/canvas/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"src/primitives/canvas/Canvas.ts":{"bytes":3319,"imports":[{"path":"src/primitives/utils.ts","kind":"import-statement","original":"../utils"},{"path":"src/primitives/canvas/renderer.ts","kind":"import-statement","original":"./renderer"},{"path":"src/core/effect.ts","kind":"dynamic-import","original":"../../core/effect"},{"path":"src/core/state.ts","kind":"dynamic-import","original":"../../core/state"}],"format":"esm"},"src/primitives/canvas/DrawRect.ts":{"bytes":363,"imports":[],"format":"esm"},"src/primitives/canvas/DrawCircle.ts":{"bytes":361,"imports":[],"format":"esm"},"src/primitives/canvas/DrawArc.ts":{"bytes":376,"imports":[],"format":"esm"},"src/primitives/canvas/DrawLine.ts":{"bytes":373,"imports":[],"format":"esm"},"src/primitives/canvas/DrawPath.ts":{"bytes":361,"imports":[],"format":"esm"},"src/primitives/canvas/DrawText.ts":{"bytes":369,"imports":[],"format":"esm"},"src/canvas.ts":{"bytes":1474,"imports":[{"path":"src/core/effect.ts","kind":"import-statement","original":"./core/effect"},{"path":"src/core/owner.ts","kind":"import-statement","original":"./core/owner"},{"path":"src/primitives/canvas/Canvas.ts","kind":"import-statement","original":"./primitives/canvas/Canvas"},{"path":"src/primitives/canvas/DrawRect.ts","kind":"import-statement","original":"./primitives/canvas/DrawRect"},{"path":"src/primitives/canvas/DrawCircle.ts","kind":"import-statement","original":"./primitives/canvas/DrawCircle"},{"path":"src/primitives/canvas/DrawArc.ts","kind":"import-statement","original":"./primitives/canvas/DrawArc"},{"path":"src/primitives/canvas/DrawLine.ts","kind":"import-statement","original":"./primitives/canvas/DrawLine"},{"path":"src/primitives/canvas/DrawPath.ts","kind":"import-statement","original":"./primitives/canvas/DrawPath"},{"path":"src/primitives/canvas/DrawText.ts","kind":"import-statement","original":"./primitives/canvas/DrawText"},{"path":"src/primitives/canvas/renderer.ts","kind":"import-statement","original":"./primitives/canvas/renderer"},{"path":"src/primitives/canvas/utils.ts","kind":"import-statement","original":"./primitives/canvas/utils"}],"format":"esm"},"src/interactive/loop.ts":{"bytes":2512,"imports":[],"format":"esm"},"src/interactive/keyboard.ts":{"bytes":5128,"imports":[{"path":"src/core/state.ts","kind":"import-statement","original":"../core/state"}],"format":"esm"},"src/interactive/mouse.ts":{"bytes":5236,"imports":[{"path":"src/core/state.ts","kind":"import-statement","original":"../core/state"}],"format":"esm"},"src/interactive/index.ts":{"bytes":634,"imports":[{"path":"src/interactive/loop.ts","kind":"import-statement","original":"./loop"},{"path":"src/interactive/keyboard.ts","kind":"import-statement","original":"./keyboard"},{"path":"src/interactive/mouse.ts","kind":"import-statement","original":"./mouse"}],"format":"esm"},"src/interactive.ts":{"bytes":937,"imports":[{"path":"src/interactive/index.ts","kind":"import-statement","original":"./interactive/index"}],"format":"esm"},"src/primitives/layout/types.ts":{"bytes":9282,"imports":[],"format":"esm"},"src/primitives/layout/Row.ts":{"bytes":2890,"imports":[{"path":"src/renderers/dom/f.ts","kind":"import-statement","original":"../../renderers/dom/f"},{"path":"../../core/renderer","kind":"import-statement","external":true},{"path":"src/primitives/layout/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/primitives/layout/Column.ts":{"bytes":2919,"imports":[{"path":"src/renderers/dom/f.ts","kind":"import-statement","original":"../../renderers/dom/f"},{"path":"../../core/renderer","kind":"import-statement","external":true},{"path":"src/primitives/layout/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/primitives/layout/Spacer.ts":{"bytes":2213,"imports":[{"path":"src/renderers/dom/f.ts","kind":"import-statement","original":"../../renderers/dom/f"},{"path":"../../core/renderer","kind":"import-statement","external":true},{"path":"src/primitives/layout/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/primitives/layout/Grid.ts":{"bytes":2438,"imports":[{"path":"src/renderers/dom/f.ts","kind":"import-statement","original":"../../renderers/dom/f"},{"path":"../../core/renderer","kind":"import-statement","external":true},{"path":"src/primitives/layout/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/primitives/layout/Stack.ts":{"bytes":2923,"imports":[{"path":"src/renderers/dom/f.ts","kind":"import-statement","original":"../../renderers/dom/f"},{"path":"../../core/renderer","kind":"import-statement","external":true},{"path":"src/primitives/layout/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/primitives/layout/index.ts":{"bytes":452,"imports":[{"path":"src/primitives/layout/Row.ts","kind":"import-statement","original":"./Row"},{"path":"src/primitives/layout/Column.ts","kind":"import-statement","original":"./Column"},{"path":"src/primitives/layout/Spacer.ts","kind":"import-statement","original":"./Spacer"},{"path":"src/primitives/layout/Grid.ts","kind":"import-statement","original":"./Grid"},{"path":"src/primitives/layout/Stack.ts","kind":"import-statement","original":"./Stack"},{"path":"src/primitives/layout/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/primitives/Text.ts":{"bytes":695,"imports":[{"path":"src/primitives/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"src/primitives/Image.ts":{"bytes":794,"imports":[{"path":"src/primitives/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"src/primitives/Pressable.ts":{"bytes":1214,"imports":[{"path":"src/primitives/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"src/primitives/ScrollView.ts":{"bytes":1246,"imports":[{"path":"src/primitives/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"src/primitives/canvas/index.ts":{"bytes":415,"imports":[{"path":"src/primitives/canvas/Canvas.ts","kind":"import-statement","original":"./Canvas"},{"path":"src/primitives/canvas/DrawRect.ts","kind":"import-statement","original":"./DrawRect"},{"path":"src/primitives/canvas/DrawCircle.ts","kind":"import-statement","original":"./DrawCircle"},{"path":"src/primitives/canvas/DrawPath.ts","kind":"import-statement","original":"./DrawPath"},{"path":"src/primitives/canvas/DrawText.ts","kind":"import-statement","original":"./DrawText"},{"path":"src/primitives/canvas/DrawLine.ts","kind":"import-statement","original":"./DrawLine"},{"path":"src/primitives/canvas/DrawArc.ts","kind":"import-statement","original":"./DrawArc"},{"path":"src/primitives/canvas/renderer.ts","kind":"import-statement","original":"./renderer"},{"path":"src/primitives/canvas/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"src/primitives.ts":{"bytes":1412,"imports":[{"path":"src/core/effect.ts","kind":"import-statement","original":"./core/effect"},{"path":"src/core/owner.ts","kind":"import-statement","original":"./core/owner"},{"path":"src/core/state.ts","kind":"import-statement","original":"./core/state"},{"path":"src/primitives/layout/index.ts","kind":"import-statement","original":"./primitives/layout"},{"path":"src/primitives/Text.ts","kind":"import-statement","original":"./primitives/Text"},{"path":"src/primitives/Image.ts","kind":"import-statement","original":"./primitives/Image"},{"path":"src/primitives/Pressable.ts","kind":"import-statement","original":"./primitives/Pressable"},{"path":"src/primitives/ScrollView.ts","kind":"import-statement","original":"./primitives/ScrollView"},{"path":"src/primitives/canvas/index.ts","kind":"import-statement","original":"./primitives/canvas"},{"path":"src/primitives/utils.ts","kind":"import-statement","original":"./primitives/utils"}],"format":"esm"},"src/primitives/motion/Motion.ts":{"bytes":9869,"imports":[],"format":"esm"},"src/primitives/motion/Transition.ts":{"bytes":8557,"imports":[{"path":"src/core/effect.ts","kind":"import-statement","original":"../../core/effect"},{"path":"src/primitives/motion/Motion.ts","kind":"import-statement","original":"./Motion"},{"path":"src/renderers/dom/f.ts","kind":"import-statement","original":"../../renderers/dom/f"}],"format":"esm"},"src/primitives/motion/index.ts":{"bytes":397,"imports":[{"path":"src/primitives/motion/Motion.ts","kind":"import-statement","original":"./Motion"},{"path":"src/primitives/motion/Transition.ts","kind":"import-statement","original":"./Transition"}],"format":"esm"},"src/primitives/ui/Button.ts":{"bytes":9772,"imports":[{"path":"src/core/state.ts","kind":"import-statement","original":"../../core/state"},{"path":"src/core/effect.ts","kind":"import-statement","original":"../../core/effect"},{"path":"src/core/effect.ts","kind":"import-statement","original":"../../core/effect"},{"path":"src/core/errors.ts","kind":"import-statement","original":"../../core/errors"},{"path":"src/renderers/dom/f.ts","kind":"import-statement","original":"../../renderers/dom/f"}],"format":"esm"},"src/primitives/ui/index.ts":{"bytes":197,"imports":[{"path":"src/primitives/ui/Button.ts","kind":"import-statement","original":"./Button"}],"format":"esm"},"src/jsx-runtime.ts":{"bytes":5281,"imports":[{"path":"src/core/fnode.ts","kind":"import-statement","original":"./core/fnode"}],"format":"esm"},"src/jsx-dev-runtime.ts":{"bytes":435,"imports":[{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"./jsx-runtime"}],"format":"esm"},"src/server/index.ts":{"bytes":2777,"imports":[{"path":"src/core/state.ts","kind":"import-statement","original":"../core/state"}],"format":"esm"},"src/router/types.ts":{"bytes":1227,"imports":[],"format":"esm"},"src/router/core.ts":{"bytes":5085,"imports":[{"path":"src/core/state.ts","kind":"import-statement","original":"../core/state"},{"path":"./types","kind":"import-statement","external":true}],"format":"esm"},"src/router/utils.ts":{"bytes":4139,"imports":[{"path":"./types","kind":"import-statement","external":true},{"path":"src/renderers/dom/f.ts","kind":"import-statement","original":"../renderers/dom/f"}],"format":"esm"},"src/router/context.ts":{"bytes":344,"imports":[{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"},{"path":"./types","kind":"import-statement","external":true}],"format":"esm"},"src/router/components.ts":{"bytes":5033,"imports":[{"path":"src/core/state.ts","kind":"import-statement","original":"../core/state"},{"path":"src/router/core.ts","kind":"import-statement","original":"./core"},{"path":"src/router/utils.ts","kind":"import-statement","original":"./utils"},{"path":"./types","kind":"import-statement","external":true},{"path":"src/renderers/dom/f.ts","kind":"import-statement","original":"../renderers/dom/f"},{"path":"src/router/context.ts","kind":"import-statement","original":"./context"},{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"}],"format":"esm"},"src/router/index.ts":{"bytes":175,"imports":[{"path":"src/router/types.ts","kind":"import-statement","original":"./types"},{"path":"src/router/core.ts","kind":"import-statement","original":"./core"},{"path":"src/router/components.ts","kind":"import-statement","original":"./components"},{"path":"src/router/utils.ts","kind":"import-statement","original":"./utils"},{"path":"src/router/core.ts","kind":"import-statement","original":"./core"}],"format":"esm"},"src/renderers/dom/exports.ts":{"bytes":585,"imports":[{"path":"src/renderers/dom/index.ts","kind":"import-statement","original":"./index"},{"path":"src/renderers/dom/render.ts","kind":"import-statement","original":"./render"},{"path":"src/renderers/dom/reactive.ts","kind":"import-statement","original":"./reactive"},{"path":"src/renderers/dom/f.ts","kind":"import-statement","original":"./f"}],"format":"esm"},"src/test-exports.ts":{"bytes":1094,"imports":[{"path":"src/core/state.ts","kind":"import-statement","original":"./core/state"},{"path":"src/core/effect.ts","kind":"import-statement","original":"./core/effect"},{"path":"src/core/resource.ts","kind":"import-statement","original":"./core/resource"},{"path":"src/core/effect.ts","kind":"import-statement","original":"./core/effect"},{"path":"src/core/owner.ts","kind":"import-statement","original":"./core/owner"},{"path":"src/core/sync.ts","kind":"import-statement","original":"./core/sync"},{"path":"src/core/state.ts","kind":"import-statement","original":"./core/state"},{"path":"src/core/context.ts","kind":"import-statement","original":"./core/context"},{"path":"src/router/core.ts","kind":"import-statement","original":"./router/core"},{"path":"src/router/components.ts","kind":"import-statement","original":"./router/components"},{"path":"src/renderers/dom/reactive.ts","kind":"import-statement","original":"./renderers/dom/reactive"},{"path":"src/renderers/dom/exports.ts","kind":"import-statement","original":"./renderers/dom/exports"},{"path":"src/renderers/dom/index.ts","kind":"import-statement","original":"./renderers/dom/index"},{"path":"src/renderers/dom/portal.ts","kind":"import-statement","original":"./renderers/dom/portal"},{"path":"src/primitives/motion/index.ts","kind":"import-statement","original":"./primitives/motion"},{"path":"src/primitives/List/index.ts","kind":"import-statement","original":"./primitives/List"}],"format":"esm"}},"outputs":{"dist/state-XUXPMCFJ.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/state-XUXPMCFJ.js":{"imports":[{"path":"dist/chunk-XJHWMHKF.js","kind":"import-statement"},{"path":"dist/chunk-YPVRQKMW.js","kind":"import-statement"},{"path":"dist/chunk-WWEWRI6S.js","kind":"import-statement"},{"path":"dist/chunk-GYDP6MFV.js","kind":"import-statement"}],"exports":["STATE_SIGNAL","equals","getStateSignal","isSignal","isStateValue","isTruthy","ref","state"],"entryPoint":"src/core/state.ts","inputs":{},"bytes":298},"dist/primitives/ui.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":14439},"dist/primitives/ui.js":{"imports":[{"path":"dist/chunk-XJHWMHKF.js","kind":"import-statement"},{"path":"dist/chunk-YPVRQKMW.js","kind":"import-statement"},{"path":"dist/chunk-Q7IWDVJ4.js","kind":"import-statement"},{"path":"dist/chunk-WQFQO5LK.js","kind":"import-statement"},{"path":"dist/chunk-WWEWRI6S.js","kind":"import-statement"},{"path":"dist/chunk-GYDP6MFV.js","kind":"import-statement"}],"exports":["Button","IconButton"],"entryPoint":"src/primitives/ui/index.ts","inputs":{"src/primitives/ui/Button.ts":{"bytesInOutput":2909},"src/primitives/ui/index.ts":{"bytesInOutput":0}},"bytes":3189},"dist/primitives/layout.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/primitives/layout.js":{"imports":[{"path":"dist/chunk-YDZ37ZZ4.js","kind":"import-statement"},{"path":"dist/chunk-Q7IWDVJ4.js","kind":"import-statement"},{"path":"dist/chunk-WQFQO5LK.js","kind":"import-statement"}],"exports":["Column","Grid","Row","Spacer","Stack","getBaseValue","mapAlignItems","mapJustifyContent","mergeStyles","stylePropsToCSS","toCSSValue"],"entryPoint":"src/primitives/layout/index.ts","inputs":{},"bytes":291},"dist/jsx-runtime.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/jsx-runtime.js":{"imports":[{"path":"dist/chunk-U6C6VDVZ.js","kind":"import-statement"},{"path":"dist/chunk-WQFQO5LK.js","kind":"import-statement"}],"exports":["Fragment","jsx","jsxDEV","jsxs"],"entryPoint":"src/jsx-runtime.ts","inputs":{},"bytes":121},"dist/jsx-dev-runtime.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/jsx-dev-runtime.js":{"imports":[{"path":"dist/chunk-U6C6VDVZ.js","kind":"import-statement"},{"path":"dist/chunk-WQFQO5LK.js","kind":"import-statement"}],"exports":["Fragment","jsx","jsxDEV","jsxs"],"entryPoint":"src/jsx-dev-runtime.ts","inputs":{"src/jsx-dev-runtime.ts":{"bytesInOutput":0}},"bytes":136},"dist/chunk-U6C6VDVZ.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":7052},"dist/chunk-U6C6VDVZ.js":{"imports":[{"path":"dist/chunk-WQFQO5LK.js","kind":"import-statement"}],"exports":["a","b","c"],"inputs":{"src/jsx-runtime.ts":{"bytesInOutput":679}},"bytes":749},"dist/server.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":4796},"dist/server.js":{"imports":[{"path":"dist/chunk-XJHWMHKF.js","kind":"import-statement"},{"path":"dist/chunk-YPVRQKMW.js","kind":"import-statement"},{"path":"dist/chunk-WWEWRI6S.js","kind":"import-statement"},{"path":"dist/chunk-GYDP6MFV.js","kind":"import-statement"}],"exports":["renderToString"],"entryPoint":"src/server/index.ts","inputs":{"src/server/index.ts":{"bytesInOutput":1192}},"bytes":1345},"dist/router.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/router.js":{"imports":[{"path":"dist/chunk-AZEHBSBG.js","kind":"import-statement"},{"path":"dist/chunk-DZ7L3SHV.js","kind":"import-statement"},{"path":"dist/chunk-XJHWMHKF.js","kind":"import-statement"},{"path":"dist/chunk-YPVRQKMW.js","kind":"import-statement"},{"path":"dist/chunk-Q7IWDVJ4.js","kind":"import-statement"},{"path":"dist/chunk-WQFQO5LK.js","kind":"import-statement"},{"path":"dist/chunk-WWEWRI6S.js","kind":"import-statement"},{"path":"dist/chunk-GYDP6MFV.js","kind":"import-statement"}],"exports":["Link","Outlet","Route","Router","createLocation","createRoutesFromChildren","isUnsafePath","matchPath","matchRoutes","router","sanitizeQueryValue"],"entryPoint":"src/router/index.ts","inputs":{"src/router/index.ts":{"bytesInOutput":0}},"bytes":496},"dist/test-exports.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/test-exports.js":{"imports":[{"path":"dist/chunk-AZEHBSBG.js","kind":"import-statement"},{"path":"dist/chunk-5ICRQIS2.js","kind":"import-statement"},{"path":"dist/chunk-DZ7L3SHV.js","kind":"import-statement"},{"path":"dist/chunk-XJHWMHKF.js","kind":"import-statement"},{"path":"dist/chunk-YPVRQKMW.js","kind":"import-statement"},{"path":"dist/chunk-RMN5IPS5.js","kind":"import-statement"},{"path":"dist/chunk-Q7IWDVJ4.js","kind":"import-statement"},{"path":"dist/chunk-WQFQO5LK.js","kind":"import-statement"},{"path":"dist/chunk-WWEWRI6S.js","kind":"import-statement"},{"path":"dist/chunk-GYDP6MFV.js","kind":"import-statement"}],"exports":["LIST_MARKER","Link","Outlet","Portal","Route","Router","cleanupMotionState","context","createContext","createLocation","createReactiveRoot","createResource","domRenderer","effect","f","isListComponent","isSignal","matchPath","onCleanup","render","root","router","state","sync","untrack"],"entryPoint":"src/test-exports.ts","inputs":{"src/test-exports.ts":{"bytesInOutput":0},"src/renderers/dom/exports.ts":{"bytesInOutput":0}},"bytes":872},"dist/chunk-AZEHBSBG.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":22351},"dist/chunk-AZEHBSBG.js":{"imports":[{"path":"dist/chunk-DZ7L3SHV.js","kind":"import-statement"},{"path":"dist/chunk-XJHWMHKF.js","kind":"import-statement"},{"path":"dist/chunk-Q7IWDVJ4.js","kind":"import-statement"}],"exports":["a","b","c","d","e","f","g","h","i","j","k"],"inputs":{"src/router/core.ts":{"bytesInOutput":1254},"src/router/utils.ts":{"bytesInOutput":1056},"src/router/context.ts":{"bytesInOutput":21},"src/router/components.ts":{"bytesInOutput":1334}},"bytes":3885},"dist/effect-554ONNZR.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/effect-554ONNZR.js":{"imports":[{"path":"dist/chunk-WWEWRI6S.js","kind":"import-statement"},{"path":"dist/chunk-GYDP6MFV.js","kind":"import-statement"}],"exports":["EffectNode","effect","onCleanup"],"entryPoint":"src/core/effect.ts","inputs":{},"bytes":134},"dist/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":871},"dist/index.js":{"imports":[],"exports":["VERSION"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":15}},"bytes":37},"dist/core.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/core.js":{"imports":[{"path":"dist/chunk-XJHWMHKF.js","kind":"import-statement"},{"path":"dist/chunk-YPVRQKMW.js","kind":"import-statement"},{"path":"dist/chunk-WWEWRI6S.js","kind":"import-statement"},{"path":"dist/chunk-GYDP6MFV.js","kind":"import-statement"}],"exports":["effect","equals","isStateValue","isTruthy","ref","state"],"entryPoint":"src/core.ts","inputs":{"src/core.ts":{"bytesInOutput":0}},"bytes":249},"dist/advanced.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":11146},"dist/advanced.js":{"imports":[{"path":"dist/chunk-YPVRQKMW.js","kind":"import-statement"},{"path":"dist/chunk-GYDP6MFV.js","kind":"import-statement"}],"exports":["disableDevTools","enableDevTools","root","sync","untrack"],"entryPoint":"src/advanced.ts","inputs":{"src/advanced.ts":{"bytesInOutput":0},"src/core/devtools.ts":{"bytesInOutput":29},"src/devtools/index.ts":{"bytesInOutput":1551}},"bytes":1759},"dist/dom.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":11374},"dist/dom.js":{"imports":[{"path":"dist/chunk-5ICRQIS2.js","kind":"import-statement"},{"path":"dist/chunk-DZ7L3SHV.js","kind":"import-statement"},{"path":"dist/chunk-XJHWMHKF.js","kind":"import-statement"},{"path":"dist/chunk-YPVRQKMW.js","kind":"import-statement"},{"path":"dist/chunk-Q7IWDVJ4.js","kind":"import-statement"},{"path":"dist/chunk-WQFQO5LK.js","kind":"import-statement"},{"path":"dist/chunk-WWEWRI6S.js","kind":"import-statement"},{"path":"dist/chunk-GYDP6MFV.js","kind":"import-statement"}],"exports":["DOMRenderer","Fragment","Portal","createReactiveRoot","createRoot","domRenderer","f","hydrate","mountReactive","render"],"entryPoint":"src/dom.ts","inputs":{"src/dom.ts":{"bytesInOutput":0},"src/renderers/dom/hydrate.ts":{"bytesInOutput":2663}},"bytes":3144},"dist/chunk-5ICRQIS2.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":105062},"dist/chunk-5ICRQIS2.js":{"imports":[{"path":"dist/chunk-DZ7L3SHV.js","kind":"import-statement"},{"path":"dist/chunk-XJHWMHKF.js","kind":"import-statement"},{"path":"dist/chunk-Q7IWDVJ4.js","kind":"import-statement"},{"path":"dist/chunk-WWEWRI6S.js","kind":"import-statement"},{"path":"dist/chunk-GYDP6MFV.js","kind":"import-statement"}],"exports":["a","b","c","d","e","f","g","h","i"],"inputs":{"src/renderers/dom/events.ts":{"bytesInOutput":730},"src/renderers/dom/index.ts":{"bytesInOutput":5853},"src/primitives/List/List.ts":{"bytesInOutput":3281},"src/primitives/List/index.ts":{"bytesInOutput":0},"src/renderers/dom/node-map.ts":{"bytesInOutput":78},"src/renderers/dom/reconcile.ts":{"bytesInOutput":2220},"src/renderers/dom/reactive.ts":{"bytesInOutput":4908},"src/renderers/dom/render.ts":{"bytesInOutput":74},"src/renderers/dom/portal.ts":{"bytesInOutput":202}},"bytes":17696},"dist/chunk-DZ7L3SHV.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":2877},"dist/chunk-DZ7L3SHV.js":{"imports":[{"path":"dist/chunk-GYDP6MFV.js","kind":"import-statement"}],"exports":["a","b","c"],"inputs":{"src/core/context.ts":{"bytesInOutput":289}},"bytes":359},"dist/canvas.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/canvas.js":{"imports":[{"path":"dist/chunk-QPCIDSMM.js","kind":"import-statement"},{"path":"dist/chunk-XJHWMHKF.js","kind":"import-statement"},{"path":"dist/chunk-YPVRQKMW.js","kind":"import-statement"},{"path":"dist/chunk-WWEWRI6S.js","kind":"import-statement"},{"path":"dist/chunk-GYDP6MFV.js","kind":"import-statement"}],"exports":["Canvas","DrawArc","DrawCircle","DrawLine","DrawPath","DrawRect","DrawText","effect","renderCanvasChildren","root","unwrapSignal"],"entryPoint":"src/canvas.ts","inputs":{"src/canvas.ts":{"bytesInOutput":0}},"bytes":399},"dist/interactive.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":19733},"dist/interactive.js":{"imports":[{"path":"dist/chunk-XJHWMHKF.js","kind":"import-statement"},{"path":"dist/chunk-YPVRQKMW.js","kind":"import-statement"},{"path":"dist/chunk-WWEWRI6S.js","kind":"import-statement"},{"path":"dist/chunk-GYDP6MFV.js","kind":"import-statement"}],"exports":["Keys","MouseButton","createLoop","keyboard","mouse"],"entryPoint":"src/interactive.ts","inputs":{"src/interactive/loop.ts":{"bytesInOutput":488},"src/interactive/index.ts":{"bytesInOutput":0},"src/interactive/keyboard.ts":{"bytesInOutput":1540},"src/interactive/mouse.ts":{"bytesInOutput":1430},"src/interactive.ts":{"bytesInOutput":0}},"bytes":3659},"dist/primitives.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":6383},"dist/primitives.js":{"imports":[{"path":"dist/chunk-YDZ37ZZ4.js","kind":"import-statement"},{"path":"dist/chunk-QPCIDSMM.js","kind":"import-statement"},{"path":"dist/chunk-XJHWMHKF.js","kind":"import-statement"},{"path":"dist/chunk-YPVRQKMW.js","kind":"import-statement"},{"path":"dist/chunk-Q7IWDVJ4.js","kind":"import-statement"},{"path":"dist/chunk-WQFQO5LK.js","kind":"import-statement"},{"path":"dist/chunk-WWEWRI6S.js","kind":"import-statement"},{"path":"dist/chunk-GYDP6MFV.js","kind":"import-statement"}],"exports":["Canvas","Column","DrawArc","DrawCircle","DrawLine","DrawPath","DrawRect","DrawText","Grid","Image","Pressable","Row","ScrollView","Spacer","Stack","Text","effect","normalizeStyle","root","state"],"entryPoint":"src/primitives.ts","inputs":{"src/primitives.ts":{"bytesInOutput":0},"src/primitives/Text.ts":{"bytesInOutput":162},"src/primitives/Image.ts":{"bytesInOutput":219},"src/primitives/Pressable.ts":{"bytesInOutput":385},"src/primitives/ScrollView.ts":{"bytesInOutput":328},"src/primitives/canvas/index.ts":{"bytesInOutput":0}},"bytes":1715},"dist/chunk-YDZ37ZZ4.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":30520},"dist/chunk-YDZ37ZZ4.js":{"imports":[{"path":"dist/chunk-Q7IWDVJ4.js","kind":"import-statement"}],"exports":["a","b","c","d","e","f","g","h","i","j","k"],"inputs":{"src/primitives/layout/types.ts":{"bytesInOutput":1384},"src/primitives/layout/Row.ts":{"bytesInOutput":529},"src/primitives/layout/index.ts":{"bytesInOutput":0},"src/primitives/layout/Column.ts":{"bytesInOutput":535},"src/primitives/layout/Spacer.ts":{"bytesInOutput":387},"src/primitives/layout/Grid.ts":{"bytesInOutput":479},"src/primitives/layout/Stack.ts":{"bytesInOutput":314}},"bytes":3754},"dist/chunk-QPCIDSMM.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":27768},"dist/chunk-QPCIDSMM.js":{"imports":[{"path":"dist/chunk-XJHWMHKF.js","kind":"import-statement"},{"path":"dist/effect-554ONNZR.js","kind":"dynamic-import"},{"path":"dist/state-XUXPMCFJ.js","kind":"dynamic-import"}],"exports":["a","b","c","d","e","f","g","h","i","j"],"inputs":{"src/primitives/utils.ts":{"bytesInOutput":3403},"src/primitives/canvas/utils.ts":{"bytesInOutput":120},"src/primitives/canvas/renderer.ts":{"bytesInOutput":2032},"src/primitives/canvas/Canvas.ts":{"bytesInOutput":816},"src/primitives/canvas/DrawRect.ts":{"bytesInOutput":61},"src/primitives/canvas/DrawCircle.ts":{"bytesInOutput":63},"src/primitives/canvas/DrawArc.ts":{"bytesInOutput":60},"src/primitives/canvas/DrawLine.ts":{"bytesInOutput":61},"src/primitives/canvas/DrawPath.ts":{"bytesInOutput":61},"src/primitives/canvas/DrawText.ts":{"bytesInOutput":61}},"bytes":6857},"dist/chunk-XJHWMHKF.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":63338},"dist/chunk-XJHWMHKF.js":{"imports":[{"path":"dist/chunk-YPVRQKMW.js","kind":"import-statement"},{"path":"dist/chunk-WWEWRI6S.js","kind":"import-statement"},{"path":"dist/chunk-GYDP6MFV.js","kind":"import-statement"}],"exports":["a","b","c","d","e","f","g","h","i","j","k","l"],"inputs":{"src/core/resource.ts":{"bytesInOutput":951},"src/core/registry.ts":{"bytesInOutput":1516},"src/core/proxy.ts":{"bytesInOutput":5181},"src/core/component.ts":{"bytesInOutput":150},"src/core/state.ts":{"bytesInOutput":3170}},"bytes":11223},"dist/chunk-YPVRQKMW.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":3964},"dist/chunk-YPVRQKMW.js":{"imports":[],"exports":["a","b","c","d","e"],"inputs":{"src/core/sync.ts":{"bytesInOutput":430}},"bytes":469},"dist/primitives/motion.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/primitives/motion.js":{"imports":[{"path":"dist/chunk-RMN5IPS5.js","kind":"import-statement"},{"path":"dist/chunk-Q7IWDVJ4.js","kind":"import-statement"},{"path":"dist/chunk-WQFQO5LK.js","kind":"import-statement"},{"path":"dist/chunk-WWEWRI6S.js","kind":"import-statement"},{"path":"dist/chunk-GYDP6MFV.js","kind":"import-statement"}],"exports":["MotionController","Transition","TransitionGroup","cleanupMotionState","transitions"],"entryPoint":"src/primitives/motion/index.ts","inputs":{},"bytes":269},"dist/chunk-RMN5IPS5.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":27516},"dist/chunk-RMN5IPS5.js":{"imports":[{"path":"dist/chunk-Q7IWDVJ4.js","kind":"import-statement"},{"path":"dist/chunk-WWEWRI6S.js","kind":"import-statement"}],"exports":["a","b","c","d","e"],"inputs":{"src/primitives/motion/Motion.ts":{"bytesInOutput":3286},"src/primitives/motion/index.ts":{"bytesInOutput":0},"src/primitives/motion/Transition.ts":{"bytesInOutput":2654}},"bytes":6064},"dist/chunk-Q7IWDVJ4.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":3354},"dist/chunk-Q7IWDVJ4.js":{"imports":[{"path":"dist/chunk-WQFQO5LK.js","kind":"import-statement"}],"exports":["a","b","c"],"inputs":{"src/renderers/dom/f.ts":{"bytesInOutput":356}},"bytes":426},"dist/chunk-WQFQO5LK.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":724},"dist/chunk-WQFQO5LK.js":{"imports":[],"exports":["a"],"inputs":{"src/core/fnode.ts":{"bytesInOutput":68}},"bytes":84},"dist/chunk-WWEWRI6S.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":14412},"dist/chunk-WWEWRI6S.js":{"imports":[{"path":"dist/chunk-GYDP6MFV.js","kind":"import-statement"}],"exports":["a","b","c","d"],"inputs":{"src/core/graph.ts":{"bytesInOutput":912},"src/core/effect.ts":{"bytesInOutput":999}},"bytes":2025},"dist/chunk-GYDP6MFV.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":15951},"dist/chunk-GYDP6MFV.js":{"imports":[],"exports":["a","b","c","d","e","f","g","h","i"],"inputs":{"src/core/errors.ts":{"bytesInOutput":5188},"src/core/owner.ts":{"bytesInOutput":359}},"bytes":5619}}}
|
|
1
|
+
{"inputs":{"src/index.ts":{"bytes":67,"imports":[],"format":"esm"},"src/core/effect.ts":{"bytes":2302,"imports":[],"format":"esm"},"src/core/reactive.ts":{"bytes":2077,"imports":[{"path":"src/core/effect.ts","kind":"import-statement","original":"./effect"}],"format":"esm"},"src/core/hook.ts":{"bytes":986,"imports":[],"format":"esm"},"src/core/state.ts":{"bytes":5856,"imports":[{"path":"src/core/reactive.ts","kind":"import-statement","original":"./reactive"},{"path":"src/core/effect.ts","kind":"import-statement","original":"./effect"},{"path":"src/core/hook.ts","kind":"import-statement","original":"./hook"}],"format":"esm"},"src/core/lifecycle.ts":{"bytes":1649,"imports":[{"path":"src/core/hook.ts","kind":"import-statement","original":"./hook"},{"path":"src/core/effect.ts","kind":"import-statement","original":"./effect"}],"format":"esm"},"src/core/context.ts":{"bytes":1461,"imports":[],"format":"esm"},"src/core/index.ts":{"bytes":166,"imports":[{"path":"src/core/state.ts","kind":"import-statement","original":"./state"},{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"./lifecycle"},{"path":"src/core/context.ts","kind":"import-statement","original":"./context"}],"format":"esm"},"src/dom/index.ts":{"bytes":19543,"imports":[{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"},{"path":"src/core/hook.ts","kind":"import-statement","original":"../core/hook"},{"path":"src/core/effect.ts","kind":"import-statement","original":"../core/effect"}],"format":"esm"},"src/router/types.ts":{"bytes":807,"imports":[],"format":"esm"},"src/router/utils.ts":{"bytes":3745,"imports":[{"path":"./types","kind":"import-statement","external":true}],"format":"esm"},"src/router/router.ts":{"bytes":2599,"imports":[{"path":"src/core/reactive.ts","kind":"import-statement","original":"../core/reactive"},{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"},{"path":"src/router/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"src/jsx-runtime.ts":{"bytes":727,"imports":[],"format":"esm"},"src/router/dom/Route.tsx":{"bytes":106,"imports":[],"format":"esm"},"src/router/dom/Routes.tsx":{"bytes":2578,"imports":[{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"../../jsx-runtime"},{"path":"src/router/router.ts","kind":"import-statement","original":"../router"},{"path":"src/router/utils.ts","kind":"import-statement","original":"../utils"},{"path":"src/router/dom/Route.tsx","kind":"import-statement","original":"./Route"}],"format":"esm"},"src/router/dom/Outlet.tsx":{"bytes":769,"imports":[{"path":"src/core/state.ts","kind":"import-statement","original":"../../core/state"},{"path":"src/core/context.ts","kind":"import-statement","original":"../../core/context"},{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"../../jsx-runtime"},{"path":"src/router/router.ts","kind":"import-statement","original":"../router"}],"format":"esm"},"src/router/dom/Link.tsx":{"bytes":441,"imports":[{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"../../jsx-runtime"},{"path":"src/router/router.ts","kind":"import-statement","original":"../router"}],"format":"esm"},"src/router/index.ts":{"bytes":259,"imports":[{"path":"src/router/types.ts","kind":"import-statement","original":"./types"},{"path":"src/router/router.ts","kind":"import-statement","original":"./router"},{"path":"src/router/dom/Routes.tsx","kind":"import-statement","original":"./dom/Routes"},{"path":"src/router/dom/Route.tsx","kind":"import-statement","original":"./dom/Route"},{"path":"src/router/dom/Outlet.tsx","kind":"import-statement","original":"./dom/Outlet"},{"path":"src/router/dom/Link.tsx","kind":"import-statement","original":"./dom/Link"}],"format":"esm"},"src/canvas/Canvas.tsx":{"bytes":5692,"imports":[{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"../core/lifecycle"},{"path":"src/core/reactive.ts","kind":"import-statement","original":"../core/reactive"},{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"flexium/jsx-runtime"}],"format":"esm"},"src/canvas/dom/DrawRect.tsx":{"bytes":533,"imports":[{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"../../core/lifecycle"},{"path":"src/canvas/Canvas.tsx","kind":"import-statement","original":"../Canvas"}],"format":"esm"},"src/canvas/dom/DrawCircle.tsx":{"bytes":508,"imports":[{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"../../core/lifecycle"},{"path":"src/canvas/Canvas.tsx","kind":"import-statement","original":"../Canvas"}],"format":"esm"},"src/canvas/dom/DrawArc.tsx":{"bytes":599,"imports":[{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"../../core/lifecycle"},{"path":"src/canvas/Canvas.tsx","kind":"import-statement","original":"../Canvas"}],"format":"esm"},"src/canvas/dom/DrawLine.tsx":{"bytes":495,"imports":[{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"../../core/lifecycle"},{"path":"src/canvas/Canvas.tsx","kind":"import-statement","original":"../Canvas"}],"format":"esm"},"src/canvas/dom/DrawText.tsx":{"bytes":580,"imports":[{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"../../core/lifecycle"},{"path":"src/canvas/Canvas.tsx","kind":"import-statement","original":"../Canvas"}],"format":"esm"},"src/canvas/dom/DrawPath.tsx":{"bytes":437,"imports":[{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"../../core/lifecycle"},{"path":"src/canvas/Canvas.tsx","kind":"import-statement","original":"../Canvas"}],"format":"esm"},"src/canvas/index.ts":{"bytes":427,"imports":[{"path":"src/canvas/Canvas.tsx","kind":"import-statement","original":"./Canvas"},{"path":"src/canvas/dom/DrawRect.tsx","kind":"import-statement","original":"./dom/DrawRect"},{"path":"src/canvas/dom/DrawCircle.tsx","kind":"import-statement","original":"./dom/DrawCircle"},{"path":"src/canvas/dom/DrawArc.tsx","kind":"import-statement","original":"./dom/DrawArc"},{"path":"src/canvas/dom/DrawLine.tsx","kind":"import-statement","original":"./dom/DrawLine"},{"path":"src/canvas/dom/DrawText.tsx","kind":"import-statement","original":"./dom/DrawText"},{"path":"src/canvas/dom/DrawPath.tsx","kind":"import-statement","original":"./dom/DrawPath"}],"format":"esm"},"src/interactive/loop.ts":{"bytes":1888,"imports":[],"format":"esm"},"src/interactive/keyboard.ts":{"bytes":3391,"imports":[{"path":"src/core/state.ts","kind":"import-statement","original":"../core/state"}],"format":"esm"},"src/interactive/mouse.ts":{"bytes":3563,"imports":[{"path":"src/core/state.ts","kind":"import-statement","original":"../core/state"}],"format":"esm"},"src/interactive/index.ts":{"bytes":206,"imports":[{"path":"src/interactive/loop.ts","kind":"import-statement","original":"./loop"},{"path":"src/interactive/keyboard.ts","kind":"import-statement","original":"./keyboard"},{"path":"src/interactive/mouse.ts","kind":"import-statement","original":"./mouse"}],"format":"esm"},"src/jsx-dev-runtime.ts":{"bytes":211,"imports":[{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"./jsx-runtime"}],"format":"esm"}},"outputs":{"dist/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":204},"dist/index.js":{"imports":[],"exports":["VERSION"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":15}},"bytes":37},"dist/core.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/core.js":{"imports":[{"path":"dist/chunk-LUW7DIEW.js","kind":"import-statement"},{"path":"dist/chunk-IA4FEBFE.js","kind":"import-statement"},{"path":"dist/chunk-KBUONZI2.js","kind":"import-statement"},{"path":"dist/chunk-7BXR4ZFD.js","kind":"import-statement"},{"path":"dist/chunk-ENWGYQNU.js","kind":"import-statement"}],"exports":["batch","context","createContext","effect","popContext","pushContext","runWithContext","snapshotContext","state","sync"],"entryPoint":"src/core/index.ts","inputs":{"src/core/index.ts":{"bytesInOutput":0}},"bytes":384},"dist/dom.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":28085},"dist/dom.js":{"imports":[{"path":"dist/chunk-LUW7DIEW.js","kind":"import-statement"},{"path":"dist/chunk-ENWGYQNU.js","kind":"import-statement"}],"exports":["f","reconcile","render"],"entryPoint":"src/dom/index.ts","inputs":{"src/dom/index.ts":{"bytesInOutput":4502}},"bytes":4632},"dist/router.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":16422},"dist/router.js":{"imports":[{"path":"dist/chunk-LUW7DIEW.js","kind":"import-statement"},{"path":"dist/chunk-KBUONZI2.js","kind":"import-statement"},{"path":"dist/chunk-7BXR4ZFD.js","kind":"import-statement"},{"path":"dist/chunk-ENWGYQNU.js","kind":"import-statement"},{"path":"dist/chunk-EXLNKYSH.js","kind":"import-statement"}],"exports":["Link","Outlet","Route","Routes","router"],"entryPoint":"src/router/index.ts","inputs":{"src/router/index.ts":{"bytesInOutput":0},"src/router/utils.ts":{"bytesInOutput":1073},"src/router/router.ts":{"bytesInOutput":743},"src/router/dom/Route.tsx":{"bytesInOutput":26},"src/router/dom/Routes.tsx":{"bytesInOutput":638},"src/router/dom/Outlet.tsx":{"bytesInOutput":238},"src/router/dom/Link.tsx":{"bytesInOutput":133}},"bytes":3107},"dist/chunk-LUW7DIEW.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":2664},"dist/chunk-LUW7DIEW.js":{"imports":[],"exports":["a","b","c","d","e","f"],"inputs":{"src/core/context.ts":{"bytesInOutput":450}},"bytes":501},"dist/canvas.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":14321},"dist/canvas.js":{"imports":[{"path":"dist/chunk-IA4FEBFE.js","kind":"import-statement"},{"path":"dist/chunk-7BXR4ZFD.js","kind":"import-statement"},{"path":"dist/chunk-ENWGYQNU.js","kind":"import-statement"},{"path":"dist/chunk-EXLNKYSH.js","kind":"import-statement"}],"exports":["Canvas","DrawArc","DrawCircle","DrawLine","DrawPath","DrawRect","DrawText"],"entryPoint":"src/canvas/index.ts","inputs":{"src/canvas/Canvas.tsx":{"bytesInOutput":1875},"src/canvas/index.ts":{"bytesInOutput":0},"src/canvas/dom/DrawRect.tsx":{"bytesInOutput":60},"src/canvas/dom/DrawCircle.tsx":{"bytesInOutput":62},"src/canvas/dom/DrawArc.tsx":{"bytesInOutput":59},"src/canvas/dom/DrawLine.tsx":{"bytesInOutput":60},"src/canvas/dom/DrawText.tsx":{"bytesInOutput":60},"src/canvas/dom/DrawPath.tsx":{"bytesInOutput":60}},"bytes":2490},"dist/chunk-IA4FEBFE.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":2516},"dist/chunk-IA4FEBFE.js":{"imports":[{"path":"dist/chunk-ENWGYQNU.js","kind":"import-statement"}],"exports":["a","b","c"],"inputs":{"src/core/lifecycle.ts":{"bytesInOutput":340}},"bytes":424},"dist/interactive.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":14770},"dist/interactive.js":{"imports":[{"path":"dist/chunk-KBUONZI2.js","kind":"import-statement"},{"path":"dist/chunk-7BXR4ZFD.js","kind":"import-statement"},{"path":"dist/chunk-ENWGYQNU.js","kind":"import-statement"}],"exports":["Keys","MouseButton","keyboard","loop","mouse"],"entryPoint":"src/interactive/index.ts","inputs":{"src/interactive/loop.ts":{"bytesInOutput":459},"src/interactive/index.ts":{"bytesInOutput":0},"src/interactive/keyboard.ts":{"bytesInOutput":1309},"src/interactive/mouse.ts":{"bytesInOutput":1235}},"bytes":3170},"dist/chunk-KBUONZI2.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":8480},"dist/chunk-KBUONZI2.js":{"imports":[{"path":"dist/chunk-7BXR4ZFD.js","kind":"import-statement"},{"path":"dist/chunk-ENWGYQNU.js","kind":"import-statement"}],"exports":["a"],"inputs":{"src/core/state.ts":{"bytesInOutput":1461}},"bytes":1564},"dist/chunk-7BXR4ZFD.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":3712},"dist/chunk-7BXR4ZFD.js":{"imports":[{"path":"dist/chunk-ENWGYQNU.js","kind":"import-statement"}],"exports":["a","b"],"inputs":{"src/core/reactive.ts":{"bytesInOutput":590}},"bytes":667},"dist/chunk-ENWGYQNU.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":5647},"dist/chunk-ENWGYQNU.js":{"imports":[],"exports":["a","b","c","d","e","f","g","h"],"inputs":{"src/core/effect.ts":{"bytesInOutput":751},"src/core/hook.ts":{"bytesInOutput":227}},"bytes":1038},"dist/jsx-runtime.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/jsx-runtime.js":{"imports":[{"path":"dist/chunk-EXLNKYSH.js","kind":"import-statement"}],"exports":["Fragment","jsx","jsxs"],"entryPoint":"src/jsx-runtime.ts","inputs":{},"bytes":81},"dist/jsx-dev-runtime.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":510},"dist/jsx-dev-runtime.js":{"imports":[{"path":"dist/chunk-EXLNKYSH.js","kind":"import-statement"}],"exports":["Fragment","jsxDEV"],"entryPoint":"src/jsx-dev-runtime.ts","inputs":{"src/jsx-dev-runtime.ts":{"bytesInOutput":40}},"bytes":122},"dist/chunk-EXLNKYSH.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":1278},"dist/chunk-EXLNKYSH.js":{"imports":[],"exports":["a","b","c"],"inputs":{"src/jsx-runtime.ts":{"bytesInOutput":177}},"bytes":207}}}
|