@edifice.io/wiki 3.6.18-develop-pedago.20261014140149 → 3.6.18-develop-enabling.20261014142901

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/lib/index2.js +12 -8
  2. package/package.json +6 -6
package/lib/index2.js CHANGED
@@ -2411,23 +2411,27 @@ j0()((e, t) => ({
2411
2411
  ...i,
2412
2412
  status: "fold"
2413
2413
  })),
2414
- fetchTreeData: async (i, s) => {
2415
- const n = R1(t().treeData, i), a = n == null ? void 0 : n.id;
2416
- if (Array.isArray(n == null ? void 0 : n.children) && n.children.length) return;
2417
- const r = await s.fetchQuery({
2414
+ fetchTreeData: async (i, s, n) => {
2415
+ const a = R1(t().treeData, i), r = a == null ? void 0 : a.id;
2416
+ if (!(n != null && n.force) && Array.isArray(a == null ? void 0 : a.children) && a.children.length) return;
2417
+ const l = await s.fetchQuery({
2418
2418
  queryKey: ["prefetchContext", {
2419
- folderId: a,
2419
+ folderId: r,
2420
2420
  trashed: !1
2421
2421
  }],
2422
2422
  queryFn: async () => await ba({
2423
2423
  ...t().searchParams,
2424
2424
  filters: {
2425
2425
  ...t().searchParams.filters,
2426
- folder: a
2426
+ folder: r
2427
2427
  }
2428
- })
2428
+ }),
2429
+ // A forced reload must hit the server, not the cache.
2430
+ ...n != null && n.force ? {
2431
+ staleTime: 0
2432
+ } : {}
2429
2433
  });
2430
- t().actions.setTreeData(us(t().treeData, r == null ? void 0 : r.folders, a || R2.DEFAULT));
2434
+ t().actions.setTreeData(us(t().treeData, l == null ? void 0 : l.folders, r || R2.DEFAULT));
2431
2435
  },
2432
2436
  selectTreeItem: (i, s) => {
2433
2437
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/wiki",
3
- "version": "3.6.18-develop-pedago.20261014140149",
3
+ "version": "3.6.18-develop-enabling.20261014142901",
4
4
  "description": "Wiki application",
5
5
  "license": "AGPL-3.0",
6
6
  "author": "Edifice",
@@ -23,7 +23,7 @@
23
23
  "i18next": "23.8.1",
24
24
  "i18next-http-backend": "2.4.2",
25
25
  "lottie-react": "2.4.1",
26
- "ode-explorer": "develop-pedago",
26
+ "ode-explorer": "develop-enabling",
27
27
  "react-error-boundary": "4.0.13",
28
28
  "react-hook-form": "7.71.1",
29
29
  "react-router-dom": "6.30.3",
@@ -41,10 +41,10 @@
41
41
  "devDependencies": {
42
42
  "@axe-core/react": "4.11.1",
43
43
  "@babel/plugin-transform-react-pure-annotations": "7.23.3",
44
- "@edifice.io/bootstrap": "develop-pedago",
45
- "@edifice.io/cli": "develop-pedago",
46
- "@edifice.io/client": "develop-pedago",
47
- "@edifice.io/react": "develop-pedago",
44
+ "@edifice.io/bootstrap": "develop-enabling",
45
+ "@edifice.io/cli": "develop-enabling",
46
+ "@edifice.io/client": "develop-enabling",
47
+ "@edifice.io/react": "develop-enabling",
48
48
  "@eslint/js": "9.39.2",
49
49
  "@tanstack/react-query": "5.62.7",
50
50
  "@tanstack/react-query-devtools": "5.91.3",