@ynput/ayon-frontend-shared 0.6.5 → 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 (46) hide show
  1. package/dist/DetailsPanel.es.js +3 -3
  2. package/dist/NewEntity.es.js +15 -15
  3. package/dist/ProjectTreeTable.es.js +430 -433
  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 +958 -931
  13. package/dist/chunks/JsonViewer.es.js +1 -1
  14. package/dist/chunks/Menu.es.js +169 -167
  15. package/dist/chunks/MenuItem.es.js +109 -74
  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/SimpleForm.es.js +78 -75
  20. package/dist/chunks/SimpleTable.es.js +110 -110
  21. package/dist/chunks/Slicer.es.js +22 -22
  22. package/dist/chunks/TableSettingsFallback.es.js +1 -1
  23. package/dist/chunks/ThumbnailSimple.es.js +2 -2
  24. package/dist/chunks/VideoPlayer.es.js +1 -1
  25. package/dist/chunks/Watchers.es.js +19 -19
  26. package/dist/chunks/afterStartup.es.js +13 -0
  27. package/dist/chunks/getUris.es.js +926 -964
  28. package/dist/chunks/queryFilterToClientFilter.es.js +90 -81
  29. package/dist/chunks/searchTerms.es.js +1 -0
  30. package/dist/chunks/useHierarchySelection.es.js +2 -2
  31. package/dist/chunks/useLoadModule.es.js +24 -23
  32. package/dist/components.es.js +202 -200
  33. package/dist/context.es.js +521 -492
  34. package/dist/hooks.es.js +190 -166
  35. package/dist/types/ContextMenu.d.ts +1 -0
  36. package/dist/types/Feed.d.ts +1 -1
  37. package/dist/types/ProjectTreeTable.d.ts +4 -5
  38. package/dist/types/Slicer.d.ts +1 -1
  39. package/dist/types/Views.d.ts +13 -2
  40. package/dist/types/api.d.ts +203 -1175
  41. package/dist/types/components.d.ts +14 -3
  42. package/dist/types/context.d.ts +3 -2
  43. package/dist/types/hooks.d.ts +25 -1
  44. package/dist/types/util.d.ts +11 -1
  45. package/dist/util.es.js +44 -41
  46. package/package.json +2 -2
@@ -5,7 +5,7 @@ import T, { keyframes as St } from "styled-components";
5
5
  import { bo as Ct } from "./chunks/searchTerms.es.js";
6
6
  import { bm as Tt, bK as Nt, bZ as Et, ct as qe, bu as Ke, t as Dt, bO as It, c8 as Pt } from "./chunks/getUris.es.js";
7
7
  import "primereact/confirmdialog";
8
- import { c as Ft, y as At, H as Ot, G as Rt, z as jt, w as Xe, A as Vt, B as Ut, E as $t, I as Lt, J as _t, K as Mt, N as Ht, W as Bt, s as Wt } from "./chunks/Watchers.es.js";
8
+ import { o as Ft, y as At, H as Ot, G as Rt, z as jt, w as Xe, A as Vt, B as Ut, E as $t, I as Lt, J as _t, K as Mt, N as Ht, W as Bt, s as Wt } from "./chunks/Watchers.es.js";
9
9
  import { O as wa, Q as xa, V as Sa, X as Ca, T as Ta } from "./chunks/Watchers.es.js";
10
10
  import { E as zt, R as Gt, a as Qt } from "./chunks/EntityPath.es.js";
11
11
  import { union as ue, upperFirst as Je } from "lodash";
@@ -13,7 +13,7 @@ import "react-toastify";
13
13
  import "uuid";
14
14
  import { a as qt, b as Kt, A as _e, e as Xt } from "./chunks/activeEntities.es.js";
15
15
  import "@module-federation/enhanced/runtime";
16
- import { v as q, u as Jt, T as Yt, a6 as Zt, a0 as en, a8 as tn, B as nn, a7 as sn, X as an } from "./chunks/DeleteEntitiesContextInstance.es.js";
16
+ import { o as q, u as Jt, T as Yt, a6 as Zt, a0 as en, a8 as tn, B as nn, a7 as sn, X as an } from "./chunks/DeleteEntitiesContextInstance.es.js";
17
17
  import "semver";
18
18
  import { T as on, P as Ye } from "./chunks/ProjectContext.es.js";
19
19
  import "react-dom";
@@ -1946,7 +1946,7 @@ const ks = T.div`
1946
1946
  border-radius: var(--border-radius-m);
1947
1947
 
1948
1948
  .icon {
1949
- font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 300, 'opsz' 20;
1949
+ font-variation-settings: 'FILL' 1;
1950
1950
  }
1951
1951
  `, va = () => {
1952
1952
  const { pip: e } = q(), n = e?.entityType, t = e?.entities || [], o = e?.scope || "", s = t.length > 0 && !!n, a = t.map((y) => y.projectName), { data: r = [] } = It({ projects: a }, { skip: !s }), { data: c = {}, isFetching: m } = Pt(
@@ -8,9 +8,9 @@ import { p as be, c as Ze, a as Ge } from "./chunks/iconUtils.es.js";
8
8
  import { bi as Qe } from "./chunks/searchTerms.es.js";
9
9
  import { dn as Ye } from "./chunks/getUris.es.js";
10
10
  import "@module-federation/enhanced/runtime";
11
- import { x as Te, y as $e, M as et } from "./chunks/DeleteEntitiesContextInstance.es.js";
11
+ import { Dropdown as De, Icon as Q, InputText as he, Button as fe, InputSwitch as Te, InputNumber as je, Spacer as $e, theme as qe, Dialog as et, ShortcutTag as tt, Toolbar as nt, SaveButton as at } from "@ynput/ayon-react-components";
12
+ import { x as Ne, y as ze, M as rt } from "./chunks/DeleteEntitiesContextInstance.es.js";
12
13
  import "semver";
13
- import { Dropdown as De, Icon as Q, InputText as he, Button as fe, InputSwitch as Ne, InputNumber as je, Spacer as ze, theme as qe, Dialog as tt, ShortcutTag as nt, Toolbar as at, SaveButton as rt } from "@ynput/ayon-react-components";
14
14
  import "./chunks/ContextMenuContextInstance.es.js";
15
15
  import Ae from "clsx";
16
16
  import "uuid";
@@ -53,7 +53,7 @@ const Ee = (i, m, u) => {
53
53
  );
54
54
  return c ? c.name : "";
55
55
  }, xn = ({ children: i }) => {
56
- const { projectName: m, ...u } = Te(), { attribFields: c } = ot(), { findNonInheritedValues: w, getFolderById: h } = $e(), { attrib: n = {}, statuses: D } = u || {}, { anatomy: r } = Te(), { entity_naming: q = { capitalization: "lower", separator: "_" } } = r, { rowSelection: v, sliceType: O } = st(), j = D?.filter((a) => a.scope?.includes("task"))?.[0]?.name || D?.[0]?.name || "none", W = D?.filter((a) => a.scope?.includes("folder"))?.[0]?.name || D?.[0]?.name || "none", [F, R] = z(null), [p, K] = z(null), L = { label: "", subType: "", name: "" }, [b, ne] = z(L), [H, J] = z({
56
+ const { projectName: m, ...u } = Ne(), { attribFields: c } = ot(), { findNonInheritedValues: w, getFolderById: h } = ze(), { attrib: n = {}, statuses: D } = u || {}, { anatomy: r } = Ne(), { entity_naming: q = { capitalization: "lower", separator: "_" } } = r, { rowSelection: v, sliceType: O } = st(), j = D?.filter((a) => a.scope?.includes("task"))?.[0]?.name || D?.[0]?.name || "none", W = D?.filter((a) => a.scope?.includes("folder"))?.[0]?.name || D?.[0]?.name || "none", [F, R] = z(null), [p, K] = z(null), L = { label: "", subType: "", name: "" }, [b, ne] = z(L), [H, J] = z({
57
57
  active: !1,
58
58
  increment: "",
59
59
  length: 10,
@@ -646,7 +646,7 @@ const Ct = ({
646
646
  /* @__PURE__ */ f(re, { children: [
647
647
  /* @__PURE__ */ t("label", { children: "Prefix" }),
648
648
  /* @__PURE__ */ t(
649
- Ne,
649
+ Te,
650
650
  {
651
651
  checked: b,
652
652
  id: "prefix",
@@ -718,7 +718,7 @@ const Ct = ({
718
718
  }
719
719
  )
720
720
  ] }),
721
- /* @__PURE__ */ t(ze, {}),
721
+ /* @__PURE__ */ t($e, {}),
722
722
  n && /* @__PURE__ */ t(
723
723
  fe,
724
724
  {
@@ -751,7 +751,7 @@ const Ct = ({
751
751
  onOpenNew: m,
752
752
  enabled: u = !0
753
753
  }) => {
754
- const { menuOpen: c } = Pe(et) || { menuOpen: !1 }, { editingCellId: w } = Pe(lt) || { editingCellId: null };
754
+ const { menuOpen: c } = Pe(rt) || { menuOpen: !1 }, { editingCellId: w } = Pe(lt) || { editingCellId: null };
755
755
  Le(() => {
756
756
  if (!u) return;
757
757
  const h = (n) => {
@@ -895,7 +895,7 @@ const Ct = ({
895
895
  ] })
896
896
  ] })
897
897
  ] });
898
- }, qt = E(tt)`
898
+ }, qt = E(et)`
899
899
  .body {
900
900
  overflow: visible;
901
901
  }
@@ -956,7 +956,7 @@ const Ct = ({
956
956
  showDialog: c = !0,
957
957
  enableShortcuts: w = !0
958
958
  }) => {
959
- const { ...h } = Te(), {
959
+ const { ...h } = Ne(), {
960
960
  entityType: n,
961
961
  setEntityType: D,
962
962
  entityForm: r,
@@ -967,7 +967,7 @@ const Ct = ({
967
967
  onOpenNew: W,
968
968
  config: F,
969
969
  parentFolderIds: R
970
- } = ft(), [p, K] = z(!1), { selectedCells: L } = it() || {}, b = ht(), { getFolderById: ne } = $e(), H = ct(), J = H?.getEntityById, X = H?.showHierarchy ?? !0, ae = ge(() => {
970
+ } = ft(), [p, K] = z(!1), { selectedCells: L } = it() || {}, b = ht(), { getFolderById: ne } = ze(), H = ct(), J = H?.getEntityById, X = H?.showHierarchy ?? !0, ae = ge(() => {
971
971
  if (R !== null) return R;
972
972
  const e = L ? Array.from(L).map((T) => dt(T)) : [], x = Array.from(
973
973
  new Set(
@@ -1105,7 +1105,7 @@ const Ct = ({
1105
1105
  children: [
1106
1106
  /* @__PURE__ */ t(Q, { icon: e.icon }),
1107
1107
  /* @__PURE__ */ t("span", { className: "label", children: e.label }),
1108
- /* @__PURE__ */ t(nt, { children: e.shortcut })
1108
+ /* @__PURE__ */ t(tt, { children: e.shortcut })
1109
1109
  ]
1110
1110
  }
1111
1111
  ),
@@ -1126,11 +1126,11 @@ const Ct = ({
1126
1126
  size: v.active ? "lg" : "md",
1127
1127
  style: { maxWidth: v.active ? "unset" : 430 },
1128
1128
  enableBackdropClose: !1,
1129
- footer: /* @__PURE__ */ f(at, { onFocus: () => s(!1), style: { width: "100%" }, children: [
1129
+ footer: /* @__PURE__ */ f(nt, { onFocus: () => s(!1), style: { width: "100%" }, children: [
1130
1130
  n === "folder" && /* @__PURE__ */ f(ue, { children: [
1131
1131
  /* @__PURE__ */ t("span", { children: "Sequence" }),
1132
1132
  /* @__PURE__ */ t(
1133
- Ne,
1133
+ Te,
1134
1134
  {
1135
1135
  checked: v.active,
1136
1136
  onChange: (e) => O({
@@ -1140,17 +1140,17 @@ const Ct = ({
1140
1140
  }
1141
1141
  )
1142
1142
  ] }),
1143
- /* @__PURE__ */ t(ze, {}),
1143
+ /* @__PURE__ */ t($e, {}),
1144
1144
  /* @__PURE__ */ t("span", { children: "Create more" }),
1145
1145
  /* @__PURE__ */ t(
1146
- Ne,
1146
+ Te,
1147
1147
  {
1148
1148
  checked: p,
1149
1149
  onChange: (e) => K(e.target.checked)
1150
1150
  }
1151
1151
  ),
1152
1152
  /* @__PURE__ */ t(
1153
- rt,
1153
+ at,
1154
1154
  {
1155
1155
  label: te[n].createLabel,
1156
1156
  onClick: () => se(p),