@ynput/ayon-frontend-shared 0.9.0 → 0.10.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.
- package/dist/DetailsPanel.es.js +39 -39
- package/dist/ListTable.es.js +738 -651
- package/dist/NewEntity.es.js +2 -2
- package/dist/ProjectTreeTable.es.js +827 -827
- package/dist/Slicer.es.js +10 -10
- package/dist/Views.es.js +36 -34
- package/dist/chunks/ColumnDropIndicator.es.js +27 -21
- package/dist/chunks/EntityPickerDialog.es.js +19 -19
- package/dist/chunks/Feed.es.js +582 -583
- package/dist/chunks/FilmstripEntityCard.es.js +1 -1
- package/dist/chunks/MetaWidget.es.js +444 -439
- package/dist/chunks/ReviewablesSelector.es.js +1 -1
- package/dist/chunks/Slicer.es.js +32 -32
- package/dist/chunks/TableExportContextInstance.es.js +408 -469
- package/dist/chunks/Watchers.es.js +1 -1
- package/dist/chunks/getUris.es.js +1625 -1602
- package/dist/chunks/searchTerms.es.js +1 -1
- package/dist/chunks/useLocalStorage.es.js +78 -0
- package/dist/components.es.js +50 -50
- package/dist/context.es.js +348 -337
- package/dist/hooks.es.js +218 -187
- package/dist/types/Actions.d.ts +17 -16
- package/dist/types/ContextMenu.d.ts +17 -16
- package/dist/types/DetailsPanel.d.ts +17 -16
- package/dist/types/EntityPickerDialog.d.ts +17 -16
- package/dist/types/Feed.d.ts +17 -16
- package/dist/types/ListTable.d.ts +27 -17
- package/dist/types/NewEntity.d.ts +17 -16
- package/dist/types/ProjectTreeTable.d.ts +18 -16
- package/dist/types/ProjectsTable.d.ts +17 -16
- package/dist/types/RepresentationsList.d.ts +17 -16
- package/dist/types/SimpleTable.d.ts +17 -16
- package/dist/types/Slicer.d.ts +17 -16
- package/dist/types/Views.d.ts +18 -17
- package/dist/types/api.d.ts +18 -17
- package/dist/types/components.d.ts +18 -17
- package/dist/types/context.d.ts +26 -17
- package/dist/types/hooks.d.ts +20 -17
- package/dist/types/index.d.ts +17 -16
- package/dist/types/util.d.ts +17 -16
- package/package.json +1 -1
package/dist/hooks.es.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import S from "
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import { r as Ve, u as be, w as ke } from "./chunks/useLocalStorage.es.js";
|
|
2
|
+
import { c as V, n as b, o as k, b as M, a as R } from "./chunks/TableExportContextInstance.es.js";
|
|
3
|
+
import { r as Re, l as Te, w as Ce } from "./chunks/TableExportContextInstance.es.js";
|
|
4
|
+
import { u as T } from "./chunks/useLoadModule.es.js";
|
|
5
|
+
import { loadRemote as C } from "@module-federation/enhanced/runtime";
|
|
6
|
+
import { useRef as N, useState as S, useEffect as A, useMemo as G, useCallback as x } from "react";
|
|
7
|
+
import v from "semver";
|
|
8
|
+
import { k as Oe, l as Ke, m as Ue, n as _e, o as Fe, p as je } from "./chunks/Watchers.es.js";
|
|
9
|
+
import { u as $e } from "./chunks/useActionTriggers.es.js";
|
|
10
|
+
import { bc as O } from "./chunks/searchTerms.es.js";
|
|
11
|
+
import { bB as K, cY as U } from "./chunks/getUris.es.js";
|
|
11
12
|
import "primereact/confirmdialog";
|
|
12
13
|
import "react/jsx-runtime";
|
|
13
14
|
import "@ynput/ayon-addon/host";
|
|
14
|
-
import { toast as
|
|
15
|
+
import { toast as _ } from "react-toastify";
|
|
15
16
|
import "@ynput/ayon-react-components";
|
|
16
17
|
import "lodash";
|
|
17
18
|
import "uuid";
|
|
@@ -20,184 +21,214 @@ import "./chunks/ContextMenuContextInstance.es.js";
|
|
|
20
21
|
import "clsx";
|
|
21
22
|
import "react-dom";
|
|
22
23
|
import "react-router-dom";
|
|
23
|
-
import { u as
|
|
24
|
-
import { u as
|
|
25
|
-
import { u as
|
|
26
|
-
import { G as
|
|
27
|
-
import { i as
|
|
28
|
-
import {
|
|
29
|
-
import { u as
|
|
30
|
-
import { a as
|
|
31
|
-
const
|
|
32
|
-
const n =
|
|
33
|
-
() =>
|
|
34
|
-
), [s,
|
|
35
|
-
|
|
36
|
-
t || (console.log("resetting processedModules"), n.current = /* @__PURE__ */ new Set(), r(
|
|
24
|
+
import { u as Be } from "./chunks/EntityPickerDialog.es.js";
|
|
25
|
+
import { u as Qe } from "./chunks/ProjectFoldersContext.es.js";
|
|
26
|
+
import { u as Je } from "./chunks/useGroupedPagination.es.js";
|
|
27
|
+
import { G as F } from "./chunks/GroupSettingsFallback.es.js";
|
|
28
|
+
import { i as j } from "./chunks/isHTMLElement.es.js";
|
|
29
|
+
import { f as Ye } from "./chunks/MetaWidget.es.js";
|
|
30
|
+
import { u as et } from "./chunks/useAttributeEnums.es.js";
|
|
31
|
+
import { a as W } from "./chunks/afterStartup.es.js";
|
|
32
|
+
const Le = (e, o, t) => {
|
|
33
|
+
const n = N(/* @__PURE__ */ new Set()), [i, r] = S(
|
|
34
|
+
() => c(e)
|
|
35
|
+
), [s, u] = S(o.length > 0 && !t);
|
|
36
|
+
A(() => {
|
|
37
|
+
t || (console.log("resetting processedModules"), n.current = /* @__PURE__ */ new Set(), r(c(e)));
|
|
37
38
|
}, [JSON.stringify(e), t]);
|
|
38
|
-
const
|
|
39
|
+
const a = async (f, m, g, y, p) => {
|
|
39
40
|
try {
|
|
40
|
-
const
|
|
41
|
+
const l = await C(`${f}/${m}`, {
|
|
41
42
|
from: "runtime"
|
|
42
43
|
});
|
|
43
|
-
|
|
44
|
-
} catch (
|
|
45
|
-
throw console.error("Error loading remote module",
|
|
44
|
+
h(g, f, m, l?.default || y, p);
|
|
45
|
+
} catch (l) {
|
|
46
|
+
throw console.error("Error loading remote module", f, m, l), l;
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
|
-
|
|
49
|
+
A(() => {
|
|
49
50
|
if (t) {
|
|
50
|
-
|
|
51
|
+
u(!1);
|
|
51
52
|
return;
|
|
52
53
|
}
|
|
53
|
-
|
|
54
|
-
const
|
|
55
|
-
if (e.forEach((
|
|
56
|
-
const { addon:
|
|
57
|
-
if (!
|
|
58
|
-
console.log("Invalid module spec",
|
|
54
|
+
i.every((g) => !g[1].isLoaded) && n.current.size > 0 && (console.log("resetting processedModules - results were reset"), n.current = /* @__PURE__ */ new Set()), console.log("loading modules");
|
|
55
|
+
const m = [];
|
|
56
|
+
if (e.forEach((g, y) => {
|
|
57
|
+
const { addon: p, remote: l, module: L, fallback: E, minVersion: w } = g;
|
|
58
|
+
if (!p || !l || !L) {
|
|
59
|
+
console.log("Invalid module spec", g);
|
|
59
60
|
return;
|
|
60
61
|
}
|
|
61
|
-
const
|
|
62
|
-
if (n.current.has(
|
|
63
|
-
console.log("skipping already processed module",
|
|
62
|
+
const I = `${p}/${l}/${L}`;
|
|
63
|
+
if (n.current.has(I)) {
|
|
64
|
+
console.log("skipping already processed module", I);
|
|
64
65
|
return;
|
|
65
66
|
}
|
|
66
|
-
if (
|
|
67
|
-
n.current.add(
|
|
67
|
+
if (i[y]?.[1]?.isLoaded) {
|
|
68
|
+
n.current.add(I);
|
|
68
69
|
return;
|
|
69
70
|
}
|
|
70
|
-
n.current.add(
|
|
71
|
-
const
|
|
72
|
-
if (!
|
|
73
|
-
console.log("Addon not found", { addon:
|
|
71
|
+
n.current.add(I);
|
|
72
|
+
const P = o.find((H) => H.addonName === p);
|
|
73
|
+
if (!P) {
|
|
74
|
+
console.log("Addon not found", { addon: p, remote: l, module: L });
|
|
74
75
|
return;
|
|
75
76
|
}
|
|
76
|
-
if (
|
|
77
|
-
|
|
78
|
-
h,
|
|
79
|
-
f,
|
|
80
|
-
a,
|
|
77
|
+
if (w && !v.gte(P.addonVersion, w)) {
|
|
78
|
+
d(
|
|
81
79
|
y,
|
|
80
|
+
p,
|
|
81
|
+
l,
|
|
82
82
|
L,
|
|
83
83
|
E,
|
|
84
|
-
|
|
84
|
+
w,
|
|
85
|
+
P.addonVersion
|
|
85
86
|
);
|
|
86
87
|
return;
|
|
87
88
|
}
|
|
88
|
-
if (!
|
|
89
|
-
console.log("Module not found", { addon:
|
|
89
|
+
if (!P.modules[l]) {
|
|
90
|
+
console.log("Module not found", { addon: p, remote: l, module: L });
|
|
90
91
|
return;
|
|
91
92
|
}
|
|
92
|
-
|
|
93
|
-
}), !
|
|
94
|
-
|
|
93
|
+
m.push(a(l, L, p, E, w));
|
|
94
|
+
}), !m.length) {
|
|
95
|
+
u(!1);
|
|
95
96
|
return;
|
|
96
97
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}).catch((
|
|
100
|
-
console.error("Error loading modules",
|
|
98
|
+
u(!0), Promise.all(m).then(() => {
|
|
99
|
+
u(!1);
|
|
100
|
+
}).catch((g) => {
|
|
101
|
+
console.error("Error loading modules", g), u(!1);
|
|
101
102
|
});
|
|
102
|
-
}, [t, o, JSON.stringify(e),
|
|
103
|
-
function
|
|
104
|
-
return
|
|
105
|
-
({ addon:
|
|
106
|
-
|
|
103
|
+
}, [t, o, JSON.stringify(e), i]);
|
|
104
|
+
function c(f) {
|
|
105
|
+
return f.map(
|
|
106
|
+
({ addon: m = "", remote: g = "", module: y = "", fallback: p, minVersion: l }) => [
|
|
107
|
+
p,
|
|
107
108
|
{
|
|
108
109
|
isLoaded: !1,
|
|
109
|
-
addon:
|
|
110
|
-
remote:
|
|
111
|
-
module:
|
|
112
|
-
minVersion:
|
|
110
|
+
addon: m,
|
|
111
|
+
remote: g,
|
|
112
|
+
module: y,
|
|
113
|
+
minVersion: l,
|
|
113
114
|
outdated: void 0
|
|
114
115
|
}
|
|
115
116
|
]
|
|
116
117
|
);
|
|
117
118
|
}
|
|
118
|
-
function
|
|
119
|
-
r((
|
|
120
|
-
const
|
|
121
|
-
return
|
|
122
|
-
|
|
119
|
+
function d(f, m, g, y, p, l, L) {
|
|
120
|
+
r((E) => {
|
|
121
|
+
const w = [...E];
|
|
122
|
+
return f >= 0 && f < w.length && (w[f] = [
|
|
123
|
+
p,
|
|
123
124
|
{
|
|
124
125
|
isLoaded: !1,
|
|
125
|
-
addon:
|
|
126
|
-
remote:
|
|
127
|
-
module:
|
|
128
|
-
minVersion:
|
|
126
|
+
addon: m,
|
|
127
|
+
remote: g,
|
|
128
|
+
module: y,
|
|
129
|
+
minVersion: l,
|
|
129
130
|
outdated: {
|
|
130
|
-
current:
|
|
131
|
-
required:
|
|
131
|
+
current: L,
|
|
132
|
+
required: l
|
|
132
133
|
}
|
|
133
134
|
}
|
|
134
|
-
]),
|
|
135
|
+
]), w;
|
|
135
136
|
});
|
|
136
137
|
}
|
|
137
|
-
function
|
|
138
|
-
r((
|
|
139
|
-
const
|
|
140
|
-
(
|
|
138
|
+
function h(f, m, g, y, p) {
|
|
139
|
+
r((l) => {
|
|
140
|
+
const L = [...l], E = e.findIndex(
|
|
141
|
+
(w) => w.addon === f && w.remote === m && w.module === g
|
|
141
142
|
);
|
|
142
|
-
return
|
|
143
|
-
|
|
143
|
+
return E >= 0 && E < L.length && (L[E] = [
|
|
144
|
+
y,
|
|
144
145
|
{
|
|
145
146
|
isLoaded: !0,
|
|
146
|
-
addon:
|
|
147
|
-
remote:
|
|
148
|
-
module:
|
|
149
|
-
minVersion:
|
|
147
|
+
addon: f,
|
|
148
|
+
remote: m,
|
|
149
|
+
module: g,
|
|
150
|
+
minVersion: p,
|
|
150
151
|
outdated: void 0
|
|
151
152
|
}
|
|
152
|
-
]),
|
|
153
|
+
]), L;
|
|
153
154
|
});
|
|
154
155
|
}
|
|
155
|
-
return { modules:
|
|
156
|
-
},
|
|
157
|
-
const { user: t } =
|
|
156
|
+
return { modules: i, isLoading: s };
|
|
157
|
+
}, we = ({ selectors: e = [], init: o }) => {
|
|
158
|
+
const { user: t } = V(), { data: { frontendPreferences: n = {} } = {} } = t || {}, i = e.filter((a) => a != null).map((a) => a.replace(/\s/g, ""));
|
|
158
159
|
let r = n;
|
|
159
|
-
for (const
|
|
160
|
-
r = r?.[
|
|
160
|
+
for (const a of i)
|
|
161
|
+
r = r?.[a];
|
|
161
162
|
r = r || o || {};
|
|
162
|
-
const [s] =
|
|
163
|
-
return [r, async (
|
|
163
|
+
const [s] = O();
|
|
164
|
+
return [r, async (a) => {
|
|
164
165
|
try {
|
|
165
166
|
if (!t?.name) throw { data: { detail: "User not found" } };
|
|
166
|
-
let
|
|
167
|
-
const
|
|
168
|
-
if (
|
|
169
|
-
const [
|
|
167
|
+
let c = { ...n };
|
|
168
|
+
const d = (h, f, m) => {
|
|
169
|
+
if (f.length === 0) return { ...h, ...m };
|
|
170
|
+
const [g, ...y] = f, p = h?.[g] || {};
|
|
170
171
|
return {
|
|
171
|
-
...
|
|
172
|
-
[
|
|
172
|
+
...h,
|
|
173
|
+
[g]: d(p, y, m)
|
|
173
174
|
};
|
|
174
175
|
};
|
|
175
|
-
|
|
176
|
+
c = d(c, i, a), await s({
|
|
176
177
|
userName: t.name,
|
|
177
|
-
patchData:
|
|
178
|
+
patchData: c,
|
|
178
179
|
// @ts-expect-error - disableInvalidations is not in the api
|
|
179
180
|
disableInvalidations: !0
|
|
180
181
|
}).unwrap();
|
|
181
|
-
} catch (
|
|
182
|
-
console.error(
|
|
182
|
+
} catch (c) {
|
|
183
|
+
console.error(c), _.error(c.data?.detail);
|
|
183
184
|
}
|
|
184
185
|
}, { isSuccess: !0 }];
|
|
185
|
-
},
|
|
186
|
+
}, $ = {
|
|
187
|
+
task: (e) => !!e.hasTasks,
|
|
188
|
+
// hasVersions is true for the whole subtree, so parents show up as groups too
|
|
189
|
+
version: (e) => !!e.hasVersions,
|
|
190
|
+
product: (e) => e.hasProducts ?? !!e.hasVersions
|
|
191
|
+
}, z = (e, o, t) => {
|
|
192
|
+
const { folders: n, isLoading: i, getChildFolderIds: r } = b(), { getFolderType: s } = k(), u = G(
|
|
193
|
+
() => o && t?.length ? new Set(r(t, !0)) : null,
|
|
194
|
+
[o, t, r]
|
|
195
|
+
);
|
|
196
|
+
return { groups: G(() => {
|
|
197
|
+
const c = $[e];
|
|
198
|
+
return !o || !c ? [] : n.filter((d) => c(d) && (!u || u.has(d.id))).sort((d, h) => d.path < h.path ? -1 : d.path > h.path ? 1 : 0).map((d) => ({
|
|
199
|
+
value: d.id,
|
|
200
|
+
label: d.path,
|
|
201
|
+
icon: s(d.folderType)?.icon
|
|
202
|
+
}));
|
|
203
|
+
}, [o, e, n, s, u]), isLoading: o && i };
|
|
204
|
+
}, Ee = ({
|
|
205
|
+
groupBy: e,
|
|
206
|
+
projectName: o,
|
|
207
|
+
entityType: t,
|
|
208
|
+
folderIds: n
|
|
209
|
+
}) => {
|
|
186
210
|
e?.id === "taskType" && (t = "task");
|
|
187
|
-
const
|
|
188
|
-
|
|
189
|
-
|
|
211
|
+
const i = e?.id === "folderId", r = z(t, i, n), {
|
|
212
|
+
data: { groups: s = [] } = {},
|
|
213
|
+
currentData: u,
|
|
214
|
+
isFetching: a,
|
|
215
|
+
error: c
|
|
216
|
+
} = K(
|
|
217
|
+
{ projectName: o, entityType: t, groupingKey: e?.id || "", empty: !0 },
|
|
218
|
+
{ skip: !e?.id || i }
|
|
190
219
|
);
|
|
191
|
-
return {
|
|
192
|
-
groups:
|
|
193
|
-
error:
|
|
220
|
+
return i ? { ...r, error: void 0 } : {
|
|
221
|
+
groups: s,
|
|
222
|
+
error: c,
|
|
223
|
+
// data still holds the previous key's groups while the new ones load
|
|
224
|
+
isLoading: a && !u
|
|
194
225
|
};
|
|
195
|
-
},
|
|
196
|
-
const { powerLicense: e } =
|
|
226
|
+
}, ve = () => {
|
|
227
|
+
const { powerLicense: e } = M(), [o, { outdated: t, isLoading: n }] = T({
|
|
197
228
|
addon: "powerpack",
|
|
198
229
|
remote: "slicer",
|
|
199
230
|
module: "GroupSettings",
|
|
200
|
-
fallback:
|
|
231
|
+
fallback: F,
|
|
201
232
|
minVersion: "1.1.1-dev",
|
|
202
233
|
skip: !e
|
|
203
234
|
// skip loading if powerpack license is not available
|
|
@@ -207,55 +238,55 @@ const me = (e, o, t) => {
|
|
|
207
238
|
requiredVersion: t?.required,
|
|
208
239
|
isLoading: n
|
|
209
240
|
};
|
|
210
|
-
},
|
|
211
|
-
function
|
|
241
|
+
}, B = ["w", "s"];
|
|
242
|
+
function Se({
|
|
212
243
|
reviewables: e,
|
|
213
244
|
selected: o,
|
|
214
245
|
onChange: t,
|
|
215
246
|
onNavigate: n,
|
|
216
|
-
enabled:
|
|
247
|
+
enabled: i = !0
|
|
217
248
|
}) {
|
|
218
|
-
|
|
219
|
-
if (!
|
|
249
|
+
A(() => {
|
|
250
|
+
if (!i || e.length <= 1) return;
|
|
220
251
|
const r = (s) => {
|
|
221
|
-
const
|
|
222
|
-
if (!
|
|
252
|
+
const u = s.key.length === 1 ? s.key.toLowerCase() : s.key;
|
|
253
|
+
if (!B.includes(u) || s.metaKey || s.ctrlKey || s.altKey || j(s.target) && (s.target.tagName === "INPUT" || s.target.tagName === "TEXTAREA" || s.target.isContentEditable))
|
|
223
254
|
return;
|
|
224
|
-
const
|
|
225
|
-
|
|
255
|
+
const d = e.findIndex(({ fileId: f }) => o.includes(f)) + (u === "w" ? -1 : 1), h = e[d < 0 ? e.length - 1 : d % e.length];
|
|
256
|
+
h && (t?.(h.fileId), n?.(h));
|
|
226
257
|
};
|
|
227
258
|
return window.addEventListener("keydown", r), () => window.removeEventListener("keydown", r);
|
|
228
|
-
}, [
|
|
259
|
+
}, [i, e, o, t, n]);
|
|
229
260
|
}
|
|
230
|
-
const
|
|
231
|
-
function
|
|
261
|
+
const D = 4, Q = 0.3;
|
|
262
|
+
function Ae({
|
|
232
263
|
containerRef: e,
|
|
233
264
|
toolsRef: o,
|
|
234
265
|
reviewablesCount: t
|
|
235
266
|
}) {
|
|
236
|
-
const [n,
|
|
237
|
-
return console.log("containerHeight:", n, "toolsHeight:", r),
|
|
238
|
-
const
|
|
239
|
-
if (!
|
|
240
|
-
const
|
|
241
|
-
|
|
267
|
+
const [n, i] = S(0), [r, s] = S(0);
|
|
268
|
+
return console.log("containerHeight:", n, "toolsHeight:", r), A(() => {
|
|
269
|
+
const a = e.current, c = o.current;
|
|
270
|
+
if (!a) return;
|
|
271
|
+
const d = () => {
|
|
272
|
+
i(a.clientHeight), s(c?.offsetHeight ?? 0);
|
|
242
273
|
};
|
|
243
|
-
|
|
244
|
-
const
|
|
245
|
-
return
|
|
246
|
-
}, [e, o]), t <=
|
|
274
|
+
d();
|
|
275
|
+
const h = new ResizeObserver(d);
|
|
276
|
+
return h.observe(a), c && h.observe(c), () => h.disconnect();
|
|
277
|
+
}, [e, o]), t <= D || !n || !r ? "column" : n - r < n * Q ? "row" : "column";
|
|
247
278
|
}
|
|
248
|
-
const
|
|
249
|
-
const { data: e, isLoading: o, isError: t } =
|
|
279
|
+
const Ie = () => {
|
|
280
|
+
const { data: e, isLoading: o, isError: t } = U({});
|
|
250
281
|
return {
|
|
251
|
-
getProductionAddon:
|
|
252
|
-
(
|
|
282
|
+
getProductionAddon: x(
|
|
283
|
+
(i, r) => {
|
|
253
284
|
if (!e?.addons) return;
|
|
254
|
-
const s = e.addons.find((
|
|
255
|
-
if (!(!s || !
|
|
285
|
+
const s = e.addons.find((a) => a.name === i), u = s?.productionVersion;
|
|
286
|
+
if (!(!s || !u) && !(r?.version && u !== r.version)) {
|
|
256
287
|
if (r?.minVersion)
|
|
257
288
|
try {
|
|
258
|
-
if (!(
|
|
289
|
+
if (!(v.gte(u, r.minVersion) || v.gte(v.coerce(u) || "0.0.0", r.minVersion))) return;
|
|
259
290
|
} catch {
|
|
260
291
|
return;
|
|
261
292
|
}
|
|
@@ -267,19 +298,19 @@ const we = () => {
|
|
|
267
298
|
isLoading: o,
|
|
268
299
|
isError: t
|
|
269
300
|
};
|
|
270
|
-
},
|
|
301
|
+
}, q = (e, { version: o, minVersion: t } = {}) => {
|
|
271
302
|
if (o && e !== o) return !1;
|
|
272
303
|
if (!t) return !0;
|
|
273
304
|
try {
|
|
274
|
-
return
|
|
305
|
+
return v.gte(e, t) || v.gte(v.coerce(e) || "0.0.0", t);
|
|
275
306
|
} catch {
|
|
276
307
|
return !1;
|
|
277
308
|
}
|
|
278
|
-
},
|
|
279
|
-
const { bundle: e } =
|
|
280
|
-
(n,
|
|
309
|
+
}, Pe = () => {
|
|
310
|
+
const { bundle: e } = R(), o = x(
|
|
311
|
+
(n, i) => {
|
|
281
312
|
const r = e?.versions[n];
|
|
282
|
-
if (!(!r || !
|
|
313
|
+
if (!(!r || !q(r, i)))
|
|
283
314
|
return r;
|
|
284
315
|
},
|
|
285
316
|
[e]
|
|
@@ -289,37 +320,37 @@ const we = () => {
|
|
|
289
320
|
bundleVariant: t,
|
|
290
321
|
isLoading: !e
|
|
291
322
|
};
|
|
292
|
-
},
|
|
293
|
-
const [o, t] =
|
|
294
|
-
return
|
|
323
|
+
}, Ge = (e) => {
|
|
324
|
+
const [o, t] = S(!1);
|
|
325
|
+
return A(() => W(() => t(!0), e), [e]), o;
|
|
295
326
|
};
|
|
296
327
|
export {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
328
|
+
Oe as filterProjectStatuses,
|
|
329
|
+
Ve as readLocalStorage,
|
|
330
|
+
Re as readSessionStorage,
|
|
331
|
+
$e as useActionTriggers,
|
|
332
|
+
Ge as useAfterStartup,
|
|
333
|
+
Ke as useAttributeEnumOptions,
|
|
334
|
+
et as useAttributeEnums,
|
|
335
|
+
Ye as useEditProjectTags,
|
|
336
|
+
Ue as useEntityUpdate,
|
|
337
|
+
_e as useFetchAttributeEnumOptions,
|
|
338
|
+
Pe as useGetBundleAddon,
|
|
339
|
+
Ee as useGetEntityGroups,
|
|
340
|
+
Ie as useGetProductionAddon,
|
|
341
|
+
ve as useGroupByRemoteModules,
|
|
342
|
+
Je as useGroupedPagination,
|
|
343
|
+
Be as useHierarchyTable,
|
|
344
|
+
T as useLoadModule,
|
|
345
|
+
Le as useLoadModules,
|
|
346
|
+
be as useLocalStorage,
|
|
347
|
+
Qe as useQueryArgumentChangeLoading,
|
|
348
|
+
Se as useReviewablesKeyboardNavigation,
|
|
349
|
+
Ae as useReviewablesLayout,
|
|
350
|
+
Fe as useScopedStatuses,
|
|
351
|
+
je as useScopedTypes,
|
|
352
|
+
Te as useSessionStorage,
|
|
353
|
+
we as useUserProjectConfig,
|
|
354
|
+
ke as writeLocalStorage,
|
|
355
|
+
Ce as writeSessionStorage
|
|
325
356
|
};
|
package/dist/types/Actions.d.ts
CHANGED
|
@@ -78,6 +78,22 @@ declare type IconModel = {
|
|
|
78
78
|
export { }
|
|
79
79
|
|
|
80
80
|
|
|
81
|
+
declare module '@tanstack/react-table' {
|
|
82
|
+
interface FilterFns {
|
|
83
|
+
fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
|
|
84
|
+
}
|
|
85
|
+
interface FilterMeta {
|
|
86
|
+
itemRank: RankingInfo;
|
|
87
|
+
}
|
|
88
|
+
interface TableMeta<TData extends RowData> {
|
|
89
|
+
isExpandable?: boolean;
|
|
90
|
+
isLoading?: boolean;
|
|
91
|
+
children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
|
|
92
|
+
[key: string]: any;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
81
97
|
declare module '@tanstack/react-table' {
|
|
82
98
|
interface ColumnMeta<TData extends RowData, TValue> {
|
|
83
99
|
addonColumn?: AddonColumnMeta;
|
|
@@ -95,22 +111,6 @@ declare module '@tanstack/react-table' {
|
|
|
95
111
|
}
|
|
96
112
|
|
|
97
113
|
|
|
98
|
-
declare module '@tanstack/react-table' {
|
|
99
|
-
interface FilterFns {
|
|
100
|
-
fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
|
|
101
|
-
}
|
|
102
|
-
interface FilterMeta {
|
|
103
|
-
itemRank: RankingInfo;
|
|
104
|
-
}
|
|
105
|
-
interface TableMeta<TData extends RowData> {
|
|
106
|
-
isExpandable?: boolean;
|
|
107
|
-
isLoading?: boolean;
|
|
108
|
-
children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
|
|
109
|
-
[key: string]: any;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
114
|
declare global {
|
|
115
115
|
interface Window {
|
|
116
116
|
senderId: string;
|
|
@@ -121,6 +121,7 @@ declare global {
|
|
|
121
121
|
declare module '@tanstack/react-table' {
|
|
122
122
|
interface ColumnMeta<TData extends RowData, TValue> {
|
|
123
123
|
listTableCustomCell?: boolean;
|
|
124
|
+
listTableGrow?: boolean;
|
|
124
125
|
editable?: boolean;
|
|
125
126
|
}
|
|
126
127
|
interface TableMeta<TData extends RowData> {
|
|
@@ -132,6 +132,22 @@ RefObject<{
|
|
|
132
132
|
export { }
|
|
133
133
|
|
|
134
134
|
|
|
135
|
+
declare module '@tanstack/react-table' {
|
|
136
|
+
interface FilterFns {
|
|
137
|
+
fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
|
|
138
|
+
}
|
|
139
|
+
interface FilterMeta {
|
|
140
|
+
itemRank: RankingInfo;
|
|
141
|
+
}
|
|
142
|
+
interface TableMeta<TData extends RowData> {
|
|
143
|
+
isExpandable?: boolean;
|
|
144
|
+
isLoading?: boolean;
|
|
145
|
+
children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
|
|
146
|
+
[key: string]: any;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
|
|
135
151
|
declare module '@tanstack/react-table' {
|
|
136
152
|
interface ColumnMeta<TData extends RowData, TValue> {
|
|
137
153
|
addonColumn?: AddonColumnMeta;
|
|
@@ -149,22 +165,6 @@ declare module '@tanstack/react-table' {
|
|
|
149
165
|
}
|
|
150
166
|
|
|
151
167
|
|
|
152
|
-
declare module '@tanstack/react-table' {
|
|
153
|
-
interface FilterFns {
|
|
154
|
-
fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
|
|
155
|
-
}
|
|
156
|
-
interface FilterMeta {
|
|
157
|
-
itemRank: RankingInfo;
|
|
158
|
-
}
|
|
159
|
-
interface TableMeta<TData extends RowData> {
|
|
160
|
-
isExpandable?: boolean;
|
|
161
|
-
isLoading?: boolean;
|
|
162
|
-
children?: (props: SimpleTableCellTemplateProps, row: Row<TData>, table: Table<SimpleTableRow>) => JSX.Element;
|
|
163
|
-
[key: string]: any;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
|
|
168
168
|
declare global {
|
|
169
169
|
interface Window {
|
|
170
170
|
senderId: string;
|
|
@@ -175,6 +175,7 @@ declare global {
|
|
|
175
175
|
declare module '@tanstack/react-table' {
|
|
176
176
|
interface ColumnMeta<TData extends RowData, TValue> {
|
|
177
177
|
listTableCustomCell?: boolean;
|
|
178
|
+
listTableGrow?: boolean;
|
|
178
179
|
editable?: boolean;
|
|
179
180
|
}
|
|
180
181
|
interface TableMeta<TData extends RowData> {
|