@xyo-network/react-embed 2.53.0 → 2.54.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. package/dist/cjs/components/{XyoEmbedPlugin.js → EmbedPlugin.js} +5 -5
  2. package/dist/cjs/components/EmbedPlugin.js.map +1 -0
  3. package/dist/cjs/components/controls/RenderSelect.js +1 -1
  4. package/dist/cjs/components/controls/RenderSelect.js.map +1 -1
  5. package/dist/cjs/components/embed-card/{XyoEmbedPluginCard.js → EmbedPluginCard.js} +11 -11
  6. package/dist/cjs/components/embed-card/EmbedPluginCard.js.map +1 -0
  7. package/dist/cjs/components/embed-card/card/EmbedCardHeader.js +1 -1
  8. package/dist/cjs/components/embed-card/card/EmbedCardHeader.js.map +1 -1
  9. package/dist/cjs/components/embed-card/card/EmbedPluginCard.js +1 -1
  10. package/dist/cjs/components/embed-card/card/EmbedPluginCard.js.map +1 -1
  11. package/dist/cjs/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +2 -2
  12. package/dist/cjs/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +1 -1
  13. package/dist/cjs/components/embed-card/index.js +1 -1
  14. package/dist/cjs/components/embed-card/index.js.map +1 -1
  15. package/dist/cjs/components/embed-plugin-stories/storyShared.js +2 -2
  16. package/dist/cjs/components/index.js +1 -1
  17. package/dist/cjs/components/index.js.map +1 -1
  18. package/dist/cjs/components/validation-alerts/ValidatePlugins.js +1 -1
  19. package/dist/cjs/components/validation-alerts/ValidatePlugins.js.map +1 -1
  20. package/dist/cjs/contexts/EmbedPluginContext/Context.js +6 -0
  21. package/dist/cjs/contexts/EmbedPluginContext/Context.js.map +1 -0
  22. package/dist/cjs/contexts/{XyoEmbedPluginContext → EmbedPluginContext}/Provider.js +4 -4
  23. package/dist/cjs/contexts/EmbedPluginContext/Provider.js.map +1 -0
  24. package/dist/cjs/contexts/EmbedPluginContext/State.js.map +1 -0
  25. package/dist/cjs/contexts/EmbedPluginContext/index.js.map +1 -0
  26. package/dist/cjs/contexts/EmbedPluginContext/use.js +8 -0
  27. package/dist/cjs/contexts/EmbedPluginContext/use.js.map +1 -0
  28. package/dist/cjs/contexts/index.js +1 -1
  29. package/dist/cjs/contexts/index.js.map +1 -1
  30. package/dist/cjs/types/{XyoEmbedPluginProps.js → EmbedPluginProps.js} +1 -1
  31. package/dist/cjs/types/EmbedPluginProps.js.map +1 -0
  32. package/dist/cjs/types/index.js +1 -1
  33. package/dist/cjs/types/index.js.map +1 -1
  34. package/dist/docs.json +1695 -1695
  35. package/dist/esm/components/EmbedPlugin.js +15 -0
  36. package/dist/esm/components/EmbedPlugin.js.map +1 -0
  37. package/dist/esm/components/controls/RenderSelect.js +2 -2
  38. package/dist/esm/components/controls/RenderSelect.js.map +1 -1
  39. package/dist/esm/components/embed-card/{XyoEmbedPluginCard.js → EmbedPluginCard.js} +8 -8
  40. package/dist/esm/components/embed-card/EmbedPluginCard.js.map +1 -0
  41. package/dist/esm/components/embed-card/card/EmbedCardHeader.js +2 -2
  42. package/dist/esm/components/embed-card/card/EmbedCardHeader.js.map +1 -1
  43. package/dist/esm/components/embed-card/card/EmbedPluginCard.js +2 -2
  44. package/dist/esm/components/embed-card/card/EmbedPluginCard.js.map +1 -1
  45. package/dist/esm/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +3 -3
  46. package/dist/esm/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +1 -1
  47. package/dist/esm/components/embed-card/index.js +1 -1
  48. package/dist/esm/components/embed-card/index.js.map +1 -1
  49. package/dist/esm/components/embed-plugin-stories/storyShared.js +3 -3
  50. package/dist/esm/components/index.js +1 -1
  51. package/dist/esm/components/index.js.map +1 -1
  52. package/dist/esm/components/validation-alerts/ValidatePlugins.js +2 -2
  53. package/dist/esm/components/validation-alerts/ValidatePlugins.js.map +1 -1
  54. package/dist/esm/contexts/EmbedPluginContext/Context.js +3 -0
  55. package/dist/esm/contexts/EmbedPluginContext/Context.js.map +1 -0
  56. package/dist/esm/contexts/{XyoEmbedPluginContext → EmbedPluginContext}/Provider.js +3 -3
  57. package/dist/esm/contexts/EmbedPluginContext/Provider.js.map +1 -0
  58. package/dist/esm/contexts/EmbedPluginContext/State.js.map +1 -0
  59. package/dist/esm/contexts/EmbedPluginContext/index.js.map +1 -0
  60. package/dist/esm/contexts/EmbedPluginContext/use.js +4 -0
  61. package/dist/esm/contexts/EmbedPluginContext/use.js.map +1 -0
  62. package/dist/esm/contexts/index.js +1 -1
  63. package/dist/esm/contexts/index.js.map +1 -1
  64. package/dist/esm/types/EmbedPluginProps.js +2 -0
  65. package/dist/esm/types/EmbedPluginProps.js.map +1 -0
  66. package/dist/esm/types/index.js +1 -1
  67. package/dist/esm/types/index.js.map +1 -1
  68. package/dist/types/components/EmbedPlugin.d.ts +5 -0
  69. package/dist/types/components/EmbedPlugin.d.ts.map +1 -0
  70. package/dist/types/components/embed-card/EmbedPluginCard.d.ts +11 -0
  71. package/dist/types/components/embed-card/EmbedPluginCard.d.ts.map +1 -0
  72. package/dist/types/components/embed-card/index.d.ts +1 -1
  73. package/dist/types/components/embed-card/index.d.ts.map +1 -1
  74. package/dist/types/components/embed-plugin-stories/storyShared.d.ts +2 -2
  75. package/dist/types/components/index.d.ts +1 -1
  76. package/dist/types/components/index.d.ts.map +1 -1
  77. package/dist/types/contexts/EmbedPluginContext/Context.d.ts +4 -0
  78. package/dist/types/contexts/EmbedPluginContext/Context.d.ts.map +1 -0
  79. package/dist/types/contexts/EmbedPluginContext/Provider.d.ts +7 -0
  80. package/dist/types/contexts/EmbedPluginContext/Provider.d.ts.map +1 -0
  81. package/dist/types/contexts/{XyoEmbedPluginContext → EmbedPluginContext}/State.d.ts +3 -3
  82. package/dist/types/contexts/EmbedPluginContext/State.d.ts.map +1 -0
  83. package/dist/types/contexts/EmbedPluginContext/index.d.ts.map +1 -0
  84. package/dist/types/contexts/EmbedPluginContext/use.d.ts +2 -0
  85. package/dist/types/contexts/EmbedPluginContext/use.d.ts.map +1 -0
  86. package/dist/types/contexts/index.d.ts +1 -1
  87. package/dist/types/contexts/index.d.ts.map +1 -1
  88. package/dist/types/types/{XyoEmbedPluginProps.d.ts → EmbedPluginProps.d.ts} +3 -3
  89. package/dist/types/types/EmbedPluginProps.d.ts.map +1 -0
  90. package/dist/types/types/index.d.ts +1 -1
  91. package/dist/types/types/index.d.ts.map +1 -1
  92. package/package.json +6 -6
  93. package/src/components/{XyoEmbedPlugin.tsx → EmbedPlugin.tsx} +6 -6
  94. package/src/components/controls/RenderSelect.tsx +2 -2
  95. package/src/components/embed-card/{XyoEmbedPluginCard.tsx → EmbedPluginCard.tsx} +10 -10
  96. package/src/components/embed-card/card/EmbedCardHeader.tsx +2 -2
  97. package/src/components/embed-card/card/EmbedPluginCard.tsx +2 -2
  98. package/src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx +4 -4
  99. package/src/components/embed-card/index.ts +1 -1
  100. package/src/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.tsx +1 -1
  101. package/src/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.tsx +1 -1
  102. package/src/components/embed-plugin-stories/storyShared.tsx +4 -4
  103. package/src/components/index.ts +1 -1
  104. package/src/components/validation-alerts/ValidatePlugins.tsx +2 -2
  105. package/src/contexts/EmbedPluginContext/Context.tsx +5 -0
  106. package/src/contexts/{XyoEmbedPluginContext → EmbedPluginContext}/Provider.tsx +6 -6
  107. package/src/contexts/{XyoEmbedPluginContext → EmbedPluginContext}/State.ts +3 -3
  108. package/src/contexts/EmbedPluginContext/use.tsx +5 -0
  109. package/src/contexts/ValidatePayloadContext/Provider.stories.tsx +4 -4
  110. package/src/contexts/index.ts +1 -1
  111. package/src/types/{XyoEmbedPluginProps.ts → EmbedPluginProps.ts} +2 -2
  112. package/src/types/index.ts +1 -1
  113. package/dist/cjs/components/XyoEmbedPlugin.js.map +0 -1
  114. package/dist/cjs/components/embed-card/XyoEmbedPluginCard.js.map +0 -1
  115. package/dist/cjs/contexts/XyoEmbedPluginContext/Context.js +0 -6
  116. package/dist/cjs/contexts/XyoEmbedPluginContext/Context.js.map +0 -1
  117. package/dist/cjs/contexts/XyoEmbedPluginContext/Provider.js.map +0 -1
  118. package/dist/cjs/contexts/XyoEmbedPluginContext/State.js.map +0 -1
  119. package/dist/cjs/contexts/XyoEmbedPluginContext/index.js.map +0 -1
  120. package/dist/cjs/contexts/XyoEmbedPluginContext/use.js +0 -8
  121. package/dist/cjs/contexts/XyoEmbedPluginContext/use.js.map +0 -1
  122. package/dist/cjs/types/XyoEmbedPluginProps.js.map +0 -1
  123. package/dist/esm/components/XyoEmbedPlugin.js +0 -15
  124. package/dist/esm/components/XyoEmbedPlugin.js.map +0 -1
  125. package/dist/esm/components/embed-card/XyoEmbedPluginCard.js.map +0 -1
  126. package/dist/esm/contexts/XyoEmbedPluginContext/Context.js +0 -3
  127. package/dist/esm/contexts/XyoEmbedPluginContext/Context.js.map +0 -1
  128. package/dist/esm/contexts/XyoEmbedPluginContext/Provider.js.map +0 -1
  129. package/dist/esm/contexts/XyoEmbedPluginContext/State.js.map +0 -1
  130. package/dist/esm/contexts/XyoEmbedPluginContext/index.js.map +0 -1
  131. package/dist/esm/contexts/XyoEmbedPluginContext/use.js +0 -4
  132. package/dist/esm/contexts/XyoEmbedPluginContext/use.js.map +0 -1
  133. package/dist/esm/types/XyoEmbedPluginProps.js +0 -2
  134. package/dist/esm/types/XyoEmbedPluginProps.js.map +0 -1
  135. package/dist/types/components/XyoEmbedPlugin.d.ts +0 -5
  136. package/dist/types/components/XyoEmbedPlugin.d.ts.map +0 -1
  137. package/dist/types/components/embed-card/XyoEmbedPluginCard.d.ts +0 -11
  138. package/dist/types/components/embed-card/XyoEmbedPluginCard.d.ts.map +0 -1
  139. package/dist/types/contexts/XyoEmbedPluginContext/Context.d.ts +0 -4
  140. package/dist/types/contexts/XyoEmbedPluginContext/Context.d.ts.map +0 -1
  141. package/dist/types/contexts/XyoEmbedPluginContext/Provider.d.ts +0 -7
  142. package/dist/types/contexts/XyoEmbedPluginContext/Provider.d.ts.map +0 -1
  143. package/dist/types/contexts/XyoEmbedPluginContext/State.d.ts.map +0 -1
  144. package/dist/types/contexts/XyoEmbedPluginContext/index.d.ts.map +0 -1
  145. package/dist/types/contexts/XyoEmbedPluginContext/use.d.ts +0 -2
  146. package/dist/types/contexts/XyoEmbedPluginContext/use.d.ts.map +0 -1
  147. package/dist/types/types/XyoEmbedPluginProps.d.ts.map +0 -1
  148. package/src/contexts/XyoEmbedPluginContext/Context.tsx +0 -5
  149. package/src/contexts/XyoEmbedPluginContext/use.tsx +0 -5
  150. /package/dist/cjs/contexts/{XyoEmbedPluginContext → EmbedPluginContext}/State.js +0 -0
  151. /package/dist/cjs/contexts/{XyoEmbedPluginContext → EmbedPluginContext}/index.js +0 -0
  152. /package/dist/esm/contexts/{XyoEmbedPluginContext → EmbedPluginContext}/State.js +0 -0
  153. /package/dist/esm/contexts/{XyoEmbedPluginContext → EmbedPluginContext}/index.js +0 -0
  154. /package/dist/types/contexts/{XyoEmbedPluginContext → EmbedPluginContext}/index.d.ts +0 -0
  155. /package/src/contexts/{XyoEmbedPluginContext → EmbedPluginContext}/index.ts +0 -0
@@ -2,14 +2,14 @@ import { useTheme } from '@mui/material'
2
2
  import { WithChildren } from '@xylabs/react-shared'
3
3
 
4
4
  import { useRefreshPayload, useResolvePayload } from '../../contexts'
5
- import { XyoEmbedPluginProps } from '../../types'
6
- import { XyoEmbedPluginInner } from '../XyoEmbedPlugin'
5
+ import { EmbedPluginProps } from '../../types'
6
+ import { EmbedPluginInner } from '../EmbedPlugin'
7
7
  import { BusyCardProps, EmbedPluginCard } from './card'
8
8
  import { EmbedCardApiErrorRenderer } from './error-handling'
9
9
 
10
- export interface XyoEmbedPluginCardProps extends WithChildren, XyoEmbedPluginProps, BusyCardProps {}
10
+ export interface EmbedPluginCardProps extends WithChildren, EmbedPluginProps, BusyCardProps {}
11
11
 
12
- export const XyoEmbedPluginCard: React.FC<XyoEmbedPluginCardProps> = ({ children, ...props }) => {
12
+ export const ApiEmbedPluginCard: React.FC<EmbedPluginCardProps> = ({ children, ...props }) => {
13
13
  const {
14
14
  validateSchema,
15
15
  plugins = [],
@@ -23,7 +23,7 @@ export const XyoEmbedPluginCard: React.FC<XyoEmbedPluginCardProps> = ({ children
23
23
  } = props
24
24
 
25
25
  return (
26
- <XyoEmbedPluginInner
26
+ <EmbedPluginInner
27
27
  {...{
28
28
  embedPluginConfig,
29
29
  hideElementsConfig,
@@ -35,13 +35,13 @@ export const XyoEmbedPluginCard: React.FC<XyoEmbedPluginCardProps> = ({ children
35
35
  validateSchema,
36
36
  }}
37
37
  >
38
- <XyoEmbedPluginCardInner {...busyCardProps} />
38
+ <EmbedPluginCardInner {...busyCardProps} />
39
39
  {children}
40
- </XyoEmbedPluginInner>
40
+ </EmbedPluginInner>
41
41
  )
42
42
  }
43
43
 
44
- export const XyoEmbedPluginCardInner: React.FC<BusyCardProps> = (props) => {
44
+ export const EmbedPluginCardInner: React.FC<BusyCardProps> = (props) => {
45
45
  const { payload, huriError } = useResolvePayload()
46
46
  const { refreshPayload } = useRefreshPayload()
47
47
  const theme = useTheme()
@@ -60,5 +60,5 @@ export const XyoEmbedPluginCardInner: React.FC<BusyCardProps> = (props) => {
60
60
  )
61
61
  }
62
62
 
63
- /** @deprecated - use XyoEmbedPluginCard and use CardProps instead of FlexBoxProps */
64
- export const XyoEmbedPlugin = XyoEmbedPluginCard
63
+ /** @deprecated - use EmbedPluginCard and use CardProps instead of FlexBoxProps */
64
+ export const EmbedPlugin = EmbedPluginCard
@@ -2,12 +2,12 @@ import RefreshIcon from '@mui/icons-material/Refresh'
2
2
  import { Avatar, CardHeader, CardHeaderProps, Chip, Theme } from '@mui/material'
3
3
  import { FlexRow } from '@xylabs/react-flexbox'
4
4
 
5
- import { useResolvePayload, useXyoEmbedPluginState } from '../../../contexts'
5
+ import { useEmbedPluginState, useResolvePayload } from '../../../contexts'
6
6
  import { EmbedMenu } from '../menu'
7
7
 
8
8
  export const EmbedCardHeader: React.FC<CardHeaderProps> = () => {
9
9
  const { payload, refreshHuri, huri } = useResolvePayload()
10
- const { activePlugin, timestampLabel, hideElementsConfig } = useXyoEmbedPluginState()
10
+ const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState()
11
11
  const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {}
12
12
  return (
13
13
  <CardHeader
@@ -2,14 +2,14 @@ import { CardContent } from '@mui/material'
2
2
  import { FlexGrowRow } from '@xylabs/react-flexbox'
3
3
  import { useListMode } from '@xyo-network/react-shared'
4
4
 
5
- import { useResolvePayload, useXyoEmbedPluginState } from '../../../contexts'
5
+ import { useEmbedPluginState, useResolvePayload } from '../../../contexts'
6
6
  import { EmbedRenderSelect, ListModeSelectFormControl } from '../../controls'
7
7
  import { BusyCard, BusyCardProps } from './BusyCard'
8
8
  import { EmbedCardHeader } from './EmbedCardHeader'
9
9
 
10
10
  export const EmbedPluginCard: React.FC<BusyCardProps> = ({ ...props }) => {
11
11
  const { payload } = useResolvePayload()
12
- const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = useXyoEmbedPluginState()
12
+ const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = useEmbedPluginState()
13
13
  const { listMode } = useListMode()
14
14
  const supportsListMode = ActivePlugin?.components?.box?.listModes?.length ?? 0 > 1
15
15
 
@@ -1,7 +1,7 @@
1
1
  import { CardProps } from '@mui/material'
2
2
  import { WithChildren } from '@xylabs/react-shared'
3
3
  import { ModuleError } from '@xyo-network/module'
4
- import { XyoErrorAlert, XyoErrorRender } from '@xyo-network/react-error'
4
+ import { ErrorAlert, ErrorRender } from '@xyo-network/react-error'
5
5
 
6
6
  import { EmbedErrorCard } from './EmbedErrorCard'
7
7
 
@@ -11,16 +11,16 @@ interface EmbedCardApiErrorRendererProps extends CardProps {
11
11
 
12
12
  export const EmbedCardApiErrorRenderer: React.FC<WithChildren<EmbedCardApiErrorRendererProps>> = ({ xyoError, children, ...props }) => {
13
13
  return (
14
- <XyoErrorRender error={xyoError} noReAuth noErrorDisplay customError={<CustomApiErrorCard xyoError={xyoError} {...props} />}>
14
+ <ErrorRender error={xyoError} noReAuth noErrorDisplay customError={<CustomApiErrorCard xyoError={xyoError} {...props} />}>
15
15
  {children}
16
- </XyoErrorRender>
16
+ </ErrorRender>
17
17
  )
18
18
  }
19
19
 
20
20
  const CustomApiErrorCard: React.FC<EmbedCardApiErrorRendererProps> = ({ xyoError, ...props }) => {
21
21
  return (
22
22
  <EmbedErrorCard {...props}>
23
- <XyoErrorAlert error={xyoError} />
23
+ <ErrorAlert error={xyoError} />
24
24
  </EmbedErrorCard>
25
25
  )
26
26
  }
@@ -1,2 +1,2 @@
1
1
  export * from './card'
2
- export * from './XyoEmbedPluginCard'
2
+ export * from './EmbedPluginCard'
@@ -10,7 +10,7 @@ const UniswapPairPointer = 'https://beta.api.archivist.xyo.network/e36602006239d
10
10
  // eslint-disable-next-line import/no-default-export
11
11
  export default {
12
12
  ...xyoEmbedStoryBase,
13
- title: 'embed/XyoEmbedPlugin/examples',
13
+ title: 'embed/EmbedPlugin/examples',
14
14
  } as Meta
15
15
 
16
16
  const AggregatePriceExample = Template.bind({})
@@ -11,7 +11,7 @@ const AggregatePricePointer = 'https://api.archivist.xyo.network/1948bf4eedf90ee
11
11
  // eslint-disable-next-line import/no-default-export
12
12
  export default {
13
13
  ...xyoEmbedStoryBase,
14
- title: 'embed/XyoEmbedPlugin/states',
14
+ title: 'embed/EmbedPlugin/states',
15
15
  } as Meta
16
16
 
17
17
  const testPlugin = createPayloadRenderPlugin({
@@ -1,11 +1,11 @@
1
1
  import { Meta, StoryFn } from '@storybook/react'
2
2
  import { BrowserRouter } from 'react-router-dom'
3
3
 
4
- import { XyoEmbedPluginCard } from '../embed-card'
4
+ import { ApiEmbedPluginCard } from '../embed-card'
5
5
 
6
6
  export const xyoEmbedStoryBase: Meta = {
7
7
  argTypes: {},
8
- component: XyoEmbedPluginCard,
8
+ component: ApiEmbedPluginCard,
9
9
  parameters: {
10
10
  docs: {
11
11
  page: null,
@@ -13,10 +13,10 @@ export const xyoEmbedStoryBase: Meta = {
13
13
  },
14
14
  }
15
15
 
16
- export const Template: StoryFn<typeof XyoEmbedPluginCard> = (args) => {
16
+ export const Template: StoryFn<typeof ApiEmbedPluginCard> = (args) => {
17
17
  return (
18
18
  <BrowserRouter>
19
- <XyoEmbedPluginCard {...args} />
19
+ <ApiEmbedPluginCard {...args} />
20
20
  </BrowserRouter>
21
21
  )
22
22
  }
@@ -1,2 +1,2 @@
1
1
  export * from './embed-card'
2
- export * from './XyoEmbedPlugin'
2
+ export * from './EmbedPlugin'
@@ -1,11 +1,11 @@
1
1
  import { Alert, AlertProps, AlertTitle } from '@mui/material'
2
2
  import { WithChildren } from '@xylabs/react-shared'
3
3
 
4
- import { useResolvePayload, useXyoEmbedPluginState } from '../../contexts'
4
+ import { useEmbedPluginState, useResolvePayload } from '../../contexts'
5
5
 
6
6
  export const ValidatePluginsAlert: React.FC<WithChildren<AlertProps>> = ({ children, ...props }) => {
7
7
  const { payload } = useResolvePayload()
8
- const { plugins } = useXyoEmbedPluginState()
8
+ const { plugins } = useEmbedPluginState()
9
9
 
10
10
  if (payload && plugins?.length === 0) {
11
11
  return (
@@ -0,0 +1,5 @@
1
+ import { createContextEx } from '@xyo-network/react-shared'
2
+
3
+ import { EmbedPluginState } from './State'
4
+
5
+ export const EmbedPluginContext = createContextEx<EmbedPluginState>()
@@ -2,13 +2,13 @@ import { WithChildren } from '@xylabs/react-shared'
2
2
  import { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'
3
3
  import { useEffect, useState } from 'react'
4
4
 
5
- import { XyoEmbedPluginContext } from './Context'
6
- import { XyoEmbedPluginBase } from './State'
5
+ import { EmbedPluginContext } from './Context'
6
+ import { EmbedPluginBase } from './State'
7
7
 
8
- export type XyoEmbedPluginProviderProps = XyoEmbedPluginBase
8
+ export type EmbedPluginProviderProps = EmbedPluginBase
9
9
 
10
10
  /** Expose passed embed plugin props via context */
11
- export const XyoEmbedPluginProvider: React.FC<WithChildren<XyoEmbedPluginProviderProps>> = ({
11
+ export const EmbedPluginProvider: React.FC<WithChildren<EmbedPluginProviderProps>> = ({
12
12
  children,
13
13
  refreshTitle,
14
14
  timestampLabel,
@@ -23,7 +23,7 @@ export const XyoEmbedPluginProvider: React.FC<WithChildren<XyoEmbedPluginProvide
23
23
  }, [plugins])
24
24
 
25
25
  return (
26
- <XyoEmbedPluginContext.Provider
26
+ <EmbedPluginContext.Provider
27
27
  value={{
28
28
  activePlugin,
29
29
  embedPluginConfig,
@@ -35,6 +35,6 @@ export const XyoEmbedPluginProvider: React.FC<WithChildren<XyoEmbedPluginProvide
35
35
  }}
36
36
  >
37
37
  {children}
38
- </XyoEmbedPluginContext.Provider>
38
+ </EmbedPluginContext.Provider>
39
39
  )
40
40
  }
@@ -19,8 +19,8 @@ export interface PluginConfig {
19
19
  listMode?: ListMode
20
20
  }
21
21
 
22
- export interface XyoEmbedPluginBase {
23
- /** XyoEmbedPlugin component configuration */
22
+ export interface EmbedPluginBase {
23
+ /** EmbedPlugin component configuration */
24
24
  embedPluginConfig?: PluginConfig
25
25
  hideElementsConfig?: EmbedPluginVisibilityConfig
26
26
  /** @deprecated use huriPayload */
@@ -30,7 +30,7 @@ export interface XyoEmbedPluginBase {
30
30
  timestampLabel?: string
31
31
  }
32
32
 
33
- export interface XyoEmbedPluginState extends XyoEmbedPluginBase, ContextExState {
33
+ export interface EmbedPluginState extends EmbedPluginBase, ContextExState {
34
34
  activePlugin?: PayloadRenderPlugin
35
35
  setActivePlugin?: Dispatch<SetStateAction<PayloadRenderPlugin | undefined>>
36
36
  }
@@ -0,0 +1,5 @@
1
+ import { useContextEx } from '@xyo-network/react-shared'
2
+
3
+ import { EmbedPluginContext } from './Context'
4
+
5
+ export const useEmbedPluginState = () => useContextEx(EmbedPluginContext, 'EmbedPlugin', true)
@@ -1,9 +1,9 @@
1
1
  import { Typography } from '@mui/material'
2
2
  import { Decorator, Meta, StoryFn } from '@storybook/react'
3
3
 
4
+ import { EmbedPluginContext, EmbedPluginState } from '../EmbedPluginContext'
4
5
  import { RefreshPayloadProvider } from '../RefreshPayloadContext'
5
6
  import { ResolvePayloadContext, ResolvePayloadState } from '../ResolvePayloadContext'
6
- import { XyoEmbedPluginContext, XyoEmbedPluginState } from '../XyoEmbedPluginContext'
7
7
  import { ValidatePayloadProvider, ValidatePayloadProviderProps } from './Provider'
8
8
  import { useValidatePayload } from './use'
9
9
 
@@ -13,9 +13,9 @@ const EmbedDecorator: Decorator<ValidatePayloadProviderPropsEx> = (Story, { args
13
13
  return (
14
14
  <RefreshPayloadProvider>
15
15
  <ResolvePayloadContext.Provider value={resolvePayloadContext}>
16
- <XyoEmbedPluginContext.Provider value={xyoEmbedPluginContext}>
16
+ <EmbedPluginContext.Provider value={xyoEmbedPluginContext}>
17
17
  <Story {...props} />
18
- </XyoEmbedPluginContext.Provider>
18
+ </EmbedPluginContext.Provider>
19
19
  </ResolvePayloadContext.Provider>
20
20
  </RefreshPayloadProvider>
21
21
  )
@@ -34,7 +34,7 @@ const ValidatePayloadState = () => {
34
34
 
35
35
  interface ValidatePayloadProviderPropsEx extends ValidatePayloadProviderProps {
36
36
  resolvePayloadContext: ResolvePayloadState
37
- xyoEmbedPluginContext: XyoEmbedPluginState
37
+ xyoEmbedPluginContext: EmbedPluginState
38
38
  }
39
39
 
40
40
  const Template: StoryFn<React.FC<ValidatePayloadProviderPropsEx>> = (props) => {
@@ -1,4 +1,4 @@
1
+ export * from './EmbedPluginContext'
1
2
  export * from './RefreshPayloadContext'
2
3
  export * from './ResolvePayloadContext'
3
4
  export * from './ValidatePayloadContext'
4
- export * from './XyoEmbedPluginContext'
@@ -1,8 +1,8 @@
1
1
  import { Payload } from '@xyo-network/payload-model'
2
2
 
3
- import { EmbedPluginVisibilityConfig, XyoEmbedPluginBase } from '../contexts'
3
+ import { EmbedPluginBase, EmbedPluginVisibilityConfig } from '../contexts'
4
4
 
5
- export interface XyoEmbedPluginProps extends XyoEmbedPluginBase {
5
+ export interface EmbedPluginProps extends EmbedPluginBase {
6
6
  hideElementsConfig?: EmbedPluginVisibilityConfig
7
7
  huriPayload?: string | Payload
8
8
  /** string for huri to resolve and payload for bypassing huri resolution */
@@ -1 +1 @@
1
- export * from './XyoEmbedPluginProps'
1
+ export * from './EmbedPluginProps'
@@ -1 +0,0 @@
1
- {"version":3,"file":"XyoEmbedPlugin.js","sourceRoot":"","sources":["../../../src/components/XyoEmbedPlugin.tsx"],"names":[],"mappings":";;;;AAEA,4DAA2E;AAE3E,0CAA6H;AAE7H,mDAA+C;AAC/C,2DAAgF;AAEzE,MAAM,mBAAmB,GAAgD,CAAC,EAC/E,cAAc,EACd,OAAO,GAAG,EAAE,EACZ,WAAW,EACX,YAAY,GAAG,EAAE,EACjB,cAAc,GAAG,WAAW,EAC5B,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,EACT,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,4BAAa,cACZ,uBAAC,iCAAsB,kBACrB,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAE,iBAAiB,gBAEpC,uBAAC,aAAa,kBAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,gBAC3D,uBAAC,cAAc,kBAAC,cAAc,EAAE,cAAc,gBAC5C,uBAAC,+BAAgB,kBAAC,eAAe,EAAE,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,QAAQ,gBAAG,QAAQ,IAAoB,IAC9E,IACH,IACO,GACX,CACjB,CAAA;AACH,CAAC,CAAA;AA5BY,QAAA,mBAAmB,uBA4B/B;AAID,MAAM,aAAa,GAA+C,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,EAAE;IACzG,OAAO,CACL,uBAAC,iCAAsB,kBAAC,SAAS,EAAE,SAAS,gBAC1C,uBAAC,iCAAsB,kBAAC,WAAW,EAAE,WAAW,gBAC9C,uBAAC,6BAAa,cAAE,QAAQ,GAAiB,IAClB,IACF,CAC1B,CAAA;AACH,CAAC,CAAA;AAED,MAAM,cAAc,GAAyD,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,EAAE;IAC5G,OAAO,CACL,uBAAC,kCAAuB,kBAAC,OAAO,EAAE,cAAc,gBAC9C,uBAAC,wCAAoB,cACnB,uBAAC,wCAAoB,cAAE,QAAQ,GAAwB,GAClC,IACC,CAC3B,CAAA;AACH,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"XyoEmbedPluginCard.js","sourceRoot":"","sources":["../../../../src/components/embed-card/XyoEmbedPluginCard.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAwC;AAGxC,6CAAqE;AAErE,sDAAuD;AACvD,iCAAuD;AACvD,qDAA4D;AAIrD,MAAM,kBAAkB,GAAsC,CAAC,EAAsB,EAAE,EAAE;QAA1B,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAApB,YAAsB,CAAF;IACxF,MAAM,EACJ,cAAc,EACd,OAAO,GAAG,EAAE,EACZ,WAAW,EACX,YAAY,GAAG,EAAE,EACjB,cAAc,GAAG,WAAW,EAC5B,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,KAEP,KAAK,EADJ,aAAa,kBACd,KAAK,EAVH,sIAUL,CAAQ,CAAA;IAET,OAAO,CACL,wBAAC,oCAAmB,oBACd;QACF,iBAAiB;QACjB,kBAAkB;QAClB,WAAW;QACX,SAAS;QACT,OAAO;QACP,YAAY;QACZ,cAAc;QACd,cAAc;KACf,eAED,uBAAC,+BAAuB,oBAAK,aAAa,EAAI,EAC7C,QAAQ,KACW,CACvB,CAAA;AACH,CAAC,CAAA;AA9BY,QAAA,kBAAkB,sBA8B9B;AAEM,MAAM,uBAAuB,GAA4B,CAAC,KAAK,EAAE,EAAE;IACxE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IAClD,MAAM,EAAE,cAAc,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IAC9C,MAAM,KAAK,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAExB,OAAO,CACL,uBAAC,0CAAyB,kBAAC,QAAQ,EAAE,SAAS,gBAC5C,uBAAC,sBAAe,kBACd,SAAS,EAAE,CAAC,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAE,OAAO,CAAC,CAAC,cAAc,IAAI,OAAO,CAAC,EACzC,gBAAgB,EAAE,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,EAC7F,EAAE,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,IACxB,KAAK,EACT,IACwB,CAC7B,CAAA;AACH,CAAC,CAAA;AAjBY,QAAA,uBAAuB,2BAiBnC;AAED,qFAAqF;AACxE,QAAA,cAAc,GAAG,0BAAkB,CAAA"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.XyoEmbedPluginContext = void 0;
4
- const react_shared_1 = require("@xyo-network/react-shared");
5
- exports.XyoEmbedPluginContext = (0, react_shared_1.createContextEx)();
6
- //# sourceMappingURL=Context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/Context.tsx"],"names":[],"mappings":";;;AAAA,4DAA2D;AAI9C,QAAA,qBAAqB,GAAG,IAAA,8BAAe,GAAuB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/Provider.tsx"],"names":[],"mappings":";;;;AAEA,iCAA2C;AAE3C,uCAAiD;AAKjD,mDAAmD;AAC5C,MAAM,sBAAsB,GAAwD,CAAC,EAC1F,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,iBAAiB,GAClB,EAAE,EAAE;IACH,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAkC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAEnH,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACnD,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEb,OAAO,CACL,uBAAC,+BAAqB,CAAC,QAAQ,kBAC7B,KAAK,EAAE;YACL,YAAY;YACZ,iBAAiB;YACjB,kBAAkB;YAClB,QAAQ,EAAE,IAAI;YACd,YAAY;YACZ,eAAe;YACf,cAAc;SACf,gBAEA,QAAQ,IACsB,CAClC,CAAA;AACH,CAAC,CAAA;AA7BY,QAAA,sBAAsB,0BA6BlC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"State.js","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/State.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB;AACzB,qDAA0B;AAC1B,kDAAuB;AACvB,gDAAqB"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useXyoEmbedPluginState = void 0;
4
- const react_shared_1 = require("@xyo-network/react-shared");
5
- const Context_1 = require("./Context");
6
- const useXyoEmbedPluginState = () => (0, react_shared_1.useContextEx)(Context_1.XyoEmbedPluginContext, 'XyoEmbedPlugin', true);
7
- exports.useXyoEmbedPluginState = useXyoEmbedPluginState;
8
- //# sourceMappingURL=use.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use.js","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/use.tsx"],"names":[],"mappings":";;;AAAA,4DAAwD;AAExD,uCAAiD;AAE1C,MAAM,sBAAsB,GAAG,GAAG,EAAE,CAAC,IAAA,2BAAY,EAAC,+BAAqB,EAAE,gBAAgB,EAAE,IAAI,CAAC,CAAA;AAA1F,QAAA,sBAAsB,0BAAoE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"XyoEmbedPluginProps.js","sourceRoot":"","sources":["../../../src/types/XyoEmbedPluginProps.ts"],"names":[],"mappings":""}
@@ -1,15 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { ErrorBoundary, ListModeProvider } from '@xyo-network/react-shared';
3
- import { RefreshPayloadProvider, ResolvePayloadProvider, ValidatePayloadProvider, XyoEmbedPluginProvider } from '../contexts';
4
- import { EmbedResolver } from './EmbedResolver';
5
- import { ValidatePayloadAlert, ValidatePluginsAlert } from './validation-alerts';
6
- export const XyoEmbedPluginInner = ({ validateSchema, plugins = [], huriPayload, refreshTitle = '', timestampLabel = 'Data From', hideElementsConfig, embedPluginConfig, onRefresh, children, }) => {
7
- return (_jsx(ErrorBoundary, { children: _jsx(XyoEmbedPluginProvider, { refreshTitle: refreshTitle, timestampLabel: timestampLabel, hideElementsConfig: hideElementsConfig, plugins: plugins, embedPluginConfig: embedPluginConfig, children: _jsx(WithResolvers, { onRefresh: onRefresh, huriPayload: huriPayload, children: _jsx(WithValidators, { validateSchema: validateSchema, children: _jsx(ListModeProvider, { defaultListMode: embedPluginConfig?.listMode, children: children }) }) }) }) }));
8
- };
9
- const WithResolvers = ({ children, onRefresh, huriPayload }) => {
10
- return (_jsx(RefreshPayloadProvider, { onRefresh: onRefresh, children: _jsx(ResolvePayloadProvider, { huriPayload: huriPayload, children: _jsx(EmbedResolver, { children: children }) }) }));
11
- };
12
- const WithValidators = ({ children, validateSchema }) => {
13
- return (_jsx(ValidatePayloadProvider, { enabled: validateSchema, children: _jsx(ValidatePluginsAlert, { children: _jsx(ValidatePayloadAlert, { children: children }) }) }));
14
- };
15
- //# sourceMappingURL=XyoEmbedPlugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"XyoEmbedPlugin.js","sourceRoot":"","sources":["../../../src/components/XyoEmbedPlugin.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE3E,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAE7H,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAEhF,MAAM,CAAC,MAAM,mBAAmB,GAAgD,CAAC,EAC/E,cAAc,EACd,OAAO,GAAG,EAAE,EACZ,WAAW,EACX,YAAY,GAAG,EAAE,EACjB,cAAc,GAAG,WAAW,EAC5B,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,EACT,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,CACL,KAAC,aAAa,cACZ,KAAC,sBAAsB,IACrB,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAE,iBAAiB,YAEpC,KAAC,aAAa,IAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,YAC3D,KAAC,cAAc,IAAC,cAAc,EAAE,cAAc,YAC5C,KAAC,gBAAgB,IAAC,eAAe,EAAE,iBAAiB,EAAE,QAAQ,YAAG,QAAQ,GAAoB,GAC9E,GACH,GACO,GACX,CACjB,CAAA;AACH,CAAC,CAAA;AAID,MAAM,aAAa,GAA+C,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,EAAE;IACzG,OAAO,CACL,KAAC,sBAAsB,IAAC,SAAS,EAAE,SAAS,YAC1C,KAAC,sBAAsB,IAAC,WAAW,EAAE,WAAW,YAC9C,KAAC,aAAa,cAAE,QAAQ,GAAiB,GAClB,GACF,CAC1B,CAAA;AACH,CAAC,CAAA;AAED,MAAM,cAAc,GAAyD,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,EAAE;IAC5G,OAAO,CACL,KAAC,uBAAuB,IAAC,OAAO,EAAE,cAAc,YAC9C,KAAC,oBAAoB,cACnB,KAAC,oBAAoB,cAAE,QAAQ,GAAwB,GAClC,GACC,CAC3B,CAAA;AACH,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"XyoEmbedPluginCard.js","sourceRoot":"","sources":["../../../../src/components/embed-card/XyoEmbedPluginCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAGxC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAErE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAiB,eAAe,EAAE,MAAM,QAAQ,CAAA;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAI5D,MAAM,CAAC,MAAM,kBAAkB,GAAsC,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC9F,MAAM,EACJ,cAAc,EACd,OAAO,GAAG,EAAE,EACZ,WAAW,EACX,YAAY,GAAG,EAAE,EACjB,cAAc,GAAG,WAAW,EAC5B,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,EACT,GAAG,aAAa,EACjB,GAAG,KAAK,CAAA;IAET,OAAO,CACL,MAAC,mBAAmB,OACd;YACF,iBAAiB;YACjB,kBAAkB;YAClB,WAAW;YACX,SAAS;YACT,OAAO;YACP,YAAY;YACZ,cAAc;YACd,cAAc;SACf,aAED,KAAC,uBAAuB,OAAK,aAAa,GAAI,EAC7C,QAAQ,IACW,CACvB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,uBAAuB,GAA4B,CAAC,KAAK,EAAE,EAAE;IACxE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAClD,MAAM,EAAE,cAAc,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAC9C,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAA;IAExB,OAAO,CACL,KAAC,yBAAyB,IAAC,QAAQ,EAAE,SAAS,YAC5C,KAAC,eAAe,IACd,SAAS,EAAE,CAAC,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAE,OAAO,CAAC,CAAC,cAAc,IAAI,OAAO,CAAC,EACzC,gBAAgB,EAAE,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,EAC7F,EAAE,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,KACxB,KAAK,GACT,GACwB,CAC7B,CAAA;AACH,CAAC,CAAA;AAED,qFAAqF;AACrF,MAAM,CAAC,MAAM,cAAc,GAAG,kBAAkB,CAAA"}
@@ -1,3 +0,0 @@
1
- import { createContextEx } from '@xyo-network/react-shared';
2
- export const XyoEmbedPluginContext = createContextEx();
3
- //# sourceMappingURL=Context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/Context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAI3D,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,EAAuB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/Provider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AAKjD,mDAAmD;AACnD,MAAM,CAAC,MAAM,sBAAsB,GAAwD,CAAC,EAC1F,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,iBAAiB,GAClB,EAAE,EAAE;IACH,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAkC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAEnH,SAAS,CAAC,GAAG,EAAE;QACb,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACnD,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEb,OAAO,CACL,KAAC,qBAAqB,CAAC,QAAQ,IAC7B,KAAK,EAAE;YACL,YAAY;YACZ,iBAAiB;YACjB,kBAAkB;YAClB,QAAQ,EAAE,IAAI;YACd,YAAY;YACZ,eAAe;YACf,cAAc;SACf,YAEA,QAAQ,GACsB,CAClC,CAAA;AACH,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"State.js","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/State.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { useContextEx } from '@xyo-network/react-shared';
2
- import { XyoEmbedPluginContext } from './Context';
3
- export const useXyoEmbedPluginState = () => useContextEx(XyoEmbedPluginContext, 'XyoEmbedPlugin', true);
4
- //# sourceMappingURL=use.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use.js","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/use.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAExD,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AAEjD,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,qBAAqB,EAAE,gBAAgB,EAAE,IAAI,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=XyoEmbedPluginProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"XyoEmbedPluginProps.js","sourceRoot":"","sources":["../../../src/types/XyoEmbedPluginProps.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { WithChildren } from '@xylabs/react-shared';
3
- import { XyoEmbedPluginProps } from '../types';
4
- export declare const XyoEmbedPluginInner: React.FC<WithChildren<XyoEmbedPluginProps>>;
5
- //# sourceMappingURL=XyoEmbedPlugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"XyoEmbedPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/XyoEmbedPlugin.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAInD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAI9C,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,mBAAmB,CAAC,CA4B3E,CAAA"}
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { WithChildren } from '@xylabs/react-shared';
3
- import { XyoEmbedPluginProps } from '../../types';
4
- import { BusyCardProps } from './card';
5
- export interface XyoEmbedPluginCardProps extends WithChildren, XyoEmbedPluginProps, BusyCardProps {
6
- }
7
- export declare const XyoEmbedPluginCard: React.FC<XyoEmbedPluginCardProps>;
8
- export declare const XyoEmbedPluginCardInner: React.FC<BusyCardProps>;
9
- /** @deprecated - use XyoEmbedPluginCard and use CardProps instead of FlexBoxProps */
10
- export declare const XyoEmbedPlugin: import("react").FC<XyoEmbedPluginCardProps>;
11
- //# sourceMappingURL=XyoEmbedPluginCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"XyoEmbedPluginCard.d.ts","sourceRoot":"","sources":["../../../../src/components/embed-card/XyoEmbedPluginCard.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEjD,OAAO,EAAE,aAAa,EAAmB,MAAM,QAAQ,CAAA;AAGvD,MAAM,WAAW,uBAAwB,SAAQ,YAAY,EAAE,mBAAmB,EAAE,aAAa;CAAG;AAEpG,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA8BhE,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiB3D,CAAA;AAED,qFAAqF;AACrF,eAAO,MAAM,cAAc,6CAAqB,CAAA"}
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { XyoEmbedPluginState } from './State';
3
- export declare const XyoEmbedPluginContext: import("react").Context<XyoEmbedPluginState & import("@xyo-network/react-shared").ContextExState>;
4
- //# sourceMappingURL=Context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/Context.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAE7C,eAAO,MAAM,qBAAqB,mGAAyC,CAAA"}
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { WithChildren } from '@xylabs/react-shared';
3
- import { XyoEmbedPluginBase } from './State';
4
- export type XyoEmbedPluginProviderProps = XyoEmbedPluginBase;
5
- /** Expose passed embed plugin props via context */
6
- export declare const XyoEmbedPluginProvider: React.FC<WithChildren<XyoEmbedPluginProviderProps>>;
7
- //# sourceMappingURL=Provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/Provider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAKnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,MAAM,MAAM,2BAA2B,GAAG,kBAAkB,CAAA;AAE5D,mDAAmD;AACnD,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,2BAA2B,CAAC,CA6BtF,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAEhD,MAAM,WAAW,2BAA2B;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,YAAY,CAAA;IAChC,kBAAkB,CAAC,EAAE,2BAA2B,CAAA;IAChD,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB,EAAE,cAAc;IAC7E,YAAY,CAAC,EAAE,mBAAmB,CAAA;IAClC,eAAe,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC,CAAA;CAC5E"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const useXyoEmbedPluginState: () => Omit<import("./State").XyoEmbedPluginState & import("@xyo-network/react-shared").ContextExState, "provided">;
2
- //# sourceMappingURL=use.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/use.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,oHAAoE,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"XyoEmbedPluginProps.d.ts","sourceRoot":"","sources":["../../../src/types/XyoEmbedPluginProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAE7E,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC7D,kBAAkB,CAAC,EAAE,2BAA2B,CAAA;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC9B,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB"}
@@ -1,5 +0,0 @@
1
- import { createContextEx } from '@xyo-network/react-shared'
2
-
3
- import { XyoEmbedPluginState } from './State'
4
-
5
- export const XyoEmbedPluginContext = createContextEx<XyoEmbedPluginState>()
@@ -1,5 +0,0 @@
1
- import { useContextEx } from '@xyo-network/react-shared'
2
-
3
- import { XyoEmbedPluginContext } from './Context'
4
-
5
- export const useXyoEmbedPluginState = () => useContextEx(XyoEmbedPluginContext, 'XyoEmbedPlugin', true)