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,264 +1,264 @@
1
- fields:
2
- pageTitle: Styleguide | Sitecore JSS
3
- placeholders:
4
- <%- helper.getAppPrefix(appPrefix, appName) %>jss-main:
5
- - componentName: ContentBlock
6
- fields:
7
- heading: JSS Styleguide
8
- content: |
9
- <p>This is a live set of examples of how to use JSS. For more information on using JSS, please see <a href="https://jss.sitecore.com" target="_blank" rel="noopener noreferrer">the documentation</a>.</p>
10
- <p>The content and layout of this page is defined in <code>/data/routes/styleguide/en.yml</code></p>
11
- - componentName: Styleguide-Layout
12
- placeholders:
13
- <%- helper.getAppPrefix(appPrefix, appName) %>jss-styleguide-layout:
14
- - componentName: Styleguide-Section
15
- fields:
16
- heading: Content Data
17
- placeholders:
18
- <%- helper.getAppPrefix(appPrefix, appName) %>jss-styleguide-section:
19
- - componentName: Styleguide-FieldUsage-Text
20
- fields:
21
- heading: Single-Line Text
22
- sample: This is a sample text field. <mark>HTML is encoded.</mark> In Sitecore, editors will see a <input type="text">.
23
- sample2: This is another sample text field using rendering options. <mark>HTML supported with encode=false.</mark> Cannot edit because editable=false.
24
- - componentName: Styleguide-FieldUsage-Text
25
- fields:
26
- heading: Multi-Line Text
27
- description: '<small>Multi-line text tells Sitecore to use a <code>textarea</code> for editing; consumption in JSS is the same as single-line text.</small>'
28
- sample: This is a sample multi-line text field. <mark>HTML is encoded.</mark> In Sitecore, editors will see a textarea.
29
- sample2: This is another sample multi-line text field using rendering options. <mark>HTML supported with encode=false.</mark>
30
- - componentName: Styleguide-FieldUsage-RichText
31
- fields:
32
- heading: Rich Text
33
- sample: <p>This is a sample rich text field. <mark>HTML is always supported.</mark> In Sitecore, editors will see a WYSIWYG editor for these fields.</p>
34
- # YAML can use multiline definitions (a pipe followed by an indented block) to make writing rich text content easier.
35
- # As long as the indent remains consistent, no escaping is required.
36
- sample2: |
37
- <p>Another sample rich text field, using options. Keep markup entered in rich text fields as simple as possible - ideally bare tags only (no classes). Adding a wrapping class can help with styling within rich text blocks.</p>
38
- <marquee>But you can use any valid HTML in a rich text field!</marquee>
39
- - componentName: Styleguide-FieldUsage-Image
40
- fields:
41
- heading: Image
42
- sample1:
43
- src: /data/media/img/sc_logo.png
44
- alt: Sitecore Logo
45
- sample2:
46
- src: /data/media/img/jss_logo.png
47
- alt: Sitecore JSS Logo
48
- - componentName: Styleguide-FieldUsage-File
49
- fields:
50
- heading: File
51
- description: |
52
- <small>Note: Sitecore does not support inline editing of File fields. The value must be edited in Experience Editor by using the edit rendering fields button (looks like a pencil) with the whole component selected.</small>
53
- file:
54
- src: /data/media/files/jss.pdf
55
- title: Example File
56
- description: This data will be added to the Sitecore Media Library on import
57
- - componentName: Styleguide-FieldUsage-Number
58
- fields:
59
- heading: Number
60
- description: '<small>Number tells Sitecore to use a number entry for editing.</small>'
61
- sample: 1.21
62
- sample2: 71
63
- - componentName: Styleguide-FieldUsage-Checkbox
64
- fields:
65
- heading: Checkbox
66
- description: |
67
- <small>Note: Sitecore does not support inline editing of Checkbox fields. The value must be edited in Experience Editor by using the edit rendering fields button (looks like a pencil) with the whole component selected.</small>
68
- checkbox: true
69
- checkbox2: false
70
- - componentName: Styleguide-FieldUsage-Date
71
- fields:
72
- heading: Date
73
- description: |
74
- <p><small>Both <code>Date</code> and <code>DateTime</code> field types are available. Choosing <code>DateTime</code> will make Sitecore show editing UI for time; both types store complete date and time values internally. Date values in JSS are formatted using <a href="https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations" target="_blank">ISO 8601 formatted strings</a>, for example <code>2012-04-23T18:25:43.511Z</code>.</small></p>
75
- <div class="alert alert-warning"><small>Note: this is a JavaScript date format (e.g. <code>new Date().toISOString()</code>), and is different from how Sitecore stores date field values internally. Sitecore-formatted dates will not work.</small></div>
76
- date: '2012-05-04T00:00:00Z'
77
- dateTime: '2018-03-14T15:00:00Z'
78
- - componentName: Styleguide-FieldUsage-Link
79
- fields:
80
- heading: General Link
81
- description: <p>A <em>General Link</em> is a field that represents an <code>&lt;a&gt;</code> tag.</p>
82
- externalLink:
83
- href: https://www.sitecore.com
84
- text: Link to Sitecore
85
- # absolute URLs to known routes are converted into 'internal links'
86
- # when imported to Sitecore. Note: target route must have an explicitly specified ID value.
87
- internalLink:
88
- href: /
89
- # 'text' is optional if the link is rendered with a custom body (e.g. child HTML)
90
-
91
- # Will be linked to Sitecore media item on import
92
- mediaLink:
93
- href: /data/media/files/jss.pdf
94
- text: Link to PDF
95
- emailLink:
96
- href: mailto:foo@bar.com
97
- text: Send an Email
98
- # All possible link parameters
99
- paramsLink:
100
- href: https://dev.sitecore.net
101
- text: Sitecore Dev Site
102
- target: _blank
103
- class: fw-bold
104
- title: <a> title attribute
105
- - componentName: Styleguide-FieldUsage-ItemLink
106
- fields:
107
- heading: Item Link
108
- description: |
109
- <p>
110
- <small>
111
- Item Links are a way to reference another content item to use data from it.
112
- Referenced items may be shared.
113
- To reference multiple content items, use a <em>Content List</em> field.<br />
114
- <strong>Note:</strong> Sitecore does not support inline editing of Item Link fields. The value must be edited in Experience Editor by using the edit rendering fields button (looks like a pencil) with the whole component selected.
115
- </small>
116
- </p>
117
- # A shared item link gets its available items from a folder of shared content items.
118
- # Common usages for such a field might be choosing from a controlled list of options,
119
- # perhaps theme colors, alignment options, or switchable shared content blocks (author bios, for example)
120
- sharedItemLink:
121
- # see /data/content/Styleguide/ItemLinkField for definition of this IDs
122
- id: styleguide-item-link-field-shared-1
123
- localItemLink:
124
- template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ItemLink-Item-Template
125
- fields:
126
- textField: Referenced item textField
127
- - componentName: Styleguide-FieldUsage-ContentList
128
- fields:
129
- heading: Content List
130
- description: |
131
- <p>
132
- <small>
133
- Content Lists are a way to reference zero or more other content items.
134
- Referenced items may be shared.
135
- To reference a single content item, use an <em>Item Link</em> field.<br />
136
- <strong>Note:</strong> Sitecore does not support inline editing of Content List fields. The value must be edited in Experience Editor by using the edit rendering fields button (looks like a pencil) with the whole component selected.
137
- </small>
138
- </p>
139
- # A shared content list gets its available items from a folder of shared content items.
140
- # NOTE: items referenced here are only the _selected items_, not the whole corpus of available options.
141
- # Common usages for such a field might be choosing data items for repeating structures like
142
- # multicolumnar promos or tabs, or shared content pieces like linking one or more authors to an article.
143
- sharedContentList:
144
- # see /data/content/Styleguide/ContentListField for definitions of these IDs
145
- - id: styleguide-content-list-field-shared-1
146
- - id: styleguide-content-list-field-shared-2
147
- localContentList:
148
- # You can also define content lists using an _array of local item definitions_
149
- # note that names are default auto-generated to be unique. Explicitly specified names must be unique.
150
- # NOTE: local item definitions cannot be shared with other content list fields, and are
151
- # generally not preferable compared to using shared definitions.
152
- - template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ContentList-Item-Template
153
- fields:
154
- textField: Hello World Item 1
155
- - template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ContentList-Item-Template
156
- fields:
157
- textField: Hello World Item 2
158
- - componentName: Styleguide-FieldUsage-Custom
159
- fields:
160
- heading: Custom Fields
161
- description: |
162
- <p>
163
- <small>
164
- Any Sitecore field type can be consumed by JSS.
165
- In this sample we consume the <em>Integer</em> field type.<br />
166
- <strong>Note:</strong> For field types with complex data, custom <code>FieldSerializer</code>s may need to be implemented on the Sitecore side.
167
- </small>
168
- </p>
169
- customIntField: 31337
170
- - componentName: Styleguide-Section
171
- fields:
172
- heading: Layout Patterns
173
- placeholders:
174
- <%- helper.getAppPrefix(appPrefix, appName) %>jss-header:
175
- - componentName: Styleguide-Layout-Reuse
176
- <%- helper.getAppPrefix(appPrefix, appName) %>jss-styleguide-section:
177
- - componentName: Styleguide-Layout-Reuse
178
- fields:
179
- heading: Reusing Content
180
- description: <p>JSS provides powerful options to reuse content, whether it's sharing a common piece of text across pages or sketching out a site with repeating <em>lorem ipsum</em> content.</p>
181
- placeholders:
182
- <%- helper.getAppPrefix(appPrefix, appName) %>jss-reuse-example:
183
- # Reference shared content using its ID (this is defined in /data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml)
184
- # Shared content is an 'edit once, reflected everywhere' operation for a content author.
185
- - id: lorem-ipsum-content-block
186
- - id: lorem-ipsum-content-block
187
- # Referencing shared content with `copy: true` will cause it to be shared while disconnected, but _copied on import_.
188
- # Use this for quickly comping layouts with FPO content that will not be shared once actual content is entered.
189
- - id: lorem-ipsum-content-block
190
- copy: true
191
- - componentName: ContentBlock
192
- fields:
193
- content: <p>Mix and match reused and local content. Check out <code>/data/routes/styleguide/en.yml</code> to see how.</p>
194
- - componentName: Styleguide-Layout-Tabs
195
- fields:
196
- heading: Tabs
197
- description: <p>Creating hierarchical components like tabs is made simpler in JSS because it's easy to introspect the layout structure.</p>
198
- placeholders:
199
- <%- helper.getAppPrefix(appPrefix, appName) %>jss-tabs:
200
- - componentName: Styleguide-Layout-Tabs-Tab
201
- fields:
202
- title: Tab 1
203
- content: <p>Tab 1 contents!</p>
204
- - componentName: Styleguide-Layout-Tabs-Tab
205
- fields:
206
- title: Tab 2
207
- content: <p>Tab 2 contents!</p>
208
- - componentName: Styleguide-Layout-Tabs-Tab
209
- fields:
210
- title: Tab 3
211
- content: <p>Tab 3 contents!</p>
212
- - componentName: Styleguide-Section
213
- fields:
214
- heading: Sitecore Patterns
215
- placeholders:
216
- <%- helper.getAppPrefix(appPrefix, appName) %>jss-styleguide-section:
217
- - componentName: Styleguide-SitecoreContext
218
- fields:
219
- heading: Sitecore Context
220
- description: <p><small>The Sitecore Context contains route-level data about the current context - for example, <code>pageState</code> enables conditionally executing code based on whether Sitecore is in Experience Editor or not.</small></p>
221
- - componentName: Styleguide-RouteFields
222
- fields:
223
- heading: Route-level Fields
224
- description: <p><small>Route-level content fields are defined on the <em>route</em> instead of on a <em>component</em>. This allows multiple components to share the field data on the same route - and querying is much easier on route level fields, making <em>custom route types</em> ideal for filterable/queryable data such as articles.</small></p>
225
- - componentName: Styleguide-ComponentParams
226
- fields:
227
- heading: Component Params
228
- description: <p><small>Component params (also called Rendering Parameters) allow storing non-content parameters for a component. These params should be used for more technical options such as CSS class names or structural settings.</small></p>
229
- params:
230
- cssClass: alert alert-success
231
- # IMPORTANT: while params can be defined in the manifest as non-string types,
232
- # they are always sent to the component as strings.
233
- columns: 5
234
- useCallToAction: true
235
- - componentName: Styleguide-Tracking
236
- fields:
237
- heading: Tracking
238
- description: <p><small>JSS supports tracking Sitecore analytics events from within apps. Give it a try with this handy interactive demo.</small></p>
239
- - componentName: Styleguide-Section
240
- fields:
241
- heading: Multilingual Patterns
242
- placeholders:
243
- <%- helper.getAppPrefix(appPrefix, appName) %>jss-styleguide-section:
244
- - componentName: Styleguide-Multilingual
245
- fields:
246
- heading: Translation Patterns
247
- sample: This text can be translated in en.yml
248
- - componentName: Styleguide-Section
249
- fields:
250
- heading: Editing
251
- placeholders:
252
- <%- helper.getAppPrefix(appPrefix, appName) %>jss-styleguide-section:
253
- - componentName: Styleguide-EditFrame
254
- fields:
255
- heading: Edit Frame
256
- description: <p>Who framed Roger Rabbit? Hard to say. <br />
257
- But JSS now allows to edit frame any piece of content on a page in editing mode. <br />
258
- You can add web edit or field edit buttons, modify edit frame style through CSS class and put the frame wherever you need it.
259
- </p>
260
- applyRedToText: 0
261
- sampleList:
262
- # see /data/content/Styleguide/EditFrameDemo for definitions of these IDs
263
- - id: styleguide-edit-frame-list-item-1
264
- - id: styleguide-edit-frame-list-item-2
1
+ fields:
2
+ pageTitle: Styleguide | Sitecore JSS
3
+ placeholders:
4
+ <%- helper.getAppPrefix(appPrefix, appName) %>jss-main:
5
+ - componentName: ContentBlock
6
+ fields:
7
+ heading: JSS Styleguide
8
+ content: |
9
+ <p>This is a live set of examples of how to use JSS. For more information on using JSS, please see <a href="https://jss.sitecore.com" target="_blank" rel="noopener noreferrer">the documentation</a>.</p>
10
+ <p>The content and layout of this page is defined in <code>/data/routes/styleguide/en.yml</code></p>
11
+ - componentName: Styleguide-Layout
12
+ placeholders:
13
+ <%- helper.getAppPrefix(appPrefix, appName) %>jss-styleguide-layout:
14
+ - componentName: Styleguide-Section
15
+ fields:
16
+ heading: Content Data
17
+ placeholders:
18
+ <%- helper.getAppPrefix(appPrefix, appName) %>jss-styleguide-section:
19
+ - componentName: Styleguide-FieldUsage-Text
20
+ fields:
21
+ heading: Single-Line Text
22
+ sample: This is a sample text field. <mark>HTML is encoded.</mark> In Sitecore, editors will see a <input type="text">.
23
+ sample2: This is another sample text field using rendering options. <mark>HTML supported with encode=false.</mark> Cannot edit because editable=false.
24
+ - componentName: Styleguide-FieldUsage-Text
25
+ fields:
26
+ heading: Multi-Line Text
27
+ description: '<small>Multi-line text tells Sitecore to use a <code>textarea</code> for editing; consumption in JSS is the same as single-line text.</small>'
28
+ sample: This is a sample multi-line text field. <mark>HTML is encoded.</mark> In Sitecore, editors will see a textarea.
29
+ sample2: This is another sample multi-line text field using rendering options. <mark>HTML supported with encode=false.</mark>
30
+ - componentName: Styleguide-FieldUsage-RichText
31
+ fields:
32
+ heading: Rich Text
33
+ sample: <p>This is a sample rich text field. <mark>HTML is always supported.</mark> In Sitecore, editors will see a WYSIWYG editor for these fields.</p>
34
+ # YAML can use multiline definitions (a pipe followed by an indented block) to make writing rich text content easier.
35
+ # As long as the indent remains consistent, no escaping is required.
36
+ sample2: |
37
+ <p>Another sample rich text field, using options. Keep markup entered in rich text fields as simple as possible - ideally bare tags only (no classes). Adding a wrapping class can help with styling within rich text blocks.</p>
38
+ <marquee>But you can use any valid HTML in a rich text field!</marquee>
39
+ - componentName: Styleguide-FieldUsage-Image
40
+ fields:
41
+ heading: Image
42
+ sample1:
43
+ src: /data/media/img/sc_logo.png
44
+ alt: Sitecore Logo
45
+ sample2:
46
+ src: /data/media/img/jss_logo.png
47
+ alt: Sitecore JSS Logo
48
+ - componentName: Styleguide-FieldUsage-File
49
+ fields:
50
+ heading: File
51
+ description: |
52
+ <small>Note: Sitecore does not support inline editing of File fields. The value must be edited in Experience Editor by using the edit rendering fields button (looks like a pencil) with the whole component selected.</small>
53
+ file:
54
+ src: /data/media/files/jss.pdf
55
+ title: Example File
56
+ description: This data will be added to the Sitecore Media Library on import
57
+ - componentName: Styleguide-FieldUsage-Number
58
+ fields:
59
+ heading: Number
60
+ description: '<small>Number tells Sitecore to use a number entry for editing.</small>'
61
+ sample: 1.21
62
+ sample2: 71
63
+ - componentName: Styleguide-FieldUsage-Checkbox
64
+ fields:
65
+ heading: Checkbox
66
+ description: |
67
+ <small>Note: Sitecore does not support inline editing of Checkbox fields. The value must be edited in Experience Editor by using the edit rendering fields button (looks like a pencil) with the whole component selected.</small>
68
+ checkbox: true
69
+ checkbox2: false
70
+ - componentName: Styleguide-FieldUsage-Date
71
+ fields:
72
+ heading: Date
73
+ description: |
74
+ <p><small>Both <code>Date</code> and <code>DateTime</code> field types are available. Choosing <code>DateTime</code> will make Sitecore show editing UI for time; both types store complete date and time values internally. Date values in JSS are formatted using <a href="https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations" target="_blank">ISO 8601 formatted strings</a>, for example <code>2012-04-23T18:25:43.511Z</code>.</small></p>
75
+ <div class="alert alert-warning"><small>Note: this is a JavaScript date format (e.g. <code>new Date().toISOString()</code>), and is different from how Sitecore stores date field values internally. Sitecore-formatted dates will not work.</small></div>
76
+ date: '2012-05-04T00:00:00Z'
77
+ dateTime: '2018-03-14T15:00:00Z'
78
+ - componentName: Styleguide-FieldUsage-Link
79
+ fields:
80
+ heading: General Link
81
+ description: <p>A <em>General Link</em> is a field that represents an <code>&lt;a&gt;</code> tag.</p>
82
+ externalLink:
83
+ href: https://www.sitecore.com
84
+ text: Link to Sitecore
85
+ # absolute URLs to known routes are converted into 'internal links'
86
+ # when imported to Sitecore. Note: target route must have an explicitly specified ID value.
87
+ internalLink:
88
+ href: /
89
+ # 'text' is optional if the link is rendered with a custom body (e.g. child HTML)
90
+
91
+ # Will be linked to Sitecore media item on import
92
+ mediaLink:
93
+ href: /data/media/files/jss.pdf
94
+ text: Link to PDF
95
+ emailLink:
96
+ href: mailto:foo@bar.com
97
+ text: Send an Email
98
+ # All possible link parameters
99
+ paramsLink:
100
+ href: https://dev.sitecore.net
101
+ text: Sitecore Dev Site
102
+ target: _blank
103
+ class: fw-bold
104
+ title: <a> title attribute
105
+ - componentName: Styleguide-FieldUsage-ItemLink
106
+ fields:
107
+ heading: Item Link
108
+ description: |
109
+ <p>
110
+ <small>
111
+ Item Links are a way to reference another content item to use data from it.
112
+ Referenced items may be shared.
113
+ To reference multiple content items, use a <em>Content List</em> field.<br />
114
+ <strong>Note:</strong> Sitecore does not support inline editing of Item Link fields. The value must be edited in Experience Editor by using the edit rendering fields button (looks like a pencil) with the whole component selected.
115
+ </small>
116
+ </p>
117
+ # A shared item link gets its available items from a folder of shared content items.
118
+ # Common usages for such a field might be choosing from a controlled list of options,
119
+ # perhaps theme colors, alignment options, or switchable shared content blocks (author bios, for example)
120
+ sharedItemLink:
121
+ # see /data/content/Styleguide/ItemLinkField for definition of this IDs
122
+ id: styleguide-item-link-field-shared-1
123
+ localItemLink:
124
+ template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ItemLink-Item-Template
125
+ fields:
126
+ textField: Referenced item textField
127
+ - componentName: Styleguide-FieldUsage-ContentList
128
+ fields:
129
+ heading: Content List
130
+ description: |
131
+ <p>
132
+ <small>
133
+ Content Lists are a way to reference zero or more other content items.
134
+ Referenced items may be shared.
135
+ To reference a single content item, use an <em>Item Link</em> field.<br />
136
+ <strong>Note:</strong> Sitecore does not support inline editing of Content List fields. The value must be edited in Experience Editor by using the edit rendering fields button (looks like a pencil) with the whole component selected.
137
+ </small>
138
+ </p>
139
+ # A shared content list gets its available items from a folder of shared content items.
140
+ # NOTE: items referenced here are only the _selected items_, not the whole corpus of available options.
141
+ # Common usages for such a field might be choosing data items for repeating structures like
142
+ # multicolumnar promos or tabs, or shared content pieces like linking one or more authors to an article.
143
+ sharedContentList:
144
+ # see /data/content/Styleguide/ContentListField for definitions of these IDs
145
+ - id: styleguide-content-list-field-shared-1
146
+ - id: styleguide-content-list-field-shared-2
147
+ localContentList:
148
+ # You can also define content lists using an _array of local item definitions_
149
+ # note that names are default auto-generated to be unique. Explicitly specified names must be unique.
150
+ # NOTE: local item definitions cannot be shared with other content list fields, and are
151
+ # generally not preferable compared to using shared definitions.
152
+ - template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ContentList-Item-Template
153
+ fields:
154
+ textField: Hello World Item 1
155
+ - template: <%- helper.getAppPrefix(appPrefix, appName) %>Styleguide-ContentList-Item-Template
156
+ fields:
157
+ textField: Hello World Item 2
158
+ - componentName: Styleguide-FieldUsage-Custom
159
+ fields:
160
+ heading: Custom Fields
161
+ description: |
162
+ <p>
163
+ <small>
164
+ Any Sitecore field type can be consumed by JSS.
165
+ In this sample we consume the <em>Integer</em> field type.<br />
166
+ <strong>Note:</strong> For field types with complex data, custom <code>FieldSerializer</code>s may need to be implemented on the Sitecore side.
167
+ </small>
168
+ </p>
169
+ customIntField: 31337
170
+ - componentName: Styleguide-Section
171
+ fields:
172
+ heading: Layout Patterns
173
+ placeholders:
174
+ <%- helper.getAppPrefix(appPrefix, appName) %>jss-header:
175
+ - componentName: Styleguide-Layout-Reuse
176
+ <%- helper.getAppPrefix(appPrefix, appName) %>jss-styleguide-section:
177
+ - componentName: Styleguide-Layout-Reuse
178
+ fields:
179
+ heading: Reusing Content
180
+ description: <p>JSS provides powerful options to reuse content, whether it's sharing a common piece of text across pages or sketching out a site with repeating <em>lorem ipsum</em> content.</p>
181
+ placeholders:
182
+ <%- helper.getAppPrefix(appPrefix, appName) %>jss-reuse-example:
183
+ # Reference shared content using its ID (this is defined in /data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml)
184
+ # Shared content is an 'edit once, reflected everywhere' operation for a content author.
185
+ - id: lorem-ipsum-content-block
186
+ - id: lorem-ipsum-content-block
187
+ # Referencing shared content with `copy: true` will cause it to be shared while disconnected, but _copied on import_.
188
+ # Use this for quickly comping layouts with FPO content that will not be shared once actual content is entered.
189
+ - id: lorem-ipsum-content-block
190
+ copy: true
191
+ - componentName: ContentBlock
192
+ fields:
193
+ content: <p>Mix and match reused and local content. Check out <code>/data/routes/styleguide/en.yml</code> to see how.</p>
194
+ - componentName: Styleguide-Layout-Tabs
195
+ fields:
196
+ heading: Tabs
197
+ description: <p>Creating hierarchical components like tabs is made simpler in JSS because it's easy to introspect the layout structure.</p>
198
+ placeholders:
199
+ <%- helper.getAppPrefix(appPrefix, appName) %>jss-tabs:
200
+ - componentName: Styleguide-Layout-Tabs-Tab
201
+ fields:
202
+ title: Tab 1
203
+ content: <p>Tab 1 contents!</p>
204
+ - componentName: Styleguide-Layout-Tabs-Tab
205
+ fields:
206
+ title: Tab 2
207
+ content: <p>Tab 2 contents!</p>
208
+ - componentName: Styleguide-Layout-Tabs-Tab
209
+ fields:
210
+ title: Tab 3
211
+ content: <p>Tab 3 contents!</p>
212
+ - componentName: Styleguide-Section
213
+ fields:
214
+ heading: Sitecore Patterns
215
+ placeholders:
216
+ <%- helper.getAppPrefix(appPrefix, appName) %>jss-styleguide-section:
217
+ - componentName: Styleguide-SitecoreContext
218
+ fields:
219
+ heading: Sitecore Context
220
+ description: <p><small>The Sitecore Context contains route-level data about the current context - for example, <code>pageState</code> enables conditionally executing code based on whether Sitecore is in Experience Editor or not.</small></p>
221
+ - componentName: Styleguide-RouteFields
222
+ fields:
223
+ heading: Route-level Fields
224
+ description: <p><small>Route-level content fields are defined on the <em>route</em> instead of on a <em>component</em>. This allows multiple components to share the field data on the same route - and querying is much easier on route level fields, making <em>custom route types</em> ideal for filterable/queryable data such as articles.</small></p>
225
+ - componentName: Styleguide-ComponentParams
226
+ fields:
227
+ heading: Component Params
228
+ description: <p><small>Component params (also called Rendering Parameters) allow storing non-content parameters for a component. These params should be used for more technical options such as CSS class names or structural settings.</small></p>
229
+ params:
230
+ cssClass: alert alert-success
231
+ # IMPORTANT: while params can be defined in the manifest as non-string types,
232
+ # they are always sent to the component as strings.
233
+ columns: 5
234
+ useCallToAction: true
235
+ - componentName: Styleguide-Tracking
236
+ fields:
237
+ heading: Tracking
238
+ description: <p><small>JSS supports tracking Sitecore analytics events from within apps. Give it a try with this handy interactive demo.</small></p>
239
+ - componentName: Styleguide-Section
240
+ fields:
241
+ heading: Multilingual Patterns
242
+ placeholders:
243
+ <%- helper.getAppPrefix(appPrefix, appName) %>jss-styleguide-section:
244
+ - componentName: Styleguide-Multilingual
245
+ fields:
246
+ heading: Translation Patterns
247
+ sample: This text can be translated in en.yml
248
+ - componentName: Styleguide-Section
249
+ fields:
250
+ heading: Editing
251
+ placeholders:
252
+ <%- helper.getAppPrefix(appPrefix, appName) %>jss-styleguide-section:
253
+ - componentName: Styleguide-EditFrame
254
+ fields:
255
+ heading: Edit Frame
256
+ description: <p>Who framed Roger Rabbit? Hard to say. <br />
257
+ But JSS now allows to edit frame any piece of content on a page in editing mode. <br />
258
+ You can add web edit or field edit buttons, modify edit frame style through CSS class and put the frame wherever you need it.
259
+ </p>
260
+ applyRedToText: 0
261
+ sampleList:
262
+ # see /data/content/Styleguide/EditFrameDemo for definitions of these IDs
263
+ - id: styleguide-edit-frame-list-item-1
264
+ - id: styleguide-edit-frame-list-item-2
@@ -1,26 +1,26 @@
1
- fields:
2
- pageTitle: Styleguide | Sitecore JSS
3
- placeholders:
4
- <%- helper.getAppPrefix(appPrefix, appName) %>jss-main:
5
- - componentName: ContentBlock
6
- fields:
7
- heading: JSS Styleguide
8
- content: |
9
- <div class="alert alert-primary">
10
- This is a partial <%- language %> translation of the JSS Styleguide to demonstrate translation functionality.
11
- Use the <a href="/en/styleguide">English version</a> for full content.
12
- </div>
13
- <p>The content and layout of this page is defined in <code>/data/routes/styleguide/<%- language %>.yml</code></p>
14
- - componentName: Styleguide-Layout
15
- placeholders:
16
- <%- helper.getAppPrefix(appPrefix, appName) %>jss-styleguide-layout:
17
- - componentName: Styleguide-Section
18
- fields:
19
- heading: Multilingual Patterns
20
- placeholders:
21
- <%- helper.getAppPrefix(appPrefix, appName) %>jss-styleguide-section:
22
- - componentName: Styleguide-Multilingual
23
- fields:
24
- heading: Translation Patterns
25
- sample: This text can be translated in <%- language %>.yml
26
-
1
+ fields:
2
+ pageTitle: Styleguide | Sitecore JSS
3
+ placeholders:
4
+ <%- helper.getAppPrefix(appPrefix, appName) %>jss-main:
5
+ - componentName: ContentBlock
6
+ fields:
7
+ heading: JSS Styleguide
8
+ content: |
9
+ <div class="alert alert-primary">
10
+ This is a partial <%- language %> translation of the JSS Styleguide to demonstrate translation functionality.
11
+ Use the <a href="/en/styleguide">English version</a> for full content.
12
+ </div>
13
+ <p>The content and layout of this page is defined in <code>/data/routes/styleguide/<%- language %>.yml</code></p>
14
+ - componentName: Styleguide-Layout
15
+ placeholders:
16
+ <%- helper.getAppPrefix(appPrefix, appName) %>jss-styleguide-layout:
17
+ - componentName: Styleguide-Section
18
+ fields:
19
+ heading: Multilingual Patterns
20
+ placeholders:
21
+ <%- helper.getAppPrefix(appPrefix, appName) %>jss-styleguide-section:
22
+ - componentName: Styleguide-Multilingual
23
+ fields:
24
+ heading: Translation Patterns
25
+ sample: This text can be translated in <%- language %>.yml
26
+
@@ -1,4 +1,4 @@
1
- # in order to demonstrate translation on the Styleguide page, we need to have a stub on the homepage for that language.
2
- # this can be deleted safely if not using multiple languages - or not using Danish.
3
- name: home
4
- id: home-page
1
+ # in order to demonstrate translation on the Styleguide page, we need to have a stub on the homepage for that language.
2
+ # this can be deleted safely if not using multiple languages - or not using Danish.
3
+ name: home
4
+ id: home-page