-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into feature/JSS-100
- Loading branch information
Showing
399 changed files
with
4,480 additions
and
5,355 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1 @@ | ||
## Unreleased | ||
|
||
### nextjs | ||
|
||
### nextjs-xmcloud | ||
|
||
### nextjs-sxa | ||
|
||
### nextjs-multisite | ||
|
||
* **Update** packages\create-sitecore-jss\src\templates\nextjs-multisite\scripts\config\plugins\multisite.ts | ||
|
||
``` | ||
//Remove | ||
useSiteQuery: true, | ||
``` | ||
|
||
### nextjs-styleguide | ||
|
||
### react | ||
|
||
### angular | ||
|
||
### vue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"lerna": "3.22.1", | ||
"packages": ["packages/*", "samples/*"], | ||
"version": "21.8.0-canary.5", | ||
"version": "22.1.0-canary.5", | ||
"npmClient": "yarn", | ||
"useWorkspaces": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
packages/create-sitecore-jss/src/templates/angular/src/app/lib/client-factory.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { | ||
GraphQLRequestClientFactoryConfig, | ||
GraphQLRequestClient, | ||
} from '@sitecore-jss/sitecore-jss-angular'; | ||
import { environment as env } from '../../environments/environment'; | ||
|
||
// The GraphQLRequestClientFactory serves as the central hub for executing GraphQL requests within the application | ||
|
||
/** | ||
* Creates a new GraphQLRequestClientFactory instance | ||
* @returns GraphQLRequestClientFactory instance | ||
*/ | ||
export const createGraphQLClientFactory = () => { | ||
let clientConfig: GraphQLRequestClientFactoryConfig; | ||
|
||
if (env.graphQLEndpoint && env.sitecoreApiKey) { | ||
clientConfig = { | ||
endpoint: env.graphQLEndpoint, | ||
apiKey: env.sitecoreApiKey, | ||
}; | ||
} else { | ||
throw new Error('Please configure your graphQLEndpoint and sitecoreApiKey.'); | ||
} | ||
|
||
return GraphQLRequestClient.createClientFactory(clientConfig); | ||
}; | ||
|
||
export const clientFactory = createGraphQLClientFactory(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/create-sitecore-jss/src/templates/nextjs-xmcloud/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"dependencies": { | ||
"@sitecore/components": "^1.1.10", | ||
"@sitecore-cloudsdk/events": "^0.2.4", | ||
"@sitecore-cloudsdk/events": "^0.3.0", | ||
"@sitecore-feaas/clientside": "^0.5.17" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...create-sitecore-jss/src/templates/node-headless-ssr-experience-edge/src/client-factory.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { | ||
GraphQLRequestClientFactoryConfig, | ||
GraphQLRequestClient, | ||
} from '@sitecore-jss/sitecore-jss'; | ||
import { config } from './config'; | ||
|
||
// The GraphQLRequestClientFactory serves as the central hub for executing GraphQL requests within the application | ||
|
||
/** | ||
* Creates a new GraphQLRequestClientFactory instance | ||
* @returns GraphQLRequestClientFactory instance | ||
*/ | ||
export const createGraphQLClientFactory = () => { | ||
let clientConfig: GraphQLRequestClientFactoryConfig; | ||
|
||
if (config.endpoint && config.apiKey) { | ||
clientConfig = { | ||
endpoint: config.endpoint, | ||
apiKey: config.apiKey, | ||
}; | ||
} else { | ||
throw new Error('Please configure your endpoint and apiKey.'); | ||
} | ||
|
||
return GraphQLRequestClient.createClientFactory(clientConfig); | ||
}; | ||
|
||
export const clientFactory = createGraphQLClientFactory(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.