The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
docs: promote 2.2.0 to stable and retire 2.1.x (#1232)
Viktor Holik755c7a218c0e
diff --git a/apps/docs/rc/blocks.mdx b/apps/docs/2.2.0/blocks.mdxsimilarity index 98%rename from apps/docs/rc/blocks.mdxrename to apps/docs/2.2.0/blocks.mdxindex 0221c27ae..4db4f7707 100644--- a/apps/docs/rc/blocks.mdx+++ b/apps/docs/2.2.0/blocks.mdx@@ -13,7 +13,7 @@ mode: "custom"Blocks are modular pieces of marketplace functionality — API routes, workflows, UI pages, and data models. Each block is copied directly into your project. You own the code.</p><div className="inline-flex items-center gap-3 px-4 py-2.5 rounded-lg border border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800">- <code className="text-sm font-mono text-gray-800 dark:text-gray-100">bunx @mercurjs/cli@rc add <block-name></code>+ <code className="text-sm font-mono text-gray-800 dark:text-gray-100">bunx @mercurjs/cli@latest add <block-name></code></div></div>@@ -170,7 +170,7 @@ mode: "custom"<h3 className="text-lg font-semibold mb-2">Install a block</h3>```bash-bunx @mercurjs/cli@rc add reviews+bunx @mercurjs/cli@latest add reviews```This copies the block source code into your project:@@ -195,13 +195,13 @@ src/<h3 className="text-lg font-semibold mt-6 mb-2">Search blocks</h3>```bash-bunx @mercurjs/cli@rc search -q "reviews"+bunx @mercurjs/cli@latest search -q "reviews"```<h3 className="text-lg font-semibold mt-6 mb-2">Compare local changes against registry</h3>```bash-bunx @mercurjs/cli@rc diff reviews+bunx @mercurjs/cli@latest diff reviews```</div>diff --git a/apps/docs/rc/learn/architecture.mdx b/apps/docs/2.2.0/learn/architecture.mdxsimilarity index 98%rename from apps/docs/rc/learn/architecture.mdxrename to apps/docs/2.2.0/learn/architecture.mdxindex 8690a9295..0802d6841 100644--- a/apps/docs/rc/learn/architecture.mdx+++ b/apps/docs/2.2.0/learn/architecture.mdx@@ -163,7 +163,7 @@ This means:- There are no hidden abstractions or version conflicts- Updates are explicit — you diff and apply changes from the registry-The CLI (`@mercurjs/cli@rc`) manages this process: scaffolding projects, installing blocks, searching the registry, and comparing local changes against upstream versions.+The CLI (`@mercurjs/cli@latest`) manages this process: scaffolding projects, installing blocks, searching the registry, and comparing local changes against upstream versions.## Workflow examplediff --git a/apps/docs/rc/learn/attributes.mdx b/apps/docs/2.2.0/learn/attributes.mdxsimilarity index 100%rename from apps/docs/rc/learn/attributes.mdxrename to apps/docs/2.2.0/learn/attributes.mdxdiff --git a/apps/docs/developer-guide/blocks.mdx b/apps/docs/2.2.0/learn/blocks.mdxsimilarity index 94%rename from apps/docs/developer-guide/blocks.mdxrename to apps/docs/2.2.0/learn/blocks.mdxindex 1d60e859f..a823328c7 100644--- a/apps/docs/developer-guide/blocks.mdx+++ b/apps/docs/2.2.0/learn/blocks.mdx@@ -12,7 +12,7 @@ bunx @mercurjs/cli@latest add reviewsbunx @mercurjs/cli@latest add wishlist product-import-export```-The CLI fetches the block from the [registry](/developer-guide/registry), resolves dependencies, transforms imports to match your project's path aliases, and copies the files into the right directories.+The CLI fetches the block from the [registry](/rc/learn/registry), resolves dependencies, transforms imports to match your project's path aliases, and copies the files into the right directories.## What's inside a blockdiff --git a/apps/docs/rc/learn/commissions.mdx b/apps/docs/2.2.0/learn/commissions.mdxsimilarity index 100%rename from apps/docs/rc/learn/commissions.mdxrename to apps/docs/2.2.0/learn/commissions.mdxdiff --git a/apps/docs/rc/learn/concepts.mdx b/apps/docs/2.2.0/learn/concepts.mdxsimilarity index 93%rename from apps/docs/rc/learn/concepts.mdxrename to apps/docs/2.2.0/learn/concepts.mdxindex 1f300e0d4..a6a35842b 100644--- a/apps/docs/rc/learn/concepts.mdx+++ b/apps/docs/2.2.0/learn/concepts.mdx@@ -73,7 +73,7 @@ A registry is a collection of blocks available for installation. The official Me## CLI-The [Mercur CLI](/rc/tools/cli) (`@mercurjs/cli@rc`) manages your project — scaffolding from templates, installing blocks, searching registries, generating types, and diffing local changes against upstream versions.+The [Mercur CLI](/rc/tools/cli) (`@mercurjs/cli@latest`) manages your project — scaffolding from templates, installing blocks, searching registries, generating types, and diffing local changes against upstream versions.## Dashboard SDK@@ -81,4 +81,4 @@ The [Dashboard SDK](/rc/tools/dashboard-sdk) (`@mercurjs/dashboard-sdk`) is a Vi## API Client-The [API Client](/rc/tools/api-client) (`@mercurjs/client`) provides type-safe access to all Mercur API endpoints. Types are generated from your actual API routes using `bunx @mercurjs/cli@rc codegen`, so requests and responses are always in sync with your backend.+The [API Client](/rc/tools/api-client) (`@mercurjs/client`) provides type-safe access to all Mercur API endpoints. Types are generated from your actual API routes using `bunx @mercurjs/cli@latest codegen`, so requests and responses are always in sync with your backend.diff --git a/apps/docs/getting-started/installation.mdx b/apps/docs/2.2.0/learn/installation.mdxsimilarity index 100%rename from apps/docs/getting-started/installation.mdxrename to apps/docs/2.2.0/learn/installation.mdxdiff --git a/apps/docs/getting-started/introduction.mdx b/apps/docs/2.2.0/learn/introduction.mdxsimilarity index 92%rename from apps/docs/getting-started/introduction.mdxrename to apps/docs/2.2.0/learn/introduction.mdxindex 29d4c3904..c1de09819 100644--- a/apps/docs/getting-started/introduction.mdx+++ b/apps/docs/2.2.0/learn/introduction.mdx@@ -51,9 +51,9 @@ Here's what that looks like in practice:To start building with AI, connect your environment to Mercur's knowledge base:-- **[LLMs](/ai-development/llms)** — Feed the full Mercur documentation to any LLM via `llms.txt`-- **[MCP Server](/ai-development/mcp)** — Let your AI tool search Mercur docs in real time (Cursor, VS Code, Claude, Claude Code)-- **[Skills](/ai-development/skills)** — Pre-built AI workflows that ship with every Mercur project for guided development+- **[Building with AI](/rc/resources/ai/overview)** — How Mercur bundles version-matched docs into your project so agents build from accurate APIs, not stale training data+- **[LLMs](/rc/resources/ai/llms)** — Feed the full Mercur documentation to any LLM via `llms.txt`+- **[MCP Server](/rc/resources/ai/mcp)** — Let your AI tool search Mercur docs in real time (Cursor, VS Code, Claude, Claude Code)### Why this mattersdiff --git a/apps/docs/rc/learn/offers.mdx b/apps/docs/2.2.0/learn/offers.mdxsimilarity index 100%rename from apps/docs/rc/learn/offers.mdxrename to apps/docs/2.2.0/learn/offers.mdxdiff --git a/apps/docs/core-concepts/order-groups.mdx b/apps/docs/2.2.0/learn/order-groups.mdxsimilarity index 100%rename from apps/docs/core-concepts/order-groups.mdxrename to apps/docs/2.2.0/learn/order-groups.mdxdiff --git a/apps/docs/rc/learn/payouts.mdx b/apps/docs/2.2.0/learn/payouts.mdxsimilarity index 100%rename from apps/docs/rc/learn/payouts.mdxrename to apps/docs/2.2.0/learn/payouts.mdxdiff --git a/apps/docs/rc/learn/product-requests.mdx b/apps/docs/2.2.0/learn/product-requests.mdxsimilarity index 100%rename from apps/docs/rc/learn/product-requests.mdxrename to apps/docs/2.2.0/learn/product-requests.mdxdiff --git a/apps/docs/rc/learn/products.mdx b/apps/docs/2.2.0/learn/products.mdxsimilarity index 100%rename from apps/docs/rc/learn/products.mdxrename to apps/docs/2.2.0/learn/products.mdxdiff --git a/apps/docs/developer-guide/registry.mdx b/apps/docs/2.2.0/learn/registry.mdxsimilarity index 100%rename from apps/docs/developer-guide/registry.mdxrename to apps/docs/2.2.0/learn/registry.mdxdiff --git a/apps/docs/rc/learn/seller-members.mdx b/apps/docs/2.2.0/learn/seller-members.mdxsimilarity index 100%rename from apps/docs/rc/learn/seller-members.mdxrename to apps/docs/2.2.0/learn/seller-members.mdxdiff --git a/apps/docs/rc/learn/sellers.mdx b/apps/docs/2.2.0/learn/sellers.mdxsimilarity index 100%rename from apps/docs/rc/learn/sellers.mdxrename to apps/docs/2.2.0/learn/sellers.mdxdiff --git a/apps/docs/rc/migration/from-1-x-to-2-0.mdx b/apps/docs/2.2.0/migration/from-1-x-to-2-0.mdxsimilarity index 98%rename from apps/docs/rc/migration/from-1-x-to-2-0.mdxrename to apps/docs/2.2.0/migration/from-1-x-to-2-0.mdxindex 43c899671..75978e1ee 100644--- a/apps/docs/rc/migration/from-1-x-to-2-0.mdx+++ b/apps/docs/2.2.0/migration/from-1-x-to-2-0.mdx@@ -121,7 +121,7 @@ export const GET = async () => { ... }```-Run `bunx @mercurjs/cli@rc codegen` after adding routes.+Run `bunx @mercurjs/cli@latest codegen` after adding routes.### Links and Subscribersdiff --git a/apps/docs/rc/migration/from-2-0-to-2-1.mdx b/apps/docs/2.2.0/migration/from-2-0-to-2-1.mdxsimilarity index 100%rename from apps/docs/rc/migration/from-2-0-to-2-1.mdxrename to apps/docs/2.2.0/migration/from-2-0-to-2-1.mdxdiff --git a/apps/docs/rc/migration/overview.mdx b/apps/docs/2.2.0/migration/overview.mdxsimilarity index 100%rename from apps/docs/rc/migration/overview.mdxrename to apps/docs/2.2.0/migration/overview.mdxdiff --git a/apps/docs/rc/references/api/admin.mdx b/apps/docs/2.2.0/references/api/admin.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin.mdxrename to apps/docs/2.2.0/references/api/admin.mdxdiff --git a/apps/docs/rc/references/api/admin/commission-rates/batch-commission-rules.mdx b/apps/docs/2.2.0/references/api/admin/commission-rates/batch-commission-rules.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/commission-rates/batch-commission-rules.mdxrename to apps/docs/2.2.0/references/api/admin/commission-rates/batch-commission-rules.mdxdiff --git a/apps/docs/rc/references/api/admin/commission-rates/create-commission-rate.mdx b/apps/docs/2.2.0/references/api/admin/commission-rates/create-commission-rate.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/commission-rates/create-commission-rate.mdxrename to apps/docs/2.2.0/references/api/admin/commission-rates/create-commission-rate.mdxdiff --git a/apps/docs/rc/references/api/admin/commission-rates/delete-commission-rate.mdx b/apps/docs/2.2.0/references/api/admin/commission-rates/delete-commission-rate.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/commission-rates/delete-commission-rate.mdxrename to apps/docs/2.2.0/references/api/admin/commission-rates/delete-commission-rate.mdxdiff --git a/apps/docs/rc/references/api/admin/commission-rates/list-commission-rates.mdx b/apps/docs/2.2.0/references/api/admin/commission-rates/list-commission-rates.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/commission-rates/list-commission-rates.mdxrename to apps/docs/2.2.0/references/api/admin/commission-rates/list-commission-rates.mdxdiff --git a/apps/docs/rc/references/api/admin/commission-rates/retrieve-commission-rate.mdx b/apps/docs/2.2.0/references/api/admin/commission-rates/retrieve-commission-rate.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/commission-rates/retrieve-commission-rate.mdxrename to apps/docs/2.2.0/references/api/admin/commission-rates/retrieve-commission-rate.mdxdiff --git a/apps/docs/rc/references/api/admin/commission-rates/update-commission-rate.mdx b/apps/docs/2.2.0/references/api/admin/commission-rates/update-commission-rate.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/commission-rates/update-commission-rate.mdxrename to apps/docs/2.2.0/references/api/admin/commission-rates/update-commission-rate.mdxdiff --git a/apps/docs/rc/references/api/admin/members/list-members.mdx b/apps/docs/2.2.0/references/api/admin/members/list-members.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/members/list-members.mdxrename to apps/docs/2.2.0/references/api/admin/members/list-members.mdxdiff --git a/apps/docs/rc/references/api/admin/offers/batch-create-offers.mdx b/apps/docs/2.2.0/references/api/admin/offers/batch-create-offers.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/offers/batch-create-offers.mdxrename to apps/docs/2.2.0/references/api/admin/offers/batch-create-offers.mdxdiff --git a/apps/docs/rc/references/api/admin/offers/delete-offer.mdx b/apps/docs/2.2.0/references/api/admin/offers/delete-offer.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/offers/delete-offer.mdxrename to apps/docs/2.2.0/references/api/admin/offers/delete-offer.mdxdiff --git a/apps/docs/rc/references/api/admin/offers/list-offers.mdx b/apps/docs/2.2.0/references/api/admin/offers/list-offers.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/offers/list-offers.mdxrename to apps/docs/2.2.0/references/api/admin/offers/list-offers.mdxdiff --git a/apps/docs/rc/references/api/admin/offers/retrieve-offer.mdx b/apps/docs/2.2.0/references/api/admin/offers/retrieve-offer.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/offers/retrieve-offer.mdxrename to apps/docs/2.2.0/references/api/admin/offers/retrieve-offer.mdxdiff --git a/apps/docs/rc/references/api/admin/order-groups/list-order-groups.mdx b/apps/docs/2.2.0/references/api/admin/order-groups/list-order-groups.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/order-groups/list-order-groups.mdxrename to apps/docs/2.2.0/references/api/admin/order-groups/list-order-groups.mdxdiff --git a/apps/docs/rc/references/api/admin/order-groups/retrieve-order-group.mdx b/apps/docs/2.2.0/references/api/admin/order-groups/retrieve-order-group.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/order-groups/retrieve-order-group.mdxrename to apps/docs/2.2.0/references/api/admin/order-groups/retrieve-order-group.mdxdiff --git a/apps/docs/rc/references/api/admin/orders/get-order-commission-lines.mdx b/apps/docs/2.2.0/references/api/admin/orders/get-order-commission-lines.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/orders/get-order-commission-lines.mdxrename to apps/docs/2.2.0/references/api/admin/orders/get-order-commission-lines.mdxdiff --git a/apps/docs/rc/references/api/admin/orders/get-order-order-group.mdx b/apps/docs/2.2.0/references/api/admin/orders/get-order-order-group.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/orders/get-order-order-group.mdxrename to apps/docs/2.2.0/references/api/admin/orders/get-order-order-group.mdxdiff --git a/apps/docs/rc/references/api/admin/orders/list-orders.mdx b/apps/docs/2.2.0/references/api/admin/orders/list-orders.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/orders/list-orders.mdxrename to apps/docs/2.2.0/references/api/admin/orders/list-orders.mdxdiff --git a/apps/docs/rc/references/api/admin/payouts/list-payouts.mdx b/apps/docs/2.2.0/references/api/admin/payouts/list-payouts.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/payouts/list-payouts.mdxrename to apps/docs/2.2.0/references/api/admin/payouts/list-payouts.mdxdiff --git a/apps/docs/rc/references/api/admin/payouts/retrieve-payout.mdx b/apps/docs/2.2.0/references/api/admin/payouts/retrieve-payout.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/payouts/retrieve-payout.mdxrename to apps/docs/2.2.0/references/api/admin/payouts/retrieve-payout.mdxdiff --git a/apps/docs/rc/references/api/admin/product-attributes/create-attribute-value.mdx b/apps/docs/2.2.0/references/api/admin/product-attributes/create-attribute-value.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/product-attributes/create-attribute-value.mdxrename to apps/docs/2.2.0/references/api/admin/product-attributes/create-attribute-value.mdxdiff --git a/apps/docs/rc/references/api/admin/product-attributes/create-product-attribute.mdx b/apps/docs/2.2.0/references/api/admin/product-attributes/create-product-attribute.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/product-attributes/create-product-attribute.mdxrename to apps/docs/2.2.0/references/api/admin/product-attributes/create-product-attribute.mdxdiff --git a/apps/docs/rc/references/api/admin/product-attributes/delete-attribute-value.mdx b/apps/docs/2.2.0/references/api/admin/product-attributes/delete-attribute-value.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/product-attributes/delete-attribute-value.mdxrename to apps/docs/2.2.0/references/api/admin/product-attributes/delete-attribute-value.mdxdiff --git a/apps/docs/rc/references/api/admin/product-attributes/delete-product-attribute.mdx b/apps/docs/2.2.0/references/api/admin/product-attributes/delete-product-attribute.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/product-attributes/delete-product-attribute.mdxrename to apps/docs/2.2.0/references/api/admin/product-attributes/delete-product-attribute.mdxdiff --git a/apps/docs/rc/references/api/admin/product-attributes/list-product-attributes.mdx b/apps/docs/2.2.0/references/api/admin/product-attributes/list-product-attributes.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/product-attributes/list-product-attributes.mdxrename to apps/docs/2.2.0/references/api/admin/product-attributes/list-product-attributes.mdxdiff --git a/apps/docs/rc/references/api/admin/product-attributes/retrieve-product-attribute.mdx b/apps/docs/2.2.0/references/api/admin/product-attributes/retrieve-product-attribute.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/product-attributes/retrieve-product-attribute.mdxrename to apps/docs/2.2.0/references/api/admin/product-attributes/retrieve-product-attribute.mdxdiff --git a/apps/docs/rc/references/api/admin/product-attributes/update-attribute-value.mdx b/apps/docs/2.2.0/references/api/admin/product-attributes/update-attribute-value.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/product-attributes/update-attribute-value.mdxrename to apps/docs/2.2.0/references/api/admin/product-attributes/update-attribute-value.mdxdiff --git a/apps/docs/rc/references/api/admin/product-attributes/update-product-attribute.mdx b/apps/docs/2.2.0/references/api/admin/product-attributes/update-product-attribute.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/product-attributes/update-product-attribute.mdxrename to apps/docs/2.2.0/references/api/admin/product-attributes/update-product-attribute.mdxdiff --git a/apps/docs/rc/references/api/admin/product-changes/cancel-product-change.mdx b/apps/docs/2.2.0/references/api/admin/product-changes/cancel-product-change.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/product-changes/cancel-product-change.mdxrename to apps/docs/2.2.0/references/api/admin/product-changes/cancel-product-change.mdxdiff --git a/apps/docs/rc/references/api/admin/product-changes/confirm-product-change.mdx b/apps/docs/2.2.0/references/api/admin/product-changes/confirm-product-change.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/product-changes/confirm-product-change.mdxrename to apps/docs/2.2.0/references/api/admin/product-changes/confirm-product-change.mdxdiff --git a/apps/docs/rc/references/api/admin/products/batch-product-attributes.mdx b/apps/docs/2.2.0/references/api/admin/products/batch-product-attributes.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/products/batch-product-attributes.mdxrename to apps/docs/2.2.0/references/api/admin/products/batch-product-attributes.mdxdiff --git a/apps/docs/rc/references/api/admin/products/confirm-product.mdx b/apps/docs/2.2.0/references/api/admin/products/confirm-product.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/products/confirm-product.mdxrename to apps/docs/2.2.0/references/api/admin/products/confirm-product.mdxdiff --git a/apps/docs/rc/references/api/admin/products/create-product-variant.mdx b/apps/docs/2.2.0/references/api/admin/products/create-product-variant.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/products/create-product-variant.mdxrename to apps/docs/2.2.0/references/api/admin/products/create-product-variant.mdxdiff --git a/apps/docs/rc/references/api/admin/products/create-product.mdx b/apps/docs/2.2.0/references/api/admin/products/create-product.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/products/create-product.mdxrename to apps/docs/2.2.0/references/api/admin/products/create-product.mdxdiff --git a/apps/docs/rc/references/api/admin/products/delete-product-variant.mdx b/apps/docs/2.2.0/references/api/admin/products/delete-product-variant.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/products/delete-product-variant.mdxrename to apps/docs/2.2.0/references/api/admin/products/delete-product-variant.mdxdiff --git a/apps/docs/rc/references/api/admin/products/delete-product.mdx b/apps/docs/2.2.0/references/api/admin/products/delete-product.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/products/delete-product.mdxrename to apps/docs/2.2.0/references/api/admin/products/delete-product.mdxdiff --git a/apps/docs/rc/references/api/admin/products/list-product-variants.mdx b/apps/docs/2.2.0/references/api/admin/products/list-product-variants.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/products/list-product-variants.mdxrename to apps/docs/2.2.0/references/api/admin/products/list-product-variants.mdxdiff --git a/apps/docs/rc/references/api/admin/products/list-products.mdx b/apps/docs/2.2.0/references/api/admin/products/list-products.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/products/list-products.mdxrename to apps/docs/2.2.0/references/api/admin/products/list-products.mdxdiff --git a/apps/docs/rc/references/api/admin/products/preview-product.mdx b/apps/docs/2.2.0/references/api/admin/products/preview-product.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/products/preview-product.mdxrename to apps/docs/2.2.0/references/api/admin/products/preview-product.mdxdiff --git a/apps/docs/rc/references/api/admin/products/reject-product.mdx b/apps/docs/2.2.0/references/api/admin/products/reject-product.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/products/reject-product.mdxrename to apps/docs/2.2.0/references/api/admin/products/reject-product.mdxdiff --git a/apps/docs/rc/references/api/admin/products/request-product-changes.mdx b/apps/docs/2.2.0/references/api/admin/products/request-product-changes.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/products/request-product-changes.mdxrename to apps/docs/2.2.0/references/api/admin/products/request-product-changes.mdxdiff --git a/apps/docs/rc/references/api/admin/products/retrieve-product-variant.mdx b/apps/docs/2.2.0/references/api/admin/products/retrieve-product-variant.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/products/retrieve-product-variant.mdxrename to apps/docs/2.2.0/references/api/admin/products/retrieve-product-variant.mdxdiff --git a/apps/docs/rc/references/api/admin/products/retrieve-product.mdx b/apps/docs/2.2.0/references/api/admin/products/retrieve-product.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/products/retrieve-product.mdxrename to apps/docs/2.2.0/references/api/admin/products/retrieve-product.mdxdiff --git a/apps/docs/rc/references/api/admin/products/set-product-sellers.mdx b/apps/docs/2.2.0/references/api/admin/products/set-product-sellers.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/products/set-product-sellers.mdxrename to apps/docs/2.2.0/references/api/admin/products/set-product-sellers.mdxdiff --git a/apps/docs/rc/references/api/admin/products/update-product-variant.mdx b/apps/docs/2.2.0/references/api/admin/products/update-product-variant.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/products/update-product-variant.mdxrename to apps/docs/2.2.0/references/api/admin/products/update-product-variant.mdxdiff --git a/apps/docs/rc/references/api/admin/products/update-product.mdx b/apps/docs/2.2.0/references/api/admin/products/update-product.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/products/update-product.mdxrename to apps/docs/2.2.0/references/api/admin/products/update-product.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/add-seller-member.mdx b/apps/docs/2.2.0/references/api/admin/sellers/add-seller-member.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/add-seller-member.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/add-seller-member.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/approve-seller.mdx b/apps/docs/2.2.0/references/api/admin/sellers/approve-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/approve-seller.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/approve-seller.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/create-seller.mdx b/apps/docs/2.2.0/references/api/admin/sellers/create-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/create-seller.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/create-seller.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/delete-member-invite.mdx b/apps/docs/2.2.0/references/api/admin/sellers/delete-member-invite.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/delete-member-invite.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/delete-member-invite.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/delete-professional-details.mdx b/apps/docs/2.2.0/references/api/admin/sellers/delete-professional-details.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/delete-professional-details.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/delete-professional-details.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/invite-seller-member.mdx b/apps/docs/2.2.0/references/api/admin/sellers/invite-seller-member.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/invite-seller-member.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/invite-seller-member.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/list-member-invites.mdx b/apps/docs/2.2.0/references/api/admin/sellers/list-member-invites.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/list-member-invites.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/list-member-invites.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/list-seller-members.mdx b/apps/docs/2.2.0/references/api/admin/sellers/list-seller-members.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/list-seller-members.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/list-seller-members.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/list-seller-products.mdx b/apps/docs/2.2.0/references/api/admin/sellers/list-seller-products.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/list-seller-products.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/list-seller-products.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/list-sellers.mdx b/apps/docs/2.2.0/references/api/admin/sellers/list-sellers.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/list-sellers.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/list-sellers.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/remove-seller-member.mdx b/apps/docs/2.2.0/references/api/admin/sellers/remove-seller-member.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/remove-seller-member.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/remove-seller-member.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/resend-member-invite.mdx b/apps/docs/2.2.0/references/api/admin/sellers/resend-member-invite.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/resend-member-invite.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/resend-member-invite.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/retrieve-seller.mdx b/apps/docs/2.2.0/references/api/admin/sellers/retrieve-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/retrieve-seller.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/retrieve-seller.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/suspend-seller.mdx b/apps/docs/2.2.0/references/api/admin/sellers/suspend-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/suspend-seller.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/suspend-seller.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/terminate-seller.mdx b/apps/docs/2.2.0/references/api/admin/sellers/terminate-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/terminate-seller.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/terminate-seller.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/unsuspend-seller.mdx b/apps/docs/2.2.0/references/api/admin/sellers/unsuspend-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/unsuspend-seller.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/unsuspend-seller.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/unterminate-seller.mdx b/apps/docs/2.2.0/references/api/admin/sellers/unterminate-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/unterminate-seller.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/unterminate-seller.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/update-seller.mdx b/apps/docs/2.2.0/references/api/admin/sellers/update-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/update-seller.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/update-seller.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/upsert-payment-details.mdx b/apps/docs/2.2.0/references/api/admin/sellers/upsert-payment-details.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/upsert-payment-details.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/upsert-payment-details.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/upsert-professional-details.mdx b/apps/docs/2.2.0/references/api/admin/sellers/upsert-professional-details.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/upsert-professional-details.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/upsert-professional-details.mdxdiff --git a/apps/docs/rc/references/api/admin/sellers/upsert-seller-address.mdx b/apps/docs/2.2.0/references/api/admin/sellers/upsert-seller-address.mdxsimilarity index 100%rename from apps/docs/rc/references/api/admin/sellers/upsert-seller-address.mdxrename to apps/docs/2.2.0/references/api/admin/sellers/upsert-seller-address.mdxdiff --git a/apps/docs/rc/references/api/conventions.mdx b/apps/docs/2.2.0/references/api/conventions.mdxsimilarity index 100%rename from apps/docs/rc/references/api/conventions.mdxrename to apps/docs/2.2.0/references/api/conventions.mdxdiff --git a/apps/docs/rc/references/api/store.mdx b/apps/docs/2.2.0/references/api/store.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store.mdxrename to apps/docs/2.2.0/references/api/store.mdxdiff --git a/apps/docs/rc/references/api/store/carts/add-line-item.mdx b/apps/docs/2.2.0/references/api/store/carts/add-line-item.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store/carts/add-line-item.mdxrename to apps/docs/2.2.0/references/api/store/carts/add-line-item.mdxdiff --git a/apps/docs/rc/references/api/store/carts/add-shipping-methods.mdx b/apps/docs/2.2.0/references/api/store/carts/add-shipping-methods.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store/carts/add-shipping-methods.mdxrename to apps/docs/2.2.0/references/api/store/carts/add-shipping-methods.mdxdiff --git a/apps/docs/rc/references/api/store/carts/apply-promotions.mdx b/apps/docs/2.2.0/references/api/store/carts/apply-promotions.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store/carts/apply-promotions.mdxrename to apps/docs/2.2.0/references/api/store/carts/apply-promotions.mdxdiff --git a/apps/docs/rc/references/api/store/carts/complete-cart.mdx b/apps/docs/2.2.0/references/api/store/carts/complete-cart.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store/carts/complete-cart.mdxrename to apps/docs/2.2.0/references/api/store/carts/complete-cart.mdxdiff --git a/apps/docs/rc/references/api/store/offers/list-offers.mdx b/apps/docs/2.2.0/references/api/store/offers/list-offers.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store/offers/list-offers.mdxrename to apps/docs/2.2.0/references/api/store/offers/list-offers.mdxdiff --git a/apps/docs/rc/references/api/store/offers/retrieve-offer.mdx b/apps/docs/2.2.0/references/api/store/offers/retrieve-offer.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store/offers/retrieve-offer.mdxrename to apps/docs/2.2.0/references/api/store/offers/retrieve-offer.mdxdiff --git a/apps/docs/rc/references/api/store/order-groups/list-order-groups.mdx b/apps/docs/2.2.0/references/api/store/order-groups/list-order-groups.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store/order-groups/list-order-groups.mdxrename to apps/docs/2.2.0/references/api/store/order-groups/list-order-groups.mdxdiff --git a/apps/docs/rc/references/api/store/order-groups/retrieve-order-group.mdx b/apps/docs/2.2.0/references/api/store/order-groups/retrieve-order-group.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store/order-groups/retrieve-order-group.mdxrename to apps/docs/2.2.0/references/api/store/order-groups/retrieve-order-group.mdxdiff --git a/apps/docs/rc/references/api/store/product-attributes/list-product-attributes.mdx b/apps/docs/2.2.0/references/api/store/product-attributes/list-product-attributes.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store/product-attributes/list-product-attributes.mdxrename to apps/docs/2.2.0/references/api/store/product-attributes/list-product-attributes.mdxdiff --git a/apps/docs/rc/references/api/store/product-attributes/retrieve-product-attribute.mdx b/apps/docs/2.2.0/references/api/store/product-attributes/retrieve-product-attribute.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store/product-attributes/retrieve-product-attribute.mdxrename to apps/docs/2.2.0/references/api/store/product-attributes/retrieve-product-attribute.mdxdiff --git a/apps/docs/rc/references/api/store/product-categories/list-product-categories.mdx b/apps/docs/2.2.0/references/api/store/product-categories/list-product-categories.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store/product-categories/list-product-categories.mdxrename to apps/docs/2.2.0/references/api/store/product-categories/list-product-categories.mdxdiff --git a/apps/docs/rc/references/api/store/product-categories/retrieve-product-category.mdx b/apps/docs/2.2.0/references/api/store/product-categories/retrieve-product-category.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store/product-categories/retrieve-product-category.mdxrename to apps/docs/2.2.0/references/api/store/product-categories/retrieve-product-category.mdxdiff --git a/apps/docs/rc/references/api/store/products/list-products.mdx b/apps/docs/2.2.0/references/api/store/products/list-products.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store/products/list-products.mdxrename to apps/docs/2.2.0/references/api/store/products/list-products.mdxdiff --git a/apps/docs/rc/references/api/store/products/retrieve-product.mdx b/apps/docs/2.2.0/references/api/store/products/retrieve-product.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store/products/retrieve-product.mdxrename to apps/docs/2.2.0/references/api/store/products/retrieve-product.mdxdiff --git a/apps/docs/rc/references/api/store/search/search.mdx b/apps/docs/2.2.0/references/api/store/search/search.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store/search/search.mdxrename to apps/docs/2.2.0/references/api/store/search/search.mdxdiff --git a/apps/docs/rc/references/api/store/sellers/list-sellers.mdx b/apps/docs/2.2.0/references/api/store/sellers/list-sellers.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store/sellers/list-sellers.mdxrename to apps/docs/2.2.0/references/api/store/sellers/list-sellers.mdxdiff --git a/apps/docs/rc/references/api/store/sellers/retrieve-seller.mdx b/apps/docs/2.2.0/references/api/store/sellers/retrieve-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store/sellers/retrieve-seller.mdxrename to apps/docs/2.2.0/references/api/store/sellers/retrieve-seller.mdxdiff --git a/apps/docs/rc/references/api/store/shipping-options/list-shipping-options.mdx b/apps/docs/2.2.0/references/api/store/shipping-options/list-shipping-options.mdxsimilarity index 100%rename from apps/docs/rc/references/api/store/shipping-options/list-shipping-options.mdxrename to apps/docs/2.2.0/references/api/store/shipping-options/list-shipping-options.mdxdiff --git a/apps/docs/rc/references/api/vendor.mdx b/apps/docs/2.2.0/references/api/vendor.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor.mdxrename to apps/docs/2.2.0/references/api/vendor.mdxdiff --git a/apps/docs/rc/references/api/vendor/members/accept-member-invite.mdx b/apps/docs/2.2.0/references/api/vendor/members/accept-member-invite.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/members/accept-member-invite.mdxrename to apps/docs/2.2.0/references/api/vendor/members/accept-member-invite.mdxdiff --git a/apps/docs/rc/references/api/vendor/members/retrieve-current-member.mdx b/apps/docs/2.2.0/references/api/vendor/members/retrieve-current-member.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/members/retrieve-current-member.mdxrename to apps/docs/2.2.0/references/api/vendor/members/retrieve-current-member.mdxdiff --git a/apps/docs/rc/references/api/vendor/members/update-current-member.mdx b/apps/docs/2.2.0/references/api/vendor/members/update-current-member.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/members/update-current-member.mdxrename to apps/docs/2.2.0/references/api/vendor/members/update-current-member.mdxdiff --git a/apps/docs/rc/references/api/vendor/offers/batch-create-offers.mdx b/apps/docs/2.2.0/references/api/vendor/offers/batch-create-offers.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/offers/batch-create-offers.mdxrename to apps/docs/2.2.0/references/api/vendor/offers/batch-create-offers.mdxdiff --git a/apps/docs/rc/references/api/vendor/offers/batch-offer-inventory-items.mdx b/apps/docs/2.2.0/references/api/vendor/offers/batch-offer-inventory-items.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/offers/batch-offer-inventory-items.mdxrename to apps/docs/2.2.0/references/api/vendor/offers/batch-offer-inventory-items.mdxdiff --git a/apps/docs/rc/references/api/vendor/offers/create-offer.mdx b/apps/docs/2.2.0/references/api/vendor/offers/create-offer.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/offers/create-offer.mdxrename to apps/docs/2.2.0/references/api/vendor/offers/create-offer.mdxdiff --git a/apps/docs/rc/references/api/vendor/offers/delete-offer.mdx b/apps/docs/2.2.0/references/api/vendor/offers/delete-offer.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/offers/delete-offer.mdxrename to apps/docs/2.2.0/references/api/vendor/offers/delete-offer.mdxdiff --git a/apps/docs/rc/references/api/vendor/offers/list-offers.mdx b/apps/docs/2.2.0/references/api/vendor/offers/list-offers.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/offers/list-offers.mdxrename to apps/docs/2.2.0/references/api/vendor/offers/list-offers.mdxdiff --git a/apps/docs/rc/references/api/vendor/offers/retrieve-offer.mdx b/apps/docs/2.2.0/references/api/vendor/offers/retrieve-offer.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/offers/retrieve-offer.mdxrename to apps/docs/2.2.0/references/api/vendor/offers/retrieve-offer.mdxdiff --git a/apps/docs/rc/references/api/vendor/offers/update-offer.mdx b/apps/docs/2.2.0/references/api/vendor/offers/update-offer.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/offers/update-offer.mdxrename to apps/docs/2.2.0/references/api/vendor/offers/update-offer.mdxdiff --git a/apps/docs/rc/references/api/vendor/orders/cancel-fulfillment.mdx b/apps/docs/2.2.0/references/api/vendor/orders/cancel-fulfillment.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/orders/cancel-fulfillment.mdxrename to apps/docs/2.2.0/references/api/vendor/orders/cancel-fulfillment.mdxdiff --git a/apps/docs/rc/references/api/vendor/orders/cancel-order.mdx b/apps/docs/2.2.0/references/api/vendor/orders/cancel-order.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/orders/cancel-order.mdxrename to apps/docs/2.2.0/references/api/vendor/orders/cancel-order.mdxdiff --git a/apps/docs/rc/references/api/vendor/orders/complete-order.mdx b/apps/docs/2.2.0/references/api/vendor/orders/complete-order.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/orders/complete-order.mdxrename to apps/docs/2.2.0/references/api/vendor/orders/complete-order.mdxdiff --git a/apps/docs/rc/references/api/vendor/orders/create-fulfillment.mdx b/apps/docs/2.2.0/references/api/vendor/orders/create-fulfillment.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/orders/create-fulfillment.mdxrename to apps/docs/2.2.0/references/api/vendor/orders/create-fulfillment.mdxdiff --git a/apps/docs/rc/references/api/vendor/orders/create-shipment.mdx b/apps/docs/2.2.0/references/api/vendor/orders/create-shipment.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/orders/create-shipment.mdxrename to apps/docs/2.2.0/references/api/vendor/orders/create-shipment.mdxdiff --git a/apps/docs/rc/references/api/vendor/orders/get-order-commission-lines.mdx b/apps/docs/2.2.0/references/api/vendor/orders/get-order-commission-lines.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/orders/get-order-commission-lines.mdxrename to apps/docs/2.2.0/references/api/vendor/orders/get-order-commission-lines.mdxdiff --git a/apps/docs/rc/references/api/vendor/orders/list-order-changes.mdx b/apps/docs/2.2.0/references/api/vendor/orders/list-order-changes.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/orders/list-order-changes.mdxrename to apps/docs/2.2.0/references/api/vendor/orders/list-order-changes.mdxdiff --git a/apps/docs/rc/references/api/vendor/orders/list-orders.mdx b/apps/docs/2.2.0/references/api/vendor/orders/list-orders.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/orders/list-orders.mdxrename to apps/docs/2.2.0/references/api/vendor/orders/list-orders.mdxdiff --git a/apps/docs/rc/references/api/vendor/orders/mark-fulfillment-delivered.mdx b/apps/docs/2.2.0/references/api/vendor/orders/mark-fulfillment-delivered.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/orders/mark-fulfillment-delivered.mdxrename to apps/docs/2.2.0/references/api/vendor/orders/mark-fulfillment-delivered.mdxdiff --git a/apps/docs/rc/references/api/vendor/orders/preview-order.mdx b/apps/docs/2.2.0/references/api/vendor/orders/preview-order.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/orders/preview-order.mdxrename to apps/docs/2.2.0/references/api/vendor/orders/preview-order.mdxdiff --git a/apps/docs/rc/references/api/vendor/orders/retrieve-order.mdx b/apps/docs/2.2.0/references/api/vendor/orders/retrieve-order.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/orders/retrieve-order.mdxrename to apps/docs/2.2.0/references/api/vendor/orders/retrieve-order.mdxdiff --git a/apps/docs/rc/references/api/vendor/payout-accounts/create-onboarding.mdx b/apps/docs/2.2.0/references/api/vendor/payout-accounts/create-onboarding.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/payout-accounts/create-onboarding.mdxrename to apps/docs/2.2.0/references/api/vendor/payout-accounts/create-onboarding.mdxdiff --git a/apps/docs/rc/references/api/vendor/payout-accounts/create-payout-account.mdx b/apps/docs/2.2.0/references/api/vendor/payout-accounts/create-payout-account.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/payout-accounts/create-payout-account.mdxrename to apps/docs/2.2.0/references/api/vendor/payout-accounts/create-payout-account.mdxdiff --git a/apps/docs/rc/references/api/vendor/payout-accounts/retrieve-payout-account-by-id.mdx b/apps/docs/2.2.0/references/api/vendor/payout-accounts/retrieve-payout-account-by-id.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/payout-accounts/retrieve-payout-account-by-id.mdxrename to apps/docs/2.2.0/references/api/vendor/payout-accounts/retrieve-payout-account-by-id.mdxdiff --git a/apps/docs/rc/references/api/vendor/payout-accounts/retrieve-payout-account.mdx b/apps/docs/2.2.0/references/api/vendor/payout-accounts/retrieve-payout-account.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/payout-accounts/retrieve-payout-account.mdxrename to apps/docs/2.2.0/references/api/vendor/payout-accounts/retrieve-payout-account.mdxdiff --git a/apps/docs/rc/references/api/vendor/payouts/list-payouts.mdx b/apps/docs/2.2.0/references/api/vendor/payouts/list-payouts.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/payouts/list-payouts.mdxrename to apps/docs/2.2.0/references/api/vendor/payouts/list-payouts.mdxdiff --git a/apps/docs/rc/references/api/vendor/payouts/retrieve-payout.mdx b/apps/docs/2.2.0/references/api/vendor/payouts/retrieve-payout.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/payouts/retrieve-payout.mdxrename to apps/docs/2.2.0/references/api/vendor/payouts/retrieve-payout.mdxdiff --git a/apps/docs/rc/references/api/vendor/product-attributes/list-product-attributes.mdx b/apps/docs/2.2.0/references/api/vendor/product-attributes/list-product-attributes.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/product-attributes/list-product-attributes.mdxrename to apps/docs/2.2.0/references/api/vendor/product-attributes/list-product-attributes.mdxdiff --git a/apps/docs/rc/references/api/vendor/product-attributes/retrieve-product-attribute.mdx b/apps/docs/2.2.0/references/api/vendor/product-attributes/retrieve-product-attribute.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/product-attributes/retrieve-product-attribute.mdxrename to apps/docs/2.2.0/references/api/vendor/product-attributes/retrieve-product-attribute.mdxdiff --git a/apps/docs/rc/references/api/vendor/product-variants/list-variants.mdx b/apps/docs/2.2.0/references/api/vendor/product-variants/list-variants.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/product-variants/list-variants.mdxrename to apps/docs/2.2.0/references/api/vendor/product-variants/list-variants.mdxdiff --git a/apps/docs/rc/references/api/vendor/products/batch-product-attributes.mdx b/apps/docs/2.2.0/references/api/vendor/products/batch-product-attributes.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/products/batch-product-attributes.mdxrename to apps/docs/2.2.0/references/api/vendor/products/batch-product-attributes.mdxdiff --git a/apps/docs/rc/references/api/vendor/products/cancel-product-change.mdx b/apps/docs/2.2.0/references/api/vendor/products/cancel-product-change.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/products/cancel-product-change.mdxrename to apps/docs/2.2.0/references/api/vendor/products/cancel-product-change.mdxdiff --git a/apps/docs/rc/references/api/vendor/products/create-product-variant.mdx b/apps/docs/2.2.0/references/api/vendor/products/create-product-variant.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/products/create-product-variant.mdxrename to apps/docs/2.2.0/references/api/vendor/products/create-product-variant.mdxdiff --git a/apps/docs/rc/references/api/vendor/products/create-product.mdx b/apps/docs/2.2.0/references/api/vendor/products/create-product.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/products/create-product.mdxrename to apps/docs/2.2.0/references/api/vendor/products/create-product.mdxdiff --git a/apps/docs/rc/references/api/vendor/products/delete-product-variant.mdx b/apps/docs/2.2.0/references/api/vendor/products/delete-product-variant.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/products/delete-product-variant.mdxrename to apps/docs/2.2.0/references/api/vendor/products/delete-product-variant.mdxdiff --git a/apps/docs/rc/references/api/vendor/products/delete-product.mdx b/apps/docs/2.2.0/references/api/vendor/products/delete-product.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/products/delete-product.mdxrename to apps/docs/2.2.0/references/api/vendor/products/delete-product.mdxdiff --git a/apps/docs/rc/references/api/vendor/products/list-product-variants.mdx b/apps/docs/2.2.0/references/api/vendor/products/list-product-variants.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/products/list-product-variants.mdxrename to apps/docs/2.2.0/references/api/vendor/products/list-product-variants.mdxdiff --git a/apps/docs/rc/references/api/vendor/products/list-products.mdx b/apps/docs/2.2.0/references/api/vendor/products/list-products.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/products/list-products.mdxrename to apps/docs/2.2.0/references/api/vendor/products/list-products.mdxdiff --git a/apps/docs/rc/references/api/vendor/products/preview-product.mdx b/apps/docs/2.2.0/references/api/vendor/products/preview-product.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/products/preview-product.mdxrename to apps/docs/2.2.0/references/api/vendor/products/preview-product.mdxdiff --git a/apps/docs/rc/references/api/vendor/products/retrieve-product-variant.mdx b/apps/docs/2.2.0/references/api/vendor/products/retrieve-product-variant.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/products/retrieve-product-variant.mdxrename to apps/docs/2.2.0/references/api/vendor/products/retrieve-product-variant.mdxdiff --git a/apps/docs/rc/references/api/vendor/products/retrieve-product.mdx b/apps/docs/2.2.0/references/api/vendor/products/retrieve-product.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/products/retrieve-product.mdxrename to apps/docs/2.2.0/references/api/vendor/products/retrieve-product.mdxdiff --git a/apps/docs/rc/references/api/vendor/products/update-product-variant.mdx b/apps/docs/2.2.0/references/api/vendor/products/update-product-variant.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/products/update-product-variant.mdxrename to apps/docs/2.2.0/references/api/vendor/products/update-product-variant.mdxdiff --git a/apps/docs/rc/references/api/vendor/products/update-product.mdx b/apps/docs/2.2.0/references/api/vendor/products/update-product.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/products/update-product.mdxrename to apps/docs/2.2.0/references/api/vendor/products/update-product.mdxdiff --git a/apps/docs/rc/references/api/vendor/sellers/create-seller.mdx b/apps/docs/2.2.0/references/api/vendor/sellers/create-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/sellers/create-seller.mdxrename to apps/docs/2.2.0/references/api/vendor/sellers/create-seller.mdxdiff --git a/apps/docs/rc/references/api/vendor/sellers/delete-professional-details.mdx b/apps/docs/2.2.0/references/api/vendor/sellers/delete-professional-details.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/sellers/delete-professional-details.mdxrename to apps/docs/2.2.0/references/api/vendor/sellers/delete-professional-details.mdxdiff --git a/apps/docs/rc/references/api/vendor/sellers/invite-seller-member.mdx b/apps/docs/2.2.0/references/api/vendor/sellers/invite-seller-member.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/sellers/invite-seller-member.mdxrename to apps/docs/2.2.0/references/api/vendor/sellers/invite-seller-member.mdxdiff --git a/apps/docs/rc/references/api/vendor/sellers/list-member-invites.mdx b/apps/docs/2.2.0/references/api/vendor/sellers/list-member-invites.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/sellers/list-member-invites.mdxrename to apps/docs/2.2.0/references/api/vendor/sellers/list-member-invites.mdxdiff --git a/apps/docs/rc/references/api/vendor/sellers/list-seller-members.mdx b/apps/docs/2.2.0/references/api/vendor/sellers/list-seller-members.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/sellers/list-seller-members.mdxrename to apps/docs/2.2.0/references/api/vendor/sellers/list-seller-members.mdxdiff --git a/apps/docs/rc/references/api/vendor/sellers/list-sellers.mdx b/apps/docs/2.2.0/references/api/vendor/sellers/list-sellers.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/sellers/list-sellers.mdxrename to apps/docs/2.2.0/references/api/vendor/sellers/list-sellers.mdxdiff --git a/apps/docs/rc/references/api/vendor/sellers/remove-seller-member.mdx b/apps/docs/2.2.0/references/api/vendor/sellers/remove-seller-member.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/sellers/remove-seller-member.mdxrename to apps/docs/2.2.0/references/api/vendor/sellers/remove-seller-member.mdxdiff --git a/apps/docs/rc/references/api/vendor/sellers/retrieve-current-seller-member.mdx b/apps/docs/2.2.0/references/api/vendor/sellers/retrieve-current-seller-member.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/sellers/retrieve-current-seller-member.mdxrename to apps/docs/2.2.0/references/api/vendor/sellers/retrieve-current-seller-member.mdxdiff --git a/apps/docs/rc/references/api/vendor/sellers/retrieve-current-seller.mdx b/apps/docs/2.2.0/references/api/vendor/sellers/retrieve-current-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/sellers/retrieve-current-seller.mdxrename to apps/docs/2.2.0/references/api/vendor/sellers/retrieve-current-seller.mdxdiff --git a/apps/docs/rc/references/api/vendor/sellers/select-seller.mdx b/apps/docs/2.2.0/references/api/vendor/sellers/select-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/sellers/select-seller.mdxrename to apps/docs/2.2.0/references/api/vendor/sellers/select-seller.mdxdiff --git a/apps/docs/rc/references/api/vendor/sellers/update-current-seller.mdx b/apps/docs/2.2.0/references/api/vendor/sellers/update-current-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/sellers/update-current-seller.mdxrename to apps/docs/2.2.0/references/api/vendor/sellers/update-current-seller.mdxdiff --git a/apps/docs/rc/references/api/vendor/sellers/update-member-role.mdx b/apps/docs/2.2.0/references/api/vendor/sellers/update-member-role.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/sellers/update-member-role.mdxrename to apps/docs/2.2.0/references/api/vendor/sellers/update-member-role.mdxdiff --git a/apps/docs/rc/references/api/vendor/sellers/upsert-payment-details.mdx b/apps/docs/2.2.0/references/api/vendor/sellers/upsert-payment-details.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/sellers/upsert-payment-details.mdxrename to apps/docs/2.2.0/references/api/vendor/sellers/upsert-payment-details.mdxdiff --git a/apps/docs/rc/references/api/vendor/sellers/upsert-professional-details.mdx b/apps/docs/2.2.0/references/api/vendor/sellers/upsert-professional-details.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/sellers/upsert-professional-details.mdxrename to apps/docs/2.2.0/references/api/vendor/sellers/upsert-professional-details.mdxdiff --git a/apps/docs/rc/references/api/vendor/sellers/upsert-seller-address.mdx b/apps/docs/2.2.0/references/api/vendor/sellers/upsert-seller-address.mdxsimilarity index 100%rename from apps/docs/rc/references/api/vendor/sellers/upsert-seller-address.mdxrename to apps/docs/2.2.0/references/api/vendor/sellers/upsert-seller-address.mdxdiff --git a/apps/docs/rc/references/configuration.mdx b/apps/docs/2.2.0/references/configuration.mdxsimilarity index 100%rename from apps/docs/rc/references/configuration.mdxrename to apps/docs/2.2.0/references/configuration.mdxdiff --git a/apps/docs/rc/references/modules/commission.mdx b/apps/docs/2.2.0/references/modules/commission.mdxsimilarity index 100%rename from apps/docs/rc/references/modules/commission.mdxrename to apps/docs/2.2.0/references/modules/commission.mdxdiff --git a/apps/docs/rc/references/modules/custom-fields.mdx b/apps/docs/2.2.0/references/modules/custom-fields.mdxsimilarity index 100%rename from apps/docs/rc/references/modules/custom-fields.mdxrename to apps/docs/2.2.0/references/modules/custom-fields.mdxdiff --git a/apps/docs/rc/references/modules/media.mdx b/apps/docs/2.2.0/references/modules/media.mdxsimilarity index 100%rename from apps/docs/rc/references/modules/media.mdxrename to apps/docs/2.2.0/references/modules/media.mdxdiff --git a/apps/docs/rc/references/modules/offer.mdx b/apps/docs/2.2.0/references/modules/offer.mdxsimilarity index 100%rename from apps/docs/rc/references/modules/offer.mdxrename to apps/docs/2.2.0/references/modules/offer.mdxdiff --git a/apps/docs/rc/references/modules/payout.mdx b/apps/docs/2.2.0/references/modules/payout.mdxsimilarity index 100%rename from apps/docs/rc/references/modules/payout.mdxrename to apps/docs/2.2.0/references/modules/payout.mdxdiff --git a/apps/docs/rc/references/modules/product-attribute.mdx b/apps/docs/2.2.0/references/modules/product-attribute.mdxsimilarity index 100%rename from apps/docs/rc/references/modules/product-attribute.mdxrename to apps/docs/2.2.0/references/modules/product-attribute.mdxdiff --git a/apps/docs/rc/references/modules/product-edit.mdx b/apps/docs/2.2.0/references/modules/product-edit.mdxsimilarity index 100%rename from apps/docs/rc/references/modules/product-edit.mdxrename to apps/docs/2.2.0/references/modules/product-edit.mdxdiff --git a/apps/docs/rc/references/modules/search.mdx b/apps/docs/2.2.0/references/modules/search.mdxsimilarity index 100%rename from apps/docs/rc/references/modules/search.mdxrename to apps/docs/2.2.0/references/modules/search.mdxdiff --git a/apps/docs/rc/references/modules/seller.mdx b/apps/docs/2.2.0/references/modules/seller.mdxsimilarity index 100%rename from apps/docs/rc/references/modules/seller.mdxrename to apps/docs/2.2.0/references/modules/seller.mdxdiff --git a/apps/docs/rc/references/overview.mdx b/apps/docs/2.2.0/references/overview.mdxsimilarity index 100%rename from apps/docs/rc/references/overview.mdxrename to apps/docs/2.2.0/references/overview.mdxdiff --git a/apps/docs/rc/references/panel-extension-api.mdx b/apps/docs/2.2.0/references/panel-extension-api.mdxsimilarity index 100%rename from apps/docs/rc/references/panel-extension-api.mdxrename to apps/docs/2.2.0/references/panel-extension-api.mdxdiff --git a/apps/docs/rc/references/workflows/cart/add-seller-shipping-method-to-cart.mdx b/apps/docs/2.2.0/references/workflows/cart/add-seller-shipping-method-to-cart.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/cart/add-seller-shipping-method-to-cart.mdxrename to apps/docs/2.2.0/references/workflows/cart/add-seller-shipping-method-to-cart.mdxdiff --git a/apps/docs/rc/references/workflows/cart/complete-cart-with-split-orders.mdx b/apps/docs/2.2.0/references/workflows/cart/complete-cart-with-split-orders.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/cart/complete-cart-with-split-orders.mdxrename to apps/docs/2.2.0/references/workflows/cart/complete-cart-with-split-orders.mdxdiff --git a/apps/docs/rc/references/workflows/cart/list-seller-shipping-options-for-cart.mdx b/apps/docs/2.2.0/references/workflows/cart/list-seller-shipping-options-for-cart.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/cart/list-seller-shipping-options-for-cart.mdxrename to apps/docs/2.2.0/references/workflows/cart/list-seller-shipping-options-for-cart.mdxdiff --git a/apps/docs/rc/references/workflows/cart/update-cart-seller-promotions.mdx b/apps/docs/2.2.0/references/workflows/cart/update-cart-seller-promotions.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/cart/update-cart-seller-promotions.mdxrename to apps/docs/2.2.0/references/workflows/cart/update-cart-seller-promotions.mdxdiff --git a/apps/docs/rc/references/workflows/commission/batch-commission-rules.mdx b/apps/docs/2.2.0/references/workflows/commission/batch-commission-rules.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/commission/batch-commission-rules.mdxrename to apps/docs/2.2.0/references/workflows/commission/batch-commission-rules.mdxdiff --git a/apps/docs/rc/references/workflows/commission/create-commission-rates.mdx b/apps/docs/2.2.0/references/workflows/commission/create-commission-rates.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/commission/create-commission-rates.mdxrename to apps/docs/2.2.0/references/workflows/commission/create-commission-rates.mdxdiff --git a/apps/docs/rc/references/workflows/commission/delete-commission-rates.mdx b/apps/docs/2.2.0/references/workflows/commission/delete-commission-rates.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/commission/delete-commission-rates.mdxrename to apps/docs/2.2.0/references/workflows/commission/delete-commission-rates.mdxdiff --git a/apps/docs/rc/references/workflows/commission/refresh-order-commission-lines.mdx b/apps/docs/2.2.0/references/workflows/commission/refresh-order-commission-lines.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/commission/refresh-order-commission-lines.mdxrename to apps/docs/2.2.0/references/workflows/commission/refresh-order-commission-lines.mdxdiff --git a/apps/docs/rc/references/workflows/commission/update-commission-rates.mdx b/apps/docs/2.2.0/references/workflows/commission/update-commission-rates.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/commission/update-commission-rates.mdxrename to apps/docs/2.2.0/references/workflows/commission/update-commission-rates.mdxdiff --git a/apps/docs/rc/references/workflows/media/set-category-images.mdx b/apps/docs/2.2.0/references/workflows/media/set-category-images.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/media/set-category-images.mdxrename to apps/docs/2.2.0/references/workflows/media/set-category-images.mdxdiff --git a/apps/docs/rc/references/workflows/media/set-collection-images.mdx b/apps/docs/2.2.0/references/workflows/media/set-collection-images.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/media/set-collection-images.mdxrename to apps/docs/2.2.0/references/workflows/media/set-collection-images.mdxdiff --git a/apps/docs/rc/references/workflows/member/accept-member-invite.mdx b/apps/docs/2.2.0/references/workflows/member/accept-member-invite.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/member/accept-member-invite.mdxrename to apps/docs/2.2.0/references/workflows/member/accept-member-invite.mdxdiff --git a/apps/docs/rc/references/workflows/member/add-seller-member.mdx b/apps/docs/2.2.0/references/workflows/member/add-seller-member.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/member/add-seller-member.mdxrename to apps/docs/2.2.0/references/workflows/member/add-seller-member.mdxdiff --git a/apps/docs/rc/references/workflows/member/create-member-invites.mdx b/apps/docs/2.2.0/references/workflows/member/create-member-invites.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/member/create-member-invites.mdxrename to apps/docs/2.2.0/references/workflows/member/create-member-invites.mdxdiff --git a/apps/docs/rc/references/workflows/member/delete-member-invite.mdx b/apps/docs/2.2.0/references/workflows/member/delete-member-invite.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/member/delete-member-invite.mdxrename to apps/docs/2.2.0/references/workflows/member/delete-member-invite.mdxdiff --git a/apps/docs/rc/references/workflows/member/remove-seller-member.mdx b/apps/docs/2.2.0/references/workflows/member/remove-seller-member.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/member/remove-seller-member.mdxrename to apps/docs/2.2.0/references/workflows/member/remove-seller-member.mdxdiff --git a/apps/docs/rc/references/workflows/member/resend-member-invite.mdx b/apps/docs/2.2.0/references/workflows/member/resend-member-invite.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/member/resend-member-invite.mdxrename to apps/docs/2.2.0/references/workflows/member/resend-member-invite.mdxdiff --git a/apps/docs/rc/references/workflows/member/update-member-role.mdx b/apps/docs/2.2.0/references/workflows/member/update-member-role.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/member/update-member-role.mdxrename to apps/docs/2.2.0/references/workflows/member/update-member-role.mdxdiff --git a/apps/docs/rc/references/workflows/member/update-member.mdx b/apps/docs/2.2.0/references/workflows/member/update-member.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/member/update-member.mdxrename to apps/docs/2.2.0/references/workflows/member/update-member.mdxdiff --git a/apps/docs/rc/references/workflows/offer/batch-offer-inventory-items.mdx b/apps/docs/2.2.0/references/workflows/offer/batch-offer-inventory-items.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/offer/batch-offer-inventory-items.mdxrename to apps/docs/2.2.0/references/workflows/offer/batch-offer-inventory-items.mdxdiff --git a/apps/docs/rc/references/workflows/offer/create-offers.mdx b/apps/docs/2.2.0/references/workflows/offer/create-offers.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/offer/create-offers.mdxrename to apps/docs/2.2.0/references/workflows/offer/create-offers.mdxdiff --git a/apps/docs/rc/references/workflows/offer/delete-offers.mdx b/apps/docs/2.2.0/references/workflows/offer/delete-offers.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/offer/delete-offers.mdxrename to apps/docs/2.2.0/references/workflows/offer/delete-offers.mdxdiff --git a/apps/docs/rc/references/workflows/offer/update-offers.mdx b/apps/docs/2.2.0/references/workflows/offer/update-offers.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/offer/update-offers.mdxrename to apps/docs/2.2.0/references/workflows/offer/update-offers.mdxdiff --git a/apps/docs/rc/references/workflows/order-group/get-order-group-detail.mdx b/apps/docs/2.2.0/references/workflows/order-group/get-order-group-detail.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/order-group/get-order-group-detail.mdxrename to apps/docs/2.2.0/references/workflows/order-group/get-order-group-detail.mdxdiff --git a/apps/docs/rc/references/workflows/order-group/get-order-groups-list.mdx b/apps/docs/2.2.0/references/workflows/order-group/get-order-groups-list.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/order-group/get-order-groups-list.mdxrename to apps/docs/2.2.0/references/workflows/order-group/get-order-groups-list.mdxdiff --git a/apps/docs/rc/references/workflows/order/cancel-order-fulfillment.mdx b/apps/docs/2.2.0/references/workflows/order/cancel-order-fulfillment.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/order/cancel-order-fulfillment.mdxrename to apps/docs/2.2.0/references/workflows/order/cancel-order-fulfillment.mdxdiff --git a/apps/docs/rc/references/workflows/order/confirm-claim-request.mdx b/apps/docs/2.2.0/references/workflows/order/confirm-claim-request.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/order/confirm-claim-request.mdxrename to apps/docs/2.2.0/references/workflows/order/confirm-claim-request.mdxdiff --git a/apps/docs/rc/references/workflows/order/confirm-exchange-request.mdx b/apps/docs/2.2.0/references/workflows/order/confirm-exchange-request.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/order/confirm-exchange-request.mdxrename to apps/docs/2.2.0/references/workflows/order/confirm-exchange-request.mdxdiff --git a/apps/docs/rc/references/workflows/order/confirm-order-edit-request.mdx b/apps/docs/2.2.0/references/workflows/order/confirm-order-edit-request.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/order/confirm-order-edit-request.mdxrename to apps/docs/2.2.0/references/workflows/order/confirm-order-edit-request.mdxdiff --git a/apps/docs/rc/references/workflows/order/confirm-return-receive.mdx b/apps/docs/2.2.0/references/workflows/order/confirm-return-receive.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/order/confirm-return-receive.mdxrename to apps/docs/2.2.0/references/workflows/order/confirm-return-receive.mdxdiff --git a/apps/docs/rc/references/workflows/order/create-order-fulfillment.mdx b/apps/docs/2.2.0/references/workflows/order/create-order-fulfillment.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/order/create-order-fulfillment.mdxrename to apps/docs/2.2.0/references/workflows/order/create-order-fulfillment.mdxdiff --git a/apps/docs/rc/references/workflows/overview.mdx b/apps/docs/2.2.0/references/workflows/overview.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/overview.mdxrename to apps/docs/2.2.0/references/workflows/overview.mdxdiff --git a/apps/docs/rc/references/workflows/payout/create-onboarding.mdx b/apps/docs/2.2.0/references/workflows/payout/create-onboarding.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/payout/create-onboarding.mdxrename to apps/docs/2.2.0/references/workflows/payout/create-onboarding.mdxdiff --git a/apps/docs/rc/references/workflows/payout/create-payout-account.mdx b/apps/docs/2.2.0/references/workflows/payout/create-payout-account.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/payout/create-payout-account.mdxrename to apps/docs/2.2.0/references/workflows/payout/create-payout-account.mdxdiff --git a/apps/docs/rc/references/workflows/payout/create-payout.mdx b/apps/docs/2.2.0/references/workflows/payout/create-payout.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/payout/create-payout.mdxrename to apps/docs/2.2.0/references/workflows/payout/create-payout.mdxdiff --git a/apps/docs/rc/references/workflows/payout/process-payout-for-webhook.mdx b/apps/docs/2.2.0/references/workflows/payout/process-payout-for-webhook.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/payout/process-payout-for-webhook.mdxrename to apps/docs/2.2.0/references/workflows/payout/process-payout-for-webhook.mdxdiff --git a/apps/docs/rc/references/workflows/product-attribute/add-product-attributes-to-product.mdx b/apps/docs/2.2.0/references/workflows/product-attribute/add-product-attributes-to-product.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product-attribute/add-product-attributes-to-product.mdxrename to apps/docs/2.2.0/references/workflows/product-attribute/add-product-attributes-to-product.mdxdiff --git a/apps/docs/rc/references/workflows/product-attribute/create-and-link-product-attributes-to-product.mdx b/apps/docs/2.2.0/references/workflows/product-attribute/create-and-link-product-attributes-to-product.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product-attribute/create-and-link-product-attributes-to-product.mdxrename to apps/docs/2.2.0/references/workflows/product-attribute/create-and-link-product-attributes-to-product.mdxdiff --git a/apps/docs/rc/references/workflows/product-attribute/create-product-attribute-values.mdx b/apps/docs/2.2.0/references/workflows/product-attribute/create-product-attribute-values.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product-attribute/create-product-attribute-values.mdxrename to apps/docs/2.2.0/references/workflows/product-attribute/create-product-attribute-values.mdxdiff --git a/apps/docs/rc/references/workflows/product-attribute/create-product-attributes.mdx b/apps/docs/2.2.0/references/workflows/product-attribute/create-product-attributes.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product-attribute/create-product-attributes.mdxrename to apps/docs/2.2.0/references/workflows/product-attribute/create-product-attributes.mdxdiff --git a/apps/docs/rc/references/workflows/product-attribute/delete-product-attribute-values.mdx b/apps/docs/2.2.0/references/workflows/product-attribute/delete-product-attribute-values.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product-attribute/delete-product-attribute-values.mdxrename to apps/docs/2.2.0/references/workflows/product-attribute/delete-product-attribute-values.mdxdiff --git a/apps/docs/rc/references/workflows/product-attribute/delete-product-attributes.mdx b/apps/docs/2.2.0/references/workflows/product-attribute/delete-product-attributes.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product-attribute/delete-product-attributes.mdxrename to apps/docs/2.2.0/references/workflows/product-attribute/delete-product-attributes.mdxdiff --git a/apps/docs/rc/references/workflows/product-attribute/remove-product-attributes-from-product.mdx b/apps/docs/2.2.0/references/workflows/product-attribute/remove-product-attributes-from-product.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product-attribute/remove-product-attributes-from-product.mdxrename to apps/docs/2.2.0/references/workflows/product-attribute/remove-product-attributes-from-product.mdxdiff --git a/apps/docs/rc/references/workflows/product-attribute/update-product-attribute-values.mdx b/apps/docs/2.2.0/references/workflows/product-attribute/update-product-attribute-values.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product-attribute/update-product-attribute-values.mdxrename to apps/docs/2.2.0/references/workflows/product-attribute/update-product-attribute-values.mdxdiff --git a/apps/docs/rc/references/workflows/product-attribute/update-product-attributes-on-product.mdx b/apps/docs/2.2.0/references/workflows/product-attribute/update-product-attributes-on-product.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product-attribute/update-product-attributes-on-product.mdxrename to apps/docs/2.2.0/references/workflows/product-attribute/update-product-attributes-on-product.mdxdiff --git a/apps/docs/rc/references/workflows/product-attribute/update-product-attributes.mdx b/apps/docs/2.2.0/references/workflows/product-attribute/update-product-attributes.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product-attribute/update-product-attributes.mdxrename to apps/docs/2.2.0/references/workflows/product-attribute/update-product-attributes.mdxdiff --git a/apps/docs/rc/references/workflows/product-attribute/upsert-product-attribute-values.mdx b/apps/docs/2.2.0/references/workflows/product-attribute/upsert-product-attribute-values.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product-attribute/upsert-product-attribute-values.mdxrename to apps/docs/2.2.0/references/workflows/product-attribute/upsert-product-attribute-values.mdxdiff --git a/apps/docs/rc/references/workflows/product-edit/auto-confirm-product-change.mdx b/apps/docs/2.2.0/references/workflows/product-edit/auto-confirm-product-change.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product-edit/auto-confirm-product-change.mdxrename to apps/docs/2.2.0/references/workflows/product-edit/auto-confirm-product-change.mdxdiff --git a/apps/docs/rc/references/workflows/product-edit/cancel-product-change.mdx b/apps/docs/2.2.0/references/workflows/product-edit/cancel-product-change.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product-edit/cancel-product-change.mdxrename to apps/docs/2.2.0/references/workflows/product-edit/cancel-product-change.mdxdiff --git a/apps/docs/rc/references/workflows/product-edit/confirm-product-change.mdx b/apps/docs/2.2.0/references/workflows/product-edit/confirm-product-change.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product-edit/confirm-product-change.mdxrename to apps/docs/2.2.0/references/workflows/product-edit/confirm-product-change.mdxdiff --git a/apps/docs/rc/references/workflows/product-edit/create-product-change.mdx b/apps/docs/2.2.0/references/workflows/product-edit/create-product-change.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product-edit/create-product-change.mdxrename to apps/docs/2.2.0/references/workflows/product-edit/create-product-change.mdxdiff --git a/apps/docs/rc/references/workflows/product-edit/reject-product-change.mdx b/apps/docs/2.2.0/references/workflows/product-edit/reject-product-change.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product-edit/reject-product-change.mdxrename to apps/docs/2.2.0/references/workflows/product-edit/reject-product-change.mdxdiff --git a/apps/docs/rc/references/workflows/product-edit/stage-product-change.mdx b/apps/docs/2.2.0/references/workflows/product-edit/stage-product-change.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product-edit/stage-product-change.mdxrename to apps/docs/2.2.0/references/workflows/product-edit/stage-product-change.mdxdiff --git a/apps/docs/rc/references/workflows/product/confirm-products.mdx b/apps/docs/2.2.0/references/workflows/product/confirm-products.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product/confirm-products.mdxrename to apps/docs/2.2.0/references/workflows/product/confirm-products.mdxdiff --git a/apps/docs/rc/references/workflows/product/create-products.mdx b/apps/docs/2.2.0/references/workflows/product/create-products.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product/create-products.mdxrename to apps/docs/2.2.0/references/workflows/product/create-products.mdxdiff --git a/apps/docs/rc/references/workflows/product/link-sellers-to-product-category.mdx b/apps/docs/2.2.0/references/workflows/product/link-sellers-to-product-category.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product/link-sellers-to-product-category.mdxrename to apps/docs/2.2.0/references/workflows/product/link-sellers-to-product-category.mdxdiff --git a/apps/docs/rc/references/workflows/product/link-sellers-to-product.mdx b/apps/docs/2.2.0/references/workflows/product/link-sellers-to-product.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product/link-sellers-to-product.mdxrename to apps/docs/2.2.0/references/workflows/product/link-sellers-to-product.mdxdiff --git a/apps/docs/rc/references/workflows/product/reject-product.mdx b/apps/docs/2.2.0/references/workflows/product/reject-product.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product/reject-product.mdxrename to apps/docs/2.2.0/references/workflows/product/reject-product.mdxdiff --git a/apps/docs/rc/references/workflows/product/request-product-change.mdx b/apps/docs/2.2.0/references/workflows/product/request-product-change.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/product/request-product-change.mdxrename to apps/docs/2.2.0/references/workflows/product/request-product-change.mdxdiff --git a/apps/docs/rc/references/workflows/seller/approve-seller.mdx b/apps/docs/2.2.0/references/workflows/seller/approve-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/seller/approve-seller.mdxrename to apps/docs/2.2.0/references/workflows/seller/approve-seller.mdxdiff --git a/apps/docs/rc/references/workflows/seller/create-seller-account.mdx b/apps/docs/2.2.0/references/workflows/seller/create-seller-account.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/seller/create-seller-account.mdxrename to apps/docs/2.2.0/references/workflows/seller/create-seller-account.mdxdiff --git a/apps/docs/rc/references/workflows/seller/create-seller-defaults.mdx b/apps/docs/2.2.0/references/workflows/seller/create-seller-defaults.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/seller/create-seller-defaults.mdxrename to apps/docs/2.2.0/references/workflows/seller/create-seller-defaults.mdxdiff --git a/apps/docs/rc/references/workflows/seller/create-sellers.mdx b/apps/docs/2.2.0/references/workflows/seller/create-sellers.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/seller/create-sellers.mdxrename to apps/docs/2.2.0/references/workflows/seller/create-sellers.mdxdiff --git a/apps/docs/rc/references/workflows/seller/delete-seller-professional-details.mdx b/apps/docs/2.2.0/references/workflows/seller/delete-seller-professional-details.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/seller/delete-seller-professional-details.mdxrename to apps/docs/2.2.0/references/workflows/seller/delete-seller-professional-details.mdxdiff --git a/apps/docs/rc/references/workflows/seller/delete-sellers.mdx b/apps/docs/2.2.0/references/workflows/seller/delete-sellers.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/seller/delete-sellers.mdxrename to apps/docs/2.2.0/references/workflows/seller/delete-sellers.mdxdiff --git a/apps/docs/rc/references/workflows/seller/invite-seller.mdx b/apps/docs/2.2.0/references/workflows/seller/invite-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/seller/invite-seller.mdxrename to apps/docs/2.2.0/references/workflows/seller/invite-seller.mdxdiff --git a/apps/docs/rc/references/workflows/seller/suspend-seller.mdx b/apps/docs/2.2.0/references/workflows/seller/suspend-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/seller/suspend-seller.mdxrename to apps/docs/2.2.0/references/workflows/seller/suspend-seller.mdxdiff --git a/apps/docs/rc/references/workflows/seller/terminate-seller.mdx b/apps/docs/2.2.0/references/workflows/seller/terminate-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/seller/terminate-seller.mdxrename to apps/docs/2.2.0/references/workflows/seller/terminate-seller.mdxdiff --git a/apps/docs/rc/references/workflows/seller/unsuspend-seller.mdx b/apps/docs/2.2.0/references/workflows/seller/unsuspend-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/seller/unsuspend-seller.mdxrename to apps/docs/2.2.0/references/workflows/seller/unsuspend-seller.mdxdiff --git a/apps/docs/rc/references/workflows/seller/unterminate-seller.mdx b/apps/docs/2.2.0/references/workflows/seller/unterminate-seller.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/seller/unterminate-seller.mdxrename to apps/docs/2.2.0/references/workflows/seller/unterminate-seller.mdxdiff --git a/apps/docs/rc/references/workflows/seller/update-seller-address.mdx b/apps/docs/2.2.0/references/workflows/seller/update-seller-address.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/seller/update-seller-address.mdxrename to apps/docs/2.2.0/references/workflows/seller/update-seller-address.mdxdiff --git a/apps/docs/rc/references/workflows/seller/update-seller-payment-details.mdx b/apps/docs/2.2.0/references/workflows/seller/update-seller-payment-details.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/seller/update-seller-payment-details.mdxrename to apps/docs/2.2.0/references/workflows/seller/update-seller-payment-details.mdxdiff --git a/apps/docs/rc/references/workflows/seller/update-seller-professional-details.mdx b/apps/docs/2.2.0/references/workflows/seller/update-seller-professional-details.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/seller/update-seller-professional-details.mdxrename to apps/docs/2.2.0/references/workflows/seller/update-seller-professional-details.mdxdiff --git a/apps/docs/rc/references/workflows/seller/update-sellers.mdx b/apps/docs/2.2.0/references/workflows/seller/update-sellers.mdxsimilarity index 100%rename from apps/docs/rc/references/workflows/seller/update-sellers.mdxrename to apps/docs/2.2.0/references/workflows/seller/update-sellers.mdxdiff --git a/apps/docs/rc/resources/ai/llms.mdx b/apps/docs/2.2.0/resources/ai/llms.mdxsimilarity index 100%rename from apps/docs/rc/resources/ai/llms.mdxrename to apps/docs/2.2.0/resources/ai/llms.mdxdiff --git a/apps/docs/rc/resources/ai/mcp.mdx b/apps/docs/2.2.0/resources/ai/mcp.mdxsimilarity index 100%rename from apps/docs/rc/resources/ai/mcp.mdxrename to apps/docs/2.2.0/resources/ai/mcp.mdxdiff --git a/apps/docs/rc/resources/ai/overview.mdx b/apps/docs/2.2.0/resources/ai/overview.mdxsimilarity index 95%rename from apps/docs/rc/resources/ai/overview.mdxrename to apps/docs/2.2.0/resources/ai/overview.mdxindex 0e74ccdf0..418e5d96e 100644--- a/apps/docs/rc/resources/ai/overview.mdx+++ b/apps/docs/2.2.0/resources/ai/overview.mdx@@ -30,7 +30,7 @@ Because the docs travel with the package, an agent always has documentation that### New projects-Projects created with `bunx @mercurjs/cli@rc create` are ready out of the box. The template ships:+Projects created with `bunx @mercurjs/cli@latest create` are ready out of the box. The template ships:- `@mercurjs/docs` as a dependency, so the docs land in `node_modules` on install- an `AGENTS.md` and a `CLAUDE.md` at the project root that tell agents to read the bundled docs first@@ -79,7 +79,7 @@ Mercur gives an agent a fast, machine-checkable way to know whether a change is| `bun run build` | Types resolve and the generated client matches the routes || `bun run lint` | Code conforms to the project's rules || Integration tests (`packages/api`) | Backend behavior still holds |-| `bunx @mercurjs/cli@rc diff` | Local blocks vs. the registry — what changed and what drifted |+| `bunx @mercurjs/cli@latest diff` | Local blocks vs. the registry — what changed and what drifted |Because these are objective, an agent can define what "done" looks like, run the checks, read the output, and iterate until they pass — instead of stopping at "looks plausible."diff --git a/apps/docs/rc/resources/best-practices/api-routes.mdx b/apps/docs/2.2.0/resources/best-practices/api-routes.mdxsimilarity index 100%rename from apps/docs/rc/resources/best-practices/api-routes.mdxrename to apps/docs/2.2.0/resources/best-practices/api-routes.mdxdiff --git a/apps/docs/rc/resources/best-practices/custom-fields.mdx b/apps/docs/2.2.0/resources/best-practices/custom-fields.mdxsimilarity index 100%rename from apps/docs/rc/resources/best-practices/custom-fields.mdxrename to apps/docs/2.2.0/resources/best-practices/custom-fields.mdxdiff --git a/apps/docs/rc/resources/best-practices/frontend.mdx b/apps/docs/2.2.0/resources/best-practices/frontend.mdxsimilarity index 100%rename from apps/docs/rc/resources/best-practices/frontend.mdxrename to apps/docs/2.2.0/resources/best-practices/frontend.mdxdiff --git a/apps/docs/rc/resources/best-practices/module-links.mdx b/apps/docs/2.2.0/resources/best-practices/module-links.mdxsimilarity index 100%rename from apps/docs/rc/resources/best-practices/module-links.mdxrename to apps/docs/2.2.0/resources/best-practices/module-links.mdxdiff --git a/apps/docs/rc/resources/best-practices/modules.mdx b/apps/docs/2.2.0/resources/best-practices/modules.mdxsimilarity index 100%rename from apps/docs/rc/resources/best-practices/modules.mdxrename to apps/docs/2.2.0/resources/best-practices/modules.mdxdiff --git a/apps/docs/rc/resources/best-practices/overview.mdx b/apps/docs/2.2.0/resources/best-practices/overview.mdxsimilarity index 100%rename from apps/docs/rc/resources/best-practices/overview.mdxrename to apps/docs/2.2.0/resources/best-practices/overview.mdxdiff --git a/apps/docs/rc/resources/best-practices/subscribers-and-jobs.mdx b/apps/docs/2.2.0/resources/best-practices/subscribers-and-jobs.mdxsimilarity index 100%rename from apps/docs/rc/resources/best-practices/subscribers-and-jobs.mdxrename to apps/docs/2.2.0/resources/best-practices/subscribers-and-jobs.mdxdiff --git a/apps/docs/rc/resources/best-practices/types.mdx b/apps/docs/2.2.0/resources/best-practices/types.mdxsimilarity index 100%rename from apps/docs/rc/resources/best-practices/types.mdxrename to apps/docs/2.2.0/resources/best-practices/types.mdxdiff --git a/apps/docs/rc/resources/best-practices/workflows.mdx b/apps/docs/2.2.0/resources/best-practices/workflows.mdxsimilarity index 100%rename from apps/docs/rc/resources/best-practices/workflows.mdxrename to apps/docs/2.2.0/resources/best-practices/workflows.mdxdiff --git a/apps/docs/rc/resources/customization/custom-fields.mdx b/apps/docs/2.2.0/resources/customization/custom-fields.mdxsimilarity index 100%rename from apps/docs/rc/resources/customization/custom-fields.mdxrename to apps/docs/2.2.0/resources/customization/custom-fields.mdxdiff --git a/apps/docs/rc/resources/customization/extend-a-workflow.mdx b/apps/docs/2.2.0/resources/customization/extend-a-workflow.mdxsimilarity index 100%rename from apps/docs/rc/resources/customization/extend-a-workflow.mdxrename to apps/docs/2.2.0/resources/customization/extend-a-workflow.mdxdiff --git a/apps/docs/rc/resources/customization/extending-panels.mdx b/apps/docs/2.2.0/resources/customization/extending-panels.mdxsimilarity index 100%rename from apps/docs/rc/resources/customization/extending-panels.mdxrename to apps/docs/2.2.0/resources/customization/extending-panels.mdxdiff --git a/apps/docs/rc/resources/deployment/medusa-cloud.mdx b/apps/docs/2.2.0/resources/deployment/medusa-cloud.mdxsimilarity index 100%rename from apps/docs/rc/resources/deployment/medusa-cloud.mdxrename to apps/docs/2.2.0/resources/deployment/medusa-cloud.mdxdiff --git a/apps/docs/rc/resources/integrations/notifications.mdx b/apps/docs/2.2.0/resources/integrations/notifications.mdxsimilarity index 100%rename from apps/docs/rc/resources/integrations/notifications.mdxrename to apps/docs/2.2.0/resources/integrations/notifications.mdxdiff --git a/apps/docs/rc/resources/integrations/search.mdx b/apps/docs/2.2.0/resources/integrations/search.mdxsimilarity index 98%rename from apps/docs/rc/resources/integrations/search.mdxrename to apps/docs/2.2.0/resources/integrations/search.mdxindex 7d1a4efed..67f478cfd 100644--- a/apps/docs/rc/resources/integrations/search.mdx+++ b/apps/docs/2.2.0/resources/integrations/search.mdx@@ -58,9 +58,9 @@ The bundled `search-orama` provider keeps the index in RAM inside the API procesReady-made provider integrations ship as blocks:```bash-bunx @mercurjs/cli@rc add algolia+bunx @mercurjs/cli@latest add algolia# or-bunx @mercurjs/cli@rc add meilisearch+bunx @mercurjs/cli@latest add meilisearch```| Provider | Hosting | Best for |diff --git a/apps/docs/rc/resources/integrations/stripe-connect.mdx b/apps/docs/2.2.0/resources/integrations/stripe-connect.mdxsimilarity index 100%rename from apps/docs/rc/resources/integrations/stripe-connect.mdxrename to apps/docs/2.2.0/resources/integrations/stripe-connect.mdxdiff --git a/apps/docs/rc/resources/tutorials/add-a-block.mdx b/apps/docs/2.2.0/resources/tutorials/add-a-block.mdxsimilarity index 85%rename from apps/docs/rc/resources/tutorials/add-a-block.mdxrename to apps/docs/2.2.0/resources/tutorials/add-a-block.mdxindex 41ed37c29..a80241fb2 100644--- a/apps/docs/rc/resources/tutorials/add-a-block.mdx+++ b/apps/docs/2.2.0/resources/tutorials/add-a-block.mdx@@ -20,15 +20,15 @@ Install reviews as a block and see it running everywhere it appears.Search the registry and inspect what the block ships before installing:```bash- bunx @mercurjs/cli@rc search --query reviews- bunx @mercurjs/cli@rc view reviews+ bunx @mercurjs/cli@latest search --query reviews+ bunx @mercurjs/cli@latest view reviews````view` lists the block's files by target (API, admin, vendor) and its dependencies.</Step><Step title="Install it">```bash- bunx @mercurjs/cli@rc add reviews+ bunx @mercurjs/cli@latest add reviews```The CLI copies the source into the directories mapped by your `blocks.json` aliases and prints the block's post-install instructions — module registration, middlewares, migrations.@@ -40,7 +40,7 @@ Install reviews as a block and see it running everywhere it appears.cd packages/apibunx medusa db:generate reviewsbunx medusa db:migrate- bunx @mercurjs/cli@rc codegen+ bunx @mercurjs/cli@latest codegen```</Step><Step title="See it live">@@ -53,7 +53,7 @@ Install reviews as a block and see it running everywhere it appears.1. The block's files exist in your repo under the alias-mapped paths.2. Migrations ran cleanly and the API boots.3. The admin and vendor panels show their reviews pages; the store review endpoints respond.-4. `bunx @mercurjs/cli@rc diff reviews` reports no drift from the registry.+4. `bunx @mercurjs/cli@latest diff reviews` reports no drift from the registry.## FAQ@@ -62,7 +62,7 @@ Install reviews as a block and see it running everywhere it appears.The CLI asks before overwriting existing files (or force it with `--overwrite`). If you've customized a page the block also ships, merge by hand — you're merging source, not resolving package versions.</Accordion><Accordion title="How do I update a block later?">- `bunx @mercurjs/cli@rc diff reviews` shows what changed in the registry since you installed. Take updates with `add reviews --overwrite`, re-applying any local edits afterwards.+ `bunx @mercurjs/cli@latest diff reviews` shows what changed in the registry since you installed. Take updates with `add reviews --overwrite`, re-applying any local edits afterwards.</Accordion></AccordionGroup>diff --git a/apps/docs/rc/resources/tutorials/add-a-widget.mdx b/apps/docs/2.2.0/resources/tutorials/add-a-widget.mdxsimilarity index 100%rename from apps/docs/rc/resources/tutorials/add-a-widget.mdxrename to apps/docs/2.2.0/resources/tutorials/add-a-widget.mdxdiff --git a/apps/docs/rc/resources/tutorials/add-order-detail-button.mdx b/apps/docs/2.2.0/resources/tutorials/add-order-detail-button.mdxsimilarity index 100%rename from apps/docs/rc/resources/tutorials/add-order-detail-button.mdxrename to apps/docs/2.2.0/resources/tutorials/add-order-detail-button.mdxdiff --git a/apps/docs/rc/resources/tutorials/attributes-and-variant-axes.mdx b/apps/docs/2.2.0/resources/tutorials/attributes-and-variant-axes.mdxsimilarity index 100%rename from apps/docs/rc/resources/tutorials/attributes-and-variant-axes.mdxrename to apps/docs/2.2.0/resources/tutorials/attributes-and-variant-axes.mdxdiff --git a/apps/docs/rc/resources/tutorials/build-a-block.mdx b/apps/docs/2.2.0/resources/tutorials/build-a-block.mdxsimilarity index 95%rename from apps/docs/rc/resources/tutorials/build-a-block.mdxrename to apps/docs/2.2.0/resources/tutorials/build-a-block.mdxindex d367be5b0..df3cbf63b 100644--- a/apps/docs/rc/resources/tutorials/build-a-block.mdx+++ b/apps/docs/2.2.0/resources/tutorials/build-a-block.mdx@@ -58,7 +58,7 @@ Each file in a block carries a `type` that maps to an alias in the consumer's `b"description": "Marketplace announcements with a vendor portal feed.","dependencies": [],"registryDependencies": [],- "docs": "## Setup\n\nRegister the module in `medusa-config.ts`, then run `bunx medusa db:generate announcements && bunx medusa db:migrate`, and finally `bunx @mercurjs/cli@rc codegen`.",+ "docs": "## Setup\n\nRegister the module in `medusa-config.ts`, then run `bunx medusa db:generate announcements && bunx medusa db:migrate`, and finally `bunx @mercurjs/cli@latest codegen`.","categories": ["module", "api", "vendor"],"files": [{ "path": "announcements/modules/announcements/index.ts", "type": "registry:module" },@@ -74,7 +74,7 @@ Each file in a block carries a `type` that maps to an alias in the consumer's `b</Step><Step title="Build the registry">```bash- bunx @mercurjs/cli@rc build+ bunx @mercurjs/cli@latest build```This reads `registry.json`, resolves each block's imports, embeds file contents, and writes one JSON per block into `r/` — `r/announcements.json`, plus an index `r/registry.json`.@@ -94,7 +94,7 @@ Each file in a block carries a `type` that maps to an alias in the consumer's `b``````bash- bunx @mercurjs/cli@rc add @my-org/announcements+ bunx @mercurjs/cli@latest add @my-org/announcements```The CLI fetches the JSON, maps each file's `type` to the consumer's aliases, rewrites imports, and prints your `docs` instructions.@@ -106,7 +106,7 @@ Each file in a block carries a `type` that maps to an alias in the consumer's `b1. `r/announcements.json` exists after the build and embeds every file's content.2. In the consumer project, the files landed under the alias-mapped paths and imports resolve.3. After following your own `docs` steps (module registration, migrations, codegen), `bun run build` passes and the vendor portal shows the Announcements page.-4. `bunx @mercurjs/cli@rc diff @my-org/announcements` reports no changes — the installed copy matches the registry.+4. `bunx @mercurjs/cli@latest diff @my-org/announcements` reports no changes — the installed copy matches the registry.## FAQdiff --git a/apps/docs/rc/resources/tutorials/configure-commissions.mdx b/apps/docs/2.2.0/resources/tutorials/configure-commissions.mdxsimilarity index 100%rename from apps/docs/rc/resources/tutorials/configure-commissions.mdxrename to apps/docs/2.2.0/resources/tutorials/configure-commissions.mdxdiff --git a/apps/docs/rc/resources/tutorials/custom-api-route.mdx b/apps/docs/2.2.0/resources/tutorials/custom-api-route.mdxsimilarity index 97%rename from apps/docs/rc/resources/tutorials/custom-api-route.mdxrename to apps/docs/2.2.0/resources/tutorials/custom-api-route.mdxindex 841d9040c..869ed3b79 100644--- a/apps/docs/rc/resources/tutorials/custom-api-route.mdx+++ b/apps/docs/2.2.0/resources/tutorials/custom-api-route.mdx@@ -43,7 +43,7 @@ A `GET /vendor/sales-summary` endpoint returning the seller's order count, calle</Step><Step title="Regenerate the route map">```bash- bunx @mercurjs/cli@rc codegen+ bunx @mercurjs/cli@latest codegen```Codegen scans your route files and rewrites the generated `Routes` type that your panel apps already import:@@ -63,7 +63,7 @@ A `GET /vendor/sales-summary` endpoint returning the seller's order count, calleThis file ships with the starter template — you don't need to touch it. After codegen, `client.vendor.salesSummary` simply exists, typed.<Tip>- Run `bunx @mercurjs/cli@rc codegen --watch` during development so the route map regenerates as you edit route files.+ Run `bunx @mercurjs/cli@latest codegen --watch` during development so the route map regenerates as you edit route files.</Tip></Step><Step title="Call it from a panel page">diff --git a/apps/docs/rc/resources/tutorials/custom-panel-page.mdx b/apps/docs/2.2.0/resources/tutorials/custom-panel-page.mdxsimilarity index 100%rename from apps/docs/rc/resources/tutorials/custom-panel-page.mdxrename to apps/docs/2.2.0/resources/tutorials/custom-panel-page.mdxdiff --git a/apps/docs/rc/resources/tutorials/customize-navigation.mdx b/apps/docs/2.2.0/resources/tutorials/customize-navigation.mdxsimilarity index 100%rename from apps/docs/rc/resources/tutorials/customize-navigation.mdxrename to apps/docs/2.2.0/resources/tutorials/customize-navigation.mdxdiff --git a/apps/docs/rc/resources/tutorials/extend-forms-and-tables.mdx b/apps/docs/2.2.0/resources/tutorials/extend-forms-and-tables.mdxsimilarity index 100%rename from apps/docs/rc/resources/tutorials/extend-forms-and-tables.mdxrename to apps/docs/2.2.0/resources/tutorials/extend-forms-and-tables.mdxdiff --git a/apps/docs/rc/resources/tutorials/extend-onboarding.mdx b/apps/docs/2.2.0/resources/tutorials/extend-onboarding.mdxsimilarity index 100%rename from apps/docs/rc/resources/tutorials/extend-onboarding.mdxrename to apps/docs/2.2.0/resources/tutorials/extend-onboarding.mdxdiff --git a/apps/docs/rc/resources/tutorials/first-marketplace.mdx b/apps/docs/2.2.0/resources/tutorials/first-marketplace.mdxsimilarity index 100%rename from apps/docs/rc/resources/tutorials/first-marketplace.mdxrename to apps/docs/2.2.0/resources/tutorials/first-marketplace.mdxdiff --git a/apps/docs/rc/resources/tutorials/handle-product-requests.mdx b/apps/docs/2.2.0/resources/tutorials/handle-product-requests.mdxsimilarity index 100%rename from apps/docs/rc/resources/tutorials/handle-product-requests.mdxrename to apps/docs/2.2.0/resources/tutorials/handle-product-requests.mdxdiff --git a/apps/docs/rc/resources/tutorials/import-export-products.mdx b/apps/docs/2.2.0/resources/tutorials/import-export-products.mdxsimilarity index 95%rename from apps/docs/rc/resources/tutorials/import-export-products.mdxrename to apps/docs/2.2.0/resources/tutorials/import-export-products.mdxindex a7a5978d7..5c4ee135d 100644--- a/apps/docs/rc/resources/tutorials/import-export-products.mdx+++ b/apps/docs/2.2.0/resources/tutorials/import-export-products.mdx@@ -18,7 +18,7 @@ A vendor product list with **Import** and **Export** header buttons, a working C<Steps><Step title="Install the block">```bash- bunx @mercurjs/cli@rc add product-import-export+ bunx @mercurjs/cli@latest add product-import-export```The CLI copies the block's files into the directories mapped by your `blocks.json` aliases — workflows and routes into the API package, pages and hooks into the vendor app.@@ -47,7 +47,7 @@ A vendor product list with **Import** and **Export** header buttons, a working CThe block added `POST /vendor/products/import` and `GET /vendor/products/export`. Regenerate the route map so the vendor app's typed client knows about them:```bash- bunx @mercurjs/cli@rc codegen+ bunx @mercurjs/cli@latest codegen```<Note>@@ -68,7 +68,7 @@ A vendor product list with **Import** and **Export** header buttons, a working C1. The Products header shows Import and Export buttons; the rest of the page (search, filters, pagination) behaves exactly as before.2. The exported CSV contains the seller's products — and only theirs; the workflow scopes to the authenticated seller.3. After importing the edited CSV, the changed title appears in the product list.-4. The block's source lives in your repo (e.g. `packages/api/src/workflows/import-seller-products.ts`, `apps/vendor/src/routes/products/page.tsx`) — run `bunx @mercurjs/cli@rc diff product-import-export` to compare against the registry later.+4. The block's source lives in your repo (e.g. `packages/api/src/workflows/import-seller-products.ts`, `apps/vendor/src/routes/products/page.tsx`) — run `bunx @mercurjs/cli@latest diff product-import-export` to compare against the registry later.## FAQdiff --git a/apps/docs/rc/resources/tutorials/master-products-and-offers.mdx b/apps/docs/2.2.0/resources/tutorials/master-products-and-offers.mdxsimilarity index 100%rename from apps/docs/rc/resources/tutorials/master-products-and-offers.mdxrename to apps/docs/2.2.0/resources/tutorials/master-products-and-offers.mdxdiff --git a/apps/docs/rc/resources/tutorials/seller-payouts-stripe.mdx b/apps/docs/2.2.0/resources/tutorials/seller-payouts-stripe.mdxsimilarity index 100%rename from apps/docs/rc/resources/tutorials/seller-payouts-stripe.mdxrename to apps/docs/2.2.0/resources/tutorials/seller-payouts-stripe.mdxdiff --git a/apps/docs/rc/resources/tutorials/store-setup-checklist.mdx b/apps/docs/2.2.0/resources/tutorials/store-setup-checklist.mdxsimilarity index 100%rename from apps/docs/rc/resources/tutorials/store-setup-checklist.mdxrename to apps/docs/2.2.0/resources/tutorials/store-setup-checklist.mdxdiff --git a/apps/docs/rc/telemetry.mdx b/apps/docs/2.2.0/telemetry.mdxsimilarity index 100%rename from apps/docs/rc/telemetry.mdxrename to apps/docs/2.2.0/telemetry.mdxdiff --git a/apps/docs/rc/tools/api-client.mdx b/apps/docs/2.2.0/tools/api-client.mdxsimilarity index 96%rename from apps/docs/rc/tools/api-client.mdxrename to apps/docs/2.2.0/tools/api-client.mdxindex 15998e5d9..b649afd21 100644--- a/apps/docs/rc/tools/api-client.mdx+++ b/apps/docs/2.2.0/tools/api-client.mdx@@ -23,7 +23,7 @@ export const client = createClient<Routes>({```<Info>- The `Routes` type is generated from your backend using `@mercurjs/cli@rc+ The `Routes` type is generated from your backend using `@mercurjs/cli@latestcodegen`. This gives the client full type safety with zero manual typedefinitions.</Info>@@ -133,7 +133,7 @@ try {<AccordionGroup><Accordion title="Why is a route missing from the client after I added it?">- The client's types come from the generated route map — run `bunx @mercurjs/cli@rc codegen` after adding or changing route files. During development, `codegen --watch` keeps the map current automatically.+ The client's types come from the generated route map — run `bunx @mercurjs/cli@latest codegen` after adding or changing route files. During development, `codegen --watch` keeps the map current automatically.</Accordion><Accordion title="How are URLs derived from property access?">Each property becomes a kebab-cased path segment (`client.vendor.salesSummary` → `/vendor/sales-summary`), `$`-prefixed keys fill path parameters, and the terminal method picks the HTTP verb: `query` → GET, `mutate` → POST, `delete` → DELETE.diff --git a/apps/docs/rc/tools/cli.mdx b/apps/docs/2.2.0/tools/cli.mdxsimilarity index 82%rename from apps/docs/rc/tools/cli.mdxrename to apps/docs/2.2.0/tools/cli.mdxindex ece46cbed..500dd1482 100644--- a/apps/docs/rc/tools/cli.mdx+++ b/apps/docs/2.2.0/tools/cli.mdx@@ -3,12 +3,12 @@ title: "CLI"description: "Install blocks, scaffold projects, and generate types from the command line."----The Mercur CLI (`@mercurjs/cli@rc`) manages your marketplace project — installing blocks, generating types, and checking for updates. To create a new project, use [`create-mercur-app`](https://www.npmjs.com/package/create-mercur-app).+The Mercur CLI (`@mercurjs/cli@latest`) manages your marketplace project — installing blocks, generating types, and checking for updates. To create a new project, use [`create-mercur-app`](https://www.npmjs.com/package/create-mercur-app).## Installation```bash-bun add -g @mercurjs/cli@rc+bun add -g @mercurjs/cli@latest```## Commands@@ -18,9 +18,9 @@ bun add -g @mercurjs/cli@rcScaffolding new projects lives in the standalone [`create-mercur-app`](https://www.npmjs.com/package/create-mercur-app) package, so it downloads fast and works with every package manager's `create` command.```bash-bun create mercur-app@rc my-marketplace+bun create mercur-app@latest my-marketplace# or-npm create mercur-app@rc my-marketplace+npm create mercur-app@latest my-marketplace```It will prompt you for database credentials and install dependencies automatically.@@ -37,7 +37,7 @@ It will prompt you for database credentials and install dependencies automaticalInitialize an existing project by creating a `blocks.json` configuration file.```bash-bunx @mercurjs/cli@rc init+bunx @mercurjs/cli@latest init```This sets up path aliases so the CLI knows where to place blocks in your project:@@ -62,8 +62,8 @@ This sets up path aliases so the CLI knows where to place blocks in your projectInstall blocks from the registry into your project.```bash-bunx @mercurjs/cli@rc add wishlist-bunx @mercurjs/cli@rc add product-review order-tracking+bunx @mercurjs/cli@latest add wishlist+bunx @mercurjs/cli@latest add product-review order-tracking```Blocks are copied directly into your project as source code. The CLI resolves dependencies, transforms imports to match your path aliases, and installs required packages.@@ -79,7 +79,7 @@ Blocks are copied directly into your project as source code. The CLI resolves deFind available blocks in the registry.```bash-bunx @mercurjs/cli@rc search --query wishlist+bunx @mercurjs/cli@latest search --query wishlist```| Option | Description |@@ -92,7 +92,7 @@ bunx @mercurjs/cli@rc search --query wishlistDisplay detailed information about a block.```bash-bunx @mercurjs/cli@rc view wishlist+bunx @mercurjs/cli@latest view wishlist```### diff@@ -100,13 +100,13 @@ bunx @mercurjs/cli@rc view wishlistCompare local blocks against registry versions to check for updates.```bash-bunx @mercurjs/cli@rc diff wishlist+bunx @mercurjs/cli@latest diff wishlist```If there are changes you want, update with:```bash-bunx @mercurjs/cli@rc add wishlist --overwrite+bunx @mercurjs/cli@latest add wishlist --overwrite```### codegen@@ -114,7 +114,7 @@ bunx @mercurjs/cli@rc add wishlist --overwriteGenerate TypeScript types from your API routes. Used by the [API Client](/rc/tools/api-client) for type-safe requests.```bash-bunx @mercurjs/cli@rc codegen+bunx @mercurjs/cli@latest codegen```| Option | Description |@@ -126,7 +126,7 @@ bunx @mercurjs/cli@rc codegenBuild a custom registry from a `registry.json` file.```bash-bunx @mercurjs/cli@rc build+bunx @mercurjs/cli@latest build```| Option | Description |@@ -139,7 +139,7 @@ bunx @mercurjs/cli@rc buildDisplay project configuration and diagnostics.```bash-bunx @mercurjs/cli@rc info+bunx @mercurjs/cli@latest info```### telemetry@@ -147,8 +147,8 @@ bunx @mercurjs/cli@rc infoControl anonymous usage data collection.```bash-bunx @mercurjs/cli@rc telemetry --disable-bunx @mercurjs/cli@rc telemetry --enable+bunx @mercurjs/cli@latest telemetry --disable+bunx @mercurjs/cli@latest telemetry --enable```## Custom registries@@ -167,7 +167,7 @@ Add custom block registries to your `blocks.json`:Use `{name}` as a placeholder for block names. Reference custom registries with the `-r` flag:```bash-bunx @mercurjs/cli@rc search --query review --registry @my-registry+bunx @mercurjs/cli@latest search --query review --registry @my-registry```## FAQdiff --git a/apps/docs/rc/tools/dashboard-sdk.mdx b/apps/docs/2.2.0/tools/dashboard-sdk.mdxsimilarity index 100%rename from apps/docs/rc/tools/dashboard-sdk.mdxrename to apps/docs/2.2.0/tools/dashboard-sdk.mdxdiff --git a/apps/docs/rc/user-guide/admin/overview.mdx b/apps/docs/2.2.0/user-guide/admin/overview.mdxsimilarity index 100%rename from apps/docs/rc/user-guide/admin/overview.mdxrename to apps/docs/2.2.0/user-guide/admin/overview.mdxdiff --git a/apps/docs/rc/user-guide/admin/stores.mdx b/apps/docs/2.2.0/user-guide/admin/stores.mdxsimilarity index 100%rename from apps/docs/rc/user-guide/admin/stores.mdxrename to apps/docs/2.2.0/user-guide/admin/stores.mdxdiff --git a/apps/docs/rc/user-guide/vendor/overview.mdx b/apps/docs/2.2.0/user-guide/vendor/overview.mdxsimilarity index 100%rename from apps/docs/rc/user-guide/vendor/overview.mdxrename to apps/docs/2.2.0/user-guide/vendor/overview.mdxdiff --git a/apps/docs/rc/user-guide/vendor/stores.mdx b/apps/docs/2.2.0/user-guide/vendor/stores.mdxsimilarity index 100%rename from apps/docs/rc/user-guide/vendor/stores.mdxrename to apps/docs/2.2.0/user-guide/vendor/stores.mdxdiff --git a/apps/docs/ai-development/llms.mdx b/apps/docs/ai-development/llms.mdxdeleted file mode 100644index e368582d1..000000000--- a/apps/docs/ai-development/llms.mdx+++ /dev/null@@ -1,70 +0,0 @@-----title: "LLMs"-description: "Feed Mercur documentation directly to LLMs for accurate, context-aware assistance."------# LLMs--Mercur documentation is optimized for Large Language Models using the [llms.txt standard](https://llmstxt.org). This gives AI tools a structured map of all documentation — so they can answer technical questions accurately instead of guessing.--Think of it like a sitemap, but for AI: a machine-readable file that describes what documentation exists, how it's organized, and where to find specific topics.-------## Available files--### llms.txt--A structured index of all Mercur documentation pages with descriptions and links.--```-https://docs.mercurjs.com/llms.txt-```--Use this when your AI tool supports llms.txt natively or when you want to give it an overview of what's available without sending the full content.--### llms-full.txt--The entire Mercur documentation compiled into a single plain-text file.--```-https://docs.mercurjs.com/llms-full.txt-```--Use this when you want to give an LLM the complete context in one shot — ideal for complex questions that span multiple topics.-------## How to use--<Tabs>- <Tab title="Claude Projects">- 1. Open [Claude](https://claude.ai) and create a new Project- 2. In project knowledge, add a URL: `https://docs.mercurjs.com/llms-full.txt`- 3. Claude now has full Mercur documentation context in every conversation within that project- </Tab>- <Tab title="ChatGPT">- 1. Download `https://docs.mercurjs.com/llms-full.txt`- 2. Upload it as a file in your conversation or attach it to a Custom GPT's knowledge base- </Tab>- <Tab title="AI IDE (paste)">- For any AI coding tool that accepts context:- 1. Fetch the file: `curl -o mercur-docs.txt https://docs.mercurjs.com/llms-full.txt`- 2. Attach it to your conversation or project context- </Tab>-</Tabs>--<Tip>- Both files are auto-generated and always reflect the latest documentation. No maintenance required.-</Tip>-------## When to use llms.txt vs MCP--| Approach | Best for |-|----------|----------|-| **llms.txt / llms-full.txt** | One-time context loading, tools without MCP support, offline use |-| **[MCP Server](/ai-development/mcp)** | Live search, always up-to-date results, integrated AI environments |--For the best experience, use the [MCP server](/ai-development/mcp) if your tool supports it. Fall back to llms.txt when MCP isn't available.diff --git a/apps/docs/ai-development/mcp.mdx b/apps/docs/ai-development/mcp.mdxdeleted file mode 100644index 974cb5448..000000000--- a/apps/docs/ai-development/mcp.mdx+++ /dev/null@@ -1,151 +0,0 @@-----title: "MCP Server"-description: "Connect your AI environment to Mercur documentation via Model Context Protocol."------# MCP Server--Mercur exposes a [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server that lets AI tools **search Mercur documentation directly**. Instead of relying on training data that may be outdated, your AI assistant queries the actual docs in real time.--```-https://docs.mercurjs.com/mcp-```-------## Available tool--### SearchMercurJsDocumentation--Searches across all Mercur documentation and returns:--- Relevant excerpts matching your query-- Page titles for context-- Direct links to documentation pages--Use it when you need to look up API references, understand how a module works, find CLI commands, or retrieve examples during development.-------## Connect to your AI environment--<Tabs>- <Tab title="Cursor">- <Steps>- <Step title="Open MCP settings">- 1. Press <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>- 2. Search for **Open MCP settings**- 3. Select **Add custom MCP**- </Step>- <Step title="Configure the server">- Add the following to your `mcp.json`:-- ```json- {- "mcpServers": {- "mercur": {- "url": "https://docs.mercurjs.com/mcp"- }- }- }- ```- </Step>- <Step title="Use it">- Restart Cursor and ask: **"Search Mercur docs for how to add a block"**- </Step>- </Steps>-- See [Cursor MCP docs](https://docs.cursor.com/en/context/mcp) for more.- </Tab>- <Tab title="VS Code">- <Steps>- <Step title="Create MCP config">- Create a file at `.vscode/mcp.json` in your project root.- </Step>- <Step title="Configure the server">- ```json- {- "servers": {- "mercur": {- "type": "http",- "url": "https://docs.mercurjs.com/mcp"- }- }- }- ```- </Step>- <Step title="Use it">- Open the Copilot Chat panel and ask: **"List available MCP servers."**- </Step>- </Steps>-- See [VS Code MCP docs](https://code.visualstudio.com/docs/copilot/chat/mcp-servers) for more.- </Tab>- <Tab title="Windsurf">- <Steps>- <Step title="Open MCP config">- 1. Press <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>- 2. Search for **Open Windsurf MCP Configuration**- </Step>- <Step title="Configure the server">- ```json- {- "mcpServers": {- "mercur": {- "serverUrl": "https://docs.mercurjs.com/mcp"- }- }- }- ```- </Step>- <Step title="Use it">- Open Cascade and ask: **"Search Mercur docs for seller setup"**- </Step>- </Steps>- </Tab>- <Tab title="Claude">- <Steps>- <Step title="Add the MCP server">- 1. Go to Claude → Settings → **Connectors**- 2. Select **Add custom connector**- 3. Enter:- - **Name**: Mercur- - **URL**: `https://docs.mercurjs.com/mcp`- 4. Save- </Step>- <Step title="Use it">- In chat, click the **attachments (+)** button and select your Mercur MCP connector.- </Step>- </Steps>-- See [Claude connector docs](https://modelcontextprotocol.io/docs/tutorials/use-remote-mcp-server) for more.- </Tab>- <Tab title="Claude Code">- <Steps>- <Step title="Install the MCP server">- ```bash- claude mcp add --transport http mercur https://docs.mercurjs.com/mcp- ```- </Step>- <Step title="Verify installation">- ```bash- claude mcp list- ```- </Step>- <Step title="Use it">- Claude Code can now query Mercur documentation directly during any conversation.- </Step>- </Steps>-- See [Claude Code MCP docs](https://docs.anthropic.com/en/docs/claude-code/mcp) for more.- </Tab>-</Tabs>-------## When to use MCP vs llms.txt--| Approach | Best for |-|----------|----------|-| **MCP Server** | Live search, always up-to-date, integrated environments |-| **[llms.txt](/ai-development/llms)** | Full context dump, tools without MCP, offline use |diff --git a/apps/docs/ai-development/skills.mdx b/apps/docs/ai-development/skills.mdxdeleted file mode 100644index c6ea771c9..000000000--- a/apps/docs/ai-development/skills.mdx+++ /dev/null@@ -1,187 +0,0 @@-----title: "Skills"-description: "Pre-built AI workflows that ship with every Mercur project for safe, guided development."------# Skills--Every Mercur project created with `@mercurjs/cli@latest create` includes a set of **skills** — reusable prompt modules that teach your AI coding tool how to work with Mercur correctly.--Skills encode domain knowledge, enforce patterns, and catch common mistakes. Instead of prompting your AI with "please follow the Mercur conventions for forms", the skill handles it automatically.-------## How skills work--Skills are markdown files in your project's `.claude/skills/` directory. They're loaded by [Claude Code](https://docs.anthropic.com/en/docs/claude-code/overview) (and compatible tools) in two ways:--- **Slash command** — type `/skill-name` to invoke a skill explicitly-- **Auto-trigger** — the AI detects that your task matches a skill's description and loads it automatically--Each skill contains rules, checklists, and workflows tailored to a specific aspect of Mercur development.-------## Included skills--Every project created from the Mercur starter template includes these skills:--| Skill | What it does | When it triggers |-|-------|-------------|-----------------|-| `mercur-cli` | Guides correct usage of CLI commands (`create`, `init`, `add`, `search`, `view`, `diff`) | Working with the Mercur CLI |-| `mercur-blocks` | Discovers, evaluates, installs, and verifies blocks using `blocks.json` aliases | Adding or updating blocks |-| `migration-guide` | Analyzes a 1.x project and walks through migration to 2.0 step by step | Upgrading from Mercur 1.x |-| `dashboard-page-ui` | Enforces correct routing, page composition, and i18n for dashboard pages | Building admin or vendor pages |-| `dashboard-form-ui` | Enforces form structure, validation, submission guards, and UI conventions | Building forms in dashboards |-| `dashboard-tab-ui` | Enforces tab structure, validation scope, and wizard conventions | Adding tabs to multi-step forms |-| `medusa-ui-conformance` | Keeps custom UI aligned with `@medusajs/ui` patterns and local wrappers | Adding reusable UI components |-------## Using skills--### Invoke explicitly--Type the slash command in Claude Code:--```-/mercur-blocks-```--The skill loads its full context and guides you through the workflow.--### Let it auto-trigger--Just describe your task naturally:--```-Add the reviews block to my project-```--Claude Code matches this to the `mercur-blocks` skill and activates it automatically.--### Pass arguments--Some skills accept arguments:--```-/migration-guide /path/to/old-project-```-------## Where skills live--```-your-project/-└── .claude/- └── skills/- ├── mercur-cli/- │ └── SKILL.md- ├── mercur-blocks/- │ └── SKILL.md- ├── dashboard-page-ui/- │ └── SKILL.md- ├── dashboard-form-ui/- │ └── SKILL.md- ├── dashboard-tab-ui/- │ └── SKILL.md- ├── medusa-ui-conformance/- │ └── SKILL.md- └── migration-guide/- └── SKILL.md-```--Each skill is a directory containing a `SKILL.md` file with frontmatter metadata and the skill content.-------## Creating custom skills--You can create your own skills to encode project-specific patterns and workflows.--### 1. Create the skill directory--```bash-mkdir -p .claude/skills/my-custom-skill-```--### 2. Write the skill file--Create `.claude/skills/my-custom-skill/SKILL.md`:--```markdown-----name: my-custom-skill-description: One sentence describing when this skill should trigger.------# My Custom Skill--Use this skill when:-- [trigger condition 1]-- [trigger condition 2]--## Rules--- [rule 1]-- [rule 2]--## Workflow--1. [step 1]-2. [step 2]-```--### 3. Key conventions--- **Directory name** must be `kebab-case` and match the `name` in frontmatter-- **File** must be named `SKILL.md` (uppercase)-- **Description** is the primary trigger — write it clearly so the AI knows when to activate-- Keep skills focused on one domain; split broad skills into smaller ones--### Frontmatter options--| Field | Required | Purpose |-|-------|----------|---------|-| `name` | Yes | Must match directory name |-| `description` | Yes | Primary trigger — AI uses this to decide relevance |-| `allowed-tools` | No | Restrict available tools (e.g., `Read, Grep, Glob` for review-only skills) |-| `argument-hint` | No | Hint shown in slash command menu (e.g., `"[block-name]"`) |--<Tip>- Start with just `name` and `description`. Add other fields only when they change runtime behavior.-</Tip>-------## Using skills with other AI tools--Skills ship in `.claude/skills/` — this is the canonical location, tracked in git. They're plain markdown files, so any AI coding tool that reads project-level prompts can use them.--### OpenAI Codex--Codex reads skills from `.codex/skills/`. Symlink to `.claude/skills/`:--```bash-mkdir -p .codex-ln -s ../.claude/skills .codex/skills-```--Codex picks up the same `SKILL.md` files and triggers them the same way.--### Cursor--Cursor reads project rules from `.cursor/rules/`. You can convert skills to Cursor rules:--```bash-mkdir -p .cursor/rules-# Copy a skill as a Cursor rule-cp .claude/skills/mercur-blocks/SKILL.md .cursor/rules/mercur-blocks.md-```--Cursor rules use a similar markdown format — the skill content works as-is, though Cursor-specific frontmatter fields (like `globs`) can be added for file-pattern triggering.--<Tip>- Skills are markdown — they work with any AI tool that supports project-level context. If your tool doesn't have a conventional directory, you can paste skill content into custom instructions or system prompts.-</Tip>diff --git a/apps/docs/core-concepts/commission.mdx b/apps/docs/core-concepts/commission.mdxdeleted file mode 100644index 257c26faf..000000000--- a/apps/docs/core-concepts/commission.mdx+++ /dev/null@@ -1,158 +0,0 @@-----title: "Commission"-description: "How marketplace commissions work in Mercur — rates, rules, calculation, and the commission pipeline."------Commissions are how the marketplace earns revenue. Rather than storing a single commission percentage, Mercur uses a **rule-based system** where commission rates are matched to line items and shipping methods based on configurable conditions.--## Commission rates--A **CommissionRate** defines how much commission the marketplace takes. Each rate has a type, a target, and an optional set of rules that determine when it applies.--| Field | Description |-|-------|-------------|-| `name` | Human-readable name (e.g. "Default Product Commission") |-| `code` | Unique system identifier |-| `type` | `FIXED` (flat amount) or `PERCENTAGE` |-| `target` | `ITEM` (applies to line items) or `SHIPPING` (applies to shipping methods) |-| `value` | The rate value — either a fixed amount or a percentage |-| `min_amount` | Optional minimum commission (floor) |-| `include_tax` | Whether to include tax in the base amount for calculation |-| `priority` | Higher priority rates are evaluated first |-| `currency_code` | Optional — restricts the rate to a specific currency |--## Commission rules--Rules determine **when** a rate applies. A rate without rules acts as a **default** — it applies to all items or shipping methods of its target type. Rules narrow the scope.--Each rule has a `reference` (the type of condition) and a `reference_id` (the value to match):--| Reference | Matches against |-|-----------|----------------|-| `product` | A specific product ID |-| `product_type` | Products of a given type |-| `product_collection` | Products in a collection |-| `product_category` | Products in a category |-| `seller` | Products owned by a specific seller |-| `shipping_option_type` | Shipping options of a given type |--A single rate can have multiple rules. The rate applies if **any** of its rules match.--### Priority and matching--Rates are evaluated in **descending priority order**. The first matching rate wins — subsequent rates are not applied. This lets you set up specific overrides with high priority and catch-all defaults with low priority.--**Example configuration:**--| Rate | Priority | Rules | Type | Value |-|------|----------|-------|------|-------|-| Electronics Commission | 10 | `product_category: "electronics"` | Percentage | 12% |-| Premium Seller Rate | 5 | `seller: "slr_abc123"` | Percentage | 8% |-| Default Commission | 0 | _(none — matches all)_ | Percentage | 15% |--An electronics product from the premium seller would match the Electronics Commission rate (priority 10), not the seller-specific rate (priority 5).--## The calculation pipeline--The `getCommissionLines` method calculates commissions for a given cart or order context:--**1. Load rates**-- All enabled commission rates are loaded with their rules, ordered by priority (highest first)-- Rates are separated into `ITEM` and `SHIPPING` targets--**2. Match items**-- For each line item, the system iterates through item-target rates in priority order-- It checks each rate's rules against the item's product, type, collection, category, and seller-- Rates with no rules match everything (defaults)-- First match wins--**3. Calculate amount**-- Base amount is the item subtotal (optionally including tax if `include_tax` is true)-- For `PERCENTAGE` rates: `commission = (base_amount × value) / 100`-- For `FIXED` rates: `commission = value`-- If the result is below `min_amount`, the minimum is used instead--**4. Match and calculate shipping**-- Same process repeats for shipping methods using shipping-target rates-- Matches against `shipping_option_type` rules--**5. Output**-- Returns an array of `CommissionLine` records, one per item and shipping method--<Info>- All commission calculations use `BigNumber` arithmetic for precision. This is critical for financial accuracy — standard floating-point math can introduce rounding errors.-</Info>--## API examples--### Create a commission rate (Admin API)--```bash-curl -X POST http://localhost:9000/admin/commission-rates \- -H "Authorization: Bearer <admin-token>" \- -H "Content-Type: application/json" \- -d '{- "name": "Default Product Commission",- "code": "default-product",- "type": "percentage",- "target": "item",- "value": 15,- "priority": 0- }'-```--### Create a rate with rules (Admin API)--```bash-curl -X POST http://localhost:9000/admin/commission-rates \- -H "Authorization: Bearer <admin-token>" \- -H "Content-Type: application/json" \- -d '{- "name": "Electronics Commission",- "code": "electronics",- "type": "percentage",- "target": "item",- "value": 12,- "priority": 10,- "rules": [- {- "reference": "product_category",- "reference_id": "pcat_electronics"- }- ]- }'-```--### List commission rates--```bash-curl http://localhost:9000/admin/commission-rates \- -H "Authorization: Bearer <admin-token>"-```--## Commission lines--A **CommissionLine** is the calculated commission for a single line item or shipping method. It stores:--| Field | Description |-|-------|-------------|-| `item_id` | References the order line item or shipping method |-| `commission_rate_id` | The rate that was applied |-| `code` | Code of the applied rate |-| `rate` | The actual rate value used |-| `amount` | The calculated commission amount |--Commission lines are linked to order line items via a **read-only link**. This means you can query an order's line items and include their commission data in a single request.--## How commission connects to payouts--Commission lines are the bridge between orders and seller earnings:--1. An order is completed → commission lines are calculated for each item-2. When the order is credited to the seller's payout account, the total commission is subtracted:- ```- seller_earnings = order.total - sum(commission_line.amount)- ```-3. The marketplace retains the commission amount--This separation means commission rates can be changed at any time without affecting already-calculated orders — the `CommissionLine` records serve as a permanent audit trail.diff --git a/apps/docs/core-concepts/payout.mdx b/apps/docs/core-concepts/payout.mdxdeleted file mode 100644index 0cb1e1912..000000000--- a/apps/docs/core-concepts/payout.mdx+++ /dev/null@@ -1,175 +0,0 @@-----title: "Payout"-description: "How seller payouts work in Mercur — accounts, onboarding, payment capture, and the transfer pipeline."------The payout module handles the financial side of a marketplace — onboarding sellers to a payment provider, capturing authorized payments, and transferring funds to sellers after fulfillment.--## Payout account--Every seller that wants to receive funds needs a **PayoutAccount**. This account links a seller to an external payment provider (e.g. Stripe Connect).--### Account lifecycle--```-PENDING → ACTIVE- ↓- RESTRICTED → ACTIVE (or REJECTED)-```--| Status | Description |-|--------|-------------|-| `PENDING` | Account created, awaiting provider onboarding |-| `ACTIVE` | Fully onboarded, can receive payouts |-| `RESTRICTED` | Provider has flagged the account (e.g. missing KYC) |-| `REJECTED` | Provider rejected the account |--### Onboarding--When a payout account is created, an **Onboarding** record is attached to it. This stores provider-specific data needed for identity verification or account setup (e.g. Stripe Connect onboarding links).--## The payout pipeline--The payout flow is fully automated through two scheduled jobs and event-driven subscribers. No manual intervention is needed after configuration.--### 1. Capture check (every 15 minutes)--A scheduled job scans for orders that are ready for payment capture. For each order, it checks:--- Payment is in `authorized` status-- Seller has an `ACTIVE` payout account-- Order meets the required fulfillment status (configurable, default: `fulfilled`)-- No payout has been created yet--When the capture deadline approaches (authorization window minus safety buffer), the job emits an `order.capture_requested` event. If the authorization has already expired, it emits `order.authorization_expired` instead.--### 2. Payment capture (event-driven)--A subscriber listens for `order.capture_requested` events and runs the Medusa `capturePaymentWorkflow` to capture the authorized payment. On success, the order is marked as captured. On failure, the order is flagged so it won't be retried.--### 3. Daily payouts (once per day)--A daily scheduled job (1 AM UTC) scans for captured orders that haven't been paid out yet. For each eligible order, it emits a `payout.requested` event.--An order qualifies for payout when:-- Payment has been captured (`metadata.captured = true`)-- No existing payout transfer-- Seller has an `ACTIVE` payout account--### 4. Payout transfer (event-driven)--A subscriber listens for `payout.requested` events and runs the `createPayoutWorkflow`:--1. **Fetch order** — Loads the order with its seller, payout account, and commission lines-2. **Calculate payout amount** — Subtracts commission from the order total:- ```- payout_amount = order.total - total_commission- ```-3. **Create payout** — Calls the payment provider to initiate the transfer and creates a `Payout` record-4. **Link payout** — Associates the payout with the seller--### Payout statuses--| Status | Description |-|--------|-------------|-| `PENDING` | Payout created, transfer initiated |-| `PROCESSING` | Provider is processing the transfer |-| `PAID` | Funds successfully transferred |-| `FAILED` | Transfer failed |-| `CANCELED` | Transfer was canceled |--Payout statuses are updated via webhook events from the payment provider.--### Webhook handling--A subscriber listens for `payout.webhook_received` events and delegates to the `processPayoutForWebhookWorkflow`. The provider parses the raw webhook payload and returns an action:--**Account events:**-- `account.activated` → Status set to `ACTIVE`-- `account.restricted` → Status set to `RESTRICTED`-- `account.rejected` → Status set to `REJECTED`--**Payout events:**-- `payout.processing` → Status set to `PROCESSING`-- `payout.paid` → Status set to `PAID`-- `payout.failed` → Status set to `FAILED`-- `payout.canceled` → Status set to `CANCELED`--## Configuration--The payout module accepts the following options in `medusa-config.ts`:--| Option | Default | Description |-|--------|---------|-------------|-| `disabled` | `false` | Disables both scheduled jobs |-| `authorizationWindowMs` | 7 days | How long a payment authorization is valid |-| `sellerActionWindowMs` | 72 hours | Time for seller to fulfill the order |-| `captureSafetyBufferMs` | 24 hours | Safety margin before authorization expiry to trigger capture |-| `requiredFulfillmentStatus` | `"fulfilled"` | Minimum fulfillment status before capture is allowed |--## Data model overview--```-PayoutAccount-├── Onboarding (one-to-one)-└── Payout (one-to-many, per-order transfers)-```--## Configuration example--```typescript-// medusa-config.ts-{- resolve: "./modules/payout",- options: {- // How long payment authorizations are valid- authorizationWindowMs: 7 * 24 * 60 * 60 * 1000, // 7 days-- // Time for seller to fulfill before capture- sellerActionWindowMs: 72 * 60 * 60 * 1000, // 72 hours-- // Safety margin before authorization expiry- captureSafetyBufferMs: 24 * 60 * 60 * 1000, // 24 hours-- // Minimum fulfillment status before capture- requiredFulfillmentStatus: "fulfilled",- },-}-```--## API examples--### Get seller's payout account (Vendor API)--```bash-curl http://localhost:9000/vendor/payout-accounts/<account-id> \- -H "Authorization: Bearer <seller-token>"-```--### Create payout onboarding (Vendor API)--Initiates provider onboarding (e.g. Stripe Connect account setup). The `data` and `context` fields are passed to the payout provider:--```bash-curl -X POST http://localhost:9000/vendor/payout-accounts/<account-id>/onboarding \- -H "Authorization: Bearer <seller-token>" \- -H "Content-Type: application/json" \- -d '{- "context": {- "return_url": "https://my-store.com/settings/payouts"- }- }'-```--### List payouts (Admin API)--```bash-curl http://localhost:9000/admin/payouts \- -H "Authorization: Bearer <admin-token>"-```--## Provider abstraction--The payout module is **provider-agnostic**. A `PayoutProviderService` acts as a bridge to the external payment processor. It delegates all external operations — creating accounts, processing payouts, parsing webhooks — to a pluggable provider implementation.--The module expects exactly one payout provider to be registered. Provider-specific data is stored in the `data` JSON fields on accounts, payouts, and onboarding records.diff --git a/apps/docs/core-concepts/seller-members.mdx b/apps/docs/core-concepts/seller-members.mdxdeleted file mode 100644index 9026adceb..000000000--- a/apps/docs/core-concepts/seller-members.mdx+++ /dev/null@@ -1,62 +0,0 @@-----title: "Seller Members"-description: "Multi-user seller accounts — member data, team management, store switching, and access rules."------A **seller member** represents a user who has access to a seller account. Mercur supports **multi-user seller accounts** — multiple people can manage the same store — and **multi-seller users** — a single person can belong to more than one store. This page covers how members relate to sellers, how access is structured, and the rules governing team management.--## Concept--The relationship between users and sellers is **many-to-many**. A seller account can have several members (e.g. an owner, a warehouse manager, and a support agent), and a single user can be a member of multiple seller accounts (e.g. a consultant managing stores for different brands).--Each membership is a distinct association between a user and a seller account.--## Member Data--Each member record holds the following information:---| Field | Description |-| -------- | ------------------------------------------------------------ |-| `email` | The member's email address, used for login and notifications |-| `locale` | Preferred language/locale for the vendor portal UI |-| `status` | Whether the member is active or deactivated |---The member's identity is tied to their **email address**. Email addresses must be unique across all members within a single seller account but the same email can appear on different seller accounts.--## Member-Seller Association--When a member is added to a seller account, the association includes:--- A reference to the **seller account**-- A reference to the **member**--Removing the association revokes the member's access to that seller account entirely.--## Store Switcher--For users who belong to multiple seller accounts, the vendor portal provides a **store switcher**. Each store context is fully isolated — when a member switches stores, they see only the data (products, orders, payouts) belonging to that seller account.--This isolation ensures that access to one store never leaks information from another, even when the same person manages both.--## Adding Members--Members can be added to a seller account by:--- **Operators** — via the admin dashboard, an operator can add members to any seller account-- **Seller admins** — members with admin access can invite new members to their own seller account--When a new member is added, they receive an invitation to set up their access. If the email already belongs to an existing user in the system, the new seller association is linked to their existing account.--## Removing Members--Removing a member **deletes the association** between the user and the seller account. The user's account continues to exist — they simply lose access to that particular store.--Both **operators** and **seller admins** can remove members, subject to the constraint that a seller account must always retain at least one admin member.--## Business Rules--- A seller account must have **at least one member** with admin access at all times-- **Email addresses** must be unique within a single seller account-- Members are managed through the [seller account lifecycle](/core-concepts/seller) — if a seller is terminated, all member associations are effectively voiddiff --git a/apps/docs/core-concepts/seller.mdx b/apps/docs/core-concepts/seller.mdxdeleted file mode 100644index b10adcc8c..000000000--- a/apps/docs/core-concepts/seller.mdx+++ /dev/null@@ -1,118 +0,0 @@-----title: "Seller"-description: "The central marketplace actor — seller profile, lifecycle, registration flows, and business rules."------A **seller** is the central actor in a Mercur marketplace. Every product listing, order, payout, and storefront presence traces back to a seller account. This page covers the seller data model, lifecycle, and the business rules that govern how sellers operate on the platform.--## Seller Profile--Each seller account holds the following core fields:---| Field | Description |-| --------------- | ----------------------------------------------------------------------------- |-| `name` | Display name shown to customers on the storefront (unique) |-| `handle` | URL-friendly identifier for the seller (unique) |-| `email` | Primary contact email for the seller account (unique) |-| `description` | Free-text seller description, typically shown on the seller's storefront page |-| `logo` | Seller logo or avatar |-| `banner` | Banner image for the seller's storefront page |-| `website_url` | Seller's external website |-| `currency_code` | The single currency in which this seller operates |-| `is_premium` | Operator-designated premium seller flag (see below) |-| `status_reason` | Optional explanation for the current status (e.g. reason for suspension) |-| `external_id` | Identifier in an external system (unique, optional) |-| `metadata` | Arbitrary JSON metadata |---### Single Currency Per Account--Every seller account is locked to **one currency**. Prices and payouts all use this currency. This constraint keeps financial reporting simple and eliminates exchange-rate ambiguity in payouts.--If a seller needs to trade in multiple currencies, the recommended pattern is to create **separate seller accounts** — one per currency. Each account operates independently with its own products, orders, and payouts.--### Professional Sellers--A seller can optionally have associated **professional details**. If present, the seller is treated as a registered business; if absent, the seller is an individual.--## Address and Payment Information--Sellers can store one or more **addresses** (warehouse, return, business) and **payment details** used for payout processing. These are managed as sub-resources of the seller account and are referenced by workflows such as fulfillment and payout settlement.--## Seller Lifecycle--A seller account moves through **four statuses** over its lifetime:--```- ┌──────────────────┐- │ pending_approval │- └────────┬─────────┘- │ approve- ▼- ┌──────────┐ ┌────────┐- │ suspended │◄────►│ open │- └──────────┘ └───┬────┘- │ terminate- ▼- ┌────────────┐- │ terminated │- └────────────┘-```--### Status Definitions--- `**pending_approval**` — The seller has registered but has not yet been reviewed by the platform operator.-- `**open**` — The seller is active and may list products, receive orders, and collect payouts.-- `**suspended**` — The seller's operations are temporarily frozen. Products remain in the catalog but cannot be purchased.-- `**terminated**` — The seller account is permanently closed. This status is irreversible.--### Status Transition Rules---| From | To | Who | Conditions |-| ------------------ | ------------ | ----------------- | --------------------------------------------------------- |-| `pending_approval` | `open` | Operator | Operator reviews and approves the application |-| `open` | `suspended` | Operator | Policy violation, compliance hold, or operator discretion |-| `suspended` | `open` | Operator | Issue resolved, seller reinstated |-| `open` | `terminated` | Operator / Seller | All prerequisites met (see below) |-| `suspended` | `terminated` | Operator | All prerequisites met (see below) |---## Scheduled Closures--Sellers can schedule **temporary closures** without changing their account status. Two date fields control this:--- `closed_from` — The date the closure begins-- `closed_to` — The date the closure ends--During a scheduled closure the seller's storefront shows as unavailable and new orders cannot be placed, but the account remains in `open` status. This is designed for holidays, seasonal breaks, or planned downtime. Once `closed_to` passes, the seller automatically resumes normal operation.--Scheduled closures are **not a status** — they overlay on top of the current status and do not affect status transition rules.--## Premium Sellers--The `is_premium` flag is set **exclusively by the platform operator**. Sellers cannot designate themselves as premium. This flag is used for storefront features such as:--- Featured placement in search results or category pages-- Visual badges or highlights on the seller's profile-- Priority in marketplace curation--The specific storefront behavior tied to premium status is determined by the frontend implementation.--## Registration Flows--There are **two methods** for creating a seller account:--1. **Operator-created** — The platform operator creates the seller account directly via the admin dashboard. The account can be set to `open` immediately, bypassing `pending_approval`.-2. **Self-registration** — The seller registers through the public-facing registration flow. The account enters `pending_approval` status and waits for operator review.--## Business Rules Summary--- A seller account operates in **exactly one currency**-- The presence of `professional_details` determines whether the seller is a registered business-- Only the **operator** can approve, suspend, or reinstate sellers-- **Termination** is irreversible and requires all orders and payouts to be resolved-- Scheduled closures are **date-driven** and do not change account status-- **Premium** designation is operator-only and influences storefront presentation-- Every seller account must have at least one [member](/core-concepts/seller-members) with an admin rolediff --git a/apps/docs/developer-guide/api-client.mdx b/apps/docs/developer-guide/api-client.mdxdeleted file mode 100644index d08ebab17..000000000--- a/apps/docs/developer-guide/api-client.mdx+++ /dev/null@@ -1,130 +0,0 @@-----title: "API Client"-description: "Type-safe client for consuming Mercur APIs."------`@mercurjs/client` provides a type-safe way to interact with your Mercur backend. Every endpoint, request input, and response is fully typed — inferred directly from your backend routes.--## Installation--```bash-bun add @mercurjs/client-```--## Create a client--```typescript-import { createClient } from "@mercurjs/client";-import type { Routes } from "./.mercur/_generated";--export const client = createClient<Routes>({- baseUrl: "http://localhost:9000",-});-```--<Info>- The `Routes` type is generated from your backend using `@mercurjs/cli@latest- codegen`. This gives the client full type safety with zero manual type- definitions.-</Info>--You can pass default fetch options for authentication or other headers:--```typescript-export const client = createClient<Routes>({- baseUrl: "http://localhost:9000",- fetchOptions: {- credentials: "include",- headers: {- Authorization: `Bearer ${token}`,- },- },-});-```--## Calling APIs--The client exposes three methods:--```typescript-// GET — fetch data-const { reviews } = await client.vendor.reviews.query({ limit: 10 });--// POST — create or update-const { product } = await client.vendor.products.mutate({- title: "New Product",- status: "draft",-});--// DELETE — remove a resource-await client.vendor.reviews.$id.delete({ $id: "rev_123" });-```--Use `$`-prefixed keys for path parameters:--```typescript-const { review } = await client.vendor.reviews.$id.query({- $id: "rev_123",-});-```--Override fetch options per request when needed:--```typescript-const { reviews } = await client.vendor.reviews.query({- fetchOptions: {- signal: abortController.signal,- },-});-```--## Inferring types--Extract input and output types from any client method using `InferClientInput` and `InferClientOutput`:--```typescript-import type { InferClientInput, InferClientOutput } from "@mercurjs/client";--type ListInput = InferClientInput<typeof client.vendor.reviews.query>;-type ReviewDTO = InferClientOutput<- typeof client.vendor.reviews.$id.query->["review"];-```--## React Query--The client returns plain Promises, so it works with any data-fetching library. Here's a typical pattern with TanStack React Query:--```typescript-import { useQuery } from "@tanstack/react-query";-import { client } from "../lib/client";--export function useReviews(- query?: InferClientInput<typeof client.vendor.reviews.query>,-) {- const { data, ...rest } = useQuery({- queryKey: ["reviews", query],- queryFn: () => client.vendor.reviews.query(query),- });-- return { ...data, ...rest };-}-```--## Error handling--Failed requests throw a `ClientError`:--```typescript-import { ClientError } from "@mercurjs/client";--try {- await client.vendor.reviews.$id.query({ $id: "invalid" });-} catch (error) {- if (error instanceof ClientError) {- error.message; // "Review not found"- error.status; // 404- error.statusText; // "Not Found"- }-}-```diff --git a/apps/docs/developer-guide/cli.mdx b/apps/docs/developer-guide/cli.mdxdeleted file mode 100644index 01288919e..000000000--- a/apps/docs/developer-guide/cli.mdx+++ /dev/null@@ -1,171 +0,0 @@-----title: "CLI"-description: "Install blocks, scaffold projects, and generate types from the command line."------The Mercur CLI (`@mercurjs/cli@latest`) manages your marketplace project — installing blocks, generating types, and checking for updates. To create a new project, use [`create-mercur-app`](https://www.npmjs.com/package/create-mercur-app).--## Installation--```bash-bun add -g @mercurjs/cli@latest-```--## Commands--### create--Scaffolding new projects lives in the standalone [`create-mercur-app`](https://www.npmjs.com/package/create-mercur-app) package, so it downloads fast and works with every package manager's `create` command.--```bash-bun create mercur-app@latest my-marketplace-# or-npm create mercur-app@latest my-marketplace-```--It will prompt you for database credentials and install dependencies automatically.--| Option | Description |-|--------|-------------|-| `-t, --template <template>` | Template to use (default: `basic`) |-| `--no-deps` | Skip dependency installation |-| `--skip-db` | Skip database configuration |-| `--db-connection-string <string>` | PostgreSQL connection string |--### init--Initialize an existing project by creating a `blocks.json` configuration file.--```bash-bunx @mercurjs/cli@latest init-```--This sets up path aliases so the CLI knows where to place blocks in your project:--```json-{- "aliases": {- "api": "packages/api/src",- "vendor": "apps/vendor/src",- "admin": "apps/admin/src"- }-}-```--| Option | Description |-|--------|-------------|-| `-d, --defaults` | Use default paths without prompting |-| `-s, --silent` | Suppress output |--### add--Install blocks from the registry into your project.--```bash-bunx @mercurjs/cli@latest add wishlist-bunx @mercurjs/cli@latest add product-review order-tracking-```--Blocks are copied directly into your project as source code. The CLI resolves dependencies, transforms imports to match your path aliases, and installs required packages.--| Option | Description |-|--------|-------------|-| `-o, --overwrite` | Overwrite existing files |-| `-y, --yes` | Skip confirmation |-| `-s, --silent` | Suppress output |--### search--Find available blocks in the registry.--```bash-bunx @mercurjs/cli@latest search --query wishlist-```--| Option | Description |-|--------|-------------|-| `-q, --query <query>` | Search by name or description |-| `-r, --registry <registry>` | Registry to search (default: `@mercurjs`) |--### view--Display detailed information about a block.--```bash-bunx @mercurjs/cli@latest view wishlist-```--### diff--Compare local blocks against registry versions to check for updates.--```bash-bunx @mercurjs/cli@latest diff wishlist-```--If there are changes you want, update with:--```bash-bunx @mercurjs/cli@latest add wishlist --overwrite-```--### codegen--Generate TypeScript types from your API routes. Used by the [API Client](/developer-guide/api-client) for type-safe requests.--```bash-bunx @mercurjs/cli@latest codegen-```--| Option | Description |-|--------|-------------|-| `-w, --watch` | Watch for changes and regenerate automatically |--### registry:build--Build a custom registry from a `registry.json` file.--```bash-bunx @mercurjs/cli@latest build-```--| Option | Description |-|--------|-------------|-| `-o, --output <path>` | Output directory (default: `./r`) |-| `-v, --verbose` | Show detailed output |--### info--Display project configuration and diagnostics.--```bash-bunx @mercurjs/cli@latest info-```--### telemetry--Control anonymous usage data collection.--```bash-bunx @mercurjs/cli@latest telemetry --disable-bunx @mercurjs/cli@latest telemetry --enable-```--## Custom registries--Add custom block registries to your `blocks.json`:--```json-{- "registries": {- "@mercurjs": "https://registry.mercurjs.com/{name}",- "@my-registry": "https://my-registry.com/blocks/{name}.json"- }-}-```--Use `{name}` as a placeholder for block names. Reference custom registries with the `-r` flag:--```bash-bunx @mercurjs/cli@latest search --query review --registry @my-registry-```diff --git a/apps/docs/developer-guide/custom-fields.mdx b/apps/docs/developer-guide/custom-fields.mdxdeleted file mode 100644index 77f4cd0a8..000000000--- a/apps/docs/developer-guide/custom-fields.mdx+++ /dev/null@@ -1,124 +0,0 @@-----title: "Custom Fields"-description: "Extend any Medusa entity with additional fields without modifying core code."------Custom Fields let you attach extra data to any existing Medusa entity — products, customers, orders, and more — through configuration alone. No migrations to write, no models to define. The module handles table creation and schema updates automatically when you run `db:migrate`.--## How it works--The Custom Fields module creates a separate table for each entity you extend (e.g. `product_custom_fields`). Each table is linked back to the original entity via a foreign key with a unique constraint, ensuring a one-to-one relationship. The module automatically registers these links so you can query custom fields through Medusa's standard remote query.--## Configuration--Register the Custom Fields module in your `medusa-config.ts` and define your fields in the `customFields` option:--```ts medusa-config.ts-import { Modules } from "@medusajs/framework/utils";--module.exports = defineConfig({- // ...- modules: [- {- resolve: "@mercurjs/core/modules/custom-fields",- options: {- customFields: {- Product: {- brand: { type: "string", nullable: true },- is_featured: { type: "boolean", defaultValue: false },- weight: { type: "float", nullable: true },- },- Customer: {- company_name: { type: "string", nullable: true },- tier: {- type: "enum",- enum: ["bronze", "silver", "gold"],- defaultValue: "bronze",- },- },- },- },- },- ],-});-```--The key in `customFields` (e.g. `Product`, `Customer`) must match the entity name as registered in Medusa's joiner configuration.--After updating your configuration, run migrations to apply the schema changes:--```bash-bunx medusa db:migrate-```--## Supported field types--| Type | Description |-| ---------- | --------------------------------------------------------- |-| `string` | Short text |-| `text` | Long text |-| `integer` | Whole number |-| `float` | Decimal number |-| `boolean` | True/false |-| `date` | Date only |-| `time` | Time only |-| `datetime` | Date and time |-| `json` | JSON object |-| `array` | Array of values |-| `enum` | One of a predefined set of values (requires `enum` array) |--### Field options--| Option | Type | Default | Description |-| -------------- | ---------- | ------- | ------------------------------------------------ |-| `nullable` | `boolean` | `true` | Whether the field can be null |-| `defaultValue` | `any` | `null` | Default value for the field |-| `enum` | `string[]` | — | Required for `enum` type. List of allowed values |--## Querying custom fields--Custom fields are automatically linked to their parent entity. You can retrieve them using Medusa's remote query:--```ts-const products = await query.graph({- entity: "product",- fields: ["id", "title", "custom_fields.*"],-});-```--## Using the service directly--The Custom Fields module exposes a service with `upsert`, `delete`, and `list` methods. You can use these in your own workflows and API routes:--```ts-import { MercurModules } from "@mercurjs/types";--// In a step or API route-const customFieldsService = container.resolve(MercurModules.CUSTOM_FIELDS);--// Create or update custom fields for a product-await customFieldsService.upsert("product", {- id: "prod_123",- brand: "Acme",- is_featured: true,-});--// Delete custom fields by record ID-await customFieldsService.delete("product", ["cf_456"]);-```--The `upsert` method accepts either a single object or an array. If a record already exists for the given entity ID, it updates it; otherwise, it creates a new one.--## Workflow steps--The module ships with two workflow steps you can compose into your own workflows:--```ts-import {- upsertCustomFieldsStep,- deleteCustomFieldsStep,-} from "@mercurjs/core/workflows";-```--- **`upsertCustomFieldsStep`** — Takes `{ alias, data }` where `alias` is the entity name (e.g. `"product"`) and `data` contains the entity ID and field values.-- **`deleteCustomFieldsStep`** — Takes `{ alias, ids }` to soft-delete custom field records by their IDs.diff --git a/apps/docs/developer-guide/extending-panels.mdx b/apps/docs/developer-guide/extending-panels.mdxdeleted file mode 100644index 89f5c752f..000000000--- a/apps/docs/developer-guide/extending-panels.mdx+++ /dev/null@@ -1,223 +0,0 @@-----title: "Extending Panels"-description: "Add pages, customize navigation, branding, and replace components in the admin and vendor panels."------Both the admin panel and vendor portal use the same SDK (`@mercurjs/dashboard-sdk`). Customization is file-based and convention-driven — you add pages by creating files, configure navigation through exports, and override components through config.--## Setup--Every panel project needs two files at its root:--### Vite config--```typescript vite.config.ts-import { defineConfig } from 'vite'-import react from '@vitejs/plugin-react'-import { dashboardPlugin } from '@mercurjs/dashboard-sdk'--export default defineConfig({- plugins: [react(), dashboardPlugin()],-})-```--### Mercur config--```typescript mercur.config.ts-import { defineConfig } from '@mercurjs/dashboard-sdk'--export default defineConfig({- name: 'My Marketplace',- logo: 'https://example.com/logo.svg',-})-```--Available options:--| Option | Type | Description |-|--------|------|-------------|-| `name` | `string` | Application name shown in the sidebar |-| `logo` | `string` | URL to a logo image |-| `components` | `object` | Component overrides (see [Replacing components](#replacing-components)) |-| `i18n` | `object` | Internationalization settings |-| `backendUrl` | `string` | Medusa backend URL (default: `http://localhost:9000`) |--## Adding pages--Create a `page.tsx` file inside `src/routes/` and export a default React component. The route is determined by the file path.--```tsx src/routes/reviews/page.tsx-import { Star } from "@medusajs/icons"-import type { RouteConfig } from "@mercurjs/dashboard-sdk"--export const config: RouteConfig = {- label: "Reviews",- icon: Star,- rank: 10,-}--export default function ReviewsPage() {- return <div>Reviews</div>-}-```--This creates a `/reviews` route and adds a "Reviews" item to the sidebar.--### The `config` export--The `config` export controls how the page appears in navigation:--| Property | Type | Description |-|----------|------|-------------|-| `label` | `string` | **Required.** Text shown in the sidebar menu |-| `icon` | `ComponentType` | Icon component (e.g. from `@medusajs/icons`) |-| `rank` | `number` | Sort order — lower numbers appear first |-| `nested` | `string` | Parent path for nested menu items |-| `translationNs` | `string` | i18n namespace for the label |-| `public` | `boolean` | If `true`, the route is accessible without authentication |--Pages without a `config` export are still routed but won't appear in the sidebar.--## Routing conventions--File paths map to URL routes automatically:--| File path | Route | Description |-|-----------|-------|-------------|-| `src/routes/page.tsx` | `/` | Root page |-| `src/routes/reviews/page.tsx` | `/reviews` | Static segment |-| `src/routes/reviews/[id]/page.tsx` | `/reviews/:id` | Dynamic segment |-| `src/routes/reviews/[[id]]/page.tsx` | `/reviews/:id?` | Optional dynamic segment |-| `src/routes/search/[*].tsx` | `/search/*` | Catch-all |-| `src/routes/(settings)/page.tsx` | Route grouping | Groups routes without adding a URL segment |-| `src/routes/dashboard/@sidebar/page.tsx` | Parallel route | Renders alongside parent |--## Navigation--Sidebar items are generated from pages that export a `config` with a `label`.--### Ordering--Use `rank` to control the order. Lower values appear higher:--```tsx-// src/routes/orders/page.tsx-export const config: RouteConfig = {- label: "Orders",- icon: ShoppingCart,- rank: 1,-}--// src/routes/products/page.tsx-export const config: RouteConfig = {- label: "Products",- icon: Tag,- rank: 2,-}-```--### Nested menus--Use `nested` to group pages under a parent:--```tsx src/routes/settings/shipping/page.tsx-export const config: RouteConfig = {- label: "Shipping",- nested: "/settings",-}-```--This places "Shipping" as a child item under `/settings` in the sidebar.--## Branding--Set `name` and `logo` in `mercur.config.ts` to customize the sidebar header:--```typescript mercur.config.ts-import { defineConfig } from '@mercurjs/dashboard-sdk'--export default defineConfig({- name: 'WeTest',- logo: 'https://ui-avatars.com/api/?name=WeTest&background=18181B&color=fff&size=200&bold=true&format=svg',-})-```--## Replacing components--Override built-in layout components in `mercur.config.ts`:--```typescript mercur.config.ts-import { defineConfig } from '@mercurjs/dashboard-sdk'--export default defineConfig({- name: 'My Marketplace',- components: {- MainSidebar: 'components/custom-sidebar',- SettingsSidebar: 'components/custom-settings-sidebar',- TopbarActions: 'components/custom-topbar-actions',- },-})-```--Paths are relative to `src/`. Each file must have a default export:--```tsx src/components/custom-topbar-actions.tsx-export default function CustomTopbarActions() {- return (- <div>- <button>Help</button>- <button>Notifications</button>- </div>- )-}-```--| Component | Description |-|-----------|-------------|-| `MainSidebar` | Primary navigation sidebar |-| `SettingsSidebar` | Settings section sidebar |-| `TopbarActions` | Action buttons in the top bar |--## Internationalization--**1. Create translation resources**--```typescript src/i18n/index.ts-export default {- en: {- reviews: {- title: "Reviews",- description: "Manage product reviews",- },- },- de: {- reviews: {- title: "Bewertungen",- description: "Produktbewertungen verwalten",- },- },-}-```--**2. Reference the namespace in your page config**--```tsx src/routes/reviews/page.tsx-export const config: RouteConfig = {- label: "reviews.title",- icon: Star,- translationNs: "reviews",-}-```--**3. Set the default language**--```typescript mercur.config.ts-import { defineConfig } from '@mercurjs/dashboard-sdk'--export default defineConfig({- name: 'My Marketplace',- i18n: {- defaultLanguage: 'en',- },-})-```diff --git a/apps/docs/developer-guide/overview.mdx b/apps/docs/developer-guide/overview.mdxdeleted file mode 100644index 05e236446..000000000--- a/apps/docs/developer-guide/overview.mdx+++ /dev/null@@ -1,210 +0,0 @@-----title: "Overview"-description: "How Mercur is built — architecture, technology stack, and how the pieces fit together."------Mercur is a marketplace platform built on top of [MedusaJS](https://medusajs.com), an open-source headless commerce framework. Rather than being a standalone application, Mercur extends Medusa with marketplace-specific logic — sellers, commissions, order splitting, payouts — while Medusa handles the foundational commerce layer.--This page explains how the system is structured and how its components interact.--## Architecture--Mercur follows a layered architecture where each layer has a distinct responsibility:--```mermaid-graph TD- subgraph Frontend Layer- A[Admin Panel]- B[Vendor Portal]- C[Storefront]- end-- subgraph API Layer- D["/admin/*"]- E["/vendor/*"]- F["/store/*"]- end-- subgraph Marketplace Layer - Mercur- G[Modules · Workflows · Links · Subscribers · Events]- end-- subgraph Commerce Layer - Medusa- H[Products · Orders · Carts · Payments · Fulfillment]- end-- I[(PostgreSQL)]-- A --> D- B --> E- C --> F- D --> G- E --> G- F --> G- G --> H- H --> I-```--### Commerce layer--Medusa provides the core commerce engine — products, pricing, carts, orders, payments, fulfillment, promotions, and inventory. Mercur does not replace any of this. Instead, it builds on top using Medusa's extension model: custom modules, links, workflows, and API routes.--### Marketplace layer--This is where Mercur's code lives. It introduces three custom modules — **Seller**, **Commission**, and **Payout** — along with workflows that coordinate marketplace-specific operations like order splitting and commission calculation. Links connect these modules to Medusa's core entities (products, orders, customers) without modifying the original models.--### API layer--Mercur exposes three sets of HTTP endpoints:--| API | Path | Purpose |-|-----|------|---------|-| **Admin** | `/admin/*` | Platform administration — manage sellers, configure commission rates, view payouts |-| **Vendor** | `/vendor/*` | Seller operations — manage products, orders, fulfillment, shipping, inventory, payouts |-| **Store** | `/store/*` | Storefront — browse sellers, manage carts, checkout with order splitting |--Each API route is composed of a request handler, middleware, query configuration, and Zod validators.--### Frontend layer--Three interfaces consume the APIs:--- **Admin Panel** — Built with React and Medusa UI components. Operators use it to manage the marketplace: approve sellers, set commission rates, handle disputes.-- **Vendor Portal** — A React application for sellers to manage their products, orders, fulfillment, and payouts. Uses file-based routing via the Dashboard SDK.-- **Storefront** — Customer-facing application. Can be built with any frontend technology that consumes the Store API.--## Technology stack--| Layer | Technology |-|-------|-----------|-| Runtime | Node.js 20+, TypeScript |-| Framework | MedusaJS v2 |-| Database | PostgreSQL |-| Frontend | React 18, React Router, Vite |-| Data fetching | TanStack React Query |-| UI components | Medusa UI, Radix UI |-| Form handling | React Hook Form, Zod |-| Tables | TanStack React Table |-| Build | Turborepo (monorepo), Bun (package manager), tsup |-| Internationalization | i18next |--## Core plugin--The core plugin (`@mercurjs/core`) is the main package that contains all marketplace logic. It's structured as a standard MedusaJS plugin:--```-core/src/-├── modules/ # Data models and services-│ ├── seller/ # Seller registration, profiles, order groups-│ ├── commission/ # Commission rates, rules, calculation-│ └── payout/ # Payout accounts, balances, transactions-├── links/ # Relationships between modules-├── workflows/ # Multi-step business processes-│ ├── seller/ # Seller CRUD workflows-│ ├── cart/ # Cart completion with order splitting-│ ├── commission/ # Commission rate and line management-│ ├── payout/ # Payout processing and crediting-│ ├── order-group/ # Order group operations-│ ├── promotion/ # Seller promotion workflows-│ ├── price-list/ # Price list operations-│ └── ... # Shipping, inventory, campaigns, etc.-├── api/ # HTTP route handlers-│ ├── admin/ # Admin API routes-│ ├── vendor/ # Vendor API routes-│ ├── store/ # Store API routes-│ └── hooks/ # Webhook handlers-├── subscribers/ # Event listeners-├── providers/ # Third-party provider integrations-└── jobs/ # Scheduled background tasks-```--### Modules--Modules encapsulate data models and business logic for a specific domain. Each module is self-contained with its own models, service, migrations, and repositories. Modules don't reference each other directly — they communicate through links and workflows.--### Links--Links define relationships between Mercur modules and Medusa core entities. For example, the `product-seller-link` connects a Medusa `Product` to a Mercur `Seller` without modifying either model. There are 17 links that wire the marketplace layer into the commerce layer — connecting sellers to products, orders, customers, shipping options, inventory, promotions, and more.--### Workflows--Workflows orchestrate multi-step operations that span multiple modules. They support compensation (automatic rollback on failure) and hooks (extension points for custom logic). The most significant workflow is `completeCartWithSplitOrdersWorkflow`, which handles the entire checkout process — validating items, splitting by seller, creating orders, allocating payments, and calculating commissions.--### Subscribers and events--Subscribers listen for events emitted by workflows and trigger asynchronous side effects — sending notifications, updating external systems, or processing webhooks. This keeps the core workflows focused on their primary job while allowing the system to react to changes.--## How data flows--A typical customer purchase flows through the system like this:--1. **Customer adds items** from multiple sellers to their cart (Store API)-2. **Cart completion** triggers the split order workflow (Marketplace Layer)-3. Items are **grouped by seller**, and a separate order is created for each (Commerce + Marketplace Layer)-4. **Commission lines** are calculated for each order based on matching rates (Commission Module)-5. **Payment is split** proportionally across seller orders (Commerce Layer)-6. Each seller's order is **credited to their payout account** after commission deduction (Payout Module)-7. **Events are emitted** — triggering notifications, webhook calls, and other side effects (Subscribers)-8. Sellers **manage their orders** through the Vendor Portal (Vendor API)-9. The admin **monitors everything** through the Admin Panel (Admin API)--## Block-based distribution--Mercur uses a **block-based architecture** for distribution. Instead of installing an opaque package, the CLI copies source code directly into your project. Each block is a self-contained piece of functionality — a module, a workflow, an API route, or a UI extension.--This means:-- You own every line of code in your project-- You can modify any block to fit your business requirements-- There are no hidden abstractions or version conflicts-- Updates are explicit — you diff and apply changes from the registry--The CLI (`@mercurjs/cli@latest`) manages this process: scaffolding projects, installing blocks, searching the registry, and comparing local changes against upstream versions.--## Workflow example--Here is a simplified example of how a Mercur workflow is structured. Workflows coordinate multi-step operations with automatic rollback on failure:--```typescript-import {- createWorkflow,- createStep,- StepResponse,- WorkflowResponse,-} from "@medusajs/framework/workflows-sdk"-import { MercurModules } from "@mercurjs/types"--const validateSellerStep = createStep(- "validate-seller",- async ({ seller_id }: { seller_id: string }, { container }) => {- const sellerService = container.resolve(MercurModules.SELLER)- const seller = await sellerService.retrieveSeller(seller_id)-- if (seller.status !== "open") {- throw new Error("Seller is not active")- }-- return new StepResponse(seller)- }-)--const createProductForSellerWorkflow = createWorkflow(- "create-product-for-seller",- (input: { seller_id: string }) => {- const seller = validateSellerStep({ seller_id: input.seller_id })-- // Additional steps: create product, link to seller, etc.-- return new WorkflowResponse({ seller })- }-)-```--## Design principles--**Modular over monolithic** — Each marketplace feature is a separate module that can be installed, modified, or replaced independently. You don't need to use all of Mercur to benefit from it.--**Explicit over implicit** — Relationships between modules are defined through links, not hidden in service code. Workflows make multi-step operations visible and debuggable. API routes are file-based and predictable.--**Extensible over configurable** — Rather than exposing hundreds of configuration options, Mercur provides extension points. Workflows have hooks. Providers are pluggable. Models can be extended through Medusa's framework. When configuration isn't enough, you modify the source code directly.--**Commerce-aware** — Mercur doesn't reinvent commerce. It delegates products, pricing, orders, payments, and fulfillment to Medusa, and focuses exclusively on the marketplace logic that multi-vendor systems need.diff --git a/apps/docs/docs.json b/apps/docs/docs.jsonindex d22714ab0..757b156b7 100644--- a/apps/docs/docs.json+++ b/apps/docs/docs.json@@ -26,7 +26,8 @@"navigation": {"versions": [{- "version": "Release Candidate",+ "version": "2.2.0",+ "default": true,"tabs": [{"tab": "Learn",@@ -34,31 +35,31 @@{"group": "Get started","pages": [- "rc/learn/introduction",- "rc/learn/installation",- "rc/learn/concepts",- "rc/learn/architecture"+ "2.2.0/learn/introduction",+ "2.2.0/learn/installation",+ "2.2.0/learn/concepts",+ "2.2.0/learn/architecture"]},{"group": "Marketplace concepts","pages": [- "rc/learn/sellers",- "rc/learn/seller-members",- "rc/learn/products",- "rc/learn/offers",- "rc/learn/attributes",- "rc/learn/product-requests",- "rc/learn/order-groups",- "rc/learn/commissions",- "rc/learn/payouts"+ "2.2.0/learn/sellers",+ "2.2.0/learn/seller-members",+ "2.2.0/learn/products",+ "2.2.0/learn/offers",+ "2.2.0/learn/attributes",+ "2.2.0/learn/product-requests",+ "2.2.0/learn/order-groups",+ "2.2.0/learn/commissions",+ "2.2.0/learn/payouts"]},{"group": "Blocks","pages": [- "rc/learn/blocks",- "rc/learn/registry"+ "2.2.0/learn/blocks",+ "2.2.0/learn/registry"]}]@@ -69,41 +70,41 @@{"group": "Tutorials","pages": [- "rc/resources/tutorials/first-marketplace",+ "2.2.0/resources/tutorials/first-marketplace",{"group": "Panels","pages": [- "rc/resources/tutorials/custom-panel-page",- "rc/resources/tutorials/add-a-widget",- "rc/resources/tutorials/add-order-detail-button",- "rc/resources/tutorials/extend-forms-and-tables",- "rc/resources/tutorials/extend-onboarding",- "rc/resources/tutorials/store-setup-checklist",- "rc/resources/tutorials/customize-navigation",- "rc/resources/tutorials/custom-api-route"+ "2.2.0/resources/tutorials/custom-panel-page",+ "2.2.0/resources/tutorials/add-a-widget",+ "2.2.0/resources/tutorials/add-order-detail-button",+ "2.2.0/resources/tutorials/extend-forms-and-tables",+ "2.2.0/resources/tutorials/extend-onboarding",+ "2.2.0/resources/tutorials/store-setup-checklist",+ "2.2.0/resources/tutorials/customize-navigation",+ "2.2.0/resources/tutorials/custom-api-route"]},{"group": "Marketplace operations","pages": [- "rc/resources/tutorials/configure-commissions",- "rc/resources/tutorials/seller-payouts-stripe",- "rc/resources/tutorials/handle-product-requests"+ "2.2.0/resources/tutorials/configure-commissions",+ "2.2.0/resources/tutorials/seller-payouts-stripe",+ "2.2.0/resources/tutorials/handle-product-requests"]},{"group": "Catalog","pages": [- "rc/resources/tutorials/attributes-and-variant-axes",- "rc/resources/tutorials/master-products-and-offers",- "rc/resources/tutorials/import-export-products"+ "2.2.0/resources/tutorials/attributes-and-variant-axes",+ "2.2.0/resources/tutorials/master-products-and-offers",+ "2.2.0/resources/tutorials/import-export-products"]},{"group": "Blocks","pages": [- "rc/resources/tutorials/add-a-block",- "rc/resources/tutorials/build-a-block"+ "2.2.0/resources/tutorials/add-a-block",+ "2.2.0/resources/tutorials/build-a-block"]}]@@ -111,45 +112,45 @@{"group": "Customization","pages": [- "rc/resources/customization/extending-panels",- "rc/resources/customization/custom-fields",- "rc/resources/customization/extend-a-workflow"+ "2.2.0/resources/customization/extending-panels",+ "2.2.0/resources/customization/custom-fields",+ "2.2.0/resources/customization/extend-a-workflow"]},{"group": "Integrations","pages": [- "rc/resources/integrations/stripe-connect",- "rc/resources/integrations/search",- "rc/resources/integrations/notifications"+ "2.2.0/resources/integrations/stripe-connect",+ "2.2.0/resources/integrations/search",+ "2.2.0/resources/integrations/notifications"]},{"group": "Best practices","pages": [- "rc/resources/best-practices/overview",- "rc/resources/best-practices/modules",- "rc/resources/best-practices/module-links",- "rc/resources/best-practices/workflows",- "rc/resources/best-practices/api-routes",- "rc/resources/best-practices/subscribers-and-jobs",- "rc/resources/best-practices/types",- "rc/resources/best-practices/custom-fields",- "rc/resources/best-practices/frontend"+ "2.2.0/resources/best-practices/overview",+ "2.2.0/resources/best-practices/modules",+ "2.2.0/resources/best-practices/module-links",+ "2.2.0/resources/best-practices/workflows",+ "2.2.0/resources/best-practices/api-routes",+ "2.2.0/resources/best-practices/subscribers-and-jobs",+ "2.2.0/resources/best-practices/types",+ "2.2.0/resources/best-practices/custom-fields",+ "2.2.0/resources/best-practices/frontend"]},{"group": "Deployment","pages": [- "rc/resources/deployment/medusa-cloud"+ "2.2.0/resources/deployment/medusa-cloud"]},{"group": "Building with AI","pages": [- "rc/resources/ai/overview",- "rc/resources/ai/llms",- "rc/resources/ai/mcp"+ "2.2.0/resources/ai/overview",+ "2.2.0/resources/ai/llms",+ "2.2.0/resources/ai/mcp"]}]@@ -160,9 +161,9 @@{"group": "Tools","pages": [- "rc/tools/cli",- "rc/tools/api-client",- "rc/tools/dashboard-sdk"+ "2.2.0/tools/cli",+ "2.2.0/tools/api-client",+ "2.2.0/tools/dashboard-sdk"]}]@@ -173,147 +174,147 @@{"group": "Overview","pages": [- "rc/references/overview"+ "2.2.0/references/overview"]},{"group": "Panel Extension API","pages": [- "rc/references/panel-extension-api"+ "2.2.0/references/panel-extension-api"]},{"group": "Modules","pages": [- "rc/references/modules/seller",- "rc/references/modules/commission",- "rc/references/modules/payout",- "rc/references/modules/offer",- "rc/references/modules/product-attribute",- "rc/references/modules/product-edit",- "rc/references/modules/media",- "rc/references/modules/search",- "rc/references/modules/custom-fields"+ "2.2.0/references/modules/seller",+ "2.2.0/references/modules/commission",+ "2.2.0/references/modules/payout",+ "2.2.0/references/modules/offer",+ "2.2.0/references/modules/product-attribute",+ "2.2.0/references/modules/product-edit",+ "2.2.0/references/modules/media",+ "2.2.0/references/modules/search",+ "2.2.0/references/modules/custom-fields"]},{"group": "Admin API","pages": [- "rc/references/api/conventions",- "rc/references/api/admin",+ "2.2.0/references/api/conventions",+ "2.2.0/references/api/admin",{"group": "Sellers","pages": [- "rc/references/api/admin/sellers/list-sellers",- "rc/references/api/admin/sellers/create-seller",- "rc/references/api/admin/sellers/retrieve-seller",- "rc/references/api/admin/sellers/update-seller",- "rc/references/api/admin/sellers/approve-seller",- "rc/references/api/admin/sellers/suspend-seller",- "rc/references/api/admin/sellers/unsuspend-seller",- "rc/references/api/admin/sellers/terminate-seller",- "rc/references/api/admin/sellers/unterminate-seller",- "rc/references/api/admin/sellers/upsert-seller-address",- "rc/references/api/admin/sellers/upsert-payment-details",- "rc/references/api/admin/sellers/upsert-professional-details",- "rc/references/api/admin/sellers/delete-professional-details",- "rc/references/api/admin/sellers/list-seller-products",- "rc/references/api/admin/sellers/list-seller-members",- "rc/references/api/admin/sellers/add-seller-member",- "rc/references/api/admin/sellers/remove-seller-member",- "rc/references/api/admin/sellers/invite-seller-member",- "rc/references/api/admin/sellers/list-member-invites",- "rc/references/api/admin/sellers/delete-member-invite",- "rc/references/api/admin/sellers/resend-member-invite"+ "2.2.0/references/api/admin/sellers/list-sellers",+ "2.2.0/references/api/admin/sellers/create-seller",+ "2.2.0/references/api/admin/sellers/retrieve-seller",+ "2.2.0/references/api/admin/sellers/update-seller",+ "2.2.0/references/api/admin/sellers/approve-seller",+ "2.2.0/references/api/admin/sellers/suspend-seller",+ "2.2.0/references/api/admin/sellers/unsuspend-seller",+ "2.2.0/references/api/admin/sellers/terminate-seller",+ "2.2.0/references/api/admin/sellers/unterminate-seller",+ "2.2.0/references/api/admin/sellers/upsert-seller-address",+ "2.2.0/references/api/admin/sellers/upsert-payment-details",+ "2.2.0/references/api/admin/sellers/upsert-professional-details",+ "2.2.0/references/api/admin/sellers/delete-professional-details",+ "2.2.0/references/api/admin/sellers/list-seller-products",+ "2.2.0/references/api/admin/sellers/list-seller-members",+ "2.2.0/references/api/admin/sellers/add-seller-member",+ "2.2.0/references/api/admin/sellers/remove-seller-member",+ "2.2.0/references/api/admin/sellers/invite-seller-member",+ "2.2.0/references/api/admin/sellers/list-member-invites",+ "2.2.0/references/api/admin/sellers/delete-member-invite",+ "2.2.0/references/api/admin/sellers/resend-member-invite"]},{"group": "Members","pages": [- "rc/references/api/admin/members/list-members"+ "2.2.0/references/api/admin/members/list-members"]},{"group": "Commission Rates","pages": [- "rc/references/api/admin/commission-rates/list-commission-rates",- "rc/references/api/admin/commission-rates/create-commission-rate",- "rc/references/api/admin/commission-rates/retrieve-commission-rate",- "rc/references/api/admin/commission-rates/update-commission-rate",- "rc/references/api/admin/commission-rates/delete-commission-rate",- "rc/references/api/admin/commission-rates/batch-commission-rules"+ "2.2.0/references/api/admin/commission-rates/list-commission-rates",+ "2.2.0/references/api/admin/commission-rates/create-commission-rate",+ "2.2.0/references/api/admin/commission-rates/retrieve-commission-rate",+ "2.2.0/references/api/admin/commission-rates/update-commission-rate",+ "2.2.0/references/api/admin/commission-rates/delete-commission-rate",+ "2.2.0/references/api/admin/commission-rates/batch-commission-rules"]},{"group": "Payouts","pages": [- "rc/references/api/admin/payouts/list-payouts",- "rc/references/api/admin/payouts/retrieve-payout"+ "2.2.0/references/api/admin/payouts/list-payouts",+ "2.2.0/references/api/admin/payouts/retrieve-payout"]},{"group": "Offers","pages": [- "rc/references/api/admin/offers/list-offers",- "rc/references/api/admin/offers/retrieve-offer",- "rc/references/api/admin/offers/delete-offer",- "rc/references/api/admin/offers/batch-create-offers"+ "2.2.0/references/api/admin/offers/list-offers",+ "2.2.0/references/api/admin/offers/retrieve-offer",+ "2.2.0/references/api/admin/offers/delete-offer",+ "2.2.0/references/api/admin/offers/batch-create-offers"]},{"group": "Products","pages": [- "rc/references/api/admin/products/list-products",- "rc/references/api/admin/products/create-product",- "rc/references/api/admin/products/retrieve-product",- "rc/references/api/admin/products/update-product",- "rc/references/api/admin/products/delete-product",- "rc/references/api/admin/products/preview-product",- "rc/references/api/admin/products/confirm-product",- "rc/references/api/admin/products/reject-product",- "rc/references/api/admin/products/request-product-changes",- "rc/references/api/admin/products/set-product-sellers",- "rc/references/api/admin/products/batch-product-attributes",- "rc/references/api/admin/products/list-product-variants",- "rc/references/api/admin/products/create-product-variant",- "rc/references/api/admin/products/retrieve-product-variant",- "rc/references/api/admin/products/update-product-variant",- "rc/references/api/admin/products/delete-product-variant"+ "2.2.0/references/api/admin/products/list-products",+ "2.2.0/references/api/admin/products/create-product",+ "2.2.0/references/api/admin/products/retrieve-product",+ "2.2.0/references/api/admin/products/update-product",+ "2.2.0/references/api/admin/products/delete-product",+ "2.2.0/references/api/admin/products/preview-product",+ "2.2.0/references/api/admin/products/confirm-product",+ "2.2.0/references/api/admin/products/reject-product",+ "2.2.0/references/api/admin/products/request-product-changes",+ "2.2.0/references/api/admin/products/set-product-sellers",+ "2.2.0/references/api/admin/products/batch-product-attributes",+ "2.2.0/references/api/admin/products/list-product-variants",+ "2.2.0/references/api/admin/products/create-product-variant",+ "2.2.0/references/api/admin/products/retrieve-product-variant",+ "2.2.0/references/api/admin/products/update-product-variant",+ "2.2.0/references/api/admin/products/delete-product-variant"]},{"group": "Product Changes","pages": [- "rc/references/api/admin/product-changes/confirm-product-change",- "rc/references/api/admin/product-changes/cancel-product-change"+ "2.2.0/references/api/admin/product-changes/confirm-product-change",+ "2.2.0/references/api/admin/product-changes/cancel-product-change"]},{"group": "Product Attributes","pages": [- "rc/references/api/admin/product-attributes/list-product-attributes",- "rc/references/api/admin/product-attributes/create-product-attribute",- "rc/references/api/admin/product-attributes/retrieve-product-attribute",- "rc/references/api/admin/product-attributes/update-product-attribute",- "rc/references/api/admin/product-attributes/delete-product-attribute",- "rc/references/api/admin/product-attributes/create-attribute-value",- "rc/references/api/admin/product-attributes/update-attribute-value",- "rc/references/api/admin/product-attributes/delete-attribute-value"+ "2.2.0/references/api/admin/product-attributes/list-product-attributes",+ "2.2.0/references/api/admin/product-attributes/create-product-attribute",+ "2.2.0/references/api/admin/product-attributes/retrieve-product-attribute",+ "2.2.0/references/api/admin/product-attributes/update-product-attribute",+ "2.2.0/references/api/admin/product-attributes/delete-product-attribute",+ "2.2.0/references/api/admin/product-attributes/create-attribute-value",+ "2.2.0/references/api/admin/product-attributes/update-attribute-value",+ "2.2.0/references/api/admin/product-attributes/delete-attribute-value"]},{"group": "Orders","pages": [- "rc/references/api/admin/orders/list-orders",- "rc/references/api/admin/orders/get-order-commission-lines",- "rc/references/api/admin/orders/get-order-order-group"+ "2.2.0/references/api/admin/orders/list-orders",+ "2.2.0/references/api/admin/orders/get-order-commission-lines",+ "2.2.0/references/api/admin/orders/get-order-order-group"]},{"group": "Order Groups","pages": [- "rc/references/api/admin/order-groups/list-order-groups",- "rc/references/api/admin/order-groups/retrieve-order-group"+ "2.2.0/references/api/admin/order-groups/list-order-groups",+ "2.2.0/references/api/admin/order-groups/retrieve-order-group"]}]@@ -321,98 +322,98 @@{"group": "Vendor API","pages": [- "rc/references/api/vendor",+ "2.2.0/references/api/vendor",{"group": "Sellers","pages": [- "rc/references/api/vendor/sellers/create-seller",- "rc/references/api/vendor/sellers/list-sellers",- "rc/references/api/vendor/sellers/select-seller",- "rc/references/api/vendor/sellers/retrieve-current-seller",- "rc/references/api/vendor/sellers/update-current-seller",- "rc/references/api/vendor/sellers/upsert-seller-address",- "rc/references/api/vendor/sellers/upsert-payment-details",- "rc/references/api/vendor/sellers/upsert-professional-details",- "rc/references/api/vendor/sellers/delete-professional-details",- "rc/references/api/vendor/sellers/list-seller-members",- "rc/references/api/vendor/sellers/invite-seller-member",- "rc/references/api/vendor/sellers/update-member-role",- "rc/references/api/vendor/sellers/remove-seller-member",- "rc/references/api/vendor/sellers/retrieve-current-seller-member",- "rc/references/api/vendor/sellers/list-member-invites"+ "2.2.0/references/api/vendor/sellers/create-seller",+ "2.2.0/references/api/vendor/sellers/list-sellers",+ "2.2.0/references/api/vendor/sellers/select-seller",+ "2.2.0/references/api/vendor/sellers/retrieve-current-seller",+ "2.2.0/references/api/vendor/sellers/update-current-seller",+ "2.2.0/references/api/vendor/sellers/upsert-seller-address",+ "2.2.0/references/api/vendor/sellers/upsert-payment-details",+ "2.2.0/references/api/vendor/sellers/upsert-professional-details",+ "2.2.0/references/api/vendor/sellers/delete-professional-details",+ "2.2.0/references/api/vendor/sellers/list-seller-members",+ "2.2.0/references/api/vendor/sellers/invite-seller-member",+ "2.2.0/references/api/vendor/sellers/update-member-role",+ "2.2.0/references/api/vendor/sellers/remove-seller-member",+ "2.2.0/references/api/vendor/sellers/retrieve-current-seller-member",+ "2.2.0/references/api/vendor/sellers/list-member-invites"]},{"group": "Members","pages": [- "rc/references/api/vendor/members/retrieve-current-member",- "rc/references/api/vendor/members/update-current-member",- "rc/references/api/vendor/members/accept-member-invite"+ "2.2.0/references/api/vendor/members/retrieve-current-member",+ "2.2.0/references/api/vendor/members/update-current-member",+ "2.2.0/references/api/vendor/members/accept-member-invite"]},{"group": "Products","pages": [- "rc/references/api/vendor/products/list-products",- "rc/references/api/vendor/products/create-product",- "rc/references/api/vendor/products/retrieve-product",- "rc/references/api/vendor/products/update-product",- "rc/references/api/vendor/products/delete-product",- "rc/references/api/vendor/products/preview-product",- "rc/references/api/vendor/products/cancel-product-change",- "rc/references/api/vendor/products/batch-product-attributes",- "rc/references/api/vendor/products/list-product-variants",- "rc/references/api/vendor/products/create-product-variant",- "rc/references/api/vendor/products/retrieve-product-variant",- "rc/references/api/vendor/products/update-product-variant",- "rc/references/api/vendor/products/delete-product-variant",- "rc/references/api/vendor/product-variants/list-variants"+ "2.2.0/references/api/vendor/products/list-products",+ "2.2.0/references/api/vendor/products/create-product",+ "2.2.0/references/api/vendor/products/retrieve-product",+ "2.2.0/references/api/vendor/products/update-product",+ "2.2.0/references/api/vendor/products/delete-product",+ "2.2.0/references/api/vendor/products/preview-product",+ "2.2.0/references/api/vendor/products/cancel-product-change",+ "2.2.0/references/api/vendor/products/batch-product-attributes",+ "2.2.0/references/api/vendor/products/list-product-variants",+ "2.2.0/references/api/vendor/products/create-product-variant",+ "2.2.0/references/api/vendor/products/retrieve-product-variant",+ "2.2.0/references/api/vendor/products/update-product-variant",+ "2.2.0/references/api/vendor/products/delete-product-variant",+ "2.2.0/references/api/vendor/product-variants/list-variants"]},{"group": "Product Attributes","pages": [- "rc/references/api/vendor/product-attributes/list-product-attributes",- "rc/references/api/vendor/product-attributes/retrieve-product-attribute"+ "2.2.0/references/api/vendor/product-attributes/list-product-attributes",+ "2.2.0/references/api/vendor/product-attributes/retrieve-product-attribute"]},{"group": "Offers","pages": [- "rc/references/api/vendor/offers/list-offers",- "rc/references/api/vendor/offers/create-offer",- "rc/references/api/vendor/offers/retrieve-offer",- "rc/references/api/vendor/offers/update-offer",- "rc/references/api/vendor/offers/delete-offer",- "rc/references/api/vendor/offers/batch-create-offers",- "rc/references/api/vendor/offers/batch-offer-inventory-items"+ "2.2.0/references/api/vendor/offers/list-offers",+ "2.2.0/references/api/vendor/offers/create-offer",+ "2.2.0/references/api/vendor/offers/retrieve-offer",+ "2.2.0/references/api/vendor/offers/update-offer",+ "2.2.0/references/api/vendor/offers/delete-offer",+ "2.2.0/references/api/vendor/offers/batch-create-offers",+ "2.2.0/references/api/vendor/offers/batch-offer-inventory-items"]},{"group": "Orders","pages": [- "rc/references/api/vendor/orders/list-orders",- "rc/references/api/vendor/orders/retrieve-order",- "rc/references/api/vendor/orders/preview-order",- "rc/references/api/vendor/orders/list-order-changes",- "rc/references/api/vendor/orders/get-order-commission-lines",- "rc/references/api/vendor/orders/complete-order",- "rc/references/api/vendor/orders/cancel-order",- "rc/references/api/vendor/orders/create-fulfillment",- "rc/references/api/vendor/orders/cancel-fulfillment",- "rc/references/api/vendor/orders/mark-fulfillment-delivered",- "rc/references/api/vendor/orders/create-shipment"+ "2.2.0/references/api/vendor/orders/list-orders",+ "2.2.0/references/api/vendor/orders/retrieve-order",+ "2.2.0/references/api/vendor/orders/preview-order",+ "2.2.0/references/api/vendor/orders/list-order-changes",+ "2.2.0/references/api/vendor/orders/get-order-commission-lines",+ "2.2.0/references/api/vendor/orders/complete-order",+ "2.2.0/references/api/vendor/orders/cancel-order",+ "2.2.0/references/api/vendor/orders/create-fulfillment",+ "2.2.0/references/api/vendor/orders/cancel-fulfillment",+ "2.2.0/references/api/vendor/orders/mark-fulfillment-delivered",+ "2.2.0/references/api/vendor/orders/create-shipment"]},{"group": "Payouts","pages": [- "rc/references/api/vendor/payouts/list-payouts",- "rc/references/api/vendor/payouts/retrieve-payout",- "rc/references/api/vendor/payout-accounts/retrieve-payout-account",- "rc/references/api/vendor/payout-accounts/create-payout-account",- "rc/references/api/vendor/payout-accounts/retrieve-payout-account-by-id",- "rc/references/api/vendor/payout-accounts/create-onboarding"+ "2.2.0/references/api/vendor/payouts/list-payouts",+ "2.2.0/references/api/vendor/payouts/retrieve-payout",+ "2.2.0/references/api/vendor/payout-accounts/retrieve-payout-account",+ "2.2.0/references/api/vendor/payout-accounts/create-payout-account",+ "2.2.0/references/api/vendor/payout-accounts/retrieve-payout-account-by-id",+ "2.2.0/references/api/vendor/payout-accounts/create-onboarding"]}]@@ -420,53 +421,53 @@{"group": "Store API","pages": [- "rc/references/api/store",+ "2.2.0/references/api/store",{"group": "Products","pages": [- "rc/references/api/store/products/list-products",- "rc/references/api/store/products/retrieve-product",- "rc/references/api/store/product-categories/list-product-categories",- "rc/references/api/store/product-categories/retrieve-product-category",- "rc/references/api/store/product-attributes/list-product-attributes",- "rc/references/api/store/product-attributes/retrieve-product-attribute"+ "2.2.0/references/api/store/products/list-products",+ "2.2.0/references/api/store/products/retrieve-product",+ "2.2.0/references/api/store/product-categories/list-product-categories",+ "2.2.0/references/api/store/product-categories/retrieve-product-category",+ "2.2.0/references/api/store/product-attributes/list-product-attributes",+ "2.2.0/references/api/store/product-attributes/retrieve-product-attribute"]},{"group": "Sellers","pages": [- "rc/references/api/store/sellers/list-sellers",- "rc/references/api/store/sellers/retrieve-seller"+ "2.2.0/references/api/store/sellers/list-sellers",+ "2.2.0/references/api/store/sellers/retrieve-seller"]},{"group": "Offers","pages": [- "rc/references/api/store/offers/list-offers",- "rc/references/api/store/offers/retrieve-offer"+ "2.2.0/references/api/store/offers/list-offers",+ "2.2.0/references/api/store/offers/retrieve-offer"]},{"group": "Search","pages": [- "rc/references/api/store/search/search"+ "2.2.0/references/api/store/search/search"]},{"group": "Carts","pages": [- "rc/references/api/store/carts/add-line-item",- "rc/references/api/store/carts/add-shipping-methods",- "rc/references/api/store/carts/apply-promotions",- "rc/references/api/store/carts/complete-cart",- "rc/references/api/store/shipping-options/list-shipping-options"+ "2.2.0/references/api/store/carts/add-line-item",+ "2.2.0/references/api/store/carts/add-shipping-methods",+ "2.2.0/references/api/store/carts/apply-promotions",+ "2.2.0/references/api/store/carts/complete-cart",+ "2.2.0/references/api/store/shipping-options/list-shipping-options"]},{"group": "Order Groups","pages": [- "rc/references/api/store/order-groups/list-order-groups",- "rc/references/api/store/order-groups/retrieve-order-group"+ "2.2.0/references/api/store/order-groups/list-order-groups",+ "2.2.0/references/api/store/order-groups/retrieve-order-group"]}]@@ -474,138 +475,138 @@{"group": "Workflows","pages": [- "rc/references/workflows/overview",+ "2.2.0/references/workflows/overview",{"group": "Seller","pages": [- "rc/references/workflows/seller/create-sellers",- "rc/references/workflows/seller/create-seller-account",- "rc/references/workflows/seller/create-seller-defaults",- "rc/references/workflows/seller/update-sellers",- "rc/references/workflows/seller/delete-sellers",- "rc/references/workflows/seller/approve-seller",- "rc/references/workflows/seller/suspend-seller",- "rc/references/workflows/seller/unsuspend-seller",- "rc/references/workflows/seller/terminate-seller",- "rc/references/workflows/seller/unterminate-seller",- "rc/references/workflows/seller/update-seller-address",- "rc/references/workflows/seller/update-seller-payment-details",- "rc/references/workflows/seller/update-seller-professional-details",- "rc/references/workflows/seller/delete-seller-professional-details",- "rc/references/workflows/seller/invite-seller"+ "2.2.0/references/workflows/seller/create-sellers",+ "2.2.0/references/workflows/seller/create-seller-account",+ "2.2.0/references/workflows/seller/create-seller-defaults",+ "2.2.0/references/workflows/seller/update-sellers",+ "2.2.0/references/workflows/seller/delete-sellers",+ "2.2.0/references/workflows/seller/approve-seller",+ "2.2.0/references/workflows/seller/suspend-seller",+ "2.2.0/references/workflows/seller/unsuspend-seller",+ "2.2.0/references/workflows/seller/terminate-seller",+ "2.2.0/references/workflows/seller/unterminate-seller",+ "2.2.0/references/workflows/seller/update-seller-address",+ "2.2.0/references/workflows/seller/update-seller-payment-details",+ "2.2.0/references/workflows/seller/update-seller-professional-details",+ "2.2.0/references/workflows/seller/delete-seller-professional-details",+ "2.2.0/references/workflows/seller/invite-seller"]},{"group": "Member","pages": [- "rc/references/workflows/member/add-seller-member",- "rc/references/workflows/member/remove-seller-member",- "rc/references/workflows/member/update-member",- "rc/references/workflows/member/update-member-role",- "rc/references/workflows/member/create-member-invites",- "rc/references/workflows/member/accept-member-invite",- "rc/references/workflows/member/resend-member-invite",- "rc/references/workflows/member/delete-member-invite"+ "2.2.0/references/workflows/member/add-seller-member",+ "2.2.0/references/workflows/member/remove-seller-member",+ "2.2.0/references/workflows/member/update-member",+ "2.2.0/references/workflows/member/update-member-role",+ "2.2.0/references/workflows/member/create-member-invites",+ "2.2.0/references/workflows/member/accept-member-invite",+ "2.2.0/references/workflows/member/resend-member-invite",+ "2.2.0/references/workflows/member/delete-member-invite"]},{"group": "Cart","pages": [- "rc/references/workflows/cart/complete-cart-with-split-orders",- "rc/references/workflows/cart/add-seller-shipping-method-to-cart",- "rc/references/workflows/cart/list-seller-shipping-options-for-cart",- "rc/references/workflows/cart/update-cart-seller-promotions"+ "2.2.0/references/workflows/cart/complete-cart-with-split-orders",+ "2.2.0/references/workflows/cart/add-seller-shipping-method-to-cart",+ "2.2.0/references/workflows/cart/list-seller-shipping-options-for-cart",+ "2.2.0/references/workflows/cart/update-cart-seller-promotions"]},{"group": "Order Group","pages": [- "rc/references/workflows/order-group/get-order-group-detail",- "rc/references/workflows/order-group/get-order-groups-list"+ "2.2.0/references/workflows/order-group/get-order-group-detail",+ "2.2.0/references/workflows/order-group/get-order-groups-list"]},{"group": "Commission","pages": [- "rc/references/workflows/commission/create-commission-rates",- "rc/references/workflows/commission/update-commission-rates",- "rc/references/workflows/commission/delete-commission-rates",- "rc/references/workflows/commission/batch-commission-rules",- "rc/references/workflows/commission/refresh-order-commission-lines"+ "2.2.0/references/workflows/commission/create-commission-rates",+ "2.2.0/references/workflows/commission/update-commission-rates",+ "2.2.0/references/workflows/commission/delete-commission-rates",+ "2.2.0/references/workflows/commission/batch-commission-rules",+ "2.2.0/references/workflows/commission/refresh-order-commission-lines"]},{"group": "Payout","pages": [- "rc/references/workflows/payout/create-payout-account",- "rc/references/workflows/payout/create-onboarding",- "rc/references/workflows/payout/create-payout",- "rc/references/workflows/payout/process-payout-for-webhook"+ "2.2.0/references/workflows/payout/create-payout-account",+ "2.2.0/references/workflows/payout/create-onboarding",+ "2.2.0/references/workflows/payout/create-payout",+ "2.2.0/references/workflows/payout/process-payout-for-webhook"]},{"group": "Product","pages": [- "rc/references/workflows/product/create-products",- "rc/references/workflows/product/confirm-products",- "rc/references/workflows/product/reject-product",- "rc/references/workflows/product/request-product-change",- "rc/references/workflows/product/link-sellers-to-product",- "rc/references/workflows/product/link-sellers-to-product-category"+ "2.2.0/references/workflows/product/create-products",+ "2.2.0/references/workflows/product/confirm-products",+ "2.2.0/references/workflows/product/reject-product",+ "2.2.0/references/workflows/product/request-product-change",+ "2.2.0/references/workflows/product/link-sellers-to-product",+ "2.2.0/references/workflows/product/link-sellers-to-product-category"]},{"group": "Product Edit","pages": [- "rc/references/workflows/product-edit/create-product-change",- "rc/references/workflows/product-edit/stage-product-change",- "rc/references/workflows/product-edit/confirm-product-change",- "rc/references/workflows/product-edit/auto-confirm-product-change",- "rc/references/workflows/product-edit/cancel-product-change",- "rc/references/workflows/product-edit/reject-product-change"+ "2.2.0/references/workflows/product-edit/create-product-change",+ "2.2.0/references/workflows/product-edit/stage-product-change",+ "2.2.0/references/workflows/product-edit/confirm-product-change",+ "2.2.0/references/workflows/product-edit/auto-confirm-product-change",+ "2.2.0/references/workflows/product-edit/cancel-product-change",+ "2.2.0/references/workflows/product-edit/reject-product-change"]},{"group": "Product Attribute","pages": [- "rc/references/workflows/product-attribute/create-and-link-product-attributes-to-product",- "rc/references/workflows/product-attribute/add-product-attributes-to-product",- "rc/references/workflows/product-attribute/remove-product-attributes-from-product",- "rc/references/workflows/product-attribute/update-product-attributes-on-product",- "rc/references/workflows/product-attribute/create-product-attributes",- "rc/references/workflows/product-attribute/update-product-attributes",- "rc/references/workflows/product-attribute/delete-product-attributes",- "rc/references/workflows/product-attribute/create-product-attribute-values",- "rc/references/workflows/product-attribute/update-product-attribute-values",- "rc/references/workflows/product-attribute/upsert-product-attribute-values",- "rc/references/workflows/product-attribute/delete-product-attribute-values"+ "2.2.0/references/workflows/product-attribute/create-and-link-product-attributes-to-product",+ "2.2.0/references/workflows/product-attribute/add-product-attributes-to-product",+ "2.2.0/references/workflows/product-attribute/remove-product-attributes-from-product",+ "2.2.0/references/workflows/product-attribute/update-product-attributes-on-product",+ "2.2.0/references/workflows/product-attribute/create-product-attributes",+ "2.2.0/references/workflows/product-attribute/update-product-attributes",+ "2.2.0/references/workflows/product-attribute/delete-product-attributes",+ "2.2.0/references/workflows/product-attribute/create-product-attribute-values",+ "2.2.0/references/workflows/product-attribute/update-product-attribute-values",+ "2.2.0/references/workflows/product-attribute/upsert-product-attribute-values",+ "2.2.0/references/workflows/product-attribute/delete-product-attribute-values"]},{"group": "Offer","pages": [- "rc/references/workflows/offer/create-offers",- "rc/references/workflows/offer/update-offers",- "rc/references/workflows/offer/delete-offers",- "rc/references/workflows/offer/batch-offer-inventory-items"+ "2.2.0/references/workflows/offer/create-offers",+ "2.2.0/references/workflows/offer/update-offers",+ "2.2.0/references/workflows/offer/delete-offers",+ "2.2.0/references/workflows/offer/batch-offer-inventory-items"]},{"group": "Media","pages": [- "rc/references/workflows/media/set-category-images",- "rc/references/workflows/media/set-collection-images"+ "2.2.0/references/workflows/media/set-category-images",+ "2.2.0/references/workflows/media/set-collection-images"]},{"group": "Order","pages": [- "rc/references/workflows/order/create-order-fulfillment",- "rc/references/workflows/order/cancel-order-fulfillment",- "rc/references/workflows/order/confirm-return-receive",- "rc/references/workflows/order/confirm-claim-request",- "rc/references/workflows/order/confirm-exchange-request",- "rc/references/workflows/order/confirm-order-edit-request"+ "2.2.0/references/workflows/order/create-order-fulfillment",+ "2.2.0/references/workflows/order/cancel-order-fulfillment",+ "2.2.0/references/workflows/order/confirm-return-receive",+ "2.2.0/references/workflows/order/confirm-claim-request",+ "2.2.0/references/workflows/order/confirm-exchange-request",+ "2.2.0/references/workflows/order/confirm-order-edit-request"]}]@@ -613,7 +614,7 @@{"group": "Configuration","pages": [- "rc/references/configuration"+ "2.2.0/references/configuration"]}]@@ -624,15 +625,15 @@{"group": "Admin Panel","pages": [- "rc/user-guide/admin/overview",- "rc/user-guide/admin/stores"+ "2.2.0/user-guide/admin/overview",+ "2.2.0/user-guide/admin/stores"]},{"group": "Vendor Panel","pages": [- "rc/user-guide/vendor/overview",- "rc/user-guide/vendor/stores"+ "2.2.0/user-guide/vendor/overview",+ "2.2.0/user-guide/vendor/stores"]}]@@ -643,122 +644,15 @@{"group": "Migration","pages": [- "rc/migration/overview",- "rc/migration/from-2-0-to-2-1",- "rc/migration/from-1-x-to-2-0"- ]- },- {- "group": "Legal",- "pages": [- "rc/telemetry"- ]- }- ]- },- {- "tab": "Changelog",- "groups": [- {- "group": "Changelog",- "pages": []- }- ]- }- ]- },- {- "version": "2.1.1",- "default": true,- "tabs": [- {- "tab": "Welcome",- "groups": [- {- "group": "Welcome",- "pages": [- "welcome"- ]- }- ]- },- {- "tab": "Docs",- "groups": [- {- "group": "Getting started",- "pages": [- "getting-started/introduction",- "getting-started/concepts",- "getting-started/installation"- ]- },- {- "group": "Core Concepts",- "pages": [- "core-concepts/seller",- "core-concepts/seller-members",- "core-concepts/payout",- "core-concepts/commission",- "core-concepts/order-groups"- ]- },- {- "group": "Developer Guide",- "pages": [- "developer-guide/overview",- "developer-guide/blocks",- "developer-guide/registry",- "developer-guide/api-client",- "developer-guide/cli",- "developer-guide/extending-panels",- "developer-guide/custom-fields"- ]- },- {- "group": "How-to Guides",- "pages": [- "how-to-guides/stripe-connect-integration",- "how-to-guides/medusa-cloud"- ]- },- {- "group": "Migration",- "pages": [- "migrations/overview",- "migrations/from-2-0-to-2-1",- "migrations/from-1-x-to-2-0"- ]- },- {- "group": "AI Development",- "pages": [- "ai-development/llms",- "ai-development/mcp",- "ai-development/skills"+ "2.2.0/migration/overview",+ "2.2.0/migration/from-2-0-to-2-1",+ "2.2.0/migration/from-1-x-to-2-0"]},{"group": "Legal","pages": [- "telemetry"- ]- }- ]- },- {- "tab": "User Guide",- "groups": [- {- "group": "Admin Panel",- "pages": [- "user-guides/admin/stores"- ]- },- {- "group": "Vendor Panel",- "pages": [- "user-guides/vendor/stores"+ "2.2.0/telemetry"]}]diff --git a/apps/docs/getting-started/concepts.mdx b/apps/docs/getting-started/concepts.mdxdeleted file mode 100644index 5050ae413..000000000--- a/apps/docs/getting-started/concepts.mdx+++ /dev/null@@ -1,68 +0,0 @@-----title: "Concepts"-description: "Core concepts behind Mercur — from the Medusa foundation to blocks, panels, and the registry."------Mercur is built on a small set of concepts. Familiarity with these establishes a common language when working with the platform.--## Medusa--[MedusaJS](https://medusajs.com) is the open-source commerce framework that powers Mercur's foundation. It handles products, pricing, carts, orders, payments, fulfillment, and promotions. Mercur does not replace any of this — it extends Medusa with marketplace-specific logic using Medusa's own extension model.--## Admin Panel--The admin panel is a React application for **marketplace operators**. It provides a dashboard to manage sellers, configure commission rates, moderate product requests, handle disputes, and monitor the overall marketplace. It is built with [Medusa UI](https://docs.medusajs.com/ui) components and can be extended with custom pages and components through the [Dashboard SDK](#dashboard-sdk).--## Vendor Portal--The vendor portal is a React application for **sellers**. Sellers use it to manage their products, process orders, configure shipping, track payouts, and handle returns. Like the admin panel, it is built on the Dashboard SDK and can be fully customized.--## Storefront--The storefront is the **customer-facing** application. It can be built with any frontend technology that consumes the Store API — Next.js, Remix, or any other framework. Mercur provides a ready-made storefront template to start from.--## API Routes--Mercur exposes three sets of HTTP endpoints:--- **Admin API** (`/admin/*`) — Platform administration-- **Vendor API** (`/vendor/*`) — Seller operations-- **Store API** (`/store/*`) — Customer-facing storefront--Each route is composed of a handler, middleware, query configuration, and validators.--## Core Plugin--The core plugin (`@mercurjs/core`) is the main package that contains all of Mercur's marketplace logic — modules, links, workflows, API routes, subscribers, and providers. It is installed as a standard MedusaJS plugin and serves as the foundation that blocks extend.--## Modules--Modules encapsulate data models and business logic for a specific domain. Each module is self-contained with its own models, service, and migrations. Mercur's marketplace modules include Seller, Commission, Payout, Marketplace, Requests, Reviews, and others. They communicate through [Links](#links) and [Workflows](#workflows), never directly.--## Links--Links define relationships between Mercur modules and Medusa core entities without modifying either side. For example, a link connects a Medusa Product to a Mercur Seller — this is how the system knows which seller owns which product.--## Workflows--Workflows coordinate multi-step operations across modules. They support compensation (automatic rollback on failure) and hooks (extension points for custom logic). For example, the checkout workflow splits a cart by seller, creates separate orders, allocates payments, and calculates commissions — all as a single atomic operation.--## Blocks--Blocks are the unit of distribution in Mercur. Each block is a self-contained piece of functionality — a module, a workflow, an API route, a link, or a UI extension. When you install a block, the CLI copies its source code directly into your project. You own every line and can modify anything.--## Registry--A registry is a collection of blocks available for installation. The official Mercur registry (`@mercurjs`) provides all marketplace blocks. You can also create and host [custom registries](/developer-guide/cli#custom-registries) for your own blocks.--## CLI--The [Mercur CLI](/developer-guide/cli) (`@mercurjs/cli@latest`) manages your project — scaffolding from templates, installing blocks, searching registries, generating types, and diffing local changes against upstream versions.--## Dashboard SDK--The [Dashboard SDK](/developer-guide/extending-panels) (`@mercurjs/dashboard-sdk`) is a Vite plugin shared by the admin panel and vendor portal. It provides file-based routing, automatic navigation generation, component overrides, and i18n support.--## API Client--The [API Client](/developer-guide/api-client) (`@mercurjs/client`) provides type-safe access to all Mercur API endpoints. Types are generated from your actual API routes using `bunx @mercurjs/cli@latest codegen`, so requests and responses are always in sync with your backend.diff --git a/apps/docs/how-to-guides/medusa-cloud.mdx b/apps/docs/how-to-guides/medusa-cloud.mdxdeleted file mode 100644index 34fae3b56..000000000--- a/apps/docs/how-to-guides/medusa-cloud.mdx+++ /dev/null@@ -1,130 +0,0 @@-----title: "Medusa Cloud deployment"-description: "Deploy Mercur — backend, admin panel, and vendor panel — on Medusa Cloud."------## Introduction--[Medusa Cloud](https://cloud.medusajs.com) is a dedicated hosting service for Medusa-based applications. It automatically detects changes on your repository, pulls and builds the code, and provisions a database, Redis, and file storage.--Head to the [Medusa Cloud signup page](https://cloud.medusajs.com/signup) to get started. After registration is complete and your account is active, authorize the Medusa Cloud GitHub app in your organization or personal account.--<Info>- A single Medusa Cloud deployment serves everything: the backend API, the- **admin panel** at `/dashboard`, and the **vendor panel** at `/seller`. The- panels are built together with the backend and served from the same origin —- no separate hosting is needed.-</Info>--## How it works--The `basic` template wires this up out of the box:--- During `build`, the API package builds both panels and bundles their production- output into the Medusa build artifact (`.medusa/server/dashboards/<name>`), so hosts- that deploy only the artifact — like Medusa Cloud — carry the panels with it- (`packages/api/scripts/bundle-dashboards.mjs`).-- At runtime, the `admin-ui` and `vendor-ui` modules detect the bundled builds and- serve them statically at their configured paths (`/dashboard`, `/seller`).-- The panels bake the backend URL at build time from the `MERCUR_BACKEND_URL`- environment variable. Because they are served from the backend's own origin, all- API calls are same-origin — no cross-site cookie or CORS gymnastics.--Medusa Cloud builds the monorepo with `NODE_ENV=production`. In that mode the build-**fails fast** when `MERCUR_BACKEND_URL` is missing instead of shipping panels that-silently point at `http://localhost:9000` — so make sure to set it as described below.--## Prerequisites--- A Mercur project created with [`@mercurjs/cli`](/getting-started/installation) and pushed to a GitHub repository-- A [Medusa Cloud](https://cloud.medusajs.com) account with the GitHub app authorized-- API keys for any third-party services you plan to use (Stripe, Resend, Algolia, etc.)--## Setup--1. From the Medusa Cloud dashboard, choose **Import your existing repository into the Cloud** (the Mercur project lives in your own GitHub repo, not in the bundled DTC/B2B starters).- -2. On the **Repository** step, make sure the Medusa Cloud GitHub app is installed, pick your Mercur repository from the list, and click **Continue**.- -3. On the **Configure** step, fill in:- - **Project name** and **Custom subdomain**. The subdomain determines your backend URL (`https://<subdomain>.medusajs.app`) — you will reference it in the environment variables below.- - **Region** closest to your users.- - **Medusa root directory**: `/packages/api`.- - **Initial user** — the first admin email and password.-- Leave **Storefront root directory** empty — the Mercur basic template doesn't ship a storefront.- -4. Scroll down to **Environment variables** and add the **Backend Environment Variables** below. Medusa Cloud provisions the database, Redis, and file storage automatically, so you don't need to set those.- --Only the following variables should be set:--```bash-# Panels (build-time): the deployed backend origin, baked into the admin and-# vendor panels. Enable the **Build** toggle for this variable — the panels-# read it while they are being built, not at runtime.-MERCUR_BACKEND_URL=https://<your-subdomain>.medusajs.app--# CORS — the panels are served from the backend's own origin, so it is enough-# to list that origin (plus your storefront URL in STORE_CORS, if you have one)-STORE_CORS=https://<your-subdomain>.medusajs.app-ADMIN_CORS=https://<your-subdomain>.medusajs.app-VENDOR_CORS=https://<your-subdomain>.medusajs.app-AUTH_CORS=https://<your-subdomain>.medusajs.app--# Secrets-JWT_SECRET=-COOKIE_SECRET=--# Vendor panel URL used in seller emails and onboarding flows-MERCUR_VENDOR_URL=https://<your-subdomain>.medusajs.app/seller--# Stripe (customer payments + Mercur payout provider)-STRIPE_API_KEY=-STRIPE_WEBHOOK_SECRET=-STRIPE_PAYOUT_WEBHOOK_SECRET=--# Email (optional, e.g. Resend)-RESEND_API_KEY=-RESEND_FROM_EMAIL=--# Search (optional)-ALGOLIA_APP_ID=-ALGOLIA_API_KEY=-```--<Warning>- `MERCUR_BACKEND_URL` must have the **Build** toggle enabled in the Medusa Cloud- environment-variable settings. Without it, the production build stops with a clear- error rather than baking the localhost default into the panels.-</Warning>--<Info>- For Stripe setup, including which keys go where and how to wire both webhooks,- see the [Stripe Connect integration- guide](/how-to-guides/stripe-connect-integration).-</Info>--5. Click **Create**. The build and deploy process will start and can take a few minutes to complete.--You can change these variables later from the project's environment settings, and switch the deployment branch at any time. Medusa Cloud will automatically pull and rebuild your environment whenever a new commit is pushed to the selected branch. Remember that `MERCUR_BACKEND_URL` is baked into the panels at build time — changing it requires a redeploy.--## After deployment--Once the build succeeds, everything is served from `https://<your-subdomain>.medusajs.app`:--| Surface | URL |-| ------------ | ------------------------------------------------ |-| Backend API | `https://<your-subdomain>.medusajs.app` |-| Admin panel | `https://<your-subdomain>.medusajs.app/dashboard` |-| Vendor panel | `https://<your-subdomain>.medusajs.app/seller` |--Open the admin panel and sign in with the **Initial user** you configured in the setup step. If a panel shows a "Dashboard not built" page, the bundling step did not run — check the deployment's build logs for output from `bundle-dashboards`.--<Tip>- Prefer hosting the panels separately (for example on Vercel or Netlify)? That- still works: deploy `apps/admin` and `apps/vendor` as static Vite builds, set- `MERCUR_BACKEND_URL` (or `VITE_MERCUR_BACKEND_URL`) to the backend URL at build- time, and add the panel URLs to the backend's `ADMIN_CORS`, `VENDOR_CORS`, and- `AUTH_CORS` variables.-</Tip>diff --git a/apps/docs/how-to-guides/stripe-connect-integration.mdx b/apps/docs/how-to-guides/stripe-connect-integration.mdxdeleted file mode 100644index de42b5cd9..000000000--- a/apps/docs/how-to-guides/stripe-connect-integration.mdx+++ /dev/null@@ -1,362 +0,0 @@-----title: "Stripe Connect Integration"-description: "Set up Stripe Connect for marketplace payments and seller payouts — from Stripe Dashboard configuration to the full end-to-end payment lifecycle."------A Mercur marketplace needs **two** Stripe integrations working together. The first is the standard Medusa payment provider, which charges customers at checkout. The second is the Mercur payout provider, which transfers funds from the platform to sellers after orders are fulfilled.--This guide covers both — setting up Stripe, configuring both providers, wiring up webhooks, and understanding how money flows from customer to seller.--<Info>- Mercur uses Stripe's [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers) model. The platform collects the full payment from the customer, then creates transfers to each seller's connected account. This makes the platform the **Merchant of Record**, responsible for VAT, disputes, and chargebacks.-</Info>--## Prerequisites--- A [Stripe account](https://dashboard.stripe.com) with Connect enabled-- Stripe Secret API key and Publishable API key-- A running Mercur project ([installation guide](/getting-started/installation))-- Node.js 20+--## Architecture overview--The payment lifecycle in a Mercur marketplace flows through two distinct Stripe integrations:--```mermaid-flowchart LR- C[Customer] -->|PaymentIntent| P[Platform Stripe Account]- P -->|Transfer| S1[Seller A Connected Account]- P -->|Transfer| S2[Seller B Connected Account]- S1 -->|Payout| B1[Seller A Bank]- S2 -->|Payout| B2[Seller B Bank]-```--The two integrations serve different purposes:--| Integration | Package | Purpose | Webhook endpoint |-|---|---|---|---|-| Customer payments | `@medusajs/medusa/payment-stripe` | Charges customers at checkout | `/hooks/payment/stripe_stripe` |-| Seller payouts | `@mercurjs/payout-stripe-connect` | Transfers funds to sellers | `/hooks/payout` |--## Stripe Dashboard setup--### 1. Enable Connect--In your Stripe Dashboard, go to **Settings → Connect settings** and enable Connect. If you're starting fresh, Stripe will walk you through an onboarding flow to activate your platform account.--### 2. Find your API keys--Go to **Developers → API keys**. You'll need:--- **Secret key** — starts with `sk_test_` (test mode) or `sk_live_` (production)-- **Publishable key** — starts with `pk_test_` or `pk_live_`--### 3. Set environment variables--Add the following to your `.env` file:--```bash-STRIPE_API_KEY=sk_test_...-STRIPE_WEBHOOK_SECRET=whsec_...-STRIPE_PAYOUT_WEBHOOK_SECRET=whsec_...-```--## Configure Medusa payment provider--The Medusa payment provider handles customer-facing charges. Add it to your `medusa-config.ts`:--```ts-module.exports = defineConfig({- // ...- modules: [- {- resolve: "@medusajs/medusa/payment",- options: {- providers: [- {- resolve: "@medusajs/medusa/payment-stripe",- id: "stripe",- options: {- apiKey: process.env.STRIPE_API_KEY,- webhookSecret: process.env.STRIPE_WEBHOOK_SECRET,- capture: false, // Use manual capture for marketplace flow- automatic_payment_methods: true,- },- },- ],- },- },- ],-})-```--### Provider options--| Option | Type | Description |-|--------|------|-------------|-| `apiKey` | `string` | Stripe secret API key |-| `webhookSecret` | `string` | Signing secret for the payment webhook endpoint |-| `capture` | `boolean` | Set to `false` for manual capture (required for marketplace split flow) |-| `automatic_payment_methods` | `boolean` | Enable Stripe's automatic payment method detection |-| `paymentDescription` | `string` | Optional description shown on customer's bank statement |--<Info>- After configuring the provider, enable Stripe as a payment method in your Admin Panel: **Settings → Regions → Edit region → Payment providers → Stripe**.-</Info>--## Configure Mercur payout provider--The payout provider handles transfers from the platform to seller connected accounts. Add it alongside the payment provider in `medusa-config.ts`:--```ts-module.exports = defineConfig({- // ...- modules: [- // ... payment provider above- {- resolve: "@mercurjs/core/modules/payout",- options: {- providers: [- {- resolve: "@mercurjs/payout-stripe-connect",- id: "stripe-connect",- options: {- apiKey: process.env.STRIPE_API_KEY,- webhookSecret: process.env.STRIPE_PAYOUT_WEBHOOK_SECRET,- accountValidation: {- detailsSubmitted: true,- chargesEnabled: true,- payoutsEnabled: true,- noOutstandingRequirements: true,- requiredCapabilities: [],- },- },- },- ],- },- },- ],-})-```--### Payout provider options--| Option | Type | Default | Description |-|--------|------|---------|-------------|-| `apiKey` | `string` | — | Stripe secret API key |-| `webhookSecret` | `string` | — | Signing secret for the payout webhook endpoint |-| `accountValidation` | `object` | See below | Controls when a connected account is considered `ACTIVE` |--### Account validation options--These options determine what conditions a Stripe connected account must meet before Mercur marks it as `ACTIVE` and allows payouts:--| Option | Type | Default | Description |-|--------|------|---------|-------------|-| `detailsSubmitted` | `boolean` | `true` | Require Stripe to mark onboarding details as submitted |-| `chargesEnabled` | `boolean` | `true` | Require the account to be enabled for charges |-| `payoutsEnabled` | `boolean` | `true` | Require the account to be enabled for payouts |-| `noOutstandingRequirements` | `boolean` | `true` | Treat any pending Stripe requirements as a restricted account |-| `requiredCapabilities` | `string[]` | `[]` | Require specific Stripe capabilities to be active (e.g. `["card_payments", "transfers"]`) |--### Payout module options--The payout module itself accepts timing options that control the capture and payout pipeline:--| Option | Type | Default | Description |-|--------|------|---------|-------------|-| `disabled` | `boolean` | `false` | Disable automatic capture checks and daily payout jobs |-| `authorizationWindowMs` | `number` | `604800000` (7 days) | How long a payment authorization remains valid |-| `sellerActionWindowMs` | `number` | `259200000` (72 hours) | How long sellers have to accept/fulfill before cancellation |-| `captureSafetyBufferMs` | `number` | `86400000` (24 hours) | Safety margin before authorization expiry — capture happens before `authorization expiry - buffer` |-| `requiredFulfillmentStatus` | `string` | `"fulfilled"` | Minimum fulfillment status before an order is eligible for capture |--## Set up webhooks--You need **two separate webhook endpoints** in Stripe — one for payment events, one for payout events.--<Warning>- These are two distinct webhook endpoints, each with its own signing secret. Do not combine them into a single endpoint.-</Warning>--### Payment webhook (Medusa)--In the Stripe Dashboard, go to **Developers → Webhooks → Add endpoint**.--- **Endpoint URL**: `https://{your-backend-url}/hooks/payment/stripe_stripe`-- **Events to subscribe to**:- - `payment_intent.succeeded`- - `payment_intent.amount_capturable_updated`- - `payment_intent.payment_failed`- - `charge.refunded`--Copy the signing secret and set it as `STRIPE_WEBHOOK_SECRET` in your `.env`.--### Payout webhook (Mercur)--Add a second webhook endpoint in the Stripe Dashboard.--- **Endpoint URL**: `https://{your-backend-url}/hooks/payout`-- **Events to subscribe to**:- - `account.updated`--Copy the signing secret and set it as `STRIPE_PAYOUT_WEBHOOK_SECRET` in your `.env`.--## How the payment flow works--Here's a concrete example. A customer buys items from two sellers:--- **Seller A**: €40 (product)-- **Seller B**: €30 (product)-- **Shipping**: €10-- **Cart total**: €80--### Step 1 — Authorize payment--At checkout, a single `PaymentIntent` is created for €80 with `capture_method: "manual"`. The customer authenticates once (SCA-compliant). No money moves yet — the funds are held on the customer's card.--### Step 2 — Split orders--Mercur's `completeCartWithSplitOrdersWorkflow` groups items by seller and creates separate orders — one for Seller A (€40) and one for Seller B (€30), plus shipping allocation.--### Step 3 — Seller acceptance and fulfillment--Each seller reviews and fulfills their order through the Vendor Portal. The payout module's `sellerActionWindowMs` (default: 72 hours) defines how long sellers have to act.--### Step 4 — Capture payment--Once orders meet the `requiredFulfillmentStatus` (default: `"fulfilled"`), the platform captures the authorized payment. The capture-check job runs automatically and respects the `captureSafetyBufferMs` to ensure capture happens before authorization expiry.--<Warning>- Card authorizations typically expire after **7 days**. The default configuration gives sellers 72 hours to fulfill, with a 24-hour safety buffer before capture. If your business requires longer seller action windows, consider whether the 7-day authorization window is sufficient.-</Warning>--### Step 5 — Commission calculation and transfers--After capture, Mercur calculates commission for each order and creates Stripe Transfers for the net amounts:--```-Seller A net = €40 - commission-Seller B net = €30 - commission-```--Each transfer is linked to the original charge via `source_transaction` and grouped by `transfer_group` (the order ID).--### Step 6 — Bank payouts--Stripe automatically pays out connected account balances to sellers' bank accounts on the configured payout schedule. Mercur tracks payout status changes via the `account.updated` webhook.--## Seller onboarding--When a seller creates a payout account, the following lifecycle begins:--```-PENDING → (Stripe onboarding) → ACTIVE- ↓- RESTRICTED → ACTIVE (remediation)- ↓- REJECTED (permanent)-```--1. **Account creation** — Mercur calls `stripe.accounts.create({ type: "express" })`, creating a Stripe Express connected account. The payout account starts in `PENDING` status.--2. **Onboarding link** — The seller receives a Stripe-hosted onboarding URL via `stripe.accountLinks.create()`. They complete identity verification, bank account setup, and any required compliance steps directly on Stripe.--3. **Webhook activation** — When the seller completes onboarding, Stripe sends an `account.updated` webhook. The provider evaluates the account against the `accountValidation` options and transitions the status:- - All validation checks pass → `ACTIVE`- - Missing requirements or disabled reason → `RESTRICTED`- - Disabled reason starts with `rejected.` → `REJECTED`--4. **Ongoing monitoring** — Stripe may send additional `account.updated` events if requirements change. The provider re-evaluates and updates the status accordingly.--For more details on payout accounts, balances, and transactions, see [Payout](/core-concepts/payout).--## Transfers vs payouts--Stripe uses two distinct concepts for moving money, and it's important to understand the difference:--| | Transfer | Payout |-|---|---|---|-| **What it does** | Moves funds from platform balance to connected account balance | Moves funds from connected account balance to seller's bank account |-| **Speed** | Instant ledger movement | 1–3 business days (varies by country) |-| **Status lifecycle** | None — transfers are immediate | `pending` → `in_transit` → `paid` / `failed` |-| **Who triggers it** | Mercur (via `stripe.transfers.create()`) | Stripe (on the connected account's payout schedule) |-| **Mercur tracking** | Transfer created with status `PAID` immediately | Status tracked via webhooks |--When Mercur's `createPayout` method is called, the Stripe Connect provider creates a **Transfer** (platform → connected account). The actual bank payout (connected account → bank) happens automatically on Stripe's schedule.--## Refunds and reversals--Refunding a charge does **not** automatically reverse the associated transfers. These are two separate operations:--1. **Refund the PaymentIntent** — Returns funds to the customer's payment method-2. **Reverse the Transfer(s)** — Claws back funds from the connected account(s)--For a full refund of a multi-seller order, you would need to reverse each seller's transfer individually. For partial refunds, you need to calculate how much to reverse from each seller based on which items are being refunded.--<Info>- Refund and transfer reversal orchestration is an area where custom workflow logic may be needed depending on your business rules. See Stripe's documentation on [reversing transfers](https://docs.stripe.com/connect/separate-charges-and-transfers#reverse-transfers) for the API details.-</Info>--## EU/EEA considerations--### Merchant of Record--Using Separate Charges and Transfers makes the platform the Merchant of Record. This means:--- The platform collects and remits VAT-- The platform handles consumer disputes and chargebacks-- The platform is responsible for PSD2 compliance--### Strong Customer Authentication (SCA)--SCA is enforced at **authorization time**, not capture time. Since the customer authenticates once during checkout, no additional SCA step is needed when the platform captures later. The single authorization at checkout satisfies the SCA requirement for the entire order.--### Authorization windows--Card authorizations in Europe typically last **7 days**. Design your seller acceptance workflow to complete well within this window. The payout module options give you control over the timing:--```ts-{- resolve: "@mercurjs/core/modules/payout",- options: {- authorizationWindowMs: 7 * 24 * 60 * 60 * 1000, // 7 days- sellerActionWindowMs: 72 * 60 * 60 * 1000, // 72 hours- captureSafetyBufferMs: 24 * 60 * 60 * 1000, // 24 hours- // ...providers- },-}-```--## Testing--### Test mode--Use Stripe test mode keys (`sk_test_`, `pk_test_`) during development. All connected accounts and payments created in test mode are isolated from production.--**Test card number**: `4242 4242 4242 4242` (any future expiry, any CVC)--### Webhook forwarding with Stripe CLI--Since webhooks need to reach your local machine during development, use the [Stripe CLI](https://docs.stripe.com/stripe-cli) to forward events. You need **two separate listeners** — one for each webhook endpoint:--```bash-# Terminal 1 — Payment webhooks-stripe listen --forward-to localhost:9000/hooks/payment/stripe_stripe--# Terminal 2 — Payout webhooks-stripe listen --forward-to localhost:9000/hooks/payout-```--<Tip>- Each `stripe listen` process outputs its own webhook signing secret. Use these as your `STRIPE_WEBHOOK_SECRET` and `STRIPE_PAYOUT_WEBHOOK_SECRET` respectively during local development.-</Tip>--### Testing the full flow--1. Create a seller and complete Stripe's test onboarding flow-2. Add products from the seller to a cart-3. Complete checkout using the test card-4. Verify orders are split by seller in the Admin Panel-5. Fulfill the orders through the Vendor Portal-6. Confirm transfers appear in the Stripe Dashboard under the connected accountdiff --git a/apps/docs/migrations/from-1-x-to-2-0.mdx b/apps/docs/migrations/from-1-x-to-2-0.mdxdeleted file mode 100644index 1917ea3fe..000000000--- a/apps/docs/migrations/from-1-x-to-2-0.mdx+++ /dev/null@@ -1,152 +0,0 @@-----title: From 1.x to 2.0-description: What changed and how to port your existing Mercur 1.x code to 2.0.------# Migrating from 1.x to 2.0--Start with a working 2.0 project (see [Installation](/getting-started/installation)). This guide covers what to change when porting your 1.x code.--<Note>-**Using version older than 1.4.0?** Your admin panel code is inside the backend repo (not a separate app). When scanning for custom admin code to port, look there instead of `apps/admin/`. Everything else in this guide applies identically.-</Note>--## Package Mapping--| 1.x Package | 2.0 Equivalent |-|-------------|----------------|-| `@mercurjs/b2c-core` | `@mercurjs/core` |-| `@mercurjs/commission` | Built into core |-| `@mercurjs/algolia` | Block: `mercurjs add algolia` |-| `@mercurjs/resend` | No 2.0 equivalent — port manually |-| `@mercurjs/payment-stripe-connect` | No 2.0 equivalent — port manually |-| `@mercurjs/stripe-tax-provider` | No 2.0 equivalent — port manually |-| `@medusajs/admin-vite-plugin` | `@mercurjs/dashboard-sdk` |-| `@medusajs/js-sdk` | `@mercurjs/client` |--## Directory Mapping--| 1.x | 2.0 |-|-----|-----|-| `apps/backend/src/*` | `packages/api/src/*` |-| `apps/admin/src/routes/` | `apps/admin/src/pages/` |-| `apps/vendor/src/routes/` | `apps/vendor/src/pages/` |--## What You DON'T Need to Port--Built into core today:--- `seller`-- `payout`-- `commission`--Moved to registry blocks:--- `reviews`-- `requests`-- `wishlist`-- `team-management`-- `algolia`-- `vendor-notifications`-- `vendor-chat`-- `product-import-export`--Install these blocks instead of porting their 1.x package code.--## Current Migration Exceptions--These areas do not currently have full 1.x parity and should be treated as manual migration work:--- **`TaxCode`** — no 2.0 equivalent today. Port the old logic manually if your project depends on it.-- **`SecondaryCategory`** — no full 1.x parity today. Port manually for now if your project depends on it. Fuller support is planned for a future 2.x release.-- **Product attributes** — the 1.x attribute module is not carried over 1:1. Port manually for now if your project depends on it. Fuller support is planned for a future 2.x release.--## Order Set to Order Group--The 1.x `OrderSet` entity has been renamed to **`OrderGroup`** in 2.0. This is a breaking change that affects database tables, API endpoints, workflow names, event names, and types.--### What changed--| Aspect | 1.x | 2.0 |-|--------|-----|-----|-| Entity / table | `order_set` | `order_group` |-| ID prefix | `os_` | `og_` |-| API endpoints | `/admin/order-sets`, `/store/order-set` | `/admin/order-groups`, `/store/order-groups` |-| Workflows | `getFormattedOrderSetListWorkflow` | `getOrderGroupsListWorkflow`, `getOrderGroupDetailWorkflow` |-| Events | `OrderSetWorkflowEvents` | `OrderGroupWorkflowEvents` |-| Types | `OrderSetDTO` | `OrderGroupDTO` (from `@mercurjs/types`) |--### Removed fields--Two fields that existed on `OrderSet` in 1.x have been **removed** from `OrderGroup`:--- **`payment_collection_id`** — Payment collections are now linked at the individual **order** level, not at the group level. Each per-seller order gets its own link to the cart's payment collection during checkout. To get the payment collection, query the linked orders instead of the group.-- **`sales_channel_id`** — Sales channel information is stored on each individual order, not on the group.--### New computed fields--Two fields are now **computed at query time** (not stored as columns):--- **`seller_count`** — Count of distinct sellers across all linked orders-- **`total`** — Sum of order totals from linked order summaries--### Migration steps--1. Update imports: `OrderSetDTO` → `OrderGroupDTO` (from `@mercurjs/types`)-2. Update API calls: `/order-sets` → `/order-groups`-3. Update workflow references: `getFormattedOrderSetListWorkflow` → `getOrderGroupsListWorkflow`-4. Update event listeners: `OrderSetWorkflowEvents` → `OrderGroupWorkflowEvents`-5. If you used `payment_collection_id` or `sales_channel_id` from the order set, retrieve these from the individual orders instead (via the `order_group_order` link)--See [Order Groups](/core-concepts/order-groups) for the full 2.0 data model and API reference.--## Porting Custom Backend Code--### Modules--Copy to `packages/api/src/modules/`, register in `medusa-config.ts`. Update imports from `@mercurjs/b2c-core` to `@mercurjs/core`.--### Workflows--Copy to `packages/api/src/workflows/<entity>/`. Don't create barrel `index.ts` files — conflicts with block installation.--### API Routes--Copy to `packages/api/src/api/`. Type both generics — codegen reads these:--```typescript-export const GET = async (- req: AuthenticatedMedusaRequest<BodyType>,- res: MedusaResponse<ResponseType>-) => { ... }-```--Run `bunx @mercurjs/cli@latest codegen` after adding routes.--### Links and Subscribers--Copy to `packages/api/src/links/` and `src/subscribers/`. Don't duplicate links that core already provides (seller↔product, seller↔order, etc.).--### Custom Providers--Copy to `packages/api/src/providers/`. Two required changes:--```typescript-// medusa-config.ts — must use ./src/ prefix-resolve: './src/providers/my-provider'--// provider index.ts — must import from framework/utils-import { Modules, ModuleProvider } from "@medusajs/framework/utils"-```--## Porting Custom Dashboard Code--Only if you have custom pages not covered by core-admin/vendor.--| Old import | New import |-|-----------|------------|-| `@medusajs/js-sdk` | `@mercurjs/client` |-| `@custom-types/*` | `@mercurjs/types` |-| `@hooks/*`, `@components/*`, `@lib/*` | Keep local, or `@mercurjs/dashboard-shared` if the symbol exists there |--Move pages from `src/routes/` to `src/pages/` with `export default`.\ No newline at end of filediff --git a/apps/docs/migrations/from-2-0-to-2-1.mdx b/apps/docs/migrations/from-2-0-to-2-1.mdxdeleted file mode 100644index 9e0187fa0..000000000--- a/apps/docs/migrations/from-2-0-to-2-1.mdx+++ /dev/null@@ -1,105 +0,0 @@-----title: From 2.0 to 2.1-description: What changed in Mercur 2.1 and how to upgrade an existing 2.0.x project.------# Migrating from 2.0 to 2.1--Mercur `2.1.1` is the first stable release of the 2.x line after `2.0.2`. The only required change is a package rename. Everything else is handled by `bun run medusa db:migrate`.--If you are starting fresh, follow [Installation](/getting-started/installation) instead — new projects already use the 2.1 names.--## Breaking change: `@mercurjs/core-plugin` → `@mercurjs/core`--The Medusa plugin previously published as `@mercurjs/core-plugin` is now published as **`@mercurjs/core`**. The package contents are the same; only the name changed.--This affects:--- `package.json` — installed package name-- `medusa-config.ts` — every `resolve: "@mercurjs/core-plugin/..."` value-- Any source imports in `packages/api/src/**`--### Step 1 — swap the dependency--```bash-bun remove @mercurjs/core-plugin-bun add @mercurjs/[email protected]-```--If you use npm/yarn/pnpm, use the equivalent commands for your package manager.--Or edit `packages/api/package.json` by hand — replace the `@mercurjs/core-plugin` entry under `dependencies` with `@mercurjs/core` at the matching version, then run your installer:--```jsonc-// before-"dependencies": {- "@mercurjs/core-plugin": "2.0.2"-}--// after-"dependencies": {- "@mercurjs/core": "2.1.1"-}-```--```bash-bun install-```--### Step 2 — replace strings in config and source--In `packages/api/medusa-config.ts` and anywhere under `packages/api/src/**`, replace every occurrence of `@mercurjs/core-plugin` with `@mercurjs/core`. A repo-wide find-and-replace is safe — there are no other valid uses of the old name.--```ts-// before-{- resolve: "@mercurjs/core-plugin/modules/seller",-}--// after-{- resolve: "@mercurjs/core/modules/seller",-}-```--```ts-// before-import { createSellerWorkflow } from "@mercurjs/core-plugin/workflows"--// after-import { createSellerWorkflow } from "@mercurjs/core/workflows"-```--The same applies to:--- `@mercurjs/core-plugin/modules/<module>`-- `@mercurjs/core-plugin/workflows`-- `@mercurjs/core-plugin/links`-- `@mercurjs/core-plugin/api`--### Step 3 — reinstall and rebuild--```bash-bun install-bun run build-```--If TypeScript still complains about `@mercurjs/core-plugin`, you missed an import. Re-run the find-and-replace.--### Step 4 — refresh installed blocks--If your project installed registry blocks (`mercurjs add reviews`, `mercurjs add requests`, etc.) on a 2.0.x version, the local copies still reference `@mercurjs/core-plugin`. Either:--- Run the same find-and-replace inside `packages/api/src/` (registry blocks live there once installed)--## Database migrations--Mercur 2.1 ships several new migrations on the `seller` module. All are non-destructive. Run:--```bash-bun run medusa db:migrate-```--## Full changelog--The complete 2.1 changelog is published with the [GitHub release](https://github.com/mercurjs/mercur/releases/tag/v2.1.1).diff --git a/apps/docs/migrations/overview.mdx b/apps/docs/migrations/overview.mdxdeleted file mode 100644index 45390e9c5..000000000--- a/apps/docs/migrations/overview.mdx+++ /dev/null@@ -1,58 +0,0 @@-----title: Migration Overview-description: Understand what changes between Mercur 1.x and 2.0 and how to migrate your project.------# Migration Overview--Mercur 2.0 replaces the monolithic plugin architecture (`@mercurjs/b2c-core`) with a block-based model (`@mercurjs/core` + registry blocks).--This guide is about **porting your existing 1.x code to a 2.0 project**. For setting up a fresh 2.0 project, see [Installation](/getting-started/installation).--<Tip>-If you're using an AI Agent/IDE (Claude Code, Cursor, or similar), your project includes a `migration-guide` skill that can analyze your 1.x Mercur project and walk you through the migration step by step.-</Tip>--## What Replaced What--| 1.x | 2.0 |-|-------|--------|-| `@mercurjs/b2c-core` (monolithic) | `@mercurjs/core` — all core modules built in |-| `@mercurjs/commission` (separate) | Built into core |-| `@mercurjs/algolia`, reviews, requests | Registry blocks (`mercurjs add ...`) |-| `@medusajs/admin-vite-plugin` | `@mercurjs/dashboard-sdk` (virtual modules) |-| `@medusajs/js-sdk` (manual hooks) | `@mercurjs/client` (generated typed client) |-| Custom admin/vendor pages | `@mercurjs/admin` / `@mercurjs/vendor` — complete panels out of the box |-| `apps/backend/` | `packages/api/` |-| `src/routes/` (admin) | `src/pages/` (file-based routing) |-| Yarn + Turbo | bun (recommended) |--## What Didn't Change--- MedusaJS v2 foundation (modules, workflows, links, subscribers, API routes)-- Data model patterns (MikroORM, service layer)-- Environment variables (`DATABASE_URL`, CORS, secrets — all the same)--## What You Need to Migrate--**Most users don't need to migrate much.** Core-plugin and the official registry blocks cover most standard marketplace functionality. Core-admin/vendor panels provide 34+ pages out of the box.--You only need to port:-- **Custom modules** — business-specific modules not covered by core or blocks-- **Custom workflows and routes** — your own endpoints and business logic-- **Custom dashboard pages** — only if you have domain-specific pages not in core-admin/vendor--<Warning>-Current migration exceptions:--- `TaxCode` does not have a 2.0 equivalent today and requires manual migration.-- `SecondaryCategory` does not yet have full 1.x parity and may require manual migration for now.-- The 1.x product attribute system is not carried over 1:1, so product attributes may require manual migration for now.--See [From 1.x to 2.0](/migrations/from-1-x-to-2-0) for the full migration guidance and current status.-</Warning>--## Next Steps--- [From 2.0 to 2.1](/migrations/from-2-0-to-2-1) — package rename (`@mercurjs/core-plugin` → `@mercurjs/core`) and a `db:migrate` step-- [From 1.x to 2.0](/migrations/from-1-x-to-2-0) — full guide for porting an existing 1.x project\ No newline at end of filediff --git a/apps/docs/rc/learn/blocks.mdx b/apps/docs/rc/learn/blocks.mdxdeleted file mode 100644index 199382fe4..000000000--- a/apps/docs/rc/learn/blocks.mdx+++ /dev/null@@ -1,99 +0,0 @@-----title: "Blocks"-description: "Self-contained pieces of marketplace functionality that get copied into your project as source code."------Blocks are the unit of distribution in Mercur. Each block is a self-contained feature — a reviews system, a wishlist, product import/export — that you install directly into your project. Unlike packages, blocks are copied as source code. You own every file and can modify anything.--## Installing blocks--```bash-bunx @mercurjs/cli@rc add reviews-bunx @mercurjs/cli@rc add wishlist product-import-export-```--The CLI fetches the block from the [registry](/rc/learn/registry), resolves dependencies, transforms imports to match your project's path aliases, and copies the files into the right directories.--## What's inside a block--A block can contain any combination of:--| Type | What it is | Example |-|------|-----------|---------|-| **Modules** | Data models and business logic | Review model, wishlist service |-| **Workflows** | Multi-step business processes | Create review, export products |-| **API Routes** | HTTP endpoints | `GET /store/reviews`, `POST /vendor/products/import` |-| **Links** | Relationships between modules | Product-review link, customer-wishlist link |-| **Vendor extensions** | Vendor portal pages and components | Reviews list page, import drawer |-| **Admin extensions** | Admin panel pages and components | Reviews moderation page |--For example, the `reviews` block includes a module (data model + service), workflows (create/update/delete), API routes (store, vendor, admin), links (product-review, seller-review), and UI pages for both the vendor portal and admin panel.--## Block structure--Blocks follow a consistent directory convention:--```-reviews/-├── modules/reviews/ # Data model, service, types-├── workflows/review/ # Steps and workflow definitions-├── links/ # product-review, seller-review, etc.-├── api/-│ ├── admin/reviews/ # Admin API routes-│ ├── vendor/reviews/ # Vendor API routes-│ └── store/reviews/ # Store API routes-├── vendor/pages/reviews/ # Vendor portal UI-└── admin/pages/reviews/ # Admin panel UI-```--Files are placed into your project based on the aliases in your `blocks.json`:--```json blocks.json-{- "aliases": {- "api": "packages/api/src",- "vendor": "apps/vendor/src",- "admin": "apps/admin/src"- }-}-```--## Post-installation--After adding a block, the CLI shows setup instructions. Typically you need to:--1. **Register the module** in `medusa-config.ts`-2. **Add middlewares** to your `api/middlewares.ts`-3. **Run migrations** with `bunx medusa db:generate` and `bunx medusa db:migrate`-4. **Regenerate types** with `bunx @mercurjs/cli@rc codegen`--## Updating blocks--Check for changes against the registry:--```bash-bunx @mercurjs/cli@rc diff reviews-```--If there are updates you want, re-install with the overwrite flag:--```bash-bunx @mercurjs/cli@rc add reviews --overwrite-```--Since blocks are source code in your project, you control when and how updates are applied.--## Available blocks--Search the registry to see what's available:--```bash-bunx @mercurjs/cli@rc search-bunx @mercurjs/cli@rc search --query wishlist-```--View details about a specific block:--```bash-bunx @mercurjs/cli@rc view reviews-```diff --git a/apps/docs/rc/learn/installation.mdx b/apps/docs/rc/learn/installation.mdxdeleted file mode 100644index 33a630bc5..000000000--- a/apps/docs/rc/learn/installation.mdx+++ /dev/null@@ -1,117 +0,0 @@-----title: "Installation"-description: "Install Mercur and set up your marketplace project."------## Requirements--- [Node.js v20+](https://nodejs.org/en/download) (LTS version)-- [Bun v1.3+](https://bun.sh) (recommended package manager)-- [Git](https://git-scm.com/downloads)-- PostgreSQL v14+--<Tip>- The quickest way to get PostgreSQL running locally is with Docker:-- ```bash- docker run -d --name mercur-postgres \- -e POSTGRES_PASSWORD=postgres \- -p 5432:5432 postgres:16- ```-- Or on macOS with Homebrew:-- ```bash- brew install postgresql@16 && brew services start postgresql@16- ```-</Tip>--## Create a new project--```bash-bun create mercur-app@rc-```--The CLI will prompt for a project name and template, then handle everything automatically:-- downloads the template-- installs dependencies-- creates and migrates the database-- seeds initial data-- starts the development server and opens the admin setup page in your browser--### Options--| Option | Description | Default |-|--------|-------------|---------|-| `--template <template>` | Template to use (`basic` or `plugin`) | prompted |-| `--db-connection-string <string>` | Full PostgreSQL connection string | — |-| `--db-host <host>` | PostgreSQL host | `localhost` |-| `--db-port <port>` | PostgreSQL port | `5432` |-| `--no-deps` | Skip dependency installation | — |-| `--skip-db` | Skip database setup | — |--## Access your marketplace--Once the development server is running, your marketplace is available at:--| Panel | URL |-|-------|-----|-| API | `http://localhost:9000` |-| Admin Panel | `http://localhost:9000/dashboard` |-| Vendor Panel | `http://localhost:9000/seller` |--### Create an admin account--The CLI automatically opens the admin invite page in your browser after setup. Follow the on-screen instructions to create your first admin account.--### Create your first seller--The seed data does not include a seller account. To create one, open the Vendor Panel and register:--```-http://localhost:9000/seller/register-```--Fill in the registration form and complete the onboarding wizard. Once submitted, the seller will appear in the Admin Panel for approval.--## Start the development server--After stopping the server, start it again from your project directory:--```bash-cd <your-project-name>-bun dev-```--## Initialize an existing project--If you have an existing Medusa project, initialize Mercur in it:--```bash-bunx @mercurjs/cli@rc init-```--This creates a `blocks.json` configuration file in your project.--## Add blocks--Install blocks from the registry:--```bash-bunx @mercurjs/cli@rc add <block-name>-```--Browse available blocks:--```bash-bunx @mercurjs/cli@rc search-```--## Run database migrations--After adding blocks that include modules:--```bash-bunx medusa db:generate <module1> <module2> ...-bunx medusa db:migrate-```diff --git a/apps/docs/rc/learn/introduction.mdx b/apps/docs/rc/learn/introduction.mdxdeleted file mode 100644index 113710741..000000000--- a/apps/docs/rc/learn/introduction.mdx+++ /dev/null@@ -1,71 +0,0 @@-----title: "Introduction"-description: "Mercur is an open-source marketplace platform built on MedusaJS with a block-based architecture."------Mercur is an open-core **marketplace platform** built on top of the [Medusa Framework](https://medusajs.com). It follows a block-based architecture — install only the modules, workflows, API routes, and UI extensions you need directly into your project. No black-box dependencies, full code ownership.--## What is Mercur--Medusa provides the underlying commerce engine — products, pricing, carts, orders, fulfillment, and events — while Mercur builds the marketplace domain layer on top of it.--On top of Medusa's core, Mercur introduces marketplace entities and workflows such as sellers, onboarding, product requests, commissions, reviews, return escalations, order splitting, vendor payouts, and dedicated Admin, Vendor, and Storefront APIs.--It comes with three optional interfaces:--- an **Admin Panel** for marketplace operators-- a **Vendor Portal** for seller teams-- a **Storefront** ready for marketplace scenarios--## Why Mercur--### Built on a modern stack--Mercur runs on a modern TypeScript backend powered by the Medusa framework, giving you a proven foundation for products, carts, orders, promotions, and payments. It integrates with technologies like Resend (notifications), Algolia (search), and Stripe Connect (payouts) — all replaceable when needed.--### Block-based architecture--Unlike traditional plugins, Mercur uses a **block-based** approach. Blocks are copied directly into your project via the CLI, giving you full ownership and the ability to modify any piece of code without forking.--### Full extensibility and ownership--Mercur is fully open-core and MIT-licensed. There are no transaction fees, no commercial lock-in, and no constraints on how your marketplace must behave. You own the entire codebase and can host it anywhere.--## Building with AI--Mercur is designed so AI agents can build and extend your marketplace safely — not by generating code from scratch, but by working within structured guardrails.--### How AI works with Mercur--Most AI coding tools generate loose snippets that you have to wire together yourself. Mercur gives AI something better to work with: a system with clear boundaries, typed contracts, and composable units.--Here's what that looks like in practice:--- **Adding features via CLI** — An AI agent can run `bunx @mercurjs/cli@rc add reviews` to install a complete review system — data models, API routes, workflows, and UI — in one command. No guessing at file structure or imports. The CLI handles wiring automatically.-- **Extending workflows without rebuilding them** — Need custom logic when an order is placed? AI can hook into the existing `complete-cart-with-split-orders` workflow and inject a step — without rewriting the entire cart flow. Medusa's workflow hooks make this safe and predictable.-- **Generating typed integrations** — AI reads the generated route types from `bunx @mercurjs/cli@rc codegen` and produces API calls that are correct by construction. No hallucinated endpoints, no wrong payloads — the types are the source of truth.-- **Building UI pages** — AI can scaffold an admin or vendor page by creating a file in `src/routes/`. The dashboard SDK picks it up automatically through file-based routing. No manual route registration, no config files to update.-- **Modifying blocks it can diff** — AI can compare local code against the registry with `bunx @mercurjs/cli@rc diff`, understand what changed, and make targeted modifications instead of blind overwrites.--### Connect your AI tools--To start building with AI, connect your environment to Mercur's knowledge base:--- **[Building with AI](/rc/resources/ai/overview)** — How Mercur bundles version-matched docs into your project so agents build from accurate APIs, not stale training data-- **[LLMs](/rc/resources/ai/llms)** — Feed the full Mercur documentation to any LLM via `llms.txt`-- **[MCP Server](/rc/resources/ai/mcp)** — Let your AI tool search Mercur docs in real time (Cursor, VS Code, Claude, Claude Code)--### Why this matters--Traditional commerce platforms give AI no structure to reason about. The result is generated code that looks plausible but breaks in production — wrong API shapes, missing relationships, incompatible data models.--Mercur solves this with:--- **Typed API Client** — API specifications shared between server and client. AI reads real types, not documentation that may be outdated.-- **Block Registry** — Features are discrete, well-defined units. AI can inspect what a block contains before installing it and verify the result after.-- **Monorepo** — Backend, admin, vendor, and shared packages live in one workspace. AI has full context without jumping between repositories.-- **Core Workflows** — Cart, orders, pricing, and vendor logic are exposed as structured steps. AI extends them through hooks rather than patching source code.-- **Dashboard SDK** — File-based routing and virtual modules mean AI adds pages and components by creating files in the right place. The SDK handles registration.-- **Marketplace Payments** — Payout providers follow a pluggable interface. AI can implement a new provider by conforming to the contract, not by reverse-engineering Stripe integration code.--The result: AI agents can compose real marketplace systems — not just write code, but add capabilities, extend business logic, and evolve your architecture with guardrails that prevent mistakes.diff --git a/apps/docs/rc/learn/order-groups.mdx b/apps/docs/rc/learn/order-groups.mdxdeleted file mode 100644index 93fc62f15..000000000--- a/apps/docs/rc/learn/order-groups.mdx+++ /dev/null@@ -1,114 +0,0 @@-----title: "Order Groups"-description: "How multi-seller checkout creates order groups — the container that ties a single cart to multiple seller orders."------An order group is a container created during checkout when a customer buys from multiple sellers. It groups the individual per-seller orders that originate from a single cart, giving customers and admins a unified view of what was purchased.--## Data model--| Field | Type | Description |-|-------|------|-------------|-| `id` | `text` | Unique identifier (prefix `og_`) |-| `display_id` | `serial` | Auto-incrementing human-readable ID |-| `customer_id` | `text` | The customer who placed the order (nullable) |-| `cart_id` | `text` | The cart this order group originated from |-| `seller_count` | `number` | Number of distinct sellers in the group (computed) |-| `total` | `bigNumber` | Sum of all order totals in the group (computed) |--<Info>- `seller_count` and `total` are **computed fields** — they are calculated from linked orders at query time, not stored as columns. `seller_count` is the count of distinct sellers across all orders in the group, and `total` is the sum of each order's `current_order_total` from the order summary.-</Info>--## Relationships--Order groups connect to other entities through two links:--### Cart (read-only)--Links the order group back to its originating cart via the `cart_id` field. This is a read-only link — carts are immutable after checkout.--```-order_group.cart_id → cart.id-```--### Orders (one-to-many)--Links the order group to multiple orders through a join table `order_group_order`. Each order in the group belongs to a different seller.--```-order_group ←→ order (via order_group_order)-```--## How order groups are created--Order groups are created automatically during checkout by the `completeCartWithSplitOrdersWorkflow`. This is what happens when a customer completes a cart containing products from multiple sellers:--1. **Lock** — The workflow acquires a lock on the cart to prevent double-processing-2. **Group by seller** — Cart items are grouped by seller (via the product-seller link)-3. **Create orders** — A separate Medusa order is created for each seller, containing only that seller's items and shipping-4. **Create order group** — An order group is created with the customer and cart references-5. **Link everything** — The workflow creates links between:- - Each order and the order group- - Each order and its seller- - Each order and the cart's payment collection- - Each seller and the customer (if new relationship)-6. **Finalize** — Inventory is reserved, payment is authorized, and the `order_group.created` event is emitted--<Info>- Payment collections are linked at the **individual order level**, not on the order group. This is a deliberate design decision — each per-seller order gets its own link to the payment collection, which enables per-order capture and refund flows.-</Info>--## Events--| Event | Payload | When |-|-------|---------|------|-| `order_group.created` | `{ id: string }` | After checkout creates a new order group |--## API endpoints--### List order groups (Admin)--```bash-curl http://localhost:9000/admin/order-groups \- -H "Authorization: Bearer <admin-token>"-```--Supports filtering by `customer_id`, `seller_id`, `status`, `sales_channel_id`, and `created_at`. Paginated with `offset` and `limit` (default 50).--### Get order group detail (Admin)--```bash-curl http://localhost:9000/admin/order-groups/<order-group-id> \- -H "Authorization: Bearer <admin-token>"-```--Returns the order group with aggregated payment and fulfillment statuses across all orders.--### List order groups (Store)--```bash-curl http://localhost:9000/store/order-groups \- -H "Authorization: Bearer <customer-token>"-```--Returns only order groups belonging to the authenticated customer. Includes nested order data with items, variants, products, and seller information.--### Get order group detail (Store)--```bash-curl http://localhost:9000/store/order-groups/<order-group-id> \- -H "Authorization: Bearer <customer-token>"-```--Returns a single order group. Throws `404` if the order group doesn't belong to the authenticated customer.--## Workflows--| Workflow | Purpose |-|----------|---------|-| `getOrderGroupsListWorkflow` | Retrieves a paginated list of order groups with aggregated payment and fulfillment statuses for each |-| `getOrderGroupDetailWorkflow` | Retrieves a single order group with full order details and aggregated statuses |-| `createOrderGroupStep` | Internal step used by `completeCartWithSplitOrdersWorkflow` — not called directly |--The list and detail workflows automatically inject order-related fields (items, payment collections, fulfillments) and compute an overall `payment_status` and `fulfillment_status` for each order group by aggregating across all linked orders.diff --git a/apps/docs/rc/learn/registry.mdx b/apps/docs/rc/learn/registry.mdxdeleted file mode 100644index 3442f16f4..000000000--- a/apps/docs/rc/learn/registry.mdx+++ /dev/null@@ -1,155 +0,0 @@-----title: "Registry"-description: "Create, build, and host your own block registry."------A registry is a collection of blocks that can be installed into any Mercur project using the CLI. The official Mercur registry (`@mercurjs`) provides all the built-in marketplace blocks. You can also create and host your own.--## How it works--A registry is a set of JSON files — one per block — served over HTTP. When you run `bunx @mercurjs/cli@rc add`, the CLI fetches the block's JSON, resolves its dependencies, and copies the source files into your project.--```-registry/-├── registry.json # Registry definition with all blocks-├── src/-│ └── my-block/ # Block source files-│ ├── modules/-│ ├── workflows/-│ └── api/-└── r/ # Built output (generated)- ├── registry.json- └── my-block.json # Block JSON with embedded file contents-```--## registry.json--The `registry.json` file defines your registry and all its blocks:--```json registry.json-{- "$schema": "https://registry.mercurjs.com/registry.json",- "name": "@my-org",- "homepage": "https://my-org.com",- "items": [- {- "name": "reviews",- "description": "Product and seller reviews with ratings.",- "dependencies": [],- "registryDependencies": [],- "docs": "## Configuration\n\nAdd the review module to your `medusa-config.ts`...",- "files": [- {- "path": "reviews/modules/reviews/index.ts",- "type": "registry:module"- },- {- "path": "reviews/workflows/review/workflows/create-review.ts",- "type": "registry:workflow"- },- {- "path": "reviews/api/store/reviews/route.ts",- "type": "registry:api"- }- ],- "categories": ["module", "workflow", "api"]- }- ]-}-```--### Block properties--| Property | Description |-| ---------------------- | -------------------------------------------------------------- |-| `name` | Block identifier used in `bunx @mercurjs/cli@rc add` |-| `description` | Short description shown in search results |-| `dependencies` | NPM packages to install |-| `registryDependencies` | Other blocks this block depends on (e.g. `@mercurjs/wishlist`) |-| `docs` | Markdown shown to the user after installation |-| `files` | List of source files with their paths and types |-| `categories` | Tags for search and filtering |--### File types--Each file in a block has a `type` that determines where it gets placed in the target project:--| Type | Target alias |-| ------------------- | ------------ |-| `registry:module` | `modules` |-| `registry:workflow` | `workflows` |-| `registry:api` | `api` |-| `registry:link` | `links` |-| `registry:vendor` | `vendor` |-| `registry:admin` | `admin` |-| `registry:lib` | `lib` |--These map to the aliases defined in the consumer's `blocks.json`.--## Building--Build your registry into distributable JSON files:--```bash-bunx @mercurjs/cli@rc build-```--This reads `registry.json`, resolves all imports for each block, embeds the file contents, and outputs one JSON file per block to the `r/` directory.--| Option | Description |-| --------------------- | --------------------------------- |-| `-o, --output <path>` | Output directory (default: `./r`) |-| `-v, --verbose` | Show detailed output |--The build step also automatically resolves NPM dependencies from your source imports — you don't need to list every transitive dependency manually.--## Hosting--Serve the built `r/` directory over HTTP. Any static hosting works — GitHub Pages, Vercel, Netlify, S3, or your own server. The only requirement is that `{name}.json` files are accessible at a public URL.--## Using custom registries--Add your registry to `blocks.json` in any Mercur project:--```json blocks.json-{- "registries": {- "@my-org": "https://my-registry.com/r/{name}.json"- }-}-```--Use `{name}` as a placeholder for block names. Then install blocks from it:--```bash-bunx @mercurjs/cli@rc add @my-org/reviews-```--### Authentication--For private registries, you can use headers with environment variables:--```json blocks.json-{- "registries": {- "@my-org": {- "url": "https://api.my-org.com/r/{name}.json",- "headers": {- "Authorization": "Bearer ${REGISTRY_TOKEN}"- }- }- }-}-```--## Dependencies between blocks--Blocks can depend on other blocks using `registryDependencies`. When a user installs your block, the CLI automatically resolves and installs all dependencies in the correct order.--```json-{- "name": "order-tracking",- "registryDependencies": ["@mercurjs/wishlist"],- "files": [...]-}-```diff --git a/apps/docs/telemetry.mdx b/apps/docs/telemetry.mdxdeleted file mode 100644index 0b706c24b..000000000--- a/apps/docs/telemetry.mdx+++ /dev/null@@ -1,67 +0,0 @@-----title: "Telemetry"-description: "Learn about the anonymous usage data collected by the Mercur CLI"------## Overview--The Mercur CLI collects **anonymous usage data** to help us understand how the CLI is used and improve the developer experience. This data is collected by default but can be easily disabled.--## What We Collect--When you run CLI commands (`create`, `init`, `add`, `registry:build`), the following data is sent:--| Data | Description |-|------|-------------|-| Event type | Which command was run and its outcome |-| Node.js version | Your Node.js runtime version |-| Node environment | The `NODE_ENV` value |-| Mercur version | Version of `@mercurjs/cli` in your project |-| Medusa version | Version of `@medusajs/framework` in your project |-| Package manager | npm, yarn, pnpm, or bun |-| Project structure | Whether `src/` directory is used, alias prefix |-| System info | OS, platform, architecture, CPU model/speed/count, RAM |-| Environment | Whether running in WSL, Docker, or a TTY |-| Deployment vendor | Detected hosting platform (Railway, Fly.io, Heroku, etc.) |-| Project ID | SHA-256 hash (base64) of your git remote URL — **not the URL itself** |-| Project config | Contents of your `blocks.json` configuration |-| Email | **Only** if you voluntarily provided it during `create-mercur-app` |--## What We Do NOT Collect--- Source code or file contents-- File names or directory structure-- Git history or commit messages-- Personal data (beyond the optional email above)--## How to Opt Out--### Using the CLI--```bash-mercurjs telemetry --disable-```--### Using an environment variable--```bash-export MERCUR_DISABLE_TELEMETRY=true-```--This is useful for CI/CD environments or shared configurations.--### Check current status--```bash-mercurjs telemetry-```--## Where Data Goes--Telemetry events are sent to `https://telemetry.mercurjs.com`. The data is used exclusively by the Mercur team to prioritize features and fix issues.--## Re-enabling Telemetry--```bash-mercurjs telemetry --enable-```diff --git a/apps/docs/user-guides/admin/stores.mdx b/apps/docs/user-guides/admin/stores.mdxdeleted file mode 100644index 3aeaf8302..000000000--- a/apps/docs/user-guides/admin/stores.mdx+++ /dev/null@@ -1,193 +0,0 @@-----title: "Stores in Mercur Admin Panel"-sidebarTitle: "Stores"-mode: "default"------This guide explains how to manage stores in the Mercur Admin Panel.--## View Stores--To view all stores, select “Stores” in the sidebar menu in your panel.--The table shows store details like name, email, status, date and and whether the admin featured the store. Use search, filter, and sort to find a specific store.--One vendor can have multiple stores, each displayed separately in the list.--.png)--## Create Store--To create a store:--1. Go to “Stores” in the sidebar.-2. Click on the “Create” button.--This opens a form with two steps: “Details” and “Admin”--### 1. Details Step--In the first “Details” step, you can enter the store general information:--1. Enter “Name” and “Email”-2. Optionally enter “Handle” and “Phone”. The “Handle” field value appears in the store storefront URL. It creates a human-readable URL and must be unique across all stores, containing only lowercase letters, numbers, and hyphens. If left blank, Mercur generates a handle from the name.-3. Select “Currency.” Each store can have only one currency.-4. Once you're done, click the "Continue" button.----### 2. Admin Step--In the second “Admin” step, you assign an admin vendor to manage this store. You can select an existing user or invite a new one. As you type, suggestions will appear: select one or add a new email. Once the store is created, the selected user will receive an email invitation to join.----Once you create the store, it appears on the list with pending status. The store details entered by the admin during creation can be overwritten by the vendor during onboarding. You can block this depending on the onboarding flow you want.--## Store Details--To view store details:--1. Go to “Stores” in the sidebar.-2. Choose the store from the list.--This opens the store details page. Here, you can view and edit store details, address, company details, payment details, and access their orders, products, users, and time off.--.png)--### Edit Store Details--To edit store details:--1. Go to “Stores” in the sidebar.-2. Choose the store from the list.-3. Click the icon in the section’s header.-4. Choose “Edit” from the dropdown.-5. In the side window that opens, you can edit the store:- - Status. There are three statuses: Active, Pending, Inactive. When a store is “Inactive” or “Pending”, their products won’t be visible on the storefront.- - Name- - Description- - Handle- - Phone- - Website- - Featured Store Settings. If checked, the store will be highlighted with a special badge for internal use or promotional purposes.- - Media. You can add logo and banner. This media will be visible on the storefront.-6. Once you’re done, click the “Save” button.--<Warning>- Once the currency is set, it cannot be changed.-</Warning>--<Note>- Once the admin edits store details, the vendor is notified in their panel.-</Note>--.png)--### Edit Store Address--To edit store address:--1. Go to “Stores” in the sidebar.-2. Choose the store from the list.-3. Click the icon in the “Address” header.-4. Choose “Edit” from the dropdown.-5. In the side window that opens, you can edit:- - Name- - Address- - Apartment, suite, etc.- - Postal Code- - City- - Country- - State-6. Once you're done, click the “Save” button.--.png)--### Edit Store Company Details--To edit company details:--1. Go to “Stores” in the sidebar.-2. Choose the store from the list.-3. Click the icon in the “Company Details” header.-4. Choose “Edit” from the dropdown.-5. In the side window that opens, you can edit:- - Company- - Registration number- - Tax ID-6. Once you're done, click the “Save” button.--.png)--### Edit Store Payment Details--To edit payment details:--1. Go to “Stores” in the sidebar.-2. Choose the store from the list.-3. Click the icon in the “Payment Details” header.-4. Choose “Edit” from the dropdown.-5. In the side window, you can edit payment details:- 1. For all countries except the United States, provide the following details based on your needs:- - Account name- - IBAN- - Account number- - SWIFT/BIC- 2. For United States:- - Account name- - Account number- - ACH routing number-6. Once you're done, click the “Save” button.--.png)--## Users--In the “Users” tab, view all store team members who manage the store. You can add new users by selecting existing ones from your base or inviting new members. You can also remove users from the store.--The user added during store creation is the main admin and cannot be removed. This user is marked with an “Admin” badge.--.png)--### Add New User--To add a new user:--1. Go to “Stores” in the sidebar.-2. Choose the store from the list.-3. Select the “Users” tab-4. Click the “Add” button in the section's header.-5. In the form that opens add:- 1. Email. As you type, suggestions will appear; select one or add a new email.- 2. Role. There are five roles:- - Store Administration- - Inventory Management- - Order Management- - Accounting- - Support-6. Once you're done, click the “Save” button.--.png)--## Time Off--In the “Time off” tab, view the store's time off. It specifies the period when the store will be unavailable to receive orders. The vendor can specify one time off period and add a note. During this period, the store’s products will not be visible on the storefront.--.png)--## Store Request--The vendor can submit a request to create a new store. Once submitted, the store appears on the list with “Pending” status. On the store details page, a block appears at the top with two actions:--- Confirm-- Reject--You can review the request, make necessary updates, and choose to confirm and publish the store or reject the request. Once confirmed, the store status changes to Active.--<Note>- Once the admin confirms or rejects the store creation request, the vendor receives an email.-</Note>--.png)\ No newline at end of filediff --git a/apps/docs/user-guides/vendor/stores.mdx b/apps/docs/user-guides/vendor/stores.mdxdeleted file mode 100644index 157a4524a..000000000--- a/apps/docs/user-guides/vendor/stores.mdx+++ /dev/null@@ -1,209 +0,0 @@-----title: "Store in Mercur Vendor Panel"-sidebarTitle: "Store"------This guide explains how to manage store in the Mercur Vendor Panel.--## Store Set Up--You can set up a store in Mercur in three ways:--1. Admin Invitation: The admin invites you to join the platform and set up your first store.-2. Vendor Request: You create a new store in your panel, which the admin then confirms.-3. Vendor Self-Registration. When enabled, you can apply to join the platform through the storefront or other available entry points.--### Admin Invitation--Once the admin creates the store and invites you, you receive an email with a link to join as the store's admin. After accepting the invitation, you are redirected to the setup page, where you enter your details and set a password. Once completed, click “Continue” to start onboarding.--.png)--The onboarding setup is customizable depending on marketplace needs and may include:--- Store Details-- Address-- Company Details-- Payment Details--.png)--Depending on the marketplace configuration, you need to complete all required steps during onboarding or later in the store profile. The “Complete profile” block shows any missing information required by the marketplace. Once all required information is added, the block disappears.--.png)--### Vendor Request--A vendor can have multiple stores in Mercur. If you already have one, you can create another.--To create a store:--1. Click the store name in the upper left corner.-2. A menu appears showing your available stores, with the active one selected.-3. Click the “Add new store” button.-4. This opens a new page for store setup. The setup is customizable based on marketplace needs and may include:- - Store Details- - Address- - Company Details- - Payment Details--After creating the store, you are redirected to the store details page with a "Pending" status.--Depending on the marketplace setup, a “Complete profile” block may appear showing any missing information required by the marketplace. Once all required information is added, the block disappears.--<Frame>- .png)-</Frame>--### Vendor Self-Registration--When the marketplace admin enables self-registration, you can apply to join the platform through the storefront or other entry points. You are then redirected to the registration page to set up an admin account and create the first store.--After creating the store, you are redirected to the store details page with a "Pending" status.--Depending on the marketplace setup, a “Complete profile” block may appear showing any missing information required by the marketplace. Once all required information is added, the block disappears.--.png)--## Store Details--To view store details:--1. Go to “Settings” in the sidebar.-2. Go to “Store” in the sidebar.--This opens the store details page. Here, you can view and edit store details, address, company details, payment details, time off.--.png)--### Edit Store Details--To edit store details:--1. Go to “Settings” in the sidebar.-2. Go to “Store” in the sidebar.-3. Click the icon in the section's header.-4. Choose “Edit” from the dropdown.-5. In the side window that opens, you can edit the store:- - Name- - Description- - Handle- - Phone- - Website- - Media. You can add logo and banner. This media will be visible on the storefront.-6. Once you’re done, click the “Save” button.--<Warning>- A vendor can have only one currency per store. Once set, the vendor cannot change the currency.-</Warning>--.png)--### Edit Store Address--To edit store address:--1. Go to “Settings” in the sidebar.-2. Go to “Store” in the sidebar.-3. Click the icon in the “Address” header.-4. Choose “Edit” from the dropdown.-5. In the side window that opens, you can edit:- - Name- - Address- - Apartment, suite, etc.- - Postal Code- - City- - Country- - State-6. Once you're done, click the “Save” button.--.png)--### Edit Store Company Details--To edit company details:--1. Go to “Settings” in the sidebar.-2. Go to “Store” in the sidebar.-3. Click the icon in the “Company Details” header.-4. Choose “Edit” from the dropdown.-5. In the side window that opens, you can edit:- 1. Company- 2. Registration number- 3. Tax ID-6. Once you're done, click the “Save” button.--.png)--### Edit Store Payment Details--To edit payment details:--1. Go to “Settings” in the sidebar.-2. Go to “Store” in the sidebar.-3. Click the icon in the “Payment Details” header.-4. Choose “Edit” from the dropdown.-5. In the side window, you can edit payment details:- 1. For all countries except the United States, provide the following details based on your needs:- - Account name- - IBAN- - Account number- - SWIFT/BIC- 2. For United States:- - Account name- - Account number- - ACH routing number-6. Once you're done, click the “Save” button.--.png)--## Time Off--In the “Time off” section, you can manage your store's time off. It specifies when the store will be unavailable to receive orders. You can specify one time off period and add a note. During this period, the store’s products will not be visible on the storefront.--<Frame>- .png)-</Frame>--### Create Time Off--To create a time off:--1. Go to “Settings” in the sidebar.-2. Go to “Store” in the sidebar.-3. Click the “Create” button in the “Time off” section.-4. In the side window, you can enter:- - First day- - Last day. If you leave this field empty, the store will be closed indefinitely.- - Note-5. Once you're done, click the “Save” button.--Once time off expires, it will disappear.----### Edit Time Off--To edit a time off:--1. Go to “Settings” in the sidebar.-2. Go to “Store” in the sidebar.-3. Click the icon in the time off row.-4. Choose “Edit” from the dropdown.-5. In the side window, you can edit:- - First day- - Last day. If you leave this field empty, the store will be closed indefinitely.- - Note-6. Once you're done, click the “Save” button.----### Delete Time Off--To delete a time off:--1. Go to “Settings” in the sidebar.-2. Go to “Store” in the sidebar.-3. Click the icon in the time off row.-4. Choose “Delete” from the dropdown.\ No newline at end of filediff --git a/apps/docs/welcome.mdx b/apps/docs/welcome.mdxdeleted file mode 100644index 22d475e98..000000000--- a/apps/docs/welcome.mdx+++ /dev/null@@ -1,87 +0,0 @@-----title: "Mercur v2.0 is here"-sidebarTitle: "Introduction"-description: "A structured marketplace platform designed for both developers and AI to extend safely."-mode: "custom"------<div className="max-w-5xl mx-auto px-6 py-16">- <div className="text-center mt-12 mb-16">- <h1 className="text-5xl font-bold tracking-tight mb-4">Mercur v2.0 is here</h1>- <p className="text-xl text-gray-500 dark:text-gray-400 max-w-2xl mx-auto">- Most tools use AI to generate snippets. Mercur lets AI work at the system level — composing APIs, modifying workflows, extending UI, and evolving your marketplace architecture.- </p>- <div className="mt-8 flex gap-4 justify-center">- <a href="/getting-started/installation" className="inline-flex items-center px-5 py-2.5 rounded-lg bg-black dark:bg-white text-white dark:text-black font-medium text-sm hover:opacity-90 transition-opacity no-underline">- Get Started- </a>- <a href="https://github.com/mercurjs/mercur/releases" className="inline-flex items-center px-5 py-2.5 rounded-lg border border-gray-200 dark:border-gray-700 font-medium text-sm hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors no-underline">- Release Notes- </a>- </div>- </div>-- <div className="mb-16">- <h2 className="text-2xl font-semibold mb-2">AI-native by design</h2>- <p className="text-gray-500 dark:text-gray-400 mb-6">Mercur 2.0 provides clear, predictable patterns that AI can reason about.</p>- <div className="grid grid-cols-1 sm:grid-cols-2 gap-4">- <div className="p-5 rounded-xl border border-gray-200 dark:border-gray-800">- <h3 className="font-semibold text-base mb-2">Typed API Client</h3>- <p className="text-sm text-gray-500 dark:text-gray-400 m-0">API specifications are shared between the server and the client. AI can read types and generate correct integrations without guessing.</p>- </div>- <div className="p-5 rounded-xl border border-gray-200 dark:border-gray-800">- <h3 className="font-semibold text-base mb-2">Block Registry with CLI</h3>- <p className="text-sm text-gray-500 dark:text-gray-400 m-0">Like shadcn/ui, but for your backend. Features are modular blocks that can be added, updated, and diffed. The CLI is native for AI agents — they can safely add, extend, and modify your system with structured building units.</p>- </div>- <div className="p-5 rounded-xl border border-gray-200 dark:border-gray-800">- <h3 className="font-semibold text-base mb-2">Monorepo Setup</h3>- <p className="text-sm text-gray-500 dark:text-gray-400 m-0">Everything lives in one consistent system. AI has full context across backend, admin, vendor, and shared packages.</p>- </div>- <div className="p-5 rounded-xl border border-gray-200 dark:border-gray-800">- <h3 className="font-semibold text-base mb-2">Programmable Workflows</h3>- <p className="text-sm text-gray-500 dark:text-gray-400 m-0">Cart, orders, pricing, and vendors are exposed as structured logic that can be extended, replaced, or hooked into. AI can modify steps, inject logic, and adapt them to new business models.</p>- </div>- <div className="p-5 rounded-xl border border-gray-200 dark:border-gray-800">- <h3 className="font-semibold text-base mb-2">Extensible Panels</h3>- <p className="text-sm text-gray-500 dark:text-gray-400 m-0">Admin and vendor panels are extended through file-based routing and a block registry — add custom pages, replace entire pages, or swap out components, all wired in automatically by the dashboard SDK.</p>- </div>- <div className="p-5 rounded-xl border border-gray-200 dark:border-gray-800">- <h3 className="font-semibold text-base mb-2">Marketplace Payments</h3>- <p className="text-sm text-gray-500 dark:text-gray-400 m-0">Native marketplace payments with pluggable payout providers. Stripe Connect out of the box — swap or extend providers as your marketplace evolves.</p>- </div>- </div>- <div className="mt-4 p-5 rounded-xl border border-gray-200 dark:border-gray-800">- <h3 className="font-semibold text-base mb-2">Built on Medusa.js</h3>- <p className="text-sm text-gray-500 dark:text-gray-400 m-0">A structured commerce framework with modules, workflows, links, and subscribers as first-class building blocks. This gives AI context, not chaos — so it can safely modify real systems instead of guessing.</p>- </div>- </div>-- <div className="mb-16">- <h2 className="text-2xl font-semibold mb-6">Resources</h2>- <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">- <a href="/getting-started/introduction" className="block p-5 rounded-xl border border-gray-200 dark:border-gray-800 hover:border-gray-300 dark:hover:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-900 transition-all no-underline">- <h3 className="font-semibold text-base mb-2">Documentation</h3>- <p className="text-sm text-gray-500 dark:text-gray-400 m-0">Guides on setup, configuration, and extending your marketplace.</p>- </a>- <a href="https://github.com/mercurjs/mercur" className="block p-5 rounded-xl border border-gray-200 dark:border-gray-800 hover:border-gray-300 dark:hover:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-900 transition-all no-underline">- <h3 className="font-semibold text-base mb-2">GitHub</h3>- <p className="text-sm text-gray-500 dark:text-gray-400 m-0">Source code, examples, and community contributions.</p>- </a>- <a href="https://discord.gg/hnZBzc4NJU" className="block p-5 rounded-xl border border-gray-200 dark:border-gray-800 hover:border-gray-300 dark:hover:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-900 transition-all no-underline">- <h3 className="font-semibold text-base mb-2">Discord</h3>- <p className="text-sm text-gray-500 dark:text-gray-400 m-0">Join the community for help, discussions, and updates.</p>- </a>- <a href="/blocks" className="block p-5 rounded-xl border border-gray-200 dark:border-gray-800 hover:border-gray-300 dark:hover:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-900 transition-all no-underline">- <div className="flex items-center gap-3 mb-2">- <span className="text-lg">🧱</span>- <h3 className="font-semibold text-base m-0">Browse Blocks</h3>- </div>- <p className="text-sm text-gray-500 dark:text-gray-400 m-0">Official registry blocks — install only what you need.</p>- </a>- <a href="/ai-development/llms" className="block p-5 rounded-xl border border-gray-200 dark:border-gray-800 hover:border-gray-300 dark:hover:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-900 transition-all no-underline">- <h3 className="font-semibold text-base mb-2">AI Development</h3>- <p className="text-sm text-gray-500 dark:text-gray-400 m-0">LLMs, MCP server, and skills — connect your AI tools to Mercur.</p>- </a>- </div>- </div>-</div>