@xyo-network/react-embed 2.64.9 → 2.65.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (386) hide show
  1. package/package.json +15 -15
  2. package/dist/browser/components/EmbedPlugin.cjs +0 -251
  3. package/dist/browser/components/EmbedPlugin.cjs.map +0 -1
  4. package/dist/browser/components/EmbedPlugin.js +0 -230
  5. package/dist/browser/components/EmbedPlugin.js.map +0 -1
  6. package/dist/browser/components/EmbedResolver.cjs +0 -42
  7. package/dist/browser/components/EmbedResolver.cjs.map +0 -1
  8. package/dist/browser/components/EmbedResolver.js +0 -21
  9. package/dist/browser/components/EmbedResolver.js.map +0 -1
  10. package/dist/browser/components/controls/EmbedFormControl.cjs +0 -34
  11. package/dist/browser/components/controls/EmbedFormControl.cjs.map +0 -1
  12. package/dist/browser/components/controls/EmbedFormControl.js +0 -13
  13. package/dist/browser/components/controls/EmbedFormControl.js.map +0 -1
  14. package/dist/browser/components/controls/ListModeSelect.cjs +0 -65
  15. package/dist/browser/components/controls/ListModeSelect.cjs.map +0 -1
  16. package/dist/browser/components/controls/ListModeSelect.js +0 -44
  17. package/dist/browser/components/controls/ListModeSelect.js.map +0 -1
  18. package/dist/browser/components/controls/RenderSelect.cjs +0 -54
  19. package/dist/browser/components/controls/RenderSelect.cjs.map +0 -1
  20. package/dist/browser/components/controls/RenderSelect.js +0 -33
  21. package/dist/browser/components/controls/RenderSelect.js.map +0 -1
  22. package/dist/browser/components/controls/index.cjs +0 -87
  23. package/dist/browser/components/controls/index.cjs.map +0 -1
  24. package/dist/browser/components/controls/index.js +0 -64
  25. package/dist/browser/components/controls/index.js.map +0 -1
  26. package/dist/browser/components/embed-card/EmbedCardResolver.cjs +0 -95
  27. package/dist/browser/components/embed-card/EmbedCardResolver.cjs.map +0 -1
  28. package/dist/browser/components/embed-card/EmbedCardResolver.js +0 -74
  29. package/dist/browser/components/embed-card/EmbedCardResolver.js.map +0 -1
  30. package/dist/browser/components/embed-card/EmbedPluginCard.cjs +0 -497
  31. package/dist/browser/components/embed-card/EmbedPluginCard.cjs.map +0 -1
  32. package/dist/browser/components/embed-card/EmbedPluginCard.js +0 -479
  33. package/dist/browser/components/embed-card/EmbedPluginCard.js.map +0 -1
  34. package/dist/browser/components/embed-card/card/BusyCard.cjs +0 -45
  35. package/dist/browser/components/embed-card/card/BusyCard.cjs.map +0 -1
  36. package/dist/browser/components/embed-card/card/BusyCard.js +0 -27
  37. package/dist/browser/components/embed-card/card/BusyCard.js.map +0 -1
  38. package/dist/browser/components/embed-card/card/EmbedCardHeader.cjs +0 -108
  39. package/dist/browser/components/embed-card/card/EmbedCardHeader.cjs.map +0 -1
  40. package/dist/browser/components/embed-card/card/EmbedCardHeader.js +0 -87
  41. package/dist/browser/components/embed-card/card/EmbedCardHeader.js.map +0 -1
  42. package/dist/browser/components/embed-card/card/EmbedPluginCard.cjs +0 -199
  43. package/dist/browser/components/embed-card/card/EmbedPluginCard.cjs.map +0 -1
  44. package/dist/browser/components/embed-card/card/EmbedPluginCard.js +0 -181
  45. package/dist/browser/components/embed-card/card/EmbedPluginCard.js.map +0 -1
  46. package/dist/browser/components/embed-card/card/index.cjs +0 -203
  47. package/dist/browser/components/embed-card/card/index.cjs.map +0 -1
  48. package/dist/browser/components/embed-card/card/index.js +0 -183
  49. package/dist/browser/components/embed-card/card/index.js.map +0 -1
  50. package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.cjs +0 -54
  51. package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.cjs.map +0 -1
  52. package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +0 -33
  53. package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +0 -1
  54. package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.cjs +0 -42
  55. package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.cjs.map +0 -1
  56. package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.js +0 -21
  57. package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.js.map +0 -1
  58. package/dist/browser/components/embed-card/error-handling/index.cjs +0 -57
  59. package/dist/browser/components/embed-card/error-handling/index.cjs.map +0 -1
  60. package/dist/browser/components/embed-card/error-handling/index.js +0 -34
  61. package/dist/browser/components/embed-card/error-handling/index.js.map +0 -1
  62. package/dist/browser/components/embed-card/index.cjs +0 -502
  63. package/dist/browser/components/embed-card/index.cjs.map +0 -1
  64. package/dist/browser/components/embed-card/index.js +0 -482
  65. package/dist/browser/components/embed-card/index.js.map +0 -1
  66. package/dist/browser/components/embed-card/menu/EmbedMenu.cjs +0 -68
  67. package/dist/browser/components/embed-card/menu/EmbedMenu.cjs.map +0 -1
  68. package/dist/browser/components/embed-card/menu/EmbedMenu.js +0 -47
  69. package/dist/browser/components/embed-card/menu/EmbedMenu.js.map +0 -1
  70. package/dist/browser/components/embed-card/menu/JsonMenuItem.cjs +0 -46
  71. package/dist/browser/components/embed-card/menu/JsonMenuItem.cjs.map +0 -1
  72. package/dist/browser/components/embed-card/menu/JsonMenuItem.js +0 -25
  73. package/dist/browser/components/embed-card/menu/JsonMenuItem.js.map +0 -1
  74. package/dist/browser/components/embed-card/menu/index.cjs +0 -70
  75. package/dist/browser/components/embed-card/menu/index.cjs.map +0 -1
  76. package/dist/browser/components/embed-card/menu/index.js +0 -47
  77. package/dist/browser/components/embed-card/menu/index.js.map +0 -1
  78. package/dist/browser/components/embed-plugin-stories/storyPayload.cjs +0 -47
  79. package/dist/browser/components/embed-plugin-stories/storyPayload.cjs.map +0 -1
  80. package/dist/browser/components/embed-plugin-stories/storyPayload.js +0 -26
  81. package/dist/browser/components/embed-plugin-stories/storyPayload.js.map +0 -1
  82. package/dist/browser/components/embed-plugin-stories/storyShared.cjs +0 -513
  83. package/dist/browser/components/embed-plugin-stories/storyShared.cjs.map +0 -1
  84. package/dist/browser/components/embed-plugin-stories/storyShared.js +0 -495
  85. package/dist/browser/components/embed-plugin-stories/storyShared.js.map +0 -1
  86. package/dist/browser/components/index.cjs +0 -503
  87. package/dist/browser/components/index.cjs.map +0 -1
  88. package/dist/browser/components/index.js +0 -483
  89. package/dist/browser/components/index.js.map +0 -1
  90. package/dist/browser/components/validation-alerts/ValidatePayload.cjs +0 -49
  91. package/dist/browser/components/validation-alerts/ValidatePayload.cjs.map +0 -1
  92. package/dist/browser/components/validation-alerts/ValidatePayload.js +0 -28
  93. package/dist/browser/components/validation-alerts/ValidatePayload.js.map +0 -1
  94. package/dist/browser/components/validation-alerts/ValidatePlugins.cjs +0 -57
  95. package/dist/browser/components/validation-alerts/ValidatePlugins.cjs.map +0 -1
  96. package/dist/browser/components/validation-alerts/ValidatePlugins.js +0 -36
  97. package/dist/browser/components/validation-alerts/ValidatePlugins.js.map +0 -1
  98. package/dist/browser/components/validation-alerts/index.cjs +0 -83
  99. package/dist/browser/components/validation-alerts/index.cjs.map +0 -1
  100. package/dist/browser/components/validation-alerts/index.js +0 -60
  101. package/dist/browser/components/validation-alerts/index.js.map +0 -1
  102. package/dist/browser/contexts/EmbedPluginContext/Context.cjs +0 -28
  103. package/dist/browser/contexts/EmbedPluginContext/Context.cjs.map +0 -1
  104. package/dist/browser/contexts/EmbedPluginContext/Context.js +0 -7
  105. package/dist/browser/contexts/EmbedPluginContext/Context.js.map +0 -1
  106. package/dist/browser/contexts/EmbedPluginContext/Provider.cjs +0 -62
  107. package/dist/browser/contexts/EmbedPluginContext/Provider.cjs.map +0 -1
  108. package/dist/browser/contexts/EmbedPluginContext/Provider.js +0 -41
  109. package/dist/browser/contexts/EmbedPluginContext/Provider.js.map +0 -1
  110. package/dist/browser/contexts/EmbedPluginContext/State.cjs +0 -19
  111. package/dist/browser/contexts/EmbedPluginContext/State.cjs.map +0 -1
  112. package/dist/browser/contexts/EmbedPluginContext/State.js +0 -1
  113. package/dist/browser/contexts/EmbedPluginContext/State.js.map +0 -1
  114. package/dist/browser/contexts/EmbedPluginContext/index.cjs +0 -68
  115. package/dist/browser/contexts/EmbedPluginContext/index.cjs.map +0 -1
  116. package/dist/browser/contexts/EmbedPluginContext/index.js +0 -45
  117. package/dist/browser/contexts/EmbedPluginContext/index.js.map +0 -1
  118. package/dist/browser/contexts/EmbedPluginContext/use.cjs +0 -34
  119. package/dist/browser/contexts/EmbedPluginContext/use.cjs.map +0 -1
  120. package/dist/browser/contexts/EmbedPluginContext/use.js +0 -13
  121. package/dist/browser/contexts/EmbedPluginContext/use.js.map +0 -1
  122. package/dist/browser/contexts/RefreshPayloadContext/Context.cjs +0 -28
  123. package/dist/browser/contexts/RefreshPayloadContext/Context.cjs.map +0 -1
  124. package/dist/browser/contexts/RefreshPayloadContext/Context.js +0 -7
  125. package/dist/browser/contexts/RefreshPayloadContext/Context.js.map +0 -1
  126. package/dist/browser/contexts/RefreshPayloadContext/Provider.cjs +0 -38
  127. package/dist/browser/contexts/RefreshPayloadContext/Provider.cjs.map +0 -1
  128. package/dist/browser/contexts/RefreshPayloadContext/Provider.js +0 -17
  129. package/dist/browser/contexts/RefreshPayloadContext/Provider.js.map +0 -1
  130. package/dist/browser/contexts/RefreshPayloadContext/State.cjs +0 -19
  131. package/dist/browser/contexts/RefreshPayloadContext/State.cjs.map +0 -1
  132. package/dist/browser/contexts/RefreshPayloadContext/State.js +0 -1
  133. package/dist/browser/contexts/RefreshPayloadContext/State.js.map +0 -1
  134. package/dist/browser/contexts/RefreshPayloadContext/index.cjs +0 -45
  135. package/dist/browser/contexts/RefreshPayloadContext/index.cjs.map +0 -1
  136. package/dist/browser/contexts/RefreshPayloadContext/index.js +0 -22
  137. package/dist/browser/contexts/RefreshPayloadContext/index.js.map +0 -1
  138. package/dist/browser/contexts/RefreshPayloadContext/use.cjs +0 -34
  139. package/dist/browser/contexts/RefreshPayloadContext/use.cjs.map +0 -1
  140. package/dist/browser/contexts/RefreshPayloadContext/use.js +0 -13
  141. package/dist/browser/contexts/RefreshPayloadContext/use.js.map +0 -1
  142. package/dist/browser/contexts/ResolvePayloadContext/Context.cjs +0 -28
  143. package/dist/browser/contexts/ResolvePayloadContext/Context.cjs.map +0 -1
  144. package/dist/browser/contexts/ResolvePayloadContext/Context.js +0 -7
  145. package/dist/browser/contexts/ResolvePayloadContext/Context.js.map +0 -1
  146. package/dist/browser/contexts/ResolvePayloadContext/Provider.cjs +0 -88
  147. package/dist/browser/contexts/ResolvePayloadContext/Provider.cjs.map +0 -1
  148. package/dist/browser/contexts/ResolvePayloadContext/Provider.js +0 -67
  149. package/dist/browser/contexts/ResolvePayloadContext/Provider.js.map +0 -1
  150. package/dist/browser/contexts/ResolvePayloadContext/State.cjs +0 -19
  151. package/dist/browser/contexts/ResolvePayloadContext/State.cjs.map +0 -1
  152. package/dist/browser/contexts/ResolvePayloadContext/State.js +0 -1
  153. package/dist/browser/contexts/ResolvePayloadContext/State.js.map +0 -1
  154. package/dist/browser/contexts/ResolvePayloadContext/index.cjs +0 -96
  155. package/dist/browser/contexts/ResolvePayloadContext/index.cjs.map +0 -1
  156. package/dist/browser/contexts/ResolvePayloadContext/index.js +0 -73
  157. package/dist/browser/contexts/ResolvePayloadContext/index.js.map +0 -1
  158. package/dist/browser/contexts/ResolvePayloadContext/use.cjs +0 -34
  159. package/dist/browser/contexts/ResolvePayloadContext/use.cjs.map +0 -1
  160. package/dist/browser/contexts/ResolvePayloadContext/use.js +0 -13
  161. package/dist/browser/contexts/ResolvePayloadContext/use.js.map +0 -1
  162. package/dist/browser/contexts/ValidatePayloadContext/Context.cjs +0 -28
  163. package/dist/browser/contexts/ValidatePayloadContext/Context.cjs.map +0 -1
  164. package/dist/browser/contexts/ValidatePayloadContext/Context.js +0 -7
  165. package/dist/browser/contexts/ValidatePayloadContext/Context.js.map +0 -1
  166. package/dist/browser/contexts/ValidatePayloadContext/Provider.cjs +0 -66
  167. package/dist/browser/contexts/ValidatePayloadContext/Provider.cjs.map +0 -1
  168. package/dist/browser/contexts/ValidatePayloadContext/Provider.js +0 -45
  169. package/dist/browser/contexts/ValidatePayloadContext/Provider.js.map +0 -1
  170. package/dist/browser/contexts/ValidatePayloadContext/State.cjs +0 -19
  171. package/dist/browser/contexts/ValidatePayloadContext/State.cjs.map +0 -1
  172. package/dist/browser/contexts/ValidatePayloadContext/State.js +0 -1
  173. package/dist/browser/contexts/ValidatePayloadContext/State.js.map +0 -1
  174. package/dist/browser/contexts/ValidatePayloadContext/index.cjs +0 -73
  175. package/dist/browser/contexts/ValidatePayloadContext/index.cjs.map +0 -1
  176. package/dist/browser/contexts/ValidatePayloadContext/index.js +0 -50
  177. package/dist/browser/contexts/ValidatePayloadContext/index.js.map +0 -1
  178. package/dist/browser/contexts/ValidatePayloadContext/use.cjs +0 -34
  179. package/dist/browser/contexts/ValidatePayloadContext/use.cjs.map +0 -1
  180. package/dist/browser/contexts/ValidatePayloadContext/use.js +0 -13
  181. package/dist/browser/contexts/ValidatePayloadContext/use.js.map +0 -1
  182. package/dist/browser/contexts/index.cjs +0 -189
  183. package/dist/browser/contexts/index.cjs.map +0 -1
  184. package/dist/browser/contexts/index.js +0 -166
  185. package/dist/browser/contexts/index.js.map +0 -1
  186. package/dist/browser/types/EmbedPluginProps.cjs +0 -19
  187. package/dist/browser/types/EmbedPluginProps.cjs.map +0 -1
  188. package/dist/browser/types/EmbedPluginProps.js +0 -1
  189. package/dist/browser/types/EmbedPluginProps.js.map +0 -1
  190. package/dist/browser/types/index.cjs +0 -19
  191. package/dist/browser/types/index.cjs.map +0 -1
  192. package/dist/browser/types/index.js +0 -1
  193. package/dist/browser/types/index.js.map +0 -1
  194. package/dist/docs.json +0 -4925
  195. package/dist/node/components/EmbedPlugin.cjs +0 -255
  196. package/dist/node/components/EmbedPlugin.cjs.map +0 -1
  197. package/dist/node/components/EmbedPlugin.js +0 -230
  198. package/dist/node/components/EmbedPlugin.js.map +0 -1
  199. package/dist/node/components/EmbedResolver.cjs +0 -46
  200. package/dist/node/components/EmbedResolver.cjs.map +0 -1
  201. package/dist/node/components/EmbedResolver.js +0 -21
  202. package/dist/node/components/EmbedResolver.js.map +0 -1
  203. package/dist/node/components/controls/EmbedFormControl.cjs +0 -38
  204. package/dist/node/components/controls/EmbedFormControl.cjs.map +0 -1
  205. package/dist/node/components/controls/EmbedFormControl.js +0 -13
  206. package/dist/node/components/controls/EmbedFormControl.js.map +0 -1
  207. package/dist/node/components/controls/ListModeSelect.cjs +0 -70
  208. package/dist/node/components/controls/ListModeSelect.cjs.map +0 -1
  209. package/dist/node/components/controls/ListModeSelect.js +0 -44
  210. package/dist/node/components/controls/ListModeSelect.js.map +0 -1
  211. package/dist/node/components/controls/RenderSelect.cjs +0 -58
  212. package/dist/node/components/controls/RenderSelect.cjs.map +0 -1
  213. package/dist/node/components/controls/RenderSelect.js +0 -33
  214. package/dist/node/components/controls/RenderSelect.js.map +0 -1
  215. package/dist/node/components/controls/index.cjs +0 -94
  216. package/dist/node/components/controls/index.cjs.map +0 -1
  217. package/dist/node/components/controls/index.js +0 -64
  218. package/dist/node/components/controls/index.js.map +0 -1
  219. package/dist/node/components/embed-card/EmbedCardResolver.cjs +0 -99
  220. package/dist/node/components/embed-card/EmbedCardResolver.cjs.map +0 -1
  221. package/dist/node/components/embed-card/EmbedCardResolver.js +0 -74
  222. package/dist/node/components/embed-card/EmbedCardResolver.js.map +0 -1
  223. package/dist/node/components/embed-card/EmbedPluginCard.cjs +0 -505
  224. package/dist/node/components/embed-card/EmbedPluginCard.cjs.map +0 -1
  225. package/dist/node/components/embed-card/EmbedPluginCard.js +0 -481
  226. package/dist/node/components/embed-card/EmbedPluginCard.js.map +0 -1
  227. package/dist/node/components/embed-card/card/BusyCard.cjs +0 -49
  228. package/dist/node/components/embed-card/card/BusyCard.cjs.map +0 -1
  229. package/dist/node/components/embed-card/card/BusyCard.js +0 -27
  230. package/dist/node/components/embed-card/card/BusyCard.js.map +0 -1
  231. package/dist/node/components/embed-card/card/EmbedCardHeader.cjs +0 -113
  232. package/dist/node/components/embed-card/card/EmbedCardHeader.cjs.map +0 -1
  233. package/dist/node/components/embed-card/card/EmbedCardHeader.js +0 -88
  234. package/dist/node/components/embed-card/card/EmbedCardHeader.js.map +0 -1
  235. package/dist/node/components/embed-card/card/EmbedPluginCard.cjs +0 -205
  236. package/dist/node/components/embed-card/card/EmbedPluginCard.cjs.map +0 -1
  237. package/dist/node/components/embed-card/card/EmbedPluginCard.js +0 -183
  238. package/dist/node/components/embed-card/card/EmbedPluginCard.js.map +0 -1
  239. package/dist/node/components/embed-card/card/index.cjs +0 -211
  240. package/dist/node/components/embed-card/card/index.cjs.map +0 -1
  241. package/dist/node/components/embed-card/card/index.js +0 -185
  242. package/dist/node/components/embed-card/card/index.js.map +0 -1
  243. package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.cjs +0 -58
  244. package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.cjs.map +0 -1
  245. package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +0 -33
  246. package/dist/node/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +0 -1
  247. package/dist/node/components/embed-card/error-handling/EmbedErrorCard.cjs +0 -46
  248. package/dist/node/components/embed-card/error-handling/EmbedErrorCard.cjs.map +0 -1
  249. package/dist/node/components/embed-card/error-handling/EmbedErrorCard.js +0 -21
  250. package/dist/node/components/embed-card/error-handling/EmbedErrorCard.js.map +0 -1
  251. package/dist/node/components/embed-card/error-handling/index.cjs +0 -62
  252. package/dist/node/components/embed-card/error-handling/index.cjs.map +0 -1
  253. package/dist/node/components/embed-card/error-handling/index.js +0 -34
  254. package/dist/node/components/embed-card/error-handling/index.js.map +0 -1
  255. package/dist/node/components/embed-card/index.cjs +0 -513
  256. package/dist/node/components/embed-card/index.cjs.map +0 -1
  257. package/dist/node/components/embed-card/index.js +0 -484
  258. package/dist/node/components/embed-card/index.js.map +0 -1
  259. package/dist/node/components/embed-card/menu/EmbedMenu.cjs +0 -72
  260. package/dist/node/components/embed-card/menu/EmbedMenu.cjs.map +0 -1
  261. package/dist/node/components/embed-card/menu/EmbedMenu.js +0 -47
  262. package/dist/node/components/embed-card/menu/EmbedMenu.js.map +0 -1
  263. package/dist/node/components/embed-card/menu/JsonMenuItem.cjs +0 -50
  264. package/dist/node/components/embed-card/menu/JsonMenuItem.cjs.map +0 -1
  265. package/dist/node/components/embed-card/menu/JsonMenuItem.js +0 -25
  266. package/dist/node/components/embed-card/menu/JsonMenuItem.js.map +0 -1
  267. package/dist/node/components/embed-card/menu/index.cjs +0 -74
  268. package/dist/node/components/embed-card/menu/index.cjs.map +0 -1
  269. package/dist/node/components/embed-card/menu/index.js +0 -47
  270. package/dist/node/components/embed-card/menu/index.js.map +0 -1
  271. package/dist/node/components/embed-plugin-stories/storyPayload.cjs +0 -51
  272. package/dist/node/components/embed-plugin-stories/storyPayload.cjs.map +0 -1
  273. package/dist/node/components/embed-plugin-stories/storyPayload.js +0 -26
  274. package/dist/node/components/embed-plugin-stories/storyPayload.js.map +0 -1
  275. package/dist/node/components/embed-plugin-stories/storyShared.cjs +0 -520
  276. package/dist/node/components/embed-plugin-stories/storyShared.cjs.map +0 -1
  277. package/dist/node/components/embed-plugin-stories/storyShared.js +0 -497
  278. package/dist/node/components/embed-plugin-stories/storyShared.js.map +0 -1
  279. package/dist/node/components/index.cjs +0 -515
  280. package/dist/node/components/index.cjs.map +0 -1
  281. package/dist/node/components/index.js +0 -485
  282. package/dist/node/components/index.js.map +0 -1
  283. package/dist/node/components/validation-alerts/ValidatePayload.cjs +0 -53
  284. package/dist/node/components/validation-alerts/ValidatePayload.cjs.map +0 -1
  285. package/dist/node/components/validation-alerts/ValidatePayload.js +0 -28
  286. package/dist/node/components/validation-alerts/ValidatePayload.js.map +0 -1
  287. package/dist/node/components/validation-alerts/ValidatePlugins.cjs +0 -61
  288. package/dist/node/components/validation-alerts/ValidatePlugins.cjs.map +0 -1
  289. package/dist/node/components/validation-alerts/ValidatePlugins.js +0 -36
  290. package/dist/node/components/validation-alerts/ValidatePlugins.js.map +0 -1
  291. package/dist/node/components/validation-alerts/index.cjs +0 -88
  292. package/dist/node/components/validation-alerts/index.cjs.map +0 -1
  293. package/dist/node/components/validation-alerts/index.js +0 -60
  294. package/dist/node/components/validation-alerts/index.js.map +0 -1
  295. package/dist/node/contexts/EmbedPluginContext/Context.cjs +0 -32
  296. package/dist/node/contexts/EmbedPluginContext/Context.cjs.map +0 -1
  297. package/dist/node/contexts/EmbedPluginContext/Context.js +0 -7
  298. package/dist/node/contexts/EmbedPluginContext/Context.js.map +0 -1
  299. package/dist/node/contexts/EmbedPluginContext/Provider.cjs +0 -66
  300. package/dist/node/contexts/EmbedPluginContext/Provider.cjs.map +0 -1
  301. package/dist/node/contexts/EmbedPluginContext/Provider.js +0 -41
  302. package/dist/node/contexts/EmbedPluginContext/Provider.js.map +0 -1
  303. package/dist/node/contexts/EmbedPluginContext/State.cjs +0 -19
  304. package/dist/node/contexts/EmbedPluginContext/State.cjs.map +0 -1
  305. package/dist/node/contexts/EmbedPluginContext/State.js +0 -1
  306. package/dist/node/contexts/EmbedPluginContext/State.js.map +0 -1
  307. package/dist/node/contexts/EmbedPluginContext/index.cjs +0 -74
  308. package/dist/node/contexts/EmbedPluginContext/index.cjs.map +0 -1
  309. package/dist/node/contexts/EmbedPluginContext/index.js +0 -45
  310. package/dist/node/contexts/EmbedPluginContext/index.js.map +0 -1
  311. package/dist/node/contexts/EmbedPluginContext/use.cjs +0 -38
  312. package/dist/node/contexts/EmbedPluginContext/use.cjs.map +0 -1
  313. package/dist/node/contexts/EmbedPluginContext/use.js +0 -13
  314. package/dist/node/contexts/EmbedPluginContext/use.js.map +0 -1
  315. package/dist/node/contexts/RefreshPayloadContext/Context.cjs +0 -32
  316. package/dist/node/contexts/RefreshPayloadContext/Context.cjs.map +0 -1
  317. package/dist/node/contexts/RefreshPayloadContext/Context.js +0 -7
  318. package/dist/node/contexts/RefreshPayloadContext/Context.js.map +0 -1
  319. package/dist/node/contexts/RefreshPayloadContext/Provider.cjs +0 -42
  320. package/dist/node/contexts/RefreshPayloadContext/Provider.cjs.map +0 -1
  321. package/dist/node/contexts/RefreshPayloadContext/Provider.js +0 -17
  322. package/dist/node/contexts/RefreshPayloadContext/Provider.js.map +0 -1
  323. package/dist/node/contexts/RefreshPayloadContext/State.cjs +0 -19
  324. package/dist/node/contexts/RefreshPayloadContext/State.cjs.map +0 -1
  325. package/dist/node/contexts/RefreshPayloadContext/State.js +0 -1
  326. package/dist/node/contexts/RefreshPayloadContext/State.js.map +0 -1
  327. package/dist/node/contexts/RefreshPayloadContext/index.cjs +0 -50
  328. package/dist/node/contexts/RefreshPayloadContext/index.cjs.map +0 -1
  329. package/dist/node/contexts/RefreshPayloadContext/index.js +0 -22
  330. package/dist/node/contexts/RefreshPayloadContext/index.js.map +0 -1
  331. package/dist/node/contexts/RefreshPayloadContext/use.cjs +0 -38
  332. package/dist/node/contexts/RefreshPayloadContext/use.cjs.map +0 -1
  333. package/dist/node/contexts/RefreshPayloadContext/use.js +0 -13
  334. package/dist/node/contexts/RefreshPayloadContext/use.js.map +0 -1
  335. package/dist/node/contexts/ResolvePayloadContext/Context.cjs +0 -32
  336. package/dist/node/contexts/ResolvePayloadContext/Context.cjs.map +0 -1
  337. package/dist/node/contexts/ResolvePayloadContext/Context.js +0 -7
  338. package/dist/node/contexts/ResolvePayloadContext/Context.js.map +0 -1
  339. package/dist/node/contexts/ResolvePayloadContext/Provider.cjs +0 -92
  340. package/dist/node/contexts/ResolvePayloadContext/Provider.cjs.map +0 -1
  341. package/dist/node/contexts/ResolvePayloadContext/Provider.js +0 -67
  342. package/dist/node/contexts/ResolvePayloadContext/Provider.js.map +0 -1
  343. package/dist/node/contexts/ResolvePayloadContext/State.cjs +0 -19
  344. package/dist/node/contexts/ResolvePayloadContext/State.cjs.map +0 -1
  345. package/dist/node/contexts/ResolvePayloadContext/State.js +0 -1
  346. package/dist/node/contexts/ResolvePayloadContext/State.js.map +0 -1
  347. package/dist/node/contexts/ResolvePayloadContext/index.cjs +0 -102
  348. package/dist/node/contexts/ResolvePayloadContext/index.cjs.map +0 -1
  349. package/dist/node/contexts/ResolvePayloadContext/index.js +0 -73
  350. package/dist/node/contexts/ResolvePayloadContext/index.js.map +0 -1
  351. package/dist/node/contexts/ResolvePayloadContext/use.cjs +0 -38
  352. package/dist/node/contexts/ResolvePayloadContext/use.cjs.map +0 -1
  353. package/dist/node/contexts/ResolvePayloadContext/use.js +0 -13
  354. package/dist/node/contexts/ResolvePayloadContext/use.js.map +0 -1
  355. package/dist/node/contexts/ValidatePayloadContext/Context.cjs +0 -32
  356. package/dist/node/contexts/ValidatePayloadContext/Context.cjs.map +0 -1
  357. package/dist/node/contexts/ValidatePayloadContext/Context.js +0 -7
  358. package/dist/node/contexts/ValidatePayloadContext/Context.js.map +0 -1
  359. package/dist/node/contexts/ValidatePayloadContext/Provider.cjs +0 -70
  360. package/dist/node/contexts/ValidatePayloadContext/Provider.cjs.map +0 -1
  361. package/dist/node/contexts/ValidatePayloadContext/Provider.js +0 -45
  362. package/dist/node/contexts/ValidatePayloadContext/Provider.js.map +0 -1
  363. package/dist/node/contexts/ValidatePayloadContext/State.cjs +0 -19
  364. package/dist/node/contexts/ValidatePayloadContext/State.cjs.map +0 -1
  365. package/dist/node/contexts/ValidatePayloadContext/State.js +0 -1
  366. package/dist/node/contexts/ValidatePayloadContext/State.js.map +0 -1
  367. package/dist/node/contexts/ValidatePayloadContext/index.cjs +0 -78
  368. package/dist/node/contexts/ValidatePayloadContext/index.cjs.map +0 -1
  369. package/dist/node/contexts/ValidatePayloadContext/index.js +0 -50
  370. package/dist/node/contexts/ValidatePayloadContext/index.js.map +0 -1
  371. package/dist/node/contexts/ValidatePayloadContext/use.cjs +0 -38
  372. package/dist/node/contexts/ValidatePayloadContext/use.cjs.map +0 -1
  373. package/dist/node/contexts/ValidatePayloadContext/use.js +0 -13
  374. package/dist/node/contexts/ValidatePayloadContext/use.js.map +0 -1
  375. package/dist/node/contexts/index.cjs +0 -202
  376. package/dist/node/contexts/index.cjs.map +0 -1
  377. package/dist/node/contexts/index.js +0 -166
  378. package/dist/node/contexts/index.js.map +0 -1
  379. package/dist/node/types/EmbedPluginProps.cjs +0 -19
  380. package/dist/node/types/EmbedPluginProps.cjs.map +0 -1
  381. package/dist/node/types/EmbedPluginProps.js +0 -1
  382. package/dist/node/types/EmbedPluginProps.js.map +0 -1
  383. package/dist/node/types/index.cjs +0 -19
  384. package/dist/node/types/index.cjs.map +0 -1
  385. package/dist/node/types/index.js +0 -1
  386. package/dist/node/types/index.js.map +0 -1
@@ -1,95 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/components/embed-card/EmbedCardResolver.tsx
21
- var EmbedCardResolver_exports = {};
22
- __export(EmbedCardResolver_exports, {
23
- EmbedCardResolverFlexBox: () => EmbedCardResolverFlexBox
24
- });
25
- module.exports = __toCommonJS(EmbedCardResolver_exports);
26
- var import_material2 = require("@mui/material");
27
- var import_react_flexbox = require("@xylabs/react-flexbox");
28
- var import_react_shared5 = require("@xyo-network/react-shared");
29
-
30
- // src/contexts/RefreshPayloadContext/Context.tsx
31
- var import_react_shared = require("@xyo-network/react-shared");
32
- var RefreshPayloadContext = (0, import_react_shared.createContextEx)();
33
-
34
- // src/contexts/RefreshPayloadContext/use.tsx
35
- var import_react_shared2 = require("@xyo-network/react-shared");
36
- var useRefreshPayload = () => (0, import_react_shared2.useContextEx)(RefreshPayloadContext, "RefreshPayload", true);
37
-
38
- // src/contexts/ResolvePayloadContext/Context.ts
39
- var import_react_shared3 = require("@xyo-network/react-shared");
40
- var ResolvePayloadContext = (0, import_react_shared3.createContextEx)();
41
-
42
- // src/contexts/ResolvePayloadContext/use.tsx
43
- var import_react_shared4 = require("@xyo-network/react-shared");
44
- var useResolvePayload = () => (0, import_react_shared4.useContextEx)(ResolvePayloadContext, "ResolvePayload", true);
45
-
46
- // src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
47
- var import_react_error = require("@xyo-network/react-error");
48
-
49
- // src/components/embed-card/error-handling/EmbedErrorCard.tsx
50
- var import_material = require("@mui/material");
51
- var import_jsx_runtime = require("react/jsx-runtime");
52
- var EmbedErrorCard = (props) => {
53
- const { alertProps, error, hideErrorDetails = true, children, ...cardProps } = props;
54
- const errorProps = { alertProps, error, hideErrorDetails };
55
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Card, { ...cardProps, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.CardContent, { children: children ?? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DefaultErrorAlert, { ...errorProps }) }) });
56
- };
57
- var DefaultErrorAlert = ({ alertProps, hideErrorDetails, error }) => {
58
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Alert, { severity: "error", ...alertProps, children: [
59
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.AlertTitle, { children: "Whoops! Something went wrong" }),
60
- !hideErrorDetails && error ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
61
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", children: "Error: " }),
62
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", children: error?.message })
63
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", fontSize: "small", children: "Error Loading Plugin" })
64
- ] });
65
- };
66
-
67
- // src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
68
- var import_jsx_runtime2 = require("react/jsx-runtime");
69
- var EmbedCardApiErrorRenderer = ({ xyoError, children, ...props }) => {
70
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_error.ErrorRender, { error: xyoError, noReAuth: true, noErrorDisplay: true, customError: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CustomApiErrorCard, { xyoError, ...props }), children });
71
- };
72
- var CustomApiErrorCard = ({ xyoError, ...props }) => {
73
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(EmbedErrorCard, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_error.ErrorAlert, { error: xyoError }) });
74
- };
75
-
76
- // src/components/embed-card/EmbedCardResolver.tsx
77
- var import_jsx_runtime3 = require("react/jsx-runtime");
78
- var EmbedCardResolverFlexBox = ({ children, ...props }) => {
79
- const { payload, notFound, huriError } = useResolvePayload();
80
- const { refreshPayload } = useRefreshPayload();
81
- const theme = (0, import_material2.useTheme)();
82
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_shared5.LoadResult, { searchResult: payload, notFound: !!notFound, error: !!huriError, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(EmbedCardApiErrorRenderer, { xyoError: huriError, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
83
- import_react_flexbox.FlexCol,
84
- {
85
- id: "embed-outer-wrap",
86
- alignItems: "stretch",
87
- justifyContent: "start",
88
- busy: Boolean(!refreshPayload && payload),
89
- busyCircularProps: { style: { alignItems: "start", paddingTop: theme.spacing(2), zIndex: 2 } },
90
- ...props,
91
- children
92
- }
93
- ) }) });
94
- };
95
- //# sourceMappingURL=EmbedCardResolver.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/embed-card/EmbedCardResolver.tsx","../../../../src/contexts/RefreshPayloadContext/Context.tsx","../../../../src/contexts/RefreshPayloadContext/use.tsx","../../../../src/contexts/ResolvePayloadContext/Context.ts","../../../../src/contexts/ResolvePayloadContext/use.tsx","../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx","../../../../src/components/embed-card/error-handling/EmbedErrorCard.tsx"],"sourcesContent":["import { useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { LoadResult } from '@xyo-network/react-shared'\n\nimport { useRefreshPayload, useResolvePayload } from '../../contexts'\nimport { EmbedCardApiErrorRenderer } from './error-handling'\n\nexport const EmbedCardResolverFlexBox: React.FC<WithChildren<FlexBoxProps>> = ({ children, ...props }) => {\n const { payload, notFound, huriError } = useResolvePayload()\n const { refreshPayload } = useRefreshPayload()\n const theme = useTheme()\n\n return (\n <LoadResult searchResult={payload} notFound={!!notFound} error={!!huriError}>\n <EmbedCardApiErrorRenderer xyoError={huriError}>\n <FlexCol\n id=\"embed-outer-wrap\"\n alignItems=\"stretch\"\n justifyContent=\"start\"\n busy={Boolean(!refreshPayload && payload)}\n busyCircularProps={{ style: { alignItems: 'start', paddingTop: theme.spacing(2), zIndex: 2 } }}\n {...props}\n >\n {children}\n </FlexCol>\n </EmbedCardApiErrorRenderer>\n </LoadResult>\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 { useContextEx } from '@xyo-network/react-shared'\n\nimport { ResolvePayloadContext } from './Context'\n\nexport const useResolvePayload = () => useContextEx(ResolvePayloadContext, 'ResolvePayload', true)\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;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,mBAAyB;AACzB,2BAAsC;AAEtC,IAAAC,uBAA2B;;;ACH3B,0BAAgC;AAIzB,IAAM,4BAAwB,qCAAqC;;;ACJ1E,IAAAC,uBAA6B;AAItB,IAAM,oBAAoB,UAAM,mCAAa,uBAAuB,kBAAkB,IAAI;;;ACJjG,IAAAC,uBAAgC;AAIzB,IAAM,4BAAwB,sCAAqC;;;ACJ1E,IAAAC,uBAA6B;AAItB,IAAM,oBAAoB,UAAM,mCAAa,uBAAuB,kBAAkB,IAAI;;;ACDjG,yBAAwC;;;ACHxC,sBAAwF;AAmBxD;AALzB,IAAM,iBAA8D,CAAC,UAAU;AACpF,QAAM,EAAE,YAAY,OAAO,mBAAmB,MAAM,UAAU,GAAG,UAAU,IAAI;AAC/E,QAAM,aAAa,EAAE,YAAY,OAAO,iBAAiB;AACzD,SACE,4CAAC,wBAAM,GAAG,WACR,sDAAC,+BAAa,sBAAY,4CAAC,qBAAmB,GAAG,YAAY,GAAG,GAClE;AAEJ;AAEA,IAAM,oBAAuD,CAAC,EAAE,YAAY,kBAAkB,MAAM,MAAM;AACxG,SACE,6CAAC,yBAAM,UAAS,SAAS,GAAG,YAC1B;AAAA,gDAAC,8BAAW,0CAA4B;AAAA,IACvC,CAAC,oBAAoB,QACpB,4EACE;AAAA,kDAAC,8BAAW,SAAQ,WAAU,qBAAO;AAAA,MACrC,4CAAC,8BAAW,SAAQ,WAAW,iBAAO,SAAQ;AAAA,OAChD,IAEA,4CAAC,8BAAW,SAAQ,WAAU,UAAS,SAAQ,kCAE/C;AAAA,KAEJ;AAEJ;;;AD3BuE,IAAAC,sBAAA;AAFhE,IAAM,4BAAoF,CAAC,EAAE,UAAU,UAAU,GAAG,MAAM,MAAM;AACrI,SACE,6CAAC,kCAAY,OAAO,UAAU,UAAQ,MAAC,gBAAc,MAAC,aAAa,6CAAC,sBAAmB,UAAqB,GAAG,OAAO,GACnH,UACH;AAEJ;AAEA,IAAM,qBAA+D,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AAC/F,SACE,6CAAC,kBAAgB,GAAG,OAClB,uDAAC,iCAAW,OAAO,UAAU,GAC/B;AAEJ;;;ALTQ,IAAAC,sBAAA;AARD,IAAM,2BAAiE,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AACxG,QAAM,EAAE,SAAS,UAAU,UAAU,IAAI,kBAAkB;AAC3D,QAAM,EAAE,eAAe,IAAI,kBAAkB;AAC7C,QAAM,YAAQ,2BAAS;AAEvB,SACE,6CAAC,mCAAW,cAAc,SAAS,UAAU,CAAC,CAAC,UAAU,OAAO,CAAC,CAAC,WAChE,uDAAC,6BAA0B,UAAU,WACnC;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH,YAAW;AAAA,MACX,gBAAe;AAAA,MACf,MAAM,QAAQ,CAAC,kBAAkB,OAAO;AAAA,MACxC,mBAAmB,EAAE,OAAO,EAAE,YAAY,SAAS,YAAY,MAAM,QAAQ,CAAC,GAAG,QAAQ,EAAE,EAAE;AAAA,MAC5F,GAAG;AAAA,MAEH;AAAA;AAAA,EACH,GACF,GACF;AAEJ;","names":["import_material","import_react_shared","import_react_shared","import_react_shared","import_react_shared","import_jsx_runtime","import_jsx_runtime"]}
@@ -1,74 +0,0 @@
1
- // src/components/embed-card/EmbedCardResolver.tsx
2
- import { useTheme } from "@mui/material";
3
- import { FlexCol } from "@xylabs/react-flexbox";
4
- import { LoadResult } from "@xyo-network/react-shared";
5
-
6
- // src/contexts/RefreshPayloadContext/Context.tsx
7
- import { createContextEx } from "@xyo-network/react-shared";
8
- var RefreshPayloadContext = createContextEx();
9
-
10
- // src/contexts/RefreshPayloadContext/use.tsx
11
- import { useContextEx } from "@xyo-network/react-shared";
12
- var useRefreshPayload = () => useContextEx(RefreshPayloadContext, "RefreshPayload", true);
13
-
14
- // src/contexts/ResolvePayloadContext/Context.ts
15
- import { createContextEx as createContextEx2 } from "@xyo-network/react-shared";
16
- var ResolvePayloadContext = createContextEx2();
17
-
18
- // src/contexts/ResolvePayloadContext/use.tsx
19
- import { useContextEx as useContextEx2 } from "@xyo-network/react-shared";
20
- var useResolvePayload = () => useContextEx2(ResolvePayloadContext, "ResolvePayload", true);
21
-
22
- // src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
23
- import { ErrorAlert, ErrorRender } from "@xyo-network/react-error";
24
-
25
- // src/components/embed-card/error-handling/EmbedErrorCard.tsx
26
- import { Alert, AlertTitle, Card, CardContent, Typography } from "@mui/material";
27
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
28
- var EmbedErrorCard = (props) => {
29
- const { alertProps, error, hideErrorDetails = true, children, ...cardProps } = props;
30
- const errorProps = { alertProps, error, hideErrorDetails };
31
- return /* @__PURE__ */ jsx(Card, { ...cardProps, children: /* @__PURE__ */ jsx(CardContent, { children: children ?? /* @__PURE__ */ jsx(DefaultErrorAlert, { ...errorProps }) }) });
32
- };
33
- var DefaultErrorAlert = ({ alertProps, hideErrorDetails, error }) => {
34
- return /* @__PURE__ */ jsxs(Alert, { severity: "error", ...alertProps, children: [
35
- /* @__PURE__ */ jsx(AlertTitle, { children: "Whoops! Something went wrong" }),
36
- !hideErrorDetails && error ? /* @__PURE__ */ jsxs(Fragment, { children: [
37
- /* @__PURE__ */ jsx(Typography, { variant: "caption", children: "Error: " }),
38
- /* @__PURE__ */ jsx(Typography, { variant: "caption", children: error?.message })
39
- ] }) : /* @__PURE__ */ jsx(Typography, { variant: "caption", fontSize: "small", children: "Error Loading Plugin" })
40
- ] });
41
- };
42
-
43
- // src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx
44
- import { jsx as jsx2 } from "react/jsx-runtime";
45
- var EmbedCardApiErrorRenderer = ({ xyoError, children, ...props }) => {
46
- return /* @__PURE__ */ jsx2(ErrorRender, { error: xyoError, noReAuth: true, noErrorDisplay: true, customError: /* @__PURE__ */ jsx2(CustomApiErrorCard, { xyoError, ...props }), children });
47
- };
48
- var CustomApiErrorCard = ({ xyoError, ...props }) => {
49
- return /* @__PURE__ */ jsx2(EmbedErrorCard, { ...props, children: /* @__PURE__ */ jsx2(ErrorAlert, { error: xyoError }) });
50
- };
51
-
52
- // src/components/embed-card/EmbedCardResolver.tsx
53
- import { jsx as jsx3 } from "react/jsx-runtime";
54
- var EmbedCardResolverFlexBox = ({ children, ...props }) => {
55
- const { payload, notFound, huriError } = useResolvePayload();
56
- const { refreshPayload } = useRefreshPayload();
57
- const theme = useTheme();
58
- return /* @__PURE__ */ jsx3(LoadResult, { searchResult: payload, notFound: !!notFound, error: !!huriError, children: /* @__PURE__ */ jsx3(EmbedCardApiErrorRenderer, { xyoError: huriError, children: /* @__PURE__ */ jsx3(
59
- FlexCol,
60
- {
61
- id: "embed-outer-wrap",
62
- alignItems: "stretch",
63
- justifyContent: "start",
64
- busy: Boolean(!refreshPayload && payload),
65
- busyCircularProps: { style: { alignItems: "start", paddingTop: theme.spacing(2), zIndex: 2 } },
66
- ...props,
67
- children
68
- }
69
- ) }) });
70
- };
71
- export {
72
- EmbedCardResolverFlexBox
73
- };
74
- //# sourceMappingURL=EmbedCardResolver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/embed-card/EmbedCardResolver.tsx","../../../../src/contexts/RefreshPayloadContext/Context.tsx","../../../../src/contexts/RefreshPayloadContext/use.tsx","../../../../src/contexts/ResolvePayloadContext/Context.ts","../../../../src/contexts/ResolvePayloadContext/use.tsx","../../../../src/components/embed-card/error-handling/EmbedCardApiErrorRenderer.tsx","../../../../src/components/embed-card/error-handling/EmbedErrorCard.tsx"],"sourcesContent":["import { useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { LoadResult } from '@xyo-network/react-shared'\n\nimport { useRefreshPayload, useResolvePayload } from '../../contexts'\nimport { EmbedCardApiErrorRenderer } from './error-handling'\n\nexport const EmbedCardResolverFlexBox: React.FC<WithChildren<FlexBoxProps>> = ({ children, ...props }) => {\n const { payload, notFound, huriError } = useResolvePayload()\n const { refreshPayload } = useRefreshPayload()\n const theme = useTheme()\n\n return (\n <LoadResult searchResult={payload} notFound={!!notFound} error={!!huriError}>\n <EmbedCardApiErrorRenderer xyoError={huriError}>\n <FlexCol\n id=\"embed-outer-wrap\"\n alignItems=\"stretch\"\n justifyContent=\"start\"\n busy={Boolean(!refreshPayload && payload)}\n busyCircularProps={{ style: { alignItems: 'start', paddingTop: theme.spacing(2), zIndex: 2 } }}\n {...props}\n >\n {children}\n </FlexCol>\n </EmbedCardApiErrorRenderer>\n </LoadResult>\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 { useContextEx } from '@xyo-network/react-shared'\n\nimport { ResolvePayloadContext } from './Context'\n\nexport const useResolvePayload = () => useContextEx(ResolvePayloadContext, 'ResolvePayload', true)\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,gBAAgB;AACzB,SAAuB,eAAe;AAEtC,SAAS,kBAAkB;;;ACH3B,SAAS,uBAAuB;AAIzB,IAAM,wBAAwB,gBAAqC;;;ACJ1E,SAAS,oBAAoB;AAItB,IAAM,oBAAoB,MAAM,aAAa,uBAAuB,kBAAkB,IAAI;;;ACJjG,SAAS,mBAAAA,wBAAuB;AAIzB,IAAM,wBAAwBA,iBAAqC;;;ACJ1E,SAAS,gBAAAC,qBAAoB;AAItB,IAAM,oBAAoB,MAAMC,cAAa,uBAAuB,kBAAkB,IAAI;;;ACDjG,SAAS,YAAY,mBAAmB;;;ACHxC,SAAS,OAAmB,YAAY,MAAM,aAAwB,kBAAkB;AAmBxD,SAUxB,UAVwB,KAUxB,YAVwB;AALzB,IAAM,iBAA8D,CAAC,UAAU;AACpF,QAAM,EAAE,YAAY,OAAO,mBAAmB,MAAM,UAAU,GAAG,UAAU,IAAI;AAC/E,QAAM,aAAa,EAAE,YAAY,OAAO,iBAAiB;AACzD,SACE,oBAAC,QAAM,GAAG,WACR,8BAAC,eAAa,sBAAY,oBAAC,qBAAmB,GAAG,YAAY,GAAG,GAClE;AAEJ;AAEA,IAAM,oBAAuD,CAAC,EAAE,YAAY,kBAAkB,MAAM,MAAM;AACxG,SACE,qBAAC,SAAM,UAAS,SAAS,GAAG,YAC1B;AAAA,wBAAC,cAAW,0CAA4B;AAAA,IACvC,CAAC,oBAAoB,QACpB,iCACE;AAAA,0BAAC,cAAW,SAAQ,WAAU,qBAAO;AAAA,MACrC,oBAAC,cAAW,SAAQ,WAAW,iBAAO,SAAQ;AAAA,OAChD,IAEA,oBAAC,cAAW,SAAQ,WAAU,UAAS,SAAQ,kCAE/C;AAAA,KAEJ;AAEJ;;;AD3BuE,gBAAAC,YAAA;AAFhE,IAAM,4BAAoF,CAAC,EAAE,UAAU,UAAU,GAAG,MAAM,MAAM;AACrI,SACE,gBAAAA,KAAC,eAAY,OAAO,UAAU,UAAQ,MAAC,gBAAc,MAAC,aAAa,gBAAAA,KAAC,sBAAmB,UAAqB,GAAG,OAAO,GACnH,UACH;AAEJ;AAEA,IAAM,qBAA+D,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AAC/F,SACE,gBAAAA,KAAC,kBAAgB,GAAG,OAClB,0BAAAA,KAAC,cAAW,OAAO,UAAU,GAC/B;AAEJ;;;ALTQ,gBAAAC,YAAA;AARD,IAAM,2BAAiE,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AACxG,QAAM,EAAE,SAAS,UAAU,UAAU,IAAI,kBAAkB;AAC3D,QAAM,EAAE,eAAe,IAAI,kBAAkB;AAC7C,QAAM,QAAQ,SAAS;AAEvB,SACE,gBAAAA,KAAC,cAAW,cAAc,SAAS,UAAU,CAAC,CAAC,UAAU,OAAO,CAAC,CAAC,WAChE,0BAAAA,KAAC,6BAA0B,UAAU,WACnC,0BAAAA;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH,YAAW;AAAA,MACX,gBAAe;AAAA,MACf,MAAM,QAAQ,CAAC,kBAAkB,OAAO;AAAA,MACxC,mBAAmB,EAAE,OAAO,EAAE,YAAY,SAAS,YAAY,MAAM,QAAQ,CAAC,GAAG,QAAQ,EAAE,EAAE;AAAA,MAC5F,GAAG;AAAA,MAEH;AAAA;AAAA,EACH,GACF,GACF;AAEJ;","names":["createContextEx","useContextEx","useContextEx","jsx","jsx"]}