@xyo-network/react-embed 2.75.7 → 2.76.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (299) hide show
  1. package/dist/neutral/components/EmbedPlugin.d.cts +5 -0
  2. package/dist/neutral/components/EmbedPlugin.d.cts.map +1 -0
  3. package/dist/neutral/components/EmbedPlugin.d.mts +5 -0
  4. package/dist/neutral/components/EmbedPlugin.d.mts.map +1 -0
  5. package/dist/neutral/components/EmbedPlugin.d.ts +5 -0
  6. package/dist/neutral/components/EmbedPlugin.d.ts.map +1 -0
  7. package/dist/neutral/components/EmbedResolver.d.cts +4 -0
  8. package/dist/neutral/components/EmbedResolver.d.cts.map +1 -0
  9. package/dist/neutral/components/EmbedResolver.d.mts +4 -0
  10. package/dist/neutral/components/EmbedResolver.d.mts.map +1 -0
  11. package/dist/neutral/components/EmbedResolver.d.ts +4 -0
  12. package/dist/neutral/components/EmbedResolver.d.ts.map +1 -0
  13. package/dist/neutral/components/controls/EmbedFormControl.d.cts +10 -0
  14. package/dist/neutral/components/controls/EmbedFormControl.d.cts.map +1 -0
  15. package/dist/neutral/components/controls/EmbedFormControl.d.mts +10 -0
  16. package/dist/neutral/components/controls/EmbedFormControl.d.mts.map +1 -0
  17. package/dist/neutral/components/controls/EmbedFormControl.d.ts +10 -0
  18. package/dist/neutral/components/controls/EmbedFormControl.d.ts.map +1 -0
  19. package/dist/neutral/components/controls/ListModeSelect.d.cts +6 -0
  20. package/dist/neutral/components/controls/ListModeSelect.d.cts.map +1 -0
  21. package/dist/neutral/components/controls/ListModeSelect.d.mts +6 -0
  22. package/dist/neutral/components/controls/ListModeSelect.d.mts.map +1 -0
  23. package/dist/neutral/components/controls/ListModeSelect.d.ts +6 -0
  24. package/dist/neutral/components/controls/ListModeSelect.d.ts.map +1 -0
  25. package/dist/neutral/components/controls/RenderSelect.d.cts +4 -0
  26. package/dist/neutral/components/controls/RenderSelect.d.cts.map +1 -0
  27. package/dist/neutral/components/controls/RenderSelect.d.mts +4 -0
  28. package/dist/neutral/components/controls/RenderSelect.d.mts.map +1 -0
  29. package/dist/neutral/components/controls/RenderSelect.d.ts +4 -0
  30. package/dist/neutral/components/controls/RenderSelect.d.ts.map +1 -0
  31. package/dist/neutral/components/controls/index.d.cts +4 -0
  32. package/dist/neutral/components/controls/index.d.cts.map +1 -0
  33. package/dist/neutral/components/controls/index.d.mts +4 -0
  34. package/dist/neutral/components/controls/index.d.mts.map +1 -0
  35. package/dist/neutral/components/controls/index.d.ts +4 -0
  36. package/dist/neutral/components/controls/index.d.ts.map +1 -0
  37. package/dist/neutral/components/embed-card/EmbedCardResolver.d.cts +5 -0
  38. package/dist/neutral/components/embed-card/EmbedCardResolver.d.cts.map +1 -0
  39. package/dist/neutral/components/embed-card/EmbedCardResolver.d.mts +5 -0
  40. package/dist/neutral/components/embed-card/EmbedCardResolver.d.mts.map +1 -0
  41. package/dist/neutral/components/embed-card/EmbedCardResolver.d.ts +5 -0
  42. package/dist/neutral/components/embed-card/EmbedCardResolver.d.ts.map +1 -0
  43. package/dist/neutral/components/embed-card/EmbedPluginCard.d.cts +11 -0
  44. package/dist/neutral/components/embed-card/EmbedPluginCard.d.cts.map +1 -0
  45. package/dist/neutral/components/embed-card/EmbedPluginCard.d.mts +11 -0
  46. package/dist/neutral/components/embed-card/EmbedPluginCard.d.mts.map +1 -0
  47. package/dist/neutral/components/embed-card/EmbedPluginCard.d.ts +11 -0
  48. package/dist/neutral/components/embed-card/EmbedPluginCard.d.ts.map +1 -0
  49. package/dist/neutral/components/embed-card/card/BusyCard.d.cts +11 -0
  50. package/dist/neutral/components/embed-card/card/BusyCard.d.cts.map +1 -0
  51. package/dist/neutral/components/embed-card/card/BusyCard.d.mts +11 -0
  52. package/dist/neutral/components/embed-card/card/BusyCard.d.mts.map +1 -0
  53. package/dist/neutral/components/embed-card/card/BusyCard.d.ts +11 -0
  54. package/dist/neutral/components/embed-card/card/BusyCard.d.ts.map +1 -0
  55. package/dist/neutral/components/embed-card/card/EmbedCardHeader.d.cts +4 -0
  56. package/dist/neutral/components/embed-card/card/EmbedCardHeader.d.cts.map +1 -0
  57. package/dist/neutral/components/embed-card/card/EmbedCardHeader.d.mts +4 -0
  58. package/dist/neutral/components/embed-card/card/EmbedCardHeader.d.mts.map +1 -0
  59. package/dist/neutral/components/embed-card/card/EmbedCardHeader.d.ts +4 -0
  60. package/dist/neutral/components/embed-card/card/EmbedCardHeader.d.ts.map +1 -0
  61. package/dist/neutral/components/embed-card/card/EmbedPluginCard.d.cts +4 -0
  62. package/dist/neutral/components/embed-card/card/EmbedPluginCard.d.cts.map +1 -0
  63. package/dist/neutral/components/embed-card/card/EmbedPluginCard.d.mts +4 -0
  64. package/dist/neutral/components/embed-card/card/EmbedPluginCard.d.mts.map +1 -0
  65. package/dist/neutral/components/embed-card/card/EmbedPluginCard.d.ts +4 -0
  66. package/dist/neutral/components/embed-card/card/EmbedPluginCard.d.ts.map +1 -0
  67. package/dist/neutral/components/embed-card/card/index.d.cts +4 -0
  68. package/dist/neutral/components/embed-card/card/index.d.cts.map +1 -0
  69. package/dist/neutral/components/embed-card/card/index.d.mts +4 -0
  70. package/dist/neutral/components/embed-card/card/index.d.mts.map +1 -0
  71. package/dist/neutral/components/embed-card/card/index.d.ts +4 -0
  72. package/dist/neutral/components/embed-card/card/index.d.ts.map +1 -0
  73. package/dist/neutral/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.cts +10 -0
  74. package/dist/neutral/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.cts.map +1 -0
  75. package/dist/neutral/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.mts +10 -0
  76. package/dist/neutral/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.mts.map +1 -0
  77. package/dist/neutral/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts +10 -0
  78. package/dist/neutral/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts.map +1 -0
  79. package/dist/neutral/components/embed-card/error-handling/EmbedErrorCard.d.cts +15 -0
  80. package/dist/neutral/components/embed-card/error-handling/EmbedErrorCard.d.cts.map +1 -0
  81. package/dist/neutral/components/embed-card/error-handling/EmbedErrorCard.d.mts +15 -0
  82. package/dist/neutral/components/embed-card/error-handling/EmbedErrorCard.d.mts.map +1 -0
  83. package/dist/neutral/components/embed-card/error-handling/EmbedErrorCard.d.ts +15 -0
  84. package/dist/neutral/components/embed-card/error-handling/EmbedErrorCard.d.ts.map +1 -0
  85. package/dist/neutral/components/embed-card/error-handling/index.d.cts +3 -0
  86. package/dist/neutral/components/embed-card/error-handling/index.d.cts.map +1 -0
  87. package/dist/neutral/components/embed-card/error-handling/index.d.mts +3 -0
  88. package/dist/neutral/components/embed-card/error-handling/index.d.mts.map +1 -0
  89. package/dist/neutral/components/embed-card/error-handling/index.d.ts +3 -0
  90. package/dist/neutral/components/embed-card/error-handling/index.d.ts.map +1 -0
  91. package/dist/neutral/components/embed-card/index.d.cts +3 -0
  92. package/dist/neutral/components/embed-card/index.d.cts.map +1 -0
  93. package/dist/neutral/components/embed-card/index.d.mts +3 -0
  94. package/dist/neutral/components/embed-card/index.d.mts.map +1 -0
  95. package/dist/neutral/components/embed-card/index.d.ts +3 -0
  96. package/dist/neutral/components/embed-card/index.d.ts.map +1 -0
  97. package/dist/neutral/components/embed-card/menu/EmbedMenu.d.cts +4 -0
  98. package/dist/neutral/components/embed-card/menu/EmbedMenu.d.cts.map +1 -0
  99. package/dist/neutral/components/embed-card/menu/EmbedMenu.d.mts +4 -0
  100. package/dist/neutral/components/embed-card/menu/EmbedMenu.d.mts.map +1 -0
  101. package/dist/neutral/components/embed-card/menu/EmbedMenu.d.ts +4 -0
  102. package/dist/neutral/components/embed-card/menu/EmbedMenu.d.ts.map +1 -0
  103. package/dist/neutral/components/embed-card/menu/JsonMenuItem.d.cts +4 -0
  104. package/dist/neutral/components/embed-card/menu/JsonMenuItem.d.cts.map +1 -0
  105. package/dist/neutral/components/embed-card/menu/JsonMenuItem.d.mts +4 -0
  106. package/dist/neutral/components/embed-card/menu/JsonMenuItem.d.mts.map +1 -0
  107. package/dist/neutral/components/embed-card/menu/JsonMenuItem.d.ts +4 -0
  108. package/dist/neutral/components/embed-card/menu/JsonMenuItem.d.ts.map +1 -0
  109. package/dist/neutral/components/embed-card/menu/index.d.cts +2 -0
  110. package/dist/neutral/components/embed-card/menu/index.d.cts.map +1 -0
  111. package/dist/neutral/components/embed-card/menu/index.d.mts +2 -0
  112. package/dist/neutral/components/embed-card/menu/index.d.mts.map +1 -0
  113. package/dist/neutral/components/embed-card/menu/index.d.ts +2 -0
  114. package/dist/neutral/components/embed-card/menu/index.d.ts.map +1 -0
  115. package/dist/neutral/components/index.d.cts +3 -0
  116. package/dist/neutral/components/index.d.cts.map +1 -0
  117. package/dist/neutral/components/index.d.mts +3 -0
  118. package/dist/neutral/components/index.d.mts.map +1 -0
  119. package/dist/neutral/components/index.d.ts +3 -0
  120. package/dist/neutral/components/index.d.ts.map +1 -0
  121. package/dist/neutral/components/stories/storyPayload.d.cts +126 -0
  122. package/dist/neutral/components/stories/storyPayload.d.cts.map +1 -0
  123. package/dist/neutral/components/stories/storyPayload.d.mts +126 -0
  124. package/dist/neutral/components/stories/storyPayload.d.mts.map +1 -0
  125. package/dist/neutral/components/stories/storyPayload.d.ts +126 -0
  126. package/dist/neutral/components/stories/storyPayload.d.ts.map +1 -0
  127. package/dist/neutral/components/stories/storyShared.d.cts +5 -0
  128. package/dist/neutral/components/stories/storyShared.d.cts.map +1 -0
  129. package/dist/neutral/components/stories/storyShared.d.mts +5 -0
  130. package/dist/neutral/components/stories/storyShared.d.mts.map +1 -0
  131. package/dist/neutral/components/stories/storyShared.d.ts +5 -0
  132. package/dist/neutral/components/stories/storyShared.d.ts.map +1 -0
  133. package/dist/neutral/components/validation-alerts/ValidatePayload.d.cts +5 -0
  134. package/dist/neutral/components/validation-alerts/ValidatePayload.d.cts.map +1 -0
  135. package/dist/neutral/components/validation-alerts/ValidatePayload.d.mts +5 -0
  136. package/dist/neutral/components/validation-alerts/ValidatePayload.d.mts.map +1 -0
  137. package/dist/neutral/components/validation-alerts/ValidatePayload.d.ts +5 -0
  138. package/dist/neutral/components/validation-alerts/ValidatePayload.d.ts.map +1 -0
  139. package/dist/neutral/components/validation-alerts/ValidatePlugins.d.cts +5 -0
  140. package/dist/neutral/components/validation-alerts/ValidatePlugins.d.cts.map +1 -0
  141. package/dist/neutral/components/validation-alerts/ValidatePlugins.d.mts +5 -0
  142. package/dist/neutral/components/validation-alerts/ValidatePlugins.d.mts.map +1 -0
  143. package/dist/neutral/components/validation-alerts/ValidatePlugins.d.ts +5 -0
  144. package/dist/neutral/components/validation-alerts/ValidatePlugins.d.ts.map +1 -0
  145. package/dist/neutral/components/validation-alerts/index.d.cts +3 -0
  146. package/dist/neutral/components/validation-alerts/index.d.cts.map +1 -0
  147. package/dist/neutral/components/validation-alerts/index.d.mts +3 -0
  148. package/dist/neutral/components/validation-alerts/index.d.mts.map +1 -0
  149. package/dist/neutral/components/validation-alerts/index.d.ts +3 -0
  150. package/dist/neutral/components/validation-alerts/index.d.ts.map +1 -0
  151. package/dist/neutral/contexts/EmbedPluginContext/Context.d.cts +4 -0
  152. package/dist/neutral/contexts/EmbedPluginContext/Context.d.cts.map +1 -0
  153. package/dist/neutral/contexts/EmbedPluginContext/Context.d.mts +4 -0
  154. package/dist/neutral/contexts/EmbedPluginContext/Context.d.mts.map +1 -0
  155. package/dist/neutral/contexts/EmbedPluginContext/Context.d.ts +4 -0
  156. package/dist/neutral/contexts/EmbedPluginContext/Context.d.ts.map +1 -0
  157. package/dist/neutral/contexts/EmbedPluginContext/Provider.d.cts +7 -0
  158. package/dist/neutral/contexts/EmbedPluginContext/Provider.d.cts.map +1 -0
  159. package/dist/neutral/contexts/EmbedPluginContext/Provider.d.mts +7 -0
  160. package/dist/neutral/contexts/EmbedPluginContext/Provider.d.mts.map +1 -0
  161. package/dist/neutral/contexts/EmbedPluginContext/Provider.d.ts +7 -0
  162. package/dist/neutral/contexts/EmbedPluginContext/Provider.d.ts.map +1 -0
  163. package/dist/neutral/contexts/EmbedPluginContext/State.d.cts +33 -0
  164. package/dist/neutral/contexts/EmbedPluginContext/State.d.cts.map +1 -0
  165. package/dist/neutral/contexts/EmbedPluginContext/State.d.mts +33 -0
  166. package/dist/neutral/contexts/EmbedPluginContext/State.d.mts.map +1 -0
  167. package/dist/neutral/contexts/EmbedPluginContext/State.d.ts +33 -0
  168. package/dist/neutral/contexts/EmbedPluginContext/State.d.ts.map +1 -0
  169. package/dist/neutral/contexts/EmbedPluginContext/index.d.cts +5 -0
  170. package/dist/neutral/contexts/EmbedPluginContext/index.d.cts.map +1 -0
  171. package/dist/neutral/contexts/EmbedPluginContext/index.d.mts +5 -0
  172. package/dist/neutral/contexts/EmbedPluginContext/index.d.mts.map +1 -0
  173. package/dist/neutral/contexts/EmbedPluginContext/index.d.ts +5 -0
  174. package/dist/neutral/contexts/EmbedPluginContext/index.d.ts.map +1 -0
  175. package/dist/neutral/contexts/EmbedPluginContext/use.d.cts +2 -0
  176. package/dist/neutral/contexts/EmbedPluginContext/use.d.cts.map +1 -0
  177. package/dist/neutral/contexts/EmbedPluginContext/use.d.mts +2 -0
  178. package/dist/neutral/contexts/EmbedPluginContext/use.d.mts.map +1 -0
  179. package/dist/neutral/contexts/EmbedPluginContext/use.d.ts +2 -0
  180. package/dist/neutral/contexts/EmbedPluginContext/use.d.ts.map +1 -0
  181. package/dist/neutral/contexts/RefreshPayloadContext/Context.d.cts +4 -0
  182. package/dist/neutral/contexts/RefreshPayloadContext/Context.d.cts.map +1 -0
  183. package/dist/neutral/contexts/RefreshPayloadContext/Context.d.mts +4 -0
  184. package/dist/neutral/contexts/RefreshPayloadContext/Context.d.mts.map +1 -0
  185. package/dist/neutral/contexts/RefreshPayloadContext/Context.d.ts +4 -0
  186. package/dist/neutral/contexts/RefreshPayloadContext/Context.d.ts.map +1 -0
  187. package/dist/neutral/contexts/RefreshPayloadContext/Provider.d.cts +8 -0
  188. package/dist/neutral/contexts/RefreshPayloadContext/Provider.d.cts.map +1 -0
  189. package/dist/neutral/contexts/RefreshPayloadContext/Provider.d.mts +8 -0
  190. package/dist/neutral/contexts/RefreshPayloadContext/Provider.d.mts.map +1 -0
  191. package/dist/neutral/contexts/RefreshPayloadContext/Provider.d.ts +8 -0
  192. package/dist/neutral/contexts/RefreshPayloadContext/Provider.d.ts.map +1 -0
  193. package/dist/neutral/contexts/RefreshPayloadContext/State.d.cts +8 -0
  194. package/dist/neutral/contexts/RefreshPayloadContext/State.d.cts.map +1 -0
  195. package/dist/neutral/contexts/RefreshPayloadContext/State.d.mts +8 -0
  196. package/dist/neutral/contexts/RefreshPayloadContext/State.d.mts.map +1 -0
  197. package/dist/neutral/contexts/RefreshPayloadContext/State.d.ts +8 -0
  198. package/dist/neutral/contexts/RefreshPayloadContext/State.d.ts.map +1 -0
  199. package/dist/neutral/contexts/RefreshPayloadContext/index.d.cts +4 -0
  200. package/dist/neutral/contexts/RefreshPayloadContext/index.d.cts.map +1 -0
  201. package/dist/neutral/contexts/RefreshPayloadContext/index.d.mts +4 -0
  202. package/dist/neutral/contexts/RefreshPayloadContext/index.d.mts.map +1 -0
  203. package/dist/neutral/contexts/RefreshPayloadContext/index.d.ts +4 -0
  204. package/dist/neutral/contexts/RefreshPayloadContext/index.d.ts.map +1 -0
  205. package/dist/neutral/contexts/RefreshPayloadContext/use.d.cts +2 -0
  206. package/dist/neutral/contexts/RefreshPayloadContext/use.d.cts.map +1 -0
  207. package/dist/neutral/contexts/RefreshPayloadContext/use.d.mts +2 -0
  208. package/dist/neutral/contexts/RefreshPayloadContext/use.d.mts.map +1 -0
  209. package/dist/neutral/contexts/RefreshPayloadContext/use.d.ts +2 -0
  210. package/dist/neutral/contexts/RefreshPayloadContext/use.d.ts.map +1 -0
  211. package/dist/neutral/contexts/ResolvePayloadContext/Context.d.cts +4 -0
  212. package/dist/neutral/contexts/ResolvePayloadContext/Context.d.cts.map +1 -0
  213. package/dist/neutral/contexts/ResolvePayloadContext/Context.d.mts +4 -0
  214. package/dist/neutral/contexts/ResolvePayloadContext/Context.d.mts.map +1 -0
  215. package/dist/neutral/contexts/ResolvePayloadContext/Context.d.ts +4 -0
  216. package/dist/neutral/contexts/ResolvePayloadContext/Context.d.ts.map +1 -0
  217. package/dist/neutral/contexts/ResolvePayloadContext/Provider.d.cts +6 -0
  218. package/dist/neutral/contexts/ResolvePayloadContext/Provider.d.cts.map +1 -0
  219. package/dist/neutral/contexts/ResolvePayloadContext/Provider.d.mts +6 -0
  220. package/dist/neutral/contexts/ResolvePayloadContext/Provider.d.mts.map +1 -0
  221. package/dist/neutral/contexts/ResolvePayloadContext/Provider.d.ts +6 -0
  222. package/dist/neutral/contexts/ResolvePayloadContext/Provider.d.ts.map +1 -0
  223. package/dist/neutral/contexts/ResolvePayloadContext/State.d.cts +13 -0
  224. package/dist/neutral/contexts/ResolvePayloadContext/State.d.cts.map +1 -0
  225. package/dist/neutral/contexts/ResolvePayloadContext/State.d.mts +13 -0
  226. package/dist/neutral/contexts/ResolvePayloadContext/State.d.mts.map +1 -0
  227. package/dist/neutral/contexts/ResolvePayloadContext/State.d.ts +13 -0
  228. package/dist/neutral/contexts/ResolvePayloadContext/State.d.ts.map +1 -0
  229. package/dist/neutral/contexts/ResolvePayloadContext/index.d.cts +5 -0
  230. package/dist/neutral/contexts/ResolvePayloadContext/index.d.cts.map +1 -0
  231. package/dist/neutral/contexts/ResolvePayloadContext/index.d.mts +5 -0
  232. package/dist/neutral/contexts/ResolvePayloadContext/index.d.mts.map +1 -0
  233. package/dist/neutral/contexts/ResolvePayloadContext/index.d.ts +5 -0
  234. package/dist/neutral/contexts/ResolvePayloadContext/index.d.ts.map +1 -0
  235. package/dist/neutral/contexts/ResolvePayloadContext/use.d.cts +2 -0
  236. package/dist/neutral/contexts/ResolvePayloadContext/use.d.cts.map +1 -0
  237. package/dist/neutral/contexts/ResolvePayloadContext/use.d.mts +2 -0
  238. package/dist/neutral/contexts/ResolvePayloadContext/use.d.mts.map +1 -0
  239. package/dist/neutral/contexts/ResolvePayloadContext/use.d.ts +2 -0
  240. package/dist/neutral/contexts/ResolvePayloadContext/use.d.ts.map +1 -0
  241. package/dist/neutral/contexts/ValidatePayloadContext/Context.d.cts +4 -0
  242. package/dist/neutral/contexts/ValidatePayloadContext/Context.d.cts.map +1 -0
  243. package/dist/neutral/contexts/ValidatePayloadContext/Context.d.mts +4 -0
  244. package/dist/neutral/contexts/ValidatePayloadContext/Context.d.mts.map +1 -0
  245. package/dist/neutral/contexts/ValidatePayloadContext/Context.d.ts +4 -0
  246. package/dist/neutral/contexts/ValidatePayloadContext/Context.d.ts.map +1 -0
  247. package/dist/neutral/contexts/ValidatePayloadContext/Provider.d.cts +7 -0
  248. package/dist/neutral/contexts/ValidatePayloadContext/Provider.d.cts.map +1 -0
  249. package/dist/neutral/contexts/ValidatePayloadContext/Provider.d.mts +7 -0
  250. package/dist/neutral/contexts/ValidatePayloadContext/Provider.d.mts.map +1 -0
  251. package/dist/neutral/contexts/ValidatePayloadContext/Provider.d.ts +7 -0
  252. package/dist/neutral/contexts/ValidatePayloadContext/Provider.d.ts.map +1 -0
  253. package/dist/neutral/contexts/ValidatePayloadContext/State.d.cts +7 -0
  254. package/dist/neutral/contexts/ValidatePayloadContext/State.d.cts.map +1 -0
  255. package/dist/neutral/contexts/ValidatePayloadContext/State.d.mts +7 -0
  256. package/dist/neutral/contexts/ValidatePayloadContext/State.d.mts.map +1 -0
  257. package/dist/neutral/contexts/ValidatePayloadContext/State.d.ts +7 -0
  258. package/dist/neutral/contexts/ValidatePayloadContext/State.d.ts.map +1 -0
  259. package/dist/neutral/contexts/ValidatePayloadContext/index.d.cts +4 -0
  260. package/dist/neutral/contexts/ValidatePayloadContext/index.d.cts.map +1 -0
  261. package/dist/neutral/contexts/ValidatePayloadContext/index.d.mts +4 -0
  262. package/dist/neutral/contexts/ValidatePayloadContext/index.d.mts.map +1 -0
  263. package/dist/neutral/contexts/ValidatePayloadContext/index.d.ts +4 -0
  264. package/dist/neutral/contexts/ValidatePayloadContext/index.d.ts.map +1 -0
  265. package/dist/neutral/contexts/ValidatePayloadContext/use.d.cts +2 -0
  266. package/dist/neutral/contexts/ValidatePayloadContext/use.d.cts.map +1 -0
  267. package/dist/neutral/contexts/ValidatePayloadContext/use.d.mts +2 -0
  268. package/dist/neutral/contexts/ValidatePayloadContext/use.d.mts.map +1 -0
  269. package/dist/neutral/contexts/ValidatePayloadContext/use.d.ts +2 -0
  270. package/dist/neutral/contexts/ValidatePayloadContext/use.d.ts.map +1 -0
  271. package/dist/neutral/contexts/index.d.cts +5 -0
  272. package/dist/neutral/contexts/index.d.cts.map +1 -0
  273. package/dist/neutral/contexts/index.d.mts +5 -0
  274. package/dist/neutral/contexts/index.d.mts.map +1 -0
  275. package/dist/neutral/contexts/index.d.ts +5 -0
  276. package/dist/neutral/contexts/index.d.ts.map +1 -0
  277. package/dist/neutral/index.cjs +514 -0
  278. package/dist/neutral/index.cjs.map +1 -0
  279. package/dist/neutral/index.d.cts +4 -0
  280. package/dist/neutral/index.d.cts.map +1 -0
  281. package/dist/neutral/index.d.mts +4 -0
  282. package/dist/neutral/index.d.mts.map +1 -0
  283. package/dist/neutral/index.d.ts +4 -0
  284. package/dist/neutral/index.d.ts.map +1 -0
  285. package/dist/neutral/index.js +494 -0
  286. package/dist/neutral/index.js.map +1 -0
  287. package/dist/neutral/types/EmbedPluginProps.d.cts +10 -0
  288. package/dist/neutral/types/EmbedPluginProps.d.cts.map +1 -0
  289. package/dist/neutral/types/EmbedPluginProps.d.mts +10 -0
  290. package/dist/neutral/types/EmbedPluginProps.d.mts.map +1 -0
  291. package/dist/neutral/types/EmbedPluginProps.d.ts +10 -0
  292. package/dist/neutral/types/EmbedPluginProps.d.ts.map +1 -0
  293. package/dist/neutral/types/index.d.cts +2 -0
  294. package/dist/neutral/types/index.d.cts.map +1 -0
  295. package/dist/neutral/types/index.d.mts +2 -0
  296. package/dist/neutral/types/index.d.mts.map +1 -0
  297. package/dist/neutral/types/index.d.ts +2 -0
  298. package/dist/neutral/types/index.d.ts.map +1 -0
  299. package/package.json +12 -12
@@ -0,0 +1,514 @@
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/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ ApiEmbedPluginCard: () => ApiEmbedPluginCard,
24
+ BusyCard: () => BusyCard,
25
+ EmbedCardHeader: () => EmbedCardHeader,
26
+ EmbedPlugin: () => EmbedPluginCard,
27
+ EmbedPluginCard: () => EmbedPluginCard,
28
+ EmbedPluginCardInner: () => EmbedPluginCardInner,
29
+ EmbedPluginContext: () => EmbedPluginContext,
30
+ EmbedPluginInner: () => EmbedPluginInner,
31
+ EmbedPluginProvider: () => EmbedPluginProvider,
32
+ RefreshPayloadProvider: () => RefreshPayloadProvider,
33
+ ResolvePayloadContext: () => ResolvePayloadContext,
34
+ ResolvePayloadProvider: () => ResolvePayloadProvider,
35
+ ValidatePayloadProvider: () => ValidatePayloadProvider,
36
+ useEmbedPluginState: () => useEmbedPluginState,
37
+ useRefreshPayload: () => useRefreshPayload,
38
+ useResolvePayload: () => useResolvePayload,
39
+ useValidatePayload: () => useValidatePayload
40
+ });
41
+ module.exports = __toCommonJS(src_exports);
42
+
43
+ // src/components/embed-card/card/BusyCard.tsx
44
+ var import_material = require("@mui/material");
45
+ var import_react_flexbox = require("@xylabs/react-flexbox");
46
+ var import_react_shared = require("@xylabs/react-shared");
47
+ var import_jsx_runtime = require("react/jsx-runtime");
48
+ var BusyCard = ({
49
+ busy,
50
+ busyMinimum = 500,
51
+ busyVariant = "circular",
52
+ busyVariantProps,
53
+ children,
54
+ ...props
55
+ }) => {
56
+ const internalBusy = (0, import_react_flexbox.useBusyTiming)(busy, busyMinimum);
57
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Card, { ...props, children: [
58
+ children,
59
+ busyVariant === "circular" && internalBusy ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_shared.BusyCircularProgress, { ...busyVariantProps }) : null,
60
+ busyVariant === "linear" && internalBusy ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_shared.BusyLinearProgress, { ...busyVariantProps }) : null
61
+ ] });
62
+ };
63
+
64
+ // src/components/embed-card/card/EmbedCardHeader.tsx
65
+ var import_icons_material3 = require("@mui/icons-material");
66
+ var import_material5 = require("@mui/material");
67
+ var import_react_flexbox2 = require("@xylabs/react-flexbox");
68
+
69
+ // src/contexts/EmbedPluginContext/Context.tsx
70
+ var import_react_shared2 = require("@xyo-network/react-shared");
71
+ var EmbedPluginContext = (0, import_react_shared2.createContextEx)();
72
+
73
+ // src/contexts/EmbedPluginContext/Provider.tsx
74
+ var import_react = require("react");
75
+ var import_jsx_runtime2 = require("react/jsx-runtime");
76
+ var EmbedPluginProvider = ({
77
+ children,
78
+ refreshTitle,
79
+ timestampLabel,
80
+ hideElementsConfig,
81
+ plugins,
82
+ embedPluginConfig
83
+ }) => {
84
+ const [activePlugin, setActivePlugin] = (0, import_react.useState)(plugins ? plugins[0] : void 0);
85
+ (0, import_react.useEffect)(() => {
86
+ setActivePlugin(plugins ? plugins[0] : void 0);
87
+ }, [plugins]);
88
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
89
+ EmbedPluginContext.Provider,
90
+ {
91
+ value: {
92
+ activePlugin,
93
+ embedPluginConfig,
94
+ hideElementsConfig,
95
+ provided: true,
96
+ refreshTitle,
97
+ setActivePlugin,
98
+ timestampLabel
99
+ },
100
+ children
101
+ }
102
+ );
103
+ };
104
+
105
+ // src/contexts/EmbedPluginContext/use.tsx
106
+ var import_react_shared3 = require("@xyo-network/react-shared");
107
+ var useEmbedPluginState = () => (0, import_react_shared3.useContextEx)(EmbedPluginContext, "EmbedPlugin", true);
108
+
109
+ // src/contexts/RefreshPayloadContext/Provider.tsx
110
+ var import_react2 = require("react");
111
+
112
+ // src/contexts/RefreshPayloadContext/Context.tsx
113
+ var import_react_shared4 = require("@xyo-network/react-shared");
114
+ var RefreshPayloadContext = (0, import_react_shared4.createContextEx)();
115
+
116
+ // src/contexts/RefreshPayloadContext/Provider.tsx
117
+ var import_jsx_runtime3 = require("react/jsx-runtime");
118
+ var RefreshPayloadProvider = ({ children, onRefresh, refreshPayload }) => {
119
+ const [localRefreshPayload, setRefreshPayload] = (0, import_react2.useState)(refreshPayload);
120
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RefreshPayloadContext.Provider, { value: { onRefresh, provided: true, refreshPayload: localRefreshPayload, setRefreshPayload }, children });
121
+ };
122
+
123
+ // src/contexts/RefreshPayloadContext/use.tsx
124
+ var import_react_shared5 = require("@xyo-network/react-shared");
125
+ var useRefreshPayload = () => (0, import_react_shared5.useContextEx)(RefreshPayloadContext, "RefreshPayload", true);
126
+
127
+ // src/contexts/ResolvePayloadContext/Context.ts
128
+ var import_react_shared6 = require("@xyo-network/react-shared");
129
+ var ResolvePayloadContext = (0, import_react_shared6.createContextEx)();
130
+
131
+ // src/contexts/ResolvePayloadContext/Provider.tsx
132
+ var import_delay = require("@xylabs/delay");
133
+ var import_react_async_effect = require("@xylabs/react-async-effect");
134
+ var import_huri = require("@xyo-network/huri");
135
+ var import_payload_model = require("@xyo-network/payload-model");
136
+ var import_react3 = require("react");
137
+ var import_jsx_runtime4 = require("react/jsx-runtime");
138
+ var ResolvePayloadProvider = ({ children, huriPayload }) => {
139
+ const [payload, setPayload] = (0, import_react3.useState)();
140
+ const [huri, setHuri] = (0, import_react3.useState)();
141
+ const { refreshPayload, setRefreshPayload, onRefresh } = useRefreshPayload();
142
+ (0, import_react3.useEffect)(() => {
143
+ typeof huriPayload === "string" ? setHuri(huriPayload) : void 0;
144
+ if (typeof huriPayload === "object") {
145
+ setPayload(huriPayload);
146
+ setRefreshPayload?.(true);
147
+ }
148
+ }, [huriPayload, setRefreshPayload]);
149
+ const [notFound, setNotFound] = (0, import_react3.useState)();
150
+ const [huriError, setHuriError] = (0, import_react3.useState)();
151
+ (0, import_react_async_effect.useAsyncEffect)(
152
+ // eslint-disable-next-line react-hooks/exhaustive-deps
153
+ async (mounted) => {
154
+ if (huri && !refreshPayload) {
155
+ try {
156
+ const huriInstance = new import_huri.Huri(huri);
157
+ const result = await huriInstance.fetch();
158
+ await (0, import_delay.delay)(500);
159
+ if (mounted()) {
160
+ setNotFound(result === null);
161
+ setPayload(result);
162
+ setRefreshPayload?.(true);
163
+ }
164
+ } catch (e) {
165
+ const error = e;
166
+ setHuriError({ message: error.message, schema: import_payload_model.ModuleErrorSchema, sources: [] });
167
+ }
168
+ }
169
+ },
170
+ [huri, payload, refreshPayload, setRefreshPayload]
171
+ );
172
+ const refreshHuri = () => {
173
+ onRefresh?.();
174
+ if (huri) {
175
+ setRefreshPayload?.(false);
176
+ }
177
+ };
178
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ResolvePayloadContext.Provider, { value: { huri, huriError, notFound, payload, provided: true, refreshHuri, setPayload }, children });
179
+ };
180
+
181
+ // src/contexts/ResolvePayloadContext/use.tsx
182
+ var import_react_shared7 = require("@xyo-network/react-shared");
183
+ var useResolvePayload = () => (0, import_react_shared7.useContextEx)(ResolvePayloadContext, "ResolvePayload", true);
184
+
185
+ // src/contexts/ValidatePayloadContext/Provider.tsx
186
+ var import_material2 = require("@mui/material");
187
+ var import_react_async_effect2 = require("@xylabs/react-async-effect");
188
+ var import_schema_cache = require("@xyo-network/schema-cache");
189
+ var import_react4 = require("react");
190
+
191
+ // src/contexts/ValidatePayloadContext/Context.ts
192
+ var import_react_shared8 = require("@xyo-network/react-shared");
193
+ var ValidatePayloadContext = (0, import_react_shared8.createContextEx)();
194
+
195
+ // src/contexts/ValidatePayloadContext/Provider.tsx
196
+ var import_jsx_runtime5 = require("react/jsx-runtime");
197
+ var ValidatePayloadProvider = ({ children, enabled = false }) => {
198
+ const { payload } = useResolvePayload();
199
+ const [initialized, setInitialized] = (0, import_react4.useState)(false);
200
+ const [valid, setValid] = (0, import_react4.useState)();
201
+ (0, import_react_async_effect2.useAsyncEffect)(
202
+ // eslint-disable-next-line react-hooks/exhaustive-deps
203
+ async () => {
204
+ if (payload && enabled) {
205
+ await import_schema_cache.SchemaCache.instance.get(payload.schema);
206
+ const possibleKnownSchema = payload.schema;
207
+ if (import_schema_cache.SchemaCache.instance.validators[possibleKnownSchema]) {
208
+ const validator = import_schema_cache.SchemaCache.instance.validators[possibleKnownSchema];
209
+ setValid(validator?.(payload));
210
+ }
211
+ setInitialized(true);
212
+ }
213
+ },
214
+ [payload, enabled]
215
+ );
216
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ValidatePayloadContext.Provider, { value: { enabled, provided: true, schema: payload?.schema, validPayload: valid }, children: enabled ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: initialized ? children : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material2.Chip, { label: "Validating Payload..." }) }) : children });
217
+ };
218
+
219
+ // src/contexts/ValidatePayloadContext/use.tsx
220
+ var import_react_shared9 = require("@xyo-network/react-shared");
221
+ var useValidatePayload = () => (0, import_react_shared9.useContextEx)(ValidatePayloadContext, "ValidateSchema", true);
222
+
223
+ // src/components/embed-card/menu/EmbedMenu.tsx
224
+ var import_icons_material2 = require("@mui/icons-material");
225
+ var import_material4 = require("@mui/material");
226
+ var import_react5 = require("react");
227
+
228
+ // src/components/embed-card/menu/JsonMenuItem.tsx
229
+ var import_icons_material = require("@mui/icons-material");
230
+ var import_material3 = require("@mui/material");
231
+ var import_jsx_runtime6 = require("react/jsx-runtime");
232
+ var JsonMenuItem = (props) => {
233
+ const { huri } = useResolvePayload();
234
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: huri ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_material3.MenuItem, { title: "Source Payload JSON", onClick: () => window.open(huri, "_blank"), ...props, children: [
235
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material3.ListItemText, { sx: { mr: 1 }, children: "JSON" }),
236
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material3.ListItemIcon, { sx: { justifyContent: "end" }, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_icons_material.OpenInNew, { fontSize: "small" }) })
237
+ ] }) : null });
238
+ };
239
+
240
+ // src/components/embed-card/menu/EmbedMenu.tsx
241
+ var import_jsx_runtime7 = require("react/jsx-runtime");
242
+ var EmbedMenu = (props) => {
243
+ const [anchorEl, setAnchorEl] = (0, import_react5.useState)(null);
244
+ const open = Boolean(anchorEl);
245
+ const handleClick = (event) => {
246
+ setAnchorEl(event.currentTarget);
247
+ };
248
+ const handleClose = () => {
249
+ setAnchorEl(null);
250
+ };
251
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
252
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material4.IconButton, { onClick: handleClick, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_icons_material2.MoreVert, {}) }),
253
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material4.Menu, { anchorEl, open, onClose: handleClose, PaperProps: { variant: "elevation" }, MenuListProps: { dense: true }, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(JsonMenuItem, {}) })
254
+ ] });
255
+ };
256
+
257
+ // src/components/embed-card/card/EmbedCardHeader.tsx
258
+ var import_jsx_runtime8 = require("react/jsx-runtime");
259
+ var EmbedCardHeader = () => {
260
+ const { refreshHuri, huri } = useResolvePayload();
261
+ const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState();
262
+ const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {};
263
+ const timestamp = Date.now();
264
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
265
+ import_material5.CardHeader,
266
+ {
267
+ sx: { flexWrap: "wrap", rowGap: 1 },
268
+ avatar: hideAvatar ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, {}) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material5.Avatar, { sx: { bgcolor: (theme) => theme.palette.primary.main }, "aria-label": activePlugin?.name, children: activePlugin?.name?.charAt(0) }),
269
+ action: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react_flexbox2.FlexRow, { flexWrap: "wrap", columnGap: 0.5, children: [
270
+ timestamp ? hideTimestamp && hideRefreshButton ? "" : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
271
+ import_material5.Chip,
272
+ {
273
+ avatar: hideRefreshButton ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_jsx_runtime8.Fragment, {}) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_icons_material3.Refresh, {}),
274
+ clickable: hideRefreshButton ? false : true,
275
+ onClick: refreshHuri,
276
+ label: hideTimestamp ? "" : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`
277
+ }
278
+ ) : null,
279
+ hideCardActions || huri === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(EmbedMenu, {})
280
+ ] }),
281
+ title: hideTitle ? "" : activePlugin?.name
282
+ }
283
+ );
284
+ };
285
+
286
+ // src/components/embed-card/card/EmbedPluginCard.tsx
287
+ var import_material9 = require("@mui/material");
288
+ var import_react_flexbox3 = require("@xylabs/react-flexbox");
289
+ var import_react_shared11 = require("@xyo-network/react-shared");
290
+
291
+ // src/components/controls/EmbedFormControl.tsx
292
+ var import_material6 = require("@mui/material");
293
+ var import_jsx_runtime9 = require("react/jsx-runtime");
294
+ var EmbedFormControl = ({ formId, formLabel, children, ...props }) => {
295
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_material6.FormControl, { ...props, children: [
296
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material6.InputLabel, { id: formId, children: formLabel }),
297
+ children
298
+ ] });
299
+ };
300
+
301
+ // src/components/controls/ListModeSelect.tsx
302
+ var import_material7 = require("@mui/material");
303
+ var import_react_select = require("@xylabs/react-select");
304
+ var import_react_shared10 = require("@xyo-network/react-shared");
305
+ var import_jsx_runtime10 = require("react/jsx-runtime");
306
+ var listModeSelectId = "listmode-select-id";
307
+ var listModeSelectLabel = "List Mode";
308
+ var ListModeSelect = (props) => {
309
+ const { listMode, setListMode } = (0, import_react_shared10.useListMode)();
310
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
311
+ import_react_select.SelectEx,
312
+ {
313
+ value: listMode ?? "default",
314
+ onChange: (event) => {
315
+ setListMode?.(event.target.value);
316
+ },
317
+ ...props,
318
+ children: [
319
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_material7.MenuItem, { value: "default", children: "Default" }, "default"),
320
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_material7.MenuItem, { value: "table", children: "Table" }, "table"),
321
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_material7.MenuItem, { value: "grid", children: "Grid" }, "grid")
322
+ ]
323
+ }
324
+ );
325
+ };
326
+ var ListModeSelectFormControl = (props) => {
327
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(EmbedFormControl, { formId: listModeSelectId, formLabel: listModeSelectLabel, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ListModeSelect, { size: "small", label: listModeSelectLabel, labelId: listModeSelectId, ...props }) });
328
+ };
329
+
330
+ // src/components/controls/RenderSelect.tsx
331
+ var import_material8 = require("@mui/material");
332
+ var import_react_select2 = require("@xylabs/react-select");
333
+ var import_jsx_runtime11 = require("react/jsx-runtime");
334
+ var renderSelectId = "render-select-id";
335
+ var renderSelectLabel = "Renderer";
336
+ var EmbedRenderSelect = (props) => {
337
+ const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState();
338
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(EmbedFormControl, { formId: renderSelectId, formLabel: renderSelectLabel, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_select2.SelectEx, { size: "small", value: activePlugin?.name, ...props, children: plugins?.map((plugin) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_material8.MenuItem, { value: plugin.name, onClick: () => setActivePlugin?.(plugin), children: plugin.name }, plugin.name)) }) });
339
+ };
340
+
341
+ // src/components/embed-card/card/EmbedPluginCard.tsx
342
+ var import_jsx_runtime12 = require("react/jsx-runtime");
343
+ var EmbedPluginCard = ({ ...props }) => {
344
+ const { payload } = useResolvePayload();
345
+ const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = useEmbedPluginState();
346
+ const { listMode } = (0, import_react_shared11.useListMode)();
347
+ const supportsListMode = ActivePlugin?.components?.box?.listModes?.length ?? 0 > 1;
348
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(BusyCard, { ...props, children: [
349
+ hideElementsConfig?.hideCardHeader ? null : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(EmbedCardHeader, {}),
350
+ plugins && plugins.length > 0 || supportsListMode ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_react_flexbox3.FlexGrowRow, { columnGap: 2, rowGap: 2, flexWrap: "wrap", pb: 1, children: [
351
+ plugins && plugins.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(EmbedRenderSelect, {}) : null,
352
+ supportsListMode ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ListModeSelectFormControl, {}) : null
353
+ ] }) : null,
354
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material9.CardContent, { sx: { height: "100%" }, children: ActivePlugin ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ActivePlugin.components.box.detailsBox, { payload, ...supportsListMode && { listMode } }) : null })
355
+ ] });
356
+ };
357
+
358
+ // src/components/embed-card/EmbedPluginCard.tsx
359
+ var import_material13 = require("@mui/material");
360
+
361
+ // src/components/EmbedPlugin.tsx
362
+ var import_react_shared13 = require("@xyo-network/react-shared");
363
+
364
+ // src/components/EmbedResolver.tsx
365
+ var import_react_shared12 = require("@xyo-network/react-shared");
366
+ var import_jsx_runtime13 = require("react/jsx-runtime");
367
+ var EmbedResolver = ({ children }) => {
368
+ const { payload, notFound, huriError } = useResolvePayload();
369
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react_shared12.LoadResult, { searchResult: payload, notFound: !!notFound, error: !!huriError, children });
370
+ };
371
+
372
+ // src/components/validation-alerts/ValidatePayload.tsx
373
+ var import_material10 = require("@mui/material");
374
+ var import_jsx_runtime14 = require("react/jsx-runtime");
375
+ var ValidatePayloadAlert = ({ children, ...props }) => {
376
+ const { validPayload, enabled, schema } = useValidatePayload();
377
+ if (enabled && validPayload === false) {
378
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_material10.Alert, { severity: "error", title: "Invalid Payload!", ...props, children: [
379
+ "Payload schema claimed to be ",
380
+ schema,
381
+ " but failed to validate."
382
+ ] });
383
+ }
384
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_jsx_runtime14.Fragment, { children });
385
+ };
386
+
387
+ // src/components/validation-alerts/ValidatePlugins.tsx
388
+ var import_material11 = require("@mui/material");
389
+ var import_jsx_runtime15 = require("react/jsx-runtime");
390
+ var ValidatePluginsAlert = ({ children, ...props }) => {
391
+ const { payload } = useResolvePayload();
392
+ const { plugins } = useEmbedPluginState();
393
+ if (payload && plugins?.length === 0) {
394
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_material11.Alert, { severity: "warning", ...props, children: [
395
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_material11.AlertTitle, { children: "Missing plugins!" }),
396
+ "Payload found but no plugins were present."
397
+ ] });
398
+ }
399
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_jsx_runtime15.Fragment, { children });
400
+ };
401
+
402
+ // src/components/EmbedPlugin.tsx
403
+ var import_jsx_runtime16 = require("react/jsx-runtime");
404
+ var EmbedPluginInner = ({
405
+ validateSchema,
406
+ plugins = [],
407
+ huriPayload,
408
+ refreshTitle = "",
409
+ timestampLabel = "Data From",
410
+ hideElementsConfig,
411
+ embedPluginConfig,
412
+ onRefresh,
413
+ children
414
+ }) => {
415
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_shared13.ErrorBoundary, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
416
+ EmbedPluginProvider,
417
+ {
418
+ refreshTitle,
419
+ timestampLabel,
420
+ hideElementsConfig,
421
+ plugins,
422
+ embedPluginConfig,
423
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(WithResolvers, { onRefresh, huriPayload, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(WithValidators, { validateSchema, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_shared13.ListModeProvider, { defaultListMode: embedPluginConfig?.listMode, children }) }) })
424
+ }
425
+ ) });
426
+ };
427
+ var WithResolvers = ({ children, onRefresh, huriPayload }) => {
428
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(RefreshPayloadProvider, { onRefresh, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ResolvePayloadProvider, { huriPayload, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(EmbedResolver, { children }) }) });
429
+ };
430
+ var WithValidators = ({ children, validateSchema }) => {
431
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ValidatePayloadProvider, { enabled: validateSchema, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ValidatePluginsAlert, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ValidatePayloadAlert, { children }) }) });
432
+ };
433
+
434
+ // src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
435
+ var import_react_error = require("@xyo-network/react-error");
436
+
437
+ // src/components/embed-card/error-handling/EmbedErrorCard.tsx
438
+ var import_material12 = require("@mui/material");
439
+ var import_jsx_runtime17 = require("react/jsx-runtime");
440
+ var EmbedErrorCard = (props) => {
441
+ const { alertProps, error, hideErrorDetails = true, children, ...cardProps } = props;
442
+ const errorProps = { alertProps, error, hideErrorDetails };
443
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_material12.Card, { ...cardProps, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_material12.CardContent, { children: children ?? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DefaultErrorAlert, { ...errorProps }) }) });
444
+ };
445
+ var DefaultErrorAlert = ({ alertProps, hideErrorDetails, error }) => {
446
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_material12.Alert, { severity: "error", ...alertProps, children: [
447
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_material12.AlertTitle, { children: "Whoops! Something went wrong" }),
448
+ !hideErrorDetails && error ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
449
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_material12.Typography, { variant: "caption", children: "Error: " }),
450
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_material12.Typography, { variant: "caption", children: error?.message })
451
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_material12.Typography, { variant: "caption", fontSize: "small", children: "Error Loading Plugin" })
452
+ ] });
453
+ };
454
+
455
+ // src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
456
+ var import_jsx_runtime18 = require("react/jsx-runtime");
457
+ var EmbedCardApiErrorRenderer = ({ xyoError, children, ...props }) => {
458
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_error.ErrorRender, { error: xyoError, noReAuth: true, noErrorDisplay: true, customError: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CustomApiErrorCard, { xyoError, ...props }), children });
459
+ };
460
+ var CustomApiErrorCard = ({ xyoError, ...props }) => {
461
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(EmbedErrorCard, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_error.ErrorAlert, { error: xyoError }) });
462
+ };
463
+
464
+ // src/components/embed-card/EmbedPluginCard.tsx
465
+ var import_jsx_runtime19 = require("react/jsx-runtime");
466
+ var ApiEmbedPluginCard = ({ children, ...props }) => {
467
+ const {
468
+ validateSchema,
469
+ plugins = [],
470
+ huriPayload,
471
+ refreshTitle = "",
472
+ timestampLabel = "Data From",
473
+ hideElementsConfig,
474
+ embedPluginConfig,
475
+ onRefresh,
476
+ ...busyCardProps
477
+ } = props;
478
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
479
+ EmbedPluginInner,
480
+ {
481
+ ...{
482
+ embedPluginConfig,
483
+ hideElementsConfig,
484
+ huriPayload,
485
+ onRefresh,
486
+ plugins,
487
+ refreshTitle,
488
+ timestampLabel,
489
+ validateSchema
490
+ },
491
+ children: [
492
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(EmbedPluginCardInner, { ...busyCardProps }),
493
+ children
494
+ ]
495
+ }
496
+ );
497
+ };
498
+ var EmbedPluginCardInner = (props) => {
499
+ const { payload, huriError } = useResolvePayload();
500
+ const { refreshPayload } = useRefreshPayload();
501
+ const theme = (0, import_material13.useTheme)();
502
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(EmbedCardApiErrorRenderer, { xyoError: huriError, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
503
+ EmbedPluginCard,
504
+ {
505
+ elevation: 3,
506
+ variant: "elevation",
507
+ busy: Boolean(!refreshPayload && payload),
508
+ busyVariantProps: { style: { alignItems: "start", paddingTop: theme.spacing(2), zIndex: 2 } },
509
+ sx: { position: "relative" },
510
+ ...props
511
+ }
512
+ ) });
513
+ };
514
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts","../../src/components/embed-card/card/BusyCard.tsx","../../src/components/embed-card/card/EmbedCardHeader.tsx","../../src/contexts/EmbedPluginContext/Context.tsx","../../src/contexts/EmbedPluginContext/Provider.tsx","../../src/contexts/EmbedPluginContext/use.tsx","../../src/contexts/RefreshPayloadContext/Provider.tsx","../../src/contexts/RefreshPayloadContext/Context.tsx","../../src/contexts/RefreshPayloadContext/use.tsx","../../src/contexts/ResolvePayloadContext/Context.ts","../../src/contexts/ResolvePayloadContext/Provider.tsx","../../src/contexts/ResolvePayloadContext/use.tsx","../../src/contexts/ValidatePayloadContext/Provider.tsx","../../src/contexts/ValidatePayloadContext/Context.ts","../../src/contexts/ValidatePayloadContext/use.tsx","../../src/components/embed-card/menu/EmbedMenu.tsx","../../src/components/embed-card/menu/JsonMenuItem.tsx","../../src/components/embed-card/card/EmbedPluginCard.tsx","../../src/components/controls/EmbedFormControl.tsx","../../src/components/controls/ListModeSelect.tsx","../../src/components/controls/RenderSelect.tsx","../../src/components/embed-card/EmbedPluginCard.tsx","../../src/components/EmbedPlugin.tsx","../../src/components/EmbedResolver.tsx","../../src/components/validation-alerts/ValidatePayload.tsx","../../src/components/validation-alerts/ValidatePlugins.tsx","../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx","../../src/components/embed-card/error-handling/EmbedErrorCard.tsx"],"sourcesContent":["export * from './components'\nexport * from './contexts'\nexport * from './types'\n","import { Card, CardProps } from '@mui/material'\nimport { useBusyTiming } from '@xylabs/react-flexbox'\nimport {\n BusyCircularProgress,\n BusyCircularProgressProps,\n BusyLinearProgress,\n BusyLinearProgressProps,\n BusyVariant,\n WithChildren,\n} from '@xylabs/react-shared'\n\nexport interface BusyCardProps extends CardProps {\n busy?: boolean\n busyMinimum?: number\n busyVariant?: BusyVariant\n busyVariantProps?: BusyCircularProgressProps | BusyLinearProgressProps\n}\n\nexport const BusyCard: React.FC<WithChildren<BusyCardProps>> = ({\n busy,\n busyMinimum = 500,\n busyVariant = 'circular',\n busyVariantProps,\n children,\n ...props\n}) => {\n const internalBusy = useBusyTiming(busy, busyMinimum)\n return (\n <Card {...props}>\n {children}\n {busyVariant === 'circular' && internalBusy ?\n <BusyCircularProgress {...(busyVariantProps as BusyCircularProgressProps)} />\n : null}\n {busyVariant === 'linear' && internalBusy ?\n <BusyLinearProgress {...(busyVariantProps as BusyLinearProgressProps)} />\n : null}\n </Card>\n )\n}\n","import { Refresh as RefreshIcon } from '@mui/icons-material'\nimport { Avatar, CardHeader, CardHeaderProps, Chip, Theme } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../../contexts'\nimport { EmbedMenu } from '../menu'\n\nexport const EmbedCardHeader: React.FC<CardHeaderProps> = () => {\n const { refreshHuri, huri } = useResolvePayload()\n const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState()\n const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {}\n //this is temporary so that we can add the ability to get a timestamp via diviner later\n const timestamp = Date.now()\n return (\n <CardHeader\n sx={{ flexWrap: 'wrap', rowGap: 1 }}\n avatar={\n hideAvatar ?\n <></>\n : <Avatar sx={{ bgcolor: (theme: Theme) => theme.palette.primary.main }} aria-label={activePlugin?.name}>\n {activePlugin?.name?.charAt(0)}\n </Avatar>\n }\n action={\n <FlexRow flexWrap=\"wrap\" columnGap={0.5}>\n {timestamp ?\n hideTimestamp && hideRefreshButton ?\n ''\n : <Chip\n avatar={hideRefreshButton ? <></> : <RefreshIcon />}\n clickable={hideRefreshButton ? false : true}\n onClick={refreshHuri}\n label={hideTimestamp ? '' : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`}\n />\n\n : null}\n {/* Huri case is valid as long as the only menu item is JSON */}\n {hideCardActions || huri === undefined ? null : <EmbedMenu />}\n </FlexRow>\n }\n title={hideTitle ? '' : activePlugin?.name}\n />\n )\n}\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginState } from './State'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n","import { 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","import { WithChildren } from '@xylabs/react-shared'\nimport { useState } from 'react'\n\nimport { RefreshPayloadContext } from './Context'\n\nexport interface RefreshPayloadProps {\n onRefresh?: () => void\n refreshPayload?: boolean\n}\n\nexport const RefreshPayloadProvider: React.FC<WithChildren<RefreshPayloadProps>> = ({ children, onRefresh, refreshPayload }) => {\n const [localRefreshPayload, setRefreshPayload] = useState(refreshPayload)\n\n return (\n <RefreshPayloadContext.Provider value={{ onRefresh, provided: true, refreshPayload: localRefreshPayload, setRefreshPayload }}>\n {children}\n </RefreshPayloadContext.Provider>\n )\n}\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { RefreshPayloadState } from './State'\n\nexport const RefreshPayloadContext = createContextEx<RefreshPayloadState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { RefreshPayloadContext } from './Context'\n\nexport const useRefreshPayload = () => useContextEx(RefreshPayloadContext, 'RefreshPayload', true)\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { ResolvePayloadState } from './State'\n\nexport const ResolvePayloadContext = createContextEx<ResolvePayloadState>()\n","import { delay } from '@xylabs/delay'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { Huri } from '@xyo-network/huri'\nimport { ModuleError, ModuleErrorSchema, Payload } from '@xyo-network/payload-model'\nimport { useEffect, useState } from 'react'\n\nimport { useRefreshPayload } from '../RefreshPayloadContext'\nimport { ResolvePayloadContext } from './Context'\nimport { ResolvePayloadState } from './State'\n\nexport type ResolvePayloadProviderProps = Omit<ResolvePayloadState, 'provided'>\n\nexport const ResolvePayloadProvider: React.FC<WithChildren<ResolvePayloadProviderProps>> = ({ children, huriPayload }) => {\n const [payload, setPayload] = useState<Payload>()\n const [huri, setHuri] = useState<string>()\n const { refreshPayload, setRefreshPayload, onRefresh } = useRefreshPayload()\n\n useEffect(() => {\n typeof huriPayload === 'string' ? setHuri(huriPayload) : undefined\n if (typeof huriPayload === 'object') {\n setPayload(huriPayload)\n setRefreshPayload?.(true)\n }\n }, [huriPayload, setRefreshPayload])\n\n const [notFound, setNotFound] = useState<boolean>()\n const [huriError, setHuriError] = useState<ModuleError>()\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async (mounted) => {\n if (huri && !refreshPayload) {\n try {\n const huriInstance = new Huri(huri)\n const result = await huriInstance.fetch()\n // ensure the busy state can stay for a moment to avoid flashing too quickly\n await delay(500)\n\n if (mounted()) {\n setNotFound(result === null)\n setPayload(result)\n setRefreshPayload?.(true)\n }\n } catch (e) {\n const error = e as Error\n setHuriError({ message: error.message, schema: ModuleErrorSchema, sources: [] })\n }\n }\n },\n [huri, payload, refreshPayload, setRefreshPayload],\n )\n\n const refreshHuri = () => {\n onRefresh?.()\n if (huri) {\n setRefreshPayload?.(false)\n }\n }\n\n return (\n <ResolvePayloadContext.Provider value={{ huri, huriError, notFound, payload, provided: true, refreshHuri, setPayload }}>\n {children}\n </ResolvePayloadContext.Provider>\n )\n}\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { ResolvePayloadContext } from './Context'\n\nexport const useResolvePayload = () => useContextEx(ResolvePayloadContext, 'ResolvePayload', true)\n","import { Chip } from '@mui/material'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { SchemaCache, SchemaNameToValidatorMap } from '@xyo-network/schema-cache'\nimport { useState } from 'react'\n\nimport { useResolvePayload } from '../ResolvePayloadContext'\nimport { ValidatePayloadContext } from './Context'\n\nexport interface ValidatePayloadProviderProps {\n // Opt-in flag to validate payloads for the plugin(s)\n enabled?: boolean\n}\n\nexport const ValidatePayloadProvider: React.FC<WithChildren<ValidatePayloadProviderProps>> = ({ children, enabled = false }) => {\n const { payload } = useResolvePayload()\n const [initialized, setInitialized] = useState(false)\n const [valid, setValid] = useState<boolean>()\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async () => {\n if (payload && enabled) {\n await SchemaCache.instance.get(payload.schema)\n\n const possibleKnownSchema = payload.schema as keyof SchemaNameToValidatorMap\n\n if (SchemaCache.instance.validators[possibleKnownSchema]) {\n const validator = SchemaCache.instance.validators[possibleKnownSchema]\n setValid(validator?.(payload))\n }\n setInitialized(true)\n }\n },\n [payload, enabled],\n )\n\n return (\n <ValidatePayloadContext.Provider value={{ enabled, provided: true, schema: payload?.schema, validPayload: valid }}>\n {enabled ?\n <>{initialized ? children : <Chip label=\"Validating Payload...\" />}</>\n : children}\n </ValidatePayloadContext.Provider>\n )\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","import { MoreVert as MoreVertIcon } from '@mui/icons-material'\nimport { IconButton, IconButtonProps, Menu } from '@mui/material'\nimport { useState } from 'react'\n\nimport { JsonMenuItem } from './JsonMenuItem'\n\nexport const EmbedMenu: React.FC<IconButtonProps> = (props) => {\n // TODO - link to explore website\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null)\n const open = Boolean(anchorEl)\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget)\n }\n const handleClose = () => {\n setAnchorEl(null)\n }\n\n return (\n <>\n <IconButton onClick={handleClick} {...props}>\n <MoreVertIcon />\n </IconButton>\n <Menu anchorEl={anchorEl} open={open} onClose={handleClose} PaperProps={{ variant: 'elevation' }} MenuListProps={{ dense: true }}>\n <JsonMenuItem />\n </Menu>\n </>\n )\n}\n","import { OpenInNew as OpenInNewIcon } from '@mui/icons-material'\nimport { ListItemIcon, ListItemText, MenuItem, MenuItemProps } from '@mui/material'\n\nimport { useResolvePayload } from '../../../contexts'\n\nexport const JsonMenuItem: React.FC<MenuItemProps> = (props) => {\n const { huri } = useResolvePayload()\n\n return (\n <>\n {huri ?\n <MenuItem title=\"Source Payload JSON\" onClick={() => window.open(huri, '_blank')} {...props}>\n <ListItemText sx={{ mr: 1 }}>JSON</ListItemText>\n <ListItemIcon sx={{ justifyContent: 'end' }}>\n <OpenInNewIcon fontSize=\"small\" />\n </ListItemIcon>\n </MenuItem>\n : null}\n </>\n )\n}\n","import { CardContent } from '@mui/material'\nimport { FlexGrowRow } from '@xylabs/react-flexbox'\nimport { useListMode } from '@xyo-network/react-shared'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../../contexts'\nimport { EmbedRenderSelect, ListModeSelectFormControl } from '../../controls'\nimport { BusyCard, BusyCardProps } from './BusyCard'\nimport { EmbedCardHeader } from './EmbedCardHeader'\n\nexport const EmbedPluginCard: React.FC<BusyCardProps> = ({ ...props }) => {\n const { payload } = useResolvePayload()\n const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = useEmbedPluginState()\n const { listMode } = useListMode()\n const supportsListMode = ActivePlugin?.components?.box?.listModes?.length ?? 0 > 1\n\n return (\n <BusyCard {...props}>\n {hideElementsConfig?.hideCardHeader ? null : <EmbedCardHeader />}\n {/* Only show the row if the children are present */}\n {(plugins && plugins.length > 0) || supportsListMode ?\n <FlexGrowRow columnGap={2} rowGap={2} flexWrap=\"wrap\" pb={1}>\n {plugins && plugins.length > 1 ?\n <EmbedRenderSelect />\n : null}\n {supportsListMode ?\n <ListModeSelectFormControl />\n : null}\n </FlexGrowRow>\n : null}\n <CardContent sx={{ height: '100%' }}>\n {ActivePlugin ?\n <ActivePlugin.components.box.detailsBox payload={payload} {...(supportsListMode && { listMode })} />\n : null}\n </CardContent>\n </BusyCard>\n )\n}\n","import { FormControl, FormControlProps, InputLabel } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\ninterface EmbedFormControlProps extends FormControlProps {\n formId?: string\n formLabel?: string\n}\n\nexport const EmbedFormControl: React.FC<WithChildren<EmbedFormControlProps>> = ({ formId, formLabel, children, ...props }) => {\n return (\n <FormControl {...props}>\n <InputLabel id={formId}>{formLabel}</InputLabel>\n {children}\n </FormControl>\n )\n}\n","import { MenuItem } from '@mui/material'\nimport { SelectEx, SelectExProps } from '@xylabs/react-select'\nimport { ListMode, useListMode } from '@xyo-network/react-shared'\n\nimport { EmbedFormControl } from './EmbedFormControl'\n\nconst listModeSelectId = 'listmode-select-id'\nconst listModeSelectLabel = 'List Mode'\n\nexport const ListModeSelect: React.FC<SelectExProps<ListMode>> = (props) => {\n const { listMode, setListMode } = useListMode()\n\n return (\n <SelectEx<ListMode>\n value={(listMode ?? 'default') as ListMode}\n onChange={(event) => {\n setListMode?.(event.target.value as ListMode)\n }}\n {...props}\n >\n <MenuItem key=\"default\" value=\"default\">\n Default\n </MenuItem>\n <MenuItem key=\"table\" value=\"table\">\n Table\n </MenuItem>\n <MenuItem key=\"grid\" value=\"grid\">\n Grid\n </MenuItem>\n </SelectEx>\n )\n}\n\nexport const ListModeSelectFormControl: React.FC<SelectExProps<ListMode>> = (props) => {\n return (\n <EmbedFormControl formId={listModeSelectId} formLabel={listModeSelectLabel}>\n <ListModeSelect size=\"small\" label={listModeSelectLabel} labelId={listModeSelectId} {...props} />\n </EmbedFormControl>\n )\n}\n","import { MenuItem } from '@mui/material'\nimport { SelectEx, SelectExProps } from '@xylabs/react-select'\n\nimport { useEmbedPluginState } from '../../contexts'\nimport { EmbedFormControl } from './EmbedFormControl'\n\nconst renderSelectId = 'render-select-id'\nconst renderSelectLabel = 'Renderer'\n\nexport const EmbedRenderSelect: React.FC<SelectExProps<string>> = (props) => {\n const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState()\n return (\n <EmbedFormControl formId={renderSelectId} formLabel={renderSelectLabel}>\n <SelectEx size=\"small\" value={activePlugin?.name} {...props}>\n {plugins?.map((plugin) => (\n <MenuItem value={plugin.name} key={plugin.name} onClick={() => setActivePlugin?.(plugin)}>\n {plugin.name}\n </MenuItem>\n ))}\n </SelectEx>\n </EmbedFormControl>\n )\n}\n","import { useTheme } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\nimport { useRefreshPayload, useResolvePayload } from '../../contexts'\nimport { EmbedPluginProps } from '../../types'\nimport { EmbedPluginInner } from '../EmbedPlugin'\nimport { BusyCardProps, EmbedPluginCard } from './card'\nimport { EmbedCardApiErrorRenderer } from './error-handling'\n\nexport interface EmbedPluginCardProps extends WithChildren, EmbedPluginProps, BusyCardProps {}\n\nexport const ApiEmbedPluginCard: React.FC<EmbedPluginCardProps> = ({ children, ...props }) => {\n const {\n validateSchema,\n plugins = [],\n huriPayload,\n refreshTitle = '',\n timestampLabel = 'Data From',\n hideElementsConfig,\n embedPluginConfig,\n onRefresh,\n ...busyCardProps\n } = props\n\n return (\n <EmbedPluginInner\n {...{\n embedPluginConfig,\n hideElementsConfig,\n huriPayload,\n onRefresh,\n plugins,\n refreshTitle,\n timestampLabel,\n validateSchema,\n }}\n >\n <EmbedPluginCardInner {...busyCardProps} />\n {children}\n </EmbedPluginInner>\n )\n}\n\nexport const EmbedPluginCardInner: React.FC<BusyCardProps> = (props) => {\n const { payload, huriError } = useResolvePayload()\n const { refreshPayload } = useRefreshPayload()\n const theme = useTheme()\n\n return (\n <EmbedCardApiErrorRenderer xyoError={huriError}>\n <EmbedPluginCard\n elevation={3}\n variant=\"elevation\"\n busy={Boolean(!refreshPayload && payload)}\n busyVariantProps={{ style: { alignItems: 'start', paddingTop: theme.spacing(2), zIndex: 2 } }}\n sx={{ position: 'relative' }}\n {...props}\n />\n </EmbedCardApiErrorRenderer>\n )\n}\n\n/** @deprecated - use EmbedPluginCard and use CardProps instead of FlexBoxProps */\n\nexport { EmbedPluginCard as EmbedPlugin } from './card'\n","import { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { ErrorBoundary, ListModeProvider } from '@xyo-network/react-shared'\n\nimport { EmbedPluginProvider, RefreshPayloadProvider, ResolvePayloadProvider, ValidatePayloadProvider } from '../contexts'\nimport { EmbedPluginProps } from '../types'\nimport { EmbedResolver } from './EmbedResolver'\nimport { ValidatePayloadAlert, ValidatePluginsAlert } from './validation-alerts'\n\nexport const EmbedPluginInner: React.FC<WithChildren<EmbedPluginProps>> = ({\n validateSchema,\n plugins = [],\n huriPayload,\n refreshTitle = '',\n timestampLabel = 'Data From',\n hideElementsConfig,\n embedPluginConfig,\n onRefresh,\n children,\n}) => {\n return (\n <ErrorBoundary>\n <EmbedPluginProvider\n refreshTitle={refreshTitle}\n timestampLabel={timestampLabel}\n hideElementsConfig={hideElementsConfig}\n plugins={plugins}\n embedPluginConfig={embedPluginConfig}\n >\n <WithResolvers onRefresh={onRefresh} huriPayload={huriPayload}>\n <WithValidators validateSchema={validateSchema}>\n <ListModeProvider defaultListMode={embedPluginConfig?.listMode}>{children}</ListModeProvider>\n </WithValidators>\n </WithResolvers>\n </EmbedPluginProvider>\n </ErrorBoundary>\n )\n}\n\ninterface WithResolversProps extends Pick<EmbedPluginProps, 'onRefresh' | 'huriPayload'>, FlexBoxProps {}\n\nconst WithResolvers: React.FC<WithChildren<WithResolversProps>> = ({ children, onRefresh, huriPayload }) => {\n return (\n <RefreshPayloadProvider onRefresh={onRefresh}>\n <ResolvePayloadProvider huriPayload={huriPayload}>\n <EmbedResolver>{children}</EmbedResolver>\n </ResolvePayloadProvider>\n </RefreshPayloadProvider>\n )\n}\n\nconst WithValidators: React.FC<WithChildren<{ validateSchema?: boolean }>> = ({ children, validateSchema }) => {\n return (\n <ValidatePayloadProvider enabled={validateSchema}>\n <ValidatePluginsAlert>\n <ValidatePayloadAlert>{children}</ValidatePayloadAlert>\n </ValidatePluginsAlert>\n </ValidatePayloadProvider>\n )\n}\n","import { WithChildren } from '@xylabs/react-shared'\nimport { LoadResult } from '@xyo-network/react-shared'\n\nimport { useResolvePayload } from '../contexts'\n\nexport const EmbedResolver: React.FC<WithChildren> = ({ children }) => {\n const { payload, notFound, huriError } = useResolvePayload()\n\n return (\n <LoadResult searchResult={payload} notFound={!!notFound} error={!!huriError}>\n {children}\n </LoadResult>\n )\n}\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 { 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 { CardProps } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { ModuleError } from '@xyo-network/payload-model'\nimport { ErrorAlert, ErrorRender } from '@xyo-network/react-error'\n\nimport { EmbedErrorCard } from './EmbedErrorCard'\n\ninterface EmbedCardApiErrorRendererProps extends CardProps {\n xyoError?: ModuleError\n}\n\nexport const EmbedCardApiErrorRenderer: React.FC<WithChildren<EmbedCardApiErrorRendererProps>> = ({ xyoError, children, ...props }) => {\n return (\n <ErrorRender error={xyoError} noReAuth noErrorDisplay customError={<CustomApiErrorCard xyoError={xyoError} {...props} />}>\n {children}\n </ErrorRender>\n )\n}\n\nconst CustomApiErrorCard: React.FC<EmbedCardApiErrorRendererProps> = ({ xyoError, ...props }) => {\n return (\n <EmbedErrorCard {...props}>\n <ErrorAlert error={xyoError} />\n </EmbedErrorCard>\n )\n}\n","import { Alert, AlertProps, AlertTitle, Card, CardContent, CardProps, Typography } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\ninterface EmbedErrorCardBaseProps {\n alertProps?: AlertProps\n error?: Error\n hideErrorDetails?: boolean\n}\n\ninterface EmbedErrorCardProps extends EmbedErrorCardBaseProps, CardProps {\n alertProps?: AlertProps\n error?: Error\n}\n\nexport const EmbedErrorCard: React.FC<WithChildren<EmbedErrorCardProps>> = (props) => {\n const { alertProps, error, hideErrorDetails = true, children, ...cardProps } = props\n const errorProps = { alertProps, error, hideErrorDetails }\n return (\n <Card {...cardProps}>\n <CardContent>{children ?? <DefaultErrorAlert {...errorProps} />}</CardContent>\n </Card>\n )\n}\n\nconst DefaultErrorAlert: React.FC<EmbedErrorCardBaseProps> = ({ alertProps, hideErrorDetails, error }) => {\n return (\n <Alert severity=\"error\" {...alertProps}>\n <AlertTitle>Whoops! Something went wrong</AlertTitle>\n {!hideErrorDetails && error ?\n <>\n <Typography variant=\"caption\">Error: </Typography>\n <Typography variant=\"caption\">{error?.message}</Typography>\n </>\n : <Typography variant=\"caption\" fontSize=\"small\">\n Error Loading Plugin\n </Typography>\n }\n </Alert>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,sBAAgC;AAChC,2BAA8B;AAC9B,0BAOO;AAmBH;AAVG,IAAM,WAAkD,CAAC;AAAA,EAC9D;AAAA,EACA,cAAc;AAAA,EACd,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,mBAAe,oCAAc,MAAM,WAAW;AACpD,SACE,6CAAC,wBAAM,GAAG,OACP;AAAA;AAAA,IACA,gBAAgB,cAAc,eAC7B,4CAAC,4CAAsB,GAAI,kBAAgD,IAC3E;AAAA,IACD,gBAAgB,YAAY,eAC3B,4CAAC,0CAAoB,GAAI,kBAA8C,IACvE;AAAA,KACJ;AAEJ;;;ACtCA,IAAAA,yBAAuC;AACvC,IAAAC,mBAAiE;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AAAA;AAAA,MACC,WAAW;AAAA,MACX,SAAQ;AAAA,MACR,MAAM,QAAQ,CAAC,kBAAkB,OAAO;AAAA,MACxC,kBAAkB,EAAE,OAAO,EAAE,YAAY,SAAS,YAAY,MAAM,QAAQ,CAAC,GAAG,QAAQ,EAAE,EAAE;AAAA,MAC5F,IAAI,EAAE,UAAU,WAAW;AAAA,MAC1B,GAAG;AAAA;AAAA,EACN,GACF;AAEJ;","names":["import_icons_material","import_material","import_react_flexbox","import_react_shared","import_jsx_runtime","import_react_shared","import_react","import_react_shared","import_jsx_runtime","import_react_shared","import_react_shared","import_react","import_jsx_runtime","import_react_shared","import_material","import_react_async_effect","import_react","import_react_shared","import_jsx_runtime","import_react_shared","import_icons_material","import_material","import_react","import_material","import_jsx_runtime","OpenInNewIcon","import_jsx_runtime","MoreVertIcon","import_jsx_runtime","RefreshIcon","import_material","import_react_flexbox","import_react_shared","import_material","import_jsx_runtime","import_material","import_react_shared","import_jsx_runtime","import_material","import_react_select","import_jsx_runtime","import_jsx_runtime","import_material","import_react_shared","import_react_shared","import_jsx_runtime","import_material","import_jsx_runtime","import_material","import_jsx_runtime","import_jsx_runtime","import_material","import_jsx_runtime","import_jsx_runtime","import_jsx_runtime"]}
@@ -0,0 +1,4 @@
1
+ export * from './components';
2
+ export * from './contexts';
3
+ export * from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './components';
2
+ export * from './contexts';
3
+ export * from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './components';
2
+ export * from './contexts';
3
+ export * from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA"}