@floegence/floe-webapp-core 0.86.40 → 0.86.41

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.
@@ -1,32 +1,34 @@
1
- import { createComponent as a } from "solid-js/web";
2
- import { createMemo as s, For as u } from "solid-js";
3
- function h(r) {
4
- const o = s(() => {
5
- const e = /* @__PURE__ */ new Map(), t = [];
6
- for (const c of r.each ?? []) {
7
- const n = r.by(c);
8
- if (e.has(n)) throw new Error("KeyedFor requires unique keys");
9
- e.set(n, c), t.push(n);
1
+ import { createComponent as u } from "solid-js/web";
2
+ import { createMemo as c, For as i, untrack as l } from "solid-js";
3
+ function m(r) {
4
+ const s = c(() => {
5
+ const e = /* @__PURE__ */ new Map(), n = [];
6
+ for (const o of r.each ?? []) {
7
+ const t = r.by(o);
8
+ if (e.has(t)) throw new Error("KeyedFor requires unique keys");
9
+ e.set(t, o), n.push(t);
10
10
  }
11
11
  return {
12
12
  values: e,
13
- keys: t
13
+ keys: n
14
14
  };
15
15
  });
16
- return a(u, {
16
+ return u(i, {
17
17
  get each() {
18
- return o().keys;
18
+ return s().keys;
19
19
  },
20
20
  get fallback() {
21
21
  return r.fallback;
22
22
  },
23
- children: (e, t) => (
24
- // Render callbacks receive accessors intentionally; the child owns their reads.
25
- // eslint-disable-next-line solid/reactivity
26
- r.children(() => o().values.get(e), t)
27
- )
23
+ children: (e, n) => {
24
+ const o = c((t) => {
25
+ const a = s().values;
26
+ return a.has(e) ? a.get(e) : t;
27
+ }, l(() => s().values.get(e)));
28
+ return r.children(o, n);
29
+ }
28
30
  });
29
31
  }
30
32
  export {
31
- h as KeyedFor
33
+ m as KeyedFor
32
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floegence/floe-webapp-core",
3
- "version": "0.86.40",
3
+ "version": "0.86.41",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",