@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,25 +1,37 @@
|
|
|
1
|
-
const
|
|
2
|
-
projectName:
|
|
3
|
-
entityType:
|
|
1
|
+
const c = ({
|
|
2
|
+
projectName: s,
|
|
3
|
+
entityType: r,
|
|
4
4
|
entityId: n,
|
|
5
|
-
thumbnailId:
|
|
6
|
-
thumbnailHash:
|
|
7
|
-
placeholder:
|
|
5
|
+
thumbnailId: t,
|
|
6
|
+
thumbnailHash: l,
|
|
7
|
+
placeholder: u
|
|
8
8
|
}) => {
|
|
9
|
-
if (!
|
|
10
|
-
if (
|
|
11
|
-
return
|
|
12
|
-
if (
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
return n &&
|
|
17
|
-
},
|
|
18
|
-
if (!
|
|
19
|
-
const n =
|
|
20
|
-
return `/api/projects/${
|
|
21
|
-
}
|
|
9
|
+
if (!s) return null;
|
|
10
|
+
if (r === "project")
|
|
11
|
+
return a(s, l);
|
|
12
|
+
if (!t && (!n || !r)) return null;
|
|
13
|
+
const i = new URLSearchParams();
|
|
14
|
+
l && i.set("hash", l), u && i.set("placeholder", u);
|
|
15
|
+
const $ = i.toString() ? `?${i.toString()}` : "";
|
|
16
|
+
return n && r ? `/api/projects/${s}/${r}s/${n}/thumbnail${$}` : `/api/projects/${s}/thumbnails/${t}${$}`;
|
|
17
|
+
}, a = (s, r) => {
|
|
18
|
+
if (!s) return null;
|
|
19
|
+
const n = r ? `?hash=${r}` : "";
|
|
20
|
+
return `/api/projects/${s}/thumbnail${n}`;
|
|
21
|
+
}, o = ["folder", "task", "version"], f = ({
|
|
22
|
+
projectName: s,
|
|
23
|
+
entityType: r,
|
|
24
|
+
entityId: n,
|
|
25
|
+
thumbnailHash: t
|
|
26
|
+
}) => {
|
|
27
|
+
if (!s || !n || !r || !o.includes(r)) return null;
|
|
28
|
+
const l = t ? `?hash=${t}` : "";
|
|
29
|
+
return `/api/projects/${s}/${r}s/${n}/filmstrip${l}`;
|
|
30
|
+
}, e = (s, r) => !s || !r ? null : `/api/projects/${s}/files/${r}/filmstrip`;
|
|
22
31
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
32
|
+
o as F,
|
|
33
|
+
f as a,
|
|
34
|
+
e as b,
|
|
35
|
+
a as c,
|
|
36
|
+
c as g
|
|
25
37
|
};
|