diff --git a/.snyk b/.snyk new file mode 100644 index 0000000000000..04e750d1ffcc8 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.21.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-TREEKILL-536781: + - concurrently > tree-kill: + patched: '2021-08-24T11:11:21.270Z' diff --git a/package.json b/package.json index 6d3ff4a2f2977..cf74b3ab77dac 100644 --- a/package.json +++ b/package.json @@ -1,323 +1,326 @@ { - "name": "gutenberg", - "version": "11.3.0", - "private": true, - "description": "A new WordPress editor experience.", - "author": "The WordPress Contributors", - "license": "GPL-2.0-or-later", - "keywords": [ - "WordPress", - "editor" - ], - "homepage": "https://github.com/WordPress/gutenberg/", - "repository": "git+https://github.com/WordPress/gutenberg.git", - "bugs": { - "url": "https://github.com/WordPress/gutenberg/issues" - }, - "engines": { - "node": ">=10.0.0", - "npm": ">=6.9.0 <7" - }, - "config": { - "GUTENBERG_PHASE": 2 - }, - "dependencies": { - "@wordpress/a11y": "file:packages/a11y", - "@wordpress/admin-manifest": "file:packages/admin-manifest", - "@wordpress/annotations": "file:packages/annotations", - "@wordpress/api-fetch": "file:packages/api-fetch", - "@wordpress/autop": "file:packages/autop", - "@wordpress/blob": "file:packages/blob", - "@wordpress/block-directory": "file:packages/block-directory", - "@wordpress/block-editor": "file:packages/block-editor", - "@wordpress/block-library": "file:packages/block-library", - "@wordpress/block-serialization-default-parser": "file:packages/block-serialization-default-parser", - "@wordpress/block-serialization-spec-parser": "file:packages/block-serialization-spec-parser", - "@wordpress/blocks": "file:packages/blocks", - "@wordpress/components": "file:packages/components", - "@wordpress/compose": "file:packages/compose", - "@wordpress/core-data": "file:packages/core-data", - "@wordpress/customize-widgets": "file:packages/customize-widgets", - "@wordpress/data": "file:packages/data", - "@wordpress/data-controls": "file:packages/data-controls", - "@wordpress/date": "file:packages/date", - "@wordpress/deprecated": "file:packages/deprecated", - "@wordpress/dom": "file:packages/dom", - "@wordpress/dom-ready": "file:packages/dom-ready", - "@wordpress/edit-navigation": "file:packages/edit-navigation", - "@wordpress/edit-post": "file:packages/edit-post", - "@wordpress/edit-site": "file:packages/edit-site", - "@wordpress/edit-widgets": "file:packages/edit-widgets", - "@wordpress/editor": "file:packages/editor", - "@wordpress/element": "file:packages/element", - "@wordpress/escape-html": "file:packages/escape-html", - "@wordpress/format-library": "file:packages/format-library", - "@wordpress/hooks": "file:packages/hooks", - "@wordpress/html-entities": "file:packages/html-entities", - "@wordpress/i18n": "file:packages/i18n", - "@wordpress/icons": "file:packages/icons", - "@wordpress/interface": "file:packages/interface", - "@wordpress/is-shallow-equal": "file:packages/is-shallow-equal", - "@wordpress/keyboard-shortcuts": "file:packages/keyboard-shortcuts", - "@wordpress/keycodes": "file:packages/keycodes", - "@wordpress/list-reusable-blocks": "file:packages/list-reusable-blocks", - "@wordpress/media-utils": "file:packages/media-utils", - "@wordpress/notices": "file:packages/notices", - "@wordpress/nux": "file:packages/nux", - "@wordpress/plugins": "file:packages/plugins", - "@wordpress/primitives": "file:packages/primitives", - "@wordpress/priority-queue": "file:packages/priority-queue", - "@wordpress/react-i18n": "file:packages/react-i18n", - "@wordpress/react-native-aztec": "file:packages/react-native-aztec", - "@wordpress/react-native-bridge": "file:packages/react-native-bridge", - "@wordpress/react-native-editor": "file:packages/react-native-editor", - "@wordpress/redux-routine": "file:packages/redux-routine", - "@wordpress/reusable-blocks": "file:packages/reusable-blocks", - "@wordpress/rich-text": "file:packages/rich-text", - "@wordpress/server-side-render": "file:packages/server-side-render", - "@wordpress/shortcode": "file:packages/shortcode", - "@wordpress/token-list": "file:packages/token-list", - "@wordpress/url": "file:packages/url", - "@wordpress/viewport": "file:packages/viewport", - "@wordpress/warning": "file:packages/warning", - "@wordpress/widgets": "file:packages/widgets", - "@wordpress/wordcount": "file:packages/wordcount" - }, - "devDependencies": { - "@actions/core": "1.4.0", - "@actions/github": "5.0.0", - "@babel/core": "7.13.10", - "@babel/plugin-syntax-jsx": "7.12.13", - "@babel/runtime-corejs3": "7.13.10", - "@babel/traverse": "7.13.0", - "@emotion/babel-plugin": "11.3.0", - "@emotion/jest": "11.3.0", - "@emotion/native": "^11.0.0", - "@octokit/rest": "16.26.0", - "@octokit/webhooks": "7.1.0", - "@storybook/addon-a11y": "6.3.2", - "@storybook/addon-docs": "6.3.2", - "@storybook/addon-knobs": "6.2.9", - "@storybook/addon-storysource": "6.3.2", - "@storybook/addon-viewport": "6.3.2", - "@storybook/builder-webpack5": "6.3.6", - "@storybook/manager-webpack5": "6.3.6", - "@storybook/react": "6.3.2", - "@testing-library/jest-dom": "5.11.9", - "@testing-library/react": "11.2.2", - "@testing-library/react-native": "7.1.0", - "@types/classnames": "2.2.10", - "@types/clipboard": "2.0.1", - "@types/eslint": "6.8.0", - "@types/estree": "0.0.44", - "@types/highlight-words-core": "1.2.0", - "@types/lodash": "4.14.149", - "@types/npm-package-arg": "6.1.0", - "@types/prettier": "1.19.0", - "@types/qs": "6.9.1", - "@types/requestidlecallback": "0.3.1", - "@types/semver": "7.2.0", - "@types/sprintf-js": "1.1.2", - "@types/tinycolor2": "1.4.2", - "@types/uuid": "8.3.0", - "@wordpress/babel-plugin-import-jsx-pragma": "file:packages/babel-plugin-import-jsx-pragma", - "@wordpress/babel-plugin-makepot": "file:packages/babel-plugin-makepot", - "@wordpress/babel-preset-default": "file:packages/babel-preset-default", - "@wordpress/base-styles": "file:packages/base-styles", - "@wordpress/browserslist-config": "file:packages/browserslist-config", - "@wordpress/create-block": "file:packages/create-block", - "@wordpress/create-block-tutorial-template": "file:packages/create-block-tutorial-template", - "@wordpress/custom-templated-path-webpack-plugin": "file:packages/custom-templated-path-webpack-plugin", - "@wordpress/dependency-extraction-webpack-plugin": "file:packages/dependency-extraction-webpack-plugin", - "@wordpress/docgen": "file:packages/docgen", - "@wordpress/e2e-test-utils": "file:packages/e2e-test-utils", - "@wordpress/e2e-tests": "file:packages/e2e-tests", - "@wordpress/env": "file:packages/env", - "@wordpress/eslint-plugin": "file:packages/eslint-plugin", - "@wordpress/jest-console": "file:packages/jest-console", - "@wordpress/jest-preset-default": "file:packages/jest-preset-default", - "@wordpress/jest-puppeteer-axe": "file:packages/jest-puppeteer-axe", - "@wordpress/lazy-import": "file:packages/lazy-import", - "@wordpress/library-export-default-webpack-plugin": "file:packages/library-export-default-webpack-plugin", - "@wordpress/npm-package-json-lint-config": "file:packages/npm-package-json-lint-config", - "@wordpress/postcss-plugins-preset": "file:packages/postcss-plugins-preset", - "@wordpress/postcss-themes": "file:packages/postcss-themes", - "@wordpress/prettier-config": "file:packages/prettier-config", - "@wordpress/project-management-automation": "file:packages/project-management-automation", - "@wordpress/readable-js-assets-webpack-plugin": "file:packages/readable-js-assets-webpack-plugin", - "@wordpress/scripts": "file:packages/scripts", - "@wordpress/stylelint-config": "file:packages/stylelint-config", - "appium": "1.20.2", - "babel-jest": "26.6.3", - "babel-loader": "8.2.2", - "babel-plugin-inline-json-import": "0.3.2", - "babel-plugin-react-native-classname-to-style": "1.2.2", - "babel-plugin-react-native-platform-specific-extensions": "1.1.1", - "babel-plugin-transform-remove-console": "6.9.4", - "benchmark": "2.1.4", - "browserslist": "4.16.6", - "chalk": "4.1.1", - "commander": "4.1.0", - "concurrently": "3.5.0", - "copy-webpack-plugin": "9.0.1", - "core-js-builder": "3.11.0", - "cross-env": "3.2.4", - "css-loader": "6.2.0", - "cssnano": "5.0.7", - "deep-freeze": "0.0.1", - "enzyme": "3.11.0", - "equivalent-key-map": "0.2.2", - "eslint-import-resolver-node": "0.3.4", - "eslint-plugin-eslint-comments": "3.1.2", - "eslint-plugin-import": "2.23.4", - "execa": "4.0.2", - "fast-glob": "2.2.7", - "glob": "7.1.2", - "husky": "7.0.0", - "inquirer": "7.1.0", - "jest": "26.6.3", - "jest-junit": "11.0.0", - "jest-serializer-enzyme": "1.0.0", - "jest-watch-typeahead": "0.6.1", - "jsdom": "16.4.0", - "lerna": "3.22.1", - "lint-staged": "9.2.5", - "lodash": "4.17.21", - "make-dir": "3.0.0", - "metro-react-native-babel-preset": "0.64.0", - "metro-react-native-babel-transformer": "0.64.0", - "mkdirp": "0.5.1", - "nock": "12.0.3", - "node-watch": "0.7.0", - "patch-package": "6.2.2", - "postcss": "8.2.15", - "postcss-loader": "6.1.1", - "prettier": "npm:wp-prettier@2.2.1-beta-1", - "progress": "2.0.3", - "react": "17.0.1", - "react-dom": "17.0.1", - "react-native": "0.64.0", - "react-test-renderer": "17.0.1", - "rimraf": "3.0.2", - "rtlcss": "2.6.2", - "sass": "1.35.2", - "sass-loader": "12.1.0", - "semver": "7.3.2", - "simple-git": "^2.35.0", - "snapshot-diff": "0.8.1", - "source-map-loader": "3.0.0", - "sprintf-js": "1.1.1", - "style-loader": "3.2.1", - "terser-webpack-plugin": "5.1.4", - "typescript": "4.1.3", - "uglify-js": "3.13.7", - "uuid": "8.3.0", - "wd": "1.12.1", - "webpack": "5.47.1", - "webpack-bundle-analyzer": "4.4.2", - "worker-farm": "1.7.0" - }, - "scripts": { - "analyze-bundles": "npm run build -- --webpack-bundle-analyzer", - "clean:packages": "rimraf \"./packages/*/@(build|build-module|build-style)\"", - "clean:package-types": "tsc --build --clean", - "prebuild:packages": "npm run clean:packages && lerna run build", - "build:packages": "npm run build:package-types && node ./bin/packages/build.js", - "build:package-types": "node ./bin/packages/validate-typescript-version.js && tsc --build", - "build:plugin-zip": "./bin/build-plugin-zip.sh", - "build": "npm run build:packages && wp-scripts build", - "changelog": "./bin/plugin/cli.js changelog", - "check-licenses": "concurrently \"wp-scripts check-licenses --prod --gpl2 --ignore=@react-native-community/cli,@react-native-community/cli-platform-ios\" \"wp-scripts check-licenses --dev\"", - "precheck-local-changes": "npm run docs:build", - "check-local-changes": "( git diff -U0 | xargs -0 node bin/process-git-diff ) || ( echo \"There are local uncommitted changes after one or both of 'npm install' or 'npm run docs:build'!\" && git diff --exit-code && exit 1 );", - "dev": "npm run build:packages && concurrently \"wp-scripts start\" \"npm run dev:packages\"", - "dev:packages": "node ./bin/packages/watch.js", - "distclean": "rimraf node_modules packages/*/node_modules", - "docs:build": "node ./docs/tool/index.js && node ./bin/api-docs/update-api-docs.js", - "fixtures:clean": "rimraf \"test/integration/fixtures/blocks/*.+(json|serialized.html)\"", - "fixtures:generate": "cross-env GENERATE_MISSING_FIXTURES=y npm run test-unit test/integration/full-content/ && npm run format test/integration/fixtures/blocks/*.json", - "fixtures:regenerate": "npm run fixtures:clean && npm run fixtures:generate", - "format": "wp-scripts format", - "format-js": "wp-scripts format-js", - "format-php": "wp-env run composer run-script format", - "lint": "concurrently \"npm run lint-lockfile\" \"npm run lint-js\" \"npm run lint-pkg-json\" \"npm run lint-css\"", - "lint-js": "wp-scripts lint-js", - "lint-js:fix": "npm run lint-js -- --fix", - "prelint-php": "wp-env run composer 'install --no-interaction'", - "lint-php": "wp-env run composer run-script lint", - "lint-pkg-json": "wp-scripts lint-pkg-json . 'packages/*/package.json'", - "lint-lockfile": "node ./bin/validate-package-lock.js", - "lint-css": "wp-scripts lint-style '**/*.scss'", - "lint-css:fix": "npm run lint-css -- --fix", - "lint:md-js": "wp-scripts lint-md-js", - "lint:md-docs": "wp-scripts lint-md-docs", - "native": "npm run --prefix packages/react-native-editor", - "pot-to-php": "./bin/pot-to-php.js", - "postinstall": "patch-package && node ./patches/patch-xcode.js", - "prepublishOnly": "npm run clean:package-types && npm run build:packages", - "publish:check": "lerna updated", - "publish:patch": "lerna publish --dist-tag patch", - "publish:latest": "lerna publish", - "test": "npm run lint && npm run test-unit", - "test:create-block": "./bin/test-create-block.sh", - "test-e2e": "wp-scripts test-e2e --config packages/e2e-tests/jest.config.js", - "test-e2e:debug": "wp-scripts --inspect-brk test-e2e --config packages/e2e-tests/jest.config.js --puppeteer-devtools", - "test-e2e:watch": "npm run test-e2e -- --watch", - "test-performance": "wp-scripts test-e2e --config packages/e2e-tests/jest.performance.config.js", - "test-php": "npm run lint-php && npm run test-unit-php", - "test-php:watch": "wp-env run composer run-script test:watch", - "test-unit": "wp-scripts test-unit-js --config test/unit/jest.config.js", - "test-unit:date": "./bin/unit-test-date.sh", - "test-unit:debug": "wp-scripts --inspect-brk test-unit-js --runInBand --no-cache --verbose --config test/unit/jest.config.js ", - "test-unit:update": "npm run test-unit -- --updateSnapshot", - "test-unit:watch": "npm run test-unit -- --watch", - "pretest-unit-php": "wp-env start", - "test-unit-php": "wp-env run phpunit 'phpunit -c /var/www/html/wp-content/plugins/gutenberg/phpunit.xml.dist --verbose'", - "pretest-unit-php-multisite": "wp-env start", - "test-unit-php-multisite": "wp-env run phpunit 'WP_MULTISITE=1 phpunit -c /var/www/html/wp-content/plugins/gutenberg/phpunit/multisite.xml --verbose'", - "prestorybook:build": "npm run build:packages", - "storybook:build": "build-storybook -c ./storybook -o ./storybook/build", - "prestorybook:dev": "npm run build:packages", - "storybook:dev": "concurrently \"npm run dev:packages\" \"start-storybook -c ./storybook -p 50240\"", - "env": "wp-scripts env", - "wp-env": "wp-env", - "prepare": "husky install" - }, - "lint-staged": { - "package-lock.json": [ - "npm run lint-lockfile", - "node ./bin/check-latest-npm.js" - ], - "packages/*/package.json": [ - "wp-scripts lint-pkg-json" - ], - "*.scss": [ - "wp-scripts lint-style" - ], - "*.{js,ts,tsx,yml}": [ - "wp-scripts format", - "wp-scripts lint-js" - ], - "{docs/{toc.json,tool/*.js},packages/{*/README.md,components/src/*/**/README.md}}": [ - "node ./docs/tool/index.js" - ], - "packages/**/*.{js,ts,tsx}": [ - "node ./bin/api-docs/update-api-docs.js", - "node ./bin/api-docs/are-api-docs-unstaged.js", - "node ./bin/packages/lint-staged-typecheck.js" - ] - }, - "wp-env": { - "plugin-dir": "gutenberg", - "plugin-name": "Gutenberg", - "docker-template": "./bin/docker-compose.override.yml.template", - "welcome-logo": [ - ",⁻⁻⁻· . |", - "| ،⁓’. . |--- ,---. ,---. |---. ,---. ,---. ,---.", - "| | | | | |---' | | | | |---' | | |", - "`---' `---' `---’ `---’ ' ` `---' `---’ ` `---|", - " `---'" - ], - "welcome-build-command": "npm run dev" - } + "name": "gutenberg", + "version": "11.3.0", + "private": true, + "description": "A new WordPress editor experience.", + "author": "The WordPress Contributors", + "license": "GPL-2.0-or-later", + "keywords": [ + "WordPress", + "editor" + ], + "homepage": "https://github.com/WordPress/gutenberg/", + "repository": "git+https://github.com/WordPress/gutenberg.git", + "bugs": { + "url": "https://github.com/WordPress/gutenberg/issues" + }, + "engines": { + "node": ">=10.0.0", + "npm": ">=6.9.0 <7" + }, + "config": { + "GUTENBERG_PHASE": 2 + }, + "dependencies": { + "@wordpress/a11y": "file:packages/a11y", + "@wordpress/admin-manifest": "file:packages/admin-manifest", + "@wordpress/annotations": "file:packages/annotations", + "@wordpress/api-fetch": "file:packages/api-fetch", + "@wordpress/autop": "file:packages/autop", + "@wordpress/blob": "file:packages/blob", + "@wordpress/block-directory": "file:packages/block-directory", + "@wordpress/block-editor": "file:packages/block-editor", + "@wordpress/block-library": "file:packages/block-library", + "@wordpress/block-serialization-default-parser": "file:packages/block-serialization-default-parser", + "@wordpress/block-serialization-spec-parser": "file:packages/block-serialization-spec-parser", + "@wordpress/blocks": "file:packages/blocks", + "@wordpress/components": "file:packages/components", + "@wordpress/compose": "file:packages/compose", + "@wordpress/core-data": "file:packages/core-data", + "@wordpress/customize-widgets": "file:packages/customize-widgets", + "@wordpress/data": "file:packages/data", + "@wordpress/data-controls": "file:packages/data-controls", + "@wordpress/date": "file:packages/date", + "@wordpress/deprecated": "file:packages/deprecated", + "@wordpress/dom": "file:packages/dom", + "@wordpress/dom-ready": "file:packages/dom-ready", + "@wordpress/edit-navigation": "file:packages/edit-navigation", + "@wordpress/edit-post": "file:packages/edit-post", + "@wordpress/edit-site": "file:packages/edit-site", + "@wordpress/edit-widgets": "file:packages/edit-widgets", + "@wordpress/editor": "file:packages/editor", + "@wordpress/element": "file:packages/element", + "@wordpress/escape-html": "file:packages/escape-html", + "@wordpress/format-library": "file:packages/format-library", + "@wordpress/hooks": "file:packages/hooks", + "@wordpress/html-entities": "file:packages/html-entities", + "@wordpress/i18n": "file:packages/i18n", + "@wordpress/icons": "file:packages/icons", + "@wordpress/interface": "file:packages/interface", + "@wordpress/is-shallow-equal": "file:packages/is-shallow-equal", + "@wordpress/keyboard-shortcuts": "file:packages/keyboard-shortcuts", + "@wordpress/keycodes": "file:packages/keycodes", + "@wordpress/list-reusable-blocks": "file:packages/list-reusable-blocks", + "@wordpress/media-utils": "file:packages/media-utils", + "@wordpress/notices": "file:packages/notices", + "@wordpress/nux": "file:packages/nux", + "@wordpress/plugins": "file:packages/plugins", + "@wordpress/primitives": "file:packages/primitives", + "@wordpress/priority-queue": "file:packages/priority-queue", + "@wordpress/react-i18n": "file:packages/react-i18n", + "@wordpress/react-native-aztec": "file:packages/react-native-aztec", + "@wordpress/react-native-bridge": "file:packages/react-native-bridge", + "@wordpress/react-native-editor": "file:packages/react-native-editor", + "@wordpress/redux-routine": "file:packages/redux-routine", + "@wordpress/reusable-blocks": "file:packages/reusable-blocks", + "@wordpress/rich-text": "file:packages/rich-text", + "@wordpress/server-side-render": "file:packages/server-side-render", + "@wordpress/shortcode": "file:packages/shortcode", + "@wordpress/token-list": "file:packages/token-list", + "@wordpress/url": "file:packages/url", + "@wordpress/viewport": "file:packages/viewport", + "@wordpress/warning": "file:packages/warning", + "@wordpress/widgets": "file:packages/widgets", + "@wordpress/wordcount": "file:packages/wordcount", + "@snyk/protect": "latest" + }, + "devDependencies": { + "@actions/core": "1.4.0", + "@actions/github": "5.0.0", + "@babel/core": "7.13.10", + "@babel/plugin-syntax-jsx": "7.12.13", + "@babel/runtime-corejs3": "7.13.10", + "@babel/traverse": "7.13.0", + "@emotion/babel-plugin": "11.3.0", + "@emotion/jest": "11.3.0", + "@emotion/native": "^11.0.0", + "@octokit/rest": "16.26.0", + "@octokit/webhooks": "7.1.0", + "@storybook/addon-a11y": "6.3.2", + "@storybook/addon-docs": "6.3.2", + "@storybook/addon-knobs": "6.2.9", + "@storybook/addon-storysource": "6.3.2", + "@storybook/addon-viewport": "6.3.2", + "@storybook/builder-webpack5": "6.3.6", + "@storybook/manager-webpack5": "6.3.6", + "@storybook/react": "6.3.2", + "@testing-library/jest-dom": "5.11.9", + "@testing-library/react": "11.2.2", + "@testing-library/react-native": "7.1.0", + "@types/classnames": "2.2.10", + "@types/clipboard": "2.0.1", + "@types/eslint": "6.8.0", + "@types/estree": "0.0.44", + "@types/highlight-words-core": "1.2.0", + "@types/lodash": "4.14.149", + "@types/npm-package-arg": "6.1.0", + "@types/prettier": "1.19.0", + "@types/qs": "6.9.1", + "@types/requestidlecallback": "0.3.1", + "@types/semver": "7.2.0", + "@types/sprintf-js": "1.1.2", + "@types/tinycolor2": "1.4.2", + "@types/uuid": "8.3.0", + "@wordpress/babel-plugin-import-jsx-pragma": "file:packages/babel-plugin-import-jsx-pragma", + "@wordpress/babel-plugin-makepot": "file:packages/babel-plugin-makepot", + "@wordpress/babel-preset-default": "file:packages/babel-preset-default", + "@wordpress/base-styles": "file:packages/base-styles", + "@wordpress/browserslist-config": "file:packages/browserslist-config", + "@wordpress/create-block": "file:packages/create-block", + "@wordpress/create-block-tutorial-template": "file:packages/create-block-tutorial-template", + "@wordpress/custom-templated-path-webpack-plugin": "file:packages/custom-templated-path-webpack-plugin", + "@wordpress/dependency-extraction-webpack-plugin": "file:packages/dependency-extraction-webpack-plugin", + "@wordpress/docgen": "file:packages/docgen", + "@wordpress/e2e-test-utils": "file:packages/e2e-test-utils", + "@wordpress/e2e-tests": "file:packages/e2e-tests", + "@wordpress/env": "file:packages/env", + "@wordpress/eslint-plugin": "file:packages/eslint-plugin", + "@wordpress/jest-console": "file:packages/jest-console", + "@wordpress/jest-preset-default": "file:packages/jest-preset-default", + "@wordpress/jest-puppeteer-axe": "file:packages/jest-puppeteer-axe", + "@wordpress/lazy-import": "file:packages/lazy-import", + "@wordpress/library-export-default-webpack-plugin": "file:packages/library-export-default-webpack-plugin", + "@wordpress/npm-package-json-lint-config": "file:packages/npm-package-json-lint-config", + "@wordpress/postcss-plugins-preset": "file:packages/postcss-plugins-preset", + "@wordpress/postcss-themes": "file:packages/postcss-themes", + "@wordpress/prettier-config": "file:packages/prettier-config", + "@wordpress/project-management-automation": "file:packages/project-management-automation", + "@wordpress/readable-js-assets-webpack-plugin": "file:packages/readable-js-assets-webpack-plugin", + "@wordpress/scripts": "file:packages/scripts", + "@wordpress/stylelint-config": "file:packages/stylelint-config", + "appium": "1.20.2", + "babel-jest": "26.6.3", + "babel-loader": "8.2.2", + "babel-plugin-inline-json-import": "0.3.2", + "babel-plugin-react-native-classname-to-style": "1.2.2", + "babel-plugin-react-native-platform-specific-extensions": "1.1.1", + "babel-plugin-transform-remove-console": "6.9.4", + "benchmark": "2.1.4", + "browserslist": "4.16.6", + "chalk": "4.1.1", + "commander": "4.1.0", + "concurrently": "3.5.0", + "copy-webpack-plugin": "9.0.1", + "core-js-builder": "3.11.0", + "cross-env": "3.2.4", + "css-loader": "6.2.0", + "cssnano": "5.0.7", + "deep-freeze": "0.0.1", + "enzyme": "3.11.0", + "equivalent-key-map": "0.2.2", + "eslint-import-resolver-node": "0.3.4", + "eslint-plugin-eslint-comments": "3.1.2", + "eslint-plugin-import": "2.23.4", + "execa": "4.0.2", + "fast-glob": "3.0.0", + "glob": "7.1.2", + "husky": "7.0.0", + "inquirer": "7.1.0", + "jest": "26.6.3", + "jest-junit": "11.0.0", + "jest-serializer-enzyme": "1.0.0", + "jest-watch-typeahead": "0.6.1", + "jsdom": "16.4.0", + "lerna": "4.0.0", + "lint-staged": "9.2.5", + "lodash": "4.17.21", + "make-dir": "3.0.0", + "metro-react-native-babel-preset": "0.64.0", + "metro-react-native-babel-transformer": "0.64.0", + "mkdirp": "0.5.2", + "nock": "12.0.3", + "node-watch": "0.7.0", + "patch-package": "6.2.2", + "postcss": "8.2.15", + "postcss-loader": "6.1.1", + "prettier": "npm:wp-prettier@2.2.1-beta-1", + "progress": "2.0.3", + "react": "17.0.1", + "react-dom": "17.0.1", + "react-native": "0.64.1", + "react-test-renderer": "17.0.1", + "rimraf": "3.0.2", + "rtlcss": "3.0.0", + "sass": "1.35.2", + "sass-loader": "12.1.0", + "semver": "7.3.2", + "simple-git": "^2.35.0", + "snapshot-diff": "0.8.1", + "source-map-loader": "3.0.0", + "sprintf-js": "1.1.1", + "style-loader": "3.2.1", + "terser-webpack-plugin": "5.1.4", + "typescript": "4.1.3", + "uglify-js": "3.13.7", + "uuid": "8.3.0", + "wd": "1.12.1", + "webpack": "5.47.1", + "webpack-bundle-analyzer": "4.4.2", + "worker-farm": "1.7.0" + }, + "scripts": { + "analyze-bundles": "npm run build -- --webpack-bundle-analyzer", + "clean:packages": "rimraf \"./packages/*/@(build|build-module|build-style)\"", + "clean:package-types": "tsc --build --clean", + "prebuild:packages": "npm run clean:packages && lerna run build", + "build:packages": "npm run build:package-types && node ./bin/packages/build.js", + "build:package-types": "node ./bin/packages/validate-typescript-version.js && tsc --build", + "build:plugin-zip": "./bin/build-plugin-zip.sh", + "build": "npm run build:packages && wp-scripts build", + "changelog": "./bin/plugin/cli.js changelog", + "check-licenses": "concurrently \"wp-scripts check-licenses --prod --gpl2 --ignore=@react-native-community/cli,@react-native-community/cli-platform-ios\" \"wp-scripts check-licenses --dev\"", + "precheck-local-changes": "npm run docs:build", + "check-local-changes": "( git diff -U0 | xargs -0 node bin/process-git-diff ) || ( echo \"There are local uncommitted changes after one or both of 'npm install' or 'npm run docs:build'!\" && git diff --exit-code && exit 1 );", + "dev": "npm run build:packages && concurrently \"wp-scripts start\" \"npm run dev:packages\"", + "dev:packages": "node ./bin/packages/watch.js", + "distclean": "rimraf node_modules packages/*/node_modules", + "docs:build": "node ./docs/tool/index.js && node ./bin/api-docs/update-api-docs.js", + "fixtures:clean": "rimraf \"test/integration/fixtures/blocks/*.+(json|serialized.html)\"", + "fixtures:generate": "cross-env GENERATE_MISSING_FIXTURES=y npm run test-unit test/integration/full-content/ && npm run format test/integration/fixtures/blocks/*.json", + "fixtures:regenerate": "npm run fixtures:clean && npm run fixtures:generate", + "format": "wp-scripts format", + "format-js": "wp-scripts format-js", + "format-php": "wp-env run composer run-script format", + "lint": "concurrently \"npm run lint-lockfile\" \"npm run lint-js\" \"npm run lint-pkg-json\" \"npm run lint-css\"", + "lint-js": "wp-scripts lint-js", + "lint-js:fix": "npm run lint-js -- --fix", + "prelint-php": "wp-env run composer 'install --no-interaction'", + "lint-php": "wp-env run composer run-script lint", + "lint-pkg-json": "wp-scripts lint-pkg-json . 'packages/*/package.json'", + "lint-lockfile": "node ./bin/validate-package-lock.js", + "lint-css": "wp-scripts lint-style '**/*.scss'", + "lint-css:fix": "npm run lint-css -- --fix", + "lint:md-js": "wp-scripts lint-md-js", + "lint:md-docs": "wp-scripts lint-md-docs", + "native": "npm run --prefix packages/react-native-editor", + "pot-to-php": "./bin/pot-to-php.js", + "postinstall": "patch-package && node ./patches/patch-xcode.js", + "prepublishOnly": "npm run clean:package-types && npm run build:packages", + "publish:check": "lerna updated", + "publish:patch": "lerna publish --dist-tag patch", + "publish:latest": "lerna publish", + "test": "npm run lint && npm run test-unit", + "test:create-block": "./bin/test-create-block.sh", + "test-e2e": "wp-scripts test-e2e --config packages/e2e-tests/jest.config.js", + "test-e2e:debug": "wp-scripts --inspect-brk test-e2e --config packages/e2e-tests/jest.config.js --puppeteer-devtools", + "test-e2e:watch": "npm run test-e2e -- --watch", + "test-performance": "wp-scripts test-e2e --config packages/e2e-tests/jest.performance.config.js", + "test-php": "npm run lint-php && npm run test-unit-php", + "test-php:watch": "wp-env run composer run-script test:watch", + "test-unit": "wp-scripts test-unit-js --config test/unit/jest.config.js", + "test-unit:date": "./bin/unit-test-date.sh", + "test-unit:debug": "wp-scripts --inspect-brk test-unit-js --runInBand --no-cache --verbose --config test/unit/jest.config.js ", + "test-unit:update": "npm run test-unit -- --updateSnapshot", + "test-unit:watch": "npm run test-unit -- --watch", + "pretest-unit-php": "wp-env start", + "test-unit-php": "wp-env run phpunit 'phpunit -c /var/www/html/wp-content/plugins/gutenberg/phpunit.xml.dist --verbose'", + "pretest-unit-php-multisite": "wp-env start", + "test-unit-php-multisite": "wp-env run phpunit 'WP_MULTISITE=1 phpunit -c /var/www/html/wp-content/plugins/gutenberg/phpunit/multisite.xml --verbose'", + "prestorybook:build": "npm run build:packages", + "storybook:build": "build-storybook -c ./storybook -o ./storybook/build", + "prestorybook:dev": "npm run build:packages", + "storybook:dev": "concurrently \"npm run dev:packages\" \"start-storybook -c ./storybook -p 50240\"", + "env": "wp-scripts env", + "wp-env": "wp-env", + "prepare": "npm run snyk-protect && husky install", + "snyk-protect": "snyk-protect" + }, + "lint-staged": { + "package-lock.json": [ + "npm run lint-lockfile", + "node ./bin/check-latest-npm.js" + ], + "packages/*/package.json": [ + "wp-scripts lint-pkg-json" + ], + "*.scss": [ + "wp-scripts lint-style" + ], + "*.{js,ts,tsx,yml}": [ + "wp-scripts format", + "wp-scripts lint-js" + ], + "{docs/{toc.json,tool/*.js},packages/{*/README.md,components/src/*/**/README.md}}": [ + "node ./docs/tool/index.js" + ], + "packages/**/*.{js,ts,tsx}": [ + "node ./bin/api-docs/update-api-docs.js", + "node ./bin/api-docs/are-api-docs-unstaged.js", + "node ./bin/packages/lint-staged-typecheck.js" + ] + }, + "wp-env": { + "plugin-dir": "gutenberg", + "plugin-name": "Gutenberg", + "docker-template": "./bin/docker-compose.override.yml.template", + "welcome-logo": [ + ",⁻⁻⁻· . |", + "| ،⁓’. . |--- ,---. ,---. |---. ,---. ,---. ,---.", + "| | | | | |---' | | | | |---' | | |", + "`---' `---' `---’ `---’ ' ` `---' `---’ ` `---|", + " `---'" + ], + "welcome-build-command": "npm run dev" + }, + "snyk": true }