@xyo-network/react-embed 2.62.3 → 2.63.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (445) hide show
  1. package/dist/cjs/components/EmbedPlugin.js +19 -0
  2. package/dist/cjs/components/EmbedPlugin.js.map +1 -0
  3. package/dist/cjs/components/EmbedResolver.js +12 -0
  4. package/dist/cjs/components/EmbedResolver.js.map +1 -0
  5. package/dist/cjs/components/controls/EmbedFormControl.js +12 -0
  6. package/dist/cjs/components/controls/EmbedFormControl.js.map +1 -0
  7. package/dist/cjs/components/controls/ListModeSelect.js +21 -0
  8. package/dist/cjs/components/controls/ListModeSelect.js.map +1 -0
  9. package/dist/cjs/components/controls/RenderSelect.js +15 -0
  10. package/dist/cjs/components/controls/RenderSelect.js.map +1 -0
  11. package/dist/cjs/components/controls/index.js +7 -0
  12. package/dist/cjs/components/controls/index.js.map +1 -0
  13. package/dist/cjs/components/embed-card/EmbedCardResolver.js +19 -0
  14. package/dist/cjs/components/embed-card/EmbedCardResolver.js.map +1 -0
  15. package/dist/cjs/components/embed-card/EmbedPluginCard.js +35 -0
  16. package/dist/cjs/components/embed-card/EmbedPluginCard.js.map +1 -0
  17. package/dist/cjs/components/embed-card/card/BusyCard.js +15 -0
  18. package/dist/cjs/components/embed-card/card/BusyCard.js.map +1 -0
  19. package/dist/cjs/components/embed-card/card/EmbedCardHeader.js +21 -0
  20. package/dist/cjs/components/embed-card/card/EmbedCardHeader.js.map +1 -0
  21. package/dist/cjs/components/embed-card/card/EmbedPluginCard.js +23 -0
  22. package/dist/cjs/components/embed-card/card/EmbedPluginCard.js.map +1 -0
  23. package/dist/cjs/components/embed-card/card/index.js +7 -0
  24. package/dist/cjs/components/embed-card/card/index.js.map +1 -0
  25. package/dist/cjs/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +17 -0
  26. package/dist/cjs/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +1 -0
  27. package/dist/cjs/components/embed-card/error-handling/EmbedErrorCard.js +16 -0
  28. package/dist/cjs/components/embed-card/error-handling/EmbedErrorCard.js.map +1 -0
  29. package/dist/cjs/components/embed-card/error-handling/index.js +6 -0
  30. package/dist/cjs/components/embed-card/error-handling/index.js.map +1 -0
  31. package/dist/cjs/components/embed-card/index.js +6 -0
  32. package/dist/cjs/components/embed-card/index.js.map +1 -0
  33. package/dist/cjs/components/embed-card/menu/EmbedMenu.js +23 -0
  34. package/dist/cjs/components/embed-card/menu/EmbedMenu.js.map +1 -0
  35. package/dist/cjs/components/embed-card/menu/JsonMenuItem.js +14 -0
  36. package/dist/cjs/components/embed-card/menu/JsonMenuItem.js.map +1 -0
  37. package/dist/cjs/components/embed-card/menu/index.js +5 -0
  38. package/dist/cjs/components/embed-card/menu/index.js.map +1 -0
  39. package/dist/cjs/components/embed-plugin-stories/storyPayload.js +25 -0
  40. package/dist/cjs/components/embed-plugin-stories/storyPayload.js.map +1 -0
  41. package/dist/cjs/components/embed-plugin-stories/storyShared.js +20 -0
  42. package/dist/cjs/components/embed-plugin-stories/storyShared.js.map +1 -0
  43. package/dist/cjs/components/index.js +6 -0
  44. package/dist/cjs/components/index.js.map +1 -0
  45. package/dist/cjs/components/validation-alerts/ValidatePayload.js +17 -0
  46. package/dist/cjs/components/validation-alerts/ValidatePayload.js.map +1 -0
  47. package/dist/cjs/components/validation-alerts/ValidatePlugins.js +18 -0
  48. package/dist/cjs/components/validation-alerts/ValidatePlugins.js.map +1 -0
  49. package/dist/cjs/components/validation-alerts/index.js +6 -0
  50. package/dist/cjs/components/validation-alerts/index.js.map +1 -0
  51. package/dist/cjs/contexts/EmbedPluginContext/Context.js +6 -0
  52. package/dist/cjs/contexts/EmbedPluginContext/Context.js.map +1 -0
  53. package/dist/cjs/contexts/EmbedPluginContext/Provider.js +24 -0
  54. package/dist/cjs/contexts/EmbedPluginContext/Provider.js.map +1 -0
  55. package/dist/cjs/contexts/EmbedPluginContext/State.js +3 -0
  56. package/dist/cjs/contexts/EmbedPluginContext/State.js.map +1 -0
  57. package/dist/cjs/contexts/EmbedPluginContext/index.js +8 -0
  58. package/dist/cjs/contexts/EmbedPluginContext/index.js.map +1 -0
  59. package/dist/cjs/contexts/EmbedPluginContext/use.js +8 -0
  60. package/dist/cjs/contexts/EmbedPluginContext/use.js.map +1 -0
  61. package/dist/cjs/contexts/RefreshPayloadContext/Context.js +6 -0
  62. package/dist/cjs/contexts/RefreshPayloadContext/Context.js.map +1 -0
  63. package/dist/cjs/contexts/RefreshPayloadContext/Provider.js +12 -0
  64. package/dist/cjs/contexts/RefreshPayloadContext/Provider.js.map +1 -0
  65. package/dist/cjs/contexts/RefreshPayloadContext/State.js +3 -0
  66. package/dist/cjs/contexts/RefreshPayloadContext/State.js.map +1 -0
  67. package/dist/cjs/contexts/RefreshPayloadContext/index.js +7 -0
  68. package/dist/cjs/contexts/RefreshPayloadContext/index.js.map +1 -0
  69. package/dist/cjs/contexts/RefreshPayloadContext/use.js +8 -0
  70. package/dist/cjs/contexts/RefreshPayloadContext/use.js.map +1 -0
  71. package/dist/cjs/contexts/ResolvePayloadContext/Context.js +6 -0
  72. package/dist/cjs/contexts/ResolvePayloadContext/Context.js.map +1 -0
  73. package/dist/cjs/contexts/ResolvePayloadContext/Provider.js +56 -0
  74. package/dist/cjs/contexts/ResolvePayloadContext/Provider.js.map +1 -0
  75. package/dist/cjs/contexts/ResolvePayloadContext/State.js +3 -0
  76. package/dist/cjs/contexts/ResolvePayloadContext/State.js.map +1 -0
  77. package/dist/cjs/contexts/ResolvePayloadContext/index.js +8 -0
  78. package/dist/cjs/contexts/ResolvePayloadContext/index.js.map +1 -0
  79. package/dist/cjs/contexts/ResolvePayloadContext/use.js +8 -0
  80. package/dist/cjs/contexts/ResolvePayloadContext/use.js.map +1 -0
  81. package/dist/cjs/contexts/ValidatePayloadContext/Context.js +6 -0
  82. package/dist/cjs/contexts/ValidatePayloadContext/Context.js.map +1 -0
  83. package/dist/cjs/contexts/ValidatePayloadContext/Provider.js +32 -0
  84. package/dist/cjs/contexts/ValidatePayloadContext/Provider.js.map +1 -0
  85. package/dist/cjs/contexts/ValidatePayloadContext/State.js +3 -0
  86. package/dist/cjs/contexts/ValidatePayloadContext/State.js.map +1 -0
  87. package/dist/cjs/contexts/ValidatePayloadContext/index.js +7 -0
  88. package/dist/cjs/contexts/ValidatePayloadContext/index.js.map +1 -0
  89. package/dist/cjs/contexts/ValidatePayloadContext/use.js +8 -0
  90. package/dist/cjs/contexts/ValidatePayloadContext/use.js.map +1 -0
  91. package/dist/cjs/contexts/index.js +8 -0
  92. package/dist/cjs/contexts/index.js.map +1 -0
  93. package/dist/cjs/index.js +7 -0
  94. package/dist/cjs/index.js.map +1 -0
  95. package/dist/cjs/types/EmbedPluginProps.js +3 -0
  96. package/dist/cjs/types/EmbedPluginProps.js.map +1 -0
  97. package/dist/cjs/types/index.js +5 -0
  98. package/dist/cjs/types/index.js.map +1 -0
  99. package/dist/docs.json +113 -113
  100. package/dist/esm/components/EmbedPlugin.js +15 -0
  101. package/dist/esm/components/EmbedPlugin.js.map +1 -0
  102. package/dist/esm/components/EmbedResolver.js +8 -0
  103. package/dist/esm/components/EmbedResolver.js.map +1 -0
  104. package/dist/esm/components/controls/EmbedFormControl.js +6 -0
  105. package/dist/esm/components/controls/EmbedFormControl.js.map +1 -0
  106. package/dist/esm/components/controls/ListModeSelect.js +16 -0
  107. package/dist/esm/components/controls/ListModeSelect.js.map +1 -0
  108. package/dist/esm/components/controls/RenderSelect.js +11 -0
  109. package/dist/esm/components/controls/RenderSelect.js.map +1 -0
  110. package/dist/{components/controls/index.d.mts → esm/components/controls/index.js} +1 -1
  111. package/dist/esm/components/controls/index.js.map +1 -0
  112. package/dist/esm/components/embed-card/EmbedCardResolver.js +13 -0
  113. package/dist/esm/components/embed-card/EmbedCardResolver.js.map +1 -0
  114. package/dist/esm/components/embed-card/EmbedPluginCard.js +28 -0
  115. package/dist/esm/components/embed-card/EmbedPluginCard.js.map +1 -0
  116. package/dist/esm/components/embed-card/card/BusyCard.js +9 -0
  117. package/dist/esm/components/embed-card/card/BusyCard.js.map +1 -0
  118. package/dist/esm/components/embed-card/card/EmbedCardHeader.js +15 -0
  119. package/dist/esm/components/embed-card/card/EmbedCardHeader.js.map +1 -0
  120. package/dist/esm/components/embed-card/card/EmbedPluginCard.js +16 -0
  121. package/dist/esm/components/embed-card/card/EmbedPluginCard.js.map +1 -0
  122. package/dist/{components/embed-card/card/index.d.mts → esm/components/embed-card/card/index.js} +1 -1
  123. package/dist/esm/components/embed-card/card/index.js.map +1 -0
  124. package/dist/esm/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +10 -0
  125. package/dist/esm/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +1 -0
  126. package/dist/esm/components/embed-card/error-handling/EmbedErrorCard.js +11 -0
  127. package/dist/esm/components/embed-card/error-handling/EmbedErrorCard.js.map +1 -0
  128. package/dist/{components/embed-card/error-handling/index.d.mts → esm/components/embed-card/error-handling/index.js} +1 -1
  129. package/dist/esm/components/embed-card/error-handling/index.js.map +1 -0
  130. package/dist/{components/embed-card/index.d.mts → esm/components/embed-card/index.js} +1 -1
  131. package/dist/esm/components/embed-card/index.js.map +1 -0
  132. package/dist/esm/components/embed-card/menu/EmbedMenu.js +18 -0
  133. package/dist/esm/components/embed-card/menu/EmbedMenu.js.map +1 -0
  134. package/dist/esm/components/embed-card/menu/JsonMenuItem.js +9 -0
  135. package/dist/esm/components/embed-card/menu/JsonMenuItem.js.map +1 -0
  136. package/dist/esm/components/embed-card/menu/index.js +2 -0
  137. package/dist/esm/components/embed-card/menu/index.js.map +1 -0
  138. package/dist/esm/components/embed-plugin-stories/storyPayload.js +22 -0
  139. package/dist/esm/components/embed-plugin-stories/storyPayload.js.map +1 -0
  140. package/dist/esm/components/embed-plugin-stories/storyShared.js +16 -0
  141. package/dist/esm/components/embed-plugin-stories/storyShared.js.map +1 -0
  142. package/dist/{components/index.d.mts → esm/components/index.js} +1 -1
  143. package/dist/esm/components/index.js.map +1 -0
  144. package/dist/esm/components/validation-alerts/ValidatePayload.js +11 -0
  145. package/dist/esm/components/validation-alerts/ValidatePayload.js.map +1 -0
  146. package/dist/esm/components/validation-alerts/ValidatePlugins.js +12 -0
  147. package/dist/esm/components/validation-alerts/ValidatePlugins.js.map +1 -0
  148. package/dist/{components/validation-alerts/index.d.mts → esm/components/validation-alerts/index.js} +1 -1
  149. package/dist/esm/components/validation-alerts/index.js.map +1 -0
  150. package/dist/esm/contexts/EmbedPluginContext/Context.js +3 -0
  151. package/dist/esm/contexts/EmbedPluginContext/Context.js.map +1 -0
  152. package/dist/esm/contexts/EmbedPluginContext/Provider.js +20 -0
  153. package/dist/esm/contexts/EmbedPluginContext/Provider.js.map +1 -0
  154. package/dist/esm/contexts/EmbedPluginContext/State.js +2 -0
  155. package/dist/esm/contexts/EmbedPluginContext/State.js.map +1 -0
  156. package/dist/{contexts/EmbedPluginContext/index.d.mts → esm/contexts/EmbedPluginContext/index.js} +1 -1
  157. package/dist/esm/contexts/EmbedPluginContext/index.js.map +1 -0
  158. package/dist/esm/contexts/EmbedPluginContext/use.js +4 -0
  159. package/dist/esm/contexts/EmbedPluginContext/use.js.map +1 -0
  160. package/dist/esm/contexts/RefreshPayloadContext/Context.js +3 -0
  161. package/dist/esm/contexts/RefreshPayloadContext/Context.js.map +1 -0
  162. package/dist/esm/contexts/RefreshPayloadContext/Provider.js +8 -0
  163. package/dist/esm/contexts/RefreshPayloadContext/Provider.js.map +1 -0
  164. package/dist/esm/contexts/RefreshPayloadContext/State.js +2 -0
  165. package/dist/esm/contexts/RefreshPayloadContext/State.js.map +1 -0
  166. package/dist/{contexts/ValidatePayloadContext/index.d.mts → esm/contexts/RefreshPayloadContext/index.js} +1 -1
  167. package/dist/esm/contexts/RefreshPayloadContext/index.js.map +1 -0
  168. package/dist/esm/contexts/RefreshPayloadContext/use.js +4 -0
  169. package/dist/esm/contexts/RefreshPayloadContext/use.js.map +1 -0
  170. package/dist/esm/contexts/ResolvePayloadContext/Context.js +3 -0
  171. package/dist/esm/contexts/ResolvePayloadContext/Context.js.map +1 -0
  172. package/dist/esm/contexts/ResolvePayloadContext/Provider.js +51 -0
  173. package/dist/esm/contexts/ResolvePayloadContext/Provider.js.map +1 -0
  174. package/dist/esm/contexts/ResolvePayloadContext/State.js +2 -0
  175. package/dist/esm/contexts/ResolvePayloadContext/State.js.map +1 -0
  176. package/dist/{contexts/ResolvePayloadContext/index.d.mts → esm/contexts/ResolvePayloadContext/index.js} +1 -1
  177. package/dist/esm/contexts/ResolvePayloadContext/index.js.map +1 -0
  178. package/dist/esm/contexts/ResolvePayloadContext/use.js +4 -0
  179. package/dist/esm/contexts/ResolvePayloadContext/use.js.map +1 -0
  180. package/dist/esm/contexts/ValidatePayloadContext/Context.js +3 -0
  181. package/dist/esm/contexts/ValidatePayloadContext/Context.js.map +1 -0
  182. package/dist/esm/contexts/ValidatePayloadContext/Provider.js +27 -0
  183. package/dist/esm/contexts/ValidatePayloadContext/Provider.js.map +1 -0
  184. package/dist/esm/contexts/ValidatePayloadContext/State.js +2 -0
  185. package/dist/esm/contexts/ValidatePayloadContext/State.js.map +1 -0
  186. package/dist/{contexts/RefreshPayloadContext/index.d.mts → esm/contexts/ValidatePayloadContext/index.js} +1 -1
  187. package/dist/esm/contexts/ValidatePayloadContext/index.js.map +1 -0
  188. package/dist/esm/contexts/ValidatePayloadContext/use.js +4 -0
  189. package/dist/esm/contexts/ValidatePayloadContext/use.js.map +1 -0
  190. package/dist/{contexts/index.d.mts → esm/contexts/index.js} +1 -1
  191. package/dist/esm/contexts/index.js.map +1 -0
  192. package/dist/{index.d.mts → esm/index.js} +1 -1
  193. package/dist/esm/index.js.map +1 -0
  194. package/dist/esm/types/EmbedPluginProps.js +2 -0
  195. package/dist/esm/types/EmbedPluginProps.js.map +1 -0
  196. package/dist/esm/types/index.js +2 -0
  197. package/dist/esm/types/index.js.map +1 -0
  198. package/dist/types/components/EmbedPlugin.d.ts.map +1 -0
  199. package/dist/types/components/EmbedResolver.d.ts.map +1 -0
  200. package/dist/types/components/controls/EmbedFormControl.d.ts.map +1 -0
  201. package/dist/types/components/controls/ListModeSelect.d.ts.map +1 -0
  202. package/dist/types/components/controls/RenderSelect.d.ts.map +1 -0
  203. package/dist/types/components/controls/index.d.ts.map +1 -0
  204. package/dist/types/components/embed-card/EmbedCardResolver.d.ts.map +1 -0
  205. package/dist/types/components/embed-card/EmbedPluginCard.d.ts.map +1 -0
  206. package/dist/types/components/embed-card/card/BusyCard.d.ts.map +1 -0
  207. package/dist/types/components/embed-card/card/EmbedCardHeader.d.ts.map +1 -0
  208. package/dist/types/components/embed-card/card/EmbedPluginCard.d.ts.map +1 -0
  209. package/dist/types/components/embed-card/card/index.d.ts.map +1 -0
  210. package/dist/types/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts.map +1 -0
  211. package/dist/types/components/embed-card/error-handling/EmbedErrorCard.d.ts.map +1 -0
  212. package/dist/types/components/embed-card/error-handling/index.d.ts.map +1 -0
  213. package/dist/types/components/embed-card/index.d.ts.map +1 -0
  214. package/dist/types/components/embed-card/menu/EmbedMenu.d.ts.map +1 -0
  215. package/dist/types/components/embed-card/menu/JsonMenuItem.d.ts.map +1 -0
  216. package/dist/types/components/embed-card/menu/index.d.ts.map +1 -0
  217. package/dist/types/components/embed-plugin-stories/storyPayload.d.ts.map +1 -0
  218. package/dist/types/components/embed-plugin-stories/storyShared.d.ts.map +1 -0
  219. package/dist/types/components/index.d.ts.map +1 -0
  220. package/dist/types/components/validation-alerts/ValidatePayload.d.ts.map +1 -0
  221. package/dist/types/components/validation-alerts/ValidatePlugins.d.ts.map +1 -0
  222. package/dist/types/components/validation-alerts/index.d.ts.map +1 -0
  223. package/dist/types/contexts/EmbedPluginContext/Context.d.ts.map +1 -0
  224. package/dist/types/contexts/EmbedPluginContext/Provider.d.ts.map +1 -0
  225. package/dist/types/contexts/EmbedPluginContext/State.d.ts.map +1 -0
  226. package/dist/{contexts/ResolvePayloadContext → types/contexts/EmbedPluginContext}/index.d.ts.map +1 -1
  227. package/dist/types/contexts/EmbedPluginContext/use.d.ts.map +1 -0
  228. package/dist/types/contexts/RefreshPayloadContext/Context.d.ts.map +1 -0
  229. package/dist/types/contexts/RefreshPayloadContext/Provider.d.ts.map +1 -0
  230. package/dist/types/contexts/RefreshPayloadContext/State.d.ts.map +1 -0
  231. package/dist/types/contexts/RefreshPayloadContext/index.d.ts.map +1 -0
  232. package/dist/types/contexts/RefreshPayloadContext/use.d.ts.map +1 -0
  233. package/dist/types/contexts/ResolvePayloadContext/Context.d.ts.map +1 -0
  234. package/dist/types/contexts/ResolvePayloadContext/Provider.d.ts.map +1 -0
  235. package/dist/types/contexts/ResolvePayloadContext/State.d.ts.map +1 -0
  236. package/dist/types/contexts/ResolvePayloadContext/index.d.ts.map +1 -0
  237. package/dist/types/contexts/ResolvePayloadContext/use.d.ts.map +1 -0
  238. package/dist/types/contexts/ValidatePayloadContext/Context.d.ts.map +1 -0
  239. package/dist/types/contexts/ValidatePayloadContext/Provider.d.ts.map +1 -0
  240. package/dist/types/contexts/ValidatePayloadContext/State.d.ts.map +1 -0
  241. package/dist/types/contexts/ValidatePayloadContext/index.d.ts.map +1 -0
  242. package/dist/types/contexts/ValidatePayloadContext/use.d.ts.map +1 -0
  243. package/dist/types/contexts/index.d.ts.map +1 -0
  244. package/dist/types/index.d.ts +3 -1
  245. package/dist/types/index.d.ts.map +1 -1
  246. package/dist/types/types/EmbedPluginProps.d.ts.map +1 -0
  247. package/dist/types/types/index.d.ts.map +1 -0
  248. package/package.json +26 -34
  249. package/dist/components/EmbedPlugin.d.mts +0 -5
  250. package/dist/components/EmbedPlugin.d.mts.map +0 -1
  251. package/dist/components/EmbedPlugin.d.ts.map +0 -1
  252. package/dist/components/EmbedResolver.d.mts +0 -4
  253. package/dist/components/EmbedResolver.d.mts.map +0 -1
  254. package/dist/components/EmbedResolver.d.ts.map +0 -1
  255. package/dist/components/controls/EmbedFormControl.d.mts +0 -10
  256. package/dist/components/controls/EmbedFormControl.d.mts.map +0 -1
  257. package/dist/components/controls/EmbedFormControl.d.ts.map +0 -1
  258. package/dist/components/controls/ListModeSelect.d.mts +0 -6
  259. package/dist/components/controls/ListModeSelect.d.mts.map +0 -1
  260. package/dist/components/controls/ListModeSelect.d.ts.map +0 -1
  261. package/dist/components/controls/RenderSelect.d.mts +0 -4
  262. package/dist/components/controls/RenderSelect.d.mts.map +0 -1
  263. package/dist/components/controls/RenderSelect.d.ts.map +0 -1
  264. package/dist/components/controls/index.d.mts.map +0 -1
  265. package/dist/components/controls/index.d.ts.map +0 -1
  266. package/dist/components/embed-card/EmbedCardResolver.d.mts +0 -5
  267. package/dist/components/embed-card/EmbedCardResolver.d.mts.map +0 -1
  268. package/dist/components/embed-card/EmbedCardResolver.d.ts.map +0 -1
  269. package/dist/components/embed-card/EmbedPluginCard.d.mts +0 -11
  270. package/dist/components/embed-card/EmbedPluginCard.d.mts.map +0 -1
  271. package/dist/components/embed-card/EmbedPluginCard.d.ts.map +0 -1
  272. package/dist/components/embed-card/card/BusyCard.d.mts +0 -11
  273. package/dist/components/embed-card/card/BusyCard.d.mts.map +0 -1
  274. package/dist/components/embed-card/card/BusyCard.d.ts.map +0 -1
  275. package/dist/components/embed-card/card/EmbedCardHeader.d.mts +0 -4
  276. package/dist/components/embed-card/card/EmbedCardHeader.d.mts.map +0 -1
  277. package/dist/components/embed-card/card/EmbedCardHeader.d.ts.map +0 -1
  278. package/dist/components/embed-card/card/EmbedPluginCard.d.mts +0 -4
  279. package/dist/components/embed-card/card/EmbedPluginCard.d.mts.map +0 -1
  280. package/dist/components/embed-card/card/EmbedPluginCard.d.ts.map +0 -1
  281. package/dist/components/embed-card/card/index.d.mts.map +0 -1
  282. package/dist/components/embed-card/card/index.d.ts.map +0 -1
  283. package/dist/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.mts +0 -10
  284. package/dist/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.mts.map +0 -1
  285. package/dist/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts.map +0 -1
  286. package/dist/components/embed-card/error-handling/EmbedErrorCard.d.mts +0 -15
  287. package/dist/components/embed-card/error-handling/EmbedErrorCard.d.mts.map +0 -1
  288. package/dist/components/embed-card/error-handling/EmbedErrorCard.d.ts.map +0 -1
  289. package/dist/components/embed-card/error-handling/index.d.mts.map +0 -1
  290. package/dist/components/embed-card/error-handling/index.d.ts.map +0 -1
  291. package/dist/components/embed-card/index.d.mts.map +0 -1
  292. package/dist/components/embed-card/index.d.ts.map +0 -1
  293. package/dist/components/embed-card/menu/EmbedMenu.d.mts +0 -4
  294. package/dist/components/embed-card/menu/EmbedMenu.d.mts.map +0 -1
  295. package/dist/components/embed-card/menu/EmbedMenu.d.ts.map +0 -1
  296. package/dist/components/embed-card/menu/JsonMenuItem.d.mts +0 -4
  297. package/dist/components/embed-card/menu/JsonMenuItem.d.mts.map +0 -1
  298. package/dist/components/embed-card/menu/JsonMenuItem.d.ts.map +0 -1
  299. package/dist/components/embed-card/menu/index.d.mts +0 -2
  300. package/dist/components/embed-card/menu/index.d.mts.map +0 -1
  301. package/dist/components/embed-card/menu/index.d.ts.map +0 -1
  302. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.mts +0 -6
  303. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.mts.map +0 -1
  304. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.ts +0 -6
  305. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.ts.map +0 -1
  306. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.mts +0 -11
  307. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.mts.map +0 -1
  308. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.ts +0 -11
  309. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.ts.map +0 -1
  310. package/dist/components/embed-plugin-stories/storyPayload.d.mts +0 -126
  311. package/dist/components/embed-plugin-stories/storyPayload.d.mts.map +0 -1
  312. package/dist/components/embed-plugin-stories/storyPayload.d.ts.map +0 -1
  313. package/dist/components/embed-plugin-stories/storyShared.d.mts +0 -5
  314. package/dist/components/embed-plugin-stories/storyShared.d.mts.map +0 -1
  315. package/dist/components/embed-plugin-stories/storyShared.d.ts.map +0 -1
  316. package/dist/components/index.d.mts.map +0 -1
  317. package/dist/components/index.d.ts.map +0 -1
  318. package/dist/components/validation-alerts/ValidatePayload.d.mts +0 -5
  319. package/dist/components/validation-alerts/ValidatePayload.d.mts.map +0 -1
  320. package/dist/components/validation-alerts/ValidatePayload.d.ts.map +0 -1
  321. package/dist/components/validation-alerts/ValidatePlugins.d.mts +0 -5
  322. package/dist/components/validation-alerts/ValidatePlugins.d.mts.map +0 -1
  323. package/dist/components/validation-alerts/ValidatePlugins.d.ts.map +0 -1
  324. package/dist/components/validation-alerts/index.d.mts.map +0 -1
  325. package/dist/components/validation-alerts/index.d.ts.map +0 -1
  326. package/dist/contexts/EmbedPluginContext/Context.d.mts +0 -4
  327. package/dist/contexts/EmbedPluginContext/Context.d.mts.map +0 -1
  328. package/dist/contexts/EmbedPluginContext/Context.d.ts.map +0 -1
  329. package/dist/contexts/EmbedPluginContext/Provider.d.mts +0 -7
  330. package/dist/contexts/EmbedPluginContext/Provider.d.mts.map +0 -1
  331. package/dist/contexts/EmbedPluginContext/Provider.d.ts.map +0 -1
  332. package/dist/contexts/EmbedPluginContext/State.d.mts +0 -33
  333. package/dist/contexts/EmbedPluginContext/State.d.mts.map +0 -1
  334. package/dist/contexts/EmbedPluginContext/State.d.ts.map +0 -1
  335. package/dist/contexts/EmbedPluginContext/index.d.mts.map +0 -1
  336. package/dist/contexts/EmbedPluginContext/index.d.ts.map +0 -1
  337. package/dist/contexts/EmbedPluginContext/use.d.mts +0 -2
  338. package/dist/contexts/EmbedPluginContext/use.d.mts.map +0 -1
  339. package/dist/contexts/EmbedPluginContext/use.d.ts.map +0 -1
  340. package/dist/contexts/RefreshPayloadContext/Context.d.mts +0 -4
  341. package/dist/contexts/RefreshPayloadContext/Context.d.mts.map +0 -1
  342. package/dist/contexts/RefreshPayloadContext/Context.d.ts.map +0 -1
  343. package/dist/contexts/RefreshPayloadContext/Provider.d.mts +0 -8
  344. package/dist/contexts/RefreshPayloadContext/Provider.d.mts.map +0 -1
  345. package/dist/contexts/RefreshPayloadContext/Provider.d.ts.map +0 -1
  346. package/dist/contexts/RefreshPayloadContext/State.d.mts +0 -8
  347. package/dist/contexts/RefreshPayloadContext/State.d.mts.map +0 -1
  348. package/dist/contexts/RefreshPayloadContext/State.d.ts.map +0 -1
  349. package/dist/contexts/RefreshPayloadContext/index.d.mts.map +0 -1
  350. package/dist/contexts/RefreshPayloadContext/index.d.ts.map +0 -1
  351. package/dist/contexts/RefreshPayloadContext/use.d.mts +0 -2
  352. package/dist/contexts/RefreshPayloadContext/use.d.mts.map +0 -1
  353. package/dist/contexts/RefreshPayloadContext/use.d.ts.map +0 -1
  354. package/dist/contexts/ResolvePayloadContext/Context.d.mts +0 -4
  355. package/dist/contexts/ResolvePayloadContext/Context.d.mts.map +0 -1
  356. package/dist/contexts/ResolvePayloadContext/Context.d.ts.map +0 -1
  357. package/dist/contexts/ResolvePayloadContext/Provider.d.mts +0 -6
  358. package/dist/contexts/ResolvePayloadContext/Provider.d.mts.map +0 -1
  359. package/dist/contexts/ResolvePayloadContext/Provider.d.ts.map +0 -1
  360. package/dist/contexts/ResolvePayloadContext/State.d.mts +0 -13
  361. package/dist/contexts/ResolvePayloadContext/State.d.mts.map +0 -1
  362. package/dist/contexts/ResolvePayloadContext/State.d.ts.map +0 -1
  363. package/dist/contexts/ResolvePayloadContext/index.d.mts.map +0 -1
  364. package/dist/contexts/ResolvePayloadContext/use.d.mts +0 -2
  365. package/dist/contexts/ResolvePayloadContext/use.d.mts.map +0 -1
  366. package/dist/contexts/ResolvePayloadContext/use.d.ts.map +0 -1
  367. package/dist/contexts/ValidatePayloadContext/Context.d.mts +0 -4
  368. package/dist/contexts/ValidatePayloadContext/Context.d.mts.map +0 -1
  369. package/dist/contexts/ValidatePayloadContext/Context.d.ts.map +0 -1
  370. package/dist/contexts/ValidatePayloadContext/Provider.d.mts +0 -7
  371. package/dist/contexts/ValidatePayloadContext/Provider.d.mts.map +0 -1
  372. package/dist/contexts/ValidatePayloadContext/Provider.d.ts.map +0 -1
  373. package/dist/contexts/ValidatePayloadContext/Provider.stories.d.mts +0 -15
  374. package/dist/contexts/ValidatePayloadContext/Provider.stories.d.mts.map +0 -1
  375. package/dist/contexts/ValidatePayloadContext/Provider.stories.d.ts +0 -15
  376. package/dist/contexts/ValidatePayloadContext/Provider.stories.d.ts.map +0 -1
  377. package/dist/contexts/ValidatePayloadContext/State.d.mts +0 -7
  378. package/dist/contexts/ValidatePayloadContext/State.d.mts.map +0 -1
  379. package/dist/contexts/ValidatePayloadContext/State.d.ts.map +0 -1
  380. package/dist/contexts/ValidatePayloadContext/index.d.mts.map +0 -1
  381. package/dist/contexts/ValidatePayloadContext/index.d.ts.map +0 -1
  382. package/dist/contexts/ValidatePayloadContext/use.d.mts +0 -2
  383. package/dist/contexts/ValidatePayloadContext/use.d.mts.map +0 -1
  384. package/dist/contexts/ValidatePayloadContext/use.d.ts.map +0 -1
  385. package/dist/contexts/index.d.mts.map +0 -1
  386. package/dist/contexts/index.d.ts.map +0 -1
  387. package/dist/index.d.mts.map +0 -1
  388. package/dist/index.d.ts +0 -4
  389. package/dist/index.d.ts.map +0 -1
  390. package/dist/index.js +0 -543
  391. package/dist/index.js.map +0 -1
  392. package/dist/index.mjs +0 -493
  393. package/dist/index.mjs.map +0 -1
  394. package/dist/types/EmbedPluginProps.d.mts +0 -10
  395. package/dist/types/EmbedPluginProps.d.mts.map +0 -1
  396. package/dist/types/EmbedPluginProps.d.ts.map +0 -1
  397. package/dist/types/index.d.mts.map +0 -1
  398. /package/dist/{components → types/components}/EmbedPlugin.d.ts +0 -0
  399. /package/dist/{components → types/components}/EmbedResolver.d.ts +0 -0
  400. /package/dist/{components → types/components}/controls/EmbedFormControl.d.ts +0 -0
  401. /package/dist/{components → types/components}/controls/ListModeSelect.d.ts +0 -0
  402. /package/dist/{components → types/components}/controls/RenderSelect.d.ts +0 -0
  403. /package/dist/{components → types/components}/controls/index.d.ts +0 -0
  404. /package/dist/{components → types/components}/embed-card/EmbedCardResolver.d.ts +0 -0
  405. /package/dist/{components → types/components}/embed-card/EmbedPluginCard.d.ts +0 -0
  406. /package/dist/{components → types/components}/embed-card/card/BusyCard.d.ts +0 -0
  407. /package/dist/{components → types/components}/embed-card/card/EmbedCardHeader.d.ts +0 -0
  408. /package/dist/{components → types/components}/embed-card/card/EmbedPluginCard.d.ts +0 -0
  409. /package/dist/{components → types/components}/embed-card/card/index.d.ts +0 -0
  410. /package/dist/{components → types/components}/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts +0 -0
  411. /package/dist/{components → types/components}/embed-card/error-handling/EmbedErrorCard.d.ts +0 -0
  412. /package/dist/{components → types/components}/embed-card/error-handling/index.d.ts +0 -0
  413. /package/dist/{components → types/components}/embed-card/index.d.ts +0 -0
  414. /package/dist/{components → types/components}/embed-card/menu/EmbedMenu.d.ts +0 -0
  415. /package/dist/{components → types/components}/embed-card/menu/JsonMenuItem.d.ts +0 -0
  416. /package/dist/{components → types/components}/embed-card/menu/index.d.ts +0 -0
  417. /package/dist/{components → types/components}/embed-plugin-stories/storyPayload.d.ts +0 -0
  418. /package/dist/{components → types/components}/embed-plugin-stories/storyShared.d.ts +0 -0
  419. /package/dist/{components → types/components}/index.d.ts +0 -0
  420. /package/dist/{components → types/components}/validation-alerts/ValidatePayload.d.ts +0 -0
  421. /package/dist/{components → types/components}/validation-alerts/ValidatePlugins.d.ts +0 -0
  422. /package/dist/{components → types/components}/validation-alerts/index.d.ts +0 -0
  423. /package/dist/{contexts → types/contexts}/EmbedPluginContext/Context.d.ts +0 -0
  424. /package/dist/{contexts → types/contexts}/EmbedPluginContext/Provider.d.ts +0 -0
  425. /package/dist/{contexts → types/contexts}/EmbedPluginContext/State.d.ts +0 -0
  426. /package/dist/{contexts → types/contexts}/EmbedPluginContext/index.d.ts +0 -0
  427. /package/dist/{contexts → types/contexts}/EmbedPluginContext/use.d.ts +0 -0
  428. /package/dist/{contexts → types/contexts}/RefreshPayloadContext/Context.d.ts +0 -0
  429. /package/dist/{contexts → types/contexts}/RefreshPayloadContext/Provider.d.ts +0 -0
  430. /package/dist/{contexts → types/contexts}/RefreshPayloadContext/State.d.ts +0 -0
  431. /package/dist/{contexts → types/contexts}/RefreshPayloadContext/index.d.ts +0 -0
  432. /package/dist/{contexts → types/contexts}/RefreshPayloadContext/use.d.ts +0 -0
  433. /package/dist/{contexts → types/contexts}/ResolvePayloadContext/Context.d.ts +0 -0
  434. /package/dist/{contexts → types/contexts}/ResolvePayloadContext/Provider.d.ts +0 -0
  435. /package/dist/{contexts → types/contexts}/ResolvePayloadContext/State.d.ts +0 -0
  436. /package/dist/{contexts → types/contexts}/ResolvePayloadContext/index.d.ts +0 -0
  437. /package/dist/{contexts → types/contexts}/ResolvePayloadContext/use.d.ts +0 -0
  438. /package/dist/{contexts → types/contexts}/ValidatePayloadContext/Context.d.ts +0 -0
  439. /package/dist/{contexts → types/contexts}/ValidatePayloadContext/Provider.d.ts +0 -0
  440. /package/dist/{contexts → types/contexts}/ValidatePayloadContext/State.d.ts +0 -0
  441. /package/dist/{contexts → types/contexts}/ValidatePayloadContext/index.d.ts +0 -0
  442. /package/dist/{contexts → types/contexts}/ValidatePayloadContext/use.d.ts +0 -0
  443. /package/dist/{contexts → types/contexts}/index.d.ts +0 -0
  444. /package/dist/types/{EmbedPluginProps.d.ts → types/EmbedPluginProps.d.ts} +0 -0
  445. /package/dist/types/{index.d.mts → types/index.d.ts} +0 -0
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmbedPluginInner = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_shared_1 = require("@xyo-network/react-shared");
6
+ const contexts_1 = require("../contexts");
7
+ const EmbedResolver_1 = require("./EmbedResolver");
8
+ const validation_alerts_1 = require("./validation-alerts");
9
+ const EmbedPluginInner = ({ validateSchema, plugins = [], huriPayload, refreshTitle = '', timestampLabel = 'Data From', hideElementsConfig, embedPluginConfig, onRefresh, children, }) => {
10
+ return ((0, jsx_runtime_1.jsx)(react_shared_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(contexts_1.EmbedPluginProvider, Object.assign({ refreshTitle: refreshTitle, timestampLabel: timestampLabel, hideElementsConfig: hideElementsConfig, plugins: plugins, embedPluginConfig: embedPluginConfig }, { children: (0, jsx_runtime_1.jsx)(WithResolvers, Object.assign({ onRefresh: onRefresh, huriPayload: huriPayload }, { children: (0, jsx_runtime_1.jsx)(WithValidators, Object.assign({ validateSchema: validateSchema }, { children: (0, jsx_runtime_1.jsx)(react_shared_1.ListModeProvider, Object.assign({ defaultListMode: embedPluginConfig === null || embedPluginConfig === void 0 ? void 0 : embedPluginConfig.listMode }, { children: children })) })) })) })) }));
11
+ };
12
+ exports.EmbedPluginInner = EmbedPluginInner;
13
+ const WithResolvers = ({ children, onRefresh, huriPayload }) => {
14
+ return ((0, jsx_runtime_1.jsx)(contexts_1.RefreshPayloadProvider, Object.assign({ onRefresh: onRefresh }, { children: (0, jsx_runtime_1.jsx)(contexts_1.ResolvePayloadProvider, Object.assign({ huriPayload: huriPayload }, { children: (0, jsx_runtime_1.jsx)(EmbedResolver_1.EmbedResolver, { children: children }) })) })));
15
+ };
16
+ const WithValidators = ({ children, validateSchema }) => {
17
+ return ((0, jsx_runtime_1.jsx)(contexts_1.ValidatePayloadProvider, Object.assign({ enabled: validateSchema }, { children: (0, jsx_runtime_1.jsx)(validation_alerts_1.ValidatePluginsAlert, { children: (0, jsx_runtime_1.jsx)(validation_alerts_1.ValidatePayloadAlert, { children: children }) }) })));
18
+ };
19
+ //# sourceMappingURL=EmbedPlugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbedPlugin.js","sourceRoot":"","sources":["../../../src/components/EmbedPlugin.tsx"],"names":[],"mappings":";;;;AAEA,4DAA2E;AAE3E,0CAA0H;AAE1H,mDAA+C;AAC/C,2DAAgF;AAEzE,MAAM,gBAAgB,GAA6C,CAAC,EACzE,cAAc,EACd,OAAO,GAAG,EAAE,EACZ,WAAW,EACX,YAAY,GAAG,EAAE,EACjB,cAAc,GAAG,WAAW,EAC5B,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,EACT,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,CACL,uBAAC,4BAAa,cACZ,uBAAC,8BAAmB,kBAClB,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAE,iBAAiB,gBAEpC,uBAAC,aAAa,kBAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,gBAC3D,uBAAC,cAAc,kBAAC,cAAc,EAAE,cAAc,gBAC5C,uBAAC,+BAAgB,kBAAC,eAAe,EAAE,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,QAAQ,gBAAG,QAAQ,IAAoB,IAC9E,IACH,IACI,GACR,CACjB,CAAA;AACH,CAAC,CAAA;AA5BY,QAAA,gBAAgB,oBA4B5B;AAID,MAAM,aAAa,GAA+C,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,EAAE;IACzG,OAAO,CACL,uBAAC,iCAAsB,kBAAC,SAAS,EAAE,SAAS,gBAC1C,uBAAC,iCAAsB,kBAAC,WAAW,EAAE,WAAW,gBAC9C,uBAAC,6BAAa,cAAE,QAAQ,GAAiB,IAClB,IACF,CAC1B,CAAA;AACH,CAAC,CAAA;AAED,MAAM,cAAc,GAAyD,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,EAAE;IAC5G,OAAO,CACL,uBAAC,kCAAuB,kBAAC,OAAO,EAAE,cAAc,gBAC9C,uBAAC,wCAAoB,cACnB,uBAAC,wCAAoB,cAAE,QAAQ,GAAwB,GAClC,IACC,CAC3B,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmbedResolver = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_shared_1 = require("@xyo-network/react-shared");
6
+ const contexts_1 = require("../contexts");
7
+ const EmbedResolver = ({ children }) => {
8
+ const { payload, notFound, huriError } = (0, contexts_1.useResolvePayload)();
9
+ return ((0, jsx_runtime_1.jsx)(react_shared_1.LoadResult, Object.assign({ searchResult: payload, notFound: !!notFound, error: !!huriError }, { children: children })));
10
+ };
11
+ exports.EmbedResolver = EmbedResolver;
12
+ //# sourceMappingURL=EmbedResolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbedResolver.js","sourceRoot":"","sources":["../../../src/components/EmbedResolver.tsx"],"names":[],"mappings":";;;;AACA,4DAAsD;AAEtD,0CAA+C;AAExC,MAAM,aAAa,GAA2B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IAE5D,OAAO,CACL,uBAAC,yBAAU,kBAAC,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,SAAS,gBACxE,QAAQ,IACE,CACd,CAAA;AACH,CAAC,CAAA;AARY,QAAA,aAAa,iBAQzB"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmbedFormControl = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const material_1 = require("@mui/material");
7
+ const EmbedFormControl = (_a) => {
8
+ var { formId, formLabel, children } = _a, props = tslib_1.__rest(_a, ["formId", "formLabel", "children"]);
9
+ return ((0, jsx_runtime_1.jsxs)(material_1.FormControl, Object.assign({}, props, { children: [(0, jsx_runtime_1.jsx)(material_1.InputLabel, Object.assign({ id: formId }, { children: formLabel })), children] })));
10
+ };
11
+ exports.EmbedFormControl = EmbedFormControl;
12
+ //# sourceMappingURL=EmbedFormControl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbedFormControl.js","sourceRoot":"","sources":["../../../../src/components/controls/EmbedFormControl.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAyE;AAQlE,MAAM,gBAAgB,GAAkD,CAAC,EAAyC,EAAE,EAAE;QAA7C,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAAvC,mCAAyC,CAAF;IACrH,OAAO,CACL,wBAAC,sBAAW,oBAAK,KAAK,eACpB,uBAAC,qBAAU,kBAAC,EAAE,EAAE,MAAM,gBAAG,SAAS,IAAc,EAC/C,QAAQ,KACG,CACf,CAAA;AACH,CAAC,CAAA;AAPY,QAAA,gBAAgB,oBAO5B"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListModeSelectFormControl = exports.ListModeSelect = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const material_1 = require("@mui/material");
6
+ const react_shared_1 = require("@xyo-network/react-shared");
7
+ const EmbedFormControl_1 = require("./EmbedFormControl");
8
+ const listModeSelectId = 'listmode-select-id';
9
+ const listModeSelectLabel = 'List Mode';
10
+ const ListModeSelect = (props) => {
11
+ const { listMode, setListMode } = (0, react_shared_1.useListMode)();
12
+ return ((0, jsx_runtime_1.jsxs)(material_1.Select, Object.assign({ value: (listMode !== null && listMode !== void 0 ? listMode : 'default'), onChange: (event) => {
13
+ setListMode === null || setListMode === void 0 ? void 0 : setListMode(event.target.value);
14
+ } }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ value: "default" }, { children: "Default" }), "default"), (0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ value: "table" }, { children: "Table" }), "table"), (0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ value: "grid" }, { children: "Grid" }), "grid")] })));
15
+ };
16
+ exports.ListModeSelect = ListModeSelect;
17
+ const ListModeSelectFormControl = (props) => {
18
+ return ((0, jsx_runtime_1.jsx)(EmbedFormControl_1.EmbedFormControl, Object.assign({ formId: listModeSelectId, formLabel: listModeSelectLabel }, { children: (0, jsx_runtime_1.jsx)(exports.ListModeSelect, Object.assign({ size: "small", label: listModeSelectLabel, labelId: listModeSelectId }, props)) })));
19
+ };
20
+ exports.ListModeSelectFormControl = ListModeSelectFormControl;
21
+ //# sourceMappingURL=ListModeSelect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListModeSelect.js","sourceRoot":"","sources":["../../../../src/components/controls/ListModeSelect.tsx"],"names":[],"mappings":";;;;AAAA,4CAA6D;AAC7D,4DAAiE;AAEjE,yDAAqD;AAErD,MAAM,gBAAgB,GAAG,oBAAoB,CAAA;AAC7C,MAAM,mBAAmB,GAAG,WAAW,CAAA;AAEhC,MAAM,cAAc,GAAoC,CAAC,KAAK,EAAE,EAAE;IACvE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,IAAA,0BAAW,GAAE,CAAA;IAE/C,OAAO,CACL,wBAAC,iBAAM,kBACL,KAAK,EAAE,CAAC,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,SAAS,CAAa,EAC1C,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAG,KAAK,CAAC,MAAM,CAAC,KAAiB,CAAC,CAAA;QAC/C,CAAC,IACG,KAAK,eAET,uBAAC,mBAAQ,kBAAe,KAAK,EAAC,SAAS,8BAAzB,SAAS,CAEZ,EACX,uBAAC,mBAAQ,kBAAa,KAAK,EAAC,OAAO,4BAArB,OAAO,CAEV,EACX,uBAAC,mBAAQ,kBAAY,KAAK,EAAC,MAAM,2BAAnB,MAAM,CAET,KACJ,CACV,CAAA;AACH,CAAC,CAAA;AAtBY,QAAA,cAAc,kBAsB1B;AAEM,MAAM,yBAAyB,GAAoC,CAAC,KAAK,EAAE,EAAE;IAClF,OAAO,CACL,uBAAC,mCAAgB,kBAAC,MAAM,EAAE,gBAAgB,EAAE,SAAS,EAAE,mBAAmB,gBACxE,uBAAC,sBAAc,kBAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,gBAAgB,IAAM,KAAK,EAAI,IAChF,CACpB,CAAA;AACH,CAAC,CAAA;AANY,QAAA,yBAAyB,6BAMrC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmbedRenderSelect = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const material_1 = require("@mui/material");
6
+ const contexts_1 = require("../../contexts");
7
+ const EmbedFormControl_1 = require("./EmbedFormControl");
8
+ const renderSelectId = 'render-select-id';
9
+ const renderSelectLabel = 'Renderer';
10
+ const EmbedRenderSelect = (props) => {
11
+ const { activePlugin, setActivePlugin, plugins } = (0, contexts_1.useEmbedPluginState)();
12
+ return ((0, jsx_runtime_1.jsx)(EmbedFormControl_1.EmbedFormControl, Object.assign({ formId: renderSelectId, formLabel: renderSelectLabel }, { children: (0, jsx_runtime_1.jsx)(material_1.Select, Object.assign({ size: "small", value: activePlugin === null || activePlugin === void 0 ? void 0 : activePlugin.name }, props, { children: plugins === null || plugins === void 0 ? void 0 : plugins.map((plugin) => ((0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ value: plugin.name, onClick: () => setActivePlugin === null || setActivePlugin === void 0 ? void 0 : setActivePlugin(plugin) }, { children: plugin.name }), plugin.name))) })) })));
13
+ };
14
+ exports.EmbedRenderSelect = EmbedRenderSelect;
15
+ //# sourceMappingURL=RenderSelect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderSelect.js","sourceRoot":"","sources":["../../../../src/components/controls/RenderSelect.tsx"],"names":[],"mappings":";;;;AAAA,4CAA6D;AAE7D,6CAAoD;AACpD,yDAAqD;AAErD,MAAM,cAAc,GAAG,kBAAkB,CAAA;AACzC,MAAM,iBAAiB,GAAG,UAAU,CAAA;AAE7B,MAAM,iBAAiB,GAA0B,CAAC,KAAK,EAAE,EAAE;IAChE,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,IAAA,8BAAmB,GAAE,CAAA;IACxE,OAAO,CACL,uBAAC,mCAAgB,kBAAC,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,iBAAiB,gBACpE,uBAAC,iBAAM,kBAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI,IAAM,KAAK,cACtD,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACxB,uBAAC,mBAAQ,kBAAC,KAAK,EAAE,MAAM,CAAC,IAAI,EAAoB,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAG,MAAM,CAAC,gBACrF,MAAM,CAAC,IAAI,KADqB,MAAM,CAAC,IAAI,CAEnC,CACZ,CAAC,IACK,IACQ,CACpB,CAAA;AACH,CAAC,CAAA;AAbY,QAAA,iBAAiB,qBAa7B"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./EmbedFormControl"), exports);
5
+ tslib_1.__exportStar(require("./ListModeSelect"), exports);
6
+ tslib_1.__exportStar(require("./RenderSelect"), exports);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/controls/index.ts"],"names":[],"mappings":";;;AAAA,6DAAkC;AAClC,2DAAgC;AAChC,yDAA8B"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmbedCardResolverFlexBox = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const material_1 = require("@mui/material");
7
+ const react_flexbox_1 = require("@xylabs/react-flexbox");
8
+ const react_shared_1 = require("@xyo-network/react-shared");
9
+ const contexts_1 = require("../../contexts");
10
+ const error_handling_1 = require("./error-handling");
11
+ const EmbedCardResolverFlexBox = (_a) => {
12
+ var { children } = _a, props = tslib_1.__rest(_a, ["children"]);
13
+ const { payload, notFound, huriError } = (0, contexts_1.useResolvePayload)();
14
+ const { refreshPayload } = (0, contexts_1.useRefreshPayload)();
15
+ const theme = (0, material_1.useTheme)();
16
+ return ((0, jsx_runtime_1.jsx)(react_shared_1.LoadResult, Object.assign({ searchResult: payload, notFound: !!notFound, error: !!huriError }, { children: (0, jsx_runtime_1.jsx)(error_handling_1.EmbedCardApiErrorRenderer, Object.assign({ xyoError: huriError }, { children: (0, jsx_runtime_1.jsx)(react_flexbox_1.FlexCol, Object.assign({ id: "embed-outer-wrap", alignItems: "stretch", justifyContent: "start", busy: Boolean(!refreshPayload && payload), busyCircularProps: { style: { alignItems: 'start', paddingTop: theme.spacing(2), zIndex: 2 } } }, props, { children: children })) })) })));
17
+ };
18
+ exports.EmbedCardResolverFlexBox = EmbedCardResolverFlexBox;
19
+ //# sourceMappingURL=EmbedCardResolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbedCardResolver.js","sourceRoot":"","sources":["../../../../src/components/embed-card/EmbedCardResolver.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAwC;AACxC,yDAA6D;AAE7D,4DAAsD;AAEtD,6CAAqE;AACrE,qDAA4D;AAErD,MAAM,wBAAwB,GAAyC,CAAC,EAAsB,EAAE,EAAE;QAA1B,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAApB,YAAsB,CAAF;IACjG,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IAC5D,MAAM,EAAE,cAAc,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IAC9C,MAAM,KAAK,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAExB,OAAO,CACL,uBAAC,yBAAU,kBAAC,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,SAAS,gBACzE,uBAAC,0CAAyB,kBAAC,QAAQ,EAAE,SAAS,gBAC5C,uBAAC,uBAAO,kBACN,EAAE,EAAC,kBAAkB,EACrB,UAAU,EAAC,SAAS,EACpB,cAAc,EAAC,OAAO,EACtB,IAAI,EAAE,OAAO,CAAC,CAAC,cAAc,IAAI,OAAO,CAAC,EACzC,iBAAiB,EAAE,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,IAC1F,KAAK,cAER,QAAQ,IACD,IACgB,IACjB,CACd,CAAA;AACH,CAAC,CAAA;AArBY,QAAA,wBAAwB,4BAqBpC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmbedPlugin = exports.EmbedPluginCardInner = exports.ApiEmbedPluginCard = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const material_1 = require("@mui/material");
7
+ const contexts_1 = require("../../contexts");
8
+ const EmbedPlugin_1 = require("../EmbedPlugin");
9
+ const card_1 = require("./card");
10
+ const error_handling_1 = require("./error-handling");
11
+ const ApiEmbedPluginCard = (_a) => {
12
+ var { children } = _a, props = tslib_1.__rest(_a, ["children"]);
13
+ const { validateSchema, plugins = [], huriPayload, refreshTitle = '', timestampLabel = 'Data From', hideElementsConfig, embedPluginConfig, onRefresh } = props, busyCardProps = tslib_1.__rest(props, ["validateSchema", "plugins", "huriPayload", "refreshTitle", "timestampLabel", "hideElementsConfig", "embedPluginConfig", "onRefresh"]);
14
+ return ((0, jsx_runtime_1.jsxs)(EmbedPlugin_1.EmbedPluginInner, Object.assign({}, {
15
+ embedPluginConfig,
16
+ hideElementsConfig,
17
+ huriPayload,
18
+ onRefresh,
19
+ plugins,
20
+ refreshTitle,
21
+ timestampLabel,
22
+ validateSchema,
23
+ }, { children: [(0, jsx_runtime_1.jsx)(exports.EmbedPluginCardInner, Object.assign({}, busyCardProps)), children] })));
24
+ };
25
+ exports.ApiEmbedPluginCard = ApiEmbedPluginCard;
26
+ const EmbedPluginCardInner = (props) => {
27
+ const { payload, huriError } = (0, contexts_1.useResolvePayload)();
28
+ const { refreshPayload } = (0, contexts_1.useRefreshPayload)();
29
+ const theme = (0, material_1.useTheme)();
30
+ return ((0, jsx_runtime_1.jsx)(error_handling_1.EmbedCardApiErrorRenderer, Object.assign({ xyoError: huriError }, { children: (0, jsx_runtime_1.jsx)(card_1.EmbedPluginCard, Object.assign({ elevation: 3, variant: "elevation", busy: Boolean(!refreshPayload && payload), busyVariantProps: { style: { alignItems: 'start', paddingTop: theme.spacing(2), zIndex: 2 } }, sx: { position: 'relative' } }, props)) })));
31
+ };
32
+ exports.EmbedPluginCardInner = EmbedPluginCardInner;
33
+ /** @deprecated - use EmbedPluginCard and use CardProps instead of FlexBoxProps */
34
+ exports.EmbedPlugin = card_1.EmbedPluginCard;
35
+ //# sourceMappingURL=EmbedPluginCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbedPluginCard.js","sourceRoot":"","sources":["../../../../src/components/embed-card/EmbedPluginCard.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAwC;AAGxC,6CAAqE;AAErE,gDAAiD;AACjD,iCAAuD;AACvD,qDAA4D;AAIrD,MAAM,kBAAkB,GAAmC,CAAC,EAAsB,EAAE,EAAE;QAA1B,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAApB,YAAsB,CAAF;IACrF,MAAM,EACJ,cAAc,EACd,OAAO,GAAG,EAAE,EACZ,WAAW,EACX,YAAY,GAAG,EAAE,EACjB,cAAc,GAAG,WAAW,EAC5B,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,KAEP,KAAK,EADJ,aAAa,kBACd,KAAK,EAVH,sIAUL,CAAQ,CAAA;IAET,OAAO,CACL,wBAAC,8BAAgB,oBACX;QACF,iBAAiB;QACjB,kBAAkB;QAClB,WAAW;QACX,SAAS;QACT,OAAO;QACP,YAAY;QACZ,cAAc;QACd,cAAc;KACf,eAED,uBAAC,4BAAoB,oBAAK,aAAa,EAAI,EAC1C,QAAQ,KACQ,CACpB,CAAA;AACH,CAAC,CAAA;AA9BY,QAAA,kBAAkB,sBA8B9B;AAEM,MAAM,oBAAoB,GAA4B,CAAC,KAAK,EAAE,EAAE;IACrE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IAClD,MAAM,EAAE,cAAc,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IAC9C,MAAM,KAAK,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAExB,OAAO,CACL,uBAAC,0CAAyB,kBAAC,QAAQ,EAAE,SAAS,gBAC5C,uBAAC,sBAAe,kBACd,SAAS,EAAE,CAAC,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAE,OAAO,CAAC,CAAC,cAAc,IAAI,OAAO,CAAC,EACzC,gBAAgB,EAAE,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,EAC7F,EAAE,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,IACxB,KAAK,EACT,IACwB,CAC7B,CAAA;AACH,CAAC,CAAA;AAjBY,QAAA,oBAAoB,wBAiBhC;AAED,kFAAkF;AACrE,QAAA,WAAW,GAAG,sBAAe,CAAA"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BusyCard = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const material_1 = require("@mui/material");
7
+ const react_flexbox_1 = require("@xylabs/react-flexbox");
8
+ const react_shared_1 = require("@xylabs/react-shared");
9
+ const BusyCard = (_a) => {
10
+ var { busy, busyMinimum = 500, busyVariant = 'circular', busyVariantProps, children } = _a, props = tslib_1.__rest(_a, ["busy", "busyMinimum", "busyVariant", "busyVariantProps", "children"]);
11
+ const internalBusy = (0, react_flexbox_1.useBusyTiming)(busy, busyMinimum);
12
+ return ((0, jsx_runtime_1.jsxs)(material_1.Card, Object.assign({}, props, { children: [children, busyVariant === 'circular' && internalBusy ? (0, jsx_runtime_1.jsx)(react_shared_1.BusyCircularProgress, Object.assign({}, busyVariantProps)) : null, busyVariant === 'linear' && internalBusy ? (0, jsx_runtime_1.jsx)(react_shared_1.BusyLinearProgress, Object.assign({}, busyVariantProps)) : null] })));
13
+ };
14
+ exports.BusyCard = BusyCard;
15
+ //# sourceMappingURL=BusyCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BusyCard.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/BusyCard.tsx"],"names":[],"mappings":";;;;;AAAA,4CAA+C;AAC/C,yDAAqD;AACrD,uDAO6B;AAStB,MAAM,QAAQ,GAA0C,CAAC,EAO/D,EAAE,EAAE;QAP2D,EAC9D,IAAI,EACJ,WAAW,GAAG,GAAG,EACjB,WAAW,GAAG,UAAU,EACxB,gBAAgB,EAChB,QAAQ,OAET,EADI,KAAK,sBANsD,sEAO/D,CADS;IAER,MAAM,YAAY,GAAG,IAAA,6BAAa,EAAC,IAAI,EAAE,WAAW,CAAC,CAAA;IACrD,OAAO,CACL,wBAAC,eAAI,oBAAK,KAAK,eACZ,QAAQ,EACR,WAAW,KAAK,UAAU,IAAI,YAAY,CAAC,CAAC,CAAC,uBAAC,mCAAoB,oBAAM,gBAA8C,EAAI,CAAC,CAAC,CAAC,IAAI,EACjI,WAAW,KAAK,QAAQ,IAAI,YAAY,CAAC,CAAC,CAAC,uBAAC,iCAAkB,oBAAM,gBAA4C,EAAI,CAAC,CAAC,CAAC,IAAI,KACvH,CACR,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,QAAQ,YAgBpB"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmbedCardHeader = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const Refresh_1 = tslib_1.__importDefault(require("@mui/icons-material/Refresh"));
7
+ const material_1 = require("@mui/material");
8
+ const react_flexbox_1 = require("@xylabs/react-flexbox");
9
+ const contexts_1 = require("../../../contexts");
10
+ const menu_1 = require("../menu");
11
+ const EmbedCardHeader = () => {
12
+ var _a;
13
+ const { refreshHuri, huri } = (0, contexts_1.useResolvePayload)();
14
+ const { activePlugin, timestampLabel, hideElementsConfig } = (0, contexts_1.useEmbedPluginState)();
15
+ const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig !== null && hideElementsConfig !== void 0 ? hideElementsConfig : {};
16
+ //this is temporary so that we can add the ability to get a timestamp via diviner later
17
+ const timestamp = Date.now();
18
+ return ((0, jsx_runtime_1.jsx)(material_1.CardHeader, { sx: { flexWrap: 'wrap', rowGap: 1 }, avatar: hideAvatar ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})) : ((0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ sx: { bgcolor: (theme) => theme.palette.primary.main }, "aria-label": activePlugin === null || activePlugin === void 0 ? void 0 : activePlugin.name }, { children: (_a = activePlugin === null || activePlugin === void 0 ? void 0 : activePlugin.name) === null || _a === void 0 ? void 0 : _a.charAt(0) }))), action: (0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexRow, Object.assign({ flexWrap: "wrap", columnGap: 0.5 }, { children: [timestamp ? (hideTimestamp && hideRefreshButton ? ('') : ((0, jsx_runtime_1.jsx)(material_1.Chip, { avatar: hideRefreshButton ? (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}) : (0, jsx_runtime_1.jsx)(Refresh_1.default, {}), clickable: hideRefreshButton ? false : true, onClick: refreshHuri, label: hideTimestamp ? '' : `${timestampLabel} ${new Date(timestamp).toLocaleString()}` }))) : null, hideCardActions || huri === undefined ? null : (0, jsx_runtime_1.jsx)(menu_1.EmbedMenu, {})] })), title: hideTitle ? '' : activePlugin === null || activePlugin === void 0 ? void 0 : activePlugin.name }));
19
+ };
20
+ exports.EmbedCardHeader = EmbedCardHeader;
21
+ //# sourceMappingURL=EmbedCardHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbedCardHeader.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/EmbedCardHeader.tsx"],"names":[],"mappings":";;;;;AAAA,kFAAqD;AACrD,4CAAgF;AAChF,yDAA+C;AAE/C,gDAA0E;AAC1E,kCAAmC;AAE5B,MAAM,eAAe,GAA8B,GAAG,EAAE;;IAC7D,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IACjD,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,GAAG,IAAA,8BAAmB,GAAE,CAAA;IAClF,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,iBAAiB,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,kBAAkB,aAAlB,kBAAkB,cAAlB,kBAAkB,GAAI,EAAE,CAAA;IAC7G,uFAAuF;IACvF,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;IAC5B,OAAO,CACL,uBAAC,qBAAU,IACT,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,EACnC,MAAM,EACJ,UAAU,CAAC,CAAC,CAAC,CACX,kDAAK,CACN,CAAC,CAAC,CAAC,CACF,uBAAC,iBAAM,kBAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,gBAAc,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI,gBAClG,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI,0CAAE,MAAM,CAAC,CAAC,CAAC,IACvB,CACV,EAEH,MAAM,EACJ,wBAAC,uBAAO,kBAAC,QAAQ,EAAC,MAAM,EAAC,SAAS,EAAE,GAAG,iBACpC,SAAS,CAAC,CAAC,CAAC,CACX,aAAa,IAAI,iBAAiB,CAAC,CAAC,CAAC,CACnC,EAAE,CACH,CAAC,CAAC,CAAC,CACF,uBAAC,eAAI,IACH,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC,kDAAK,CAAC,CAAC,CAAC,uBAAC,iBAAW,KAAG,EACnD,SAAS,EAAE,iBAAiB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAC3C,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,cAAc,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,cAAc,EAAE,EAAE,GACvF,CACH,CACF,CAAC,CAAC,CAAC,IAAI,EAEP,eAAe,IAAI,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,uBAAC,gBAAS,KAAG,KACrD,EAEZ,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI,GAC1C,CACH,CAAA;AACH,CAAC,CAAA;AAvCY,QAAA,eAAe,mBAuC3B"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmbedPluginCard = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const material_1 = require("@mui/material");
7
+ const react_flexbox_1 = require("@xylabs/react-flexbox");
8
+ const react_shared_1 = require("@xyo-network/react-shared");
9
+ const contexts_1 = require("../../../contexts");
10
+ const controls_1 = require("../../controls");
11
+ const BusyCard_1 = require("./BusyCard");
12
+ const EmbedCardHeader_1 = require("./EmbedCardHeader");
13
+ const EmbedPluginCard = (_a) => {
14
+ var _b, _c, _d, _e;
15
+ var props = tslib_1.__rest(_a, []);
16
+ const { payload } = (0, contexts_1.useResolvePayload)();
17
+ const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = (0, contexts_1.useEmbedPluginState)();
18
+ const { listMode } = (0, react_shared_1.useListMode)();
19
+ const supportsListMode = (_e = (_d = (_c = (_b = ActivePlugin === null || ActivePlugin === void 0 ? void 0 : ActivePlugin.components) === null || _b === void 0 ? void 0 : _b.box) === null || _c === void 0 ? void 0 : _c.listModes) === null || _d === void 0 ? void 0 : _d.length) !== null && _e !== void 0 ? _e : 0 > 1;
20
+ return ((0, jsx_runtime_1.jsxs)(BusyCard_1.BusyCard, Object.assign({}, props, { children: [(hideElementsConfig === null || hideElementsConfig === void 0 ? void 0 : hideElementsConfig.hideCardHeader) ? null : (0, jsx_runtime_1.jsx)(EmbedCardHeader_1.EmbedCardHeader, {}), (plugins && plugins.length) || supportsListMode ? ((0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexGrowRow, Object.assign({ columnGap: 2, rowGap: 2, flexWrap: "wrap", pb: 1 }, { children: [plugins && plugins.length > 1 ? (0, jsx_runtime_1.jsx)(controls_1.EmbedRenderSelect, {}) : null, supportsListMode ? (0, jsx_runtime_1.jsx)(controls_1.ListModeSelectFormControl, {}) : null] }))) : null, (0, jsx_runtime_1.jsx)(material_1.CardContent, Object.assign({ sx: { height: '100%' } }, { children: ActivePlugin ? (0, jsx_runtime_1.jsx)(ActivePlugin.components.box.detailsBox, Object.assign({ payload: payload }, (supportsListMode && { listMode }))) : null }))] })));
21
+ };
22
+ exports.EmbedPluginCard = EmbedPluginCard;
23
+ //# sourceMappingURL=EmbedPluginCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbedPluginCard.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/EmbedPluginCard.tsx"],"names":[],"mappings":";;;;;AAAA,4CAA2C;AAC3C,yDAAmD;AACnD,4DAAuD;AAEvD,gDAA0E;AAC1E,6CAA6E;AAC7E,yCAAoD;AACpD,uDAAmD;AAE5C,MAAM,eAAe,GAA4B,CAAC,EAAY,EAAE,EAAE;;QAAX,KAAK,sBAAV,EAAY,CAAF;IACjE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IACvC,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,kBAAkB,EAAE,GAAG,IAAA,8BAAmB,GAAE,CAAA;IACzF,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,0BAAW,GAAE,CAAA;IAClC,MAAM,gBAAgB,GAAG,MAAA,MAAA,MAAA,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,0CAAE,GAAG,0CAAE,SAAS,0CAAE,MAAM,mCAAI,CAAC,GAAG,CAAC,CAAA;IAElF,OAAO,CACL,wBAAC,mBAAQ,oBAAK,KAAK,eAChB,CAAA,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,cAAc,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,uBAAC,iCAAe,KAAG,EAE/D,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,CACjD,wBAAC,2BAAW,kBAAC,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,iBACxD,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,uBAAC,4BAAiB,KAAG,CAAC,CAAC,CAAC,IAAI,EAC5D,gBAAgB,CAAC,CAAC,CAAC,uBAAC,oCAAyB,KAAG,CAAC,CAAC,CAAC,IAAI,KAC5C,CACf,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,sBAAW,kBAAC,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,gBAChC,YAAY,CAAC,CAAC,CAAC,uBAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,kBAAC,OAAO,EAAE,OAAO,IAAM,CAAC,gBAAgB,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAI,CAAC,CAAC,CAAC,IAAI,IAC/G,KACL,CACZ,CAAA;AACH,CAAC,CAAA;AArBY,QAAA,eAAe,mBAqB3B"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./BusyCard"), exports);
5
+ tslib_1.__exportStar(require("./EmbedCardHeader"), exports);
6
+ tslib_1.__exportStar(require("./EmbedPluginCard"), exports);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B;AAC1B,4DAAiC;AACjC,4DAAiC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmbedCardApiErrorRenderer = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const react_error_1 = require("@xyo-network/react-error");
7
+ const EmbedErrorCard_1 = require("./EmbedErrorCard");
8
+ const EmbedCardApiErrorRenderer = (_a) => {
9
+ var { xyoError, children } = _a, props = tslib_1.__rest(_a, ["xyoError", "children"]);
10
+ return ((0, jsx_runtime_1.jsx)(react_error_1.ErrorRender, Object.assign({ error: xyoError, noReAuth: true, noErrorDisplay: true, customError: (0, jsx_runtime_1.jsx)(CustomApiErrorCard, Object.assign({ xyoError: xyoError }, props)) }, { children: children })));
11
+ };
12
+ exports.EmbedCardApiErrorRenderer = EmbedCardApiErrorRenderer;
13
+ const CustomApiErrorCard = (_a) => {
14
+ var { xyoError } = _a, props = tslib_1.__rest(_a, ["xyoError"]);
15
+ return ((0, jsx_runtime_1.jsx)(EmbedErrorCard_1.EmbedErrorCard, Object.assign({}, props, { children: (0, jsx_runtime_1.jsx)(react_error_1.ErrorAlert, { error: xyoError }) })));
16
+ };
17
+ //# sourceMappingURL=EmbedCardApiErrorRenderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbedCardApiErrorRenderer.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx"],"names":[],"mappings":";;;;;AAGA,0DAAkE;AAElE,qDAAiD;AAM1C,MAAM,yBAAyB,GAA2D,CAAC,EAAgC,EAAE,EAAE;QAApC,EAAE,QAAQ,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAA9B,wBAAgC,CAAF;IAC9H,OAAO,CACL,uBAAC,yBAAW,kBAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,QAAC,cAAc,QAAC,WAAW,EAAE,uBAAC,kBAAkB,kBAAC,QAAQ,EAAE,QAAQ,IAAM,KAAK,EAAI,gBACrH,QAAQ,IACG,CACf,CAAA;AACH,CAAC,CAAA;AANY,QAAA,yBAAyB,6BAMrC;AAED,MAAM,kBAAkB,GAA6C,CAAC,EAAsB,EAAE,EAAE;QAA1B,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAApB,YAAsB,CAAF;IACxF,OAAO,CACL,uBAAC,+BAAc,oBAAK,KAAK,cACvB,uBAAC,wBAAU,IAAC,KAAK,EAAE,QAAQ,GAAI,IAChB,CAClB,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmbedErrorCard = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const material_1 = require("@mui/material");
7
+ const EmbedErrorCard = (props) => {
8
+ const { alertProps, error, hideErrorDetails = true, children } = props, cardProps = tslib_1.__rest(props, ["alertProps", "error", "hideErrorDetails", "children"]);
9
+ const errorProps = { alertProps, error, hideErrorDetails };
10
+ return ((0, jsx_runtime_1.jsx)(material_1.Card, Object.assign({}, cardProps, { children: (0, jsx_runtime_1.jsx)(material_1.CardContent, { children: children !== null && children !== void 0 ? children : (0, jsx_runtime_1.jsx)(DefaultErrorAlert, Object.assign({}, errorProps)) }) })));
11
+ };
12
+ exports.EmbedErrorCard = EmbedErrorCard;
13
+ const DefaultErrorAlert = ({ alertProps, hideErrorDetails, error }) => {
14
+ return ((0, jsx_runtime_1.jsxs)(material_1.Alert, Object.assign({ severity: "error" }, alertProps, { children: [(0, jsx_runtime_1.jsx)(material_1.AlertTitle, { children: "Whoops! Something went wrong" }), !hideErrorDetails && error ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "caption" }, { children: "Error: " })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "caption" }, { children: error === null || error === void 0 ? void 0 : error.message }))] })) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "caption", fontSize: "small" }, { children: "Error Loading Plugin" })))] })));
15
+ };
16
+ //# sourceMappingURL=EmbedErrorCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbedErrorCard.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedErrorCard.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAuG;AAchG,MAAM,cAAc,GAAgD,CAAC,KAAK,EAAE,EAAE;IACnF,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,gBAAgB,GAAG,IAAI,EAAE,QAAQ,KAAmB,KAAK,EAAnB,SAAS,kBAAK,KAAK,EAA9E,uDAAsE,CAAQ,CAAA;IACpF,MAAM,UAAU,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAA;IAC1D,OAAO,CACL,uBAAC,eAAI,oBAAK,SAAS,cACjB,uBAAC,sBAAW,cAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,uBAAC,iBAAiB,oBAAK,UAAU,EAAI,GAAe,IACzE,CACR,CAAA;AACH,CAAC,CAAA;AARY,QAAA,cAAc,kBAQ1B;AAED,MAAM,iBAAiB,GAAsC,CAAC,EAAE,UAAU,EAAE,gBAAgB,EAAE,KAAK,EAAE,EAAE,EAAE;IACvG,OAAO,CACL,wBAAC,gBAAK,kBAAC,QAAQ,EAAC,OAAO,IAAK,UAAU,eACpC,uBAAC,qBAAU,+CAA0C,EACpD,CAAC,gBAAgB,IAAI,KAAK,CAAC,CAAC,CAAC,CAC5B,6DACE,uBAAC,qBAAU,kBAAC,OAAO,EAAC,SAAS,6BAAqB,EAClD,uBAAC,qBAAU,kBAAC,OAAO,EAAC,SAAS,gBAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,IAAc,IAC1D,CACJ,CAAC,CAAC,CAAC,CACF,uBAAC,qBAAU,kBAAC,OAAO,EAAC,SAAS,EAAC,QAAQ,EAAC,OAAO,0CAEjC,CACd,KACK,CACT,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./EmbedCardApiErrorRenderer"), exports);
5
+ tslib_1.__exportStar(require("./EmbedErrorCard"), exports);
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/index.ts"],"names":[],"mappings":";;;AAAA,sEAA2C;AAC3C,2DAAgC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./card"), exports);
5
+ tslib_1.__exportStar(require("./EmbedPluginCard"), exports);
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/embed-card/index.ts"],"names":[],"mappings":";;;AAAA,iDAAsB;AACtB,4DAAiC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmbedMenu = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const MoreVert_1 = tslib_1.__importDefault(require("@mui/icons-material/MoreVert"));
7
+ const material_1 = require("@mui/material");
8
+ const react_1 = require("react");
9
+ const JsonMenuItem_1 = require("./JsonMenuItem");
10
+ const EmbedMenu = (props) => {
11
+ // TODO - link to explore website
12
+ const [anchorEl, setAnchorEl] = (0, react_1.useState)(null);
13
+ const open = Boolean(anchorEl);
14
+ const handleClick = (event) => {
15
+ setAnchorEl(event.currentTarget);
16
+ };
17
+ const handleClose = () => {
18
+ setAnchorEl(null);
19
+ };
20
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: handleClick }, props, { children: (0, jsx_runtime_1.jsx)(MoreVert_1.default, {}) })), (0, jsx_runtime_1.jsx)(material_1.Menu, Object.assign({ anchorEl: anchorEl, open: open, onClose: handleClose, PaperProps: { variant: 'elevation' }, MenuListProps: { dense: true } }, { children: (0, jsx_runtime_1.jsx)(JsonMenuItem_1.JsonMenuItem, {}) }))] }));
21
+ };
22
+ exports.EmbedMenu = EmbedMenu;
23
+ //# sourceMappingURL=EmbedMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbedMenu.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/menu/EmbedMenu.tsx"],"names":[],"mappings":";;;;;AAAA,oFAAuD;AACvD,4CAAiE;AACjE,iCAAgC;AAEhC,iDAA6C;AAEtC,MAAM,SAAS,GAA8B,CAAC,KAAK,EAAE,EAAE;IAC5D,iCAAiC;IACjC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAqB,IAAI,CAAC,CAAA;IAClE,MAAM,IAAI,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;IAE9B,MAAM,WAAW,GAAG,CAAC,KAA0C,EAAE,EAAE;QACjE,WAAW,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;IAClC,CAAC,CAAA;IACD,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,WAAW,CAAC,IAAI,CAAC,CAAA;IACnB,CAAC,CAAA;IAED,OAAO,CACL,6DACE,uBAAC,qBAAU,kBAAC,OAAO,EAAE,WAAW,IAAM,KAAK,cACzC,uBAAC,kBAAY,KAAG,IACL,EACb,uBAAC,eAAI,kBAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,gBAC9H,uBAAC,2BAAY,KAAG,IACX,IACN,CACJ,CAAA;AACH,CAAC,CAAA;AAtBY,QAAA,SAAS,aAsBrB"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JsonMenuItem = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const OpenInNew_1 = tslib_1.__importDefault(require("@mui/icons-material/OpenInNew"));
7
+ const material_1 = require("@mui/material");
8
+ const contexts_1 = require("../../../contexts");
9
+ const JsonMenuItem = (props) => {
10
+ const { huri } = (0, contexts_1.useResolvePayload)();
11
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: huri ? ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, Object.assign({ title: "Source Payload JSON", onClick: () => window.open(huri, '_blank') }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemText, Object.assign({ sx: { mr: 1 } }, { children: "JSON" })), (0, jsx_runtime_1.jsx)(material_1.ListItemIcon, Object.assign({ sx: { justifyContent: 'end' } }, { children: (0, jsx_runtime_1.jsx)(OpenInNew_1.default, { fontSize: "small" }) }))] }))) : null }));
12
+ };
13
+ exports.JsonMenuItem = JsonMenuItem;
14
+ //# sourceMappingURL=JsonMenuItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JsonMenuItem.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/menu/JsonMenuItem.tsx"],"names":[],"mappings":";;;;;AAAA,sFAAyD;AACzD,4CAAmF;AAEnF,gDAAqD;AAE9C,MAAM,YAAY,GAA4B,CAAC,KAAK,EAAE,EAAE;IAC7D,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IAEpC,OAAO,CACL,2DACG,IAAI,CAAC,CAAC,CAAC,CACN,wBAAC,mBAAQ,kBAAC,KAAK,EAAC,qBAAqB,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAM,KAAK,eACzF,uBAAC,uBAAY,kBAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,0BAAqB,EAChD,uBAAC,uBAAY,kBAAC,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,gBACzC,uBAAC,mBAAa,IAAC,QAAQ,EAAC,OAAO,GAAG,IACrB,KACN,CACZ,CAAC,CAAC,CAAC,IAAI,GACP,CACJ,CAAA;AACH,CAAC,CAAA;AAfY,QAAA,YAAY,gBAexB"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./EmbedMenu"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/menu/index.ts"],"names":[],"mappings":";;;AAAA,sDAA2B"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.payloadData = void 0;
4
+ exports.payloadData = {
5
+ assets: {
6
+ ada: { value: { btc: '0.00002192', eth: '0.00031141', eur: '0.491867', usd: '0.502045' } },
7
+ btc: { value: { btc: '1', eth: '14.213346', eur: '22450', usd: '22914' } },
8
+ busd: { value: { btc: '0.00004369', eth: '0.00062074', eur: '0.980451', usd: '1.001' } },
9
+ dai: { value: { usdc: '1.00004', xyo: '114.394' } },
10
+ doge: { value: { btc: '0.00000293', eth: '0.00004157', eur: '0.065655', usd: '0.067013' } },
11
+ dot: { value: { btc: '0.00035508', eth: '0.00504454', eur: '7.97', usd: '8.13' } },
12
+ eth: { value: { btc: '0.0703878', eth: '1', eur: '1579.47', usd: '1612.16' } },
13
+ frax: { value: { usdc: '0.999738' } },
14
+ link: { value: { xyo: '837.731' } },
15
+ sol: { value: { btc: '0.00169369', eth: '0.02406215', eur: '38.01', usd: '38.79' } },
16
+ usdc: { value: { btc: '0.0000436965', dai: '0.999963', eth: '0.0006204464999999999', eur: '0.979419', frax: '1.00026', usd: '0.999732' } },
17
+ usdt: { value: { btc: '0.00004367', eth: '0.0006204', eur: '0.979881', usd: '1.001', usdc: '1.00022', xyo: '113.28' } },
18
+ wbtc: { value: { btc: '0.99903669', eth: '14.2015745', eur: '22418', usd: '22882', usdc: '22860.8', xyo: '2617950' } },
19
+ weth: { value: { btc: '0.0703735', usdc: '1610.82', xyo: '186652' } },
20
+ xyo: { value: { btc: '3.79226e-7', dai: '0.00874169', eth: '0.000005353785', eur: '0.00844792', link: '0.0011937', usd: '0.00872519' } },
21
+ },
22
+ schema: 'network.xyo.crypto.asset',
23
+ timestamp: 1659625815232,
24
+ };
25
+ //# sourceMappingURL=storyPayload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storyPayload.js","sourceRoot":"","sources":["../../../../src/components/embed-plugin-stories/storyPayload.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,MAAM,EAAE;QACN,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE;QAC1F,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE;QAC1E,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE;QACxF,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE;QACnD,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE;QAC3F,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE;QAClF,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE;QAC9E,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE;QACrC,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE;QACnC,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE;QACpF,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,uBAAuB,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE;QAC1I,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE;QACvH,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE;QACtH,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE;QACrE,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY,EAAE,EAAE;KACzI;IACD,MAAM,EAAE,0BAA0B;IAClC,SAAS,EAAE,aAAa;CACzB,CAAA"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Template = exports.xyoEmbedStoryBase = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_router_dom_1 = require("react-router-dom");
6
+ const embed_card_1 = require("../embed-card");
7
+ exports.xyoEmbedStoryBase = {
8
+ argTypes: {},
9
+ component: embed_card_1.ApiEmbedPluginCard,
10
+ parameters: {
11
+ docs: {
12
+ page: null,
13
+ },
14
+ },
15
+ };
16
+ const Template = (args) => {
17
+ return ((0, jsx_runtime_1.jsx)(react_router_dom_1.BrowserRouter, { children: (0, jsx_runtime_1.jsx)(embed_card_1.ApiEmbedPluginCard, Object.assign({}, args)) }));
18
+ };
19
+ exports.Template = Template;
20
+ //# sourceMappingURL=storyShared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storyShared.js","sourceRoot":"","sources":["../../../../src/components/embed-plugin-stories/storyShared.tsx"],"names":[],"mappings":";;;;AACA,uDAAgD;AAEhD,8CAAkD;AAErC,QAAA,iBAAiB,GAAS;IACrC,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,+BAAkB;IAC7B,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;CACF,CAAA;AAEM,MAAM,QAAQ,GAAuC,CAAC,IAAI,EAAE,EAAE;IACnE,OAAO,CACL,uBAAC,gCAAa,cACZ,uBAAC,+BAAkB,oBAAK,IAAI,EAAI,GAClB,CACjB,CAAA;AACH,CAAC,CAAA;AANY,QAAA,QAAQ,YAMpB"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./embed-card"), exports);
5
+ tslib_1.__exportStar(require("./EmbedPlugin"), exports);
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,wDAA6B"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidatePayloadAlert = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const material_1 = require("@mui/material");
7
+ const contexts_1 = require("../../contexts");
8
+ const ValidatePayloadAlert = (_a) => {
9
+ var { children } = _a, props = tslib_1.__rest(_a, ["children"]);
10
+ const { validPayload, enabled, schema } = (0, contexts_1.useValidatePayload)();
11
+ if (enabled && validPayload === false) {
12
+ return ((0, jsx_runtime_1.jsxs)(material_1.Alert, Object.assign({ severity: "error", title: "Invalid Payload!" }, props, { children: ["Payload schema claimed to be ", schema, " but failed to validate."] })));
13
+ }
14
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
15
+ };
16
+ exports.ValidatePayloadAlert = ValidatePayloadAlert;
17
+ //# sourceMappingURL=ValidatePayload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ValidatePayload.js","sourceRoot":"","sources":["../../../../src/components/validation-alerts/ValidatePayload.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAiD;AAGjD,6CAAmD;AAE5C,MAAM,oBAAoB,GAAuC,CAAC,EAAsB,EAAE,EAAE;QAA1B,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAApB,YAAsB,CAAF;IAC3F,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAA,6BAAkB,GAAE,CAAA;IAE9D,IAAI,OAAO,IAAI,YAAY,KAAK,KAAK,EAAE;QACrC,OAAO,CACL,wBAAC,gBAAK,kBAAC,QAAQ,EAAC,OAAO,EAAC,KAAK,EAAC,kBAAkB,IAAK,KAAK,gDAC1B,MAAM,iCAC9B,CACT,CAAA;KACF;IAED,OAAO,2DAAG,QAAQ,GAAI,CAAA;AACxB,CAAC,CAAA;AAZY,QAAA,oBAAoB,wBAYhC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidatePluginsAlert = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const material_1 = require("@mui/material");
7
+ const contexts_1 = require("../../contexts");
8
+ const ValidatePluginsAlert = (_a) => {
9
+ var { children } = _a, props = tslib_1.__rest(_a, ["children"]);
10
+ const { payload } = (0, contexts_1.useResolvePayload)();
11
+ const { plugins } = (0, contexts_1.useEmbedPluginState)();
12
+ if (payload && (plugins === null || plugins === void 0 ? void 0 : plugins.length) === 0) {
13
+ return ((0, jsx_runtime_1.jsxs)(material_1.Alert, Object.assign({ severity: "warning" }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.AlertTitle, { children: "Missing plugins!" }), "Payload found but no plugins were present."] })));
14
+ }
15
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
16
+ };
17
+ exports.ValidatePluginsAlert = ValidatePluginsAlert;
18
+ //# sourceMappingURL=ValidatePlugins.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ValidatePlugins.js","sourceRoot":"","sources":["../../../../src/components/validation-alerts/ValidatePlugins.tsx"],"names":[],"mappings":";;;;;AAAA,4CAA6D;AAG7D,6CAAuE;AAEhE,MAAM,oBAAoB,GAAuC,CAAC,EAAsB,EAAE,EAAE;QAA1B,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAApB,YAAsB,CAAF;IAC3F,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IACvC,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,8BAAmB,GAAE,CAAA;IAEzC,IAAI,OAAO,IAAI,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,MAAK,CAAC,EAAE;QACpC,OAAO,CACL,wBAAC,gBAAK,kBAAC,QAAQ,EAAC,SAAS,IAAK,KAAK,eACjC,uBAAC,qBAAU,mCAA8B,mDACnC,CACT,CAAA;KACF;IAED,OAAO,2DAAG,QAAQ,GAAI,CAAA;AACxB,CAAC,CAAA;AAbY,QAAA,oBAAoB,wBAahC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./ValidatePayload"), exports);
5
+ tslib_1.__exportStar(require("./ValidatePlugins"), exports);
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/validation-alerts/index.ts"],"names":[],"mappings":";;;AAAA,4DAAiC;AACjC,4DAAiC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmbedPluginContext = void 0;
4
+ const react_shared_1 = require("@xyo-network/react-shared");
5
+ exports.EmbedPluginContext = (0, react_shared_1.createContextEx)();
6
+ //# sourceMappingURL=Context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/Context.tsx"],"names":[],"mappings":";;;AAAA,4DAA2D;AAI9C,QAAA,kBAAkB,GAAG,IAAA,8BAAe,GAAoB,CAAA"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmbedPluginProvider = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const Context_1 = require("./Context");
7
+ /** Expose passed embed plugin props via context */
8
+ const EmbedPluginProvider = ({ children, refreshTitle, timestampLabel, hideElementsConfig, plugins, embedPluginConfig, }) => {
9
+ const [activePlugin, setActivePlugin] = (0, react_1.useState)(plugins ? plugins[0] : undefined);
10
+ (0, react_1.useEffect)(() => {
11
+ setActivePlugin(plugins ? plugins[0] : undefined);
12
+ }, [plugins]);
13
+ return ((0, jsx_runtime_1.jsx)(Context_1.EmbedPluginContext.Provider, Object.assign({ value: {
14
+ activePlugin,
15
+ embedPluginConfig,
16
+ hideElementsConfig,
17
+ provided: true,
18
+ refreshTitle,
19
+ setActivePlugin,
20
+ timestampLabel,
21
+ } }, { children: children })));
22
+ };
23
+ exports.EmbedPluginProvider = EmbedPluginProvider;
24
+ //# sourceMappingURL=Provider.js.map