Skip to content
Closed
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/app-degree-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"postdocs": "node ../../scripts/process-readme-props.js"
},
"dependencies": {
"@asu/unity-react-core": "^1.0.0",
"@asu/unity-react-core": "^2.0.0",
"@popperjs/core": "^2.9.2",
"classnames": "^2.3.1",
"prop-types": "^15.7.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/app-rfi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"devDependencies": {
"@asu/shared": "*",
"@asu/unity-bootstrap-theme": "^1.0.0",
"@asu/unity-bootstrap-theme": "*",
"@babel/core": "^7.13.14",
"@babel/eslint-parser": "^7.13.14",
"@babel/plugin-proposal-class-properties": "^7.13.0",
Expand Down Expand Up @@ -79,7 +79,7 @@
"webpack-merge": "^5.8.0"
},
"dependencies": {
"@asu/unity-react-core": "^1.0.0",
"@asu/unity-react-core": "^2.0.0",
"formik": "^2.1.4",
"prop-types": "^15.7.2",
"react-phone-input-2": "2.15.1",
Expand Down
1 change: 1 addition & 0 deletions packages/app-webdir-ui/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ function getAbsolutePath(value) {
}

const config = {
staticDirs: ["../public"],
addons: [
fileURLToPath(import.meta.resolve("../../../.storybook-config/index.js")),
fileURLToPath(import.meta.resolve("../../../.storybook-config/dataLayerListener/index.js")),
Expand Down
10 changes: 10 additions & 0 deletions packages/app-webdir-ui/.storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
import React, { useEffect} from "react";
import { MemoryRouter, useLocation, useSearchParams } from "react-router-dom";
import { initialize, mswLoader } from "msw-storybook-addon";
import { useArgs } from 'storybook/preview-api';

import "@asu/unity-bootstrap-theme/src/scss/unity-bootstrap-theme.bundle.scss";

// The live Web Directory API blocks requests from localhost, so msw mocks
// those endpoints in Storybook. See src/helpers/webDirectoryMockHandlers.js.
initialize({
serviceWorker: {
url: "./mockServiceWorker.js",
},
});

const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
};
Expand Down Expand Up @@ -67,6 +76,7 @@ const preview = {
argTypes,
args,
decorators,
loaders: [mswLoader],
};

export default preview;
7 changes: 7 additions & 0 deletions packages/app-webdir-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
"jsdoc-to-markdown": "^9.0.0",
"jsdoc-ts-utils": "^2.0.1",
"jsdom-screenshot": "^4.0.0",
"msw": "^2.7.0",
"msw-storybook-addon": "^2.0.0",
"postcss-loader": "^6.1.1",
"raw-loader": "^4.0.2",
"sass": "^1.39.2",
Expand All @@ -98,5 +100,10 @@
},
"volta": {
"extends": "../../package.json"
},
"msw": {
"workerDirectory": [
"public"
]
}
}
Loading