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)