diff --git a/example/standalone/package.json b/example/standalone/package.json index c6e7eb7..deb22f1 100644 --- a/example/standalone/package.json +++ b/example/standalone/package.json @@ -27,6 +27,8 @@ "eslint-plugin-react": "^7.34.1", "eslint-plugin-react-hooks": "^4.6.2", "jsdom": "^24.0.0", + "mobx": "^6.12.3", + "mobx-react": "8", "normalize.css": "^8.0.1", "prettier": "^2", "react": "^18.3.1", diff --git a/example/standalone/pnpm-lock.yaml b/example/standalone/pnpm-lock.yaml index a189e17..a5ae351 100644 --- a/example/standalone/pnpm-lock.yaml +++ b/example/standalone/pnpm-lock.yaml @@ -6,6 +6,7 @@ settings: overrides: rollup: npm:@rollup/wasm-node + '@wcrichto/quiz': file:../../js/packages/quiz importers: @@ -36,8 +37,8 @@ importers: specifier: ^4.2.1 version: 4.2.1(vite@5.2.11(@types/node@20.12.12)(sass@1.77.1)) '@wcrichto/quiz': - specifier: ^0.2.16 - version: 0.2.16(mobx-react@8.0.0(mobx@6.12.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(mobx@6.12.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: file:../../js/packages/quiz + version: file:../../js/packages/quiz(mobx-react@8.0.0(mobx@6.12.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(mobx@6.12.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) eslint: specifier: ^8.57.0 version: 8.57.0 @@ -53,6 +54,12 @@ importers: jsdom: specifier: ^24.0.0 version: 24.0.0 + mobx: + specifier: ^6.12.3 + version: 6.12.3 + mobx-react: + specifier: '8' + version: 8.0.0(mobx@6.12.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) normalize.css: specifier: ^8.0.1 version: 8.0.1 @@ -507,8 +514,8 @@ packages: peerDependencies: vite: ^4.2.0 || ^5.0.0 - '@wcrichto/quiz@0.2.16': - resolution: {integrity: sha512-FdyR4aC6uR2H/E5aSZgVBxqMD3yj4mBSqCyL4/fRtk+zGh2QjztJD7EzBEH9rjv1QHMqdVrrR8N3et2R4RajfA==} + '@wcrichto/quiz@file:../../js/packages/quiz': + resolution: {directory: ../../js/packages/quiz, type: directory} peerDependencies: mobx: ^6.9.0 mobx-react: ^8.0.0 @@ -2364,7 +2371,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@wcrichto/quiz@0.2.16(mobx-react@8.0.0(mobx@6.12.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(mobx@6.12.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@wcrichto/quiz@file:../../js/packages/quiz(mobx-react@8.0.0(mobx@6.12.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(mobx@6.12.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@wcrichto/rust-editor': 0.2.0(react@18.3.1) axios: 0.27.2 diff --git a/example/standalone/styles/index.scss b/example/standalone/styles/index.scss index 0ee1923..06501df 100644 --- a/example/standalone/styles/index.scss +++ b/example/standalone/styles/index.scss @@ -1,2 +1,2 @@ @import "normalize.css/normalize.css"; -// @import "@wcrichto/quiz/dist/lib.scss"; \ No newline at end of file +@import "@wcrichto/quiz/dist/lib.scss"; \ No newline at end of file diff --git a/js/packages/quiz/src/lib.scss b/js/packages/quiz/src/lib.scss index 13988b4..2293f72 100644 --- a/js/packages/quiz/src/lib.scss +++ b/js/packages/quiz/src/lib.scss @@ -1,5 +1,3 @@ -@import "@wcrichto/rust-editor/dist/lib.css"; - $mobile-cutoff: 800px; @mixin mobile { diff --git a/js/packages/quiz/src/lib.ts b/js/packages/quiz/src/lib.ts index 9319e2c..94941af 100644 --- a/js/packages/quiz/src/lib.ts +++ b/js/packages/quiz/src/lib.ts @@ -1,3 +1,5 @@ +import "@wcrichto/rust-editor/dist/lib.css"; + export * from "./questions/mod"; export * from "./components/quiz"; export * from "./components/snippet";