@ynput/ayon-frontend-shared 0.7.3 → 0.7.5
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/LICENSE +105 -0
- package/dist/DetailsPanel.es.js +1088 -969
- package/dist/ListTable.es.js +70 -67
- package/dist/NewEntity.es.js +8 -5
- package/dist/ProjectTreeTable.es.js +4134 -3825
- package/dist/ProjectsTable.es.js +526 -0
- package/dist/Slicer.es.js +75 -73
- package/dist/Views.es.js +86 -84
- package/dist/chunks/Actions.es.js +4 -2
- package/dist/chunks/ColumnDropIndicator.es.js +21 -18
- package/dist/chunks/ColumnDropIndicator.styled.es.js +14 -13
- package/dist/chunks/ColumnHeaderMenuUI.es.js +9 -7
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +12 -11
- package/dist/chunks/EmptyPlaceholder.es.js +9 -8
- package/dist/chunks/EntityPath.es.js +15 -14
- package/dist/chunks/EntityPickerDialog.es.js +5 -3
- package/dist/chunks/EntityTooltip.es.js +10 -8
- package/dist/chunks/EntityUpdatesContext.es.js +13 -12
- package/dist/chunks/Feed.es.js +12 -11
- package/dist/chunks/FilterErrorActions.es.js +6 -4
- package/dist/chunks/GroupSettingsFallback.es.js +75 -0
- package/dist/chunks/JsonViewer.es.js +3 -2
- package/dist/chunks/Menu.es.js +105 -103
- package/dist/chunks/MetaWidget.es.js +278 -275
- package/dist/chunks/PlayableIcon.es.js +868 -862
- package/dist/chunks/ProjectContext.es.js +5 -4
- package/dist/chunks/RepresentationsList.es.js +3 -2
- package/dist/chunks/ReviewablesSelector.es.js +3471 -2067
- package/dist/chunks/SimpleTable.es.js +492 -402
- package/dist/chunks/Slicer.es.js +936 -896
- package/dist/chunks/TableExportContextInstance.es.js +437 -339
- package/dist/chunks/TableSettingsFallback.es.js +5 -3
- package/dist/chunks/ThumbnailSimple.es.js +15 -13
- package/dist/chunks/VideoPlayer.es.js +14 -12
- package/dist/chunks/Watchers.es.js +97 -95
- package/dist/chunks/getProjectDisplayName.es.js +4 -0
- package/dist/chunks/getUris.es.js +375 -374
- package/dist/chunks/useHierarchySelection.es.js +5 -3
- package/dist/chunks/useLoadModule.es.js +10 -8
- package/dist/chunks/viewUpdateHelper.es.js +12 -10
- package/dist/components.es.js +1488 -1186
- package/dist/context.es.js +589 -539
- package/dist/hooks.es.js +169 -212
- package/dist/index.es.js +17 -12
- package/dist/types/Actions.d.ts +3 -0
- package/dist/types/ContextMenu.d.ts +3 -0
- package/dist/types/DetailsPanel.d.ts +3 -0
- package/dist/types/EntityPickerDialog.d.ts +3 -0
- package/dist/types/Feed.d.ts +3 -0
- package/dist/types/ListTable.d.ts +3 -0
- package/dist/types/NewEntity.d.ts +3 -0
- package/dist/types/ProjectTreeTable.d.ts +735 -1
- package/dist/types/ProjectsTable.d.ts +228 -0
- package/dist/types/RepresentationsList.d.ts +3 -0
- package/dist/types/SimpleTable.d.ts +17 -0
- package/dist/types/Slicer.d.ts +4 -0
- package/dist/types/Views.d.ts +3 -0
- package/dist/types/api.d.ts +3 -0
- package/dist/types/components.d.ts +808 -11
- package/dist/types/context.d.ts +39 -1
- package/dist/types/hooks.d.ts +3 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/util.d.ts +7 -0
- package/dist/util.es.js +152 -144
- package/package.json +16 -8
- /package/dist/{ContextMenuContextInstance.css → style.css} +0 -0
package/dist/hooks.es.js
CHANGED
|
@@ -1,136 +1,107 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import {
|
|
3
|
-
import { u as
|
|
4
|
-
import { loadRemote as
|
|
5
|
-
import { useRef as
|
|
1
|
+
import { d as P, b as x } from "./chunks/TableExportContextInstance.es.js";
|
|
2
|
+
import { r as ve, p as Ie, q as be, o as Ae, w as He, s as Pe } from "./chunks/TableExportContextInstance.es.js";
|
|
3
|
+
import { u as G } from "./chunks/useLoadModule.es.js";
|
|
4
|
+
import { loadRemote as R } from "@module-federation/enhanced/runtime";
|
|
5
|
+
import { useRef as T, useState as S, useEffect as v, useCallback as V } from "react";
|
|
6
6
|
import A from "semver";
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
9
|
-
import { bc as
|
|
10
|
-
import { bA as
|
|
7
|
+
import { f as Ge, u as Re, a as Te, b as Ve, c as ke, d as Me } from "./chunks/Watchers.es.js";
|
|
8
|
+
import { u as Ne } from "./chunks/useActionTriggers.es.js";
|
|
9
|
+
import { bc as k } from "./chunks/searchTerms.es.js";
|
|
10
|
+
import { bA as M, cX as C } from "./chunks/getUris.es.js";
|
|
11
11
|
import "primereact/confirmdialog";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
12
|
+
import "react/jsx-runtime";
|
|
13
|
+
import "@ynput/ayon-addon/host";
|
|
14
|
+
import { toast as N } from "react-toastify";
|
|
15
|
+
import "@ynput/ayon-react-components";
|
|
15
16
|
import "lodash";
|
|
16
17
|
import "uuid";
|
|
18
|
+
import "axios";
|
|
17
19
|
import "./chunks/ContextMenuContextInstance.es.js";
|
|
18
20
|
import "clsx";
|
|
19
21
|
import "react-dom";
|
|
20
22
|
import "react-redux";
|
|
21
23
|
import "react-router-dom";
|
|
22
|
-
import { u as
|
|
23
|
-
import { u as
|
|
24
|
-
import { u as
|
|
25
|
-
import "./chunks/
|
|
26
|
-
import "
|
|
27
|
-
import "./chunks/
|
|
28
|
-
import {
|
|
29
|
-
import "
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
import "@lexical/code";
|
|
35
|
-
import "@lexical/list";
|
|
36
|
-
import "@lexical/rich-text";
|
|
37
|
-
import "@lexical/selection";
|
|
38
|
-
import "@lexical/utils";
|
|
39
|
-
import "@lexical/react/LexicalBlockWithAlignableContents";
|
|
40
|
-
import "@lexical/react/LexicalDecoratorBlockNode";
|
|
41
|
-
import "./chunks/EmptyPlaceholder.es.js";
|
|
42
|
-
import "./chunks/EmptyPlaceholderFlex.styled.es.js";
|
|
43
|
-
import "./chunks/InfoMessage.es.js";
|
|
44
|
-
import "@dnd-kit/core";
|
|
45
|
-
import "@dnd-kit/sortable";
|
|
46
|
-
import "@dnd-kit/utilities";
|
|
47
|
-
import "axios";
|
|
48
|
-
import "./chunks/VersionUploadContextInstance.es.js";
|
|
49
|
-
import "./chunks/EntityTooltip.es.js";
|
|
50
|
-
import "./chunks/ColumnDropIndicator.styled.es.js";
|
|
51
|
-
import "@tanstack/react-table";
|
|
52
|
-
import { T as F } from "./chunks/TableSettingsFallback.es.js";
|
|
53
|
-
import "./chunks/Slicer.es.js";
|
|
54
|
-
import "primereact/splitter";
|
|
55
|
-
import "./chunks/ThumbnailSimple.es.js";
|
|
56
|
-
import "./chunks/Menu.es.js";
|
|
57
|
-
import H from "styled-components";
|
|
58
|
-
import { i as W } from "./chunks/isHTMLElement.es.js";
|
|
59
|
-
import { u as Te } from "./chunks/useAttributeEnums.es.js";
|
|
60
|
-
import { a as $ } from "./chunks/afterStartup.es.js";
|
|
61
|
-
const Xt = (t, n, e) => {
|
|
62
|
-
const o = G(/* @__PURE__ */ new Set()), [m, r] = S(
|
|
63
|
-
() => p(t)
|
|
64
|
-
), [s, f] = S(n.length > 0 && !e);
|
|
24
|
+
import { u as Ke } from "./chunks/EntityPickerDialog.es.js";
|
|
25
|
+
import { u as _e } from "./chunks/useQueryArgumentChangeLoading.es.js";
|
|
26
|
+
import { u as $e } from "./chunks/useGroupedPagination.es.js";
|
|
27
|
+
import { G as O } from "./chunks/GroupSettingsFallback.es.js";
|
|
28
|
+
import { i as K } from "./chunks/isHTMLElement.es.js";
|
|
29
|
+
import { c as qe } from "./chunks/MetaWidget.es.js";
|
|
30
|
+
import { u as Fe } from "./chunks/useAttributeEnums.es.js";
|
|
31
|
+
import { a as U } from "./chunks/afterStartup.es.js";
|
|
32
|
+
const fe = (e, s, r) => {
|
|
33
|
+
const o = T(/* @__PURE__ */ new Set()), [f, t] = S(
|
|
34
|
+
() => g(e)
|
|
35
|
+
), [n, m] = S(s.length > 0 && !r);
|
|
65
36
|
v(() => {
|
|
66
|
-
|
|
67
|
-
}, [JSON.stringify(
|
|
37
|
+
r || (console.log("resetting processedModules"), o.current = /* @__PURE__ */ new Set(), t(g(e)));
|
|
38
|
+
}, [JSON.stringify(e), r]);
|
|
68
39
|
const i = async (u, c, d, h, l) => {
|
|
69
40
|
try {
|
|
70
|
-
const a = await
|
|
41
|
+
const a = await R(`${u}/${c}`, {
|
|
71
42
|
from: "runtime"
|
|
72
43
|
});
|
|
73
|
-
|
|
44
|
+
p(d, u, c, a?.default || h, l);
|
|
74
45
|
} catch (a) {
|
|
75
46
|
throw console.error("Error loading remote module", u, c, a), a;
|
|
76
47
|
}
|
|
77
48
|
};
|
|
78
49
|
v(() => {
|
|
79
|
-
if (
|
|
80
|
-
|
|
50
|
+
if (r) {
|
|
51
|
+
m(!1);
|
|
81
52
|
return;
|
|
82
53
|
}
|
|
83
|
-
|
|
54
|
+
f.every((d) => !d[1].isLoaded) && o.current.size > 0 && (console.log("resetting processedModules - results were reset"), o.current = /* @__PURE__ */ new Set()), console.log("loading modules");
|
|
84
55
|
const c = [];
|
|
85
|
-
if (
|
|
86
|
-
const { addon: l, remote: a, module: y, fallback: L, minVersion:
|
|
56
|
+
if (e.forEach((d, h) => {
|
|
57
|
+
const { addon: l, remote: a, module: y, fallback: L, minVersion: E } = d;
|
|
87
58
|
if (!l || !a || !y) {
|
|
88
59
|
console.log("Invalid module spec", d);
|
|
89
60
|
return;
|
|
90
61
|
}
|
|
91
|
-
const
|
|
92
|
-
if (o.current.has(
|
|
93
|
-
console.log("skipping already processed module",
|
|
62
|
+
const I = `${l}/${a}/${y}`;
|
|
63
|
+
if (o.current.has(I)) {
|
|
64
|
+
console.log("skipping already processed module", I);
|
|
94
65
|
return;
|
|
95
66
|
}
|
|
96
|
-
if (
|
|
97
|
-
o.current.add(
|
|
67
|
+
if (f[h]?.[1]?.isLoaded) {
|
|
68
|
+
o.current.add(I);
|
|
98
69
|
return;
|
|
99
70
|
}
|
|
100
|
-
o.current.add(
|
|
101
|
-
const
|
|
102
|
-
if (!
|
|
71
|
+
o.current.add(I);
|
|
72
|
+
const b = s.find((H) => H.addonName === l);
|
|
73
|
+
if (!b) {
|
|
103
74
|
console.log("Addon not found", { addon: l, remote: a, module: y });
|
|
104
75
|
return;
|
|
105
76
|
}
|
|
106
|
-
if (
|
|
107
|
-
|
|
77
|
+
if (E && !A.gte(b.addonVersion, E)) {
|
|
78
|
+
w(
|
|
108
79
|
h,
|
|
109
80
|
l,
|
|
110
81
|
a,
|
|
111
82
|
y,
|
|
112
83
|
L,
|
|
113
|
-
|
|
114
|
-
|
|
84
|
+
E,
|
|
85
|
+
b.addonVersion
|
|
115
86
|
);
|
|
116
87
|
return;
|
|
117
88
|
}
|
|
118
|
-
if (!
|
|
89
|
+
if (!b.modules[a]) {
|
|
119
90
|
console.log("Module not found", { addon: l, remote: a, module: y });
|
|
120
91
|
return;
|
|
121
92
|
}
|
|
122
|
-
c.push(i(a, y, l, L,
|
|
93
|
+
c.push(i(a, y, l, L, E));
|
|
123
94
|
}), !c.length) {
|
|
124
|
-
|
|
95
|
+
m(!1);
|
|
125
96
|
return;
|
|
126
97
|
}
|
|
127
|
-
|
|
128
|
-
|
|
98
|
+
m(!0), Promise.all(c).then(() => {
|
|
99
|
+
m(!1);
|
|
129
100
|
}).catch((d) => {
|
|
130
|
-
console.error("Error loading modules", d),
|
|
101
|
+
console.error("Error loading modules", d), m(!1);
|
|
131
102
|
});
|
|
132
|
-
}, [
|
|
133
|
-
function
|
|
103
|
+
}, [r, s, JSON.stringify(e), f]);
|
|
104
|
+
function g(u) {
|
|
134
105
|
return u.map(
|
|
135
106
|
({ addon: c = "", remote: d = "", module: h = "", fallback: l, minVersion: a }) => [
|
|
136
107
|
l,
|
|
@@ -145,10 +116,10 @@ const Xt = (t, n, e) => {
|
|
|
145
116
|
]
|
|
146
117
|
);
|
|
147
118
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
150
|
-
const
|
|
151
|
-
return u >= 0 && u <
|
|
119
|
+
function w(u, c, d, h, l, a, y) {
|
|
120
|
+
t((L) => {
|
|
121
|
+
const E = [...L];
|
|
122
|
+
return u >= 0 && u < E.length && (E[u] = [
|
|
152
123
|
l,
|
|
153
124
|
{
|
|
154
125
|
isLoaded: !1,
|
|
@@ -161,13 +132,13 @@ const Xt = (t, n, e) => {
|
|
|
161
132
|
required: a
|
|
162
133
|
}
|
|
163
134
|
}
|
|
164
|
-
]),
|
|
135
|
+
]), E;
|
|
165
136
|
});
|
|
166
137
|
}
|
|
167
|
-
function
|
|
168
|
-
|
|
169
|
-
const y = [...a], L =
|
|
170
|
-
(
|
|
138
|
+
function p(u, c, d, h, l) {
|
|
139
|
+
t((a) => {
|
|
140
|
+
const y = [...a], L = e.findIndex(
|
|
141
|
+
(E) => E.addon === u && E.remote === c && E.module === d
|
|
171
142
|
);
|
|
172
143
|
return L >= 0 && L < y.length && (y[L] = [
|
|
173
144
|
h,
|
|
@@ -182,165 +153,151 @@ const Xt = (t, n, e) => {
|
|
|
182
153
|
]), y;
|
|
183
154
|
});
|
|
184
155
|
}
|
|
185
|
-
return { modules:
|
|
186
|
-
},
|
|
187
|
-
const { user:
|
|
188
|
-
let
|
|
189
|
-
for (const i of
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
const [
|
|
193
|
-
return [
|
|
156
|
+
return { modules: f, isLoading: n };
|
|
157
|
+
}, me = ({ selectors: e = [], init: s }) => {
|
|
158
|
+
const { user: r } = P(), { data: { frontendPreferences: o = {} } = {} } = r || {}, f = e.filter((i) => i != null).map((i) => i.replace(/\s/g, ""));
|
|
159
|
+
let t = o;
|
|
160
|
+
for (const i of f)
|
|
161
|
+
t = t?.[i];
|
|
162
|
+
t = t || s || {};
|
|
163
|
+
const [n] = k();
|
|
164
|
+
return [t, async (i) => {
|
|
194
165
|
try {
|
|
195
|
-
if (!
|
|
196
|
-
let
|
|
197
|
-
const
|
|
198
|
-
if (u.length === 0) return { ...
|
|
199
|
-
const [d, ...h] = u, l =
|
|
166
|
+
if (!r?.name) throw { data: { detail: "User not found" } };
|
|
167
|
+
let g = { ...o };
|
|
168
|
+
const w = (p, u, c) => {
|
|
169
|
+
if (u.length === 0) return { ...p, ...c };
|
|
170
|
+
const [d, ...h] = u, l = p?.[d] || {};
|
|
200
171
|
return {
|
|
201
|
-
...
|
|
202
|
-
[d]:
|
|
172
|
+
...p,
|
|
173
|
+
[d]: w(l, h, c)
|
|
203
174
|
};
|
|
204
175
|
};
|
|
205
|
-
|
|
206
|
-
userName:
|
|
207
|
-
patchData:
|
|
176
|
+
g = w(g, f, i), await n({
|
|
177
|
+
userName: r.name,
|
|
178
|
+
patchData: g,
|
|
208
179
|
// @ts-expect-error - disableInvalidations is not in the api
|
|
209
180
|
disableInvalidations: !0
|
|
210
181
|
}).unwrap();
|
|
211
|
-
} catch (
|
|
212
|
-
console.error(
|
|
182
|
+
} catch (g) {
|
|
183
|
+
console.error(g), N.error(g.data?.detail);
|
|
213
184
|
}
|
|
214
185
|
}, { isSuccess: !0 }];
|
|
215
|
-
},
|
|
216
|
-
|
|
217
|
-
const o =
|
|
218
|
-
{ projectName:
|
|
219
|
-
{ skip: !
|
|
186
|
+
}, ge = ({ groupBy: e, projectName: s, entityType: r }) => {
|
|
187
|
+
e?.id === "taskType" && (r = "task");
|
|
188
|
+
const o = e?.id || "", { data: { groups: f = [] } = {}, error: t } = M(
|
|
189
|
+
{ projectName: s, entityType: r, groupingKey: o, empty: !0 },
|
|
190
|
+
{ skip: !e?.id }
|
|
220
191
|
);
|
|
221
192
|
return {
|
|
222
|
-
groups:
|
|
223
|
-
error:
|
|
193
|
+
groups: f,
|
|
194
|
+
error: t
|
|
224
195
|
};
|
|
225
|
-
},
|
|
226
|
-
|
|
227
|
-
align-items: center;
|
|
228
|
-
padding: 0;
|
|
229
|
-
margin: 0;
|
|
230
|
-
`, z = H(_)`
|
|
231
|
-
width: 100%;
|
|
232
|
-
justify-content: start;
|
|
233
|
-
`, B = ({
|
|
234
|
-
requiredVersion: t,
|
|
235
|
-
fields: n
|
|
236
|
-
}) => /* @__PURE__ */ x(F, { feature: "groupAttributes", requiredVersion: t, children: n.map((e) => /* @__PURE__ */ x(q, { children: /* @__PURE__ */ K(z, { variant: "text", icon: e.icon, children: [
|
|
237
|
-
e.label,
|
|
238
|
-
/* @__PURE__ */ x(j, { icon: "bolt", style: { marginLeft: "auto" } })
|
|
239
|
-
] }) }, e.value)) }), Yt = () => {
|
|
240
|
-
const { powerLicense: t } = k(), [n, { outdated: e, isLoading: o }] = R({
|
|
196
|
+
}, pe = () => {
|
|
197
|
+
const { powerLicense: e } = x(), [s, { outdated: r, isLoading: o }] = G({
|
|
241
198
|
addon: "powerpack",
|
|
242
199
|
remote: "slicer",
|
|
243
200
|
module: "GroupSettings",
|
|
244
|
-
fallback:
|
|
201
|
+
fallback: O,
|
|
245
202
|
minVersion: "1.1.1-dev",
|
|
246
|
-
skip: !
|
|
203
|
+
skip: !e
|
|
247
204
|
// skip loading if powerpack license is not available
|
|
248
205
|
});
|
|
249
206
|
return {
|
|
250
|
-
GroupSettings:
|
|
251
|
-
requiredVersion:
|
|
207
|
+
GroupSettings: s,
|
|
208
|
+
requiredVersion: r?.required,
|
|
252
209
|
isLoading: o
|
|
253
210
|
};
|
|
254
|
-
},
|
|
255
|
-
function
|
|
256
|
-
reviewables:
|
|
257
|
-
selected:
|
|
258
|
-
onChange:
|
|
211
|
+
}, _ = ["w", "s"];
|
|
212
|
+
function he({
|
|
213
|
+
reviewables: e,
|
|
214
|
+
selected: s,
|
|
215
|
+
onChange: r,
|
|
259
216
|
onNavigate: o,
|
|
260
|
-
enabled:
|
|
217
|
+
enabled: f = !0
|
|
261
218
|
}) {
|
|
262
219
|
v(() => {
|
|
263
|
-
if (!
|
|
264
|
-
const
|
|
265
|
-
const
|
|
266
|
-
if (!
|
|
220
|
+
if (!f || e.length <= 1) return;
|
|
221
|
+
const t = (n) => {
|
|
222
|
+
const m = n.key.length === 1 ? n.key.toLowerCase() : n.key;
|
|
223
|
+
if (!_.includes(m) || n.metaKey || n.ctrlKey || n.altKey || K(n.target) && (n.target.tagName === "INPUT" || n.target.tagName === "TEXTAREA" || n.target.isContentEditable))
|
|
267
224
|
return;
|
|
268
|
-
const
|
|
269
|
-
|
|
225
|
+
const w = e.findIndex(({ fileId: u }) => s.includes(u)) + (m === "w" ? -1 : 1), p = e[w < 0 ? e.length - 1 : w % e.length];
|
|
226
|
+
p && (r?.(p.fileId), o?.(p));
|
|
270
227
|
};
|
|
271
|
-
return window.addEventListener("keydown",
|
|
272
|
-
}, [
|
|
228
|
+
return window.addEventListener("keydown", t), () => window.removeEventListener("keydown", t);
|
|
229
|
+
}, [f, e, s, r, o]);
|
|
273
230
|
}
|
|
274
|
-
const
|
|
275
|
-
function
|
|
276
|
-
containerRef:
|
|
277
|
-
toolsRef:
|
|
278
|
-
reviewablesCount:
|
|
231
|
+
const W = 4, $ = 0.3;
|
|
232
|
+
function ye({
|
|
233
|
+
containerRef: e,
|
|
234
|
+
toolsRef: s,
|
|
235
|
+
reviewablesCount: r
|
|
279
236
|
}) {
|
|
280
|
-
const [o,
|
|
281
|
-
return console.log("containerHeight:", o, "toolsHeight:",
|
|
282
|
-
const i =
|
|
237
|
+
const [o, f] = S(0), [t, n] = S(0);
|
|
238
|
+
return console.log("containerHeight:", o, "toolsHeight:", t), v(() => {
|
|
239
|
+
const i = e.current, g = s.current;
|
|
283
240
|
if (!i) return;
|
|
284
|
-
const
|
|
285
|
-
|
|
241
|
+
const w = () => {
|
|
242
|
+
f(i.clientHeight), n(g?.offsetHeight ?? 0);
|
|
286
243
|
};
|
|
287
|
-
|
|
288
|
-
const
|
|
289
|
-
return
|
|
290
|
-
}, [
|
|
244
|
+
w();
|
|
245
|
+
const p = new ResizeObserver(w);
|
|
246
|
+
return p.observe(i), g && p.observe(g), () => p.disconnect();
|
|
247
|
+
}, [e, s]), r <= W || !o || !t ? "column" : o - t < o * $ ? "row" : "column";
|
|
291
248
|
}
|
|
292
|
-
const
|
|
293
|
-
const { data:
|
|
249
|
+
const Ee = () => {
|
|
250
|
+
const { data: e, isLoading: s, isError: r } = C({});
|
|
294
251
|
return {
|
|
295
|
-
getProductionAddon:
|
|
296
|
-
(
|
|
297
|
-
if (!
|
|
298
|
-
const
|
|
299
|
-
if (!(!
|
|
300
|
-
if (
|
|
252
|
+
getProductionAddon: V(
|
|
253
|
+
(f, t) => {
|
|
254
|
+
if (!e?.addons) return;
|
|
255
|
+
const n = e.addons.find((i) => i.name === f), m = n?.productionVersion;
|
|
256
|
+
if (!(!n || !m) && !(t?.version && m !== t.version)) {
|
|
257
|
+
if (t?.minVersion)
|
|
301
258
|
try {
|
|
302
|
-
if (!(A.gte(
|
|
259
|
+
if (!(A.gte(m, t.minVersion) || A.gte(A.coerce(m) || "0.0.0", t.minVersion))) return;
|
|
303
260
|
} catch {
|
|
304
261
|
return;
|
|
305
262
|
}
|
|
306
|
-
return
|
|
263
|
+
return n;
|
|
307
264
|
}
|
|
308
265
|
},
|
|
309
|
-
[
|
|
266
|
+
[e]
|
|
310
267
|
),
|
|
311
|
-
isLoading:
|
|
312
|
-
isError:
|
|
268
|
+
isLoading: s,
|
|
269
|
+
isError: r
|
|
313
270
|
};
|
|
314
|
-
},
|
|
315
|
-
const [
|
|
316
|
-
return v(() =>
|
|
271
|
+
}, we = (e) => {
|
|
272
|
+
const [s, r] = S(!1);
|
|
273
|
+
return v(() => U(() => r(!0), e), [e]), s;
|
|
317
274
|
};
|
|
318
275
|
export {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
276
|
+
Ge as filterProjectStatuses,
|
|
277
|
+
ve as readLocalStorage,
|
|
278
|
+
Ie as readSessionStorage,
|
|
279
|
+
Ne as useActionTriggers,
|
|
280
|
+
we as useAfterStartup,
|
|
281
|
+
Re as useAttributeEnumOptions,
|
|
282
|
+
Fe as useAttributeEnums,
|
|
283
|
+
qe as useEditProjectTags,
|
|
284
|
+
Te as useEntityUpdate,
|
|
285
|
+
Ve as useFetchAttributeEnumOptions,
|
|
286
|
+
ge as useGetEntityGroups,
|
|
287
|
+
Ee as useGetProductionAddon,
|
|
288
|
+
pe as useGroupByRemoteModules,
|
|
289
|
+
$e as useGroupedPagination,
|
|
290
|
+
Ke as useHierarchyTable,
|
|
291
|
+
G as useLoadModule,
|
|
292
|
+
fe as useLoadModules,
|
|
293
|
+
be as useLocalStorage,
|
|
294
|
+
_e as useQueryArgumentChangeLoading,
|
|
295
|
+
he as useReviewablesKeyboardNavigation,
|
|
296
|
+
ye as useReviewablesLayout,
|
|
297
|
+
ke as useScopedStatuses,
|
|
298
|
+
Me as useScopedTypes,
|
|
299
|
+
Ae as useSessionStorage,
|
|
300
|
+
me as useUserProjectConfig,
|
|
301
|
+
He as writeLocalStorage,
|
|
302
|
+
Pe as writeSessionStorage
|
|
346
303
|
};
|
package/dist/index.es.js
CHANGED
|
@@ -8,13 +8,14 @@ import "./chunks/SimpleForm.es.js";
|
|
|
8
8
|
import "./chunks/MetaWidget.es.js";
|
|
9
9
|
import "react-dom";
|
|
10
10
|
import "date-fns";
|
|
11
|
-
import { U as
|
|
12
|
-
import { u as
|
|
11
|
+
import { U as $ } from "./chunks/PlayableIcon.es.js";
|
|
12
|
+
import { u as or } from "./chunks/TableExportContextInstance.es.js";
|
|
13
13
|
import "lodash";
|
|
14
14
|
import "primereact/confirmdialog";
|
|
15
15
|
import "react-toastify";
|
|
16
16
|
import "uuid";
|
|
17
17
|
import "./chunks/searchTerms.es.js";
|
|
18
|
+
import "axios";
|
|
18
19
|
import "./chunks/getUris.es.js";
|
|
19
20
|
import "./chunks/JsonViewer.es.js";
|
|
20
21
|
import "./chunks/Watchers.es.js";
|
|
@@ -28,31 +29,35 @@ import "@lexical/utils";
|
|
|
28
29
|
import "@lexical/react/LexicalBlockWithAlignableContents";
|
|
29
30
|
import "@lexical/react/LexicalDecoratorBlockNode";
|
|
30
31
|
import "@module-federation/enhanced/runtime";
|
|
32
|
+
import "@ynput/ayon-addon/host";
|
|
31
33
|
import "semver";
|
|
32
34
|
import "./chunks/ContextMenuContextInstance.es.js";
|
|
33
|
-
import { M as
|
|
35
|
+
import { M as tr } from "./chunks/MenuContext.es.js";
|
|
34
36
|
import "react-redux";
|
|
35
37
|
import "react-router-dom";
|
|
36
|
-
import { E as
|
|
38
|
+
import { E as ir } from "./chunks/EmptyPlaceholder.es.js";
|
|
37
39
|
import "./chunks/EmptyPlaceholderFlex.styled.es.js";
|
|
38
40
|
import "./chunks/InfoMessage.es.js";
|
|
39
41
|
import "@dnd-kit/core";
|
|
40
42
|
import "@dnd-kit/sortable";
|
|
41
43
|
import "@dnd-kit/utilities";
|
|
42
|
-
import "axios";
|
|
43
44
|
import "./chunks/VersionUploadContextInstance.es.js";
|
|
44
45
|
import "./chunks/EntityTooltip.es.js";
|
|
45
46
|
import "./chunks/ColumnDropIndicator.styled.es.js";
|
|
46
47
|
import "@tanstack/react-table";
|
|
48
|
+
import "@ynput/ayon-addon";
|
|
47
49
|
import "./chunks/EntityPickerDialog.es.js";
|
|
48
|
-
import "
|
|
50
|
+
import "remark-gfm";
|
|
51
|
+
import "react-markdown";
|
|
49
52
|
import "primereact/splitter";
|
|
50
|
-
import
|
|
53
|
+
import "./chunks/Slicer.es.js";
|
|
54
|
+
import "./chunks/NewEntityContextInstance.es.js";
|
|
51
55
|
import "./chunks/Menu.es.js";
|
|
56
|
+
import { T as ar } from "./chunks/ThumbnailSimple.es.js";
|
|
52
57
|
export {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
ir as EmptyPlaceholder,
|
|
59
|
+
tr as MenuProvider,
|
|
60
|
+
ar as ThumbnailSimple,
|
|
61
|
+
$ as UserImage,
|
|
62
|
+
or as useMenuContext
|
|
58
63
|
};
|
package/dist/types/Actions.d.ts
CHANGED
|
@@ -77,6 +77,9 @@ export { }
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
declare module '@tanstack/react-table' {
|
|
80
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
81
|
+
addonColumn?: AddonColumnMeta;
|
|
82
|
+
}
|
|
80
83
|
interface TableMeta<TData extends RowData> {
|
|
81
84
|
options?: BuiltInFieldOptions;
|
|
82
85
|
readOnly?: ProjectTreeTableProps['readOnly'];
|
|
@@ -133,6 +133,9 @@ export { }
|
|
|
133
133
|
|
|
134
134
|
|
|
135
135
|
declare module '@tanstack/react-table' {
|
|
136
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
137
|
+
addonColumn?: AddonColumnMeta;
|
|
138
|
+
}
|
|
136
139
|
interface TableMeta<TData extends RowData> {
|
|
137
140
|
options?: BuiltInFieldOptions;
|
|
138
141
|
readOnly?: ProjectTreeTableProps['readOnly'];
|
|
@@ -514,6 +514,9 @@ export { }
|
|
|
514
514
|
|
|
515
515
|
|
|
516
516
|
declare module '@tanstack/react-table' {
|
|
517
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
518
|
+
addonColumn?: AddonColumnMeta;
|
|
519
|
+
}
|
|
517
520
|
interface TableMeta<TData extends RowData> {
|
|
518
521
|
options?: BuiltInFieldOptions;
|
|
519
522
|
readOnly?: ProjectTreeTableProps['readOnly'];
|
|
@@ -32,6 +32,9 @@ export { }
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
declare module '@tanstack/react-table' {
|
|
35
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
36
|
+
addonColumn?: AddonColumnMeta;
|
|
37
|
+
}
|
|
35
38
|
interface TableMeta<TData extends RowData> {
|
|
36
39
|
options?: BuiltInFieldOptions;
|
|
37
40
|
readOnly?: ProjectTreeTableProps['readOnly'];
|
package/dist/types/Feed.d.ts
CHANGED
|
@@ -375,6 +375,9 @@ export { }
|
|
|
375
375
|
|
|
376
376
|
|
|
377
377
|
declare module '@tanstack/react-table' {
|
|
378
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
379
|
+
addonColumn?: AddonColumnMeta;
|
|
380
|
+
}
|
|
378
381
|
interface TableMeta<TData extends RowData> {
|
|
379
382
|
options?: BuiltInFieldOptions;
|
|
380
383
|
readOnly?: ProjectTreeTableProps['readOnly'];
|
|
@@ -267,6 +267,9 @@ export { }
|
|
|
267
267
|
|
|
268
268
|
|
|
269
269
|
declare module '@tanstack/react-table' {
|
|
270
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
271
|
+
addonColumn?: AddonColumnMeta;
|
|
272
|
+
}
|
|
270
273
|
interface TableMeta<TData extends RowData> {
|
|
271
274
|
options?: BuiltInFieldOptions;
|
|
272
275
|
readOnly?: ProjectTreeTableProps['readOnly'];
|
|
@@ -204,6 +204,9 @@ export { }
|
|
|
204
204
|
|
|
205
205
|
|
|
206
206
|
declare module '@tanstack/react-table' {
|
|
207
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
208
|
+
addonColumn?: AddonColumnMeta;
|
|
209
|
+
}
|
|
207
210
|
interface TableMeta<TData extends RowData> {
|
|
208
211
|
options?: BuiltInFieldOptions;
|
|
209
212
|
readOnly?: ProjectTreeTableProps['readOnly'];
|