@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
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { lazy as i, forwardRef as s, Suspense as d } from "react";
|
|
3
|
+
const m = i(() => import("@uiw/react-textarea-code-editor")), u = s((e, a) => {
|
|
4
|
+
const { language: c, minHeight: t, padding: r, prefixCls: g, rehypePlugins: p, onChange: y, value: n, ...l } = e;
|
|
5
|
+
return /* @__PURE__ */ o(
|
|
6
|
+
d,
|
|
7
|
+
{
|
|
8
|
+
fallback: /* @__PURE__ */ o(
|
|
9
|
+
"textarea",
|
|
10
|
+
{
|
|
11
|
+
...l,
|
|
12
|
+
ref: a,
|
|
13
|
+
value: n ?? "",
|
|
14
|
+
readOnly: !0,
|
|
15
|
+
style: {
|
|
16
|
+
padding: r,
|
|
17
|
+
minHeight: t,
|
|
18
|
+
fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",
|
|
19
|
+
...e.style
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
),
|
|
23
|
+
children: /* @__PURE__ */ o(m, { ref: a, ...e })
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
});
|
|
27
|
+
u.displayName = "CodeEditor";
|
|
28
|
+
export {
|
|
29
|
+
u as C
|
|
30
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { createContext as _, useContext as u, forwardRef as I } from "react";
|
|
2
2
|
import { jsxs as l, jsx as i, Fragment as S } from "react/jsx-runtime";
|
|
3
|
-
import { Button as p, Icon as
|
|
3
|
+
import { Button as p, Icon as N } from "@ynput/ayon-react-components";
|
|
4
4
|
import a from "clsx";
|
|
5
5
|
import n from "styled-components";
|
|
6
6
|
import { R as d, D as f } from "./realtimeUpdatesUtils.es.js";
|
|
7
7
|
import "lodash";
|
|
8
8
|
import "primereact/confirmdialog";
|
|
9
9
|
import "react-toastify";
|
|
10
|
-
import { c as
|
|
10
|
+
import { c as z } from "./copyToClipboard.es.js";
|
|
11
11
|
import "uuid";
|
|
12
12
|
import "./searchTerms.es.js";
|
|
13
|
-
const
|
|
13
|
+
const E = (t) => {
|
|
14
14
|
const o = t.getIsPinned(), s = t.id !== d && t.id !== f ? -30 : 0;
|
|
15
15
|
return {
|
|
16
16
|
left: o === "left" ? `${t.getStart("left") + s}px` : void 0,
|
|
@@ -19,7 +19,7 @@ const D = (t) => {
|
|
|
19
19
|
width: t.getSize(),
|
|
20
20
|
zIndex: o ? 100 : 0
|
|
21
21
|
};
|
|
22
|
-
},
|
|
22
|
+
}, M = (t) => `calc(var(--col-${t}-size) * 1px)`, g = _(void 0), Q = () => {
|
|
23
23
|
const t = u(g);
|
|
24
24
|
if (!t)
|
|
25
25
|
throw new Error("useFeedback must be used within a FeedbackProvider");
|
|
@@ -63,7 +63,7 @@ const D = (t) => {
|
|
|
63
63
|
)
|
|
64
64
|
]
|
|
65
65
|
}
|
|
66
|
-
)),
|
|
66
|
+
)), B = n(p)`
|
|
67
67
|
width: 24px;
|
|
68
68
|
height: 24px;
|
|
69
69
|
padding: 2px;
|
|
@@ -79,14 +79,14 @@ const D = (t) => {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
&.pin-button .material-symbols-outlined.icon {
|
|
82
|
-
font-variation-settings: 'FILL' 1
|
|
82
|
+
font-variation-settings: 'FILL' 1;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
&.selected {
|
|
86
86
|
display: flex !important;
|
|
87
87
|
}
|
|
88
88
|
`, tt = ({ selected: t, style: o, ...s }) => /* @__PURE__ */ i(
|
|
89
|
-
|
|
89
|
+
B,
|
|
90
90
|
{
|
|
91
91
|
...s,
|
|
92
92
|
selected: t,
|
|
@@ -114,20 +114,20 @@ const D = (t) => {
|
|
|
114
114
|
${({ $isOpen: t }) => t && `
|
|
115
115
|
background-color: var(--md-sys-color-surface-container-hover) !important;
|
|
116
116
|
`}
|
|
117
|
-
`,
|
|
117
|
+
`, D = n.tfoot`
|
|
118
118
|
display: grid !important;
|
|
119
119
|
position: sticky;
|
|
120
120
|
bottom: 0;
|
|
121
121
|
z-index: 10;
|
|
122
122
|
background-color: var(--md-sys-color-surface-container-lowest);
|
|
123
|
-
`,
|
|
123
|
+
`, P = n.tr`
|
|
124
124
|
display: flex;
|
|
125
125
|
background-color: var(--md-sys-color-surface-container-low);
|
|
126
126
|
|
|
127
127
|
&.clickable {
|
|
128
128
|
cursor: pointer;
|
|
129
129
|
}
|
|
130
|
-
`,
|
|
130
|
+
`, R = n.td`
|
|
131
131
|
position: relative;
|
|
132
132
|
box-shadow: inset 1px 1px 0 0 var(--md-sys-color-surface-container);
|
|
133
133
|
background-color: var(--md-sys-color-surface-container-lowest);
|
|
@@ -151,7 +151,7 @@ const D = (t) => {
|
|
|
151
151
|
width: 24px !important;
|
|
152
152
|
min-width: unset;
|
|
153
153
|
}
|
|
154
|
-
`,
|
|
154
|
+
`, A = n.div`
|
|
155
155
|
display: flex;
|
|
156
156
|
align-items: center;
|
|
157
157
|
gap: var(--base-gap-small);
|
|
@@ -193,8 +193,8 @@ const D = (t) => {
|
|
|
193
193
|
virtualPaddingRight: m,
|
|
194
194
|
renderCellContent: v,
|
|
195
195
|
onClick: c,
|
|
196
|
-
isLoading:
|
|
197
|
-
statsLoading:
|
|
196
|
+
isLoading: y,
|
|
197
|
+
statsLoading: w,
|
|
198
198
|
error: r
|
|
199
199
|
}) => {
|
|
200
200
|
const C = [
|
|
@@ -202,8 +202,8 @@ const D = (t) => {
|
|
|
202
202
|
...o.getCenterVisibleLeafColumns(),
|
|
203
203
|
...o.getRightVisibleLeafColumns()
|
|
204
204
|
], b = t.getVirtualItems(), h = r instanceof Error ? r.message : typeof r == "string" ? r : "";
|
|
205
|
-
return /* @__PURE__ */ i(
|
|
206
|
-
|
|
205
|
+
return /* @__PURE__ */ i(D, { children: /* @__PURE__ */ l(
|
|
206
|
+
P,
|
|
207
207
|
{
|
|
208
208
|
className: a({ clickable: !!c }),
|
|
209
209
|
onClick: c,
|
|
@@ -215,21 +215,21 @@ const D = (t) => {
|
|
|
215
215
|
if (!e) return null;
|
|
216
216
|
const L = e.id === f || e.id === d, F = e.getIsPinned() === "left" && e.getIsLastColumn("left");
|
|
217
217
|
return /* @__PURE__ */ i(
|
|
218
|
-
|
|
218
|
+
R,
|
|
219
219
|
{
|
|
220
220
|
className: a(e.id, { "last-pinned-left": F }),
|
|
221
|
-
style: { ...
|
|
222
|
-
children:
|
|
221
|
+
style: { ...E(e), width: M(e.id) },
|
|
222
|
+
children: y ? /* @__PURE__ */ i(
|
|
223
223
|
x,
|
|
224
224
|
{
|
|
225
225
|
className: a("loading", "shimmer-dark", {
|
|
226
226
|
selection: e.id === d
|
|
227
227
|
})
|
|
228
228
|
}
|
|
229
|
-
) : r ? e.id === "name" ? /* @__PURE__ */ l(
|
|
229
|
+
) : r ? e.id === "name" ? /* @__PURE__ */ l(A, { style: { color: "var(--md-sys-color-error)" }, children: [
|
|
230
230
|
"Error loading stats",
|
|
231
231
|
/* @__PURE__ */ i(
|
|
232
|
-
|
|
232
|
+
N,
|
|
233
233
|
{
|
|
234
234
|
icon: "info",
|
|
235
235
|
style: { fontSize: 16, cursor: "help" },
|
|
@@ -242,7 +242,7 @@ const D = (t) => {
|
|
|
242
242
|
{
|
|
243
243
|
icon: "content_copy",
|
|
244
244
|
"data-tooltip": "Copy error message",
|
|
245
|
-
onClick: () =>
|
|
245
|
+
onClick: () => z(h),
|
|
246
246
|
iconProps: { style: { fontSize: 16 } },
|
|
247
247
|
style: { padding: 2 },
|
|
248
248
|
variant: "text"
|
|
@@ -250,7 +250,7 @@ const D = (t) => {
|
|
|
250
250
|
)
|
|
251
251
|
] }) : null : !L && /* @__PURE__ */ l(S, { children: [
|
|
252
252
|
v?.(e.id),
|
|
253
|
-
|
|
253
|
+
w && /* @__PURE__ */ i(O, { className: a("loading", "shimmer-dark") })
|
|
254
254
|
] })
|
|
255
255
|
},
|
|
256
256
|
e.id
|
|
@@ -275,7 +275,7 @@ export {
|
|
|
275
275
|
et as T,
|
|
276
276
|
it as a,
|
|
277
277
|
Q as b,
|
|
278
|
-
|
|
279
|
-
|
|
278
|
+
E as c,
|
|
279
|
+
M as g,
|
|
280
280
|
X as u
|
|
281
281
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as a, Fragment as l, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as u } from "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 { u as f } 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";
|