@proveanything/smartlinks 1.8.9 → 1.8.10

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.
@@ -1,6 +1,6 @@
1
1
  # Smartlinks API Summary
2
2
 
3
- Version: 1.8.9 | Generated: 2026-03-19T15:02:36.521Z
3
+ Version: 1.8.10 | Generated: 2026-03-19T15:24:09.009Z
4
4
 
5
5
  This is a concise summary of all available API functions and types.
6
6
 
@@ -302,15 +302,15 @@ See `widgets.md` for the full `NavigationRequest` documentation and additional e
302
302
 
303
303
  ## Architecture
304
304
 
305
- Containers use **MemoryRouter** (not HashRouter) because the parent app owns the browser's URL bar. Context is passed via props rather than URL parameters. Each container gets its own `QueryClient` to avoid cache collisions with the parent app.
305
+ The framework wraps containers in a **MemoryRouter** (not HashRouter) because the parent app owns the browser's URL bar. Context is passed via props rather than URL parameters. Each container gets its own `QueryClient` to avoid cache collisions with the parent app.
306
306
 
307
307
  ```
308
308
  Parent App (owns URL bar, provides globals)
309
- └── <PublicContainer> Container component
310
- ├── QueryClientProvider (isolated)
311
- ├── MemoryRouter (internal routing)
312
- ├── LanguageProvider
313
- └── PublicPage (+ all sub-routes)
309
+ └── MemoryRouter Framework provides this
310
+ └── <PublicContainer> ← Container component (no Router!)
311
+ ├── QueryClientProvider (isolated)
312
+ ├── LanguageProvider
313
+ └── Routes/Route (internal navigation)
314
314
  ```
315
315
 
316
316
  ---
@@ -417,7 +417,7 @@ src/containers/
417
417
  1. Create your container component in `src/containers/MyContainer.tsx`
418
418
  2. Export it from `src/containers/index.ts`
419
419
  3. Add it to the `CONTAINER_MANIFEST` in `src/containers/index.ts`
420
- 4. Ensure it uses `MemoryRouter` (not HashRouter)
420
+ 4. Ensure it does NOT include a Router wrapper (framework provides `MemoryRouter`)
421
421
  5. Give it its own `QueryClient` to avoid cache collisions
422
422
 
423
423
  ---
@@ -442,7 +442,7 @@ src/containers/
442
442
  | -------------------------- | ---------------------------------------- | ---------------------------------------------------- |
443
443
  | Container doesn't render | Missing shared globals | Ensure all Shared Dependencies are on `window` |
444
444
  | Styles don't apply | Missing `containers.css` | Load the CSS file alongside the JS bundle |
445
- | Routing doesn't work | Using HashRouter instead of MemoryRouter | Containers must use MemoryRouter |
445
+ | Routing doesn't work | Container includes a Router wrapper | Remove all Router wrappers (framework provides MemoryRouter) |
446
446
  | Query cache conflicts | Sharing parent's QueryClient | Each container needs its own `QueryClient` instance |
447
447
  | `cva.cva` runtime error | Global set to lowercase `cva` | Use uppercase `CVA` for the global name |
448
448
  | Navigation does nothing | Using legacy string with `onNavigate` | Use structured `NavigationRequest` object instead |
@@ -1,6 +1,6 @@
1
1
  # Smartlinks API Summary
2
2
 
3
- Version: 1.8.9 | Generated: 2026-03-19T15:02:36.521Z
3
+ Version: 1.8.10 | Generated: 2026-03-19T15:24:09.009Z
4
4
 
5
5
  This is a concise summary of all available API functions and types.
6
6
 
@@ -302,15 +302,15 @@ See `widgets.md` for the full `NavigationRequest` documentation and additional e
302
302
 
303
303
  ## Architecture
304
304
 
305
- Containers use **MemoryRouter** (not HashRouter) because the parent app owns the browser's URL bar. Context is passed via props rather than URL parameters. Each container gets its own `QueryClient` to avoid cache collisions with the parent app.
305
+ The framework wraps containers in a **MemoryRouter** (not HashRouter) because the parent app owns the browser's URL bar. Context is passed via props rather than URL parameters. Each container gets its own `QueryClient` to avoid cache collisions with the parent app.
306
306
 
307
307
  ```
308
308
  Parent App (owns URL bar, provides globals)
309
- └── <PublicContainer> Container component
310
- ├── QueryClientProvider (isolated)
311
- ├── MemoryRouter (internal routing)
312
- ├── LanguageProvider
313
- └── PublicPage (+ all sub-routes)
309
+ └── MemoryRouter Framework provides this
310
+ └── <PublicContainer> ← Container component (no Router!)
311
+ ├── QueryClientProvider (isolated)
312
+ ├── LanguageProvider
313
+ └── Routes/Route (internal navigation)
314
314
  ```
315
315
 
316
316
  ---
@@ -417,7 +417,7 @@ src/containers/
417
417
  1. Create your container component in `src/containers/MyContainer.tsx`
418
418
  2. Export it from `src/containers/index.ts`
419
419
  3. Add it to the `CONTAINER_MANIFEST` in `src/containers/index.ts`
420
- 4. Ensure it uses `MemoryRouter` (not HashRouter)
420
+ 4. Ensure it does NOT include a Router wrapper (framework provides `MemoryRouter`)
421
421
  5. Give it its own `QueryClient` to avoid cache collisions
422
422
 
423
423
  ---
@@ -442,7 +442,7 @@ src/containers/
442
442
  | -------------------------- | ---------------------------------------- | ---------------------------------------------------- |
443
443
  | Container doesn't render | Missing shared globals | Ensure all Shared Dependencies are on `window` |
444
444
  | Styles don't apply | Missing `containers.css` | Load the CSS file alongside the JS bundle |
445
- | Routing doesn't work | Using HashRouter instead of MemoryRouter | Containers must use MemoryRouter |
445
+ | Routing doesn't work | Container includes a Router wrapper | Remove all Router wrappers (framework provides MemoryRouter) |
446
446
  | Query cache conflicts | Sharing parent's QueryClient | Each container needs its own `QueryClient` instance |
447
447
  | `cva.cva` runtime error | Global set to lowercase `cva` | Use uppercase `CVA` for the global name |
448
448
  | Navigation does nothing | Using legacy string with `onNavigate` | Use structured `NavigationRequest` object instead |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proveanything/smartlinks",
3
- "version": "1.8.9",
3
+ "version": "1.8.10",
4
4
  "description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",