@powerhousedao/common 1.1.2-dev.0 → 1.2.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.
- package/dist/editors/generic-drive-explorer/components/create-document.d.ts +4 -3
- package/dist/editors/generic-drive-explorer/components/create-document.d.ts.map +1 -0
- package/dist/editors/generic-drive-explorer/components/create-document.js +14 -0
- package/dist/editors/generic-drive-explorer/components/file-content-view.d.ts +2 -1
- package/dist/editors/generic-drive-explorer/components/file-content-view.d.ts.map +1 -0
- package/dist/editors/generic-drive-explorer/components/file-content-view.js +78 -0
- package/dist/editors/generic-drive-explorer/components/folder-view.d.ts +3 -2
- package/dist/editors/generic-drive-explorer/components/folder-view.d.ts.map +1 -0
- package/dist/editors/generic-drive-explorer/components/folder-view.js +29 -0
- package/dist/editors/generic-drive-explorer/components/layout.d.ts +2 -1
- package/dist/editors/generic-drive-explorer/components/layout.d.ts.map +1 -0
- package/dist/editors/generic-drive-explorer/components/layout.js +20 -0
- package/dist/editors/generic-drive-explorer/components/search-bar.d.ts +1 -0
- package/dist/editors/generic-drive-explorer/components/search-bar.d.ts.map +1 -0
- package/dist/editors/generic-drive-explorer/components/search-bar.js +36 -0
- package/dist/editors/generic-drive-explorer/editor.d.ts +9 -3
- package/dist/editors/generic-drive-explorer/editor.d.ts.map +1 -0
- package/dist/editors/generic-drive-explorer/editor.js +41 -0
- package/dist/editors/generic-drive-explorer/generic-drive-explorer.stories.d.ts +6 -0
- package/dist/editors/generic-drive-explorer/generic-drive-explorer.stories.d.ts.map +1 -0
- package/dist/editors/generic-drive-explorer/generic-drive-explorer.stories.js +9 -0
- package/dist/editors/generic-drive-explorer/index.d.ts +4 -4
- package/dist/editors/generic-drive-explorer/index.d.ts.map +1 -0
- package/dist/editors/generic-drive-explorer/index.js +11 -0
- package/dist/editors/index.d.ts +2 -1
- package/dist/editors/index.d.ts.map +1 -0
- package/dist/editors/index.js +1 -0
- package/dist/editors/utils/index.d.ts +3 -1
- package/dist/editors/utils/index.d.ts.map +1 -0
- package/dist/editors/utils/index.js +6 -0
- package/dist/editors/utils/storybook.d.ts +9 -8
- package/dist/editors/utils/storybook.d.ts.map +1 -0
- package/dist/editors/utils/storybook.js +71 -0
- package/dist/editors/utils/uiNodes.d.ts +3 -2
- package/dist/editors/utils/uiNodes.d.ts.map +1 -0
- package/dist/editors/utils/uiNodes.js +67 -0
- package/dist/index.d.ts +2 -6
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -0
- package/dist/package.json +71 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +29 -93
- package/README.md +0 -79
- package/dist/.storybook/addons/operations-preset.d.ts +0 -5
- package/dist/.storybook/addons/operations.d.ts +0 -1
- package/dist/.storybook/create-require.d.ts +0 -1
- package/dist/.storybook/main.d.ts +0 -3
- package/dist/.storybook/preview.d.ts +0 -4
- package/dist/cjs/document-drive.js +0 -131
- package/dist/cjs/documentModels.js +0 -1
- package/dist/cjs/editors/generic-drive-explorer/editor.js +0 -44
- package/dist/cjs/editors/generic-drive-explorer.js +0 -1
- package/dist/cjs/editors/hooks.js +0 -1
- package/dist/cjs/editors/utils.js +0 -1
- package/dist/cjs/editors.js +0 -1
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/internal/ArrowFilledRight-CdLnbh1Z.js +0 -1
- package/dist/cjs/internal/ArrowFilledRight-blx8xu7X-CdLnbh1Z.js +0 -1
- package/dist/cjs/internal/ArrowLeft-7pYNK4eX-BztSD5MZ.js +0 -1
- package/dist/cjs/internal/ArrowLeft-BztSD5MZ.js +0 -1
- package/dist/cjs/internal/ArrowUp-Bbr_dwo_-CdLNuupd.js +0 -1
- package/dist/cjs/internal/ArrowUp-CdLNuupd.js +0 -1
- package/dist/cjs/internal/BarChart-B0G05Nfd-Dp2lrDt7.js +0 -1
- package/dist/cjs/internal/BarChart-Dp2lrDt7.js +0 -1
- package/dist/cjs/internal/BaseArrowLeft-BIaGoVNm.js +0 -1
- package/dist/cjs/internal/BaseArrowLeft-DBzhFHMt-BIaGoVNm.js +0 -1
- package/dist/cjs/internal/BaseArrowRight-BNaqDq8l.js +0 -1
- package/dist/cjs/internal/BaseArrowRight-DYQTBWAs-BNaqDq8l.js +0 -1
- package/dist/cjs/internal/Braces-N-sH2Zyc-whWd44n5.js +0 -1
- package/dist/cjs/internal/Braces-whWd44n5.js +0 -1
- package/dist/cjs/internal/Branch-CWdBw1_P-CjqDp6ik.js +0 -1
- package/dist/cjs/internal/Branch-DBMUq7Be.js +0 -1
- package/dist/cjs/internal/BrickGlobe-67zaG6_H-BPZSrRw1.js +0 -1
- package/dist/cjs/internal/BrickGlobe-BPZSrRw1.js +0 -1
- package/dist/cjs/internal/Briefcase-CBiNfrHx.js +0 -1
- package/dist/cjs/internal/Briefcase-CedW3KRR-CBiNfrHx.js +0 -1
- package/dist/cjs/internal/Calendar-C-6HV96D-RADpqN-a.js +0 -1
- package/dist/cjs/internal/Calendar-RADpqN-a.js +0 -1
- package/dist/cjs/internal/CalendarTime-B6dVE3Vo.js +0 -1
- package/dist/cjs/internal/CalendarTime-Bhjzlgn_-B6dVE3Vo.js +0 -1
- package/dist/cjs/internal/Caret-BDrIFTBr.js +0 -1
- package/dist/cjs/internal/Caret-Ep0j0fz2-BDrIFTBr.js +0 -1
- package/dist/cjs/internal/CaretDown-3X7LFYBf-D7RPxYu9.js +0 -1
- package/dist/cjs/internal/CaretDown-BvCn0Fhz.js +0 -1
- package/dist/cjs/internal/CaretLeft-DFUDq9-g.js +0 -1
- package/dist/cjs/internal/CaretLeft-Df3E-68c-DFUDq9-g.js +0 -1
- package/dist/cjs/internal/CaretRight-BeYC8ztL.js +0 -1
- package/dist/cjs/internal/CaretRight-DSVWUSka-BeYC8ztL.js +0 -1
- package/dist/cjs/internal/CaretSort-BWLKg0-u.js +0 -1
- package/dist/cjs/internal/CaretSort-BkGdLETT-BWLKg0-u.js +0 -1
- package/dist/cjs/internal/Check-13fDRXgb.js +0 -1
- package/dist/cjs/internal/Check-DV-U4AEq-13fDRXgb.js +0 -1
- package/dist/cjs/internal/CheckCircle-DA-pntuz.js +0 -1
- package/dist/cjs/internal/CheckCircle-DI5fEgGd-DA-pntuz.js +0 -1
- package/dist/cjs/internal/CheckCircleFill-BFKFsxnE.js +0 -1
- package/dist/cjs/internal/CheckCircleFill-C-F0v5mB-BFKFsxnE.js +0 -1
- package/dist/cjs/internal/Checkmark-BXnfChpo-DvsdRf2A.js +0 -1
- package/dist/cjs/internal/Checkmark-QDhJ9UXt.js +0 -1
- package/dist/cjs/internal/ChevronDown-B70QTNR0.js +0 -1
- package/dist/cjs/internal/ChevronDown-ouBxrU-k-B70QTNR0.js +0 -1
- package/dist/cjs/internal/Circle-DS-uCgZl.js +0 -1
- package/dist/cjs/internal/Circle-n3-Wh4HS-DS-uCgZl.js +0 -1
- package/dist/cjs/internal/CircleInfo-BhZY3C2Q-CmV_bLmA.js +0 -1
- package/dist/cjs/internal/CircleInfo-CmV_bLmA.js +0 -1
- package/dist/cjs/internal/Clock-CH2JbdvU.js +0 -1
- package/dist/cjs/internal/Clock-DF-XMxha-CH2JbdvU.js +0 -1
- package/dist/cjs/internal/ClockFill-Bd0t48q7-CQr2Duwk.js +0 -1
- package/dist/cjs/internal/ClockFill-CQr2Duwk.js +0 -1
- package/dist/cjs/internal/CloudSlash-B-zJBjaD-KU5Kt4X9.js +0 -1
- package/dist/cjs/internal/CloudSlash-KU5Kt4X9.js +0 -1
- package/dist/cjs/internal/Collapse-DRDB8Czs-DsoRMkTq.js +0 -1
- package/dist/cjs/internal/Collapse-DsoRMkTq.js +0 -1
- package/dist/cjs/internal/Connect-Dme-qfKq-BXXoOOed.js +0 -1
- package/dist/cjs/internal/Connect-eAdo4Hx7.js +0 -1
- package/dist/cjs/internal/Copy-ldv4c9St.js +0 -1
- package/dist/cjs/internal/Copy-ms9-7m7Y-ldv4c9St.js +0 -1
- package/dist/cjs/internal/CrossCircle-B6ZawoOx-D4Y7qdTL.js +0 -1
- package/dist/cjs/internal/CrossCircle-D4Y7qdTL.js +0 -1
- package/dist/cjs/internal/Danger-7OjLDAVm.js +0 -1
- package/dist/cjs/internal/Danger-KM8BZjue-7OjLDAVm.js +0 -1
- package/dist/cjs/internal/Discord-CAS0Cj7s-iahYwFTC.js +0 -1
- package/dist/cjs/internal/Discord-Wf7xMoMt.js +0 -1
- package/dist/cjs/internal/Drive-BrH7tOs6.js +0 -1
- package/dist/cjs/internal/Drive-GMcgBcIY-BrH7tOs6.js +0 -1
- package/dist/cjs/internal/Edit-Dr-ZiMSE-NazSGvo6.js +0 -1
- package/dist/cjs/internal/Edit-NazSGvo6.js +0 -1
- package/dist/cjs/internal/Ellipsis-DP4-vVHS.js +0 -1
- package/dist/cjs/internal/Ellipsis-XK8AwMEC-DP4-vVHS.js +0 -1
- package/dist/cjs/internal/Error-BmIZ2ZUy-DelEjl70.js +0 -1
- package/dist/cjs/internal/Error-DelEjl70.js +0 -1
- package/dist/cjs/internal/Exclamation-CVsNS_QS-DkJ3N2VN.js +0 -1
- package/dist/cjs/internal/Exclamation-DkJ3N2VN.js +0 -1
- package/dist/cjs/internal/File-Ba7ClyaL-KirmxIxE.js +0 -1
- package/dist/cjs/internal/File-CJn8SgPd.js +0 -1
- package/dist/cjs/internal/FilesEarmark-CyrCQy8E-D9EnVh63.js +0 -1
- package/dist/cjs/internal/FilesEarmark-D9EnVh63.js +0 -1
- package/dist/cjs/internal/FolderClose-BzvCVJY3.js +0 -1
- package/dist/cjs/internal/FolderClose-DG_qHisc-BzvCVJY3.js +0 -1
- package/dist/cjs/internal/FolderOpen-i7EPaNAk.js +0 -1
- package/dist/cjs/internal/FolderOpen-kDoWFkJO-i7EPaNAk.js +0 -1
- package/dist/cjs/internal/FolderPlus-B6YUoFOs.js +0 -1
- package/dist/cjs/internal/FolderPlus-CSBSl9lZ-B6YUoFOs.js +0 -1
- package/dist/cjs/internal/Forum-DAbn_E5Z.js +0 -1
- package/dist/cjs/internal/Forum-DZ-CkLFh-DAbn_E5Z.js +0 -1
- package/dist/cjs/internal/Gear-DX2SO77Q.js +0 -1
- package/dist/cjs/internal/Gear-cUlHJ4q6-DX2SO77Q.js +0 -1
- package/dist/cjs/internal/Github-0PLiINY0-CMo5f5Uh.js +0 -1
- package/dist/cjs/internal/Github-CMo5f5Uh.js +0 -1
- package/dist/cjs/internal/Globe-B3_r4w92.js +0 -1
- package/dist/cjs/internal/Globe-CIYqVkpa-DUO0S1vM.js +0 -1
- package/dist/cjs/internal/GlobeWww-DN4yKujh-DRIzLSOr.js +0 -1
- package/dist/cjs/internal/GlobeWww-DRIzLSOr.js +0 -1
- package/dist/cjs/internal/Hdd-Bpvk6UZo.js +0 -1
- package/dist/cjs/internal/Hdd-Dn_LdJIh-Bpvk6UZo.js +0 -1
- package/dist/cjs/internal/History-BP4SmaS_-DWAoZ0qu.js +0 -1
- package/dist/cjs/internal/History-DWAoZ0qu.js +0 -1
- package/dist/cjs/internal/InfoSquare-C98JaLiz-lX0uwCIK.js +0 -1
- package/dist/cjs/internal/InfoSquare-lX0uwCIK.js +0 -1
- package/dist/cjs/internal/Link-BF7aZjVu-DDK6dy_M.js +0 -1
- package/dist/cjs/internal/Link-DDK6dy_M.js +0 -1
- package/dist/cjs/internal/Linkedin-D-nw05lH.js +0 -1
- package/dist/cjs/internal/Linkedin-DJwIkS6q-D-nw05lH.js +0 -1
- package/dist/cjs/internal/Lock-BaCGsppX.js +0 -1
- package/dist/cjs/internal/Lock-PyaFHdNS-BaCGsppX.js +0 -1
- package/dist/cjs/internal/M-C5952Ned.js +0 -1
- package/dist/cjs/internal/M-DozhhPMY-DjdlgSlF.js +0 -1
- package/dist/cjs/internal/PackageManager-5kbgWv3Q.js +0 -1
- package/dist/cjs/internal/PackageManager-B-MUWliB-CbEgteCV.js +0 -1
- package/dist/cjs/internal/Pencil-C3L3Ly8K.js +0 -1
- package/dist/cjs/internal/Pencil-D7lvxXIP-C3L3Ly8K.js +0 -1
- package/dist/cjs/internal/People-BXgvyPFn.js +0 -1
- package/dist/cjs/internal/People-CUB8LYKf-BXgvyPFn.js +0 -1
- package/dist/cjs/internal/Person-BPSmnRXQ.js +0 -1
- package/dist/cjs/internal/Person-DuL4PQzm-BPSmnRXQ.js +0 -1
- package/dist/cjs/internal/Pin-BRoQkCvO.js +0 -1
- package/dist/cjs/internal/Pin-DF70btCU-BRoQkCvO.js +0 -1
- package/dist/cjs/internal/PinFilled-D0PwF9B7.js +0 -1
- package/dist/cjs/internal/PinFilled-vImzS0do-D0PwF9B7.js +0 -1
- package/dist/cjs/internal/Plus-2ZPocFkI.js +0 -1
- package/dist/cjs/internal/Plus-DPFWGJM4-2ZPocFkI.js +0 -1
- package/dist/cjs/internal/PlusCircle-BEnWRjHa-dBGCFo8Z.js +0 -1
- package/dist/cjs/internal/PlusCircle-dBGCFo8Z.js +0 -1
- package/dist/cjs/internal/PlusSquare-CspgRMoS-DHDOhi18.js +0 -1
- package/dist/cjs/internal/PlusSquare-DHDOhi18.js +0 -1
- package/dist/cjs/internal/PowerhouseLogoSmall-BkeWSejU.js +0 -1
- package/dist/cjs/internal/PowerhouseLogoSmall-CmO95IAS-B3j8LIsL.js +0 -1
- package/dist/cjs/internal/Project-BlXuclr0-CwWLGxsS.js +0 -1
- package/dist/cjs/internal/Project-CwWLGxsS.js +0 -1
- package/dist/cjs/internal/QuestionSquare-B6O9Le7r-DP6UBPx-.js +0 -1
- package/dist/cjs/internal/QuestionSquare-DP6UBPx-.js +0 -1
- package/dist/cjs/internal/RedoArrow-BJeEsiph-BQh40FmN.js +0 -1
- package/dist/cjs/internal/RedoArrow-BQh40FmN.js +0 -1
- package/dist/cjs/internal/Reload-6C2CYgrl-CunRqieT.js +0 -1
- package/dist/cjs/internal/Reload-CunRqieT.js +0 -1
- package/dist/cjs/internal/Renown-6m7hx37h-BW3yEx60.js +0 -1
- package/dist/cjs/internal/Renown-BW3yEx60.js +0 -1
- package/dist/cjs/internal/RenownHover-CQ0TZHZv-CjvedgXl.js +0 -1
- package/dist/cjs/internal/RenownHover-CjvedgXl.js +0 -1
- package/dist/cjs/internal/Ring-CEDrFwYP.js +0 -1
- package/dist/cjs/internal/Ring-DKv0gnwT-CEDrFwYP.js +0 -1
- package/dist/cjs/internal/Save-BBxj68pn-xRbrjpPz.js +0 -1
- package/dist/cjs/internal/Save-xRbrjpPz.js +0 -1
- package/dist/cjs/internal/Search-DNALFhTU.js +0 -1
- package/dist/cjs/internal/Search-YUJuRBLe-DNALFhTU.js +0 -1
- package/dist/cjs/internal/Server-0eDgVQU0.js +0 -1
- package/dist/cjs/internal/Server-Bfkkjui1-0eDgVQU0.js +0 -1
- package/dist/cjs/internal/Settings-B7lMxC-8.js +0 -1
- package/dist/cjs/internal/Settings-mbbylBS5-B7lMxC-8.js +0 -1
- package/dist/cjs/internal/Synced-CU99z-Ii.js +0 -1
- package/dist/cjs/internal/Synced-DKJXzPiw-CU99z-Ii.js +0 -1
- package/dist/cjs/internal/Syncing-CMj5KzAD.js +0 -1
- package/dist/cjs/internal/Syncing-aT9WSMFf-CMj5KzAD.js +0 -1
- package/dist/cjs/internal/Trash-CgSbHk-P-DYAdF_5Q.js +0 -1
- package/dist/cjs/internal/Trash-DYAdF_5Q.js +0 -1
- package/dist/cjs/internal/TrashFill-C5lRRaw7.js +0 -1
- package/dist/cjs/internal/TrashFill-DN50ercb-C5lRRaw7.js +0 -1
- package/dist/cjs/internal/TreeViewSlash-BywCsx5o-Ct-NDdPW.js +0 -1
- package/dist/cjs/internal/TreeViewSlash-Ct-NDdPW.js +0 -1
- package/dist/cjs/internal/TriangleDown-DY6WMAzp.js +0 -1
- package/dist/cjs/internal/TriangleDown-eCXwUfu8-DY6WMAzp.js +0 -1
- package/dist/cjs/internal/VariantArrowLeft-CfcnlV4w.js +0 -1
- package/dist/cjs/internal/VariantArrowLeft-CnuX59_e-CfcnlV4w.js +0 -1
- package/dist/cjs/internal/VerticalDots-C8QYf7et-OFxqwEbF.js +0 -1
- package/dist/cjs/internal/VerticalDots-OFxqwEbF.js +0 -1
- package/dist/cjs/internal/WarningFill-CZYtywR5.js +0 -1
- package/dist/cjs/internal/WarningFill-WowAvi5P-CZYtywR5.js +0 -1
- package/dist/cjs/internal/XTwitter-9YzUU33n.js +0 -1
- package/dist/cjs/internal/XTwitter-k3Pt8itk-9YzUU33n.js +0 -1
- package/dist/cjs/internal/Xmark-8qnJCs2Y-C6N4PqFZ.js +0 -1
- package/dist/cjs/internal/Xmark-C6N4PqFZ.js +0 -1
- package/dist/cjs/internal/XmarkLight-GHzDR5_F-v7Izhl-Y.js +0 -1
- package/dist/cjs/internal/XmarkLight-v7Izhl-Y.js +0 -1
- package/dist/cjs/internal/Youtube-C4bxUqLV.js +0 -1
- package/dist/cjs/internal/Youtube-i8V0IXUU-C4bxUqLV.js +0 -1
- package/dist/cjs/internal/index-BHFT2wp6.js +0 -1
- package/dist/cjs/internal/index-CK624Dud.js +0 -1
- package/dist/cjs/package.json +0 -1
- package/dist/cjs/storybook.js +0 -345
- package/dist/cjs/utils/lazy-with-preload.js +0 -1
- package/dist/document-drive.d.ts +0 -2
- package/dist/document-models/document-drive/gen/actions.d.ts +0 -5
- package/dist/document-models/document-drive/gen/creators.d.ts +0 -2
- package/dist/document-models/document-drive/gen/document-model.d.ts +0 -2
- package/dist/document-models/document-drive/gen/drive/actions.d.ts +0 -11
- package/dist/document-models/document-drive/gen/drive/creators.d.ts +0 -10
- package/dist/document-models/document-drive/gen/drive/error.d.ts +0 -1
- package/dist/document-models/document-drive/gen/drive/object.d.ts +0 -13
- package/dist/document-models/document-drive/gen/drive/operations.d.ts +0 -13
- package/dist/document-models/document-drive/gen/index.d.ts +0 -5
- package/dist/document-models/document-drive/gen/node/actions.d.ts +0 -10
- package/dist/document-models/document-drive/gen/node/creators.d.ts +0 -9
- package/dist/document-models/document-drive/gen/node/error.d.ts +0 -1
- package/dist/document-models/document-drive/gen/node/object.d.ts +0 -12
- package/dist/document-models/document-drive/gen/node/operations.d.ts +0 -12
- package/dist/document-models/document-drive/gen/object.d.ts +0 -17
- package/dist/document-models/document-drive/gen/reducer.d.ts +0 -3
- package/dist/document-models/document-drive/gen/schema/index.d.ts +0 -2
- package/dist/document-models/document-drive/gen/schema/types.d.ts +0 -175
- package/dist/document-models/document-drive/gen/schema/zod.d.ts +0 -86
- package/dist/document-models/document-drive/gen/types.d.ts +0 -8
- package/dist/document-models/document-drive/gen/utils.d.ts +0 -6
- package/dist/document-models/document-drive/index.d.ts +0 -60
- package/dist/document-models/document-drive/src/reducers/drive.d.ts +0 -2
- package/dist/document-models/document-drive/src/reducers/node.d.ts +0 -2
- package/dist/document-models/document-drive/src/tests/actions.test.d.ts +0 -1
- package/dist/document-models/document-drive/src/tests/base.test.d.ts +0 -1
- package/dist/document-models/document-drive/src/tests/document-model.test.d.ts +0 -5
- package/dist/document-models/document-drive/src/tests/drive.test.d.ts +0 -5
- package/dist/document-models/document-drive/src/tests/node.test.d.ts +0 -5
- package/dist/document-models/document-drive/src/tests/utils.test.d.ts +0 -1
- package/dist/document-models/document-drive/src/utils.d.ts +0 -33
- package/dist/document-models/index.d.ts +0 -1
- package/dist/documentModels.d.ts +0 -2
- package/dist/editors/generic-drive-explorer.d.ts +0 -6
- package/dist/editors/hooks/index.d.ts +0 -3
- package/dist/editors/hooks/useDriveActions.d.ts +0 -80
- package/dist/editors/hooks/useDriveActionsWithUiNodes.d.ts +0 -16
- package/dist/editors/hooks/useDriveContext.d.ts +0 -57
- package/dist/editors/hooks.d.ts +0 -2
- package/dist/editors/utils.d.ts +0 -2
- package/dist/editors.d.ts +0 -2
- package/dist/es/document-drive.js +0 -4173
- package/dist/es/documentModels.js +0 -4
- package/dist/es/editors/generic-drive-explorer/editor.js +0 -10487
- package/dist/es/editors/generic-drive-explorer.js +0 -15
- package/dist/es/editors/hooks.js +0 -7
- package/dist/es/editors/utils.js +0 -4
- package/dist/es/editors.js +0 -4
- package/dist/es/index.js +0 -16
- package/dist/es/internal/ArrowFilledRight-blx8xu7X-CeRbq1H9.js +0 -7
- package/dist/es/internal/ArrowFilledRight-blx8xu7X.js +0 -7
- package/dist/es/internal/ArrowLeft-7pYNK4eX-7pYNK4eX.js +0 -15
- package/dist/es/internal/ArrowLeft-7pYNK4eX.js +0 -15
- package/dist/es/internal/ArrowUp-Bbr_dwo_-5876i8vu.js +0 -7
- package/dist/es/internal/ArrowUp-Bbr_dwo_.js +0 -7
- package/dist/es/internal/BarChart-B0G05Nfd-KxM7Dvga.js +0 -7
- package/dist/es/internal/BarChart-B0G05Nfd.js +0 -7
- package/dist/es/internal/BaseArrowLeft-DBzhFHMt-B42AOfF9.js +0 -7
- package/dist/es/internal/BaseArrowLeft-DBzhFHMt.js +0 -7
- package/dist/es/internal/BaseArrowRight-DYQTBWAs-y7IfWBCR.js +0 -7
- package/dist/es/internal/BaseArrowRight-DYQTBWAs.js +0 -7
- package/dist/es/internal/Braces-N-sH2Zyc-N-sH2Zyc.js +0 -17
- package/dist/es/internal/Braces-N-sH2Zyc.js +0 -17
- package/dist/es/internal/Branch-CWdBw1_P-RCIyyJkm.js +0 -7
- package/dist/es/internal/Branch-CWdBw1_P.js +0 -7
- package/dist/es/internal/BrickGlobe-67zaG6_H-DzpvMNoP.js +0 -7
- package/dist/es/internal/BrickGlobe-67zaG6_H.js +0 -7
- package/dist/es/internal/Briefcase-CedW3KRR-5m_tf7kZ.js +0 -7
- package/dist/es/internal/Briefcase-CedW3KRR.js +0 -7
- package/dist/es/internal/Calendar-C-6HV96D-CW77lPN4.js +0 -7
- package/dist/es/internal/Calendar-C-6HV96D.js +0 -7
- package/dist/es/internal/CalendarTime-Bhjzlgn_-Dwqtl7S5.js +0 -27
- package/dist/es/internal/CalendarTime-Bhjzlgn_.js +0 -27
- package/dist/es/internal/Caret-Ep0j0fz2-Sy0mW2fQ.js +0 -7
- package/dist/es/internal/Caret-Ep0j0fz2.js +0 -7
- package/dist/es/internal/CaretDown-3X7LFYBf-Ds-IOygX.js +0 -14
- package/dist/es/internal/CaretDown-3X7LFYBf.js +0 -14
- package/dist/es/internal/CaretLeft-Df3E-68c-DIUEps2Y.js +0 -27
- package/dist/es/internal/CaretLeft-Df3E-68c.js +0 -27
- package/dist/es/internal/CaretRight-DSVWUSka-C-DWrfXy.js +0 -27
- package/dist/es/internal/CaretRight-DSVWUSka.js +0 -27
- package/dist/es/internal/CaretSort-BkGdLETT-WpazRSDr.js +0 -14
- package/dist/es/internal/CaretSort-BkGdLETT.js +0 -14
- package/dist/es/internal/Check-DV-U4AEq-C8LS3kCz.js +0 -7
- package/dist/es/internal/Check-DV-U4AEq.js +0 -7
- package/dist/es/internal/CheckCircle-DI5fEgGd-CTZFiM1C.js +0 -23
- package/dist/es/internal/CheckCircle-DI5fEgGd.js +0 -23
- package/dist/es/internal/CheckCircleFill-C-F0v5mB-JkGdWGnI.js +0 -7
- package/dist/es/internal/CheckCircleFill-C-F0v5mB.js +0 -7
- package/dist/es/internal/Checkmark-BXnfChpo-jHcnAiFb.js +0 -14
- package/dist/es/internal/Checkmark-BXnfChpo.js +0 -14
- package/dist/es/internal/ChevronDown-ouBxrU-k-ouBxrU-k.js +0 -15
- package/dist/es/internal/ChevronDown-ouBxrU-k.js +0 -15
- package/dist/es/internal/Circle-n3-Wh4HS-n3-Wh4HS.js +0 -7
- package/dist/es/internal/Circle-n3-Wh4HS.js +0 -7
- package/dist/es/internal/CircleInfo-BhZY3C2Q-C3-X1VlM.js +0 -40
- package/dist/es/internal/CircleInfo-BhZY3C2Q.js +0 -40
- package/dist/es/internal/Clock-DF-XMxha-DF-XMxha.js +0 -26
- package/dist/es/internal/Clock-DF-XMxha.js +0 -26
- package/dist/es/internal/ClockFill-Bd0t48q7-lvy1kAho.js +0 -7
- package/dist/es/internal/ClockFill-Bd0t48q7.js +0 -7
- package/dist/es/internal/CloudSlash-B-zJBjaD-C1F-9lOg.js +0 -7
- package/dist/es/internal/CloudSlash-B-zJBjaD.js +0 -7
- package/dist/es/internal/Collapse-DRDB8Czs-BekNryES.js +0 -7
- package/dist/es/internal/Collapse-DRDB8Czs.js +0 -7
- package/dist/es/internal/Connect-Dme-qfKq-IP0_N99W.js +0 -16
- package/dist/es/internal/Connect-Dme-qfKq.js +0 -16
- package/dist/es/internal/Copy-ms9-7m7Y-ms9-7m7Y.js +0 -14
- package/dist/es/internal/Copy-ms9-7m7Y.js +0 -14
- package/dist/es/internal/CrossCircle-B6ZawoOx-i2IYK4Vv.js +0 -27
- package/dist/es/internal/CrossCircle-B6ZawoOx.js +0 -27
- package/dist/es/internal/Danger-KM8BZjue-KM8BZjue.js +0 -18
- package/dist/es/internal/Danger-KM8BZjue.js +0 -18
- package/dist/es/internal/Discord-CAS0Cj7s-yLPKWGq1.js +0 -31
- package/dist/es/internal/Discord-CAS0Cj7s.js +0 -31
- package/dist/es/internal/Drive-GMcgBcIY-GMcgBcIY.js +0 -7
- package/dist/es/internal/Drive-GMcgBcIY.js +0 -7
- package/dist/es/internal/Edit-Dr-ZiMSE-Dr-ZiMSE.js +0 -17
- package/dist/es/internal/Edit-Dr-ZiMSE.js +0 -17
- package/dist/es/internal/Ellipsis-XK8AwMEC-BxcN5fLL.js +0 -7
- package/dist/es/internal/Ellipsis-XK8AwMEC.js +0 -7
- package/dist/es/internal/Error-BmIZ2ZUy-CMRuIFZq.js +0 -7
- package/dist/es/internal/Error-BmIZ2ZUy.js +0 -7
- package/dist/es/internal/Exclamation-CVsNS_QS-C1KPXw1i.js +0 -10
- package/dist/es/internal/Exclamation-CVsNS_QS.js +0 -10
- package/dist/es/internal/File-Ba7ClyaL-DtY9HGnM.js +0 -24
- package/dist/es/internal/File-Ba7ClyaL.js +0 -24
- package/dist/es/internal/FilesEarmark-CyrCQy8E-CFdJj_Ef.js +0 -7
- package/dist/es/internal/FilesEarmark-CyrCQy8E.js +0 -7
- package/dist/es/internal/FolderClose-DG_qHisc-CjzpbiGq.js +0 -13
- package/dist/es/internal/FolderClose-DG_qHisc.js +0 -13
- package/dist/es/internal/FolderOpen-kDoWFkJO-Bn5p8fQc.js +0 -7
- package/dist/es/internal/FolderOpen-kDoWFkJO.js +0 -7
- package/dist/es/internal/FolderPlus-CSBSl9lZ-bZtX6Tjv.js +0 -7
- package/dist/es/internal/FolderPlus-CSBSl9lZ.js +0 -7
- package/dist/es/internal/Forum-DZ-CkLFh-CQZwkSpr.js +0 -22
- package/dist/es/internal/Forum-DZ-CkLFh.js +0 -22
- package/dist/es/internal/Gear-cUlHJ4q6-xBCayUOx.js +0 -7
- package/dist/es/internal/Gear-cUlHJ4q6.js +0 -7
- package/dist/es/internal/Github-0PLiINY0-0PLiINY0.js +0 -24
- package/dist/es/internal/Github-0PLiINY0.js +0 -24
- package/dist/es/internal/Globe-CIYqVkpa-BWKtmqX7.js +0 -7
- package/dist/es/internal/Globe-CIYqVkpa.js +0 -7
- package/dist/es/internal/GlobeWww-DN4yKujh-DN4yKujh.js +0 -22
- package/dist/es/internal/GlobeWww-DN4yKujh.js +0 -22
- package/dist/es/internal/Hdd-Dn_LdJIh-rEELfcXk.js +0 -7
- package/dist/es/internal/Hdd-Dn_LdJIh.js +0 -7
- package/dist/es/internal/History-BP4SmaS_-B3nr_8wA.js +0 -7
- package/dist/es/internal/History-BP4SmaS_.js +0 -7
- package/dist/es/internal/InfoSquare-C98JaLiz-HKSzAVMC.js +0 -7
- package/dist/es/internal/InfoSquare-C98JaLiz.js +0 -7
- package/dist/es/internal/Link-BF7aZjVu-BF7aZjVu.js +0 -14
- package/dist/es/internal/Link-BF7aZjVu.js +0 -14
- package/dist/es/internal/Linkedin-DJwIkS6q-Crs3Irac.js +0 -22
- package/dist/es/internal/Linkedin-DJwIkS6q.js +0 -22
- package/dist/es/internal/Lock-PyaFHdNS-CjctedsI.js +0 -7
- package/dist/es/internal/Lock-PyaFHdNS.js +0 -7
- package/dist/es/internal/M-DozhhPMY-DdLfGV1p.js +0 -22
- package/dist/es/internal/M-DozhhPMY.js +0 -22
- package/dist/es/internal/PackageManager-B-MUWliB-CcDykGr_.js +0 -17
- package/dist/es/internal/PackageManager-B-MUWliB.js +0 -17
- package/dist/es/internal/Pencil-D7lvxXIP-D7lvxXIP.js +0 -7
- package/dist/es/internal/Pencil-D7lvxXIP.js +0 -7
- package/dist/es/internal/People-CUB8LYKf-g6-Xfp-P.js +0 -7
- package/dist/es/internal/People-CUB8LYKf.js +0 -7
- package/dist/es/internal/Person-DuL4PQzm-oe7ryXw3.js +0 -7
- package/dist/es/internal/Person-DuL4PQzm.js +0 -7
- package/dist/es/internal/Pin-DF70btCU-DF70btCU.js +0 -24
- package/dist/es/internal/Pin-DF70btCU.js +0 -24
- package/dist/es/internal/PinFilled-vImzS0do-vImzS0do.js +0 -35
- package/dist/es/internal/PinFilled-vImzS0do.js +0 -35
- package/dist/es/internal/Plus-DPFWGJM4-DzRk_2FJ.js +0 -7
- package/dist/es/internal/Plus-DPFWGJM4.js +0 -7
- package/dist/es/internal/PlusCircle-BEnWRjHa-DDBhtgAb.js +0 -7
- package/dist/es/internal/PlusCircle-BEnWRjHa.js +0 -7
- package/dist/es/internal/PlusSquare-CspgRMoS-CspgRMoS.js +0 -24
- package/dist/es/internal/PlusSquare-CspgRMoS.js +0 -24
- package/dist/es/internal/PowerhouseLogoSmall-CmO95IAS-BE2CSjQW.js +0 -14
- package/dist/es/internal/PowerhouseLogoSmall-CmO95IAS.js +0 -14
- package/dist/es/internal/Project-BlXuclr0-BlXuclr0.js +0 -7
- package/dist/es/internal/Project-BlXuclr0.js +0 -7
- package/dist/es/internal/QuestionSquare-B6O9Le7r-B6O9Le7r.js +0 -17
- package/dist/es/internal/QuestionSquare-B6O9Le7r.js +0 -17
- package/dist/es/internal/RedoArrow-BJeEsiph-DfF6uUVe.js +0 -7
- package/dist/es/internal/RedoArrow-BJeEsiph.js +0 -7
- package/dist/es/internal/Reload-6C2CYgrl-6C2CYgrl.js +0 -14
- package/dist/es/internal/Reload-6C2CYgrl.js +0 -14
- package/dist/es/internal/Renown-6m7hx37h-6m7hx37h.js +0 -15
- package/dist/es/internal/Renown-6m7hx37h.js +0 -15
- package/dist/es/internal/RenownHover-CQ0TZHZv-CQ0TZHZv.js +0 -21
- package/dist/es/internal/RenownHover-CQ0TZHZv.js +0 -21
- package/dist/es/internal/Ring-DKv0gnwT-vTRkEhSD.js +0 -7
- package/dist/es/internal/Ring-DKv0gnwT.js +0 -7
- package/dist/es/internal/Save-BBxj68pn-aWwVVXw7.js +0 -7
- package/dist/es/internal/Save-BBxj68pn.js +0 -7
- package/dist/es/internal/Search-YUJuRBLe-BmhJyjR6.js +0 -7
- package/dist/es/internal/Search-YUJuRBLe.js +0 -7
- package/dist/es/internal/Server-Bfkkjui1-BwKF1iDk.js +0 -7
- package/dist/es/internal/Server-Bfkkjui1.js +0 -7
- package/dist/es/internal/Settings-mbbylBS5-mbbylBS5.js +0 -24
- package/dist/es/internal/Settings-mbbylBS5.js +0 -24
- package/dist/es/internal/Synced-DKJXzPiw-CqMhhyM5.js +0 -7
- package/dist/es/internal/Synced-DKJXzPiw.js +0 -7
- package/dist/es/internal/Syncing-aT9WSMFf-BWTCrS3p.js +0 -7
- package/dist/es/internal/Syncing-aT9WSMFf.js +0 -7
- package/dist/es/internal/Trash-CgSbHk-P-Dh-c5Met.js +0 -7
- package/dist/es/internal/Trash-CgSbHk-P.js +0 -7
- package/dist/es/internal/TrashFill-DN50ercb-Dpxm9akA.js +0 -7
- package/dist/es/internal/TrashFill-DN50ercb.js +0 -7
- package/dist/es/internal/TreeViewSlash-BywCsx5o-BSzPhf8C.js +0 -43
- package/dist/es/internal/TreeViewSlash-BywCsx5o.js +0 -43
- package/dist/es/internal/TriangleDown-eCXwUfu8-DqHoyiNd.js +0 -25
- package/dist/es/internal/TriangleDown-eCXwUfu8.js +0 -25
- package/dist/es/internal/VariantArrowLeft-CnuX59_e-DFRqg5rx.js +0 -7
- package/dist/es/internal/VariantArrowLeft-CnuX59_e.js +0 -7
- package/dist/es/internal/VerticalDots-C8QYf7et-Kxp4UvO-.js +0 -7
- package/dist/es/internal/VerticalDots-C8QYf7et.js +0 -7
- package/dist/es/internal/WarningFill-WowAvi5P-DyzPgci7.js +0 -7
- package/dist/es/internal/WarningFill-WowAvi5P.js +0 -7
- package/dist/es/internal/XTwitter-k3Pt8itk-4crDLOC9.js +0 -22
- package/dist/es/internal/XTwitter-k3Pt8itk.js +0 -22
- package/dist/es/internal/Xmark-8qnJCs2Y-8qnJCs2Y.js +0 -14
- package/dist/es/internal/Xmark-8qnJCs2Y.js +0 -14
- package/dist/es/internal/XmarkLight-GHzDR5_F-DDNgDNwu.js +0 -7
- package/dist/es/internal/XmarkLight-GHzDR5_F.js +0 -7
- package/dist/es/internal/Youtube-i8V0IXUU-CewHZSfQ.js +0 -24
- package/dist/es/internal/Youtube-i8V0IXUU.js +0 -24
- package/dist/es/internal/index-D8zPFcDT.js +0 -8
- package/dist/es/internal/index-h1eFus3x.js +0 -8
- package/dist/es/package.json +0 -1
- package/dist/es/storybook.js +0 -59348
- package/dist/es/utils/lazy-with-preload.js +0 -23
- package/dist/postcss.config.d.ts +0 -7
- package/dist/processors/index.d.ts +0 -0
- package/dist/scripts/index.d.ts +0 -1
- package/dist/storybook.d.ts +0 -1
- package/dist/subgraphs/index.d.ts +0 -0
- package/dist/tailwind.config.d.ts +0 -226
- 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;
|
package/dist/document-drive.d.ts
DELETED
|
@@ -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,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,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,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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
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';
|
package/dist/documentModels.d.ts
DELETED