@ynput/ayon-frontend-shared 0.5.0 → 0.6.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 (92) hide show
  1. package/dist/ContextMenu.es.js +34 -16
  2. package/dist/DetailsPanel.es.js +307 -311
  3. package/dist/Feed.es.js +179 -50
  4. package/dist/ListTable.es.js +99 -92
  5. package/dist/NewEntity.es.js +1256 -11
  6. package/dist/ProjectTreeTable.es.js +4459 -2959
  7. package/dist/SimpleTable.es.js +8 -7
  8. package/dist/Slicer.es.js +451 -147
  9. package/dist/Views.es.js +918 -310
  10. package/dist/api.es.js +331 -329
  11. package/dist/chunks/Actions.es.js +32 -27
  12. package/dist/chunks/ColumnDropIndicator.es.js +174 -328
  13. package/dist/chunks/ColumnDropIndicator.styled.es.js +281 -0
  14. package/dist/chunks/ColumnHeaderMenuUI.es.js +52 -0
  15. package/dist/chunks/ContextMenuContextInstance.es.js +12 -0
  16. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +229 -0
  17. package/dist/chunks/DeleteEntitiesContextInstance.es.js +827 -0
  18. package/dist/chunks/DetailsDialog.es.js +3 -3
  19. package/dist/chunks/EmptyPlaceholder.es.js +4 -4
  20. package/dist/chunks/EntityPath.es.js +74 -69
  21. package/dist/chunks/EntityPickerDialog.es.js +25 -21
  22. package/dist/chunks/EntityTooltip.es.js +29 -22
  23. package/dist/chunks/EntityUpdatesContext.es.js +38 -96
  24. package/dist/chunks/Feed.es.js +2321 -2668
  25. package/dist/chunks/FilterErrorActions.es.js +25 -229
  26. package/dist/chunks/Menu.es.js +21 -17
  27. package/dist/chunks/MenuContext.es.js +14 -256
  28. package/dist/chunks/MenuItem.es.js +34 -24
  29. package/dist/chunks/MetaWidget.es.js +2895 -4919
  30. package/dist/chunks/NewEntityContextInstance.es.js +11 -0
  31. package/dist/chunks/PlayableIcon.es.js +4215 -1179
  32. package/dist/chunks/ProjectContext.es.js +102 -66
  33. package/dist/chunks/RepresentationsList.es.js +4 -4
  34. package/dist/chunks/ReviewablesSelector.es.js +468 -460
  35. package/dist/chunks/SimpleForm.es.js +18 -18
  36. package/dist/chunks/SimpleTable.es.js +15 -13
  37. package/dist/chunks/Slicer.es.js +109 -98
  38. package/dist/chunks/TableSettingsFallback.es.js +22 -10
  39. package/dist/chunks/ThumbnailSimple.es.js +290 -52
  40. package/dist/chunks/VersionUploadContextInstance.es.js +12 -0
  41. package/dist/chunks/VideoPlayer.es.js +24 -28
  42. package/dist/chunks/Watchers.es.js +669 -644
  43. package/dist/chunks/entityDefinitions.es.js +2 -350
  44. package/dist/chunks/expandRelativeDates.es.js +27 -0
  45. package/dist/chunks/extractVersionFromFilename.es.js +28 -0
  46. package/dist/chunks/getBundleMode.es.js +1 -1
  47. package/dist/chunks/getUris.es.js +737 -710
  48. package/dist/chunks/queryFilterToClientFilter.es.js +11 -10
  49. package/dist/chunks/searchTerms.es.js +179 -174
  50. package/dist/chunks/useAttributeEnums.es.js +9 -9
  51. package/dist/chunks/useCreateContextMenu.es.js +66 -90
  52. package/dist/chunks/useDateRangeFilter.es.js +3 -3
  53. package/dist/chunks/useHierarchySelection.es.js +24 -0
  54. package/dist/chunks/useLoadModule.es.js +74 -0
  55. package/dist/chunks/useQueryArgumentChangeLoading.es.js +11 -0
  56. package/dist/chunks/versionUploadHelpers.es.js +16 -42
  57. package/dist/chunks/viewUpdateHelper.es.js +74 -57
  58. package/dist/components.es.js +1432 -1001
  59. package/dist/context.es.js +791 -78
  60. package/dist/hooks.es.js +95 -94
  61. package/dist/index.es.js +27 -26
  62. package/dist/types/Actions.d.ts +15 -15
  63. package/dist/types/ContextMenu.d.ts +19 -16
  64. package/dist/types/DetailsPanel.d.ts +110 -17
  65. package/dist/types/EntityPickerDialog.d.ts +15 -15
  66. package/dist/types/Feed.d.ts +19 -16
  67. package/dist/types/ListTable.d.ts +15 -15
  68. package/dist/types/NewEntity.d.ts +24 -18
  69. package/dist/types/ProjectTreeTable.d.ts +34 -123
  70. package/dist/types/RepresentationsList.d.ts +15 -15
  71. package/dist/types/SimpleTable.d.ts +19 -16
  72. package/dist/types/Slicer.d.ts +18 -15
  73. package/dist/types/Views.d.ts +19 -16
  74. package/dist/types/api.d.ts +515 -207
  75. package/dist/types/components.d.ts +84 -20
  76. package/dist/types/context.d.ts +108 -25
  77. package/dist/types/hooks.d.ts +15 -15
  78. package/dist/types/index.d.ts +15 -15
  79. package/dist/types/util.d.ts +20 -15
  80. package/dist/util.es.js +117 -105
  81. package/package.json +16 -4
  82. package/dist/chunks/DeleteEntitiesContext.es.js +0 -748
  83. package/dist/chunks/GlobalContext.es.js +0 -52
  84. package/dist/chunks/NewEntityContext.es.js +0 -1242
  85. package/dist/chunks/ProjectFoldersContext.es.js +0 -134
  86. package/dist/chunks/ProjectFoldersContextInstance.es.js +0 -7
  87. package/dist/chunks/VersionUploadContext.es.js +0 -232
  88. package/dist/chunks/ViewsContext.es.js +0 -878
  89. package/dist/chunks/mentionTypeOptions.es.js +0 -15
  90. package/dist/chunks/useColumnDragRestriction.es.js +0 -148
  91. package/dist/chunks/useLocalStorage.es.js +0 -355
  92. /package/dist/{useCreateContextMenu.css → ContextMenuContextInstance.css} +0 -0
@@ -1,63 +1,296 @@
1
- import { jsx as n, jsxs as y } from "react/jsx-runtime";
2
- import { Dialog as S, FormRow as m, InputDate as u, SaveButton as k, Icon as j } from "@ynput/ayon-react-components";
3
- import d from "styled-components";
4
- import { format as p, parse as h } from "date-fns";
5
- import "lodash";
1
+ import { jsxs as m, jsx as i } from "react/jsx-runtime";
2
+ import { createPortal as R } from "react-dom";
3
+ import { createContext as z, useContext as L, useEffect as $ } from "react";
4
+ import { aQ as j } from "./searchTerms.es.js";
5
+ import { C as A } from "./getUris.es.js";
6
6
  import "primereact/confirmdialog";
7
+ import "lodash";
8
+ import { e as F } from "./expandRelativeDates.es.js";
9
+ import "@module-federation/enhanced/runtime";
10
+ import "./DeleteEntitiesContextInstance.es.js";
7
11
  import "react-toastify";
8
12
  import "uuid";
9
- import { g as E } from "./getThumbnailUrl.es.js";
10
- import "./searchTerms.es.js";
11
- const B = d.div`
13
+ import "semver";
14
+ import { Icon as w, Dialog as N, FormRow as v, InputDate as x, SaveButton as B } from "@ynput/ayon-react-components";
15
+ import "./ContextMenuContextInstance.es.js";
16
+ import "clsx";
17
+ import "react-redux";
18
+ import { U } from "./PlayableIcon.es.js";
19
+ import p, { keyframes as O } from "styled-components";
20
+ import { a as K } from "./EntityTooltip.es.js";
21
+ import { format as b, parse as k } from "date-fns";
22
+ import { g as P } from "./getThumbnailUrl.es.js";
23
+ const Y = new Set(Object.keys(A).filter((e) => e !== "activity")), D = {
24
+ has_attachments: "activity_data.files",
25
+ // not `entity_type`: on inbox rows that column is always 'user'
26
+ origin_type: "activity_data.origin.type"
27
+ }, q = (e) => !!e && "key" in e, H = (e) => {
28
+ const t = D[e.key] ?? e.key;
29
+ if (e.key === "has_attachments")
30
+ return e.value ? { key: t, operator: "ne", value: [] } : null;
31
+ if (e.key === "in_review_session")
32
+ return e.value ? { key: "activity_data.entityList", operator: "notnull" } : null;
33
+ if (e.key === "category") {
34
+ const o = Array.isArray(e.value) ? e.value : [], n = o.includes("__none__"), s = o.filter((a) => a !== "__none__"), l = {
35
+ operator: "or",
36
+ conditions: [
37
+ { key: "activity_data.category", operator: "isnull" },
38
+ { key: "activity_data.category", operator: "eq", value: "" }
39
+ ]
40
+ }, c = {
41
+ key: "activity_data.category",
42
+ operator: "in",
43
+ value: s
44
+ };
45
+ return n && s.length ? { operator: "or", conditions: [l, c] } : n ? l : s.length ? c : null;
46
+ }
47
+ return e.key === "body" && e.operator === "like" && typeof e.value == "string" ? { ...e, key: t, value: `%${e.value}%` } : e.key === "author" ? {
48
+ operator: "or",
49
+ conditions: [
50
+ { ...e, key: "activity_data.author" },
51
+ { ...e, key: "activity_data.assignee" }
52
+ ]
53
+ } : { ...e, key: t };
54
+ }, C = (e) => {
55
+ if (q(e))
56
+ return Y.has(e.key) ? null : H(e);
57
+ const t = (e.conditions || []).map((o) => C(o)).filter((o) => o !== null);
58
+ return t.length === 0 ? null : { operator: e.operator || "and", conditions: t };
59
+ }, Q = (e) => {
60
+ if (!e || !e.conditions?.length) return null;
61
+ const t = F(e), o = C(t);
62
+ return o || null;
63
+ }, $e = (e) => {
64
+ const t = Q(e);
65
+ if (t)
66
+ return JSON.stringify(t);
67
+ }, W = z(void 0), g = () => {
68
+ const e = L(W);
69
+ if (!e)
70
+ throw new Error("useFeedContext must be used within a FeedProvider");
71
+ return e;
72
+ }, G = () => {
73
+ const { refTooltip: e, setRefTooltip: t } = g();
74
+ return [e, (n) => {
75
+ n && n.id !== e?.id && t(n), n || t(null);
76
+ }];
77
+ }, J = p.span`
78
+ display: flex;
79
+ align-items: center;
80
+ gap: var(--base-gap-large);
81
+
82
+ .thumbnail {
83
+ width: ${({ $size: e }) => e}px;
84
+ height: ${({ $size: e }) => e}px;
85
+
86
+ .icon {
87
+ font-size: ${({ $size: e }) => Math.round(e * 0.58)}px;
88
+ }
89
+ }
90
+
91
+ span {
92
+ white-space: nowrap;
93
+ }
94
+ `, V = p.span`
95
+ display: flex;
96
+ flex-direction: column;
97
+
98
+ .label {
99
+ color: var(--md-sys-color-outline);
100
+ font-size: 0.85em;
101
+ }
102
+ `, E = ({ name: e, fullName: t, showSubtitle: o, size: n = 24 }) => /* @__PURE__ */ m(J, { $size: n, children: [
103
+ /* @__PURE__ */ i(U, { name: e, size: n }),
104
+ o ? /* @__PURE__ */ m(V, { children: [
105
+ /* @__PURE__ */ i("span", { children: t || e }),
106
+ t && /* @__PURE__ */ i("span", { className: "label", children: e })
107
+ ] }) : /* @__PURE__ */ i("span", { children: t || e })
108
+ ] }), X = O`
109
+ from {
110
+ opacity: 0.4;
111
+ scale: 0.9;
112
+ }
113
+ to {
114
+ opacity: 1;
115
+ scale: 1;
116
+ }
117
+ `, M = p.span`
118
+ display: flex;
119
+ padding: 8px;
120
+ gap: var(--base-gap-large);
121
+ z-index: 100;
122
+ align-items: center;
123
+
124
+ background-color: var(--md-sys-color-surface-container-high);
125
+ border-radius: var(--border-radius-m);
126
+
127
+ position: fixed;
128
+ transform: translate(-50%, calc(-100% - 4px));
129
+ box-shadow: 0 0px 4px rgba(0, 0, 0, 0.2);
130
+ z-index: 9999;
131
+
132
+ .thumbnail {
133
+ width: 40px;
134
+ height: 40px;
135
+
136
+ .icon {
137
+ font-size: 24px;
138
+ }
139
+ }
140
+
141
+ animation: ${X} 50ms ease-out;
142
+ transform-origin: left bottom;
143
+ `, Z = ({ name: e, label: t, pos: o }) => /* @__PURE__ */ i(M, { style: { ...o }, children: /* @__PURE__ */ i(E, { name: e || "", fullName: t, showSubtitle: !0, size: 32 }) }), ee = p(M)`
144
+ flex-direction: column;
145
+ align-items: flex-start;
146
+ gap: 8px;
147
+ min-width: 180px;
148
+ `, te = p.span`
149
+ display: flex;
150
+ align-items: center;
151
+ gap: var(--base-gap-large);
152
+
153
+ .icon {
154
+ font-size: 20px;
155
+ }
156
+ `, oe = p.span`
157
+ display: flex;
158
+ flex-direction: column;
159
+
160
+ span {
161
+ white-space: nowrap;
162
+ }
163
+
164
+ .label {
165
+ color: var(--md-sys-color-outline);
166
+ font-size: 0.85em;
167
+ }
168
+ `, ne = p.ul`
169
+ list-style: none;
170
+ margin: 0;
171
+ padding: 0;
172
+ display: flex;
173
+ flex-direction: column;
174
+ gap: 4px;
175
+ width: 100%;
176
+ `, ie = p.li`
177
+ display: flex;
178
+ align-items: center;
179
+ `, re = p.span`
180
+ color: var(--md-sys-color-outline);
181
+ font-size: 0.85em;
182
+ padding-left: 32px;
183
+ `, _ = 5, ae = ({ name: e, pos: t }) => {
184
+ const { projectName: o, users: n } = g(), { data: s = [] } = j.useGetTeamsQuery(
185
+ { projectName: o, showMembers: !0 },
186
+ { skip: !o || !e }
187
+ ), l = s.find((d) => d.name === e), c = l?.members ?? [], a = l?.memberCount ?? 0, r = c.slice(0, _), u = Math.max(0, a - _), f = new Map(n.map((d) => [d.name, d.attrib?.fullName || void 0]));
188
+ return /* @__PURE__ */ m(ee, { style: { ...t }, children: [
189
+ /* @__PURE__ */ m(te, { children: [
190
+ /* @__PURE__ */ i(w, { icon: "group" }),
191
+ /* @__PURE__ */ m(oe, { children: [
192
+ /* @__PURE__ */ i("span", { children: e }),
193
+ l && /* @__PURE__ */ m("span", { className: "label", children: [
194
+ a,
195
+ " ",
196
+ a === 1 ? "member" : "members"
197
+ ] })
198
+ ] })
199
+ ] }),
200
+ r.length > 0 && /* @__PURE__ */ m(ne, { children: [
201
+ r.map((d) => /* @__PURE__ */ i(ie, { children: /* @__PURE__ */ i(
202
+ E,
203
+ {
204
+ name: d.name,
205
+ fullName: f.get(d.name),
206
+ size: 20
207
+ }
208
+ ) }, d.name)),
209
+ u > 0 && /* @__PURE__ */ m(re, { children: [
210
+ "+",
211
+ u,
212
+ " more"
213
+ ] })
214
+ ] })
215
+ ] });
216
+ }, se = ({ type: e, id: t, pos: o }) => {
217
+ const { projectInfo: n, projectName: s } = g();
218
+ return /* @__PURE__ */ i(
219
+ K,
220
+ {
221
+ entityType: e,
222
+ entityId: t,
223
+ projectName: s,
224
+ projectInfo: n,
225
+ pos: o
226
+ }
227
+ );
228
+ }, je = () => {
229
+ const [e, t] = G(), { type: o, label: n, name: s, pos: l, id: c } = e || {}, a = document.querySelector(".feed ul");
230
+ return $(() => {
231
+ if (c) {
232
+ const r = (u) => {
233
+ const f = u.target, d = CSS.escape(`ref-${c.replaceAll(".", "-")}`), y = f?.closest(`#${d}`), h = f?.closest("[data-mention-value], .reference");
234
+ !y && !h && (t(null), document.removeEventListener("mouseover", r), a && a.removeEventListener("scroll", r));
235
+ };
236
+ return document.addEventListener("mouseover", r), a && a.addEventListener("scroll", r), () => {
237
+ document.removeEventListener("mouseover", r), a && a.removeEventListener("scroll", r);
238
+ };
239
+ }
240
+ }, [c, t, a]), c ? R(
241
+ o === "user" && l ? /* @__PURE__ */ i(Z, { name: s, label: n, pos: l }) : o === "team" && l ? /* @__PURE__ */ i(ae, { name: s, pos: l }) : /* @__PURE__ */ i(se, { type: o, label: n, name: s, pos: l, id: c }),
242
+ document.body
243
+ ) : null;
244
+ }, le = p.div`
12
245
  display: flex;
13
246
  flex-direction: column;
14
247
  gap: 12px;
15
- `, G = ({
16
- isOpen: l,
248
+ `, Ae = ({
249
+ isOpen: e,
17
250
  header: t,
18
251
  startDate: o,
19
- endDate: e,
20
- onStartDateChange: r,
21
- onEndDateChange: s,
252
+ endDate: n,
253
+ onStartDateChange: s,
254
+ onEndDateChange: l,
22
255
  onApply: c,
23
256
  onClose: a
24
- }) => /* @__PURE__ */ n(
25
- S,
257
+ }) => /* @__PURE__ */ i(
258
+ N,
26
259
  {
27
- isOpen: l,
260
+ isOpen: e,
28
261
  onClose: a,
29
262
  header: t,
30
263
  size: "sm",
31
264
  hideCancelButton: !0,
32
- footer: /* @__PURE__ */ n(
33
- k,
265
+ footer: /* @__PURE__ */ i(
266
+ B,
34
267
  {
35
268
  label: "Confirm",
36
269
  icon: "check",
37
270
  onClick: c,
38
- active: !!o && !!e && e >= o
271
+ active: !!o && !!n && n >= o
39
272
  }
40
273
  ),
41
- children: /* @__PURE__ */ y(B, { children: [
42
- /* @__PURE__ */ n(m, { label: "Start date", children: /* @__PURE__ */ n(
43
- u,
274
+ children: /* @__PURE__ */ m(le, { children: [
275
+ /* @__PURE__ */ i(v, { label: "Start date", children: /* @__PURE__ */ i(
276
+ x,
44
277
  {
45
- selected: o ? h(o, "yyyy-MM-dd", /* @__PURE__ */ new Date()) : void 0,
46
- onChange: (i) => r(i ? p(i, "yyyy-MM-dd") : ""),
278
+ selected: o ? k(o, "yyyy-MM-dd", /* @__PURE__ */ new Date()) : void 0,
279
+ onChange: (r) => s(r ? b(r, "yyyy-MM-dd") : ""),
47
280
  autoFocus: !0
48
281
  }
49
282
  ) }),
50
- /* @__PURE__ */ n(m, { label: "End date", children: /* @__PURE__ */ n(
51
- u,
283
+ /* @__PURE__ */ i(v, { label: "End date", children: /* @__PURE__ */ i(
284
+ x,
52
285
  {
53
- selected: e ? h(e, "yyyy-MM-dd", /* @__PURE__ */ new Date()) : void 0,
54
- onChange: (i) => s(i ? p(i, "yyyy-MM-dd") : ""),
286
+ selected: n ? k(n, "yyyy-MM-dd", /* @__PURE__ */ new Date()) : void 0,
287
+ onChange: (r) => l(r ? b(r, "yyyy-MM-dd") : ""),
55
288
  openToDate: o ? new Date(o) : void 0
56
289
  }
57
290
  ) })
58
291
  ] })
59
292
  }
60
- ), z = d.div`
293
+ ), ce = p.div`
61
294
  position: relative;
62
295
  width: 100%;
63
296
  max-width: 500px;
@@ -79,7 +312,7 @@ const B = d.div`
79
312
  background-color: hsl(220 20% 8%);
80
313
  color: var(--md-sys-color-outline);
81
314
  }
82
- `, F = d.img`
315
+ `, de = p.img`
83
316
  width: 100%;
84
317
  height: 100%;
85
318
  object-fit: contain;
@@ -88,41 +321,46 @@ const B = d.div`
88
321
  display: block;
89
322
  position: absolute;
90
323
  inset: 0;
91
- `, H = ({
92
- projectName: l,
324
+ `, Fe = ({
325
+ projectName: e,
93
326
  entityType: t,
94
327
  entityId: o,
95
- icon: e,
96
- thumbnailHash: r,
97
- isLoading: s,
328
+ icon: n,
329
+ thumbnailHash: s,
330
+ isLoading: l,
98
331
  className: c,
99
332
  disabled: a,
100
- src: i,
101
- onLoad: g,
333
+ src: r,
334
+ onLoad: u,
102
335
  onError: f,
103
- iconOnly: b,
104
- ...v
336
+ iconOnly: d,
337
+ ...y
105
338
  }) => {
106
- const w = E({
107
- projectName: l,
339
+ const h = P({
340
+ projectName: e,
108
341
  entityType: t,
109
342
  entityId: o,
110
- thumbnailHash: r ? String(r) : void 0
111
- }), x = t === "project", M = ["product"].includes(t), C = x ? !!l : !!o;
112
- return /* @__PURE__ */ y(z, { className: c + " thumbnail", ...v, children: [
113
- !s && !a && /* @__PURE__ */ n(j, { icon: e || "image" }),
114
- (t && !M && C || i) && !b && /* @__PURE__ */ n(
115
- F,
343
+ thumbnailHash: s ? String(s) : void 0
344
+ }), T = t === "project", S = ["product"].includes(t), I = T ? !!e : !!o;
345
+ return /* @__PURE__ */ m(ce, { className: c + " thumbnail", ...y, children: [
346
+ !l && !a && /* @__PURE__ */ i(w, { icon: n || "image" }),
347
+ (t && !S && I || r) && !d && /* @__PURE__ */ i(
348
+ de,
116
349
  {
117
- alt: `Entity thumbnail ${o || l}`,
118
- src: i || w || void 0,
119
- onLoad: g,
350
+ alt: `Entity thumbnail ${o || e}`,
351
+ src: r || h || void 0,
352
+ onLoad: u,
120
353
  onError: f
121
354
  }
122
355
  )
123
356
  ] });
124
357
  };
125
358
  export {
126
- G as C,
127
- H as T
359
+ je as A,
360
+ Ae as C,
361
+ W as F,
362
+ Fe as T,
363
+ G as a,
364
+ $e as b,
365
+ g as u
128
366
  };
@@ -0,0 +1,12 @@
1
+ import { createContext as n, useContext as t } from "react";
2
+ const e = n(void 0), s = () => {
3
+ const o = t(e);
4
+ if (o === void 0)
5
+ throw new Error("useVersionUploadContext must be used within a VersionUploadProvider");
6
+ return o;
7
+ }, i = () => t(e) ?? null;
8
+ export {
9
+ e as V,
10
+ s as a,
11
+ i as u
12
+ };
@@ -4,23 +4,19 @@ import { useSearchParams as I, useParams as P, useNavigate as b, useLocation as
4
4
  import { toast as A } from "react-toastify";
5
5
  import { clearMemoizedPlayables as c, Player as h, compactPlayerControls as E } from "@ynput/ayon-player";
6
6
  import { ClipType as F } from "@ynput/ayon-player/model";
7
- import "./useLocalStorage.es.js";
8
7
  import "@module-federation/enhanced/runtime";
9
- import "semver";
10
- import "./MenuContext.es.js";
11
- import "lodash";
8
+ import "./searchTerms.es.js";
9
+ import "./getUris.es.js";
12
10
  import "primereact/confirmdialog";
11
+ import { d as D } from "./DeleteEntitiesContextInstance.es.js";
12
+ import "lodash";
13
13
  import "uuid";
14
- import "./searchTerms.es.js";
15
- import "./DeleteEntitiesContext.es.js";
14
+ import "semver";
15
+ import "@ynput/ayon-react-components";
16
+ import "./ContextMenuContextInstance.es.js";
17
+ import "clsx";
16
18
  import "react-dom";
17
- import { u as D } from "./GlobalContext.es.js";
18
- import "./ProjectContext.es.js";
19
- import "./getUris.es.js";
20
- import "./ProjectFoldersContextInstance.es.js";
21
19
  import "react-redux";
22
- import "./ViewsContext.es.js";
23
- import "@ynput/ayon-react-components";
24
20
  import { P as N } from "./Feed.es.js";
25
21
  const R = { loop: !0, audio: !0 }, S = 24, T = "h264", L = {
26
22
  activityId: "",
@@ -38,15 +34,15 @@ const R = { loop: !0, audio: !0 }, S = 24, T = "h264", L = {
38
34
  productAttributes: {},
39
35
  taskAttributes: {},
40
36
  path: ""
41
- }, rt = ({
37
+ }, Z = ({
42
38
  id: t,
43
39
  name: o,
44
- url: r,
45
- projectName: e,
46
- duration: i,
47
- width: s,
48
- height: p,
49
- fps: a,
40
+ url: e,
41
+ projectName: r,
42
+ duration: s,
43
+ width: i,
44
+ height: a,
45
+ fps: p,
50
46
  codec: m
51
47
  }) => {
52
48
  const { user: f } = D(), n = v(null);
@@ -58,24 +54,24 @@ const R = { loop: !0, audio: !0 }, S = 24, T = "h264", L = {
58
54
  fileId: t,
59
55
  label: o,
60
56
  type: F.VIDEO,
61
- url: r,
57
+ url: e,
62
58
  position: 0,
63
- fps: a || S,
59
+ fps: p || S,
64
60
  codec: m || T,
65
- duration: i,
66
- width: s,
67
- height: p,
61
+ duration: s,
62
+ width: i,
63
+ height: a,
68
64
  context: L
69
65
  }
70
66
  ],
71
- [t, o, r, i, s, p, a, m]
67
+ [t, o, e, s, i, a, p, m]
72
68
  ), y = u(
73
69
  () => ({
74
70
  router: { useLocation: x, useNavigate: b, useParams: P, useSearchParams: I },
75
71
  toast: A,
76
- projectName: e
72
+ projectName: r
77
73
  }),
78
- [e]
74
+ [r]
79
75
  );
80
76
  return /* @__PURE__ */ l(N, { ref: n, children: /* @__PURE__ */ l(
81
77
  h,
@@ -92,5 +88,5 @@ const R = { loop: !0, audio: !0 }, S = 24, T = "h264", L = {
92
88
  ) });
93
89
  };
94
90
  export {
95
- rt as default
91
+ Z as default
96
92
  };