@ynput/ayon-frontend-shared 0.7.6 → 0.8.0
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 +361 -355
- package/dist/Feed.es.js +1 -1
- package/dist/ListTable.es.js +18 -18
- package/dist/NewEntity.es.js +30 -30
- package/dist/ProjectTreeTable.es.js +984 -974
- package/dist/ProjectsTable.es.js +3 -3
- package/dist/Slicer.es.js +53 -50
- package/dist/Views.es.js +150 -151
- package/dist/api.es.js +166 -165
- package/dist/chunks/Actions.es.js +9 -10
- package/dist/chunks/ColumnDropIndicator.es.js +2 -2
- package/dist/chunks/ColumnHeaderMenuUI.es.js +3 -4
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +2 -2
- package/dist/chunks/DetailsDialog.es.js +3 -3
- package/dist/chunks/EmptyPlaceholder.es.js +7 -7
- package/dist/chunks/EntityPath.es.js +38 -39
- package/dist/chunks/EntityPickerDialog.es.js +65 -66
- package/dist/chunks/EntityTooltip.es.js +18 -19
- package/dist/chunks/Feed.es.js +1381 -1355
- package/dist/chunks/FilmstripEntityCard.es.js +5201 -0
- package/dist/chunks/FilterErrorActions.es.js +2 -3
- package/dist/chunks/GroupSettingsFallback.es.js +2 -2
- package/dist/chunks/Menu.es.js +52 -53
- package/dist/chunks/MetaWidget.es.js +1948 -1875
- package/dist/chunks/ProjectFoldersContext.es.js +40 -40
- package/dist/chunks/RepresentationsList.es.js +1 -1
- package/dist/chunks/ReviewablesSelector.es.js +759 -742
- package/dist/chunks/SimpleTable.es.js +2 -1
- package/dist/chunks/Slicer.es.js +49 -50
- package/dist/chunks/TableExportContextInstance.es.js +600 -402
- package/dist/chunks/TableSettingsFallback.es.js +3 -4
- package/dist/chunks/ThumbnailSimple.es.js +114 -99
- package/dist/chunks/VideoPlayer.es.js +8 -9
- package/dist/chunks/Watchers.es.js +928 -871
- package/dist/chunks/expandRelativeDates.es.js +1 -1
- package/dist/chunks/getThumbnailUrl.es.js +33 -21
- package/dist/chunks/getUris.es.js +1580 -1610
- package/dist/chunks/queryFilterToClientFilter.es.js +1 -1
- package/dist/chunks/realtimeUpdatesUtils.es.js +15 -15
- package/dist/chunks/searchTerms.es.js +773 -696
- package/dist/chunks/useAttributeEnums.es.js +22 -22
- package/dist/chunks/useDateRangeFilter.es.js +1 -1
- package/dist/chunks/useHierarchySelection.es.js +3 -4
- package/dist/chunks/useLoadModule.es.js +3 -4
- package/dist/components.es.js +475 -467
- package/dist/context.es.js +615 -540
- package/dist/hooks.es.js +193 -171
- package/dist/index.es.js +2 -2
- package/dist/types/Actions.d.ts +10 -8
- package/dist/types/DetailsPanel.d.ts +54 -76
- package/dist/types/EntityPickerDialog.d.ts +12 -6
- package/dist/types/Feed.d.ts +24 -24
- package/dist/types/ListTable.d.ts +33 -27
- package/dist/types/NewEntity.d.ts +26 -39
- package/dist/types/ProjectTreeTable.d.ts +199 -195
- package/dist/types/ProjectsTable.d.ts +6 -6
- package/dist/types/RepresentationsList.d.ts +4 -0
- package/dist/types/Slicer.d.ts +63 -246
- package/dist/types/Views.d.ts +71 -298
- package/dist/types/api.d.ts +3164 -2363
- package/dist/types/components.d.ts +327 -474
- package/dist/types/context.d.ts +285 -572
- package/dist/types/hooks.d.ts +76 -47
- package/dist/types/index.d.ts +6 -0
- package/dist/types/util.d.ts +141 -120
- package/dist/util.es.js +71 -68
- package/package.json +6 -6
- package/dist/chunks/EntityUpdatesContext.es.js +0 -61
- package/dist/chunks/PlayableIcon.es.js +0 -5020
- package/dist/chunks/viewUpdateHelper.es.js +0 -153
package/dist/hooks.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { u as
|
|
4
|
-
import { loadRemote as
|
|
5
|
-
import { useRef as
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
9
|
-
import { bc as
|
|
10
|
-
import {
|
|
1
|
+
import { c as G, b as R, a as V } from "./chunks/TableExportContextInstance.es.js";
|
|
2
|
+
import { n as Ae, r as Ie, o as He, l as Pe, p as Ge, w as Re } from "./chunks/TableExportContextInstance.es.js";
|
|
3
|
+
import { u as k } from "./chunks/useLoadModule.es.js";
|
|
4
|
+
import { loadRemote as x } from "@module-federation/enhanced/runtime";
|
|
5
|
+
import { useRef as M, useState as v, useEffect as b, useCallback as H } from "react";
|
|
6
|
+
import S from "semver";
|
|
7
|
+
import { k as ke, l as xe, m as Me, n as Te, o as Ce, p as Ne } from "./chunks/Watchers.es.js";
|
|
8
|
+
import { u as Ke } from "./chunks/useActionTriggers.es.js";
|
|
9
|
+
import { bc as T } from "./chunks/searchTerms.es.js";
|
|
10
|
+
import { bB as C, cY as N } from "./chunks/getUris.es.js";
|
|
11
11
|
import "primereact/confirmdialog";
|
|
12
12
|
import "react/jsx-runtime";
|
|
13
13
|
import "@ynput/ayon-addon/host";
|
|
14
|
-
import { toast as
|
|
14
|
+
import { toast as O } from "react-toastify";
|
|
15
15
|
import "@ynput/ayon-react-components";
|
|
16
16
|
import "lodash";
|
|
17
17
|
import "uuid";
|
|
@@ -19,96 +19,95 @@ import "axios";
|
|
|
19
19
|
import "./chunks/ContextMenuContextInstance.es.js";
|
|
20
20
|
import "clsx";
|
|
21
21
|
import "react-dom";
|
|
22
|
-
import "react-redux";
|
|
23
22
|
import "react-router-dom";
|
|
24
|
-
import { u as
|
|
25
|
-
import { u as
|
|
26
|
-
import { u as
|
|
27
|
-
import { G as
|
|
28
|
-
import { i as
|
|
29
|
-
import {
|
|
30
|
-
import { u as
|
|
31
|
-
import { a as
|
|
32
|
-
const
|
|
33
|
-
const
|
|
23
|
+
import { u as _e } from "./chunks/EntityPickerDialog.es.js";
|
|
24
|
+
import { u as $e } from "./chunks/ProjectFoldersContext.es.js";
|
|
25
|
+
import { u as Be } from "./chunks/useGroupedPagination.es.js";
|
|
26
|
+
import { G as K } from "./chunks/GroupSettingsFallback.es.js";
|
|
27
|
+
import { i as U } from "./chunks/isHTMLElement.es.js";
|
|
28
|
+
import { f as Fe } from "./chunks/MetaWidget.es.js";
|
|
29
|
+
import { u as qe } from "./chunks/useAttributeEnums.es.js";
|
|
30
|
+
import { a as _ } from "./chunks/afterStartup.es.js";
|
|
31
|
+
const me = (e, o, t) => {
|
|
32
|
+
const n = M(/* @__PURE__ */ new Set()), [u, r] = v(
|
|
34
33
|
() => g(e)
|
|
35
|
-
), [
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}, [JSON.stringify(e),
|
|
39
|
-
const i = async (
|
|
34
|
+
), [s, m] = v(o.length > 0 && !t);
|
|
35
|
+
b(() => {
|
|
36
|
+
t || (console.log("resetting processedModules"), n.current = /* @__PURE__ */ new Set(), r(g(e)));
|
|
37
|
+
}, [JSON.stringify(e), t]);
|
|
38
|
+
const i = async (d, l, c, h, f) => {
|
|
40
39
|
try {
|
|
41
|
-
const a = await
|
|
40
|
+
const a = await x(`${d}/${l}`, {
|
|
42
41
|
from: "runtime"
|
|
43
42
|
});
|
|
44
|
-
p(
|
|
43
|
+
p(c, d, l, a?.default || h, f);
|
|
45
44
|
} catch (a) {
|
|
46
|
-
throw console.error("Error loading remote module",
|
|
45
|
+
throw console.error("Error loading remote module", d, l, a), a;
|
|
47
46
|
}
|
|
48
47
|
};
|
|
49
|
-
|
|
50
|
-
if (
|
|
48
|
+
b(() => {
|
|
49
|
+
if (t) {
|
|
51
50
|
m(!1);
|
|
52
51
|
return;
|
|
53
52
|
}
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
-
if (e.forEach((
|
|
57
|
-
const { addon:
|
|
58
|
-
if (!
|
|
59
|
-
console.log("Invalid module spec",
|
|
53
|
+
u.every((c) => !c[1].isLoaded) && n.current.size > 0 && (console.log("resetting processedModules - results were reset"), n.current = /* @__PURE__ */ new Set()), console.log("loading modules");
|
|
54
|
+
const l = [];
|
|
55
|
+
if (e.forEach((c, h) => {
|
|
56
|
+
const { addon: f, remote: a, module: y, fallback: L, minVersion: E } = c;
|
|
57
|
+
if (!f || !a || !y) {
|
|
58
|
+
console.log("Invalid module spec", c);
|
|
60
59
|
return;
|
|
61
60
|
}
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
64
|
-
console.log("skipping already processed module",
|
|
61
|
+
const A = `${f}/${a}/${y}`;
|
|
62
|
+
if (n.current.has(A)) {
|
|
63
|
+
console.log("skipping already processed module", A);
|
|
65
64
|
return;
|
|
66
65
|
}
|
|
67
|
-
if (
|
|
68
|
-
|
|
66
|
+
if (u[h]?.[1]?.isLoaded) {
|
|
67
|
+
n.current.add(A);
|
|
69
68
|
return;
|
|
70
69
|
}
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
if (!
|
|
74
|
-
console.log("Addon not found", { addon:
|
|
70
|
+
n.current.add(A);
|
|
71
|
+
const I = o.find((P) => P.addonName === f);
|
|
72
|
+
if (!I) {
|
|
73
|
+
console.log("Addon not found", { addon: f, remote: a, module: y });
|
|
75
74
|
return;
|
|
76
75
|
}
|
|
77
|
-
if (E && !
|
|
76
|
+
if (E && !S.gte(I.addonVersion, E)) {
|
|
78
77
|
w(
|
|
79
78
|
h,
|
|
80
|
-
|
|
79
|
+
f,
|
|
81
80
|
a,
|
|
82
81
|
y,
|
|
83
82
|
L,
|
|
84
83
|
E,
|
|
85
|
-
|
|
84
|
+
I.addonVersion
|
|
86
85
|
);
|
|
87
86
|
return;
|
|
88
87
|
}
|
|
89
|
-
if (!
|
|
90
|
-
console.log("Module not found", { addon:
|
|
88
|
+
if (!I.modules[a]) {
|
|
89
|
+
console.log("Module not found", { addon: f, remote: a, module: y });
|
|
91
90
|
return;
|
|
92
91
|
}
|
|
93
|
-
|
|
94
|
-
}), !
|
|
92
|
+
l.push(i(a, y, f, L, E));
|
|
93
|
+
}), !l.length) {
|
|
95
94
|
m(!1);
|
|
96
95
|
return;
|
|
97
96
|
}
|
|
98
|
-
m(!0), Promise.all(
|
|
97
|
+
m(!0), Promise.all(l).then(() => {
|
|
99
98
|
m(!1);
|
|
100
|
-
}).catch((
|
|
101
|
-
console.error("Error loading modules",
|
|
99
|
+
}).catch((c) => {
|
|
100
|
+
console.error("Error loading modules", c), m(!1);
|
|
102
101
|
});
|
|
103
|
-
}, [
|
|
104
|
-
function g(
|
|
105
|
-
return
|
|
106
|
-
({ addon:
|
|
107
|
-
|
|
102
|
+
}, [t, o, JSON.stringify(e), u]);
|
|
103
|
+
function g(d) {
|
|
104
|
+
return d.map(
|
|
105
|
+
({ addon: l = "", remote: c = "", module: h = "", fallback: f, minVersion: a }) => [
|
|
106
|
+
f,
|
|
108
107
|
{
|
|
109
108
|
isLoaded: !1,
|
|
110
|
-
addon:
|
|
111
|
-
remote:
|
|
109
|
+
addon: l,
|
|
110
|
+
remote: c,
|
|
112
111
|
module: h,
|
|
113
112
|
minVersion: a,
|
|
114
113
|
outdated: void 0
|
|
@@ -116,15 +115,15 @@ const fe = (e, s, r) => {
|
|
|
116
115
|
]
|
|
117
116
|
);
|
|
118
117
|
}
|
|
119
|
-
function w(
|
|
120
|
-
|
|
118
|
+
function w(d, l, c, h, f, a, y) {
|
|
119
|
+
r((L) => {
|
|
121
120
|
const E = [...L];
|
|
122
|
-
return
|
|
123
|
-
|
|
121
|
+
return d >= 0 && d < E.length && (E[d] = [
|
|
122
|
+
f,
|
|
124
123
|
{
|
|
125
124
|
isLoaded: !1,
|
|
126
|
-
addon:
|
|
127
|
-
remote:
|
|
125
|
+
addon: l,
|
|
126
|
+
remote: c,
|
|
128
127
|
module: h,
|
|
129
128
|
minVersion: a,
|
|
130
129
|
outdated: {
|
|
@@ -135,169 +134,192 @@ const fe = (e, s, r) => {
|
|
|
135
134
|
]), E;
|
|
136
135
|
});
|
|
137
136
|
}
|
|
138
|
-
function p(
|
|
139
|
-
|
|
137
|
+
function p(d, l, c, h, f) {
|
|
138
|
+
r((a) => {
|
|
140
139
|
const y = [...a], L = e.findIndex(
|
|
141
|
-
(E) => E.addon ===
|
|
140
|
+
(E) => E.addon === d && E.remote === l && E.module === c
|
|
142
141
|
);
|
|
143
142
|
return L >= 0 && L < y.length && (y[L] = [
|
|
144
143
|
h,
|
|
145
144
|
{
|
|
146
145
|
isLoaded: !0,
|
|
147
|
-
addon:
|
|
148
|
-
remote:
|
|
149
|
-
module:
|
|
150
|
-
minVersion:
|
|
146
|
+
addon: d,
|
|
147
|
+
remote: l,
|
|
148
|
+
module: c,
|
|
149
|
+
minVersion: f,
|
|
151
150
|
outdated: void 0
|
|
152
151
|
}
|
|
153
152
|
]), y;
|
|
154
153
|
});
|
|
155
154
|
}
|
|
156
|
-
return { modules:
|
|
157
|
-
},
|
|
158
|
-
const { user:
|
|
159
|
-
let
|
|
160
|
-
for (const i of
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
const [
|
|
164
|
-
return [
|
|
155
|
+
return { modules: u, isLoading: s };
|
|
156
|
+
}, ge = ({ selectors: e = [], init: o }) => {
|
|
157
|
+
const { user: t } = G(), { data: { frontendPreferences: n = {} } = {} } = t || {}, u = e.filter((i) => i != null).map((i) => i.replace(/\s/g, ""));
|
|
158
|
+
let r = n;
|
|
159
|
+
for (const i of u)
|
|
160
|
+
r = r?.[i];
|
|
161
|
+
r = r || o || {};
|
|
162
|
+
const [s] = T();
|
|
163
|
+
return [r, async (i) => {
|
|
165
164
|
try {
|
|
166
|
-
if (!
|
|
167
|
-
let g = { ...
|
|
168
|
-
const w = (p,
|
|
169
|
-
if (
|
|
170
|
-
const [
|
|
165
|
+
if (!t?.name) throw { data: { detail: "User not found" } };
|
|
166
|
+
let g = { ...n };
|
|
167
|
+
const w = (p, d, l) => {
|
|
168
|
+
if (d.length === 0) return { ...p, ...l };
|
|
169
|
+
const [c, ...h] = d, f = p?.[c] || {};
|
|
171
170
|
return {
|
|
172
171
|
...p,
|
|
173
|
-
[
|
|
172
|
+
[c]: w(f, h, l)
|
|
174
173
|
};
|
|
175
174
|
};
|
|
176
|
-
g = w(g,
|
|
177
|
-
userName:
|
|
175
|
+
g = w(g, u, i), await s({
|
|
176
|
+
userName: t.name,
|
|
178
177
|
patchData: g,
|
|
179
178
|
// @ts-expect-error - disableInvalidations is not in the api
|
|
180
179
|
disableInvalidations: !0
|
|
181
180
|
}).unwrap();
|
|
182
181
|
} catch (g) {
|
|
183
|
-
console.error(g),
|
|
182
|
+
console.error(g), O.error(g.data?.detail);
|
|
184
183
|
}
|
|
185
184
|
}, { isSuccess: !0 }];
|
|
186
|
-
},
|
|
187
|
-
e?.id === "taskType" && (
|
|
188
|
-
const
|
|
189
|
-
{ projectName:
|
|
185
|
+
}, pe = ({ groupBy: e, projectName: o, entityType: t }) => {
|
|
186
|
+
e?.id === "taskType" && (t = "task");
|
|
187
|
+
const n = e?.id || "", { data: { groups: u = [] } = {}, error: r } = C(
|
|
188
|
+
{ projectName: o, entityType: t, groupingKey: n, empty: !0 },
|
|
190
189
|
{ skip: !e?.id }
|
|
191
190
|
);
|
|
192
191
|
return {
|
|
193
|
-
groups:
|
|
194
|
-
error:
|
|
192
|
+
groups: u,
|
|
193
|
+
error: r
|
|
195
194
|
};
|
|
196
|
-
},
|
|
197
|
-
const { powerLicense: e } =
|
|
195
|
+
}, he = () => {
|
|
196
|
+
const { powerLicense: e } = R(), [o, { outdated: t, isLoading: n }] = k({
|
|
198
197
|
addon: "powerpack",
|
|
199
198
|
remote: "slicer",
|
|
200
199
|
module: "GroupSettings",
|
|
201
|
-
fallback:
|
|
200
|
+
fallback: K,
|
|
202
201
|
minVersion: "1.1.1-dev",
|
|
203
202
|
skip: !e
|
|
204
203
|
// skip loading if powerpack license is not available
|
|
205
204
|
});
|
|
206
205
|
return {
|
|
207
|
-
GroupSettings:
|
|
208
|
-
requiredVersion:
|
|
209
|
-
isLoading:
|
|
206
|
+
GroupSettings: o,
|
|
207
|
+
requiredVersion: t?.required,
|
|
208
|
+
isLoading: n
|
|
210
209
|
};
|
|
211
|
-
},
|
|
212
|
-
function
|
|
210
|
+
}, W = ["w", "s"];
|
|
211
|
+
function ye({
|
|
213
212
|
reviewables: e,
|
|
214
|
-
selected:
|
|
215
|
-
onChange:
|
|
216
|
-
onNavigate:
|
|
217
|
-
enabled:
|
|
213
|
+
selected: o,
|
|
214
|
+
onChange: t,
|
|
215
|
+
onNavigate: n,
|
|
216
|
+
enabled: u = !0
|
|
218
217
|
}) {
|
|
219
|
-
|
|
220
|
-
if (!
|
|
221
|
-
const
|
|
222
|
-
const m =
|
|
223
|
-
if (!
|
|
218
|
+
b(() => {
|
|
219
|
+
if (!u || e.length <= 1) return;
|
|
220
|
+
const r = (s) => {
|
|
221
|
+
const m = s.key.length === 1 ? s.key.toLowerCase() : s.key;
|
|
222
|
+
if (!W.includes(m) || s.metaKey || s.ctrlKey || s.altKey || U(s.target) && (s.target.tagName === "INPUT" || s.target.tagName === "TEXTAREA" || s.target.isContentEditable))
|
|
224
223
|
return;
|
|
225
|
-
const w = e.findIndex(({ fileId:
|
|
226
|
-
p && (
|
|
224
|
+
const w = e.findIndex(({ fileId: d }) => o.includes(d)) + (m === "w" ? -1 : 1), p = e[w < 0 ? e.length - 1 : w % e.length];
|
|
225
|
+
p && (t?.(p.fileId), n?.(p));
|
|
227
226
|
};
|
|
228
|
-
return window.addEventListener("keydown",
|
|
229
|
-
}, [
|
|
227
|
+
return window.addEventListener("keydown", r), () => window.removeEventListener("keydown", r);
|
|
228
|
+
}, [u, e, o, t, n]);
|
|
230
229
|
}
|
|
231
|
-
const
|
|
232
|
-
function
|
|
230
|
+
const $ = 4, j = 0.3;
|
|
231
|
+
function Ee({
|
|
233
232
|
containerRef: e,
|
|
234
|
-
toolsRef:
|
|
235
|
-
reviewablesCount:
|
|
233
|
+
toolsRef: o,
|
|
234
|
+
reviewablesCount: t
|
|
236
235
|
}) {
|
|
237
|
-
const [
|
|
238
|
-
return console.log("containerHeight:",
|
|
239
|
-
const i = e.current, g =
|
|
236
|
+
const [n, u] = v(0), [r, s] = v(0);
|
|
237
|
+
return console.log("containerHeight:", n, "toolsHeight:", r), b(() => {
|
|
238
|
+
const i = e.current, g = o.current;
|
|
240
239
|
if (!i) return;
|
|
241
240
|
const w = () => {
|
|
242
|
-
|
|
241
|
+
u(i.clientHeight), s(g?.offsetHeight ?? 0);
|
|
243
242
|
};
|
|
244
243
|
w();
|
|
245
244
|
const p = new ResizeObserver(w);
|
|
246
245
|
return p.observe(i), g && p.observe(g), () => p.disconnect();
|
|
247
|
-
}, [e,
|
|
246
|
+
}, [e, o]), t <= $ || !n || !r ? "column" : n - r < n * j ? "row" : "column";
|
|
248
247
|
}
|
|
249
|
-
const
|
|
250
|
-
const { data: e, isLoading:
|
|
248
|
+
const we = () => {
|
|
249
|
+
const { data: e, isLoading: o, isError: t } = N({});
|
|
251
250
|
return {
|
|
252
|
-
getProductionAddon:
|
|
253
|
-
(
|
|
251
|
+
getProductionAddon: H(
|
|
252
|
+
(u, r) => {
|
|
254
253
|
if (!e?.addons) return;
|
|
255
|
-
const
|
|
256
|
-
if (!(!
|
|
257
|
-
if (
|
|
254
|
+
const s = e.addons.find((i) => i.name === u), m = s?.productionVersion;
|
|
255
|
+
if (!(!s || !m) && !(r?.version && m !== r.version)) {
|
|
256
|
+
if (r?.minVersion)
|
|
258
257
|
try {
|
|
259
|
-
if (!(
|
|
258
|
+
if (!(S.gte(m, r.minVersion) || S.gte(S.coerce(m) || "0.0.0", r.minVersion))) return;
|
|
260
259
|
} catch {
|
|
261
260
|
return;
|
|
262
261
|
}
|
|
263
|
-
return
|
|
262
|
+
return s;
|
|
264
263
|
}
|
|
265
264
|
},
|
|
266
265
|
[e]
|
|
267
266
|
),
|
|
268
|
-
isLoading:
|
|
269
|
-
isError:
|
|
267
|
+
isLoading: o,
|
|
268
|
+
isError: t
|
|
269
|
+
};
|
|
270
|
+
}, B = (e, { version: o, minVersion: t } = {}) => {
|
|
271
|
+
if (o && e !== o) return !1;
|
|
272
|
+
if (!t) return !0;
|
|
273
|
+
try {
|
|
274
|
+
return S.gte(e, t) || S.gte(S.coerce(e) || "0.0.0", t);
|
|
275
|
+
} catch {
|
|
276
|
+
return !1;
|
|
277
|
+
}
|
|
278
|
+
}, Le = () => {
|
|
279
|
+
const { bundle: e } = V(), o = H(
|
|
280
|
+
(n, u) => {
|
|
281
|
+
const r = e?.versions[n];
|
|
282
|
+
if (!(!r || !B(r, u)))
|
|
283
|
+
return r;
|
|
284
|
+
},
|
|
285
|
+
[e]
|
|
286
|
+
), t = e?.variant ?? "production";
|
|
287
|
+
return {
|
|
288
|
+
getBundleAddonVersion: o,
|
|
289
|
+
bundleVariant: t,
|
|
290
|
+
isLoading: !e
|
|
270
291
|
};
|
|
271
|
-
},
|
|
272
|
-
const [
|
|
273
|
-
return
|
|
292
|
+
}, Se = (e) => {
|
|
293
|
+
const [o, t] = v(!1);
|
|
294
|
+
return b(() => _(() => t(!0), e), [e]), o;
|
|
274
295
|
};
|
|
275
296
|
export {
|
|
276
|
-
|
|
277
|
-
|
|
297
|
+
ke as filterProjectStatuses,
|
|
298
|
+
Ae as readLocalStorage,
|
|
278
299
|
Ie as readSessionStorage,
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
ye as
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
300
|
+
Ke as useActionTriggers,
|
|
301
|
+
Se as useAfterStartup,
|
|
302
|
+
xe as useAttributeEnumOptions,
|
|
303
|
+
qe as useAttributeEnums,
|
|
304
|
+
Fe as useEditProjectTags,
|
|
305
|
+
Me as useEntityUpdate,
|
|
306
|
+
Te as useFetchAttributeEnumOptions,
|
|
307
|
+
Le as useGetBundleAddon,
|
|
308
|
+
pe as useGetEntityGroups,
|
|
309
|
+
we as useGetProductionAddon,
|
|
310
|
+
he as useGroupByRemoteModules,
|
|
311
|
+
Be as useGroupedPagination,
|
|
312
|
+
_e as useHierarchyTable,
|
|
313
|
+
k as useLoadModule,
|
|
314
|
+
me as useLoadModules,
|
|
315
|
+
He as useLocalStorage,
|
|
316
|
+
$e as useQueryArgumentChangeLoading,
|
|
317
|
+
ye as useReviewablesKeyboardNavigation,
|
|
318
|
+
Ee as useReviewablesLayout,
|
|
319
|
+
Ce as useScopedStatuses,
|
|
320
|
+
Ne as useScopedTypes,
|
|
321
|
+
Pe as useSessionStorage,
|
|
322
|
+
ge as useUserProjectConfig,
|
|
323
|
+
Ge as writeLocalStorage,
|
|
324
|
+
Re as writeSessionStorage
|
|
303
325
|
};
|
package/dist/index.es.js
CHANGED
|
@@ -8,7 +8,7 @@ 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 $ } from "./chunks/
|
|
11
|
+
import { U as $ } from "./chunks/FilmstripEntityCard.es.js";
|
|
12
12
|
import { u as or } from "./chunks/TableExportContextInstance.es.js";
|
|
13
13
|
import "lodash";
|
|
14
14
|
import "primereact/confirmdialog";
|
|
@@ -33,7 +33,6 @@ import "@ynput/ayon-addon/host";
|
|
|
33
33
|
import "semver";
|
|
34
34
|
import "./chunks/ContextMenuContextInstance.es.js";
|
|
35
35
|
import { M as tr } from "./chunks/MenuContext.es.js";
|
|
36
|
-
import "react-redux";
|
|
37
36
|
import "react-router-dom";
|
|
38
37
|
import { E as ir } from "./chunks/EmptyPlaceholder.es.js";
|
|
39
38
|
import "./chunks/EmptyPlaceholderFlex.styled.es.js";
|
|
@@ -46,6 +45,7 @@ import "./chunks/EntityTooltip.es.js";
|
|
|
46
45
|
import "./chunks/addonColumnTags.es.js";
|
|
47
46
|
import "@ynput/ayon-addon";
|
|
48
47
|
import "@tanstack/react-table";
|
|
48
|
+
import "react-redux";
|
|
49
49
|
import "./chunks/EntityPickerDialog.es.js";
|
|
50
50
|
import "remark-gfm";
|
|
51
51
|
import "react-markdown";
|
package/dist/types/Actions.d.ts
CHANGED
|
@@ -3,15 +3,17 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
|
3
3
|
|
|
4
4
|
declare type ActionContext = {
|
|
5
5
|
/** The name of the project. If not provided, use global actions, the rest of the fields are ignored. */
|
|
6
|
-
projectName?: string;
|
|
6
|
+
projectName?: string | null;
|
|
7
7
|
/** The type of the entity. Either a project level entity, 'list' or 'project' for project-wide actions. or None for global actions. */
|
|
8
|
-
entityType?: 'project' | 'list' | 'folder' | 'task' | 'product' | 'version' | 'representation' | 'workfile';
|
|
8
|
+
entityType?: ('project' | 'list' | 'folder' | 'task' | 'product' | 'version' | 'representation' | 'workfile') | null;
|
|
9
9
|
/** List of subtypes present in the entity list */
|
|
10
|
-
entitySubtypes?: string[];
|
|
10
|
+
entitySubtypes?: string[] | null;
|
|
11
11
|
/** The IDs of the entities */
|
|
12
|
-
entityIds?: string[];
|
|
12
|
+
entityIds?: string[] | null;
|
|
13
13
|
/** The data from the form */
|
|
14
|
-
formData?:
|
|
14
|
+
formData?: {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
} | null;
|
|
15
17
|
};
|
|
16
18
|
|
|
17
19
|
export declare const Actions: ({ entities, entityType, entitySubTypes, isLoadingEntity, projectActionsProjectName, searchParams, featuredCount, bundleMode, onNavigate, onSetSearchParams, align, pt, }: ActionsProps) => JSX_2.Element;
|
|
@@ -66,11 +68,11 @@ declare type BundleMode_2 = 'production' | 'staging' | 'developer';
|
|
|
66
68
|
declare type IconModel = {
|
|
67
69
|
type?: 'material-symbols' | 'url';
|
|
68
70
|
/** The name of the icon (for type material-symbols) */
|
|
69
|
-
name?: string;
|
|
71
|
+
name?: string | null;
|
|
70
72
|
/** The color of the icon (for type material-symbols) */
|
|
71
|
-
color?: string;
|
|
73
|
+
color?: string | null;
|
|
72
74
|
/** The URL of the icon (for type url) */
|
|
73
|
-
url?: string;
|
|
75
|
+
url?: string | null;
|
|
74
76
|
};
|
|
75
77
|
|
|
76
78
|
export { }
|