@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
@@ -1,14 +1,16 @@
1
1
  import "react/jsx-runtime";
2
2
  import "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";
7
8
  import "./getUris.es.js";
8
9
  import "primereact/confirmdialog";
9
- import { a as o } from "./TableExportContextInstance.es.js";
10
+ import { b as o } 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";
@@ -16,10 +18,10 @@ import "react-dom";
16
18
  import "react-redux";
17
19
  import "react-router-dom";
18
20
  import { u as t } from "./MetaWidget.es.js";
19
- const k = () => {
21
+ const H = () => {
20
22
  const i = t(), { powerLicense: r } = o();
21
23
  return i ? (r ? i.slices : i.slices?.slice(0, 1))?.some((e) => e.sliceType === "hierarchy") ? i.getPanelSelection("hierarchy") : i.pinnedSlice?.rowSelection ?? null : null;
22
24
  };
23
25
  export {
24
- k as u
26
+ H as u
25
27
  };
@@ -1,21 +1,23 @@
1
1
  import "react/jsx-runtime";
2
2
  import { useState as d, useRef as z, useEffect as I } from "react";
3
3
  import { loadRemote as M } from "@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";
7
8
  import "./getUris.es.js";
8
9
  import "primereact/confirmdialog";
9
- import { c as q } from "./TableExportContextInstance.es.js";
10
+ import { a as q } from "./TableExportContextInstance.es.js";
10
11
  import "lodash";
11
12
  import "uuid";
13
+ import "axios";
12
14
  import h from "semver";
13
15
  import "./ContextMenuContextInstance.es.js";
14
16
  import "clsx";
15
17
  import "react-dom";
16
18
  import "react-redux";
17
19
  import "react-router-dom";
18
- const J = ({
20
+ const P = ({
19
21
  addon: r,
20
22
  remote: t,
21
23
  module: e,
@@ -24,13 +26,13 @@ const J = ({
24
26
  skip: f = !1,
25
27
  defer: l = !1
26
28
  }) => {
27
- const { remotesInitialized: c, modules: a } = q(), [v, o] = d(!0), [u, m] = d(!1), [R, p] = d(!1), g = z(L);
29
+ const { remotesInitialized: m, modules: a } = q(), [v, o] = d(!0), [u, c] = d(!1), [R, p] = d(!1), g = z(L);
28
30
  return I(() => {
29
31
  if (f) {
30
- o(!1), m(!0);
32
+ o(!1), c(!0);
31
33
  return;
32
34
  }
33
- if (l || !c || !r || !t || !e) return;
35
+ if (l || !m || !r || !t || !e) return;
34
36
  const i = a.find((n) => n.addonName === r);
35
37
  if (!i) {
36
38
  console.log("remote not found", { addon: r, remote: t, module: e }), o(!1);
@@ -55,11 +57,11 @@ const J = ({
55
57
  o(!0), M(`${t}/${e}`, {
56
58
  from: "runtime"
57
59
  }).then((n) => {
58
- m(e), o(!1), n && (g.current = n.default);
60
+ c(e), o(!1), n && (g.current = n.default);
59
61
  }).catch((n) => {
60
62
  o(!1), console.error("error loading remote", t, e, n);
61
63
  });
62
- }, [u, c, a, r, t, e, s, f, l]), [
64
+ }, [u, m, a, r, t, e, s, f, l]), [
63
65
  g.current,
64
66
  {
65
67
  isLoaded: u === e,
@@ -72,5 +74,5 @@ const J = ({
72
74
  ];
73
75
  };
74
76
  export {
75
- J as u
77
+ P as u
76
78
  };
@@ -9,7 +9,9 @@ import "react/jsx-runtime";
9
9
  import { e as L } from "./TableExportContextInstance.es.js";
10
10
  import "@ynput/ayon-react-components";
11
11
  import "@module-federation/enhanced/runtime";
12
+ import "@ynput/ayon-addon/host";
12
13
  import "lodash";
14
+ import "axios";
13
15
  import "./ContextMenuContextInstance.es.js";
14
16
  import "clsx";
15
17
  import "react-dom";
@@ -26,7 +28,7 @@ const N = () => {
26
28
  v || (v = !0, queueMicrotask(() => {
27
29
  v = !1;
28
30
  }));
29
- }, $ = async (e, n, o, t = {}, r, g, f, i) => {
31
+ }, $ = async (e, n, o, t = {}, r, g, m, i) => {
30
32
  const {
31
33
  viewSettings: a,
32
34
  viewType: c,
@@ -41,24 +43,24 @@ const N = () => {
41
43
  const p = s?.id, y = s?.working;
42
44
  try {
43
45
  n(o);
44
- const { settings: S, workingViewId: W } = f(), h = S ?? a;
46
+ const { settings: S, workingViewId: W } = m(), h = S ?? a;
45
47
  if (h === void 0 && !l) {
46
48
  console.warn(
47
49
  "updateViewSettings: no settings baseline available, aborting to prevent data loss."
48
50
  );
49
51
  return;
50
52
  }
51
- const C = { ...h, ...e }, I = P(C), m = W ?? d?.id;
52
- m && (I.id = m);
53
+ const C = { ...h, ...e }, I = P(C), f = W ?? d?.id;
54
+ f && (I.id = f);
53
55
  const j = I.id, E = g(
54
56
  {
55
- payload: m ? { settings: C } : I,
57
+ payload: f ? { settings: C } : I,
56
58
  viewType: c,
57
59
  projectName: V
58
60
  },
59
- m
61
+ f
60
62
  );
61
- i(), (!y || s?.id !== m) && (s && w(!0), u(j)), await E, n(null), t.successMessage && M.success(t.successMessage);
63
+ i(), (!y || s?.id !== f) && (s && w(!0), u(j)), await E, n(null), t.successMessage && M.success(t.successMessage);
62
64
  } catch (S) {
63
65
  n(null), p && u(p), s && !y && w(!1);
64
66
  const W = t.errorMessage || `Failed to update view settings: ${S}`;
@@ -114,8 +116,8 @@ const N = () => {
114
116
  ...e,
115
117
  [t]: r.length ? T(e[t] || {}, r.join("."), o) : o
116
118
  } : e;
117
- }, ce = (e, n) => {
118
- const { viewSettings: o, isLoadingViews: t } = L(), { updateViewSettings: r, getLatestSettings: g } = z(), [f, i] = U(null), a = R(null), c = o, V = f !== null ? f : F(c, e) ?? n, s = k((d) => {
119
+ }, de = (e, n) => {
120
+ const { viewSettings: o, isLoadingViews: t } = L(), { updateViewSettings: r, getLatestSettings: g } = z(), [m, i] = U(null), a = R(null), c = o, V = m !== null ? m : F(c, e) ?? n, s = k((d) => {
119
121
  a.current = d, i(d);
120
122
  }, []), u = k(
121
123
  (d) => {
@@ -147,5 +149,5 @@ export {
147
149
  $ as b,
148
150
  x as c,
149
151
  P as g,
150
- ce as u
152
+ de as u
151
153
  };