@fictjs/runtime 0.0.12 → 0.0.14

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.
Files changed (65) hide show
  1. package/dist/advanced.cjs +79 -0
  2. package/dist/advanced.cjs.map +1 -0
  3. package/dist/advanced.d.cts +50 -0
  4. package/dist/advanced.d.ts +50 -0
  5. package/dist/advanced.js +79 -0
  6. package/dist/advanced.js.map +1 -0
  7. package/dist/chunk-624QY53A.cjs +45 -0
  8. package/dist/chunk-624QY53A.cjs.map +1 -0
  9. package/dist/chunk-F3AIYQB7.js +45 -0
  10. package/dist/chunk-F3AIYQB7.js.map +1 -0
  11. package/dist/chunk-GJTYOFMO.cjs +109 -0
  12. package/dist/chunk-GJTYOFMO.cjs.map +1 -0
  13. package/dist/chunk-IUZXKAAY.js +109 -0
  14. package/dist/chunk-IUZXKAAY.js.map +1 -0
  15. package/dist/{slim.cjs → chunk-PMF6MWEV.cjs} +2557 -3110
  16. package/dist/chunk-PMF6MWEV.cjs.map +1 -0
  17. package/dist/{slim.js → chunk-RY4WDS6R.js} +2596 -3097
  18. package/dist/chunk-RY4WDS6R.js.map +1 -0
  19. package/dist/context-B7UYnfzM.d.ts +153 -0
  20. package/dist/context-UXySaqI_.d.cts +153 -0
  21. package/dist/effect-Auji1rz9.d.cts +350 -0
  22. package/dist/effect-Auji1rz9.d.ts +350 -0
  23. package/dist/index.cjs +108 -4441
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +5 -1492
  26. package/dist/index.d.ts +5 -1492
  27. package/dist/index.dev.js +1020 -2788
  28. package/dist/index.dev.js.map +1 -1
  29. package/dist/index.js +63 -4301
  30. package/dist/index.js.map +1 -1
  31. package/dist/internal.cjs +901 -0
  32. package/dist/internal.cjs.map +1 -0
  33. package/dist/internal.d.cts +158 -0
  34. package/dist/internal.d.ts +158 -0
  35. package/dist/internal.js +901 -0
  36. package/dist/internal.js.map +1 -0
  37. package/dist/{jsx-dev-runtime.d.ts → props-CrOMYbLv.d.cts} +107 -18
  38. package/dist/{jsx-dev-runtime.d.cts → props-ES0Ag_Wd.d.ts} +107 -18
  39. package/dist/scope-DKYzWfTn.d.cts +55 -0
  40. package/dist/scope-S6eAzBJZ.d.ts +55 -0
  41. package/package.json +10 -5
  42. package/src/advanced.ts +101 -0
  43. package/src/binding.ts +25 -422
  44. package/src/constants.ts +345 -344
  45. package/src/context.ts +300 -0
  46. package/src/cycle-guard.ts +124 -97
  47. package/src/delegated-events.ts +24 -0
  48. package/src/dom.ts +19 -25
  49. package/src/effect.ts +4 -0
  50. package/src/hooks.ts +9 -1
  51. package/src/index.ts +41 -130
  52. package/src/internal.ts +130 -0
  53. package/src/lifecycle.ts +13 -2
  54. package/src/list-helpers.ts +6 -65
  55. package/src/props.ts +48 -46
  56. package/src/signal.ts +59 -39
  57. package/src/store.ts +47 -7
  58. package/src/versioned-signal.ts +3 -3
  59. package/dist/jsx-runtime.d.cts +0 -671
  60. package/dist/jsx-runtime.d.ts +0 -671
  61. package/dist/slim.cjs.map +0 -1
  62. package/dist/slim.d.cts +0 -504
  63. package/dist/slim.d.ts +0 -504
  64. package/dist/slim.js.map +0 -1
  65. package/src/slim.ts +0 -69
package/src/slim.ts DELETED
@@ -1,69 +0,0 @@
1
- /**
2
- * Slim fine-grained runtime entry for bundle-sensitive builds.
3
- *
4
- * Exposes only the DOM + signals surface required by compiler output and
5
- * leaves out stores, resources, SSR, devtools, etc.
6
- */
7
-
8
- // Reactive primitives
9
- export { createSignal, createSelector, $state } from './signal'
10
- export { createMemo } from './memo'
11
- export { createEffect, createRenderEffect } from './effect'
12
- export { effectScope, createScope, runInScope, type ReactiveScope } from './scope'
13
- export { batch, untrack } from './scheduler'
14
-
15
- // DOM rendering
16
- export { render, template, createElement } from './dom'
17
- export { Fragment } from './jsx'
18
-
19
- // Core bindings used by compiler output
20
- export {
21
- insert,
22
- bindText,
23
- bindAttribute,
24
- bindProperty,
25
- bindClass,
26
- bindStyle,
27
- bindEvent,
28
- bindRef,
29
- createConditional,
30
- createList,
31
- delegateEvents,
32
- clearDelegatedEvents,
33
- } from './binding'
34
-
35
- // Keyed list helpers (fine-grained DOM)
36
- export {
37
- createKeyedListContainer,
38
- createKeyedList,
39
- createKeyedBlock,
40
- moveMarkerBlock,
41
- destroyMarkerBlock,
42
- insertNodesBefore,
43
- removeNodes,
44
- toNodeArray,
45
- getFirstNodeAfter,
46
- } from './list-helpers'
47
-
48
- // Minimal hooks surface for builds that rely on hook helpers
49
- export {
50
- __fictUseContext,
51
- __fictUseSignal,
52
- __fictUseMemo,
53
- __fictUseEffect,
54
- __fictRender,
55
- __fictPushContext,
56
- __fictPopContext,
57
- __fictResetContext,
58
- } from './hooks'
59
-
60
- // Props helpers (kept minimal for compatibility with compiler output)
61
- export {
62
- __fictProp,
63
- __fictProp as prop,
64
- __fictPropsRest,
65
- mergeProps,
66
- useProp,
67
- createPropsProxy,
68
- } from './props'
69
- export { onDestroy } from './lifecycle'