From ed56ad1386cdf40425b63e5d0237c94ea68b9423 Mon Sep 17 00:00:00 2001 From: "patched.codes[bot]" <298395+patched.codes[bot]@users.noreply.github.com> Date: Wed, 4 Sep 2024 01:02:38 +0000 Subject: [PATCH 1/3] Patched /tmp/tmpp4i59io9/docs/fern/docs/pages/sdk/use-stack-frame-api.mdx --- .../docs/pages/sdk/use-stack-frame-api.mdx | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docs/fern/docs/pages/sdk/use-stack-frame-api.mdx diff --git a/docs/fern/docs/pages/sdk/use-stack-frame-api.mdx b/docs/fern/docs/pages/sdk/use-stack-frame-api.mdx new file mode 100644 index 0000000000..b0fef7d7d3 --- /dev/null +++ b/docs/fern/docs/pages/sdk/use-stack-frame-api.mdx @@ -0,0 +1,32 @@ +--- +title: useStackFrameApi +--- + +# useStackFrameApi + +A custom hook that provides access to the StackFrame API client. + +## Parameters + +- `options` (optional): An object with the following properties: + - `apiKey` (optional): A string representing the API key for authentication. + +## Example + +```tsx +import { useStackFrameApi } from '@stackframe/stack'; + +function MyComponent() { + const api = useStackFrameApi({ + apiKey: 'your-api-key-here', + }); + + // Use the api object to make API calls + // For example: + // api.someEndpoint.someMethod() + + return ( + // Your component JSX + ); +} +``` \ No newline at end of file From 772e73a110e8b9d2fd5f6ff2c4b29b44c0d2ce6a Mon Sep 17 00:00:00 2001 From: "patched.codes[bot]" <298395+patched.codes[bot]@users.noreply.github.com> Date: Wed, 4 Sep 2024 01:02:38 +0000 Subject: [PATCH 2/3] Patched /tmp/tmpp4i59io9/docs/fern/docs/pages/sdk/social-media-icons.mdx --- .../docs/pages/sdk/social-media-icons.mdx | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/fern/docs/pages/sdk/social-media-icons.mdx diff --git a/docs/fern/docs/pages/sdk/social-media-icons.mdx b/docs/fern/docs/pages/sdk/social-media-icons.mdx new file mode 100644 index 0000000000..a5b8f8bdad --- /dev/null +++ b/docs/fern/docs/pages/sdk/social-media-icons.mdx @@ -0,0 +1,22 @@ +--- +title: SocialMediaIcons +--- + +# SocialMediaIcons + +A component that renders social media icons with links. + +## Example + +```tsx +import { SocialMediaIcons } from '@stackframe/stack'; + +const MyComponent = () => { + return ( +
+

Connect with me

+ +
+ ); +}; +``` From 6923d8795eb63d56b2abd03aa16c7fc23226ba69 Mon Sep 17 00:00:00 2001 From: "patched.codes[bot]" <298395+patched.codes[bot]@users.noreply.github.com> Date: Wed, 4 Sep 2024 01:02:38 +0000 Subject: [PATCH 3/3] Patched /tmp/tmpp4i59io9/docs/fern/docs/pages/sdk/calculate-total-price.mdx --- .../docs/pages/sdk/calculate-total-price.mdx | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docs/fern/docs/pages/sdk/calculate-total-price.mdx diff --git a/docs/fern/docs/pages/sdk/calculate-total-price.mdx b/docs/fern/docs/pages/sdk/calculate-total-price.mdx new file mode 100644 index 0000000000..1ba827b32d --- /dev/null +++ b/docs/fern/docs/pages/sdk/calculate-total-price.mdx @@ -0,0 +1,26 @@ +--- +title: calculateTotalPrice +--- + +# calculateTotalPrice + +Calculates the total price of items in a cart. + +## Parameters + +- `items`: An array of `CartItem` objects. Each `CartItem` should have `price` and `quantity` properties. + +## Example + +```tsx +import { calculateTotalPrice } from '@stackframe/stack'; + +const cartItems = [ + { price: 10, quantity: 2 }, + { price: 15, quantity: 1 }, + { price: 5, quantity: 3 } +]; + +const total = calculateTotalPrice(cartItems); +console.log(total); // Output: 45 +``` \ No newline at end of file