{"id":24511739,"url":"https://github.com/devnax/react-draghost","last_synced_at":"2025-03-15T09:44:25.240Z","repository":{"id":112973527,"uuid":"562506687","full_name":"devnax/react-draghost","owner":"devnax","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-24T11:11:06.000Z","size":359,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T00:41:25.483Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devnax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-06T15:17:57.000Z","updated_at":"2022-11-06T15:23:18.000Z","dependencies_parsed_at":"2023-07-26T03:30:58.908Z","dependency_job_id":null,"html_url":"https://github.com/devnax/react-draghost","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnax%2Freact-draghost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnax%2Freact-draghost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnax%2Freact-draghost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devnax%2Freact-draghost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devnax","download_url":"https://codeload.github.com/devnax/react-draghost/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243713387,"owners_count":20335566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-22T00:41:10.921Z","updated_at":"2025-03-15T09:44:25.234Z","avatar_url":"https://github.com/devnax.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"```tsx\nimport {DraggableWrapper, Droppable, DroppableProps, WrapperProps} from 'react-draghost'\n\n\u003cDraggableWrapper id=\"builder\" onDrop={() =\u003e {}}\u003e\n   \u003cDroppable id=\"a\"\u003e...\u003c/Droppable\u003e\n   \u003cDroppable id=\"b\"\u003e...\u003c/Droppable\u003e\n\u003c/DraggableWrapper\u003e\n\n\n\ninterface WrapperProps {\n   instance: Drake;\n   id: string;\n   onDrop?: (props: { el: ELE, target: ELE, source: ELE, sibling: ELE }) =\u003e void;\n   onDrag?: (props: { el: ELE, source: ELE }) =\u003e void;\n   onDragend?: (props: { el: ELE }) =\u003e void;\n   onCalcel?: (props: { el: ELE, container: ELE, source: ELE }) =\u003e void;\n   onRemove?: (props: { el: ELE, container: ELE, source: ELE }) =\u003e void;\n   onShadow?: (props: { el: ELE, container: ELE, source: ELE }) =\u003e void;\n   onOver?: (props: { el: ELE, container: ELE, source: ELE }) =\u003e void;\n   onOut?: (props: { el: ELE, container: ELE, source: ELE }) =\u003e void;\n   onCloned?: (props: { clone: ELE, original: ELE, type: 'mirror' | 'copy' }) =\u003e void;\n\n   moves?: (props: { el?: ELE, container?: ELE, handle?: ELE, sibling?: ELE }) =\u003e boolean;\n   accepts?: (props: { el: ELE, target: ELE, source: ELE, sibling: ELE }) =\u003e boolean;\n   copy?: (props: { el: ELE, source: ELE }) =\u003e boolean;\n   invalid?: (props: { el?: ELE, target?: ELE }) =\u003e boolean;\n   isContainer?: (props: { el?: ELE }) =\u003e boolean;\n\n   direction?: 'vertical' | 'horizontal';\n   copySortSource?: boolean;\n   revertOnSpill?: boolean;\n   removeOnSpill?: boolean;\n   mirrorContainer?: ELE;\n   ignoreInputTextSelection?: boolean;\n   slideFactorX?: number;\n   slideFactorY?: number;\n\n   droppables: {\n      [droppableId: string]: DroppableProps\n   }\n}\n\n\ninterface DroppableProps {\n   id: string;\n   selfOnly?: boolean;\n   disabled?: boolean;\n   observe: () =\u003e void;\n\n   moves?: (props: { el?: ELE, container?: ELE, handle?: ELE, sibling?: ELE }) =\u003e boolean;\n   accepts?: (props: { el: ELE, target: ELE, source: ELE, sibling: ELE }) =\u003e boolean;\n   copy?: (props: { el: Element, source: Element }) =\u003e boolean;\n   invalid?: (props: { el?: ELE, target?: ELE }) =\u003e boolean;\n   isContainer?: (props: { el?: ELE }) =\u003e boolean;\n\n   onDrop?: (props: { fromIndex: number | null, toIndex: number | null, el: ELE, target: ELE, source: ELE, sibling: ELE }) =\u003e void;\n   onDrag?: (props: { el: ELE, source: ELE }) =\u003e void;\n   onDragend?: (props: { el: ELE }) =\u003e void;\n   onCalcel?: (props: { el: ELE, container: ELE, source: ELE }) =\u003e void;\n   onRemove?: (props: { el: ELE, container: ELE, source: ELE }) =\u003e void;\n   onShadow?: (props: { el: ELE, container: ELE, source: ELE }) =\u003e void;\n   onOver?: (props: { el: ELE, container: ELE, source: ELE }) =\u003e void;\n   onOut?: (props: { el: ELE, container: ELE, source: ELE }) =\u003e void;\n   onCloned?: (props: { clone: ELE, original: ELE, type: 'mirror' | 'copy' }) =\u003e void;\n\n   sendData?: (props: { fromIndex: number | null, toIndex: number | null, el: ELE, target: ELE, source: ELE, sibling: ELE }) =\u003e any;\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevnax%2Freact-draghost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevnax%2Freact-draghost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevnax%2Freact-draghost/lists"}