@ynput/ayon-frontend-shared 0.6.0 → 0.6.1
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/ContextMenu.es.js +34 -16
- package/dist/DetailsPanel.es.js +292 -298
- package/dist/Feed.es.js +179 -50
- package/dist/ListTable.es.js +32 -35
- package/dist/NewEntity.es.js +1256 -11
- package/dist/ProjectTreeTable.es.js +4451 -2965
- package/dist/SimpleTable.es.js +8 -7
- package/dist/Slicer.es.js +451 -147
- package/dist/Views.es.js +918 -310
- package/dist/chunks/Actions.es.js +9 -4
- package/dist/chunks/ColumnDropIndicator.es.js +174 -328
- package/dist/chunks/ColumnDropIndicator.styled.es.js +281 -0
- package/dist/chunks/ColumnHeaderMenuUI.es.js +52 -0
- package/dist/chunks/ContextMenuContextInstance.es.js +12 -0
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +229 -0
- package/dist/chunks/DeleteEntitiesContextInstance.es.js +827 -0
- package/dist/chunks/EmptyPlaceholder.es.js +4 -4
- package/dist/chunks/EntityPath.es.js +58 -53
- package/dist/chunks/EntityPickerDialog.es.js +24 -20
- package/dist/chunks/EntityTooltip.es.js +20 -13
- package/dist/chunks/EntityUpdatesContext.es.js +38 -96
- package/dist/chunks/Feed.es.js +1495 -1439
- package/dist/chunks/FilterErrorActions.es.js +25 -229
- package/dist/chunks/Menu.es.js +21 -17
- package/dist/chunks/MenuContext.es.js +14 -65
- package/dist/chunks/MenuItem.es.js +34 -24
- package/dist/chunks/MetaWidget.es.js +2835 -4301
- package/dist/chunks/NewEntityContextInstance.es.js +11 -0
- package/dist/chunks/PlayableIcon.es.js +1532 -1594
- package/dist/chunks/ProjectContext.es.js +102 -66
- package/dist/chunks/RepresentationsList.es.js +1 -1
- package/dist/chunks/ReviewablesSelector.es.js +457 -458
- package/dist/chunks/SimpleForm.es.js +9 -9
- package/dist/chunks/SimpleTable.es.js +15 -13
- package/dist/chunks/Slicer.es.js +163 -154
- package/dist/chunks/TableSettingsFallback.es.js +25 -13
- package/dist/chunks/ThumbnailSimple.es.js +150 -261
- package/dist/chunks/VersionUploadContextInstance.es.js +12 -0
- package/dist/chunks/VideoPlayer.es.js +24 -28
- package/dist/chunks/Watchers.es.js +384 -389
- package/dist/chunks/entityDefinitions.es.js +2 -350
- package/dist/chunks/extractVersionFromFilename.es.js +28 -0
- package/dist/chunks/getBundleMode.es.js +61 -16
- package/dist/chunks/getUris.es.js +737 -712
- package/dist/chunks/searchTerms.es.js +57 -56
- package/dist/chunks/useAttributeEnums.es.js +4 -4
- package/dist/chunks/useCreateContextMenu.es.js +66 -90
- package/dist/chunks/useHierarchySelection.es.js +24 -0
- package/dist/chunks/useLoadModule.es.js +74 -0
- package/dist/chunks/useQueryArgumentChangeLoading.es.js +11 -0
- package/dist/chunks/versionUploadHelpers.es.js +16 -42
- package/dist/chunks/viewUpdateHelper.es.js +67 -50
- package/dist/components.es.js +1425 -999
- package/dist/context.es.js +791 -80
- package/dist/hooks.es.js +115 -120
- package/dist/index.es.js +19 -23
- package/dist/types/Actions.d.ts +7 -7
- package/dist/types/ContextMenu.d.ts +11 -8
- package/dist/types/DetailsPanel.d.ts +102 -9
- package/dist/types/EntityPickerDialog.d.ts +7 -7
- package/dist/types/Feed.d.ts +11 -8
- package/dist/types/ListTable.d.ts +7 -7
- package/dist/types/NewEntity.d.ts +16 -10
- package/dist/types/ProjectTreeTable.d.ts +22 -115
- package/dist/types/RepresentationsList.d.ts +7 -7
- package/dist/types/SimpleTable.d.ts +11 -8
- package/dist/types/Slicer.d.ts +10 -7
- package/dist/types/Views.d.ts +10 -7
- package/dist/types/api.d.ts +132 -120
- package/dist/types/components.d.ts +13 -8
- package/dist/types/context.d.ts +56 -16
- package/dist/types/hooks.d.ts +7 -7
- package/dist/types/index.d.ts +7 -7
- package/dist/types/util.d.ts +12 -7
- package/dist/util.es.js +72 -71
- package/package.json +1 -1
- package/dist/chunks/DeleteEntitiesContext.es.js +0 -748
- package/dist/chunks/DetailsPanelContext.es.js +0 -155
- package/dist/chunks/GlobalContext.es.js +0 -52
- package/dist/chunks/NewEntityContext.es.js +0 -1242
- package/dist/chunks/ProjectFoldersContext.es.js +0 -134
- package/dist/chunks/ProjectFoldersContextInstance.es.js +0 -7
- package/dist/chunks/VersionUploadContext.es.js +0 -232
- package/dist/chunks/ViewsContext.es.js +0 -878
- package/dist/chunks/uriUtils.es.js +0 -48
- package/dist/chunks/useColumnDragRestriction.es.js +0 -158
- package/dist/chunks/useLocalStorage.es.js +0 -355
- package/dist/chunks/useSessionStorage.es.js +0 -61
- /package/dist/{useCreateContextMenu.css → ContextMenuContextInstance.css} +0 -0
|
@@ -1,248 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Button as
|
|
1
|
+
import { jsxs as e, Fragment as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Button as i } from "@ynput/ayon-react-components";
|
|
3
3
|
import "lodash";
|
|
4
4
|
import "primereact/confirmdialog";
|
|
5
5
|
import "react-toastify";
|
|
6
|
-
import { c as
|
|
6
|
+
import { c as n } from "./copyToClipboard.es.js";
|
|
7
7
|
import "uuid";
|
|
8
8
|
import "./searchTerms.es.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
}, z = () => {
|
|
25
|
-
const e = window;
|
|
26
|
-
typeof e.Featurebase != "function" && (e.Featurebase = function() {
|
|
27
|
-
(e.Featurebase.q = e.Featurebase.q || []).push(arguments);
|
|
28
|
-
});
|
|
29
|
-
}, C = r?.version?.split("+")[0] || "unknown", S = r?.version?.split("+")[1] || "unknown", E = () => {
|
|
30
|
-
if (!o?.name || !s?.available) return;
|
|
31
|
-
const e = {
|
|
32
|
-
...s.data,
|
|
33
|
-
customFields: {
|
|
34
|
-
origin: window.location.origin,
|
|
35
|
-
serverVersion: C,
|
|
36
|
-
frontendVersion: S,
|
|
37
|
-
instanceId: d?.instanceId
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
console.log(e), window.Featurebase("identify", e, (a) => {
|
|
41
|
-
a ? console.error(a) : console.log("Featurebase identify completed");
|
|
42
|
-
});
|
|
43
|
-
}, [c, x] = l(!1), [M, P] = l(0), _ = () => {
|
|
44
|
-
const e = window;
|
|
45
|
-
if (typeof e.Featurebase == "function") {
|
|
46
|
-
if (console.log("Initializing Featurebase messenger widget"), !s?.available)
|
|
47
|
-
return console.warn("messenger verification not available, skipping messenger init");
|
|
48
|
-
e.Featurebase(
|
|
49
|
-
"boot",
|
|
50
|
-
{
|
|
51
|
-
theme: "dark",
|
|
52
|
-
...s?.data
|
|
53
|
-
},
|
|
54
|
-
(t) => {
|
|
55
|
-
t ? console.error(t) : (console.log("Featurebase messenger completed"), x(!0), e.Featurebase("onUnreadCountChange", function(a) {
|
|
56
|
-
P(a);
|
|
57
|
-
}));
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
}, I = () => {
|
|
62
|
-
const e = [];
|
|
63
|
-
if (o?.data?.isAdmin) {
|
|
64
|
-
const a = ["Server", "Addon", "Pipeline"];
|
|
65
|
-
e.push(...a);
|
|
66
|
-
} else r?.disableChangelog || e.push("Highlights");
|
|
67
|
-
const t = window;
|
|
68
|
-
return typeof t.Featurebase == "function" && t.Featurebase("init_changelog_widget", {
|
|
69
|
-
organization: "ayon",
|
|
70
|
-
dropdown: {
|
|
71
|
-
enabled: !0
|
|
72
|
-
},
|
|
73
|
-
popup: {
|
|
74
|
-
enabled: !0,
|
|
75
|
-
usersName: o?.attrib?.fullName,
|
|
76
|
-
autoOpenForNewUpdates: !0
|
|
77
|
-
},
|
|
78
|
-
category: e,
|
|
79
|
-
theme: "dark"
|
|
80
|
-
}), !1;
|
|
81
|
-
}, L = () => {
|
|
82
|
-
const e = window;
|
|
83
|
-
return typeof e.Featurebase == "function" && e.Featurebase(
|
|
84
|
-
"initialize_feedback_widget",
|
|
85
|
-
{
|
|
86
|
-
organization: "ayon",
|
|
87
|
-
theme: "dark",
|
|
88
|
-
metadata: {}
|
|
89
|
-
},
|
|
90
|
-
(t) => {
|
|
91
|
-
t && console.error("Error initializing feedback widget:", t);
|
|
92
|
-
}
|
|
93
|
-
), !1;
|
|
94
|
-
}, V = () => {
|
|
95
|
-
const e = window;
|
|
96
|
-
return typeof e.Featurebase == "function" && e.Featurebase(
|
|
97
|
-
"initialize_portal_widget",
|
|
98
|
-
{
|
|
99
|
-
organization: "ayon",
|
|
100
|
-
fullScreen: !0,
|
|
101
|
-
initialPage: "MainView"
|
|
102
|
-
},
|
|
103
|
-
(t) => t ? (console.error("Error initializing portal widget:", t), !1) : !0
|
|
104
|
-
), !1;
|
|
105
|
-
}, W = () => {
|
|
106
|
-
const e = window;
|
|
107
|
-
return typeof e.Featurebase == "function" && e.Featurebase(
|
|
108
|
-
"initialize_survey_widget",
|
|
109
|
-
{
|
|
110
|
-
organization: "ayon",
|
|
111
|
-
placement: "bottom-right",
|
|
112
|
-
theme: "dark",
|
|
113
|
-
email: o?.attrib?.email,
|
|
114
|
-
featurebaseJwt: s?.data?.featurebaseJwt,
|
|
115
|
-
locale: "en"
|
|
116
|
-
},
|
|
117
|
-
(t) => {
|
|
118
|
-
t ? console.error("Error initializing survey widget:", t) : console.log("Survey widget initialized successfully");
|
|
119
|
-
}
|
|
120
|
-
), !1;
|
|
121
|
-
};
|
|
122
|
-
u(() => {
|
|
123
|
-
o?.name && r && (r.disableFeedback || n || (v(), z(), I(), L(), V()));
|
|
124
|
-
}, [o?.name, n, r]);
|
|
125
|
-
const [F, H] = l(!1);
|
|
126
|
-
u(() => {
|
|
127
|
-
!o?.name || !d || !s || !n || F || (E(), W(), H(!0));
|
|
128
|
-
}, [
|
|
129
|
-
o?.name,
|
|
130
|
-
d?.instanceId,
|
|
131
|
-
s?.available,
|
|
132
|
-
n,
|
|
133
|
-
window.location.pathname,
|
|
134
|
-
F
|
|
135
|
-
]), u(() => {
|
|
136
|
-
m || !n || _();
|
|
137
|
-
}, [s, m, n]);
|
|
138
|
-
const N = () => {
|
|
139
|
-
window.postMessage({
|
|
140
|
-
target: "FeaturebaseWidget",
|
|
141
|
-
data: {
|
|
142
|
-
action: "openFeedbackWidget"
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
}, A = (e = "MainView", t) => {
|
|
146
|
-
window.postMessage({
|
|
147
|
-
target: "FeaturebaseWidget",
|
|
148
|
-
data: {
|
|
149
|
-
action: "changePage",
|
|
150
|
-
payload: e,
|
|
151
|
-
openWidget: !0,
|
|
152
|
-
...t && { articleId: t }
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
}, [f, b] = l(!1), h = document.getElementById("fb-messenger-root"), j = (e) => h instanceof HTMLElement && (h.style.display = e ? "block" : "none");
|
|
156
|
-
u(() => {
|
|
157
|
-
!n || !c || j(f);
|
|
158
|
-
}, [n, c, f]), u(() => {
|
|
159
|
-
if (!n || !c) return;
|
|
160
|
-
const e = window;
|
|
161
|
-
typeof e.Featurebase == "function" && e.Featurebase("onHide", function() {
|
|
162
|
-
b(!1);
|
|
163
|
-
});
|
|
164
|
-
}, [n, c]);
|
|
165
|
-
const D = (e = "Home", t) => {
|
|
166
|
-
const a = window;
|
|
167
|
-
if (typeof a.Featurebase != "function") {
|
|
168
|
-
window.alert("Featurebase SDK is not loaded yet. Please try again later."), console.warn("Featurebase SDK is not loaded yet.");
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
if (f) {
|
|
172
|
-
a.Featurebase("hide"), b(!1);
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
switch (b(!0), e) {
|
|
176
|
-
case "Home":
|
|
177
|
-
a.Featurebase("show");
|
|
178
|
-
break;
|
|
179
|
-
case "Messages":
|
|
180
|
-
a.Featurebase("show", "messages");
|
|
181
|
-
break;
|
|
182
|
-
case "Changelog":
|
|
183
|
-
a.Featurebase("show", "changelog");
|
|
184
|
-
break;
|
|
185
|
-
case "Help":
|
|
186
|
-
a.Featurebase("show", "help");
|
|
187
|
-
break;
|
|
188
|
-
case "ShowArticle":
|
|
189
|
-
t ? a.Featurebase("showArticle", t) : a.Featurebase("show", "help");
|
|
190
|
-
break;
|
|
191
|
-
case "NewMessage":
|
|
192
|
-
a.Featurebase("showNewMessage", t);
|
|
193
|
-
break;
|
|
194
|
-
default:
|
|
195
|
-
a.Featurebase("show");
|
|
196
|
-
break;
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
return /* @__PURE__ */ g(
|
|
200
|
-
w.Provider,
|
|
201
|
-
{
|
|
202
|
-
value: {
|
|
203
|
-
openSupport: D,
|
|
204
|
-
openFeedback: N,
|
|
205
|
-
openPortal: A,
|
|
206
|
-
messengerLoaded: c,
|
|
207
|
-
unreadCount: M,
|
|
208
|
-
messengerVisibility: f,
|
|
209
|
-
setMessengerVisibility: b,
|
|
210
|
-
loaded: n
|
|
211
|
-
},
|
|
212
|
-
children: i
|
|
213
|
-
}
|
|
214
|
-
);
|
|
215
|
-
}, oe = () => {
|
|
216
|
-
const i = k(w);
|
|
217
|
-
if (!i)
|
|
218
|
-
throw new Error("useFeedback must be used within a FeedbackProvider");
|
|
219
|
-
return i;
|
|
220
|
-
}, K = () => k(w), se = ({ errorMessage: i }) => {
|
|
221
|
-
const n = K();
|
|
222
|
-
if (!i) return null;
|
|
223
|
-
const p = () => n?.openSupport(
|
|
9
|
+
import "react";
|
|
10
|
+
import "./getUris.es.js";
|
|
11
|
+
import "@module-federation/enhanced/runtime";
|
|
12
|
+
import "./DeleteEntitiesContextInstance.es.js";
|
|
13
|
+
import "semver";
|
|
14
|
+
import "./ContextMenuContextInstance.es.js";
|
|
15
|
+
import "clsx";
|
|
16
|
+
import "react-dom";
|
|
17
|
+
import "react-redux";
|
|
18
|
+
import { u as a } from "./ColumnDropIndicator.styled.es.js";
|
|
19
|
+
const S = ({ errorMessage: o }) => {
|
|
20
|
+
const t = a();
|
|
21
|
+
if (!o) return null;
|
|
22
|
+
const p = () => t?.openSupport(
|
|
224
23
|
"NewMessage",
|
|
225
24
|
`I hit a filter error on ${window.location.pathname}
|
|
226
25
|
|
|
227
|
-
Error: ${
|
|
26
|
+
Error: ${o}`
|
|
228
27
|
);
|
|
229
|
-
return /* @__PURE__ */
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
-
|
|
28
|
+
return /* @__PURE__ */ e(m, { children: [
|
|
29
|
+
/* @__PURE__ */ r(
|
|
30
|
+
i,
|
|
232
31
|
{
|
|
233
32
|
variant: "text",
|
|
234
33
|
label: "Copy error message",
|
|
235
34
|
icon: "content_copy",
|
|
236
|
-
"data-tooltip":
|
|
237
|
-
onClick: () =>
|
|
35
|
+
"data-tooltip": o,
|
|
36
|
+
onClick: () => n(o)
|
|
238
37
|
}
|
|
239
38
|
),
|
|
240
|
-
|
|
39
|
+
t?.messengerLoaded && /* @__PURE__ */ r(i, { variant: "text", label: "Report issue", icon: "report", onClick: p })
|
|
241
40
|
] });
|
|
242
41
|
};
|
|
243
42
|
export {
|
|
244
|
-
|
|
245
|
-
se as a,
|
|
246
|
-
K as b,
|
|
247
|
-
oe as u
|
|
43
|
+
S as F
|
|
248
44
|
};
|
package/dist/chunks/Menu.es.js
CHANGED
|
@@ -4,17 +4,21 @@ import { jsx as L, jsxs as Q, Fragment as yt } from "react/jsx-runtime";
|
|
|
4
4
|
import X, { useRef as Z, useEffect as U, useLayoutEffect as st, useState as lt, useCallback as bt } from "react";
|
|
5
5
|
import { M as xt, a as Et, b as Pt, c as K, D as $, d as Lt, e as Rt, S as Ct, F as St } from "./MenuItem.es.js";
|
|
6
6
|
import { Icon as Tt, Button as Ot } from "@ynput/ayon-react-components";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import Dt from "clsx";
|
|
11
|
-
import "lodash";
|
|
7
|
+
import "@module-federation/enhanced/runtime";
|
|
8
|
+
import "./searchTerms.es.js";
|
|
9
|
+
import "./getUris.es.js";
|
|
12
10
|
import "primereact/confirmdialog";
|
|
11
|
+
import { a as ct, u as at } from "./DeleteEntitiesContextInstance.es.js";
|
|
12
|
+
import "lodash";
|
|
13
13
|
import "react-toastify";
|
|
14
|
-
import { c as Ht } from "./copyToClipboard.es.js";
|
|
15
14
|
import "uuid";
|
|
16
|
-
import "
|
|
17
|
-
|
|
15
|
+
import "semver";
|
|
16
|
+
import "./ContextMenuContextInstance.es.js";
|
|
17
|
+
import kt from "clsx";
|
|
18
|
+
import { createPortal as Dt } from "react-dom";
|
|
19
|
+
import "react-redux";
|
|
20
|
+
import { c as Ht } from "./copyToClipboard.es.js";
|
|
21
|
+
const ie = rt(Mt)`
|
|
18
22
|
display: flex;
|
|
19
23
|
flex-direction: column;
|
|
20
24
|
justify-content: center;
|
|
@@ -32,7 +36,7 @@ const te = rt(Mt)`
|
|
|
32
36
|
h3 {
|
|
33
37
|
font-size: 18px;
|
|
34
38
|
}
|
|
35
|
-
`,
|
|
39
|
+
`, re = rt.div`
|
|
36
40
|
display: flex;
|
|
37
41
|
flex-direction: column;
|
|
38
42
|
flex-grow: 1;
|
|
@@ -232,7 +236,7 @@ function It(a, i, c = "right") {
|
|
|
232
236
|
};
|
|
233
237
|
}, [l]), { position: o, menuRef: d };
|
|
234
238
|
}
|
|
235
|
-
const it = "ayon-menu-dialog", ft = "ayon-menu-content",
|
|
239
|
+
const it = "ayon-menu-dialog", ft = "ayon-menu-content", se = ({
|
|
236
240
|
id: a,
|
|
237
241
|
target: i,
|
|
238
242
|
targetId: c = "",
|
|
@@ -281,7 +285,7 @@ const it = "ayon-menu-dialog", ft = "ayon-menu-content", ne = ({
|
|
|
281
285
|
index: s,
|
|
282
286
|
navigate: i
|
|
283
287
|
}) : t);
|
|
284
|
-
return
|
|
288
|
+
return Dt(
|
|
285
289
|
/* @__PURE__ */ L(
|
|
286
290
|
Lt,
|
|
287
291
|
{
|
|
@@ -295,7 +299,7 @@ const it = "ayon-menu-dialog", ft = "ayon-menu-content", ne = ({
|
|
|
295
299
|
{
|
|
296
300
|
id: ft,
|
|
297
301
|
style: e || { top: 0, left: 0, opacity: 0, visibility: "hidden" },
|
|
298
|
-
className:
|
|
302
|
+
className: kt(f),
|
|
299
303
|
ref: p,
|
|
300
304
|
children: m
|
|
301
305
|
}
|
|
@@ -312,7 +316,7 @@ const it = "ayon-menu-dialog", ft = "ayon-menu-content", ne = ({
|
|
|
312
316
|
}
|
|
313
317
|
}, Nt = (a, i) => a.length === i.length && a.every(
|
|
314
318
|
(c, o) => c.id === i[o].id && c.icon === i[o].icon && c.selected === i[o].selected && c.active === i[o].active
|
|
315
|
-
),
|
|
319
|
+
), le = ({ menu: a = [], onClose: i, header: c, footer: o = "" }) => {
|
|
316
320
|
const { setPowerpackDialog: f } = ct(), { setMenuOpen: d } = at(), [l, e] = lt([]), p = (t, s, u, x) => {
|
|
317
321
|
if (u) return i?.();
|
|
318
322
|
s?.(t), !x && i && i();
|
|
@@ -394,10 +398,10 @@ const it = "ayon-menu-dialog", ft = "ayon-menu-content", ne = ({
|
|
|
394
398
|
] });
|
|
395
399
|
};
|
|
396
400
|
export {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
+
ie as E,
|
|
402
|
+
se as M,
|
|
403
|
+
le as a,
|
|
404
|
+
re as b,
|
|
401
405
|
ft as c,
|
|
402
406
|
it as d,
|
|
403
407
|
ot as e
|
|
@@ -1,74 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { cY as I } from "./getUris.es.js";
|
|
10
|
-
const L = "uri", x = p(void 0), N = ({ children: e }) => {
|
|
11
|
-
const r = location.pathname, [o, t] = f(""), a = ["projects", "settings", "dashboard/tasks"];
|
|
12
|
-
P(() => {
|
|
13
|
-
a.some((u) => r.startsWith(`/${u}`)) || t("");
|
|
14
|
-
}, [r, t]);
|
|
15
|
-
const { type: i, entity: l, settings: c } = b(o), s = v(
|
|
16
|
-
({ projectName: n, folderPath: u, taskName: h, productName: C, versionName: w }) => {
|
|
17
|
-
const y = E({ projectName: n, folderPath: u, taskName: h, productName: C, versionName: w });
|
|
18
|
-
t(y);
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p } from "react";
|
|
3
|
+
import { M as i } from "./DeleteEntitiesContextInstance.es.js";
|
|
4
|
+
const O = ({ children: o, useNavigate: s }) => {
|
|
5
|
+
const [n, t] = p(!1), r = s(), a = {
|
|
6
|
+
menuOpen: n,
|
|
7
|
+
setMenuOpen: (e) => {
|
|
8
|
+
t(e);
|
|
19
9
|
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
if (i !== "entity" || !o) return [];
|
|
23
|
-
try {
|
|
24
|
-
const n = await m({ resolveRequestModel: { uris: [o] } }).unwrap();
|
|
25
|
-
return console.log("Resolved entity from URI:", n), n;
|
|
26
|
-
} catch (n) {
|
|
27
|
-
return console.warn("Failed to resolve URI:", n), [];
|
|
28
|
-
}
|
|
29
|
-
}, [m, o, i]), R = {
|
|
30
|
-
uri: o,
|
|
31
|
-
uriType: i,
|
|
32
|
-
entity: l,
|
|
33
|
-
settings: c,
|
|
34
|
-
setUri: t,
|
|
35
|
-
setEntityUri: s,
|
|
36
|
-
getUriEntities: g
|
|
37
|
-
};
|
|
38
|
-
return /* @__PURE__ */ d(x.Provider, { value: R, children: e });
|
|
39
|
-
}, T = () => {
|
|
40
|
-
const e = U(x);
|
|
41
|
-
if (e === void 0)
|
|
42
|
-
throw new Error("useURIContext must be used within a URIProvider");
|
|
43
|
-
return e;
|
|
44
|
-
}, V = p(void 0), M = p(void 0), W = ({ children: e, useNavigate: r }) => {
|
|
45
|
-
const [o, t] = f(!1), a = r(), c = {
|
|
46
|
-
menuOpen: o,
|
|
47
|
-
setMenuOpen: (s) => {
|
|
48
|
-
t(s);
|
|
49
|
-
},
|
|
50
|
-
toggleMenuOpen: (s) => {
|
|
51
|
-
if (!s) {
|
|
10
|
+
toggleMenuOpen: (e) => {
|
|
11
|
+
if (!e) {
|
|
52
12
|
t(!1);
|
|
53
13
|
return;
|
|
54
14
|
}
|
|
55
|
-
t(
|
|
15
|
+
t(e === n ? !1 : e);
|
|
56
16
|
},
|
|
57
|
-
navigate:
|
|
17
|
+
navigate: r
|
|
58
18
|
};
|
|
59
|
-
return /* @__PURE__ */
|
|
60
|
-
}, Y = () => {
|
|
61
|
-
const e = U(M);
|
|
62
|
-
if (e === void 0)
|
|
63
|
-
throw new Error("useMenuContext must be used within a MenuProvider");
|
|
64
|
-
return e;
|
|
19
|
+
return /* @__PURE__ */ u(i.Provider, { value: a, children: o });
|
|
65
20
|
};
|
|
66
21
|
export {
|
|
67
|
-
|
|
68
|
-
W as M,
|
|
69
|
-
N as U,
|
|
70
|
-
M as a,
|
|
71
|
-
L as b,
|
|
72
|
-
T as c,
|
|
73
|
-
Y as u
|
|
22
|
+
O as M
|
|
74
23
|
};
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import { jsxs as j, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { Icon as
|
|
2
|
+
import { Icon as i, ShortcutTag as F } from "@ynput/ayon-react-components";
|
|
3
3
|
import { forwardRef as O } from "react";
|
|
4
4
|
import r, { keyframes as z } from "styled-components";
|
|
5
5
|
import { isArray as E } from "lodash";
|
|
6
6
|
import { Link as L } from "react-router-dom";
|
|
7
7
|
import P from "clsx";
|
|
8
|
-
import
|
|
9
|
-
|
|
8
|
+
import "@module-federation/enhanced/runtime";
|
|
9
|
+
import "./searchTerms.es.js";
|
|
10
|
+
import "./getUris.es.js";
|
|
11
|
+
import "primereact/confirmdialog";
|
|
12
|
+
import { a as G } from "./DeleteEntitiesContextInstance.es.js";
|
|
13
|
+
import "react-toastify";
|
|
14
|
+
import "uuid";
|
|
15
|
+
import "semver";
|
|
16
|
+
import "./ContextMenuContextInstance.es.js";
|
|
17
|
+
import "react-dom";
|
|
18
|
+
import "react-redux";
|
|
19
|
+
const u = 42, S = 8, ao = u + S, so = r.dialog`
|
|
10
20
|
position: fixed;
|
|
11
21
|
margin: 0;
|
|
12
22
|
inset: 0;
|
|
@@ -37,7 +47,7 @@ const u = 42, S = 8, Q = u + S, V = r.dialog`
|
|
|
37
47
|
scale: 1;
|
|
38
48
|
opacity: 1;
|
|
39
49
|
}
|
|
40
|
-
`,
|
|
50
|
+
`, co = r.div`
|
|
41
51
|
display: flex;
|
|
42
52
|
flex-direction: column;
|
|
43
53
|
gap: var(--base-gap-large);
|
|
@@ -75,7 +85,7 @@ const u = 42, S = 8, Q = u + S, V = r.dialog`
|
|
|
75
85
|
color: var(--md-sys-color-on-surface, #fff) !important;
|
|
76
86
|
}
|
|
77
87
|
}
|
|
78
|
-
`,
|
|
88
|
+
`, lo = r.section`
|
|
79
89
|
position: relative;
|
|
80
90
|
display: flex;
|
|
81
91
|
flex-direction: column;
|
|
@@ -88,7 +98,7 @@ const u = 42, S = 8, Q = u + S, V = r.dialog`
|
|
|
88
98
|
color: var(--md-sys-color-on-surface);
|
|
89
99
|
z-index: 10;
|
|
90
100
|
overflow: hidden;
|
|
91
|
-
`,
|
|
101
|
+
`, po = r.div`
|
|
92
102
|
position: relative;
|
|
93
103
|
border-radius: 8px;
|
|
94
104
|
display: flex;
|
|
@@ -112,7 +122,7 @@ const u = 42, S = 8, Q = u + S, V = r.dialog`
|
|
|
112
122
|
overflow-x: hidden;
|
|
113
123
|
}
|
|
114
124
|
}
|
|
115
|
-
`,
|
|
125
|
+
`, mo = r.menu`
|
|
116
126
|
/* reset defaults */
|
|
117
127
|
display: flex;
|
|
118
128
|
list-style-type: none;
|
|
@@ -266,7 +276,7 @@ const u = 42, S = 8, Q = u + S, V = r.dialog`
|
|
|
266
276
|
width: 18px;
|
|
267
277
|
height: 18px;
|
|
268
278
|
object-fit: contain;
|
|
269
|
-
`,
|
|
279
|
+
`, go = r.footer`
|
|
270
280
|
position: relative;
|
|
271
281
|
display: flex;
|
|
272
282
|
padding: 8px;
|
|
@@ -297,9 +307,9 @@ const u = 42, S = 8, Q = u + S, V = r.dialog`
|
|
|
297
307
|
}
|
|
298
308
|
`, R = O(
|
|
299
309
|
({
|
|
300
|
-
label:
|
|
310
|
+
label: t,
|
|
301
311
|
icon: a,
|
|
302
|
-
hoverIcon:
|
|
312
|
+
hoverIcon: n,
|
|
303
313
|
img: s,
|
|
304
314
|
highlighted: h,
|
|
305
315
|
notification: f,
|
|
@@ -316,7 +326,7 @@ const u = 42, S = 8, Q = u + S, V = r.dialog`
|
|
|
316
326
|
reserveActiveSlot: N,
|
|
317
327
|
...p
|
|
318
328
|
}, A) => {
|
|
319
|
-
const m = E(
|
|
329
|
+
const m = E(t) ? t : [t], { powerLicense: I } = G(), e = !I && D, g = /* @__PURE__ */ j(
|
|
320
330
|
$,
|
|
321
331
|
{
|
|
322
332
|
ref: A,
|
|
@@ -337,24 +347,24 @@ const u = 42, S = 8, Q = u + S, V = r.dialog`
|
|
|
337
347
|
"aria-label": m.join(", "),
|
|
338
348
|
children: [
|
|
339
349
|
(a || e) && /* @__PURE__ */ o(
|
|
340
|
-
|
|
350
|
+
i,
|
|
341
351
|
{
|
|
342
352
|
icon: e ? "bolt" : a,
|
|
343
|
-
className:
|
|
353
|
+
className: n && !e ? "hover-swap-default" : void 0
|
|
344
354
|
}
|
|
345
355
|
),
|
|
346
|
-
|
|
347
|
-
s && /* @__PURE__ */ o(U, { src: s, alt: `${
|
|
356
|
+
n && !e && /* @__PURE__ */ o(i, { icon: n, className: "hover-swap" }),
|
|
357
|
+
s && /* @__PURE__ */ o(U, { src: s, alt: `${t} icon` }),
|
|
348
358
|
m.map((M, _) => /* @__PURE__ */ o("span", { children: M }, _)),
|
|
349
359
|
l && /* @__PURE__ */ o(F, { style: { minWidth: 22, textAlign: "center" }, align: "right", children: l }),
|
|
350
360
|
(d || N) && /* @__PURE__ */ o(
|
|
351
|
-
|
|
361
|
+
i,
|
|
352
362
|
{
|
|
353
363
|
icon: "check",
|
|
354
364
|
style: { marginLeft: "auto", visibility: d ? "visible" : "hidden" }
|
|
355
365
|
}
|
|
356
366
|
),
|
|
357
|
-
!!y.length && /* @__PURE__ */ o(
|
|
367
|
+
!!y.length && /* @__PURE__ */ o(i, { icon: "arrow_right", className: "more" })
|
|
358
368
|
]
|
|
359
369
|
}
|
|
360
370
|
);
|
|
@@ -364,12 +374,12 @@ const u = 42, S = 8, Q = u + S, V = r.dialog`
|
|
|
364
374
|
R.displayName = "MenuItem";
|
|
365
375
|
export {
|
|
366
376
|
u as D,
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
377
|
+
go as F,
|
|
378
|
+
po as M,
|
|
379
|
+
lo as S,
|
|
380
|
+
mo as a,
|
|
371
381
|
R as b,
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
382
|
+
ao as c,
|
|
383
|
+
so as d,
|
|
384
|
+
co as e
|
|
375
385
|
};
|