You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sidebars are defined per platform in `src/data/sidebars/*.json` (ios, android, react-native, flutter, unity, kmp, capacitor, tutorial, api). Each entry references an article by its filename-based `id`. To add an article to navigation, add its id to the appropriate sidebar JSON.
39
39
40
+
**Always use sidebar JSON files as the source of truth** for discovering which articles exist in a section. Do not glob MDX files — the sidebar defines what is published and how it is organized. Match the feature area to the correct sidebar file first, then read the relevant entries.
**In practice, almost all screenshots live in `src/assets/shared/img/`** (including subdirectories like `flow-builder/`). When looking for new screenshots, check here first.
This text flows beside the image. You can use paragraphs,
154
+
bullet lists, and other content here.
155
+
156
+
* Setting one
157
+
* Setting two
158
+
* Setting three
159
+
160
+
### This subsection heading does NOT clear the float
161
+
162
+
More text still flows beside the image.
163
+
164
+
## Next same-level heading (clears the float automatically)
165
+
```
166
+
167
+
**Float clearing rules:**
168
+
169
+
The float is automatically cleared (text stops flowing beside the image) before:
170
+
171
+
1.**A heading at the same or higher level** as the heading that precedes the float. For example, if the float follows an `##` heading, only the next `##` or `#` heading clears it. Any `###` subheadings within the section continue to flow beside the image.
172
+
2.**A subsection that contains an image or a table.** If a `###` subsection after the float contains a `ZoomImage` (floating or not) or a markdown table, the float clears before that subsection heading, because these elements need full width.
173
+
3.**A standalone image or table** that appears directly after the float (not inside a subsection).
174
+
175
+
**Guidelines:**
176
+
- Use for narrow images (300-400px) with enough adjacent text (at least 4-6 lines) to fill the space beside the image
177
+
- Avoid for wide screenshots
178
+
- Avoid when there is very little text before the next heading, as it creates awkward whitespace
179
+
- On mobile (<768px), the image automatically stacks vertically at full width
180
+
- Callouts (`:::note`, `:::tip`, etc.) inside a float section shrink to fit the available space beside the image instead of wrapping around it
181
+
138
182
### 2. Tabs - Tabbed content
139
183
140
184
Create tabbed interfaces to organize platform-specific or alternative content.
@@ -460,6 +504,97 @@ import { CompoundCalculator } from '../../../components/CompoundCalculator';
460
504
/>
461
505
```
462
506
507
+
### 9. SDKv4 / SDKv3 — SDK version tabs
508
+
509
+
Use these wrappers to show different content to SDK v4+ and SDK v3 users on the same page. When both are present, a tab bar is automatically injected below the article title — no extra setup needed.
510
+
511
+
**Auto-registered**: no import required.
512
+
513
+
**Usage:**
514
+
515
+
```mdx
516
+
<SDKv4>
517
+
518
+
Everything in here is shown when the reader selects the **SDK v4+** tab.
519
+
Intro text, code samples, callouts — all content goes inside.
520
+
521
+
</SDKv4>
522
+
523
+
<SDKv3>
524
+
525
+
Everything in here is shown when the reader selects the **SDK v3** tab.
526
+
Duplicate the content and adjust for the legacy API.
527
+
528
+
</SDKv3>
529
+
```
530
+
531
+
**Features:**
532
+
- The tab bar appears automatically whenever both `<SDKv4>` and `<SDKv3>` blocks exist on a page. Pages without them are unaffected.
533
+
- The **SDK v3** tab always shows a **Legacy** badge — no extra markup needed.
534
+
- The reader's tab choice is persisted in `localStorage` across pages.
535
+
-**Markdown & LLM export**: `<SDKv4>` content is kept (wrapper stripped). `<SDKv3>` content is replaced with an explicit LLM instruction block that tells AI assistants to use the legacy API only for migration or troubleshooting — never for new integrations.
536
+
537
+
---
538
+
539
+
### 9. MethodPromo — Method feature highlight
540
+
541
+
A visual card that highlights a unified SDK method and what it covers. Designed for use at the top of SDK v4+ sections to help readers immediately understand scope before they dive into code.
542
+
543
+
**Auto-registered**: no import required.
544
+
545
+
**Basic usage (all defaults):**
546
+
547
+
```mdx
548
+
<MethodPromomethod="getFlow" />
549
+
```
550
+
551
+
This renders a card titled **"What `getFlow` retrieves"** with three default columns (Flows, Paywall Builder paywalls, Onboardings) and a footer link to the manual integration guide for the current platform. The footer link resolves automatically — no props needed.
552
+
553
+
**Custom label:**
554
+
555
+
```mdx
556
+
<MethodPromomethod="presentPaywall"label="How presentPaywall renders your paywall" />
557
+
```
558
+
559
+
The method name is always highlighted as code inside the label, wherever it appears in the string.
Copy file name to clipboardExpand all lines: _old/local-fallback-onboarding.mdx
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,6 @@ Follow the instructions below to download the file and add it to your applicatio
18
18
19
19
:::important
20
20
Fallback onboardings **require an internet connection**, since onboarding content is always stored online. The fallback file only stores the onboardings' configuration.
21
-
22
-
Read the [onboarding offline mode](onboarding-offline) article to understand what happens when the application cannot load the onboarding.
0 commit comments