create-sitecore-jss 22.7.0-canary.2 → 22.7.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.
Files changed (71) hide show
  1. package/dist/templates/angular-xmcloud/package.json +2 -2
  2. package/dist/templates/nextjs/package.json +5 -5
  3. package/dist/templates/nextjs/scripts/templates/component-src.ts +1 -0
  4. package/dist/templates/nextjs/src/Bootstrap.tsx +1 -0
  5. package/dist/templates/nextjs/src/Layout.tsx +1 -1
  6. package/dist/templates/nextjs/src/Navigation.tsx +1 -0
  7. package/dist/templates/nextjs/src/NotFound.tsx +1 -0
  8. package/dist/templates/nextjs/src/Scripts.tsx +2 -0
  9. package/dist/templates/nextjs/src/components/ContentBlock.tsx +1 -0
  10. package/dist/templates/nextjs/src/lib/next-config/plugins/monorepo.js +2 -2
  11. package/dist/templates/nextjs/src/pages/404.tsx +1 -0
  12. package/dist/templates/nextjs/src/pages/[[...path]].tsx +1 -1
  13. package/dist/templates/nextjs/src/pages/_app.tsx +1 -0
  14. package/dist/templates/nextjs-styleguide/src/Navigation.tsx +1 -0
  15. package/dist/templates/nextjs-styleguide/src/components/fields/Styleguide-FieldUsage-Checkbox.tsx +1 -0
  16. package/dist/templates/nextjs-styleguide/src/components/fields/Styleguide-FieldUsage-ContentList.tsx +1 -0
  17. package/dist/templates/nextjs-styleguide/src/components/fields/Styleguide-FieldUsage-Date.tsx +1 -0
  18. package/dist/templates/nextjs-styleguide/src/components/fields/Styleguide-FieldUsage-File.tsx +1 -0
  19. package/dist/templates/nextjs-styleguide/src/components/fields/Styleguide-FieldUsage-Image.tsx +1 -0
  20. package/dist/templates/nextjs-styleguide/src/components/fields/Styleguide-FieldUsage-ItemLink.tsx +1 -0
  21. package/dist/templates/nextjs-styleguide/src/components/fields/Styleguide-FieldUsage-Link.tsx +1 -0
  22. package/dist/templates/nextjs-styleguide/src/components/fields/Styleguide-FieldUsage-Number.tsx +1 -0
  23. package/dist/templates/nextjs-styleguide/src/components/fields/Styleguide-FieldUsage-RichText.tsx +1 -0
  24. package/dist/templates/nextjs-styleguide/src/components/fields/Styleguide-FieldUsage-Text.tsx +1 -0
  25. package/dist/templates/nextjs-styleguide/src/components/graphql/GraphQL-ConnectedDemo.dynamic.tsx +1 -1
  26. package/dist/templates/nextjs-styleguide/src/components/graphql/GraphQL-IntegratedDemo.tsx +2 -3
  27. package/dist/templates/nextjs-styleguide/src/components/graphql/GraphQL-Layout.tsx +5 -1
  28. package/dist/templates/nextjs-styleguide/src/components/styleguide/Styleguide-ComponentParams.tsx +1 -0
  29. package/dist/templates/nextjs-styleguide/src/components/styleguide/Styleguide-CustomRouteType.tsx +2 -3
  30. package/dist/templates/nextjs-styleguide/src/components/styleguide/Styleguide-EditFrame.tsx +1 -0
  31. package/dist/templates/nextjs-styleguide/src/components/styleguide/Styleguide-Layout-Reuse.tsx +1 -0
  32. package/dist/templates/nextjs-styleguide/src/components/styleguide/Styleguide-Layout-Tabs-Tab.tsx +1 -0
  33. package/dist/templates/nextjs-styleguide/src/components/styleguide/Styleguide-Layout.tsx +1 -0
  34. package/dist/templates/nextjs-styleguide/src/components/styleguide/Styleguide-Multilingual.tsx +1 -0
  35. package/dist/templates/nextjs-styleguide/src/components/styleguide/Styleguide-RouteFields.tsx +1 -0
  36. package/dist/templates/nextjs-styleguide/src/components/styleguide/Styleguide-Section.tsx +1 -0
  37. package/dist/templates/nextjs-styleguide/src/components/styleguide/Styleguide-SitecoreContext.tsx +1 -0
  38. package/dist/templates/nextjs-styleguide/src/components/styleguide/Styleguide-Specimen.tsx +1 -0
  39. package/dist/templates/nextjs-styleguide/src/pages/_app.tsx +1 -0
  40. package/dist/templates/nextjs-styleguide-tracking/src/Navigation.tsx +1 -0
  41. package/dist/templates/nextjs-styleguide-tracking/src/Scripts.tsx +1 -0
  42. package/dist/templates/nextjs-sxa/scripts/templates/component-src.ts +1 -1
  43. package/dist/templates/nextjs-sxa/src/Layout.tsx +1 -1
  44. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-column-splitter.scss +2 -2
  45. package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_promo-shadow.scss +2 -2
  46. package/dist/templates/nextjs-sxa/src/components/ColumnSplitter.tsx +1 -1
  47. package/dist/templates/nextjs-sxa/src/components/Container.tsx +1 -1
  48. package/dist/templates/nextjs-sxa/src/components/Image.tsx +1 -1
  49. package/dist/templates/nextjs-sxa/src/components/LinkList.tsx +1 -1
  50. package/dist/templates/nextjs-sxa/src/components/Navigation.tsx +1 -1
  51. package/dist/templates/nextjs-sxa/src/components/PageContent.tsx +1 -1
  52. package/dist/templates/nextjs-sxa/src/components/PartialDesignDynamicPlaceholder.tsx +1 -1
  53. package/dist/templates/nextjs-sxa/src/components/Promo.tsx +1 -1
  54. package/dist/templates/nextjs-sxa/src/components/RichText.tsx +1 -1
  55. package/dist/templates/nextjs-sxa/src/components/RowSplitter.tsx +1 -1
  56. package/dist/templates/nextjs-sxa/src/components/Title.tsx +1 -1
  57. package/dist/templates/nextjs-sxa/src/lib/next-config/plugins/sass.js +3 -0
  58. package/dist/templates/nextjs-sxa/src/pages/404.tsx +1 -0
  59. package/dist/templates/nextjs-sxa/src/pages/500.tsx +1 -0
  60. package/dist/templates/nextjs-sxa/src/pages/_app.tsx +1 -0
  61. package/dist/templates/nextjs-xmcloud/package.json +2 -2
  62. package/dist/templates/nextjs-xmcloud/scripts/templates/byoc-component-src.ts +1 -1
  63. package/dist/templates/nextjs-xmcloud/src/Bootstrap.tsx +1 -1
  64. package/dist/templates/nextjs-xmcloud/src/Scripts.tsx +1 -0
  65. package/dist/templates/nextjs-xmcloud/src/byoc/index.tsx +1 -1
  66. package/dist/templates/nextjs-xmcloud/src/components/CdpPageView.tsx +1 -0
  67. package/dist/templates/nextjs-xmcloud/src/components/FEAASScripts.tsx +1 -0
  68. package/dist/templates/nextjs-xmcloud/src/pages/[[...path]].tsx +1 -1
  69. package/dist/templates/nextjs-xmcloud/src/pages/feaas/render.tsx +1 -0
  70. package/dist/templates/react/package.json +2 -2
  71. package/package.json +2 -2
@@ -8,8 +8,8 @@
8
8
  "prepare:proxy-build": "ts-node --project src/tsconfig.webpack-server.json ./scripts/proxy-build.ts"
9
9
  },
10
10
  "dependencies": {
11
- "@sitecore-cloudsdk/core": "^0.5.0",
12
- "@sitecore-cloudsdk/events": "^0.5.0",
11
+ "@sitecore-cloudsdk/core": "^0.5.1",
12
+ "@sitecore-cloudsdk/events": "^0.5.1",
13
13
  "font-awesome": "^4.7.0",
14
14
  "sass": "^1.52.3",
15
15
  "sass-alias": "^1.0.5"
@@ -28,10 +28,10 @@
28
28
  "@sitecore-jss/sitecore-jss-nextjs": "<%- version %>",
29
29
  "graphql": "~15.8.0",
30
30
  "graphql-tag": "^2.12.6",
31
- "next": "^14.2.18",
31
+ "next": "^15.3.1",
32
32
  "next-localization": "^0.12.0",
33
- "react": "^18.2.0",
34
- "react-dom": "^18.2.0",
33
+ "react": "^19.1.0",
34
+ "react-dom": "^19.1.0",
35
35
  "sharp": "0.32.6"
36
36
  },
37
37
  "devDependencies": {
@@ -46,8 +46,8 @@
46
46
  "@sitecore-jss/sitecore-jss-cli": "<%- version %>",
47
47
  "@sitecore-jss/sitecore-jss-dev-tools": "<%- version %>",
48
48
  "@types/node": "^22.9.0",
49
- "@types/react": "^18.2.22",
50
- "@types/react-dom": "^18.0.5",
49
+ "@types/react": "^19.1.2",
50
+ "@types/react-dom": "^19.1.3",
51
51
  "@typescript-eslint/eslint-plugin": "^8.14.0",
52
52
  "@typescript-eslint/parser": "^8.14.0",
53
53
  "chalk": "~4.1.2",
@@ -6,6 +6,7 @@
6
6
  function generateComponentSrc(componentName: string): string {
7
7
  return `import { Text, Field, withDatasourceCheck } from '@sitecore-jss/sitecore-jss-nextjs';
8
8
  import { ComponentProps } from 'lib/component-props';
9
+ import { JSX } from 'react';
9
10
 
10
11
  type ${componentName}Props = ComponentProps & {
11
12
  fields: {
@@ -1,4 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ import { JSX } from 'react';
2
3
  import { SitecorePageProps } from 'lib/page-props';
3
4
 
4
5
  /**
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { JSX } from 'react';
2
2
  import Head from 'next/head';
3
3
  import { Placeholder, LayoutServiceData, Field, HTMLLink } from '@sitecore-jss/sitecore-jss-nextjs';
4
4
  import config from 'temp/config';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import config from 'temp/config';
2
3
 
3
4
  // Prefix public assets with a public URL to enable compatibility with Sitecore editors.
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import Head from 'next/head';
2
3
 
3
4
  /**
@@ -1,3 +1,5 @@
1
+ import { JSX } from 'react';
2
+
1
3
  const Scripts = (): JSX.Element | null => {
2
4
  return null;
3
5
  };
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { Text, RichText, Field, withDatasourceCheck } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import { ComponentProps } from 'lib/component-props';
3
4
 
@@ -5,7 +5,7 @@ const monorepoPlugin = (nextConfig = {}) => {
5
5
  return Object.assign({}, nextConfig, {
6
6
  webpack: (config, options) => {
7
7
  if (options.isServer) {
8
- config.externals = ['react', 'vertx', ...config.externals];
8
+ config.externals = ['vertx', ...config.externals];
9
9
  }
10
10
 
11
11
  // Overload the Webpack config if it was already overloaded
@@ -14,7 +14,7 @@ const monorepoPlugin = (nextConfig = {}) => {
14
14
  }
15
15
 
16
16
  return config;
17
- }
17
+ },
18
18
  });
19
19
  };
20
20
 
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import NotFound from 'src/NotFound';
2
3
 
3
4
  const Custom404 = (): JSX.Element => <NotFound />;
@@ -1,4 +1,4 @@
1
- import { useEffect } from 'react';
1
+ import { useEffect, JSX } from 'react';
2
2
  <% if (prerender === 'SSG') { -%>
3
3
  import { GetStaticPaths, GetStaticProps } from 'next';
4
4
  <% } else if (prerender === 'SSR') { -%>
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import type { AppProps } from 'next/app';
2
3
  import { I18nProvider } from 'next-localization';
3
4
  import { SitecorePageProps } from 'lib/page-props';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import Link from 'next/link';
2
3
  import { useI18n } from 'next-localization';
3
4
  import config from 'temp/config';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { Field, getFieldValue } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import StyleguideSpecimen from 'components/styleguide/Styleguide-Specimen';
3
4
  import { ComponentProps } from 'lib/component-props';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { Field, Text, Item, withDatasourceCheck } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import StyleguideSpecimen from 'components/styleguide/Styleguide-Specimen';
3
4
  import { ComponentProps } from 'lib/component-props';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { DateField, Field, withDatasourceCheck } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import StyleguideSpecimen from 'components/styleguide/Styleguide-Specimen';
3
4
  import { ComponentProps } from 'lib/component-props';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { File, FileField, withDatasourceCheck } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import StyleguideSpecimen from 'components/styleguide/Styleguide-Specimen';
3
4
  import { ComponentProps } from 'lib/component-props';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { NextImage, ImageField, withDatasourceCheck } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import StyleguideSpecimen from 'components/styleguide/Styleguide-Specimen';
3
4
  import { ComponentProps } from 'lib/component-props';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { Field, Text, Item, withDatasourceCheck } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import StyleguideSpecimen from 'components/styleguide/Styleguide-Specimen';
3
4
  import { ComponentProps } from 'lib/component-props';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { Link, LinkField, withDatasourceCheck } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import StyleguideSpecimen from 'components/styleguide/Styleguide-Specimen';
3
4
  import { ComponentProps } from 'lib/component-props';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { Text, Field, getFieldValue, withDatasourceCheck } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import StyleguideSpecimen from 'components/styleguide/Styleguide-Specimen';
3
4
  import { ComponentProps } from 'lib/component-props';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { RichText, Field, withDatasourceCheck } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import StyleguideSpecimen from 'components/styleguide/Styleguide-Specimen';
3
4
  import { ComponentProps } from 'lib/component-props';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { Text, Field, getFieldValue, withDatasourceCheck } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import StyleguideSpecimen from 'components/styleguide/Styleguide-Specimen';
3
4
  import { ComponentProps } from 'lib/component-props';
@@ -1,4 +1,4 @@
1
- import React, { useEffect } from 'react';
1
+ import React, { JSX, useEffect } from 'react';
2
2
  import {
3
3
  Text,
4
4
  Link,
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { Text, Link, withDatasourceCheck } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import { ComponentProps } from 'lib/component-props';
3
4
  import NextLink from 'next/link';
@@ -114,9 +115,7 @@ const GraphQLIntegratedDemo = (props: GraphQlIntegratedDemoProps): JSX.Element =
114
115
  <ul>
115
116
  {contextItem.children.results.map((child: Item) => (
116
117
  <li key={child.id}>
117
- <NextLink href={child.url.path}>
118
- {child.pageTitle.value}
119
- </NextLink>
118
+ <NextLink href={child.url.path}>{child.pageTitle.value}</NextLink>
120
119
  &nbsp; (editable title too! <Text field={child.pageTitle.jsonValue} />)
121
120
  </li>
122
121
  ))}
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { Placeholder, useSitecoreContext } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import { ComponentProps } from 'lib/component-props';
3
4
 
@@ -28,7 +29,10 @@ const GraphQLLayout = ({ rendering }: ComponentProps): JSX.Element => {
28
29
  </>
29
30
  )}
30
31
  {!disconnectedMode && (
31
- <Placeholder name="<%- helper.getAppPrefix(appPrefix, appName) %>jss-graphql-layout" rendering={rendering} />
32
+ <Placeholder
33
+ name="<%- helper.getAppPrefix(appPrefix, appName) %>jss-graphql-layout"
34
+ rendering={rendering}
35
+ />
32
36
  )}
33
37
  </div>
34
38
  );
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import StyleguideSpecimen from './Styleguide-Specimen';
2
3
  import { ComponentProps } from 'lib/component-props';
3
4
  import { StyleguideSpecimenFields } from 'lib/component-props/styleguide';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import Link from 'next/link';
2
3
  import { useSitecoreContext, Text, RichText, Field } from '@sitecore-jss/sitecore-jss-nextjs';
3
4
 
@@ -27,9 +28,7 @@ const StyleguideCustomRouteType = (): JSX.Element => {
27
28
 
28
29
  <RichText field={fields.content} />
29
30
 
30
- <Link href="/styleguide">
31
- Return to the Styleguide
32
- </Link>
31
+ <Link href="/styleguide">Return to the Styleguide</Link>
33
32
  </div>
34
33
  );
35
34
  };
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { Field, Item, withDatasourceCheck } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import { ComponentProps } from 'lib/component-props';
3
4
  import { EditFrame } from '@sitecore-jss/sitecore-jss-nextjs';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { Placeholder } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import StyleguideSpecimen from './Styleguide-Specimen';
3
4
  import { ComponentProps } from 'lib/component-props';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import {
2
3
  Text,
3
4
  RichText,
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import {
2
3
  Placeholder,
3
4
  getChildPlaceholder,
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { Text, Field, withDatasourceCheck } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import Link from 'next/link';
3
4
  import { useI18n } from 'next-localization';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import Link from 'next/link';
2
3
  import { Text, Field, useSitecoreContext } from '@sitecore-jss/sitecore-jss-nextjs';
3
4
  import StyleguideSpecimen from './Styleguide-Specimen';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { Field, Placeholder, Text, withDatasourceCheck } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import { ComponentProps } from 'lib/component-props';
3
4
 
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { useSitecoreContext } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import StyleguideSpecimen from './Styleguide-Specimen';
3
4
  import { ComponentProps } from 'lib/component-props';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { Text, RichText, withDatasourceCheck } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  import { ComponentProps } from 'lib/component-props';
3
4
  import { StyleguideSpecimenFields } from 'lib/component-props/styleguide';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import type { AppProps } from 'next/app';
2
3
  import Router from 'next/router';
3
4
  import { I18nProvider } from 'next-localization';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import Link from 'next/link';
2
3
  import { useI18n } from 'next-localization';
3
4
  import config from 'temp/config';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { VisitorIdentification } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
 
3
4
  const Scripts = (): JSX.Element => {
@@ -4,7 +4,7 @@
4
4
  * @returns component src boilerplate as a string
5
5
  */
6
6
  function generateComponentSrc(componentName: string): string {
7
- return `import React from 'react';
7
+ return `import { JSX } from 'react';
8
8
  import { ComponentParams, ComponentRendering } from '@sitecore-jss/sitecore-jss-nextjs';
9
9
 
10
10
  interface ${componentName}Props {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This Layout is needed for Starter Kit.
3
3
  */
4
- import React from 'react';
4
+ import { JSX } from 'react';
5
5
  import Head from 'next/head';
6
6
  import { Placeholder, LayoutServiceData, Field, HTMLLink } from '@sitecore-jss/sitecore-jss-nextjs';
7
7
  import config from 'temp/config';
@@ -3,8 +3,8 @@
3
3
  .row.column-splitter {
4
4
  margin-left: 0;
5
5
  margin-right: 0;
6
- padding-left: $default-padding / 2;
7
- padding-right: $default-padding / 2;
6
+ padding-left: $default-padding * 0.5;
7
+ padding-right: $default-padding * 0.5;
8
8
  max-width: none;
9
9
 
10
10
  > div {
@@ -13,11 +13,11 @@
13
13
  float: left;
14
14
  }
15
15
  >.component-content {
16
+ padding: 15px;
17
+ margin: 0 0 30px 0;
16
18
  @include respond-to(all-mobile) {
17
19
  margin: 0 10px 30px 10px;
18
20
  }
19
- padding: 15px;
20
- margin: 0 0 30px 0;
21
21
  &:before, &:after {
22
22
  opacity: 0.7;
23
23
  box-shadow: 0 17px 10px rgba(0, 0, 0, 0.7);
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { JSX } from 'react';
2
2
  import {
3
3
  ComponentParams,
4
4
  ComponentRendering,
@@ -1,9 +1,9 @@
1
+ import { JSX } from 'react';
1
2
  import {
2
3
  ComponentParams,
3
4
  ComponentRendering,
4
5
  Placeholder,
5
6
  } from '@sitecore-jss/sitecore-jss-nextjs';
6
- import React from 'react';
7
7
 
8
8
  interface ComponentProps {
9
9
  rendering: ComponentRendering & { params: ComponentParams };
@@ -1,3 +1,4 @@
1
+ import { CSSProperties, JSX } from 'react';
1
2
  import {
2
3
  EditMode,
3
4
  Field,
@@ -8,7 +9,6 @@ import {
8
9
  Text,
9
10
  useSitecoreContext,
10
11
  } from '@sitecore-jss/sitecore-jss-nextjs';
11
- import React, { CSSProperties } from 'react';
12
12
 
13
13
  interface Fields {
14
14
  Image: ImageField & { metadata?: { [key: string]: unknown } };
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { JSX } from 'react';
2
2
  import { Link as JssLink, Text, LinkField, TextField } from '@sitecore-jss/sitecore-jss-nextjs';
3
3
 
4
4
  type ResultsFieldLink = {
@@ -1,4 +1,4 @@
1
- import React, { useState } from 'react';
1
+ import { useState, JSX } from 'react';
2
2
  import {
3
3
  Link,
4
4
  LinkField,
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { JSX } from 'react';
2
2
  import {
3
3
  RichText as JssRichText,
4
4
  useSitecoreContext,
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { JSX } from 'react';
2
2
  import { Placeholder, ComponentRendering } from '@sitecore-jss/sitecore-jss-nextjs';
3
3
 
4
4
  type DynamicPlaceholderProps = {
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { JSX } from 'react';
2
2
  import {
3
3
  NextImage as JssImage,
4
4
  Link as JssLink,
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { JSX } from 'react';
2
2
  import { Field, RichText as JssRichText } from '@sitecore-jss/sitecore-jss-nextjs';
3
3
 
4
4
  interface Fields {
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { JSX } from 'react';
2
2
  import {
3
3
  ComponentParams,
4
4
  ComponentRendering,
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import {
2
3
  Link,
3
4
  LinkField,
@@ -5,7 +6,6 @@ import {
5
6
  TextField,
6
7
  useSitecoreContext,
7
8
  } from '@sitecore-jss/sitecore-jss-nextjs';
8
- import React from 'react';
9
9
 
10
10
  interface Fields {
11
11
  data: {
@@ -11,6 +11,9 @@ const SassAlias = require('sass-alias');
11
11
  '@sass': path.join(__dirname, '../../../assets', 'sass'),
12
12
  '@fontawesome': path.join(__dirname, '../../../../node_modules', 'font-awesome'),
13
13
  }).getImporter(),
14
+ // temporary measure until new versions of bootstrap and font-awesome released
15
+ quietDeps: true,
16
+ silenceDeprecations: ["import", "legacy-js-api"],
14
17
  },
15
18
  });
16
19
  };
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import config from 'temp/config';
2
3
  import {
3
4
  GraphQLErrorPagesService,
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import Head from 'next/head';
2
3
  import {
3
4
  GraphQLErrorPagesService,
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import type { AppProps } from 'next/app';
2
3
  import { I18nProvider } from 'next-localization';
3
4
  import { SitecorePageProps } from 'lib/page-props';
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "@sitecore/components": "~2.0.1",
4
- "@sitecore-cloudsdk/core": "^0.5.0",
5
- "@sitecore-cloudsdk/events": "^0.5.0",
4
+ "@sitecore-cloudsdk/core": "^0.5.1",
5
+ "@sitecore-cloudsdk/events": "^0.5.1",
6
6
  "@sitecore-feaas/clientside": "^0.5.19"
7
7
  }
8
8
  }
@@ -4,7 +4,7 @@
4
4
  * @returns component src boilerplate as a string
5
5
  */
6
6
  function generateComponentSrc(componentName: string): string {
7
- return `import React from 'react';
7
+ return `import { JSX } from 'react';
8
8
  import * as FEAAS from '@sitecore-feaas/clientside/react';
9
9
 
10
10
  interface ${componentName}Props {
@@ -1,4 +1,4 @@
1
- import { useEffect } from 'react';
1
+ import { useEffect, JSX } from 'react';
2
2
  import { SitecorePageProps } from 'lib/page-props';
3
3
  import { CloudSDK } from '@sitecore-cloudsdk/core/browser';
4
4
  import '@sitecore-cloudsdk/events/browser';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { EditingScripts } from '@sitecore-jss/sitecore-jss-nextjs';
2
3
  // The BYOC bundle imports external (BYOC) components into the app and makes sure they are ready to be used
3
4
  import BYOC from 'src/byoc';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { JSX } from 'react';
2
2
  import * as FEAAS from '@sitecore-feaas/clientside/react';
3
3
  import * as Events from '@sitecore-cloudsdk/events/browser';
4
4
  import '@sitecore/components/context';
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import {
2
3
  CdpHelper,
3
4
  LayoutServicePageState,
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import Image from 'next/image';
2
3
  import * as FEAAS from '@sitecore-feaas/clientside/react';
3
4
  import nextConfig from 'next.config';
@@ -1,4 +1,4 @@
1
- import { useEffect } from 'react';
1
+ import { useEffect, JSX } from 'react';
2
2
  <% if (prerender === 'SSG') { -%>
3
3
  import { GetStaticPaths, GetStaticProps } from 'next';
4
4
  <% } else if (prerender === 'SSR') { -%>
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  import { GetServerSideProps } from 'next';
2
3
  import BYOC from 'src/byoc';
3
4
  import * as FEAAS from '@sitecore-feaas/clientside/react';
@@ -35,9 +35,9 @@
35
35
  "graphql": "~16.8.1",
36
36
  "graphql-tag": "~2.12.6",
37
37
  "i18next": "^22.0.6",
38
- "react": "^18.2.0",
38
+ "react": "^19.0.0",
39
39
  "react-app-polyfill": "^3.0.0",
40
- "react-dom": "^18.2.0",
40
+ "react-dom": "^19.0.0",
41
41
  "react-helmet": "~6.1.0",
42
42
  "react-i18next": "~12.0.0",
43
43
  "react-router-dom": "~6.4.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sitecore-jss",
3
- "version": "22.7.0-canary.2",
3
+ "version": "22.7.0-canary.4",
4
4
  "description": "Sitecore JSS initializer",
5
5
  "bin": "./dist/index.js",
6
6
  "scripts": {
@@ -65,5 +65,5 @@
65
65
  "ts-node": "^10.9.1",
66
66
  "typescript": "~5.6.3"
67
67
  },
68
- "gitHead": "ca9f11c61d1477426d308dc99369074a8e562a40"
68
+ "gitHead": "7ddcfed26e5f7532df7c57965b54afbc4225c136"
69
69
  }