@powerhousedao/common 1.1.0

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 (451) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +79 -0
  3. package/dist/.storybook/addons/operations-preset.d.ts +5 -0
  4. package/dist/.storybook/addons/operations.d.ts +1 -0
  5. package/dist/.storybook/create-require.d.ts +1 -0
  6. package/dist/.storybook/main.d.ts +3 -0
  7. package/dist/.storybook/preview.d.ts +4 -0
  8. package/dist/cjs/document-drive.js +131 -0
  9. package/dist/cjs/documentModels.js +1 -0
  10. package/dist/cjs/editors/generic-drive-explorer/editor.js +44 -0
  11. package/dist/cjs/editors/generic-drive-explorer.js +1 -0
  12. package/dist/cjs/editors/hooks.js +1 -0
  13. package/dist/cjs/editors/utils.js +1 -0
  14. package/dist/cjs/editors.js +1 -0
  15. package/dist/cjs/index.js +1 -0
  16. package/dist/cjs/internal/ArrowFilledRight-CdLnbh1Z.js +1 -0
  17. package/dist/cjs/internal/ArrowFilledRight-blx8xu7X-CdLnbh1Z.js +1 -0
  18. package/dist/cjs/internal/ArrowLeft-7pYNK4eX-BztSD5MZ.js +1 -0
  19. package/dist/cjs/internal/ArrowLeft-BztSD5MZ.js +1 -0
  20. package/dist/cjs/internal/ArrowUp-Bbr_dwo_-CdLNuupd.js +1 -0
  21. package/dist/cjs/internal/ArrowUp-CdLNuupd.js +1 -0
  22. package/dist/cjs/internal/BarChart-B0G05Nfd-Dp2lrDt7.js +1 -0
  23. package/dist/cjs/internal/BarChart-Dp2lrDt7.js +1 -0
  24. package/dist/cjs/internal/BaseArrowLeft-BIaGoVNm.js +1 -0
  25. package/dist/cjs/internal/BaseArrowLeft-DBzhFHMt-BIaGoVNm.js +1 -0
  26. package/dist/cjs/internal/BaseArrowRight-BNaqDq8l.js +1 -0
  27. package/dist/cjs/internal/BaseArrowRight-DYQTBWAs-BNaqDq8l.js +1 -0
  28. package/dist/cjs/internal/Braces-N-sH2Zyc-whWd44n5.js +1 -0
  29. package/dist/cjs/internal/Braces-whWd44n5.js +1 -0
  30. package/dist/cjs/internal/Branch-CWdBw1_P-CjqDp6ik.js +1 -0
  31. package/dist/cjs/internal/Branch-DBMUq7Be.js +1 -0
  32. package/dist/cjs/internal/BrickGlobe-67zaG6_H-BPZSrRw1.js +1 -0
  33. package/dist/cjs/internal/BrickGlobe-BPZSrRw1.js +1 -0
  34. package/dist/cjs/internal/Briefcase-CBiNfrHx.js +1 -0
  35. package/dist/cjs/internal/Briefcase-CedW3KRR-CBiNfrHx.js +1 -0
  36. package/dist/cjs/internal/Calendar-C-6HV96D-RADpqN-a.js +1 -0
  37. package/dist/cjs/internal/Calendar-RADpqN-a.js +1 -0
  38. package/dist/cjs/internal/CalendarTime-B6dVE3Vo.js +1 -0
  39. package/dist/cjs/internal/CalendarTime-Bhjzlgn_-B6dVE3Vo.js +1 -0
  40. package/dist/cjs/internal/Caret-BDrIFTBr.js +1 -0
  41. package/dist/cjs/internal/Caret-Ep0j0fz2-BDrIFTBr.js +1 -0
  42. package/dist/cjs/internal/CaretDown-3X7LFYBf-D7RPxYu9.js +1 -0
  43. package/dist/cjs/internal/CaretDown-BvCn0Fhz.js +1 -0
  44. package/dist/cjs/internal/CaretLeft-DFUDq9-g.js +1 -0
  45. package/dist/cjs/internal/CaretLeft-Df3E-68c-DFUDq9-g.js +1 -0
  46. package/dist/cjs/internal/CaretRight-BeYC8ztL.js +1 -0
  47. package/dist/cjs/internal/CaretRight-DSVWUSka-BeYC8ztL.js +1 -0
  48. package/dist/cjs/internal/CaretSort-BWLKg0-u.js +1 -0
  49. package/dist/cjs/internal/CaretSort-BkGdLETT-BWLKg0-u.js +1 -0
  50. package/dist/cjs/internal/Check-13fDRXgb.js +1 -0
  51. package/dist/cjs/internal/Check-DV-U4AEq-13fDRXgb.js +1 -0
  52. package/dist/cjs/internal/CheckCircle-DA-pntuz.js +1 -0
  53. package/dist/cjs/internal/CheckCircle-DI5fEgGd-DA-pntuz.js +1 -0
  54. package/dist/cjs/internal/CheckCircleFill-BFKFsxnE.js +1 -0
  55. package/dist/cjs/internal/CheckCircleFill-C-F0v5mB-BFKFsxnE.js +1 -0
  56. package/dist/cjs/internal/Checkmark-BXnfChpo-DvsdRf2A.js +1 -0
  57. package/dist/cjs/internal/Checkmark-QDhJ9UXt.js +1 -0
  58. package/dist/cjs/internal/ChevronDown-B70QTNR0.js +1 -0
  59. package/dist/cjs/internal/ChevronDown-ouBxrU-k-B70QTNR0.js +1 -0
  60. package/dist/cjs/internal/Circle-DS-uCgZl.js +1 -0
  61. package/dist/cjs/internal/Circle-n3-Wh4HS-DS-uCgZl.js +1 -0
  62. package/dist/cjs/internal/CircleInfo-BhZY3C2Q-CmV_bLmA.js +1 -0
  63. package/dist/cjs/internal/CircleInfo-CmV_bLmA.js +1 -0
  64. package/dist/cjs/internal/Clock-CH2JbdvU.js +1 -0
  65. package/dist/cjs/internal/Clock-DF-XMxha-CH2JbdvU.js +1 -0
  66. package/dist/cjs/internal/ClockFill-Bd0t48q7-CQr2Duwk.js +1 -0
  67. package/dist/cjs/internal/ClockFill-CQr2Duwk.js +1 -0
  68. package/dist/cjs/internal/CloudSlash-B-zJBjaD-KU5Kt4X9.js +1 -0
  69. package/dist/cjs/internal/CloudSlash-KU5Kt4X9.js +1 -0
  70. package/dist/cjs/internal/Collapse-DRDB8Czs-DsoRMkTq.js +1 -0
  71. package/dist/cjs/internal/Collapse-DsoRMkTq.js +1 -0
  72. package/dist/cjs/internal/Connect-Dme-qfKq-BXXoOOed.js +1 -0
  73. package/dist/cjs/internal/Connect-eAdo4Hx7.js +1 -0
  74. package/dist/cjs/internal/Copy-ldv4c9St.js +1 -0
  75. package/dist/cjs/internal/Copy-ms9-7m7Y-ldv4c9St.js +1 -0
  76. package/dist/cjs/internal/CrossCircle-B6ZawoOx-D4Y7qdTL.js +1 -0
  77. package/dist/cjs/internal/CrossCircle-D4Y7qdTL.js +1 -0
  78. package/dist/cjs/internal/Danger-7OjLDAVm.js +1 -0
  79. package/dist/cjs/internal/Danger-KM8BZjue-7OjLDAVm.js +1 -0
  80. package/dist/cjs/internal/Discord-CAS0Cj7s-iahYwFTC.js +1 -0
  81. package/dist/cjs/internal/Discord-Wf7xMoMt.js +1 -0
  82. package/dist/cjs/internal/Drive-BrH7tOs6.js +1 -0
  83. package/dist/cjs/internal/Drive-GMcgBcIY-BrH7tOs6.js +1 -0
  84. package/dist/cjs/internal/Edit-Dr-ZiMSE-NazSGvo6.js +1 -0
  85. package/dist/cjs/internal/Edit-NazSGvo6.js +1 -0
  86. package/dist/cjs/internal/Ellipsis-DP4-vVHS.js +1 -0
  87. package/dist/cjs/internal/Ellipsis-XK8AwMEC-DP4-vVHS.js +1 -0
  88. package/dist/cjs/internal/Error-BmIZ2ZUy-DelEjl70.js +1 -0
  89. package/dist/cjs/internal/Error-DelEjl70.js +1 -0
  90. package/dist/cjs/internal/Exclamation-CVsNS_QS-DkJ3N2VN.js +1 -0
  91. package/dist/cjs/internal/Exclamation-DkJ3N2VN.js +1 -0
  92. package/dist/cjs/internal/File-Ba7ClyaL-KirmxIxE.js +1 -0
  93. package/dist/cjs/internal/File-CJn8SgPd.js +1 -0
  94. package/dist/cjs/internal/FilesEarmark-CyrCQy8E-D9EnVh63.js +1 -0
  95. package/dist/cjs/internal/FilesEarmark-D9EnVh63.js +1 -0
  96. package/dist/cjs/internal/FolderClose-BzvCVJY3.js +1 -0
  97. package/dist/cjs/internal/FolderClose-DG_qHisc-BzvCVJY3.js +1 -0
  98. package/dist/cjs/internal/FolderOpen-i7EPaNAk.js +1 -0
  99. package/dist/cjs/internal/FolderOpen-kDoWFkJO-i7EPaNAk.js +1 -0
  100. package/dist/cjs/internal/FolderPlus-B6YUoFOs.js +1 -0
  101. package/dist/cjs/internal/FolderPlus-CSBSl9lZ-B6YUoFOs.js +1 -0
  102. package/dist/cjs/internal/Forum-DAbn_E5Z.js +1 -0
  103. package/dist/cjs/internal/Forum-DZ-CkLFh-DAbn_E5Z.js +1 -0
  104. package/dist/cjs/internal/Gear-DX2SO77Q.js +1 -0
  105. package/dist/cjs/internal/Gear-cUlHJ4q6-DX2SO77Q.js +1 -0
  106. package/dist/cjs/internal/Github-0PLiINY0-CMo5f5Uh.js +1 -0
  107. package/dist/cjs/internal/Github-CMo5f5Uh.js +1 -0
  108. package/dist/cjs/internal/Globe-B3_r4w92.js +1 -0
  109. package/dist/cjs/internal/Globe-CIYqVkpa-DUO0S1vM.js +1 -0
  110. package/dist/cjs/internal/GlobeWww-DN4yKujh-DRIzLSOr.js +1 -0
  111. package/dist/cjs/internal/GlobeWww-DRIzLSOr.js +1 -0
  112. package/dist/cjs/internal/Hdd-Bpvk6UZo.js +1 -0
  113. package/dist/cjs/internal/Hdd-Dn_LdJIh-Bpvk6UZo.js +1 -0
  114. package/dist/cjs/internal/History-BP4SmaS_-DWAoZ0qu.js +1 -0
  115. package/dist/cjs/internal/History-DWAoZ0qu.js +1 -0
  116. package/dist/cjs/internal/InfoSquare-C98JaLiz-lX0uwCIK.js +1 -0
  117. package/dist/cjs/internal/InfoSquare-lX0uwCIK.js +1 -0
  118. package/dist/cjs/internal/Link-BF7aZjVu-DDK6dy_M.js +1 -0
  119. package/dist/cjs/internal/Link-DDK6dy_M.js +1 -0
  120. package/dist/cjs/internal/Linkedin-D-nw05lH.js +1 -0
  121. package/dist/cjs/internal/Linkedin-DJwIkS6q-D-nw05lH.js +1 -0
  122. package/dist/cjs/internal/Lock-BaCGsppX.js +1 -0
  123. package/dist/cjs/internal/Lock-PyaFHdNS-BaCGsppX.js +1 -0
  124. package/dist/cjs/internal/M-C5952Ned.js +1 -0
  125. package/dist/cjs/internal/M-DozhhPMY-DjdlgSlF.js +1 -0
  126. package/dist/cjs/internal/PackageManager-5kbgWv3Q.js +1 -0
  127. package/dist/cjs/internal/PackageManager-B-MUWliB-CbEgteCV.js +1 -0
  128. package/dist/cjs/internal/Pencil-C3L3Ly8K.js +1 -0
  129. package/dist/cjs/internal/Pencil-D7lvxXIP-C3L3Ly8K.js +1 -0
  130. package/dist/cjs/internal/People-BXgvyPFn.js +1 -0
  131. package/dist/cjs/internal/People-CUB8LYKf-BXgvyPFn.js +1 -0
  132. package/dist/cjs/internal/Person-BPSmnRXQ.js +1 -0
  133. package/dist/cjs/internal/Person-DuL4PQzm-BPSmnRXQ.js +1 -0
  134. package/dist/cjs/internal/Pin-BRoQkCvO.js +1 -0
  135. package/dist/cjs/internal/Pin-DF70btCU-BRoQkCvO.js +1 -0
  136. package/dist/cjs/internal/PinFilled-D0PwF9B7.js +1 -0
  137. package/dist/cjs/internal/PinFilled-vImzS0do-D0PwF9B7.js +1 -0
  138. package/dist/cjs/internal/Plus-2ZPocFkI.js +1 -0
  139. package/dist/cjs/internal/Plus-DPFWGJM4-2ZPocFkI.js +1 -0
  140. package/dist/cjs/internal/PlusCircle-BEnWRjHa-dBGCFo8Z.js +1 -0
  141. package/dist/cjs/internal/PlusCircle-dBGCFo8Z.js +1 -0
  142. package/dist/cjs/internal/PlusSquare-CspgRMoS-DHDOhi18.js +1 -0
  143. package/dist/cjs/internal/PlusSquare-DHDOhi18.js +1 -0
  144. package/dist/cjs/internal/PowerhouseLogoSmall-BkeWSejU.js +1 -0
  145. package/dist/cjs/internal/PowerhouseLogoSmall-CmO95IAS-B3j8LIsL.js +1 -0
  146. package/dist/cjs/internal/Project-BlXuclr0-CwWLGxsS.js +1 -0
  147. package/dist/cjs/internal/Project-CwWLGxsS.js +1 -0
  148. package/dist/cjs/internal/QuestionSquare-B6O9Le7r-DP6UBPx-.js +1 -0
  149. package/dist/cjs/internal/QuestionSquare-DP6UBPx-.js +1 -0
  150. package/dist/cjs/internal/RedoArrow-BJeEsiph-BQh40FmN.js +1 -0
  151. package/dist/cjs/internal/RedoArrow-BQh40FmN.js +1 -0
  152. package/dist/cjs/internal/Reload-6C2CYgrl-CunRqieT.js +1 -0
  153. package/dist/cjs/internal/Reload-CunRqieT.js +1 -0
  154. package/dist/cjs/internal/Renown-6m7hx37h-BW3yEx60.js +1 -0
  155. package/dist/cjs/internal/Renown-BW3yEx60.js +1 -0
  156. package/dist/cjs/internal/RenownHover-CQ0TZHZv-CjvedgXl.js +1 -0
  157. package/dist/cjs/internal/RenownHover-CjvedgXl.js +1 -0
  158. package/dist/cjs/internal/Ring-CEDrFwYP.js +1 -0
  159. package/dist/cjs/internal/Ring-DKv0gnwT-CEDrFwYP.js +1 -0
  160. package/dist/cjs/internal/Save-BBxj68pn-xRbrjpPz.js +1 -0
  161. package/dist/cjs/internal/Save-xRbrjpPz.js +1 -0
  162. package/dist/cjs/internal/Search-DNALFhTU.js +1 -0
  163. package/dist/cjs/internal/Search-YUJuRBLe-DNALFhTU.js +1 -0
  164. package/dist/cjs/internal/Server-0eDgVQU0.js +1 -0
  165. package/dist/cjs/internal/Server-Bfkkjui1-0eDgVQU0.js +1 -0
  166. package/dist/cjs/internal/Settings-B7lMxC-8.js +1 -0
  167. package/dist/cjs/internal/Settings-mbbylBS5-B7lMxC-8.js +1 -0
  168. package/dist/cjs/internal/Synced-CU99z-Ii.js +1 -0
  169. package/dist/cjs/internal/Synced-DKJXzPiw-CU99z-Ii.js +1 -0
  170. package/dist/cjs/internal/Syncing-CMj5KzAD.js +1 -0
  171. package/dist/cjs/internal/Syncing-aT9WSMFf-CMj5KzAD.js +1 -0
  172. package/dist/cjs/internal/Trash-CgSbHk-P-DYAdF_5Q.js +1 -0
  173. package/dist/cjs/internal/Trash-DYAdF_5Q.js +1 -0
  174. package/dist/cjs/internal/TrashFill-C5lRRaw7.js +1 -0
  175. package/dist/cjs/internal/TrashFill-DN50ercb-C5lRRaw7.js +1 -0
  176. package/dist/cjs/internal/TreeViewSlash-BywCsx5o-Ct-NDdPW.js +1 -0
  177. package/dist/cjs/internal/TreeViewSlash-Ct-NDdPW.js +1 -0
  178. package/dist/cjs/internal/TriangleDown-DY6WMAzp.js +1 -0
  179. package/dist/cjs/internal/TriangleDown-eCXwUfu8-DY6WMAzp.js +1 -0
  180. package/dist/cjs/internal/VariantArrowLeft-CfcnlV4w.js +1 -0
  181. package/dist/cjs/internal/VariantArrowLeft-CnuX59_e-CfcnlV4w.js +1 -0
  182. package/dist/cjs/internal/VerticalDots-C8QYf7et-OFxqwEbF.js +1 -0
  183. package/dist/cjs/internal/VerticalDots-OFxqwEbF.js +1 -0
  184. package/dist/cjs/internal/WarningFill-CZYtywR5.js +1 -0
  185. package/dist/cjs/internal/WarningFill-WowAvi5P-CZYtywR5.js +1 -0
  186. package/dist/cjs/internal/XTwitter-9YzUU33n.js +1 -0
  187. package/dist/cjs/internal/XTwitter-k3Pt8itk-9YzUU33n.js +1 -0
  188. package/dist/cjs/internal/Xmark-8qnJCs2Y-C6N4PqFZ.js +1 -0
  189. package/dist/cjs/internal/Xmark-C6N4PqFZ.js +1 -0
  190. package/dist/cjs/internal/XmarkLight-GHzDR5_F-v7Izhl-Y.js +1 -0
  191. package/dist/cjs/internal/XmarkLight-v7Izhl-Y.js +1 -0
  192. package/dist/cjs/internal/Youtube-C4bxUqLV.js +1 -0
  193. package/dist/cjs/internal/Youtube-i8V0IXUU-C4bxUqLV.js +1 -0
  194. package/dist/cjs/internal/index-BHFT2wp6.js +1 -0
  195. package/dist/cjs/internal/index-CK624Dud.js +1 -0
  196. package/dist/cjs/package.json +1 -0
  197. package/dist/cjs/storybook.js +345 -0
  198. package/dist/cjs/utils/lazy-with-preload.js +1 -0
  199. package/dist/document-drive.d.ts +2 -0
  200. package/dist/document-models/document-drive/gen/actions.d.ts +5 -0
  201. package/dist/document-models/document-drive/gen/creators.d.ts +2 -0
  202. package/dist/document-models/document-drive/gen/document-model.d.ts +2 -0
  203. package/dist/document-models/document-drive/gen/drive/actions.d.ts +11 -0
  204. package/dist/document-models/document-drive/gen/drive/creators.d.ts +10 -0
  205. package/dist/document-models/document-drive/gen/drive/error.d.ts +1 -0
  206. package/dist/document-models/document-drive/gen/drive/object.d.ts +13 -0
  207. package/dist/document-models/document-drive/gen/drive/operations.d.ts +13 -0
  208. package/dist/document-models/document-drive/gen/index.d.ts +5 -0
  209. package/dist/document-models/document-drive/gen/node/actions.d.ts +10 -0
  210. package/dist/document-models/document-drive/gen/node/creators.d.ts +9 -0
  211. package/dist/document-models/document-drive/gen/node/error.d.ts +1 -0
  212. package/dist/document-models/document-drive/gen/node/object.d.ts +12 -0
  213. package/dist/document-models/document-drive/gen/node/operations.d.ts +12 -0
  214. package/dist/document-models/document-drive/gen/object.d.ts +17 -0
  215. package/dist/document-models/document-drive/gen/reducer.d.ts +3 -0
  216. package/dist/document-models/document-drive/gen/schema/index.d.ts +2 -0
  217. package/dist/document-models/document-drive/gen/schema/types.d.ts +175 -0
  218. package/dist/document-models/document-drive/gen/schema/zod.d.ts +86 -0
  219. package/dist/document-models/document-drive/gen/types.d.ts +8 -0
  220. package/dist/document-models/document-drive/gen/utils.d.ts +6 -0
  221. package/dist/document-models/document-drive/index.d.ts +60 -0
  222. package/dist/document-models/document-drive/src/reducers/drive.d.ts +2 -0
  223. package/dist/document-models/document-drive/src/reducers/node.d.ts +2 -0
  224. package/dist/document-models/document-drive/src/tests/actions.test.d.ts +1 -0
  225. package/dist/document-models/document-drive/src/tests/base.test.d.ts +1 -0
  226. package/dist/document-models/document-drive/src/tests/document-model.test.d.ts +5 -0
  227. package/dist/document-models/document-drive/src/tests/drive.test.d.ts +5 -0
  228. package/dist/document-models/document-drive/src/tests/node.test.d.ts +5 -0
  229. package/dist/document-models/document-drive/src/tests/utils.test.d.ts +1 -0
  230. package/dist/document-models/document-drive/src/utils.d.ts +33 -0
  231. package/dist/document-models/index.d.ts +1 -0
  232. package/dist/documentModels.d.ts +2 -0
  233. package/dist/editors/generic-drive-explorer/components/create-document.d.ts +7 -0
  234. package/dist/editors/generic-drive-explorer/components/file-content-view.d.ts +11 -0
  235. package/dist/editors/generic-drive-explorer/components/folder-view.d.ts +16 -0
  236. package/dist/editors/generic-drive-explorer/components/layout.d.ts +11 -0
  237. package/dist/editors/generic-drive-explorer/components/search-bar.d.ts +1 -0
  238. package/dist/editors/generic-drive-explorer/editor.d.ts +4 -0
  239. package/dist/editors/generic-drive-explorer/index.d.ts +4 -0
  240. package/dist/editors/generic-drive-explorer.d.ts +6 -0
  241. package/dist/editors/hooks/index.d.ts +3 -0
  242. package/dist/editors/hooks/useDriveActions.d.ts +80 -0
  243. package/dist/editors/hooks/useDriveActionsWithUiNodes.d.ts +16 -0
  244. package/dist/editors/hooks/useDriveContext.d.ts +57 -0
  245. package/dist/editors/hooks.d.ts +2 -0
  246. package/dist/editors/index.d.ts +1 -0
  247. package/dist/editors/utils/index.d.ts +9 -0
  248. package/dist/editors/utils/storybook.d.ts +12 -0
  249. package/dist/editors/utils/uiNodes.d.ts +6 -0
  250. package/dist/editors/utils.d.ts +2 -0
  251. package/dist/editors.d.ts +2 -0
  252. package/dist/es/document-drive.js +4173 -0
  253. package/dist/es/documentModels.js +4 -0
  254. package/dist/es/editors/generic-drive-explorer/editor.js +10487 -0
  255. package/dist/es/editors/generic-drive-explorer.js +15 -0
  256. package/dist/es/editors/hooks.js +7 -0
  257. package/dist/es/editors/utils.js +4 -0
  258. package/dist/es/editors.js +4 -0
  259. package/dist/es/index.js +16 -0
  260. package/dist/es/internal/ArrowFilledRight-blx8xu7X-CeRbq1H9.js +7 -0
  261. package/dist/es/internal/ArrowFilledRight-blx8xu7X.js +7 -0
  262. package/dist/es/internal/ArrowLeft-7pYNK4eX-7pYNK4eX.js +15 -0
  263. package/dist/es/internal/ArrowLeft-7pYNK4eX.js +15 -0
  264. package/dist/es/internal/ArrowUp-Bbr_dwo_-5876i8vu.js +7 -0
  265. package/dist/es/internal/ArrowUp-Bbr_dwo_.js +7 -0
  266. package/dist/es/internal/BarChart-B0G05Nfd-KxM7Dvga.js +7 -0
  267. package/dist/es/internal/BarChart-B0G05Nfd.js +7 -0
  268. package/dist/es/internal/BaseArrowLeft-DBzhFHMt-B42AOfF9.js +7 -0
  269. package/dist/es/internal/BaseArrowLeft-DBzhFHMt.js +7 -0
  270. package/dist/es/internal/BaseArrowRight-DYQTBWAs-y7IfWBCR.js +7 -0
  271. package/dist/es/internal/BaseArrowRight-DYQTBWAs.js +7 -0
  272. package/dist/es/internal/Braces-N-sH2Zyc-N-sH2Zyc.js +17 -0
  273. package/dist/es/internal/Braces-N-sH2Zyc.js +17 -0
  274. package/dist/es/internal/Branch-CWdBw1_P-RCIyyJkm.js +7 -0
  275. package/dist/es/internal/Branch-CWdBw1_P.js +7 -0
  276. package/dist/es/internal/BrickGlobe-67zaG6_H-DzpvMNoP.js +7 -0
  277. package/dist/es/internal/BrickGlobe-67zaG6_H.js +7 -0
  278. package/dist/es/internal/Briefcase-CedW3KRR-5m_tf7kZ.js +7 -0
  279. package/dist/es/internal/Briefcase-CedW3KRR.js +7 -0
  280. package/dist/es/internal/Calendar-C-6HV96D-CW77lPN4.js +7 -0
  281. package/dist/es/internal/Calendar-C-6HV96D.js +7 -0
  282. package/dist/es/internal/CalendarTime-Bhjzlgn_-Dwqtl7S5.js +27 -0
  283. package/dist/es/internal/CalendarTime-Bhjzlgn_.js +27 -0
  284. package/dist/es/internal/Caret-Ep0j0fz2-Sy0mW2fQ.js +7 -0
  285. package/dist/es/internal/Caret-Ep0j0fz2.js +7 -0
  286. package/dist/es/internal/CaretDown-3X7LFYBf-Ds-IOygX.js +14 -0
  287. package/dist/es/internal/CaretDown-3X7LFYBf.js +14 -0
  288. package/dist/es/internal/CaretLeft-Df3E-68c-DIUEps2Y.js +27 -0
  289. package/dist/es/internal/CaretLeft-Df3E-68c.js +27 -0
  290. package/dist/es/internal/CaretRight-DSVWUSka-C-DWrfXy.js +27 -0
  291. package/dist/es/internal/CaretRight-DSVWUSka.js +27 -0
  292. package/dist/es/internal/CaretSort-BkGdLETT-WpazRSDr.js +14 -0
  293. package/dist/es/internal/CaretSort-BkGdLETT.js +14 -0
  294. package/dist/es/internal/Check-DV-U4AEq-C8LS3kCz.js +7 -0
  295. package/dist/es/internal/Check-DV-U4AEq.js +7 -0
  296. package/dist/es/internal/CheckCircle-DI5fEgGd-CTZFiM1C.js +23 -0
  297. package/dist/es/internal/CheckCircle-DI5fEgGd.js +23 -0
  298. package/dist/es/internal/CheckCircleFill-C-F0v5mB-JkGdWGnI.js +7 -0
  299. package/dist/es/internal/CheckCircleFill-C-F0v5mB.js +7 -0
  300. package/dist/es/internal/Checkmark-BXnfChpo-jHcnAiFb.js +14 -0
  301. package/dist/es/internal/Checkmark-BXnfChpo.js +14 -0
  302. package/dist/es/internal/ChevronDown-ouBxrU-k-ouBxrU-k.js +15 -0
  303. package/dist/es/internal/ChevronDown-ouBxrU-k.js +15 -0
  304. package/dist/es/internal/Circle-n3-Wh4HS-n3-Wh4HS.js +7 -0
  305. package/dist/es/internal/Circle-n3-Wh4HS.js +7 -0
  306. package/dist/es/internal/CircleInfo-BhZY3C2Q-C3-X1VlM.js +40 -0
  307. package/dist/es/internal/CircleInfo-BhZY3C2Q.js +40 -0
  308. package/dist/es/internal/Clock-DF-XMxha-DF-XMxha.js +26 -0
  309. package/dist/es/internal/Clock-DF-XMxha.js +26 -0
  310. package/dist/es/internal/ClockFill-Bd0t48q7-lvy1kAho.js +7 -0
  311. package/dist/es/internal/ClockFill-Bd0t48q7.js +7 -0
  312. package/dist/es/internal/CloudSlash-B-zJBjaD-C1F-9lOg.js +7 -0
  313. package/dist/es/internal/CloudSlash-B-zJBjaD.js +7 -0
  314. package/dist/es/internal/Collapse-DRDB8Czs-BekNryES.js +7 -0
  315. package/dist/es/internal/Collapse-DRDB8Czs.js +7 -0
  316. package/dist/es/internal/Connect-Dme-qfKq-IP0_N99W.js +16 -0
  317. package/dist/es/internal/Connect-Dme-qfKq.js +16 -0
  318. package/dist/es/internal/Copy-ms9-7m7Y-ms9-7m7Y.js +14 -0
  319. package/dist/es/internal/Copy-ms9-7m7Y.js +14 -0
  320. package/dist/es/internal/CrossCircle-B6ZawoOx-i2IYK4Vv.js +27 -0
  321. package/dist/es/internal/CrossCircle-B6ZawoOx.js +27 -0
  322. package/dist/es/internal/Danger-KM8BZjue-KM8BZjue.js +18 -0
  323. package/dist/es/internal/Danger-KM8BZjue.js +18 -0
  324. package/dist/es/internal/Discord-CAS0Cj7s-yLPKWGq1.js +31 -0
  325. package/dist/es/internal/Discord-CAS0Cj7s.js +31 -0
  326. package/dist/es/internal/Drive-GMcgBcIY-GMcgBcIY.js +7 -0
  327. package/dist/es/internal/Drive-GMcgBcIY.js +7 -0
  328. package/dist/es/internal/Edit-Dr-ZiMSE-Dr-ZiMSE.js +17 -0
  329. package/dist/es/internal/Edit-Dr-ZiMSE.js +17 -0
  330. package/dist/es/internal/Ellipsis-XK8AwMEC-BxcN5fLL.js +7 -0
  331. package/dist/es/internal/Ellipsis-XK8AwMEC.js +7 -0
  332. package/dist/es/internal/Error-BmIZ2ZUy-CMRuIFZq.js +7 -0
  333. package/dist/es/internal/Error-BmIZ2ZUy.js +7 -0
  334. package/dist/es/internal/Exclamation-CVsNS_QS-C1KPXw1i.js +10 -0
  335. package/dist/es/internal/Exclamation-CVsNS_QS.js +10 -0
  336. package/dist/es/internal/File-Ba7ClyaL-DtY9HGnM.js +24 -0
  337. package/dist/es/internal/File-Ba7ClyaL.js +24 -0
  338. package/dist/es/internal/FilesEarmark-CyrCQy8E-CFdJj_Ef.js +7 -0
  339. package/dist/es/internal/FilesEarmark-CyrCQy8E.js +7 -0
  340. package/dist/es/internal/FolderClose-DG_qHisc-CjzpbiGq.js +13 -0
  341. package/dist/es/internal/FolderClose-DG_qHisc.js +13 -0
  342. package/dist/es/internal/FolderOpen-kDoWFkJO-Bn5p8fQc.js +7 -0
  343. package/dist/es/internal/FolderOpen-kDoWFkJO.js +7 -0
  344. package/dist/es/internal/FolderPlus-CSBSl9lZ-bZtX6Tjv.js +7 -0
  345. package/dist/es/internal/FolderPlus-CSBSl9lZ.js +7 -0
  346. package/dist/es/internal/Forum-DZ-CkLFh-CQZwkSpr.js +22 -0
  347. package/dist/es/internal/Forum-DZ-CkLFh.js +22 -0
  348. package/dist/es/internal/Gear-cUlHJ4q6-xBCayUOx.js +7 -0
  349. package/dist/es/internal/Gear-cUlHJ4q6.js +7 -0
  350. package/dist/es/internal/Github-0PLiINY0-0PLiINY0.js +24 -0
  351. package/dist/es/internal/Github-0PLiINY0.js +24 -0
  352. package/dist/es/internal/Globe-CIYqVkpa-BWKtmqX7.js +7 -0
  353. package/dist/es/internal/Globe-CIYqVkpa.js +7 -0
  354. package/dist/es/internal/GlobeWww-DN4yKujh-DN4yKujh.js +22 -0
  355. package/dist/es/internal/GlobeWww-DN4yKujh.js +22 -0
  356. package/dist/es/internal/Hdd-Dn_LdJIh-rEELfcXk.js +7 -0
  357. package/dist/es/internal/Hdd-Dn_LdJIh.js +7 -0
  358. package/dist/es/internal/History-BP4SmaS_-B3nr_8wA.js +7 -0
  359. package/dist/es/internal/History-BP4SmaS_.js +7 -0
  360. package/dist/es/internal/InfoSquare-C98JaLiz-HKSzAVMC.js +7 -0
  361. package/dist/es/internal/InfoSquare-C98JaLiz.js +7 -0
  362. package/dist/es/internal/Link-BF7aZjVu-BF7aZjVu.js +14 -0
  363. package/dist/es/internal/Link-BF7aZjVu.js +14 -0
  364. package/dist/es/internal/Linkedin-DJwIkS6q-Crs3Irac.js +22 -0
  365. package/dist/es/internal/Linkedin-DJwIkS6q.js +22 -0
  366. package/dist/es/internal/Lock-PyaFHdNS-CjctedsI.js +7 -0
  367. package/dist/es/internal/Lock-PyaFHdNS.js +7 -0
  368. package/dist/es/internal/M-DozhhPMY-DdLfGV1p.js +22 -0
  369. package/dist/es/internal/M-DozhhPMY.js +22 -0
  370. package/dist/es/internal/PackageManager-B-MUWliB-CcDykGr_.js +17 -0
  371. package/dist/es/internal/PackageManager-B-MUWliB.js +17 -0
  372. package/dist/es/internal/Pencil-D7lvxXIP-D7lvxXIP.js +7 -0
  373. package/dist/es/internal/Pencil-D7lvxXIP.js +7 -0
  374. package/dist/es/internal/People-CUB8LYKf-g6-Xfp-P.js +7 -0
  375. package/dist/es/internal/People-CUB8LYKf.js +7 -0
  376. package/dist/es/internal/Person-DuL4PQzm-oe7ryXw3.js +7 -0
  377. package/dist/es/internal/Person-DuL4PQzm.js +7 -0
  378. package/dist/es/internal/Pin-DF70btCU-DF70btCU.js +24 -0
  379. package/dist/es/internal/Pin-DF70btCU.js +24 -0
  380. package/dist/es/internal/PinFilled-vImzS0do-vImzS0do.js +35 -0
  381. package/dist/es/internal/PinFilled-vImzS0do.js +35 -0
  382. package/dist/es/internal/Plus-DPFWGJM4-DzRk_2FJ.js +7 -0
  383. package/dist/es/internal/Plus-DPFWGJM4.js +7 -0
  384. package/dist/es/internal/PlusCircle-BEnWRjHa-DDBhtgAb.js +7 -0
  385. package/dist/es/internal/PlusCircle-BEnWRjHa.js +7 -0
  386. package/dist/es/internal/PlusSquare-CspgRMoS-CspgRMoS.js +24 -0
  387. package/dist/es/internal/PlusSquare-CspgRMoS.js +24 -0
  388. package/dist/es/internal/PowerhouseLogoSmall-CmO95IAS-BE2CSjQW.js +14 -0
  389. package/dist/es/internal/PowerhouseLogoSmall-CmO95IAS.js +14 -0
  390. package/dist/es/internal/Project-BlXuclr0-BlXuclr0.js +7 -0
  391. package/dist/es/internal/Project-BlXuclr0.js +7 -0
  392. package/dist/es/internal/QuestionSquare-B6O9Le7r-B6O9Le7r.js +17 -0
  393. package/dist/es/internal/QuestionSquare-B6O9Le7r.js +17 -0
  394. package/dist/es/internal/RedoArrow-BJeEsiph-DfF6uUVe.js +7 -0
  395. package/dist/es/internal/RedoArrow-BJeEsiph.js +7 -0
  396. package/dist/es/internal/Reload-6C2CYgrl-6C2CYgrl.js +14 -0
  397. package/dist/es/internal/Reload-6C2CYgrl.js +14 -0
  398. package/dist/es/internal/Renown-6m7hx37h-6m7hx37h.js +15 -0
  399. package/dist/es/internal/Renown-6m7hx37h.js +15 -0
  400. package/dist/es/internal/RenownHover-CQ0TZHZv-CQ0TZHZv.js +21 -0
  401. package/dist/es/internal/RenownHover-CQ0TZHZv.js +21 -0
  402. package/dist/es/internal/Ring-DKv0gnwT-vTRkEhSD.js +7 -0
  403. package/dist/es/internal/Ring-DKv0gnwT.js +7 -0
  404. package/dist/es/internal/Save-BBxj68pn-aWwVVXw7.js +7 -0
  405. package/dist/es/internal/Save-BBxj68pn.js +7 -0
  406. package/dist/es/internal/Search-YUJuRBLe-BmhJyjR6.js +7 -0
  407. package/dist/es/internal/Search-YUJuRBLe.js +7 -0
  408. package/dist/es/internal/Server-Bfkkjui1-BwKF1iDk.js +7 -0
  409. package/dist/es/internal/Server-Bfkkjui1.js +7 -0
  410. package/dist/es/internal/Settings-mbbylBS5-mbbylBS5.js +24 -0
  411. package/dist/es/internal/Settings-mbbylBS5.js +24 -0
  412. package/dist/es/internal/Synced-DKJXzPiw-CqMhhyM5.js +7 -0
  413. package/dist/es/internal/Synced-DKJXzPiw.js +7 -0
  414. package/dist/es/internal/Syncing-aT9WSMFf-BWTCrS3p.js +7 -0
  415. package/dist/es/internal/Syncing-aT9WSMFf.js +7 -0
  416. package/dist/es/internal/Trash-CgSbHk-P-Dh-c5Met.js +7 -0
  417. package/dist/es/internal/Trash-CgSbHk-P.js +7 -0
  418. package/dist/es/internal/TrashFill-DN50ercb-Dpxm9akA.js +7 -0
  419. package/dist/es/internal/TrashFill-DN50ercb.js +7 -0
  420. package/dist/es/internal/TreeViewSlash-BywCsx5o-BSzPhf8C.js +43 -0
  421. package/dist/es/internal/TreeViewSlash-BywCsx5o.js +43 -0
  422. package/dist/es/internal/TriangleDown-eCXwUfu8-DqHoyiNd.js +25 -0
  423. package/dist/es/internal/TriangleDown-eCXwUfu8.js +25 -0
  424. package/dist/es/internal/VariantArrowLeft-CnuX59_e-DFRqg5rx.js +7 -0
  425. package/dist/es/internal/VariantArrowLeft-CnuX59_e.js +7 -0
  426. package/dist/es/internal/VerticalDots-C8QYf7et-Kxp4UvO-.js +7 -0
  427. package/dist/es/internal/VerticalDots-C8QYf7et.js +7 -0
  428. package/dist/es/internal/WarningFill-WowAvi5P-DyzPgci7.js +7 -0
  429. package/dist/es/internal/WarningFill-WowAvi5P.js +7 -0
  430. package/dist/es/internal/XTwitter-k3Pt8itk-4crDLOC9.js +22 -0
  431. package/dist/es/internal/XTwitter-k3Pt8itk.js +22 -0
  432. package/dist/es/internal/Xmark-8qnJCs2Y-8qnJCs2Y.js +14 -0
  433. package/dist/es/internal/Xmark-8qnJCs2Y.js +14 -0
  434. package/dist/es/internal/XmarkLight-GHzDR5_F-DDNgDNwu.js +7 -0
  435. package/dist/es/internal/XmarkLight-GHzDR5_F.js +7 -0
  436. package/dist/es/internal/Youtube-i8V0IXUU-CewHZSfQ.js +24 -0
  437. package/dist/es/internal/Youtube-i8V0IXUU.js +24 -0
  438. package/dist/es/internal/index-D8zPFcDT.js +8 -0
  439. package/dist/es/internal/index-h1eFus3x.js +8 -0
  440. package/dist/es/package.json +1 -0
  441. package/dist/es/storybook.js +59348 -0
  442. package/dist/es/utils/lazy-with-preload.js +23 -0
  443. package/dist/index.d.ts +6 -0
  444. package/dist/postcss.config.d.ts +7 -0
  445. package/dist/processors/index.d.ts +0 -0
  446. package/dist/scripts/index.d.ts +1 -0
  447. package/dist/storybook.d.ts +1 -0
  448. package/dist/subgraphs/index.d.ts +0 -0
  449. package/dist/tailwind.config.d.ts +226 -0
  450. package/dist/vite.config.d.ts +2 -0
  451. package/package.json +134 -0
@@ -0,0 +1 @@
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;
@@ -0,0 +1,2 @@
1
+ export * from './document-models/document-drive/index'
2
+ export {}
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,2 @@
1
+ export * from './node/creators';
2
+ export * from './drive/creators';
@@ -0,0 +1,2 @@
1
+ import { DocumentModelState } from 'document-model/document-model';
2
+ export declare const documentModel: DocumentModelState;
@@ -0,0 +1,11 @@
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;
@@ -0,0 +1,10 @@
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;
@@ -0,0 +1 @@
1
+ export declare const errors: {};
@@ -0,0 +1,13 @@
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
+ }
@@ -0,0 +1,13 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ export * from './actions';
2
+ export * from './document-model';
3
+ export * from './object';
4
+ export * from './types';
5
+ export * as actions from './creators';
@@ -0,0 +1,10 @@
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;
@@ -0,0 +1,9 @@
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;
@@ -0,0 +1 @@
1
+ export declare const errors: {};
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,17 @@
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 };
@@ -0,0 +1,3 @@
1
+ import { DocumentDriveState, DocumentDriveLocalState } from './types';
2
+ import { DocumentDriveAction } from './actions';
3
+ export declare const reducer: import('document-model/document').Reducer<DocumentDriveState, DocumentDriveAction, DocumentDriveLocalState>;
@@ -0,0 +1,2 @@
1
+ export * from './types';
2
+ export * as z from './zod';
@@ -0,0 +1,175 @@
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
+ };
@@ -0,0 +1,86 @@
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 {};
@@ -0,0 +1,8 @@
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 };
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1,60 @@
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';
@@ -0,0 +1,2 @@
1
+ import { DocumentDriveDriveOperations } from '../../gen/drive/operations';
2
+ export declare const reducer: DocumentDriveDriveOperations;
@@ -0,0 +1,2 @@
1
+ import { DocumentDriveNodeOperations } from '../../gen/node/operations';
2
+ export declare const reducer: DocumentDriveNodeOperations;
@@ -0,0 +1,5 @@
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 {};
@@ -0,0 +1,5 @@
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 {};
@@ -0,0 +1,5 @@
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 {};
@@ -0,0 +1,33 @@
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;
@@ -0,0 +1 @@
1
+ export { module as DocumentDrive } from './document-drive';
@@ -0,0 +1,2 @@
1
+ export * from './document-models/index'
2
+ export {}
@@ -0,0 +1,7 @@
1
+ import { DocumentModel } from 'document-model/document';
2
+ interface CreateDocumentProps {
3
+ documentModels?: DocumentModel[];
4
+ createDocument: (doc: DocumentModel) => void;
5
+ }
6
+ export declare const CreateDocument: React.FC<CreateDocumentProps>;
7
+ export {};
@@ -0,0 +1,11 @@
1
+ import { UiFileNode } from '@powerhousedao/design-system';
2
+ type Props = {
3
+ fileNodes: UiFileNode[];
4
+ onSelectNode: (uiNode: UiFileNode) => void;
5
+ onRenameNode: (name: string, uiNode: UiFileNode) => void;
6
+ onDuplicateNode: (uiNode: UiFileNode) => void;
7
+ onDeleteNode: (uiNode: UiFileNode) => void;
8
+ isAllowedToCreateDocuments: boolean;
9
+ };
10
+ export declare function FileContentView(props: Props): import("react/jsx-runtime").JSX.Element;
11
+ export default FileContentView;