From 848e4858ea5862641984242f06a7758e8d2379b0 Mon Sep 17 00:00:00 2001 From: Long Ho Date: Fri, 2 Apr 2021 01:29:02 -0400 Subject: [PATCH] feat(@formatjs/editor): initial commit --- package-lock.json | 636 ++++++++++++-- package.json | 2 + packages/editor/BUILD | 113 +++ packages/editor/CHANGELOG.md | 1542 +++++++++++++++++++++++++++++++++ packages/editor/LICENSE.md | 9 + packages/editor/README.md | 3 + packages/editor/header.tsx | 29 + packages/editor/index.html | 14 + packages/editor/index.tsx | 223 +++++ packages/editor/main.tsx | 5 + packages/editor/messages.tsx | 24 + packages/editor/package.json | 40 + packages/editor/tsconfig.json | 5 + packages/editor/types.ts | 5 + tsconfig.json | 6 +- 15 files changed, 2603 insertions(+), 53 deletions(-) create mode 100644 packages/editor/BUILD create mode 100644 packages/editor/CHANGELOG.md create mode 100644 packages/editor/LICENSE.md create mode 100644 packages/editor/README.md create mode 100644 packages/editor/header.tsx create mode 100644 packages/editor/index.html create mode 100644 packages/editor/index.tsx create mode 100644 packages/editor/main.tsx create mode 100644 packages/editor/messages.tsx create mode 100644 packages/editor/package.json create mode 100644 packages/editor/tsconfig.json create mode 100644 packages/editor/types.ts diff --git a/package-lock.json b/package-lock.json index 04ef60da1b..747f750909 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "1.0.0", "hasInstallScript": true, "dependencies": { + "@material-ui/core": "^4.11.3", "chokidar": "^3.4.2" }, "devDependencies": { @@ -30,6 +31,7 @@ "@docusaurus/preset-classic": "2.0.0-alpha.72", "@docusaurus/theme-live-codeblock": "2.0.0-alpha.72", "@jest/transform": "^26.6.2", + "@material-ui/icons": "^4.11.2", "@testing-library/jest-dom": "^5.11.5", "@testing-library/react": "^11.1.1", "@types/babel__core": "^7.1.7", @@ -1687,7 +1689,6 @@ "version": "7.13.10", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.13.10.tgz", "integrity": "sha512-4QPkjJq6Ns3V/RgpEahRk+AGfL0eO6RHHtTWoNNr5mO49G6B5+X6d6THgWEAvTrznU5xYpbAlVKRYcsCgh/Akw==", - "dev": true, "dependencies": { "regenerator-runtime": "^0.13.4" } @@ -2915,6 +2916,11 @@ "node": ">=12.13.0" } }, + "node_modules/@emotion/hash": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz", + "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==" + }, "node_modules/@endiliey/static-site-generator-webpack-plugin": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@endiliey/static-site-generator-webpack-plugin/-/static-site-generator-webpack-plugin-4.0.0.tgz", @@ -4603,6 +4609,173 @@ "node": ">= 10.18.0" } }, + "node_modules/@material-ui/core": { + "version": "4.11.3", + "resolved": "https://registry.npmjs.org/@material-ui/core/-/core-4.11.3.tgz", + "integrity": "sha512-Adt40rGW6Uds+cAyk3pVgcErpzU/qxc7KBR94jFHBYretU4AtWZltYcNsbeMn9tXL86jjVL1kuGcIHsgLgFGRw==", + "dependencies": { + "@babel/runtime": "^7.4.4", + "@material-ui/styles": "^4.11.3", + "@material-ui/system": "^4.11.3", + "@material-ui/types": "^5.1.0", + "@material-ui/utils": "^4.11.2", + "@types/react-transition-group": "^4.2.0", + "clsx": "^1.0.4", + "hoist-non-react-statics": "^3.3.2", + "popper.js": "1.16.1-lts", + "prop-types": "^15.7.2", + "react-is": "^16.8.0 || ^17.0.0", + "react-transition-group": "^4.4.0" + }, + "engines": { + "node": ">=8.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/material-ui" + }, + "peerDependencies": { + "@types/react": "^16.8.6 || ^17.0.0", + "react": "^16.8.0 || ^17.0.0", + "react-dom": "^16.8.0 || ^17.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@material-ui/icons": { + "version": "4.11.2", + "resolved": "https://registry.npmjs.org/@material-ui/icons/-/icons-4.11.2.tgz", + "integrity": "sha512-fQNsKX2TxBmqIGJCSi3tGTO/gZ+eJgWmMJkgDiOfyNaunNaxcklJQFaFogYcFl0qFuaEz1qaXYXboa/bUXVSOQ==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.4.4" + }, + "engines": { + "node": ">=8.0.0" + }, + "peerDependencies": { + "@material-ui/core": "^4.0.0", + "@types/react": "^16.8.6 || ^17.0.0", + "react": "^16.8.0 || ^17.0.0", + "react-dom": "^16.8.0 || ^17.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@material-ui/styles": { + "version": "4.11.3", + "resolved": "https://registry.npmjs.org/@material-ui/styles/-/styles-4.11.3.tgz", + "integrity": "sha512-HzVzCG+PpgUGMUYEJ2rTEmQYeonGh41BYfILNFb/1ueqma+p1meSdu4RX6NjxYBMhf7k+jgfHFTTz+L1SXL/Zg==", + "dependencies": { + "@babel/runtime": "^7.4.4", + "@emotion/hash": "^0.8.0", + "@material-ui/types": "^5.1.0", + "@material-ui/utils": "^4.11.2", + "clsx": "^1.0.4", + "csstype": "^2.5.2", + "hoist-non-react-statics": "^3.3.2", + "jss": "^10.5.1", + "jss-plugin-camel-case": "^10.5.1", + "jss-plugin-default-unit": "^10.5.1", + "jss-plugin-global": "^10.5.1", + "jss-plugin-nested": "^10.5.1", + "jss-plugin-props-sort": "^10.5.1", + "jss-plugin-rule-value-function": "^10.5.1", + "jss-plugin-vendor-prefixer": "^10.5.1", + "prop-types": "^15.7.2" + }, + "engines": { + "node": ">=8.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/material-ui" + }, + "peerDependencies": { + "@types/react": "^16.8.6 || ^17.0.0", + "react": "^16.8.0 || ^17.0.0", + "react-dom": "^16.8.0 || ^17.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@material-ui/styles/node_modules/csstype": { + "version": "2.6.16", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.16.tgz", + "integrity": "sha512-61FBWoDHp/gRtsoDkq/B1nWrCUG/ok1E3tUrcNbZjsE9Cxd9yzUirjS3+nAATB8U4cTtaQmAHbNndoFz5L6C9Q==" + }, + "node_modules/@material-ui/system": { + "version": "4.11.3", + "resolved": "https://registry.npmjs.org/@material-ui/system/-/system-4.11.3.tgz", + "integrity": "sha512-SY7otguNGol41Mu2Sg6KbBP1ZRFIbFLHGK81y4KYbsV2yIcaEPOmsCK6zwWlp+2yTV3J/VwT6oSBARtGIVdXPw==", + "dependencies": { + "@babel/runtime": "^7.4.4", + "@material-ui/utils": "^4.11.2", + "csstype": "^2.5.2", + "prop-types": "^15.7.2" + }, + "engines": { + "node": ">=8.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/material-ui" + }, + "peerDependencies": { + "@types/react": "^16.8.6 || ^17.0.0", + "react": "^16.8.0 || ^17.0.0", + "react-dom": "^16.8.0 || ^17.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@material-ui/system/node_modules/csstype": { + "version": "2.6.16", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.16.tgz", + "integrity": "sha512-61FBWoDHp/gRtsoDkq/B1nWrCUG/ok1E3tUrcNbZjsE9Cxd9yzUirjS3+nAATB8U4cTtaQmAHbNndoFz5L6C9Q==" + }, + "node_modules/@material-ui/types": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@material-ui/types/-/types-5.1.0.tgz", + "integrity": "sha512-7cqRjrY50b8QzRSYyhSpx4WRw2YuO0KKIGQEVk5J8uoz2BanawykgZGoWEqKm7pVIbzFDN0SpPcVV4IhOFkl8A==", + "peerDependencies": { + "@types/react": "*" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@material-ui/utils": { + "version": "4.11.2", + "resolved": "https://registry.npmjs.org/@material-ui/utils/-/utils-4.11.2.tgz", + "integrity": "sha512-Uul8w38u+PICe2Fg2pDKCaIG7kOyhowZ9vjiC1FsVwPABTW8vPPKfF6OvxRq3IiBaI1faOJmgdvMG7rMJARBhA==", + "dependencies": { + "@babel/runtime": "^7.4.4", + "prop-types": "^15.7.2", + "react-is": "^16.8.0 || ^17.0.0" + }, + "engines": { + "node": ">=8.0.0" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0", + "react-dom": "^16.8.0 || ^17.0.0" + } + }, "node_modules/@mdx-js/mdx": { "version": "1.6.22", "resolved": "https://registry.npmjs.org/@mdx-js/mdx/-/mdx-1.6.22.tgz", @@ -5935,8 +6108,7 @@ "node_modules/@types/prop-types": { "version": "15.7.3", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz", - "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==", - "dev": true + "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==" }, "node_modules/@types/puppeteer": { "version": "5.4.3", @@ -5966,7 +6138,6 @@ "version": "16.14.5", "resolved": "https://registry.npmjs.org/@types/react/-/react-16.14.5.tgz", "integrity": "sha512-YRRv9DNZhaVTVRh9Wmmit7Y0UFhEVqXqCSw3uazRWMxa2x85hWQZ5BN24i7GXZbaclaLXEcodEeIHsjBA8eAMw==", - "dev": true, "dependencies": { "@types/prop-types": "*", "@types/scheduler": "*", @@ -5991,6 +6162,14 @@ "@types/react": "*" } }, + "node_modules/@types/react-transition-group": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.1.tgz", + "integrity": "sha512-vIo69qKKcYoJ8wKCJjwSgCTM+z3chw3g18dkrDfVX665tMH7tmbDxEAnPdey4gTlwZz5QuHGzd+hul0OVZDqqQ==", + "dependencies": { + "@types/react": "*" + } + }, "node_modules/@types/responselike": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.0.tgz", @@ -6022,8 +6201,7 @@ "node_modules/@types/scheduler": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.1.tgz", - "integrity": "sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA==", - "dev": true + "integrity": "sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA==" }, "node_modules/@types/serialize-javascript": { "version": "5.0.0", @@ -9599,7 +9777,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.1.1.tgz", "integrity": "sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==", - "dev": true, "engines": { "node": ">=6" } @@ -11408,6 +11585,15 @@ "integrity": "sha1-Xv1sLupeof1rasV+wEJ7GEUkJOo=", "dev": true }, + "node_modules/css-vendor": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/css-vendor/-/css-vendor-2.0.8.tgz", + "integrity": "sha512-x9Aq0XTInxrkuFeHKbYC7zWY8ai7qJ04Kxd9MnvbC1uO5DagxoHQjm4JvG+vCdXOoFtCjbL2XSZfxmoYa9uQVQ==", + "dependencies": { + "@babel/runtime": "^7.8.3", + "is-in-browser": "^1.0.2" + } + }, "node_modules/css-what": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/css-what/-/css-what-2.1.3.tgz", @@ -12141,8 +12327,7 @@ "node_modules/csstype": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.7.tgz", - "integrity": "sha512-KxnUB0ZMlnUWCsx2Z8MUsr6qV6ja1w9ArPErJaJaF8a5SOWoHLIszeCTKGRGRgtLgYrs1E8CHkNSP1VZTTPc9g==", - "dev": true + "integrity": "sha512-KxnUB0ZMlnUWCsx2Z8MUsr6qV6ja1w9ArPErJaJaF8a5SOWoHLIszeCTKGRGRgtLgYrs1E8CHkNSP1VZTTPc9g==" }, "node_modules/currently-unhandled": { "version": "0.4.1", @@ -13051,6 +13236,15 @@ "utila": "~0.4" } }, + "node_modules/dom-helpers": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.0.tgz", + "integrity": "sha512-Ru5o9+V8CpunKnz5LGgWXkmrH/20cGKwcHwS4m73zIvs54CN9epEmT/HLqFJW3kXpakAFkEdzgy1hzlJe3E4OQ==", + "dependencies": { + "@babel/runtime": "^7.8.7", + "csstype": "^3.0.2" + } + }, "node_modules/dom-iterator": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/dom-iterator/-/dom-iterator-1.0.0.tgz", @@ -17079,7 +17273,6 @@ "version": "3.3.2", "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", - "dev": true, "dependencies": { "react-is": "^16.7.0" } @@ -17612,6 +17805,11 @@ "url": "https://github.com/sponsors/typicode" } }, + "node_modules/hyphenate-style-name": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz", + "integrity": "sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ==" + }, "node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -17761,6 +17959,14 @@ "node": ">=0.8.19" } }, + "node_modules/indefinite-observable": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/indefinite-observable/-/indefinite-observable-2.0.1.tgz", + "integrity": "sha512-G8vgmork+6H9S8lUAg1gtXEj2JxIQTo0g2PbFiYOdjkziSI0F7UYBiVwhZRuixhBCNGczAls34+5HJPyZysvxQ==", + "dependencies": { + "symbol-observable": "1.2.0" + } + }, "node_modules/indent-string": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", @@ -18274,6 +18480,11 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/is-in-browser": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/is-in-browser/-/is-in-browser-1.1.3.tgz", + "integrity": "sha1-Vv9NtoOgeMYILrldrX3GLh0E+DU=" + }, "node_modules/is-installed-globally": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", @@ -19667,8 +19878,7 @@ "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "node_modules/js-yaml": { "version": "3.14.1", @@ -19888,6 +20098,89 @@ "verror": "1.10.0" } }, + "node_modules/jss": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/jss/-/jss-10.6.0.tgz", + "integrity": "sha512-n7SHdCozmxnzYGXBHe0NsO0eUf9TvsHVq2MXvi4JmTn3x5raynodDVE/9VQmBdWFyyj9HpHZ2B4xNZ7MMy7lkw==", + "dependencies": { + "@babel/runtime": "^7.3.1", + "csstype": "^3.0.2", + "indefinite-observable": "^2.0.1", + "is-in-browser": "^1.1.3", + "tiny-warning": "^1.0.2" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/jss" + } + }, + "node_modules/jss-plugin-camel-case": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/jss-plugin-camel-case/-/jss-plugin-camel-case-10.6.0.tgz", + "integrity": "sha512-JdLpA3aI/npwj3nDMKk308pvnhoSzkW3PXlbgHAzfx0yHWnPPVUjPhXFtLJzgKZge8lsfkUxvYSQ3X2OYIFU6A==", + "dependencies": { + "@babel/runtime": "^7.3.1", + "hyphenate-style-name": "^1.0.3", + "jss": "10.6.0" + } + }, + "node_modules/jss-plugin-default-unit": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/jss-plugin-default-unit/-/jss-plugin-default-unit-10.6.0.tgz", + "integrity": "sha512-7y4cAScMHAxvslBK2JRK37ES9UT0YfTIXWgzUWD5euvR+JR3q+o8sQKzBw7GmkQRfZijrRJKNTiSt1PBsLI9/w==", + "dependencies": { + "@babel/runtime": "^7.3.1", + "jss": "10.6.0" + } + }, + "node_modules/jss-plugin-global": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/jss-plugin-global/-/jss-plugin-global-10.6.0.tgz", + "integrity": "sha512-I3w7ji/UXPi3VuWrTCbHG9rVCgB4yoBQLehGDTmsnDfXQb3r1l3WIdcO8JFp9m0YMmyy2CU7UOV6oPI7/Tmu+w==", + "dependencies": { + "@babel/runtime": "^7.3.1", + "jss": "10.6.0" + } + }, + "node_modules/jss-plugin-nested": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/jss-plugin-nested/-/jss-plugin-nested-10.6.0.tgz", + "integrity": "sha512-fOFQWgd98H89E6aJSNkEh2fAXquC9aZcAVjSw4q4RoQ9gU++emg18encR4AT4OOIFl4lQwt5nEyBBRn9V1Rk8g==", + "dependencies": { + "@babel/runtime": "^7.3.1", + "jss": "10.6.0", + "tiny-warning": "^1.0.2" + } + }, + "node_modules/jss-plugin-props-sort": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/jss-plugin-props-sort/-/jss-plugin-props-sort-10.6.0.tgz", + "integrity": "sha512-oMCe7hgho2FllNc60d9VAfdtMrZPo9n1Iu6RNa+3p9n0Bkvnv/XX5San8fTPujrTBScPqv9mOE0nWVvIaohNuw==", + "dependencies": { + "@babel/runtime": "^7.3.1", + "jss": "10.6.0" + } + }, + "node_modules/jss-plugin-rule-value-function": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/jss-plugin-rule-value-function/-/jss-plugin-rule-value-function-10.6.0.tgz", + "integrity": "sha512-TKFqhRTDHN1QrPTMYRlIQUOC2FFQb271+AbnetURKlGvRl/eWLswcgHQajwuxI464uZk91sPiTtdGi7r7XaWfA==", + "dependencies": { + "@babel/runtime": "^7.3.1", + "jss": "10.6.0", + "tiny-warning": "^1.0.2" + } + }, + "node_modules/jss-plugin-vendor-prefixer": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/jss-plugin-vendor-prefixer/-/jss-plugin-vendor-prefixer-10.6.0.tgz", + "integrity": "sha512-doJ7MouBXT1lypLLctCwb4nJ6lDYqrTfVS3LtXgox42Xz0gXusXIIDboeh6UwnSmox90QpVnub7au8ybrb0krQ==", + "dependencies": { + "@babel/runtime": "^7.3.1", + "css-vendor": "^2.0.8", + "jss": "10.6.0" + } + }, "node_modules/jszip": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.6.0.tgz", @@ -20644,7 +20937,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, @@ -22522,7 +22814,6 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -24141,6 +24432,11 @@ "node": ">=6" } }, + "node_modules/popper.js": { + "version": "1.16.1-lts", + "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1-lts.tgz", + "integrity": "sha512-Kjw8nKRl1m+VrSFCoVGPph93W/qrSO7ZkqPpTf7F4bk/sqcfWK019dWBUpE/fBOsOQY1dks/Bmcbfn1heM/IsA==" + }, "node_modules/portfinder": { "version": "1.0.28", "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz", @@ -32518,7 +32814,6 @@ "version": "15.7.2", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==", - "dev": true, "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", @@ -32904,7 +33199,6 @@ "version": "16.14.0", "resolved": "https://registry.npmjs.org/react/-/react-16.14.0.tgz", "integrity": "sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==", - "dev": true, "dependencies": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1", @@ -33171,7 +33465,6 @@ "version": "16.14.0", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.14.0.tgz", "integrity": "sha512-1gCeQXDLoIqMgqD3IO2Ah9bnf0w9kzhwN5q4FGnHZ67hBm9yePzB5JJAIQCc8x3pFnNlwFq4RidZggNAAkzWWw==", - "dev": true, "dependencies": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1", @@ -33212,8 +33505,7 @@ "node_modules/react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "dev": true + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, "node_modules/react-json-view": { "version": "1.21.3", @@ -33409,6 +33701,21 @@ "react-dom": ">= 15.3.0 < 18" } }, + "node_modules/react-transition-group": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.1.tgz", + "integrity": "sha512-Djqr7OQ2aPUiYurhPalTrVy9ddmFCCzwhqQmtN+J3+3DzLO209Fdr70QrN8Z3DsglWql6iY1lDWAfpFiBtuKGw==", + "dependencies": { + "@babel/runtime": "^7.5.5", + "dom-helpers": "^5.0.1", + "loose-envify": "^1.4.0", + "prop-types": "^15.6.2" + }, + "peerDependencies": { + "react": ">=16.6.0", + "react-dom": ">=16.6.0" + } + }, "node_modules/read": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/read/-/read-1.0.7.tgz", @@ -33849,8 +34156,7 @@ "node_modules/regenerator-runtime": { "version": "0.13.7", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz", - "integrity": "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==", - "dev": true + "integrity": "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==" }, "node_modules/regenerator-transform": { "version": "0.14.5", @@ -35304,7 +35610,6 @@ "version": "0.19.1", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.19.1.tgz", "integrity": "sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA==", - "dev": true, "dependencies": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1" @@ -37493,6 +37798,14 @@ "node": ">=4" } }, + "node_modules/symbol-observable": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.2.0.tgz", + "integrity": "sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/symbol-tree": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", @@ -38191,8 +38504,7 @@ "node_modules/tiny-warning": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", - "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==", - "dev": true + "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==" }, "node_modules/tmp": { "version": "0.2.1", @@ -43606,7 +43918,6 @@ "version": "7.13.10", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.13.10.tgz", "integrity": "sha512-4QPkjJq6Ns3V/RgpEahRk+AGfL0eO6RHHtTWoNNr5mO49G6B5+X6d6THgWEAvTrznU5xYpbAlVKRYcsCgh/Akw==", - "dev": true, "requires": { "regenerator-runtime": "^0.13.4" } @@ -44573,6 +44884,11 @@ "joi": "^17.4.0" } }, + "@emotion/hash": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz", + "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==" + }, "@endiliey/static-site-generator-webpack-plugin": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@endiliey/static-site-generator-webpack-plugin/-/static-site-generator-webpack-plugin-4.0.0.tgz", @@ -45947,6 +46263,98 @@ "write-file-atomic": "^3.0.3" } }, + "@material-ui/core": { + "version": "4.11.3", + "resolved": "https://registry.npmjs.org/@material-ui/core/-/core-4.11.3.tgz", + "integrity": "sha512-Adt40rGW6Uds+cAyk3pVgcErpzU/qxc7KBR94jFHBYretU4AtWZltYcNsbeMn9tXL86jjVL1kuGcIHsgLgFGRw==", + "requires": { + "@babel/runtime": "^7.4.4", + "@material-ui/styles": "^4.11.3", + "@material-ui/system": "^4.11.3", + "@material-ui/types": "^5.1.0", + "@material-ui/utils": "^4.11.2", + "@types/react-transition-group": "^4.2.0", + "clsx": "^1.0.4", + "hoist-non-react-statics": "^3.3.2", + "popper.js": "1.16.1-lts", + "prop-types": "^15.7.2", + "react-is": "^16.8.0 || ^17.0.0", + "react-transition-group": "^4.4.0" + } + }, + "@material-ui/icons": { + "version": "4.11.2", + "resolved": "https://registry.npmjs.org/@material-ui/icons/-/icons-4.11.2.tgz", + "integrity": "sha512-fQNsKX2TxBmqIGJCSi3tGTO/gZ+eJgWmMJkgDiOfyNaunNaxcklJQFaFogYcFl0qFuaEz1qaXYXboa/bUXVSOQ==", + "dev": true, + "requires": { + "@babel/runtime": "^7.4.4" + } + }, + "@material-ui/styles": { + "version": "4.11.3", + "resolved": "https://registry.npmjs.org/@material-ui/styles/-/styles-4.11.3.tgz", + "integrity": "sha512-HzVzCG+PpgUGMUYEJ2rTEmQYeonGh41BYfILNFb/1ueqma+p1meSdu4RX6NjxYBMhf7k+jgfHFTTz+L1SXL/Zg==", + "requires": { + "@babel/runtime": "^7.4.4", + "@emotion/hash": "^0.8.0", + "@material-ui/types": "^5.1.0", + "@material-ui/utils": "^4.11.2", + "clsx": "^1.0.4", + "csstype": "^2.5.2", + "hoist-non-react-statics": "^3.3.2", + "jss": "^10.5.1", + "jss-plugin-camel-case": "^10.5.1", + "jss-plugin-default-unit": "^10.5.1", + "jss-plugin-global": "^10.5.1", + "jss-plugin-nested": "^10.5.1", + "jss-plugin-props-sort": "^10.5.1", + "jss-plugin-rule-value-function": "^10.5.1", + "jss-plugin-vendor-prefixer": "^10.5.1", + "prop-types": "^15.7.2" + }, + "dependencies": { + "csstype": { + "version": "2.6.16", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.16.tgz", + "integrity": "sha512-61FBWoDHp/gRtsoDkq/B1nWrCUG/ok1E3tUrcNbZjsE9Cxd9yzUirjS3+nAATB8U4cTtaQmAHbNndoFz5L6C9Q==" + } + } + }, + "@material-ui/system": { + "version": "4.11.3", + "resolved": "https://registry.npmjs.org/@material-ui/system/-/system-4.11.3.tgz", + "integrity": "sha512-SY7otguNGol41Mu2Sg6KbBP1ZRFIbFLHGK81y4KYbsV2yIcaEPOmsCK6zwWlp+2yTV3J/VwT6oSBARtGIVdXPw==", + "requires": { + "@babel/runtime": "^7.4.4", + "@material-ui/utils": "^4.11.2", + "csstype": "^2.5.2", + "prop-types": "^15.7.2" + }, + "dependencies": { + "csstype": { + "version": "2.6.16", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.16.tgz", + "integrity": "sha512-61FBWoDHp/gRtsoDkq/B1nWrCUG/ok1E3tUrcNbZjsE9Cxd9yzUirjS3+nAATB8U4cTtaQmAHbNndoFz5L6C9Q==" + } + } + }, + "@material-ui/types": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@material-ui/types/-/types-5.1.0.tgz", + "integrity": "sha512-7cqRjrY50b8QzRSYyhSpx4WRw2YuO0KKIGQEVk5J8uoz2BanawykgZGoWEqKm7pVIbzFDN0SpPcVV4IhOFkl8A==", + "requires": {} + }, + "@material-ui/utils": { + "version": "4.11.2", + "resolved": "https://registry.npmjs.org/@material-ui/utils/-/utils-4.11.2.tgz", + "integrity": "sha512-Uul8w38u+PICe2Fg2pDKCaIG7kOyhowZ9vjiC1FsVwPABTW8vPPKfF6OvxRq3IiBaI1faOJmgdvMG7rMJARBhA==", + "requires": { + "@babel/runtime": "^7.4.4", + "prop-types": "^15.7.2", + "react-is": "^16.8.0 || ^17.0.0" + } + }, "@mdx-js/mdx": { "version": "1.6.22", "resolved": "https://registry.npmjs.org/@mdx-js/mdx/-/mdx-1.6.22.tgz", @@ -47048,8 +47456,7 @@ "@types/prop-types": { "version": "15.7.3", "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz", - "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==", - "dev": true + "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==" }, "@types/puppeteer": { "version": "5.4.3", @@ -47079,7 +47486,6 @@ "version": "16.14.5", "resolved": "https://registry.npmjs.org/@types/react/-/react-16.14.5.tgz", "integrity": "sha512-YRRv9DNZhaVTVRh9Wmmit7Y0UFhEVqXqCSw3uazRWMxa2x85hWQZ5BN24i7GXZbaclaLXEcodEeIHsjBA8eAMw==", - "dev": true, "requires": { "@types/prop-types": "*", "@types/scheduler": "*", @@ -47104,6 +47510,14 @@ "@types/react": "*" } }, + "@types/react-transition-group": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.1.tgz", + "integrity": "sha512-vIo69qKKcYoJ8wKCJjwSgCTM+z3chw3g18dkrDfVX665tMH7tmbDxEAnPdey4gTlwZz5QuHGzd+hul0OVZDqqQ==", + "requires": { + "@types/react": "*" + } + }, "@types/responselike": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.0.tgz", @@ -47135,8 +47549,7 @@ "@types/scheduler": { "version": "0.16.1", "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.1.tgz", - "integrity": "sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA==", - "dev": true + "integrity": "sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA==" }, "@types/serialize-javascript": { "version": "5.0.0", @@ -50077,8 +50490,7 @@ "clsx": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.1.1.tgz", - "integrity": "sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==", - "dev": true + "integrity": "sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==" }, "cmd-shim": { "version": "4.1.0", @@ -51532,6 +51944,15 @@ "integrity": "sha1-Xv1sLupeof1rasV+wEJ7GEUkJOo=", "dev": true }, + "css-vendor": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/css-vendor/-/css-vendor-2.0.8.tgz", + "integrity": "sha512-x9Aq0XTInxrkuFeHKbYC7zWY8ai7qJ04Kxd9MnvbC1uO5DagxoHQjm4JvG+vCdXOoFtCjbL2XSZfxmoYa9uQVQ==", + "requires": { + "@babel/runtime": "^7.8.3", + "is-in-browser": "^1.0.2" + } + }, "css-what": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/css-what/-/css-what-2.1.3.tgz", @@ -52103,8 +52524,7 @@ "csstype": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.7.tgz", - "integrity": "sha512-KxnUB0ZMlnUWCsx2Z8MUsr6qV6ja1w9ArPErJaJaF8a5SOWoHLIszeCTKGRGRgtLgYrs1E8CHkNSP1VZTTPc9g==", - "dev": true + "integrity": "sha512-KxnUB0ZMlnUWCsx2Z8MUsr6qV6ja1w9ArPErJaJaF8a5SOWoHLIszeCTKGRGRgtLgYrs1E8CHkNSP1VZTTPc9g==" }, "currently-unhandled": { "version": "0.4.1", @@ -52831,6 +53251,15 @@ "utila": "~0.4" } }, + "dom-helpers": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.0.tgz", + "integrity": "sha512-Ru5o9+V8CpunKnz5LGgWXkmrH/20cGKwcHwS4m73zIvs54CN9epEmT/HLqFJW3kXpakAFkEdzgy1hzlJe3E4OQ==", + "requires": { + "@babel/runtime": "^7.8.7", + "csstype": "^3.0.2" + } + }, "dom-iterator": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/dom-iterator/-/dom-iterator-1.0.0.tgz", @@ -56121,7 +56550,6 @@ "version": "3.3.2", "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", - "dev": true, "requires": { "react-is": "^16.7.0" } @@ -56566,6 +56994,11 @@ "integrity": "sha512-SQS2gDTB7tBN486QSoKPKQItZw97BMOd+Kdb6ghfpBc0yXyzrddI0oDV5MkDAbuB4X2mO3/nj60TRMcYxwzZeQ==", "dev": true }, + "hyphenate-style-name": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/hyphenate-style-name/-/hyphenate-style-name-1.0.4.tgz", + "integrity": "sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ==" + }, "iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -56667,6 +57100,14 @@ "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", "dev": true }, + "indefinite-observable": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/indefinite-observable/-/indefinite-observable-2.0.1.tgz", + "integrity": "sha512-G8vgmork+6H9S8lUAg1gtXEj2JxIQTo0g2PbFiYOdjkziSI0F7UYBiVwhZRuixhBCNGczAls34+5HJPyZysvxQ==", + "requires": { + "symbol-observable": "1.2.0" + } + }, "indent-string": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", @@ -57032,6 +57473,11 @@ "integrity": "sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==", "dev": true }, + "is-in-browser": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/is-in-browser/-/is-in-browser-1.1.3.tgz", + "integrity": "sha1-Vv9NtoOgeMYILrldrX3GLh0E+DU=" + }, "is-installed-globally": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", @@ -58108,8 +58554,7 @@ "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" }, "js-yaml": { "version": "3.14.1", @@ -58285,6 +58730,85 @@ "verror": "1.10.0" } }, + "jss": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/jss/-/jss-10.6.0.tgz", + "integrity": "sha512-n7SHdCozmxnzYGXBHe0NsO0eUf9TvsHVq2MXvi4JmTn3x5raynodDVE/9VQmBdWFyyj9HpHZ2B4xNZ7MMy7lkw==", + "requires": { + "@babel/runtime": "^7.3.1", + "csstype": "^3.0.2", + "indefinite-observable": "^2.0.1", + "is-in-browser": "^1.1.3", + "tiny-warning": "^1.0.2" + } + }, + "jss-plugin-camel-case": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/jss-plugin-camel-case/-/jss-plugin-camel-case-10.6.0.tgz", + "integrity": "sha512-JdLpA3aI/npwj3nDMKk308pvnhoSzkW3PXlbgHAzfx0yHWnPPVUjPhXFtLJzgKZge8lsfkUxvYSQ3X2OYIFU6A==", + "requires": { + "@babel/runtime": "^7.3.1", + "hyphenate-style-name": "^1.0.3", + "jss": "10.6.0" + } + }, + "jss-plugin-default-unit": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/jss-plugin-default-unit/-/jss-plugin-default-unit-10.6.0.tgz", + "integrity": "sha512-7y4cAScMHAxvslBK2JRK37ES9UT0YfTIXWgzUWD5euvR+JR3q+o8sQKzBw7GmkQRfZijrRJKNTiSt1PBsLI9/w==", + "requires": { + "@babel/runtime": "^7.3.1", + "jss": "10.6.0" + } + }, + "jss-plugin-global": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/jss-plugin-global/-/jss-plugin-global-10.6.0.tgz", + "integrity": "sha512-I3w7ji/UXPi3VuWrTCbHG9rVCgB4yoBQLehGDTmsnDfXQb3r1l3WIdcO8JFp9m0YMmyy2CU7UOV6oPI7/Tmu+w==", + "requires": { + "@babel/runtime": "^7.3.1", + "jss": "10.6.0" + } + }, + "jss-plugin-nested": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/jss-plugin-nested/-/jss-plugin-nested-10.6.0.tgz", + "integrity": "sha512-fOFQWgd98H89E6aJSNkEh2fAXquC9aZcAVjSw4q4RoQ9gU++emg18encR4AT4OOIFl4lQwt5nEyBBRn9V1Rk8g==", + "requires": { + "@babel/runtime": "^7.3.1", + "jss": "10.6.0", + "tiny-warning": "^1.0.2" + } + }, + "jss-plugin-props-sort": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/jss-plugin-props-sort/-/jss-plugin-props-sort-10.6.0.tgz", + "integrity": "sha512-oMCe7hgho2FllNc60d9VAfdtMrZPo9n1Iu6RNa+3p9n0Bkvnv/XX5San8fTPujrTBScPqv9mOE0nWVvIaohNuw==", + "requires": { + "@babel/runtime": "^7.3.1", + "jss": "10.6.0" + } + }, + "jss-plugin-rule-value-function": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/jss-plugin-rule-value-function/-/jss-plugin-rule-value-function-10.6.0.tgz", + "integrity": "sha512-TKFqhRTDHN1QrPTMYRlIQUOC2FFQb271+AbnetURKlGvRl/eWLswcgHQajwuxI464uZk91sPiTtdGi7r7XaWfA==", + "requires": { + "@babel/runtime": "^7.3.1", + "jss": "10.6.0", + "tiny-warning": "^1.0.2" + } + }, + "jss-plugin-vendor-prefixer": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/jss-plugin-vendor-prefixer/-/jss-plugin-vendor-prefixer-10.6.0.tgz", + "integrity": "sha512-doJ7MouBXT1lypLLctCwb4nJ6lDYqrTfVS3LtXgox42Xz0gXusXIIDboeh6UwnSmox90QpVnub7au8ybrb0krQ==", + "requires": { + "@babel/runtime": "^7.3.1", + "css-vendor": "^2.0.8", + "jss": "10.6.0" + } + }, "jszip": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.6.0.tgz", @@ -58961,7 +59485,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, "requires": { "js-tokens": "^3.0.0 || ^4.0.0" } @@ -60515,8 +61038,7 @@ "object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" }, "object-copy": { "version": "0.1.0", @@ -61765,6 +62287,11 @@ "ts-pnp": "^1.1.6" } }, + "popper.js": { + "version": "1.16.1-lts", + "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1-lts.tgz", + "integrity": "sha512-Kjw8nKRl1m+VrSFCoVGPph93W/qrSO7ZkqPpTf7F4bk/sqcfWK019dWBUpE/fBOsOQY1dks/Bmcbfn1heM/IsA==" + }, "portfinder": { "version": "1.0.28", "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.28.tgz", @@ -68335,7 +68862,6 @@ "version": "15.7.2", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==", - "dev": true, "requires": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", @@ -68659,7 +69185,6 @@ "version": "16.14.0", "resolved": "https://registry.npmjs.org/react/-/react-16.14.0.tgz", "integrity": "sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==", - "dev": true, "requires": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1", @@ -68869,7 +69394,6 @@ "version": "16.14.0", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.14.0.tgz", "integrity": "sha512-1gCeQXDLoIqMgqD3IO2Ah9bnf0w9kzhwN5q4FGnHZ67hBm9yePzB5JJAIQCc8x3pFnNlwFq4RidZggNAAkzWWw==", - "dev": true, "requires": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1", @@ -68904,8 +69428,7 @@ "react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "dev": true + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==" }, "react-json-view": { "version": "1.21.3", @@ -69059,6 +69582,17 @@ "classnames": "^2.2.5" } }, + "react-transition-group": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.1.tgz", + "integrity": "sha512-Djqr7OQ2aPUiYurhPalTrVy9ddmFCCzwhqQmtN+J3+3DzLO209Fdr70QrN8Z3DsglWql6iY1lDWAfpFiBtuKGw==", + "requires": { + "@babel/runtime": "^7.5.5", + "dom-helpers": "^5.0.1", + "loose-envify": "^1.4.0", + "prop-types": "^15.6.2" + } + }, "read": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/read/-/read-1.0.7.tgz", @@ -69419,8 +69953,7 @@ "regenerator-runtime": { "version": "0.13.7", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz", - "integrity": "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==", - "dev": true + "integrity": "sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==" }, "regenerator-transform": { "version": "0.14.5", @@ -70590,7 +71123,6 @@ "version": "0.19.1", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.19.1.tgz", "integrity": "sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA==", - "dev": true, "requires": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1" @@ -72427,6 +72959,11 @@ } } }, + "symbol-observable": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.2.0.tgz", + "integrity": "sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==" + }, "symbol-tree": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", @@ -73011,8 +73548,7 @@ "tiny-warning": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz", - "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==", - "dev": true + "integrity": "sha512-lBN9zLN/oAf68o3zNXYrdCt1kP8WsiGW8Oo2ka41b2IM5JL/S1CTyX1rW0mb/zSuJun0ZUrDxx4sqvYS2FWzPA==" }, "tmp": { "version": "0.2.1", diff --git a/package.json b/package.json index 7cf9633a20..73f03a00e8 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "@docusaurus/preset-classic": "2.0.0-alpha.72", "@docusaurus/theme-live-codeblock": "2.0.0-alpha.72", "@jest/transform": "^26.6.2", + "@material-ui/icons": "^4.11.2", "@testing-library/jest-dom": "^5.11.5", "@testing-library/react": "^11.1.1", "@types/babel__core": "^7.1.7", @@ -127,6 +128,7 @@ }, "author": "Seth Bertalotto ", "dependencies": { + "@material-ui/core": "^4.11.3", "chokidar": "^3.4.2" } } diff --git a/packages/editor/BUILD b/packages/editor/BUILD new file mode 100644 index 0000000000..444af8f065 --- /dev/null +++ b/packages/editor/BUILD @@ -0,0 +1,113 @@ +load("@build_bazel_rules_nodejs//:index.bzl", "generated_file_test", "pkg_npm", "copy_to_bin") +load("//tools:index.bzl", "check_format", "ts_compile", "esbuild") +load("//tools:jest.bzl", "jest_test") +load("@npm//http-server:index.bzl", "http_server") +PACKAGE_NAME = "editor" + +pkg_npm( + name = PACKAGE_NAME, + package_name = "@formatjs/%s" % PACKAGE_NAME, + srcs = [ + "LICENSE.md", + "README.md", + ], + deps = [ + ":dist", + ":dist-esm", + ], +) + +alias( + name = "publish", + actual = "%s.publish" % PACKAGE_NAME, +) + +alias( + name = "pack", + actual = "%s.pack" % PACKAGE_NAME, +) + +SRCS = glob(["*.ts*"]) + +SRC_DEPS = [ + "@npm//@material-ui/core", + "@npm//@material-ui/icons", + "@npm//react", + "@npm//@types/react", + "@npm//react-dom", + "@npm//@types/react-dom", + "//packages/react-intl:dist" +] + +ts_compile( + name = "dist", + package_name = "@formatjs/%s" % PACKAGE_NAME, + srcs = SRCS, + deps = SRC_DEPS, + skip_esm=False, +) + +# jest_test( +# name = "unit", +# srcs = [ +# "package.json", +# "tests/extract/unit.test.ts", +# "tests/extract/vue_extractor.test.ts", +# "tests/extract/__snapshots__/unit.test.ts.snap", +# ] + SRCS, +# deps = [ +# "//packages/icu-messageformat-parser:types", +# "//packages/ts-transformer:types", +# "@npm//rimraf", +# "@npm//@types/rimraf", +# ] + SRC_DEPS, +# ) + +generated_file_test( + name = "tsconfig_json", + src = "tsconfig.json", + generated = "//tools:tsconfig.golden.json", +) + +check_format( + name = "prettier", + srcs = glob( + [ + "**/*", + ], + exclude = [ + "CHANGELOG.md", + # Intentional err + "tests/extract/typescript/err.tsx", + "tests/*/__snapshots__/*", + ], + ), +) + +esbuild( + name = "app", + define = [ + "process.env.NODE_ENV=\"development\"", + ], + entry_point = "lib/main.js", + format = "iife", + deps = [":dist-esm"] + SRC_DEPS + [ + + ], +) + +copy_to_bin( + name = "index", + srcs = ["index.html"], +) + +http_server( + name = "server", + data = [ + ":index", + ":app", + ], + templated_args = [ + "packages/editor", + ], +) diff --git a/packages/editor/CHANGELOG.md b/packages/editor/CHANGELOG.md new file mode 100644 index 0000000000..9dbaae9063 --- /dev/null +++ b/packages/editor/CHANGELOG.md @@ -0,0 +1,1542 @@ +# Change Log + +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +## [4.2.4](https://github.com/formatjs/formatjs/compare/@formatjs/cli@4.2.3...@formatjs/cli@4.2.4) (2021-03-30) + + +### Bug Fixes + +* **@formatjs/cli:** remove unnecessary type definition ([#2776](https://github.com/formatjs/formatjs/issues/2776)) ([32b8ebc](https://github.com/formatjs/formatjs/commit/32b8ebca5d989b7683b3b6b2e06aefff31959e29)) + + + + + +## [4.2.3](https://github.com/formatjs/formatjs/compare/@formatjs/cli@4.2.2...@formatjs/cli@4.2.3) (2021-03-30) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [4.2.2](https://github.com/formatjs/formatjs/compare/@formatjs/cli@4.2.1...@formatjs/cli@4.2.2) (2021-03-28) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [4.2.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@4.2.0...@formatjs/cli@4.2.1) (2021-03-28) + +**Note:** Version bump only for package @formatjs/cli + + + + + +# [4.2.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@4.1.1...@formatjs/cli@4.2.0) (2021-03-28) + + +### Features + +* **@formatjs/cli:** add --flatten option ([9b4efd8](https://github.com/formatjs/formatjs/commit/9b4efd864ad65824dca4b0633d3ba9f495442e71)) + + + + + +## [4.1.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@4.1.0...@formatjs/cli@4.1.1) (2021-03-27) + + +### Bug Fixes + +* **@formatjs/cli:** fix missing dep ([498fa5e](https://github.com/formatjs/formatjs/commit/498fa5e9b6f161b46019543eb0c07866f3c46cf0)) + + + + + +# [4.1.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@4.0.0...@formatjs/cli@4.1.0) (2021-03-27) + + +### Features + +* **@formatjs/cli:** switch parser to @formatjs/icu-messageformat-parser (6x faster) ([5e1da21](https://github.com/formatjs/formatjs/commit/5e1da211d005a3ef667eb5ee5348b9f84ab57cad)) + + + + + +# [4.0.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@3.2.0...@formatjs/cli@4.0.0) (2021-03-26) + + +### Bug Fixes + +* **@formatjs/cli:** fix pseudo locale compilation for tag element, fix [#2744](https://github.com/formatjs/formatjs/issues/2744) ([0f42927](https://github.com/formatjs/formatjs/commit/0f42927e6cbd32fa46a54462113cf916cb7d9636)) + + +### Features + +* **@formatjs/cli:** change default value for idInterpolationPattern to [sha512:contenthash:base64:6] in order to avoid hash collisions happening with [contenthash:5] ([d8d361c](https://github.com/formatjs/formatjs/commit/d8d361ca5844d99020d11ef83c6d93aa6423f69f)) + + +### BREAKING CHANGES + +* **@formatjs/cli:** If you do not set the id pattern explicitly this will generate new IDs in your language files + + + + + +# [3.2.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@3.1.6...@formatjs/cli@3.2.0) (2021-03-15) + + +### Features + +* **@formatjs/cli:** add `--skip-errors` to skip messages with errors when compiling ([#2704](https://github.com/formatjs/formatjs/issues/2704)) ([8962e78](https://github.com/formatjs/formatjs/commit/8962e78fbf6fd5e8628b60eeecb813f61ad524ed)) +* **cli:** add new pseudo locale en-XB ([#2708](https://github.com/formatjs/formatjs/issues/2708)) ([18bd4d7](https://github.com/formatjs/formatjs/commit/18bd4d76cf2c41854eaac3a4ef3e9e11e63182d0)) + + + + + +## [3.1.6](https://github.com/formatjs/formatjs/compare/@formatjs/cli@3.1.5...@formatjs/cli@3.1.6) (2021-03-01) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [3.1.5](https://github.com/formatjs/formatjs/compare/@formatjs/cli@3.1.4...@formatjs/cli@3.1.5) (2021-02-25) + + +### Bug Fixes + +* bump tslib version dep ([37577d2](https://github.com/formatjs/formatjs/commit/37577d22bf28d23de1d8013ba0047cf221ad8840)), closes [#2645](https://github.com/formatjs/formatjs/issues/2645) + + + + + +## [3.1.4](https://github.com/formatjs/formatjs/compare/@formatjs/cli@3.1.3...@formatjs/cli@3.1.4) (2021-02-25) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [3.1.3](https://github.com/formatjs/formatjs/compare/@formatjs/cli@3.1.2...@formatjs/cli@3.1.3) (2021-02-22) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [3.1.2](https://github.com/formatjs/formatjs/compare/@formatjs/cli@3.1.1...@formatjs/cli@3.1.2) (2021-02-21) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [3.1.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@3.1.0...@formatjs/cli@3.1.1) (2021-02-21) + +**Note:** Version bump only for package @formatjs/cli + + + + + +# [3.1.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@3.0.5...@formatjs/cli@3.1.0) (2021-02-13) + + +### Features + +* **@formatjs/cli:** support preserving whitespace and newlines ([a1b31bd](https://github.com/formatjs/formatjs/commit/a1b31bdd5ab203db463a101dbb3ae06a76cac7a3)) + + + + + +## [3.0.5](https://github.com/formatjs/formatjs/compare/@formatjs/cli@3.0.4...@formatjs/cli@3.0.5) (2021-01-27) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [3.0.4](https://github.com/formatjs/formatjs/compare/@formatjs/cli@3.0.3...@formatjs/cli@3.0.4) (2021-01-26) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [3.0.3](https://github.com/formatjs/formatjs/compare/@formatjs/cli@3.0.2...@formatjs/cli@3.0.3) (2021-01-25) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [3.0.2](https://github.com/formatjs/formatjs/compare/@formatjs/cli@3.0.1...@formatjs/cli@3.0.2) (2021-01-22) + + +### Bug Fixes + +* **@formatjs/cli:** add string_format:icu config to smartling formatter ([#2528](https://github.com/formatjs/formatjs/issues/2528)) ([eec1c6f](https://github.com/formatjs/formatjs/commit/eec1c6faa406fc28257976f1ef2c10b75e6b4d19)), closes [#2526](https://github.com/formatjs/formatjs/issues/2526) + + + + + +## [3.0.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@3.0.0...@formatjs/cli@3.0.1) (2021-01-05) + +**Note:** Version bump only for package @formatjs/cli + + + + + +# [3.0.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.15.0...@formatjs/cli@3.0.0) (2021-01-04) + + +### Features + +* **@formatjs/cli:** remove --extract-from-format-message-call ([0c12d18](https://github.com/formatjs/formatjs/commit/0c12d183c7a69c713fbfe59804668c88da9012f6)) + + +### BREAKING CHANGES + +* **@formatjs/cli:** This has been on by default for a while. We're removing +it and making it permanent. + + + + + +# [2.15.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.14.0...@formatjs/cli@2.15.0) (2021-01-04) + + +### Features + +* **babel-plugin-formatjs:** rename babel-plugin-react-intl to babel-plugin-formatjs ([c9357b7](https://github.com/formatjs/formatjs/commit/c9357b7968c3c7e5c9335ff0058e47da0cb5c6c7)) + + + + + +# [2.14.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.18...@formatjs/cli@2.14.0) (2021-01-04) + + +### Features + +* **@formatjs/cli:** support .vue SFC files ([24d6d1b](https://github.com/formatjs/formatjs/commit/24d6d1bb7a770d9298675d74a365b14147a2f229)) + + + + + +## [2.13.18](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.17...@formatjs/cli@2.13.18) (2021-01-02) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.13.17](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.16...@formatjs/cli@2.13.17) (2021-01-01) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.13.16](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.15...@formatjs/cli@2.13.16) (2020-12-17) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.13.15](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.14...@formatjs/cli@2.13.15) (2020-11-27) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.13.14](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.13...@formatjs/cli@2.13.14) (2020-11-26) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.13.13](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.12...@formatjs/cli@2.13.13) (2020-11-20) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.13.12](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.11...@formatjs/cli@2.13.12) (2020-11-12) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.13.11](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.10...@formatjs/cli@2.13.11) (2020-11-10) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.13.10](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.9...@formatjs/cli@2.13.10) (2020-11-09) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.13.9](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.8...@formatjs/cli@2.13.9) (2020-11-09) + + +### Bug Fixes + +* **@formatjs/cli:** fix help link ([ac15a3f](https://github.com/formatjs/formatjs/commit/ac15a3f955ececfaa0adff4198718eba7e8dc1b0)) + + + + + +## [2.13.8](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.7...@formatjs/cli@2.13.8) (2020-11-05) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.13.7](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.6...@formatjs/cli@2.13.7) (2020-11-05) + + +### Bug Fixes + +* **@formatjs/cli:** lock down monorepo dep version ([3bed9c1](https://github.com/formatjs/formatjs/commit/3bed9c12c8b5dfc05b05808b91f3b8a55b23f3e8)) + + + + + +## [2.13.6](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.5...@formatjs/cli@2.13.6) (2020-11-04) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.13.5](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.4...@formatjs/cli@2.13.5) (2020-10-28) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.13.4](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.3...@formatjs/cli@2.13.4) (2020-10-27) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.13.3](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.2...@formatjs/cli@2.13.3) (2020-10-25) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.13.2](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.1...@formatjs/cli@2.13.2) (2020-10-10) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.13.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.13.0...@formatjs/cli@2.13.1) (2020-10-08) + +**Note:** Version bump only for package @formatjs/cli + + + + + +# [2.13.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.12.0...@formatjs/cli@2.13.0) (2020-10-01) + + +### Features + +* **@formatjs/cli:** add support for pseudo-locales, fix [#2165](https://github.com/formatjs/formatjs/issues/2165) ([015bbdb](https://github.com/formatjs/formatjs/commit/015bbdb53c1e9661fb9a5df9e31a74dde9a7ecfb)) + + + + + +# [2.12.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.11.3...@formatjs/cli@2.12.0) (2020-09-25) + + +### Features + +* **@formatjs/cli:** allow custom Formatter with Node API ([#2143](https://github.com/formatjs/formatjs/issues/2143)) ([c9886ab](https://github.com/formatjs/formatjs/commit/c9886abb1b79ad6fb5cb74c36db377030ca058b0)) + + + + + +## [2.11.3](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.11.2...@formatjs/cli@2.11.3) (2020-09-18) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.11.2](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.11.1...@formatjs/cli@2.11.2) (2020-09-12) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.11.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.11.0...@formatjs/cli@2.11.1) (2020-09-11) + + +### Bug Fixes + +* **@formatjs/cli:** fix calling extract programmatically without idInterpolationPattern ([#2084](https://github.com/formatjs/formatjs/issues/2084)) ([cb904cf](https://github.com/formatjs/formatjs/commit/cb904cfbefa27db778313a39fb14b9cdf147d58b)) + + + + + +# [2.11.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.10.0...@formatjs/cli@2.11.0) (2020-09-09) + + +### Features + +* **@formatjs/cli:** catch issue w/ TS transpilation, fix [#2044](https://github.com/formatjs/formatjs/issues/2044) ([ceb0bf8](https://github.com/formatjs/formatjs/commit/ceb0bf8a58c13fe6811bc35191018ee1c431484a)) + + + + + +# [2.10.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.9.0...@formatjs/cli@2.10.0) (2020-09-09) + + +### Features + +* **@formatjs/cli:** add meta to messages, fix [#2074](https://github.com/formatjs/formatjs/issues/2074) ([585bc66](https://github.com/formatjs/formatjs/commit/585bc66c9ad182a10680466e148fdc4e7e388319)) + + + + + +# [2.9.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.8.0...@formatjs/cli@2.9.0) (2020-09-03) + + +### Features + +* **@formatjs/cli:** support template literal, trim trailing/leading spaces, newlines & ([8a52eb5](https://github.com/formatjs/formatjs/commit/8a52eb567a5f83d36f33bb0dac4961a69cf341b5)), closes [#2028](https://github.com/formatjs/formatjs/issues/2028) + + + + + +# [2.8.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.7.13...@formatjs/cli@2.8.0) (2020-08-30) + + +### Features + +* **@formatjs/cli:** add more debugging info to extraction, fix [#2044](https://github.com/formatjs/formatjs/issues/2044) ([20b832e](https://github.com/formatjs/formatjs/commit/20b832e9e778aa4d115c4bcb154dd7bb412a6b7d)) +* **@formatjs/cli:** upgrade TS to 4.0 ([ec0bd47](https://github.com/formatjs/formatjs/commit/ec0bd47f13ad3c1c38b3f7e72b9fca8ee784f591)) + + + + + +## [2.7.13](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.7.12...@formatjs/cli@2.7.13) (2020-08-28) + + +### Bug Fixes + +* **@formatjs/cli:** add more debug info when message validation errors out, fix [#2029](https://github.com/formatjs/formatjs/issues/2029) ([5b31bab](https://github.com/formatjs/formatjs/commit/5b31babf5a873dec7232a1640a83e64dfa8d3bee)) + + + + + +## [2.7.12](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.7.11...@formatjs/cli@2.7.12) (2020-08-25) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.7.11](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.7.10...@formatjs/cli@2.7.11) (2020-08-22) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.7.10](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.7.9...@formatjs/cli@2.7.10) (2020-08-21) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.7.9](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.7.8...@formatjs/cli@2.7.9) (2020-08-20) + + +### Bug Fixes + +* **@formatjs/cli:** fix fast-glob path join, fix [#2009](https://github.com/formatjs/formatjs/issues/2009) ([fca70be](https://github.com/formatjs/formatjs/commit/fca70bec380569bf92553d884e226aa26a610267)) + + + + + +## [2.7.8](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.7.7...@formatjs/cli@2.7.8) (2020-08-20) + + +### Bug Fixes + +* bump intl-messageformat-parser ([8bbfa04](https://github.com/formatjs/formatjs/commit/8bbfa047da159662700b7e500879da20e54c0f0b)) + + + + + +## [2.7.7](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.7.6...@formatjs/cli@2.7.7) (2020-08-19) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.7.6](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.7.5...@formatjs/cli@2.7.6) (2020-08-19) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.7.5](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.7.4...@formatjs/cli@2.7.5) (2020-08-18) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.7.4](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.7.3...@formatjs/cli@2.7.4) (2020-08-17) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.7.3](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.7.2...@formatjs/cli@2.7.3) (2020-08-14) + + +### Bug Fixes + +* **@formatjs/cli:** fix formatter path resolution, fix [#1969](https://github.com/formatjs/formatjs/issues/1969) ([d6ec6ca](https://github.com/formatjs/formatjs/commit/d6ec6ca48f4401bbc071556e5debe14dca7f5775)) + + + + + +## [2.7.2](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.7.1...@formatjs/cli@2.7.2) (2020-08-14) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.7.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.7.0...@formatjs/cli@2.7.1) (2020-08-14) + +**Note:** Version bump only for package @formatjs/cli + + + + + +# [2.7.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.6.0...@formatjs/cli@2.7.0) (2020-08-13) + + +### Features + +* **@formatjs/cli:** switch from glob to fast-glob ([6fc7bfb](https://github.com/formatjs/formatjs/commit/6fc7bfb925b6a6374c11dba79629f95371c02bc8)) + + + + + +# [2.6.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.5.0...@formatjs/cli@2.6.0) (2020-08-09) + + +### Features + +* **@formatjs/cli:** add compile-folder command, fix [#1938](https://github.com/formatjs/formatjs/issues/1938) ([46b21bb](https://github.com/formatjs/formatjs/commit/46b21bb9bb58bf06ecb7692338a5a9e7f29fc9ae)) + + + + + +# [2.5.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.4.0...@formatjs/cli@2.5.0) (2020-08-09) + + +### Features + +* **@formatjs/cli:** add extract & compile to public API, fix [#1939](https://github.com/formatjs/formatjs/issues/1939) ([ca4aa5a](https://github.com/formatjs/formatjs/commit/ca4aa5aa4df807013c38f38079513f53b879e870)) + + + + + +# [2.4.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.3.2...@formatjs/cli@2.4.0) (2020-08-08) + + +### Features + +* **@formatjs/cli:** allow compile to take in a glob pattern also ([cb36802](https://github.com/formatjs/formatjs/commit/cb36802d143353f8ce9765e11adb163fc0eeec01)) + + + + + +## [2.3.2](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.3.1...@formatjs/cli@2.3.2) (2020-08-07) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [2.3.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.3.0...@formatjs/cli@2.3.1) (2020-08-06) + +**Note:** Version bump only for package @formatjs/cli + + + + + +# [2.3.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.2.0...@formatjs/cli@2.3.0) (2020-08-02) + + +### Features + +* **@formatjs/cli:** add builtin formatter for smartling ([cd36f27](https://github.com/formatjs/formatjs/commit/cd36f277aa2728c4bea0a1fa8d751f2ef5792708)) +* **@formatjs/cli:** add builtin formatter for transifex ([db3955e](https://github.com/formatjs/formatjs/commit/db3955ec43e748d3702943c241a6aa4fc6274335)) +* **@formatjs/cli:** add lokalise, crowdin, lingohub, phrase formatter ([ebada90](https://github.com/formatjs/formatjs/commit/ebada90d8078561244cd3cab326336c358a3e366)) + + + + + +# [2.2.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.1.1...@formatjs/cli@2.2.0) (2020-08-01) + + +### Features + +* **@formatjs/cli:** Add --format option to control JSON output shape, ([1d984e6](https://github.com/formatjs/formatjs/commit/1d984e6aee7848b1a1c95d70e21279d3f049a086)), closes [#1907](https://github.com/formatjs/formatjs/issues/1907) + + + + + +## [2.1.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.1.0...@formatjs/cli@2.1.1) (2020-07-30) + + +### Bug Fixes + +* **@formatjs/cli:** remove mention of --messages-dir from help message, fix [#1899](https://github.com/formatjs/formatjs/issues/1899) ([0e40dab](https://github.com/formatjs/formatjs/commit/0e40dab9ceafc428a144a6ef70acb85110571645)) + + + + + +# [2.1.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.0.1...@formatjs/cli@2.1.0) (2020-07-30) + + +### Bug Fixes + +* **@formatjs/cli:** use `readJSONSync` instead of `require` ([#1895](https://github.com/formatjs/formatjs/issues/1895)) ([5eed1e5](https://github.com/formatjs/formatjs/commit/5eed1e5a5ad14156b409b29cd621ff3e27933049)), closes [#1896](https://github.com/formatjs/formatjs/issues/1896) + + +### Features + +* **@formatjs/cli:** add `line`/`col` to extracted messages, fix [#1897](https://github.com/formatjs/formatjs/issues/1897) ([bf9d694](https://github.com/formatjs/formatjs/commit/bf9d6947e0863516e52c1ba8e27709607d1967a8)) +* **@formatjs/cli:** rm dead --output-empty-json option ([d1760dd](https://github.com/formatjs/formatjs/commit/d1760dd8d810867d48077f0623d7cb7f30698c5f)) + + + + + +## [2.0.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@2.0.0...@formatjs/cli@2.0.1) (2020-07-29) + +**Note:** Version bump only for package @formatjs/cli + + + + + +# [2.0.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.11.0...@formatjs/cli@2.0.0) (2020-07-25) + + +### Features + +* **@formatjs/cli:** add `compile` command ([0ecf8b1](https://github.com/formatjs/formatjs/commit/0ecf8b12f875b224f292c3a40e05d8f4e6521024)) +* **@formatjs/cli:** modify output JSON schema ([457d30b](https://github.com/formatjs/formatjs/commit/457d30b509c13a1fc6ea3c55e92c381676bcc281)) +* **@formatjs/cli:** revamp underlying extraction ([0b0c810](https://github.com/formatjs/formatjs/commit/0b0c8108573ba4a0f74fdac1abe78c9f36f0e3db)) + + +### BREAKING CHANGES + +* **@formatjs/cli:** The old output JSON messages used to be a +`MessageDescriptor[]`. This format isn't friendly to translation vendors +so we've changed it to `Record>`. +For example: +```json +{ + "fjk13": { + "defaultMessage": "a message", + "description": "a description", + "start": 0, + "end": 20 + } +} +``` +* **@formatjs/cli:** Remove `--messages-dir` option. This was primarily used +to eagerly write out output in the babel plugin since we don't know when +the execution will be done. This is not the case with the CLI. +`--out-file` should be used instead. +* **@formatjs/cli:** Remove `--module-source-name` option. This is not used. + + + + + +# [1.11.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.10.7...@formatjs/cli@1.11.0) (2020-07-24) + + +### Features + +* **@formatjs/cli:** default --extract-from-format-message-call to true ([1340e03](https://github.com/formatjs/formatjs/commit/1340e034ac25949af6bf65b498d9f5dd4327fb9b)) + + + + + +## [1.10.7](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.10.6...@formatjs/cli@1.10.7) (2020-07-21) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.10.6](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.10.5...@formatjs/cli@1.10.6) (2020-07-17) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.10.5](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.10.4...@formatjs/cli@1.10.5) (2020-07-16) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.10.4](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.10.3...@formatjs/cli@1.10.4) (2020-07-15) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.10.3](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.10.1...@formatjs/cli@1.10.3) (2020-07-14) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.10.2](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.10.1...@formatjs/cli@1.10.2) (2020-07-14) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.10.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.10.0...@formatjs/cli@1.10.1) (2020-07-14) + +**Note:** Version bump only for package @formatjs/cli + + + + + +# [1.10.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.9.3...@formatjs/cli@1.10.0) (2020-07-14) + + +### Features + +* publish ([b6e3465](https://github.com/formatjs/formatjs/commit/b6e3465ac95b3fa481f3c89f077a66ac004f7c27)) + + + + + +## [1.9.4](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.9.3...@formatjs/cli@1.9.4) (2020-07-09) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.9.3](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.9.2...@formatjs/cli@1.9.3) (2020-07-03) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.9.2](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.9.1...@formatjs/cli@1.9.2) (2020-07-03) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.9.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.9.0...@formatjs/cli@1.9.1) (2020-07-03) + +**Note:** Version bump only for package @formatjs/cli + + + + + +# [1.9.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.8.3...@formatjs/cli@1.9.0) (2020-07-01) + + +### Features + +* **@formatjs/ts-transformer:** move interpolate-name here ([232d190](https://github.com/formatjs/formatjs/commit/232d190df037b81a88c6b0147a82b586b5ed7fb3)) + + + + + +## [1.8.3](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.8.2...@formatjs/cli@1.8.3) (2020-06-26) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.8.2](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.8.1...@formatjs/cli@1.8.2) (2020-06-23) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.8.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.8.0...@formatjs/cli@1.8.1) (2020-06-23) + +**Note:** Version bump only for package @formatjs/cli + + + + + +# [1.8.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.7.5...@formatjs/cli@1.8.0) (2020-06-20) + + +### Features + +* **@formatjs/cli:** add a check for duplicated keys in different files ([#1711](https://github.com/formatjs/formatjs/issues/1711)) ([b6c720e](https://github.com/formatjs/formatjs/commit/b6c720eafaf4799f04768965280c018611e2f258)) + + + + + +## [1.7.5](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.7.4...@formatjs/cli@1.7.5) (2020-06-06) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.7.4](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.7.3...@formatjs/cli@1.7.4) (2020-06-06) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.7.3](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.7.2...@formatjs/cli@1.7.3) (2020-06-04) + + +### Bug Fixes + +* **@formatjs/intl-utils:** don't export interpolateName from index ([72f1566](https://github.com/formatjs/formatjs/commit/72f15662b321046fd3092bb917934790eb6803a6)), closes [#1700](https://github.com/formatjs/formatjs/issues/1700) + + + + + +## [1.7.2](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.7.1...@formatjs/cli@1.7.2) (2020-06-04) + + +### Bug Fixes + +* **@formatjs/ts-transformer:** remove loader-utils dep ([927b3bc](https://github.com/formatjs/formatjs/commit/927b3bc79eea2ea6f0adb7e7008587f9d630a7de)) + + + + + +## [1.7.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.7.0...@formatjs/cli@1.7.1) (2020-06-04) + + +### Bug Fixes + +* **@formatjs/cli:** fix ID gen issue when description is undefined ([547d5b9](https://github.com/formatjs/formatjs/commit/547d5b90381c6b8690fd03d69c8c52de2eb859d4)) + + + + + +# [1.7.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.22...@formatjs/cli@1.7.0) (2020-06-04) + + +### Bug Fixes + +* **@formatjs/cli:** Change default hashing to a longer & stronger hash ([0bb8358](https://github.com/formatjs/formatjs/commit/0bb835804c75c8124c3fdf5921ccdf0dfdb4af8f)) + + +### Features + +* **@formatjs/intl-utils:** Add interpolateName ([4d09912](https://github.com/formatjs/formatjs/commit/4d09912e55c79a5246f18fe69c3646b7deb04f1b)) + + + + + +## [1.6.22](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.21...@formatjs/cli@1.6.22) (2020-06-03) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.6.21](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.20...@formatjs/cli@1.6.21) (2020-05-28) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.6.20](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.19...@formatjs/cli@1.6.20) (2020-05-27) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.6.19](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.18...@formatjs/cli@1.6.19) (2020-05-25) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.6.18](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.17...@formatjs/cli@1.6.18) (2020-05-23) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.6.17](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.16...@formatjs/cli@1.6.17) (2020-05-23) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.6.16](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.15...@formatjs/cli@1.6.16) (2020-05-21) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.6.15](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.14...@formatjs/cli@1.6.15) (2020-05-21) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.6.14](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.13...@formatjs/cli@1.6.14) (2020-05-16) + + +### Bug Fixes + +* **@formatjs/cli:** add chalk as a dep ([#1676](https://github.com/formatjs/formatjs/issues/1676)) ([61799ee](https://github.com/formatjs/formatjs/commit/61799eeff25731af924bd6246d95f03db1943507)), closes [#1673](https://github.com/formatjs/formatjs/issues/1673) + + + + + +## [1.6.13](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.12...@formatjs/cli@1.6.13) (2020-05-08) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.6.12](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.11...@formatjs/cli@1.6.12) (2020-05-07) + + +### Bug Fixes + +* **@formatjs/cli:** add @babel/core as a peer dep ([#1659](https://github.com/formatjs/formatjs/issues/1659)) ([758996d](https://github.com/formatjs/formatjs/commit/758996dc130e731a5b5d2a8aed6c40d36cb2ac1b)) + + + + + +## [1.6.11](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.10...@formatjs/cli@1.6.11) (2020-05-06) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.6.10](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.9...@formatjs/cli@1.6.10) (2020-05-05) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## 1.6.9 (2020-04-28) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.6.8](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.7...@formatjs/cli@1.6.8) (2020-04-25) + + +### Bug Fixes + +* **@formatjs/cli:** fix `throws` option not being passed to main method ([#665](https://github.com/formatjs/formatjs/issues/665)) ([04023b2](https://github.com/formatjs/formatjs/commit/04023b223ece9414e5f635e0f12e62ba3b8aa968)) + + + + + +## [1.6.7](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.6...@formatjs/cli@1.6.7) (2020-04-24) + + +### Bug Fixes + +* **eslint-plugin-formatjs:** add missing dep ([776390e](https://github.com/formatjs/formatjs/commit/776390e9d6cb3bc1eef07b2e92057136cfe95b76)) + + + + + +## [1.6.6](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.5...@formatjs/cli@1.6.6) (2020-04-20) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.6.5](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.4...@formatjs/cli@1.6.5) (2020-04-15) + + +### Bug Fixes + +* **@formatjs/cli:** fix ID generation when description is undefined ([a31c2f2](https://github.com/formatjs/formatjs/commit/a31c2f2c20fd76d72ec77e987d666706be52fe6c)) + + + + + +## [1.6.4](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.3...@formatjs/cli@1.6.4) (2020-04-14) + + +### Bug Fixes + +* clean up tsbuildinfo before full build ([c301ca0](https://github.com/formatjs/formatjs/commit/c301ca02e0c319a0eb03921533053f0334ae5df1)) + + + + + +## [1.6.3](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.2...@formatjs/cli@1.6.3) (2020-04-13) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.6.2](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.1...@formatjs/cli@1.6.2) (2020-04-12) + + +### Bug Fixes + +* **@formatjs/cli:** do not read from stdin if glob pattern is pr… ([#632](https://github.com/formatjs/formatjs/issues/632)) ([54a7aea](https://github.com/formatjs/formatjs/commit/54a7aea5f6afd5e2e656b040b4b8b7eff0566bb7)) +* **@formatjs/cli:** ignore configFile, fix [#631](https://github.com/formatjs/formatjs/issues/631) ([ff09a5f](https://github.com/formatjs/formatjs/commit/ff09a5f9290c054badd4fbdd03c7ee8af5681bd0)) + + + + + +## [1.6.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.6.0...@formatjs/cli@1.6.1) (2020-04-12) + +**Note:** Version bump only for package @formatjs/cli + + + + + +# [1.6.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.5.0...@formatjs/cli@1.6.0) (2020-04-11) + + +### Features + +* **@formatjs/cli:** add support for pragma ([b6c8352](https://github.com/formatjs/formatjs/commit/b6c8352f5181bcb1adbb520cca01191527bc20bb)) + + + + + +# [1.5.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.4.2...@formatjs/cli@1.5.0) (2020-04-11) + + +### Features + +* **@formatjs/cli:** add --throws option to prevent throwing on a single file ([7539936](https://github.com/formatjs/formatjs/commit/75399368f6ddd591b3fbe9c3ed6d9a30bea3586f)) + + + + + +## [1.4.2](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.4.1...@formatjs/cli@1.4.2) (2020-04-11) + + +### Bug Fixes + +* **@formatjs/cli:** export raw extraction method that returns all messages ([45fc546](https://github.com/formatjs/formatjs/commit/45fc5464e05a30071d4f058a66de35f5f0a08e43)) + + + + + +## [1.4.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.4.0...@formatjs/cli@1.4.1) (2020-04-11) + + +### Bug Fixes + +* **@formatjs/cli:** fix main entry point in package.json ([884bf89](https://github.com/formatjs/formatjs/commit/884bf8901b4673542cfa5bcb42c60457cb42715f)) + + + + + +# [1.4.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.3.3...@formatjs/cli@1.4.0) (2020-04-11) + + +### Features + +* **@formatjs/cli:** export extracting API ([08db726](https://github.com/formatjs/formatjs/commit/08db7261721137a1a275fd2c29a0633c19034fd3)) + + + + + +## [1.3.3](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.3.2...@formatjs/cli@1.3.3) (2020-03-30) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.3.2](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.3.1...@formatjs/cli@1.3.2) (2020-03-29) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.3.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.3.0...@formatjs/cli@1.3.1) (2020-03-22) + +**Note:** Version bump only for package @formatjs/cli + + + + + +# [1.3.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.2.0...@formatjs/cli@1.3.0) (2020-03-18) + + +### Features + +* **@formatjs/cli:** add --output-empty-json option ([3106618](https://github.com/formatjs/formatjs/commit/3106618cbcb14eb7b1c63084b47b16a80737092d)) + + + + + +# [1.2.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.22...@formatjs/cli@1.2.0) (2020-03-18) + + +### Features + +* **@formatjs/cli:** Add option to ignore a glob of files ([#564](https://github.com/formatjs/formatjs/issues/564)) ([843d82b](https://github.com/formatjs/formatjs/commit/843d82b2190458deab2f4393cb854cc4d36f6dfc)) + + + + + +## [1.1.22](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.21...@formatjs/cli@1.1.22) (2020-03-05) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.1.21](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.19...@formatjs/cli@1.1.21) (2020-03-04) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.1.20](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.19...@formatjs/cli@1.1.20) (2020-01-27) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.1.19](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.18...@formatjs/cli@1.1.19) (2020-01-22) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.1.18](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.17...@formatjs/cli@1.1.18) (2020-01-09) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.1.17](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.16...@formatjs/cli@1.1.17) (2020-01-08) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.1.16](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.15...@formatjs/cli@1.1.16) (2020-01-06) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.1.15](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.14...@formatjs/cli@1.1.15) (2019-12-27) + + +### Bug Fixes + +* **@formatjs/cli:** allow optionalChaining parser, fix [#404](https://github.com/formatjs/formatjs/issues/404) ([1af4607](https://github.com/formatjs/formatjs/commit/1af460783db71bfc7bf0e3f935a020473fcb093d)) + + + + + +## [1.1.14](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.13...@formatjs/cli@1.1.14) (2019-12-27) + + +### Bug Fixes + +* **@formatjs/cli:** glob files instead of relying on shell, fix [#383](https://github.com/formatjs/formatjs/issues/383) ([c7e1a6a](https://github.com/formatjs/formatjs/commit/c7e1a6af5f6334c6fdf18fd3cd29b81c411cbfd2)) + + + + + +## [1.1.13](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.12...@formatjs/cli@1.1.13) (2019-12-26) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.1.12](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.11...@formatjs/cli@1.1.12) (2019-12-04) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.1.11](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.10...@formatjs/cli@1.1.11) (2019-12-02) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.1.10](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.9...@formatjs/cli@1.1.10) (2019-12-01) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.1.9](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.8...@formatjs/cli@1.1.9) (2019-11-26) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.1.8](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.7...@formatjs/cli@1.1.8) (2019-11-25) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.1.7](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.6...@formatjs/cli@1.1.7) (2019-11-25) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.1.6](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.5...@formatjs/cli@1.1.6) (2019-11-23) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.1.5](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.4...@formatjs/cli@1.1.5) (2019-11-21) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.1.4](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.3...@formatjs/cli@1.1.4) (2019-11-20) + + +### Bug Fixes + +* **lint:** fix lint config and rerun ([041eb99](https://github.com/formatjs/formatjs/commit/041eb99706164048b5b8ce7079955897ce27ed70)) + + + + + +## [1.1.3](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.2...@formatjs/cli@1.1.3) (2019-11-11) + + +### Bug Fixes + +* **@formatjs/cli:** remove Node engines restrictions ([e55efe9](https://github.com/formatjs/formatjs/commit/e55efe90edc8859b89978b2b8bd99c41c17c291f)) + + + + + +## [1.1.2](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.1...@formatjs/cli@1.1.2) (2019-11-10) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## [1.1.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.1.0...@formatjs/cli@1.1.1) (2019-11-05) + +**Note:** Version bump only for package @formatjs/cli + + + + + +# [1.1.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.0.1...@formatjs/cli@1.1.0) (2019-11-01) + + +### Bug Fixes + +* **@formatjs/cli:** Add support for parsing class properties ([1714bf9](https://github.com/formatjs/formatjs/commit/1714bf9d9abfc31458222e0922ef57baa1f38787)) + + +### Features + +* **@formatjs/cli:** add --outFile & --idInterpolationPattern ([0c5e675](https://github.com/formatjs/formatjs/commit/0c5e675ed38f18987674a875fa6ed908ce907fc9)) + + + + + +## [1.0.2](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.0.1...@formatjs/cli@1.0.2) (2019-10-31) + + +### Bug Fixes + +* **@formatjs/cli:** Add support for parsing class properties ([1714bf9](https://github.com/formatjs/formatjs/commit/1714bf9d9abfc31458222e0922ef57baa1f38787)) + + + + + +## [1.0.1](https://github.com/formatjs/formatjs/compare/@formatjs/cli@1.0.0...@formatjs/cli@1.0.1) (2019-10-31) + + +### Bug Fixes + +* **@formatjs/cli:** add preset-env so we can parse latest syntax ([6495011](https://github.com/formatjs/formatjs/commit/64950113027da769a83d2e43e71ceccac1af2184)) + + + + + +# [1.0.0](https://github.com/formatjs/formatjs/compare/@formatjs/cli@0.1.2...@formatjs/cli@1.0.0) (2019-10-31) + + +### Features + +* **babel-plugin-react-intl:** remove enforceDescription and enforceDefaultMessage ([72ff434](https://github.com/formatjs/formatjs/commit/72ff4345170f9b240f7331aa6fa36df96a8c823b)) + + +### BREAKING CHANGES + +* **babel-plugin-react-intl:** We want to move things like `enforceDescription` and +`enforceDefaultMessage` to the new eslint-plugin-formatjs instead of +using this babel plugin for linting. +feat(@formatjs/cli): Remove enforceDescription and enforceDefaultMessage + + + + + +## 0.1.2 (2019-10-30) + +**Note:** Version bump only for package @formatjs/cli + + + + + +## 0.1.1 (2019-10-30) + +**Note:** Version bump only for package @formatjs/cli diff --git a/packages/editor/LICENSE.md b/packages/editor/LICENSE.md new file mode 100644 index 0000000000..0320eebafa --- /dev/null +++ b/packages/editor/LICENSE.md @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) 2021 FormatJS + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/editor/README.md b/packages/editor/README.md new file mode 100644 index 0000000000..9f39b48db1 --- /dev/null +++ b/packages/editor/README.md @@ -0,0 +1,3 @@ +# @formatjs/editor [WIP] + +We've migrated the docs to https://formatjs.io/docs/tooling/editor. diff --git a/packages/editor/header.tsx b/packages/editor/header.tsx new file mode 100644 index 0000000000..3939c67a47 --- /dev/null +++ b/packages/editor/header.tsx @@ -0,0 +1,29 @@ +import React from 'react' +import {Typography, Breadcrumbs, Link} from '@material-ui/core' + +function handleClick(event: React.MouseEvent) { + event.preventDefault() + console.info('You clicked a breadcrumb.') +} + +export interface Props {} + +const Header: React.FC = _ => { + return ( + + + Material-UI + + + Core + + Breadcrumb + + ) +} + +export default Header diff --git a/packages/editor/index.html b/packages/editor/index.html new file mode 100644 index 0000000000..0bd42e0e58 --- /dev/null +++ b/packages/editor/index.html @@ -0,0 +1,14 @@ + + + + + + FormatJS Editor + + +
+ + + + + diff --git a/packages/editor/index.tsx b/packages/editor/index.tsx new file mode 100644 index 0000000000..e49b4a6658 --- /dev/null +++ b/packages/editor/index.tsx @@ -0,0 +1,223 @@ +import React from 'react' +import { + useMediaQuery, + createMuiTheme, + ThemeProvider, + CssBaseline, + Grid, + TextField, + AppBar, + Toolbar, + Box, + Typography, + ButtonGroup, + Button, + Tabs, + Tab, + IconButton, + Drawer, + List, + ListItem, + ListItemText, +} from '@material-ui/core' +import {Menu, AddAlert, NotificationsOff} from '@material-ui/icons' +import Header from './header' +import {IntlProvider, useIntl} from 'react-intl' +import {TranslatedMessage} from './types' +import Messages from './messages' +const messages: TranslatedMessage[] = [ + {id: '1', defaultMessage: 'test', translatedMessage: 'test2'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + { + id: '2', + defaultMessage: 'testasd', + translatedMessage: + 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus in leo vulputate, mollis felis consectetur, gravida metus. Donec finibus orci a sem mollis ultrices. Maecenas posuere convallis semper. Donec faucibus non eros a tincidunt. Praesent dictum nisi eu nisi elementum, eu varius diam rutrum.', + }, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, + {id: '2', defaultMessage: 'testasd', translatedMessage: 'test2dfasd'}, +] + +export function CoreApp() { + const intl = useIntl() + + return ( + <> + + + + + + + + + + {['Inbox', 'Starred', 'Send email', 'Drafts'].map(text => ( + + + + ))} + + +
+ + + + + + + +
+ + + + + +
+ + + + + English message + + + Description{' '} + + This is a description + + + + + + + 71 / 101 + + + + + + + + + + + + + + + + + + +
+ + + ) +} + +export default function App() { + const prefersDarkMode = useMediaQuery('(prefers-color-scheme: dark)') + + const theme = React.useMemo( + () => + createMuiTheme({ + palette: { + type: prefersDarkMode ? 'dark' : 'light', + }, + }), + [prefersDarkMode] + ) + return ( + + + + + + ) +} diff --git a/packages/editor/main.tsx b/packages/editor/main.tsx new file mode 100644 index 0000000000..c09d2cc5c0 --- /dev/null +++ b/packages/editor/main.tsx @@ -0,0 +1,5 @@ +import Main from '.' +import ReactDOM from 'react-dom' +import React from 'react' + +ReactDOM.render(
, document.getElementById('main')) diff --git a/packages/editor/messages.tsx b/packages/editor/messages.tsx new file mode 100644 index 0000000000..3c37b0b35c --- /dev/null +++ b/packages/editor/messages.tsx @@ -0,0 +1,24 @@ +import {List, ListItem, ListItemText} from '@material-ui/core' +import React from 'react' +import {TranslatedMessage} from './types' + +export interface Props { + messages: TranslatedMessage[] +} + +const Messages: React.FC = ({messages}) => { + return ( + + {messages.map(m => ( + + + + ))} + + ) +} + +export default Messages diff --git a/packages/editor/package.json b/packages/editor/package.json new file mode 100644 index 0000000000..acfc8429b3 --- /dev/null +++ b/packages/editor/package.json @@ -0,0 +1,40 @@ +{ + "name": "@formatjs/editor", + "version": "1.0.0", + "description": "A ICU MessageFormat Editor UI", + "keywords": [ + "intl", + "i18n", + "internationalization", + "locale", + "localization", + "globalization", + "react", + "react-intl", + "reactjs", + "format", + "formatjs", + "formatting", + "translate", + "translation", + "cli" + ], + "author": "Long Ho ", + "homepage": "https://github.com/formatjs/formatjs", + "license": "MIT", + "main": "index.js", + "repository": { + "type": "git", + "url": "git+ssh://git@github.com/formatjs/formatjs.git" + }, + "dependencies": { + "@material-ui/core": "^4.11.3", + "@material-ui/icons": "^4.11.2", + "react": "17", + "@types/react": "16", + "react-intl": "5.15.5" + }, + "bugs": { + "url": "https://github.com/formatjs/formatjs/issues" + } +} diff --git a/packages/editor/tsconfig.json b/packages/editor/tsconfig.json new file mode 100644 index 0000000000..10b408242c --- /dev/null +++ b/packages/editor/tsconfig.json @@ -0,0 +1,5 @@ +// @generated +{ + // This is purely for IDE, not for compilation + "extends": "../../tsconfig.json" +} diff --git a/packages/editor/types.ts b/packages/editor/types.ts new file mode 100644 index 0000000000..2bf2e22d3d --- /dev/null +++ b/packages/editor/types.ts @@ -0,0 +1,5 @@ +export interface TranslatedMessage { + id: string + defaultMessage: string + translatedMessage: string +} diff --git a/tsconfig.json b/tsconfig.json index ce57660336..ed4cee741d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -42,9 +42,9 @@ "bazel-out/k8-fastbuild/bin/packages/eslint-plugin-formatjs", "bazel-out/darwin-fastbuild/bin/packages/eslint-plugin-formatjs" ], - "intl-messageformat-parser": [ - "bazel-out/k8-fastbuild/bin/packages/intl-messageformat-parser", - "bazel-out/darwin-fastbuild/bin/packages/intl-messageformat-parser" + "react-intl": [ + "bazel-out/k8-fastbuild/bin/packages/react-intl", + "bazel-out/darwin-fastbuild/bin/packages/react-intl" ] } }