@ynput/ayon-frontend-shared 0.4.6 → 0.4.7

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 (39) hide show
  1. package/dist/DetailsPanel.es.js +2 -2
  2. package/dist/ListTable.es.js +3 -3
  3. package/dist/ProjectTreeTable.es.js +2 -2
  4. package/dist/chunks/ColumnDropIndicator.es.js +1 -1
  5. package/dist/chunks/DeleteEntitiesContext.es.js +1 -1
  6. package/dist/chunks/EntityPath.es.js +1 -1
  7. package/dist/chunks/EntityPickerDialog.es.js +1 -1
  8. package/dist/chunks/Feed.es.js +14 -14
  9. package/dist/chunks/JsonViewer.es.js +1 -1
  10. package/dist/chunks/MetaWidget.es.js +2 -2
  11. package/dist/chunks/ReviewablesSelector.es.js +3 -3
  12. package/dist/chunks/Slicer.es.js +1 -1
  13. package/dist/chunks/VideoPlayer.es.js +1 -1
  14. package/dist/chunks/Watchers.es.js +1 -1
  15. package/dist/chunks/searchTerms.es.js +1 -1
  16. package/dist/chunks/useColumnDragRestriction.es.js +1 -1
  17. package/dist/chunks/useLocalStorage.es.js +1 -1
  18. package/dist/components.es.js +2 -2
  19. package/dist/hooks.es.js +3 -3
  20. package/dist/index.es.js +3 -3
  21. package/dist/types/Actions.d.ts +7 -7
  22. package/dist/types/ContextMenu.d.ts +7 -7
  23. package/dist/types/DetailsPanel.d.ts +7 -7
  24. package/dist/types/EntityPickerDialog.d.ts +7 -7
  25. package/dist/types/Feed.d.ts +7 -7
  26. package/dist/types/ListTable.d.ts +7 -7
  27. package/dist/types/NewEntity.d.ts +7 -7
  28. package/dist/types/ProjectTreeTable.d.ts +7 -7
  29. package/dist/types/RepresentationsList.d.ts +7 -7
  30. package/dist/types/SimpleTable.d.ts +7 -7
  31. package/dist/types/Slicer.d.ts +7 -7
  32. package/dist/types/Views.d.ts +7 -7
  33. package/dist/types/api.d.ts +7 -7
  34. package/dist/types/components.d.ts +7 -7
  35. package/dist/types/context.d.ts +7 -7
  36. package/dist/types/hooks.d.ts +7 -7
  37. package/dist/types/index.d.ts +7 -7
  38. package/dist/types/util.d.ts +7 -7
  39. package/package.json +10 -1
@@ -33,7 +33,7 @@ import { u as vn } from "./chunks/useDateRangeFilter.es.js";
33
33
  import { C as yn } from "./chunks/ThumbnailSimple.es.js";
34
34
  import "./chunks/useLocalStorage.es.js";
35
35
  import "@module-federation/enhanced/runtime";
36
- import "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/semver/semver.js";
36
+ import "semver";
37
37
  import "react-dom";
38
38
  import "./chunks/GlobalContext.es.js";
39
39
  import "./chunks/ProjectFoldersContextInstance.es.js";
@@ -42,7 +42,7 @@ import "./chunks/ViewsContext.es.js";
42
42
  import "axios";
43
43
  import "@dnd-kit/core";
44
44
  import "@dnd-kit/sortable";
45
- import "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/@dnd-kit/utilities/dist/utilities.esm.js";
45
+ import "@dnd-kit/utilities";
46
46
  import "./chunks/useCreateContextMenu.es.js";
47
47
  import "custom-protocol-check";
48
48
  import "./chunks/SimpleForm.es.js";
@@ -19,13 +19,13 @@ import "./chunks/DeleteEntitiesContext.es.js";
19
19
  import "./chunks/GlobalContext.es.js";
20
20
  import "./chunks/useLocalStorage.es.js";
21
21
  import "@module-federation/enhanced/runtime";
22
- import "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/semver/semver.js";
22
+ import "semver";
23
23
  import "./chunks/ProjectFoldersContextInstance.es.js";
24
24
  import { useVirtualizer as Ae } from "@tanstack/react-virtual";
25
25
  import { useSensors as He, useSensor as Ct, PointerSensor as Oe, KeyboardSensor as $e, DndContext as xt, closestCenter as Dt, DragOverlay as Et, defaultDropAnimationSideEffects as Rt } from "@dnd-kit/core";
26
- import { restrictToHorizontalAxis as Ne, restrictToVerticalAxis as je } from "/home/jakub/code/ynput/ayon-frontend/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.js";
26
+ import { restrictToHorizontalAxis as Ne, restrictToVerticalAxis as je } from "@dnd-kit/modifiers";
27
27
  import { useSortable as Ht, sortableKeyboardCoordinates as Ke, arrayMove as We, SortableContext as St, horizontalListSortingStrategy as Pe, verticalListSortingStrategy as Fe } from "@dnd-kit/sortable";
28
- import { CSS as Ot } from "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/@dnd-kit/utilities/dist/utilities.esm.js";
28
+ import { CSS as Ot } from "@dnd-kit/utilities";
29
29
  import C from "styled-components";
30
30
  import { C as Be, H as Ye } from "./chunks/ColumnDropIndicator.es.js";
31
31
  import { u as Ue } from "./chunks/MenuContext.es.js";
@@ -25,7 +25,7 @@ import { g as Jo } from "./chunks/DeleteEntitiesContext.es.js";
25
25
  import "./chunks/GlobalContext.es.js";
26
26
  import { u as Zo, a as es } from "./chunks/useLocalStorage.es.js";
27
27
  import "@module-federation/enhanced/runtime";
28
- import "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/semver/semver.js";
28
+ import "semver";
29
29
  import "./chunks/ProjectFoldersContextInstance.es.js";
30
30
  import { i as ts, u as ns } from "./chunks/useColumnDragRestriction.es.js";
31
31
  import { T as nl, a as ol, b as sl } from "./chunks/useColumnDragRestriction.es.js";
@@ -39,7 +39,7 @@ import { a as fs } from "./chunks/FilterErrorActions.es.js";
39
39
  import { a as Ot, K as Lt } from "./chunks/platform.es.js";
40
40
  import { u as ms, n as rt } from "./chunks/entityDefinitions.es.js";
41
41
  import { createPortal as zt } from "react-dom";
42
- import { CSS as zn } from "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/@dnd-kit/utilities/dist/utilities.esm.js";
42
+ import { CSS as zn } from "@dnd-kit/utilities";
43
43
  import { u as gs } from "./chunks/useAttributeEnums.es.js";
44
44
  import { a as dl } from "./chunks/useAttributeEnums.es.js";
45
45
  import { a as ps } from "./chunks/queryFilterToClientFilter.es.js";
@@ -8,7 +8,7 @@ import { d as z, c as D } from "./Menu.es.js";
8
8
  import "./MenuItem.es.js";
9
9
  import "./useLocalStorage.es.js";
10
10
  import "@module-federation/enhanced/runtime";
11
- import "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/semver/semver.js";
11
+ import "semver";
12
12
  import { R as b, D as k } from "./realtimeUpdatesUtils.es.js";
13
13
  import "lodash";
14
14
  import "primereact/confirmdialog";
@@ -12,7 +12,7 @@ import { toast as O } from "react-toastify";
12
12
  import { debounce as ee, isEqual as be } from "lodash";
13
13
  import "primereact/confirmdialog";
14
14
  import { bd as _, a as Pe, be as Ee } from "./searchTerms.es.js";
15
- import Se, { ReadyState as Te } from "/home/jakub/code/ynput/ayon-frontend/node_modules/react-use-websocket/dist/index.js";
15
+ import Se, { ReadyState as Te } from "react-use-websocket";
16
16
  import { p as j } from "./pluralize.es.js";
17
17
  const Y = [
18
18
  "folder",
@@ -6,7 +6,7 @@ import "primereact/confirmdialog";
6
6
  import { useSensors as $e, useSensor as me, PointerSensor as Ae, KeyboardSensor as Oe, DndContext as qe, closestCenter as _e, DragOverlay as Ke } from "@dnd-kit/core";
7
7
  import { useSortable as Ze, sortableKeyboardCoordinates as Be, SortableContext as Ge, verticalListSortingStrategy as Qe, arrayMove as He } from "@dnd-kit/sortable";
8
8
  import { D as ze, 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
- import { CSS as lt } from "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/@dnd-kit/utilities/dist/utilities.esm.js";
9
+ import { CSS as lt } from "@dnd-kit/utilities";
10
10
  import { toast as A } from "react-toastify";
11
11
  import { a as ct } from "./useCreateContextMenu.es.js";
12
12
  import { c as dt } from "./confirmDelete.es.js";
@@ -16,7 +16,7 @@ import { a as ke } from "./ProjectContext.es.js";
16
16
  import { u as xe } from "./ProjectFoldersContext.es.js";
17
17
  import { g as W } from "./getThumbnailUrl.es.js";
18
18
  import { g as J } from "./getEntityTypeIcon.es.js";
19
- import { matchSorter as Te } from "/home/jakub/code/ynput/ayon-frontend/node_modules/match-sorter/dist/match-sorter.esm.js";
19
+ import { matchSorter as Te } from "match-sorter";
20
20
  const I = {
21
21
  folder: ["folder"],
22
22
  product: ["folder", "product"],
@@ -16,11 +16,11 @@ import Ro from "remark-directive-rehype";
16
16
  import { toast as Me } from "react-toastify";
17
17
  import $o, { Quill as Ge } from "react-quill-ayon";
18
18
  import y, { keyframes as Lo, css as Dt } from "styled-components";
19
- import Oo from "/home/jakub/code/ynput/ayon-frontend/node_modules/@uiw/react-textarea-code-editor/esm/index.js";
19
+ import Oo from "@uiw/react-textarea-code-editor";
20
20
  import { E as Ct } from "./EmptyPlaceholder.es.js";
21
21
  import { c as Uo, d as zo } from "./Menu.es.js";
22
22
  import { c as We, u as Vo } from "./MenuContext.es.js";
23
- import { matchSorter as jo } from "/home/jakub/code/ynput/ayon-frontend/node_modules/match-sorter/dist/match-sorter.esm.js";
23
+ import { matchSorter as jo } from "match-sorter";
24
24
  import { isValid as He, isSameMinute as Bo, isBefore as qo, formatISO as Ho, differenceInMinutes as Go, differenceInSeconds as Wo, compareAsc as Qo } from "date-fns";
25
25
  import "lodash";
26
26
  import { g as dn } from "./getEntityTypeIcon.es.js";
@@ -35,14 +35,14 @@ import "react-router-dom";
35
35
  import "./MenuItem.es.js";
36
36
  import "./useLocalStorage.es.js";
37
37
  import "@module-federation/enhanced/runtime";
38
- import "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/semver/semver.js";
38
+ import "semver";
39
39
  import { T as Xo, C as Jo } from "./ThumbnailSimple.es.js";
40
- import { t as Zo, c as er } from "./queryFilterToClientFilter.es.js";
41
- import { u as tr } from "./useDateRangeFilter.es.js";
42
- import { c as nr } from "./confirmDelete.es.js";
43
- import { c as or } from "./copyToClipboard.es.js";
40
+ import { InView as Zo } from "react-intersection-observer";
41
+ import { t as er, c as tr } from "./queryFilterToClientFilter.es.js";
42
+ import { u as nr } from "./useDateRangeFilter.es.js";
43
+ import { c as or } from "./confirmDelete.es.js";
44
+ import { c as rr } from "./copyToClipboard.es.js";
44
45
  import { g as jt } from "./realtimeUpdatesUtils.es.js";
45
- import { InView as rr } from "/home/jakub/code/ynput/ayon-frontend/node_modules/react-intersection-observer/dist/index.mjs";
46
46
  const ir = (e, o) => {
47
47
  const t = e.item || e, n = o.item || o, r = new Date(t.createdAt), i = new Date(n.createdAt), a = He(r) && He(i), s = a && Bo(r, i);
48
48
  return !a || s ? t.relevance > n.relevance ? -1 : t.relevance < n.relevance ? 1 : String(n.label).localeCompare(String(t.label)) : qo(i, r) ? -1 : 1;
@@ -2926,7 +2926,7 @@ const wt = y.span`
2926
2926
  const s = new URLSearchParams(window.location.search), d = s.get("type") === "version" ? "products" : "overview", p = `/projects/${r}/${d}`, u = new URLSearchParams(s.toString());
2927
2927
  u.set("activity", n);
2928
2928
  const m = new URL(window.location.origin + p);
2929
- m.search = u.toString(), or(m.toString());
2929
+ m.search = u.toString(), rr(m.toString());
2930
2930
  };
2931
2931
  return i.push({
2932
2932
  id: "copy-link",
@@ -3001,7 +3001,7 @@ const wt = y.span`
3001
3001
  const N = bo(X);
3002
3002
  Ne && re && N.push({ id: re.id, type: re.type }), t && await t(F, B, N);
3003
3003
  }, Re = () => {
3004
- nr({
3004
+ or({
3005
3005
  title: "Delete comment",
3006
3006
  message: "Are you sure you want to delete this comment?",
3007
3007
  accept: async () => {
@@ -4128,7 +4128,7 @@ const Ia = y.ul`
4128
4128
  });
4129
4129
  return;
4130
4130
  }
4131
- const a = Zo(i, o);
4131
+ const a = er(i, o);
4132
4132
  if (a) {
4133
4133
  t.push(a);
4134
4134
  return;
@@ -4148,7 +4148,7 @@ const Ia = y.ul`
4148
4148
  else if (En.includes(r))
4149
4149
  i.includes("true") && o.push({ key: r, operator: "eq", value: !0 });
4150
4150
  else if (n.type === "datetime") {
4151
- const a = er(r, n);
4151
+ const a = tr(r, n);
4152
4152
  a && o.push(a);
4153
4153
  } else
4154
4154
  o.push({ key: r, operator: "in", value: i.map(String) });
@@ -4242,7 +4242,7 @@ const Ia = y.ul`
4242
4242
  ), u = M(
4243
4243
  () => Qa(e, l),
4244
4244
  [e, l]
4245
- ), [m, g] = H(u), h = tr(), x = Se(null);
4245
+ ), [m, g] = H(u), h = nr(), x = Se(null);
4246
4246
  K(() => {
4247
4247
  g(u);
4248
4248
  }, [JSON.stringify(u)]), K(() => {
@@ -4522,7 +4522,7 @@ const Gs = 30, Ws = ({
4522
4522
  )),
4523
4523
  De.length === 0 && Z && !F && !h && /* @__PURE__ */ c(Ct, { message: "No versions published yet", icon: "layers" }),
4524
4524
  L && v && /* @__PURE__ */ c(
4525
- rr,
4525
+ Zo,
4526
4526
  {
4527
4527
  root: ce.current,
4528
4528
  onChange: (S) => S && v(),
@@ -2,7 +2,7 @@ import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
2
  import { useMemo as a } from "react";
3
3
  import c from "styled-components";
4
4
  import { Icon as p } from "@ynput/ayon-react-components";
5
- import s from "/home/jakub/code/ynput/ayon-frontend/node_modules/@uiw/react-textarea-code-editor/esm/index.js";
5
+ import s from "@uiw/react-textarea-code-editor";
6
6
  import "lodash";
7
7
  import "primereact/confirmdialog";
8
8
  import "react-toastify";
@@ -17,7 +17,7 @@ import { bn as Er, be as Rr, a as Lr, bf as Ar, bt as Nr } from "./searchTerms.e
17
17
  import { createPortal as Dr } from "react-dom";
18
18
  import en, { Quill as Pr } from "react-quill-ayon";
19
19
  import { f as Ut, n as Lt, I as tn, Q as nn, q as $r, D as rn, o as Mn, U as _r, p as Or, P as zr } from "./PlayableIcon.es.js";
20
- import "/home/jakub/code/ynput/ayon-frontend/node_modules/match-sorter/dist/match-sorter.esm.js";
20
+ import "match-sorter";
21
21
  import { parseISO as Ot, isValid as bn, subMilliseconds as Kt, format as Mr } from "date-fns";
22
22
  import { m as on } from "./mentionTypeOptions.es.js";
23
23
  import { W as Fr, g as it, v as Fn, R as qe, C as Hr, h as Vr } from "./realtimeUpdatesUtils.es.js";
@@ -26,7 +26,7 @@ import { aT as Hn, aE as Vn, c8 as Wr, s as jr, dn as Wn, dd as Ur, cp as jn, af
26
26
  import { sortingFns as tt } from "@tanstack/react-table";
27
27
  import { u as Br } from "./useLocalStorage.es.js";
28
28
  import "@module-federation/enhanced/runtime";
29
- import "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/semver/semver.js";
29
+ import "semver";
30
30
  import "./MenuContext.es.js";
31
31
  import Gr from "remark-emoji";
32
32
  import Yr from "remark-directive";
@@ -8,14 +8,14 @@ import { kebabCase as $e, isEqual as Rt, uniqueId as je, startCase as St, camelC
8
8
  import { createPortal as sn } from "react-dom";
9
9
  import { DndContext as kt, closestCenter as Ct, DragOverlay as Et, useSensors as ln, useSensor as cn, PointerSensor as dn } from "@dnd-kit/core";
10
10
  import { useSortable as It, SortableContext as Ke, verticalListSortingStrategy as Ge, arrayMove as un } from "@dnd-kit/sortable";
11
- import { CSS as Tt } from "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/@dnd-kit/utilities/dist/utilities.esm.js";
11
+ import { CSS as Tt } from "@dnd-kit/utilities";
12
12
  import { I as eo, d as to, e as pn, f as no } from "./ColumnDropIndicator.es.js";
13
13
  import { S as mn } from "./SimpleForm.es.js";
14
14
  import { bp as oo, aX as ro, bn as gn, bm as hn, bo as $t, bh as io, b0 as ao, bl as vn, bf as fn, be as so } from "./searchTerms.es.js";
15
15
  import { bh as lo, bn as co, cz as uo, bc as po, dx as ae, ch as mo } from "./getUris.es.js";
16
16
  import "primereact/confirmdialog";
17
17
  import { u as go, g as ho, v as vo } from "./Watchers.es.js";
18
- import { matchSorter as Ft } from "/home/jakub/code/ynput/ayon-frontend/node_modules/match-sorter/dist/match-sorter.esm.js";
18
+ import { matchSorter as Ft } from "match-sorter";
19
19
  import { J as fo } from "./JsonViewer.es.js";
20
20
  import { u as bn } from "./GlobalContext.es.js";
21
21
  import { toast as bo } from "react-toastify";
@@ -30,7 +30,7 @@ import { a as yn } from "./ProjectContext.es.js";
30
30
  import "@tanstack/react-table";
31
31
  import { a as Co } from "./useCreateContextMenu.es.js";
32
32
  import "@module-federation/enhanced/runtime";
33
- import "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/semver/semver.js";
33
+ import "semver";
34
34
  import "./ProjectFoldersContextInstance.es.js";
35
35
  import { u as Qe } from "./MenuContext.es.js";
36
36
  import "react-redux";
@@ -28,7 +28,7 @@ import { u as nt } from "./VersionUploadContext.es.js";
28
28
  import { u as at, b as ot, F as ue } from "./EntityUpdatesContext.es.js";
29
29
  import "./MenuItem.es.js";
30
30
  import "@module-federation/enhanced/runtime";
31
- import "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/semver/semver.js";
31
+ import "semver";
32
32
  import "react-dom";
33
33
  import { u as be } from "./ProjectFoldersContext.es.js";
34
34
  const st = ({ projectName: a, useExtraSlices: n }) => {
@@ -6,7 +6,7 @@ import { clearMemoizedPlayables as c, Player as h, compactPlayerControls as E }
6
6
  import { ClipType as F } from "@ynput/ayon-player/model";
7
7
  import "./useLocalStorage.es.js";
8
8
  import "@module-federation/enhanced/runtime";
9
- import "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/semver/semver.js";
9
+ import "semver";
10
10
  import "./MenuContext.es.js";
11
11
  import "lodash";
12
12
  import "primereact/confirmdialog";
@@ -14,7 +14,7 @@ import "./PlayableIcon.es.js";
14
14
  import { dd as Me, c4 as le, bd as Pe, an as We, bs as Oe, d1 as Ie } from "./getUris.es.js";
15
15
  import "./useLocalStorage.es.js";
16
16
  import "@module-federation/enhanced/runtime";
17
- import "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/semver/semver.js";
17
+ import "semver";
18
18
  import { c as ce } from "./MenuContext.es.js";
19
19
  import { T as Ve } from "./DeleteEntitiesContext.es.js";
20
20
  import "react-dom";
@@ -1,7 +1,7 @@
1
1
  import { toast as K } from "react-toastify";
2
2
  import { fetchBaseQuery as Q, createApi as W } from "@reduxjs/toolkit/query/react";
3
3
  import { graphqlRequestBaseQuery as z } from "@rtk-query/graphql-request-base-query";
4
- import { GraphQLClient as Y } from "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/graphql-request/build/entrypoints/main.js";
4
+ import { GraphQLClient as Y } from "graphql-request";
5
5
  import { rankings as k, rankItem as J } from "@tanstack/match-sorter-utils";
6
6
  const v = (t) => typeof t == "object" && t !== null, x = (t) => {
7
7
  if (typeof t.status == "number") return t.status;
@@ -20,7 +20,7 @@ import "./DeleteEntitiesContext.es.js";
20
20
  import "./GlobalContext.es.js";
21
21
  import "./useLocalStorage.es.js";
22
22
  import "@module-federation/enhanced/runtime";
23
- import "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/semver/semver.js";
23
+ import "semver";
24
24
  import "./ProjectFoldersContextInstance.es.js";
25
25
  const E = ["string", "integer", "float"], L = (n, s, r, o) => (r || E).includes(n.data.type || "") && (!s || n.scope?.includes(s)) ? o ? C(n.data) : !0 : !1, Z = ({
26
26
  allowedTypes: n,
@@ -5,7 +5,7 @@ import "./searchTerms.es.js";
5
5
  import { cO as M } from "./getUris.es.js";
6
6
  import "primereact/confirmdialog";
7
7
  import { u as F } from "./GlobalContext.es.js";
8
- import D from "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/semver/semver.js";
8
+ import D from "semver";
9
9
  const x = P({
10
10
  isLoading: !0,
11
11
  modules: [],
@@ -2,7 +2,7 @@ import { C as Pe, S as Ne, A as ue, a as Ie, T as Le, D as Me, b as Fe, c as Be,
2
2
  import { m as Va, n as Aa, o as _a, p as ka, q as xa, r as Pa, s as Na, t as Ia, E as La, u as Ma, v as Fa, w as Ba, x as Ua, y as Wa, G as Ga, z as Ha, L as Ya, P as $a, B as ja, R as Ka, H as Xa, I as za, J as Ja, K as qa, N as Qa, O as Za, Q as es, U as ts, V as as, W as ss, X as os, Y as rs, Z as ns } from "./chunks/ReviewablesSelector.es.js";
3
3
  import { jsxs as M, jsx as g } from "react/jsx-runtime";
4
4
  import { useState as H, useRef as ee, useCallback as Oe, useEffect as se, useMemo as pe, useContext as ze } from "react";
5
- import { matchSorter as fe } from "/home/jakub/code/ynput/ayon-frontend/node_modules/match-sorter/dist/match-sorter.esm.js";
5
+ import { matchSorter as fe } from "match-sorter";
6
6
  import { InputText as Je, Icon as z, Section as qe, SEARCH_FILTER_ID as Qe } from "@ynput/ayon-react-components";
7
7
  import te from "clsx";
8
8
  import { B as is, a as us, S as cs } from "./chunks/SimpleForm.es.js";
@@ -36,7 +36,7 @@ import { isEmpty as dt, upperFirst as ae } from "lodash";
36
36
  import "uuid";
37
37
  import { u as pt, c as ft, p as ge } from "./chunks/useLocalStorage.es.js";
38
38
  import "@module-federation/enhanced/runtime";
39
- import "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/semver/semver.js";
39
+ import "semver";
40
40
  import "./chunks/MenuContext.es.js";
41
41
  import { T as Po } from "./chunks/TableSettingsFallback.es.js";
42
42
  import { u as ht } from "./chunks/ViewsContext.es.js";
package/dist/hooks.es.js CHANGED
@@ -3,7 +3,7 @@ import { r as Yt, e as _t, w as Zt } from "./chunks/useLocalStorage.es.js";
3
3
  import { r as ee, f as re, w as oe } from "./chunks/MenuContext.es.js";
4
4
  import { loadRemote as M } from "@module-federation/enhanced/runtime";
5
5
  import { useRef as C, useState as k, useEffect as v, useCallback as N } from "react";
6
- import b from "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/semver/semver.js";
6
+ import b from "semver";
7
7
  import { f as se, u as ie, a as ae, b as de, c as ue, d as ce } from "./chunks/Watchers.es.js";
8
8
  import { u as me } from "./chunks/useActionTriggers.es.js";
9
9
  import { b1 as R } from "./chunks/searchTerms.es.js";
@@ -16,7 +16,7 @@ import { a as ye } from "./chunks/ProjectFoldersContext.es.js";
16
16
  import { u as we } from "./chunks/useGroupedPagination.es.js";
17
17
  import { jsx as P, jsxs as F } from "react/jsx-runtime";
18
18
  import "./chunks/ReviewablesSelector.es.js";
19
- import "/home/jakub/code/ynput/ayon-frontend/node_modules/match-sorter/dist/match-sorter.esm.js";
19
+ import "match-sorter";
20
20
  import { Button as O, Icon as $ } from "@ynput/ayon-react-components";
21
21
  import "clsx";
22
22
  import "./chunks/SimpleForm.es.js";
@@ -37,7 +37,7 @@ import "./chunks/Menu.es.js";
37
37
  import "./chunks/ColumnDropIndicator.es.js";
38
38
  import "@dnd-kit/core";
39
39
  import "@dnd-kit/sortable";
40
- import "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/@dnd-kit/utilities/dist/utilities.esm.js";
40
+ import "@dnd-kit/utilities";
41
41
  import "axios";
42
42
  import "./chunks/useCreateContextMenu.es.js";
43
43
  import "./chunks/VersionUploadContext.es.js";
package/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./chunks/ReviewablesSelector.es.js";
2
2
  import "react/jsx-runtime";
3
3
  import "react";
4
- import "/home/jakub/code/ynput/ayon-frontend/node_modules/match-sorter/dist/match-sorter.esm.js";
4
+ import "match-sorter";
5
5
  import "@ynput/ayon-react-components";
6
6
  import "clsx";
7
7
  import "./chunks/SimpleForm.es.js";
@@ -24,14 +24,14 @@ import "lodash";
24
24
  import "uuid";
25
25
  import "./chunks/useLocalStorage.es.js";
26
26
  import "@module-federation/enhanced/runtime";
27
- import "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/semver/semver.js";
27
+ import "semver";
28
28
  import { M as X, u as Y } from "./chunks/MenuContext.es.js";
29
29
  import { E as _ } from "./chunks/EmptyPlaceholder.es.js";
30
30
  import "./chunks/Menu.es.js";
31
31
  import "./chunks/ColumnDropIndicator.es.js";
32
32
  import "@dnd-kit/core";
33
33
  import "@dnd-kit/sortable";
34
- import "/home/jakub/code/ynput/ayon-frontend/shared/node_modules/@dnd-kit/utilities/dist/utilities.esm.js";
34
+ import "@dnd-kit/utilities";
35
35
  import "axios";
36
36
  import "./chunks/useCreateContextMenu.es.js";
37
37
  import "./chunks/VersionUploadContext.es.js";
@@ -76,6 +76,13 @@ declare type IconModel = {
76
76
  export { }
77
77
 
78
78
 
79
+ declare global {
80
+ interface Window {
81
+ senderId: string;
82
+ }
83
+ }
84
+
85
+
79
86
  declare module '@tanstack/react-table' {
80
87
  interface TableMeta<TData extends RowData> {
81
88
  options?: BuiltInFieldOptions;
@@ -90,13 +97,6 @@ declare module '@tanstack/react-table' {
90
97
  }
91
98
 
92
99
 
93
- declare global {
94
- interface Window {
95
- senderId: string;
96
- }
97
- }
98
-
99
-
100
100
  declare module '@tanstack/react-table' {
101
101
  interface FilterFns {
102
102
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -125,6 +125,13 @@ RefObject<{
125
125
  export { }
126
126
 
127
127
 
128
+ declare global {
129
+ interface Window {
130
+ senderId: string;
131
+ }
132
+ }
133
+
134
+
128
135
  declare module '@tanstack/react-table' {
129
136
  interface TableMeta<TData extends RowData> {
130
137
  options?: BuiltInFieldOptions;
@@ -139,13 +146,6 @@ declare module '@tanstack/react-table' {
139
146
  }
140
147
 
141
148
 
142
- declare global {
143
- interface Window {
144
- senderId: string;
145
- }
146
- }
147
-
148
-
149
149
  declare module '@tanstack/react-table' {
150
150
  interface FilterFns {
151
151
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -412,6 +412,13 @@ declare type User = {
412
412
  export { }
413
413
 
414
414
 
415
+ declare global {
416
+ interface Window {
417
+ senderId: string;
418
+ }
419
+ }
420
+
421
+
415
422
  declare module '@tanstack/react-table' {
416
423
  interface TableMeta<TData extends RowData> {
417
424
  options?: BuiltInFieldOptions;
@@ -426,13 +433,6 @@ declare module '@tanstack/react-table' {
426
433
  }
427
434
 
428
435
 
429
- declare global {
430
- interface Window {
431
- senderId: string;
432
- }
433
- }
434
-
435
-
436
436
  declare module '@tanstack/react-table' {
437
437
  interface FilterFns {
438
438
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -31,6 +31,13 @@ export declare type PickerSelection = Record<PickerEntityType, RowSelectionState
31
31
  export { }
32
32
 
33
33
 
34
+ declare global {
35
+ interface Window {
36
+ senderId: string;
37
+ }
38
+ }
39
+
40
+
34
41
  declare module '@tanstack/react-table' {
35
42
  interface TableMeta<TData extends RowData> {
36
43
  options?: BuiltInFieldOptions;
@@ -45,13 +52,6 @@ declare module '@tanstack/react-table' {
45
52
  }
46
53
 
47
54
 
48
- declare global {
49
- interface Window {
50
- senderId: string;
51
- }
52
- }
53
-
54
-
55
55
  declare module '@tanstack/react-table' {
56
56
  interface FilterFns {
57
57
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -316,6 +316,13 @@ declare type VersionSuggestionItem = {
316
316
  export { }
317
317
 
318
318
 
319
+ declare global {
320
+ interface Window {
321
+ senderId: string;
322
+ }
323
+ }
324
+
325
+
319
326
  declare module '@tanstack/react-table' {
320
327
  interface TableMeta<TData extends RowData> {
321
328
  options?: BuiltInFieldOptions;
@@ -330,13 +337,6 @@ declare module '@tanstack/react-table' {
330
337
  }
331
338
 
332
339
 
333
- declare global {
334
- interface Window {
335
- senderId: string;
336
- }
337
- }
338
-
339
-
340
340
  declare module '@tanstack/react-table' {
341
341
  interface FilterFns {
342
342
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -266,6 +266,13 @@ export declare const renderListTableFallbackValue: (value: unknown) => string;
266
266
  export { }
267
267
 
268
268
 
269
+ declare global {
270
+ interface Window {
271
+ senderId: string;
272
+ }
273
+ }
274
+
275
+
269
276
  declare module '@tanstack/react-table' {
270
277
  interface TableMeta<TData extends RowData> {
271
278
  options?: BuiltInFieldOptions;
@@ -280,13 +287,6 @@ declare module '@tanstack/react-table' {
280
287
  }
281
288
 
282
289
 
283
- declare global {
284
- interface Window {
285
- senderId: string;
286
- }
287
- }
288
-
289
-
290
290
  declare module '@tanstack/react-table' {
291
291
  interface FilterFns {
292
292
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -196,6 +196,13 @@ export declare const useNewEntityContext: () => NewEntityContextType;
196
196
  export { }
197
197
 
198
198
 
199
+ declare global {
200
+ interface Window {
201
+ senderId: string;
202
+ }
203
+ }
204
+
205
+
199
206
  declare module '@tanstack/react-table' {
200
207
  interface TableMeta<TData extends RowData> {
201
208
  options?: BuiltInFieldOptions;
@@ -210,13 +217,6 @@ declare module '@tanstack/react-table' {
210
217
  }
211
218
 
212
219
 
213
- declare global {
214
- interface Window {
215
- senderId: string;
216
- }
217
- }
218
-
219
-
220
220
  declare module '@tanstack/react-table' {
221
221
  interface FilterFns {
222
222
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -4082,6 +4082,13 @@ export declare const WRAP_MIN_ROW_HEIGHT: number;
4082
4082
  export { }
4083
4083
 
4084
4084
 
4085
+ declare global {
4086
+ interface Window {
4087
+ senderId: string;
4088
+ }
4089
+ }
4090
+
4091
+
4085
4092
  declare module '@tanstack/react-table' {
4086
4093
  interface TableMeta<TData extends RowData> {
4087
4094
  options?: BuiltInFieldOptions;
@@ -4096,13 +4103,6 @@ declare module '@tanstack/react-table' {
4096
4103
  }
4097
4104
 
4098
4105
 
4099
- declare global {
4100
- interface Window {
4101
- senderId: string;
4102
- }
4103
- }
4104
-
4105
-
4106
4106
  declare module '@tanstack/react-table' {
4107
4107
  interface FilterFns {
4108
4108
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -141,6 +141,13 @@ export declare const RepresentationsList: ({ entities }: Props) => JSX_2.Element
141
141
  export { }
142
142
 
143
143
 
144
+ declare global {
145
+ interface Window {
146
+ senderId: string;
147
+ }
148
+ }
149
+
150
+
144
151
  declare module '@tanstack/react-table' {
145
152
  interface TableMeta<TData extends RowData> {
146
153
  options?: BuiltInFieldOptions;
@@ -155,13 +162,6 @@ declare module '@tanstack/react-table' {
155
162
  }
156
163
 
157
164
 
158
- declare global {
159
- interface Window {
160
- senderId: string;
161
- }
162
- }
163
-
164
-
165
165
  declare module '@tanstack/react-table' {
166
166
  interface FilterFns {
167
167
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -241,6 +241,13 @@ export declare const useSimpleTableContext: () => SimpleTableContextValue;
241
241
  export { }
242
242
 
243
243
 
244
+ declare global {
245
+ interface Window {
246
+ senderId: string;
247
+ }
248
+ }
249
+
250
+
244
251
  declare module '@tanstack/react-table' {
245
252
  interface TableMeta<TData extends RowData> {
246
253
  options?: BuiltInFieldOptions;
@@ -255,13 +262,6 @@ declare module '@tanstack/react-table' {
255
262
  }
256
263
 
257
264
 
258
- declare global {
259
- interface Window {
260
- senderId: string;
261
- }
262
- }
263
-
264
-
265
265
  declare module '@tanstack/react-table' {
266
266
  interface FilterFns {
267
267
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -841,6 +841,13 @@ declare type ViewSettings = GetDefaultViewApiResponse['settings'];
841
841
  export { }
842
842
 
843
843
 
844
+ declare global {
845
+ interface Window {
846
+ senderId: string;
847
+ }
848
+ }
849
+
850
+
844
851
  declare module '@tanstack/react-table' {
845
852
  interface TableMeta<TData extends RowData> {
846
853
  options?: BuiltInFieldOptions;
@@ -855,13 +862,6 @@ declare module '@tanstack/react-table' {
855
862
  }
856
863
 
857
864
 
858
- declare global {
859
- interface Window {
860
- senderId: string;
861
- }
862
- }
863
-
864
-
865
865
  declare module '@tanstack/react-table' {
866
866
  interface FilterFns {
867
867
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -963,6 +963,13 @@ export declare const WORKING_VIEW_ID: "_working_";
963
963
  export { }
964
964
 
965
965
 
966
+ declare global {
967
+ interface Window {
968
+ senderId: string;
969
+ }
970
+ }
971
+
972
+
966
973
  declare module '@tanstack/react-table' {
967
974
  interface TableMeta<TData extends RowData> {
968
975
  options?: BuiltInFieldOptions;
@@ -977,13 +984,6 @@ declare module '@tanstack/react-table' {
977
984
  }
978
985
 
979
986
 
980
- declare global {
981
- interface Window {
982
- senderId: string;
983
- }
984
- }
985
-
986
-
987
987
  declare module '@tanstack/react-table' {
988
988
  interface FilterFns {
989
989
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -73292,6 +73292,13 @@ export declare type YnputConnectRequestModel = {
73292
73292
  export { }
73293
73293
 
73294
73294
 
73295
+ declare global {
73296
+ interface Window {
73297
+ senderId: string;
73298
+ }
73299
+ }
73300
+
73301
+
73295
73302
  declare module '@tanstack/react-table' {
73296
73303
  interface TableMeta<TData extends RowData> {
73297
73304
  options?: BuiltInFieldOptions;
@@ -73306,13 +73313,6 @@ declare module '@tanstack/react-table' {
73306
73313
  }
73307
73314
 
73308
73315
 
73309
- declare global {
73310
- interface Window {
73311
- senderId: string;
73312
- }
73313
- }
73314
-
73315
-
73316
73316
  declare module '@tanstack/react-table' {
73317
73317
  interface FilterFns {
73318
73318
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -3668,6 +3668,13 @@ export * from "primereact/confirmdialog";
3668
3668
  export { }
3669
3669
 
3670
3670
 
3671
+ declare global {
3672
+ interface Window {
3673
+ senderId: string;
3674
+ }
3675
+ }
3676
+
3677
+
3671
3678
  declare module '@tanstack/react-table' {
3672
3679
  interface TableMeta<TData extends RowData> {
3673
3680
  options?: BuiltInFieldOptions;
@@ -3682,13 +3689,6 @@ declare module '@tanstack/react-table' {
3682
3689
  }
3683
3690
 
3684
3691
 
3685
- declare global {
3686
- interface Window {
3687
- senderId: string;
3688
- }
3689
- }
3690
-
3691
-
3692
3692
  declare module '@tanstack/react-table' {
3693
3693
  interface FilterFns {
3694
3694
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -2396,6 +2396,13 @@ declare type YnputCloudSubscriptionModel = {
2396
2396
  export { }
2397
2397
 
2398
2398
 
2399
+ declare global {
2400
+ interface Window {
2401
+ senderId: string;
2402
+ }
2403
+ }
2404
+
2405
+
2399
2406
  declare module '@tanstack/react-table' {
2400
2407
  interface TableMeta<TData extends RowData> {
2401
2408
  options?: BuiltInFieldOptions;
@@ -2410,13 +2417,6 @@ declare module '@tanstack/react-table' {
2410
2417
  }
2411
2418
 
2412
2419
 
2413
- declare global {
2414
- interface Window {
2415
- senderId: string;
2416
- }
2417
- }
2418
-
2419
-
2420
2420
  declare module '@tanstack/react-table' {
2421
2421
  interface FilterFns {
2422
2422
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -610,6 +610,13 @@ export declare const writeSessionStorage: <T>(key: string, value: T) => void;
610
610
  export { }
611
611
 
612
612
 
613
+ declare global {
614
+ interface Window {
615
+ senderId: string;
616
+ }
617
+ }
618
+
619
+
613
620
  declare module '@tanstack/react-table' {
614
621
  interface TableMeta<TData extends RowData> {
615
622
  options?: BuiltInFieldOptions;
@@ -624,13 +631,6 @@ declare module '@tanstack/react-table' {
624
631
  }
625
632
 
626
633
 
627
- declare global {
628
- interface Window {
629
- senderId: string;
630
- }
631
- }
632
-
633
-
634
634
  declare module '@tanstack/react-table' {
635
635
  interface FilterFns {
636
636
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -62,6 +62,13 @@ declare interface UserImageProps {
62
62
  export { }
63
63
 
64
64
 
65
+ declare global {
66
+ interface Window {
67
+ senderId: string;
68
+ }
69
+ }
70
+
71
+
65
72
  declare module '@tanstack/react-table' {
66
73
  interface TableMeta<TData extends RowData> {
67
74
  options?: BuiltInFieldOptions;
@@ -76,13 +83,6 @@ declare module '@tanstack/react-table' {
76
83
  }
77
84
 
78
85
 
79
- declare global {
80
- interface Window {
81
- senderId: string;
82
- }
83
- }
84
-
85
-
86
86
  declare module '@tanstack/react-table' {
87
87
  interface FilterFns {
88
88
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
@@ -942,6 +942,13 @@ export declare const waitForRealtimeJitter: () => Promise<void>;
942
942
  export { }
943
943
 
944
944
 
945
+ declare global {
946
+ interface Window {
947
+ senderId: string;
948
+ }
949
+ }
950
+
951
+
945
952
  declare module '@tanstack/react-table' {
946
953
  interface TableMeta<TData extends RowData> {
947
954
  options?: BuiltInFieldOptions;
@@ -956,13 +963,6 @@ declare module '@tanstack/react-table' {
956
963
  }
957
964
 
958
965
 
959
- declare global {
960
- interface Window {
961
- senderId: string;
962
- }
963
- }
964
-
965
-
966
966
  declare module '@tanstack/react-table' {
967
967
  interface FilterFns {
968
968
  fuzzy: (row: Row<any>, columnId: string, searchValue: string[][], addMeta: (meta: any) => void) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynput/ayon-frontend-shared",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Shared React components for AYON frontend",
5
5
  "module": "dist/index.es.js",
6
6
  "exports": {
@@ -93,6 +93,7 @@
93
93
  "peerDependencies": {
94
94
  "@dnd-kit/core": "6.3.1",
95
95
  "@dnd-kit/sortable": "8.0.0",
96
+ "@dnd-kit/utilities": "3.2.2",
96
97
  "@reduxjs/toolkit": "2.11.2",
97
98
  "@rtk-query/graphql-request-base-query": "2.3.2",
98
99
  "@tanstack/react-table": "8.21.3",
@@ -106,16 +107,24 @@
106
107
  },
107
108
  "devDependencies": {
108
109
  "@babel/preset-typescript": "7.27.0",
110
+ "@dnd-kit/modifiers": "^9.0.0",
109
111
  "@microsoft/api-extractor": "^7.59.2",
110
112
  "@module-federation/enhanced": "2.3.2",
111
113
  "@module-federation/vite": "1.14.2",
114
+ "@uiw/react-textarea-code-editor": "^3.1.1",
112
115
  "@vitejs/plugin-react": "4.7.0",
116
+ "graphql-request": "^7.4.0",
117
+ "match-sorter": "^8.3.0",
118
+ "react-intersection-observer": "^11.0.1",
119
+ "react-use-websocket": "^4.13.0",
120
+ "semver": "^7.8.5",
113
121
  "typescript": "5.9.3",
114
122
  "unplugin-dts": "^1.1.1",
115
123
  "vite": "7.3.5",
116
124
  "vite-plugin-linter": "4.0.0"
117
125
  },
118
126
  "dependencies": {
127
+ "@dnd-kit/utilities": "^3.2.2",
119
128
  "@tanstack/match-sorter-utils": "8.19.4",
120
129
  "@tanstack/react-virtual": "3.13.23",
121
130
  "@ynput/ayon-player": "1.0.2",