@apolitical/component-library 10.4.2 → 10.4.3-db.1

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 (3) hide show
  1. package/index.js +2 -2
  2. package/index.mjs +20 -14
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5970,13 +5970,13 @@ function N6({
5970
5970
  return Bo(u, l);
5971
5971
  }),
5972
5972
  onError: n,
5973
- onSuccess: (s, l, u) => {
5974
- const c = dg({ activity: s, vars: l, user: a });
5973
+ onSuccess: (s, l) => {
5974
+ const u = dg({ activity: s, vars: l, user: a });
5975
5975
  r.setQueryData(
5976
5976
  i,
5977
- Bo(c, u, { replace: !0 })
5977
+ (c) => Bo(u, c, { replace: !0 })
5978
5978
  ), setTimeout(() => {
5979
- Dp(c.id, "activity");
5979
+ Dp(u.id, "activity");
5980
5980
  }, 0);
5981
5981
  }
5982
5982
  });
@@ -6012,21 +6012,24 @@ function I6({
6012
6012
  };
6013
6013
  r.setQueryData(i, (d) => c(d)), n && n(s, l, u);
6014
6014
  },
6015
- onSuccess: async (s, { options: l, title: u, settings: c }, d) => {
6016
- const f = s, p = fg({
6015
+ onSuccess: async (s, { options: l, title: u, settings: c }) => {
6016
+ const d = s, f = fg({
6017
6017
  // @ts-expect-error to check
6018
6018
  activity: cg({
6019
6019
  title: u,
6020
6020
  options: l,
6021
6021
  settings: c,
6022
6022
  user: a,
6023
- correctActivityId: f.body.id
6023
+ correctActivityId: d.body.id
6024
6024
  }),
6025
- options: l.map((g, m) => ({ ...g, id: f.body.options[m] })),
6025
+ options: l.map((p, g) => ({ ...p, id: d.body.options[g] })),
6026
6026
  user: a
6027
6027
  });
6028
- r.setQueryData(i, Bo(p, d, { replace: !0 })), setTimeout(() => {
6029
- Dp(f.body.id, "activity");
6028
+ r.setQueryData(
6029
+ i,
6030
+ (p) => Bo(f, p, { replace: !0 })
6031
+ ), setTimeout(() => {
6032
+ Dp(d.body.id, "activity");
6030
6033
  }, 0);
6031
6034
  }
6032
6035
  });
@@ -24775,13 +24778,16 @@ function UR({
24775
24778
  });
24776
24779
  }),
24777
24780
  onError: n,
24778
- onSuccess: (s, l, u) => {
24779
- const c = hg({ reply: s, user: a });
24781
+ onSuccess: (s, l) => {
24782
+ const u = hg({ reply: s, user: a });
24780
24783
  r.setQueryData(
24781
24784
  i,
24782
- Bo(c, u, { replace: !0, append: (l == null ? void 0 : l.replyId) !== void 0 })
24785
+ (c) => Bo(u, c, {
24786
+ replace: !0,
24787
+ append: (l == null ? void 0 : l.replyId) !== void 0
24788
+ })
24783
24789
  ), setTimeout(() => {
24784
- Dp(c.id, "reply");
24790
+ Dp(u.id, "reply");
24785
24791
  }, 0);
24786
24792
  }
24787
24793
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "10.4.2",
3
+ "version": "10.4.3-db.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {