{"id":18685814,"url":"https://github.com/grapesjs/style-filter","last_synced_at":"2025-04-12T04:51:54.592Z","repository":{"id":33278705,"uuid":"156092134","full_name":"GrapesJS/style-filter","owner":"GrapesJS","description":"Add filter type input to the Style Manager in GrapesJS","archived":false,"fork":false,"pushed_at":"2023-06-09T12:59:58.000Z","size":466,"stargazers_count":21,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T04:51:44.721Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GrapesJS.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}},"created_at":"2018-11-04T14:44:58.000Z","updated_at":"2024-08-04T07:31:44.000Z","dependencies_parsed_at":"2024-01-23T21:43:06.360Z","dependency_job_id":null,"html_url":"https://github.com/GrapesJS/style-filter","commit_stats":null,"previous_names":["artf/grapesjs-style-filter"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fstyle-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fstyle-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fstyle-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrapesJS%2Fstyle-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GrapesJS","download_url":"https://codeload.github.com/GrapesJS/style-filter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519473,"owners_count":21117757,"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":"2024-11-07T10:24:21.884Z","updated_at":"2025-04-12T04:51:54.572Z","avatar_url":"https://github.com/GrapesJS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GrapesJS Style Filter\n\nThis plugins adds a new `filter` [built-in style property](https://grapesjs.com/docs/modules/Style-manager.html#built-in-properties) which can be used for CSS properties like `filter` and `backdrop-filter`.\n\n[Demo](https://jsfiddle.net/xg23astu)\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/11614725/47965316-c0fd6f80-e045-11e8-8ce6-8b0251bf36a4.png\" alt=\"GrapesJS\" align=\"center\"/\u003e\u003c/p\u003e\n\n\n\u003e Requires GrapesJS v0.18.3 or higher\n\n\n\n\n\n## Summary\n\n* Plugin name: `grapesjs-style-filter`\n* New Style Manager built-in property\n  * `filter`\n\n\n\n\n## Download\n\n* CDN\n  * `https://unpkg.com/grapesjs-style-filter`\n* NPM\n  * `npm i grapesjs-style-filter`\n* GIT\n  * `git clone https://github.com/GrapesJS/style-filter.git`\n\n\n\n\n\n## Usage\n\nDirectly in the browser\n```html\n\u003clink href=\"https://unpkg.com/grapesjs/dist/css/grapes.min.css\" rel=\"stylesheet\"/\u003e\n\u003cscript src=\"https://unpkg.com/grapesjs\"\u003e\u003c/script\u003e\n\u003cscript src=\"path/to/grapesjs-style-filter.min.js\"\u003e\u003c/script\u003e\n\n\u003cdiv id=\"gjs\"\u003e\u003c/div\u003e\n\n\u003cscript type=\"text/javascript\"\u003e\n  const editor = grapesjs.init({\n      container : '#gjs',\n      // ...\n      plugins: ['grapesjs-style-filter'],\n\n      // Use the property on init\n      styleManager: {\n        sectors: [\n          // ...\n          {\n            id: 'extra',\n            name: 'Extra',\n            properties: [\n              { extend: 'filter' },\n              { extend: 'filter', property: 'backdrop-filter' },\n            ],\n          }\n        ]\n      },\n  });\n\n  // or add it to the StyleManager via API\n  editor.StyleManager.addProperty('extra', { extend: 'filter' });\n  editor.StyleManager.addProperty('extra', { extend: 'filter', property: 'backdrop-filter' });\n\u003c/script\u003e\n```\n\nModern javascript\n```js\nimport grapesjs from 'grapesjs';\nimport styleFilter from 'grapesjs-style-filter';\n\nconst editor = grapesjs.init({\n  container : '#gjs',\n  plugins: [styleFilter, /*...*/],\n  // Same StyleManager configuration\n});\n// Same StyleManager API usage\n```\n\n\n\n\n\n## Development\n\nClone the repository\n\n```sh\n$ git clone https://github.com/GrapesJS/style-filter.git\n$ cd grapesjs-style-filter\n```\n\nInstall dependencies\n\n```sh\n$ npm i\n```\n\nStart the dev server\n\n```sh\n$ npm start\n```\n\n\n\n\n\n## License\n\nBSD 3-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrapesjs%2Fstyle-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrapesjs%2Fstyle-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrapesjs%2Fstyle-filter/lists"}