Skip to content

Commit

Permalink
[NextJS] Move LayoutService to sitecore-jss package (#511)
Browse files Browse the repository at this point in the history
* Move LayoutService to sitecore-jss

* Add package-lock

* Move headers logic to sitecore-jss

* extract headers handlers

* Revert link

* Changes after review

* Format

* Add data fetcher resolver

* Make fetchRouteData, fetchPlaceholderData as deprecated, add fetchPlaceholderData to LayoutService

* Update jsdoc

* Refactor DataFetcherResolver generic
  • Loading branch information
sc-illiakovalenko authored Dec 17, 2020
1 parent a9615cc commit d05e22d
Show file tree
Hide file tree
Showing 14 changed files with 1,588 additions and 123 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"reset": "lerna clean --yes && npm run bootstrap && npm run build-packages",
"bootstrap": "lerna bootstrap && npm run bootstrap-nextjs-sample && npm run bootstrap-react-sample",
"bootstrap:ci": "lerna bootstrap --ci",
"bootstrap-nextjs-sample": "cd ./samples/nextjs/node_modules/@sitecore-jss/sitecore-jss-nextjs && npm link ../../react && npm link ../../react-dom",
"bootstrap-react-sample": "cd ./samples/react/node_modules/@sitecore-jss/sitecore-jss-react && npm link ../../react && npm link ../../react-dom",
"bootstrap-nextjs-sample": "cd ./samples/nextjs/node_modules/@sitecore-jss/sitecore-jss-nextjs && npm link ../../react && cd ../sitecore-jss-nextjs-editing-host && npm link ../../react",
"bootstrap-react-sample": "cd ./samples/react/node_modules/@sitecore-jss/sitecore-jss-react && npm link ../../react",
"build-packages": "lerna run build --ignore *-sample*",
"build-apps": "lerna run build --scope *-sample*",
"lint-packages": "lerna run lint --scope @sitecore-jss/sitecore-jss-nextjs",
Expand Down
2 changes: 2 additions & 0 deletions packages/sitecore-jss-nextjs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ export {
mediaApi,
isExperienceEditorActive,
resetExperienceEditorChromes,
AxiosDataFetcher,
LayoutService,
DictionaryPhrases,
DictionaryServiceData,
LayoutServiceData,
Expand Down
Loading

0 comments on commit d05e22d

Please sign in to comment.