diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index cd7f3a3b2d..432e0168ea 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -16,8 +16,8 @@ jobs: run: npm ci - name: Bootstrap project run: npm run bootstrap - - name: Lint commit - run: npm run lint:commit + - name: Lint commits + run: npm run lint:commits - name: Lint code run: npm run lint:changes vitest-tests: diff --git a/.husky/commit-msg b/.husky/commit-msg index 37eadbfcbb..0a4b97de53 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1 +1 @@ -npm run lint:commit +npx --no -- commitlint --edit $1 diff --git a/.husky/pre-push b/.husky/pre-push deleted file mode 100755 index ca25e55c70..0000000000 --- a/.husky/pre-push +++ /dev/null @@ -1 +0,0 @@ -npm run husky:pre-push diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg index 5d69d0a75c..52b23c40e7 100755 --- a/.husky/prepare-commit-msg +++ b/.husky/prepare-commit-msg @@ -1 +1,16 @@ -exec < /dev/tty && npx cz --hook || true +# Don't run this hook on --amend or rebase +# From https://github.com/commitizen/cz-cli/issues/672#issuecomment-1328123802 +# +# Explanation: +# Per the [prepare-commit-msg hook docs](https://git-scm.com/docs/githooks#_prepare_commit_msg), +# the second argument can have these values: +# - Empty: No message supplied +# - "message": Message was supplied via -m or -F +# - "template": Template was supplied via -t or via commit.template git config +# - "merge": Commit is a merge commit or .git/MERGE_MSG file exists +# - "squash": .git/SQUASH_MSG file exists +# - "commit": -c, -C, or --amend was supplied. In this case, the script gets a third argument representing the commit object. + +if [ -z "$2" ]; then + exec < /dev/tty && npx cz --hook +fi diff --git a/commitlint.config.js b/commitlint.config.js index ee3d19e834..fddf1e7a05 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -21,31 +21,71 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ + +const { execSync } = require('child_process') +const fs = require('fs') +const path = require('path') + +const ignoredPackages = ['__docs__', '__examples__'] + +function getChangedPackages() { + try { + const output = execSync('git diff --cached --name-only', { + encoding: 'utf-8' + }) + return Array.from( + new Set( + output + .split('\n') + .filter((line) => line.startsWith('packages/')) + .map((line) => line.split('/')[1]) + .filter((pkg) => !ignoredPackages.includes(pkg)) + ) + ) + } catch (error) { + console.error(error.message) + return [] + } +} + +function getAllPackages() { + try { + const packagesDir = path.resolve('packages') + return fs + .readdirSync(packagesDir) + .filter( + (pkg) => + fs.statSync(path.join(packagesDir, pkg)).isDirectory() && + !ignoredPackages.includes(pkg) + ) + } catch (error) { + console.error(error.message) + return [] + } +} + module.exports = { extends: ['@commitlint/config-conventional'], parserOpts: { headerPattern: /^(\w*)\((\w*)\)-(\w*)\s(.*)$/, headerCorrespondence: ['type', 'scope', 'subject'] }, - // see https://commitlint.js.org/#/reference-rules + // https://commitlint.js.org/reference/rules.html rules: { - 'type-enum': [ - 2, - 'always', - [ - 'WIP', - 'feat', - 'fix', - 'docs', - 'chore', - 'style', - 'refactor', - 'test', - 'perf', - 'revert' - ] - ], - 'type-case': [0], - 'header-max-length': [0, 'always', 150] // commit message first field (subject) length + 'header-max-length': [2, 'always', 150] + }, + + // https://cz-git.qbb.sh/config/ + prompt: { + enableMultipleScopes: true, + scopeEnumSeparator: ',', + scopes: getAllPackages(), + defaultScope: getChangedPackages(), + skipQuestions: ['footerPrefix', 'confirmCommit'], + // If more than 3 packages are selected display 'many', e.g. `refactor(many): some message` + formatMessageCB: ({ scope, defaultMessage }) => + scope.split(',').length > 3 + ? defaultMessage.replace(scope, 'many') + : defaultMessage } } diff --git a/package-lock.json b/package-lock.json index c6c03b02a8..d3dd0a4cc6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,6 +36,7 @@ "cross-spawn": "^7.0.6", "cypress": "^13.16.1", "cypress-real-events": "^1.13.0", + "cz-git": "^1.11.0", "esbuild": "^0.24.0", "eslint": "^9.16.0", "eslint-config-prettier": "^9.1.0", @@ -2393,11 +2394,10 @@ } }, "node_modules/@commitlint/load": { - "version": "19.5.0", - "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-19.5.0.tgz", - "integrity": "sha512-INOUhkL/qaKqwcTUvCE8iIUf5XHsEPCLY9looJ/ipzi7jtGhgmtH7OOFiNvwYgH7mA8osUWOUDV8t4E2HAi4xA==", + "version": "19.6.1", + "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-19.6.1.tgz", + "integrity": "sha512-kE4mRKWWNju2QpsCWt428XBvUH55OET2N4QKQ0bF85qS/XbsRGG1MiTByDNlEVpEPceMkDr46LNH95DtRwcsfA==", "dev": true, - "license": "MIT", "dependencies": { "@commitlint/config-validator": "^19.5.0", "@commitlint/execute-rule": "^19.5.0", @@ -2405,7 +2405,7 @@ "@commitlint/types": "^19.5.0", "chalk": "^5.3.0", "cosmiconfig": "^9.0.0", - "cosmiconfig-typescript-loader": "^5.0.0", + "cosmiconfig-typescript-loader": "^6.1.0", "lodash.isplainobject": "^4.0.6", "lodash.merge": "^4.6.2", "lodash.uniq": "^4.5.0" @@ -4353,21 +4353,6 @@ "node": ">=18.0.0" } }, - "node_modules/@lerna/create/node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "license": "MIT", - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@lerna/create/node_modules/chalk": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", @@ -11339,10 +11324,17 @@ } }, "node_modules/ansi-escapes": { - "version": "3.2.0", - "license": "MIT", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dependencies": { + "type-fest": "^0.21.3" + }, "engines": { - "node": ">=4" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/ansi-gray": { @@ -13507,10 +13499,6 @@ "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, - "node_modules/cli-width": { - "version": "2.2.1", - "license": "ISC" - }, "node_modules/cliui": { "version": "7.0.4", "license": "ISC", @@ -13655,6 +13643,22 @@ "lz-string": "^1.4.4" } }, + "node_modules/codesandbox/node_modules/ansi-escapes": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", + "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/codesandbox/node_modules/ansi-regex": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", + "engines": { + "node": ">=6" + } + }, "node_modules/codesandbox/node_modules/ansi-styles": { "version": "3.2.1", "license": "MIT", @@ -13677,6 +13681,11 @@ "node": ">=4" } }, + "node_modules/codesandbox/node_modules/cli-width": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.1.tgz", + "integrity": "sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw==" + }, "node_modules/codesandbox/node_modules/color-convert": { "version": "1.9.3", "license": "MIT", @@ -13715,6 +13724,37 @@ "node": ">=4" } }, + "node_modules/codesandbox/node_modules/inquirer": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-6.5.2.tgz", + "integrity": "sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ==", + "dependencies": { + "ansi-escapes": "^3.2.0", + "chalk": "^2.4.2", + "cli-cursor": "^2.1.0", + "cli-width": "^2.0.0", + "external-editor": "^3.0.3", + "figures": "^2.0.0", + "lodash": "^4.17.12", + "mute-stream": "0.0.7", + "run-async": "^2.2.0", + "rxjs": "^6.4.0", + "string-width": "^2.1.0", + "strip-ansi": "^5.1.0", + "through": "^2.3.6" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/codesandbox/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "engines": { + "node": ">=4" + } + }, "node_modules/codesandbox/node_modules/is-wsl": { "version": "1.1.0", "license": "MIT", @@ -13729,6 +13769,11 @@ "graceful-fs": "^4.1.6" } }, + "node_modules/codesandbox/node_modules/mute-stream": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", + "integrity": "sha512-r65nCZhrbXXb6dXOACihYApHw2Q6pV0M3V0PSxd74N0+D8nzAdEAITq2oAjA1jVnKI+tGvEBUpqiMh0+rW6zDQ==" + }, "node_modules/codesandbox/node_modules/open": { "version": "6.4.0", "license": "MIT", @@ -13739,6 +13784,59 @@ "node": ">=8" } }, + "node_modules/codesandbox/node_modules/rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dependencies": { + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" + } + }, + "node_modules/codesandbox/node_modules/string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dependencies": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/codesandbox/node_modules/string-width/node_modules/ansi-regex": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/codesandbox/node_modules/string-width/node_modules/strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", + "dependencies": { + "ansi-regex": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/codesandbox/node_modules/strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/codesandbox/node_modules/supports-color": { "version": "5.5.0", "license": "MIT", @@ -13749,6 +13847,11 @@ "node": ">=4" } }, + "node_modules/codesandbox/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, "node_modules/codesandbox/node_modules/universalify": { "version": "0.1.2", "license": "MIT", @@ -13884,20 +13987,6 @@ "node": ">= 12" } }, - "node_modules/commitizen/node_modules/ansi-escapes": { - "version": "4.3.2", - "dev": true, - "license": "MIT", - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/commitizen/node_modules/cli-cursor": { "version": "3.1.0", "dev": true, @@ -14847,21 +14936,20 @@ } }, "node_modules/cosmiconfig-typescript-loader": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-5.0.0.tgz", - "integrity": "sha512-+8cK7jRAReYkMwMiG+bxhcNKiHJDM6bR9FD/nGBXOWdMLuYawjF5cGrtLilJ+LGd3ZjCXnJjR5DkfWPoIVlqJA==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-6.1.0.tgz", + "integrity": "sha512-tJ1w35ZRUiM5FeTzT7DtYWAFFv37ZLqSRkGi2oeCK1gPhvaWjkAtfXvLmvE1pRfxxp9aQo6ba/Pvg1dKj05D4g==", "dev": true, - "license": "MIT", "dependencies": { - "jiti": "^1.19.1" + "jiti": "^2.4.1" }, "engines": { - "node": ">=v16" + "node": ">=v18" }, "peerDependencies": { "@types/node": "*", - "cosmiconfig": ">=8.2", - "typescript": ">=4" + "cosmiconfig": ">=9", + "typescript": ">=5" } }, "node_modules/create-error-class": { @@ -15135,21 +15223,6 @@ "integrity": "sha512-0kSuKjAS0TrGLJ0M/+8MaFkGsQhZpB6pxOmvS3K8FYI72K//YmdfoW9X2qPsAKh1mkwxGD5zib9s1FIFed6E8g==", "dev": true }, - "node_modules/cypress/node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/cypress/node_modules/buffer": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", @@ -15660,6 +15733,194 @@ "cz-customizable": "standalone.js" } }, + "node_modules/cz-customizable/node_modules/ansi-escapes": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", + "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/cz-customizable/node_modules/ansi-regex": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", + "engines": { + "node": ">=6" + } + }, + "node_modules/cz-customizable/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cz-customizable/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cz-customizable/node_modules/cli-width": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.1.tgz", + "integrity": "sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw==" + }, + "node_modules/cz-customizable/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/cz-customizable/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/cz-customizable/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/cz-customizable/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/cz-customizable/node_modules/inquirer": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-6.5.2.tgz", + "integrity": "sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ==", + "dependencies": { + "ansi-escapes": "^3.2.0", + "chalk": "^2.4.2", + "cli-cursor": "^2.1.0", + "cli-width": "^2.0.0", + "external-editor": "^3.0.3", + "figures": "^2.0.0", + "lodash": "^4.17.12", + "mute-stream": "0.0.7", + "run-async": "^2.2.0", + "rxjs": "^6.4.0", + "string-width": "^2.1.0", + "strip-ansi": "^5.1.0", + "through": "^2.3.6" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/cz-customizable/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "engines": { + "node": ">=4" + } + }, + "node_modules/cz-customizable/node_modules/mute-stream": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", + "integrity": "sha512-r65nCZhrbXXb6dXOACihYApHw2Q6pV0M3V0PSxd74N0+D8nzAdEAITq2oAjA1jVnKI+tGvEBUpqiMh0+rW6zDQ==" + }, + "node_modules/cz-customizable/node_modules/rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dependencies": { + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" + } + }, + "node_modules/cz-customizable/node_modules/string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dependencies": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cz-customizable/node_modules/string-width/node_modules/ansi-regex": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/cz-customizable/node_modules/string-width/node_modules/strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", + "dependencies": { + "ansi-regex": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cz-customizable/node_modules/strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/cz-customizable/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cz-customizable/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/cz-git": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/cz-git/-/cz-git-1.11.0.tgz", + "integrity": "sha512-FCNkpyVmNPX0P8kHtX8uoFcXsJ4bjivMXVS5vc/qCyM8jj+Tuqo6CXQjGQKwKl0Lk9VNz7o6JfPoU/mM/XhxqA==", + "dev": true, + "engines": { + "node": ">=v12.20.0" + } + }, "node_modules/d": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/d/-/d-1.0.2.tgz", @@ -18172,7 +18433,8 @@ }, "node_modules/figures": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", + "integrity": "sha512-Oa2M9atig69ZkfwiApY8F2Yy+tzMbazyvqv21R0NsSC8floSOC09BbT1ITWAdoMGQvJ/aZnR1KMwdx9tvHnTNA==", "dependencies": { "escape-string-regexp": "^1.0.5" }, @@ -18182,7 +18444,8 @@ }, "node_modules/figures/node_modules/escape-string-regexp": { "version": "1.0.5", - "license": "MIT", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "engines": { "node": ">=0.8.0" } @@ -21218,151 +21481,6 @@ "node": ">=10" } }, - "node_modules/inquirer": { - "version": "6.5.2", - "license": "MIT", - "dependencies": { - "ansi-escapes": "^3.2.0", - "chalk": "^2.4.2", - "cli-cursor": "^2.1.0", - "cli-width": "^2.0.0", - "external-editor": "^3.0.3", - "figures": "^2.0.0", - "lodash": "^4.17.12", - "mute-stream": "0.0.7", - "run-async": "^2.2.0", - "rxjs": "^6.4.0", - "string-width": "^2.1.0", - "strip-ansi": "^5.1.0", - "through": "^2.3.6" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/inquirer/node_modules/ansi-regex": { - "version": "4.1.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/inquirer/node_modules/ansi-styles": { - "version": "3.2.1", - "license": "MIT", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/inquirer/node_modules/chalk": { - "version": "2.4.2", - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/inquirer/node_modules/color-convert": { - "version": "1.9.3", - "license": "MIT", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/inquirer/node_modules/color-name": { - "version": "1.1.3", - "license": "MIT" - }, - "node_modules/inquirer/node_modules/escape-string-regexp": { - "version": "1.0.5", - "license": "MIT", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/inquirer/node_modules/has-flag": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/inquirer/node_modules/is-fullwidth-code-point": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/inquirer/node_modules/rxjs": { - "version": "6.6.7", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^1.9.0" - }, - "engines": { - "npm": ">=2.0.0" - } - }, - "node_modules/inquirer/node_modules/string-width": { - "version": "2.1.1", - "license": "MIT", - "dependencies": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/inquirer/node_modules/string-width/node_modules/ansi-regex": { - "version": "3.0.1", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/inquirer/node_modules/string-width/node_modules/strip-ansi": { - "version": "4.0.0", - "license": "MIT", - "dependencies": { - "ansi-regex": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/inquirer/node_modules/strip-ansi": { - "version": "5.2.0", - "license": "MIT", - "dependencies": { - "ansi-regex": "^4.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/inquirer/node_modules/supports-color": { - "version": "5.5.0", - "license": "MIT", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/inquirer/node_modules/tslib": { - "version": "1.14.1", - "license": "0BSD" - }, "node_modules/internal-slot": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", @@ -22523,13 +22641,12 @@ } }, "node_modules/jiti": { - "version": "1.21.6", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.6.tgz", - "integrity": "sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.4.2.tgz", + "integrity": "sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==", "devOptional": true, - "license": "MIT", "bin": { - "jiti": "bin/jiti.js" + "jiti": "lib/jiti-cli.mjs" } }, "node_modules/js-tokens": { @@ -23634,19 +23751,6 @@ "node": ">=18.0.0" } }, - "node_modules/lerna/node_modules/ansi-escapes": { - "version": "4.3.2", - "license": "MIT", - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/lerna/node_modules/chalk": { "version": "4.1.0", "license": "MIT", @@ -26490,8 +26594,12 @@ } }, "node_modules/mute-stream": { - "version": "0.0.7", - "license": "ISC" + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-1.0.0.tgz", + "integrity": "sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } }, "node_modules/nan": { "version": "2.20.0", @@ -30453,15 +30561,6 @@ "node": ">=4" } }, - "node_modules/read/node_modules/mute-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-1.0.0.tgz", - "integrity": "sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==", - "license": "ISC", - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, "node_modules/readable-stream": { "version": "3.6.2", "license": "MIT", @@ -37581,19 +37680,6 @@ "lerna": "^8" } }, - "packages/cz-lerna-changelog/node_modules/ansi-escapes": { - "version": "4.3.2", - "license": "MIT", - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "packages/cz-lerna-changelog/node_modules/cli-cursor": { "version": "3.1.0", "license": "MIT", diff --git a/package.json b/package.json index 822bcbd801..3623e4d1bb 100644 --- a/package.json +++ b/package.json @@ -26,10 +26,7 @@ "lint": "lerna run lint --stream", "lint:changes": "npm run lint -- --since HEAD^", "lint:fix": "lerna run lint:fix --stream", - "lint:commit": "commitlint --from=HEAD^1", - "lint:staged": "lint-staged", - "update:package:list": "lerna run generate:package:list --stream --scope @instructure/instui-config", - "commit:package:list": "git add packages/instui-config/package-lists/**/package-list.json", + "lint:commits": "commitlint --from=HEAD^1", "bootstrap": "node scripts/bootstrap.js", "build": "lerna run build --stream", "build:watch": "lerna run build:watch --stream", @@ -45,12 +42,10 @@ "dev:examples": "lerna run start:watch --stream --scope docs-examples", "prestart:examples": "npm run bootstrap", "start:examples": "lerna run start --stream --scope docs-examples", - "husky:pre-commit": "npm run update:package:list && npm run commit:package:list && npm run lint:staged && npm run ts:check:references", - "husky:pre-push": "npm run lint:commit", + "husky:pre-commit": "lint-staged && node scripts/checkTSReferences.js", "build-storybook": "lerna run bundle --stream --scope docs-examples", "postinstall": "husky", - "ts:check": "lerna run ts:check --stream", - "ts:check:references": "node scripts/checkTSReferences.js" + "ts:check": "lerna run ts:check --stream" }, "license": "MIT", "resolutions": { @@ -83,6 +78,7 @@ "cross-spawn": "^7.0.6", "cypress": "^13.16.1", "cypress-real-events": "^1.13.0", + "cz-git": "^1.11.0", "esbuild": "^0.24.0", "eslint": "^9.16.0", "eslint-config-prettier": "^9.1.0", @@ -117,7 +113,7 @@ }, "config": { "commitizen": { - "path": "./node_modules/@instructure/cz-lerna-changelog" + "path": "node_modules/cz-git" } }, "lint-staged": { diff --git a/packages/__docs__/buildScripts/build-docs.mts b/packages/__docs__/buildScripts/build-docs.mts index b977832a98..66f0c0efd4 100644 --- a/packages/__docs__/buildScripts/build-docs.mts +++ b/packages/__docs__/buildScripts/build-docs.mts @@ -109,7 +109,6 @@ const pathsToIgnore = [ '**/InputModeListener.{js,ts}', // regression testing app: '**/regression-test/**', - '**/packages/cz-lerna-changelog/**' ] if (import.meta.url === pathToFileURL(process.argv[1]).href) { diff --git a/packages/cz-lerna-changelog/.gitignore b/packages/cz-lerna-changelog/.gitignore deleted file mode 100644 index 7673c44b0f..0000000000 --- a/packages/cz-lerna-changelog/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -types/ -es/ -lib/ diff --git a/packages/cz-lerna-changelog/.npmignore b/packages/cz-lerna-changelog/.npmignore deleted file mode 100644 index 9b51f84223..0000000000 --- a/packages/cz-lerna-changelog/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -**/.* -**/__tests__ -**/__testfixtures__ -*.config.js -*.conf.js diff --git a/packages/cz-lerna-changelog/CHANGELOG.md b/packages/cz-lerna-changelog/CHANGELOG.md deleted file mode 100644 index bbe0fa38a4..0000000000 --- a/packages/cz-lerna-changelog/CHANGELOG.md +++ /dev/null @@ -1,1068 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [10.10.0](https://github.com/instructure/instructure-ui/compare/v10.9.0...v10.10.0) (2024-12-18) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [10.9.0](https://github.com/instructure/instructure-ui/compare/v10.8.0...v10.9.0) (2024-12-12) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [10.8.0](https://github.com/instructure/instructure-ui/compare/v10.7.0...v10.8.0) (2024-12-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [10.7.0](https://github.com/instructure/instructure-ui/compare/v10.6.1...v10.7.0) (2024-12-03) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -## [10.6.1](https://github.com/instructure/instructure-ui/compare/v10.6.0...v10.6.1) (2024-11-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [10.6.0](https://github.com/instructure/instructure-ui/compare/v10.5.0...v10.6.0) (2024-11-18) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [10.5.0](https://github.com/instructure/instructure-ui/compare/v10.4.1...v10.5.0) (2024-11-07) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -## [10.4.1](https://github.com/instructure/instructure-ui/compare/v10.4.0...v10.4.1) (2024-10-28) - - -### Bug Fixes - -* update license ([1c039d9](https://github.com/instructure/instructure-ui/commit/1c039d9cbf5a3ea99b59803ddde5c6c0b2d76ba5)) - - - - - -# [10.4.0](https://github.com/instructure/instructure-ui/compare/v10.3.0...v10.4.0) (2024-10-16) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [10.3.0](https://github.com/instructure/instructure-ui/compare/v10.2.2...v10.3.0) (2024-10-03) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -## [10.2.2](https://github.com/instructure/instructure-ui/compare/v10.2.1...v10.2.2) (2024-09-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -## [10.2.1](https://github.com/instructure/instructure-ui/compare/v10.2.0...v10.2.1) (2024-08-30) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [10.2.0](https://github.com/instructure/instructure-ui/compare/v10.0.0...v10.2.0) (2024-08-23) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [10.1.0](https://github.com/instructure/instructure-ui/compare/v10.0.0...v10.1.0) (2024-08-23) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [10.0.0](https://github.com/instructure/instructure-ui/compare/v9.5.1...v10.0.0) (2024-07-31) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -## [9.5.1](https://github.com/instructure/instructure-ui/compare/v9.5.0...v9.5.1) (2024-07-30) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [9.5.0](https://github.com/instructure/instructure-ui/compare/v9.3.0...v9.5.0) (2024-07-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [9.4.0](https://github.com/instructure/instructure-ui/compare/v9.3.0...v9.4.0) (2024-07-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [9.3.0](https://github.com/instructure/instructure-ui/compare/v9.2.0...v9.3.0) (2024-07-17) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [9.2.0](https://github.com/instructure/instructure-ui/compare/v9.1.0...v9.2.0) (2024-07-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [9.1.0](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.1.0) (2024-06-14) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -## [9.0.1](https://github.com/instructure/instructure-ui/compare/v9.0.0...v9.0.1) (2024-05-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [9.0.0](https://github.com/instructure/instructure-ui/compare/v8.56.0...v9.0.0) (2024-05-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [8.56.0](https://github.com/instructure/instructure-ui/compare/v8.55.1...v8.56.0) (2024-05-06) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -## [8.55.1](https://github.com/instructure/instructure-ui/compare/v8.55.0...v8.55.1) (2024-04-30) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [8.55.0](https://github.com/instructure/instructure-ui/compare/v8.54.0...v8.55.0) (2024-04-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [8.54.0](https://github.com/instructure/instructure-ui/compare/v8.53.2...v8.54.0) (2024-03-21) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -## [8.53.2](https://github.com/instructure/instructure-ui/compare/v8.53.1...v8.53.2) (2024-02-15) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -## [8.53.1](https://github.com/instructure/instructure-ui/compare/v8.53.0...v8.53.1) (2024-02-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [8.53.0](https://github.com/instructure/instructure-ui/compare/v8.52.0...v8.53.0) (2024-02-08) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.52.0](https://github.com/instructure/instructure-ui/compare/v8.51.0...v8.52.0) (2024-02-02) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.51.0](https://github.com/instructure/instructure-ui/compare/v8.50.0...v8.51.0) (2023-12-14) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.50.0](https://github.com/instructure/instructure-ui/compare/v8.49.0...v8.50.0) (2023-12-05) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.49.0](https://github.com/instructure/instructure-ui/compare/v8.48.3...v8.49.0) (2023-11-24) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.48.3](https://github.com/instructure/instructure-ui/compare/v8.48.2...v8.48.3) (2023-11-23) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.48.2](https://github.com/instructure/instructure-ui/compare/v8.48.1...v8.48.2) (2023-11-21) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.48.1](https://github.com/instructure/instructure-ui/compare/v8.48.0...v8.48.1) (2023-11-17) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.48.0](https://github.com/instructure/instructure-ui/compare/v8.47.1...v8.48.0) (2023-11-10) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.47.1](https://github.com/instructure/instructure-ui/compare/v8.47.0...v8.47.1) (2023-11-06) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.47.0](https://github.com/instructure/instructure-ui/compare/v8.46.1...v8.47.0) (2023-10-27) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.46.1](https://github.com/instructure/instructure-ui/compare/v8.46.0...v8.46.1) (2023-10-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.46.0](https://github.com/instructure/instructure-ui/compare/v8.45.0...v8.46.0) (2023-10-11) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.45.0](https://github.com/instructure/instructure-ui/compare/v8.44.0...v8.45.0) (2023-10-03) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.44.0](https://github.com/instructure/instructure-ui/compare/v8.43.1...v8.44.0) (2023-09-21) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.43.1](https://github.com/instructure/instructure-ui/compare/v8.43.0...v8.43.1) (2023-09-11) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.43.0](https://github.com/instructure/instructure-ui/compare/v8.41.1...v8.43.0) (2023-09-07) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.42.0](https://github.com/instructure/instructure-ui/compare/v8.41.1...v8.42.0) (2023-09-07) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.41.1](https://github.com/instructure/instructure-ui/compare/v8.41.0...v8.41.1) (2023-08-24) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.41.0](https://github.com/instructure/instructure-ui/compare/v8.40.1...v8.41.0) (2023-08-21) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.40.1](https://github.com/instructure/instructure-ui/compare/v8.40.0...v8.40.1) (2023-08-18) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.40.0](https://github.com/instructure/instructure-ui/compare/v8.39.0...v8.40.0) (2023-08-17) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.39.0](https://github.com/instructure/instructure-ui/compare/v8.38.1...v8.39.0) (2023-07-21) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.38.1](https://github.com/instructure/instructure-ui/compare/v8.38.0...v8.38.1) (2023-06-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.38.0](https://github.com/instructure/instructure-ui/compare/v8.37.0...v8.38.0) (2023-05-15) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.37.0](https://github.com/instructure/instructure-ui/compare/v8.36.0...v8.37.0) (2023-04-25) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.36.0](https://github.com/instructure/instructure-ui/compare/v8.35.1...v8.36.0) (2023-03-23) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.35.1](https://github.com/instructure/instructure-ui/compare/v8.35.0...v8.35.1) (2023-03-10) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.35.0](https://github.com/instructure/instructure-ui/compare/v8.34.0...v8.35.0) (2023-02-17) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.34.0](https://github.com/instructure/instructure-ui/compare/v8.33.2...v8.34.0) (2023-02-10) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.33.2](https://github.com/instructure/instructure-ui/compare/v8.33.1...v8.33.2) (2023-01-25) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.33.1](https://github.com/instructure/instructure-ui/compare/v8.33.0...v8.33.1) (2023-01-06) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.33.0](https://github.com/instructure/instructure-ui/compare/v8.32.1...v8.33.0) (2023-01-04) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.32.1](https://github.com/instructure/instructure-ui/compare/v8.30.0...v8.32.1) (2022-12-01) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.32.0](https://github.com/instructure/instructure-ui/compare/v8.31.0...v8.32.0) (2022-11-23) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.31.0](https://github.com/instructure/instructure-ui/compare/v8.30.0...v8.31.0) (2022-11-21) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.30.0](https://github.com/instructure/instructure-ui/compare/v8.29.0...v8.30.0) (2022-10-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.29.0](https://github.com/instructure/instructure-ui/compare/v8.28.0...v8.29.0) (2022-09-29) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.28.2](https://github.com/instructure/instructure-ui/compare/v8.28.0...v8.28.2) (2022-09-16) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.28.1](https://github.com/instructure/instructure-ui/compare/v8.28.0...v8.28.1) (2022-09-12) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.28.0](https://github.com/instructure/instructure-ui/compare/v8.27.0...v8.28.0) (2022-09-02) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.27.0](https://github.com/instructure/instructure-ui/compare/v8.26.3...v8.27.0) (2022-07-25) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.26.3](https://github.com/instructure/instructure-ui/compare/v8.26.2...v8.26.3) (2022-07-14) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.26.2](https://github.com/instructure/instructure-ui/compare/v8.26.1...v8.26.2) (2022-07-11) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.26.1](https://github.com/instructure/instructure-ui/compare/v8.26.0...v8.26.1) (2022-07-06) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.26.0](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.26.0) (2022-06-30) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.25.0](https://github.com/instructure/instructure-ui/compare/v8.24.5...v8.25.0) (2022-06-03) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.24.5](https://github.com/instructure/instructure-ui/compare/v8.24.3...v8.24.5) (2022-05-31) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.24.4](https://github.com/instructure/instructure-ui/compare/v8.24.3...v8.24.4) (2022-05-27) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.24.3](https://github.com/instructure/instructure-ui/compare/v8.24.2...v8.24.3) (2022-05-25) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.24.2](https://github.com/instructure/instructure-ui/compare/v8.24.1...v8.24.2) (2022-05-02) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.24.1](https://github.com/instructure/instructure-ui/compare/v8.24.0...v8.24.1) (2022-04-29) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.24.0](https://github.com/instructure/instructure-ui/compare/v8.23.0...v8.24.0) (2022-04-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.23.0](https://github.com/instructure/instructure-ui/compare/v8.22.0...v8.23.0) (2022-04-07) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.22.0](https://github.com/instructure/instructure-ui/compare/v8.21.0...v8.22.0) (2022-03-31) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.21.0](https://github.com/instructure/instructure-ui/compare/v8.20.0...v8.21.0) (2022-03-30) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.20.0](https://github.com/instructure/instructure-ui/compare/v8.19.0...v8.20.0) (2022-03-22) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.19.0](https://github.com/instructure/instructure-ui/compare/v8.18.0...v8.19.0) (2022-03-16) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.18.0](https://github.com/instructure/instructure-ui/compare/v8.17.0...v8.18.0) (2022-02-23) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.17.0](https://github.com/instructure/instructure-ui/compare/v8.16.0...v8.17.0) (2022-02-07) - -### Bug Fixes - -- remove type:"commonjs" from package.json files ([0b243be](https://github.com/instructure/instructure-ui/commit/0b243bee389ee14493e6b3dbb30a8b660c295d3d)) - -# [8.16.0](https://github.com/instructure/instructure-ui/compare/v8.15.0...v8.16.0) (2022-02-03) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.15.0](https://github.com/instructure/instructure-ui/compare/v8.14.0...v8.15.0) (2022-01-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.14.0](https://github.com/instructure/instructure-ui/compare/v8.13.0...v8.14.0) (2021-12-16) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.13.0](https://github.com/instructure/instructure-ui/compare/v8.12.0...v8.13.0) (2021-12-01) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.12.0](https://github.com/instructure/instructure-ui/compare/v8.11.1...v8.12.0) (2021-11-17) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.11.1](https://github.com/instructure/instructure-ui/compare/v8.11.0...v8.11.1) (2021-10-19) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.11.0](https://github.com/instructure/instructure-ui/compare/v8.10.2...v8.11.0) (2021-10-15) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.10.2](https://github.com/instructure/instructure-ui/compare/v8.10.1...v8.10.2) (2021-10-01) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.10.1](https://github.com/instructure/instructure-ui/compare/v8.10.0...v8.10.1) (2021-10-01) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.10.0](https://github.com/instructure/instructure-ui/compare/v8.9.1...v8.10.0) (2021-09-28) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.9.1](https://github.com/instructure/instructure-ui/compare/v8.9.0...v8.9.1) (2021-09-16) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.9.0](https://github.com/instructure/instructure-ui/compare/v8.8.0...v8.9.0) (2021-09-15) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.8.0](https://github.com/instructure/instructure-ui/compare/v8.7.0...v8.8.0) (2021-08-27) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.7.0](https://github.com/instructure/instructure-ui/compare/v8.6.0...v8.7.0) (2021-07-16) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.6.0](https://github.com/instructure/instructure-ui/compare/v8.5.0...v8.6.0) (2021-06-18) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.5.0](https://github.com/instructure/instructure-ui/compare/v8.4.0...v8.5.0) (2021-06-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.4.0](https://github.com/instructure/instructure-ui/compare/v8.3.0...v8.4.0) (2021-05-11) - -### Bug Fixes - -- fix all inter-package dependencies using fix version ([75cd898](https://github.com/instructure/instructure-ui/commit/75cd8983b7e206e4e14dc67c490c103cb4a3d915)) - -# [8.3.0](https://github.com/instructure/instructure-ui/compare/v8.2.1...v8.3.0) (2021-05-04) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.2.1](https://github.com/instructure/instructure-ui/compare/v8.2.0...v8.2.1) (2021-04-22) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.2.0](https://github.com/instructure/instructure-ui/compare/v8.1.0...v8.2.0) (2021-04-22) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.1.0](https://github.com/instructure/instructure-ui/compare/v8.0.0...v8.1.0) (2021-04-15) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.0.0](https://github.com/instructure/instructure-ui/compare/v7.5.0...v8.0.0) (2021-03-29) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [7.5.0](https://github.com/instructure/instructure-ui/compare/v7.4.4...v7.5.0) (2021-03-22) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.4.4](https://github.com/instructure/instructure-ui/compare/v7.4.3...v7.4.4) (2021-03-12) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.4.3](https://github.com/instructure/instructure-ui/compare/v7.4.1...v7.4.3) (2021-03-11) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.4.2](https://github.com/instructure/instructure-ui/compare/v7.4.1...v7.4.2) (2021-03-11) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.4.1](https://github.com/instructure/instructure-ui/compare/v7.4.0...v7.4.1) (2021-03-04) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [7.4.0](https://github.com/instructure/instructure-ui/compare/v7.3.5...v7.4.0) (2021-02-01) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.3.5](https://github.com/instructure/instructure-ui/compare/v7.3.2...v7.3.5) (2021-01-21) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.3.4](https://github.com/instructure/instructure-ui/compare/v7.3.2...v7.3.4) (2021-01-14) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.3.3](https://github.com/instructure/instructure-ui/compare/v7.3.2...v7.3.3) (2021-01-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.3.2](https://github.com/instructure/instructure-ui/compare/v7.3.1...v7.3.2) (2020-12-10) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.3.1](https://github.com/instructure/instructure-ui/compare/v7.3.0...v7.3.1) (2020-11-30) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [7.3.0](https://github.com/instructure/instructure-ui/compare/v7.2.4...v7.3.0) (2020-10-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.2.4](https://github.com/instructure/instructure-ui/compare/v7.2.0...v7.2.4) (2020-10-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.2.3](https://github.com/instructure/instructure-ui/compare/v7.2.0...v7.2.3) (2020-10-08) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.2.2](https://github.com/instructure/instructure-ui/compare/v7.2.0...v7.2.2) (2020-10-08) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.2.1](https://github.com/instructure/instructure-ui/compare/v7.2.0...v7.2.1) (2020-10-07) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [7.2.0](https://github.com/instructure/instructure-ui/compare/v7.1.4...v7.2.0) (2020-09-23) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.1.4](https://github.com/instructure/instructure-ui/compare/v7.1.3...v7.1.4) (2020-09-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.1.3](https://github.com/instructure/instructure-ui/compare/v7.1.2...v7.1.3) (2020-08-10) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.1.2](https://github.com/instructure/instructure-ui/compare/v7.1.1...v7.1.2) (2020-07-17) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.1.1](https://github.com/instructure/instructure-ui/compare/v7.1.0...v7.1.1) (2020-07-01) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [7.1.0](https://github.com/instructure/instructure-ui/compare/v7.0.0...v7.1.0) (2020-06-25) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [7.0.0](https://github.com/instructure/instructure-ui/compare/v6.26.0...v7.0.0) (2020-05-27) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.26.0](https://github.com/instructure/instructure-ui/compare/v6.25.0...v6.26.0) (2020-04-30) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.25.0](https://github.com/instructure/instructure-ui/compare/v6.24.0...v6.25.0) (2020-04-27) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.24.0](https://github.com/instructure/instructure-ui/compare/v6.23.0...v6.24.0) (2020-04-14) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.23.0](https://github.com/instructure/instructure-ui/compare/v6.22.0...v6.23.0) (2020-04-02) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.22.0](https://github.com/instructure/instructure-ui/compare/v6.21.0...v6.22.0) (2020-03-16) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.21.0](https://github.com/instructure/instructure-ui/compare/v6.20.0...v6.21.0) (2020-02-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.20.0](https://github.com/instructure/instructure-ui/compare/v6.19.0...v6.20.0) (2020-02-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.19.0](https://github.com/instructure/instructure-ui/compare/v6.18.0...v6.19.0) (2020-02-11) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.18.0](https://github.com/instructure/instructure-ui/compare/v6.17.0...v6.18.0) (2020-02-04) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.17.0](https://github.com/instructure/instructure-ui/compare/v6.16.0...v6.17.0) (2020-01-22) - -### Bug Fixes - -- Update Package READMEs and align deprecation statements ([8f892e4](https://github.com/instructure/instructure-ui/commit/8f892e4)) - -# [6.16.0](https://github.com/instructure/instructure-ui/compare/v6.15.0...v6.16.0) (2019-12-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.15.0](https://github.com/instructure/instructure-ui/compare/v6.14.0...v6.15.0) (2019-11-18) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.14.0](https://github.com/instructure/instructure-ui/compare/v6.13.0...v6.14.0) (2019-10-14) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.13.0](https://github.com/instructure/instructure-ui/compare/v6.12.0...v6.13.0) (2019-09-24) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.12.0](https://github.com/instructure/instructure-ui/compare/v6.11.0...v6.12.0) (2019-09-17) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.11.0](https://github.com/instructure/instructure-ui/compare/v6.10.0...v6.11.0) (2019-09-16) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.10.0](https://github.com/instructure/instructure-ui/compare/v6.9.0...v6.10.0) (2019-08-27) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.9.0](https://github.com/instructure/instructure-ui/compare/v6.8.1...v6.9.0) (2019-08-07) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [6.8.1](https://github.com/instructure/instructure-ui/compare/v6.8.0...v6.8.1) (2019-08-02) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.8.0](https://github.com/instructure/instructure-ui/compare/v6.7.0...v6.8.0) (2019-07-31) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.7.0](https://github.com/instructure/instructure-ui/compare/v6.6.0...v6.7.0) (2019-07-15) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.6.0](https://github.com/instructure/instructure-ui/compare/v6.5.0...v6.6.0) (2019-07-03) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.5.0](https://github.com/instructure/instructure-ui/compare/v6.4.0...v6.5.0) (2019-07-01) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.4.0](https://github.com/instructure/instructure-ui/compare/v6.3.0...v6.4.0) (2019-06-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.3.0](https://github.com/instructure/instructure-ui/compare/v6.2.0...v6.3.0) (2019-05-28) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.2.0](https://github.com/instructure/instructure-ui/compare/v6.1.0...v6.2.0) (2019-05-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.1.0](https://github.com/instructure/instructure-ui/compare/v6.0.0...v6.1.0) (2019-05-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.0.0](https://github.com/instructure/instructure-ui/compare/v5.52.3...v6.0.0) (2019-05-03) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [5.52.3](https://github.com/instructure/instructure-ui/compare/v5.52.2...v5.52.3) (2019-04-25) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [5.52.2](https://github.com/instructure/instructure-ui/compare/v5.52.1...v5.52.2) (2019-04-17) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [5.52.1](https://github.com/instructure/instructure-ui/compare/v5.52.0...v5.52.1) (2019-04-08) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [5.52.0](https://github.com/instructure/instructure-ui/compare/v5.51.1...v5.52.0) (2019-04-03) - -### Features - -- **console:** remove console statements in prod env ([603c738](https://github.com/instructure/instructure-ui/commit/603c738)) - -## [5.51.1](https://github.com/instructure/instructure-ui/compare/v5.51.0...v5.51.1) (2019-03-30) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [5.51.0](https://github.com/instructure/instructure-ui/compare/v5.50.0...v5.51.0) (2019-03-29) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [5.50.0](https://github.com/instructure/instructure-ui/compare/v5.49.0...v5.50.0) (2019-03-28) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [5.49.0](https://github.com/instructure/instructure-ui/compare/v5.48.0...v5.49.0) (2019-03-22) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [5.48.0](https://github.com/instructure/instructure-ui/compare/v5.47.0...v5.48.0) (2019-03-18) - -### Features - -- **ui-component-examples,ui-test-utils:** add parameters to example config ([19e4cfd](https://github.com/instructure/instructure-ui/commit/19e4cfd)) - -# [5.47.0](https://github.com/instructure/instructure-ui/compare/v5.46.1...v5.47.0) (2019-03-15) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [5.46.1](https://github.com/instructure/instructure-ui/compare/v5.46.0...v5.46.1) (2019-03-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [5.46.0](https://github.com/instructure/instructure-ui/compare/v5.45.1...v5.46.0) (2019-03-12) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [5.45.1](https://github.com/instructure/instructure-ui/compare/v5.45.0...v5.45.1) (2019-03-12) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [5.45.0](https://github.com/instructure/instructure-ui/compare/v5.44.0...v5.45.0) (2019-03-11) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [5.44.0](https://github.com/instructure/instructure-ui/compare/v5.43.0...v5.44.0) (2019-03-01) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [5.43.0](https://github.com/instructure/instructure-ui/compare/v5.42.0...v5.43.0) (2019-02-27) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.42.0](https://github.com/instructure/instructure-ui/compare/v5.41.1...v5.42.0) (2019-02-15) - -### Performance Improvements - -- **babel-plugin-themeable-styles:** speed up babel transpile ([2df2a22](https://github.com/instructure/instructure-ui/commit/2df2a22)) - - - -## [5.41.1](https://github.com/instructure/instructure-ui/compare/v5.41.0...v5.41.1) (2019-01-30) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.41.0](https://github.com/instructure/instructure-ui/compare/v5.40.0...v5.41.0) (2019-01-29) - -### Bug Fixes - -- **cz-lerna-changelog:** add missing dependency ([4352282](https://github.com/instructure/instructure-ui/commit/4352282)) - - - -# [5.40.0](https://github.com/instructure/instructure-ui/compare/v5.39.0...v5.40.0) (2019-01-15) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.39.0](https://github.com/instructure/instructure-ui/compare/v5.38.0...v5.39.0) (2019-01-11) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.38.0](https://github.com/instructure/instructure-ui/compare/v5.37.0...v5.38.0) (2019-01-04) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.37.0](https://github.com/instructure/instructure-ui/compare/v5.36.0...v5.37.0) (2018-12-18) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.36.0](https://github.com/instructure/instructure-ui/compare/v5.35.0...v5.36.0) (2018-12-12) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.35.0](https://github.com/instructure/instructure-ui/compare/v5.34.0...v5.35.0) (2018-12-06) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.34.0](https://github.com/instructure/instructure-ui/compare/v5.33.0...v5.34.0) (2018-11-20) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.33.0](https://github.com/instructure/instructure-ui/compare/v5.32.0...v5.33.0) (2018-11-14) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.32.0](https://github.com/instructure/instructure-ui/compare/v5.31.0...v5.32.0) (2018-10-31) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.31.0](https://github.com/instructure/instructure-ui/compare/v5.30.0...v5.31.0) (2018-10-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.30.0](https://github.com/instructure/instructure-ui/compare/v5.29.0...v5.30.0) (2018-09-27) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.29.0](https://github.com/instructure/instructure-ui/compare/v5.28.1...v5.29.0) (2018-09-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -## [5.28.1](https://github.com/instructure/instructure-ui/compare/v5.28.0...v5.28.1) (2018-09-18) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.28.0](https://github.com/instructure/instructure-ui/compare/v5.27.0...v5.28.0) (2018-09-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.27.0](https://github.com/instructure/instructure-ui/compare/v5.26.0...v5.27.0) (2018-09-10) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.26.0](https://github.com/instructure/instructure-ui/compare/v5.25.0...v5.26.0) (2018-09-06) - -### Features - -- **ui-axe-check:** Add axe-core wrapper utility ([3264318](https://github.com/instructure/instructure-ui/commit/3264318)) - - - -# [5.25.0](https://github.com/instructure/instructure-ui/compare/v5.24.0...v5.25.0) (2018-08-24) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.24.0](https://github.com/instructure/instructure-ui/compare/v5.23.0...v5.24.0) (2018-08-08) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.23.0](https://github.com/instructure/instructure-ui/compare/v5.22.0...v5.23.0) (2018-08-03) - -### Features - -- **ui-presets:** add an install-react script ([d4e87fe](https://github.com/instructure/instructure-ui/commit/d4e87fe)) - - - -# [5.22.0](https://github.com/instructure/instructure-ui/compare/v5.21.0...v5.22.0) (2018-07-27) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.21.0](https://github.com/instructure/instructure-ui/compare/v5.20.1...v5.21.0) (2018-07-25) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -## [5.20.1](https://github.com/instructure/instructure-ui/compare/v5.20.0...v5.20.1) (2018-07-18) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.20.0](https://github.com/instructure/instructure-ui/compare/v5.19.0...v5.20.0) (2018-07-17) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.19.0](https://github.com/instructure/instructure-ui/compare/v5.18.0...v5.19.0) (2018-07-12) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.18.0](https://github.com/instructure/instructure-ui/compare/v5.17.0...v5.18.0) (2018-07-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.17.0](https://github.com/instructure/instructure-ui/compare/v5.16.0...v5.17.0) (2018-07-06) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.16.0](https://github.com/instructure/instructure-ui/compare/v5.15.0...v5.16.0) (2018-07-06) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.15.0](https://github.com/instructure/instructure-ui/compare/v5.14.0...v5.15.0) (2018-06-28) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.14.0](https://github.com/instructure/instructure-ui/compare/v5.13.1...v5.14.0) (2018-06-28) - -### Bug Fixes - -- **cz-lerna-changelog:** ensure changeID is the last element of commit msg ([fe64e52](https://github.com/instructure/instructure-ui/commit/fe64e52)) - - - -## [5.13.1](https://github.com/instructure/instructure-ui/compare/v5.13.0...v5.13.1) (2018-06-22) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.13.0](https://github.com/instructure/instructure-ui/compare/v5.12.0...v5.13.0) (2018-06-16) - -### Bug Fixes - -- **cz-lerna-changelog:** pass in config for footer prefix ([9822f1f](https://github.com/instructure/instructure-ui/commit/9822f1f)) -- **ui-presets:** release script changes for Jenkins ([511ddb3](https://github.com/instructure/instructure-ui/commit/511ddb3)) - -### Features - -- **cz-lerna-changelog,ui-presets:** add lerna changelog package ([f7592eb](https://github.com/instructure/instructure-ui/commit/f7592eb)) - -See the instructure-ui mono-repo [change log](#CHANGELOG) for past changes. diff --git a/packages/cz-lerna-changelog/README.md b/packages/cz-lerna-changelog/README.md deleted file mode 100644 index 05e1844908..0000000000 --- a/packages/cz-lerna-changelog/README.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -category: packages ---- - -## cz-lerna-changelog - -[![npm][npm]][npm-url] -[![MIT License][license-badge]][license] -[![Code of Conduct][coc-badge]][coc] - -Prompts for conventional changelog standard in a lerna environment. - -### Installation - -```sh -npm install @instructure/cz-lerna-changelog -``` - -Add the following to your package.json file: - -```json -"config": { - "commitizen": { - "path": "./node_modules/@instructure/cz-lerna-changelog" - } -} -``` - -[npm]: https://img.shields.io/npm/v/@instructure/cz-lerna-changelog.svg -[npm-url]: https://npmjs.com/package/@instructure/cz-lerna-changelog -[license-badge]: https://img.shields.io/npm/l/instructure-ui.svg?style=flat-square -[license]: https://github.com/instructure/instructure-ui/blob/master/LICENSE.md -[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square -[coc]: https://github.com/instructure/instructure-ui/blob/master/CODE_OF_CONDUCT.md diff --git a/packages/cz-lerna-changelog/babel.config.js b/packages/cz-lerna-changelog/babel.config.js deleted file mode 100644 index 8698772a84..0000000000 --- a/packages/cz-lerna-changelog/babel.config.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2015 - present Instructure, Inc. - * - * 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. - */ - -module.exports = { - presets: [ - [ - require('@instructure/ui-babel-preset'), - { - coverage: Boolean(process.env.COVERAGE), - esModules: Boolean(process.env.ES_MODULES), - removeConsole: false, - transformImports: Boolean(process.env.TRANSFORM_IMPORTS) - } - ] - ] -} diff --git a/packages/cz-lerna-changelog/package.json b/packages/cz-lerna-changelog/package.json deleted file mode 100644 index ff516af0be..0000000000 --- a/packages/cz-lerna-changelog/package.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "@instructure/cz-lerna-changelog", - "version": "10.10.0", - "description": "Prompts for conventional changelog standard in a lerna environment.", - "author": "Instructure, Inc. Engineering and Product Design", - "module": "./es/index.js", - "main": "./lib/index.js", - "types": "./types/index.d.ts", - "repository": { - "type": "git", - "url": "https://github.com/instructure/instructure-ui.git" - }, - "homepage": "https://instructure.github.io/instructure-ui/", - "bugs": "https://github.com/instructure/instructure-ui/issues", - "scripts": { - "lint": "ui-scripts lint", - "lint:fix": "ui-scripts lint --fix", - "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", - "build:watch": "ui-scripts build --watch", - "build:types": "tsc -p tsconfig.build.json" - }, - "license": "MIT", - "dependencies": { - "@instructure/pkg-utils": "10.10.0", - "@semantic-release/commit-analyzer": "^9.0.2", - "chalk": "^4.1.2", - "cz-customizable": "^7.3.0", - "inquirer": "^8.2.6" - }, - "devDependencies": { - "@instructure/ui-babel-preset": "10.10.0", - "@types/inquirer": "^8.2.10" - }, - "peerDependencies": { - "lerna": "^8" - }, - "//dependency-comments": { - "cz-cli": "This module cannot be ESM because cz-cli can only import CommonJS, see https://github.com/commitizen/cz-cli/issues/916", - "@semantic-release/commit-analyzer": "commit-analyzer 10 is ESM.", - "chalk": "Chalk 5 is ESM. To use it this repo needs to be converted to ESM", - "inquirer": "inquirer 9 is ESM. To use it this repo needs to be converted to ESM" - }, - "publishConfig": { - "access": "public" - } -} diff --git a/packages/cz-lerna-changelog/src/MaxLengthInputPrompt.ts b/packages/cz-lerna-changelog/src/MaxLengthInputPrompt.ts deleted file mode 100644 index 7f95984018..0000000000 --- a/packages/cz-lerna-changelog/src/MaxLengthInputPrompt.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2015 - present Instructure, Inc. - * - * 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. - */ - -import chalk from 'chalk' -import InputPrompt from 'inquirer/lib/prompts/input' -import type { Interface as ReadlineInterface } from 'readline' -import { Answers, InputQuestionOptions } from 'inquirer' - -export interface MaxLengthQuestion extends InputQuestionOptions { - type: 'maxlength-input' - maxLength: number - transformer: (input: string, answers: Answers) => string - filter: (input: string, answers: Answers) => string - validate: (input: string, answers: Answers) => boolean | string -} -export class MaxLengthInputPrompt extends InputPrompt { - static VALIDATION_ERROR_MESSAGE = 'Input contains too many characters!' - constructor( - question: MaxLengthQuestion, - readLine: ReadlineInterface, - answers: Answers - ) { - super(question, readLine, answers) - if (!this.opt.maxLength) { - this.throwParamError('maxLength') - } - const currentValidator = this.opt.validate - this.opt.validate = (input: string, answers: Answers) => { - if (this.opt.transformer(input, answers).length > this.opt.maxLength) { - return MaxLengthInputPrompt.VALIDATION_ERROR_MESSAGE - } - return currentValidator(input, answers) - } - } - - render(error?: string) { - const { maxLength, transformer } = this.opt - const answered = this.status === 'answered' - let bottomContent = '' - let message = this.getQuestion() - const transformed = transformer(this.rl.line, this.answers) - if (answered) { - message += chalk.cyan(this.answer) - } else { - message += transformed - } - if (error) { - bottomContent = chalk.red('>> ') + error - } else if (!answered) { - const percent = (transformed.length / maxLength) * 100 - const color = - percent < 80 ? chalk.green : percent > 100 ? chalk.red : chalk.yellow - bottomContent = `(${color(transformed.length)}/${ - this.opt.maxLength - } characters)` - } - this.screen.render(message, bottomContent) - } -} diff --git a/packages/cz-lerna-changelog/src/index.ts b/packages/cz-lerna-changelog/src/index.ts deleted file mode 100644 index f55e809cf1..0000000000 --- a/packages/cz-lerna-changelog/src/index.ts +++ /dev/null @@ -1,116 +0,0 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2015 - present Instructure, Inc. - * - * 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. - */ - -// @ts-ignore not typed -import commitAnalyzer from '@semantic-release/commit-analyzer' -import chalk from 'chalk' -// @ts-ignore not typed -import buildCommit from 'cz-customizable/lib/build-commit' -// @ts-ignore not typed -import { getChangedPackages, getPackages } from '@instructure/pkg-utils' -import { makeDefaultQuestions } from './make-default-questions' -import type { Answers } from 'inquirer' -import inquirerModule from 'inquirer' -import { MaxLengthInputPrompt } from './MaxLengthInputPrompt' - -type CommitType = 'patch' | 'minor' | 'major' - -function scopeText(scopes: string[]) { - if (scopes.length > 3) { - return 'many' - } else return scopes.join(',') -} - -// note: Most of the code is from https://github.com/atlassian/cz-lerna-changelog/ -function getCommitTypeMessage(type: CommitType) { - if (!type) { - return 'This commit does not indicate any release' - } - return { - patch: '🛠 This commit indicates a patch release (0.0.X)', - minor: '✨ This commit indicates a minor release (0.X.0)', - major: '💥 This commit indicates a major release (X.0.0)' - }[type] -} - -const prompter = ( - inquirer: typeof inquirerModule, - commit: (message: string) => void -) => { - const scope = '@instructure' - const allPackages = getPackages() - const changedPackages: string[] = getChangedPackages( - '--cached', - allPackages - ).map((pkg: any) => pkg.name.replace(`${scope}/`, '')) - const packageNames: string[] = allPackages.map((pkg: any) => - pkg.name.replace(`${scope}/`, '') - ) - const questions = makeDefaultQuestions(packageNames, changedPackages) - - inquirer.registerPrompt('maxlength-input', MaxLengthInputPrompt) - inquirer - .prompt(questions) - .then((answers) => { - const { body, testplan, footer, breaking, scope, ...rest } = answers - - const testplanTxt = testplan ? `\nTEST PLAN:\n${testplan}\n\n` : '' - const issues = footer ? `\n\nCloses: ${footer}\n\n` : '' - // To have part of a commit body appear in the changelog it needs to be after the "BREAKING CHANGE:" text. - // see https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular - const message = buildCommit( - { - ...rest, - body: issues + body + testplanTxt, - breaking: breaking, - scope: scopeText(scope) - }, - { breaklineChar: '|' } - ) - const cwd = process.cwd() - - commitAnalyzer - .analyzeCommits( - {}, - { cwd, commits: [{ hash: '', message }], logger: console } - ) - .then((type: CommitType) => { - /* eslint-disable no-console */ - console.info(chalk.green(`\n${getCommitTypeMessage(type)}\n`)) - console.info('\n\nCommit message:') - console.info(chalk.blue(`\n\n${message}\n`)) - /* eslint-enable no-console */ - commit(message) - }) - .catch((error: any) => { - console.error(error) - }) - }) - .catch((error: any) => { - console.error(error) - }) -} - -export default { prompter } -export { scopeText } diff --git a/packages/cz-lerna-changelog/src/make-default-questions.ts b/packages/cz-lerna-changelog/src/make-default-questions.ts deleted file mode 100644 index 0613e5ca84..0000000000 --- a/packages/cz-lerna-changelog/src/make-default-questions.ts +++ /dev/null @@ -1,117 +0,0 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2015 - present Instructure, Inc. - * - * 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. - */ - -import type { MaxLengthQuestion } from './MaxLengthInputPrompt' -import type { DistinctQuestion } from 'inquirer' -import { scopeText } from './index' - -export const makeDefaultQuestions = ( - allPackages: string[], - changedPackages: string[] -): (DistinctQuestion | MaxLengthQuestion)[] => [ - { - type: 'list', - name: 'type', - message: "Select the type of change that you're committing:", - choices: [ - { value: 'WIP', name: 'WIP: 🚧 Work in progress' }, - { - value: 'feat', - name: 'feat: 🎉 A new feature (note: this will indicate a release)' - }, - { - value: 'fix', - name: 'fix: 🐛 A bug fix (note: this will indicate a release)' - }, - { value: 'docs', name: 'docs: 📖 Documentation only changes' }, - { - value: 'chore', - name: 'chore: 🛠 Changes to the build process or auxiliary tools\n and libraries such as documentation generation' - }, - { - value: 'style', - name: 'style: 💄 Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)' - }, - { - value: 'refactor', - name: 'refactor: ✨ A code change that neither fixes a bug nor adds a feature' - }, - { value: 'test', name: 'test: ✅ Adding missing tests' }, - { - value: 'perf', - name: 'perf: 🚀 A code change that improves performance' - }, - { value: 'revert', name: 'revert: 🙈 Revert to a commit' } - ] - }, - { - type: 'checkbox', - name: 'scope', - default: changedPackages, - choices: allPackages, - message: `The packages that this commit has affected (${changedPackages.length} detected)\n` - }, - { - type: 'maxlength-input', - name: 'subject', - message: 'Write a short, imperative tense description of the change:\n', - validate: function (input, _answers) { - return input && input.length > 0 - }, - filter: function (input, _answers) { - // used as return value and as length measurement - return input.charAt(0).toLowerCase() + input.slice(1) - }, - transformer: function (input, answers) { - // Return prefix + input. Shown only while entering the prompt - if (answers.scope.length === 0) { - return `${answers.type}: ${input}` - } - return `${answers.type}(${scopeText(answers.scope)}): ${input}` - }, - maxLength: 150 - }, - { - type: 'input', - name: 'body', - message: - 'Provide a longer description of the change (optional). Use "|" to break new line:\n' - }, - { - type: 'input', - name: 'testplan', - message: 'Provide a test plan:\n' - }, - { - type: 'input', - name: 'breaking', - message: 'List any BREAKING CHANGES (if none, leave blank):\n' - }, - { - type: 'input', - name: 'footer', // needs to be called footer, so its inserted after BREAKING CHANGE part, so it appears in the changelog - message: - 'List any ISSUES CLOSED by this change. E.g.: PROJECT-123, PROJECT-456:\n' - } -] diff --git a/packages/cz-lerna-changelog/tsconfig.build.json b/packages/cz-lerna-changelog/tsconfig.build.json deleted file mode 100644 index 99a342b900..0000000000 --- a/packages/cz-lerna-changelog/tsconfig.build.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tsconfig.build.json", - "compilerOptions": { - "rootDir": "./src", - "outDir": "./types", - "composite": true - }, - "include": ["src"], - "references": [ - { - "path": "../pkg-utils/tsconfig.build.json" - }, - { - "path": "../ui-babel-preset/tsconfig.build.json" - } - ] -} diff --git a/packages/cz-lerna-changelog/tsconfig.json b/packages/cz-lerna-changelog/tsconfig.json deleted file mode 100644 index b29a7b46c4..0000000000 --- a/packages/cz-lerna-changelog/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": {} -} diff --git a/packages/instui-config/.gitignore b/packages/instui-config/.gitignore deleted file mode 100644 index a7c47537dc..0000000000 --- a/packages/instui-config/.gitignore +++ /dev/null @@ -1 +0,0 @@ -types/ diff --git a/packages/instui-config/.npmignore b/packages/instui-config/.npmignore deleted file mode 100644 index e7702c99a7..0000000000 --- a/packages/instui-config/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -**/.* -**/__tests__ -**/__testfixtures__ diff --git a/packages/instui-config/CHANGELOG.md b/packages/instui-config/CHANGELOG.md deleted file mode 100644 index e2b7cbbd56..0000000000 --- a/packages/instui-config/CHANGELOG.md +++ /dev/null @@ -1,1003 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [10.10.0](https://github.com/instructure/instructure-ui/compare/v10.9.0...v10.10.0) (2024-12-18) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -# [10.9.0](https://github.com/instructure/instructure-ui/compare/v10.8.0...v10.9.0) (2024-12-12) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -# [10.8.0](https://github.com/instructure/instructure-ui/compare/v10.7.0...v10.8.0) (2024-12-09) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -# [10.7.0](https://github.com/instructure/instructure-ui/compare/v10.6.1...v10.7.0) (2024-12-03) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -## [10.6.1](https://github.com/instructure/instructure-ui/compare/v10.6.0...v10.6.1) (2024-11-26) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -# [10.6.0](https://github.com/instructure/instructure-ui/compare/v10.5.0...v10.6.0) (2024-11-18) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -# [10.5.0](https://github.com/instructure/instructure-ui/compare/v10.4.1...v10.5.0) (2024-11-07) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -## [10.4.1](https://github.com/instructure/instructure-ui/compare/v10.4.0...v10.4.1) (2024-10-28) - - -### Bug Fixes - -* update license ([1c039d9](https://github.com/instructure/instructure-ui/commit/1c039d9cbf5a3ea99b59803ddde5c6c0b2d76ba5)) - - - - - -# [10.4.0](https://github.com/instructure/instructure-ui/compare/v10.3.0...v10.4.0) (2024-10-16) - - -### Bug Fixes - -* **ui-calendar:** fix duplicate dates for certain timezones ([f9181aa](https://github.com/instructure/instructure-ui/commit/f9181aa88c35eba1e374240505d32bf618c46b04)) - - - - - -# [10.3.0](https://github.com/instructure/instructure-ui/compare/v10.2.2...v10.3.0) (2024-10-03) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -## [10.2.2](https://github.com/instructure/instructure-ui/compare/v10.2.1...v10.2.2) (2024-09-13) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -## [10.2.1](https://github.com/instructure/instructure-ui/compare/v10.2.0...v10.2.1) (2024-08-30) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -# [10.2.0](https://github.com/instructure/instructure-ui/compare/v10.0.0...v10.2.0) (2024-08-23) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -# [10.1.0](https://github.com/instructure/instructure-ui/compare/v10.0.0...v10.1.0) (2024-08-23) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -# [10.0.0](https://github.com/instructure/instructure-ui/compare/v9.5.1...v10.0.0) (2024-07-31) - - -### Features - -* **many:** rewrite color system ([1e5809e](https://github.com/instructure/instructure-ui/commit/1e5809e28dee8c2a71703a429609b8d2f95d76e6)) - - -### BREAKING CHANGES - -* **many:** Breaks color overrides in certain cases - - - - - -## [9.5.1](https://github.com/instructure/instructure-ui/compare/v9.5.0...v9.5.1) (2024-07-30) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -# [9.5.0](https://github.com/instructure/instructure-ui/compare/v9.3.0...v9.5.0) (2024-07-26) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -# [9.4.0](https://github.com/instructure/instructure-ui/compare/v9.3.0...v9.4.0) (2024-07-26) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -# [9.3.0](https://github.com/instructure/instructure-ui/compare/v9.2.0...v9.3.0) (2024-07-17) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -# [9.2.0](https://github.com/instructure/instructure-ui/compare/v9.1.0...v9.2.0) (2024-07-09) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -# [9.1.0](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.1.0) (2024-06-14) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -## [9.0.1](https://github.com/instructure/instructure-ui/compare/v9.0.0...v9.0.1) (2024-05-09) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -# [9.0.0](https://github.com/instructure/instructure-ui/compare/v8.56.0...v9.0.0) (2024-05-09) - - -### Features - -* **instui-config,ui-codemods:** remove instui-cli and template packages ([17a4442](https://github.com/instructure/instructure-ui/commit/17a4442b917d0516d6977ab8bc845dd609a84e49)) -* set tooling packages to private ([17ab811](https://github.com/instructure/instructure-ui/commit/17ab81187c0ad7778bf3afd1426ece7ee3ca1136)) - - -### BREAKING CHANGES - -* **instui-config,ui-codemods:** instui-cli and template packages has been removed -* following packages have been set to private: -- cz-lerna-changelog -- slint-plugin-instructure-ui -- pkg-utils -- ui-babel-preset -- ui-eslint-config -- ui-karma-config -- ui-scripts -- ui-stylelint-config -- ui-webpack-config - - - - - -# [8.56.0](https://github.com/instructure/instructure-ui/compare/v8.55.1...v8.56.0) (2024-05-06) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -## [8.55.1](https://github.com/instructure/instructure-ui/compare/v8.55.0...v8.55.1) (2024-04-30) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -# [8.55.0](https://github.com/instructure/instructure-ui/compare/v8.54.0...v8.55.0) (2024-04-09) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -# [8.54.0](https://github.com/instructure/instructure-ui/compare/v8.53.2...v8.54.0) (2024-03-21) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -## [8.53.2](https://github.com/instructure/instructure-ui/compare/v8.53.1...v8.53.2) (2024-02-15) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -## [8.53.1](https://github.com/instructure/instructure-ui/compare/v8.53.0...v8.53.1) (2024-02-09) - -**Note:** Version bump only for package @instructure/instui-config - - - - - -# [8.53.0](https://github.com/instructure/instructure-ui/compare/v8.52.0...v8.53.0) (2024-02-08) - -### Bug Fixes - -- **ui-text-area:** correct highligh on textarea when using themeOverride ([a80dd9a](https://github.com/instructure/instructure-ui/commit/a80dd9a81758ed6931ef0b503b86e9407b0090ca)) - -# [8.52.0](https://github.com/instructure/instructure-ui/compare/v8.51.0...v8.52.0) (2024-02-02) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.51.0](https://github.com/instructure/instructure-ui/compare/v8.50.0...v8.51.0) (2023-12-14) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.50.0](https://github.com/instructure/instructure-ui/compare/v8.49.0...v8.50.0) (2023-12-05) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.49.0](https://github.com/instructure/instructure-ui/compare/v8.48.3...v8.49.0) (2023-11-24) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.48.3](https://github.com/instructure/instructure-ui/compare/v8.48.2...v8.48.3) (2023-11-23) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.48.2](https://github.com/instructure/instructure-ui/compare/v8.48.1...v8.48.2) (2023-11-21) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.48.1](https://github.com/instructure/instructure-ui/compare/v8.48.0...v8.48.1) (2023-11-17) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.48.0](https://github.com/instructure/instructure-ui/compare/v8.47.1...v8.48.0) (2023-11-10) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.47.1](https://github.com/instructure/instructure-ui/compare/v8.47.0...v8.47.1) (2023-11-06) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.47.0](https://github.com/instructure/instructure-ui/compare/v8.46.1...v8.47.0) (2023-10-27) - -### Bug Fixes - -- **instui-config:** v7 codemods were not run for BreadcrumbLink and FlexItem ([5b8601e](https://github.com/instructure/instructure-ui/commit/5b8601e74e7cc802fbfbf00f3a431418351a5e03)) - -## [8.46.1](https://github.com/instructure/instructure-ui/compare/v8.46.0...v8.46.1) (2023-10-13) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.46.0](https://github.com/instructure/instructure-ui/compare/v8.45.0...v8.46.0) (2023-10-11) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.45.0](https://github.com/instructure/instructure-ui/compare/v8.44.0...v8.45.0) (2023-10-03) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.44.0](https://github.com/instructure/instructure-ui/compare/v8.43.1...v8.44.0) (2023-09-21) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.43.1](https://github.com/instructure/instructure-ui/compare/v8.43.0...v8.43.1) (2023-09-11) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.43.0](https://github.com/instructure/instructure-ui/compare/v8.41.1...v8.43.0) (2023-09-07) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.42.0](https://github.com/instructure/instructure-ui/compare/v8.41.1...v8.42.0) (2023-09-07) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.41.1](https://github.com/instructure/instructure-ui/compare/v8.41.0...v8.41.1) (2023-08-24) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.41.0](https://github.com/instructure/instructure-ui/compare/v8.40.1...v8.41.0) (2023-08-21) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.40.1](https://github.com/instructure/instructure-ui/compare/v8.40.0...v8.40.1) (2023-08-18) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.40.0](https://github.com/instructure/instructure-ui/compare/v8.39.0...v8.40.0) (2023-08-17) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.39.0](https://github.com/instructure/instructure-ui/compare/v8.38.1...v8.39.0) (2023-07-21) - -### Features - -- **instui-config,shared-types,ui-navigation,ui-side-nav-bar,ui:** add side-nav-bar component and deprecate navigation ([45848bf](https://github.com/instructure/instructure-ui/commit/45848bf5feea16e05c19e559c03e53e4b0637412)) - -## [8.38.1](https://github.com/instructure/instructure-ui/compare/v8.38.0...v8.38.1) (2023-06-13) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.38.0](https://github.com/instructure/instructure-ui/compare/v8.37.0...v8.38.0) (2023-05-15) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.37.0](https://github.com/instructure/instructure-ui/compare/v8.36.0...v8.37.0) (2023-04-25) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.36.0](https://github.com/instructure/instructure-ui/compare/v8.35.1...v8.36.0) (2023-03-23) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.35.1](https://github.com/instructure/instructure-ui/compare/v8.35.0...v8.35.1) (2023-03-10) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.35.0](https://github.com/instructure/instructure-ui/compare/v8.34.0...v8.35.0) (2023-02-17) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.34.0](https://github.com/instructure/instructure-ui/compare/v8.33.2...v8.34.0) (2023-02-10) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.33.2](https://github.com/instructure/instructure-ui/compare/v8.33.1...v8.33.2) (2023-01-25) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.33.1](https://github.com/instructure/instructure-ui/compare/v8.33.0...v8.33.1) (2023-01-06) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.33.0](https://github.com/instructure/instructure-ui/compare/v8.32.1...v8.33.0) (2023-01-04) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.32.1](https://github.com/instructure/instructure-ui/compare/v8.30.0...v8.32.1) (2022-12-01) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.32.0](https://github.com/instructure/instructure-ui/compare/v8.31.0...v8.32.0) (2022-11-23) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.31.0](https://github.com/instructure/instructure-ui/compare/v8.30.0...v8.31.0) (2022-11-21) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.30.0](https://github.com/instructure/instructure-ui/compare/v8.29.0...v8.30.0) (2022-10-26) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.29.0](https://github.com/instructure/instructure-ui/compare/v8.28.0...v8.29.0) (2022-09-29) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.28.2](https://github.com/instructure/instructure-ui/compare/v8.28.0...v8.28.2) (2022-09-16) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.28.1](https://github.com/instructure/instructure-ui/compare/v8.28.0...v8.28.1) (2022-09-12) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.28.0](https://github.com/instructure/instructure-ui/compare/v8.27.0...v8.28.0) (2022-09-02) - -### Features - -- **ui-position:** add `containerDisplay` prop to Position ([0fdd83f](https://github.com/instructure/instructure-ui/commit/0fdd83fc06f3d63eadf4bd42bc96e0e8514a5981)) - -# [8.27.0](https://github.com/instructure/instructure-ui/compare/v8.26.3...v8.27.0) (2022-07-25) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.26.3](https://github.com/instructure/instructure-ui/compare/v8.26.2...v8.26.3) (2022-07-14) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.26.2](https://github.com/instructure/instructure-ui/compare/v8.26.1...v8.26.2) (2022-07-11) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.26.1](https://github.com/instructure/instructure-ui/compare/v8.26.0...v8.26.1) (2022-07-06) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.26.0](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.26.0) (2022-06-30) - -### Features - -- **ui-color-picker:** Add `ColorPicker` component ([1cbd877](https://github.com/instructure/instructure-ui/commit/1cbd87783da67144ffbd1f6ed535ccd370fd4eeb)) -- **ui-source-code-editor,ui-code-editor,ui:** add new `SourceCodeEditor` component ([b5064f5](https://github.com/instructure/instructure-ui/commit/b5064f5c767eb2d5c5a6d7f5bb6d05bd689418b5)) - -# [8.25.0](https://github.com/instructure/instructure-ui/compare/v8.24.5...v8.25.0) (2022-06-03) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.24.5](https://github.com/instructure/instructure-ui/compare/v8.24.3...v8.24.5) (2022-05-31) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.24.4](https://github.com/instructure/instructure-ui/compare/v8.24.3...v8.24.4) (2022-05-27) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.24.3](https://github.com/instructure/instructure-ui/compare/v8.24.2...v8.24.3) (2022-05-25) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.24.2](https://github.com/instructure/instructure-ui/compare/v8.24.1...v8.24.2) (2022-05-02) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.24.1](https://github.com/instructure/instructure-ui/compare/v8.24.0...v8.24.1) (2022-04-29) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.24.0](https://github.com/instructure/instructure-ui/compare/v8.23.0...v8.24.0) (2022-04-26) - -### Features - -- **theme-registry:** add `theme-registry` pacakge ([63216ef](https://github.com/instructure/instructure-ui/commit/63216ef58cfa3d1d61f85f1d9784cddffeddad72)) - -# [8.23.0](https://github.com/instructure/instructure-ui/compare/v8.22.0...v8.23.0) (2022-04-07) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.22.0](https://github.com/instructure/instructure-ui/compare/v8.21.0...v8.22.0) (2022-03-31) - -### Features - -- **ui-drilldown,ui:** add new `Drilldown` component ([44e7e13](https://github.com/instructure/instructure-ui/commit/44e7e13f1720680be9f7e76a3d3ec0cf94e88d5b)) - -##### Drilldown component - -The [Drilldown](#Drilldown) component exists to support navigating and managing tree structures in compact spaces. -It is a diverse component that displays hierarchical data in a fashion that allows the users to “drill down” and dig deeper into the layers (pages) of the data structure. -It has similar look and features to the [Menu](#Menu), [Select](#Select) and [TreeBrowser](#TreeBrowser) components. - -# [8.21.0](https://github.com/instructure/instructure-ui/compare/v8.20.0...v8.21.0) (2022-03-30) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.20.0](https://github.com/instructure/instructure-ui/compare/v8.19.0...v8.20.0) (2022-03-22) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.19.0](https://github.com/instructure/instructure-ui/compare/v8.18.0...v8.19.0) (2022-03-16) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.18.0](https://github.com/instructure/instructure-ui/compare/v8.17.0...v8.18.0) (2022-02-23) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.17.0](https://github.com/instructure/instructure-ui/compare/v8.16.0...v8.17.0) (2022-02-07) - -### Bug Fixes - -- remove type:"commonjs" from package.json files ([0b243be](https://github.com/instructure/instructure-ui/commit/0b243bee389ee14493e6b3dbb30a8b660c295d3d)) - -# [8.16.0](https://github.com/instructure/instructure-ui/compare/v8.15.0...v8.16.0) (2022-02-03) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.15.0](https://github.com/instructure/instructure-ui/compare/v8.14.0...v8.15.0) (2022-01-26) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.14.0](https://github.com/instructure/instructure-ui/compare/v8.13.0...v8.14.0) (2021-12-16) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.13.0](https://github.com/instructure/instructure-ui/compare/v8.12.0...v8.13.0) (2021-12-01) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.12.0](https://github.com/instructure/instructure-ui/compare/v8.11.1...v8.12.0) (2021-11-17) - -### Features - -- **ui-date-time-input,ui-i18n,ui-time-select:** add DateTimeInput ([1054ae9](https://github.com/instructure/instructure-ui/commit/1054ae96aa246cc77547d114d0afc47236996bdb)) - -## [8.11.1](https://github.com/instructure/instructure-ui/compare/v8.11.0...v8.11.1) (2021-10-19) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.11.0](https://github.com/instructure/instructure-ui/compare/v8.10.2...v8.11.0) (2021-10-15) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.10.2](https://github.com/instructure/instructure-ui/compare/v8.10.1...v8.10.2) (2021-10-01) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.10.1](https://github.com/instructure/instructure-ui/compare/v8.10.0...v8.10.1) (2021-10-01) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.10.0](https://github.com/instructure/instructure-ui/compare/v8.9.1...v8.10.0) (2021-09-28) - -### Features - -- **ui-tabs:** add 'fixHeight' prop to Tabs ([b63e6e7](https://github.com/instructure/instructure-ui/commit/b63e6e71705efa7880195ea1e40b3eac67db06b9)) - -## [8.9.1](https://github.com/instructure/instructure-ui/compare/v8.9.0...v8.9.1) (2021-09-16) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.9.0](https://github.com/instructure/instructure-ui/compare/v8.8.0...v8.9.0) (2021-09-15) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.8.0](https://github.com/instructure/instructure-ui/compare/v8.7.0...v8.8.0) (2021-08-27) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.7.0](https://github.com/instructure/instructure-ui/compare/v8.6.0...v8.7.0) (2021-07-16) - -### Features - -- remove polyfills, since all supported browsers are feature rich enough ([40d3a65](https://github.com/instructure/instructure-ui/commit/40d3a650f9fd563896ae087243b5e051704e4160)) - -# [8.6.0](https://github.com/instructure/instructure-ui/compare/v8.5.0...v8.6.0) (2021-06-18) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.5.0](https://github.com/instructure/instructure-ui/compare/v8.4.0...v8.5.0) (2021-06-09) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.4.0](https://github.com/instructure/instructure-ui/compare/v8.3.0...v8.4.0) (2021-05-11) - -### Bug Fixes - -- fix all inter-package dependencies using fix version ([75cd898](https://github.com/instructure/instructure-ui/commit/75cd8983b7e206e4e14dc67c490c103cb4a3d915)) - -# [8.3.0](https://github.com/instructure/instructure-ui/compare/v8.2.1...v8.3.0) (2021-05-04) - -**Note:** Version bump only for package @instructure/instui-config - -## [8.2.1](https://github.com/instructure/instructure-ui/compare/v8.2.0...v8.2.1) (2021-04-22) - -### Bug Fixes - -- **ui-select,ui-simple-select,ui-text-input:** fix empty space before or after input ([b2b18cb](https://github.com/instructure/instructure-ui/commit/b2b18cb8e278e075b7127a6b9070d93ff72e5e41)) - -# [8.2.0](https://github.com/instructure/instructure-ui/compare/v8.1.0...v8.2.0) (2021-04-22) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.1.0](https://github.com/instructure/instructure-ui/compare/v8.0.0...v8.1.0) (2021-04-15) - -**Note:** Version bump only for package @instructure/instui-config - -# [8.0.0](https://github.com/instructure/instructure-ui/compare/v7.5.0...v8.0.0) (2021-03-29) - -### Code Refactoring - -- **ui-babel-preset,ui-webpack-config:** remove unnecessary babel and postcss plugins ([457bd82](https://github.com/instructure/instructure-ui/commit/457bd828fba65f9d60bc07afd4803b3499bf31b4)) - -### Features - -- **instui-config:** add codemod for themeable util imports ([89a95f8](https://github.com/instructure/instructure-ui/commit/89a95f86c129b266a0090b983587933c285a0960)) -- **ui-test-sandbox,ui:** delete ui-themeable package and usages ([60e4080](https://github.com/instructure/instructure-ui/commit/60e4080a68dd76b0d6462fa1b63e6a4f59c38f7d)) - -### BREAKING CHANGES - -- **ui-babel-preset,ui-webpack-config:** Removed the following packages because they were supporting `ui-themable`, and are no longer needed when using `emotion` theming: `babel-plugin-themeable-styles`, `postcss-themeable-styles`, `ui-postcss-config`. -- **ui-test-sandbox,ui:** The whole `ui-themeable` package was deleted. It is superseeded by the `emotion` package. - -# [7.5.0](https://github.com/instructure/instructure-ui/compare/v7.4.4...v7.5.0) (2021-03-22) - -**Note:** Version bump only for package @instructure/instui-config - -## [7.4.4](https://github.com/instructure/instructure-ui/compare/v7.4.3...v7.4.4) (2021-03-12) - -**Note:** Version bump only for package @instructure/instui-config - -## [7.4.3](https://github.com/instructure/instructure-ui/compare/v7.4.1...v7.4.3) (2021-03-11) - -**Note:** Version bump only for package @instructure/instui-config - -## [7.4.2](https://github.com/instructure/instructure-ui/compare/v7.4.1...v7.4.2) (2021-03-11) - -**Note:** Version bump only for package @instructure/instui-config - -## [7.4.1](https://github.com/instructure/instructure-ui/compare/v7.4.0...v7.4.1) (2021-03-04) - -### Bug Fixes - -- **all:** Fix package imports, now everything can be imported; fix test:all in main package.json ([2f11024](https://github.com/instructure/instructure-ui/commit/2f11024)) - -# [7.4.0](https://github.com/instructure/instructure-ui/compare/v7.3.5...v7.4.0) (2021-02-01) - -**Note:** Version bump only for package @instructure/instui-config - -## [7.3.5](https://github.com/instructure/instructure-ui/compare/v7.3.2...v7.3.5) (2021-01-21) - -**Note:** Version bump only for package @instructure/instui-config - -## [7.3.4](https://github.com/instructure/instructure-ui/compare/v7.3.2...v7.3.4) (2021-01-14) - -**Note:** Version bump only for package @instructure/instui-config - -## [7.3.3](https://github.com/instructure/instructure-ui/compare/v7.3.2...v7.3.3) (2021-01-13) - -**Note:** Version bump only for package @instructure/instui-config - -## [7.3.2](https://github.com/instructure/instructure-ui/compare/v7.3.1...v7.3.2) (2020-12-10) - -**Note:** Version bump only for package @instructure/instui-config - -## [7.3.1](https://github.com/instructure/instructure-ui/compare/v7.3.0...v7.3.1) (2020-11-30) - -**Note:** Version bump only for package @instructure/instui-config - -# [7.3.0](https://github.com/instructure/instructure-ui/compare/v7.2.4...v7.3.0) (2020-10-26) - -**Note:** Version bump only for package @instructure/instui-config - -## [7.2.4](https://github.com/instructure/instructure-ui/compare/v7.2.0...v7.2.4) (2020-10-09) - -**Note:** Version bump only for package @instructure/instui-config - -## [7.2.3](https://github.com/instructure/instructure-ui/compare/v7.2.0...v7.2.3) (2020-10-08) - -**Note:** Version bump only for package @instructure/instui-config - -## [7.2.2](https://github.com/instructure/instructure-ui/compare/v7.2.0...v7.2.2) (2020-10-08) - -**Note:** Version bump only for package @instructure/instui-config - -## [7.2.1](https://github.com/instructure/instructure-ui/compare/v7.2.0...v7.2.1) (2020-10-07) - -**Note:** Version bump only for package @instructure/instui-config - -# [7.2.0](https://github.com/instructure/instructure-ui/compare/v7.1.4...v7.2.0) (2020-09-23) - -**Note:** Version bump only for package @instructure/instui-config - -## [7.1.4](https://github.com/instructure/instructure-ui/compare/v7.1.3...v7.1.4) (2020-09-09) - -**Note:** Version bump only for package @instructure/instui-config - -## [7.1.3](https://github.com/instructure/instructure-ui/compare/v7.1.2...v7.1.3) (2020-08-10) - -**Note:** Version bump only for package @instructure/instui-config - -## [7.1.2](https://github.com/instructure/instructure-ui/compare/v7.1.1...v7.1.2) (2020-07-17) - -**Note:** Version bump only for package @instructure/instui-config - -## [7.1.1](https://github.com/instructure/instructure-ui/compare/v7.1.0...v7.1.1) (2020-07-01) - -**Note:** Version bump only for package @instructure/instui-config - -# [7.1.0](https://github.com/instructure/instructure-ui/compare/v7.0.0...v7.1.0) (2020-06-25) - -**Note:** Version bump only for package @instructure/instui-config - -# [7.0.0](https://github.com/instructure/instructure-ui/compare/v6.26.0...v7.0.0) (2020-05-27) - -### chore - -- remove canvas-ams-theme ([91f1336](https://github.com/instructure/instructure-ui/commit/91f1336)) - -### Code Refactoring - -- decouple theme properties from ui-themeable ([d5a8827](https://github.com/instructure/instructure-ui/commit/d5a8827)) - -### BREAKING CHANGES - -- - Removed the `canvas-ams-theme` package. Use `canvas-theme` instead. - -Change-Id: I077f6b8cbbef9ee12e5904fb4c9dc4b48409acbb -Reviewed-on: https://gerrit.instructure.com/c/instructure-ui/+/237960 -Tested-by: Service Cloud Jenkins -Reviewed-by: Steve Jensen -QA-Review: Daniel Sasaki -Product-Review: Steve Jensen -Visual-Regression-Test: Steve Jensen - -- - Changed arguments for `ui-token-scripts` commands - -* Changed structure of `ui-token-scripts` configuration file - -Change-Id: I33213d2350f9ce07c157a6ad3f8cd2e6bccb14e9 -Reviewed-on: https://gerrit.instructure.com/c/instructure-ui/+/236552 -Reviewed-by: Steve Jensen -Product-Review: Steve Jensen -Tested-by: Service Cloud Jenkins -QA-Review: Daniel Sasaki -Visual-Regression-Test: Steve Jensen - -# [6.26.0](https://github.com/instructure/instructure-ui/compare/v6.25.0...v6.26.0) (2020-04-30) - -### Features - -- **instui-config:** finish adding codemod configs for universal package ([142d52b](https://github.com/instructure/instructure-ui/commit/142d52b)) - -# [6.25.0](https://github.com/instructure/instructure-ui/compare/v6.24.0...v6.25.0) (2020-04-27) - -### Bug Fixes - -- **instui-config:** publish import codemod configs to npm ([93fc574](https://github.com/instructure/instructure-ui/commit/93fc574)) - -### Features - -- **instui-cli,instui-config,ui-codemods,ui-upgrade-scripts:** allow option to migrate to universal ([2090d6c](https://github.com/instructure/instructure-ui/commit/2090d6c)) -- **instui-config,ui:** add a universal export package ([9e74450](https://github.com/instructure/instructure-ui/commit/9e74450)) - -# [6.24.0](https://github.com/instructure/instructure-ui/compare/v6.23.0...v6.24.0) (2020-04-14) - -### Features - -- **instui-cli,instui-config:** add a default parser configuration file ([c25bb88](https://github.com/instructure/instructure-ui/commit/c25bb88)) - -# [6.23.0](https://github.com/instructure/instructure-ui/compare/v6.22.0...v6.23.0) (2020-04-02) - -### Features - -- **instui-config,canvas-ams-theme,ui-themes,ui-view:** add canvas-ams-theme ([f31849f](https://github.com/instructure/instructure-ui/commit/f31849f)) -- **instui-config,ui-codemods,ui-scripts,ui-upgrade-scripts:** named imports for codemods ([a7db548](https://github.com/instructure/instructure-ui/commit/a7db548)) - -# [6.22.0](https://github.com/instructure/instructure-ui/compare/v6.21.0...v6.22.0) (2020-03-16) - -### Features - -- **ui-time-select:** add TimeSelect component ([1dfa39b](https://github.com/instructure/instructure-ui/commit/1dfa39b)) - -# [6.21.0](https://github.com/instructure/instructure-ui/compare/v6.20.0...v6.21.0) (2020-02-26) - -### Bug Fixes - -- **ui-breadcrumb:** ensure Breakcrumb.Link icon + renderIcon props work ([14e5f1c](https://github.com/instructure/instructure-ui/commit/14e5f1c)) - -### Features - -- **ui-select:** Add a SimpleSelect component ([a7ed234](https://github.com/instructure/instructure-ui/commit/a7ed234)) - -# [6.20.0](https://github.com/instructure/instructure-ui/compare/v6.19.0...v6.20.0) (2020-02-13) - -**Note:** Version bump only for package @instructure/instui-config - -# [6.19.0](https://github.com/instructure/instructure-ui/compare/v6.18.0...v6.19.0) (2020-02-11) - -### Features - -- undeprecate disabled and readOnly in inputs ([79cf68f](https://github.com/instructure/instructure-ui/commit/79cf68f)) -- **instui-cli,instui-config,ui-upgrade-scripts:** eliminate parser errors when running codemods ([0430c6b](https://github.com/instructure/instructure-ui/commit/0430c6b)) -- **ui-link:** un-deprecate disabled in Link ([a8df168](https://github.com/instructure/instructure-ui/commit/a8df168)) - -# [6.18.0](https://github.com/instructure/instructure-ui/compare/v6.17.0...v6.18.0) (2020-02-04) - -### Features - -- **instui-config,ui-buttons,ui-react-utils:** un-deprecate disabled and readOnly in button ([8041bbf](https://github.com/instructure/instructure-ui/commit/8041bbf)) -- **instui-config,ui-buttons,ui-themeable:** upgrade Button ([ed73df1](https://github.com/instructure/instructure-ui/commit/ed73df1)) -- **ui-buttons:** Update CloseButton to use upgraded Button props ([365e0ac](https://github.com/instructure/instructure-ui/commit/365e0ac)) - -# [6.17.0](https://github.com/instructure/instructure-ui/compare/v6.16.0...v6.17.0) (2020-01-22) - -### Bug Fixes - -- Update Package READMEs and align deprecation statements ([8f892e4](https://github.com/instructure/instructure-ui/commit/8f892e4)) - -# [6.16.0](https://github.com/instructure/instructure-ui/compare/v6.15.0...v6.16.0) (2019-12-13) - -### Features - -- **ui-badge:** add ui-badge package ([8de4dae](https://github.com/instructure/instructure-ui/commit/8de4dae)) -- **ui-byline,ui-layout:** add ui-byline package ([4be733d](https://github.com/instructure/instructure-ui/commit/4be733d)) -- **ui-checkbox:** add ui-checkbox package ([94840fa](https://github.com/instructure/instructure-ui/commit/94840fa)) -- **ui-drawer-layout:** add ui-drawer-layout package ([2c59227](https://github.com/instructure/instructure-ui/commit/2c59227)) -- **ui-elements,ui-truncate-text:** add ui-truncate-text package ([75500f9](https://github.com/instructure/instructure-ui/commit/75500f9)) -- **ui-expandable:** add ui-expandable package ([6e5bfd3](https://github.com/instructure/instructure-ui/commit/6e5bfd3)) -- **ui-forms,ui-radio-input:** add ui-radio-input package ([151edd9](https://github.com/instructure/instructure-ui/commit/151edd9)) -- **ui-forms,ui-text-area:** add ui-text-area package ([e116712](https://github.com/instructure/instructure-ui/commit/e116712)) -- **ui-range-input:** ui-range-input package ([48c2786](https://github.com/instructure/instructure-ui/commit/48c2786)) -- **ui-responsive:** add ui-responsive package ([13616d2](https://github.com/instructure/instructure-ui/commit/13616d2)) -- **ui-spinner:** ui-spinner and design updates ([c80c40c](https://github.com/instructure/instructure-ui/commit/c80c40c)) -- **ui-tray:** ui-tray package ([07d7399](https://github.com/instructure/instructure-ui/commit/07d7399)) - -# [6.15.0](https://github.com/instructure/instructure-ui/compare/v6.14.0...v6.15.0) (2019-11-18) - -### Bug Fixes - -- **ui-view:** allow View to use native browser focus ([7686f1b](https://github.com/instructure/instructure-ui/commit/7686f1b)) - -### Features - -- **ui-a11y-utils,ui-dialog:** add ui-a11y-utils and ui-dialog ([c88cf8e](https://github.com/instructure/instructure-ui/commit/c88cf8e)) -- **ui-grid:** add ui-grid package ([3921f32](https://github.com/instructure/instructure-ui/commit/3921f32)) -- **ui-list:** add ui-list package ([7c867af](https://github.com/instructure/instructure-ui/commit/7c867af)) -- **ui-metric:** add ui-metric package ([d4b6dd3](https://github.com/instructure/instructure-ui/commit/d4b6dd3)) -- **ui-modal:** add ui-modal package ([a9c5cee](https://github.com/instructure/instructure-ui/commit/a9c5cee)) -- **ui-popover:** make ui-popover backwards compatible ([d9437ae](https://github.com/instructure/instructure-ui/commit/d9437ae)) -- **ui-rating:** add ui-rating package ([3fa4129](https://github.com/instructure/instructure-ui/commit/3fa4129)) -- **ui-tag:** ui-tag package ([dbf87ca](https://github.com/instructure/instructure-ui/commit/dbf87ca)) -- **ui-text-input:** make ui-text-input backwards compatible ([b9d889d](https://github.com/instructure/instructure-ui/commit/b9d889d)) -- **ui-view:** move ContextView to ui-view package ([4601b4a](https://github.com/instructure/instructure-ui/commit/4601b4a)) - -# [6.14.0](https://github.com/instructure/instructure-ui/compare/v6.13.0...v6.14.0) (2019-10-14) - -### Bug Fixes - -- **instui-config:** fix typos in propName codemod config ([81f1975](https://github.com/instructure/instructure-ui/commit/81f1975)) - -### Features - -- **ui-file-drop:** add ui-file-drop package ([b275521](https://github.com/instructure/instructure-ui/commit/b275521)) -- **ui-heading:** add ui-heading package ([b681432](https://github.com/instructure/instructure-ui/commit/b681432)) -- **ui-link:** add ui-link package ([fa75902](https://github.com/instructure/instructure-ui/commit/fa75902)) -- **ui-position:** add ui-position package ([5511a88](https://github.com/instructure/instructure-ui/commit/5511a88)) -- **ui-tooltip:** add ui-tooltip package ([2e88e8a](https://github.com/instructure/instructure-ui/commit/2e88e8a)) - -# [6.13.0](https://github.com/instructure/instructure-ui/compare/v6.12.0...v6.13.0) (2019-09-24) - -### Bug Fixes - -- **instui-config:** fix v7 codemod paths ([918d38f](https://github.com/instructure/instructure-ui/commit/918d38f)) - -### Features - -- **ui-elements,ui-pill:** add ui-pill package for the Pill Component ([4a71024](https://github.com/instructure/instructure-ui/commit/4a71024)) - -# [6.12.0](https://github.com/instructure/instructure-ui/compare/v6.11.0...v6.12.0) (2019-09-17) - -**Note:** Version bump only for package @instructure/instui-config - -# [6.11.0](https://github.com/instructure/instructure-ui/compare/v6.10.0...v6.11.0) (2019-09-16) - -### Features - -- **ui-a11y-content,ui-a11y:** add ui-a11y-content package ([cb49c7a](https://github.com/instructure/instructure-ui/commit/cb49c7a)) -- **ui-avatar,ui-elements:** add ui-avatar package for Avatar component ([34a6001](https://github.com/instructure/instructure-ui/commit/34a6001)) -- **ui-elements,ui-img:** add ui-img package for Img Component ([c2e4e7d](https://github.com/instructure/instructure-ui/commit/c2e4e7d)) -- **ui-elements,ui-text:** add ui-text Package for Text Component ([5bdb65a](https://github.com/instructure/instructure-ui/commit/5bdb65a)) -- **ui-flex:** add ui-flex package ([98730ff](https://github.com/instructure/instructure-ui/commit/98730ff)) -- **ui-popover:** Add ui-popover package ([62c1165](https://github.com/instructure/instructure-ui/commit/62c1165)) -- **ui-view:** add ui-view Package for View Component ([7799577](https://github.com/instructure/instructure-ui/commit/7799577)) - -# [6.10.0](https://github.com/instructure/instructure-ui/compare/v6.9.0...v6.10.0) (2019-08-27) - -**Note:** Version bump only for package @instructure/instui-config - -# [6.9.0](https://github.com/instructure/instructure-ui/compare/v6.8.1...v6.9.0) (2019-08-07) - -**Note:** Version bump only for package @instructure/instui-config - -## [6.8.1](https://github.com/instructure/instructure-ui/compare/v6.8.0...v6.8.1) (2019-08-02) - -**Note:** Version bump only for package @instructure/instui-config - -# [6.8.0](https://github.com/instructure/instructure-ui/compare/v6.7.0...v6.8.0) (2019-07-31) - -**Note:** Version bump only for package @instructure/instui-config - -# [6.7.0](https://github.com/instructure/instructure-ui/compare/v6.6.0...v6.7.0) (2019-07-15) - -**Note:** Version bump only for package @instructure/instui-config - -# [6.6.0](https://github.com/instructure/instructure-ui/compare/v6.5.0...v6.6.0) (2019-07-03) - -**Note:** Version bump only for package @instructure/instui-config - -# [6.5.0](https://github.com/instructure/instructure-ui/compare/v6.4.0...v6.5.0) (2019-07-01) - -### Bug Fixes - -- **instui-config,ui-tabs:** deprecate focus prop and add shouldFocusOnRender ([6f26701](https://github.com/instructure/instructure-ui/commit/6f26701)) -- **ui-number-input:** update NumberInput prop names ([7cad427](https://github.com/instructure/instructure-ui/commit/7cad427)) -- **ui-tabs:** tabbable content in a tab panel should be tabbable ([4753bd3](https://github.com/instructure/instructure-ui/commit/4753bd3)) -- **ui-text-input:** update TextInput prop names ([3aedab8](https://github.com/instructure/instructure-ui/commit/3aedab8)) - -### Features - -- **instui-config,ui-date-input:** dateInput change label prop to renderLabel ([a172999](https://github.com/instructure/instructure-ui/commit/a172999)) - -# [6.4.0](https://github.com/instructure/instructure-ui/compare/v6.3.0...v6.4.0) (2019-06-13) - -### Features - -- **ui-alerts:** add renderCloseButtonLabel to Alert ([4684530](https://github.com/instructure/instructure-ui/commit/4684530)) - -# [6.3.0](https://github.com/instructure/instructure-ui/compare/v6.2.0...v6.3.0) (2019-05-28) - -**Note:** Version bump only for package @instructure/instui-config - -# [6.2.0](https://github.com/instructure/instructure-ui/compare/v6.1.0...v6.2.0) (2019-05-13) - -**Note:** Version bump only for package @instructure/instui-config - -# [6.1.0](https://github.com/instructure/instructure-ui/compare/v6.0.0...v6.1.0) (2019-05-09) - -**Note:** Version bump only for package @instructure/instui-config - -# [6.0.0](https://github.com/instructure/instructure-ui/compare/v5.52.3...v6.0.0) (2019-05-03) - -### Features - -- remove deprecated packages/props ([1d8813c](https://github.com/instructure/instructure-ui/commit/1d8813c)) -- **canvas-theme,canvas-high-contrast-theme:** separate canvas theme packages ([ef2e1d0](https://github.com/instructure/instructure-ui/commit/ef2e1d0)) -- **instui-cli,instui-config,ui-codemods:** add upgrade command ([a805ed6](https://github.com/instructure/instructure-ui/commit/a805ed6)) -- **instui-cli,instui-config,ui-scripts:** Allow upgrade to specific version ([55c3c16](https://github.com/instructure/instructure-ui/commit/55c3c16)) -- **instui-config,ui-codemods:** configure codemod updates for simple prop values ([4049122](https://github.com/instructure/instructure-ui/commit/4049122)) -- **instui-config,ui-forms:** add deprecation + codemod for old TextInput to TextInputControlled ([eb83528](https://github.com/instructure/instructure-ui/commit/eb83528)) -- **ui-dom-utils,ui-react-utils,ui-color-utils:** new utils packages ([03e8ee2](https://github.com/instructure/instructure-ui/commit/03e8ee2)) - -### Performance Improvements - -- **ui-icons,ui-icons-build:** remove default exports for React icons ([95195ee](https://github.com/instructure/instructure-ui/commit/95195ee)) - -### BREAKING CHANGES - -- - ui-core package has been removed - -## [5.52.3](https://github.com/instructure/instructure-ui/compare/v5.52.2...v5.52.3) (2019-04-25) - -**Note:** Version bump only for package @instructure/instui-config - -## [5.52.2](https://github.com/instructure/instructure-ui/compare/v5.52.1...v5.52.2) (2019-04-17) - -**Note:** Version bump only for package @instructure/instui-config - -## [5.52.1](https://github.com/instructure/instructure-ui/compare/v5.52.0...v5.52.1) (2019-04-08) - -**Note:** Version bump only for package @instructure/instui-config - -See the instructure-ui mono-repo [change log](#CHANGELOG) for past changes. diff --git a/packages/instui-config/README.md b/packages/instui-config/README.md deleted file mode 100644 index f7808b2ea9..0000000000 --- a/packages/instui-config/README.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -category: packages ---- - -## instui-config - -[![npm][npm]][npm-url] -[![MIT License][license-badge]][license] -[![Code of Conduct][coc-badge]][coc] - -A package containing Instructure UI specific configuration data for operations -such as upgrades and codemod scripts. - -### Installation - -```sh -npm install @instructure/instui-config -``` - -[npm]: https://img.shields.io/npm/v/@instructure/instui-config.svg -[npm-url]: https://npmjs.com/package/@instructure/instui-config -[license-badge]: https://img.shields.io/npm/l/instructure-ui.svg?style=flat-square -[license]: https://github.com/instructure/instructure-ui/blob/master/LICENSE.md -[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square -[coc]: https://github.com/instructure/instructure-ui/blob/master/CODE_OF_CONDUCT.md diff --git a/packages/instui-config/codemod-configs/parser-config.json b/packages/instui-config/codemod-configs/parser-config.json deleted file mode 100644 index 381f3b11bd..0000000000 --- a/packages/instui-config/codemod-configs/parser-config.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "sourceType": "module", - "allowImportExportEverywhere": true, - "allowReturnOutsideFunction": true, - "startLine": 1, - "tokens": true, - "plugins": [ - [ - "flow", - { - "all": true - } - ], - "flowComments", - "jsx", - "asyncGenerators", - "bigInt", - "classProperties", - "classPrivateProperties", - "classPrivateMethods", - "decorators-legacy", - "doExpressions", - "dynamicImport", - "exportDefaultFrom", - "exportNamespaceFrom", - "functionBind", - "functionSent", - "importMeta", - "logicalAssignment", - "nullishCoalescingOperator", - "numericSeparator", - "objectRestSpread", - "optionalCatchBinding", - "optionalChaining", - [ - "pipelineOperator", - { - "proposal": "minimal" - } - ], - "throwExpressions" - ] -} \ No newline at end of file diff --git a/packages/instui-config/codemod-configs/v5/imports.config.js b/packages/instui-config/codemod-configs/v5/imports.config.js deleted file mode 100644 index 89ae130142..0000000000 --- a/packages/instui-config/codemod-configs/v5/imports.config.js +++ /dev/null @@ -1,167 +0,0 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2015 - present Instructure, Inc. - * - * 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. - */ - -module.exports = { - transformDefaults: { - importType: 'default' - }, - transforms: [ - { - where: { - importPattern: '^instructure-ui/lib/components' - }, - transform: { - importPath: (importPath, parsedImport) => { - let { moduleName } = parsedImport - - if (moduleName === 'Typography') { - moduleName = 'Text' - } - - return `@instructure/ui-core/lib/components/${moduleName}` - } - } - }, - { - where: { - importPattern: '^instructure-ui/lib/themes' - }, - transform: { - importPath: (importPath) => - importPath.replace( - new RegExp('^instructure-ui/lib/themes'), - '@instructure/ui-themes/lib' - ) - } - }, - { - where: { - importPattern: '^instructure-ui/lib/themeable' - }, - transform: { - importPath: (importPath) => - importPath.replace( - new RegExp('^instructure-ui/lib/themeable'), - '@instructure/ui-themeable/lib' - ) - } - }, - { - where: { - importPattern: '^instructure-ui/lib/util/dom' - }, - transform: { - importPath: (importPath) => - importPath.replace( - new RegExp('^instructure-ui/lib/util/dom'), - '@instructure/ui-utils/lib/dom' - ) - } - }, - { - where: { - importPattern: '^instructure-ui/lib/util', - moduleName: 'BaseTransition' - }, - transform: { - importPath: '@instructure/ui-motion/lib/components/BaseTransition' - } - }, - { - where: { - importPattern: '^instructure-ui/lib/util', - moduleName: 'hasVisibleChildren' - }, - transform: { - importPath: '@instructure/ui-a11y/lib/utils/hasVisibleChildren' - } - }, - { - where: { - importPattern: '^instructure-ui/lib/util', - moduleName: 'color' - }, - transform: { - importPath: '@instructure/ui-themeable/lib/utils/color' - } - }, - { - where: { - importPattern: '^instructure-ui/lib/util', - moduleName: 'handleMouseOverOut' - }, - transform: { - importPath: '@instructure/ui-utils/lib/dom/handleMouseOverOut' - } - }, - { - where: { - importPattern: '^instructure-ui/lib/util', - moduleNames: [ - 'capitalizeFirstLetter', - 'createChainedFunction', - 'debounce', - 'mergeDeep', - 'shallowEqual', - 'warning' - ] - }, - transform: { - importPath: (importPath, { moduleName }) => - `@instructure/ui-utils/lib/${moduleName}` - } - }, - { - where: { - importPattern: '^instructure-ui/lib/util', - moduleNames: [ - 'ComponentIdentifier', - 'containerQuery', - 'CustomPropTypes', - 'deprecated', - 'ensureSingleChild', - 'getDisplayName', - 'getElementType', - 'matchComponentTypes', - 'passthroughProps', - 'safeCloneElement', - 'windowMessageListener' - ] - }, - transform: { - importPath: (importPath, { moduleName }) => - `@instructure/ui-utils/lib/react/${moduleName}` - } - }, - { - where: { - packageName: 'instructure-icons' - }, - transform: { - importType: 'named', - importPath: '@instructure/ui-icons' - } - } - ] -} diff --git a/packages/instui-config/codemod-configs/v5/propNames.config.json b/packages/instui-config/codemod-configs/v5/propNames.config.json deleted file mode 100644 index e99b500acf..0000000000 --- a/packages/instui-config/codemod-configs/v5/propNames.config.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "Alert": { - "5.0.0": [ - { "old": "onClose", "new": "onDismiss" }, - { "old": "transitionType", "new": "transition", "values": [ - { "old": "none", "new": false }, - { "old": "fade", "new": true } - ]}, - { "old": "isOpen", "new": "open" }, - { "old": "dismissable", "new": null } - ] - }, - "Modal": { - "5.0.0": [ - { "old": "onReady", "new": "onOpen" }, - { "old": "onRequestClose", "new": "onDismiss" }, - { "old": "onAfterOpen", "new": "onOpen" }, - { "old": "isOpen", "new": "open" }, - { "old": "getDefaultFocusElement", "new": "defaultFocusElement" }, - { "old": "closeButtonVariant", "new": null }, - { "old": "padding", "new": null } - ] - }, - "Overlay": { - "5.0.0": [ - { "old": "onReady", "new": "onOpen" }, - { "old": "isOpen", "new": "open" }, - { "old": "onRequestClose", "new": "onDismiss" }, - { "old": "onAfterOpen", "new": "onOpen" }, - { "old": "shouldCloseOnClick", "new": "shouldCloseOnDocumentClick" } - ] - }, - "Popover": { - "5.0.0": [ - { "old": "renderOffscreen", "new": "shouldRenderOffscreen" }, - { "old": "rootClose", "new": "shouldCloseOnDocumentClick" } - ] - }, - "PopoverMenu": { - "5.0.0": [{ "old": "focusTriggerOnClose", "new": "shouldFocusTriggerOnClose" }] - }, - "Portal": { - "5.0.0": [ - { "old": "onReady", "new": "onOpen" }, - { "old": "container", "new": "mountNode" }, - { "old": "isOpen", "new": "open" } - ] - }, - "Table": { - "5.0.0": [ - { "old": "tableData", "new": null }, - { "old": "rowHeaders", "new": null }, - { "old": "colHeaders", "new": null } - ] - }, - "Tray": { - "5.0.0": [ - { "old": "onReady", "new": "onOpen" }, - { "old": "onRequestClose", "new": "onDismiss" }, - { "old": "onAfterOpen", "new": "onOpen" }, - { "old": "isOpen", "new": "open" }, - { "old": "getDefaultFocusElement", "new": "defaultFocusElement" }, - { "old": "trapFocus", "new": "shouldContainFocus" } - ] - } -} diff --git a/packages/instui-config/codemod-configs/v6/imports.config.js b/packages/instui-config/codemod-configs/v6/imports.config.js deleted file mode 100644 index 2bc6e35b23..0000000000 --- a/packages/instui-config/codemod-configs/v6/imports.config.js +++ /dev/null @@ -1,734 +0,0 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2015 - present Instructure, Inc. - * - * 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. - */ - -const generateRemoveComponentsDirTransforms = (packages = []) => { - const transforms = [] - - const generateTransform = (packageName, sourceDir) => { - const importPattern = `^${packageName}/${sourceDir}/components` - - return { - where: { - importPattern - }, - transform: { - importType: undefined, - importPath: (importPath) => - importPath.replace( - new RegExp(importPattern), - `${packageName}/${sourceDir}` - ) - } - } - } - - packages.forEach((packageName) => { - transforms.push(generateTransform(packageName, 'lib')) - transforms.push(generateTransform(packageName, 'es')) - }) - - return transforms -} - -module.exports = { - transformDefaults: { - importType: 'named' - }, - transforms: [ - { - // Remove the `components` portion of the path for any locators - where: { - importPattern: '^@instructure/ui-.*/(lib|es)/components/.*/locator$' - }, - transform: { - importType: 'default', - importPath: (importPath) => - importPath.replace(new RegExp('/components/'), '/') - } - }, - { - where: { - moduleName: 'Autocomplete', - packageName: '@instructure/ui-core' - }, - transform: { - moduleName: 'Select', - importPath: '@instructure/ui-forms' - } - }, - { - where: { - moduleNames: [ - 'Checkbox', - 'CheckboxFacade', - 'ToggleFacade', - 'CheckboxGroup', - 'DateInput', - 'DatePicker', - 'FileDrop', - 'RadioInput', - 'RadioInputGroup', - 'RangeInput', - 'Select', - 'TextArea', - 'TextInput', - 'TimeInput' - ], - packageNames: ['@instructure/ui-core', '@instructure/ui-forms'] - }, - transform: { - importPath: '@instructure/ui-forms' - } - }, - { - where: { - moduleName: 'NumberInput', - packageNames: [ - '@instructure/ui-core', - '@instructure/ui-forms', - '@instructure/ui-number-input' - ] - }, - transform: { - importPath: '@instructure/ui-number-input' - } - }, - { - where: { - moduleName: 'ApplyTheme', - packageNames: ['@instructure/ui-core', '@instructure/ui-themeable'] - }, - transform: { - importPath: '@instructure/ui-themeable' - } - }, - { - where: { - moduleName: 'ApplyLocale', - packageNames: ['@instructure/ui-core', '@instructure/ui-i18n'] - }, - transform: { - importPath: '@instructure/ui-i18n' - } - }, - { - where: { - moduleName: 'Alert', - packageNames: ['@instructure/ui-core', '@instructure/ui-alerts'] - }, - transform: { - importPath: '@instructure/ui-alerts' - } - }, - { - where: { - moduleNames: [ - 'Avatar', - 'Badge', - 'Heading', - 'Link', - 'List', - 'ListItem', - 'MetricsList', - 'MetricsListItem', - 'Pill', - 'Progress', - 'Rating', - 'Spinner', - 'Table', - 'Tag', - 'Text' - ], - packageNames: ['@instructure/ui-core', '@instructure/ui-elements'] - }, - transform: { - importPath: '@instructure/ui-elements' - } - }, - { - where: { - moduleName: 'Image', - packageName: '@instructure/ui-core' - }, - transform: { - moduleName: 'Img', - importPath: '@instructure/ui-elements' - } - }, - { - where: { - moduleName: 'Billboard', - packageNames: ['@instructure/ui-core', '@instructure/ui-billboard'] - }, - transform: { - importPath: '@instructure/ui-billboard' - } - }, - { - where: { - moduleNames: ['Breadcrumb', 'BreadcrumbLink'], - packageNames: ['@instructure/ui-core', '@instructure/ui-breadcrumb'] - }, - transform: { - importPath: '@instructure/ui-breadcrumb' - } - }, - { - where: { - moduleNames: ['Button', 'CloseButton'], - packageNames: ['@instructure/ui-core', '@instructure/ui-buttons'] - }, - transform: { - importPath: '@instructure/ui-buttons' - } - }, - { - where: { - moduleName: 'Container', - packageNames: ['@instructure/ui-core', '@instructure/ui-container'] - }, - transform: { - moduleName: 'View', - importPath: '@instructure/ui-layout' - } - }, - { - where: { - moduleName: 'ContextBox', - packageNames: ['@instructure/ui-core', '@instructure/ui-elements'] - }, - transform: { - moduleName: 'ContextView', - importPath: '@instructure/ui-layout' - } - }, - { - where: { - moduleNames: [ - 'Grid', - 'GridCol', - 'GridRow', - 'Media', - 'Position', - 'PositionContent', - 'PositionTarget', - 'ContextView', - 'DrawerLayout', - 'DrawerContent', - 'Flex', - 'FlexItem', - 'Media', - 'Responsive', - 'View' - ], - packageNames: ['@instructure/ui-core', '@instructure/ui-layout'] - }, - transform: { - importPath: '@instructure/ui-layout' - } - }, - { - where: { - moduleNames: [ - 'AccessibleContent', - 'Dialog', - 'PresentationContent', - 'ScreenReaderContent', - 'findFocusable', - 'findTabbable', - 'FocusRegion', - 'FocusRegionManager', - 'KeyboardFocusRegion', - 'ScreenReaderFocusRegion', - 'scopeTab', - 'hasVisibleChildren' - ], - packageNames: ['@instructure/ui-core', '@instructure/ui-a11y'] - }, - transform: { - importPath: '@instructure/ui-a11y' - } - }, - { - where: { - moduleNames: ['InlineSVG', 'SVGIcon'], - packageNames: ['@instructure/ui-core', '@instructure/ui-svg-images'] - }, - transform: { - importPath: '@instructure/ui-svg-images' - } - }, - { - where: { - moduleNames: [ - 'Mask', - 'Overlay', - 'Modal', - 'ModalHeader', - 'ModalBody', - 'ModalFooter', - 'Popover', - 'PopoverTrigger', - 'PopoverContent', - 'Tooltip', - 'Tray' - ], - packageNames: ['@instructure/ui-core', '@instructure/ui-overlays'] - }, - transform: { - importPath: '@instructure/ui-overlays' - } - }, - { - where: { - moduleName: 'PopoverMenu', - packageName: '@instructure/ui-core' - }, - transform: { - moduleNames: 'Menu', - importPath: '@instructure/ui-menu' - } - }, - { - where: { - moduleName: 'Portal', - packageNames: ['@instructure/ui-core', '@instructure/ui-portal'] - }, - transform: { - importPath: '@instructure/ui-portal' - } - }, - { - where: { - moduleNames: ['TabList', 'TabPanel'], - packageNames: ['@instructure/ui-core', '@instructure/ui-tabs'] - }, - transform: { - importPath: '@instructure/ui-tabs' - } - }, - { - where: { - moduleName: 'ToggleDetails', - packageNames: ['@instructure/ui-core', '@instructure/ui-toggle-details'] - }, - transform: { - importPath: '@instructure/ui-toggle-details' - } - }, - { - where: { - moduleName: 'Transition', - packageName: '@instructure/ui-core' - }, - transform: { - importPath: '@instructure/ui-motion' - } - }, - { - where: { - moduleName: 'TreeBrowser', - packageNames: ['@instructure/ui-core', '@instructure/ui-tree-browser'] - }, - transform: { - importPath: '@instructure/ui-tree-browser' - } - }, - { - where: { - moduleName: 'Pagination', - packageName: '@instructure/ui-core' - }, - transform: { - importPath: '@instructure/ui-pagination' - } - }, - { - where: { - moduleNames: ['Menu', 'MenuItem'], - packageNames: ['@instructure/ui-core', '@instructure/ui-menu'] - }, - transform: { - importPath: '@instructure/ui-menu' - } - }, - { - where: { - moduleNames: [ - 'FormField', - 'FormFieldLabel', - 'FormFieldMessage', - 'FormFieldMessages', - 'FormFieldLayout', - 'FormFieldGroup', - 'FormPropTypes' - ], - packageNames: [ - '@instructure/ui-core', - '@instructure/ui-forms', - '@instructure/ui-form-field' - ] - }, - transform: { - importPath: '@instructure/ui-form-field' - } - }, - { - where: { - moduleName: 'hasVisibleChildren', - packageNames: ['@instructure/ui-core', '@instructure/ui-a11y'] - }, - transform: { - importPath: '@instructure/ui-a11y' - } - }, - { - where: { - moduleName: 'calculateElementPosition', - packageName: '@instructure/ui-utils' - }, - transform: { - importPath: '@instructure/ui-layout' - } - }, - { - where: { - moduleName: 'debounce', - packageName: '@instructure/ui-utils' - }, - transform: { - importPath: '@instructure/debounce' - } - }, - { - where: { - moduleName: 'CustomPropTypes', - packageName: '@instructure/ui-utils' - }, - transform: { - importType: 'default', - importPath: '@instructure/ui-prop-types' - } - }, - { - where: { - importPattern: '^@instructure/ui-icons/(lib|es)/Line/(.*)$' - }, - transform: { - moduleName: (moduleName) => `${moduleName}Line`, - importPath: '@instructure/ui-icons' - } - }, - { - where: { - importPattern: '^@instructure/ui-icons/(lib|es)/Solid/(.*)$' - }, - transform: { - moduleName: (moduleName) => `${moduleName}Solid`, - importPath: '@instructure/ui-icons' - } - }, - { - where: { - importPattern: '^@instructure/ui-themes/(lib|es)/canvas(/base)?$' - }, - transform: { - importType: undefined, // Leave importType undefined to preserve whatever import style was already being used here - importPath: '@instructure/canvas-theme' - } - }, - { - where: { - importPattern: - '^@instructure/ui-themes/(lib|es)/canvas/(high-contrast|a11y)$' - }, - transform: { - importType: undefined, - importPath: '@instructure/canvas-high-contrast-theme' - } - }, - { - where: { - packageName: '@instructure/ui-utils', - moduleNames: [ - 'ComponentIdentifier', - 'callRenderProp', - 'deprecated', - 'ensureSingleChild', - 'experimental', - 'getDisplayName', - 'getElementType', - 'matchComponentTypes', - 'omitProps', - 'pickProps', - 'safeCloneElement', - 'windowMessageListener' - ] - }, - transform: { - importPath: '@instructure/ui-react-utils' - } - }, - { - where: { - packageNames: ['@instructure/ui-utils', '@instructure/ui-i18n'], - moduleNames: ['DateTime', 'Locale'] - }, - transform: { - importPath: '@instructure/ui-i18n' - } - }, - { - where: { - packageName: '@instructure/ui-utils', - moduleNames: ['findTabbable', 'scopeTab'] - }, - transform: '@instructure/ui-a11y' - }, - { - where: { - packageName: '@instructure/ui-utils', - moduleNames: [ - 'InputModeListener', - 'addEventListener', - 'addPositionChangeListener', - 'addResizeListener', - 'calculateElementPosition', - 'canUseDOM', - 'contains', - 'containsActiveElement', - 'elementMatches', - 'findDOMNode', - 'generateElementId', - 'getActiveElement', - 'getBoundingClientRect', - 'getClassList', - 'getComputedStyle', - 'getFontSize', - 'getOffsetParents', - 'getScrollParents', - 'handleMouseOverOut', - 'isActiveElement', - 'isVisible', - 'matchMedia', - 'ownerDocument', - 'ownerWindow', - 'requestAnimationFrame', - 'supportsObjectFit', - 'transformSelection' - ] - }, - transform: { - importPath: '@instructure/ui-dom-utils' - } - }, - { - where: { - packageName: '@instructure/ui-themeable', - moduleNames: ['alpha', 'darken', 'lighten', 'contrast', 'isValid'] - }, - transform: { - importPath: '@instructure/ui-color-utils' - } - }, - { - where: { - packageName: '@instructure/ui-calendar', - moduleName: 'Calendar' - }, - transform: { - importPath: '@instructure/ui-calendar' - } - }, - { - where: { - packageName: '@instructure/ui-code-editor', - moduleName: 'CodeEditor' - }, - transform: { - importPath: '@instructure/ui-code-editor' - } - }, - { - where: { - packageName: '@instructure/ui-date-input', - moduleName: 'DateInput' - }, - transform: { - importPath: '@instructure/ui-date-input' - } - }, - { - where: { - packageName: '@instructure/ui-editable', - moduleNames: ['Editable', 'InPlaceEdit'] - }, - transform: { - importPath: '@instructure/ui-editable' - } - }, - { - where: { - packageName: '@instructure/ui-focusable', - moduleNames: ['Focusable', 'FocusableView'] - }, - transform: { - importPath: '@instructure/ui-focusable' - } - }, - { - where: { - packageName: '@instructure/ui-i18n', - moduleNames: [ - 'I18nPropTypes', - 'getTextDirection', - 'Decimal', - 'bidirectional', - 'ApplyTextDirection' - ] - }, - transform: { - importPath: '@instructure/ui-i18n' - } - }, - { - where: { - packageName: '@instructure/ui-i18n', - moduleName: 'TextDirectionContextTypes' - }, - transform: { - moduleName: 'TextDirectionContext', - importPath: '@instructure/ui-i18n' - } - }, - { - where: { - packageName: '@instructure/ui-menu', - moduleName: 'MenuContextTypes' - }, - transform: { - moduleName: 'MenuContext', - importPath: '@instructure/ui-i18n' - } - }, - { - where: { - packageName: '@instructure/ui-pages', - moduleName: 'Pages' - }, - transform: { - importPath: '@instructure/ui-pages' - } - }, - { - where: { - packageName: '@instructure/ui-selectable', - moduleName: 'Selectable' - }, - transform: { - importPath: '@instructure/ui-selectable' - } - }, - { - where: { - packageName: '@instructure/ui-table', - moduleName: 'Table' - }, - transform: { - importPath: '@instructure/ui-table' - } - }, - { - where: { - packageName: '@instructure/ui-text-input', - moduleName: 'TextInput' - }, - transform: { - importPath: '@instructure/ui-text-input' - } - }, - { - where: { - packageName: '@instructure/ui-themeable', - moduleNames: [ - 'ThemeablePropTypes', - 'applyCustomMediaToCss', - 'applyVariablesToNode', - 'customPropertiesSupported', - 'formatVariableName', - 'formatVariableNames', - 'getCssText', - 'getShorthandPropValue', - 'makeThemeVars', - 'mirrorShorthandEdges', - 'mirrorShorthandCorners', - 'parseCss', - 'pickOverrides', - 'replaceValuesWithVariableNames', - 'scopeStylesToNode', - 'setTextDirection', - 'transformCss' - ] - }, - transform: { - importPath: '@instructure/ui-themeable' - } - }, - { - where: { - packageName: '@instructure/ui-toggle-details', - moduleNames: ['Expandable', 'ToggleGroup'] - }, - transform: { - importPath: '@instructure/ui-toggle-details' - } - }, - { - where: { - importPattern: '^@instructure/ui-prop-types/(lib|es)/' - }, - transform: { - importPath: '@instructure/ui-prop-types' - } - }, - // These transforms account for any modules that are not exported in the upgraded packages. The import path - // to said modules will have changed because the `components` dir was removed. - ...generateRemoveComponentsDirTransforms([ - '@instructure/ui-calendar', - '@instructure/ui-code-editor', - '@instructure/ui-elements', - '@instructure/ui-forms', - '@instructure/ui-layout', - '@instructure/ui-menu', - '@instructure/ui-motion', - '@instructure/ui-navigation', - '@instructure/ui-overlays', - '@instructure/ui-pages', - '@instructure/ui-pagination', - '@instructure/ui-table', - '@instructure/ui-tabs', - '@instructure/ui-tree-browser' - ]) - ] -} diff --git a/packages/instui-config/codemod-configs/v6/propNames.config.json b/packages/instui-config/codemod-configs/v6/propNames.config.json deleted file mode 100644 index 1de6bac472..0000000000 --- a/packages/instui-config/codemod-configs/v6/propNames.config.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "CodeEditor": { - "6.0.0": [ - { "old": "code", "new": "value" } - ] - }, - "Dialog": { - "6.0.0": [ - { "old": "applicationElement", "new": null } - ] - }, - "Img": { - "6.0.0": [ - { "old": "cover", "new": "constrain", "values": [ - { "old": false }, - { "old": true, "new": "cover" } - ]} - ] - }, - "Mask": { - "6.0.0": [ - { "old": "fullScreen", "new": "fullscreen" } - ] - }, - "Menu": { - "6.0.0": [ - { "old": "title", "new": "label" }, - { "old": "labelledBy", "new": "aria-labelledby" }, - { "old": "controls", "new": "aria-controls" } - ] - }, - "MenuItem": { - "6.0.0": [ - { "old": "active", "new": null } - ] - }, - "Modal": { - "6.0.0": [ - { "old": "closeButtonLabel", "new": null }, - { "old": "closeButtonRef", "new": null }, - { "old": "applicationElement", "new": null }, - { "old": "shouldCloseOnOverlayClick", "new": "shouldCloseOnDocumentClick" } - ] - }, - "Popover": { - "6.0.0": [ - { "old": "closeButtonLabel", "new": null }, - { "old": "closeButtonRef", "new": null }, - { "old": "applicationElement", "new": null } - ] - }, - "Tooltip": { - "6.0.0": [ - { "old": "size", "new": null } - ] - }, - "Tray": { - "6.0.0": [ - { "old": "closeButtonLabel", "new": null }, - { "old": "closeButtonRef", "new": null }, - { "old": "closeButtonVariant", "new": null }, - { "old": "applicationElement", "new": null } - ] - } -} diff --git a/packages/instui-config/codemod-configs/v7/imports.config.js b/packages/instui-config/codemod-configs/v7/imports.config.js deleted file mode 100644 index 611302e815..0000000000 --- a/packages/instui-config/codemod-configs/v7/imports.config.js +++ /dev/null @@ -1,1031 +0,0 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2015 - present Instructure, Inc. - * - * 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. - */ - -module.exports = ({ isMetaComponentPackageMigration = false } = {}) => { - const getImportPath = (importPath) => { - return isMetaComponentPackageMigration ? '@instructure/ui' : importPath - } - - let transforms = [ - { - where: { - packageName: '@instructure/ui-elements', - moduleName: 'Avatar' - }, - transform: { - importPath: getImportPath('@instructure/ui-avatar') - } - }, - { - where: { - packageName: '@instructure/ui-elements', - moduleName: 'Badge' - }, - transform: { - importPath: getImportPath('@instructure/ui-badge') - } - }, - { - where: { - packageName: '@instructure/ui-elements', - moduleNames: ['MetricsList', 'MetricsListItem'] - }, - transform: { - importPath: getImportPath('@instructure/ui-metric') - } - }, - { - where: { - packageName: '@instructure/ui-elements', - moduleNames: ['List', 'ListItem'] - }, - transform: { - importPath: getImportPath('@instructure/ui-list') - } - }, - { - where: { - packageName: '@instructure/ui-elements', - moduleName: 'Pill' - }, - transform: { - importPath: getImportPath('@instructure/ui-pill') - } - }, - { - where: { - packageName: '@instructure/ui-elements', - moduleName: 'Progress' - }, - transform: { - importPath: getImportPath('@instructure/ui-progress') - } - }, - { - where: { - packageName: '@instructure/ui-elements', - moduleName: 'Rating' - }, - transform: { - importPath: getImportPath('@instructure/ui-rating') - } - }, - { - where: { - packageName: '@instructure/ui-elements', - moduleName: 'Img' - }, - transform: { - importPath: getImportPath('@instructure/ui-img') - } - }, - { - where: { - packageName: '@instructure/ui-elements', - moduleName: 'Text' - }, - transform: { - importPath: getImportPath('@instructure/ui-text') - } - }, - { - where: { - packageName: '@instructure/ui-elements', - moduleName: 'TruncateText' - }, - transform: { - importPath: getImportPath('@instructure/ui-truncate-text') - } - }, - { - where: { - packageName: '@instructure/ui-elements', - moduleName: 'Link' - }, - transform: { - importPath: getImportPath('@instructure/ui-link') - } - }, - { - where: { - packageName: '@instructure/ui-elements', - moduleName: 'Heading' - }, - transform: { - importPath: getImportPath('@instructure/ui-heading') - } - }, - { - where: { - packageName: '@instructure/ui-elements', - moduleName: 'Tag' - }, - transform: { - importPath: getImportPath('@instructure/ui-tag') - } - }, - { - where: { - packageName: '@instructure/ui-elements', - moduleName: 'Spinner' - }, - transform: { - importPath: getImportPath('@instructure/ui-spinner') - } - }, - { - where: { - packageName: '@instructure/ui-layout', - moduleName: 'Media' - }, - transform: { - moduleName: 'Byline', - importPath: getImportPath('@instructure/ui-byline') - } - }, - { - where: { - packageName: '@instructure/ui-layout', - moduleNames: ['View', 'ContextView'] - }, - transform: { - importPath: getImportPath('@instructure/ui-view') - } - }, - { - where: { - packageName: '@instructure/ui-layout', - moduleNames: ['Position', 'PositionContent', 'PositionTarget'] - }, - transform: { - importPath: getImportPath('@instructure/ui-position') - } - }, - { - where: { - packageName: '@instructure/ui-layout', - moduleNames: [ - 'calculateElementPosition', - 'executeMirrorFunction', - 'mirrorHorizontalPlacement', - 'mirrorPlacement', - 'parsePlacement' - ] - }, - transform: { - importPath: '@instructure/ui-position' - } - }, - { - where: { - packageName: '@instructure/ui-layout', - moduleNames: ['DrawerLayout', 'DrawerContent'] - }, - transform: { - importPath: getImportPath('@instructure/ui-drawer-layout') - } - }, - { - where: { - packageName: '@instructure/ui-layout', - moduleName: 'Responsive' - }, - transform: { - importPath: getImportPath('@instructure/ui-responsive') - } - }, - { - where: { - packageName: '@instructure/ui-layout', - moduleNames: [ - 'addElementQueryMatchListener', - 'addMediaQueryMatchListener', - 'parseQuery', - 'jsonToMediaQuery' - ] - }, - transform: { - importPath: '@instructure/ui-responsive' - } - }, - { - where: { - packageName: '@instructure/ui-layout', - moduleNames: ['Flex', 'FlexItem'] - }, - transform: { - importPath: getImportPath('@instructure/ui-flex') - } - }, - { - where: { - packageName: '@instructure/ui-layout', - moduleNames: ['Grid', 'GridCol', 'GridRow'] - }, - transform: { - importPath: getImportPath('@instructure/ui-grid') - } - }, - { - where: { - packageName: '@instructure/ui-forms', - moduleName: 'TextInput' - }, - transform: { - importPath: getImportPath('@instructure/ui-text-input') - } - }, - { - where: { - packageName: '@instructure/ui-forms', - moduleNames: [ - 'Checkbox', - 'CheckboxFacade', - 'ToggleFacade', - 'CheckboxGroup' - ] - }, - transform: { - importPath: getImportPath('@instructure/ui-checkbox') - } - }, - { - where: { - packageName: '@instructure/ui-forms', - moduleNames: ['RadioInput', 'RadioInputGroup'] - }, - transform: { - importPath: getImportPath('@instructure/ui-radio-input') - } - }, - { - where: { - packageName: '@instructure/ui-forms', - moduleName: 'RangeInput' - }, - transform: { - importPath: getImportPath('@instructure/ui-range-input') - } - }, - { - where: { - packageName: '@instructure/ui-forms', - moduleName: 'TextArea' - }, - transform: { - importPath: getImportPath('@instructure/ui-text-area') - } - }, - { - where: { - packageName: '@instructure/ui-forms', - moduleName: 'FileDrop' - }, - transform: { - importPath: getImportPath('@instructure/ui-file-drop') - } - }, - { - where: { - packageName: '@instructure/ui-forms', - moduleName: 'TimeInput' - }, - transform: { - moduleName: 'TimeSelect', - importPath: getImportPath('@instructure/ui-time-select') - } - }, - { - where: { - packageName: '@instructure/ui-toggle-details', - moduleName: 'Expandable' - }, - transform: { - importPath: getImportPath('@instructure/ui-expandable') - } - }, - { - where: { - packageName: '@instructure/ui-overlays', - moduleNames: ['Popover', 'PopoverTrigger', 'PopoverContent'] - }, - transform: { - importPath: getImportPath('@instructure/ui-popover') - } - }, - { - where: { - packageName: '@instructure/ui-overlays', - moduleName: 'Tooltip' - }, - transform: { - importPath: getImportPath('@instructure/ui-tooltip') - } - }, - { - where: { - packageName: '@instructure/ui-overlays', - moduleNames: ['Modal', 'ModalHeader', 'ModalBody', 'ModalFooter'] - }, - transform: { - importPath: getImportPath('@instructure/ui-modal') - } - }, - { - where: { - packageName: '@instructure/ui-overlays', - moduleName: 'Tray' - }, - transform: { - importPath: getImportPath('@instructure/ui-tray') - } - }, - { - where: { - packageName: '@instructure/ui-a11y', - moduleNames: [ - 'AccessibleContent', - 'PresentationContent', - 'ScreenReaderContent' - ] - }, - transform: { - importPath: getImportPath('@instructure/ui-a11y-content') - } - }, - { - where: { - packageName: '@instructure/ui-a11y', - moduleName: 'Dialog' - }, - transform: { - importPath: getImportPath('@instructure/ui-dialog') - } - }, - { - where: { - packageName: '@instructure/ui-a11y', - moduleNames: [ - 'findFocusable', - 'findTabbable', - 'scopeTab', - 'hasVisibleChildren', - 'FocusRegion', - 'FocusRegionManager', - 'KeyboardFocusRegion', - 'ScreenReaderFocusRegion' - ] - }, - transform: { - importPath: '@instructure/ui-a11y-utils' - } - } - ] - - if (isMetaComponentPackageMigration) { - transforms = [ - ...transforms, - { - where: { - packageName: '@instructure/ui-a11y-content', - moduleNames: [ - 'ScreenReaderContent', - 'PresentationContent', - 'AccessibleContent' - ] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-alerts', - moduleName: 'Alert' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-avatar', - moduleName: 'Avatar' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-badge', - moduleName: 'Badge' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-billboard', - moduleName: 'Billboard' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-breadcrumb', - moduleNames: ['Breadcrumb', 'BreadcrumbLink'] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-buttons', - moduleNames: [ - 'BaseButton', - 'Button', - 'CloseButton', - 'CondensedButton', - 'IconButton', - 'ToggleButton' - ] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-byline', - moduleNames: ['Byline', 'Media'] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-calendar', - moduleName: 'Calendar' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-checkbox', - moduleNames: [ - 'Checkbox', - 'CheckboxFacade', - 'ToggleFacade', - 'CheckboxGroup' - ] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-code-editor', - moduleName: 'CodeEditor' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-date-input', - moduleName: 'DateInput' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-dialog', - moduleName: 'Dialog' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-drawer-layout', - moduleNames: ['DrawerLayout', 'DrawerContent'] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-editable', - moduleNames: ['InPlaceEdit', 'Editable'] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-expandable', - moduleName: 'Expandable' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-file-drop', - moduleName: 'FileDrop' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-flex', - moduleNames: ['Flex', 'FlexItem'] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-focusable', - moduleName: 'Focusable' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-form-field', - moduleNames: [ - 'FormField', - 'FormFieldLabel', - 'FormFieldMessage', - 'FormFieldMessages', - 'FormFieldLayout', - 'FormFieldGroup' - ] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-grid', - moduleNames: ['Grid', 'GridCol', 'GridRow'] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-heading', - moduleName: 'Heading' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-i18n', - moduleNames: ['ApplyLocale', 'ApplyTextDirection'] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-icons' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-img', - moduleName: 'Img' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-link', - moduleName: 'Link' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-list', - moduleNames: ['List', 'ListItem', 'InlineList'] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-menu', - moduleNames: [ - 'Menu', - 'MenuItemGroup', - 'MenuItemSeparator', - 'MenuItem' - ] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-metric', - moduleNames: ['MetricGroup', 'Metric'] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-modal', - moduleName: 'Modal' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-motion', - moduleName: 'Transition' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-navigation', - moduleNames: ['Navigation', 'AppNav'] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-number-input', - moduleName: 'NumberInput' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-options', - moduleName: 'Options' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-overlays', - moduleNames: ['Mask', 'Overlay'] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-pages', - moduleName: 'Pages' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-pagination', - moduleName: 'Pagination' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-pill', - moduleName: 'Pill' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-popover', - moduleName: 'Popover' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-portal', - moduleName: 'Portal' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-position', - moduleName: 'Position' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-progress', - moduleNames: ['ProgressBar', 'ProgressCircle'] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-radio-input', - moduleNames: ['RadioInput', 'RadioInputGroup'] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-range-input', - moduleName: 'RangeInput' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-rating', - moduleName: 'Rating' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-responsive', - moduleName: 'Responsive' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-select', - moduleName: 'Select' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-selectable', - moduleName: 'Selectable' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-simple-select', - moduleName: 'SimpleSelect' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-spinner', - moduleName: 'Spinner' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-svg-images', - moduleNames: ['InlineSVG', 'SVGIcon'] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-table', - moduleName: 'Table' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-tabs', - moduleName: 'Tabs' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-tag', - moduleName: 'Tag' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-text', - moduleName: 'Text' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-text-area', - moduleName: 'TextArea' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-text-input', - moduleName: 'TextInput' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-themeable', - moduleNames: ['themeable', 'ApplyTheme'] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-toggle-details', - moduleNames: ['ToggleDetails', 'ToggleGroup'] - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-tooltip', - moduleName: 'Tooltip' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-tray', - moduleName: 'Tray' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-tree-browser', - moduleName: 'TreeBrowser' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-truncate-text', - moduleName: 'TruncateText' - }, - transform: { - importPath: '@instructure/ui' - } - }, - { - where: { - packageName: '@instructure/ui-view', - moduleName: 'View' - }, - transform: { - importPath: '@instructure/ui' - } - } - ] - } - - transforms.push({ - where: { - importPattern: '^@instructure/.*/lib/.*' - }, - transform: { - importPath: (importPath) => - importPath.replace(new RegExp('/lib/'), '/es/') - } - }) - - return { - transformDefaults: { - importType: 'named' - }, - transforms - } -} diff --git a/packages/instui-config/codemod-configs/v7/propNames.config.json b/packages/instui-config/codemod-configs/v7/propNames.config.json deleted file mode 100644 index 5e7e3259f5..0000000000 --- a/packages/instui-config/codemod-configs/v7/propNames.config.json +++ /dev/null @@ -1,239 +0,0 @@ -{ - "Alert": { - "8.0.0": [{ "old": "closeButtonLabel", "new": "renderCloseButtonLabel" }] - }, - "Avatar": { - "8.0.0": [ - { - "old": "inline", - "new": "display", - "values": [ - { "old": true, "new": "inline-block" }, - { "old": false, "new": "block" } - ] - }, - { "old": "variant", "new": "shape" } - ] - }, - "Breadcrumb.Link": { - "8.0.0": [{ "old": "icon", "new": "renderIcon" }] - }, - "BreadcrumbLink": { - "8.0.0": [{ "old": "icon", "new": "renderIcon" }] - }, - "DateInput": { - "8.0.0": [{ "old": "label", "new": "renderLabel" }] - }, - "FileDrop": { - "8.0.0": [ - { "old": "label", "new": "renderLabel" }, - { "old": "enablePreview", "new": "shouldEnablePreview" }, - { "old": "allowRepeatFileSelection", "new": "shouldAllowRepeats" }, - { "old": "allowMultiple", "new": "shouldAllowMultiple" } - ] - }, - "Flex": { - "8.0.0": [ - { - "old": "inline", - "new": "display", - "values": [ - { "old": true, "new": "inline-flex" }, - { "old": false, "new": "flex" } - ] - }, - { - "old": "wrapItems", - "new": "wrap", - "values": [ - { "old": true, "new": "wrap" }, - { "old": false, "new": "no-wrap" } - ] - }, - { "old": "visualDebug", "new": "withVisualDebug" } - ] - }, - "Flex.Item": { - "8.0.0": [ - { "old": "grow", "new": "shouldGrow" }, - { "old": "shrink", "new": "shouldShrink" }, - { "old": "visualDebug", "new": "withVisualDebug" } - ] - }, - "FlexItem": { - "8.0.0": [ - { "old": "grow", "new": "shouldGrow" }, - { "old": "shrink", "new": "shouldShrink" }, - { "old": "visualDebug", "new": "withVisualDebug" } - ] - }, - "Img": { - "8.0.0": [ - { "old": "grayscale", "new": "withGrayscale" }, - { "old": "blur", "new": "withBlur" }, - { - "old": "inline", - "new": "display", - "values": [ - { "old": true, "new": "inline-block" }, - { "old": false, "new": "block" } - ] - } - ] - }, - "Link": { - "8.0.0": [ - { - "old": "variant", - "new": "color", - "values": [ - { "old": "default", "new": "link" }, - { "old": "inverse", "new": "link-inverse" } - ] - }, - { "old": "linkRef", "new": "elementRef" } - ] - }, - "NumberInput": { - "8.0.0": [ - { "old": "label", "new": "renderLabel" }, - { "old": "required", "new": "isRequired" }, - { - "old": "inline", - "new": "display", - "values": [ - { "old": true, "new": "inline-block" }, - { "old": false, "new": "block" } - ] - } - ] - }, - "Pill": { - "8.0.0": [ - { - "old": "variant", - "new": "color", - "values": [ - { "old": "default", "new": "primary" }, - { "old": "primary", "new": "info" }, - { "old": "message", "new": "alert" } - ] - } - ] - }, - "Popover": { - "8.0.0": [ - { "old": "show", "new": "isShowingContent" }, - { "old": "label", "new": "screenReaderLabel" }, - { "old": "alignArrow", "new": "shouldAlignArrow" }, - { "old": "trackPosition", "new": "shouldTrackPosition" }, - { "old": "defaultShow", "new": "defaultIsShowingContent" }, - { "old": "onShow", "new": "onPositioned" }, - { "old": "onDismiss", "new": "onHideContent" }, - { - "old": "variant", - "new": "color", - "values": [ - { "old": "default", "new": "primary" }, - { "old": "inverse", "new": "primary-inverse" } - ] - } - ] - }, - "Position": { - "8.0.0": [ - { "old": "over", "new": "shouldPositionOverTarget" }, - { "old": "trackPosition", "new": "shouldTrackPosition" } - ] - }, - "Spinner": { - "8.0.0": [{ "old": "title", "new": "renderTitle" }] - }, - "Tabs": { - "8.0.0": [ - { "old": "title", "new": "renderTitle" }, - { "old": "onChange", "new": "onRequestTabChange" }, - { "old": "focus", "new": "shouldFocusOnRender" } - ] - }, - "Tabs.Panel": { - "8.0.0": [ - { "old": "title", "new": "renderTitle" }, - { "old": "selected", "new": "isSelected" }, - { "old": "disabled", "new": "isDisabled" } - ] - }, - "Tabs.Tab": { - "8.0.0": [ - { "old": "selected", "new": "isSelected" }, - { "old": "disabled", "new": "isDisabled" } - ] - }, - "Table": { - "8.0.0": [{ "old": "mode", "new": "layout" }] - }, - "Text": { - "8.0.0": [ - { - "old": "color", - "new": "color", - "values": [{ "old": "error", "new": "danger" }] - } - ] - }, - "TextInput": { - "8.0.0": [ - { "old": "label", "new": "renderLabel" }, - { "old": "required", "new": "isRequired" }, - { - "old": "inline", - "new": "display", - "values": [ - { "old": true, "new": "inline-block" }, - { "old": false, "new": "block" } - ] - }, - { "old": "icon", "new": "renderAfterInput" } - ] - }, - "TimeSelect": { - "8.0.0": [{ "old": "label", "new": "renderLabel" }] - }, - "Tooltip": { - "8.0.0": [ - { "old": "tip", "new": "renderTip" }, - { "old": "defaultShow", "new": "defaultIsShowingContent" }, - { - "old": "variant", - "new": "color", - "values": [ - { "old": "default", "new": "primary-inverse" }, - { "old": "inverse", "new": "primary" } - ] - } - ] - }, - "View": { - "8.0.0": [ - { - "old": "borderColor", - "new": "borderColor", - "values": [ - { "old": "inverse", "new": "transparent" }, - { "old": "default", "new": "primary" } - ] - }, - { - "old": "background", - "new": "background", - "values": [ - { "old": "default", "new": "primary" }, - { "old": "light", "new": "secondary" }, - { "old": "inverse", "new": "primary-inverse" } - ] - }, - { "old": "focused", "new": "withFocusOutline" }, - { "old": "debug", "new": "withVisualDebug" } - ] - } -} diff --git a/packages/instui-config/codemod-configs/v8/imports.config.js b/packages/instui-config/codemod-configs/v8/imports.config.js deleted file mode 100644 index 39717616e2..0000000000 --- a/packages/instui-config/codemod-configs/v8/imports.config.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2015 - present Instructure, Inc. - * - * 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. - */ - -module.exports = () => { - return { - transforms: [ - { - where: { - packageName: '@instructure/ui-themeable', - moduleNames: [ - 'ThemeablePropValues', - 'ThemeablePropTypes', - 'makeThemeVars', - 'getShorthandPropValue', - 'mirrorShorthandCorners', - 'mirrorShorthandEdges' - ] - }, - transform: { - importType: 'named', - importPath: '@instructure/emotion' - } - } - ] - } -} diff --git a/packages/instui-config/package-lists/v10/package-list.json b/packages/instui-config/package-lists/v10/package-list.json deleted file mode 100644 index e0ded4e388..0000000000 --- a/packages/instui-config/package-lists/v10/package-list.json +++ /dev/null @@ -1,107 +0,0 @@ -[ - "@instructure/babel-plugin-transform-imports", - "@instructure/browserslist-config-instui", - "@instructure/canvas-high-contrast-theme", - "@instructure/canvas-theme", - "@instructure/command-utils", - "@instructure/console", - "@instructure/cz-lerna-changelog", - "@instructure/debounce", - "@instructure/emotion", - "@instructure/instui-config", - "@instructure/shared-types", - "@instructure/template-app", - "@instructure/template-component", - "@instructure/template-package", - "@instructure/theme-registry", - "@instructure/ui", - "@instructure/ui-a11y-content", - "@instructure/ui-a11y-utils", - "@instructure/ui-alerts", - "@instructure/ui-avatar", - "@instructure/ui-axe-check", - "@instructure/ui-badge", - "@instructure/ui-billboard", - "@instructure/ui-breadcrumb", - "@instructure/ui-buttons", - "@instructure/ui-byline", - "@instructure/ui-calendar", - "@instructure/ui-checkbox", - "@instructure/ui-code-editor", - "@instructure/ui-codemods", - "@instructure/ui-color-picker", - "@instructure/ui-color-utils", - "@instructure/ui-date-input", - "@instructure/ui-date-time-input", - "@instructure/ui-decorator", - "@instructure/ui-dialog", - "@instructure/ui-dom-utils", - "@instructure/ui-drawer-layout", - "@instructure/ui-drilldown", - "@instructure/ui-editable", - "@instructure/ui-expandable", - "@instructure/ui-file-drop", - "@instructure/ui-flex", - "@instructure/ui-focusable", - "@instructure/ui-form-field", - "@instructure/ui-grid", - "@instructure/ui-heading", - "@instructure/ui-i18n", - "@instructure/ui-icons", - "@instructure/ui-icons-build", - "@instructure/ui-img", - "@instructure/ui-link", - "@instructure/ui-list", - "@instructure/ui-menu", - "@instructure/ui-metric", - "@instructure/ui-modal", - "@instructure/ui-motion", - "@instructure/ui-navigation", - "@instructure/ui-number-input", - "@instructure/ui-options", - "@instructure/ui-overlays", - "@instructure/ui-pages", - "@instructure/ui-pagination", - "@instructure/ui-pill", - "@instructure/ui-popover", - "@instructure/ui-portal", - "@instructure/ui-position", - "@instructure/ui-progress", - "@instructure/ui-prop-types", - "@instructure/ui-radio-input", - "@instructure/ui-range-input", - "@instructure/ui-rating", - "@instructure/ui-react-utils", - "@instructure/ui-responsive", - "@instructure/ui-select", - "@instructure/ui-selectable", - "@instructure/ui-side-nav-bar", - "@instructure/ui-simple-select", - "@instructure/ui-source-code-editor", - "@instructure/ui-spinner", - "@instructure/ui-svg-images", - "@instructure/ui-table", - "@instructure/ui-tabs", - "@instructure/ui-tag", - "@instructure/ui-test-locator", - "@instructure/ui-test-queries", - "@instructure/ui-test-sandbox", - "@instructure/ui-test-utils", - "@instructure/ui-testable", - "@instructure/ui-text", - "@instructure/ui-text-area", - "@instructure/ui-text-input", - "@instructure/ui-theme-tokens", - "@instructure/ui-themes", - "@instructure/ui-time-select", - "@instructure/ui-toggle-details", - "@instructure/ui-tooltip", - "@instructure/ui-top-nav-bar", - "@instructure/ui-tray", - "@instructure/ui-tree-browser", - "@instructure/ui-truncate-list", - "@instructure/ui-truncate-text", - "@instructure/ui-utils", - "@instructure/ui-view", - "@instructure/uid" -] diff --git a/packages/instui-config/package-lists/v11/package-list.json b/packages/instui-config/package-lists/v11/package-list.json deleted file mode 100644 index b4d81d6d8d..0000000000 --- a/packages/instui-config/package-lists/v11/package-list.json +++ /dev/null @@ -1,104 +0,0 @@ -[ - "@instructure/babel-plugin-transform-imports", - "@instructure/browserslist-config-instui", - "@instructure/canvas-high-contrast-theme", - "@instructure/canvas-theme", - "@instructure/command-utils", - "@instructure/console", - "@instructure/cz-lerna-changelog", - "@instructure/debounce", - "@instructure/emotion", - "@instructure/instui-config", - "@instructure/shared-types", - "@instructure/theme-registry", - "@instructure/ui", - "@instructure/ui-a11y-content", - "@instructure/ui-a11y-utils", - "@instructure/ui-alerts", - "@instructure/ui-avatar", - "@instructure/ui-axe-check", - "@instructure/ui-badge", - "@instructure/ui-billboard", - "@instructure/ui-breadcrumb", - "@instructure/ui-buttons", - "@instructure/ui-byline", - "@instructure/ui-calendar", - "@instructure/ui-checkbox", - "@instructure/ui-code-editor", - "@instructure/ui-codemods", - "@instructure/ui-color-picker", - "@instructure/ui-color-utils", - "@instructure/ui-date-input", - "@instructure/ui-date-time-input", - "@instructure/ui-decorator", - "@instructure/ui-dialog", - "@instructure/ui-dom-utils", - "@instructure/ui-drawer-layout", - "@instructure/ui-drilldown", - "@instructure/ui-editable", - "@instructure/ui-expandable", - "@instructure/ui-file-drop", - "@instructure/ui-flex", - "@instructure/ui-focusable", - "@instructure/ui-form-field", - "@instructure/ui-grid", - "@instructure/ui-heading", - "@instructure/ui-i18n", - "@instructure/ui-icons", - "@instructure/ui-icons-build", - "@instructure/ui-img", - "@instructure/ui-link", - "@instructure/ui-list", - "@instructure/ui-menu", - "@instructure/ui-metric", - "@instructure/ui-modal", - "@instructure/ui-motion", - "@instructure/ui-navigation", - "@instructure/ui-number-input", - "@instructure/ui-options", - "@instructure/ui-overlays", - "@instructure/ui-pages", - "@instructure/ui-pagination", - "@instructure/ui-pill", - "@instructure/ui-popover", - "@instructure/ui-portal", - "@instructure/ui-position", - "@instructure/ui-progress", - "@instructure/ui-prop-types", - "@instructure/ui-radio-input", - "@instructure/ui-range-input", - "@instructure/ui-rating", - "@instructure/ui-react-utils", - "@instructure/ui-responsive", - "@instructure/ui-select", - "@instructure/ui-selectable", - "@instructure/ui-side-nav-bar", - "@instructure/ui-simple-select", - "@instructure/ui-source-code-editor", - "@instructure/ui-spinner", - "@instructure/ui-svg-images", - "@instructure/ui-table", - "@instructure/ui-tabs", - "@instructure/ui-tag", - "@instructure/ui-test-locator", - "@instructure/ui-test-queries", - "@instructure/ui-test-sandbox", - "@instructure/ui-test-utils", - "@instructure/ui-testable", - "@instructure/ui-text", - "@instructure/ui-text-area", - "@instructure/ui-text-input", - "@instructure/ui-theme-tokens", - "@instructure/ui-themes", - "@instructure/ui-time-select", - "@instructure/ui-toggle-details", - "@instructure/ui-tooltip", - "@instructure/ui-top-nav-bar", - "@instructure/ui-tray", - "@instructure/ui-tree-browser", - "@instructure/ui-truncate-list", - "@instructure/ui-truncate-text", - "@instructure/ui-utils", - "@instructure/ui-view", - "@instructure/uid" -] \ No newline at end of file diff --git a/packages/instui-config/package-lists/v3/package-list.json b/packages/instui-config/package-lists/v3/package-list.json deleted file mode 100644 index 236b8fc73c..0000000000 --- a/packages/instui-config/package-lists/v3/package-list.json +++ /dev/null @@ -1,3 +0,0 @@ -[ - "instructure-ui" -] diff --git a/packages/instui-config/package-lists/v4/package-list.json b/packages/instui-config/package-lists/v4/package-list.json deleted file mode 100644 index fb2efcb8b8..0000000000 --- a/packages/instui-config/package-lists/v4/package-list.json +++ /dev/null @@ -1,16 +0,0 @@ -[ - "@instructure/babel-plugin-themeable-styles", - "@instructure/babel-plugin-transform-class-display-name", - "@instructure/postcss-themeable-styles", - "@instructure/ui-codemods", - "@instructure/ui-core", - "@instructure/ui-docs-client", - "@instructure/ui-docs-plugin", - "@instructure/ui-polyfill-loader", - "@instructure/ui-presets", - "@instructure/ui-testbed", - "@instructure/ui-themeable", - "@instructure/ui-themes", - "@instructure/ui-utils", - "instructure-icons" -] diff --git a/packages/instui-config/package-lists/v5/package-list.json b/packages/instui-config/package-lists/v5/package-list.json deleted file mode 100644 index c7eaf111fa..0000000000 --- a/packages/instui-config/package-lists/v5/package-list.json +++ /dev/null @@ -1,76 +0,0 @@ -[ - "@instructure/babel-plugin-themeable-styles", - "@instructure/babel-plugin-transform-class-display-name", - "@instructure/command-utils", - "@instructure/config-loader", - "@instructure/console", - "@instructure/cz-lerna-changelog", - "@instructure/debounce", - "eslint-plugin-instructure-ui", - "@instructure/generate-examples", - "@instructure/instui-cli", - "@instructure/instui-config", - "@instructure/media-capture", - "@instructure/mocha-environment-jsdom", - "@instructure/pkg-utils", - "@instructure/postcss-themeable-styles", - "@instructure/ui-a11y", - "@instructure/ui-alerts", - "@instructure/ui-axe-check", - "@instructure/ui-babel-preset", - "@instructure/ui-billboard", - "@instructure/ui-breadcrumb", - "@instructure/ui-buttons", - "@instructure/ui-calendar", - "@instructure/ui-code-editor", - "@instructure/ui-codemods", - "@instructure/ui-component-examples", - "@instructure/ui-container", - "@instructure/ui-core", - "@instructure/ui-date-input", - "@instructure/ui-decorator", - "@instructure/ui-docs-client", - "@instructure/ui-docs-plugin", - "@instructure/ui-editable", - "@instructure/ui-elements", - "@instructure/ui-eslint-config", - "@instructure/ui-focusable", - "@instructure/ui-form-field", - "@instructure/ui-forms", - "@instructure/ui-i18n", - "@instructure/ui-icons", - "@instructure/ui-icons-build", - "@instructure/ui-karma-config", - "@instructure/ui-layout", - "@instructure/ui-media-player", - "@instructure/ui-menu", - "@instructure/ui-motion", - "@instructure/ui-navigation", - "@instructure/ui-number-input", - "@instructure/ui-overlays", - "@instructure/ui-pages", - "@instructure/ui-pagination", - "@instructure/ui-polyfill-loader", - "@instructure/ui-portal", - "@instructure/ui-postcss-config", - "@instructure/ui-presets", - "@instructure/ui-prop-types", - "@instructure/ui-scripts", - "@instructure/ui-selectable", - "@instructure/ui-stylelint-config", - "@instructure/ui-stylesheet", - "@instructure/ui-svg-images", - "@instructure/ui-table", - "@instructure/ui-tabs", - "@instructure/ui-test-utils", - "@instructure/ui-testable", - "@instructure/ui-testbed", - "@instructure/ui-text-input", - "@instructure/ui-themeable", - "@instructure/ui-themes", - "@instructure/ui-toggle-details", - "@instructure/ui-tree-browser", - "@instructure/ui-utils", - "@instructure/ui-webpack-config", - "@instructure/uid" -] diff --git a/packages/instui-config/package-lists/v6/package-list.json b/packages/instui-config/package-lists/v6/package-list.json deleted file mode 100644 index af50cc0d52..0000000000 --- a/packages/instui-config/package-lists/v6/package-list.json +++ /dev/null @@ -1,76 +0,0 @@ -[ - "@instructure/babel-plugin-themeable-styles", - "@instructure/babel-plugin-transform-class-display-name", - "@instructure/canvas-high-contrast-theme", - "@instructure/canvas-theme", - "@instructure/command-utils", - "@instructure/config-loader", - "@instructure/console", - "@instructure/cz-lerna-changelog", - "@instructure/debounce", - "eslint-plugin-instructure-ui", - "@instructure/generate-examples", - "@instructure/instui-cli", - "@instructure/instui-config", - "@instructure/mocha-environment-jsdom", - "@instructure/pkg-utils", - "@instructure/postcss-themeable-styles", - "@instructure/ui-a11y", - "@instructure/ui-alerts", - "@instructure/ui-axe-check", - "@instructure/ui-babel-preset", - "@instructure/ui-billboard", - "@instructure/ui-breadcrumb", - "@instructure/ui-buttons", - "@instructure/ui-calendar", - "@instructure/ui-code-editor", - "@instructure/ui-codemods", - "@instructure/ui-color-utils", - "@instructure/ui-component-examples", - "@instructure/ui-date-input", - "@instructure/ui-decorator", - "@instructure/ui-docs-client", - "@instructure/ui-docs-plugin", - "@instructure/ui-dom-utils", - "@instructure/ui-editable", - "@instructure/ui-elements", - "@instructure/ui-eslint-config", - "@instructure/ui-focusable", - "@instructure/ui-form-field", - "@instructure/ui-forms", - "@instructure/ui-i18n", - "@instructure/ui-icons-build", - "@instructure/ui-icons", - "@instructure/ui-karma-config", - "@instructure/ui-layout", - "@instructure/ui-menu", - "@instructure/ui-motion", - "@instructure/ui-navigation", - "@instructure/ui-number-input", - "@instructure/ui-overlays", - "@instructure/ui-pages", - "@instructure/ui-pagination", - "@instructure/ui-polyfill-loader", - "@instructure/ui-portal", - "@instructure/ui-postcss-config", - "@instructure/ui-presets", - "@instructure/ui-prop-types", - "@instructure/ui-react-utils", - "@instructure/ui-scripts", - "@instructure/ui-selectable", - "@instructure/ui-stylelint-config", - "@instructure/ui-stylesheet", - "@instructure/ui-svg-images", - "@instructure/ui-table", - "@instructure/ui-tabs", - "@instructure/ui-test-utils", - "@instructure/ui-testable", - "@instructure/ui-text-input", - "@instructure/ui-themeable", - "@instructure/ui-themes", - "@instructure/ui-toggle-details", - "@instructure/ui-tree-browser", - "@instructure/ui-utils", - "@instructure/ui-webpack-config", - "@instructure/uid" -] diff --git a/packages/instui-config/package-lists/v7/package-list.json b/packages/instui-config/package-lists/v7/package-list.json deleted file mode 100644 index 3a2988ef6f..0000000000 --- a/packages/instui-config/package-lists/v7/package-list.json +++ /dev/null @@ -1,119 +0,0 @@ -[ - "@instructure/babel-plugin-themeable-styles", - "@instructure/babel-plugin-transform-imports", - "@instructure/browserslist-config-instui", - "@instructure/canvas-high-contrast-theme", - "@instructure/canvas-theme", - "@instructure/command-utils", - "@instructure/config-loader", - "@instructure/console", - "@instructure/cz-lerna-changelog", - "@instructure/debounce", - "eslint-plugin-instructure-ui", - "@instructure/instui-cli", - "@instructure/instui-config", - "@instructure/pkg-utils", - "@instructure/postcss-themeable-styles", - "@instructure/template-app", - "@instructure/template-component", - "@instructure/template-package", - "@instructure/ui-a11y-content", - "@instructure/ui-a11y-utils", - "@instructure/ui-alerts", - "@instructure/ui-avatar", - "@instructure/ui-axe-check", - "@instructure/ui-babel-preset", - "@instructure/ui-badge", - "@instructure/ui-billboard", - "@instructure/ui-breadcrumb", - "@instructure/ui-buttons", - "@instructure/ui-byline", - "@instructure/ui-calendar", - "@instructure/ui-checkbox", - "@instructure/ui-code-editor", - "@instructure/ui-codemods", - "@instructure/ui-color-utils", - "@instructure/ui-component-examples", - "@instructure/ui-date-input", - "@instructure/ui-decorator", - "@instructure/ui-dialog", - "@instructure/ui-docs-client", - "@instructure/ui-docs-plugin", - "@instructure/ui-dom-utils", - "@instructure/ui-drawer-layout", - "@instructure/ui-editable", - "@instructure/ui-eslint-config", - "@instructure/ui-expandable", - "@instructure/ui-file-drop", - "@instructure/ui-flex", - "@instructure/ui-focusable", - "@instructure/ui-form-field", - "@instructure/ui-grid", - "@instructure/ui-heading", - "@instructure/ui-i18n", - "@instructure/ui-icons-build", - "@instructure/ui-icons", - "@instructure/ui-img", - "@instructure/ui-karma-config", - "@instructure/ui-link", - "@instructure/ui-list", - "@instructure/ui-menu", - "@instructure/ui-metric", - "@instructure/ui-modal", - "@instructure/ui-motion", - "@instructure/ui-navigation", - "@instructure/ui-number-input", - "@instructure/ui-options", - "@instructure/ui-overlays", - "@instructure/ui-pages", - "@instructure/ui-pagination", - "@instructure/ui-pill", - "@instructure/ui-polyfill-loader", - "@instructure/ui-popover", - "@instructure/ui-portal", - "@instructure/ui-position", - "@instructure/ui-postcss-config", - "@instructure/ui-progress", - "@instructure/ui-prop-types", - "@instructure/ui-radio-input", - "@instructure/ui-range-input", - "@instructure/ui-rating", - "@instructure/ui-react-utils", - "@instructure/ui-responsive", - "@instructure/ui-scripts", - "@instructure/ui-select", - "@instructure/ui-selectable", - "@instructure/ui-simple-select", - "@instructure/ui-spinner", - "@instructure/ui-stylelint-config", - "@instructure/ui-stylesheet", - "@instructure/ui-svg-images", - "@instructure/ui-table", - "@instructure/ui-tabs", - "@instructure/ui-tag", - "@instructure/ui-template-scripts", - "@instructure/ui-test-locator", - "@instructure/ui-test-queries", - "@instructure/ui-test-sandbox", - "@instructure/ui-test-utils", - "@instructure/ui-testable", - "@instructure/ui-text-area", - "@instructure/ui-text-input", - "@instructure/ui-text", - "@instructure/ui-theme-tokens", - "@instructure/ui-themeable", - "@instructure/ui-themes", - "@instructure/ui-time-select", - "@instructure/ui-toggle-details", - "@instructure/ui-token-scripts", - "@instructure/ui-tooltip", - "@instructure/ui-tray", - "@instructure/ui-tree-browser", - "@instructure/ui-truncate-text", - "@instructure/ui-upgrade-scripts", - "@instructure/ui-utils", - "@instructure/ui-view", - "@instructure/ui-webpack-config", - "@instructure/ui", - "@instructure/uid" -] diff --git a/packages/instui-config/package-lists/v8/package-list.json b/packages/instui-config/package-lists/v8/package-list.json deleted file mode 100644 index 393328ba9c..0000000000 --- a/packages/instui-config/package-lists/v8/package-list.json +++ /dev/null @@ -1,115 +0,0 @@ -[ - "@instructure/babel-plugin-transform-imports", - "@instructure/browserslist-config-instui", - "@instructure/canvas-high-contrast-theme", - "@instructure/canvas-theme", - "@instructure/command-utils", - "@instructure/config-loader", - "@instructure/console", - "@instructure/cz-lerna-changelog", - "@instructure/debounce", - "@instructure/emotion", - "eslint-plugin-instructure-ui", - "@instructure/instui-cli", - "@instructure/instui-config", - "@instructure/pkg-utils", - "@instructure/template-app", - "@instructure/template-component", - "@instructure/template-package", - "@instructure/ui-a11y-content", - "@instructure/ui-a11y-utils", - "@instructure/ui-alerts", - "@instructure/ui-avatar", - "@instructure/ui-axe-check", - "@instructure/ui-babel-preset", - "@instructure/ui-badge", - "@instructure/ui-billboard", - "@instructure/ui-breadcrumb", - "@instructure/ui-buttons", - "@instructure/ui-byline", - "@instructure/ui-calendar", - "@instructure/ui-checkbox", - "@instructure/ui-code-editor", - "@instructure/ui-codemods", - "@instructure/ui-color-utils", - "@instructure/ui-component-examples", - "@instructure/ui-date-input", - "@instructure/ui-decorator", - "@instructure/ui-dialog", - "@instructure/ui-docs-client", - "@instructure/ui-docs-plugin", - "@instructure/ui-dom-utils", - "@instructure/ui-drawer-layout", - "@instructure/ui-editable", - "@instructure/ui-eslint-config", - "@instructure/ui-expandable", - "@instructure/ui-file-drop", - "@instructure/ui-flex", - "@instructure/ui-focusable", - "@instructure/ui-form-field", - "@instructure/ui-grid", - "@instructure/ui-heading", - "@instructure/ui-i18n", - "@instructure/ui-icons-build", - "@instructure/ui-icons", - "@instructure/ui-img", - "@instructure/ui-karma-config", - "@instructure/ui-link", - "@instructure/ui-list", - "@instructure/ui-menu", - "@instructure/ui-metric", - "@instructure/ui-modal", - "@instructure/ui-motion", - "@instructure/ui-navigation", - "@instructure/ui-number-input", - "@instructure/ui-options", - "@instructure/ui-overlays", - "@instructure/ui-pages", - "@instructure/ui-pagination", - "@instructure/ui-pill", - "@instructure/ui-polyfill-loader", - "@instructure/ui-popover", - "@instructure/ui-portal", - "@instructure/ui-position", - "@instructure/ui-progress", - "@instructure/ui-prop-types", - "@instructure/ui-radio-input", - "@instructure/ui-range-input", - "@instructure/ui-rating", - "@instructure/ui-react-utils", - "@instructure/ui-responsive", - "@instructure/ui-scripts", - "@instructure/ui-select", - "@instructure/ui-selectable", - "@instructure/ui-simple-select", - "@instructure/ui-spinner", - "@instructure/ui-stylelint-config", - "@instructure/ui-svg-images", - "@instructure/ui-table", - "@instructure/ui-tabs", - "@instructure/ui-tag", - "@instructure/ui-template-scripts", - "@instructure/ui-test-locator", - "@instructure/ui-test-queries", - "@instructure/ui-test-sandbox", - "@instructure/ui-test-utils", - "@instructure/ui-testable", - "@instructure/ui-text-area", - "@instructure/ui-text-input", - "@instructure/ui-text", - "@instructure/ui-theme-tokens", - "@instructure/ui-themes", - "@instructure/ui-time-select", - "@instructure/ui-toggle-details", - "@instructure/ui-token-scripts", - "@instructure/ui-tooltip", - "@instructure/ui-tray", - "@instructure/ui-tree-browser", - "@instructure/ui-truncate-text", - "@instructure/ui-upgrade-scripts", - "@instructure/ui-utils", - "@instructure/ui-view", - "@instructure/ui-webpack-config", - "@instructure/ui", - "@instructure/uid" -] diff --git a/packages/instui-config/package-lists/v9/package-list.json b/packages/instui-config/package-lists/v9/package-list.json deleted file mode 100644 index e0ded4e388..0000000000 --- a/packages/instui-config/package-lists/v9/package-list.json +++ /dev/null @@ -1,107 +0,0 @@ -[ - "@instructure/babel-plugin-transform-imports", - "@instructure/browserslist-config-instui", - "@instructure/canvas-high-contrast-theme", - "@instructure/canvas-theme", - "@instructure/command-utils", - "@instructure/console", - "@instructure/cz-lerna-changelog", - "@instructure/debounce", - "@instructure/emotion", - "@instructure/instui-config", - "@instructure/shared-types", - "@instructure/template-app", - "@instructure/template-component", - "@instructure/template-package", - "@instructure/theme-registry", - "@instructure/ui", - "@instructure/ui-a11y-content", - "@instructure/ui-a11y-utils", - "@instructure/ui-alerts", - "@instructure/ui-avatar", - "@instructure/ui-axe-check", - "@instructure/ui-badge", - "@instructure/ui-billboard", - "@instructure/ui-breadcrumb", - "@instructure/ui-buttons", - "@instructure/ui-byline", - "@instructure/ui-calendar", - "@instructure/ui-checkbox", - "@instructure/ui-code-editor", - "@instructure/ui-codemods", - "@instructure/ui-color-picker", - "@instructure/ui-color-utils", - "@instructure/ui-date-input", - "@instructure/ui-date-time-input", - "@instructure/ui-decorator", - "@instructure/ui-dialog", - "@instructure/ui-dom-utils", - "@instructure/ui-drawer-layout", - "@instructure/ui-drilldown", - "@instructure/ui-editable", - "@instructure/ui-expandable", - "@instructure/ui-file-drop", - "@instructure/ui-flex", - "@instructure/ui-focusable", - "@instructure/ui-form-field", - "@instructure/ui-grid", - "@instructure/ui-heading", - "@instructure/ui-i18n", - "@instructure/ui-icons", - "@instructure/ui-icons-build", - "@instructure/ui-img", - "@instructure/ui-link", - "@instructure/ui-list", - "@instructure/ui-menu", - "@instructure/ui-metric", - "@instructure/ui-modal", - "@instructure/ui-motion", - "@instructure/ui-navigation", - "@instructure/ui-number-input", - "@instructure/ui-options", - "@instructure/ui-overlays", - "@instructure/ui-pages", - "@instructure/ui-pagination", - "@instructure/ui-pill", - "@instructure/ui-popover", - "@instructure/ui-portal", - "@instructure/ui-position", - "@instructure/ui-progress", - "@instructure/ui-prop-types", - "@instructure/ui-radio-input", - "@instructure/ui-range-input", - "@instructure/ui-rating", - "@instructure/ui-react-utils", - "@instructure/ui-responsive", - "@instructure/ui-select", - "@instructure/ui-selectable", - "@instructure/ui-side-nav-bar", - "@instructure/ui-simple-select", - "@instructure/ui-source-code-editor", - "@instructure/ui-spinner", - "@instructure/ui-svg-images", - "@instructure/ui-table", - "@instructure/ui-tabs", - "@instructure/ui-tag", - "@instructure/ui-test-locator", - "@instructure/ui-test-queries", - "@instructure/ui-test-sandbox", - "@instructure/ui-test-utils", - "@instructure/ui-testable", - "@instructure/ui-text", - "@instructure/ui-text-area", - "@instructure/ui-text-input", - "@instructure/ui-theme-tokens", - "@instructure/ui-themes", - "@instructure/ui-time-select", - "@instructure/ui-toggle-details", - "@instructure/ui-tooltip", - "@instructure/ui-top-nav-bar", - "@instructure/ui-tray", - "@instructure/ui-tree-browser", - "@instructure/ui-truncate-list", - "@instructure/ui-truncate-text", - "@instructure/ui-utils", - "@instructure/ui-view", - "@instructure/uid" -] diff --git a/packages/instui-config/package.json b/packages/instui-config/package.json deleted file mode 100644 index 45bdcc9146..0000000000 --- a/packages/instui-config/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "@instructure/instui-config", - "version": "10.10.0", - "description": "A package containing Instructure UI specific configuration data for operations such as upgrades and codemod scripts", - "author": "Instructure, Inc. Engineering and Product Design", - "repository": { - "type": "git", - "url": "https://github.com/instructure/instructure-ui.git" - }, - "homepage": "https://instructure.github.io/instructure-ui/", - "bugs": "https://github.com/instructure/instructure-ui/issues", - "scripts": { - "generate:package:list": "node ./scripts/generate-package-list-command.mjs" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "dependencies": { - "@instructure/command-utils": "10.10.0", - "@instructure/pkg-utils": "10.10.0", - "fs-extra": "^11.2.0", - "semver": "^7.6.3" - } -} diff --git a/packages/instui-config/scripts/generate-package-list-command.mjs b/packages/instui-config/scripts/generate-package-list-command.mjs deleted file mode 100755 index cd35c68455..0000000000 --- a/packages/instui-config/scripts/generate-package-list-command.mjs +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env node - -/* - * The MIT License (MIT) - * - * Copyright (c) 2015 - present Instructure, Inc. - * - * 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. - */ - -import path from 'path' - -import pkgUtils from '@instructure/pkg-utils' -import { error } from '@instructure/command-utils' -import generatePackageList from './generate-package-list.mjs' -import semver from 'semver' - -try { - const { version } = pkgUtils.getPackageJSON() - - // Any package list changes will always apply to the next major version. We take - // the current version, and run `semver.inc` which will increase it by one major version. - // Use that version to determine where the generated package list should live - const pkgListDir = `v${semver.coerce(semver.inc(version, 'major')).major}` - - generatePackageList({ - outputDir: path.join(process.cwd(), 'package-lists', pkgListDir) - }) -} catch (err) { - error(err) - process.exit(1) -} diff --git a/packages/instui-config/scripts/generate-package-list.mjs b/packages/instui-config/scripts/generate-package-list.mjs deleted file mode 100644 index 043bbe13cc..0000000000 --- a/packages/instui-config/scripts/generate-package-list.mjs +++ /dev/null @@ -1,45 +0,0 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2015 - present Instructure, Inc. - * - * 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. - */ - -import fse from 'fs-extra' -import path from 'path' -import { error, info, runCommandSync } from '@instructure/command-utils' - -export default ({ outputDir, name = 'package-list.json' }) => { - try { - const { stdout } = runCommandSync('lerna', ['list', '--json'], {}, { - stdio: 'pipe' - }) - const packages = JSON.parse(stdout) - const packageList = packages.map((pkg) => pkg.name) - - const outputPath = path.join(outputDir, name) - - fse.outputFileSync(outputPath, JSON.stringify(packageList, null, 1)) - - info(`Successfully generated package list at ${outputPath}`) - } catch (err) { - error(err) - } -} diff --git a/packages/instui-config/tsconfig.build.json b/packages/instui-config/tsconfig.build.json deleted file mode 100644 index 4fe94d9032..0000000000 --- a/packages/instui-config/tsconfig.build.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../../tsconfig.build.json", - "compilerOptions": { - "outDir": "./types", - "composite": true - }, - "include": ["codemod-configs/**/*", "scripts/**/*"] -} diff --git a/packages/instui-config/tsconfig.json b/packages/instui-config/tsconfig.json deleted file mode 100644 index b29a7b46c4..0000000000 --- a/packages/instui-config/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": {} -} diff --git a/scripts/clean.js b/scripts/clean.js index d87bea64d2..1d9d0890fc 100755 --- a/scripts/clean.js +++ b/scripts/clean.js @@ -34,7 +34,6 @@ const NODE_PACKAGES = [ 'ui-karma-config', 'ui-scripts', 'command-utils', - 'cz-lerna-changelog', 'instui-cli', 'babel-plugin-transform-imports', 'pkg-utils' diff --git a/tsconfig.json b/tsconfig.json index b61823279c..286700044e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,6 @@ ], "@instructure/command-utils": ["command-utils/lib"], "@instructure/config-loader": ["config-loader/lib"], - "@instructure/cz-lerna-changelog": ["cz-lerna-changelog/lib"], "@instructure/instui-cli": ["instui-cli/lib"], "@instructure/pkg-utils": ["pkg-utils/lib"], "@instructure/ui-babel-preset": ["ui-babel-preset/lib"], diff --git a/tsconfig.references.json b/tsconfig.references.json index df0d281d80..7df59af645 100644 --- a/tsconfig.references.json +++ b/tsconfig.references.json @@ -15,9 +15,6 @@ { "path": "./packages/console/tsconfig.build.json" }, - { - "path": "./packages/cz-lerna-changelog/tsconfig.build.json" - }, { "path": "./packages/debounce/tsconfig.build.json" },