@ynput/ayon-frontend-shared 0.7.6 → 0.8.1

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.
Files changed (70) hide show
  1. package/dist/DetailsPanel.es.js +361 -355
  2. package/dist/Feed.es.js +1 -1
  3. package/dist/ListTable.es.js +18 -18
  4. package/dist/NewEntity.es.js +30 -30
  5. package/dist/ProjectTreeTable.es.js +984 -974
  6. package/dist/ProjectsTable.es.js +3 -3
  7. package/dist/Slicer.es.js +53 -50
  8. package/dist/Views.es.js +150 -151
  9. package/dist/api.es.js +166 -165
  10. package/dist/chunks/Actions.es.js +9 -10
  11. package/dist/chunks/ColumnDropIndicator.es.js +2 -2
  12. package/dist/chunks/ColumnHeaderMenuUI.es.js +3 -4
  13. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +2 -2
  14. package/dist/chunks/DetailsDialog.es.js +3 -3
  15. package/dist/chunks/EmptyPlaceholder.es.js +7 -7
  16. package/dist/chunks/EntityPath.es.js +38 -39
  17. package/dist/chunks/EntityPickerDialog.es.js +65 -66
  18. package/dist/chunks/EntityTooltip.es.js +18 -19
  19. package/dist/chunks/Feed.es.js +1381 -1355
  20. package/dist/chunks/FilmstripEntityCard.es.js +5201 -0
  21. package/dist/chunks/FilterErrorActions.es.js +2 -3
  22. package/dist/chunks/GroupSettingsFallback.es.js +2 -2
  23. package/dist/chunks/Menu.es.js +52 -53
  24. package/dist/chunks/MetaWidget.es.js +1948 -1875
  25. package/dist/chunks/ProjectFoldersContext.es.js +40 -40
  26. package/dist/chunks/RepresentationsList.es.js +1 -1
  27. package/dist/chunks/ReviewablesSelector.es.js +759 -742
  28. package/dist/chunks/SimpleTable.es.js +2 -1
  29. package/dist/chunks/Slicer.es.js +49 -50
  30. package/dist/chunks/TableExportContextInstance.es.js +600 -402
  31. package/dist/chunks/TableSettingsFallback.es.js +3 -4
  32. package/dist/chunks/ThumbnailSimple.es.js +114 -99
  33. package/dist/chunks/VideoPlayer.es.js +8 -9
  34. package/dist/chunks/Watchers.es.js +928 -871
  35. package/dist/chunks/expandRelativeDates.es.js +1 -1
  36. package/dist/chunks/getThumbnailUrl.es.js +33 -21
  37. package/dist/chunks/getUris.es.js +1580 -1610
  38. package/dist/chunks/queryFilterToClientFilter.es.js +1 -1
  39. package/dist/chunks/realtimeUpdatesUtils.es.js +15 -15
  40. package/dist/chunks/searchTerms.es.js +774 -696
  41. package/dist/chunks/useAttributeEnums.es.js +22 -22
  42. package/dist/chunks/useDateRangeFilter.es.js +1 -1
  43. package/dist/chunks/useHierarchySelection.es.js +3 -4
  44. package/dist/chunks/useLoadModule.es.js +3 -4
  45. package/dist/components.es.js +1261 -1206
  46. package/dist/context.es.js +615 -540
  47. package/dist/hooks.es.js +193 -171
  48. package/dist/index.es.js +2 -2
  49. package/dist/types/Actions.d.ts +10 -8
  50. package/dist/types/DetailsPanel.d.ts +54 -76
  51. package/dist/types/EntityPickerDialog.d.ts +12 -6
  52. package/dist/types/Feed.d.ts +24 -24
  53. package/dist/types/ListTable.d.ts +33 -27
  54. package/dist/types/NewEntity.d.ts +26 -39
  55. package/dist/types/ProjectTreeTable.d.ts +275 -194
  56. package/dist/types/ProjectsTable.d.ts +6 -6
  57. package/dist/types/RepresentationsList.d.ts +4 -0
  58. package/dist/types/Slicer.d.ts +63 -246
  59. package/dist/types/Views.d.ts +71 -298
  60. package/dist/types/api.d.ts +3165 -2363
  61. package/dist/types/components.d.ts +444 -473
  62. package/dist/types/context.d.ts +285 -572
  63. package/dist/types/hooks.d.ts +76 -47
  64. package/dist/types/index.d.ts +6 -0
  65. package/dist/types/util.d.ts +141 -120
  66. package/dist/util.es.js +71 -68
  67. package/package.json +6 -6
  68. package/dist/chunks/EntityUpdatesContext.es.js +0 -61
  69. package/dist/chunks/PlayableIcon.es.js +0 -5020
  70. package/dist/chunks/viewUpdateHelper.es.js +0 -153
@@ -1,4 +1,4 @@
1
- import { f as r } from "./PlayableIcon.es.js";
1
+ import { f as r } from "./FilmstripEntityCard.es.js";
2
2
  const a = "relative:", i = (t) => typeof t == "string" && t.startsWith(a), o = (t) => {
3
3
  const e = t.replace(a, "").split(":");
4
4
  if (e.length !== 2) return null;
@@ -1,25 +1,37 @@
1
- const o = ({
2
- projectName: r,
3
- entityType: s,
1
+ const c = ({
2
+ projectName: s,
3
+ entityType: r,
4
4
  entityId: n,
5
- thumbnailId: $,
6
- thumbnailHash: u,
7
- placeholder: a
5
+ thumbnailId: t,
6
+ thumbnailHash: l,
7
+ placeholder: u
8
8
  }) => {
9
- if (!r) return null;
10
- if (s === "project")
11
- return l(r, u);
12
- if (!$ && (!n || !s)) return null;
13
- const t = new URLSearchParams();
14
- u && t.set("hash", u), a && t.set("placeholder", a);
15
- const i = t.toString() ? `?${t.toString()}` : "";
16
- return n && s ? `/api/projects/${r}/${s}s/${n}/thumbnail${i}` : `/api/projects/${r}/thumbnails/${$}${i}`;
17
- }, l = (r, s) => {
18
- if (!r) return null;
19
- const n = s ? `?hash=${s}` : "";
20
- return `/api/projects/${r}/thumbnail${n}`;
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
- l as a,
24
- o as g
32
+ o as F,
33
+ f as a,
34
+ e as b,
35
+ a as c,
36
+ c as g
25
37
  };