@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,26 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Card } from "@mui/material";
3
- import { useBusyTiming } from "@xylabs/react-flexbox";
4
- import {
5
- BusyCircularProgress,
6
- BusyLinearProgress
7
- } from "@xylabs/react-shared";
8
- const BusyCard = ({
9
- busy,
10
- busyMinimum = 500,
11
- busyVariant = "circular",
12
- busyVariantProps,
13
- children,
14
- ...props
15
- }) => {
16
- const internalBusy = useBusyTiming(busy, busyMinimum);
17
- return /* @__PURE__ */ jsxs(Card, { ...props, children: [
18
- children,
19
- busyVariant === "circular" && internalBusy ? /* @__PURE__ */ jsx(BusyCircularProgress, { ...busyVariantProps }) : null,
20
- busyVariant === "linear" && internalBusy ? /* @__PURE__ */ jsx(BusyLinearProgress, { ...busyVariantProps }) : null
21
- ] });
22
- };
23
- export {
24
- BusyCard
25
- };
26
- //# sourceMappingURL=BusyCard.mjs.map
@@ -1,36 +0,0 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
- import { Refresh as RefreshIcon } from "@mui/icons-material";
3
- import { Avatar, CardHeader, Chip } from "@mui/material";
4
- import { FlexRow } from "@xylabs/react-flexbox";
5
- import { useEmbedPluginState, useResolvePayload } from "../../../contexts";
6
- import { EmbedMenu } from "../menu";
7
- const EmbedCardHeader = () => {
8
- const { refreshHuri, huri } = useResolvePayload();
9
- const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState();
10
- const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {};
11
- const timestamp = Date.now();
12
- return /* @__PURE__ */ jsx(
13
- CardHeader,
14
- {
15
- sx: { flexWrap: "wrap", rowGap: 1 },
16
- avatar: hideAvatar ? /* @__PURE__ */ jsx(Fragment, {}) : /* @__PURE__ */ jsx(Avatar, { sx: { bgcolor: (theme) => theme.palette.primary.main }, "aria-label": activePlugin?.name, children: activePlugin?.name?.charAt(0) }),
17
- action: /* @__PURE__ */ jsxs(FlexRow, { flexWrap: "wrap", columnGap: 0.5, children: [
18
- timestamp ? hideTimestamp && hideRefreshButton ? "" : /* @__PURE__ */ jsx(
19
- Chip,
20
- {
21
- avatar: hideRefreshButton ? /* @__PURE__ */ jsx(Fragment, {}) : /* @__PURE__ */ jsx(RefreshIcon, {}),
22
- clickable: hideRefreshButton ? false : true,
23
- onClick: refreshHuri,
24
- label: hideTimestamp ? "" : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`
25
- }
26
- ) : null,
27
- hideCardActions || huri === void 0 ? null : /* @__PURE__ */ jsx(EmbedMenu, {})
28
- ] }),
29
- title: hideTitle ? "" : activePlugin?.name
30
- }
31
- );
32
- };
33
- export {
34
- EmbedCardHeader
35
- };
36
- //# sourceMappingURL=EmbedCardHeader.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/components/embed-card/card/EmbedCardHeader.tsx"],"sourcesContent":["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"],"mappings":"AAkBU,wBAQF,YARE;AAlBV,SAAS,WAAW,mBAAmB;AACvC,SAAS,QAAQ,YAA6B,YAAmB;AACjE,SAAS,eAAe;AAExB,SAAS,qBAAqB,yBAAyB;AACvD,SAAS,iBAAiB;AAEnB,MAAM,kBAA6C,MAAM;AAC9D,QAAM,EAAE,aAAa,KAAK,IAAI,kBAAkB;AAChD,QAAM,EAAE,cAAc,gBAAgB,mBAAmB,IAAI,oBAAoB;AACjF,QAAM,EAAE,YAAY,WAAW,mBAAmB,eAAe,gBAAgB,IAAI,sBAAsB,CAAC;AAE5G,QAAM,YAAY,KAAK,IAAI;AAC3B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAI,EAAE,UAAU,QAAQ,QAAQ,EAAE;AAAA,MAClC,QACE,aACE,gCAAE,IAEF,oBAAC,UAAO,IAAI,EAAE,SAAS,CAAC,UAAiB,MAAM,QAAQ,QAAQ,KAAK,GAAG,cAAY,cAAc,MAC9F,wBAAc,MAAM,OAAO,CAAC,GAC/B;AAAA,MAGJ,QACE,qBAAC,WAAQ,UAAS,QAAO,WAAW,KACjC;AAAA,oBACC,iBAAiB,oBACf,KAEA;AAAA,UAAC;AAAA;AAAA,YACC,QAAQ,oBAAoB,gCAAE,IAAM,oBAAC,eAAY;AAAA,YACjD,WAAW,oBAAoB,QAAQ;AAAA,YACvC,SAAS;AAAA,YACT,OAAO,gBAAgB,KAAK,GAAG,cAAc,IAAI,IAAI,KAAK,SAAS,EAAE,eAAe,CAAC;AAAA;AAAA,QACvF,IAEA;AAAA,QAEH,mBAAmB,SAAS,SAAY,OAAO,oBAAC,aAAU;AAAA,SAC7D;AAAA,MAEF,OAAO,YAAY,KAAK,cAAc;AAAA;AAAA,EACxC;AAEJ;","names":[]}
@@ -1,26 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { CardContent } from "@mui/material";
3
- import { FlexGrowRow } from "@xylabs/react-flexbox";
4
- import { useListMode } from "@xyo-network/react-shared";
5
- import { useEmbedPluginState, useResolvePayload } from "../../../contexts";
6
- import { EmbedRenderSelect, ListModeSelectFormControl } from "../../controls";
7
- import { BusyCard } from "./BusyCard";
8
- import { EmbedCardHeader } from "./EmbedCardHeader";
9
- const EmbedPluginCard = ({ ...props }) => {
10
- const { payload } = useResolvePayload();
11
- const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = useEmbedPluginState();
12
- const { listMode } = useListMode();
13
- const supportsListMode = ActivePlugin?.components?.box?.listModes?.length ?? 0 > 1;
14
- return /* @__PURE__ */ jsxs(BusyCard, { ...props, children: [
15
- hideElementsConfig?.hideCardHeader ? null : /* @__PURE__ */ jsx(EmbedCardHeader, {}),
16
- plugins && plugins.length || supportsListMode ? /* @__PURE__ */ jsxs(FlexGrowRow, { columnGap: 2, rowGap: 2, flexWrap: "wrap", pb: 1, children: [
17
- plugins && plugins.length > 1 ? /* @__PURE__ */ jsx(EmbedRenderSelect, {}) : null,
18
- supportsListMode ? /* @__PURE__ */ jsx(ListModeSelectFormControl, {}) : null
19
- ] }) : null,
20
- /* @__PURE__ */ jsx(CardContent, { sx: { height: "100%" }, children: ActivePlugin ? /* @__PURE__ */ jsx(ActivePlugin.components.box.detailsBox, { payload, ...supportsListMode && { listMode } }) : null })
21
- ] });
22
- };
23
- export {
24
- EmbedPluginCard
25
- };
26
- //# sourceMappingURL=EmbedPluginCard.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/components/embed-card/card/EmbedPluginCard.tsx"],"sourcesContent":["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"],"mappings":"AAiBmD,cAG3C,YAH2C;AAjBnD,SAAS,mBAAmB;AAC5B,SAAS,mBAAmB;AAC5B,SAAS,mBAAmB;AAE5B,SAAS,qBAAqB,yBAAyB;AACvD,SAAS,mBAAmB,iCAAiC;AAC7D,SAAS,gBAA+B;AACxC,SAAS,uBAAuB;AAEzB,MAAM,kBAA2C,CAAC,EAAE,GAAG,MAAM,MAAM;AACxE,QAAM,EAAE,QAAQ,IAAI,kBAAkB;AACtC,QAAM,EAAE,cAAc,cAAc,SAAS,mBAAmB,IAAI,oBAAoB;AACxF,QAAM,EAAE,SAAS,IAAI,YAAY;AACjC,QAAM,mBAAmB,cAAc,YAAY,KAAK,WAAW,UAAU,IAAI;AAEjF,SACE,qBAAC,YAAU,GAAG,OACX;AAAA,wBAAoB,iBAAiB,OAAO,oBAAC,mBAAgB;AAAA,IAE5D,WAAW,QAAQ,UAAW,mBAC9B,qBAAC,eAAY,WAAW,GAAG,QAAQ,GAAG,UAAS,QAAO,IAAI,GACvD;AAAA,iBAAW,QAAQ,SAAS,IAAI,oBAAC,qBAAkB,IAAK;AAAA,MACxD,mBAAmB,oBAAC,6BAA0B,IAAK;AAAA,OACtD,IACE;AAAA,IACJ,oBAAC,eAAY,IAAI,EAAE,QAAQ,OAAO,GAC/B,yBAAe,oBAAC,aAAa,WAAW,IAAI,YAA5B,EAAuC,SAAmB,GAAI,oBAAoB,EAAE,SAAS,GAAI,IAAK,MACzH;AAAA,KACF;AAEJ;","names":[]}
@@ -1,4 +0,0 @@
1
- export * from "./BusyCard";
2
- export * from "./EmbedCardHeader";
3
- export * from "./EmbedPluginCard";
4
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/components/embed-card/card/index.ts"],"sourcesContent":["export * from './BusyCard'\nexport * from './EmbedCardHeader'\nexport * from './EmbedPluginCard'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
@@ -1,13 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { ErrorAlert, ErrorRender } from "@xyo-network/react-error";
3
- import { EmbedErrorCard } from "./EmbedErrorCard";
4
- const EmbedCardApiErrorRenderer = ({ xyoError, children, ...props }) => {
5
- return /* @__PURE__ */ jsx(ErrorRender, { error: xyoError, noReAuth: true, noErrorDisplay: true, customError: /* @__PURE__ */ jsx(CustomApiErrorCard, { xyoError, ...props }), children });
6
- };
7
- const CustomApiErrorCard = ({ xyoError, ...props }) => {
8
- return /* @__PURE__ */ jsx(EmbedErrorCard, { ...props, children: /* @__PURE__ */ jsx(ErrorAlert, { error: xyoError }) });
9
- };
10
- export {
11
- EmbedCardApiErrorRenderer
12
- };
13
- //# sourceMappingURL=EmbedCardApiErrorRenderer.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx"],"sourcesContent":["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"],"mappings":"AAauE;AAVvE,SAAS,YAAY,mBAAmB;AAExC,SAAS,sBAAsB;AAMxB,MAAM,4BAAoF,CAAC,EAAE,UAAU,UAAU,GAAG,MAAM,MAAM;AACrI,SACE,oBAAC,eAAY,OAAO,UAAU,UAAQ,MAAC,gBAAc,MAAC,aAAa,oBAAC,sBAAmB,UAAqB,GAAG,OAAO,GACnH,UACH;AAEJ;AAEA,MAAM,qBAA+D,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AAC/F,SACE,oBAAC,kBAAgB,GAAG,OAClB,8BAAC,cAAW,OAAO,UAAU,GAC/B;AAEJ;","names":[]}
@@ -1,20 +0,0 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
- import { Alert, AlertTitle, Card, CardContent, Typography } from "@mui/material";
3
- const EmbedErrorCard = (props) => {
4
- const { alertProps, error, hideErrorDetails = true, children, ...cardProps } = props;
5
- const errorProps = { alertProps, error, hideErrorDetails };
6
- return /* @__PURE__ */ jsx(Card, { ...cardProps, children: /* @__PURE__ */ jsx(CardContent, { children: children ?? /* @__PURE__ */ jsx(DefaultErrorAlert, { ...errorProps }) }) });
7
- };
8
- const DefaultErrorAlert = ({ alertProps, hideErrorDetails, error }) => {
9
- return /* @__PURE__ */ jsxs(Alert, { severity: "error", ...alertProps, children: [
10
- /* @__PURE__ */ jsx(AlertTitle, { children: "Whoops! Something went wrong" }),
11
- !hideErrorDetails && error ? /* @__PURE__ */ jsxs(Fragment, { children: [
12
- /* @__PURE__ */ jsx(Typography, { variant: "caption", children: "Error: " }),
13
- /* @__PURE__ */ jsx(Typography, { variant: "caption", children: error?.message })
14
- ] }) : /* @__PURE__ */ jsx(Typography, { variant: "caption", fontSize: "small", children: "Error Loading Plugin" })
15
- ] });
16
- };
17
- export {
18
- EmbedErrorCard
19
- };
20
- //# sourceMappingURL=EmbedErrorCard.mjs.map
@@ -1,3 +0,0 @@
1
- export * from "./EmbedCardApiErrorRenderer";
2
- export * from "./EmbedErrorCard";
3
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/components/embed-card/error-handling/index.ts"],"sourcesContent":["export * from './EmbedCardApiErrorRenderer'\nexport * from './EmbedErrorCard'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
@@ -1,3 +0,0 @@
1
- export * from "./card";
2
- export * from "./EmbedPluginCard";
3
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/embed-card/index.ts"],"sourcesContent":["export * from './card'\nexport * from './EmbedPluginCard'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
@@ -1,23 +0,0 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
- import { MoreVert as MoreVertIcon } from "@mui/icons-material";
3
- import { IconButton, Menu } from "@mui/material";
4
- import { useState } from "react";
5
- import { JsonMenuItem } from "./JsonMenuItem";
6
- const EmbedMenu = (props) => {
7
- const [anchorEl, setAnchorEl] = useState(null);
8
- const open = Boolean(anchorEl);
9
- const handleClick = (event) => {
10
- setAnchorEl(event.currentTarget);
11
- };
12
- const handleClose = () => {
13
- setAnchorEl(null);
14
- };
15
- return /* @__PURE__ */ jsxs(Fragment, { children: [
16
- /* @__PURE__ */ jsx(IconButton, { onClick: handleClick, ...props, children: /* @__PURE__ */ jsx(MoreVertIcon, {}) }),
17
- /* @__PURE__ */ jsx(Menu, { anchorEl, open, onClose: handleClose, PaperProps: { variant: "elevation" }, MenuListProps: { dense: true }, children: /* @__PURE__ */ jsx(JsonMenuItem, {}) })
18
- ] });
19
- };
20
- export {
21
- EmbedMenu
22
- };
23
- //# sourceMappingURL=EmbedMenu.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/components/embed-card/menu/EmbedMenu.tsx"],"sourcesContent":["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"],"mappings":"AAmBI,mBAEI,KAFJ;AAnBJ,SAAS,YAAY,oBAAoB;AACzC,SAAS,YAA6B,YAAY;AAClD,SAAS,gBAAgB;AAEzB,SAAS,oBAAoB;AAEtB,MAAM,YAAuC,CAAC,UAAU;AAE7D,QAAM,CAAC,UAAU,WAAW,IAAI,SAA6B,IAAI;AACjE,QAAM,OAAO,QAAQ,QAAQ;AAE7B,QAAM,cAAc,CAAC,UAA+C;AAClE,gBAAY,MAAM,aAAa;AAAA,EACjC;AACA,QAAM,cAAc,MAAM;AACxB,gBAAY,IAAI;AAAA,EAClB;AAEA,SACE,iCACE;AAAA,wBAAC,cAAW,SAAS,aAAc,GAAG,OACpC,8BAAC,gBAAa,GAChB;AAAA,IACA,oBAAC,QAAK,UAAoB,MAAY,SAAS,aAAa,YAAY,EAAE,SAAS,YAAY,GAAG,eAAe,EAAE,OAAO,KAAK,GAC7H,8BAAC,gBAAa,GAChB;AAAA,KACF;AAEJ;","names":[]}
@@ -1,15 +0,0 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
- import { OpenInNew as OpenInNewIcon } from "@mui/icons-material";
3
- import { ListItemIcon, ListItemText, MenuItem } from "@mui/material";
4
- import { useResolvePayload } from "../../../contexts";
5
- const JsonMenuItem = (props) => {
6
- const { huri } = useResolvePayload();
7
- return /* @__PURE__ */ jsx(Fragment, { children: huri ? /* @__PURE__ */ jsxs(MenuItem, { title: "Source Payload JSON", onClick: () => window.open(huri, "_blank"), ...props, children: [
8
- /* @__PURE__ */ jsx(ListItemText, { sx: { mr: 1 }, children: "JSON" }),
9
- /* @__PURE__ */ jsx(ListItemIcon, { sx: { justifyContent: "end" }, children: /* @__PURE__ */ jsx(OpenInNewIcon, { fontSize: "small" }) })
10
- ] }) : null });
11
- };
12
- export {
13
- JsonMenuItem
14
- };
15
- //# sourceMappingURL=JsonMenuItem.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/components/embed-card/menu/JsonMenuItem.tsx"],"sourcesContent":["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"],"mappings":"AASI,mBAGM,KADF,YAFJ;AATJ,SAAS,aAAa,qBAAqB;AAC3C,SAAS,cAAc,cAAc,gBAA+B;AAEpE,SAAS,yBAAyB;AAE3B,MAAM,eAAwC,CAAC,UAAU;AAC9D,QAAM,EAAE,KAAK,IAAI,kBAAkB;AAEnC,SACE,gCACG,iBACC,qBAAC,YAAS,OAAM,uBAAsB,SAAS,MAAM,OAAO,KAAK,MAAM,QAAQ,GAAI,GAAG,OACpF;AAAA,wBAAC,gBAAa,IAAI,EAAE,IAAI,EAAE,GAAG,kBAAI;AAAA,IACjC,oBAAC,gBAAa,IAAI,EAAE,gBAAgB,MAAM,GACxC,8BAAC,iBAAc,UAAS,SAAQ,GAClC;AAAA,KACF,IACE,MACN;AAEJ;","names":[]}
@@ -1,2 +0,0 @@
1
- export * from "./EmbedMenu";
2
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/components/embed-card/menu/index.ts"],"sourcesContent":["export * from './EmbedMenu'\n"],"mappings":"AAAA,cAAc;","names":[]}
@@ -1,50 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var XyoEmbedPlugin_examples_stories_exports = {};
20
- __export(XyoEmbedPlugin_examples_stories_exports, {
21
- AggregatePriceExample: () => AggregatePriceExample,
22
- UniswapPairsExample: () => UniswapPairsExample,
23
- default: () => XyoEmbedPlugin_examples_stories_default
24
- });
25
- module.exports = __toCommonJS(XyoEmbedPlugin_examples_stories_exports);
26
- var import_react_aggregate_price_plugin = require("@xyo-network/react-aggregate-price-plugin");
27
- var import_react_crypto_market_uniswap_plugin = require("@xyo-network/react-crypto-market-uniswap-plugin");
28
- var import_storyShared = require("./storyShared");
29
- const AggregatePricePointer = "https://api.archivist.xyo.network/1948bf4eedf90ee2b8a1f63216b7c6b3b18d7bc2834330d85bcd6ab3d6428a20";
30
- const UniswapPairPointer = "https://beta.api.archivist.xyo.network/e36602006239d86b6e08412f7879372b2c622d74f4d6bc508a08a46fa8ad6523";
31
- var XyoEmbedPlugin_examples_stories_default = {
32
- ...import_storyShared.xyoEmbedStoryBase,
33
- title: "embed/EmbedPlugin/examples"
34
- };
35
- const AggregatePriceExample = import_storyShared.Template.bind({});
36
- AggregatePriceExample.args = {
37
- huriPayload: AggregatePricePointer,
38
- plugins: [import_react_aggregate_price_plugin.CryptoAssetRenderPlugin]
39
- };
40
- const UniswapPairsExample = import_storyShared.Template.bind({});
41
- UniswapPairsExample.args = {
42
- huriPayload: UniswapPairPointer,
43
- plugins: [import_react_crypto_market_uniswap_plugin.UniswapPairsRenderPlugin]
44
- };
45
- // Annotate the CommonJS export names for ESM import in node:
46
- 0 && (module.exports = {
47
- AggregatePriceExample,
48
- UniswapPairsExample
49
- });
50
- //# sourceMappingURL=XyoEmbedPlugin.examples.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.tsx"],"sourcesContent":["import { Meta } from '@storybook/react'\nimport { CryptoAssetRenderPlugin } from '@xyo-network/react-aggregate-price-plugin'\nimport { UniswapPairsRenderPlugin } from '@xyo-network/react-crypto-market-uniswap-plugin'\n\nimport { Template, xyoEmbedStoryBase } from './storyShared'\n\nconst AggregatePricePointer = 'https://api.archivist.xyo.network/1948bf4eedf90ee2b8a1f63216b7c6b3b18d7bc2834330d85bcd6ab3d6428a20'\nconst UniswapPairPointer = 'https://beta.api.archivist.xyo.network/e36602006239d86b6e08412f7879372b2c622d74f4d6bc508a08a46fa8ad6523'\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n ...xyoEmbedStoryBase,\n title: 'embed/EmbedPlugin/examples',\n} as Meta\n\nconst AggregatePriceExample = Template.bind({})\nAggregatePriceExample.args = {\n huriPayload: AggregatePricePointer,\n plugins: [CryptoAssetRenderPlugin],\n}\n\nconst UniswapPairsExample = Template.bind({})\nUniswapPairsExample.args = {\n huriPayload: UniswapPairPointer,\n plugins: [UniswapPairsRenderPlugin],\n}\n\nexport { AggregatePriceExample, UniswapPairsExample }\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0CAAwC;AACxC,gDAAyC;AAEzC,yBAA4C;AAE5C,MAAM,wBAAwB;AAC9B,MAAM,qBAAqB;AAG3B,IAAO,0CAAQ;AAAA,EACb,GAAG;AAAA,EACH,OAAO;AACT;AAEA,MAAM,wBAAwB,4BAAS,KAAK,CAAC,CAAC;AAC9C,sBAAsB,OAAO;AAAA,EAC3B,aAAa;AAAA,EACb,SAAS,CAAC,2DAAuB;AACnC;AAEA,MAAM,sBAAsB,4BAAS,KAAK,CAAC,CAAC;AAC5C,oBAAoB,OAAO;AAAA,EACzB,aAAa;AAAA,EACb,SAAS,CAAC,kEAAwB;AACpC;","names":[]}
@@ -1,25 +0,0 @@
1
- import { CryptoAssetRenderPlugin } from "@xyo-network/react-aggregate-price-plugin";
2
- import { UniswapPairsRenderPlugin } from "@xyo-network/react-crypto-market-uniswap-plugin";
3
- import { Template, xyoEmbedStoryBase } from "./storyShared";
4
- const AggregatePricePointer = "https://api.archivist.xyo.network/1948bf4eedf90ee2b8a1f63216b7c6b3b18d7bc2834330d85bcd6ab3d6428a20";
5
- const UniswapPairPointer = "https://beta.api.archivist.xyo.network/e36602006239d86b6e08412f7879372b2c622d74f4d6bc508a08a46fa8ad6523";
6
- var XyoEmbedPlugin_examples_stories_default = {
7
- ...xyoEmbedStoryBase,
8
- title: "embed/EmbedPlugin/examples"
9
- };
10
- const AggregatePriceExample = Template.bind({});
11
- AggregatePriceExample.args = {
12
- huriPayload: AggregatePricePointer,
13
- plugins: [CryptoAssetRenderPlugin]
14
- };
15
- const UniswapPairsExample = Template.bind({});
16
- UniswapPairsExample.args = {
17
- huriPayload: UniswapPairPointer,
18
- plugins: [UniswapPairsRenderPlugin]
19
- };
20
- export {
21
- AggregatePriceExample,
22
- UniswapPairsExample,
23
- XyoEmbedPlugin_examples_stories_default as default
24
- };
25
- //# sourceMappingURL=XyoEmbedPlugin.examples.stories.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.tsx"],"sourcesContent":["import { Meta } from '@storybook/react'\nimport { CryptoAssetRenderPlugin } from '@xyo-network/react-aggregate-price-plugin'\nimport { UniswapPairsRenderPlugin } from '@xyo-network/react-crypto-market-uniswap-plugin'\n\nimport { Template, xyoEmbedStoryBase } from './storyShared'\n\nconst AggregatePricePointer = 'https://api.archivist.xyo.network/1948bf4eedf90ee2b8a1f63216b7c6b3b18d7bc2834330d85bcd6ab3d6428a20'\nconst UniswapPairPointer = 'https://beta.api.archivist.xyo.network/e36602006239d86b6e08412f7879372b2c622d74f4d6bc508a08a46fa8ad6523'\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n ...xyoEmbedStoryBase,\n title: 'embed/EmbedPlugin/examples',\n} as Meta\n\nconst AggregatePriceExample = Template.bind({})\nAggregatePriceExample.args = {\n huriPayload: AggregatePricePointer,\n plugins: [CryptoAssetRenderPlugin],\n}\n\nconst UniswapPairsExample = Template.bind({})\nUniswapPairsExample.args = {\n huriPayload: UniswapPairPointer,\n plugins: [UniswapPairsRenderPlugin],\n}\n\nexport { AggregatePriceExample, UniswapPairsExample }\n"],"mappings":"AACA,SAAS,+BAA+B;AACxC,SAAS,gCAAgC;AAEzC,SAAS,UAAU,yBAAyB;AAE5C,MAAM,wBAAwB;AAC9B,MAAM,qBAAqB;AAG3B,IAAO,0CAAQ;AAAA,EACb,GAAG;AAAA,EACH,OAAO;AACT;AAEA,MAAM,wBAAwB,SAAS,KAAK,CAAC,CAAC;AAC9C,sBAAsB,OAAO;AAAA,EAC3B,aAAa;AAAA,EACb,SAAS,CAAC,uBAAuB;AACnC;AAEA,MAAM,sBAAsB,SAAS,KAAK,CAAC,CAAC;AAC5C,oBAAoB,OAAO;AAAA,EACzB,aAAa;AAAA,EACb,SAAS,CAAC,wBAAwB;AACpC;","names":[]}
@@ -1,115 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var XyoEmbedPlugin_states_stories_exports = {};
20
- __export(XyoEmbedPlugin_states_stories_exports, {
21
- ApiError: () => ApiError,
22
- Default: () => Default,
23
- HiddenElements: () => HiddenElements,
24
- ThrownError: () => ThrownError,
25
- WithOnRefresh: () => WithOnRefresh,
26
- WithPassedPayload: () => WithPassedPayload,
27
- WithSetBusyExternally: () => WithSetBusyExternally,
28
- default: () => XyoEmbedPlugin_states_stories_default
29
- });
30
- module.exports = __toCommonJS(XyoEmbedPlugin_states_stories_exports);
31
- var import_react_aggregate_price_plugin = require("@xyo-network/react-aggregate-price-plugin");
32
- var import_react_crypto_market_uniswap_plugin = require("@xyo-network/react-crypto-market-uniswap-plugin");
33
- var import_react_payload_plugin = require("@xyo-network/react-payload-plugin");
34
- var import_storyPayload = require("./storyPayload");
35
- var import_storyShared = require("./storyShared");
36
- const AggregatePricePointer = "https://api.archivist.xyo.network/1948bf4eedf90ee2b8a1f63216b7c6b3b18d7bc2834330d85bcd6ab3d6428a20";
37
- var XyoEmbedPlugin_states_stories_default = {
38
- ...import_storyShared.xyoEmbedStoryBase,
39
- title: "embed/EmbedPlugin/states"
40
- };
41
- const testPlugin = (0, import_react_payload_plugin.createPayloadRenderPlugin)({
42
- canRender: () => true,
43
- name: "Test Plugin"
44
- });
45
- const testPlugin1 = (0, import_react_payload_plugin.createPayloadRenderPlugin)({
46
- canRender: () => true,
47
- name: "Test1 Plugin"
48
- });
49
- const failingPlugin = (0, import_react_payload_plugin.createPayloadRenderPlugin)({
50
- canRender: () => true,
51
- components: {
52
- box: {
53
- details: () => {
54
- throw Error("testing Error Boundary");
55
- }
56
- }
57
- },
58
- name: "Failing Plugin"
59
- });
60
- const Default = import_storyShared.Template.bind({});
61
- Default.args = {
62
- huri: AggregatePricePointer,
63
- plugins: [testPlugin, testPlugin1]
64
- };
65
- const ApiError = import_storyShared.Template.bind({});
66
- ApiError.args = {
67
- huriPayload: "https://api.archivist.xyo.network/9663b2f80395a9e7e95948fdd5988b778a4dcc047202bf67e855ff6cd459b8c",
68
- plugins: [import_react_crypto_market_uniswap_plugin.UniswapPairsRenderPlugin]
69
- };
70
- const ThrownError = import_storyShared.Template.bind({});
71
- ThrownError.args = {
72
- huriPayload: AggregatePricePointer,
73
- plugins: [failingPlugin]
74
- };
75
- const HiddenElements = import_storyShared.Template.bind({});
76
- HiddenElements.args = {
77
- hideElementsConfig: {
78
- hideAvatar: true,
79
- hideCardActions: true,
80
- hideCardHeader: true,
81
- hideRefreshButton: true,
82
- hideTimestamp: true,
83
- hideTitle: true
84
- },
85
- huriPayload: AggregatePricePointer,
86
- plugins: [import_react_aggregate_price_plugin.CryptoAssetRenderPlugin]
87
- };
88
- const WithPassedPayload = import_storyShared.Template.bind({});
89
- WithPassedPayload.args = {
90
- huriPayload: import_storyPayload.payloadData,
91
- plugins: [import_react_aggregate_price_plugin.CryptoAssetRenderPlugin]
92
- };
93
- const WithSetBusyExternally = import_storyShared.Template.bind({});
94
- WithSetBusyExternally.args = {
95
- busy: true,
96
- huriPayload: import_storyPayload.payloadData,
97
- plugins: [import_react_aggregate_price_plugin.CryptoAssetRenderPlugin]
98
- };
99
- const WithOnRefresh = import_storyShared.Template.bind({});
100
- WithOnRefresh.args = {
101
- huriPayload: import_storyPayload.payloadData,
102
- onRefresh: () => console.log("refreshed"),
103
- plugins: [import_react_aggregate_price_plugin.CryptoAssetRenderPlugin]
104
- };
105
- // Annotate the CommonJS export names for ESM import in node:
106
- 0 && (module.exports = {
107
- ApiError,
108
- Default,
109
- HiddenElements,
110
- ThrownError,
111
- WithOnRefresh,
112
- WithPassedPayload,
113
- WithSetBusyExternally
114
- });
115
- //# sourceMappingURL=XyoEmbedPlugin.states.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.tsx"],"sourcesContent":["import { Meta } from '@storybook/react'\nimport { CryptoAssetRenderPlugin } from '@xyo-network/react-aggregate-price-plugin'\nimport { UniswapPairsRenderPlugin } from '@xyo-network/react-crypto-market-uniswap-plugin'\nimport { createPayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\n\nimport { payloadData } from './storyPayload'\nimport { Template, xyoEmbedStoryBase } from './storyShared'\n\nconst AggregatePricePointer = 'https://api.archivist.xyo.network/1948bf4eedf90ee2b8a1f63216b7c6b3b18d7bc2834330d85bcd6ab3d6428a20'\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n ...xyoEmbedStoryBase,\n title: 'embed/EmbedPlugin/states',\n} as Meta\n\nconst testPlugin = createPayloadRenderPlugin({\n canRender: () => true,\n name: 'Test Plugin',\n})\n\nconst testPlugin1 = createPayloadRenderPlugin({\n canRender: () => true,\n name: 'Test1 Plugin',\n})\n\nconst failingPlugin = createPayloadRenderPlugin({\n canRender: () => true,\n components: {\n box: {\n details: () => {\n throw Error('testing Error Boundary')\n },\n },\n },\n name: 'Failing Plugin',\n})\n\nconst Default = Template.bind({})\nDefault.args = {\n huri: AggregatePricePointer,\n plugins: [testPlugin, testPlugin1],\n}\n\nconst ApiError = Template.bind({})\nApiError.args = {\n huriPayload: 'https://api.archivist.xyo.network/9663b2f80395a9e7e95948fdd5988b778a4dcc047202bf67e855ff6cd459b8c',\n plugins: [UniswapPairsRenderPlugin],\n}\n\nconst ThrownError = Template.bind({})\nThrownError.args = {\n huriPayload: AggregatePricePointer,\n plugins: [failingPlugin],\n}\n\nconst HiddenElements = Template.bind({})\nHiddenElements.args = {\n hideElementsConfig: {\n hideAvatar: true,\n hideCardActions: true,\n hideCardHeader: true,\n hideRefreshButton: true,\n hideTimestamp: true,\n hideTitle: true,\n },\n huriPayload: AggregatePricePointer,\n plugins: [CryptoAssetRenderPlugin],\n}\n\nconst WithPassedPayload = Template.bind({})\nWithPassedPayload.args = {\n huriPayload: payloadData,\n plugins: [CryptoAssetRenderPlugin],\n}\n\nconst WithSetBusyExternally = Template.bind({})\nWithSetBusyExternally.args = {\n busy: true,\n huriPayload: payloadData,\n plugins: [CryptoAssetRenderPlugin],\n}\n\nconst WithOnRefresh = Template.bind({})\nWithOnRefresh.args = {\n huriPayload: payloadData,\n onRefresh: () => console.log('refreshed'),\n plugins: [CryptoAssetRenderPlugin],\n}\n\nexport { ApiError, Default, HiddenElements, ThrownError, WithOnRefresh, WithPassedPayload, WithSetBusyExternally }\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0CAAwC;AACxC,gDAAyC;AACzC,kCAA0C;AAE1C,0BAA4B;AAC5B,yBAA4C;AAE5C,MAAM,wBAAwB;AAG9B,IAAO,wCAAQ;AAAA,EACb,GAAG;AAAA,EACH,OAAO;AACT;AAEA,MAAM,iBAAa,uDAA0B;AAAA,EAC3C,WAAW,MAAM;AAAA,EACjB,MAAM;AACR,CAAC;AAED,MAAM,kBAAc,uDAA0B;AAAA,EAC5C,WAAW,MAAM;AAAA,EACjB,MAAM;AACR,CAAC;AAED,MAAM,oBAAgB,uDAA0B;AAAA,EAC9C,WAAW,MAAM;AAAA,EACjB,YAAY;AAAA,IACV,KAAK;AAAA,MACH,SAAS,MAAM;AACb,cAAM,MAAM,wBAAwB;AAAA,MACtC;AAAA,IACF;AAAA,EACF;AAAA,EACA,MAAM;AACR,CAAC;AAED,MAAM,UAAU,4BAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,OAAO;AAAA,EACb,MAAM;AAAA,EACN,SAAS,CAAC,YAAY,WAAW;AACnC;AAEA,MAAM,WAAW,4BAAS,KAAK,CAAC,CAAC;AACjC,SAAS,OAAO;AAAA,EACd,aAAa;AAAA,EACb,SAAS,CAAC,kEAAwB;AACpC;AAEA,MAAM,cAAc,4BAAS,KAAK,CAAC,CAAC;AACpC,YAAY,OAAO;AAAA,EACjB,aAAa;AAAA,EACb,SAAS,CAAC,aAAa;AACzB;AAEA,MAAM,iBAAiB,4BAAS,KAAK,CAAC,CAAC;AACvC,eAAe,OAAO;AAAA,EACpB,oBAAoB;AAAA,IAClB,YAAY;AAAA,IACZ,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,mBAAmB;AAAA,IACnB,eAAe;AAAA,IACf,WAAW;AAAA,EACb;AAAA,EACA,aAAa;AAAA,EACb,SAAS,CAAC,2DAAuB;AACnC;AAEA,MAAM,oBAAoB,4BAAS,KAAK,CAAC,CAAC;AAC1C,kBAAkB,OAAO;AAAA,EACvB,aAAa;AAAA,EACb,SAAS,CAAC,2DAAuB;AACnC;AAEA,MAAM,wBAAwB,4BAAS,KAAK,CAAC,CAAC;AAC9C,sBAAsB,OAAO;AAAA,EAC3B,MAAM;AAAA,EACN,aAAa;AAAA,EACb,SAAS,CAAC,2DAAuB;AACnC;AAEA,MAAM,gBAAgB,4BAAS,KAAK,CAAC,CAAC;AACtC,cAAc,OAAO;AAAA,EACnB,aAAa;AAAA,EACb,WAAW,MAAM,QAAQ,IAAI,WAAW;AAAA,EACxC,SAAS,CAAC,2DAAuB;AACnC;","names":[]}
@@ -1,85 +0,0 @@
1
- import { CryptoAssetRenderPlugin } from "@xyo-network/react-aggregate-price-plugin";
2
- import { UniswapPairsRenderPlugin } from "@xyo-network/react-crypto-market-uniswap-plugin";
3
- import { createPayloadRenderPlugin } from "@xyo-network/react-payload-plugin";
4
- import { payloadData } from "./storyPayload";
5
- import { Template, xyoEmbedStoryBase } from "./storyShared";
6
- const AggregatePricePointer = "https://api.archivist.xyo.network/1948bf4eedf90ee2b8a1f63216b7c6b3b18d7bc2834330d85bcd6ab3d6428a20";
7
- var XyoEmbedPlugin_states_stories_default = {
8
- ...xyoEmbedStoryBase,
9
- title: "embed/EmbedPlugin/states"
10
- };
11
- const testPlugin = createPayloadRenderPlugin({
12
- canRender: () => true,
13
- name: "Test Plugin"
14
- });
15
- const testPlugin1 = createPayloadRenderPlugin({
16
- canRender: () => true,
17
- name: "Test1 Plugin"
18
- });
19
- const failingPlugin = createPayloadRenderPlugin({
20
- canRender: () => true,
21
- components: {
22
- box: {
23
- details: () => {
24
- throw Error("testing Error Boundary");
25
- }
26
- }
27
- },
28
- name: "Failing Plugin"
29
- });
30
- const Default = Template.bind({});
31
- Default.args = {
32
- huri: AggregatePricePointer,
33
- plugins: [testPlugin, testPlugin1]
34
- };
35
- const ApiError = Template.bind({});
36
- ApiError.args = {
37
- huriPayload: "https://api.archivist.xyo.network/9663b2f80395a9e7e95948fdd5988b778a4dcc047202bf67e855ff6cd459b8c",
38
- plugins: [UniswapPairsRenderPlugin]
39
- };
40
- const ThrownError = Template.bind({});
41
- ThrownError.args = {
42
- huriPayload: AggregatePricePointer,
43
- plugins: [failingPlugin]
44
- };
45
- const HiddenElements = Template.bind({});
46
- HiddenElements.args = {
47
- hideElementsConfig: {
48
- hideAvatar: true,
49
- hideCardActions: true,
50
- hideCardHeader: true,
51
- hideRefreshButton: true,
52
- hideTimestamp: true,
53
- hideTitle: true
54
- },
55
- huriPayload: AggregatePricePointer,
56
- plugins: [CryptoAssetRenderPlugin]
57
- };
58
- const WithPassedPayload = Template.bind({});
59
- WithPassedPayload.args = {
60
- huriPayload: payloadData,
61
- plugins: [CryptoAssetRenderPlugin]
62
- };
63
- const WithSetBusyExternally = Template.bind({});
64
- WithSetBusyExternally.args = {
65
- busy: true,
66
- huriPayload: payloadData,
67
- plugins: [CryptoAssetRenderPlugin]
68
- };
69
- const WithOnRefresh = Template.bind({});
70
- WithOnRefresh.args = {
71
- huriPayload: payloadData,
72
- onRefresh: () => console.log("refreshed"),
73
- plugins: [CryptoAssetRenderPlugin]
74
- };
75
- export {
76
- ApiError,
77
- Default,
78
- HiddenElements,
79
- ThrownError,
80
- WithOnRefresh,
81
- WithPassedPayload,
82
- WithSetBusyExternally,
83
- XyoEmbedPlugin_states_stories_default as default
84
- };
85
- //# sourceMappingURL=XyoEmbedPlugin.states.stories.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.tsx"],"sourcesContent":["import { Meta } from '@storybook/react'\nimport { CryptoAssetRenderPlugin } from '@xyo-network/react-aggregate-price-plugin'\nimport { UniswapPairsRenderPlugin } from '@xyo-network/react-crypto-market-uniswap-plugin'\nimport { createPayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\n\nimport { payloadData } from './storyPayload'\nimport { Template, xyoEmbedStoryBase } from './storyShared'\n\nconst AggregatePricePointer = 'https://api.archivist.xyo.network/1948bf4eedf90ee2b8a1f63216b7c6b3b18d7bc2834330d85bcd6ab3d6428a20'\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n ...xyoEmbedStoryBase,\n title: 'embed/EmbedPlugin/states',\n} as Meta\n\nconst testPlugin = createPayloadRenderPlugin({\n canRender: () => true,\n name: 'Test Plugin',\n})\n\nconst testPlugin1 = createPayloadRenderPlugin({\n canRender: () => true,\n name: 'Test1 Plugin',\n})\n\nconst failingPlugin = createPayloadRenderPlugin({\n canRender: () => true,\n components: {\n box: {\n details: () => {\n throw Error('testing Error Boundary')\n },\n },\n },\n name: 'Failing Plugin',\n})\n\nconst Default = Template.bind({})\nDefault.args = {\n huri: AggregatePricePointer,\n plugins: [testPlugin, testPlugin1],\n}\n\nconst ApiError = Template.bind({})\nApiError.args = {\n huriPayload: 'https://api.archivist.xyo.network/9663b2f80395a9e7e95948fdd5988b778a4dcc047202bf67e855ff6cd459b8c',\n plugins: [UniswapPairsRenderPlugin],\n}\n\nconst ThrownError = Template.bind({})\nThrownError.args = {\n huriPayload: AggregatePricePointer,\n plugins: [failingPlugin],\n}\n\nconst HiddenElements = Template.bind({})\nHiddenElements.args = {\n hideElementsConfig: {\n hideAvatar: true,\n hideCardActions: true,\n hideCardHeader: true,\n hideRefreshButton: true,\n hideTimestamp: true,\n hideTitle: true,\n },\n huriPayload: AggregatePricePointer,\n plugins: [CryptoAssetRenderPlugin],\n}\n\nconst WithPassedPayload = Template.bind({})\nWithPassedPayload.args = {\n huriPayload: payloadData,\n plugins: [CryptoAssetRenderPlugin],\n}\n\nconst WithSetBusyExternally = Template.bind({})\nWithSetBusyExternally.args = {\n busy: true,\n huriPayload: payloadData,\n plugins: [CryptoAssetRenderPlugin],\n}\n\nconst WithOnRefresh = Template.bind({})\nWithOnRefresh.args = {\n huriPayload: payloadData,\n onRefresh: () => console.log('refreshed'),\n plugins: [CryptoAssetRenderPlugin],\n}\n\nexport { ApiError, Default, HiddenElements, ThrownError, WithOnRefresh, WithPassedPayload, WithSetBusyExternally }\n"],"mappings":"AACA,SAAS,+BAA+B;AACxC,SAAS,gCAAgC;AACzC,SAAS,iCAAiC;AAE1C,SAAS,mBAAmB;AAC5B,SAAS,UAAU,yBAAyB;AAE5C,MAAM,wBAAwB;AAG9B,IAAO,wCAAQ;AAAA,EACb,GAAG;AAAA,EACH,OAAO;AACT;AAEA,MAAM,aAAa,0BAA0B;AAAA,EAC3C,WAAW,MAAM;AAAA,EACjB,MAAM;AACR,CAAC;AAED,MAAM,cAAc,0BAA0B;AAAA,EAC5C,WAAW,MAAM;AAAA,EACjB,MAAM;AACR,CAAC;AAED,MAAM,gBAAgB,0BAA0B;AAAA,EAC9C,WAAW,MAAM;AAAA,EACjB,YAAY;AAAA,IACV,KAAK;AAAA,MACH,SAAS,MAAM;AACb,cAAM,MAAM,wBAAwB;AAAA,MACtC;AAAA,IACF;AAAA,EACF;AAAA,EACA,MAAM;AACR,CAAC;AAED,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,OAAO;AAAA,EACb,MAAM;AAAA,EACN,SAAS,CAAC,YAAY,WAAW;AACnC;AAEA,MAAM,WAAW,SAAS,KAAK,CAAC,CAAC;AACjC,SAAS,OAAO;AAAA,EACd,aAAa;AAAA,EACb,SAAS,CAAC,wBAAwB;AACpC;AAEA,MAAM,cAAc,SAAS,KAAK,CAAC,CAAC;AACpC,YAAY,OAAO;AAAA,EACjB,aAAa;AAAA,EACb,SAAS,CAAC,aAAa;AACzB;AAEA,MAAM,iBAAiB,SAAS,KAAK,CAAC,CAAC;AACvC,eAAe,OAAO;AAAA,EACpB,oBAAoB;AAAA,IAClB,YAAY;AAAA,IACZ,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,mBAAmB;AAAA,IACnB,eAAe;AAAA,IACf,WAAW;AAAA,EACb;AAAA,EACA,aAAa;AAAA,EACb,SAAS,CAAC,uBAAuB;AACnC;AAEA,MAAM,oBAAoB,SAAS,KAAK,CAAC,CAAC;AAC1C,kBAAkB,OAAO;AAAA,EACvB,aAAa;AAAA,EACb,SAAS,CAAC,uBAAuB;AACnC;AAEA,MAAM,wBAAwB,SAAS,KAAK,CAAC,CAAC;AAC9C,sBAAsB,OAAO;AAAA,EAC3B,MAAM;AAAA,EACN,aAAa;AAAA,EACb,SAAS,CAAC,uBAAuB;AACnC;AAEA,MAAM,gBAAgB,SAAS,KAAK,CAAC,CAAC;AACtC,cAAc,OAAO;AAAA,EACnB,aAAa;AAAA,EACb,WAAW,MAAM,QAAQ,IAAI,WAAW;AAAA,EACxC,SAAS,CAAC,uBAAuB;AACnC;","names":[]}
@@ -1,20 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { BrowserRouter } from "react-router-dom";
3
- import { ApiEmbedPluginCard } from "../embed-card";
4
- const xyoEmbedStoryBase = {
5
- argTypes: {},
6
- component: ApiEmbedPluginCard,
7
- parameters: {
8
- docs: {
9
- page: null
10
- }
11
- }
12
- };
13
- const Template = (args) => {
14
- return /* @__PURE__ */ jsx(BrowserRouter, { children: /* @__PURE__ */ jsx(ApiEmbedPluginCard, { ...args }) });
15
- };
16
- export {
17
- Template,
18
- xyoEmbedStoryBase
19
- };
20
- //# sourceMappingURL=storyShared.mjs.map
@@ -1 +0,0 @@
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":"AAkBM;AAjBN,SAAS,qBAAqB;AAE9B,SAAS,0BAA0B;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,oBAAC,iBACC,8BAAC,sBAAoB,GAAG,MAAM,GAChC;AAEJ;","names":[]}
@@ -1,3 +0,0 @@
1
- export * from "./embed-card";
2
- export * from "./EmbedPlugin";
3
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from './embed-card'\nexport * from './EmbedPlugin'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
@@ -1,18 +0,0 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
- import { Alert } from "@mui/material";
3
- import { useValidatePayload } from "../../contexts";
4
- const ValidatePayloadAlert = ({ children, ...props }) => {
5
- const { validPayload, enabled, schema } = useValidatePayload();
6
- if (enabled && validPayload === false) {
7
- return /* @__PURE__ */ jsxs(Alert, { severity: "error", title: "Invalid Payload!", ...props, children: [
8
- "Payload schema claimed to be ",
9
- schema,
10
- " but failed to validate."
11
- ] });
12
- }
13
- return /* @__PURE__ */ jsx(Fragment, { children });
14
- };
15
- export {
16
- ValidatePayloadAlert
17
- };
18
- //# sourceMappingURL=ValidatePayload.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/validation-alerts/ValidatePayload.tsx"],"sourcesContent":["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"],"mappings":"AAUM,SAMG,eANH;AAVN,SAAS,aAAyB;AAGlC,SAAS,0BAA0B;AAE5B,MAAM,uBAA2D,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AAClG,QAAM,EAAE,cAAc,SAAS,OAAO,IAAI,mBAAmB;AAE7D,MAAI,WAAW,iBAAiB,OAAO;AACrC,WACE,qBAAC,SAAM,UAAS,SAAQ,OAAM,oBAAoB,GAAG,OAAO;AAAA;AAAA,MAC5B;AAAA,MAAO;AAAA,OACvC;AAAA,EAEJ;AAEA,SAAO,gCAAG,UAAS;AACrB;","names":[]}