@xyo-network/react-embed 2.61.0 → 2.62.3

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/components/EmbedPlugin.d.mts.map +1 -0
  2. package/dist/components/EmbedPlugin.d.ts +5 -0
  3. package/dist/components/EmbedPlugin.d.ts.map +1 -0
  4. package/dist/components/EmbedResolver.d.mts.map +1 -0
  5. package/dist/components/EmbedResolver.d.ts +4 -0
  6. package/dist/components/EmbedResolver.d.ts.map +1 -0
  7. package/dist/components/controls/EmbedFormControl.d.mts.map +1 -0
  8. package/dist/components/controls/EmbedFormControl.d.ts +10 -0
  9. package/dist/components/controls/EmbedFormControl.d.ts.map +1 -0
  10. package/dist/components/controls/ListModeSelect.d.mts.map +1 -0
  11. package/dist/components/controls/ListModeSelect.d.ts +6 -0
  12. package/dist/components/controls/ListModeSelect.d.ts.map +1 -0
  13. package/dist/components/controls/RenderSelect.d.mts.map +1 -0
  14. package/dist/components/controls/RenderSelect.d.ts +4 -0
  15. package/dist/components/controls/RenderSelect.d.ts.map +1 -0
  16. package/dist/components/controls/index.d.mts.map +1 -0
  17. package/dist/{esm/components/controls/index.js → components/controls/index.d.ts} +1 -1
  18. package/dist/components/controls/index.d.ts.map +1 -0
  19. package/dist/components/embed-card/EmbedCardResolver.d.mts.map +1 -0
  20. package/dist/components/embed-card/EmbedCardResolver.d.ts +5 -0
  21. package/dist/components/embed-card/EmbedCardResolver.d.ts.map +1 -0
  22. package/dist/components/embed-card/EmbedPluginCard.d.mts.map +1 -0
  23. package/dist/components/embed-card/EmbedPluginCard.d.ts +11 -0
  24. package/dist/components/embed-card/EmbedPluginCard.d.ts.map +1 -0
  25. package/dist/components/embed-card/card/BusyCard.d.mts.map +1 -0
  26. package/dist/components/embed-card/card/BusyCard.d.ts +11 -0
  27. package/dist/components/embed-card/card/BusyCard.d.ts.map +1 -0
  28. package/dist/components/embed-card/card/EmbedCardHeader.d.mts.map +1 -0
  29. package/dist/components/embed-card/card/EmbedCardHeader.d.ts +4 -0
  30. package/dist/components/embed-card/card/EmbedCardHeader.d.ts.map +1 -0
  31. package/dist/components/embed-card/card/EmbedPluginCard.d.mts.map +1 -0
  32. package/dist/components/embed-card/card/EmbedPluginCard.d.ts +4 -0
  33. package/dist/components/embed-card/card/EmbedPluginCard.d.ts.map +1 -0
  34. package/dist/components/embed-card/card/index.d.mts.map +1 -0
  35. package/dist/{esm/components/embed-card/card/index.js → components/embed-card/card/index.d.ts} +1 -1
  36. package/dist/components/embed-card/card/index.d.ts.map +1 -0
  37. package/dist/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.mts.map +1 -0
  38. package/dist/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts +10 -0
  39. package/dist/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts.map +1 -0
  40. package/dist/components/embed-card/error-handling/EmbedErrorCard.d.mts.map +1 -0
  41. package/dist/components/embed-card/error-handling/EmbedErrorCard.d.ts +15 -0
  42. package/dist/components/embed-card/error-handling/EmbedErrorCard.d.ts.map +1 -0
  43. package/dist/components/embed-card/error-handling/index.d.mts.map +1 -0
  44. package/dist/{esm/components/embed-card/error-handling/index.js → components/embed-card/error-handling/index.d.ts} +1 -1
  45. package/dist/components/embed-card/error-handling/index.d.ts.map +1 -0
  46. package/dist/components/embed-card/index.d.mts.map +1 -0
  47. package/dist/{esm/components/embed-card/index.js → components/embed-card/index.d.ts} +1 -1
  48. package/dist/components/embed-card/index.d.ts.map +1 -0
  49. package/dist/components/embed-card/menu/EmbedMenu.d.mts.map +1 -0
  50. package/dist/components/embed-card/menu/EmbedMenu.d.ts +4 -0
  51. package/dist/components/embed-card/menu/EmbedMenu.d.ts.map +1 -0
  52. package/dist/components/embed-card/menu/JsonMenuItem.d.mts.map +1 -0
  53. package/dist/components/embed-card/menu/JsonMenuItem.d.ts +4 -0
  54. package/dist/components/embed-card/menu/JsonMenuItem.d.ts.map +1 -0
  55. package/dist/components/embed-card/menu/index.d.mts.map +1 -0
  56. package/dist/components/embed-card/menu/index.d.ts +2 -0
  57. package/dist/components/embed-card/menu/index.d.ts.map +1 -0
  58. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.mts +6 -0
  59. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.mts.map +1 -0
  60. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.ts +6 -0
  61. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.ts.map +1 -0
  62. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.mts +11 -0
  63. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.mts.map +1 -0
  64. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.ts +11 -0
  65. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.ts.map +1 -0
  66. package/dist/components/embed-plugin-stories/storyPayload.d.mts.map +1 -0
  67. package/dist/components/embed-plugin-stories/storyPayload.d.ts +126 -0
  68. package/dist/components/embed-plugin-stories/storyPayload.d.ts.map +1 -0
  69. package/dist/components/embed-plugin-stories/storyShared.d.mts.map +1 -0
  70. package/dist/components/embed-plugin-stories/storyShared.d.ts +5 -0
  71. package/dist/components/embed-plugin-stories/storyShared.d.ts.map +1 -0
  72. package/dist/components/index.d.mts.map +1 -0
  73. package/dist/{esm/components/index.js → components/index.d.ts} +1 -1
  74. package/dist/components/index.d.ts.map +1 -0
  75. package/dist/components/validation-alerts/ValidatePayload.d.mts.map +1 -0
  76. package/dist/components/validation-alerts/ValidatePayload.d.ts +5 -0
  77. package/dist/components/validation-alerts/ValidatePayload.d.ts.map +1 -0
  78. package/dist/components/validation-alerts/ValidatePlugins.d.mts.map +1 -0
  79. package/dist/components/validation-alerts/ValidatePlugins.d.ts +5 -0
  80. package/dist/components/validation-alerts/ValidatePlugins.d.ts.map +1 -0
  81. package/dist/components/validation-alerts/index.d.mts.map +1 -0
  82. package/dist/{esm/components/validation-alerts/index.js → components/validation-alerts/index.d.ts} +1 -1
  83. package/dist/components/validation-alerts/index.d.ts.map +1 -0
  84. package/dist/contexts/EmbedPluginContext/Context.d.mts.map +1 -0
  85. package/dist/contexts/EmbedPluginContext/Context.d.ts +4 -0
  86. package/dist/contexts/EmbedPluginContext/Context.d.ts.map +1 -0
  87. package/dist/contexts/EmbedPluginContext/Provider.d.mts.map +1 -0
  88. package/dist/contexts/EmbedPluginContext/Provider.d.ts +7 -0
  89. package/dist/contexts/EmbedPluginContext/Provider.d.ts.map +1 -0
  90. package/dist/contexts/EmbedPluginContext/State.d.mts.map +1 -0
  91. package/dist/contexts/EmbedPluginContext/State.d.ts +33 -0
  92. package/dist/contexts/EmbedPluginContext/State.d.ts.map +1 -0
  93. package/dist/contexts/EmbedPluginContext/index.d.mts.map +1 -0
  94. package/dist/contexts/EmbedPluginContext/index.d.ts.map +1 -0
  95. package/dist/contexts/EmbedPluginContext/use.d.mts.map +1 -0
  96. package/dist/contexts/EmbedPluginContext/use.d.ts +2 -0
  97. package/dist/contexts/EmbedPluginContext/use.d.ts.map +1 -0
  98. package/dist/contexts/RefreshPayloadContext/Context.d.mts.map +1 -0
  99. package/dist/contexts/RefreshPayloadContext/Context.d.ts +4 -0
  100. package/dist/contexts/RefreshPayloadContext/Context.d.ts.map +1 -0
  101. package/dist/contexts/RefreshPayloadContext/Provider.d.mts.map +1 -0
  102. package/dist/contexts/RefreshPayloadContext/Provider.d.ts +8 -0
  103. package/dist/contexts/RefreshPayloadContext/Provider.d.ts.map +1 -0
  104. package/dist/contexts/RefreshPayloadContext/State.d.mts.map +1 -0
  105. package/dist/contexts/RefreshPayloadContext/State.d.ts +8 -0
  106. package/dist/contexts/RefreshPayloadContext/State.d.ts.map +1 -0
  107. package/dist/contexts/RefreshPayloadContext/index.d.mts.map +1 -0
  108. package/dist/contexts/RefreshPayloadContext/index.d.ts.map +1 -0
  109. package/dist/contexts/RefreshPayloadContext/use.d.mts.map +1 -0
  110. package/dist/contexts/RefreshPayloadContext/use.d.ts +2 -0
  111. package/dist/contexts/RefreshPayloadContext/use.d.ts.map +1 -0
  112. package/dist/contexts/ResolvePayloadContext/Context.d.mts.map +1 -0
  113. package/dist/contexts/ResolvePayloadContext/Context.d.ts +4 -0
  114. package/dist/contexts/ResolvePayloadContext/Context.d.ts.map +1 -0
  115. package/dist/contexts/ResolvePayloadContext/Provider.d.mts.map +1 -0
  116. package/dist/contexts/ResolvePayloadContext/Provider.d.ts +6 -0
  117. package/dist/contexts/ResolvePayloadContext/Provider.d.ts.map +1 -0
  118. package/dist/contexts/ResolvePayloadContext/State.d.mts.map +1 -0
  119. package/dist/contexts/ResolvePayloadContext/State.d.ts +13 -0
  120. package/dist/contexts/ResolvePayloadContext/State.d.ts.map +1 -0
  121. package/dist/{esm/contexts/EmbedPluginContext/index.js → contexts/ResolvePayloadContext/index.d.mts} +1 -1
  122. package/dist/contexts/ResolvePayloadContext/index.d.mts.map +1 -0
  123. package/dist/{esm/contexts/ResolvePayloadContext/index.js → contexts/ResolvePayloadContext/index.d.ts} +1 -1
  124. package/dist/{types/contexts/EmbedPluginContext → contexts/ResolvePayloadContext}/index.d.ts.map +1 -1
  125. package/dist/contexts/ResolvePayloadContext/use.d.mts.map +1 -0
  126. package/dist/contexts/ResolvePayloadContext/use.d.ts +2 -0
  127. package/dist/contexts/ResolvePayloadContext/use.d.ts.map +1 -0
  128. package/dist/contexts/ValidatePayloadContext/Context.d.mts.map +1 -0
  129. package/dist/contexts/ValidatePayloadContext/Context.d.ts +4 -0
  130. package/dist/contexts/ValidatePayloadContext/Context.d.ts.map +1 -0
  131. package/dist/contexts/ValidatePayloadContext/Provider.d.mts.map +1 -0
  132. package/dist/contexts/ValidatePayloadContext/Provider.d.ts +7 -0
  133. package/dist/contexts/ValidatePayloadContext/Provider.d.ts.map +1 -0
  134. package/dist/contexts/ValidatePayloadContext/Provider.stories.d.mts +15 -0
  135. package/dist/contexts/ValidatePayloadContext/Provider.stories.d.mts.map +1 -0
  136. package/dist/contexts/ValidatePayloadContext/Provider.stories.d.ts +15 -0
  137. package/dist/contexts/ValidatePayloadContext/Provider.stories.d.ts.map +1 -0
  138. package/dist/contexts/ValidatePayloadContext/State.d.mts.map +1 -0
  139. package/dist/contexts/ValidatePayloadContext/State.d.ts +7 -0
  140. package/dist/contexts/ValidatePayloadContext/State.d.ts.map +1 -0
  141. package/dist/{esm/contexts/RefreshPayloadContext/index.js → contexts/ValidatePayloadContext/index.d.mts} +1 -1
  142. package/dist/contexts/ValidatePayloadContext/index.d.mts.map +1 -0
  143. package/dist/{esm/contexts/ValidatePayloadContext/index.js → contexts/ValidatePayloadContext/index.d.ts} +1 -1
  144. package/dist/contexts/ValidatePayloadContext/index.d.ts.map +1 -0
  145. package/dist/contexts/ValidatePayloadContext/use.d.mts.map +1 -0
  146. package/dist/contexts/ValidatePayloadContext/use.d.ts +2 -0
  147. package/dist/contexts/ValidatePayloadContext/use.d.ts.map +1 -0
  148. package/dist/contexts/index.d.mts.map +1 -0
  149. package/dist/{esm/contexts/index.js → contexts/index.d.ts} +1 -1
  150. package/dist/contexts/index.d.ts.map +1 -0
  151. package/dist/docs.json +4855 -0
  152. package/dist/{esm/index.js → index.d.mts} +1 -1
  153. package/dist/index.d.mts.map +1 -0
  154. package/dist/index.d.ts +4 -0
  155. package/dist/index.d.ts.map +1 -0
  156. package/dist/index.js +543 -0
  157. package/dist/index.js.map +1 -0
  158. package/dist/index.mjs +493 -0
  159. package/dist/index.mjs.map +1 -0
  160. package/dist/types/EmbedPluginProps.d.mts.map +1 -0
  161. package/dist/types/EmbedPluginProps.d.ts +10 -0
  162. package/dist/types/EmbedPluginProps.d.ts.map +1 -0
  163. package/dist/types/index.d.mts.map +1 -0
  164. package/dist/types/index.d.ts +1 -3
  165. package/dist/types/index.d.ts.map +1 -1
  166. package/package.json +36 -28
  167. package/dist/cjs/components/EmbedPlugin.js +0 -19
  168. package/dist/cjs/components/EmbedPlugin.js.map +0 -1
  169. package/dist/cjs/components/EmbedResolver.js +0 -12
  170. package/dist/cjs/components/EmbedResolver.js.map +0 -1
  171. package/dist/cjs/components/controls/EmbedFormControl.js +0 -12
  172. package/dist/cjs/components/controls/EmbedFormControl.js.map +0 -1
  173. package/dist/cjs/components/controls/ListModeSelect.js +0 -21
  174. package/dist/cjs/components/controls/ListModeSelect.js.map +0 -1
  175. package/dist/cjs/components/controls/RenderSelect.js +0 -15
  176. package/dist/cjs/components/controls/RenderSelect.js.map +0 -1
  177. package/dist/cjs/components/controls/index.js +0 -7
  178. package/dist/cjs/components/controls/index.js.map +0 -1
  179. package/dist/cjs/components/embed-card/EmbedCardResolver.js +0 -19
  180. package/dist/cjs/components/embed-card/EmbedCardResolver.js.map +0 -1
  181. package/dist/cjs/components/embed-card/EmbedPluginCard.js +0 -35
  182. package/dist/cjs/components/embed-card/EmbedPluginCard.js.map +0 -1
  183. package/dist/cjs/components/embed-card/card/BusyCard.js +0 -15
  184. package/dist/cjs/components/embed-card/card/BusyCard.js.map +0 -1
  185. package/dist/cjs/components/embed-card/card/EmbedCardHeader.js +0 -21
  186. package/dist/cjs/components/embed-card/card/EmbedCardHeader.js.map +0 -1
  187. package/dist/cjs/components/embed-card/card/EmbedPluginCard.js +0 -23
  188. package/dist/cjs/components/embed-card/card/EmbedPluginCard.js.map +0 -1
  189. package/dist/cjs/components/embed-card/card/index.js +0 -7
  190. package/dist/cjs/components/embed-card/card/index.js.map +0 -1
  191. package/dist/cjs/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +0 -17
  192. package/dist/cjs/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +0 -1
  193. package/dist/cjs/components/embed-card/error-handling/EmbedErrorCard.js +0 -16
  194. package/dist/cjs/components/embed-card/error-handling/EmbedErrorCard.js.map +0 -1
  195. package/dist/cjs/components/embed-card/error-handling/index.js +0 -6
  196. package/dist/cjs/components/embed-card/error-handling/index.js.map +0 -1
  197. package/dist/cjs/components/embed-card/index.js +0 -6
  198. package/dist/cjs/components/embed-card/index.js.map +0 -1
  199. package/dist/cjs/components/embed-card/menu/EmbedMenu.js +0 -23
  200. package/dist/cjs/components/embed-card/menu/EmbedMenu.js.map +0 -1
  201. package/dist/cjs/components/embed-card/menu/JsonMenuItem.js +0 -14
  202. package/dist/cjs/components/embed-card/menu/JsonMenuItem.js.map +0 -1
  203. package/dist/cjs/components/embed-card/menu/index.js +0 -5
  204. package/dist/cjs/components/embed-card/menu/index.js.map +0 -1
  205. package/dist/cjs/components/embed-plugin-stories/storyPayload.js +0 -25
  206. package/dist/cjs/components/embed-plugin-stories/storyPayload.js.map +0 -1
  207. package/dist/cjs/components/embed-plugin-stories/storyShared.js +0 -20
  208. package/dist/cjs/components/embed-plugin-stories/storyShared.js.map +0 -1
  209. package/dist/cjs/components/index.js +0 -6
  210. package/dist/cjs/components/index.js.map +0 -1
  211. package/dist/cjs/components/validation-alerts/ValidatePayload.js +0 -17
  212. package/dist/cjs/components/validation-alerts/ValidatePayload.js.map +0 -1
  213. package/dist/cjs/components/validation-alerts/ValidatePlugins.js +0 -18
  214. package/dist/cjs/components/validation-alerts/ValidatePlugins.js.map +0 -1
  215. package/dist/cjs/components/validation-alerts/index.js +0 -6
  216. package/dist/cjs/components/validation-alerts/index.js.map +0 -1
  217. package/dist/cjs/contexts/EmbedPluginContext/Context.js +0 -6
  218. package/dist/cjs/contexts/EmbedPluginContext/Context.js.map +0 -1
  219. package/dist/cjs/contexts/EmbedPluginContext/Provider.js +0 -24
  220. package/dist/cjs/contexts/EmbedPluginContext/Provider.js.map +0 -1
  221. package/dist/cjs/contexts/EmbedPluginContext/State.js +0 -3
  222. package/dist/cjs/contexts/EmbedPluginContext/State.js.map +0 -1
  223. package/dist/cjs/contexts/EmbedPluginContext/index.js +0 -8
  224. package/dist/cjs/contexts/EmbedPluginContext/index.js.map +0 -1
  225. package/dist/cjs/contexts/EmbedPluginContext/use.js +0 -8
  226. package/dist/cjs/contexts/EmbedPluginContext/use.js.map +0 -1
  227. package/dist/cjs/contexts/RefreshPayloadContext/Context.js +0 -6
  228. package/dist/cjs/contexts/RefreshPayloadContext/Context.js.map +0 -1
  229. package/dist/cjs/contexts/RefreshPayloadContext/Provider.js +0 -12
  230. package/dist/cjs/contexts/RefreshPayloadContext/Provider.js.map +0 -1
  231. package/dist/cjs/contexts/RefreshPayloadContext/State.js +0 -3
  232. package/dist/cjs/contexts/RefreshPayloadContext/State.js.map +0 -1
  233. package/dist/cjs/contexts/RefreshPayloadContext/index.js +0 -7
  234. package/dist/cjs/contexts/RefreshPayloadContext/index.js.map +0 -1
  235. package/dist/cjs/contexts/RefreshPayloadContext/use.js +0 -8
  236. package/dist/cjs/contexts/RefreshPayloadContext/use.js.map +0 -1
  237. package/dist/cjs/contexts/ResolvePayloadContext/Context.js +0 -6
  238. package/dist/cjs/contexts/ResolvePayloadContext/Context.js.map +0 -1
  239. package/dist/cjs/contexts/ResolvePayloadContext/Provider.js +0 -56
  240. package/dist/cjs/contexts/ResolvePayloadContext/Provider.js.map +0 -1
  241. package/dist/cjs/contexts/ResolvePayloadContext/State.js +0 -3
  242. package/dist/cjs/contexts/ResolvePayloadContext/State.js.map +0 -1
  243. package/dist/cjs/contexts/ResolvePayloadContext/index.js +0 -8
  244. package/dist/cjs/contexts/ResolvePayloadContext/index.js.map +0 -1
  245. package/dist/cjs/contexts/ResolvePayloadContext/use.js +0 -8
  246. package/dist/cjs/contexts/ResolvePayloadContext/use.js.map +0 -1
  247. package/dist/cjs/contexts/ValidatePayloadContext/Context.js +0 -6
  248. package/dist/cjs/contexts/ValidatePayloadContext/Context.js.map +0 -1
  249. package/dist/cjs/contexts/ValidatePayloadContext/Provider.js +0 -32
  250. package/dist/cjs/contexts/ValidatePayloadContext/Provider.js.map +0 -1
  251. package/dist/cjs/contexts/ValidatePayloadContext/State.js +0 -3
  252. package/dist/cjs/contexts/ValidatePayloadContext/State.js.map +0 -1
  253. package/dist/cjs/contexts/ValidatePayloadContext/index.js +0 -7
  254. package/dist/cjs/contexts/ValidatePayloadContext/index.js.map +0 -1
  255. package/dist/cjs/contexts/ValidatePayloadContext/use.js +0 -8
  256. package/dist/cjs/contexts/ValidatePayloadContext/use.js.map +0 -1
  257. package/dist/cjs/contexts/index.js +0 -8
  258. package/dist/cjs/contexts/index.js.map +0 -1
  259. package/dist/cjs/index.js +0 -7
  260. package/dist/cjs/index.js.map +0 -1
  261. package/dist/cjs/types/EmbedPluginProps.js +0 -3
  262. package/dist/cjs/types/EmbedPluginProps.js.map +0 -1
  263. package/dist/cjs/types/index.js +0 -5
  264. package/dist/cjs/types/index.js.map +0 -1
  265. package/dist/esm/components/EmbedPlugin.js +0 -15
  266. package/dist/esm/components/EmbedPlugin.js.map +0 -1
  267. package/dist/esm/components/EmbedResolver.js +0 -8
  268. package/dist/esm/components/EmbedResolver.js.map +0 -1
  269. package/dist/esm/components/controls/EmbedFormControl.js +0 -6
  270. package/dist/esm/components/controls/EmbedFormControl.js.map +0 -1
  271. package/dist/esm/components/controls/ListModeSelect.js +0 -16
  272. package/dist/esm/components/controls/ListModeSelect.js.map +0 -1
  273. package/dist/esm/components/controls/RenderSelect.js +0 -11
  274. package/dist/esm/components/controls/RenderSelect.js.map +0 -1
  275. package/dist/esm/components/controls/index.js.map +0 -1
  276. package/dist/esm/components/embed-card/EmbedCardResolver.js +0 -13
  277. package/dist/esm/components/embed-card/EmbedCardResolver.js.map +0 -1
  278. package/dist/esm/components/embed-card/EmbedPluginCard.js +0 -28
  279. package/dist/esm/components/embed-card/EmbedPluginCard.js.map +0 -1
  280. package/dist/esm/components/embed-card/card/BusyCard.js +0 -9
  281. package/dist/esm/components/embed-card/card/BusyCard.js.map +0 -1
  282. package/dist/esm/components/embed-card/card/EmbedCardHeader.js +0 -15
  283. package/dist/esm/components/embed-card/card/EmbedCardHeader.js.map +0 -1
  284. package/dist/esm/components/embed-card/card/EmbedPluginCard.js +0 -16
  285. package/dist/esm/components/embed-card/card/EmbedPluginCard.js.map +0 -1
  286. package/dist/esm/components/embed-card/card/index.js.map +0 -1
  287. package/dist/esm/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +0 -10
  288. package/dist/esm/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +0 -1
  289. package/dist/esm/components/embed-card/error-handling/EmbedErrorCard.js +0 -11
  290. package/dist/esm/components/embed-card/error-handling/EmbedErrorCard.js.map +0 -1
  291. package/dist/esm/components/embed-card/error-handling/index.js.map +0 -1
  292. package/dist/esm/components/embed-card/index.js.map +0 -1
  293. package/dist/esm/components/embed-card/menu/EmbedMenu.js +0 -18
  294. package/dist/esm/components/embed-card/menu/EmbedMenu.js.map +0 -1
  295. package/dist/esm/components/embed-card/menu/JsonMenuItem.js +0 -9
  296. package/dist/esm/components/embed-card/menu/JsonMenuItem.js.map +0 -1
  297. package/dist/esm/components/embed-card/menu/index.js +0 -2
  298. package/dist/esm/components/embed-card/menu/index.js.map +0 -1
  299. package/dist/esm/components/embed-plugin-stories/storyPayload.js +0 -22
  300. package/dist/esm/components/embed-plugin-stories/storyPayload.js.map +0 -1
  301. package/dist/esm/components/embed-plugin-stories/storyShared.js +0 -16
  302. package/dist/esm/components/embed-plugin-stories/storyShared.js.map +0 -1
  303. package/dist/esm/components/index.js.map +0 -1
  304. package/dist/esm/components/validation-alerts/ValidatePayload.js +0 -11
  305. package/dist/esm/components/validation-alerts/ValidatePayload.js.map +0 -1
  306. package/dist/esm/components/validation-alerts/ValidatePlugins.js +0 -12
  307. package/dist/esm/components/validation-alerts/ValidatePlugins.js.map +0 -1
  308. package/dist/esm/components/validation-alerts/index.js.map +0 -1
  309. package/dist/esm/contexts/EmbedPluginContext/Context.js +0 -3
  310. package/dist/esm/contexts/EmbedPluginContext/Context.js.map +0 -1
  311. package/dist/esm/contexts/EmbedPluginContext/Provider.js +0 -20
  312. package/dist/esm/contexts/EmbedPluginContext/Provider.js.map +0 -1
  313. package/dist/esm/contexts/EmbedPluginContext/State.js +0 -2
  314. package/dist/esm/contexts/EmbedPluginContext/State.js.map +0 -1
  315. package/dist/esm/contexts/EmbedPluginContext/index.js.map +0 -1
  316. package/dist/esm/contexts/EmbedPluginContext/use.js +0 -4
  317. package/dist/esm/contexts/EmbedPluginContext/use.js.map +0 -1
  318. package/dist/esm/contexts/RefreshPayloadContext/Context.js +0 -3
  319. package/dist/esm/contexts/RefreshPayloadContext/Context.js.map +0 -1
  320. package/dist/esm/contexts/RefreshPayloadContext/Provider.js +0 -8
  321. package/dist/esm/contexts/RefreshPayloadContext/Provider.js.map +0 -1
  322. package/dist/esm/contexts/RefreshPayloadContext/State.js +0 -2
  323. package/dist/esm/contexts/RefreshPayloadContext/State.js.map +0 -1
  324. package/dist/esm/contexts/RefreshPayloadContext/index.js.map +0 -1
  325. package/dist/esm/contexts/RefreshPayloadContext/use.js +0 -4
  326. package/dist/esm/contexts/RefreshPayloadContext/use.js.map +0 -1
  327. package/dist/esm/contexts/ResolvePayloadContext/Context.js +0 -3
  328. package/dist/esm/contexts/ResolvePayloadContext/Context.js.map +0 -1
  329. package/dist/esm/contexts/ResolvePayloadContext/Provider.js +0 -51
  330. package/dist/esm/contexts/ResolvePayloadContext/Provider.js.map +0 -1
  331. package/dist/esm/contexts/ResolvePayloadContext/State.js +0 -2
  332. package/dist/esm/contexts/ResolvePayloadContext/State.js.map +0 -1
  333. package/dist/esm/contexts/ResolvePayloadContext/index.js.map +0 -1
  334. package/dist/esm/contexts/ResolvePayloadContext/use.js +0 -4
  335. package/dist/esm/contexts/ResolvePayloadContext/use.js.map +0 -1
  336. package/dist/esm/contexts/ValidatePayloadContext/Context.js +0 -3
  337. package/dist/esm/contexts/ValidatePayloadContext/Context.js.map +0 -1
  338. package/dist/esm/contexts/ValidatePayloadContext/Provider.js +0 -27
  339. package/dist/esm/contexts/ValidatePayloadContext/Provider.js.map +0 -1
  340. package/dist/esm/contexts/ValidatePayloadContext/State.js +0 -2
  341. package/dist/esm/contexts/ValidatePayloadContext/State.js.map +0 -1
  342. package/dist/esm/contexts/ValidatePayloadContext/index.js.map +0 -1
  343. package/dist/esm/contexts/ValidatePayloadContext/use.js +0 -4
  344. package/dist/esm/contexts/ValidatePayloadContext/use.js.map +0 -1
  345. package/dist/esm/contexts/index.js.map +0 -1
  346. package/dist/esm/index.js.map +0 -1
  347. package/dist/esm/types/EmbedPluginProps.js +0 -2
  348. package/dist/esm/types/EmbedPluginProps.js.map +0 -1
  349. package/dist/esm/types/index.js +0 -2
  350. package/dist/esm/types/index.js.map +0 -1
  351. package/dist/types/components/EmbedPlugin.d.ts.map +0 -1
  352. package/dist/types/components/EmbedResolver.d.ts.map +0 -1
  353. package/dist/types/components/controls/EmbedFormControl.d.ts.map +0 -1
  354. package/dist/types/components/controls/ListModeSelect.d.ts.map +0 -1
  355. package/dist/types/components/controls/RenderSelect.d.ts.map +0 -1
  356. package/dist/types/components/controls/index.d.ts.map +0 -1
  357. package/dist/types/components/embed-card/EmbedCardResolver.d.ts.map +0 -1
  358. package/dist/types/components/embed-card/EmbedPluginCard.d.ts.map +0 -1
  359. package/dist/types/components/embed-card/card/BusyCard.d.ts.map +0 -1
  360. package/dist/types/components/embed-card/card/EmbedCardHeader.d.ts.map +0 -1
  361. package/dist/types/components/embed-card/card/EmbedPluginCard.d.ts.map +0 -1
  362. package/dist/types/components/embed-card/card/index.d.ts.map +0 -1
  363. package/dist/types/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts.map +0 -1
  364. package/dist/types/components/embed-card/error-handling/EmbedErrorCard.d.ts.map +0 -1
  365. package/dist/types/components/embed-card/error-handling/index.d.ts.map +0 -1
  366. package/dist/types/components/embed-card/index.d.ts.map +0 -1
  367. package/dist/types/components/embed-card/menu/EmbedMenu.d.ts.map +0 -1
  368. package/dist/types/components/embed-card/menu/JsonMenuItem.d.ts.map +0 -1
  369. package/dist/types/components/embed-card/menu/index.d.ts.map +0 -1
  370. package/dist/types/components/embed-plugin-stories/storyPayload.d.ts.map +0 -1
  371. package/dist/types/components/embed-plugin-stories/storyShared.d.ts.map +0 -1
  372. package/dist/types/components/index.d.ts.map +0 -1
  373. package/dist/types/components/validation-alerts/ValidatePayload.d.ts.map +0 -1
  374. package/dist/types/components/validation-alerts/ValidatePlugins.d.ts.map +0 -1
  375. package/dist/types/components/validation-alerts/index.d.ts.map +0 -1
  376. package/dist/types/contexts/EmbedPluginContext/Context.d.ts.map +0 -1
  377. package/dist/types/contexts/EmbedPluginContext/Provider.d.ts.map +0 -1
  378. package/dist/types/contexts/EmbedPluginContext/State.d.ts.map +0 -1
  379. package/dist/types/contexts/EmbedPluginContext/use.d.ts.map +0 -1
  380. package/dist/types/contexts/RefreshPayloadContext/Context.d.ts.map +0 -1
  381. package/dist/types/contexts/RefreshPayloadContext/Provider.d.ts.map +0 -1
  382. package/dist/types/contexts/RefreshPayloadContext/State.d.ts.map +0 -1
  383. package/dist/types/contexts/RefreshPayloadContext/index.d.ts.map +0 -1
  384. package/dist/types/contexts/RefreshPayloadContext/use.d.ts.map +0 -1
  385. package/dist/types/contexts/ResolvePayloadContext/Context.d.ts.map +0 -1
  386. package/dist/types/contexts/ResolvePayloadContext/Provider.d.ts.map +0 -1
  387. package/dist/types/contexts/ResolvePayloadContext/State.d.ts.map +0 -1
  388. package/dist/types/contexts/ResolvePayloadContext/index.d.ts.map +0 -1
  389. package/dist/types/contexts/ResolvePayloadContext/use.d.ts.map +0 -1
  390. package/dist/types/contexts/ValidatePayloadContext/Context.d.ts.map +0 -1
  391. package/dist/types/contexts/ValidatePayloadContext/Provider.d.ts.map +0 -1
  392. package/dist/types/contexts/ValidatePayloadContext/State.d.ts.map +0 -1
  393. package/dist/types/contexts/ValidatePayloadContext/index.d.ts.map +0 -1
  394. package/dist/types/contexts/ValidatePayloadContext/use.d.ts.map +0 -1
  395. package/dist/types/contexts/index.d.ts.map +0 -1
  396. package/dist/types/types/EmbedPluginProps.d.ts.map +0 -1
  397. package/dist/types/types/index.d.ts.map +0 -1
  398. /package/dist/{types/components/EmbedPlugin.d.ts → components/EmbedPlugin.d.mts} +0 -0
  399. /package/dist/{types/components/EmbedResolver.d.ts → components/EmbedResolver.d.mts} +0 -0
  400. /package/dist/{types/components/controls/EmbedFormControl.d.ts → components/controls/EmbedFormControl.d.mts} +0 -0
  401. /package/dist/{types/components/controls/ListModeSelect.d.ts → components/controls/ListModeSelect.d.mts} +0 -0
  402. /package/dist/{types/components/controls/RenderSelect.d.ts → components/controls/RenderSelect.d.mts} +0 -0
  403. /package/dist/{types/components/controls/index.d.ts → components/controls/index.d.mts} +0 -0
  404. /package/dist/{types/components/embed-card/EmbedCardResolver.d.ts → components/embed-card/EmbedCardResolver.d.mts} +0 -0
  405. /package/dist/{types/components/embed-card/EmbedPluginCard.d.ts → components/embed-card/EmbedPluginCard.d.mts} +0 -0
  406. /package/dist/{types/components/embed-card/card/BusyCard.d.ts → components/embed-card/card/BusyCard.d.mts} +0 -0
  407. /package/dist/{types/components/embed-card/card/EmbedCardHeader.d.ts → components/embed-card/card/EmbedCardHeader.d.mts} +0 -0
  408. /package/dist/{types/components/embed-card/card/EmbedPluginCard.d.ts → components/embed-card/card/EmbedPluginCard.d.mts} +0 -0
  409. /package/dist/{types/components/embed-card/card/index.d.ts → components/embed-card/card/index.d.mts} +0 -0
  410. /package/dist/{types/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts → components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.mts} +0 -0
  411. /package/dist/{types/components/embed-card/error-handling/EmbedErrorCard.d.ts → components/embed-card/error-handling/EmbedErrorCard.d.mts} +0 -0
  412. /package/dist/{types/components/embed-card/error-handling/index.d.ts → components/embed-card/error-handling/index.d.mts} +0 -0
  413. /package/dist/{types/components/embed-card/index.d.ts → components/embed-card/index.d.mts} +0 -0
  414. /package/dist/{types/components/embed-card/menu/EmbedMenu.d.ts → components/embed-card/menu/EmbedMenu.d.mts} +0 -0
  415. /package/dist/{types/components/embed-card/menu/JsonMenuItem.d.ts → components/embed-card/menu/JsonMenuItem.d.mts} +0 -0
  416. /package/dist/{types/components/embed-card/menu/index.d.ts → components/embed-card/menu/index.d.mts} +0 -0
  417. /package/dist/{types/components/embed-plugin-stories/storyPayload.d.ts → components/embed-plugin-stories/storyPayload.d.mts} +0 -0
  418. /package/dist/{types/components/embed-plugin-stories/storyShared.d.ts → components/embed-plugin-stories/storyShared.d.mts} +0 -0
  419. /package/dist/{types/components/index.d.ts → components/index.d.mts} +0 -0
  420. /package/dist/{types/components/validation-alerts/ValidatePayload.d.ts → components/validation-alerts/ValidatePayload.d.mts} +0 -0
  421. /package/dist/{types/components/validation-alerts/ValidatePlugins.d.ts → components/validation-alerts/ValidatePlugins.d.mts} +0 -0
  422. /package/dist/{types/components/validation-alerts/index.d.ts → components/validation-alerts/index.d.mts} +0 -0
  423. /package/dist/{types/contexts/EmbedPluginContext/Context.d.ts → contexts/EmbedPluginContext/Context.d.mts} +0 -0
  424. /package/dist/{types/contexts/EmbedPluginContext/Provider.d.ts → contexts/EmbedPluginContext/Provider.d.mts} +0 -0
  425. /package/dist/{types/contexts/EmbedPluginContext/State.d.ts → contexts/EmbedPluginContext/State.d.mts} +0 -0
  426. /package/dist/{types/contexts/EmbedPluginContext/index.d.ts → contexts/EmbedPluginContext/index.d.mts} +0 -0
  427. /package/dist/{types/contexts/ResolvePayloadContext → contexts/EmbedPluginContext}/index.d.ts +0 -0
  428. /package/dist/{types/contexts/EmbedPluginContext/use.d.ts → contexts/EmbedPluginContext/use.d.mts} +0 -0
  429. /package/dist/{types/contexts/RefreshPayloadContext/Context.d.ts → contexts/RefreshPayloadContext/Context.d.mts} +0 -0
  430. /package/dist/{types/contexts/RefreshPayloadContext/Provider.d.ts → contexts/RefreshPayloadContext/Provider.d.mts} +0 -0
  431. /package/dist/{types/contexts/RefreshPayloadContext/State.d.ts → contexts/RefreshPayloadContext/State.d.mts} +0 -0
  432. /package/dist/{types/contexts/RefreshPayloadContext/index.d.ts → contexts/RefreshPayloadContext/index.d.mts} +0 -0
  433. /package/dist/{types/contexts/ValidatePayloadContext → contexts/RefreshPayloadContext}/index.d.ts +0 -0
  434. /package/dist/{types/contexts/RefreshPayloadContext/use.d.ts → contexts/RefreshPayloadContext/use.d.mts} +0 -0
  435. /package/dist/{types/contexts/ResolvePayloadContext/Context.d.ts → contexts/ResolvePayloadContext/Context.d.mts} +0 -0
  436. /package/dist/{types/contexts/ResolvePayloadContext/Provider.d.ts → contexts/ResolvePayloadContext/Provider.d.mts} +0 -0
  437. /package/dist/{types/contexts/ResolvePayloadContext/State.d.ts → contexts/ResolvePayloadContext/State.d.mts} +0 -0
  438. /package/dist/{types/contexts/ResolvePayloadContext/use.d.ts → contexts/ResolvePayloadContext/use.d.mts} +0 -0
  439. /package/dist/{types/contexts/ValidatePayloadContext/Context.d.ts → contexts/ValidatePayloadContext/Context.d.mts} +0 -0
  440. /package/dist/{types/contexts/ValidatePayloadContext/Provider.d.ts → contexts/ValidatePayloadContext/Provider.d.mts} +0 -0
  441. /package/dist/{types/contexts/ValidatePayloadContext/State.d.ts → contexts/ValidatePayloadContext/State.d.mts} +0 -0
  442. /package/dist/{types/contexts/ValidatePayloadContext/use.d.ts → contexts/ValidatePayloadContext/use.d.mts} +0 -0
  443. /package/dist/{types/contexts/index.d.ts → contexts/index.d.mts} +0 -0
  444. /package/dist/types/{types/EmbedPluginProps.d.ts → EmbedPluginProps.d.mts} +0 -0
  445. /package/dist/types/{types/index.d.ts → index.d.mts} +0 -0
@@ -1,15 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { ErrorBoundary, ListModeProvider } from '@xyo-network/react-shared';
3
- import { EmbedPluginProvider, RefreshPayloadProvider, ResolvePayloadProvider, ValidatePayloadProvider } from '../contexts';
4
- import { EmbedResolver } from './EmbedResolver';
5
- import { ValidatePayloadAlert, ValidatePluginsAlert } from './validation-alerts';
6
- export const EmbedPluginInner = ({ validateSchema, plugins = [], huriPayload, refreshTitle = '', timestampLabel = 'Data From', hideElementsConfig, embedPluginConfig, onRefresh, children, }) => {
7
- return (_jsx(ErrorBoundary, { children: _jsx(EmbedPluginProvider, { refreshTitle: refreshTitle, timestampLabel: timestampLabel, hideElementsConfig: hideElementsConfig, plugins: plugins, embedPluginConfig: embedPluginConfig, children: _jsx(WithResolvers, { onRefresh: onRefresh, huriPayload: huriPayload, children: _jsx(WithValidators, { validateSchema: validateSchema, children: _jsx(ListModeProvider, { defaultListMode: embedPluginConfig?.listMode, children: children }) }) }) }) }));
8
- };
9
- const WithResolvers = ({ children, onRefresh, huriPayload }) => {
10
- return (_jsx(RefreshPayloadProvider, { onRefresh: onRefresh, children: _jsx(ResolvePayloadProvider, { huriPayload: huriPayload, children: _jsx(EmbedResolver, { children: children }) }) }));
11
- };
12
- const WithValidators = ({ children, validateSchema }) => {
13
- return (_jsx(ValidatePayloadProvider, { enabled: validateSchema, children: _jsx(ValidatePluginsAlert, { children: _jsx(ValidatePayloadAlert, { children: children }) }) }));
14
- };
15
- //# sourceMappingURL=EmbedPlugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbedPlugin.js","sourceRoot":"","sources":["../../../src/components/EmbedPlugin.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE3E,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAE1H,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAEhF,MAAM,CAAC,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,KAAC,aAAa,cACZ,KAAC,mBAAmB,IAClB,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAE,iBAAiB,YAEpC,KAAC,aAAa,IAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,YAC3D,KAAC,cAAc,IAAC,cAAc,EAAE,cAAc,YAC5C,KAAC,gBAAgB,IAAC,eAAe,EAAE,iBAAiB,EAAE,QAAQ,YAAG,QAAQ,GAAoB,GAC9E,GACH,GACI,GACR,CACjB,CAAA;AACH,CAAC,CAAA;AAID,MAAM,aAAa,GAA+C,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,EAAE;IACzG,OAAO,CACL,KAAC,sBAAsB,IAAC,SAAS,EAAE,SAAS,YAC1C,KAAC,sBAAsB,IAAC,WAAW,EAAE,WAAW,YAC9C,KAAC,aAAa,cAAE,QAAQ,GAAiB,GAClB,GACF,CAC1B,CAAA;AACH,CAAC,CAAA;AAED,MAAM,cAAc,GAAyD,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,EAAE;IAC5G,OAAO,CACL,KAAC,uBAAuB,IAAC,OAAO,EAAE,cAAc,YAC9C,KAAC,oBAAoB,cACnB,KAAC,oBAAoB,cAAE,QAAQ,GAAwB,GAClC,GACC,CAC3B,CAAA;AACH,CAAC,CAAA"}
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { LoadResult } from '@xyo-network/react-shared';
3
- import { useResolvePayload } from '../contexts';
4
- export const EmbedResolver = ({ children }) => {
5
- const { payload, notFound, huriError } = useResolvePayload();
6
- return (_jsx(LoadResult, { searchResult: payload, notFound: !!notFound, error: !!huriError, children: children }));
7
- };
8
- //# sourceMappingURL=EmbedResolver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbedResolver.js","sourceRoot":"","sources":["../../../src/components/EmbedResolver.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAE/C,MAAM,CAAC,MAAM,aAAa,GAA2B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAE5D,OAAO,CACL,KAAC,UAAU,IAAC,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,SAAS,YACxE,QAAQ,GACE,CACd,CAAA;AACH,CAAC,CAAA"}
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { FormControl, InputLabel } from '@mui/material';
3
- export const EmbedFormControl = ({ formId, formLabel, children, ...props }) => {
4
- return (_jsxs(FormControl, { ...props, children: [_jsx(InputLabel, { id: formId, children: formLabel }), children] }));
5
- };
6
- //# sourceMappingURL=EmbedFormControl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbedFormControl.js","sourceRoot":"","sources":["../../../../src/components/controls/EmbedFormControl.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAoB,UAAU,EAAE,MAAM,eAAe,CAAA;AAQzE,MAAM,CAAC,MAAM,gBAAgB,GAAkD,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC3H,OAAO,CACL,MAAC,WAAW,OAAK,KAAK,aACpB,KAAC,UAAU,IAAC,EAAE,EAAE,MAAM,YAAG,SAAS,GAAc,EAC/C,QAAQ,IACG,CACf,CAAA;AACH,CAAC,CAAA"}
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { MenuItem, Select } from '@mui/material';
3
- import { useListMode } from '@xyo-network/react-shared';
4
- import { EmbedFormControl } from './EmbedFormControl';
5
- const listModeSelectId = 'listmode-select-id';
6
- const listModeSelectLabel = 'List Mode';
7
- export const ListModeSelect = (props) => {
8
- const { listMode, setListMode } = useListMode();
9
- return (_jsxs(Select, { value: (listMode ?? 'default'), onChange: (event) => {
10
- setListMode?.(event.target.value);
11
- }, ...props, children: [_jsx(MenuItem, { value: "default", children: "Default" }, "default"), _jsx(MenuItem, { value: "table", children: "Table" }, "table"), _jsx(MenuItem, { value: "grid", children: "Grid" }, "grid")] }));
12
- };
13
- export const ListModeSelectFormControl = (props) => {
14
- return (_jsx(EmbedFormControl, { formId: listModeSelectId, formLabel: listModeSelectLabel, children: _jsx(ListModeSelect, { size: "small", label: listModeSelectLabel, labelId: listModeSelectId, ...props }) }));
15
- };
16
- //# sourceMappingURL=ListModeSelect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ListModeSelect.js","sourceRoot":"","sources":["../../../../src/components/controls/ListModeSelect.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAe,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAY,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAEjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,MAAM,gBAAgB,GAAG,oBAAoB,CAAA;AAC7C,MAAM,mBAAmB,GAAG,WAAW,CAAA;AAEvC,MAAM,CAAC,MAAM,cAAc,GAAoC,CAAC,KAAK,EAAE,EAAE;IACvE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,WAAW,EAAE,CAAA;IAE/C,OAAO,CACL,MAAC,MAAM,IACL,KAAK,EAAE,CAAC,QAAQ,IAAI,SAAS,CAAa,EAC1C,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,WAAW,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,KAAiB,CAAC,CAAA;QAC/C,CAAC,KACG,KAAK,aAET,KAAC,QAAQ,IAAe,KAAK,EAAC,SAAS,yBAAzB,SAAS,CAEZ,EACX,KAAC,QAAQ,IAAa,KAAK,EAAC,OAAO,uBAArB,OAAO,CAEV,EACX,KAAC,QAAQ,IAAY,KAAK,EAAC,MAAM,sBAAnB,MAAM,CAET,IACJ,CACV,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAoC,CAAC,KAAK,EAAE,EAAE;IAClF,OAAO,CACL,KAAC,gBAAgB,IAAC,MAAM,EAAE,gBAAgB,EAAE,SAAS,EAAE,mBAAmB,YACxE,KAAC,cAAc,IAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,gBAAgB,KAAM,KAAK,GAAI,GAChF,CACpB,CAAA;AACH,CAAC,CAAA"}
@@ -1,11 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { MenuItem, Select } from '@mui/material';
3
- import { useEmbedPluginState } from '../../contexts';
4
- import { EmbedFormControl } from './EmbedFormControl';
5
- const renderSelectId = 'render-select-id';
6
- const renderSelectLabel = 'Renderer';
7
- export const EmbedRenderSelect = (props) => {
8
- const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState();
9
- return (_jsx(EmbedFormControl, { formId: renderSelectId, formLabel: renderSelectLabel, children: _jsx(Select, { size: "small", value: activePlugin?.name, ...props, children: plugins?.map((plugin) => (_jsx(MenuItem, { value: plugin.name, onClick: () => setActivePlugin?.(plugin), children: plugin.name }, plugin.name))) }) }));
10
- };
11
- //# sourceMappingURL=RenderSelect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RenderSelect.js","sourceRoot":"","sources":["../../../../src/components/controls/RenderSelect.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAe,MAAM,eAAe,CAAA;AAE7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,MAAM,cAAc,GAAG,kBAAkB,CAAA;AACzC,MAAM,iBAAiB,GAAG,UAAU,CAAA;AAEpC,MAAM,CAAC,MAAM,iBAAiB,GAA0B,CAAC,KAAK,EAAE,EAAE;IAChE,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,mBAAmB,EAAE,CAAA;IACxE,OAAO,CACL,KAAC,gBAAgB,IAAC,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,iBAAiB,YACpE,KAAC,MAAM,IAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,YAAY,EAAE,IAAI,KAAM,KAAK,YACtD,OAAO,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACxB,KAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,EAAoB,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,EAAE,CAAC,MAAM,CAAC,YACrF,MAAM,CAAC,IAAI,IADqB,MAAM,CAAC,IAAI,CAEnC,CACZ,CAAC,GACK,GACQ,CACpB,CAAA;AACH,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA"}
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useTheme } from '@mui/material';
3
- import { FlexCol } from '@xylabs/react-flexbox';
4
- import { LoadResult } from '@xyo-network/react-shared';
5
- import { useRefreshPayload, useResolvePayload } from '../../contexts';
6
- import { EmbedCardApiErrorRenderer } from './error-handling';
7
- export const EmbedCardResolverFlexBox = ({ children, ...props }) => {
8
- const { payload, notFound, huriError } = useResolvePayload();
9
- const { refreshPayload } = useRefreshPayload();
10
- const theme = useTheme();
11
- return (_jsx(LoadResult, { searchResult: payload, notFound: !!notFound, error: !!huriError, children: _jsx(EmbedCardApiErrorRenderer, { xyoError: huriError, children: _jsx(FlexCol, { 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 }) }) }));
12
- };
13
- //# sourceMappingURL=EmbedCardResolver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbedCardResolver.js","sourceRoot":"","sources":["../../../../src/components/embed-card/EmbedCardResolver.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAgB,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEtD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAE5D,MAAM,CAAC,MAAM,wBAAwB,GAAyC,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACvG,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAC5D,MAAM,EAAE,cAAc,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAC9C,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAA;IAExB,OAAO,CACL,KAAC,UAAU,IAAC,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,SAAS,YACzE,KAAC,yBAAyB,IAAC,QAAQ,EAAE,SAAS,YAC5C,KAAC,OAAO,IACN,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,KAC1F,KAAK,YAER,QAAQ,GACD,GACgB,GACjB,CACd,CAAA;AACH,CAAC,CAAA"}
@@ -1,28 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useTheme } from '@mui/material';
3
- import { useRefreshPayload, useResolvePayload } from '../../contexts';
4
- import { EmbedPluginInner } from '../EmbedPlugin';
5
- import { EmbedPluginCard } from './card';
6
- import { EmbedCardApiErrorRenderer } from './error-handling';
7
- export const ApiEmbedPluginCard = ({ children, ...props }) => {
8
- const { validateSchema, plugins = [], huriPayload, refreshTitle = '', timestampLabel = 'Data From', hideElementsConfig, embedPluginConfig, onRefresh, ...busyCardProps } = props;
9
- return (_jsxs(EmbedPluginInner, { ...{
10
- embedPluginConfig,
11
- hideElementsConfig,
12
- huriPayload,
13
- onRefresh,
14
- plugins,
15
- refreshTitle,
16
- timestampLabel,
17
- validateSchema,
18
- }, children: [_jsx(EmbedPluginCardInner, { ...busyCardProps }), children] }));
19
- };
20
- export const EmbedPluginCardInner = (props) => {
21
- const { payload, huriError } = useResolvePayload();
22
- const { refreshPayload } = useRefreshPayload();
23
- const theme = useTheme();
24
- return (_jsx(EmbedCardApiErrorRenderer, { xyoError: huriError, children: _jsx(EmbedPluginCard, { elevation: 3, variant: "elevation", busy: Boolean(!refreshPayload && payload), busyVariantProps: { style: { alignItems: 'start', paddingTop: theme.spacing(2), zIndex: 2 } }, sx: { position: 'relative' }, ...props }) }));
25
- };
26
- /** @deprecated - use EmbedPluginCard and use CardProps instead of FlexBoxProps */
27
- export const EmbedPlugin = EmbedPluginCard;
28
- //# sourceMappingURL=EmbedPluginCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbedPluginCard.js","sourceRoot":"","sources":["../../../../src/components/embed-card/EmbedPluginCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAGxC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAErE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EAAiB,eAAe,EAAE,MAAM,QAAQ,CAAA;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAI5D,MAAM,CAAC,MAAM,kBAAkB,GAAmC,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC3F,MAAM,EACJ,cAAc,EACd,OAAO,GAAG,EAAE,EACZ,WAAW,EACX,YAAY,GAAG,EAAE,EACjB,cAAc,GAAG,WAAW,EAC5B,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,EACT,GAAG,aAAa,EACjB,GAAG,KAAK,CAAA;IAET,OAAO,CACL,MAAC,gBAAgB,OACX;YACF,iBAAiB;YACjB,kBAAkB;YAClB,WAAW;YACX,SAAS;YACT,OAAO;YACP,YAAY;YACZ,cAAc;YACd,cAAc;SACf,aAED,KAAC,oBAAoB,OAAK,aAAa,GAAI,EAC1C,QAAQ,IACQ,CACpB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAA4B,CAAC,KAAK,EAAE,EAAE;IACrE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAClD,MAAM,EAAE,cAAc,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAC9C,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAA;IAExB,OAAO,CACL,KAAC,yBAAyB,IAAC,QAAQ,EAAE,SAAS,YAC5C,KAAC,eAAe,IACd,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,KACxB,KAAK,GACT,GACwB,CAC7B,CAAA;AACH,CAAC,CAAA;AAED,kFAAkF;AAClF,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAA"}
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Card } from '@mui/material';
3
- import { useBusyTiming } from '@xylabs/react-flexbox';
4
- import { BusyCircularProgress, BusyLinearProgress, } from '@xylabs/react-shared';
5
- export const BusyCard = ({ busy, busyMinimum = 500, busyVariant = 'circular', busyVariantProps, children, ...props }) => {
6
- const internalBusy = useBusyTiming(busy, busyMinimum);
7
- return (_jsxs(Card, { ...props, children: [children, busyVariant === 'circular' && internalBusy ? _jsx(BusyCircularProgress, { ...busyVariantProps }) : null, busyVariant === 'linear' && internalBusy ? _jsx(BusyLinearProgress, { ...busyVariantProps }) : null] }));
8
- };
9
- //# sourceMappingURL=BusyCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BusyCard.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/BusyCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAa,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EACL,oBAAoB,EAEpB,kBAAkB,GAInB,MAAM,sBAAsB,CAAA;AAS7B,MAAM,CAAC,MAAM,QAAQ,GAA0C,CAAC,EAC9D,IAAI,EACJ,WAAW,GAAG,GAAG,EACjB,WAAW,GAAG,UAAU,EACxB,gBAAgB,EAChB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,YAAY,GAAG,aAAa,CAAC,IAAI,EAAE,WAAW,CAAC,CAAA;IACrD,OAAO,CACL,MAAC,IAAI,OAAK,KAAK,aACZ,QAAQ,EACR,WAAW,KAAK,UAAU,IAAI,YAAY,CAAC,CAAC,CAAC,KAAC,oBAAoB,OAAM,gBAA8C,GAAI,CAAC,CAAC,CAAC,IAAI,EACjI,WAAW,KAAK,QAAQ,IAAI,YAAY,CAAC,CAAC,CAAC,KAAC,kBAAkB,OAAM,gBAA4C,GAAI,CAAC,CAAC,CAAC,IAAI,IACvH,CACR,CAAA;AACH,CAAC,CAAA"}
@@ -1,15 +0,0 @@
1
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import RefreshIcon from '@mui/icons-material/Refresh';
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
- export const EmbedCardHeader = () => {
8
- const { refreshHuri, huri } = useResolvePayload();
9
- const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState();
10
- const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {};
11
- //this is temporary so that we can add the ability to get a timestamp via diviner later
12
- const timestamp = Date.now();
13
- return (_jsx(CardHeader, { sx: { flexWrap: 'wrap', rowGap: 1 }, avatar: hideAvatar ? (_jsx(_Fragment, {})) : (_jsx(Avatar, { sx: { bgcolor: (theme) => theme.palette.primary.main }, "aria-label": activePlugin?.name, children: activePlugin?.name?.charAt(0) })), action: _jsxs(FlexRow, { flexWrap: "wrap", columnGap: 0.5, children: [timestamp ? (hideTimestamp && hideRefreshButton ? ('') : (_jsx(Chip, { avatar: hideRefreshButton ? _jsx(_Fragment, {}) : _jsx(RefreshIcon, {}), clickable: hideRefreshButton ? false : true, onClick: refreshHuri, label: hideTimestamp ? '' : `${timestampLabel} ${new Date(timestamp).toLocaleString()}` }))) : null, hideCardActions || huri === undefined ? null : _jsx(EmbedMenu, {})] }), title: hideTitle ? '' : activePlugin?.name }));
14
- };
15
- //# sourceMappingURL=EmbedCardHeader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbedCardHeader.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/EmbedCardHeader.tsx"],"names":[],"mappings":";AAAA,OAAO,WAAW,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAmB,IAAI,EAAS,MAAM,eAAe,CAAA;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAE/C,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnC,MAAM,CAAC,MAAM,eAAe,GAA8B,GAAG,EAAE;IAC7D,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,iBAAiB,EAAE,CAAA;IACjD,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,GAAG,mBAAmB,EAAE,CAAA;IAClF,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,iBAAiB,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,kBAAkB,IAAI,EAAE,CAAA;IAC7G,uFAAuF;IACvF,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;IAC5B,OAAO,CACL,KAAC,UAAU,IACT,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,EACnC,MAAM,EACJ,UAAU,CAAC,CAAC,CAAC,CACX,mBAAK,CACN,CAAC,CAAC,CAAC,CACF,KAAC,MAAM,IAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,gBAAc,YAAY,EAAE,IAAI,YAClG,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,GACvB,CACV,EAEH,MAAM,EACJ,MAAC,OAAO,IAAC,QAAQ,EAAC,MAAM,EAAC,SAAS,EAAE,GAAG,aACpC,SAAS,CAAC,CAAC,CAAC,CACX,aAAa,IAAI,iBAAiB,CAAC,CAAC,CAAC,CACnC,EAAE,CACH,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,IACH,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC,mBAAK,CAAC,CAAC,CAAC,KAAC,WAAW,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,KAAC,SAAS,KAAG,IACrD,EAEZ,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,EAAE,IAAI,GAC1C,CACH,CAAA;AACH,CAAC,CAAA"}
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx, jsxs as _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
- export 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 (_jsxs(BusyCard, { ...props, children: [hideElementsConfig?.hideCardHeader ? null : _jsx(EmbedCardHeader, {}), (plugins && plugins.length) || supportsListMode ? (_jsxs(FlexGrowRow, { columnGap: 2, rowGap: 2, flexWrap: "wrap", pb: 1, children: [plugins && plugins.length > 1 ? _jsx(EmbedRenderSelect, {}) : null, supportsListMode ? _jsx(ListModeSelectFormControl, {}) : null] })) : null, _jsx(CardContent, { sx: { height: '100%' }, children: ActivePlugin ? _jsx(ActivePlugin.components.box.detailsBox, { payload: payload, ...(supportsListMode && { listMode }) }) : null })] }));
15
- };
16
- //# sourceMappingURL=EmbedPluginCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbedPluginCard.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/EmbedPluginCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAEvD,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAC1E,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAA;AAC7E,OAAO,EAAE,QAAQ,EAAiB,MAAM,YAAY,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,MAAM,CAAC,MAAM,eAAe,GAA4B,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACvE,MAAM,EAAE,OAAO,EAAE,GAAG,iBAAiB,EAAE,CAAA;IACvC,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,kBAAkB,EAAE,GAAG,mBAAmB,EAAE,CAAA;IACzF,MAAM,EAAE,QAAQ,EAAE,GAAG,WAAW,EAAE,CAAA;IAClC,MAAM,gBAAgB,GAAG,YAAY,EAAE,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC,GAAG,CAAC,CAAA;IAElF,OAAO,CACL,MAAC,QAAQ,OAAK,KAAK,aAChB,kBAAkB,EAAE,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAC,eAAe,KAAG,EAE/D,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,CACjD,MAAC,WAAW,IAAC,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,aACxD,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAC,iBAAiB,KAAG,CAAC,CAAC,CAAC,IAAI,EAC5D,gBAAgB,CAAC,CAAC,CAAC,KAAC,yBAAyB,KAAG,CAAC,CAAC,CAAC,IAAI,IAC5C,CACf,CAAC,CAAC,CAAC,IAAI,EACR,KAAC,WAAW,IAAC,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,YAChC,YAAY,CAAC,CAAC,CAAC,KAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,IAAC,OAAO,EAAE,OAAO,KAAM,CAAC,gBAAgB,IAAI,EAAE,QAAQ,EAAE,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,GAC/G,IACL,CACZ,CAAA;AACH,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
@@ -1,10 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { ErrorAlert, ErrorRender } from '@xyo-network/react-error';
3
- import { EmbedErrorCard } from './EmbedErrorCard';
4
- export const EmbedCardApiErrorRenderer = ({ xyoError, children, ...props }) => {
5
- return (_jsx(ErrorRender, { error: xyoError, noReAuth: true, noErrorDisplay: true, customError: _jsx(CustomApiErrorCard, { xyoError: xyoError, ...props }), children: children }));
6
- };
7
- const CustomApiErrorCard = ({ xyoError, ...props }) => {
8
- return (_jsx(EmbedErrorCard, { ...props, children: _jsx(ErrorAlert, { error: xyoError }) }));
9
- };
10
- //# sourceMappingURL=EmbedCardApiErrorRenderer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbedCardApiErrorRenderer.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAElE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAMjD,MAAM,CAAC,MAAM,yBAAyB,GAA2D,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACpI,OAAO,CACL,KAAC,WAAW,IAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,QAAC,cAAc,QAAC,WAAW,EAAE,KAAC,kBAAkB,IAAC,QAAQ,EAAE,QAAQ,KAAM,KAAK,GAAI,YACrH,QAAQ,GACG,CACf,CAAA;AACH,CAAC,CAAA;AAED,MAAM,kBAAkB,GAA6C,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC9F,OAAO,CACL,KAAC,cAAc,OAAK,KAAK,YACvB,KAAC,UAAU,IAAC,KAAK,EAAE,QAAQ,GAAI,GAChB,CAClB,CAAA;AACH,CAAC,CAAA"}
@@ -1,11 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Alert, AlertTitle, Card, CardContent, Typography } from '@mui/material';
3
- export const EmbedErrorCard = (props) => {
4
- const { alertProps, error, hideErrorDetails = true, children, ...cardProps } = props;
5
- const errorProps = { alertProps, error, hideErrorDetails };
6
- return (_jsx(Card, { ...cardProps, children: _jsx(CardContent, { children: children ?? _jsx(DefaultErrorAlert, { ...errorProps }) }) }));
7
- };
8
- const DefaultErrorAlert = ({ alertProps, hideErrorDetails, error }) => {
9
- return (_jsxs(Alert, { severity: "error", ...alertProps, children: [_jsx(AlertTitle, { children: "Whoops! Something went wrong" }), !hideErrorDetails && error ? (_jsxs(_Fragment, { children: [_jsx(Typography, { variant: "caption", children: "Error: " }), _jsx(Typography, { variant: "caption", children: error?.message })] })) : (_jsx(Typography, { variant: "caption", fontSize: "small", children: "Error Loading Plugin" }))] }));
10
- };
11
- //# sourceMappingURL=EmbedErrorCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbedErrorCard.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedErrorCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAc,UAAU,EAAE,IAAI,EAAE,WAAW,EAAa,UAAU,EAAE,MAAM,eAAe,CAAA;AAcvG,MAAM,CAAC,MAAM,cAAc,GAAgD,CAAC,KAAK,EAAE,EAAE;IACnF,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,gBAAgB,GAAG,IAAI,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAA;IACpF,MAAM,UAAU,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAA;IAC1D,OAAO,CACL,KAAC,IAAI,OAAK,SAAS,YACjB,KAAC,WAAW,cAAE,QAAQ,IAAI,KAAC,iBAAiB,OAAK,UAAU,GAAI,GAAe,GACzE,CACR,CAAA;AACH,CAAC,CAAA;AAED,MAAM,iBAAiB,GAAsC,CAAC,EAAE,UAAU,EAAE,gBAAgB,EAAE,KAAK,EAAE,EAAE,EAAE;IACvG,OAAO,CACL,MAAC,KAAK,IAAC,QAAQ,EAAC,OAAO,KAAK,UAAU,aACpC,KAAC,UAAU,+CAA0C,EACpD,CAAC,gBAAgB,IAAI,KAAK,CAAC,CAAC,CAAC,CAC5B,8BACE,KAAC,UAAU,IAAC,OAAO,EAAC,SAAS,wBAAqB,EAClD,KAAC,UAAU,IAAC,OAAO,EAAC,SAAS,YAAE,KAAK,EAAE,OAAO,GAAc,IAC1D,CACJ,CAAC,CAAC,CAAC,CACF,KAAC,UAAU,IAAC,OAAO,EAAC,SAAS,EAAC,QAAQ,EAAC,OAAO,qCAEjC,CACd,IACK,CACT,CAAA;AACH,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,kBAAkB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/embed-card/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,mBAAmB,CAAA"}
@@ -1,18 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import MoreVertIcon from '@mui/icons-material/MoreVert';
3
- import { IconButton, Menu } from '@mui/material';
4
- import { useState } from 'react';
5
- import { JsonMenuItem } from './JsonMenuItem';
6
- export const EmbedMenu = (props) => {
7
- // TODO - link to explore website
8
- const [anchorEl, setAnchorEl] = useState(null);
9
- const open = Boolean(anchorEl);
10
- const handleClick = (event) => {
11
- setAnchorEl(event.currentTarget);
12
- };
13
- const handleClose = () => {
14
- setAnchorEl(null);
15
- };
16
- return (_jsxs(_Fragment, { children: [_jsx(IconButton, { onClick: handleClick, ...props, children: _jsx(MoreVertIcon, {}) }), _jsx(Menu, { anchorEl: anchorEl, open: open, onClose: handleClose, PaperProps: { variant: 'elevation' }, MenuListProps: { dense: true }, children: _jsx(JsonMenuItem, {}) })] }));
17
- };
18
- //# sourceMappingURL=EmbedMenu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbedMenu.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/menu/EmbedMenu.tsx"],"names":[],"mappings":";AAAA,OAAO,YAAY,MAAM,8BAA8B,CAAA;AACvD,OAAO,EAAE,UAAU,EAAmB,IAAI,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,CAAC,MAAM,SAAS,GAA8B,CAAC,KAAK,EAAE,EAAE;IAC5D,iCAAiC;IACjC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAqB,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,8BACE,KAAC,UAAU,IAAC,OAAO,EAAE,WAAW,KAAM,KAAK,YACzC,KAAC,YAAY,KAAG,GACL,EACb,KAAC,IAAI,IAAC,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,YAC9H,KAAC,YAAY,KAAG,GACX,IACN,CACJ,CAAA;AACH,CAAC,CAAA"}
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import OpenInNewIcon from '@mui/icons-material/OpenInNew';
3
- import { ListItemIcon, ListItemText, MenuItem } from '@mui/material';
4
- import { useResolvePayload } from '../../../contexts';
5
- export const JsonMenuItem = (props) => {
6
- const { huri } = useResolvePayload();
7
- return (_jsx(_Fragment, { children: huri ? (_jsxs(MenuItem, { title: "Source Payload JSON", onClick: () => window.open(huri, '_blank'), ...props, children: [_jsx(ListItemText, { sx: { mr: 1 }, children: "JSON" }), _jsx(ListItemIcon, { sx: { justifyContent: 'end' }, children: _jsx(OpenInNewIcon, { fontSize: "small" }) })] })) : null }));
8
- };
9
- //# sourceMappingURL=JsonMenuItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JsonMenuItem.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/menu/JsonMenuItem.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,MAAM,+BAA+B,CAAA;AACzD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAiB,MAAM,eAAe,CAAA;AAEnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAErD,MAAM,CAAC,MAAM,YAAY,GAA4B,CAAC,KAAK,EAAE,EAAE;IAC7D,MAAM,EAAE,IAAI,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAEpC,OAAO,CACL,4BACG,IAAI,CAAC,CAAC,CAAC,CACN,MAAC,QAAQ,IAAC,KAAK,EAAC,qBAAqB,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,KAAM,KAAK,aACzF,KAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,qBAAqB,EAChD,KAAC,YAAY,IAAC,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,YACzC,KAAC,aAAa,IAAC,QAAQ,EAAC,OAAO,GAAG,GACrB,IACN,CACZ,CAAC,CAAC,CAAC,IAAI,GACP,CACJ,CAAA;AACH,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './EmbedMenu';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/menu/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
@@ -1,22 +0,0 @@
1
- export const payloadData = {
2
- assets: {
3
- ada: { value: { btc: '0.00002192', eth: '0.00031141', eur: '0.491867', usd: '0.502045' } },
4
- btc: { value: { btc: '1', eth: '14.213346', eur: '22450', usd: '22914' } },
5
- busd: { value: { btc: '0.00004369', eth: '0.00062074', eur: '0.980451', usd: '1.001' } },
6
- dai: { value: { usdc: '1.00004', xyo: '114.394' } },
7
- doge: { value: { btc: '0.00000293', eth: '0.00004157', eur: '0.065655', usd: '0.067013' } },
8
- dot: { value: { btc: '0.00035508', eth: '0.00504454', eur: '7.97', usd: '8.13' } },
9
- eth: { value: { btc: '0.0703878', eth: '1', eur: '1579.47', usd: '1612.16' } },
10
- frax: { value: { usdc: '0.999738' } },
11
- link: { value: { xyo: '837.731' } },
12
- sol: { value: { btc: '0.00169369', eth: '0.02406215', eur: '38.01', usd: '38.79' } },
13
- usdc: { value: { btc: '0.0000436965', dai: '0.999963', eth: '0.0006204464999999999', eur: '0.979419', frax: '1.00026', usd: '0.999732' } },
14
- usdt: { value: { btc: '0.00004367', eth: '0.0006204', eur: '0.979881', usd: '1.001', usdc: '1.00022', xyo: '113.28' } },
15
- wbtc: { value: { btc: '0.99903669', eth: '14.2015745', eur: '22418', usd: '22882', usdc: '22860.8', xyo: '2617950' } },
16
- weth: { value: { btc: '0.0703735', usdc: '1610.82', xyo: '186652' } },
17
- xyo: { value: { btc: '3.79226e-7', dai: '0.00874169', eth: '0.000005353785', eur: '0.00844792', link: '0.0011937', usd: '0.00872519' } },
18
- },
19
- schema: 'network.xyo.crypto.asset',
20
- timestamp: 1659625815232,
21
- };
22
- //# sourceMappingURL=storyPayload.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storyPayload.js","sourceRoot":"","sources":["../../../../src/components/embed-plugin-stories/storyPayload.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,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"}
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { BrowserRouter } from 'react-router-dom';
3
- import { ApiEmbedPluginCard } from '../embed-card';
4
- export const xyoEmbedStoryBase = {
5
- argTypes: {},
6
- component: ApiEmbedPluginCard,
7
- parameters: {
8
- docs: {
9
- page: null,
10
- },
11
- },
12
- };
13
- export const Template = (args) => {
14
- return (_jsx(BrowserRouter, { children: _jsx(ApiEmbedPluginCard, { ...args }) }));
15
- };
16
- //# sourceMappingURL=storyShared.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storyShared.js","sourceRoot":"","sources":["../../../../src/components/embed-plugin-stories/storyShared.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAElD,MAAM,CAAC,MAAM,iBAAiB,GAAS;IACrC,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,kBAAkB;IAC7B,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;SACX;KACF;CACF,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAAuC,CAAC,IAAI,EAAE,EAAE;IACnE,OAAO,CACL,KAAC,aAAa,cACZ,KAAC,kBAAkB,OAAK,IAAI,GAAI,GAClB,CACjB,CAAA;AACH,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA"}
@@ -1,11 +0,0 @@
1
- import { jsxs as _jsxs, Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
- import { Alert } from '@mui/material';
3
- import { useValidatePayload } from '../../contexts';
4
- export const ValidatePayloadAlert = ({ children, ...props }) => {
5
- const { validPayload, enabled, schema } = useValidatePayload();
6
- if (enabled && validPayload === false) {
7
- return (_jsxs(Alert, { severity: "error", title: "Invalid Payload!", ...props, children: ["Payload schema claimed to be ", schema, " but failed to validate."] }));
8
- }
9
- return _jsx(_Fragment, { children: children });
10
- };
11
- //# sourceMappingURL=ValidatePayload.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ValidatePayload.js","sourceRoot":"","sources":["../../../../src/components/validation-alerts/ValidatePayload.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAc,MAAM,eAAe,CAAA;AAGjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAEnD,MAAM,CAAC,MAAM,oBAAoB,GAAuC,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACjG,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAE9D,IAAI,OAAO,IAAI,YAAY,KAAK,KAAK,EAAE;QACrC,OAAO,CACL,MAAC,KAAK,IAAC,QAAQ,EAAC,OAAO,EAAC,KAAK,EAAC,kBAAkB,KAAK,KAAK,8CAC1B,MAAM,gCAC9B,CACT,CAAA;KACF;IAED,OAAO,4BAAG,QAAQ,GAAI,CAAA;AACxB,CAAC,CAAA"}
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Alert, AlertTitle } from '@mui/material';
3
- import { useEmbedPluginState, useResolvePayload } from '../../contexts';
4
- export const ValidatePluginsAlert = ({ children, ...props }) => {
5
- const { payload } = useResolvePayload();
6
- const { plugins } = useEmbedPluginState();
7
- if (payload && plugins?.length === 0) {
8
- return (_jsxs(Alert, { severity: "warning", ...props, children: [_jsx(AlertTitle, { children: "Missing plugins!" }), "Payload found but no plugins were present."] }));
9
- }
10
- return _jsx(_Fragment, { children: children });
11
- };
12
- //# sourceMappingURL=ValidatePlugins.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ValidatePlugins.js","sourceRoot":"","sources":["../../../../src/components/validation-alerts/ValidatePlugins.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAc,UAAU,EAAE,MAAM,eAAe,CAAA;AAG7D,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAEvE,MAAM,CAAC,MAAM,oBAAoB,GAAuC,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACjG,MAAM,EAAE,OAAO,EAAE,GAAG,iBAAiB,EAAE,CAAA;IACvC,MAAM,EAAE,OAAO,EAAE,GAAG,mBAAmB,EAAE,CAAA;IAEzC,IAAI,OAAO,IAAI,OAAO,EAAE,MAAM,KAAK,CAAC,EAAE;QACpC,OAAO,CACL,MAAC,KAAK,IAAC,QAAQ,EAAC,SAAS,KAAK,KAAK,aACjC,KAAC,UAAU,mCAA8B,kDACnC,CACT,CAAA;KACF;IAED,OAAO,4BAAG,QAAQ,GAAI,CAAA;AACxB,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/validation-alerts/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA"}
@@ -1,3 +0,0 @@
1
- import { createContextEx } from '@xyo-network/react-shared';
2
- export const EmbedPluginContext = createContextEx();
3
- //# sourceMappingURL=Context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/Context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAI3D,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,EAAoB,CAAA"}
@@ -1,20 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useEffect, useState } from 'react';
3
- import { EmbedPluginContext } from './Context';
4
- /** Expose passed embed plugin props via context */
5
- export const EmbedPluginProvider = ({ children, refreshTitle, timestampLabel, hideElementsConfig, plugins, embedPluginConfig, }) => {
6
- const [activePlugin, setActivePlugin] = useState(plugins ? plugins[0] : undefined);
7
- useEffect(() => {
8
- setActivePlugin(plugins ? plugins[0] : undefined);
9
- }, [plugins]);
10
- return (_jsx(EmbedPluginContext.Provider, { value: {
11
- activePlugin,
12
- embedPluginConfig,
13
- hideElementsConfig,
14
- provided: true,
15
- refreshTitle,
16
- setActivePlugin,
17
- timestampLabel,
18
- }, children: children }));
19
- };
20
- //# sourceMappingURL=Provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/Provider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAK9C,mDAAmD;AACnD,MAAM,CAAC,MAAM,mBAAmB,GAAqD,CAAC,EACpF,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,iBAAiB,GAClB,EAAE,EAAE;IACH,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAkC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAEnH,SAAS,CAAC,GAAG,EAAE;QACb,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACnD,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEb,OAAO,CACL,KAAC,kBAAkB,CAAC,QAAQ,IAC1B,KAAK,EAAE;YACL,YAAY;YACZ,iBAAiB;YACjB,kBAAkB;YAClB,QAAQ,EAAE,IAAI;YACd,YAAY;YACZ,eAAe;YACf,cAAc;SACf,YAEA,QAAQ,GACmB,CAC/B,CAAA;AACH,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=State.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"State.js","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/State.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { useContextEx } from '@xyo-network/react-shared';
2
- import { EmbedPluginContext } from './Context';
3
- export const useEmbedPluginState = () => useContextEx(EmbedPluginContext, 'EmbedPlugin', true);
4
- //# sourceMappingURL=use.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use.js","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/use.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAExD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAE9C,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,kBAAkB,EAAE,aAAa,EAAE,IAAI,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- import { createContextEx } from '@xyo-network/react-shared';
2
- export const RefreshPayloadContext = createContextEx();
3
- //# sourceMappingURL=Context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/Context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAI3D,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,EAAuB,CAAA"}
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useState } from 'react';
3
- import { RefreshPayloadContext } from './Context';
4
- export const RefreshPayloadProvider = ({ children, onRefresh, refreshPayload }) => {
5
- const [localRefreshPayload, setRefreshPayload] = useState(refreshPayload);
6
- return (_jsx(RefreshPayloadContext.Provider, { value: { onRefresh, provided: true, refreshPayload: localRefreshPayload, setRefreshPayload }, children: children }));
7
- };
8
- //# sourceMappingURL=Provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/Provider.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AAOjD,MAAM,CAAC,MAAM,sBAAsB,GAAgD,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,EAAE;IAC7H,MAAM,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAA;IAEzE,OAAO,CACL,KAAC,qBAAqB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,YACzH,QAAQ,GACsB,CAClC,CAAA;AACH,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=State.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"State.js","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/State.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
@@ -1,4 +0,0 @@
1
- import { useContextEx } from '@xyo-network/react-shared';
2
- import { RefreshPayloadContext } from './Context';
3
- export const useRefreshPayload = () => useContextEx(RefreshPayloadContext, 'RefreshPayload', true);
4
- //# sourceMappingURL=use.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use.js","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/use.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAExD,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AAEjD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,qBAAqB,EAAE,gBAAgB,EAAE,IAAI,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- import { createContextEx } from '@xyo-network/react-shared';
2
- export const ResolvePayloadContext = createContextEx();
3
- //# sourceMappingURL=Context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/Context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAI3D,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,EAAuB,CAAA"}
@@ -1,51 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { delay } from '@xylabs/delay';
3
- import { useAsyncEffect } from '@xylabs/react-async-effect';
4
- import { Huri } from '@xyo-network/huri';
5
- import { ModuleErrorSchema } from '@xyo-network/payload-model';
6
- import { useEffect, useState } from 'react';
7
- import { useRefreshPayload } from '../RefreshPayloadContext';
8
- import { ResolvePayloadContext } from './Context';
9
- export const ResolvePayloadProvider = ({ children, huriPayload }) => {
10
- const [payload, setPayload] = useState();
11
- const [huri, setHuri] = useState();
12
- const { refreshPayload, setRefreshPayload, onRefresh } = useRefreshPayload();
13
- useEffect(() => {
14
- typeof huriPayload === 'string' ? setHuri(huriPayload) : undefined;
15
- if (typeof huriPayload === 'object') {
16
- setPayload(huriPayload);
17
- setRefreshPayload?.(true);
18
- }
19
- }, [huriPayload, setRefreshPayload]);
20
- const [notFound, setNotFound] = useState();
21
- const [huriError, setHuriError] = useState();
22
- useAsyncEffect(
23
- // eslint-disable-next-line react-hooks/exhaustive-deps
24
- async (mounted) => {
25
- if (huri && !refreshPayload) {
26
- try {
27
- const huriInstance = new Huri(huri);
28
- const result = await huriInstance.fetch();
29
- // ensure the busy state can stay for a moment to avoid flashing too quickly
30
- await delay(500);
31
- if (mounted()) {
32
- setNotFound(result === null);
33
- setPayload(result);
34
- setRefreshPayload?.(true);
35
- }
36
- }
37
- catch (e) {
38
- const error = e;
39
- setHuriError({ message: error.message, schema: ModuleErrorSchema, sources: [] });
40
- }
41
- }
42
- }, [huri, payload, refreshPayload, setRefreshPayload]);
43
- const refreshHuri = () => {
44
- onRefresh?.();
45
- if (huri) {
46
- setRefreshPayload?.(false);
47
- }
48
- };
49
- return (_jsx(ResolvePayloadContext.Provider, { value: { huri, huriError, notFound, payload, provided: true, refreshHuri, setPayload }, children: children }));
50
- };
51
- //# sourceMappingURL=Provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/Provider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAE3D,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAe,iBAAiB,EAAW,MAAM,4BAA4B,CAAA;AACpF,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AAKjD,MAAM,CAAC,MAAM,sBAAsB,GAAwD,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,EAAE;IACvH,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,EAAW,CAAA;IACjD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,EAAU,CAAA;IAC1C,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,GAAG,iBAAiB,EAAE,CAAA;IAE5E,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;QAClE,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;YACnC,UAAU,CAAC,WAAW,CAAC,CAAA;YACvB,iBAAiB,EAAE,CAAC,IAAI,CAAC,CAAA;SAC1B;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC,CAAA;IAEpC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,EAAW,CAAA;IACnD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAe,CAAA;IAEzD,cAAc;IACZ,uDAAuD;IACvD,KAAK,EAAE,OAAO,EAAE,EAAE;QAChB,IAAI,IAAI,IAAI,CAAC,cAAc,EAAE;YAC3B,IAAI;gBACF,MAAM,YAAY,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,CAAA;gBACnC,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,KAAK,EAAE,CAAA;gBACzC,4EAA4E;gBAC5E,MAAM,KAAK,CAAC,GAAG,CAAC,CAAA;gBAEhB,IAAI,OAAO,EAAE,EAAE;oBACb,WAAW,CAAC,MAAM,KAAK,IAAI,CAAC,CAAA;oBAC5B,UAAU,CAAC,MAAM,CAAC,CAAA;oBAClB,iBAAiB,EAAE,CAAC,IAAI,CAAC,CAAA;iBAC1B;aACF;YAAC,OAAO,CAAC,EAAE;gBACV,MAAM,KAAK,GAAG,CAAU,CAAA;gBACxB,YAAY,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAA;aACjF;SACF;IACH,CAAC,EACD,CAAC,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,iBAAiB,CAAC,CACnD,CAAA;IAED,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,SAAS,EAAE,EAAE,CAAA;QACb,IAAI,IAAI,EAAE;YACR,iBAAiB,EAAE,CAAC,KAAK,CAAC,CAAA;SAC3B;IACH,CAAC,CAAA;IAED,OAAO,CACL,KAAC,qBAAqB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,YACnH,QAAQ,GACsB,CAClC,CAAA;AACH,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=State.js.map