@dwidge/json-forms-expo 0.0.2

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 (301) hide show
  1. package/LICENSE +23 -0
  2. package/README.md +30 -0
  3. package/dist/cjs/FileAttachment/AttachmentEdit.js +14 -0
  4. package/dist/cjs/FileAttachment/AttachmentEdit.js.map +1 -0
  5. package/dist/cjs/FileAttachment/AttachmentListEdit.js +21 -0
  6. package/dist/cjs/FileAttachment/AttachmentListEdit.js.map +1 -0
  7. package/dist/cjs/FileAttachment/AttachmentListView.js +13 -0
  8. package/dist/cjs/FileAttachment/AttachmentListView.js.map +1 -0
  9. package/dist/cjs/FileAttachment/AttachmentScreen.js +14 -0
  10. package/dist/cjs/FileAttachment/AttachmentScreen.js.map +1 -0
  11. package/dist/cjs/FileAttachment/AttachmentView.js +14 -0
  12. package/dist/cjs/FileAttachment/AttachmentView.js.map +1 -0
  13. package/dist/cjs/FileAttachment/index.js +24 -0
  14. package/dist/cjs/FileAttachment/index.js.map +1 -0
  15. package/dist/cjs/FileAttachment/useFileAttachmentUrl.js +12 -0
  16. package/dist/cjs/FileAttachment/useFileAttachmentUrl.js.map +1 -0
  17. package/dist/cjs/FileAttachment/useFileUrl.js +11 -0
  18. package/dist/cjs/FileAttachment/useFileUrl.js.map +1 -0
  19. package/dist/cjs/Form/EditFormAttachmentScreen.js +61 -0
  20. package/dist/cjs/Form/EditFormAttachmentScreen.js.map +1 -0
  21. package/dist/cjs/Form/FormEdit.js +12 -0
  22. package/dist/cjs/Form/FormEdit.js.map +1 -0
  23. package/dist/cjs/Form/FormEditScreen.js +29 -0
  24. package/dist/cjs/Form/FormEditScreen.js.map +1 -0
  25. package/dist/cjs/Form/FormListEdit.js +22 -0
  26. package/dist/cjs/Form/FormListEdit.js.map +1 -0
  27. package/dist/cjs/Form/FormListScreen.js +28 -0
  28. package/dist/cjs/Form/FormListScreen.js.map +1 -0
  29. package/dist/cjs/Form/FormListView.js +18 -0
  30. package/dist/cjs/Form/FormListView.js.map +1 -0
  31. package/dist/cjs/Form/FormSelectScreen.js +21 -0
  32. package/dist/cjs/Form/FormSelectScreen.js.map +1 -0
  33. package/dist/cjs/Form/FormSelectView.js +16 -0
  34. package/dist/cjs/Form/FormSelectView.js.map +1 -0
  35. package/dist/cjs/Form/FormView.js +12 -0
  36. package/dist/cjs/Form/FormView.js.map +1 -0
  37. package/dist/cjs/Form/index.js +26 -0
  38. package/dist/cjs/Form/index.js.map +1 -0
  39. package/dist/cjs/FormAttachment/FormAttachmentEdit.js +30 -0
  40. package/dist/cjs/FormAttachment/FormAttachmentEdit.js.map +1 -0
  41. package/dist/cjs/FormAttachment/FormAttachmentEditScreen.js +15 -0
  42. package/dist/cjs/FormAttachment/FormAttachmentEditScreen.js.map +1 -0
  43. package/dist/cjs/FormAttachment/FormAttachmentListEdit.js +27 -0
  44. package/dist/cjs/FormAttachment/FormAttachmentListEdit.js.map +1 -0
  45. package/dist/cjs/FormAttachment/FormAttachmentListScreen.js +31 -0
  46. package/dist/cjs/FormAttachment/FormAttachmentListScreen.js.map +1 -0
  47. package/dist/cjs/FormAttachment/FormAttachmentListView.js +21 -0
  48. package/dist/cjs/FormAttachment/FormAttachmentListView.js.map +1 -0
  49. package/dist/cjs/FormAttachment/FormAttachmentView.js +15 -0
  50. package/dist/cjs/FormAttachment/FormAttachmentView.js.map +1 -0
  51. package/dist/cjs/FormAttachment/index.js +23 -0
  52. package/dist/cjs/FormAttachment/index.js.map +1 -0
  53. package/dist/cjs/hooks/FileApi.js +15 -0
  54. package/dist/cjs/hooks/FileApi.js.map +1 -0
  55. package/dist/cjs/hooks/FileAttachmentApi.js +13 -0
  56. package/dist/cjs/hooks/FileAttachmentApi.js.map +1 -0
  57. package/dist/cjs/hooks/FormApi.js +13 -0
  58. package/dist/cjs/hooks/FormApi.js.map +1 -0
  59. package/dist/cjs/hooks/FormAttachmentApi.js +12 -0
  60. package/dist/cjs/hooks/FormAttachmentApi.js.map +1 -0
  61. package/dist/cjs/hooks/FormsContext.js +30 -0
  62. package/dist/cjs/hooks/FormsContext.js.map +1 -0
  63. package/dist/cjs/hooks/createApi.js +40 -0
  64. package/dist/cjs/hooks/createApi.js.map +1 -0
  65. package/dist/cjs/hooks/index.js +27 -0
  66. package/dist/cjs/hooks/index.js.map +1 -0
  67. package/dist/cjs/hooks/useCreateBlankAttachment.js +21 -0
  68. package/dist/cjs/hooks/useCreateBlankAttachment.js.map +1 -0
  69. package/dist/cjs/hooks/useCreateBlankForm.js +12 -0
  70. package/dist/cjs/hooks/useCreateBlankForm.js.map +1 -0
  71. package/dist/cjs/hooks/useCreateBlankFormAttachment.js +14 -0
  72. package/dist/cjs/hooks/useCreateBlankFormAttachment.js.map +1 -0
  73. package/dist/cjs/hooks/useParams.js +8 -0
  74. package/dist/cjs/hooks/useParams.js.map +1 -0
  75. package/dist/cjs/index.js +22 -0
  76. package/dist/cjs/index.js.map +1 -0
  77. package/dist/cjs/package.json +3 -0
  78. package/dist/cjs/types/File2.js +3 -0
  79. package/dist/cjs/types/File2.js.map +1 -0
  80. package/dist/cjs/types/FileAttachment.js +3 -0
  81. package/dist/cjs/types/FileAttachment.js.map +1 -0
  82. package/dist/cjs/types/Form1.js +3 -0
  83. package/dist/cjs/types/Form1.js.map +1 -0
  84. package/dist/cjs/types/FormAttachment.js +3 -0
  85. package/dist/cjs/types/FormAttachment.js.map +1 -0
  86. package/dist/cjs/types/index.js +21 -0
  87. package/dist/cjs/types/index.js.map +1 -0
  88. package/dist/esm/FileAttachment/AttachmentEdit.js +10 -0
  89. package/dist/esm/FileAttachment/AttachmentEdit.js.map +1 -0
  90. package/dist/esm/FileAttachment/AttachmentListEdit.js +14 -0
  91. package/dist/esm/FileAttachment/AttachmentListEdit.js.map +1 -0
  92. package/dist/esm/FileAttachment/AttachmentListView.js +9 -0
  93. package/dist/esm/FileAttachment/AttachmentListView.js.map +1 -0
  94. package/dist/esm/FileAttachment/AttachmentScreen.js +10 -0
  95. package/dist/esm/FileAttachment/AttachmentScreen.js.map +1 -0
  96. package/dist/esm/FileAttachment/AttachmentView.js +10 -0
  97. package/dist/esm/FileAttachment/AttachmentView.js.map +1 -0
  98. package/dist/esm/FileAttachment/index.js +8 -0
  99. package/dist/esm/FileAttachment/index.js.map +1 -0
  100. package/dist/esm/FileAttachment/useFileAttachmentUrl.js +8 -0
  101. package/dist/esm/FileAttachment/useFileAttachmentUrl.js.map +1 -0
  102. package/dist/esm/FileAttachment/useFileUrl.js +7 -0
  103. package/dist/esm/FileAttachment/useFileUrl.js.map +1 -0
  104. package/dist/esm/Form/EditFormAttachmentScreen.js +57 -0
  105. package/dist/esm/Form/EditFormAttachmentScreen.js.map +1 -0
  106. package/dist/esm/Form/FormEdit.js +8 -0
  107. package/dist/esm/Form/FormEdit.js.map +1 -0
  108. package/dist/esm/Form/FormEditScreen.js +25 -0
  109. package/dist/esm/Form/FormEditScreen.js.map +1 -0
  110. package/dist/esm/Form/FormListEdit.js +15 -0
  111. package/dist/esm/Form/FormListEdit.js.map +1 -0
  112. package/dist/esm/Form/FormListScreen.js +24 -0
  113. package/dist/esm/Form/FormListScreen.js.map +1 -0
  114. package/dist/esm/Form/FormListView.js +11 -0
  115. package/dist/esm/Form/FormListView.js.map +1 -0
  116. package/dist/esm/Form/FormSelectScreen.js +17 -0
  117. package/dist/esm/Form/FormSelectScreen.js.map +1 -0
  118. package/dist/esm/Form/FormSelectView.js +12 -0
  119. package/dist/esm/Form/FormSelectView.js.map +1 -0
  120. package/dist/esm/Form/FormView.js +8 -0
  121. package/dist/esm/Form/FormView.js.map +1 -0
  122. package/dist/esm/Form/index.js +10 -0
  123. package/dist/esm/Form/index.js.map +1 -0
  124. package/dist/esm/FormAttachment/FormAttachmentEdit.js +26 -0
  125. package/dist/esm/FormAttachment/FormAttachmentEdit.js.map +1 -0
  126. package/dist/esm/FormAttachment/FormAttachmentEditScreen.js +11 -0
  127. package/dist/esm/FormAttachment/FormAttachmentEditScreen.js.map +1 -0
  128. package/dist/esm/FormAttachment/FormAttachmentListEdit.js +20 -0
  129. package/dist/esm/FormAttachment/FormAttachmentListEdit.js.map +1 -0
  130. package/dist/esm/FormAttachment/FormAttachmentListScreen.js +27 -0
  131. package/dist/esm/FormAttachment/FormAttachmentListScreen.js.map +1 -0
  132. package/dist/esm/FormAttachment/FormAttachmentListView.js +14 -0
  133. package/dist/esm/FormAttachment/FormAttachmentListView.js.map +1 -0
  134. package/dist/esm/FormAttachment/FormAttachmentView.js +11 -0
  135. package/dist/esm/FormAttachment/FormAttachmentView.js.map +1 -0
  136. package/dist/esm/FormAttachment/index.js +7 -0
  137. package/dist/esm/FormAttachment/index.js.map +1 -0
  138. package/dist/esm/hooks/FileApi.js +12 -0
  139. package/dist/esm/hooks/FileApi.js.map +1 -0
  140. package/dist/esm/hooks/FileAttachmentApi.js +10 -0
  141. package/dist/esm/hooks/FileAttachmentApi.js.map +1 -0
  142. package/dist/esm/hooks/FormApi.js +10 -0
  143. package/dist/esm/hooks/FormApi.js.map +1 -0
  144. package/dist/esm/hooks/FormAttachmentApi.js +9 -0
  145. package/dist/esm/hooks/FormAttachmentApi.js.map +1 -0
  146. package/dist/esm/hooks/FormsContext.js +26 -0
  147. package/dist/esm/hooks/FormsContext.js.map +1 -0
  148. package/dist/esm/hooks/createApi.js +36 -0
  149. package/dist/esm/hooks/createApi.js.map +1 -0
  150. package/dist/esm/hooks/index.js +11 -0
  151. package/dist/esm/hooks/index.js.map +1 -0
  152. package/dist/esm/hooks/useCreateBlankAttachment.js +14 -0
  153. package/dist/esm/hooks/useCreateBlankAttachment.js.map +1 -0
  154. package/dist/esm/hooks/useCreateBlankForm.js +8 -0
  155. package/dist/esm/hooks/useCreateBlankForm.js.map +1 -0
  156. package/dist/esm/hooks/useCreateBlankFormAttachment.js +10 -0
  157. package/dist/esm/hooks/useCreateBlankFormAttachment.js.map +1 -0
  158. package/dist/esm/hooks/useParams.js +4 -0
  159. package/dist/esm/hooks/useParams.js.map +1 -0
  160. package/dist/esm/index.js +6 -0
  161. package/dist/esm/index.js.map +1 -0
  162. package/dist/esm/package.json +3 -0
  163. package/dist/esm/types/File2.js +2 -0
  164. package/dist/esm/types/File2.js.map +1 -0
  165. package/dist/esm/types/FileAttachment.js +2 -0
  166. package/dist/esm/types/FileAttachment.js.map +1 -0
  167. package/dist/esm/types/Form1.js +2 -0
  168. package/dist/esm/types/Form1.js.map +1 -0
  169. package/dist/esm/types/FormAttachment.js +2 -0
  170. package/dist/esm/types/FormAttachment.js.map +1 -0
  171. package/dist/esm/types/index.js +5 -0
  172. package/dist/esm/types/index.js.map +1 -0
  173. package/dist/tsconfig.cjs.tsbuildinfo +1 -0
  174. package/dist/tsconfig.tsbuildinfo +1 -0
  175. package/dist/types/FileAttachment/AttachmentEdit.d.ts +6 -0
  176. package/dist/types/FileAttachment/AttachmentEdit.d.ts.map +1 -0
  177. package/dist/types/FileAttachment/AttachmentListEdit.d.ts +9 -0
  178. package/dist/types/FileAttachment/AttachmentListEdit.d.ts.map +1 -0
  179. package/dist/types/FileAttachment/AttachmentListView.d.ts +9 -0
  180. package/dist/types/FileAttachment/AttachmentListView.d.ts.map +1 -0
  181. package/dist/types/FileAttachment/AttachmentScreen.d.ts +8 -0
  182. package/dist/types/FileAttachment/AttachmentScreen.d.ts.map +1 -0
  183. package/dist/types/FileAttachment/AttachmentView.d.ts +6 -0
  184. package/dist/types/FileAttachment/AttachmentView.d.ts.map +1 -0
  185. package/dist/types/FileAttachment/index.d.ts +8 -0
  186. package/dist/types/FileAttachment/index.d.ts.map +1 -0
  187. package/dist/types/FileAttachment/useFileAttachmentUrl.d.ts +2 -0
  188. package/dist/types/FileAttachment/useFileAttachmentUrl.d.ts.map +1 -0
  189. package/dist/types/FileAttachment/useFileUrl.d.ts +2 -0
  190. package/dist/types/FileAttachment/useFileUrl.d.ts.map +1 -0
  191. package/dist/types/Form/EditFormAttachmentScreen.d.ts +40 -0
  192. package/dist/types/Form/EditFormAttachmentScreen.d.ts.map +1 -0
  193. package/dist/types/Form/FormEdit.d.ts +4 -0
  194. package/dist/types/Form/FormEdit.d.ts.map +1 -0
  195. package/dist/types/Form/FormEditScreen.d.ts +4 -0
  196. package/dist/types/Form/FormEditScreen.d.ts.map +1 -0
  197. package/dist/types/Form/FormListEdit.d.ts +6 -0
  198. package/dist/types/Form/FormListEdit.d.ts.map +1 -0
  199. package/dist/types/Form/FormListScreen.d.ts +8 -0
  200. package/dist/types/Form/FormListScreen.d.ts.map +1 -0
  201. package/dist/types/Form/FormListView.d.ts +5 -0
  202. package/dist/types/Form/FormListView.d.ts.map +1 -0
  203. package/dist/types/Form/FormSelectScreen.d.ts +6 -0
  204. package/dist/types/Form/FormSelectScreen.d.ts.map +1 -0
  205. package/dist/types/Form/FormSelectView.d.ts +8 -0
  206. package/dist/types/Form/FormSelectView.d.ts.map +1 -0
  207. package/dist/types/Form/FormView.d.ts +5 -0
  208. package/dist/types/Form/FormView.d.ts.map +1 -0
  209. package/dist/types/Form/index.d.ts +10 -0
  210. package/dist/types/Form/index.d.ts.map +1 -0
  211. package/dist/types/FormAttachment/FormAttachmentEdit.d.ts +9 -0
  212. package/dist/types/FormAttachment/FormAttachmentEdit.d.ts.map +1 -0
  213. package/dist/types/FormAttachment/FormAttachmentEditScreen.d.ts +5 -0
  214. package/dist/types/FormAttachment/FormAttachmentEditScreen.d.ts.map +1 -0
  215. package/dist/types/FormAttachment/FormAttachmentListEdit.d.ts +11 -0
  216. package/dist/types/FormAttachment/FormAttachmentListEdit.d.ts.map +1 -0
  217. package/dist/types/FormAttachment/FormAttachmentListScreen.d.ts +7 -0
  218. package/dist/types/FormAttachment/FormAttachmentListScreen.d.ts.map +1 -0
  219. package/dist/types/FormAttachment/FormAttachmentListView.d.ts +5 -0
  220. package/dist/types/FormAttachment/FormAttachmentListView.d.ts.map +1 -0
  221. package/dist/types/FormAttachment/FormAttachmentView.d.ts +6 -0
  222. package/dist/types/FormAttachment/FormAttachmentView.d.ts.map +1 -0
  223. package/dist/types/FormAttachment/index.d.ts +7 -0
  224. package/dist/types/FormAttachment/index.d.ts.map +1 -0
  225. package/dist/types/hooks/FileApi.d.ts +35 -0
  226. package/dist/types/hooks/FileApi.d.ts.map +1 -0
  227. package/dist/types/hooks/FileAttachmentApi.d.ts +35 -0
  228. package/dist/types/hooks/FileAttachmentApi.d.ts.map +1 -0
  229. package/dist/types/hooks/FormApi.d.ts +35 -0
  230. package/dist/types/hooks/FormApi.d.ts.map +1 -0
  231. package/dist/types/hooks/FormAttachmentApi.d.ts +35 -0
  232. package/dist/types/hooks/FormAttachmentApi.d.ts.map +1 -0
  233. package/dist/types/hooks/FormsContext.d.ts +20 -0
  234. package/dist/types/hooks/FormsContext.d.ts.map +1 -0
  235. package/dist/types/hooks/createApi.d.ts +36 -0
  236. package/dist/types/hooks/createApi.d.ts.map +1 -0
  237. package/dist/types/hooks/index.d.ts +11 -0
  238. package/dist/types/hooks/index.d.ts.map +1 -0
  239. package/dist/types/hooks/useCreateBlankAttachment.d.ts +10 -0
  240. package/dist/types/hooks/useCreateBlankAttachment.d.ts.map +1 -0
  241. package/dist/types/hooks/useCreateBlankForm.d.ts +6 -0
  242. package/dist/types/hooks/useCreateBlankForm.d.ts.map +1 -0
  243. package/dist/types/hooks/useCreateBlankFormAttachment.d.ts +13 -0
  244. package/dist/types/hooks/useCreateBlankFormAttachment.d.ts.map +1 -0
  245. package/dist/types/hooks/useParams.d.ts +7 -0
  246. package/dist/types/hooks/useParams.d.ts.map +1 -0
  247. package/dist/types/index.d.ts +6 -0
  248. package/dist/types/index.d.ts.map +1 -0
  249. package/dist/types/types/File2.d.ts +16 -0
  250. package/dist/types/types/File2.d.ts.map +1 -0
  251. package/dist/types/types/FileAttachment.d.ts +10 -0
  252. package/dist/types/types/FileAttachment.d.ts.map +1 -0
  253. package/dist/types/types/Form1.d.ts +14 -0
  254. package/dist/types/types/Form1.d.ts.map +1 -0
  255. package/dist/types/types/FormAttachment.d.ts +13 -0
  256. package/dist/types/types/FormAttachment.d.ts.map +1 -0
  257. package/dist/types/types/index.d.ts +5 -0
  258. package/dist/types/types/index.d.ts.map +1 -0
  259. package/package.json +73 -0
  260. package/src/FileAttachment/AttachmentEdit.tsx +14 -0
  261. package/src/FileAttachment/AttachmentListEdit.tsx +45 -0
  262. package/src/FileAttachment/AttachmentListView.tsx +12 -0
  263. package/src/FileAttachment/AttachmentScreen.tsx +21 -0
  264. package/src/FileAttachment/AttachmentView.tsx +14 -0
  265. package/src/FileAttachment/index.ts +7 -0
  266. package/src/FileAttachment/useFileAttachmentUrl.ts +15 -0
  267. package/src/FileAttachment/useFileUrl.ts +12 -0
  268. package/src/Form/EditFormAttachmentScreen.tsx +101 -0
  269. package/src/Form/FormEdit.tsx +15 -0
  270. package/src/Form/FormEditScreen.tsx +54 -0
  271. package/src/Form/FormListEdit.tsx +32 -0
  272. package/src/Form/FormListScreen.tsx +54 -0
  273. package/src/Form/FormListView.tsx +23 -0
  274. package/src/Form/FormSelectScreen.tsx +49 -0
  275. package/src/Form/FormSelectView.tsx +31 -0
  276. package/src/Form/FormView.tsx +11 -0
  277. package/src/Form/index.ts +9 -0
  278. package/src/FormAttachment/FormAttachmentEdit.tsx +72 -0
  279. package/src/FormAttachment/FormAttachmentEditScreen.tsx +21 -0
  280. package/src/FormAttachment/FormAttachmentListEdit.tsx +40 -0
  281. package/src/FormAttachment/FormAttachmentListScreen.tsx +62 -0
  282. package/src/FormAttachment/FormAttachmentListView.tsx +30 -0
  283. package/src/FormAttachment/FormAttachmentView.tsx +25 -0
  284. package/src/FormAttachment/index.ts +6 -0
  285. package/src/hooks/FileApi.ts +13 -0
  286. package/src/hooks/FileAttachmentApi.ts +11 -0
  287. package/src/hooks/FormApi.ts +11 -0
  288. package/src/hooks/FormAttachmentApi.ts +10 -0
  289. package/src/hooks/FormsContext.ts +29 -0
  290. package/src/hooks/createApi.ts +65 -0
  291. package/src/hooks/index.ts +10 -0
  292. package/src/hooks/useCreateBlankAttachment.ts +24 -0
  293. package/src/hooks/useCreateBlankForm.ts +12 -0
  294. package/src/hooks/useCreateBlankFormAttachment.ts +20 -0
  295. package/src/hooks/useParams.ts +9 -0
  296. package/src/index.ts +5 -0
  297. package/src/types/File2.ts +19 -0
  298. package/src/types/FileAttachment.ts +9 -0
  299. package/src/types/Form1.ts +17 -0
  300. package/src/types/FormAttachment.ts +19 -0
  301. package/src/types/index.ts +4 -0
@@ -0,0 +1,17 @@
1
+ export type Form1 = {
2
+ id: string;
3
+ created: boolean;
4
+ createdAt: number;
5
+ createdBy: number | null;
6
+ name: string | null;
7
+ type: string | null;
8
+ schema: string | null;
9
+ };
10
+
11
+ export type Form1Get = Partial<Form1>;
12
+
13
+ export type Form1Set = Omit<Form1Get, "createdAt" | "createdBy">;
14
+
15
+ export type Form1Key = Pick<Form1Get, "id">;
16
+
17
+ export type Form1Filter = Form1Get;
@@ -0,0 +1,19 @@
1
+ export type FormAttachment1 = {
2
+ id: string;
3
+ created: boolean;
4
+ createdAt: number;
5
+ createdBy: number | null;
6
+ FormId: string | null;
7
+ data: string | null;
8
+ };
9
+
10
+ export type FormAttachment1Get = Partial<FormAttachment1>;
11
+
12
+ export type FormAttachment1Set = Omit<
13
+ FormAttachment1Get,
14
+ "createdAt" | "createdBy"
15
+ >;
16
+
17
+ export type FormAttachment1Key = Pick<FormAttachment1Get, "id">;
18
+
19
+ export type FormAttachment1Filter = FormAttachment1Get;
@@ -0,0 +1,4 @@
1
+ export * from "./File2";
2
+ export * from "./FileAttachment";
3
+ export * from "./Form1";
4
+ export * from "./FormAttachment";