From 39ec7cbca61cd7eac35de478f45ba25c129013fc Mon Sep 17 00:00:00 2001 From: jsip Date: Tue, 5 Dec 2023 16:16:04 -0500 Subject: [PATCH 1/3] feat: Enable useStrictCSP for cssInjectedByJsPlugin --- vite.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index 79161a9..25d9183 100644 --- a/vite.config.js +++ b/vite.config.js @@ -19,5 +19,5 @@ export default { VERSION: JSON.stringify(VERSION), }, - plugins: [cssInjectedByJsPlugin()], + plugins: [cssInjectedByJsPlugin({useStrictCSP: true})], }; From 263176b9bb7d2a9a4ee5e6faf0045cac6d7d47df Mon Sep 17 00:00:00 2001 From: jsip Date: Tue, 5 Dec 2023 16:16:12 -0500 Subject: [PATCH 2/3] docs: Update README.md concerning CSP (nonce) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index abd13cc..e49fc12 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,6 @@ To localize UI labels, put this object to your i18n dictionary under the `tools` See more instructions about Editor.js internationalization here: [https://editorjs.io/internationalization](https://editorjs.io/internationalization) -## Supports CSP out of the box +## CSP support -Adds a nonce to injected style tags based on [``](https://github.com/marco-prontera/vite-plugin-css-injected-by-js#usestrictcsp-boolean) being present in your document head. \ No newline at end of file +If you're using Content Security Policy (CSP) pass a `nonce` via [``](https://github.com/marco-prontera/vite-plugin-css-injected-by-js#usestrictcsp-boolean) in your document head. \ No newline at end of file From cbac377165dc7aefaa8e1064701b3c2ef6b12e95 Mon Sep 17 00:00:00 2001 From: jsip Date: Wed, 6 Dec 2023 10:37:11 -0500 Subject: [PATCH 3/3] chore: Bump from 1.9.0 to 1.9.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9c01551..25b585e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@editorjs/list", - "version": "1.9.0", + "version": "1.9.1", "keywords": [ "codex editor", "list",