@ynput/ayon-frontend-shared 0.6.6 → 0.6.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 (42) hide show
  1. package/dist/DetailsPanel.es.js +3 -3
  2. package/dist/NewEntity.es.js +15 -15
  3. package/dist/ProjectTreeTable.es.js +500 -495
  4. package/dist/Slicer.es.js +11 -11
  5. package/dist/Views.es.js +213 -206
  6. package/dist/chunks/CodeEditor.es.js +30 -0
  7. package/dist/chunks/ColumnDropIndicator.styled.es.js +24 -24
  8. package/dist/chunks/ColumnHeaderMenuUI.es.js +2 -2
  9. package/dist/chunks/DeleteEntitiesContextInstance.es.js +103 -103
  10. package/dist/chunks/EntityPath.es.js +2 -2
  11. package/dist/chunks/EntityTooltip.es.js +1 -1
  12. package/dist/chunks/Feed.es.js +1875 -1857
  13. package/dist/chunks/JsonViewer.es.js +1 -1
  14. package/dist/chunks/Menu.es.js +1 -1
  15. package/dist/chunks/MenuItem.es.js +25 -25
  16. package/dist/chunks/MetaWidget.es.js +1537 -1516
  17. package/dist/chunks/PlayableIcon.es.js +127 -127
  18. package/dist/chunks/ReviewablesSelector.es.js +199 -196
  19. package/dist/chunks/SimpleTable.es.js +110 -110
  20. package/dist/chunks/Slicer.es.js +22 -22
  21. package/dist/chunks/TableSettingsFallback.es.js +1 -1
  22. package/dist/chunks/ThumbnailSimple.es.js +2 -2
  23. package/dist/chunks/VideoPlayer.es.js +1 -1
  24. package/dist/chunks/Watchers.es.js +19 -19
  25. package/dist/chunks/afterStartup.es.js +13 -0
  26. package/dist/chunks/getUris.es.js +790 -827
  27. package/dist/chunks/searchTerms.es.js +1 -3
  28. package/dist/chunks/useHierarchySelection.es.js +2 -2
  29. package/dist/chunks/useLoadModule.es.js +24 -23
  30. package/dist/components.es.js +202 -200
  31. package/dist/context.es.js +521 -492
  32. package/dist/hooks.es.js +190 -166
  33. package/dist/types/ContextMenu.d.ts +1 -0
  34. package/dist/types/ProjectTreeTable.d.ts +1 -0
  35. package/dist/types/Views.d.ts +11 -0
  36. package/dist/types/api.d.ts +198 -1174
  37. package/dist/types/components.d.ts +5 -1
  38. package/dist/types/context.d.ts +1 -0
  39. package/dist/types/hooks.d.ts +25 -1
  40. package/dist/types/util.d.ts +10 -0
  41. package/dist/util.es.js +44 -41
  42. package/package.json +2 -2
package/dist/Slicer.es.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { S as Ve, a as je, b as Ne, c as et, d as tt, e as st, f as nt, g as ot, r as rt, u as it, h as ct, i as lt, j as dt, k as at } from "./chunks/Slicer.es.js";
2
2
  import { jsx as Se } from "react/jsx-runtime";
3
- import { useState as A, useEffect as M, useRef as Y, useCallback as m, useMemo as L } from "react";
4
- import { a as z, o as U, s as ce, q as ye } from "./chunks/DeleteEntitiesContextInstance.es.js";
3
+ import { useState as A, useEffect as M, useRef as q, useCallback as m, useMemo as L } from "react";
4
+ import { a as z, r as U, w as ce, p as ye } from "./chunks/DeleteEntitiesContextInstance.es.js";
5
5
  import { S as he, c as pe, d as Ee } from "./chunks/MetaWidget.es.js";
6
6
  import { e as ft, u as St } from "./chunks/MetaWidget.es.js";
7
7
  import "@module-federation/enhanced/runtime";
8
+ import "react-toastify";
9
+ import "@ynput/ayon-react-components";
8
10
  import { az as B, aq as Ie } from "./chunks/searchTerms.es.js";
9
11
  import "./chunks/getUris.es.js";
10
12
  import "primereact/confirmdialog";
11
13
  import "lodash";
12
- import "react-toastify";
13
14
  import "uuid";
14
15
  import { u as le } from "./chunks/useLoadModule.es.js";
15
- import "@ynput/ayon-react-components";
16
16
  import "./chunks/ContextMenuContextInstance.es.js";
17
17
  import "clsx";
18
18
  import "react-dom";
@@ -60,7 +60,7 @@ const me = () => {
60
60
  window.removeEventListener("session-storage", t), window.removeEventListener("storage", t);
61
61
  };
62
62
  }, []);
63
- const S = Y(/* @__PURE__ */ new Map()), d = m((t, a) => {
63
+ const S = q(/* @__PURE__ */ new Map()), d = m((t, a) => {
64
64
  const u = typeof window > "u" ? null : sessionStorage.getItem(t), I = S.current.get(t);
65
65
  if (I && I.raw === u) return I.value;
66
66
  const _ = U(t, a);
@@ -174,11 +174,11 @@ const me = () => {
174
174
  k(t, g);
175
175
  },
176
176
  [u, k, t]
177
- ), F = `${s}-${e}`, Z = Y(/* @__PURE__ */ new Set());
177
+ ), F = `${s}-${e}`, Z = q(/* @__PURE__ */ new Set());
178
178
  M(() => {
179
179
  !x || l || Z.current.has(F) || (Z.current.add(F), Object.keys(W("hierarchy")).length || (C("hierarchy", y.rowSelection), b("hierarchy", y.expanded)), k(t));
180
180
  }, [x, l, F]);
181
- const V = Y(/* @__PURE__ */ new Set());
181
+ const V = q(/* @__PURE__ */ new Set());
182
182
  M(() => {
183
183
  if (V.current.has(F) || l || o.sliceType || o.rowSelection || o.setRowSelection || P?.length)
184
184
  return;
@@ -381,7 +381,7 @@ const me = () => {
381
381
  taskIds: [],
382
382
  versionIds: [],
383
383
  productIds: []
384
- }, q = {
384
+ }, Y = {
385
385
  taskFolderIds: {},
386
386
  versionFolderIds: {},
387
387
  productFolderIds: {}
@@ -408,13 +408,13 @@ const me = () => {
408
408
  slices: n,
409
409
  projectName: e
410
410
  }) => {
411
- const s = ge(), [c, l] = A($), [f, S] = A($), [d, o] = A(q), [y, h] = A(""), w = n.find((E) => E.sliceType === "entityList")?.rowSelection, i = L(
411
+ const s = ge(), [c, l] = A($), [f, S] = A($), [d, o] = A(Y), [y, h] = A(""), w = n.find((E) => E.sliceType === "entityList")?.rowSelection, i = L(
412
412
  () => Object.keys(w ?? {}).filter((E) => w?.[E] && !E.startsWith("folder-")).sort(),
413
413
  [w]
414
414
  ), P = i.length && e ? `${e}|${i}` : "";
415
415
  return M(() => {
416
416
  if (!P) {
417
- l($), S($), o(q), h("");
417
+ l($), S($), o(Y), h("");
418
418
  return;
419
419
  }
420
420
  let E = !1;
@@ -435,7 +435,7 @@ const me = () => {
435
435
  );
436
436
  E || (l(u), o(a));
437
437
  } catch (x) {
438
- console.error("Error fetching entity list IDs:", x), E || (l($), S($), o(q));
438
+ console.error("Error fetching entity list IDs:", x), E || (l($), S($), o(Y));
439
439
  } finally {
440
440
  E || h(P);
441
441
  }