@xyo-network/react-embed 2.64.0-rc.7 → 2.64.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/browser/components/EmbedPlugin.cjs +251 -0
- package/dist/browser/components/EmbedPlugin.cjs.map +1 -0
- package/dist/browser/components/EmbedPlugin.d.cts +5 -0
- package/dist/browser/components/EmbedPlugin.d.cts.map +1 -0
- package/dist/browser/components/EmbedPlugin.js +203 -11
- package/dist/browser/components/EmbedPlugin.js.map +1 -1
- package/dist/browser/components/EmbedResolver.cjs +42 -0
- package/dist/browser/components/EmbedResolver.cjs.map +1 -0
- package/dist/browser/components/EmbedResolver.d.cts +4 -0
- package/dist/browser/components/EmbedResolver.d.cts.map +1 -0
- package/dist/browser/components/EmbedResolver.js +13 -3
- package/dist/browser/components/EmbedResolver.js.map +1 -1
- package/dist/browser/components/controls/EmbedFormControl.cjs +34 -0
- package/dist/{node/components/controls/EmbedFormControl.mjs.map → browser/components/controls/EmbedFormControl.cjs.map} +1 -1
- package/dist/browser/components/controls/EmbedFormControl.d.cts +10 -0
- package/dist/browser/components/controls/EmbedFormControl.d.cts.map +1 -0
- package/dist/browser/components/controls/EmbedFormControl.js +3 -2
- package/dist/browser/components/controls/EmbedFormControl.js.map +1 -1
- package/dist/browser/components/controls/ListModeSelect.cjs +65 -0
- package/dist/browser/components/controls/ListModeSelect.cjs.map +1 -0
- package/dist/browser/components/controls/ListModeSelect.d.cts +6 -0
- package/dist/browser/components/controls/ListModeSelect.d.cts.map +1 -0
- package/dist/browser/components/controls/ListModeSelect.js +23 -11
- package/dist/browser/components/controls/ListModeSelect.js.map +1 -1
- package/dist/browser/components/controls/RenderSelect.cjs +54 -0
- package/dist/browser/components/controls/RenderSelect.cjs.map +1 -0
- package/dist/browser/components/controls/RenderSelect.d.cts +4 -0
- package/dist/browser/components/controls/RenderSelect.d.cts.map +1 -0
- package/dist/browser/components/controls/RenderSelect.js +26 -7
- package/dist/browser/components/controls/RenderSelect.js.map +1 -1
- package/dist/browser/components/controls/index.cjs +87 -0
- package/dist/browser/components/controls/index.cjs.map +1 -0
- package/dist/browser/components/controls/index.d.cts +4 -0
- package/dist/browser/components/controls/index.d.cts.map +1 -0
- package/dist/browser/components/controls/index.js +63 -3
- package/dist/browser/components/controls/index.js.map +1 -1
- package/dist/browser/components/embed-card/EmbedCardResolver.cjs +95 -0
- package/dist/browser/components/embed-card/EmbedCardResolver.cjs.map +1 -0
- package/dist/browser/components/embed-card/EmbedCardResolver.d.cts +5 -0
- package/dist/browser/components/embed-card/EmbedCardResolver.d.cts.map +1 -0
- package/dist/browser/components/embed-card/EmbedCardResolver.js +52 -5
- package/dist/browser/components/embed-card/EmbedCardResolver.js.map +1 -1
- package/dist/browser/components/embed-card/EmbedPluginCard.cjs +497 -0
- package/dist/browser/components/embed-card/EmbedPluginCard.cjs.map +1 -0
- package/dist/browser/components/embed-card/EmbedPluginCard.d.cts +11 -0
- package/dist/browser/components/embed-card/EmbedPluginCard.d.cts.map +1 -0
- package/dist/browser/components/embed-card/EmbedPluginCard.js +429 -11
- package/dist/browser/components/embed-card/EmbedPluginCard.js.map +1 -1
- package/dist/browser/components/embed-card/card/BusyCard.cjs +45 -0
- package/dist/{node/components/embed-card/card/BusyCard.mjs.map → browser/components/embed-card/card/BusyCard.cjs.map} +1 -1
- package/dist/browser/components/embed-card/card/BusyCard.d.cts +11 -0
- package/dist/browser/components/embed-card/card/BusyCard.d.cts.map +1 -0
- package/dist/browser/components/embed-card/card/BusyCard.js +3 -2
- package/dist/browser/components/embed-card/card/BusyCard.js.map +1 -1
- package/dist/browser/components/embed-card/card/EmbedCardHeader.cjs +108 -0
- package/dist/browser/components/embed-card/card/EmbedCardHeader.cjs.map +1 -0
- package/dist/browser/components/embed-card/card/EmbedCardHeader.d.cts +4 -0
- package/dist/browser/components/embed-card/card/EmbedCardHeader.d.cts.map +1 -0
- package/dist/browser/components/embed-card/card/EmbedCardHeader.js +61 -10
- package/dist/browser/components/embed-card/card/EmbedCardHeader.js.map +1 -1
- package/dist/browser/components/embed-card/card/EmbedPluginCard.cjs +199 -0
- package/dist/browser/components/embed-card/card/EmbedPluginCard.cjs.map +1 -0
- package/dist/browser/components/embed-card/card/EmbedPluginCard.d.cts +4 -0
- package/dist/browser/components/embed-card/card/EmbedPluginCard.d.cts.map +1 -0
- package/dist/browser/components/embed-card/card/EmbedPluginCard.js +168 -13
- package/dist/browser/components/embed-card/card/EmbedPluginCard.js.map +1 -1
- package/dist/browser/components/embed-card/card/index.cjs +203 -0
- package/dist/browser/components/embed-card/card/index.cjs.map +1 -0
- package/dist/browser/components/embed-card/card/index.d.cts +4 -0
- package/dist/browser/components/embed-card/card/index.d.cts.map +1 -0
- package/dist/browser/components/embed-card/card/index.js +182 -3
- package/dist/browser/components/embed-card/card/index.js.map +1 -1
- package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.cjs +54 -0
- package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.cjs.map +1 -0
- package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.cts +10 -0
- package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.cts.map +1 -0
- package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +26 -6
- package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +1 -1
- package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.cjs +42 -0
- package/dist/{node/components/embed-card/error-handling/EmbedErrorCard.mjs.map → browser/components/embed-card/error-handling/EmbedErrorCard.cjs.map} +1 -1
- package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.d.cts +15 -0
- package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.d.cts.map +1 -0
- package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.js +4 -3
- package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.js.map +1 -1
- package/dist/browser/components/embed-card/error-handling/index.cjs +57 -0
- package/dist/browser/components/embed-card/error-handling/index.cjs.map +1 -0
- package/dist/browser/components/embed-card/error-handling/index.d.cts +3 -0
- package/dist/browser/components/embed-card/error-handling/index.d.cts.map +1 -0
- package/dist/browser/components/embed-card/error-handling/index.js +33 -2
- package/dist/browser/components/embed-card/error-handling/index.js.map +1 -1
- package/dist/browser/components/embed-card/index.cjs +502 -0
- package/dist/browser/components/embed-card/index.cjs.map +1 -0
- package/dist/browser/components/embed-card/index.d.cts +3 -0
- package/dist/browser/components/embed-card/index.d.cts.map +1 -0
- package/dist/browser/components/embed-card/index.js +481 -2
- package/dist/browser/components/embed-card/index.js.map +1 -1
- package/dist/browser/components/embed-card/menu/EmbedMenu.cjs +68 -0
- package/dist/browser/components/embed-card/menu/EmbedMenu.cjs.map +1 -0
- package/dist/browser/components/embed-card/menu/EmbedMenu.d.cts +4 -0
- package/dist/browser/components/embed-card/menu/EmbedMenu.d.cts.map +1 -0
- package/dist/browser/components/embed-card/menu/EmbedMenu.js +30 -6
- package/dist/browser/components/embed-card/menu/EmbedMenu.js.map +1 -1
- package/dist/browser/components/embed-card/menu/JsonMenuItem.cjs +46 -0
- package/dist/browser/components/embed-card/menu/JsonMenuItem.cjs.map +1 -0
- package/dist/browser/components/embed-card/menu/JsonMenuItem.d.cts +4 -0
- package/dist/browser/components/embed-card/menu/JsonMenuItem.d.cts.map +1 -0
- package/dist/browser/components/embed-card/menu/JsonMenuItem.js +13 -3
- package/dist/browser/components/embed-card/menu/JsonMenuItem.js.map +1 -1
- package/dist/browser/components/embed-card/menu/index.cjs +70 -0
- package/dist/browser/components/embed-card/menu/index.cjs.map +1 -0
- package/dist/browser/components/embed-card/menu/index.d.cts +2 -0
- package/dist/browser/components/embed-card/menu/index.d.cts.map +1 -0
- package/dist/browser/components/embed-card/menu/index.js +46 -1
- package/dist/browser/components/embed-card/menu/index.js.map +1 -1
- package/dist/{node/components/embed-plugin-stories/storyPayload.mjs → browser/components/embed-plugin-stories/storyPayload.cjs} +27 -5
- package/dist/{node/components/embed-plugin-stories/storyPayload.mjs.map → browser/components/embed-plugin-stories/storyPayload.cjs.map} +1 -1
- package/dist/browser/components/embed-plugin-stories/storyPayload.d.cts +126 -0
- package/dist/browser/components/embed-plugin-stories/storyPayload.d.cts.map +1 -0
- package/dist/browser/components/embed-plugin-stories/storyPayload.js +2 -1
- package/dist/browser/components/embed-plugin-stories/storyPayload.js.map +1 -1
- package/dist/browser/components/embed-plugin-stories/storyShared.cjs +513 -0
- package/dist/browser/components/embed-plugin-stories/storyShared.cjs.map +1 -0
- package/dist/browser/components/embed-plugin-stories/storyShared.d.cts +5 -0
- package/dist/browser/components/embed-plugin-stories/storyShared.d.cts.map +1 -0
- package/dist/browser/components/embed-plugin-stories/storyShared.js +480 -5
- package/dist/browser/components/embed-plugin-stories/storyShared.js.map +1 -1
- package/dist/browser/components/index.cjs +503 -0
- package/dist/browser/components/index.cjs.map +1 -0
- package/dist/browser/components/index.d.cts +3 -0
- package/dist/browser/components/index.d.cts.map +1 -0
- package/dist/browser/components/index.js +482 -2
- package/dist/browser/components/index.js.map +1 -1
- package/dist/browser/components/validation-alerts/ValidatePayload.cjs +49 -0
- package/dist/browser/components/validation-alerts/ValidatePayload.cjs.map +1 -0
- package/dist/browser/components/validation-alerts/ValidatePayload.d.cts +5 -0
- package/dist/browser/components/validation-alerts/ValidatePayload.d.cts.map +1 -0
- package/dist/browser/components/validation-alerts/ValidatePayload.js +13 -3
- package/dist/browser/components/validation-alerts/ValidatePayload.js.map +1 -1
- package/dist/browser/components/validation-alerts/ValidatePlugins.cjs +57 -0
- package/dist/browser/components/validation-alerts/ValidatePlugins.cjs.map +1 -0
- package/dist/browser/components/validation-alerts/ValidatePlugins.d.cts +5 -0
- package/dist/browser/components/validation-alerts/ValidatePlugins.d.cts.map +1 -0
- package/dist/browser/components/validation-alerts/ValidatePlugins.js +21 -3
- package/dist/browser/components/validation-alerts/ValidatePlugins.js.map +1 -1
- package/dist/browser/components/validation-alerts/index.cjs +83 -0
- package/dist/browser/components/validation-alerts/index.cjs.map +1 -0
- package/dist/browser/components/validation-alerts/index.d.cts +3 -0
- package/dist/browser/components/validation-alerts/index.d.cts.map +1 -0
- package/dist/browser/components/validation-alerts/index.js +59 -2
- package/dist/browser/components/validation-alerts/index.js.map +1 -1
- package/dist/browser/contexts/EmbedPluginContext/Context.cjs +28 -0
- package/dist/{node/contexts/EmbedPluginContext/Context.mjs.map → browser/contexts/EmbedPluginContext/Context.cjs.map} +1 -1
- package/dist/browser/contexts/EmbedPluginContext/Context.d.cts +4 -0
- package/dist/browser/contexts/EmbedPluginContext/Context.d.cts.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/Context.js +2 -1
- package/dist/browser/contexts/EmbedPluginContext/Context.js.map +1 -1
- package/dist/browser/contexts/EmbedPluginContext/Provider.cjs +62 -0
- package/dist/browser/contexts/EmbedPluginContext/Provider.cjs.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/Provider.d.cts +7 -0
- package/dist/browser/contexts/EmbedPluginContext/Provider.d.cts.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/Provider.js +9 -3
- package/dist/browser/contexts/EmbedPluginContext/Provider.js.map +1 -1
- package/dist/browser/contexts/EmbedPluginContext/State.cjs +19 -0
- package/dist/browser/contexts/EmbedPluginContext/State.cjs.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/State.d.cts +33 -0
- package/dist/browser/contexts/EmbedPluginContext/State.d.cts.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/index.cjs +68 -0
- package/dist/browser/contexts/EmbedPluginContext/index.cjs.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/index.d.cts +5 -0
- package/dist/browser/contexts/EmbedPluginContext/index.d.cts.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/index.js +44 -4
- package/dist/browser/contexts/EmbedPluginContext/index.js.map +1 -1
- package/dist/browser/contexts/EmbedPluginContext/use.cjs +34 -0
- package/dist/browser/contexts/EmbedPluginContext/use.cjs.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/use.d.cts +2 -0
- package/dist/browser/contexts/EmbedPluginContext/use.d.cts.map +1 -0
- package/dist/browser/contexts/EmbedPluginContext/use.js +8 -2
- package/dist/browser/contexts/EmbedPluginContext/use.js.map +1 -1
- package/dist/browser/contexts/RefreshPayloadContext/Context.cjs +28 -0
- package/dist/{node/contexts/RefreshPayloadContext/Context.mjs.map → browser/contexts/RefreshPayloadContext/Context.cjs.map} +1 -1
- package/dist/browser/contexts/RefreshPayloadContext/Context.d.cts +4 -0
- package/dist/browser/contexts/RefreshPayloadContext/Context.d.cts.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/Context.js +2 -1
- package/dist/browser/contexts/RefreshPayloadContext/Context.js.map +1 -1
- package/dist/browser/contexts/RefreshPayloadContext/Provider.cjs +38 -0
- package/dist/browser/contexts/RefreshPayloadContext/Provider.cjs.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/Provider.d.cts +8 -0
- package/dist/browser/contexts/RefreshPayloadContext/Provider.d.cts.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/Provider.js +9 -3
- package/dist/browser/contexts/RefreshPayloadContext/Provider.js.map +1 -1
- package/dist/browser/contexts/RefreshPayloadContext/State.cjs +19 -0
- package/dist/browser/contexts/RefreshPayloadContext/State.cjs.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/State.d.cts +8 -0
- package/dist/browser/contexts/RefreshPayloadContext/State.d.cts.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/index.cjs +45 -0
- package/dist/browser/contexts/RefreshPayloadContext/index.cjs.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/index.d.cts +4 -0
- package/dist/browser/contexts/RefreshPayloadContext/index.d.cts.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/index.js +21 -3
- package/dist/browser/contexts/RefreshPayloadContext/index.js.map +1 -1
- package/dist/browser/contexts/RefreshPayloadContext/use.cjs +34 -0
- package/dist/browser/contexts/RefreshPayloadContext/use.cjs.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/use.d.cts +2 -0
- package/dist/browser/contexts/RefreshPayloadContext/use.d.cts.map +1 -0
- package/dist/browser/contexts/RefreshPayloadContext/use.js +8 -2
- package/dist/browser/contexts/RefreshPayloadContext/use.js.map +1 -1
- package/dist/browser/contexts/ResolvePayloadContext/Context.cjs +28 -0
- package/dist/{node/contexts/ResolvePayloadContext/Context.mjs.map → browser/contexts/ResolvePayloadContext/Context.cjs.map} +1 -1
- package/dist/browser/contexts/ResolvePayloadContext/Context.d.cts +4 -0
- package/dist/browser/contexts/ResolvePayloadContext/Context.d.cts.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/Context.js +2 -1
- package/dist/browser/contexts/ResolvePayloadContext/Context.js.map +1 -1
- package/dist/browser/contexts/ResolvePayloadContext/Provider.cjs +88 -0
- package/dist/browser/contexts/ResolvePayloadContext/Provider.cjs.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/Provider.d.cts +6 -0
- package/dist/browser/contexts/ResolvePayloadContext/Provider.d.cts.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/Provider.js +17 -4
- package/dist/browser/contexts/ResolvePayloadContext/Provider.js.map +1 -1
- package/dist/browser/contexts/ResolvePayloadContext/State.cjs +19 -0
- package/dist/browser/contexts/ResolvePayloadContext/State.cjs.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/State.d.cts +13 -0
- package/dist/browser/contexts/ResolvePayloadContext/State.d.cts.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/index.cjs +96 -0
- package/dist/browser/contexts/ResolvePayloadContext/index.cjs.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/index.d.cts +5 -0
- package/dist/browser/contexts/ResolvePayloadContext/index.d.cts.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/index.js +72 -4
- package/dist/browser/contexts/ResolvePayloadContext/index.js.map +1 -1
- package/dist/browser/contexts/ResolvePayloadContext/use.cjs +34 -0
- package/dist/browser/contexts/ResolvePayloadContext/use.cjs.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/use.d.cts +2 -0
- package/dist/browser/contexts/ResolvePayloadContext/use.d.cts.map +1 -0
- package/dist/browser/contexts/ResolvePayloadContext/use.js +8 -2
- package/dist/browser/contexts/ResolvePayloadContext/use.js.map +1 -1
- package/dist/browser/contexts/ValidatePayloadContext/Context.cjs +28 -0
- package/dist/{node/contexts/ValidatePayloadContext/Context.mjs.map → browser/contexts/ValidatePayloadContext/Context.cjs.map} +1 -1
- package/dist/browser/contexts/ValidatePayloadContext/Context.d.cts +4 -0
- package/dist/browser/contexts/ValidatePayloadContext/Context.d.cts.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/Context.js +2 -1
- package/dist/browser/contexts/ValidatePayloadContext/Context.js.map +1 -1
- package/dist/browser/contexts/ValidatePayloadContext/Provider.cjs +66 -0
- package/dist/browser/contexts/ValidatePayloadContext/Provider.cjs.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/Provider.d.cts +7 -0
- package/dist/browser/contexts/ValidatePayloadContext/Provider.d.cts.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/Provider.js +17 -4
- package/dist/browser/contexts/ValidatePayloadContext/Provider.js.map +1 -1
- package/dist/browser/contexts/ValidatePayloadContext/State.cjs +19 -0
- package/dist/browser/contexts/ValidatePayloadContext/State.cjs.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/State.d.cts +7 -0
- package/dist/browser/contexts/ValidatePayloadContext/State.d.cts.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/index.cjs +73 -0
- package/dist/browser/contexts/ValidatePayloadContext/index.cjs.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/index.d.cts +4 -0
- package/dist/browser/contexts/ValidatePayloadContext/index.d.cts.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/index.js +49 -3
- package/dist/browser/contexts/ValidatePayloadContext/index.js.map +1 -1
- package/dist/browser/contexts/ValidatePayloadContext/use.cjs +34 -0
- package/dist/browser/contexts/ValidatePayloadContext/use.cjs.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/use.d.cts +2 -0
- package/dist/browser/contexts/ValidatePayloadContext/use.d.cts.map +1 -0
- package/dist/browser/contexts/ValidatePayloadContext/use.js +8 -2
- package/dist/browser/contexts/ValidatePayloadContext/use.js.map +1 -1
- package/dist/browser/contexts/index.cjs +189 -0
- package/dist/browser/contexts/index.cjs.map +1 -0
- package/dist/browser/contexts/index.d.cts +5 -0
- package/dist/browser/contexts/index.d.cts.map +1 -0
- package/dist/browser/contexts/index.js +165 -4
- package/dist/browser/contexts/index.js.map +1 -1
- package/dist/browser/index.cjs +513 -0
- package/dist/browser/index.cjs.map +1 -0
- package/dist/browser/index.d.cts +4 -0
- package/dist/browser/index.d.cts.map +1 -0
- package/dist/browser/index.js +492 -3
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/types/EmbedPluginProps.cjs +19 -0
- package/dist/browser/types/EmbedPluginProps.cjs.map +1 -0
- package/dist/browser/types/EmbedPluginProps.d.cts +10 -0
- package/dist/browser/types/EmbedPluginProps.d.cts.map +1 -0
- package/dist/browser/types/index.cjs +19 -0
- package/dist/browser/types/index.cjs.map +1 -0
- package/dist/browser/types/index.d.cts +2 -0
- package/dist/browser/types/index.d.cts.map +1 -0
- package/dist/browser/types/index.js +0 -1
- package/dist/browser/types/index.js.map +1 -1
- package/dist/docs.json +4925 -0
- package/dist/node/components/EmbedPlugin.cjs +255 -0
- package/dist/node/components/EmbedPlugin.cjs.map +1 -0
- package/dist/node/components/EmbedPlugin.d.cts +5 -0
- package/dist/node/components/EmbedPlugin.d.cts.map +1 -0
- package/dist/node/components/EmbedPlugin.js +206 -38
- package/dist/node/components/EmbedPlugin.js.map +1 -1
- package/dist/node/components/EmbedResolver.cjs +46 -0
- package/dist/node/components/EmbedResolver.cjs.map +1 -0
- package/dist/node/components/EmbedResolver.d.cts +4 -0
- package/dist/node/components/EmbedResolver.d.cts.map +1 -0
- package/dist/node/components/EmbedResolver.js +18 -32
- package/dist/node/components/EmbedResolver.js.map +1 -1
- package/dist/node/components/controls/EmbedFormControl.cjs +38 -0
- package/dist/node/components/controls/EmbedFormControl.cjs.map +1 -0
- package/dist/node/components/controls/EmbedFormControl.d.cts +10 -0
- package/dist/node/components/controls/EmbedFormControl.d.cts.map +1 -0
- package/dist/node/components/controls/EmbedFormControl.js +8 -31
- package/dist/node/components/controls/EmbedFormControl.js.map +1 -1
- package/dist/node/components/controls/ListModeSelect.cjs +70 -0
- package/dist/node/components/controls/ListModeSelect.cjs.map +1 -0
- package/dist/node/components/controls/ListModeSelect.d.cts +6 -0
- package/dist/node/components/controls/ListModeSelect.d.cts.map +1 -0
- package/dist/node/components/controls/ListModeSelect.js +29 -42
- package/dist/node/components/controls/ListModeSelect.js.map +1 -1
- package/dist/node/components/controls/RenderSelect.cjs +58 -0
- package/dist/node/components/controls/RenderSelect.cjs.map +1 -0
- package/dist/node/components/controls/RenderSelect.d.cts +4 -0
- package/dist/node/components/controls/RenderSelect.d.cts.map +1 -0
- package/dist/node/components/controls/RenderSelect.js +29 -34
- package/dist/node/components/controls/RenderSelect.js.map +1 -1
- package/dist/node/components/controls/index.cjs +94 -0
- package/dist/node/components/controls/index.cjs.map +1 -0
- package/dist/node/components/controls/index.d.cts +4 -0
- package/dist/node/components/controls/index.d.cts.map +1 -0
- package/dist/node/components/controls/index.js +62 -25
- package/dist/node/components/controls/index.js.map +1 -1
- package/dist/node/components/embed-card/EmbedCardResolver.cjs +99 -0
- package/dist/node/components/embed-card/EmbedCardResolver.cjs.map +1 -0
- package/dist/node/components/embed-card/EmbedCardResolver.d.cts +5 -0
- package/dist/node/components/embed-card/EmbedCardResolver.d.cts.map +1 -0
- package/dist/node/components/embed-card/EmbedCardResolver.js +59 -36
- package/dist/node/components/embed-card/EmbedCardResolver.js.map +1 -1
- package/dist/node/components/embed-card/EmbedPluginCard.cjs +505 -0
- package/dist/node/components/embed-card/EmbedPluginCard.cjs.map +1 -0
- package/dist/node/components/embed-card/EmbedPluginCard.d.cts +11 -0
- package/dist/node/components/embed-card/EmbedPluginCard.d.cts.map +1 -0
- package/dist/node/components/embed-card/EmbedPluginCard.js +438 -44
- package/dist/node/components/embed-card/EmbedPluginCard.js.map +1 -1
- package/dist/node/components/embed-card/card/BusyCard.cjs +49 -0
- package/dist/node/components/embed-card/card/BusyCard.cjs.map +1 -0
- package/dist/node/components/embed-card/card/BusyCard.d.cts +11 -0
- package/dist/node/components/embed-card/card/BusyCard.d.cts.map +1 -0
- package/dist/node/components/embed-card/card/BusyCard.js +15 -35
- package/dist/node/components/embed-card/card/BusyCard.js.map +1 -1
- package/dist/node/components/embed-card/card/EmbedCardHeader.cjs +113 -0
- package/dist/node/components/embed-card/card/EmbedCardHeader.cjs.map +1 -0
- package/dist/node/components/embed-card/card/EmbedCardHeader.d.cts +4 -0
- package/dist/node/components/embed-card/card/EmbedCardHeader.d.cts.map +1 -0
- package/dist/node/components/embed-card/card/EmbedCardHeader.js +70 -42
- package/dist/node/components/embed-card/card/EmbedCardHeader.js.map +1 -1
- package/dist/node/components/embed-card/card/EmbedPluginCard.cjs +205 -0
- package/dist/node/components/embed-card/card/EmbedPluginCard.cjs.map +1 -0
- package/dist/node/components/embed-card/card/EmbedPluginCard.d.cts +4 -0
- package/dist/node/components/embed-card/card/EmbedPluginCard.d.cts.map +1 -0
- package/dist/node/components/embed-card/card/EmbedPluginCard.js +178 -45
- package/dist/node/components/embed-card/card/EmbedPluginCard.js.map +1 -1
- package/dist/node/components/embed-card/card/index.cjs +211 -0
- package/dist/node/components/embed-card/card/index.cjs.map +1 -0
- package/dist/node/components/embed-card/card/index.d.cts +4 -0
- package/dist/node/components/embed-card/card/index.d.cts.map +1 -0
- package/dist/node/components/embed-card/card/index.js +184 -26
- package/dist/node/components/embed-card/card/index.js.map +1 -1
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.cjs +58 -0
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.cjs.map +1 -0
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.cts +10 -0
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.cts.map +1 -0
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +27 -31
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +1 -1
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.cjs +46 -0
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.cjs.map +1 -0
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.d.cts +15 -0
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.d.cts.map +1 -0
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.js +14 -37
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.js.map +1 -1
- package/dist/node/components/embed-card/error-handling/index.cjs +62 -0
- package/dist/node/components/embed-card/error-handling/index.cjs.map +1 -0
- package/dist/node/components/embed-card/error-handling/index.d.cts +3 -0
- package/dist/node/components/embed-card/error-handling/index.d.cts.map +1 -0
- package/dist/node/components/embed-card/error-handling/index.js +32 -23
- package/dist/node/components/embed-card/error-handling/index.js.map +1 -1
- package/dist/node/components/embed-card/index.cjs +513 -0
- package/dist/node/components/embed-card/index.cjs.map +1 -0
- package/dist/node/components/embed-card/index.d.cts +3 -0
- package/dist/node/components/embed-card/index.d.cts.map +1 -0
- package/dist/node/components/embed-card/index.js +482 -23
- package/dist/node/components/embed-card/index.js.map +1 -1
- package/dist/node/components/embed-card/menu/EmbedMenu.cjs +72 -0
- package/dist/node/components/embed-card/menu/EmbedMenu.cjs.map +1 -0
- package/dist/node/components/embed-card/menu/EmbedMenu.d.cts +4 -0
- package/dist/node/components/embed-card/menu/EmbedMenu.d.cts.map +1 -0
- package/dist/node/components/embed-card/menu/EmbedMenu.js +35 -35
- package/dist/node/components/embed-card/menu/EmbedMenu.js.map +1 -1
- package/dist/node/components/embed-card/menu/JsonMenuItem.cjs +50 -0
- package/dist/node/components/embed-card/menu/JsonMenuItem.cjs.map +1 -0
- package/dist/node/components/embed-card/menu/JsonMenuItem.d.cts +4 -0
- package/dist/node/components/embed-card/menu/JsonMenuItem.d.cts.map +1 -0
- package/dist/node/components/embed-card/menu/JsonMenuItem.js +21 -35
- package/dist/node/components/embed-card/menu/JsonMenuItem.js.map +1 -1
- package/dist/node/components/embed-card/menu/index.cjs +74 -0
- package/dist/node/components/embed-card/menu/index.cjs.map +1 -0
- package/dist/node/components/embed-card/menu/index.d.cts +2 -0
- package/dist/node/components/embed-card/menu/index.d.cts.map +1 -0
- package/dist/node/components/embed-card/menu/index.js +45 -21
- package/dist/node/components/embed-card/menu/index.js.map +1 -1
- package/dist/node/components/embed-plugin-stories/storyPayload.cjs +51 -0
- package/dist/node/components/embed-plugin-stories/storyPayload.cjs.map +1 -0
- package/dist/node/components/embed-plugin-stories/storyPayload.d.cts +126 -0
- package/dist/node/components/embed-plugin-stories/storyPayload.d.cts.map +1 -0
- package/dist/node/components/embed-plugin-stories/storyPayload.js +4 -27
- package/dist/node/components/embed-plugin-stories/storyPayload.js.map +1 -1
- package/dist/node/components/embed-plugin-stories/storyShared.cjs +520 -0
- package/dist/node/components/embed-plugin-stories/storyShared.cjs.map +1 -0
- package/dist/node/components/embed-plugin-stories/storyShared.d.cts +5 -0
- package/dist/node/components/embed-plugin-stories/storyShared.d.cts.map +1 -0
- package/dist/node/components/embed-plugin-stories/storyShared.js +485 -33
- package/dist/node/components/embed-plugin-stories/storyShared.js.map +1 -1
- package/dist/node/components/index.cjs +515 -0
- package/dist/node/components/index.cjs.map +1 -0
- package/dist/node/components/index.d.cts +3 -0
- package/dist/node/components/index.d.cts.map +1 -0
- package/dist/node/components/index.js +483 -23
- package/dist/node/components/index.js.map +1 -1
- package/dist/node/components/validation-alerts/ValidatePayload.cjs +53 -0
- package/dist/node/components/validation-alerts/ValidatePayload.cjs.map +1 -0
- package/dist/node/components/validation-alerts/ValidatePayload.d.cts +5 -0
- package/dist/node/components/validation-alerts/ValidatePayload.d.cts.map +1 -0
- package/dist/node/components/validation-alerts/ValidatePayload.js +19 -33
- package/dist/node/components/validation-alerts/ValidatePayload.js.map +1 -1
- package/dist/node/components/validation-alerts/ValidatePlugins.cjs +61 -0
- package/dist/node/components/validation-alerts/ValidatePlugins.cjs.map +1 -0
- package/dist/node/components/validation-alerts/ValidatePlugins.d.cts +5 -0
- package/dist/node/components/validation-alerts/ValidatePlugins.d.cts.map +1 -0
- package/dist/node/components/validation-alerts/ValidatePlugins.js +30 -36
- package/dist/node/components/validation-alerts/ValidatePlugins.js.map +1 -1
- package/dist/node/components/validation-alerts/index.cjs +88 -0
- package/dist/node/components/validation-alerts/index.cjs.map +1 -0
- package/dist/node/components/validation-alerts/index.d.cts +3 -0
- package/dist/node/components/validation-alerts/index.d.cts.map +1 -0
- package/dist/node/components/validation-alerts/index.js +57 -22
- package/dist/node/components/validation-alerts/index.js.map +1 -1
- package/dist/node/contexts/EmbedPluginContext/Context.cjs +32 -0
- package/dist/node/contexts/EmbedPluginContext/Context.cjs.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/Context.d.cts +4 -0
- package/dist/node/contexts/EmbedPluginContext/Context.d.cts.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/Context.js +5 -28
- package/dist/node/contexts/EmbedPluginContext/Context.js.map +1 -1
- package/dist/node/contexts/EmbedPluginContext/Provider.cjs +66 -0
- package/dist/node/contexts/EmbedPluginContext/Provider.cjs.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/Provider.d.cts +7 -0
- package/dist/node/contexts/EmbedPluginContext/Provider.d.cts.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/Provider.js +16 -34
- package/dist/node/contexts/EmbedPluginContext/Provider.js.map +1 -1
- package/dist/node/contexts/EmbedPluginContext/State.cjs +19 -0
- package/dist/node/contexts/EmbedPluginContext/State.cjs.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/State.d.cts +33 -0
- package/dist/node/contexts/EmbedPluginContext/State.d.cts.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/State.js +0 -16
- package/dist/node/contexts/EmbedPluginContext/State.js.map +1 -1
- package/dist/node/contexts/EmbedPluginContext/index.cjs +74 -0
- package/dist/node/contexts/EmbedPluginContext/index.cjs.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/index.d.cts +5 -0
- package/dist/node/contexts/EmbedPluginContext/index.d.cts.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/index.js +43 -27
- package/dist/node/contexts/EmbedPluginContext/index.js.map +1 -1
- package/dist/node/contexts/EmbedPluginContext/use.cjs +38 -0
- package/dist/node/contexts/EmbedPluginContext/use.cjs.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/use.d.cts +2 -0
- package/dist/node/contexts/EmbedPluginContext/use.d.cts.map +1 -0
- package/dist/node/contexts/EmbedPluginContext/use.js +11 -29
- package/dist/node/contexts/EmbedPluginContext/use.js.map +1 -1
- package/dist/node/contexts/RefreshPayloadContext/Context.cjs +32 -0
- package/dist/node/contexts/RefreshPayloadContext/Context.cjs.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/Context.d.cts +4 -0
- package/dist/node/contexts/RefreshPayloadContext/Context.d.cts.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/Context.js +5 -28
- package/dist/node/contexts/RefreshPayloadContext/Context.js.map +1 -1
- package/dist/node/contexts/RefreshPayloadContext/Provider.cjs +42 -0
- package/dist/node/contexts/RefreshPayloadContext/Provider.cjs.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/Provider.d.cts +8 -0
- package/dist/node/contexts/RefreshPayloadContext/Provider.d.cts.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/Provider.js +14 -32
- package/dist/node/contexts/RefreshPayloadContext/Provider.js.map +1 -1
- package/dist/node/contexts/RefreshPayloadContext/State.cjs +19 -0
- package/dist/node/contexts/RefreshPayloadContext/State.cjs.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/State.d.cts +8 -0
- package/dist/node/contexts/RefreshPayloadContext/State.d.cts.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/State.js +0 -16
- package/dist/node/contexts/RefreshPayloadContext/State.js.map +1 -1
- package/dist/node/contexts/RefreshPayloadContext/index.cjs +50 -0
- package/dist/node/contexts/RefreshPayloadContext/index.cjs.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/index.d.cts +4 -0
- package/dist/node/contexts/RefreshPayloadContext/index.d.cts.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/index.js +20 -25
- package/dist/node/contexts/RefreshPayloadContext/index.js.map +1 -1
- package/dist/node/contexts/RefreshPayloadContext/use.cjs +38 -0
- package/dist/node/contexts/RefreshPayloadContext/use.cjs.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/use.d.cts +2 -0
- package/dist/node/contexts/RefreshPayloadContext/use.d.cts.map +1 -0
- package/dist/node/contexts/RefreshPayloadContext/use.js +11 -29
- package/dist/node/contexts/RefreshPayloadContext/use.js.map +1 -1
- package/dist/node/contexts/ResolvePayloadContext/Context.cjs +32 -0
- package/dist/node/contexts/ResolvePayloadContext/Context.cjs.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/Context.d.cts +4 -0
- package/dist/node/contexts/ResolvePayloadContext/Context.d.cts.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/Context.js +5 -28
- package/dist/node/contexts/ResolvePayloadContext/Context.js.map +1 -1
- package/dist/node/contexts/ResolvePayloadContext/Provider.cjs +92 -0
- package/dist/node/contexts/ResolvePayloadContext/Provider.cjs.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/Provider.d.cts +6 -0
- package/dist/node/contexts/ResolvePayloadContext/Provider.d.cts.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/Provider.js +39 -50
- package/dist/node/contexts/ResolvePayloadContext/Provider.js.map +1 -1
- package/dist/node/contexts/ResolvePayloadContext/State.cjs +19 -0
- package/dist/node/contexts/ResolvePayloadContext/State.cjs.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/State.d.cts +13 -0
- package/dist/node/contexts/ResolvePayloadContext/State.d.cts.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/State.js +0 -16
- package/dist/node/contexts/ResolvePayloadContext/State.js.map +1 -1
- package/dist/node/contexts/ResolvePayloadContext/index.cjs +102 -0
- package/dist/node/contexts/ResolvePayloadContext/index.cjs.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/index.d.cts +5 -0
- package/dist/node/contexts/ResolvePayloadContext/index.d.cts.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/index.js +71 -27
- package/dist/node/contexts/ResolvePayloadContext/index.js.map +1 -1
- package/dist/node/contexts/ResolvePayloadContext/use.cjs +38 -0
- package/dist/node/contexts/ResolvePayloadContext/use.cjs.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/use.d.cts +2 -0
- package/dist/node/contexts/ResolvePayloadContext/use.d.cts.map +1 -0
- package/dist/node/contexts/ResolvePayloadContext/use.js +11 -29
- package/dist/node/contexts/ResolvePayloadContext/use.js.map +1 -1
- package/dist/node/contexts/ValidatePayloadContext/Context.cjs +32 -0
- package/dist/node/contexts/ValidatePayloadContext/Context.cjs.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/Context.d.cts +4 -0
- package/dist/node/contexts/ValidatePayloadContext/Context.d.cts.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/Context.js +5 -28
- package/dist/node/contexts/ValidatePayloadContext/Context.js.map +1 -1
- package/dist/node/contexts/ValidatePayloadContext/Provider.cjs +70 -0
- package/dist/node/contexts/ValidatePayloadContext/Provider.cjs.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/Provider.d.cts +7 -0
- package/dist/node/contexts/ValidatePayloadContext/Provider.d.cts.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/Provider.js +32 -43
- package/dist/node/contexts/ValidatePayloadContext/Provider.js.map +1 -1
- package/dist/node/contexts/ValidatePayloadContext/State.cjs +19 -0
- package/dist/node/contexts/ValidatePayloadContext/State.cjs.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/State.d.cts +7 -0
- package/dist/node/contexts/ValidatePayloadContext/State.d.cts.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/State.js +0 -16
- package/dist/node/contexts/ValidatePayloadContext/State.js.map +1 -1
- package/dist/node/contexts/ValidatePayloadContext/index.cjs +78 -0
- package/dist/node/contexts/ValidatePayloadContext/index.cjs.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/index.d.cts +4 -0
- package/dist/node/contexts/ValidatePayloadContext/index.d.cts.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/index.js +48 -25
- package/dist/node/contexts/ValidatePayloadContext/index.js.map +1 -1
- package/dist/node/contexts/ValidatePayloadContext/use.cjs +38 -0
- package/dist/node/contexts/ValidatePayloadContext/use.cjs.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/use.d.cts +2 -0
- package/dist/node/contexts/ValidatePayloadContext/use.d.cts.map +1 -0
- package/dist/node/contexts/ValidatePayloadContext/use.js +11 -29
- package/dist/node/contexts/ValidatePayloadContext/use.js.map +1 -1
- package/dist/node/contexts/index.cjs +202 -0
- package/dist/node/contexts/index.cjs.map +1 -0
- package/dist/node/contexts/index.d.cts +5 -0
- package/dist/node/contexts/index.d.cts.map +1 -0
- package/dist/node/contexts/index.js +164 -27
- package/dist/node/contexts/index.js.map +1 -1
- package/dist/node/index.cjs +535 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.d.cts +4 -0
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.js +493 -25
- package/dist/node/index.js.map +1 -1
- package/dist/node/types/EmbedPluginProps.cjs +19 -0
- package/dist/node/types/EmbedPluginProps.cjs.map +1 -0
- package/dist/node/types/EmbedPluginProps.d.cts +10 -0
- package/dist/node/types/EmbedPluginProps.d.cts.map +1 -0
- package/dist/node/types/EmbedPluginProps.js +0 -16
- package/dist/node/types/EmbedPluginProps.js.map +1 -1
- package/dist/node/types/index.cjs +19 -0
- package/dist/node/types/index.cjs.map +1 -0
- package/dist/node/types/index.d.cts +2 -0
- package/dist/node/types/index.d.cts.map +1 -0
- package/dist/node/types/index.js +0 -22
- package/dist/node/types/index.js.map +1 -1
- package/package.json +25 -25
- package/dist/browser/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.js +0 -25
- package/dist/browser/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.js.map +0 -1
- package/dist/browser/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.js +0 -85
- package/dist/browser/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.js.map +0 -1
- package/dist/browser/contexts/ValidatePayloadContext/Provider.stories.js +0 -53
- package/dist/browser/contexts/ValidatePayloadContext/Provider.stories.js.map +0 -1
- package/dist/node/components/EmbedPlugin.mjs +0 -38
- package/dist/node/components/EmbedPlugin.mjs.map +0 -1
- package/dist/node/components/EmbedResolver.mjs +0 -11
- package/dist/node/components/EmbedResolver.mjs.map +0 -1
- package/dist/node/components/controls/EmbedFormControl.mjs +0 -12
- package/dist/node/components/controls/ListModeSelect.mjs +0 -32
- package/dist/node/components/controls/ListModeSelect.mjs.map +0 -1
- package/dist/node/components/controls/RenderSelect.mjs +0 -14
- package/dist/node/components/controls/RenderSelect.mjs.map +0 -1
- package/dist/node/components/controls/index.mjs +0 -4
- package/dist/node/components/controls/index.mjs.map +0 -1
- package/dist/node/components/embed-card/EmbedCardResolver.mjs +0 -27
- package/dist/node/components/embed-card/EmbedCardResolver.mjs.map +0 -1
- package/dist/node/components/embed-card/EmbedPluginCard.mjs +0 -61
- package/dist/node/components/embed-card/EmbedPluginCard.mjs.map +0 -1
- package/dist/node/components/embed-card/card/BusyCard.mjs +0 -26
- package/dist/node/components/embed-card/card/EmbedCardHeader.mjs +0 -36
- package/dist/node/components/embed-card/card/EmbedCardHeader.mjs.map +0 -1
- package/dist/node/components/embed-card/card/EmbedPluginCard.mjs +0 -26
- package/dist/node/components/embed-card/card/EmbedPluginCard.mjs.map +0 -1
- package/dist/node/components/embed-card/card/index.mjs +0 -4
- package/dist/node/components/embed-card/card/index.mjs.map +0 -1
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.mjs +0 -13
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.mjs.map +0 -1
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.mjs +0 -20
- package/dist/node/components/embed-card/error-handling/index.mjs +0 -3
- package/dist/node/components/embed-card/error-handling/index.mjs.map +0 -1
- package/dist/node/components/embed-card/index.mjs +0 -3
- package/dist/node/components/embed-card/index.mjs.map +0 -1
- package/dist/node/components/embed-card/menu/EmbedMenu.mjs +0 -23
- package/dist/node/components/embed-card/menu/EmbedMenu.mjs.map +0 -1
- package/dist/node/components/embed-card/menu/JsonMenuItem.mjs +0 -15
- package/dist/node/components/embed-card/menu/JsonMenuItem.mjs.map +0 -1
- package/dist/node/components/embed-card/menu/index.mjs +0 -2
- package/dist/node/components/embed-card/menu/index.mjs.map +0 -1
- package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.js +0 -50
- package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.js.map +0 -1
- package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.mjs +0 -25
- package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.mjs.map +0 -1
- package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.js +0 -115
- package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.js.map +0 -1
- package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.mjs +0 -85
- package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.mjs.map +0 -1
- package/dist/node/components/embed-plugin-stories/storyShared.mjs +0 -20
- package/dist/node/components/embed-plugin-stories/storyShared.mjs.map +0 -1
- package/dist/node/components/index.mjs +0 -3
- package/dist/node/components/index.mjs.map +0 -1
- package/dist/node/components/validation-alerts/ValidatePayload.mjs +0 -18
- package/dist/node/components/validation-alerts/ValidatePayload.mjs.map +0 -1
- package/dist/node/components/validation-alerts/ValidatePlugins.mjs +0 -18
- package/dist/node/components/validation-alerts/ValidatePlugins.mjs.map +0 -1
- package/dist/node/components/validation-alerts/index.mjs +0 -3
- package/dist/node/components/validation-alerts/index.mjs.map +0 -1
- package/dist/node/contexts/EmbedPluginContext/Context.mjs +0 -6
- package/dist/node/contexts/EmbedPluginContext/Provider.mjs +0 -35
- package/dist/node/contexts/EmbedPluginContext/Provider.mjs.map +0 -1
- package/dist/node/contexts/EmbedPluginContext/State.mjs +0 -1
- package/dist/node/contexts/EmbedPluginContext/State.mjs.map +0 -1
- package/dist/node/contexts/EmbedPluginContext/index.mjs +0 -5
- package/dist/node/contexts/EmbedPluginContext/index.mjs.map +0 -1
- package/dist/node/contexts/EmbedPluginContext/use.mjs +0 -7
- package/dist/node/contexts/EmbedPluginContext/use.mjs.map +0 -1
- package/dist/node/contexts/RefreshPayloadContext/Context.mjs +0 -6
- package/dist/node/contexts/RefreshPayloadContext/Provider.mjs +0 -11
- package/dist/node/contexts/RefreshPayloadContext/Provider.mjs.map +0 -1
- package/dist/node/contexts/RefreshPayloadContext/State.mjs +0 -1
- package/dist/node/contexts/RefreshPayloadContext/State.mjs.map +0 -1
- package/dist/node/contexts/RefreshPayloadContext/index.mjs +0 -4
- package/dist/node/contexts/RefreshPayloadContext/index.mjs.map +0 -1
- package/dist/node/contexts/RefreshPayloadContext/use.mjs +0 -7
- package/dist/node/contexts/RefreshPayloadContext/use.mjs.map +0 -1
- package/dist/node/contexts/ResolvePayloadContext/Context.mjs +0 -6
- package/dist/node/contexts/ResolvePayloadContext/Provider.mjs +0 -54
- package/dist/node/contexts/ResolvePayloadContext/Provider.mjs.map +0 -1
- package/dist/node/contexts/ResolvePayloadContext/State.mjs +0 -1
- package/dist/node/contexts/ResolvePayloadContext/State.mjs.map +0 -1
- package/dist/node/contexts/ResolvePayloadContext/index.mjs +0 -5
- package/dist/node/contexts/ResolvePayloadContext/index.mjs.map +0 -1
- package/dist/node/contexts/ResolvePayloadContext/use.mjs +0 -7
- package/dist/node/contexts/ResolvePayloadContext/use.mjs.map +0 -1
- package/dist/node/contexts/ValidatePayloadContext/Context.mjs +0 -6
- package/dist/node/contexts/ValidatePayloadContext/Provider.mjs +0 -32
- package/dist/node/contexts/ValidatePayloadContext/Provider.mjs.map +0 -1
- package/dist/node/contexts/ValidatePayloadContext/Provider.stories.js +0 -79
- package/dist/node/contexts/ValidatePayloadContext/Provider.stories.js.map +0 -1
- package/dist/node/contexts/ValidatePayloadContext/Provider.stories.mjs +0 -53
- package/dist/node/contexts/ValidatePayloadContext/Provider.stories.mjs.map +0 -1
- package/dist/node/contexts/ValidatePayloadContext/State.mjs +0 -1
- package/dist/node/contexts/ValidatePayloadContext/State.mjs.map +0 -1
- package/dist/node/contexts/ValidatePayloadContext/index.mjs +0 -4
- package/dist/node/contexts/ValidatePayloadContext/index.mjs.map +0 -1
- package/dist/node/contexts/ValidatePayloadContext/use.mjs +0 -7
- package/dist/node/contexts/ValidatePayloadContext/use.mjs.map +0 -1
- package/dist/node/contexts/index.mjs +0 -5
- package/dist/node/contexts/index.mjs.map +0 -1
- package/dist/node/index.mjs +0 -4
- package/dist/node/index.mjs.map +0 -1
- package/dist/node/types/EmbedPluginProps.mjs +0 -1
- package/dist/node/types/EmbedPluginProps.mjs.map +0 -1
- package/dist/node/types/index.mjs +0 -2
- package/dist/node/types/index.mjs.map +0 -1
@@ -1,18 +0,0 @@
|
|
1
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
2
|
-
import { Alert, AlertTitle } from "@mui/material";
|
3
|
-
import { useEmbedPluginState, useResolvePayload } from "../../contexts";
|
4
|
-
const ValidatePluginsAlert = ({ children, ...props }) => {
|
5
|
-
const { payload } = useResolvePayload();
|
6
|
-
const { plugins } = useEmbedPluginState();
|
7
|
-
if (payload && plugins?.length === 0) {
|
8
|
-
return /* @__PURE__ */ jsxs(Alert, { severity: "warning", ...props, children: [
|
9
|
-
/* @__PURE__ */ jsx(AlertTitle, { children: "Missing plugins!" }),
|
10
|
-
"Payload found but no plugins were present."
|
11
|
-
] });
|
12
|
-
}
|
13
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
14
|
-
};
|
15
|
-
export {
|
16
|
-
ValidatePluginsAlert
|
17
|
-
};
|
18
|
-
//# sourceMappingURL=ValidatePlugins.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/validation-alerts/ValidatePlugins.tsx"],"sourcesContent":["import { Alert, AlertProps, AlertTitle } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../contexts'\n\nexport const ValidatePluginsAlert: React.FC<WithChildren<AlertProps>> = ({ children, ...props }) => {\n const { payload } = useResolvePayload()\n const { plugins } = useEmbedPluginState()\n\n if (payload && plugins?.length === 0) {\n return (\n <Alert severity=\"warning\" {...props}>\n <AlertTitle>Missing plugins!</AlertTitle>Payload found but no plugins were present.\n </Alert>\n )\n }\n\n return <>{children}</>\n}\n"],"mappings":"AAWM,SAMG,UALD,KADF;AAXN,SAAS,OAAmB,kBAAkB;AAG9C,SAAS,qBAAqB,yBAAyB;AAEhD,MAAM,uBAA2D,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AAClG,QAAM,EAAE,QAAQ,IAAI,kBAAkB;AACtC,QAAM,EAAE,QAAQ,IAAI,oBAAoB;AAExC,MAAI,WAAW,SAAS,WAAW,GAAG;AACpC,WACE,qBAAC,SAAM,UAAS,WAAW,GAAG,OAC5B;AAAA,0BAAC,cAAW,8BAAgB;AAAA,MAAa;AAAA,OAC3C;AAAA,EAEJ;AAEA,SAAO,gCAAG,UAAS;AACrB;","names":[]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/validation-alerts/index.ts"],"sourcesContent":["export * from './ValidatePayload'\nexport * from './ValidatePlugins'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
2
|
-
import { useEffect, useState } from "react";
|
3
|
-
import { EmbedPluginContext } from "./Context";
|
4
|
-
const EmbedPluginProvider = ({
|
5
|
-
children,
|
6
|
-
refreshTitle,
|
7
|
-
timestampLabel,
|
8
|
-
hideElementsConfig,
|
9
|
-
plugins,
|
10
|
-
embedPluginConfig
|
11
|
-
}) => {
|
12
|
-
const [activePlugin, setActivePlugin] = useState(plugins ? plugins[0] : void 0);
|
13
|
-
useEffect(() => {
|
14
|
-
setActivePlugin(plugins ? plugins[0] : void 0);
|
15
|
-
}, [plugins]);
|
16
|
-
return /* @__PURE__ */ jsx(
|
17
|
-
EmbedPluginContext.Provider,
|
18
|
-
{
|
19
|
-
value: {
|
20
|
-
activePlugin,
|
21
|
-
embedPluginConfig,
|
22
|
-
hideElementsConfig,
|
23
|
-
provided: true,
|
24
|
-
refreshTitle,
|
25
|
-
setActivePlugin,
|
26
|
-
timestampLabel
|
27
|
-
},
|
28
|
-
children
|
29
|
-
}
|
30
|
-
);
|
31
|
-
};
|
32
|
-
export {
|
33
|
-
EmbedPluginProvider
|
34
|
-
};
|
35
|
-
//# sourceMappingURL=Provider.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/contexts/EmbedPluginContext/Provider.tsx"],"sourcesContent":["import { WithChildren } from '@xylabs/react-shared'\nimport { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { useEffect, useState } from 'react'\n\nimport { EmbedPluginContext } from './Context'\nimport { EmbedPluginBase } from './State'\n\nexport type EmbedPluginProviderProps = EmbedPluginBase\n\n/** Expose passed embed plugin props via context */\nexport const EmbedPluginProvider: React.FC<WithChildren<EmbedPluginProviderProps>> = ({\n children,\n refreshTitle,\n timestampLabel,\n hideElementsConfig,\n plugins,\n embedPluginConfig,\n}) => {\n const [activePlugin, setActivePlugin] = useState<PayloadRenderPlugin | undefined>(plugins ? plugins[0] : undefined)\n\n useEffect(() => {\n setActivePlugin(plugins ? plugins[0] : undefined)\n }, [plugins])\n\n return (\n <EmbedPluginContext.Provider\n value={{\n activePlugin,\n embedPluginConfig,\n hideElementsConfig,\n provided: true,\n refreshTitle,\n setActivePlugin,\n timestampLabel,\n }}\n >\n {children}\n </EmbedPluginContext.Provider>\n )\n}\n"],"mappings":"AAyBI;AAvBJ,SAAS,WAAW,gBAAgB;AAEpC,SAAS,0BAA0B;AAM5B,MAAM,sBAAwE,CAAC;AAAA,EACpF;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,CAAC,cAAc,eAAe,IAAI,SAA0C,UAAU,QAAQ,CAAC,IAAI,MAAS;AAElH,YAAU,MAAM;AACd,oBAAgB,UAAU,QAAQ,CAAC,IAAI,MAAS;AAAA,EAClD,GAAG,CAAC,OAAO,CAAC;AAEZ,SACE;AAAA,IAAC,mBAAmB;AAAA,IAAnB;AAAA,MACC,OAAO;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,QACA,UAAU;AAAA,QACV;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MAEC;AAAA;AAAA,EACH;AAEJ;","names":[]}
|
@@ -1 +0,0 @@
|
|
1
|
-
//# sourceMappingURL=State.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/contexts/EmbedPluginContext/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":[]}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { useContextEx } from "@xyo-network/react-shared";
|
2
|
-
import { EmbedPluginContext } from "./Context";
|
3
|
-
const useEmbedPluginState = () => useContextEx(EmbedPluginContext, "EmbedPlugin", true);
|
4
|
-
export {
|
5
|
-
useEmbedPluginState
|
6
|
-
};
|
7
|
-
//# sourceMappingURL=use.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/contexts/EmbedPluginContext/use.tsx"],"sourcesContent":["import { useContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginContext } from './Context'\n\nexport const useEmbedPluginState = () => useContextEx(EmbedPluginContext, 'EmbedPlugin', true)\n"],"mappings":"AAAA,SAAS,oBAAoB;AAE7B,SAAS,0BAA0B;AAE5B,MAAM,sBAAsB,MAAM,aAAa,oBAAoB,eAAe,IAAI;","names":[]}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
2
|
-
import { useState } from "react";
|
3
|
-
import { RefreshPayloadContext } from "./Context";
|
4
|
-
const RefreshPayloadProvider = ({ children, onRefresh, refreshPayload }) => {
|
5
|
-
const [localRefreshPayload, setRefreshPayload] = useState(refreshPayload);
|
6
|
-
return /* @__PURE__ */ jsx(RefreshPayloadContext.Provider, { value: { onRefresh, provided: true, refreshPayload: localRefreshPayload, setRefreshPayload }, children });
|
7
|
-
};
|
8
|
-
export {
|
9
|
-
RefreshPayloadProvider
|
10
|
-
};
|
11
|
-
//# sourceMappingURL=Provider.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/contexts/RefreshPayloadContext/Provider.tsx"],"sourcesContent":["import { WithChildren } from '@xylabs/react-shared'\nimport { useState } from 'react'\n\nimport { RefreshPayloadContext } from './Context'\n\nexport interface RefreshPayloadProps {\n onRefresh?: () => void\n refreshPayload?: boolean\n}\n\nexport const RefreshPayloadProvider: React.FC<WithChildren<RefreshPayloadProps>> = ({ children, onRefresh, refreshPayload }) => {\n const [localRefreshPayload, setRefreshPayload] = useState(refreshPayload)\n\n return (\n <RefreshPayloadContext.Provider value={{ onRefresh, provided: true, refreshPayload: localRefreshPayload, setRefreshPayload }}>\n {children}\n </RefreshPayloadContext.Provider>\n )\n}\n"],"mappings":"AAcI;AAbJ,SAAS,gBAAgB;AAEzB,SAAS,6BAA6B;AAO/B,MAAM,yBAAsE,CAAC,EAAE,UAAU,WAAW,eAAe,MAAM;AAC9H,QAAM,CAAC,qBAAqB,iBAAiB,IAAI,SAAS,cAAc;AAExE,SACE,oBAAC,sBAAsB,UAAtB,EAA+B,OAAO,EAAE,WAAW,UAAU,MAAM,gBAAgB,qBAAqB,kBAAkB,GACxH,UACH;AAEJ;","names":[]}
|
@@ -1 +0,0 @@
|
|
1
|
-
//# sourceMappingURL=State.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
@@ -1 +0,0 @@
|
|
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":[]}
|
@@ -1,7 +0,0 @@
|
|
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.mjs.map
|
@@ -1 +0,0 @@
|
|
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":[]}
|
@@ -1,54 +0,0 @@
|
|
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.mjs.map
|
@@ -1 +0,0 @@
|
|
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":[]}
|
@@ -1 +0,0 @@
|
|
1
|
-
//# sourceMappingURL=State.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
@@ -1 +0,0 @@
|
|
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":[]}
|
@@ -1,7 +0,0 @@
|
|
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.mjs.map
|
@@ -1 +0,0 @@
|
|
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":[]}
|
@@ -1,32 +0,0 @@
|
|
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.mjs.map
|
@@ -1 +0,0 @@
|
|
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":[]}
|
@@ -1,79 +0,0 @@
|
|
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 Provider_stories_exports = {};
|
20
|
-
__export(Provider_stories_exports, {
|
21
|
-
Default: () => Default,
|
22
|
-
ValidationFailed: () => ValidationFailed,
|
23
|
-
ValidationSucceeded: () => ValidationSucceeded,
|
24
|
-
default: () => Provider_stories_default
|
25
|
-
});
|
26
|
-
module.exports = __toCommonJS(Provider_stories_exports);
|
27
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
28
|
-
var import_material = require("@mui/material");
|
29
|
-
var import_EmbedPluginContext = require("../EmbedPluginContext");
|
30
|
-
var import_RefreshPayloadContext = require("../RefreshPayloadContext");
|
31
|
-
var import_ResolvePayloadContext = require("../ResolvePayloadContext");
|
32
|
-
var import_Provider = require("./Provider");
|
33
|
-
var import_use = require("./use");
|
34
|
-
const EmbedDecorator = (Story, { args }) => {
|
35
|
-
const { xyoEmbedPluginContext, resolvePayloadContext, ...props } = args;
|
36
|
-
console.log(resolvePayloadContext);
|
37
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_RefreshPayloadContext.RefreshPayloadProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ResolvePayloadContext.ResolvePayloadContext.Provider, { value: resolvePayloadContext, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_EmbedPluginContext.EmbedPluginContext.Provider, { value: xyoEmbedPluginContext, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Story, { ...props }) }) }) });
|
38
|
-
};
|
39
|
-
const StorybookEntry = {
|
40
|
-
component: import_Provider.ValidatePayloadProvider,
|
41
|
-
decorators: [EmbedDecorator],
|
42
|
-
title: "embed/ValidatePayloadProvider"
|
43
|
-
};
|
44
|
-
const ValidatePayloadState = () => {
|
45
|
-
const state = (0, import_use.useValidatePayload)();
|
46
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", { children: JSON.stringify(state, null, 2) });
|
47
|
-
};
|
48
|
-
const Template = (props) => {
|
49
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Provider.ValidatePayloadProvider, { ...props, children: [
|
50
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { children: "State:" }),
|
51
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ValidatePayloadState, {}),
|
52
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { children: "Children" })
|
53
|
-
] });
|
54
|
-
};
|
55
|
-
const InvalidPayload = { schema: "network.xyo.schema" };
|
56
|
-
const ValidPayload = { definition: { $id: "test.schema" }, schema: "network.xyo.schema" };
|
57
|
-
const stubProviderDefaultValue = { provided: true };
|
58
|
-
const Default = Template.bind({});
|
59
|
-
Default.args = { resolvePayloadContext: stubProviderDefaultValue, xyoEmbedPluginContext: stubProviderDefaultValue };
|
60
|
-
const ValidationSucceeded = Template.bind({});
|
61
|
-
ValidationSucceeded.args = {
|
62
|
-
enabled: true,
|
63
|
-
resolvePayloadContext: { payload: ValidPayload, ...stubProviderDefaultValue },
|
64
|
-
xyoEmbedPluginContext: stubProviderDefaultValue
|
65
|
-
};
|
66
|
-
const ValidationFailed = Template.bind({});
|
67
|
-
ValidationFailed.args = {
|
68
|
-
enabled: true,
|
69
|
-
resolvePayloadContext: { payload: InvalidPayload, ...stubProviderDefaultValue },
|
70
|
-
xyoEmbedPluginContext: stubProviderDefaultValue
|
71
|
-
};
|
72
|
-
var Provider_stories_default = StorybookEntry;
|
73
|
-
// Annotate the CommonJS export names for ESM import in node:
|
74
|
-
0 && (module.exports = {
|
75
|
-
Default,
|
76
|
-
ValidationFailed,
|
77
|
-
ValidationSucceeded
|
78
|
-
});
|
79
|
-
//# sourceMappingURL=Provider.stories.js.map
|
@@ -1 +0,0 @@
|
|
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":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBU;AAhBV,sBAA2B;AAG3B,gCAAqD;AACrD,mCAAuC;AACvC,mCAA2D;AAC3D,sBAAsE;AACtE,iBAAmC;AAEnC,MAAM,iBAA4D,CAAC,OAAO,EAAE,KAAK,MAAM;AACrF,QAAM,EAAE,uBAAuB,uBAAuB,GAAG,MAAM,IAAI;AACnE,UAAQ,IAAI,qBAAqB;AACjC,SACE,4CAAC,uDACC,sDAAC,mDAAsB,UAAtB,EAA+B,OAAO,uBACrC,sDAAC,6CAAmB,UAAnB,EAA4B,OAAO,uBAClC,sDAAC,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,YAAQ,+BAAmB;AACjC,SAAO,4CAAC,SAAK,eAAK,UAAU,OAAO,MAAM,CAAC,GAAE;AAC9C;AAOA,MAAM,WAA8D,CAAC,UAAU;AAC7E,SACE,6CAAC,2CAAyB,GAAG,OAC3B;AAAA,gDAAC,8BAAW,oBAAM;AAAA,IAClB,4CAAC,wBAAqB;AAAA,IACtB,4CAAC,8BAAW,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":[]}
|
@@ -1,53 +0,0 @@
|
|
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.mjs.map
|
@@ -1 +0,0 @@
|
|
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":[]}
|
@@ -1 +0,0 @@
|
|
1
|
-
//# sourceMappingURL=State.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
@@ -1 +0,0 @@
|
|
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":[]}
|
@@ -1,7 +0,0 @@
|
|
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.mjs.map
|
@@ -1 +0,0 @@
|
|
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":[]}
|
@@ -1 +0,0 @@
|
|
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":[]}
|
package/dist/node/index.mjs
DELETED
package/dist/node/index.mjs.map
DELETED
@@ -1 +0,0 @@
|
|
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":[]}
|
@@ -1 +0,0 @@
|
|
1
|
-
//# sourceMappingURL=EmbedPluginProps.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/types/index.ts"],"sourcesContent":["export * from './EmbedPluginProps'\n"],"mappings":"AAAA,cAAc;","names":[]}
|