create-sitecore-jss 22.10.0-canary.9 → 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
@@ -3,6 +3,7 @@ import { CommonModule } from '@angular/common';
3
3
  import { FormsModule } from '@angular/forms';
4
4
  import { TranslateModule } from '@ngx-translate/core';
5
5
  import { RouterModule } from '@angular/router';
6
+ import { StyleguideSpecimenComponent } from './shared/styleguide-specimen/styleguide-specimen.component';
6
7
  import { JssModule } from '@sitecore-jss/sitecore-jss-angular';
7
8
 
8
9
  /*
@@ -13,8 +14,20 @@ import { JssModule } from '@sitecore-jss/sitecore-jss-angular';
13
14
  Don't want code generation? See ./.gitignore for instructions to turn it off.
14
15
  */
15
16
  @NgModule({
16
- imports: [CommonModule, TranslateModule, RouterModule, JssModule, FormsModule],
17
- exports: [CommonModule, TranslateModule, RouterModule, FormsModule],
18
- declarations: [],
17
+ imports: [
18
+ CommonModule,
19
+ TranslateModule,
20
+ RouterModule,
21
+ JssModule,
22
+ FormsModule,
23
+ StyleguideSpecimenComponent
24
+ ],
25
+ exports: [
26
+ CommonModule,
27
+ TranslateModule,
28
+ RouterModule,
29
+ FormsModule,
30
+ StyleguideSpecimenComponent
31
+ ],
19
32
  })
20
33
  export class AppComponentsSharedModule {}
@@ -1,9 +1,10 @@
1
1
  import { Component, Input } from '@angular/core';
2
- import { ComponentRendering } from '@sitecore-jss/sitecore-jss-angular';
2
+ import { ComponentRendering, JssModule } from '@sitecore-jss/sitecore-jss-angular';
3
3
 
4
4
  @Component({
5
5
  selector: 'app-content-block',
6
6
  templateUrl: './content-block.component.html',
7
+ imports: [JssModule]
7
8
  })
8
9
  export class ContentBlockComponent {
9
10
  @Input() rendering: ComponentRendering;
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @angular-eslint/prefer-inject */
1
2
  import { Injectable, TransferState } from '@angular/core';
2
3
  import { TranslateLoader } from '@ngx-translate/core';
3
4
  import { DictionaryPhrases } from '@sitecore-jss/sitecore-jss-angular';
@@ -8,8 +9,8 @@ import { dictionaryStateKey } from './jss-translation-server-loader.service';
8
9
  @Injectable()
9
10
  export class JssTranslationClientLoaderService implements TranslateLoader {
10
11
  constructor(
11
- private fallbackLoader: JssTranslationLoaderService,
12
- private transferState: TransferState
12
+ protected fallbackLoader: JssTranslationLoaderService,
13
+ protected transferState: TransferState
13
14
  ) {}
14
15
 
15
16
  getTranslation(lang: string): Observable<DictionaryPhrases> {
@@ -1,7 +1,9 @@
1
- import { Inject, Injectable, makeStateKey, StateKey, TransferState } from '@angular/core';
1
+ /* eslint-disable @angular-eslint/prefer-inject */
2
+ import { Injectable, makeStateKey, StateKey, TransferState } from '@angular/core';
2
3
  import { TranslateLoader } from '@ngx-translate/core';
3
4
  import { DictionaryPhrases } from '@sitecore-jss/sitecore-jss-angular';
4
5
  import { of as observableOf, EMPTY } from 'rxjs';
6
+ import { ViewBag } from '../ViewBag';
5
7
 
6
8
  export const dictionaryStateKey: StateKey<DictionaryPhrases> = makeStateKey<DictionaryPhrases>(
7
9
  'dictionary'
@@ -11,10 +13,10 @@ export const dictionaryStateKey: StateKey<DictionaryPhrases> = makeStateKey<Dict
11
13
  export class JssTranslationServerLoaderService implements TranslateLoader {
12
14
  constructor(
13
15
  // this initial state from sitecore is injected by server.bundle for "integrated" mode
14
- @Inject('JSS_SERVER_VIEWBAG')
15
- private serverViewBag: { [key: string]: unknown; dictionary: DictionaryPhrases },
16
- private transferState: TransferState
16
+ protected serverViewBag: ViewBag,
17
+ protected transferState: TransferState
17
18
  ) {}
19
+
18
20
  getTranslation(_lang: string) {
19
21
  // read initial dictionary from data injected via server.bundle wrapper
20
22
  const dictionary = this.serverViewBag.dictionary;
@@ -0,0 +1,13 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { InMemoryCache } from '@apollo/client/core';
3
+ import { JssState } from './JssState';
4
+ import { ViewBag } from './ViewBag';
5
+
6
+ /**
7
+ * Injection token for server-side layout data provided by server.bundle
8
+ */
9
+ export const JSS_SERVER_LAYOUT_DATA = new InjectionToken<JssState>('JSS_SERVER_LAYOUT_DATA');
10
+
11
+ export const JSS_SERVER_VIEWBAG = new InjectionToken<ViewBag>('JSS_SERVER_VIEWBAG');
12
+
13
+ export const APOLLO_CACHE = new InjectionToken<InMemoryCache>('APOLLO_CACHE');
@@ -1,9 +1,10 @@
1
- import { Injectable, Inject, TransferState } from '@angular/core';
1
+ import { Injectable, inject, TransferState } from '@angular/core';
2
2
  import { JssContextService, jssKey } from './jss-context.service';
3
3
  import { JssState } from './JssState';
4
4
  import { Observable, of as observableOf } from 'rxjs';
5
5
  import { JssLayoutService } from './layout/jss-layout.service';
6
6
  import { JssStateService } from '@sitecore-jss/sitecore-jss-angular';
7
+ import { JSS_SERVER_LAYOUT_DATA } from './injection-tokens';
7
8
 
8
9
  /**
9
10
  * Stores the JSS app's context (current route and Sitecore context data).
@@ -12,15 +13,12 @@ import { JssStateService } from '@sitecore-jss/sitecore-jss-angular';
12
13
  */
13
14
  @Injectable()
14
15
  export class JssContextServerSideService extends JssContextService {
15
- constructor(
16
- protected transferState: TransferState,
17
- protected layoutService: JssLayoutService,
18
- protected stateService: JssStateService<JssState>,
19
- // this initial state from sitecore is injected by server.bundle for "integrated" mode
20
- @Inject('JSS_SERVER_LAYOUT_DATA') private serverToSsrState: JssState
21
- ) {
22
- super(transferState, layoutService, stateService);
23
- }
16
+ protected transferState = inject(TransferState);
17
+ protected layoutService = inject(JssLayoutService);
18
+ // this initial state from sitecore is injected by server.bundle for "integrated" mode
19
+ protected stateService = inject(JssStateService<JssState>);
20
+ protected serverToSsrState = inject(JSS_SERVER_LAYOUT_DATA);
21
+
24
22
  changeRoute(_route: string, _language: string): Observable<JssState> {
25
23
  // console.log('Server route change to ' + route);
26
24
 
@@ -1,4 +1,4 @@
1
- import { Injectable, TransferState, makeStateKey } from '@angular/core';
1
+ import { Injectable, TransferState, makeStateKey, inject } from '@angular/core';
2
2
  import { LayoutServiceData, JssStateService } from '@sitecore-jss/sitecore-jss-angular';
3
3
  import { map, shareReplay, catchError } from 'rxjs/operators';
4
4
  import { Observable, of as observableOf } from 'rxjs';
@@ -22,8 +22,10 @@ export class JssContextService {
22
22
  get stateValue() {
23
23
  return this.stateService.stateValue;
24
24
  }
25
- constructor(protected transferState: TransferState, protected layoutService: JssLayoutService, protected stateService: JssStateService<JssState>) {
26
- }
25
+
26
+ protected transferState = inject(TransferState);
27
+ protected layoutService = inject(JssLayoutService);
28
+ protected stateService = inject(JssStateService<JssState>);
27
29
 
28
30
  changeLanguage(language: string) {
29
31
  this.stateService.setState({ ...this.stateService.stateValue, language });
@@ -63,7 +65,7 @@ export class JssContextService {
63
65
  );
64
66
 
65
67
  // subscribe to it ourselves so we can maintain current state
66
- jssState$.subscribe((jssState) => {
68
+ jssState$.subscribe((jssState: JssState) => {
67
69
  this.stateService.setState(jssState);
68
70
  });
69
71
 
@@ -1,7 +1,7 @@
1
- import { makeStateKey, TransferState, NgModule, PLATFORM_ID, Inject } from '@angular/core';
1
+ import { makeStateKey, TransferState, NgModule, PLATFORM_ID, inject } from '@angular/core';
2
2
  import { HttpClientModule, HttpHeaders } from '@angular/common/http';
3
3
  import { InMemoryCache, NormalizedCacheObject, PossibleTypesMap } from '@apollo/client/core';
4
- import { Apollo, ApolloModule } from 'apollo-angular';
4
+ import { Apollo, provideApollo } from 'apollo-angular';
5
5
  import { HttpBatchLink } from 'apollo-angular/http';
6
6
  import { isPlatformServer } from '@angular/common';
7
7
  import { environment } from '../environments/environment';
@@ -14,28 +14,73 @@ import { JssGraphQLService } from './jss-graphql.service';
14
14
  If this file does not exist, you may need to run the `jss graphql:update` script.
15
15
  */
16
16
  import introspectionQueryResultData from '../graphql-fragment-types';
17
+ import { APOLLO_CACHE } from './injection-tokens';
17
18
 
18
19
  // SSR transfer state key to serialize + rehydrate apollo cache on client side
19
20
  // See https://www.apollographql.com/docs/angular/recipes/server-side-rendering.html
20
21
  const STATE_KEY = makeStateKey<NormalizedCacheObject>('apollo.state');
21
22
 
23
+ const getGraphQLCache = () => {
24
+ const possibleTypes = {} as PossibleTypesMap;
25
+ introspectionQueryResultData.__schema.types.forEach((supertype) => {
26
+ possibleTypes[supertype.name] = supertype.possibleTypes.map((subtype) => subtype.name);
27
+ });
28
+ return new InMemoryCache({
29
+ possibleTypes,
30
+ });
31
+ };
32
+
33
+ const getApolloOptions = () => {
34
+ const httpLink = inject(HttpBatchLink);
35
+ const platformId = inject(PLATFORM_ID);
36
+ /*
37
+ QUERY LINK SELECTION
38
+ A link is transport which GraphQL queries are pushed across.
39
+ You have many choices.
40
+ See the apollo-link documentation for more details.
41
+ */
42
+
43
+ // set sc_apikey header which is required for any GraphQL calls
44
+ const sc_apikey = new HttpHeaders().set('sc_apikey', environment.sitecoreApiKey);
45
+
46
+ // choose between a basic HTTP link to run queries...
47
+ // import { createHttpLink } from 'apollo-angular-link-http';
48
+ // const link = createHttpLink({ uri: endpoint });
49
+
50
+ // ...or a batched link (multiple queries within 10ms all go in one HTTP request)
51
+ const batchHttp = httpLink.create({
52
+ uri: environment.graphQLEndpoint,
53
+ headers: sc_apikey,
54
+ });
55
+
56
+ const cache = inject(APOLLO_CACHE);
57
+
58
+ return {
59
+ link: batchHttp,
60
+ cache,
61
+ ssrMode: isPlatformServer(platformId),
62
+ ssrForceFetchDelay: 100,
63
+ };
64
+ }
65
+
22
66
  @NgModule({
23
67
  imports: [
24
- ApolloModule,
25
68
  HttpClientModule, // provides HttpClient for HttpLink
26
69
  ],
27
- providers: [JssGraphQLService],
70
+ providers: [
71
+ JssGraphQLService,
72
+ { provide: APOLLO_CACHE, useValue: getGraphQLCache() },
73
+ provideApollo(getApolloOptions),
74
+ ],
28
75
  })
29
76
  export class GraphQLModule {
30
- constructor(
31
- private readonly apollo: Apollo,
32
- private readonly httpLink: HttpBatchLink,
33
- private readonly transferState: TransferState,
34
- @Inject(PLATFORM_ID) private readonly platformId: string
35
- ) {
36
- this.createApolloClient();
77
+ constructor() {
78
+ this.addCacheEvents();
37
79
  }
38
80
 
81
+ private readonly transferState = inject(TransferState);
82
+ apolloClient = inject(Apollo);
83
+
39
84
  onServer(cache: InMemoryCache) {
40
85
  this.transferState.onSerialize(STATE_KEY, () => cache.extract());
41
86
  }
@@ -46,43 +91,8 @@ export class GraphQLModule {
46
91
  cache.restore(state);
47
92
  }
48
93
 
49
- private createApolloClient(): void {
50
- /*
51
- QUERY LINK SELECTION
52
- A link is transport which GraphQL queries are pushed across.
53
- You have many choices.
54
- See the apollo-link documentation for more details.
55
- */
56
-
57
- // set sc_apikey header which is required for any GraphQL calls
58
- const sc_apikey = new HttpHeaders().set('sc_apikey', environment.sitecoreApiKey);
59
-
60
- // choose between a basic HTTP link to run queries...
61
- // import { createHttpLink } from 'apollo-angular-link-http';
62
- // const link = createHttpLink({ uri: endpoint });
63
-
64
- // ...or a batched link (multiple queries within 10ms all go in one HTTP request)
65
- const batchHttp = this.httpLink.create({
66
- uri: environment.graphQLEndpoint,
67
- headers: sc_apikey,
68
- });
69
-
70
- const possibleTypes = {} as PossibleTypesMap;
71
-
72
- introspectionQueryResultData.__schema.types.forEach((supertype) => {
73
- possibleTypes[supertype.name] = supertype.possibleTypes.map((subtype) => subtype.name);
74
- });
75
-
76
- const cache = new InMemoryCache({
77
- possibleTypes,
78
- });
79
-
80
- this.apollo.create({
81
- link: batchHttp,
82
- cache,
83
- ssrMode: isPlatformServer(this.platformId),
84
- ssrForceFetchDelay: 100,
85
- });
94
+ private addCacheEvents(): void {
95
+ const cache = inject(APOLLO_CACHE);
86
96
 
87
97
  const isBrowser = this.transferState.hasKey(STATE_KEY);
88
98
 
@@ -1,4 +1,4 @@
1
- import { Injectable, PLATFORM_ID, Inject, } from '@angular/core';
1
+ import { Injectable, PLATFORM_ID, inject, } from '@angular/core';
2
2
  import { Apollo } from 'apollo-angular';
3
3
  import { ExtraSubscriptionOptions, EmptyObject, MutationResult } from 'apollo-angular/types';
4
4
  import {
@@ -36,16 +36,16 @@ export interface JssGraphQLOptions {
36
36
  export class JssGraphQLService {
37
37
  private isEditingOrPreviewingAndSsr: boolean;
38
38
 
39
- constructor(
40
- private readonly apollo: Apollo,
41
- private readonly sitecoreContext: JssContextService,
42
- @Inject(PLATFORM_ID) private readonly platformId: string,
43
- ) {
39
+ constructor() {
44
40
  this.isEditingOrPreviewingAndSsr =
45
41
  isPlatformServer(this.platformId) &&
46
42
  this.sitecoreContext.stateValue.sitecore.context.pageState !== 'normal';
47
43
  }
48
44
 
45
+ protected apollo = inject(Apollo);
46
+ protected sitecoreContext = inject(JssContextService);
47
+ protected platformId = inject(PLATFORM_ID);
48
+
49
49
  private static extractVariableNames(query: DocumentNode) {
50
50
  const variableNames: { [key: string]: boolean } = {};
51
51
  query.definitions
@@ -1,4 +1,4 @@
1
- import { Injectable } from '@angular/core';
1
+ import { Injectable, inject } from '@angular/core';
2
2
  import { Meta, Title } from '@angular/platform-browser';
3
3
 
4
4
  export interface MetaSettings {
@@ -7,7 +7,8 @@ export interface MetaSettings {
7
7
 
8
8
  @Injectable()
9
9
  export class JssMetaService {
10
- constructor(private titleService: Title, private meta: Meta) {}
10
+ protected titleService = inject(Title);
11
+ protected meta = inject(Meta);
11
12
 
12
13
  setTitle(title?: string) {
13
14
  this.titleService.setTitle(title);
@@ -1,10 +1,15 @@
1
1
  /* eslint-disable no-shadow, no-console */
2
- import { Component, OnInit, OnDestroy } from '@angular/core';
3
- import { RouteData, Field, LayoutServiceContextData } from '@sitecore-jss/sitecore-jss-angular';
2
+ import { Component, OnInit, OnDestroy, inject } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import { RouteData, Field, LayoutServiceContextData, JssModule } from '@sitecore-jss/sitecore-jss-angular';
4
5
  import { ActivatedRoute } from '@angular/router';
5
6
  import { Subscription } from 'rxjs';
6
7
  import { JssState } from '../../JssState';
7
8
  import { JssMetaService } from '../../jss-meta.service';
9
+ import { NotFoundComponent } from '../not-found/not-found.component';
10
+ import { ServerErrorComponent } from '../server-error/server-error.component';
11
+ import { ScriptsComponent } from '../scripts/scripts.component';
12
+ import { NavigationComponent } from '../navigation/navigation.component';
8
13
 
9
14
  enum LayoutState {
10
15
  Layout,
@@ -20,6 +25,7 @@ interface RouteFields {
20
25
  @Component({
21
26
  selector: 'app-layout',
22
27
  templateUrl: './layout.component.html',
28
+ imports: [CommonModule, JssModule, NotFoundComponent, ServerErrorComponent, ScriptsComponent, NavigationComponent]
23
29
  })
24
30
  export class LayoutComponent implements OnInit, OnDestroy {
25
31
  route: RouteData<RouteFields>;
@@ -27,8 +33,8 @@ export class LayoutComponent implements OnInit, OnDestroy {
27
33
  LayoutState = LayoutState;
28
34
  subscription: Subscription;
29
35
  errorContextData: LayoutServiceContextData;
30
-
31
- constructor(private activatedRoute: ActivatedRoute, private readonly meta: JssMetaService) {}
36
+ private activatedRoute = inject(ActivatedRoute);
37
+ private readonly meta = inject(JssMetaService);
32
38
 
33
39
  ngOnInit() {
34
40
  // route data is populated by the JssRouteResolver
@@ -1,7 +1,10 @@
1
1
  import { Component } from '@angular/core';
2
+ import { RouterModule } from '@angular/router';
3
+ import { TranslateModule } from '@ngx-translate/core';
2
4
 
3
5
  @Component({
4
6
  selector: 'app-navigation',
5
7
  templateUrl: './navigation.component.html',
8
+ imports: [RouterModule, TranslateModule]
6
9
  })
7
10
  export class NavigationComponent {}
@@ -3,7 +3,7 @@ import { LayoutServiceContextData } from '@sitecore-jss/sitecore-jss-angular';
3
3
 
4
4
  @Component({
5
5
  selector: 'app-not-found',
6
- templateUrl: './not-found.component.html',
6
+ templateUrl: './not-found.component.html'
7
7
  })
8
8
  export class NotFoundComponent {
9
9
  @Input() errorContextData: LayoutServiceContextData;
@@ -7,9 +7,7 @@ import { jssRouteResolver } from './jss-route-resolver.service';
7
7
  import { JssRouteBuilderService } from './jss-route-builder.service';
8
8
  import { JssModule } from '@sitecore-jss/sitecore-jss-angular';
9
9
  import { BrowserModule } from '@angular/platform-browser';
10
- import { NavigationComponent } from './navigation/navigation.component';
11
10
  import { TranslateModule } from '@ngx-translate/core';
12
- import { ScriptsModule } from './scripts/scripts.module';
13
11
 
14
12
  export function jssRouteMatcher(url: UrlSegment[]): UrlMatchResult {
15
13
  // use the route builder to parse out language / server route
@@ -54,10 +52,11 @@ const routes: Routes = [
54
52
  JssModule,
55
53
  TranslateModule,
56
54
  BrowserModule,
57
- ScriptsModule,
55
+ LayoutComponent,
56
+ NotFoundComponent,
57
+ ServerErrorComponent,
58
58
  ],
59
59
  exports: [RouterModule, TranslateModule],
60
- declarations: [NotFoundComponent, ServerErrorComponent, LayoutComponent, NavigationComponent],
61
60
  providers: [JssRouteBuilderService],
62
61
  })
63
62
  export class RoutingModule {}
@@ -3,6 +3,6 @@ import { ScriptsComponent } from './scripts.component';
3
3
 
4
4
  @NgModule({
5
5
  exports: [ScriptsComponent],
6
- declarations: [ScriptsComponent],
6
+ imports: [ScriptsComponent],
7
7
  })
8
8
  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.4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.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
- 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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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
+ 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,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.sitecore.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.sitecore.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