@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,"sources":["../../../../src/contexts/RefreshPayloadContext/index.ts"],"sourcesContent":["export * from './Provider'\nexport * from './State'\nexport * from './use'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/use.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,oHAAoE,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/use.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,oHAAoE,CAAA"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { useContextEx } from "@xyo-network/react-shared";
|
2
|
+
import { RefreshPayloadContext } from "./Context";
|
3
|
+
const useRefreshPayload = () => useContextEx(RefreshPayloadContext, "RefreshPayload", true);
|
4
|
+
export {
|
5
|
+
useRefreshPayload
|
6
|
+
};
|
7
|
+
//# sourceMappingURL=use.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/RefreshPayloadContext/use.tsx"],"sourcesContent":["import { useContextEx } from '@xyo-network/react-shared'\n\nimport { RefreshPayloadContext } from './Context'\n\nexport const useRefreshPayload = () => useContextEx(RefreshPayloadContext, 'RefreshPayload', true)\n"],"mappings":"AAAA,SAAS,oBAAoB;AAE7B,SAAS,6BAA6B;AAE/B,MAAM,oBAAoB,MAAM,aAAa,uBAAuB,kBAAkB,IAAI;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/Context.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAE7C,eAAO,MAAM,qBAAqB,mGAAyC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/Context.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAE7C,eAAO,MAAM,qBAAqB,mGAAyC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/ResolvePayloadContext/Context.ts"],"sourcesContent":["import { createContextEx } from '@xyo-network/react-shared'\n\nimport { ResolvePayloadState } from './State'\n\nexport const ResolvePayloadContext = createContextEx<ResolvePayloadState>()\n"],"mappings":"AAAA,SAAS,uBAAuB;AAIzB,MAAM,wBAAwB,gBAAqC;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/Provider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAOnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAE7C,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,CAAA;AAE/E,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,2BAA2B,CAAC,CAoDtF,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/Provider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAOnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAE7C,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAAC,mBAAmB,EAAE,UAAU,CAAC,CAAA;AAE/E,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,2BAA2B,CAAC,CAoDtF,CAAA"}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { delay } from "@xylabs/delay";
|
3
|
+
import { useAsyncEffect } from "@xylabs/react-async-effect";
|
4
|
+
import { Huri } from "@xyo-network/huri";
|
5
|
+
import { ModuleErrorSchema } from "@xyo-network/payload-model";
|
6
|
+
import { useEffect, useState } from "react";
|
7
|
+
import { useRefreshPayload } from "../RefreshPayloadContext";
|
8
|
+
import { ResolvePayloadContext } from "./Context";
|
9
|
+
const ResolvePayloadProvider = ({ children, huriPayload }) => {
|
10
|
+
const [payload, setPayload] = useState();
|
11
|
+
const [huri, setHuri] = useState();
|
12
|
+
const { refreshPayload, setRefreshPayload, onRefresh } = useRefreshPayload();
|
13
|
+
useEffect(() => {
|
14
|
+
typeof huriPayload === "string" ? setHuri(huriPayload) : void 0;
|
15
|
+
if (typeof huriPayload === "object") {
|
16
|
+
setPayload(huriPayload);
|
17
|
+
setRefreshPayload?.(true);
|
18
|
+
}
|
19
|
+
}, [huriPayload, setRefreshPayload]);
|
20
|
+
const [notFound, setNotFound] = useState();
|
21
|
+
const [huriError, setHuriError] = useState();
|
22
|
+
useAsyncEffect(
|
23
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
24
|
+
async (mounted) => {
|
25
|
+
if (huri && !refreshPayload) {
|
26
|
+
try {
|
27
|
+
const huriInstance = new Huri(huri);
|
28
|
+
const result = await huriInstance.fetch();
|
29
|
+
await delay(500);
|
30
|
+
if (mounted()) {
|
31
|
+
setNotFound(result === null);
|
32
|
+
setPayload(result);
|
33
|
+
setRefreshPayload?.(true);
|
34
|
+
}
|
35
|
+
} catch (e) {
|
36
|
+
const error = e;
|
37
|
+
setHuriError({ message: error.message, schema: ModuleErrorSchema, sources: [] });
|
38
|
+
}
|
39
|
+
}
|
40
|
+
},
|
41
|
+
[huri, payload, refreshPayload, setRefreshPayload]
|
42
|
+
);
|
43
|
+
const refreshHuri = () => {
|
44
|
+
onRefresh?.();
|
45
|
+
if (huri) {
|
46
|
+
setRefreshPayload?.(false);
|
47
|
+
}
|
48
|
+
};
|
49
|
+
return /* @__PURE__ */ jsx(ResolvePayloadContext.Provider, { value: { huri, huriError, notFound, payload, provided: true, refreshHuri, setPayload }, children });
|
50
|
+
};
|
51
|
+
export {
|
52
|
+
ResolvePayloadProvider
|
53
|
+
};
|
54
|
+
//# sourceMappingURL=Provider.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/ResolvePayloadContext/Provider.tsx"],"sourcesContent":["import { delay } from '@xylabs/delay'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { Huri } from '@xyo-network/huri'\nimport { ModuleError, ModuleErrorSchema, Payload } from '@xyo-network/payload-model'\nimport { useEffect, useState } from 'react'\n\nimport { useRefreshPayload } from '../RefreshPayloadContext'\nimport { ResolvePayloadContext } from './Context'\nimport { ResolvePayloadState } from './State'\n\nexport type ResolvePayloadProviderProps = Omit<ResolvePayloadState, 'provided'>\n\nexport const ResolvePayloadProvider: React.FC<WithChildren<ResolvePayloadProviderProps>> = ({ children, huriPayload }) => {\n const [payload, setPayload] = useState<Payload>()\n const [huri, setHuri] = useState<string>()\n const { refreshPayload, setRefreshPayload, onRefresh } = useRefreshPayload()\n\n useEffect(() => {\n typeof huriPayload === 'string' ? setHuri(huriPayload) : undefined\n if (typeof huriPayload === 'object') {\n setPayload(huriPayload)\n setRefreshPayload?.(true)\n }\n }, [huriPayload, setRefreshPayload])\n\n const [notFound, setNotFound] = useState<boolean>()\n const [huriError, setHuriError] = useState<ModuleError>()\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async (mounted) => {\n if (huri && !refreshPayload) {\n try {\n const huriInstance = new Huri(huri)\n const result = await huriInstance.fetch()\n // ensure the busy state can stay for a moment to avoid flashing too quickly\n await delay(500)\n\n if (mounted()) {\n setNotFound(result === null)\n setPayload(result)\n setRefreshPayload?.(true)\n }\n } catch (e) {\n const error = e as Error\n setHuriError({ message: error.message, schema: ModuleErrorSchema, sources: [] })\n }\n }\n },\n [huri, payload, refreshPayload, setRefreshPayload],\n )\n\n const refreshHuri = () => {\n onRefresh?.()\n if (huri) {\n setRefreshPayload?.(false)\n }\n }\n\n return (\n <ResolvePayloadContext.Provider value={{ huri, huriError, notFound, payload, provided: true, refreshHuri, setPayload }}>\n {children}\n </ResolvePayloadContext.Provider>\n )\n}\n"],"mappings":"AA6DI;AA7DJ,SAAS,aAAa;AACtB,SAAS,sBAAsB;AAE/B,SAAS,YAAY;AACrB,SAAsB,yBAAkC;AACxD,SAAS,WAAW,gBAAgB;AAEpC,SAAS,yBAAyB;AAClC,SAAS,6BAA6B;AAK/B,MAAM,yBAA8E,CAAC,EAAE,UAAU,YAAY,MAAM;AACxH,QAAM,CAAC,SAAS,UAAU,IAAI,SAAkB;AAChD,QAAM,CAAC,MAAM,OAAO,IAAI,SAAiB;AACzC,QAAM,EAAE,gBAAgB,mBAAmB,UAAU,IAAI,kBAAkB;AAE3E,YAAU,MAAM;AACd,WAAO,gBAAgB,WAAW,QAAQ,WAAW,IAAI;AACzD,QAAI,OAAO,gBAAgB,UAAU;AACnC,iBAAW,WAAW;AACtB,0BAAoB,IAAI;AAAA,IAC1B;AAAA,EACF,GAAG,CAAC,aAAa,iBAAiB,CAAC;AAEnC,QAAM,CAAC,UAAU,WAAW,IAAI,SAAkB;AAClD,QAAM,CAAC,WAAW,YAAY,IAAI,SAAsB;AAExD;AAAA;AAAA,IAEE,OAAO,YAAY;AACjB,UAAI,QAAQ,CAAC,gBAAgB;AAC3B,YAAI;AACF,gBAAM,eAAe,IAAI,KAAK,IAAI;AAClC,gBAAM,SAAS,MAAM,aAAa,MAAM;AAExC,gBAAM,MAAM,GAAG;AAEf,cAAI,QAAQ,GAAG;AACb,wBAAY,WAAW,IAAI;AAC3B,uBAAW,MAAM;AACjB,gCAAoB,IAAI;AAAA,UAC1B;AAAA,QACF,SAAS,GAAG;AACV,gBAAM,QAAQ;AACd,uBAAa,EAAE,SAAS,MAAM,SAAS,QAAQ,mBAAmB,SAAS,CAAC,EAAE,CAAC;AAAA,QACjF;AAAA,MACF;AAAA,IACF;AAAA,IACA,CAAC,MAAM,SAAS,gBAAgB,iBAAiB;AAAA,EACnD;AAEA,QAAM,cAAc,MAAM;AACxB,gBAAY;AACZ,QAAI,MAAM;AACR,0BAAoB,KAAK;AAAA,IAC3B;AAAA,EACF;AAEA,SACE,oBAAC,sBAAsB,UAAtB,EAA+B,OAAO,EAAE,MAAM,WAAW,UAAU,SAAS,UAAU,MAAM,aAAa,WAAW,GAClH,UACH;AAEJ;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAEhD,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,WAAW,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,UAAU,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC,CAAA;CAC3D"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAEhD,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,WAAW,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,UAAU,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC,CAAA;CAC3D"}
|
@@ -0,0 +1 @@
|
|
1
|
+
//# sourceMappingURL=State.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/ResolvePayloadContext/index.ts"],"sourcesContent":["export * from './Context'\nexport * from './Provider'\nexport * from './State'\nexport * from './use'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/use.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,oHAAoE,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/use.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,oHAAoE,CAAA"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { useContextEx } from "@xyo-network/react-shared";
|
2
|
+
import { ResolvePayloadContext } from "./Context";
|
3
|
+
const useResolvePayload = () => useContextEx(ResolvePayloadContext, "ResolvePayload", true);
|
4
|
+
export {
|
5
|
+
useResolvePayload
|
6
|
+
};
|
7
|
+
//# sourceMappingURL=use.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/ResolvePayloadContext/use.tsx"],"sourcesContent":["import { useContextEx } from '@xyo-network/react-shared'\n\nimport { ResolvePayloadContext } from './Context'\n\nexport const useResolvePayload = () => useContextEx(ResolvePayloadContext, 'ResolvePayload', true)\n"],"mappings":"AAAA,SAAS,oBAAoB;AAE7B,SAAS,6BAA6B;AAE/B,MAAM,oBAAoB,MAAM,aAAa,uBAAuB,kBAAkB,IAAI;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/Context.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAE9C,eAAO,MAAM,sBAAsB,oGAA0C,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/Context.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAE9C,eAAO,MAAM,sBAAsB,oGAA0C,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/ValidatePayloadContext/Context.ts"],"sourcesContent":["import { createContextEx } from '@xyo-network/react-shared'\n\nimport { ValidatePayloadState } from './State'\n\nexport const ValidatePayloadContext = createContextEx<ValidatePayloadState>()\n"],"mappings":"AAAA,SAAS,uBAAuB;AAIzB,MAAM,yBAAyB,gBAAsC;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/Provider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAOnD,MAAM,WAAW,4BAA4B;IAE3C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,4BAA4B,CAAC,CA4BxF,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/Provider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAOnD,MAAM,WAAW,4BAA4B;IAE3C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,4BAA4B,CAAC,CA4BxF,CAAA"}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
2
|
+
import { Chip } from "@mui/material";
|
3
|
+
import { useAsyncEffect } from "@xylabs/react-async-effect";
|
4
|
+
import { SchemaCache } from "@xyo-network/schema-cache";
|
5
|
+
import { useState } from "react";
|
6
|
+
import { useResolvePayload } from "../ResolvePayloadContext";
|
7
|
+
import { ValidatePayloadContext } from "./Context";
|
8
|
+
const ValidatePayloadProvider = ({ children, enabled = false }) => {
|
9
|
+
const { payload } = useResolvePayload();
|
10
|
+
const [initialized, setInitialized] = useState(false);
|
11
|
+
const [valid, setValid] = useState();
|
12
|
+
useAsyncEffect(
|
13
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
14
|
+
async () => {
|
15
|
+
if (payload && enabled) {
|
16
|
+
await SchemaCache.instance.get(payload.schema);
|
17
|
+
const possibleKnownSchema = payload.schema;
|
18
|
+
if (SchemaCache.instance.validators[possibleKnownSchema]) {
|
19
|
+
const validator = SchemaCache.instance.validators[possibleKnownSchema];
|
20
|
+
setValid(validator?.(payload));
|
21
|
+
}
|
22
|
+
setInitialized(true);
|
23
|
+
}
|
24
|
+
},
|
25
|
+
[payload, enabled]
|
26
|
+
);
|
27
|
+
return /* @__PURE__ */ jsx(ValidatePayloadContext.Provider, { value: { enabled, provided: true, schema: payload?.schema, validPayload: valid }, children: enabled ? /* @__PURE__ */ jsx(Fragment, { children: initialized ? children : /* @__PURE__ */ jsx(Chip, { label: "Validating Payload..." }) }) : children });
|
28
|
+
};
|
29
|
+
export {
|
30
|
+
ValidatePayloadProvider
|
31
|
+
};
|
32
|
+
//# sourceMappingURL=Provider.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/ValidatePayloadContext/Provider.tsx"],"sourcesContent":["import { Chip } from '@mui/material'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { SchemaCache, SchemaNameToValidatorMap } from '@xyo-network/schema-cache'\nimport { useState } from 'react'\n\nimport { useResolvePayload } from '../ResolvePayloadContext'\nimport { ValidatePayloadContext } from './Context'\n\nexport interface ValidatePayloadProviderProps {\n // Opt-in flag to validate payloads for the plugin(s)\n enabled?: boolean\n}\n\nexport const ValidatePayloadProvider: React.FC<WithChildren<ValidatePayloadProviderProps>> = ({ children, enabled = false }) => {\n const { payload } = useResolvePayload()\n const [initialized, setInitialized] = useState(false)\n const [valid, setValid] = useState<boolean>()\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async () => {\n if (payload && enabled) {\n await SchemaCache.instance.get(payload.schema)\n\n const possibleKnownSchema = payload.schema as keyof SchemaNameToValidatorMap\n\n if (SchemaCache.instance.validators[possibleKnownSchema]) {\n const validator = SchemaCache.instance.validators[possibleKnownSchema]\n setValid(validator?.(payload))\n }\n setInitialized(true)\n }\n },\n [payload, enabled],\n )\n\n return (\n <ValidatePayloadContext.Provider value={{ enabled, provided: true, schema: payload?.schema, validPayload: valid }}>\n {enabled ? <>{initialized ? children : <Chip label=\"Validating Payload...\" />}</> : children}\n </ValidatePayloadContext.Provider>\n )\n}\n"],"mappings":"AAuCiB,mBAA4B,WAA5B;AAvCjB,SAAS,YAAY;AACrB,SAAS,sBAAsB;AAE/B,SAAS,mBAA6C;AACtD,SAAS,gBAAgB;AAEzB,SAAS,yBAAyB;AAClC,SAAS,8BAA8B;AAOhC,MAAM,0BAAgF,CAAC,EAAE,UAAU,UAAU,MAAM,MAAM;AAC9H,QAAM,EAAE,QAAQ,IAAI,kBAAkB;AACtC,QAAM,CAAC,aAAa,cAAc,IAAI,SAAS,KAAK;AACpD,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAkB;AAE5C;AAAA;AAAA,IAEE,YAAY;AACV,UAAI,WAAW,SAAS;AACtB,cAAM,YAAY,SAAS,IAAI,QAAQ,MAAM;AAE7C,cAAM,sBAAsB,QAAQ;AAEpC,YAAI,YAAY,SAAS,WAAW,mBAAmB,GAAG;AACxD,gBAAM,YAAY,YAAY,SAAS,WAAW,mBAAmB;AACrE,mBAAS,YAAY,OAAO,CAAC;AAAA,QAC/B;AACA,uBAAe,IAAI;AAAA,MACrB;AAAA,IACF;AAAA,IACA,CAAC,SAAS,OAAO;AAAA,EACnB;AAEA,SACE,oBAAC,uBAAuB,UAAvB,EAAgC,OAAO,EAAE,SAAS,UAAU,MAAM,QAAQ,SAAS,QAAQ,cAAc,MAAM,GAC7G,oBAAU,gCAAG,wBAAc,WAAW,oBAAC,QAAK,OAAM,yBAAwB,GAAG,IAAM,UACtF;AAEJ;","names":[]}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
+
import { Typography } from "@mui/material";
|
3
|
+
import { EmbedPluginContext } from "../EmbedPluginContext";
|
4
|
+
import { RefreshPayloadProvider } from "../RefreshPayloadContext";
|
5
|
+
import { ResolvePayloadContext } from "../ResolvePayloadContext";
|
6
|
+
import { ValidatePayloadProvider } from "./Provider";
|
7
|
+
import { useValidatePayload } from "./use";
|
8
|
+
const EmbedDecorator = (Story, { args }) => {
|
9
|
+
const { xyoEmbedPluginContext, resolvePayloadContext, ...props } = args;
|
10
|
+
console.log(resolvePayloadContext);
|
11
|
+
return /* @__PURE__ */ jsx(RefreshPayloadProvider, { children: /* @__PURE__ */ jsx(ResolvePayloadContext.Provider, { value: resolvePayloadContext, children: /* @__PURE__ */ jsx(EmbedPluginContext.Provider, { value: xyoEmbedPluginContext, children: /* @__PURE__ */ jsx(Story, { ...props }) }) }) });
|
12
|
+
};
|
13
|
+
const StorybookEntry = {
|
14
|
+
component: ValidatePayloadProvider,
|
15
|
+
decorators: [EmbedDecorator],
|
16
|
+
title: "embed/ValidatePayloadProvider"
|
17
|
+
};
|
18
|
+
const ValidatePayloadState = () => {
|
19
|
+
const state = useValidatePayload();
|
20
|
+
return /* @__PURE__ */ jsx("pre", { children: JSON.stringify(state, null, 2) });
|
21
|
+
};
|
22
|
+
const Template = (props) => {
|
23
|
+
return /* @__PURE__ */ jsxs(ValidatePayloadProvider, { ...props, children: [
|
24
|
+
/* @__PURE__ */ jsx(Typography, { children: "State:" }),
|
25
|
+
/* @__PURE__ */ jsx(ValidatePayloadState, {}),
|
26
|
+
/* @__PURE__ */ jsx(Typography, { children: "Children" })
|
27
|
+
] });
|
28
|
+
};
|
29
|
+
const InvalidPayload = { schema: "network.xyo.schema" };
|
30
|
+
const ValidPayload = { definition: { $id: "test.schema" }, schema: "network.xyo.schema" };
|
31
|
+
const stubProviderDefaultValue = { provided: true };
|
32
|
+
const Default = Template.bind({});
|
33
|
+
Default.args = { resolvePayloadContext: stubProviderDefaultValue, xyoEmbedPluginContext: stubProviderDefaultValue };
|
34
|
+
const ValidationSucceeded = Template.bind({});
|
35
|
+
ValidationSucceeded.args = {
|
36
|
+
enabled: true,
|
37
|
+
resolvePayloadContext: { payload: ValidPayload, ...stubProviderDefaultValue },
|
38
|
+
xyoEmbedPluginContext: stubProviderDefaultValue
|
39
|
+
};
|
40
|
+
const ValidationFailed = Template.bind({});
|
41
|
+
ValidationFailed.args = {
|
42
|
+
enabled: true,
|
43
|
+
resolvePayloadContext: { payload: InvalidPayload, ...stubProviderDefaultValue },
|
44
|
+
xyoEmbedPluginContext: stubProviderDefaultValue
|
45
|
+
};
|
46
|
+
var Provider_stories_default = StorybookEntry;
|
47
|
+
export {
|
48
|
+
Default,
|
49
|
+
ValidationFailed,
|
50
|
+
ValidationSucceeded,
|
51
|
+
Provider_stories_default as default
|
52
|
+
};
|
53
|
+
//# sourceMappingURL=Provider.stories.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/ValidatePayloadContext/Provider.stories.tsx"],"sourcesContent":["import { Typography } from '@mui/material'\nimport { Decorator, Meta, StoryFn } from '@storybook/react'\n\nimport { EmbedPluginContext, EmbedPluginState } from '../EmbedPluginContext'\nimport { RefreshPayloadProvider } from '../RefreshPayloadContext'\nimport { ResolvePayloadContext, ResolvePayloadState } from '../ResolvePayloadContext'\nimport { ValidatePayloadProvider, ValidatePayloadProviderProps } from './Provider'\nimport { useValidatePayload } from './use'\n\nconst EmbedDecorator: Decorator<ValidatePayloadProviderPropsEx> = (Story, { args }) => {\n const { xyoEmbedPluginContext, resolvePayloadContext, ...props } = args\n console.log(resolvePayloadContext)\n return (\n <RefreshPayloadProvider>\n <ResolvePayloadContext.Provider value={resolvePayloadContext}>\n <EmbedPluginContext.Provider value={xyoEmbedPluginContext}>\n <Story {...props} />\n </EmbedPluginContext.Provider>\n </ResolvePayloadContext.Provider>\n </RefreshPayloadProvider>\n )\n}\n\nconst StorybookEntry: Meta<ValidatePayloadProviderPropsEx> = {\n component: ValidatePayloadProvider,\n decorators: [EmbedDecorator],\n title: 'embed/ValidatePayloadProvider',\n}\n\nconst ValidatePayloadState = () => {\n const state = useValidatePayload()\n return <pre>{JSON.stringify(state, null, 2)}</pre>\n}\n\ninterface ValidatePayloadProviderPropsEx extends ValidatePayloadProviderProps {\n resolvePayloadContext: ResolvePayloadState\n xyoEmbedPluginContext: EmbedPluginState\n}\n\nconst Template: StoryFn<React.FC<ValidatePayloadProviderPropsEx>> = (props) => {\n return (\n <ValidatePayloadProvider {...props}>\n <Typography>State:</Typography>\n <ValidatePayloadState />\n <Typography>Children</Typography>\n </ValidatePayloadProvider>\n )\n}\n\nconst InvalidPayload = { schema: 'network.xyo.schema' }\nconst ValidPayload = { definition: { $id: 'test.schema' }, schema: 'network.xyo.schema' }\nconst stubProviderDefaultValue = { provided: true }\n\nconst Default = Template.bind({})\nDefault.args = { resolvePayloadContext: stubProviderDefaultValue, xyoEmbedPluginContext: stubProviderDefaultValue }\n\nconst ValidationSucceeded = Template.bind({})\nValidationSucceeded.args = {\n enabled: true,\n resolvePayloadContext: { payload: ValidPayload, ...stubProviderDefaultValue },\n xyoEmbedPluginContext: stubProviderDefaultValue,\n}\n\nconst ValidationFailed = Template.bind({})\nValidationFailed.args = {\n enabled: true,\n resolvePayloadContext: { payload: InvalidPayload, ...stubProviderDefaultValue },\n xyoEmbedPluginContext: stubProviderDefaultValue,\n}\n\nexport { Default, ValidationFailed, ValidationSucceeded }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":"AAgBU,cAyBN,YAzBM;AAhBV,SAAS,kBAAkB;AAG3B,SAAS,0BAA4C;AACrD,SAAS,8BAA8B;AACvC,SAAS,6BAAkD;AAC3D,SAAS,+BAA6D;AACtE,SAAS,0BAA0B;AAEnC,MAAM,iBAA4D,CAAC,OAAO,EAAE,KAAK,MAAM;AACrF,QAAM,EAAE,uBAAuB,uBAAuB,GAAG,MAAM,IAAI;AACnE,UAAQ,IAAI,qBAAqB;AACjC,SACE,oBAAC,0BACC,8BAAC,sBAAsB,UAAtB,EAA+B,OAAO,uBACrC,8BAAC,mBAAmB,UAAnB,EAA4B,OAAO,uBAClC,8BAAC,SAAO,GAAG,OAAO,GACpB,GACF,GACF;AAEJ;AAEA,MAAM,iBAAuD;AAAA,EAC3D,WAAW;AAAA,EACX,YAAY,CAAC,cAAc;AAAA,EAC3B,OAAO;AACT;AAEA,MAAM,uBAAuB,MAAM;AACjC,QAAM,QAAQ,mBAAmB;AACjC,SAAO,oBAAC,SAAK,eAAK,UAAU,OAAO,MAAM,CAAC,GAAE;AAC9C;AAOA,MAAM,WAA8D,CAAC,UAAU;AAC7E,SACE,qBAAC,2BAAyB,GAAG,OAC3B;AAAA,wBAAC,cAAW,oBAAM;AAAA,IAClB,oBAAC,wBAAqB;AAAA,IACtB,oBAAC,cAAW,sBAAQ;AAAA,KACtB;AAEJ;AAEA,MAAM,iBAAiB,EAAE,QAAQ,qBAAqB;AACtD,MAAM,eAAe,EAAE,YAAY,EAAE,KAAK,cAAc,GAAG,QAAQ,qBAAqB;AACxF,MAAM,2BAA2B,EAAE,UAAU,KAAK;AAElD,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,OAAO,EAAE,uBAAuB,0BAA0B,uBAAuB,yBAAyB;AAElH,MAAM,sBAAsB,SAAS,KAAK,CAAC,CAAC;AAC5C,oBAAoB,OAAO;AAAA,EACzB,SAAS;AAAA,EACT,uBAAuB,EAAE,SAAS,cAAc,GAAG,yBAAyB;AAAA,EAC5E,uBAAuB;AACzB;AAEA,MAAM,mBAAmB,SAAS,KAAK,CAAC,CAAC;AACzC,iBAAiB,OAAO;AAAA,EACtB,SAAS;AAAA,EACT,uBAAuB,EAAE,SAAS,gBAAgB,GAAG,yBAAyB;AAAA,EAC9E,uBAAuB;AACzB;AAKA,IAAO,2BAAQ;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
//# sourceMappingURL=State.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/ValidatePayloadContext/index.ts"],"sourcesContent":["export * from './Provider'\nexport * from './State'\nexport * from './use'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/use.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,qHAAqE,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/use.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,qHAAqE,CAAA"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { useContextEx } from "@xyo-network/react-shared";
|
2
|
+
import { ValidatePayloadContext } from "./Context";
|
3
|
+
const useValidatePayload = () => useContextEx(ValidatePayloadContext, "ValidateSchema", true);
|
4
|
+
export {
|
5
|
+
useValidatePayload
|
6
|
+
};
|
7
|
+
//# sourceMappingURL=use.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/ValidatePayloadContext/use.tsx"],"sourcesContent":["import { useContextEx } from '@xyo-network/react-shared'\n\nimport { ValidatePayloadContext } from './Context'\n\nexport const useValidatePayload = () => useContextEx(ValidatePayloadContext, 'ValidateSchema', true)\n"],"mappings":"AAAA,SAAS,oBAAoB;AAE7B,SAAS,8BAA8B;AAEhC,MAAM,qBAAqB,MAAM,aAAa,wBAAwB,kBAAkB,IAAI;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/contexts/index.ts"],"sourcesContent":["export * from './EmbedPluginContext'\nexport * from './RefreshPayloadContext'\nexport * from './ResolvePayloadContext'\nexport * from './ValidatePayloadContext'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './components'\nexport * from './contexts'\nexport * from './types'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedPluginProps.d.ts","sourceRoot":"","sources":["../../../src/types/EmbedPluginProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,eAAe,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAE1E,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,kBAAkB,CAAC,EAAE,2BAA2B,CAAA;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC9B,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedPluginProps.d.ts","sourceRoot":"","sources":["../../../src/types/EmbedPluginProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,eAAe,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAE1E,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,kBAAkB,CAAC,EAAE,2BAA2B,CAAA;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC9B,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
//# sourceMappingURL=EmbedPluginProps.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/types/index.ts"],"sourcesContent":["export * from './EmbedPluginProps'\n"],"mappings":"AAAA,cAAc;","names":[]}
|
@@ -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,62 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __export = (target, all) => {
|
7
|
+
for (var name in all)
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
+
};
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
+
for (let key of __getOwnPropNames(from))
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
+
}
|
16
|
+
return to;
|
17
|
+
};
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
+
var EmbedPlugin_exports = {};
|
20
|
+
__export(EmbedPlugin_exports, {
|
21
|
+
EmbedPluginInner: () => EmbedPluginInner
|
22
|
+
});
|
23
|
+
module.exports = __toCommonJS(EmbedPlugin_exports);
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
25
|
+
var import_react_shared2 = require("@xyo-network/react-shared");
|
26
|
+
var import_contexts = require("../contexts");
|
27
|
+
var import_EmbedResolver = require("./EmbedResolver");
|
28
|
+
var import_validation_alerts = require("./validation-alerts");
|
29
|
+
const EmbedPluginInner = ({
|
30
|
+
validateSchema,
|
31
|
+
plugins = [],
|
32
|
+
huriPayload,
|
33
|
+
refreshTitle = "",
|
34
|
+
timestampLabel = "Data From",
|
35
|
+
hideElementsConfig,
|
36
|
+
embedPluginConfig,
|
37
|
+
onRefresh,
|
38
|
+
children
|
39
|
+
}) => {
|
40
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_shared2.ErrorBoundary, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
41
|
+
import_contexts.EmbedPluginProvider,
|
42
|
+
{
|
43
|
+
refreshTitle,
|
44
|
+
timestampLabel,
|
45
|
+
hideElementsConfig,
|
46
|
+
plugins,
|
47
|
+
embedPluginConfig,
|
48
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WithResolvers, { onRefresh, huriPayload, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WithValidators, { validateSchema, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_shared2.ListModeProvider, { defaultListMode: embedPluginConfig?.listMode, children }) }) })
|
49
|
+
}
|
50
|
+
) });
|
51
|
+
};
|
52
|
+
const WithResolvers = ({ children, onRefresh, huriPayload }) => {
|
53
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_contexts.RefreshPayloadProvider, { onRefresh, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_contexts.ResolvePayloadProvider, { huriPayload, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_EmbedResolver.EmbedResolver, { children }) }) });
|
54
|
+
};
|
55
|
+
const WithValidators = ({ children, validateSchema }) => {
|
56
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_contexts.ValidatePayloadProvider, { enabled: validateSchema, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_validation_alerts.ValidatePluginsAlert, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_validation_alerts.ValidatePayloadAlert, { children }) }) });
|
57
|
+
};
|
58
|
+
// Annotate the CommonJS export names for ESM import in node:
|
59
|
+
0 && (module.exports = {
|
60
|
+
EmbedPluginInner
|
61
|
+
});
|
62
|
+
//# 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":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA+BY;AA7BZ,IAAAA,uBAAgD;AAEhD,sBAA6G;AAE7G,2BAA8B;AAC9B,+BAA2D;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,4CAAC,sCACC;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MAEA,sDAAC,iBAAc,WAAsB,aACnC,sDAAC,kBAAe,gBACd,sDAAC,yCAAiB,iBAAiB,mBAAmB,UAAW,UAAS,GAC5E,GACF;AAAA;AAAA,EACF,GACF;AAEJ;AAIA,MAAM,gBAA4D,CAAC,EAAE,UAAU,WAAW,YAAY,MAAM;AAC1G,SACE,4CAAC,0CAAuB,WACtB,sDAAC,0CAAuB,aACtB,sDAAC,sCAAe,UAAS,GAC3B,GACF;AAEJ;AAEA,MAAM,iBAAuE,CAAC,EAAE,UAAU,eAAe,MAAM;AAC7G,SACE,4CAAC,2CAAwB,SAAS,gBAChC,sDAAC,iDACC,sDAAC,iDAAsB,UAAS,GAClC,GACF;AAEJ;","names":["import_react_shared"]}
|
@@ -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.mjs.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"}
|