@xyo-network/react-embed 2.62.3 → 2.63.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (445) hide show
  1. package/dist/cjs/components/EmbedPlugin.js +19 -0
  2. package/dist/cjs/components/EmbedPlugin.js.map +1 -0
  3. package/dist/cjs/components/EmbedResolver.js +12 -0
  4. package/dist/cjs/components/EmbedResolver.js.map +1 -0
  5. package/dist/cjs/components/controls/EmbedFormControl.js +12 -0
  6. package/dist/cjs/components/controls/EmbedFormControl.js.map +1 -0
  7. package/dist/cjs/components/controls/ListModeSelect.js +21 -0
  8. package/dist/cjs/components/controls/ListModeSelect.js.map +1 -0
  9. package/dist/cjs/components/controls/RenderSelect.js +15 -0
  10. package/dist/cjs/components/controls/RenderSelect.js.map +1 -0
  11. package/dist/cjs/components/controls/index.js +7 -0
  12. package/dist/cjs/components/controls/index.js.map +1 -0
  13. package/dist/cjs/components/embed-card/EmbedCardResolver.js +19 -0
  14. package/dist/cjs/components/embed-card/EmbedCardResolver.js.map +1 -0
  15. package/dist/cjs/components/embed-card/EmbedPluginCard.js +35 -0
  16. package/dist/cjs/components/embed-card/EmbedPluginCard.js.map +1 -0
  17. package/dist/cjs/components/embed-card/card/BusyCard.js +15 -0
  18. package/dist/cjs/components/embed-card/card/BusyCard.js.map +1 -0
  19. package/dist/cjs/components/embed-card/card/EmbedCardHeader.js +21 -0
  20. package/dist/cjs/components/embed-card/card/EmbedCardHeader.js.map +1 -0
  21. package/dist/cjs/components/embed-card/card/EmbedPluginCard.js +23 -0
  22. package/dist/cjs/components/embed-card/card/EmbedPluginCard.js.map +1 -0
  23. package/dist/cjs/components/embed-card/card/index.js +7 -0
  24. package/dist/cjs/components/embed-card/card/index.js.map +1 -0
  25. package/dist/cjs/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +17 -0
  26. package/dist/cjs/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +1 -0
  27. package/dist/cjs/components/embed-card/error-handling/EmbedErrorCard.js +16 -0
  28. package/dist/cjs/components/embed-card/error-handling/EmbedErrorCard.js.map +1 -0
  29. package/dist/cjs/components/embed-card/error-handling/index.js +6 -0
  30. package/dist/cjs/components/embed-card/error-handling/index.js.map +1 -0
  31. package/dist/cjs/components/embed-card/index.js +6 -0
  32. package/dist/cjs/components/embed-card/index.js.map +1 -0
  33. package/dist/cjs/components/embed-card/menu/EmbedMenu.js +23 -0
  34. package/dist/cjs/components/embed-card/menu/EmbedMenu.js.map +1 -0
  35. package/dist/cjs/components/embed-card/menu/JsonMenuItem.js +14 -0
  36. package/dist/cjs/components/embed-card/menu/JsonMenuItem.js.map +1 -0
  37. package/dist/cjs/components/embed-card/menu/index.js +5 -0
  38. package/dist/cjs/components/embed-card/menu/index.js.map +1 -0
  39. package/dist/cjs/components/embed-plugin-stories/storyPayload.js +25 -0
  40. package/dist/cjs/components/embed-plugin-stories/storyPayload.js.map +1 -0
  41. package/dist/cjs/components/embed-plugin-stories/storyShared.js +20 -0
  42. package/dist/cjs/components/embed-plugin-stories/storyShared.js.map +1 -0
  43. package/dist/cjs/components/index.js +6 -0
  44. package/dist/cjs/components/index.js.map +1 -0
  45. package/dist/cjs/components/validation-alerts/ValidatePayload.js +17 -0
  46. package/dist/cjs/components/validation-alerts/ValidatePayload.js.map +1 -0
  47. package/dist/cjs/components/validation-alerts/ValidatePlugins.js +18 -0
  48. package/dist/cjs/components/validation-alerts/ValidatePlugins.js.map +1 -0
  49. package/dist/cjs/components/validation-alerts/index.js +6 -0
  50. package/dist/cjs/components/validation-alerts/index.js.map +1 -0
  51. package/dist/cjs/contexts/EmbedPluginContext/Context.js +6 -0
  52. package/dist/cjs/contexts/EmbedPluginContext/Context.js.map +1 -0
  53. package/dist/cjs/contexts/EmbedPluginContext/Provider.js +24 -0
  54. package/dist/cjs/contexts/EmbedPluginContext/Provider.js.map +1 -0
  55. package/dist/cjs/contexts/EmbedPluginContext/State.js +3 -0
  56. package/dist/cjs/contexts/EmbedPluginContext/State.js.map +1 -0
  57. package/dist/cjs/contexts/EmbedPluginContext/index.js +8 -0
  58. package/dist/cjs/contexts/EmbedPluginContext/index.js.map +1 -0
  59. package/dist/cjs/contexts/EmbedPluginContext/use.js +8 -0
  60. package/dist/cjs/contexts/EmbedPluginContext/use.js.map +1 -0
  61. package/dist/cjs/contexts/RefreshPayloadContext/Context.js +6 -0
  62. package/dist/cjs/contexts/RefreshPayloadContext/Context.js.map +1 -0
  63. package/dist/cjs/contexts/RefreshPayloadContext/Provider.js +12 -0
  64. package/dist/cjs/contexts/RefreshPayloadContext/Provider.js.map +1 -0
  65. package/dist/cjs/contexts/RefreshPayloadContext/State.js +3 -0
  66. package/dist/cjs/contexts/RefreshPayloadContext/State.js.map +1 -0
  67. package/dist/cjs/contexts/RefreshPayloadContext/index.js +7 -0
  68. package/dist/cjs/contexts/RefreshPayloadContext/index.js.map +1 -0
  69. package/dist/cjs/contexts/RefreshPayloadContext/use.js +8 -0
  70. package/dist/cjs/contexts/RefreshPayloadContext/use.js.map +1 -0
  71. package/dist/cjs/contexts/ResolvePayloadContext/Context.js +6 -0
  72. package/dist/cjs/contexts/ResolvePayloadContext/Context.js.map +1 -0
  73. package/dist/cjs/contexts/ResolvePayloadContext/Provider.js +56 -0
  74. package/dist/cjs/contexts/ResolvePayloadContext/Provider.js.map +1 -0
  75. package/dist/cjs/contexts/ResolvePayloadContext/State.js +3 -0
  76. package/dist/cjs/contexts/ResolvePayloadContext/State.js.map +1 -0
  77. package/dist/cjs/contexts/ResolvePayloadContext/index.js +8 -0
  78. package/dist/cjs/contexts/ResolvePayloadContext/index.js.map +1 -0
  79. package/dist/cjs/contexts/ResolvePayloadContext/use.js +8 -0
  80. package/dist/cjs/contexts/ResolvePayloadContext/use.js.map +1 -0
  81. package/dist/cjs/contexts/ValidatePayloadContext/Context.js +6 -0
  82. package/dist/cjs/contexts/ValidatePayloadContext/Context.js.map +1 -0
  83. package/dist/cjs/contexts/ValidatePayloadContext/Provider.js +32 -0
  84. package/dist/cjs/contexts/ValidatePayloadContext/Provider.js.map +1 -0
  85. package/dist/cjs/contexts/ValidatePayloadContext/State.js +3 -0
  86. package/dist/cjs/contexts/ValidatePayloadContext/State.js.map +1 -0
  87. package/dist/cjs/contexts/ValidatePayloadContext/index.js +7 -0
  88. package/dist/cjs/contexts/ValidatePayloadContext/index.js.map +1 -0
  89. package/dist/cjs/contexts/ValidatePayloadContext/use.js +8 -0
  90. package/dist/cjs/contexts/ValidatePayloadContext/use.js.map +1 -0
  91. package/dist/cjs/contexts/index.js +8 -0
  92. package/dist/cjs/contexts/index.js.map +1 -0
  93. package/dist/cjs/index.js +7 -0
  94. package/dist/cjs/index.js.map +1 -0
  95. package/dist/cjs/types/EmbedPluginProps.js +3 -0
  96. package/dist/cjs/types/EmbedPluginProps.js.map +1 -0
  97. package/dist/cjs/types/index.js +5 -0
  98. package/dist/cjs/types/index.js.map +1 -0
  99. package/dist/docs.json +113 -113
  100. package/dist/esm/components/EmbedPlugin.js +15 -0
  101. package/dist/esm/components/EmbedPlugin.js.map +1 -0
  102. package/dist/esm/components/EmbedResolver.js +8 -0
  103. package/dist/esm/components/EmbedResolver.js.map +1 -0
  104. package/dist/esm/components/controls/EmbedFormControl.js +6 -0
  105. package/dist/esm/components/controls/EmbedFormControl.js.map +1 -0
  106. package/dist/esm/components/controls/ListModeSelect.js +16 -0
  107. package/dist/esm/components/controls/ListModeSelect.js.map +1 -0
  108. package/dist/esm/components/controls/RenderSelect.js +11 -0
  109. package/dist/esm/components/controls/RenderSelect.js.map +1 -0
  110. package/dist/{components/controls/index.d.mts → esm/components/controls/index.js} +1 -1
  111. package/dist/esm/components/controls/index.js.map +1 -0
  112. package/dist/esm/components/embed-card/EmbedCardResolver.js +13 -0
  113. package/dist/esm/components/embed-card/EmbedCardResolver.js.map +1 -0
  114. package/dist/esm/components/embed-card/EmbedPluginCard.js +28 -0
  115. package/dist/esm/components/embed-card/EmbedPluginCard.js.map +1 -0
  116. package/dist/esm/components/embed-card/card/BusyCard.js +9 -0
  117. package/dist/esm/components/embed-card/card/BusyCard.js.map +1 -0
  118. package/dist/esm/components/embed-card/card/EmbedCardHeader.js +15 -0
  119. package/dist/esm/components/embed-card/card/EmbedCardHeader.js.map +1 -0
  120. package/dist/esm/components/embed-card/card/EmbedPluginCard.js +16 -0
  121. package/dist/esm/components/embed-card/card/EmbedPluginCard.js.map +1 -0
  122. package/dist/{components/embed-card/card/index.d.mts → esm/components/embed-card/card/index.js} +1 -1
  123. package/dist/esm/components/embed-card/card/index.js.map +1 -0
  124. package/dist/esm/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js +10 -0
  125. package/dist/esm/components/embed-card/error-handling/EmbedCardApiErrorRenderer.js.map +1 -0
  126. package/dist/esm/components/embed-card/error-handling/EmbedErrorCard.js +11 -0
  127. package/dist/esm/components/embed-card/error-handling/EmbedErrorCard.js.map +1 -0
  128. package/dist/{components/embed-card/error-handling/index.d.mts → esm/components/embed-card/error-handling/index.js} +1 -1
  129. package/dist/esm/components/embed-card/error-handling/index.js.map +1 -0
  130. package/dist/{components/embed-card/index.d.mts → esm/components/embed-card/index.js} +1 -1
  131. package/dist/esm/components/embed-card/index.js.map +1 -0
  132. package/dist/esm/components/embed-card/menu/EmbedMenu.js +18 -0
  133. package/dist/esm/components/embed-card/menu/EmbedMenu.js.map +1 -0
  134. package/dist/esm/components/embed-card/menu/JsonMenuItem.js +9 -0
  135. package/dist/esm/components/embed-card/menu/JsonMenuItem.js.map +1 -0
  136. package/dist/esm/components/embed-card/menu/index.js +2 -0
  137. package/dist/esm/components/embed-card/menu/index.js.map +1 -0
  138. package/dist/esm/components/embed-plugin-stories/storyPayload.js +22 -0
  139. package/dist/esm/components/embed-plugin-stories/storyPayload.js.map +1 -0
  140. package/dist/esm/components/embed-plugin-stories/storyShared.js +16 -0
  141. package/dist/esm/components/embed-plugin-stories/storyShared.js.map +1 -0
  142. package/dist/{components/index.d.mts → esm/components/index.js} +1 -1
  143. package/dist/esm/components/index.js.map +1 -0
  144. package/dist/esm/components/validation-alerts/ValidatePayload.js +11 -0
  145. package/dist/esm/components/validation-alerts/ValidatePayload.js.map +1 -0
  146. package/dist/esm/components/validation-alerts/ValidatePlugins.js +12 -0
  147. package/dist/esm/components/validation-alerts/ValidatePlugins.js.map +1 -0
  148. package/dist/{components/validation-alerts/index.d.mts → esm/components/validation-alerts/index.js} +1 -1
  149. package/dist/esm/components/validation-alerts/index.js.map +1 -0
  150. package/dist/esm/contexts/EmbedPluginContext/Context.js +3 -0
  151. package/dist/esm/contexts/EmbedPluginContext/Context.js.map +1 -0
  152. package/dist/esm/contexts/EmbedPluginContext/Provider.js +20 -0
  153. package/dist/esm/contexts/EmbedPluginContext/Provider.js.map +1 -0
  154. package/dist/esm/contexts/EmbedPluginContext/State.js +2 -0
  155. package/dist/esm/contexts/EmbedPluginContext/State.js.map +1 -0
  156. package/dist/{contexts/EmbedPluginContext/index.d.mts → esm/contexts/EmbedPluginContext/index.js} +1 -1
  157. package/dist/esm/contexts/EmbedPluginContext/index.js.map +1 -0
  158. package/dist/esm/contexts/EmbedPluginContext/use.js +4 -0
  159. package/dist/esm/contexts/EmbedPluginContext/use.js.map +1 -0
  160. package/dist/esm/contexts/RefreshPayloadContext/Context.js +3 -0
  161. package/dist/esm/contexts/RefreshPayloadContext/Context.js.map +1 -0
  162. package/dist/esm/contexts/RefreshPayloadContext/Provider.js +8 -0
  163. package/dist/esm/contexts/RefreshPayloadContext/Provider.js.map +1 -0
  164. package/dist/esm/contexts/RefreshPayloadContext/State.js +2 -0
  165. package/dist/esm/contexts/RefreshPayloadContext/State.js.map +1 -0
  166. package/dist/{contexts/ValidatePayloadContext/index.d.mts → esm/contexts/RefreshPayloadContext/index.js} +1 -1
  167. package/dist/esm/contexts/RefreshPayloadContext/index.js.map +1 -0
  168. package/dist/esm/contexts/RefreshPayloadContext/use.js +4 -0
  169. package/dist/esm/contexts/RefreshPayloadContext/use.js.map +1 -0
  170. package/dist/esm/contexts/ResolvePayloadContext/Context.js +3 -0
  171. package/dist/esm/contexts/ResolvePayloadContext/Context.js.map +1 -0
  172. package/dist/esm/contexts/ResolvePayloadContext/Provider.js +51 -0
  173. package/dist/esm/contexts/ResolvePayloadContext/Provider.js.map +1 -0
  174. package/dist/esm/contexts/ResolvePayloadContext/State.js +2 -0
  175. package/dist/esm/contexts/ResolvePayloadContext/State.js.map +1 -0
  176. package/dist/{contexts/ResolvePayloadContext/index.d.mts → esm/contexts/ResolvePayloadContext/index.js} +1 -1
  177. package/dist/esm/contexts/ResolvePayloadContext/index.js.map +1 -0
  178. package/dist/esm/contexts/ResolvePayloadContext/use.js +4 -0
  179. package/dist/esm/contexts/ResolvePayloadContext/use.js.map +1 -0
  180. package/dist/esm/contexts/ValidatePayloadContext/Context.js +3 -0
  181. package/dist/esm/contexts/ValidatePayloadContext/Context.js.map +1 -0
  182. package/dist/esm/contexts/ValidatePayloadContext/Provider.js +27 -0
  183. package/dist/esm/contexts/ValidatePayloadContext/Provider.js.map +1 -0
  184. package/dist/esm/contexts/ValidatePayloadContext/State.js +2 -0
  185. package/dist/esm/contexts/ValidatePayloadContext/State.js.map +1 -0
  186. package/dist/{contexts/RefreshPayloadContext/index.d.mts → esm/contexts/ValidatePayloadContext/index.js} +1 -1
  187. package/dist/esm/contexts/ValidatePayloadContext/index.js.map +1 -0
  188. package/dist/esm/contexts/ValidatePayloadContext/use.js +4 -0
  189. package/dist/esm/contexts/ValidatePayloadContext/use.js.map +1 -0
  190. package/dist/{contexts/index.d.mts → esm/contexts/index.js} +1 -1
  191. package/dist/esm/contexts/index.js.map +1 -0
  192. package/dist/{index.d.mts → esm/index.js} +1 -1
  193. package/dist/esm/index.js.map +1 -0
  194. package/dist/esm/types/EmbedPluginProps.js +2 -0
  195. package/dist/esm/types/EmbedPluginProps.js.map +1 -0
  196. package/dist/esm/types/index.js +2 -0
  197. package/dist/esm/types/index.js.map +1 -0
  198. package/dist/types/components/EmbedPlugin.d.ts.map +1 -0
  199. package/dist/types/components/EmbedResolver.d.ts.map +1 -0
  200. package/dist/types/components/controls/EmbedFormControl.d.ts.map +1 -0
  201. package/dist/types/components/controls/ListModeSelect.d.ts.map +1 -0
  202. package/dist/types/components/controls/RenderSelect.d.ts.map +1 -0
  203. package/dist/types/components/controls/index.d.ts.map +1 -0
  204. package/dist/types/components/embed-card/EmbedCardResolver.d.ts.map +1 -0
  205. package/dist/types/components/embed-card/EmbedPluginCard.d.ts.map +1 -0
  206. package/dist/types/components/embed-card/card/BusyCard.d.ts.map +1 -0
  207. package/dist/types/components/embed-card/card/EmbedCardHeader.d.ts.map +1 -0
  208. package/dist/types/components/embed-card/card/EmbedPluginCard.d.ts.map +1 -0
  209. package/dist/types/components/embed-card/card/index.d.ts.map +1 -0
  210. package/dist/types/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts.map +1 -0
  211. package/dist/types/components/embed-card/error-handling/EmbedErrorCard.d.ts.map +1 -0
  212. package/dist/types/components/embed-card/error-handling/index.d.ts.map +1 -0
  213. package/dist/types/components/embed-card/index.d.ts.map +1 -0
  214. package/dist/types/components/embed-card/menu/EmbedMenu.d.ts.map +1 -0
  215. package/dist/types/components/embed-card/menu/JsonMenuItem.d.ts.map +1 -0
  216. package/dist/types/components/embed-card/menu/index.d.ts.map +1 -0
  217. package/dist/types/components/embed-plugin-stories/storyPayload.d.ts.map +1 -0
  218. package/dist/types/components/embed-plugin-stories/storyShared.d.ts.map +1 -0
  219. package/dist/types/components/index.d.ts.map +1 -0
  220. package/dist/types/components/validation-alerts/ValidatePayload.d.ts.map +1 -0
  221. package/dist/types/components/validation-alerts/ValidatePlugins.d.ts.map +1 -0
  222. package/dist/types/components/validation-alerts/index.d.ts.map +1 -0
  223. package/dist/types/contexts/EmbedPluginContext/Context.d.ts.map +1 -0
  224. package/dist/types/contexts/EmbedPluginContext/Provider.d.ts.map +1 -0
  225. package/dist/types/contexts/EmbedPluginContext/State.d.ts.map +1 -0
  226. package/dist/{contexts/ResolvePayloadContext → types/contexts/EmbedPluginContext}/index.d.ts.map +1 -1
  227. package/dist/types/contexts/EmbedPluginContext/use.d.ts.map +1 -0
  228. package/dist/types/contexts/RefreshPayloadContext/Context.d.ts.map +1 -0
  229. package/dist/types/contexts/RefreshPayloadContext/Provider.d.ts.map +1 -0
  230. package/dist/types/contexts/RefreshPayloadContext/State.d.ts.map +1 -0
  231. package/dist/types/contexts/RefreshPayloadContext/index.d.ts.map +1 -0
  232. package/dist/types/contexts/RefreshPayloadContext/use.d.ts.map +1 -0
  233. package/dist/types/contexts/ResolvePayloadContext/Context.d.ts.map +1 -0
  234. package/dist/types/contexts/ResolvePayloadContext/Provider.d.ts.map +1 -0
  235. package/dist/types/contexts/ResolvePayloadContext/State.d.ts.map +1 -0
  236. package/dist/types/contexts/ResolvePayloadContext/index.d.ts.map +1 -0
  237. package/dist/types/contexts/ResolvePayloadContext/use.d.ts.map +1 -0
  238. package/dist/types/contexts/ValidatePayloadContext/Context.d.ts.map +1 -0
  239. package/dist/types/contexts/ValidatePayloadContext/Provider.d.ts.map +1 -0
  240. package/dist/types/contexts/ValidatePayloadContext/State.d.ts.map +1 -0
  241. package/dist/types/contexts/ValidatePayloadContext/index.d.ts.map +1 -0
  242. package/dist/types/contexts/ValidatePayloadContext/use.d.ts.map +1 -0
  243. package/dist/types/contexts/index.d.ts.map +1 -0
  244. package/dist/types/index.d.ts +3 -1
  245. package/dist/types/index.d.ts.map +1 -1
  246. package/dist/types/types/EmbedPluginProps.d.ts.map +1 -0
  247. package/dist/types/types/index.d.ts.map +1 -0
  248. package/package.json +26 -34
  249. package/dist/components/EmbedPlugin.d.mts +0 -5
  250. package/dist/components/EmbedPlugin.d.mts.map +0 -1
  251. package/dist/components/EmbedPlugin.d.ts.map +0 -1
  252. package/dist/components/EmbedResolver.d.mts +0 -4
  253. package/dist/components/EmbedResolver.d.mts.map +0 -1
  254. package/dist/components/EmbedResolver.d.ts.map +0 -1
  255. package/dist/components/controls/EmbedFormControl.d.mts +0 -10
  256. package/dist/components/controls/EmbedFormControl.d.mts.map +0 -1
  257. package/dist/components/controls/EmbedFormControl.d.ts.map +0 -1
  258. package/dist/components/controls/ListModeSelect.d.mts +0 -6
  259. package/dist/components/controls/ListModeSelect.d.mts.map +0 -1
  260. package/dist/components/controls/ListModeSelect.d.ts.map +0 -1
  261. package/dist/components/controls/RenderSelect.d.mts +0 -4
  262. package/dist/components/controls/RenderSelect.d.mts.map +0 -1
  263. package/dist/components/controls/RenderSelect.d.ts.map +0 -1
  264. package/dist/components/controls/index.d.mts.map +0 -1
  265. package/dist/components/controls/index.d.ts.map +0 -1
  266. package/dist/components/embed-card/EmbedCardResolver.d.mts +0 -5
  267. package/dist/components/embed-card/EmbedCardResolver.d.mts.map +0 -1
  268. package/dist/components/embed-card/EmbedCardResolver.d.ts.map +0 -1
  269. package/dist/components/embed-card/EmbedPluginCard.d.mts +0 -11
  270. package/dist/components/embed-card/EmbedPluginCard.d.mts.map +0 -1
  271. package/dist/components/embed-card/EmbedPluginCard.d.ts.map +0 -1
  272. package/dist/components/embed-card/card/BusyCard.d.mts +0 -11
  273. package/dist/components/embed-card/card/BusyCard.d.mts.map +0 -1
  274. package/dist/components/embed-card/card/BusyCard.d.ts.map +0 -1
  275. package/dist/components/embed-card/card/EmbedCardHeader.d.mts +0 -4
  276. package/dist/components/embed-card/card/EmbedCardHeader.d.mts.map +0 -1
  277. package/dist/components/embed-card/card/EmbedCardHeader.d.ts.map +0 -1
  278. package/dist/components/embed-card/card/EmbedPluginCard.d.mts +0 -4
  279. package/dist/components/embed-card/card/EmbedPluginCard.d.mts.map +0 -1
  280. package/dist/components/embed-card/card/EmbedPluginCard.d.ts.map +0 -1
  281. package/dist/components/embed-card/card/index.d.mts.map +0 -1
  282. package/dist/components/embed-card/card/index.d.ts.map +0 -1
  283. package/dist/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.mts +0 -10
  284. package/dist/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.mts.map +0 -1
  285. package/dist/components/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts.map +0 -1
  286. package/dist/components/embed-card/error-handling/EmbedErrorCard.d.mts +0 -15
  287. package/dist/components/embed-card/error-handling/EmbedErrorCard.d.mts.map +0 -1
  288. package/dist/components/embed-card/error-handling/EmbedErrorCard.d.ts.map +0 -1
  289. package/dist/components/embed-card/error-handling/index.d.mts.map +0 -1
  290. package/dist/components/embed-card/error-handling/index.d.ts.map +0 -1
  291. package/dist/components/embed-card/index.d.mts.map +0 -1
  292. package/dist/components/embed-card/index.d.ts.map +0 -1
  293. package/dist/components/embed-card/menu/EmbedMenu.d.mts +0 -4
  294. package/dist/components/embed-card/menu/EmbedMenu.d.mts.map +0 -1
  295. package/dist/components/embed-card/menu/EmbedMenu.d.ts.map +0 -1
  296. package/dist/components/embed-card/menu/JsonMenuItem.d.mts +0 -4
  297. package/dist/components/embed-card/menu/JsonMenuItem.d.mts.map +0 -1
  298. package/dist/components/embed-card/menu/JsonMenuItem.d.ts.map +0 -1
  299. package/dist/components/embed-card/menu/index.d.mts +0 -2
  300. package/dist/components/embed-card/menu/index.d.mts.map +0 -1
  301. package/dist/components/embed-card/menu/index.d.ts.map +0 -1
  302. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.mts +0 -6
  303. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.mts.map +0 -1
  304. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.ts +0 -6
  305. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.examples.stories.d.ts.map +0 -1
  306. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.mts +0 -11
  307. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.mts.map +0 -1
  308. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.ts +0 -11
  309. package/dist/components/embed-plugin-stories/XyoEmbedPlugin.states.stories.d.ts.map +0 -1
  310. package/dist/components/embed-plugin-stories/storyPayload.d.mts +0 -126
  311. package/dist/components/embed-plugin-stories/storyPayload.d.mts.map +0 -1
  312. package/dist/components/embed-plugin-stories/storyPayload.d.ts.map +0 -1
  313. package/dist/components/embed-plugin-stories/storyShared.d.mts +0 -5
  314. package/dist/components/embed-plugin-stories/storyShared.d.mts.map +0 -1
  315. package/dist/components/embed-plugin-stories/storyShared.d.ts.map +0 -1
  316. package/dist/components/index.d.mts.map +0 -1
  317. package/dist/components/index.d.ts.map +0 -1
  318. package/dist/components/validation-alerts/ValidatePayload.d.mts +0 -5
  319. package/dist/components/validation-alerts/ValidatePayload.d.mts.map +0 -1
  320. package/dist/components/validation-alerts/ValidatePayload.d.ts.map +0 -1
  321. package/dist/components/validation-alerts/ValidatePlugins.d.mts +0 -5
  322. package/dist/components/validation-alerts/ValidatePlugins.d.mts.map +0 -1
  323. package/dist/components/validation-alerts/ValidatePlugins.d.ts.map +0 -1
  324. package/dist/components/validation-alerts/index.d.mts.map +0 -1
  325. package/dist/components/validation-alerts/index.d.ts.map +0 -1
  326. package/dist/contexts/EmbedPluginContext/Context.d.mts +0 -4
  327. package/dist/contexts/EmbedPluginContext/Context.d.mts.map +0 -1
  328. package/dist/contexts/EmbedPluginContext/Context.d.ts.map +0 -1
  329. package/dist/contexts/EmbedPluginContext/Provider.d.mts +0 -7
  330. package/dist/contexts/EmbedPluginContext/Provider.d.mts.map +0 -1
  331. package/dist/contexts/EmbedPluginContext/Provider.d.ts.map +0 -1
  332. package/dist/contexts/EmbedPluginContext/State.d.mts +0 -33
  333. package/dist/contexts/EmbedPluginContext/State.d.mts.map +0 -1
  334. package/dist/contexts/EmbedPluginContext/State.d.ts.map +0 -1
  335. package/dist/contexts/EmbedPluginContext/index.d.mts.map +0 -1
  336. package/dist/contexts/EmbedPluginContext/index.d.ts.map +0 -1
  337. package/dist/contexts/EmbedPluginContext/use.d.mts +0 -2
  338. package/dist/contexts/EmbedPluginContext/use.d.mts.map +0 -1
  339. package/dist/contexts/EmbedPluginContext/use.d.ts.map +0 -1
  340. package/dist/contexts/RefreshPayloadContext/Context.d.mts +0 -4
  341. package/dist/contexts/RefreshPayloadContext/Context.d.mts.map +0 -1
  342. package/dist/contexts/RefreshPayloadContext/Context.d.ts.map +0 -1
  343. package/dist/contexts/RefreshPayloadContext/Provider.d.mts +0 -8
  344. package/dist/contexts/RefreshPayloadContext/Provider.d.mts.map +0 -1
  345. package/dist/contexts/RefreshPayloadContext/Provider.d.ts.map +0 -1
  346. package/dist/contexts/RefreshPayloadContext/State.d.mts +0 -8
  347. package/dist/contexts/RefreshPayloadContext/State.d.mts.map +0 -1
  348. package/dist/contexts/RefreshPayloadContext/State.d.ts.map +0 -1
  349. package/dist/contexts/RefreshPayloadContext/index.d.mts.map +0 -1
  350. package/dist/contexts/RefreshPayloadContext/index.d.ts.map +0 -1
  351. package/dist/contexts/RefreshPayloadContext/use.d.mts +0 -2
  352. package/dist/contexts/RefreshPayloadContext/use.d.mts.map +0 -1
  353. package/dist/contexts/RefreshPayloadContext/use.d.ts.map +0 -1
  354. package/dist/contexts/ResolvePayloadContext/Context.d.mts +0 -4
  355. package/dist/contexts/ResolvePayloadContext/Context.d.mts.map +0 -1
  356. package/dist/contexts/ResolvePayloadContext/Context.d.ts.map +0 -1
  357. package/dist/contexts/ResolvePayloadContext/Provider.d.mts +0 -6
  358. package/dist/contexts/ResolvePayloadContext/Provider.d.mts.map +0 -1
  359. package/dist/contexts/ResolvePayloadContext/Provider.d.ts.map +0 -1
  360. package/dist/contexts/ResolvePayloadContext/State.d.mts +0 -13
  361. package/dist/contexts/ResolvePayloadContext/State.d.mts.map +0 -1
  362. package/dist/contexts/ResolvePayloadContext/State.d.ts.map +0 -1
  363. package/dist/contexts/ResolvePayloadContext/index.d.mts.map +0 -1
  364. package/dist/contexts/ResolvePayloadContext/use.d.mts +0 -2
  365. package/dist/contexts/ResolvePayloadContext/use.d.mts.map +0 -1
  366. package/dist/contexts/ResolvePayloadContext/use.d.ts.map +0 -1
  367. package/dist/contexts/ValidatePayloadContext/Context.d.mts +0 -4
  368. package/dist/contexts/ValidatePayloadContext/Context.d.mts.map +0 -1
  369. package/dist/contexts/ValidatePayloadContext/Context.d.ts.map +0 -1
  370. package/dist/contexts/ValidatePayloadContext/Provider.d.mts +0 -7
  371. package/dist/contexts/ValidatePayloadContext/Provider.d.mts.map +0 -1
  372. package/dist/contexts/ValidatePayloadContext/Provider.d.ts.map +0 -1
  373. package/dist/contexts/ValidatePayloadContext/Provider.stories.d.mts +0 -15
  374. package/dist/contexts/ValidatePayloadContext/Provider.stories.d.mts.map +0 -1
  375. package/dist/contexts/ValidatePayloadContext/Provider.stories.d.ts +0 -15
  376. package/dist/contexts/ValidatePayloadContext/Provider.stories.d.ts.map +0 -1
  377. package/dist/contexts/ValidatePayloadContext/State.d.mts +0 -7
  378. package/dist/contexts/ValidatePayloadContext/State.d.mts.map +0 -1
  379. package/dist/contexts/ValidatePayloadContext/State.d.ts.map +0 -1
  380. package/dist/contexts/ValidatePayloadContext/index.d.mts.map +0 -1
  381. package/dist/contexts/ValidatePayloadContext/index.d.ts.map +0 -1
  382. package/dist/contexts/ValidatePayloadContext/use.d.mts +0 -2
  383. package/dist/contexts/ValidatePayloadContext/use.d.mts.map +0 -1
  384. package/dist/contexts/ValidatePayloadContext/use.d.ts.map +0 -1
  385. package/dist/contexts/index.d.mts.map +0 -1
  386. package/dist/contexts/index.d.ts.map +0 -1
  387. package/dist/index.d.mts.map +0 -1
  388. package/dist/index.d.ts +0 -4
  389. package/dist/index.d.ts.map +0 -1
  390. package/dist/index.js +0 -543
  391. package/dist/index.js.map +0 -1
  392. package/dist/index.mjs +0 -493
  393. package/dist/index.mjs.map +0 -1
  394. package/dist/types/EmbedPluginProps.d.mts +0 -10
  395. package/dist/types/EmbedPluginProps.d.mts.map +0 -1
  396. package/dist/types/EmbedPluginProps.d.ts.map +0 -1
  397. package/dist/types/index.d.mts.map +0 -1
  398. /package/dist/{components → types/components}/EmbedPlugin.d.ts +0 -0
  399. /package/dist/{components → types/components}/EmbedResolver.d.ts +0 -0
  400. /package/dist/{components → types/components}/controls/EmbedFormControl.d.ts +0 -0
  401. /package/dist/{components → types/components}/controls/ListModeSelect.d.ts +0 -0
  402. /package/dist/{components → types/components}/controls/RenderSelect.d.ts +0 -0
  403. /package/dist/{components → types/components}/controls/index.d.ts +0 -0
  404. /package/dist/{components → types/components}/embed-card/EmbedCardResolver.d.ts +0 -0
  405. /package/dist/{components → types/components}/embed-card/EmbedPluginCard.d.ts +0 -0
  406. /package/dist/{components → types/components}/embed-card/card/BusyCard.d.ts +0 -0
  407. /package/dist/{components → types/components}/embed-card/card/EmbedCardHeader.d.ts +0 -0
  408. /package/dist/{components → types/components}/embed-card/card/EmbedPluginCard.d.ts +0 -0
  409. /package/dist/{components → types/components}/embed-card/card/index.d.ts +0 -0
  410. /package/dist/{components → types/components}/embed-card/error-handling/EmbedCardApiErrorRenderer.d.ts +0 -0
  411. /package/dist/{components → types/components}/embed-card/error-handling/EmbedErrorCard.d.ts +0 -0
  412. /package/dist/{components → types/components}/embed-card/error-handling/index.d.ts +0 -0
  413. /package/dist/{components → types/components}/embed-card/index.d.ts +0 -0
  414. /package/dist/{components → types/components}/embed-card/menu/EmbedMenu.d.ts +0 -0
  415. /package/dist/{components → types/components}/embed-card/menu/JsonMenuItem.d.ts +0 -0
  416. /package/dist/{components → types/components}/embed-card/menu/index.d.ts +0 -0
  417. /package/dist/{components → types/components}/embed-plugin-stories/storyPayload.d.ts +0 -0
  418. /package/dist/{components → types/components}/embed-plugin-stories/storyShared.d.ts +0 -0
  419. /package/dist/{components → types/components}/index.d.ts +0 -0
  420. /package/dist/{components → types/components}/validation-alerts/ValidatePayload.d.ts +0 -0
  421. /package/dist/{components → types/components}/validation-alerts/ValidatePlugins.d.ts +0 -0
  422. /package/dist/{components → types/components}/validation-alerts/index.d.ts +0 -0
  423. /package/dist/{contexts → types/contexts}/EmbedPluginContext/Context.d.ts +0 -0
  424. /package/dist/{contexts → types/contexts}/EmbedPluginContext/Provider.d.ts +0 -0
  425. /package/dist/{contexts → types/contexts}/EmbedPluginContext/State.d.ts +0 -0
  426. /package/dist/{contexts → types/contexts}/EmbedPluginContext/index.d.ts +0 -0
  427. /package/dist/{contexts → types/contexts}/EmbedPluginContext/use.d.ts +0 -0
  428. /package/dist/{contexts → types/contexts}/RefreshPayloadContext/Context.d.ts +0 -0
  429. /package/dist/{contexts → types/contexts}/RefreshPayloadContext/Provider.d.ts +0 -0
  430. /package/dist/{contexts → types/contexts}/RefreshPayloadContext/State.d.ts +0 -0
  431. /package/dist/{contexts → types/contexts}/RefreshPayloadContext/index.d.ts +0 -0
  432. /package/dist/{contexts → types/contexts}/RefreshPayloadContext/use.d.ts +0 -0
  433. /package/dist/{contexts → types/contexts}/ResolvePayloadContext/Context.d.ts +0 -0
  434. /package/dist/{contexts → types/contexts}/ResolvePayloadContext/Provider.d.ts +0 -0
  435. /package/dist/{contexts → types/contexts}/ResolvePayloadContext/State.d.ts +0 -0
  436. /package/dist/{contexts → types/contexts}/ResolvePayloadContext/index.d.ts +0 -0
  437. /package/dist/{contexts → types/contexts}/ResolvePayloadContext/use.d.ts +0 -0
  438. /package/dist/{contexts → types/contexts}/ValidatePayloadContext/Context.d.ts +0 -0
  439. /package/dist/{contexts → types/contexts}/ValidatePayloadContext/Provider.d.ts +0 -0
  440. /package/dist/{contexts → types/contexts}/ValidatePayloadContext/State.d.ts +0 -0
  441. /package/dist/{contexts → types/contexts}/ValidatePayloadContext/index.d.ts +0 -0
  442. /package/dist/{contexts → types/contexts}/ValidatePayloadContext/use.d.ts +0 -0
  443. /package/dist/{contexts → types/contexts}/index.d.ts +0 -0
  444. /package/dist/types/{EmbedPluginProps.d.ts → types/EmbedPluginProps.d.ts} +0 -0
  445. /package/dist/types/{index.d.mts → types/index.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/Provider.tsx"],"names":[],"mappings":";;;;AAEA,iCAA2C;AAE3C,uCAA8C;AAK9C,mDAAmD;AAC5C,MAAM,mBAAmB,GAAqD,CAAC,EACpF,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,iBAAiB,GAClB,EAAE,EAAE;IACH,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAkC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAEnH,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IACnD,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEb,OAAO,CACL,uBAAC,4BAAkB,CAAC,QAAQ,kBAC1B,KAAK,EAAE;YACL,YAAY;YACZ,iBAAiB;YACjB,kBAAkB;YAClB,QAAQ,EAAE,IAAI;YACd,YAAY;YACZ,eAAe;YACf,cAAc;SACf,gBAEA,QAAQ,IACmB,CAC/B,CAAA;AACH,CAAC,CAAA;AA7BY,QAAA,mBAAmB,uBA6B/B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=State.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"State.js","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/State.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Context"), exports);
5
+ tslib_1.__exportStar(require("./Provider"), exports);
6
+ tslib_1.__exportStar(require("./State"), exports);
7
+ tslib_1.__exportStar(require("./use"), exports);
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB;AACzB,qDAA0B;AAC1B,kDAAuB;AACvB,gDAAqB"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useEmbedPluginState = void 0;
4
+ const react_shared_1 = require("@xyo-network/react-shared");
5
+ const Context_1 = require("./Context");
6
+ const useEmbedPluginState = () => (0, react_shared_1.useContextEx)(Context_1.EmbedPluginContext, 'EmbedPlugin', true);
7
+ exports.useEmbedPluginState = useEmbedPluginState;
8
+ //# sourceMappingURL=use.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use.js","sourceRoot":"","sources":["../../../../src/contexts/EmbedPluginContext/use.tsx"],"names":[],"mappings":";;;AAAA,4DAAwD;AAExD,uCAA8C;AAEvC,MAAM,mBAAmB,GAAG,GAAG,EAAE,CAAC,IAAA,2BAAY,EAAC,4BAAkB,EAAE,aAAa,EAAE,IAAI,CAAC,CAAA;AAAjF,QAAA,mBAAmB,uBAA8D"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RefreshPayloadContext = void 0;
4
+ const react_shared_1 = require("@xyo-network/react-shared");
5
+ exports.RefreshPayloadContext = (0, react_shared_1.createContextEx)();
6
+ //# sourceMappingURL=Context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/Context.tsx"],"names":[],"mappings":";;;AAAA,4DAA2D;AAI9C,QAAA,qBAAqB,GAAG,IAAA,8BAAe,GAAuB,CAAA"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RefreshPayloadProvider = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const Context_1 = require("./Context");
7
+ const RefreshPayloadProvider = ({ children, onRefresh, refreshPayload }) => {
8
+ const [localRefreshPayload, setRefreshPayload] = (0, react_1.useState)(refreshPayload);
9
+ return ((0, jsx_runtime_1.jsx)(Context_1.RefreshPayloadContext.Provider, Object.assign({ value: { onRefresh, provided: true, refreshPayload: localRefreshPayload, setRefreshPayload } }, { children: children })));
10
+ };
11
+ exports.RefreshPayloadProvider = RefreshPayloadProvider;
12
+ //# sourceMappingURL=Provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/Provider.tsx"],"names":[],"mappings":";;;;AACA,iCAAgC;AAEhC,uCAAiD;AAO1C,MAAM,sBAAsB,GAAgD,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,EAAE;IAC7H,MAAM,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAAC,cAAc,CAAC,CAAA;IAEzE,OAAO,CACL,uBAAC,+BAAqB,CAAC,QAAQ,kBAAC,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,gBACzH,QAAQ,IACsB,CAClC,CAAA;AACH,CAAC,CAAA;AARY,QAAA,sBAAsB,0BAQlC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=State.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"State.js","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/State.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Provider"), exports);
5
+ tslib_1.__exportStar(require("./State"), exports);
6
+ tslib_1.__exportStar(require("./use"), exports);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B;AAC1B,kDAAuB;AACvB,gDAAqB"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useRefreshPayload = void 0;
4
+ const react_shared_1 = require("@xyo-network/react-shared");
5
+ const Context_1 = require("./Context");
6
+ const useRefreshPayload = () => (0, react_shared_1.useContextEx)(Context_1.RefreshPayloadContext, 'RefreshPayload', true);
7
+ exports.useRefreshPayload = useRefreshPayload;
8
+ //# sourceMappingURL=use.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use.js","sourceRoot":"","sources":["../../../../src/contexts/RefreshPayloadContext/use.tsx"],"names":[],"mappings":";;;AAAA,4DAAwD;AAExD,uCAAiD;AAE1C,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,IAAA,2BAAY,EAAC,+BAAqB,EAAE,gBAAgB,EAAE,IAAI,CAAC,CAAA;AAArF,QAAA,iBAAiB,qBAAoE"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResolvePayloadContext = void 0;
4
+ const react_shared_1 = require("@xyo-network/react-shared");
5
+ exports.ResolvePayloadContext = (0, react_shared_1.createContextEx)();
6
+ //# sourceMappingURL=Context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/Context.ts"],"names":[],"mappings":";;;AAAA,4DAA2D;AAI9C,QAAA,qBAAqB,GAAG,IAAA,8BAAe,GAAuB,CAAA"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResolvePayloadProvider = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const delay_1 = require("@xylabs/delay");
7
+ const react_async_effect_1 = require("@xylabs/react-async-effect");
8
+ const huri_1 = require("@xyo-network/huri");
9
+ const payload_model_1 = require("@xyo-network/payload-model");
10
+ const react_1 = require("react");
11
+ const RefreshPayloadContext_1 = require("../RefreshPayloadContext");
12
+ const Context_1 = require("./Context");
13
+ const ResolvePayloadProvider = ({ children, huriPayload }) => {
14
+ const [payload, setPayload] = (0, react_1.useState)();
15
+ const [huri, setHuri] = (0, react_1.useState)();
16
+ const { refreshPayload, setRefreshPayload, onRefresh } = (0, RefreshPayloadContext_1.useRefreshPayload)();
17
+ (0, react_1.useEffect)(() => {
18
+ typeof huriPayload === 'string' ? setHuri(huriPayload) : undefined;
19
+ if (typeof huriPayload === 'object') {
20
+ setPayload(huriPayload);
21
+ setRefreshPayload === null || setRefreshPayload === void 0 ? void 0 : setRefreshPayload(true);
22
+ }
23
+ }, [huriPayload, setRefreshPayload]);
24
+ const [notFound, setNotFound] = (0, react_1.useState)();
25
+ const [huriError, setHuriError] = (0, react_1.useState)();
26
+ (0, react_async_effect_1.useAsyncEffect)(
27
+ // eslint-disable-next-line react-hooks/exhaustive-deps
28
+ (mounted) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
29
+ if (huri && !refreshPayload) {
30
+ try {
31
+ const huriInstance = new huri_1.Huri(huri);
32
+ const result = yield huriInstance.fetch();
33
+ // ensure the busy state can stay for a moment to avoid flashing too quickly
34
+ yield (0, delay_1.delay)(500);
35
+ if (mounted()) {
36
+ setNotFound(result === null);
37
+ setPayload(result);
38
+ setRefreshPayload === null || setRefreshPayload === void 0 ? void 0 : setRefreshPayload(true);
39
+ }
40
+ }
41
+ catch (e) {
42
+ const error = e;
43
+ setHuriError({ message: error.message, schema: payload_model_1.ModuleErrorSchema, sources: [] });
44
+ }
45
+ }
46
+ }), [huri, payload, refreshPayload, setRefreshPayload]);
47
+ const refreshHuri = () => {
48
+ onRefresh === null || onRefresh === void 0 ? void 0 : onRefresh();
49
+ if (huri) {
50
+ setRefreshPayload === null || setRefreshPayload === void 0 ? void 0 : setRefreshPayload(false);
51
+ }
52
+ };
53
+ return ((0, jsx_runtime_1.jsx)(Context_1.ResolvePayloadContext.Provider, Object.assign({ value: { huri, huriError, notFound, payload, provided: true, refreshHuri, setPayload } }, { children: children })));
54
+ };
55
+ exports.ResolvePayloadProvider = ResolvePayloadProvider;
56
+ //# sourceMappingURL=Provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/Provider.tsx"],"names":[],"mappings":";;;;;AAAA,yCAAqC;AACrC,mEAA2D;AAE3D,4CAAwC;AACxC,8DAAoF;AACpF,iCAA2C;AAE3C,oEAA4D;AAC5D,uCAAiD;AAK1C,MAAM,sBAAsB,GAAwD,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,EAAE;IACvH,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,GAAW,CAAA;IACjD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,GAAU,CAAA;IAC1C,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,GAAG,IAAA,yCAAiB,GAAE,CAAA;IAE5E,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,OAAO,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;QAClE,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;YACnC,UAAU,CAAC,WAAW,CAAC,CAAA;YACvB,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAG,IAAI,CAAC,CAAA;SAC1B;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC,CAAA;IAEpC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,GAAW,CAAA;IACnD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,GAAe,CAAA;IAEzD,IAAA,mCAAc;IACZ,uDAAuD;IACvD,CAAO,OAAO,EAAE,EAAE;QAChB,IAAI,IAAI,IAAI,CAAC,cAAc,EAAE;YAC3B,IAAI;gBACF,MAAM,YAAY,GAAG,IAAI,WAAI,CAAC,IAAI,CAAC,CAAA;gBACnC,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,KAAK,EAAE,CAAA;gBACzC,4EAA4E;gBAC5E,MAAM,IAAA,aAAK,EAAC,GAAG,CAAC,CAAA;gBAEhB,IAAI,OAAO,EAAE,EAAE;oBACb,WAAW,CAAC,MAAM,KAAK,IAAI,CAAC,CAAA;oBAC5B,UAAU,CAAC,MAAM,CAAC,CAAA;oBAClB,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAG,IAAI,CAAC,CAAA;iBAC1B;aACF;YAAC,OAAO,CAAC,EAAE;gBACV,MAAM,KAAK,GAAG,CAAU,CAAA;gBACxB,YAAY,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,iCAAiB,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAA;aACjF;SACF;IACH,CAAC,CAAA,EACD,CAAC,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,iBAAiB,CAAC,CACnD,CAAA;IAED,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,SAAS,aAAT,SAAS,uBAAT,SAAS,EAAI,CAAA;QACb,IAAI,IAAI,EAAE;YACR,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAG,KAAK,CAAC,CAAA;SAC3B;IACH,CAAC,CAAA;IAED,OAAO,CACL,uBAAC,+BAAqB,CAAC,QAAQ,kBAAC,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,gBACnH,QAAQ,IACsB,CAClC,CAAA;AACH,CAAC,CAAA;AApDY,QAAA,sBAAsB,0BAoDlC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=State.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"State.js","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/State.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Context"), exports);
5
+ tslib_1.__exportStar(require("./Provider"), exports);
6
+ tslib_1.__exportStar(require("./State"), exports);
7
+ tslib_1.__exportStar(require("./use"), exports);
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB;AACzB,qDAA0B;AAC1B,kDAAuB;AACvB,gDAAqB"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useResolvePayload = void 0;
4
+ const react_shared_1 = require("@xyo-network/react-shared");
5
+ const Context_1 = require("./Context");
6
+ const useResolvePayload = () => (0, react_shared_1.useContextEx)(Context_1.ResolvePayloadContext, 'ResolvePayload', true);
7
+ exports.useResolvePayload = useResolvePayload;
8
+ //# sourceMappingURL=use.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use.js","sourceRoot":"","sources":["../../../../src/contexts/ResolvePayloadContext/use.tsx"],"names":[],"mappings":";;;AAAA,4DAAwD;AAExD,uCAAiD;AAE1C,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,IAAA,2BAAY,EAAC,+BAAqB,EAAE,gBAAgB,EAAE,IAAI,CAAC,CAAA;AAArF,QAAA,iBAAiB,qBAAoE"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidatePayloadContext = void 0;
4
+ const react_shared_1 = require("@xyo-network/react-shared");
5
+ exports.ValidatePayloadContext = (0, react_shared_1.createContextEx)();
6
+ //# sourceMappingURL=Context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Context.js","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/Context.ts"],"names":[],"mappings":";;;AAAA,4DAA2D;AAI9C,QAAA,sBAAsB,GAAG,IAAA,8BAAe,GAAwB,CAAA"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidatePayloadProvider = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const material_1 = require("@mui/material");
7
+ const react_async_effect_1 = require("@xylabs/react-async-effect");
8
+ const schema_cache_1 = require("@xyo-network/schema-cache");
9
+ const react_1 = require("react");
10
+ const ResolvePayloadContext_1 = require("../ResolvePayloadContext");
11
+ const Context_1 = require("./Context");
12
+ const ValidatePayloadProvider = ({ children, enabled = false }) => {
13
+ const { payload } = (0, ResolvePayloadContext_1.useResolvePayload)();
14
+ const [initialized, setInitialized] = (0, react_1.useState)(false);
15
+ const [valid, setValid] = (0, react_1.useState)();
16
+ (0, react_async_effect_1.useAsyncEffect)(
17
+ // eslint-disable-next-line react-hooks/exhaustive-deps
18
+ () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
19
+ if (payload && enabled) {
20
+ yield schema_cache_1.SchemaCache.instance.get(payload.schema);
21
+ const possibleKnownSchema = payload.schema;
22
+ if (schema_cache_1.SchemaCache.instance.validators[possibleKnownSchema]) {
23
+ const validator = schema_cache_1.SchemaCache.instance.validators[possibleKnownSchema];
24
+ setValid(validator === null || validator === void 0 ? void 0 : validator(payload));
25
+ }
26
+ setInitialized(true);
27
+ }
28
+ }), [payload, enabled]);
29
+ return ((0, jsx_runtime_1.jsx)(Context_1.ValidatePayloadContext.Provider, Object.assign({ value: { enabled, provided: true, schema: payload === null || payload === void 0 ? void 0 : payload.schema, validPayload: valid } }, { children: enabled ? (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: initialized ? children : (0, jsx_runtime_1.jsx)(material_1.Chip, { label: "Validating Payload..." }) }) : children })));
30
+ };
31
+ exports.ValidatePayloadProvider = ValidatePayloadProvider;
32
+ //# sourceMappingURL=Provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/Provider.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAoC;AACpC,mEAA2D;AAE3D,4DAAiF;AACjF,iCAAgC;AAEhC,oEAA4D;AAC5D,uCAAkD;AAO3C,MAAM,uBAAuB,GAAyD,CAAC,EAAE,QAAQ,EAAE,OAAO,GAAG,KAAK,EAAE,EAAE,EAAE;IAC7H,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,yCAAiB,GAAE,CAAA;IACvC,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IACrD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,GAAW,CAAA;IAE7C,IAAA,mCAAc;IACZ,uDAAuD;IACvD,GAAS,EAAE;QACT,IAAI,OAAO,IAAI,OAAO,EAAE;YACtB,MAAM,0BAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;YAE9C,MAAM,mBAAmB,GAAG,OAAO,CAAC,MAAwC,CAAA;YAE5E,IAAI,0BAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC,EAAE;gBACxD,MAAM,SAAS,GAAG,0BAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAA;gBACtE,QAAQ,CAAC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAG,OAAO,CAAC,CAAC,CAAA;aAC/B;YACD,cAAc,CAAC,IAAI,CAAC,CAAA;SACrB;IACH,CAAC,CAAA,EACD,CAAC,OAAO,EAAE,OAAO,CAAC,CACnB,CAAA;IAED,OAAO,CACL,uBAAC,gCAAsB,CAAC,QAAQ,kBAAC,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,gBAC9G,OAAO,CAAC,CAAC,CAAC,2DAAG,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,uBAAC,eAAI,IAAC,KAAK,EAAC,uBAAuB,GAAG,GAAI,CAAC,CAAC,CAAC,QAAQ,IAC5D,CACnC,CAAA;AACH,CAAC,CAAA;AA5BY,QAAA,uBAAuB,2BA4BnC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=State.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"State.js","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/State.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Provider"), exports);
5
+ tslib_1.__exportStar(require("./State"), exports);
6
+ tslib_1.__exportStar(require("./use"), exports);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B;AAC1B,kDAAuB;AACvB,gDAAqB"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useValidatePayload = void 0;
4
+ const react_shared_1 = require("@xyo-network/react-shared");
5
+ const Context_1 = require("./Context");
6
+ const useValidatePayload = () => (0, react_shared_1.useContextEx)(Context_1.ValidatePayloadContext, 'ValidateSchema', true);
7
+ exports.useValidatePayload = useValidatePayload;
8
+ //# sourceMappingURL=use.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use.js","sourceRoot":"","sources":["../../../../src/contexts/ValidatePayloadContext/use.tsx"],"names":[],"mappings":";;;AAAA,4DAAwD;AAExD,uCAAkD;AAE3C,MAAM,kBAAkB,GAAG,GAAG,EAAE,CAAC,IAAA,2BAAY,EAAC,gCAAsB,EAAE,gBAAgB,EAAE,IAAI,CAAC,CAAA;AAAvF,QAAA,kBAAkB,sBAAqE"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./EmbedPluginContext"), exports);
5
+ tslib_1.__exportStar(require("./RefreshPayloadContext"), exports);
6
+ tslib_1.__exportStar(require("./ResolvePayloadContext"), exports);
7
+ tslib_1.__exportStar(require("./ValidatePayloadContext"), exports);
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":";;;AAAA,+DAAoC;AACpC,kEAAuC;AACvC,kEAAuC;AACvC,mEAAwC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./components"), exports);
5
+ tslib_1.__exportStar(require("./contexts"), exports);
6
+ tslib_1.__exportStar(require("./types"), exports);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,qDAA0B;AAC1B,kDAAuB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=EmbedPluginProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmbedPluginProps.js","sourceRoot":"","sources":["../../../src/types/EmbedPluginProps.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./EmbedPluginProps"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;AAAA,6DAAkC"}