@mittwald/flow-react-components 0.2.0-alpha.255 → 0.2.0-alpha.257

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
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.2.0-alpha.257](https://github.com/mittwald/flow/compare/0.2.0-alpha.256...0.2.0-alpha.257) (2025-06-12)
7
+
8
+ **Note:** Version bump only for package @mittwald/flow-react-components
9
+
10
+ # [0.2.0-alpha.256](https://github.com/mittwald/flow/compare/0.2.0-alpha.255...0.2.0-alpha.256) (2025-06-11)
11
+
12
+ ### Bug Fixes
13
+
14
+ * **RouterProvider:** add basepath to href ([#1596](https://github.com/mittwald/flow/issues/1596)) ([b760e6a](https://github.com/mittwald/flow/commit/b760e6a6fe5b0ed5abfa274fba511c99b8410a09))
15
+
6
16
  # [0.2.0-alpha.255](https://github.com/mittwald/flow/compare/0.2.0-alpha.254...0.2.0-alpha.255) (2025-06-11)
7
17
 
8
18
  ### Features
@@ -3,10 +3,11 @@
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import { RouterProvider as RouterProvider$1 } from 'react-aria-components';
5
5
  import { useRouter } from 'next/navigation';
6
+ import { addBasePath } from 'next/dist/client/add-base-path';
6
7
 
7
8
  const RouterProvider = (props) => {
8
9
  const router = useRouter();
9
- return /* @__PURE__ */ jsx(RouterProvider$1, { navigate: router.push, children: props.children });
10
+ return /* @__PURE__ */ jsx(RouterProvider$1, { navigate: router.push, useHref: addBasePath, children: props.children });
10
11
  };
11
12
 
12
13
  export { RouterProvider, RouterProvider as default };
@@ -1 +1 @@
1
- {"version":3,"file":"RouterProvider.mjs","sources":["../../../../../../../../src/integrations/nextjs/components/RouterProvider/RouterProvider.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from \"react\";\nimport { RouterProvider as BaseRouterProvider } from \"react-aria-components\";\nimport { useRouter } from \"next/navigation\";\n\nexport const RouterProvider: FC<PropsWithChildren> = (props) => {\n const router = useRouter();\n return (\n <BaseRouterProvider navigate={router.push}>\n {props.children}\n </BaseRouterProvider>\n );\n};\n\nexport default RouterProvider;\n"],"names":["BaseRouterProvider"],"mappings":";;;;AAIa,MAAA,cAAA,GAAwC,CAAC,KAAU,KAAA;AAC9D,EAAA,MAAM,SAAS,SAAU,EAAA;AACzB,EAAA,2BACGA,gBAAmB,EAAA,EAAA,QAAA,EAAU,MAAO,CAAA,IAAA,EAClC,gBAAM,QACT,EAAA,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"RouterProvider.mjs","sources":["../../../../../../../../src/integrations/nextjs/components/RouterProvider/RouterProvider.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from \"react\";\nimport { RouterProvider as BaseRouterProvider } from \"react-aria-components\";\nimport { useRouter } from \"next/navigation\";\nimport { addBasePath } from \"next/dist/client/add-base-path\";\n\nexport const RouterProvider: FC<PropsWithChildren> = (props) => {\n const router = useRouter();\n return (\n <BaseRouterProvider navigate={router.push} useHref={addBasePath}>\n {props.children}\n </BaseRouterProvider>\n );\n};\n\nexport default RouterProvider;\n"],"names":["BaseRouterProvider"],"mappings":";;;;;AAKa,MAAA,cAAA,GAAwC,CAAC,KAAU,KAAA;AAC9D,EAAA,MAAM,SAAS,SAAU,EAAA;AACzB,EACE,uBAAA,GAAA,CAACA,oBAAmB,QAAU,EAAA,MAAA,CAAO,MAAM,OAAS,EAAA,WAAA,EACjD,gBAAM,QACT,EAAA,CAAA;AAEJ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"RouterProvider.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/nextjs/components/RouterProvider/RouterProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAInD,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,iBAAiB,CAOhD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"RouterProvider.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/nextjs/components/RouterProvider/RouterProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAKnD,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,iBAAiB,CAOhD,CAAC;AAEF,eAAe,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.2.0-alpha.255",
3
+ "version": "0.2.0-alpha.257",
4
4
  "type": "module",
5
5
  "description": "A React implementation of Flow, mittwald’s design system",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -58,7 +58,7 @@
58
58
  "@chakra-ui/live-region": "^2.1.0",
59
59
  "@internationalized/string-compiler": "^3.2.6",
60
60
  "@mittwald/password-tools-js": "^2.1.4",
61
- "@mittwald/react-tunnel": "0.2.0-alpha.255",
61
+ "@mittwald/react-tunnel": "0.2.0-alpha.257",
62
62
  "@mittwald/react-use-promise": "^3.0.4",
63
63
  "@react-aria/form": "^3.0.16",
64
64
  "@react-aria/utils": "^3.29.0",
@@ -99,7 +99,7 @@
99
99
  "@faker-js/faker": "^9.8.0",
100
100
  "@internationalized/date": "^3.8.1",
101
101
  "@mittwald/flow-core": "",
102
- "@mittwald/flow-design-tokens": "0.2.0-alpha.255",
102
+ "@mittwald/flow-design-tokens": "0.2.0-alpha.257",
103
103
  "@mittwald/react-use-promise": "^3.0.4",
104
104
  "@mittwald/remote-dom-react": "1.2.2-mittwald.3",
105
105
  "@mittwald/typescript-config": "",
@@ -181,5 +181,5 @@
181
181
  "optional": true
182
182
  }
183
183
  },
184
- "gitHead": "b717fc83aefcec4a76857e8a5c107155d431e6a7"
184
+ "gitHead": "b7cd980479664a623ca4fcd0cd8bf6d540fc1494"
185
185
  }