@xyo-network/react-embed 2.68.3 → 2.69.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. package/dist/browser/components/controls/ListModeSelect.d.cts +3 -3
  2. package/dist/browser/components/controls/ListModeSelect.d.cts.map +1 -1
  3. package/dist/browser/components/controls/ListModeSelect.d.mts +3 -3
  4. package/dist/browser/components/controls/ListModeSelect.d.mts.map +1 -1
  5. package/dist/browser/components/controls/ListModeSelect.d.ts +3 -3
  6. package/dist/browser/components/controls/ListModeSelect.d.ts.map +1 -1
  7. package/dist/browser/components/controls/RenderSelect.d.cts +2 -2
  8. package/dist/browser/components/controls/RenderSelect.d.cts.map +1 -1
  9. package/dist/browser/components/controls/RenderSelect.d.mts +2 -2
  10. package/dist/browser/components/controls/RenderSelect.d.mts.map +1 -1
  11. package/dist/browser/components/controls/RenderSelect.d.ts +2 -2
  12. package/dist/browser/components/controls/RenderSelect.d.ts.map +1 -1
  13. package/dist/browser/components/embed-card/card/BusyCard.d.cts.map +1 -1
  14. package/dist/browser/components/embed-card/card/BusyCard.d.mts.map +1 -1
  15. package/dist/browser/components/embed-card/card/BusyCard.d.ts.map +1 -1
  16. package/dist/browser/components/embed-card/card/EmbedCardHeader.d.cts.map +1 -1
  17. package/dist/browser/components/embed-card/card/EmbedCardHeader.d.mts.map +1 -1
  18. package/dist/browser/components/embed-card/card/EmbedCardHeader.d.ts.map +1 -1
  19. package/dist/browser/components/embed-card/card/EmbedPluginCard.d.cts.map +1 -1
  20. package/dist/browser/components/embed-card/card/EmbedPluginCard.d.mts.map +1 -1
  21. package/dist/browser/components/embed-card/card/EmbedPluginCard.d.ts.map +1 -1
  22. package/dist/browser/contexts/ValidatePayloadContext/Provider.d.cts.map +1 -1
  23. package/dist/browser/contexts/ValidatePayloadContext/Provider.d.mts.map +1 -1
  24. package/dist/browser/contexts/ValidatePayloadContext/Provider.d.ts.map +1 -1
  25. package/dist/browser/index.cjs +4 -2
  26. package/dist/browser/index.cjs.map +1 -1
  27. package/dist/browser/index.js +6 -4
  28. package/dist/browser/index.js.map +1 -1
  29. package/dist/node/components/controls/ListModeSelect.d.cts +3 -3
  30. package/dist/node/components/controls/ListModeSelect.d.cts.map +1 -1
  31. package/dist/node/components/controls/ListModeSelect.d.mts +3 -3
  32. package/dist/node/components/controls/ListModeSelect.d.mts.map +1 -1
  33. package/dist/node/components/controls/ListModeSelect.d.ts +3 -3
  34. package/dist/node/components/controls/ListModeSelect.d.ts.map +1 -1
  35. package/dist/node/components/controls/RenderSelect.d.cts +2 -2
  36. package/dist/node/components/controls/RenderSelect.d.cts.map +1 -1
  37. package/dist/node/components/controls/RenderSelect.d.mts +2 -2
  38. package/dist/node/components/controls/RenderSelect.d.mts.map +1 -1
  39. package/dist/node/components/controls/RenderSelect.d.ts +2 -2
  40. package/dist/node/components/controls/RenderSelect.d.ts.map +1 -1
  41. package/dist/node/components/embed-card/card/BusyCard.d.cts.map +1 -1
  42. package/dist/node/components/embed-card/card/BusyCard.d.mts.map +1 -1
  43. package/dist/node/components/embed-card/card/BusyCard.d.ts.map +1 -1
  44. package/dist/node/components/embed-card/card/EmbedCardHeader.d.cts.map +1 -1
  45. package/dist/node/components/embed-card/card/EmbedCardHeader.d.mts.map +1 -1
  46. package/dist/node/components/embed-card/card/EmbedCardHeader.d.ts.map +1 -1
  47. package/dist/node/components/embed-card/card/EmbedPluginCard.d.cts.map +1 -1
  48. package/dist/node/components/embed-card/card/EmbedPluginCard.d.mts.map +1 -1
  49. package/dist/node/components/embed-card/card/EmbedPluginCard.d.ts.map +1 -1
  50. package/dist/node/contexts/ValidatePayloadContext/Provider.d.cts.map +1 -1
  51. package/dist/node/contexts/ValidatePayloadContext/Provider.d.mts.map +1 -1
  52. package/dist/node/contexts/ValidatePayloadContext/Provider.d.ts.map +1 -1
  53. package/dist/node/index.cjs +4 -2
  54. package/dist/node/index.cjs.map +1 -1
  55. package/dist/node/index.js +6 -4
  56. package/dist/node/index.js.map +1 -1
  57. package/package.json +16 -16
  58. package/src/components/controls/ListModeSelect.tsx +6 -5
  59. package/src/components/controls/RenderSelect.tsx +5 -4
  60. package/src/components/embed-card/card/BusyCard.tsx +6 -2
  61. package/src/components/embed-card/card/EmbedCardHeader.tsx +7 -10
  62. package/src/components/embed-card/card/EmbedPluginCard.tsx +11 -5
  63. package/src/components/embed-card/error-handling/EmbedErrorCard.tsx +3 -4
  64. package/src/components/embed-card/menu/JsonMenuItem.tsx +2 -2
  65. package/src/contexts/ValidatePayloadContext/Provider.tsx +3 -1
@@ -17,14 +17,20 @@ export const EmbedPluginCard: React.FC<BusyCardProps> = ({ ...props }) => {
17
17
  <BusyCard {...props}>
18
18
  {hideElementsConfig?.hideCardHeader ? null : <EmbedCardHeader />}
19
19
  {/* Only show the row if the children are present */}
20
- {(plugins && plugins.length > 0) || supportsListMode ? (
20
+ {(plugins && plugins.length > 0) || supportsListMode ?
21
21
  <FlexGrowRow columnGap={2} rowGap={2} flexWrap="wrap" pb={1}>
22
- {plugins && plugins.length > 1 ? <EmbedRenderSelect /> : null}
23
- {supportsListMode ? <ListModeSelectFormControl /> : null}
22
+ {plugins && plugins.length > 1 ?
23
+ <EmbedRenderSelect />
24
+ : null}
25
+ {supportsListMode ?
26
+ <ListModeSelectFormControl />
27
+ : null}
24
28
  </FlexGrowRow>
25
- ) : null}
29
+ : null}
26
30
  <CardContent sx={{ height: '100%' }}>
27
- {ActivePlugin ? <ActivePlugin.components.box.detailsBox payload={payload} {...(supportsListMode && { listMode })} /> : null}
31
+ {ActivePlugin ?
32
+ <ActivePlugin.components.box.detailsBox payload={payload} {...(supportsListMode && { listMode })} />
33
+ : null}
28
34
  </CardContent>
29
35
  </BusyCard>
30
36
  )
@@ -26,16 +26,15 @@ const DefaultErrorAlert: React.FC<EmbedErrorCardBaseProps> = ({ alertProps, hide
26
26
  return (
27
27
  <Alert severity="error" {...alertProps}>
28
28
  <AlertTitle>Whoops! Something went wrong</AlertTitle>
29
- {!hideErrorDetails && error ? (
29
+ {!hideErrorDetails && error ?
30
30
  <>
31
31
  <Typography variant="caption">Error: </Typography>
32
32
  <Typography variant="caption">{error?.message}</Typography>
33
33
  </>
34
- ) : (
35
- <Typography variant="caption" fontSize="small">
34
+ : <Typography variant="caption" fontSize="small">
36
35
  Error Loading Plugin
37
36
  </Typography>
38
- )}
37
+ }
39
38
  </Alert>
40
39
  )
41
40
  }
@@ -8,14 +8,14 @@ export const JsonMenuItem: React.FC<MenuItemProps> = (props) => {
8
8
 
9
9
  return (
10
10
  <>
11
- {huri ? (
11
+ {huri ?
12
12
  <MenuItem title="Source Payload JSON" onClick={() => window.open(huri, '_blank')} {...props}>
13
13
  <ListItemText sx={{ mr: 1 }}>JSON</ListItemText>
14
14
  <ListItemIcon sx={{ justifyContent: 'end' }}>
15
15
  <OpenInNewIcon fontSize="small" />
16
16
  </ListItemIcon>
17
17
  </MenuItem>
18
- ) : null}
18
+ : null}
19
19
  </>
20
20
  )
21
21
  }
@@ -37,7 +37,9 @@ export const ValidatePayloadProvider: React.FC<WithChildren<ValidatePayloadProvi
37
37
 
38
38
  return (
39
39
  <ValidatePayloadContext.Provider value={{ enabled, provided: true, schema: payload?.schema, validPayload: valid }}>
40
- {enabled ? <>{initialized ? children : <Chip label="Validating Payload..." />}</> : children}
40
+ {enabled ?
41
+ <>{initialized ? children : <Chip label="Validating Payload..." />}</>
42
+ : children}
41
43
  </ValidatePayloadContext.Provider>
42
44
  )
43
45
  }