@ynput/ayon-frontend-shared 0.7.0 → 0.7.2
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.
- package/dist/DetailsPanel.es.js +765 -739
- package/dist/ListTable.es.js +80 -80
- package/dist/NewEntity.es.js +2 -2
- package/dist/ProjectTreeTable.es.js +1424 -1409
- package/dist/Views.es.js +572 -570
- package/dist/api.es.js +300 -298
- package/dist/chunks/Actions.es.js +5 -5
- package/dist/chunks/DetailsDialog.es.js +3 -3
- package/dist/chunks/EntityPath.es.js +14 -14
- package/dist/chunks/EntityPickerDialog.es.js +1 -1
- package/dist/chunks/EntityTooltip.es.js +18 -18
- package/dist/chunks/Feed.es.js +2 -2
- package/dist/chunks/MetaWidget.es.js +2422 -2149
- package/dist/chunks/PlayableIcon.es.js +20 -20
- package/dist/chunks/ProjectContext.es.js +6 -6
- package/dist/chunks/RepresentationsList.es.js +1 -1
- package/dist/chunks/ReviewablesSelector.es.js +2 -2
- package/dist/chunks/Slicer.es.js +2 -2
- package/dist/chunks/TableExportContextInstance.es.js +1 -1
- package/dist/chunks/ThumbnailSimple.es.js +12 -12
- package/dist/chunks/Watchers.es.js +907 -855
- package/dist/chunks/getUris.es.js +1272 -1209
- package/dist/chunks/searchTerms.es.js +30 -66
- package/dist/chunks/useAttributeEnums.es.js +37 -37
- package/dist/chunks/viewUpdateHelper.es.js +10 -10
- package/dist/components.es.js +132 -131
- package/dist/context.es.js +76 -76
- package/dist/hooks.es.js +51 -50
- package/dist/types/ProjectTreeTable.d.ts +21 -1
- package/dist/types/Slicer.d.ts +6 -4
- package/dist/types/Views.d.ts +4 -0
- package/dist/types/api.d.ts +411 -438
- package/dist/types/components.d.ts +22 -0
- package/dist/types/context.d.ts +2 -0
- package/dist/types/hooks.d.ts +36 -1
- package/package.json +4 -4
|
@@ -60,7 +60,7 @@ import $t from "emojilib/ordered.json";
|
|
|
60
60
|
import { LexicalTypeaheadMenuPlugin as pt, MenuOption as gt } from "@lexical/react/LexicalTypeaheadMenuPlugin";
|
|
61
61
|
import { $findMatchingParent as W, mergeRegister as q, $getNearestNodeOfType as ir, $unwrapNode as sr } from "@lexical/utils";
|
|
62
62
|
import { createPortal as fe } from "react-dom";
|
|
63
|
-
import {
|
|
63
|
+
import { bj as ar } from "./getUris.es.js";
|
|
64
64
|
import "@module-federation/enhanced/runtime";
|
|
65
65
|
import { d as lr, H as cr } from "./TableExportContextInstance.es.js";
|
|
66
66
|
import "semver";
|
|
@@ -4958,25 +4958,25 @@ export {
|
|
|
4958
4958
|
yc as _,
|
|
4959
4959
|
na as a,
|
|
4960
4960
|
ga as a0,
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4961
|
+
Js as a1,
|
|
4962
|
+
sc as a2,
|
|
4963
|
+
oc as a3,
|
|
4964
|
+
ic as a4,
|
|
4965
|
+
Gl as a5,
|
|
4966
|
+
Wl as a6,
|
|
4967
|
+
Yl as a7,
|
|
4968
|
+
ql as a8,
|
|
4969
|
+
nc as a9,
|
|
4970
|
+
Vl as aa,
|
|
4971
|
+
ma as ab,
|
|
4972
|
+
Ql as ac,
|
|
4973
|
+
Jl as ad,
|
|
4974
|
+
Zl as ae,
|
|
4975
|
+
Xl as af,
|
|
4976
|
+
ec as ag,
|
|
4977
|
+
tc as ah,
|
|
4978
|
+
rc as ai,
|
|
4979
|
+
rt as aj,
|
|
4980
4980
|
mc as ak,
|
|
4981
4981
|
pc as al,
|
|
4982
4982
|
ua as am,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as P } from "react/jsx-runtime";
|
|
2
2
|
import { useState as M, useCallback as u } from "react";
|
|
3
3
|
import { u as F } from "./useCreateContextMenu.es.js";
|
|
4
|
-
import { T as
|
|
4
|
+
import { T as S, P as _ } from "./TableExportContextInstance.es.js";
|
|
5
5
|
import "./searchTerms.es.js";
|
|
6
|
-
import {
|
|
6
|
+
import { ca as w, c7 as B, dI as G } from "./getUris.es.js";
|
|
7
7
|
import "primereact/confirmdialog";
|
|
8
8
|
import "lodash";
|
|
9
9
|
import "react-toastify";
|
|
@@ -37,7 +37,7 @@ const W = ({
|
|
|
37
37
|
T(y, s);
|
|
38
38
|
};
|
|
39
39
|
return /* @__PURE__ */ P(
|
|
40
|
-
|
|
40
|
+
S.Provider,
|
|
41
41
|
{
|
|
42
42
|
value: {
|
|
43
43
|
resetFileUploadState: f,
|
|
@@ -94,10 +94,10 @@ const X = ({
|
|
|
94
94
|
isUninitialized: f,
|
|
95
95
|
error: d,
|
|
96
96
|
refetch: i
|
|
97
|
-
} =
|
|
97
|
+
} = w({ projectName: t }, { skip: !t }), { data: l = {}, refetch: y } = B(
|
|
98
98
|
{ projectName: t },
|
|
99
99
|
{ skip: !t }
|
|
100
|
-
), s = l.product_base_types?.default, { data: g } =
|
|
100
|
+
), s = l.product_base_types?.default, { data: g } = G(
|
|
101
101
|
{ projectName: t },
|
|
102
102
|
{
|
|
103
103
|
skip: !t
|
|
@@ -132,7 +132,7 @@ const X = ({
|
|
|
132
132
|
refetch: U
|
|
133
133
|
};
|
|
134
134
|
return /* @__PURE__ */ P(
|
|
135
|
-
|
|
135
|
+
_.Provider,
|
|
136
136
|
{
|
|
137
137
|
value: {
|
|
138
138
|
...Q,
|
|
@@ -12,7 +12,7 @@ import "uuid";
|
|
|
12
12
|
import "./searchTerms.es.js";
|
|
13
13
|
import { u as E } from "./useCreateContextMenu.es.js";
|
|
14
14
|
import { D as F } from "./DetailsDialog.es.js";
|
|
15
|
-
import {
|
|
15
|
+
import { c7 as H } from "./getUris.es.js";
|
|
16
16
|
const I = (d = []) => {
|
|
17
17
|
let n = [];
|
|
18
18
|
for (const t of d) {
|
|
@@ -12,7 +12,7 @@ import { CSS as Je } from "@dnd-kit/utilities";
|
|
|
12
12
|
import { I as ro } from "./InfoMessage.es.js";
|
|
13
13
|
import { S as vn } from "./SimpleForm.es.js";
|
|
14
14
|
import { bD as io, b6 as ao, bA as fn, by as bn, bC as Ut, br as so, bb as lo, bx as yn, bB as xn, bt as co } from "./searchTerms.es.js";
|
|
15
|
-
import {
|
|
15
|
+
import { bo as uo, bu as po, cK as mo, bi as go, dJ as ae, cr as ho } from "./getUris.es.js";
|
|
16
16
|
import "primereact/confirmdialog";
|
|
17
17
|
import { l as vo, b as fo, v as bo } from "./Watchers.es.js";
|
|
18
18
|
import { matchSorter as Ht } from "match-sorter";
|
|
@@ -26,7 +26,7 @@ import "./ContextMenuContextInstance.es.js";
|
|
|
26
26
|
import "react-redux";
|
|
27
27
|
import { Link as So } from "react-router-dom";
|
|
28
28
|
import { g as ve } from "./iconUtils.es.js";
|
|
29
|
-
import {
|
|
29
|
+
import { b7 as X, a as ke, be as ko, b as tt, bg as Co, bn as Io, aG as xe, b8 as te, aj as Eo, v as To, bl as No, bb as zt, b9 as jt, bc as Kt, bo as Po } from "./MetaWidget.es.js";
|
|
30
30
|
import "@tanstack/react-table";
|
|
31
31
|
import "date-fns";
|
|
32
32
|
import "lexical";
|
package/dist/chunks/Slicer.es.js
CHANGED
|
@@ -2,12 +2,12 @@ import { jsx as E, jsxs as H, Fragment as _e } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as z, useCallback as N, useMemo as M, useContext as pt, useEffect as se, forwardRef as ft, useRef as Ie, useId as mt, useImperativeHandle as ht, useLayoutEffect as we } from "react";
|
|
3
3
|
import { Splitter as gt, SplitterPanel as yt } from "primereact/splitter";
|
|
4
4
|
import U from "styled-components";
|
|
5
|
-
import {
|
|
5
|
+
import { i as bt, P as St, d as Me, U as Ye } from "./MetaWidget.es.js";
|
|
6
6
|
import "@module-federation/enhanced/runtime";
|
|
7
7
|
import { toast as $e } from "react-toastify";
|
|
8
8
|
import { InputText as Tt, Button as vt, Icon as It } from "@ynput/ayon-react-components";
|
|
9
9
|
import { bt as ze, bD as xt, bB as Qe, bA as Ct, bG as Lt } from "./searchTerms.es.js";
|
|
10
|
-
import {
|
|
10
|
+
import { dw as Je, cO as wt, bZ as Et, bD as Dt } from "./getUris.es.js";
|
|
11
11
|
import "primereact/confirmdialog";
|
|
12
12
|
import { p as Xe, y as Pe, x as me, d as Rt, a as Oe, o as kt, a7 as At, a6 as _t, u as Ze, ae as Mt } from "./TableExportContextInstance.es.js";
|
|
13
13
|
import "lodash";
|
|
@@ -9,7 +9,7 @@ import { confirmDialog as de } from "primereact/confirmdialog";
|
|
|
9
9
|
import { toast as H } from "react-toastify";
|
|
10
10
|
import "uuid";
|
|
11
11
|
import { bp as T, a as ue } from "./searchTerms.es.js";
|
|
12
|
-
import {
|
|
12
|
+
import { cU as pe } from "./getUris.es.js";
|
|
13
13
|
import "@module-federation/enhanced/runtime";
|
|
14
14
|
import "./ContextMenuContextInstance.es.js";
|
|
15
15
|
import { createPortal as ge } from "react-dom";
|
|
@@ -2,7 +2,7 @@ import { jsxs as m, jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { createPortal as R } from "react-dom";
|
|
3
3
|
import { createContext as z, useContext as L, useEffect as F } from "react";
|
|
4
4
|
import { bH as $, a_ as j } from "./searchTerms.es.js";
|
|
5
|
-
import {
|
|
5
|
+
import { H as A } from "./getUris.es.js";
|
|
6
6
|
import "primereact/confirmdialog";
|
|
7
7
|
import "lodash";
|
|
8
8
|
import { e as N } from "./expandRelativeDates.es.js";
|
|
@@ -20,13 +20,13 @@ import { U as O } from "./PlayableIcon.es.js";
|
|
|
20
20
|
import p, { keyframes as K } from "styled-components";
|
|
21
21
|
import { a as P } from "./EntityTooltip.es.js";
|
|
22
22
|
import { format as b, parse as k } from "date-fns";
|
|
23
|
-
import { g as
|
|
24
|
-
const
|
|
23
|
+
import { g as H } from "./getThumbnailUrl.es.js";
|
|
24
|
+
const Y = new Set(Object.keys(A).filter((e) => e !== "activity")), D = {
|
|
25
25
|
has_attachments: "activity_data.files",
|
|
26
26
|
// not `entity_type`: on inbox rows that column is always 'user'
|
|
27
27
|
origin_type: "activity_data.origin.type"
|
|
28
|
-
}, q = (e) => !!e && "key" in e,
|
|
29
|
-
const o =
|
|
28
|
+
}, q = (e) => !!e && "key" in e, Q = (e) => {
|
|
29
|
+
const o = D[e.key] ?? e.key;
|
|
30
30
|
if (e.key === "has_attachments")
|
|
31
31
|
return e.value ? { key: o, operator: "ne", value: [] } : null;
|
|
32
32
|
if (e.key === "in_review_session")
|
|
@@ -54,19 +54,19 @@ const D = new Set(Object.keys(A).filter((e) => e !== "activity")), H = {
|
|
|
54
54
|
} : { ...e, key: o };
|
|
55
55
|
}, C = (e) => {
|
|
56
56
|
if (q(e))
|
|
57
|
-
return
|
|
57
|
+
return Y.has(e.key) ? null : Q(e);
|
|
58
58
|
const o = (e.conditions || []).map((t) => C(t)).filter((t) => t !== null);
|
|
59
59
|
return o.length === 0 ? null : { operator: e.operator || "and", conditions: o };
|
|
60
|
-
},
|
|
60
|
+
}, W = (e) => {
|
|
61
61
|
if (!e || !e.conditions?.length) return null;
|
|
62
62
|
const o = N(e), t = C(o);
|
|
63
63
|
return t || null;
|
|
64
64
|
}, je = (e) => {
|
|
65
|
-
const o =
|
|
65
|
+
const o = W(e);
|
|
66
66
|
if (o)
|
|
67
67
|
return JSON.stringify(o);
|
|
68
|
-
},
|
|
69
|
-
const e = L(
|
|
68
|
+
}, G = z(void 0), g = () => {
|
|
69
|
+
const e = L(G);
|
|
70
70
|
if (!e)
|
|
71
71
|
throw new Error("useFeedContext must be used within a FeedProvider");
|
|
72
72
|
return e;
|
|
@@ -337,7 +337,7 @@ const D = new Set(Object.keys(A).filter((e) => e !== "activity")), H = {
|
|
|
337
337
|
iconOnly: d,
|
|
338
338
|
...y
|
|
339
339
|
}) => {
|
|
340
|
-
const h =
|
|
340
|
+
const h = H({
|
|
341
341
|
projectName: e,
|
|
342
342
|
entityType: o,
|
|
343
343
|
entityId: t,
|
|
@@ -359,7 +359,7 @@ const D = new Set(Object.keys(A).filter((e) => e !== "activity")), H = {
|
|
|
359
359
|
export {
|
|
360
360
|
Ae as A,
|
|
361
361
|
Ne as C,
|
|
362
|
-
|
|
362
|
+
G as F,
|
|
363
363
|
Be as T,
|
|
364
364
|
J as a,
|
|
365
365
|
je as b,
|