@seedprotocol/react 0.7.6 → 0.7.7

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/dist/index.js CHANGED
@@ -254,7 +254,7 @@ var Me = R("seedSdk:react:item"), Ne = (e) => [
254
254
  let D = u ? d.getAppDb() : null, O = Y(o(() => {
255
255
  if (!D || (l === "owned" || l === "watched") && y === null) return null;
256
256
  let t = [];
257
- a || t.push(ce(F.uid)), e && t.push(W(F.type, C(e))), l === "owned" ? t.push(oe(y ?? [])) : l === "watched" && t.push(ue(F.publisher, y ?? [])), r ? t.push(K(ve(F._markedForDeletion), W(F._markedForDeletion, 1))) : (t.push(K(ye(F._markedForDeletion), W(F._markedForDeletion, 0))), t.push(K(ye(F.revokedAt), W(F.revokedAt, 0))));
257
+ a || t.push(ce(F.uid)), e && t.push(W(F.type, C(e))), l === "owned" ? t.push(oe(y ?? [])) : l === "watched" && t.push(ue(F.publisher, y ?? [])), r ? t.push(W(F._markedForDeletion, 1)) : (t.push(K(ye(F._markedForDeletion), W(F._markedForDeletion, 0))), t.push(K(ye(F.revokedAt), W(F.revokedAt, 0))));
258
258
  let n = ne();
259
259
  return D.with(n).select({
260
260
  localId: F.localId,
@@ -685,7 +685,6 @@ var Ge = () => {
685
685
  }
686
686
  return t;
687
687
  }, o = n((t) => {
688
- e.getSnapshot().context;
689
688
  let n = e.getSnapshot().value;
690
689
  n === "done" || n === "success" || n === "idle" || n === "ready" ? clearInterval(t) : r((e) => e + 1);
691
690
  }, [e]), s = n(() => {
@@ -969,12 +968,7 @@ var dt = ["seed", "schemas"], ft = () => {
969
968
  };
970
969
  }, bt = (e, t) => {
971
970
  let n = q(), [r, a] = c(void 0), [l, u] = c(!1), [d, f] = c(null), p = s(void 0), [, m] = c(0), h = t == null;
972
- o(() => n ? h ? !!e : !!(e && t) : !1, [
973
- n,
974
- h,
975
- e,
976
- t
977
- ]), i(() => {
971
+ i(() => {
978
972
  !n || !h || !e ? (a(void 0), u(!1), f(null)) : (async () => {
979
973
  try {
980
974
  u(!0), f(null);
@@ -1052,7 +1046,6 @@ var dt = ["seed", "schemas"], ft = () => {
1052
1046
  };
1053
1047
  //#endregion
1054
1048
  //#region src/modelProperty.ts
1055
- R("seedSdk:browser:react:modelProperty");
1056
1049
  async function Ct(e) {
1057
1050
  let t = d.getAppDb();
1058
1051
  if (t) {
@@ -1062,15 +1055,7 @@ async function Ct(e) {
1062
1055
  return k(e) ?? e;
1063
1056
  }
1064
1057
  var wt = (e, t) => {
1065
- let { model: n } = bt(e, t);
1066
- o(() => {
1067
- if (n) try {
1068
- return n.modelName ?? n.name;
1069
- } catch {
1070
- return;
1071
- }
1072
- }, [n]);
1073
- let r = q(), a = he(), c = Dt(n), l = n?.id, u = o(() => [
1058
+ let { model: n } = bt(e, t), r = q(), a = he(), c = Dt(n), l = n?.id, u = o(() => [
1074
1059
  "seed",
1075
1060
  "modelProperties",
1076
1061
  l ?? ""