@xyo-network/react-schema 2.64.0-rc.2 → 2.64.0-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (355) hide show
  1. package/dist/browser/components/Property/SchemaProperty.d.mts.map +1 -0
  2. package/dist/browser/components/Property/SchemaProperty.d.ts.map +1 -0
  3. package/dist/browser/components/Property/SchemaProperty.js +54 -0
  4. package/dist/browser/components/Property/SchemaProperty.js.map +1 -0
  5. package/dist/browser/components/Property/SchemaProperty.stories.js +37 -0
  6. package/dist/browser/components/Property/SchemaProperty.stories.js.map +1 -0
  7. package/dist/browser/components/Property/index.d.mts.map +1 -0
  8. package/dist/browser/components/Property/index.d.ts.map +1 -0
  9. package/dist/browser/components/Property/index.js +2 -0
  10. package/dist/browser/components/Property/index.js.map +1 -0
  11. package/dist/browser/components/SelectEx/SchemaSelectEx.d.mts.map +1 -0
  12. package/dist/browser/components/SelectEx/SchemaSelectEx.d.ts.map +1 -0
  13. package/dist/browser/components/SelectEx/SchemaSelectEx.js +35 -0
  14. package/dist/browser/components/SelectEx/SchemaSelectEx.js.map +1 -0
  15. package/dist/browser/components/SelectEx/index.d.mts.map +1 -0
  16. package/dist/browser/components/SelectEx/index.d.ts.map +1 -0
  17. package/dist/browser/components/SelectEx/index.js +2 -0
  18. package/dist/browser/components/SelectEx/index.js.map +1 -0
  19. package/dist/browser/components/index.d.mts.map +1 -0
  20. package/dist/browser/components/index.d.ts.map +1 -0
  21. package/dist/browser/components/index.js +3 -0
  22. package/dist/browser/components/index.js.map +1 -0
  23. package/dist/browser/contexts/Schema/Context.d.mts.map +1 -0
  24. package/dist/browser/contexts/Schema/Context.d.ts.map +1 -0
  25. package/dist/browser/contexts/Schema/Context.js +6 -0
  26. package/dist/browser/contexts/Schema/Context.js.map +1 -0
  27. package/dist/browser/contexts/Schema/Provider/Memory.d.mts.map +1 -0
  28. package/dist/browser/contexts/Schema/Provider/Memory.d.ts.map +1 -0
  29. package/dist/browser/contexts/Schema/Provider/Memory.js +21 -0
  30. package/dist/browser/contexts/Schema/Provider/Memory.js.map +1 -0
  31. package/dist/browser/contexts/Schema/Provider/Props.d.mts.map +1 -0
  32. package/dist/browser/contexts/Schema/Provider/Props.d.ts.map +1 -0
  33. package/dist/browser/contexts/Schema/Provider/Props.js +1 -0
  34. package/dist/browser/contexts/Schema/Provider/Props.js.map +1 -0
  35. package/dist/browser/contexts/Schema/Provider/Route.d.mts.map +1 -0
  36. package/dist/browser/contexts/Schema/Provider/Route.d.ts.map +1 -0
  37. package/dist/browser/contexts/Schema/Provider/Route.js +47 -0
  38. package/dist/browser/contexts/Schema/Provider/Route.js.map +1 -0
  39. package/dist/browser/contexts/Schema/Provider/index.d.mts.map +1 -0
  40. package/dist/browser/contexts/Schema/Provider/index.d.ts.map +1 -0
  41. package/dist/browser/contexts/Schema/Provider/index.js +4 -0
  42. package/dist/browser/contexts/Schema/Provider/index.js.map +1 -0
  43. package/dist/browser/contexts/Schema/State.d.mts.map +1 -0
  44. package/dist/browser/contexts/Schema/State.d.ts.map +1 -0
  45. package/dist/browser/contexts/Schema/State.js +1 -0
  46. package/dist/browser/contexts/Schema/State.js.map +1 -0
  47. package/dist/browser/contexts/Schema/index.d.mts.map +1 -0
  48. package/dist/browser/contexts/Schema/index.d.ts.map +1 -0
  49. package/dist/browser/contexts/Schema/index.js +5 -0
  50. package/dist/browser/contexts/Schema/index.js.map +1 -0
  51. package/dist/browser/contexts/Schema/use.d.mts.map +1 -0
  52. package/dist/browser/contexts/Schema/use.d.ts.map +1 -0
  53. package/dist/browser/contexts/Schema/use.js +9 -0
  54. package/dist/browser/contexts/Schema/use.js.map +1 -0
  55. package/dist/browser/contexts/index.d.mts.map +1 -0
  56. package/dist/browser/contexts/index.d.ts.map +1 -0
  57. package/dist/browser/contexts/index.js +2 -0
  58. package/dist/browser/contexts/index.js.map +1 -0
  59. package/dist/browser/hooks/index.d.mts.map +1 -0
  60. package/dist/browser/hooks/index.d.ts.map +1 -0
  61. package/dist/browser/hooks/index.js +5 -0
  62. package/dist/browser/hooks/index.js.map +1 -0
  63. package/dist/browser/hooks/stories/TestSchemaHooks.stories.js +65 -0
  64. package/dist/browser/hooks/stories/TestSchemaHooks.stories.js.map +1 -0
  65. package/dist/browser/hooks/useGetSchema.d.mts.map +1 -0
  66. package/dist/browser/hooks/useGetSchema.d.ts.map +1 -0
  67. package/dist/browser/hooks/useGetSchema.js +47 -0
  68. package/dist/browser/hooks/useGetSchema.js.map +1 -0
  69. package/dist/browser/hooks/useGetSchema.stories.js +63 -0
  70. package/dist/browser/hooks/useGetSchema.stories.js.map +1 -0
  71. package/dist/browser/hooks/useSchemaDefinitions.d.mts.map +1 -0
  72. package/dist/browser/hooks/useSchemaDefinitions.d.ts.map +1 -0
  73. package/dist/browser/hooks/useSchemaDefinitions.js +25 -0
  74. package/dist/browser/hooks/useSchemaDefinitions.js.map +1 -0
  75. package/dist/browser/hooks/useSchemaList.d.mts.map +1 -0
  76. package/dist/browser/hooks/useSchemaList.d.ts.map +1 -0
  77. package/dist/browser/hooks/useSchemaList.js +47 -0
  78. package/dist/browser/hooks/useSchemaList.js.map +1 -0
  79. package/dist/browser/hooks/useSchemaStats.d.mts.map +1 -0
  80. package/dist/browser/hooks/useSchemaStats.d.ts.map +1 -0
  81. package/dist/browser/hooks/useSchemaStats.js +49 -0
  82. package/dist/browser/hooks/useSchemaStats.js.map +1 -0
  83. package/dist/browser/index.d.mts.map +1 -0
  84. package/dist/browser/index.d.ts.map +1 -0
  85. package/dist/browser/index.js +4 -0
  86. package/dist/browser/index.js.map +1 -0
  87. package/dist/node/components/Property/SchemaProperty.d.mts +40 -0
  88. package/dist/node/components/Property/SchemaProperty.d.mts.map +1 -0
  89. package/dist/node/components/Property/SchemaProperty.d.ts +40 -0
  90. package/dist/node/components/Property/SchemaProperty.d.ts.map +1 -0
  91. package/dist/node/components/Property/SchemaProperty.js +78 -0
  92. package/dist/node/components/Property/SchemaProperty.js.map +1 -0
  93. package/dist/node/components/Property/SchemaProperty.mjs +54 -0
  94. package/dist/node/components/Property/SchemaProperty.mjs.map +1 -0
  95. package/dist/node/components/Property/SchemaProperty.stories.js +64 -0
  96. package/dist/node/components/Property/SchemaProperty.stories.js.map +1 -0
  97. package/dist/node/components/Property/SchemaProperty.stories.mjs +37 -0
  98. package/dist/node/components/Property/SchemaProperty.stories.mjs.map +1 -0
  99. package/dist/node/components/Property/index.d.mts +2 -0
  100. package/dist/node/components/Property/index.d.mts.map +1 -0
  101. package/dist/node/components/Property/index.d.ts +2 -0
  102. package/dist/node/components/Property/index.d.ts.map +1 -0
  103. package/dist/node/components/Property/index.js +23 -0
  104. package/dist/node/components/Property/index.js.map +1 -0
  105. package/dist/node/components/Property/index.mjs +2 -0
  106. package/dist/node/components/Property/index.mjs.map +1 -0
  107. package/dist/node/components/SelectEx/SchemaSelectEx.d.mts +5 -0
  108. package/dist/node/components/SelectEx/SchemaSelectEx.d.mts.map +1 -0
  109. package/dist/node/components/SelectEx/SchemaSelectEx.d.ts +5 -0
  110. package/dist/node/components/SelectEx/SchemaSelectEx.d.ts.map +1 -0
  111. package/dist/node/components/SelectEx/SchemaSelectEx.js +59 -0
  112. package/dist/node/components/SelectEx/SchemaSelectEx.js.map +1 -0
  113. package/dist/node/components/SelectEx/SchemaSelectEx.mjs +35 -0
  114. package/dist/node/components/SelectEx/SchemaSelectEx.mjs.map +1 -0
  115. package/dist/node/components/SelectEx/index.d.mts +2 -0
  116. package/dist/node/components/SelectEx/index.d.mts.map +1 -0
  117. package/dist/node/components/SelectEx/index.d.ts +2 -0
  118. package/dist/node/components/SelectEx/index.d.ts.map +1 -0
  119. package/dist/node/components/SelectEx/index.js +23 -0
  120. package/dist/node/components/SelectEx/index.js.map +1 -0
  121. package/dist/node/components/SelectEx/index.mjs +2 -0
  122. package/dist/node/components/SelectEx/index.mjs.map +1 -0
  123. package/dist/node/components/index.d.mts +3 -0
  124. package/dist/node/components/index.d.mts.map +1 -0
  125. package/dist/node/components/index.d.ts +3 -0
  126. package/dist/node/components/index.d.ts.map +1 -0
  127. package/dist/node/components/index.js +25 -0
  128. package/dist/node/components/index.js.map +1 -0
  129. package/dist/node/components/index.mjs +3 -0
  130. package/dist/node/components/index.mjs.map +1 -0
  131. package/dist/node/contexts/Schema/Context.d.mts +4 -0
  132. package/dist/node/contexts/Schema/Context.d.mts.map +1 -0
  133. package/dist/node/contexts/Schema/Context.d.ts +4 -0
  134. package/dist/node/contexts/Schema/Context.d.ts.map +1 -0
  135. package/dist/node/contexts/Schema/Context.js +30 -0
  136. package/dist/node/contexts/Schema/Context.js.map +1 -0
  137. package/dist/node/contexts/Schema/Context.mjs +6 -0
  138. package/dist/node/contexts/Schema/Context.mjs.map +1 -0
  139. package/dist/node/contexts/Schema/Provider/Memory.d.mts +5 -0
  140. package/dist/node/contexts/Schema/Provider/Memory.d.mts.map +1 -0
  141. package/dist/node/contexts/Schema/Provider/Memory.d.ts +5 -0
  142. package/dist/node/contexts/Schema/Provider/Memory.d.ts.map +1 -0
  143. package/dist/node/contexts/Schema/Provider/Memory.js +45 -0
  144. package/dist/node/contexts/Schema/Provider/Memory.js.map +1 -0
  145. package/dist/node/contexts/Schema/Provider/Memory.mjs +21 -0
  146. package/dist/node/contexts/Schema/Provider/Memory.mjs.map +1 -0
  147. package/dist/node/contexts/Schema/Provider/Props.d.mts +5 -0
  148. package/dist/node/contexts/Schema/Provider/Props.d.mts.map +1 -0
  149. package/dist/node/contexts/Schema/Provider/Props.d.ts +5 -0
  150. package/dist/node/contexts/Schema/Provider/Props.d.ts.map +1 -0
  151. package/dist/node/contexts/Schema/Provider/Props.js +17 -0
  152. package/dist/node/contexts/Schema/Provider/Props.js.map +1 -0
  153. package/dist/node/contexts/Schema/Provider/Props.mjs +1 -0
  154. package/dist/node/contexts/Schema/Provider/Props.mjs.map +1 -0
  155. package/dist/node/contexts/Schema/Provider/Route.d.mts +5 -0
  156. package/dist/node/contexts/Schema/Provider/Route.d.mts.map +1 -0
  157. package/dist/node/contexts/Schema/Provider/Route.d.ts +5 -0
  158. package/dist/node/contexts/Schema/Provider/Route.d.ts.map +1 -0
  159. package/dist/node/contexts/Schema/Provider/Route.js +71 -0
  160. package/dist/node/contexts/Schema/Provider/Route.js.map +1 -0
  161. package/dist/node/contexts/Schema/Provider/Route.mjs +47 -0
  162. package/dist/node/contexts/Schema/Provider/Route.mjs.map +1 -0
  163. package/dist/node/contexts/Schema/Provider/index.d.mts +4 -0
  164. package/dist/node/contexts/Schema/Provider/index.d.mts.map +1 -0
  165. package/dist/node/contexts/Schema/Provider/index.d.ts +4 -0
  166. package/dist/node/contexts/Schema/Provider/index.d.ts.map +1 -0
  167. package/dist/node/contexts/Schema/Provider/index.js +27 -0
  168. package/dist/node/contexts/Schema/Provider/index.js.map +1 -0
  169. package/dist/node/contexts/Schema/Provider/index.mjs +4 -0
  170. package/dist/node/contexts/Schema/Provider/index.mjs.map +1 -0
  171. package/dist/node/contexts/Schema/State.d.mts +13 -0
  172. package/dist/node/contexts/Schema/State.d.mts.map +1 -0
  173. package/dist/node/contexts/Schema/State.d.ts +13 -0
  174. package/dist/node/contexts/Schema/State.d.ts.map +1 -0
  175. package/dist/node/contexts/Schema/State.js +17 -0
  176. package/dist/node/contexts/Schema/State.js.map +1 -0
  177. package/dist/node/contexts/Schema/State.mjs +1 -0
  178. package/dist/node/contexts/Schema/State.mjs.map +1 -0
  179. package/dist/node/contexts/Schema/index.d.mts +5 -0
  180. package/dist/node/contexts/Schema/index.d.mts.map +1 -0
  181. package/dist/node/contexts/Schema/index.d.ts +5 -0
  182. package/dist/node/contexts/Schema/index.d.ts.map +1 -0
  183. package/dist/node/contexts/Schema/index.js +29 -0
  184. package/dist/node/contexts/Schema/index.js.map +1 -0
  185. package/dist/node/contexts/Schema/index.mjs +5 -0
  186. package/dist/node/contexts/Schema/index.mjs.map +1 -0
  187. package/dist/node/contexts/Schema/use.d.mts +3 -0
  188. package/dist/node/contexts/Schema/use.d.mts.map +1 -0
  189. package/dist/node/contexts/Schema/use.d.ts +3 -0
  190. package/dist/node/contexts/Schema/use.d.ts.map +1 -0
  191. package/dist/node/contexts/Schema/use.js +33 -0
  192. package/dist/node/contexts/Schema/use.js.map +1 -0
  193. package/dist/node/contexts/Schema/use.mjs +9 -0
  194. package/dist/node/contexts/Schema/use.mjs.map +1 -0
  195. package/dist/node/contexts/index.d.mts +2 -0
  196. package/dist/node/contexts/index.d.mts.map +1 -0
  197. package/dist/node/contexts/index.d.ts +2 -0
  198. package/dist/node/contexts/index.d.ts.map +1 -0
  199. package/dist/node/contexts/index.js +23 -0
  200. package/dist/node/contexts/index.js.map +1 -0
  201. package/dist/node/contexts/index.mjs +2 -0
  202. package/dist/node/contexts/index.mjs.map +1 -0
  203. package/dist/node/hooks/index.d.mts +5 -0
  204. package/dist/node/hooks/index.d.mts.map +1 -0
  205. package/dist/node/hooks/index.d.ts +5 -0
  206. package/dist/node/hooks/index.d.ts.map +1 -0
  207. package/dist/node/hooks/index.js +29 -0
  208. package/dist/node/hooks/index.js.map +1 -0
  209. package/dist/node/hooks/index.mjs +5 -0
  210. package/dist/node/hooks/index.mjs.map +1 -0
  211. package/dist/node/hooks/stories/TestSchemaHooks.stories.js +89 -0
  212. package/dist/node/hooks/stories/TestSchemaHooks.stories.js.map +1 -0
  213. package/dist/node/hooks/stories/TestSchemaHooks.stories.mjs +65 -0
  214. package/dist/node/hooks/stories/TestSchemaHooks.stories.mjs.map +1 -0
  215. package/dist/node/hooks/useGetSchema.d.mts +27 -0
  216. package/dist/node/hooks/useGetSchema.d.mts.map +1 -0
  217. package/dist/node/hooks/useGetSchema.d.ts +27 -0
  218. package/dist/node/hooks/useGetSchema.d.ts.map +1 -0
  219. package/dist/node/hooks/useGetSchema.js +71 -0
  220. package/dist/node/hooks/useGetSchema.js.map +1 -0
  221. package/dist/node/hooks/useGetSchema.mjs +47 -0
  222. package/dist/node/hooks/useGetSchema.mjs.map +1 -0
  223. package/dist/node/hooks/useGetSchema.stories.js +98 -0
  224. package/dist/node/hooks/useGetSchema.stories.js.map +1 -0
  225. package/dist/node/hooks/useGetSchema.stories.mjs +63 -0
  226. package/dist/node/hooks/useGetSchema.stories.mjs.map +1 -0
  227. package/dist/node/hooks/useSchemaDefinitions.d.mts +6 -0
  228. package/dist/node/hooks/useSchemaDefinitions.d.mts.map +1 -0
  229. package/dist/node/hooks/useSchemaDefinitions.d.ts +6 -0
  230. package/dist/node/hooks/useSchemaDefinitions.d.ts.map +1 -0
  231. package/dist/node/hooks/useSchemaDefinitions.js +49 -0
  232. package/dist/node/hooks/useSchemaDefinitions.js.map +1 -0
  233. package/dist/node/hooks/useSchemaDefinitions.mjs +25 -0
  234. package/dist/node/hooks/useSchemaDefinitions.mjs.map +1 -0
  235. package/dist/node/hooks/useSchemaList.d.mts +3 -0
  236. package/dist/node/hooks/useSchemaList.d.mts.map +1 -0
  237. package/dist/node/hooks/useSchemaList.d.ts +3 -0
  238. package/dist/node/hooks/useSchemaList.d.ts.map +1 -0
  239. package/dist/node/hooks/useSchemaList.js +71 -0
  240. package/dist/node/hooks/useSchemaList.js.map +1 -0
  241. package/dist/node/hooks/useSchemaList.mjs +47 -0
  242. package/dist/node/hooks/useSchemaList.mjs.map +1 -0
  243. package/dist/node/hooks/useSchemaStats.d.mts +4 -0
  244. package/dist/node/hooks/useSchemaStats.d.mts.map +1 -0
  245. package/dist/node/hooks/useSchemaStats.d.ts +4 -0
  246. package/dist/node/hooks/useSchemaStats.d.ts.map +1 -0
  247. package/dist/node/hooks/useSchemaStats.js +73 -0
  248. package/dist/node/hooks/useSchemaStats.js.map +1 -0
  249. package/dist/node/hooks/useSchemaStats.mjs +49 -0
  250. package/dist/node/hooks/useSchemaStats.mjs.map +1 -0
  251. package/dist/node/index.d.mts +4 -0
  252. package/dist/node/index.d.mts.map +1 -0
  253. package/dist/node/index.d.ts +4 -0
  254. package/dist/node/index.d.ts.map +1 -0
  255. package/dist/node/index.js +27 -0
  256. package/dist/node/index.js.map +1 -0
  257. package/dist/node/index.mjs +4 -0
  258. package/dist/node/index.mjs.map +1 -0
  259. package/package.json +37 -37
  260. package/dist/components/Property/SchemaProperty.d.mts.map +0 -1
  261. package/dist/components/Property/SchemaProperty.d.ts.map +0 -1
  262. package/dist/components/Property/SchemaProperty.stories.d.mts +0 -130
  263. package/dist/components/Property/SchemaProperty.stories.d.mts.map +0 -1
  264. package/dist/components/Property/SchemaProperty.stories.d.ts +0 -130
  265. package/dist/components/Property/SchemaProperty.stories.d.ts.map +0 -1
  266. package/dist/components/Property/index.d.mts.map +0 -1
  267. package/dist/components/Property/index.d.ts.map +0 -1
  268. package/dist/components/SelectEx/SchemaSelectEx.d.mts.map +0 -1
  269. package/dist/components/SelectEx/SchemaSelectEx.d.ts.map +0 -1
  270. package/dist/components/SelectEx/index.d.mts.map +0 -1
  271. package/dist/components/SelectEx/index.d.ts.map +0 -1
  272. package/dist/components/index.d.mts.map +0 -1
  273. package/dist/components/index.d.ts.map +0 -1
  274. package/dist/contexts/Schema/Context.d.mts.map +0 -1
  275. package/dist/contexts/Schema/Context.d.ts.map +0 -1
  276. package/dist/contexts/Schema/Provider/Memory.d.mts.map +0 -1
  277. package/dist/contexts/Schema/Provider/Memory.d.ts.map +0 -1
  278. package/dist/contexts/Schema/Provider/Props.d.mts.map +0 -1
  279. package/dist/contexts/Schema/Provider/Props.d.ts.map +0 -1
  280. package/dist/contexts/Schema/Provider/Route.d.mts.map +0 -1
  281. package/dist/contexts/Schema/Provider/Route.d.ts.map +0 -1
  282. package/dist/contexts/Schema/Provider/index.d.mts.map +0 -1
  283. package/dist/contexts/Schema/Provider/index.d.ts.map +0 -1
  284. package/dist/contexts/Schema/State.d.mts.map +0 -1
  285. package/dist/contexts/Schema/State.d.ts.map +0 -1
  286. package/dist/contexts/Schema/index.d.mts.map +0 -1
  287. package/dist/contexts/Schema/index.d.ts.map +0 -1
  288. package/dist/contexts/Schema/use.d.mts.map +0 -1
  289. package/dist/contexts/Schema/use.d.ts.map +0 -1
  290. package/dist/contexts/index.d.mts.map +0 -1
  291. package/dist/contexts/index.d.ts.map +0 -1
  292. package/dist/hooks/index.d.mts.map +0 -1
  293. package/dist/hooks/index.d.ts.map +0 -1
  294. package/dist/hooks/stories/TestSchemaHooks.stories.d.mts +0 -5
  295. package/dist/hooks/stories/TestSchemaHooks.stories.d.mts.map +0 -1
  296. package/dist/hooks/stories/TestSchemaHooks.stories.d.ts +0 -5
  297. package/dist/hooks/stories/TestSchemaHooks.stories.d.ts.map +0 -1
  298. package/dist/hooks/useGetSchema.d.mts.map +0 -1
  299. package/dist/hooks/useGetSchema.d.ts.map +0 -1
  300. package/dist/hooks/useGetSchema.stories.d.mts +0 -11
  301. package/dist/hooks/useGetSchema.stories.d.mts.map +0 -1
  302. package/dist/hooks/useGetSchema.stories.d.ts +0 -11
  303. package/dist/hooks/useGetSchema.stories.d.ts.map +0 -1
  304. package/dist/hooks/useSchemaDefinitions.d.mts.map +0 -1
  305. package/dist/hooks/useSchemaDefinitions.d.ts.map +0 -1
  306. package/dist/hooks/useSchemaList.d.mts.map +0 -1
  307. package/dist/hooks/useSchemaList.d.ts.map +0 -1
  308. package/dist/hooks/useSchemaStats.d.mts.map +0 -1
  309. package/dist/hooks/useSchemaStats.d.ts.map +0 -1
  310. package/dist/index.d.mts.map +0 -1
  311. package/dist/index.d.ts.map +0 -1
  312. package/dist/index.js +0 -367
  313. package/dist/index.js.map +0 -1
  314. package/dist/index.mjs +0 -331
  315. package/dist/index.mjs.map +0 -1
  316. /package/dist/{components → browser/components}/Property/SchemaProperty.d.mts +0 -0
  317. /package/dist/{components → browser/components}/Property/SchemaProperty.d.ts +0 -0
  318. /package/dist/{components → browser/components}/Property/index.d.mts +0 -0
  319. /package/dist/{components → browser/components}/Property/index.d.ts +0 -0
  320. /package/dist/{components → browser/components}/SelectEx/SchemaSelectEx.d.mts +0 -0
  321. /package/dist/{components → browser/components}/SelectEx/SchemaSelectEx.d.ts +0 -0
  322. /package/dist/{components → browser/components}/SelectEx/index.d.mts +0 -0
  323. /package/dist/{components → browser/components}/SelectEx/index.d.ts +0 -0
  324. /package/dist/{components → browser/components}/index.d.mts +0 -0
  325. /package/dist/{components → browser/components}/index.d.ts +0 -0
  326. /package/dist/{contexts → browser/contexts}/Schema/Context.d.mts +0 -0
  327. /package/dist/{contexts → browser/contexts}/Schema/Context.d.ts +0 -0
  328. /package/dist/{contexts → browser/contexts}/Schema/Provider/Memory.d.mts +0 -0
  329. /package/dist/{contexts → browser/contexts}/Schema/Provider/Memory.d.ts +0 -0
  330. /package/dist/{contexts → browser/contexts}/Schema/Provider/Props.d.mts +0 -0
  331. /package/dist/{contexts → browser/contexts}/Schema/Provider/Props.d.ts +0 -0
  332. /package/dist/{contexts → browser/contexts}/Schema/Provider/Route.d.mts +0 -0
  333. /package/dist/{contexts → browser/contexts}/Schema/Provider/Route.d.ts +0 -0
  334. /package/dist/{contexts → browser/contexts}/Schema/Provider/index.d.mts +0 -0
  335. /package/dist/{contexts → browser/contexts}/Schema/Provider/index.d.ts +0 -0
  336. /package/dist/{contexts → browser/contexts}/Schema/State.d.mts +0 -0
  337. /package/dist/{contexts → browser/contexts}/Schema/State.d.ts +0 -0
  338. /package/dist/{contexts → browser/contexts}/Schema/index.d.mts +0 -0
  339. /package/dist/{contexts → browser/contexts}/Schema/index.d.ts +0 -0
  340. /package/dist/{contexts → browser/contexts}/Schema/use.d.mts +0 -0
  341. /package/dist/{contexts → browser/contexts}/Schema/use.d.ts +0 -0
  342. /package/dist/{contexts → browser/contexts}/index.d.mts +0 -0
  343. /package/dist/{contexts → browser/contexts}/index.d.ts +0 -0
  344. /package/dist/{hooks → browser/hooks}/index.d.mts +0 -0
  345. /package/dist/{hooks → browser/hooks}/index.d.ts +0 -0
  346. /package/dist/{hooks → browser/hooks}/useGetSchema.d.mts +0 -0
  347. /package/dist/{hooks → browser/hooks}/useGetSchema.d.ts +0 -0
  348. /package/dist/{hooks → browser/hooks}/useSchemaDefinitions.d.mts +0 -0
  349. /package/dist/{hooks → browser/hooks}/useSchemaDefinitions.d.ts +0 -0
  350. /package/dist/{hooks → browser/hooks}/useSchemaList.d.mts +0 -0
  351. /package/dist/{hooks → browser/hooks}/useSchemaList.d.ts +0 -0
  352. /package/dist/{hooks → browser/hooks}/useSchemaStats.d.mts +0 -0
  353. /package/dist/{hooks → browser/hooks}/useSchemaStats.d.ts +0 -0
  354. /package/dist/{index.d.mts → browser/index.d.mts} +0 -0
  355. /package/dist/{index.d.ts → browser/index.d.ts} +0 -0
@@ -0,0 +1,17 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var Props_exports = {};
16
+ module.exports = __toCommonJS(Props_exports);
17
+ //# sourceMappingURL=Props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/contexts/Schema/Provider/Props.tsx"],"sourcesContent":["export interface SchemaProviderProps {\n defaultSchema?: string\n knownSchemaList?: string[]\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=Props.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import type { WithChildren } from '@xylabs/react-shared';
3
+ import { SchemaProviderProps } from './Props';
4
+ export declare const SchemaRouteProvider: React.FC<WithChildren<SchemaProviderProps>>;
5
+ //# sourceMappingURL=Route.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Route.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Provider/Route.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAOxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAgD7C,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAM3E,CAAA"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import type { WithChildren } from '@xylabs/react-shared';
3
+ import { SchemaProviderProps } from './Props';
4
+ export declare const SchemaRouteProvider: React.FC<WithChildren<SchemaProviderProps>>;
5
+ //# sourceMappingURL=Route.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Route.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Provider/Route.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAOxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAgD7C,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAM3E,CAAA"}
@@ -0,0 +1,71 @@
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
+ var Route_exports = {};
20
+ __export(Route_exports, {
21
+ SchemaRouteProvider: () => SchemaRouteProvider
22
+ });
23
+ module.exports = __toCommonJS(Route_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_react = require("react");
26
+ var import_react_router_dom = require("react-router-dom");
27
+ var import_Context = require("../Context");
28
+ var import_use = require("../use");
29
+ var import_Memory = require("./Memory");
30
+ const SchemaRouteProviderInner = ({ children }) => {
31
+ const { schema, setSchema, schemaList } = (0, import_use.useSchema)();
32
+ const [params, setParams] = (0, import_react_router_dom.useSearchParams)();
33
+ const routeSchema = params.get("schema");
34
+ const setSchemaParam = (0, import_react.useCallback)(
35
+ (schema2) => {
36
+ if (schema2) {
37
+ params.set("schema", schema2);
38
+ setParams(params, { replace: true });
39
+ setSchema?.(schema2);
40
+ } else {
41
+ params.delete("network");
42
+ }
43
+ },
44
+ [params, setParams, setSchema]
45
+ );
46
+ const setSchemaLocal = (0, import_react.useCallback)(
47
+ (schema2) => {
48
+ setSchemaParam(schema2);
49
+ setSchema?.(schema2);
50
+ },
51
+ [setSchemaParam, setSchema]
52
+ );
53
+ (0, import_react.useEffect)(() => {
54
+ if (routeSchema !== schema) {
55
+ if (routeSchema === void 0 && schema !== void 0) {
56
+ setSchemaLocal(schema);
57
+ } else if (routeSchema) {
58
+ setSchema?.(routeSchema);
59
+ }
60
+ }
61
+ }, [routeSchema, schema, setSchemaParam, setSchema, setSchemaLocal]);
62
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Context.SchemaContext.Provider, { value: { provided: true, schema, schemaList, setSchema: setSchemaLocal }, children });
63
+ };
64
+ const SchemaRouteProvider = ({ knownSchemaList, defaultSchema, ...props }) => {
65
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Memory.SchemaMemoryProvider, { knownSchemaList, defaultSchema, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SchemaRouteProviderInner, { ...props }) });
66
+ };
67
+ // Annotate the CommonJS export names for ESM import in node:
68
+ 0 && (module.exports = {
69
+ SchemaRouteProvider
70
+ });
71
+ //# sourceMappingURL=Route.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/contexts/Schema/Provider/Route.tsx"],"sourcesContent":["import type { WithChildren } from '@xylabs/react-shared'\nimport { useCallback, useEffect } from 'react'\nimport { useSearchParams } from 'react-router-dom'\n\nimport { SchemaContext } from '../Context'\nimport { useSchema } from '../use'\nimport { SchemaMemoryProvider } from './Memory'\nimport { SchemaProviderProps } from './Props'\n\nconst SchemaRouteProviderInner: React.FC<WithChildren> = ({ children }) => {\n const { schema, setSchema, schemaList } = useSchema()\n\n const [params, setParams] = useSearchParams()\n\n const routeSchema = params.get('schema')\n\n //update the network stored in the route\n const setSchemaParam = useCallback(\n (schema?: string) => {\n if (schema) {\n params.set('schema', schema)\n setParams(params, { replace: true })\n setSchema?.(schema)\n } else {\n params.delete('network')\n }\n },\n [params, setParams, setSchema],\n )\n\n //if the network is actively changed, update both memory and route\n const setSchemaLocal = useCallback(\n (schema: string) => {\n setSchemaParam(schema)\n setSchema?.(schema)\n },\n [setSchemaParam, setSchema],\n )\n\n //sync memory and route storage of network\n useEffect(() => {\n if (routeSchema !== schema) {\n if (routeSchema === undefined && schema !== undefined) {\n //if the route does not have a network selected, use what is in the memory context\n setSchemaLocal(schema)\n } else if (routeSchema) {\n //if the route has a selection and it is different from memory, update memory\n setSchema?.(routeSchema)\n }\n }\n }, [routeSchema, schema, setSchemaParam, setSchema, setSchemaLocal])\n\n return <SchemaContext.Provider value={{ provided: true, schema, schemaList, setSchema: setSchemaLocal }}>{children}</SchemaContext.Provider>\n}\n\nexport const SchemaRouteProvider: React.FC<WithChildren<SchemaProviderProps>> = ({ knownSchemaList, defaultSchema, ...props }) => {\n return (\n <SchemaMemoryProvider knownSchemaList={knownSchemaList} defaultSchema={defaultSchema}>\n <SchemaRouteProviderInner {...props} />\n </SchemaMemoryProvider>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAoDS;AAnDT,mBAAuC;AACvC,8BAAgC;AAEhC,qBAA8B;AAC9B,iBAA0B;AAC1B,oBAAqC;AAGrC,MAAM,2BAAmD,CAAC,EAAE,SAAS,MAAM;AACzE,QAAM,EAAE,QAAQ,WAAW,WAAW,QAAI,sBAAU;AAEpD,QAAM,CAAC,QAAQ,SAAS,QAAI,yCAAgB;AAE5C,QAAM,cAAc,OAAO,IAAI,QAAQ;AAGvC,QAAM,qBAAiB;AAAA,IACrB,CAACA,YAAoB;AACnB,UAAIA,SAAQ;AACV,eAAO,IAAI,UAAUA,OAAM;AAC3B,kBAAU,QAAQ,EAAE,SAAS,KAAK,CAAC;AACnC,oBAAYA,OAAM;AAAA,MACpB,OAAO;AACL,eAAO,OAAO,SAAS;AAAA,MACzB;AAAA,IACF;AAAA,IACA,CAAC,QAAQ,WAAW,SAAS;AAAA,EAC/B;AAGA,QAAM,qBAAiB;AAAA,IACrB,CAACA,YAAmB;AAClB,qBAAeA,OAAM;AACrB,kBAAYA,OAAM;AAAA,IACpB;AAAA,IACA,CAAC,gBAAgB,SAAS;AAAA,EAC5B;AAGA,8BAAU,MAAM;AACd,QAAI,gBAAgB,QAAQ;AAC1B,UAAI,gBAAgB,UAAa,WAAW,QAAW;AAErD,uBAAe,MAAM;AAAA,MACvB,WAAW,aAAa;AAEtB,oBAAY,WAAW;AAAA,MACzB;AAAA,IACF;AAAA,EACF,GAAG,CAAC,aAAa,QAAQ,gBAAgB,WAAW,cAAc,CAAC;AAEnE,SAAO,4CAAC,6BAAc,UAAd,EAAuB,OAAO,EAAE,UAAU,MAAM,QAAQ,YAAY,WAAW,eAAe,GAAI,UAAS;AACrH;AAEO,MAAM,sBAAmE,CAAC,EAAE,iBAAiB,eAAe,GAAG,MAAM,MAAM;AAChI,SACE,4CAAC,sCAAqB,iBAAkC,eACtD,sDAAC,4BAA0B,GAAG,OAAO,GACvC;AAEJ;","names":["schema"]}
@@ -0,0 +1,47 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useCallback, useEffect } from "react";
3
+ import { useSearchParams } from "react-router-dom";
4
+ import { SchemaContext } from "../Context";
5
+ import { useSchema } from "../use";
6
+ import { SchemaMemoryProvider } from "./Memory";
7
+ const SchemaRouteProviderInner = ({ children }) => {
8
+ const { schema, setSchema, schemaList } = useSchema();
9
+ const [params, setParams] = useSearchParams();
10
+ const routeSchema = params.get("schema");
11
+ const setSchemaParam = useCallback(
12
+ (schema2) => {
13
+ if (schema2) {
14
+ params.set("schema", schema2);
15
+ setParams(params, { replace: true });
16
+ setSchema?.(schema2);
17
+ } else {
18
+ params.delete("network");
19
+ }
20
+ },
21
+ [params, setParams, setSchema]
22
+ );
23
+ const setSchemaLocal = useCallback(
24
+ (schema2) => {
25
+ setSchemaParam(schema2);
26
+ setSchema?.(schema2);
27
+ },
28
+ [setSchemaParam, setSchema]
29
+ );
30
+ useEffect(() => {
31
+ if (routeSchema !== schema) {
32
+ if (routeSchema === void 0 && schema !== void 0) {
33
+ setSchemaLocal(schema);
34
+ } else if (routeSchema) {
35
+ setSchema?.(routeSchema);
36
+ }
37
+ }
38
+ }, [routeSchema, schema, setSchemaParam, setSchema, setSchemaLocal]);
39
+ return /* @__PURE__ */ jsx(SchemaContext.Provider, { value: { provided: true, schema, schemaList, setSchema: setSchemaLocal }, children });
40
+ };
41
+ const SchemaRouteProvider = ({ knownSchemaList, defaultSchema, ...props }) => {
42
+ return /* @__PURE__ */ jsx(SchemaMemoryProvider, { knownSchemaList, defaultSchema, children: /* @__PURE__ */ jsx(SchemaRouteProviderInner, { ...props }) });
43
+ };
44
+ export {
45
+ SchemaRouteProvider
46
+ };
47
+ //# sourceMappingURL=Route.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/contexts/Schema/Provider/Route.tsx"],"sourcesContent":["import type { WithChildren } from '@xylabs/react-shared'\nimport { useCallback, useEffect } from 'react'\nimport { useSearchParams } from 'react-router-dom'\n\nimport { SchemaContext } from '../Context'\nimport { useSchema } from '../use'\nimport { SchemaMemoryProvider } from './Memory'\nimport { SchemaProviderProps } from './Props'\n\nconst SchemaRouteProviderInner: React.FC<WithChildren> = ({ children }) => {\n const { schema, setSchema, schemaList } = useSchema()\n\n const [params, setParams] = useSearchParams()\n\n const routeSchema = params.get('schema')\n\n //update the network stored in the route\n const setSchemaParam = useCallback(\n (schema?: string) => {\n if (schema) {\n params.set('schema', schema)\n setParams(params, { replace: true })\n setSchema?.(schema)\n } else {\n params.delete('network')\n }\n },\n [params, setParams, setSchema],\n )\n\n //if the network is actively changed, update both memory and route\n const setSchemaLocal = useCallback(\n (schema: string) => {\n setSchemaParam(schema)\n setSchema?.(schema)\n },\n [setSchemaParam, setSchema],\n )\n\n //sync memory and route storage of network\n useEffect(() => {\n if (routeSchema !== schema) {\n if (routeSchema === undefined && schema !== undefined) {\n //if the route does not have a network selected, use what is in the memory context\n setSchemaLocal(schema)\n } else if (routeSchema) {\n //if the route has a selection and it is different from memory, update memory\n setSchema?.(routeSchema)\n }\n }\n }, [routeSchema, schema, setSchemaParam, setSchema, setSchemaLocal])\n\n return <SchemaContext.Provider value={{ provided: true, schema, schemaList, setSchema: setSchemaLocal }}>{children}</SchemaContext.Provider>\n}\n\nexport const SchemaRouteProvider: React.FC<WithChildren<SchemaProviderProps>> = ({ knownSchemaList, defaultSchema, ...props }) => {\n return (\n <SchemaMemoryProvider knownSchemaList={knownSchemaList} defaultSchema={defaultSchema}>\n <SchemaRouteProviderInner {...props} />\n </SchemaMemoryProvider>\n )\n}\n"],"mappings":"AAoDS;AAnDT,SAAS,aAAa,iBAAiB;AACvC,SAAS,uBAAuB;AAEhC,SAAS,qBAAqB;AAC9B,SAAS,iBAAiB;AAC1B,SAAS,4BAA4B;AAGrC,MAAM,2BAAmD,CAAC,EAAE,SAAS,MAAM;AACzE,QAAM,EAAE,QAAQ,WAAW,WAAW,IAAI,UAAU;AAEpD,QAAM,CAAC,QAAQ,SAAS,IAAI,gBAAgB;AAE5C,QAAM,cAAc,OAAO,IAAI,QAAQ;AAGvC,QAAM,iBAAiB;AAAA,IACrB,CAACA,YAAoB;AACnB,UAAIA,SAAQ;AACV,eAAO,IAAI,UAAUA,OAAM;AAC3B,kBAAU,QAAQ,EAAE,SAAS,KAAK,CAAC;AACnC,oBAAYA,OAAM;AAAA,MACpB,OAAO;AACL,eAAO,OAAO,SAAS;AAAA,MACzB;AAAA,IACF;AAAA,IACA,CAAC,QAAQ,WAAW,SAAS;AAAA,EAC/B;AAGA,QAAM,iBAAiB;AAAA,IACrB,CAACA,YAAmB;AAClB,qBAAeA,OAAM;AACrB,kBAAYA,OAAM;AAAA,IACpB;AAAA,IACA,CAAC,gBAAgB,SAAS;AAAA,EAC5B;AAGA,YAAU,MAAM;AACd,QAAI,gBAAgB,QAAQ;AAC1B,UAAI,gBAAgB,UAAa,WAAW,QAAW;AAErD,uBAAe,MAAM;AAAA,MACvB,WAAW,aAAa;AAEtB,oBAAY,WAAW;AAAA,MACzB;AAAA,IACF;AAAA,EACF,GAAG,CAAC,aAAa,QAAQ,gBAAgB,WAAW,cAAc,CAAC;AAEnE,SAAO,oBAAC,cAAc,UAAd,EAAuB,OAAO,EAAE,UAAU,MAAM,QAAQ,YAAY,WAAW,eAAe,GAAI,UAAS;AACrH;AAEO,MAAM,sBAAmE,CAAC,EAAE,iBAAiB,eAAe,GAAG,MAAM,MAAM;AAChI,SACE,oBAAC,wBAAqB,iBAAkC,eACtD,8BAAC,4BAA0B,GAAG,OAAO,GACvC;AAEJ;","names":["schema"]}
@@ -0,0 +1,4 @@
1
+ export * from './Memory';
2
+ export * from './Props';
3
+ export * from './Route';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Provider/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './Memory';
2
+ export * from './Props';
3
+ export * from './Route';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/contexts/Schema/Provider/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
@@ -0,0 +1,27 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+ var Provider_exports = {};
17
+ module.exports = __toCommonJS(Provider_exports);
18
+ __reExport(Provider_exports, require("./Memory"), module.exports);
19
+ __reExport(Provider_exports, require("./Props"), module.exports);
20
+ __reExport(Provider_exports, require("./Route"), module.exports);
21
+ // Annotate the CommonJS export names for ESM import in node:
22
+ 0 && (module.exports = {
23
+ ...require("./Memory"),
24
+ ...require("./Props"),
25
+ ...require("./Route")
26
+ });
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/contexts/Schema/Provider/index.ts"],"sourcesContent":["export * from './Memory'\nexport * from './Props'\nexport * from './Route'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,6BAAc,qBAAd;AACA,6BAAc,oBADd;AAEA,6BAAc,oBAFd;","names":[]}
@@ -0,0 +1,4 @@
1
+ export * from "./Memory";
2
+ export * from "./Props";
3
+ export * from "./Route";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/contexts/Schema/Provider/index.ts"],"sourcesContent":["export * from './Memory'\nexport * from './Props'\nexport * from './Route'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
@@ -0,0 +1,13 @@
1
+ import { ContextExState } from '@xyo-network/react-shared';
2
+ import { Dispatch } from 'react';
3
+ export interface SchemaContextState extends ContextExState {
4
+ /** @field The currently selected XYO Schema */
5
+ schema?: string;
6
+ /** @field The list of known available schema */
7
+ schemaList?: string[];
8
+ /** @field Function to set the selected Schema */
9
+ setSchema?: Dispatch<string>;
10
+ /** @field Function to set the list of known available schema */
11
+ setSchemaList?: Dispatch<string[]>;
12
+ }
13
+ //# sourceMappingURL=State.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Schema/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,iDAAiD;IACjD,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IAC5B,gEAAgE;IAChE,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAA;CACnC"}
@@ -0,0 +1,13 @@
1
+ import { ContextExState } from '@xyo-network/react-shared';
2
+ import { Dispatch } from 'react';
3
+ export interface SchemaContextState extends ContextExState {
4
+ /** @field The currently selected XYO Schema */
5
+ schema?: string;
6
+ /** @field The list of known available schema */
7
+ schemaList?: string[];
8
+ /** @field Function to set the selected Schema */
9
+ setSchema?: Dispatch<string>;
10
+ /** @field Function to set the list of known available schema */
11
+ setSchemaList?: Dispatch<string[]>;
12
+ }
13
+ //# sourceMappingURL=State.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Schema/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,iDAAiD;IACjD,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;IAC5B,gEAAgE;IAChE,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAA;CACnC"}
@@ -0,0 +1,17 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var State_exports = {};
16
+ module.exports = __toCommonJS(State_exports);
17
+ //# sourceMappingURL=State.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/contexts/Schema/State.ts"],"sourcesContent":["import { ContextExState } from '@xyo-network/react-shared'\nimport { Dispatch } from 'react'\n\nexport interface SchemaContextState extends ContextExState {\n /** @field The currently selected XYO Schema */\n schema?: string\n /** @field The list of known available schema */\n schemaList?: string[]\n /** @field Function to set the selected Schema */\n setSchema?: Dispatch<string>\n /** @field Function to set the list of known available schema */\n setSchemaList?: Dispatch<string[]>\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=State.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,5 @@
1
+ export * from './Context';
2
+ export * from './Provider';
3
+ export * from './State';
4
+ export * from './use';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * from './Context';
2
+ export * from './Provider';
3
+ export * from './State';
4
+ export * from './use';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
@@ -0,0 +1,29 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+ var Schema_exports = {};
17
+ module.exports = __toCommonJS(Schema_exports);
18
+ __reExport(Schema_exports, require("./Context"), module.exports);
19
+ __reExport(Schema_exports, require("./Provider"), module.exports);
20
+ __reExport(Schema_exports, require("./State"), module.exports);
21
+ __reExport(Schema_exports, require("./use"), module.exports);
22
+ // Annotate the CommonJS export names for ESM import in node:
23
+ 0 && (module.exports = {
24
+ ...require("./Context"),
25
+ ...require("./Provider"),
26
+ ...require("./State"),
27
+ ...require("./use")
28
+ });
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/contexts/Schema/index.ts"],"sourcesContent":["export * from './Context'\nexport * from './Provider'\nexport * from './State'\nexport * from './use'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,2BAAc,sBAAd;AACA,2BAAc,uBADd;AAEA,2BAAc,oBAFd;AAGA,2BAAc,kBAHd;","names":[]}
@@ -0,0 +1,5 @@
1
+ export * from "./Context";
2
+ export * from "./Provider";
3
+ export * from "./State";
4
+ export * from "./use";
5
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/contexts/Schema/index.ts"],"sourcesContent":["export * from './Context'\nexport * from './Provider'\nexport * from './State'\nexport * from './use'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
@@ -0,0 +1,3 @@
1
+ import { SchemaContextState } from './State';
2
+ export declare const useSchema: (required?: boolean) => Omit<SchemaContextState, "provided">;
3
+ //# sourceMappingURL=use.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Schema/use.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,eAAO,MAAM,SAAS,8DAErB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { SchemaContextState } from './State';
2
+ export declare const useSchema: (required?: boolean) => Omit<SchemaContextState, "provided">;
3
+ //# sourceMappingURL=use.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/Schema/use.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,eAAO,MAAM,SAAS,8DAErB,CAAA"}
@@ -0,0 +1,33 @@
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
+ var use_exports = {};
20
+ __export(use_exports, {
21
+ useSchema: () => useSchema
22
+ });
23
+ module.exports = __toCommonJS(use_exports);
24
+ var import_react_shared = require("@xyo-network/react-shared");
25
+ var import_Context = require("./Context");
26
+ const useSchema = (required = false) => {
27
+ return (0, import_react_shared.useContextEx)(import_Context.SchemaContext, "Schema", required);
28
+ };
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ useSchema
32
+ });
33
+ //# sourceMappingURL=use.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/contexts/Schema/use.ts"],"sourcesContent":["import { useContextEx } from '@xyo-network/react-shared'\n\nimport { SchemaContext } from './Context'\nimport { SchemaContextState } from './State'\n\nexport const useSchema = (required = false) => {\n return useContextEx<SchemaContextState>(SchemaContext, 'Schema', required)\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA6B;AAE7B,qBAA8B;AAGvB,MAAM,YAAY,CAAC,WAAW,UAAU;AAC7C,aAAO,kCAAiC,8BAAe,UAAU,QAAQ;AAC3E;","names":[]}
@@ -0,0 +1,9 @@
1
+ import { useContextEx } from "@xyo-network/react-shared";
2
+ import { SchemaContext } from "./Context";
3
+ const useSchema = (required = false) => {
4
+ return useContextEx(SchemaContext, "Schema", required);
5
+ };
6
+ export {
7
+ useSchema
8
+ };
9
+ //# sourceMappingURL=use.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/contexts/Schema/use.ts"],"sourcesContent":["import { useContextEx } from '@xyo-network/react-shared'\n\nimport { SchemaContext } from './Context'\nimport { SchemaContextState } from './State'\n\nexport const useSchema = (required = false) => {\n return useContextEx<SchemaContextState>(SchemaContext, 'Schema', required)\n}\n"],"mappings":"AAAA,SAAS,oBAAoB;AAE7B,SAAS,qBAAqB;AAGvB,MAAM,YAAY,CAAC,WAAW,UAAU;AAC7C,SAAO,aAAiC,eAAe,UAAU,QAAQ;AAC3E;","names":[]}
@@ -0,0 +1,2 @@
1
+ export * from './Schema';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './Schema';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
@@ -0,0 +1,23 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+ var contexts_exports = {};
17
+ module.exports = __toCommonJS(contexts_exports);
18
+ __reExport(contexts_exports, require("./Schema"), module.exports);
19
+ // Annotate the CommonJS export names for ESM import in node:
20
+ 0 && (module.exports = {
21
+ ...require("./Schema")
22
+ });
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/contexts/index.ts"],"sourcesContent":["export * from './Schema'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,6BAAc,qBAAd;","names":[]}
@@ -0,0 +1,2 @@
1
+ export * from "./Schema";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/contexts/index.ts"],"sourcesContent":["export * from './Schema'\n"],"mappings":"AAAA,cAAc;","names":[]}
@@ -0,0 +1,5 @@
1
+ export * from './useGetSchema';
2
+ export * from './useSchemaDefinitions';
3
+ export * from './useSchemaList';
4
+ export * from './useSchemaStats';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * from './useGetSchema';
2
+ export * from './useSchemaDefinitions';
3
+ export * from './useSchemaList';
4
+ export * from './useSchemaStats';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1,29 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+ var hooks_exports = {};
17
+ module.exports = __toCommonJS(hooks_exports);
18
+ __reExport(hooks_exports, require("./useGetSchema"), module.exports);
19
+ __reExport(hooks_exports, require("./useSchemaDefinitions"), module.exports);
20
+ __reExport(hooks_exports, require("./useSchemaList"), module.exports);
21
+ __reExport(hooks_exports, require("./useSchemaStats"), module.exports);
22
+ // Annotate the CommonJS export names for ESM import in node:
23
+ 0 && (module.exports = {
24
+ ...require("./useGetSchema"),
25
+ ...require("./useSchemaDefinitions"),
26
+ ...require("./useSchemaList"),
27
+ ...require("./useSchemaStats")
28
+ });
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/hooks/index.ts"],"sourcesContent":["export * from './useGetSchema'\nexport * from './useSchemaDefinitions'\nexport * from './useSchemaList'\nexport * from './useSchemaStats'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,2BAAd;AACA,0BAAc,mCADd;AAEA,0BAAc,4BAFd;AAGA,0BAAc,6BAHd;","names":[]}
@@ -0,0 +1,5 @@
1
+ export * from "./useGetSchema";
2
+ export * from "./useSchemaDefinitions";
3
+ export * from "./useSchemaList";
4
+ export * from "./useSchemaStats";
5
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/hooks/index.ts"],"sourcesContent":["export * from './useGetSchema'\nexport * from './useSchemaDefinitions'\nexport * from './useSchemaList'\nexport * from './useSchemaStats'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}