@ynput/ayon-frontend-shared 0.7.3 → 0.7.4

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 (66) hide show
  1. package/LICENSE +105 -0
  2. package/dist/DetailsPanel.es.js +1088 -969
  3. package/dist/ListTable.es.js +70 -67
  4. package/dist/NewEntity.es.js +8 -5
  5. package/dist/ProjectTreeTable.es.js +4134 -3825
  6. package/dist/ProjectsTable.es.js +526 -0
  7. package/dist/Slicer.es.js +75 -73
  8. package/dist/Views.es.js +86 -84
  9. package/dist/chunks/Actions.es.js +4 -2
  10. package/dist/chunks/ColumnDropIndicator.es.js +21 -18
  11. package/dist/chunks/ColumnDropIndicator.styled.es.js +14 -13
  12. package/dist/chunks/ColumnHeaderMenuUI.es.js +9 -7
  13. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +12 -11
  14. package/dist/chunks/EmptyPlaceholder.es.js +9 -8
  15. package/dist/chunks/EntityPath.es.js +15 -14
  16. package/dist/chunks/EntityPickerDialog.es.js +5 -3
  17. package/dist/chunks/EntityTooltip.es.js +10 -8
  18. package/dist/chunks/EntityUpdatesContext.es.js +13 -12
  19. package/dist/chunks/Feed.es.js +12 -11
  20. package/dist/chunks/FilterErrorActions.es.js +6 -4
  21. package/dist/chunks/GroupSettingsFallback.es.js +75 -0
  22. package/dist/chunks/JsonViewer.es.js +3 -2
  23. package/dist/chunks/Menu.es.js +105 -103
  24. package/dist/chunks/MetaWidget.es.js +278 -275
  25. package/dist/chunks/PlayableIcon.es.js +868 -862
  26. package/dist/chunks/ProjectContext.es.js +5 -4
  27. package/dist/chunks/RepresentationsList.es.js +3 -2
  28. package/dist/chunks/ReviewablesSelector.es.js +3471 -2067
  29. package/dist/chunks/SimpleTable.es.js +492 -402
  30. package/dist/chunks/Slicer.es.js +936 -896
  31. package/dist/chunks/TableExportContextInstance.es.js +437 -339
  32. package/dist/chunks/TableSettingsFallback.es.js +5 -3
  33. package/dist/chunks/ThumbnailSimple.es.js +15 -13
  34. package/dist/chunks/VideoPlayer.es.js +14 -12
  35. package/dist/chunks/Watchers.es.js +97 -95
  36. package/dist/chunks/getProjectDisplayName.es.js +4 -0
  37. package/dist/chunks/getUris.es.js +375 -374
  38. package/dist/chunks/useHierarchySelection.es.js +5 -3
  39. package/dist/chunks/useLoadModule.es.js +10 -8
  40. package/dist/chunks/viewUpdateHelper.es.js +12 -10
  41. package/dist/components.es.js +1488 -1186
  42. package/dist/context.es.js +589 -539
  43. package/dist/hooks.es.js +169 -212
  44. package/dist/index.es.js +17 -12
  45. package/dist/types/Actions.d.ts +17 -14
  46. package/dist/types/ContextMenu.d.ts +17 -14
  47. package/dist/types/DetailsPanel.d.ts +17 -14
  48. package/dist/types/EntityPickerDialog.d.ts +17 -14
  49. package/dist/types/Feed.d.ts +17 -14
  50. package/dist/types/ListTable.d.ts +17 -14
  51. package/dist/types/NewEntity.d.ts +17 -14
  52. package/dist/types/ProjectTreeTable.d.ts +749 -15
  53. package/dist/types/ProjectsTable.d.ts +228 -0
  54. package/dist/types/RepresentationsList.d.ts +17 -14
  55. package/dist/types/SimpleTable.d.ts +31 -14
  56. package/dist/types/Slicer.d.ts +18 -14
  57. package/dist/types/Views.d.ts +17 -14
  58. package/dist/types/api.d.ts +17 -14
  59. package/dist/types/components.d.ts +822 -25
  60. package/dist/types/context.d.ts +53 -15
  61. package/dist/types/hooks.d.ts +17 -14
  62. package/dist/types/index.d.ts +17 -14
  63. package/dist/types/util.d.ts +21 -14
  64. package/dist/util.es.js +152 -144
  65. package/package.json +15 -7
  66. /package/dist/{ContextMenuContextInstance.css → style.css} +0 -0
@@ -10,6 +10,7 @@ import "react-toastify";
10
10
  import { c as z } from "./copyToClipboard.es.js";
11
11
  import "uuid";
12
12
  import "./searchTerms.es.js";
13
+ import "axios";
13
14
  const E = (t) => {
14
15
  const o = t.getIsPinned(), s = t.id !== d && t.id !== f ? -30 : 0;
15
16
  return {
@@ -19,12 +20,12 @@ const E = (t) => {
19
20
  width: t.getSize(),
20
21
  zIndex: o ? 100 : 0
21
22
  };
22
- }, M = (t) => `calc(var(--col-${t}-size) * 1px)`, g = _(void 0), Q = () => {
23
+ }, M = (t) => `calc(var(--col-${t}-size) * 1px)`, g = _(void 0), X = () => {
23
24
  const t = u(g);
24
25
  if (!t)
25
26
  throw new Error("useFeedback must be used within a FeedbackProvider");
26
27
  return t;
27
- }, X = () => u(g), Y = I(({ ...t }, o) => /* @__PURE__ */ l(
28
+ }, Y = () => u(g), tt = I(({ ...t }, o) => /* @__PURE__ */ l(
28
29
  "svg",
29
30
  {
30
31
  width: "25",
@@ -85,7 +86,7 @@ const E = (t) => {
85
86
  &.selected {
86
87
  display: flex !important;
87
88
  }
88
- `, tt = ({ selected: t, style: o, ...s }) => /* @__PURE__ */ i(
89
+ `, ot = ({ selected: t, style: o, ...s }) => /* @__PURE__ */ i(
89
90
  B,
90
91
  {
91
92
  ...s,
@@ -94,7 +95,7 @@ const E = (t) => {
94
95
  variant: "text",
95
96
  style: { ...o }
96
97
  }
97
- ), ot = n(p)`
98
+ ), et = n(p)`
98
99
  background-color: unset !important;
99
100
  z-index: 110;
100
101
  position: relative;
@@ -186,7 +187,7 @@ const E = (t) => {
186
187
  height: auto;
187
188
  margin: 0;
188
189
  pointer-events: none;
189
- `, et = ({
190
+ `, it = ({
190
191
  columnVirtualizer: t,
191
192
  table: o,
192
193
  virtualPaddingLeft: s,
@@ -260,7 +261,7 @@ const E = (t) => {
260
261
  ]
261
262
  }
262
263
  ) });
263
- }, it = n.div`
264
+ }, nt = n.div`
264
265
  position: fixed;
265
266
  z-index: 2000;
266
267
  pointer-events: none;
@@ -268,14 +269,14 @@ const E = (t) => {
268
269
  background-color: var(--md-sys-color-primary);
269
270
  `;
270
271
  export {
271
- ot as C,
272
+ et as C,
272
273
  g as F,
273
- tt as H,
274
- Y as S,
275
- et as T,
276
- it as a,
277
- Q as b,
274
+ ot as H,
275
+ tt as S,
276
+ it as T,
277
+ nt as a,
278
+ X as b,
278
279
  E as c,
279
280
  M as g,
280
- X as u
281
+ Y as u
281
282
  };
@@ -1,6 +1,7 @@
1
1
  import { jsxs as a, Fragment as l, jsx as n } from "react/jsx-runtime";
2
2
  import { useRef as u } from "react";
3
3
  import "@module-federation/enhanced/runtime";
4
+ import "@ynput/ayon-addon/host";
4
5
  import "react-toastify";
5
6
  import "@ynput/ayon-react-components";
6
7
  import "./searchTerms.es.js";
@@ -9,6 +10,7 @@ import "primereact/confirmdialog";
9
10
  import { u as f } from "./TableExportContextInstance.es.js";
10
11
  import "lodash";
11
12
  import "uuid";
13
+ import "axios";
12
14
  import "semver";
13
15
  import "./ContextMenuContextInstance.es.js";
14
16
  import "clsx";
@@ -17,13 +19,13 @@ import "react-redux";
17
19
  import "react-router-dom";
18
20
  import { M as c, a as g } from "./Menu.es.js";
19
21
  import { C } from "./ColumnDropIndicator.styled.es.js";
20
- const q = ({ menuItems: e, menuId: t, className: p }) => {
21
- const { toggleMenuOpen: r, menuOpen: m } = f(), i = u(null), s = m === t;
22
- return e.length === 0 ? null : /* @__PURE__ */ a(l, { children: [
22
+ const y = ({ menuItems: i, menuId: t, className: p }) => {
23
+ const { toggleMenuOpen: r, menuOpen: m } = f(), e = u(null), s = m === t;
24
+ return i.length === 0 ? null : /* @__PURE__ */ a(l, { children: [
23
25
  /* @__PURE__ */ n(
24
26
  C,
25
27
  {
26
- ref: i,
28
+ ref: e,
27
29
  className: p,
28
30
  onClick: (o) => {
29
31
  o.stopPropagation(), r(t);
@@ -36,17 +38,17 @@ const q = ({ menuItems: e, menuId: t, className: p }) => {
36
38
  /* @__PURE__ */ n(
37
39
  c,
38
40
  {
39
- target: i.current,
41
+ target: e.current,
40
42
  id: t,
41
43
  align: "left",
42
44
  onClose: (o) => {
43
45
  o.stopPropagation(), r(!1);
44
46
  },
45
- children: /* @__PURE__ */ n(g, { menu: e, onClose: () => r(!1) })
47
+ children: /* @__PURE__ */ n(g, { menu: i, onClose: () => r(!1) })
46
48
  }
47
49
  )
48
50
  ] });
49
51
  };
50
52
  export {
51
- q as C
53
+ y as C
52
54
  };
@@ -8,7 +8,8 @@ import "react-toastify";
8
8
  import "uuid";
9
9
  import { p as u } from "./pluralize.es.js";
10
10
  import "./searchTerms.es.js";
11
- const te = [
11
+ import "axios";
12
+ const oe = [
12
13
  "annotations",
13
14
  "sharedViews",
14
15
  "listFolders",
@@ -24,7 +25,7 @@ const te = [
24
25
  "listValues",
25
26
  "entityLinks",
26
27
  "tableExport"
27
- ], oe = {
28
+ ], se = {
28
29
  annotations: {
29
30
  label: "Annotations",
30
31
  description: "Create detailed visual feedback directly on media files.",
@@ -107,7 +108,7 @@ const te = [
107
108
  "version",
108
109
  "representation",
109
110
  "workfile"
110
- ], G = (o) => o.length <= 1 ? o.join("") : `${o.slice(0, -1).join(", ")} and ${o[o.length - 1]}`, se = (o) => {
111
+ ], G = (o) => o.length <= 1 ? o.join("") : `${o.slice(0, -1).join(", ")} and ${o[o.length - 1]}`, ie = (o) => {
111
112
  if (o.length === 1) {
112
113
  const e = o[0];
113
114
  return `${e.entityType} "${e.label || e.name || e.id}"`;
@@ -118,7 +119,7 @@ const te = [
118
119
  (e) => u(r[e], e)
119
120
  );
120
121
  return G(a);
121
- }, ie = (o, r) => {
122
+ }, ne = (o, r) => {
122
123
  const a = {}, e = (s, t) => {
123
124
  t > 0 && (a[s] = (a[s] || 0) + t);
124
125
  };
@@ -126,7 +127,7 @@ const te = [
126
127
  for (const s of r)
127
128
  e("folder", s.totalFolderCount), e("task", s.totalTaskCount), e("product", s.totalProductCount), e("version", s.totalVersionCount);
128
129
  return a;
129
- }, H = (o) => C.reduce((r, a) => r + (o[a] || 0), 0), g = 8, ne = (o, r) => {
130
+ }, H = (o) => C.reduce((r, a) => r + (o[a] || 0), 0), g = 8, re = (o, r) => {
130
131
  if (o.length === 0) return [];
131
132
  const a = new Map(r.map((t) => [t.id, t])), e = o.length > 1, s = [];
132
133
  for (const t of o) {
@@ -141,7 +142,7 @@ const te = [
141
142
  }, K = (o, r) => {
142
143
  const a = (o ?? "").trim();
143
144
  return a !== "" && Number(a) === r;
144
- }, re = ({
145
+ }, ae = ({
145
146
  payload: o,
146
147
  onConfirm: r,
147
148
  onCancel: a
@@ -236,12 +237,12 @@ const te = [
236
237
  );
237
238
  };
238
239
  export {
239
- C as D,
240
- te as a,
240
+ ae as D,
241
+ ie as a,
241
242
  re as b,
242
243
  ne as c,
243
- se as d,
244
- ie as e,
245
- oe as p,
244
+ oe as d,
245
+ C as e,
246
+ se as p,
246
247
  H as s
247
248
  };
@@ -1,12 +1,13 @@
1
1
  import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
- import { theme as h, Icon as s } from "@ynput/ayon-react-components";
3
- import i from "clsx";
2
+ import { theme as h, Icon as i } from "@ynput/ayon-react-components";
3
+ import s from "clsx";
4
4
  import "lodash";
5
5
  import "primereact/confirmdialog";
6
6
  import "react-toastify";
7
7
  import "uuid";
8
8
  import { bt as g } from "./searchTerms.es.js";
9
9
  import "react";
10
+ import "axios";
10
11
  import u from "styled-components";
11
12
  const l = u.div`
12
13
  position: absolute;
@@ -51,7 +52,7 @@ const l = u.div`
51
52
  margin-top: -16px;
52
53
  }
53
54
  }
54
- `, R = ({
55
+ `, j = ({
55
56
  icon: d,
56
57
  message: o,
57
58
  error: n,
@@ -60,8 +61,8 @@ const l = u.div`
60
61
  pt: p,
61
62
  className: a,
62
63
  ...c
63
- }) => n ? /* @__PURE__ */ e(l, { className: i(a, "empty-placeholder", "isError"), ...c, children: [
64
- /* @__PURE__ */ r(s, { icon: "error", className: "placeholder-icon" }),
64
+ }) => n ? /* @__PURE__ */ e(l, { className: s(a, "empty-placeholder", "isError"), ...c, children: [
65
+ /* @__PURE__ */ r(i, { icon: "error", className: "placeholder-icon" }),
65
66
  /* @__PURE__ */ r("h3", { children: "Something went wrong." }),
66
67
  /* @__PURE__ */ e("span", { className: "error-message", ...p?.error, children: [
67
68
  "ERROR: ",
@@ -69,12 +70,12 @@ const l = u.div`
69
70
  ] }),
70
71
  m && /* @__PURE__ */ r("span", { children: "This should not happen. Please send a screenshot to the Ynput team!" }),
71
72
  t
72
- ] }) : /* @__PURE__ */ e(l, { className: i(a, "empty-placeholder"), ...c, children: [
73
- /* @__PURE__ */ r(s, { icon: d || "info", className: "placeholder-icon" }),
73
+ ] }) : /* @__PURE__ */ e(l, { className: s(a, "empty-placeholder"), ...c, children: [
74
+ /* @__PURE__ */ r(i, { icon: d || "info", className: "placeholder-icon" }),
74
75
  /* @__PURE__ */ r("h3", { children: typeof o == "object" ? JSON.stringify(o) : o }),
75
76
  t
76
77
  ] });
77
78
  export {
78
- R as E,
79
+ j as E,
79
80
  l as P
80
81
  };
@@ -5,22 +5,23 @@ import { dz as Me, c1 as Ue, cf as Fe, dl as Te, b4 as Le, aT as We, aO as Ve, d
5
5
  import "primereact/confirmdialog";
6
6
  import { useSensors as $e, useSensor as he, PointerSensor as Ae, KeyboardSensor as Oe, DndContext as qe, closestCenter as Ke, DragOverlay as Ze } from "@dnd-kit/core";
7
7
  import { useSortable as _e, sortableKeyboardCoordinates as Be, SortableContext as Ge, verticalListSortingStrategy as Qe, arrayMove as ze } from "@dnd-kit/sortable";
8
- import { D as He, R as Re, a as Je, b as Xe, L as Ye, c as oe, u as je, d as et, T as tt, e as ge, U as nt, P as rt, C as it, f as at, S as J, M as ve, g as be, h as X, i as ye, j as ot, F as st } from "./Watchers.es.js";
8
+ import { D as He, R as Re, e as Je, g as Xe, L as Ye, h as oe, i as je, j as et, T as tt, k as ge, U as nt, P as rt, C as it, l as at, S as J, M as ve, m as be, n as X, o as ye, p as ot, F as st } from "./Watchers.es.js";
9
9
  import { CSS as lt } from "@dnd-kit/utilities";
10
10
  import { toast as A } from "react-toastify";
11
11
  import { u as ct } from "./useCreateContextMenu.es.js";
12
12
  import { c as dt } from "./confirmDelete.es.js";
13
13
  import "uuid";
14
14
  import { camelCase as ut, upperFirst as pt } from "lodash";
15
- import { Icon as Ce, Dialog as Se, InputText as xe, Toolbar as ft, Button as ce, SaveButton as mt, FormRow as ht } from "@ynput/ayon-react-components";
15
+ import ft from "axios";
16
+ import { Icon as Ce, Dialog as Se, InputText as xe, Toolbar as mt, Button as ce, SaveButton as ht, FormRow as gt } from "@ynput/ayon-react-components";
16
17
  import "@module-federation/enhanced/runtime";
17
- import { o as Ee } from "./TableExportContextInstance.es.js";
18
+ import "@ynput/ayon-addon/host";
19
+ import { v as Ee } from "./TableExportContextInstance.es.js";
18
20
  import "semver";
19
21
  import "react-dom";
20
22
  import "react-redux";
21
23
  import "react-router-dom";
22
24
  import ue from "clsx";
23
- import gt from "axios";
24
25
  import "./ContextMenuContextInstance.es.js";
25
26
  import { s as vt, a as bt, h as we, g as yt, b as wt } from "./versionUploadHelpers.es.js";
26
27
  import { p as It } from "./parseFilename.es.js";
@@ -107,10 +108,10 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
107
108
  {
108
109
  onClose: r,
109
110
  header: /* @__PURE__ */ t(Je, { children: `Editing label: ${i}` }),
110
- footer: /* @__PURE__ */ R(ft, { children: [
111
+ footer: /* @__PURE__ */ R(mt, { children: [
111
112
  /* @__PURE__ */ t(ce, { label: "Cancel", onClick: h, variant: "text" }),
112
113
  /* @__PURE__ */ t(
113
- mt,
114
+ ht,
114
115
  {
115
116
  label: "Save",
116
117
  active: !!s,
@@ -136,7 +137,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
136
137
  ) })
137
138
  }
138
139
  );
139
- }, on = ({
140
+ }, sn = ({
140
141
  projectName: r,
141
142
  versionId: i,
142
143
  productId: a,
@@ -368,7 +369,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
368
369
  return /* @__PURE__ */ t(Se, { isOpen: i, onClose: n, header: "Upload Entity", footer: /* @__PURE__ */ R("div", { style: { display: "flex", gap: "8px", justifyContent: "flex-end" }, children: [
369
370
  /* @__PURE__ */ t(ce, { variant: "text", onClick: n, children: "Cancel" }),
370
371
  /* @__PURE__ */ t(ce, { variant: "filled", onClick: m, disabled: !I, children: "Upload" })
371
- ] }), size: "sm", children: /* @__PURE__ */ t("div", { style: { padding: "16px 0" }, children: /* @__PURE__ */ t(ht, { label: "Product Name", children: /* @__PURE__ */ t(
372
+ ] }), size: "sm", children: /* @__PURE__ */ t("div", { style: { padding: "16px 0" }, children: /* @__PURE__ */ t(gt, { label: "Product Name", children: /* @__PURE__ */ t(
372
373
  xe,
373
374
  {
374
375
  ref: y,
@@ -384,7 +385,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
384
385
  }, kt = [
385
386
  { id: "thumbnail", label: "Upload thumbnail", icon: "add_photo_alternate" },
386
387
  { id: "version", label: "Upload version", icon: "layers" }
387
- ], sn = ({
388
+ ], ln = ({
388
389
  children: r = [],
389
390
  entityType: i,
390
391
  entities: a = [],
@@ -489,7 +490,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
489
490
  for (const U of a) {
490
491
  const { id: T, entityType: S, projectName: L } = U;
491
492
  if (!L) throw new Error("Project name is required");
492
- const Pe = gt.post(
493
+ const Pe = ft.post(
493
494
  L && `/api/projects/${L}/${S}s/${T}/thumbnail`,
494
495
  e,
495
496
  {
@@ -603,7 +604,7 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
603
604
  }, se = () => /* @__PURE__ */ t("span", { className: "slash", children: "/" }), Mt = ["more", "versions"], Ie = (r) => {
604
605
  const i = r.target, a = i.closest(".dropdown")?.id || "";
605
606
  return [i, a];
606
- }, ln = ({
607
+ }, cn = ({
607
608
  projectName: r,
608
609
  hideProjectName: i,
609
610
  segments: a,
@@ -719,8 +720,8 @@ const Rt = ({ label: r, icon: i, isActive: a, className: d, ...g }) => /* @__PUR
719
720
  return g + (4 * i - 1) + 40;
720
721
  };
721
722
  export {
722
- sn as E,
723
- on as R,
724
- ln as a,
723
+ ln as E,
724
+ sn as R,
725
+ cn as a,
725
726
  St as g
726
727
  };
@@ -5,14 +5,16 @@ import "primereact/confirmdialog";
5
5
  import "react-toastify";
6
6
  import "uuid";
7
7
  import { bw as ce } from "./searchTerms.es.js";
8
+ import "axios";
8
9
  import { createPortal as de } from "react-dom";
9
10
  import { b as X, H as q, a as ue, S as pe, e as fe } from "./SimpleTable.es.js";
10
11
  import { InputText as he, theme as me, Dialog as ge, SwitchButton as be, Button as A } from "@ynput/ayon-react-components";
11
12
  import M from "styled-components";
12
13
  import { E as ve } from "./EmptyPlaceholder.es.js";
13
- import { E as V, a as we } from "./EntityTooltip.es.js";
14
+ import { a as V, E as we } from "./EntityTooltip.es.js";
14
15
  import { ci as ke } from "./getUris.es.js";
15
16
  import "@module-federation/enhanced/runtime";
17
+ import "@ynput/ayon-addon/host";
16
18
  import { y as xe, x as Te } from "./TableExportContextInstance.es.js";
17
19
  import "semver";
18
20
  import "./ContextMenuContextInstance.es.js";
@@ -549,7 +551,7 @@ const I = {
549
551
  }
550
552
  }
551
553
  }
552
- `, ht = ({
554
+ `, gt = ({
553
555
  projectName: t,
554
556
  entityType: r,
555
557
  initialSelection: o,
@@ -702,7 +704,7 @@ const I = {
702
704
  );
703
705
  };
704
706
  export {
705
- ht as E,
707
+ gt as E,
706
708
  Fe as T,
707
709
  ye as u
708
710
  };
@@ -6,12 +6,14 @@ import { bI as L } from "./getUris.es.js";
6
6
  import "primereact/confirmdialog";
7
7
  import "react";
8
8
  import "@module-federation/enhanced/runtime";
9
+ import "@ynput/ayon-addon/host";
9
10
  import "react-toastify";
10
11
  import { n as Y } from "./TableExportContextInstance.es.js";
11
12
  import "lodash";
12
13
  import { g as _ } from "./getEntityTypeIcon.es.js";
13
14
  import "uuid";
14
15
  import { g as z } from "./getThumbnailUrl.es.js";
16
+ import "axios";
15
17
  import "semver";
16
18
  import "./ContextMenuContextInstance.es.js";
17
19
  import "clsx";
@@ -43,12 +45,12 @@ from {
43
45
 
44
46
  /* shadow */
45
47
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
46
- `, H = ["folder", "task", "version", "workfile"], pt = ({
48
+ `, H = ["folder", "task", "version", "workfile"], ct = ({
47
49
  entityType: t,
48
50
  entityId: i,
49
51
  projectName: c,
50
- pos: { left: e = 0, top: l = 0 } = {},
51
- projectInfo: r,
52
+ pos: { left: r = 0, top: l = 0 } = {},
53
+ projectInfo: e,
52
54
  onMouseEnter: d,
53
55
  onMouseLeave: u
54
56
  }) => {
@@ -56,7 +58,7 @@ from {
56
58
  { entityType: t, entityId: i, projectName: a },
57
59
  { skip: !p || !i || !a }
58
60
  ), n = 220;
59
- e + n / 2 > window.innerWidth && (e = window.innerWidth - n / 2);
61
+ r + n / 2 > window.innerWidth && (r = window.innerWidth - n / 2);
60
62
  const {
61
63
  title: h,
62
64
  subTitle: T,
@@ -68,7 +70,7 @@ from {
68
70
  thumbnailId: b,
69
71
  status: E,
70
72
  thumbnailHash: P
71
- } = m || {}, j = r?.taskTypes || o?.taskTypes || [], N = r?.folderTypes || o?.folderTypes || [], v = (r?.statuses || o?.statuses || []).find((s) => s.name === E), I = m ? z({
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
74
  entityId: i || "",
73
75
  entityType: t,
74
76
  thumbnailHash: P,
@@ -84,7 +86,7 @@ from {
84
86
  return p ? /* @__PURE__ */ C(
85
87
  G,
86
88
  {
87
- style: { left: e, top: l, maxWidth: n },
89
+ style: { left: r, top: l, maxWidth: n },
88
90
  onMouseEnter: d,
89
91
  onMouseLeave: u,
90
92
  title: h,
@@ -102,6 +104,6 @@ from {
102
104
  ) : null;
103
105
  };
104
106
  export {
105
- H as E,
106
- pt as a
107
+ ct as E,
108
+ H as a
107
109
  };
@@ -6,18 +6,19 @@ import "react-toastify";
6
6
  import "uuid";
7
7
  import { bp as f } from "./searchTerms.es.js";
8
8
  import { c as I } from "./realtimeUpdatesUtils.es.js";
9
- import { t as y, m as S, g as T, b as v, E as w } from "./TableExportContextInstance.es.js";
9
+ import "axios";
10
+ import { t as y, m as S, g as T, c as v, E as w } from "./TableExportContextInstance.es.js";
10
11
  import { u as C } from "./viewUpdateHelper.es.js";
11
- const P = !0, Y = ({ children: l, projectNames: r }) => {
12
+ const P = !0, q = ({ children: l, projectNames: r }) => {
12
13
  const a = U(0), [s = y(!1), p] = C("autoSync"), [u, m] = h([]);
13
14
  x(() => {
14
- const n = I(
15
+ const i = I(
15
16
  (o) => {
16
- const e = o.map(({ project: t, topic: c, updateType: g, message: d }) => ({
17
+ const e = o.map(({ project: t, topic: c, updateType: b, message: d }) => ({
17
18
  id: ++a.current,
18
19
  project: t,
19
20
  topic: c,
20
- updateType: g,
21
+ updateType: b,
21
22
  entityId: d.summary?.entityId,
22
23
  message: d
23
24
  }));
@@ -25,23 +26,23 @@ const P = !0, Y = ({ children: l, projectNames: r }) => {
25
26
  },
26
27
  ({ key: o }) => String(o),
27
28
  0
28
- ), i = f.subscribeAll((o, e) => {
29
+ ), n = f.subscribeAll((o, e) => {
29
30
  if (!e?.topic || !S(e.project, r)) return;
30
31
  const t = T(e.topic);
31
32
  !t || s[t];
32
33
  });
33
34
  return () => {
34
- f.unsubscribe(i), n.clear();
35
+ f.unsubscribe(n), i.clear();
35
36
  };
36
37
  }, [s, r]);
37
- const b = A(
38
+ const g = A(
38
39
  () => ({
39
40
  updates: u,
40
41
  projectNames: r,
41
- acknowledge: (n, i, o) => {
42
+ acknowledge: (i, n, o) => {
42
43
  m(
43
44
  (e) => e.filter(
44
- (t) => t.id > o || !n.some((c) => v(t.topic, c)) || !S(t.project, i)
45
+ (t) => t.id > o || !i.some((c) => v(t.topic, c)) || !S(t.project, n)
45
46
  )
46
47
  );
47
48
  },
@@ -52,9 +53,9 @@ const P = !0, Y = ({ children: l, projectNames: r }) => {
52
53
  }),
53
54
  [s, r, p, u]
54
55
  );
55
- return /* @__PURE__ */ E(w.Provider, { value: b, children: l });
56
+ return /* @__PURE__ */ E(w.Provider, { value: g, children: l });
56
57
  };
57
58
  export {
58
- Y as E,
59
+ q as E,
59
60
  P as F
60
61
  };
@@ -28,14 +28,15 @@ import "primereact/confirmdialog";
28
28
  import { union as Ea, isEqual as Ma } from "lodash";
29
29
  import { b as Pa, F as _a, u as $e, a as In, T as Ra, C as La } from "./ThumbnailSimple.es.js";
30
30
  import "@module-federation/enhanced/runtime";
31
- import { o as ze, x as $a, a0 as yt, u as Oa } from "./TableExportContextInstance.es.js";
31
+ import "@ynput/ayon-addon/host";
32
+ import { v as ze, x as $a, a4 as yt, u as Oa } from "./TableExportContextInstance.es.js";
33
+ import $t from "axios";
32
34
  import "semver";
33
35
  import "./ContextMenuContextInstance.es.js";
34
36
  import "react-dom";
35
37
  import "react-redux";
36
38
  import "react-router-dom";
37
39
  import { p as be } from "./parseFilename.es.js";
38
- import $t from "axios";
39
40
  import { b as rn } from "./colorUtils.es.js";
40
41
  import "./EntityTooltip.es.js";
41
42
  import { isValid as lt, isToday as Va, isSameYear as ja, isSameDay as Ua, isSameWeek as za, isSameMinute as Ba, format as sn, formatISO as Ga, differenceInMinutes as Ha, differenceInSeconds as qa, compareAsc as Wa } from "date-fns";
@@ -95,7 +96,7 @@ const ar = ({
95
96
  hasNextPage: y,
96
97
  loadNextPage: C
97
98
  };
98
- }, it = "__new__", Sc = ({ children: e, ...t }) => {
99
+ }, it = "__new__", Ic = ({ children: e, ...t }) => {
99
100
  const { isGuest: o } = ze(), { data: n = [] } = ya({ projects: [t.projectName] }), { data: a = [] } = ha.useGetTeamsQuery(
100
101
  { projectName: t.projectName, showMembers: !0 },
101
102
  { skip: !t.projectName }
@@ -433,7 +434,7 @@ const ar = ({
433
434
  .icon {
434
435
  font-size: var(--icon-size);
435
436
  }
436
- `, Ic = F(Do)`
437
+ `, Ec = F(Do)`
437
438
  min-height: 90vh;
438
439
  max-height: 90vh;
439
440
  min-width: min(90vw, 100%);
@@ -528,7 +529,7 @@ const ar = ({
528
529
  max-width: 90vw;
529
530
  min-width: 300px;
530
531
  background-color: var(--md-sys-color-surface-container-lowest);
531
- `, Ec = F.div`
532
+ `, Mc = F.div`
532
533
  &.scrollable {
533
534
  position: absolute;
534
535
  inset: 56px;
@@ -4068,7 +4069,7 @@ const Es = (e) => !!e.activityData?.annotations?.length || !!yt(e), Ms = ({ proj
4068
4069
  { skip: !e || !r.length }
4069
4070
  );
4070
4071
  return S(() => ({ ...s, ...a }), [s, a]);
4071
- }, Mc = 30, Pc = ({
4072
+ }, Pc = 30, _c = ({
4072
4073
  disabled: e,
4073
4074
  readOnly: t,
4074
4075
  statuses: o = [],
@@ -4311,16 +4312,16 @@ const Es = (e) => !!e.activityData?.annotations?.length || !!yt(e), Ms = ({ proj
4311
4312
  export {
4312
4313
  Gr as A,
4313
4314
  qr as C,
4314
- Ic as D,
4315
+ Ec as D,
4315
4316
  it as F,
4316
4317
  un as P,
4317
- Ec as S,
4318
+ Mc as S,
4318
4319
  Ur as a,
4319
4320
  st as b,
4320
- Pc as c,
4321
- Sc as d,
4321
+ _c as c,
4322
+ Ic as d,
4322
4323
  xr as e,
4323
- Mc as f,
4324
+ Pc as f,
4324
4325
  vt as g,
4325
4326
  Hr as i,
4326
4327
  Jr as r
@@ -1,4 +1,4 @@
1
- import { jsxs as e, Fragment as m, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as m, Fragment as e, jsx as r } from "react/jsx-runtime";
2
2
  import { Button as i } from "@ynput/ayon-react-components";
3
3
  import "lodash";
4
4
  import "primereact/confirmdialog";
@@ -7,8 +7,10 @@ import { c as n } from "./copyToClipboard.es.js";
7
7
  import "uuid";
8
8
  import "./searchTerms.es.js";
9
9
  import "react";
10
+ import "axios";
10
11
  import "./getUris.es.js";
11
12
  import "@module-federation/enhanced/runtime";
13
+ import "@ynput/ayon-addon/host";
12
14
  import "./TableExportContextInstance.es.js";
13
15
  import "semver";
14
16
  import "./ContextMenuContextInstance.es.js";
@@ -17,7 +19,7 @@ import "react-dom";
17
19
  import "react-redux";
18
20
  import "react-router-dom";
19
21
  import { u as a } from "./ColumnDropIndicator.styled.es.js";
20
- const $ = ({ errorMessage: o }) => {
22
+ const A = ({ errorMessage: o }) => {
21
23
  const t = a();
22
24
  if (!o) return null;
23
25
  const p = () => t?.openSupport(
@@ -26,7 +28,7 @@ const $ = ({ errorMessage: o }) => {
26
28
 
27
29
  Error: ${o}`
28
30
  );
29
- return /* @__PURE__ */ e(m, { children: [
31
+ return /* @__PURE__ */ m(e, { children: [
30
32
  /* @__PURE__ */ r(
31
33
  i,
32
34
  {
@@ -41,5 +43,5 @@ Error: ${o}`
41
43
  ] });
42
44
  };
43
45
  export {
44
- $ as F
46
+ A as F
45
47
  };