@akashjs/runtime 0.1.1 → 0.1.2

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 ADDED
@@ -0,0 +1,21 @@
1
+ # @akashjs/runtime
2
+
3
+ AkashJS core runtime — signals, components, DOM rendering
4
+
5
+ Part of the [AkashJS](https://github.com/phpirate/akashjs) framework.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @akashjs/runtime
11
+ ```
12
+
13
+ ## Documentation
14
+
15
+ - [Guide](https://akash.js.org/guide/introduction)
16
+ - [API Reference](https://akash.js.org/api/runtime)
17
+ - [GitHub](https://github.com/phpirate/akashjs)
18
+
19
+ ## License
20
+
21
+ MIT
package/dist/index.cjs CHANGED
@@ -1413,10 +1413,6 @@ function useToggle(initial = false) {
1413
1413
  };
1414
1414
  }
1415
1415
  function usePrevious(source) {
1416
- signal(void 0);
1417
- effect(() => {
1418
- source();
1419
- });
1420
1416
  let lastValue;
1421
1417
  const tracked = signal(void 0);
1422
1418
  effect(() => {
@@ -4005,9 +4001,9 @@ function animateSpring(el, target, options = {}) {
4005
4001
  } = options;
4006
4002
  const current = {};
4007
4003
  const velocity = {};
4008
- const computed5 = window.getComputedStyle(el);
4004
+ const computed4 = window.getComputedStyle(el);
4009
4005
  for (const prop of Object.keys(target)) {
4010
- current[prop] = parseFloat(computed5.getPropertyValue(prop)) || 0;
4006
+ current[prop] = parseFloat(computed4.getPropertyValue(prop)) || 0;
4011
4007
  velocity[prop] = 0;
4012
4008
  }
4013
4009
  let animating = true;