@xyo-network/react-embed 2.62.3 → 2.63.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/components/EmbedPlugin.js +19 -0
- package/dist/cjs/components/EmbedPlugin.js.map +1 -0
- package/dist/cjs/components/EmbedResolver.js +12 -0
- package/dist/cjs/components/EmbedResolver.js.map +1 -0
- package/dist/cjs/components/controls/EmbedFormControl.js +12 -0
- package/dist/cjs/components/controls/EmbedFormControl.js.map +1 -0
- package/dist/cjs/components/controls/ListModeSelect.js +21 -0
- package/dist/cjs/components/controls/ListModeSelect.js.map +1 -0
- package/dist/cjs/components/controls/RenderSelect.js +15 -0
- package/dist/cjs/components/controls/RenderSelect.js.map +1 -0
- package/dist/cjs/components/controls/index.js +7 -0
- package/dist/cjs/components/controls/index.js.map +1 -0
- package/dist/cjs/components/embed-card/EmbedCardResolver.js +19 -0
- package/dist/cjs/components/embed-card/EmbedCardResolver.js.map +1 -0
- package/dist/cjs/components/embed-card/EmbedPluginCard.js +35 -0
- package/dist/cjs/components/embed-card/EmbedPluginCard.js.map +1 -0
- package/dist/cjs/components/embed-card/card/BusyCard.js +15 -0
- package/dist/cjs/components/embed-card/card/BusyCard.js.map +1 -0
- package/dist/cjs/components/embed-card/card/EmbedCardHeader.js +21 -0
- package/dist/cjs/components/embed-card/card/EmbedCardHeader.js.map +1 -0
- package/dist/cjs/components/embed-card/card/EmbedPluginCard.js +23 -0
- package/dist/cjs/components/embed-card/card/EmbedPluginCard.js.map +1 -0
- package/dist/cjs/components/embed-card/card/index.js +7 -0
- package/dist/cjs/components/embed-card/card/index.js.map +1 -0
- package/dist/cjs/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +17 -0
- package/dist/cjs/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +1 -0
- package/dist/cjs/components/embed-card/error-handling/EmbedErrorCard.js +16 -0
- package/dist/cjs/components/embed-card/error-handling/EmbedErrorCard.js.map +1 -0
- package/dist/cjs/components/embed-card/error-handling/index.js +6 -0
- package/dist/cjs/components/embed-card/error-handling/index.js.map +1 -0
- package/dist/cjs/components/embed-card/index.js +6 -0
- package/dist/cjs/components/embed-card/index.js.map +1 -0
- package/dist/cjs/components/embed-card/menu/EmbedMenu.js +23 -0
- package/dist/cjs/components/embed-card/menu/EmbedMenu.js.map +1 -0
- package/dist/cjs/components/embed-card/menu/JsonMenuItem.js +14 -0
- package/dist/cjs/components/embed-card/menu/JsonMenuItem.js.map +1 -0
- package/dist/cjs/components/embed-card/menu/index.js +5 -0
- package/dist/cjs/components/embed-card/menu/index.js.map +1 -0
- package/dist/cjs/components/embed-plugin-stories/storyPayload.js +25 -0
- package/dist/cjs/components/embed-plugin-stories/storyPayload.js.map +1 -0
- package/dist/cjs/components/embed-plugin-stories/storyShared.js +20 -0
- package/dist/cjs/components/embed-plugin-stories/storyShared.js.map +1 -0
- package/dist/cjs/components/index.js +6 -0
- package/dist/cjs/components/index.js.map +1 -0
- package/dist/cjs/components/validation-alerts/ValidatePayload.js +17 -0
- package/dist/cjs/components/validation-alerts/ValidatePayload.js.map +1 -0
- package/dist/cjs/components/validation-alerts/ValidatePlugins.js +18 -0
- package/dist/cjs/components/validation-alerts/ValidatePlugins.js.map +1 -0
- package/dist/cjs/components/validation-alerts/index.js +6 -0
- package/dist/cjs/components/validation-alerts/index.js.map +1 -0
- package/dist/cjs/contexts/EmbedPluginContext/Context.js +6 -0
- package/dist/cjs/contexts/EmbedPluginContext/Context.js.map +1 -0
- package/dist/cjs/contexts/EmbedPluginContext/Provider.js +24 -0
- package/dist/cjs/contexts/EmbedPluginContext/Provider.js.map +1 -0
- package/dist/cjs/contexts/EmbedPluginContext/State.js +3 -0
- package/dist/cjs/contexts/EmbedPluginContext/State.js.map +1 -0
- package/dist/cjs/contexts/EmbedPluginContext/index.js +8 -0
- package/dist/cjs/contexts/EmbedPluginContext/index.js.map +1 -0
- package/dist/cjs/contexts/EmbedPluginContext/use.js +8 -0
- package/dist/cjs/contexts/EmbedPluginContext/use.js.map +1 -0
- package/dist/cjs/contexts/RefreshPayloadContext/Context.js +6 -0
- package/dist/cjs/contexts/RefreshPayloadContext/Context.js.map +1 -0
- package/dist/cjs/contexts/RefreshPayloadContext/Provider.js +12 -0
- package/dist/cjs/contexts/RefreshPayloadContext/Provider.js.map +1 -0
- package/dist/cjs/contexts/RefreshPayloadContext/State.js +3 -0
- package/dist/cjs/contexts/RefreshPayloadContext/State.js.map +1 -0
- package/dist/cjs/contexts/RefreshPayloadContext/index.js +7 -0
- package/dist/cjs/contexts/RefreshPayloadContext/index.js.map +1 -0
- package/dist/cjs/contexts/RefreshPayloadContext/use.js +8 -0
- package/dist/cjs/contexts/RefreshPayloadContext/use.js.map +1 -0
- package/dist/cjs/contexts/ResolvePayloadContext/Context.js +6 -0
- package/dist/cjs/contexts/ResolvePayloadContext/Context.js.map +1 -0
- package/dist/cjs/contexts/ResolvePayloadContext/Provider.js +56 -0
- package/dist/cjs/contexts/ResolvePayloadContext/Provider.js.map +1 -0
- package/dist/cjs/contexts/ResolvePayloadContext/State.js +3 -0
- package/dist/cjs/contexts/ResolvePayloadContext/State.js.map +1 -0
- package/dist/cjs/contexts/ResolvePayloadContext/index.js +8 -0
- package/dist/cjs/contexts/ResolvePayloadContext/index.js.map +1 -0
- package/dist/cjs/contexts/ResolvePayloadContext/use.js +8 -0
- package/dist/cjs/contexts/ResolvePayloadContext/use.js.map +1 -0
- package/dist/cjs/contexts/ValidatePayloadContext/Context.js +6 -0
- package/dist/cjs/contexts/ValidatePayloadContext/Context.js.map +1 -0
- package/dist/cjs/contexts/ValidatePayloadContext/Provider.js +32 -0
- package/dist/cjs/contexts/ValidatePayloadContext/Provider.js.map +1 -0
- package/dist/cjs/contexts/ValidatePayloadContext/State.js +3 -0
- package/dist/cjs/contexts/ValidatePayloadContext/State.js.map +1 -0
- package/dist/cjs/contexts/ValidatePayloadContext/index.js +7 -0
- package/dist/cjs/contexts/ValidatePayloadContext/index.js.map +1 -0
- package/dist/cjs/contexts/ValidatePayloadContext/use.js +8 -0
- package/dist/cjs/contexts/ValidatePayloadContext/use.js.map +1 -0
- package/dist/cjs/contexts/index.js +8 -0
- package/dist/cjs/contexts/index.js.map +1 -0
- package/dist/cjs/index.js +7 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/types/EmbedPluginProps.js +3 -0
- package/dist/cjs/types/EmbedPluginProps.js.map +1 -0
- package/dist/cjs/types/index.js +5 -0
- package/dist/cjs/types/index.js.map +1 -0
- package/dist/docs.json +113 -113
- package/dist/esm/components/EmbedPlugin.js +15 -0
- package/dist/esm/components/EmbedPlugin.js.map +1 -0
- package/dist/esm/components/EmbedResolver.js +8 -0
- package/dist/esm/components/EmbedResolver.js.map +1 -0
- package/dist/esm/components/controls/EmbedFormControl.js +6 -0
- package/dist/esm/components/controls/EmbedFormControl.js.map +1 -0
- package/dist/esm/components/controls/ListModeSelect.js +16 -0
- package/dist/esm/components/controls/ListModeSelect.js.map +1 -0
- package/dist/esm/components/controls/RenderSelect.js +11 -0
- package/dist/esm/components/controls/RenderSelect.js.map +1 -0
- package/dist/{components/controls/index.d.mts → esm/components/controls/index.js} +1 -1
- package/dist/esm/components/controls/index.js.map +1 -0
- package/dist/esm/components/embed-card/EmbedCardResolver.js +13 -0
- package/dist/esm/components/embed-card/EmbedCardResolver.js.map +1 -0
- package/dist/esm/components/embed-card/EmbedPluginCard.js +28 -0
- package/dist/esm/components/embed-card/EmbedPluginCard.js.map +1 -0
- package/dist/esm/components/embed-card/card/BusyCard.js +9 -0
- package/dist/esm/components/embed-card/card/BusyCard.js.map +1 -0
- package/dist/esm/components/embed-card/card/EmbedCardHeader.js +15 -0
- package/dist/esm/components/embed-card/card/EmbedCardHeader.js.map +1 -0
- package/dist/esm/components/embed-card/card/EmbedPluginCard.js +16 -0
- package/dist/esm/components/embed-card/card/EmbedPluginCard.js.map +1 -0
- package/dist/{components/embed-card/card/index.d.mts → esm/components/embed-card/card/index.js} +1 -1
- package/dist/esm/components/embed-card/card/index.js.map +1 -0
- package/dist/esm/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +10 -0
- package/dist/esm/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +1 -0
- package/dist/esm/components/embed-card/error-handling/EmbedErrorCard.js +11 -0
- package/dist/esm/components/embed-card/error-handling/EmbedErrorCard.js.map +1 -0
- package/dist/{components/embed-card/error-handling/index.d.mts → esm/components/embed-card/error-handling/index.js} +1 -1
- package/dist/esm/components/embed-card/error-handling/index.js.map +1 -0
- package/dist/{components/embed-card/index.d.mts → esm/components/embed-card/index.js} +1 -1
- package/dist/esm/components/embed-card/index.js.map +1 -0
- package/dist/esm/components/embed-card/menu/EmbedMenu.js +18 -0
- package/dist/esm/components/embed-card/menu/EmbedMenu.js.map +1 -0
- package/dist/esm/components/embed-card/menu/JsonMenuItem.js +9 -0
- package/dist/esm/components/embed-card/menu/JsonMenuItem.js.map +1 -0
- package/dist/esm/components/embed-card/menu/index.js +2 -0
- package/dist/esm/components/embed-card/menu/index.js.map +1 -0
- package/dist/esm/components/embed-plugin-stories/storyPayload.js +22 -0
- package/dist/esm/components/embed-plugin-stories/storyPayload.js.map +1 -0
- package/dist/esm/components/embed-plugin-stories/storyShared.js +16 -0
- package/dist/esm/components/embed-plugin-stories/storyShared.js.map +1 -0
- package/dist/{components/index.d.mts → esm/components/index.js} +1 -1
- package/dist/esm/components/index.js.map +1 -0
- package/dist/esm/components/validation-alerts/ValidatePayload.js +11 -0
- package/dist/esm/components/validation-alerts/ValidatePayload.js.map +1 -0
- package/dist/esm/components/validation-alerts/ValidatePlugins.js +12 -0
- package/dist/esm/components/validation-alerts/ValidatePlugins.js.map +1 -0
- package/dist/{components/validation-alerts/index.d.mts → esm/components/validation-alerts/index.js} +1 -1
- package/dist/esm/components/validation-alerts/index.js.map +1 -0
- package/dist/esm/contexts/EmbedPluginContext/Context.js +3 -0
- package/dist/esm/contexts/EmbedPluginContext/Context.js.map +1 -0
- package/dist/esm/contexts/EmbedPluginContext/Provider.js +20 -0
- package/dist/esm/contexts/EmbedPluginContext/Provider.js.map +1 -0
- package/dist/esm/contexts/EmbedPluginContext/State.js +2 -0
- package/dist/esm/contexts/EmbedPluginContext/State.js.map +1 -0
- package/dist/{contexts/EmbedPluginContext/index.d.mts → esm/contexts/EmbedPluginContext/index.js} +1 -1
- package/dist/esm/contexts/EmbedPluginContext/index.js.map +1 -0
- package/dist/esm/contexts/EmbedPluginContext/use.js +4 -0
- package/dist/esm/contexts/EmbedPluginContext/use.js.map +1 -0
- package/dist/esm/contexts/RefreshPayloadContext/Context.js +3 -0
- package/dist/esm/contexts/RefreshPayloadContext/Context.js.map +1 -0
- package/dist/esm/contexts/RefreshPayloadContext/Provider.js +8 -0
- package/dist/esm/contexts/RefreshPayloadContext/Provider.js.map +1 -0
- package/dist/esm/contexts/RefreshPayloadContext/State.js +2 -0
- package/dist/esm/contexts/RefreshPayloadContext/State.js.map +1 -0
- package/dist/{contexts/ValidatePayloadContext/index.d.mts → esm/contexts/RefreshPayloadContext/index.js} +1 -1
- package/dist/esm/contexts/RefreshPayloadContext/index.js.map +1 -0
- package/dist/esm/contexts/RefreshPayloadContext/use.js +4 -0
- package/dist/esm/contexts/RefreshPayloadContext/use.js.map +1 -0
- package/dist/esm/contexts/ResolvePayloadContext/Context.js +3 -0
- package/dist/esm/contexts/ResolvePayloadContext/Context.js.map +1 -0
- package/dist/esm/contexts/ResolvePayloadContext/Provider.js +51 -0
- package/dist/esm/contexts/ResolvePayloadContext/Provider.js.map +1 -0
- package/dist/esm/contexts/ResolvePayloadContext/State.js +2 -0
- package/dist/esm/contexts/ResolvePayloadContext/State.js.map +1 -0
- package/dist/{contexts/ResolvePayloadContext/index.d.mts → esm/contexts/ResolvePayloadContext/index.js} +1 -1
- package/dist/esm/contexts/ResolvePayloadContext/index.js.map +1 -0
- package/dist/esm/contexts/ResolvePayloadContext/use.js +4 -0
- package/dist/esm/contexts/ResolvePayloadContext/use.js.map +1 -0
- package/dist/esm/contexts/ValidatePayloadContext/Context.js +3 -0
- package/dist/esm/contexts/ValidatePayloadContext/Context.js.map +1 -0
- package/dist/esm/contexts/ValidatePayloadContext/Provider.js +27 -0
- package/dist/esm/contexts/ValidatePayloadContext/Provider.js.map +1 -0
- package/dist/esm/contexts/ValidatePayloadContext/State.js +2 -0
- package/dist/esm/contexts/ValidatePayloadContext/State.js.map +1 -0
- package/dist/{contexts/RefreshPayloadContext/index.d.mts → esm/contexts/ValidatePayloadContext/index.js} +1 -1
- package/dist/esm/contexts/ValidatePayloadContext/index.js.map +1 -0
- package/dist/esm/contexts/ValidatePayloadContext/use.js +4 -0
- package/dist/esm/contexts/ValidatePayloadContext/use.js.map +1 -0
- package/dist/{contexts/index.d.mts → esm/contexts/index.js} +1 -1
- package/dist/esm/contexts/index.js.map +1 -0
- package/dist/{index.d.mts → esm/index.js} +1 -1
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/types/EmbedPluginProps.js +2 -0
- package/dist/esm/types/EmbedPluginProps.js.map +1 -0
- package/dist/esm/types/index.js +2 -0
- package/dist/esm/types/index.js.map +1 -0
- package/dist/types/components/EmbedPlugin.d.ts.map +1 -0
- package/dist/types/components/EmbedResolver.d.ts.map +1 -0
- package/dist/types/components/controls/EmbedFormControl.d.ts.map +1 -0
- package/dist/types/components/controls/ListModeSelect.d.ts.map +1 -0
- package/dist/types/components/controls/RenderSelect.d.ts.map +1 -0
- package/dist/types/components/controls/index.d.ts.map +1 -0
- package/dist/types/components/embed-card/EmbedCardResolver.d.ts.map +1 -0
- package/dist/types/components/embed-card/EmbedPluginCard.d.ts.map +1 -0
- package/dist/types/components/embed-card/card/BusyCard.d.ts.map +1 -0
- package/dist/types/components/embed-card/card/EmbedCardHeader.d.ts.map +1 -0
- package/dist/types/components/embed-card/card/EmbedPluginCard.d.ts.map +1 -0
- package/dist/types/components/embed-card/card/index.d.ts.map +1 -0
- package/dist/types/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts.map +1 -0
- package/dist/types/components/embed-card/error-handling/EmbedErrorCard.d.ts.map +1 -0
- package/dist/types/components/embed-card/error-handling/index.d.ts.map +1 -0
- package/dist/types/components/embed-card/index.d.ts.map +1 -0
- package/dist/types/components/embed-card/menu/EmbedMenu.d.ts.map +1 -0
- package/dist/types/components/embed-card/menu/JsonMenuItem.d.ts.map +1 -0
- package/dist/types/components/embed-card/menu/index.d.ts.map +1 -0
- package/dist/types/components/embed-plugin-stories/storyPayload.d.ts.map +1 -0
- package/dist/types/components/embed-plugin-stories/storyShared.d.ts.map +1 -0
- package/dist/types/components/index.d.ts.map +1 -0
- package/dist/types/components/validation-alerts/ValidatePayload.d.ts.map +1 -0
- package/dist/types/components/validation-alerts/ValidatePlugins.d.ts.map +1 -0
- package/dist/types/components/validation-alerts/index.d.ts.map +1 -0
- package/dist/types/contexts/EmbedPluginContext/Context.d.ts.map +1 -0
- package/dist/types/contexts/EmbedPluginContext/Provider.d.ts.map +1 -0
- package/dist/types/contexts/EmbedPluginContext/State.d.ts.map +1 -0
- package/dist/{contexts/ResolvePayloadContext → types/contexts/EmbedPluginContext}/index.d.ts.map +1 -1
- package/dist/types/contexts/EmbedPluginContext/use.d.ts.map +1 -0
- package/dist/types/contexts/RefreshPayloadContext/Context.d.ts.map +1 -0
- package/dist/types/contexts/RefreshPayloadContext/Provider.d.ts.map +1 -0
- package/dist/types/contexts/RefreshPayloadContext/State.d.ts.map +1 -0
- package/dist/types/contexts/RefreshPayloadContext/index.d.ts.map +1 -0
- package/dist/types/contexts/RefreshPayloadContext/use.d.ts.map +1 -0
- package/dist/types/contexts/ResolvePayloadContext/Context.d.ts.map +1 -0
- package/dist/types/contexts/ResolvePayloadContext/Provider.d.ts.map +1 -0
- package/dist/types/contexts/ResolvePayloadContext/State.d.ts.map +1 -0
- package/dist/types/contexts/ResolvePayloadContext/index.d.ts.map +1 -0
- package/dist/types/contexts/ResolvePayloadContext/use.d.ts.map +1 -0
- package/dist/types/contexts/ValidatePayloadContext/Context.d.ts.map +1 -0
- package/dist/types/contexts/ValidatePayloadContext/Provider.d.ts.map +1 -0
- package/dist/types/contexts/ValidatePayloadContext/State.d.ts.map +1 -0
- package/dist/types/contexts/ValidatePayloadContext/index.d.ts.map +1 -0
- package/dist/types/contexts/ValidatePayloadContext/use.d.ts.map +1 -0
- package/dist/types/contexts/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types/EmbedPluginProps.d.ts.map +1 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/package.json +26 -34
- package/dist/components/EmbedPlugin.d.mts +0 -5
- package/dist/components/EmbedPlugin.d.mts.map +0 -1
- package/dist/components/EmbedPlugin.d.ts.map +0 -1
- package/dist/components/EmbedResolver.d.mts +0 -4
- 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 +0 -10
- 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 +0 -6
- 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 +0 -4
- 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 +0 -5
- 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 +0 -11
- 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 +0 -11
- 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 +0 -4
- 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 +0 -4
- 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 +0 -10
- 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 +0 -15
- 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 +0 -4
- 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 +0 -4
- 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 +0 -2
- 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 +0 -126
- 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 +0 -5
- 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 +0 -5
- 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 +0 -5
- 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 +0 -4
- 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 +0 -7
- 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 +0 -33
- 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 +0 -2
- 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 +0 -4
- 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 +0 -8
- 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 +0 -8
- 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 +0 -2
- 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 +0 -4
- 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 +0 -6
- 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 +0 -13
- package/dist/contexts/ResolvePayloadContext/State.d.mts.map +0 -1
- package/dist/contexts/ResolvePayloadContext/State.d.ts.map +0 -1
- package/dist/contexts/ResolvePayloadContext/index.d.mts.map +0 -1
- package/dist/contexts/ResolvePayloadContext/use.d.mts +0 -2
- 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 +0 -4
- 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 +0 -7
- 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 +0 -7
- 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 +0 -2
- 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 +0 -4
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -543
- 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 +0 -10
- 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/{components → types/components}/EmbedPlugin.d.ts +0 -0
- /package/dist/{components → types/components}/EmbedResolver.d.ts +0 -0
- /package/dist/{components → types/components}/controls/EmbedFormControl.d.ts +0 -0
- /package/dist/{components → types/components}/controls/ListModeSelect.d.ts +0 -0
- /package/dist/{components → types/components}/controls/RenderSelect.d.ts +0 -0
- /package/dist/{components → types/components}/controls/index.d.ts +0 -0
- /package/dist/{components → types/components}/embed-card/EmbedCardResolver.d.ts +0 -0
- /package/dist/{components → types/components}/embed-card/EmbedPluginCard.d.ts +0 -0
- /package/dist/{components → types/components}/embed-card/card/BusyCard.d.ts +0 -0
- /package/dist/{components → types/components}/embed-card/card/EmbedCardHeader.d.ts +0 -0
- /package/dist/{components → types/components}/embed-card/card/EmbedPluginCard.d.ts +0 -0
- /package/dist/{components → types/components}/embed-card/card/index.d.ts +0 -0
- /package/dist/{components → types/components}/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts +0 -0
- /package/dist/{components → types/components}/embed-card/error-handling/EmbedErrorCard.d.ts +0 -0
- /package/dist/{components → types/components}/embed-card/error-handling/index.d.ts +0 -0
- /package/dist/{components → types/components}/embed-card/index.d.ts +0 -0
- /package/dist/{components → types/components}/embed-card/menu/EmbedMenu.d.ts +0 -0
- /package/dist/{components → types/components}/embed-card/menu/JsonMenuItem.d.ts +0 -0
- /package/dist/{components → types/components}/embed-card/menu/index.d.ts +0 -0
- /package/dist/{components → types/components}/embed-plugin-stories/storyPayload.d.ts +0 -0
- /package/dist/{components → types/components}/embed-plugin-stories/storyShared.d.ts +0 -0
- /package/dist/{components → types/components}/index.d.ts +0 -0
- /package/dist/{components → types/components}/validation-alerts/ValidatePayload.d.ts +0 -0
- /package/dist/{components → types/components}/validation-alerts/ValidatePlugins.d.ts +0 -0
- /package/dist/{components → types/components}/validation-alerts/index.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/EmbedPluginContext/Context.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/EmbedPluginContext/Provider.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/EmbedPluginContext/State.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/EmbedPluginContext/index.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/EmbedPluginContext/use.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/RefreshPayloadContext/Context.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/RefreshPayloadContext/Provider.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/RefreshPayloadContext/State.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/RefreshPayloadContext/index.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/RefreshPayloadContext/use.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/ResolvePayloadContext/Context.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/ResolvePayloadContext/Provider.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/ResolvePayloadContext/State.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/ResolvePayloadContext/index.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/ResolvePayloadContext/use.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/ValidatePayloadContext/Context.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/ValidatePayloadContext/Provider.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/ValidatePayloadContext/State.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/ValidatePayloadContext/index.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/ValidatePayloadContext/use.d.ts +0 -0
- /package/dist/{contexts → types/contexts}/index.d.ts +0 -0
- /package/dist/types/{EmbedPluginProps.d.ts → types/EmbedPluginProps.d.ts} +0 -0
- /package/dist/types/{index.d.mts → types/index.d.ts} +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/Provider.tsx"],"names":[],"mappings":";;;;AAEA,iCAA2C;AAE3C,uCAA8C;AAK9C,mDAAmD;AAC5C,MAAM,mBAAmB,GAAqD,CAAC,EACpF,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,iBAAiB,GAClB,EAAE,EAAE;IACH,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAkC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAEnH,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACnD,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEb,OAAO,CACL,uBAAC,4BAAkB,CAAC,QAAQ,kBAC1B,KAAK,EAAE;YACL,YAAY;YACZ,iBAAiB;YACjB,kBAAkB;YAClB,QAAQ,EAAE,IAAI;YACd,YAAY;YACZ,eAAe;YACf,cAAc;SACf,gBAEA,QAAQ,IACmB,CAC/B,CAAA;AACH,CAAC,CAAA;AA7BY,QAAA,mBAAmB,uBA6B/B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"State.js","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/State.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./Context"), exports);
|
5
|
+
tslib_1.__exportStar(require("./Provider"), exports);
|
6
|
+
tslib_1.__exportStar(require("./State"), exports);
|
7
|
+
tslib_1.__exportStar(require("./use"), exports);
|
8
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB;AACzB,qDAA0B;AAC1B,kDAAuB;AACvB,gDAAqB"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.useEmbedPluginState = void 0;
|
4
|
+
const react_shared_1 = require("@xyo-network/react-shared");
|
5
|
+
const Context_1 = require("./Context");
|
6
|
+
const useEmbedPluginState = () => (0, react_shared_1.useContextEx)(Context_1.EmbedPluginContext, 'EmbedPlugin', true);
|
7
|
+
exports.useEmbedPluginState = useEmbedPluginState;
|
8
|
+
//# sourceMappingURL=use.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"use.js","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/use.tsx"],"names":[],"mappings":";;;AAAA,4DAAwD;AAExD,uCAA8C;AAEvC,MAAM,mBAAmB,GAAG,GAAG,EAAE,CAAC,IAAA,2BAAY,EAAC,4BAAkB,EAAE,aAAa,EAAE,IAAI,CAAC,CAAA;AAAjF,QAAA,mBAAmB,uBAA8D"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RefreshPayloadContext = void 0;
|
4
|
+
const react_shared_1 = require("@xyo-network/react-shared");
|
5
|
+
exports.RefreshPayloadContext = (0, react_shared_1.createContextEx)();
|
6
|
+
//# sourceMappingURL=Context.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/Context.tsx"],"names":[],"mappings":";;;AAAA,4DAA2D;AAI9C,QAAA,qBAAqB,GAAG,IAAA,8BAAe,GAAuB,CAAA"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RefreshPayloadProvider = void 0;
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
5
|
+
const react_1 = require("react");
|
6
|
+
const Context_1 = require("./Context");
|
7
|
+
const RefreshPayloadProvider = ({ children, onRefresh, refreshPayload }) => {
|
8
|
+
const [localRefreshPayload, setRefreshPayload] = (0, react_1.useState)(refreshPayload);
|
9
|
+
return ((0, jsx_runtime_1.jsx)(Context_1.RefreshPayloadContext.Provider, Object.assign({ value: { onRefresh, provided: true, refreshPayload: localRefreshPayload, setRefreshPayload } }, { children: children })));
|
10
|
+
};
|
11
|
+
exports.RefreshPayloadProvider = RefreshPayloadProvider;
|
12
|
+
//# sourceMappingURL=Provider.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/Provider.tsx"],"names":[],"mappings":";;;;AACA,iCAAgC;AAEhC,uCAAiD;AAO1C,MAAM,sBAAsB,GAAgD,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,EAAE;IAC7H,MAAM,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAAC,cAAc,CAAC,CAAA;IAEzE,OAAO,CACL,uBAAC,+BAAqB,CAAC,QAAQ,kBAAC,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,gBACzH,QAAQ,IACsB,CAClC,CAAA;AACH,CAAC,CAAA;AARY,QAAA,sBAAsB,0BAQlC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"State.js","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/State.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./Provider"), exports);
|
5
|
+
tslib_1.__exportStar(require("./State"), exports);
|
6
|
+
tslib_1.__exportStar(require("./use"), exports);
|
7
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B;AAC1B,kDAAuB;AACvB,gDAAqB"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.useRefreshPayload = void 0;
|
4
|
+
const react_shared_1 = require("@xyo-network/react-shared");
|
5
|
+
const Context_1 = require("./Context");
|
6
|
+
const useRefreshPayload = () => (0, react_shared_1.useContextEx)(Context_1.RefreshPayloadContext, 'RefreshPayload', true);
|
7
|
+
exports.useRefreshPayload = useRefreshPayload;
|
8
|
+
//# sourceMappingURL=use.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"use.js","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/use.tsx"],"names":[],"mappings":";;;AAAA,4DAAwD;AAExD,uCAAiD;AAE1C,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,IAAA,2BAAY,EAAC,+BAAqB,EAAE,gBAAgB,EAAE,IAAI,CAAC,CAAA;AAArF,QAAA,iBAAiB,qBAAoE"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ResolvePayloadContext = void 0;
|
4
|
+
const react_shared_1 = require("@xyo-network/react-shared");
|
5
|
+
exports.ResolvePayloadContext = (0, react_shared_1.createContextEx)();
|
6
|
+
//# sourceMappingURL=Context.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/Context.ts"],"names":[],"mappings":";;;AAAA,4DAA2D;AAI9C,QAAA,qBAAqB,GAAG,IAAA,8BAAe,GAAuB,CAAA"}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ResolvePayloadProvider = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
+
const delay_1 = require("@xylabs/delay");
|
7
|
+
const react_async_effect_1 = require("@xylabs/react-async-effect");
|
8
|
+
const huri_1 = require("@xyo-network/huri");
|
9
|
+
const payload_model_1 = require("@xyo-network/payload-model");
|
10
|
+
const react_1 = require("react");
|
11
|
+
const RefreshPayloadContext_1 = require("../RefreshPayloadContext");
|
12
|
+
const Context_1 = require("./Context");
|
13
|
+
const ResolvePayloadProvider = ({ children, huriPayload }) => {
|
14
|
+
const [payload, setPayload] = (0, react_1.useState)();
|
15
|
+
const [huri, setHuri] = (0, react_1.useState)();
|
16
|
+
const { refreshPayload, setRefreshPayload, onRefresh } = (0, RefreshPayloadContext_1.useRefreshPayload)();
|
17
|
+
(0, react_1.useEffect)(() => {
|
18
|
+
typeof huriPayload === 'string' ? setHuri(huriPayload) : undefined;
|
19
|
+
if (typeof huriPayload === 'object') {
|
20
|
+
setPayload(huriPayload);
|
21
|
+
setRefreshPayload === null || setRefreshPayload === void 0 ? void 0 : setRefreshPayload(true);
|
22
|
+
}
|
23
|
+
}, [huriPayload, setRefreshPayload]);
|
24
|
+
const [notFound, setNotFound] = (0, react_1.useState)();
|
25
|
+
const [huriError, setHuriError] = (0, react_1.useState)();
|
26
|
+
(0, react_async_effect_1.useAsyncEffect)(
|
27
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
28
|
+
(mounted) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
29
|
+
if (huri && !refreshPayload) {
|
30
|
+
try {
|
31
|
+
const huriInstance = new huri_1.Huri(huri);
|
32
|
+
const result = yield huriInstance.fetch();
|
33
|
+
// ensure the busy state can stay for a moment to avoid flashing too quickly
|
34
|
+
yield (0, delay_1.delay)(500);
|
35
|
+
if (mounted()) {
|
36
|
+
setNotFound(result === null);
|
37
|
+
setPayload(result);
|
38
|
+
setRefreshPayload === null || setRefreshPayload === void 0 ? void 0 : setRefreshPayload(true);
|
39
|
+
}
|
40
|
+
}
|
41
|
+
catch (e) {
|
42
|
+
const error = e;
|
43
|
+
setHuriError({ message: error.message, schema: payload_model_1.ModuleErrorSchema, sources: [] });
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}), [huri, payload, refreshPayload, setRefreshPayload]);
|
47
|
+
const refreshHuri = () => {
|
48
|
+
onRefresh === null || onRefresh === void 0 ? void 0 : onRefresh();
|
49
|
+
if (huri) {
|
50
|
+
setRefreshPayload === null || setRefreshPayload === void 0 ? void 0 : setRefreshPayload(false);
|
51
|
+
}
|
52
|
+
};
|
53
|
+
return ((0, jsx_runtime_1.jsx)(Context_1.ResolvePayloadContext.Provider, Object.assign({ value: { huri, huriError, notFound, payload, provided: true, refreshHuri, setPayload } }, { children: children })));
|
54
|
+
};
|
55
|
+
exports.ResolvePayloadProvider = ResolvePayloadProvider;
|
56
|
+
//# sourceMappingURL=Provider.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/Provider.tsx"],"names":[],"mappings":";;;;;AAAA,yCAAqC;AACrC,mEAA2D;AAE3D,4CAAwC;AACxC,8DAAoF;AACpF,iCAA2C;AAE3C,oEAA4D;AAC5D,uCAAiD;AAK1C,MAAM,sBAAsB,GAAwD,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,EAAE;IACvH,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,GAAW,CAAA;IACjD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,GAAU,CAAA;IAC1C,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,GAAG,IAAA,yCAAiB,GAAE,CAAA;IAE5E,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,OAAO,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;QAClE,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;YACnC,UAAU,CAAC,WAAW,CAAC,CAAA;YACvB,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAG,IAAI,CAAC,CAAA;SAC1B;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC,CAAA;IAEpC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,GAAW,CAAA;IACnD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,GAAe,CAAA;IAEzD,IAAA,mCAAc;IACZ,uDAAuD;IACvD,CAAO,OAAO,EAAE,EAAE;QAChB,IAAI,IAAI,IAAI,CAAC,cAAc,EAAE;YAC3B,IAAI;gBACF,MAAM,YAAY,GAAG,IAAI,WAAI,CAAC,IAAI,CAAC,CAAA;gBACnC,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,KAAK,EAAE,CAAA;gBACzC,4EAA4E;gBAC5E,MAAM,IAAA,aAAK,EAAC,GAAG,CAAC,CAAA;gBAEhB,IAAI,OAAO,EAAE,EAAE;oBACb,WAAW,CAAC,MAAM,KAAK,IAAI,CAAC,CAAA;oBAC5B,UAAU,CAAC,MAAM,CAAC,CAAA;oBAClB,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAG,IAAI,CAAC,CAAA;iBAC1B;aACF;YAAC,OAAO,CAAC,EAAE;gBACV,MAAM,KAAK,GAAG,CAAU,CAAA;gBACxB,YAAY,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,iCAAiB,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAA;aACjF;SACF;IACH,CAAC,CAAA,EACD,CAAC,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,iBAAiB,CAAC,CACnD,CAAA;IAED,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,SAAS,aAAT,SAAS,uBAAT,SAAS,EAAI,CAAA;QACb,IAAI,IAAI,EAAE;YACR,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAG,KAAK,CAAC,CAAA;SAC3B;IACH,CAAC,CAAA;IAED,OAAO,CACL,uBAAC,+BAAqB,CAAC,QAAQ,kBAAC,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,gBACnH,QAAQ,IACsB,CAClC,CAAA;AACH,CAAC,CAAA;AApDY,QAAA,sBAAsB,0BAoDlC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"State.js","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/State.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./Context"), exports);
|
5
|
+
tslib_1.__exportStar(require("./Provider"), exports);
|
6
|
+
tslib_1.__exportStar(require("./State"), exports);
|
7
|
+
tslib_1.__exportStar(require("./use"), exports);
|
8
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB;AACzB,qDAA0B;AAC1B,kDAAuB;AACvB,gDAAqB"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.useResolvePayload = void 0;
|
4
|
+
const react_shared_1 = require("@xyo-network/react-shared");
|
5
|
+
const Context_1 = require("./Context");
|
6
|
+
const useResolvePayload = () => (0, react_shared_1.useContextEx)(Context_1.ResolvePayloadContext, 'ResolvePayload', true);
|
7
|
+
exports.useResolvePayload = useResolvePayload;
|
8
|
+
//# sourceMappingURL=use.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"use.js","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/use.tsx"],"names":[],"mappings":";;;AAAA,4DAAwD;AAExD,uCAAiD;AAE1C,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,IAAA,2BAAY,EAAC,+BAAqB,EAAE,gBAAgB,EAAE,IAAI,CAAC,CAAA;AAArF,QAAA,iBAAiB,qBAAoE"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ValidatePayloadContext = void 0;
|
4
|
+
const react_shared_1 = require("@xyo-network/react-shared");
|
5
|
+
exports.ValidatePayloadContext = (0, react_shared_1.createContextEx)();
|
6
|
+
//# sourceMappingURL=Context.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/Context.ts"],"names":[],"mappings":";;;AAAA,4DAA2D;AAI9C,QAAA,sBAAsB,GAAG,IAAA,8BAAe,GAAwB,CAAA"}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ValidatePayloadProvider = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
+
const material_1 = require("@mui/material");
|
7
|
+
const react_async_effect_1 = require("@xylabs/react-async-effect");
|
8
|
+
const schema_cache_1 = require("@xyo-network/schema-cache");
|
9
|
+
const react_1 = require("react");
|
10
|
+
const ResolvePayloadContext_1 = require("../ResolvePayloadContext");
|
11
|
+
const Context_1 = require("./Context");
|
12
|
+
const ValidatePayloadProvider = ({ children, enabled = false }) => {
|
13
|
+
const { payload } = (0, ResolvePayloadContext_1.useResolvePayload)();
|
14
|
+
const [initialized, setInitialized] = (0, react_1.useState)(false);
|
15
|
+
const [valid, setValid] = (0, react_1.useState)();
|
16
|
+
(0, react_async_effect_1.useAsyncEffect)(
|
17
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
18
|
+
() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
19
|
+
if (payload && enabled) {
|
20
|
+
yield schema_cache_1.SchemaCache.instance.get(payload.schema);
|
21
|
+
const possibleKnownSchema = payload.schema;
|
22
|
+
if (schema_cache_1.SchemaCache.instance.validators[possibleKnownSchema]) {
|
23
|
+
const validator = schema_cache_1.SchemaCache.instance.validators[possibleKnownSchema];
|
24
|
+
setValid(validator === null || validator === void 0 ? void 0 : validator(payload));
|
25
|
+
}
|
26
|
+
setInitialized(true);
|
27
|
+
}
|
28
|
+
}), [payload, enabled]);
|
29
|
+
return ((0, jsx_runtime_1.jsx)(Context_1.ValidatePayloadContext.Provider, Object.assign({ value: { enabled, provided: true, schema: payload === null || payload === void 0 ? void 0 : payload.schema, validPayload: valid } }, { children: enabled ? (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: initialized ? children : (0, jsx_runtime_1.jsx)(material_1.Chip, { label: "Validating Payload..." }) }) : children })));
|
30
|
+
};
|
31
|
+
exports.ValidatePayloadProvider = ValidatePayloadProvider;
|
32
|
+
//# sourceMappingURL=Provider.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/Provider.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAoC;AACpC,mEAA2D;AAE3D,4DAAiF;AACjF,iCAAgC;AAEhC,oEAA4D;AAC5D,uCAAkD;AAO3C,MAAM,uBAAuB,GAAyD,CAAC,EAAE,QAAQ,EAAE,OAAO,GAAG,KAAK,EAAE,EAAE,EAAE;IAC7H,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,yCAAiB,GAAE,CAAA;IACvC,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IACrD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,GAAW,CAAA;IAE7C,IAAA,mCAAc;IACZ,uDAAuD;IACvD,GAAS,EAAE;QACT,IAAI,OAAO,IAAI,OAAO,EAAE;YACtB,MAAM,0BAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;YAE9C,MAAM,mBAAmB,GAAG,OAAO,CAAC,MAAwC,CAAA;YAE5E,IAAI,0BAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC,EAAE;gBACxD,MAAM,SAAS,GAAG,0BAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAA;gBACtE,QAAQ,CAAC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAG,OAAO,CAAC,CAAC,CAAA;aAC/B;YACD,cAAc,CAAC,IAAI,CAAC,CAAA;SACrB;IACH,CAAC,CAAA,EACD,CAAC,OAAO,EAAE,OAAO,CAAC,CACnB,CAAA;IAED,OAAO,CACL,uBAAC,gCAAsB,CAAC,QAAQ,kBAAC,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,gBAC9G,OAAO,CAAC,CAAC,CAAC,2DAAG,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,uBAAC,eAAI,IAAC,KAAK,EAAC,uBAAuB,GAAG,GAAI,CAAC,CAAC,CAAC,QAAQ,IAC5D,CACnC,CAAA;AACH,CAAC,CAAA;AA5BY,QAAA,uBAAuB,2BA4BnC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"State.js","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/State.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./Provider"), exports);
|
5
|
+
tslib_1.__exportStar(require("./State"), exports);
|
6
|
+
tslib_1.__exportStar(require("./use"), exports);
|
7
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B;AAC1B,kDAAuB;AACvB,gDAAqB"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.useValidatePayload = void 0;
|
4
|
+
const react_shared_1 = require("@xyo-network/react-shared");
|
5
|
+
const Context_1 = require("./Context");
|
6
|
+
const useValidatePayload = () => (0, react_shared_1.useContextEx)(Context_1.ValidatePayloadContext, 'ValidateSchema', true);
|
7
|
+
exports.useValidatePayload = useValidatePayload;
|
8
|
+
//# sourceMappingURL=use.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"use.js","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/use.tsx"],"names":[],"mappings":";;;AAAA,4DAAwD;AAExD,uCAAkD;AAE3C,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,IAAA,2BAAY,EAAC,gCAAsB,EAAE,gBAAgB,EAAE,IAAI,CAAC,CAAA;AAAvF,QAAA,kBAAkB,sBAAqE"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./EmbedPluginContext"), exports);
|
5
|
+
tslib_1.__exportStar(require("./RefreshPayloadContext"), exports);
|
6
|
+
tslib_1.__exportStar(require("./ResolvePayloadContext"), exports);
|
7
|
+
tslib_1.__exportStar(require("./ValidatePayloadContext"), exports);
|
8
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":";;;AAAA,+DAAoC;AACpC,kEAAuC;AACvC,kEAAuC;AACvC,mEAAwC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./components"), exports);
|
5
|
+
tslib_1.__exportStar(require("./contexts"), exports);
|
6
|
+
tslib_1.__exportStar(require("./types"), exports);
|
7
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,qDAA0B;AAC1B,kDAAuB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedPluginProps.js","sourceRoot":"","sources":["../../../src/types/EmbedPluginProps.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;AAAA,6DAAkC"}
|