@xyo-network/react-embed 2.64.0-rc.6 → 2.64.0
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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/{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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedPluginProps.d.ts","sourceRoot":"","sources":["../../../src/types/EmbedPluginProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,eAAe,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAE1E,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,kBAAkB,CAAC,EAAE,2BAA2B,CAAA;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC9B,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB"}
|
@@ -1,17 +1 @@
|
|
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
|
-
var EmbedPluginProps_exports = {};
|
16
|
-
module.exports = __toCommonJS(EmbedPluginProps_exports);
|
17
1
|
//# sourceMappingURL=EmbedPluginProps.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":[
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","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/types/index.ts
|
17
|
+
var types_exports = {};
|
18
|
+
module.exports = __toCommonJS(types_exports);
|
19
|
+
//# sourceMappingURL=index.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/types/index.ts"],"sourcesContent":["export * from './EmbedPluginProps'\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
|
package/dist/node/types/index.js
CHANGED
@@ -1,23 +1 @@
|
|
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
16
|
-
var types_exports = {};
|
17
|
-
module.exports = __toCommonJS(types_exports);
|
18
|
-
__reExport(types_exports, require("./EmbedPluginProps"), module.exports);
|
19
|
-
// Annotate the CommonJS export names for ESM import in node:
|
20
|
-
0 && (module.exports = {
|
21
|
-
...require("./EmbedPluginProps")
|
22
|
-
});
|
23
1
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":[
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
CHANGED
@@ -10,26 +10,26 @@
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
|
11
11
|
},
|
12
12
|
"dependencies": {
|
13
|
-
"@xylabs/delay": "^2.
|
14
|
-
"@xylabs/react-async-effect": "^3.
|
15
|
-
"@xylabs/react-flexbox": "^3.
|
16
|
-
"@xylabs/react-shared": "^3.
|
17
|
-
"@xyo-network/huri": "^2.
|
18
|
-
"@xyo-network/payload-model": "^2.
|
19
|
-
"@xyo-network/react-error": "~2.64.0
|
20
|
-
"@xyo-network/react-payload-plugin": "~2.64.0
|
21
|
-
"@xyo-network/react-shared": "~2.64.0
|
22
|
-
"@xyo-network/schema-cache": "^2.
|
13
|
+
"@xylabs/delay": "^2.12.13",
|
14
|
+
"@xylabs/react-async-effect": "^3.0.5",
|
15
|
+
"@xylabs/react-flexbox": "^3.0.5",
|
16
|
+
"@xylabs/react-shared": "^3.0.5",
|
17
|
+
"@xyo-network/huri": "^2.75.3",
|
18
|
+
"@xyo-network/payload-model": "^2.75.3",
|
19
|
+
"@xyo-network/react-error": "~2.64.0",
|
20
|
+
"@xyo-network/react-payload-plugin": "~2.64.0",
|
21
|
+
"@xyo-network/react-shared": "~2.64.0",
|
22
|
+
"@xyo-network/schema-cache": "^2.75.3"
|
23
23
|
},
|
24
24
|
"devDependencies": {
|
25
|
-
"@storybook/react": "^7.4.
|
25
|
+
"@storybook/react": "^7.4.5",
|
26
26
|
"@uniswap/sdk": "^3.0.3",
|
27
27
|
"@uniswap/sdk-core": "^4.0.7",
|
28
28
|
"@uniswap/v3-sdk": "^3.10.0",
|
29
|
-
"@xylabs/ts-scripts-yarn3": "^3.0.
|
30
|
-
"@xylabs/tsconfig-react": "^3.0.
|
31
|
-
"@xyo-network/react-aggregate-price-plugin": "~2.64.0
|
32
|
-
"@xyo-network/react-crypto-market-uniswap-plugin": "~2.64.0
|
29
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.78",
|
30
|
+
"@xylabs/tsconfig-react": "^3.0.78",
|
31
|
+
"@xyo-network/react-aggregate-price-plugin": "~2.64.0",
|
32
|
+
"@xyo-network/react-crypto-market-uniswap-plugin": "~2.64.0",
|
33
33
|
"typescript": "^5.2.2"
|
34
34
|
},
|
35
35
|
"peerDependencies": {
|
@@ -48,28 +48,28 @@
|
|
48
48
|
"node": {
|
49
49
|
"import": {
|
50
50
|
"types": "./dist/node/index.d.mts",
|
51
|
-
"default": "./dist/node/index.
|
51
|
+
"default": "./dist/node/index.js"
|
52
52
|
},
|
53
53
|
"require": {
|
54
|
-
"types": "./dist/node/index.d.
|
55
|
-
"default": "./dist/node/index.
|
54
|
+
"types": "./dist/node/index.d.cts",
|
55
|
+
"default": "./dist/node/index.cjs"
|
56
56
|
}
|
57
57
|
},
|
58
58
|
"browser": {
|
59
59
|
"import": {
|
60
|
-
"types": "./dist/browser/index.d.
|
60
|
+
"types": "./dist/browser/index.d.mts",
|
61
61
|
"default": "./dist/browser/index.js"
|
62
62
|
},
|
63
63
|
"require": {
|
64
|
-
"types": "./dist/browser/index.d.
|
65
|
-
"default": "./dist/browser/index.
|
64
|
+
"types": "./dist/browser/index.d.cts",
|
65
|
+
"default": "./dist/browser/index.cjs"
|
66
66
|
}
|
67
67
|
},
|
68
|
-
"default": "./dist/browser/index.
|
68
|
+
"default": "./dist/browser/index.js"
|
69
69
|
},
|
70
70
|
"./package.json": "./package.json"
|
71
71
|
},
|
72
|
-
"main": "dist/browser/index.
|
72
|
+
"main": "dist/browser/index.cjs",
|
73
73
|
"module": "dist/browser/index.js",
|
74
74
|
"homepage": "https://xyo.network",
|
75
75
|
"keywords": [
|
@@ -92,6 +92,6 @@
|
|
92
92
|
},
|
93
93
|
"sideEffects": false,
|
94
94
|
"types": "dist/browser/index.d.ts",
|
95
|
-
"version": "2.64.0
|
96
|
-
"
|
95
|
+
"version": "2.64.0",
|
96
|
+
"type": "module"
|
97
97
|
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { CryptoAssetRenderPlugin } from "@xyo-network/react-aggregate-price-plugin";
|
2
|
-
import { UniswapPairsRenderPlugin } from "@xyo-network/react-crypto-market-uniswap-plugin";
|
3
|
-
import { Template, xyoEmbedStoryBase } from "./storyShared";
|
4
|
-
const AggregatePricePointer = "https://api.archivist.xyo.network/1948bf4eedf90ee2b8a1f63216b7c6b3b18d7bc2834330d85bcd6ab3d6428a20";
|
5
|
-
const UniswapPairPointer = "https://beta.api.archivist.xyo.network/e36602006239d86b6e08412f7879372b2c622d74f4d6bc508a08a46fa8ad6523";
|
6
|
-
var XyoEmbedPlugin_examples_stories_default = {
|
7
|
-
...xyoEmbedStoryBase,
|
8
|
-
title: "embed/EmbedPlugin/examples"
|
9
|
-
};
|
10
|
-
const AggregatePriceExample = Template.bind({});
|
11
|
-
AggregatePriceExample.args = {
|
12
|
-
huriPayload: AggregatePricePointer,
|
13
|
-
plugins: [CryptoAssetRenderPlugin]
|
14
|
-
};
|
15
|
-
const UniswapPairsExample = Template.bind({});
|
16
|
-
UniswapPairsExample.args = {
|
17
|
-
huriPayload: UniswapPairPointer,
|
18
|
-
plugins: [UniswapPairsRenderPlugin]
|
19
|
-
};
|
20
|
-
export {
|
21
|
-
AggregatePriceExample,
|
22
|
-
UniswapPairsExample,
|
23
|
-
XyoEmbedPlugin_examples_stories_default as default
|
24
|
-
};
|
25
|
-
//# sourceMappingURL=XyoEmbedPlugin.examples.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.tsx"],"sourcesContent":["import { Meta } from '@storybook/react'\nimport { CryptoAssetRenderPlugin } from '@xyo-network/react-aggregate-price-plugin'\nimport { UniswapPairsRenderPlugin } from '@xyo-network/react-crypto-market-uniswap-plugin'\n\nimport { Template, xyoEmbedStoryBase } from './storyShared'\n\nconst AggregatePricePointer = 'https://api.archivist.xyo.network/1948bf4eedf90ee2b8a1f63216b7c6b3b18d7bc2834330d85bcd6ab3d6428a20'\nconst UniswapPairPointer = 'https://beta.api.archivist.xyo.network/e36602006239d86b6e08412f7879372b2c622d74f4d6bc508a08a46fa8ad6523'\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n ...xyoEmbedStoryBase,\n title: 'embed/EmbedPlugin/examples',\n} as Meta\n\nconst AggregatePriceExample = Template.bind({})\nAggregatePriceExample.args = {\n huriPayload: AggregatePricePointer,\n plugins: [CryptoAssetRenderPlugin],\n}\n\nconst UniswapPairsExample = Template.bind({})\nUniswapPairsExample.args = {\n huriPayload: UniswapPairPointer,\n plugins: [UniswapPairsRenderPlugin],\n}\n\nexport { AggregatePriceExample, UniswapPairsExample }\n"],"mappings":"AACA,SAAS,+BAA+B;AACxC,SAAS,gCAAgC;AAEzC,SAAS,UAAU,yBAAyB;AAE5C,MAAM,wBAAwB;AAC9B,MAAM,qBAAqB;AAG3B,IAAO,0CAAQ;AAAA,EACb,GAAG;AAAA,EACH,OAAO;AACT;AAEA,MAAM,wBAAwB,SAAS,KAAK,CAAC,CAAC;AAC9C,sBAAsB,OAAO;AAAA,EAC3B,aAAa;AAAA,EACb,SAAS,CAAC,uBAAuB;AACnC;AAEA,MAAM,sBAAsB,SAAS,KAAK,CAAC,CAAC;AAC5C,oBAAoB,OAAO;AAAA,EACzB,aAAa;AAAA,EACb,SAAS,CAAC,wBAAwB;AACpC;","names":[]}
|
@@ -1,85 +0,0 @@
|
|
1
|
-
import { CryptoAssetRenderPlugin } from "@xyo-network/react-aggregate-price-plugin";
|
2
|
-
import { UniswapPairsRenderPlugin } from "@xyo-network/react-crypto-market-uniswap-plugin";
|
3
|
-
import { createPayloadRenderPlugin } from "@xyo-network/react-payload-plugin";
|
4
|
-
import { payloadData } from "./storyPayload";
|
5
|
-
import { Template, xyoEmbedStoryBase } from "./storyShared";
|
6
|
-
const AggregatePricePointer = "https://api.archivist.xyo.network/1948bf4eedf90ee2b8a1f63216b7c6b3b18d7bc2834330d85bcd6ab3d6428a20";
|
7
|
-
var XyoEmbedPlugin_states_stories_default = {
|
8
|
-
...xyoEmbedStoryBase,
|
9
|
-
title: "embed/EmbedPlugin/states"
|
10
|
-
};
|
11
|
-
const testPlugin = createPayloadRenderPlugin({
|
12
|
-
canRender: () => true,
|
13
|
-
name: "Test Plugin"
|
14
|
-
});
|
15
|
-
const testPlugin1 = createPayloadRenderPlugin({
|
16
|
-
canRender: () => true,
|
17
|
-
name: "Test1 Plugin"
|
18
|
-
});
|
19
|
-
const failingPlugin = createPayloadRenderPlugin({
|
20
|
-
canRender: () => true,
|
21
|
-
components: {
|
22
|
-
box: {
|
23
|
-
details: () => {
|
24
|
-
throw Error("testing Error Boundary");
|
25
|
-
}
|
26
|
-
}
|
27
|
-
},
|
28
|
-
name: "Failing Plugin"
|
29
|
-
});
|
30
|
-
const Default = Template.bind({});
|
31
|
-
Default.args = {
|
32
|
-
huri: AggregatePricePointer,
|
33
|
-
plugins: [testPlugin, testPlugin1]
|
34
|
-
};
|
35
|
-
const ApiError = Template.bind({});
|
36
|
-
ApiError.args = {
|
37
|
-
huriPayload: "https://api.archivist.xyo.network/9663b2f80395a9e7e95948fdd5988b778a4dcc047202bf67e855ff6cd459b8c",
|
38
|
-
plugins: [UniswapPairsRenderPlugin]
|
39
|
-
};
|
40
|
-
const ThrownError = Template.bind({});
|
41
|
-
ThrownError.args = {
|
42
|
-
huriPayload: AggregatePricePointer,
|
43
|
-
plugins: [failingPlugin]
|
44
|
-
};
|
45
|
-
const HiddenElements = Template.bind({});
|
46
|
-
HiddenElements.args = {
|
47
|
-
hideElementsConfig: {
|
48
|
-
hideAvatar: true,
|
49
|
-
hideCardActions: true,
|
50
|
-
hideCardHeader: true,
|
51
|
-
hideRefreshButton: true,
|
52
|
-
hideTimestamp: true,
|
53
|
-
hideTitle: true
|
54
|
-
},
|
55
|
-
huriPayload: AggregatePricePointer,
|
56
|
-
plugins: [CryptoAssetRenderPlugin]
|
57
|
-
};
|
58
|
-
const WithPassedPayload = Template.bind({});
|
59
|
-
WithPassedPayload.args = {
|
60
|
-
huriPayload: payloadData,
|
61
|
-
plugins: [CryptoAssetRenderPlugin]
|
62
|
-
};
|
63
|
-
const WithSetBusyExternally = Template.bind({});
|
64
|
-
WithSetBusyExternally.args = {
|
65
|
-
busy: true,
|
66
|
-
huriPayload: payloadData,
|
67
|
-
plugins: [CryptoAssetRenderPlugin]
|
68
|
-
};
|
69
|
-
const WithOnRefresh = Template.bind({});
|
70
|
-
WithOnRefresh.args = {
|
71
|
-
huriPayload: payloadData,
|
72
|
-
onRefresh: () => console.log("refreshed"),
|
73
|
-
plugins: [CryptoAssetRenderPlugin]
|
74
|
-
};
|
75
|
-
export {
|
76
|
-
ApiError,
|
77
|
-
Default,
|
78
|
-
HiddenElements,
|
79
|
-
ThrownError,
|
80
|
-
WithOnRefresh,
|
81
|
-
WithPassedPayload,
|
82
|
-
WithSetBusyExternally,
|
83
|
-
XyoEmbedPlugin_states_stories_default as default
|
84
|
-
};
|
85
|
-
//# sourceMappingURL=XyoEmbedPlugin.states.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.tsx"],"sourcesContent":["import { Meta } from '@storybook/react'\nimport { CryptoAssetRenderPlugin } from '@xyo-network/react-aggregate-price-plugin'\nimport { UniswapPairsRenderPlugin } from '@xyo-network/react-crypto-market-uniswap-plugin'\nimport { createPayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\n\nimport { payloadData } from './storyPayload'\nimport { Template, xyoEmbedStoryBase } from './storyShared'\n\nconst AggregatePricePointer = 'https://api.archivist.xyo.network/1948bf4eedf90ee2b8a1f63216b7c6b3b18d7bc2834330d85bcd6ab3d6428a20'\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n ...xyoEmbedStoryBase,\n title: 'embed/EmbedPlugin/states',\n} as Meta\n\nconst testPlugin = createPayloadRenderPlugin({\n canRender: () => true,\n name: 'Test Plugin',\n})\n\nconst testPlugin1 = createPayloadRenderPlugin({\n canRender: () => true,\n name: 'Test1 Plugin',\n})\n\nconst failingPlugin = createPayloadRenderPlugin({\n canRender: () => true,\n components: {\n box: {\n details: () => {\n throw Error('testing Error Boundary')\n },\n },\n },\n name: 'Failing Plugin',\n})\n\nconst Default = Template.bind({})\nDefault.args = {\n huri: AggregatePricePointer,\n plugins: [testPlugin, testPlugin1],\n}\n\nconst ApiError = Template.bind({})\nApiError.args = {\n huriPayload: 'https://api.archivist.xyo.network/9663b2f80395a9e7e95948fdd5988b778a4dcc047202bf67e855ff6cd459b8c',\n plugins: [UniswapPairsRenderPlugin],\n}\n\nconst ThrownError = Template.bind({})\nThrownError.args = {\n huriPayload: AggregatePricePointer,\n plugins: [failingPlugin],\n}\n\nconst HiddenElements = Template.bind({})\nHiddenElements.args = {\n hideElementsConfig: {\n hideAvatar: true,\n hideCardActions: true,\n hideCardHeader: true,\n hideRefreshButton: true,\n hideTimestamp: true,\n hideTitle: true,\n },\n huriPayload: AggregatePricePointer,\n plugins: [CryptoAssetRenderPlugin],\n}\n\nconst WithPassedPayload = Template.bind({})\nWithPassedPayload.args = {\n huriPayload: payloadData,\n plugins: [CryptoAssetRenderPlugin],\n}\n\nconst WithSetBusyExternally = Template.bind({})\nWithSetBusyExternally.args = {\n busy: true,\n huriPayload: payloadData,\n plugins: [CryptoAssetRenderPlugin],\n}\n\nconst WithOnRefresh = Template.bind({})\nWithOnRefresh.args = {\n huriPayload: payloadData,\n onRefresh: () => console.log('refreshed'),\n plugins: [CryptoAssetRenderPlugin],\n}\n\nexport { ApiError, Default, HiddenElements, ThrownError, WithOnRefresh, WithPassedPayload, WithSetBusyExternally }\n"],"mappings":"AACA,SAAS,+BAA+B;AACxC,SAAS,gCAAgC;AACzC,SAAS,iCAAiC;AAE1C,SAAS,mBAAmB;AAC5B,SAAS,UAAU,yBAAyB;AAE5C,MAAM,wBAAwB;AAG9B,IAAO,wCAAQ;AAAA,EACb,GAAG;AAAA,EACH,OAAO;AACT;AAEA,MAAM,aAAa,0BAA0B;AAAA,EAC3C,WAAW,MAAM;AAAA,EACjB,MAAM;AACR,CAAC;AAED,MAAM,cAAc,0BAA0B;AAAA,EAC5C,WAAW,MAAM;AAAA,EACjB,MAAM;AACR,CAAC;AAED,MAAM,gBAAgB,0BAA0B;AAAA,EAC9C,WAAW,MAAM;AAAA,EACjB,YAAY;AAAA,IACV,KAAK;AAAA,MACH,SAAS,MAAM;AACb,cAAM,MAAM,wBAAwB;AAAA,MACtC;AAAA,IACF;AAAA,EACF;AAAA,EACA,MAAM;AACR,CAAC;AAED,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,OAAO;AAAA,EACb,MAAM;AAAA,EACN,SAAS,CAAC,YAAY,WAAW;AACnC;AAEA,MAAM,WAAW,SAAS,KAAK,CAAC,CAAC;AACjC,SAAS,OAAO;AAAA,EACd,aAAa;AAAA,EACb,SAAS,CAAC,wBAAwB;AACpC;AAEA,MAAM,cAAc,SAAS,KAAK,CAAC,CAAC;AACpC,YAAY,OAAO;AAAA,EACjB,aAAa;AAAA,EACb,SAAS,CAAC,aAAa;AACzB;AAEA,MAAM,iBAAiB,SAAS,KAAK,CAAC,CAAC;AACvC,eAAe,OAAO;AAAA,EACpB,oBAAoB;AAAA,IAClB,YAAY;AAAA,IACZ,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,mBAAmB;AAAA,IACnB,eAAe;AAAA,IACf,WAAW;AAAA,EACb;AAAA,EACA,aAAa;AAAA,EACb,SAAS,CAAC,uBAAuB;AACnC;AAEA,MAAM,oBAAoB,SAAS,KAAK,CAAC,CAAC;AAC1C,kBAAkB,OAAO;AAAA,EACvB,aAAa;AAAA,EACb,SAAS,CAAC,uBAAuB;AACnC;AAEA,MAAM,wBAAwB,SAAS,KAAK,CAAC,CAAC;AAC9C,sBAAsB,OAAO;AAAA,EAC3B,MAAM;AAAA,EACN,aAAa;AAAA,EACb,SAAS,CAAC,uBAAuB;AACnC;AAEA,MAAM,gBAAgB,SAAS,KAAK,CAAC,CAAC;AACtC,cAAc,OAAO;AAAA,EACnB,aAAa;AAAA,EACb,WAAW,MAAM,QAAQ,IAAI,WAAW;AAAA,EACxC,SAAS,CAAC,uBAAuB;AACnC;","names":[]}
|
@@ -1,53 +0,0 @@
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
-
import { Typography } from "@mui/material";
|
3
|
-
import { EmbedPluginContext } from "../EmbedPluginContext";
|
4
|
-
import { RefreshPayloadProvider } from "../RefreshPayloadContext";
|
5
|
-
import { ResolvePayloadContext } from "../ResolvePayloadContext";
|
6
|
-
import { ValidatePayloadProvider } from "./Provider";
|
7
|
-
import { useValidatePayload } from "./use";
|
8
|
-
const EmbedDecorator = (Story, { args }) => {
|
9
|
-
const { xyoEmbedPluginContext, resolvePayloadContext, ...props } = args;
|
10
|
-
console.log(resolvePayloadContext);
|
11
|
-
return /* @__PURE__ */ jsx(RefreshPayloadProvider, { children: /* @__PURE__ */ jsx(ResolvePayloadContext.Provider, { value: resolvePayloadContext, children: /* @__PURE__ */ jsx(EmbedPluginContext.Provider, { value: xyoEmbedPluginContext, children: /* @__PURE__ */ jsx(Story, { ...props }) }) }) });
|
12
|
-
};
|
13
|
-
const StorybookEntry = {
|
14
|
-
component: ValidatePayloadProvider,
|
15
|
-
decorators: [EmbedDecorator],
|
16
|
-
title: "embed/ValidatePayloadProvider"
|
17
|
-
};
|
18
|
-
const ValidatePayloadState = () => {
|
19
|
-
const state = useValidatePayload();
|
20
|
-
return /* @__PURE__ */ jsx("pre", { children: JSON.stringify(state, null, 2) });
|
21
|
-
};
|
22
|
-
const Template = (props) => {
|
23
|
-
return /* @__PURE__ */ jsxs(ValidatePayloadProvider, { ...props, children: [
|
24
|
-
/* @__PURE__ */ jsx(Typography, { children: "State:" }),
|
25
|
-
/* @__PURE__ */ jsx(ValidatePayloadState, {}),
|
26
|
-
/* @__PURE__ */ jsx(Typography, { children: "Children" })
|
27
|
-
] });
|
28
|
-
};
|
29
|
-
const InvalidPayload = { schema: "network.xyo.schema" };
|
30
|
-
const ValidPayload = { definition: { $id: "test.schema" }, schema: "network.xyo.schema" };
|
31
|
-
const stubProviderDefaultValue = { provided: true };
|
32
|
-
const Default = Template.bind({});
|
33
|
-
Default.args = { resolvePayloadContext: stubProviderDefaultValue, xyoEmbedPluginContext: stubProviderDefaultValue };
|
34
|
-
const ValidationSucceeded = Template.bind({});
|
35
|
-
ValidationSucceeded.args = {
|
36
|
-
enabled: true,
|
37
|
-
resolvePayloadContext: { payload: ValidPayload, ...stubProviderDefaultValue },
|
38
|
-
xyoEmbedPluginContext: stubProviderDefaultValue
|
39
|
-
};
|
40
|
-
const ValidationFailed = Template.bind({});
|
41
|
-
ValidationFailed.args = {
|
42
|
-
enabled: true,
|
43
|
-
resolvePayloadContext: { payload: InvalidPayload, ...stubProviderDefaultValue },
|
44
|
-
xyoEmbedPluginContext: stubProviderDefaultValue
|
45
|
-
};
|
46
|
-
var Provider_stories_default = StorybookEntry;
|
47
|
-
export {
|
48
|
-
Default,
|
49
|
-
ValidationFailed,
|
50
|
-
ValidationSucceeded,
|
51
|
-
Provider_stories_default as default
|
52
|
-
};
|
53
|
-
//# sourceMappingURL=Provider.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/contexts/ValidatePayloadContext/Provider.stories.tsx"],"sourcesContent":["import { Typography } from '@mui/material'\nimport { Decorator, Meta, StoryFn } from '@storybook/react'\n\nimport { EmbedPluginContext, EmbedPluginState } from '../EmbedPluginContext'\nimport { RefreshPayloadProvider } from '../RefreshPayloadContext'\nimport { ResolvePayloadContext, ResolvePayloadState } from '../ResolvePayloadContext'\nimport { ValidatePayloadProvider, ValidatePayloadProviderProps } from './Provider'\nimport { useValidatePayload } from './use'\n\nconst EmbedDecorator: Decorator<ValidatePayloadProviderPropsEx> = (Story, { args }) => {\n const { xyoEmbedPluginContext, resolvePayloadContext, ...props } = args\n console.log(resolvePayloadContext)\n return (\n <RefreshPayloadProvider>\n <ResolvePayloadContext.Provider value={resolvePayloadContext}>\n <EmbedPluginContext.Provider value={xyoEmbedPluginContext}>\n <Story {...props} />\n </EmbedPluginContext.Provider>\n </ResolvePayloadContext.Provider>\n </RefreshPayloadProvider>\n )\n}\n\nconst StorybookEntry: Meta<ValidatePayloadProviderPropsEx> = {\n component: ValidatePayloadProvider,\n decorators: [EmbedDecorator],\n title: 'embed/ValidatePayloadProvider',\n}\n\nconst ValidatePayloadState = () => {\n const state = useValidatePayload()\n return <pre>{JSON.stringify(state, null, 2)}</pre>\n}\n\ninterface ValidatePayloadProviderPropsEx extends ValidatePayloadProviderProps {\n resolvePayloadContext: ResolvePayloadState\n xyoEmbedPluginContext: EmbedPluginState\n}\n\nconst Template: StoryFn<React.FC<ValidatePayloadProviderPropsEx>> = (props) => {\n return (\n <ValidatePayloadProvider {...props}>\n <Typography>State:</Typography>\n <ValidatePayloadState />\n <Typography>Children</Typography>\n </ValidatePayloadProvider>\n )\n}\n\nconst InvalidPayload = { schema: 'network.xyo.schema' }\nconst ValidPayload = { definition: { $id: 'test.schema' }, schema: 'network.xyo.schema' }\nconst stubProviderDefaultValue = { provided: true }\n\nconst Default = Template.bind({})\nDefault.args = { resolvePayloadContext: stubProviderDefaultValue, xyoEmbedPluginContext: stubProviderDefaultValue }\n\nconst ValidationSucceeded = Template.bind({})\nValidationSucceeded.args = {\n enabled: true,\n resolvePayloadContext: { payload: ValidPayload, ...stubProviderDefaultValue },\n xyoEmbedPluginContext: stubProviderDefaultValue,\n}\n\nconst ValidationFailed = Template.bind({})\nValidationFailed.args = {\n enabled: true,\n resolvePayloadContext: { payload: InvalidPayload, ...stubProviderDefaultValue },\n xyoEmbedPluginContext: stubProviderDefaultValue,\n}\n\nexport { Default, ValidationFailed, ValidationSucceeded }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":"AAgBU,cAyBN,YAzBM;AAhBV,SAAS,kBAAkB;AAG3B,SAAS,0BAA4C;AACrD,SAAS,8BAA8B;AACvC,SAAS,6BAAkD;AAC3D,SAAS,+BAA6D;AACtE,SAAS,0BAA0B;AAEnC,MAAM,iBAA4D,CAAC,OAAO,EAAE,KAAK,MAAM;AACrF,QAAM,EAAE,uBAAuB,uBAAuB,GAAG,MAAM,IAAI;AACnE,UAAQ,IAAI,qBAAqB;AACjC,SACE,oBAAC,0BACC,8BAAC,sBAAsB,UAAtB,EAA+B,OAAO,uBACrC,8BAAC,mBAAmB,UAAnB,EAA4B,OAAO,uBAClC,8BAAC,SAAO,GAAG,OAAO,GACpB,GACF,GACF;AAEJ;AAEA,MAAM,iBAAuD;AAAA,EAC3D,WAAW;AAAA,EACX,YAAY,CAAC,cAAc;AAAA,EAC3B,OAAO;AACT;AAEA,MAAM,uBAAuB,MAAM;AACjC,QAAM,QAAQ,mBAAmB;AACjC,SAAO,oBAAC,SAAK,eAAK,UAAU,OAAO,MAAM,CAAC,GAAE;AAC9C;AAOA,MAAM,WAA8D,CAAC,UAAU;AAC7E,SACE,qBAAC,2BAAyB,GAAG,OAC3B;AAAA,wBAAC,cAAW,oBAAM;AAAA,IAClB,oBAAC,wBAAqB;AAAA,IACtB,oBAAC,cAAW,sBAAQ;AAAA,KACtB;AAEJ;AAEA,MAAM,iBAAiB,EAAE,QAAQ,qBAAqB;AACtD,MAAM,eAAe,EAAE,YAAY,EAAE,KAAK,cAAc,GAAG,QAAQ,qBAAqB;AACxF,MAAM,2BAA2B,EAAE,UAAU,KAAK;AAElD,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,OAAO,EAAE,uBAAuB,0BAA0B,uBAAuB,yBAAyB;AAElH,MAAM,sBAAsB,SAAS,KAAK,CAAC,CAAC;AAC5C,oBAAoB,OAAO;AAAA,EACzB,SAAS;AAAA,EACT,uBAAuB,EAAE,SAAS,cAAc,GAAG,yBAAyB;AAAA,EAC5E,uBAAuB;AACzB;AAEA,MAAM,mBAAmB,SAAS,KAAK,CAAC,CAAC;AACzC,iBAAiB,OAAO;AAAA,EACtB,SAAS;AAAA,EACT,uBAAuB,EAAE,SAAS,gBAAgB,GAAG,yBAAyB;AAAA,EAC9E,uBAAuB;AACzB;AAKA,IAAO,2BAAQ;","names":[]}
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
2
|
-
import { ErrorBoundary, ListModeProvider } from "@xyo-network/react-shared";
|
3
|
-
import { EmbedPluginProvider, RefreshPayloadProvider, ResolvePayloadProvider, ValidatePayloadProvider } from "../contexts";
|
4
|
-
import { EmbedResolver } from "./EmbedResolver";
|
5
|
-
import { ValidatePayloadAlert, ValidatePluginsAlert } from "./validation-alerts";
|
6
|
-
const EmbedPluginInner = ({
|
7
|
-
validateSchema,
|
8
|
-
plugins = [],
|
9
|
-
huriPayload,
|
10
|
-
refreshTitle = "",
|
11
|
-
timestampLabel = "Data From",
|
12
|
-
hideElementsConfig,
|
13
|
-
embedPluginConfig,
|
14
|
-
onRefresh,
|
15
|
-
children
|
16
|
-
}) => {
|
17
|
-
return /* @__PURE__ */ jsx(ErrorBoundary, { children: /* @__PURE__ */ jsx(
|
18
|
-
EmbedPluginProvider,
|
19
|
-
{
|
20
|
-
refreshTitle,
|
21
|
-
timestampLabel,
|
22
|
-
hideElementsConfig,
|
23
|
-
plugins,
|
24
|
-
embedPluginConfig,
|
25
|
-
children: /* @__PURE__ */ jsx(WithResolvers, { onRefresh, huriPayload, children: /* @__PURE__ */ jsx(WithValidators, { validateSchema, children: /* @__PURE__ */ jsx(ListModeProvider, { defaultListMode: embedPluginConfig?.listMode, children }) }) })
|
26
|
-
}
|
27
|
-
) });
|
28
|
-
};
|
29
|
-
const WithResolvers = ({ children, onRefresh, huriPayload }) => {
|
30
|
-
return /* @__PURE__ */ jsx(RefreshPayloadProvider, { onRefresh, children: /* @__PURE__ */ jsx(ResolvePayloadProvider, { huriPayload, children: /* @__PURE__ */ jsx(EmbedResolver, { children }) }) });
|
31
|
-
};
|
32
|
-
const WithValidators = ({ children, validateSchema }) => {
|
33
|
-
return /* @__PURE__ */ jsx(ValidatePayloadProvider, { enabled: validateSchema, children: /* @__PURE__ */ jsx(ValidatePluginsAlert, { children: /* @__PURE__ */ jsx(ValidatePayloadAlert, { children }) }) });
|
34
|
-
};
|
35
|
-
export {
|
36
|
-
EmbedPluginInner
|
37
|
-
};
|
38
|
-
//# sourceMappingURL=EmbedPlugin.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/EmbedPlugin.tsx"],"sourcesContent":["import { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { ErrorBoundary, ListModeProvider } from '@xyo-network/react-shared'\n\nimport { EmbedPluginProvider, RefreshPayloadProvider, ResolvePayloadProvider, ValidatePayloadProvider } from '../contexts'\nimport { EmbedPluginProps } from '../types'\nimport { EmbedResolver } from './EmbedResolver'\nimport { ValidatePayloadAlert, ValidatePluginsAlert } from './validation-alerts'\n\nexport const EmbedPluginInner: React.FC<WithChildren<EmbedPluginProps>> = ({\n validateSchema,\n plugins = [],\n huriPayload,\n refreshTitle = '',\n timestampLabel = 'Data From',\n hideElementsConfig,\n embedPluginConfig,\n onRefresh,\n children,\n}) => {\n return (\n <ErrorBoundary>\n <EmbedPluginProvider\n refreshTitle={refreshTitle}\n timestampLabel={timestampLabel}\n hideElementsConfig={hideElementsConfig}\n plugins={plugins}\n embedPluginConfig={embedPluginConfig}\n >\n <WithResolvers onRefresh={onRefresh} huriPayload={huriPayload}>\n <WithValidators validateSchema={validateSchema}>\n <ListModeProvider defaultListMode={embedPluginConfig?.listMode}>{children}</ListModeProvider>\n </WithValidators>\n </WithResolvers>\n </EmbedPluginProvider>\n </ErrorBoundary>\n )\n}\n\ninterface WithResolversProps extends Pick<EmbedPluginProps, 'onRefresh' | 'huriPayload'>, FlexBoxProps {}\n\nconst WithResolvers: React.FC<WithChildren<WithResolversProps>> = ({ children, onRefresh, huriPayload }) => {\n return (\n <RefreshPayloadProvider onRefresh={onRefresh}>\n <ResolvePayloadProvider huriPayload={huriPayload}>\n <EmbedResolver>{children}</EmbedResolver>\n </ResolvePayloadProvider>\n </RefreshPayloadProvider>\n )\n}\n\nconst WithValidators: React.FC<WithChildren<{ validateSchema?: boolean }>> = ({ children, validateSchema }) => {\n return (\n <ValidatePayloadProvider enabled={validateSchema}>\n <ValidatePluginsAlert>\n <ValidatePayloadAlert>{children}</ValidatePayloadAlert>\n </ValidatePluginsAlert>\n </ValidatePayloadProvider>\n )\n}\n"],"mappings":"AA+BY;AA7BZ,SAAS,eAAe,wBAAwB;AAEhD,SAAS,qBAAqB,wBAAwB,wBAAwB,+BAA+B;AAE7G,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB,4BAA4B;AAEpD,MAAM,mBAA6D,CAAC;AAAA,EACzE;AAAA,EACA,UAAU,CAAC;AAAA,EACX;AAAA,EACA,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,SACE,oBAAC,iBACC;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MAEA,8BAAC,iBAAc,WAAsB,aACnC,8BAAC,kBAAe,gBACd,8BAAC,oBAAiB,iBAAiB,mBAAmB,UAAW,UAAS,GAC5E,GACF;AAAA;AAAA,EACF,GACF;AAEJ;AAIA,MAAM,gBAA4D,CAAC,EAAE,UAAU,WAAW,YAAY,MAAM;AAC1G,SACE,oBAAC,0BAAuB,WACtB,8BAAC,0BAAuB,aACtB,8BAAC,iBAAe,UAAS,GAC3B,GACF;AAEJ;AAEA,MAAM,iBAAuE,CAAC,EAAE,UAAU,eAAe,MAAM;AAC7G,SACE,oBAAC,2BAAwB,SAAS,gBAChC,8BAAC,wBACC,8BAAC,wBAAsB,UAAS,GAClC,GACF;AAEJ;","names":[]}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
2
|
-
import { LoadResult } from "@xyo-network/react-shared";
|
3
|
-
import { useResolvePayload } from "../contexts";
|
4
|
-
const EmbedResolver = ({ children }) => {
|
5
|
-
const { payload, notFound, huriError } = useResolvePayload();
|
6
|
-
return /* @__PURE__ */ jsx(LoadResult, { searchResult: payload, notFound: !!notFound, error: !!huriError, children });
|
7
|
-
};
|
8
|
-
export {
|
9
|
-
EmbedResolver
|
10
|
-
};
|
11
|
-
//# sourceMappingURL=EmbedResolver.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/EmbedResolver.tsx"],"sourcesContent":["import { WithChildren } from '@xylabs/react-shared'\nimport { LoadResult } from '@xyo-network/react-shared'\n\nimport { useResolvePayload } from '../contexts'\n\nexport const EmbedResolver: React.FC<WithChildren> = ({ children }) => {\n const { payload, notFound, huriError } = useResolvePayload()\n\n return (\n <LoadResult searchResult={payload} notFound={!!notFound} error={!!huriError}>\n {children}\n </LoadResult>\n )\n}\n"],"mappings":"AASI;AARJ,SAAS,kBAAkB;AAE3B,SAAS,yBAAyB;AAE3B,MAAM,gBAAwC,CAAC,EAAE,SAAS,MAAM;AACrE,QAAM,EAAE,SAAS,UAAU,UAAU,IAAI,kBAAkB;AAE3D,SACE,oBAAC,cAAW,cAAc,SAAS,UAAU,CAAC,CAAC,UAAU,OAAO,CAAC,CAAC,WAC/D,UACH;AAEJ;","names":[]}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
-
import { FormControl, InputLabel } from "@mui/material";
|
3
|
-
const EmbedFormControl = ({ formId, formLabel, children, ...props }) => {
|
4
|
-
return /* @__PURE__ */ jsxs(FormControl, { ...props, children: [
|
5
|
-
/* @__PURE__ */ jsx(InputLabel, { id: formId, children: formLabel }),
|
6
|
-
children
|
7
|
-
] });
|
8
|
-
};
|
9
|
-
export {
|
10
|
-
EmbedFormControl
|
11
|
-
};
|
12
|
-
//# sourceMappingURL=EmbedFormControl.mjs.map
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
-
import { MenuItem, Select } from "@mui/material";
|
3
|
-
import { useListMode } from "@xyo-network/react-shared";
|
4
|
-
import { EmbedFormControl } from "./EmbedFormControl";
|
5
|
-
const listModeSelectId = "listmode-select-id";
|
6
|
-
const listModeSelectLabel = "List Mode";
|
7
|
-
const ListModeSelect = (props) => {
|
8
|
-
const { listMode, setListMode } = useListMode();
|
9
|
-
return /* @__PURE__ */ jsxs(
|
10
|
-
Select,
|
11
|
-
{
|
12
|
-
value: listMode ?? "default",
|
13
|
-
onChange: (event) => {
|
14
|
-
setListMode?.(event.target.value);
|
15
|
-
},
|
16
|
-
...props,
|
17
|
-
children: [
|
18
|
-
/* @__PURE__ */ jsx(MenuItem, { value: "default", children: "Default" }, "default"),
|
19
|
-
/* @__PURE__ */ jsx(MenuItem, { value: "table", children: "Table" }, "table"),
|
20
|
-
/* @__PURE__ */ jsx(MenuItem, { value: "grid", children: "Grid" }, "grid")
|
21
|
-
]
|
22
|
-
}
|
23
|
-
);
|
24
|
-
};
|
25
|
-
const ListModeSelectFormControl = (props) => {
|
26
|
-
return /* @__PURE__ */ jsx(EmbedFormControl, { formId: listModeSelectId, formLabel: listModeSelectLabel, children: /* @__PURE__ */ jsx(ListModeSelect, { size: "small", label: listModeSelectLabel, labelId: listModeSelectId, ...props }) });
|
27
|
-
};
|
28
|
-
export {
|
29
|
-
ListModeSelect,
|
30
|
-
ListModeSelectFormControl
|
31
|
-
};
|
32
|
-
//# sourceMappingURL=ListModeSelect.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/controls/ListModeSelect.tsx"],"sourcesContent":["import { MenuItem, Select, SelectProps } from '@mui/material'\nimport { ListMode, useListMode } from '@xyo-network/react-shared'\n\nimport { EmbedFormControl } from './EmbedFormControl'\n\nconst listModeSelectId = 'listmode-select-id'\nconst listModeSelectLabel = 'List Mode'\n\nexport const ListModeSelect: React.FC<SelectProps<ListMode>> = (props) => {\n const { listMode, setListMode } = useListMode()\n\n return (\n <Select<ListMode>\n value={(listMode ?? 'default') as ListMode}\n onChange={(event) => {\n setListMode?.(event.target.value as ListMode)\n }}\n {...props}\n >\n <MenuItem key=\"default\" value=\"default\">\n Default\n </MenuItem>\n <MenuItem key=\"table\" value=\"table\">\n Table\n </MenuItem>\n <MenuItem key=\"grid\" value=\"grid\">\n Grid\n </MenuItem>\n </Select>\n )\n}\n\nexport const ListModeSelectFormControl: React.FC<SelectProps<ListMode>> = (props) => {\n return (\n <EmbedFormControl formId={listModeSelectId} formLabel={listModeSelectLabel}>\n <ListModeSelect size=\"small\" label={listModeSelectLabel} labelId={listModeSelectId} {...props} />\n </EmbedFormControl>\n )\n}\n"],"mappings":"AAYI,SAOE,KAPF;AAZJ,SAAS,UAAU,cAA2B;AAC9C,SAAmB,mBAAmB;AAEtC,SAAS,wBAAwB;AAEjC,MAAM,mBAAmB;AACzB,MAAM,sBAAsB;AAErB,MAAM,iBAAkD,CAAC,UAAU;AACxE,QAAM,EAAE,UAAU,YAAY,IAAI,YAAY;AAE9C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAQ,YAAY;AAAA,MACpB,UAAU,CAAC,UAAU;AACnB,sBAAc,MAAM,OAAO,KAAiB;AAAA,MAC9C;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,4BAAC,YAAuB,OAAM,WAAU,uBAA1B,SAEd;AAAA,QACA,oBAAC,YAAqB,OAAM,SAAQ,qBAAtB,OAEd;AAAA,QACA,oBAAC,YAAoB,OAAM,QAAO,oBAApB,MAEd;AAAA;AAAA;AAAA,EACF;AAEJ;AAEO,MAAM,4BAA6D,CAAC,UAAU;AACnF,SACE,oBAAC,oBAAiB,QAAQ,kBAAkB,WAAW,qBACrD,8BAAC,kBAAe,MAAK,SAAQ,OAAO,qBAAqB,SAAS,kBAAmB,GAAG,OAAO,GACjG;AAEJ;","names":[]}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
2
|
-
import { MenuItem, Select } from "@mui/material";
|
3
|
-
import { useEmbedPluginState } from "../../contexts";
|
4
|
-
import { EmbedFormControl } from "./EmbedFormControl";
|
5
|
-
const renderSelectId = "render-select-id";
|
6
|
-
const renderSelectLabel = "Renderer";
|
7
|
-
const EmbedRenderSelect = (props) => {
|
8
|
-
const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState();
|
9
|
-
return /* @__PURE__ */ jsx(EmbedFormControl, { formId: renderSelectId, formLabel: renderSelectLabel, children: /* @__PURE__ */ jsx(Select, { size: "small", value: activePlugin?.name, ...props, children: plugins?.map((plugin) => /* @__PURE__ */ jsx(MenuItem, { value: plugin.name, onClick: () => setActivePlugin?.(plugin), children: plugin.name }, plugin.name)) }) });
|
10
|
-
};
|
11
|
-
export {
|
12
|
-
EmbedRenderSelect
|
13
|
-
};
|
14
|
-
//# sourceMappingURL=RenderSelect.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/controls/RenderSelect.tsx"],"sourcesContent":["import { MenuItem, Select, SelectProps } from '@mui/material'\n\nimport { useEmbedPluginState } from '../../contexts'\nimport { EmbedFormControl } from './EmbedFormControl'\n\nconst renderSelectId = 'render-select-id'\nconst renderSelectLabel = 'Renderer'\n\nexport const EmbedRenderSelect: React.FC<SelectProps> = (props) => {\n const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState()\n return (\n <EmbedFormControl formId={renderSelectId} formLabel={renderSelectLabel}>\n <Select size=\"small\" value={activePlugin?.name} {...props}>\n {plugins?.map((plugin) => (\n <MenuItem value={plugin.name} key={plugin.name} onClick={() => setActivePlugin?.(plugin)}>\n {plugin.name}\n </MenuItem>\n ))}\n </Select>\n </EmbedFormControl>\n )\n}\n"],"mappings":"AAcU;AAdV,SAAS,UAAU,cAA2B;AAE9C,SAAS,2BAA2B;AACpC,SAAS,wBAAwB;AAEjC,MAAM,iBAAiB;AACvB,MAAM,oBAAoB;AAEnB,MAAM,oBAA2C,CAAC,UAAU;AACjE,QAAM,EAAE,cAAc,iBAAiB,QAAQ,IAAI,oBAAoB;AACvE,SACE,oBAAC,oBAAiB,QAAQ,gBAAgB,WAAW,mBACnD,8BAAC,UAAO,MAAK,SAAQ,OAAO,cAAc,MAAO,GAAG,OACjD,mBAAS,IAAI,CAAC,WACb,oBAAC,YAAS,OAAO,OAAO,MAAwB,SAAS,MAAM,kBAAkB,MAAM,GACpF,iBAAO,QADyB,OAAO,IAE1C,CACD,GACH,GACF;AAEJ;","names":[]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/controls/index.ts"],"sourcesContent":["export * from './EmbedFormControl'\nexport * from './ListModeSelect'\nexport * from './RenderSelect'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
2
|
-
import { useTheme } from "@mui/material";
|
3
|
-
import { FlexCol } from "@xylabs/react-flexbox";
|
4
|
-
import { LoadResult } from "@xyo-network/react-shared";
|
5
|
-
import { useRefreshPayload, useResolvePayload } from "../../contexts";
|
6
|
-
import { EmbedCardApiErrorRenderer } from "./error-handling";
|
7
|
-
const EmbedCardResolverFlexBox = ({ children, ...props }) => {
|
8
|
-
const { payload, notFound, huriError } = useResolvePayload();
|
9
|
-
const { refreshPayload } = useRefreshPayload();
|
10
|
-
const theme = useTheme();
|
11
|
-
return /* @__PURE__ */ jsx(LoadResult, { searchResult: payload, notFound: !!notFound, error: !!huriError, children: /* @__PURE__ */ jsx(EmbedCardApiErrorRenderer, { xyoError: huriError, children: /* @__PURE__ */ jsx(
|
12
|
-
FlexCol,
|
13
|
-
{
|
14
|
-
id: "embed-outer-wrap",
|
15
|
-
alignItems: "stretch",
|
16
|
-
justifyContent: "start",
|
17
|
-
busy: Boolean(!refreshPayload && payload),
|
18
|
-
busyCircularProps: { style: { alignItems: "start", paddingTop: theme.spacing(2), zIndex: 2 } },
|
19
|
-
...props,
|
20
|
-
children
|
21
|
-
}
|
22
|
-
) }) });
|
23
|
-
};
|
24
|
-
export {
|
25
|
-
EmbedCardResolverFlexBox
|
26
|
-
};
|
27
|
-
//# sourceMappingURL=EmbedCardResolver.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/embed-card/EmbedCardResolver.tsx"],"sourcesContent":["import { useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { LoadResult } from '@xyo-network/react-shared'\n\nimport { useRefreshPayload, useResolvePayload } from '../../contexts'\nimport { EmbedCardApiErrorRenderer } from './error-handling'\n\nexport const EmbedCardResolverFlexBox: React.FC<WithChildren<FlexBoxProps>> = ({ children, ...props }) => {\n const { payload, notFound, huriError } = useResolvePayload()\n const { refreshPayload } = useRefreshPayload()\n const theme = useTheme()\n\n return (\n <LoadResult searchResult={payload} notFound={!!notFound} error={!!huriError}>\n <EmbedCardApiErrorRenderer xyoError={huriError}>\n <FlexCol\n id=\"embed-outer-wrap\"\n alignItems=\"stretch\"\n justifyContent=\"start\"\n busy={Boolean(!refreshPayload && payload)}\n busyCircularProps={{ style: { alignItems: 'start', paddingTop: theme.spacing(2), zIndex: 2 } }}\n {...props}\n >\n {children}\n </FlexCol>\n </EmbedCardApiErrorRenderer>\n </LoadResult>\n )\n}\n"],"mappings":"AAgBQ;AAhBR,SAAS,gBAAgB;AACzB,SAAuB,eAAe;AAEtC,SAAS,kBAAkB;AAE3B,SAAS,mBAAmB,yBAAyB;AACrD,SAAS,iCAAiC;AAEnC,MAAM,2BAAiE,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AACxG,QAAM,EAAE,SAAS,UAAU,UAAU,IAAI,kBAAkB;AAC3D,QAAM,EAAE,eAAe,IAAI,kBAAkB;AAC7C,QAAM,QAAQ,SAAS;AAEvB,SACE,oBAAC,cAAW,cAAc,SAAS,UAAU,CAAC,CAAC,UAAU,OAAO,CAAC,CAAC,WAChE,8BAAC,6BAA0B,UAAU,WACnC;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH,YAAW;AAAA,MACX,gBAAe;AAAA,MACf,MAAM,QAAQ,CAAC,kBAAkB,OAAO;AAAA,MACxC,mBAAmB,EAAE,OAAO,EAAE,YAAY,SAAS,YAAY,MAAM,QAAQ,CAAC,GAAG,QAAQ,EAAE,EAAE;AAAA,MAC5F,GAAG;AAAA,MAEH;AAAA;AAAA,EACH,GACF,GACF;AAEJ;","names":[]}
|
@@ -1,61 +0,0 @@
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
-
import { useTheme } from "@mui/material";
|
3
|
-
import { useRefreshPayload, useResolvePayload } from "../../contexts";
|
4
|
-
import { EmbedPluginInner } from "../EmbedPlugin";
|
5
|
-
import { EmbedPluginCard } from "./card";
|
6
|
-
import { EmbedCardApiErrorRenderer } from "./error-handling";
|
7
|
-
const ApiEmbedPluginCard = ({ children, ...props }) => {
|
8
|
-
const {
|
9
|
-
validateSchema,
|
10
|
-
plugins = [],
|
11
|
-
huriPayload,
|
12
|
-
refreshTitle = "",
|
13
|
-
timestampLabel = "Data From",
|
14
|
-
hideElementsConfig,
|
15
|
-
embedPluginConfig,
|
16
|
-
onRefresh,
|
17
|
-
...busyCardProps
|
18
|
-
} = props;
|
19
|
-
return /* @__PURE__ */ jsxs(
|
20
|
-
EmbedPluginInner,
|
21
|
-
{
|
22
|
-
...{
|
23
|
-
embedPluginConfig,
|
24
|
-
hideElementsConfig,
|
25
|
-
huriPayload,
|
26
|
-
onRefresh,
|
27
|
-
plugins,
|
28
|
-
refreshTitle,
|
29
|
-
timestampLabel,
|
30
|
-
validateSchema
|
31
|
-
},
|
32
|
-
children: [
|
33
|
-
/* @__PURE__ */ jsx(EmbedPluginCardInner, { ...busyCardProps }),
|
34
|
-
children
|
35
|
-
]
|
36
|
-
}
|
37
|
-
);
|
38
|
-
};
|
39
|
-
const EmbedPluginCardInner = (props) => {
|
40
|
-
const { payload, huriError } = useResolvePayload();
|
41
|
-
const { refreshPayload } = useRefreshPayload();
|
42
|
-
const theme = useTheme();
|
43
|
-
return /* @__PURE__ */ jsx(EmbedCardApiErrorRenderer, { xyoError: huriError, children: /* @__PURE__ */ jsx(
|
44
|
-
EmbedPluginCard,
|
45
|
-
{
|
46
|
-
elevation: 3,
|
47
|
-
variant: "elevation",
|
48
|
-
busy: Boolean(!refreshPayload && payload),
|
49
|
-
busyVariantProps: { style: { alignItems: "start", paddingTop: theme.spacing(2), zIndex: 2 } },
|
50
|
-
sx: { position: "relative" },
|
51
|
-
...props
|
52
|
-
}
|
53
|
-
) });
|
54
|
-
};
|
55
|
-
const EmbedPlugin = EmbedPluginCard;
|
56
|
-
export {
|
57
|
-
ApiEmbedPluginCard,
|
58
|
-
EmbedPlugin,
|
59
|
-
EmbedPluginCardInner
|
60
|
-
};
|
61
|
-
//# sourceMappingURL=EmbedPluginCard.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/embed-card/EmbedPluginCard.tsx"],"sourcesContent":["import { useTheme } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\nimport { useRefreshPayload, useResolvePayload } from '../../contexts'\nimport { EmbedPluginProps } from '../../types'\nimport { EmbedPluginInner } from '../EmbedPlugin'\nimport { BusyCardProps, EmbedPluginCard } from './card'\nimport { EmbedCardApiErrorRenderer } from './error-handling'\n\nexport interface EmbedPluginCardProps extends WithChildren, EmbedPluginProps, BusyCardProps {}\n\nexport const ApiEmbedPluginCard: React.FC<EmbedPluginCardProps> = ({ children, ...props }) => {\n const {\n validateSchema,\n plugins = [],\n huriPayload,\n refreshTitle = '',\n timestampLabel = 'Data From',\n hideElementsConfig,\n embedPluginConfig,\n onRefresh,\n ...busyCardProps\n } = props\n\n return (\n <EmbedPluginInner\n {...{\n embedPluginConfig,\n hideElementsConfig,\n huriPayload,\n onRefresh,\n plugins,\n refreshTitle,\n timestampLabel,\n validateSchema,\n }}\n >\n <EmbedPluginCardInner {...busyCardProps} />\n {children}\n </EmbedPluginInner>\n )\n}\n\nexport const EmbedPluginCardInner: React.FC<BusyCardProps> = (props) => {\n const { payload, huriError } = useResolvePayload()\n const { refreshPayload } = useRefreshPayload()\n const theme = useTheme()\n\n return (\n <EmbedCardApiErrorRenderer xyoError={huriError}>\n <EmbedPluginCard\n elevation={3}\n variant=\"elevation\"\n busy={Boolean(!refreshPayload && payload)}\n busyVariantProps={{ style: { alignItems: 'start', paddingTop: theme.spacing(2), zIndex: 2 } }}\n sx={{ position: 'relative' }}\n {...props}\n />\n </EmbedCardApiErrorRenderer>\n )\n}\n\n/** @deprecated - use EmbedPluginCard and use CardProps instead of FlexBoxProps */\nexport const EmbedPlugin = EmbedPluginCard\n"],"mappings":"AAyBI,SAYE,KAZF;AAzBJ,SAAS,gBAAgB;AAGzB,SAAS,mBAAmB,yBAAyB;AAErD,SAAS,wBAAwB;AACjC,SAAwB,uBAAuB;AAC/C,SAAS,iCAAiC;AAInC,MAAM,qBAAqD,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AAC5F,QAAM;AAAA,IACJ;AAAA,IACA,UAAU,CAAC;AAAA,IACX;AAAA,IACA,eAAe;AAAA,IACf,iBAAiB;AAAA,IACjB;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,IAAI;AAEJ,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,QACF;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MAEA;AAAA,4BAAC,wBAAsB,GAAG,eAAe;AAAA,QACxC;AAAA;AAAA;AAAA,EACH;AAEJ;AAEO,MAAM,uBAAgD,CAAC,UAAU;AACtE,QAAM,EAAE,SAAS,UAAU,IAAI,kBAAkB;AACjD,QAAM,EAAE,eAAe,IAAI,kBAAkB;AAC7C,QAAM,QAAQ,SAAS;AAEvB,SACE,oBAAC,6BAA0B,UAAU,WACnC;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,MACX,SAAQ;AAAA,MACR,MAAM,QAAQ,CAAC,kBAAkB,OAAO;AAAA,MACxC,kBAAkB,EAAE,OAAO,EAAE,YAAY,SAAS,YAAY,MAAM,QAAQ,CAAC,GAAG,QAAQ,EAAE,EAAE;AAAA,MAC5F,IAAI,EAAE,UAAU,WAAW;AAAA,MAC1B,GAAG;AAAA;AAAA,EACN,GACF;AAEJ;AAGO,MAAM,cAAc;","names":[]}
|