-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into date-range-picker-…
…ux-enhancements
- Loading branch information
Showing
24 changed files
with
4,572 additions
and
3,894 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@ag.ds-next/yourgov': patch | ||
--- | ||
|
||
yourgov: Simple markup and UI fixes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@ag.ds-next/docs': patch | ||
--- | ||
|
||
docs: Remove unused react-simple-code-editor. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
'@ag.ds-next/docs': minor | ||
--- | ||
|
||
docs: Update Storybook to version 8, update NextJS and Playroom to latest minor version. | ||
|
||
react: Dependency updates. | ||
|
||
yourgov: Dependency updates. | ||
|
||
example-site: Dependency updates. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@ag.ds-next/react': patch | ||
--- | ||
|
||
callout: Remove callout in control group story as we no longer support this pattern. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
# Enable version updates for npm | ||
- package-ecosystem: 'npm' | ||
# Look for `package.json` and `lock` files in the `root` directory | ||
directory: '/' | ||
# Check the npm registry for updates every day (weekdays) | ||
schedule: | ||
interval: 'weekly' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,97 +1,31 @@ | ||
import path from 'path'; | ||
import { existsSync } from 'fs'; | ||
import { readdir } from 'fs/promises'; | ||
import type { StorybookConfig } from '@storybook/react-vite'; | ||
import type { StorybookConfig } from '@storybook/react-webpack5'; | ||
|
||
const config: StorybookConfig = { | ||
framework: { | ||
name: '@storybook/react-vite', | ||
options: {}, | ||
}, | ||
core: { | ||
builder: '@storybook/builder-vite', | ||
}, | ||
features: { | ||
storyStoreV7: false, | ||
buildStoriesJson: true, | ||
}, | ||
framework: '@storybook/nextjs', | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-a11y', | ||
{ name: '@storybook/addon-essentials', options: { background: false } }, | ||
{ | ||
name: '@storybook/addon-essentials', | ||
options: { background: false }, | ||
}, | ||
], | ||
stories: [ | ||
'../packages/*/src/**/*.stories.@(ts|tsx)', | ||
'../example-site/**/*.stories.@(ts|tsx)', | ||
'../docs/content/**/*.stories.@(ts|tsx)', | ||
'./stories/**/*.stories.@(ts|tsx)', | ||
], | ||
core: { | ||
builder: { | ||
name: '@storybook/builder-webpack5', | ||
options: {}, | ||
}, | ||
}, | ||
staticDirs: ['../example-site/public'], | ||
// Extend the vite config to work in a monorepo | ||
// See https://vitejs.dev/guide/dep-pre-bundling.html#monorepos-and-linked-dependencies | ||
viteFinal: async function viteConfig(config) { | ||
const entryPoints = await getEntryPoints(); | ||
const include = config.build?.commonjsOptions?.include; | ||
|
||
return { | ||
...config, | ||
define: { | ||
...config.define, | ||
'process.env': {}, | ||
}, | ||
resolve: { | ||
alias: { | ||
'next/router': 'next-router-mock', | ||
}, | ||
}, | ||
optimizeDeps: { | ||
...config.optimizeDeps, | ||
include: [ | ||
...(config.optimizeDeps?.include ?? []), | ||
...entryPoints.map((name) => `@ag.ds-next/react/${name}`), | ||
], | ||
}, | ||
build: { | ||
...config.build, | ||
rollupOptions: { | ||
...config.build?.rollupOptions, | ||
onwarn(warning, defaultHandler) { | ||
if ( | ||
warning.message.startsWith( | ||
'Module level directives cause errors when bundled, "use client"' | ||
) || | ||
warning.message === | ||
"Error when using sourcemap for reporting an error: Can't resolve original location of error." | ||
) { | ||
return; | ||
} | ||
defaultHandler(warning); | ||
}, | ||
}, | ||
commonjsOptions: { | ||
...config.build?.commonjsOptions, | ||
include: [ | ||
...(include ? (Array.isArray(include) ? include : [include]) : []), | ||
/(packages\/react.+.cjs.js)/, | ||
/node_modules/, | ||
], | ||
}, | ||
}, | ||
}; | ||
typescript: { | ||
reactDocgen: false, | ||
}, | ||
}; | ||
|
||
export default config; | ||
|
||
async function getEntryPoints() { | ||
const basePath = `${process.cwd()}/packages/react`; | ||
|
||
// Get the contents of the `@ag.ds-next/react` package | ||
const folderContents = await readdir(basePath, { | ||
withFileTypes: true, | ||
}); | ||
|
||
return folderContents | ||
.filter(({ name }) => existsSync(path.join(basePath, name, 'package.json'))) | ||
.map(({ name }) => name); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.