@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,38 +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/controls/EmbedFormControl.tsx
21
- var EmbedFormControl_exports = {};
22
- __export(EmbedFormControl_exports, {
23
- EmbedFormControl: () => EmbedFormControl
24
- });
25
- module.exports = __toCommonJS(EmbedFormControl_exports);
26
- var import_material = require("@mui/material");
27
- var import_jsx_runtime = require("react/jsx-runtime");
28
- var EmbedFormControl = ({ formId, formLabel, children, ...props }) => {
29
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.FormControl, { ...props, children: [
30
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.InputLabel, { id: formId, children: formLabel }),
31
- children
32
- ] });
33
- };
34
- // Annotate the CommonJS export names for ESM import in node:
35
- 0 && (module.exports = {
36
- EmbedFormControl
37
- });
38
- //# sourceMappingURL=EmbedFormControl.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/controls/EmbedFormControl.tsx"],"sourcesContent":["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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAA0D;AAUtD;AAFG,IAAM,mBAAkE,CAAC,EAAE,QAAQ,WAAW,UAAU,GAAG,MAAM,MAAM;AAC5H,SACE,6CAAC,+BAAa,GAAG,OACf;AAAA,gDAAC,8BAAW,IAAI,QAAS,qBAAU;AAAA,IAClC;AAAA,KACH;AAEJ;","names":[]}
@@ -1,13 +0,0 @@
1
- // src/components/controls/EmbedFormControl.tsx
2
- import { FormControl, InputLabel } from "@mui/material";
3
- import { jsx, jsxs } from "react/jsx-runtime";
4
- var EmbedFormControl = ({ formId, formLabel, children, ...props }) => {
5
- return /* @__PURE__ */ jsxs(FormControl, { ...props, children: [
6
- /* @__PURE__ */ jsx(InputLabel, { id: formId, children: formLabel }),
7
- children
8
- ] });
9
- };
10
- export {
11
- EmbedFormControl
12
- };
13
- //# sourceMappingURL=EmbedFormControl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/controls/EmbedFormControl.tsx"],"sourcesContent":["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"],"mappings":";AAAA,SAAS,aAA+B,kBAAkB;AAUtD,SACE,KADF;AAFG,IAAM,mBAAkE,CAAC,EAAE,QAAQ,WAAW,UAAU,GAAG,MAAM,MAAM;AAC5H,SACE,qBAAC,eAAa,GAAG,OACf;AAAA,wBAAC,cAAW,IAAI,QAAS,qBAAU;AAAA,IAClC;AAAA,KACH;AAEJ;","names":[]}
@@ -1,70 +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/controls/ListModeSelect.tsx
21
- var ListModeSelect_exports = {};
22
- __export(ListModeSelect_exports, {
23
- ListModeSelect: () => ListModeSelect,
24
- ListModeSelectFormControl: () => ListModeSelectFormControl
25
- });
26
- module.exports = __toCommonJS(ListModeSelect_exports);
27
- var import_material2 = require("@mui/material");
28
- var import_react_shared = require("@xyo-network/react-shared");
29
-
30
- // src/components/controls/EmbedFormControl.tsx
31
- var import_material = require("@mui/material");
32
- var import_jsx_runtime = require("react/jsx-runtime");
33
- var EmbedFormControl = ({ formId, formLabel, children, ...props }) => {
34
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.FormControl, { ...props, children: [
35
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.InputLabel, { id: formId, children: formLabel }),
36
- children
37
- ] });
38
- };
39
-
40
- // src/components/controls/ListModeSelect.tsx
41
- var import_jsx_runtime2 = require("react/jsx-runtime");
42
- var listModeSelectId = "listmode-select-id";
43
- var listModeSelectLabel = "List Mode";
44
- var ListModeSelect = (props) => {
45
- const { listMode, setListMode } = (0, import_react_shared.useListMode)();
46
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
47
- import_material2.Select,
48
- {
49
- value: listMode ?? "default",
50
- onChange: (event) => {
51
- setListMode == null ? void 0 : setListMode(event.target.value);
52
- },
53
- ...props,
54
- children: [
55
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.MenuItem, { value: "default", children: "Default" }, "default"),
56
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.MenuItem, { value: "table", children: "Table" }, "table"),
57
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.MenuItem, { value: "grid", children: "Grid" }, "grid")
58
- ]
59
- }
60
- );
61
- };
62
- var ListModeSelectFormControl = (props) => {
63
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(EmbedFormControl, { formId: listModeSelectId, formLabel: listModeSelectLabel, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ListModeSelect, { size: "small", label: listModeSelectLabel, labelId: listModeSelectId, ...props }) });
64
- };
65
- // Annotate the CommonJS export names for ESM import in node:
66
- 0 && (module.exports = {
67
- ListModeSelect,
68
- ListModeSelectFormControl
69
- });
70
- //# sourceMappingURL=ListModeSelect.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/controls/ListModeSelect.tsx","../../../../src/components/controls/EmbedFormControl.tsx"],"sourcesContent":["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 { 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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,mBAA8C;AAC9C,0BAAsC;;;ACDtC,sBAA0D;AAUtD;AAFG,IAAM,mBAAkE,CAAC,EAAE,QAAQ,WAAW,UAAU,GAAG,MAAM,MAAM;AAC5H,SACE,6CAAC,+BAAa,GAAG,OACf;AAAA,gDAAC,8BAAW,IAAI,QAAS,qBAAU;AAAA,IAClC;AAAA,KACH;AAEJ;;;ADHI,IAAAC,sBAAA;AAPJ,IAAM,mBAAmB;AACzB,IAAM,sBAAsB;AAErB,IAAM,iBAAkD,CAAC,UAAU;AACxE,QAAM,EAAE,UAAU,YAAY,QAAI,iCAAY;AAE9C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAQ,YAAY;AAAA,MACpB,UAAU,CAAC,UAAU;AACnB,mDAAc,MAAM,OAAO;AAAA,MAC7B;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,qDAAC,6BAAuB,OAAM,WAAU,uBAA1B,SAEd;AAAA,QACA,6CAAC,6BAAqB,OAAM,SAAQ,qBAAtB,OAEd;AAAA,QACA,6CAAC,6BAAoB,OAAM,QAAO,oBAApB,MAEd;AAAA;AAAA;AAAA,EACF;AAEJ;AAEO,IAAM,4BAA6D,CAAC,UAAU;AACnF,SACE,6CAAC,oBAAiB,QAAQ,kBAAkB,WAAW,qBACrD,uDAAC,kBAAe,MAAK,SAAQ,OAAO,qBAAqB,SAAS,kBAAmB,GAAG,OAAO,GACjG;AAEJ;","names":["import_material","import_jsx_runtime"]}
@@ -1,44 +0,0 @@
1
- // src/components/controls/ListModeSelect.tsx
2
- import { MenuItem, Select } from "@mui/material";
3
- import { useListMode } from "@xyo-network/react-shared";
4
-
5
- // src/components/controls/EmbedFormControl.tsx
6
- import { FormControl, InputLabel } from "@mui/material";
7
- import { jsx, jsxs } from "react/jsx-runtime";
8
- var EmbedFormControl = ({ formId, formLabel, children, ...props }) => {
9
- return /* @__PURE__ */ jsxs(FormControl, { ...props, children: [
10
- /* @__PURE__ */ jsx(InputLabel, { id: formId, children: formLabel }),
11
- children
12
- ] });
13
- };
14
-
15
- // src/components/controls/ListModeSelect.tsx
16
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
17
- var listModeSelectId = "listmode-select-id";
18
- var listModeSelectLabel = "List Mode";
19
- var ListModeSelect = (props) => {
20
- const { listMode, setListMode } = useListMode();
21
- return /* @__PURE__ */ jsxs2(
22
- Select,
23
- {
24
- value: listMode ?? "default",
25
- onChange: (event) => {
26
- setListMode == null ? void 0 : setListMode(event.target.value);
27
- },
28
- ...props,
29
- children: [
30
- /* @__PURE__ */ jsx2(MenuItem, { value: "default", children: "Default" }, "default"),
31
- /* @__PURE__ */ jsx2(MenuItem, { value: "table", children: "Table" }, "table"),
32
- /* @__PURE__ */ jsx2(MenuItem, { value: "grid", children: "Grid" }, "grid")
33
- ]
34
- }
35
- );
36
- };
37
- var ListModeSelectFormControl = (props) => {
38
- return /* @__PURE__ */ jsx2(EmbedFormControl, { formId: listModeSelectId, formLabel: listModeSelectLabel, children: /* @__PURE__ */ jsx2(ListModeSelect, { size: "small", label: listModeSelectLabel, labelId: listModeSelectId, ...props }) });
39
- };
40
- export {
41
- ListModeSelect,
42
- ListModeSelectFormControl
43
- };
44
- //# sourceMappingURL=ListModeSelect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/controls/ListModeSelect.tsx","../../../../src/components/controls/EmbedFormControl.tsx"],"sourcesContent":["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 { 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"],"mappings":";AAAA,SAAS,UAAU,cAA2B;AAC9C,SAAmB,mBAAmB;;;ACDtC,SAAS,aAA+B,kBAAkB;AAUtD,SACE,KADF;AAFG,IAAM,mBAAkE,CAAC,EAAE,QAAQ,WAAW,UAAU,GAAG,MAAM,MAAM;AAC5H,SACE,qBAAC,eAAa,GAAG,OACf;AAAA,wBAAC,cAAW,IAAI,QAAS,qBAAU;AAAA,IAClC;AAAA,KACH;AAEJ;;;ADHI,SAOE,OAAAA,MAPF,QAAAC,aAAA;AAPJ,IAAM,mBAAmB;AACzB,IAAM,sBAAsB;AAErB,IAAM,iBAAkD,CAAC,UAAU;AACxE,QAAM,EAAE,UAAU,YAAY,IAAI,YAAY;AAE9C,SACE,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACC,OAAQ,YAAY;AAAA,MACpB,UAAU,CAAC,UAAU;AACnB,mDAAc,MAAM,OAAO;AAAA,MAC7B;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,wBAAAD,KAAC,YAAuB,OAAM,WAAU,uBAA1B,SAEd;AAAA,QACA,gBAAAA,KAAC,YAAqB,OAAM,SAAQ,qBAAtB,OAEd;AAAA,QACA,gBAAAA,KAAC,YAAoB,OAAM,QAAO,oBAApB,MAEd;AAAA;AAAA;AAAA,EACF;AAEJ;AAEO,IAAM,4BAA6D,CAAC,UAAU;AACnF,SACE,gBAAAA,KAAC,oBAAiB,QAAQ,kBAAkB,WAAW,qBACrD,0BAAAA,KAAC,kBAAe,MAAK,SAAQ,OAAO,qBAAqB,SAAS,kBAAmB,GAAG,OAAO,GACjG;AAEJ;","names":["jsx","jsxs"]}
@@ -1,58 +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/controls/RenderSelect.tsx
21
- var RenderSelect_exports = {};
22
- __export(RenderSelect_exports, {
23
- EmbedRenderSelect: () => EmbedRenderSelect
24
- });
25
- module.exports = __toCommonJS(RenderSelect_exports);
26
- var import_material2 = require("@mui/material");
27
-
28
- // src/contexts/EmbedPluginContext/Context.tsx
29
- var import_react_shared = require("@xyo-network/react-shared");
30
- var EmbedPluginContext = (0, import_react_shared.createContextEx)();
31
-
32
- // src/contexts/EmbedPluginContext/use.tsx
33
- var import_react_shared2 = require("@xyo-network/react-shared");
34
- var useEmbedPluginState = () => (0, import_react_shared2.useContextEx)(EmbedPluginContext, "EmbedPlugin", true);
35
-
36
- // src/components/controls/EmbedFormControl.tsx
37
- var import_material = require("@mui/material");
38
- var import_jsx_runtime = require("react/jsx-runtime");
39
- var EmbedFormControl = ({ formId, formLabel, children, ...props }) => {
40
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.FormControl, { ...props, children: [
41
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.InputLabel, { id: formId, children: formLabel }),
42
- children
43
- ] });
44
- };
45
-
46
- // src/components/controls/RenderSelect.tsx
47
- var import_jsx_runtime2 = require("react/jsx-runtime");
48
- var renderSelectId = "render-select-id";
49
- var renderSelectLabel = "Renderer";
50
- var EmbedRenderSelect = (props) => {
51
- const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState();
52
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(EmbedFormControl, { formId: renderSelectId, formLabel: renderSelectLabel, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.Select, { size: "small", value: activePlugin == null ? void 0 : activePlugin.name, ...props, children: plugins == null ? void 0 : plugins.map((plugin) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.MenuItem, { value: plugin.name, onClick: () => setActivePlugin == null ? void 0 : setActivePlugin(plugin), children: plugin.name }, plugin.name)) }) });
53
- };
54
- // Annotate the CommonJS export names for ESM import in node:
55
- 0 && (module.exports = {
56
- EmbedRenderSelect
57
- });
58
- //# sourceMappingURL=RenderSelect.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/controls/RenderSelect.tsx","../../../../src/contexts/EmbedPluginContext/Context.tsx","../../../../src/contexts/EmbedPluginContext/use.tsx","../../../../src/components/controls/EmbedFormControl.tsx"],"sourcesContent":["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 { createContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginState } from './State'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginContext } from './Context'\n\nexport const useEmbedPluginState = () => useContextEx(EmbedPluginContext, 'EmbedPlugin', true)\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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,mBAA8C;;;ACA9C,0BAAgC;AAIzB,IAAM,yBAAqB,qCAAkC;;;ACJpE,IAAAC,uBAA6B;AAItB,IAAM,sBAAsB,UAAM,mCAAa,oBAAoB,eAAe,IAAI;;;ACJ7F,sBAA0D;AAUtD;AAFG,IAAM,mBAAkE,CAAC,EAAE,QAAQ,WAAW,UAAU,GAAG,MAAM,MAAM;AAC5H,SACE,6CAAC,+BAAa,GAAG,OACf;AAAA,gDAAC,8BAAW,IAAI,QAAS,qBAAU;AAAA,IAClC;AAAA,KACH;AAEJ;;;AHDU,IAAAC,sBAAA;AATV,IAAM,iBAAiB;AACvB,IAAM,oBAAoB;AAEnB,IAAM,oBAA2C,CAAC,UAAU;AACjE,QAAM,EAAE,cAAc,iBAAiB,QAAQ,IAAI,oBAAoB;AACvE,SACE,6CAAC,oBAAiB,QAAQ,gBAAgB,WAAW,mBACnD,uDAAC,2BAAO,MAAK,SAAQ,OAAO,6CAAc,MAAO,GAAG,OACjD,6CAAS,IAAI,CAAC,WACb,6CAAC,6BAAS,OAAO,OAAO,MAAwB,SAAS,MAAM,mDAAkB,SAC9E,iBAAO,QADyB,OAAO,IAE1C,IAEJ,GACF;AAEJ;","names":["import_material","import_react_shared","import_jsx_runtime"]}
@@ -1,33 +0,0 @@
1
- // src/components/controls/RenderSelect.tsx
2
- import { MenuItem, Select } from "@mui/material";
3
-
4
- // src/contexts/EmbedPluginContext/Context.tsx
5
- import { createContextEx } from "@xyo-network/react-shared";
6
- var EmbedPluginContext = createContextEx();
7
-
8
- // src/contexts/EmbedPluginContext/use.tsx
9
- import { useContextEx } from "@xyo-network/react-shared";
10
- var useEmbedPluginState = () => useContextEx(EmbedPluginContext, "EmbedPlugin", true);
11
-
12
- // src/components/controls/EmbedFormControl.tsx
13
- import { FormControl, InputLabel } from "@mui/material";
14
- import { jsx, jsxs } from "react/jsx-runtime";
15
- var EmbedFormControl = ({ formId, formLabel, children, ...props }) => {
16
- return /* @__PURE__ */ jsxs(FormControl, { ...props, children: [
17
- /* @__PURE__ */ jsx(InputLabel, { id: formId, children: formLabel }),
18
- children
19
- ] });
20
- };
21
-
22
- // src/components/controls/RenderSelect.tsx
23
- import { jsx as jsx2 } from "react/jsx-runtime";
24
- var renderSelectId = "render-select-id";
25
- var renderSelectLabel = "Renderer";
26
- var EmbedRenderSelect = (props) => {
27
- const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState();
28
- return /* @__PURE__ */ jsx2(EmbedFormControl, { formId: renderSelectId, formLabel: renderSelectLabel, children: /* @__PURE__ */ jsx2(Select, { size: "small", value: activePlugin == null ? void 0 : activePlugin.name, ...props, children: plugins == null ? void 0 : plugins.map((plugin) => /* @__PURE__ */ jsx2(MenuItem, { value: plugin.name, onClick: () => setActivePlugin == null ? void 0 : setActivePlugin(plugin), children: plugin.name }, plugin.name)) }) });
29
- };
30
- export {
31
- EmbedRenderSelect
32
- };
33
- //# sourceMappingURL=RenderSelect.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/controls/RenderSelect.tsx","../../../../src/contexts/EmbedPluginContext/Context.tsx","../../../../src/contexts/EmbedPluginContext/use.tsx","../../../../src/components/controls/EmbedFormControl.tsx"],"sourcesContent":["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 { createContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginState } from './State'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginContext } from './Context'\n\nexport const useEmbedPluginState = () => useContextEx(EmbedPluginContext, 'EmbedPlugin', true)\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"],"mappings":";AAAA,SAAS,UAAU,cAA2B;;;ACA9C,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;;;ACJpE,SAAS,oBAAoB;AAItB,IAAM,sBAAsB,MAAM,aAAa,oBAAoB,eAAe,IAAI;;;ACJ7F,SAAS,aAA+B,kBAAkB;AAUtD,SACE,KADF;AAFG,IAAM,mBAAkE,CAAC,EAAE,QAAQ,WAAW,UAAU,GAAG,MAAM,MAAM;AAC5H,SACE,qBAAC,eAAa,GAAG,OACf;AAAA,wBAAC,cAAW,IAAI,QAAS,qBAAU;AAAA,IAClC;AAAA,KACH;AAEJ;;;AHDU,gBAAAA,YAAA;AATV,IAAM,iBAAiB;AACvB,IAAM,oBAAoB;AAEnB,IAAM,oBAA2C,CAAC,UAAU;AACjE,QAAM,EAAE,cAAc,iBAAiB,QAAQ,IAAI,oBAAoB;AACvE,SACE,gBAAAA,KAAC,oBAAiB,QAAQ,gBAAgB,WAAW,mBACnD,0BAAAA,KAAC,UAAO,MAAK,SAAQ,OAAO,6CAAc,MAAO,GAAG,OACjD,6CAAS,IAAI,CAAC,WACb,gBAAAA,KAAC,YAAS,OAAO,OAAO,MAAwB,SAAS,MAAM,mDAAkB,SAC9E,iBAAO,QADyB,OAAO,IAE1C,IAEJ,GACF;AAEJ;","names":["jsx"]}
@@ -1,94 +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/controls/index.ts
21
- var controls_exports = {};
22
- __export(controls_exports, {
23
- EmbedFormControl: () => EmbedFormControl,
24
- EmbedRenderSelect: () => EmbedRenderSelect,
25
- ListModeSelect: () => ListModeSelect,
26
- ListModeSelectFormControl: () => ListModeSelectFormControl
27
- });
28
- module.exports = __toCommonJS(controls_exports);
29
-
30
- // src/components/controls/EmbedFormControl.tsx
31
- var import_material = require("@mui/material");
32
- var import_jsx_runtime = require("react/jsx-runtime");
33
- var EmbedFormControl = ({ formId, formLabel, children, ...props }) => {
34
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.FormControl, { ...props, children: [
35
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.InputLabel, { id: formId, children: formLabel }),
36
- children
37
- ] });
38
- };
39
-
40
- // src/components/controls/ListModeSelect.tsx
41
- var import_material2 = require("@mui/material");
42
- var import_react_shared = require("@xyo-network/react-shared");
43
- var import_jsx_runtime2 = require("react/jsx-runtime");
44
- var listModeSelectId = "listmode-select-id";
45
- var listModeSelectLabel = "List Mode";
46
- var ListModeSelect = (props) => {
47
- const { listMode, setListMode } = (0, import_react_shared.useListMode)();
48
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
49
- import_material2.Select,
50
- {
51
- value: listMode ?? "default",
52
- onChange: (event) => {
53
- setListMode == null ? void 0 : setListMode(event.target.value);
54
- },
55
- ...props,
56
- children: [
57
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.MenuItem, { value: "default", children: "Default" }, "default"),
58
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.MenuItem, { value: "table", children: "Table" }, "table"),
59
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.MenuItem, { value: "grid", children: "Grid" }, "grid")
60
- ]
61
- }
62
- );
63
- };
64
- var ListModeSelectFormControl = (props) => {
65
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(EmbedFormControl, { formId: listModeSelectId, formLabel: listModeSelectLabel, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ListModeSelect, { size: "small", label: listModeSelectLabel, labelId: listModeSelectId, ...props }) });
66
- };
67
-
68
- // src/components/controls/RenderSelect.tsx
69
- var import_material3 = require("@mui/material");
70
-
71
- // src/contexts/EmbedPluginContext/Context.tsx
72
- var import_react_shared2 = require("@xyo-network/react-shared");
73
- var EmbedPluginContext = (0, import_react_shared2.createContextEx)();
74
-
75
- // src/contexts/EmbedPluginContext/use.tsx
76
- var import_react_shared3 = require("@xyo-network/react-shared");
77
- var useEmbedPluginState = () => (0, import_react_shared3.useContextEx)(EmbedPluginContext, "EmbedPlugin", true);
78
-
79
- // src/components/controls/RenderSelect.tsx
80
- var import_jsx_runtime3 = require("react/jsx-runtime");
81
- var renderSelectId = "render-select-id";
82
- var renderSelectLabel = "Renderer";
83
- var EmbedRenderSelect = (props) => {
84
- const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState();
85
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(EmbedFormControl, { formId: renderSelectId, formLabel: renderSelectLabel, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Select, { size: "small", value: activePlugin == null ? void 0 : activePlugin.name, ...props, children: plugins == null ? void 0 : plugins.map((plugin) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.MenuItem, { value: plugin.name, onClick: () => setActivePlugin == null ? void 0 : setActivePlugin(plugin), children: plugin.name }, plugin.name)) }) });
86
- };
87
- // Annotate the CommonJS export names for ESM import in node:
88
- 0 && (module.exports = {
89
- EmbedFormControl,
90
- EmbedRenderSelect,
91
- ListModeSelect,
92
- ListModeSelectFormControl
93
- });
94
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/controls/index.ts","../../../../src/components/controls/EmbedFormControl.tsx","../../../../src/components/controls/ListModeSelect.tsx","../../../../src/components/controls/RenderSelect.tsx","../../../../src/contexts/EmbedPluginContext/Context.tsx","../../../../src/contexts/EmbedPluginContext/use.tsx"],"sourcesContent":["export * from './EmbedFormControl'\nexport * from './ListModeSelect'\nexport * from './RenderSelect'\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 { createContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginState } from './State'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginContext } from './Context'\n\nexport const useEmbedPluginState = () => useContextEx(EmbedPluginContext, 'EmbedPlugin', true)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,sBAA0D;AAUtD;AAFG,IAAM,mBAAkE,CAAC,EAAE,QAAQ,WAAW,UAAU,GAAG,MAAM,MAAM;AAC5H,SACE,6CAAC,+BAAa,GAAG,OACf;AAAA,gDAAC,8BAAW,IAAI,QAAS,qBAAU;AAAA,IAClC;AAAA,KACH;AAEJ;;;ACfA,IAAAA,mBAA8C;AAC9C,0BAAsC;AAWlC,IAAAC,sBAAA;AAPJ,IAAM,mBAAmB;AACzB,IAAM,sBAAsB;AAErB,IAAM,iBAAkD,CAAC,UAAU;AACxE,QAAM,EAAE,UAAU,YAAY,QAAI,iCAAY;AAE9C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAQ,YAAY;AAAA,MACpB,UAAU,CAAC,UAAU;AACnB,mDAAc,MAAM,OAAO;AAAA,MAC7B;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,qDAAC,6BAAuB,OAAM,WAAU,uBAA1B,SAEd;AAAA,QACA,6CAAC,6BAAqB,OAAM,SAAQ,qBAAtB,OAEd;AAAA,QACA,6CAAC,6BAAoB,OAAM,QAAO,oBAApB,MAEd;AAAA;AAAA;AAAA,EACF;AAEJ;AAEO,IAAM,4BAA6D,CAAC,UAAU;AACnF,SACE,6CAAC,oBAAiB,QAAQ,kBAAkB,WAAW,qBACrD,uDAAC,kBAAe,MAAK,SAAQ,OAAO,qBAAqB,SAAS,kBAAmB,GAAG,OAAO,GACjG;AAEJ;;;ACtCA,IAAAC,mBAA8C;;;ACA9C,IAAAC,uBAAgC;AAIzB,IAAM,yBAAqB,sCAAkC;;;ACJpE,IAAAC,uBAA6B;AAItB,IAAM,sBAAsB,UAAM,mCAAa,oBAAoB,eAAe,IAAI;;;AFUnF,IAAAC,sBAAA;AATV,IAAM,iBAAiB;AACvB,IAAM,oBAAoB;AAEnB,IAAM,oBAA2C,CAAC,UAAU;AACjE,QAAM,EAAE,cAAc,iBAAiB,QAAQ,IAAI,oBAAoB;AACvE,SACE,6CAAC,oBAAiB,QAAQ,gBAAgB,WAAW,mBACnD,uDAAC,2BAAO,MAAK,SAAQ,OAAO,6CAAc,MAAO,GAAG,OACjD,6CAAS,IAAI,CAAC,WACb,6CAAC,6BAAS,OAAO,OAAO,MAAwB,SAAS,MAAM,mDAAkB,SAC9E,iBAAO,QADyB,OAAO,IAE1C,IAEJ,GACF;AAEJ;","names":["import_material","import_jsx_runtime","import_material","import_react_shared","import_react_shared","import_jsx_runtime"]}
@@ -1,64 +0,0 @@
1
- // src/components/controls/EmbedFormControl.tsx
2
- import { FormControl, InputLabel } from "@mui/material";
3
- import { jsx, jsxs } from "react/jsx-runtime";
4
- var EmbedFormControl = ({ formId, formLabel, children, ...props }) => {
5
- return /* @__PURE__ */ jsxs(FormControl, { ...props, children: [
6
- /* @__PURE__ */ jsx(InputLabel, { id: formId, children: formLabel }),
7
- children
8
- ] });
9
- };
10
-
11
- // src/components/controls/ListModeSelect.tsx
12
- import { MenuItem, Select } from "@mui/material";
13
- import { useListMode } from "@xyo-network/react-shared";
14
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
15
- var listModeSelectId = "listmode-select-id";
16
- var listModeSelectLabel = "List Mode";
17
- var ListModeSelect = (props) => {
18
- const { listMode, setListMode } = useListMode();
19
- return /* @__PURE__ */ jsxs2(
20
- Select,
21
- {
22
- value: listMode ?? "default",
23
- onChange: (event) => {
24
- setListMode == null ? void 0 : setListMode(event.target.value);
25
- },
26
- ...props,
27
- children: [
28
- /* @__PURE__ */ jsx2(MenuItem, { value: "default", children: "Default" }, "default"),
29
- /* @__PURE__ */ jsx2(MenuItem, { value: "table", children: "Table" }, "table"),
30
- /* @__PURE__ */ jsx2(MenuItem, { value: "grid", children: "Grid" }, "grid")
31
- ]
32
- }
33
- );
34
- };
35
- var ListModeSelectFormControl = (props) => {
36
- return /* @__PURE__ */ jsx2(EmbedFormControl, { formId: listModeSelectId, formLabel: listModeSelectLabel, children: /* @__PURE__ */ jsx2(ListModeSelect, { size: "small", label: listModeSelectLabel, labelId: listModeSelectId, ...props }) });
37
- };
38
-
39
- // src/components/controls/RenderSelect.tsx
40
- import { MenuItem as MenuItem2, Select as Select2 } from "@mui/material";
41
-
42
- // src/contexts/EmbedPluginContext/Context.tsx
43
- import { createContextEx } from "@xyo-network/react-shared";
44
- var EmbedPluginContext = createContextEx();
45
-
46
- // src/contexts/EmbedPluginContext/use.tsx
47
- import { useContextEx } from "@xyo-network/react-shared";
48
- var useEmbedPluginState = () => useContextEx(EmbedPluginContext, "EmbedPlugin", true);
49
-
50
- // src/components/controls/RenderSelect.tsx
51
- import { jsx as jsx3 } from "react/jsx-runtime";
52
- var renderSelectId = "render-select-id";
53
- var renderSelectLabel = "Renderer";
54
- var EmbedRenderSelect = (props) => {
55
- const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState();
56
- return /* @__PURE__ */ jsx3(EmbedFormControl, { formId: renderSelectId, formLabel: renderSelectLabel, children: /* @__PURE__ */ jsx3(Select2, { size: "small", value: activePlugin == null ? void 0 : activePlugin.name, ...props, children: plugins == null ? void 0 : plugins.map((plugin) => /* @__PURE__ */ jsx3(MenuItem2, { value: plugin.name, onClick: () => setActivePlugin == null ? void 0 : setActivePlugin(plugin), children: plugin.name }, plugin.name)) }) });
57
- };
58
- export {
59
- EmbedFormControl,
60
- EmbedRenderSelect,
61
- ListModeSelect,
62
- ListModeSelectFormControl
63
- };
64
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/controls/EmbedFormControl.tsx","../../../../src/components/controls/ListModeSelect.tsx","../../../../src/components/controls/RenderSelect.tsx","../../../../src/contexts/EmbedPluginContext/Context.tsx","../../../../src/contexts/EmbedPluginContext/use.tsx"],"sourcesContent":["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 { createContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginState } from './State'\n\nexport const EmbedPluginContext = createContextEx<EmbedPluginState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { EmbedPluginContext } from './Context'\n\nexport const useEmbedPluginState = () => useContextEx(EmbedPluginContext, 'EmbedPlugin', true)\n"],"mappings":";AAAA,SAAS,aAA+B,kBAAkB;AAUtD,SACE,KADF;AAFG,IAAM,mBAAkE,CAAC,EAAE,QAAQ,WAAW,UAAU,GAAG,MAAM,MAAM;AAC5H,SACE,qBAAC,eAAa,GAAG,OACf;AAAA,wBAAC,cAAW,IAAI,QAAS,qBAAU;AAAA,IAClC;AAAA,KACH;AAEJ;;;ACfA,SAAS,UAAU,cAA2B;AAC9C,SAAmB,mBAAmB;AAWlC,SAOE,OAAAA,MAPF,QAAAC,aAAA;AAPJ,IAAM,mBAAmB;AACzB,IAAM,sBAAsB;AAErB,IAAM,iBAAkD,CAAC,UAAU;AACxE,QAAM,EAAE,UAAU,YAAY,IAAI,YAAY;AAE9C,SACE,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACC,OAAQ,YAAY;AAAA,MACpB,UAAU,CAAC,UAAU;AACnB,mDAAc,MAAM,OAAO;AAAA,MAC7B;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,wBAAAD,KAAC,YAAuB,OAAM,WAAU,uBAA1B,SAEd;AAAA,QACA,gBAAAA,KAAC,YAAqB,OAAM,SAAQ,qBAAtB,OAEd;AAAA,QACA,gBAAAA,KAAC,YAAoB,OAAM,QAAO,oBAApB,MAEd;AAAA;AAAA;AAAA,EACF;AAEJ;AAEO,IAAM,4BAA6D,CAAC,UAAU;AACnF,SACE,gBAAAA,KAAC,oBAAiB,QAAQ,kBAAkB,WAAW,qBACrD,0BAAAA,KAAC,kBAAe,MAAK,SAAQ,OAAO,qBAAqB,SAAS,kBAAmB,GAAG,OAAO,GACjG;AAEJ;;;ACtCA,SAAS,YAAAE,WAAU,UAAAC,eAA2B;;;ACA9C,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;;;ACJpE,SAAS,oBAAoB;AAItB,IAAM,sBAAsB,MAAM,aAAa,oBAAoB,eAAe,IAAI;;;AFUnF,gBAAAC,YAAA;AATV,IAAM,iBAAiB;AACvB,IAAM,oBAAoB;AAEnB,IAAM,oBAA2C,CAAC,UAAU;AACjE,QAAM,EAAE,cAAc,iBAAiB,QAAQ,IAAI,oBAAoB;AACvE,SACE,gBAAAA,KAAC,oBAAiB,QAAQ,gBAAgB,WAAW,mBACnD,0BAAAA,KAACC,SAAA,EAAO,MAAK,SAAQ,OAAO,6CAAc,MAAO,GAAG,OACjD,6CAAS,IAAI,CAAC,WACb,gBAAAD,KAACE,WAAA,EAAS,OAAO,OAAO,MAAwB,SAAS,MAAM,mDAAkB,SAC9E,iBAAO,QADyB,OAAO,IAE1C,IAEJ,GACF;AAEJ;","names":["jsx","jsxs","MenuItem","Select","jsx","Select","MenuItem"]}
@@ -1,99 +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 == null ? void 0 : 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
- // Annotate the CommonJS export names for ESM import in node:
96
- 0 && (module.exports = {
97
- EmbedCardResolverFlexBox
98
- });
99
- //# 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,yCAAO,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"]}