@proveanything/smartlinks 2.2.5 → 2.2.6

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: 2.2.5 | Generated: 2026-12-04T13:13:18.143Z
3
+ Version: 2.2.6 | Generated: 2026-12-04T13:25:02.911Z
4
4
 
5
5
  This is a concise summary of all available API functions and types.
6
6
 
package/dist/docs/i18n.md CHANGED
@@ -53,6 +53,9 @@ export function useT() {
53
53
  page chunk under `assets/` looks one folder up), then beside the page (a dev server). Pass `baseUrl`
54
54
  instead when you know the folder exactly.
55
55
  - Don't call `i18n.init` from a container or widget: it changes the host's settings.
56
+ - A container or widget runs on the **host's** SDK, not the one in your `package.json`. A host older than
57
+ 2.2.5 has no `forApp`, and calling it there stops your whole panel. Check first and fall back to your
58
+ bundled English: `typeof i18n.forApp === 'function' ? i18n.forApp(...) : <your English only>`.
56
59
  - `forApp` works for a standalone page too, so one `src/i18n.ts` can serve every way the app is shown.
57
60
 
58
61
  In an admin app, `lang` is the person's **Studio language** (buttons and labels). The site's content
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.2.5";
1
+ export declare const SDK_VERSION = "2.2.6";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by scripts/write-version.mjs from package.json. Do not edit.
2
- export const SDK_VERSION = "2.2.5";
2
+ export const SDK_VERSION = "2.2.6";
@@ -1,6 +1,6 @@
1
1
  # Smartlinks API Summary
2
2
 
3
- Version: 2.2.5 | Generated: 2026-12-04T13:13:18.143Z
3
+ Version: 2.2.6 | Generated: 2026-12-04T13:25:02.911Z
4
4
 
5
5
  This is a concise summary of all available API functions and types.
6
6
 
package/docs/i18n.md CHANGED
@@ -53,6 +53,9 @@ export function useT() {
53
53
  page chunk under `assets/` looks one folder up), then beside the page (a dev server). Pass `baseUrl`
54
54
  instead when you know the folder exactly.
55
55
  - Don't call `i18n.init` from a container or widget: it changes the host's settings.
56
+ - A container or widget runs on the **host's** SDK, not the one in your `package.json`. A host older than
57
+ 2.2.5 has no `forApp`, and calling it there stops your whole panel. Check first and fall back to your
58
+ bundled English: `typeof i18n.forApp === 'function' ? i18n.forApp(...) : <your English only>`.
56
59
  - `forApp` works for a standalone page too, so one `src/i18n.ts` can serve every way the app is shown.
57
60
 
58
61
  In an admin app, `lang` is the person's **Studio language** (buttons and labels). The site's content
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proveanything/smartlinks",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",