@xyo-network/react-embed 2.64.0-rc.3 → 2.64.0-rc.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/browser/components/EmbedPlugin.d.mts.map +1 -0
- package/dist/browser/components/EmbedPlugin.d.ts.map +1 -0
- package/dist/browser/components/EmbedPlugin.js +38 -0
- package/dist/browser/components/EmbedPlugin.js.map +1 -0
- package/dist/browser/components/EmbedResolver.d.mts.map +1 -0
- package/dist/browser/components/EmbedResolver.d.ts.map +1 -0
- package/dist/browser/components/EmbedResolver.js +11 -0
- package/dist/browser/components/EmbedResolver.js.map +1 -0
- package/dist/browser/components/controls/EmbedFormControl.d.mts.map +1 -0
- package/dist/browser/components/controls/EmbedFormControl.d.ts.map +1 -0
- package/dist/browser/components/controls/EmbedFormControl.js +12 -0
- package/dist/browser/components/controls/EmbedFormControl.js.map +1 -0
- package/dist/browser/components/controls/ListModeSelect.d.mts.map +1 -0
- package/dist/browser/components/controls/ListModeSelect.d.ts.map +1 -0
- package/dist/browser/components/controls/ListModeSelect.js +32 -0
- package/dist/browser/components/controls/ListModeSelect.js.map +1 -0
- package/dist/browser/components/controls/RenderSelect.d.mts.map +1 -0
- package/dist/browser/components/controls/RenderSelect.d.ts.map +1 -0
- package/dist/browser/components/controls/RenderSelect.js +14 -0
- package/dist/browser/components/controls/RenderSelect.js.map +1 -0
- package/dist/browser/components/controls/index.d.mts.map +1 -0
- package/dist/browser/components/controls/index.d.ts.map +1 -0
- package/dist/browser/components/controls/index.js +4 -0
- package/dist/browser/components/controls/index.js.map +1 -0
- package/dist/browser/components/embed-card/EmbedCardResolver.d.mts.map +1 -0
- package/dist/browser/components/embed-card/EmbedCardResolver.d.ts.map +1 -0
- package/dist/browser/components/embed-card/EmbedCardResolver.js +27 -0
- package/dist/browser/components/embed-card/EmbedCardResolver.js.map +1 -0
- package/dist/browser/components/embed-card/EmbedPluginCard.d.mts.map +1 -0
- package/dist/browser/components/embed-card/EmbedPluginCard.d.ts.map +1 -0
- package/dist/browser/components/embed-card/EmbedPluginCard.js +61 -0
- package/dist/browser/components/embed-card/EmbedPluginCard.js.map +1 -0
- package/dist/browser/components/embed-card/card/BusyCard.d.mts.map +1 -0
- package/dist/browser/components/embed-card/card/BusyCard.d.ts.map +1 -0
- package/dist/browser/components/embed-card/card/BusyCard.js +26 -0
- package/dist/browser/components/embed-card/card/BusyCard.js.map +1 -0
- package/dist/browser/components/embed-card/card/EmbedCardHeader.d.mts.map +1 -0
- package/dist/browser/components/embed-card/card/EmbedCardHeader.d.ts.map +1 -0
- package/dist/browser/components/embed-card/card/EmbedCardHeader.js +36 -0
- package/dist/browser/components/embed-card/card/EmbedCardHeader.js.map +1 -0
- package/dist/browser/components/embed-card/card/EmbedPluginCard.d.mts.map +1 -0
- package/dist/browser/components/embed-card/card/EmbedPluginCard.d.ts.map +1 -0
- package/dist/browser/components/embed-card/card/EmbedPluginCard.js +26 -0
- package/dist/browser/components/embed-card/card/EmbedPluginCard.js.map +1 -0
- package/dist/browser/components/embed-card/card/index.d.mts.map +1 -0
- package/dist/browser/components/embed-card/card/index.d.ts.map +1 -0
- package/dist/browser/components/embed-card/card/index.js +4 -0
- package/dist/browser/components/embed-card/card/index.js.map +1 -0
- package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.mts.map +1 -0
- package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts.map +1 -0
- package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +13 -0
- package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +1 -0
- package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.d.mts.map +1 -0
- package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.d.ts.map +1 -0
- package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.js +20 -0
- package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.js.map +1 -0
- package/dist/browser/components/embed-card/error-handling/index.d.mts.map +1 -0
- package/dist/browser/components/embed-card/error-handling/index.d.ts.map +1 -0
- package/dist/browser/components/embed-card/error-handling/index.js +3 -0
- package/dist/browser/components/embed-card/error-handling/index.js.map +1 -0
- package/dist/browser/components/embed-card/index.d.mts.map +1 -0
- package/dist/browser/components/embed-card/index.d.ts.map +1 -0
- package/dist/browser/components/embed-card/index.js +3 -0
- package/dist/browser/components/embed-card/index.js.map +1 -0
- package/dist/browser/components/embed-card/menu/EmbedMenu.d.mts.map +1 -0
- package/dist/browser/components/embed-card/menu/EmbedMenu.d.ts.map +1 -0
- package/dist/browser/components/embed-card/menu/EmbedMenu.js +23 -0
- package/dist/browser/components/embed-card/menu/EmbedMenu.js.map +1 -0
- package/dist/browser/components/embed-card/menu/JsonMenuItem.d.mts.map +1 -0
- package/dist/browser/components/embed-card/menu/JsonMenuItem.d.ts.map +1 -0
- package/dist/browser/components/embed-card/menu/JsonMenuItem.js +15 -0
- package/dist/browser/components/embed-card/menu/JsonMenuItem.js.map +1 -0
- package/dist/browser/components/embed-card/menu/index.d.mts.map +1 -0
- package/dist/browser/components/embed-card/menu/index.d.ts.map +1 -0
- package/dist/browser/components/embed-card/menu/index.js +2 -0
- package/dist/browser/components/embed-card/menu/index.js.map +1 -0
- package/dist/browser/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.js +25 -0
- package/dist/browser/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.js.map +1 -0
- package/dist/browser/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.js +85 -0
- package/dist/browser/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.js.map +1 -0
- package/dist/browser/components/embed-plugin-stories/storyPayload.d.mts.map +1 -0
- package/dist/browser/components/embed-plugin-stories/storyPayload.d.ts.map +1 -0
- package/dist/browser/components/embed-plugin-stories/storyPayload.js +25 -0
- package/dist/browser/components/embed-plugin-stories/storyPayload.js.map +1 -0
- package/dist/browser/components/embed-plugin-stories/storyShared.d.mts.map +1 -0
- package/dist/browser/components/embed-plugin-stories/storyShared.d.ts.map +1 -0
- package/dist/browser/components/embed-plugin-stories/storyShared.js +20 -0
- package/dist/browser/components/embed-plugin-stories/storyShared.js.map +1 -0
- package/dist/browser/components/index.d.mts.map +1 -0
- package/dist/browser/components/index.d.ts.map +1 -0
- package/dist/browser/components/index.js +3 -0
- package/dist/browser/components/index.js.map +1 -0
- package/dist/browser/components/validation-alerts/ValidatePayload.d.mts.map +1 -0
- package/dist/browser/components/validation-alerts/ValidatePayload.d.ts.map +1 -0
- package/dist/browser/components/validation-alerts/ValidatePayload.js +18 -0
- package/dist/browser/components/validation-alerts/ValidatePayload.js.map +1 -0
- package/dist/browser/components/validation-alerts/ValidatePlugins.d.mts.map +1 -0
- package/dist/browser/components/validation-alerts/ValidatePlugins.d.ts.map +1 -0
- package/dist/browser/components/validation-alerts/ValidatePlugins.js +18 -0
- package/dist/browser/components/validation-alerts/ValidatePlugins.js.map +1 -0
- package/dist/browser/components/validation-alerts/index.d.mts.map +1 -0
- package/dist/browser/components/validation-alerts/index.d.ts.map +1 -0
- package/dist/browser/components/validation-alerts/index.js +3 -0
- package/dist/browser/components/validation-alerts/index.js.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/Context.d.mts.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/Context.d.ts.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/Context.js +6 -0
- package/dist/browser/contexts/EmbedPluginContext/Context.js.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/Provider.d.mts.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/Provider.d.ts.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/Provider.js +35 -0
- package/dist/browser/contexts/EmbedPluginContext/Provider.js.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/State.d.mts.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/State.d.ts.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/State.js +1 -0
- package/dist/browser/contexts/EmbedPluginContext/State.js.map +1 -0
- package/dist/{contexts/ResolvePayloadContext → browser/contexts/EmbedPluginContext}/index.d.mts.map +1 -1
- package/dist/{contexts/ResolvePayloadContext → browser/contexts/EmbedPluginContext}/index.d.ts.map +1 -1
- package/dist/browser/contexts/EmbedPluginContext/index.js +5 -0
- package/dist/browser/contexts/EmbedPluginContext/index.js.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/use.d.mts.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/use.d.ts.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/use.js +7 -0
- package/dist/browser/contexts/EmbedPluginContext/use.js.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/Context.d.mts.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/Context.d.ts.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/Context.js +6 -0
- package/dist/browser/contexts/RefreshPayloadContext/Context.js.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/Provider.d.mts.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/Provider.d.ts.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/Provider.js +11 -0
- package/dist/browser/contexts/RefreshPayloadContext/Provider.js.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/State.d.mts.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/State.d.ts.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/State.js +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/State.js.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/index.d.mts.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/index.d.ts.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/index.js +4 -0
- package/dist/browser/contexts/RefreshPayloadContext/index.js.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/use.d.mts.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/use.d.ts.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/use.js +7 -0
- package/dist/browser/contexts/RefreshPayloadContext/use.js.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/Context.d.mts.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/Context.d.ts.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/Context.js +6 -0
- package/dist/browser/contexts/ResolvePayloadContext/Context.js.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/Provider.d.mts.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/Provider.d.ts.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/Provider.js +54 -0
- package/dist/browser/contexts/ResolvePayloadContext/Provider.js.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/State.d.mts.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/State.d.ts.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/State.js +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/State.js.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/index.d.mts.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/index.d.ts.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/index.js +5 -0
- package/dist/browser/contexts/ResolvePayloadContext/index.js.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/use.d.mts.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/use.d.ts.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/use.js +7 -0
- package/dist/browser/contexts/ResolvePayloadContext/use.js.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/Context.d.mts.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/Context.d.ts.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/Context.js +6 -0
- package/dist/browser/contexts/ValidatePayloadContext/Context.js.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/Provider.d.mts.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/Provider.d.ts.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/Provider.js +32 -0
- package/dist/browser/contexts/ValidatePayloadContext/Provider.js.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/Provider.stories.js +53 -0
- package/dist/browser/contexts/ValidatePayloadContext/Provider.stories.js.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/State.d.mts.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/State.d.ts.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/State.js +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/State.js.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/index.d.mts.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/index.d.ts.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/index.js +4 -0
- package/dist/browser/contexts/ValidatePayloadContext/index.js.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/use.d.mts.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/use.d.ts.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/use.js +7 -0
- package/dist/browser/contexts/ValidatePayloadContext/use.js.map +1 -0
- package/dist/browser/contexts/index.d.mts.map +1 -0
- package/dist/browser/contexts/index.d.ts.map +1 -0
- package/dist/browser/contexts/index.js +5 -0
- package/dist/browser/contexts/index.js.map +1 -0
- package/dist/browser/index.d.mts.map +1 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +4 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/types/EmbedPluginProps.d.mts.map +1 -0
- package/dist/browser/types/EmbedPluginProps.d.ts.map +1 -0
- package/dist/browser/types/EmbedPluginProps.js +1 -0
- package/dist/browser/types/EmbedPluginProps.js.map +1 -0
- package/dist/browser/types/index.d.mts.map +1 -0
- package/dist/browser/types/index.d.ts.map +1 -0
- package/dist/browser/types/index.js +2 -0
- package/dist/browser/types/index.js.map +1 -0
- package/dist/node/components/EmbedPlugin.d.mts +5 -0
- package/dist/node/components/EmbedPlugin.d.mts.map +1 -0
- package/dist/node/components/EmbedPlugin.d.ts +5 -0
- package/dist/node/components/EmbedPlugin.d.ts.map +1 -0
- package/dist/node/components/EmbedPlugin.js +62 -0
- package/dist/node/components/EmbedPlugin.js.map +1 -0
- package/dist/node/components/EmbedPlugin.mjs +38 -0
- package/dist/node/components/EmbedPlugin.mjs.map +1 -0
- package/dist/node/components/EmbedResolver.d.mts +4 -0
- package/dist/node/components/EmbedResolver.d.mts.map +1 -0
- package/dist/node/components/EmbedResolver.d.ts +4 -0
- package/dist/node/components/EmbedResolver.d.ts.map +1 -0
- package/dist/node/components/EmbedResolver.js +35 -0
- package/dist/node/components/EmbedResolver.js.map +1 -0
- package/dist/node/components/EmbedResolver.mjs +11 -0
- package/dist/node/components/EmbedResolver.mjs.map +1 -0
- package/dist/node/components/controls/EmbedFormControl.d.mts +10 -0
- package/dist/node/components/controls/EmbedFormControl.d.mts.map +1 -0
- package/dist/node/components/controls/EmbedFormControl.d.ts +10 -0
- package/dist/node/components/controls/EmbedFormControl.d.ts.map +1 -0
- package/dist/node/components/controls/EmbedFormControl.js +36 -0
- package/dist/node/components/controls/EmbedFormControl.js.map +1 -0
- package/dist/node/components/controls/EmbedFormControl.mjs +12 -0
- package/dist/node/components/controls/EmbedFormControl.mjs.map +1 -0
- package/dist/node/components/controls/ListModeSelect.d.mts +6 -0
- package/dist/node/components/controls/ListModeSelect.d.mts.map +1 -0
- package/dist/node/components/controls/ListModeSelect.d.ts +6 -0
- package/dist/node/components/controls/ListModeSelect.d.ts.map +1 -0
- package/dist/node/components/controls/ListModeSelect.js +57 -0
- package/dist/node/components/controls/ListModeSelect.js.map +1 -0
- package/dist/node/components/controls/ListModeSelect.mjs +32 -0
- package/dist/node/components/controls/ListModeSelect.mjs.map +1 -0
- package/dist/node/components/controls/RenderSelect.d.mts +4 -0
- package/dist/node/components/controls/RenderSelect.d.mts.map +1 -0
- package/dist/node/components/controls/RenderSelect.d.ts +4 -0
- package/dist/node/components/controls/RenderSelect.d.ts.map +1 -0
- package/dist/node/components/controls/RenderSelect.js +38 -0
- package/dist/node/components/controls/RenderSelect.js.map +1 -0
- package/dist/node/components/controls/RenderSelect.mjs +14 -0
- package/dist/node/components/controls/RenderSelect.mjs.map +1 -0
- package/dist/node/components/controls/index.d.mts +4 -0
- package/dist/node/components/controls/index.d.mts.map +1 -0
- package/dist/node/components/controls/index.d.ts +4 -0
- package/dist/node/components/controls/index.d.ts.map +1 -0
- package/dist/node/components/controls/index.js +27 -0
- package/dist/node/components/controls/index.js.map +1 -0
- package/dist/node/components/controls/index.mjs +4 -0
- package/dist/node/components/controls/index.mjs.map +1 -0
- package/dist/node/components/embed-card/EmbedCardResolver.d.mts +5 -0
- package/dist/node/components/embed-card/EmbedCardResolver.d.mts.map +1 -0
- package/dist/node/components/embed-card/EmbedCardResolver.d.ts +5 -0
- package/dist/node/components/embed-card/EmbedCardResolver.d.ts.map +1 -0
- package/dist/node/components/embed-card/EmbedCardResolver.js +51 -0
- package/dist/node/components/embed-card/EmbedCardResolver.js.map +1 -0
- package/dist/node/components/embed-card/EmbedCardResolver.mjs +27 -0
- package/dist/node/components/embed-card/EmbedCardResolver.mjs.map +1 -0
- package/dist/node/components/embed-card/EmbedPluginCard.d.mts +11 -0
- package/dist/node/components/embed-card/EmbedPluginCard.d.mts.map +1 -0
- package/dist/node/components/embed-card/EmbedPluginCard.d.ts +11 -0
- package/dist/node/components/embed-card/EmbedPluginCard.d.ts.map +1 -0
- package/dist/node/components/embed-card/EmbedPluginCard.js +87 -0
- package/dist/node/components/embed-card/EmbedPluginCard.js.map +1 -0
- package/dist/node/components/embed-card/EmbedPluginCard.mjs +61 -0
- package/dist/node/components/embed-card/EmbedPluginCard.mjs.map +1 -0
- package/dist/node/components/embed-card/card/BusyCard.d.mts +11 -0
- package/dist/node/components/embed-card/card/BusyCard.d.mts.map +1 -0
- package/dist/node/components/embed-card/card/BusyCard.d.ts +11 -0
- package/dist/node/components/embed-card/card/BusyCard.d.ts.map +1 -0
- package/dist/node/components/embed-card/card/BusyCard.js +47 -0
- package/dist/node/components/embed-card/card/BusyCard.js.map +1 -0
- package/dist/node/components/embed-card/card/BusyCard.mjs +26 -0
- package/dist/node/components/embed-card/card/BusyCard.mjs.map +1 -0
- package/dist/node/components/embed-card/card/EmbedCardHeader.d.mts +4 -0
- package/dist/node/components/embed-card/card/EmbedCardHeader.d.mts.map +1 -0
- package/dist/node/components/embed-card/card/EmbedCardHeader.d.ts +4 -0
- package/dist/node/components/embed-card/card/EmbedCardHeader.d.ts.map +1 -0
- package/dist/node/components/embed-card/card/EmbedCardHeader.js +60 -0
- package/dist/node/components/embed-card/card/EmbedCardHeader.js.map +1 -0
- package/dist/node/components/embed-card/card/EmbedCardHeader.mjs +36 -0
- package/dist/node/components/embed-card/card/EmbedCardHeader.mjs.map +1 -0
- package/dist/node/components/embed-card/card/EmbedPluginCard.d.mts +4 -0
- package/dist/node/components/embed-card/card/EmbedPluginCard.d.mts.map +1 -0
- package/dist/node/components/embed-card/card/EmbedPluginCard.d.ts +4 -0
- package/dist/node/components/embed-card/card/EmbedPluginCard.d.ts.map +1 -0
- package/dist/node/components/embed-card/card/EmbedPluginCard.js +50 -0
- package/dist/node/components/embed-card/card/EmbedPluginCard.js.map +1 -0
- package/dist/node/components/embed-card/card/EmbedPluginCard.mjs +26 -0
- package/dist/node/components/embed-card/card/EmbedPluginCard.mjs.map +1 -0
- package/dist/node/components/embed-card/card/index.d.mts +4 -0
- package/dist/node/components/embed-card/card/index.d.mts.map +1 -0
- package/dist/node/components/embed-card/card/index.d.ts +4 -0
- package/dist/node/components/embed-card/card/index.d.ts.map +1 -0
- package/dist/node/components/embed-card/card/index.js +27 -0
- package/dist/node/components/embed-card/card/index.js.map +1 -0
- package/dist/node/components/embed-card/card/index.mjs +4 -0
- package/dist/node/components/embed-card/card/index.mjs.map +1 -0
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.mts +10 -0
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.mts.map +1 -0
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts +10 -0
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts.map +1 -0
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +37 -0
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +1 -0
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.mjs +13 -0
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.mjs.map +1 -0
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.d.mts +15 -0
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.d.mts.map +1 -0
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.d.ts +15 -0
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.d.ts.map +1 -0
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.js +44 -0
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.js.map +1 -0
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.mjs +20 -0
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.mjs.map +1 -0
- package/dist/node/components/embed-card/error-handling/index.d.mts +3 -0
- package/dist/node/components/embed-card/error-handling/index.d.mts.map +1 -0
- package/dist/node/components/embed-card/error-handling/index.d.ts +3 -0
- package/dist/node/components/embed-card/error-handling/index.d.ts.map +1 -0
- package/dist/node/components/embed-card/error-handling/index.js +25 -0
- package/dist/node/components/embed-card/error-handling/index.js.map +1 -0
- package/dist/node/components/embed-card/error-handling/index.mjs +3 -0
- package/dist/node/components/embed-card/error-handling/index.mjs.map +1 -0
- package/dist/node/components/embed-card/index.d.mts +3 -0
- package/dist/node/components/embed-card/index.d.mts.map +1 -0
- package/dist/node/components/embed-card/index.d.ts +3 -0
- package/dist/node/components/embed-card/index.d.ts.map +1 -0
- package/dist/node/components/embed-card/index.js +25 -0
- package/dist/node/components/embed-card/index.js.map +1 -0
- package/dist/node/components/embed-card/index.mjs +3 -0
- package/dist/node/components/embed-card/index.mjs.map +1 -0
- package/dist/node/components/embed-card/menu/EmbedMenu.d.mts +4 -0
- package/dist/node/components/embed-card/menu/EmbedMenu.d.mts.map +1 -0
- package/dist/node/components/embed-card/menu/EmbedMenu.d.ts +4 -0
- package/dist/node/components/embed-card/menu/EmbedMenu.d.ts.map +1 -0
- package/dist/node/components/embed-card/menu/EmbedMenu.js +47 -0
- package/dist/node/components/embed-card/menu/EmbedMenu.js.map +1 -0
- package/dist/node/components/embed-card/menu/EmbedMenu.mjs +23 -0
- package/dist/node/components/embed-card/menu/EmbedMenu.mjs.map +1 -0
- package/dist/node/components/embed-card/menu/JsonMenuItem.d.mts +4 -0
- package/dist/node/components/embed-card/menu/JsonMenuItem.d.mts.map +1 -0
- package/dist/node/components/embed-card/menu/JsonMenuItem.d.ts +4 -0
- package/dist/node/components/embed-card/menu/JsonMenuItem.d.ts.map +1 -0
- package/dist/node/components/embed-card/menu/JsonMenuItem.js +39 -0
- package/dist/node/components/embed-card/menu/JsonMenuItem.js.map +1 -0
- package/dist/node/components/embed-card/menu/JsonMenuItem.mjs +15 -0
- package/dist/node/components/embed-card/menu/JsonMenuItem.mjs.map +1 -0
- package/dist/node/components/embed-card/menu/index.d.mts +2 -0
- package/dist/node/components/embed-card/menu/index.d.mts.map +1 -0
- package/dist/node/components/embed-card/menu/index.d.ts +2 -0
- package/dist/node/components/embed-card/menu/index.d.ts.map +1 -0
- package/dist/node/components/embed-card/menu/index.js +23 -0
- package/dist/node/components/embed-card/menu/index.js.map +1 -0
- package/dist/node/components/embed-card/menu/index.mjs +2 -0
- package/dist/node/components/embed-card/menu/index.mjs.map +1 -0
- package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.js +50 -0
- package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.js.map +1 -0
- package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.mjs +25 -0
- package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.mjs.map +1 -0
- package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.js +115 -0
- package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.js.map +1 -0
- package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.mjs +85 -0
- package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.mjs.map +1 -0
- package/dist/node/components/embed-plugin-stories/storyPayload.d.mts +126 -0
- package/dist/node/components/embed-plugin-stories/storyPayload.d.mts.map +1 -0
- package/dist/node/components/embed-plugin-stories/storyPayload.d.ts +126 -0
- package/dist/node/components/embed-plugin-stories/storyPayload.d.ts.map +1 -0
- package/dist/node/components/embed-plugin-stories/storyPayload.js +49 -0
- package/dist/node/components/embed-plugin-stories/storyPayload.js.map +1 -0
- package/dist/node/components/embed-plugin-stories/storyPayload.mjs +25 -0
- package/dist/node/components/embed-plugin-stories/storyPayload.mjs.map +1 -0
- package/dist/node/components/embed-plugin-stories/storyShared.d.mts +5 -0
- package/dist/node/components/embed-plugin-stories/storyShared.d.mts.map +1 -0
- package/dist/node/components/embed-plugin-stories/storyShared.d.ts +5 -0
- package/dist/node/components/embed-plugin-stories/storyShared.d.ts.map +1 -0
- package/dist/node/components/embed-plugin-stories/storyShared.js +45 -0
- package/dist/node/components/embed-plugin-stories/storyShared.js.map +1 -0
- package/dist/node/components/embed-plugin-stories/storyShared.mjs +20 -0
- package/dist/node/components/embed-plugin-stories/storyShared.mjs.map +1 -0
- package/dist/node/components/index.d.mts +3 -0
- package/dist/node/components/index.d.mts.map +1 -0
- package/dist/node/components/index.d.ts +3 -0
- package/dist/node/components/index.d.ts.map +1 -0
- package/dist/node/components/index.js +25 -0
- package/dist/node/components/index.js.map +1 -0
- package/dist/node/components/index.mjs +3 -0
- package/dist/node/components/index.mjs.map +1 -0
- package/dist/node/components/validation-alerts/ValidatePayload.d.mts +5 -0
- package/dist/node/components/validation-alerts/ValidatePayload.d.mts.map +1 -0
- package/dist/node/components/validation-alerts/ValidatePayload.d.ts +5 -0
- package/dist/node/components/validation-alerts/ValidatePayload.d.ts.map +1 -0
- package/dist/node/components/validation-alerts/ValidatePayload.js +42 -0
- package/dist/node/components/validation-alerts/ValidatePayload.js.map +1 -0
- package/dist/node/components/validation-alerts/ValidatePayload.mjs +18 -0
- package/dist/node/components/validation-alerts/ValidatePayload.mjs.map +1 -0
- package/dist/node/components/validation-alerts/ValidatePlugins.d.mts +5 -0
- package/dist/node/components/validation-alerts/ValidatePlugins.d.mts.map +1 -0
- package/dist/node/components/validation-alerts/ValidatePlugins.d.ts +5 -0
- package/dist/node/components/validation-alerts/ValidatePlugins.d.ts.map +1 -0
- package/dist/node/components/validation-alerts/ValidatePlugins.js +42 -0
- package/dist/node/components/validation-alerts/ValidatePlugins.js.map +1 -0
- package/dist/node/components/validation-alerts/ValidatePlugins.mjs +18 -0
- package/dist/node/components/validation-alerts/ValidatePlugins.mjs.map +1 -0
- package/dist/node/components/validation-alerts/index.d.mts +3 -0
- package/dist/node/components/validation-alerts/index.d.mts.map +1 -0
- package/dist/node/components/validation-alerts/index.d.ts +3 -0
- package/dist/node/components/validation-alerts/index.d.ts.map +1 -0
- package/dist/node/components/validation-alerts/index.js +25 -0
- package/dist/node/components/validation-alerts/index.js.map +1 -0
- package/dist/node/components/validation-alerts/index.mjs +3 -0
- package/dist/node/components/validation-alerts/index.mjs.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/Context.d.mts +4 -0
- package/dist/node/contexts/EmbedPluginContext/Context.d.mts.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/Context.d.ts +4 -0
- package/dist/node/contexts/EmbedPluginContext/Context.d.ts.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/Context.js +30 -0
- package/dist/node/contexts/EmbedPluginContext/Context.js.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/Context.mjs +6 -0
- package/dist/node/contexts/EmbedPluginContext/Context.mjs.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/Provider.d.mts +7 -0
- package/dist/node/contexts/EmbedPluginContext/Provider.d.mts.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/Provider.d.ts +7 -0
- package/dist/node/contexts/EmbedPluginContext/Provider.d.ts.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/Provider.js +59 -0
- package/dist/node/contexts/EmbedPluginContext/Provider.js.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/Provider.mjs +35 -0
- package/dist/node/contexts/EmbedPluginContext/Provider.mjs.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/State.d.mts +33 -0
- package/dist/node/contexts/EmbedPluginContext/State.d.mts.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/State.d.ts +33 -0
- package/dist/node/contexts/EmbedPluginContext/State.d.ts.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/State.js +17 -0
- package/dist/node/contexts/EmbedPluginContext/State.js.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/State.mjs +1 -0
- package/dist/node/contexts/EmbedPluginContext/State.mjs.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/index.d.mts +5 -0
- package/dist/node/contexts/EmbedPluginContext/index.d.mts.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/index.d.ts +5 -0
- package/dist/node/contexts/EmbedPluginContext/index.d.ts.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/index.js +29 -0
- package/dist/node/contexts/EmbedPluginContext/index.js.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/index.mjs +5 -0
- package/dist/node/contexts/EmbedPluginContext/index.mjs.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/use.d.mts +2 -0
- package/dist/node/contexts/EmbedPluginContext/use.d.mts.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/use.d.ts +2 -0
- package/dist/node/contexts/EmbedPluginContext/use.d.ts.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/use.js +31 -0
- package/dist/node/contexts/EmbedPluginContext/use.js.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/use.mjs +7 -0
- package/dist/node/contexts/EmbedPluginContext/use.mjs.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/Context.d.mts +4 -0
- package/dist/node/contexts/RefreshPayloadContext/Context.d.mts.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/Context.d.ts +4 -0
- package/dist/node/contexts/RefreshPayloadContext/Context.d.ts.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/Context.js +30 -0
- package/dist/node/contexts/RefreshPayloadContext/Context.js.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/Context.mjs +6 -0
- package/dist/node/contexts/RefreshPayloadContext/Context.mjs.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/Provider.d.mts +8 -0
- package/dist/node/contexts/RefreshPayloadContext/Provider.d.mts.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/Provider.d.ts +8 -0
- package/dist/node/contexts/RefreshPayloadContext/Provider.d.ts.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/Provider.js +35 -0
- package/dist/node/contexts/RefreshPayloadContext/Provider.js.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/Provider.mjs +11 -0
- package/dist/node/contexts/RefreshPayloadContext/Provider.mjs.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/State.d.mts +8 -0
- package/dist/node/contexts/RefreshPayloadContext/State.d.mts.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/State.d.ts +8 -0
- package/dist/node/contexts/RefreshPayloadContext/State.d.ts.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/State.js +17 -0
- package/dist/node/contexts/RefreshPayloadContext/State.js.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/State.mjs +1 -0
- package/dist/node/contexts/RefreshPayloadContext/State.mjs.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/index.d.mts +4 -0
- package/dist/node/contexts/RefreshPayloadContext/index.d.mts.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/index.d.ts +4 -0
- package/dist/node/contexts/RefreshPayloadContext/index.d.ts.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/index.js +27 -0
- package/dist/node/contexts/RefreshPayloadContext/index.js.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/index.mjs +4 -0
- package/dist/node/contexts/RefreshPayloadContext/index.mjs.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/use.d.mts +2 -0
- package/dist/node/contexts/RefreshPayloadContext/use.d.mts.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/use.d.ts +2 -0
- package/dist/node/contexts/RefreshPayloadContext/use.d.ts.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/use.js +31 -0
- package/dist/node/contexts/RefreshPayloadContext/use.js.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/use.mjs +7 -0
- package/dist/node/contexts/RefreshPayloadContext/use.mjs.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/Context.d.mts +4 -0
- package/dist/node/contexts/ResolvePayloadContext/Context.d.mts.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/Context.d.ts +4 -0
- package/dist/node/contexts/ResolvePayloadContext/Context.d.ts.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/Context.js +30 -0
- package/dist/node/contexts/ResolvePayloadContext/Context.js.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/Context.mjs +6 -0
- package/dist/node/contexts/ResolvePayloadContext/Context.mjs.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/Provider.d.mts +6 -0
- package/dist/node/contexts/ResolvePayloadContext/Provider.d.mts.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/Provider.d.ts +6 -0
- package/dist/node/contexts/ResolvePayloadContext/Provider.d.ts.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/Provider.js +78 -0
- package/dist/node/contexts/ResolvePayloadContext/Provider.js.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/Provider.mjs +54 -0
- package/dist/node/contexts/ResolvePayloadContext/Provider.mjs.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/State.d.mts +13 -0
- package/dist/node/contexts/ResolvePayloadContext/State.d.mts.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/State.d.ts +13 -0
- package/dist/node/contexts/ResolvePayloadContext/State.d.ts.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/State.js +17 -0
- package/dist/node/contexts/ResolvePayloadContext/State.js.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/State.mjs +1 -0
- package/dist/node/contexts/ResolvePayloadContext/State.mjs.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/index.d.mts +5 -0
- package/dist/node/contexts/ResolvePayloadContext/index.d.mts.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/index.d.ts +5 -0
- package/dist/node/contexts/ResolvePayloadContext/index.d.ts.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/index.js +29 -0
- package/dist/node/contexts/ResolvePayloadContext/index.js.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/index.mjs +5 -0
- package/dist/node/contexts/ResolvePayloadContext/index.mjs.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/use.d.mts +2 -0
- package/dist/node/contexts/ResolvePayloadContext/use.d.mts.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/use.d.ts +2 -0
- package/dist/node/contexts/ResolvePayloadContext/use.d.ts.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/use.js +31 -0
- package/dist/node/contexts/ResolvePayloadContext/use.js.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/use.mjs +7 -0
- package/dist/node/contexts/ResolvePayloadContext/use.mjs.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/Context.d.mts +4 -0
- package/dist/node/contexts/ValidatePayloadContext/Context.d.mts.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/Context.d.ts +4 -0
- package/dist/node/contexts/ValidatePayloadContext/Context.d.ts.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/Context.js +30 -0
- package/dist/node/contexts/ValidatePayloadContext/Context.js.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/Context.mjs +6 -0
- package/dist/node/contexts/ValidatePayloadContext/Context.mjs.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/Provider.d.mts +7 -0
- package/dist/node/contexts/ValidatePayloadContext/Provider.d.mts.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/Provider.d.ts +7 -0
- package/dist/node/contexts/ValidatePayloadContext/Provider.d.ts.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/Provider.js +56 -0
- package/dist/node/contexts/ValidatePayloadContext/Provider.js.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/Provider.mjs +32 -0
- package/dist/node/contexts/ValidatePayloadContext/Provider.mjs.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/Provider.stories.js +79 -0
- package/dist/node/contexts/ValidatePayloadContext/Provider.stories.js.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/Provider.stories.mjs +53 -0
- package/dist/node/contexts/ValidatePayloadContext/Provider.stories.mjs.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/State.d.mts +7 -0
- package/dist/node/contexts/ValidatePayloadContext/State.d.mts.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/State.d.ts +7 -0
- package/dist/node/contexts/ValidatePayloadContext/State.d.ts.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/State.js +17 -0
- package/dist/node/contexts/ValidatePayloadContext/State.js.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/State.mjs +1 -0
- package/dist/node/contexts/ValidatePayloadContext/State.mjs.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/index.d.mts +4 -0
- package/dist/node/contexts/ValidatePayloadContext/index.d.mts.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/index.d.ts +4 -0
- package/dist/node/contexts/ValidatePayloadContext/index.d.ts.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/index.js +27 -0
- package/dist/node/contexts/ValidatePayloadContext/index.js.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/index.mjs +4 -0
- package/dist/node/contexts/ValidatePayloadContext/index.mjs.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/use.d.mts +2 -0
- package/dist/node/contexts/ValidatePayloadContext/use.d.mts.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/use.d.ts +2 -0
- package/dist/node/contexts/ValidatePayloadContext/use.d.ts.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/use.js +31 -0
- package/dist/node/contexts/ValidatePayloadContext/use.js.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/use.mjs +7 -0
- package/dist/node/contexts/ValidatePayloadContext/use.mjs.map +1 -0
- package/dist/node/contexts/index.d.mts +5 -0
- package/dist/node/contexts/index.d.mts.map +1 -0
- package/dist/node/contexts/index.d.ts +5 -0
- package/dist/node/contexts/index.d.ts.map +1 -0
- package/dist/node/contexts/index.js +29 -0
- package/dist/node/contexts/index.js.map +1 -0
- package/dist/node/contexts/index.mjs +5 -0
- package/dist/node/contexts/index.mjs.map +1 -0
- package/dist/node/index.d.mts +4 -0
- package/dist/node/index.d.mts.map +1 -0
- package/dist/node/index.d.ts +4 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +27 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/index.mjs +4 -0
- package/dist/node/index.mjs.map +1 -0
- package/dist/node/types/EmbedPluginProps.d.mts +10 -0
- package/dist/node/types/EmbedPluginProps.d.mts.map +1 -0
- package/dist/node/types/EmbedPluginProps.d.ts +10 -0
- package/dist/node/types/EmbedPluginProps.d.ts.map +1 -0
- package/dist/node/types/EmbedPluginProps.js +17 -0
- package/dist/node/types/EmbedPluginProps.js.map +1 -0
- package/dist/node/types/EmbedPluginProps.mjs +1 -0
- package/dist/node/types/EmbedPluginProps.mjs.map +1 -0
- package/dist/node/types/index.d.mts +2 -0
- package/dist/node/types/index.d.mts.map +1 -0
- package/dist/node/types/index.d.ts +2 -0
- package/dist/node/types/index.d.ts.map +1 -0
- package/dist/node/types/index.js +23 -0
- package/dist/node/types/index.js.map +1 -0
- package/dist/node/types/index.mjs +2 -0
- package/dist/node/types/index.mjs.map +1 -0
- package/package.json +28 -28
- package/dist/components/EmbedPlugin.d.mts.map +0 -1
- package/dist/components/EmbedPlugin.d.ts.map +0 -1
- package/dist/components/EmbedResolver.d.mts.map +0 -1
- package/dist/components/EmbedResolver.d.ts.map +0 -1
- package/dist/components/controls/EmbedFormControl.d.mts.map +0 -1
- package/dist/components/controls/EmbedFormControl.d.ts.map +0 -1
- package/dist/components/controls/ListModeSelect.d.mts.map +0 -1
- package/dist/components/controls/ListModeSelect.d.ts.map +0 -1
- package/dist/components/controls/RenderSelect.d.mts.map +0 -1
- package/dist/components/controls/RenderSelect.d.ts.map +0 -1
- package/dist/components/controls/index.d.mts.map +0 -1
- package/dist/components/controls/index.d.ts.map +0 -1
- package/dist/components/embed-card/EmbedCardResolver.d.mts.map +0 -1
- package/dist/components/embed-card/EmbedCardResolver.d.ts.map +0 -1
- package/dist/components/embed-card/EmbedPluginCard.d.mts.map +0 -1
- package/dist/components/embed-card/EmbedPluginCard.d.ts.map +0 -1
- package/dist/components/embed-card/card/BusyCard.d.mts.map +0 -1
- package/dist/components/embed-card/card/BusyCard.d.ts.map +0 -1
- package/dist/components/embed-card/card/EmbedCardHeader.d.mts.map +0 -1
- package/dist/components/embed-card/card/EmbedCardHeader.d.ts.map +0 -1
- package/dist/components/embed-card/card/EmbedPluginCard.d.mts.map +0 -1
- package/dist/components/embed-card/card/EmbedPluginCard.d.ts.map +0 -1
- package/dist/components/embed-card/card/index.d.mts.map +0 -1
- package/dist/components/embed-card/card/index.d.ts.map +0 -1
- package/dist/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.mts.map +0 -1
- package/dist/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts.map +0 -1
- package/dist/components/embed-card/error-handling/EmbedErrorCard.d.mts.map +0 -1
- package/dist/components/embed-card/error-handling/EmbedErrorCard.d.ts.map +0 -1
- package/dist/components/embed-card/error-handling/index.d.mts.map +0 -1
- package/dist/components/embed-card/error-handling/index.d.ts.map +0 -1
- package/dist/components/embed-card/index.d.mts.map +0 -1
- package/dist/components/embed-card/index.d.ts.map +0 -1
- package/dist/components/embed-card/menu/EmbedMenu.d.mts.map +0 -1
- package/dist/components/embed-card/menu/EmbedMenu.d.ts.map +0 -1
- package/dist/components/embed-card/menu/JsonMenuItem.d.mts.map +0 -1
- package/dist/components/embed-card/menu/JsonMenuItem.d.ts.map +0 -1
- package/dist/components/embed-card/menu/index.d.mts.map +0 -1
- package/dist/components/embed-card/menu/index.d.ts.map +0 -1
- package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.mts +0 -6
- package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.mts.map +0 -1
- package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.ts +0 -6
- package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.ts.map +0 -1
- package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.mts +0 -11
- package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.mts.map +0 -1
- package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.ts +0 -11
- package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.ts.map +0 -1
- package/dist/components/embed-plugin-stories/storyPayload.d.mts.map +0 -1
- package/dist/components/embed-plugin-stories/storyPayload.d.ts.map +0 -1
- package/dist/components/embed-plugin-stories/storyShared.d.mts.map +0 -1
- package/dist/components/embed-plugin-stories/storyShared.d.ts.map +0 -1
- package/dist/components/index.d.mts.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/validation-alerts/ValidatePayload.d.mts.map +0 -1
- package/dist/components/validation-alerts/ValidatePayload.d.ts.map +0 -1
- package/dist/components/validation-alerts/ValidatePlugins.d.mts.map +0 -1
- package/dist/components/validation-alerts/ValidatePlugins.d.ts.map +0 -1
- package/dist/components/validation-alerts/index.d.mts.map +0 -1
- package/dist/components/validation-alerts/index.d.ts.map +0 -1
- package/dist/contexts/EmbedPluginContext/Context.d.mts.map +0 -1
- package/dist/contexts/EmbedPluginContext/Context.d.ts.map +0 -1
- package/dist/contexts/EmbedPluginContext/Provider.d.mts.map +0 -1
- package/dist/contexts/EmbedPluginContext/Provider.d.ts.map +0 -1
- package/dist/contexts/EmbedPluginContext/State.d.mts.map +0 -1
- package/dist/contexts/EmbedPluginContext/State.d.ts.map +0 -1
- package/dist/contexts/EmbedPluginContext/index.d.mts.map +0 -1
- package/dist/contexts/EmbedPluginContext/index.d.ts.map +0 -1
- package/dist/contexts/EmbedPluginContext/use.d.mts.map +0 -1
- package/dist/contexts/EmbedPluginContext/use.d.ts.map +0 -1
- package/dist/contexts/RefreshPayloadContext/Context.d.mts.map +0 -1
- package/dist/contexts/RefreshPayloadContext/Context.d.ts.map +0 -1
- package/dist/contexts/RefreshPayloadContext/Provider.d.mts.map +0 -1
- package/dist/contexts/RefreshPayloadContext/Provider.d.ts.map +0 -1
- package/dist/contexts/RefreshPayloadContext/State.d.mts.map +0 -1
- package/dist/contexts/RefreshPayloadContext/State.d.ts.map +0 -1
- package/dist/contexts/RefreshPayloadContext/index.d.mts.map +0 -1
- package/dist/contexts/RefreshPayloadContext/index.d.ts.map +0 -1
- package/dist/contexts/RefreshPayloadContext/use.d.mts.map +0 -1
- package/dist/contexts/RefreshPayloadContext/use.d.ts.map +0 -1
- package/dist/contexts/ResolvePayloadContext/Context.d.mts.map +0 -1
- package/dist/contexts/ResolvePayloadContext/Context.d.ts.map +0 -1
- package/dist/contexts/ResolvePayloadContext/Provider.d.mts.map +0 -1
- package/dist/contexts/ResolvePayloadContext/Provider.d.ts.map +0 -1
- package/dist/contexts/ResolvePayloadContext/State.d.mts.map +0 -1
- package/dist/contexts/ResolvePayloadContext/State.d.ts.map +0 -1
- package/dist/contexts/ResolvePayloadContext/use.d.mts.map +0 -1
- package/dist/contexts/ResolvePayloadContext/use.d.ts.map +0 -1
- package/dist/contexts/ValidatePayloadContext/Context.d.mts.map +0 -1
- package/dist/contexts/ValidatePayloadContext/Context.d.ts.map +0 -1
- package/dist/contexts/ValidatePayloadContext/Provider.d.mts.map +0 -1
- package/dist/contexts/ValidatePayloadContext/Provider.d.ts.map +0 -1
- package/dist/contexts/ValidatePayloadContext/Provider.stories.d.mts +0 -15
- package/dist/contexts/ValidatePayloadContext/Provider.stories.d.mts.map +0 -1
- package/dist/contexts/ValidatePayloadContext/Provider.stories.d.ts +0 -15
- package/dist/contexts/ValidatePayloadContext/Provider.stories.d.ts.map +0 -1
- package/dist/contexts/ValidatePayloadContext/State.d.mts.map +0 -1
- package/dist/contexts/ValidatePayloadContext/State.d.ts.map +0 -1
- package/dist/contexts/ValidatePayloadContext/index.d.mts.map +0 -1
- package/dist/contexts/ValidatePayloadContext/index.d.ts.map +0 -1
- package/dist/contexts/ValidatePayloadContext/use.d.mts.map +0 -1
- package/dist/contexts/ValidatePayloadContext/use.d.ts.map +0 -1
- package/dist/contexts/index.d.mts.map +0 -1
- package/dist/contexts/index.d.ts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -533
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -493
- package/dist/index.mjs.map +0 -1
- package/dist/types/EmbedPluginProps.d.mts.map +0 -1
- package/dist/types/EmbedPluginProps.d.ts.map +0 -1
- package/dist/types/index.d.mts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- /package/dist/{components → browser/components}/EmbedPlugin.d.mts +0 -0
- /package/dist/{components → browser/components}/EmbedPlugin.d.ts +0 -0
- /package/dist/{components → browser/components}/EmbedResolver.d.mts +0 -0
- /package/dist/{components → browser/components}/EmbedResolver.d.ts +0 -0
- /package/dist/{components → browser/components}/controls/EmbedFormControl.d.mts +0 -0
- /package/dist/{components → browser/components}/controls/EmbedFormControl.d.ts +0 -0
- /package/dist/{components → browser/components}/controls/ListModeSelect.d.mts +0 -0
- /package/dist/{components → browser/components}/controls/ListModeSelect.d.ts +0 -0
- /package/dist/{components → browser/components}/controls/RenderSelect.d.mts +0 -0
- /package/dist/{components → browser/components}/controls/RenderSelect.d.ts +0 -0
- /package/dist/{components → browser/components}/controls/index.d.mts +0 -0
- /package/dist/{components → browser/components}/controls/index.d.ts +0 -0
- /package/dist/{components → browser/components}/embed-card/EmbedCardResolver.d.mts +0 -0
- /package/dist/{components → browser/components}/embed-card/EmbedCardResolver.d.ts +0 -0
- /package/dist/{components → browser/components}/embed-card/EmbedPluginCard.d.mts +0 -0
- /package/dist/{components → browser/components}/embed-card/EmbedPluginCard.d.ts +0 -0
- /package/dist/{components → browser/components}/embed-card/card/BusyCard.d.mts +0 -0
- /package/dist/{components → browser/components}/embed-card/card/BusyCard.d.ts +0 -0
- /package/dist/{components → browser/components}/embed-card/card/EmbedCardHeader.d.mts +0 -0
- /package/dist/{components → browser/components}/embed-card/card/EmbedCardHeader.d.ts +0 -0
- /package/dist/{components → browser/components}/embed-card/card/EmbedPluginCard.d.mts +0 -0
- /package/dist/{components → browser/components}/embed-card/card/EmbedPluginCard.d.ts +0 -0
- /package/dist/{components → browser/components}/embed-card/card/index.d.mts +0 -0
- /package/dist/{components → browser/components}/embed-card/card/index.d.ts +0 -0
- /package/dist/{components → browser/components}/embed-card/error-handling/EmbedCardApiErrorRenderer.d.mts +0 -0
- /package/dist/{components → browser/components}/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts +0 -0
- /package/dist/{components → browser/components}/embed-card/error-handling/EmbedErrorCard.d.mts +0 -0
- /package/dist/{components → browser/components}/embed-card/error-handling/EmbedErrorCard.d.ts +0 -0
- /package/dist/{components → browser/components}/embed-card/error-handling/index.d.mts +0 -0
- /package/dist/{components → browser/components}/embed-card/error-handling/index.d.ts +0 -0
- /package/dist/{components → browser/components}/embed-card/index.d.mts +0 -0
- /package/dist/{components → browser/components}/embed-card/index.d.ts +0 -0
- /package/dist/{components → browser/components}/embed-card/menu/EmbedMenu.d.mts +0 -0
- /package/dist/{components → browser/components}/embed-card/menu/EmbedMenu.d.ts +0 -0
- /package/dist/{components → browser/components}/embed-card/menu/JsonMenuItem.d.mts +0 -0
- /package/dist/{components → browser/components}/embed-card/menu/JsonMenuItem.d.ts +0 -0
- /package/dist/{components → browser/components}/embed-card/menu/index.d.mts +0 -0
- /package/dist/{components → browser/components}/embed-card/menu/index.d.ts +0 -0
- /package/dist/{components → browser/components}/embed-plugin-stories/storyPayload.d.mts +0 -0
- /package/dist/{components → browser/components}/embed-plugin-stories/storyPayload.d.ts +0 -0
- /package/dist/{components → browser/components}/embed-plugin-stories/storyShared.d.mts +0 -0
- /package/dist/{components → browser/components}/embed-plugin-stories/storyShared.d.ts +0 -0
- /package/dist/{components → browser/components}/index.d.mts +0 -0
- /package/dist/{components → browser/components}/index.d.ts +0 -0
- /package/dist/{components → browser/components}/validation-alerts/ValidatePayload.d.mts +0 -0
- /package/dist/{components → browser/components}/validation-alerts/ValidatePayload.d.ts +0 -0
- /package/dist/{components → browser/components}/validation-alerts/ValidatePlugins.d.mts +0 -0
- /package/dist/{components → browser/components}/validation-alerts/ValidatePlugins.d.ts +0 -0
- /package/dist/{components → browser/components}/validation-alerts/index.d.mts +0 -0
- /package/dist/{components → browser/components}/validation-alerts/index.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/EmbedPluginContext/Context.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/EmbedPluginContext/Context.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/EmbedPluginContext/Provider.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/EmbedPluginContext/Provider.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/EmbedPluginContext/State.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/EmbedPluginContext/State.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/EmbedPluginContext/index.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/EmbedPluginContext/index.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/EmbedPluginContext/use.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/EmbedPluginContext/use.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/RefreshPayloadContext/Context.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/RefreshPayloadContext/Context.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/RefreshPayloadContext/Provider.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/RefreshPayloadContext/Provider.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/RefreshPayloadContext/State.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/RefreshPayloadContext/State.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/RefreshPayloadContext/index.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/RefreshPayloadContext/index.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/RefreshPayloadContext/use.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/RefreshPayloadContext/use.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/ResolvePayloadContext/Context.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/ResolvePayloadContext/Context.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/ResolvePayloadContext/Provider.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/ResolvePayloadContext/Provider.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/ResolvePayloadContext/State.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/ResolvePayloadContext/State.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/ResolvePayloadContext/index.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/ResolvePayloadContext/index.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/ResolvePayloadContext/use.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/ResolvePayloadContext/use.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/ValidatePayloadContext/Context.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/ValidatePayloadContext/Context.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/ValidatePayloadContext/Provider.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/ValidatePayloadContext/Provider.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/ValidatePayloadContext/State.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/ValidatePayloadContext/State.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/ValidatePayloadContext/index.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/ValidatePayloadContext/index.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/ValidatePayloadContext/use.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/ValidatePayloadContext/use.d.ts +0 -0
- /package/dist/{contexts → browser/contexts}/index.d.mts +0 -0
- /package/dist/{contexts → browser/contexts}/index.d.ts +0 -0
- /package/dist/{index.d.mts → browser/index.d.mts} +0 -0
- /package/dist/{index.d.ts → browser/index.d.ts} +0 -0
- /package/dist/{types → browser/types}/EmbedPluginProps.d.mts +0 -0
- /package/dist/{types → browser/types}/EmbedPluginProps.d.ts +0 -0
- /package/dist/{types → browser/types}/index.d.mts +0 -0
- /package/dist/{types → browser/types}/index.d.ts +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/EmbedPlugin.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAInD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAI3C,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,gBAAgB,CAAC,CA4BrE,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/EmbedPlugin.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAInD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAI3C,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,gBAAgB,CAAC,CA4BrE,CAAA"}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { ErrorBoundary, ListModeProvider } from "@xyo-network/react-shared";
|
3
|
+
import { EmbedPluginProvider, RefreshPayloadProvider, ResolvePayloadProvider, ValidatePayloadProvider } from "../contexts";
|
4
|
+
import { EmbedResolver } from "./EmbedResolver";
|
5
|
+
import { ValidatePayloadAlert, ValidatePluginsAlert } from "./validation-alerts";
|
6
|
+
const EmbedPluginInner = ({
|
7
|
+
validateSchema,
|
8
|
+
plugins = [],
|
9
|
+
huriPayload,
|
10
|
+
refreshTitle = "",
|
11
|
+
timestampLabel = "Data From",
|
12
|
+
hideElementsConfig,
|
13
|
+
embedPluginConfig,
|
14
|
+
onRefresh,
|
15
|
+
children
|
16
|
+
}) => {
|
17
|
+
return /* @__PURE__ */ jsx(ErrorBoundary, { children: /* @__PURE__ */ jsx(
|
18
|
+
EmbedPluginProvider,
|
19
|
+
{
|
20
|
+
refreshTitle,
|
21
|
+
timestampLabel,
|
22
|
+
hideElementsConfig,
|
23
|
+
plugins,
|
24
|
+
embedPluginConfig,
|
25
|
+
children: /* @__PURE__ */ jsx(WithResolvers, { onRefresh, huriPayload, children: /* @__PURE__ */ jsx(WithValidators, { validateSchema, children: /* @__PURE__ */ jsx(ListModeProvider, { defaultListMode: embedPluginConfig?.listMode, children }) }) })
|
26
|
+
}
|
27
|
+
) });
|
28
|
+
};
|
29
|
+
const WithResolvers = ({ children, onRefresh, huriPayload }) => {
|
30
|
+
return /* @__PURE__ */ jsx(RefreshPayloadProvider, { onRefresh, children: /* @__PURE__ */ jsx(ResolvePayloadProvider, { huriPayload, children: /* @__PURE__ */ jsx(EmbedResolver, { children }) }) });
|
31
|
+
};
|
32
|
+
const WithValidators = ({ children, validateSchema }) => {
|
33
|
+
return /* @__PURE__ */ jsx(ValidatePayloadProvider, { enabled: validateSchema, children: /* @__PURE__ */ jsx(ValidatePluginsAlert, { children: /* @__PURE__ */ jsx(ValidatePayloadAlert, { children }) }) });
|
34
|
+
};
|
35
|
+
export {
|
36
|
+
EmbedPluginInner
|
37
|
+
};
|
38
|
+
//# sourceMappingURL=EmbedPlugin.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/EmbedPlugin.tsx"],"sourcesContent":["import { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { ErrorBoundary, ListModeProvider } from '@xyo-network/react-shared'\n\nimport { EmbedPluginProvider, RefreshPayloadProvider, ResolvePayloadProvider, ValidatePayloadProvider } from '../contexts'\nimport { EmbedPluginProps } from '../types'\nimport { EmbedResolver } from './EmbedResolver'\nimport { ValidatePayloadAlert, ValidatePluginsAlert } from './validation-alerts'\n\nexport const EmbedPluginInner: React.FC<WithChildren<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<WithChildren<WithResolversProps>> = ({ children, onRefresh, huriPayload }) => {\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<WithChildren<{ validateSchema?: boolean }>> = ({ children, validateSchema }) => {\n return (\n <ValidatePayloadProvider enabled={validateSchema}>\n <ValidatePluginsAlert>\n <ValidatePayloadAlert>{children}</ValidatePayloadAlert>\n </ValidatePluginsAlert>\n </ValidatePayloadProvider>\n )\n}\n"],"mappings":"AA+BY;AA7BZ,SAAS,eAAe,wBAAwB;AAEhD,SAAS,qBAAqB,wBAAwB,wBAAwB,+BAA+B;AAE7G,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB,4BAA4B;AAEpD,MAAM,mBAA6D,CAAC;AAAA,EACzE;AAAA,EACA,UAAU,CAAC;AAAA,EACX;AAAA,EACA,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,SACE,oBAAC,iBACC;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MAEA,8BAAC,iBAAc,WAAsB,aACnC,8BAAC,kBAAe,gBACd,8BAAC,oBAAiB,iBAAiB,mBAAmB,UAAW,UAAS,GAC5E,GACF;AAAA;AAAA,EACF,GACF;AAEJ;AAIA,MAAM,gBAA4D,CAAC,EAAE,UAAU,WAAW,YAAY,MAAM;AAC1G,SACE,oBAAC,0BAAuB,WACtB,8BAAC,0BAAuB,aACtB,8BAAC,iBAAe,UAAS,GAC3B,GACF;AAEJ;AAEA,MAAM,iBAAuE,CAAC,EAAE,UAAU,eAAe,MAAM;AAC7G,SACE,oBAAC,2BAAwB,SAAS,gBAChC,8BAAC,wBACC,8BAAC,wBAAsB,UAAS,GAClC,GACF;AAEJ;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedResolver.d.ts","sourceRoot":"","sources":["../../../src/components/EmbedResolver.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAKnD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAQhD,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedResolver.d.ts","sourceRoot":"","sources":["../../../src/components/EmbedResolver.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAKnD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAQhD,CAAA"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { LoadResult } from "@xyo-network/react-shared";
|
3
|
+
import { useResolvePayload } from "../contexts";
|
4
|
+
const EmbedResolver = ({ children }) => {
|
5
|
+
const { payload, notFound, huriError } = useResolvePayload();
|
6
|
+
return /* @__PURE__ */ jsx(LoadResult, { searchResult: payload, notFound: !!notFound, error: !!huriError, children });
|
7
|
+
};
|
8
|
+
export {
|
9
|
+
EmbedResolver
|
10
|
+
};
|
11
|
+
//# sourceMappingURL=EmbedResolver.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/components/EmbedResolver.tsx"],"sourcesContent":["import { WithChildren } from '@xylabs/react-shared'\nimport { LoadResult } from '@xyo-network/react-shared'\n\nimport { useResolvePayload } from '../contexts'\n\nexport const EmbedResolver: React.FC<WithChildren> = ({ children }) => {\n const { payload, notFound, huriError } = useResolvePayload()\n\n return (\n <LoadResult searchResult={payload} notFound={!!notFound} error={!!huriError}>\n {children}\n </LoadResult>\n )\n}\n"],"mappings":"AASI;AARJ,SAAS,kBAAkB;AAE3B,SAAS,yBAAyB;AAE3B,MAAM,gBAAwC,CAAC,EAAE,SAAS,MAAM;AACrE,QAAM,EAAE,SAAS,UAAU,UAAU,IAAI,kBAAkB;AAE3D,SACE,oBAAC,cAAW,cAAc,SAAS,UAAU,CAAC,CAAC,UAAU,OAAO,CAAC,CAAC,WAC/D,UACH;AAEJ;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedFormControl.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/EmbedFormControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAe,gBAAgB,EAAc,MAAM,eAAe,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,UAAU,qBAAsB,SAAQ,gBAAgB;IACtD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAO1E,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedFormControl.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/EmbedFormControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAe,gBAAgB,EAAc,MAAM,eAAe,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,UAAU,qBAAsB,SAAQ,gBAAgB;IACtD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,qBAAqB,CAAC,CAO1E,CAAA"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
+
import { FormControl, InputLabel } from "@mui/material";
|
3
|
+
const EmbedFormControl = ({ formId, formLabel, children, ...props }) => {
|
4
|
+
return /* @__PURE__ */ jsxs(FormControl, { ...props, children: [
|
5
|
+
/* @__PURE__ */ jsx(InputLabel, { id: formId, children: formLabel }),
|
6
|
+
children
|
7
|
+
] });
|
8
|
+
};
|
9
|
+
export {
|
10
|
+
EmbedFormControl
|
11
|
+
};
|
12
|
+
//# sourceMappingURL=EmbedFormControl.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/controls/EmbedFormControl.tsx"],"sourcesContent":["import { FormControl, FormControlProps, InputLabel } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\ninterface EmbedFormControlProps extends FormControlProps {\n formId?: string\n formLabel?: string\n}\n\nexport const EmbedFormControl: React.FC<WithChildren<EmbedFormControlProps>> = ({ formId, formLabel, children, ...props }) => {\n return (\n <FormControl {...props}>\n <InputLabel id={formId}>{formLabel}</InputLabel>\n {children}\n </FormControl>\n )\n}\n"],"mappings":"AAUI,SACE,KADF;AAVJ,SAAS,aAA+B,kBAAkB;AAQnD,MAAM,mBAAkE,CAAC,EAAE,QAAQ,WAAW,UAAU,GAAG,MAAM,MAAM;AAC5H,SACE,qBAAC,eAAa,GAAG,OACf;AAAA,wBAAC,cAAW,IAAI,QAAS,qBAAU;AAAA,IAClC;AAAA,KACH;AAEJ;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ListModeSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/ListModeSelect.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAoB,WAAW,EAAE,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAE,QAAQ,EAAe,MAAM,2BAA2B,CAAA;AAOjE,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,CAsB1D,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,CAMrE,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ListModeSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/ListModeSelect.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAoB,WAAW,EAAE,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAE,QAAQ,EAAe,MAAM,2BAA2B,CAAA;AAOjE,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,CAsB1D,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,CAMrE,CAAA"}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
+
import { MenuItem, Select } from "@mui/material";
|
3
|
+
import { useListMode } from "@xyo-network/react-shared";
|
4
|
+
import { EmbedFormControl } from "./EmbedFormControl";
|
5
|
+
const listModeSelectId = "listmode-select-id";
|
6
|
+
const listModeSelectLabel = "List Mode";
|
7
|
+
const ListModeSelect = (props) => {
|
8
|
+
const { listMode, setListMode } = useListMode();
|
9
|
+
return /* @__PURE__ */ jsxs(
|
10
|
+
Select,
|
11
|
+
{
|
12
|
+
value: listMode ?? "default",
|
13
|
+
onChange: (event) => {
|
14
|
+
setListMode?.(event.target.value);
|
15
|
+
},
|
16
|
+
...props,
|
17
|
+
children: [
|
18
|
+
/* @__PURE__ */ jsx(MenuItem, { value: "default", children: "Default" }, "default"),
|
19
|
+
/* @__PURE__ */ jsx(MenuItem, { value: "table", children: "Table" }, "table"),
|
20
|
+
/* @__PURE__ */ jsx(MenuItem, { value: "grid", children: "Grid" }, "grid")
|
21
|
+
]
|
22
|
+
}
|
23
|
+
);
|
24
|
+
};
|
25
|
+
const ListModeSelectFormControl = (props) => {
|
26
|
+
return /* @__PURE__ */ jsx(EmbedFormControl, { formId: listModeSelectId, formLabel: listModeSelectLabel, children: /* @__PURE__ */ jsx(ListModeSelect, { size: "small", label: listModeSelectLabel, labelId: listModeSelectId, ...props }) });
|
27
|
+
};
|
28
|
+
export {
|
29
|
+
ListModeSelect,
|
30
|
+
ListModeSelectFormControl
|
31
|
+
};
|
32
|
+
//# sourceMappingURL=ListModeSelect.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/controls/ListModeSelect.tsx"],"sourcesContent":["import { MenuItem, Select, SelectProps } from '@mui/material'\nimport { ListMode, useListMode } from '@xyo-network/react-shared'\n\nimport { EmbedFormControl } from './EmbedFormControl'\n\nconst listModeSelectId = 'listmode-select-id'\nconst listModeSelectLabel = 'List Mode'\n\nexport const ListModeSelect: React.FC<SelectProps<ListMode>> = (props) => {\n const { listMode, setListMode } = useListMode()\n\n return (\n <Select<ListMode>\n value={(listMode ?? 'default') as ListMode}\n onChange={(event) => {\n setListMode?.(event.target.value as ListMode)\n }}\n {...props}\n >\n <MenuItem key=\"default\" value=\"default\">\n Default\n </MenuItem>\n <MenuItem key=\"table\" value=\"table\">\n Table\n </MenuItem>\n <MenuItem key=\"grid\" value=\"grid\">\n Grid\n </MenuItem>\n </Select>\n )\n}\n\nexport const ListModeSelectFormControl: React.FC<SelectProps<ListMode>> = (props) => {\n return (\n <EmbedFormControl formId={listModeSelectId} formLabel={listModeSelectLabel}>\n <ListModeSelect size=\"small\" label={listModeSelectLabel} labelId={listModeSelectId} {...props} />\n </EmbedFormControl>\n )\n}\n"],"mappings":"AAYI,SAOE,KAPF;AAZJ,SAAS,UAAU,cAA2B;AAC9C,SAAmB,mBAAmB;AAEtC,SAAS,wBAAwB;AAEjC,MAAM,mBAAmB;AACzB,MAAM,sBAAsB;AAErB,MAAM,iBAAkD,CAAC,UAAU;AACxE,QAAM,EAAE,UAAU,YAAY,IAAI,YAAY;AAE9C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAQ,YAAY;AAAA,MACpB,UAAU,CAAC,UAAU;AACnB,sBAAc,MAAM,OAAO,KAAiB;AAAA,MAC9C;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,4BAAC,YAAuB,OAAM,WAAU,uBAA1B,SAEd;AAAA,QACA,oBAAC,YAAqB,OAAM,SAAQ,qBAAtB,OAEd;AAAA,QACA,oBAAC,YAAoB,OAAM,QAAO,oBAApB,MAEd;AAAA;AAAA;AAAA,EACF;AAEJ;AAEO,MAAM,4BAA6D,CAAC,UAAU;AACnF,SACE,oBAAC,oBAAiB,QAAQ,kBAAkB,WAAW,qBACrD,8BAAC,kBAAe,MAAK,SAAQ,OAAO,qBAAqB,SAAS,kBAAmB,GAAG,OAAO,GACjG;AAEJ;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RenderSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/RenderSelect.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAoB,WAAW,EAAE,MAAM,eAAe,CAAA;AAQ7D,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAanD,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RenderSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/RenderSelect.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAoB,WAAW,EAAE,MAAM,eAAe,CAAA;AAQ7D,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAanD,CAAA"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { MenuItem, Select } from "@mui/material";
|
3
|
+
import { useEmbedPluginState } from "../../contexts";
|
4
|
+
import { EmbedFormControl } from "./EmbedFormControl";
|
5
|
+
const renderSelectId = "render-select-id";
|
6
|
+
const renderSelectLabel = "Renderer";
|
7
|
+
const EmbedRenderSelect = (props) => {
|
8
|
+
const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState();
|
9
|
+
return /* @__PURE__ */ jsx(EmbedFormControl, { formId: renderSelectId, formLabel: renderSelectLabel, children: /* @__PURE__ */ jsx(Select, { size: "small", value: activePlugin?.name, ...props, children: plugins?.map((plugin) => /* @__PURE__ */ jsx(MenuItem, { value: plugin.name, onClick: () => setActivePlugin?.(plugin), children: plugin.name }, plugin.name)) }) });
|
10
|
+
};
|
11
|
+
export {
|
12
|
+
EmbedRenderSelect
|
13
|
+
};
|
14
|
+
//# sourceMappingURL=RenderSelect.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/controls/RenderSelect.tsx"],"sourcesContent":["import { MenuItem, Select, SelectProps } from '@mui/material'\n\nimport { useEmbedPluginState } from '../../contexts'\nimport { EmbedFormControl } from './EmbedFormControl'\n\nconst renderSelectId = 'render-select-id'\nconst renderSelectLabel = 'Renderer'\n\nexport const EmbedRenderSelect: React.FC<SelectProps> = (props) => {\n const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState()\n return (\n <EmbedFormControl formId={renderSelectId} formLabel={renderSelectLabel}>\n <Select 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 </Select>\n </EmbedFormControl>\n )\n}\n"],"mappings":"AAcU;AAdV,SAAS,UAAU,cAA2B;AAE9C,SAAS,2BAA2B;AACpC,SAAS,wBAAwB;AAEjC,MAAM,iBAAiB;AACvB,MAAM,oBAAoB;AAEnB,MAAM,oBAA2C,CAAC,UAAU;AACjE,QAAM,EAAE,cAAc,iBAAiB,QAAQ,IAAI,oBAAoB;AACvE,SACE,oBAAC,oBAAiB,QAAQ,gBAAgB,WAAW,mBACnD,8BAAC,UAAO,MAAK,SAAQ,OAAO,cAAc,MAAO,GAAG,OACjD,mBAAS,IAAI,CAAC,WACb,oBAAC,YAAS,OAAO,OAAO,MAAwB,SAAS,MAAM,kBAAkB,MAAM,GACpF,iBAAO,QADyB,OAAO,IAE1C,CACD,GACH,GACF;AAEJ;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/controls/index.ts"],"sourcesContent":["export * from './EmbedFormControl'\nexport * from './ListModeSelect'\nexport * from './RenderSelect'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedCardResolver.d.ts","sourceRoot":"","sources":["../../../../src/components/embed-card/EmbedCardResolver.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAMnD,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC,CAqBzE,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedCardResolver.d.ts","sourceRoot":"","sources":["../../../../src/components/embed-card/EmbedCardResolver.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAMnD,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC,CAqBzE,CAAA"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { useTheme } from "@mui/material";
|
3
|
+
import { FlexCol } from "@xylabs/react-flexbox";
|
4
|
+
import { LoadResult } from "@xyo-network/react-shared";
|
5
|
+
import { useRefreshPayload, useResolvePayload } from "../../contexts";
|
6
|
+
import { EmbedCardApiErrorRenderer } from "./error-handling";
|
7
|
+
const EmbedCardResolverFlexBox = ({ children, ...props }) => {
|
8
|
+
const { payload, notFound, huriError } = useResolvePayload();
|
9
|
+
const { refreshPayload } = useRefreshPayload();
|
10
|
+
const theme = useTheme();
|
11
|
+
return /* @__PURE__ */ jsx(LoadResult, { searchResult: payload, notFound: !!notFound, error: !!huriError, children: /* @__PURE__ */ jsx(EmbedCardApiErrorRenderer, { xyoError: huriError, children: /* @__PURE__ */ jsx(
|
12
|
+
FlexCol,
|
13
|
+
{
|
14
|
+
id: "embed-outer-wrap",
|
15
|
+
alignItems: "stretch",
|
16
|
+
justifyContent: "start",
|
17
|
+
busy: Boolean(!refreshPayload && payload),
|
18
|
+
busyCircularProps: { style: { alignItems: "start", paddingTop: theme.spacing(2), zIndex: 2 } },
|
19
|
+
...props,
|
20
|
+
children
|
21
|
+
}
|
22
|
+
) }) });
|
23
|
+
};
|
24
|
+
export {
|
25
|
+
EmbedCardResolverFlexBox
|
26
|
+
};
|
27
|
+
//# sourceMappingURL=EmbedCardResolver.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/embed-card/EmbedCardResolver.tsx"],"sourcesContent":["import { useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { LoadResult } from '@xyo-network/react-shared'\n\nimport { useRefreshPayload, useResolvePayload } from '../../contexts'\nimport { EmbedCardApiErrorRenderer } from './error-handling'\n\nexport const EmbedCardResolverFlexBox: React.FC<WithChildren<FlexBoxProps>> = ({ children, ...props }) => {\n const { payload, notFound, huriError } = useResolvePayload()\n const { refreshPayload } = useRefreshPayload()\n const theme = useTheme()\n\n return (\n <LoadResult searchResult={payload} notFound={!!notFound} error={!!huriError}>\n <EmbedCardApiErrorRenderer xyoError={huriError}>\n <FlexCol\n id=\"embed-outer-wrap\"\n alignItems=\"stretch\"\n justifyContent=\"start\"\n busy={Boolean(!refreshPayload && payload)}\n busyCircularProps={{ style: { alignItems: 'start', paddingTop: theme.spacing(2), zIndex: 2 } }}\n {...props}\n >\n {children}\n </FlexCol>\n </EmbedCardApiErrorRenderer>\n </LoadResult>\n )\n}\n"],"mappings":"AAgBQ;AAhBR,SAAS,gBAAgB;AACzB,SAAuB,eAAe;AAEtC,SAAS,kBAAkB;AAE3B,SAAS,mBAAmB,yBAAyB;AACrD,SAAS,iCAAiC;AAEnC,MAAM,2BAAiE,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AACxG,QAAM,EAAE,SAAS,UAAU,UAAU,IAAI,kBAAkB;AAC3D,QAAM,EAAE,eAAe,IAAI,kBAAkB;AAC7C,QAAM,QAAQ,SAAS;AAEvB,SACE,oBAAC,cAAW,cAAc,SAAS,UAAU,CAAC,CAAC,UAAU,OAAO,CAAC,CAAC,WAChE,8BAAC,6BAA0B,UAAU,WACnC;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH,YAAW;AAAA,MACX,gBAAe;AAAA,MACf,MAAM,QAAQ,CAAC,kBAAkB,OAAO;AAAA,MACxC,mBAAmB,EAAE,OAAO,EAAE,YAAY,SAAS,YAAY,MAAM,QAAQ,CAAC,GAAG,QAAQ,EAAE,EAAE;AAAA,MAC5F,GAAG;AAAA,MAEH;AAAA;AAAA,EACH,GACF,GACF;AAEJ;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedPluginCard.d.ts","sourceRoot":"","sources":["../../../../src/components/embed-card/EmbedPluginCard.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE9C,OAAO,EAAE,aAAa,EAAmB,MAAM,QAAQ,CAAA;AAGvD,MAAM,WAAW,oBAAqB,SAAQ,YAAY,EAAE,gBAAgB,EAAE,aAAa;CAAG;AAE9F,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA8B7D,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiBxD,CAAA;AAED,kFAAkF;AAClF,eAAO,MAAM,WAAW,mCAAkB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedPluginCard.d.ts","sourceRoot":"","sources":["../../../../src/components/embed-card/EmbedPluginCard.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE9C,OAAO,EAAE,aAAa,EAAmB,MAAM,QAAQ,CAAA;AAGvD,MAAM,WAAW,oBAAqB,SAAQ,YAAY,EAAE,gBAAgB,EAAE,aAAa;CAAG;AAE9F,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA8B7D,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiBxD,CAAA;AAED,kFAAkF;AAClF,eAAO,MAAM,WAAW,mCAAkB,CAAA"}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
+
import { useTheme } from "@mui/material";
|
3
|
+
import { useRefreshPayload, useResolvePayload } from "../../contexts";
|
4
|
+
import { EmbedPluginInner } from "../EmbedPlugin";
|
5
|
+
import { EmbedPluginCard } from "./card";
|
6
|
+
import { EmbedCardApiErrorRenderer } from "./error-handling";
|
7
|
+
const ApiEmbedPluginCard = ({ children, ...props }) => {
|
8
|
+
const {
|
9
|
+
validateSchema,
|
10
|
+
plugins = [],
|
11
|
+
huriPayload,
|
12
|
+
refreshTitle = "",
|
13
|
+
timestampLabel = "Data From",
|
14
|
+
hideElementsConfig,
|
15
|
+
embedPluginConfig,
|
16
|
+
onRefresh,
|
17
|
+
...busyCardProps
|
18
|
+
} = props;
|
19
|
+
return /* @__PURE__ */ jsxs(
|
20
|
+
EmbedPluginInner,
|
21
|
+
{
|
22
|
+
...{
|
23
|
+
embedPluginConfig,
|
24
|
+
hideElementsConfig,
|
25
|
+
huriPayload,
|
26
|
+
onRefresh,
|
27
|
+
plugins,
|
28
|
+
refreshTitle,
|
29
|
+
timestampLabel,
|
30
|
+
validateSchema
|
31
|
+
},
|
32
|
+
children: [
|
33
|
+
/* @__PURE__ */ jsx(EmbedPluginCardInner, { ...busyCardProps }),
|
34
|
+
children
|
35
|
+
]
|
36
|
+
}
|
37
|
+
);
|
38
|
+
};
|
39
|
+
const EmbedPluginCardInner = (props) => {
|
40
|
+
const { payload, huriError } = useResolvePayload();
|
41
|
+
const { refreshPayload } = useRefreshPayload();
|
42
|
+
const theme = useTheme();
|
43
|
+
return /* @__PURE__ */ jsx(EmbedCardApiErrorRenderer, { xyoError: huriError, children: /* @__PURE__ */ jsx(
|
44
|
+
EmbedPluginCard,
|
45
|
+
{
|
46
|
+
elevation: 3,
|
47
|
+
variant: "elevation",
|
48
|
+
busy: Boolean(!refreshPayload && payload),
|
49
|
+
busyVariantProps: { style: { alignItems: "start", paddingTop: theme.spacing(2), zIndex: 2 } },
|
50
|
+
sx: { position: "relative" },
|
51
|
+
...props
|
52
|
+
}
|
53
|
+
) });
|
54
|
+
};
|
55
|
+
const EmbedPlugin = EmbedPluginCard;
|
56
|
+
export {
|
57
|
+
ApiEmbedPluginCard,
|
58
|
+
EmbedPlugin,
|
59
|
+
EmbedPluginCardInner
|
60
|
+
};
|
61
|
+
//# sourceMappingURL=EmbedPluginCard.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/embed-card/EmbedPluginCard.tsx"],"sourcesContent":["import { useTheme } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\nimport { useRefreshPayload, useResolvePayload } from '../../contexts'\nimport { EmbedPluginProps } from '../../types'\nimport { EmbedPluginInner } from '../EmbedPlugin'\nimport { BusyCardProps, EmbedPluginCard } from './card'\nimport { EmbedCardApiErrorRenderer } from './error-handling'\n\nexport interface EmbedPluginCardProps extends WithChildren, 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={{ style: { alignItems: 'start', paddingTop: theme.spacing(2), zIndex: 2 } }}\n sx={{ position: 'relative' }}\n {...props}\n />\n </EmbedCardApiErrorRenderer>\n )\n}\n\n/** @deprecated - use EmbedPluginCard and use CardProps instead of FlexBoxProps */\nexport const EmbedPlugin = EmbedPluginCard\n"],"mappings":"AAyBI,SAYE,KAZF;AAzBJ,SAAS,gBAAgB;AAGzB,SAAS,mBAAmB,yBAAyB;AAErD,SAAS,wBAAwB;AACjC,SAAwB,uBAAuB;AAC/C,SAAS,iCAAiC;AAInC,MAAM,qBAAqD,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AAC5F,QAAM;AAAA,IACJ;AAAA,IACA,UAAU,CAAC;AAAA,IACX;AAAA,IACA,eAAe;AAAA,IACf,iBAAiB;AAAA,IACjB;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,IAAI;AAEJ,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,QACF;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MAEA;AAAA,4BAAC,wBAAsB,GAAG,eAAe;AAAA,QACxC;AAAA;AAAA;AAAA,EACH;AAEJ;AAEO,MAAM,uBAAgD,CAAC,UAAU;AACtE,QAAM,EAAE,SAAS,UAAU,IAAI,kBAAkB;AACjD,QAAM,EAAE,eAAe,IAAI,kBAAkB;AAC7C,QAAM,QAAQ,SAAS;AAEvB,SACE,oBAAC,6BAA0B,UAAU,WACnC;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,MACX,SAAQ;AAAA,MACR,MAAM,QAAQ,CAAC,kBAAkB,OAAO;AAAA,MACxC,kBAAkB,EAAE,OAAO,EAAE,YAAY,SAAS,YAAY,MAAM,QAAQ,CAAC,GAAG,QAAQ,EAAE,EAAE;AAAA,MAC5F,IAAI,EAAE,UAAU,WAAW;AAAA,MAC1B,GAAG;AAAA;AAAA,EACN,GACF;AAEJ;AAGO,MAAM,cAAc;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"BusyCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/BusyCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,eAAe,CAAA;AAE/C,OAAO,EAEL,yBAAyB,EAEzB,uBAAuB,EACvB,WAAW,EACX,YAAY,EACb,MAAM,sBAAsB,CAAA;AAE7B,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,YAAY,CAAC,aAAa,CAAC,CAgB1D,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"BusyCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/BusyCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,eAAe,CAAA;AAE/C,OAAO,EAEL,yBAAyB,EAEzB,uBAAuB,EACvB,WAAW,EACX,YAAY,EACb,MAAM,sBAAsB,CAAA;AAE7B,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,YAAY,CAAC,aAAa,CAAC,CAgB1D,CAAA"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
+
import { Card } from "@mui/material";
|
3
|
+
import { useBusyTiming } from "@xylabs/react-flexbox";
|
4
|
+
import {
|
5
|
+
BusyCircularProgress,
|
6
|
+
BusyLinearProgress
|
7
|
+
} from "@xylabs/react-shared";
|
8
|
+
const BusyCard = ({
|
9
|
+
busy,
|
10
|
+
busyMinimum = 500,
|
11
|
+
busyVariant = "circular",
|
12
|
+
busyVariantProps,
|
13
|
+
children,
|
14
|
+
...props
|
15
|
+
}) => {
|
16
|
+
const internalBusy = useBusyTiming(busy, busyMinimum);
|
17
|
+
return /* @__PURE__ */ jsxs(Card, { ...props, children: [
|
18
|
+
children,
|
19
|
+
busyVariant === "circular" && internalBusy ? /* @__PURE__ */ jsx(BusyCircularProgress, { ...busyVariantProps }) : null,
|
20
|
+
busyVariant === "linear" && internalBusy ? /* @__PURE__ */ jsx(BusyLinearProgress, { ...busyVariantProps }) : null
|
21
|
+
] });
|
22
|
+
};
|
23
|
+
export {
|
24
|
+
BusyCard
|
25
|
+
};
|
26
|
+
//# sourceMappingURL=BusyCard.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/embed-card/card/BusyCard.tsx"],"sourcesContent":["import { Card, CardProps } from '@mui/material'\nimport { useBusyTiming } from '@xylabs/react-flexbox'\nimport {\n BusyCircularProgress,\n BusyCircularProgressProps,\n BusyLinearProgress,\n BusyLinearProgressProps,\n BusyVariant,\n WithChildren,\n} from '@xylabs/react-shared'\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<WithChildren<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 ? <BusyCircularProgress {...(busyVariantProps as BusyCircularProgressProps)} /> : null}\n {busyVariant === 'linear' && internalBusy ? <BusyLinearProgress {...(busyVariantProps as BusyLinearProgressProps)} /> : null}\n </Card>\n )\n}\n"],"mappings":"AA4BI,SAEgD,KAFhD;AA5BJ,SAAS,YAAuB;AAChC,SAAS,qBAAqB;AAC9B;AAAA,EACE;AAAA,EAEA;AAAA,OAIK;AASA,MAAM,WAAkD,CAAC;AAAA,EAC9D;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,eAAe,oBAAC,wBAAsB,GAAI,kBAAgD,IAAK;AAAA,IAC7H,gBAAgB,YAAY,eAAe,oBAAC,sBAAoB,GAAI,kBAA8C,IAAK;AAAA,KAC1H;AAEJ;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedCardHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/EmbedCardHeader.tsx"],"names":[],"mappings":";AACA,OAAO,EAAsB,eAAe,EAAe,MAAM,eAAe,CAAA;AAMhF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuCrD,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedCardHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/EmbedCardHeader.tsx"],"names":[],"mappings":";AACA,OAAO,EAAsB,eAAe,EAAe,MAAM,eAAe,CAAA;AAMhF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAuCrD,CAAA"}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
2
|
+
import { Refresh as RefreshIcon } from "@mui/icons-material";
|
3
|
+
import { Avatar, CardHeader, Chip } from "@mui/material";
|
4
|
+
import { FlexRow } from "@xylabs/react-flexbox";
|
5
|
+
import { useEmbedPluginState, useResolvePayload } from "../../../contexts";
|
6
|
+
import { EmbedMenu } from "../menu";
|
7
|
+
const EmbedCardHeader = () => {
|
8
|
+
const { refreshHuri, huri } = useResolvePayload();
|
9
|
+
const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState();
|
10
|
+
const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {};
|
11
|
+
const timestamp = Date.now();
|
12
|
+
return /* @__PURE__ */ jsx(
|
13
|
+
CardHeader,
|
14
|
+
{
|
15
|
+
sx: { flexWrap: "wrap", rowGap: 1 },
|
16
|
+
avatar: hideAvatar ? /* @__PURE__ */ jsx(Fragment, {}) : /* @__PURE__ */ jsx(Avatar, { sx: { bgcolor: (theme) => theme.palette.primary.main }, "aria-label": activePlugin?.name, children: activePlugin?.name?.charAt(0) }),
|
17
|
+
action: /* @__PURE__ */ jsxs(FlexRow, { flexWrap: "wrap", columnGap: 0.5, children: [
|
18
|
+
timestamp ? hideTimestamp && hideRefreshButton ? "" : /* @__PURE__ */ jsx(
|
19
|
+
Chip,
|
20
|
+
{
|
21
|
+
avatar: hideRefreshButton ? /* @__PURE__ */ jsx(Fragment, {}) : /* @__PURE__ */ jsx(RefreshIcon, {}),
|
22
|
+
clickable: hideRefreshButton ? false : true,
|
23
|
+
onClick: refreshHuri,
|
24
|
+
label: hideTimestamp ? "" : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`
|
25
|
+
}
|
26
|
+
) : null,
|
27
|
+
hideCardActions || huri === void 0 ? null : /* @__PURE__ */ jsx(EmbedMenu, {})
|
28
|
+
] }),
|
29
|
+
title: hideTitle ? "" : activePlugin?.name
|
30
|
+
}
|
31
|
+
);
|
32
|
+
};
|
33
|
+
export {
|
34
|
+
EmbedCardHeader
|
35
|
+
};
|
36
|
+
//# sourceMappingURL=EmbedCardHeader.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/embed-card/card/EmbedCardHeader.tsx"],"sourcesContent":["import { Refresh as RefreshIcon } from '@mui/icons-material'\nimport { Avatar, CardHeader, CardHeaderProps, Chip, Theme } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../../contexts'\nimport { EmbedMenu } from '../menu'\n\nexport const EmbedCardHeader: React.FC<CardHeaderProps> = () => {\n const { refreshHuri, huri } = useResolvePayload()\n const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState()\n const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {}\n //this is temporary so that we can add the ability to get a timestamp via diviner later\n const timestamp = 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.palette.primary.main }} aria-label={activePlugin?.name}>\n {activePlugin?.name?.charAt(0)}\n </Avatar>\n )\n }\n action={\n <FlexRow flexWrap=\"wrap\" columnGap={0.5}>\n {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 ) : 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"],"mappings":"AAkBU,wBAQF,YARE;AAlBV,SAAS,WAAW,mBAAmB;AACvC,SAAS,QAAQ,YAA6B,YAAmB;AACjE,SAAS,eAAe;AAExB,SAAS,qBAAqB,yBAAyB;AACvD,SAAS,iBAAiB;AAEnB,MAAM,kBAA6C,MAAM;AAC9D,QAAM,EAAE,aAAa,KAAK,IAAI,kBAAkB;AAChD,QAAM,EAAE,cAAc,gBAAgB,mBAAmB,IAAI,oBAAoB;AACjF,QAAM,EAAE,YAAY,WAAW,mBAAmB,eAAe,gBAAgB,IAAI,sBAAsB,CAAC;AAE5G,QAAM,YAAY,KAAK,IAAI;AAC3B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAI,EAAE,UAAU,QAAQ,QAAQ,EAAE;AAAA,MAClC,QACE,aACE,gCAAE,IAEF,oBAAC,UAAO,IAAI,EAAE,SAAS,CAAC,UAAiB,MAAM,QAAQ,QAAQ,KAAK,GAAG,cAAY,cAAc,MAC9F,wBAAc,MAAM,OAAO,CAAC,GAC/B;AAAA,MAGJ,QACE,qBAAC,WAAQ,UAAS,QAAO,WAAW,KACjC;AAAA,oBACC,iBAAiB,oBACf,KAEA;AAAA,UAAC;AAAA;AAAA,YACC,QAAQ,oBAAoB,gCAAE,IAAM,oBAAC,eAAY;AAAA,YACjD,WAAW,oBAAoB,QAAQ;AAAA,YACvC,SAAS;AAAA,YACT,OAAO,gBAAgB,KAAK,GAAG,cAAc,IAAI,IAAI,KAAK,SAAS,EAAE,eAAe,CAAC;AAAA;AAAA,QACvF,IAEA;AAAA,QAEH,mBAAmB,SAAS,SAAY,OAAO,oBAAC,aAAU;AAAA,SAC7D;AAAA,MAEF,OAAO,YAAY,KAAK,cAAc;AAAA;AAAA,EACxC;AAEJ;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedPluginCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/EmbedPluginCard.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAY,aAAa,EAAE,MAAM,YAAY,CAAA;AAGpD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAqBnD,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedPluginCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/EmbedPluginCard.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAY,aAAa,EAAE,MAAM,YAAY,CAAA;AAGpD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAqBnD,CAAA"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
+
import { CardContent } from "@mui/material";
|
3
|
+
import { FlexGrowRow } from "@xylabs/react-flexbox";
|
4
|
+
import { useListMode } from "@xyo-network/react-shared";
|
5
|
+
import { useEmbedPluginState, useResolvePayload } from "../../../contexts";
|
6
|
+
import { EmbedRenderSelect, ListModeSelectFormControl } from "../../controls";
|
7
|
+
import { BusyCard } from "./BusyCard";
|
8
|
+
import { EmbedCardHeader } from "./EmbedCardHeader";
|
9
|
+
const EmbedPluginCard = ({ ...props }) => {
|
10
|
+
const { payload } = useResolvePayload();
|
11
|
+
const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = useEmbedPluginState();
|
12
|
+
const { listMode } = useListMode();
|
13
|
+
const supportsListMode = ActivePlugin?.components?.box?.listModes?.length ?? 0 > 1;
|
14
|
+
return /* @__PURE__ */ jsxs(BusyCard, { ...props, children: [
|
15
|
+
hideElementsConfig?.hideCardHeader ? null : /* @__PURE__ */ jsx(EmbedCardHeader, {}),
|
16
|
+
plugins && plugins.length || supportsListMode ? /* @__PURE__ */ jsxs(FlexGrowRow, { columnGap: 2, rowGap: 2, flexWrap: "wrap", pb: 1, children: [
|
17
|
+
plugins && plugins.length > 1 ? /* @__PURE__ */ jsx(EmbedRenderSelect, {}) : null,
|
18
|
+
supportsListMode ? /* @__PURE__ */ jsx(ListModeSelectFormControl, {}) : null
|
19
|
+
] }) : null,
|
20
|
+
/* @__PURE__ */ jsx(CardContent, { sx: { height: "100%" }, children: ActivePlugin ? /* @__PURE__ */ jsx(ActivePlugin.components.box.detailsBox, { payload, ...supportsListMode && { listMode } }) : null })
|
21
|
+
] });
|
22
|
+
};
|
23
|
+
export {
|
24
|
+
EmbedPluginCard
|
25
|
+
};
|
26
|
+
//# sourceMappingURL=EmbedPluginCard.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/embed-card/card/EmbedPluginCard.tsx"],"sourcesContent":["import { CardContent } from '@mui/material'\nimport { FlexGrowRow } from '@xylabs/react-flexbox'\nimport { useListMode } from '@xyo-network/react-shared'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../../contexts'\nimport { EmbedRenderSelect, ListModeSelectFormControl } from '../../controls'\nimport { BusyCard, BusyCardProps } from './BusyCard'\nimport { EmbedCardHeader } from './EmbedCardHeader'\n\nexport const EmbedPluginCard: React.FC<BusyCardProps> = ({ ...props }) => {\n const { payload } = useResolvePayload()\n const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = useEmbedPluginState()\n const { listMode } = useListMode()\n const supportsListMode = ActivePlugin?.components?.box?.listModes?.length ?? 0 > 1\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) || supportsListMode ? (\n <FlexGrowRow columnGap={2} rowGap={2} flexWrap=\"wrap\" pb={1}>\n {plugins && plugins.length > 1 ? <EmbedRenderSelect /> : null}\n {supportsListMode ? <ListModeSelectFormControl /> : null}\n </FlexGrowRow>\n ) : null}\n <CardContent sx={{ height: '100%' }}>\n {ActivePlugin ? <ActivePlugin.components.box.detailsBox payload={payload} {...(supportsListMode && { listMode })} /> : null}\n </CardContent>\n </BusyCard>\n )\n}\n"],"mappings":"AAiBmD,cAG3C,YAH2C;AAjBnD,SAAS,mBAAmB;AAC5B,SAAS,mBAAmB;AAC5B,SAAS,mBAAmB;AAE5B,SAAS,qBAAqB,yBAAyB;AACvD,SAAS,mBAAmB,iCAAiC;AAC7D,SAAS,gBAA+B;AACxC,SAAS,uBAAuB;AAEzB,MAAM,kBAA2C,CAAC,EAAE,GAAG,MAAM,MAAM;AACxE,QAAM,EAAE,QAAQ,IAAI,kBAAkB;AACtC,QAAM,EAAE,cAAc,cAAc,SAAS,mBAAmB,IAAI,oBAAoB;AACxF,QAAM,EAAE,SAAS,IAAI,YAAY;AACjC,QAAM,mBAAmB,cAAc,YAAY,KAAK,WAAW,UAAU,IAAI;AAEjF,SACE,qBAAC,YAAU,GAAG,OACX;AAAA,wBAAoB,iBAAiB,OAAO,oBAAC,mBAAgB;AAAA,IAE5D,WAAW,QAAQ,UAAW,mBAC9B,qBAAC,eAAY,WAAW,GAAG,QAAQ,GAAG,UAAS,QAAO,IAAI,GACvD;AAAA,iBAAW,QAAQ,SAAS,IAAI,oBAAC,qBAAkB,IAAK;AAAA,MACxD,mBAAmB,oBAAC,6BAA0B,IAAK;AAAA,OACtD,IACE;AAAA,IACJ,oBAAC,eAAY,IAAI,EAAE,QAAQ,OAAO,GAC/B,yBAAe,oBAAC,aAAa,WAAW,IAAI,YAA5B,EAAuC,SAAmB,GAAI,oBAAoB,EAAE,SAAS,GAAI,IAAK,MACzH;AAAA,KACF;AAEJ;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/embed-card/card/index.ts"],"sourcesContent":["export * from './BusyCard'\nexport * from './EmbedCardHeader'\nexport * from './EmbedPluginCard'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedCardApiErrorRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAKxD,UAAU,8BAA+B,SAAQ,SAAS;IACxD,QAAQ,CAAC,EAAE,WAAW,CAAA;CACvB;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,8BAA8B,CAAC,CAM5F,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedCardApiErrorRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAKxD,UAAU,8BAA+B,SAAQ,SAAS;IACxD,QAAQ,CAAC,EAAE,WAAW,CAAA;CACvB;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,8BAA8B,CAAC,CAM5F,CAAA"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { ErrorAlert, ErrorRender } from "@xyo-network/react-error";
|
3
|
+
import { EmbedErrorCard } from "./EmbedErrorCard";
|
4
|
+
const EmbedCardApiErrorRenderer = ({ xyoError, children, ...props }) => {
|
5
|
+
return /* @__PURE__ */ jsx(ErrorRender, { error: xyoError, noReAuth: true, noErrorDisplay: true, customError: /* @__PURE__ */ jsx(CustomApiErrorCard, { xyoError, ...props }), children });
|
6
|
+
};
|
7
|
+
const CustomApiErrorCard = ({ xyoError, ...props }) => {
|
8
|
+
return /* @__PURE__ */ jsx(EmbedErrorCard, { ...props, children: /* @__PURE__ */ jsx(ErrorAlert, { error: xyoError }) });
|
9
|
+
};
|
10
|
+
export {
|
11
|
+
EmbedCardApiErrorRenderer
|
12
|
+
};
|
13
|
+
//# sourceMappingURL=EmbedCardApiErrorRenderer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx"],"sourcesContent":["import { CardProps } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { ModuleError } from '@xyo-network/payload-model'\nimport { ErrorAlert, ErrorRender } from '@xyo-network/react-error'\n\nimport { EmbedErrorCard } from './EmbedErrorCard'\n\ninterface EmbedCardApiErrorRendererProps extends CardProps {\n xyoError?: ModuleError\n}\n\nexport const EmbedCardApiErrorRenderer: React.FC<WithChildren<EmbedCardApiErrorRendererProps>> = ({ xyoError, children, ...props }) => {\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"],"mappings":"AAauE;AAVvE,SAAS,YAAY,mBAAmB;AAExC,SAAS,sBAAsB;AAMxB,MAAM,4BAAoF,CAAC,EAAE,UAAU,UAAU,GAAG,MAAM,MAAM;AACrI,SACE,oBAAC,eAAY,OAAO,UAAU,UAAQ,MAAC,gBAAc,MAAC,aAAa,oBAAC,sBAAmB,UAAqB,GAAG,OAAO,GACnH,UACH;AAEJ;AAEA,MAAM,qBAA+D,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AAC/F,SACE,oBAAC,kBAAgB,GAAG,OAClB,8BAAC,cAAW,OAAO,UAAU,GAC/B;AAEJ;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedErrorCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedErrorCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAS,UAAU,EAAiC,SAAS,EAAc,MAAM,eAAe,CAAA;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,UAAU,uBAAuB;IAC/B,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,UAAU,mBAAoB,SAAQ,uBAAuB,EAAE,SAAS;IACtE,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,KAAK,CAAC,EAAE,KAAK,CAAA;CACd;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAQtE,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedErrorCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedErrorCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAS,UAAU,EAAiC,SAAS,EAAc,MAAM,eAAe,CAAA;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,UAAU,uBAAuB;IAC/B,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,UAAU,mBAAoB,SAAQ,uBAAuB,EAAE,SAAS;IACtE,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,KAAK,CAAC,EAAE,KAAK,CAAA;CACd;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAQtE,CAAA"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
2
|
+
import { Alert, AlertTitle, Card, CardContent, Typography } from "@mui/material";
|
3
|
+
const EmbedErrorCard = (props) => {
|
4
|
+
const { alertProps, error, hideErrorDetails = true, children, ...cardProps } = props;
|
5
|
+
const errorProps = { alertProps, error, hideErrorDetails };
|
6
|
+
return /* @__PURE__ */ jsx(Card, { ...cardProps, children: /* @__PURE__ */ jsx(CardContent, { children: children ?? /* @__PURE__ */ jsx(DefaultErrorAlert, { ...errorProps }) }) });
|
7
|
+
};
|
8
|
+
const DefaultErrorAlert = ({ alertProps, hideErrorDetails, error }) => {
|
9
|
+
return /* @__PURE__ */ jsxs(Alert, { severity: "error", ...alertProps, children: [
|
10
|
+
/* @__PURE__ */ jsx(AlertTitle, { children: "Whoops! Something went wrong" }),
|
11
|
+
!hideErrorDetails && error ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
12
|
+
/* @__PURE__ */ jsx(Typography, { variant: "caption", children: "Error: " }),
|
13
|
+
/* @__PURE__ */ jsx(Typography, { variant: "caption", children: error?.message })
|
14
|
+
] }) : /* @__PURE__ */ jsx(Typography, { variant: "caption", fontSize: "small", children: "Error Loading Plugin" })
|
15
|
+
] });
|
16
|
+
};
|
17
|
+
export {
|
18
|
+
EmbedErrorCard
|
19
|
+
};
|
20
|
+
//# sourceMappingURL=EmbedErrorCard.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/embed-card/error-handling/EmbedErrorCard.tsx"],"sourcesContent":["import { Alert, AlertProps, AlertTitle, Card, CardContent, CardProps, Typography } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\ninterface EmbedErrorCardBaseProps {\n alertProps?: AlertProps\n error?: Error\n hideErrorDetails?: boolean\n}\n\ninterface EmbedErrorCardProps extends EmbedErrorCardBaseProps, CardProps {\n alertProps?: AlertProps\n error?: Error\n}\n\nexport const EmbedErrorCard: React.FC<WithChildren<EmbedErrorCardProps>> = (props) => {\n const { alertProps, error, hideErrorDetails = true, children, ...cardProps } = props\n const errorProps = { alertProps, error, hideErrorDetails }\n return (\n <Card {...cardProps}>\n <CardContent>{children ?? <DefaultErrorAlert {...errorProps} />}</CardContent>\n </Card>\n )\n}\n\nconst DefaultErrorAlert: React.FC<EmbedErrorCardBaseProps> = ({ alertProps, hideErrorDetails, error }) => {\n return (\n <Alert severity=\"error\" {...alertProps}>\n <AlertTitle>Whoops! Something went wrong</AlertTitle>\n {!hideErrorDetails && error ? (\n <>\n <Typography variant=\"caption\">Error: </Typography>\n <Typography variant=\"caption\">{error?.message}</Typography>\n </>\n ) : (\n <Typography variant=\"caption\" fontSize=\"small\">\n Error Loading Plugin\n </Typography>\n )}\n </Alert>\n )\n}\n"],"mappings":"AAmBgC,SAUxB,UAVwB,KAUxB,YAVwB;AAnBhC,SAAS,OAAmB,YAAY,MAAM,aAAwB,kBAAkB;AAcjF,MAAM,iBAA8D,CAAC,UAAU;AACpF,QAAM,EAAE,YAAY,OAAO,mBAAmB,MAAM,UAAU,GAAG,UAAU,IAAI;AAC/E,QAAM,aAAa,EAAE,YAAY,OAAO,iBAAiB;AACzD,SACE,oBAAC,QAAM,GAAG,WACR,8BAAC,eAAa,sBAAY,oBAAC,qBAAmB,GAAG,YAAY,GAAG,GAClE;AAEJ;AAEA,MAAM,oBAAuD,CAAC,EAAE,YAAY,kBAAkB,MAAM,MAAM;AACxG,SACE,qBAAC,SAAM,UAAS,SAAS,GAAG,YAC1B;AAAA,wBAAC,cAAW,0CAA4B;AAAA,IACvC,CAAC,oBAAoB,QACpB,iCACE;AAAA,0BAAC,cAAW,SAAQ,WAAU,qBAAO;AAAA,MACrC,oBAAC,cAAW,SAAQ,WAAW,iBAAO,SAAQ;AAAA,OAChD,IAEA,oBAAC,cAAW,SAAQ,WAAU,UAAS,SAAQ,kCAE/C;AAAA,KAEJ;AAEJ;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,kBAAkB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,kBAAkB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/embed-card/error-handling/index.ts"],"sourcesContent":["export * from './EmbedCardApiErrorRenderer'\nexport * from './EmbedErrorCard'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/embed-card/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,mBAAmB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/embed-card/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,mBAAmB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/embed-card/index.ts"],"sourcesContent":["export * from './card'\nexport * from './EmbedPluginCard'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/embed-card/menu/EmbedMenu.tsx"],"names":[],"mappings":";AACA,OAAO,EAAc,eAAe,EAAQ,MAAM,eAAe,CAAA;AAKjE,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAsB/C,CAAA"}
|