@molecule/app-legal-pages-react 4.0.1 → 4.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/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-11-12T04:40:56.099Z
6
+ Generated: 2026-11-22T17:17:30.819Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-legal-pages-react
@@ -52,7 +52,7 @@ import { ContentPageShell, LegalPageLayout, LegalPageSection, TermsPage } from '
52
52
  ## Installation
53
53
 
54
54
  ```bash
55
- npm install @molecule/app-legal-pages-react @molecule/app-react @molecule/app-ui @molecule/app-ui-react react react-router
55
+ npm install @molecule/app-legal-pages-react @molecule/app-react @molecule/app-ui @molecule/app-ui-react react
56
56
  npm install -D @types/react
57
57
  ```
58
58
 
@@ -513,11 +513,10 @@ function TermsPage({
513
513
 
514
514
  Peer dependencies:
515
515
 
516
- - `@molecule/app-react` ^4.0.0
517
- - `@molecule/app-ui` ^1.0.1
516
+ - `@molecule/app-react` ^4.12.0
517
+ - `@molecule/app-ui` ^1.3.11
518
518
  - `@molecule/app-ui-react` ^4.0.0
519
519
  - `react` ^18.0.0 || ^19.0.0
520
- - `react-router` ^7.0.0 || ^8.0.0
521
520
 
522
521
  ### Runtime Dependencies
523
522
 
@@ -525,7 +524,6 @@ Peer dependencies:
525
524
  - `@molecule/app-ui`
526
525
  - `@molecule/app-ui-react`
527
526
  - `react`
528
- - `react-router`
529
527
 
530
528
  - **`appName` is HTML-escaped before interpolation.** The legal bodies are
531
529
  rendered as HTML (`dangerouslySetInnerHTML`); an `appName` carrying
@@ -535,8 +533,9 @@ Peer dependencies:
535
533
  EMPTY string until the locale module is registered — pass your app's
536
534
  `loadContent` (from `src/config.ts`, re-exporting
537
535
  `@molecule/app-locales-legal-default`) or the page/modal body will be blank.
538
- - `PlanUpdatedPage` requires BOTH a react-router `<Router>` ancestor (it renders
539
- a `<Link>`) and wired auth state from `@molecule/app-react` — without an auth
536
+ - `PlanUpdatedPage` requires BOTH the app's router (`RouterProvider`, for the
537
+ `<Link>` it renders from `@molecule/app-react/link`) and wired auth state
538
+ from `@molecule/app-react` — without an auth
540
539
  provider it shows a spinner forever (`state.initialized` never flips). The
541
540
  rest of the package is router-free.
542
541
  - **Name collision:** `PlanUpdatedPage` is also exported by
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Link } from 'react-router';
3
2
  import { useAuth, useTranslation, useVerifyPaymentReturn } from '@molecule/app-react';
3
+ import { Link } from '@molecule/app-react/link';
4
4
  import { getClassMap } from '@molecule/app-ui';
5
5
  import { Button, Flex, Spinner } from '@molecule/app-ui-react';
6
6
  /**
package/dist/index.d.ts CHANGED
@@ -22,8 +22,9 @@
22
22
  * EMPTY string until the locale module is registered — pass your app's
23
23
  * `loadContent` (from `src/config.ts`, re-exporting
24
24
  * `@molecule/app-locales-legal-default`) or the page/modal body will be blank.
25
- * - `PlanUpdatedPage` requires BOTH a react-router `<Router>` ancestor (it renders
26
- * a `<Link>`) and wired auth state from `@molecule/app-react` — without an auth
25
+ * - `PlanUpdatedPage` requires BOTH the app's router (`RouterProvider`, for the
26
+ * `<Link>` it renders from `@molecule/app-react/link`) and wired auth state
27
+ * from `@molecule/app-react` — without an auth
27
28
  * provider it shows a spinner forever (`state.initialized` never flips). The
28
29
  * rest of the package is router-free.
29
30
  * - **Name collision:** `PlanUpdatedPage` is also exported by
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAEH,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AAEH,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA"}
package/dist/index.js CHANGED
@@ -22,8 +22,9 @@
22
22
  * EMPTY string until the locale module is registered — pass your app's
23
23
  * `loadContent` (from `src/config.ts`, re-exporting
24
24
  * `@molecule/app-locales-legal-default`) or the page/modal body will be blank.
25
- * - `PlanUpdatedPage` requires BOTH a react-router `<Router>` ancestor (it renders
26
- * a `<Link>`) and wired auth state from `@molecule/app-react` — without an auth
25
+ * - `PlanUpdatedPage` requires BOTH the app's router (`RouterProvider`, for the
26
+ * `<Link>` it renders from `@molecule/app-react/link`) and wired auth state
27
+ * from `@molecule/app-react` — without an auth
27
28
  * provider it shows a spinner forever (`state.initialized` never flips). The
28
29
  * rest of the package is router-free.
29
30
  * - **Name collision:** `PlanUpdatedPage` is also exported by
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-legal-pages-react",
3
- "version": "4.0.1",
3
+ "version": "4.1.0",
4
4
  "description": "React page scaffolds for Terms, Privacy, and PlanUpdated (i18n-driven, customizable keys)",
5
5
  "homepage": "https://www.molecule.dev/packages/app-legal-pages-react",
6
6
  "type": "module",
@@ -34,22 +34,20 @@
34
34
  "directory": "packages/app/features/legal-pages-react"
35
35
  },
36
36
  "peerDependencies": {
37
- "@molecule/app-react": "^4.0.0",
38
- "@molecule/app-ui": "^1.0.1",
37
+ "@molecule/app-react": "^4.12.0",
38
+ "@molecule/app-ui": "^1.3.11",
39
39
  "@molecule/app-ui-react": "^4.0.0",
40
- "react": "^18.0.0 || ^19.0.0",
41
- "react-router": "^7.0.0 || ^8.0.0"
40
+ "react": "^18.0.0 || ^19.0.0"
42
41
  },
43
42
  "devDependencies": {
44
- "@molecule/app-react": "4.1.2",
45
- "@molecule/app-ui": "1.3.11",
46
- "@molecule/app-ui-react": "4.1.0",
43
+ "@molecule/app-react": "4.12.0",
44
+ "@molecule/app-ui": "1.5.0",
45
+ "@molecule/app-ui-react": "4.3.0",
47
46
  "@types/node": "26.6.5",
48
47
  "@types/react": "19.3.0",
49
48
  "@types/react-dom": "19.3.0",
50
49
  "react": "19.3.1",
51
50
  "react-dom": "19.3.1",
52
- "react-router": "8.5.0",
53
51
  "typescript": "6.0.3",
54
52
  "vitest": "4.1.12"
55
53
  }