@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,24 +1,23 @@
1
- import { jsx as C } from "react/jsx-runtime";
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 { bI as L } from "./getUris.es.js";
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 _ } from "./getEntityTypeIcon.es.js";
12
+ import { g as Y } from "./getEntityTypeIcon.es.js";
14
13
  import "uuid";
15
- import { g as z } from "./getThumbnailUrl.es.js";
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"], ct = ({
47
+ `, H = ["folder", "task", "version", "workfile"], mt = ({
49
48
  entityType: t,
50
49
  entityId: i,
51
50
  projectName: c,
52
- pos: { left: r = 0, top: l = 0 } = {},
53
- projectInfo: e,
51
+ pos: { left: e = 0, top: l = 0 } = {},
52
+ projectInfo: r,
54
53
  onMouseEnter: d,
55
54
  onMouseLeave: u
56
55
  }) => {
57
- const o = Y(), a = c || o?.projectName, p = !!t && H.includes(t), { data: m, isFetching: f } = L(
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
- r + n / 2 > window.innerWidth && (r = window.innerWidth - n / 2);
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 = e?.taskTypes || o?.taskTypes || [], N = e?.folderTypes || o?.folderTypes || [], v = (e?.statuses || o?.statuses || []).find((s) => s.name === E), I = m ? z({
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, O = {
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: _("workfile")
83
+ workfile: Y("workfile")
85
84
  };
86
- return p ? /* @__PURE__ */ C(
85
+ return p ? /* @__PURE__ */ I(
87
86
  G,
88
87
  {
89
- style: { left: r, top: l, maxWidth: n },
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: O[t || ""],
102
- imageUrl: I || void 0
100
+ titleIcon: C[t || ""],
101
+ imageUrl: O || void 0
103
102
  }
104
103
  ) : null;
105
104
  };
106
105
  export {
107
- ct as E,
106
+ mt as E,
108
107
  H as a
109
108
  };