Summary
Add two new MDX documents to packages/document/src/stories/getting-started/ describing the core and hooks internal packages โ their purpose, API, and usage patterns.
Motivation
The getting-started section currently covers introduction, authentication, microfrontends, styling, and containers (001 โ 005). Contributors and consumers who want to understand or extend the library have no reference for:
@commercelayer/core โ low-level SDK wrappers (fetch functions, types)
@commercelayer/hooks โ SWR-based React hooks built on top of core
Tasks
Notes
- Follow the existing MDX structure in the
getting-started/ folder (title, description, prop/API tables, code blocks with syntax highlighting)
- Both pages should be linked from the Storybook sidebar under "Getting Started"
Summary
Add two new MDX documents to
packages/document/src/stories/getting-started/describing thecoreandhooksinternal packages โ their purpose, API, and usage patterns.Motivation
The getting-started section currently covers introduction, authentication, microfrontends, styling, and containers (
001โ005). Contributors and consumers who want to understand or extend the library have no reference for:@commercelayer/coreโ low-level SDK wrappers (fetch functions, types)@commercelayer/hooksโ SWR-based React hooks built on top ofcoreTasks
Create
006.core.mdxโ document the@commercelayer/corepackagegetSkus,retrieveSku,getPrices,getSkuLists, etc.){ accessToken, params })Create
007.hooks.mdxโ document the@commercelayer/hookspackageuseSkus,usePrices,useSkuLists, etc.)data,isLoading,error, fetch/clear actions)Notes
getting-started/folder (title, description, prop/API tables, code blocks with syntax highlighting)