@xyo-network/react-embed 2.63.1 → 2.64.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/EmbedPlugin.d.mts.map +1 -0
- package/dist/components/EmbedPlugin.d.ts +5 -0
- package/dist/components/EmbedPlugin.d.ts.map +1 -0
- package/dist/components/EmbedResolver.d.mts.map +1 -0
- package/dist/components/EmbedResolver.d.ts +4 -0
- package/dist/components/EmbedResolver.d.ts.map +1 -0
- package/dist/components/controls/EmbedFormControl.d.mts.map +1 -0
- package/dist/components/controls/EmbedFormControl.d.ts +10 -0
- package/dist/components/controls/EmbedFormControl.d.ts.map +1 -0
- package/dist/components/controls/ListModeSelect.d.mts.map +1 -0
- package/dist/components/controls/ListModeSelect.d.ts +6 -0
- package/dist/components/controls/ListModeSelect.d.ts.map +1 -0
- package/dist/components/controls/RenderSelect.d.mts.map +1 -0
- package/dist/components/controls/RenderSelect.d.ts +4 -0
- package/dist/components/controls/RenderSelect.d.ts.map +1 -0
- package/dist/components/controls/index.d.mts.map +1 -0
- package/dist/{esm/components/controls/index.js → components/controls/index.d.ts} +1 -1
- package/dist/components/controls/index.d.ts.map +1 -0
- package/dist/components/embed-card/EmbedCardResolver.d.mts.map +1 -0
- package/dist/components/embed-card/EmbedCardResolver.d.ts +5 -0
- package/dist/components/embed-card/EmbedCardResolver.d.ts.map +1 -0
- package/dist/components/embed-card/EmbedPluginCard.d.mts.map +1 -0
- package/dist/components/embed-card/EmbedPluginCard.d.ts +11 -0
- package/dist/components/embed-card/EmbedPluginCard.d.ts.map +1 -0
- package/dist/components/embed-card/card/BusyCard.d.mts.map +1 -0
- package/dist/components/embed-card/card/BusyCard.d.ts +11 -0
- package/dist/components/embed-card/card/BusyCard.d.ts.map +1 -0
- package/dist/components/embed-card/card/EmbedCardHeader.d.mts.map +1 -0
- package/dist/components/embed-card/card/EmbedCardHeader.d.ts +4 -0
- package/dist/components/embed-card/card/EmbedCardHeader.d.ts.map +1 -0
- package/dist/components/embed-card/card/EmbedPluginCard.d.mts.map +1 -0
- package/dist/components/embed-card/card/EmbedPluginCard.d.ts +4 -0
- package/dist/components/embed-card/card/EmbedPluginCard.d.ts.map +1 -0
- package/dist/components/embed-card/card/index.d.mts.map +1 -0
- package/dist/{esm/components/embed-card/card/index.js → components/embed-card/card/index.d.ts} +1 -1
- package/dist/components/embed-card/card/index.d.ts.map +1 -0
- package/dist/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.mts.map +1 -0
- package/dist/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts +10 -0
- package/dist/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts.map +1 -0
- package/dist/components/embed-card/error-handling/EmbedErrorCard.d.mts.map +1 -0
- package/dist/components/embed-card/error-handling/EmbedErrorCard.d.ts +15 -0
- package/dist/components/embed-card/error-handling/EmbedErrorCard.d.ts.map +1 -0
- package/dist/components/embed-card/error-handling/index.d.mts.map +1 -0
- package/dist/{esm/components/embed-card/error-handling/index.js → components/embed-card/error-handling/index.d.ts} +1 -1
- package/dist/components/embed-card/error-handling/index.d.ts.map +1 -0
- package/dist/components/embed-card/index.d.mts.map +1 -0
- package/dist/{esm/components/embed-card/index.js → components/embed-card/index.d.ts} +1 -1
- package/dist/components/embed-card/index.d.ts.map +1 -0
- package/dist/components/embed-card/menu/EmbedMenu.d.mts.map +1 -0
- package/dist/components/embed-card/menu/EmbedMenu.d.ts +4 -0
- package/dist/components/embed-card/menu/EmbedMenu.d.ts.map +1 -0
- package/dist/components/embed-card/menu/JsonMenuItem.d.mts.map +1 -0
- package/dist/components/embed-card/menu/JsonMenuItem.d.ts +4 -0
- package/dist/components/embed-card/menu/JsonMenuItem.d.ts.map +1 -0
- package/dist/components/embed-card/menu/index.d.mts.map +1 -0
- package/dist/components/embed-card/menu/index.d.ts +2 -0
- package/dist/components/embed-card/menu/index.d.ts.map +1 -0
- package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.mts +6 -0
- package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.mts.map +1 -0
- package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.ts +6 -0
- package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.ts.map +1 -0
- package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.mts +11 -0
- package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.mts.map +1 -0
- package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.ts +11 -0
- package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.ts.map +1 -0
- package/dist/components/embed-plugin-stories/storyPayload.d.mts.map +1 -0
- package/dist/components/embed-plugin-stories/storyPayload.d.ts +126 -0
- package/dist/components/embed-plugin-stories/storyPayload.d.ts.map +1 -0
- package/dist/components/embed-plugin-stories/storyShared.d.mts.map +1 -0
- package/dist/components/embed-plugin-stories/storyShared.d.ts +5 -0
- package/dist/components/embed-plugin-stories/storyShared.d.ts.map +1 -0
- package/dist/components/index.d.mts.map +1 -0
- package/dist/{esm/components/index.js → components/index.d.ts} +1 -1
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/validation-alerts/ValidatePayload.d.mts.map +1 -0
- package/dist/components/validation-alerts/ValidatePayload.d.ts +5 -0
- package/dist/components/validation-alerts/ValidatePayload.d.ts.map +1 -0
- package/dist/components/validation-alerts/ValidatePlugins.d.mts.map +1 -0
- package/dist/components/validation-alerts/ValidatePlugins.d.ts +5 -0
- package/dist/components/validation-alerts/ValidatePlugins.d.ts.map +1 -0
- package/dist/components/validation-alerts/index.d.mts.map +1 -0
- package/dist/{esm/components/validation-alerts/index.js → components/validation-alerts/index.d.ts} +1 -1
- package/dist/components/validation-alerts/index.d.ts.map +1 -0
- package/dist/contexts/EmbedPluginContext/Context.d.mts.map +1 -0
- package/dist/contexts/EmbedPluginContext/Context.d.ts +4 -0
- package/dist/contexts/EmbedPluginContext/Context.d.ts.map +1 -0
- package/dist/contexts/EmbedPluginContext/Provider.d.mts.map +1 -0
- package/dist/contexts/EmbedPluginContext/Provider.d.ts +7 -0
- package/dist/contexts/EmbedPluginContext/Provider.d.ts.map +1 -0
- package/dist/contexts/EmbedPluginContext/State.d.mts.map +1 -0
- package/dist/contexts/EmbedPluginContext/State.d.ts +33 -0
- package/dist/contexts/EmbedPluginContext/State.d.ts.map +1 -0
- package/dist/contexts/EmbedPluginContext/index.d.mts.map +1 -0
- package/dist/contexts/EmbedPluginContext/index.d.ts.map +1 -0
- package/dist/contexts/EmbedPluginContext/use.d.mts.map +1 -0
- package/dist/contexts/EmbedPluginContext/use.d.ts +2 -0
- package/dist/contexts/EmbedPluginContext/use.d.ts.map +1 -0
- package/dist/contexts/RefreshPayloadContext/Context.d.mts.map +1 -0
- package/dist/contexts/RefreshPayloadContext/Context.d.ts +4 -0
- package/dist/contexts/RefreshPayloadContext/Context.d.ts.map +1 -0
- package/dist/contexts/RefreshPayloadContext/Provider.d.mts.map +1 -0
- package/dist/contexts/RefreshPayloadContext/Provider.d.ts +8 -0
- package/dist/contexts/RefreshPayloadContext/Provider.d.ts.map +1 -0
- package/dist/contexts/RefreshPayloadContext/State.d.mts.map +1 -0
- package/dist/contexts/RefreshPayloadContext/State.d.ts +8 -0
- package/dist/contexts/RefreshPayloadContext/State.d.ts.map +1 -0
- package/dist/contexts/RefreshPayloadContext/index.d.mts.map +1 -0
- package/dist/contexts/RefreshPayloadContext/index.d.ts.map +1 -0
- package/dist/contexts/RefreshPayloadContext/use.d.mts.map +1 -0
- package/dist/contexts/RefreshPayloadContext/use.d.ts +2 -0
- package/dist/contexts/RefreshPayloadContext/use.d.ts.map +1 -0
- package/dist/contexts/ResolvePayloadContext/Context.d.mts.map +1 -0
- package/dist/contexts/ResolvePayloadContext/Context.d.ts +4 -0
- package/dist/contexts/ResolvePayloadContext/Context.d.ts.map +1 -0
- package/dist/contexts/ResolvePayloadContext/Provider.d.mts.map +1 -0
- package/dist/contexts/ResolvePayloadContext/Provider.d.ts +6 -0
- package/dist/contexts/ResolvePayloadContext/Provider.d.ts.map +1 -0
- package/dist/contexts/ResolvePayloadContext/State.d.mts.map +1 -0
- package/dist/contexts/ResolvePayloadContext/State.d.ts +13 -0
- package/dist/contexts/ResolvePayloadContext/State.d.ts.map +1 -0
- package/dist/{esm/contexts/EmbedPluginContext/index.js → contexts/ResolvePayloadContext/index.d.mts} +1 -1
- package/dist/contexts/ResolvePayloadContext/index.d.mts.map +1 -0
- package/dist/{esm/contexts/ResolvePayloadContext/index.js → contexts/ResolvePayloadContext/index.d.ts} +1 -1
- package/dist/{types/contexts/EmbedPluginContext → contexts/ResolvePayloadContext}/index.d.ts.map +1 -1
- package/dist/contexts/ResolvePayloadContext/use.d.mts.map +1 -0
- package/dist/contexts/ResolvePayloadContext/use.d.ts +2 -0
- package/dist/contexts/ResolvePayloadContext/use.d.ts.map +1 -0
- package/dist/contexts/ValidatePayloadContext/Context.d.mts.map +1 -0
- package/dist/contexts/ValidatePayloadContext/Context.d.ts +4 -0
- package/dist/contexts/ValidatePayloadContext/Context.d.ts.map +1 -0
- package/dist/contexts/ValidatePayloadContext/Provider.d.mts.map +1 -0
- package/dist/contexts/ValidatePayloadContext/Provider.d.ts +7 -0
- package/dist/contexts/ValidatePayloadContext/Provider.d.ts.map +1 -0
- package/dist/contexts/ValidatePayloadContext/Provider.stories.d.mts +15 -0
- package/dist/contexts/ValidatePayloadContext/Provider.stories.d.mts.map +1 -0
- package/dist/contexts/ValidatePayloadContext/Provider.stories.d.ts +15 -0
- package/dist/contexts/ValidatePayloadContext/Provider.stories.d.ts.map +1 -0
- package/dist/contexts/ValidatePayloadContext/State.d.mts.map +1 -0
- package/dist/contexts/ValidatePayloadContext/State.d.ts +7 -0
- package/dist/contexts/ValidatePayloadContext/State.d.ts.map +1 -0
- package/dist/{esm/contexts/RefreshPayloadContext/index.js → contexts/ValidatePayloadContext/index.d.mts} +1 -1
- package/dist/contexts/ValidatePayloadContext/index.d.mts.map +1 -0
- package/dist/{esm/contexts/ValidatePayloadContext/index.js → contexts/ValidatePayloadContext/index.d.ts} +1 -1
- package/dist/contexts/ValidatePayloadContext/index.d.ts.map +1 -0
- package/dist/contexts/ValidatePayloadContext/use.d.mts.map +1 -0
- package/dist/contexts/ValidatePayloadContext/use.d.ts +2 -0
- package/dist/contexts/ValidatePayloadContext/use.d.ts.map +1 -0
- package/dist/contexts/index.d.mts.map +1 -0
- package/dist/{esm/contexts/index.js → contexts/index.d.ts} +1 -1
- package/dist/contexts/index.d.ts.map +1 -0
- package/dist/{esm/index.js → index.d.mts} +1 -1
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +533 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +493 -0
- package/dist/index.mjs.map +1 -0
- package/dist/types/EmbedPluginProps.d.mts.map +1 -0
- package/dist/types/EmbedPluginProps.d.ts +10 -0
- package/dist/types/EmbedPluginProps.d.ts.map +1 -0
- package/dist/types/index.d.mts.map +1 -0
- package/dist/types/index.d.ts +1 -3
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +35 -26
- package/src/components/embed-card/card/EmbedCardHeader.tsx +1 -1
- package/src/components/embed-card/menu/EmbedMenu.tsx +1 -1
- package/src/components/embed-card/menu/JsonMenuItem.tsx +1 -1
- package/dist/cjs/components/EmbedPlugin.js +0 -19
- package/dist/cjs/components/EmbedPlugin.js.map +0 -1
- package/dist/cjs/components/EmbedResolver.js +0 -12
- package/dist/cjs/components/EmbedResolver.js.map +0 -1
- package/dist/cjs/components/controls/EmbedFormControl.js +0 -12
- package/dist/cjs/components/controls/EmbedFormControl.js.map +0 -1
- package/dist/cjs/components/controls/ListModeSelect.js +0 -21
- package/dist/cjs/components/controls/ListModeSelect.js.map +0 -1
- package/dist/cjs/components/controls/RenderSelect.js +0 -15
- package/dist/cjs/components/controls/RenderSelect.js.map +0 -1
- package/dist/cjs/components/controls/index.js +0 -7
- package/dist/cjs/components/controls/index.js.map +0 -1
- package/dist/cjs/components/embed-card/EmbedCardResolver.js +0 -19
- package/dist/cjs/components/embed-card/EmbedCardResolver.js.map +0 -1
- package/dist/cjs/components/embed-card/EmbedPluginCard.js +0 -35
- package/dist/cjs/components/embed-card/EmbedPluginCard.js.map +0 -1
- package/dist/cjs/components/embed-card/card/BusyCard.js +0 -15
- package/dist/cjs/components/embed-card/card/BusyCard.js.map +0 -1
- package/dist/cjs/components/embed-card/card/EmbedCardHeader.js +0 -21
- package/dist/cjs/components/embed-card/card/EmbedCardHeader.js.map +0 -1
- package/dist/cjs/components/embed-card/card/EmbedPluginCard.js +0 -23
- package/dist/cjs/components/embed-card/card/EmbedPluginCard.js.map +0 -1
- package/dist/cjs/components/embed-card/card/index.js +0 -7
- package/dist/cjs/components/embed-card/card/index.js.map +0 -1
- package/dist/cjs/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +0 -17
- package/dist/cjs/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +0 -1
- package/dist/cjs/components/embed-card/error-handling/EmbedErrorCard.js +0 -16
- package/dist/cjs/components/embed-card/error-handling/EmbedErrorCard.js.map +0 -1
- package/dist/cjs/components/embed-card/error-handling/index.js +0 -6
- package/dist/cjs/components/embed-card/error-handling/index.js.map +0 -1
- package/dist/cjs/components/embed-card/index.js +0 -6
- package/dist/cjs/components/embed-card/index.js.map +0 -1
- package/dist/cjs/components/embed-card/menu/EmbedMenu.js +0 -23
- package/dist/cjs/components/embed-card/menu/EmbedMenu.js.map +0 -1
- package/dist/cjs/components/embed-card/menu/JsonMenuItem.js +0 -14
- package/dist/cjs/components/embed-card/menu/JsonMenuItem.js.map +0 -1
- package/dist/cjs/components/embed-card/menu/index.js +0 -5
- package/dist/cjs/components/embed-card/menu/index.js.map +0 -1
- package/dist/cjs/components/embed-plugin-stories/storyPayload.js +0 -25
- package/dist/cjs/components/embed-plugin-stories/storyPayload.js.map +0 -1
- package/dist/cjs/components/embed-plugin-stories/storyShared.js +0 -20
- package/dist/cjs/components/embed-plugin-stories/storyShared.js.map +0 -1
- package/dist/cjs/components/index.js +0 -6
- package/dist/cjs/components/index.js.map +0 -1
- package/dist/cjs/components/validation-alerts/ValidatePayload.js +0 -17
- package/dist/cjs/components/validation-alerts/ValidatePayload.js.map +0 -1
- package/dist/cjs/components/validation-alerts/ValidatePlugins.js +0 -18
- package/dist/cjs/components/validation-alerts/ValidatePlugins.js.map +0 -1
- package/dist/cjs/components/validation-alerts/index.js +0 -6
- package/dist/cjs/components/validation-alerts/index.js.map +0 -1
- package/dist/cjs/contexts/EmbedPluginContext/Context.js +0 -6
- package/dist/cjs/contexts/EmbedPluginContext/Context.js.map +0 -1
- package/dist/cjs/contexts/EmbedPluginContext/Provider.js +0 -24
- package/dist/cjs/contexts/EmbedPluginContext/Provider.js.map +0 -1
- package/dist/cjs/contexts/EmbedPluginContext/State.js +0 -3
- package/dist/cjs/contexts/EmbedPluginContext/State.js.map +0 -1
- package/dist/cjs/contexts/EmbedPluginContext/index.js +0 -8
- package/dist/cjs/contexts/EmbedPluginContext/index.js.map +0 -1
- package/dist/cjs/contexts/EmbedPluginContext/use.js +0 -8
- package/dist/cjs/contexts/EmbedPluginContext/use.js.map +0 -1
- package/dist/cjs/contexts/RefreshPayloadContext/Context.js +0 -6
- package/dist/cjs/contexts/RefreshPayloadContext/Context.js.map +0 -1
- package/dist/cjs/contexts/RefreshPayloadContext/Provider.js +0 -12
- package/dist/cjs/contexts/RefreshPayloadContext/Provider.js.map +0 -1
- package/dist/cjs/contexts/RefreshPayloadContext/State.js +0 -3
- package/dist/cjs/contexts/RefreshPayloadContext/State.js.map +0 -1
- package/dist/cjs/contexts/RefreshPayloadContext/index.js +0 -7
- package/dist/cjs/contexts/RefreshPayloadContext/index.js.map +0 -1
- package/dist/cjs/contexts/RefreshPayloadContext/use.js +0 -8
- package/dist/cjs/contexts/RefreshPayloadContext/use.js.map +0 -1
- package/dist/cjs/contexts/ResolvePayloadContext/Context.js +0 -6
- package/dist/cjs/contexts/ResolvePayloadContext/Context.js.map +0 -1
- package/dist/cjs/contexts/ResolvePayloadContext/Provider.js +0 -56
- package/dist/cjs/contexts/ResolvePayloadContext/Provider.js.map +0 -1
- package/dist/cjs/contexts/ResolvePayloadContext/State.js +0 -3
- package/dist/cjs/contexts/ResolvePayloadContext/State.js.map +0 -1
- package/dist/cjs/contexts/ResolvePayloadContext/index.js +0 -8
- package/dist/cjs/contexts/ResolvePayloadContext/index.js.map +0 -1
- package/dist/cjs/contexts/ResolvePayloadContext/use.js +0 -8
- package/dist/cjs/contexts/ResolvePayloadContext/use.js.map +0 -1
- package/dist/cjs/contexts/ValidatePayloadContext/Context.js +0 -6
- package/dist/cjs/contexts/ValidatePayloadContext/Context.js.map +0 -1
- package/dist/cjs/contexts/ValidatePayloadContext/Provider.js +0 -32
- package/dist/cjs/contexts/ValidatePayloadContext/Provider.js.map +0 -1
- package/dist/cjs/contexts/ValidatePayloadContext/State.js +0 -3
- package/dist/cjs/contexts/ValidatePayloadContext/State.js.map +0 -1
- package/dist/cjs/contexts/ValidatePayloadContext/index.js +0 -7
- package/dist/cjs/contexts/ValidatePayloadContext/index.js.map +0 -1
- package/dist/cjs/contexts/ValidatePayloadContext/use.js +0 -8
- package/dist/cjs/contexts/ValidatePayloadContext/use.js.map +0 -1
- package/dist/cjs/contexts/index.js +0 -8
- package/dist/cjs/contexts/index.js.map +0 -1
- package/dist/cjs/index.js +0 -7
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/types/EmbedPluginProps.js +0 -3
- package/dist/cjs/types/EmbedPluginProps.js.map +0 -1
- package/dist/cjs/types/index.js +0 -5
- package/dist/cjs/types/index.js.map +0 -1
- package/dist/docs.json +0 -4855
- package/dist/esm/components/EmbedPlugin.js +0 -15
- package/dist/esm/components/EmbedPlugin.js.map +0 -1
- package/dist/esm/components/EmbedResolver.js +0 -8
- package/dist/esm/components/EmbedResolver.js.map +0 -1
- package/dist/esm/components/controls/EmbedFormControl.js +0 -6
- package/dist/esm/components/controls/EmbedFormControl.js.map +0 -1
- package/dist/esm/components/controls/ListModeSelect.js +0 -16
- package/dist/esm/components/controls/ListModeSelect.js.map +0 -1
- package/dist/esm/components/controls/RenderSelect.js +0 -11
- package/dist/esm/components/controls/RenderSelect.js.map +0 -1
- package/dist/esm/components/controls/index.js.map +0 -1
- package/dist/esm/components/embed-card/EmbedCardResolver.js +0 -13
- package/dist/esm/components/embed-card/EmbedCardResolver.js.map +0 -1
- package/dist/esm/components/embed-card/EmbedPluginCard.js +0 -28
- package/dist/esm/components/embed-card/EmbedPluginCard.js.map +0 -1
- package/dist/esm/components/embed-card/card/BusyCard.js +0 -9
- package/dist/esm/components/embed-card/card/BusyCard.js.map +0 -1
- package/dist/esm/components/embed-card/card/EmbedCardHeader.js +0 -15
- package/dist/esm/components/embed-card/card/EmbedCardHeader.js.map +0 -1
- package/dist/esm/components/embed-card/card/EmbedPluginCard.js +0 -16
- package/dist/esm/components/embed-card/card/EmbedPluginCard.js.map +0 -1
- package/dist/esm/components/embed-card/card/index.js.map +0 -1
- package/dist/esm/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +0 -10
- package/dist/esm/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +0 -1
- package/dist/esm/components/embed-card/error-handling/EmbedErrorCard.js +0 -11
- package/dist/esm/components/embed-card/error-handling/EmbedErrorCard.js.map +0 -1
- package/dist/esm/components/embed-card/error-handling/index.js.map +0 -1
- package/dist/esm/components/embed-card/index.js.map +0 -1
- package/dist/esm/components/embed-card/menu/EmbedMenu.js +0 -18
- package/dist/esm/components/embed-card/menu/EmbedMenu.js.map +0 -1
- package/dist/esm/components/embed-card/menu/JsonMenuItem.js +0 -9
- package/dist/esm/components/embed-card/menu/JsonMenuItem.js.map +0 -1
- package/dist/esm/components/embed-card/menu/index.js +0 -2
- package/dist/esm/components/embed-card/menu/index.js.map +0 -1
- package/dist/esm/components/embed-plugin-stories/storyPayload.js +0 -22
- package/dist/esm/components/embed-plugin-stories/storyPayload.js.map +0 -1
- package/dist/esm/components/embed-plugin-stories/storyShared.js +0 -16
- package/dist/esm/components/embed-plugin-stories/storyShared.js.map +0 -1
- package/dist/esm/components/index.js.map +0 -1
- package/dist/esm/components/validation-alerts/ValidatePayload.js +0 -11
- package/dist/esm/components/validation-alerts/ValidatePayload.js.map +0 -1
- package/dist/esm/components/validation-alerts/ValidatePlugins.js +0 -12
- package/dist/esm/components/validation-alerts/ValidatePlugins.js.map +0 -1
- package/dist/esm/components/validation-alerts/index.js.map +0 -1
- package/dist/esm/contexts/EmbedPluginContext/Context.js +0 -3
- package/dist/esm/contexts/EmbedPluginContext/Context.js.map +0 -1
- package/dist/esm/contexts/EmbedPluginContext/Provider.js +0 -20
- package/dist/esm/contexts/EmbedPluginContext/Provider.js.map +0 -1
- package/dist/esm/contexts/EmbedPluginContext/State.js +0 -2
- package/dist/esm/contexts/EmbedPluginContext/State.js.map +0 -1
- package/dist/esm/contexts/EmbedPluginContext/index.js.map +0 -1
- package/dist/esm/contexts/EmbedPluginContext/use.js +0 -4
- package/dist/esm/contexts/EmbedPluginContext/use.js.map +0 -1
- package/dist/esm/contexts/RefreshPayloadContext/Context.js +0 -3
- package/dist/esm/contexts/RefreshPayloadContext/Context.js.map +0 -1
- package/dist/esm/contexts/RefreshPayloadContext/Provider.js +0 -8
- package/dist/esm/contexts/RefreshPayloadContext/Provider.js.map +0 -1
- package/dist/esm/contexts/RefreshPayloadContext/State.js +0 -2
- package/dist/esm/contexts/RefreshPayloadContext/State.js.map +0 -1
- package/dist/esm/contexts/RefreshPayloadContext/index.js.map +0 -1
- package/dist/esm/contexts/RefreshPayloadContext/use.js +0 -4
- package/dist/esm/contexts/RefreshPayloadContext/use.js.map +0 -1
- package/dist/esm/contexts/ResolvePayloadContext/Context.js +0 -3
- package/dist/esm/contexts/ResolvePayloadContext/Context.js.map +0 -1
- package/dist/esm/contexts/ResolvePayloadContext/Provider.js +0 -51
- package/dist/esm/contexts/ResolvePayloadContext/Provider.js.map +0 -1
- package/dist/esm/contexts/ResolvePayloadContext/State.js +0 -2
- package/dist/esm/contexts/ResolvePayloadContext/State.js.map +0 -1
- package/dist/esm/contexts/ResolvePayloadContext/index.js.map +0 -1
- package/dist/esm/contexts/ResolvePayloadContext/use.js +0 -4
- package/dist/esm/contexts/ResolvePayloadContext/use.js.map +0 -1
- package/dist/esm/contexts/ValidatePayloadContext/Context.js +0 -3
- package/dist/esm/contexts/ValidatePayloadContext/Context.js.map +0 -1
- package/dist/esm/contexts/ValidatePayloadContext/Provider.js +0 -27
- package/dist/esm/contexts/ValidatePayloadContext/Provider.js.map +0 -1
- package/dist/esm/contexts/ValidatePayloadContext/State.js +0 -2
- package/dist/esm/contexts/ValidatePayloadContext/State.js.map +0 -1
- package/dist/esm/contexts/ValidatePayloadContext/index.js.map +0 -1
- package/dist/esm/contexts/ValidatePayloadContext/use.js +0 -4
- package/dist/esm/contexts/ValidatePayloadContext/use.js.map +0 -1
- package/dist/esm/contexts/index.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/types/EmbedPluginProps.js +0 -2
- package/dist/esm/types/EmbedPluginProps.js.map +0 -1
- package/dist/esm/types/index.js +0 -2
- package/dist/esm/types/index.js.map +0 -1
- package/dist/types/components/EmbedPlugin.d.ts.map +0 -1
- package/dist/types/components/EmbedResolver.d.ts.map +0 -1
- package/dist/types/components/controls/EmbedFormControl.d.ts.map +0 -1
- package/dist/types/components/controls/ListModeSelect.d.ts.map +0 -1
- package/dist/types/components/controls/RenderSelect.d.ts.map +0 -1
- package/dist/types/components/controls/index.d.ts.map +0 -1
- package/dist/types/components/embed-card/EmbedCardResolver.d.ts.map +0 -1
- package/dist/types/components/embed-card/EmbedPluginCard.d.ts.map +0 -1
- package/dist/types/components/embed-card/card/BusyCard.d.ts.map +0 -1
- package/dist/types/components/embed-card/card/EmbedCardHeader.d.ts.map +0 -1
- package/dist/types/components/embed-card/card/EmbedPluginCard.d.ts.map +0 -1
- package/dist/types/components/embed-card/card/index.d.ts.map +0 -1
- package/dist/types/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts.map +0 -1
- package/dist/types/components/embed-card/error-handling/EmbedErrorCard.d.ts.map +0 -1
- package/dist/types/components/embed-card/error-handling/index.d.ts.map +0 -1
- package/dist/types/components/embed-card/index.d.ts.map +0 -1
- package/dist/types/components/embed-card/menu/EmbedMenu.d.ts.map +0 -1
- package/dist/types/components/embed-card/menu/JsonMenuItem.d.ts.map +0 -1
- package/dist/types/components/embed-card/menu/index.d.ts.map +0 -1
- package/dist/types/components/embed-plugin-stories/storyPayload.d.ts.map +0 -1
- package/dist/types/components/embed-plugin-stories/storyShared.d.ts.map +0 -1
- package/dist/types/components/index.d.ts.map +0 -1
- package/dist/types/components/validation-alerts/ValidatePayload.d.ts.map +0 -1
- package/dist/types/components/validation-alerts/ValidatePlugins.d.ts.map +0 -1
- package/dist/types/components/validation-alerts/index.d.ts.map +0 -1
- package/dist/types/contexts/EmbedPluginContext/Context.d.ts.map +0 -1
- package/dist/types/contexts/EmbedPluginContext/Provider.d.ts.map +0 -1
- package/dist/types/contexts/EmbedPluginContext/State.d.ts.map +0 -1
- package/dist/types/contexts/EmbedPluginContext/use.d.ts.map +0 -1
- package/dist/types/contexts/RefreshPayloadContext/Context.d.ts.map +0 -1
- package/dist/types/contexts/RefreshPayloadContext/Provider.d.ts.map +0 -1
- package/dist/types/contexts/RefreshPayloadContext/State.d.ts.map +0 -1
- package/dist/types/contexts/RefreshPayloadContext/index.d.ts.map +0 -1
- package/dist/types/contexts/RefreshPayloadContext/use.d.ts.map +0 -1
- package/dist/types/contexts/ResolvePayloadContext/Context.d.ts.map +0 -1
- package/dist/types/contexts/ResolvePayloadContext/Provider.d.ts.map +0 -1
- package/dist/types/contexts/ResolvePayloadContext/State.d.ts.map +0 -1
- package/dist/types/contexts/ResolvePayloadContext/index.d.ts.map +0 -1
- package/dist/types/contexts/ResolvePayloadContext/use.d.ts.map +0 -1
- package/dist/types/contexts/ValidatePayloadContext/Context.d.ts.map +0 -1
- package/dist/types/contexts/ValidatePayloadContext/Provider.d.ts.map +0 -1
- package/dist/types/contexts/ValidatePayloadContext/State.d.ts.map +0 -1
- package/dist/types/contexts/ValidatePayloadContext/index.d.ts.map +0 -1
- package/dist/types/contexts/ValidatePayloadContext/use.d.ts.map +0 -1
- package/dist/types/contexts/index.d.ts.map +0 -1
- package/dist/types/types/EmbedPluginProps.d.ts.map +0 -1
- package/dist/types/types/index.d.ts.map +0 -1
- /package/dist/{types/components/EmbedPlugin.d.ts → components/EmbedPlugin.d.mts} +0 -0
- /package/dist/{types/components/EmbedResolver.d.ts → components/EmbedResolver.d.mts} +0 -0
- /package/dist/{types/components/controls/EmbedFormControl.d.ts → components/controls/EmbedFormControl.d.mts} +0 -0
- /package/dist/{types/components/controls/ListModeSelect.d.ts → components/controls/ListModeSelect.d.mts} +0 -0
- /package/dist/{types/components/controls/RenderSelect.d.ts → components/controls/RenderSelect.d.mts} +0 -0
- /package/dist/{types/components/controls/index.d.ts → components/controls/index.d.mts} +0 -0
- /package/dist/{types/components/embed-card/EmbedCardResolver.d.ts → components/embed-card/EmbedCardResolver.d.mts} +0 -0
- /package/dist/{types/components/embed-card/EmbedPluginCard.d.ts → components/embed-card/EmbedPluginCard.d.mts} +0 -0
- /package/dist/{types/components/embed-card/card/BusyCard.d.ts → components/embed-card/card/BusyCard.d.mts} +0 -0
- /package/dist/{types/components/embed-card/card/EmbedCardHeader.d.ts → components/embed-card/card/EmbedCardHeader.d.mts} +0 -0
- /package/dist/{types/components/embed-card/card/EmbedPluginCard.d.ts → components/embed-card/card/EmbedPluginCard.d.mts} +0 -0
- /package/dist/{types/components/embed-card/card/index.d.ts → components/embed-card/card/index.d.mts} +0 -0
- /package/dist/{types/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts → components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.mts} +0 -0
- /package/dist/{types/components/embed-card/error-handling/EmbedErrorCard.d.ts → components/embed-card/error-handling/EmbedErrorCard.d.mts} +0 -0
- /package/dist/{types/components/embed-card/error-handling/index.d.ts → components/embed-card/error-handling/index.d.mts} +0 -0
- /package/dist/{types/components/embed-card/index.d.ts → components/embed-card/index.d.mts} +0 -0
- /package/dist/{types/components/embed-card/menu/EmbedMenu.d.ts → components/embed-card/menu/EmbedMenu.d.mts} +0 -0
- /package/dist/{types/components/embed-card/menu/JsonMenuItem.d.ts → components/embed-card/menu/JsonMenuItem.d.mts} +0 -0
- /package/dist/{types/components/embed-card/menu/index.d.ts → components/embed-card/menu/index.d.mts} +0 -0
- /package/dist/{types/components/embed-plugin-stories/storyPayload.d.ts → components/embed-plugin-stories/storyPayload.d.mts} +0 -0
- /package/dist/{types/components/embed-plugin-stories/storyShared.d.ts → components/embed-plugin-stories/storyShared.d.mts} +0 -0
- /package/dist/{types/components/index.d.ts → components/index.d.mts} +0 -0
- /package/dist/{types/components/validation-alerts/ValidatePayload.d.ts → components/validation-alerts/ValidatePayload.d.mts} +0 -0
- /package/dist/{types/components/validation-alerts/ValidatePlugins.d.ts → components/validation-alerts/ValidatePlugins.d.mts} +0 -0
- /package/dist/{types/components/validation-alerts/index.d.ts → components/validation-alerts/index.d.mts} +0 -0
- /package/dist/{types/contexts/EmbedPluginContext/Context.d.ts → contexts/EmbedPluginContext/Context.d.mts} +0 -0
- /package/dist/{types/contexts/EmbedPluginContext/Provider.d.ts → contexts/EmbedPluginContext/Provider.d.mts} +0 -0
- /package/dist/{types/contexts/EmbedPluginContext/State.d.ts → contexts/EmbedPluginContext/State.d.mts} +0 -0
- /package/dist/{types/contexts/EmbedPluginContext/index.d.ts → contexts/EmbedPluginContext/index.d.mts} +0 -0
- /package/dist/{types/contexts/ResolvePayloadContext → contexts/EmbedPluginContext}/index.d.ts +0 -0
- /package/dist/{types/contexts/EmbedPluginContext/use.d.ts → contexts/EmbedPluginContext/use.d.mts} +0 -0
- /package/dist/{types/contexts/RefreshPayloadContext/Context.d.ts → contexts/RefreshPayloadContext/Context.d.mts} +0 -0
- /package/dist/{types/contexts/RefreshPayloadContext/Provider.d.ts → contexts/RefreshPayloadContext/Provider.d.mts} +0 -0
- /package/dist/{types/contexts/RefreshPayloadContext/State.d.ts → contexts/RefreshPayloadContext/State.d.mts} +0 -0
- /package/dist/{types/contexts/RefreshPayloadContext/index.d.ts → contexts/RefreshPayloadContext/index.d.mts} +0 -0
- /package/dist/{types/contexts/ValidatePayloadContext → contexts/RefreshPayloadContext}/index.d.ts +0 -0
- /package/dist/{types/contexts/RefreshPayloadContext/use.d.ts → contexts/RefreshPayloadContext/use.d.mts} +0 -0
- /package/dist/{types/contexts/ResolvePayloadContext/Context.d.ts → contexts/ResolvePayloadContext/Context.d.mts} +0 -0
- /package/dist/{types/contexts/ResolvePayloadContext/Provider.d.ts → contexts/ResolvePayloadContext/Provider.d.mts} +0 -0
- /package/dist/{types/contexts/ResolvePayloadContext/State.d.ts → contexts/ResolvePayloadContext/State.d.mts} +0 -0
- /package/dist/{types/contexts/ResolvePayloadContext/use.d.ts → contexts/ResolvePayloadContext/use.d.mts} +0 -0
- /package/dist/{types/contexts/ValidatePayloadContext/Context.d.ts → contexts/ValidatePayloadContext/Context.d.mts} +0 -0
- /package/dist/{types/contexts/ValidatePayloadContext/Provider.d.ts → contexts/ValidatePayloadContext/Provider.d.mts} +0 -0
- /package/dist/{types/contexts/ValidatePayloadContext/State.d.ts → contexts/ValidatePayloadContext/State.d.mts} +0 -0
- /package/dist/{types/contexts/ValidatePayloadContext/use.d.ts → contexts/ValidatePayloadContext/use.d.mts} +0 -0
- /package/dist/{types/contexts/index.d.ts → contexts/index.d.mts} +0 -0
- /package/dist/types/{types/EmbedPluginProps.d.ts → EmbedPluginProps.d.mts} +0 -0
- /package/dist/types/{types/index.d.ts → index.d.mts} +0 -0
package/package.json
CHANGED
@@ -11,25 +11,25 @@
|
|
11
11
|
},
|
12
12
|
"dependencies": {
|
13
13
|
"@xylabs/delay": "^2.11.7",
|
14
|
-
"@xylabs/react-async-effect": "
|
15
|
-
"@xylabs/react-flexbox": "
|
16
|
-
"@xylabs/react-shared": "
|
17
|
-
"@xyo-network/huri": "^2.74.
|
18
|
-
"@xyo-network/payload-model": "^2.74.
|
19
|
-
"@xyo-network/react-error": "~2.
|
20
|
-
"@xyo-network/react-payload-plugin": "~2.
|
21
|
-
"@xyo-network/react-shared": "~2.
|
22
|
-
"@xyo-network/schema-cache": "^2.74.
|
14
|
+
"@xylabs/react-async-effect": "^3.1.0-rc.3",
|
15
|
+
"@xylabs/react-flexbox": "^3.1.0-rc.3",
|
16
|
+
"@xylabs/react-shared": "^3.1.0-rc.3",
|
17
|
+
"@xyo-network/huri": "^2.74.4",
|
18
|
+
"@xyo-network/payload-model": "^2.74.4",
|
19
|
+
"@xyo-network/react-error": "~2.64.0-rc.1",
|
20
|
+
"@xyo-network/react-payload-plugin": "~2.64.0-rc.1",
|
21
|
+
"@xyo-network/react-shared": "~2.64.0-rc.1",
|
22
|
+
"@xyo-network/schema-cache": "^2.74.4"
|
23
23
|
},
|
24
24
|
"devDependencies": {
|
25
25
|
"@storybook/react": "^7.4.3",
|
26
26
|
"@uniswap/sdk": "^3.0.3",
|
27
27
|
"@uniswap/sdk-core": "^4.0.7",
|
28
28
|
"@uniswap/v3-sdk": "^3.10.0",
|
29
|
-
"@xylabs/ts-scripts-yarn3": "^
|
30
|
-
"@xylabs/tsconfig-react": "^
|
31
|
-
"@xyo-network/react-aggregate-price-plugin": "~2.
|
32
|
-
"@xyo-network/react-crypto-market-uniswap-plugin": "~2.
|
29
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.28",
|
30
|
+
"@xylabs/tsconfig-react": "^3.0.28",
|
31
|
+
"@xyo-network/react-aggregate-price-plugin": "~2.64.0-rc.1",
|
32
|
+
"@xyo-network/react-crypto-market-uniswap-plugin": "~2.64.0-rc.1",
|
33
33
|
"typescript": "^5.2.2"
|
34
34
|
},
|
35
35
|
"peerDependencies": {
|
@@ -42,27 +42,35 @@
|
|
42
42
|
"react-router-dom": "^6"
|
43
43
|
},
|
44
44
|
"description": "Common React library for all XYO projects that use React",
|
45
|
-
"browser": "dist/esm/index.js",
|
46
45
|
"docs": "dist/docs.json",
|
47
46
|
"exports": {
|
48
47
|
".": {
|
49
48
|
"node": {
|
50
|
-
"import":
|
51
|
-
|
49
|
+
"import": {
|
50
|
+
"types": "./dist/index.d.mts",
|
51
|
+
"default": "./dist/index.mjs"
|
52
|
+
},
|
53
|
+
"require": {
|
54
|
+
"types": "./dist/index.d.ts",
|
55
|
+
"default": "./dist/index.js"
|
56
|
+
}
|
52
57
|
},
|
53
58
|
"browser": {
|
54
|
-
"import":
|
55
|
-
|
59
|
+
"import": {
|
60
|
+
"types": "./dist/index.d.mts",
|
61
|
+
"default": "./dist/index.mjs"
|
62
|
+
},
|
63
|
+
"require": {
|
64
|
+
"types": "./dist/index.d.ts",
|
65
|
+
"default": "./dist/index.js"
|
66
|
+
}
|
56
67
|
},
|
57
|
-
"default": "./dist/
|
58
|
-
},
|
59
|
-
"./dist/docs.json": {
|
60
|
-
"default": "./dist/docs.json"
|
68
|
+
"default": "./dist/index.mjs"
|
61
69
|
},
|
62
70
|
"./package.json": "./package.json"
|
63
71
|
},
|
64
|
-
"main": "dist/
|
65
|
-
"module": "dist/
|
72
|
+
"main": "dist/index.js",
|
73
|
+
"module": "dist/index.mjs",
|
66
74
|
"homepage": "https://xyo.network",
|
67
75
|
"keywords": [
|
68
76
|
"xyo",
|
@@ -83,6 +91,7 @@
|
|
83
91
|
"license": "yarn license-checker --exclude \"MIT, ISC, Apache-2.0, BSD, BSD-2-Clause, CC-BY-4.0, Unlicense, CC-BY-3.0, CC0-1.0\""
|
84
92
|
},
|
85
93
|
"sideEffects": false,
|
86
|
-
"types": "dist/
|
87
|
-
"version": "2.
|
94
|
+
"types": "dist/index.d.ts",
|
95
|
+
"version": "2.64.0-rc.1",
|
96
|
+
"stableVersion": "2.63.1"
|
88
97
|
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EmbedPluginInner = void 0;
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
5
|
-
const react_shared_1 = require("@xyo-network/react-shared");
|
6
|
-
const contexts_1 = require("../contexts");
|
7
|
-
const EmbedResolver_1 = require("./EmbedResolver");
|
8
|
-
const validation_alerts_1 = require("./validation-alerts");
|
9
|
-
const EmbedPluginInner = ({ validateSchema, plugins = [], huriPayload, refreshTitle = '', timestampLabel = 'Data From', hideElementsConfig, embedPluginConfig, onRefresh, children, }) => {
|
10
|
-
return ((0, jsx_runtime_1.jsx)(react_shared_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(contexts_1.EmbedPluginProvider, Object.assign({ refreshTitle: refreshTitle, timestampLabel: timestampLabel, hideElementsConfig: hideElementsConfig, plugins: plugins, embedPluginConfig: embedPluginConfig }, { children: (0, jsx_runtime_1.jsx)(WithResolvers, Object.assign({ onRefresh: onRefresh, huriPayload: huriPayload }, { children: (0, jsx_runtime_1.jsx)(WithValidators, Object.assign({ validateSchema: validateSchema }, { children: (0, jsx_runtime_1.jsx)(react_shared_1.ListModeProvider, Object.assign({ defaultListMode: embedPluginConfig === null || embedPluginConfig === void 0 ? void 0 : embedPluginConfig.listMode }, { children: children })) })) })) })) }));
|
11
|
-
};
|
12
|
-
exports.EmbedPluginInner = EmbedPluginInner;
|
13
|
-
const WithResolvers = ({ children, onRefresh, huriPayload }) => {
|
14
|
-
return ((0, jsx_runtime_1.jsx)(contexts_1.RefreshPayloadProvider, Object.assign({ onRefresh: onRefresh }, { children: (0, jsx_runtime_1.jsx)(contexts_1.ResolvePayloadProvider, Object.assign({ huriPayload: huriPayload }, { children: (0, jsx_runtime_1.jsx)(EmbedResolver_1.EmbedResolver, { children: children }) })) })));
|
15
|
-
};
|
16
|
-
const WithValidators = ({ children, validateSchema }) => {
|
17
|
-
return ((0, jsx_runtime_1.jsx)(contexts_1.ValidatePayloadProvider, Object.assign({ enabled: validateSchema }, { children: (0, jsx_runtime_1.jsx)(validation_alerts_1.ValidatePluginsAlert, { children: (0, jsx_runtime_1.jsx)(validation_alerts_1.ValidatePayloadAlert, { children: children }) }) })));
|
18
|
-
};
|
19
|
-
//# sourceMappingURL=EmbedPlugin.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"EmbedPlugin.js","sourceRoot":"","sources":["../../../src/components/EmbedPlugin.tsx"],"names":[],"mappings":";;;;AAEA,4DAA2E;AAE3E,0CAA0H;AAE1H,mDAA+C;AAC/C,2DAAgF;AAEzE,MAAM,gBAAgB,GAA6C,CAAC,EACzE,cAAc,EACd,OAAO,GAAG,EAAE,EACZ,WAAW,EACX,YAAY,GAAG,EAAE,EACjB,cAAc,GAAG,WAAW,EAC5B,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,EACT,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,4BAAa,cACZ,uBAAC,8BAAmB,kBAClB,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAE,iBAAiB,gBAEpC,uBAAC,aAAa,kBAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,gBAC3D,uBAAC,cAAc,kBAAC,cAAc,EAAE,cAAc,gBAC5C,uBAAC,+BAAgB,kBAAC,eAAe,EAAE,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,QAAQ,gBAAG,QAAQ,IAAoB,IAC9E,IACH,IACI,GACR,CACjB,CAAA;AACH,CAAC,CAAA;AA5BY,QAAA,gBAAgB,oBA4B5B;AAID,MAAM,aAAa,GAA+C,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,EAAE;IACzG,OAAO,CACL,uBAAC,iCAAsB,kBAAC,SAAS,EAAE,SAAS,gBAC1C,uBAAC,iCAAsB,kBAAC,WAAW,EAAE,WAAW,gBAC9C,uBAAC,6BAAa,cAAE,QAAQ,GAAiB,IAClB,IACF,CAC1B,CAAA;AACH,CAAC,CAAA;AAED,MAAM,cAAc,GAAyD,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,EAAE;IAC5G,OAAO,CACL,uBAAC,kCAAuB,kBAAC,OAAO,EAAE,cAAc,gBAC9C,uBAAC,wCAAoB,cACnB,uBAAC,wCAAoB,cAAE,QAAQ,GAAwB,GAClC,IACC,CAC3B,CAAA;AACH,CAAC,CAAA"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EmbedResolver = void 0;
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
5
|
-
const react_shared_1 = require("@xyo-network/react-shared");
|
6
|
-
const contexts_1 = require("../contexts");
|
7
|
-
const EmbedResolver = ({ children }) => {
|
8
|
-
const { payload, notFound, huriError } = (0, contexts_1.useResolvePayload)();
|
9
|
-
return ((0, jsx_runtime_1.jsx)(react_shared_1.LoadResult, Object.assign({ searchResult: payload, notFound: !!notFound, error: !!huriError }, { children: children })));
|
10
|
-
};
|
11
|
-
exports.EmbedResolver = EmbedResolver;
|
12
|
-
//# sourceMappingURL=EmbedResolver.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"EmbedResolver.js","sourceRoot":"","sources":["../../../src/components/EmbedResolver.tsx"],"names":[],"mappings":";;;;AACA,4DAAsD;AAEtD,0CAA+C;AAExC,MAAM,aAAa,GAA2B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IAE5D,OAAO,CACL,uBAAC,yBAAU,kBAAC,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,SAAS,gBACxE,QAAQ,IACE,CACd,CAAA;AACH,CAAC,CAAA;AARY,QAAA,aAAa,iBAQzB"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EmbedFormControl = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const material_1 = require("@mui/material");
|
7
|
-
const EmbedFormControl = (_a) => {
|
8
|
-
var { formId, formLabel, children } = _a, props = tslib_1.__rest(_a, ["formId", "formLabel", "children"]);
|
9
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.FormControl, Object.assign({}, props, { children: [(0, jsx_runtime_1.jsx)(material_1.InputLabel, Object.assign({ id: formId }, { children: formLabel })), children] })));
|
10
|
-
};
|
11
|
-
exports.EmbedFormControl = EmbedFormControl;
|
12
|
-
//# sourceMappingURL=EmbedFormControl.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"EmbedFormControl.js","sourceRoot":"","sources":["../../../../src/components/controls/EmbedFormControl.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAyE;AAQlE,MAAM,gBAAgB,GAAkD,CAAC,EAAyC,EAAE,EAAE;QAA7C,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAAvC,mCAAyC,CAAF;IACrH,OAAO,CACL,wBAAC,sBAAW,oBAAK,KAAK,eACpB,uBAAC,qBAAU,kBAAC,EAAE,EAAE,MAAM,gBAAG,SAAS,IAAc,EAC/C,QAAQ,KACG,CACf,CAAA;AACH,CAAC,CAAA;AAPY,QAAA,gBAAgB,oBAO5B"}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ListModeSelectFormControl = exports.ListModeSelect = void 0;
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
5
|
-
const material_1 = require("@mui/material");
|
6
|
-
const react_shared_1 = require("@xyo-network/react-shared");
|
7
|
-
const EmbedFormControl_1 = require("./EmbedFormControl");
|
8
|
-
const listModeSelectId = 'listmode-select-id';
|
9
|
-
const listModeSelectLabel = 'List Mode';
|
10
|
-
const ListModeSelect = (props) => {
|
11
|
-
const { listMode, setListMode } = (0, react_shared_1.useListMode)();
|
12
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Select, Object.assign({ value: (listMode !== null && listMode !== void 0 ? listMode : 'default'), onChange: (event) => {
|
13
|
-
setListMode === null || setListMode === void 0 ? void 0 : setListMode(event.target.value);
|
14
|
-
} }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ value: "default" }, { children: "Default" }), "default"), (0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ value: "table" }, { children: "Table" }), "table"), (0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ value: "grid" }, { children: "Grid" }), "grid")] })));
|
15
|
-
};
|
16
|
-
exports.ListModeSelect = ListModeSelect;
|
17
|
-
const ListModeSelectFormControl = (props) => {
|
18
|
-
return ((0, jsx_runtime_1.jsx)(EmbedFormControl_1.EmbedFormControl, Object.assign({ formId: listModeSelectId, formLabel: listModeSelectLabel }, { children: (0, jsx_runtime_1.jsx)(exports.ListModeSelect, Object.assign({ size: "small", label: listModeSelectLabel, labelId: listModeSelectId }, props)) })));
|
19
|
-
};
|
20
|
-
exports.ListModeSelectFormControl = ListModeSelectFormControl;
|
21
|
-
//# sourceMappingURL=ListModeSelect.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ListModeSelect.js","sourceRoot":"","sources":["../../../../src/components/controls/ListModeSelect.tsx"],"names":[],"mappings":";;;;AAAA,4CAA6D;AAC7D,4DAAiE;AAEjE,yDAAqD;AAErD,MAAM,gBAAgB,GAAG,oBAAoB,CAAA;AAC7C,MAAM,mBAAmB,GAAG,WAAW,CAAA;AAEhC,MAAM,cAAc,GAAoC,CAAC,KAAK,EAAE,EAAE;IACvE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,IAAA,0BAAW,GAAE,CAAA;IAE/C,OAAO,CACL,wBAAC,iBAAM,kBACL,KAAK,EAAE,CAAC,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,SAAS,CAAa,EAC1C,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAG,KAAK,CAAC,MAAM,CAAC,KAAiB,CAAC,CAAA;QAC/C,CAAC,IACG,KAAK,eAET,uBAAC,mBAAQ,kBAAe,KAAK,EAAC,SAAS,8BAAzB,SAAS,CAEZ,EACX,uBAAC,mBAAQ,kBAAa,KAAK,EAAC,OAAO,4BAArB,OAAO,CAEV,EACX,uBAAC,mBAAQ,kBAAY,KAAK,EAAC,MAAM,2BAAnB,MAAM,CAET,KACJ,CACV,CAAA;AACH,CAAC,CAAA;AAtBY,QAAA,cAAc,kBAsB1B;AAEM,MAAM,yBAAyB,GAAoC,CAAC,KAAK,EAAE,EAAE;IAClF,OAAO,CACL,uBAAC,mCAAgB,kBAAC,MAAM,EAAE,gBAAgB,EAAE,SAAS,EAAE,mBAAmB,gBACxE,uBAAC,sBAAc,kBAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,gBAAgB,IAAM,KAAK,EAAI,IAChF,CACpB,CAAA;AACH,CAAC,CAAA;AANY,QAAA,yBAAyB,6BAMrC"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EmbedRenderSelect = void 0;
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
5
|
-
const material_1 = require("@mui/material");
|
6
|
-
const contexts_1 = require("../../contexts");
|
7
|
-
const EmbedFormControl_1 = require("./EmbedFormControl");
|
8
|
-
const renderSelectId = 'render-select-id';
|
9
|
-
const renderSelectLabel = 'Renderer';
|
10
|
-
const EmbedRenderSelect = (props) => {
|
11
|
-
const { activePlugin, setActivePlugin, plugins } = (0, contexts_1.useEmbedPluginState)();
|
12
|
-
return ((0, jsx_runtime_1.jsx)(EmbedFormControl_1.EmbedFormControl, Object.assign({ formId: renderSelectId, formLabel: renderSelectLabel }, { children: (0, jsx_runtime_1.jsx)(material_1.Select, Object.assign({ size: "small", value: activePlugin === null || activePlugin === void 0 ? void 0 : activePlugin.name }, props, { children: plugins === null || plugins === void 0 ? void 0 : plugins.map((plugin) => ((0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ value: plugin.name, onClick: () => setActivePlugin === null || setActivePlugin === void 0 ? void 0 : setActivePlugin(plugin) }, { children: plugin.name }), plugin.name))) })) })));
|
13
|
-
};
|
14
|
-
exports.EmbedRenderSelect = EmbedRenderSelect;
|
15
|
-
//# sourceMappingURL=RenderSelect.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"RenderSelect.js","sourceRoot":"","sources":["../../../../src/components/controls/RenderSelect.tsx"],"names":[],"mappings":";;;;AAAA,4CAA6D;AAE7D,6CAAoD;AACpD,yDAAqD;AAErD,MAAM,cAAc,GAAG,kBAAkB,CAAA;AACzC,MAAM,iBAAiB,GAAG,UAAU,CAAA;AAE7B,MAAM,iBAAiB,GAA0B,CAAC,KAAK,EAAE,EAAE;IAChE,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,IAAA,8BAAmB,GAAE,CAAA;IACxE,OAAO,CACL,uBAAC,mCAAgB,kBAAC,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,iBAAiB,gBACpE,uBAAC,iBAAM,kBAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI,IAAM,KAAK,cACtD,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACxB,uBAAC,mBAAQ,kBAAC,KAAK,EAAE,MAAM,CAAC,IAAI,EAAoB,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAG,MAAM,CAAC,gBACrF,MAAM,CAAC,IAAI,KADqB,MAAM,CAAC,IAAI,CAEnC,CACZ,CAAC,IACK,IACQ,CACpB,CAAA;AACH,CAAC,CAAA;AAbY,QAAA,iBAAiB,qBAa7B"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const tslib_1 = require("tslib");
|
4
|
-
tslib_1.__exportStar(require("./EmbedFormControl"), exports);
|
5
|
-
tslib_1.__exportStar(require("./ListModeSelect"), exports);
|
6
|
-
tslib_1.__exportStar(require("./RenderSelect"), exports);
|
7
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/controls/index.ts"],"names":[],"mappings":";;;AAAA,6DAAkC;AAClC,2DAAgC;AAChC,yDAA8B"}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EmbedCardResolverFlexBox = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const material_1 = require("@mui/material");
|
7
|
-
const react_flexbox_1 = require("@xylabs/react-flexbox");
|
8
|
-
const react_shared_1 = require("@xyo-network/react-shared");
|
9
|
-
const contexts_1 = require("../../contexts");
|
10
|
-
const error_handling_1 = require("./error-handling");
|
11
|
-
const EmbedCardResolverFlexBox = (_a) => {
|
12
|
-
var { children } = _a, props = tslib_1.__rest(_a, ["children"]);
|
13
|
-
const { payload, notFound, huriError } = (0, contexts_1.useResolvePayload)();
|
14
|
-
const { refreshPayload } = (0, contexts_1.useRefreshPayload)();
|
15
|
-
const theme = (0, material_1.useTheme)();
|
16
|
-
return ((0, jsx_runtime_1.jsx)(react_shared_1.LoadResult, Object.assign({ searchResult: payload, notFound: !!notFound, error: !!huriError }, { children: (0, jsx_runtime_1.jsx)(error_handling_1.EmbedCardApiErrorRenderer, Object.assign({ xyoError: huriError }, { children: (0, jsx_runtime_1.jsx)(react_flexbox_1.FlexCol, Object.assign({ id: "embed-outer-wrap", alignItems: "stretch", justifyContent: "start", busy: Boolean(!refreshPayload && payload), busyCircularProps: { style: { alignItems: 'start', paddingTop: theme.spacing(2), zIndex: 2 } } }, props, { children: children })) })) })));
|
17
|
-
};
|
18
|
-
exports.EmbedCardResolverFlexBox = EmbedCardResolverFlexBox;
|
19
|
-
//# sourceMappingURL=EmbedCardResolver.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"EmbedCardResolver.js","sourceRoot":"","sources":["../../../../src/components/embed-card/EmbedCardResolver.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAwC;AACxC,yDAA6D;AAE7D,4DAAsD;AAEtD,6CAAqE;AACrE,qDAA4D;AAErD,MAAM,wBAAwB,GAAyC,CAAC,EAAsB,EAAE,EAAE;QAA1B,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAApB,YAAsB,CAAF;IACjG,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IAC5D,MAAM,EAAE,cAAc,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IAC9C,MAAM,KAAK,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAExB,OAAO,CACL,uBAAC,yBAAU,kBAAC,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,SAAS,gBACzE,uBAAC,0CAAyB,kBAAC,QAAQ,EAAE,SAAS,gBAC5C,uBAAC,uBAAO,kBACN,EAAE,EAAC,kBAAkB,EACrB,UAAU,EAAC,SAAS,EACpB,cAAc,EAAC,OAAO,EACtB,IAAI,EAAE,OAAO,CAAC,CAAC,cAAc,IAAI,OAAO,CAAC,EACzC,iBAAiB,EAAE,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,IAC1F,KAAK,cAER,QAAQ,IACD,IACgB,IACjB,CACd,CAAA;AACH,CAAC,CAAA;AArBY,QAAA,wBAAwB,4BAqBpC"}
|
@@ -1,35 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EmbedPlugin = exports.EmbedPluginCardInner = exports.ApiEmbedPluginCard = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const material_1 = require("@mui/material");
|
7
|
-
const contexts_1 = require("../../contexts");
|
8
|
-
const EmbedPlugin_1 = require("../EmbedPlugin");
|
9
|
-
const card_1 = require("./card");
|
10
|
-
const error_handling_1 = require("./error-handling");
|
11
|
-
const ApiEmbedPluginCard = (_a) => {
|
12
|
-
var { children } = _a, props = tslib_1.__rest(_a, ["children"]);
|
13
|
-
const { validateSchema, plugins = [], huriPayload, refreshTitle = '', timestampLabel = 'Data From', hideElementsConfig, embedPluginConfig, onRefresh } = props, busyCardProps = tslib_1.__rest(props, ["validateSchema", "plugins", "huriPayload", "refreshTitle", "timestampLabel", "hideElementsConfig", "embedPluginConfig", "onRefresh"]);
|
14
|
-
return ((0, jsx_runtime_1.jsxs)(EmbedPlugin_1.EmbedPluginInner, Object.assign({}, {
|
15
|
-
embedPluginConfig,
|
16
|
-
hideElementsConfig,
|
17
|
-
huriPayload,
|
18
|
-
onRefresh,
|
19
|
-
plugins,
|
20
|
-
refreshTitle,
|
21
|
-
timestampLabel,
|
22
|
-
validateSchema,
|
23
|
-
}, { children: [(0, jsx_runtime_1.jsx)(exports.EmbedPluginCardInner, Object.assign({}, busyCardProps)), children] })));
|
24
|
-
};
|
25
|
-
exports.ApiEmbedPluginCard = ApiEmbedPluginCard;
|
26
|
-
const EmbedPluginCardInner = (props) => {
|
27
|
-
const { payload, huriError } = (0, contexts_1.useResolvePayload)();
|
28
|
-
const { refreshPayload } = (0, contexts_1.useRefreshPayload)();
|
29
|
-
const theme = (0, material_1.useTheme)();
|
30
|
-
return ((0, jsx_runtime_1.jsx)(error_handling_1.EmbedCardApiErrorRenderer, Object.assign({ xyoError: huriError }, { children: (0, jsx_runtime_1.jsx)(card_1.EmbedPluginCard, Object.assign({ elevation: 3, variant: "elevation", busy: Boolean(!refreshPayload && payload), busyVariantProps: { style: { alignItems: 'start', paddingTop: theme.spacing(2), zIndex: 2 } }, sx: { position: 'relative' } }, props)) })));
|
31
|
-
};
|
32
|
-
exports.EmbedPluginCardInner = EmbedPluginCardInner;
|
33
|
-
/** @deprecated - use EmbedPluginCard and use CardProps instead of FlexBoxProps */
|
34
|
-
exports.EmbedPlugin = card_1.EmbedPluginCard;
|
35
|
-
//# sourceMappingURL=EmbedPluginCard.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"EmbedPluginCard.js","sourceRoot":"","sources":["../../../../src/components/embed-card/EmbedPluginCard.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAwC;AAGxC,6CAAqE;AAErE,gDAAiD;AACjD,iCAAuD;AACvD,qDAA4D;AAIrD,MAAM,kBAAkB,GAAmC,CAAC,EAAsB,EAAE,EAAE;QAA1B,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAApB,YAAsB,CAAF;IACrF,MAAM,EACJ,cAAc,EACd,OAAO,GAAG,EAAE,EACZ,WAAW,EACX,YAAY,GAAG,EAAE,EACjB,cAAc,GAAG,WAAW,EAC5B,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,KAEP,KAAK,EADJ,aAAa,kBACd,KAAK,EAVH,sIAUL,CAAQ,CAAA;IAET,OAAO,CACL,wBAAC,8BAAgB,oBACX;QACF,iBAAiB;QACjB,kBAAkB;QAClB,WAAW;QACX,SAAS;QACT,OAAO;QACP,YAAY;QACZ,cAAc;QACd,cAAc;KACf,eAED,uBAAC,4BAAoB,oBAAK,aAAa,EAAI,EAC1C,QAAQ,KACQ,CACpB,CAAA;AACH,CAAC,CAAA;AA9BY,QAAA,kBAAkB,sBA8B9B;AAEM,MAAM,oBAAoB,GAA4B,CAAC,KAAK,EAAE,EAAE;IACrE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IAClD,MAAM,EAAE,cAAc,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IAC9C,MAAM,KAAK,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAExB,OAAO,CACL,uBAAC,0CAAyB,kBAAC,QAAQ,EAAE,SAAS,gBAC5C,uBAAC,sBAAe,kBACd,SAAS,EAAE,CAAC,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAE,OAAO,CAAC,CAAC,cAAc,IAAI,OAAO,CAAC,EACzC,gBAAgB,EAAE,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,EAC7F,EAAE,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,IACxB,KAAK,EACT,IACwB,CAC7B,CAAA;AACH,CAAC,CAAA;AAjBY,QAAA,oBAAoB,wBAiBhC;AAED,kFAAkF;AACrE,QAAA,WAAW,GAAG,sBAAe,CAAA"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.BusyCard = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const material_1 = require("@mui/material");
|
7
|
-
const react_flexbox_1 = require("@xylabs/react-flexbox");
|
8
|
-
const react_shared_1 = require("@xylabs/react-shared");
|
9
|
-
const BusyCard = (_a) => {
|
10
|
-
var { busy, busyMinimum = 500, busyVariant = 'circular', busyVariantProps, children } = _a, props = tslib_1.__rest(_a, ["busy", "busyMinimum", "busyVariant", "busyVariantProps", "children"]);
|
11
|
-
const internalBusy = (0, react_flexbox_1.useBusyTiming)(busy, busyMinimum);
|
12
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Card, Object.assign({}, props, { children: [children, busyVariant === 'circular' && internalBusy ? (0, jsx_runtime_1.jsx)(react_shared_1.BusyCircularProgress, Object.assign({}, busyVariantProps)) : null, busyVariant === 'linear' && internalBusy ? (0, jsx_runtime_1.jsx)(react_shared_1.BusyLinearProgress, Object.assign({}, busyVariantProps)) : null] })));
|
13
|
-
};
|
14
|
-
exports.BusyCard = BusyCard;
|
15
|
-
//# sourceMappingURL=BusyCard.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"BusyCard.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/BusyCard.tsx"],"names":[],"mappings":";;;;;AAAA,4CAA+C;AAC/C,yDAAqD;AACrD,uDAO6B;AAStB,MAAM,QAAQ,GAA0C,CAAC,EAO/D,EAAE,EAAE;QAP2D,EAC9D,IAAI,EACJ,WAAW,GAAG,GAAG,EACjB,WAAW,GAAG,UAAU,EACxB,gBAAgB,EAChB,QAAQ,OAET,EADI,KAAK,sBANsD,sEAO/D,CADS;IAER,MAAM,YAAY,GAAG,IAAA,6BAAa,EAAC,IAAI,EAAE,WAAW,CAAC,CAAA;IACrD,OAAO,CACL,wBAAC,eAAI,oBAAK,KAAK,eACZ,QAAQ,EACR,WAAW,KAAK,UAAU,IAAI,YAAY,CAAC,CAAC,CAAC,uBAAC,mCAAoB,oBAAM,gBAA8C,EAAI,CAAC,CAAC,CAAC,IAAI,EACjI,WAAW,KAAK,QAAQ,IAAI,YAAY,CAAC,CAAC,CAAC,uBAAC,iCAAkB,oBAAM,gBAA4C,EAAI,CAAC,CAAC,CAAC,IAAI,KACvH,CACR,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,QAAQ,YAgBpB"}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EmbedCardHeader = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const Refresh_1 = tslib_1.__importDefault(require("@mui/icons-material/Refresh"));
|
7
|
-
const material_1 = require("@mui/material");
|
8
|
-
const react_flexbox_1 = require("@xylabs/react-flexbox");
|
9
|
-
const contexts_1 = require("../../../contexts");
|
10
|
-
const menu_1 = require("../menu");
|
11
|
-
const EmbedCardHeader = () => {
|
12
|
-
var _a;
|
13
|
-
const { refreshHuri, huri } = (0, contexts_1.useResolvePayload)();
|
14
|
-
const { activePlugin, timestampLabel, hideElementsConfig } = (0, contexts_1.useEmbedPluginState)();
|
15
|
-
const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig !== null && hideElementsConfig !== void 0 ? hideElementsConfig : {};
|
16
|
-
//this is temporary so that we can add the ability to get a timestamp via diviner later
|
17
|
-
const timestamp = Date.now();
|
18
|
-
return ((0, jsx_runtime_1.jsx)(material_1.CardHeader, { sx: { flexWrap: 'wrap', rowGap: 1 }, avatar: hideAvatar ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})) : ((0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ sx: { bgcolor: (theme) => theme.palette.primary.main }, "aria-label": activePlugin === null || activePlugin === void 0 ? void 0 : activePlugin.name }, { children: (_a = activePlugin === null || activePlugin === void 0 ? void 0 : activePlugin.name) === null || _a === void 0 ? void 0 : _a.charAt(0) }))), action: (0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexRow, Object.assign({ flexWrap: "wrap", columnGap: 0.5 }, { children: [timestamp ? (hideTimestamp && hideRefreshButton ? ('') : ((0, jsx_runtime_1.jsx)(material_1.Chip, { avatar: hideRefreshButton ? (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}) : (0, jsx_runtime_1.jsx)(Refresh_1.default, {}), clickable: hideRefreshButton ? false : true, onClick: refreshHuri, label: hideTimestamp ? '' : `${timestampLabel} ${new Date(timestamp).toLocaleString()}` }))) : null, hideCardActions || huri === undefined ? null : (0, jsx_runtime_1.jsx)(menu_1.EmbedMenu, {})] })), title: hideTitle ? '' : activePlugin === null || activePlugin === void 0 ? void 0 : activePlugin.name }));
|
19
|
-
};
|
20
|
-
exports.EmbedCardHeader = EmbedCardHeader;
|
21
|
-
//# sourceMappingURL=EmbedCardHeader.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"EmbedCardHeader.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/EmbedCardHeader.tsx"],"names":[],"mappings":";;;;;AAAA,kFAAqD;AACrD,4CAAgF;AAChF,yDAA+C;AAE/C,gDAA0E;AAC1E,kCAAmC;AAE5B,MAAM,eAAe,GAA8B,GAAG,EAAE;;IAC7D,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IACjD,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,GAAG,IAAA,8BAAmB,GAAE,CAAA;IAClF,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,iBAAiB,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,kBAAkB,aAAlB,kBAAkB,cAAlB,kBAAkB,GAAI,EAAE,CAAA;IAC7G,uFAAuF;IACvF,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;IAC5B,OAAO,CACL,uBAAC,qBAAU,IACT,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,EACnC,MAAM,EACJ,UAAU,CAAC,CAAC,CAAC,CACX,kDAAK,CACN,CAAC,CAAC,CAAC,CACF,uBAAC,iBAAM,kBAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,gBAAc,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI,gBAClG,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI,0CAAE,MAAM,CAAC,CAAC,CAAC,IACvB,CACV,EAEH,MAAM,EACJ,wBAAC,uBAAO,kBAAC,QAAQ,EAAC,MAAM,EAAC,SAAS,EAAE,GAAG,iBACpC,SAAS,CAAC,CAAC,CAAC,CACX,aAAa,IAAI,iBAAiB,CAAC,CAAC,CAAC,CACnC,EAAE,CACH,CAAC,CAAC,CAAC,CACF,uBAAC,eAAI,IACH,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC,kDAAK,CAAC,CAAC,CAAC,uBAAC,iBAAW,KAAG,EACnD,SAAS,EAAE,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAC3C,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,cAAc,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,cAAc,EAAE,EAAE,GACvF,CACH,CACF,CAAC,CAAC,CAAC,IAAI,EAEP,eAAe,IAAI,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,uBAAC,gBAAS,KAAG,KACrD,EAEZ,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI,GAC1C,CACH,CAAA;AACH,CAAC,CAAA;AAvCY,QAAA,eAAe,mBAuC3B"}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EmbedPluginCard = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const material_1 = require("@mui/material");
|
7
|
-
const react_flexbox_1 = require("@xylabs/react-flexbox");
|
8
|
-
const react_shared_1 = require("@xyo-network/react-shared");
|
9
|
-
const contexts_1 = require("../../../contexts");
|
10
|
-
const controls_1 = require("../../controls");
|
11
|
-
const BusyCard_1 = require("./BusyCard");
|
12
|
-
const EmbedCardHeader_1 = require("./EmbedCardHeader");
|
13
|
-
const EmbedPluginCard = (_a) => {
|
14
|
-
var _b, _c, _d, _e;
|
15
|
-
var props = tslib_1.__rest(_a, []);
|
16
|
-
const { payload } = (0, contexts_1.useResolvePayload)();
|
17
|
-
const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = (0, contexts_1.useEmbedPluginState)();
|
18
|
-
const { listMode } = (0, react_shared_1.useListMode)();
|
19
|
-
const supportsListMode = (_e = (_d = (_c = (_b = ActivePlugin === null || ActivePlugin === void 0 ? void 0 : ActivePlugin.components) === null || _b === void 0 ? void 0 : _b.box) === null || _c === void 0 ? void 0 : _c.listModes) === null || _d === void 0 ? void 0 : _d.length) !== null && _e !== void 0 ? _e : 0 > 1;
|
20
|
-
return ((0, jsx_runtime_1.jsxs)(BusyCard_1.BusyCard, Object.assign({}, props, { children: [(hideElementsConfig === null || hideElementsConfig === void 0 ? void 0 : hideElementsConfig.hideCardHeader) ? null : (0, jsx_runtime_1.jsx)(EmbedCardHeader_1.EmbedCardHeader, {}), (plugins && plugins.length) || supportsListMode ? ((0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexGrowRow, Object.assign({ columnGap: 2, rowGap: 2, flexWrap: "wrap", pb: 1 }, { children: [plugins && plugins.length > 1 ? (0, jsx_runtime_1.jsx)(controls_1.EmbedRenderSelect, {}) : null, supportsListMode ? (0, jsx_runtime_1.jsx)(controls_1.ListModeSelectFormControl, {}) : null] }))) : null, (0, jsx_runtime_1.jsx)(material_1.CardContent, Object.assign({ sx: { height: '100%' } }, { children: ActivePlugin ? (0, jsx_runtime_1.jsx)(ActivePlugin.components.box.detailsBox, Object.assign({ payload: payload }, (supportsListMode && { listMode }))) : null }))] })));
|
21
|
-
};
|
22
|
-
exports.EmbedPluginCard = EmbedPluginCard;
|
23
|
-
//# sourceMappingURL=EmbedPluginCard.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"EmbedPluginCard.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/EmbedPluginCard.tsx"],"names":[],"mappings":";;;;;AAAA,4CAA2C;AAC3C,yDAAmD;AACnD,4DAAuD;AAEvD,gDAA0E;AAC1E,6CAA6E;AAC7E,yCAAoD;AACpD,uDAAmD;AAE5C,MAAM,eAAe,GAA4B,CAAC,EAAY,EAAE,EAAE;;QAAX,KAAK,sBAAV,EAAY,CAAF;IACjE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IACvC,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,kBAAkB,EAAE,GAAG,IAAA,8BAAmB,GAAE,CAAA;IACzF,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,0BAAW,GAAE,CAAA;IAClC,MAAM,gBAAgB,GAAG,MAAA,MAAA,MAAA,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,0CAAE,GAAG,0CAAE,SAAS,0CAAE,MAAM,mCAAI,CAAC,GAAG,CAAC,CAAA;IAElF,OAAO,CACL,wBAAC,mBAAQ,oBAAK,KAAK,eAChB,CAAA,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,cAAc,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,uBAAC,iCAAe,KAAG,EAE/D,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,CACjD,wBAAC,2BAAW,kBAAC,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,iBACxD,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,uBAAC,4BAAiB,KAAG,CAAC,CAAC,CAAC,IAAI,EAC5D,gBAAgB,CAAC,CAAC,CAAC,uBAAC,oCAAyB,KAAG,CAAC,CAAC,CAAC,IAAI,KAC5C,CACf,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,sBAAW,kBAAC,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,gBAChC,YAAY,CAAC,CAAC,CAAC,uBAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,kBAAC,OAAO,EAAE,OAAO,IAAM,CAAC,gBAAgB,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAI,CAAC,CAAC,CAAC,IAAI,IAC/G,KACL,CACZ,CAAA;AACH,CAAC,CAAA;AArBY,QAAA,eAAe,mBAqB3B"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const tslib_1 = require("tslib");
|
4
|
-
tslib_1.__exportStar(require("./BusyCard"), exports);
|
5
|
-
tslib_1.__exportStar(require("./EmbedCardHeader"), exports);
|
6
|
-
tslib_1.__exportStar(require("./EmbedPluginCard"), exports);
|
7
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B;AAC1B,4DAAiC;AACjC,4DAAiC"}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EmbedCardApiErrorRenderer = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const react_error_1 = require("@xyo-network/react-error");
|
7
|
-
const EmbedErrorCard_1 = require("./EmbedErrorCard");
|
8
|
-
const EmbedCardApiErrorRenderer = (_a) => {
|
9
|
-
var { xyoError, children } = _a, props = tslib_1.__rest(_a, ["xyoError", "children"]);
|
10
|
-
return ((0, jsx_runtime_1.jsx)(react_error_1.ErrorRender, Object.assign({ error: xyoError, noReAuth: true, noErrorDisplay: true, customError: (0, jsx_runtime_1.jsx)(CustomApiErrorCard, Object.assign({ xyoError: xyoError }, props)) }, { children: children })));
|
11
|
-
};
|
12
|
-
exports.EmbedCardApiErrorRenderer = EmbedCardApiErrorRenderer;
|
13
|
-
const CustomApiErrorCard = (_a) => {
|
14
|
-
var { xyoError } = _a, props = tslib_1.__rest(_a, ["xyoError"]);
|
15
|
-
return ((0, jsx_runtime_1.jsx)(EmbedErrorCard_1.EmbedErrorCard, Object.assign({}, props, { children: (0, jsx_runtime_1.jsx)(react_error_1.ErrorAlert, { error: xyoError }) })));
|
16
|
-
};
|
17
|
-
//# sourceMappingURL=EmbedCardApiErrorRenderer.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"EmbedCardApiErrorRenderer.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx"],"names":[],"mappings":";;;;;AAGA,0DAAkE;AAElE,qDAAiD;AAM1C,MAAM,yBAAyB,GAA2D,CAAC,EAAgC,EAAE,EAAE;QAApC,EAAE,QAAQ,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAA9B,wBAAgC,CAAF;IAC9H,OAAO,CACL,uBAAC,yBAAW,kBAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,QAAC,cAAc,QAAC,WAAW,EAAE,uBAAC,kBAAkB,kBAAC,QAAQ,EAAE,QAAQ,IAAM,KAAK,EAAI,gBACrH,QAAQ,IACG,CACf,CAAA;AACH,CAAC,CAAA;AANY,QAAA,yBAAyB,6BAMrC;AAED,MAAM,kBAAkB,GAA6C,CAAC,EAAsB,EAAE,EAAE;QAA1B,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAApB,YAAsB,CAAF;IACxF,OAAO,CACL,uBAAC,+BAAc,oBAAK,KAAK,cACvB,uBAAC,wBAAU,IAAC,KAAK,EAAE,QAAQ,GAAI,IAChB,CAClB,CAAA;AACH,CAAC,CAAA"}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EmbedErrorCard = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const material_1 = require("@mui/material");
|
7
|
-
const EmbedErrorCard = (props) => {
|
8
|
-
const { alertProps, error, hideErrorDetails = true, children } = props, cardProps = tslib_1.__rest(props, ["alertProps", "error", "hideErrorDetails", "children"]);
|
9
|
-
const errorProps = { alertProps, error, hideErrorDetails };
|
10
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Card, Object.assign({}, cardProps, { children: (0, jsx_runtime_1.jsx)(material_1.CardContent, { children: children !== null && children !== void 0 ? children : (0, jsx_runtime_1.jsx)(DefaultErrorAlert, Object.assign({}, errorProps)) }) })));
|
11
|
-
};
|
12
|
-
exports.EmbedErrorCard = EmbedErrorCard;
|
13
|
-
const DefaultErrorAlert = ({ alertProps, hideErrorDetails, error }) => {
|
14
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Alert, Object.assign({ severity: "error" }, alertProps, { children: [(0, jsx_runtime_1.jsx)(material_1.AlertTitle, { children: "Whoops! Something went wrong" }), !hideErrorDetails && error ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "caption" }, { children: "Error: " })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "caption" }, { children: error === null || error === void 0 ? void 0 : error.message }))] })) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "caption", fontSize: "small" }, { children: "Error Loading Plugin" })))] })));
|
15
|
-
};
|
16
|
-
//# sourceMappingURL=EmbedErrorCard.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"EmbedErrorCard.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedErrorCard.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAuG;AAchG,MAAM,cAAc,GAAgD,CAAC,KAAK,EAAE,EAAE;IACnF,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,gBAAgB,GAAG,IAAI,EAAE,QAAQ,KAAmB,KAAK,EAAnB,SAAS,kBAAK,KAAK,EAA9E,uDAAsE,CAAQ,CAAA;IACpF,MAAM,UAAU,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAA;IAC1D,OAAO,CACL,uBAAC,eAAI,oBAAK,SAAS,cACjB,uBAAC,sBAAW,cAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,uBAAC,iBAAiB,oBAAK,UAAU,EAAI,GAAe,IACzE,CACR,CAAA;AACH,CAAC,CAAA;AARY,QAAA,cAAc,kBAQ1B;AAED,MAAM,iBAAiB,GAAsC,CAAC,EAAE,UAAU,EAAE,gBAAgB,EAAE,KAAK,EAAE,EAAE,EAAE;IACvG,OAAO,CACL,wBAAC,gBAAK,kBAAC,QAAQ,EAAC,OAAO,IAAK,UAAU,eACpC,uBAAC,qBAAU,+CAA0C,EACpD,CAAC,gBAAgB,IAAI,KAAK,CAAC,CAAC,CAAC,CAC5B,6DACE,uBAAC,qBAAU,kBAAC,OAAO,EAAC,SAAS,6BAAqB,EAClD,uBAAC,qBAAU,kBAAC,OAAO,EAAC,SAAS,gBAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,IAAc,IAC1D,CACJ,CAAC,CAAC,CAAC,CACF,uBAAC,qBAAU,kBAAC,OAAO,EAAC,SAAS,EAAC,QAAQ,EAAC,OAAO,0CAEjC,CACd,KACK,CACT,CAAA;AACH,CAAC,CAAA"}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const tslib_1 = require("tslib");
|
4
|
-
tslib_1.__exportStar(require("./EmbedCardApiErrorRenderer"), exports);
|
5
|
-
tslib_1.__exportStar(require("./EmbedErrorCard"), exports);
|
6
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/index.ts"],"names":[],"mappings":";;;AAAA,sEAA2C;AAC3C,2DAAgC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/embed-card/index.ts"],"names":[],"mappings":";;;AAAA,iDAAsB;AACtB,4DAAiC"}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EmbedMenu = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const MoreVert_1 = tslib_1.__importDefault(require("@mui/icons-material/MoreVert"));
|
7
|
-
const material_1 = require("@mui/material");
|
8
|
-
const react_1 = require("react");
|
9
|
-
const JsonMenuItem_1 = require("./JsonMenuItem");
|
10
|
-
const EmbedMenu = (props) => {
|
11
|
-
// TODO - link to explore website
|
12
|
-
const [anchorEl, setAnchorEl] = (0, react_1.useState)(null);
|
13
|
-
const open = Boolean(anchorEl);
|
14
|
-
const handleClick = (event) => {
|
15
|
-
setAnchorEl(event.currentTarget);
|
16
|
-
};
|
17
|
-
const handleClose = () => {
|
18
|
-
setAnchorEl(null);
|
19
|
-
};
|
20
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: handleClick }, props, { children: (0, jsx_runtime_1.jsx)(MoreVert_1.default, {}) })), (0, jsx_runtime_1.jsx)(material_1.Menu, Object.assign({ anchorEl: anchorEl, open: open, onClose: handleClose, PaperProps: { variant: 'elevation' }, MenuListProps: { dense: true } }, { children: (0, jsx_runtime_1.jsx)(JsonMenuItem_1.JsonMenuItem, {}) }))] }));
|
21
|
-
};
|
22
|
-
exports.EmbedMenu = EmbedMenu;
|
23
|
-
//# sourceMappingURL=EmbedMenu.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"EmbedMenu.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/menu/EmbedMenu.tsx"],"names":[],"mappings":";;;;;AAAA,oFAAuD;AACvD,4CAAiE;AACjE,iCAAgC;AAEhC,iDAA6C;AAEtC,MAAM,SAAS,GAA8B,CAAC,KAAK,EAAE,EAAE;IAC5D,iCAAiC;IACjC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAqB,IAAI,CAAC,CAAA;IAClE,MAAM,IAAI,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;IAE9B,MAAM,WAAW,GAAG,CAAC,KAA0C,EAAE,EAAE;QACjE,WAAW,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;IAClC,CAAC,CAAA;IACD,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,WAAW,CAAC,IAAI,CAAC,CAAA;IACnB,CAAC,CAAA;IAED,OAAO,CACL,6DACE,uBAAC,qBAAU,kBAAC,OAAO,EAAE,WAAW,IAAM,KAAK,cACzC,uBAAC,kBAAY,KAAG,IACL,EACb,uBAAC,eAAI,kBAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,gBAC9H,uBAAC,2BAAY,KAAG,IACX,IACN,CACJ,CAAA;AACH,CAAC,CAAA;AAtBY,QAAA,SAAS,aAsBrB"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.JsonMenuItem = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const OpenInNew_1 = tslib_1.__importDefault(require("@mui/icons-material/OpenInNew"));
|
7
|
-
const material_1 = require("@mui/material");
|
8
|
-
const contexts_1 = require("../../../contexts");
|
9
|
-
const JsonMenuItem = (props) => {
|
10
|
-
const { huri } = (0, contexts_1.useResolvePayload)();
|
11
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: huri ? ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ title: "Source Payload JSON", onClick: () => window.open(huri, '_blank') }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemText, Object.assign({ sx: { mr: 1 } }, { children: "JSON" })), (0, jsx_runtime_1.jsx)(material_1.ListItemIcon, Object.assign({ sx: { justifyContent: 'end' } }, { children: (0, jsx_runtime_1.jsx)(OpenInNew_1.default, { fontSize: "small" }) }))] }))) : null }));
|
12
|
-
};
|
13
|
-
exports.JsonMenuItem = JsonMenuItem;
|
14
|
-
//# sourceMappingURL=JsonMenuItem.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"JsonMenuItem.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/menu/JsonMenuItem.tsx"],"names":[],"mappings":";;;;;AAAA,sFAAyD;AACzD,4CAAmF;AAEnF,gDAAqD;AAE9C,MAAM,YAAY,GAA4B,CAAC,KAAK,EAAE,EAAE;IAC7D,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IAEpC,OAAO,CACL,2DACG,IAAI,CAAC,CAAC,CAAC,CACN,wBAAC,mBAAQ,kBAAC,KAAK,EAAC,qBAAqB,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAM,KAAK,eACzF,uBAAC,uBAAY,kBAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,0BAAqB,EAChD,uBAAC,uBAAY,kBAAC,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,gBACzC,uBAAC,mBAAa,IAAC,QAAQ,EAAC,OAAO,GAAG,IACrB,KACN,CACZ,CAAC,CAAC,CAAC,IAAI,GACP,CACJ,CAAA;AACH,CAAC,CAAA;AAfY,QAAA,YAAY,gBAexB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/menu/index.ts"],"names":[],"mappings":";;;AAAA,sDAA2B"}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.payloadData = void 0;
|
4
|
-
exports.payloadData = {
|
5
|
-
assets: {
|
6
|
-
ada: { value: { btc: '0.00002192', eth: '0.00031141', eur: '0.491867', usd: '0.502045' } },
|
7
|
-
btc: { value: { btc: '1', eth: '14.213346', eur: '22450', usd: '22914' } },
|
8
|
-
busd: { value: { btc: '0.00004369', eth: '0.00062074', eur: '0.980451', usd: '1.001' } },
|
9
|
-
dai: { value: { usdc: '1.00004', xyo: '114.394' } },
|
10
|
-
doge: { value: { btc: '0.00000293', eth: '0.00004157', eur: '0.065655', usd: '0.067013' } },
|
11
|
-
dot: { value: { btc: '0.00035508', eth: '0.00504454', eur: '7.97', usd: '8.13' } },
|
12
|
-
eth: { value: { btc: '0.0703878', eth: '1', eur: '1579.47', usd: '1612.16' } },
|
13
|
-
frax: { value: { usdc: '0.999738' } },
|
14
|
-
link: { value: { xyo: '837.731' } },
|
15
|
-
sol: { value: { btc: '0.00169369', eth: '0.02406215', eur: '38.01', usd: '38.79' } },
|
16
|
-
usdc: { value: { btc: '0.0000436965', dai: '0.999963', eth: '0.0006204464999999999', eur: '0.979419', frax: '1.00026', usd: '0.999732' } },
|
17
|
-
usdt: { value: { btc: '0.00004367', eth: '0.0006204', eur: '0.979881', usd: '1.001', usdc: '1.00022', xyo: '113.28' } },
|
18
|
-
wbtc: { value: { btc: '0.99903669', eth: '14.2015745', eur: '22418', usd: '22882', usdc: '22860.8', xyo: '2617950' } },
|
19
|
-
weth: { value: { btc: '0.0703735', usdc: '1610.82', xyo: '186652' } },
|
20
|
-
xyo: { value: { btc: '3.79226e-7', dai: '0.00874169', eth: '0.000005353785', eur: '0.00844792', link: '0.0011937', usd: '0.00872519' } },
|
21
|
-
},
|
22
|
-
schema: 'network.xyo.crypto.asset',
|
23
|
-
timestamp: 1659625815232,
|
24
|
-
};
|
25
|
-
//# sourceMappingURL=storyPayload.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"storyPayload.js","sourceRoot":"","sources":["../../../../src/components/embed-plugin-stories/storyPayload.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,MAAM,EAAE;QACN,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE;QAC1F,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE;QAC1E,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE;QACxF,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE;QACnD,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE;QAC3F,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE;QAClF,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE;QAC9E,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE;QACrC,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE;QACnC,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE;QACpF,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,uBAAuB,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE;QAC1I,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE;QACvH,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE;QACtH,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE;QACrE,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE;KACzI;IACD,MAAM,EAAE,0BAA0B;IAClC,SAAS,EAAE,aAAa;CACzB,CAAA"}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Template = exports.xyoEmbedStoryBase = void 0;
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
5
|
-
const react_router_dom_1 = require("react-router-dom");
|
6
|
-
const embed_card_1 = require("../embed-card");
|
7
|
-
exports.xyoEmbedStoryBase = {
|
8
|
-
argTypes: {},
|
9
|
-
component: embed_card_1.ApiEmbedPluginCard,
|
10
|
-
parameters: {
|
11
|
-
docs: {
|
12
|
-
page: null,
|
13
|
-
},
|
14
|
-
},
|
15
|
-
};
|
16
|
-
const Template = (args) => {
|
17
|
-
return ((0, jsx_runtime_1.jsx)(react_router_dom_1.BrowserRouter, { children: (0, jsx_runtime_1.jsx)(embed_card_1.ApiEmbedPluginCard, Object.assign({}, args)) }));
|
18
|
-
};
|
19
|
-
exports.Template = Template;
|
20
|
-
//# sourceMappingURL=storyShared.js.map
|