Skip to content

Commit

Permalink
chore: update storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac-mason committed Mar 19, 2024
1 parent 883fb7d commit 8dfc8e0
Show file tree
Hide file tree
Showing 4 changed files with 960 additions and 1,865 deletions.
1 change: 0 additions & 1 deletion packages/arancini/.storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import './index.css'

const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
Expand Down
20 changes: 10 additions & 10 deletions packages/arancini/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"@arancini/core": "6.5.0",
"@arancini/events": "6.5.0",
"@arancini/react": "6.5.0",
"@arancini/systems": "6.5.0"
"@arancini/systems": "6.5.0",
"@storybook/test": "^8.0.1"
},
"peerDependencies": {
"react": "^18.0.0",
Expand All @@ -42,14 +43,13 @@
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@storybook/addon-essentials": "^7.6.3",
"@storybook/addon-interactions": "^7.6.3",
"@storybook/addon-links": "^7.6.3",
"@storybook/addon-onboarding": "^1.0.9",
"@storybook/blocks": "^7.6.3",
"@storybook/react": "^7.6.3",
"@storybook/react-vite": "^7.6.7",
"@storybook/testing-library": "^0.2.2",
"@storybook/addon-essentials": "^8.0.1",
"@storybook/addon-interactions": "^8.0.1",
"@storybook/addon-links": "^8.0.1",
"@storybook/addon-onboarding": "^8.0.1",
"@storybook/blocks": "^8.0.1",
"@storybook/react": "^8.0.1",
"@storybook/react-vite": "^8.0.1",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.19",
"@types/three": "^0.160.0",
Expand All @@ -62,7 +62,7 @@
"rollup": "^4.9.4",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-filesize": "^10.0.0",
"storybook": "^7.6.3",
"storybook": "^8.0.1",
"three": "^0.160.1",
"timeline-composer": "^0.1.5",
"typescript": "^5.3.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ class DistanceSystem extends System<Entity> {

onInit(): void {
this.emojis.onEntityAdded.add((entity) => {
const { position: { x, y } } = entity
const {
position: { x, y },
} = entity

const { position } = this.target.first!

Expand Down Expand Up @@ -173,10 +175,7 @@ export const FindTheBomb = () => {

const executor = new Executor(world)

executor
.add(DistanceSystem)
.add(EmojiRendererSystem)
.add(InteractionSystem)
executor.add(DistanceSystem).add(EmojiRendererSystem).add(InteractionSystem)

executor.init()

Expand Down
Loading

0 comments on commit 8dfc8e0

Please sign in to comment.