@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
@@ -0,0 +1,94 @@
|
|
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/controls/index.ts
|
21
|
+
var controls_exports = {};
|
22
|
+
__export(controls_exports, {
|
23
|
+
EmbedFormControl: () => EmbedFormControl,
|
24
|
+
EmbedRenderSelect: () => EmbedRenderSelect,
|
25
|
+
ListModeSelect: () => ListModeSelect,
|
26
|
+
ListModeSelectFormControl: () => ListModeSelectFormControl
|
27
|
+
});
|
28
|
+
module.exports = __toCommonJS(controls_exports);
|
29
|
+
|
30
|
+
// src/components/controls/EmbedFormControl.tsx
|
31
|
+
var import_material = require("@mui/material");
|
32
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
33
|
+
var EmbedFormControl = ({ formId, formLabel, children, ...props }) => {
|
34
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.FormControl, { ...props, children: [
|
35
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.InputLabel, { id: formId, children: formLabel }),
|
36
|
+
children
|
37
|
+
] });
|
38
|
+
};
|
39
|
+
|
40
|
+
// src/components/controls/ListModeSelect.tsx
|
41
|
+
var import_material2 = require("@mui/material");
|
42
|
+
var import_react_shared = require("@xyo-network/react-shared");
|
43
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
44
|
+
var listModeSelectId = "listmode-select-id";
|
45
|
+
var listModeSelectLabel = "List Mode";
|
46
|
+
var ListModeSelect = (props) => {
|
47
|
+
const { listMode, setListMode } = (0, import_react_shared.useListMode)();
|
48
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
49
|
+
import_material2.Select,
|
50
|
+
{
|
51
|
+
value: listMode ?? "default",
|
52
|
+
onChange: (event) => {
|
53
|
+
setListMode == null ? void 0 : setListMode(event.target.value);
|
54
|
+
},
|
55
|
+
...props,
|
56
|
+
children: [
|
57
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.MenuItem, { value: "default", children: "Default" }, "default"),
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.MenuItem, { value: "table", children: "Table" }, "table"),
|
59
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.MenuItem, { value: "grid", children: "Grid" }, "grid")
|
60
|
+
]
|
61
|
+
}
|
62
|
+
);
|
63
|
+
};
|
64
|
+
var ListModeSelectFormControl = (props) => {
|
65
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(EmbedFormControl, { formId: listModeSelectId, formLabel: listModeSelectLabel, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ListModeSelect, { size: "small", label: listModeSelectLabel, labelId: listModeSelectId, ...props }) });
|
66
|
+
};
|
67
|
+
|
68
|
+
// src/components/controls/RenderSelect.tsx
|
69
|
+
var import_material3 = require("@mui/material");
|
70
|
+
|
71
|
+
// src/contexts/EmbedPluginContext/Context.tsx
|
72
|
+
var import_react_shared2 = require("@xyo-network/react-shared");
|
73
|
+
var EmbedPluginContext = (0, import_react_shared2.createContextEx)();
|
74
|
+
|
75
|
+
// src/contexts/EmbedPluginContext/use.tsx
|
76
|
+
var import_react_shared3 = require("@xyo-network/react-shared");
|
77
|
+
var useEmbedPluginState = () => (0, import_react_shared3.useContextEx)(EmbedPluginContext, "EmbedPlugin", true);
|
78
|
+
|
79
|
+
// src/components/controls/RenderSelect.tsx
|
80
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
81
|
+
var renderSelectId = "render-select-id";
|
82
|
+
var renderSelectLabel = "Renderer";
|
83
|
+
var EmbedRenderSelect = (props) => {
|
84
|
+
const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState();
|
85
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(EmbedFormControl, { formId: renderSelectId, formLabel: renderSelectLabel, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Select, { size: "small", value: activePlugin == null ? void 0 : activePlugin.name, ...props, children: plugins == null ? void 0 : plugins.map((plugin) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.MenuItem, { value: plugin.name, onClick: () => setActivePlugin == null ? void 0 : setActivePlugin(plugin), children: plugin.name }, plugin.name)) }) });
|
86
|
+
};
|
87
|
+
// Annotate the CommonJS export names for ESM import in node:
|
88
|
+
0 && (module.exports = {
|
89
|
+
EmbedFormControl,
|
90
|
+
EmbedRenderSelect,
|
91
|
+
ListModeSelect,
|
92
|
+
ListModeSelectFormControl
|
93
|
+
});
|
94
|
+
//# sourceMappingURL=index.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/controls/index.ts","../../../../src/components/controls/EmbedFormControl.tsx","../../../../src/components/controls/ListModeSelect.tsx","../../../../src/components/controls/RenderSelect.tsx","../../../../src/contexts/EmbedPluginContext/Context.tsx","../../../../src/contexts/EmbedPluginContext/use.tsx"],"sourcesContent":["export * from './EmbedFormControl'\nexport * from './ListModeSelect'\nexport * from './RenderSelect'\n","import { FormControl, FormControlProps, InputLabel } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\ninterface EmbedFormControlProps extends FormControlProps {\n formId?: string\n formLabel?: string\n}\n\nexport const EmbedFormControl: React.FC<WithChildren<EmbedFormControlProps>> = ({ formId, formLabel, children, ...props }) => {\n return (\n <FormControl {...props}>\n <InputLabel id={formId}>{formLabel}</InputLabel>\n {children}\n </FormControl>\n )\n}\n","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","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","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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,sBAA0D;AAUtD;AAFG,IAAM,mBAAkE,CAAC,EAAE,QAAQ,WAAW,UAAU,GAAG,MAAM,MAAM;AAC5H,SACE,6CAAC,+BAAa,GAAG,OACf;AAAA,gDAAC,8BAAW,IAAI,QAAS,qBAAU;AAAA,IAClC;AAAA,KACH;AAEJ;;;ACfA,IAAAA,mBAA8C;AAC9C,0BAAsC;AAWlC,IAAAC,sBAAA;AAPJ,IAAM,mBAAmB;AACzB,IAAM,sBAAsB;AAErB,IAAM,iBAAkD,CAAC,UAAU;AACxE,QAAM,EAAE,UAAU,YAAY,QAAI,iCAAY;AAE9C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAQ,YAAY;AAAA,MACpB,UAAU,CAAC,UAAU;AACnB,mDAAc,MAAM,OAAO;AAAA,MAC7B;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,qDAAC,6BAAuB,OAAM,WAAU,uBAA1B,SAEd;AAAA,QACA,6CAAC,6BAAqB,OAAM,SAAQ,qBAAtB,OAEd;AAAA,QACA,6CAAC,6BAAoB,OAAM,QAAO,oBAApB,MAEd;AAAA;AAAA;AAAA,EACF;AAEJ;AAEO,IAAM,4BAA6D,CAAC,UAAU;AACnF,SACE,6CAAC,oBAAiB,QAAQ,kBAAkB,WAAW,qBACrD,uDAAC,kBAAe,MAAK,SAAQ,OAAO,qBAAqB,SAAS,kBAAmB,GAAG,OAAO,GACjG;AAEJ;;;ACtCA,IAAAC,mBAA8C;;;ACA9C,IAAAC,uBAAgC;AAIzB,IAAM,yBAAqB,sCAAkC;;;ACJpE,IAAAC,uBAA6B;AAItB,IAAM,sBAAsB,UAAM,mCAAa,oBAAoB,eAAe,IAAI;;;AFUnF,IAAAC,sBAAA;AATV,IAAM,iBAAiB;AACvB,IAAM,oBAAoB;AAEnB,IAAM,oBAA2C,CAAC,UAAU;AACjE,QAAM,EAAE,cAAc,iBAAiB,QAAQ,IAAI,oBAAoB;AACvE,SACE,6CAAC,oBAAiB,QAAQ,gBAAgB,WAAW,mBACnD,uDAAC,2BAAO,MAAK,SAAQ,OAAO,6CAAc,MAAO,GAAG,OACjD,6CAAS,IAAI,CAAC,WACb,6CAAC,6BAAS,OAAO,OAAO,MAAwB,SAAS,MAAM,mDAAkB,SAC9E,iBAAO,QADyB,OAAO,IAE1C,IAEJ,GACF;AAEJ;","names":["import_material","import_jsx_runtime","import_material","import_react_shared","import_react_shared","import_jsx_runtime"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA"}
|
@@ -1,27 +1,64 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
var
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
// src/components/controls/EmbedFormControl.tsx
|
2
|
+
import { FormControl, InputLabel } from "@mui/material";
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
4
|
+
var EmbedFormControl = ({ formId, formLabel, children, ...props }) => {
|
5
|
+
return /* @__PURE__ */ jsxs(FormControl, { ...props, children: [
|
6
|
+
/* @__PURE__ */ jsx(InputLabel, { id: formId, children: formLabel }),
|
7
|
+
children
|
8
|
+
] });
|
9
|
+
};
|
10
|
+
|
11
|
+
// src/components/controls/ListModeSelect.tsx
|
12
|
+
import { MenuItem, Select } from "@mui/material";
|
13
|
+
import { useListMode } from "@xyo-network/react-shared";
|
14
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
15
|
+
var listModeSelectId = "listmode-select-id";
|
16
|
+
var listModeSelectLabel = "List Mode";
|
17
|
+
var ListModeSelect = (props) => {
|
18
|
+
const { listMode, setListMode } = useListMode();
|
19
|
+
return /* @__PURE__ */ jsxs2(
|
20
|
+
Select,
|
21
|
+
{
|
22
|
+
value: listMode ?? "default",
|
23
|
+
onChange: (event) => {
|
24
|
+
setListMode == null ? void 0 : setListMode(event.target.value);
|
25
|
+
},
|
26
|
+
...props,
|
27
|
+
children: [
|
28
|
+
/* @__PURE__ */ jsx2(MenuItem, { value: "default", children: "Default" }, "default"),
|
29
|
+
/* @__PURE__ */ jsx2(MenuItem, { value: "table", children: "Table" }, "table"),
|
30
|
+
/* @__PURE__ */ jsx2(MenuItem, { value: "grid", children: "Grid" }, "grid")
|
31
|
+
]
|
32
|
+
}
|
33
|
+
);
|
34
|
+
};
|
35
|
+
var ListModeSelectFormControl = (props) => {
|
36
|
+
return /* @__PURE__ */ jsx2(EmbedFormControl, { formId: listModeSelectId, formLabel: listModeSelectLabel, children: /* @__PURE__ */ jsx2(ListModeSelect, { size: "small", label: listModeSelectLabel, labelId: listModeSelectId, ...props }) });
|
37
|
+
};
|
38
|
+
|
39
|
+
// src/components/controls/RenderSelect.tsx
|
40
|
+
import { MenuItem as MenuItem2, Select as Select2 } from "@mui/material";
|
41
|
+
|
42
|
+
// src/contexts/EmbedPluginContext/Context.tsx
|
43
|
+
import { createContextEx } from "@xyo-network/react-shared";
|
44
|
+
var EmbedPluginContext = createContextEx();
|
45
|
+
|
46
|
+
// src/contexts/EmbedPluginContext/use.tsx
|
47
|
+
import { useContextEx } from "@xyo-network/react-shared";
|
48
|
+
var useEmbedPluginState = () => useContextEx(EmbedPluginContext, "EmbedPlugin", true);
|
49
|
+
|
50
|
+
// src/components/controls/RenderSelect.tsx
|
51
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
52
|
+
var renderSelectId = "render-select-id";
|
53
|
+
var renderSelectLabel = "Renderer";
|
54
|
+
var EmbedRenderSelect = (props) => {
|
55
|
+
const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState();
|
56
|
+
return /* @__PURE__ */ jsx3(EmbedFormControl, { formId: renderSelectId, formLabel: renderSelectLabel, children: /* @__PURE__ */ jsx3(Select2, { size: "small", value: activePlugin == null ? void 0 : activePlugin.name, ...props, children: plugins == null ? void 0 : plugins.map((plugin) => /* @__PURE__ */ jsx3(MenuItem2, { value: plugin.name, onClick: () => setActivePlugin == null ? void 0 : setActivePlugin(plugin), children: plugin.name }, plugin.name)) }) });
|
57
|
+
};
|
58
|
+
export {
|
59
|
+
EmbedFormControl,
|
60
|
+
EmbedRenderSelect,
|
61
|
+
ListModeSelect,
|
62
|
+
ListModeSelectFormControl
|
13
63
|
};
|
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 controls_exports = {};
|
17
|
-
module.exports = __toCommonJS(controls_exports);
|
18
|
-
__reExport(controls_exports, require("./EmbedFormControl"), module.exports);
|
19
|
-
__reExport(controls_exports, require("./ListModeSelect"), module.exports);
|
20
|
-
__reExport(controls_exports, require("./RenderSelect"), module.exports);
|
21
|
-
// Annotate the CommonJS export names for ESM import in node:
|
22
|
-
0 && (module.exports = {
|
23
|
-
...require("./EmbedFormControl"),
|
24
|
-
...require("./ListModeSelect"),
|
25
|
-
...require("./RenderSelect")
|
26
|
-
});
|
27
64
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/controls/
|
1
|
+
{"version":3,"sources":["../../../../src/components/controls/EmbedFormControl.tsx","../../../../src/components/controls/ListModeSelect.tsx","../../../../src/components/controls/RenderSelect.tsx","../../../../src/contexts/EmbedPluginContext/Context.tsx","../../../../src/contexts/EmbedPluginContext/use.tsx"],"sourcesContent":["import { FormControl, FormControlProps, InputLabel } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\ninterface EmbedFormControlProps extends FormControlProps {\n formId?: string\n formLabel?: string\n}\n\nexport const EmbedFormControl: React.FC<WithChildren<EmbedFormControlProps>> = ({ formId, formLabel, children, ...props }) => {\n return (\n <FormControl {...props}>\n <InputLabel id={formId}>{formLabel}</InputLabel>\n {children}\n </FormControl>\n )\n}\n","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","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","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"],"mappings":";AAAA,SAAS,aAA+B,kBAAkB;AAUtD,SACE,KADF;AAFG,IAAM,mBAAkE,CAAC,EAAE,QAAQ,WAAW,UAAU,GAAG,MAAM,MAAM;AAC5H,SACE,qBAAC,eAAa,GAAG,OACf;AAAA,wBAAC,cAAW,IAAI,QAAS,qBAAU;AAAA,IAClC;AAAA,KACH;AAEJ;;;ACfA,SAAS,UAAU,cAA2B;AAC9C,SAAmB,mBAAmB;AAWlC,SAOE,OAAAA,MAPF,QAAAC,aAAA;AAPJ,IAAM,mBAAmB;AACzB,IAAM,sBAAsB;AAErB,IAAM,iBAAkD,CAAC,UAAU;AACxE,QAAM,EAAE,UAAU,YAAY,IAAI,YAAY;AAE9C,SACE,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACC,OAAQ,YAAY;AAAA,MACpB,UAAU,CAAC,UAAU;AACnB,mDAAc,MAAM,OAAO;AAAA,MAC7B;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,wBAAAD,KAAC,YAAuB,OAAM,WAAU,uBAA1B,SAEd;AAAA,QACA,gBAAAA,KAAC,YAAqB,OAAM,SAAQ,qBAAtB,OAEd;AAAA,QACA,gBAAAA,KAAC,YAAoB,OAAM,QAAO,oBAApB,MAEd;AAAA;AAAA;AAAA,EACF;AAEJ;AAEO,IAAM,4BAA6D,CAAC,UAAU;AACnF,SACE,gBAAAA,KAAC,oBAAiB,QAAQ,kBAAkB,WAAW,qBACrD,0BAAAA,KAAC,kBAAe,MAAK,SAAQ,OAAO,qBAAqB,SAAS,kBAAmB,GAAG,OAAO,GACjG;AAEJ;;;ACtCA,SAAS,YAAAE,WAAU,UAAAC,eAA2B;;;ACA9C,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;;;ACJpE,SAAS,oBAAoB;AAItB,IAAM,sBAAsB,MAAM,aAAa,oBAAoB,eAAe,IAAI;;;AFUnF,gBAAAC,YAAA;AATV,IAAM,iBAAiB;AACvB,IAAM,oBAAoB;AAEnB,IAAM,oBAA2C,CAAC,UAAU;AACjE,QAAM,EAAE,cAAc,iBAAiB,QAAQ,IAAI,oBAAoB;AACvE,SACE,gBAAAA,KAAC,oBAAiB,QAAQ,gBAAgB,WAAW,mBACnD,0BAAAA,KAACC,SAAA,EAAO,MAAK,SAAQ,OAAO,6CAAc,MAAO,GAAG,OACjD,6CAAS,IAAI,CAAC,WACb,gBAAAD,KAACE,WAAA,EAAS,OAAO,OAAO,MAAwB,SAAS,MAAM,mDAAkB,SAC9E,iBAAO,QADyB,OAAO,IAE1C,IAEJ,GACF;AAEJ;","names":["jsx","jsxs","MenuItem","Select","jsx","Select","MenuItem"]}
|
@@ -0,0 +1,99 @@
|
|
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/embed-card/EmbedCardResolver.tsx
|
21
|
+
var EmbedCardResolver_exports = {};
|
22
|
+
__export(EmbedCardResolver_exports, {
|
23
|
+
EmbedCardResolverFlexBox: () => EmbedCardResolverFlexBox
|
24
|
+
});
|
25
|
+
module.exports = __toCommonJS(EmbedCardResolver_exports);
|
26
|
+
var import_material2 = require("@mui/material");
|
27
|
+
var import_react_flexbox = require("@xylabs/react-flexbox");
|
28
|
+
var import_react_shared5 = require("@xyo-network/react-shared");
|
29
|
+
|
30
|
+
// src/contexts/RefreshPayloadContext/Context.tsx
|
31
|
+
var import_react_shared = require("@xyo-network/react-shared");
|
32
|
+
var RefreshPayloadContext = (0, import_react_shared.createContextEx)();
|
33
|
+
|
34
|
+
// src/contexts/RefreshPayloadContext/use.tsx
|
35
|
+
var import_react_shared2 = require("@xyo-network/react-shared");
|
36
|
+
var useRefreshPayload = () => (0, import_react_shared2.useContextEx)(RefreshPayloadContext, "RefreshPayload", true);
|
37
|
+
|
38
|
+
// src/contexts/ResolvePayloadContext/Context.ts
|
39
|
+
var import_react_shared3 = require("@xyo-network/react-shared");
|
40
|
+
var ResolvePayloadContext = (0, import_react_shared3.createContextEx)();
|
41
|
+
|
42
|
+
// src/contexts/ResolvePayloadContext/use.tsx
|
43
|
+
var import_react_shared4 = require("@xyo-network/react-shared");
|
44
|
+
var useResolvePayload = () => (0, import_react_shared4.useContextEx)(ResolvePayloadContext, "ResolvePayload", true);
|
45
|
+
|
46
|
+
// src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
|
47
|
+
var import_react_error = require("@xyo-network/react-error");
|
48
|
+
|
49
|
+
// src/components/embed-card/error-handling/EmbedErrorCard.tsx
|
50
|
+
var import_material = require("@mui/material");
|
51
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
52
|
+
var EmbedErrorCard = (props) => {
|
53
|
+
const { alertProps, error, hideErrorDetails = true, children, ...cardProps } = props;
|
54
|
+
const errorProps = { alertProps, error, hideErrorDetails };
|
55
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Card, { ...cardProps, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.CardContent, { children: children ?? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DefaultErrorAlert, { ...errorProps }) }) });
|
56
|
+
};
|
57
|
+
var DefaultErrorAlert = ({ alertProps, hideErrorDetails, error }) => {
|
58
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Alert, { severity: "error", ...alertProps, children: [
|
59
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.AlertTitle, { children: "Whoops! Something went wrong" }),
|
60
|
+
!hideErrorDetails && error ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
61
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", children: "Error: " }),
|
62
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", children: error == null ? void 0 : error.message })
|
63
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", fontSize: "small", children: "Error Loading Plugin" })
|
64
|
+
] });
|
65
|
+
};
|
66
|
+
|
67
|
+
// src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
|
68
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
69
|
+
var EmbedCardApiErrorRenderer = ({ xyoError, children, ...props }) => {
|
70
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_error.ErrorRender, { error: xyoError, noReAuth: true, noErrorDisplay: true, customError: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CustomApiErrorCard, { xyoError, ...props }), children });
|
71
|
+
};
|
72
|
+
var CustomApiErrorCard = ({ xyoError, ...props }) => {
|
73
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(EmbedErrorCard, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_error.ErrorAlert, { error: xyoError }) });
|
74
|
+
};
|
75
|
+
|
76
|
+
// src/components/embed-card/EmbedCardResolver.tsx
|
77
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
78
|
+
var EmbedCardResolverFlexBox = ({ children, ...props }) => {
|
79
|
+
const { payload, notFound, huriError } = useResolvePayload();
|
80
|
+
const { refreshPayload } = useRefreshPayload();
|
81
|
+
const theme = (0, import_material2.useTheme)();
|
82
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_shared5.LoadResult, { searchResult: payload, notFound: !!notFound, error: !!huriError, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(EmbedCardApiErrorRenderer, { xyoError: huriError, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
83
|
+
import_react_flexbox.FlexCol,
|
84
|
+
{
|
85
|
+
id: "embed-outer-wrap",
|
86
|
+
alignItems: "stretch",
|
87
|
+
justifyContent: "start",
|
88
|
+
busy: Boolean(!refreshPayload && payload),
|
89
|
+
busyCircularProps: { style: { alignItems: "start", paddingTop: theme.spacing(2), zIndex: 2 } },
|
90
|
+
...props,
|
91
|
+
children
|
92
|
+
}
|
93
|
+
) }) });
|
94
|
+
};
|
95
|
+
// Annotate the CommonJS export names for ESM import in node:
|
96
|
+
0 && (module.exports = {
|
97
|
+
EmbedCardResolverFlexBox
|
98
|
+
});
|
99
|
+
//# sourceMappingURL=EmbedCardResolver.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/embed-card/EmbedCardResolver.tsx","../../../../src/contexts/RefreshPayloadContext/Context.tsx","../../../../src/contexts/RefreshPayloadContext/use.tsx","../../../../src/contexts/ResolvePayloadContext/Context.ts","../../../../src/contexts/ResolvePayloadContext/use.tsx","../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx","../../../../src/components/embed-card/error-handling/EmbedErrorCard.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","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { RefreshPayloadState } from './State'\n\nexport const RefreshPayloadContext = createContextEx<RefreshPayloadState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { RefreshPayloadContext } from './Context'\n\nexport const useRefreshPayload = () => useContextEx(RefreshPayloadContext, 'RefreshPayload', 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 { CardProps } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { ModuleError } from '@xyo-network/payload-model'\nimport { ErrorAlert, ErrorRender } from '@xyo-network/react-error'\n\nimport { EmbedErrorCard } from './EmbedErrorCard'\n\ninterface EmbedCardApiErrorRendererProps extends CardProps {\n xyoError?: ModuleError\n}\n\nexport const EmbedCardApiErrorRenderer: React.FC<WithChildren<EmbedCardApiErrorRendererProps>> = ({ xyoError, children, ...props }) => {\n return (\n <ErrorRender error={xyoError} noReAuth noErrorDisplay customError={<CustomApiErrorCard xyoError={xyoError} {...props} />}>\n {children}\n </ErrorRender>\n )\n}\n\nconst CustomApiErrorCard: React.FC<EmbedCardApiErrorRendererProps> = ({ xyoError, ...props }) => {\n return (\n <EmbedErrorCard {...props}>\n <ErrorAlert error={xyoError} />\n </EmbedErrorCard>\n )\n}\n","import { Alert, AlertProps, AlertTitle, Card, CardContent, CardProps, Typography } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\ninterface EmbedErrorCardBaseProps {\n alertProps?: AlertProps\n error?: Error\n hideErrorDetails?: boolean\n}\n\ninterface EmbedErrorCardProps extends EmbedErrorCardBaseProps, CardProps {\n alertProps?: AlertProps\n error?: Error\n}\n\nexport const EmbedErrorCard: React.FC<WithChildren<EmbedErrorCardProps>> = (props) => {\n const { alertProps, error, hideErrorDetails = true, children, ...cardProps } = props\n const errorProps = { alertProps, error, hideErrorDetails }\n return (\n <Card {...cardProps}>\n <CardContent>{children ?? <DefaultErrorAlert {...errorProps} />}</CardContent>\n </Card>\n )\n}\n\nconst DefaultErrorAlert: React.FC<EmbedErrorCardBaseProps> = ({ alertProps, hideErrorDetails, error }) => {\n return (\n <Alert severity=\"error\" {...alertProps}>\n <AlertTitle>Whoops! Something went wrong</AlertTitle>\n {!hideErrorDetails && error ? (\n <>\n <Typography variant=\"caption\">Error: </Typography>\n <Typography variant=\"caption\">{error?.message}</Typography>\n </>\n ) : (\n <Typography variant=\"caption\" fontSize=\"small\">\n Error Loading Plugin\n </Typography>\n )}\n </Alert>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,mBAAyB;AACzB,2BAAsC;AAEtC,IAAAC,uBAA2B;;;ACH3B,0BAAgC;AAIzB,IAAM,4BAAwB,qCAAqC;;;ACJ1E,IAAAC,uBAA6B;AAItB,IAAM,oBAAoB,UAAM,mCAAa,uBAAuB,kBAAkB,IAAI;;;ACJjG,IAAAC,uBAAgC;AAIzB,IAAM,4BAAwB,sCAAqC;;;ACJ1E,IAAAC,uBAA6B;AAItB,IAAM,oBAAoB,UAAM,mCAAa,uBAAuB,kBAAkB,IAAI;;;ACDjG,yBAAwC;;;ACHxC,sBAAwF;AAmBxD;AALzB,IAAM,iBAA8D,CAAC,UAAU;AACpF,QAAM,EAAE,YAAY,OAAO,mBAAmB,MAAM,UAAU,GAAG,UAAU,IAAI;AAC/E,QAAM,aAAa,EAAE,YAAY,OAAO,iBAAiB;AACzD,SACE,4CAAC,wBAAM,GAAG,WACR,sDAAC,+BAAa,sBAAY,4CAAC,qBAAmB,GAAG,YAAY,GAAG,GAClE;AAEJ;AAEA,IAAM,oBAAuD,CAAC,EAAE,YAAY,kBAAkB,MAAM,MAAM;AACxG,SACE,6CAAC,yBAAM,UAAS,SAAS,GAAG,YAC1B;AAAA,gDAAC,8BAAW,0CAA4B;AAAA,IACvC,CAAC,oBAAoB,QACpB,4EACE;AAAA,kDAAC,8BAAW,SAAQ,WAAU,qBAAO;AAAA,MACrC,4CAAC,8BAAW,SAAQ,WAAW,yCAAO,SAAQ;AAAA,OAChD,IAEA,4CAAC,8BAAW,SAAQ,WAAU,UAAS,SAAQ,kCAE/C;AAAA,KAEJ;AAEJ;;;AD3BuE,IAAAC,sBAAA;AAFhE,IAAM,4BAAoF,CAAC,EAAE,UAAU,UAAU,GAAG,MAAM,MAAM;AACrI,SACE,6CAAC,kCAAY,OAAO,UAAU,UAAQ,MAAC,gBAAc,MAAC,aAAa,6CAAC,sBAAmB,UAAqB,GAAG,OAAO,GACnH,UACH;AAEJ;AAEA,IAAM,qBAA+D,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AAC/F,SACE,6CAAC,kBAAgB,GAAG,OAClB,uDAAC,iCAAW,OAAO,UAAU,GAC/B;AAEJ;;;ALTQ,IAAAC,sBAAA;AARD,IAAM,2BAAiE,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AACxG,QAAM,EAAE,SAAS,UAAU,UAAU,IAAI,kBAAkB;AAC3D,QAAM,EAAE,eAAe,IAAI,kBAAkB;AAC7C,QAAM,YAAQ,2BAAS;AAEvB,SACE,6CAAC,mCAAW,cAAc,SAAS,UAAU,CAAC,CAAC,UAAU,OAAO,CAAC,CAAC,WAChE,uDAAC,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":["import_material","import_react_shared","import_react_shared","import_react_shared","import_react_shared","import_jsx_runtime","import_jsx_runtime"]}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
3
|
+
import { WithChildren } from '@xylabs/react-shared';
|
4
|
+
export declare const EmbedCardResolverFlexBox: React.FC<WithChildren<FlexBoxProps>>;
|
5
|
+
//# sourceMappingURL=EmbedCardResolver.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmbedCardResolver.d.ts","sourceRoot":"","sources":["../../../../src/components/embed-card/EmbedCardResolver.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAMnD,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC,CAqBzE,CAAA"}
|
@@ -1,38 +1,62 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
// src/components/embed-card/EmbedCardResolver.tsx
|
2
|
+
import { useTheme } from "@mui/material";
|
3
|
+
import { FlexCol } from "@xylabs/react-flexbox";
|
4
|
+
import { LoadResult } from "@xyo-network/react-shared";
|
5
|
+
|
6
|
+
// src/contexts/RefreshPayloadContext/Context.tsx
|
7
|
+
import { createContextEx } from "@xyo-network/react-shared";
|
8
|
+
var RefreshPayloadContext = createContextEx();
|
9
|
+
|
10
|
+
// src/contexts/RefreshPayloadContext/use.tsx
|
11
|
+
import { useContextEx } from "@xyo-network/react-shared";
|
12
|
+
var useRefreshPayload = () => useContextEx(RefreshPayloadContext, "RefreshPayload", true);
|
13
|
+
|
14
|
+
// src/contexts/ResolvePayloadContext/Context.ts
|
15
|
+
import { createContextEx as createContextEx2 } from "@xyo-network/react-shared";
|
16
|
+
var ResolvePayloadContext = createContextEx2();
|
17
|
+
|
18
|
+
// src/contexts/ResolvePayloadContext/use.tsx
|
19
|
+
import { useContextEx as useContextEx2 } from "@xyo-network/react-shared";
|
20
|
+
var useResolvePayload = () => useContextEx2(ResolvePayloadContext, "ResolvePayload", true);
|
21
|
+
|
22
|
+
// src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
|
23
|
+
import { ErrorAlert, ErrorRender } from "@xyo-network/react-error";
|
24
|
+
|
25
|
+
// src/components/embed-card/error-handling/EmbedErrorCard.tsx
|
26
|
+
import { Alert, AlertTitle, Card, CardContent, Typography } from "@mui/material";
|
27
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
28
|
+
var EmbedErrorCard = (props) => {
|
29
|
+
const { alertProps, error, hideErrorDetails = true, children, ...cardProps } = props;
|
30
|
+
const errorProps = { alertProps, error, hideErrorDetails };
|
31
|
+
return /* @__PURE__ */ jsx(Card, { ...cardProps, children: /* @__PURE__ */ jsx(CardContent, { children: children ?? /* @__PURE__ */ jsx(DefaultErrorAlert, { ...errorProps }) }) });
|
9
32
|
};
|
10
|
-
var
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
33
|
+
var DefaultErrorAlert = ({ alertProps, hideErrorDetails, error }) => {
|
34
|
+
return /* @__PURE__ */ jsxs(Alert, { severity: "error", ...alertProps, children: [
|
35
|
+
/* @__PURE__ */ jsx(AlertTitle, { children: "Whoops! Something went wrong" }),
|
36
|
+
!hideErrorDetails && error ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
37
|
+
/* @__PURE__ */ jsx(Typography, { variant: "caption", children: "Error: " }),
|
38
|
+
/* @__PURE__ */ jsx(Typography, { variant: "caption", children: error == null ? void 0 : error.message })
|
39
|
+
] }) : /* @__PURE__ */ jsx(Typography, { variant: "caption", fontSize: "small", children: "Error Loading Plugin" })
|
40
|
+
] });
|
17
41
|
};
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
});
|
23
|
-
|
24
|
-
var
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
const { payload, notFound, huriError } =
|
32
|
-
const { refreshPayload } =
|
33
|
-
const theme =
|
34
|
-
return /* @__PURE__ */ (
|
35
|
-
|
42
|
+
|
43
|
+
// src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
|
44
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
45
|
+
var EmbedCardApiErrorRenderer = ({ xyoError, children, ...props }) => {
|
46
|
+
return /* @__PURE__ */ jsx2(ErrorRender, { error: xyoError, noReAuth: true, noErrorDisplay: true, customError: /* @__PURE__ */ jsx2(CustomApiErrorCard, { xyoError, ...props }), children });
|
47
|
+
};
|
48
|
+
var CustomApiErrorCard = ({ xyoError, ...props }) => {
|
49
|
+
return /* @__PURE__ */ jsx2(EmbedErrorCard, { ...props, children: /* @__PURE__ */ jsx2(ErrorAlert, { error: xyoError }) });
|
50
|
+
};
|
51
|
+
|
52
|
+
// src/components/embed-card/EmbedCardResolver.tsx
|
53
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
54
|
+
var EmbedCardResolverFlexBox = ({ children, ...props }) => {
|
55
|
+
const { payload, notFound, huriError } = useResolvePayload();
|
56
|
+
const { refreshPayload } = useRefreshPayload();
|
57
|
+
const theme = useTheme();
|
58
|
+
return /* @__PURE__ */ jsx3(LoadResult, { searchResult: payload, notFound: !!notFound, error: !!huriError, children: /* @__PURE__ */ jsx3(EmbedCardApiErrorRenderer, { xyoError: huriError, children: /* @__PURE__ */ jsx3(
|
59
|
+
FlexCol,
|
36
60
|
{
|
37
61
|
id: "embed-outer-wrap",
|
38
62
|
alignItems: "stretch",
|
@@ -44,8 +68,7 @@ const EmbedCardResolverFlexBox = ({ children, ...props }) => {
|
|
44
68
|
}
|
45
69
|
) }) });
|
46
70
|
};
|
47
|
-
|
48
|
-
0 && (module.exports = {
|
71
|
+
export {
|
49
72
|
EmbedCardResolverFlexBox
|
50
|
-
}
|
73
|
+
};
|
51
74
|
//# sourceMappingURL=EmbedCardResolver.js.map
|
@@ -1 +1 @@
|
|
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":"
|
1
|
+
{"version":3,"sources":["../../../../src/components/embed-card/EmbedCardResolver.tsx","../../../../src/contexts/RefreshPayloadContext/Context.tsx","../../../../src/contexts/RefreshPayloadContext/use.tsx","../../../../src/contexts/ResolvePayloadContext/Context.ts","../../../../src/contexts/ResolvePayloadContext/use.tsx","../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx","../../../../src/components/embed-card/error-handling/EmbedErrorCard.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","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { RefreshPayloadState } from './State'\n\nexport const RefreshPayloadContext = createContextEx<RefreshPayloadState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { RefreshPayloadContext } from './Context'\n\nexport const useRefreshPayload = () => useContextEx(RefreshPayloadContext, 'RefreshPayload', 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 { CardProps } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { ModuleError } from '@xyo-network/payload-model'\nimport { ErrorAlert, ErrorRender } from '@xyo-network/react-error'\n\nimport { EmbedErrorCard } from './EmbedErrorCard'\n\ninterface EmbedCardApiErrorRendererProps extends CardProps {\n xyoError?: ModuleError\n}\n\nexport const EmbedCardApiErrorRenderer: React.FC<WithChildren<EmbedCardApiErrorRendererProps>> = ({ xyoError, children, ...props }) => {\n return (\n <ErrorRender error={xyoError} noReAuth noErrorDisplay customError={<CustomApiErrorCard xyoError={xyoError} {...props} />}>\n {children}\n </ErrorRender>\n )\n}\n\nconst CustomApiErrorCard: React.FC<EmbedCardApiErrorRendererProps> = ({ xyoError, ...props }) => {\n return (\n <EmbedErrorCard {...props}>\n <ErrorAlert error={xyoError} />\n </EmbedErrorCard>\n )\n}\n","import { Alert, AlertProps, AlertTitle, Card, CardContent, CardProps, Typography } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\ninterface EmbedErrorCardBaseProps {\n alertProps?: AlertProps\n error?: Error\n hideErrorDetails?: boolean\n}\n\ninterface EmbedErrorCardProps extends EmbedErrorCardBaseProps, CardProps {\n alertProps?: AlertProps\n error?: Error\n}\n\nexport const EmbedErrorCard: React.FC<WithChildren<EmbedErrorCardProps>> = (props) => {\n const { alertProps, error, hideErrorDetails = true, children, ...cardProps } = props\n const errorProps = { alertProps, error, hideErrorDetails }\n return (\n <Card {...cardProps}>\n <CardContent>{children ?? <DefaultErrorAlert {...errorProps} />}</CardContent>\n </Card>\n )\n}\n\nconst DefaultErrorAlert: React.FC<EmbedErrorCardBaseProps> = ({ alertProps, hideErrorDetails, error }) => {\n return (\n <Alert severity=\"error\" {...alertProps}>\n <AlertTitle>Whoops! Something went wrong</AlertTitle>\n {!hideErrorDetails && error ? (\n <>\n <Typography variant=\"caption\">Error: </Typography>\n <Typography variant=\"caption\">{error?.message}</Typography>\n </>\n ) : (\n <Typography variant=\"caption\" fontSize=\"small\">\n Error Loading Plugin\n </Typography>\n )}\n </Alert>\n )\n}\n"],"mappings":";AAAA,SAAS,gBAAgB;AACzB,SAAuB,eAAe;AAEtC,SAAS,kBAAkB;;;ACH3B,SAAS,uBAAuB;AAIzB,IAAM,wBAAwB,gBAAqC;;;ACJ1E,SAAS,oBAAoB;AAItB,IAAM,oBAAoB,MAAM,aAAa,uBAAuB,kBAAkB,IAAI;;;ACJjG,SAAS,mBAAAA,wBAAuB;AAIzB,IAAM,wBAAwBA,iBAAqC;;;ACJ1E,SAAS,gBAAAC,qBAAoB;AAItB,IAAM,oBAAoB,MAAMC,cAAa,uBAAuB,kBAAkB,IAAI;;;ACDjG,SAAS,YAAY,mBAAmB;;;ACHxC,SAAS,OAAmB,YAAY,MAAM,aAAwB,kBAAkB;AAmBxD,SAUxB,UAVwB,KAUxB,YAVwB;AALzB,IAAM,iBAA8D,CAAC,UAAU;AACpF,QAAM,EAAE,YAAY,OAAO,mBAAmB,MAAM,UAAU,GAAG,UAAU,IAAI;AAC/E,QAAM,aAAa,EAAE,YAAY,OAAO,iBAAiB;AACzD,SACE,oBAAC,QAAM,GAAG,WACR,8BAAC,eAAa,sBAAY,oBAAC,qBAAmB,GAAG,YAAY,GAAG,GAClE;AAEJ;AAEA,IAAM,oBAAuD,CAAC,EAAE,YAAY,kBAAkB,MAAM,MAAM;AACxG,SACE,qBAAC,SAAM,UAAS,SAAS,GAAG,YAC1B;AAAA,wBAAC,cAAW,0CAA4B;AAAA,IACvC,CAAC,oBAAoB,QACpB,iCACE;AAAA,0BAAC,cAAW,SAAQ,WAAU,qBAAO;AAAA,MACrC,oBAAC,cAAW,SAAQ,WAAW,yCAAO,SAAQ;AAAA,OAChD,IAEA,oBAAC,cAAW,SAAQ,WAAU,UAAS,SAAQ,kCAE/C;AAAA,KAEJ;AAEJ;;;AD3BuE,gBAAAC,YAAA;AAFhE,IAAM,4BAAoF,CAAC,EAAE,UAAU,UAAU,GAAG,MAAM,MAAM;AACrI,SACE,gBAAAA,KAAC,eAAY,OAAO,UAAU,UAAQ,MAAC,gBAAc,MAAC,aAAa,gBAAAA,KAAC,sBAAmB,UAAqB,GAAG,OAAO,GACnH,UACH;AAEJ;AAEA,IAAM,qBAA+D,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AAC/F,SACE,gBAAAA,KAAC,kBAAgB,GAAG,OAClB,0BAAAA,KAAC,cAAW,OAAO,UAAU,GAC/B;AAEJ;;;ALTQ,gBAAAC,YAAA;AARD,IAAM,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,gBAAAA,KAAC,cAAW,cAAc,SAAS,UAAU,CAAC,CAAC,UAAU,OAAO,CAAC,CAAC,WAChE,0BAAAA,KAAC,6BAA0B,UAAU,WACnC,0BAAAA;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":["createContextEx","useContextEx","useContextEx","jsx","jsx"]}
|