@squide/firefly-rsbuild-storybook 2.0.6 → 2.1.0

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @squide/firefly-rsbuild-storybook
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#559](https://github.com/workleap/wl-squide/pull/559) [`33b1cd6`](https://github.com/workleap/wl-squide/commit/33b1cd639ef97e9d9fc892918ab6cbd08e6b91e9) Thanks [@patricklafrance](https://github.com/patricklafrance)! - React Router loaders execution is now delayed until MSW is ready.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`33b1cd6`](https://github.com/workleap/wl-squide/commit/33b1cd639ef97e9d9fc892918ab6cbd08e6b91e9)]:
12
+ - @squide/firefly@16.2.0
13
+
14
+ ## 2.0.7
15
+
16
+ ### Patch Changes
17
+
18
+ - [#553](https://github.com/workleap/wl-squide/pull/553) [`7b4b742`](https://github.com/workleap/wl-squide/commit/7b4b742c9dbc9bb138e7ba4147c09d506b0bcb47) Thanks [@claude](https://github.com/apps/claude)! - Updated dependencies to their latest versions.
19
+
3
20
  ## 2.0.6
4
21
 
5
22
  ### Patch Changes
@@ -30,7 +30,7 @@ function FireflyDecorator(props) {
30
30
  runtime: runtime,
31
31
  children: /*#__PURE__*/ jsx(AppRouter, {
32
32
  strictMode: false,
33
- children: ({ rootRoute, routerProviderProps })=>{
33
+ children: ({ rootRoute, routerProps, routerProviderProps })=>{
34
34
  return /*#__PURE__*/ jsx(RouterProvider, {
35
35
  router: createMemoryRouter([
36
36
  {
@@ -43,6 +43,7 @@ function FireflyDecorator(props) {
43
43
  ]
44
44
  }
45
45
  ], {
46
+ ...routerProps,
46
47
  initialEntries: [
47
48
  "/story"
48
49
  ]
@@ -1 +1 @@
1
- {"version":3,"file":"withFireflyDecorator.js","sources":["../src/withFireflyDecorator.tsx"],"sourcesContent":["import { AppRouter, FireflyProvider, FireflyRuntime } from \"@squide/firefly\";\nimport type { PropsWithChildren } from \"react\";\nimport { createMemoryRouter } from \"react-router\";\nimport { RouterProvider } from \"react-router/dom\";\nimport { Decorator } from \"storybook-react-rsbuild\";\n\nexport function withFireflyDecorator(runtime: FireflyRuntime): Decorator {\n return story => {\n return (\n <FireflyDecorator runtime={runtime}>\n {story()}\n </FireflyDecorator>\n );\n };\n}\n\nexport interface FireflyDecoratorProps extends PropsWithChildren {\n runtime: FireflyRuntime;\n}\n\nexport function FireflyDecorator(props: FireflyDecoratorProps) {\n const {\n runtime,\n children: story\n } = props;\n\n return (\n <FireflyProvider runtime={runtime}>\n <AppRouter strictMode={false}>\n {({ rootRoute, routerProviderProps }) => {\n return (\n <RouterProvider\n router={createMemoryRouter([\n {\n element: rootRoute,\n children: [\n {\n path: \"/story\",\n element: story\n }\n ]\n }\n ], {\n initialEntries: [\"/story\"]\n })}\n {...routerProviderProps}\n />\n );\n }}\n </AppRouter>\n </FireflyProvider>\n );\n}\n"],"names":["AppRouter","FireflyProvider","createMemoryRouter","RouterProvider","withFireflyDecorator","runtime","story","FireflyDecorator","props","rootRoute","routerProviderProps"],"mappings":";;;;;;;;;;;;;;;AAA6E;AAE3B;AACA;AAG3C,SAASI,qBAAqBC,OAAuB;IACxD,OAAOC,CAAAA;QACH,qBACI,IAACC;YAAiB,SAASF;sBACtBC;;IAGb;AACJ;AAMO,SAASC,iBAAiBC,KAA4B;IACzD,MAAM,EACFH,OAAO,EACP,UAAUC,KAAK,EAClB,GAAGE;IAEJ,qBACI,IAACP,eAAeA;QAAC,SAASI;kBACtB,kBAACL,SAASA;YAAC,YAAY;sBAClB,CAAC,EAAES,SAAS,EAAEC,mBAAmB,EAAE;gBAChC,qBACI,IAACP,cAAcA;oBACX,QAAQD,kBAAkBA,CAAC;wBACvB;4BACI,SAASO;4BACT,UAAU;gCACN;oCACI,MAAM;oCACN,SAASH;gCACb;6BACH;wBACL;qBACH,EAAE;wBACC,gBAAgB;4BAAC;yBAAS;oBAC9B;oBACC,GAAGI,mBAAmB;;YAGnC;;;AAIhB"}
1
+ {"version":3,"file":"withFireflyDecorator.js","sources":["../src/withFireflyDecorator.tsx"],"sourcesContent":["import { AppRouter, FireflyProvider, FireflyRuntime } from \"@squide/firefly\";\nimport type { PropsWithChildren } from \"react\";\nimport { createMemoryRouter } from \"react-router\";\nimport { RouterProvider } from \"react-router/dom\";\nimport { Decorator } from \"storybook-react-rsbuild\";\n\nexport function withFireflyDecorator(runtime: FireflyRuntime): Decorator {\n return story => {\n return (\n <FireflyDecorator runtime={runtime}>\n {story()}\n </FireflyDecorator>\n );\n };\n}\n\nexport interface FireflyDecoratorProps extends PropsWithChildren {\n runtime: FireflyRuntime;\n}\n\nexport function FireflyDecorator(props: FireflyDecoratorProps) {\n const {\n runtime,\n children: story\n } = props;\n\n return (\n <FireflyProvider runtime={runtime}>\n <AppRouter strictMode={false}>\n {({ rootRoute, routerProps, routerProviderProps }) => {\n return (\n <RouterProvider\n router={createMemoryRouter([\n {\n element: rootRoute,\n children: [\n {\n path: \"/story\",\n element: story\n }\n ]\n }\n ], {\n ...routerProps,\n initialEntries: [\"/story\"]\n })}\n {...routerProviderProps}\n />\n );\n }}\n </AppRouter>\n </FireflyProvider>\n );\n}\n"],"names":["AppRouter","FireflyProvider","createMemoryRouter","RouterProvider","withFireflyDecorator","runtime","story","FireflyDecorator","props","rootRoute","routerProps","routerProviderProps"],"mappings":";;;;;;;;;;;;;;;AAA6E;AAE3B;AACA;AAG3C,SAASI,qBAAqBC,OAAuB;IACxD,OAAOC,CAAAA;QACH,qBACI,IAACC;YAAiB,SAASF;sBACtBC;;IAGb;AACJ;AAMO,SAASC,iBAAiBC,KAA4B;IACzD,MAAM,EACFH,OAAO,EACP,UAAUC,KAAK,EAClB,GAAGE;IAEJ,qBACI,IAACP,eAAeA;QAAC,SAASI;kBACtB,kBAACL,SAASA;YAAC,YAAY;sBAClB,CAAC,EAAES,SAAS,EAAEC,WAAW,EAAEC,mBAAmB,EAAE;gBAC7C,qBACI,IAACR,cAAcA;oBACX,QAAQD,kBAAkBA,CAAC;wBACvB;4BACI,SAASO;4BACT,UAAU;gCACN;oCACI,MAAM;oCACN,SAASH;gCACb;6BACH;wBACL;qBACH,EAAE;wBACC,GAAGI,WAAW;wBACd,gBAAgB;4BAAC;yBAAS;oBAC9B;oBACC,GAAGC,mBAAmB;;YAGnC;;;AAIhB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@squide/firefly-rsbuild-storybook",
3
3
  "author": "Workleap",
4
- "version": "2.0.6",
4
+ "version": "2.1.0",
5
5
  "description": "Squide firefly helpers for Storybook and Rsbuild.",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "react": "^18.0.0 || ^19.0.0",
36
36
  "react-dom": "^18.0.0 || ^19.0.0",
37
37
  "react-router": "^7.13.1",
38
- "storybook": "^10.2.12",
38
+ "storybook": "^10.2.14",
39
39
  "storybook-react-rsbuild": "^3.3.0"
40
40
  },
41
41
  "peerDependenciesMeta": {
@@ -47,9 +47,9 @@
47
47
  "@workleap-telemetry/core": "^2.0.0",
48
48
  "@workleap/logging": "^1.3.6",
49
49
  "@squide/env-vars": "^1.4.19",
50
- "@squide/firefly": "^16.1.12",
51
50
  "@squide/launch-darkly": "^1.0.10",
52
- "@squide/msw": "^4.0.17"
51
+ "@squide/msw": "^4.0.17",
52
+ "@squide/firefly": "^16.2.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@eslint/js": "9.39.2",
@@ -59,13 +59,13 @@
59
59
  "@types/react": "19.2.14",
60
60
  "@types/react-dom": "19.2.3",
61
61
  "@typescript-eslint/parser": "8.56.1",
62
- "@typescript/native-preview": "7.0.0-dev.20260224.1",
62
+ "@typescript/native-preview": "7.0.0-dev.20260303.1",
63
63
  "@vitejs/plugin-react": "5.1.4",
64
64
  "@workleap/eslint-configs": "1.1.13",
65
65
  "@workleap/rslib-configs": "1.1.7",
66
66
  "@workleap/typescript-configs": "3.0.7",
67
67
  "eslint": "9.39.2",
68
- "happy-dom": "20.7.0",
68
+ "happy-dom": "20.8.3",
69
69
  "typescript": "5.9.3",
70
70
  "typescript-eslint": "8.54.0",
71
71
  "vitest": "4.0.18"
@@ -27,7 +27,7 @@ export function FireflyDecorator(props: FireflyDecoratorProps) {
27
27
  return (
28
28
  <FireflyProvider runtime={runtime}>
29
29
  <AppRouter strictMode={false}>
30
- {({ rootRoute, routerProviderProps }) => {
30
+ {({ rootRoute, routerProps, routerProviderProps }) => {
31
31
  return (
32
32
  <RouterProvider
33
33
  router={createMemoryRouter([
@@ -41,6 +41,7 @@ export function FireflyDecorator(props: FireflyDecoratorProps) {
41
41
  ]
42
42
  }
43
43
  ], {
44
+ ...routerProps,
44
45
  initialEntries: ["/story"]
45
46
  })}
46
47
  {...routerProviderProps}