@xyo-network/react-embed 2.64.9 → 2.65.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +15 -15
- package/dist/browser/components/EmbedPlugin.cjs +0 -251
- package/dist/browser/components/EmbedPlugin.cjs.map +0 -1
- package/dist/browser/components/EmbedPlugin.js +0 -230
- package/dist/browser/components/EmbedPlugin.js.map +0 -1
- package/dist/browser/components/EmbedResolver.cjs +0 -42
- package/dist/browser/components/EmbedResolver.cjs.map +0 -1
- package/dist/browser/components/EmbedResolver.js +0 -21
- package/dist/browser/components/EmbedResolver.js.map +0 -1
- package/dist/browser/components/controls/EmbedFormControl.cjs +0 -34
- package/dist/browser/components/controls/EmbedFormControl.cjs.map +0 -1
- package/dist/browser/components/controls/EmbedFormControl.js +0 -13
- package/dist/browser/components/controls/EmbedFormControl.js.map +0 -1
- package/dist/browser/components/controls/ListModeSelect.cjs +0 -65
- package/dist/browser/components/controls/ListModeSelect.cjs.map +0 -1
- package/dist/browser/components/controls/ListModeSelect.js +0 -44
- package/dist/browser/components/controls/ListModeSelect.js.map +0 -1
- package/dist/browser/components/controls/RenderSelect.cjs +0 -54
- package/dist/browser/components/controls/RenderSelect.cjs.map +0 -1
- package/dist/browser/components/controls/RenderSelect.js +0 -33
- package/dist/browser/components/controls/RenderSelect.js.map +0 -1
- package/dist/browser/components/controls/index.cjs +0 -87
- package/dist/browser/components/controls/index.cjs.map +0 -1
- package/dist/browser/components/controls/index.js +0 -64
- package/dist/browser/components/controls/index.js.map +0 -1
- package/dist/browser/components/embed-card/EmbedCardResolver.cjs +0 -95
- package/dist/browser/components/embed-card/EmbedCardResolver.cjs.map +0 -1
- package/dist/browser/components/embed-card/EmbedCardResolver.js +0 -74
- package/dist/browser/components/embed-card/EmbedCardResolver.js.map +0 -1
- package/dist/browser/components/embed-card/EmbedPluginCard.cjs +0 -497
- package/dist/browser/components/embed-card/EmbedPluginCard.cjs.map +0 -1
- package/dist/browser/components/embed-card/EmbedPluginCard.js +0 -479
- package/dist/browser/components/embed-card/EmbedPluginCard.js.map +0 -1
- package/dist/browser/components/embed-card/card/BusyCard.cjs +0 -45
- package/dist/browser/components/embed-card/card/BusyCard.cjs.map +0 -1
- package/dist/browser/components/embed-card/card/BusyCard.js +0 -27
- package/dist/browser/components/embed-card/card/BusyCard.js.map +0 -1
- package/dist/browser/components/embed-card/card/EmbedCardHeader.cjs +0 -108
- package/dist/browser/components/embed-card/card/EmbedCardHeader.cjs.map +0 -1
- package/dist/browser/components/embed-card/card/EmbedCardHeader.js +0 -87
- package/dist/browser/components/embed-card/card/EmbedCardHeader.js.map +0 -1
- package/dist/browser/components/embed-card/card/EmbedPluginCard.cjs +0 -199
- package/dist/browser/components/embed-card/card/EmbedPluginCard.cjs.map +0 -1
- package/dist/browser/components/embed-card/card/EmbedPluginCard.js +0 -181
- package/dist/browser/components/embed-card/card/EmbedPluginCard.js.map +0 -1
- package/dist/browser/components/embed-card/card/index.cjs +0 -203
- package/dist/browser/components/embed-card/card/index.cjs.map +0 -1
- package/dist/browser/components/embed-card/card/index.js +0 -183
- package/dist/browser/components/embed-card/card/index.js.map +0 -1
- package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.cjs +0 -54
- package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.cjs.map +0 -1
- package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +0 -33
- package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +0 -1
- package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.cjs +0 -42
- package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.cjs.map +0 -1
- package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.js +0 -21
- package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.js.map +0 -1
- package/dist/browser/components/embed-card/error-handling/index.cjs +0 -57
- package/dist/browser/components/embed-card/error-handling/index.cjs.map +0 -1
- package/dist/browser/components/embed-card/error-handling/index.js +0 -34
- package/dist/browser/components/embed-card/error-handling/index.js.map +0 -1
- package/dist/browser/components/embed-card/index.cjs +0 -502
- package/dist/browser/components/embed-card/index.cjs.map +0 -1
- package/dist/browser/components/embed-card/index.js +0 -482
- package/dist/browser/components/embed-card/index.js.map +0 -1
- package/dist/browser/components/embed-card/menu/EmbedMenu.cjs +0 -68
- package/dist/browser/components/embed-card/menu/EmbedMenu.cjs.map +0 -1
- package/dist/browser/components/embed-card/menu/EmbedMenu.js +0 -47
- package/dist/browser/components/embed-card/menu/EmbedMenu.js.map +0 -1
- package/dist/browser/components/embed-card/menu/JsonMenuItem.cjs +0 -46
- package/dist/browser/components/embed-card/menu/JsonMenuItem.cjs.map +0 -1
- package/dist/browser/components/embed-card/menu/JsonMenuItem.js +0 -25
- package/dist/browser/components/embed-card/menu/JsonMenuItem.js.map +0 -1
- package/dist/browser/components/embed-card/menu/index.cjs +0 -70
- package/dist/browser/components/embed-card/menu/index.cjs.map +0 -1
- package/dist/browser/components/embed-card/menu/index.js +0 -47
- package/dist/browser/components/embed-card/menu/index.js.map +0 -1
- package/dist/browser/components/embed-plugin-stories/storyPayload.cjs +0 -47
- package/dist/browser/components/embed-plugin-stories/storyPayload.cjs.map +0 -1
- package/dist/browser/components/embed-plugin-stories/storyPayload.js +0 -26
- package/dist/browser/components/embed-plugin-stories/storyPayload.js.map +0 -1
- package/dist/browser/components/embed-plugin-stories/storyShared.cjs +0 -513
- package/dist/browser/components/embed-plugin-stories/storyShared.cjs.map +0 -1
- package/dist/browser/components/embed-plugin-stories/storyShared.js +0 -495
- package/dist/browser/components/embed-plugin-stories/storyShared.js.map +0 -1
- package/dist/browser/components/index.cjs +0 -503
- package/dist/browser/components/index.cjs.map +0 -1
- package/dist/browser/components/index.js +0 -483
- package/dist/browser/components/index.js.map +0 -1
- package/dist/browser/components/validation-alerts/ValidatePayload.cjs +0 -49
- package/dist/browser/components/validation-alerts/ValidatePayload.cjs.map +0 -1
- package/dist/browser/components/validation-alerts/ValidatePayload.js +0 -28
- package/dist/browser/components/validation-alerts/ValidatePayload.js.map +0 -1
- package/dist/browser/components/validation-alerts/ValidatePlugins.cjs +0 -57
- package/dist/browser/components/validation-alerts/ValidatePlugins.cjs.map +0 -1
- package/dist/browser/components/validation-alerts/ValidatePlugins.js +0 -36
- package/dist/browser/components/validation-alerts/ValidatePlugins.js.map +0 -1
- package/dist/browser/components/validation-alerts/index.cjs +0 -83
- package/dist/browser/components/validation-alerts/index.cjs.map +0 -1
- package/dist/browser/components/validation-alerts/index.js +0 -60
- package/dist/browser/components/validation-alerts/index.js.map +0 -1
- package/dist/browser/contexts/EmbedPluginContext/Context.cjs +0 -28
- package/dist/browser/contexts/EmbedPluginContext/Context.cjs.map +0 -1
- package/dist/browser/contexts/EmbedPluginContext/Context.js +0 -7
- package/dist/browser/contexts/EmbedPluginContext/Context.js.map +0 -1
- package/dist/browser/contexts/EmbedPluginContext/Provider.cjs +0 -62
- package/dist/browser/contexts/EmbedPluginContext/Provider.cjs.map +0 -1
- package/dist/browser/contexts/EmbedPluginContext/Provider.js +0 -41
- package/dist/browser/contexts/EmbedPluginContext/Provider.js.map +0 -1
- package/dist/browser/contexts/EmbedPluginContext/State.cjs +0 -19
- package/dist/browser/contexts/EmbedPluginContext/State.cjs.map +0 -1
- package/dist/browser/contexts/EmbedPluginContext/State.js +0 -1
- package/dist/browser/contexts/EmbedPluginContext/State.js.map +0 -1
- package/dist/browser/contexts/EmbedPluginContext/index.cjs +0 -68
- package/dist/browser/contexts/EmbedPluginContext/index.cjs.map +0 -1
- package/dist/browser/contexts/EmbedPluginContext/index.js +0 -45
- package/dist/browser/contexts/EmbedPluginContext/index.js.map +0 -1
- package/dist/browser/contexts/EmbedPluginContext/use.cjs +0 -34
- package/dist/browser/contexts/EmbedPluginContext/use.cjs.map +0 -1
- package/dist/browser/contexts/EmbedPluginContext/use.js +0 -13
- package/dist/browser/contexts/EmbedPluginContext/use.js.map +0 -1
- package/dist/browser/contexts/RefreshPayloadContext/Context.cjs +0 -28
- package/dist/browser/contexts/RefreshPayloadContext/Context.cjs.map +0 -1
- package/dist/browser/contexts/RefreshPayloadContext/Context.js +0 -7
- package/dist/browser/contexts/RefreshPayloadContext/Context.js.map +0 -1
- package/dist/browser/contexts/RefreshPayloadContext/Provider.cjs +0 -38
- package/dist/browser/contexts/RefreshPayloadContext/Provider.cjs.map +0 -1
- package/dist/browser/contexts/RefreshPayloadContext/Provider.js +0 -17
- package/dist/browser/contexts/RefreshPayloadContext/Provider.js.map +0 -1
- package/dist/browser/contexts/RefreshPayloadContext/State.cjs +0 -19
- package/dist/browser/contexts/RefreshPayloadContext/State.cjs.map +0 -1
- package/dist/browser/contexts/RefreshPayloadContext/State.js +0 -1
- package/dist/browser/contexts/RefreshPayloadContext/State.js.map +0 -1
- package/dist/browser/contexts/RefreshPayloadContext/index.cjs +0 -45
- package/dist/browser/contexts/RefreshPayloadContext/index.cjs.map +0 -1
- package/dist/browser/contexts/RefreshPayloadContext/index.js +0 -22
- package/dist/browser/contexts/RefreshPayloadContext/index.js.map +0 -1
- package/dist/browser/contexts/RefreshPayloadContext/use.cjs +0 -34
- package/dist/browser/contexts/RefreshPayloadContext/use.cjs.map +0 -1
- package/dist/browser/contexts/RefreshPayloadContext/use.js +0 -13
- package/dist/browser/contexts/RefreshPayloadContext/use.js.map +0 -1
- package/dist/browser/contexts/ResolvePayloadContext/Context.cjs +0 -28
- package/dist/browser/contexts/ResolvePayloadContext/Context.cjs.map +0 -1
- package/dist/browser/contexts/ResolvePayloadContext/Context.js +0 -7
- package/dist/browser/contexts/ResolvePayloadContext/Context.js.map +0 -1
- package/dist/browser/contexts/ResolvePayloadContext/Provider.cjs +0 -88
- package/dist/browser/contexts/ResolvePayloadContext/Provider.cjs.map +0 -1
- package/dist/browser/contexts/ResolvePayloadContext/Provider.js +0 -67
- package/dist/browser/contexts/ResolvePayloadContext/Provider.js.map +0 -1
- package/dist/browser/contexts/ResolvePayloadContext/State.cjs +0 -19
- package/dist/browser/contexts/ResolvePayloadContext/State.cjs.map +0 -1
- package/dist/browser/contexts/ResolvePayloadContext/State.js +0 -1
- package/dist/browser/contexts/ResolvePayloadContext/State.js.map +0 -1
- package/dist/browser/contexts/ResolvePayloadContext/index.cjs +0 -96
- package/dist/browser/contexts/ResolvePayloadContext/index.cjs.map +0 -1
- package/dist/browser/contexts/ResolvePayloadContext/index.js +0 -73
- package/dist/browser/contexts/ResolvePayloadContext/index.js.map +0 -1
- package/dist/browser/contexts/ResolvePayloadContext/use.cjs +0 -34
- package/dist/browser/contexts/ResolvePayloadContext/use.cjs.map +0 -1
- package/dist/browser/contexts/ResolvePayloadContext/use.js +0 -13
- package/dist/browser/contexts/ResolvePayloadContext/use.js.map +0 -1
- package/dist/browser/contexts/ValidatePayloadContext/Context.cjs +0 -28
- package/dist/browser/contexts/ValidatePayloadContext/Context.cjs.map +0 -1
- package/dist/browser/contexts/ValidatePayloadContext/Context.js +0 -7
- package/dist/browser/contexts/ValidatePayloadContext/Context.js.map +0 -1
- package/dist/browser/contexts/ValidatePayloadContext/Provider.cjs +0 -66
- package/dist/browser/contexts/ValidatePayloadContext/Provider.cjs.map +0 -1
- package/dist/browser/contexts/ValidatePayloadContext/Provider.js +0 -45
- package/dist/browser/contexts/ValidatePayloadContext/Provider.js.map +0 -1
- package/dist/browser/contexts/ValidatePayloadContext/State.cjs +0 -19
- package/dist/browser/contexts/ValidatePayloadContext/State.cjs.map +0 -1
- package/dist/browser/contexts/ValidatePayloadContext/State.js +0 -1
- package/dist/browser/contexts/ValidatePayloadContext/State.js.map +0 -1
- package/dist/browser/contexts/ValidatePayloadContext/index.cjs +0 -73
- package/dist/browser/contexts/ValidatePayloadContext/index.cjs.map +0 -1
- package/dist/browser/contexts/ValidatePayloadContext/index.js +0 -50
- package/dist/browser/contexts/ValidatePayloadContext/index.js.map +0 -1
- package/dist/browser/contexts/ValidatePayloadContext/use.cjs +0 -34
- package/dist/browser/contexts/ValidatePayloadContext/use.cjs.map +0 -1
- package/dist/browser/contexts/ValidatePayloadContext/use.js +0 -13
- package/dist/browser/contexts/ValidatePayloadContext/use.js.map +0 -1
- package/dist/browser/contexts/index.cjs +0 -189
- package/dist/browser/contexts/index.cjs.map +0 -1
- package/dist/browser/contexts/index.js +0 -166
- package/dist/browser/contexts/index.js.map +0 -1
- package/dist/browser/types/EmbedPluginProps.cjs +0 -19
- package/dist/browser/types/EmbedPluginProps.cjs.map +0 -1
- package/dist/browser/types/EmbedPluginProps.js +0 -1
- package/dist/browser/types/EmbedPluginProps.js.map +0 -1
- package/dist/browser/types/index.cjs +0 -19
- package/dist/browser/types/index.cjs.map +0 -1
- package/dist/browser/types/index.js +0 -1
- package/dist/browser/types/index.js.map +0 -1
- package/dist/docs.json +0 -4925
- package/dist/node/components/EmbedPlugin.cjs +0 -255
- package/dist/node/components/EmbedPlugin.cjs.map +0 -1
- package/dist/node/components/EmbedPlugin.js +0 -230
- package/dist/node/components/EmbedPlugin.js.map +0 -1
- package/dist/node/components/EmbedResolver.cjs +0 -46
- package/dist/node/components/EmbedResolver.cjs.map +0 -1
- package/dist/node/components/EmbedResolver.js +0 -21
- package/dist/node/components/EmbedResolver.js.map +0 -1
- package/dist/node/components/controls/EmbedFormControl.cjs +0 -38
- package/dist/node/components/controls/EmbedFormControl.cjs.map +0 -1
- package/dist/node/components/controls/EmbedFormControl.js +0 -13
- package/dist/node/components/controls/EmbedFormControl.js.map +0 -1
- package/dist/node/components/controls/ListModeSelect.cjs +0 -70
- package/dist/node/components/controls/ListModeSelect.cjs.map +0 -1
- package/dist/node/components/controls/ListModeSelect.js +0 -44
- package/dist/node/components/controls/ListModeSelect.js.map +0 -1
- package/dist/node/components/controls/RenderSelect.cjs +0 -58
- package/dist/node/components/controls/RenderSelect.cjs.map +0 -1
- package/dist/node/components/controls/RenderSelect.js +0 -33
- package/dist/node/components/controls/RenderSelect.js.map +0 -1
- package/dist/node/components/controls/index.cjs +0 -94
- package/dist/node/components/controls/index.cjs.map +0 -1
- package/dist/node/components/controls/index.js +0 -64
- package/dist/node/components/controls/index.js.map +0 -1
- package/dist/node/components/embed-card/EmbedCardResolver.cjs +0 -99
- package/dist/node/components/embed-card/EmbedCardResolver.cjs.map +0 -1
- package/dist/node/components/embed-card/EmbedCardResolver.js +0 -74
- package/dist/node/components/embed-card/EmbedCardResolver.js.map +0 -1
- package/dist/node/components/embed-card/EmbedPluginCard.cjs +0 -505
- package/dist/node/components/embed-card/EmbedPluginCard.cjs.map +0 -1
- package/dist/node/components/embed-card/EmbedPluginCard.js +0 -481
- package/dist/node/components/embed-card/EmbedPluginCard.js.map +0 -1
- package/dist/node/components/embed-card/card/BusyCard.cjs +0 -49
- package/dist/node/components/embed-card/card/BusyCard.cjs.map +0 -1
- package/dist/node/components/embed-card/card/BusyCard.js +0 -27
- package/dist/node/components/embed-card/card/BusyCard.js.map +0 -1
- package/dist/node/components/embed-card/card/EmbedCardHeader.cjs +0 -113
- package/dist/node/components/embed-card/card/EmbedCardHeader.cjs.map +0 -1
- package/dist/node/components/embed-card/card/EmbedCardHeader.js +0 -88
- package/dist/node/components/embed-card/card/EmbedCardHeader.js.map +0 -1
- package/dist/node/components/embed-card/card/EmbedPluginCard.cjs +0 -205
- package/dist/node/components/embed-card/card/EmbedPluginCard.cjs.map +0 -1
- package/dist/node/components/embed-card/card/EmbedPluginCard.js +0 -183
- package/dist/node/components/embed-card/card/EmbedPluginCard.js.map +0 -1
- package/dist/node/components/embed-card/card/index.cjs +0 -211
- package/dist/node/components/embed-card/card/index.cjs.map +0 -1
- package/dist/node/components/embed-card/card/index.js +0 -185
- package/dist/node/components/embed-card/card/index.js.map +0 -1
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.cjs +0 -58
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.cjs.map +0 -1
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +0 -33
- package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +0 -1
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.cjs +0 -46
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.cjs.map +0 -1
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.js +0 -21
- package/dist/node/components/embed-card/error-handling/EmbedErrorCard.js.map +0 -1
- package/dist/node/components/embed-card/error-handling/index.cjs +0 -62
- package/dist/node/components/embed-card/error-handling/index.cjs.map +0 -1
- package/dist/node/components/embed-card/error-handling/index.js +0 -34
- package/dist/node/components/embed-card/error-handling/index.js.map +0 -1
- package/dist/node/components/embed-card/index.cjs +0 -513
- package/dist/node/components/embed-card/index.cjs.map +0 -1
- package/dist/node/components/embed-card/index.js +0 -484
- package/dist/node/components/embed-card/index.js.map +0 -1
- package/dist/node/components/embed-card/menu/EmbedMenu.cjs +0 -72
- package/dist/node/components/embed-card/menu/EmbedMenu.cjs.map +0 -1
- package/dist/node/components/embed-card/menu/EmbedMenu.js +0 -47
- package/dist/node/components/embed-card/menu/EmbedMenu.js.map +0 -1
- package/dist/node/components/embed-card/menu/JsonMenuItem.cjs +0 -50
- package/dist/node/components/embed-card/menu/JsonMenuItem.cjs.map +0 -1
- package/dist/node/components/embed-card/menu/JsonMenuItem.js +0 -25
- package/dist/node/components/embed-card/menu/JsonMenuItem.js.map +0 -1
- package/dist/node/components/embed-card/menu/index.cjs +0 -74
- package/dist/node/components/embed-card/menu/index.cjs.map +0 -1
- package/dist/node/components/embed-card/menu/index.js +0 -47
- package/dist/node/components/embed-card/menu/index.js.map +0 -1
- package/dist/node/components/embed-plugin-stories/storyPayload.cjs +0 -51
- package/dist/node/components/embed-plugin-stories/storyPayload.cjs.map +0 -1
- package/dist/node/components/embed-plugin-stories/storyPayload.js +0 -26
- package/dist/node/components/embed-plugin-stories/storyPayload.js.map +0 -1
- package/dist/node/components/embed-plugin-stories/storyShared.cjs +0 -520
- package/dist/node/components/embed-plugin-stories/storyShared.cjs.map +0 -1
- package/dist/node/components/embed-plugin-stories/storyShared.js +0 -497
- package/dist/node/components/embed-plugin-stories/storyShared.js.map +0 -1
- package/dist/node/components/index.cjs +0 -515
- package/dist/node/components/index.cjs.map +0 -1
- package/dist/node/components/index.js +0 -485
- package/dist/node/components/index.js.map +0 -1
- package/dist/node/components/validation-alerts/ValidatePayload.cjs +0 -53
- package/dist/node/components/validation-alerts/ValidatePayload.cjs.map +0 -1
- package/dist/node/components/validation-alerts/ValidatePayload.js +0 -28
- package/dist/node/components/validation-alerts/ValidatePayload.js.map +0 -1
- package/dist/node/components/validation-alerts/ValidatePlugins.cjs +0 -61
- package/dist/node/components/validation-alerts/ValidatePlugins.cjs.map +0 -1
- package/dist/node/components/validation-alerts/ValidatePlugins.js +0 -36
- package/dist/node/components/validation-alerts/ValidatePlugins.js.map +0 -1
- package/dist/node/components/validation-alerts/index.cjs +0 -88
- package/dist/node/components/validation-alerts/index.cjs.map +0 -1
- package/dist/node/components/validation-alerts/index.js +0 -60
- package/dist/node/components/validation-alerts/index.js.map +0 -1
- package/dist/node/contexts/EmbedPluginContext/Context.cjs +0 -32
- package/dist/node/contexts/EmbedPluginContext/Context.cjs.map +0 -1
- package/dist/node/contexts/EmbedPluginContext/Context.js +0 -7
- package/dist/node/contexts/EmbedPluginContext/Context.js.map +0 -1
- package/dist/node/contexts/EmbedPluginContext/Provider.cjs +0 -66
- package/dist/node/contexts/EmbedPluginContext/Provider.cjs.map +0 -1
- package/dist/node/contexts/EmbedPluginContext/Provider.js +0 -41
- package/dist/node/contexts/EmbedPluginContext/Provider.js.map +0 -1
- package/dist/node/contexts/EmbedPluginContext/State.cjs +0 -19
- package/dist/node/contexts/EmbedPluginContext/State.cjs.map +0 -1
- package/dist/node/contexts/EmbedPluginContext/State.js +0 -1
- package/dist/node/contexts/EmbedPluginContext/State.js.map +0 -1
- package/dist/node/contexts/EmbedPluginContext/index.cjs +0 -74
- package/dist/node/contexts/EmbedPluginContext/index.cjs.map +0 -1
- package/dist/node/contexts/EmbedPluginContext/index.js +0 -45
- package/dist/node/contexts/EmbedPluginContext/index.js.map +0 -1
- package/dist/node/contexts/EmbedPluginContext/use.cjs +0 -38
- package/dist/node/contexts/EmbedPluginContext/use.cjs.map +0 -1
- package/dist/node/contexts/EmbedPluginContext/use.js +0 -13
- package/dist/node/contexts/EmbedPluginContext/use.js.map +0 -1
- package/dist/node/contexts/RefreshPayloadContext/Context.cjs +0 -32
- package/dist/node/contexts/RefreshPayloadContext/Context.cjs.map +0 -1
- package/dist/node/contexts/RefreshPayloadContext/Context.js +0 -7
- package/dist/node/contexts/RefreshPayloadContext/Context.js.map +0 -1
- package/dist/node/contexts/RefreshPayloadContext/Provider.cjs +0 -42
- package/dist/node/contexts/RefreshPayloadContext/Provider.cjs.map +0 -1
- package/dist/node/contexts/RefreshPayloadContext/Provider.js +0 -17
- package/dist/node/contexts/RefreshPayloadContext/Provider.js.map +0 -1
- package/dist/node/contexts/RefreshPayloadContext/State.cjs +0 -19
- package/dist/node/contexts/RefreshPayloadContext/State.cjs.map +0 -1
- package/dist/node/contexts/RefreshPayloadContext/State.js +0 -1
- package/dist/node/contexts/RefreshPayloadContext/State.js.map +0 -1
- package/dist/node/contexts/RefreshPayloadContext/index.cjs +0 -50
- package/dist/node/contexts/RefreshPayloadContext/index.cjs.map +0 -1
- package/dist/node/contexts/RefreshPayloadContext/index.js +0 -22
- package/dist/node/contexts/RefreshPayloadContext/index.js.map +0 -1
- package/dist/node/contexts/RefreshPayloadContext/use.cjs +0 -38
- package/dist/node/contexts/RefreshPayloadContext/use.cjs.map +0 -1
- package/dist/node/contexts/RefreshPayloadContext/use.js +0 -13
- package/dist/node/contexts/RefreshPayloadContext/use.js.map +0 -1
- package/dist/node/contexts/ResolvePayloadContext/Context.cjs +0 -32
- package/dist/node/contexts/ResolvePayloadContext/Context.cjs.map +0 -1
- package/dist/node/contexts/ResolvePayloadContext/Context.js +0 -7
- package/dist/node/contexts/ResolvePayloadContext/Context.js.map +0 -1
- package/dist/node/contexts/ResolvePayloadContext/Provider.cjs +0 -92
- package/dist/node/contexts/ResolvePayloadContext/Provider.cjs.map +0 -1
- package/dist/node/contexts/ResolvePayloadContext/Provider.js +0 -67
- package/dist/node/contexts/ResolvePayloadContext/Provider.js.map +0 -1
- package/dist/node/contexts/ResolvePayloadContext/State.cjs +0 -19
- package/dist/node/contexts/ResolvePayloadContext/State.cjs.map +0 -1
- package/dist/node/contexts/ResolvePayloadContext/State.js +0 -1
- package/dist/node/contexts/ResolvePayloadContext/State.js.map +0 -1
- package/dist/node/contexts/ResolvePayloadContext/index.cjs +0 -102
- package/dist/node/contexts/ResolvePayloadContext/index.cjs.map +0 -1
- package/dist/node/contexts/ResolvePayloadContext/index.js +0 -73
- package/dist/node/contexts/ResolvePayloadContext/index.js.map +0 -1
- package/dist/node/contexts/ResolvePayloadContext/use.cjs +0 -38
- package/dist/node/contexts/ResolvePayloadContext/use.cjs.map +0 -1
- package/dist/node/contexts/ResolvePayloadContext/use.js +0 -13
- package/dist/node/contexts/ResolvePayloadContext/use.js.map +0 -1
- package/dist/node/contexts/ValidatePayloadContext/Context.cjs +0 -32
- package/dist/node/contexts/ValidatePayloadContext/Context.cjs.map +0 -1
- package/dist/node/contexts/ValidatePayloadContext/Context.js +0 -7
- package/dist/node/contexts/ValidatePayloadContext/Context.js.map +0 -1
- package/dist/node/contexts/ValidatePayloadContext/Provider.cjs +0 -70
- package/dist/node/contexts/ValidatePayloadContext/Provider.cjs.map +0 -1
- package/dist/node/contexts/ValidatePayloadContext/Provider.js +0 -45
- package/dist/node/contexts/ValidatePayloadContext/Provider.js.map +0 -1
- package/dist/node/contexts/ValidatePayloadContext/State.cjs +0 -19
- package/dist/node/contexts/ValidatePayloadContext/State.cjs.map +0 -1
- package/dist/node/contexts/ValidatePayloadContext/State.js +0 -1
- package/dist/node/contexts/ValidatePayloadContext/State.js.map +0 -1
- package/dist/node/contexts/ValidatePayloadContext/index.cjs +0 -78
- package/dist/node/contexts/ValidatePayloadContext/index.cjs.map +0 -1
- package/dist/node/contexts/ValidatePayloadContext/index.js +0 -50
- package/dist/node/contexts/ValidatePayloadContext/index.js.map +0 -1
- package/dist/node/contexts/ValidatePayloadContext/use.cjs +0 -38
- package/dist/node/contexts/ValidatePayloadContext/use.cjs.map +0 -1
- package/dist/node/contexts/ValidatePayloadContext/use.js +0 -13
- package/dist/node/contexts/ValidatePayloadContext/use.js.map +0 -1
- package/dist/node/contexts/index.cjs +0 -202
- package/dist/node/contexts/index.cjs.map +0 -1
- package/dist/node/contexts/index.js +0 -166
- package/dist/node/contexts/index.js.map +0 -1
- package/dist/node/types/EmbedPluginProps.cjs +0 -19
- package/dist/node/types/EmbedPluginProps.cjs.map +0 -1
- package/dist/node/types/EmbedPluginProps.js +0 -1
- package/dist/node/types/EmbedPluginProps.js.map +0 -1
- package/dist/node/types/index.cjs +0 -19
- package/dist/node/types/index.cjs.map +0 -1
- package/dist/node/types/index.js +0 -1
- package/dist/node/types/index.js.map +0 -1
@@ -1,211 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name in all)
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
-
};
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
-
for (let key of __getOwnPropNames(from))
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
-
}
|
16
|
-
return to;
|
17
|
-
};
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
|
20
|
-
// src/components/embed-card/card/index.ts
|
21
|
-
var card_exports = {};
|
22
|
-
__export(card_exports, {
|
23
|
-
BusyCard: () => BusyCard,
|
24
|
-
EmbedCardHeader: () => EmbedCardHeader,
|
25
|
-
EmbedPluginCard: () => EmbedPluginCard
|
26
|
-
});
|
27
|
-
module.exports = __toCommonJS(card_exports);
|
28
|
-
|
29
|
-
// src/components/embed-card/card/BusyCard.tsx
|
30
|
-
var import_material = require("@mui/material");
|
31
|
-
var import_react_flexbox = require("@xylabs/react-flexbox");
|
32
|
-
var import_react_shared = require("@xylabs/react-shared");
|
33
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
34
|
-
var BusyCard = ({
|
35
|
-
busy,
|
36
|
-
busyMinimum = 500,
|
37
|
-
busyVariant = "circular",
|
38
|
-
busyVariantProps,
|
39
|
-
children,
|
40
|
-
...props
|
41
|
-
}) => {
|
42
|
-
const internalBusy = (0, import_react_flexbox.useBusyTiming)(busy, busyMinimum);
|
43
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Card, { ...props, children: [
|
44
|
-
children,
|
45
|
-
busyVariant === "circular" && internalBusy ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_shared.BusyCircularProgress, { ...busyVariantProps }) : null,
|
46
|
-
busyVariant === "linear" && internalBusy ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_shared.BusyLinearProgress, { ...busyVariantProps }) : null
|
47
|
-
] });
|
48
|
-
};
|
49
|
-
|
50
|
-
// src/components/embed-card/card/EmbedCardHeader.tsx
|
51
|
-
var import_icons_material3 = require("@mui/icons-material");
|
52
|
-
var import_material4 = require("@mui/material");
|
53
|
-
var import_react_flexbox2 = require("@xylabs/react-flexbox");
|
54
|
-
|
55
|
-
// src/contexts/EmbedPluginContext/Context.tsx
|
56
|
-
var import_react_shared2 = require("@xyo-network/react-shared");
|
57
|
-
var EmbedPluginContext = (0, import_react_shared2.createContextEx)();
|
58
|
-
|
59
|
-
// src/contexts/EmbedPluginContext/use.tsx
|
60
|
-
var import_react_shared3 = require("@xyo-network/react-shared");
|
61
|
-
var useEmbedPluginState = () => (0, import_react_shared3.useContextEx)(EmbedPluginContext, "EmbedPlugin", true);
|
62
|
-
|
63
|
-
// src/contexts/ResolvePayloadContext/Context.ts
|
64
|
-
var import_react_shared4 = require("@xyo-network/react-shared");
|
65
|
-
var ResolvePayloadContext = (0, import_react_shared4.createContextEx)();
|
66
|
-
|
67
|
-
// src/contexts/ResolvePayloadContext/use.tsx
|
68
|
-
var import_react_shared5 = require("@xyo-network/react-shared");
|
69
|
-
var useResolvePayload = () => (0, import_react_shared5.useContextEx)(ResolvePayloadContext, "ResolvePayload", true);
|
70
|
-
|
71
|
-
// src/components/embed-card/menu/EmbedMenu.tsx
|
72
|
-
var import_icons_material2 = require("@mui/icons-material");
|
73
|
-
var import_material3 = require("@mui/material");
|
74
|
-
var import_react = require("react");
|
75
|
-
|
76
|
-
// src/components/embed-card/menu/JsonMenuItem.tsx
|
77
|
-
var import_icons_material = require("@mui/icons-material");
|
78
|
-
var import_material2 = require("@mui/material");
|
79
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
80
|
-
var JsonMenuItem = (props) => {
|
81
|
-
const { huri } = useResolvePayload();
|
82
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: huri ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_material2.MenuItem, { title: "Source Payload JSON", onClick: () => window.open(huri, "_blank"), ...props, children: [
|
83
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.ListItemText, { sx: { mr: 1 }, children: "JSON" }),
|
84
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.ListItemIcon, { sx: { justifyContent: "end" }, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_icons_material.OpenInNew, { fontSize: "small" }) })
|
85
|
-
] }) : null });
|
86
|
-
};
|
87
|
-
|
88
|
-
// src/components/embed-card/menu/EmbedMenu.tsx
|
89
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
90
|
-
var EmbedMenu = (props) => {
|
91
|
-
const [anchorEl, setAnchorEl] = (0, import_react.useState)(null);
|
92
|
-
const open = Boolean(anchorEl);
|
93
|
-
const handleClick = (event) => {
|
94
|
-
setAnchorEl(event.currentTarget);
|
95
|
-
};
|
96
|
-
const handleClose = () => {
|
97
|
-
setAnchorEl(null);
|
98
|
-
};
|
99
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
|
100
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.IconButton, { onClick: handleClick, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons_material2.MoreVert, {}) }),
|
101
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Menu, { anchorEl, open, onClose: handleClose, PaperProps: { variant: "elevation" }, MenuListProps: { dense: true }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(JsonMenuItem, {}) })
|
102
|
-
] });
|
103
|
-
};
|
104
|
-
|
105
|
-
// src/components/embed-card/card/EmbedCardHeader.tsx
|
106
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
107
|
-
var EmbedCardHeader = () => {
|
108
|
-
var _a;
|
109
|
-
const { refreshHuri, huri } = useResolvePayload();
|
110
|
-
const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState();
|
111
|
-
const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {};
|
112
|
-
const timestamp = Date.now();
|
113
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
114
|
-
import_material4.CardHeader,
|
115
|
-
{
|
116
|
-
sx: { flexWrap: "wrap", rowGap: 1 },
|
117
|
-
avatar: hideAvatar ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, {}) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material4.Avatar, { sx: { bgcolor: (theme) => theme.palette.primary.main }, "aria-label": activePlugin == null ? void 0 : activePlugin.name, children: (_a = activePlugin == null ? void 0 : activePlugin.name) == null ? void 0 : _a.charAt(0) }),
|
118
|
-
action: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_react_flexbox2.FlexRow, { flexWrap: "wrap", columnGap: 0.5, children: [
|
119
|
-
timestamp ? hideTimestamp && hideRefreshButton ? "" : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
120
|
-
import_material4.Chip,
|
121
|
-
{
|
122
|
-
avatar: hideRefreshButton ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, {}) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_icons_material3.Refresh, {}),
|
123
|
-
clickable: hideRefreshButton ? false : true,
|
124
|
-
onClick: refreshHuri,
|
125
|
-
label: hideTimestamp ? "" : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`
|
126
|
-
}
|
127
|
-
) : null,
|
128
|
-
hideCardActions || huri === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(EmbedMenu, {})
|
129
|
-
] }),
|
130
|
-
title: hideTitle ? "" : activePlugin == null ? void 0 : activePlugin.name
|
131
|
-
}
|
132
|
-
);
|
133
|
-
};
|
134
|
-
|
135
|
-
// src/components/embed-card/card/EmbedPluginCard.tsx
|
136
|
-
var import_material8 = require("@mui/material");
|
137
|
-
var import_react_flexbox3 = require("@xylabs/react-flexbox");
|
138
|
-
var import_react_shared7 = require("@xyo-network/react-shared");
|
139
|
-
|
140
|
-
// src/components/controls/EmbedFormControl.tsx
|
141
|
-
var import_material5 = require("@mui/material");
|
142
|
-
var import_jsx_runtime5 = require("react/jsx-runtime");
|
143
|
-
var EmbedFormControl = ({ formId, formLabel, children, ...props }) => {
|
144
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_material5.FormControl, { ...props, children: [
|
145
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.InputLabel, { id: formId, children: formLabel }),
|
146
|
-
children
|
147
|
-
] });
|
148
|
-
};
|
149
|
-
|
150
|
-
// src/components/controls/ListModeSelect.tsx
|
151
|
-
var import_material6 = require("@mui/material");
|
152
|
-
var import_react_shared6 = require("@xyo-network/react-shared");
|
153
|
-
var import_jsx_runtime6 = require("react/jsx-runtime");
|
154
|
-
var listModeSelectId = "listmode-select-id";
|
155
|
-
var listModeSelectLabel = "List Mode";
|
156
|
-
var ListModeSelect = (props) => {
|
157
|
-
const { listMode, setListMode } = (0, import_react_shared6.useListMode)();
|
158
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
159
|
-
import_material6.Select,
|
160
|
-
{
|
161
|
-
value: listMode ?? "default",
|
162
|
-
onChange: (event) => {
|
163
|
-
setListMode == null ? void 0 : setListMode(event.target.value);
|
164
|
-
},
|
165
|
-
...props,
|
166
|
-
children: [
|
167
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material6.MenuItem, { value: "default", children: "Default" }, "default"),
|
168
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material6.MenuItem, { value: "table", children: "Table" }, "table"),
|
169
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material6.MenuItem, { value: "grid", children: "Grid" }, "grid")
|
170
|
-
]
|
171
|
-
}
|
172
|
-
);
|
173
|
-
};
|
174
|
-
var ListModeSelectFormControl = (props) => {
|
175
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(EmbedFormControl, { formId: listModeSelectId, formLabel: listModeSelectLabel, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ListModeSelect, { size: "small", label: listModeSelectLabel, labelId: listModeSelectId, ...props }) });
|
176
|
-
};
|
177
|
-
|
178
|
-
// src/components/controls/RenderSelect.tsx
|
179
|
-
var import_material7 = require("@mui/material");
|
180
|
-
var import_jsx_runtime7 = require("react/jsx-runtime");
|
181
|
-
var renderSelectId = "render-select-id";
|
182
|
-
var renderSelectLabel = "Renderer";
|
183
|
-
var EmbedRenderSelect = (props) => {
|
184
|
-
const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState();
|
185
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(EmbedFormControl, { formId: renderSelectId, formLabel: renderSelectLabel, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material7.Select, { size: "small", value: activePlugin == null ? void 0 : activePlugin.name, ...props, children: plugins == null ? void 0 : plugins.map((plugin) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material7.MenuItem, { value: plugin.name, onClick: () => setActivePlugin == null ? void 0 : setActivePlugin(plugin), children: plugin.name }, plugin.name)) }) });
|
186
|
-
};
|
187
|
-
|
188
|
-
// src/components/embed-card/card/EmbedPluginCard.tsx
|
189
|
-
var import_jsx_runtime8 = require("react/jsx-runtime");
|
190
|
-
var EmbedPluginCard = ({ ...props }) => {
|
191
|
-
var _a, _b, _c;
|
192
|
-
const { payload } = useResolvePayload();
|
193
|
-
const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = useEmbedPluginState();
|
194
|
-
const { listMode } = (0, import_react_shared7.useListMode)();
|
195
|
-
const supportsListMode = ((_c = (_b = (_a = ActivePlugin == null ? void 0 : ActivePlugin.components) == null ? void 0 : _a.box) == null ? void 0 : _b.listModes) == null ? void 0 : _c.length) ?? 0 > 1;
|
196
|
-
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(BusyCard, { ...props, children: [
|
197
|
-
(hideElementsConfig == null ? void 0 : hideElementsConfig.hideCardHeader) ? null : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(EmbedCardHeader, {}),
|
198
|
-
plugins && plugins.length || supportsListMode ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react_flexbox3.FlexGrowRow, { columnGap: 2, rowGap: 2, flexWrap: "wrap", pb: 1, children: [
|
199
|
-
plugins && plugins.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(EmbedRenderSelect, {}) : null,
|
200
|
-
supportsListMode ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ListModeSelectFormControl, {}) : null
|
201
|
-
] }) : null,
|
202
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material8.CardContent, { sx: { height: "100%" }, children: ActivePlugin ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ActivePlugin.components.box.detailsBox, { payload, ...supportsListMode && { listMode } }) : null })
|
203
|
-
] });
|
204
|
-
};
|
205
|
-
// Annotate the CommonJS export names for ESM import in node:
|
206
|
-
0 && (module.exports = {
|
207
|
-
BusyCard,
|
208
|
-
EmbedCardHeader,
|
209
|
-
EmbedPluginCard
|
210
|
-
});
|
211
|
-
//# sourceMappingURL=index.cjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/embed-card/card/index.ts","../../../../../src/components/embed-card/card/BusyCard.tsx","../../../../../src/components/embed-card/card/EmbedCardHeader.tsx","../../../../../src/contexts/EmbedPluginContext/Context.tsx","../../../../../src/contexts/EmbedPluginContext/use.tsx","../../../../../src/contexts/ResolvePayloadContext/Context.ts","../../../../../src/contexts/ResolvePayloadContext/use.tsx","../../../../../src/components/embed-card/menu/EmbedMenu.tsx","../../../../../src/components/embed-card/menu/JsonMenuItem.tsx","../../../../../src/components/embed-card/card/EmbedPluginCard.tsx","../../../../../src/components/controls/EmbedFormControl.tsx","../../../../../src/components/controls/ListModeSelect.tsx","../../../../../src/components/controls/RenderSelect.tsx"],"sourcesContent":["export * from './BusyCard'\nexport * from './EmbedCardHeader'\nexport * from './EmbedPluginCard'\n","import { Card, CardProps } from '@mui/material'\nimport { useBusyTiming } from '@xylabs/react-flexbox'\nimport {\n BusyCircularProgress,\n BusyCircularProgressProps,\n BusyLinearProgress,\n BusyLinearProgressProps,\n BusyVariant,\n WithChildren,\n} from '@xylabs/react-shared'\n\nexport interface BusyCardProps extends CardProps {\n busy?: boolean\n busyMinimum?: number\n busyVariant?: BusyVariant\n busyVariantProps?: BusyCircularProgressProps | BusyLinearProgressProps\n}\n\nexport const BusyCard: React.FC<WithChildren<BusyCardProps>> = ({\n busy,\n busyMinimum = 500,\n busyVariant = 'circular',\n busyVariantProps,\n children,\n ...props\n}) => {\n const internalBusy = useBusyTiming(busy, busyMinimum)\n return (\n <Card {...props}>\n {children}\n {busyVariant === 'circular' && internalBusy ? <BusyCircularProgress {...(busyVariantProps as BusyCircularProgressProps)} /> : null}\n {busyVariant === 'linear' && internalBusy ? <BusyLinearProgress {...(busyVariantProps as BusyLinearProgressProps)} /> : null}\n </Card>\n )\n}\n","import { Refresh as RefreshIcon } from '@mui/icons-material'\nimport { Avatar, CardHeader, CardHeaderProps, Chip, Theme } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../../contexts'\nimport { EmbedMenu } from '../menu'\n\nexport const EmbedCardHeader: React.FC<CardHeaderProps> = () => {\n const { refreshHuri, huri } = useResolvePayload()\n const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState()\n const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {}\n //this is temporary so that we can add the ability to get a timestamp via diviner later\n const timestamp = Date.now()\n return (\n <CardHeader\n sx={{ flexWrap: 'wrap', rowGap: 1 }}\n avatar={\n hideAvatar ? (\n <></>\n ) : (\n <Avatar sx={{ bgcolor: (theme: Theme) => theme.palette.primary.main }} aria-label={activePlugin?.name}>\n {activePlugin?.name?.charAt(0)}\n </Avatar>\n )\n }\n action={\n <FlexRow flexWrap=\"wrap\" columnGap={0.5}>\n {timestamp ? (\n hideTimestamp && hideRefreshButton ? (\n ''\n ) : (\n <Chip\n avatar={hideRefreshButton ? <></> : <RefreshIcon />}\n clickable={hideRefreshButton ? false : true}\n onClick={refreshHuri}\n label={hideTimestamp ? '' : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`}\n />\n )\n ) : null}\n {/* Huri case is valid as long as the only menu item is JSON */}\n {hideCardActions || huri === undefined ? null : <EmbedMenu />}\n </FlexRow>\n }\n title={hideTitle ? '' : activePlugin?.name}\n />\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","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 { MoreVert as MoreVertIcon } from '@mui/icons-material'\nimport { IconButton, IconButtonProps, Menu } from '@mui/material'\nimport { useState } from 'react'\n\nimport { JsonMenuItem } from './JsonMenuItem'\n\nexport const EmbedMenu: React.FC<IconButtonProps> = (props) => {\n // TODO - link to explore website\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null)\n const open = Boolean(anchorEl)\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget)\n }\n const handleClose = () => {\n setAnchorEl(null)\n }\n\n return (\n <>\n <IconButton onClick={handleClick} {...props}>\n <MoreVertIcon />\n </IconButton>\n <Menu anchorEl={anchorEl} open={open} onClose={handleClose} PaperProps={{ variant: 'elevation' }} MenuListProps={{ dense: true }}>\n <JsonMenuItem />\n </Menu>\n </>\n )\n}\n","import { OpenInNew as OpenInNewIcon } from '@mui/icons-material'\nimport { ListItemIcon, ListItemText, MenuItem, MenuItemProps } from '@mui/material'\n\nimport { useResolvePayload } from '../../../contexts'\n\nexport const JsonMenuItem: React.FC<MenuItemProps> = (props) => {\n const { huri } = useResolvePayload()\n\n return (\n <>\n {huri ? (\n <MenuItem title=\"Source Payload JSON\" onClick={() => window.open(huri, '_blank')} {...props}>\n <ListItemText sx={{ mr: 1 }}>JSON</ListItemText>\n <ListItemIcon sx={{ justifyContent: 'end' }}>\n <OpenInNewIcon fontSize=\"small\" />\n </ListItemIcon>\n </MenuItem>\n ) : null}\n </>\n )\n}\n","import { CardContent } from '@mui/material'\nimport { FlexGrowRow } from '@xylabs/react-flexbox'\nimport { useListMode } from '@xyo-network/react-shared'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../../contexts'\nimport { EmbedRenderSelect, ListModeSelectFormControl } from '../../controls'\nimport { BusyCard, BusyCardProps } from './BusyCard'\nimport { EmbedCardHeader } from './EmbedCardHeader'\n\nexport const EmbedPluginCard: React.FC<BusyCardProps> = ({ ...props }) => {\n const { payload } = useResolvePayload()\n const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = useEmbedPluginState()\n const { listMode } = useListMode()\n const supportsListMode = ActivePlugin?.components?.box?.listModes?.length ?? 0 > 1\n\n return (\n <BusyCard {...props}>\n {hideElementsConfig?.hideCardHeader ? null : <EmbedCardHeader />}\n {/* Only show the row if the children are present */}\n {(plugins && plugins.length) || supportsListMode ? (\n <FlexGrowRow columnGap={2} rowGap={2} flexWrap=\"wrap\" pb={1}>\n {plugins && plugins.length > 1 ? <EmbedRenderSelect /> : null}\n {supportsListMode ? <ListModeSelectFormControl /> : null}\n </FlexGrowRow>\n ) : null}\n <CardContent sx={{ height: '100%' }}>\n {ActivePlugin ? <ActivePlugin.components.box.detailsBox payload={payload} {...(supportsListMode && { listMode })} /> : null}\n </CardContent>\n </BusyCard>\n )\n}\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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,sBAAgC;A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_react_shared","import_react_shared","import_react_shared","import_react_shared","import_icons_material","import_material","import_material","import_jsx_runtime","OpenInNewIcon","import_jsx_runtime","MoreVertIcon","import_jsx_runtime","RefreshIcon","import_material","import_react_flexbox","import_react_shared","import_material","import_jsx_runtime","import_material","import_react_shared","import_jsx_runtime","import_material","import_jsx_runtime","import_jsx_runtime"]}
|
@@ -1,185 +0,0 @@
|
|
1
|
-
// src/components/embed-card/card/BusyCard.tsx
|
2
|
-
import { Card } from "@mui/material";
|
3
|
-
import { useBusyTiming } from "@xylabs/react-flexbox";
|
4
|
-
import {
|
5
|
-
BusyCircularProgress,
|
6
|
-
BusyLinearProgress
|
7
|
-
} from "@xylabs/react-shared";
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
9
|
-
var BusyCard = ({
|
10
|
-
busy,
|
11
|
-
busyMinimum = 500,
|
12
|
-
busyVariant = "circular",
|
13
|
-
busyVariantProps,
|
14
|
-
children,
|
15
|
-
...props
|
16
|
-
}) => {
|
17
|
-
const internalBusy = useBusyTiming(busy, busyMinimum);
|
18
|
-
return /* @__PURE__ */ jsxs(Card, { ...props, children: [
|
19
|
-
children,
|
20
|
-
busyVariant === "circular" && internalBusy ? /* @__PURE__ */ jsx(BusyCircularProgress, { ...busyVariantProps }) : null,
|
21
|
-
busyVariant === "linear" && internalBusy ? /* @__PURE__ */ jsx(BusyLinearProgress, { ...busyVariantProps }) : null
|
22
|
-
] });
|
23
|
-
};
|
24
|
-
|
25
|
-
// src/components/embed-card/card/EmbedCardHeader.tsx
|
26
|
-
import { Refresh as RefreshIcon } from "@mui/icons-material";
|
27
|
-
import { Avatar, CardHeader, Chip } from "@mui/material";
|
28
|
-
import { FlexRow } from "@xylabs/react-flexbox";
|
29
|
-
|
30
|
-
// src/contexts/EmbedPluginContext/Context.tsx
|
31
|
-
import { createContextEx } from "@xyo-network/react-shared";
|
32
|
-
var EmbedPluginContext = createContextEx();
|
33
|
-
|
34
|
-
// src/contexts/EmbedPluginContext/use.tsx
|
35
|
-
import { useContextEx } from "@xyo-network/react-shared";
|
36
|
-
var useEmbedPluginState = () => useContextEx(EmbedPluginContext, "EmbedPlugin", true);
|
37
|
-
|
38
|
-
// src/contexts/ResolvePayloadContext/Context.ts
|
39
|
-
import { createContextEx as createContextEx2 } from "@xyo-network/react-shared";
|
40
|
-
var ResolvePayloadContext = createContextEx2();
|
41
|
-
|
42
|
-
// src/contexts/ResolvePayloadContext/use.tsx
|
43
|
-
import { useContextEx as useContextEx2 } from "@xyo-network/react-shared";
|
44
|
-
var useResolvePayload = () => useContextEx2(ResolvePayloadContext, "ResolvePayload", true);
|
45
|
-
|
46
|
-
// src/components/embed-card/menu/EmbedMenu.tsx
|
47
|
-
import { MoreVert as MoreVertIcon } from "@mui/icons-material";
|
48
|
-
import { IconButton, Menu } from "@mui/material";
|
49
|
-
import { useState } from "react";
|
50
|
-
|
51
|
-
// src/components/embed-card/menu/JsonMenuItem.tsx
|
52
|
-
import { OpenInNew as OpenInNewIcon } from "@mui/icons-material";
|
53
|
-
import { ListItemIcon, ListItemText, MenuItem } from "@mui/material";
|
54
|
-
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
55
|
-
var JsonMenuItem = (props) => {
|
56
|
-
const { huri } = useResolvePayload();
|
57
|
-
return /* @__PURE__ */ jsx2(Fragment, { children: huri ? /* @__PURE__ */ jsxs2(MenuItem, { title: "Source Payload JSON", onClick: () => window.open(huri, "_blank"), ...props, children: [
|
58
|
-
/* @__PURE__ */ jsx2(ListItemText, { sx: { mr: 1 }, children: "JSON" }),
|
59
|
-
/* @__PURE__ */ jsx2(ListItemIcon, { sx: { justifyContent: "end" }, children: /* @__PURE__ */ jsx2(OpenInNewIcon, { fontSize: "small" }) })
|
60
|
-
] }) : null });
|
61
|
-
};
|
62
|
-
|
63
|
-
// src/components/embed-card/menu/EmbedMenu.tsx
|
64
|
-
import { Fragment as Fragment2, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
65
|
-
var EmbedMenu = (props) => {
|
66
|
-
const [anchorEl, setAnchorEl] = useState(null);
|
67
|
-
const open = Boolean(anchorEl);
|
68
|
-
const handleClick = (event) => {
|
69
|
-
setAnchorEl(event.currentTarget);
|
70
|
-
};
|
71
|
-
const handleClose = () => {
|
72
|
-
setAnchorEl(null);
|
73
|
-
};
|
74
|
-
return /* @__PURE__ */ jsxs3(Fragment2, { children: [
|
75
|
-
/* @__PURE__ */ jsx3(IconButton, { onClick: handleClick, ...props, children: /* @__PURE__ */ jsx3(MoreVertIcon, {}) }),
|
76
|
-
/* @__PURE__ */ jsx3(Menu, { anchorEl, open, onClose: handleClose, PaperProps: { variant: "elevation" }, MenuListProps: { dense: true }, children: /* @__PURE__ */ jsx3(JsonMenuItem, {}) })
|
77
|
-
] });
|
78
|
-
};
|
79
|
-
|
80
|
-
// src/components/embed-card/card/EmbedCardHeader.tsx
|
81
|
-
import { Fragment as Fragment3, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
82
|
-
var EmbedCardHeader = () => {
|
83
|
-
var _a;
|
84
|
-
const { refreshHuri, huri } = useResolvePayload();
|
85
|
-
const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState();
|
86
|
-
const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {};
|
87
|
-
const timestamp = Date.now();
|
88
|
-
return /* @__PURE__ */ jsx4(
|
89
|
-
CardHeader,
|
90
|
-
{
|
91
|
-
sx: { flexWrap: "wrap", rowGap: 1 },
|
92
|
-
avatar: hideAvatar ? /* @__PURE__ */ jsx4(Fragment3, {}) : /* @__PURE__ */ jsx4(Avatar, { sx: { bgcolor: (theme) => theme.palette.primary.main }, "aria-label": activePlugin == null ? void 0 : activePlugin.name, children: (_a = activePlugin == null ? void 0 : activePlugin.name) == null ? void 0 : _a.charAt(0) }),
|
93
|
-
action: /* @__PURE__ */ jsxs4(FlexRow, { flexWrap: "wrap", columnGap: 0.5, children: [
|
94
|
-
timestamp ? hideTimestamp && hideRefreshButton ? "" : /* @__PURE__ */ jsx4(
|
95
|
-
Chip,
|
96
|
-
{
|
97
|
-
avatar: hideRefreshButton ? /* @__PURE__ */ jsx4(Fragment3, {}) : /* @__PURE__ */ jsx4(RefreshIcon, {}),
|
98
|
-
clickable: hideRefreshButton ? false : true,
|
99
|
-
onClick: refreshHuri,
|
100
|
-
label: hideTimestamp ? "" : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`
|
101
|
-
}
|
102
|
-
) : null,
|
103
|
-
hideCardActions || huri === void 0 ? null : /* @__PURE__ */ jsx4(EmbedMenu, {})
|
104
|
-
] }),
|
105
|
-
title: hideTitle ? "" : activePlugin == null ? void 0 : activePlugin.name
|
106
|
-
}
|
107
|
-
);
|
108
|
-
};
|
109
|
-
|
110
|
-
// src/components/embed-card/card/EmbedPluginCard.tsx
|
111
|
-
import { CardContent } from "@mui/material";
|
112
|
-
import { FlexGrowRow } from "@xylabs/react-flexbox";
|
113
|
-
import { useListMode as useListMode2 } from "@xyo-network/react-shared";
|
114
|
-
|
115
|
-
// src/components/controls/EmbedFormControl.tsx
|
116
|
-
import { FormControl, InputLabel } from "@mui/material";
|
117
|
-
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
118
|
-
var EmbedFormControl = ({ formId, formLabel, children, ...props }) => {
|
119
|
-
return /* @__PURE__ */ jsxs5(FormControl, { ...props, children: [
|
120
|
-
/* @__PURE__ */ jsx5(InputLabel, { id: formId, children: formLabel }),
|
121
|
-
children
|
122
|
-
] });
|
123
|
-
};
|
124
|
-
|
125
|
-
// src/components/controls/ListModeSelect.tsx
|
126
|
-
import { MenuItem as MenuItem2, Select } from "@mui/material";
|
127
|
-
import { useListMode } from "@xyo-network/react-shared";
|
128
|
-
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
129
|
-
var listModeSelectId = "listmode-select-id";
|
130
|
-
var listModeSelectLabel = "List Mode";
|
131
|
-
var ListModeSelect = (props) => {
|
132
|
-
const { listMode, setListMode } = useListMode();
|
133
|
-
return /* @__PURE__ */ jsxs6(
|
134
|
-
Select,
|
135
|
-
{
|
136
|
-
value: listMode ?? "default",
|
137
|
-
onChange: (event) => {
|
138
|
-
setListMode == null ? void 0 : setListMode(event.target.value);
|
139
|
-
},
|
140
|
-
...props,
|
141
|
-
children: [
|
142
|
-
/* @__PURE__ */ jsx6(MenuItem2, { value: "default", children: "Default" }, "default"),
|
143
|
-
/* @__PURE__ */ jsx6(MenuItem2, { value: "table", children: "Table" }, "table"),
|
144
|
-
/* @__PURE__ */ jsx6(MenuItem2, { value: "grid", children: "Grid" }, "grid")
|
145
|
-
]
|
146
|
-
}
|
147
|
-
);
|
148
|
-
};
|
149
|
-
var ListModeSelectFormControl = (props) => {
|
150
|
-
return /* @__PURE__ */ jsx6(EmbedFormControl, { formId: listModeSelectId, formLabel: listModeSelectLabel, children: /* @__PURE__ */ jsx6(ListModeSelect, { size: "small", label: listModeSelectLabel, labelId: listModeSelectId, ...props }) });
|
151
|
-
};
|
152
|
-
|
153
|
-
// src/components/controls/RenderSelect.tsx
|
154
|
-
import { MenuItem as MenuItem3, Select as Select2 } from "@mui/material";
|
155
|
-
import { jsx as jsx7 } from "react/jsx-runtime";
|
156
|
-
var renderSelectId = "render-select-id";
|
157
|
-
var renderSelectLabel = "Renderer";
|
158
|
-
var EmbedRenderSelect = (props) => {
|
159
|
-
const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState();
|
160
|
-
return /* @__PURE__ */ jsx7(EmbedFormControl, { formId: renderSelectId, formLabel: renderSelectLabel, children: /* @__PURE__ */ jsx7(Select2, { size: "small", value: activePlugin == null ? void 0 : activePlugin.name, ...props, children: plugins == null ? void 0 : plugins.map((plugin) => /* @__PURE__ */ jsx7(MenuItem3, { value: plugin.name, onClick: () => setActivePlugin == null ? void 0 : setActivePlugin(plugin), children: plugin.name }, plugin.name)) }) });
|
161
|
-
};
|
162
|
-
|
163
|
-
// src/components/embed-card/card/EmbedPluginCard.tsx
|
164
|
-
import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
165
|
-
var EmbedPluginCard = ({ ...props }) => {
|
166
|
-
var _a, _b, _c;
|
167
|
-
const { payload } = useResolvePayload();
|
168
|
-
const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = useEmbedPluginState();
|
169
|
-
const { listMode } = useListMode2();
|
170
|
-
const supportsListMode = ((_c = (_b = (_a = ActivePlugin == null ? void 0 : ActivePlugin.components) == null ? void 0 : _a.box) == null ? void 0 : _b.listModes) == null ? void 0 : _c.length) ?? 0 > 1;
|
171
|
-
return /* @__PURE__ */ jsxs7(BusyCard, { ...props, children: [
|
172
|
-
(hideElementsConfig == null ? void 0 : hideElementsConfig.hideCardHeader) ? null : /* @__PURE__ */ jsx8(EmbedCardHeader, {}),
|
173
|
-
plugins && plugins.length || supportsListMode ? /* @__PURE__ */ jsxs7(FlexGrowRow, { columnGap: 2, rowGap: 2, flexWrap: "wrap", pb: 1, children: [
|
174
|
-
plugins && plugins.length > 1 ? /* @__PURE__ */ jsx8(EmbedRenderSelect, {}) : null,
|
175
|
-
supportsListMode ? /* @__PURE__ */ jsx8(ListModeSelectFormControl, {}) : null
|
176
|
-
] }) : null,
|
177
|
-
/* @__PURE__ */ jsx8(CardContent, { sx: { height: "100%" }, children: ActivePlugin ? /* @__PURE__ */ jsx8(ActivePlugin.components.box.detailsBox, { payload, ...supportsListMode && { listMode } }) : null })
|
178
|
-
] });
|
179
|
-
};
|
180
|
-
export {
|
181
|
-
BusyCard,
|
182
|
-
EmbedCardHeader,
|
183
|
-
EmbedPluginCard
|
184
|
-
};
|
185
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/embed-card/card/BusyCard.tsx","../../../../../src/components/embed-card/card/EmbedCardHeader.tsx","../../../../../src/contexts/EmbedPluginContext/Context.tsx","../../../../../src/contexts/EmbedPluginContext/use.tsx","../../../../../src/contexts/ResolvePayloadContext/Context.ts","../../../../../src/contexts/ResolvePayloadContext/use.tsx","../../../../../src/components/embed-card/menu/EmbedMenu.tsx","../../../../../src/components/embed-card/menu/JsonMenuItem.tsx","../../../../../src/components/embed-card/card/EmbedPluginCard.tsx","../../../../../src/components/controls/EmbedFormControl.tsx","../../../../../src/components/controls/ListModeSelect.tsx","../../../../../src/components/controls/RenderSelect.tsx"],"sourcesContent":["import { Card, CardProps } from '@mui/material'\nimport { useBusyTiming } from '@xylabs/react-flexbox'\nimport {\n BusyCircularProgress,\n BusyCircularProgressProps,\n BusyLinearProgress,\n BusyLinearProgressProps,\n BusyVariant,\n WithChildren,\n} from '@xylabs/react-shared'\n\nexport interface BusyCardProps extends CardProps {\n busy?: boolean\n busyMinimum?: number\n busyVariant?: BusyVariant\n busyVariantProps?: BusyCircularProgressProps | BusyLinearProgressProps\n}\n\nexport const BusyCard: React.FC<WithChildren<BusyCardProps>> = ({\n busy,\n busyMinimum = 500,\n busyVariant = 'circular',\n busyVariantProps,\n children,\n ...props\n}) => {\n const internalBusy = useBusyTiming(busy, busyMinimum)\n return (\n <Card {...props}>\n {children}\n {busyVariant === 'circular' && internalBusy ? <BusyCircularProgress {...(busyVariantProps as BusyCircularProgressProps)} /> : null}\n {busyVariant === 'linear' && internalBusy ? <BusyLinearProgress {...(busyVariantProps as BusyLinearProgressProps)} /> : null}\n </Card>\n )\n}\n","import { Refresh as RefreshIcon } from '@mui/icons-material'\nimport { Avatar, CardHeader, CardHeaderProps, Chip, Theme } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../../contexts'\nimport { EmbedMenu } from '../menu'\n\nexport const EmbedCardHeader: React.FC<CardHeaderProps> = () => {\n const { refreshHuri, huri } = useResolvePayload()\n const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState()\n const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {}\n //this is temporary so that we can add the ability to get a timestamp via diviner later\n const timestamp = Date.now()\n return (\n <CardHeader\n sx={{ flexWrap: 'wrap', rowGap: 1 }}\n avatar={\n hideAvatar ? (\n <></>\n ) : (\n <Avatar sx={{ bgcolor: (theme: Theme) => theme.palette.primary.main }} aria-label={activePlugin?.name}>\n {activePlugin?.name?.charAt(0)}\n </Avatar>\n )\n }\n action={\n <FlexRow flexWrap=\"wrap\" columnGap={0.5}>\n {timestamp ? (\n hideTimestamp && hideRefreshButton ? (\n ''\n ) : (\n <Chip\n avatar={hideRefreshButton ? <></> : <RefreshIcon />}\n clickable={hideRefreshButton ? false : true}\n onClick={refreshHuri}\n label={hideTimestamp ? '' : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`}\n />\n )\n ) : null}\n {/* Huri case is valid as long as the only menu item is JSON */}\n {hideCardActions || huri === undefined ? null : <EmbedMenu />}\n </FlexRow>\n }\n title={hideTitle ? '' : activePlugin?.name}\n />\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","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 { MoreVert as MoreVertIcon } from '@mui/icons-material'\nimport { IconButton, IconButtonProps, Menu } from '@mui/material'\nimport { useState } from 'react'\n\nimport { JsonMenuItem } from './JsonMenuItem'\n\nexport const EmbedMenu: React.FC<IconButtonProps> = (props) => {\n // TODO - link to explore website\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null)\n const open = Boolean(anchorEl)\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget)\n }\n const handleClose = () => {\n setAnchorEl(null)\n }\n\n return (\n <>\n <IconButton onClick={handleClick} {...props}>\n <MoreVertIcon />\n </IconButton>\n <Menu anchorEl={anchorEl} open={open} onClose={handleClose} PaperProps={{ variant: 'elevation' }} MenuListProps={{ dense: true }}>\n <JsonMenuItem />\n </Menu>\n </>\n )\n}\n","import { OpenInNew as OpenInNewIcon } from '@mui/icons-material'\nimport { ListItemIcon, ListItemText, MenuItem, MenuItemProps } from '@mui/material'\n\nimport { useResolvePayload } from '../../../contexts'\n\nexport const JsonMenuItem: React.FC<MenuItemProps> = (props) => {\n const { huri } = useResolvePayload()\n\n return (\n <>\n {huri ? (\n <MenuItem title=\"Source Payload JSON\" onClick={() => window.open(huri, '_blank')} {...props}>\n <ListItemText sx={{ mr: 1 }}>JSON</ListItemText>\n <ListItemIcon sx={{ justifyContent: 'end' }}>\n <OpenInNewIcon fontSize=\"small\" />\n </ListItemIcon>\n </MenuItem>\n ) : null}\n </>\n )\n}\n","import { CardContent } from '@mui/material'\nimport { FlexGrowRow } from '@xylabs/react-flexbox'\nimport { useListMode } from '@xyo-network/react-shared'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../../contexts'\nimport { EmbedRenderSelect, ListModeSelectFormControl } from '../../controls'\nimport { BusyCard, BusyCardProps } from './BusyCard'\nimport { EmbedCardHeader } from './EmbedCardHeader'\n\nexport const EmbedPluginCard: React.FC<BusyCardProps> = ({ ...props }) => {\n const { payload } = useResolvePayload()\n const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = useEmbedPluginState()\n const { listMode } = useListMode()\n const supportsListMode = ActivePlugin?.components?.box?.listModes?.length ?? 0 > 1\n\n return (\n <BusyCard {...props}>\n {hideElementsConfig?.hideCardHeader ? null : <EmbedCardHeader />}\n {/* Only show the row if the children are present */}\n {(plugins && plugins.length) || supportsListMode ? (\n <FlexGrowRow columnGap={2} rowGap={2} flexWrap=\"wrap\" pb={1}>\n {plugins && plugins.length > 1 ? <EmbedRenderSelect /> : null}\n {supportsListMode ? <ListModeSelectFormControl /> : null}\n </FlexGrowRow>\n ) : null}\n <CardContent sx={{ height: '100%' }}>\n {ActivePlugin ? <ActivePlugin.components.box.detailsBox payload={payload} {...(supportsListMode && { listMode })} /> : null}\n </CardContent>\n </BusyCard>\n )\n}\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"],"mappings":";AAAA,SAAS,YAAuB;AAChC,SAAS,qBAAqB;AAC9B;AAAA,EACE;AAAA,EAEA;AAAA,OAIK;AAmBH,SAEgD,KAFhD;AAVG,IAAM,WAAkD,CAAC;AAAA,EAC9D;AAAA,EACA,cAAc;AAAA,EACd,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,eAAe,cAAc,MAAM,WAAW;AACpD,SACE,qBAAC,QAAM,GAAG,OACP;AAAA;AAAA,IACA,gBAAgB,cAAc,eAAe,oBAAC,wBAAsB,GAAI,kBAAgD,IAAK;AAAA,IAC7H,gBAAgB,YAAY,eAAe,oBAAC,sBAAoB,GAAI,kBAA8C,IAAK;AAAA,KAC1H;AAEJ;;;AClCA,SAAS,WAAW,mBAAmB;AACvC,SAAS,QAAQ,YAA6B,YAAmB;AACjE,SAAS,eAAe;;;ACFxB,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;;;ACJpE,SAAS,oBAAoB;AAItB,IAAM,sBAAsB,MAAM,aAAa,oBAAoB,eAAe,IAAI;;;ACJ7F,SAAS,mBAAAA,wBAAuB;AAIzB,IAAM,wBAAwBA,iBAAqC;;;ACJ1E,SAAS,gBAAAC,qBAAoB;AAItB,IAAM,oBAAoB,MAAMC,cAAa,uBAAuB,kBAAkB,IA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AAA,EAAS,OAAO,OAAO,MAAwB,SAAS,MAAM,mDAAkB,SAC9E,iBAAO,QADyB,OAAO,IAE1C,IAEJ,GACF;AAEJ;;;AHJmD,gBAAAC,MAG3C,QAAAC,aAH2C;AAR5C,IAAM,kBAA2C,CAAC,EAAE,GAAG,MAAM,MAAM;AAT1E;AAUE,QAAM,EAAE,QAAQ,IAAI,kBAAkB;AACtC,QAAM,EAAE,cAAc,cAAc,SAAS,mBAAmB,IAAI,oBAAoB;AACxF,QAAM,EAAE,SAAS,IAAIC,aAAY;AACjC,QAAM,qBAAmB,8DAAc,eAAd,mBAA0B,QAA1B,mBAA+B,cAA/B,mBAA0C,WAAU,IAAI;AAEjF,SACE,gBAAAD,MAAC,YAAU,GAAG,OACX;AAAA,8DAAoB,kBAAiB,OAAO,gBAAAD,KAAC,mBAAgB;AAAA,IAE5D,WAAW,QAAQ,UAAW,mBAC9B,gBAAAC,MAAC,eAAY,WAAW,GAAG,QAAQ,GAAG,UAAS,QAAO,IAAI,GACvD;AAAA,iBAAW,QAAQ,SAAS,IAAI,gBAAAD,KAAC,qBAAkB,IAAK;AAAA,MACxD,mBAAmB,gBAAAA,KAAC,6BAA0B,IAAK;AAAA,OACtD,IACE;AAAA,IACJ,gBAAAA,KAAC,eAAY,IAAI,EAAE,QAAQ,OAAO,GAC/B,yBAAe,gBAAAA,KAAC,aAAa,WAAW,IAAI,YAA5B,EAAuC,SAAmB,GAAI,oBAAoB,EAAE,SAAS,GAAI,IAAK,MACzH;AAAA,KACF;AAEJ;","names":["createContextEx","useContextEx","useContextEx","jsx","jsxs","Fragment","jsx","jsxs","Fragment","jsx","jsxs","useListMode","jsx","jsxs","MenuItem","jsx","jsxs","MenuItem","MenuItem","Select","jsx","Select","MenuItem","jsx","jsxs","useListMode"]}
|
@@ -1,58 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name in all)
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
-
};
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
-
for (let key of __getOwnPropNames(from))
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
-
}
|
16
|
-
return to;
|
17
|
-
};
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
|
20
|
-
// src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
|
21
|
-
var EmbedCardApiErrorRenderer_exports = {};
|
22
|
-
__export(EmbedCardApiErrorRenderer_exports, {
|
23
|
-
EmbedCardApiErrorRenderer: () => EmbedCardApiErrorRenderer
|
24
|
-
});
|
25
|
-
module.exports = __toCommonJS(EmbedCardApiErrorRenderer_exports);
|
26
|
-
var import_react_error = require("@xyo-network/react-error");
|
27
|
-
|
28
|
-
// src/components/embed-card/error-handling/EmbedErrorCard.tsx
|
29
|
-
var import_material = require("@mui/material");
|
30
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
31
|
-
var EmbedErrorCard = (props) => {
|
32
|
-
const { alertProps, error, hideErrorDetails = true, children, ...cardProps } = props;
|
33
|
-
const errorProps = { alertProps, error, hideErrorDetails };
|
34
|
-
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 }) }) });
|
35
|
-
};
|
36
|
-
var DefaultErrorAlert = ({ alertProps, hideErrorDetails, error }) => {
|
37
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Alert, { severity: "error", ...alertProps, children: [
|
38
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.AlertTitle, { children: "Whoops! Something went wrong" }),
|
39
|
-
!hideErrorDetails && error ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
40
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", children: "Error: " }),
|
41
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", children: error == null ? void 0 : error.message })
|
42
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", fontSize: "small", children: "Error Loading Plugin" })
|
43
|
-
] });
|
44
|
-
};
|
45
|
-
|
46
|
-
// src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
|
47
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
48
|
-
var EmbedCardApiErrorRenderer = ({ xyoError, children, ...props }) => {
|
49
|
-
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 });
|
50
|
-
};
|
51
|
-
var CustomApiErrorCard = ({ xyoError, ...props }) => {
|
52
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(EmbedErrorCard, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_error.ErrorAlert, { error: xyoError }) });
|
53
|
-
};
|
54
|
-
// Annotate the CommonJS export names for ESM import in node:
|
55
|
-
0 && (module.exports = {
|
56
|
-
EmbedCardApiErrorRenderer
|
57
|
-
});
|
58
|
-
//# sourceMappingURL=EmbedCardApiErrorRenderer.cjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx","../../../../../src/components/embed-card/error-handling/EmbedErrorCard.tsx"],"sourcesContent":["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;AAGA,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,IAAAA,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;","names":["import_jsx_runtime"]}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
// src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
|
2
|
-
import { ErrorAlert, ErrorRender } from "@xyo-network/react-error";
|
3
|
-
|
4
|
-
// src/components/embed-card/error-handling/EmbedErrorCard.tsx
|
5
|
-
import { Alert, AlertTitle, Card, CardContent, Typography } from "@mui/material";
|
6
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
7
|
-
var EmbedErrorCard = (props) => {
|
8
|
-
const { alertProps, error, hideErrorDetails = true, children, ...cardProps } = props;
|
9
|
-
const errorProps = { alertProps, error, hideErrorDetails };
|
10
|
-
return /* @__PURE__ */ jsx(Card, { ...cardProps, children: /* @__PURE__ */ jsx(CardContent, { children: children ?? /* @__PURE__ */ jsx(DefaultErrorAlert, { ...errorProps }) }) });
|
11
|
-
};
|
12
|
-
var DefaultErrorAlert = ({ alertProps, hideErrorDetails, error }) => {
|
13
|
-
return /* @__PURE__ */ jsxs(Alert, { severity: "error", ...alertProps, children: [
|
14
|
-
/* @__PURE__ */ jsx(AlertTitle, { children: "Whoops! Something went wrong" }),
|
15
|
-
!hideErrorDetails && error ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
16
|
-
/* @__PURE__ */ jsx(Typography, { variant: "caption", children: "Error: " }),
|
17
|
-
/* @__PURE__ */ jsx(Typography, { variant: "caption", children: error == null ? void 0 : error.message })
|
18
|
-
] }) : /* @__PURE__ */ jsx(Typography, { variant: "caption", fontSize: "small", children: "Error Loading Plugin" })
|
19
|
-
] });
|
20
|
-
};
|
21
|
-
|
22
|
-
// src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
|
23
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
24
|
-
var EmbedCardApiErrorRenderer = ({ xyoError, children, ...props }) => {
|
25
|
-
return /* @__PURE__ */ jsx2(ErrorRender, { error: xyoError, noReAuth: true, noErrorDisplay: true, customError: /* @__PURE__ */ jsx2(CustomApiErrorCard, { xyoError, ...props }), children });
|
26
|
-
};
|
27
|
-
var CustomApiErrorCard = ({ xyoError, ...props }) => {
|
28
|
-
return /* @__PURE__ */ jsx2(EmbedErrorCard, { ...props, children: /* @__PURE__ */ jsx2(ErrorAlert, { error: xyoError }) });
|
29
|
-
};
|
30
|
-
export {
|
31
|
-
EmbedCardApiErrorRenderer
|
32
|
-
};
|
33
|
-
//# sourceMappingURL=EmbedCardApiErrorRenderer.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx","../../../../../src/components/embed-card/error-handling/EmbedErrorCard.tsx"],"sourcesContent":["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":";AAGA,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,gBAAAA,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;","names":["jsx"]}
|