Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-next mosaic #685

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions .changeset/big-rules-poke.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/brown-tips-cover.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/eighty-apes-float.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fifty-otters-deliver.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fifty-peaches-change.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fifty-schools-cheer.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/fluffy-onions-cry.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/forty-ways-mix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/funny-experts-brake.md

This file was deleted.

35 changes: 35 additions & 0 deletions .changeset/fuzzy-carpets-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
'@jpmorganchase/mosaic-cli': minor
'@jpmorganchase/mosaic-components': minor
'@jpmorganchase/mosaic-labs-components': minor
'@jpmorganchase/mosaic-content-editor-plugin': minor
'@jpmorganchase/mosaic-core': minor
'@jpmorganchase/mosaic-icons': minor
'@jpmorganchase/mosaic-layouts': minor
'@jpmorganchase/mosaic-loaders': minor
'@jpmorganchase/mosaic-mdx-components': minor
'@jpmorganchase/mosaic-open-api-component': minor
'@jpmorganchase/mosaic-plugins': minor
'@jpmorganchase/mosaic-schemas': minor
'@jpmorganchase/mosaic-serialisers': minor
'@jpmorganchase/mosaic-site': minor
'@jpmorganchase/mosaic-site-components': minor
'@jpmorganchase/mosaic-site-components-next': minor
'@jpmorganchase/mosaic-site-preset-styles': minor
'@jpmorganchase/mosaic-sitemap-component': minor
'@jpmorganchase/mosaic-source-git-repo': minor
'@jpmorganchase/mosaic-source-readme': minor
'@jpmorganchase/mosaic-standard-generator': minor
'@jpmorganchase/mosaic-store': minor
'@jpmorganchase/mosaic-theme': minor
'@jpmorganchase/mosaic-types': minor
'@jpmorganchase/mosaic-create-site': minor
'@jpmorganchase/mosaic-from-http-request': minor
'@jpmorganchase/mosaic-source-figma': minor
'@jpmorganchase/mosaic-source-http': minor
'@jpmorganchase/mosaic-source-local-folder': minor
'@jpmorganchase/mosaic-source-storybook': minor
'@jpmorganchase/mosaic-workflows': minor
---

Refactor Mosaic around the Next.js app router
5 changes: 0 additions & 5 deletions .changeset/grumpy-turkeys-crash.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hungry-owls-jump.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lucky-colts-hang.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/mighty-monkeys-switch.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/nervous-comics-hug.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/perfect-cougars-grab.md

This file was deleted.

1 change: 0 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"@jpmorganchase/mosaic-open-api-component": "0.1.0-beta.9",
"@jpmorganchase/mosaic-site": "0.1.0-beta.9",
"@jpmorganchase/mosaic-site-components": "0.1.0-beta.9",
"@jpmorganchase/mosaic-site-middleware": "0.1.0-beta.9",
"@jpmorganchase/mosaic-site-preset-styles": "0.1.0-beta.9",
"@jpmorganchase/mosaic-standard-generator": "0.1.0-beta.9",
"@jpmorganchase/mosaic-labs-components": "0.1.0-beta.11",
Expand Down
7 changes: 0 additions & 7 deletions .changeset/pretty-otters-report.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/pretty-socks-judge.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/rich-queens-breathe.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sixty-gifts-prove.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/smooth-clouds-tease.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/smooth-dolls-add.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tasty-needles-clean.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/ten-carrots-mix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thick-trees-act.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/warm-tigers-return.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/weak-suits-shake.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/weak-tigers-add.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wicked-impalas-develop.md

This file was deleted.

1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ LICENSE
*.png
*.hbs
*.jpg
*.ico

**/build
**/dist
Expand Down
1 change: 1 addition & 0 deletions docs/author/refs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ You can use Mosaic components with referenced data as well. Below we are using t
<Tiles>
{meta.data.modes.map(mode => (
<TileContent
key={mode}
title={mode}
description={`Documentation about ${mode} of Mosaic`}
eyebrow="Mosaic"
Expand Down
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"scripts": {
"build:site": "turbo run build --filter=@jpmorganchase/mosaic-site",
"build:packages": "turbo run build --filter=!@jpmorganchase/mosaic-site",
"build": "turbo run build",
"clean": "turbo run clean",
"copy:rig:images": "cp -r ./assets/[!.]* ./packages/rig/public/img",
Expand Down Expand Up @@ -56,14 +57,13 @@
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.0.0",
"@types/lodash-es": "^4.17.6",
"@types/node": "^18.0.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/node": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"@vanilla-extract/esbuild-plugin": "^2.3.11",
"@vitest/coverage-istanbul": "^2.1.4",
"concurrently": "^7.1.0",
"del-cli": "^4.0.1",
"esbuild": "0.23.1",
"esbuild-node-externals": "^1.7.0",
Expand All @@ -86,15 +86,13 @@
"npm-run-all": "^4.0.2",
"patch-package": "^7.0.0",
"prettier": "^2.7.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^18.3.0",
"react-dom": "^18.3.0",
"resize-observer-polyfill": "1.5.1",
"typescript": "^5.0.0",
"vitest": "^2.0.0"
},
"dependencies": {
"@types/swagger-ui-react": "^4.18.0",
"swagger-ui-react": "^5.0.0",
"turbo": "latest"
},
"resolutions": {
Expand Down
6 changes: 2 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
"@jpmorganchase/mosaic-types": "^0.1.0-beta.89",
"esbuild": "0.23.1",
"esbuild-node-externals": "^1.0.2",
"fast-glob": "^3.2.7",
"@types/ws": "^8.5.7"
"fast-glob": "^3.2.7"
},
"dependencies": {
"@jpmorganchase/mosaic-core": "^0.1.0-beta.89",
Expand All @@ -59,7 +58,6 @@
"fastify-plugin": "^4.5.1",
"fs-extra": "^10.1.0",
"globby": "^13.1.3",
"md5": "*",
"mkdirp": "^1.0.4"
"md5": "*"
}
}
11 changes: 3 additions & 8 deletions packages/components-labs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,22 @@
"dev": "node ../../scripts/bundle.mjs watch"
},
"devDependencies": {
"@types/styled-components": "^5.1.26",
"@vanilla-extract/esbuild-plugin": "^2.3.11",
"del-cli": "^4.0.1",
"typescript": "^5.0.0"
},
"dependencies": {
"@jpmorganchase/mosaic-components": "^0.1.0-beta.89",
"@jpmorganchase/mosaic-theme": "^0.1.0-beta.89",
"@salt-ds/core": "^1.33.0",
"@salt-ds/core": "^1.37.1",
"@vanilla-extract/css": "^1.6.0",
"@vanilla-extract/recipes": "^0.2.1",
"@vanilla-extract/sprinkles": "^1.3.0",
"d3": "^7.7.0",
"deepmerge": "^2.0.1",
"mermaid": "9.3.0",
"mdx-mermaid": "^1.2.1",
"warning": "^3.0.0"
},
"peerDependencies": {
"@types/react": "^18.3.12",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react": "^18.3.0",
"react-dom": "^18.3.0"
}
}
11 changes: 1 addition & 10 deletions packages/components-labs/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
import { withMarkdownSpacing } from '@jpmorganchase/mosaic-components';
import { Diagram } from './Diagram';
import { Sitemap } from './Sitemap';
import type { SitemapProps } from './Sitemap';
import type { DiagramProps } from './Diagram';
'use client';

export * from './Diagram';
export * from './Sitemap';

export const getLabMarkdownComponents = () => ({
Diagram: withMarkdownSpacing<DiagramProps>(Diagram),
Sitemap: withMarkdownSpacing<SitemapProps>(Sitemap)
});
Loading
Loading