@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,7 +1,17 @@
|
|
1
|
-
|
1
|
+
// src/components/validation-alerts/ValidatePayload.tsx
|
2
2
|
import { Alert } from "@mui/material";
|
3
|
-
|
4
|
-
|
3
|
+
|
4
|
+
// src/contexts/ValidatePayloadContext/Context.ts
|
5
|
+
import { createContextEx } from "@xyo-network/react-shared";
|
6
|
+
var ValidatePayloadContext = createContextEx();
|
7
|
+
|
8
|
+
// src/contexts/ValidatePayloadContext/use.tsx
|
9
|
+
import { useContextEx } from "@xyo-network/react-shared";
|
10
|
+
var useValidatePayload = () => useContextEx(ValidatePayloadContext, "ValidateSchema", true);
|
11
|
+
|
12
|
+
// src/components/validation-alerts/ValidatePayload.tsx
|
13
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
14
|
+
var ValidatePayloadAlert = ({ children, ...props }) => {
|
5
15
|
const { validPayload, enabled, schema } = useValidatePayload();
|
6
16
|
if (enabled && validPayload === false) {
|
7
17
|
return /* @__PURE__ */ jsxs(Alert, { severity: "error", title: "Invalid Payload!", ...props, children: [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/validation-alerts/ValidatePayload.tsx"],"sourcesContent":["import { Alert, AlertProps } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\nimport { useValidatePayload } from '../../contexts'\n\nexport const ValidatePayloadAlert: React.FC<WithChildren<AlertProps>> = ({ children, ...props }) => {\n const { validPayload, enabled, schema } = useValidatePayload()\n\n if (enabled && validPayload === false) {\n return (\n <Alert severity=\"error\" title=\"Invalid Payload!\" {...props}>\n Payload schema claimed to be {schema} but failed to validate.\n </Alert>\n )\n }\n\n return <>{children}</>\n}\n"],"mappings":"
|
1
|
+
{"version":3,"sources":["../../../../src/components/validation-alerts/ValidatePayload.tsx","../../../../src/contexts/ValidatePayloadContext/Context.ts","../../../../src/contexts/ValidatePayloadContext/use.tsx"],"sourcesContent":["import { Alert, AlertProps } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\nimport { useValidatePayload } from '../../contexts'\n\nexport const ValidatePayloadAlert: React.FC<WithChildren<AlertProps>> = ({ children, ...props }) => {\n const { validPayload, enabled, schema } = useValidatePayload()\n\n if (enabled && validPayload === false) {\n return (\n <Alert severity=\"error\" title=\"Invalid Payload!\" {...props}>\n Payload schema claimed to be {schema} but failed to validate.\n </Alert>\n )\n }\n\n return <>{children}</>\n}\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { ValidatePayloadState } from './State'\n\nexport const ValidatePayloadContext = createContextEx<ValidatePayloadState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { ValidatePayloadContext } from './Context'\n\nexport const useValidatePayload = () => useContextEx(ValidatePayloadContext, 'ValidateSchema', true)\n"],"mappings":";AAAA,SAAS,aAAyB;;;ACAlC,SAAS,uBAAuB;AAIzB,IAAM,yBAAyB,gBAAsC;;;ACJ5E,SAAS,oBAAoB;AAItB,IAAM,qBAAqB,MAAM,aAAa,wBAAwB,kBAAkB,IAAI;;;AFM7F,SAMG,eANH;AALC,IAAM,uBAA2D,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AAClG,QAAM,EAAE,cAAc,SAAS,OAAO,IAAI,mBAAmB;AAE7D,MAAI,WAAW,iBAAiB,OAAO;AACrC,WACE,qBAAC,SAAM,UAAS,SAAQ,OAAM,oBAAoB,GAAG,OAAO;AAAA;AAAA,MAC5B;AAAA,MAAO;AAAA,OACvC;AAAA,EAEJ;AAEA,SAAO,gCAAG,UAAS;AACrB;","names":[]}
|
@@ -0,0 +1,57 @@
|
|
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
|
+
|
20
|
+
// src/components/validation-alerts/ValidatePlugins.tsx
|
21
|
+
var ValidatePlugins_exports = {};
|
22
|
+
__export(ValidatePlugins_exports, {
|
23
|
+
ValidatePluginsAlert: () => ValidatePluginsAlert
|
24
|
+
});
|
25
|
+
module.exports = __toCommonJS(ValidatePlugins_exports);
|
26
|
+
var import_material = require("@mui/material");
|
27
|
+
|
28
|
+
// src/contexts/EmbedPluginContext/Context.tsx
|
29
|
+
var import_react_shared = require("@xyo-network/react-shared");
|
30
|
+
var EmbedPluginContext = (0, import_react_shared.createContextEx)();
|
31
|
+
|
32
|
+
// src/contexts/EmbedPluginContext/use.tsx
|
33
|
+
var import_react_shared2 = require("@xyo-network/react-shared");
|
34
|
+
var useEmbedPluginState = () => (0, import_react_shared2.useContextEx)(EmbedPluginContext, "EmbedPlugin", true);
|
35
|
+
|
36
|
+
// src/contexts/ResolvePayloadContext/Context.ts
|
37
|
+
var import_react_shared3 = require("@xyo-network/react-shared");
|
38
|
+
var ResolvePayloadContext = (0, import_react_shared3.createContextEx)();
|
39
|
+
|
40
|
+
// src/contexts/ResolvePayloadContext/use.tsx
|
41
|
+
var import_react_shared4 = require("@xyo-network/react-shared");
|
42
|
+
var useResolvePayload = () => (0, import_react_shared4.useContextEx)(ResolvePayloadContext, "ResolvePayload", true);
|
43
|
+
|
44
|
+
// src/components/validation-alerts/ValidatePlugins.tsx
|
45
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
46
|
+
var ValidatePluginsAlert = ({ children, ...props }) => {
|
47
|
+
const { payload } = useResolvePayload();
|
48
|
+
const { plugins } = useEmbedPluginState();
|
49
|
+
if (payload && plugins?.length === 0) {
|
50
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Alert, { severity: "warning", ...props, children: [
|
51
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.AlertTitle, { children: "Missing plugins!" }),
|
52
|
+
"Payload found but no plugins were present."
|
53
|
+
] });
|
54
|
+
}
|
55
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
|
56
|
+
};
|
57
|
+
//# sourceMappingURL=ValidatePlugins.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/validation-alerts/ValidatePlugins.tsx","../../../../src/contexts/EmbedPluginContext/Context.tsx","../../../../src/contexts/EmbedPluginContext/use.tsx","../../../../src/contexts/ResolvePayloadContext/Context.ts","../../../../src/contexts/ResolvePayloadContext/use.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","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginState } from './State'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginContext } from './Context'\n\nexport const useEmbedPluginState = () => useContextEx(EmbedPluginContext, 'EmbedPlugin', true)\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { ResolvePayloadState } from './State'\n\nexport const ResolvePayloadContext = createContextEx<ResolvePayloadState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { ResolvePayloadContext } from './Context'\n\nexport const useResolvePayload = () => useContextEx(ResolvePayloadContext, 'ResolvePayload', true)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAA8C;;;ACA9C,0BAAgC;AAIzB,IAAM,yBAAqB,qCAAkC;;;ACJpE,IAAAA,uBAA6B;AAItB,IAAM,sBAAsB,UAAM,mCAAa,oBAAoB,eAAe,IAAI;;;ACJ7F,IAAAC,uBAAgC;AAIzB,IAAM,4BAAwB,sCAAqC;;;ACJ1E,IAAAC,uBAA6B;AAItB,IAAM,oBAAoB,UAAM,mCAAa,uBAAuB,kBAAkB,IAAI;;;AJO3F;AANC,IAAM,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,6CAAC,yBAAM,UAAS,WAAW,GAAG,OAC5B;AAAA,kDAAC,8BAAW,8BAAgB;AAAA,MAAa;AAAA,OAC3C;AAAA,EAEJ;AAEA,SAAO,2EAAG,UAAS;AACrB;","names":["import_react_shared","import_react_shared","import_react_shared"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ValidatePlugins.d.ts","sourceRoot":"","sources":["../../../../src/components/validation-alerts/ValidatePlugins.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAS,UAAU,EAAc,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAInD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,CAanE,CAAA"}
|
@@ -1,7 +1,25 @@
|
|
1
|
-
|
1
|
+
// src/components/validation-alerts/ValidatePlugins.tsx
|
2
2
|
import { Alert, AlertTitle } from "@mui/material";
|
3
|
-
|
4
|
-
|
3
|
+
|
4
|
+
// src/contexts/EmbedPluginContext/Context.tsx
|
5
|
+
import { createContextEx } from "@xyo-network/react-shared";
|
6
|
+
var EmbedPluginContext = createContextEx();
|
7
|
+
|
8
|
+
// src/contexts/EmbedPluginContext/use.tsx
|
9
|
+
import { useContextEx } from "@xyo-network/react-shared";
|
10
|
+
var useEmbedPluginState = () => useContextEx(EmbedPluginContext, "EmbedPlugin", true);
|
11
|
+
|
12
|
+
// src/contexts/ResolvePayloadContext/Context.ts
|
13
|
+
import { createContextEx as createContextEx2 } from "@xyo-network/react-shared";
|
14
|
+
var ResolvePayloadContext = createContextEx2();
|
15
|
+
|
16
|
+
// src/contexts/ResolvePayloadContext/use.tsx
|
17
|
+
import { useContextEx as useContextEx2 } from "@xyo-network/react-shared";
|
18
|
+
var useResolvePayload = () => useContextEx2(ResolvePayloadContext, "ResolvePayload", true);
|
19
|
+
|
20
|
+
// src/components/validation-alerts/ValidatePlugins.tsx
|
21
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
22
|
+
var ValidatePluginsAlert = ({ children, ...props }) => {
|
5
23
|
const { payload } = useResolvePayload();
|
6
24
|
const { plugins } = useEmbedPluginState();
|
7
25
|
if (payload && plugins?.length === 0) {
|
@@ -1 +1 @@
|
|
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":"
|
1
|
+
{"version":3,"sources":["../../../../src/components/validation-alerts/ValidatePlugins.tsx","../../../../src/contexts/EmbedPluginContext/Context.tsx","../../../../src/contexts/EmbedPluginContext/use.tsx","../../../../src/contexts/ResolvePayloadContext/Context.ts","../../../../src/contexts/ResolvePayloadContext/use.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","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginState } from './State'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginContext } from './Context'\n\nexport const useEmbedPluginState = () => useContextEx(EmbedPluginContext, 'EmbedPlugin', true)\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { ResolvePayloadState } from './State'\n\nexport const ResolvePayloadContext = createContextEx<ResolvePayloadState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { ResolvePayloadContext } from './Context'\n\nexport const useResolvePayload = () => useContextEx(ResolvePayloadContext, 'ResolvePayload', true)\n"],"mappings":";AAAA,SAAS,OAAmB,kBAAkB;;;ACA9C,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;;;ACJpE,SAAS,oBAAoB;AAItB,IAAM,sBAAsB,MAAM,aAAa,oBAAoB,eAAe,IAAI;;;ACJ7F,SAAS,mBAAAA,wBAAuB;AAIzB,IAAM,wBAAwBA,iBAAqC;;;ACJ1E,SAAS,gBAAAC,qBAAoB;AAItB,IAAM,oBAAoB,MAAMC,cAAa,uBAAuB,kBAAkB,IAAI;;;AJO3F,SAMG,UALD,KADF;AANC,IAAM,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":["createContextEx","useContextEx","useContextEx"]}
|
@@ -0,0 +1,83 @@
|
|
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
|
+
|
20
|
+
// src/components/validation-alerts/index.ts
|
21
|
+
var validation_alerts_exports = {};
|
22
|
+
__export(validation_alerts_exports, {
|
23
|
+
ValidatePayloadAlert: () => ValidatePayloadAlert,
|
24
|
+
ValidatePluginsAlert: () => ValidatePluginsAlert
|
25
|
+
});
|
26
|
+
module.exports = __toCommonJS(validation_alerts_exports);
|
27
|
+
|
28
|
+
// src/components/validation-alerts/ValidatePayload.tsx
|
29
|
+
var import_material = require("@mui/material");
|
30
|
+
|
31
|
+
// src/contexts/EmbedPluginContext/Context.tsx
|
32
|
+
var import_react_shared = require("@xyo-network/react-shared");
|
33
|
+
var EmbedPluginContext = (0, import_react_shared.createContextEx)();
|
34
|
+
|
35
|
+
// src/contexts/EmbedPluginContext/use.tsx
|
36
|
+
var import_react_shared2 = require("@xyo-network/react-shared");
|
37
|
+
var useEmbedPluginState = () => (0, import_react_shared2.useContextEx)(EmbedPluginContext, "EmbedPlugin", true);
|
38
|
+
|
39
|
+
// src/contexts/ResolvePayloadContext/Context.ts
|
40
|
+
var import_react_shared3 = require("@xyo-network/react-shared");
|
41
|
+
var ResolvePayloadContext = (0, import_react_shared3.createContextEx)();
|
42
|
+
|
43
|
+
// src/contexts/ResolvePayloadContext/use.tsx
|
44
|
+
var import_react_shared4 = require("@xyo-network/react-shared");
|
45
|
+
var useResolvePayload = () => (0, import_react_shared4.useContextEx)(ResolvePayloadContext, "ResolvePayload", true);
|
46
|
+
|
47
|
+
// src/contexts/ValidatePayloadContext/Context.ts
|
48
|
+
var import_react_shared5 = require("@xyo-network/react-shared");
|
49
|
+
var ValidatePayloadContext = (0, import_react_shared5.createContextEx)();
|
50
|
+
|
51
|
+
// src/contexts/ValidatePayloadContext/use.tsx
|
52
|
+
var import_react_shared6 = require("@xyo-network/react-shared");
|
53
|
+
var useValidatePayload = () => (0, import_react_shared6.useContextEx)(ValidatePayloadContext, "ValidateSchema", true);
|
54
|
+
|
55
|
+
// src/components/validation-alerts/ValidatePayload.tsx
|
56
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
57
|
+
var ValidatePayloadAlert = ({ children, ...props }) => {
|
58
|
+
const { validPayload, enabled, schema } = useValidatePayload();
|
59
|
+
if (enabled && validPayload === false) {
|
60
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Alert, { severity: "error", title: "Invalid Payload!", ...props, children: [
|
61
|
+
"Payload schema claimed to be ",
|
62
|
+
schema,
|
63
|
+
" but failed to validate."
|
64
|
+
] });
|
65
|
+
}
|
66
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
|
67
|
+
};
|
68
|
+
|
69
|
+
// src/components/validation-alerts/ValidatePlugins.tsx
|
70
|
+
var import_material2 = require("@mui/material");
|
71
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
72
|
+
var ValidatePluginsAlert = ({ children, ...props }) => {
|
73
|
+
const { payload } = useResolvePayload();
|
74
|
+
const { plugins } = useEmbedPluginState();
|
75
|
+
if (payload && plugins?.length === 0) {
|
76
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_material2.Alert, { severity: "warning", ...props, children: [
|
77
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.AlertTitle, { children: "Missing plugins!" }),
|
78
|
+
"Payload found but no plugins were present."
|
79
|
+
] });
|
80
|
+
}
|
81
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children });
|
82
|
+
};
|
83
|
+
//# sourceMappingURL=index.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/validation-alerts/index.ts","../../../../src/components/validation-alerts/ValidatePayload.tsx","../../../../src/contexts/EmbedPluginContext/Context.tsx","../../../../src/contexts/EmbedPluginContext/use.tsx","../../../../src/contexts/ResolvePayloadContext/Context.ts","../../../../src/contexts/ResolvePayloadContext/use.tsx","../../../../src/contexts/ValidatePayloadContext/Context.ts","../../../../src/contexts/ValidatePayloadContext/use.tsx","../../../../src/components/validation-alerts/ValidatePlugins.tsx"],"sourcesContent":["export * from './ValidatePayload'\nexport * from './ValidatePlugins'\n","import { Alert, AlertProps } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\nimport { useValidatePayload } from '../../contexts'\n\nexport const ValidatePayloadAlert: React.FC<WithChildren<AlertProps>> = ({ children, ...props }) => {\n const { validPayload, enabled, schema } = useValidatePayload()\n\n if (enabled && validPayload === false) {\n return (\n <Alert severity=\"error\" title=\"Invalid Payload!\" {...props}>\n Payload schema claimed to be {schema} but failed to validate.\n </Alert>\n )\n }\n\n return <>{children}</>\n}\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginState } from './State'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginContext } from './Context'\n\nexport const useEmbedPluginState = () => useContextEx(EmbedPluginContext, 'EmbedPlugin', true)\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { ResolvePayloadState } from './State'\n\nexport const ResolvePayloadContext = createContextEx<ResolvePayloadState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { ResolvePayloadContext } from './Context'\n\nexport const useResolvePayload = () => useContextEx(ResolvePayloadContext, 'ResolvePayload', true)\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { ValidatePayloadState } from './State'\n\nexport const ValidatePayloadContext = createContextEx<ValidatePayloadState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { ValidatePayloadContext } from './Context'\n\nexport const useValidatePayload = () => useContextEx(ValidatePayloadContext, 'ValidateSchema', true)\n","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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,sBAAkC;;;ACAlC,0BAAgC;AAIzB,IAAM,yBAAqB,qCAAkC;;;ACJpE,IAAAA,uBAA6B;AAItB,IAAM,sBAAsB,UAAM,mCAAa,oBAAoB,eAAe,IAAI;;;ACJ7F,IAAAC,uBAAgC;AAIzB,IAAM,4BAAwB,sCAAqC;;;ACJ1E,IAAAC,uBAA6B;AAItB,IAAM,oBAAoB,UAAM,mCAAa,uBAAuB,kBAAkB,IAAI;;;ACJjG,IAAAC,uBAAgC;AAIzB,IAAM,6BAAyB,sCAAsC;;;ACJ5E,IAAAC,uBAA6B;AAItB,IAAM,qBAAqB,UAAM,mCAAa,wBAAwB,kBAAkB,IAAI;;;ANM7F;AALC,IAAM,uBAA2D,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AAClG,QAAM,EAAE,cAAc,SAAS,OAAO,IAAI,mBAAmB;AAE7D,MAAI,WAAW,iBAAiB,OAAO;AACrC,WACE,6CAAC,yBAAM,UAAS,SAAQ,OAAM,oBAAoB,GAAG,OAAO;AAAA;AAAA,MAC5B;AAAA,MAAO;AAAA,OACvC;AAAA,EAEJ;AAEA,SAAO,2EAAG,UAAS;AACrB;;;AOjBA,IAAAC,mBAA8C;AAWxC,IAAAC,sBAAA;AANC,IAAM,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,8CAAC,0BAAM,UAAS,WAAW,GAAG,OAC5B;AAAA,mDAAC,+BAAW,8BAAgB;AAAA,MAAa;AAAA,OAC3C;AAAA,EAEJ;AAEA,SAAO,6EAAG,UAAS;AACrB;","names":["import_react_shared","import_react_shared","import_react_shared","import_react_shared","import_react_shared","import_material","import_jsx_runtime"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/validation-alerts/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
|
@@ -1,3 +1,60 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
// src/components/validation-alerts/ValidatePayload.tsx
|
2
|
+
import { Alert } from "@mui/material";
|
3
|
+
|
4
|
+
// src/contexts/EmbedPluginContext/Context.tsx
|
5
|
+
import { createContextEx } from "@xyo-network/react-shared";
|
6
|
+
var EmbedPluginContext = createContextEx();
|
7
|
+
|
8
|
+
// src/contexts/EmbedPluginContext/use.tsx
|
9
|
+
import { useContextEx } from "@xyo-network/react-shared";
|
10
|
+
var useEmbedPluginState = () => useContextEx(EmbedPluginContext, "EmbedPlugin", true);
|
11
|
+
|
12
|
+
// src/contexts/ResolvePayloadContext/Context.ts
|
13
|
+
import { createContextEx as createContextEx2 } from "@xyo-network/react-shared";
|
14
|
+
var ResolvePayloadContext = createContextEx2();
|
15
|
+
|
16
|
+
// src/contexts/ResolvePayloadContext/use.tsx
|
17
|
+
import { useContextEx as useContextEx2 } from "@xyo-network/react-shared";
|
18
|
+
var useResolvePayload = () => useContextEx2(ResolvePayloadContext, "ResolvePayload", true);
|
19
|
+
|
20
|
+
// src/contexts/ValidatePayloadContext/Context.ts
|
21
|
+
import { createContextEx as createContextEx3 } from "@xyo-network/react-shared";
|
22
|
+
var ValidatePayloadContext = createContextEx3();
|
23
|
+
|
24
|
+
// src/contexts/ValidatePayloadContext/use.tsx
|
25
|
+
import { useContextEx as useContextEx3 } from "@xyo-network/react-shared";
|
26
|
+
var useValidatePayload = () => useContextEx3(ValidatePayloadContext, "ValidateSchema", true);
|
27
|
+
|
28
|
+
// src/components/validation-alerts/ValidatePayload.tsx
|
29
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
30
|
+
var ValidatePayloadAlert = ({ children, ...props }) => {
|
31
|
+
const { validPayload, enabled, schema } = useValidatePayload();
|
32
|
+
if (enabled && validPayload === false) {
|
33
|
+
return /* @__PURE__ */ jsxs(Alert, { severity: "error", title: "Invalid Payload!", ...props, children: [
|
34
|
+
"Payload schema claimed to be ",
|
35
|
+
schema,
|
36
|
+
" but failed to validate."
|
37
|
+
] });
|
38
|
+
}
|
39
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
40
|
+
};
|
41
|
+
|
42
|
+
// src/components/validation-alerts/ValidatePlugins.tsx
|
43
|
+
import { Alert as Alert2, AlertTitle } from "@mui/material";
|
44
|
+
import { Fragment as Fragment2, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
45
|
+
var ValidatePluginsAlert = ({ children, ...props }) => {
|
46
|
+
const { payload } = useResolvePayload();
|
47
|
+
const { plugins } = useEmbedPluginState();
|
48
|
+
if (payload && plugins?.length === 0) {
|
49
|
+
return /* @__PURE__ */ jsxs2(Alert2, { severity: "warning", ...props, children: [
|
50
|
+
/* @__PURE__ */ jsx2(AlertTitle, { children: "Missing plugins!" }),
|
51
|
+
"Payload found but no plugins were present."
|
52
|
+
] });
|
53
|
+
}
|
54
|
+
return /* @__PURE__ */ jsx2(Fragment2, { children });
|
55
|
+
};
|
56
|
+
export {
|
57
|
+
ValidatePayloadAlert,
|
58
|
+
ValidatePluginsAlert
|
59
|
+
};
|
3
60
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/validation-alerts/
|
1
|
+
{"version":3,"sources":["../../../../src/components/validation-alerts/ValidatePayload.tsx","../../../../src/contexts/EmbedPluginContext/Context.tsx","../../../../src/contexts/EmbedPluginContext/use.tsx","../../../../src/contexts/ResolvePayloadContext/Context.ts","../../../../src/contexts/ResolvePayloadContext/use.tsx","../../../../src/contexts/ValidatePayloadContext/Context.ts","../../../../src/contexts/ValidatePayloadContext/use.tsx","../../../../src/components/validation-alerts/ValidatePlugins.tsx"],"sourcesContent":["import { Alert, AlertProps } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\nimport { useValidatePayload } from '../../contexts'\n\nexport const ValidatePayloadAlert: React.FC<WithChildren<AlertProps>> = ({ children, ...props }) => {\n const { validPayload, enabled, schema } = useValidatePayload()\n\n if (enabled && validPayload === false) {\n return (\n <Alert severity=\"error\" title=\"Invalid Payload!\" {...props}>\n Payload schema claimed to be {schema} but failed to validate.\n </Alert>\n )\n }\n\n return <>{children}</>\n}\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginState } from './State'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginContext } from './Context'\n\nexport const useEmbedPluginState = () => useContextEx(EmbedPluginContext, 'EmbedPlugin', true)\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { ResolvePayloadState } from './State'\n\nexport const ResolvePayloadContext = createContextEx<ResolvePayloadState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { ResolvePayloadContext } from './Context'\n\nexport const useResolvePayload = () => useContextEx(ResolvePayloadContext, 'ResolvePayload', true)\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { ValidatePayloadState } from './State'\n\nexport const ValidatePayloadContext = createContextEx<ValidatePayloadState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { ValidatePayloadContext } from './Context'\n\nexport const useValidatePayload = () => useContextEx(ValidatePayloadContext, 'ValidateSchema', true)\n","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":";AAAA,SAAS,aAAyB;;;ACAlC,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;;;ACJpE,SAAS,oBAAoB;AAItB,IAAM,sBAAsB,MAAM,aAAa,oBAAoB,eAAe,IAAI;;;ACJ7F,SAAS,mBAAAA,wBAAuB;AAIzB,IAAM,wBAAwBA,iBAAqC;;;ACJ1E,SAAS,gBAAAC,qBAAoB;AAItB,IAAM,oBAAoB,MAAMC,cAAa,uBAAuB,kBAAkB,IAAI;;;ACJjG,SAAS,mBAAAC,wBAAuB;AAIzB,IAAM,yBAAyBA,iBAAsC;;;ACJ5E,SAAS,gBAAAC,qBAAoB;AAItB,IAAM,qBAAqB,MAAMC,cAAa,wBAAwB,kBAAkB,IAAI;;;ANM7F,SAMG,eANH;AALC,IAAM,uBAA2D,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AAClG,QAAM,EAAE,cAAc,SAAS,OAAO,IAAI,mBAAmB;AAE7D,MAAI,WAAW,iBAAiB,OAAO;AACrC,WACE,qBAAC,SAAM,UAAS,SAAQ,OAAM,oBAAoB,GAAG,OAAO;AAAA;AAAA,MAC5B;AAAA,MAAO;AAAA,OACvC;AAAA,EAEJ;AAEA,SAAO,gCAAG,UAAS;AACrB;;;AOjBA,SAAS,SAAAC,QAAmB,kBAAkB;AAWxC,SAMG,YAAAC,WALD,OAAAC,MADF,QAAAC,aAAA;AANC,IAAM,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,gBAAAA,MAACC,QAAA,EAAM,UAAS,WAAW,GAAG,OAC5B;AAAA,sBAAAF,KAAC,cAAW,8BAAgB;AAAA,MAAa;AAAA,OAC3C;AAAA,EAEJ;AAEA,SAAO,gBAAAA,KAAAD,WAAA,EAAG,UAAS;AACrB;","names":["createContextEx","useContextEx","useContextEx","createContextEx","useContextEx","useContextEx","Alert","Fragment","jsx","jsxs","Alert"]}
|
@@ -0,0 +1,28 @@
|
|
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
|
+
|
20
|
+
// src/contexts/EmbedPluginContext/Context.tsx
|
21
|
+
var Context_exports = {};
|
22
|
+
__export(Context_exports, {
|
23
|
+
EmbedPluginContext: () => EmbedPluginContext
|
24
|
+
});
|
25
|
+
module.exports = __toCommonJS(Context_exports);
|
26
|
+
var import_react_shared = require("@xyo-network/react-shared");
|
27
|
+
var EmbedPluginContext = (0, import_react_shared.createContextEx)();
|
28
|
+
//# sourceMappingURL=Context.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/contexts/EmbedPluginContext/Context.tsx"],"sourcesContent":["import { createContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginState } from './State'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n"],"mappings":"AAAA,
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/EmbedPluginContext/Context.tsx"],"sourcesContent":["import { createContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginState } from './State'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAgC;AAIzB,IAAM,yBAAqB,qCAAkC;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/Context.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE1C,eAAO,MAAM,kBAAkB,gGAAsC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/contexts/EmbedPluginContext/Context.tsx"],"sourcesContent":["import { createContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginState } from './State'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n"],"mappings":"AAAA,SAAS,uBAAuB;AAIzB,
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/EmbedPluginContext/Context.tsx"],"sourcesContent":["import { createContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginState } from './State'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n"],"mappings":";AAAA,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;","names":[]}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __export = (target, all) => {
|
7
|
+
for (var name in all)
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
+
};
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
+
for (let key of __getOwnPropNames(from))
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
+
}
|
16
|
+
return to;
|
17
|
+
};
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
+
|
20
|
+
// src/contexts/EmbedPluginContext/Provider.tsx
|
21
|
+
var Provider_exports = {};
|
22
|
+
__export(Provider_exports, {
|
23
|
+
EmbedPluginProvider: () => EmbedPluginProvider
|
24
|
+
});
|
25
|
+
module.exports = __toCommonJS(Provider_exports);
|
26
|
+
var import_react = require("react");
|
27
|
+
|
28
|
+
// src/contexts/EmbedPluginContext/Context.tsx
|
29
|
+
var import_react_shared = require("@xyo-network/react-shared");
|
30
|
+
var EmbedPluginContext = (0, import_react_shared.createContextEx)();
|
31
|
+
|
32
|
+
// src/contexts/EmbedPluginContext/Provider.tsx
|
33
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
34
|
+
var EmbedPluginProvider = ({
|
35
|
+
children,
|
36
|
+
refreshTitle,
|
37
|
+
timestampLabel,
|
38
|
+
hideElementsConfig,
|
39
|
+
plugins,
|
40
|
+
embedPluginConfig
|
41
|
+
}) => {
|
42
|
+
const [activePlugin, setActivePlugin] = (0, import_react.useState)(plugins ? plugins[0] : void 0);
|
43
|
+
(0, import_react.useEffect)(() => {
|
44
|
+
setActivePlugin(plugins ? plugins[0] : void 0);
|
45
|
+
}, [plugins]);
|
46
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
47
|
+
EmbedPluginContext.Provider,
|
48
|
+
{
|
49
|
+
value: {
|
50
|
+
activePlugin,
|
51
|
+
embedPluginConfig,
|
52
|
+
hideElementsConfig,
|
53
|
+
provided: true,
|
54
|
+
refreshTitle,
|
55
|
+
setActivePlugin,
|
56
|
+
timestampLabel
|
57
|
+
},
|
58
|
+
children
|
59
|
+
}
|
60
|
+
);
|
61
|
+
};
|
62
|
+
//# sourceMappingURL=Provider.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/EmbedPluginContext/Provider.tsx","../../../../src/contexts/EmbedPluginContext/Context.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","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginState } from './State'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,mBAAoC;;;ACFpC,0BAAgC;AAIzB,IAAM,yBAAqB,qCAAkC;;;ADqBhE;AAfG,IAAM,sBAAwE,CAAC;AAAA,EACpF;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,CAAC,cAAc,eAAe,QAAI,uBAA0C,UAAU,QAAQ,CAAC,IAAI,MAAS;AAElH,8BAAU,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":[]}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { WithChildren } from '@xylabs/react-shared';
|
3
|
+
import { EmbedPluginBase } from './State';
|
4
|
+
export type EmbedPluginProviderProps = EmbedPluginBase;
|
5
|
+
/** Expose passed embed plugin props via context */
|
6
|
+
export declare const EmbedPluginProvider: React.FC<WithChildren<EmbedPluginProviderProps>>;
|
7
|
+
//# sourceMappingURL=Provider.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/Provider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAKnD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEzC,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAA;AAEtD,mDAAmD;AACnD,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,wBAAwB,CAAC,CA6BhF,CAAA"}
|
@@ -1,7 +1,13 @@
|
|
1
|
-
|
1
|
+
// src/contexts/EmbedPluginContext/Provider.tsx
|
2
2
|
import { useEffect, useState } from "react";
|
3
|
-
|
4
|
-
|
3
|
+
|
4
|
+
// src/contexts/EmbedPluginContext/Context.tsx
|
5
|
+
import { createContextEx } from "@xyo-network/react-shared";
|
6
|
+
var EmbedPluginContext = createContextEx();
|
7
|
+
|
8
|
+
// src/contexts/EmbedPluginContext/Provider.tsx
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
10
|
+
var EmbedPluginProvider = ({
|
5
11
|
children,
|
6
12
|
refreshTitle,
|
7
13
|
timestampLabel,
|
@@ -1 +1 @@
|
|
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":"
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/EmbedPluginContext/Provider.tsx","../../../../src/contexts/EmbedPluginContext/Context.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","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginState } from './State'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n"],"mappings":";AAEA,SAAS,WAAW,gBAAgB;;;ACFpC,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;;;ADqBhE;AAfG,IAAM,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":[]}
|
@@ -0,0 +1,19 @@
|
|
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 __copyProps = (to, from, except, desc) => {
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
8
|
+
for (let key of __getOwnPropNames(from))
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
11
|
+
}
|
12
|
+
return to;
|
13
|
+
};
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
15
|
+
|
16
|
+
// src/contexts/EmbedPluginContext/State.ts
|
17
|
+
var State_exports = {};
|
18
|
+
module.exports = __toCommonJS(State_exports);
|
19
|
+
//# sourceMappingURL=State.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/contexts/EmbedPluginContext/State.ts"],"sourcesContent":["import { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { ContextExState, ListMode } from '@xyo-network/react-shared'\nimport { Dispatch, SetStateAction } from 'react'\n\nexport interface EmbedPluginVisibilityConfig {\n hideAvatar?: boolean\n hideCardActions?: boolean\n hideCardHeader?: boolean\n hideErrorDetails?: boolean\n hideRefreshButton?: boolean\n hideTimestamp?: boolean\n hideTitle?: boolean\n}\n\n/**\n * Extend for custom plugin configuration\n */\nexport interface PluginConfig {\n listMode?: ListMode\n}\n\nexport interface EmbedPluginBase {\n /** EmbedPlugin component configuration */\n embedPluginConfig?: PluginConfig\n hideElementsConfig?: EmbedPluginVisibilityConfig\n /** @deprecated use huriPayload */\n huri?: string\n plugins?: PayloadRenderPlugin[]\n refreshTitle?: string\n timestampLabel?: string\n}\n\nexport interface EmbedPluginState extends EmbedPluginBase, ContextExState {\n activePlugin?: PayloadRenderPlugin\n setActivePlugin?: Dispatch<SetStateAction<PayloadRenderPlugin | undefined>>\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin';
|
2
|
+
import { ContextExState, ListMode } from '@xyo-network/react-shared';
|
3
|
+
import { Dispatch, SetStateAction } from 'react';
|
4
|
+
export interface EmbedPluginVisibilityConfig {
|
5
|
+
hideAvatar?: boolean;
|
6
|
+
hideCardActions?: boolean;
|
7
|
+
hideCardHeader?: boolean;
|
8
|
+
hideErrorDetails?: boolean;
|
9
|
+
hideRefreshButton?: boolean;
|
10
|
+
hideTimestamp?: boolean;
|
11
|
+
hideTitle?: boolean;
|
12
|
+
}
|
13
|
+
/**
|
14
|
+
* Extend for custom plugin configuration
|
15
|
+
*/
|
16
|
+
export interface PluginConfig {
|
17
|
+
listMode?: ListMode;
|
18
|
+
}
|
19
|
+
export interface EmbedPluginBase {
|
20
|
+
/** EmbedPlugin component configuration */
|
21
|
+
embedPluginConfig?: PluginConfig;
|
22
|
+
hideElementsConfig?: EmbedPluginVisibilityConfig;
|
23
|
+
/** @deprecated use huriPayload */
|
24
|
+
huri?: string;
|
25
|
+
plugins?: PayloadRenderPlugin[];
|
26
|
+
refreshTitle?: string;
|
27
|
+
timestampLabel?: string;
|
28
|
+
}
|
29
|
+
export interface EmbedPluginState extends EmbedPluginBase, ContextExState {
|
30
|
+
activePlugin?: PayloadRenderPlugin;
|
31
|
+
setActivePlugin?: Dispatch<SetStateAction<PayloadRenderPlugin | undefined>>;
|
32
|
+
}
|
33
|
+
//# sourceMappingURL=State.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAEhD,MAAM,WAAW,2BAA2B;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,0CAA0C;IAC1C,iBAAiB,CAAC,EAAE,YAAY,CAAA;IAChC,kBAAkB,CAAC,EAAE,2BAA2B,CAAA;IAChD,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,gBAAiB,SAAQ,eAAe,EAAE,cAAc;IACvE,YAAY,CAAC,EAAE,mBAAmB,CAAA;IAClC,eAAe,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC,CAAA;CAC5E"}
|