{"id":25132211,"url":"https://github.com/mh4gf/prosemirror-details","last_synced_at":"2025-04-23T20:44:51.454Z","repository":{"id":60673163,"uuid":"543895132","full_name":"MH4GF/prosemirror-details","owner":"MH4GF","description":"ProseMirror's open/close details list component","archived":false,"fork":false,"pushed_at":"2022-10-08T05:23:01.000Z","size":223,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T16:54:20.170Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://prosemirror-details-list.vercel.app","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/MH4GF.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}},"created_at":"2022-10-01T04:58:29.000Z","updated_at":"2025-02-04T14:49:47.000Z","dependencies_parsed_at":"2023-01-19T15:46:00.697Z","dependency_job_id":null,"html_url":"https://github.com/MH4GF/prosemirror-details","commit_stats":null,"previous_names":["mh4gf/prosemirror-details-list"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MH4GF%2Fprosemirror-details","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MH4GF%2Fprosemirror-details/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MH4GF%2Fprosemirror-details/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MH4GF%2Fprosemirror-details/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MH4GF","download_url":"https://codeload.github.com/MH4GF/prosemirror-details/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237815433,"owners_count":19370676,"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-02-08T14:17:17.482Z","updated_at":"2025-02-08T14:17:18.181Z","avatar_url":"https://github.com/MH4GF.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ProseMirror details module\n\nThis module defines an open/closeable [details](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details) element that works with rich text editor based on ProseMirror.\n\n## Documentation\n\n### `detailsNodes` (options: DetailsNodesOptions) → Object\n\nThis function creates a set of [node specs](https://prosemirror.net/docs/ref/#model.SchemaSpec.nodes) for details and summary.\n\n### `DetailsNodesOptions`\n\n- `detailsGroup`: string\n  - A group name (something like \"block\") to add to the details node type.\n- `detailsContent`: string\n  - The content expression for details node. The first child is already added in summary, and summary is optional.\n- `summaryContent`: string\n  - The content expression for summary node. A text or inline group would be specified. Check to see if the element can be included internally as part of the HTML specification for [summary element](https://developer.mozilla.org/ja/docs/Web/HTML/Element/summary).\n\n### `DetailsNode` class implements [NodeView](https://prosemirror.net/docs/ref/#view.NodeView)\n\n[NodeView](https://prosemirror.net/docs/ref/#view.NodeView) for open/close interaction. Use it in EditorView as follows:\n\n```typescript\nnew EditorView(document.querySelector('#editor'), {\n  state,\n  nodeViews: {\n    details: (node, view, getPos) =\u003e new DetailsView(node, view, getPos),\n  },\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmh4gf%2Fprosemirror-details","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmh4gf%2Fprosemirror-details","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmh4gf%2Fprosemirror-details/lists"}