@xyo-network/react-embed 7.0.0 → 7.0.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.
@@ -1,21 +1,35 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
1
  // src/components/embed-card/card/BusyCard.tsx
5
2
  import { Card } from "@mui/material";
6
3
  import { useBusyTiming } from "@xylabs/react-flexbox";
7
- import { BusyCircularProgress, BusyLinearProgress } from "@xylabs/react-shared";
8
- import React from "react";
9
- var BusyCard = /* @__PURE__ */ __name(({ busy, busyMinimum = 500, busyVariant = "circular", busyVariantProps, children, ...props }) => {
4
+ import {
5
+ BusyCircularProgress,
6
+ BusyLinearProgress
7
+ } from "@xylabs/react-shared";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ var BusyCard = ({
10
+ busy,
11
+ busyMinimum = 500,
12
+ busyVariant = "circular",
13
+ busyVariantProps,
14
+ children,
15
+ ...props
16
+ }) => {
10
17
  const internalBusy = useBusyTiming(busy, busyMinimum);
11
- return /* @__PURE__ */ React.createElement(Card, props, children, busyVariant === "circular" && internalBusy ? /* @__PURE__ */ React.createElement(BusyCircularProgress, busyVariantProps) : null, busyVariant === "linear" && internalBusy ? /* @__PURE__ */ React.createElement(BusyLinearProgress, busyVariantProps) : null);
12
- }, "BusyCard");
18
+ return /* @__PURE__ */ jsxs(Card, { ...props, children: [
19
+ children,
20
+ busyVariant === "circular" && internalBusy ? /* @__PURE__ */ jsx(BusyCircularProgress, { ...busyVariantProps }) : null,
21
+ busyVariant === "linear" && internalBusy ? /* @__PURE__ */ jsx(BusyLinearProgress, { ...busyVariantProps }) : null
22
+ ] });
23
+ };
13
24
 
14
25
  // src/components/embed-card/card/EmbedCardHeader.tsx
15
26
  import { Refresh as RefreshIcon } from "@mui/icons-material";
16
- import { Avatar, CardHeader, Chip as Chip2 } from "@mui/material";
27
+ import {
28
+ Avatar,
29
+ CardHeader,
30
+ Chip as Chip2
31
+ } from "@mui/material";
17
32
  import { FlexRow } from "@xylabs/react-flexbox";
18
- import React8 from "react";
19
33
 
20
34
  // src/contexts/EmbedPluginContext/Context.ts
21
35
  import { createContextEx } from "@xylabs/react-shared";
@@ -23,53 +37,72 @@ var EmbedPluginContext = createContextEx();
23
37
 
24
38
  // src/contexts/EmbedPluginContext/Provider.tsx
25
39
  import { useResetState } from "@xylabs/react-hooks";
26
- import React2 from "react";
27
- var EmbedPluginProvider = /* @__PURE__ */ __name(({ children, refreshTitle, timestampLabel, hideElementsConfig, plugins, embedPluginConfig }) => {
40
+ import { jsx as jsx2 } from "react/jsx-runtime";
41
+ var EmbedPluginProvider = ({
42
+ children,
43
+ refreshTitle,
44
+ timestampLabel,
45
+ hideElementsConfig,
46
+ plugins,
47
+ embedPluginConfig
48
+ }) => {
28
49
  const [activePlugin, setActivePlugin] = useResetState(plugins ? plugins[0] : void 0);
29
- return /* @__PURE__ */ React2.createElement(EmbedPluginContext, {
30
- // eslint-disable-next-line @eslint-react/no-unstable-context-value
31
- value: {
32
- activePlugin,
33
- embedPluginConfig,
34
- hideElementsConfig,
35
- provided: true,
36
- refreshTitle,
37
- setActivePlugin,
38
- timestampLabel
50
+ return /* @__PURE__ */ jsx2(
51
+ EmbedPluginContext,
52
+ {
53
+ value: {
54
+ activePlugin,
55
+ embedPluginConfig,
56
+ hideElementsConfig,
57
+ provided: true,
58
+ refreshTitle,
59
+ setActivePlugin,
60
+ timestampLabel
61
+ },
62
+ children
39
63
  }
40
- }, children);
41
- }, "EmbedPluginProvider");
64
+ );
65
+ };
42
66
 
43
67
  // src/contexts/EmbedPluginContext/use.ts
44
68
  import { useContextEx } from "@xylabs/react-shared";
45
- var useEmbedPluginState = /* @__PURE__ */ __name(() => useContextEx(EmbedPluginContext, "EmbedPlugin", true), "useEmbedPluginState");
69
+ var useEmbedPluginState = () => useContextEx(EmbedPluginContext, "EmbedPlugin", true);
46
70
 
47
71
  // src/contexts/RefreshPayloadContext/Provider.tsx
48
- import React3, { useState } from "react";
72
+ import { useState } from "react";
49
73
 
50
74
  // src/contexts/RefreshPayloadContext/Context.ts
51
75
  import { createContextEx as createContextEx2 } from "@xylabs/react-shared";
52
76
  var RefreshPayloadContext = createContextEx2();
53
77
 
54
78
  // src/contexts/RefreshPayloadContext/Provider.tsx
55
- var RefreshPayloadProvider = /* @__PURE__ */ __name(({ children, onRefresh, refreshPayload }) => {
79
+ import { jsx as jsx3 } from "react/jsx-runtime";
80
+ var RefreshPayloadProvider = ({
81
+ children,
82
+ onRefresh,
83
+ refreshPayload
84
+ }) => {
56
85
  const [localRefreshPayload, setRefreshPayload] = useState(refreshPayload);
57
86
  return (
58
87
  // eslint-disable-next-line @eslint-react/no-unstable-context-value
59
- /* @__PURE__ */ React3.createElement(RefreshPayloadContext, {
60
- value: {
61
- onRefresh,
62
- provided: true,
63
- refreshPayload: localRefreshPayload,
64
- setRefreshPayload
88
+ /* @__PURE__ */ jsx3(
89
+ RefreshPayloadContext,
90
+ {
91
+ value: {
92
+ onRefresh,
93
+ provided: true,
94
+ refreshPayload: localRefreshPayload,
95
+ setRefreshPayload
96
+ },
97
+ children
65
98
  }
66
- }, children)
99
+ )
67
100
  );
68
- }, "RefreshPayloadProvider");
101
+ };
69
102
 
70
103
  // src/contexts/RefreshPayloadContext/use.ts
71
104
  import { useContextEx as useContextEx2 } from "@xylabs/react-shared";
72
- var useRefreshPayload = /* @__PURE__ */ __name(() => useContextEx2(RefreshPayloadContext, "RefreshPayload", true), "useRefreshPayload");
105
+ var useRefreshPayload = () => useContextEx2(RefreshPayloadContext, "RefreshPayload", true);
73
106
 
74
107
  // src/contexts/ResolvePayloadContext/Context.ts
75
108
  import { createContextEx as createContextEx3 } from "@xylabs/react-shared";
@@ -80,474 +113,500 @@ import { delay } from "@xylabs/delay";
80
113
  import { useAsyncEffect } from "@xylabs/react-async-effect";
81
114
  import { Huri } from "@xyo-network/huri";
82
115
  import { ModuleErrorSchema } from "@xyo-network/payload-model";
83
- import React4, { useEffect, useState as useState2 } from "react";
84
- var ResolvePayloadProvider = /* @__PURE__ */ __name(({ children, huriPayload }) => {
116
+ import { useEffect, useState as useState2 } from "react";
117
+ import { jsx as jsx4 } from "react/jsx-runtime";
118
+ var ResolvePayloadProvider = ({ children, huriPayload }) => {
85
119
  const [payload, setPayload] = useState2();
86
120
  const [huri, setHuri] = useState2();
87
- const { refreshPayload, setRefreshPayload, onRefresh } = useRefreshPayload();
121
+ const {
122
+ refreshPayload,
123
+ setRefreshPayload,
124
+ onRefresh
125
+ } = useRefreshPayload();
88
126
  useEffect(() => {
89
127
  typeof huriPayload === "string" ? setHuri(huriPayload) : void 0;
90
128
  if (typeof huriPayload === "object") {
91
129
  setPayload(huriPayload);
92
130
  setRefreshPayload?.(true);
93
131
  }
94
- }, [
95
- huriPayload,
96
- setRefreshPayload
97
- ]);
132
+ }, [huriPayload, setRefreshPayload]);
98
133
  const [notFound, setNotFound] = useState2();
99
134
  const [huriError, setHuriError] = useState2();
100
- useAsyncEffect(async (mounted) => {
101
- if (huri && !refreshPayload) {
102
- try {
103
- const huriInstance = new Huri(huri);
104
- const result = await huriInstance.fetch();
105
- await delay(500);
106
- if (mounted()) {
107
- setNotFound(result === null);
108
- setPayload(result);
109
- setRefreshPayload?.(true);
135
+ useAsyncEffect(
136
+ async (mounted) => {
137
+ if (huri && !refreshPayload) {
138
+ try {
139
+ const huriInstance = new Huri(huri);
140
+ const result = await huriInstance.fetch();
141
+ await delay(500);
142
+ if (mounted()) {
143
+ setNotFound(result === null);
144
+ setPayload(result);
145
+ setRefreshPayload?.(true);
146
+ }
147
+ } catch (e) {
148
+ const error = e;
149
+ setHuriError({
150
+ message: error.message,
151
+ schema: ModuleErrorSchema,
152
+ $sources: []
153
+ });
110
154
  }
111
- } catch (e) {
112
- const error = e;
113
- setHuriError({
114
- message: error.message,
115
- schema: ModuleErrorSchema,
116
- $sources: []
117
- });
118
155
  }
119
- }
120
- }, [
121
- huri,
122
- payload,
123
- refreshPayload,
124
- setRefreshPayload
125
- ]);
126
- const refreshHuri = /* @__PURE__ */ __name(() => {
156
+ },
157
+ [huri, payload, refreshPayload, setRefreshPayload]
158
+ );
159
+ const refreshHuri = () => {
127
160
  onRefresh?.();
128
161
  if (huri) {
129
162
  setRefreshPayload?.(false);
130
163
  }
131
- }, "refreshHuri");
164
+ };
132
165
  return (
133
166
  // eslint-disable-next-line @eslint-react/no-unstable-context-value
134
- /* @__PURE__ */ React4.createElement(ResolvePayloadContext, {
135
- value: {
136
- huri,
137
- huriError,
138
- notFound,
139
- payload,
140
- provided: true,
141
- refreshHuri,
142
- setPayload
167
+ /* @__PURE__ */ jsx4(
168
+ ResolvePayloadContext,
169
+ {
170
+ value: {
171
+ huri,
172
+ huriError,
173
+ notFound,
174
+ payload,
175
+ provided: true,
176
+ refreshHuri,
177
+ setPayload
178
+ },
179
+ children
143
180
  }
144
- }, children)
181
+ )
145
182
  );
146
- }, "ResolvePayloadProvider");
183
+ };
147
184
 
148
185
  // src/contexts/ResolvePayloadContext/use.ts
149
186
  import { useContextEx as useContextEx3 } from "@xylabs/react-shared";
150
- var useResolvePayload = /* @__PURE__ */ __name(() => useContextEx3(ResolvePayloadContext, "ResolvePayload", true), "useResolvePayload");
187
+ var useResolvePayload = () => useContextEx3(ResolvePayloadContext, "ResolvePayload", true);
151
188
 
152
189
  // src/contexts/ValidatePayloadContext/Provider.tsx
153
190
  import { Chip } from "@mui/material";
154
191
  import { useAsyncEffect as useAsyncEffect2 } from "@xylabs/react-async-effect";
155
192
  import { SchemaCache } from "@xyo-network/schema-cache";
156
- import React5, { useState as useState3 } from "react";
193
+ import { useState as useState3 } from "react";
157
194
 
158
195
  // src/contexts/ValidatePayloadContext/Context.ts
159
196
  import { createContextEx as createContextEx4 } from "@xylabs/react-shared";
160
197
  var ValidatePayloadContext = createContextEx4();
161
198
 
162
199
  // src/contexts/ValidatePayloadContext/Provider.tsx
163
- var ValidatePayloadProvider = /* @__PURE__ */ __name(({ children, enabled = false }) => {
200
+ import { Fragment, jsx as jsx5 } from "react/jsx-runtime";
201
+ var ValidatePayloadProvider = ({ children, enabled = false }) => {
164
202
  const { payload } = useResolvePayload();
165
203
  const [initialized, setInitialized] = useState3(false);
166
204
  const [valid, setValid] = useState3();
167
- useAsyncEffect2(async () => {
168
- if (payload && enabled) {
169
- await SchemaCache.instance.get(payload.schema);
170
- const possibleKnownSchema = payload.schema;
171
- if (SchemaCache.instance.validators[possibleKnownSchema]) {
172
- const validator = SchemaCache.instance.validators[possibleKnownSchema];
173
- setValid(validator?.(payload));
205
+ useAsyncEffect2(
206
+ async () => {
207
+ if (payload && enabled) {
208
+ await SchemaCache.instance.get(payload.schema);
209
+ const possibleKnownSchema = payload.schema;
210
+ if (SchemaCache.instance.validators[possibleKnownSchema]) {
211
+ const validator = SchemaCache.instance.validators[possibleKnownSchema];
212
+ setValid(validator?.(payload));
213
+ }
214
+ setInitialized(true);
174
215
  }
175
- setInitialized(true);
176
- }
177
- }, [
178
- payload,
179
- enabled
180
- ]);
216
+ },
217
+ [payload, enabled]
218
+ );
181
219
  return (
182
220
  // eslint-disable-next-line @eslint-react/no-unstable-context-value
183
- /* @__PURE__ */ React5.createElement(ValidatePayloadContext, {
184
- value: {
185
- enabled,
186
- provided: true,
187
- schema: payload?.schema,
188
- validPayload: valid
221
+ /* @__PURE__ */ jsx5(
222
+ ValidatePayloadContext,
223
+ {
224
+ value: {
225
+ enabled,
226
+ provided: true,
227
+ schema: payload?.schema,
228
+ validPayload: valid
229
+ },
230
+ children: enabled ? /* @__PURE__ */ jsx5(Fragment, { children: initialized ? children : /* @__PURE__ */ jsx5(Chip, { label: "Validating Payload..." }) }) : children
189
231
  }
190
- }, enabled ? /* @__PURE__ */ React5.createElement(React5.Fragment, null, initialized ? children : /* @__PURE__ */ React5.createElement(Chip, {
191
- label: "Validating Payload..."
192
- })) : children)
232
+ )
193
233
  );
194
- }, "ValidatePayloadProvider");
234
+ };
195
235
 
196
236
  // src/contexts/ValidatePayloadContext/use.ts
197
237
  import { useContextEx as useContextEx4 } from "@xylabs/react-shared";
198
- var useValidatePayload = /* @__PURE__ */ __name(() => useContextEx4(ValidatePayloadContext, "ValidateSchema", true), "useValidatePayload");
238
+ var useValidatePayload = () => useContextEx4(ValidatePayloadContext, "ValidateSchema", true);
199
239
 
200
240
  // src/components/embed-card/menu/EmbedMenu.tsx
201
241
  import { MoreVert as MoreVertIcon } from "@mui/icons-material";
202
242
  import { IconButton, Menu } from "@mui/material";
203
- import React7, { useState as useState4 } from "react";
243
+ import { useState as useState4 } from "react";
204
244
 
205
245
  // src/components/embed-card/menu/JsonMenuItem.tsx
206
246
  import { OpenInNew as OpenInNewIcon } from "@mui/icons-material";
207
- import { ListItemIcon, ListItemText, MenuItem } from "@mui/material";
208
- import React6 from "react";
209
- var JsonMenuItem = /* @__PURE__ */ __name((props) => {
247
+ import {
248
+ ListItemIcon,
249
+ ListItemText,
250
+ MenuItem
251
+ } from "@mui/material";
252
+ import { Fragment as Fragment2, jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
253
+ var JsonMenuItem = (props) => {
210
254
  const { huri } = useResolvePayload();
211
- return /* @__PURE__ */ React6.createElement(React6.Fragment, null, huri ? /* @__PURE__ */ React6.createElement(MenuItem, {
212
- title: "Source Payload JSON",
213
- onClick: /* @__PURE__ */ __name(() => window.open(huri, "_blank"), "onClick"),
214
- ...props
215
- }, /* @__PURE__ */ React6.createElement(ListItemText, {
216
- sx: {
217
- mr: 1
218
- }
219
- }, "JSON"), /* @__PURE__ */ React6.createElement(ListItemIcon, {
220
- sx: {
221
- justifyContent: "end"
222
- }
223
- }, /* @__PURE__ */ React6.createElement(OpenInNewIcon, {
224
- fontSize: "small"
225
- }))) : null);
226
- }, "JsonMenuItem");
255
+ return /* @__PURE__ */ jsx6(Fragment2, { children: huri ? /* @__PURE__ */ jsxs2(MenuItem, { title: "Source Payload JSON", onClick: () => window.open(huri, "_blank"), ...props, children: [
256
+ /* @__PURE__ */ jsx6(ListItemText, { sx: { mr: 1 }, children: "JSON" }),
257
+ /* @__PURE__ */ jsx6(ListItemIcon, { sx: { justifyContent: "end" }, children: /* @__PURE__ */ jsx6(OpenInNewIcon, { fontSize: "small" }) })
258
+ ] }) : null });
259
+ };
227
260
 
228
261
  // src/components/embed-card/menu/EmbedMenu.tsx
229
- var EmbedMenu = /* @__PURE__ */ __name((props) => {
262
+ import { Fragment as Fragment3, jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
263
+ var EmbedMenu = (props) => {
230
264
  const [anchorEl, setAnchorEl] = useState4(null);
231
265
  const open = Boolean(anchorEl);
232
- const handleClick = /* @__PURE__ */ __name((event) => {
266
+ const handleClick = (event) => {
233
267
  setAnchorEl(event.currentTarget);
234
- }, "handleClick");
235
- const handleClose = /* @__PURE__ */ __name(() => {
268
+ };
269
+ const handleClose = () => {
236
270
  setAnchorEl(null);
237
- }, "handleClose");
238
- return /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement(IconButton, {
239
- onClick: handleClick,
240
- ...props
241
- }, /* @__PURE__ */ React7.createElement(MoreVertIcon, null)), /* @__PURE__ */ React7.createElement(Menu, {
242
- anchorEl,
243
- open,
244
- onClose: handleClose,
245
- PaperProps: {
246
- variant: "elevation"
247
- },
248
- MenuListProps: {
249
- dense: true
250
- }
251
- }, /* @__PURE__ */ React7.createElement(JsonMenuItem, null)));
252
- }, "EmbedMenu");
271
+ };
272
+ return /* @__PURE__ */ jsxs3(Fragment3, { children: [
273
+ /* @__PURE__ */ jsx7(IconButton, { onClick: handleClick, ...props, children: /* @__PURE__ */ jsx7(MoreVertIcon, {}) }),
274
+ /* @__PURE__ */ jsx7(Menu, { anchorEl, open, onClose: handleClose, PaperProps: { variant: "elevation" }, MenuListProps: { dense: true }, children: /* @__PURE__ */ jsx7(JsonMenuItem, {}) })
275
+ ] });
276
+ };
253
277
 
254
278
  // src/components/embed-card/card/EmbedCardHeader.tsx
255
- var EmbedCardHeader = /* @__PURE__ */ __name(() => {
279
+ import { Fragment as Fragment4, jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
280
+ var EmbedCardHeader = () => {
256
281
  const { refreshHuri, huri } = useResolvePayload();
257
- const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState();
258
- const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {};
282
+ const {
283
+ activePlugin,
284
+ timestampLabel,
285
+ hideElementsConfig
286
+ } = useEmbedPluginState();
287
+ const {
288
+ hideAvatar,
289
+ hideTitle,
290
+ hideRefreshButton,
291
+ hideTimestamp,
292
+ hideCardActions
293
+ } = hideElementsConfig ?? {};
259
294
  const timestamp = Date.now();
260
- return /* @__PURE__ */ React8.createElement(CardHeader, {
261
- sx: {
262
- flexWrap: "wrap",
263
- rowGap: 1
264
- },
265
- avatar: hideAvatar ? /* @__PURE__ */ React8.createElement(React8.Fragment, null) : /* @__PURE__ */ React8.createElement(Avatar, {
266
- sx: {
267
- bgcolor: /* @__PURE__ */ __name((theme) => theme.vars.palette.primary.main, "bgcolor")
268
- },
269
- "aria-label": activePlugin?.name
270
- }, activePlugin?.name?.charAt(0)),
271
- action: /* @__PURE__ */ React8.createElement(FlexRow, {
272
- flexWrap: "wrap",
273
- columnGap: 0.5
274
- }, timestamp ? hideTimestamp && hideRefreshButton ? "" : /* @__PURE__ */ React8.createElement(Chip2, {
275
- avatar: hideRefreshButton ? /* @__PURE__ */ React8.createElement(React8.Fragment, null) : /* @__PURE__ */ React8.createElement(RefreshIcon, null),
276
- clickable: hideRefreshButton ? false : true,
277
- onClick: refreshHuri,
278
- label: hideTimestamp ? "" : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`
279
- }) : null, hideCardActions || huri === void 0 ? null : /* @__PURE__ */ React8.createElement(EmbedMenu, null)),
280
- title: hideTitle ? "" : activePlugin?.name
281
- });
282
- }, "EmbedCardHeader");
295
+ return /* @__PURE__ */ jsx8(
296
+ CardHeader,
297
+ {
298
+ sx: { flexWrap: "wrap", rowGap: 1 },
299
+ avatar: hideAvatar ? /* @__PURE__ */ jsx8(Fragment4, {}) : /* @__PURE__ */ jsx8(Avatar, { sx: { bgcolor: (theme) => theme.vars.palette.primary.main }, "aria-label": activePlugin?.name, children: activePlugin?.name?.charAt(0) }),
300
+ action: /* @__PURE__ */ jsxs4(FlexRow, { flexWrap: "wrap", columnGap: 0.5, children: [
301
+ timestamp ? hideTimestamp && hideRefreshButton ? "" : /* @__PURE__ */ jsx8(
302
+ Chip2,
303
+ {
304
+ avatar: hideRefreshButton ? /* @__PURE__ */ jsx8(Fragment4, {}) : /* @__PURE__ */ jsx8(RefreshIcon, {}),
305
+ clickable: hideRefreshButton ? false : true,
306
+ onClick: refreshHuri,
307
+ label: hideTimestamp ? "" : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`
308
+ }
309
+ ) : null,
310
+ hideCardActions || huri === void 0 ? null : /* @__PURE__ */ jsx8(EmbedMenu, {})
311
+ ] }),
312
+ title: hideTitle ? "" : activePlugin?.name
313
+ }
314
+ );
315
+ };
283
316
 
284
317
  // src/components/embed-card/card/EmbedPluginCard.tsx
285
318
  import { CardContent } from "@mui/material";
286
319
  import { FlexGrowRow } from "@xylabs/react-flexbox";
287
320
  import { useListMode as useListMode2 } from "@xyo-network/react-shared";
288
- import React12 from "react";
289
321
 
290
322
  // src/components/controls/EmbedFormControl.tsx
291
323
  import { FormControl, InputLabel } from "@mui/material";
292
- import React9 from "react";
293
- var EmbedFormControl = /* @__PURE__ */ __name(({ formId, formLabel, children, ...props }) => {
294
- return /* @__PURE__ */ React9.createElement(FormControl, props, /* @__PURE__ */ React9.createElement(InputLabel, {
295
- id: formId
296
- }, formLabel), children);
297
- }, "EmbedFormControl");
324
+ import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
325
+ var EmbedFormControl = ({
326
+ formId,
327
+ formLabel,
328
+ children,
329
+ ...props
330
+ }) => {
331
+ return /* @__PURE__ */ jsxs5(FormControl, { ...props, children: [
332
+ /* @__PURE__ */ jsx9(InputLabel, { id: formId, children: formLabel }),
333
+ children
334
+ ] });
335
+ };
298
336
 
299
337
  // src/components/controls/ListModeSelect.tsx
300
338
  import { MenuItem as MenuItem2 } from "@mui/material";
301
339
  import { SelectEx } from "@xylabs/react-select";
302
340
  import { useListMode } from "@xyo-network/react-shared";
303
- import React10 from "react";
341
+ import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
304
342
  var listModeSelectId = "listmode-select-id";
305
343
  var listModeSelectLabel = "List Mode";
306
- var ListModeSelect = /* @__PURE__ */ __name((props) => {
344
+ var ListModeSelect = (props) => {
307
345
  const { listMode, setListMode } = useListMode();
308
- return /* @__PURE__ */ React10.createElement(SelectEx, {
309
- value: listMode ?? "default",
310
- onChange: /* @__PURE__ */ __name((event) => {
311
- setListMode?.(event.target.value);
312
- }, "onChange"),
313
- ...props
314
- }, /* @__PURE__ */ React10.createElement(MenuItem2, {
315
- key: "default",
316
- value: "default"
317
- }, "Default"), /* @__PURE__ */ React10.createElement(MenuItem2, {
318
- key: "table",
319
- value: "table"
320
- }, "Table"), /* @__PURE__ */ React10.createElement(MenuItem2, {
321
- key: "grid",
322
- value: "grid"
323
- }, "Grid"));
324
- }, "ListModeSelect");
325
- var ListModeSelectFormControl = /* @__PURE__ */ __name((props) => {
326
- return /* @__PURE__ */ React10.createElement(EmbedFormControl, {
327
- formId: listModeSelectId,
328
- formLabel: listModeSelectLabel
329
- }, /* @__PURE__ */ React10.createElement(ListModeSelect, {
330
- size: "small",
331
- label: listModeSelectLabel,
332
- labelId: listModeSelectId,
333
- ...props
334
- }));
335
- }, "ListModeSelectFormControl");
346
+ return /* @__PURE__ */ jsxs6(
347
+ SelectEx,
348
+ {
349
+ value: listMode ?? "default",
350
+ onChange: (event) => {
351
+ setListMode?.(event.target.value);
352
+ },
353
+ ...props,
354
+ children: [
355
+ /* @__PURE__ */ jsx10(MenuItem2, { value: "default", children: "Default" }, "default"),
356
+ /* @__PURE__ */ jsx10(MenuItem2, { value: "table", children: "Table" }, "table"),
357
+ /* @__PURE__ */ jsx10(MenuItem2, { value: "grid", children: "Grid" }, "grid")
358
+ ]
359
+ }
360
+ );
361
+ };
362
+ var ListModeSelectFormControl = (props) => {
363
+ return /* @__PURE__ */ jsx10(EmbedFormControl, { formId: listModeSelectId, formLabel: listModeSelectLabel, children: /* @__PURE__ */ jsx10(ListModeSelect, { size: "small", label: listModeSelectLabel, labelId: listModeSelectId, ...props }) });
364
+ };
336
365
 
337
366
  // src/components/controls/RenderSelect.tsx
338
367
  import { MenuItem as MenuItem3 } from "@mui/material";
339
368
  import { SelectEx as SelectEx2 } from "@xylabs/react-select";
340
- import React11 from "react";
369
+ import { jsx as jsx11 } from "react/jsx-runtime";
341
370
  var renderSelectId = "render-select-id";
342
371
  var renderSelectLabel = "Renderer";
343
- var EmbedRenderSelect = /* @__PURE__ */ __name((props) => {
344
- const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState();
345
- return /* @__PURE__ */ React11.createElement(EmbedFormControl, {
346
- formId: renderSelectId,
347
- formLabel: renderSelectLabel
348
- }, /* @__PURE__ */ React11.createElement(SelectEx2, {
349
- size: "small",
350
- value: activePlugin?.name,
351
- ...props
352
- }, plugins?.map((plugin) => /* @__PURE__ */ React11.createElement(MenuItem3, {
353
- value: plugin.name,
354
- key: plugin.name,
355
- onClick: /* @__PURE__ */ __name(() => setActivePlugin?.(plugin), "onClick")
356
- }, plugin.name))));
357
- }, "EmbedRenderSelect");
372
+ var EmbedRenderSelect = (props) => {
373
+ const {
374
+ activePlugin,
375
+ setActivePlugin,
376
+ plugins
377
+ } = useEmbedPluginState();
378
+ return /* @__PURE__ */ jsx11(EmbedFormControl, { formId: renderSelectId, formLabel: renderSelectLabel, children: /* @__PURE__ */ jsx11(SelectEx2, { size: "small", value: activePlugin?.name, ...props, children: plugins?.map((plugin) => /* @__PURE__ */ jsx11(MenuItem3, { value: plugin.name, onClick: () => setActivePlugin?.(plugin), children: plugin.name }, plugin.name)) }) });
379
+ };
358
380
 
359
381
  // src/components/embed-card/card/EmbedPluginCard.tsx
360
- var EmbedPluginCard = /* @__PURE__ */ __name(({ ...props }) => {
382
+ import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
383
+ var EmbedPluginCard = ({ ...props }) => {
361
384
  const { payload } = useResolvePayload();
362
- const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = useEmbedPluginState();
385
+ const {
386
+ activePlugin: ActivePlugin,
387
+ plugins,
388
+ hideElementsConfig
389
+ } = useEmbedPluginState();
363
390
  const { listMode } = useListMode2();
364
391
  const supportsListMode = ActivePlugin?.components?.box?.listModes?.length ?? 0 > 1;
365
- return /* @__PURE__ */ React12.createElement(BusyCard, props, hideElementsConfig?.hideCardHeader ? null : /* @__PURE__ */ React12.createElement(EmbedCardHeader, null), plugins && plugins.length > 0 || supportsListMode ? /* @__PURE__ */ React12.createElement(FlexGrowRow, {
366
- columnGap: 2,
367
- rowGap: 2,
368
- flexWrap: "wrap",
369
- pb: 1
370
- }, plugins && plugins.length > 1 ? /* @__PURE__ */ React12.createElement(EmbedRenderSelect, null) : null, supportsListMode ? /* @__PURE__ */ React12.createElement(ListModeSelectFormControl, null) : null) : null, /* @__PURE__ */ React12.createElement(CardContent, {
371
- sx: {
372
- height: "100%"
373
- }
374
- }, ActivePlugin ? /* @__PURE__ */ React12.createElement(ActivePlugin.components.box.detailsBox, {
375
- payload,
376
- ...supportsListMode && {
377
- listMode
378
- }
379
- }) : null));
380
- }, "EmbedPluginCard");
392
+ return /* @__PURE__ */ jsxs7(BusyCard, { ...props, children: [
393
+ hideElementsConfig?.hideCardHeader ? null : /* @__PURE__ */ jsx12(EmbedCardHeader, {}),
394
+ plugins && plugins.length > 0 || supportsListMode ? /* @__PURE__ */ jsxs7(FlexGrowRow, { columnGap: 2, rowGap: 2, flexWrap: "wrap", pb: 1, children: [
395
+ plugins && plugins.length > 1 ? /* @__PURE__ */ jsx12(EmbedRenderSelect, {}) : null,
396
+ supportsListMode ? /* @__PURE__ */ jsx12(ListModeSelectFormControl, {}) : null
397
+ ] }) : null,
398
+ /* @__PURE__ */ jsx12(CardContent, { sx: { height: "100%" }, children: ActivePlugin ? /* @__PURE__ */ jsx12(ActivePlugin.components.box.detailsBox, { payload, ...supportsListMode && { listMode } }) : null })
399
+ ] });
400
+ };
381
401
 
382
402
  // src/components/embed-card/EmbedPluginCard.tsx
383
403
  import { useTheme } from "@mui/material";
384
- import React19 from "react";
385
404
 
386
405
  // src/components/EmbedPlugin.tsx
387
406
  import { ErrorBoundary } from "@xylabs/react-error";
388
407
  import { ListModeProvider } from "@xyo-network/react-shared";
389
- import React16 from "react";
390
408
 
391
409
  // src/components/EmbedResolver.tsx
392
410
  import { LoadResult } from "@xyo-network/react-shared";
393
- import React13 from "react";
394
- var EmbedResolver = /* @__PURE__ */ __name(({ children }) => {
395
- const { payload, notFound, huriError } = useResolvePayload();
396
- return /* @__PURE__ */ React13.createElement(LoadResult, {
397
- searchResult: payload,
398
- notFound: !!notFound,
399
- error: !!huriError
400
- }, children);
401
- }, "EmbedResolver");
411
+ import { jsx as jsx13 } from "react/jsx-runtime";
412
+ var EmbedResolver = ({ children }) => {
413
+ const {
414
+ payload,
415
+ notFound,
416
+ huriError
417
+ } = useResolvePayload();
418
+ return /* @__PURE__ */ jsx13(LoadResult, { searchResult: payload, notFound: !!notFound, error: !!huriError, children });
419
+ };
402
420
 
403
421
  // src/components/validation-alerts/ValidatePayload.tsx
404
422
  import { Alert } from "@mui/material";
405
- import React14 from "react";
406
- var ValidatePayloadAlert = /* @__PURE__ */ __name(({ children, ...props }) => {
407
- const { validPayload, enabled, schema } = useValidatePayload();
423
+ import { Fragment as Fragment5, jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
424
+ var ValidatePayloadAlert = ({ children, ...props }) => {
425
+ const {
426
+ validPayload,
427
+ enabled,
428
+ schema
429
+ } = useValidatePayload();
408
430
  if (enabled && validPayload === false) {
409
- return /* @__PURE__ */ React14.createElement(Alert, {
410
- severity: "error",
411
- title: "Invalid Payload!",
412
- ...props
413
- }, "Payload schema claimed to be", " ", schema, " ", "but failed to validate.");
431
+ return /* @__PURE__ */ jsxs8(Alert, { severity: "error", title: "Invalid Payload!", ...props, children: [
432
+ "Payload schema claimed to be",
433
+ " ",
434
+ schema,
435
+ " ",
436
+ "but failed to validate."
437
+ ] });
414
438
  }
415
- return /* @__PURE__ */ React14.createElement(React14.Fragment, null, children);
416
- }, "ValidatePayloadAlert");
439
+ return /* @__PURE__ */ jsx14(Fragment5, { children });
440
+ };
417
441
 
418
442
  // src/components/validation-alerts/ValidatePlugins.tsx
419
443
  import { Alert as Alert2, AlertTitle } from "@mui/material";
420
- import React15 from "react";
421
- var ValidatePluginsAlert = /* @__PURE__ */ __name(({ children, ...props }) => {
444
+ import { Fragment as Fragment6, jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
445
+ var ValidatePluginsAlert = ({ children, ...props }) => {
422
446
  const { payload } = useResolvePayload();
423
447
  const { plugins } = useEmbedPluginState();
424
448
  if (payload && plugins?.length === 0) {
425
- return /* @__PURE__ */ React15.createElement(Alert2, {
426
- severity: "warning",
427
- ...props
428
- }, /* @__PURE__ */ React15.createElement(AlertTitle, null, "Missing plugins!"), "Payload found but no plugins were present.");
449
+ return /* @__PURE__ */ jsxs9(Alert2, { severity: "warning", ...props, children: [
450
+ /* @__PURE__ */ jsx15(AlertTitle, { children: "Missing plugins!" }),
451
+ "Payload found but no plugins were present."
452
+ ] });
429
453
  }
430
- return /* @__PURE__ */ React15.createElement(React15.Fragment, null, children);
431
- }, "ValidatePluginsAlert");
454
+ return /* @__PURE__ */ jsx15(Fragment6, { children });
455
+ };
432
456
 
433
457
  // src/components/EmbedPlugin.tsx
434
- var EmbedPluginInner = /* @__PURE__ */ __name(({ validateSchema, plugins, huriPayload, refreshTitle = "", timestampLabel = "Data From", hideElementsConfig, embedPluginConfig, onRefresh, children }) => {
435
- return /* @__PURE__ */ React16.createElement(ErrorBoundary, null, /* @__PURE__ */ React16.createElement(EmbedPluginProvider, {
436
- refreshTitle,
437
- timestampLabel,
438
- hideElementsConfig,
439
- plugins,
440
- embedPluginConfig
441
- }, /* @__PURE__ */ React16.createElement(WithResolvers, {
442
- onRefresh,
443
- huriPayload
444
- }, /* @__PURE__ */ React16.createElement(WithValidators, {
445
- validateSchema
446
- }, /* @__PURE__ */ React16.createElement(ListModeProvider, {
447
- defaultListMode: embedPluginConfig?.listMode
448
- }, children)))));
449
- }, "EmbedPluginInner");
450
- var WithResolvers = /* @__PURE__ */ __name(({ children, onRefresh, huriPayload }) => {
451
- return /* @__PURE__ */ React16.createElement(RefreshPayloadProvider, {
452
- onRefresh
453
- }, /* @__PURE__ */ React16.createElement(ResolvePayloadProvider, {
454
- huriPayload
455
- }, /* @__PURE__ */ React16.createElement(EmbedResolver, null, children)));
456
- }, "WithResolvers");
457
- var WithValidators = /* @__PURE__ */ __name(({ children, validateSchema }) => {
458
- return /* @__PURE__ */ React16.createElement(ValidatePayloadProvider, {
459
- enabled: validateSchema
460
- }, /* @__PURE__ */ React16.createElement(ValidatePluginsAlert, null, /* @__PURE__ */ React16.createElement(ValidatePayloadAlert, null, children)));
461
- }, "WithValidators");
458
+ import { jsx as jsx16 } from "react/jsx-runtime";
459
+ var EmbedPluginInner = ({
460
+ validateSchema,
461
+ plugins,
462
+ huriPayload,
463
+ refreshTitle = "",
464
+ timestampLabel = "Data From",
465
+ hideElementsConfig,
466
+ embedPluginConfig,
467
+ onRefresh,
468
+ children
469
+ }) => {
470
+ return /* @__PURE__ */ jsx16(ErrorBoundary, { children: /* @__PURE__ */ jsx16(
471
+ EmbedPluginProvider,
472
+ {
473
+ refreshTitle,
474
+ timestampLabel,
475
+ hideElementsConfig,
476
+ plugins,
477
+ embedPluginConfig,
478
+ children: /* @__PURE__ */ jsx16(WithResolvers, { onRefresh, huriPayload, children: /* @__PURE__ */ jsx16(WithValidators, { validateSchema, children: /* @__PURE__ */ jsx16(ListModeProvider, { defaultListMode: embedPluginConfig?.listMode, children }) }) })
479
+ }
480
+ ) });
481
+ };
482
+ var WithResolvers = ({
483
+ children,
484
+ onRefresh,
485
+ huriPayload
486
+ }) => {
487
+ return /* @__PURE__ */ jsx16(RefreshPayloadProvider, { onRefresh, children: /* @__PURE__ */ jsx16(ResolvePayloadProvider, { huriPayload, children: /* @__PURE__ */ jsx16(EmbedResolver, { children }) }) });
488
+ };
489
+ var WithValidators = ({ children, validateSchema }) => {
490
+ return /* @__PURE__ */ jsx16(ValidatePayloadProvider, { enabled: validateSchema, children: /* @__PURE__ */ jsx16(ValidatePluginsAlert, { children: /* @__PURE__ */ jsx16(ValidatePayloadAlert, { children }) }) });
491
+ };
462
492
 
463
493
  // src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
464
494
  import { ErrorAlert, ErrorRender } from "@xylabs/react-error";
465
- import React18 from "react";
466
495
 
467
496
  // src/components/embed-card/error-handling/EmbedErrorCard.tsx
468
- import { Alert as Alert3, AlertTitle as AlertTitle2, Card as Card2, CardContent as CardContent2, Typography } from "@mui/material";
469
- import React17 from "react";
470
- var EmbedErrorCard = /* @__PURE__ */ __name((props) => {
471
- const { alertProps, error, scope, hideErrorDetails = true, children, ...cardProps } = props;
497
+ import {
498
+ Alert as Alert3,
499
+ AlertTitle as AlertTitle2,
500
+ Card as Card2,
501
+ CardContent as CardContent2,
502
+ Typography
503
+ } from "@mui/material";
504
+ import { Fragment as Fragment7, jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
505
+ var EmbedErrorCard = (props) => {
506
+ const {
507
+ alertProps,
508
+ error,
509
+ scope,
510
+ hideErrorDetails = true,
511
+ children,
512
+ ...cardProps
513
+ } = props;
472
514
  const errorProps = {
473
515
  alertProps,
474
516
  error,
475
517
  hideErrorDetails,
476
518
  scope
477
519
  };
478
- return /* @__PURE__ */ React17.createElement(Card2, cardProps, /* @__PURE__ */ React17.createElement(CardContent2, null, children ?? /* @__PURE__ */ React17.createElement(DefaultErrorAlert, errorProps)));
479
- }, "EmbedErrorCard");
480
- var DefaultErrorAlert = /* @__PURE__ */ __name(({ alertProps, scope, hideErrorDetails, error }) => {
481
- return /* @__PURE__ */ React17.createElement(Alert3, {
482
- severity: "error",
483
- ...alertProps
484
- }, /* @__PURE__ */ React17.createElement(AlertTitle2, null, "Whoops! Something went wrong"), scope ? /* @__PURE__ */ React17.createElement(Typography, {
485
- variant: "caption"
486
- }, "Scope:", scope) : null, !hideErrorDetails && error ? /* @__PURE__ */ React17.createElement(React17.Fragment, null, /* @__PURE__ */ React17.createElement(Typography, {
487
- variant: "caption"
488
- }, "Error: "), /* @__PURE__ */ React17.createElement(Typography, {
489
- variant: "caption"
490
- }, error?.message)) : /* @__PURE__ */ React17.createElement(Typography, {
491
- variant: "caption",
492
- fontSize: "small"
493
- }, "Error Loading Plugin"));
494
- }, "DefaultErrorAlert");
520
+ return /* @__PURE__ */ jsx17(Card2, { ...cardProps, children: /* @__PURE__ */ jsx17(CardContent2, { children: children ?? /* @__PURE__ */ jsx17(DefaultErrorAlert, { ...errorProps }) }) });
521
+ };
522
+ var DefaultErrorAlert = ({
523
+ alertProps,
524
+ scope,
525
+ hideErrorDetails,
526
+ error
527
+ }) => {
528
+ return /* @__PURE__ */ jsxs10(Alert3, { severity: "error", ...alertProps, children: [
529
+ /* @__PURE__ */ jsx17(AlertTitle2, { children: "Whoops! Something went wrong" }),
530
+ scope ? /* @__PURE__ */ jsxs10(Typography, { variant: "caption", children: [
531
+ "Scope:",
532
+ scope
533
+ ] }) : null,
534
+ !hideErrorDetails && error ? /* @__PURE__ */ jsxs10(Fragment7, { children: [
535
+ /* @__PURE__ */ jsx17(Typography, { variant: "caption", children: "Error: " }),
536
+ /* @__PURE__ */ jsx17(Typography, { variant: "caption", children: error?.message })
537
+ ] }) : /* @__PURE__ */ jsx17(Typography, { variant: "caption", fontSize: "small", children: "Error Loading Plugin" })
538
+ ] });
539
+ };
495
540
 
496
541
  // src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
497
- var EmbedCardApiErrorRenderer = /* @__PURE__ */ __name(({ xyoError, children, ...props }) => {
498
- return /* @__PURE__ */ React18.createElement(ErrorRender, {
499
- error: xyoError,
500
- noReAuth: true,
501
- noErrorDisplay: true,
502
- customError: /* @__PURE__ */ React18.createElement(CustomApiErrorCard, {
503
- xyoError,
504
- ...props
505
- })
506
- }, children);
507
- }, "EmbedCardApiErrorRenderer");
508
- var CustomApiErrorCard = /* @__PURE__ */ __name(({ xyoError, ...props }) => {
509
- return /* @__PURE__ */ React18.createElement(EmbedErrorCard, props, /* @__PURE__ */ React18.createElement(ErrorAlert, {
510
- error: xyoError
511
- }));
512
- }, "CustomApiErrorCard");
542
+ import { jsx as jsx18 } from "react/jsx-runtime";
543
+ var EmbedCardApiErrorRenderer = ({
544
+ xyoError,
545
+ children,
546
+ ...props
547
+ }) => {
548
+ return /* @__PURE__ */ jsx18(ErrorRender, { error: xyoError, noReAuth: true, noErrorDisplay: true, customError: /* @__PURE__ */ jsx18(CustomApiErrorCard, { xyoError, ...props }), children });
549
+ };
550
+ var CustomApiErrorCard = ({ xyoError, ...props }) => {
551
+ return /* @__PURE__ */ jsx18(EmbedErrorCard, { ...props, children: /* @__PURE__ */ jsx18(ErrorAlert, { error: xyoError }) });
552
+ };
513
553
 
514
554
  // src/components/embed-card/EmbedPluginCard.tsx
515
- var ApiEmbedPluginCard = /* @__PURE__ */ __name(({ children, ...props }) => {
516
- const { validateSchema, plugins = [], huriPayload, refreshTitle = "", timestampLabel = "Data From", hideElementsConfig, embedPluginConfig, onRefresh, ...busyCardProps } = props;
517
- return /* @__PURE__ */ React19.createElement(EmbedPluginInner, {
518
- embedPluginConfig,
519
- hideElementsConfig,
555
+ import { jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
556
+ var ApiEmbedPluginCard = ({ children, ...props }) => {
557
+ const {
558
+ validateSchema,
559
+ plugins = [],
520
560
  huriPayload,
561
+ refreshTitle = "",
562
+ timestampLabel = "Data From",
563
+ hideElementsConfig,
564
+ embedPluginConfig,
521
565
  onRefresh,
522
- plugins,
523
- refreshTitle,
524
- timestampLabel,
525
- validateSchema
526
- }, /* @__PURE__ */ React19.createElement(EmbedPluginCardInner, busyCardProps), children);
527
- }, "ApiEmbedPluginCard");
528
- var EmbedPluginCardInner = /* @__PURE__ */ __name((props) => {
566
+ ...busyCardProps
567
+ } = props;
568
+ return /* @__PURE__ */ jsxs11(
569
+ EmbedPluginInner,
570
+ {
571
+ ...{
572
+ embedPluginConfig,
573
+ hideElementsConfig,
574
+ huriPayload,
575
+ onRefresh,
576
+ plugins,
577
+ refreshTitle,
578
+ timestampLabel,
579
+ validateSchema
580
+ },
581
+ children: [
582
+ /* @__PURE__ */ jsx19(EmbedPluginCardInner, { ...busyCardProps }),
583
+ children
584
+ ]
585
+ }
586
+ );
587
+ };
588
+ var EmbedPluginCardInner = (props) => {
529
589
  const { payload, huriError } = useResolvePayload();
530
590
  const { refreshPayload } = useRefreshPayload();
531
591
  const theme = useTheme();
532
- return /* @__PURE__ */ React19.createElement(EmbedCardApiErrorRenderer, {
533
- xyoError: huriError
534
- }, /* @__PURE__ */ React19.createElement(EmbedPluginCard, {
535
- elevation: 3,
536
- variant: "elevation",
537
- busy: Boolean(!refreshPayload && payload),
538
- busyVariantProps: {
539
- style: {
540
- alignItems: "start",
541
- paddingTop: theme.spacing(2),
542
- zIndex: 2
543
- }
544
- },
545
- sx: {
546
- position: "relative"
547
- },
548
- ...props
549
- }));
550
- }, "EmbedPluginCardInner");
592
+ return /* @__PURE__ */ jsx19(EmbedCardApiErrorRenderer, { xyoError: huriError, children: /* @__PURE__ */ jsx19(
593
+ EmbedPluginCard,
594
+ {
595
+ elevation: 3,
596
+ variant: "elevation",
597
+ busy: Boolean(!refreshPayload && payload),
598
+ busyVariantProps: {
599
+ style: {
600
+ alignItems: "start",
601
+ paddingTop: theme.spacing(2),
602
+ zIndex: 2
603
+ }
604
+ },
605
+ sx: { position: "relative" },
606
+ ...props
607
+ }
608
+ ) });
609
+ };
551
610
  export {
552
611
  ApiEmbedPluginCard,
553
612
  BusyCard,