intable 0.0.24 → 0.0.25

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 (2) hide show
  1. package/dist/index.js +11 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ import { TreePlugin } from "./plugins/TreePlugin.js";
18
18
  import { HeaderGroupPlugin } from "./plugins/HeaderGroup.js";
19
19
  import { ValidatorPlugin } from "./plugins/ValidatorPlugin.js";
20
20
  import { createComponent, insert, memo, mergeProps, spread, template } from "solid-js/web";
21
- import { $PROXY, For, batch, createComputed, createContext, createEffect, createMemo, createSignal, getOwner, mapArray, mergeProps as mergeProps$1, on, onCleanup, onMount, runWithOwner, untrack, useContext } from "solid-js";
21
+ import { $PROXY, For, batch, createContext, createEffect, createMemo, createSignal, getOwner, mapArray, mergeProps as mergeProps$1, on, onCleanup, onMount, runWithOwner, untrack, useContext } from "solid-js";
22
22
  import { createMutable, reconcile } from "solid-js/store";
23
23
  import { combineProps } from "@solid-primitives/props";
24
24
  import { createLazyMemo } from "@solid-primitives/memo";
@@ -38,17 +38,17 @@ const Ctx = createContext({
38
38
  get plugins() {
39
39
  return X();
40
40
  }
41
- }), Y = memoize((K) => runWithOwner(q, () => unFn(K, J))), X = createMemo(() => [
42
- ...defaultsPlugins,
43
- ...K.plugins || [],
44
- RenderPlugin
45
- ].map(Y).sort((_, K) => (K.priority || 0) - (_.priority || 0)));
46
- createComputed((_) => {
47
- let K = difference(X(), _);
41
+ }), Y = memoize((K) => runWithOwner(q, () => unFn(K, J))), X = createMemo((_) => {
42
+ let X = [
43
+ ...defaultsPlugins,
44
+ ...K.plugins || [],
45
+ RenderPlugin
46
+ ].map(Y).sort((_, K) => (K.priority || 0) - (_.priority || 0)), Q = difference(X, _);
48
47
  return runWithOwner(q, () => {
49
- K.forEach((_) => Object.assign(J, _.store?.(J)));
50
- }), X();
51
- }, []), J.props = (() => {
48
+ Q.forEach((_) => Object.assign(J, _.store?.(J)));
49
+ }), X;
50
+ }, []);
51
+ J.props = (() => {
52
52
  let _ = getOwner(), q = {}, Y = (K) => q[K] ??= runWithOwner(_, () => createMemo(() => Z(K)));
53
53
  function Z(_) {
54
54
  return createMemo(() => X().map((K) => K.rewriteProps?.[_]).filter((_) => _), void 0, { equals: isEqual })().reduce((K, q) => q({ [_]: K }, { store: J }), K[_]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intable",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [