Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"lerna": "3.22.1",
"useWorkspaces": true,
"version": "1.1.1",
"version": "2.0.0-beta.0",
"npmClient": "yarn",
"packages": ["packages/*"]
}
30 changes: 15 additions & 15 deletions packages/data/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@constellation4sitecore-content-sdk/data",
"version": "1.1.1",
"version": "2.0.0-beta.0",
"description": "A collection of XM Cloud compatible libraries for SXA Sitecore Development.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand All @@ -19,30 +19,30 @@
"url": "https://github.com/constellation4sitecore/content-sdk/issues"
},
"devDependencies": {
"@sitecore-content-sdk/core": "^1.1.0",
"@types/node": "~22.9.0",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.3",
"@sitecore-content-sdk/core": "^2.0.0",
"@types/node": "^24.10.4",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"copyfiles": "^2.4.1",
"del-cli": "^5.0.0",
"eslint": "^8.32.0",
"eslint-plugin-react": "^7.37.5",
"jsdom": "^21.1.0",
"next": "^15.3.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"next": "^16.1.1",
"react": "^19.2.1",
"react-dom": "^19.2.1",
"ts-node": "^10.9.1",
"typescript": "~5.4.0"
"typescript": "~5.8.3"
},
"peerDependencies": {
"@sitecore-content-sdk/core": "^1.1.0",
"next": "^15.3.1",
"react": "^19.1.0",
"react-dom": "^19.1.0"
"@sitecore-content-sdk/core": "^2.0.0",
"next": "^16.1.1",
"react": "^19.2.1",
"react-dom": "^19.2.1"
},
"dependencies": {
"@constellation4sitecore-content-sdk/mapper": "^1.1.1",
"@constellation4sitecore-content-sdk/nextjs": "^1.1.1"
"@constellation4sitecore-content-sdk/mapper": "2.0.0-beta.0",
"@constellation4sitecore-content-sdk/nextjs": "2.0.0-beta.0"
},
"types": "types/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/data/src/base-item.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Item } from '@sitecore-content-sdk/core/layout';
import { Item } from '@sitecore-content-sdk/content/layout';

/**
* Represents a base item in Sitecore.
Expand Down
2 changes: 1 addition & 1 deletion packages/data/src/factories/data.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LayoutServiceData } from '@sitecore-content-sdk/core/layout';
import { LayoutServiceData } from '@sitecore-content-sdk/content/layout';
import { DataService } from '../services/data-service';

export const createDataService = (layoutData: LayoutServiceData): DataService => {
Expand Down
24 changes: 12 additions & 12 deletions packages/enhancers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@constellation4sitecore-content-sdk/enhancers",
"version": "1.1.1",
"version": "2.0.0-beta.0",
"description": "A collection of XM Cloud compatible libraries for SXA Sitecore Development.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand All @@ -19,25 +19,25 @@
"url": "https://github.com/constellation4sitecore/content-sdk/issues"
},
"devDependencies": {
"@sitecore-content-sdk/nextjs": "^1.1.0",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.3",
"@sitecore-content-sdk/nextjs": "^2.0.0",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"copyfiles": "^2.4.1",
"del-cli": "^5.0.0",
"eslint": "^8.32.0",
"eslint-plugin-react": "^7.37.5",
"jsdom": "^21.1.0",
"next": "^15.3.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"next": "^16.1.1",
"react": "^19.2.1",
"react-dom": "^19.2.1",
"ts-node": "^10.9.1",
"typescript": "~5.4.0"
"typescript": "~5.8.3"
},
"peerDependencies": {
"@sitecore-content-sdk/nextjs": "^1.1.0",
"next": "^15.3.1",
"react": "^19.1.0",
"react-dom": "^19.1.0"
"@sitecore-content-sdk/nextjs": "^2.0.0",
"next": "^16.1.1",
"react": "^19.2.1",
"react-dom": "^19.2.1"
},
"types": "types/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/enhancers/src/helpers/filter-placeholders.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentRendering } from '@sitecore-content-sdk/core/layout';
import { ComponentRendering } from '@sitecore-content-sdk/content/layout';

export function filterPlaceholders(placeholderList: ComponentRendering[]): ComponentRendering[] {
let newList = [];
Expand Down
2 changes: 1 addition & 1 deletion packages/enhancers/src/helpers/get-rendering-index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentRendering } from '@sitecore-content-sdk/core/layout';
import { ComponentRendering } from '@sitecore-content-sdk/content/layout';

export type RenderingIndex = {
rendering: ComponentRendering;
Expand Down
2 changes: 1 addition & 1 deletion packages/enhancers/src/hooks/useModifyChildrenProps.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentRendering } from '@sitecore-content-sdk/core/layout';
import { ComponentRendering } from '@sitecore-content-sdk/content/layout';
import { useContext } from 'react';
import { filterPlaceholders } from '../helpers';
import { ComponentPropsReactContext } from '@sitecore-content-sdk/nextjs';
Expand Down
2 changes: 1 addition & 1 deletion packages/enhancers/src/withAppDatasourceRendering.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentRendering } from '@sitecore-content-sdk/core/layout';
import { ComponentRendering } from '@sitecore-content-sdk/content/layout';
import { Page } from '@sitecore-content-sdk/nextjs';
import React, { ComponentType, ReactElement } from 'react';

Expand Down
2 changes: 1 addition & 1 deletion packages/enhancers/src/withDatasourceRendering.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client';
import { ComponentRendering } from '@sitecore-content-sdk/core/layout';
import { ComponentRendering } from '@sitecore-content-sdk/content/layout';
import { useSitecore } from '@sitecore-content-sdk/nextjs';
import React, { ComponentType, ReactElement } from 'react';

Expand Down
28 changes: 14 additions & 14 deletions packages/labels/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@constellation4sitecore-content-sdk/labels",
"version": "1.1.1",
"version": "2.0.0-beta.0",
"description": "A collection of XM Cloud compatible libraries for SXA Sitecore Development.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand All @@ -18,29 +18,29 @@
"url": "https://github.com/constellation4sitecore/content-sdk/issues"
},
"devDependencies": {
"@sitecore-content-sdk/core": "^1.1.0",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.3",
"@sitecore-content-sdk/core": "^2.0.0",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"copyfiles": "^2.4.1",
"del-cli": "^5.0.0",
"eslint": "^8.32.0",
"eslint-plugin-react": "^7.37.5",
"jsdom": "^21.1.0",
"next": "^15.3.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"next": "^16.1.1",
"react": "^19.2.1",
"react-dom": "^19.2.1",
"ts-node": "^10.9.1",
"typescript": "~5.4.0"
"typescript": "~5.8.3"
},
"peerDependencies": {
"@sitecore-content-sdk/core": "^1.1.0",
"next": "^15.3.1",
"react": "^19.1.0",
"react-dom": "^19.1.0"
"@sitecore-content-sdk/core": "^2.0.0",
"next": "^16.1.1",
"react": "^19.2.1",
"react-dom": "^19.2.1"
},
"dependencies": {
"@constellation4sitecore-content-sdk/mapper": "^1.1.1",
"@constellation4sitecore-content-sdk/nextjs": "^1.1.1"
"@constellation4sitecore-content-sdk/mapper": "2.0.0-beta.0",
"@constellation4sitecore-content-sdk/nextjs": "2.0.0-beta.0"
},
"types": "types/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/labels/src/labels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { gql } from 'graphql-request';
import { debug as debuggers } from '@constellation4sitecore-content-sdk/nextjs/debugger';
import { GraphqlService } from '@constellation4sitecore-content-sdk/nextjs/graphql';
import { mapToNew } from '@constellation4sitecore-content-sdk/mapper';
import { LayoutServiceData } from '@sitecore-content-sdk/core/layout';
import { LayoutServiceData } from '@sitecore-content-sdk/content/layout';

// https://stackoverflow.com/questions/56018167/typescript-does-not-copy-d-ts-files-to-build
// .d.ts workaraound
Expand Down
24 changes: 12 additions & 12 deletions packages/mapper/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@constellation4sitecore-content-sdk/mapper",
"version": "1.1.1",
"version": "2.0.0-beta.0",
"description": "A collection of XM Cloud compatible libraries for SXA Sitecore Development.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand All @@ -18,24 +18,24 @@
"url": "https://github.com/constellation4sitecore/content-sdk/issues"
},
"devDependencies": {
"@sitecore-content-sdk/core": "^1.1.0",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.3",
"@sitecore-content-sdk/core": "^2.0.0",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"del-cli": "^5.0.0",
"eslint": "^8.32.0",
"eslint-plugin-react": "^7.37.5",
"jsdom": "^21.1.0",
"next": "^15.3.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"next": "^16.1.1",
"react": "^19.2.1",
"react-dom": "^19.2.1",
"ts-node": "^10.9.1",
"typescript": "~5.4.0"
"typescript": "~5.8.3"
},
"peerDependencies": {
"@sitecore-content-sdk/core": "^1.1.0",
"next": "^15.3.1",
"react": "^19.1.0",
"react-dom": "^19.1.0"
"@sitecore-content-sdk/core": "^2.0.0",
"next": "^16.1.1",
"react": "^19.2.1",
"react-dom": "^19.2.1"
},
"types": "types/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/mapper/src/cast-item.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentRendering, Item } from '@sitecore-content-sdk/core/layout';
import { ComponentRendering, Item } from '@sitecore-content-sdk/content/layout';

export function castItem<T>(item: Item | ComponentRendering): T | null {
return item.fields as T;
Expand Down
26 changes: 13 additions & 13 deletions packages/navigation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@constellation4sitecore-content-sdk/navigation",
"version": "1.1.1",
"version": "2.0.0-beta.0",
"description": "A collection of XM Cloud compatible libraries for SXA Sitecore Development.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand All @@ -18,27 +18,27 @@
"url": "https://github.com/constellation4sitecore/content-sdk/issues"
},
"devDependencies": {
"@sitecore-content-sdk/nextjs": "^1.1.0",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.3",
"@sitecore-content-sdk/nextjs": "^2.0.0",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"del-cli": "^5.0.0",
"eslint": "^8.32.0",
"eslint-plugin-react": "^7.37.5",
"jsdom": "^21.1.0",
"next": "^15.3.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"next": "^16.1.1",
"react": "^19.2.1",
"react-dom": "^19.2.1",
"ts-node": "^10.9.1",
"typescript": "~5.4.0"
"typescript": "~5.8.3"
},
"peerDependencies": {
"@sitecore-content-sdk/nextjs": "^1.1.0",
"next": "^15.3.1",
"react": "^19.1.0",
"react-dom": "^19.1.0"
"@sitecore-content-sdk/nextjs": "^2.0.0",
"next": "^16.1.1",
"react": "^19.2.1",
"react-dom": "^19.2.1"
},
"dependencies": {
"@constellation4sitecore-content-sdk/data": "^1.1.1"
"@constellation4sitecore-content-sdk/data": "2.0.0-beta.0"
},
"types": "types/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/navigation/src/models/navigation-link.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Field } from '@sitecore-content-sdk/core/layout';
import { Field } from '@sitecore-content-sdk/content/layout';
import { LinkField } from '@sitecore-content-sdk/nextjs';

export interface NavigationLink {
Expand Down
22 changes: 11 additions & 11 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@constellation4sitecore-content-sdk/nextjs",
"version": "1.1.1",
"version": "2.0.0-beta.0",
"description": "A collection of XM Cloud compatible libraries for SXA Sitecore Development.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand All @@ -25,14 +25,14 @@
"/*.d.ts"
],
"devDependencies": {
"@sitecore-content-sdk/nextjs": "^1.1.0",
"@sitecore-content-sdk/nextjs": "^2.0.0",
"@types/chai": "^5.2.2",
"@types/chai-string": "^1.4.5",
"@types/debug": "^4.1.5",
"@types/mocha": "^10.0.10",
"@types/node": "~22.9.0",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.3",
"@types/node": "^24.10.4",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"chai": "^4.4.1",
"chai-string": "^1.6.0",
"copyfiles": "^2.4.1",
Expand All @@ -41,17 +41,17 @@
"eslint-plugin-react": "^7.37.5",
"jsdom": "^21.1.0",
"mocha": "^11.2.2",
"next": "^15.3.1",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"ts-node": "^10.9.1",
"typescript": "~5.4.0"
"next": "^16.1.1",
"react": "^19.2.1",
"react-dom": "^19.2.1",
"ts-node": "^10.9.2",
"typescript": "~5.8.3"
},
"dependencies": {
"debug": "^4.3.1"
},
"peerDependencies": {
"@sitecore-content-sdk/nextjs": "^1.1.0"
"@sitecore-content-sdk/nextjs": "^2.0.0"
},
"gitHead": "4724f2214e80450076a12e36844e89d6b81229c4"
}
6 changes: 2 additions & 4 deletions packages/nextjs/src/graphql-client-factory/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ export const createGraphQLClientFactory = () => {
const projectConfig = defineConfig({});
if (projectConfig.api?.edge?.contextId) {
clientConfig = {
endpoint: getEdgeProxyContentUrl(
projectConfig.api?.edge?.contextId,
projectConfig.api?.edge?.edgeUrl
),
endpoint: getEdgeProxyContentUrl(projectConfig.api?.edge?.edgeUrl),
contextId: projectConfig.api?.edge?.contextId,
};
} else if (projectConfig.api?.local?.apiHost && projectConfig.api?.local.apiKey) {
clientConfig = {
Expand Down
Loading