@ynput/ayon-frontend-shared 0.6.4 → 0.6.6
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 +480 -477
- package/dist/ListTable.es.js +24 -25
- package/dist/NewEntity.es.js +6 -7
- package/dist/ProjectTreeTable.es.js +2018 -2006
- package/dist/Views.es.js +28 -28
- package/dist/api.es.js +291 -289
- package/dist/chunks/Actions.es.js +12 -12
- package/dist/chunks/ColumnDropIndicator.es.js +8 -9
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +31 -25
- package/dist/chunks/DeleteEntitiesContextInstance.es.js +1 -1
- package/dist/chunks/DetailsDialog.es.js +1 -1
- package/dist/chunks/EmptyPlaceholder.es.js +13 -12
- package/dist/chunks/EntityPath.es.js +67 -67
- package/dist/chunks/EntityPickerDialog.es.js +1 -1
- package/dist/chunks/EntityTooltip.es.js +8 -8
- package/dist/chunks/Feed.es.js +1742 -1734
- package/dist/chunks/Menu.es.js +168 -166
- package/dist/chunks/MenuItem.es.js +112 -77
- package/dist/chunks/MetaWidget.es.js +1283 -1279
- package/dist/chunks/PlayableIcon.es.js +458 -451
- package/dist/chunks/ProjectContext.es.js +20 -20
- package/dist/chunks/RepresentationsList.es.js +9 -9
- package/dist/chunks/ReviewablesSelector.es.js +1504 -1374
- package/dist/chunks/SimpleForm.es.js +78 -75
- package/dist/chunks/Slicer.es.js +68 -69
- package/dist/chunks/ThumbnailSimple.es.js +4 -4
- package/dist/chunks/Watchers.es.js +104 -105
- package/dist/chunks/activeEntities.es.js +58 -0
- package/dist/chunks/columnConfigConverter.es.js +57 -63
- package/dist/chunks/getUris.es.js +1014 -960
- package/dist/chunks/iconUtils.es.js +151 -0
- package/dist/chunks/queryFilterToClientFilter.es.js +90 -81
- package/dist/chunks/realtimeUpdatesUtils.es.js +113 -80
- package/dist/chunks/searchTerms.es.js +332 -247
- package/dist/chunks/useAttributeEnums.es.js +34 -34
- package/dist/chunks/viewUpdateHelper.es.js +11 -11
- package/dist/components.es.js +340 -337
- package/dist/context.es.js +48 -48
- package/dist/hooks.es.js +34 -34
- package/dist/index.es.js +1 -1
- package/dist/types/ContextMenu.d.ts +1 -1
- package/dist/types/Feed.d.ts +2 -2
- package/dist/types/ListTable.d.ts +1 -1
- package/dist/types/ProjectTreeTable.d.ts +7 -6
- package/dist/types/SimpleTable.d.ts +1 -1
- package/dist/types/Slicer.d.ts +6 -6
- package/dist/types/Views.d.ts +6 -6
- package/dist/types/api.d.ts +554 -176
- package/dist/types/components.d.ts +73 -11
- package/dist/types/context.d.ts +7 -7
- package/dist/types/util.d.ts +238 -3
- package/dist/util.es.js +127 -114
- package/package.json +1 -1
- package/dist/chunks/extractEntityHierarchyFromParents.es.js +0 -28
- package/dist/chunks/parseHtmlToPlainTextWithLinks.es.js +0 -138
package/dist/context.es.js
CHANGED
|
@@ -2,21 +2,21 @@ import { jsx as j, jsxs as pe } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as b, useEffect as B, useCallback as E, useRef as fe, useMemo as T } from "react";
|
|
3
3
|
import { registerRemotes as ge } from "@module-federation/enhanced/runtime";
|
|
4
4
|
import { ay as me, bi as he } from "./chunks/searchTerms.es.js";
|
|
5
|
-
import {
|
|
5
|
+
import { cS as ye, c4 as Pe, ci as ve, bq as be, cU as we, cD as Ce, bK as Se, c_ as Ie, dn as ke, cK as Le } from "./chunks/getUris.es.js";
|
|
6
6
|
import "primereact/confirmdialog";
|
|
7
|
-
import { d as re, z as xe, a as ie, q as Ee, A as De, B as Fe, G as je, H as Te, I as Me, J as Oe, K as Re, L as
|
|
8
|
-
import { E as Ft, M as jt, X as Tt, P as Mt, Y as Ot, Z as Rt, T as
|
|
7
|
+
import { d as re, z as xe, a as ie, q as Ee, A as De, B as Fe, G as je, H as Te, I as Me, J as Oe, K as Re, L as Ue, N as Ae, O as Ne, Q as Be, U as Ge, V as _e, W as $e } from "./chunks/DeleteEntitiesContextInstance.es.js";
|
|
8
|
+
import { E as Ft, M as jt, X as Tt, P as Mt, Y as Ot, Z as Rt, T as Ut, _ as At, $ as Nt, g as Bt, a0 as Gt, m as _t, c as $t, a1 as Wt, t as qt, a2 as Qt, a3 as zt, a4 as Vt, a5 as Ht, a6 as Yt, v as Kt, u as Jt, n as Xt, a7 as Zt, x as en, y as tn, b as nn, a8 as on, a9 as sn, aa as rn, ab as an, ac as ln, ad as cn } from "./chunks/DeleteEntitiesContextInstance.es.js";
|
|
9
9
|
import "lodash";
|
|
10
10
|
import { toast as G } from "react-toastify";
|
|
11
|
-
import { v4 as
|
|
12
|
-
import { g as
|
|
11
|
+
import { v4 as J } from "uuid";
|
|
12
|
+
import { g as We, p as qe, b as Qe } from "./chunks/getBundleMode.es.js";
|
|
13
13
|
import { u as ae } from "./chunks/useLoadModule.es.js";
|
|
14
14
|
import { P as un, T as pn } from "./chunks/ProjectContext.es.js";
|
|
15
15
|
import "react-dom";
|
|
16
16
|
import { p as ze, c as Ve, d as He, e as Ye, b as oe } from "./chunks/DeleteEntitiesConfirmDialog.es.js";
|
|
17
17
|
import { a as gn } from "./chunks/DeleteEntitiesConfirmDialog.es.js";
|
|
18
18
|
import { M as hn } from "./chunks/MenuContext.es.js";
|
|
19
|
-
import { u as
|
|
19
|
+
import { u as Ke } from "./chunks/useQueryArgumentChangeLoading.es.js";
|
|
20
20
|
import { E as Pn, F as vn } from "./chunks/EntityUpdatesContext.es.js";
|
|
21
21
|
const mt = ({ children: f, skip: i }) => {
|
|
22
22
|
const { data: s = [], isLoading: e } = ye(void 0, {
|
|
@@ -61,7 +61,7 @@ const mt = ({ children: f, skip: i }) => {
|
|
|
61
61
|
children: f
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
|
-
},
|
|
64
|
+
}, Je = {
|
|
65
65
|
planner: {
|
|
66
66
|
label: "Planner",
|
|
67
67
|
icon: "calendar_month",
|
|
@@ -113,7 +113,7 @@ const mt = ({ children: f, skip: i }) => {
|
|
|
113
113
|
debug: e = {},
|
|
114
114
|
...r
|
|
115
115
|
}) => {
|
|
116
|
-
const c = r.user, d =
|
|
116
|
+
const c = r.user, d = We(c), h = "isGuest" in e ? e.isGuest : c?.data?.isGuest, { powerLicense: y, setPowerpackDialog: g } = ie(), p = "hasLicense" in e ? e.hasLicense : !!y || s, [l, n] = b({}), [u, m] = b([]), [S, v] = b([]), x = E(
|
|
117
117
|
(C) => l[C] ? l[C] : !1,
|
|
118
118
|
[l]
|
|
119
119
|
), D = E(
|
|
@@ -131,7 +131,7 @@ const mt = ({ children: f, skip: i }) => {
|
|
|
131
131
|
), [P, I] = b(null), M = E((C) => {
|
|
132
132
|
I(C);
|
|
133
133
|
}, []), F = E(() => {
|
|
134
|
-
I(null), P &&
|
|
134
|
+
I(null), P && A([]);
|
|
135
135
|
}, []);
|
|
136
136
|
B(() => {
|
|
137
137
|
F();
|
|
@@ -140,9 +140,9 @@ const mt = ({ children: f, skip: i }) => {
|
|
|
140
140
|
k(C);
|
|
141
141
|
}, []), O = E(() => {
|
|
142
142
|
k(null);
|
|
143
|
-
}, []), [
|
|
143
|
+
}, []), [U, _] = b(null), [H, A] = b([]), { uriType: Y, uri: le, entity: $, getUriEntities: ce } = Fe(), [W] = r.useSearchParams(), q = W.get("project"), Q = W.get("type"), z = W.get("id"), X = W.get("activity");
|
|
144
144
|
B(() => {
|
|
145
|
-
if (!(!
|
|
145
|
+
if (!(!q && !Q && !z)) {
|
|
146
146
|
if (Y === "entity" && $ && $.entityType !== "product") {
|
|
147
147
|
ce().then((C) => {
|
|
148
148
|
if (C.length === 0) return;
|
|
@@ -166,21 +166,21 @@ const mt = ({ children: f, skip: i }) => {
|
|
|
166
166
|
});
|
|
167
167
|
return;
|
|
168
168
|
}
|
|
169
|
-
|
|
170
|
-
entityType:
|
|
169
|
+
q && Q && z && (_({
|
|
170
|
+
entityType: Q,
|
|
171
171
|
entities: [
|
|
172
172
|
{
|
|
173
173
|
id: z,
|
|
174
|
-
projectName:
|
|
174
|
+
projectName: q
|
|
175
175
|
}
|
|
176
176
|
],
|
|
177
177
|
source: "url"
|
|
178
|
-
}), X && (
|
|
178
|
+
}), X && (A([X]), a({
|
|
179
179
|
...o,
|
|
180
180
|
overview: "feed"
|
|
181
181
|
})));
|
|
182
182
|
}
|
|
183
|
-
}, [
|
|
183
|
+
}, [q, Q, z]);
|
|
184
184
|
const V = {
|
|
185
185
|
// open state for the panel by scope
|
|
186
186
|
panelOpenByScope: l,
|
|
@@ -196,13 +196,13 @@ const mt = ({ children: f, skip: i }) => {
|
|
|
196
196
|
closeSlideOut: F,
|
|
197
197
|
// highlighted activities
|
|
198
198
|
highlightedActivities: H,
|
|
199
|
-
setHighlightedActivities:
|
|
199
|
+
setHighlightedActivities: A,
|
|
200
200
|
// PiP state
|
|
201
201
|
pip: t,
|
|
202
202
|
openPip: L,
|
|
203
203
|
closePip: O,
|
|
204
204
|
// entities state
|
|
205
|
-
entities:
|
|
205
|
+
entities: U,
|
|
206
206
|
setEntities: _,
|
|
207
207
|
feedAnnotations: u,
|
|
208
208
|
setFeedAnnotations: m,
|
|
@@ -213,8 +213,8 @@ const mt = ({ children: f, skip: i }) => {
|
|
|
213
213
|
hasLicense: p,
|
|
214
214
|
onPowerFeature: g,
|
|
215
215
|
...r
|
|
216
|
-
},
|
|
217
|
-
return (ee.length !== Object.keys(Z).length || ee.some((C) => Z[C] !== V[C])) && (
|
|
216
|
+
}, K = fe(V), Z = K.current, ee = Object.keys(V);
|
|
217
|
+
return (ee.length !== Object.keys(Z).length || ee.some((C) => Z[C] !== V[C])) && (K.current = V), /* @__PURE__ */ j(je.Provider, { value: K.current, children: f });
|
|
218
218
|
}, Xe = (f) => {
|
|
219
219
|
const { setPowerpackDialog: i } = ie();
|
|
220
220
|
return B(() => {
|
|
@@ -270,11 +270,11 @@ function vt({ children: f }) {
|
|
|
270
270
|
}, [e, c]), y = E(
|
|
271
271
|
async (p, l) => {
|
|
272
272
|
if (!s) {
|
|
273
|
-
d(
|
|
273
|
+
d(J());
|
|
274
274
|
return;
|
|
275
275
|
}
|
|
276
276
|
if (e != null) {
|
|
277
|
-
console.log("pipWindow is already open"), d(
|
|
277
|
+
console.log("pipWindow is already open"), d(J());
|
|
278
278
|
return;
|
|
279
279
|
}
|
|
280
280
|
const n = await window.documentPictureInPicture.requestWindow({
|
|
@@ -283,7 +283,7 @@ function vt({ children: f }) {
|
|
|
283
283
|
});
|
|
284
284
|
n.addEventListener("pagehide", () => {
|
|
285
285
|
r(null), d(null);
|
|
286
|
-
}), r(n), d(
|
|
286
|
+
}), r(n), d(J());
|
|
287
287
|
},
|
|
288
288
|
[e, c]
|
|
289
289
|
);
|
|
@@ -329,7 +329,7 @@ const bt = ({
|
|
|
329
329
|
{ skip: !i }
|
|
330
330
|
), { user: c } = re();
|
|
331
331
|
return /* @__PURE__ */ j(
|
|
332
|
-
|
|
332
|
+
Ue.Provider,
|
|
333
333
|
{
|
|
334
334
|
value: {
|
|
335
335
|
...e,
|
|
@@ -341,7 +341,7 @@ const bt = ({
|
|
|
341
341
|
children: f
|
|
342
342
|
}
|
|
343
343
|
);
|
|
344
|
-
}, wt = ({ children: f, ...i }) => /* @__PURE__ */ j(
|
|
344
|
+
}, wt = ({ children: f, ...i }) => /* @__PURE__ */ j(Ae.Provider, { value: { ...i }, children: f }), Ct = ({
|
|
345
345
|
children: f,
|
|
346
346
|
debug: i
|
|
347
347
|
}) => {
|
|
@@ -349,7 +349,7 @@ const bt = ({
|
|
|
349
349
|
o === null ? (e(null), c(null)) : d(o) ? (e(null), c(o)) : (c(null), e(o));
|
|
350
350
|
}, []), y = (o) => o ? ze[o] : null, g = (o) => {
|
|
351
351
|
if (!o) return null;
|
|
352
|
-
const a =
|
|
352
|
+
const a = Je[o.addon];
|
|
353
353
|
return a ? { ...a, selectedFeature: o.feature } : null;
|
|
354
354
|
}, [p, l] = b(!1), [n, u] = b(!0), m = async () => !1, [S, { isLoaded: v, isLoading: x }] = ae({
|
|
355
355
|
addon: "powerpack",
|
|
@@ -441,7 +441,7 @@ const bt = ({
|
|
|
441
441
|
isUninitialized: d,
|
|
442
442
|
error: h,
|
|
443
443
|
refetch: y
|
|
444
|
-
} = Se({ projectName: f, attrib: !0 }), g =
|
|
444
|
+
} = Se({ projectName: f, attrib: !0 }), g = Ke({ projectName: f }, r || e), p = T(() => {
|
|
445
445
|
const o = /* @__PURE__ */ new Map();
|
|
446
446
|
for (const a of s)
|
|
447
447
|
o.set(a.id, a);
|
|
@@ -545,9 +545,9 @@ const bt = ({
|
|
|
545
545
|
B(() => {
|
|
546
546
|
r.some((u) => i.startsWith(`/${u}`)) || e("");
|
|
547
547
|
}, [i, e]);
|
|
548
|
-
const { type: c, entity: d, settings: h } =
|
|
548
|
+
const { type: c, entity: d, settings: h } = qe(s), y = E(
|
|
549
549
|
({ projectName: n, folderPath: u, taskName: m, productName: S, versionName: v }) => {
|
|
550
|
-
const x =
|
|
550
|
+
const x = Qe({ projectName: n, folderPath: u, taskName: m, productName: S, versionName: v });
|
|
551
551
|
e(x);
|
|
552
552
|
},
|
|
553
553
|
[e]
|
|
@@ -595,17 +595,17 @@ const bt = ({
|
|
|
595
595
|
if (t.length === 0) return;
|
|
596
596
|
const L = /* @__PURE__ */ new Map();
|
|
597
597
|
for (const O of t) {
|
|
598
|
-
const
|
|
599
|
-
|
|
598
|
+
const U = L.get(O.projectName) || [];
|
|
599
|
+
U.push(O), L.set(O.projectName, U);
|
|
600
600
|
}
|
|
601
601
|
await Promise.all(
|
|
602
|
-
Array.from(L.entries()).map(([O,
|
|
603
|
-
const H = [...
|
|
604
|
-
(
|
|
605
|
-
).map((
|
|
602
|
+
Array.from(L.entries()).map(([O, U]) => {
|
|
603
|
+
const H = [...U].sort(
|
|
604
|
+
(A, Y) => se.indexOf(A.entityType) - se.indexOf(Y.entityType)
|
|
605
|
+
).map((A) => ({
|
|
606
606
|
type: "delete",
|
|
607
|
-
entityType:
|
|
608
|
-
entityId:
|
|
607
|
+
entityType: A.entityType,
|
|
608
|
+
entityId: A.id,
|
|
609
609
|
force: k
|
|
610
610
|
}));
|
|
611
611
|
return i({
|
|
@@ -636,7 +636,7 @@ const bt = ({
|
|
|
636
636
|
Array.from(t.entries()).map(
|
|
637
637
|
([L, O]) => s({
|
|
638
638
|
projectName: L,
|
|
639
|
-
folderIds: O.map((
|
|
639
|
+
folderIds: O.map((U) => U.id)
|
|
640
640
|
}).unwrap()
|
|
641
641
|
)
|
|
642
642
|
)).flat();
|
|
@@ -728,8 +728,8 @@ const bt = ({
|
|
|
728
728
|
] });
|
|
729
729
|
};
|
|
730
730
|
export {
|
|
731
|
-
|
|
732
|
-
|
|
731
|
+
Ae as AddonContext,
|
|
732
|
+
Ue as AddonProjectContext,
|
|
733
733
|
bt as AddonProjectProvider,
|
|
734
734
|
wt as AddonProvider,
|
|
735
735
|
$e as DeleteEntitiesContext,
|
|
@@ -761,13 +761,13 @@ export {
|
|
|
761
761
|
Me as SubtasksModulesContext,
|
|
762
762
|
yt as SubtasksModulesProvider,
|
|
763
763
|
Te as TABS_BY_SCOPE_KEY,
|
|
764
|
-
|
|
764
|
+
Ut as ThumbnailUploadContext,
|
|
765
765
|
pn as ThumbnailUploadProvider,
|
|
766
766
|
_e as URIContext,
|
|
767
767
|
Lt as URIProvider,
|
|
768
768
|
kt as URL_PARAM_ID,
|
|
769
|
-
|
|
770
|
-
|
|
769
|
+
Je as addonConfigs,
|
|
770
|
+
At as getActivityFrameLink,
|
|
771
771
|
Nt as getAutoSyncForTopic,
|
|
772
772
|
Bt as getUpdateType,
|
|
773
773
|
Gt as isDeletableEntityType,
|
|
@@ -776,16 +776,16 @@ export {
|
|
|
776
776
|
$t as matchesTopic,
|
|
777
777
|
gn as powerpackFeatureOrder,
|
|
778
778
|
ze as powerpackFeatures,
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
779
|
+
Wt as setDetailsPanelTabForScope,
|
|
780
|
+
qt as toggleSyncAll,
|
|
781
|
+
Qt as useAddonContext,
|
|
782
782
|
zt as useAddonProjectContext,
|
|
783
783
|
Vt as useAutoSyncSettings,
|
|
784
784
|
Ht as useDeleteEntitiesContext,
|
|
785
785
|
Yt as useDeleteEntitiesContextOptional,
|
|
786
|
-
|
|
786
|
+
Kt as useDetailsPanelContext,
|
|
787
787
|
re as useGlobalContext,
|
|
788
|
-
|
|
788
|
+
Jt as useMenuContext,
|
|
789
789
|
Xt as useOptionalProjectContext,
|
|
790
790
|
Zt as usePiPWindow,
|
|
791
791
|
ie as usePowerpack,
|
package/dist/hooks.es.js
CHANGED
|
@@ -2,24 +2,24 @@ import { d as V, a as G } from "./chunks/DeleteEntitiesContextInstance.es.js";
|
|
|
2
2
|
import { r as te, o as ee, p as re, q as oe, w as ne, s as se } from "./chunks/DeleteEntitiesContextInstance.es.js";
|
|
3
3
|
import { u as C } from "./chunks/useLoadModule.es.js";
|
|
4
4
|
import { loadRemote as M } from "@module-federation/enhanced/runtime";
|
|
5
|
-
import { useRef as N, useState as k, useEffect as
|
|
5
|
+
import { useRef as N, useState as k, useEffect as v, useCallback as R } from "react";
|
|
6
6
|
import b from "semver";
|
|
7
7
|
import { f as ae, u as de, a as ue, b as ce, c as le, d as me } from "./chunks/Watchers.es.js";
|
|
8
8
|
import { u as pe } from "./chunks/useActionTriggers.es.js";
|
|
9
9
|
import { b2 as T } from "./chunks/searchTerms.es.js";
|
|
10
|
-
import {
|
|
10
|
+
import { bw as K, cQ as U } from "./chunks/getUris.es.js";
|
|
11
11
|
import "primereact/confirmdialog";
|
|
12
|
-
import { jsx as
|
|
12
|
+
import { jsx as P, jsxs as j } from "react/jsx-runtime";
|
|
13
13
|
import "lodash";
|
|
14
|
-
import { toast as
|
|
14
|
+
import { toast as F } from "react-toastify";
|
|
15
15
|
import "uuid";
|
|
16
|
-
import { Button as
|
|
16
|
+
import { Button as O, Icon as $ } from "@ynput/ayon-react-components";
|
|
17
17
|
import "./chunks/ContextMenuContextInstance.es.js";
|
|
18
18
|
import "clsx";
|
|
19
19
|
import "react-dom";
|
|
20
20
|
import "react-redux";
|
|
21
21
|
import { u as ye } from "./chunks/EntityPickerDialog.es.js";
|
|
22
|
-
import { u as
|
|
22
|
+
import { u as we } from "./chunks/useQueryArgumentChangeLoading.es.js";
|
|
23
23
|
import { u as Se } from "./chunks/useGroupedPagination.es.js";
|
|
24
24
|
import "./chunks/ReviewablesSelector.es.js";
|
|
25
25
|
import "match-sorter";
|
|
@@ -47,21 +47,21 @@ import "axios";
|
|
|
47
47
|
import "./chunks/VersionUploadContextInstance.es.js";
|
|
48
48
|
import "./chunks/EntityTooltip.es.js";
|
|
49
49
|
import "./chunks/ColumnDropIndicator.styled.es.js";
|
|
50
|
-
import "react-router-dom";
|
|
51
50
|
import "@tanstack/react-table";
|
|
52
|
-
import { T as
|
|
51
|
+
import { T as Q } from "./chunks/TableSettingsFallback.es.js";
|
|
52
|
+
import "react-router-dom";
|
|
53
53
|
import "./chunks/Slicer.es.js";
|
|
54
54
|
import "primereact/splitter";
|
|
55
55
|
import "./chunks/ThumbnailSimple.es.js";
|
|
56
56
|
import "./chunks/MenuItem.es.js";
|
|
57
57
|
import A from "styled-components";
|
|
58
|
-
import { i as
|
|
58
|
+
import { i as q } from "./chunks/isHTMLElement.es.js";
|
|
59
59
|
import { u as Ee } from "./chunks/useAttributeEnums.es.js";
|
|
60
60
|
const Ht = (t, c, e) => {
|
|
61
61
|
const a = N(/* @__PURE__ */ new Set()), [m, r] = k(
|
|
62
62
|
() => h(t)
|
|
63
63
|
), [n, f] = k(c.length > 0 && !e);
|
|
64
|
-
|
|
64
|
+
v(() => {
|
|
65
65
|
e || (console.log("resetting processedModules"), a.current = /* @__PURE__ */ new Set(), r(h(t)));
|
|
66
66
|
}, [JSON.stringify(t), e]);
|
|
67
67
|
const l = async (s, d, i, p, u) => {
|
|
@@ -69,12 +69,12 @@ const Ht = (t, c, e) => {
|
|
|
69
69
|
const o = await M(`${s}/${d}`, {
|
|
70
70
|
from: "runtime"
|
|
71
71
|
});
|
|
72
|
-
|
|
72
|
+
w(i, s, d, o?.default || p, u);
|
|
73
73
|
} catch (o) {
|
|
74
74
|
throw console.error("Error loading remote module", s, d, o), o;
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
|
|
77
|
+
v(() => {
|
|
78
78
|
if (e) {
|
|
79
79
|
f(!1);
|
|
80
80
|
return;
|
|
@@ -82,7 +82,7 @@ const Ht = (t, c, e) => {
|
|
|
82
82
|
m.every((i) => !i[1].isLoaded) && a.current.size > 0 && (console.log("resetting processedModules - results were reset"), a.current = /* @__PURE__ */ new Set()), console.log("loading modules");
|
|
83
83
|
const d = [];
|
|
84
84
|
if (t.forEach((i, p) => {
|
|
85
|
-
const { addon: u, remote: o, module: g, fallback:
|
|
85
|
+
const { addon: u, remote: o, module: g, fallback: L, minVersion: y } = i;
|
|
86
86
|
if (!u || !o || !g) {
|
|
87
87
|
console.log("Invalid module spec", i);
|
|
88
88
|
return;
|
|
@@ -108,7 +108,7 @@ const Ht = (t, c, e) => {
|
|
|
108
108
|
u,
|
|
109
109
|
o,
|
|
110
110
|
g,
|
|
111
|
-
|
|
111
|
+
L,
|
|
112
112
|
y,
|
|
113
113
|
E.addonVersion
|
|
114
114
|
);
|
|
@@ -118,7 +118,7 @@ const Ht = (t, c, e) => {
|
|
|
118
118
|
console.log("Module not found", { addon: u, remote: o, module: g });
|
|
119
119
|
return;
|
|
120
120
|
}
|
|
121
|
-
d.push(l(o, g, u,
|
|
121
|
+
d.push(l(o, g, u, L, y));
|
|
122
122
|
}), !d.length) {
|
|
123
123
|
f(!1);
|
|
124
124
|
return;
|
|
@@ -145,8 +145,8 @@ const Ht = (t, c, e) => {
|
|
|
145
145
|
);
|
|
146
146
|
}
|
|
147
147
|
function S(s, d, i, p, u, o, g) {
|
|
148
|
-
r((
|
|
149
|
-
const y = [...
|
|
148
|
+
r((L) => {
|
|
149
|
+
const y = [...L];
|
|
150
150
|
return s >= 0 && s < y.length && (y[s] = [
|
|
151
151
|
u,
|
|
152
152
|
{
|
|
@@ -163,12 +163,12 @@ const Ht = (t, c, e) => {
|
|
|
163
163
|
]), y;
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function w(s, d, i, p, u) {
|
|
167
167
|
r((o) => {
|
|
168
|
-
const g = [...o],
|
|
168
|
+
const g = [...o], L = t.findIndex(
|
|
169
169
|
(y) => y.addon === s && y.remote === d && y.module === i
|
|
170
170
|
);
|
|
171
|
-
return
|
|
171
|
+
return L >= 0 && L < g.length && (g[L] = [
|
|
172
172
|
p,
|
|
173
173
|
{
|
|
174
174
|
isLoaded: !0,
|
|
@@ -193,11 +193,11 @@ const Ht = (t, c, e) => {
|
|
|
193
193
|
try {
|
|
194
194
|
if (!e?.name) throw { data: { detail: "User not found" } };
|
|
195
195
|
let h = { ...a };
|
|
196
|
-
const S = (
|
|
197
|
-
if (s.length === 0) return { ...
|
|
198
|
-
const [i, ...p] = s, u =
|
|
196
|
+
const S = (w, s, d) => {
|
|
197
|
+
if (s.length === 0) return { ...w, ...d };
|
|
198
|
+
const [i, ...p] = s, u = w?.[i] || {};
|
|
199
199
|
return {
|
|
200
|
-
...
|
|
200
|
+
...w,
|
|
201
201
|
[i]: S(u, p, d)
|
|
202
202
|
};
|
|
203
203
|
};
|
|
@@ -208,7 +208,7 @@ const Ht = (t, c, e) => {
|
|
|
208
208
|
disableInvalidations: !0
|
|
209
209
|
}).unwrap();
|
|
210
210
|
} catch (h) {
|
|
211
|
-
console.error(h),
|
|
211
|
+
console.error(h), F.error(h.data?.detail);
|
|
212
212
|
}
|
|
213
213
|
}, { isSuccess: !0 }];
|
|
214
214
|
}, Wt = ({ groupBy: t, projectName: c, entityType: e }) => {
|
|
@@ -226,15 +226,15 @@ const Ht = (t, c, e) => {
|
|
|
226
226
|
align-items: center;
|
|
227
227
|
padding: 0;
|
|
228
228
|
margin: 0;
|
|
229
|
-
`, D = A(
|
|
229
|
+
`, D = A(O)`
|
|
230
230
|
width: 100%;
|
|
231
231
|
justify-content: start;
|
|
232
232
|
`, H = ({
|
|
233
233
|
requiredVersion: t,
|
|
234
234
|
fields: c
|
|
235
|
-
}) => /* @__PURE__ */
|
|
235
|
+
}) => /* @__PURE__ */ P(Q, { feature: "groupAttributes", requiredVersion: t, children: c.map((e) => /* @__PURE__ */ P(z, { children: /* @__PURE__ */ j(D, { variant: "text", icon: e.icon, children: [
|
|
236
236
|
e.label,
|
|
237
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ P($, { icon: "bolt", style: { marginLeft: "auto" } })
|
|
238
238
|
] }) }, e.value)) }), Bt = () => {
|
|
239
239
|
const { powerLicense: t } = G(), [c, { outdated: e, isLoading: a }] = C({
|
|
240
240
|
addon: "powerpack",
|
|
@@ -258,20 +258,20 @@ function Xt({
|
|
|
258
258
|
onNavigate: a,
|
|
259
259
|
enabled: m = !0
|
|
260
260
|
}) {
|
|
261
|
-
|
|
261
|
+
v(() => {
|
|
262
262
|
if (!m || t.length <= 1) return;
|
|
263
263
|
const r = (n) => {
|
|
264
264
|
const f = n.key.length === 1 ? n.key.toLowerCase() : n.key;
|
|
265
|
-
if (!J.includes(f) || n.metaKey || n.ctrlKey || n.altKey ||
|
|
265
|
+
if (!J.includes(f) || n.metaKey || n.ctrlKey || n.altKey || q(n.target) && (n.target.tagName === "INPUT" || n.target.tagName === "TEXTAREA" || n.target.isContentEditable))
|
|
266
266
|
return;
|
|
267
|
-
const S = t.findIndex(({ fileId: s }) => c.includes(s)) + (f === "w" ? -1 : 1),
|
|
268
|
-
|
|
267
|
+
const S = t.findIndex(({ fileId: s }) => c.includes(s)) + (f === "w" ? -1 : 1), w = t[S < 0 ? t.length - 1 : S % t.length];
|
|
268
|
+
w && (e?.(w.fileId), a?.(w));
|
|
269
269
|
};
|
|
270
270
|
return window.addEventListener("keydown", r), () => window.removeEventListener("keydown", r);
|
|
271
271
|
}, [m, t, c, e, a]);
|
|
272
272
|
}
|
|
273
273
|
const Yt = () => {
|
|
274
|
-
const { data: t, isLoading: c, isError: e } =
|
|
274
|
+
const { data: t, isLoading: c, isError: e } = U({});
|
|
275
275
|
return {
|
|
276
276
|
getProductionAddon: R(
|
|
277
277
|
(m, r) => {
|
|
@@ -310,7 +310,7 @@ export {
|
|
|
310
310
|
C as useLoadModule,
|
|
311
311
|
Ht as useLoadModules,
|
|
312
312
|
re as useLocalStorage,
|
|
313
|
-
|
|
313
|
+
we as useQueryArgumentChangeLoading,
|
|
314
314
|
Xt as useReviewablesKeyboardNavigation,
|
|
315
315
|
le as useScopedStatuses,
|
|
316
316
|
me as useScopedTypes,
|
package/dist/index.es.js
CHANGED
|
@@ -42,9 +42,9 @@ import "axios";
|
|
|
42
42
|
import "./chunks/VersionUploadContextInstance.es.js";
|
|
43
43
|
import "./chunks/EntityTooltip.es.js";
|
|
44
44
|
import "./chunks/ColumnDropIndicator.styled.es.js";
|
|
45
|
-
import "react-router-dom";
|
|
46
45
|
import "@tanstack/react-table";
|
|
47
46
|
import "./chunks/EntityPickerDialog.es.js";
|
|
47
|
+
import "react-router-dom";
|
|
48
48
|
import "./chunks/Slicer.es.js";
|
|
49
49
|
import "primereact/splitter";
|
|
50
50
|
import { T as mr } from "./chunks/ThumbnailSimple.es.js";
|
|
@@ -110,7 +110,7 @@ declare type PowerpackDialogType = {
|
|
|
110
110
|
icon?: string;
|
|
111
111
|
};
|
|
112
112
|
|
|
113
|
-
declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries';
|
|
113
|
+
declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries' | 'entityLinks';
|
|
114
114
|
|
|
115
115
|
export declare function useContextMenu(): ContextMenuContextType;
|
|
116
116
|
|
package/dist/types/Feed.d.ts
CHANGED
|
@@ -191,7 +191,7 @@ export declare type MimeTypeDefinition = {
|
|
|
191
191
|
callback?: (file: any) => void;
|
|
192
192
|
};
|
|
193
193
|
|
|
194
|
-
declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries';
|
|
194
|
+
declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries' | 'entityLinks';
|
|
195
195
|
|
|
196
196
|
declare type ProductSuggestionItem = {
|
|
197
197
|
/** The date and time when the suggested entity was created */
|
|
@@ -210,7 +210,7 @@ declare type QueryCondition = {
|
|
|
210
210
|
/** Value to compare against */
|
|
211
211
|
value?: string | number | number | boolean | string[] | number[] | number[];
|
|
212
212
|
/** Comparison operator */
|
|
213
|
-
operator?: 'eq' | 'like' | 'lt' | 'gt' | 'lte' | 'gte' | 'ne' | 'isnull' | 'notnull' | 'in' | 'notin' | 'includes' | 'excludes' | 'includesall' | 'excludesall' | 'includesany' | 'excludesany';
|
|
213
|
+
operator?: 'eq' | 'like' | 'notlike' | 'lt' | 'gt' | 'lte' | 'gte' | 'ne' | 'isnull' | 'notnull' | 'in' | 'notin' | 'includes' | 'excludes' | 'includesall' | 'excludesall' | 'includesany' | 'excludesany';
|
|
214
214
|
};
|
|
215
215
|
|
|
216
216
|
declare type QueryFilter = {
|
|
@@ -259,7 +259,7 @@ export declare interface ListTableWidgetRenderContext<TData extends RowData> {
|
|
|
259
259
|
|
|
260
260
|
export declare type ListTableWidgetRenderer<TData extends RowData> = (context: ListTableWidgetRenderContext<TData>) => React.ReactNode;
|
|
261
261
|
|
|
262
|
-
declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries';
|
|
262
|
+
declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries' | 'entityLinks';
|
|
263
263
|
|
|
264
264
|
export declare const renderListTableFallbackValue: (value: unknown) => string;
|
|
265
265
|
|
|
@@ -1336,8 +1336,6 @@ export declare const getEntitiesLabelFromScopes: (scopes?: string[]) => string;
|
|
|
1336
1336
|
|
|
1337
1337
|
export declare const getEntityDataById: <T extends "folder" | "task" | "product" | "version">(id: string, entitiesMap: EntitiesMap) => EMapResult<T> | undefined;
|
|
1338
1338
|
|
|
1339
|
-
export declare const getEntityPath: (entityId: string, entitiesMap: EntitiesMap) => string;
|
|
1340
|
-
|
|
1341
1339
|
export declare const getEntityViewierIds: (entity: EntityMap) => {
|
|
1342
1340
|
[id: string]: string;
|
|
1343
1341
|
};
|
|
@@ -2334,7 +2332,7 @@ declare type PowerpackDialogType = {
|
|
|
2334
2332
|
icon?: string;
|
|
2335
2333
|
};
|
|
2336
2334
|
|
|
2337
|
-
declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries';
|
|
2335
|
+
declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries' | 'entityLinks';
|
|
2338
2336
|
|
|
2339
2337
|
export declare const processFieldValue: (value: string, fieldValueType: "string" | "number" | "boolean" | "array") => any;
|
|
2340
2338
|
|
|
@@ -2847,7 +2845,7 @@ export declare type QueryCondition = {
|
|
|
2847
2845
|
/** Value to compare against */
|
|
2848
2846
|
value?: string | number | number | string[] | number[] | number[];
|
|
2849
2847
|
/** Comparison operator */
|
|
2850
|
-
operator?: 'eq' | 'like' | 'lt' | 'gt' | 'lte' | 'gte' | 'ne' | 'isnull' | 'notnull' | 'in' | 'notin' | 'includes' | 'excludes' | 'includesall' | 'excludesall' | 'includesany' | 'excludesany';
|
|
2848
|
+
operator?: 'eq' | 'like' | 'notlike' | 'lt' | 'gt' | 'lte' | 'gte' | 'ne' | 'isnull' | 'notnull' | 'in' | 'notin' | 'includes' | 'excludes' | 'includesall' | 'excludesall' | 'includesany' | 'excludesany';
|
|
2851
2849
|
};
|
|
2852
2850
|
|
|
2853
2851
|
declare type QueryCondition_2 = {
|
|
@@ -2856,7 +2854,7 @@ declare type QueryCondition_2 = {
|
|
|
2856
2854
|
/** Value to compare against */
|
|
2857
2855
|
value?: string | number | number | string[] | number[] | number[];
|
|
2858
2856
|
/** Comparison operator */
|
|
2859
|
-
operator?: 'eq' | 'like' | 'lt' | 'gt' | 'lte' | 'gte' | 'ne' | 'isnull' | 'notnull' | 'in' | 'notin' | 'includes' | 'excludes' | 'includesall' | 'excludesall' | 'includesany' | 'excludesany';
|
|
2857
|
+
operator?: 'eq' | 'like' | 'notlike' | 'lt' | 'gt' | 'lte' | 'gte' | 'ne' | 'isnull' | 'notnull' | 'in' | 'notin' | 'includes' | 'excludes' | 'includesall' | 'excludesall' | 'includesany' | 'excludesany';
|
|
2860
2858
|
};
|
|
2861
2859
|
|
|
2862
2860
|
declare type QueryCondition_3 = {
|
|
@@ -2865,7 +2863,7 @@ declare type QueryCondition_3 = {
|
|
|
2865
2863
|
/** Value to compare against */
|
|
2866
2864
|
value?: string | number | number | boolean | string[] | number[] | number[];
|
|
2867
2865
|
/** Comparison operator */
|
|
2868
|
-
operator?: 'eq' | 'like' | 'lt' | 'gt' | 'lte' | 'gte' | 'ne' | 'isnull' | 'notnull' | 'in' | 'notin' | 'includes' | 'excludes' | 'includesall' | 'excludesall' | 'includesany' | 'excludesany';
|
|
2866
|
+
operator?: 'eq' | 'like' | 'notlike' | 'lt' | 'gt' | 'lte' | 'gte' | 'ne' | 'isnull' | 'notnull' | 'in' | 'notin' | 'includes' | 'excludes' | 'includesall' | 'excludesall' | 'includesany' | 'excludesany';
|
|
2869
2867
|
};
|
|
2870
2868
|
|
|
2871
2869
|
export declare type QueryFilter = {
|
|
@@ -3694,6 +3692,9 @@ declare interface UseHistoryReturn {
|
|
|
3694
3692
|
removeHistoryEntries: (count: number) => void;
|
|
3695
3693
|
}
|
|
3696
3694
|
|
|
3695
|
+
/** Like useCellEditing, but returns undefined outside of a CellEditingProvider. */
|
|
3696
|
+
export declare const useOptionalCellEditing: () => CellEditingContextType | undefined;
|
|
3697
|
+
|
|
3697
3698
|
export declare const useOptionalProjectTableContext: () => ProjectTableContextType | undefined;
|
|
3698
3699
|
|
|
3699
3700
|
export declare const useOptionalSelectedRowsContext: () => SelectedRowsContextType | undefined;
|
|
@@ -78,7 +78,7 @@ export declare const HeaderButton: IStyledComponentBase<"web", FastOmit<Omit< Bu
|
|
|
78
78
|
ref?: ((instance: HTMLButtonElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLButtonElement> | null | undefined;
|
|
79
79
|
}, never>>> & string & Omit< ForwardRefExoticComponent< ButtonProps & RefAttributes<HTMLButtonElement>>, keyof Component<any, {}, any>>;
|
|
80
80
|
|
|
81
|
-
declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries';
|
|
81
|
+
declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries' | 'entityLinks';
|
|
82
82
|
|
|
83
83
|
export declare const RowExpander: ({ isRowExpandable, isRowExpanded, enableNonFolderIndent, isTableExpandable, onExpandClick, }: RowExpanderProps) => false | JSX_2.Element | undefined;
|
|
84
84
|
|
package/dist/types/Slicer.d.ts
CHANGED
|
@@ -261,7 +261,7 @@ declare type LinkTypeModel_2 = {
|
|
|
261
261
|
|
|
262
262
|
declare type ListsSettings = {
|
|
263
263
|
rowHeight?: number;
|
|
264
|
-
sortBy?: string;
|
|
264
|
+
sortBy?: string | string[];
|
|
265
265
|
sortDesc?: boolean;
|
|
266
266
|
filter?: QueryFilter_5;
|
|
267
267
|
columns?: ColumnItemModel[];
|
|
@@ -309,7 +309,7 @@ declare type OverviewSettings = {
|
|
|
309
309
|
groupBy?: string;
|
|
310
310
|
groupSortByDesc?: boolean;
|
|
311
311
|
showEmptyGroups?: boolean;
|
|
312
|
-
sortBy?: string;
|
|
312
|
+
sortBy?: string | string[];
|
|
313
313
|
sortDesc?: boolean;
|
|
314
314
|
filter?: QueryFilter_5;
|
|
315
315
|
folderFilter?: QueryFilter_5;
|
|
@@ -343,7 +343,7 @@ export declare interface PinnedSlice {
|
|
|
343
343
|
expanded: ExpandedState;
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries';
|
|
346
|
+
declare type PowerpackFeature = 'slicer' | 'annotations' | 'releases' | 'advancedFilters' | 'listAttributes' | 'listFolders' | 'listAccess' | 'groupAttributes' | 'sharedViews' | 'commentCategories' | 'projectFolders' | 'columnSummaries' | 'entityLinks';
|
|
347
347
|
|
|
348
348
|
declare type ProductType = {
|
|
349
349
|
__typename?: 'ProductType';
|
|
@@ -411,7 +411,7 @@ declare type QueryCondition_5 = {
|
|
|
411
411
|
/** Value to compare against */
|
|
412
412
|
value?: string | number | number | boolean | string[] | number[] | number[];
|
|
413
413
|
/** Comparison operator */
|
|
414
|
-
operator?: 'eq' | 'like' | 'lt' | 'gt' | 'lte' | 'gte' | 'ne' | 'isnull' | 'notnull' | 'in' | 'notin' | 'includes' | 'excludes' | 'includesall' | 'excludesall' | 'includesany' | 'excludesany';
|
|
414
|
+
operator?: 'eq' | 'like' | 'notlike' | 'lt' | 'gt' | 'lte' | 'gte' | 'ne' | 'isnull' | 'notnull' | 'in' | 'notin' | 'includes' | 'excludes' | 'includesall' | 'excludesall' | 'includesany' | 'excludesany';
|
|
415
415
|
};
|
|
416
416
|
|
|
417
417
|
declare type QueryFilter_5 = {
|
|
@@ -425,7 +425,7 @@ export declare const resolvePanelLayout: (stored: SlicerPanelHeights, panelIds:
|
|
|
425
425
|
|
|
426
426
|
declare type ReviewsSettings = {
|
|
427
427
|
rowHeight?: number;
|
|
428
|
-
sortBy?: string;
|
|
428
|
+
sortBy?: string | string[];
|
|
429
429
|
sortDesc?: boolean;
|
|
430
430
|
filter?: QueryFilter_5;
|
|
431
431
|
columns?: ColumnItemModel[];
|
|
@@ -886,7 +886,7 @@ declare type VersionsSettings = {
|
|
|
886
886
|
groupSortByDesc?: boolean;
|
|
887
887
|
showEmptyGroups?: boolean;
|
|
888
888
|
latestPerFolder?: boolean;
|
|
889
|
-
sortBy?: string;
|
|
889
|
+
sortBy?: string | string[];
|
|
890
890
|
sortDesc?: boolean;
|
|
891
891
|
filter?: QueryFilter_5;
|
|
892
892
|
columns?: ColumnItemModel[];
|