@xyo-network/react-embed 10.0.2 → 10.0.4

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.
Files changed (43) hide show
  1. package/dist/browser/components/controls/ListModeSelect.d.ts +1 -1
  2. package/dist/browser/components/controls/ListModeSelect.d.ts.map +1 -1
  3. package/dist/browser/components/controls/RenderSelect.d.ts +1 -1
  4. package/dist/browser/components/controls/RenderSelect.d.ts.map +1 -1
  5. package/dist/browser/components/embed-card/EmbedCardResolver.d.ts +1 -1
  6. package/dist/browser/components/embed-card/EmbedCardResolver.d.ts.map +1 -1
  7. package/dist/browser/components/embed-card/card/BusyCard.d.ts +1 -1
  8. package/dist/browser/components/embed-card/card/BusyCard.d.ts.map +1 -1
  9. package/dist/browser/components/embed-card/card/EmbedCardHeader.d.ts.map +1 -1
  10. package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts +1 -1
  11. package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts.map +1 -1
  12. package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.d.ts.map +1 -1
  13. package/dist/browser/components/embed-card/menu/JsonMenuItem.d.ts.map +1 -1
  14. package/dist/browser/contexts/EmbedPluginContext/Context.d.ts +2 -2
  15. package/dist/browser/contexts/EmbedPluginContext/State.d.ts +1 -1
  16. package/dist/browser/contexts/EmbedPluginContext/State.d.ts.map +1 -1
  17. package/dist/browser/contexts/EmbedPluginContext/use.d.ts +1 -1
  18. package/dist/browser/contexts/EmbedPluginContext/use.d.ts.map +1 -1
  19. package/dist/browser/contexts/PluginPropsContext/context.d.ts +2 -2
  20. package/dist/browser/contexts/PluginPropsContext/state.d.ts +1 -1
  21. package/dist/browser/contexts/PluginPropsContext/state.d.ts.map +1 -1
  22. package/dist/browser/contexts/PluginPropsContext/use.d.ts +1 -1
  23. package/dist/browser/contexts/PluginPropsContext/use.d.ts.map +1 -1
  24. package/dist/browser/contexts/RefreshPayloadContext/Context.d.ts +2 -2
  25. package/dist/browser/contexts/RefreshPayloadContext/State.d.ts +1 -1
  26. package/dist/browser/contexts/RefreshPayloadContext/State.d.ts.map +1 -1
  27. package/dist/browser/contexts/RefreshPayloadContext/use.d.ts +1 -1
  28. package/dist/browser/contexts/RefreshPayloadContext/use.d.ts.map +1 -1
  29. package/dist/browser/contexts/ResolvePayloadContext/Context.d.ts +14 -14
  30. package/dist/browser/contexts/ResolvePayloadContext/State.d.ts +2 -2
  31. package/dist/browser/contexts/ResolvePayloadContext/State.d.ts.map +1 -1
  32. package/dist/browser/contexts/ResolvePayloadContext/use.d.ts +5 -5
  33. package/dist/browser/contexts/ResolvePayloadContext/use.d.ts.map +1 -1
  34. package/dist/browser/contexts/ValidatePayloadContext/Context.d.ts +2 -2
  35. package/dist/browser/contexts/ValidatePayloadContext/State.d.ts +1 -1
  36. package/dist/browser/contexts/ValidatePayloadContext/State.d.ts.map +1 -1
  37. package/dist/browser/contexts/ValidatePayloadContext/use.d.ts +1 -1
  38. package/dist/browser/contexts/ValidatePayloadContext/use.d.ts.map +1 -1
  39. package/dist/browser/index.mjs +29 -29
  40. package/dist/browser/index.mjs.map +3 -3
  41. package/dist/browser/types/EmbedPluginProps.d.ts +1 -1
  42. package/dist/browser/types/EmbedPluginProps.d.ts.map +1 -1
  43. package/package.json +54 -81
@@ -1,4 +1,4 @@
1
- import type { SelectExProps } from '@xylabs/react-select';
1
+ import type { SelectExProps } from '@ariestools/sdk-react/select';
2
2
  import type { ListMode } from '@xyo-network/react-shared';
3
3
  import React from 'react';
4
4
  export declare const ListModeSelect: React.FC<SelectExProps<ListMode>>;
@@ -1 +1 @@
1
- {"version":3,"file":"ListModeSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/ListModeSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAEzD,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,CAsB5D,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,CAMvE,CAAA"}
1
+ {"version":3,"file":"ListModeSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/ListModeSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAGjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAEzD,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,CAsB5D,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,CAMvE,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { SelectExProps } from '@xylabs/react-select';
1
+ import type { SelectExProps } from '@ariestools/sdk-react/select';
2
2
  import React from 'react';
3
3
  export declare const EmbedRenderSelect: React.FC<SelectExProps<string>>;
4
4
  //# sourceMappingURL=RenderSelect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RenderSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/RenderSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,CAe7D,CAAA"}
1
+ {"version":3,"file":"RenderSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/RenderSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAGjE,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,CAe7D,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { FlexBoxProps } from '@xylabs/react-flexbox';
1
+ import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox';
2
2
  import type { PropsWithChildren } from 'react';
3
3
  import React from 'react';
4
4
  export declare const EmbedCardResolverFlexBox: React.FC<PropsWithChildren<FlexBoxProps>>;
@@ -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,CA6B9E,CAAA"}
1
+ {"version":3,"file":"EmbedCardResolver.d.ts","sourceRoot":"","sources":["../../../../src/components/embed-card/EmbedCardResolver.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAIjE,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,5 +1,5 @@
1
+ import type { BusyCircularProgressProps, BusyLinearProgressProps, BusyVariant } from '@ariestools/sdk-react/shared';
1
2
  import type { CardProps } from '@mui/material';
2
- import type { BusyCircularProgressProps, BusyLinearProgressProps, BusyVariant } from '@xylabs/react-shared';
3
3
  import type { PropsWithChildren } from 'react';
4
4
  import React from 'react';
5
5
  export interface BusyCardProps extends CardProps {
@@ -1 +1 @@
1
- {"version":3,"file":"BusyCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/BusyCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAG9C,OAAO,KAAK,EACV,yBAAyB,EACzB,uBAAuB,EACvB,WAAW,EACZ,MAAM,sBAAsB,CAAA;AAK7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,gBAAgB,CAAC,EAAE,yBAAyB,GAAG,uBAAuB,CAAA;CACvE;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAoB/D,CAAA"}
1
+ {"version":3,"file":"BusyCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/BusyCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,yBAAyB,EACzB,uBAAuB,EACvB,WAAW,EACZ,MAAM,8BAA8B,CAAA;AAKrC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,gBAAgB,CAAC,EAAE,yBAAyB,GAAG,uBAAuB,CAAA;CACvE;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAoB/D,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,CAiDrD,CAAA"}
1
+ {"version":3,"file":"EmbedCardHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/EmbedCardHeader.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAS,MAAM,eAAe,CAAA;AAI3D,OAAO,KAAmB,MAAM,OAAO,CAAA;AAKvC,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAiDrD,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import type { CardProps } from '@mui/material';
2
- import type { ModuleError } from '@xyo-network/sdk-js';
2
+ import type { ModuleError } from '@xyo-network/sdk';
3
3
  import type { PropsWithChildren } from 'react';
4
4
  import React from 'react';
5
5
  interface EmbedCardApiErrorRendererProps extends CardProps {
@@ -1 +1 @@
1
- {"version":3,"file":"EmbedCardApiErrorRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,UAAU,8BAA+B,SAAQ,SAAS;IACxD,QAAQ,CAAC,EAAE,WAAW,CAAA;CACvB;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,8BAA8B,CAAC,CAQjG,CAAA"}
1
+ {"version":3,"file":"EmbedCardApiErrorRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,UAAU,8BAA+B,SAAQ,SAAS;IACxD,QAAQ,CAAC,EAAE,WAAW,CAAA;CACvB;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,8BAA8B,CAAC,CAQjG,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"EmbedErrorCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedErrorCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAK1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,UAAU,uBAAuB;IAC/B,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,UAAU,mBAAoB,SAAQ,uBAAuB,EAAE,SAAS;CAAG;AAE3E,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAY3E,CAAA"}
1
+ {"version":3,"file":"EmbedErrorCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedErrorCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAI1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,UAAU,uBAAuB;IAC/B,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,UAAU,mBAAoB,SAAQ,uBAAuB,EAAE,SAAS;CAAG;AAE3E,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAY3E,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"JsonMenuItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/menu/JsonMenuItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAKlD,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiBhD,CAAA"}
1
+ {"version":3,"file":"JsonMenuItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/menu/JsonMenuItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAIlD,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiBhD,CAAA"}
@@ -3,12 +3,12 @@ export declare const EmbedPluginContext: import("react").Context<(import("./Stat
3
3
  setActivePlugin?: import("react").Dispatch<import("react").SetStateAction<import("@xyo-network/react-payload-plugin").PayloadRenderPlugin | undefined>>;
4
4
  } & {
5
5
  provided: true;
6
- }) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").ProvidedContextExState<import("./State.ts").EmbedPluginBase & {
6
+ }) | (import("@ariestools/sdk-react/shared").FixedValues<import("@ariestools/sdk-react/shared").ProvidedContextExState<import("./State.ts").EmbedPluginBase & {
7
7
  activePlugin?: import("@xyo-network/react-payload-plugin").PayloadRenderPlugin;
8
8
  setActivePlugin?: import("react").Dispatch<import("react").SetStateAction<import("@xyo-network/react-payload-plugin").PayloadRenderPlugin | undefined>>;
9
9
  }>, never> & {
10
10
  provided: false;
11
- }) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").NotProvidedContextExState<import("./State.ts").EmbedPluginBase & {
11
+ }) | (import("@ariestools/sdk-react/shared").FixedValues<import("@ariestools/sdk-react/shared").NotProvidedContextExState<import("./State.ts").EmbedPluginBase & {
12
12
  activePlugin?: import("@xyo-network/react-payload-plugin").PayloadRenderPlugin;
13
13
  setActivePlugin?: import("react").Dispatch<import("react").SetStateAction<import("@xyo-network/react-payload-plugin").PayloadRenderPlugin | undefined>>;
14
14
  }>, never> & {
@@ -1,4 +1,4 @@
1
- import type { ContextExState } from '@xylabs/react-shared';
1
+ import type { ContextExState } from '@ariestools/sdk-react/shared';
2
2
  import type { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin';
3
3
  import type { ListMode } from '@xyo-network/react-shared';
4
4
  import type { Dispatch, SetStateAction } from 'react';
@@ -1 +1 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;A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AE,MAAM,2BAA2B,CAAA;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAErD,MAAM,WAAW,2BAA2B;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,0CAA0C;IAC1C,iBAAiB,CAAC,EAAE,YAAY,CAAA;IAChC,kBAAkB,CAAC,EAAE,2BAA2B,CAAA;IAChD,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,eAAe,GAAG;IAC9D,YAAY,CAAC,EAAE,mBAAmB,CAAA;IAClC,eAAe,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC,CAAA;CAC5E,CAAC,CAAA"}
@@ -3,5 +3,5 @@ export declare const useEmbedPluginState: () => Omit<import("./State.ts").EmbedP
3
3
  setActivePlugin?: import("react").Dispatch<import("react").SetStateAction<import("@xyo-network/react-payload-plugin").PayloadRenderPlugin | undefined>>;
4
4
  } & {
5
5
  provided: true;
6
- }, "provided"> | Omit<import("@xylabs/react-shared").NotProvidedContextExState<import("./State.ts").EmbedPluginState>, "provided">;
6
+ }, "provided"> | Omit<import("@ariestools/sdk-react/shared").NotProvidedContextExState<import("./State.ts").EmbedPluginState>, "provided">;
7
7
  //# sourceMappingURL=use.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB;;;;;kIAA8D,CAAA"}
1
+ {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB;;;;;0IAA8D,CAAA"}
@@ -1,8 +1,8 @@
1
1
  export declare const PluginPropsContext: import("react").Context<(import("./state.ts").PluginPropsStateFields & {
2
2
  provided: true;
3
- }) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").ProvidedContextExState<import("./state.ts").PluginPropsStateFields>, never> & {
3
+ }) | (import("@ariestools/sdk-react/shared").FixedValues<import("@ariestools/sdk-react/shared").ProvidedContextExState<import("./state.ts").PluginPropsStateFields>, never> & {
4
4
  provided: false;
5
- }) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").NotProvidedContextExState<import("./state.ts").PluginPropsStateFields>, never> & {
5
+ }) | (import("@ariestools/sdk-react/shared").FixedValues<import("@ariestools/sdk-react/shared").NotProvidedContextExState<import("./state.ts").PluginPropsStateFields>, never> & {
6
6
  provided: false;
7
7
  })>;
8
8
  //# sourceMappingURL=context.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { ContextExState } from '@xylabs/react-shared';
1
+ import type { ContextExState } from '@ariestools/sdk-react/shared';
2
2
  export type PluginProps = Record<string, unknown>;
3
3
  export interface PluginPropsStateFields {
4
4
  pluginProps: PluginProps | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/contexts/PluginPropsContext/state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEjD,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,WAAW,GAAG,SAAS,CAAA;CACrC;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,sBAAsB,CAAC,CAAA"}
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/contexts/PluginPropsContext/state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAElE,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEjD,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,WAAW,GAAG,SAAS,CAAA;CACrC;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,sBAAsB,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
1
  export declare const usePluginProps: (required?: boolean) => Omit<import("./state.ts").PluginPropsStateFields & {
2
2
  provided: true;
3
- }, "provided"> | Omit<import("@xylabs/react-shared").NotProvidedContextExState<import("./state.ts").PluginPropsState>, "provided">;
3
+ }, "provided"> | Omit<import("@ariestools/sdk-react/shared").NotProvidedContextExState<import("./state.ts").PluginPropsState>, "provided">;
4
4
  //# sourceMappingURL=use.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/PluginPropsContext/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,GAAI,kBAAgB;;kIAA8D,CAAA"}
1
+ {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/PluginPropsContext/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,GAAI,kBAAgB;;0IAA8D,CAAA"}
@@ -4,13 +4,13 @@ export declare const RefreshPayloadContext: import("react").Context<({
4
4
  setRefreshPayload?: import("react").Dispatch<import("react").SetStateAction<boolean | undefined>>;
5
5
  } & {
6
6
  provided: true;
7
- }) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").ProvidedContextExState<{
7
+ }) | (import("@ariestools/sdk-react/shared").FixedValues<import("@ariestools/sdk-react/shared").ProvidedContextExState<{
8
8
  onRefresh?: () => void;
9
9
  refreshPayload?: boolean;
10
10
  setRefreshPayload?: import("react").Dispatch<import("react").SetStateAction<boolean | undefined>>;
11
11
  }>, never> & {
12
12
  provided: false;
13
- }) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").NotProvidedContextExState<{
13
+ }) | (import("@ariestools/sdk-react/shared").FixedValues<import("@ariestools/sdk-react/shared").NotProvidedContextExState<{
14
14
  onRefresh?: () => void;
15
15
  refreshPayload?: boolean;
16
16
  setRefreshPayload?: import("react").Dispatch<import("react").SetStateAction<boolean | undefined>>;
@@ -1,4 +1,4 @@
1
- import type { ContextExState } from '@xylabs/react-shared';
1
+ import type { ContextExState } from '@ariestools/sdk-react/shared';
2
2
  import type { Dispatch, SetStateAction } from 'react';
3
3
  export type RefreshPayloadState = ContextExState<{
4
4
  onRefresh?: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAErD,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,iBAAiB,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC,CAAA;CAClE,CAAC,CAAA"}
1
+ {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAErD,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,iBAAiB,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC,CAAA;CAClE,CAAC,CAAA"}
@@ -4,5 +4,5 @@ export declare const useRefreshPayload: () => Omit<{
4
4
  setRefreshPayload?: import("react").Dispatch<import("react").SetStateAction<boolean | undefined>>;
5
5
  } & {
6
6
  provided: true;
7
- }, "provided"> | Omit<import("@xylabs/react-shared").NotProvidedContextExState<import("./State.ts").RefreshPayloadState>, "provided">;
7
+ }, "provided"> | Omit<import("@ariestools/sdk-react/shared").NotProvidedContextExState<import("./State.ts").RefreshPayloadState>, "provided">;
8
8
  //# sourceMappingURL=use.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;qIAAoE,CAAA"}
1
+ {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;6IAAoE,CAAA"}
@@ -1,31 +1,31 @@
1
1
  export declare const ResolvePayloadContext: import("react").Context<({
2
2
  huri?: string;
3
- huriError?: import("@xyo-network/sdk-protocol-js").ModuleError;
4
- huriPayload?: string | import("@xyo-network/sdk-protocol-js").Payload;
3
+ huriError?: import("@xyo-network/sdk-protocol").ModuleError;
4
+ huriPayload?: string | import("@xyo-network/sdk-protocol").Payload;
5
5
  notFound?: boolean;
6
- payload?: import("@xyo-network/sdk-protocol-js").Payload;
6
+ payload?: import("@xyo-network/sdk-protocol").Payload;
7
7
  refreshHuri?: () => void;
8
- setPayload?: import("react").Dispatch<import("react").SetStateAction<import("@xyo-network/sdk-protocol-js").Payload | undefined>>;
8
+ setPayload?: import("react").Dispatch<import("react").SetStateAction<import("@xyo-network/sdk-protocol").Payload | undefined>>;
9
9
  } & {
10
10
  provided: true;
11
- }) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").ProvidedContextExState<{
11
+ }) | (import("@ariestools/sdk-react/shared").FixedValues<import("@ariestools/sdk-react/shared").ProvidedContextExState<{
12
12
  huri?: string;
13
- huriError?: import("@xyo-network/sdk-protocol-js").ModuleError;
14
- huriPayload?: string | import("@xyo-network/sdk-protocol-js").Payload;
13
+ huriError?: import("@xyo-network/sdk-protocol").ModuleError;
14
+ huriPayload?: string | import("@xyo-network/sdk-protocol").Payload;
15
15
  notFound?: boolean;
16
- payload?: import("@xyo-network/sdk-protocol-js").Payload;
16
+ payload?: import("@xyo-network/sdk-protocol").Payload;
17
17
  refreshHuri?: () => void;
18
- setPayload?: import("react").Dispatch<import("react").SetStateAction<import("@xyo-network/sdk-protocol-js").Payload | undefined>>;
18
+ setPayload?: import("react").Dispatch<import("react").SetStateAction<import("@xyo-network/sdk-protocol").Payload | undefined>>;
19
19
  }>, never> & {
20
20
  provided: false;
21
- }) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").NotProvidedContextExState<{
21
+ }) | (import("@ariestools/sdk-react/shared").FixedValues<import("@ariestools/sdk-react/shared").NotProvidedContextExState<{
22
22
  huri?: string;
23
- huriError?: import("@xyo-network/sdk-protocol-js").ModuleError;
24
- huriPayload?: string | import("@xyo-network/sdk-protocol-js").Payload;
23
+ huriError?: import("@xyo-network/sdk-protocol").ModuleError;
24
+ huriPayload?: string | import("@xyo-network/sdk-protocol").Payload;
25
25
  notFound?: boolean;
26
- payload?: import("@xyo-network/sdk-protocol-js").Payload;
26
+ payload?: import("@xyo-network/sdk-protocol").Payload;
27
27
  refreshHuri?: () => void;
28
- setPayload?: import("react").Dispatch<import("react").SetStateAction<import("@xyo-network/sdk-protocol-js").Payload | undefined>>;
28
+ setPayload?: import("react").Dispatch<import("react").SetStateAction<import("@xyo-network/sdk-protocol").Payload | undefined>>;
29
29
  }>, never> & {
30
30
  provided: false;
31
31
  })>;
@@ -1,5 +1,5 @@
1
- import type { ContextExState } from '@xylabs/react-shared';
2
- import type { ModuleError, Payload } from '@xyo-network/sdk-js';
1
+ import type { ContextExState } from '@ariestools/sdk-react/shared';
2
+ import type { ModuleError, Payload } from '@xyo-network/sdk';
3
3
  import type { Dispatch, SetStateAction } from 'react';
4
4
  export type ResolvePayloadState = ContextExState<{
5
5
  huri?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAErD,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,WAAW,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,UAAU,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC,CAAA;CAC3D,CAAC,CAAA"}
1
+ {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAErD,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,WAAW,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,UAAU,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC,CAAA;CAC3D,CAAC,CAAA"}
@@ -1,12 +1,12 @@
1
1
  export declare const useResolvePayload: () => Omit<{
2
2
  huri?: string;
3
- huriError?: import("@xyo-network/sdk-protocol-js").ModuleError;
4
- huriPayload?: string | import("@xyo-network/sdk-protocol-js").Payload;
3
+ huriError?: import("@xyo-network/sdk-protocol").ModuleError;
4
+ huriPayload?: string | import("@xyo-network/sdk-protocol").Payload;
5
5
  notFound?: boolean;
6
- payload?: import("@xyo-network/sdk-protocol-js").Payload;
6
+ payload?: import("@xyo-network/sdk-protocol").Payload;
7
7
  refreshHuri?: () => void;
8
- setPayload?: import("react").Dispatch<import("react").SetStateAction<import("@xyo-network/sdk-protocol-js").Payload | undefined>>;
8
+ setPayload?: import("react").Dispatch<import("react").SetStateAction<import("@xyo-network/sdk-protocol").Payload | undefined>>;
9
9
  } & {
10
10
  provided: true;
11
- }, "provided"> | Omit<import("@xylabs/react-shared").NotProvidedContextExState<import("./State.ts").ResolvePayloadState>, "provided">;
11
+ }, "provided"> | Omit<import("@ariestools/sdk-react/shared").NotProvidedContextExState<import("./State.ts").ResolvePayloadState>, "provided">;
12
12
  //# sourceMappingURL=use.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;;;qIAAoE,CAAA"}
1
+ {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;;;6IAAoE,CAAA"}
@@ -4,13 +4,13 @@ export declare const ValidatePayloadContext: import("react").Context<({
4
4
  validPayload?: boolean;
5
5
  } & {
6
6
  provided: true;
7
- }) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").ProvidedContextExState<{
7
+ }) | (import("@ariestools/sdk-react/shared").FixedValues<import("@ariestools/sdk-react/shared").ProvidedContextExState<{
8
8
  enabled?: boolean;
9
9
  schema?: string;
10
10
  validPayload?: boolean;
11
11
  }>, never> & {
12
12
  provided: false;
13
- }) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").NotProvidedContextExState<{
13
+ }) | (import("@ariestools/sdk-react/shared").FixedValues<import("@ariestools/sdk-react/shared").NotProvidedContextExState<{
14
14
  enabled?: boolean;
15
15
  schema?: string;
16
16
  validPayload?: boolean;
@@ -1,4 +1,4 @@
1
- import type { ContextExState } from '@xylabs/react-shared';
1
+ import type { ContextExState } from '@ariestools/sdk-react/shared';
2
2
  export type ValidatePayloadState = ContextExState<{
3
3
  enabled?: boolean;
4
4
  schema?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC;IAChD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC,CAAA"}
1
+ {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAElE,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC;IAChD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB,CAAC,CAAA"}
@@ -4,5 +4,5 @@ export declare const useValidatePayload: () => Omit<{
4
4
  validPayload?: boolean;
5
5
  } & {
6
6
  provided: true;
7
- }, "provided"> | Omit<import("@xylabs/react-shared").NotProvidedContextExState<import("./State.ts").ValidatePayloadState>, "provided">;
7
+ }, "provided"> | Omit<import("@ariestools/sdk-react/shared").NotProvidedContextExState<import("./State.ts").ValidatePayloadState>, "provided">;
8
8
  //# sourceMappingURL=use.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;;;;;sIAAqE,CAAA"}
1
+ {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;;;;;8IAAqE,CAAA"}
@@ -1,10 +1,10 @@
1
1
  // src/components/embed-card/card/BusyCard.tsx
2
- import { Card } from "@mui/material";
3
- import { useBusyTiming } from "@xylabs/react-flexbox";
2
+ import { useBusyTiming } from "@ariestools/sdk-react/flexbox";
4
3
  import {
5
4
  BusyCircularProgress,
6
5
  BusyLinearProgress
7
- } from "@xylabs/react-shared";
6
+ } from "@ariestools/sdk-react/shared";
7
+ import { Card } from "@mui/material";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
  var BusyCard = ({
10
10
  busy,
@@ -23,22 +23,22 @@ var BusyCard = ({
23
23
  };
24
24
 
25
25
  // src/components/embed-card/card/EmbedCardHeader.tsx
26
+ import { isDefined as isDefined3 } from "@ariestools/sdk";
27
+ import { FlexRow } from "@ariestools/sdk-react/flexbox";
26
28
  import { Refresh as RefreshIcon } from "@mui/icons-material";
27
29
  import {
28
30
  Avatar,
29
31
  CardHeader,
30
32
  Chip as Chip2
31
33
  } from "@mui/material";
32
- import { FlexRow } from "@xylabs/react-flexbox";
33
- import { isDefined as isDefined3 } from "@xylabs/sdk-js";
34
34
  import { useState as useState6 } from "react";
35
35
 
36
36
  // src/contexts/EmbedPluginContext/Context.ts
37
- import { createContextEx } from "@xylabs/react-shared";
37
+ import { createContextEx } from "@ariestools/sdk-react/shared";
38
38
  var EmbedPluginContext = createContextEx();
39
39
 
40
40
  // src/contexts/EmbedPluginContext/Provider.tsx
41
- import { useResetState } from "@xylabs/react-hooks";
41
+ import { useResetState } from "@ariestools/sdk-react/hooks";
42
42
  import { useMemo } from "react";
43
43
  import { jsx as jsx2 } from "react/jsx-runtime";
44
44
  var EmbedPluginProvider = ({
@@ -69,11 +69,11 @@ var EmbedPluginProvider = ({
69
69
  };
70
70
 
71
71
  // src/contexts/EmbedPluginContext/use.ts
72
- import { useContextEx } from "@xylabs/react-shared";
72
+ import { useContextEx } from "@ariestools/sdk-react/shared";
73
73
  var useEmbedPluginState = () => useContextEx(EmbedPluginContext, "EmbedPlugin", true);
74
74
 
75
75
  // src/contexts/PluginPropsContext/context.ts
76
- import { createContextEx as createContextEx2 } from "@xylabs/react-shared";
76
+ import { createContextEx as createContextEx2 } from "@ariestools/sdk-react/shared";
77
77
  var PluginPropsContext = createContextEx2();
78
78
 
79
79
  // src/contexts/PluginPropsContext/Provider.tsx
@@ -96,14 +96,14 @@ var PluginPropsProvider = ({ children, pluginProps: pluginPropsProp }) => {
96
96
  };
97
97
 
98
98
  // src/contexts/PluginPropsContext/use.ts
99
- import { useContextEx as useContextEx2 } from "@xylabs/react-shared";
99
+ import { useContextEx as useContextEx2 } from "@ariestools/sdk-react/shared";
100
100
  var usePluginProps = (required = false) => useContextEx2(PluginPropsContext, "PluginProps", required);
101
101
 
102
102
  // src/contexts/RefreshPayloadContext/Provider.tsx
103
103
  import { useMemo as useMemo3, useState as useState2 } from "react";
104
104
 
105
105
  // src/contexts/RefreshPayloadContext/Context.ts
106
- import { createContextEx as createContextEx3 } from "@xylabs/react-shared";
106
+ import { createContextEx as createContextEx3 } from "@ariestools/sdk-react/shared";
107
107
  var RefreshPayloadContext = createContextEx3();
108
108
 
109
109
  // src/contexts/RefreshPayloadContext/Provider.tsx
@@ -124,17 +124,17 @@ var RefreshPayloadProvider = ({
124
124
  };
125
125
 
126
126
  // src/contexts/RefreshPayloadContext/use.ts
127
- import { useContextEx as useContextEx3 } from "@xylabs/react-shared";
127
+ import { useContextEx as useContextEx3 } from "@ariestools/sdk-react/shared";
128
128
  var useRefreshPayload = () => useContextEx3(RefreshPayloadContext, "RefreshPayload", true);
129
129
 
130
130
  // src/contexts/ResolvePayloadContext/Context.ts
131
- import { createContextEx as createContextEx4 } from "@xylabs/react-shared";
131
+ import { createContextEx as createContextEx4 } from "@ariestools/sdk-react/shared";
132
132
  var ResolvePayloadContext = createContextEx4();
133
133
 
134
134
  // src/contexts/ResolvePayloadContext/Provider.tsx
135
- import { useAsyncEffect } from "@xylabs/react-async-effect";
136
- import { delay, isDefined } from "@xylabs/sdk-js";
137
- import { Huri, ModuleErrorSchema } from "@xyo-network/sdk-js";
135
+ import { delay, isDefined } from "@ariestools/sdk";
136
+ import { useAsyncEffect } from "@ariestools/sdk-react/async-effect";
137
+ import { Huri, ModuleErrorSchema } from "@xyo-network/sdk";
138
138
  import {
139
139
  useCallback,
140
140
  useEffect as useEffect2,
@@ -203,17 +203,17 @@ var ResolvePayloadProvider = ({ children, huriPayload }) => {
203
203
  };
204
204
 
205
205
  // src/contexts/ResolvePayloadContext/use.ts
206
- import { useContextEx as useContextEx4 } from "@xylabs/react-shared";
206
+ import { useContextEx as useContextEx4 } from "@ariestools/sdk-react/shared";
207
207
  var useResolvePayload = () => useContextEx4(ResolvePayloadContext, "ResolvePayload", true);
208
208
 
209
209
  // src/contexts/ValidatePayloadContext/Provider.tsx
210
+ import { useAsyncEffect as useAsyncEffect2 } from "@ariestools/sdk-react/async-effect";
210
211
  import { Chip } from "@mui/material";
211
- import { useAsyncEffect as useAsyncEffect2 } from "@xylabs/react-async-effect";
212
- import { SchemaCache } from "@xyo-network/sdk-js";
212
+ import { SchemaCache } from "@xyo-network/sdk";
213
213
  import { useMemo as useMemo5, useState as useState4 } from "react";
214
214
 
215
215
  // src/contexts/ValidatePayloadContext/Context.ts
216
- import { createContextEx as createContextEx5 } from "@xylabs/react-shared";
216
+ import { createContextEx as createContextEx5 } from "@ariestools/sdk-react/shared";
217
217
  var ValidatePayloadContext = createContextEx5();
218
218
 
219
219
  // src/contexts/ValidatePayloadContext/Provider.tsx
@@ -245,7 +245,7 @@ var ValidatePayloadProvider = ({ children, enabled = false }) => {
245
245
  };
246
246
 
247
247
  // src/contexts/ValidatePayloadContext/use.ts
248
- import { useContextEx as useContextEx5 } from "@xylabs/react-shared";
248
+ import { useContextEx as useContextEx5 } from "@ariestools/sdk-react/shared";
249
249
  var useValidatePayload = () => useContextEx5(ValidatePayloadContext, "ValidateSchema", true);
250
250
 
251
251
  // src/components/embed-card/menu/EmbedMenu.tsx
@@ -254,13 +254,13 @@ import { IconButton, Menu } from "@mui/material";
254
254
  import { useState as useState5 } from "react";
255
255
 
256
256
  // src/components/embed-card/menu/JsonMenuItem.tsx
257
+ import { isDefined as isDefined2 } from "@ariestools/sdk";
257
258
  import { OpenInNew as OpenInNewIcon } from "@mui/icons-material";
258
259
  import {
259
260
  ListItemIcon,
260
261
  ListItemText,
261
262
  MenuItem
262
263
  } from "@mui/material";
263
- import { isDefined as isDefined2 } from "@xylabs/sdk-js";
264
264
  import { Fragment as Fragment2, jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
265
265
  var JsonMenuItem = (props) => {
266
266
  const { huri } = useResolvePayload();
@@ -348,9 +348,9 @@ var EmbedCardHeader = () => {
348
348
  };
349
349
 
350
350
  // src/components/embed-card/card/EmbedPluginCard.tsx
351
+ import { isTruthy } from "@ariestools/sdk";
352
+ import { FlexGrowRow } from "@ariestools/sdk-react/flexbox";
351
353
  import { CardContent } from "@mui/material";
352
- import { FlexGrowRow } from "@xylabs/react-flexbox";
353
- import { isTruthy } from "@xylabs/sdk-js";
354
354
  import { useListMode as useListMode2 } from "@xyo-network/react-shared";
355
355
 
356
356
  // src/components/controls/EmbedFormControl.tsx
@@ -369,8 +369,8 @@ var EmbedFormControl = ({
369
369
  };
370
370
 
371
371
  // src/components/controls/ListModeSelect.tsx
372
+ import { SelectEx } from "@ariestools/sdk-react/select";
372
373
  import { MenuItem as MenuItem2 } from "@mui/material";
373
- import { SelectEx } from "@xylabs/react-select";
374
374
  import { useListMode } from "@xyo-network/react-shared";
375
375
  import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
376
376
  var listModeSelectId = "listmode-select-id";
@@ -398,8 +398,8 @@ var ListModeSelectFormControl = (props) => {
398
398
  };
399
399
 
400
400
  // src/components/controls/RenderSelect.tsx
401
+ import { SelectEx as SelectEx2 } from "@ariestools/sdk-react/select";
401
402
  import { MenuItem as MenuItem3 } from "@mui/material";
402
- import { SelectEx as SelectEx2 } from "@xylabs/react-select";
403
403
  import { jsx as jsx12 } from "react/jsx-runtime";
404
404
  var renderSelectId = "render-select-id";
405
405
  var renderSelectLabel = "Renderer";
@@ -449,7 +449,7 @@ var EmbedPluginCard = ({ ...props }) => {
449
449
  import { useTheme } from "@mui/material";
450
450
 
451
451
  // src/components/EmbedPlugin.tsx
452
- import { ErrorBoundary } from "@xylabs/react-error";
452
+ import { ErrorBoundary } from "@ariestools/sdk-react/error";
453
453
  import { ListModeProvider } from "@xyo-network/react-shared";
454
454
 
455
455
  // src/components/EmbedResolver.tsx
@@ -537,9 +537,10 @@ var WithValidators = ({ children, validateSchema }) => {
537
537
  };
538
538
 
539
539
  // src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
540
- import { ErrorAlert, ErrorRender } from "@xylabs/react-error";
540
+ import { ErrorAlert, ErrorRender } from "@ariestools/sdk-react/error";
541
541
 
542
542
  // src/components/embed-card/error-handling/EmbedErrorCard.tsx
543
+ import { isDefined as isDefined4 } from "@ariestools/sdk";
543
544
  import {
544
545
  Alert as Alert3,
545
546
  AlertTitle as AlertTitle2,
@@ -547,7 +548,6 @@ import {
547
548
  CardContent as CardContent2,
548
549
  Typography
549
550
  } from "@mui/material";
550
- import { isDefined as isDefined4 } from "@xylabs/sdk-js";
551
551
  import { Fragment as Fragment7, jsx as jsx18, jsxs as jsxs10 } from "react/jsx-runtime";
552
552
  var EmbedErrorCard = (props) => {
553
553
  const {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
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"],
4
- "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 type {\n ModuleError, Payload, WithSources,\n} from '@xyo-network/sdk-js'\nimport { Huri, ModuleErrorSchema } from '@xyo-network/sdk-js'\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/sdk-js'\nimport { SchemaCache } from '@xyo-network/sdk-js'\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')}\n onChange={(event) => {\n setListMode?.(event.target.value)\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/sdk-js'\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"],
5
- "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,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AG,QAAQ;AAAA,QAC7D;AAAA,MACF;AAAA,MACA,IAAI,EAAE,UAAU,WAAW;AAAA,MAC1B,GAAG;AAAA;AAAA,EACN,GACF;AAEJ;",
6
- "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"]
4
+ "sourcesContent": ["import { useBusyTiming } from '@ariestools/sdk-react/flexbox'\nimport type {\n BusyCircularProgressProps,\n BusyLinearProgressProps,\n BusyVariant,\n} from '@ariestools/sdk-react/shared'\nimport {\n BusyCircularProgress,\n BusyLinearProgress,\n} from '@ariestools/sdk-react/shared'\nimport type { CardProps } from '@mui/material'\nimport { Card } from '@mui/material'\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 { isDefined } from '@ariestools/sdk'\nimport { FlexRow } from '@ariestools/sdk-react/flexbox'\nimport { Refresh as RefreshIcon } from '@mui/icons-material'\nimport type { CardHeaderProps, Theme } from '@mui/material'\nimport {\n Avatar, CardHeader, Chip,\n} from '@mui/material'\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 '@ariestools/sdk-react/shared'\n\nimport type { EmbedPluginState } from './State.ts'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n", "import { useResetState } from '@ariestools/sdk-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 '@ariestools/sdk-react/shared'\n\nimport { EmbedPluginContext } from './Context.ts'\n\nexport const useEmbedPluginState = () => useContextEx(EmbedPluginContext, 'EmbedPlugin', true)\n", "import { createContextEx } from '@ariestools/sdk-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 '@ariestools/sdk-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 '@ariestools/sdk-react/shared'\n\nimport type { RefreshPayloadState } from './State.ts'\n\nexport const RefreshPayloadContext = createContextEx<RefreshPayloadState>()\n", "import { useContextEx } from '@ariestools/sdk-react/shared'\n\nimport { RefreshPayloadContext } from './Context.ts'\n\nexport const useRefreshPayload = () => useContextEx(RefreshPayloadContext, 'RefreshPayload', true)\n", "import { createContextEx } from '@ariestools/sdk-react/shared'\n\nimport type { ResolvePayloadState } from './State.ts'\n\nexport const ResolvePayloadContext = createContextEx<ResolvePayloadState>()\n", "import { delay, isDefined } from '@ariestools/sdk'\nimport { useAsyncEffect } from '@ariestools/sdk-react/async-effect'\nimport type {\n ModuleError, Payload, WithSources,\n} from '@xyo-network/sdk'\nimport { Huri, ModuleErrorSchema } from '@xyo-network/sdk'\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 '@ariestools/sdk-react/shared'\n\nimport { ResolvePayloadContext } from './Context.ts'\n\nexport const useResolvePayload = () => useContextEx(ResolvePayloadContext, 'ResolvePayload', true)\n", "import { useAsyncEffect } from '@ariestools/sdk-react/async-effect'\nimport { Chip } from '@mui/material'\nimport type { SchemaNameToValidatorMap } from '@xyo-network/sdk'\nimport { SchemaCache } from '@xyo-network/sdk'\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 '@ariestools/sdk-react/shared'\n\nimport type { ValidatePayloadState } from './State.ts'\n\nexport const ValidatePayloadContext = createContextEx<ValidatePayloadState>()\n", "import { useContextEx } from '@ariestools/sdk-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 { isDefined } from '@ariestools/sdk'\nimport { OpenInNew as OpenInNewIcon } from '@mui/icons-material'\nimport type { MenuItemProps } from '@mui/material'\nimport {\n ListItemIcon, ListItemText, MenuItem,\n} from '@mui/material'\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 { isTruthy } from '@ariestools/sdk'\nimport { FlexGrowRow } from '@ariestools/sdk-react/flexbox'\nimport { CardContent } from '@mui/material'\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 type { SelectExProps } from '@ariestools/sdk-react/select'\nimport { SelectEx } from '@ariestools/sdk-react/select'\nimport { MenuItem } from '@mui/material'\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')}\n onChange={(event) => {\n setListMode?.(event.target.value)\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 type { SelectExProps } from '@ariestools/sdk-react/select'\nimport { SelectEx } from '@ariestools/sdk-react/select'\nimport { MenuItem } from '@mui/material'\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 '@ariestools/sdk-react/error'\nimport type { FlexBoxProps } from '@ariestools/sdk-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 { ErrorAlert, ErrorRender } from '@ariestools/sdk-react/error'\nimport type { CardProps } from '@mui/material'\nimport type { ModuleError } from '@xyo-network/sdk'\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 { isDefined } from '@ariestools/sdk'\nimport type { AlertProps, CardProps } from '@mui/material'\nimport {\n Alert, AlertTitle, Card, CardContent, Typography,\n} from '@mui/material'\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"],
5
+ "mappings": ";AAAA,SAAS,qBAAqB;AAM9B;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAEP,SAAS,YAAY;AAqBjB,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,aAAAA,kBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,WAAW,mBAAmB;AAEvC;AAAA,EACE;AAAA,EAAQ;AAAA,EAAY,QAAAC;AAAA,OACf;AACP,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;AAEtF,QAAM,QAAQ,QAAQ,OAAO;AAAA,IAC3B;AAAA,IACA;AAAA,IACA;AAAA,IACA,UAAU;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAA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AAA,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;",
6
+ "names": ["isDefined", "Chip", "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", "SelectEx", "MenuItem", "jsx", "SelectEx", "MenuItem", "jsx", "jsxs", "useListMode", "jsx", "Fragment", "jsx", "jsxs", "Alert", "Fragment", "jsx", "jsxs", "Alert", "jsx", "isDefined", "Alert", "AlertTitle", "Card", "CardContent", "Fragment", "jsx", "jsxs", "jsx", "jsx", "jsxs"]
7
7
  }
@@ -1,4 +1,4 @@
1
- import type { Payload } from '@xyo-network/sdk-js';
1
+ import type { Payload } from '@xyo-network/sdk';
2
2
  import type { EmbedPluginBase, EmbedPluginVisibilityConfig } from '../contexts/index.ts';
3
3
  export interface EmbedPluginProps extends EmbedPluginBase {
4
4
  hideElementsConfig?: EmbedPluginVisibilityConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"EmbedPluginProps.d.ts","sourceRoot":"","sources":["../../../src/types/EmbedPluginProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,KAAK,EAAE,eAAe,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAExF,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,kBAAkB,CAAC,EAAE,2BAA2B,CAAA;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC9B,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB"}
1
+ {"version":3,"file":"EmbedPluginProps.d.ts","sourceRoot":"","sources":["../../../src/types/EmbedPluginProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE/C,OAAO,KAAK,EAAE,eAAe,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAExF,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,kBAAkB,CAAC,EAAE,2BAA2B,CAAA;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC9B,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-embed",
3
- "version": "10.0.2",
3
+ "version": "10.0.4",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -41,138 +41,111 @@
41
41
  "README.md"
42
42
  ],
43
43
  "dependencies": {
44
- "@xyo-network/react-payload-plugin": "~10.0.2",
45
- "@xyo-network/react-shared": "~10.0.2"
44
+ "@xyo-network/react-payload-plugin": "~10.0.4",
45
+ "@xyo-network/react-shared": "~10.0.4"
46
46
  },
47
47
  "devDependencies": {
48
+ "@ariestools/sdk": "^7.0.5",
49
+ "@ariestools/sdk-react": "^10.0.2",
48
50
  "@bitauth/libauth": "~3.0.0",
49
- "@metamask/providers": "^22.1.1",
50
- "@mui/icons-material": "^9.1.1",
51
- "@mui/material": "^9.1.2",
52
- "@mui/system": "^9.1.2",
53
- "@mui/x-tree-view": "~9.6",
51
+ "@mui/icons-material": "^9.2.0",
52
+ "@mui/material": "^9.2.0",
53
+ "@mui/system": "^9.2.0",
54
+ "@mui/x-tree-view": "~9.8.0",
54
55
  "@noble/post-quantum": "~0.6.1",
55
56
  "@opentelemetry/api": "^1.9.1",
56
- "@opentelemetry/sdk-trace-base": "^2.8.0",
57
- "@react-spring/web": "~10.1.1",
57
+ "@opentelemetry/sdk-trace-base": "^2.9.0",
58
+ "@react-spring/web": "^10.1.2",
58
59
  "@scure/base": "~2.2.0",
59
60
  "@scure/bip39": "~2.2.0",
60
61
  "@storybook/react-vite": "~10.4.6",
61
62
  "@types/react": "^19.2.17",
62
- "@xylabs/eth-address": "^6.1.4",
63
- "@xylabs/geo": "^6.1.4",
64
- "@xylabs/pixel": "^6.1.4",
65
- "@xylabs/react-async-effect": "^9.1.2",
66
- "@xylabs/react-button": "^9.1.2",
67
- "@xylabs/react-error": "^9.1.2",
68
- "@xylabs/react-flexbox": "^9.1.2",
69
- "@xylabs/react-hooks": "^9.1.2",
70
- "@xylabs/react-identicon": "^9.1.2",
71
- "@xylabs/react-link": "^9.1.2",
72
- "@xylabs/react-promise": "^9.1.2",
73
- "@xylabs/react-quick-tip-button": "^9.1.2",
74
- "@xylabs/react-select": "^9.1.2",
75
- "@xylabs/react-shared": "^9.1.2",
76
- "@xylabs/react-theme": "^9.1.2",
77
- "@xylabs/sdk-js": "^6.1.4",
78
- "@xylabs/sdk-react": "~9.1.2",
79
- "@xylabs/threads": "^6.1.4",
80
- "@xylabs/toolchain": "~8.3.0",
81
- "@xylabs/tsconfig": "^8.3.0",
82
- "@xylabs/tsconfig-dom": "^8.3.0",
83
- "@xylabs/tsconfig-react": "~8.3.0",
84
- "@xyo-network/crypto-asset-payload-plugin": "~7.0",
85
- "@xyo-network/diviner-schema-list": "~7.0",
86
- "@xyo-network/diviner-schema-stats": "~7.0",
63
+ "@xylabs/eth-address": "^7.0.5",
64
+ "@xylabs/geo": "^7.0.5",
65
+ "@xylabs/pixel": "^7.0.5",
66
+ "@xylabs/threads": "^7.0.5",
67
+ "@xylabs/toolchain": "~8.5.15",
68
+ "@xylabs/tsconfig": "^8.5.15",
69
+ "@xylabs/tsconfig-dom": "^8.5.15",
70
+ "@xylabs/tsconfig-react": "~8.5.15",
71
+ "@xyo-network/crypto-asset-payload-plugin": "^7.0.2",
72
+ "@xyo-network/diviner-schema-list": "^7.0.7",
73
+ "@xyo-network/diviner-schema-stats": "^7.0.7",
87
74
  "@xyo-network/node-core-types": "~4.2.2",
88
- "@xyo-network/sdk-js": "~7.0",
89
- "@xyo-network/sdk-protocol-js": "~7.0",
75
+ "@xyo-network/sdk": "^7.0.7",
76
+ "@xyo-network/sdk-protocol": "^7.0.12",
90
77
  "@xyo-network/typeof": "~5.3.30",
91
78
  "ajv": "^8.20.0",
92
79
  "async-mutex": "^0.5.0",
93
80
  "axios": "^1.18.1",
94
- "clsx": "~2.1.1",
95
- "debug": "~4.4.3",
96
- "eslint": "^10.5.0",
81
+ "clsx": "^2.1.1",
82
+ "debug": "^4.4.3",
83
+ "eslint": "^10.6.0",
97
84
  "ethers": "^6.17.0",
98
85
  "hash-wasm": "~4.12.0",
99
86
  "idb": "^8.0.3",
100
87
  "jsonpath-plus": "^10.4.0",
101
88
  "lru-cache": "^11.5.1",
102
89
  "luxon": "^3.7.2",
103
- "md5": "~2.3.0",
104
- "numeral": "~2.0.6",
105
- "observable-fns": "~0.6.1",
106
- "query-string": "~9.4.0",
90
+ "md5": "^2.3.0",
91
+ "numeral": "^2.0.6",
92
+ "observable-fns": "^0.6.1",
93
+ "query-string": "^9.4.1",
107
94
  "react": "^19.2.7",
108
95
  "react-dom": "^19.2.7",
109
- "react-router-dom": "^7.18.0",
96
+ "react-router-dom": "^7.18.1",
110
97
  "storybook": "^10.4.6",
111
98
  "typescript": "^6.0.3",
112
- "viem": "^2.53.1",
113
- "vite": "^8.1.0",
114
- "webextension-polyfill": "^0.12.0",
99
+ "viem": "^2.54.2",
100
+ "vite": "^8.1.3",
115
101
  "zod": "^4.4.3",
116
- "zustand": "~5.0.14",
117
- "@xyo-network/react-crypto-market-uniswap-plugin": "~10.0.2",
118
- "@xyo-network/react-aggregate-price-plugin": "~10.0.2"
102
+ "zustand": "^5.0.14",
103
+ "@xyo-network/react-aggregate-price-plugin": "~10.0.4",
104
+ "@xyo-network/react-crypto-market-uniswap-plugin": "~10.0.4"
119
105
  },
120
106
  "peerDependencies": {
107
+ "@ariestools/sdk": "^7.0",
108
+ "@ariestools/sdk-react": "^10.0",
121
109
  "@bitauth/libauth": "~3.0",
122
- "@metamask/providers": "^22.1",
123
110
  "@mui/icons-material": "^9.0",
124
111
  "@mui/material": "^9.0",
125
112
  "@mui/system": "^9.0",
126
- "@mui/x-tree-view": "~9.6",
113
+ "@mui/x-tree-view": "~9.8",
127
114
  "@noble/post-quantum": "~0.6.1",
128
115
  "@opentelemetry/api": "^1.9",
129
116
  "@opentelemetry/sdk-trace-base": "^2.7",
130
- "@react-spring/web": "~10.1",
117
+ "@react-spring/web": "^10.1",
131
118
  "@scure/base": "~2.2",
132
119
  "@scure/bip39": "~2.2",
133
- "@xylabs/eth-address": "^6.1.0",
134
- "@xylabs/geo": "^6.0",
135
- "@xylabs/pixel": "^6.1",
136
- "@xylabs/react-async-effect": "^9.1",
137
- "@xylabs/react-button": "^9.1",
138
- "@xylabs/react-error": "^9.1",
139
- "@xylabs/react-flexbox": "^9.1",
140
- "@xylabs/react-hooks": "^9.1",
141
- "@xylabs/react-identicon": "^9.1",
142
- "@xylabs/react-link": "^9.1",
143
- "@xylabs/react-promise": "^9.1",
144
- "@xylabs/react-quick-tip-button": "^9.1",
145
- "@xylabs/react-select": "^9.1",
146
- "@xylabs/react-shared": "^9.1",
147
- "@xylabs/react-theme": "^9.1",
148
- "@xylabs/sdk-js": "^6.0",
149
- "@xylabs/sdk-react": "^9.1",
150
- "@xylabs/threads": "^6.0",
120
+ "@types/react": "^19.2",
121
+ "@xylabs/eth-address": "^7.0",
122
+ "@xylabs/geo": "^7.0",
123
+ "@xylabs/pixel": "^7.0",
124
+ "@xylabs/threads": "^7.0",
151
125
  "@xyo-network/diviner-schema-list": "^7.0",
152
126
  "@xyo-network/diviner-schema-stats": "^7.0",
153
127
  "@xyo-network/node-core-types": "~4.2",
154
- "@xyo-network/sdk-js": "^7.0",
155
- "@xyo-network/sdk-protocol-js": "^7.0",
128
+ "@xyo-network/sdk": "*",
129
+ "@xyo-network/sdk-protocol": "^7.0",
156
130
  "@xyo-network/typeof": "~5.3",
157
131
  "ajv": "^8.20",
158
132
  "async-mutex": "^0.5",
159
- "clsx": "~2.1",
160
- "debug": "~4.4",
133
+ "clsx": "^2.1",
134
+ "debug": "^4.4",
161
135
  "ethers": "^6.16",
162
136
  "hash-wasm": "~4.12",
163
137
  "idb": "^8.0",
164
138
  "lru-cache": "^11.3",
165
- "md5": "~2.3",
166
- "numeral": "~2.0",
139
+ "md5": "^2.3",
140
+ "numeral": "^2.0",
167
141
  "observable-fns": "~0.6",
168
- "query-string": "~9.4",
142
+ "query-string": "^9.4",
169
143
  "react": "^19.2",
170
144
  "react-dom": "^19.2",
171
145
  "react-router-dom": "^7.15",
172
146
  "viem": "^2.48",
173
- "webextension-polyfill": "^0.12",
174
147
  "zod": "^4.4",
175
- "zustand": "~5.0"
148
+ "zustand": "^5.0"
176
149
  },
177
150
  "publishConfig": {
178
151
  "access": "public"