@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
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/embed-card/card/BusyCard.tsx","../src/components/embed-card/card/EmbedCardHeader.tsx","../src/contexts/EmbedPluginContext/Context.tsx","../src/contexts/EmbedPluginContext/Provider.tsx","../src/contexts/EmbedPluginContext/use.tsx","../src/contexts/RefreshPayloadContext/Provider.tsx","../src/contexts/RefreshPayloadContext/Context.tsx","../src/contexts/RefreshPayloadContext/use.tsx","../src/contexts/ResolvePayloadContext/Context.ts","../src/contexts/ResolvePayloadContext/Provider.tsx","../src/contexts/ResolvePayloadContext/use.tsx","../src/contexts/ValidatePayloadContext/Provider.tsx","../src/contexts/ValidatePayloadContext/Context.ts","../src/contexts/ValidatePayloadContext/use.tsx","../src/components/embed-card/menu/EmbedMenu.tsx","../src/components/embed-card/menu/JsonMenuItem.tsx","../src/components/embed-card/card/EmbedPluginCard.tsx","../src/components/controls/EmbedFormControl.tsx","../src/components/controls/ListModeSelect.tsx","../src/components/controls/RenderSelect.tsx","../src/components/embed-card/EmbedPluginCard.tsx","../src/components/EmbedPlugin.tsx","../src/components/EmbedResolver.tsx","../src/components/validation-alerts/ValidatePayload.tsx","../src/components/validation-alerts/ValidatePlugins.tsx","../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx","../src/components/embed-card/error-handling/EmbedErrorCard.tsx"],"sourcesContent":["import { Card, CardProps } from '@mui/material'\nimport { useBusyTiming } from '@xylabs/react-flexbox'\nimport {\n BusyCircularProgress,\n BusyCircularProgressProps,\n BusyLinearProgress,\n BusyLinearProgressProps,\n BusyVariant,\n WithChildren,\n} from '@xylabs/react-shared'\n\nexport interface BusyCardProps extends CardProps {\n busy?: boolean\n busyMinimum?: number\n busyVariant?: BusyVariant\n busyVariantProps?: BusyCircularProgressProps | BusyLinearProgressProps\n}\n\nexport const BusyCard: React.FC<WithChildren<BusyCardProps>> = ({\n busy,\n busyMinimum = 500,\n busyVariant = 'circular',\n busyVariantProps,\n children,\n ...props\n}) => {\n const internalBusy = useBusyTiming(busy, busyMinimum)\n return (\n <Card {...props}>\n {children}\n {busyVariant === 'circular' && internalBusy ? <BusyCircularProgress {...(busyVariantProps as BusyCircularProgressProps)} /> : null}\n {busyVariant === 'linear' && internalBusy ? <BusyLinearProgress {...(busyVariantProps as BusyLinearProgressProps)} /> : null}\n </Card>\n )\n}\n","import RefreshIcon from '@mui/icons-material/Refresh'\nimport { Avatar, CardHeader, CardHeaderProps, Chip, Theme } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../../contexts'\nimport { EmbedMenu } from '../menu'\n\nexport const EmbedCardHeader: React.FC<CardHeaderProps> = () => {\n const { refreshHuri, huri } = useResolvePayload()\n const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState()\n const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {}\n //this is temporary so that we can add the ability to get a timestamp via diviner later\n const timestamp = Date.now()\n return (\n <CardHeader\n sx={{ flexWrap: 'wrap', rowGap: 1 }}\n avatar={\n hideAvatar ? (\n <></>\n ) : (\n <Avatar sx={{ bgcolor: (theme: Theme) => theme.palette.primary.main }} aria-label={activePlugin?.name}>\n {activePlugin?.name?.charAt(0)}\n </Avatar>\n )\n }\n action={\n <FlexRow flexWrap=\"wrap\" columnGap={0.5}>\n {timestamp ? (\n hideTimestamp && hideRefreshButton ? (\n ''\n ) : (\n <Chip\n avatar={hideRefreshButton ? <></> : <RefreshIcon />}\n clickable={hideRefreshButton ? false : true}\n onClick={refreshHuri}\n label={hideTimestamp ? '' : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`}\n />\n )\n ) : null}\n {/* Huri case is valid as long as the only menu item is JSON */}\n {hideCardActions || huri === undefined ? null : <EmbedMenu />}\n </FlexRow>\n }\n title={hideTitle ? '' : activePlugin?.name}\n />\n )\n}\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginState } from './State'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n","import { WithChildren } from '@xylabs/react-shared'\nimport { PayloadRenderPlugin } from '@xyo-network/react-payload-plugin'\nimport { useEffect, useState } from 'react'\n\nimport { EmbedPluginContext } from './Context'\nimport { EmbedPluginBase } from './State'\n\nexport type EmbedPluginProviderProps = EmbedPluginBase\n\n/** Expose passed embed plugin props via context */\nexport const EmbedPluginProvider: React.FC<WithChildren<EmbedPluginProviderProps>> = ({\n children,\n refreshTitle,\n timestampLabel,\n hideElementsConfig,\n plugins,\n embedPluginConfig,\n}) => {\n const [activePlugin, setActivePlugin] = useState<PayloadRenderPlugin | undefined>(plugins ? plugins[0] : undefined)\n\n useEffect(() => {\n setActivePlugin(plugins ? plugins[0] : undefined)\n }, [plugins])\n\n return (\n <EmbedPluginContext.Provider\n value={{\n activePlugin,\n embedPluginConfig,\n hideElementsConfig,\n provided: true,\n refreshTitle,\n setActivePlugin,\n timestampLabel,\n }}\n >\n {children}\n </EmbedPluginContext.Provider>\n )\n}\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginContext } from './Context'\n\nexport const useEmbedPluginState = () => useContextEx(EmbedPluginContext, 'EmbedPlugin', true)\n","import { WithChildren } from '@xylabs/react-shared'\nimport { useState } from 'react'\n\nimport { RefreshPayloadContext } from './Context'\n\nexport interface RefreshPayloadProps {\n onRefresh?: () => void\n refreshPayload?: boolean\n}\n\nexport const RefreshPayloadProvider: React.FC<WithChildren<RefreshPayloadProps>> = ({ children, onRefresh, refreshPayload }) => {\n const [localRefreshPayload, setRefreshPayload] = useState(refreshPayload)\n\n return (\n <RefreshPayloadContext.Provider value={{ onRefresh, provided: true, refreshPayload: localRefreshPayload, setRefreshPayload }}>\n {children}\n </RefreshPayloadContext.Provider>\n )\n}\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { RefreshPayloadState } from './State'\n\nexport const RefreshPayloadContext = createContextEx<RefreshPayloadState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { RefreshPayloadContext } from './Context'\n\nexport const useRefreshPayload = () => useContextEx(RefreshPayloadContext, 'RefreshPayload', true)\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { ResolvePayloadState } from './State'\n\nexport const ResolvePayloadContext = createContextEx<ResolvePayloadState>()\n","import { delay } from '@xylabs/delay'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { Huri } from '@xyo-network/huri'\nimport { ModuleError, ModuleErrorSchema, Payload } from '@xyo-network/payload-model'\nimport { useEffect, useState } from 'react'\n\nimport { useRefreshPayload } from '../RefreshPayloadContext'\nimport { ResolvePayloadContext } from './Context'\nimport { ResolvePayloadState } from './State'\n\nexport type ResolvePayloadProviderProps = Omit<ResolvePayloadState, 'provided'>\n\nexport const ResolvePayloadProvider: React.FC<WithChildren<ResolvePayloadProviderProps>> = ({ children, huriPayload }) => {\n const [payload, setPayload] = useState<Payload>()\n const [huri, setHuri] = useState<string>()\n const { refreshPayload, setRefreshPayload, onRefresh } = useRefreshPayload()\n\n useEffect(() => {\n typeof huriPayload === 'string' ? setHuri(huriPayload) : undefined\n if (typeof huriPayload === 'object') {\n setPayload(huriPayload)\n setRefreshPayload?.(true)\n }\n }, [huriPayload, setRefreshPayload])\n\n const [notFound, setNotFound] = useState<boolean>()\n const [huriError, setHuriError] = useState<ModuleError>()\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async (mounted) => {\n if (huri && !refreshPayload) {\n try {\n const huriInstance = new Huri(huri)\n const result = await huriInstance.fetch()\n // ensure the busy state can stay for a moment to avoid flashing too quickly\n await delay(500)\n\n if (mounted()) {\n setNotFound(result === null)\n setPayload(result)\n setRefreshPayload?.(true)\n }\n } catch (e) {\n const error = e as Error\n setHuriError({ message: error.message, schema: ModuleErrorSchema, sources: [] })\n }\n }\n },\n [huri, payload, refreshPayload, setRefreshPayload],\n )\n\n const refreshHuri = () => {\n onRefresh?.()\n if (huri) {\n setRefreshPayload?.(false)\n }\n }\n\n return (\n <ResolvePayloadContext.Provider value={{ huri, huriError, notFound, payload, provided: true, refreshHuri, setPayload }}>\n {children}\n </ResolvePayloadContext.Provider>\n )\n}\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { ResolvePayloadContext } from './Context'\n\nexport const useResolvePayload = () => useContextEx(ResolvePayloadContext, 'ResolvePayload', true)\n","import { Chip } from '@mui/material'\nimport { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { SchemaCache, SchemaNameToValidatorMap } from '@xyo-network/schema-cache'\nimport { useState } from 'react'\n\nimport { useResolvePayload } from '../ResolvePayloadContext'\nimport { ValidatePayloadContext } from './Context'\n\nexport interface ValidatePayloadProviderProps {\n // Opt-in flag to validate payloads for the plugin(s)\n enabled?: boolean\n}\n\nexport const ValidatePayloadProvider: React.FC<WithChildren<ValidatePayloadProviderProps>> = ({ children, enabled = false }) => {\n const { payload } = useResolvePayload()\n const [initialized, setInitialized] = useState(false)\n const [valid, setValid] = useState<boolean>()\n\n useAsyncEffect(\n // eslint-disable-next-line react-hooks/exhaustive-deps\n async () => {\n if (payload && enabled) {\n await SchemaCache.instance.get(payload.schema)\n\n const possibleKnownSchema = payload.schema as keyof SchemaNameToValidatorMap\n\n if (SchemaCache.instance.validators[possibleKnownSchema]) {\n const validator = SchemaCache.instance.validators[possibleKnownSchema]\n setValid(validator?.(payload))\n }\n setInitialized(true)\n }\n },\n [payload, enabled],\n )\n\n return (\n <ValidatePayloadContext.Provider value={{ enabled, provided: true, schema: payload?.schema, validPayload: valid }}>\n {enabled ? <>{initialized ? children : <Chip label=\"Validating Payload...\" />}</> : children}\n </ValidatePayloadContext.Provider>\n )\n}\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { ValidatePayloadState } from './State'\n\nexport const ValidatePayloadContext = createContextEx<ValidatePayloadState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { ValidatePayloadContext } from './Context'\n\nexport const useValidatePayload = () => useContextEx(ValidatePayloadContext, 'ValidateSchema', true)\n","import MoreVertIcon from '@mui/icons-material/MoreVert'\nimport { IconButton, IconButtonProps, Menu } from '@mui/material'\nimport { useState } from 'react'\n\nimport { JsonMenuItem } from './JsonMenuItem'\n\nexport const EmbedMenu: React.FC<IconButtonProps> = (props) => {\n // TODO - link to explore website\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null)\n const open = Boolean(anchorEl)\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget)\n }\n const handleClose = () => {\n setAnchorEl(null)\n }\n\n return (\n <>\n <IconButton onClick={handleClick} {...props}>\n <MoreVertIcon />\n </IconButton>\n <Menu anchorEl={anchorEl} open={open} onClose={handleClose} PaperProps={{ variant: 'elevation' }} MenuListProps={{ dense: true }}>\n <JsonMenuItem />\n </Menu>\n </>\n )\n}\n","import OpenInNewIcon from '@mui/icons-material/OpenInNew'\nimport { ListItemIcon, ListItemText, MenuItem, MenuItemProps } from '@mui/material'\n\nimport { useResolvePayload } from '../../../contexts'\n\nexport const JsonMenuItem: React.FC<MenuItemProps> = (props) => {\n const { huri } = useResolvePayload()\n\n return (\n <>\n {huri ? (\n <MenuItem title=\"Source Payload JSON\" onClick={() => window.open(huri, '_blank')} {...props}>\n <ListItemText sx={{ mr: 1 }}>JSON</ListItemText>\n <ListItemIcon sx={{ justifyContent: 'end' }}>\n <OpenInNewIcon fontSize=\"small\" />\n </ListItemIcon>\n </MenuItem>\n ) : null}\n </>\n )\n}\n","import { CardContent } from '@mui/material'\nimport { FlexGrowRow } from '@xylabs/react-flexbox'\nimport { useListMode } from '@xyo-network/react-shared'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../../contexts'\nimport { EmbedRenderSelect, ListModeSelectFormControl } from '../../controls'\nimport { BusyCard, BusyCardProps } from './BusyCard'\nimport { EmbedCardHeader } from './EmbedCardHeader'\n\nexport const EmbedPluginCard: React.FC<BusyCardProps> = ({ ...props }) => {\n const { payload } = useResolvePayload()\n const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = useEmbedPluginState()\n const { listMode } = useListMode()\n const supportsListMode = ActivePlugin?.components?.box?.listModes?.length ?? 0 > 1\n\n return (\n <BusyCard {...props}>\n {hideElementsConfig?.hideCardHeader ? null : <EmbedCardHeader />}\n {/* Only show the row if the children are present */}\n {(plugins && plugins.length) || supportsListMode ? (\n <FlexGrowRow columnGap={2} rowGap={2} flexWrap=\"wrap\" pb={1}>\n {plugins && plugins.length > 1 ? <EmbedRenderSelect /> : null}\n {supportsListMode ? <ListModeSelectFormControl /> : null}\n </FlexGrowRow>\n ) : null}\n <CardContent sx={{ height: '100%' }}>\n {ActivePlugin ? <ActivePlugin.components.box.detailsBox payload={payload} {...(supportsListMode && { listMode })} /> : null}\n </CardContent>\n </BusyCard>\n )\n}\n","import { FormControl, FormControlProps, InputLabel } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\ninterface EmbedFormControlProps extends FormControlProps {\n formId?: string\n formLabel?: string\n}\n\nexport const EmbedFormControl: React.FC<WithChildren<EmbedFormControlProps>> = ({ formId, formLabel, children, ...props }) => {\n return (\n <FormControl {...props}>\n <InputLabel id={formId}>{formLabel}</InputLabel>\n {children}\n </FormControl>\n )\n}\n","import { MenuItem, Select, SelectProps } from '@mui/material'\nimport { ListMode, useListMode } from '@xyo-network/react-shared'\n\nimport { EmbedFormControl } from './EmbedFormControl'\n\nconst listModeSelectId = 'listmode-select-id'\nconst listModeSelectLabel = 'List Mode'\n\nexport const ListModeSelect: React.FC<SelectProps<ListMode>> = (props) => {\n const { listMode, setListMode } = useListMode()\n\n return (\n <Select<ListMode>\n value={(listMode ?? 'default') as ListMode}\n onChange={(event) => {\n setListMode?.(event.target.value as ListMode)\n }}\n {...props}\n >\n <MenuItem key=\"default\" value=\"default\">\n Default\n </MenuItem>\n <MenuItem key=\"table\" value=\"table\">\n Table\n </MenuItem>\n <MenuItem key=\"grid\" value=\"grid\">\n Grid\n </MenuItem>\n </Select>\n )\n}\n\nexport const ListModeSelectFormControl: React.FC<SelectProps<ListMode>> = (props) => {\n return (\n <EmbedFormControl formId={listModeSelectId} formLabel={listModeSelectLabel}>\n <ListModeSelect size=\"small\" label={listModeSelectLabel} labelId={listModeSelectId} {...props} />\n </EmbedFormControl>\n )\n}\n","import { MenuItem, Select, SelectProps } from '@mui/material'\n\nimport { useEmbedPluginState } from '../../contexts'\nimport { EmbedFormControl } from './EmbedFormControl'\n\nconst renderSelectId = 'render-select-id'\nconst renderSelectLabel = 'Renderer'\n\nexport const EmbedRenderSelect: React.FC<SelectProps> = (props) => {\n const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState()\n return (\n <EmbedFormControl formId={renderSelectId} formLabel={renderSelectLabel}>\n <Select size=\"small\" value={activePlugin?.name} {...props}>\n {plugins?.map((plugin) => (\n <MenuItem value={plugin.name} key={plugin.name} onClick={() => setActivePlugin?.(plugin)}>\n {plugin.name}\n </MenuItem>\n ))}\n </Select>\n </EmbedFormControl>\n )\n}\n","import { useTheme } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\nimport { useRefreshPayload, useResolvePayload } from '../../contexts'\nimport { EmbedPluginProps } from '../../types'\nimport { EmbedPluginInner } from '../EmbedPlugin'\nimport { BusyCardProps, EmbedPluginCard } from './card'\nimport { EmbedCardApiErrorRenderer } from './error-handling'\n\nexport interface EmbedPluginCardProps extends WithChildren, EmbedPluginProps, BusyCardProps {}\n\nexport const ApiEmbedPluginCard: React.FC<EmbedPluginCardProps> = ({ children, ...props }) => {\n const {\n validateSchema,\n plugins = [],\n huriPayload,\n refreshTitle = '',\n timestampLabel = 'Data From',\n hideElementsConfig,\n embedPluginConfig,\n onRefresh,\n ...busyCardProps\n } = props\n\n return (\n <EmbedPluginInner\n {...{\n embedPluginConfig,\n hideElementsConfig,\n huriPayload,\n onRefresh,\n plugins,\n refreshTitle,\n timestampLabel,\n validateSchema,\n }}\n >\n <EmbedPluginCardInner {...busyCardProps} />\n {children}\n </EmbedPluginInner>\n )\n}\n\nexport const EmbedPluginCardInner: React.FC<BusyCardProps> = (props) => {\n const { payload, huriError } = useResolvePayload()\n const { refreshPayload } = useRefreshPayload()\n const theme = useTheme()\n\n return (\n <EmbedCardApiErrorRenderer xyoError={huriError}>\n <EmbedPluginCard\n elevation={3}\n variant=\"elevation\"\n busy={Boolean(!refreshPayload && payload)}\n busyVariantProps={{ style: { alignItems: 'start', paddingTop: theme.spacing(2), zIndex: 2 } }}\n sx={{ position: 'relative' }}\n {...props}\n />\n </EmbedCardApiErrorRenderer>\n )\n}\n\n/** @deprecated - use EmbedPluginCard and use CardProps instead of FlexBoxProps */\nexport const EmbedPlugin = EmbedPluginCard\n","import { FlexBoxProps } from '@xylabs/react-flexbox'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { ErrorBoundary, ListModeProvider } from '@xyo-network/react-shared'\n\nimport { EmbedPluginProvider, RefreshPayloadProvider, ResolvePayloadProvider, ValidatePayloadProvider } from '../contexts'\nimport { EmbedPluginProps } from '../types'\nimport { EmbedResolver } from './EmbedResolver'\nimport { ValidatePayloadAlert, ValidatePluginsAlert } from './validation-alerts'\n\nexport const EmbedPluginInner: React.FC<WithChildren<EmbedPluginProps>> = ({\n validateSchema,\n plugins = [],\n huriPayload,\n refreshTitle = '',\n timestampLabel = 'Data From',\n hideElementsConfig,\n embedPluginConfig,\n onRefresh,\n children,\n}) => {\n return (\n <ErrorBoundary>\n <EmbedPluginProvider\n refreshTitle={refreshTitle}\n timestampLabel={timestampLabel}\n hideElementsConfig={hideElementsConfig}\n plugins={plugins}\n embedPluginConfig={embedPluginConfig}\n >\n <WithResolvers onRefresh={onRefresh} huriPayload={huriPayload}>\n <WithValidators validateSchema={validateSchema}>\n <ListModeProvider defaultListMode={embedPluginConfig?.listMode}>{children}</ListModeProvider>\n </WithValidators>\n </WithResolvers>\n </EmbedPluginProvider>\n </ErrorBoundary>\n )\n}\n\ninterface WithResolversProps extends Pick<EmbedPluginProps, 'onRefresh' | 'huriPayload'>, FlexBoxProps {}\n\nconst WithResolvers: React.FC<WithChildren<WithResolversProps>> = ({ children, onRefresh, huriPayload }) => {\n return (\n <RefreshPayloadProvider onRefresh={onRefresh}>\n <ResolvePayloadProvider huriPayload={huriPayload}>\n <EmbedResolver>{children}</EmbedResolver>\n </ResolvePayloadProvider>\n </RefreshPayloadProvider>\n )\n}\n\nconst WithValidators: React.FC<WithChildren<{ validateSchema?: boolean }>> = ({ children, validateSchema }) => {\n return (\n <ValidatePayloadProvider enabled={validateSchema}>\n <ValidatePluginsAlert>\n <ValidatePayloadAlert>{children}</ValidatePayloadAlert>\n </ValidatePluginsAlert>\n </ValidatePayloadProvider>\n )\n}\n","import { WithChildren } from '@xylabs/react-shared'\nimport { LoadResult } from '@xyo-network/react-shared'\n\nimport { useResolvePayload } from '../contexts'\n\nexport const EmbedResolver: React.FC<WithChildren> = ({ children }) => {\n const { payload, notFound, huriError } = useResolvePayload()\n\n return (\n <LoadResult searchResult={payload} notFound={!!notFound} error={!!huriError}>\n {children}\n </LoadResult>\n )\n}\n","import { Alert, AlertProps } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\nimport { useValidatePayload } from '../../contexts'\n\nexport const ValidatePayloadAlert: React.FC<WithChildren<AlertProps>> = ({ children, ...props }) => {\n const { validPayload, enabled, schema } = useValidatePayload()\n\n if (enabled && validPayload === false) {\n return (\n <Alert severity=\"error\" title=\"Invalid Payload!\" {...props}>\n Payload schema claimed to be {schema} but failed to validate.\n </Alert>\n )\n }\n\n return <>{children}</>\n}\n","import { Alert, AlertProps, AlertTitle } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../contexts'\n\nexport const ValidatePluginsAlert: React.FC<WithChildren<AlertProps>> = ({ children, ...props }) => {\n const { payload } = useResolvePayload()\n const { plugins } = useEmbedPluginState()\n\n if (payload && plugins?.length === 0) {\n return (\n <Alert severity=\"warning\" {...props}>\n <AlertTitle>Missing plugins!</AlertTitle>Payload found but no plugins were present.\n </Alert>\n )\n }\n\n return <>{children}</>\n}\n","import { CardProps } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { ModuleError } from '@xyo-network/payload-model'\nimport { ErrorAlert, ErrorRender } from '@xyo-network/react-error'\n\nimport { EmbedErrorCard } from './EmbedErrorCard'\n\ninterface EmbedCardApiErrorRendererProps extends CardProps {\n xyoError?: ModuleError\n}\n\nexport const EmbedCardApiErrorRenderer: React.FC<WithChildren<EmbedCardApiErrorRendererProps>> = ({ xyoError, children, ...props }) => {\n return (\n <ErrorRender error={xyoError} noReAuth noErrorDisplay customError={<CustomApiErrorCard xyoError={xyoError} {...props} />}>\n {children}\n </ErrorRender>\n )\n}\n\nconst CustomApiErrorCard: React.FC<EmbedCardApiErrorRendererProps> = ({ xyoError, ...props }) => {\n return (\n <EmbedErrorCard {...props}>\n <ErrorAlert error={xyoError} />\n </EmbedErrorCard>\n )\n}\n","import { Alert, AlertProps, AlertTitle, Card, CardContent, CardProps, Typography } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\ninterface EmbedErrorCardBaseProps {\n alertProps?: AlertProps\n error?: Error\n hideErrorDetails?: boolean\n}\n\ninterface EmbedErrorCardProps extends EmbedErrorCardBaseProps, CardProps {\n alertProps?: AlertProps\n error?: Error\n}\n\nexport const EmbedErrorCard: React.FC<WithChildren<EmbedErrorCardProps>> = (props) => {\n const { alertProps, error, hideErrorDetails = true, children, ...cardProps } = props\n const errorProps = { alertProps, error, hideErrorDetails }\n return (\n <Card {...cardProps}>\n <CardContent>{children ?? <DefaultErrorAlert {...errorProps} />}</CardContent>\n </Card>\n )\n}\n\nconst DefaultErrorAlert: React.FC<EmbedErrorCardBaseProps> = ({ alertProps, hideErrorDetails, error }) => {\n return (\n <Alert severity=\"error\" {...alertProps}>\n <AlertTitle>Whoops! Something went wrong</AlertTitle>\n {!hideErrorDetails && error ? (\n <>\n <Typography variant=\"caption\">Error: </Typography>\n <Typography variant=\"caption\">{error?.message}</Typography>\n </>\n ) : (\n <Typography variant=\"caption\" fontSize=\"small\">\n Error Loading Plugin\n </Typography>\n )}\n </Alert>\n )\n}\n"],"mappings":";AAAA,SAAS,YAAuB;AAChC,SAAS,qBAAqB;AAC9B;AAAA,EACE;AAAA,EAEA;AAAA,OAIK;AAmBH,SAEgD,KAFhD;AAVG,IAAM,WAAkD,CAAC;AAAA,EAC9D;AAAA,EACA,cAAc;AAAA,EACd,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,eAAe,cAAc,MAAM,WAAW;AACpD,SACE,q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kBAAkB;AACjD,QAAM,EAAE,eAAe,IAAI,kBAAkB;AAC7C,QAAM,QAAQ,SAAS;AAEvB,SACE,gBAAAA,MAAC,6BAA0B,UAAU,WACnC,0BAAAA;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,MACX,SAAQ;AAAA,MACR,MAAM,QAAQ,CAAC,kBAAkB,OAAO;AAAA,MACxC,kBAAkB,EAAE,OAAO,EAAE,YAAY,SAAS,YAAY,MAAM,QAAQ,CAAC,GAAG,QAAQ,EAAE,EAAE;AAAA,MAC5F,IAAI,EAAE,UAAU,WAAW;AAAA,MAC1B,GAAG;AAAA;AAAA,EACN,GACF;AAEJ;AAGO,IAAM,cAAc;","names":["Chip","jsx","useState","createContextEx","jsx","useState","useContextEx","useContextEx","createContextEx","useEffect","useState","jsx","useState","useEffect","useContextEx","useContextEx","useAsyncEffect","useState","createContextEx","jsx","useState","useAsyncEffect","useContextEx","useContextEx","useState","Fragment","jsx","jsxs","Fragment","jsx","jsxs","useState","Fragment","jsx","jsxs","Chip","useListMode","jsx","jsxs","MenuItem","jsx","jsxs","MenuItem","MenuItem","Select","jsx","Select","MenuItem","jsx","jsxs","useListMode","jsx","Fragment","jsx","jsxs","Alert","Fragment","jsx","jsxs","Alert","jsx","Alert","AlertTitle","Card","CardContent","Fragment","jsx","jsxs","jsx","jsx","jsxs"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbedPluginProps.d.ts","sourceRoot":"","sources":["../../src/types/EmbedPluginProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,eAAe,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAE1E,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,kBAAkB,CAAC,EAAE,2BAA2B,CAAA;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC9B,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB"}
@@ -0,0 +1,10 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ import { EmbedPluginBase, EmbedPluginVisibilityConfig } from '../contexts';
3
+ export interface EmbedPluginProps extends EmbedPluginBase {
4
+ hideElementsConfig?: EmbedPluginVisibilityConfig;
5
+ huriPayload?: string | Payload;
6
+ /** string for huri to resolve and payload for bypassing huri resolution */
7
+ onRefresh?: () => void;
8
+ validateSchema?: boolean;
9
+ }
10
+ //# sourceMappingURL=EmbedPluginProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbedPluginProps.d.ts","sourceRoot":"","sources":["../../src/types/EmbedPluginProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,eAAe,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAE1E,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,kBAAkB,CAAC,EAAE,2BAA2B,CAAA;IAChD,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IAC9B,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
@@ -1,4 +1,2 @@
1
- export * from './components';
2
- export * from './contexts';
3
- export * from './types';
1
+ export * from './EmbedPluginProps';
4
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
package/package.json CHANGED
@@ -10,26 +10,26 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/delay": "^2.10.11",
14
- "@xylabs/react-async-effect": "~2.17.15",
15
- "@xylabs/react-flexbox": "~2.17.15",
16
- "@xylabs/react-shared": "~2.17.15",
17
- "@xyo-network/huri": "^2.73.3",
18
- "@xyo-network/payload-model": "^2.73.3",
19
- "@xyo-network/react-error": "~2.61.0",
20
- "@xyo-network/react-payload-plugin": "~2.61.0",
21
- "@xyo-network/react-shared": "~2.61.0",
22
- "@xyo-network/schema-cache": "^2.73.3"
13
+ "@xylabs/delay": "^2.11.7",
14
+ "@xylabs/react-async-effect": "~2.18.4",
15
+ "@xylabs/react-flexbox": "~2.18.4",
16
+ "@xylabs/react-shared": "~2.18.4",
17
+ "@xyo-network/huri": "^2.74.1",
18
+ "@xyo-network/payload-model": "^2.74.1",
19
+ "@xyo-network/react-error": "~2.62.3",
20
+ "@xyo-network/react-payload-plugin": "~2.62.3",
21
+ "@xyo-network/react-shared": "~2.62.3",
22
+ "@xyo-network/schema-cache": "^2.74.1"
23
23
  },
24
24
  "devDependencies": {
25
- "@storybook/react": "^7.4.0",
25
+ "@storybook/react": "^7.4.3",
26
26
  "@uniswap/sdk": "^3.0.3",
27
27
  "@uniswap/sdk-core": "^4.0.7",
28
28
  "@uniswap/v3-sdk": "^3.10.0",
29
- "@xylabs/ts-scripts-yarn3": "^2.19.5",
30
- "@xylabs/tsconfig-react": "^2.19.5",
31
- "@xyo-network/react-aggregate-price-plugin": "~2.61.0",
32
- "@xyo-network/react-crypto-market-uniswap-plugin": "~2.61.0",
29
+ "@xylabs/ts-scripts-yarn3": "^3.0.28",
30
+ "@xylabs/tsconfig-react": "^3.0.28",
31
+ "@xyo-network/react-aggregate-price-plugin": "~2.62.3",
32
+ "@xyo-network/react-crypto-market-uniswap-plugin": "~2.62.3",
33
33
  "typescript": "^5.2.2"
34
34
  },
35
35
  "peerDependencies": {
@@ -42,27 +42,35 @@
42
42
  "react-router-dom": "^6"
43
43
  },
44
44
  "description": "Common React library for all XYO projects that use React",
45
- "browser": "dist/esm/index.js",
46
45
  "docs": "dist/docs.json",
47
46
  "exports": {
48
47
  ".": {
49
48
  "node": {
50
- "import": "./dist/esm/index.js",
51
- "require": "./dist/cjs/index.js"
49
+ "import": {
50
+ "types": "./dist/index.d.mts",
51
+ "default": "./dist/index.mjs"
52
+ },
53
+ "require": {
54
+ "types": "./dist/index.d.ts",
55
+ "default": "./dist/index.js"
56
+ }
52
57
  },
53
58
  "browser": {
54
- "import": "./dist/esm/index.js",
55
- "require": "./dist/cjs/index.js"
59
+ "import": {
60
+ "types": "./dist/index.d.mts",
61
+ "default": "./dist/index.mjs"
62
+ },
63
+ "require": {
64
+ "types": "./dist/index.d.ts",
65
+ "default": "./dist/index.js"
66
+ }
56
67
  },
57
- "default": "./dist/esm/index.js"
58
- },
59
- "./dist/docs.json": {
60
- "default": "./dist/docs.json"
68
+ "default": "./dist/index.mjs"
61
69
  },
62
70
  "./package.json": "./package.json"
63
71
  },
64
- "main": "dist/cjs/index.js",
65
- "module": "dist/esm/index.js",
72
+ "main": "dist/index.js",
73
+ "module": "dist/index.mjs",
66
74
  "homepage": "https://xyo.network",
67
75
  "keywords": [
68
76
  "xyo",
@@ -83,6 +91,6 @@
83
91
  "license": "yarn license-checker --exclude \"MIT, ISC, Apache-2.0, BSD, BSD-2-Clause, CC-BY-4.0, Unlicense, CC-BY-3.0, CC0-1.0\""
84
92
  },
85
93
  "sideEffects": false,
86
- "types": "dist/types/index.d.ts",
87
- "version": "2.61.0"
94
+ "types": "dist/index.d.ts",
95
+ "version": "2.62.3"
88
96
  }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmbedPluginInner = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_shared_1 = require("@xyo-network/react-shared");
6
- const contexts_1 = require("../contexts");
7
- const EmbedResolver_1 = require("./EmbedResolver");
8
- const validation_alerts_1 = require("./validation-alerts");
9
- const EmbedPluginInner = ({ validateSchema, plugins = [], huriPayload, refreshTitle = '', timestampLabel = 'Data From', hideElementsConfig, embedPluginConfig, onRefresh, children, }) => {
10
- return ((0, jsx_runtime_1.jsx)(react_shared_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(contexts_1.EmbedPluginProvider, Object.assign({ refreshTitle: refreshTitle, timestampLabel: timestampLabel, hideElementsConfig: hideElementsConfig, plugins: plugins, embedPluginConfig: embedPluginConfig }, { children: (0, jsx_runtime_1.jsx)(WithResolvers, Object.assign({ onRefresh: onRefresh, huriPayload: huriPayload }, { children: (0, jsx_runtime_1.jsx)(WithValidators, Object.assign({ validateSchema: validateSchema }, { children: (0, jsx_runtime_1.jsx)(react_shared_1.ListModeProvider, Object.assign({ defaultListMode: embedPluginConfig === null || embedPluginConfig === void 0 ? void 0 : embedPluginConfig.listMode }, { children: children })) })) })) })) }));
11
- };
12
- exports.EmbedPluginInner = EmbedPluginInner;
13
- const WithResolvers = ({ children, onRefresh, huriPayload }) => {
14
- return ((0, jsx_runtime_1.jsx)(contexts_1.RefreshPayloadProvider, Object.assign({ onRefresh: onRefresh }, { children: (0, jsx_runtime_1.jsx)(contexts_1.ResolvePayloadProvider, Object.assign({ huriPayload: huriPayload }, { children: (0, jsx_runtime_1.jsx)(EmbedResolver_1.EmbedResolver, { children: children }) })) })));
15
- };
16
- const WithValidators = ({ children, validateSchema }) => {
17
- return ((0, jsx_runtime_1.jsx)(contexts_1.ValidatePayloadProvider, Object.assign({ enabled: validateSchema }, { children: (0, jsx_runtime_1.jsx)(validation_alerts_1.ValidatePluginsAlert, { children: (0, jsx_runtime_1.jsx)(validation_alerts_1.ValidatePayloadAlert, { children: children }) }) })));
18
- };
19
- //# sourceMappingURL=Emb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AC5G,OAAO,CACL,uBAAC,kCAAuB,kBAAC,OAAO,EAAE,cAAc,gBAC9C,uBAAC,wCAAoB,cACnB,uBAAC,wCAAoB,cAAE,QAAQ,GAAwB,GAClC,IACC,CAC3B,CAAA;AACH,CAAC,CAAA"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmbedResolver = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_shared_1 = require("@xyo-network/react-shared");
6
- const contexts_1 = require("../contexts");
7
- const EmbedResolver = ({ children }) => {
8
- const { payload, notFound, huriError } = (0, contexts_1.useResolvePayload)();
9
- return ((0, jsx_runtime_1.jsx)(react_shared_1.LoadResult, Object.assign({ searchResult: payload, notFound: !!notFound, error: !!huriError }, { children: children })));
10
- };
11
- exports.EmbedResolver = EmbedResolver;
12
- //# sourceMappingURL=EmbedResolver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbedResolver.js","sourceRoot":"","sources":["../../../src/components/EmbedResolver.tsx"],"names":[],"mappings":";;;;AACA,4DAAsD;AAEtD,0CAA+C;AAExC,MAAM,aAAa,GAA2B,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IAE5D,OAAO,CACL,uBAAC,yBAAU,kBAAC,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,SAAS,gBACxE,QAAQ,IACE,CACd,CAAA;AACH,CAAC,CAAA;AARY,QAAA,aAAa,iBAQzB"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmbedFormControl = void 0;
4
- const tslib_1 = require("tslib");
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const material_1 = require("@mui/material");
7
- const EmbedFormControl = (_a) => {
8
- var { formId, formLabel, children } = _a, props = tslib_1.__rest(_a, ["formId", "formLabel", "children"]);
9
- return ((0, jsx_runtime_1.jsxs)(material_1.FormControl, Object.assign({}, props, { children: [(0, jsx_runtime_1.jsx)(material_1.InputLabel, Object.assign({ id: formId }, { children: formLabel })), children] })));
10
- };
11
- exports.EmbedFormControl = EmbedFormControl;
12
- //# sourceMappingURL=EmbedFormControl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbedFormControl.js","sourceRoot":"","sources":["../../../../src/components/controls/EmbedFormControl.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAyE;AAQlE,MAAM,gBAAgB,GAAkD,CAAC,EAAyC,EAAE,EAAE;QAA7C,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAAvC,mCAAyC,CAAF;IACrH,OAAO,CACL,wBAAC,sBAAW,oBAAK,KAAK,eACpB,uBAAC,qBAAU,kBAAC,EAAE,EAAE,MAAM,gBAAG,SAAS,IAAc,EAC/C,QAAQ,KACG,CACf,CAAA;AACH,CAAC,CAAA;AAPY,QAAA,gBAAgB,oBAO5B"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListModeSelectFormControl = exports.ListModeSelect = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const material_1 = require("@mui/material");
6
- const react_shared_1 = require("@xyo-network/react-shared");
7
- const EmbedFormControl_1 = require("./EmbedFormControl");
8
- const listModeSelectId = 'listmode-select-id';
9
- const listModeSelectLabel = 'List Mode';
10
- const ListModeSelect = (props) => {
11
- const { listMode, setListMode } = (0, react_shared_1.useListMode)();
12
- return ((0, jsx_runtime_1.jsxs)(material_1.Select, Object.assign({ value: (listMode !== null && listMode !== void 0 ? listMode : 'default'), onChange: (event) => {
13
- setListMode === null || setListMode === void 0 ? void 0 : setListMode(event.target.value);
14
- } }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ value: "default" }, { children: "Default" }), "default"), (0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ value: "table" }, { children: "Table" }), "table"), (0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ value: "grid" }, { children: "Grid" }), "grid")] })));
15
- };
16
- exports.ListModeSelect = ListModeSelect;
17
- const ListModeSelectFormControl = (props) => {
18
- return ((0, jsx_runtime_1.jsx)(EmbedFormControl_1.EmbedFormControl, Object.assign({ formId: listModeSelectId, formLabel: listModeSelectLabel }, { children: (0, jsx_runtime_1.jsx)(exports.ListModeSelect, Object.assign({ size: "small", label: listModeSelectLabel, labelId: listModeSelectId }, props)) })));
19
- };
20
- exports.ListModeSelectFormControl = ListModeSelectFormControl;
21
- //# sourceMappingURL=ListModeSelect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ListModeSelect.js","sourceRoot":"","sources":["../../../../src/components/controls/ListModeSelect.tsx"],"names":[],"mappings":";;;;AAAA,4CAA6D;AAC7D,4DAAiE;AAEjE,yDAAqD;AAErD,MAAM,gBAAgB,GAAG,oBAAoB,CAAA;AAC7C,MAAM,mBAAmB,GAAG,WAAW,CAAA;AAEhC,MAAM,cAAc,GAAoC,CAAC,KAAK,EAAE,EAAE;IACvE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,IAAA,0BAAW,GAAE,CAAA;IAE/C,OAAO,CACL,wBAAC,iBAAM,kBACL,KAAK,EAAE,CAAC,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,SAAS,CAAa,EAC1C,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAG,KAAK,CAAC,MAAM,CAAC,KAAiB,CAAC,CAAA;QAC/C,CAAC,IACG,KAAK,eAET,uBAAC,mBAAQ,kBAAe,KAAK,EAAC,SAAS,8BAAzB,SAAS,CAEZ,EACX,uBAAC,mBAAQ,kBAAa,KAAK,EAAC,OAAO,4BAArB,OAAO,CAEV,EACX,uBAAC,mBAAQ,kBAAY,KAAK,EAAC,MAAM,2BAAnB,MAAM,CAET,KACJ,CACV,CAAA;AACH,CAAC,CAAA;AAtBY,QAAA,cAAc,kBAsB1B;AAEM,MAAM,yBAAyB,GAAoC,CAAC,KAAK,EAAE,EAAE;IAClF,OAAO,CACL,uBAAC,mCAAgB,kBAAC,MAAM,EAAE,gBAAgB,EAAE,SAAS,EAAE,mBAAmB,gBACxE,uBAAC,sBAAc,kBAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,gBAAgB,IAAM,KAAK,EAAI,IAChF,CACpB,CAAA;AACH,CAAC,CAAA;AANY,QAAA,yBAAyB,6BAMrC"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmbedRenderSelect = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const material_1 = require("@mui/material");
6
- const contexts_1 = require("../../contexts");
7
- const EmbedFormControl_1 = require("./EmbedFormControl");
8
- const renderSelectId = 'render-select-id';
9
- const renderSelectLabel = 'Renderer';
10
- const EmbedRenderSelect = (props) => {
11
- const { activePlugin, setActivePlugin, plugins } = (0, contexts_1.useEmbedPluginState)();
12
- return ((0, jsx_runtime_1.jsx)(EmbedFormControl_1.EmbedFormControl, Object.assign({ formId: renderSelectId, formLabel: renderSelectLabel }, { children: (0, jsx_runtime_1.jsx)(material_1.Select, Object.assign({ size: "small", value: activePlugin === null || activePlugin === void 0 ? void 0 : activePlugin.name }, props, { children: plugins === null || plugins === void 0 ? void 0 : plugins.map((plugin) => ((0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ value: plugin.name, onClick: () => setActivePlugin === null || setActivePlugin === void 0 ? void 0 : setActivePlugin(plugin) }, { children: plugin.name }), plugin.name))) })) })));
13
- };
14
- exports.EmbedRenderSelect = EmbedRenderSelect;
15
- //# sourceMappingURL=RenderSelect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RenderSelect.js","sourceRoot":"","sources":["../../../../src/components/controls/RenderSelect.tsx"],"names":[],"mappings":";;;;AAAA,4CAA6D;AAE7D,6CAAoD;AACpD,yDAAqD;AAErD,MAAM,cAAc,GAAG,kBAAkB,CAAA;AACzC,MAAM,iBAAiB,GAAG,UAAU,CAAA;AAE7B,MAAM,iBAAiB,GAA0B,CAAC,KAAK,EAAE,EAAE;IAChE,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,IAAA,8BAAmB,GAAE,CAAA;IACxE,OAAO,CACL,uBAAC,mCAAgB,kBAAC,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,iBAAiB,gBACpE,uBAAC,iBAAM,kBAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI,IAAM,KAAK,cACtD,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACxB,uBAAC,mBAAQ,kBAAC,KAAK,EAAE,MAAM,CAAC,IAAI,EAAoB,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAG,MAAM,CAAC,gBACrF,MAAM,CAAC,IAAI,KADqB,MAAM,CAAC,IAAI,CAEnC,CACZ,CAAC,IACK,IACQ,CACpB,CAAA;AACH,CAAC,CAAA;AAbY,QAAA,iBAAiB,qBAa7B"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./EmbedFormControl"), exports);
5
- tslib_1.__exportStar(require("./ListModeSelect"), exports);
6
- tslib_1.__exportStar(require("./RenderSelect"), exports);
7
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/controls/index.ts"],"names":[],"mappings":";;;AAAA,6DAAkC;AAClC,2DAAgC;AAChC,yDAA8B"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmbedCardResolverFlexBox = void 0;
4
- const tslib_1 = require("tslib");
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const material_1 = require("@mui/material");
7
- const react_flexbox_1 = require("@xylabs/react-flexbox");
8
- const react_shared_1 = require("@xyo-network/react-shared");
9
- const contexts_1 = require("../../contexts");
10
- const error_handling_1 = require("./error-handling");
11
- const EmbedCardResolverFlexBox = (_a) => {
12
- var { children } = _a, props = tslib_1.__rest(_a, ["children"]);
13
- const { payload, notFound, huriError } = (0, contexts_1.useResolvePayload)();
14
- const { refreshPayload } = (0, contexts_1.useRefreshPayload)();
15
- const theme = (0, material_1.useTheme)();
16
- return ((0, jsx_runtime_1.jsx)(react_shared_1.LoadResult, Object.assign({ searchResult: payload, notFound: !!notFound, error: !!huriError }, { children: (0, jsx_runtime_1.jsx)(error_handling_1.EmbedCardApiErrorRenderer, Object.assign({ xyoError: huriError }, { children: (0, jsx_runtime_1.jsx)(react_flexbox_1.FlexCol, Object.assign({ id: "embed-outer-wrap", alignItems: "stretch", justifyContent: "start", busy: Boolean(!refreshPayload && payload), busyCircularProps: { style: { alignItems: 'start', paddingTop: theme.spacing(2), zIndex: 2 } } }, props, { children: children })) })) })));
17
- };
18
- exports.EmbedCardResolverFlexBox = EmbedCardResolverFlexBox;
19
- //# sourceMappingURL=EmbedCardResolver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbedCardResolver.js","sourceRoot":"","sources":["../../../../src/components/embed-card/EmbedCardResolver.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAwC;AACxC,yDAA6D;AAE7D,4DAAsD;AAEtD,6CAAqE;AACrE,qDAA4D;AAErD,MAAM,wBAAwB,GAAyC,CAAC,EAAsB,EAAE,EAAE;QAA1B,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAApB,YAAsB,CAAF;IACjG,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IAC5D,MAAM,EAAE,cAAc,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IAC9C,MAAM,KAAK,GAAG,IAAA,mBAAQ,GAAE,CAAA;IAExB,OAAO,CACL,uBAAC,yBAAU,kBAAC,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,SAAS,gBACzE,uBAAC,0CAAyB,kBAAC,QAAQ,EAAE,SAAS,gBAC5C,uBAAC,uBAAO,kBACN,EAAE,EAAC,kBAAkB,EACrB,UAAU,EAAC,SAAS,EACpB,cAAc,EAAC,OAAO,EACtB,IAAI,EAAE,OAAO,CAAC,CAAC,cAAc,IAAI,OAAO,CAAC,EACzC,iBAAiB,EAAE,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,IAC1F,KAAK,cAER,QAAQ,IACD,IACgB,IACjB,CACd,CAAA;AACH,CAAC,CAAA;AArBY,QAAA,wBAAwB,4BAqBpC"}
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmbedPlugin = exports.EmbedPluginCardInner = exports.ApiEmbedPluginCard = void 0;
4
- const tslib_1 = require("tslib");
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const material_1 = require("@mui/material");
7
- const contexts_1 = require("../../contexts");
8
- const EmbedPlugin_1 = require("../EmbedPlugin");
9
- const card_1 = require("./card");
10
- const error_handling_1 = require("./error-handling");
11
- const ApiEmbedPluginCard = (_a) => {
12
- var { children } = _a, props = tslib_1.__rest(_a, ["children"]);
13
- const { validateSchema, plugins = [], huriPayload, refreshTitle = '', timestampLabel = 'Data From', hideElementsConfig, embedPluginConfig, onRefresh } = props, busyCardProps = tslib_1.__rest(props, ["validateSchema", "plugins", "huriPayload", "refreshTitle", "timestampLabel", "hideElementsConfig", "embedPluginConfig", "onRefresh"]);
14
- return ((0, jsx_runtime_1.jsxs)(EmbedPlugin_1.EmbedPluginInner, Object.assign({}, {
15
- embedPluginConfig,
16
- hideElementsConfig,
17
- huriPayload,
18
- onRefresh,
19
- plugins,
20
- refreshTitle,
21
- timestampLabel,
22
- validateSchema,
23
- }, { children: [(0, jsx_runtime_1.jsx)(exports.EmbedPluginCardInner, Object.assign({}, busyCardProps)), children] })));
24
- };
25
- exports.ApiEmbedPluginCard = ApiEmbedPluginCard;
26
- const EmbedPluginCardInner = (props) => {
27
- const { payload, huriError } = (0, contexts_1.useResolvePayload)();
28
- const { refreshPayload } = (0, contexts_1.useRefreshPayload)();
29
- const theme = (0, material_1.useTheme)();
30
- return ((0, jsx_runtime_1.jsx)(error_handling_1.EmbedCardApiErrorRenderer, Object.assign({ xyoError: huriError }, { children: (0, jsx_runtime_1.jsx)(card_1.EmbedPluginCard, Object.assign({ elevation: 3, variant: "elevation", busy: Boolean(!refreshPayload && payload), busyVariantProps: { style: { alignItems: 'start', paddingTop: theme.spacing(2), zIndex: 2 } }, sx: { position: 'relative' } }, props)) })));
31
- };
32
- exports.EmbedPluginCardInner = EmbedPluginCardInner;
33
- /** @deprecated - use EmbedPluginCard and use CardProps instead of FlexBoxProps */
34
- exports.EmbedPlugin = card_1.EmbedPluginCard;
35
- //# sourceMappingURL=EmbedPluginCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbedPluginCard.js","sourceRoot":"","sources":["../../../../src/components/embed-card/EmbedPluginCard.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAwC;AAGxC,6CAAqE;AAErE,gDAAiD;AACjD,iCAAuD;AACvD,qDAA4D;AAIrD,MAAM,kBAAkB,GAAmC,CAAC,EAAsB,EAAE,EAAE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AoB,wBAiBhC;AAED,kFAAkF;AACrE,QAAA,WAAW,GAAG,sBAAe,CAAA"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BusyCard = void 0;
4
- const tslib_1 = require("tslib");
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const material_1 = require("@mui/material");
7
- const react_flexbox_1 = require("@xylabs/react-flexbox");
8
- const react_shared_1 = require("@xylabs/react-shared");
9
- const BusyCard = (_a) => {
10
- var { busy, busyMinimum = 500, busyVariant = 'circular', busyVariantProps, children } = _a, props = tslib_1.__rest(_a, ["busy", "busyMinimum", "busyVariant", "busyVariantProps", "children"]);
11
- const internalBusy = (0, react_flexbox_1.useBusyTiming)(busy, busyMinimum);
12
- return ((0, jsx_runtime_1.jsxs)(material_1.Card, Object.assign({}, props, { children: [children, busyVariant === 'circular' && internalBusy ? (0, jsx_runtime_1.jsx)(react_shared_1.BusyCircularProgress, Object.assign({}, busyVariantProps)) : null, busyVariant === 'linear' && internalBusy ? (0, jsx_runtime_1.jsx)(react_shared_1.BusyLinearProgress, Object.assign({}, busyVariantProps)) : null] })));
13
- };
14
- exports.BusyCard = BusyCard;
15
- //# sourceMappingURL=BusyCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BusyCard.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/BusyCard.tsx"],"names":[],"mappings":";;;;;AAAA,4CAA+C;AAC/C,yDAAqD;AACrD,uDAO6B;AAStB,MAAM,QAAQ,GAA0C,CAAC,EAO/D,EAAE,EAAE;QAP2D,EAC9D,IAAI,EACJ,WAAW,GAAG,GAAG,EACjB,WAAW,GAAG,UAAU,EACxB,gBAAgB,EAChB,QAAQ,OAET,EADI,KAAK,sBANsD,sEAO/D,CADS;IAER,MAAM,YAAY,GAAG,IAAA,6BAAa,EAAC,IAAI,EAAE,WAAW,CAAC,CAAA;IACrD,OAAO,CACL,wBAAC,eAAI,oBAAK,KAAK,eACZ,QAAQ,EACR,WAAW,KAAK,UAAU,IAAI,YAAY,CAAC,CAAC,CAAC,uBAAC,mCAAoB,oBAAM,gBAA8C,EAAI,CAAC,CAAC,CAAC,IAAI,EACjI,WAAW,KAAK,QAAQ,IAAI,YAAY,CAAC,CAAC,CAAC,uBAAC,iCAAkB,oBAAM,gBAA4C,EAAI,CAAC,CAAC,CAAC,IAAI,KACvH,CACR,CAAA;AACH,CAAC,CAAA;AAhBY,QAAA,QAAQ,YAgBpB"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmbedCardHeader = void 0;
4
- const tslib_1 = require("tslib");
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const Refresh_1 = tslib_1.__importDefault(require("@mui/icons-material/Refresh"));
7
- const material_1 = require("@mui/material");
8
- const react_flexbox_1 = require("@xylabs/react-flexbox");
9
- const contexts_1 = require("../../../contexts");
10
- const menu_1 = require("../menu");
11
- const EmbedCardHeader = () => {
12
- var _a;
13
- const { refreshHuri, huri } = (0, contexts_1.useResolvePayload)();
14
- const { activePlugin, timestampLabel, hideElementsConfig } = (0, contexts_1.useEmbedPluginState)();
15
- const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig !== null && hideElementsConfig !== void 0 ? hideElementsConfig : {};
16
- //this is temporary so that we can add the ability to get a timestamp via diviner later
17
- const timestamp = Date.now();
18
- return ((0, jsx_runtime_1.jsx)(material_1.CardHeader, { sx: { flexWrap: 'wrap', rowGap: 1 }, avatar: hideAvatar ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})) : ((0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ sx: { bgcolor: (theme) => theme.palette.primary.main }, "aria-label": activePlugin === null || activePlugin === void 0 ? void 0 : activePlugin.name }, { children: (_a = activePlugin === null || activePlugin === void 0 ? void 0 : activePlugin.name) === null || _a === void 0 ? void 0 : _a.charAt(0) }))), action: (0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexRow, Object.assign({ flexWrap: "wrap", columnGap: 0.5 }, { children: [timestamp ? (hideTimestamp && hideRefreshButton ? ('') : ((0, jsx_runtime_1.jsx)(material_1.Chip, { avatar: hideRefreshButton ? (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}) : (0, jsx_runtime_1.jsx)(Refresh_1.default, {}), clickable: hideRefreshButton ? false : true, onClick: refreshHuri, label: hideTimestamp ? '' : `${timestampLabel} ${new Date(timestamp).toLocaleString()}` }))) : null, hideCardActions || huri === undefined ? null : (0, jsx_runtime_1.jsx)(menu_1.EmbedMenu, {})] })), title: hideTitle ? '' : activePlugin === null || activePlugin === void 0 ? void 0 : activePlugin.name }));
19
- };
20
- exports.EmbedCardHeader = EmbedCardHeader;
21
- //# sourceMappingURL=EmbedCardHeader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbedCardHeader.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/EmbedCardHeader.tsx"],"names":[],"mappings":";;;;;AAAA,kFAAqD;AACrD,4CAAgF;AAChF,yDAA+C;AAE/C,gDAA0E;AAC1E,kCAAmC;AAE5B,MAAM,eAAe,GAA8B,GAAG,EAAE;;IAC7D,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IACjD,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,GAAG,IAAA,8BAAmB,GAAE,CAAA;IAClF,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,iBAAiB,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,kBAAkB,aAAlB,kBAAkB,cAAlB,kBAAkB,GAAI,EAAE,CAAA;IAC7G,uFAAuF;IACvF,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;IAC5B,OAAO,CACL,uBAAC,qBAAU,IACT,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE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uC3B"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmbedPluginCard = void 0;
4
- const tslib_1 = require("tslib");
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const material_1 = require("@mui/material");
7
- const react_flexbox_1 = require("@xylabs/react-flexbox");
8
- const react_shared_1 = require("@xyo-network/react-shared");
9
- const contexts_1 = require("../../../contexts");
10
- const controls_1 = require("../../controls");
11
- const BusyCard_1 = require("./BusyCard");
12
- const EmbedCardHeader_1 = require("./EmbedCardHeader");
13
- const EmbedPluginCard = (_a) => {
14
- var _b, _c, _d, _e;
15
- var props = tslib_1.__rest(_a, []);
16
- const { payload } = (0, contexts_1.useResolvePayload)();
17
- const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = (0, contexts_1.useEmbedPluginState)();
18
- const { listMode } = (0, react_shared_1.useListMode)();
19
- const supportsListMode = (_e = (_d = (_c = (_b = ActivePlugin === null || ActivePlugin === void 0 ? void 0 : ActivePlugin.components) === null || _b === void 0 ? void 0 : _b.box) === null || _c === void 0 ? void 0 : _c.listModes) === null || _d === void 0 ? void 0 : _d.length) !== null && _e !== void 0 ? _e : 0 > 1;
20
- return ((0, jsx_runtime_1.jsxs)(BusyCard_1.BusyCard, Object.assign({}, props, { children: [(hideElementsConfig === null || hideElementsConfig === void 0 ? void 0 : hideElementsConfig.hideCardHeader) ? null : (0, jsx_runtime_1.jsx)(EmbedCardHeader_1.EmbedCardHeader, {}), (plugins && plugins.length) || supportsListMode ? ((0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexGrowRow, Object.assign({ columnGap: 2, rowGap: 2, flexWrap: "wrap", pb: 1 }, { children: [plugins && plugins.length > 1 ? (0, jsx_runtime_1.jsx)(controls_1.EmbedRenderSelect, {}) : null, supportsListMode ? (0, jsx_runtime_1.jsx)(controls_1.ListModeSelectFormControl, {}) : null] }))) : null, (0, jsx_runtime_1.jsx)(material_1.CardContent, Object.assign({ sx: { height: '100%' } }, { children: ActivePlugin ? (0, jsx_runtime_1.jsx)(ActivePlugin.components.box.detailsBox, Object.assign({ payload: payload }, (supportsListMode && { listMode }))) : null }))] })));
21
- };
22
- exports.EmbedPluginCard = EmbedPluginCard;
23
- //# sourceMappingURL=EmbedPluginCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbedPluginCard.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/EmbedPluginCard.tsx"],"names":[],"mappings":";;;;;AAAA,4CAA2C;AAC3C,yDAAmD;AACnD,4DAAuD;AAEvD,gDAA0E;AAC1E,6CAA6E;AAC7E,yCAAoD;AACpD,uDAAmD;AAE5C,MAAM,eAAe,GAA4B,CAAC,EAAY,EAAE,EAAE;;QAAX,KAAK,sBAAV,EAAY,CAAF;IACjE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,4BAAiB,GAAE,CAAA;IACvC,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,kBAAkB,EAAE,GAAG,IAAA,8BAAmB,GAAE,CAAA;IACzF,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,0BAAW,GAAE,CAAA;IAClC,MAAM,gBAAgB,GAAG,MAAA,MAAA,MAAA,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,0CAAE,GAAG,0CAAE,SAAS,0CAAE,MAAM,mCAAI,CAAC,GAAG,CAAC,CAAA;IAElF,OAAO,CACL,wBAAC,mBAAQ,oBAAK,KAAK,eAChB,CAAA,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,cAAc,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,uBAAC,iCAAe,KAAG,EAE/D,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,CACjD,wBAAC,2BAAW,kBAAC,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAC,MAAM,EAAC,EAAE,EAAE,CAAC,iBACxD,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,uBAAC,4BAAiB,KAAG,CAAC,CAAC,CAAC,IAAI,EAC5D,gBAAgB,CAAC,CAAC,CAAC,uBAAC,oCAAyB,KAAG,CAAC,CAAC,CAAC,IAAI,KAC5C,CACf,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,sBAAW,kBAAC,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,gBAChC,YAAY,CAAC,CAAC,CAAC,uBAAC,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,kBAAC,OAAO,EAAE,OAAO,IAAM,CAAC,gBAAgB,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAI,CAAC,CAAC,CAAC,IAAI,IAC/G,KACL,CACZ,CAAA;AACH,CAAC,CAAA;AArBY,QAAA,eAAe,mBAqB3B"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./BusyCard"), exports);
5
- tslib_1.__exportStar(require("./EmbedCardHeader"), exports);
6
- tslib_1.__exportStar(require("./EmbedPluginCard"), exports);
7
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/card/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B;AAC1B,4DAAiC;AACjC,4DAAiC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmbedCardApiErrorRenderer = void 0;
4
- const tslib_1 = require("tslib");
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const react_error_1 = require("@xyo-network/react-error");
7
- const EmbedErrorCard_1 = require("./EmbedErrorCard");
8
- const EmbedCardApiErrorRenderer = (_a) => {
9
- var { xyoError, children } = _a, props = tslib_1.__rest(_a, ["xyoError", "children"]);
10
- return ((0, jsx_runtime_1.jsx)(react_error_1.ErrorRender, Object.assign({ error: xyoError, noReAuth: true, noErrorDisplay: true, customError: (0, jsx_runtime_1.jsx)(CustomApiErrorCard, Object.assign({ xyoError: xyoError }, props)) }, { children: children })));
11
- };
12
- exports.EmbedCardApiErrorRenderer = EmbedCardApiErrorRenderer;
13
- const CustomApiErrorCard = (_a) => {
14
- var { xyoError } = _a, props = tslib_1.__rest(_a, ["xyoError"]);
15
- return ((0, jsx_runtime_1.jsx)(EmbedErrorCard_1.EmbedErrorCard, Object.assign({}, props, { children: (0, jsx_runtime_1.jsx)(react_error_1.ErrorAlert, { error: xyoError }) })));
16
- };
17
- //# sourceMappingURL=EmbedCardApiErrorRenderer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbedCardApiErrorRenderer.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx"],"names":[],"mappings":";;;;;AAGA,0DAAkE;AAElE,qDAAiD;AAM1C,MAAM,yBAAyB,GAA2D,CAAC,EAAgC,EAAE,EAAE;QAApC,EAAE,QAAQ,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAA9B,wBAAgC,CAAF;IAC9H,OAAO,CACL,uBAAC,yBAAW,kBAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,QAAC,cAAc,QAAC,WAAW,EAAE,uBAAC,kBAAkB,kBAAC,QAAQ,EAAE,QAAQ,IAAM,KAAK,EAAI,gBACrH,QAAQ,IACG,CACf,CAAA;AACH,CAAC,CAAA;AANY,QAAA,yBAAyB,6BAMrC;AAED,MAAM,kBAAkB,GAA6C,CAAC,EAAsB,EAAE,EAAE;QAA1B,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAApB,YAAsB,CAAF;IACxF,OAAO,CACL,uBAAC,+BAAc,oBAAK,KAAK,cACvB,uBAAC,wBAAU,IAAC,KAAK,EAAE,QAAQ,GAAI,IAChB,CAClB,CAAA;AACH,CAAC,CAAA"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmbedErrorCard = void 0;
4
- const tslib_1 = require("tslib");
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const material_1 = require("@mui/material");
7
- const EmbedErrorCard = (props) => {
8
- const { alertProps, error, hideErrorDetails = true, children } = props, cardProps = tslib_1.__rest(props, ["alertProps", "error", "hideErrorDetails", "children"]);
9
- const errorProps = { alertProps, error, hideErrorDetails };
10
- return ((0, jsx_runtime_1.jsx)(material_1.Card, Object.assign({}, cardProps, { children: (0, jsx_runtime_1.jsx)(material_1.CardContent, { children: children !== null && children !== void 0 ? children : (0, jsx_runtime_1.jsx)(DefaultErrorAlert, Object.assign({}, errorProps)) }) })));
11
- };
12
- exports.EmbedErrorCard = EmbedErrorCard;
13
- const DefaultErrorAlert = ({ alertProps, hideErrorDetails, error }) => {
14
- return ((0, jsx_runtime_1.jsxs)(material_1.Alert, Object.assign({ severity: "error" }, alertProps, { children: [(0, jsx_runtime_1.jsx)(material_1.AlertTitle, { children: "Whoops! Something went wrong" }), !hideErrorDetails && error ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "caption" }, { children: "Error: " })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "caption" }, { children: error === null || error === void 0 ? void 0 : error.message }))] })) : ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "caption", fontSize: "small" }, { children: "Error Loading Plugin" })))] })));
15
- };
16
- //# sourceMappingURL=EmbedErrorCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmbedErrorCard.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/EmbedErrorCard.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAuG;AAchG,MAAM,cAAc,GAAgD,CAAC,KAAK,EAAE,EAAE;IACnF,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,gBAAgB,GAAG,IAAI,EAAE,QAAQ,KAAmB,KAAK,EAAnB,SAAS,kBAAK,KAAK,EAA9E,uDAAsE,CAAQ,CAAA;IACpF,MAAM,UAAU,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAA;IAC1D,OAAO,CACL,uBAAC,eAAI,oBAAK,SAAS,cACjB,uBAAC,sBAAW,cAAE,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,uBAAC,iBAAiB,oBAAK,UAAU,EAAI,GAAe,IACzE,CACR,CAAA;AACH,CAAC,CAAA;AARY,QAAA,cAAc,kBAQ1B;AAED,MAAM,iBAAiB,GAAsC,CAAC,EAAE,UAAU,EAAE,gBAAgB,EAAE,KAAK,EAAE,EAAE,EAAE;IACvG,OAAO,CACL,wBAAC,gBAAK,kBAAC,QAAQ,EAAC,OAAO,IAAK,UAAU,eACpC,uBAAC,qBAAU,+CAA0C,EACpD,CAAC,gBAAgB,IAAI,KAAK,CAAC,CAAC,CAAC,CAC5B,6DACE,uBAAC,qBAAU,kBAAC,OAAO,EAAC,SAAS,6BAAqB,EAClD,uBAAC,qBAAU,kBAAC,OAAO,EAAC,SAAS,gBAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,IAAc,IAC1D,CACJ,CAAC,CAAC,CAAC,CACF,uBAAC,qBAAU,kBAAC,OAAO,EAAC,SAAS,EAAC,QAAQ,EAAC,OAAO,0CAEjC,CACd,KACK,CACT,CAAA;AACH,CAAC,CAAA"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./EmbedCardApiErrorRenderer"), exports);
5
- tslib_1.__exportStar(require("./EmbedErrorCard"), exports);
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/embed-card/error-handling/index.ts"],"names":[],"mappings":";;;AAAA,sEAA2C;AAC3C,2DAAgC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./card"), exports);
5
- tslib_1.__exportStar(require("./EmbedPluginCard"), exports);
6
- //# sourceMappingURL=index.js.map