@ynput/ayon-frontend-shared 0.9.0 → 0.10.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 +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 +77 -77
- 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 +1069 -1057
- 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/DetailsPanel.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import E, { keyframes as Mt } from "styled-components";
|
|
|
5
5
|
import { bB as _t, bJ as Ht } from "./chunks/searchTerms.es.js";
|
|
6
6
|
import { br as Bt, bP as Wt, c4 as zt, cA as ot, bz as it, v as Gt, bT as Qt, cf as qt } from "./chunks/getUris.es.js";
|
|
7
7
|
import "primereact/confirmdialog";
|
|
8
|
-
import { o as Kt, y as Jt, H as
|
|
8
|
+
import { o as Kt, y as Jt, H as Yt, G as Xt, z as Zt, w as rt, A as en, B as tn, E as nn, I as sn, J as an, K as on, N as rn, W as ln, s as cn } from "./chunks/Watchers.es.js";
|
|
9
9
|
import { O as Ga, Q as Qa, V as qa, X as Ka, T as Ja } from "./chunks/Watchers.es.js";
|
|
10
10
|
import { E as dn, R as un, a as pn } from "./chunks/EntityPath.es.js";
|
|
11
11
|
import { union as ke, upperFirst as lt } from "lodash";
|
|
@@ -15,7 +15,7 @@ import { a as mn, b as hn, A as qe, e as gn } from "./chunks/activeEntities.es.j
|
|
|
15
15
|
import "axios";
|
|
16
16
|
import "@module-federation/enhanced/runtime";
|
|
17
17
|
import { menuItemsAt as Ne } from "@ynput/ayon-addon/host";
|
|
18
|
-
import { m as se, u as fn, T as bn,
|
|
18
|
+
import { m as se, u as fn, T as bn, ac as vn, a3 as yn, ae as kn, a2 as Ke, z as wn, ad as xn, Y as Sn } from "./chunks/TableExportContextInstance.es.js";
|
|
19
19
|
import "semver";
|
|
20
20
|
import { T as Cn } from "./chunks/ThumbnailUploaderContext.es.js";
|
|
21
21
|
import "react-dom";
|
|
@@ -23,7 +23,7 @@ import { u as Tn, P as ct } from "./chunks/ProjectFoldersContext.es.js";
|
|
|
23
23
|
import "react-router-dom";
|
|
24
24
|
import be from "clsx";
|
|
25
25
|
import { A as Nn } from "./chunks/Actions.es.js";
|
|
26
|
-
import {
|
|
26
|
+
import { f as In, n as En, E as Pn, q as Dn } from "./chunks/MetaWidget.es.js";
|
|
27
27
|
import "./chunks/ContextMenuContextInstance.es.js";
|
|
28
28
|
import { useContributions as dt, prefetchPiece as Le, entityUrl as An, runContribution as Je, ContributionView as Fn } from "@ynput/ayon-addon";
|
|
29
29
|
import { g as Fe } from "./chunks/getEntityTypeIcon.es.js";
|
|
@@ -47,7 +47,7 @@ import "react-redux";
|
|
|
47
47
|
import "custom-protocol-check";
|
|
48
48
|
import "./chunks/SimpleForm.es.js";
|
|
49
49
|
import { Dialog as Jn } from "primereact/dialog";
|
|
50
|
-
function
|
|
50
|
+
function Yn({
|
|
51
51
|
entityData: e,
|
|
52
52
|
project: n,
|
|
53
53
|
activeEntityType: t,
|
|
@@ -63,7 +63,7 @@ function Xn({
|
|
|
63
63
|
l !== u && window.history.replaceState(window.history.state, "", l);
|
|
64
64
|
}, [e, n, t, o]);
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const Xn = E(nt)`
|
|
67
67
|
display: flex;
|
|
68
68
|
justify-content: space-between;
|
|
69
69
|
align-items: flex-start;
|
|
@@ -332,10 +332,10 @@ const Yn = E(nt)`
|
|
|
332
332
|
), F = w(() => t.map((d) => d.status), [t]), pe = w(() => t.map((d) => d.attrib?.priority), [t]), K = w(() => t.map((d) => d.tags), [t]), me = w(
|
|
333
333
|
() => r.reduce((d, P) => (d[P.name] = P, d), {}),
|
|
334
334
|
[r]
|
|
335
|
-
),
|
|
335
|
+
), Y = w(() => ke(...K), [K]), he = t.every((d) => d.projectName === R?.projectName), j = In(
|
|
336
336
|
he ? R?.projectName : void 0,
|
|
337
337
|
r
|
|
338
|
-
), z = t.length > 1,
|
|
338
|
+
), z = t.length > 1, X = w(() => Qe(K), [K]), xe = w(
|
|
339
339
|
() => Qe(t.map((d) => d.task?.assignees || [])),
|
|
340
340
|
[t]
|
|
341
341
|
), ge = !z && !!R?.hasReviewables, ve = ue.length === 1, { attribAccess: S, updateEntity: fe } = Jt({
|
|
@@ -367,7 +367,7 @@ const Yn = E(nt)`
|
|
|
367
367
|
P.length && Ce.push(...P.map((W) => ({ name: W, fullName: W })));
|
|
368
368
|
}
|
|
369
369
|
const { title: ee, subTitle: M } = gt(t, e), te = y?.length !== 0 && y?.find((d) => d.name === F[0]);
|
|
370
|
-
return /* @__PURE__ */ i(
|
|
370
|
+
return /* @__PURE__ */ i(Yt, { children: /* @__PURE__ */ i(
|
|
371
371
|
dn,
|
|
372
372
|
{
|
|
373
373
|
entities: t,
|
|
@@ -376,7 +376,7 @@ const Yn = E(nt)`
|
|
|
376
376
|
thumbnailInputRef: V,
|
|
377
377
|
versionsInputRef: U,
|
|
378
378
|
onVersionCreated: (d) => N?.(d, "version"),
|
|
379
|
-
children: /* @__PURE__ */ x(
|
|
379
|
+
children: /* @__PURE__ */ x(Xt, { className: be("details-panel-header", { isCompact: u }), children: [
|
|
380
380
|
/* @__PURE__ */ x(
|
|
381
381
|
Zt,
|
|
382
382
|
{
|
|
@@ -410,9 +410,9 @@ const Yn = E(nt)`
|
|
|
410
410
|
editable: !0,
|
|
411
411
|
editor: !0,
|
|
412
412
|
onChange: (d) => {
|
|
413
|
-
j?.addTags(d.filter((P) => !
|
|
413
|
+
j?.addTags(d.filter((P) => !Y.includes(P))), oe("tags", d);
|
|
414
414
|
},
|
|
415
|
-
mixedCounts: z ?
|
|
415
|
+
mixedCounts: z ? X : void 0,
|
|
416
416
|
mixedTotal: t.length,
|
|
417
417
|
mixedLabel: `${e}s`,
|
|
418
418
|
onMixedChange: (d) => Z("tags", d),
|
|
@@ -534,7 +534,7 @@ const Yn = E(nt)`
|
|
|
534
534
|
|
|
535
535
|
height: 100%;
|
|
536
536
|
overflow: hidden;
|
|
537
|
-
`,
|
|
537
|
+
`, Ye = E.div`
|
|
538
538
|
position: relative;
|
|
539
539
|
flex: 1;
|
|
540
540
|
display: flex;
|
|
@@ -557,7 +557,7 @@ const Yn = E(nt)`
|
|
|
557
557
|
if (!o) return null;
|
|
558
558
|
let s = "Reviewables";
|
|
559
559
|
return e.length > 1 && (s += ` (${o.name})`), e.some((a) => a.entityType !== "version") ? null : /* @__PURE__ */ x(ds, { children: [
|
|
560
|
-
/* @__PURE__ */ x(
|
|
560
|
+
/* @__PURE__ */ x(Ye, { children: [
|
|
561
561
|
/* @__PURE__ */ i("h4", { children: s }),
|
|
562
562
|
/* @__PURE__ */ i(
|
|
563
563
|
un,
|
|
@@ -570,7 +570,7 @@ const Yn = E(nt)`
|
|
|
570
570
|
}
|
|
571
571
|
)
|
|
572
572
|
] }),
|
|
573
|
-
/* @__PURE__ */ x(
|
|
573
|
+
/* @__PURE__ */ x(Ye, { children: [
|
|
574
574
|
/* @__PURE__ */ i("h4", { children: "Representations" }),
|
|
575
575
|
/* @__PURE__ */ i(Rn, { entities: e })
|
|
576
576
|
] })
|
|
@@ -723,7 +723,7 @@ const Yn = E(nt)`
|
|
|
723
723
|
display: flex;
|
|
724
724
|
flex-direction: column;
|
|
725
725
|
gap: 16px;
|
|
726
|
-
`,
|
|
726
|
+
`, Xe = E.div`
|
|
727
727
|
display: flex;
|
|
728
728
|
flex-direction: column;
|
|
729
729
|
gap: 6px;
|
|
@@ -765,14 +765,14 @@ const Yn = E(nt)`
|
|
|
765
765
|
Hn(r, !0), o();
|
|
766
766
|
};
|
|
767
767
|
return /* @__PURE__ */ i(jt, { isOpen: !0, onClose: o, size: "sm", header: "Share", children: /* @__PURE__ */ x(bs, { children: [
|
|
768
|
-
/* @__PURE__ */ x(
|
|
768
|
+
/* @__PURE__ */ x(Xe, { children: [
|
|
769
769
|
/* @__PURE__ */ i(Ze, { children: "Link" }),
|
|
770
770
|
/* @__PURE__ */ x(et, { type: "button", onClick: () => a(e), "aria-label": "Copy link", children: [
|
|
771
771
|
/* @__PURE__ */ i("span", { className: "value", children: e }),
|
|
772
772
|
/* @__PURE__ */ i(Ie, { icon: "content_copy" })
|
|
773
773
|
] })
|
|
774
774
|
] }),
|
|
775
|
-
/* @__PURE__ */ x(
|
|
775
|
+
/* @__PURE__ */ x(Xe, { children: [
|
|
776
776
|
/* @__PURE__ */ i(Ze, { children: "Markdown Link" }),
|
|
777
777
|
/* @__PURE__ */ x(et, { type: "button", onClick: () => a(s), "aria-label": "Copy markdown link", children: [
|
|
778
778
|
/* @__PURE__ */ i("span", { className: "value", children: s }),
|
|
@@ -826,7 +826,7 @@ const Yn = E(nt)`
|
|
|
826
826
|
};
|
|
827
827
|
}).filter((B) => B !== null), [a, n, e, s]), pe = !!ue && F.length > 0, K = () => {
|
|
828
828
|
C(!1), ue?.deleteEntities(F);
|
|
829
|
-
}, { contributions: me } = dt("detailsPanel.menuItem"),
|
|
829
|
+
}, { contributions: me } = dt("detailsPanel.menuItem"), Y = w(
|
|
830
830
|
() => me.filter(
|
|
831
831
|
(k) => !k.entityTypes?.length || k.entityTypes.includes(e)
|
|
832
832
|
),
|
|
@@ -851,23 +851,23 @@ const Yn = E(nt)`
|
|
|
851
851
|
[he]
|
|
852
852
|
), z = w(
|
|
853
853
|
() => [
|
|
854
|
-
...Ne(
|
|
855
|
-
...Ne(
|
|
854
|
+
...Ne(Y, "top"),
|
|
855
|
+
...Ne(Y, "bottom")
|
|
856
856
|
].filter((k) => k.pinned),
|
|
857
|
-
[
|
|
858
|
-
),
|
|
859
|
-
() =>
|
|
860
|
-
[
|
|
857
|
+
[Y]
|
|
858
|
+
), X = w(
|
|
859
|
+
() => Y.filter((k) => !k.pinned),
|
|
860
|
+
[Y]
|
|
861
861
|
), xe = w(
|
|
862
|
-
() => Ne(
|
|
863
|
-
[
|
|
862
|
+
() => Ne(X, "top").map(j),
|
|
863
|
+
[X, j]
|
|
864
864
|
), ge = w(
|
|
865
|
-
() => Ne(
|
|
866
|
-
[
|
|
865
|
+
() => Ne(X, "bottom").map(j),
|
|
866
|
+
[X, j]
|
|
867
867
|
);
|
|
868
868
|
Q(() => {
|
|
869
|
-
A &&
|
|
870
|
-
}, [A,
|
|
869
|
+
A && X.forEach((k) => Le(k.run));
|
|
870
|
+
}, [A, X]);
|
|
871
871
|
const { items: ve } = fs({
|
|
872
872
|
entityType: e,
|
|
873
873
|
entityId: n,
|
|
@@ -1633,9 +1633,9 @@ const Yn = E(nt)`
|
|
|
1633
1633
|
setEntities: pe,
|
|
1634
1634
|
slideOut: K,
|
|
1635
1635
|
useSearchParams: me,
|
|
1636
|
-
SubtasksManager:
|
|
1636
|
+
SubtasksManager: Y,
|
|
1637
1637
|
useNavigate: he
|
|
1638
|
-
} = se(), { currentTab: j, setTab: z, isFeed:
|
|
1638
|
+
} = se(), { currentTab: j, setTab: z, isFeed: X } = kn(N), [xe, ge] = me(), ve = le(!1), S = F?.entityType ?? e, fe = F?.entities ?? o, k = F?.entitySubTypes ?? n, B = F?.entities ? [] : t, _ = F?.entities ? F.entities.map((p) => p.projectName) : m;
|
|
1639
1639
|
hn(
|
|
1640
1640
|
S ? fe.map((p) => ({ ...p, entityType: S })) : [],
|
|
1641
1641
|
h ? qe.slideOut : qe.detailsPanel
|
|
@@ -1708,7 +1708,7 @@ const Yn = E(nt)`
|
|
|
1708
1708
|
}), () => {
|
|
1709
1709
|
He("");
|
|
1710
1710
|
};
|
|
1711
|
-
}, [M, _, S]),
|
|
1711
|
+
}, [M, _, S]), Yn({
|
|
1712
1712
|
entityData: Te,
|
|
1713
1713
|
project: Pe,
|
|
1714
1714
|
activeEntityType: S,
|
|
@@ -1784,7 +1784,7 @@ const Yn = E(nt)`
|
|
|
1784
1784
|
versionsInputRef: We,
|
|
1785
1785
|
canUploadVersion: It,
|
|
1786
1786
|
children: /* @__PURE__ */ x(ts, { className: "details-panel", children: [
|
|
1787
|
-
/* @__PURE__ */ x(
|
|
1787
|
+
/* @__PURE__ */ x(Xn, { children: [
|
|
1788
1788
|
/* @__PURE__ */ i(
|
|
1789
1789
|
pn,
|
|
1790
1790
|
{
|
|
@@ -1877,7 +1877,7 @@ const Yn = E(nt)`
|
|
|
1877
1877
|
}
|
|
1878
1878
|
),
|
|
1879
1879
|
/* @__PURE__ */ x(ct, { projectName: H, children: [
|
|
1880
|
-
|
|
1880
|
+
X && !d && /* @__PURE__ */ i(
|
|
1881
1881
|
bt,
|
|
1882
1882
|
{
|
|
1883
1883
|
entityType: S,
|
|
@@ -1896,7 +1896,7 @@ const Yn = E(nt)`
|
|
|
1896
1896
|
isSlideOut: h
|
|
1897
1897
|
}
|
|
1898
1898
|
),
|
|
1899
|
-
j === "subtasks" && S === "task" && G?.id &&
|
|
1899
|
+
j === "subtasks" && S === "task" && G?.id && Y && /* @__PURE__ */ i(
|
|
1900
1900
|
Vs,
|
|
1901
1901
|
{
|
|
1902
1902
|
projectName: H,
|
|
@@ -1904,7 +1904,7 @@ const Yn = E(nt)`
|
|
|
1904
1904
|
taskName: G.name,
|
|
1905
1905
|
folderId: G.folder?.id,
|
|
1906
1906
|
subtasks: G.task?.subtasks || [],
|
|
1907
|
-
SubtasksManager:
|
|
1907
|
+
SubtasksManager: Y,
|
|
1908
1908
|
useNavigate: he,
|
|
1909
1909
|
onNotFound: () => z("feed")
|
|
1910
1910
|
}
|
|
@@ -2194,9 +2194,9 @@ export {
|
|
|
2194
2194
|
Ba as DetailsPanelFloating,
|
|
2195
2195
|
Ha as DetailsPanelSlideOut,
|
|
2196
2196
|
qa as Footer,
|
|
2197
|
-
|
|
2197
|
+
Xt as Grid,
|
|
2198
2198
|
Zt as Header,
|
|
2199
|
-
|
|
2199
|
+
Yt as HeaderContainer,
|
|
2200
2200
|
Ka as LabelWrapper,
|
|
2201
2201
|
rn as PriorityEnumDropdown,
|
|
2202
2202
|
sn as ReadOnlyTags,
|