create-sitecore-jss 22.10.0-canary.8 → 22.10.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 (229) hide show
  1. package/LICENSE.MD +202 -202
  2. package/README.md +10 -10
  3. package/dist/templates/angular/package.json +24 -25
  4. package/dist/templates/angular/scripts/generate-component-factory/template.ts +1 -3
  5. package/dist/templates/angular/server.bundle.ts +3 -2
  6. package/dist/templates/angular/src/app/ViewBag.ts +4 -0
  7. package/dist/templates/angular/src/app/app.component.ts +10 -9
  8. package/dist/templates/angular/src/app/app.module.ts +3 -1
  9. package/dist/templates/angular/src/app/app.server.module.ts +4 -5
  10. package/dist/templates/angular/src/app/components/app-components.shared.module.ts +16 -3
  11. package/dist/templates/angular/src/app/components/content-block/content-block.component.ts +2 -1
  12. package/dist/templates/angular/src/app/i18n/jss-translation-client-loader.service.ts +3 -2
  13. package/dist/templates/angular/src/app/i18n/jss-translation-server-loader.service.ts +6 -4
  14. package/dist/templates/angular/src/app/injection-tokens.ts +13 -0
  15. package/dist/templates/angular/src/app/jss-context.server-side.service.ts +8 -10
  16. package/dist/templates/angular/src/app/jss-context.service.ts +6 -4
  17. package/dist/templates/angular/src/app/jss-graphql.module.ts +58 -48
  18. package/dist/templates/angular/src/app/jss-graphql.service.ts +6 -6
  19. package/dist/templates/angular/src/app/jss-meta.service.ts +3 -2
  20. package/dist/templates/angular/src/app/routing/layout/layout.component.ts +10 -4
  21. package/dist/templates/angular/src/app/routing/navigation/navigation.component.ts +3 -0
  22. package/dist/templates/angular/src/app/routing/not-found/not-found.component.ts +1 -1
  23. package/dist/templates/angular/src/app/routing/routing.module.ts +3 -4
  24. package/dist/templates/angular/src/app/routing/scripts/scripts.module.ts +1 -1
  25. package/dist/templates/angular/src/assets/images/sc_logo.svg +52 -52
  26. package/dist/templates/angular-sxp/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  27. package/dist/templates/angular-sxp/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  28. package/dist/templates/angular-sxp/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  29. package/dist/templates/angular-sxp/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  30. package/dist/templates/angular-sxp/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  31. package/dist/templates/angular-sxp/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  32. package/dist/templates/angular-sxp/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  33. package/dist/templates/angular-sxp/data/dictionary/en.yml +4 -4
  34. package/dist/templates/angular-sxp/data/dictionary/{{language}}.yml +4 -4
  35. package/dist/templates/angular-sxp/data/routes/en.yml +61 -61
  36. package/dist/templates/angular-sxp/data/routes/graphql/en.yml +27 -27
  37. package/dist/templates/angular-sxp/data/routes/graphql/sample-1/en.yml +9 -9
  38. package/dist/templates/angular-sxp/data/routes/graphql/sample-2/en.yml +9 -9
  39. package/dist/templates/angular-sxp/data/routes/styleguide/custom-route-type/en.yml +12 -12
  40. package/dist/templates/angular-sxp/data/routes/styleguide/en.yml +271 -271
  41. package/dist/templates/angular-sxp/data/routes/styleguide/{{language}}.yml +25 -25
  42. package/dist/templates/angular-sxp/data/routes/{{language}}.yml +4 -4
  43. package/dist/templates/angular-sxp/sitecore/config/{{appName}}.config +90 -90
  44. package/dist/templates/angular-sxp/sitecore/definitions/components/graph-ql-integrated-demo.sitecore.graphql +71 -71
  45. package/dist/templates/angular-sxp/sitecore/gitignore +2 -2
  46. package/dist/templates/angular-sxp/src/app/components/app-components.shared.module.ts +1 -3
  47. package/dist/templates/angular-sxp/src/app/components/graph-ql-connected-demo/graph-ql-connected-demo.component.html +41 -39
  48. package/dist/templates/angular-sxp/src/app/components/graph-ql-connected-demo/graph-ql-connected-demo.component.ts +5 -3
  49. package/dist/templates/angular-sxp/src/app/components/graph-ql-integrated-demo/graph-ql-integrated-demo.component.html +6 -4
  50. package/dist/templates/angular-sxp/src/app/components/graph-ql-integrated-demo/graph-ql-integrated-demo.component.ts +4 -4
  51. package/dist/templates/angular-sxp/src/app/components/graph-ql-layout/graph-ql-layout.component.html +3 -4
  52. package/dist/templates/angular-sxp/src/app/components/graph-ql-layout/graph-ql-layout.component.ts +4 -4
  53. package/dist/templates/angular-sxp/src/app/components/shared/styleguide-specimen/styleguide-specimen.component.ts +3 -4
  54. package/dist/templates/angular-sxp/src/app/components/styleguide-angular-lazy-loading/styleguide-angular-lazy-loading.component.ts +5 -5
  55. package/dist/templates/angular-sxp/src/app/components/styleguide-angular-lazy-loading/styleguide-angular-lazy-loading.module.ts +2 -5
  56. package/dist/templates/angular-sxp/src/app/components/styleguide-component-params/styleguide-component-params.component.html +8 -4
  57. package/dist/templates/angular-sxp/src/app/components/styleguide-component-params/styleguide-component-params.component.ts +2 -2
  58. package/dist/templates/angular-sxp/src/app/components/styleguide-custom-route-type/styleguide-custom-route-type.component.ts +5 -5
  59. package/dist/templates/angular-sxp/src/app/components/styleguide-edit-frame/styleguide-edit-frame.component.html +7 -3
  60. package/dist/templates/angular-sxp/src/app/components/styleguide-edit-frame/styleguide-edit-frame.component.ts +13 -4
  61. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-checkbox/styleguide-field-usage-checkbox.component.ts +2 -2
  62. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-content-list/styleguide-field-usage-content-list.component.html +20 -16
  63. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-content-list/styleguide-field-usage-content-list.component.ts +20 -3
  64. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-custom/styleguide-field-usage-custom.component.ts +2 -0
  65. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-date/styleguide-field-usage-date.component.ts +4 -1
  66. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-file/styleguide-field-usage-file.component.ts +3 -1
  67. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-image/styleguide-field-usage-image.component.ts +3 -1
  68. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-item-link/styleguide-field-usage-item-link.component.html +4 -4
  69. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-item-link/styleguide-field-usage-item-link.component.ts +4 -1
  70. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-link/styleguide-field-usage-link.component.ts +3 -1
  71. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-number/styleguide-field-usage-number.component.ts +2 -0
  72. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-rich-text/styleguide-field-usage-rich-text.component.ts +3 -1
  73. package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-text/styleguide-field-usage-text.component.ts +3 -1
  74. package/dist/templates/angular-sxp/src/app/components/styleguide-layout/styleguide-layout.component.html +12 -8
  75. package/dist/templates/angular-sxp/src/app/components/styleguide-layout/styleguide-layout.component.ts +2 -4
  76. package/dist/templates/angular-sxp/src/app/components/styleguide-layout-reuse/styleguide-layout-reuse.component.ts +3 -1
  77. package/dist/templates/angular-sxp/src/app/components/styleguide-layout-tabs/styleguide-layout-tabs.component.html +18 -15
  78. package/dist/templates/angular-sxp/src/app/components/styleguide-layout-tabs/styleguide-layout-tabs.component.ts +6 -4
  79. package/dist/templates/angular-sxp/src/app/components/styleguide-layout-tabs-tab/styleguide-layout-tabs-tab.component.html +2 -2
  80. package/dist/templates/angular-sxp/src/app/components/styleguide-layout-tabs-tab/styleguide-layout-tabs-tab.component.ts +4 -4
  81. package/dist/templates/angular-sxp/src/app/components/styleguide-multilingual/styleguide-multilingual.component.ts +7 -3
  82. package/dist/templates/angular-sxp/src/app/components/styleguide-route-fields/styleguide-route-fields.component.ts +5 -4
  83. package/dist/templates/angular-sxp/src/app/components/styleguide-section/styleguide-section.component.ts +2 -1
  84. package/dist/templates/angular-sxp/src/app/components/styleguide-sitecore-context/styleguide-sitecore-context.component.ts +7 -4
  85. package/dist/templates/angular-sxp/src/app/components/styleguide-tracking/styleguide-tracking.component.html +6 -2
  86. package/dist/templates/angular-sxp/src/app/components/styleguide-tracking/styleguide-tracking.component.ts +12 -12
  87. package/dist/templates/angular-sxp/src/app/jss-data-fetcher.service.ts +4 -2
  88. package/dist/templates/angular-sxp/src/app/routing/scripts/scripts.component.ts +10 -0
  89. package/dist/templates/angular-sxp/src/app/routing/scripts/scripts.module.ts +1 -1
  90. package/dist/templates/angular-sxp/src/app/routing/scripts/visitor-identification/visitor-identification.component.ts +6 -3
  91. package/dist/templates/angular-xmcloud/scripts/generate-component-factory/template.ts +1 -3
  92. package/dist/templates/angular-xmcloud/src/app/components/app-components.shared.module.ts +1 -2
  93. package/dist/templates/angular-xmcloud/src/app/components/column-splitter/column-splitter.component.html +6 -4
  94. package/dist/templates/angular-xmcloud/src/app/components/column-splitter/column-splitter.component.ts +4 -1
  95. package/dist/templates/angular-xmcloud/src/app/components/container/container.component.html +14 -5
  96. package/dist/templates/angular-xmcloud/src/app/components/container/container.component.ts +3 -0
  97. package/dist/templates/angular-xmcloud/src/app/components/image/image.component.html +21 -23
  98. package/dist/templates/angular-xmcloud/src/app/components/image/image.component.ts +5 -5
  99. package/dist/templates/angular-xmcloud/src/app/components/link-list/link-list.component.html +11 -10
  100. package/dist/templates/angular-xmcloud/src/app/components/link-list/link-list.component.ts +3 -0
  101. package/dist/templates/angular-xmcloud/src/app/components/navigation/navigation-item.component.html +14 -17
  102. package/dist/templates/angular-xmcloud/src/app/components/navigation/navigation-item.component.ts +3 -3
  103. package/dist/templates/angular-xmcloud/src/app/components/navigation/navigation.component.html +3 -6
  104. package/dist/templates/angular-xmcloud/src/app/components/navigation/navigation.component.ts +8 -5
  105. package/dist/templates/angular-xmcloud/src/app/components/page-content/page-content.component.ts +4 -4
  106. package/dist/templates/angular-xmcloud/src/app/components/partial-design-dynamic-placeholder/partial-design-dynamic-placeholder.component.ts +2 -0
  107. package/dist/templates/angular-xmcloud/src/app/components/promo/promo.component.html +4 -6
  108. package/dist/templates/angular-xmcloud/src/app/components/promo/promo.component.ts +3 -0
  109. package/dist/templates/angular-xmcloud/src/app/components/richtext/richtext.component.html +3 -4
  110. package/dist/templates/angular-xmcloud/src/app/components/richtext/richtext.component.ts +3 -0
  111. package/dist/templates/angular-xmcloud/src/app/components/row-splitter/row-splitter.component.html +10 -9
  112. package/dist/templates/angular-xmcloud/src/app/components/row-splitter/row-splitter.component.ts +3 -0
  113. package/dist/templates/angular-xmcloud/src/app/components/title/title.component.html +4 -5
  114. package/dist/templates/angular-xmcloud/src/app/components/title/title.component.ts +5 -5
  115. package/dist/templates/angular-xmcloud/src/app/jss-link.service.ts +2 -2
  116. package/dist/templates/angular-xmcloud/src/app/routing/layout/layout.component.html +38 -36
  117. package/dist/templates/angular-xmcloud/src/app/routing/layout/layout.component.ts +10 -6
  118. package/dist/templates/angular-xmcloud/src/app/routing/scripts/cdp-page-view.component.ts +2 -3
  119. package/dist/templates/angular-xmcloud/src/app/routing/scripts/cloud-sdk-init.component.ts +2 -2
  120. package/dist/templates/angular-xmcloud/src/app/routing/scripts/scripts.component.ts +13 -0
  121. package/dist/templates/angular-xmcloud/src/app/routing/scripts/scripts.module.ts +1 -2
  122. package/dist/templates/nextjs/public/sc_logo.svg +52 -52
  123. package/dist/templates/nextjs-styleguide/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  124. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  125. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  126. package/dist/templates/nextjs-styleguide/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  127. package/dist/templates/nextjs-styleguide/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  128. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  129. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  130. package/dist/templates/nextjs-styleguide/data/dictionary/en.yml +4 -4
  131. package/dist/templates/nextjs-styleguide/data/dictionary/{{language}}.yml +4 -4
  132. package/dist/templates/nextjs-styleguide/data/routes/en.yml +63 -63
  133. package/dist/templates/nextjs-styleguide/data/routes/graphql/en.yml +27 -27
  134. package/dist/templates/nextjs-styleguide/data/routes/graphql/sample-1/en.yml +9 -9
  135. package/dist/templates/nextjs-styleguide/data/routes/graphql/sample-2/en.yml +9 -9
  136. package/dist/templates/nextjs-styleguide/data/routes/styleguide/custom-route-type/en.yml +12 -12
  137. package/dist/templates/nextjs-styleguide/data/routes/styleguide/en.yml +259 -259
  138. package/dist/templates/nextjs-styleguide/data/routes/styleguide/{{language}}.yml +25 -25
  139. package/dist/templates/nextjs-styleguide/data/routes/{{language}}.yml +4 -4
  140. package/dist/templates/nextjs-styleguide-tracking/data/dictionary/en.yml +5 -5
  141. package/dist/templates/nextjs-styleguide-tracking/data/routes/tracking/en.yml +8 -8
  142. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-column-splitter.scss +14 -14
  143. package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_promo-shadow.scss +42 -42
  144. package/dist/templates/react/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  145. package/dist/templates/react/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  146. package/dist/templates/react/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  147. package/dist/templates/react/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  148. package/dist/templates/react/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  149. package/dist/templates/react/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  150. package/dist/templates/react/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  151. package/dist/templates/react/data/dictionary/en.yml +4 -4
  152. package/dist/templates/react/data/dictionary/{{language}}.yml +4 -4
  153. package/dist/templates/react/data/routes/en.yml +61 -61
  154. package/dist/templates/react/data/routes/graphql/en.yml +27 -27
  155. package/dist/templates/react/data/routes/graphql/sample-1/en.yml +9 -9
  156. package/dist/templates/react/data/routes/graphql/sample-2/en.yml +9 -9
  157. package/dist/templates/react/data/routes/styleguide/custom-route-type/en.yml +12 -12
  158. package/dist/templates/react/data/routes/styleguide/en.yml +263 -263
  159. package/dist/templates/react/data/routes/styleguide/{{language}}.yml +26 -26
  160. package/dist/templates/react/data/routes/{{language}}.yml +4 -4
  161. package/dist/templates/react-native/.buckconfig +6 -6
  162. package/dist/templates/react-native/.eslintrc +74 -74
  163. package/dist/templates/react-native/.gitattributes +1 -1
  164. package/dist/templates/react-native/.prettierrc +9 -9
  165. package/dist/templates/react-native/.vscode/launch.json +42 -42
  166. package/dist/templates/react-native/.vscode/settings.json +1 -1
  167. package/dist/templates/react-native/LICENSE.txt +202 -202
  168. package/dist/templates/react-native/README.MD +115 -115
  169. package/dist/templates/react-native/android/app/BUCK +55 -55
  170. package/dist/templates/react-native/android/app/build.gradle +201 -201
  171. package/dist/templates/react-native/android/app/build_defs.bzl +19 -19
  172. package/dist/templates/react-native/android/app/proguard-rules.pro +10 -10
  173. package/dist/templates/react-native/android/app/src/debug/AndroidManifest.xml +8 -8
  174. package/dist/templates/react-native/android/app/src/main/AndroidManifest.xml +26 -26
  175. package/dist/templates/react-native/android/app/src/main/java/com/{{appName}}/MainActivity.java +15 -15
  176. package/dist/templates/react-native/android/app/src/main/java/com/{{appName}}/MainApplication.java +74 -74
  177. package/dist/templates/react-native/android/app/src/main/res/values/strings.xml +3 -3
  178. package/dist/templates/react-native/android/app/src/main/res/values/styles.xml +9 -9
  179. package/dist/templates/react-native/android/build.gradle +38 -38
  180. package/dist/templates/react-native/android/gradle/wrapper/gradle-wrapper.properties +5 -5
  181. package/dist/templates/react-native/android/gradle.properties +21 -21
  182. package/dist/templates/react-native/android/gradlew +188 -188
  183. package/dist/templates/react-native/android/gradlew.bat +100 -100
  184. package/dist/templates/react-native/android/settings.gradle +3 -3
  185. package/dist/templates/react-native/app.json +3 -3
  186. package/dist/templates/react-native/assets/img/sc_logo.svg +52 -52
  187. package/dist/templates/react-native/data/content/Styleguide/ItemLinkField/Item1/en.json +10 -10
  188. package/dist/templates/react-native/data/routes/en.json +22 -22
  189. package/dist/templates/react-native/data/routes/styleguide/en.json +227 -227
  190. package/dist/templates/react-native/data/routes/styleguide/{{language}}.json +31 -31
  191. package/dist/templates/react-native/data/routes/{{language}}.json +7 -7
  192. package/dist/templates/react-native/gitignore +60 -60
  193. package/dist/templates/react-native/ios/Podfile +53 -53
  194. package/dist/templates/react-native/ios/{{appName}}/AppDelegate.h +15 -15
  195. package/dist/templates/react-native/ios/{{appName}}/AppDelegate.m +42 -42
  196. package/dist/templates/react-native/ios/{{appName}}/Base.lproj/LaunchScreen.xib +42 -42
  197. package/dist/templates/react-native/ios/{{appName}}/Images.xcassets/AppIcon.appiconset/Contents.json +38 -38
  198. package/dist/templates/react-native/ios/{{appName}}/Images.xcassets/Contents.json +6 -6
  199. package/dist/templates/react-native/ios/{{appName}}/Info.plist +57 -57
  200. package/dist/templates/react-native/ios/{{appName}}/main.m +16 -16
  201. package/dist/templates/react-native/ios/{{appName}}-tvOS/Info.plist +53 -53
  202. package/dist/templates/react-native/ios/{{appName}}-tvOSTests/Info.plist +24 -24
  203. package/dist/templates/react-native/ios/{{appName}}.xcodeproj/xcshareddata/xcschemes/BasicSampleReactNative-tvOS.xcscheme +129 -129
  204. package/dist/templates/react-native/ios/{{appName}}.xcodeproj/xcshareddata/xcschemes/BasicSampleReactNative.xcscheme +129 -129
  205. package/dist/templates/react-native/ios/{{appName}}Tests/BasicSampleReactNativeTests.m +72 -72
  206. package/dist/templates/react-native/ios/{{appName}}Tests/Info.plist +24 -24
  207. package/dist/templates/react-native/package.json +78 -78
  208. package/dist/templates/react-native/sitecore/config/{{appName}}.config +47 -47
  209. package/dist/templates/react-native/sitecore/gitignore +2 -2
  210. package/dist/templates/vue/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  211. package/dist/templates/vue/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  212. package/dist/templates/vue/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  213. package/dist/templates/vue/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  214. package/dist/templates/vue/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  215. package/dist/templates/vue/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  216. package/dist/templates/vue/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  217. package/dist/templates/vue/data/dictionary/en.yml +7 -7
  218. package/dist/templates/vue/data/dictionary/{{language}}.yml +7 -7
  219. package/dist/templates/vue/data/routes/en.yml +63 -63
  220. package/dist/templates/vue/data/routes/graphql/en.yml +34 -34
  221. package/dist/templates/vue/data/routes/graphql/sample-1/en.yml +9 -9
  222. package/dist/templates/vue/data/routes/graphql/sample-2/en.yml +9 -9
  223. package/dist/templates/vue/data/routes/styleguide/custom-route-type/en.yml +12 -12
  224. package/dist/templates/vue/data/routes/styleguide/en.yml +264 -264
  225. package/dist/templates/vue/data/routes/styleguide/{{language}}.yml +26 -26
  226. package/dist/templates/vue/data/routes/{{language}}.yml +4 -4
  227. package/dist/templates/vue/public/img/icons/safari-pinned-tab.svg +75 -75
  228. package/dist/templates/vue/src/assets/sc_logo.svg +52 -52
  229. package/package.json +2 -2
@@ -1,8 +1,7 @@
1
1
  <div class="component-content">
2
- <ng-container *ngIf="text; else emptyHint">
2
+ @if (text) {
3
3
  <div *scRichText="text"></div>
4
- </ng-container>
5
- <ng-template #emptyHint>
4
+ } @else {
6
5
  <span class="is-empty-hint">Rich text</span>
7
- </ng-template>
6
+ }
8
7
  </div>
@@ -1,10 +1,13 @@
1
1
  import { Component, OnInit } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { JssModule } from '@sitecore-jss/sitecore-jss-angular';
2
4
  import { Field } from '@sitecore-jss/sitecore-jss-angular';
3
5
  import { SxaComponent } from '../sxa.component';
4
6
 
5
7
  @Component({
6
8
  selector: 'app-richtext',
7
9
  templateUrl: './richtext.component.html',
10
+ imports: [CommonModule, JssModule],
8
11
  host: {
9
12
  'class': 'component rich-text',
10
13
  '[class]': "styles",
@@ -1,11 +1,12 @@
1
- <div
2
- *ngFor="let ph of enabledPlaceholders"
3
- class="container-fluid"
4
- [ngClass]="getRowClass(+ph - 1)"
5
- >
6
- <div>
7
- <div class="row">
8
- <sc-placeholder [name]="getPlaceholderName(ph)" [rendering]="rendering"> </sc-placeholder>
1
+ @for (ph of enabledPlaceholders; track ph) {
2
+ <div
3
+ class="container-fluid"
4
+ [ngClass]="getRowClass(+ph - 1)"
5
+ >
6
+ <div>
7
+ <div class="row">
8
+ <sc-placeholder [name]="getPlaceholderName(ph)" [rendering]="rendering"> </sc-placeholder>
9
+ </div>
9
10
  </div>
10
11
  </div>
11
- </div>
12
+ }
@@ -1,9 +1,12 @@
1
1
  import { Component } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { JssModule } from '@sitecore-jss/sitecore-jss-angular';
2
4
  import { SxaComponent } from '../sxa.component';
3
5
 
4
6
  @Component({
5
7
  selector: 'app-row-splitter',
6
8
  templateUrl: './row-splitter.component.html',
9
+ imports: [CommonModule, JssModule],
7
10
  host: {
8
11
  "class": "component row-splitter",
9
12
  "[class]": "rowSplitterStyles",
@@ -1,10 +1,9 @@
1
1
  <div clas="component-content">
2
2
  <div class="field-title">
3
- <ng-container *ngIf="!pageEditing; else textOnly">
3
+ @if (!pageEditing) {
4
4
  <a *scGenericLink="link"></a>
5
- </ng-container>
5
+ } @else {
6
+ <span *scText="text"></span>
7
+ }
6
8
  </div>
7
9
  </div>
8
- <ng-template #textOnly>
9
- <span *scText="text"></span>
10
- </ng-template>
@@ -1,4 +1,6 @@
1
- import { Component, OnDestroy, OnInit } from '@angular/core';
1
+ import { Component, OnDestroy, OnInit, inject } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { JssModule } from '@sitecore-jss/sitecore-jss-angular';
2
4
  import { LinkField, SxaTitleFields, TextField } from '@sitecore-jss/sitecore-jss-angular';
3
5
  import { SxaComponent } from '../sxa.component';
4
6
  import { Subscription } from 'rxjs';
@@ -7,6 +9,7 @@ import { JssContextService } from '../../jss-context.service';
7
9
  @Component({
8
10
  selector: 'app-title',
9
11
  templateUrl: './title.component.html',
12
+ imports: [CommonModule, JssModule],
10
13
  host: {
11
14
  'class': 'component title',
12
15
  '[class]': 'styles',
@@ -19,10 +22,7 @@ export class TitleComponent extends SxaComponent<SxaTitleFields> implements OnIn
19
22
  pageEditing?: boolean;
20
23
 
21
24
  private contextSubscription: Subscription;
22
-
23
- constructor(private jssContext: JssContextService) {
24
- super();
25
- }
25
+ private jssContext = inject(JssContextService);
26
26
 
27
27
  ngOnInit() {
28
28
  super.ngOnInit();
@@ -1,4 +1,4 @@
1
- import { Inject, Injectable } from '@angular/core';
1
+ import { inject, Injectable } from '@angular/core';
2
2
  import { DOCUMENT } from '@angular/common';
3
3
  import { HTMLLink } from '@sitecore-jss/sitecore-jss-angular';
4
4
 
@@ -6,7 +6,7 @@ import { HTMLLink } from '@sitecore-jss/sitecore-jss-angular';
6
6
  providedIn: 'root',
7
7
  })
8
8
  export class JssLinkService {
9
- constructor(@Inject(DOCUMENT) private document: Document) {}
9
+ private document = inject(DOCUMENT);
10
10
 
11
11
  /**
12
12
  * Adds link element in the document head.
@@ -1,38 +1,40 @@
1
1
  <div class="{{ mainClassPageEditing }}">
2
- <ng-container *ngIf="state === LayoutState.Layout">
3
- <app-scripts></app-scripts>
4
- <header>
5
- <div id="header">
6
- <sc-placeholder
7
- name="headless-header"
8
- [rendering]="route"
9
- (loaded)="onPlaceholderLoaded($event)"
10
- ></sc-placeholder>
11
- </div>
12
- </header>
13
- <main>
14
- <div id="content">
15
- <sc-placeholder
16
- name="headless-main"
17
- [rendering]="route"
18
- (loaded)="onPlaceholderLoaded($event)"
19
- ></sc-placeholder>
20
- </div>
21
- </main>
22
- <footer>
23
- <div id="footer">
24
- <sc-placeholder
25
- name="headless-footer"
26
- [rendering]="route"
27
- (loaded)="onPlaceholderLoaded($event)"
28
- ></sc-placeholder>
29
- </div>
30
- </footer>
31
- </ng-container>
32
-
33
- <app-not-found
34
- *ngIf="state === LayoutState.NotFound"
35
- [errorContextData]="errorContextData"
36
- ></app-not-found>
37
- <app-server-error *ngIf="state === LayoutState.Error"></app-server-error>
2
+ @if (state === LayoutState.Layout) {
3
+ <ng-container>
4
+ <app-scripts></app-scripts>
5
+ <header>
6
+ <div id="header">
7
+ <sc-placeholder
8
+ name="headless-header"
9
+ [rendering]="route"
10
+ (loaded)="onPlaceholderLoaded($event)"
11
+ ></sc-placeholder>
12
+ </div>
13
+ </header>
14
+ <main>
15
+ <div id="content">
16
+ <sc-placeholder
17
+ name="headless-main"
18
+ [rendering]="route"
19
+ (loaded)="onPlaceholderLoaded($event)"
20
+ ></sc-placeholder>
21
+ </div>
22
+ </main>
23
+ <footer>
24
+ <div id="footer">
25
+ <sc-placeholder
26
+ name="headless-footer"
27
+ [rendering]="route"
28
+ (loaded)="onPlaceholderLoaded($event)"
29
+ ></sc-placeholder>
30
+ </div>
31
+ </footer>
32
+ </ng-container>
33
+ }
34
+ @if (state === LayoutState.NotFound) {
35
+ <app-not-found [errorContextData]="errorContextData"></app-not-found>
36
+ }
37
+ @if (state === LayoutState.Error) {
38
+ <app-server-error></app-server-error>
39
+ }
38
40
  </div>
@@ -1,17 +1,22 @@
1
1
  /* eslint-disable no-shadow, no-console */
2
- import { Component, OnInit, OnDestroy } from '@angular/core';
2
+ import { Component, OnInit, OnDestroy, inject } from '@angular/core';
3
3
  import {
4
4
  RouteData,
5
5
  Field,
6
6
  LayoutServiceContextData,
7
7
  getContentStylesheetLink,
8
+ JssModule,
8
9
  } from '@sitecore-jss/sitecore-jss-angular';
9
10
  import { ActivatedRoute } from '@angular/router';
10
11
  import { Subscription } from 'rxjs';
11
12
  import { JssState } from '../../JssState';
12
13
  import { JssMetaService } from '../../jss-meta.service';
13
14
  import { JssLinkService } from '../../jss-link.service';
15
+ import { NotFoundComponent } from '../not-found/not-found.component';
16
+ import { ServerErrorComponent } from '../server-error/server-error.component';
17
+ import { ScriptsComponent } from '../scripts/scripts.component';
14
18
  import { environment as env } from '../../../environments/environment';
19
+ import { CommonModule } from '@angular/common';
15
20
 
16
21
  enum LayoutState {
17
22
  Layout,
@@ -27,6 +32,7 @@ interface RouteFields {
27
32
  @Component({
28
33
  selector: 'app-layout',
29
34
  templateUrl: './layout.component.html',
35
+ imports: [CommonModule, JssModule, NotFoundComponent, ServerErrorComponent, ScriptsComponent],
30
36
  })
31
37
  export class LayoutComponent implements OnInit, OnDestroy {
32
38
  route: RouteData<RouteFields>;
@@ -36,11 +42,9 @@ export class LayoutComponent implements OnInit, OnDestroy {
36
42
  errorContextData: LayoutServiceContextData;
37
43
  mainClassPageEditing: string;
38
44
 
39
- constructor(
40
- private activatedRoute: ActivatedRoute,
41
- private readonly meta: JssMetaService,
42
- private linkService: JssLinkService
43
- ) {}
45
+ private activatedRoute = inject(ActivatedRoute);
46
+ private readonly meta = inject(JssMetaService);
47
+ private linkService = inject(JssLinkService);
44
48
 
45
49
  ngOnInit() {
46
50
  // route data is populated by the JssRouteResolver
@@ -1,4 +1,4 @@
1
- import { Component, OnInit, OnDestroy } from '@angular/core';
1
+ import { Component, OnInit, OnDestroy, inject } from '@angular/core';
2
2
  import { Subscription } from 'rxjs';
3
3
  import { isServer, CdpHelper, LayoutServicePageState } from '@sitecore-jss/sitecore-jss-angular';
4
4
  import { pageView, PageViewData } from '@sitecore-cloudsdk/events/browser';
@@ -18,8 +18,7 @@ import { environment } from '../../../environments/environment';
18
18
  })
19
19
  export class CdpPageViewComponent implements OnInit, OnDestroy {
20
20
  private contextSubscription: Subscription;
21
-
22
- constructor(private jssContext: JssContextService) {}
21
+ private jssContext = inject(JssContextService);
23
22
 
24
23
  ngOnInit(): void {
25
24
  if (!isServer()) {
@@ -1,4 +1,4 @@
1
- import { Component, OnInit } from '@angular/core';
1
+ import { Component, OnInit, inject } from '@angular/core';
2
2
  import { take } from 'rxjs/operators';
3
3
  import { CloudSDK } from '@sitecore-cloudsdk/core/browser';
4
4
  import '@sitecore-cloudsdk/events/browser';
@@ -15,7 +15,7 @@ import { JssState } from '../../JssState';
15
15
  template: '',
16
16
  })
17
17
  export class CloudSdkInitComponent implements OnInit {
18
- constructor(private jssContext: JssContextService) {}
18
+ private jssContext = inject(JssContextService);
19
19
 
20
20
  ngOnInit(): void {
21
21
  if (!isServer() && environment.production) {
@@ -0,0 +1,13 @@
1
+ import { Component } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { JssModule } from '@sitecore-jss/sitecore-jss-angular';
4
+ import { CloudSdkInitComponent } from './cloud-sdk-init.component';
5
+ import { CdpPageViewComponent } from './cdp-page-view.component';
6
+
7
+ @Component({
8
+ selector: 'app-scripts',
9
+ templateUrl: './scripts.component.html',
10
+ imports: [CommonModule, JssModule, CloudSdkInitComponent, CdpPageViewComponent]
11
+ })
12
+ export class ScriptsComponent {}
13
+
@@ -5,8 +5,7 @@ import { CloudSdkInitComponent } from './cloud-sdk-init.component';
5
5
  import { CdpPageViewComponent } from './cdp-page-view.component';
6
6
 
7
7
  @NgModule({
8
+ imports: [JssModule, ScriptsComponent, CloudSdkInitComponent, CdpPageViewComponent],
8
9
  exports: [ScriptsComponent],
9
- imports: [JssModule],
10
- declarations: [ScriptsComponent, CloudSdkInitComponent, CdpPageViewComponent],
11
10
  })
12
11
  export class ScriptsModule {}
@@ -1,52 +1,52 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 27.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg width="221px" height="48px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 668 143.7" style="enable-background:new 0 0 668 143.7;" xml:space="preserve">
5
- <style type="text/css">
6
- .st0{fill:#EB1F1F;}
7
- </style>
8
- <path d="M645.5,98.1V85.8h-27.6V73.5h24.7V62h-24.7V50.8H644V38.7h-39.9v59.4C604.1,98.1,645.5,98.1,645.5,98.1z M570.7,60.6
9
- c-0.6,0.9-1.5,1.7-2.5,2.2c-1.1,0.5-2.2,0.8-3.4,1s-2.4,0.3-3.6,0.3h-6.8V50.3h7.7c1.1,0,2.2,0.1,3.3,0.2c1.1,0.2,2.1,0.5,3.1,1
10
- c0.9,0.5,1.7,1.2,2.3,2c0.6,1,0.9,2.2,0.9,3.4C571.7,58.2,571.4,59.5,570.7,60.6 M589,98.1l-15.5-25.4c3.6-1,6.8-3,9.1-5.9
11
- c2.2-2.9,3.4-6.5,3.3-10.2c0.1-2.9-0.6-5.9-1.9-8.5c-1.2-2.2-3-4.1-5.2-5.5s-4.7-2.5-7.3-3c-2.7-0.6-5.5-0.9-8.3-0.9h-22.6v59.4h14
12
- V74.5h4.9l12.9,23.6H589z M508.1,75.6c-0.8,2.1-2,4.1-3.5,5.8c-1.5,1.6-3.4,2.9-5.4,3.8c-4.4,1.9-9.4,1.9-13.8,0
13
- c-2-0.9-3.8-2.2-5.3-3.8c-1.5-1.7-2.7-3.7-3.5-5.8c-1.7-4.7-1.7-9.9,0-14.6c0.7-2.1,1.9-4.1,3.5-5.7c3.2-3.3,7.6-5.2,12.2-5.2
14
- c2.4,0,4.7,0.4,6.9,1.4c2,0.9,3.9,2.2,5.4,3.8c1.5,1.7,2.7,3.6,3.5,5.7c0.9,2.3,1.3,4.7,1.3,7.2C509.4,70.7,509,73.2,508.1,75.6
15
- M522.3,55.3c-1.5-3.7-3.8-7.1-6.8-9.8s-6.5-4.8-10.3-6.2c-8.4-2.9-17.4-2.9-25.8,0c-3.8,1.4-7.2,3.5-10.2,6.2
16
- c-2.9,2.8-5.2,6.1-6.8,9.8c-1.7,4.1-2.5,8.5-2.4,12.9c0,4.4,0.8,8.7,2.4,12.8c1.5,3.8,3.8,7.2,6.8,10c2.9,2.8,6.4,5,10.2,6.4
17
- c8.3,3,17.5,3,25.8,0c3.8-1.4,7.3-3.6,10.3-6.4c2.9-2.8,5.2-6.2,6.8-10c1.7-4.1,2.5-8.5,2.4-12.9C524.8,63.7,523.9,59.4,522.3,55.3
18
- M451.4,89.8l-10-9.4c-1.4,1.8-3.1,3.3-5.1,4.4c-2.3,1.2-4.9,1.7-7.5,1.7c-2.3,0-4.6-0.4-6.8-1.3c-2-0.9-3.8-2.1-5.3-3.7
19
- c-1.5-1.7-2.7-3.6-3.5-5.7c-0.9-2.4-1.3-4.9-1.3-7.4s0.4-4.9,1.3-7.2c0.8-2.1,2-4.1,3.5-5.8c1.5-1.6,3.4-2.9,5.4-3.8
20
- c2.2-0.9,4.5-1.4,6.9-1.4c2.3,0,4.6,0.5,6.7,1.3c2.1,0.9,4,2.3,5.3,4.2l9.7-9.7c-2.7-3-6.1-5.2-9.9-6.5c-8.1-2.9-16.9-2.9-25,0
21
- c-3.8,1.3-7.3,3.4-10.3,6.2c-2.9,2.8-5.3,6.2-6.8,9.9c-1.7,4.1-2.5,8.5-2.5,12.9c-0.1,4.4,0.8,8.7,2.4,12.7
22
- c3.1,7.6,9.2,13.5,16.9,16.4c4.1,1.5,8.4,2.3,12.7,2.3c4.6,0.1,9.1-0.8,13.3-2.6C445.3,95.5,448.6,92.9,451.4,89.8 M383,98.1V85.8
23
- h-27.6V73.5H380V62h-24.6V50.8h26.1V38.7h-39.9v59.4L383,98.1z M325.8,50.9V38.7h-47.9v12.2h16.8V98H309V50.9H325.8z M262.2,38.7
24
- h-14.4v59.4h14.4V38.7z M230.3,44.5c-2.7-2.4-5.8-4.3-9.2-5.4c-3.3-1.2-6.8-1.8-10.3-1.8c-2.8,0-5.6,0.3-8.3,1
25
- c-2.6,0.7-5.1,1.8-7.4,3.4c-2.2,1.5-4,3.5-5.3,5.8c-1.4,2.6-2.1,5.5-2,8.5c-0.2,4.4,1.5,8.6,4.7,11.6c1.4,1.3,3.1,2.4,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3.5-6.9,5.4-14.6,5.4-22.4
36
- C121.5,70.6,121.5,69.4,121.4,68.2"/>
37
- <path class="st0" d="M68,114L68,114c-15.7,0-30.4-7.8-40.9-21.1c11.6,24.8,41.2,35.5,65.9,23.8c9.2-4.3,16.9-11.4,22-20.2l-7.6-4.8
38
- C99.1,105.6,84.2,114.1,68,114"/>
39
- <path class="st0" d="M71.9,124c-28.8,0-52.2-23.4-52.2-52.2s23.4-52.2,52.2-52.2s52.2,23.4,52.2,52.2l0,0l0,0
40
- C124.1,100.6,100.8,124,71.9,124C72,124,72,124,71.9,124L71.9,124L71.9,124 M71.9,0C32.2,0,0,32.1,0,71.8s32.1,71.9,71.8,71.9
41
- s71.9-32.1,71.9-71.8v-0.1C143.7,32.2,111.6,0,71.9,0L71.9,0L71.9,0"/>
42
- <path d="M660.9,44.3v-1.9h1.1c0.3,0,0.6,0.1,0.9,0.2c0.3,0.1,0.4,0.4,0.4,0.7c0,0.4-0.2,0.7-0.5,0.8c-0.3,0.1-0.6,0.2-1,0.2H660.9z
43
- M659.7,48h1.2v-2.8h0.8l1.5,2.8h1.4l-1.8-2.9c0.5-0.1,0.8-0.3,1.1-0.6c0.3-0.3,0.4-0.7,0.4-1.2c0-0.4-0.1-0.7-0.2-0.9
44
- c-0.1-0.2-0.3-0.4-0.6-0.6c-0.2-0.2-0.5-0.3-0.8-0.3c-0.3-0.1-0.6-0.1-0.9-0.1h-2.3V48z M657.5,42.8c0.3-0.6,0.6-1.1,1.1-1.6
45
- c0.4-0.4,1-0.8,1.6-1.1c0.6-0.3,1.2-0.4,1.9-0.4c0.7,0,1.3,0.1,1.9,0.4c0.6,0.3,1.1,0.6,1.6,1.1c0.4,0.4,0.8,1,1.1,1.6
46
- c0.3,0.6,0.4,1.2,0.4,1.9c0,0.7-0.1,1.3-0.4,1.9c-0.3,0.6-0.6,1.1-1.1,1.6c-0.4,0.5-1,0.8-1.6,1.1c-0.6,0.3-1.2,0.4-1.9,0.4
47
- c-0.7,0-1.3-0.1-1.9-0.4c-0.6-0.3-1.1-0.6-1.6-1.1c-0.4-0.5-0.8-1-1.1-1.6c-0.3-0.6-0.4-1.2-0.4-1.9C657.1,44,657.2,43.4,657.5,42.8
48
- M656.6,47c0.3,0.7,0.7,1.3,1.3,1.8c0.5,0.5,1.2,0.9,1.9,1.2c0.7,0.3,1.5,0.4,2.3,0.4s1.6-0.1,2.3-0.4c0.7-0.3,1.3-0.7,1.9-1.2
49
- c0.5-0.5,1-1.1,1.3-1.8c0.3-0.7,0.5-1.5,0.5-2.3s-0.2-1.6-0.5-2.3c-0.3-0.7-0.7-1.3-1.3-1.9c-0.5-0.5-1.2-0.9-1.9-1.2
50
- c-0.7-0.3-1.5-0.5-2.3-0.5s-1.6,0.2-2.3,0.5c-0.7,0.3-1.3,0.7-1.9,1.2c-0.5,0.5-1,1.1-1.3,1.9c-0.3,0.7-0.5,1.5-0.5,2.3
51
- S656.3,46.3,656.6,47"/>
52
- </svg>
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 27.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg width="221px" height="48px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 668 143.7" style="enable-background:new 0 0 668 143.7;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#EB1F1F;}
7
+ </style>
8
+ <path d="M645.5,98.1V85.8h-27.6V73.5h24.7V62h-24.7V50.8H644V38.7h-39.9v59.4C604.1,98.1,645.5,98.1,645.5,98.1z M570.7,60.6
9
+ c-0.6,0.9-1.5,1.7-2.5,2.2c-1.1,0.5-2.2,0.8-3.4,1s-2.4,0.3-3.6,0.3h-6.8V50.3h7.7c1.1,0,2.2,0.1,3.3,0.2c1.1,0.2,2.1,0.5,3.1,1
10
+ c0.9,0.5,1.7,1.2,2.3,2c0.6,1,0.9,2.2,0.9,3.4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,6.2,5,9.9,6.3c3.9,1.5,8.1,2.3,12.3,2.3c2.9,0,5.7-0.4,8.5-1.2c2.6-0.7,5.1-2,7.3-3.6c2.1-1.7,3.8-3.8,5-6.2
29
+ c1.3-2.7,2-5.8,1.9-8.8c0.1-2.6-0.5-5.2-1.8-7.4c-1.1-1.9-2.6-3.6-4.4-5c-1.8-1.4-3.8-2.4-5.9-3.2c-2.2-0.8-4.3-1.6-6.3-2.2
30
+ c-1.4-0.4-2.7-0.9-3.8-1.3c-1-0.4-2-0.8-2.9-1.4c-1.5-0.9-2.5-2.5-2.4-4.3c0-1,0.2-2,0.8-2.9c0.5-0.7,1.2-1.4,2-1.8
31
+ c0.8-0.5,1.7-0.8,2.6-1c1-0.2,1.9-0.2,2.9-0.2c4.1,0.1,7.9,2,10.5,5.1L230.3,44.5z"/>
32
+ <path class="st0" d="M68.6,104.8c5.6-0.7,11.1-2.4,16-5.2c12.1-6.8,19.1-18.4,19.7-32.7l0.1-1.2h16.8c-1-8.3-4.2-16.2-9.1-23
33
+ L94.9,53.6c5.2,7.9,5.9,17.9,1.9,26.4C92.1,90.8,81,100.2,68.6,104.8"/>
34
+ <path class="st0" d="M121.4,68.2h-14.6c-1,14.5-8.6,26.7-21,33.6c-7.2,3.9-15.2,6-23.4,5.9c-6.5,0-13-1.2-19.1-3.5
35
+ c7.3,4.7,15.9,7.2,24.6,7.2H68c15.7,0,30.1-8.5,37.7-22.3l0.7-1.2l9.8,6.2c3.5-6.9,5.4-14.6,5.4-22.4
36
+ C121.5,70.6,121.5,69.4,121.4,68.2"/>
37
+ <path class="st0" d="M68,114L68,114c-15.7,0-30.4-7.8-40.9-21.1c11.6,24.8,41.2,35.5,65.9,23.8c9.2-4.3,16.9-11.4,22-20.2l-7.6-4.8
38
+ C99.1,105.6,84.2,114.1,68,114"/>
39
+ <path class="st0" d="M71.9,124c-28.8,0-52.2-23.4-52.2-52.2s23.4-52.2,52.2-52.2s52.2,23.4,52.2,52.2l0,0l0,0
40
+ C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-0.7,0.5-1.5,0.5-2.3s-0.2-1.6-0.5-2.3c-0.3-0.7-0.7-1.3-1.3-1.9c-0.5-0.5-1.2-0.9-1.9-1.2
50
+ c-0.7-0.3-1.5-0.5-2.3-0.5s-1.6,0.2-2.3,0.5c-0.7,0.3-1.3,0.7-1.9,1.2c-0.5,0.5-1,1.1-1.3,1.9c-0.3,0.7-0.5,1.5-0.5,2.3
51
+ S656.3,46.3,656.6,47"/>
52
+ </svg>
@@ -1,9 +1,9 @@
1
- # We can reuse this content definition in multiple places because it:
2
- # - has an ID
3
- # - is under component-content (normally) or content
4
- # Reuse is accomplished by referencing the content by ID in a route definition.
5
- id: lorem-ipsum-content-block
6
- componentName: ContentBlock
7
- displayName: Lorem Ipsum Dolor Sit Amet
8
- fields:
9
- content: <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque felis mauris, pretium id neque vitae, vulputate pellentesque tortor. Mauris hendrerit dolor et ipsum lobortis bibendum non finibus neque. Morbi volutpat aliquam magna id posuere. Duis commodo cursus dui, nec interdum velit congue nec. Aliquam erat volutpat. Aliquam facilisis, sapien quis fringilla tincidunt, magna nulla feugiat neque, a consectetur arcu orci eu augue.</p>
1
+ # We can reuse this content definition in multiple places because it:
2
+ # - has an ID
3
+ # - is under component-content (normally) or content
4
+ # Reuse is accomplished by referencing the content by ID in a route definition.
5
+ id: lorem-ipsum-content-block
6
+ componentName: ContentBlock
7
+ displayName: Lorem Ipsum Dolor Sit Amet
8
+ fields:
9
+ content: <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque felis mauris, pretium id neque vitae, vulputate pellentesque tortor. Mauris hendrerit dolor et ipsum lobortis bibendum non finibus neque. Morbi volutpat aliquam magna id posuere. Duis commodo cursus dui, nec interdum velit congue nec. Aliquam erat volutpat. Aliquam facilisis, sapien quis fringilla tincidunt, magna nulla feugiat neque, a consectetur arcu orci eu augue.</p>
@@ -1,6 +1,6 @@
1
- id: styleguide-content-list-field-shared-1
2
- displayName: Styleguide Content List Item 1 (Shared)
3
- # Template defines the available fields. See /sitecore/definitions/templates/Styleguide-ContentList-Template.sitecore.js
4
- template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ContentList-Item-Template
5
- fields:
6
- textField: ContentList Demo (Shared) Item 1 Text Field
1
+ id: styleguide-content-list-field-shared-1
2
+ displayName: Styleguide Content List Item 1 (Shared)
3
+ # Template defines the available fields. See /sitecore/definitions/templates/Styleguide-ContentList-Template.sitecore.js
4
+ template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ContentList-Item-Template
5
+ fields:
6
+ textField: ContentList Demo (Shared) Item 1 Text Field
@@ -1,6 +1,6 @@
1
- id: styleguide-content-list-field-shared-2
2
- displayName: Styleguide Content List Item 2 (Shared)
3
- # Template defines the available fields. See /sitecore/definitions/templates/Styleguide-ContentList-Template.sitecore.js
4
- template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ContentList-Item-Template
5
- fields:
6
- textField: ContentList Demo (Shared) Item 2 Text Field
1
+ id: styleguide-content-list-field-shared-2
2
+ displayName: Styleguide Content List Item 2 (Shared)
3
+ # Template defines the available fields. See /sitecore/definitions/templates/Styleguide-ContentList-Template.sitecore.js
4
+ template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ContentList-Item-Template
5
+ fields:
6
+ textField: ContentList Demo (Shared) Item 2 Text Field
@@ -1,6 +1,6 @@
1
- id: styleguide-edit-frame-list-item-1
2
- displayName: EditFrame Demo List Item 1
3
- # Template defines the available fields. See /sitecore/definitions/templates/Styleguide-EditFrame-ListItem-Template.ts
4
- template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-EditFrame-ListItem-Template
5
- fields:
6
- title: Edit Frame Demo List Item 1
1
+ id: styleguide-edit-frame-list-item-1
2
+ displayName: EditFrame Demo List Item 1
3
+ # Template defines the available fields. See /sitecore/definitions/templates/Styleguide-EditFrame-ListItem-Template.ts
4
+ template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-EditFrame-ListItem-Template
5
+ fields:
6
+ title: Edit Frame Demo List Item 1
@@ -1,6 +1,6 @@
1
- id: styleguide-edit-frame-list-item-2
2
- displayName: EditFrame Demo List Item 2
3
- # Template defines the available fields. See /sitecore/definitions/templates/Styleguide-EditFrame-ListItem-Template.ts
4
- template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-EditFrame-ListItem-Template
5
- fields:
6
- title: Edit Frame Demo List Item 2
1
+ id: styleguide-edit-frame-list-item-2
2
+ displayName: EditFrame Demo List Item 2
3
+ # Template defines the available fields. See /sitecore/definitions/templates/Styleguide-EditFrame-ListItem-Template.ts
4
+ template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-EditFrame-ListItem-Template
5
+ fields:
6
+ title: Edit Frame Demo List Item 2
@@ -1,6 +1,6 @@
1
- id: styleguide-item-link-field-shared-1
2
- displayName: Styleguide Item Link Item 1 (Shared)
3
- # Template defines the available fields. See /sitecore/definitions/templates/Styleguide-ItemLink-Template.sitecore.js
4
- template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ItemLink-Item-Template
5
- fields:
6
- textField: ItemLink Demo (Shared) Item 1 Text Field
1
+ id: styleguide-item-link-field-shared-1
2
+ displayName: Styleguide Item Link Item 1 (Shared)
3
+ # Template defines the available fields. See /sitecore/definitions/templates/Styleguide-ItemLink-Template.sitecore.js
4
+ template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ItemLink-Item-Template
5
+ fields:
6
+ textField: ItemLink Demo (Shared) Item 1 Text Field
@@ -1,6 +1,6 @@
1
- id: styleguide-item-link-field-shared-2
2
- displayName: Styleguide Item Link Item 2 (Shared)
3
- # Template defines the available fields. See /sitecore/definitions/templates/Styleguide-ItemLink-Template.sitecore.js
4
- template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ItemLink-Item-Template
5
- fields:
6
- textField: ItemLink Demo (Shared) Item 2 Text Field
1
+ id: styleguide-item-link-field-shared-2
2
+ displayName: Styleguide Item Link Item 2 (Shared)
3
+ # Template defines the available fields. See /sitecore/definitions/templates/Styleguide-ItemLink-Template.sitecore.js
4
+ template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ItemLink-Item-Template
5
+ fields:
6
+ textField: ItemLink Demo (Shared) Item 2 Text Field
@@ -1,4 +1,4 @@
1
- styleguide-sample: This is a dictionary entry in English as a demonstration
2
- Documentation: Documentation
3
- Styleguide: Styleguide
4
- GraphQL: GraphQL
1
+ styleguide-sample: This is a dictionary entry in English as a demonstration
2
+ Documentation: Documentation
3
+ Styleguide: Styleguide
4
+ GraphQL: GraphQL
@@ -1,4 +1,4 @@
1
- styleguide-sample: '[<%- language %>] This is a dictionary entry in English as a demonstration'
2
- Documentation: '[<%- language %>] Documentation'
3
- Styleguide: '[<%- language %>] Styleguide'
4
- GraphQL: '[<%- language %>] GraphQL'
1
+ styleguide-sample: '[<%- language %>] This is a dictionary entry in English as a demonstration'
2
+ Documentation: '[<%- language %>] Documentation'
3
+ Styleguide: '[<%- language %>] Styleguide'
4
+ GraphQL: '[<%- language %>] GraphQL'