diff --git a/.eslintrc.js b/.eslintrc.js index 2aede7af4..7970d0d09 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -10,10 +10,12 @@ module.exports = { parserOptions: { ecmaVersion: 2020, sourceType: 'module', + requireConfigFile: false, ecmaFeatures: { jsx: true, }, babelOptions: { + plugins: ['@babel/plugin-syntax-import-assertions'], presets: ['@babel/preset-react'], }, }, diff --git a/.storybook/babel.config.js b/.storybook/babel.config.js deleted file mode 100644 index 67db52a12..000000000 --- a/.storybook/babel.config.js +++ /dev/null @@ -1,28 +0,0 @@ -module.exports = { - plugins: [ - '@babel/plugin-transform-shorthand-properties', - '@babel/plugin-transform-block-scoping', - ['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }], - ['@babel/plugin-proposal-class-properties', { loose: true }], - ['@babel/plugin-proposal-private-methods', { loose: true }], - ['@babel/plugin-proposal-private-property-in-object', { loose: true }], - '@babel/plugin-proposal-export-default-from', - '@babel/plugin-syntax-dynamic-import', - ['@babel/plugin-proposal-object-rest-spread', { loose: true, useBuiltIns: true }], - '@babel/plugin-transform-classes', - '@babel/plugin-transform-arrow-functions', - '@babel/plugin-transform-parameters', - '@babel/plugin-transform-destructuring', - '@babel/plugin-transform-spread', - '@babel/plugin-transform-for-of', - 'babel-plugin-macros', - '@babel/plugin-proposal-optional-chaining', - '@babel/plugin-proposal-nullish-coalescing-operator', - ['@emotion', { sourceMap: true, autoLabel: 'always' }], - ], - presets: [ - ['@babel/preset-env', { shippedProposals: true, useBuiltIns: 'usage', corejs: '3' }], - '@babel/preset-typescript', - ['@babel/preset-react', { runtime: 'automatic' }], - ], -}; diff --git a/.storybook/main.ts b/.storybook/main.ts index b403ff225..611f51b82 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -15,6 +15,39 @@ const config = { docs: { autodocs: true, }, + async babel(config, { configType }) { + config = { + ...config, + configFile: false, + plugins: [ + '@babel/plugin-transform-shorthand-properties', + '@babel/plugin-transform-block-scoping', + ['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }], + ['@babel/plugin-proposal-class-properties', { loose: true }], + ['@babel/plugin-proposal-private-methods', { loose: true }], + ['@babel/plugin-proposal-private-property-in-object', { loose: true }], + '@babel/plugin-proposal-export-default-from', + '@babel/plugin-syntax-dynamic-import', + ['@babel/plugin-proposal-object-rest-spread', { loose: true, useBuiltIns: true }], + '@babel/plugin-transform-classes', + '@babel/plugin-transform-arrow-functions', + '@babel/plugin-transform-parameters', + '@babel/plugin-transform-destructuring', + '@babel/plugin-transform-spread', + '@babel/plugin-transform-for-of', + 'babel-plugin-macros', + '@babel/plugin-proposal-optional-chaining', + '@babel/plugin-proposal-nullish-coalescing-operator', + ['@emotion', { sourceMap: true, autoLabel: 'always' }], + ], + presets: [ + ['@babel/preset-env', { shippedProposals: true, useBuiltIns: 'usage', corejs: '3' }], + '@babel/preset-typescript', + ['@babel/preset-react', { runtime: 'automatic' }], + ], + }; + return config; + }, async viteFinal(config) { return mergeConfig(config, { esbuild: { diff --git a/.storybook/main/babel.config.js b/.storybook/main/babel.config.js deleted file mode 100644 index 8808c5f11..000000000 --- a/.storybook/main/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../babel.config'); diff --git a/.storybook/react/babel.config.js b/.storybook/react/babel.config.js deleted file mode 100644 index 8808c5f11..000000000 --- a/.storybook/react/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../babel.config'); diff --git a/.storybook/wc/babel.config.js b/.storybook/wc/babel.config.js deleted file mode 100644 index 8808c5f11..000000000 --- a/.storybook/wc/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('../babel.config'); diff --git a/.tool-versions b/.tool-versions index 8ead549ec..19ac4b997 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -nodejs 18.16.0 +nodejs 18.19.1 diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index 08094b23e..76a8f8020 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/README.md b/README.md index 082e8b9d7..26b3fc85e 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,13 @@ Bundlephobia stats

+## Build statuses + +| System | Status | +| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Site | [![Site status](https://api.netlify.com/api/v1/badges/6e5ee441-5739-46e4-9a85-ea5c5a333ebb/deploy-status)](https://app.netlify.com/sites/pharos/deploys) | +| Storybooks | [![Storybooks status](https://api.netlify.com/api/v1/badges/0afa82e2-f12d-4a75-933c-efedee05fe99/deploy-status)](https://app.netlify.com/sites/pharos-storybooks/deploys) | + ## Getting Started - Check out the [core package](./packages/pharos) for more info about Pharos components and how to get started @@ -28,9 +35,6 @@ - Explore the [web component Storybook](https://pharos.jstor.org/storybooks/wc/) or the [React Storybook](https://pharos.jstor.org/storybooks/react/) to try the live components - Test for visual regressions in the Pharos [Chromatic project](https://www.chromatic.com/builds?appId=60919c26122bd50039b34644) -
-
- ## Packages and configuration This repository contains a number of packages related to Pharos: @@ -43,9 +47,6 @@ This repository contains a number of packages related to Pharos: In addition to these packages, this repository contains [the configuration for Pharos Storybooks](./.storybook). -
-
- ## Contributing If you'd like to learn more about contributing to Pharos, refer to [the contribution guide](./docs/README.md). @@ -114,9 +115,6 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind are welcome! -
-
- ## Work with us at ITHAKA JSTOR is part of ITHAKA, a not-for-profit dedicated to expanding access to knowledge and education worldwide. Our staff makes us who we are. We’re hiring — join us! diff --git a/babel.config.js b/babel.config.js deleted file mode 100644 index a87c02a2f..000000000 --- a/babel.config.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = (api) => { - api.cache.never(); - - return { - plugins: ['@babel/plugin-syntax-import-assertions'], - }; -}; diff --git a/package.json b/package.json index 95d134c97..385194e67 100644 --- a/package.json +++ b/package.json @@ -66,16 +66,16 @@ "@commitlint/config-conventional": "^15.0.0", "@emotion/babel-plugin": "^11.9.2", "@size-limit/preset-small-lib": "^7.0.4", - "@storybook/addon-a11y": "^7.3.2", - "@storybook/addon-essentials": "^7.3.2", - "@storybook/addon-links": "^7.3.2", + "@storybook/addon-a11y": "^7.6.17", + "@storybook/addon-essentials": "^7.6.17", + "@storybook/addon-links": "^7.6.17", "@storybook/addon-styling": "^1.3.5", - "@storybook/blocks": "^7.3.2", - "@storybook/manager-api": "^7.3.2", - "@storybook/react-vite": "^7.3.2", - "@storybook/theming": "^7.3.2", - "@storybook/web-components": "^7.3.2", - "@storybook/web-components-vite": "^7.3.2", + "@storybook/blocks": "^7.6.17", + "@storybook/manager-api": "^7.6.17", + "@storybook/react-vite": "^7.6.17", + "@storybook/theming": "^7.6.17", + "@storybook/web-components": "^7.6.17", + "@storybook/web-components-vite": "^7.6.17", "@types/uuid": "^9.0.0", "@typescript-eslint/eslint-plugin": "^6.9.0", "@typescript-eslint/parser": "^6.9.0", @@ -108,7 +108,7 @@ "react-dom": "^17.0.0", "sass": "^1.63.6", "size-limit": "^7.0.4", - "storybook": "^7.3.2", + "storybook": "^7.6.17", "stylelint": "^15.10.1", "stylelint-config-prettier": "^9.0.5", "stylelint-config-standard-scss": "^10.0.0", diff --git a/packages/pharos/src/components/coach-mark/pharos-coach-mark.ts b/packages/pharos/src/components/coach-mark/pharos-coach-mark.ts index baa215bb7..835832327 100644 --- a/packages/pharos/src/components/coach-mark/pharos-coach-mark.ts +++ b/packages/pharos/src/components/coach-mark/pharos-coach-mark.ts @@ -63,7 +63,7 @@ export class PharosCoachMark extends ScopedRegistryMixin(PharosElement) { /** * Text content for the coach mark header * @attr header - * @type {String} + * @type {string} */ @property({ reflect: true }) public header = ''; diff --git a/yarn.lock b/yarn.lock index e19e35b15..d9600ab2b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7173,7 +7173,7 @@ __metadata: languageName: node linkType: hard -"@storybook/addon-a11y@npm:^7.3.2": +"@storybook/addon-a11y@npm:^7.6.17": version: 7.6.17 resolution: "@storybook/addon-a11y@npm:7.6.17" dependencies: @@ -7249,7 +7249,7 @@ __metadata: languageName: node linkType: hard -"@storybook/addon-essentials@npm:^7.3.2": +"@storybook/addon-essentials@npm:^7.6.17": version: 7.6.17 resolution: "@storybook/addon-essentials@npm:7.6.17" dependencies: @@ -7283,7 +7283,7 @@ __metadata: languageName: node linkType: hard -"@storybook/addon-links@npm:^7.3.2": +"@storybook/addon-links@npm:^7.6.17": version: 7.6.17 resolution: "@storybook/addon-links@npm:7.6.17" dependencies: @@ -7398,7 +7398,7 @@ __metadata: languageName: node linkType: hard -"@storybook/blocks@npm:7.6.17, @storybook/blocks@npm:^7.3.2": +"@storybook/blocks@npm:7.6.17, @storybook/blocks@npm:^7.6.17": version: 7.6.17 resolution: "@storybook/blocks@npm:7.6.17" dependencies: @@ -7900,7 +7900,7 @@ __metadata: languageName: node linkType: hard -"@storybook/manager-api@npm:7.6.17, @storybook/manager-api@npm:^7.3.2": +"@storybook/manager-api@npm:7.6.17, @storybook/manager-api@npm:^7.6.17": version: 7.6.17 resolution: "@storybook/manager-api@npm:7.6.17" dependencies: @@ -8024,7 +8024,7 @@ __metadata: languageName: node linkType: hard -"@storybook/react-vite@npm:^7.3.2": +"@storybook/react-vite@npm:^7.6.17": version: 7.6.17 resolution: "@storybook/react-vite@npm:7.6.17" dependencies: @@ -8135,7 +8135,7 @@ __metadata: languageName: node linkType: hard -"@storybook/theming@npm:7.6.17, @storybook/theming@npm:^7.3.2": +"@storybook/theming@npm:7.6.17, @storybook/theming@npm:^7.6.17": version: 7.6.17 resolution: "@storybook/theming@npm:7.6.17" dependencies: @@ -8174,7 +8174,7 @@ __metadata: languageName: node linkType: hard -"@storybook/web-components-vite@npm:^7.3.2": +"@storybook/web-components-vite@npm:^7.6.17": version: 7.6.17 resolution: "@storybook/web-components-vite@npm:7.6.17" dependencies: @@ -8187,7 +8187,7 @@ __metadata: languageName: node linkType: hard -"@storybook/web-components@npm:7.6.17, @storybook/web-components@npm:^7.3.2": +"@storybook/web-components@npm:7.6.17, @storybook/web-components@npm:^7.6.17": version: 7.6.17 resolution: "@storybook/web-components@npm:7.6.17" dependencies: @@ -24579,16 +24579,16 @@ __metadata: "@commitlint/config-conventional": "npm:^15.0.0" "@emotion/babel-plugin": "npm:^11.9.2" "@size-limit/preset-small-lib": "npm:^7.0.4" - "@storybook/addon-a11y": "npm:^7.3.2" - "@storybook/addon-essentials": "npm:^7.3.2" - "@storybook/addon-links": "npm:^7.3.2" + "@storybook/addon-a11y": "npm:^7.6.17" + "@storybook/addon-essentials": "npm:^7.6.17" + "@storybook/addon-links": "npm:^7.6.17" "@storybook/addon-styling": "npm:^1.3.5" - "@storybook/blocks": "npm:^7.3.2" - "@storybook/manager-api": "npm:^7.3.2" - "@storybook/react-vite": "npm:^7.3.2" - "@storybook/theming": "npm:^7.3.2" - "@storybook/web-components": "npm:^7.3.2" - "@storybook/web-components-vite": "npm:^7.3.2" + "@storybook/blocks": "npm:^7.6.17" + "@storybook/manager-api": "npm:^7.6.17" + "@storybook/react-vite": "npm:^7.6.17" + "@storybook/theming": "npm:^7.6.17" + "@storybook/web-components": "npm:^7.6.17" + "@storybook/web-components-vite": "npm:^7.6.17" "@types/uuid": "npm:^9.0.0" "@typescript-eslint/eslint-plugin": "npm:^6.9.0" "@typescript-eslint/parser": "npm:^6.9.0" @@ -24621,7 +24621,7 @@ __metadata: react-dom: "npm:^17.0.0" sass: "npm:^1.63.6" size-limit: "npm:^7.0.4" - storybook: "npm:^7.3.2" + storybook: "npm:^7.6.17" stylelint: "npm:^15.10.1" stylelint-config-prettier: "npm:^9.0.5" stylelint-config-standard-scss: "npm:^10.0.0" @@ -28652,7 +28652,7 @@ __metadata: languageName: node linkType: hard -"storybook@npm:^7.3.2": +"storybook@npm:^7.6.17": version: 7.6.17 resolution: "storybook@npm:7.6.17" dependencies: