@sitecore-content-sdk/core 1.2.0-canary.2 → 1.2.0-canary.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -102,8 +102,9 @@ class SitecoreClient {
102
102
  */
103
103
  getHeadLinks(layoutData, options = {}) {
104
104
  const { enableStyles = true, enableThemes = true } = options;
105
- const { contextId, edgeUrl } = this.initOptions.api.edge;
105
+ const { contextId: serverContextId, clientContextId, edgeUrl } = this.initOptions.api.edge;
106
106
  const headLinks = [];
107
+ const contextId = serverContextId || clientContextId;
107
108
  if (enableStyles) {
108
109
  const contentStyles = (0, layout_1.getContentStylesheetLink)(layoutData, contextId, edgeUrl);
109
110
  if (contentStyles)
@@ -99,8 +99,9 @@ export class SitecoreClient {
99
99
  */
100
100
  getHeadLinks(layoutData, options = {}) {
101
101
  const { enableStyles = true, enableThemes = true } = options;
102
- const { contextId, edgeUrl } = this.initOptions.api.edge;
102
+ const { contextId: serverContextId, clientContextId, edgeUrl } = this.initOptions.api.edge;
103
103
  const headLinks = [];
104
+ const contextId = serverContextId || clientContextId;
104
105
  if (enableStyles) {
105
106
  const contentStyles = getContentStylesheetLink(layoutData, contextId, edgeUrl);
106
107
  if (contentStyles)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore-content-sdk/core",
3
- "version": "1.2.0-canary.2",
3
+ "version": "1.2.0-canary.4",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "sideEffects": false,
@@ -85,7 +85,7 @@
85
85
  },
86
86
  "description": "",
87
87
  "types": "types/index.d.ts",
88
- "gitHead": "91681af284f72808222c3648de790d2bba5c5953",
88
+ "gitHead": "f711114883df1aaa4bb9ee95e360345448538073",
89
89
  "files": [
90
90
  "dist",
91
91
  "types",