{"id":22802516,"url":"https://github.com/mindscreen/neos-prototype-generator","last_synced_at":"2025-07-23T16:03:50.907Z","repository":{"id":62529110,"uuid":"161194542","full_name":"mindscreen/neos-prototype-generator","owner":"mindscreen","description":"Generate default fusion-prototypes to map to view-components","archived":false,"fork":false,"pushed_at":"2019-09-18T14:18:40.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-17T04:08:07.899Z","etag":null,"topics":["fusion","neoscms"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mindscreen.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":"2018-12-10T15:20:37.000Z","updated_at":"2019-09-18T14:14:25.000Z","dependencies_parsed_at":"2022-11-02T10:45:49.956Z","dependency_job_id":null,"html_url":"https://github.com/mindscreen/neos-prototype-generator","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/mindscreen/neos-prototype-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindscreen%2Fneos-prototype-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindscreen%2Fneos-prototype-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindscreen%2Fneos-prototype-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindscreen%2Fneos-prototype-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mindscreen","download_url":"https://codeload.github.com/mindscreen/neos-prototype-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindscreen%2Fneos-prototype-generator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266708132,"owners_count":23971939,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["fusion","neoscms"],"created_at":"2024-12-12T09:06:19.828Z","updated_at":"2025-07-23T16:03:50.848Z","avatar_url":"https://github.com/mindscreen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mindscreen.Neos.PrototypeGenerator\nThis package provides a default prototype generator for creating fusion component-based prototypes to enable front-end developers to create a new node-type based on a yaml-configuration and a view-component without worrying about basic property-mapping.\n\n## Installation\n`composer require mindscreen/neos-prototype-generator`\n\n## Usage\n* Extend your new node-type from `Mindscreen.Neos:ContentComponent` (or include the `'Mindscreen.Neos:PrototypeGeneratorMixin'`).\n* Inline-editable properties are recognized with `type: string` and `ui.inlineEditable: true`. Block-editing can be enabled with `ui.inline.editorOptions.multiLine: true`.\n* Images (`Neos\\Media\\Domain\\Model\\ImageInterface`) provide a `\u003cproperty\u003eUri` and `\u003cproperty\u003eAsset`.\n* Child-nodes will render with their specific node as `node` in the context; `Neos.Neos:ContentCollection` will render with the respective `nodePath`\n* Set a specific target-component prototype in `options.componentName`.\n* Specify the child-node mapping in `options.componentMapping.childNodes.\u003cnodeName\u003e`\n\n## Configuration\nSettings:\n```yaml\nMindscreen:\n  Neos:\n    PrototypeGenerator:\n      componentPatterns:\n        - '\u003cpackage\u003e:Component.Atom.\u003cnodetype\u003e'\n        - '\u003cpackage\u003e:Component.Molecule.\u003cnodetype\u003e'\n        - '\u003cpackage\u003e:Component.Organism.\u003cnodetype\u003e'\n      superType: 'Neos.Neos:ContentComponent'\n```\n\nUsage in node-types:\n```yaml\n'Vendor.Package:Example':\n  superTypes:\n    'Neos.Neos:Content': true\n    'Mindscreen.Neos:PrototypeGeneratorMixin': true\n  childNodes:\n    main:\n      type: 'Neos.Neos:ContentCollection'\n  properties:\n    singleLine:\n      type: string\n      ui:\n        inlineEditable: true\n        inline:\n          editorOptions:\n            placeholder: singleline\n    multiLine:\n      type: string\n      ui:\n        inlineEditable: true\n        inline:\n          editorOptions:\n            placeholder: multiline\n            multiLine: true\n  options:\n    componentName: 'Vendor.Package:Components.General.Example'\n    componentMapping:\n      childNodes:\n        main: content\n```\n\n## Notes\n### Content-Collections\nIf a node-type is a `Neos.Neos:ContentCollection` (e.g. to generate a simple box-component), a ContentCollection will be rendered as `content`. This can be configured with the option `options.componentMapping.childNodes.this`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindscreen%2Fneos-prototype-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmindscreen%2Fneos-prototype-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindscreen%2Fneos-prototype-generator/lists"}