@xyo-network/react-embed 2.64.8 → 2.64.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (386) hide show
  1. package/dist/docs.json +109 -109
  2. package/package.json +15 -15
  3. package/dist/browser/components/EmbedPlugin.cjs +0 -251
  4. package/dist/browser/components/EmbedPlugin.cjs.map +0 -1
  5. package/dist/browser/components/EmbedPlugin.js +0 -230
  6. package/dist/browser/components/EmbedPlugin.js.map +0 -1
  7. package/dist/browser/components/EmbedResolver.cjs +0 -42
  8. package/dist/browser/components/EmbedResolver.cjs.map +0 -1
  9. package/dist/browser/components/EmbedResolver.js +0 -21
  10. package/dist/browser/components/EmbedResolver.js.map +0 -1
  11. package/dist/browser/components/controls/EmbedFormControl.cjs +0 -34
  12. package/dist/browser/components/controls/EmbedFormControl.cjs.map +0 -1
  13. package/dist/browser/components/controls/EmbedFormControl.js +0 -13
  14. package/dist/browser/components/controls/EmbedFormControl.js.map +0 -1
  15. package/dist/browser/components/controls/ListModeSelect.cjs +0 -65
  16. package/dist/browser/components/controls/ListModeSelect.cjs.map +0 -1
  17. package/dist/browser/components/controls/ListModeSelect.js +0 -44
  18. package/dist/browser/components/controls/ListModeSelect.js.map +0 -1
  19. package/dist/browser/components/controls/RenderSelect.cjs +0 -54
  20. package/dist/browser/components/controls/RenderSelect.cjs.map +0 -1
  21. package/dist/browser/components/controls/RenderSelect.js +0 -33
  22. package/dist/browser/components/controls/RenderSelect.js.map +0 -1
  23. package/dist/browser/components/controls/index.cjs +0 -87
  24. package/dist/browser/components/controls/index.cjs.map +0 -1
  25. package/dist/browser/components/controls/index.js +0 -64
  26. package/dist/browser/components/controls/index.js.map +0 -1
  27. package/dist/browser/components/embed-card/EmbedCardResolver.cjs +0 -95
  28. package/dist/browser/components/embed-card/EmbedCardResolver.cjs.map +0 -1
  29. package/dist/browser/components/embed-card/EmbedCardResolver.js +0 -74
  30. package/dist/browser/components/embed-card/EmbedCardResolver.js.map +0 -1
  31. package/dist/browser/components/embed-card/EmbedPluginCard.cjs +0 -497
  32. package/dist/browser/components/embed-card/EmbedPluginCard.cjs.map +0 -1
  33. package/dist/browser/components/embed-card/EmbedPluginCard.js +0 -479
  34. package/dist/browser/components/embed-card/EmbedPluginCard.js.map +0 -1
  35. package/dist/browser/components/embed-card/card/BusyCard.cjs +0 -45
  36. package/dist/browser/components/embed-card/card/BusyCard.cjs.map +0 -1
  37. package/dist/browser/components/embed-card/card/BusyCard.js +0 -27
  38. package/dist/browser/components/embed-card/card/BusyCard.js.map +0 -1
  39. package/dist/browser/components/embed-card/card/EmbedCardHeader.cjs +0 -108
  40. package/dist/browser/components/embed-card/card/EmbedCardHeader.cjs.map +0 -1
  41. package/dist/browser/components/embed-card/card/EmbedCardHeader.js +0 -87
  42. package/dist/browser/components/embed-card/card/EmbedCardHeader.js.map +0 -1
  43. package/dist/browser/components/embed-card/card/EmbedPluginCard.cjs +0 -199
  44. package/dist/browser/components/embed-card/card/EmbedPluginCard.cjs.map +0 -1
  45. package/dist/browser/components/embed-card/card/EmbedPluginCard.js +0 -181
  46. package/dist/browser/components/embed-card/card/EmbedPluginCard.js.map +0 -1
  47. package/dist/browser/components/embed-card/card/index.cjs +0 -203
  48. package/dist/browser/components/embed-card/card/index.cjs.map +0 -1
  49. package/dist/browser/components/embed-card/card/index.js +0 -183
  50. package/dist/browser/components/embed-card/card/index.js.map +0 -1
  51. package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.cjs +0 -54
  52. package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.cjs.map +0 -1
  53. package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +0 -33
  54. package/dist/browser/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +0 -1
  55. package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.cjs +0 -42
  56. package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.cjs.map +0 -1
  57. package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.js +0 -21
  58. package/dist/browser/components/embed-card/error-handling/EmbedErrorCard.js.map +0 -1
  59. package/dist/browser/components/embed-card/error-handling/index.cjs +0 -57
  60. package/dist/browser/components/embed-card/error-handling/index.cjs.map +0 -1
  61. package/dist/browser/components/embed-card/error-handling/index.js +0 -34
  62. package/dist/browser/components/embed-card/error-handling/index.js.map +0 -1
  63. package/dist/browser/components/embed-card/index.cjs +0 -502
  64. package/dist/browser/components/embed-card/index.cjs.map +0 -1
  65. package/dist/browser/components/embed-card/index.js +0 -482
  66. package/dist/browser/components/embed-card/index.js.map +0 -1
  67. package/dist/browser/components/embed-card/menu/EmbedMenu.cjs +0 -68
  68. package/dist/browser/components/embed-card/menu/EmbedMenu.cjs.map +0 -1
  69. package/dist/browser/components/embed-card/menu/EmbedMenu.js +0 -47
  70. package/dist/browser/components/embed-card/menu/EmbedMenu.js.map +0 -1
  71. package/dist/browser/components/embed-card/menu/JsonMenuItem.cjs +0 -46
  72. package/dist/browser/components/embed-card/menu/JsonMenuItem.cjs.map +0 -1
  73. package/dist/browser/components/embed-card/menu/JsonMenuItem.js +0 -25
  74. package/dist/browser/components/embed-card/menu/JsonMenuItem.js.map +0 -1
  75. package/dist/browser/components/embed-card/menu/index.cjs +0 -70
  76. package/dist/browser/components/embed-card/menu/index.cjs.map +0 -1
  77. package/dist/browser/components/embed-card/menu/index.js +0 -47
  78. package/dist/browser/components/embed-card/menu/index.js.map +0 -1
  79. package/dist/browser/components/embed-plugin-stories/storyPayload.cjs +0 -47
  80. package/dist/browser/components/embed-plugin-stories/storyPayload.cjs.map +0 -1
  81. package/dist/browser/components/embed-plugin-stories/storyPayload.js +0 -26
  82. package/dist/browser/components/embed-plugin-stories/storyPayload.js.map +0 -1
  83. package/dist/browser/components/embed-plugin-stories/storyShared.cjs +0 -513
  84. package/dist/browser/components/embed-plugin-stories/storyShared.cjs.map +0 -1
  85. package/dist/browser/components/embed-plugin-stories/storyShared.js +0 -495
  86. package/dist/browser/components/embed-plugin-stories/storyShared.js.map +0 -1
  87. package/dist/browser/components/index.cjs +0 -503
  88. package/dist/browser/components/index.cjs.map +0 -1
  89. package/dist/browser/components/index.js +0 -483
  90. package/dist/browser/components/index.js.map +0 -1
  91. package/dist/browser/components/validation-alerts/ValidatePayload.cjs +0 -49
  92. package/dist/browser/components/validation-alerts/ValidatePayload.cjs.map +0 -1
  93. package/dist/browser/components/validation-alerts/ValidatePayload.js +0 -28
  94. package/dist/browser/components/validation-alerts/ValidatePayload.js.map +0 -1
  95. package/dist/browser/components/validation-alerts/ValidatePlugins.cjs +0 -57
  96. package/dist/browser/components/validation-alerts/ValidatePlugins.cjs.map +0 -1
  97. package/dist/browser/components/validation-alerts/ValidatePlugins.js +0 -36
  98. package/dist/browser/components/validation-alerts/ValidatePlugins.js.map +0 -1
  99. package/dist/browser/components/validation-alerts/index.cjs +0 -83
  100. package/dist/browser/components/validation-alerts/index.cjs.map +0 -1
  101. package/dist/browser/components/validation-alerts/index.js +0 -60
  102. package/dist/browser/components/validation-alerts/index.js.map +0 -1
  103. package/dist/browser/contexts/EmbedPluginContext/Context.cjs +0 -28
  104. package/dist/browser/contexts/EmbedPluginContext/Context.cjs.map +0 -1
  105. package/dist/browser/contexts/EmbedPluginContext/Context.js +0 -7
  106. package/dist/browser/contexts/EmbedPluginContext/Context.js.map +0 -1
  107. package/dist/browser/contexts/EmbedPluginContext/Provider.cjs +0 -62
  108. package/dist/browser/contexts/EmbedPluginContext/Provider.cjs.map +0 -1
  109. package/dist/browser/contexts/EmbedPluginContext/Provider.js +0 -41
  110. package/dist/browser/contexts/EmbedPluginContext/Provider.js.map +0 -1
  111. package/dist/browser/contexts/EmbedPluginContext/State.cjs +0 -19
  112. package/dist/browser/contexts/EmbedPluginContext/State.cjs.map +0 -1
  113. package/dist/browser/contexts/EmbedPluginContext/State.js +0 -1
  114. package/dist/browser/contexts/EmbedPluginContext/State.js.map +0 -1
  115. package/dist/browser/contexts/EmbedPluginContext/index.cjs +0 -68
  116. package/dist/browser/contexts/EmbedPluginContext/index.cjs.map +0 -1
  117. package/dist/browser/contexts/EmbedPluginContext/index.js +0 -45
  118. package/dist/browser/contexts/EmbedPluginContext/index.js.map +0 -1
  119. package/dist/browser/contexts/EmbedPluginContext/use.cjs +0 -34
  120. package/dist/browser/contexts/EmbedPluginContext/use.cjs.map +0 -1
  121. package/dist/browser/contexts/EmbedPluginContext/use.js +0 -13
  122. package/dist/browser/contexts/EmbedPluginContext/use.js.map +0 -1
  123. package/dist/browser/contexts/RefreshPayloadContext/Context.cjs +0 -28
  124. package/dist/browser/contexts/RefreshPayloadContext/Context.cjs.map +0 -1
  125. package/dist/browser/contexts/RefreshPayloadContext/Context.js +0 -7
  126. package/dist/browser/contexts/RefreshPayloadContext/Context.js.map +0 -1
  127. package/dist/browser/contexts/RefreshPayloadContext/Provider.cjs +0 -38
  128. package/dist/browser/contexts/RefreshPayloadContext/Provider.cjs.map +0 -1
  129. package/dist/browser/contexts/RefreshPayloadContext/Provider.js +0 -17
  130. package/dist/browser/contexts/RefreshPayloadContext/Provider.js.map +0 -1
  131. package/dist/browser/contexts/RefreshPayloadContext/State.cjs +0 -19
  132. package/dist/browser/contexts/RefreshPayloadContext/State.cjs.map +0 -1
  133. package/dist/browser/contexts/RefreshPayloadContext/State.js +0 -1
  134. package/dist/browser/contexts/RefreshPayloadContext/State.js.map +0 -1
  135. package/dist/browser/contexts/RefreshPayloadContext/index.cjs +0 -45
  136. package/dist/browser/contexts/RefreshPayloadContext/index.cjs.map +0 -1
  137. package/dist/browser/contexts/RefreshPayloadContext/index.js +0 -22
  138. package/dist/browser/contexts/RefreshPayloadContext/index.js.map +0 -1
  139. package/dist/browser/contexts/RefreshPayloadContext/use.cjs +0 -34
  140. package/dist/browser/contexts/RefreshPayloadContext/use.cjs.map +0 -1
  141. package/dist/browser/contexts/RefreshPayloadContext/use.js +0 -13
  142. package/dist/browser/contexts/RefreshPayloadContext/use.js.map +0 -1
  143. package/dist/browser/contexts/ResolvePayloadContext/Context.cjs +0 -28
  144. package/dist/browser/contexts/ResolvePayloadContext/Context.cjs.map +0 -1
  145. package/dist/browser/contexts/ResolvePayloadContext/Context.js +0 -7
  146. package/dist/browser/contexts/ResolvePayloadContext/Context.js.map +0 -1
  147. package/dist/browser/contexts/ResolvePayloadContext/Provider.cjs +0 -88
  148. package/dist/browser/contexts/ResolvePayloadContext/Provider.cjs.map +0 -1
  149. package/dist/browser/contexts/ResolvePayloadContext/Provider.js +0 -67
  150. package/dist/browser/contexts/ResolvePayloadContext/Provider.js.map +0 -1
  151. package/dist/browser/contexts/ResolvePayloadContext/State.cjs +0 -19
  152. package/dist/browser/contexts/ResolvePayloadContext/State.cjs.map +0 -1
  153. package/dist/browser/contexts/ResolvePayloadContext/State.js +0 -1
  154. package/dist/browser/contexts/ResolvePayloadContext/State.js.map +0 -1
  155. package/dist/browser/contexts/ResolvePayloadContext/index.cjs +0 -96
  156. package/dist/browser/contexts/ResolvePayloadContext/index.cjs.map +0 -1
  157. package/dist/browser/contexts/ResolvePayloadContext/index.js +0 -73
  158. package/dist/browser/contexts/ResolvePayloadContext/index.js.map +0 -1
  159. package/dist/browser/contexts/ResolvePayloadContext/use.cjs +0 -34
  160. package/dist/browser/contexts/ResolvePayloadContext/use.cjs.map +0 -1
  161. package/dist/browser/contexts/ResolvePayloadContext/use.js +0 -13
  162. package/dist/browser/contexts/ResolvePayloadContext/use.js.map +0 -1
  163. package/dist/browser/contexts/ValidatePayloadContext/Context.cjs +0 -28
  164. package/dist/browser/contexts/ValidatePayloadContext/Context.cjs.map +0 -1
  165. package/dist/browser/contexts/ValidatePayloadContext/Context.js +0 -7
  166. package/dist/browser/contexts/ValidatePayloadContext/Context.js.map +0 -1
  167. package/dist/browser/contexts/ValidatePayloadContext/Provider.cjs +0 -66
  168. package/dist/browser/contexts/ValidatePayloadContext/Provider.cjs.map +0 -1
  169. package/dist/browser/contexts/ValidatePayloadContext/Provider.js +0 -45
  170. package/dist/browser/contexts/ValidatePayloadContext/Provider.js.map +0 -1
  171. package/dist/browser/contexts/ValidatePayloadContext/State.cjs +0 -19
  172. package/dist/browser/contexts/ValidatePayloadContext/State.cjs.map +0 -1
  173. package/dist/browser/contexts/ValidatePayloadContext/State.js +0 -1
  174. package/dist/browser/contexts/ValidatePayloadContext/State.js.map +0 -1
  175. package/dist/browser/contexts/ValidatePayloadContext/index.cjs +0 -73
  176. package/dist/browser/contexts/ValidatePayloadContext/index.cjs.map +0 -1
  177. package/dist/browser/contexts/ValidatePayloadContext/index.js +0 -50
  178. package/dist/browser/contexts/ValidatePayloadContext/index.js.map +0 -1
  179. package/dist/browser/contexts/ValidatePayloadContext/use.cjs +0 -34
  180. package/dist/browser/contexts/ValidatePayloadContext/use.cjs.map +0 -1
  181. package/dist/browser/contexts/ValidatePayloadContext/use.js +0 -13
  182. package/dist/browser/contexts/ValidatePayloadContext/use.js.map +0 -1
  183. package/dist/browser/contexts/index.cjs +0 -189
  184. package/dist/browser/contexts/index.cjs.map +0 -1
  185. package/dist/browser/contexts/index.js +0 -166
  186. package/dist/browser/contexts/index.js.map +0 -1
  187. package/dist/browser/types/EmbedPluginProps.cjs +0 -19
  188. package/dist/browser/types/EmbedPluginProps.cjs.map +0 -1
  189. package/dist/browser/types/EmbedPluginProps.js +0 -1
  190. package/dist/browser/types/EmbedPluginProps.js.map +0 -1
  191. package/dist/browser/types/index.cjs +0 -19
  192. package/dist/browser/types/index.cjs.map +0 -1
  193. package/dist/browser/types/index.js +0 -1
  194. package/dist/browser/types/index.js.map +0 -1
  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 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/components/embed-card/card/BusyCard.tsx"],"sourcesContent":["import { Card, CardProps } from '@mui/material'\nimport { useBusyTiming } from '@xylabs/react-flexbox'\nimport {\n BusyCircularProgress,\n BusyCircularProgressProps,\n BusyLinearProgress,\n BusyLinearProgressProps,\n BusyVariant,\n WithChildren,\n} from '@xylabs/react-shared'\n\nexport interface BusyCardProps extends CardProps {\n busy?: boolean\n busyMinimum?: number\n busyVariant?: BusyVariant\n busyVariantProps?: BusyCircularProgressProps | BusyLinearProgressProps\n}\n\nexport const BusyCard: React.FC<WithChildren<BusyCardProps>> = ({\n busy,\n busyMinimum = 500,\n busyVariant = 'circular',\n busyVariantProps,\n children,\n ...props\n}) => {\n const internalBusy = useBusyTiming(busy, busyMinimum)\n return (\n <Card {...props}>\n {children}\n {busyVariant === 'circular' && internalBusy ? <BusyCircularProgress {...(busyVariantProps as BusyCircularProgressProps)} /> : null}\n {busyVariant === 'linear' && internalBusy ? <BusyLinearProgress {...(busyVariantProps as BusyLinearProgressProps)} /> : null}\n </Card>\n )\n}\n"],"mappings":";AAAA,SAAS,YAAuB;AAChC,SAAS,qBAAqB;AAC9B;AAAA,EACE;AAAA,EAEA;AAAA,OAIK;AAmBH,SAEgD,KAFhD;AAVG,IAAM,WAAkD,CAAC;AAAA,EAC9D;AAAA,EACA,cAAc;AAAA,EACd,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,eAAe,cAAc,MAAM,WAAW;AACpD,SACE,qBAAC,QAAM,GAAG,OACP;AAAA;AAAA,IACA,gBAAgB,cAAc,eAAe,oBAAC,wBAAsB,GAAI,kBAAgD,IAAK;AAAA,IAC7H,gBAAgB,YAAY,eAAe,oBAAC,sBAAoB,GAAI,kBAA8C,IAAK;AAAA,KAC1H;AAEJ;","names":[]}
@@ -1,108 +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/card/EmbedCardHeader.tsx
21
- var EmbedCardHeader_exports = {};
22
- __export(EmbedCardHeader_exports, {
23
- EmbedCardHeader: () => EmbedCardHeader
24
- });
25
- module.exports = __toCommonJS(EmbedCardHeader_exports);
26
- var import_icons_material3 = require("@mui/icons-material");
27
- var import_material3 = require("@mui/material");
28
- var import_react_flexbox = require("@xylabs/react-flexbox");
29
-
30
- // src/contexts/EmbedPluginContext/Context.tsx
31
- var import_react_shared = require("@xyo-network/react-shared");
32
- var EmbedPluginContext = (0, import_react_shared.createContextEx)();
33
-
34
- // src/contexts/EmbedPluginContext/use.tsx
35
- var import_react_shared2 = require("@xyo-network/react-shared");
36
- var useEmbedPluginState = () => (0, import_react_shared2.useContextEx)(EmbedPluginContext, "EmbedPlugin", 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/menu/EmbedMenu.tsx
47
- var import_icons_material2 = require("@mui/icons-material");
48
- var import_material2 = require("@mui/material");
49
- var import_react = require("react");
50
-
51
- // src/components/embed-card/menu/JsonMenuItem.tsx
52
- var import_icons_material = require("@mui/icons-material");
53
- var import_material = require("@mui/material");
54
- var import_jsx_runtime = require("react/jsx-runtime");
55
- var JsonMenuItem = (props) => {
56
- const { huri } = useResolvePayload();
57
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: huri ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.MenuItem, { title: "Source Payload JSON", onClick: () => window.open(huri, "_blank"), ...props, children: [
58
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.ListItemText, { sx: { mr: 1 }, children: "JSON" }),
59
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.ListItemIcon, { sx: { justifyContent: "end" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons_material.OpenInNew, { fontSize: "small" }) })
60
- ] }) : null });
61
- };
62
-
63
- // src/components/embed-card/menu/EmbedMenu.tsx
64
- var import_jsx_runtime2 = require("react/jsx-runtime");
65
- var EmbedMenu = (props) => {
66
- const [anchorEl, setAnchorEl] = (0, import_react.useState)(null);
67
- const open = Boolean(anchorEl);
68
- const handleClick = (event) => {
69
- setAnchorEl(event.currentTarget);
70
- };
71
- const handleClose = () => {
72
- setAnchorEl(null);
73
- };
74
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
75
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.IconButton, { onClick: handleClick, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_icons_material2.MoreVert, {}) }),
76
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.Menu, { anchorEl, open, onClose: handleClose, PaperProps: { variant: "elevation" }, MenuListProps: { dense: true }, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(JsonMenuItem, {}) })
77
- ] });
78
- };
79
-
80
- // src/components/embed-card/card/EmbedCardHeader.tsx
81
- var import_jsx_runtime3 = require("react/jsx-runtime");
82
- var EmbedCardHeader = () => {
83
- const { refreshHuri, huri } = useResolvePayload();
84
- const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState();
85
- const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {};
86
- const timestamp = Date.now();
87
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
88
- import_material3.CardHeader,
89
- {
90
- sx: { flexWrap: "wrap", rowGap: 1 },
91
- avatar: hideAvatar ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Avatar, { sx: { bgcolor: (theme) => theme.palette.primary.main }, "aria-label": activePlugin?.name, children: activePlugin?.name?.charAt(0) }),
92
- action: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_react_flexbox.FlexRow, { flexWrap: "wrap", columnGap: 0.5, children: [
93
- timestamp ? hideTimestamp && hideRefreshButton ? "" : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
94
- import_material3.Chip,
95
- {
96
- avatar: hideRefreshButton ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_jsx_runtime3.Fragment, {}) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons_material3.Refresh, {}),
97
- clickable: hideRefreshButton ? false : true,
98
- onClick: refreshHuri,
99
- label: hideTimestamp ? "" : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`
100
- }
101
- ) : null,
102
- hideCardActions || huri === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(EmbedMenu, {})
103
- ] }),
104
- title: hideTitle ? "" : activePlugin?.name
105
- }
106
- );
107
- };
108
- //# sourceMappingURL=EmbedCardHeader.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/components/embed-card/card/EmbedCardHeader.tsx","../../../../../src/contexts/EmbedPluginContext/Context.tsx","../../../../../src/contexts/EmbedPluginContext/use.tsx","../../../../../src/contexts/ResolvePayloadContext/Context.ts","../../../../../src/contexts/ResolvePayloadContext/use.tsx","../../../../../src/components/embed-card/menu/EmbedMenu.tsx","../../../../../src/components/embed-card/menu/JsonMenuItem.tsx"],"sourcesContent":["import { Refresh as RefreshIcon } from '@mui/icons-material'\nimport { Avatar, CardHeader, CardHeaderProps, Chip, Theme } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../../contexts'\nimport { EmbedMenu } from '../menu'\n\nexport const EmbedCardHeader: React.FC<CardHeaderProps> = () => {\n const { refreshHuri, huri } = useResolvePayload()\n const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState()\n const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {}\n //this is temporary so that we can add the ability to get a timestamp via diviner later\n const timestamp = Date.now()\n return (\n <CardHeader\n sx={{ flexWrap: 'wrap', rowGap: 1 }}\n avatar={\n hideAvatar ? (\n <></>\n ) : (\n <Avatar sx={{ bgcolor: (theme: Theme) => theme.palette.primary.main }} aria-label={activePlugin?.name}>\n {activePlugin?.name?.charAt(0)}\n </Avatar>\n )\n }\n action={\n <FlexRow flexWrap=\"wrap\" columnGap={0.5}>\n {timestamp ? (\n hideTimestamp && hideRefreshButton ? (\n ''\n ) : (\n <Chip\n avatar={hideRefreshButton ? <></> : <RefreshIcon />}\n clickable={hideRefreshButton ? false : true}\n onClick={refreshHuri}\n label={hideTimestamp ? '' : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`}\n />\n )\n ) : null}\n {/* Huri case is valid as long as the only menu item is JSON */}\n {hideCardActions || huri === undefined ? null : <EmbedMenu />}\n </FlexRow>\n }\n title={hideTitle ? '' : activePlugin?.name}\n />\n )\n}\n","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 { 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 { MoreVert as MoreVertIcon } from '@mui/icons-material'\nimport { IconButton, IconButtonProps, Menu } from '@mui/material'\nimport { useState } from 'react'\n\nimport { JsonMenuItem } from './JsonMenuItem'\n\nexport const EmbedMenu: React.FC<IconButtonProps> = (props) => {\n // TODO - link to explore website\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null)\n const open = Boolean(anchorEl)\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget)\n }\n const handleClose = () => {\n setAnchorEl(null)\n }\n\n return (\n <>\n <IconButton onClick={handleClick} {...props}>\n <MoreVertIcon />\n </IconButton>\n <Menu anchorEl={anchorEl} open={open} onClose={handleClose} PaperProps={{ variant: 'elevation' }} MenuListProps={{ dense: true }}>\n <JsonMenuItem />\n </Menu>\n </>\n )\n}\n","import { OpenInNew as OpenInNewIcon } from '@mui/icons-material'\nimport { ListItemIcon, ListItemText, MenuItem, MenuItemProps } from '@mui/material'\n\nimport { useResolvePayload } from '../../../contexts'\n\nexport const JsonMenuItem: React.FC<MenuItemProps> = (props) => {\n const { huri } = useResolvePayload()\n\n return (\n <>\n {huri ? (\n <MenuItem title=\"Source Payload JSON\" onClick={() => window.open(huri, '_blank')} {...props}>\n <ListItemText sx={{ mr: 1 }}>JSON</ListItemText>\n <ListItemIcon sx={{ justifyContent: 'end' }}>\n <OpenInNewIcon fontSize=\"small\" />\n </ListItemIcon>\n </MenuItem>\n ) : null}\n </>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,yBAAuC;AACvC,IAAAC,mBAAiE;AACjE,2BAAwB;;;ACFxB,0BAAgC;AAIzB,IAAM,yBAAqB,qCAAkC;;;ACJpE,IAAAC,uBAA6B;AAItB,IAAM,sBAAsB,UAAM,mCAAa,oBAAoB,eAAe,IAAI;;;ACJ7F,IAAAC,uBAAgC;AAIzB,IAAM,4BAAwB,sCAAqC;;;ACJ1E,IAAAC,uBAA6B;AAItB,IAAM,oBAAoB,UAAM,mCAAa,uBAAuB,kBAAkB,IAAI;;;ACJjG,IAAAC,yBAAyC;AACzC,IAAAC,mBAAkD;AAClD,mBAAyB;;;ACFzB,4BAA2C;AAC3C,sBAAoE;AAQhE;AAJG,IAAM,eAAwC,CAAC,UAAU;AAC9D,QAAM,EAAE,KAAK,IAAI,kBAAkB;AAEnC,SACE,2EACG,iBACC,6CAAC,4BAAS,OAAM,uBAAsB,SAAS,MAAM,OAAO,KAAK,MAAM,QAAQ,GAAI,GAAG,OACpF;AAAA,gDAAC,gCAAa,IAAI,EAAE,IAAI,EAAE,GAAG,kBAAI;AAAA,IACjC,4CAAC,gCAAa,IAAI,EAAE,gBAAgB,MAAM,GACxC,sDAAC,sBAAAC,WAAA,EAAc,UAAS,SAAQ,GAClC;AAAA,KACF,IACE,MACN;AAEJ;;;ADDI,IAAAC,sBAAA;AAbG,IAAM,YAAuC,CAAC,UAAU;AAE7D,QAAM,CAAC,UAAU,W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,CAAC;AAAA;AAAA,QACvF,IAEA;AAAA,QAEH,mBAAmB,SAAS,SAAY,OAAO,6CAAC,aAAU;AAAA,SAC7D;AAAA,MAEF,OAAO,YAAY,KAAK,cAAc;AAAA;AAAA,EACxC;AAEJ;","names":["import_icons_material","import_material","import_react_shared","import_react_shared","import_react_shared","import_icons_material","import_material","OpenInNewIcon","import_jsx_runtime","MoreVertIcon","import_jsx_runtime","RefreshIcon"]}
@@ -1,87 +0,0 @@
1
- // src/components/embed-card/card/EmbedCardHeader.tsx
2
- import { Refresh as RefreshIcon } from "@mui/icons-material";
3
- import { Avatar, CardHeader, Chip } from "@mui/material";
4
- import { FlexRow } from "@xylabs/react-flexbox";
5
-
6
- // src/contexts/EmbedPluginContext/Context.tsx
7
- import { createContextEx } from "@xyo-network/react-shared";
8
- var EmbedPluginContext = createContextEx();
9
-
10
- // src/contexts/EmbedPluginContext/use.tsx
11
- import { useContextEx } from "@xyo-network/react-shared";
12
- var useEmbedPluginState = () => useContextEx(EmbedPluginContext, "EmbedPlugin", 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/menu/EmbedMenu.tsx
23
- import { MoreVert as MoreVertIcon } from "@mui/icons-material";
24
- import { IconButton, Menu } from "@mui/material";
25
- import { useState } from "react";
26
-
27
- // src/components/embed-card/menu/JsonMenuItem.tsx
28
- import { OpenInNew as OpenInNewIcon } from "@mui/icons-material";
29
- import { ListItemIcon, ListItemText, MenuItem } from "@mui/material";
30
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
31
- var JsonMenuItem = (props) => {
32
- const { huri } = useResolvePayload();
33
- return /* @__PURE__ */ jsx(Fragment, { children: huri ? /* @__PURE__ */ jsxs(MenuItem, { title: "Source Payload JSON", onClick: () => window.open(huri, "_blank"), ...props, children: [
34
- /* @__PURE__ */ jsx(ListItemText, { sx: { mr: 1 }, children: "JSON" }),
35
- /* @__PURE__ */ jsx(ListItemIcon, { sx: { justifyContent: "end" }, children: /* @__PURE__ */ jsx(OpenInNewIcon, { fontSize: "small" }) })
36
- ] }) : null });
37
- };
38
-
39
- // src/components/embed-card/menu/EmbedMenu.tsx
40
- import { Fragment as Fragment2, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
41
- var EmbedMenu = (props) => {
42
- const [anchorEl, setAnchorEl] = useState(null);
43
- const open = Boolean(anchorEl);
44
- const handleClick = (event) => {
45
- setAnchorEl(event.currentTarget);
46
- };
47
- const handleClose = () => {
48
- setAnchorEl(null);
49
- };
50
- return /* @__PURE__ */ jsxs2(Fragment2, { children: [
51
- /* @__PURE__ */ jsx2(IconButton, { onClick: handleClick, ...props, children: /* @__PURE__ */ jsx2(MoreVertIcon, {}) }),
52
- /* @__PURE__ */ jsx2(Menu, { anchorEl, open, onClose: handleClose, PaperProps: { variant: "elevation" }, MenuListProps: { dense: true }, children: /* @__PURE__ */ jsx2(JsonMenuItem, {}) })
53
- ] });
54
- };
55
-
56
- // src/components/embed-card/card/EmbedCardHeader.tsx
57
- import { Fragment as Fragment3, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
58
- var EmbedCardHeader = () => {
59
- const { refreshHuri, huri } = useResolvePayload();
60
- const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState();
61
- const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {};
62
- const timestamp = Date.now();
63
- return /* @__PURE__ */ jsx3(
64
- CardHeader,
65
- {
66
- sx: { flexWrap: "wrap", rowGap: 1 },
67
- avatar: hideAvatar ? /* @__PURE__ */ jsx3(Fragment3, {}) : /* @__PURE__ */ jsx3(Avatar, { sx: { bgcolor: (theme) => theme.palette.primary.main }, "aria-label": activePlugin?.name, children: activePlugin?.name?.charAt(0) }),
68
- action: /* @__PURE__ */ jsxs3(FlexRow, { flexWrap: "wrap", columnGap: 0.5, children: [
69
- timestamp ? hideTimestamp && hideRefreshButton ? "" : /* @__PURE__ */ jsx3(
70
- Chip,
71
- {
72
- avatar: hideRefreshButton ? /* @__PURE__ */ jsx3(Fragment3, {}) : /* @__PURE__ */ jsx3(RefreshIcon, {}),
73
- clickable: hideRefreshButton ? false : true,
74
- onClick: refreshHuri,
75
- label: hideTimestamp ? "" : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`
76
- }
77
- ) : null,
78
- hideCardActions || huri === void 0 ? null : /* @__PURE__ */ jsx3(EmbedMenu, {})
79
- ] }),
80
- title: hideTitle ? "" : activePlugin?.name
81
- }
82
- );
83
- };
84
- export {
85
- EmbedCardHeader
86
- };
87
- //# sourceMappingURL=EmbedCardHeader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/components/embed-card/card/EmbedCardHeader.tsx","../../../../../src/contexts/EmbedPluginContext/Context.tsx","../../../../../src/contexts/EmbedPluginContext/use.tsx","../../../../../src/contexts/ResolvePayloadContext/Context.ts","../../../../../src/contexts/ResolvePayloadContext/use.tsx","../../../../../src/components/embed-card/menu/EmbedMenu.tsx","../../../../../src/components/embed-card/menu/JsonMenuItem.tsx"],"sourcesContent":["import { Refresh as RefreshIcon } from '@mui/icons-material'\nimport { Avatar, CardHeader, CardHeaderProps, Chip, Theme } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../../contexts'\nimport { EmbedMenu } from '../menu'\n\nexport const EmbedCardHeader: React.FC<CardHeaderProps> = () => {\n const { refreshHuri, huri } = useResolvePayload()\n const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState()\n const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {}\n //this is temporary so that we can add the ability to get a timestamp via diviner later\n const timestamp = Date.now()\n return (\n <CardHeader\n sx={{ flexWrap: 'wrap', rowGap: 1 }}\n avatar={\n hideAvatar ? (\n <></>\n ) : (\n <Avatar sx={{ bgcolor: (theme: Theme) => theme.palette.primary.main }} aria-label={activePlugin?.name}>\n {activePlugin?.name?.charAt(0)}\n </Avatar>\n )\n }\n action={\n <FlexRow flexWrap=\"wrap\" columnGap={0.5}>\n {timestamp ? (\n hideTimestamp && hideRefreshButton ? (\n ''\n ) : (\n <Chip\n avatar={hideRefreshButton ? <></> : <RefreshIcon />}\n clickable={hideRefreshButton ? false : true}\n onClick={refreshHuri}\n label={hideTimestamp ? '' : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`}\n />\n )\n ) : null}\n {/* Huri case is valid as long as the only menu item is JSON */}\n {hideCardActions || huri === undefined ? null : <EmbedMenu />}\n </FlexRow>\n }\n title={hideTitle ? '' : activePlugin?.name}\n />\n )\n}\n","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 { 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 { MoreVert as MoreVertIcon } from '@mui/icons-material'\nimport { IconButton, IconButtonProps, Menu } from '@mui/material'\nimport { useState } from 'react'\n\nimport { JsonMenuItem } from './JsonMenuItem'\n\nexport const EmbedMenu: React.FC<IconButtonProps> = (props) => {\n // TODO - link to explore website\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null)\n const open = Boolean(anchorEl)\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget)\n }\n const handleClose = () => {\n setAnchorEl(null)\n }\n\n return (\n <>\n <IconButton onClick={handleClick} {...props}>\n <MoreVertIcon />\n </IconButton>\n <Menu anchorEl={anchorEl} open={open} onClose={handleClose} PaperProps={{ variant: 'elevation' }} MenuListProps={{ dense: true }}>\n <JsonMenuItem />\n </Menu>\n </>\n )\n}\n","import { OpenInNew as OpenInNewIcon } from '@mui/icons-material'\nimport { ListItemIcon, ListItemText, MenuItem, MenuItemProps } from '@mui/material'\n\nimport { useResolvePayload } from '../../../contexts'\n\nexport const JsonMenuItem: React.FC<MenuItemProps> = (props) => {\n const { huri } = useResolvePayload()\n\n return (\n <>\n {huri ? (\n <MenuItem title=\"Source Payload JSON\" onClick={() => window.open(huri, '_blank')} {...props}>\n <ListItemText sx={{ mr: 1 }}>JSON</ListItemText>\n <ListItemIcon sx={{ justifyContent: 'end' }}>\n <OpenInNewIcon fontSize=\"small\" />\n </ListItemIcon>\n </MenuItem>\n ) : null}\n </>\n )\n}\n"],"mappings":";AAAA,SAAS,WAAW,mBAAmB;AACvC,SAAS,QAAQ,YAA6B,YAAmB;AACjE,SAAS,eAAe;;;ACFxB,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;;;ACJpE,SAAS,oBAAoB;AAItB,IAAM,sBAAsB,MAAM,aAAa,oBAAoB,eAAe,IAAI;;;ACJ7F,SAAS,mBAAAA,wBAAuB;AAIzB,IAAM,wBAAwBA,iBAAqC;;;ACJ1E,SAAS,gBAAAC,qBAAoB;AAItB,IAAM,oBAAoB,MAAMC,cAAa,uBAAuB,kBAAkB,IAAI;;;ACJjG,SAAS,YAAY,oBAAoB;AACzC,SAAS,YAA6B,YAAY;AAClD,SAAS,gBAAgB;;;ACFzB,SAAS,aAAa,qBAAqB;AAC3C,SAAS,cAAc,cAAc,gBAA+B;AAQhE,mBAGM,KAD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D;AAAA,IAAC;AAAA;AAAA,MACC,IAAI,EAAE,UAAU,QAAQ,QAAQ,EAAE;AAAA,MAClC,QACE,aACE,gBAAAA,KAAAD,WAAA,EAAE,IAEF,gBAAAC,KAAC,UAAO,IAAI,EAAE,SAAS,CAAC,UAAiB,MAAM,QAAQ,QAAQ,KAAK,GAAG,cAAY,cAAc,MAC9F,wBAAc,MAAM,OAAO,CAAC,GAC/B;AAAA,MAGJ,QACE,gBAAAC,MAAC,WAAQ,UAAS,QAAO,WAAW,KACjC;AAAA,oBACC,iBAAiB,oBACf,KAEA,gBAAAD;AAAA,UAAC;AAAA;AAAA,YACC,QAAQ,oBAAoB,gBAAAA,KAAAD,WAAA,EAAE,IAAM,gBAAAC,KAAC,eAAY;AAAA,YACjD,WAAW,oBAAoB,QAAQ;AAAA,YACvC,SAAS;AAAA,YACT,OAAO,gBAAgB,KAAK,GAAG,cAAc,IAAI,IAAI,KAAK,SAAS,EAAE,eAAe,CAAC;AAAA;AAAA,QACvF,IAEA;AAAA,QAEH,mBAAmB,SAAS,SAAY,OAAO,gBAAAA,KAAC,aAAU;AAAA,SAC7D;AAAA,MAEF,OAAO,YAAY,KAAK,cAAc;AAAA;AAAA,EACxC;AAEJ;","names":["createContextEx","useContextEx","useContextEx","Fragment","jsx","jsxs","Fragment","jsx","jsxs"]}
@@ -1,199 +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/card/EmbedPluginCard.tsx
21
- var EmbedPluginCard_exports = {};
22
- __export(EmbedPluginCard_exports, {
23
- EmbedPluginCard: () => EmbedPluginCard
24
- });
25
- module.exports = __toCommonJS(EmbedPluginCard_exports);
26
- var import_material8 = require("@mui/material");
27
- var import_react_flexbox3 = require("@xylabs/react-flexbox");
28
- var import_react_shared7 = require("@xyo-network/react-shared");
29
-
30
- // src/contexts/EmbedPluginContext/Context.tsx
31
- var import_react_shared = require("@xyo-network/react-shared");
32
- var EmbedPluginContext = (0, import_react_shared.createContextEx)();
33
-
34
- // src/contexts/EmbedPluginContext/use.tsx
35
- var import_react_shared2 = require("@xyo-network/react-shared");
36
- var useEmbedPluginState = () => (0, import_react_shared2.useContextEx)(EmbedPluginContext, "EmbedPlugin", 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/controls/EmbedFormControl.tsx
47
- var import_material = require("@mui/material");
48
- var import_jsx_runtime = require("react/jsx-runtime");
49
- var EmbedFormControl = ({ formId, formLabel, children, ...props }) => {
50
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.FormControl, { ...props, children: [
51
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.InputLabel, { id: formId, children: formLabel }),
52
- children
53
- ] });
54
- };
55
-
56
- // src/components/controls/ListModeSelect.tsx
57
- var import_material2 = require("@mui/material");
58
- var import_react_shared5 = require("@xyo-network/react-shared");
59
- var import_jsx_runtime2 = require("react/jsx-runtime");
60
- var listModeSelectId = "listmode-select-id";
61
- var listModeSelectLabel = "List Mode";
62
- var ListModeSelect = (props) => {
63
- const { listMode, setListMode } = (0, import_react_shared5.useListMode)();
64
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
65
- import_material2.Select,
66
- {
67
- value: listMode ?? "default",
68
- onChange: (event) => {
69
- setListMode?.(event.target.value);
70
- },
71
- ...props,
72
- children: [
73
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.MenuItem, { value: "default", children: "Default" }, "default"),
74
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.MenuItem, { value: "table", children: "Table" }, "table"),
75
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.MenuItem, { value: "grid", children: "Grid" }, "grid")
76
- ]
77
- }
78
- );
79
- };
80
- var ListModeSelectFormControl = (props) => {
81
- 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 }) });
82
- };
83
-
84
- // src/components/controls/RenderSelect.tsx
85
- var import_material3 = require("@mui/material");
86
- var import_jsx_runtime3 = require("react/jsx-runtime");
87
- var renderSelectId = "render-select-id";
88
- var renderSelectLabel = "Renderer";
89
- var EmbedRenderSelect = (props) => {
90
- const { activePlugin, setActivePlugin, plugins } = useEmbedPluginState();
91
- 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?.name, ...props, children: plugins?.map((plugin) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.MenuItem, { value: plugin.name, onClick: () => setActivePlugin?.(plugin), children: plugin.name }, plugin.name)) }) });
92
- };
93
-
94
- // src/components/embed-card/card/BusyCard.tsx
95
- var import_material4 = require("@mui/material");
96
- var import_react_flexbox = require("@xylabs/react-flexbox");
97
- var import_react_shared6 = require("@xylabs/react-shared");
98
- var import_jsx_runtime4 = require("react/jsx-runtime");
99
- var BusyCard = ({
100
- busy,
101
- busyMinimum = 500,
102
- busyVariant = "circular",
103
- busyVariantProps,
104
- children,
105
- ...props
106
- }) => {
107
- const internalBusy = (0, import_react_flexbox.useBusyTiming)(busy, busyMinimum);
108
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_material4.Card, { ...props, children: [
109
- children,
110
- busyVariant === "circular" && internalBusy ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_shared6.BusyCircularProgress, { ...busyVariantProps }) : null,
111
- busyVariant === "linear" && internalBusy ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_shared6.BusyLinearProgress, { ...busyVariantProps }) : null
112
- ] });
113
- };
114
-
115
- // src/components/embed-card/card/EmbedCardHeader.tsx
116
- var import_icons_material3 = require("@mui/icons-material");
117
- var import_material7 = require("@mui/material");
118
- var import_react_flexbox2 = require("@xylabs/react-flexbox");
119
-
120
- // src/components/embed-card/menu/EmbedMenu.tsx
121
- var import_icons_material2 = require("@mui/icons-material");
122
- var import_material6 = require("@mui/material");
123
- var import_react = require("react");
124
-
125
- // src/components/embed-card/menu/JsonMenuItem.tsx
126
- var import_icons_material = require("@mui/icons-material");
127
- var import_material5 = require("@mui/material");
128
- var import_jsx_runtime5 = require("react/jsx-runtime");
129
- var JsonMenuItem = (props) => {
130
- const { huri } = useResolvePayload();
131
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_jsx_runtime5.Fragment, { children: huri ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_material5.MenuItem, { title: "Source Payload JSON", onClick: () => window.open(huri, "_blank"), ...props, children: [
132
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.ListItemText, { sx: { mr: 1 }, children: "JSON" }),
133
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.ListItemIcon, { sx: { justifyContent: "end" }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_icons_material.OpenInNew, { fontSize: "small" }) })
134
- ] }) : null });
135
- };
136
-
137
- // src/components/embed-card/menu/EmbedMenu.tsx
138
- var import_jsx_runtime6 = require("react/jsx-runtime");
139
- var EmbedMenu = (props) => {
140
- const [anchorEl, setAnchorEl] = (0, import_react.useState)(null);
141
- const open = Boolean(anchorEl);
142
- const handleClick = (event) => {
143
- setAnchorEl(event.currentTarget);
144
- };
145
- const handleClose = () => {
146
- setAnchorEl(null);
147
- };
148
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
149
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material6.IconButton, { onClick: handleClick, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_icons_material2.MoreVert, {}) }),
150
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material6.Menu, { anchorEl, open, onClose: handleClose, PaperProps: { variant: "elevation" }, MenuListProps: { dense: true }, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(JsonMenuItem, {}) })
151
- ] });
152
- };
153
-
154
- // src/components/embed-card/card/EmbedCardHeader.tsx
155
- var import_jsx_runtime7 = require("react/jsx-runtime");
156
- var EmbedCardHeader = () => {
157
- const { refreshHuri, huri } = useResolvePayload();
158
- const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState();
159
- const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {};
160
- const timestamp = Date.now();
161
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
162
- import_material7.CardHeader,
163
- {
164
- sx: { flexWrap: "wrap", rowGap: 1 },
165
- avatar: hideAvatar ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, {}) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material7.Avatar, { sx: { bgcolor: (theme) => theme.palette.primary.main }, "aria-label": activePlugin?.name, children: activePlugin?.name?.charAt(0) }),
166
- action: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_react_flexbox2.FlexRow, { flexWrap: "wrap", columnGap: 0.5, children: [
167
- timestamp ? hideTimestamp && hideRefreshButton ? "" : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
168
- import_material7.Chip,
169
- {
170
- avatar: hideRefreshButton ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, {}) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_icons_material3.Refresh, {}),
171
- clickable: hideRefreshButton ? false : true,
172
- onClick: refreshHuri,
173
- label: hideTimestamp ? "" : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`
174
- }
175
- ) : null,
176
- hideCardActions || huri === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(EmbedMenu, {})
177
- ] }),
178
- title: hideTitle ? "" : activePlugin?.name
179
- }
180
- );
181
- };
182
-
183
- // src/components/embed-card/card/EmbedPluginCard.tsx
184
- var import_jsx_runtime8 = require("react/jsx-runtime");
185
- var EmbedPluginCard = ({ ...props }) => {
186
- const { payload } = useResolvePayload();
187
- const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = useEmbedPluginState();
188
- const { listMode } = (0, import_react_shared7.useListMode)();
189
- const supportsListMode = ActivePlugin?.components?.box?.listModes?.length ?? 0 > 1;
190
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(BusyCard, { ...props, children: [
191
- hideElementsConfig?.hideCardHeader ? null : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(EmbedCardHeader, {}),
192
- plugins && plugins.length || supportsListMode ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react_flexbox3.FlexGrowRow, { columnGap: 2, rowGap: 2, flexWrap: "wrap", pb: 1, children: [
193
- plugins && plugins.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(EmbedRenderSelect, {}) : null,
194
- supportsListMode ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ListModeSelectFormControl, {}) : null
195
- ] }) : null,
196
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material8.CardContent, { sx: { height: "100%" }, children: ActivePlugin ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ActivePlugin.components.box.detailsBox, { payload, ...supportsListMode && { listMode } }) : null })
197
- ] });
198
- };
199
- //# sourceMappingURL=EmbedPluginCard.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/components/embed-card/card/EmbedPluginCard.tsx","../../../../../src/contexts/EmbedPluginContext/Context.tsx","../../../../../src/contexts/EmbedPluginContext/use.tsx","../../../../../src/contexts/ResolvePayloadContext/Context.ts","../../../../../src/contexts/ResolvePayloadContext/use.tsx","../../../../../src/components/controls/EmbedFormControl.tsx","../../../../../src/components/controls/ListModeSelect.tsx","../../../../../src/components/controls/RenderSelect.tsx","../../../../../src/components/embed-card/card/BusyCard.tsx","../../../../../src/components/embed-card/card/EmbedCardHeader.tsx","../../../../../src/components/embed-card/menu/EmbedMenu.tsx","../../../../../src/components/embed-card/menu/JsonMenuItem.tsx"],"sourcesContent":["import { CardContent } from '@mui/material'\nimport { FlexGrowRow } from '@xylabs/react-flexbox'\nimport { useListMode } from '@xyo-network/react-shared'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../../contexts'\nimport { EmbedRenderSelect, ListModeSelectFormControl } from '../../controls'\nimport { BusyCard, BusyCardProps } from './BusyCard'\nimport { EmbedCardHeader } from './EmbedCardHeader'\n\nexport const EmbedPluginCard: React.FC<BusyCardProps> = ({ ...props }) => {\n const { payload } = useResolvePayload()\n const { activePlugin: ActivePlugin, plugins, hideElementsConfig } = useEmbedPluginState()\n const { listMode } = useListMode()\n const supportsListMode = ActivePlugin?.components?.box?.listModes?.length ?? 0 > 1\n\n return (\n <BusyCard {...props}>\n {hideElementsConfig?.hideCardHeader ? null : <EmbedCardHeader />}\n {/* Only show the row if the children are present */}\n {(plugins && plugins.length) || supportsListMode ? (\n <FlexGrowRow columnGap={2} rowGap={2} flexWrap=\"wrap\" pb={1}>\n {plugins && plugins.length > 1 ? <EmbedRenderSelect /> : null}\n {supportsListMode ? <ListModeSelectFormControl /> : null}\n </FlexGrowRow>\n ) : null}\n <CardContent sx={{ height: '100%' }}>\n {ActivePlugin ? <ActivePlugin.components.box.detailsBox payload={payload} {...(supportsListMode && { listMode })} /> : null}\n </CardContent>\n </BusyCard>\n )\n}\n","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 { 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 { 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 { Card, CardProps } from '@mui/material'\nimport { useBusyTiming } from '@xylabs/react-flexbox'\nimport {\n BusyCircularProgress,\n BusyCircularProgressProps,\n BusyLinearProgress,\n BusyLinearProgressProps,\n BusyVariant,\n WithChildren,\n} from '@xylabs/react-shared'\n\nexport interface BusyCardProps extends CardProps {\n busy?: boolean\n busyMinimum?: number\n busyVariant?: BusyVariant\n busyVariantProps?: BusyCircularProgressProps | BusyLinearProgressProps\n}\n\nexport const BusyCard: React.FC<WithChildren<BusyCardProps>> = ({\n busy,\n busyMinimum = 500,\n busyVariant = 'circular',\n busyVariantProps,\n children,\n ...props\n}) => {\n const internalBusy = useBusyTiming(busy, busyMinimum)\n return (\n <Card {...props}>\n {children}\n {busyVariant === 'circular' && internalBusy ? <BusyCircularProgress {...(busyVariantProps as BusyCircularProgressProps)} /> : null}\n {busyVariant === 'linear' && internalBusy ? <BusyLinearProgress {...(busyVariantProps as BusyLinearProgressProps)} /> : null}\n </Card>\n )\n}\n","import { Refresh as RefreshIcon } from '@mui/icons-material'\nimport { Avatar, CardHeader, CardHeaderProps, Chip, Theme } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\n\nimport { useEmbedPluginState, useResolvePayload } from '../../../contexts'\nimport { EmbedMenu } from '../menu'\n\nexport const EmbedCardHeader: React.FC<CardHeaderProps> = () => {\n const { refreshHuri, huri } = useResolvePayload()\n const { activePlugin, timestampLabel, hideElementsConfig } = useEmbedPluginState()\n const { hideAvatar, hideTitle, hideRefreshButton, hideTimestamp, hideCardActions } = hideElementsConfig ?? {}\n //this is temporary so that we can add the ability to get a timestamp via diviner later\n const timestamp = Date.now()\n return (\n <CardHeader\n sx={{ flexWrap: 'wrap', rowGap: 1 }}\n avatar={\n hideAvatar ? (\n <></>\n ) : (\n <Avatar sx={{ bgcolor: (theme: Theme) => theme.palette.primary.main }} aria-label={activePlugin?.name}>\n {activePlugin?.name?.charAt(0)}\n </Avatar>\n )\n }\n action={\n <FlexRow flexWrap=\"wrap\" columnGap={0.5}>\n {timestamp ? (\n hideTimestamp && hideRefreshButton ? (\n ''\n ) : (\n <Chip\n avatar={hideRefreshButton ? <></> : <RefreshIcon />}\n clickable={hideRefreshButton ? false : true}\n onClick={refreshHuri}\n label={hideTimestamp ? '' : `${timestampLabel} ${new Date(timestamp).toLocaleString()}`}\n />\n )\n ) : null}\n {/* Huri case is valid as long as the only menu item is JSON */}\n {hideCardActions || huri === undefined ? null : <EmbedMenu />}\n </FlexRow>\n }\n title={hideTitle ? '' : activePlugin?.name}\n />\n )\n}\n","import { MoreVert as MoreVertIcon } from '@mui/icons-material'\nimport { IconButton, IconButtonProps, Menu } from '@mui/material'\nimport { useState } from 'react'\n\nimport { JsonMenuItem } from './JsonMenuItem'\n\nexport const EmbedMenu: React.FC<IconButtonProps> = (props) => {\n // TODO - link to explore website\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null)\n const open = Boolean(anchorEl)\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget)\n }\n const handleClose = () => {\n setAnchorEl(null)\n }\n\n return (\n <>\n <IconButton onClick={handleClick} {...props}>\n <MoreVertIcon />\n </IconButton>\n <Menu anchorEl={anchorEl} open={open} onClose={handleClose} PaperProps={{ variant: 'elevation' }} MenuListProps={{ dense: true }}>\n <JsonMenuItem />\n </Menu>\n </>\n )\n}\n","import { OpenInNew as OpenInNewIcon } from '@mui/icons-material'\nimport { ListItemIcon, ListItemText, MenuItem, MenuItemProps } from '@mui/material'\n\nimport { useResolvePayload } from '../../../contexts'\n\nexport const JsonMenuItem: React.FC<MenuItemProps> = (props) => {\n const { huri } = useResolvePayload()\n\n return (\n <>\n {huri ? (\n <MenuItem title=\"Source Payload JSON\" onClick={() => window.open(huri, '_blank')} {...props}>\n <ListItemText sx={{ mr: 1 }}>JSON</ListItemText>\n <ListItemIcon sx={{ justifyContent: 'end' }}>\n <OpenInNewIcon fontSize=\"small\" />\n </ListItemIcon>\n </MenuItem>\n ) : null}\n </>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,mBAA4B;AAC5B,IAAAC,wBAA4B;AAC5B,IAAAC,uBAA4B;;;ACF5B,0BAAgC;AAIzB,IAAM,yBAAqB,qCAAkC;;;ACJpE,IAAAC,uBAA6B;AAItB,IAAM,sBAAsB,UAAM,mCAAa,oBAAoB,eAAe,IAAI;;;ACJ7F,IAAAC,uBAAgC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O,gBAAgB,KAAK,GAAG,cAAc,IAAI,IAAI,KAAK,SAAS,EAAE,eAAe,CAAC;AAAA;AAAA,QACvF,IAEA;AAAA,QAEH,mBAAmB,SAAS,SAAY,OAAO,6CAAC,aAAU;AAAA,SAC7D;AAAA,MAEF,OAAO,YAAY,KAAK,cAAc;AAAA;AAAA,EACxC;AAEJ;;;AT7BmD,IAAAC,sBAAA;AAR5C,IAAM,kBAA2C,CAAC,EAAE,GAAG,MAAM,MAAM;AACxE,QAAM,EAAE,QAAQ,IAAI,kBAAkB;AACtC,QAAM,EAAE,cAAc,cAAc,SAAS,mBAAmB,IAAI,oBAAoB;AACxF,QAAM,EAAE,SAAS,QAAI,kCAAY;AACjC,QAAM,mBAAmB,cAAc,YAAY,KAAK,WAAW,UAAU,IAAI;AAEjF,SACE,8CAAC,YAAU,GAAG,OACX;AAAA,wBAAoB,iBAAiB,OAAO,6CAAC,mBAAgB;AAAA,IAE5D,WAAW,QAAQ,UAAW,mBAC9B,8CAAC,qCAAY,WAAW,GAAG,QAAQ,GAAG,UAAS,QAAO,IAAI,GACvD;AAAA,iBAAW,QAAQ,SAAS,IAAI,6CAAC,qBAAkB,IAAK;AAAA,MACxD,mBAAmB,6CAAC,6BAA0B,IAAK;AAAA,OACtD,IACE;AAAA,IACJ,6CAAC,gCAAY,IAAI,EAAE,QAAQ,OAAO,GAC/B,yBAAe,6CAAC,aAAa,WAAW,IAAI,YAA5B,EAAuC,SAAmB,GAAI,oBAAoB,EAAE,SAAS,GAAI,IAAK,MACzH;AAAA,KACF;AAEJ;","names":["import_material","import_react_flexbox","import_react_shared","import_react_shared","import_react_shared","import_react_shared","import_material","import_react_shared","import_jsx_runtime","import_material","import_jsx_runtime","import_material","import_react_shared","import_jsx_runtime","import_icons_material","import_material","import_react_flexbox","import_icons_material","import_material","import_material","import_jsx_runtime","OpenInNewIcon","import_jsx_runtime","MoreVertIcon","import_jsx_runtime","RefreshIcon","import_jsx_runtime"]}