@m4l/components 9.1.110 → 9.1.111

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Initializes Mock Service Worker (MSW) for Storybook
3
+ *
4
+ * MSW is used to intercept and mock network requests during development and testing.
5
+ * This initialization configures MSW to work with Storybook's environment.
6
+ *
7
+ * Configuration details:
8
+ * - Sets up the service worker with the correct path based on the environment
9
+ * - Handles unhandled requests by bypassing them
10
+ * - Configures the service worker scope
11
+ *
12
+ * Environment-specific paths:
13
+ * - Development: /mockServiceWorker.js
14
+ * - Review (MR): /{library_name}/{branch_name}/mockServiceWorker.js
15
+ *
16
+ * The path is determined by the VITE_STORYBOOK_BASE_PATH environment variable:
17
+ * - If set, prepends the value to the service worker path
18
+ * - If not set, uses the root path
19
+ * @see https://github.com/mswjs/msw-storybook-addon#configuring-msw
20
+ */
21
+ export declare const initializeMSW: () => void;
@@ -0,0 +1,2 @@
1
+ export * from './network-mocks';
2
+ export * from './config-msw';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.1.110",
3
+ "version": "9.1.111",
4
4
  "license": "UNLICENSED",
5
5
  "lint-staged": {
6
6
  "*.{js,ts,tsx}": "eslint --fix --max-warnings 0"