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