create-sitecore-jss 22.4.0-canary.8 → 22.4.0

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 (437) hide show
  1. package/LICENSE.MD +202 -202
  2. package/README.md +10 -10
  3. package/dist/templates/angular/.eslintignore +3 -3
  4. package/dist/templates/angular/.eslintrc +66 -66
  5. package/dist/templates/angular/LICENSE.txt +202 -202
  6. package/dist/templates/angular/README.md +13 -13
  7. package/dist/templates/angular/angular.json +171 -171
  8. package/dist/templates/angular/e2e/tsconfig.e2e.json +15 -15
  9. package/dist/templates/angular/gitignore +52 -52
  10. package/dist/templates/angular/package.json +116 -116
  11. package/dist/templates/angular/scripts/temp/gitignore +2 -2
  12. package/dist/templates/angular/src/app/app.component.html +1 -1
  13. package/dist/templates/angular/src/app/components/content-block/content-block.component.html +4 -4
  14. package/dist/templates/angular/src/app/components/gitignore +7 -7
  15. package/dist/templates/angular/src/app/routing/layout/layout.component.html +17 -17
  16. package/dist/templates/angular/src/app/routing/navigation/navigation.component.html +20 -20
  17. package/dist/templates/angular/src/app/routing/not-found/not-found.component.html +7 -7
  18. package/dist/templates/angular/src/app/routing/scripts/scripts.component.html +1 -1
  19. package/dist/templates/angular/src/app/routing/server-error/server-error.component.html +3 -3
  20. package/dist/templates/angular/src/assets/images/sc_logo.svg +52 -52
  21. package/dist/templates/angular/src/environments/gitignore +1 -1
  22. package/dist/templates/angular/src/index.html +12 -12
  23. package/dist/templates/angular/src/styles.css +34 -34
  24. package/dist/templates/angular/src/tsconfig.app.json +21 -21
  25. package/dist/templates/angular/src/tsconfig.server.json +20 -20
  26. package/dist/templates/angular/src/tsconfig.spec.json +24 -24
  27. package/dist/templates/angular/src/tsconfig.webpack-server.json +6 -6
  28. package/dist/templates/angular/tsconfig.json +38 -38
  29. package/dist/templates/angular-sxp/.env +2 -2
  30. package/dist/templates/angular-sxp/angular.json +13 -13
  31. package/dist/templates/angular-sxp/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  32. package/dist/templates/angular-sxp/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  33. package/dist/templates/angular-sxp/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  34. package/dist/templates/angular-sxp/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  35. package/dist/templates/angular-sxp/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  36. package/dist/templates/angular-sxp/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  37. package/dist/templates/angular-sxp/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  38. package/dist/templates/angular-sxp/data/dictionary/en.yml +4 -4
  39. package/dist/templates/angular-sxp/data/dictionary/{{language}}.yml +4 -4
  40. package/dist/templates/angular-sxp/data/routes/en.yml +61 -61
  41. package/dist/templates/angular-sxp/data/routes/graphql/en.yml +27 -27
  42. package/dist/templates/angular-sxp/data/routes/graphql/sample-1/en.yml +9 -9
  43. package/dist/templates/angular-sxp/data/routes/graphql/sample-2/en.yml +9 -9
  44. package/dist/templates/angular-sxp/data/routes/styleguide/custom-route-type/en.yml +12 -12
  45. package/dist/templates/angular-sxp/data/routes/styleguide/en.yml +271 -271
  46. package/dist/templates/angular-sxp/data/routes/styleguide/{{language}}.yml +25 -25
  47. package/dist/templates/angular-sxp/data/routes/{{language}}.yml +4 -4
  48. package/dist/templates/angular-sxp/package.json +12 -12
  49. package/dist/templates/angular-sxp/sitecore/config/{{appName}}.config +90 -90
  50. package/dist/templates/angular-sxp/sitecore/definitions/components/graph-ql-integrated-demo.sitecore.graphql +71 -71
  51. package/dist/templates/angular-sxp/sitecore/gitignore +2 -2
  52. package/dist/templates/angular-sxp/src/app/components/graph-ql-connected-demo/graph-ql-connected-demo.component.graphql +69 -69
  53. package/dist/templates/angular-sxp/src/app/components/graph-ql-connected-demo/graph-ql-connected-demo.component.html +55 -55
  54. package/dist/templates/angular-sxp/src/app/components/graph-ql-integrated-demo/graph-ql-integrated-demo.component.html +47 -47
  55. package/dist/templates/angular-sxp/src/app/components/graph-ql-layout/graph-ql-layout.component.html +22 -22
  56. package/dist/templates/angular-sxp/src/app/components/styleguide-angular-lazy-loading/styleguide-angular-lazy-loading.component.html +5 -5
  57. package/dist/templates/angular-sxp/src/app/components/styleguide-component-params/styleguide-component-params.component.html +19 -19
  58. package/dist/templates/angular-sxp/src/app/components/styleguide-custom-route-type/styleguide-custom-route-type.component.html +14 -14
  59. package/dist/templates/angular-sxp/src/app/components/styleguide-edit-frame/styleguide-edit-frame.component.html +19 -19
  60. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-checkbox/styleguide-field-usage-checkbox.component.html +11 -11
  61. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-content-list/styleguide-field-usage-content-list.component.html +26 -26
  62. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-custom/styleguide-field-usage-custom.component.html +4 -4
  63. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-date/styleguide-field-usage-date.component.html +27 -27
  64. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-file/styleguide-field-usage-file.component.html +10 -10
  65. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-image/styleguide-field-usage-image.component.html +30 -30
  66. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-item-link/styleguide-field-usage-item-link.component.html +17 -17
  67. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-link/styleguide-field-usage-link.component.html +44 -44
  68. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-number/styleguide-field-usage-number.component.html +11 -11
  69. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-rich-text/styleguide-field-usage-rich-text.component.html +11 -11
  70. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-text/styleguide-field-usage-text.component.html +13 -13
  71. package/dist/templates/angular-sxp/src/app/components/styleguide-layout/styleguide-layout.component.html +20 -20
  72. package/dist/templates/angular-sxp/src/app/components/styleguide-layout-reuse/styleguide-layout-reuse.component.html +52 -52
  73. package/dist/templates/angular-sxp/src/app/components/styleguide-layout-tabs/styleguide-layout-tabs.component.html +37 -37
  74. package/dist/templates/angular-sxp/src/app/components/styleguide-layout-tabs-tab/styleguide-layout-tabs-tab.component.html +12 -12
  75. package/dist/templates/angular-sxp/src/app/components/styleguide-multilingual/styleguide-multilingual.component.html +15 -15
  76. package/dist/templates/angular-sxp/src/app/components/styleguide-route-fields/styleguide-route-fields.component.html +8 -8
  77. package/dist/templates/angular-sxp/src/app/components/styleguide-section/styleguide-section.component.html +7 -7
  78. package/dist/templates/angular-sxp/src/app/components/styleguide-sitecore-context/styleguide-sitecore-context.component.html +3 -3
  79. package/dist/templates/angular-sxp/src/app/components/styleguide-tracking/styleguide-tracking.component.html +175 -175
  80. package/dist/templates/angular-sxp/src/app/jss-data-fetcher.service.ts +6 -8
  81. package/dist/templates/angular-sxp/src/app/routing/navigation/navigation.component.html +23 -23
  82. package/dist/templates/angular-sxp/src/app/routing/scripts/scripts.component.html +3 -3
  83. package/dist/templates/angular-xmcloud/README.md +88 -88
  84. package/dist/templates/angular-xmcloud/angular.json +33 -33
  85. package/dist/templates/angular-xmcloud/package.json +17 -17
  86. package/dist/templates/angular-xmcloud/src/app/components/column-splitter/column-splitter.component.html +5 -5
  87. package/dist/templates/angular-xmcloud/src/app/components/container/container.component.html +14 -14
  88. package/dist/templates/angular-xmcloud/src/app/components/image/image.component.html +36 -36
  89. package/dist/templates/angular-xmcloud/src/app/components/link-list/link-list.component.html +15 -15
  90. package/dist/templates/angular-xmcloud/src/app/components/navigation/navigation-item.component.html +23 -23
  91. package/dist/templates/angular-xmcloud/src/app/components/navigation/navigation.component.html +21 -21
  92. package/dist/templates/angular-xmcloud/src/app/components/page-content/page-content.component.html +5 -5
  93. package/dist/templates/angular-xmcloud/src/app/components/partial-design-dynamic-placeholder/partial-design-dynamic-placeholder.component.html +1 -1
  94. package/dist/templates/angular-xmcloud/src/app/components/promo/promo.component.html +21 -21
  95. package/dist/templates/angular-xmcloud/src/app/components/richtext/richtext.component.html +8 -8
  96. package/dist/templates/angular-xmcloud/src/app/components/row-splitter/row-splitter.component.html +11 -11
  97. package/dist/templates/angular-xmcloud/src/app/components/title/title.component.html +10 -10
  98. package/dist/templates/angular-xmcloud/src/app/routing/layout/layout.component.html +38 -38
  99. package/dist/templates/angular-xmcloud/src/assets/styles/basic/_component.scss +48 -48
  100. package/dist/templates/angular-xmcloud/src/assets/styles/basic/_container.scss +64 -64
  101. package/dist/templates/angular-xmcloud/src/assets/styles/basic/_fonts.scss +3 -3
  102. package/dist/templates/angular-xmcloud/src/assets/styles/basic/_footer.scss +31 -31
  103. package/dist/templates/angular-xmcloud/src/assets/styles/basic/_header.scss +51 -51
  104. package/dist/templates/angular-xmcloud/src/assets/styles/basic/_navigation.scss +150 -150
  105. package/dist/templates/angular-xmcloud/src/assets/styles/basic/_promo.scss +58 -58
  106. package/dist/templates/angular-xmcloud/src/assets/styles/basic/_rich-text.scss +11 -11
  107. package/dist/templates/angular-xmcloud/src/assets/styles/basic/_variables.scss +9 -9
  108. package/dist/templates/angular-xmcloud/src/assets/styles/basic/main.scss +8 -8
  109. package/dist/templates/angular-xmcloud/src/assets/styles/main.scss +14 -14
  110. package/dist/templates/angular-xmcloud/src/assets/styles/sass/_app.scss +103 -103
  111. package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/_functions.scss +8 -8
  112. package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/_mixins.scss +121 -121
  113. package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/_vars.scss +3 -3
  114. package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/vars/_colors.scss +283 -283
  115. package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/vars/_fontSizes.scss +16 -16
  116. package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/vars/_margins.scss +10 -10
  117. package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/fonts/_fonts.scss +1 -1
  118. package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/fonts/index.scss +1 -1
  119. package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/index.scss +3 -3
  120. package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/links/_link-button.scss +26 -26
  121. package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/links/index.scss +1 -1
  122. package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/reset/_inputs.scss +58 -58
  123. package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/reset/_links.scss +14 -14
  124. package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/reset/_ui-datepicker.scss +7 -7
  125. package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/richtext/_richtext-files-icons.scss +86 -86
  126. package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/richtext/_richtext.scss +101 -101
  127. package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/richtext/index.scss +2 -2
  128. package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/typehead/_typehead.scss +95 -95
  129. package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/typehead/index.scss +1 -1
  130. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-column-splitter.scss +14 -14
  131. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-container.scss +27 -27
  132. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-image.scss +18 -18
  133. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-navigation.scss +51 -51
  134. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-promo.scss +42 -42
  135. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-richtext-content.scss +19 -19
  136. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_alignment.scss +25 -25
  137. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_boxed.scss +16 -16
  138. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_clearfix.scss +11 -11
  139. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_highlighted.scss +62 -62
  140. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_link-button.scss +16 -16
  141. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_promoted-box.scss +3 -3
  142. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/index.scss +5 -5
  143. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/container/_bordered.scss +23 -23
  144. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/container/_title-row-box.scss +66 -66
  145. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/container/index.scss +1 -1
  146. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/image/_image-default-size.scss +6 -6
  147. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/image/index.scss +1 -1
  148. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/image-alignment/_image-left.scss +3 -3
  149. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/image-alignment/_image-right.scss +3 -3
  150. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/index.scss +17 -17
  151. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/layout/_acaindent.scss +5 -5
  152. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/layout/_background.scss +27 -27
  153. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/layout/index.scss +1 -1
  154. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/link-list/_component-link-list.scss +45 -45
  155. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/link-list/_list-vertical.scss +20 -20
  156. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/link-list/index.scss +2 -2
  157. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_navigation-fat.scss +58 -58
  158. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_navigation-main-horizontal-vertical.scss +176 -176
  159. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_navigation-mobile.scss +85 -85
  160. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_navigation-sidebar.scss +29 -29
  161. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_sitemap-navigation.scss +20 -20
  162. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/index.scss +5 -5
  163. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/promo/_absolute-bottom-link.scss +8 -8
  164. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/promo/_promo-hero.scss +40 -40
  165. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/promo/_promo-shadow.scss +42 -42
  166. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/promo/index.scss +3 -3
  167. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/rich-text/_rich-text-lists.scss +63 -63
  168. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/rich-text/index.scss +1 -1
  169. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/spacing/_background-colors.scss +14 -14
  170. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/spacing/_indent.scss +13 -13
  171. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/spacing/index.scss +2 -2
  172. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/title/_component-title.scss +30 -30
  173. package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/title/index.scss +1 -1
  174. package/dist/templates/angular-xmcloud/src/assets/styles/sass/main.scss +4 -4
  175. package/dist/templates/angular-xmcloud/src/assets/styles/sass/variants/index.scss +5 -5
  176. package/dist/templates/nextjs/.eslintrc +31 -31
  177. package/dist/templates/nextjs/.gitattributes +11 -11
  178. package/dist/templates/nextjs/.graphql-let.yml +8 -8
  179. package/dist/templates/nextjs/.prettierrc +8 -8
  180. package/dist/templates/nextjs/.vscode/launch.json +15 -15
  181. package/dist/templates/nextjs/LICENSE.txt +202 -202
  182. package/dist/templates/nextjs/README.md +8 -8
  183. package/dist/templates/nextjs/gitignore +32 -32
  184. package/dist/templates/nextjs/package.json +87 -87
  185. package/dist/templates/nextjs/public/sc_logo.svg +52 -52
  186. package/dist/templates/nextjs/scripts/temp/gitignore +2 -2
  187. package/dist/templates/nextjs/sitecore/config/{{appName}}.config +165 -165
  188. package/dist/templates/nextjs/src/assets/app.css +36 -36
  189. package/dist/templates/nextjs/src/pages/[[...path]].tsx +1 -1
  190. package/dist/templates/nextjs/src/temp/GraphQLIntrospectionResult.json +22215 -22215
  191. package/dist/templates/nextjs/src/temp/gitignore +3 -3
  192. package/dist/templates/nextjs/tsconfig.json +38 -38
  193. package/dist/templates/nextjs/tsconfig.scripts.json +11 -11
  194. package/dist/templates/nextjs-styleguide/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  195. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  196. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  197. package/dist/templates/nextjs-styleguide/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  198. package/dist/templates/nextjs-styleguide/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  199. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  200. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  201. package/dist/templates/nextjs-styleguide/data/dictionary/en.yml +4 -4
  202. package/dist/templates/nextjs-styleguide/data/dictionary/{{language}}.yml +4 -4
  203. package/dist/templates/nextjs-styleguide/data/routes/en.yml +63 -63
  204. package/dist/templates/nextjs-styleguide/data/routes/graphql/en.yml +27 -27
  205. package/dist/templates/nextjs-styleguide/data/routes/graphql/sample-1/en.yml +9 -9
  206. package/dist/templates/nextjs-styleguide/data/routes/graphql/sample-2/en.yml +9 -9
  207. package/dist/templates/nextjs-styleguide/data/routes/styleguide/custom-route-type/en.yml +12 -12
  208. package/dist/templates/nextjs-styleguide/data/routes/styleguide/en.yml +259 -259
  209. package/dist/templates/nextjs-styleguide/data/routes/styleguide/{{language}}.yml +25 -25
  210. package/dist/templates/nextjs-styleguide/data/routes/{{language}}.yml +4 -4
  211. package/dist/templates/nextjs-styleguide/package.json +14 -14
  212. package/dist/templates/nextjs-styleguide/sitecore/definitions/components/graphql/GraphQL-IntegratedDemo.sitecore.graphql +71 -71
  213. package/dist/templates/nextjs-styleguide/sitecore/gitignore +3 -3
  214. package/dist/templates/nextjs-styleguide/src/components/graphql/GraphQL-ConnectedDemo.dynamic.graphql +69 -69
  215. package/dist/templates/nextjs-styleguide-tracking/data/dictionary/en.yml +5 -5
  216. package/dist/templates/nextjs-styleguide-tracking/data/routes/tracking/en.yml +8 -8
  217. package/dist/templates/nextjs-styleguide-tracking/src/lib/data-fetcher.ts +6 -6
  218. package/dist/templates/nextjs-sxa/package.json +11 -11
  219. package/dist/templates/nextjs-sxa/src/assets/basic/_component.scss +48 -48
  220. package/dist/templates/nextjs-sxa/src/assets/basic/_container.scss +64 -64
  221. package/dist/templates/nextjs-sxa/src/assets/basic/_fonts.scss +3 -3
  222. package/dist/templates/nextjs-sxa/src/assets/basic/_footer.scss +31 -31
  223. package/dist/templates/nextjs-sxa/src/assets/basic/_header.scss +49 -49
  224. package/dist/templates/nextjs-sxa/src/assets/basic/_navigation.scss +150 -150
  225. package/dist/templates/nextjs-sxa/src/assets/basic/_promo.scss +58 -58
  226. package/dist/templates/nextjs-sxa/src/assets/basic/_rich-text.scss +11 -11
  227. package/dist/templates/nextjs-sxa/src/assets/basic/_variables.scss +9 -9
  228. package/dist/templates/nextjs-sxa/src/assets/basic/main.scss +8 -8
  229. package/dist/templates/nextjs-sxa/src/assets/main.scss +4 -4
  230. package/dist/templates/nextjs-sxa/src/assets/sass/_app.scss +103 -103
  231. package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/_functions.scss +8 -8
  232. package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/_mixins.scss +121 -121
  233. package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/_vars.scss +3 -3
  234. package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/vars/_colors.scss +283 -283
  235. package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/vars/_fontSizes.scss +16 -16
  236. package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/vars/_margins.scss +10 -10
  237. package/dist/templates/nextjs-sxa/src/assets/sass/base/fonts/_fonts.scss +1 -1
  238. package/dist/templates/nextjs-sxa/src/assets/sass/base/fonts/index.scss +1 -1
  239. package/dist/templates/nextjs-sxa/src/assets/sass/base/index.scss +3 -3
  240. package/dist/templates/nextjs-sxa/src/assets/sass/base/links/_link-button.scss +26 -26
  241. package/dist/templates/nextjs-sxa/src/assets/sass/base/links/index.scss +1 -1
  242. package/dist/templates/nextjs-sxa/src/assets/sass/base/reset/_inputs.scss +58 -58
  243. package/dist/templates/nextjs-sxa/src/assets/sass/base/reset/_links.scss +14 -14
  244. package/dist/templates/nextjs-sxa/src/assets/sass/base/reset/_ui-datepicker.scss +7 -7
  245. package/dist/templates/nextjs-sxa/src/assets/sass/base/richtext/_richtext-files-icons.scss +86 -86
  246. package/dist/templates/nextjs-sxa/src/assets/sass/base/richtext/_richtext.scss +101 -101
  247. package/dist/templates/nextjs-sxa/src/assets/sass/base/richtext/index.scss +2 -2
  248. package/dist/templates/nextjs-sxa/src/assets/sass/base/typehead/_typehead.scss +95 -95
  249. package/dist/templates/nextjs-sxa/src/assets/sass/base/typehead/index.scss +1 -1
  250. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-column-splitter.scss +14 -14
  251. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-container.scss +27 -27
  252. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-image.scss +18 -18
  253. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-navigation.scss +51 -51
  254. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-promo.scss +42 -42
  255. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-richtext-content.scss +19 -19
  256. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_alignment.scss +53 -53
  257. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_boxed.scss +16 -16
  258. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_clearfix.scss +11 -11
  259. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_highlighted.scss +62 -62
  260. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_link-button.scss +16 -16
  261. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_promoted-box.scss +3 -3
  262. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/index.scss +5 -5
  263. package/dist/templates/nextjs-sxa/src/assets/sass/components/container/_bordered.scss +23 -23
  264. package/dist/templates/nextjs-sxa/src/assets/sass/components/container/_title-row-box.scss +66 -66
  265. package/dist/templates/nextjs-sxa/src/assets/sass/components/container/index.scss +1 -1
  266. package/dist/templates/nextjs-sxa/src/assets/sass/components/image/_image-default-size.scss +6 -6
  267. package/dist/templates/nextjs-sxa/src/assets/sass/components/image/index.scss +1 -1
  268. package/dist/templates/nextjs-sxa/src/assets/sass/components/image-alignment/_image-left.scss +3 -3
  269. package/dist/templates/nextjs-sxa/src/assets/sass/components/image-alignment/_image-right.scss +3 -3
  270. package/dist/templates/nextjs-sxa/src/assets/sass/components/index.scss +17 -17
  271. package/dist/templates/nextjs-sxa/src/assets/sass/components/layout/_acaindent.scss +5 -5
  272. package/dist/templates/nextjs-sxa/src/assets/sass/components/layout/_background.scss +27 -27
  273. package/dist/templates/nextjs-sxa/src/assets/sass/components/layout/index.scss +1 -1
  274. package/dist/templates/nextjs-sxa/src/assets/sass/components/link-list/_component-link-list.scss +45 -45
  275. package/dist/templates/nextjs-sxa/src/assets/sass/components/link-list/_list-vertical.scss +20 -20
  276. package/dist/templates/nextjs-sxa/src/assets/sass/components/link-list/index.scss +2 -2
  277. package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-fat.scss +58 -58
  278. package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-main-horizontal-vertical.scss +176 -176
  279. package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-mobile.scss +85 -85
  280. package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-sidebar.scss +29 -29
  281. package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_sitemap-navigation.scss +20 -20
  282. package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/index.scss +5 -5
  283. package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_absolute-bottom-link.scss +8 -8
  284. package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_promo-hero.scss +40 -40
  285. package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_promo-shadow.scss +42 -42
  286. package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/index.scss +3 -3
  287. package/dist/templates/nextjs-sxa/src/assets/sass/components/rich-text/_rich-text-lists.scss +63 -63
  288. package/dist/templates/nextjs-sxa/src/assets/sass/components/rich-text/index.scss +1 -1
  289. package/dist/templates/nextjs-sxa/src/assets/sass/components/spacing/_background-colors.scss +14 -14
  290. package/dist/templates/nextjs-sxa/src/assets/sass/components/spacing/_indent.scss +13 -13
  291. package/dist/templates/nextjs-sxa/src/assets/sass/components/spacing/index.scss +2 -2
  292. package/dist/templates/nextjs-sxa/src/assets/sass/components/title/_component-title.scss +30 -30
  293. package/dist/templates/nextjs-sxa/src/assets/sass/components/title/index.scss +1 -1
  294. package/dist/templates/nextjs-sxa/src/assets/sass/main.scss +4 -4
  295. package/dist/templates/nextjs-sxa/src/assets/sass/variants/index.scss +5 -5
  296. package/dist/templates/nextjs-sxa/src/pages/404.tsx +1 -1
  297. package/dist/templates/nextjs-sxa/src/pages/500.tsx +1 -1
  298. package/dist/templates/nextjs-sxa/src/pages/api/sitemap.ts +23 -12
  299. package/dist/templates/nextjs-xmcloud/.env +19 -19
  300. package/dist/templates/nextjs-xmcloud/package.json +8 -8
  301. package/dist/templates/nextjs-xmcloud/src/Bootstrap.tsx +1 -2
  302. package/dist/templates/nextjs-xmcloud/src/lib/page-props-factory/plugins/preview-mode.ts +0 -45
  303. package/dist/templates/node-headless-ssr-experience-edge/README.md +56 -56
  304. package/dist/templates/node-headless-ssr-experience-edge/gitignore +19 -19
  305. package/dist/templates/node-headless-ssr-experience-edge/package.json +34 -34
  306. package/dist/templates/node-headless-ssr-experience-edge/tsconfig.json +22 -22
  307. package/dist/templates/node-headless-ssr-proxy/.vscode/launch.json +47 -47
  308. package/dist/templates/node-headless-ssr-proxy/LICENSE.txt +202 -202
  309. package/dist/templates/node-headless-ssr-proxy/README.md +65 -65
  310. package/dist/templates/node-headless-ssr-proxy/gitignore +19 -19
  311. package/dist/templates/node-headless-ssr-proxy/package.json +39 -39
  312. package/dist/templates/node-headless-ssr-proxy/src/error.html +200 -200
  313. package/dist/templates/node-headless-ssr-proxy/tsconfig.json +22 -22
  314. package/dist/templates/node-xmcloud-proxy/README.md +156 -156
  315. package/dist/templates/node-xmcloud-proxy/gitignore +33 -33
  316. package/dist/templates/node-xmcloud-proxy/package.json +26 -26
  317. package/dist/templates/node-xmcloud-proxy/tsconfig.json +22 -22
  318. package/dist/templates/react/.prettierrc +9 -9
  319. package/dist/templates/react/LICENSE.txt +202 -202
  320. package/dist/templates/react/README.md +2402 -2402
  321. package/dist/templates/react/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  322. package/dist/templates/react/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  323. package/dist/templates/react/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  324. package/dist/templates/react/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  325. package/dist/templates/react/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  326. package/dist/templates/react/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  327. package/dist/templates/react/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  328. package/dist/templates/react/data/dictionary/en.yml +4 -4
  329. package/dist/templates/react/data/dictionary/{{language}}.yml +4 -4
  330. package/dist/templates/react/data/routes/en.yml +61 -61
  331. package/dist/templates/react/data/routes/graphql/en.yml +27 -27
  332. package/dist/templates/react/data/routes/graphql/sample-1/en.yml +9 -9
  333. package/dist/templates/react/data/routes/graphql/sample-2/en.yml +9 -9
  334. package/dist/templates/react/data/routes/styleguide/custom-route-type/en.yml +12 -12
  335. package/dist/templates/react/data/routes/styleguide/en.yml +263 -263
  336. package/dist/templates/react/data/routes/styleguide/{{language}}.yml +26 -26
  337. package/dist/templates/react/data/routes/{{language}}.yml +4 -4
  338. package/dist/templates/react/gitignore +25 -25
  339. package/dist/templates/react/package.json +0 -1
  340. package/dist/templates/react/public/index.html +35 -35
  341. package/dist/templates/react/server/server.js +0 -4
  342. package/dist/templates/react/sitecore/config/{{appName}}.config +90 -90
  343. package/dist/templates/react/sitecore/definitions/components/graphql/GraphQL-IntegratedDemo.sitecore.graphql +71 -71
  344. package/dist/templates/react/sitecore/gitignore +2 -2
  345. package/dist/templates/react/src/assets/sc_logo.svg +52 -52
  346. package/dist/templates/react/src/components/graphql/query.graphql +69 -69
  347. package/dist/templates/react/src/dataFetcher.js +12 -9
  348. package/dist/templates/react/src/temp/GraphQLFragmentTypes.json +207 -207
  349. package/dist/templates/react/src/temp/gitignore +3 -3
  350. package/dist/templates/react-native/.buckconfig +6 -6
  351. package/dist/templates/react-native/.eslintrc +74 -74
  352. package/dist/templates/react-native/.gitattributes +1 -1
  353. package/dist/templates/react-native/.prettierrc +9 -9
  354. package/dist/templates/react-native/.vscode/launch.json +42 -42
  355. package/dist/templates/react-native/.vscode/settings.json +1 -1
  356. package/dist/templates/react-native/LICENSE.txt +202 -202
  357. package/dist/templates/react-native/README.MD +115 -115
  358. package/dist/templates/react-native/android/app/BUCK +55 -55
  359. package/dist/templates/react-native/android/app/build.gradle +201 -201
  360. package/dist/templates/react-native/android/app/build_defs.bzl +19 -19
  361. package/dist/templates/react-native/android/app/proguard-rules.pro +10 -10
  362. package/dist/templates/react-native/android/app/src/debug/AndroidManifest.xml +8 -8
  363. package/dist/templates/react-native/android/app/src/main/AndroidManifest.xml +26 -26
  364. package/dist/templates/react-native/android/app/src/main/java/com/{{appName}}/MainActivity.java +15 -15
  365. package/dist/templates/react-native/android/app/src/main/java/com/{{appName}}/MainApplication.java +74 -74
  366. package/dist/templates/react-native/android/app/src/main/res/values/strings.xml +3 -3
  367. package/dist/templates/react-native/android/app/src/main/res/values/styles.xml +9 -9
  368. package/dist/templates/react-native/android/build.gradle +38 -38
  369. package/dist/templates/react-native/android/gradle/wrapper/gradle-wrapper.properties +5 -5
  370. package/dist/templates/react-native/android/gradle.properties +21 -21
  371. package/dist/templates/react-native/android/gradlew +188 -188
  372. package/dist/templates/react-native/android/gradlew.bat +100 -100
  373. package/dist/templates/react-native/android/settings.gradle +3 -3
  374. package/dist/templates/react-native/app.json +3 -3
  375. package/dist/templates/react-native/assets/img/sc_logo.svg +52 -52
  376. package/dist/templates/react-native/data/content/Styleguide/ItemLinkField/Item1/en.json +10 -10
  377. package/dist/templates/react-native/data/routes/en.json +22 -22
  378. package/dist/templates/react-native/data/routes/styleguide/en.json +227 -227
  379. package/dist/templates/react-native/data/routes/styleguide/{{language}}.json +31 -31
  380. package/dist/templates/react-native/data/routes/{{language}}.json +7 -7
  381. package/dist/templates/react-native/gitignore +60 -60
  382. package/dist/templates/react-native/ios/Podfile +53 -53
  383. package/dist/templates/react-native/ios/{{appName}}/AppDelegate.h +15 -15
  384. package/dist/templates/react-native/ios/{{appName}}/AppDelegate.m +42 -42
  385. package/dist/templates/react-native/ios/{{appName}}/Base.lproj/LaunchScreen.xib +42 -42
  386. package/dist/templates/react-native/ios/{{appName}}/Images.xcassets/AppIcon.appiconset/Contents.json +38 -38
  387. package/dist/templates/react-native/ios/{{appName}}/Images.xcassets/Contents.json +6 -6
  388. package/dist/templates/react-native/ios/{{appName}}/Info.plist +57 -57
  389. package/dist/templates/react-native/ios/{{appName}}/main.m +16 -16
  390. package/dist/templates/react-native/ios/{{appName}}-tvOS/Info.plist +53 -53
  391. package/dist/templates/react-native/ios/{{appName}}-tvOSTests/Info.plist +24 -24
  392. package/dist/templates/react-native/ios/{{appName}}.xcodeproj/xcshareddata/xcschemes/BasicSampleReactNative-tvOS.xcscheme +129 -129
  393. package/dist/templates/react-native/ios/{{appName}}.xcodeproj/xcshareddata/xcschemes/BasicSampleReactNative.xcscheme +129 -129
  394. package/dist/templates/react-native/ios/{{appName}}Tests/BasicSampleReactNativeTests.m +72 -72
  395. package/dist/templates/react-native/ios/{{appName}}Tests/Info.plist +24 -24
  396. package/dist/templates/react-native/package.json +78 -78
  397. package/dist/templates/react-native/sitecore/config/{{appName}}.config +47 -47
  398. package/dist/templates/react-native/sitecore/gitignore +2 -2
  399. package/dist/templates/vue/.browserslistrc +2 -2
  400. package/dist/templates/vue/.prettierrc +9 -9
  401. package/dist/templates/vue/LICENSE.txt +202 -202
  402. package/dist/templates/vue/README.md +36 -36
  403. package/dist/templates/vue/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  404. package/dist/templates/vue/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  405. package/dist/templates/vue/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  406. package/dist/templates/vue/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  407. package/dist/templates/vue/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  408. package/dist/templates/vue/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  409. package/dist/templates/vue/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  410. package/dist/templates/vue/data/dictionary/en.yml +7 -7
  411. package/dist/templates/vue/data/dictionary/{{language}}.yml +7 -7
  412. package/dist/templates/vue/data/routes/en.yml +63 -63
  413. package/dist/templates/vue/data/routes/graphql/en.yml +34 -34
  414. package/dist/templates/vue/data/routes/graphql/sample-1/en.yml +9 -9
  415. package/dist/templates/vue/data/routes/graphql/sample-2/en.yml +9 -9
  416. package/dist/templates/vue/data/routes/styleguide/custom-route-type/en.yml +12 -12
  417. package/dist/templates/vue/data/routes/styleguide/en.yml +264 -264
  418. package/dist/templates/vue/data/routes/styleguide/{{language}}.yml +26 -26
  419. package/dist/templates/vue/data/routes/{{language}}.yml +4 -4
  420. package/dist/templates/vue/gitignore +25 -25
  421. package/dist/templates/vue/package.json +87 -88
  422. package/dist/templates/vue/public/img/icons/safari-pinned-tab.svg +75 -75
  423. package/dist/templates/vue/public/index.html +27 -27
  424. package/dist/templates/vue/public/manifest.json +14 -14
  425. package/dist/templates/vue/public/robots.txt +2 -2
  426. package/dist/templates/vue/server/server.js +0 -4
  427. package/dist/templates/vue/sitecore/config/{{appName}}.config +89 -89
  428. package/dist/templates/vue/sitecore/definitions/components/GraphQL-IntegratedDemo.sitecore.graphql +71 -71
  429. package/dist/templates/vue/sitecore/gitignore +4 -4
  430. package/dist/templates/vue/src/assets/app.css +30 -30
  431. package/dist/templates/vue/src/assets/sc_logo.svg +52 -52
  432. package/dist/templates/vue/src/components/GraphQL/GraphQL-ConnectedDemo.query.graphql +69 -69
  433. package/dist/templates/vue/src/dataFetcher.js +13 -11
  434. package/dist/templates/vue/src/temp/GraphQLFragmentTypes.json +273 -273
  435. package/dist/templates/vue/src/temp/gitignore +3 -3
  436. package/package.json +2 -2
  437. package/dist/templates/nextjs-xmcloud/src/pages/component-library/render.tsx +0 -51
@@ -1,19 +1,19 @@
1
-
2
- # ========== Sitecore Edge Platform ===========
3
-
4
- # Your unified Sitecore Edge Context Id.
5
- # This will be used over any Sitecore Preview / Delivery Edge variables (above).
6
- SITECORE_EDGE_CONTEXT_ID=
7
-
8
- # ==============================================
9
-
10
- # An optional Sitecore Personalize scope identifier.
11
- # This can be used to isolate personalization data when multiple XM Cloud Environments share a Personalize tenant.
12
- # This should match the PAGES_PERSONALIZE_SCOPE environment variable for your connected XM Cloud Environment.
13
- NEXT_PUBLIC_PERSONALIZE_SCOPE=
14
-
15
- # Timeout (ms) for Sitecore CDP requests to respond within. Default is 400.
16
- PERSONALIZE_MIDDLEWARE_CDP_TIMEOUT=
17
-
18
- # Timeout (ms) for Sitecore Experience Edge requests to respond within. Default is 400.
19
- PERSONALIZE_MIDDLEWARE_EDGE_TIMEOUT=
1
+
2
+ # ========== Sitecore Edge Platform ===========
3
+
4
+ # Your unified Sitecore Edge Context Id.
5
+ # This will be used over any Sitecore Preview / Delivery Edge variables (above).
6
+ SITECORE_EDGE_CONTEXT_ID=
7
+
8
+ # ==============================================
9
+
10
+ # An optional Sitecore Personalize scope identifier.
11
+ # This can be used to isolate personalization data when multiple XM Cloud Environments share a Personalize tenant.
12
+ # This should match the PAGES_PERSONALIZE_SCOPE environment variable for your connected XM Cloud Environment.
13
+ NEXT_PUBLIC_PERSONALIZE_SCOPE=
14
+
15
+ # Timeout (ms) for Sitecore CDP requests to respond within. Default is 400.
16
+ PERSONALIZE_MIDDLEWARE_CDP_TIMEOUT=
17
+
18
+ # Timeout (ms) for Sitecore Experience Edge requests to respond within. Default is 400.
19
+ PERSONALIZE_MIDDLEWARE_EDGE_TIMEOUT=
@@ -1,8 +1,8 @@
1
- {
2
- "dependencies": {
3
- "@sitecore/components": "~2.0.1",
4
- "@sitecore-cloudsdk/core": "^0.4.2",
5
- "@sitecore-cloudsdk/events": "^0.4.2",
6
- "@sitecore-feaas/clientside": "^0.5.19"
7
- }
8
- }
1
+ {
2
+ "dependencies": {
3
+ "@sitecore/components": "~2.0.1",
4
+ "@sitecore-cloudsdk/core": "^0.4.2",
5
+ "@sitecore-cloudsdk/events": "^0.4.2",
6
+ "@sitecore-feaas/clientside": "^0.5.19"
7
+ }
8
+ }
@@ -13,10 +13,9 @@ const Bootstrap = (props: SitecorePageProps): JSX.Element | null => {
13
13
  // Browser ClientSDK init allows for page view events to be tracked
14
14
  useEffect(() => {
15
15
  const pageState = props.layoutData?.sitecore?.context.pageState;
16
- const renderingType = props.layoutData?.sitecore?.context.renderingType;
17
16
  if (process.env.NODE_ENV === 'development')
18
17
  console.debug('Browser Events SDK is not initialized in development environment');
19
- else if (pageState !== LayoutServicePageState.Normal || renderingType === 'component')
18
+ else if (pageState !== LayoutServicePageState.Normal)
20
19
  console.debug('Browser Events SDK is not initialized in edit and preview modes');
21
20
  else {
22
21
  CloudSDK({
@@ -6,14 +6,11 @@ import {
6
6
  } from '@sitecore-jss/sitecore-jss-nextjs';
7
7
  import {
8
8
  editingDataService,
9
- isComponentLibraryPreviewData,
10
9
  isEditingMetadataPreviewData,
11
10
  } from '@sitecore-jss/sitecore-jss-nextjs/editing';
12
11
  import { SitecorePageProps } from 'lib/page-props';
13
12
  import { graphQLEditingService } from 'lib/graphql-editing-service';
14
13
  import { Plugin } from '..';
15
- import { RestComponentLayoutService } from '@sitecore-jss/sitecore-jss-nextjs';
16
- import config from 'temp/config';
17
14
 
18
15
  class PreviewModePlugin implements Plugin {
19
16
  order = 1;
@@ -21,48 +18,6 @@ class PreviewModePlugin implements Plugin {
21
18
  async exec(props: SitecorePageProps, context: GetServerSidePropsContext | GetStaticPropsContext) {
22
19
  if (!context.preview) return props;
23
20
 
24
- if (isComponentLibraryPreviewData(context.previewData)) {
25
- const { itemId, componentUid, site, language, renderingId, dataSourceId, version, variant } =
26
- context.previewData;
27
-
28
- const componentService = new RestComponentLayoutService({
29
- apiHost: config.sitecoreApiHost,
30
- apiKey: config.sitecoreApiKey,
31
- siteName: site,
32
- configurationName: config.layoutServiceConfigurationName,
33
- });
34
-
35
- const componentData = await componentService.fetchComponentData({
36
- siteName: site,
37
- itemId,
38
- language,
39
- componentUid,
40
- renderingId,
41
- dataSourceId,
42
- variant,
43
- version,
44
- });
45
-
46
- // we can reuse editing service, fortunately
47
- const dictionaryData = await graphQLEditingService.fetchDictionaryData({
48
- siteName: site,
49
- language,
50
- });
51
-
52
- if (!componentData) {
53
- throw new Error(
54
- `Unable to fetch editing data for preview ${JSON.stringify(context.previewData)}`
55
- );
56
- }
57
-
58
- props.locale = context.previewData.language;
59
- props.layoutData = componentData;
60
- props.headLinks = [];
61
- props.dictionary = dictionaryData;
62
-
63
- return props;
64
- }
65
-
66
21
  // If we're in Pages preview (editing) Metadata Edit Mode, prefetch the editing data
67
22
  if (isEditingMetadataPreviewData(context.previewData)) {
68
23
  const { site, itemId, language, version, variantIds, layoutKind } = context.previewData;
@@ -1,56 +1,56 @@
1
- # node/express scaffolding for SSR using Sitecore Experience Edge
2
-
3
- Sitecore JSS for SSR using Experience Edge is considered experimental.
4
-
5
- <!---
6
- @TODO: Update to next version docs before release
7
- -->
8
-
9
- [Documentation (Experience Platform)](https://doc.sitecore.com/xp/en/developers/hd/22/sitecore-headless-development/server-side-render-jss-apps-headlessly-using-a-sitecore-experience-edge-endpoint.html)
10
-
11
- > This is a sample setup that is not officially supported by Sitecore.
12
-
13
- This is a sample setup showing one of how you can configure rendering server on top of node.js and Express using Experience Edge. It performs only render of the sample app, quering layout data and dictionary data without proxying requests.
14
-
15
- ## Pre-requisites
16
-
17
- 1. Your instance needs to be configured with Headless Services Module and the API Key provisioned.
18
-
19
- ### // TODO: document how to test GraphQL queries
20
-
21
- 1. Next.js, React, Angular, and Vue samples support Experience Edge out of the box. The GraphQL components and query are compatible with the Experience Edge schema with no further changes necessary. Provide a `sc_apikey` header for authentication, this header is used for both Sitecore XM Edge schema and Sitecore Experience Edge. Refer to the GraphQL Connected demo component in the desired framework.
22
-
23
- 1. Build your JS app bundle with `jss build`.
24
-
25
- > You can use JSS sample apps which support server side rendering (JSS integrated mode) to operate with this project.
26
-
27
- 1. Deploy the build artifacts from your app (`/dist` or `/build` within the app) to the `sitecoreDistPath` set in your app's `package.json` under the SSR sample root path. Most apps use `/dist/${jssAppName}`, for example `$ssrSampleRoot/dist/${jssAppName}`.
28
-
29
- > Another way to deploy the artifacts to the SSR sample is to change the `instancePath` in your app's `scjssconfig.json` to the SSR sample root path, and then use `jss deploy files` within the app to complete the deployment to the SSR sample.
30
-
31
- ## Setup
32
-
33
- Open `config.js` and specify your application bundle and connection settings.
34
-
35
- ### Environment Variables
36
-
37
- The following environment variables can be set to configure the SSR sample instead of modifying `config.js`. You can use the `.env` file located in the root of the app or set these directly in the environment (for example, in containers).
38
-
39
- | Parameter | Description |
40
- | ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
41
- | `SITECORE_JSS_APP_NAME` | The JSS app's name. Used in the default value of `SITECORE_JSS_SERVER_BUNDLE` if it's not set. Used as the `SITECORE_SITE_NAME` if it's not set. |
42
- | `SITECORE_SITE_NAME` | The Sitecore site name. Used for layout and dictionary data requests. |
43
- | `SITECORE_API_KEY` | The API key provisioned on Sitecore Experience Edge. |
44
- | `SITECORE_JSS_SERVER_BUNDLE` | Path to the JSS app's `server.bundle.js` file. |
45
- | `SITECORE_EXPERIENCE_EDGE_ENDPOINT` | Sitecore Experience Edge endpoint. |
46
- | `DEFAULT_LANGUAGE` | The JSS app's default language. Used to determine language context in case language is not specified in request URL. |
47
- | `PORT` | Optional. Port which will be used when start sample. Default can be seen in [config.js](./config.js). |
48
-
49
- ## Build & run
50
-
51
- 1. Run `npm install`
52
-
53
- 1. Run `npm run start`
54
-
55
- You should be able to see the following message:
56
- `server listening on port 3000!`.
1
+ # node/express scaffolding for SSR using Sitecore Experience Edge
2
+
3
+ Sitecore JSS for SSR using Experience Edge is considered experimental.
4
+
5
+ <!---
6
+ @TODO: Update to next version docs before release
7
+ -->
8
+
9
+ [Documentation (Experience Platform)](https://doc.sitecore.com/xp/en/developers/hd/22/sitecore-headless-development/server-side-render-jss-apps-headlessly-using-a-sitecore-experience-edge-endpoint.html)
10
+
11
+ > This is a sample setup that is not officially supported by Sitecore.
12
+
13
+ This is a sample setup showing one of how you can configure rendering server on top of node.js and Express using Experience Edge. It performs only render of the sample app, quering layout data and dictionary data without proxying requests.
14
+
15
+ ## Pre-requisites
16
+
17
+ 1. Your instance needs to be configured with Headless Services Module and the API Key provisioned.
18
+
19
+ ### // TODO: document how to test GraphQL queries
20
+
21
+ 1. Next.js, React, Angular, and Vue samples support Experience Edge out of the box. The GraphQL components and query are compatible with the Experience Edge schema with no further changes necessary. Provide a `sc_apikey` header for authentication, this header is used for both Sitecore XM Edge schema and Sitecore Experience Edge. Refer to the GraphQL Connected demo component in the desired framework.
22
+
23
+ 1. Build your JS app bundle with `jss build`.
24
+
25
+ > You can use JSS sample apps which support server side rendering (JSS integrated mode) to operate with this project.
26
+
27
+ 1. Deploy the build artifacts from your app (`/dist` or `/build` within the app) to the `sitecoreDistPath` set in your app's `package.json` under the SSR sample root path. Most apps use `/dist/${jssAppName}`, for example `$ssrSampleRoot/dist/${jssAppName}`.
28
+
29
+ > Another way to deploy the artifacts to the SSR sample is to change the `instancePath` in your app's `scjssconfig.json` to the SSR sample root path, and then use `jss deploy files` within the app to complete the deployment to the SSR sample.
30
+
31
+ ## Setup
32
+
33
+ Open `config.js` and specify your application bundle and connection settings.
34
+
35
+ ### Environment Variables
36
+
37
+ The following environment variables can be set to configure the SSR sample instead of modifying `config.js`. You can use the `.env` file located in the root of the app or set these directly in the environment (for example, in containers).
38
+
39
+ | Parameter | Description |
40
+ | ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
41
+ | `SITECORE_JSS_APP_NAME` | The JSS app's name. Used in the default value of `SITECORE_JSS_SERVER_BUNDLE` if it's not set. Used as the `SITECORE_SITE_NAME` if it's not set. |
42
+ | `SITECORE_SITE_NAME` | The Sitecore site name. Used for layout and dictionary data requests. |
43
+ | `SITECORE_API_KEY` | The API key provisioned on Sitecore Experience Edge. |
44
+ | `SITECORE_JSS_SERVER_BUNDLE` | Path to the JSS app's `server.bundle.js` file. |
45
+ | `SITECORE_EXPERIENCE_EDGE_ENDPOINT` | Sitecore Experience Edge endpoint. |
46
+ | `DEFAULT_LANGUAGE` | The JSS app's default language. Used to determine language context in case language is not specified in request URL. |
47
+ | `PORT` | Optional. Port which will be used when start sample. Default can be seen in [config.js](./config.js). |
48
+
49
+ ## Build & run
50
+
51
+ 1. Run `npm install`
52
+
53
+ 1. Run `npm run start`
54
+
55
+ You should be able to see the following message:
56
+ `server listening on port 3000!`.
@@ -1,19 +1,19 @@
1
- # See http://help.github.com/ignore-files/ for more about ignoring files.
2
-
3
- # dependencies
4
- /node_modules
5
-
6
- # local env files
7
- .env.local
8
- .env.*.local
9
-
10
- # IDE - VSCode
11
- .vscode/*
12
- !.vscode/settings.json
13
- !.vscode/tasks.json
14
- !.vscode/launch.json
15
- !.vscode/extensions.json
16
-
17
- # System Files
18
- .DS_Store
19
- Thumbs.db
1
+ # See http://help.github.com/ignore-files/ for more about ignoring files.
2
+
3
+ # dependencies
4
+ /node_modules
5
+
6
+ # local env files
7
+ .env.local
8
+ .env.*.local
9
+
10
+ # IDE - VSCode
11
+ .vscode/*
12
+ !.vscode/settings.json
13
+ !.vscode/tasks.json
14
+ !.vscode/launch.json
15
+ !.vscode/extensions.json
16
+
17
+ # System Files
18
+ .DS_Store
19
+ Thumbs.db
@@ -1,34 +1,34 @@
1
- {
2
- "name": "node-headless-ssr-experience-edge-sample",
3
- "version": "<%- version %>",
4
- "description": "Node server-side-rendering sample for running JSS apps under Node hosting using Experience Edge",
5
- "scripts": {
6
- "start": "ts-node ./src/index.ts"
7
- },
8
- "author": {
9
- "name": "Sitecore Corporation",
10
- "url": "https://jss.sitecore.com"
11
- },
12
- "repository": {
13
- "type": "git",
14
- "url": "git+https://github.com/sitecore/jss.git"
15
- },
16
- "bugs": {
17
- "url": "https://github.com/sitecore/jss/issues"
18
- },
19
- "homepage": "https://jss.sitecore.com",
20
- "license": "Apache-2.0",
21
- "dependencies": {
22
- "@sitecore-jss/sitecore-jss": "~<%- version %>",
23
- "compression": "^1.7.4",
24
- "express": "^4.18.2",
25
- "dotenv": "^16.0.3"
26
- },
27
- "devDependencies": {
28
- "@types/compression": "^1.7.2",
29
- "@types/express": "^4.17.17",
30
- "ts-node": "^10.9.1",
31
- "typescript": "~5.6.3"
32
- },
33
- "private": true
34
- }
1
+ {
2
+ "name": "node-headless-ssr-experience-edge-sample",
3
+ "version": "<%- version %>",
4
+ "description": "Node server-side-rendering sample for running JSS apps under Node hosting using Experience Edge",
5
+ "scripts": {
6
+ "start": "ts-node ./src/index.ts"
7
+ },
8
+ "author": {
9
+ "name": "Sitecore Corporation",
10
+ "url": "https://jss.sitecore.com"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/sitecore/jss.git"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/sitecore/jss/issues"
18
+ },
19
+ "homepage": "https://jss.sitecore.com",
20
+ "license": "Apache-2.0",
21
+ "dependencies": {
22
+ "@sitecore-jss/sitecore-jss": "~<%- version %>",
23
+ "compression": "^1.7.4",
24
+ "express": "^4.18.2",
25
+ "dotenv": "^16.0.3"
26
+ },
27
+ "devDependencies": {
28
+ "@types/compression": "^1.7.2",
29
+ "@types/express": "^4.17.17",
30
+ "ts-node": "^10.9.1",
31
+ "typescript": "~5.6.3"
32
+ },
33
+ "private": true
34
+ }
@@ -1,22 +1,22 @@
1
- {
2
- "compilerOptions": {
3
- "newLine": "LF",
4
- "emitDecoratorMetadata": true,
5
- "experimentalDecorators": true,
6
- "noFallthroughCasesInSwitch": true,
7
- "rootDir": ".",
8
- "esModuleInterop": true,
9
- "forceConsistentCasingInFileNames": true,
10
- "strict": true,
11
- "noImplicitAny": true,
12
- "noUnusedLocals": true,
13
- "noUnusedParameters": true,
14
- "noImplicitReturns": true,
15
- "strictFunctionTypes": false,
16
- "downlevelIteration": true,
17
- "moduleResolution": "node",
18
- "isolatedModules": true,
19
- "allowSyntheticDefaultImports": true
20
- },
21
- "exclude": ["node_modules", "dist"]
22
- }
1
+ {
2
+ "compilerOptions": {
3
+ "newLine": "LF",
4
+ "emitDecoratorMetadata": true,
5
+ "experimentalDecorators": true,
6
+ "noFallthroughCasesInSwitch": true,
7
+ "rootDir": ".",
8
+ "esModuleInterop": true,
9
+ "forceConsistentCasingInFileNames": true,
10
+ "strict": true,
11
+ "noImplicitAny": true,
12
+ "noUnusedLocals": true,
13
+ "noUnusedParameters": true,
14
+ "noImplicitReturns": true,
15
+ "strictFunctionTypes": false,
16
+ "downlevelIteration": true,
17
+ "moduleResolution": "node",
18
+ "isolatedModules": true,
19
+ "allowSyntheticDefaultImports": true
20
+ },
21
+ "exclude": ["node_modules", "dist"]
22
+ }
@@ -1,48 +1,48 @@
1
- {
2
- "version": "0.2.0",
3
- "configurations": [
4
- {
5
- "name": "Launch",
6
- "type": "node",
7
- "request": "launch",
8
- "program": "${workspaceRoot}/index.js",
9
- "stopOnEntry": false,
10
- "args": [
11
- "doc"
12
- ],
13
- "cwd": "${workspaceRoot}",
14
- "preLaunchTask": null,
15
- "runtimeExecutable": null,
16
- "runtimeArgs": [
17
- "--nolazy"
18
- ],
19
- "env": {
20
- "NODE_ENV": "development"
21
- },
22
- "console": "internalConsole",
23
- "sourceMaps": false,
24
- "outFiles": []
25
- },
26
- {
27
- "name": "Attach",
28
- "type": "node",
29
- "request": "attach",
30
- "port": 3000,
31
- "address": "localhost",
32
- "restart": false,
33
- "sourceMaps": false,
34
- "outFiles": [],
35
- "localRoot": "${workspaceRoot}",
36
- "remoteRoot": null
37
- },
38
- {
39
- "name": "Attach to Process",
40
- "type": "node",
41
- "request": "attach",
42
- "processId": "${command.PickProcess}",
43
- "port": 5858,
44
- "sourceMaps": false,
45
- "outFiles": []
46
- }
47
- ]
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [
4
+ {
5
+ "name": "Launch",
6
+ "type": "node",
7
+ "request": "launch",
8
+ "program": "${workspaceRoot}/index.js",
9
+ "stopOnEntry": false,
10
+ "args": [
11
+ "doc"
12
+ ],
13
+ "cwd": "${workspaceRoot}",
14
+ "preLaunchTask": null,
15
+ "runtimeExecutable": null,
16
+ "runtimeArgs": [
17
+ "--nolazy"
18
+ ],
19
+ "env": {
20
+ "NODE_ENV": "development"
21
+ },
22
+ "console": "internalConsole",
23
+ "sourceMaps": false,
24
+ "outFiles": []
25
+ },
26
+ {
27
+ "name": "Attach",
28
+ "type": "node",
29
+ "request": "attach",
30
+ "port": 3000,
31
+ "address": "localhost",
32
+ "restart": false,
33
+ "sourceMaps": false,
34
+ "outFiles": [],
35
+ "localRoot": "${workspaceRoot}",
36
+ "remoteRoot": null
37
+ },
38
+ {
39
+ "name": "Attach to Process",
40
+ "type": "node",
41
+ "request": "attach",
42
+ "processId": "${command.PickProcess}",
43
+ "port": 5858,
44
+ "sourceMaps": false,
45
+ "outFiles": []
46
+ }
47
+ ]
48
48
  }