Skip to content

Commit 919e5b1

Browse files
committed
merge commit
2 parents a90d9d3 + e7b8cb7 commit 919e5b1

108 files changed

Lines changed: 2423 additions & 1245 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
# Production
55
/build
6+
/public
67

78
# Generated files
89
.docusaurus
@@ -27,3 +28,194 @@ yarn-error.log*
2728
# VSCode
2829
/.vscode/*
2930
.astro
31+
/SNAGs/2.0/7356113-CleanShot_2023-08-21_at_15.08.512x.snagx
32+
/SNAGs/2.0/asa-disable.snagx
33+
/SNAGs/3.0/1d1a1f9-CleanShot_2023-07-28_at_16.38.192x.snagx
34+
/SNAGs/3.0/7181f82-CleanShot_2023-08-17_at_15.10.262x.webp.snagx
35+
/SNAGs/3.0/ab-test-type.snagx
36+
/SNAGs/3.0/access-level-inherited.snagx
37+
/SNAGs/3.0/action-blocks.snagx
38+
/SNAGs/3.0/action-blocks-create.snagx
39+
/SNAGs/3.0/action-blocks-page.snagx
40+
/SNAGs/3.0/action-getPaywallResult.snagx
41+
/SNAGs/3.0/action-output-paywallResult.snagx
42+
/SNAGs/3.0/action-outputs.snagx
43+
/SNAGs/3.0/action_flow_editor.snagx
44+
/SNAGs/3.0/action_name.snagx
45+
/SNAGs/3.0/action_trigger.snagx
46+
/SNAGs/3.0/actions.snagx
47+
/SNAGs/3.0/actions-makepurchase.snagx
48+
/SNAGs/3.0/activate.snagx
49+
/SNAGs/3.0/adapty-paywall-product.snagx
50+
/SNAGs/3.0/adapty_paywall.snagx
51+
/SNAGs/3.0/AdaptyGetPaywallResult.snagx
52+
/SNAGs/3.0/adaptyPaywall.snagx
53+
/SNAGs/3.0/AdaptyPaywallProduct.snagx
54+
/SNAGs/3.0/AdaptyPublicSdkKey.snagx
55+
/SNAGs/3.0/add-action.snagx
56+
/SNAGs/3.0/add-action-products.snagx
57+
/SNAGs/3.0/add-activateAdaptyAction.snagx
58+
/SNAGs/3.0/add-conditional.snagx
59+
/SNAGs/3.0/add-dependency.snagx
60+
/SNAGs/3.0/add-parameter.snagx
61+
/SNAGs/3.0/add-PB-locale.snagx
62+
/SNAGs/3.0/add-product-title-to-page.snagx
63+
/SNAGs/3.0/add-tab-group.snagx
64+
/SNAGs/3.0/add_action.snagx
65+
/SNAGs/3.0/add_field.snagx
66+
/SNAGs/3.0/add_locale.snagx
67+
/SNAGs/3.0/asa-disable.snagx
68+
/SNAGs/3.0/bb0b34c-CleanShot_2023-07-28_at_16.40.362x.snagx
69+
/SNAGs/3.0/bottom-sheet.snagx
70+
/SNAGs/3.0/bottom-sheet-button.snagx
71+
/SNAGs/3.0/bottom-sheet-divided-plans.snagx
72+
/SNAGs/3.0/check-makePurchaseResult.snagx
73+
/SNAGs/3.0/check-subscription-end.snagx
74+
/SNAGs/3.0/choose_localization.snagx
75+
/SNAGs/3.0/close.snagx
76+
/SNAGs/3.0/close-editor.snagx
77+
/SNAGs/3.0/combined-condition.snagx
78+
/SNAGs/3.0/compare-accesslevels.snagx
79+
/SNAGs/3.0/condition-getPaywallResult.snagx
80+
/SNAGs/3.0/condition-has-field.snagx
81+
/SNAGs/3.0/condition-makePurchase.snagx
82+
/SNAGs/3.0/confirm.snagx
83+
/SNAGs/3.0/copy_locale.snagx
84+
/SNAGs/3.0/create_AB_cross_test.snagx
85+
/SNAGs/3.0/create_page_state_variable.snagx
86+
/SNAGs/3.0/cross-ab-test.snagx
87+
/SNAGs/3.0/custom-image.snagx
88+
/SNAGs/3.0/custom-media-predefined-id.snagx
89+
/SNAGs/3.0/custom_actions.snagx
90+
/SNAGs/3.0/custom_actions-products.snagx
91+
/SNAGs/3.0/custom_code.snagx
92+
/SNAGs/3.0/dark-mode.snagx
93+
/SNAGs/3.0/dark-mode-switch.snagx
94+
/SNAGs/3.0/dartmain.snagx
95+
/SNAGs/3.0/data-structure-field.snagx
96+
/SNAGs/3.0/data-structure-field-value.snagx
97+
/SNAGs/3.0/divided-plans.snagx
98+
/SNAGs/3.0/double-click-buy.snagx
99+
/SNAGs/3.0/e83e891-timer.snagx
100+
/SNAGs/3.0/edit-priority.snagx
101+
/SNAGs/3.0/error.snagx
102+
/SNAGs/3.0/expand_adapty_ff_plugin.snagx
103+
/SNAGs/3.0/false.snagx
104+
/SNAGs/3.0/fetch_paywall_add_action.snagx
105+
/SNAGs/3.0/field-paywall.snagx
106+
/SNAGs/3.0/field_name.snagx
107+
/SNAGs/3.0/gePaywallActionBlock.snagx
108+
/SNAGs/3.0/get-paywall.snagx
109+
/SNAGs/3.0/getPaywall_result-fields.snagx
110+
/SNAGs/3.0/getPaywallActionBlock.snagx
111+
/SNAGs/3.0/getPaywallProductResult.snagx
112+
/SNAGs/3.0/getProductActionBlock.snagx
113+
/SNAGs/3.0/getProductActionBlock-create.snagx
114+
/SNAGs/3.0/google-cloud-allow-all-policy.snagx
115+
/SNAGs/3.0/google-cloud-edit-policy.snagx
116+
/SNAGs/3.0/google-cloud-IAM-and-Admin.snagx
117+
/SNAGs/3.0/google-cloud-policy-action.snagx
118+
/SNAGs/3.0/google-cloud-settings.snagx
119+
/SNAGs/3.0/has-field.snagx
120+
/SNAGs/3.0/informational-dialog.snagx
121+
/SNAGs/3.0/initiate.snagx
122+
/SNAGs/3.0/item-in-list.snagx
123+
/SNAGs/3.0/list_AB_cross_test.snagx
124+
/SNAGs/3.0/locale-name.snagx
125+
/SNAGs/3.0/locale_options.snagx
126+
/SNAGs/3.0/localization-error.snagx
127+
/SNAGs/3.0/localization-json.snagx
128+
/SNAGs/3.0/localization-single-export.snagx
129+
/SNAGs/3.0/localization-single-export-pb.snagx
130+
/SNAGs/3.0/localization-table.snagx
131+
/SNAGs/3.0/localization-table-language.snagx
132+
/SNAGs/3.0/localization-table-language-PB.snagx
133+
/SNAGs/3.0/localization-table-PB.snagx
134+
/SNAGs/3.0/main_settings.snagx
135+
/SNAGs/3.0/make-purchase.snagx
136+
/SNAGs/3.0/make-sure.snagx
137+
/SNAGs/3.0/makePurchase-combined-condition.snagx
138+
/SNAGs/3.0/makePurchase-error.snagx
139+
/SNAGs/3.0/makePurchase-first-condition.snagx
140+
/SNAGs/3.0/makePurchaseFinal.snagx
141+
/SNAGs/3.0/makePurchaseResult.snagx
142+
/SNAGs/3.0/mixpanel.snagx
143+
/SNAGs/3.0/mixpanel-project-id.snagx
144+
/SNAGs/3.0/mixpanel-settings.snagx
145+
/SNAGs/3.0/new-adapty-paywall.snagx
146+
/SNAGs/3.0/new-add-action.snagx
147+
/SNAGs/3.0/new-add-conditional.snagx
148+
/SNAGs/3.0/new-add-field.snagx
149+
/SNAGs/3.0/new-data-structure-field.snagx
150+
/SNAGs/3.0/new-datatype.snagx
151+
/SNAGs/3.0/new-editor.snagx
152+
/SNAGs/3.0/new-get-paywall.snagx
153+
/SNAGs/3.0/new-getpaywallproducts.snagx
154+
/SNAGs/3.0/new-getpaywallresult.snagx
155+
/SNAGs/3.0/new-getpaywallresult-output.snagx
156+
/SNAGs/3.0/new-on-page-load.snagx
157+
/SNAGs/3.0/new-page.snagx
158+
/SNAGs/3.0/new-paywall.snagx
159+
/SNAGs/3.0/new-pluss-button.snagx
160+
/SNAGs/3.0/new-price.snagx
161+
/SNAGs/3.0/new-product.snagx
162+
/SNAGs/3.0/new-variable.snagx
163+
/SNAGs/3.0/on-page-load.snagx
164+
/SNAGs/3.0/onesignal-id.snagx
165+
/SNAGs/3.0/open-paid-content.snagx
166+
/SNAGs/3.0/paddle-create-webhook.snagx
167+
/SNAGs/3.0/paddle-product-price.snagx
168+
/SNAGs/3.0/paddle-webhook.snagx
169+
/SNAGs/3.0/paddle-webhook-secret-key.snagx
170+
/SNAGs/3.0/paddle-webhook-secret-key-copy.snagx
171+
/SNAGs/3.0/page-action-blocks.snagx
172+
/SNAGs/3.0/page-parameters.snagx
173+
/SNAGs/3.0/page-reload-action-output.snagx
174+
/SNAGs/3.0/parameter-confirm.snagx
175+
/SNAGs/3.0/parameter-name.snagx
176+
/SNAGs/3.0/paywall-add-field.snagx
177+
/SNAGs/3.0/paywall-confirm.snagx
178+
/SNAGs/3.0/paywall-products.snagx
179+
/SNAGs/3.0/paywall-state-management.snagx
180+
/SNAGs/3.0/paywall-tabs.snagx
181+
/SNAGs/3.0/paywall_button.snagx
182+
/SNAGs/3.0/paywallResult.snagx
183+
/SNAGs/3.0/pb-hidden-element.snagx
184+
/SNAGs/3.0/pb-hide-element.snagx
185+
/SNAGs/3.0/placement-add-audience.snagx
186+
/SNAGs/3.0/placement-add-paywall.snagx
187+
/SNAGs/3.0/placement-id.snagx
188+
/SNAGs/3.0/placement_id.snagx
189+
/SNAGs/3.0/plus-button.snagx
190+
/SNAGs/3.0/posthog-on.snagx
191+
/SNAGs/3.0/posthog-settings.snagx
192+
/SNAGs/3.0/price-text.snagx
193+
/SNAGs/3.0/product.title.snagx
194+
/SNAGs/3.0/product-text.snagx
195+
/SNAGs/3.0/products-action-clock.snagx
196+
/SNAGs/3.0/products-actions.snagx
197+
/SNAGs/3.0/products-data-type.snagx
198+
/SNAGs/3.0/products-is-list.snagx
199+
/SNAGs/3.0/products-item.snagx
200+
/SNAGs/3.0/products-open-editor.snagx
201+
/SNAGs/3.0/profile-access-level-origin.snagx
202+
/SNAGs/3.0/refund-off.snagx
203+
/SNAGs/3.0/refund-saver-consent.snagx
204+
/SNAGs/3.0/refund-saver-preference.snagx
205+
/SNAGs/3.0/refund-saver-profile-consent.snagx
206+
/SNAGs/3.0/refund-saver-profile-preference.snagx
207+
/SNAGs/3.0/refunds-chart.snagx
208+
/SNAGs/3.0/run-ab-test.snagx
209+
/SNAGs/3.0/s3-settings.snagx
210+
/SNAGs/3.0/second-condition.snagx
211+
/SNAGs/3.0/select_adapty_plugin.snagx
212+
/SNAGs/3.0/set-value.snagx
213+
/SNAGs/3.0/set-variable-confirm.snagx
214+
/SNAGs/3.0/settings_dependencies.snagx
215+
/SNAGs/3.0/stop-ab-test.snagx
216+
/SNAGs/3.0/subscription-item-in-list.snagx
217+
/AdaptyDocs_v2.0.pdf
218+
/migrate-docs.mjs
219+
/versioned_docs/version-3.0/capacitor-sdk-migration-guides.md
220+
/versioned_docs/version-3.0/migration-to-capacitor-316.md
221+
/versioned_docs/version-3.0/sdk-installation-capacitor.md

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
user_id,google_product_id,google_purchase_token,google_is_subscription
2+
u_76fb3a7fc3c7,com.example.app.sub.yearly,pe5XGdl-aha2ceTBPr7EasWWECde76vjZoNgs4-jy-Q,1
3+
u_27382de15191,com.example.app.sub.yearly,LBBV_oECZ52c9gEN1XDDAW_uj7HesKDBzB96HsFIv5s,1
4+
u_f7a260b10b50,com.example.app.sub.monthly,coepepOMidisFiD6NzyfQByQK0z9CgcnEknJr1ke_Qs,1
5+
u_e1661adbe78b,com.example.app.sub.yearly,Kk8gJZmPGotH1G64Vkcr9i7h_WBmX5wI4v662tP9-Xw,1
6+
u_24a19729a421,com.example.app.premium.yearly,mFB-AkJXJD3D18YjTbR58D6l2F7JrgI4Bss1X7FhnZg,1
7+
u_c7ebd50b46db,com.example.app.sub.yearly,nyLlwOKG577Pd3uIy57mOeUqwGyCilVPvW1fhlqWKps,1
8+
u_c4a6b2a06a89,com.example.app.premium.yearly,hsP-qzswQ59RIMvVOaIV2DNCye25Pow6U0Gml0muedY,1
9+
u_3fe9d3a9f8c2,com.example.app.premium.monthly,mDokPvsxsXjvexNXKChZaq_Hkv63QHBn_Vl5Zf55SrE,1
10+
u_e3c9dbf0e412,com.example.app.sub.monthly,7uGQgg8SXhBtNKC_V8Uy76ASAcfLmJc6RFiWb6R5YMs,1
11+
u_7ec2c5c10098,com.example.app.sub.yearly,x8Ui-9HDKPacyGyHV5ToFVHiYuX80IFDiaARwtZyVv8,1
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
user_id,apple_original_transaction_id
2+
u_a4107cf67af3,2026847926404610461
3+
u_5aa13eda56e7,7839596180442651345
4+
u_6f99d3a1ff28,3258728696626565719
5+
u_e93e18eb288d,2287010195568088798
6+
u_84a4d168d242,1945351111358374057
7+
u_43758d13d82e,7831454145019129197
8+
u_7ed67c4f280d,6030118478018109776
9+
u_b59527723077,6446332115853614978
10+
u_cd6f8d85978f,1293143515607798169
11+
u_93baa45a07f5,1864186096263678574

TECH_WRITERS_README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,32 @@ import CustomDocCardList from '@site/src/components/CustomDocCardList.astro';
231231
// Manually specify pages
232232
<CustomDocCardList ids={['ios-quickstart', 'android-quickstart', 'react-native-quickstart']} />
233233
```
234+
### 6. Button - Action button
235+
236+
A stylized button for primary actions or links to other articles. Matches the Adapty brand design.
237+
238+
**Props (at least one is required):**
239+
- `id`: The ID of the article to link to (e.g., `ios-sdk-installation`). Links open in the **same tab**.
240+
- `href`: A full URL for external links (e.g., `https://app.adapty.io`). Links open in a **new tab**.
241+
242+
**Usage:**
243+
244+
```mdx
245+
// Link to another article
246+
<Button id="ios-sdk-installation">
247+
Install iOS SDK
248+
</Button>
249+
250+
// External link
251+
<Button href="https://app.adapty.io/registration">
252+
Sign up for Free
253+
</Button>
254+
```
255+
256+
**Features:**
257+
- **Auto-registered**: You don't need to import `Button` manually at the top of your MDX file.
258+
- **Left-aligned**: The button always starts on a new line and is left-aligned.
259+
- **Responsive**: Adapts styling for light and dark modes.
234260

235261
## Markdown features
236262

astro.config.mjs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ import { remarkTransformDetails } from './src/plugins/remark-transform-details.m
1414
import { remarkHeadingId } from './src/plugins/remark-heading-id.mjs';
1515
import { remarkTransformLinks } from './src/plugins/remark-transform-links.mjs';
1616
import { remarkStripImports } from './src/plugins/remark-strip-imports.mjs';
17+
import { remarkStripHighlightComments } from './src/plugins/remark-strip-highlight-comments.mjs';
1718
import rehypeSlug from 'rehype-slug';
19+
import { highlightLinesTransformer } from './src/plugins/shiki-highlight-transformer.mjs';
1820

1921
// https://astro.build/config
2022
export default defineConfig({
@@ -41,7 +43,7 @@ export default defineConfig({
4143
},
4244

4345
markdown: {
44-
remarkPlugins: [remarkHeadingId, remarkDirective, remarkAside, remarkStripImports, remarkTransformRequire, remarkTransformDetails, remarkTransformLinks],
46+
remarkPlugins: [remarkHeadingId, remarkDirective, remarkAside, remarkStripImports, remarkStripHighlightComments, remarkTransformRequire, remarkTransformDetails, remarkTransformLinks],
4547
rehypePlugins: [rehypeSlug],
4648
shikiConfig: {
4749
theme: 'github-light',
@@ -63,7 +65,8 @@ export default defineConfig({
6365
node.properties['data-language'] = lang;
6466
}
6567
}
66-
}
68+
},
69+
highlightLinesTransformer()
6770
]
6871
},
6972
},
@@ -72,7 +75,7 @@ export default defineConfig({
7275
react(),
7376
sitemap(),
7477
mdx({
75-
remarkPlugins: [remarkHeadingId, remarkDirective, remarkAside, remarkStripImports, remarkTransformRequire, remarkTransformDetails, remarkTransformLinks],
78+
remarkPlugins: [remarkHeadingId, remarkDirective, remarkAside, remarkStripImports, remarkStripHighlightComments, remarkTransformRequire, remarkTransformDetails, remarkTransformLinks],
7679
rehypePlugins: [rehypeSlug],
7780
shikiConfig: {
7881
theme: 'github-light',
@@ -94,7 +97,8 @@ export default defineConfig({
9497
node.properties['data-language'] = lang;
9598
}
9699
}
97-
}
100+
},
101+
highlightLinesTransformer()
98102
]
99103
}
100104
})

0 commit comments

Comments
 (0)