@buildbase/sdk 0.0.49 → 0.0.50
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 +8 -3
- package/dist/data/index.cjs +1 -1
- package/dist/data/index.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +96 -5
- package/dist/index.mjs +1 -1
- package/dist/react/chunks/SubscriptionDialog-A6oETKbb.cjs +2 -0
- package/dist/react/chunks/SubscriptionDialog-nuMunBn4.mjs +2 -0
- package/dist/react/chunks/ar-BRvKHRYS.cjs +2 -0
- package/dist/react/chunks/ar-IhPhJAZA.mjs +2 -0
- package/dist/react/chunks/de-D3q0vQBG.cjs +2 -0
- package/dist/react/chunks/de-bvh5IFSx.mjs +2 -0
- package/dist/react/chunks/es-B9kiwJmF.cjs +2 -0
- package/dist/react/chunks/es-TyUz4_E1.mjs +2 -0
- package/dist/react/chunks/fr-C500Ytao.cjs +2 -0
- package/dist/react/chunks/fr-CKm-bSvG.mjs +2 -0
- package/dist/react/chunks/hi-CfFhH2uQ.cjs +2 -0
- package/dist/react/chunks/hi-Ck9cPpd-.mjs +2 -0
- package/dist/react/chunks/ja-AM4H1tXw.mjs +2 -0
- package/dist/react/chunks/ja-DfROrx_j.cjs +2 -0
- package/dist/react/chunks/react-CTX0_nOV.cjs +2 -0
- package/dist/react/chunks/react-DzQupoqH.mjs +2 -0
- package/dist/react/chunks/zh-CLmBh-it.cjs +2 -0
- package/dist/react/chunks/zh-DCVPxie-.mjs +2 -0
- package/dist/react/index.cjs +1 -35
- package/dist/react/index.d.ts +7 -1
- package/dist/react/index.mjs +1 -35
- package/package.json +15 -1
package/dist/react/index.d.ts
CHANGED
|
@@ -1842,8 +1842,14 @@ declare function validateRedirectUrl(url: string | null | undefined): string | n
|
|
|
1842
1842
|
/**
|
|
1843
1843
|
* Safely redirect to a URL after validating it.
|
|
1844
1844
|
* Falls back to fallbackUrl if the target URL is invalid.
|
|
1845
|
+
*
|
|
1846
|
+
* Browser-only: navigation requires `window.location`. On non-browser runtimes
|
|
1847
|
+
* (Node, edge, Deno, Bun) there is nothing to navigate, so this is a no-op that
|
|
1848
|
+
* returns `false`. Returns `true` when a navigation was initiated. Server code
|
|
1849
|
+
* that needs the resolved target should call {@link validateRedirectUrl} and
|
|
1850
|
+
* issue the redirect with its own framework (e.g. `Response.redirect`).
|
|
1845
1851
|
*/
|
|
1846
|
-
declare function safeRedirect(url: string | null | undefined, fallbackUrl?: string):
|
|
1852
|
+
declare function safeRedirect(url: string | null | undefined, fallbackUrl?: string): boolean;
|
|
1847
1853
|
|
|
1848
1854
|
/**
|
|
1849
1855
|
* Auth intent preservation — saves and restores the URL the user was on
|