@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
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as I } from "react/jsx-runtime";
|
|
2
2
|
import { EntityCard as S } from "@ynput/ayon-react-components";
|
|
3
3
|
import U, { keyframes as W } from "styled-components";
|
|
4
4
|
import "./searchTerms.es.js";
|
|
5
|
-
import {
|
|
5
|
+
import { bJ as L } from "./getUris.es.js";
|
|
6
6
|
import "primereact/confirmdialog";
|
|
7
7
|
import "react";
|
|
8
8
|
import "@module-federation/enhanced/runtime";
|
|
9
9
|
import "@ynput/ayon-addon/host";
|
|
10
10
|
import "react-toastify";
|
|
11
|
-
import { o as Y } from "./TableExportContextInstance.es.js";
|
|
12
11
|
import "lodash";
|
|
13
|
-
import { g as
|
|
12
|
+
import { g as Y } from "./getEntityTypeIcon.es.js";
|
|
14
13
|
import "uuid";
|
|
15
|
-
import { g as
|
|
14
|
+
import { g as _ } from "./getThumbnailUrl.es.js";
|
|
16
15
|
import "axios";
|
|
16
|
+
import { k as z } from "./TableExportContextInstance.es.js";
|
|
17
17
|
import "semver";
|
|
18
18
|
import "./ContextMenuContextInstance.es.js";
|
|
19
19
|
import "clsx";
|
|
20
20
|
import "react-dom";
|
|
21
|
-
import "react-redux";
|
|
22
21
|
import "react-router-dom";
|
|
23
22
|
const F = W`
|
|
24
23
|
from {
|
|
@@ -45,20 +44,20 @@ from {
|
|
|
45
44
|
|
|
46
45
|
/* shadow */
|
|
47
46
|
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
|
|
48
|
-
`, H = ["folder", "task", "version", "workfile"],
|
|
47
|
+
`, H = ["folder", "task", "version", "workfile"], mt = ({
|
|
49
48
|
entityType: t,
|
|
50
49
|
entityId: i,
|
|
51
50
|
projectName: c,
|
|
52
|
-
pos: { left:
|
|
53
|
-
projectInfo:
|
|
51
|
+
pos: { left: e = 0, top: l = 0 } = {},
|
|
52
|
+
projectInfo: r,
|
|
54
53
|
onMouseEnter: d,
|
|
55
54
|
onMouseLeave: u
|
|
56
55
|
}) => {
|
|
57
|
-
const o =
|
|
56
|
+
const o = z(), a = c || o?.projectName, p = !!t && H.includes(t), { data: m, isFetching: f } = L(
|
|
58
57
|
{ entityType: t, entityId: i, projectName: a },
|
|
59
58
|
{ skip: !p || !i || !a }
|
|
60
59
|
), n = 220;
|
|
61
|
-
|
|
60
|
+
e + n / 2 > window.innerWidth && (e = window.innerWidth - n / 2);
|
|
62
61
|
const {
|
|
63
62
|
title: h,
|
|
64
63
|
subTitle: T,
|
|
@@ -70,23 +69,23 @@ from {
|
|
|
70
69
|
thumbnailId: b,
|
|
71
70
|
status: E,
|
|
72
71
|
thumbnailHash: P
|
|
73
|
-
} = m || {}, j =
|
|
72
|
+
} = m || {}, j = r?.taskTypes || o?.taskTypes || [], N = r?.folderTypes || o?.folderTypes || [], v = (r?.statuses || o?.statuses || []).find((s) => s.name === E), O = m ? _({
|
|
74
73
|
entityId: i || "",
|
|
75
74
|
entityType: t,
|
|
76
75
|
thumbnailHash: P,
|
|
77
76
|
thumbnailId: b,
|
|
78
77
|
projectName: a || "",
|
|
79
78
|
placeholder: "none"
|
|
80
|
-
}) : null,
|
|
79
|
+
}) : null, C = {
|
|
81
80
|
task: j.find((s) => s.name === w)?.icon,
|
|
82
81
|
folder: N.find((s) => s.name === g)?.icon,
|
|
83
82
|
version: o?.getProductType(k).icon,
|
|
84
|
-
workfile:
|
|
83
|
+
workfile: Y("workfile")
|
|
85
84
|
};
|
|
86
|
-
return p ? /* @__PURE__ */
|
|
85
|
+
return p ? /* @__PURE__ */ I(
|
|
87
86
|
G,
|
|
88
87
|
{
|
|
89
|
-
style: { left:
|
|
88
|
+
style: { left: e, top: l, maxWidth: n },
|
|
90
89
|
onMouseEnter: d,
|
|
91
90
|
onMouseLeave: u,
|
|
92
91
|
title: h,
|
|
@@ -98,12 +97,12 @@ from {
|
|
|
98
97
|
hidePriority: !0,
|
|
99
98
|
isLoading: f,
|
|
100
99
|
loadingSections: ["header", "title", "users", "status"],
|
|
101
|
-
titleIcon:
|
|
102
|
-
imageUrl:
|
|
100
|
+
titleIcon: C[t || ""],
|
|
101
|
+
imageUrl: O || void 0
|
|
103
102
|
}
|
|
104
103
|
) : null;
|
|
105
104
|
};
|
|
106
105
|
export {
|
|
107
|
-
|
|
106
|
+
mt as E,
|
|
108
107
|
H as a
|
|
109
108
|
};
|