@powerhousedao/common 1.1.2-dev.0 → 1.2.1

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 (479) hide show
  1. package/dist/editors/generic-drive-explorer/components/create-document.d.ts +4 -3
  2. package/dist/editors/generic-drive-explorer/components/create-document.d.ts.map +1 -0
  3. package/dist/editors/generic-drive-explorer/components/create-document.js +14 -0
  4. package/dist/editors/generic-drive-explorer/components/file-content-view.d.ts +2 -1
  5. package/dist/editors/generic-drive-explorer/components/file-content-view.d.ts.map +1 -0
  6. package/dist/editors/generic-drive-explorer/components/file-content-view.js +78 -0
  7. package/dist/editors/generic-drive-explorer/components/folder-view.d.ts +3 -2
  8. package/dist/editors/generic-drive-explorer/components/folder-view.d.ts.map +1 -0
  9. package/dist/editors/generic-drive-explorer/components/folder-view.js +29 -0
  10. package/dist/editors/generic-drive-explorer/components/layout.d.ts +2 -1
  11. package/dist/editors/generic-drive-explorer/components/layout.d.ts.map +1 -0
  12. package/dist/editors/generic-drive-explorer/components/layout.js +20 -0
  13. package/dist/editors/generic-drive-explorer/components/search-bar.d.ts +1 -0
  14. package/dist/editors/generic-drive-explorer/components/search-bar.d.ts.map +1 -0
  15. package/dist/editors/generic-drive-explorer/components/search-bar.js +36 -0
  16. package/dist/editors/generic-drive-explorer/editor.d.ts +9 -3
  17. package/dist/editors/generic-drive-explorer/editor.d.ts.map +1 -0
  18. package/dist/editors/generic-drive-explorer/editor.js +41 -0
  19. package/dist/editors/generic-drive-explorer/generic-drive-explorer.stories.d.ts +6 -0
  20. package/dist/editors/generic-drive-explorer/generic-drive-explorer.stories.d.ts.map +1 -0
  21. package/dist/editors/generic-drive-explorer/generic-drive-explorer.stories.js +9 -0
  22. package/dist/editors/generic-drive-explorer/index.d.ts +4 -4
  23. package/dist/editors/generic-drive-explorer/index.d.ts.map +1 -0
  24. package/dist/editors/generic-drive-explorer/index.js +11 -0
  25. package/dist/editors/index.d.ts +2 -1
  26. package/dist/editors/index.d.ts.map +1 -0
  27. package/dist/editors/index.js +1 -0
  28. package/dist/editors/utils/index.d.ts +3 -1
  29. package/dist/editors/utils/index.d.ts.map +1 -0
  30. package/dist/editors/utils/index.js +6 -0
  31. package/dist/editors/utils/storybook.d.ts +9 -8
  32. package/dist/editors/utils/storybook.d.ts.map +1 -0
  33. package/dist/editors/utils/storybook.js +71 -0
  34. package/dist/editors/utils/uiNodes.d.ts +3 -2
  35. package/dist/editors/utils/uiNodes.d.ts.map +1 -0
  36. package/dist/editors/utils/uiNodes.js +67 -0
  37. package/dist/index.d.ts +2 -6
  38. package/dist/index.d.ts.map +1 -0
  39. package/dist/index.js +1 -0
  40. package/dist/package.json +71 -0
  41. package/dist/tsconfig.tsbuildinfo +1 -0
  42. package/package.json +29 -93
  43. package/README.md +0 -79
  44. package/dist/.storybook/addons/operations-preset.d.ts +0 -5
  45. package/dist/.storybook/addons/operations.d.ts +0 -1
  46. package/dist/.storybook/create-require.d.ts +0 -1
  47. package/dist/.storybook/main.d.ts +0 -3
  48. package/dist/.storybook/preview.d.ts +0 -4
  49. package/dist/cjs/document-drive.js +0 -131
  50. package/dist/cjs/documentModels.js +0 -1
  51. package/dist/cjs/editors/generic-drive-explorer/editor.js +0 -44
  52. package/dist/cjs/editors/generic-drive-explorer.js +0 -1
  53. package/dist/cjs/editors/hooks.js +0 -1
  54. package/dist/cjs/editors/utils.js +0 -1
  55. package/dist/cjs/editors.js +0 -1
  56. package/dist/cjs/index.js +0 -1
  57. package/dist/cjs/internal/ArrowFilledRight-CdLnbh1Z.js +0 -1
  58. package/dist/cjs/internal/ArrowFilledRight-blx8xu7X-CdLnbh1Z.js +0 -1
  59. package/dist/cjs/internal/ArrowLeft-7pYNK4eX-BztSD5MZ.js +0 -1
  60. package/dist/cjs/internal/ArrowLeft-BztSD5MZ.js +0 -1
  61. package/dist/cjs/internal/ArrowUp-Bbr_dwo_-CdLNuupd.js +0 -1
  62. package/dist/cjs/internal/ArrowUp-CdLNuupd.js +0 -1
  63. package/dist/cjs/internal/BarChart-B0G05Nfd-Dp2lrDt7.js +0 -1
  64. package/dist/cjs/internal/BarChart-Dp2lrDt7.js +0 -1
  65. package/dist/cjs/internal/BaseArrowLeft-BIaGoVNm.js +0 -1
  66. package/dist/cjs/internal/BaseArrowLeft-DBzhFHMt-BIaGoVNm.js +0 -1
  67. package/dist/cjs/internal/BaseArrowRight-BNaqDq8l.js +0 -1
  68. package/dist/cjs/internal/BaseArrowRight-DYQTBWAs-BNaqDq8l.js +0 -1
  69. package/dist/cjs/internal/Braces-N-sH2Zyc-whWd44n5.js +0 -1
  70. package/dist/cjs/internal/Braces-whWd44n5.js +0 -1
  71. package/dist/cjs/internal/Branch-CWdBw1_P-CjqDp6ik.js +0 -1
  72. package/dist/cjs/internal/Branch-DBMUq7Be.js +0 -1
  73. package/dist/cjs/internal/BrickGlobe-67zaG6_H-BPZSrRw1.js +0 -1
  74. package/dist/cjs/internal/BrickGlobe-BPZSrRw1.js +0 -1
  75. package/dist/cjs/internal/Briefcase-CBiNfrHx.js +0 -1
  76. package/dist/cjs/internal/Briefcase-CedW3KRR-CBiNfrHx.js +0 -1
  77. package/dist/cjs/internal/Calendar-C-6HV96D-RADpqN-a.js +0 -1
  78. package/dist/cjs/internal/Calendar-RADpqN-a.js +0 -1
  79. package/dist/cjs/internal/CalendarTime-B6dVE3Vo.js +0 -1
  80. package/dist/cjs/internal/CalendarTime-Bhjzlgn_-B6dVE3Vo.js +0 -1
  81. package/dist/cjs/internal/Caret-BDrIFTBr.js +0 -1
  82. package/dist/cjs/internal/Caret-Ep0j0fz2-BDrIFTBr.js +0 -1
  83. package/dist/cjs/internal/CaretDown-3X7LFYBf-D7RPxYu9.js +0 -1
  84. package/dist/cjs/internal/CaretDown-BvCn0Fhz.js +0 -1
  85. package/dist/cjs/internal/CaretLeft-DFUDq9-g.js +0 -1
  86. package/dist/cjs/internal/CaretLeft-Df3E-68c-DFUDq9-g.js +0 -1
  87. package/dist/cjs/internal/CaretRight-BeYC8ztL.js +0 -1
  88. package/dist/cjs/internal/CaretRight-DSVWUSka-BeYC8ztL.js +0 -1
  89. package/dist/cjs/internal/CaretSort-BWLKg0-u.js +0 -1
  90. package/dist/cjs/internal/CaretSort-BkGdLETT-BWLKg0-u.js +0 -1
  91. package/dist/cjs/internal/Check-13fDRXgb.js +0 -1
  92. package/dist/cjs/internal/Check-DV-U4AEq-13fDRXgb.js +0 -1
  93. package/dist/cjs/internal/CheckCircle-DA-pntuz.js +0 -1
  94. package/dist/cjs/internal/CheckCircle-DI5fEgGd-DA-pntuz.js +0 -1
  95. package/dist/cjs/internal/CheckCircleFill-BFKFsxnE.js +0 -1
  96. package/dist/cjs/internal/CheckCircleFill-C-F0v5mB-BFKFsxnE.js +0 -1
  97. package/dist/cjs/internal/Checkmark-BXnfChpo-DvsdRf2A.js +0 -1
  98. package/dist/cjs/internal/Checkmark-QDhJ9UXt.js +0 -1
  99. package/dist/cjs/internal/ChevronDown-B70QTNR0.js +0 -1
  100. package/dist/cjs/internal/ChevronDown-ouBxrU-k-B70QTNR0.js +0 -1
  101. package/dist/cjs/internal/Circle-DS-uCgZl.js +0 -1
  102. package/dist/cjs/internal/Circle-n3-Wh4HS-DS-uCgZl.js +0 -1
  103. package/dist/cjs/internal/CircleInfo-BhZY3C2Q-CmV_bLmA.js +0 -1
  104. package/dist/cjs/internal/CircleInfo-CmV_bLmA.js +0 -1
  105. package/dist/cjs/internal/Clock-CH2JbdvU.js +0 -1
  106. package/dist/cjs/internal/Clock-DF-XMxha-CH2JbdvU.js +0 -1
  107. package/dist/cjs/internal/ClockFill-Bd0t48q7-CQr2Duwk.js +0 -1
  108. package/dist/cjs/internal/ClockFill-CQr2Duwk.js +0 -1
  109. package/dist/cjs/internal/CloudSlash-B-zJBjaD-KU5Kt4X9.js +0 -1
  110. package/dist/cjs/internal/CloudSlash-KU5Kt4X9.js +0 -1
  111. package/dist/cjs/internal/Collapse-DRDB8Czs-DsoRMkTq.js +0 -1
  112. package/dist/cjs/internal/Collapse-DsoRMkTq.js +0 -1
  113. package/dist/cjs/internal/Connect-Dme-qfKq-BXXoOOed.js +0 -1
  114. package/dist/cjs/internal/Connect-eAdo4Hx7.js +0 -1
  115. package/dist/cjs/internal/Copy-ldv4c9St.js +0 -1
  116. package/dist/cjs/internal/Copy-ms9-7m7Y-ldv4c9St.js +0 -1
  117. package/dist/cjs/internal/CrossCircle-B6ZawoOx-D4Y7qdTL.js +0 -1
  118. package/dist/cjs/internal/CrossCircle-D4Y7qdTL.js +0 -1
  119. package/dist/cjs/internal/Danger-7OjLDAVm.js +0 -1
  120. package/dist/cjs/internal/Danger-KM8BZjue-7OjLDAVm.js +0 -1
  121. package/dist/cjs/internal/Discord-CAS0Cj7s-iahYwFTC.js +0 -1
  122. package/dist/cjs/internal/Discord-Wf7xMoMt.js +0 -1
  123. package/dist/cjs/internal/Drive-BrH7tOs6.js +0 -1
  124. package/dist/cjs/internal/Drive-GMcgBcIY-BrH7tOs6.js +0 -1
  125. package/dist/cjs/internal/Edit-Dr-ZiMSE-NazSGvo6.js +0 -1
  126. package/dist/cjs/internal/Edit-NazSGvo6.js +0 -1
  127. package/dist/cjs/internal/Ellipsis-DP4-vVHS.js +0 -1
  128. package/dist/cjs/internal/Ellipsis-XK8AwMEC-DP4-vVHS.js +0 -1
  129. package/dist/cjs/internal/Error-BmIZ2ZUy-DelEjl70.js +0 -1
  130. package/dist/cjs/internal/Error-DelEjl70.js +0 -1
  131. package/dist/cjs/internal/Exclamation-CVsNS_QS-DkJ3N2VN.js +0 -1
  132. package/dist/cjs/internal/Exclamation-DkJ3N2VN.js +0 -1
  133. package/dist/cjs/internal/File-Ba7ClyaL-KirmxIxE.js +0 -1
  134. package/dist/cjs/internal/File-CJn8SgPd.js +0 -1
  135. package/dist/cjs/internal/FilesEarmark-CyrCQy8E-D9EnVh63.js +0 -1
  136. package/dist/cjs/internal/FilesEarmark-D9EnVh63.js +0 -1
  137. package/dist/cjs/internal/FolderClose-BzvCVJY3.js +0 -1
  138. package/dist/cjs/internal/FolderClose-DG_qHisc-BzvCVJY3.js +0 -1
  139. package/dist/cjs/internal/FolderOpen-i7EPaNAk.js +0 -1
  140. package/dist/cjs/internal/FolderOpen-kDoWFkJO-i7EPaNAk.js +0 -1
  141. package/dist/cjs/internal/FolderPlus-B6YUoFOs.js +0 -1
  142. package/dist/cjs/internal/FolderPlus-CSBSl9lZ-B6YUoFOs.js +0 -1
  143. package/dist/cjs/internal/Forum-DAbn_E5Z.js +0 -1
  144. package/dist/cjs/internal/Forum-DZ-CkLFh-DAbn_E5Z.js +0 -1
  145. package/dist/cjs/internal/Gear-DX2SO77Q.js +0 -1
  146. package/dist/cjs/internal/Gear-cUlHJ4q6-DX2SO77Q.js +0 -1
  147. package/dist/cjs/internal/Github-0PLiINY0-CMo5f5Uh.js +0 -1
  148. package/dist/cjs/internal/Github-CMo5f5Uh.js +0 -1
  149. package/dist/cjs/internal/Globe-B3_r4w92.js +0 -1
  150. package/dist/cjs/internal/Globe-CIYqVkpa-DUO0S1vM.js +0 -1
  151. package/dist/cjs/internal/GlobeWww-DN4yKujh-DRIzLSOr.js +0 -1
  152. package/dist/cjs/internal/GlobeWww-DRIzLSOr.js +0 -1
  153. package/dist/cjs/internal/Hdd-Bpvk6UZo.js +0 -1
  154. package/dist/cjs/internal/Hdd-Dn_LdJIh-Bpvk6UZo.js +0 -1
  155. package/dist/cjs/internal/History-BP4SmaS_-DWAoZ0qu.js +0 -1
  156. package/dist/cjs/internal/History-DWAoZ0qu.js +0 -1
  157. package/dist/cjs/internal/InfoSquare-C98JaLiz-lX0uwCIK.js +0 -1
  158. package/dist/cjs/internal/InfoSquare-lX0uwCIK.js +0 -1
  159. package/dist/cjs/internal/Link-BF7aZjVu-DDK6dy_M.js +0 -1
  160. package/dist/cjs/internal/Link-DDK6dy_M.js +0 -1
  161. package/dist/cjs/internal/Linkedin-D-nw05lH.js +0 -1
  162. package/dist/cjs/internal/Linkedin-DJwIkS6q-D-nw05lH.js +0 -1
  163. package/dist/cjs/internal/Lock-BaCGsppX.js +0 -1
  164. package/dist/cjs/internal/Lock-PyaFHdNS-BaCGsppX.js +0 -1
  165. package/dist/cjs/internal/M-C5952Ned.js +0 -1
  166. package/dist/cjs/internal/M-DozhhPMY-DjdlgSlF.js +0 -1
  167. package/dist/cjs/internal/PackageManager-5kbgWv3Q.js +0 -1
  168. package/dist/cjs/internal/PackageManager-B-MUWliB-CbEgteCV.js +0 -1
  169. package/dist/cjs/internal/Pencil-C3L3Ly8K.js +0 -1
  170. package/dist/cjs/internal/Pencil-D7lvxXIP-C3L3Ly8K.js +0 -1
  171. package/dist/cjs/internal/People-BXgvyPFn.js +0 -1
  172. package/dist/cjs/internal/People-CUB8LYKf-BXgvyPFn.js +0 -1
  173. package/dist/cjs/internal/Person-BPSmnRXQ.js +0 -1
  174. package/dist/cjs/internal/Person-DuL4PQzm-BPSmnRXQ.js +0 -1
  175. package/dist/cjs/internal/Pin-BRoQkCvO.js +0 -1
  176. package/dist/cjs/internal/Pin-DF70btCU-BRoQkCvO.js +0 -1
  177. package/dist/cjs/internal/PinFilled-D0PwF9B7.js +0 -1
  178. package/dist/cjs/internal/PinFilled-vImzS0do-D0PwF9B7.js +0 -1
  179. package/dist/cjs/internal/Plus-2ZPocFkI.js +0 -1
  180. package/dist/cjs/internal/Plus-DPFWGJM4-2ZPocFkI.js +0 -1
  181. package/dist/cjs/internal/PlusCircle-BEnWRjHa-dBGCFo8Z.js +0 -1
  182. package/dist/cjs/internal/PlusCircle-dBGCFo8Z.js +0 -1
  183. package/dist/cjs/internal/PlusSquare-CspgRMoS-DHDOhi18.js +0 -1
  184. package/dist/cjs/internal/PlusSquare-DHDOhi18.js +0 -1
  185. package/dist/cjs/internal/PowerhouseLogoSmall-BkeWSejU.js +0 -1
  186. package/dist/cjs/internal/PowerhouseLogoSmall-CmO95IAS-B3j8LIsL.js +0 -1
  187. package/dist/cjs/internal/Project-BlXuclr0-CwWLGxsS.js +0 -1
  188. package/dist/cjs/internal/Project-CwWLGxsS.js +0 -1
  189. package/dist/cjs/internal/QuestionSquare-B6O9Le7r-DP6UBPx-.js +0 -1
  190. package/dist/cjs/internal/QuestionSquare-DP6UBPx-.js +0 -1
  191. package/dist/cjs/internal/RedoArrow-BJeEsiph-BQh40FmN.js +0 -1
  192. package/dist/cjs/internal/RedoArrow-BQh40FmN.js +0 -1
  193. package/dist/cjs/internal/Reload-6C2CYgrl-CunRqieT.js +0 -1
  194. package/dist/cjs/internal/Reload-CunRqieT.js +0 -1
  195. package/dist/cjs/internal/Renown-6m7hx37h-BW3yEx60.js +0 -1
  196. package/dist/cjs/internal/Renown-BW3yEx60.js +0 -1
  197. package/dist/cjs/internal/RenownHover-CQ0TZHZv-CjvedgXl.js +0 -1
  198. package/dist/cjs/internal/RenownHover-CjvedgXl.js +0 -1
  199. package/dist/cjs/internal/Ring-CEDrFwYP.js +0 -1
  200. package/dist/cjs/internal/Ring-DKv0gnwT-CEDrFwYP.js +0 -1
  201. package/dist/cjs/internal/Save-BBxj68pn-xRbrjpPz.js +0 -1
  202. package/dist/cjs/internal/Save-xRbrjpPz.js +0 -1
  203. package/dist/cjs/internal/Search-DNALFhTU.js +0 -1
  204. package/dist/cjs/internal/Search-YUJuRBLe-DNALFhTU.js +0 -1
  205. package/dist/cjs/internal/Server-0eDgVQU0.js +0 -1
  206. package/dist/cjs/internal/Server-Bfkkjui1-0eDgVQU0.js +0 -1
  207. package/dist/cjs/internal/Settings-B7lMxC-8.js +0 -1
  208. package/dist/cjs/internal/Settings-mbbylBS5-B7lMxC-8.js +0 -1
  209. package/dist/cjs/internal/Synced-CU99z-Ii.js +0 -1
  210. package/dist/cjs/internal/Synced-DKJXzPiw-CU99z-Ii.js +0 -1
  211. package/dist/cjs/internal/Syncing-CMj5KzAD.js +0 -1
  212. package/dist/cjs/internal/Syncing-aT9WSMFf-CMj5KzAD.js +0 -1
  213. package/dist/cjs/internal/Trash-CgSbHk-P-DYAdF_5Q.js +0 -1
  214. package/dist/cjs/internal/Trash-DYAdF_5Q.js +0 -1
  215. package/dist/cjs/internal/TrashFill-C5lRRaw7.js +0 -1
  216. package/dist/cjs/internal/TrashFill-DN50ercb-C5lRRaw7.js +0 -1
  217. package/dist/cjs/internal/TreeViewSlash-BywCsx5o-Ct-NDdPW.js +0 -1
  218. package/dist/cjs/internal/TreeViewSlash-Ct-NDdPW.js +0 -1
  219. package/dist/cjs/internal/TriangleDown-DY6WMAzp.js +0 -1
  220. package/dist/cjs/internal/TriangleDown-eCXwUfu8-DY6WMAzp.js +0 -1
  221. package/dist/cjs/internal/VariantArrowLeft-CfcnlV4w.js +0 -1
  222. package/dist/cjs/internal/VariantArrowLeft-CnuX59_e-CfcnlV4w.js +0 -1
  223. package/dist/cjs/internal/VerticalDots-C8QYf7et-OFxqwEbF.js +0 -1
  224. package/dist/cjs/internal/VerticalDots-OFxqwEbF.js +0 -1
  225. package/dist/cjs/internal/WarningFill-CZYtywR5.js +0 -1
  226. package/dist/cjs/internal/WarningFill-WowAvi5P-CZYtywR5.js +0 -1
  227. package/dist/cjs/internal/XTwitter-9YzUU33n.js +0 -1
  228. package/dist/cjs/internal/XTwitter-k3Pt8itk-9YzUU33n.js +0 -1
  229. package/dist/cjs/internal/Xmark-8qnJCs2Y-C6N4PqFZ.js +0 -1
  230. package/dist/cjs/internal/Xmark-C6N4PqFZ.js +0 -1
  231. package/dist/cjs/internal/XmarkLight-GHzDR5_F-v7Izhl-Y.js +0 -1
  232. package/dist/cjs/internal/XmarkLight-v7Izhl-Y.js +0 -1
  233. package/dist/cjs/internal/Youtube-C4bxUqLV.js +0 -1
  234. package/dist/cjs/internal/Youtube-i8V0IXUU-C4bxUqLV.js +0 -1
  235. package/dist/cjs/internal/index-BHFT2wp6.js +0 -1
  236. package/dist/cjs/internal/index-CK624Dud.js +0 -1
  237. package/dist/cjs/package.json +0 -1
  238. package/dist/cjs/storybook.js +0 -345
  239. package/dist/cjs/utils/lazy-with-preload.js +0 -1
  240. package/dist/document-drive.d.ts +0 -2
  241. package/dist/document-models/document-drive/gen/actions.d.ts +0 -5
  242. package/dist/document-models/document-drive/gen/creators.d.ts +0 -2
  243. package/dist/document-models/document-drive/gen/document-model.d.ts +0 -2
  244. package/dist/document-models/document-drive/gen/drive/actions.d.ts +0 -11
  245. package/dist/document-models/document-drive/gen/drive/creators.d.ts +0 -10
  246. package/dist/document-models/document-drive/gen/drive/error.d.ts +0 -1
  247. package/dist/document-models/document-drive/gen/drive/object.d.ts +0 -13
  248. package/dist/document-models/document-drive/gen/drive/operations.d.ts +0 -13
  249. package/dist/document-models/document-drive/gen/index.d.ts +0 -5
  250. package/dist/document-models/document-drive/gen/node/actions.d.ts +0 -10
  251. package/dist/document-models/document-drive/gen/node/creators.d.ts +0 -9
  252. package/dist/document-models/document-drive/gen/node/error.d.ts +0 -1
  253. package/dist/document-models/document-drive/gen/node/object.d.ts +0 -12
  254. package/dist/document-models/document-drive/gen/node/operations.d.ts +0 -12
  255. package/dist/document-models/document-drive/gen/object.d.ts +0 -17
  256. package/dist/document-models/document-drive/gen/reducer.d.ts +0 -3
  257. package/dist/document-models/document-drive/gen/schema/index.d.ts +0 -2
  258. package/dist/document-models/document-drive/gen/schema/types.d.ts +0 -175
  259. package/dist/document-models/document-drive/gen/schema/zod.d.ts +0 -86
  260. package/dist/document-models/document-drive/gen/types.d.ts +0 -8
  261. package/dist/document-models/document-drive/gen/utils.d.ts +0 -6
  262. package/dist/document-models/document-drive/index.d.ts +0 -60
  263. package/dist/document-models/document-drive/src/reducers/drive.d.ts +0 -2
  264. package/dist/document-models/document-drive/src/reducers/node.d.ts +0 -2
  265. package/dist/document-models/document-drive/src/tests/actions.test.d.ts +0 -1
  266. package/dist/document-models/document-drive/src/tests/base.test.d.ts +0 -1
  267. package/dist/document-models/document-drive/src/tests/document-model.test.d.ts +0 -5
  268. package/dist/document-models/document-drive/src/tests/drive.test.d.ts +0 -5
  269. package/dist/document-models/document-drive/src/tests/node.test.d.ts +0 -5
  270. package/dist/document-models/document-drive/src/tests/utils.test.d.ts +0 -1
  271. package/dist/document-models/document-drive/src/utils.d.ts +0 -33
  272. package/dist/document-models/index.d.ts +0 -1
  273. package/dist/documentModels.d.ts +0 -2
  274. package/dist/editors/generic-drive-explorer.d.ts +0 -6
  275. package/dist/editors/hooks/index.d.ts +0 -3
  276. package/dist/editors/hooks/useDriveActions.d.ts +0 -80
  277. package/dist/editors/hooks/useDriveActionsWithUiNodes.d.ts +0 -16
  278. package/dist/editors/hooks/useDriveContext.d.ts +0 -57
  279. package/dist/editors/hooks.d.ts +0 -2
  280. package/dist/editors/utils.d.ts +0 -2
  281. package/dist/editors.d.ts +0 -2
  282. package/dist/es/document-drive.js +0 -4173
  283. package/dist/es/documentModels.js +0 -4
  284. package/dist/es/editors/generic-drive-explorer/editor.js +0 -10487
  285. package/dist/es/editors/generic-drive-explorer.js +0 -15
  286. package/dist/es/editors/hooks.js +0 -7
  287. package/dist/es/editors/utils.js +0 -4
  288. package/dist/es/editors.js +0 -4
  289. package/dist/es/index.js +0 -16
  290. package/dist/es/internal/ArrowFilledRight-blx8xu7X-CeRbq1H9.js +0 -7
  291. package/dist/es/internal/ArrowFilledRight-blx8xu7X.js +0 -7
  292. package/dist/es/internal/ArrowLeft-7pYNK4eX-7pYNK4eX.js +0 -15
  293. package/dist/es/internal/ArrowLeft-7pYNK4eX.js +0 -15
  294. package/dist/es/internal/ArrowUp-Bbr_dwo_-5876i8vu.js +0 -7
  295. package/dist/es/internal/ArrowUp-Bbr_dwo_.js +0 -7
  296. package/dist/es/internal/BarChart-B0G05Nfd-KxM7Dvga.js +0 -7
  297. package/dist/es/internal/BarChart-B0G05Nfd.js +0 -7
  298. package/dist/es/internal/BaseArrowLeft-DBzhFHMt-B42AOfF9.js +0 -7
  299. package/dist/es/internal/BaseArrowLeft-DBzhFHMt.js +0 -7
  300. package/dist/es/internal/BaseArrowRight-DYQTBWAs-y7IfWBCR.js +0 -7
  301. package/dist/es/internal/BaseArrowRight-DYQTBWAs.js +0 -7
  302. package/dist/es/internal/Braces-N-sH2Zyc-N-sH2Zyc.js +0 -17
  303. package/dist/es/internal/Braces-N-sH2Zyc.js +0 -17
  304. package/dist/es/internal/Branch-CWdBw1_P-RCIyyJkm.js +0 -7
  305. package/dist/es/internal/Branch-CWdBw1_P.js +0 -7
  306. package/dist/es/internal/BrickGlobe-67zaG6_H-DzpvMNoP.js +0 -7
  307. package/dist/es/internal/BrickGlobe-67zaG6_H.js +0 -7
  308. package/dist/es/internal/Briefcase-CedW3KRR-5m_tf7kZ.js +0 -7
  309. package/dist/es/internal/Briefcase-CedW3KRR.js +0 -7
  310. package/dist/es/internal/Calendar-C-6HV96D-CW77lPN4.js +0 -7
  311. package/dist/es/internal/Calendar-C-6HV96D.js +0 -7
  312. package/dist/es/internal/CalendarTime-Bhjzlgn_-Dwqtl7S5.js +0 -27
  313. package/dist/es/internal/CalendarTime-Bhjzlgn_.js +0 -27
  314. package/dist/es/internal/Caret-Ep0j0fz2-Sy0mW2fQ.js +0 -7
  315. package/dist/es/internal/Caret-Ep0j0fz2.js +0 -7
  316. package/dist/es/internal/CaretDown-3X7LFYBf-Ds-IOygX.js +0 -14
  317. package/dist/es/internal/CaretDown-3X7LFYBf.js +0 -14
  318. package/dist/es/internal/CaretLeft-Df3E-68c-DIUEps2Y.js +0 -27
  319. package/dist/es/internal/CaretLeft-Df3E-68c.js +0 -27
  320. package/dist/es/internal/CaretRight-DSVWUSka-C-DWrfXy.js +0 -27
  321. package/dist/es/internal/CaretRight-DSVWUSka.js +0 -27
  322. package/dist/es/internal/CaretSort-BkGdLETT-WpazRSDr.js +0 -14
  323. package/dist/es/internal/CaretSort-BkGdLETT.js +0 -14
  324. package/dist/es/internal/Check-DV-U4AEq-C8LS3kCz.js +0 -7
  325. package/dist/es/internal/Check-DV-U4AEq.js +0 -7
  326. package/dist/es/internal/CheckCircle-DI5fEgGd-CTZFiM1C.js +0 -23
  327. package/dist/es/internal/CheckCircle-DI5fEgGd.js +0 -23
  328. package/dist/es/internal/CheckCircleFill-C-F0v5mB-JkGdWGnI.js +0 -7
  329. package/dist/es/internal/CheckCircleFill-C-F0v5mB.js +0 -7
  330. package/dist/es/internal/Checkmark-BXnfChpo-jHcnAiFb.js +0 -14
  331. package/dist/es/internal/Checkmark-BXnfChpo.js +0 -14
  332. package/dist/es/internal/ChevronDown-ouBxrU-k-ouBxrU-k.js +0 -15
  333. package/dist/es/internal/ChevronDown-ouBxrU-k.js +0 -15
  334. package/dist/es/internal/Circle-n3-Wh4HS-n3-Wh4HS.js +0 -7
  335. package/dist/es/internal/Circle-n3-Wh4HS.js +0 -7
  336. package/dist/es/internal/CircleInfo-BhZY3C2Q-C3-X1VlM.js +0 -40
  337. package/dist/es/internal/CircleInfo-BhZY3C2Q.js +0 -40
  338. package/dist/es/internal/Clock-DF-XMxha-DF-XMxha.js +0 -26
  339. package/dist/es/internal/Clock-DF-XMxha.js +0 -26
  340. package/dist/es/internal/ClockFill-Bd0t48q7-lvy1kAho.js +0 -7
  341. package/dist/es/internal/ClockFill-Bd0t48q7.js +0 -7
  342. package/dist/es/internal/CloudSlash-B-zJBjaD-C1F-9lOg.js +0 -7
  343. package/dist/es/internal/CloudSlash-B-zJBjaD.js +0 -7
  344. package/dist/es/internal/Collapse-DRDB8Czs-BekNryES.js +0 -7
  345. package/dist/es/internal/Collapse-DRDB8Czs.js +0 -7
  346. package/dist/es/internal/Connect-Dme-qfKq-IP0_N99W.js +0 -16
  347. package/dist/es/internal/Connect-Dme-qfKq.js +0 -16
  348. package/dist/es/internal/Copy-ms9-7m7Y-ms9-7m7Y.js +0 -14
  349. package/dist/es/internal/Copy-ms9-7m7Y.js +0 -14
  350. package/dist/es/internal/CrossCircle-B6ZawoOx-i2IYK4Vv.js +0 -27
  351. package/dist/es/internal/CrossCircle-B6ZawoOx.js +0 -27
  352. package/dist/es/internal/Danger-KM8BZjue-KM8BZjue.js +0 -18
  353. package/dist/es/internal/Danger-KM8BZjue.js +0 -18
  354. package/dist/es/internal/Discord-CAS0Cj7s-yLPKWGq1.js +0 -31
  355. package/dist/es/internal/Discord-CAS0Cj7s.js +0 -31
  356. package/dist/es/internal/Drive-GMcgBcIY-GMcgBcIY.js +0 -7
  357. package/dist/es/internal/Drive-GMcgBcIY.js +0 -7
  358. package/dist/es/internal/Edit-Dr-ZiMSE-Dr-ZiMSE.js +0 -17
  359. package/dist/es/internal/Edit-Dr-ZiMSE.js +0 -17
  360. package/dist/es/internal/Ellipsis-XK8AwMEC-BxcN5fLL.js +0 -7
  361. package/dist/es/internal/Ellipsis-XK8AwMEC.js +0 -7
  362. package/dist/es/internal/Error-BmIZ2ZUy-CMRuIFZq.js +0 -7
  363. package/dist/es/internal/Error-BmIZ2ZUy.js +0 -7
  364. package/dist/es/internal/Exclamation-CVsNS_QS-C1KPXw1i.js +0 -10
  365. package/dist/es/internal/Exclamation-CVsNS_QS.js +0 -10
  366. package/dist/es/internal/File-Ba7ClyaL-DtY9HGnM.js +0 -24
  367. package/dist/es/internal/File-Ba7ClyaL.js +0 -24
  368. package/dist/es/internal/FilesEarmark-CyrCQy8E-CFdJj_Ef.js +0 -7
  369. package/dist/es/internal/FilesEarmark-CyrCQy8E.js +0 -7
  370. package/dist/es/internal/FolderClose-DG_qHisc-CjzpbiGq.js +0 -13
  371. package/dist/es/internal/FolderClose-DG_qHisc.js +0 -13
  372. package/dist/es/internal/FolderOpen-kDoWFkJO-Bn5p8fQc.js +0 -7
  373. package/dist/es/internal/FolderOpen-kDoWFkJO.js +0 -7
  374. package/dist/es/internal/FolderPlus-CSBSl9lZ-bZtX6Tjv.js +0 -7
  375. package/dist/es/internal/FolderPlus-CSBSl9lZ.js +0 -7
  376. package/dist/es/internal/Forum-DZ-CkLFh-CQZwkSpr.js +0 -22
  377. package/dist/es/internal/Forum-DZ-CkLFh.js +0 -22
  378. package/dist/es/internal/Gear-cUlHJ4q6-xBCayUOx.js +0 -7
  379. package/dist/es/internal/Gear-cUlHJ4q6.js +0 -7
  380. package/dist/es/internal/Github-0PLiINY0-0PLiINY0.js +0 -24
  381. package/dist/es/internal/Github-0PLiINY0.js +0 -24
  382. package/dist/es/internal/Globe-CIYqVkpa-BWKtmqX7.js +0 -7
  383. package/dist/es/internal/Globe-CIYqVkpa.js +0 -7
  384. package/dist/es/internal/GlobeWww-DN4yKujh-DN4yKujh.js +0 -22
  385. package/dist/es/internal/GlobeWww-DN4yKujh.js +0 -22
  386. package/dist/es/internal/Hdd-Dn_LdJIh-rEELfcXk.js +0 -7
  387. package/dist/es/internal/Hdd-Dn_LdJIh.js +0 -7
  388. package/dist/es/internal/History-BP4SmaS_-B3nr_8wA.js +0 -7
  389. package/dist/es/internal/History-BP4SmaS_.js +0 -7
  390. package/dist/es/internal/InfoSquare-C98JaLiz-HKSzAVMC.js +0 -7
  391. package/dist/es/internal/InfoSquare-C98JaLiz.js +0 -7
  392. package/dist/es/internal/Link-BF7aZjVu-BF7aZjVu.js +0 -14
  393. package/dist/es/internal/Link-BF7aZjVu.js +0 -14
  394. package/dist/es/internal/Linkedin-DJwIkS6q-Crs3Irac.js +0 -22
  395. package/dist/es/internal/Linkedin-DJwIkS6q.js +0 -22
  396. package/dist/es/internal/Lock-PyaFHdNS-CjctedsI.js +0 -7
  397. package/dist/es/internal/Lock-PyaFHdNS.js +0 -7
  398. package/dist/es/internal/M-DozhhPMY-DdLfGV1p.js +0 -22
  399. package/dist/es/internal/M-DozhhPMY.js +0 -22
  400. package/dist/es/internal/PackageManager-B-MUWliB-CcDykGr_.js +0 -17
  401. package/dist/es/internal/PackageManager-B-MUWliB.js +0 -17
  402. package/dist/es/internal/Pencil-D7lvxXIP-D7lvxXIP.js +0 -7
  403. package/dist/es/internal/Pencil-D7lvxXIP.js +0 -7
  404. package/dist/es/internal/People-CUB8LYKf-g6-Xfp-P.js +0 -7
  405. package/dist/es/internal/People-CUB8LYKf.js +0 -7
  406. package/dist/es/internal/Person-DuL4PQzm-oe7ryXw3.js +0 -7
  407. package/dist/es/internal/Person-DuL4PQzm.js +0 -7
  408. package/dist/es/internal/Pin-DF70btCU-DF70btCU.js +0 -24
  409. package/dist/es/internal/Pin-DF70btCU.js +0 -24
  410. package/dist/es/internal/PinFilled-vImzS0do-vImzS0do.js +0 -35
  411. package/dist/es/internal/PinFilled-vImzS0do.js +0 -35
  412. package/dist/es/internal/Plus-DPFWGJM4-DzRk_2FJ.js +0 -7
  413. package/dist/es/internal/Plus-DPFWGJM4.js +0 -7
  414. package/dist/es/internal/PlusCircle-BEnWRjHa-DDBhtgAb.js +0 -7
  415. package/dist/es/internal/PlusCircle-BEnWRjHa.js +0 -7
  416. package/dist/es/internal/PlusSquare-CspgRMoS-CspgRMoS.js +0 -24
  417. package/dist/es/internal/PlusSquare-CspgRMoS.js +0 -24
  418. package/dist/es/internal/PowerhouseLogoSmall-CmO95IAS-BE2CSjQW.js +0 -14
  419. package/dist/es/internal/PowerhouseLogoSmall-CmO95IAS.js +0 -14
  420. package/dist/es/internal/Project-BlXuclr0-BlXuclr0.js +0 -7
  421. package/dist/es/internal/Project-BlXuclr0.js +0 -7
  422. package/dist/es/internal/QuestionSquare-B6O9Le7r-B6O9Le7r.js +0 -17
  423. package/dist/es/internal/QuestionSquare-B6O9Le7r.js +0 -17
  424. package/dist/es/internal/RedoArrow-BJeEsiph-DfF6uUVe.js +0 -7
  425. package/dist/es/internal/RedoArrow-BJeEsiph.js +0 -7
  426. package/dist/es/internal/Reload-6C2CYgrl-6C2CYgrl.js +0 -14
  427. package/dist/es/internal/Reload-6C2CYgrl.js +0 -14
  428. package/dist/es/internal/Renown-6m7hx37h-6m7hx37h.js +0 -15
  429. package/dist/es/internal/Renown-6m7hx37h.js +0 -15
  430. package/dist/es/internal/RenownHover-CQ0TZHZv-CQ0TZHZv.js +0 -21
  431. package/dist/es/internal/RenownHover-CQ0TZHZv.js +0 -21
  432. package/dist/es/internal/Ring-DKv0gnwT-vTRkEhSD.js +0 -7
  433. package/dist/es/internal/Ring-DKv0gnwT.js +0 -7
  434. package/dist/es/internal/Save-BBxj68pn-aWwVVXw7.js +0 -7
  435. package/dist/es/internal/Save-BBxj68pn.js +0 -7
  436. package/dist/es/internal/Search-YUJuRBLe-BmhJyjR6.js +0 -7
  437. package/dist/es/internal/Search-YUJuRBLe.js +0 -7
  438. package/dist/es/internal/Server-Bfkkjui1-BwKF1iDk.js +0 -7
  439. package/dist/es/internal/Server-Bfkkjui1.js +0 -7
  440. package/dist/es/internal/Settings-mbbylBS5-mbbylBS5.js +0 -24
  441. package/dist/es/internal/Settings-mbbylBS5.js +0 -24
  442. package/dist/es/internal/Synced-DKJXzPiw-CqMhhyM5.js +0 -7
  443. package/dist/es/internal/Synced-DKJXzPiw.js +0 -7
  444. package/dist/es/internal/Syncing-aT9WSMFf-BWTCrS3p.js +0 -7
  445. package/dist/es/internal/Syncing-aT9WSMFf.js +0 -7
  446. package/dist/es/internal/Trash-CgSbHk-P-Dh-c5Met.js +0 -7
  447. package/dist/es/internal/Trash-CgSbHk-P.js +0 -7
  448. package/dist/es/internal/TrashFill-DN50ercb-Dpxm9akA.js +0 -7
  449. package/dist/es/internal/TrashFill-DN50ercb.js +0 -7
  450. package/dist/es/internal/TreeViewSlash-BywCsx5o-BSzPhf8C.js +0 -43
  451. package/dist/es/internal/TreeViewSlash-BywCsx5o.js +0 -43
  452. package/dist/es/internal/TriangleDown-eCXwUfu8-DqHoyiNd.js +0 -25
  453. package/dist/es/internal/TriangleDown-eCXwUfu8.js +0 -25
  454. package/dist/es/internal/VariantArrowLeft-CnuX59_e-DFRqg5rx.js +0 -7
  455. package/dist/es/internal/VariantArrowLeft-CnuX59_e.js +0 -7
  456. package/dist/es/internal/VerticalDots-C8QYf7et-Kxp4UvO-.js +0 -7
  457. package/dist/es/internal/VerticalDots-C8QYf7et.js +0 -7
  458. package/dist/es/internal/WarningFill-WowAvi5P-DyzPgci7.js +0 -7
  459. package/dist/es/internal/WarningFill-WowAvi5P.js +0 -7
  460. package/dist/es/internal/XTwitter-k3Pt8itk-4crDLOC9.js +0 -22
  461. package/dist/es/internal/XTwitter-k3Pt8itk.js +0 -22
  462. package/dist/es/internal/Xmark-8qnJCs2Y-8qnJCs2Y.js +0 -14
  463. package/dist/es/internal/Xmark-8qnJCs2Y.js +0 -14
  464. package/dist/es/internal/XmarkLight-GHzDR5_F-DDNgDNwu.js +0 -7
  465. package/dist/es/internal/XmarkLight-GHzDR5_F.js +0 -7
  466. package/dist/es/internal/Youtube-i8V0IXUU-CewHZSfQ.js +0 -24
  467. package/dist/es/internal/Youtube-i8V0IXUU.js +0 -24
  468. package/dist/es/internal/index-D8zPFcDT.js +0 -8
  469. package/dist/es/internal/index-h1eFus3x.js +0 -8
  470. package/dist/es/package.json +0 -1
  471. package/dist/es/storybook.js +0 -59348
  472. package/dist/es/utils/lazy-with-preload.js +0 -23
  473. package/dist/postcss.config.d.ts +0 -7
  474. package/dist/processors/index.d.ts +0 -0
  475. package/dist/scripts/index.d.ts +0 -1
  476. package/dist/storybook.d.ts +0 -1
  477. package/dist/subgraphs/index.d.ts +0 -0
  478. package/dist/tailwind.config.d.ts +0 -226
  479. package/dist/vite.config.d.ts +0 -2
@@ -1 +0,0 @@
1
- "use strict";const v=require("react");var e={},d;function P(){if(d)return e;d=1,Object.defineProperty(e,"__esModule",{value:!0}),e.lazyWithPreload=void 0;var r=v;function a(f){var o=(0,r.lazy)(f),t,n,l=(0,r.forwardRef)(function(u,c){var s=(0,r.useRef)(t??o);return(0,r.createElement)(s.current,Object.assign(c?{ref:c}:{},u))}),i=l;return i.preload=function(){return n||(n=f().then(function(u){return t=u.default,t})),n},i}return e.lazyWithPreload=a,e.default=a,e}var y=P();exports.P=y;
@@ -1,2 +0,0 @@
1
- export * from './document-models/document-drive/index'
2
- export {}
@@ -1,5 +0,0 @@
1
- import { DocumentDriveNodeAction } from './node/actions';
2
- import { DocumentDriveDriveAction } from './drive/actions';
3
- export * from './node/actions';
4
- export * from './drive/actions';
5
- export type DocumentDriveAction = DocumentDriveNodeAction | DocumentDriveDriveAction;
@@ -1,2 +0,0 @@
1
- export * from './node/creators';
2
- export * from './drive/creators';
@@ -1,2 +0,0 @@
1
- import { DocumentModelState } from 'document-model/document-model';
2
- export declare const documentModel: DocumentModelState;
@@ -1,11 +0,0 @@
1
- import { Action } from 'document-model/document';
2
- import { SetDriveNameInput, SetDriveIconInput, SetSharingTypeInput, SetAvailableOfflineInput, AddListenerInput, RemoveListenerInput, AddTriggerInput, RemoveTriggerInput } from '../types';
3
- export type SetDriveNameAction = Action<"SET_DRIVE_NAME", SetDriveNameInput, "global">;
4
- export type SetDriveIconAction = Action<"SET_DRIVE_ICON", SetDriveIconInput, "global">;
5
- export type SetSharingTypeAction = Action<"SET_SHARING_TYPE", SetSharingTypeInput, "local">;
6
- export type SetAvailableOfflineAction = Action<"SET_AVAILABLE_OFFLINE", SetAvailableOfflineInput, "local">;
7
- export type AddListenerAction = Action<"ADD_LISTENER", AddListenerInput, "local">;
8
- export type RemoveListenerAction = Action<"REMOVE_LISTENER", RemoveListenerInput, "local">;
9
- export type AddTriggerAction = Action<"ADD_TRIGGER", AddTriggerInput, "local">;
10
- export type RemoveTriggerAction = Action<"REMOVE_TRIGGER", RemoveTriggerInput, "local">;
11
- export type DocumentDriveDriveAction = SetDriveNameAction | SetDriveIconAction | SetSharingTypeAction | SetAvailableOfflineAction | AddListenerAction | RemoveListenerAction | AddTriggerAction | RemoveTriggerAction;
@@ -1,10 +0,0 @@
1
- import { SetDriveNameInput, SetDriveIconInput, SetSharingTypeInput, SetAvailableOfflineInput, AddListenerInput, RemoveListenerInput, AddTriggerInput, RemoveTriggerInput } from '../types';
2
- import { SetDriveNameAction, SetDriveIconAction, SetSharingTypeAction, SetAvailableOfflineAction, AddListenerAction, RemoveListenerAction, AddTriggerAction, RemoveTriggerAction } from './actions';
3
- export declare const setDriveName: (input: SetDriveNameInput) => SetDriveNameAction;
4
- export declare const setDriveIcon: (input: SetDriveIconInput) => SetDriveIconAction;
5
- export declare const setSharingType: (input: SetSharingTypeInput) => SetSharingTypeAction;
6
- export declare const setAvailableOffline: (input: SetAvailableOfflineInput) => SetAvailableOfflineAction;
7
- export declare const addListener: (input: AddListenerInput) => AddListenerAction;
8
- export declare const removeListener: (input: RemoveListenerInput) => RemoveListenerAction;
9
- export declare const addTrigger: (input: AddTriggerInput) => AddTriggerAction;
10
- export declare const removeTrigger: (input: RemoveTriggerInput) => RemoveTriggerAction;
@@ -1 +0,0 @@
1
- export declare const errors: {};
@@ -1,13 +0,0 @@
1
- import { BaseDocument } from 'document-model/document';
2
- import { SetDriveNameInput, SetDriveIconInput, SetSharingTypeInput, SetAvailableOfflineInput, AddListenerInput, RemoveListenerInput, AddTriggerInput, RemoveTriggerInput, DocumentDriveState, DocumentDriveLocalState } from '../types';
3
- import { DocumentDriveAction } from '../actions';
4
- export default class DocumentDrive_Drive extends BaseDocument<DocumentDriveState, DocumentDriveAction, DocumentDriveLocalState> {
5
- setDriveName(input: SetDriveNameInput): this;
6
- setDriveIcon(input: SetDriveIconInput): this;
7
- setSharingType(input: SetSharingTypeInput): this;
8
- setAvailableOffline(input: SetAvailableOfflineInput): this;
9
- addListener(input: AddListenerInput): this;
10
- removeListener(input: RemoveListenerInput): this;
11
- addTrigger(input: AddTriggerInput): this;
12
- removeTrigger(input: RemoveTriggerInput): this;
13
- }
@@ -1,13 +0,0 @@
1
- import { SignalDispatch } from 'document-model/document';
2
- import { SetDriveNameAction, SetDriveIconAction, SetSharingTypeAction, SetAvailableOfflineAction, AddListenerAction, RemoveListenerAction, AddTriggerAction, RemoveTriggerAction } from './actions';
3
- import { DocumentDriveState, DocumentDriveLocalState } from '../types';
4
- export interface DocumentDriveDriveOperations {
5
- setDriveNameOperation: (state: DocumentDriveState, action: SetDriveNameAction, dispatch?: SignalDispatch) => void;
6
- setDriveIconOperation: (state: DocumentDriveState, action: SetDriveIconAction, dispatch?: SignalDispatch) => void;
7
- setSharingTypeOperation: (state: DocumentDriveLocalState, action: SetSharingTypeAction, dispatch?: SignalDispatch) => void;
8
- setAvailableOfflineOperation: (state: DocumentDriveLocalState, action: SetAvailableOfflineAction, dispatch?: SignalDispatch) => void;
9
- addListenerOperation: (state: DocumentDriveLocalState, action: AddListenerAction, dispatch?: SignalDispatch) => void;
10
- removeListenerOperation: (state: DocumentDriveLocalState, action: RemoveListenerAction, dispatch?: SignalDispatch) => void;
11
- addTriggerOperation: (state: DocumentDriveLocalState, action: AddTriggerAction, dispatch?: SignalDispatch) => void;
12
- removeTriggerOperation: (state: DocumentDriveLocalState, action: RemoveTriggerAction, dispatch?: SignalDispatch) => void;
13
- }
@@ -1,5 +0,0 @@
1
- export * from './actions';
2
- export * from './document-model';
3
- export * from './object';
4
- export * from './types';
5
- export * as actions from './creators';
@@ -1,10 +0,0 @@
1
- import { Action } from 'document-model/document';
2
- import { AddFileInput, AddFolderInput, DeleteNodeInput, UpdateFileInput, UpdateNodeInput, CopyNodeInput, MoveNodeInput } from '../types';
3
- export type AddFileAction = Action<"ADD_FILE", AddFileInput, "global">;
4
- export type AddFolderAction = Action<"ADD_FOLDER", AddFolderInput, "global">;
5
- export type DeleteNodeAction = Action<"DELETE_NODE", DeleteNodeInput, "global">;
6
- export type UpdateFileAction = Action<"UPDATE_FILE", UpdateFileInput, "global">;
7
- export type UpdateNodeAction = Action<"UPDATE_NODE", UpdateNodeInput, "global">;
8
- export type CopyNodeAction = Action<"COPY_NODE", CopyNodeInput, "global">;
9
- export type MoveNodeAction = Action<"MOVE_NODE", MoveNodeInput, "global">;
10
- export type DocumentDriveNodeAction = AddFileAction | AddFolderAction | DeleteNodeAction | UpdateFileAction | UpdateNodeAction | CopyNodeAction | MoveNodeAction;
@@ -1,9 +0,0 @@
1
- import { AddFileInput, AddFolderInput, DeleteNodeInput, UpdateFileInput, UpdateNodeInput, CopyNodeInput, MoveNodeInput } from '../types';
2
- import { AddFileAction, AddFolderAction, DeleteNodeAction, UpdateFileAction, UpdateNodeAction, CopyNodeAction, MoveNodeAction } from './actions';
3
- export declare const addFile: (input: AddFileInput) => AddFileAction;
4
- export declare const addFolder: (input: AddFolderInput) => AddFolderAction;
5
- export declare const deleteNode: (input: DeleteNodeInput) => DeleteNodeAction;
6
- export declare const updateFile: (input: UpdateFileInput) => UpdateFileAction;
7
- export declare const updateNode: (input: UpdateNodeInput) => UpdateNodeAction;
8
- export declare const copyNode: (input: CopyNodeInput) => CopyNodeAction;
9
- export declare const moveNode: (input: MoveNodeInput) => MoveNodeAction;
@@ -1 +0,0 @@
1
- export declare const errors: {};
@@ -1,12 +0,0 @@
1
- import { BaseDocument } from 'document-model/document';
2
- import { AddFileInput, AddFolderInput, DeleteNodeInput, UpdateFileInput, UpdateNodeInput, CopyNodeInput, MoveNodeInput, DocumentDriveState, DocumentDriveLocalState } from '../types';
3
- import { DocumentDriveAction } from '../actions';
4
- export default class DocumentDrive_Node extends BaseDocument<DocumentDriveState, DocumentDriveAction, DocumentDriveLocalState> {
5
- addFile(input: AddFileInput): this;
6
- addFolder(input: AddFolderInput): this;
7
- deleteNode(input: DeleteNodeInput): this;
8
- updateFile(input: UpdateFileInput): this;
9
- updateNode(input: UpdateNodeInput): this;
10
- copyNode(input: CopyNodeInput): this;
11
- moveNode(input: MoveNodeInput): this;
12
- }
@@ -1,12 +0,0 @@
1
- import { SignalDispatch } from 'document-model/document';
2
- import { AddFileAction, AddFolderAction, DeleteNodeAction, UpdateFileAction, UpdateNodeAction, CopyNodeAction, MoveNodeAction } from './actions';
3
- import { DocumentDriveState } from '../types';
4
- export interface DocumentDriveNodeOperations {
5
- addFileOperation: (state: DocumentDriveState, action: AddFileAction, dispatch?: SignalDispatch) => void;
6
- addFolderOperation: (state: DocumentDriveState, action: AddFolderAction, dispatch?: SignalDispatch) => void;
7
- deleteNodeOperation: (state: DocumentDriveState, action: DeleteNodeAction, dispatch?: SignalDispatch) => void;
8
- updateFileOperation: (state: DocumentDriveState, action: UpdateFileAction, dispatch?: SignalDispatch) => void;
9
- updateNodeOperation: (state: DocumentDriveState, action: UpdateNodeAction, dispatch?: SignalDispatch) => void;
10
- copyNodeOperation: (state: DocumentDriveState, action: CopyNodeAction, dispatch?: SignalDispatch) => void;
11
- moveNodeOperation: (state: DocumentDriveState, action: MoveNodeAction, dispatch?: SignalDispatch) => void;
12
- }
@@ -1,17 +0,0 @@
1
- import { BaseDocument, ExtendedState, PartialState, SignalDispatch } from 'document-model/document';
2
- import { DocumentDriveState, DocumentDriveLocalState } from './types';
3
- import { DocumentDriveAction } from './actions';
4
- import { default as DocumentDrive_Node } from './node/object';
5
- import { default as DocumentDrive_Drive } from './drive/object';
6
- export * from './node/object';
7
- export * from './drive/object';
8
- interface DocumentDrive extends DocumentDrive_Node, DocumentDrive_Drive {
9
- }
10
- declare class DocumentDrive extends BaseDocument<DocumentDriveState, DocumentDriveAction, DocumentDriveLocalState> {
11
- static fileExtension: string;
12
- constructor(initialState?: Partial<ExtendedState<PartialState<DocumentDriveState>, PartialState<DocumentDriveLocalState>>>, dispatch?: SignalDispatch);
13
- saveToFile(path: string, name?: string): Promise<string>;
14
- loadFromFile(path: string): Promise<void>;
15
- static fromFile(path: string): Promise<DocumentDrive>;
16
- }
17
- export { DocumentDrive };
@@ -1,3 +0,0 @@
1
- import { DocumentDriveState, DocumentDriveLocalState } from './types';
2
- import { DocumentDriveAction } from './actions';
3
- export declare const reducer: import('document-model/document').Reducer<DocumentDriveState, DocumentDriveAction, DocumentDriveLocalState>;
@@ -1,2 +0,0 @@
1
- export * from './types';
2
- export * as z from './zod';
@@ -1,175 +0,0 @@
1
- export type Maybe<T> = T | null;
2
- export type InputMaybe<T> = T | null | undefined;
3
- export type Exact<T extends {
4
- [key: string]: unknown;
5
- }> = {
6
- [K in keyof T]: T[K];
7
- };
8
- export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
9
- [SubKey in K]?: Maybe<T[SubKey]>;
10
- };
11
- export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
12
- [SubKey in K]: Maybe<T[SubKey]>;
13
- };
14
- export type MakeEmpty<T extends {
15
- [key: string]: unknown;
16
- }, K extends keyof T> = {
17
- [_ in K]?: never;
18
- };
19
- export type Incremental<T> = T | {
20
- [P in keyof T]?: P extends " $fragmentName" | "__typename" ? T[P] : never;
21
- };
22
- /** All built-in and custom scalars, mapped to their actual values */
23
- export type Scalars = {
24
- ID: {
25
- input: string;
26
- output: string;
27
- };
28
- String: {
29
- input: string;
30
- output: string;
31
- };
32
- Boolean: {
33
- input: boolean;
34
- output: boolean;
35
- };
36
- Int: {
37
- input: number;
38
- output: number;
39
- };
40
- Float: {
41
- input: number;
42
- output: number;
43
- };
44
- Unknown: {
45
- input: unknown;
46
- output: unknown;
47
- };
48
- };
49
- export type AddFileInput = {
50
- document?: InputMaybe<Scalars["Unknown"]["input"]>;
51
- documentType: Scalars["String"]["input"];
52
- id: Scalars["ID"]["input"];
53
- name: Scalars["String"]["input"];
54
- parentFolder?: InputMaybe<Scalars["ID"]["input"]>;
55
- synchronizationUnits: Array<SynchronizationUnit>;
56
- };
57
- export type AddFolderInput = {
58
- id: Scalars["ID"]["input"];
59
- name: Scalars["String"]["input"];
60
- parentFolder?: InputMaybe<Scalars["ID"]["input"]>;
61
- };
62
- export type AddListenerInput = {
63
- listener: Listener;
64
- };
65
- export type AddTriggerInput = {
66
- trigger: Trigger;
67
- };
68
- export type CopyNodeInput = {
69
- srcId: Scalars["ID"]["input"];
70
- synchronizationUnits?: InputMaybe<Array<SynchronizationUnit>>;
71
- targetId: Scalars["ID"]["input"];
72
- targetName?: InputMaybe<Scalars["String"]["input"]>;
73
- targetParentFolder?: InputMaybe<Scalars["ID"]["input"]>;
74
- };
75
- export type DeleteNodeInput = {
76
- id: Scalars["ID"]["input"];
77
- };
78
- export type DocumentDriveLocalState = {
79
- availableOffline: Scalars["Boolean"]["output"];
80
- listeners: Array<Listener>;
81
- sharingType: Maybe<Scalars["String"]["output"]>;
82
- triggers: Array<Trigger>;
83
- };
84
- export type DocumentDriveState = {
85
- icon: Maybe<Scalars["String"]["output"]>;
86
- id: Scalars["ID"]["output"];
87
- name: Scalars["String"]["output"];
88
- nodes: Array<Node>;
89
- slug: Maybe<Scalars["String"]["output"]>;
90
- };
91
- export type FileNode = {
92
- documentType: Scalars["String"]["output"];
93
- id: Scalars["String"]["output"];
94
- kind: Scalars["String"]["output"];
95
- name: Scalars["String"]["output"];
96
- parentFolder: Maybe<Scalars["String"]["output"]>;
97
- synchronizationUnits: Array<SynchronizationUnit>;
98
- };
99
- export type FolderNode = {
100
- id: Scalars["String"]["output"];
101
- kind: Scalars["String"]["output"];
102
- name: Scalars["String"]["output"];
103
- parentFolder: Maybe<Scalars["String"]["output"]>;
104
- };
105
- export type Listener = {
106
- block: Scalars["Boolean"]["output"];
107
- callInfo: Maybe<ListenerCallInfo>;
108
- filter: ListenerFilter;
109
- label: Maybe<Scalars["String"]["output"]>;
110
- listenerId: Scalars["ID"]["output"];
111
- system: Scalars["Boolean"]["output"];
112
- };
113
- export type ListenerCallInfo = {
114
- data: Maybe<Scalars["String"]["output"]>;
115
- name: Maybe<Scalars["String"]["output"]>;
116
- transmitterType: Maybe<TransmitterType | `${TransmitterType}`>;
117
- };
118
- export type ListenerFilter = {
119
- branch: Maybe<Array<Scalars["String"]["output"]>>;
120
- documentId: Maybe<Array<Scalars["ID"]["output"]>>;
121
- documentType: Array<Scalars["String"]["output"]>;
122
- scope: Maybe<Array<Scalars["String"]["output"]>>;
123
- };
124
- export type MoveNodeInput = {
125
- srcFolder: Scalars["ID"]["input"];
126
- targetParentFolder?: InputMaybe<Scalars["ID"]["input"]>;
127
- };
128
- export type Node = FileNode | FolderNode;
129
- export type PullResponderTriggerData = {
130
- interval: Scalars["String"]["output"];
131
- listenerId: Scalars["ID"]["output"];
132
- url: Scalars["String"]["output"];
133
- };
134
- export type RemoveListenerInput = {
135
- listenerId: Scalars["String"]["input"];
136
- };
137
- export type RemoveTriggerInput = {
138
- triggerId: Scalars["String"]["input"];
139
- };
140
- export type SetAvailableOfflineInput = {
141
- availableOffline: Scalars["Boolean"]["input"];
142
- };
143
- export type SetDriveIconInput = {
144
- icon: Scalars["String"]["input"];
145
- };
146
- export type SetDriveNameInput = {
147
- name: Scalars["String"]["input"];
148
- };
149
- export type SetSharingTypeInput = {
150
- type: Scalars["String"]["input"];
151
- };
152
- export type SynchronizationUnit = {
153
- branch: Scalars["String"]["output"];
154
- scope: Scalars["String"]["output"];
155
- syncId: Scalars["ID"]["output"];
156
- };
157
- export type TransmitterType = "Internal" | "MatrixConnect" | "PullResponder" | "RESTWebhook" | "SecureConnect" | "SwitchboardPush";
158
- export type Trigger = {
159
- data: Maybe<TriggerData>;
160
- id: Scalars["ID"]["output"];
161
- type: TriggerType | `${TriggerType}`;
162
- };
163
- export type TriggerData = PullResponderTriggerData;
164
- export type TriggerType = "PullResponder";
165
- export type UpdateFileInput = {
166
- documentType?: InputMaybe<Scalars["String"]["input"]>;
167
- id: Scalars["ID"]["input"];
168
- name?: InputMaybe<Scalars["String"]["input"]>;
169
- parentFolder?: InputMaybe<Scalars["ID"]["input"]>;
170
- };
171
- export type UpdateNodeInput = {
172
- id: Scalars["ID"]["input"];
173
- name?: InputMaybe<Scalars["String"]["input"]>;
174
- parentFolder?: InputMaybe<Scalars["ID"]["input"]>;
175
- };
@@ -1,86 +0,0 @@
1
- import { z } from 'zod';
2
- import { AddFileInput, AddFolderInput, AddListenerInput, AddTriggerInput, CopyNodeInput, DeleteNodeInput, DocumentDriveLocalState, DocumentDriveState, FileNode, FolderNode, Listener, ListenerCallInfo, ListenerFilter, MoveNodeInput, PullResponderTriggerData, RemoveListenerInput, RemoveTriggerInput, SetAvailableOfflineInput, SetDriveIconInput, SetDriveNameInput, SetSharingTypeInput, SynchronizationUnit, Trigger, UpdateFileInput, UpdateNodeInput } from './types';
3
- type Properties<T> = Required<{
4
- [K in keyof T]: z.ZodType<T[K], any, T[K]>;
5
- }>;
6
- type definedNonNullAny = {};
7
- export declare const isDefinedNonNullAny: (v: any) => v is definedNonNullAny;
8
- export declare const definedNonNullAnySchema: z.ZodEffects<z.ZodAny, definedNonNullAny, any>;
9
- export declare const TransmitterTypeSchema: z.ZodEnum<["Internal", "MatrixConnect", "PullResponder", "RESTWebhook", "SecureConnect", "SwitchboardPush"]>;
10
- export declare const TriggerTypeSchema: z.ZodEnum<["PullResponder"]>;
11
- export declare function AddFileInputSchema(): z.ZodObject<Properties<AddFileInput>>;
12
- export declare function AddFolderInputSchema(): z.ZodObject<Properties<AddFolderInput>>;
13
- export declare function AddListenerInputSchema(): z.ZodObject<Properties<AddListenerInput>>;
14
- export declare function AddTriggerInputSchema(): z.ZodObject<Properties<AddTriggerInput>>;
15
- export declare function CopyNodeInputSchema(): z.ZodObject<Properties<CopyNodeInput>>;
16
- export declare function DeleteNodeInputSchema(): z.ZodObject<Properties<DeleteNodeInput>>;
17
- export declare function DocumentDriveLocalStateSchema(): z.ZodObject<Properties<DocumentDriveLocalState>>;
18
- export declare function DocumentDriveStateSchema(): z.ZodObject<Properties<DocumentDriveState>>;
19
- export declare function FileNodeSchema(): z.ZodObject<Properties<FileNode>>;
20
- export declare function FolderNodeSchema(): z.ZodObject<Properties<FolderNode>>;
21
- export declare function ListenerSchema(): z.ZodObject<Properties<Listener>>;
22
- export declare function ListenerCallInfoSchema(): z.ZodObject<Properties<ListenerCallInfo>>;
23
- export declare function ListenerFilterSchema(): z.ZodObject<Properties<ListenerFilter>>;
24
- export declare function MoveNodeInputSchema(): z.ZodObject<Properties<MoveNodeInput>>;
25
- export declare function NodeSchema(): z.ZodUnion<[z.ZodObject<Required<{
26
- documentType: z.ZodType<string, any, string>;
27
- id: z.ZodType<string, any, string>;
28
- kind: z.ZodType<string, any, string>;
29
- name: z.ZodType<string, any, string>;
30
- parentFolder: z.ZodType<import('./types').Maybe<string>, any, import('./types').Maybe<string>>;
31
- synchronizationUnits: z.ZodType<SynchronizationUnit[], any, SynchronizationUnit[]>;
32
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
33
- documentType: import('./types').Scalars["String"]["output"];
34
- id: import('./types').Scalars["String"]["output"];
35
- name: import('./types').Scalars["String"]["output"];
36
- parentFolder: import('./types').Maybe<import('./types').Scalars["String"]["output"]>;
37
- synchronizationUnits: Array<SynchronizationUnit>;
38
- kind: import('./types').Scalars["String"]["output"];
39
- }, {
40
- documentType: import('./types').Scalars["String"]["output"];
41
- id: import('./types').Scalars["String"]["output"];
42
- name: import('./types').Scalars["String"]["output"];
43
- parentFolder: import('./types').Maybe<import('./types').Scalars["String"]["output"]>;
44
- synchronizationUnits: Array<SynchronizationUnit>;
45
- kind: import('./types').Scalars["String"]["output"];
46
- }>, z.ZodObject<Required<{
47
- id: z.ZodType<string, any, string>;
48
- kind: z.ZodType<string, any, string>;
49
- name: z.ZodType<string, any, string>;
50
- parentFolder: z.ZodType<import('./types').Maybe<string>, any, import('./types').Maybe<string>>;
51
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
52
- id: import('./types').Scalars["String"]["output"];
53
- name: import('./types').Scalars["String"]["output"];
54
- parentFolder: import('./types').Maybe<import('./types').Scalars["String"]["output"]>;
55
- kind: import('./types').Scalars["String"]["output"];
56
- }, {
57
- id: import('./types').Scalars["String"]["output"];
58
- name: import('./types').Scalars["String"]["output"];
59
- parentFolder: import('./types').Maybe<import('./types').Scalars["String"]["output"]>;
60
- kind: import('./types').Scalars["String"]["output"];
61
- }>]>;
62
- export declare function PullResponderTriggerDataSchema(): z.ZodObject<Properties<PullResponderTriggerData>>;
63
- export declare function RemoveListenerInputSchema(): z.ZodObject<Properties<RemoveListenerInput>>;
64
- export declare function RemoveTriggerInputSchema(): z.ZodObject<Properties<RemoveTriggerInput>>;
65
- export declare function SetAvailableOfflineInputSchema(): z.ZodObject<Properties<SetAvailableOfflineInput>>;
66
- export declare function SetDriveIconInputSchema(): z.ZodObject<Properties<SetDriveIconInput>>;
67
- export declare function SetDriveNameInputSchema(): z.ZodObject<Properties<SetDriveNameInput>>;
68
- export declare function SetSharingTypeInputSchema(): z.ZodObject<Properties<SetSharingTypeInput>>;
69
- export declare function SynchronizationUnitSchema(): z.ZodObject<Properties<SynchronizationUnit>>;
70
- export declare function TriggerSchema(): z.ZodObject<Properties<Trigger>>;
71
- export declare function TriggerDataSchema(): z.ZodObject<Required<{
72
- interval: z.ZodType<string, any, string>;
73
- listenerId: z.ZodType<string, any, string>;
74
- url: z.ZodType<string, any, string>;
75
- }>, z.UnknownKeysParam, z.ZodTypeAny, {
76
- listenerId: import('./types').Scalars["ID"]["output"];
77
- interval: import('./types').Scalars["String"]["output"];
78
- url: import('./types').Scalars["String"]["output"];
79
- }, {
80
- listenerId: import('./types').Scalars["ID"]["output"];
81
- interval: import('./types').Scalars["String"]["output"];
82
- url: import('./types').Scalars["String"]["output"];
83
- }>;
84
- export declare function UpdateFileInputSchema(): z.ZodObject<Properties<UpdateFileInput>>;
85
- export declare function UpdateNodeInputSchema(): z.ZodObject<Properties<UpdateNodeInput>>;
86
- export {};
@@ -1,8 +0,0 @@
1
- import { Document, ExtendedState } from 'document-model/document';
2
- import { DocumentDriveState, DocumentDriveLocalState } from './schema/types';
3
- import { DocumentDriveAction } from './actions';
4
- export { z } from './schema';
5
- export type * from './schema/types';
6
- export type ExtendedDocumentDriveState = ExtendedState<DocumentDriveState, DocumentDriveLocalState>;
7
- export type DocumentDriveDocument = Document<DocumentDriveState, DocumentDriveAction, DocumentDriveLocalState>;
8
- export { DocumentDriveState, DocumentDriveLocalState, DocumentDriveAction };
@@ -1,6 +0,0 @@
1
- import { DocumentModelUtils } from 'document-model/document';
2
- import { DocumentDriveAction, DocumentDriveState, DocumentDriveLocalState } from './types';
3
- export declare const initialGlobalState: DocumentDriveState;
4
- export declare const initialLocalState: DocumentDriveLocalState;
5
- declare const utils: DocumentModelUtils<DocumentDriveState, DocumentDriveAction, DocumentDriveLocalState>;
6
- export default utils;
@@ -1,60 +0,0 @@
1
- import { DocumentModel } from 'document-model/document';
2
- import { DocumentDrive } from './gen';
3
- import { reducer } from './gen/reducer';
4
- import { documentModel } from './gen/document-model';
5
- import { DocumentDriveState, DocumentDriveAction, DocumentDriveLocalState } from './gen/types';
6
- import * as customUtils from "./src/utils";
7
- declare const Document: typeof DocumentDrive;
8
- declare const utils: {
9
- isFileNode(node: import('./gen').Node): node is import('./gen').FileNode;
10
- isFolderNode(node: import('./gen').Node): node is import('./gen').FolderNode;
11
- getAncestors(node: import('./gen').Node, allNodes: import('./gen').Node[]): import('./gen').Node[];
12
- getDescendants(node: import('./gen').Node, allNodes: import('./gen').Node[]): import('./gen').Node[];
13
- generateNodesCopy(src: customUtils.GenerateNodesCopySrc, idGenerator: customUtils.GenerateNodesCopyIdGenerator, nodes: import('./gen').Node[]): import('./gen').CopyNodeInput[];
14
- generateSynchronizationUnitId(nodes: DocumentDriveState["nodes"]): string;
15
- generateSynchronizationUnits(state: DocumentDriveState, scopes: import('document-model/document').OperationScope[], branch?: string): import('document-model/document').SynchronizationUnit[];
16
- generateAddNodeAction(state: DocumentDriveState, action: Omit<import('./gen').AddFileInput, "synchronizationUnits">, scopes: import('document-model/document').OperationScope[]): import('./gen').AddFileAction;
17
- generateCopyNodeAction(state: DocumentDriveState, action: Omit<import('./gen').CopyNodeInput, "synchronizationUnits">): import('./gen').CopyNodeAction;
18
- getNextCopyNumber(files: string[], baseFilename: string): number;
19
- escapeRegExp(string: string): string;
20
- handleTargetNameCollisions(params: {
21
- nodes: import('./gen').Node[];
22
- targetParentFolder: string | null;
23
- srcName: string;
24
- }): string;
25
- fileExtension: string;
26
- createState: import('document-model/document').CreateState<DocumentDriveState, DocumentDriveLocalState>;
27
- createExtendedState: (extendedState?: Partial<import('document-model/document').ExtendedState<import('document-model/document').PartialState<DocumentDriveState>, import('document-model/document').PartialState<DocumentDriveLocalState>>> | undefined, createState?: import('document-model/document').CreateState<DocumentDriveState, DocumentDriveLocalState> | undefined) => import('document-model/document').ExtendedState<DocumentDriveState, DocumentDriveLocalState>;
28
- createDocument: (document?: Partial<import('document-model/document').ExtendedState<import('document-model/document').PartialState<DocumentDriveState>, import('document-model/document').PartialState<DocumentDriveLocalState>>> | undefined, createState?: import('document-model/document').CreateState<DocumentDriveState, DocumentDriveLocalState> | undefined) => import('document-model/document').Document<DocumentDriveState, DocumentDriveAction, DocumentDriveLocalState>;
29
- loadFromFile: (path: string) => Promise<import('document-model/document').Document<DocumentDriveState, DocumentDriveAction, DocumentDriveLocalState>>;
30
- loadFromInput: (input: import('document-model/document').FileInput) => Promise<import('document-model/document').Document<DocumentDriveState, DocumentDriveAction, DocumentDriveLocalState>>;
31
- saveToFile: (document: import('document-model/document').Document<DocumentDriveState, DocumentDriveAction, DocumentDriveLocalState>, path: string, name?: string) => Promise<string>;
32
- saveToFileHandle: (document: import('document-model/document').Document<DocumentDriveState, DocumentDriveAction, DocumentDriveLocalState>, input: FileSystemFileHandle) => Promise<void>;
33
- };
34
- declare const actions: {
35
- addFile: (input: import('./gen').AddFileInput) => import('./gen').AddFileAction;
36
- addFolder: (input: import('./gen').AddFolderInput) => import('./gen').AddFolderAction;
37
- deleteNode: (input: import('./gen').DeleteNodeInput) => import('./gen').DeleteNodeAction;
38
- updateFile: (input: import('./gen').UpdateFileInput) => import('./gen').UpdateFileAction;
39
- updateNode: (input: import('./gen').UpdateNodeInput) => import('./gen').UpdateNodeAction;
40
- copyNode: (input: import('./gen').CopyNodeInput) => import('./gen').CopyNodeAction;
41
- moveNode: (input: import('./gen').MoveNodeInput) => import('./gen').MoveNodeAction;
42
- setDriveName: (input: import('./gen').SetDriveNameInput) => import('./gen').SetDriveNameAction;
43
- setDriveIcon: (input: import('./gen').SetDriveIconInput) => import('./gen').SetDriveIconAction;
44
- setSharingType: (input: import('./gen').SetSharingTypeInput) => import('./gen').SetSharingTypeAction;
45
- setAvailableOffline: (input: import('./gen').SetAvailableOfflineInput) => import('./gen').SetAvailableOfflineAction;
46
- addListener: (input: import('./gen').AddListenerInput) => import('./gen').AddListenerAction;
47
- removeListener: (input: import('./gen').RemoveListenerInput) => import('./gen').RemoveListenerAction;
48
- addTrigger: (input: import('./gen').AddTriggerInput) => import('./gen').AddTriggerAction;
49
- removeTrigger: (input: import('./gen').RemoveTriggerInput) => import('./gen').RemoveTriggerAction;
50
- setName: (name: string) => import('node_modules/document-model/dist/browser/src/document/actions/types').SetNameAction;
51
- undo: (skip?: number, scope?: import('document-model/document').OperationScope) => import('node_modules/document-model/dist/browser/src/document/actions/types').UndoAction;
52
- redo: (count?: number, scope?: import('document-model/document').OperationScope) => import('node_modules/document-model/dist/browser/src/document/actions/types').RedoAction;
53
- prune: (start?: number | undefined, end?: number | undefined, scope?: import('document-model/document').OperationScope) => import('node_modules/document-model/dist/browser/src/document/actions/types').PruneAction;
54
- loadState: <S, T>(state: Pick<import('document-model/document').ExtendedState<S, T>, "state" | "name">, operations: number) => import('node_modules/document-model/dist/browser/src/document/actions/types').LoadStateAction;
55
- noop: (scope?: import('document-model/document').OperationScope) => import('node_modules/document-model/dist/browser/src/document/actions/types').NOOPAction;
56
- };
57
- export declare const module: DocumentModel<DocumentDriveState, DocumentDriveAction, DocumentDriveLocalState>;
58
- export { DocumentDrive, Document, reducer, actions, utils, documentModel };
59
- export * from './gen/types';
60
- export * from './src/utils';
@@ -1,2 +0,0 @@
1
- import { DocumentDriveDriveOperations } from '../../gen/drive/operations';
2
- export declare const reducer: DocumentDriveDriveOperations;
@@ -1,2 +0,0 @@
1
- import { DocumentDriveNodeOperations } from '../../gen/node/operations';
2
- export declare const reducer: DocumentDriveNodeOperations;
@@ -1,5 +0,0 @@
1
- /**
2
- * This is a scaffold file meant for customization:
3
- * - change it by adding new tests or modifying the existing ones
4
- */
5
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * This is a scaffold file meant for customization:
3
- * - change it by adding new tests or modifying the existing ones
4
- */
5
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * This is a scaffold file meant for customization:
3
- * - change it by adding new tests or modifying the existing ones
4
- */
5
- export {};
@@ -1,33 +0,0 @@
1
- import { AddFileInput, CopyNodeInput, DocumentDriveState, FileNode, FolderNode, Node } from '..';
2
- import { OperationScope, SynchronizationUnit } from 'document-model/document';
3
- import { AddFileAction, CopyNodeAction } from '../gen/node/actions';
4
- export declare function isFileNode(node: Node): node is FileNode;
5
- export declare function isFolderNode(node: Node): node is FolderNode;
6
- export declare function getAncestors(node: Node, allNodes: Node[]): Node[];
7
- export declare function getDescendants(node: Node, allNodes: Node[]): Node[];
8
- export type GenerateNodesCopySrc = {
9
- srcId: Node["id"];
10
- targetName?: Node["name"];
11
- targetParentFolder?: Node["parentFolder"];
12
- };
13
- export type GenerateNodesCopyIdGenerator = (prevId: Node["id"]) => Node["id"];
14
- /**
15
- * Generates a copy of nodes based on the provided source and target information.
16
- * @param src - The source information for generating the copy.
17
- * @param idGenerator - The function used to generate new IDs for the copied nodes.
18
- * @param nodes - The array of nodes to copy from.
19
- * @returns An array of copied nodes with updated IDs and parent folders.
20
- * @throws Error if the root node with the specified ID is not found.
21
- */
22
- export declare function generateNodesCopy(src: GenerateNodesCopySrc, idGenerator: GenerateNodesCopyIdGenerator, nodes: Node[]): CopyNodeInput[];
23
- export declare function generateSynchronizationUnitId(nodes: DocumentDriveState["nodes"]): string;
24
- export declare function generateSynchronizationUnits(state: DocumentDriveState, scopes: OperationScope[], branch?: string): SynchronizationUnit[];
25
- export declare function generateAddNodeAction(state: DocumentDriveState, action: Omit<AddFileInput, "synchronizationUnits">, scopes: OperationScope[]): AddFileAction;
26
- export declare function generateCopyNodeAction(state: DocumentDriveState, action: Omit<CopyNodeInput, "synchronizationUnits">): CopyNodeAction;
27
- export declare function getNextCopyNumber(files: string[], baseFilename: string): number;
28
- export declare function escapeRegExp(string: string): string;
29
- export declare function handleTargetNameCollisions(params: {
30
- nodes: Node[];
31
- targetParentFolder: string | null;
32
- srcName: string;
33
- }): string;
@@ -1 +0,0 @@
1
- export { module as DocumentDrive } from './document-drive';
@@ -1,2 +0,0 @@
1
- export * from './document-models/index'
2
- export {}
@@ -1,6 +0,0 @@
1
- export * from './generic-drive-explorer/index'
2
- export {}
3
- import _default from './generic-drive-explorer/index'
4
- export default _default
5
- export * from './generic-drive-explorer/index'
6
- export {}
@@ -1,3 +0,0 @@
1
- export * from './useDriveActions';
2
- export * from './useDriveActionsWithUiNodes';
3
- export * from './useDriveContext';