{"_id":"@bookthat-group/strapi-plugin-view-config","_rev":"2-506941c989395250f2f08a2767012d89","name":"@bookthat-group/strapi-plugin-view-config","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"@bookthat-group/strapi-plugin-view-config","version":"0.0.1","keywords":["strapi","strapi-plugin","view-config","content-manager","configuration"],"author":{"name":"BookThat Group"},"license":"MIT","_id":"@bookthat-group/strapi-plugin-view-config@0.0.1","maintainers":[{"name":"development-bookthat","email":"development@bookthat.nl"}],"homepage":"https://github.com/bookthat-group/strapi-plugin-view-config#readme","bugs":{"url":"https://github.com/bookthat-group/strapi-plugin-view-config/issues"},"dist":{"shasum":"ba9154f55ae5e2a67fe88cbe18021ac28ff1a081","tarball":"https://registry.npmjs.org/@bookthat-group/strapi-plugin-view-config/-/strapi-plugin-view-config-0.0.1.tgz","fileCount":8,"integrity":"sha512-65Cs1iuKjf3ehlgNPu/P9qLo7r4g+u3bNpBHXQrN6lGKIS0MRJJXlHvnWiCkA8NlYdQeLI6KrCEhkYlZhETx9A==","signatures":[{"sig":"MEUCIA9qQDIbAx1Ze5RRQDcq3XhyA9JAss5FoqupiJt2Y0+SAiEAlyjLGW/fO6uY5VguqoerY1Sf6n90xTX31US4rmFfeqo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bookthat-group%2fstrapi-plugin-view-config@0.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":13022},"main":"strapi-server.js","strapi":{"kind":"plugin","name":"view-config","required":false,"description":"Manage and extend content manager view settings, including descriptions and other configurations, using a configuration file located in the 'config/' folder.","displayName":"View Config (Configuration File)"},"gitHead":"f01d491f87220e305c09cd348a5c32f719f69e73","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"development-bookthat","email":"development@bookthat.nl"},"repository":{"url":"git+https://github.com/bookthat-group/strapi-plugin-view-config.git","type":"git"},"_npmVersion":"10.8.2","description":"A Strapi plugin that manages and extends content manager view configurations through a configuration file.","directories":{},"_nodeVersion":"20.18.2","dependencies":{},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/strapi-plugin-view-config_0.0.1_1739894250365_0.40833087111090727","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@bookthat-group/strapi-plugin-view-config","version":"0.1.0","description":"A Strapi plugin that manages and extends content manager view configurations through a configuration file.","main":"strapi-server.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/bookthat-group/strapi-plugin-view-config.git"},"keywords":["strapi","strapi-plugin","view-config","content-manager","configuration"],"author":{"name":"BookThat Group"},"license":"MIT","dependencies":{},"bugs":{"url":"https://github.com/bookthat-group/strapi-plugin-view-config/issues"},"homepage":"https://github.com/bookthat-group/strapi-plugin-view-config#readme","strapi":{"name":"view-config","displayName":"View Config (Configuration File)","description":"Manage and extend content manager view settings, including descriptions and other configurations, using a configuration file located in the 'config/' folder.","required":false,"kind":"plugin"},"_id":"@bookthat-group/strapi-plugin-view-config@0.1.0","gitHead":"549d8478bffe3a9275402744174098b092e529d3","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-4pXd80TQbibg6bebM4Zv+5SM4Z3uSJS+jOXxMFaouDxY/Mt+ZsAyioOx29p29sZ/k4nkRTmkC7gaU2lK+UZ+KA==","shasum":"0fb68684785a3644a932c5a08dd7d8de653989c2","tarball":"https://registry.npmjs.org/@bookthat-group/strapi-plugin-view-config/-/strapi-plugin-view-config-0.1.0.tgz","fileCount":8,"unpackedSize":13172,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bookthat-group%2fstrapi-plugin-view-config@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCWeyZeIZw4nCMpKu2rUjmn12YQTXyqlUGXSgvbGuSPPQIgB6SzpUcWsF8vEUIEuT/1P7kXjErQrcHiPBVLLDgo9GI="}]},"_npmUser":{"name":"development-bookthat","email":"development@bookthat.nl"},"directories":{},"maintainers":[{"name":"development-bookthat","email":"development@bookthat.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/strapi-plugin-view-config_0.1.0_1743081645423_0.1466816743967232"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-18T15:57:30.292Z","modified":"2025-03-27T13:20:46.021Z","0.0.1":"2025-02-18T15:57:30.581Z","0.1.0":"2025-03-27T13:20:45.651Z"},"bugs":{"url":"https://github.com/bookthat-group/strapi-plugin-view-config/issues"},"author":{"name":"BookThat Group"},"license":"MIT","homepage":"https://github.com/bookthat-group/strapi-plugin-view-config#readme","keywords":["strapi","strapi-plugin","view-config","content-manager","configuration"],"repository":{"type":"git","url":"git+https://github.com/bookthat-group/strapi-plugin-view-config.git"},"description":"A Strapi plugin that manages and extends content manager view configurations through a configuration file.","maintainers":[{"name":"development-bookthat","email":"development@bookthat.nl"}],"readme":"# strapi-plugin-view-config\n\n## Overview\n\n[![NPM Version](https://img.shields.io/npm/v/@bookthat-group/strapi-plugin-view-config)](https://www.npmjs.com/package/@bookthat-group/strapi-plugin-view-config)\n\n**Note:** This plugin overwrites user settings on each build. Any manual modifications in the Strapi admin panel will be reset when the application is restarted.\n\n`strapi-plugin-view-config` is a Strapi plugin designed to manage and extend content manager view configurations through a configuration file. This plugin allows developers to customize the view settings of their content types and components, enhancing the user experience in the Strapi admin panel.\n\n## Features\n\n- **Dynamic Configuration**: Easily manage view settings for content types and components using a configuration file.\n- **Skip Invalid Fields**: Option to skip non-existing fields during configuration setup.\n- **Customizable Descriptions**: Add descriptions and other metadata to views for better clarity in the admin interface.\n\n## Installation\n\nTo install the `strapi-plugin-view-config`, follow these steps:\n\n1. Navigate to your Strapi project directory.\n2. Install the plugin using npm or yarn:\n\n   ```bash\n   npm install @bookthat-group/strapi-plugin-view-config\n   ```\n\n   or\n\n   ```bash\n   yarn add @bookthat-group/strapi-plugin-view-config\n   ```\n\n3. Add the plugin to your `./config/plugins.js` file:\n\n   ```javascript\n   module.exports = {\n     // other plugins\n     \"view-config\": {\n       enabled: true,\n       config: {\n         skipInvalidFields: false, // Disable import of non-valid fields (based on Strapi fields)\n       },\n     },\n   };\n   ```\n\n4. Create a configuration file at `./config/view-config.js` or `./config/view-config.ts` based on your preference.\n\n## Configuration\n\nThe configuration file should export an object that defines the structure of view settings. This follows Strapi’s core admin configuration. For reference, see the [Strapi core admin configuration](https://github.com/strapi/strapi/blob/fdac61dd05ca665168f51f655f1d165b55ec4231/packages/core/admin/admin/src/types/adminConfiguration.ts#L17).\n\n**Note:** This file contains all possible options, but the plugin currently only supports `fields: edit & list`. Future updates will extend support for additional settings.\n\n```javascript\n\"use strict\";\n\nmodule.exports = {\n  // Component views\n  components: {},\n  // API views\n  contentTypes: {\n    \"article.article\": {\n      settings: {\n        // \"bulkable\": true,\n        // \"filterable\": true,\n        // \"searchable\": true,\n        // \"pageSize\": 10,\n        // \"mainField\": \"name\",\n        // \"defaultSortBy\": \"name\",\n        // \"defaultSortOrder\": \"ASC\"\n      },\n      fields: {\n        name: {\n          edit: {\n            description: \"The name of the article\",\n          },\n          list: {\n            // label: \"name\",\n            // searchable: true,\n            // sortable: true,\n          },\n        },\n        price: {\n          edit: {\n            description: \"The price of the article\",\n          },\n        },\n      },\n      layouts: {\n        // edit: [\n        //   { name: \"name\", size: 6 },\n        //   { name: \"price\", size: 4 },\n        // ],\n      },\n    },\n  },\n};\n```\n\n## Usage\n\nOnce the plugin is installed and configured, it will automatically set up the view configurations when you start or develop your Strapi application.\n\n1. Start your Strapi application:\n\n   ```bash\n   npm run develop\n   ```\n\n2. The plugin will log the setup process in the console.\n\n## Contributing\n\nContributions are welcome! To contribute to this project, please follow these steps:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature/YourFeature`).\n3. Make your changes and commit them (`git commit -m 'Add some feature'`).\n4. Push to the branch (`git push origin feature/YourFeature`).\n5. Open a pull request.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Contact\n\nFor any inquiries, please reach out to [development@bookthat.nl](mailto:development@bookthat.nl).\n\n## WIP\n\n- Extend the plugin to support more configurations (e.g., layout, settings).\n","readmeFilename":"README.md"}