@xyo-network/react-embed 7.6.2 → 8.0.0
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/browser/components/embed-card/EmbedCardResolver.d.ts.map +1 -1
- package/dist/browser/components/embed-card/card/EmbedCardHeader.d.ts.map +1 -1
- package/dist/browser/components/embed-card/card/EmbedPluginCard.d.ts.map +1 -1
- package/dist/browser/index.mjs +45 -18
- package/dist/browser/index.mjs.map +1 -1
- package/package.json +140 -143
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbedCardResolver.d.ts","sourceRoot":"","sources":["../../../../src/components/embed-card/EmbedCardResolver.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"EmbedCardResolver.d.ts","sourceRoot":"","sources":["../../../../src/components/embed-card/EmbedCardResolver.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,YAAY,CAAC,CA6B9E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbedCardHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/EmbedCardHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAS,MAAM,eAAe,CAAA;AAM3D,OAAO,KAAmB,MAAM,OAAO,CAAA;AAKvC,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"EmbedCardHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/EmbedCardHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAS,MAAM,eAAe,CAAA;AAM3D,OAAO,KAAmB,MAAM,OAAO,CAAA;AAKvC,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAiDrD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbedPluginCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/EmbedPluginCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAInD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"EmbedPluginCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/EmbedPluginCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAInD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAuCnD,CAAA"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -267,7 +267,7 @@ var JsonMenuItem = (props) => {
|
|
|
267
267
|
const { huri } = useResolvePayload();
|
|
268
268
|
return /* @__PURE__ */ jsx7(Fragment2, { children: isDefined2(huri) ? /* @__PURE__ */ jsxs2(MenuItem, { title: "Source Payload JSON", onClick: () => window.open(huri, "_blank"), ...props, children: [
|
|
269
269
|
/* @__PURE__ */ jsx7(ListItemText, { sx: { mr: 1 }, children: "JSON" }),
|
|
270
|
-
/* @__PURE__ */ jsx7(ListItemIcon, { sx: { justifyContent: "end" }, children: /* @__PURE__ */ jsx7(OpenInNewIcon, { fontSize: "small" }) })
|
|
270
|
+
/* @__PURE__ */ jsx7(ListItemIcon, { sx: { justifyContent: "end" }, children: /* @__PURE__ */ jsx7(OpenInNewIcon, { sx: { fontSize: "small" } }) })
|
|
271
271
|
] }) : null });
|
|
272
272
|
};
|
|
273
273
|
|
|
@@ -322,18 +322,27 @@ var EmbedCardHeader = () => {
|
|
|
322
322
|
{
|
|
323
323
|
sx: { flexWrap: "wrap", rowGap: 1 },
|
|
324
324
|
avatar: hideAvatar ? /* @__PURE__ */ jsx9(Fragment4, {}) : /* @__PURE__ */ jsx9(Avatar, { sx: { bgcolor: (theme) => theme.vars.palette.primary.main }, "aria-label": activePlugin?.name, children: activePlugin?.name?.charAt(0) }),
|
|
325
|
-
action: /* @__PURE__ */ jsxs4(
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
{
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
325
|
+
action: /* @__PURE__ */ jsxs4(
|
|
326
|
+
FlexRow,
|
|
327
|
+
{
|
|
328
|
+
sx: {
|
|
329
|
+
flexWrap: "wrap",
|
|
330
|
+
columnGap: 0.5
|
|
331
|
+
},
|
|
332
|
+
children: [
|
|
333
|
+
isDefined3(timestamp) && !Number.isNaN(timestamp) ? hideTimestamp && hideRefreshButton ? "" : /* @__PURE__ */ jsx9(
|
|
334
|
+
Chip2,
|
|
335
|
+
{
|
|
336
|
+
avatar: hideRefreshButton ? /* @__PURE__ */ jsx9(Fragment4, {}) : /* @__PURE__ */ jsx9(RefreshIcon, {}),
|
|
337
|
+
clickable: hideRefreshButton ? false : true,
|
|
338
|
+
onClick: refreshHuri,
|
|
339
|
+
label: hideTimestamp ? "" : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`
|
|
340
|
+
}
|
|
341
|
+
) : null,
|
|
342
|
+
hideCardActions || huri === void 0 ? null : /* @__PURE__ */ jsx9(EmbedMenu, {})
|
|
343
|
+
]
|
|
344
|
+
}
|
|
345
|
+
),
|
|
337
346
|
title: hideTitle ? "" : activePlugin?.name
|
|
338
347
|
}
|
|
339
348
|
);
|
|
@@ -418,10 +427,21 @@ var EmbedPluginCard = ({ ...props }) => {
|
|
|
418
427
|
const supportsListMode = isTruthy(ActivePlugin?.components?.box?.listModes?.length) ? true : false;
|
|
419
428
|
return /* @__PURE__ */ jsxs7(BusyCard, { ...props, children: [
|
|
420
429
|
hideElementsConfig?.hideCardHeader ? null : /* @__PURE__ */ jsx13(EmbedCardHeader, {}),
|
|
421
|
-
plugins && plugins.length > 0 || supportsListMode ? /* @__PURE__ */ jsxs7(
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
430
|
+
plugins && plugins.length > 0 || supportsListMode ? /* @__PURE__ */ jsxs7(
|
|
431
|
+
FlexGrowRow,
|
|
432
|
+
{
|
|
433
|
+
sx: {
|
|
434
|
+
columnGap: 2,
|
|
435
|
+
rowGap: 2,
|
|
436
|
+
flexWrap: "wrap",
|
|
437
|
+
pb: 1
|
|
438
|
+
},
|
|
439
|
+
children: [
|
|
440
|
+
plugins && plugins.length > 1 ? /* @__PURE__ */ jsx13(EmbedRenderSelect, {}) : null,
|
|
441
|
+
supportsListMode ? /* @__PURE__ */ jsx13(ListModeSelectFormControl, {}) : null
|
|
442
|
+
]
|
|
443
|
+
}
|
|
444
|
+
) : null,
|
|
425
445
|
/* @__PURE__ */ jsx13(CardContent, { sx: { height: "100%" }, children: ActivePlugin ? /* @__PURE__ */ jsx13(ActivePlugin.components.box.detailsBox, { payload, ...pluginProps, ...supportsListMode && { listMode } }) : null })
|
|
426
446
|
] });
|
|
427
447
|
};
|
|
@@ -562,7 +582,14 @@ var DefaultErrorAlert = ({
|
|
|
562
582
|
!hideErrorDetails && error ? /* @__PURE__ */ jsxs10(Fragment7, { children: [
|
|
563
583
|
/* @__PURE__ */ jsx18(Typography, { variant: "caption", children: "Error: " }),
|
|
564
584
|
/* @__PURE__ */ jsx18(Typography, { variant: "caption", children: error?.message })
|
|
565
|
-
] }) : /* @__PURE__ */ jsx18(
|
|
585
|
+
] }) : /* @__PURE__ */ jsx18(
|
|
586
|
+
Typography,
|
|
587
|
+
{
|
|
588
|
+
variant: "caption",
|
|
589
|
+
sx: { fontSize: "small" },
|
|
590
|
+
children: "Error Loading Plugin"
|
|
591
|
+
}
|
|
592
|
+
)
|
|
566
593
|
] });
|
|
567
594
|
};
|
|
568
595
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/embed-card/card/BusyCard.tsx","../../src/components/embed-card/card/EmbedCardHeader.tsx","../../src/contexts/EmbedPluginContext/Context.ts","../../src/contexts/EmbedPluginContext/Provider.tsx","../../src/contexts/EmbedPluginContext/use.ts","../../src/contexts/PluginPropsContext/context.ts","../../src/contexts/PluginPropsContext/Provider.tsx","../../src/contexts/PluginPropsContext/use.ts","../../src/contexts/RefreshPayloadContext/Provider.tsx","../../src/contexts/RefreshPayloadContext/Context.ts","../../src/contexts/RefreshPayloadContext/use.ts","../../src/contexts/ResolvePayloadContext/Context.ts","../../src/contexts/ResolvePayloadContext/Provider.tsx","../../src/contexts/ResolvePayloadContext/use.ts","../../src/contexts/ValidatePayloadContext/Provider.tsx","../../src/contexts/ValidatePayloadContext/Context.ts","../../src/contexts/ValidatePayloadContext/use.ts","../../src/components/embed-card/menu/EmbedMenu.tsx","../../src/components/embed-card/menu/JsonMenuItem.tsx","../../src/components/embed-card/card/EmbedPluginCard.tsx","../../src/components/controls/EmbedFormControl.tsx","../../src/components/controls/ListModeSelect.tsx","../../src/components/controls/RenderSelect.tsx","../../src/components/embed-card/EmbedPluginCard.tsx","../../src/components/EmbedPlugin.tsx","../../src/components/EmbedResolver.tsx","../../src/components/validation-alerts/ValidatePayload.tsx","../../src/components/validation-alerts/ValidatePlugins.tsx","../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx","../../src/components/embed-card/error-handling/EmbedErrorCard.tsx"],"sourcesContent":["import type { CardProps } from '@mui/material'\nimport { Card } from '@mui/material'\nimport { useBusyTiming } from '@xylabs/react-flexbox'\nimport type {\n BusyCircularProgressProps,\n BusyLinearProgressProps,\n BusyVariant,\n} from '@xylabs/react-shared'\nimport {\n BusyCircularProgress,\n BusyLinearProgress,\n} from '@xylabs/react-shared'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nexport interface BusyCardProps extends CardProps {\n busy?: boolean\n busyMinimum?: number\n busyVariant?: BusyVariant\n busyVariantProps?: BusyCircularProgressProps | BusyLinearProgressProps\n}\n\nexport const BusyCard: React.FC<PropsWithChildren<BusyCardProps>> = ({\n busy,\n busyMinimum = 500,\n busyVariant = 'circular',\n busyVariantProps,\n children,\n ...props\n}) => {\n const internalBusy = useBusyTiming(busy, busyMinimum)\n return (\n <Card {...props}>\n {children}\n {busyVariant === 'circular' && internalBusy\n ? <BusyCircularProgress {...(busyVariantProps as BusyCircularProgressProps)} />\n : null}\n {busyVariant === 'linear' && internalBusy\n ? <BusyLinearProgress {...(busyVariantProps as BusyLinearProgressProps)} />\n : null}\n </Card>\n )\n}\n","import { Refresh as RefreshIcon } from '@mui/icons-material'\nimport type { CardHeaderProps, Theme } from '@mui/material'\nimport {\n Avatar, CardHeader, Chip,\n} from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { isDefined } from '@xylabs/sdk-js'\nimport React, { useState } from 'react'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../../contexts/index.ts'\nimport { EmbedMenu } from '../menu/index.ts'\n\nexport const EmbedCardHeader: React.FC<CardHeaderProps> = () => {\n const { refreshHuri, huri } = useResolvePayload()\n const {\n activePlugin, timestampLabel, hideElementsConfig,\n } = useEmbedPluginState()\n const {\n hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions,\n } = hideElementsConfig ?? {}\n // this is temporary so that we can add the ability to get a timestamp via diviner later\n const [timestamp] = useState(() => Date.now())\n return (\n <CardHeader\n sx={{ flexWrap: 'wrap', rowGap: 1 }}\n avatar={\n hideAvatar\n ? <></>\n : (\n <Avatar sx={{ bgcolor: (theme: Theme) => theme.vars.palette.primary.main }} aria-label={activePlugin?.name}>\n {activePlugin?.name?.charAt(0)}\n </Avatar>\n )\n }\n action={(\n <FlexRow flexWrap=\"wrap\" columnGap={0.5}>\n {isDefined(timestamp) && !Number.isNaN(timestamp)\n ? hideTimestamp && hideRefreshButton\n ? ''\n : (\n <Chip\n avatar={hideRefreshButton ? <></> : <RefreshIcon />}\n clickable={hideRefreshButton ? false : true}\n onClick={refreshHuri}\n label={hideTimestamp ? '' : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`}\n />\n )\n\n : null}\n {/* Huri case is valid as long as the only menu item is JSON */}\n {hideCardActions || huri === undefined ? null : <EmbedMenu />}\n </FlexRow>\n )}\n title={hideTitle ? '' : activePlugin?.name}\n />\n )\n}\n","import { createContextEx } from '@xylabs/react-shared'\n\nimport type { EmbedPluginState } from './State.ts'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n","import { useResetState } from '@xylabs/react-hooks'\nimport type { PropsWithChildren } from 'react'\nimport React, { useMemo } from 'react'\n\nimport { EmbedPluginContext } from './Context.ts'\nimport type { EmbedPluginBase } from './State.ts'\n\nexport type EmbedPluginProviderProps = EmbedPluginBase\n\n/** Expose passed embed plugin props via context */\nexport const EmbedPluginProvider: React.FC<PropsWithChildren<EmbedPluginProviderProps>> = ({\n children,\n refreshTitle,\n timestampLabel,\n hideElementsConfig,\n plugins,\n embedPluginConfig,\n}) => {\n const [activePlugin, setActivePlugin] = useResetState(plugins ? plugins[0] : undefined)\n\n const value = useMemo(() => ({\n activePlugin,\n embedPluginConfig,\n hideElementsConfig,\n provided: true as const,\n refreshTitle,\n setActivePlugin,\n timestampLabel,\n }), [activePlugin, embedPluginConfig, hideElementsConfig, refreshTitle, setActivePlugin, timestampLabel])\n\n return (\n <EmbedPluginContext\n value={value}\n >\n {children}\n </EmbedPluginContext>\n )\n}\n","import { useContextEx } from '@xylabs/react-shared'\n\nimport { EmbedPluginContext } from './Context.ts'\n\nexport const useEmbedPluginState = () => useContextEx(EmbedPluginContext, 'EmbedPlugin', true)\n","import { createContextEx } from '@xylabs/react-shared'\n\nimport type { PluginPropsState } from './state.ts'\n\nexport const PluginPropsContext = createContextEx<PluginPropsState>()\n","import type { PropsWithChildren } from 'react'\nimport React, {\n useEffect, useMemo, useState,\n} from 'react'\n\nimport { PluginPropsContext } from './context.ts'\nimport type { PluginProps, PluginPropsState } from './state.ts'\n\nexport interface PluginPropsProviderProps extends PropsWithChildren {\n pluginProps?: PluginProps\n}\n\nexport const PluginPropsProvider: React.FC<PluginPropsProviderProps> = ({ children, pluginProps: pluginPropsProp }) => {\n const [pluginProps, setPluginProps] = useState<PluginProps | undefined>(pluginPropsProp)\n\n useEffect(() => {\n // needs to be in useEffect since we are in a provider\n // eslint-disable-next-line react-hooks/set-state-in-effect, react-x/set-state-in-effect\n setPluginProps(pluginPropsProp)\n }, [pluginPropsProp])\n\n const value: PluginPropsState = useMemo(() => ({\n pluginProps,\n provided: true as const,\n }), [pluginProps])\n\n return (\n <PluginPropsContext value={value}>\n {children}\n </PluginPropsContext>\n )\n}\n","import { useContextEx } from '@xylabs/react-shared'\n\nimport { PluginPropsContext } from './context.ts'\n\nexport const usePluginProps = (required = false) => useContextEx(PluginPropsContext, 'PluginProps', required)\n","import type { PropsWithChildren } from 'react'\nimport React, { useMemo, useState } from 'react'\n\nimport { RefreshPayloadContext } from './Context.ts'\n\nexport interface RefreshPayloadProps {\n onRefresh?: () => void\n refreshPayload?: boolean\n}\n\nexport const RefreshPayloadProvider: React.FC<PropsWithChildren<RefreshPayloadProps>> = ({\n children, onRefresh, refreshPayload,\n}) => {\n const [localRefreshPayload, setLocalRefreshPayload] = useState(refreshPayload)\n\n const value = useMemo(() => ({\n onRefresh, provided: true as const, refreshPayload: localRefreshPayload, setRefreshPayload: setLocalRefreshPayload,\n }), [onRefresh, localRefreshPayload])\n\n return (\n <RefreshPayloadContext value={value}>\n {children}\n </RefreshPayloadContext>\n )\n}\n","import { createContextEx } from '@xylabs/react-shared'\n\nimport type { RefreshPayloadState } from './State.ts'\n\nexport const RefreshPayloadContext = createContextEx<RefreshPayloadState>()\n","import { useContextEx } from '@xylabs/react-shared'\n\nimport { RefreshPayloadContext } from './Context.ts'\n\nexport const useRefreshPayload = () => useContextEx(RefreshPayloadContext, 'RefreshPayload', true)\n","import { createContextEx } from '@xylabs/react-shared'\n\nimport type { ResolvePayloadState } from './State.ts'\n\nexport const ResolvePayloadContext = createContextEx<ResolvePayloadState>()\n","import { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { delay, isDefined } from '@xylabs/sdk-js'\nimport { Huri } from '@xyo-network/huri'\nimport type {\n ModuleError, Payload, WithSources,\n} from '@xyo-network/payload-model'\nimport { ModuleErrorSchema } from '@xyo-network/payload-model'\nimport type { PropsWithChildren } from 'react'\nimport React, {\n useCallback, useEffect, useMemo, useState,\n} from 'react'\n\nimport { useRefreshPayload } from '../RefreshPayloadContext/index.ts'\nimport { ResolvePayloadContext } from './Context.ts'\nimport type { ResolvePayloadState } from './State.ts'\n\nexport type ResolvePayloadProviderProps = Omit<ResolvePayloadState, 'provided'>\n\nexport const ResolvePayloadProvider: React.FC<PropsWithChildren<ResolvePayloadProviderProps>> = ({ children, huriPayload }) => {\n const [payload, setPayload] = useState<Payload>()\n const [huri, setHuri] = useState<string>()\n const {\n refreshPayload, setRefreshPayload, onRefresh,\n } = useRefreshPayload()\n\n useEffect(() => {\n if (typeof huriPayload === 'string') {\n // eslint-disable-next-line react-hooks/set-state-in-effect, react-x/set-state-in-effect\n setHuri(huriPayload)\n } else if (typeof huriPayload === 'object') {\n // eslint-disable-next-line react-x/set-state-in-effect\n setPayload(huriPayload)\n setRefreshPayload?.(true)\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps, react-x/exhaustive-deps\n }, [huriPayload])\n\n const [notFound, setNotFound] = useState<boolean>()\n const [huriError, setHuriError] = useState<WithSources<ModuleError>>()\n\n useAsyncEffect(\n async (mounted) => {\n if (isDefined(huri) && !refreshPayload) {\n try {\n const huriInstance = new Huri(huri)\n // eslint-disable-next-line react-web-api/no-leaked-fetch -- Huri.fetch does not support AbortSignal; mounted() guards stale writes\n const result = await huriInstance.fetch()\n // ensure the busy state can stay for a moment to avoid flashing too quickly\n await delay(500)\n\n if (mounted()) {\n setNotFound(result === null)\n setPayload(result)\n setRefreshPayload?.(true)\n }\n } catch (e) {\n const error = e as Error\n setHuriError({\n message: error.message, schema: ModuleErrorSchema, $sources: [],\n })\n }\n }\n },\n [huri, payload, refreshPayload, setRefreshPayload],\n )\n\n const refreshHuri = useCallback(() => {\n onRefresh?.()\n if (isDefined(huri)) {\n setRefreshPayload?.(false)\n }\n }, [onRefresh, huri, setRefreshPayload])\n\n const value = useMemo(() => ({\n huri, huriError, notFound, payload, provided: true as const, refreshHuri, setPayload,\n }), [huri, huriError, notFound, payload, refreshHuri, setPayload])\n\n return (\n <ResolvePayloadContext value={value}>\n {children}\n </ResolvePayloadContext>\n )\n}\n","import { useContextEx } from '@xylabs/react-shared'\n\nimport { ResolvePayloadContext } from './Context.ts'\n\nexport const useResolvePayload = () => useContextEx(ResolvePayloadContext, 'ResolvePayload', true)\n","import { Chip } from '@mui/material'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport type { SchemaNameToValidatorMap } from '@xyo-network/schema-cache'\nimport { SchemaCache } from '@xyo-network/schema-cache'\nimport type { PropsWithChildren } from 'react'\nimport React, { useMemo, useState } from 'react'\n\nimport { useResolvePayload } from '../ResolvePayloadContext/index.ts'\nimport { ValidatePayloadContext } from './Context.ts'\n\nexport interface ValidatePayloadProviderProps {\n // Opt-in flag to validate payloads for the plugin(s)\n enabled?: boolean\n}\n\nexport const ValidatePayloadProvider: React.FC<PropsWithChildren<ValidatePayloadProviderProps>> = ({ children, enabled = false }) => {\n const { payload } = useResolvePayload()\n const [initialized, setInitialized] = useState(false)\n // eslint-disable-next-line react-x/use-state\n const [valid, _setValid] = useState<boolean>()\n\n useAsyncEffect(\n async () => {\n if (payload && enabled) {\n await SchemaCache.instance.get(payload.schema)\n\n const possibleKnownSchema = payload.schema as keyof SchemaNameToValidatorMap\n\n if (SchemaCache.instance.validators[possibleKnownSchema]) {\n const _validator = SchemaCache.instance.validators[possibleKnownSchema]\n // TODO: Fix Types\n // setValid(validator?.(payload))\n }\n setInitialized(true)\n }\n },\n [payload, enabled],\n )\n\n const value = useMemo(() => ({\n enabled, provided: true as const, schema: payload?.schema, validPayload: valid,\n }), [enabled, payload?.schema, valid])\n\n return (\n <ValidatePayloadContext value={value}>\n {enabled\n ? <>{initialized ? children : <Chip label=\"Validating Payload...\" />}</>\n : children}\n </ValidatePayloadContext>\n )\n}\n","import { createContextEx } from '@xylabs/react-shared'\n\nimport type { ValidatePayloadState } from './State.ts'\n\nexport const ValidatePayloadContext = createContextEx<ValidatePayloadState>()\n","import { useContextEx } from '@xylabs/react-shared'\n\nimport { ValidatePayloadContext } from './Context.ts'\n\nexport const useValidatePayload = () => useContextEx(ValidatePayloadContext, 'ValidateSchema', true)\n","import { MoreVert as MoreVertIcon } from '@mui/icons-material'\nimport type { IconButtonProps } from '@mui/material'\nimport { IconButton, Menu } from '@mui/material'\nimport React, { useState } from 'react'\n\nimport { JsonMenuItem } from './JsonMenuItem.tsx'\n\nexport const EmbedMenu: React.FC<IconButtonProps> = (props) => {\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null)\n const open = Boolean(anchorEl)\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget)\n }\n const handleClose = () => {\n setAnchorEl(null)\n }\n\n return (\n <>\n <IconButton onClick={handleClick} {...props}>\n <MoreVertIcon />\n </IconButton>\n <Menu\n anchorEl={anchorEl}\n open={open}\n onClose={handleClose}\n slotProps={{\n paper: { variant: 'elevation' },\n list: { dense: true },\n }}\n >\n <JsonMenuItem />\n </Menu>\n </>\n )\n}\n","import { OpenInNew as OpenInNewIcon } from '@mui/icons-material'\nimport type { MenuItemProps } from '@mui/material'\nimport {\n ListItemIcon, ListItemText, MenuItem,\n} from '@mui/material'\nimport { isDefined } from '@xylabs/sdk-js'\nimport React from 'react'\n\nimport { useResolvePayload } from '../../../contexts/index.ts'\n\nexport const JsonMenuItem: React.FC<MenuItemProps> = (props) => {\n const { huri } = useResolvePayload()\n\n return (\n <>\n {isDefined(huri)\n ? (\n <MenuItem title=\"Source Payload JSON\" onClick={() => window.open(huri, '_blank')} {...props}>\n <ListItemText sx={{ mr: 1 }}>JSON</ListItemText>\n <ListItemIcon sx={{ justifyContent: 'end' }}>\n <OpenInNewIcon fontSize=\"small\" />\n </ListItemIcon>\n </MenuItem>\n )\n : null}\n </>\n )\n}\n","import { CardContent } from '@mui/material'\nimport { FlexGrowRow } from '@xylabs/react-flexbox'\nimport { isTruthy } from '@xylabs/sdk-js'\nimport { useListMode } from '@xyo-network/react-shared'\nimport React from 'react'\n\nimport {\n useEmbedPluginState, usePluginProps, useResolvePayload,\n} from '../../../contexts/index.ts'\nimport { EmbedRenderSelect, ListModeSelectFormControl } from '../../controls/index.ts'\nimport type { BusyCardProps } from './BusyCard.tsx'\nimport { BusyCard } from './BusyCard.tsx'\nimport { EmbedCardHeader } from './EmbedCardHeader.tsx'\n\nexport const EmbedPluginCard: React.FC<BusyCardProps> = ({ ...props }) => {\n const { payload } = useResolvePayload()\n const {\n activePlugin: ActivePlugin, plugins, hideElementsConfig,\n } = useEmbedPluginState()\n const { listMode } = useListMode()\n const { pluginProps } = usePluginProps()\n const supportsListMode = isTruthy(ActivePlugin?.components?.box?.listModes?.length) ? true : false\n\n return (\n <BusyCard {...props}>\n {hideElementsConfig?.hideCardHeader ? null : <EmbedCardHeader />}\n {/* Only show the row if the children are present */}\n {(plugins && plugins.length > 0) || supportsListMode\n ? (\n <FlexGrowRow columnGap={2} rowGap={2} flexWrap=\"wrap\" pb={1}>\n {plugins && plugins.length > 1\n ? <EmbedRenderSelect />\n : null}\n {supportsListMode\n ? <ListModeSelectFormControl />\n : null}\n </FlexGrowRow>\n )\n : null}\n <CardContent sx={{ height: '100%' }}>\n {ActivePlugin\n ? <ActivePlugin.components.box.detailsBox payload={payload} {...pluginProps} {...(supportsListMode && { listMode })} />\n : null}\n </CardContent>\n </BusyCard>\n )\n}\n","import type { FormControlProps } from '@mui/material'\nimport { FormControl, InputLabel } from '@mui/material'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\ninterface EmbedFormControlProps extends FormControlProps {\n formId?: string\n formLabel?: string\n}\n\nexport const EmbedFormControl: React.FC<PropsWithChildren<EmbedFormControlProps>> = ({\n formId, formLabel, children, ...props\n}) => {\n return (\n <FormControl {...props}>\n <InputLabel id={formId}>{formLabel}</InputLabel>\n {children}\n </FormControl>\n )\n}\n","import { MenuItem } from '@mui/material'\nimport type { SelectExProps } from '@xylabs/react-select'\nimport { SelectEx } from '@xylabs/react-select'\nimport type { ListMode } from '@xyo-network/react-shared'\nimport { useListMode } from '@xyo-network/react-shared'\nimport React from 'react'\n\nimport { EmbedFormControl } from './EmbedFormControl.tsx'\n\nconst listModeSelectId = 'listmode-select-id'\nconst listModeSelectLabel = 'List Mode'\n\nexport const ListModeSelect: React.FC<SelectExProps<ListMode>> = (props) => {\n const { listMode, setListMode } = useListMode()\n\n return (\n <SelectEx<ListMode>\n value={(listMode ?? 'default') as ListMode}\n onChange={(event) => {\n setListMode?.(event.target.value as ListMode)\n }}\n {...props}\n >\n <MenuItem key=\"default\" value=\"default\">\n Default\n </MenuItem>\n <MenuItem key=\"table\" value=\"table\">\n Table\n </MenuItem>\n <MenuItem key=\"grid\" value=\"grid\">\n Grid\n </MenuItem>\n </SelectEx>\n )\n}\n\nexport const ListModeSelectFormControl: React.FC<SelectExProps<ListMode>> = (props) => {\n return (\n <EmbedFormControl formId={listModeSelectId} formLabel={listModeSelectLabel}>\n <ListModeSelect size=\"small\" label={listModeSelectLabel} labelId={listModeSelectId} {...props} />\n </EmbedFormControl>\n )\n}\n","import { MenuItem } from '@mui/material'\nimport type { SelectExProps } from '@xylabs/react-select'\nimport { SelectEx } from '@xylabs/react-select'\nimport React from 'react'\n\nimport { useEmbedPluginState } from '../../contexts/index.ts'\nimport { EmbedFormControl } from './EmbedFormControl.tsx'\n\nconst renderSelectId = 'render-select-id'\nconst renderSelectLabel = 'Renderer'\n\nexport const EmbedRenderSelect: React.FC<SelectExProps<string>> = (props) => {\n const {\n activePlugin, setActivePlugin, plugins,\n } = useEmbedPluginState()\n return (\n <EmbedFormControl formId={renderSelectId} formLabel={renderSelectLabel}>\n <SelectEx size=\"small\" value={activePlugin?.name} {...props}>\n {plugins?.map(plugin => (\n <MenuItem value={plugin.name} key={plugin.name} onClick={() => setActivePlugin?.(plugin)}>\n {plugin.name}\n </MenuItem>\n ))}\n </SelectEx>\n </EmbedFormControl>\n )\n}\n","import { useTheme } from '@mui/material'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { useRefreshPayload, useResolvePayload } from '../../contexts/index.ts'\nimport type { EmbedPluginProps } from '../../types/index.ts'\nimport { EmbedPluginInner } from '../EmbedPlugin.tsx'\nimport type { BusyCardProps } from './card/index.ts'\nimport { EmbedPluginCard } from './card/index.ts'\nimport { EmbedCardApiErrorRenderer } from './error-handling/index.ts'\n\nexport interface EmbedPluginCardProps extends PropsWithChildren, EmbedPluginProps, BusyCardProps {}\n\nexport const ApiEmbedPluginCard: React.FC<EmbedPluginCardProps> = ({ children, ...props }) => {\n const {\n validateSchema,\n plugins = [],\n huriPayload,\n refreshTitle = '',\n timestampLabel = 'Data From',\n hideElementsConfig,\n embedPluginConfig,\n onRefresh,\n ...busyCardProps\n } = props\n\n return (\n <EmbedPluginInner\n {...{\n embedPluginConfig,\n hideElementsConfig,\n huriPayload,\n onRefresh,\n plugins,\n refreshTitle,\n timestampLabel,\n validateSchema,\n }}\n >\n <EmbedPluginCardInner {...busyCardProps} />\n {children}\n </EmbedPluginInner>\n )\n}\n\nexport const EmbedPluginCardInner: React.FC<BusyCardProps> = (props) => {\n const { payload, huriError } = useResolvePayload()\n const { refreshPayload } = useRefreshPayload()\n const theme = useTheme()\n\n return (\n <EmbedCardApiErrorRenderer xyoError={huriError}>\n <EmbedPluginCard\n elevation={3}\n variant=\"elevation\"\n busy={Boolean(!refreshPayload && payload)}\n busyVariantProps={{\n style: {\n alignItems: 'start', paddingTop: theme.spacing(2), zIndex: 2,\n },\n }}\n sx={{ position: 'relative' }}\n {...props}\n />\n </EmbedCardApiErrorRenderer>\n )\n}\n\n/** @deprecated - use EmbedPluginCard and use CardProps instead of FlexBoxProps */\n\nexport { EmbedPluginCard as EmbedPlugin } from './card/index.ts'\n","import { ErrorBoundary } from '@xylabs/react-error'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { ListModeProvider } from '@xyo-network/react-shared'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport {\n EmbedPluginProvider, RefreshPayloadProvider, ResolvePayloadProvider, ValidatePayloadProvider,\n} from '../contexts/index.ts'\nimport type { EmbedPluginProps } from '../types/index.ts'\nimport { EmbedResolver } from './EmbedResolver.tsx'\nimport { ValidatePayloadAlert, ValidatePluginsAlert } from './validation-alerts/index.ts'\n\nexport const EmbedPluginInner: React.FC<PropsWithChildren<EmbedPluginProps>> = ({\n validateSchema,\n plugins,\n huriPayload,\n refreshTitle = '',\n timestampLabel = 'Data From',\n hideElementsConfig,\n embedPluginConfig,\n onRefresh,\n children,\n}) => {\n return (\n <ErrorBoundary>\n <EmbedPluginProvider\n refreshTitle={refreshTitle}\n timestampLabel={timestampLabel}\n hideElementsConfig={hideElementsConfig}\n plugins={plugins}\n embedPluginConfig={embedPluginConfig}\n >\n <WithResolvers onRefresh={onRefresh} huriPayload={huriPayload}>\n <WithValidators validateSchema={validateSchema}>\n <ListModeProvider defaultListMode={embedPluginConfig?.listMode}>{children}</ListModeProvider>\n </WithValidators>\n </WithResolvers>\n </EmbedPluginProvider>\n </ErrorBoundary>\n )\n}\n\ninterface WithResolversProps extends Pick<EmbedPluginProps, 'onRefresh' | 'huriPayload'>, FlexBoxProps {}\n\nconst WithResolvers: React.FC<PropsWithChildren<WithResolversProps>> = ({\n children, onRefresh, huriPayload,\n}) => {\n return (\n <RefreshPayloadProvider onRefresh={onRefresh}>\n <ResolvePayloadProvider huriPayload={huriPayload}>\n <EmbedResolver>{children}</EmbedResolver>\n </ResolvePayloadProvider>\n </RefreshPayloadProvider>\n )\n}\n\nconst WithValidators: React.FC<PropsWithChildren<{ validateSchema?: boolean }>> = ({ children, validateSchema }) => {\n return (\n <ValidatePayloadProvider enabled={validateSchema}>\n <ValidatePluginsAlert>\n <ValidatePayloadAlert>{children}</ValidatePayloadAlert>\n </ValidatePluginsAlert>\n </ValidatePayloadProvider>\n )\n}\n","import { LoadResult } from '@xyo-network/react-shared'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { useResolvePayload } from '../contexts/index.ts'\n\nexport const EmbedResolver: React.FC<PropsWithChildren> = ({ children }) => {\n const {\n payload, notFound, huriError,\n } = useResolvePayload()\n\n return (\n <LoadResult searchResult={payload} notFound={!!notFound} error={!!huriError}>\n {children}\n </LoadResult>\n )\n}\n","import type { AlertProps } from '@mui/material'\nimport { Alert } from '@mui/material'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { useValidatePayload } from '../../contexts/index.ts'\n\nexport const ValidatePayloadAlert: React.FC<PropsWithChildren<AlertProps>> = ({ children, ...props }) => {\n const {\n validPayload, enabled, schema,\n } = useValidatePayload()\n\n if (enabled && validPayload === false) {\n return (\n <Alert severity=\"error\" title=\"Invalid Payload!\" {...props}>\n Payload schema claimed to be\n {' '}\n {schema}\n {' '}\n but failed to validate.\n </Alert>\n )\n }\n\n return <>{children}</>\n}\n","import type { AlertProps } from '@mui/material'\nimport { Alert, AlertTitle } from '@mui/material'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../contexts/index.ts'\n\nexport const ValidatePluginsAlert: React.FC<PropsWithChildren<AlertProps>> = ({ children, ...props }) => {\n const { payload } = useResolvePayload()\n const { plugins } = useEmbedPluginState()\n\n if (payload && plugins?.length === 0) {\n return (\n <Alert severity=\"warning\" {...props}>\n <AlertTitle>Missing plugins!</AlertTitle>\n Payload found but no plugins were present.\n </Alert>\n )\n }\n\n return <>{children}</>\n}\n","import type { CardProps } from '@mui/material'\nimport { ErrorAlert, ErrorRender } from '@xylabs/react-error'\nimport type { ModuleError } from '@xyo-network/payload-model'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { EmbedErrorCard } from './EmbedErrorCard.tsx'\n\ninterface EmbedCardApiErrorRendererProps extends CardProps {\n xyoError?: ModuleError\n}\n\nexport const EmbedCardApiErrorRenderer: React.FC<PropsWithChildren<EmbedCardApiErrorRendererProps>> = ({\n xyoError, children, ...props\n}) => {\n return (\n <ErrorRender error={xyoError} noReAuth noErrorDisplay customError={<CustomApiErrorCard xyoError={xyoError} {...props} />}>\n {children}\n </ErrorRender>\n )\n}\n\nconst CustomApiErrorCard: React.FC<EmbedCardApiErrorRendererProps> = ({ xyoError, ...props }) => {\n return (\n <EmbedErrorCard {...props}>\n <ErrorAlert error={xyoError} />\n </EmbedErrorCard>\n )\n}\n","import type { AlertProps, CardProps } from '@mui/material'\nimport {\n Alert, AlertTitle, Card, CardContent, Typography,\n} from '@mui/material'\nimport { isDefined } from '@xylabs/sdk-js'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\ninterface EmbedErrorCardBaseProps {\n alertProps?: AlertProps\n error?: Error\n hideErrorDetails?: boolean\n scope?: string\n}\n\ninterface EmbedErrorCardProps extends EmbedErrorCardBaseProps, CardProps {}\n\nexport const EmbedErrorCard: React.FC<PropsWithChildren<EmbedErrorCardProps>> = (props) => {\n const {\n alertProps, error, scope, hideErrorDetails = true, children, ...cardProps\n } = props\n const errorProps = {\n alertProps, error, hideErrorDetails, scope,\n }\n return (\n <Card {...cardProps}>\n <CardContent>{children ?? <DefaultErrorAlert {...errorProps} />}</CardContent>\n </Card>\n )\n}\n\nconst DefaultErrorAlert: React.FC<EmbedErrorCardBaseProps> = ({\n alertProps, scope, hideErrorDetails, error,\n}) => {\n return (\n <Alert severity=\"error\" {...alertProps}>\n <AlertTitle>Whoops! Something went wrong</AlertTitle>\n {isDefined(scope)\n ? (\n <Typography variant=\"caption\">\n Scope:\n {scope}\n </Typography>\n )\n : null}\n {!hideErrorDetails && error\n ? (\n <>\n <Typography variant=\"caption\">Error: </Typography>\n <Typography variant=\"caption\">{error?.message}</Typography>\n </>\n )\n : (\n <Typography variant=\"caption\" fontSize=\"small\">\n Error Loading Plugin\n </Typography>\n )}\n </Alert>\n )\n}\n"],"mappings":";AACA,SAAS,YAAY;AACrB,SAAS,qBAAqB;AAM9B;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAqBH,SAGM,KAHN;AAVG,IAAM,WAAuD,CAAC;AAAA,EACnE;AAAA,EACA,cAAc;AAAA,EACd,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,eAAe,cAAc,MAAM,WAAW;AACpD,SACE,qBAAC,QAAM,GAAG,OACP;AAAA;AAAA,IACA,gBAAgB,cAAc,eAC3B,oBAAC,wBAAsB,GAAI,kBAAgD,IAC3E;AAAA,IACH,gBAAgB,YAAY,eACzB,oBAAC,sBAAoB,GAAI,kBAA8C,IACvE;AAAA,KACN;AAEJ;;;AC1CA,SAAS,WAAW,mBAAmB;AAEvC;AAAA,EACE;AAAA,EAAQ;AAAA,EAAY,QAAAA;AAAA,OACf;AACP,SAAS,eAAe;AACxB,SAAS,aAAAC,kBAAiB;AAC1B,SAAgB,YAAAC,iBAAgB;;;ACPhC,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBA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AG;AAAA,EACL,IAAI;AAEJ,SACE,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,QACF;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MAEA;AAAA,wBAAAD,MAAC,wBAAsB,GAAG,eAAe;AAAA,QACxC;AAAA;AAAA;AAAA,EACH;AAEJ;AAEO,IAAM,uBAAgD,CAAC,UAAU;AACtE,QAAM,EAAE,SAAS,UAAU,IAAI,kBAAkB;AACjD,QAAM,EAAE,eAAe,IAAI,kBAAkB;AAC7C,QAAM,QAAQ,SAAS;AAEvB,SACE,gBAAAA,MAAC,6BAA0B,UAAU,WACnC,0BAAAA;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,MACX,SAAQ;AAAA,MACR,MAAM,QAAQ,CAAC,kBAAkB,OAAO;AAAA,MACxC,kBAAkB;AAAA,QAChB,OAAO;AAAA,UACL,YAAY;AAAA,UAAS,YAAY,MAAM,QAAQ,CAAC;AAAA,UAAG,QAAQ;AAAA,QAC7D;AAAA,MACF;AAAA,MACA,IAAI,EAAE,UAAU,WAAW;AAAA,MAC1B,GAAG;AAAA;AAAA,EACN,GACF;AAEJ;","names":["Chip","isDefined","useState","jsx","createContextEx","useMemo","jsx","useMemo","useContextEx","useContextEx","useMemo","useState","createContextEx","jsx","useState","useMemo","useContextEx","useContextEx","createContextEx","useEffect","useMemo","useState","jsx","useState","useEffect","useMemo","useContextEx","useContextEx","useAsyncEffect","useMemo","useState","createContextEx","jsx","useState","useAsyncEffect","useMemo","useContextEx","useContextEx","useState","isDefined","Fragment","jsx","jsxs","isDefined","Fragment","jsx","jsxs","useState","Fragment","jsx","jsxs","useState","isDefined","Chip","useListMode","jsx","jsxs","MenuItem","jsx","jsxs","MenuItem","MenuItem","SelectEx","jsx","SelectEx","MenuItem","jsx","jsxs","useListMode","jsx","Fragment","jsx","jsxs","Alert","Fragment","jsx","jsxs","Alert","jsx","Alert","AlertTitle","Card","CardContent","isDefined","Fragment","jsx","jsxs","jsx","jsx","jsxs"]}
|
|
1
|
+
{"version":3,"sources":["../../src/components/embed-card/card/BusyCard.tsx","../../src/components/embed-card/card/EmbedCardHeader.tsx","../../src/contexts/EmbedPluginContext/Context.ts","../../src/contexts/EmbedPluginContext/Provider.tsx","../../src/contexts/EmbedPluginContext/use.ts","../../src/contexts/PluginPropsContext/context.ts","../../src/contexts/PluginPropsContext/Provider.tsx","../../src/contexts/PluginPropsContext/use.ts","../../src/contexts/RefreshPayloadContext/Provider.tsx","../../src/contexts/RefreshPayloadContext/Context.ts","../../src/contexts/RefreshPayloadContext/use.ts","../../src/contexts/ResolvePayloadContext/Context.ts","../../src/contexts/ResolvePayloadContext/Provider.tsx","../../src/contexts/ResolvePayloadContext/use.ts","../../src/contexts/ValidatePayloadContext/Provider.tsx","../../src/contexts/ValidatePayloadContext/Context.ts","../../src/contexts/ValidatePayloadContext/use.ts","../../src/components/embed-card/menu/EmbedMenu.tsx","../../src/components/embed-card/menu/JsonMenuItem.tsx","../../src/components/embed-card/card/EmbedPluginCard.tsx","../../src/components/controls/EmbedFormControl.tsx","../../src/components/controls/ListModeSelect.tsx","../../src/components/controls/RenderSelect.tsx","../../src/components/embed-card/EmbedPluginCard.tsx","../../src/components/EmbedPlugin.tsx","../../src/components/EmbedResolver.tsx","../../src/components/validation-alerts/ValidatePayload.tsx","../../src/components/validation-alerts/ValidatePlugins.tsx","../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx","../../src/components/embed-card/error-handling/EmbedErrorCard.tsx"],"sourcesContent":["import type { CardProps } from '@mui/material'\nimport { Card } from '@mui/material'\nimport { useBusyTiming } from '@xylabs/react-flexbox'\nimport type {\n BusyCircularProgressProps,\n BusyLinearProgressProps,\n BusyVariant,\n} from '@xylabs/react-shared'\nimport {\n BusyCircularProgress,\n BusyLinearProgress,\n} from '@xylabs/react-shared'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nexport interface BusyCardProps extends CardProps {\n busy?: boolean\n busyMinimum?: number\n busyVariant?: BusyVariant\n busyVariantProps?: BusyCircularProgressProps | BusyLinearProgressProps\n}\n\nexport const BusyCard: React.FC<PropsWithChildren<BusyCardProps>> = ({\n busy,\n busyMinimum = 500,\n busyVariant = 'circular',\n busyVariantProps,\n children,\n ...props\n}) => {\n const internalBusy = useBusyTiming(busy, busyMinimum)\n return (\n <Card {...props}>\n {children}\n {busyVariant === 'circular' && internalBusy\n ? <BusyCircularProgress {...(busyVariantProps as BusyCircularProgressProps)} />\n : null}\n {busyVariant === 'linear' && internalBusy\n ? <BusyLinearProgress {...(busyVariantProps as BusyLinearProgressProps)} />\n : null}\n </Card>\n )\n}\n","import { Refresh as RefreshIcon } from '@mui/icons-material'\nimport type { CardHeaderProps, Theme } from '@mui/material'\nimport {\n Avatar, CardHeader, Chip,\n} from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { isDefined } from '@xylabs/sdk-js'\nimport React, { useState } from 'react'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../../contexts/index.ts'\nimport { EmbedMenu } from '../menu/index.ts'\n\nexport const EmbedCardHeader: React.FC<CardHeaderProps> = () => {\n const { refreshHuri, huri } = useResolvePayload()\n const {\n activePlugin, timestampLabel, hideElementsConfig,\n } = useEmbedPluginState()\n const {\n hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions,\n } = hideElementsConfig ?? {}\n // this is temporary so that we can add the ability to get a timestamp via diviner later\n const [timestamp] = useState(() => Date.now())\n return (\n <CardHeader\n sx={{ flexWrap: 'wrap', rowGap: 1 }}\n avatar={\n hideAvatar\n ? <></>\n : (\n <Avatar sx={{ bgcolor: (theme: Theme) => theme.vars.palette.primary.main }} aria-label={activePlugin?.name}>\n {activePlugin?.name?.charAt(0)}\n </Avatar>\n )\n }\n action={(\n <FlexRow\n sx={{\n flexWrap: 'wrap',\n columnGap: 0.5,\n }}\n >\n {isDefined(timestamp) && !Number.isNaN(timestamp)\n ? hideTimestamp && hideRefreshButton\n ? ''\n : (\n <Chip\n avatar={hideRefreshButton ? <></> : <RefreshIcon />}\n clickable={hideRefreshButton ? false : true}\n onClick={refreshHuri}\n label={hideTimestamp ? '' : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`}\n />\n )\n\n : null}\n {/* Huri case is valid as long as the only menu item is JSON */}\n {hideCardActions || huri === undefined ? null : <EmbedMenu />}\n </FlexRow>\n )}\n title={hideTitle ? '' : activePlugin?.name}\n />\n )\n}\n","import { createContextEx } from '@xylabs/react-shared'\n\nimport type { EmbedPluginState } from './State.ts'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n","import { useResetState } from '@xylabs/react-hooks'\nimport type { PropsWithChildren } from 'react'\nimport React, { useMemo } from 'react'\n\nimport { EmbedPluginContext } from './Context.ts'\nimport type { EmbedPluginBase } from './State.ts'\n\nexport type EmbedPluginProviderProps = EmbedPluginBase\n\n/** Expose passed embed plugin props via context */\nexport const EmbedPluginProvider: React.FC<PropsWithChildren<EmbedPluginProviderProps>> = ({\n children,\n refreshTitle,\n timestampLabel,\n hideElementsConfig,\n plugins,\n embedPluginConfig,\n}) => {\n const [activePlugin, setActivePlugin] = useResetState(plugins ? plugins[0] : undefined)\n\n const value = useMemo(() => ({\n activePlugin,\n embedPluginConfig,\n hideElementsConfig,\n provided: true as const,\n refreshTitle,\n setActivePlugin,\n timestampLabel,\n }), [activePlugin, embedPluginConfig, hideElementsConfig, refreshTitle, setActivePlugin, timestampLabel])\n\n return (\n <EmbedPluginContext\n value={value}\n >\n {children}\n </EmbedPluginContext>\n )\n}\n","import { useContextEx } from '@xylabs/react-shared'\n\nimport { EmbedPluginContext } from './Context.ts'\n\nexport const useEmbedPluginState = () => useContextEx(EmbedPluginContext, 'EmbedPlugin', true)\n","import { createContextEx } from '@xylabs/react-shared'\n\nimport type { PluginPropsState } from './state.ts'\n\nexport const PluginPropsContext = createContextEx<PluginPropsState>()\n","import type { PropsWithChildren } from 'react'\nimport React, {\n useEffect, useMemo, useState,\n} from 'react'\n\nimport { PluginPropsContext } from './context.ts'\nimport type { PluginProps, PluginPropsState } from './state.ts'\n\nexport interface PluginPropsProviderProps extends PropsWithChildren {\n pluginProps?: PluginProps\n}\n\nexport const PluginPropsProvider: React.FC<PluginPropsProviderProps> = ({ children, pluginProps: pluginPropsProp }) => {\n const [pluginProps, setPluginProps] = useState<PluginProps | undefined>(pluginPropsProp)\n\n useEffect(() => {\n // needs to be in useEffect since we are in a provider\n // eslint-disable-next-line react-hooks/set-state-in-effect, react-x/set-state-in-effect\n setPluginProps(pluginPropsProp)\n }, [pluginPropsProp])\n\n const value: PluginPropsState = useMemo(() => ({\n pluginProps,\n provided: true as const,\n }), [pluginProps])\n\n return (\n <PluginPropsContext value={value}>\n {children}\n </PluginPropsContext>\n )\n}\n","import { useContextEx } from '@xylabs/react-shared'\n\nimport { PluginPropsContext } from './context.ts'\n\nexport const usePluginProps = (required = false) => useContextEx(PluginPropsContext, 'PluginProps', required)\n","import type { PropsWithChildren } from 'react'\nimport React, { useMemo, useState } from 'react'\n\nimport { RefreshPayloadContext } from './Context.ts'\n\nexport interface RefreshPayloadProps {\n onRefresh?: () => void\n refreshPayload?: boolean\n}\n\nexport const RefreshPayloadProvider: React.FC<PropsWithChildren<RefreshPayloadProps>> = ({\n children, onRefresh, refreshPayload,\n}) => {\n const [localRefreshPayload, setLocalRefreshPayload] = useState(refreshPayload)\n\n const value = useMemo(() => ({\n onRefresh, provided: true as const, refreshPayload: localRefreshPayload, setRefreshPayload: setLocalRefreshPayload,\n }), [onRefresh, localRefreshPayload])\n\n return (\n <RefreshPayloadContext value={value}>\n {children}\n </RefreshPayloadContext>\n )\n}\n","import { createContextEx } from '@xylabs/react-shared'\n\nimport type { RefreshPayloadState } from './State.ts'\n\nexport const RefreshPayloadContext = createContextEx<RefreshPayloadState>()\n","import { useContextEx } from '@xylabs/react-shared'\n\nimport { RefreshPayloadContext } from './Context.ts'\n\nexport const useRefreshPayload = () => useContextEx(RefreshPayloadContext, 'RefreshPayload', true)\n","import { createContextEx } from '@xylabs/react-shared'\n\nimport type { ResolvePayloadState } from './State.ts'\n\nexport const ResolvePayloadContext = createContextEx<ResolvePayloadState>()\n","import { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { delay, isDefined } from '@xylabs/sdk-js'\nimport { Huri } from '@xyo-network/huri'\nimport type {\n ModuleError, Payload, WithSources,\n} from '@xyo-network/payload-model'\nimport { ModuleErrorSchema } from '@xyo-network/payload-model'\nimport type { PropsWithChildren } from 'react'\nimport React, {\n useCallback, useEffect, useMemo, useState,\n} from 'react'\n\nimport { useRefreshPayload } from '../RefreshPayloadContext/index.ts'\nimport { ResolvePayloadContext } from './Context.ts'\nimport type { ResolvePayloadState } from './State.ts'\n\nexport type ResolvePayloadProviderProps = Omit<ResolvePayloadState, 'provided'>\n\nexport const ResolvePayloadProvider: React.FC<PropsWithChildren<ResolvePayloadProviderProps>> = ({ children, huriPayload }) => {\n const [payload, setPayload] = useState<Payload>()\n const [huri, setHuri] = useState<string>()\n const {\n refreshPayload, setRefreshPayload, onRefresh,\n } = useRefreshPayload()\n\n useEffect(() => {\n if (typeof huriPayload === 'string') {\n // eslint-disable-next-line react-hooks/set-state-in-effect, react-x/set-state-in-effect\n setHuri(huriPayload)\n } else if (typeof huriPayload === 'object') {\n // eslint-disable-next-line react-x/set-state-in-effect\n setPayload(huriPayload)\n setRefreshPayload?.(true)\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps, react-x/exhaustive-deps\n }, [huriPayload])\n\n const [notFound, setNotFound] = useState<boolean>()\n const [huriError, setHuriError] = useState<WithSources<ModuleError>>()\n\n useAsyncEffect(\n async (mounted) => {\n if (isDefined(huri) && !refreshPayload) {\n try {\n const huriInstance = new Huri(huri)\n // eslint-disable-next-line react-web-api/no-leaked-fetch -- Huri.fetch does not support AbortSignal; mounted() guards stale writes\n const result = await huriInstance.fetch()\n // ensure the busy state can stay for a moment to avoid flashing too quickly\n await delay(500)\n\n if (mounted()) {\n setNotFound(result === null)\n setPayload(result)\n setRefreshPayload?.(true)\n }\n } catch (e) {\n const error = e as Error\n setHuriError({\n message: error.message, schema: ModuleErrorSchema, $sources: [],\n })\n }\n }\n },\n [huri, payload, refreshPayload, setRefreshPayload],\n )\n\n const refreshHuri = useCallback(() => {\n onRefresh?.()\n if (isDefined(huri)) {\n setRefreshPayload?.(false)\n }\n }, [onRefresh, huri, setRefreshPayload])\n\n const value = useMemo(() => ({\n huri, huriError, notFound, payload, provided: true as const, refreshHuri, setPayload,\n }), [huri, huriError, notFound, payload, refreshHuri, setPayload])\n\n return (\n <ResolvePayloadContext value={value}>\n {children}\n </ResolvePayloadContext>\n )\n}\n","import { useContextEx } from '@xylabs/react-shared'\n\nimport { ResolvePayloadContext } from './Context.ts'\n\nexport const useResolvePayload = () => useContextEx(ResolvePayloadContext, 'ResolvePayload', true)\n","import { Chip } from '@mui/material'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport type { SchemaNameToValidatorMap } from '@xyo-network/schema-cache'\nimport { SchemaCache } from '@xyo-network/schema-cache'\nimport type { PropsWithChildren } from 'react'\nimport React, { useMemo, useState } from 'react'\n\nimport { useResolvePayload } from '../ResolvePayloadContext/index.ts'\nimport { ValidatePayloadContext } from './Context.ts'\n\nexport interface ValidatePayloadProviderProps {\n // Opt-in flag to validate payloads for the plugin(s)\n enabled?: boolean\n}\n\nexport const ValidatePayloadProvider: React.FC<PropsWithChildren<ValidatePayloadProviderProps>> = ({ children, enabled = false }) => {\n const { payload } = useResolvePayload()\n const [initialized, setInitialized] = useState(false)\n // eslint-disable-next-line react-x/use-state\n const [valid, _setValid] = useState<boolean>()\n\n useAsyncEffect(\n async () => {\n if (payload && enabled) {\n await SchemaCache.instance.get(payload.schema)\n\n const possibleKnownSchema = payload.schema as keyof SchemaNameToValidatorMap\n\n if (SchemaCache.instance.validators[possibleKnownSchema]) {\n const _validator = SchemaCache.instance.validators[possibleKnownSchema]\n // TODO: Fix Types\n // setValid(validator?.(payload))\n }\n setInitialized(true)\n }\n },\n [payload, enabled],\n )\n\n const value = useMemo(() => ({\n enabled, provided: true as const, schema: payload?.schema, validPayload: valid,\n }), [enabled, payload?.schema, valid])\n\n return (\n <ValidatePayloadContext value={value}>\n {enabled\n ? <>{initialized ? children : <Chip label=\"Validating Payload...\" />}</>\n : children}\n </ValidatePayloadContext>\n )\n}\n","import { createContextEx } from '@xylabs/react-shared'\n\nimport type { ValidatePayloadState } from './State.ts'\n\nexport const ValidatePayloadContext = createContextEx<ValidatePayloadState>()\n","import { useContextEx } from '@xylabs/react-shared'\n\nimport { ValidatePayloadContext } from './Context.ts'\n\nexport const useValidatePayload = () => useContextEx(ValidatePayloadContext, 'ValidateSchema', true)\n","import { MoreVert as MoreVertIcon } from '@mui/icons-material'\nimport type { IconButtonProps } from '@mui/material'\nimport { IconButton, Menu } from '@mui/material'\nimport React, { useState } from 'react'\n\nimport { JsonMenuItem } from './JsonMenuItem.tsx'\n\nexport const EmbedMenu: React.FC<IconButtonProps> = (props) => {\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null)\n const open = Boolean(anchorEl)\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget)\n }\n const handleClose = () => {\n setAnchorEl(null)\n }\n\n return (\n <>\n <IconButton onClick={handleClick} {...props}>\n <MoreVertIcon />\n </IconButton>\n <Menu\n anchorEl={anchorEl}\n open={open}\n onClose={handleClose}\n slotProps={{\n paper: { variant: 'elevation' },\n list: { dense: true },\n }}\n >\n <JsonMenuItem />\n </Menu>\n </>\n )\n}\n","import { OpenInNew as OpenInNewIcon } from '@mui/icons-material'\nimport type { MenuItemProps } from '@mui/material'\nimport {\n ListItemIcon, ListItemText, MenuItem,\n} from '@mui/material'\nimport { isDefined } from '@xylabs/sdk-js'\nimport React from 'react'\n\nimport { useResolvePayload } from '../../../contexts/index.ts'\n\nexport const JsonMenuItem: React.FC<MenuItemProps> = (props) => {\n const { huri } = useResolvePayload()\n\n return (\n <>\n {isDefined(huri)\n ? (\n <MenuItem title=\"Source Payload JSON\" onClick={() => window.open(huri, '_blank')} {...props}>\n <ListItemText sx={{ mr: 1 }}>JSON</ListItemText>\n <ListItemIcon sx={{ justifyContent: 'end' }}>\n <OpenInNewIcon sx={{ fontSize: 'small' }} />\n </ListItemIcon>\n </MenuItem>\n )\n : null}\n </>\n )\n}\n","import { CardContent } from '@mui/material'\nimport { FlexGrowRow } from '@xylabs/react-flexbox'\nimport { isTruthy } from '@xylabs/sdk-js'\nimport { useListMode } from '@xyo-network/react-shared'\nimport React from 'react'\n\nimport {\n useEmbedPluginState, usePluginProps, useResolvePayload,\n} from '../../../contexts/index.ts'\nimport { EmbedRenderSelect, ListModeSelectFormControl } from '../../controls/index.ts'\nimport type { BusyCardProps } from './BusyCard.tsx'\nimport { BusyCard } from './BusyCard.tsx'\nimport { EmbedCardHeader } from './EmbedCardHeader.tsx'\n\nexport const EmbedPluginCard: React.FC<BusyCardProps> = ({ ...props }) => {\n const { payload } = useResolvePayload()\n const {\n activePlugin: ActivePlugin, plugins, hideElementsConfig,\n } = useEmbedPluginState()\n const { listMode } = useListMode()\n const { pluginProps } = usePluginProps()\n const supportsListMode = isTruthy(ActivePlugin?.components?.box?.listModes?.length) ? true : false\n\n return (\n <BusyCard {...props}>\n {hideElementsConfig?.hideCardHeader ? null : <EmbedCardHeader />}\n {/* Only show the row if the children are present */}\n {(plugins && plugins.length > 0) || supportsListMode\n ? (\n <FlexGrowRow\n sx={{\n columnGap: 2,\n rowGap: 2,\n flexWrap: 'wrap',\n pb: 1,\n }}\n >\n {plugins && plugins.length > 1\n ? <EmbedRenderSelect />\n : null}\n {supportsListMode\n ? <ListModeSelectFormControl />\n : null}\n </FlexGrowRow>\n )\n : null}\n <CardContent sx={{ height: '100%' }}>\n {ActivePlugin\n ? <ActivePlugin.components.box.detailsBox payload={payload} {...pluginProps} {...(supportsListMode && { listMode })} />\n : null}\n </CardContent>\n </BusyCard>\n )\n}\n","import type { FormControlProps } from '@mui/material'\nimport { FormControl, InputLabel } from '@mui/material'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\ninterface EmbedFormControlProps extends FormControlProps {\n formId?: string\n formLabel?: string\n}\n\nexport const EmbedFormControl: React.FC<PropsWithChildren<EmbedFormControlProps>> = ({\n formId, formLabel, children, ...props\n}) => {\n return (\n <FormControl {...props}>\n <InputLabel id={formId}>{formLabel}</InputLabel>\n {children}\n </FormControl>\n )\n}\n","import { MenuItem } from '@mui/material'\nimport type { SelectExProps } from '@xylabs/react-select'\nimport { SelectEx } from '@xylabs/react-select'\nimport type { ListMode } from '@xyo-network/react-shared'\nimport { useListMode } from '@xyo-network/react-shared'\nimport React from 'react'\n\nimport { EmbedFormControl } from './EmbedFormControl.tsx'\n\nconst listModeSelectId = 'listmode-select-id'\nconst listModeSelectLabel = 'List Mode'\n\nexport const ListModeSelect: React.FC<SelectExProps<ListMode>> = (props) => {\n const { listMode, setListMode } = useListMode()\n\n return (\n <SelectEx<ListMode>\n value={(listMode ?? 'default') as ListMode}\n onChange={(event) => {\n setListMode?.(event.target.value as ListMode)\n }}\n {...props}\n >\n <MenuItem key=\"default\" value=\"default\">\n Default\n </MenuItem>\n <MenuItem key=\"table\" value=\"table\">\n Table\n </MenuItem>\n <MenuItem key=\"grid\" value=\"grid\">\n Grid\n </MenuItem>\n </SelectEx>\n )\n}\n\nexport const ListModeSelectFormControl: React.FC<SelectExProps<ListMode>> = (props) => {\n return (\n <EmbedFormControl formId={listModeSelectId} formLabel={listModeSelectLabel}>\n <ListModeSelect size=\"small\" label={listModeSelectLabel} labelId={listModeSelectId} {...props} />\n </EmbedFormControl>\n )\n}\n","import { MenuItem } from '@mui/material'\nimport type { SelectExProps } from '@xylabs/react-select'\nimport { SelectEx } from '@xylabs/react-select'\nimport React from 'react'\n\nimport { useEmbedPluginState } from '../../contexts/index.ts'\nimport { EmbedFormControl } from './EmbedFormControl.tsx'\n\nconst renderSelectId = 'render-select-id'\nconst renderSelectLabel = 'Renderer'\n\nexport const EmbedRenderSelect: React.FC<SelectExProps<string>> = (props) => {\n const {\n activePlugin, setActivePlugin, plugins,\n } = useEmbedPluginState()\n return (\n <EmbedFormControl formId={renderSelectId} formLabel={renderSelectLabel}>\n <SelectEx size=\"small\" value={activePlugin?.name} {...props}>\n {plugins?.map(plugin => (\n <MenuItem value={plugin.name} key={plugin.name} onClick={() => setActivePlugin?.(plugin)}>\n {plugin.name}\n </MenuItem>\n ))}\n </SelectEx>\n </EmbedFormControl>\n )\n}\n","import { useTheme } from '@mui/material'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { useRefreshPayload, useResolvePayload } from '../../contexts/index.ts'\nimport type { EmbedPluginProps } from '../../types/index.ts'\nimport { EmbedPluginInner } from '../EmbedPlugin.tsx'\nimport type { BusyCardProps } from './card/index.ts'\nimport { EmbedPluginCard } from './card/index.ts'\nimport { EmbedCardApiErrorRenderer } from './error-handling/index.ts'\n\nexport interface EmbedPluginCardProps extends PropsWithChildren, EmbedPluginProps, BusyCardProps {}\n\nexport const ApiEmbedPluginCard: React.FC<EmbedPluginCardProps> = ({ children, ...props }) => {\n const {\n validateSchema,\n plugins = [],\n huriPayload,\n refreshTitle = '',\n timestampLabel = 'Data From',\n hideElementsConfig,\n embedPluginConfig,\n onRefresh,\n ...busyCardProps\n } = props\n\n return (\n <EmbedPluginInner\n {...{\n embedPluginConfig,\n hideElementsConfig,\n huriPayload,\n onRefresh,\n plugins,\n refreshTitle,\n timestampLabel,\n validateSchema,\n }}\n >\n <EmbedPluginCardInner {...busyCardProps} />\n {children}\n </EmbedPluginInner>\n )\n}\n\nexport const EmbedPluginCardInner: React.FC<BusyCardProps> = (props) => {\n const { payload, huriError } = useResolvePayload()\n const { refreshPayload } = useRefreshPayload()\n const theme = useTheme()\n\n return (\n <EmbedCardApiErrorRenderer xyoError={huriError}>\n <EmbedPluginCard\n elevation={3}\n variant=\"elevation\"\n busy={Boolean(!refreshPayload && payload)}\n busyVariantProps={{\n style: {\n alignItems: 'start', paddingTop: theme.spacing(2), zIndex: 2,\n },\n }}\n sx={{ position: 'relative' }}\n {...props}\n />\n </EmbedCardApiErrorRenderer>\n )\n}\n\n/** @deprecated - use EmbedPluginCard and use CardProps instead of FlexBoxProps */\n\nexport { EmbedPluginCard as EmbedPlugin } from './card/index.ts'\n","import { ErrorBoundary } from '@xylabs/react-error'\nimport type { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { ListModeProvider } from '@xyo-network/react-shared'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport {\n EmbedPluginProvider, RefreshPayloadProvider, ResolvePayloadProvider, ValidatePayloadProvider,\n} from '../contexts/index.ts'\nimport type { EmbedPluginProps } from '../types/index.ts'\nimport { EmbedResolver } from './EmbedResolver.tsx'\nimport { ValidatePayloadAlert, ValidatePluginsAlert } from './validation-alerts/index.ts'\n\nexport const EmbedPluginInner: React.FC<PropsWithChildren<EmbedPluginProps>> = ({\n validateSchema,\n plugins,\n huriPayload,\n refreshTitle = '',\n timestampLabel = 'Data From',\n hideElementsConfig,\n embedPluginConfig,\n onRefresh,\n children,\n}) => {\n return (\n <ErrorBoundary>\n <EmbedPluginProvider\n refreshTitle={refreshTitle}\n timestampLabel={timestampLabel}\n hideElementsConfig={hideElementsConfig}\n plugins={plugins}\n embedPluginConfig={embedPluginConfig}\n >\n <WithResolvers onRefresh={onRefresh} huriPayload={huriPayload}>\n <WithValidators validateSchema={validateSchema}>\n <ListModeProvider defaultListMode={embedPluginConfig?.listMode}>{children}</ListModeProvider>\n </WithValidators>\n </WithResolvers>\n </EmbedPluginProvider>\n </ErrorBoundary>\n )\n}\n\ninterface WithResolversProps extends Pick<EmbedPluginProps, 'onRefresh' | 'huriPayload'>, FlexBoxProps {}\n\nconst WithResolvers: React.FC<PropsWithChildren<WithResolversProps>> = ({\n children, onRefresh, huriPayload,\n}) => {\n return (\n <RefreshPayloadProvider onRefresh={onRefresh}>\n <ResolvePayloadProvider huriPayload={huriPayload}>\n <EmbedResolver>{children}</EmbedResolver>\n </ResolvePayloadProvider>\n </RefreshPayloadProvider>\n )\n}\n\nconst WithValidators: React.FC<PropsWithChildren<{ validateSchema?: boolean }>> = ({ children, validateSchema }) => {\n return (\n <ValidatePayloadProvider enabled={validateSchema}>\n <ValidatePluginsAlert>\n <ValidatePayloadAlert>{children}</ValidatePayloadAlert>\n </ValidatePluginsAlert>\n </ValidatePayloadProvider>\n )\n}\n","import { LoadResult } from '@xyo-network/react-shared'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { useResolvePayload } from '../contexts/index.ts'\n\nexport const EmbedResolver: React.FC<PropsWithChildren> = ({ children }) => {\n const {\n payload, notFound, huriError,\n } = useResolvePayload()\n\n return (\n <LoadResult searchResult={payload} notFound={!!notFound} error={!!huriError}>\n {children}\n </LoadResult>\n )\n}\n","import type { AlertProps } from '@mui/material'\nimport { Alert } from '@mui/material'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { useValidatePayload } from '../../contexts/index.ts'\n\nexport const ValidatePayloadAlert: React.FC<PropsWithChildren<AlertProps>> = ({ children, ...props }) => {\n const {\n validPayload, enabled, schema,\n } = useValidatePayload()\n\n if (enabled && validPayload === false) {\n return (\n <Alert severity=\"error\" title=\"Invalid Payload!\" {...props}>\n Payload schema claimed to be\n {' '}\n {schema}\n {' '}\n but failed to validate.\n </Alert>\n )\n }\n\n return <>{children}</>\n}\n","import type { AlertProps } from '@mui/material'\nimport { Alert, AlertTitle } from '@mui/material'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../contexts/index.ts'\n\nexport const ValidatePluginsAlert: React.FC<PropsWithChildren<AlertProps>> = ({ children, ...props }) => {\n const { payload } = useResolvePayload()\n const { plugins } = useEmbedPluginState()\n\n if (payload && plugins?.length === 0) {\n return (\n <Alert severity=\"warning\" {...props}>\n <AlertTitle>Missing plugins!</AlertTitle>\n Payload found but no plugins were present.\n </Alert>\n )\n }\n\n return <>{children}</>\n}\n","import type { CardProps } from '@mui/material'\nimport { ErrorAlert, ErrorRender } from '@xylabs/react-error'\nimport type { ModuleError } from '@xyo-network/payload-model'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport { EmbedErrorCard } from './EmbedErrorCard.tsx'\n\ninterface EmbedCardApiErrorRendererProps extends CardProps {\n xyoError?: ModuleError\n}\n\nexport const EmbedCardApiErrorRenderer: React.FC<PropsWithChildren<EmbedCardApiErrorRendererProps>> = ({\n xyoError, children, ...props\n}) => {\n return (\n <ErrorRender error={xyoError} noReAuth noErrorDisplay customError={<CustomApiErrorCard xyoError={xyoError} {...props} />}>\n {children}\n </ErrorRender>\n )\n}\n\nconst CustomApiErrorCard: React.FC<EmbedCardApiErrorRendererProps> = ({ xyoError, ...props }) => {\n return (\n <EmbedErrorCard {...props}>\n <ErrorAlert error={xyoError} />\n </EmbedErrorCard>\n )\n}\n","import type { AlertProps, CardProps } from '@mui/material'\nimport {\n Alert, AlertTitle, Card, CardContent, Typography,\n} from '@mui/material'\nimport { isDefined } from '@xylabs/sdk-js'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\ninterface EmbedErrorCardBaseProps {\n alertProps?: AlertProps\n error?: Error\n hideErrorDetails?: boolean\n scope?: string\n}\n\ninterface EmbedErrorCardProps extends EmbedErrorCardBaseProps, CardProps {}\n\nexport const EmbedErrorCard: React.FC<PropsWithChildren<EmbedErrorCardProps>> = (props) => {\n const {\n alertProps, error, scope, hideErrorDetails = true, children, ...cardProps\n } = props\n const errorProps = {\n alertProps, error, hideErrorDetails, scope,\n }\n return (\n <Card {...cardProps}>\n <CardContent>{children ?? <DefaultErrorAlert {...errorProps} />}</CardContent>\n </Card>\n )\n}\n\nconst DefaultErrorAlert: React.FC<EmbedErrorCardBaseProps> = ({\n alertProps, scope, hideErrorDetails, error,\n}) => {\n return (\n <Alert severity=\"error\" {...alertProps}>\n <AlertTitle>Whoops! Something went wrong</AlertTitle>\n {isDefined(scope)\n ? (\n <Typography variant=\"caption\">\n Scope:\n {scope}\n </Typography>\n )\n : null}\n {!hideErrorDetails && error\n ? (\n <>\n <Typography variant=\"caption\">Error: </Typography>\n <Typography variant=\"caption\">{error?.message}</Typography>\n </>\n )\n : (\n <Typography\n variant=\"caption\"\n sx={{ fontSize: 'small' }}\n >\n Error Loading Plugin\n </Typography>\n )}\n </Alert>\n )\n}\n"],"mappings":";AACA,SAAS,YAAY;AACrB,SAAS,qBAAqB;AAM9B;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAqBH,SAGM,KAHN;AAVG,IAAM,WAAuD,CAAC;AAAA,EACnE;AAAA,EACA,cAAc;AAAA,EACd,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,eAAe,cAAc,MAAM,WAAW;AACpD,SACE,qBAAC,QAAM,GAAG,OACP;AAAA;AAAA,IACA,gBAAgB,cAAc,eAC3B,oBAAC,wBAAsB,GAAI,kBAAgD,IAC3E;AAAA,IACH,gBAAgB,YAAY,eACzB,oBAAC,sBAAoB,GAAI,kBAA8C,IACvE;AAAA,KACN;AAEJ;;;AC1CA,SAAS,WAAW,mBAAmB;AAEvC;AAAA,EACE;AAAA,EAAQ;AAAA,EAAY,QAAAA;AAAA,OACf;AACP,SAAS,eAAe;AACxB,SAAS,aAAAC,kBAAiB;AAC1B,SAAgB,YAAAC,iBAAgB;;;ACPhC,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;;;ACJpE,SAAS,qBAAqB;AAE9B,SAAgB,eAAe;AA6B3B,gBAAAC,YAAA;AArBG,IAAM,sBAA6E,CAAC;AAAA,EACzF;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,CAAC,cAAc,eAAe,IAAI,cAAc,UAAU,QAAQ,CAAC,IAAI,MAAS;A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ACE,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,QACF;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MAEA;AAAA,wBAAAD,MAAC,wBAAsB,GAAG,eAAe;AAAA,QACxC;AAAA;AAAA;AAAA,EACH;AAEJ;AAEO,IAAM,uBAAgD,CAAC,UAAU;AACtE,QAAM,EAAE,SAAS,UAAU,IAAI,kBAAkB;AACjD,QAAM,EAAE,eAAe,IAAI,kBAAkB;AAC7C,QAAM,QAAQ,SAAS;AAEvB,SACE,gBAAAA,MAAC,6BAA0B,UAAU,WACnC,0BAAAA;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,MACX,SAAQ;AAAA,MACR,MAAM,QAAQ,CAAC,kBAAkB,OAAO;AAAA,MACxC,kBAAkB;AAAA,QAChB,OAAO;AAAA,UACL,YAAY;AAAA,UAAS,YAAY,MAAM,QAAQ,CAAC;AAAA,UAAG,QAAQ;AAAA,QAC7D;AAAA,MACF;AAAA,MACA,IAAI,EAAE,UAAU,WAAW;AAAA,MAC1B,GAAG;AAAA;AAAA,EACN,GACF;AAEJ;","names":["Chip","isDefined","useState","jsx","createContextEx","useMemo","jsx","useMemo","useContextEx","useContextEx","useMemo","useState","createContextEx","jsx","useState","useMemo","useContextEx","useContextEx","createContextEx","useEffect","useMemo","useState","jsx","useState","useEffect","useMemo","useContextEx","useContextEx","useAsyncEffect","useMemo","useState","createContextEx","jsx","useState","useAsyncEffect","useMemo","useContextEx","useContextEx","useState","isDefined","Fragment","jsx","jsxs","isDefined","Fragment","jsx","jsxs","useState","Fragment","jsx","jsxs","useState","isDefined","Chip","useListMode","jsx","jsxs","MenuItem","jsx","jsxs","MenuItem","MenuItem","SelectEx","jsx","SelectEx","MenuItem","jsx","jsxs","useListMode","jsx","Fragment","jsx","jsxs","Alert","Fragment","jsx","jsxs","Alert","jsx","Alert","AlertTitle","Card","CardContent","isDefined","Fragment","jsx","jsxs","jsx","jsx","jsxs"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-embed",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -41,18 +41,18 @@
|
|
|
41
41
|
"README.md"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@xyo-network/react-payload-plugin": "~
|
|
45
|
-
"@xyo-network/react-shared": "~
|
|
44
|
+
"@xyo-network/react-payload-plugin": "~8.0.0",
|
|
45
|
+
"@xyo-network/react-shared": "~8.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@bitauth/libauth": "~3.0.0",
|
|
49
49
|
"@emotion/react": "^11.14.0",
|
|
50
50
|
"@emotion/styled": "^11.14.1",
|
|
51
51
|
"@metamask/providers": "^22.1.1",
|
|
52
|
-
"@mui/icons-material": "
|
|
53
|
-
"@mui/material": "
|
|
54
|
-
"@mui/system": "
|
|
55
|
-
"@mui/x-tree-view": "~
|
|
52
|
+
"@mui/icons-material": "~9.0",
|
|
53
|
+
"@mui/material": "~9.0",
|
|
54
|
+
"@mui/system": "~9.0",
|
|
55
|
+
"@mui/x-tree-view": "~9.1",
|
|
56
56
|
"@opentelemetry/api": "^1.9.1",
|
|
57
57
|
"@opentelemetry/sdk-trace-base": "^2.7.1",
|
|
58
58
|
"@react-spring/web": "~10.0.3",
|
|
@@ -61,60 +61,58 @@
|
|
|
61
61
|
"@storybook/react-vite": "~10.3.6",
|
|
62
62
|
"@textea/json-viewer": "~4.0.1",
|
|
63
63
|
"@types/react": "^19.2.14",
|
|
64
|
-
"@xylabs/geo": "^5.1.
|
|
65
|
-
"@xylabs/pixel": "~5.1.
|
|
66
|
-
"@xylabs/react-async-effect": "~
|
|
67
|
-
"@xylabs/react-button": "~
|
|
68
|
-
"@xylabs/react-error": "~
|
|
69
|
-
"@xylabs/react-flexbox": "~
|
|
70
|
-
"@xylabs/react-hooks": "~
|
|
71
|
-
"@xylabs/react-identicon": "~
|
|
72
|
-
"@xylabs/react-link": "~
|
|
73
|
-
"@xylabs/react-promise": "~
|
|
74
|
-
"@xylabs/react-quick-tip-button": "~
|
|
75
|
-
"@xylabs/react-select": "~
|
|
76
|
-
"@xylabs/react-shared": "~
|
|
77
|
-
"@xylabs/react-theme": "~
|
|
78
|
-
"@xylabs/sdk-js": "^5.1.
|
|
79
|
-
"@xylabs/threads": "~5.1.
|
|
80
|
-
"@xylabs/toolchain": "~7.13.
|
|
81
|
-
"@xylabs/tsconfig": "^7.13.
|
|
82
|
-
"@xylabs/tsconfig-dom": "^7.13.
|
|
83
|
-
"@xylabs/tsconfig-react": "~7.13.
|
|
84
|
-
"@xyo-network/account": "~5.6.
|
|
85
|
-
"@xyo-network/account-model": "^5.6.
|
|
86
|
-
"@xyo-network/api": "~5.6.
|
|
87
|
-
"@xyo-network/api-models": "~5.6.
|
|
88
|
-
"@xyo-network/boundwitness-builder": "^5.6.
|
|
89
|
-
"@xyo-network/boundwitness-model": "^5.6.
|
|
90
|
-
"@xyo-network/boundwitness-validator": "^5.6.
|
|
91
|
-
"@xyo-network/boundwitness-wrapper": "~5.6.
|
|
92
|
-
"@xyo-network/config-payload-plugin": "~5.6.
|
|
93
|
-
"@xyo-network/crypto-asset-payload-plugin": "~5.5.
|
|
94
|
-
"@xyo-network/diviner-model": "^5.6.
|
|
95
|
-
"@xyo-network/diviner-schema-list": "~5.6.
|
|
96
|
-
"@xyo-network/diviner-schema-stats": "~5.6.
|
|
97
|
-
"@xyo-network/huri": "^5.6.
|
|
98
|
-
"@xyo-network/manifest-model": "~5.6.
|
|
99
|
-
"@xyo-network/module-
|
|
100
|
-
"@xyo-network/
|
|
101
|
-
"@xyo-network/node-
|
|
102
|
-
"@xyo-network/node-
|
|
103
|
-
"@xyo-network/
|
|
104
|
-
"@xyo-network/payload-
|
|
105
|
-
"@xyo-network/payload-
|
|
106
|
-
"@xyo-network/payload-
|
|
107
|
-
"@xyo-network/payload-
|
|
108
|
-
"@xyo-network/payload-
|
|
109
|
-
"@xyo-network/
|
|
110
|
-
"@xyo-network/schema-
|
|
111
|
-
"@xyo-network/
|
|
112
|
-
"@xyo-network/sdk-js": "
|
|
113
|
-
"@xyo-network/sdk-protocol-js": "~5.6.2",
|
|
64
|
+
"@xylabs/geo": "^5.1.2",
|
|
65
|
+
"@xylabs/pixel": "~5.1.2",
|
|
66
|
+
"@xylabs/react-async-effect": "~8.0",
|
|
67
|
+
"@xylabs/react-button": "~8.0",
|
|
68
|
+
"@xylabs/react-error": "~8.0",
|
|
69
|
+
"@xylabs/react-flexbox": "~8.0",
|
|
70
|
+
"@xylabs/react-hooks": "~8.0",
|
|
71
|
+
"@xylabs/react-identicon": "~8.0",
|
|
72
|
+
"@xylabs/react-link": "~8.0",
|
|
73
|
+
"@xylabs/react-promise": "~8.0",
|
|
74
|
+
"@xylabs/react-quick-tip-button": "~8.0",
|
|
75
|
+
"@xylabs/react-select": "~8.0",
|
|
76
|
+
"@xylabs/react-shared": "~8.0",
|
|
77
|
+
"@xylabs/react-theme": "~8.0",
|
|
78
|
+
"@xylabs/sdk-js": "^5.1.2",
|
|
79
|
+
"@xylabs/threads": "~5.1.2",
|
|
80
|
+
"@xylabs/toolchain": "~7.13.22",
|
|
81
|
+
"@xylabs/tsconfig": "^7.13.22",
|
|
82
|
+
"@xylabs/tsconfig-dom": "^7.13.22",
|
|
83
|
+
"@xylabs/tsconfig-react": "~7.13.22",
|
|
84
|
+
"@xyo-network/account": "~5.6.2",
|
|
85
|
+
"@xyo-network/account-model": "^5.6.3",
|
|
86
|
+
"@xyo-network/api": "~5.6.2",
|
|
87
|
+
"@xyo-network/api-models": "~5.6.3",
|
|
88
|
+
"@xyo-network/boundwitness-builder": "^5.6.2",
|
|
89
|
+
"@xyo-network/boundwitness-model": "^5.6.3",
|
|
90
|
+
"@xyo-network/boundwitness-validator": "^5.6.2",
|
|
91
|
+
"@xyo-network/boundwitness-wrapper": "~5.6.2",
|
|
92
|
+
"@xyo-network/config-payload-plugin": "~5.6.3",
|
|
93
|
+
"@xyo-network/crypto-asset-payload-plugin": "~5.5.2",
|
|
94
|
+
"@xyo-network/diviner-model": "^5.6.4",
|
|
95
|
+
"@xyo-network/diviner-schema-list": "~5.6.4",
|
|
96
|
+
"@xyo-network/diviner-schema-stats": "~5.6.4",
|
|
97
|
+
"@xyo-network/huri": "^5.6.2",
|
|
98
|
+
"@xyo-network/manifest-model": "~5.6.3",
|
|
99
|
+
"@xyo-network/module-model": "^5.6.4",
|
|
100
|
+
"@xyo-network/node-core-types": "~4.2.2",
|
|
101
|
+
"@xyo-network/node-memory": "~5.6.4",
|
|
102
|
+
"@xyo-network/node-model": "^5.6.4",
|
|
103
|
+
"@xyo-network/payload-builder": "^5.6.2",
|
|
104
|
+
"@xyo-network/payload-model": "^5.6.3",
|
|
105
|
+
"@xyo-network/payload-plugin": "^5.6.3",
|
|
106
|
+
"@xyo-network/payload-validator": "^5.6.3",
|
|
107
|
+
"@xyo-network/payload-wrapper": "~5.6.2",
|
|
108
|
+
"@xyo-network/query-payload-plugin": "~5.6.3",
|
|
109
|
+
"@xyo-network/schema-cache": "~5.6.3",
|
|
110
|
+
"@xyo-network/schema-payload-plugin": "~5.6.3",
|
|
111
|
+
"@xyo-network/sdk-js": "^5.6.4",
|
|
112
|
+
"@xyo-network/sdk-protocol-js": "~5.6.3",
|
|
114
113
|
"@xyo-network/typeof": "~5.3.30",
|
|
115
|
-
"@xyo-network/
|
|
116
|
-
"@xyo-network/wallet": "
|
|
117
|
-
"@xyo-network/wallet-model": "^5.6.2",
|
|
114
|
+
"@xyo-network/wallet": "~5.6.2",
|
|
115
|
+
"@xyo-network/wallet-model": "^5.6.3",
|
|
118
116
|
"ajv": "^8.20.0",
|
|
119
117
|
"async-mutex": "^0.5.0",
|
|
120
118
|
"axios": "^1.16.0",
|
|
@@ -138,100 +136,99 @@
|
|
|
138
136
|
"observable-fns": "~0.6.1",
|
|
139
137
|
"pako": "^2.1.0",
|
|
140
138
|
"query-string": "~9.3.1",
|
|
141
|
-
"react": "^19.2.
|
|
142
|
-
"react-dom": "^19.2.
|
|
143
|
-
"react-is": "^19.2.
|
|
139
|
+
"react": "^19.2.6",
|
|
140
|
+
"react-dom": "^19.2.6",
|
|
141
|
+
"react-is": "^19.2.6",
|
|
144
142
|
"react-router-dom": "^7.15.0",
|
|
145
143
|
"recharts": "~3.8.1",
|
|
146
144
|
"spark-md5": "~3.0.2",
|
|
147
145
|
"store2": "~2.14.4",
|
|
148
146
|
"storybook": "^10.3.6",
|
|
149
147
|
"typescript": "^5.9.3",
|
|
150
|
-
"vite": "^8.0.
|
|
148
|
+
"vite": "^8.0.11",
|
|
151
149
|
"wasm-feature-detect": "~1.8.0",
|
|
152
150
|
"webextension-polyfill": "^0.12.0",
|
|
153
151
|
"zod": "^4.4.3",
|
|
154
|
-
"@xyo-network/react-aggregate-price-plugin": "~
|
|
155
|
-
"@xyo-network/react-crypto-market-uniswap-plugin": "~
|
|
152
|
+
"@xyo-network/react-aggregate-price-plugin": "~8.0.0",
|
|
153
|
+
"@xyo-network/react-crypto-market-uniswap-plugin": "~8.0.0"
|
|
156
154
|
},
|
|
157
155
|
"peerDependencies": {
|
|
158
|
-
"@bitauth/libauth": "
|
|
159
|
-
"@emotion/react": "
|
|
160
|
-
"@emotion/styled": "
|
|
161
|
-
"@mui/icons-material": "
|
|
162
|
-
"@mui/material": "
|
|
163
|
-
"@mui/system": "
|
|
164
|
-
"@mui/x-tree-view": "
|
|
165
|
-
"@opentelemetry/api": "
|
|
166
|
-
"@opentelemetry/sdk-trace-base": "
|
|
167
|
-
"@react-spring/web": "
|
|
168
|
-
"@scure/base": "
|
|
169
|
-
"@textea/json-viewer": "
|
|
170
|
-
"@xylabs/pixel": "
|
|
171
|
-
"@xylabs/react-async-effect": "
|
|
172
|
-
"@xylabs/react-button": "
|
|
173
|
-
"@xylabs/react-error": "
|
|
174
|
-
"@xylabs/react-flexbox": "
|
|
175
|
-
"@xylabs/react-hooks": "
|
|
176
|
-
"@xylabs/react-identicon": "
|
|
177
|
-
"@xylabs/react-link": "
|
|
178
|
-
"@xylabs/react-promise": "
|
|
179
|
-
"@xylabs/react-quick-tip-button": "
|
|
180
|
-
"@xylabs/react-select": "
|
|
181
|
-
"@xylabs/react-shared": "
|
|
182
|
-
"@xylabs/react-theme": "
|
|
183
|
-
"@xylabs/sdk-js": "
|
|
184
|
-
"@xylabs/threads": "
|
|
185
|
-
"@xyo-network/account": "
|
|
186
|
-
"@xyo-network/account-model": "
|
|
187
|
-
"@xyo-network/boundwitness-builder": "
|
|
188
|
-
"@xyo-network/boundwitness-model": "
|
|
189
|
-
"@xyo-network/boundwitness-validator": "
|
|
190
|
-
"@xyo-network/boundwitness-wrapper": "
|
|
191
|
-
"@xyo-network/config-payload-plugin": "
|
|
192
|
-
"@xyo-network/diviner-model": "
|
|
193
|
-
"@xyo-network/diviner-schema-list": "
|
|
194
|
-
"@xyo-network/diviner-schema-stats": "
|
|
195
|
-
"@xyo-network/huri": "
|
|
196
|
-
"@xyo-network/manifest-model": "
|
|
197
|
-
"@xyo-network/module-
|
|
198
|
-
"@xyo-network/
|
|
199
|
-
"@xyo-network/node-
|
|
200
|
-
"@xyo-network/node-
|
|
201
|
-
"@xyo-network/
|
|
202
|
-
"@xyo-network/payload-
|
|
203
|
-
"@xyo-network/payload-
|
|
204
|
-
"@xyo-network/payload-
|
|
205
|
-
"@xyo-network/
|
|
206
|
-
"@xyo-network/schema-
|
|
207
|
-
"@xyo-network/
|
|
208
|
-
"@xyo-network/
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
"
|
|
212
|
-
"
|
|
213
|
-
"
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
"
|
|
217
|
-
"
|
|
218
|
-
"
|
|
219
|
-
"
|
|
220
|
-
"
|
|
221
|
-
"
|
|
222
|
-
"
|
|
223
|
-
"
|
|
224
|
-
"
|
|
225
|
-
"
|
|
226
|
-
"
|
|
227
|
-
"react": "
|
|
228
|
-
"react-
|
|
229
|
-
"react-
|
|
230
|
-
"
|
|
231
|
-
"
|
|
232
|
-
"
|
|
233
|
-
"
|
|
234
|
-
"zod": ">=4.4.3 <5"
|
|
156
|
+
"@bitauth/libauth": "~3.0",
|
|
157
|
+
"@emotion/react": "^11.14",
|
|
158
|
+
"@emotion/styled": "^11.14",
|
|
159
|
+
"@mui/icons-material": "~9.0",
|
|
160
|
+
"@mui/material": "~9.0",
|
|
161
|
+
"@mui/system": "~9.0",
|
|
162
|
+
"@mui/x-tree-view": "~9.1",
|
|
163
|
+
"@opentelemetry/api": "^1.9",
|
|
164
|
+
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
165
|
+
"@react-spring/web": "~10.0",
|
|
166
|
+
"@scure/base": "~2.2",
|
|
167
|
+
"@textea/json-viewer": "~4.0",
|
|
168
|
+
"@xylabs/pixel": "~5.1",
|
|
169
|
+
"@xylabs/react-async-effect": "~8.0",
|
|
170
|
+
"@xylabs/react-button": "~8.0",
|
|
171
|
+
"@xylabs/react-error": "~8.0",
|
|
172
|
+
"@xylabs/react-flexbox": "~8.0",
|
|
173
|
+
"@xylabs/react-hooks": "~8.0",
|
|
174
|
+
"@xylabs/react-identicon": "~8.0",
|
|
175
|
+
"@xylabs/react-link": "~8.0",
|
|
176
|
+
"@xylabs/react-promise": "~8.0",
|
|
177
|
+
"@xylabs/react-quick-tip-button": "~8.0",
|
|
178
|
+
"@xylabs/react-select": "~8.0",
|
|
179
|
+
"@xylabs/react-shared": "~8.0",
|
|
180
|
+
"@xylabs/react-theme": "~8.0",
|
|
181
|
+
"@xylabs/sdk-js": "^5.1",
|
|
182
|
+
"@xylabs/threads": "~5.1",
|
|
183
|
+
"@xyo-network/account": "~5.6",
|
|
184
|
+
"@xyo-network/account-model": "^5.6",
|
|
185
|
+
"@xyo-network/boundwitness-builder": "^5.6",
|
|
186
|
+
"@xyo-network/boundwitness-model": "^5.6",
|
|
187
|
+
"@xyo-network/boundwitness-validator": "^5.6",
|
|
188
|
+
"@xyo-network/boundwitness-wrapper": "~5.6",
|
|
189
|
+
"@xyo-network/config-payload-plugin": "~5.6",
|
|
190
|
+
"@xyo-network/diviner-model": "^5.6",
|
|
191
|
+
"@xyo-network/diviner-schema-list": "~5.6",
|
|
192
|
+
"@xyo-network/diviner-schema-stats": "~5.6",
|
|
193
|
+
"@xyo-network/huri": "^5.6",
|
|
194
|
+
"@xyo-network/manifest-model": "~5.6",
|
|
195
|
+
"@xyo-network/module-model": "^5.6",
|
|
196
|
+
"@xyo-network/node-core-types": "~4.2",
|
|
197
|
+
"@xyo-network/node-memory": "~5.6",
|
|
198
|
+
"@xyo-network/node-model": "^5.6",
|
|
199
|
+
"@xyo-network/payload-builder": "^5.6",
|
|
200
|
+
"@xyo-network/payload-model": "^5.6",
|
|
201
|
+
"@xyo-network/payload-validator": "^5.6",
|
|
202
|
+
"@xyo-network/query-payload-plugin": "~5.6",
|
|
203
|
+
"@xyo-network/schema-cache": "~5.6",
|
|
204
|
+
"@xyo-network/schema-payload-plugin": "~5.6",
|
|
205
|
+
"@xyo-network/typeof": "~5.3",
|
|
206
|
+
"@xyo-network/wallet-model": "^5.6",
|
|
207
|
+
"ajv": "^8.20",
|
|
208
|
+
"async-mutex": "^0.5",
|
|
209
|
+
"bn.js": "^5.2",
|
|
210
|
+
"bowser": "^2.14",
|
|
211
|
+
"buffer": "^6.0",
|
|
212
|
+
"chalk": "^5.6",
|
|
213
|
+
"debug": "~4.4",
|
|
214
|
+
"ethers": "^6.16",
|
|
215
|
+
"fast-deep-equal": "~3.1",
|
|
216
|
+
"hash-wasm": "~4.12",
|
|
217
|
+
"js-cookie": "~3.0",
|
|
218
|
+
"lru-cache": "^11.3",
|
|
219
|
+
"md5": "~2.3",
|
|
220
|
+
"mixpanel-browser": "~2.78",
|
|
221
|
+
"observable-fns": "~0.6",
|
|
222
|
+
"pako": "^2.1",
|
|
223
|
+
"query-string": "~9.3",
|
|
224
|
+
"react": "^19.2",
|
|
225
|
+
"react-dom": "^19.2",
|
|
226
|
+
"react-is": "^19.2",
|
|
227
|
+
"react-router-dom": "^7.15",
|
|
228
|
+
"recharts": "~3.8",
|
|
229
|
+
"spark-md5": "~3.0",
|
|
230
|
+
"wasm-feature-detect": "~1.8",
|
|
231
|
+
"zod": "^4.4"
|
|
235
232
|
},
|
|
236
233
|
"publishConfig": {
|
|
237
234
|
"access": "public"
|