@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.
- package/dist/DetailsPanel.es.js +3 -3
- package/dist/NewEntity.es.js +15 -15
- package/dist/ProjectTreeTable.es.js +500 -495
- package/dist/Slicer.es.js +11 -11
- package/dist/Views.es.js +213 -206
- package/dist/chunks/CodeEditor.es.js +30 -0
- package/dist/chunks/ColumnDropIndicator.styled.es.js +24 -24
- package/dist/chunks/ColumnHeaderMenuUI.es.js +2 -2
- package/dist/chunks/DeleteEntitiesContextInstance.es.js +103 -103
- package/dist/chunks/EntityPath.es.js +2 -2
- package/dist/chunks/EntityTooltip.es.js +1 -1
- package/dist/chunks/Feed.es.js +1875 -1857
- package/dist/chunks/JsonViewer.es.js +1 -1
- package/dist/chunks/Menu.es.js +1 -1
- package/dist/chunks/MenuItem.es.js +25 -25
- package/dist/chunks/MetaWidget.es.js +1537 -1516
- package/dist/chunks/PlayableIcon.es.js +127 -127
- package/dist/chunks/ReviewablesSelector.es.js +199 -196
- package/dist/chunks/SimpleTable.es.js +110 -110
- package/dist/chunks/Slicer.es.js +22 -22
- package/dist/chunks/TableSettingsFallback.es.js +1 -1
- package/dist/chunks/ThumbnailSimple.es.js +2 -2
- package/dist/chunks/VideoPlayer.es.js +1 -1
- package/dist/chunks/Watchers.es.js +19 -19
- package/dist/chunks/afterStartup.es.js +13 -0
- package/dist/chunks/getUris.es.js +790 -827
- package/dist/chunks/searchTerms.es.js +1 -3
- package/dist/chunks/useHierarchySelection.es.js +2 -2
- package/dist/chunks/useLoadModule.es.js +24 -23
- package/dist/components.es.js +202 -200
- package/dist/context.es.js +521 -492
- package/dist/hooks.es.js +190 -166
- package/dist/types/ContextMenu.d.ts +1 -0
- package/dist/types/ProjectTreeTable.d.ts +1 -0
- package/dist/types/Views.d.ts +11 -0
- package/dist/types/api.d.ts +198 -1174
- package/dist/types/components.d.ts +5 -1
- package/dist/types/context.d.ts +1 -0
- package/dist/types/hooks.d.ts +25 -1
- package/dist/types/util.d.ts +10 -0
- package/dist/util.es.js +44 -41
- package/package.json +2 -2
|
@@ -99,6 +99,7 @@ const j = (t) => typeof t == "object" && t !== null, x = (t) => {
|
|
|
99
99
|
"feedback",
|
|
100
100
|
"folder",
|
|
101
101
|
"folderColumnStats",
|
|
102
|
+
"frontendModules",
|
|
102
103
|
"hierarchy",
|
|
103
104
|
"inbox",
|
|
104
105
|
"info",
|
|
@@ -250,7 +251,6 @@ const Ot = new s(`
|
|
|
250
251
|
status
|
|
251
252
|
attrib {
|
|
252
253
|
comment
|
|
253
|
-
frameStart
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
}
|
|
@@ -759,7 +759,6 @@ fragment VersionBase on VersionNode {
|
|
|
759
759
|
status
|
|
760
760
|
attrib {
|
|
761
761
|
comment
|
|
762
|
-
frameStart
|
|
763
762
|
}
|
|
764
763
|
}
|
|
765
764
|
}`), de = new s(`
|
|
@@ -847,7 +846,6 @@ fragment VersionBase on VersionNode {
|
|
|
847
846
|
status
|
|
848
847
|
attrib {
|
|
849
848
|
comment
|
|
850
|
-
frameStart
|
|
851
849
|
}
|
|
852
850
|
}
|
|
853
851
|
}`), ce = new s(`
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@module-federation/enhanced/runtime";
|
|
4
|
+
import "react-toastify";
|
|
5
|
+
import "@ynput/ayon-react-components";
|
|
4
6
|
import "./searchTerms.es.js";
|
|
5
7
|
import "./getUris.es.js";
|
|
6
8
|
import "primereact/confirmdialog";
|
|
7
9
|
import { a as o } from "./DeleteEntitiesContextInstance.es.js";
|
|
8
10
|
import "lodash";
|
|
9
|
-
import "react-toastify";
|
|
10
11
|
import "uuid";
|
|
11
12
|
import "semver";
|
|
12
|
-
import "@ynput/ayon-react-components";
|
|
13
13
|
import "./ContextMenuContextInstance.es.js";
|
|
14
14
|
import "clsx";
|
|
15
15
|
import "react-dom";
|
|
@@ -1,68 +1,69 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { useState as f, useRef as
|
|
3
|
-
import { loadRemote as
|
|
2
|
+
import { useState as f, useRef as z, useEffect as I } from "react";
|
|
3
|
+
import { loadRemote as M } from "@module-federation/enhanced/runtime";
|
|
4
|
+
import "react-toastify";
|
|
5
|
+
import "@ynput/ayon-react-components";
|
|
4
6
|
import "./searchTerms.es.js";
|
|
5
7
|
import "./getUris.es.js";
|
|
6
8
|
import "primereact/confirmdialog";
|
|
7
|
-
import { b as
|
|
9
|
+
import { b as q } from "./DeleteEntitiesContextInstance.es.js";
|
|
8
10
|
import "lodash";
|
|
9
|
-
import "react-toastify";
|
|
10
11
|
import "uuid";
|
|
11
|
-
import
|
|
12
|
-
import "@ynput/ayon-react-components";
|
|
12
|
+
import h from "semver";
|
|
13
13
|
import "./ContextMenuContextInstance.es.js";
|
|
14
14
|
import "clsx";
|
|
15
15
|
import "react-dom";
|
|
16
16
|
import "react-redux";
|
|
17
|
-
const
|
|
17
|
+
const H = ({
|
|
18
18
|
addon: o,
|
|
19
19
|
remote: t,
|
|
20
20
|
module: e,
|
|
21
|
-
fallback:
|
|
21
|
+
fallback: L,
|
|
22
22
|
minVersion: s,
|
|
23
|
-
skip: u = !1
|
|
23
|
+
skip: u = !1,
|
|
24
|
+
defer: l = !1
|
|
24
25
|
}) => {
|
|
25
|
-
const { remotesInitialized:
|
|
26
|
-
return
|
|
26
|
+
const { remotesInitialized: c, modules: a } = q(), [v, r] = f(!0), [d, m] = f(!1), [R, p] = f(!1), g = z(L);
|
|
27
|
+
return I(() => {
|
|
27
28
|
if (u) {
|
|
28
|
-
r(!1),
|
|
29
|
+
r(!1), m(!0);
|
|
29
30
|
return;
|
|
30
31
|
}
|
|
31
|
-
if (
|
|
32
|
+
if (l || !c || !o || !t || !e) return;
|
|
32
33
|
const i = a.find((n) => n.addonName === o);
|
|
33
34
|
if (!i) {
|
|
34
35
|
console.log("remote not found", { addon: o, remote: t, module: e }), r(!1);
|
|
35
36
|
return;
|
|
36
37
|
}
|
|
37
|
-
if (s && !
|
|
38
|
+
if (s && !h.gte(i.addonVersion, s) && s + "-dev" !== i.addonVersion) {
|
|
38
39
|
console.log("remote version does not meet minimum requirement", {
|
|
39
40
|
addon: o,
|
|
40
41
|
remote: t,
|
|
41
42
|
module: e,
|
|
42
43
|
current: i.addonVersion,
|
|
43
44
|
required: s
|
|
44
|
-
}),
|
|
45
|
+
}), p(!0), r(!1);
|
|
45
46
|
return;
|
|
46
47
|
}
|
|
47
|
-
if (
|
|
48
|
+
if (p(!1), !i.modules[t])
|
|
48
49
|
return r(!1), console.log("module not found", { addon: o, remote: t, module: e });
|
|
49
50
|
if (d === e) {
|
|
50
51
|
r(!1);
|
|
51
52
|
return;
|
|
52
53
|
}
|
|
53
|
-
|
|
54
|
+
M(`${t}/${e}`, {
|
|
54
55
|
from: "runtime"
|
|
55
56
|
}).then((n) => {
|
|
56
|
-
|
|
57
|
+
m(e), r(!1), n && (g.current = n.default);
|
|
57
58
|
}).catch((n) => {
|
|
58
59
|
r(!1), console.error("error loading remote", t, e, n);
|
|
59
60
|
});
|
|
60
|
-
}, [d,
|
|
61
|
-
|
|
61
|
+
}, [d, c, a, o, t, e, s, u, l]), [
|
|
62
|
+
g.current,
|
|
62
63
|
{
|
|
63
64
|
isLoaded: d === e,
|
|
64
|
-
isLoading:
|
|
65
|
-
outdated:
|
|
65
|
+
isLoading: v,
|
|
66
|
+
outdated: R ? {
|
|
66
67
|
current: a.find((i) => i.addonName === o)?.addonVersion || "unknown",
|
|
67
68
|
required: s?.replace("-dev", "") || "unknown"
|
|
68
69
|
} : void 0
|
|
@@ -70,5 +71,5 @@ const G = ({
|
|
|
70
71
|
];
|
|
71
72
|
};
|
|
72
73
|
export {
|
|
73
|
-
|
|
74
|
+
H as u
|
|
74
75
|
};
|