@xyo-network/react-embed 2.64.0-rc.7 → 2.64.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (599) hide show
  1. package/dist/browser/components/EmbedPlugin.cjs +251 -0
  2. package/dist/browser/components/EmbedPlugin.cjs.map +1 -0
  3. package/dist/browser/components/EmbedPlugin.d.cts +5 -0
  4. package/dist/browser/components/EmbedPlugin.d.cts.map +1 -0
  5. package/dist/browser/components/EmbedResolver.cjs +42 -0
  6. package/dist/browser/components/EmbedResolver.cjs.map +1 -0
  7. package/dist/browser/components/EmbedResolver.d.cts +4 -0
  8. package/dist/browser/components/EmbedResolver.d.cts.map +1 -0
  9. package/dist/browser/components/controls/EmbedFormControl.cjs +34 -0
  10. package/dist/{node/components/controls/EmbedFormControl.mjs.map → browser/components/controls/EmbedFormControl.cjs.map} +1 -1
  11. package/dist/browser/components/controls/EmbedFormControl.d.cts +10 -0
  12. package/dist/browser/components/controls/EmbedFormControl.d.cts.map +1 -0
  13. package/dist/browser/components/controls/ListModeSelect.cjs +65 -0
  14. package/dist/browser/components/controls/ListModeSelect.cjs.map +1 -0
  15. package/dist/browser/components/controls/ListModeSelect.d.cts +6 -0
  16. package/dist/browser/components/controls/ListModeSelect.d.cts.map +1 -0
  17. package/dist/browser/components/controls/RenderSelect.cjs +54 -0
  18. package/dist/browser/components/controls/RenderSelect.cjs.map +1 -0
  19. package/dist/browser/components/controls/RenderSelect.d.cts +4 -0
  20. package/dist/browser/components/controls/RenderSelect.d.cts.map +1 -0
  21. package/dist/browser/components/controls/index.cjs +87 -0
  22. package/dist/browser/components/controls/index.cjs.map +1 -0
  23. package/dist/browser/components/controls/index.d.cts +4 -0
  24. package/dist/browser/components/controls/index.d.cts.map +1 -0
  25. package/dist/browser/components/embed-card/EmbedCardResolver.cjs +95 -0
  26. package/dist/browser/components/embed-card/EmbedCardResolver.cjs.map +1 -0
  27. package/dist/browser/components/embed-card/EmbedCardResolver.d.cts +5 -0
  28. package/dist/browser/components/embed-card/EmbedCardResolver.d.cts.map +1 -0
  29. package/dist/browser/components/embed-card/EmbedPluginCard.cjs +497 -0
  30. package/dist/browser/components/embed-card/EmbedPluginCard.cjs.map +1 -0
  31. package/dist/browser/components/embed-card/EmbedPluginCard.d.cts +11 -0
  32. package/dist/browser/components/embed-card/EmbedPluginCard.d.cts.map +1 -0
  33. package/dist/browser/components/embed-card/card/BusyCard.cjs +45 -0
  34. package/dist/{node/components/embed-card/card/BusyCard.mjs.map → browser/components/embed-card/card/BusyCard.cjs.map} +1 -1
  35. package/dist/browser/components/embed-card/card/BusyCard.d.cts +11 -0
  36. package/dist/browser/components/embed-card/card/BusyCard.d.cts.map +1 -0
  37. package/dist/browser/components/embed-card/card/EmbedCardHeader.cjs +108 -0
  38. package/dist/browser/components/embed-card/card/EmbedCardHeader.cjs.map +1 -0
  39. package/dist/browser/components/embed-card/card/EmbedCardHeader.d.cts +4 -0
  40. package/dist/browser/components/embed-card/card/EmbedCardHeader.d.cts.map +1 -0
  41. package/dist/browser/components/embed-card/card/EmbedPluginCard.cjs +199 -0
  42. package/dist/browser/components/embed-card/card/EmbedPluginCard.cjs.map +1 -0
  43. package/dist/browser/components/embed-card/card/EmbedPluginCard.d.cts +4 -0
  44. package/dist/browser/components/embed-card/card/EmbedPluginCard.d.cts.map +1 -0
  45. package/dist/browser/components/embed-card/card/index.cjs +203 -0
  46. package/dist/browser/components/embed-card/card/index.cjs.map +1 -0
  47. package/dist/browser/components/embed-card/card/index.d.cts +4 -0
  48. package/dist/browser/components/embed-card/card/index.d.cts.map +1 -0
  49. package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.cjs +54 -0
  50. package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.cjs.map +1 -0
  51. package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.cts +10 -0
  52. package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.cts.map +1 -0
  53. package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.cjs +42 -0
  54. package/dist/{node/components/embed-card/error-handling/EmbedErrorCard.mjs.map → browser/components/embed-card/error-handling/EmbedErrorCard.cjs.map} +1 -1
  55. package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.d.cts +15 -0
  56. package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.d.cts.map +1 -0
  57. package/dist/browser/components/embed-card/error-handling/index.cjs +57 -0
  58. package/dist/browser/components/embed-card/error-handling/index.cjs.map +1 -0
  59. package/dist/browser/components/embed-card/error-handling/index.d.cts +3 -0
  60. package/dist/browser/components/embed-card/error-handling/index.d.cts.map +1 -0
  61. package/dist/browser/components/embed-card/index.cjs +502 -0
  62. package/dist/browser/components/embed-card/index.cjs.map +1 -0
  63. package/dist/browser/components/embed-card/index.d.cts +3 -0
  64. package/dist/browser/components/embed-card/index.d.cts.map +1 -0
  65. package/dist/browser/components/embed-card/menu/EmbedMenu.cjs +68 -0
  66. package/dist/browser/components/embed-card/menu/EmbedMenu.cjs.map +1 -0
  67. package/dist/browser/components/embed-card/menu/EmbedMenu.d.cts +4 -0
  68. package/dist/browser/components/embed-card/menu/EmbedMenu.d.cts.map +1 -0
  69. package/dist/browser/components/embed-card/menu/JsonMenuItem.cjs +46 -0
  70. package/dist/browser/components/embed-card/menu/JsonMenuItem.cjs.map +1 -0
  71. package/dist/browser/components/embed-card/menu/JsonMenuItem.d.cts +4 -0
  72. package/dist/browser/components/embed-card/menu/JsonMenuItem.d.cts.map +1 -0
  73. package/dist/browser/components/embed-card/menu/index.cjs +70 -0
  74. package/dist/browser/components/embed-card/menu/index.cjs.map +1 -0
  75. package/dist/browser/components/embed-card/menu/index.d.cts +2 -0
  76. package/dist/browser/components/embed-card/menu/index.d.cts.map +1 -0
  77. package/dist/{node/components/embed-plugin-stories/storyPayload.mjs → browser/components/embed-plugin-stories/storyPayload.cjs} +27 -5
  78. package/dist/{node/components/embed-plugin-stories/storyPayload.mjs.map → browser/components/embed-plugin-stories/storyPayload.cjs.map} +1 -1
  79. package/dist/browser/components/embed-plugin-stories/storyPayload.d.cts +126 -0
  80. package/dist/browser/components/embed-plugin-stories/storyPayload.d.cts.map +1 -0
  81. package/dist/browser/components/embed-plugin-stories/storyShared.cjs +513 -0
  82. package/dist/browser/components/embed-plugin-stories/storyShared.cjs.map +1 -0
  83. package/dist/browser/components/embed-plugin-stories/storyShared.d.cts +5 -0
  84. package/dist/browser/components/embed-plugin-stories/storyShared.d.cts.map +1 -0
  85. package/dist/browser/components/index.cjs +503 -0
  86. package/dist/browser/components/index.cjs.map +1 -0
  87. package/dist/browser/components/index.d.cts +3 -0
  88. package/dist/browser/components/index.d.cts.map +1 -0
  89. package/dist/browser/components/validation-alerts/ValidatePayload.cjs +49 -0
  90. package/dist/browser/components/validation-alerts/ValidatePayload.cjs.map +1 -0
  91. package/dist/browser/components/validation-alerts/ValidatePayload.d.cts +5 -0
  92. package/dist/browser/components/validation-alerts/ValidatePayload.d.cts.map +1 -0
  93. package/dist/browser/components/validation-alerts/ValidatePlugins.cjs +57 -0
  94. package/dist/browser/components/validation-alerts/ValidatePlugins.cjs.map +1 -0
  95. package/dist/browser/components/validation-alerts/ValidatePlugins.d.cts +5 -0
  96. package/dist/browser/components/validation-alerts/ValidatePlugins.d.cts.map +1 -0
  97. package/dist/browser/components/validation-alerts/index.cjs +83 -0
  98. package/dist/browser/components/validation-alerts/index.cjs.map +1 -0
  99. package/dist/browser/components/validation-alerts/index.d.cts +3 -0
  100. package/dist/browser/components/validation-alerts/index.d.cts.map +1 -0
  101. package/dist/browser/contexts/EmbedPluginContext/Context.cjs +28 -0
  102. package/dist/{node/contexts/EmbedPluginContext/Context.mjs.map → browser/contexts/EmbedPluginContext/Context.cjs.map} +1 -1
  103. package/dist/browser/contexts/EmbedPluginContext/Context.d.cts +4 -0
  104. package/dist/browser/contexts/EmbedPluginContext/Context.d.cts.map +1 -0
  105. package/dist/browser/contexts/EmbedPluginContext/Provider.cjs +62 -0
  106. package/dist/browser/contexts/EmbedPluginContext/Provider.cjs.map +1 -0
  107. package/dist/browser/contexts/EmbedPluginContext/Provider.d.cts +7 -0
  108. package/dist/browser/contexts/EmbedPluginContext/Provider.d.cts.map +1 -0
  109. package/dist/browser/contexts/EmbedPluginContext/State.cjs +19 -0
  110. package/dist/browser/contexts/EmbedPluginContext/State.cjs.map +1 -0
  111. package/dist/browser/contexts/EmbedPluginContext/State.d.cts +33 -0
  112. package/dist/browser/contexts/EmbedPluginContext/State.d.cts.map +1 -0
  113. package/dist/browser/contexts/EmbedPluginContext/index.cjs +68 -0
  114. package/dist/browser/contexts/EmbedPluginContext/index.cjs.map +1 -0
  115. package/dist/browser/contexts/EmbedPluginContext/index.d.cts +5 -0
  116. package/dist/browser/contexts/EmbedPluginContext/index.d.cts.map +1 -0
  117. package/dist/browser/contexts/EmbedPluginContext/use.cjs +34 -0
  118. package/dist/browser/contexts/EmbedPluginContext/use.cjs.map +1 -0
  119. package/dist/browser/contexts/EmbedPluginContext/use.d.cts +2 -0
  120. package/dist/browser/contexts/EmbedPluginContext/use.d.cts.map +1 -0
  121. package/dist/browser/contexts/RefreshPayloadContext/Context.cjs +28 -0
  122. package/dist/{node/contexts/RefreshPayloadContext/Context.mjs.map → browser/contexts/RefreshPayloadContext/Context.cjs.map} +1 -1
  123. package/dist/browser/contexts/RefreshPayloadContext/Context.d.cts +4 -0
  124. package/dist/browser/contexts/RefreshPayloadContext/Context.d.cts.map +1 -0
  125. package/dist/browser/contexts/RefreshPayloadContext/Provider.cjs +38 -0
  126. package/dist/browser/contexts/RefreshPayloadContext/Provider.cjs.map +1 -0
  127. package/dist/browser/contexts/RefreshPayloadContext/Provider.d.cts +8 -0
  128. package/dist/browser/contexts/RefreshPayloadContext/Provider.d.cts.map +1 -0
  129. package/dist/browser/contexts/RefreshPayloadContext/State.cjs +19 -0
  130. package/dist/browser/contexts/RefreshPayloadContext/State.cjs.map +1 -0
  131. package/dist/browser/contexts/RefreshPayloadContext/State.d.cts +8 -0
  132. package/dist/browser/contexts/RefreshPayloadContext/State.d.cts.map +1 -0
  133. package/dist/browser/contexts/RefreshPayloadContext/index.cjs +45 -0
  134. package/dist/browser/contexts/RefreshPayloadContext/index.cjs.map +1 -0
  135. package/dist/browser/contexts/RefreshPayloadContext/index.d.cts +4 -0
  136. package/dist/browser/contexts/RefreshPayloadContext/index.d.cts.map +1 -0
  137. package/dist/browser/contexts/RefreshPayloadContext/use.cjs +34 -0
  138. package/dist/browser/contexts/RefreshPayloadContext/use.cjs.map +1 -0
  139. package/dist/browser/contexts/RefreshPayloadContext/use.d.cts +2 -0
  140. package/dist/browser/contexts/RefreshPayloadContext/use.d.cts.map +1 -0
  141. package/dist/browser/contexts/ResolvePayloadContext/Context.cjs +28 -0
  142. package/dist/{node/contexts/ResolvePayloadContext/Context.mjs.map → browser/contexts/ResolvePayloadContext/Context.cjs.map} +1 -1
  143. package/dist/browser/contexts/ResolvePayloadContext/Context.d.cts +4 -0
  144. package/dist/browser/contexts/ResolvePayloadContext/Context.d.cts.map +1 -0
  145. package/dist/browser/contexts/ResolvePayloadContext/Provider.cjs +88 -0
  146. package/dist/browser/contexts/ResolvePayloadContext/Provider.cjs.map +1 -0
  147. package/dist/browser/contexts/ResolvePayloadContext/Provider.d.cts +6 -0
  148. package/dist/browser/contexts/ResolvePayloadContext/Provider.d.cts.map +1 -0
  149. package/dist/browser/contexts/ResolvePayloadContext/State.cjs +19 -0
  150. package/dist/browser/contexts/ResolvePayloadContext/State.cjs.map +1 -0
  151. package/dist/browser/contexts/ResolvePayloadContext/State.d.cts +13 -0
  152. package/dist/browser/contexts/ResolvePayloadContext/State.d.cts.map +1 -0
  153. package/dist/browser/contexts/ResolvePayloadContext/index.cjs +96 -0
  154. package/dist/browser/contexts/ResolvePayloadContext/index.cjs.map +1 -0
  155. package/dist/browser/contexts/ResolvePayloadContext/index.d.cts +5 -0
  156. package/dist/browser/contexts/ResolvePayloadContext/index.d.cts.map +1 -0
  157. package/dist/browser/contexts/ResolvePayloadContext/use.cjs +34 -0
  158. package/dist/browser/contexts/ResolvePayloadContext/use.cjs.map +1 -0
  159. package/dist/browser/contexts/ResolvePayloadContext/use.d.cts +2 -0
  160. package/dist/browser/contexts/ResolvePayloadContext/use.d.cts.map +1 -0
  161. package/dist/browser/contexts/ValidatePayloadContext/Context.cjs +28 -0
  162. package/dist/{node/contexts/ValidatePayloadContext/Context.mjs.map → browser/contexts/ValidatePayloadContext/Context.cjs.map} +1 -1
  163. package/dist/browser/contexts/ValidatePayloadContext/Context.d.cts +4 -0
  164. package/dist/browser/contexts/ValidatePayloadContext/Context.d.cts.map +1 -0
  165. package/dist/browser/contexts/ValidatePayloadContext/Provider.cjs +66 -0
  166. package/dist/browser/contexts/ValidatePayloadContext/Provider.cjs.map +1 -0
  167. package/dist/browser/contexts/ValidatePayloadContext/Provider.d.cts +7 -0
  168. package/dist/browser/contexts/ValidatePayloadContext/Provider.d.cts.map +1 -0
  169. package/dist/browser/contexts/ValidatePayloadContext/State.cjs +19 -0
  170. package/dist/browser/contexts/ValidatePayloadContext/State.cjs.map +1 -0
  171. package/dist/browser/contexts/ValidatePayloadContext/State.d.cts +7 -0
  172. package/dist/browser/contexts/ValidatePayloadContext/State.d.cts.map +1 -0
  173. package/dist/browser/contexts/ValidatePayloadContext/index.cjs +73 -0
  174. package/dist/browser/contexts/ValidatePayloadContext/index.cjs.map +1 -0
  175. package/dist/browser/contexts/ValidatePayloadContext/index.d.cts +4 -0
  176. package/dist/browser/contexts/ValidatePayloadContext/index.d.cts.map +1 -0
  177. package/dist/browser/contexts/ValidatePayloadContext/use.cjs +34 -0
  178. package/dist/browser/contexts/ValidatePayloadContext/use.cjs.map +1 -0
  179. package/dist/browser/contexts/ValidatePayloadContext/use.d.cts +2 -0
  180. package/dist/browser/contexts/ValidatePayloadContext/use.d.cts.map +1 -0
  181. package/dist/browser/contexts/index.cjs +189 -0
  182. package/dist/browser/contexts/index.cjs.map +1 -0
  183. package/dist/browser/contexts/index.d.cts +5 -0
  184. package/dist/browser/contexts/index.d.cts.map +1 -0
  185. package/dist/browser/index.cjs +513 -0
  186. package/dist/browser/index.cjs.map +1 -0
  187. package/dist/browser/index.d.cts +4 -0
  188. package/dist/browser/index.d.cts.map +1 -0
  189. package/dist/browser/types/EmbedPluginProps.cjs +19 -0
  190. package/dist/browser/types/EmbedPluginProps.cjs.map +1 -0
  191. package/dist/browser/types/EmbedPluginProps.d.cts +10 -0
  192. package/dist/browser/types/EmbedPluginProps.d.cts.map +1 -0
  193. package/dist/browser/types/index.cjs +19 -0
  194. package/dist/browser/types/index.cjs.map +1 -0
  195. package/dist/browser/types/index.d.cts +2 -0
  196. package/dist/browser/types/index.d.cts.map +1 -0
  197. package/dist/docs.json +4925 -0
  198. package/dist/node/components/EmbedPlugin.cjs +255 -0
  199. package/dist/node/components/EmbedPlugin.cjs.map +1 -0
  200. package/dist/node/components/EmbedPlugin.d.cts +5 -0
  201. package/dist/node/components/EmbedPlugin.d.cts.map +1 -0
  202. package/dist/node/components/EmbedPlugin.js +206 -38
  203. package/dist/node/components/EmbedPlugin.js.map +1 -1
  204. package/dist/node/components/EmbedResolver.cjs +46 -0
  205. package/dist/node/components/EmbedResolver.cjs.map +1 -0
  206. package/dist/node/components/EmbedResolver.d.cts +4 -0
  207. package/dist/node/components/EmbedResolver.d.cts.map +1 -0
  208. package/dist/node/components/EmbedResolver.js +18 -32
  209. package/dist/node/components/EmbedResolver.js.map +1 -1
  210. package/dist/node/components/controls/EmbedFormControl.cjs +38 -0
  211. package/dist/node/components/controls/EmbedFormControl.cjs.map +1 -0
  212. package/dist/node/components/controls/EmbedFormControl.d.cts +10 -0
  213. package/dist/node/components/controls/EmbedFormControl.d.cts.map +1 -0
  214. package/dist/node/components/controls/EmbedFormControl.js +8 -31
  215. package/dist/node/components/controls/EmbedFormControl.js.map +1 -1
  216. package/dist/node/components/controls/ListModeSelect.cjs +70 -0
  217. package/dist/node/components/controls/ListModeSelect.cjs.map +1 -0
  218. package/dist/node/components/controls/ListModeSelect.d.cts +6 -0
  219. package/dist/node/components/controls/ListModeSelect.d.cts.map +1 -0
  220. package/dist/node/components/controls/ListModeSelect.js +29 -42
  221. package/dist/node/components/controls/ListModeSelect.js.map +1 -1
  222. package/dist/node/components/controls/RenderSelect.cjs +58 -0
  223. package/dist/node/components/controls/RenderSelect.cjs.map +1 -0
  224. package/dist/node/components/controls/RenderSelect.d.cts +4 -0
  225. package/dist/node/components/controls/RenderSelect.d.cts.map +1 -0
  226. package/dist/node/components/controls/RenderSelect.js +29 -34
  227. package/dist/node/components/controls/RenderSelect.js.map +1 -1
  228. package/dist/node/components/controls/index.cjs +94 -0
  229. package/dist/node/components/controls/index.cjs.map +1 -0
  230. package/dist/node/components/controls/index.d.cts +4 -0
  231. package/dist/node/components/controls/index.d.cts.map +1 -0
  232. package/dist/node/components/controls/index.js +62 -25
  233. package/dist/node/components/controls/index.js.map +1 -1
  234. package/dist/node/components/embed-card/EmbedCardResolver.cjs +99 -0
  235. package/dist/node/components/embed-card/EmbedCardResolver.cjs.map +1 -0
  236. package/dist/node/components/embed-card/EmbedCardResolver.d.cts +5 -0
  237. package/dist/node/components/embed-card/EmbedCardResolver.d.cts.map +1 -0
  238. package/dist/node/components/embed-card/EmbedCardResolver.js +59 -36
  239. package/dist/node/components/embed-card/EmbedCardResolver.js.map +1 -1
  240. package/dist/node/components/embed-card/EmbedPluginCard.cjs +505 -0
  241. package/dist/node/components/embed-card/EmbedPluginCard.cjs.map +1 -0
  242. package/dist/node/components/embed-card/EmbedPluginCard.d.cts +11 -0
  243. package/dist/node/components/embed-card/EmbedPluginCard.d.cts.map +1 -0
  244. package/dist/node/components/embed-card/EmbedPluginCard.js +438 -44
  245. package/dist/node/components/embed-card/EmbedPluginCard.js.map +1 -1
  246. package/dist/node/components/embed-card/card/BusyCard.cjs +49 -0
  247. package/dist/node/components/embed-card/card/BusyCard.cjs.map +1 -0
  248. package/dist/node/components/embed-card/card/BusyCard.d.cts +11 -0
  249. package/dist/node/components/embed-card/card/BusyCard.d.cts.map +1 -0
  250. package/dist/node/components/embed-card/card/BusyCard.js +15 -35
  251. package/dist/node/components/embed-card/card/BusyCard.js.map +1 -1
  252. package/dist/node/components/embed-card/card/EmbedCardHeader.cjs +113 -0
  253. package/dist/node/components/embed-card/card/EmbedCardHeader.cjs.map +1 -0
  254. package/dist/node/components/embed-card/card/EmbedCardHeader.d.cts +4 -0
  255. package/dist/node/components/embed-card/card/EmbedCardHeader.d.cts.map +1 -0
  256. package/dist/node/components/embed-card/card/EmbedCardHeader.js +70 -42
  257. package/dist/node/components/embed-card/card/EmbedCardHeader.js.map +1 -1
  258. package/dist/node/components/embed-card/card/EmbedPluginCard.cjs +205 -0
  259. package/dist/node/components/embed-card/card/EmbedPluginCard.cjs.map +1 -0
  260. package/dist/node/components/embed-card/card/EmbedPluginCard.d.cts +4 -0
  261. package/dist/node/components/embed-card/card/EmbedPluginCard.d.cts.map +1 -0
  262. package/dist/node/components/embed-card/card/EmbedPluginCard.js +178 -45
  263. package/dist/node/components/embed-card/card/EmbedPluginCard.js.map +1 -1
  264. package/dist/node/components/embed-card/card/index.cjs +211 -0
  265. package/dist/node/components/embed-card/card/index.cjs.map +1 -0
  266. package/dist/node/components/embed-card/card/index.d.cts +4 -0
  267. package/dist/node/components/embed-card/card/index.d.cts.map +1 -0
  268. package/dist/node/components/embed-card/card/index.js +184 -26
  269. package/dist/node/components/embed-card/card/index.js.map +1 -1
  270. package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.cjs +58 -0
  271. package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.cjs.map +1 -0
  272. package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.cts +10 -0
  273. package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.cts.map +1 -0
  274. package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +27 -31
  275. package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +1 -1
  276. package/dist/node/components/embed-card/error-handling/EmbedErrorCard.cjs +46 -0
  277. package/dist/node/components/embed-card/error-handling/EmbedErrorCard.cjs.map +1 -0
  278. package/dist/node/components/embed-card/error-handling/EmbedErrorCard.d.cts +15 -0
  279. package/dist/node/components/embed-card/error-handling/EmbedErrorCard.d.cts.map +1 -0
  280. package/dist/node/components/embed-card/error-handling/EmbedErrorCard.js +14 -37
  281. package/dist/node/components/embed-card/error-handling/EmbedErrorCard.js.map +1 -1
  282. package/dist/node/components/embed-card/error-handling/index.cjs +62 -0
  283. package/dist/node/components/embed-card/error-handling/index.cjs.map +1 -0
  284. package/dist/node/components/embed-card/error-handling/index.d.cts +3 -0
  285. package/dist/node/components/embed-card/error-handling/index.d.cts.map +1 -0
  286. package/dist/node/components/embed-card/error-handling/index.js +32 -23
  287. package/dist/node/components/embed-card/error-handling/index.js.map +1 -1
  288. package/dist/node/components/embed-card/index.cjs +513 -0
  289. package/dist/node/components/embed-card/index.cjs.map +1 -0
  290. package/dist/node/components/embed-card/index.d.cts +3 -0
  291. package/dist/node/components/embed-card/index.d.cts.map +1 -0
  292. package/dist/node/components/embed-card/index.js +482 -23
  293. package/dist/node/components/embed-card/index.js.map +1 -1
  294. package/dist/node/components/embed-card/menu/EmbedMenu.cjs +72 -0
  295. package/dist/node/components/embed-card/menu/EmbedMenu.cjs.map +1 -0
  296. package/dist/node/components/embed-card/menu/EmbedMenu.d.cts +4 -0
  297. package/dist/node/components/embed-card/menu/EmbedMenu.d.cts.map +1 -0
  298. package/dist/node/components/embed-card/menu/EmbedMenu.js +35 -35
  299. package/dist/node/components/embed-card/menu/EmbedMenu.js.map +1 -1
  300. package/dist/node/components/embed-card/menu/JsonMenuItem.cjs +50 -0
  301. package/dist/node/components/embed-card/menu/JsonMenuItem.cjs.map +1 -0
  302. package/dist/node/components/embed-card/menu/JsonMenuItem.d.cts +4 -0
  303. package/dist/node/components/embed-card/menu/JsonMenuItem.d.cts.map +1 -0
  304. package/dist/node/components/embed-card/menu/JsonMenuItem.js +21 -35
  305. package/dist/node/components/embed-card/menu/JsonMenuItem.js.map +1 -1
  306. package/dist/node/components/embed-card/menu/index.cjs +74 -0
  307. package/dist/node/components/embed-card/menu/index.cjs.map +1 -0
  308. package/dist/node/components/embed-card/menu/index.d.cts +2 -0
  309. package/dist/node/components/embed-card/menu/index.d.cts.map +1 -0
  310. package/dist/node/components/embed-card/menu/index.js +45 -21
  311. package/dist/node/components/embed-card/menu/index.js.map +1 -1
  312. package/dist/node/components/embed-plugin-stories/storyPayload.cjs +51 -0
  313. package/dist/node/components/embed-plugin-stories/storyPayload.cjs.map +1 -0
  314. package/dist/node/components/embed-plugin-stories/storyPayload.d.cts +126 -0
  315. package/dist/node/components/embed-plugin-stories/storyPayload.d.cts.map +1 -0
  316. package/dist/node/components/embed-plugin-stories/storyPayload.js +4 -27
  317. package/dist/node/components/embed-plugin-stories/storyPayload.js.map +1 -1
  318. package/dist/node/components/embed-plugin-stories/storyShared.cjs +520 -0
  319. package/dist/node/components/embed-plugin-stories/storyShared.cjs.map +1 -0
  320. package/dist/node/components/embed-plugin-stories/storyShared.d.cts +5 -0
  321. package/dist/node/components/embed-plugin-stories/storyShared.d.cts.map +1 -0
  322. package/dist/node/components/embed-plugin-stories/storyShared.js +485 -33
  323. package/dist/node/components/embed-plugin-stories/storyShared.js.map +1 -1
  324. package/dist/node/components/index.cjs +515 -0
  325. package/dist/node/components/index.cjs.map +1 -0
  326. package/dist/node/components/index.d.cts +3 -0
  327. package/dist/node/components/index.d.cts.map +1 -0
  328. package/dist/node/components/index.js +483 -23
  329. package/dist/node/components/index.js.map +1 -1
  330. package/dist/node/components/validation-alerts/ValidatePayload.cjs +53 -0
  331. package/dist/node/components/validation-alerts/ValidatePayload.cjs.map +1 -0
  332. package/dist/node/components/validation-alerts/ValidatePayload.d.cts +5 -0
  333. package/dist/node/components/validation-alerts/ValidatePayload.d.cts.map +1 -0
  334. package/dist/node/components/validation-alerts/ValidatePayload.js +19 -33
  335. package/dist/node/components/validation-alerts/ValidatePayload.js.map +1 -1
  336. package/dist/node/components/validation-alerts/ValidatePlugins.cjs +61 -0
  337. package/dist/node/components/validation-alerts/ValidatePlugins.cjs.map +1 -0
  338. package/dist/node/components/validation-alerts/ValidatePlugins.d.cts +5 -0
  339. package/dist/node/components/validation-alerts/ValidatePlugins.d.cts.map +1 -0
  340. package/dist/node/components/validation-alerts/ValidatePlugins.js +30 -36
  341. package/dist/node/components/validation-alerts/ValidatePlugins.js.map +1 -1
  342. package/dist/node/components/validation-alerts/index.cjs +88 -0
  343. package/dist/node/components/validation-alerts/index.cjs.map +1 -0
  344. package/dist/node/components/validation-alerts/index.d.cts +3 -0
  345. package/dist/node/components/validation-alerts/index.d.cts.map +1 -0
  346. package/dist/node/components/validation-alerts/index.js +57 -22
  347. package/dist/node/components/validation-alerts/index.js.map +1 -1
  348. package/dist/node/contexts/EmbedPluginContext/Context.cjs +32 -0
  349. package/dist/node/contexts/EmbedPluginContext/Context.cjs.map +1 -0
  350. package/dist/node/contexts/EmbedPluginContext/Context.d.cts +4 -0
  351. package/dist/node/contexts/EmbedPluginContext/Context.d.cts.map +1 -0
  352. package/dist/node/contexts/EmbedPluginContext/Context.js +5 -28
  353. package/dist/node/contexts/EmbedPluginContext/Context.js.map +1 -1
  354. package/dist/node/contexts/EmbedPluginContext/Provider.cjs +66 -0
  355. package/dist/node/contexts/EmbedPluginContext/Provider.cjs.map +1 -0
  356. package/dist/node/contexts/EmbedPluginContext/Provider.d.cts +7 -0
  357. package/dist/node/contexts/EmbedPluginContext/Provider.d.cts.map +1 -0
  358. package/dist/node/contexts/EmbedPluginContext/Provider.js +16 -34
  359. package/dist/node/contexts/EmbedPluginContext/Provider.js.map +1 -1
  360. package/dist/node/contexts/EmbedPluginContext/State.cjs +19 -0
  361. package/dist/node/contexts/EmbedPluginContext/State.cjs.map +1 -0
  362. package/dist/node/contexts/EmbedPluginContext/State.d.cts +33 -0
  363. package/dist/node/contexts/EmbedPluginContext/State.d.cts.map +1 -0
  364. package/dist/node/contexts/EmbedPluginContext/State.js +0 -16
  365. package/dist/node/contexts/EmbedPluginContext/State.js.map +1 -1
  366. package/dist/node/contexts/EmbedPluginContext/index.cjs +74 -0
  367. package/dist/node/contexts/EmbedPluginContext/index.cjs.map +1 -0
  368. package/dist/node/contexts/EmbedPluginContext/index.d.cts +5 -0
  369. package/dist/node/contexts/EmbedPluginContext/index.d.cts.map +1 -0
  370. package/dist/node/contexts/EmbedPluginContext/index.js +43 -27
  371. package/dist/node/contexts/EmbedPluginContext/index.js.map +1 -1
  372. package/dist/node/contexts/EmbedPluginContext/use.cjs +38 -0
  373. package/dist/node/contexts/EmbedPluginContext/use.cjs.map +1 -0
  374. package/dist/node/contexts/EmbedPluginContext/use.d.cts +2 -0
  375. package/dist/node/contexts/EmbedPluginContext/use.d.cts.map +1 -0
  376. package/dist/node/contexts/EmbedPluginContext/use.js +11 -29
  377. package/dist/node/contexts/EmbedPluginContext/use.js.map +1 -1
  378. package/dist/node/contexts/RefreshPayloadContext/Context.cjs +32 -0
  379. package/dist/node/contexts/RefreshPayloadContext/Context.cjs.map +1 -0
  380. package/dist/node/contexts/RefreshPayloadContext/Context.d.cts +4 -0
  381. package/dist/node/contexts/RefreshPayloadContext/Context.d.cts.map +1 -0
  382. package/dist/node/contexts/RefreshPayloadContext/Context.js +5 -28
  383. package/dist/node/contexts/RefreshPayloadContext/Context.js.map +1 -1
  384. package/dist/node/contexts/RefreshPayloadContext/Provider.cjs +42 -0
  385. package/dist/node/contexts/RefreshPayloadContext/Provider.cjs.map +1 -0
  386. package/dist/node/contexts/RefreshPayloadContext/Provider.d.cts +8 -0
  387. package/dist/node/contexts/RefreshPayloadContext/Provider.d.cts.map +1 -0
  388. package/dist/node/contexts/RefreshPayloadContext/Provider.js +14 -32
  389. package/dist/node/contexts/RefreshPayloadContext/Provider.js.map +1 -1
  390. package/dist/node/contexts/RefreshPayloadContext/State.cjs +19 -0
  391. package/dist/node/contexts/RefreshPayloadContext/State.cjs.map +1 -0
  392. package/dist/node/contexts/RefreshPayloadContext/State.d.cts +8 -0
  393. package/dist/node/contexts/RefreshPayloadContext/State.d.cts.map +1 -0
  394. package/dist/node/contexts/RefreshPayloadContext/State.js +0 -16
  395. package/dist/node/contexts/RefreshPayloadContext/State.js.map +1 -1
  396. package/dist/node/contexts/RefreshPayloadContext/index.cjs +50 -0
  397. package/dist/node/contexts/RefreshPayloadContext/index.cjs.map +1 -0
  398. package/dist/node/contexts/RefreshPayloadContext/index.d.cts +4 -0
  399. package/dist/node/contexts/RefreshPayloadContext/index.d.cts.map +1 -0
  400. package/dist/node/contexts/RefreshPayloadContext/index.js +20 -25
  401. package/dist/node/contexts/RefreshPayloadContext/index.js.map +1 -1
  402. package/dist/node/contexts/RefreshPayloadContext/use.cjs +38 -0
  403. package/dist/node/contexts/RefreshPayloadContext/use.cjs.map +1 -0
  404. package/dist/node/contexts/RefreshPayloadContext/use.d.cts +2 -0
  405. package/dist/node/contexts/RefreshPayloadContext/use.d.cts.map +1 -0
  406. package/dist/node/contexts/RefreshPayloadContext/use.js +11 -29
  407. package/dist/node/contexts/RefreshPayloadContext/use.js.map +1 -1
  408. package/dist/node/contexts/ResolvePayloadContext/Context.cjs +32 -0
  409. package/dist/node/contexts/ResolvePayloadContext/Context.cjs.map +1 -0
  410. package/dist/node/contexts/ResolvePayloadContext/Context.d.cts +4 -0
  411. package/dist/node/contexts/ResolvePayloadContext/Context.d.cts.map +1 -0
  412. package/dist/node/contexts/ResolvePayloadContext/Context.js +5 -28
  413. package/dist/node/contexts/ResolvePayloadContext/Context.js.map +1 -1
  414. package/dist/node/contexts/ResolvePayloadContext/Provider.cjs +92 -0
  415. package/dist/node/contexts/ResolvePayloadContext/Provider.cjs.map +1 -0
  416. package/dist/node/contexts/ResolvePayloadContext/Provider.d.cts +6 -0
  417. package/dist/node/contexts/ResolvePayloadContext/Provider.d.cts.map +1 -0
  418. package/dist/node/contexts/ResolvePayloadContext/Provider.js +39 -50
  419. package/dist/node/contexts/ResolvePayloadContext/Provider.js.map +1 -1
  420. package/dist/node/contexts/ResolvePayloadContext/State.cjs +19 -0
  421. package/dist/node/contexts/ResolvePayloadContext/State.cjs.map +1 -0
  422. package/dist/node/contexts/ResolvePayloadContext/State.d.cts +13 -0
  423. package/dist/node/contexts/ResolvePayloadContext/State.d.cts.map +1 -0
  424. package/dist/node/contexts/ResolvePayloadContext/State.js +0 -16
  425. package/dist/node/contexts/ResolvePayloadContext/State.js.map +1 -1
  426. package/dist/node/contexts/ResolvePayloadContext/index.cjs +102 -0
  427. package/dist/node/contexts/ResolvePayloadContext/index.cjs.map +1 -0
  428. package/dist/node/contexts/ResolvePayloadContext/index.d.cts +5 -0
  429. package/dist/node/contexts/ResolvePayloadContext/index.d.cts.map +1 -0
  430. package/dist/node/contexts/ResolvePayloadContext/index.js +71 -27
  431. package/dist/node/contexts/ResolvePayloadContext/index.js.map +1 -1
  432. package/dist/node/contexts/ResolvePayloadContext/use.cjs +38 -0
  433. package/dist/node/contexts/ResolvePayloadContext/use.cjs.map +1 -0
  434. package/dist/node/contexts/ResolvePayloadContext/use.d.cts +2 -0
  435. package/dist/node/contexts/ResolvePayloadContext/use.d.cts.map +1 -0
  436. package/dist/node/contexts/ResolvePayloadContext/use.js +11 -29
  437. package/dist/node/contexts/ResolvePayloadContext/use.js.map +1 -1
  438. package/dist/node/contexts/ValidatePayloadContext/Context.cjs +32 -0
  439. package/dist/node/contexts/ValidatePayloadContext/Context.cjs.map +1 -0
  440. package/dist/node/contexts/ValidatePayloadContext/Context.d.cts +4 -0
  441. package/dist/node/contexts/ValidatePayloadContext/Context.d.cts.map +1 -0
  442. package/dist/node/contexts/ValidatePayloadContext/Context.js +5 -28
  443. package/dist/node/contexts/ValidatePayloadContext/Context.js.map +1 -1
  444. package/dist/node/contexts/ValidatePayloadContext/Provider.cjs +70 -0
  445. package/dist/node/contexts/ValidatePayloadContext/Provider.cjs.map +1 -0
  446. package/dist/node/contexts/ValidatePayloadContext/Provider.d.cts +7 -0
  447. package/dist/node/contexts/ValidatePayloadContext/Provider.d.cts.map +1 -0
  448. package/dist/node/contexts/ValidatePayloadContext/Provider.js +32 -43
  449. package/dist/node/contexts/ValidatePayloadContext/Provider.js.map +1 -1
  450. package/dist/node/contexts/ValidatePayloadContext/State.cjs +19 -0
  451. package/dist/node/contexts/ValidatePayloadContext/State.cjs.map +1 -0
  452. package/dist/node/contexts/ValidatePayloadContext/State.d.cts +7 -0
  453. package/dist/node/contexts/ValidatePayloadContext/State.d.cts.map +1 -0
  454. package/dist/node/contexts/ValidatePayloadContext/State.js +0 -16
  455. package/dist/node/contexts/ValidatePayloadContext/State.js.map +1 -1
  456. package/dist/node/contexts/ValidatePayloadContext/index.cjs +78 -0
  457. package/dist/node/contexts/ValidatePayloadContext/index.cjs.map +1 -0
  458. package/dist/node/contexts/ValidatePayloadContext/index.d.cts +4 -0
  459. package/dist/node/contexts/ValidatePayloadContext/index.d.cts.map +1 -0
  460. package/dist/node/contexts/ValidatePayloadContext/index.js +48 -25
  461. package/dist/node/contexts/ValidatePayloadContext/index.js.map +1 -1
  462. package/dist/node/contexts/ValidatePayloadContext/use.cjs +38 -0
  463. package/dist/node/contexts/ValidatePayloadContext/use.cjs.map +1 -0
  464. package/dist/node/contexts/ValidatePayloadContext/use.d.cts +2 -0
  465. package/dist/node/contexts/ValidatePayloadContext/use.d.cts.map +1 -0
  466. package/dist/node/contexts/ValidatePayloadContext/use.js +11 -29
  467. package/dist/node/contexts/ValidatePayloadContext/use.js.map +1 -1
  468. package/dist/node/contexts/index.cjs +202 -0
  469. package/dist/node/contexts/index.cjs.map +1 -0
  470. package/dist/node/contexts/index.d.cts +5 -0
  471. package/dist/node/contexts/index.d.cts.map +1 -0
  472. package/dist/node/contexts/index.js +164 -27
  473. package/dist/node/contexts/index.js.map +1 -1
  474. package/dist/node/index.cjs +535 -0
  475. package/dist/node/index.cjs.map +1 -0
  476. package/dist/node/index.d.cts +4 -0
  477. package/dist/node/index.d.cts.map +1 -0
  478. package/dist/node/index.js +493 -25
  479. package/dist/node/index.js.map +1 -1
  480. package/dist/node/types/EmbedPluginProps.cjs +19 -0
  481. package/dist/node/types/EmbedPluginProps.cjs.map +1 -0
  482. package/dist/node/types/EmbedPluginProps.d.cts +10 -0
  483. package/dist/node/types/EmbedPluginProps.d.cts.map +1 -0
  484. package/dist/node/types/EmbedPluginProps.js +0 -16
  485. package/dist/node/types/EmbedPluginProps.js.map +1 -1
  486. package/dist/node/types/index.cjs +19 -0
  487. package/dist/node/types/index.cjs.map +1 -0
  488. package/dist/node/types/index.d.cts +2 -0
  489. package/dist/node/types/index.d.cts.map +1 -0
  490. package/dist/node/types/index.js +0 -22
  491. package/dist/node/types/index.js.map +1 -1
  492. package/package.json +25 -25
  493. package/dist/browser/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.js +0 -25
  494. package/dist/browser/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.js.map +0 -1
  495. package/dist/browser/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.js +0 -85
  496. package/dist/browser/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.js.map +0 -1
  497. package/dist/browser/contexts/ValidatePayloadContext/Provider.stories.js +0 -53
  498. package/dist/browser/contexts/ValidatePayloadContext/Provider.stories.js.map +0 -1
  499. package/dist/node/components/EmbedPlugin.mjs +0 -38
  500. package/dist/node/components/EmbedPlugin.mjs.map +0 -1
  501. package/dist/node/components/EmbedResolver.mjs +0 -11
  502. package/dist/node/components/EmbedResolver.mjs.map +0 -1
  503. package/dist/node/components/controls/EmbedFormControl.mjs +0 -12
  504. package/dist/node/components/controls/ListModeSelect.mjs +0 -32
  505. package/dist/node/components/controls/ListModeSelect.mjs.map +0 -1
  506. package/dist/node/components/controls/RenderSelect.mjs +0 -14
  507. package/dist/node/components/controls/RenderSelect.mjs.map +0 -1
  508. package/dist/node/components/controls/index.mjs +0 -4
  509. package/dist/node/components/controls/index.mjs.map +0 -1
  510. package/dist/node/components/embed-card/EmbedCardResolver.mjs +0 -27
  511. package/dist/node/components/embed-card/EmbedCardResolver.mjs.map +0 -1
  512. package/dist/node/components/embed-card/EmbedPluginCard.mjs +0 -61
  513. package/dist/node/components/embed-card/EmbedPluginCard.mjs.map +0 -1
  514. package/dist/node/components/embed-card/card/BusyCard.mjs +0 -26
  515. package/dist/node/components/embed-card/card/EmbedCardHeader.mjs +0 -36
  516. package/dist/node/components/embed-card/card/EmbedCardHeader.mjs.map +0 -1
  517. package/dist/node/components/embed-card/card/EmbedPluginCard.mjs +0 -26
  518. package/dist/node/components/embed-card/card/EmbedPluginCard.mjs.map +0 -1
  519. package/dist/node/components/embed-card/card/index.mjs +0 -4
  520. package/dist/node/components/embed-card/card/index.mjs.map +0 -1
  521. package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.mjs +0 -13
  522. package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.mjs.map +0 -1
  523. package/dist/node/components/embed-card/error-handling/EmbedErrorCard.mjs +0 -20
  524. package/dist/node/components/embed-card/error-handling/index.mjs +0 -3
  525. package/dist/node/components/embed-card/error-handling/index.mjs.map +0 -1
  526. package/dist/node/components/embed-card/index.mjs +0 -3
  527. package/dist/node/components/embed-card/index.mjs.map +0 -1
  528. package/dist/node/components/embed-card/menu/EmbedMenu.mjs +0 -23
  529. package/dist/node/components/embed-card/menu/EmbedMenu.mjs.map +0 -1
  530. package/dist/node/components/embed-card/menu/JsonMenuItem.mjs +0 -15
  531. package/dist/node/components/embed-card/menu/JsonMenuItem.mjs.map +0 -1
  532. package/dist/node/components/embed-card/menu/index.mjs +0 -2
  533. package/dist/node/components/embed-card/menu/index.mjs.map +0 -1
  534. package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.js +0 -50
  535. package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.js.map +0 -1
  536. package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.mjs +0 -25
  537. package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.mjs.map +0 -1
  538. package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.js +0 -115
  539. package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.js.map +0 -1
  540. package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.mjs +0 -85
  541. package/dist/node/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.mjs.map +0 -1
  542. package/dist/node/components/embed-plugin-stories/storyShared.mjs +0 -20
  543. package/dist/node/components/embed-plugin-stories/storyShared.mjs.map +0 -1
  544. package/dist/node/components/index.mjs +0 -3
  545. package/dist/node/components/index.mjs.map +0 -1
  546. package/dist/node/components/validation-alerts/ValidatePayload.mjs +0 -18
  547. package/dist/node/components/validation-alerts/ValidatePayload.mjs.map +0 -1
  548. package/dist/node/components/validation-alerts/ValidatePlugins.mjs +0 -18
  549. package/dist/node/components/validation-alerts/ValidatePlugins.mjs.map +0 -1
  550. package/dist/node/components/validation-alerts/index.mjs +0 -3
  551. package/dist/node/components/validation-alerts/index.mjs.map +0 -1
  552. package/dist/node/contexts/EmbedPluginContext/Context.mjs +0 -6
  553. package/dist/node/contexts/EmbedPluginContext/Provider.mjs +0 -35
  554. package/dist/node/contexts/EmbedPluginContext/Provider.mjs.map +0 -1
  555. package/dist/node/contexts/EmbedPluginContext/State.mjs +0 -1
  556. package/dist/node/contexts/EmbedPluginContext/State.mjs.map +0 -1
  557. package/dist/node/contexts/EmbedPluginContext/index.mjs +0 -5
  558. package/dist/node/contexts/EmbedPluginContext/index.mjs.map +0 -1
  559. package/dist/node/contexts/EmbedPluginContext/use.mjs +0 -7
  560. package/dist/node/contexts/EmbedPluginContext/use.mjs.map +0 -1
  561. package/dist/node/contexts/RefreshPayloadContext/Context.mjs +0 -6
  562. package/dist/node/contexts/RefreshPayloadContext/Provider.mjs +0 -11
  563. package/dist/node/contexts/RefreshPayloadContext/Provider.mjs.map +0 -1
  564. package/dist/node/contexts/RefreshPayloadContext/State.mjs +0 -1
  565. package/dist/node/contexts/RefreshPayloadContext/State.mjs.map +0 -1
  566. package/dist/node/contexts/RefreshPayloadContext/index.mjs +0 -4
  567. package/dist/node/contexts/RefreshPayloadContext/index.mjs.map +0 -1
  568. package/dist/node/contexts/RefreshPayloadContext/use.mjs +0 -7
  569. package/dist/node/contexts/RefreshPayloadContext/use.mjs.map +0 -1
  570. package/dist/node/contexts/ResolvePayloadContext/Context.mjs +0 -6
  571. package/dist/node/contexts/ResolvePayloadContext/Provider.mjs +0 -54
  572. package/dist/node/contexts/ResolvePayloadContext/Provider.mjs.map +0 -1
  573. package/dist/node/contexts/ResolvePayloadContext/State.mjs +0 -1
  574. package/dist/node/contexts/ResolvePayloadContext/State.mjs.map +0 -1
  575. package/dist/node/contexts/ResolvePayloadContext/index.mjs +0 -5
  576. package/dist/node/contexts/ResolvePayloadContext/index.mjs.map +0 -1
  577. package/dist/node/contexts/ResolvePayloadContext/use.mjs +0 -7
  578. package/dist/node/contexts/ResolvePayloadContext/use.mjs.map +0 -1
  579. package/dist/node/contexts/ValidatePayloadContext/Context.mjs +0 -6
  580. package/dist/node/contexts/ValidatePayloadContext/Provider.mjs +0 -32
  581. package/dist/node/contexts/ValidatePayloadContext/Provider.mjs.map +0 -1
  582. package/dist/node/contexts/ValidatePayloadContext/Provider.stories.js +0 -79
  583. package/dist/node/contexts/ValidatePayloadContext/Provider.stories.js.map +0 -1
  584. package/dist/node/contexts/ValidatePayloadContext/Provider.stories.mjs +0 -53
  585. package/dist/node/contexts/ValidatePayloadContext/Provider.stories.mjs.map +0 -1
  586. package/dist/node/contexts/ValidatePayloadContext/State.mjs +0 -1
  587. package/dist/node/contexts/ValidatePayloadContext/State.mjs.map +0 -1
  588. package/dist/node/contexts/ValidatePayloadContext/index.mjs +0 -4
  589. package/dist/node/contexts/ValidatePayloadContext/index.mjs.map +0 -1
  590. package/dist/node/contexts/ValidatePayloadContext/use.mjs +0 -7
  591. package/dist/node/contexts/ValidatePayloadContext/use.mjs.map +0 -1
  592. package/dist/node/contexts/index.mjs +0 -5
  593. package/dist/node/contexts/index.mjs.map +0 -1
  594. package/dist/node/index.mjs +0 -4
  595. package/dist/node/index.mjs.map +0 -1
  596. package/dist/node/types/EmbedPluginProps.mjs +0 -1
  597. package/dist/node/types/EmbedPluginProps.mjs.map +0 -1
  598. package/dist/node/types/index.mjs +0 -2
  599. package/dist/node/types/index.mjs.map +0 -1
@@ -1,45 +1,497 @@
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 });
1
+ // src/components/embed-plugin-stories/storyShared.tsx
2
+ import { BrowserRouter } from "react-router-dom";
3
+
4
+ // src/components/embed-card/card/BusyCard.tsx
5
+ import { Card } from "@mui/material";
6
+ import { useBusyTiming } from "@xylabs/react-flexbox";
7
+ import {
8
+ BusyCircularProgress,
9
+ BusyLinearProgress
10
+ } from "@xylabs/react-shared";
11
+ import { jsx, jsxs } from "react/jsx-runtime";
12
+ var BusyCard = ({
13
+ busy,
14
+ busyMinimum = 500,
15
+ busyVariant = "circular",
16
+ busyVariantProps,
17
+ children,
18
+ ...props
19
+ }) => {
20
+ const internalBusy = useBusyTiming(busy, busyMinimum);
21
+ return /* @__PURE__ */ jsxs(Card, { ...props, children: [
22
+ children,
23
+ busyVariant === "circular" && internalBusy ? /* @__PURE__ */ jsx(BusyCircularProgress, { ...busyVariantProps }) : null,
24
+ busyVariant === "linear" && internalBusy ? /* @__PURE__ */ jsx(BusyLinearProgress, { ...busyVariantProps }) : null
25
+ ] });
26
+ };
27
+
28
+ // src/components/embed-card/card/EmbedCardHeader.tsx
29
+ import { Refresh as RefreshIcon } from "@mui/icons-material";
30
+ import { Avatar, CardHeader, Chip as Chip2 } from "@mui/material";
31
+ import { FlexRow } from "@xylabs/react-flexbox";
32
+
33
+ // src/contexts/EmbedPluginContext/Context.tsx
34
+ import { createContextEx } from "@xyo-network/react-shared";
35
+ var EmbedPluginContext = createContextEx();
36
+
37
+ // src/contexts/EmbedPluginContext/Provider.tsx
38
+ import { useEffect, useState } from "react";
39
+ import { jsx as jsx2 } from "react/jsx-runtime";
40
+ var EmbedPluginProvider = ({
41
+ children,
42
+ refreshTitle,
43
+ timestampLabel,
44
+ hideElementsConfig,
45
+ plugins,
46
+ embedPluginConfig
47
+ }) => {
48
+ const [activePlugin, setActivePlugin] = useState(plugins ? plugins[0] : void 0);
49
+ useEffect(() => {
50
+ setActivePlugin(plugins ? plugins[0] : void 0);
51
+ }, [plugins]);
52
+ return /* @__PURE__ */ jsx2(
53
+ EmbedPluginContext.Provider,
54
+ {
55
+ value: {
56
+ activePlugin,
57
+ embedPluginConfig,
58
+ hideElementsConfig,
59
+ provided: true,
60
+ refreshTitle,
61
+ setActivePlugin,
62
+ timestampLabel
63
+ },
64
+ children
65
+ }
66
+ );
67
+ };
68
+
69
+ // src/contexts/EmbedPluginContext/use.tsx
70
+ import { useContextEx } from "@xyo-network/react-shared";
71
+ var useEmbedPluginState = () => useContextEx(EmbedPluginContext, "EmbedPlugin", true);
72
+
73
+ // src/contexts/RefreshPayloadContext/Provider.tsx
74
+ import { useState as useState2 } from "react";
75
+
76
+ // src/contexts/RefreshPayloadContext/Context.tsx
77
+ import { createContextEx as createContextEx2 } from "@xyo-network/react-shared";
78
+ var RefreshPayloadContext = createContextEx2();
79
+
80
+ // src/contexts/RefreshPayloadContext/Provider.tsx
81
+ import { jsx as jsx3 } from "react/jsx-runtime";
82
+ var RefreshPayloadProvider = ({ children, onRefresh, refreshPayload }) => {
83
+ const [localRefreshPayload, setRefreshPayload] = useState2(refreshPayload);
84
+ return /* @__PURE__ */ jsx3(RefreshPayloadContext.Provider, { value: { onRefresh, provided: true, refreshPayload: localRefreshPayload, setRefreshPayload }, children });
85
+ };
86
+
87
+ // src/contexts/RefreshPayloadContext/use.tsx
88
+ import { useContextEx as useContextEx2 } from "@xyo-network/react-shared";
89
+ var useRefreshPayload = () => useContextEx2(RefreshPayloadContext, "RefreshPayload", true);
90
+
91
+ // src/contexts/ResolvePayloadContext/Context.ts
92
+ import { createContextEx as createContextEx3 } from "@xyo-network/react-shared";
93
+ var ResolvePayloadContext = createContextEx3();
94
+
95
+ // src/contexts/ResolvePayloadContext/Provider.tsx
96
+ import { delay } from "@xylabs/delay";
97
+ import { useAsyncEffect } from "@xylabs/react-async-effect";
98
+ import { Huri } from "@xyo-network/huri";
99
+ import { ModuleErrorSchema } from "@xyo-network/payload-model";
100
+ import { useEffect as useEffect2, useState as useState3 } from "react";
101
+ import { jsx as jsx4 } from "react/jsx-runtime";
102
+ var ResolvePayloadProvider = ({ children, huriPayload }) => {
103
+ const [payload, setPayload] = useState3();
104
+ const [huri, setHuri] = useState3();
105
+ const { refreshPayload, setRefreshPayload, onRefresh } = useRefreshPayload();
106
+ useEffect2(() => {
107
+ typeof huriPayload === "string" ? setHuri(huriPayload) : void 0;
108
+ if (typeof huriPayload === "object") {
109
+ setPayload(huriPayload);
110
+ setRefreshPayload == null ? void 0 : setRefreshPayload(true);
111
+ }
112
+ }, [huriPayload, setRefreshPayload]);
113
+ const [notFound, setNotFound] = useState3();
114
+ const [huriError, setHuriError] = useState3();
115
+ useAsyncEffect(
116
+ // eslint-disable-next-line react-hooks/exhaustive-deps
117
+ async (mounted) => {
118
+ if (huri && !refreshPayload) {
119
+ try {
120
+ const huriInstance = new Huri(huri);
121
+ const result = await huriInstance.fetch();
122
+ await delay(500);
123
+ if (mounted()) {
124
+ setNotFound(result === null);
125
+ setPayload(result);
126
+ setRefreshPayload == null ? void 0 : setRefreshPayload(true);
127
+ }
128
+ } catch (e) {
129
+ const error = e;
130
+ setHuriError({ message: error.message, schema: ModuleErrorSchema, sources: [] });
131
+ }
132
+ }
133
+ },
134
+ [huri, payload, refreshPayload, setRefreshPayload]
135
+ );
136
+ const refreshHuri = () => {
137
+ onRefresh == null ? void 0 : onRefresh();
138
+ if (huri) {
139
+ setRefreshPayload == null ? void 0 : setRefreshPayload(false);
140
+ }
141
+ };
142
+ return /* @__PURE__ */ jsx4(ResolvePayloadContext.Provider, { value: { huri, huriError, notFound, payload, provided: true, refreshHuri, setPayload }, children });
143
+ };
144
+
145
+ // src/contexts/ResolvePayloadContext/use.tsx
146
+ import { useContextEx as useContextEx3 } from "@xyo-network/react-shared";
147
+ var useResolvePayload = () => useContextEx3(ResolvePayloadContext, "ResolvePayload", true);
148
+
149
+ // src/contexts/ValidatePayloadContext/Provider.tsx
150
+ import { Chip } from "@mui/material";
151
+ import { useAsyncEffect as useAsyncEffect2 } from "@xylabs/react-async-effect";
152
+ import { SchemaCache } from "@xyo-network/schema-cache";
153
+ import { useState as useState4 } from "react";
154
+
155
+ // src/contexts/ValidatePayloadContext/Context.ts
156
+ import { createContextEx as createContextEx4 } from "@xyo-network/react-shared";
157
+ var ValidatePayloadContext = createContextEx4();
158
+
159
+ // src/contexts/ValidatePayloadContext/Provider.tsx
160
+ import { Fragment, jsx as jsx5 } from "react/jsx-runtime";
161
+ var ValidatePayloadProvider = ({ children, enabled = false }) => {
162
+ const { payload } = useResolvePayload();
163
+ const [initialized, setInitialized] = useState4(false);
164
+ const [valid, setValid] = useState4();
165
+ useAsyncEffect2(
166
+ // eslint-disable-next-line react-hooks/exhaustive-deps
167
+ async () => {
168
+ if (payload && enabled) {
169
+ await SchemaCache.instance.get(payload.schema);
170
+ const possibleKnownSchema = payload.schema;
171
+ if (SchemaCache.instance.validators[possibleKnownSchema]) {
172
+ const validator = SchemaCache.instance.validators[possibleKnownSchema];
173
+ setValid(validator == null ? void 0 : validator(payload));
174
+ }
175
+ setInitialized(true);
176
+ }
177
+ },
178
+ [payload, enabled]
179
+ );
180
+ return /* @__PURE__ */ jsx5(ValidatePayloadContext.Provider, { value: { enabled, provided: true, schema: payload == null ? void 0 : payload.schema, validPayload: valid }, children: enabled ? /* @__PURE__ */ jsx5(Fragment, { children: initialized ? children : /* @__PURE__ */ jsx5(Chip, { label: "Validating Payload..." }) }) : children });
181
+ };
182
+
183
+ // src/contexts/ValidatePayloadContext/use.tsx
184
+ import { useContextEx as useContextEx4 } from "@xyo-network/react-shared";
185
+ var useValidatePayload = () => useContextEx4(ValidatePayloadContext, "ValidateSchema", true);
186
+
187
+ // src/components/embed-card/menu/EmbedMenu.tsx
188
+ import { MoreVert as MoreVertIcon } from "@mui/icons-material";
189
+ import { IconButton, Menu } from "@mui/material";
190
+ import { useState as useState5 } from "react";
191
+
192
+ // src/components/embed-card/menu/JsonMenuItem.tsx
193
+ import { OpenInNew as OpenInNewIcon } from "@mui/icons-material";
194
+ import { ListItemIcon, ListItemText, MenuItem } from "@mui/material";
195
+ import { Fragment as Fragment2, jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
196
+ var JsonMenuItem = (props) => {
197
+ const { huri } = useResolvePayload();
198
+ return /* @__PURE__ */ jsx6(Fragment2, { children: huri ? /* @__PURE__ */ jsxs2(MenuItem, { title: "Source Payload JSON", onClick: () => window.open(huri, "_blank"), ...props, children: [
199
+ /* @__PURE__ */ jsx6(ListItemText, { sx: { mr: 1 }, children: "JSON" }),
200
+ /* @__PURE__ */ jsx6(ListItemIcon, { sx: { justifyContent: "end" }, children: /* @__PURE__ */ jsx6(OpenInNewIcon, { fontSize: "small" }) })
201
+ ] }) : null });
202
+ };
203
+
204
+ // src/components/embed-card/menu/EmbedMenu.tsx
205
+ import { Fragment as Fragment3, jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
206
+ var EmbedMenu = (props) => {
207
+ const [anchorEl, setAnchorEl] = useState5(null);
208
+ const open = Boolean(anchorEl);
209
+ const handleClick = (event) => {
210
+ setAnchorEl(event.currentTarget);
211
+ };
212
+ const handleClose = () => {
213
+ setAnchorEl(null);
214
+ };
215
+ return /* @__PURE__ */ jsxs3(Fragment3, { children: [
216
+ /* @__PURE__ */ jsx7(IconButton, { onClick: handleClick, ...props, children: /* @__PURE__ */ jsx7(MoreVertIcon, {}) }),
217
+ /* @__PURE__ */ jsx7(Menu, { anchorEl, open, onClose: handleClose, PaperProps: { variant: "elevation" }, MenuListProps: { dense: true }, children: /* @__PURE__ */ jsx7(JsonMenuItem, {}) })
218
+ ] });
219
+ };
220
+
221
+ // src/components/embed-card/card/EmbedCardHeader.tsx
222
+ import { Fragment as Fragment4, jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
223
+ var EmbedCardHeader = () => {
224
+ var _a;
225
+ const { refreshHuri, huri } = useResolvePayload();
226
+ const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState();
227
+ const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {};
228
+ const timestamp = Date.now();
229
+ return /* @__PURE__ */ jsx8(
230
+ CardHeader,
231
+ {
232
+ sx: { flexWrap: "wrap", rowGap: 1 },
233
+ avatar: hideAvatar ? /* @__PURE__ */ jsx8(Fragment4, {}) : /* @__PURE__ */ jsx8(Avatar, { sx: { bgcolor: (theme) => theme.palette.primary.main }, "aria-label": activePlugin == null ? void 0 : activePlugin.name, children: (_a = activePlugin == null ? void 0 : activePlugin.name) == null ? void 0 : _a.charAt(0) }),
234
+ action: /* @__PURE__ */ jsxs4(FlexRow, { flexWrap: "wrap", columnGap: 0.5, children: [
235
+ timestamp ? hideTimestamp && hideRefreshButton ? "" : /* @__PURE__ */ jsx8(
236
+ Chip2,
237
+ {
238
+ avatar: hideRefreshButton ? /* @__PURE__ */ jsx8(Fragment4, {}) : /* @__PURE__ */ jsx8(RefreshIcon, {}),
239
+ clickable: hideRefreshButton ? false : true,
240
+ onClick: refreshHuri,
241
+ label: hideTimestamp ? "" : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`
242
+ }
243
+ ) : null,
244
+ hideCardActions || huri === void 0 ? null : /* @__PURE__ */ jsx8(EmbedMenu, {})
245
+ ] }),
246
+ title: hideTitle ? "" : activePlugin == null ? void 0 : activePlugin.name
247
+ }
248
+ );
249
+ };
250
+
251
+ // src/components/embed-card/card/EmbedPluginCard.tsx
252
+ import { CardContent } from "@mui/material";
253
+ import { FlexGrowRow } from "@xylabs/react-flexbox";
254
+ import { useListMode as useListMode2 } from "@xyo-network/react-shared";
255
+
256
+ // src/components/controls/EmbedFormControl.tsx
257
+ import { FormControl, InputLabel } from "@mui/material";
258
+ import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
259
+ var EmbedFormControl = ({ formId, formLabel, children, ...props }) => {
260
+ return /* @__PURE__ */ jsxs5(FormControl, { ...props, children: [
261
+ /* @__PURE__ */ jsx9(InputLabel, { id: formId, children: formLabel }),
262
+ children
263
+ ] });
264
+ };
265
+
266
+ // src/components/controls/ListModeSelect.tsx
267
+ import { MenuItem as MenuItem2, Select } from "@mui/material";
268
+ import { useListMode } from "@xyo-network/react-shared";
269
+ import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
270
+ var listModeSelectId = "listmode-select-id";
271
+ var listModeSelectLabel = "List Mode";
272
+ var ListModeSelect = (props) => {
273
+ const { listMode, setListMode } = useListMode();
274
+ return /* @__PURE__ */ jsxs6(
275
+ Select,
276
+ {
277
+ value: listMode ?? "default",
278
+ onChange: (event) => {
279
+ setListMode == null ? void 0 : setListMode(event.target.value);
280
+ },
281
+ ...props,
282
+ children: [
283
+ /* @__PURE__ */ jsx10(MenuItem2, { value: "default", children: "Default" }, "default"),
284
+ /* @__PURE__ */ jsx10(MenuItem2, { value: "table", children: "Table" }, "table"),
285
+ /* @__PURE__ */ jsx10(MenuItem2, { value: "grid", children: "Grid" }, "grid")
286
+ ]
287
+ }
288
+ );
289
+ };
290
+ var ListModeSelectFormControl = (props) => {
291
+ return /* @__PURE__ */ jsx10(EmbedFormControl, { formId: listModeSelectId, formLabel: listModeSelectLabel, children: /* @__PURE__ */ jsx10(ListModeSelect, { size: "small", label: listModeSelectLabel, labelId: listModeSelectId, ...props }) });
292
+ };
293
+
294
+ // src/components/controls/RenderSelect.tsx
295
+ import { MenuItem as MenuItem3, Select as Select2 } from "@mui/material";
296
+ import { jsx as jsx11 } from "react/jsx-runtime";
297
+ var renderSelectId = "render-select-id";
298
+ var renderSelectLabel = "Renderer";
299
+ var EmbedRenderSelect = (props) => {
300
+ const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState();
301
+ return /* @__PURE__ */ jsx11(EmbedFormControl, { formId: renderSelectId, formLabel: renderSelectLabel, children: /* @__PURE__ */ jsx11(Select2, { size: "small", value: activePlugin == null ? void 0 : activePlugin.name, ...props, children: plugins == null ? void 0 : plugins.map((plugin) => /* @__PURE__ */ jsx11(MenuItem3, { value: plugin.name, onClick: () => setActivePlugin == null ? void 0 : setActivePlugin(plugin), children: plugin.name }, plugin.name)) }) });
302
+ };
303
+
304
+ // src/components/embed-card/card/EmbedPluginCard.tsx
305
+ import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
306
+ var EmbedPluginCard = ({ ...props }) => {
307
+ var _a, _b, _c;
308
+ const { payload } = useResolvePayload();
309
+ const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = useEmbedPluginState();
310
+ const { listMode } = useListMode2();
311
+ const supportsListMode = ((_c = (_b = (_a = ActivePlugin == null ? void 0 : ActivePlugin.components) == null ? void 0 : _a.box) == null ? void 0 : _b.listModes) == null ? void 0 : _c.length) ?? 0 > 1;
312
+ return /* @__PURE__ */ jsxs7(BusyCard, { ...props, children: [
313
+ (hideElementsConfig == null ? void 0 : hideElementsConfig.hideCardHeader) ? null : /* @__PURE__ */ jsx12(EmbedCardHeader, {}),
314
+ plugins && plugins.length || supportsListMode ? /* @__PURE__ */ jsxs7(FlexGrowRow, { columnGap: 2, rowGap: 2, flexWrap: "wrap", pb: 1, children: [
315
+ plugins && plugins.length > 1 ? /* @__PURE__ */ jsx12(EmbedRenderSelect, {}) : null,
316
+ supportsListMode ? /* @__PURE__ */ jsx12(ListModeSelectFormControl, {}) : null
317
+ ] }) : null,
318
+ /* @__PURE__ */ jsx12(CardContent, { sx: { height: "100%" }, children: ActivePlugin ? /* @__PURE__ */ jsx12(ActivePlugin.components.box.detailsBox, { payload, ...supportsListMode && { listMode } }) : null })
319
+ ] });
320
+ };
321
+
322
+ // src/components/embed-card/EmbedPluginCard.tsx
323
+ import { useTheme } from "@mui/material";
324
+
325
+ // src/components/EmbedPlugin.tsx
326
+ import { ErrorBoundary, ListModeProvider } from "@xyo-network/react-shared";
327
+
328
+ // src/components/EmbedResolver.tsx
329
+ import { LoadResult } from "@xyo-network/react-shared";
330
+ import { jsx as jsx13 } from "react/jsx-runtime";
331
+ var EmbedResolver = ({ children }) => {
332
+ const { payload, notFound, huriError } = useResolvePayload();
333
+ return /* @__PURE__ */ jsx13(LoadResult, { searchResult: payload, notFound: !!notFound, error: !!huriError, children });
334
+ };
335
+
336
+ // src/components/validation-alerts/ValidatePayload.tsx
337
+ import { Alert } from "@mui/material";
338
+ import { Fragment as Fragment5, jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
339
+ var ValidatePayloadAlert = ({ children, ...props }) => {
340
+ const { validPayload, enabled, schema } = useValidatePayload();
341
+ if (enabled && validPayload === false) {
342
+ return /* @__PURE__ */ jsxs8(Alert, { severity: "error", title: "Invalid Payload!", ...props, children: [
343
+ "Payload schema claimed to be ",
344
+ schema,
345
+ " but failed to validate."
346
+ ] });
347
+ }
348
+ return /* @__PURE__ */ jsx14(Fragment5, { children });
349
+ };
350
+
351
+ // src/components/validation-alerts/ValidatePlugins.tsx
352
+ import { Alert as Alert2, AlertTitle } from "@mui/material";
353
+ import { Fragment as Fragment6, jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
354
+ var ValidatePluginsAlert = ({ children, ...props }) => {
355
+ const { payload } = useResolvePayload();
356
+ const { plugins } = useEmbedPluginState();
357
+ if (payload && (plugins == null ? void 0 : plugins.length) === 0) {
358
+ return /* @__PURE__ */ jsxs9(Alert2, { severity: "warning", ...props, children: [
359
+ /* @__PURE__ */ jsx15(AlertTitle, { children: "Missing plugins!" }),
360
+ "Payload found but no plugins were present."
361
+ ] });
15
362
  }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var storyShared_exports = {};
20
- __export(storyShared_exports, {
21
- Template: () => Template,
22
- xyoEmbedStoryBase: () => xyoEmbedStoryBase
23
- });
24
- module.exports = __toCommonJS(storyShared_exports);
25
- var import_jsx_runtime = require("react/jsx-runtime");
26
- var import_react_router_dom = require("react-router-dom");
27
- var import_embed_card = require("../embed-card");
28
- const xyoEmbedStoryBase = {
363
+ return /* @__PURE__ */ jsx15(Fragment6, { children });
364
+ };
365
+
366
+ // src/components/EmbedPlugin.tsx
367
+ import { jsx as jsx16 } from "react/jsx-runtime";
368
+ var EmbedPluginInner = ({
369
+ validateSchema,
370
+ plugins = [],
371
+ huriPayload,
372
+ refreshTitle = "",
373
+ timestampLabel = "Data From",
374
+ hideElementsConfig,
375
+ embedPluginConfig,
376
+ onRefresh,
377
+ children
378
+ }) => {
379
+ return /* @__PURE__ */ jsx16(ErrorBoundary, { children: /* @__PURE__ */ jsx16(
380
+ EmbedPluginProvider,
381
+ {
382
+ refreshTitle,
383
+ timestampLabel,
384
+ hideElementsConfig,
385
+ plugins,
386
+ embedPluginConfig,
387
+ children: /* @__PURE__ */ jsx16(WithResolvers, { onRefresh, huriPayload, children: /* @__PURE__ */ jsx16(WithValidators, { validateSchema, children: /* @__PURE__ */ jsx16(ListModeProvider, { defaultListMode: embedPluginConfig == null ? void 0 : embedPluginConfig.listMode, children }) }) })
388
+ }
389
+ ) });
390
+ };
391
+ var WithResolvers = ({ children, onRefresh, huriPayload }) => {
392
+ return /* @__PURE__ */ jsx16(RefreshPayloadProvider, { onRefresh, children: /* @__PURE__ */ jsx16(ResolvePayloadProvider, { huriPayload, children: /* @__PURE__ */ jsx16(EmbedResolver, { children }) }) });
393
+ };
394
+ var WithValidators = ({ children, validateSchema }) => {
395
+ return /* @__PURE__ */ jsx16(ValidatePayloadProvider, { enabled: validateSchema, children: /* @__PURE__ */ jsx16(ValidatePluginsAlert, { children: /* @__PURE__ */ jsx16(ValidatePayloadAlert, { children }) }) });
396
+ };
397
+
398
+ // src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
399
+ import { ErrorAlert, ErrorRender } from "@xyo-network/react-error";
400
+
401
+ // src/components/embed-card/error-handling/EmbedErrorCard.tsx
402
+ import { Alert as Alert3, AlertTitle as AlertTitle2, Card as Card2, CardContent as CardContent2, Typography } from "@mui/material";
403
+ import { Fragment as Fragment7, jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
404
+ var EmbedErrorCard = (props) => {
405
+ const { alertProps, error, hideErrorDetails = true, children, ...cardProps } = props;
406
+ const errorProps = { alertProps, error, hideErrorDetails };
407
+ return /* @__PURE__ */ jsx17(Card2, { ...cardProps, children: /* @__PURE__ */ jsx17(CardContent2, { children: children ?? /* @__PURE__ */ jsx17(DefaultErrorAlert, { ...errorProps }) }) });
408
+ };
409
+ var DefaultErrorAlert = ({ alertProps, hideErrorDetails, error }) => {
410
+ return /* @__PURE__ */ jsxs10(Alert3, { severity: "error", ...alertProps, children: [
411
+ /* @__PURE__ */ jsx17(AlertTitle2, { children: "Whoops! Something went wrong" }),
412
+ !hideErrorDetails && error ? /* @__PURE__ */ jsxs10(Fragment7, { children: [
413
+ /* @__PURE__ */ jsx17(Typography, { variant: "caption", children: "Error: " }),
414
+ /* @__PURE__ */ jsx17(Typography, { variant: "caption", children: error == null ? void 0 : error.message })
415
+ ] }) : /* @__PURE__ */ jsx17(Typography, { variant: "caption", fontSize: "small", children: "Error Loading Plugin" })
416
+ ] });
417
+ };
418
+
419
+ // src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
420
+ import { jsx as jsx18 } from "react/jsx-runtime";
421
+ var EmbedCardApiErrorRenderer = ({ xyoError, children, ...props }) => {
422
+ return /* @__PURE__ */ jsx18(ErrorRender, { error: xyoError, noReAuth: true, noErrorDisplay: true, customError: /* @__PURE__ */ jsx18(CustomApiErrorCard, { xyoError, ...props }), children });
423
+ };
424
+ var CustomApiErrorCard = ({ xyoError, ...props }) => {
425
+ return /* @__PURE__ */ jsx18(EmbedErrorCard, { ...props, children: /* @__PURE__ */ jsx18(ErrorAlert, { error: xyoError }) });
426
+ };
427
+
428
+ // src/components/embed-card/EmbedPluginCard.tsx
429
+ import { jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
430
+ var ApiEmbedPluginCard = ({ children, ...props }) => {
431
+ const {
432
+ validateSchema,
433
+ plugins = [],
434
+ huriPayload,
435
+ refreshTitle = "",
436
+ timestampLabel = "Data From",
437
+ hideElementsConfig,
438
+ embedPluginConfig,
439
+ onRefresh,
440
+ ...busyCardProps
441
+ } = props;
442
+ return /* @__PURE__ */ jsxs11(
443
+ EmbedPluginInner,
444
+ {
445
+ ...{
446
+ embedPluginConfig,
447
+ hideElementsConfig,
448
+ huriPayload,
449
+ onRefresh,
450
+ plugins,
451
+ refreshTitle,
452
+ timestampLabel,
453
+ validateSchema
454
+ },
455
+ children: [
456
+ /* @__PURE__ */ jsx19(EmbedPluginCardInner, { ...busyCardProps }),
457
+ children
458
+ ]
459
+ }
460
+ );
461
+ };
462
+ var EmbedPluginCardInner = (props) => {
463
+ const { payload, huriError } = useResolvePayload();
464
+ const { refreshPayload } = useRefreshPayload();
465
+ const theme = useTheme();
466
+ return /* @__PURE__ */ jsx19(EmbedCardApiErrorRenderer, { xyoError: huriError, children: /* @__PURE__ */ jsx19(
467
+ EmbedPluginCard,
468
+ {
469
+ elevation: 3,
470
+ variant: "elevation",
471
+ busy: Boolean(!refreshPayload && payload),
472
+ busyVariantProps: { style: { alignItems: "start", paddingTop: theme.spacing(2), zIndex: 2 } },
473
+ sx: { position: "relative" },
474
+ ...props
475
+ }
476
+ ) });
477
+ };
478
+
479
+ // src/components/embed-plugin-stories/storyShared.tsx
480
+ import { jsx as jsx20 } from "react/jsx-runtime";
481
+ var xyoEmbedStoryBase = {
29
482
  argTypes: {},
30
- component: import_embed_card.ApiEmbedPluginCard,
483
+ component: ApiEmbedPluginCard,
31
484
  parameters: {
32
485
  docs: {
33
486
  page: null
34
487
  }
35
488
  }
36
489
  };
37
- const Template = (args) => {
38
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_router_dom.BrowserRouter, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_embed_card.ApiEmbedPluginCard, { ...args }) });
490
+ var Template = (args) => {
491
+ return /* @__PURE__ */ jsx20(BrowserRouter, { children: /* @__PURE__ */ jsx20(ApiEmbedPluginCard, { ...args }) });
39
492
  };
40
- // Annotate the CommonJS export names for ESM import in node:
41
- 0 && (module.exports = {
493
+ export {
42
494
  Template,
43
495
  xyoEmbedStoryBase
44
- });
496
+ };
45
497
  //# sourceMappingURL=storyShared.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/embed-plugin-stories/storyShared.tsx"],"sourcesContent":["import { Meta, StoryFn } from '@storybook/react'\nimport { BrowserRouter } from 'react-router-dom'\n\nimport { ApiEmbedPluginCard } from '../embed-card'\n\nexport const xyoEmbedStoryBase: Meta = {\n argTypes: {},\n component: ApiEmbedPluginCard,\n parameters: {\n docs: {\n page: null,\n },\n },\n}\n\nexport const Template: StoryFn<typeof ApiEmbedPluginCard> = (args) => {\n return (\n <BrowserRouter>\n <ApiEmbedPluginCard {...args} />\n </BrowserRouter>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBM;AAjBN,8BAA8B;AAE9B,wBAAmC;AAE5B,MAAM,oBAA0B;AAAA,EACrC,UAAU,CAAC;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAEO,MAAM,WAA+C,CAAC,SAAS;AACpE,SACE,4CAAC,yCACC,sDAAC,wCAAoB,GAAG,MAAM,GAChC;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/embed-plugin-stories/storyShared.tsx","../../../../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":["import { Meta, StoryFn } from '@storybook/react'\nimport { BrowserRouter } from 'react-router-dom'\n\nimport { ApiEmbedPluginCard } from '../embed-card'\n\nexport const xyoEmbedStoryBase: Meta = {\n argTypes: {},\n component: ApiEmbedPluginCard,\n parameters: {\n docs: {\n page: null,\n },\n },\n}\n\nexport const Template: StoryFn<typeof ApiEmbedPluginCard> = (args) => {\n return (\n <BrowserRouter>\n <ApiEmbedPluginCard {...args} />\n </BrowserRouter>\n )\n}\n","import { Card, CardProps } from '@mui/material'\nimport { useBusyTiming } from '@xylabs/react-flexbox'\nimport {\n BusyCircularProgress,\n BusyCircularProgressProps,\n BusyLinearProgress,\n BusyLinearProgressProps,\n BusyVariant,\n WithChildren,\n} from '@xylabs/react-shared'\n\nexport interface BusyCardProps extends CardProps {\n busy?: boolean\n busyMinimum?: number\n busyVariant?: BusyVariant\n busyVariantProps?: BusyCircularProgressProps | BusyLinearProgressProps\n}\n\nexport const BusyCard: React.FC<WithChildren<BusyCardProps>> = ({\n busy,\n busyMinimum = 500,\n busyVariant = 'circular',\n busyVariantProps,\n children,\n ...props\n}) => {\n const internalBusy = useBusyTiming(busy, busyMinimum)\n return (\n <Card {...props}>\n {children}\n {busyVariant === 'circular' && internalBusy ? <BusyCircularProgress {...(busyVariantProps as BusyCircularProgressProps)} /> : null}\n {busyVariant === 'linear' && internalBusy ? <BusyLinearProgress {...(busyVariantProps as BusyLinearProgressProps)} /> : null}\n </Card>\n )\n}\n","import { Refresh as RefreshIcon } from '@mui/icons-material'\nimport { Avatar, CardHeader, CardHeaderProps, Chip, Theme } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../../contexts'\nimport { EmbedMenu } from '../menu'\n\nexport const EmbedCardHeader: React.FC<CardHeaderProps> = () => {\n const { refreshHuri, huri } = useResolvePayload()\n const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState()\n const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {}\n //this is temporary so that we can add the ability to get a timestamp via diviner later\n const timestamp = Date.now()\n return (\n <CardHeader\n sx={{ flexWrap: 'wrap', rowGap: 1 }}\n avatar={\n hideAvatar ? (\n <></>\n ) : (\n <Avatar sx={{ bgcolor: (theme: Theme) => theme.palette.primary.main }} aria-label={activePlugin?.name}>\n {activePlugin?.name?.charAt(0)}\n </Avatar>\n )\n }\n action={\n <FlexRow flexWrap=\"wrap\" columnGap={0.5}>\n {timestamp ? (\n hideTimestamp && hideRefreshButton ? (\n ''\n ) : (\n <Chip\n avatar={hideRefreshButton ? <></> : <RefreshIcon />}\n clickable={hideRefreshButton ? false : true}\n onClick={refreshHuri}\n label={hideTimestamp ? '' : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`}\n />\n )\n ) : null}\n {/* Huri case is valid as long as the only menu item is JSON */}\n {hideCardActions || huri === undefined ? null : <EmbedMenu />}\n </FlexRow>\n }\n title={hideTitle ? '' : activePlugin?.name}\n />\n )\n}\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginState } from './State'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n","import { 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 ? <>{initialized ? children : <Chip label=\"Validating Payload...\" />}</> : 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) || supportsListMode ? (\n <FlexGrowRow columnGap={2} rowGap={2} flexWrap=\"wrap\" pb={1}>\n {plugins && plugins.length > 1 ? <EmbedRenderSelect /> : null}\n {supportsListMode ? <ListModeSelectFormControl /> : null}\n </FlexGrowRow>\n ) : null}\n <CardContent sx={{ height: '100%' }}>\n {ActivePlugin ? <ActivePlugin.components.box.detailsBox payload={payload} {...(supportsListMode && { listMode })} /> : null}\n </CardContent>\n </BusyCard>\n )\n}\n","import { FormControl, FormControlProps, InputLabel } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\ninterface EmbedFormControlProps extends FormControlProps {\n formId?: string\n formLabel?: string\n}\n\nexport const EmbedFormControl: React.FC<WithChildren<EmbedFormControlProps>> = ({ formId, formLabel, children, ...props }) => {\n return (\n <FormControl {...props}>\n <InputLabel id={formId}>{formLabel}</InputLabel>\n {children}\n </FormControl>\n )\n}\n","import { MenuItem, Select, SelectProps } from '@mui/material'\nimport { ListMode, useListMode } from '@xyo-network/react-shared'\n\nimport { EmbedFormControl } from './EmbedFormControl'\n\nconst listModeSelectId = 'listmode-select-id'\nconst listModeSelectLabel = 'List Mode'\n\nexport const ListModeSelect: React.FC<SelectProps<ListMode>> = (props) => {\n const { listMode, setListMode } = useListMode()\n\n return (\n <Select<ListMode>\n value={(listMode ?? 'default') as ListMode}\n onChange={(event) => {\n setListMode?.(event.target.value as ListMode)\n }}\n {...props}\n >\n <MenuItem key=\"default\" value=\"default\">\n Default\n </MenuItem>\n <MenuItem key=\"table\" value=\"table\">\n Table\n </MenuItem>\n <MenuItem key=\"grid\" value=\"grid\">\n Grid\n </MenuItem>\n </Select>\n )\n}\n\nexport const ListModeSelectFormControl: React.FC<SelectProps<ListMode>> = (props) => {\n return (\n <EmbedFormControl formId={listModeSelectId} formLabel={listModeSelectLabel}>\n <ListModeSelect size=\"small\" label={listModeSelectLabel} labelId={listModeSelectId} {...props} />\n </EmbedFormControl>\n )\n}\n","import { MenuItem, Select, SelectProps } from '@mui/material'\n\nimport { useEmbedPluginState } from '../../contexts'\nimport { EmbedFormControl } from './EmbedFormControl'\n\nconst renderSelectId = 'render-select-id'\nconst renderSelectLabel = 'Renderer'\n\nexport const EmbedRenderSelect: React.FC<SelectProps> = (props) => {\n const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState()\n return (\n <EmbedFormControl formId={renderSelectId} formLabel={renderSelectLabel}>\n <Select size=\"small\" value={activePlugin?.name} {...props}>\n {plugins?.map((plugin) => (\n <MenuItem value={plugin.name} key={plugin.name} onClick={() => setActivePlugin?.(plugin)}>\n {plugin.name}\n </MenuItem>\n ))}\n </Select>\n </EmbedFormControl>\n )\n}\n","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 */\nexport const EmbedPlugin = EmbedPluginCard\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 ) : (\n <Typography variant=\"caption\" fontSize=\"small\">\n Error Loading Plugin\n </Typography>\n )}\n </Alert>\n )\n}\n"],"mappings":";AACA,SAAS,qBAAqB;;;ACD9B,SAAS,YAAuB;AAChC,SAAS,qBAAqB;AAC9B;AAAA,EACE;AAAA,EAEA;AAAA,OAIK;AAmBH,SAEgD,KAFhD;AAVG,IAAM,WAAkD,CAAC;AAAA,EAC9D;AAAA,EACA,cAAc;AAAA,EACd,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,eAAe,cAAc,MAAM,WAAW;AACpD,SACE,qBAAC,QAAM,GAAG,OACP;AAAA;AAAA,IACA,gBAAgB,cAAc,eAAe,oBAAC,wBAAsB,GAAI,kBAAgD,IAAK;AAAA,IAC7H,gBAAgB,YAAY,eAAe,oBAAC,sBAAoB,GAAI,kBAA8C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C;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;;;ArB1CM,gBAAAE,aAAA;AAbC,IAAM,oBAA0B;AAAA,EACrC,UAAU,CAAC;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAEO,IAAM,WAA+C,CAAC,SAAS;AACpE,SACE,gBAAAA,MAAC,iBACC,0BAAAA,MAAC,sBAAoB,GAAG,MAAM,GAChC;AAEJ;","names":["Chip","jsx","useState","createContextEx","jsx","useState","useContextEx","useContextEx","createContextEx","useEffect","useState","jsx","useState","useEffect","useContextEx","useContextEx","useAsyncEffect","useState","createContextEx","jsx","useState","useAsyncEffect","useContextEx","useContextEx","useState","Fragment","jsx","jsxs","Fragment","jsx","jsxs","useState","Fragment","jsx","jsxs","Chip","useListMode","jsx","jsxs","MenuItem","jsx","jsxs","MenuItem","MenuItem","Select","jsx","Select","MenuItem","jsx","jsxs","useListMode","jsx","Fragment","jsx","jsxs","Alert","Fragment","jsx","jsxs","Alert","jsx","Alert","AlertTitle","Card","CardContent","Fragment","jsx","jsxs","jsx","jsx","jsxs","jsx"]}