create-sitecore-jss 21.2.1 → 21.2.2

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 (324) hide show
  1. package/LICENSE.MD +202 -202
  2. package/README.md +7 -7
  3. package/dist/templates/angular/.env +33 -33
  4. package/dist/templates/angular/.eslintignore +3 -3
  5. package/dist/templates/angular/.eslintrc +79 -79
  6. package/dist/templates/angular/LICENSE.txt +202 -202
  7. package/dist/templates/angular/README.md +50 -50
  8. package/dist/templates/angular/angular.json +168 -168
  9. package/dist/templates/angular/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  10. package/dist/templates/angular/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  11. package/dist/templates/angular/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  12. package/dist/templates/angular/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  13. package/dist/templates/angular/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  14. package/dist/templates/angular/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  15. package/dist/templates/angular/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  16. package/dist/templates/angular/data/dictionary/en.yml +4 -4
  17. package/dist/templates/angular/data/dictionary/{{language}}.yml +4 -4
  18. package/dist/templates/angular/data/routes/en.yml +61 -61
  19. package/dist/templates/angular/data/routes/graphql/en.yml +27 -27
  20. package/dist/templates/angular/data/routes/graphql/sample-1/en.yml +9 -9
  21. package/dist/templates/angular/data/routes/graphql/sample-2/en.yml +9 -9
  22. package/dist/templates/angular/data/routes/styleguide/custom-route-type/en.yml +12 -12
  23. package/dist/templates/angular/data/routes/styleguide/en.yml +271 -271
  24. package/dist/templates/angular/data/routes/styleguide/{{language}}.yml +25 -25
  25. package/dist/templates/angular/data/routes/{{language}}.yml +4 -4
  26. package/dist/templates/angular/e2e/tsconfig.e2e.json +15 -15
  27. package/dist/templates/angular/gitignore +47 -47
  28. package/dist/templates/angular/package.json +148 -148
  29. package/dist/templates/angular/sitecore/config/{{appName}}.config +90 -90
  30. package/dist/templates/angular/sitecore/definitions/components/graph-ql-integrated-demo.sitecore.graphql +71 -71
  31. package/dist/templates/angular/sitecore/gitignore +2 -2
  32. package/dist/templates/angular/src/app/app.component.html +1 -1
  33. package/dist/templates/angular/src/app/components/content-block/content-block.component.html +4 -4
  34. package/dist/templates/angular/src/app/components/gitignore +7 -7
  35. package/dist/templates/angular/src/app/components/graph-ql-connected-demo/graph-ql-connected-demo.component.graphql +69 -69
  36. package/dist/templates/angular/src/app/components/graph-ql-connected-demo/graph-ql-connected-demo.component.html +55 -55
  37. package/dist/templates/angular/src/app/components/graph-ql-integrated-demo/graph-ql-integrated-demo.component.html +47 -47
  38. package/dist/templates/angular/src/app/components/graph-ql-layout/graph-ql-layout.component.html +22 -22
  39. package/dist/templates/angular/src/app/components/styleguide-angular-lazy-loading/styleguide-angular-lazy-loading.component.html +5 -5
  40. package/dist/templates/angular/src/app/components/styleguide-component-params/styleguide-component-params.component.html +19 -19
  41. package/dist/templates/angular/src/app/components/styleguide-custom-route-type/styleguide-custom-route-type.component.html +14 -14
  42. package/dist/templates/angular/src/app/components/styleguide-edit-frame/styleguide-edit-frame.component.html +19 -19
  43. package/dist/templates/angular/src/app/components/styleguide-field-usage-checkbox/styleguide-field-usage-checkbox.component.html +11 -11
  44. package/dist/templates/angular/src/app/components/styleguide-field-usage-content-list/styleguide-field-usage-content-list.component.html +26 -26
  45. package/dist/templates/angular/src/app/components/styleguide-field-usage-custom/styleguide-field-usage-custom.component.html +4 -4
  46. package/dist/templates/angular/src/app/components/styleguide-field-usage-date/styleguide-field-usage-date.component.html +27 -27
  47. package/dist/templates/angular/src/app/components/styleguide-field-usage-file/styleguide-field-usage-file.component.html +10 -10
  48. package/dist/templates/angular/src/app/components/styleguide-field-usage-image/styleguide-field-usage-image.component.html +30 -30
  49. package/dist/templates/angular/src/app/components/styleguide-field-usage-item-link/styleguide-field-usage-item-link.component.html +17 -17
  50. package/dist/templates/angular/src/app/components/styleguide-field-usage-link/styleguide-field-usage-link.component.html +44 -44
  51. package/dist/templates/angular/src/app/components/styleguide-field-usage-number/styleguide-field-usage-number.component.html +11 -11
  52. package/dist/templates/angular/src/app/components/styleguide-field-usage-rich-text/styleguide-field-usage-rich-text.component.html +11 -11
  53. package/dist/templates/angular/src/app/components/styleguide-field-usage-text/styleguide-field-usage-text.component.html +13 -13
  54. package/dist/templates/angular/src/app/components/styleguide-layout/styleguide-layout.component.html +20 -20
  55. package/dist/templates/angular/src/app/components/styleguide-layout-reuse/styleguide-layout-reuse.component.html +52 -52
  56. package/dist/templates/angular/src/app/components/styleguide-layout-tabs/styleguide-layout-tabs.component.html +37 -37
  57. package/dist/templates/angular/src/app/components/styleguide-layout-tabs-tab/styleguide-layout-tabs-tab.component.html +12 -12
  58. package/dist/templates/angular/src/app/components/styleguide-multilingual/styleguide-multilingual.component.html +15 -15
  59. package/dist/templates/angular/src/app/components/styleguide-route-fields/styleguide-route-fields.component.html +8 -8
  60. package/dist/templates/angular/src/app/components/styleguide-section/styleguide-section.component.html +7 -7
  61. package/dist/templates/angular/src/app/components/styleguide-sitecore-context/styleguide-sitecore-context.component.html +3 -3
  62. package/dist/templates/angular/src/app/components/styleguide-tracking/styleguide-tracking.component.html +175 -175
  63. package/dist/templates/angular/src/app/routing/layout/layout.component.html +17 -17
  64. package/dist/templates/angular/src/app/routing/navigation/navigation.component.html +21 -21
  65. package/dist/templates/angular/src/app/routing/not-found/not-found.component.html +7 -7
  66. package/dist/templates/angular/src/app/routing/server-error/server-error.component.html +3 -3
  67. package/dist/templates/angular/src/assets/images/sc_logo.svg +52 -52
  68. package/dist/templates/angular/src/index.html +12 -12
  69. package/dist/templates/angular/src/styles.css +34 -34
  70. package/dist/templates/angular/src/tsconfig.app.json +22 -22
  71. package/dist/templates/angular/src/tsconfig.server.json +21 -21
  72. package/dist/templates/angular/src/tsconfig.spec.json +24 -24
  73. package/dist/templates/angular/src/tsconfig.webpack-server.json +6 -6
  74. package/dist/templates/angular/tsconfig.json +31 -31
  75. package/dist/templates/nextjs/.env +59 -59
  76. package/dist/templates/nextjs/.eslintrc +25 -25
  77. package/dist/templates/nextjs/.gitattributes +11 -11
  78. package/dist/templates/nextjs/.graphql-let.yml +8 -8
  79. package/dist/templates/nextjs/.prettierrc +8 -8
  80. package/dist/templates/nextjs/.vscode/launch.json +15 -15
  81. package/dist/templates/nextjs/LICENSE.txt +202 -202
  82. package/dist/templates/nextjs/README.md +5 -5
  83. package/dist/templates/nextjs/gitignore +32 -32
  84. package/dist/templates/nextjs/package.json +89 -89
  85. package/dist/templates/nextjs/public/sc_logo.svg +52 -52
  86. package/dist/templates/nextjs/scripts/temp/gitignore +2 -2
  87. package/dist/templates/nextjs/sitecore/config/{{appName}}.config +165 -165
  88. package/dist/templates/nextjs/src/assets/app.css +36 -36
  89. package/dist/templates/nextjs/src/temp/GraphQLIntrospectionResult.json +22215 -22215
  90. package/dist/templates/nextjs/src/temp/gitignore +3 -3
  91. package/dist/templates/nextjs/tsconfig.json +36 -36
  92. package/dist/templates/nextjs/tsconfig.scripts.json +11 -11
  93. package/dist/templates/nextjs-personalize/.env +20 -20
  94. package/dist/templates/nextjs-personalize/package.json +5 -5
  95. package/dist/templates/nextjs-styleguide/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  96. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  97. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  98. package/dist/templates/nextjs-styleguide/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  99. package/dist/templates/nextjs-styleguide/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  100. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  101. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  102. package/dist/templates/nextjs-styleguide/data/dictionary/en.yml +4 -4
  103. package/dist/templates/nextjs-styleguide/data/dictionary/{{language}}.yml +4 -4
  104. package/dist/templates/nextjs-styleguide/data/routes/en.yml +63 -63
  105. package/dist/templates/nextjs-styleguide/data/routes/graphql/en.yml +27 -27
  106. package/dist/templates/nextjs-styleguide/data/routes/graphql/sample-1/en.yml +9 -9
  107. package/dist/templates/nextjs-styleguide/data/routes/graphql/sample-2/en.yml +9 -9
  108. package/dist/templates/nextjs-styleguide/data/routes/styleguide/custom-route-type/en.yml +12 -12
  109. package/dist/templates/nextjs-styleguide/data/routes/styleguide/en.yml +259 -259
  110. package/dist/templates/nextjs-styleguide/data/routes/styleguide/{{language}}.yml +25 -25
  111. package/dist/templates/nextjs-styleguide/data/routes/{{language}}.yml +4 -4
  112. package/dist/templates/nextjs-styleguide/package.json +14 -14
  113. package/dist/templates/nextjs-styleguide/sitecore/definitions/components/graphql/GraphQL-IntegratedDemo.sitecore.graphql +71 -71
  114. package/dist/templates/nextjs-styleguide/sitecore/gitignore +3 -3
  115. package/dist/templates/nextjs-styleguide/src/components/graphql/GraphQL-ConnectedDemo.dynamic.graphql +69 -69
  116. package/dist/templates/nextjs-styleguide-tracking/data/dictionary/en.yml +5 -5
  117. package/dist/templates/nextjs-styleguide-tracking/data/routes/tracking/en.yml +8 -8
  118. package/dist/templates/nextjs-sxa/package.json +12 -12
  119. package/dist/templates/nextjs-sxa/src/assets/basic/_component.scss +18 -18
  120. package/dist/templates/nextjs-sxa/src/assets/basic/_container.scss +80 -80
  121. package/dist/templates/nextjs-sxa/src/assets/basic/_fonts.scss +1 -1
  122. package/dist/templates/nextjs-sxa/src/assets/basic/_footer.scss +31 -31
  123. package/dist/templates/nextjs-sxa/src/assets/basic/_header.scss +49 -49
  124. package/dist/templates/nextjs-sxa/src/assets/basic/_navigation.scss +150 -150
  125. package/dist/templates/nextjs-sxa/src/assets/basic/_promo.scss +58 -58
  126. package/dist/templates/nextjs-sxa/src/assets/basic/_rich-text.scss +11 -11
  127. package/dist/templates/nextjs-sxa/src/assets/basic/_variables.scss +9 -9
  128. package/dist/templates/nextjs-sxa/src/assets/basic/main.scss +8 -8
  129. package/dist/templates/nextjs-sxa/src/assets/main.scss +5 -5
  130. package/dist/templates/nextjs-sxa/src/assets/sass/_app.scss +102 -102
  131. package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/_functions.scss +8 -8
  132. package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/_mixins.scss +121 -121
  133. package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/_vars.scss +3 -3
  134. package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/vars/_colors.scss +283 -283
  135. package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/vars/_fontSizes.scss +16 -16
  136. package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/vars/_margins.scss +10 -10
  137. package/dist/templates/nextjs-sxa/src/assets/sass/base/fonts/_fonts.scss +1 -1
  138. package/dist/templates/nextjs-sxa/src/assets/sass/base/fonts/index.scss +1 -1
  139. package/dist/templates/nextjs-sxa/src/assets/sass/base/index.scss +3 -3
  140. package/dist/templates/nextjs-sxa/src/assets/sass/base/links/_link-button.scss +26 -26
  141. package/dist/templates/nextjs-sxa/src/assets/sass/base/links/index.scss +1 -1
  142. package/dist/templates/nextjs-sxa/src/assets/sass/base/reset/_inputs.scss +58 -58
  143. package/dist/templates/nextjs-sxa/src/assets/sass/base/reset/_links.scss +14 -14
  144. package/dist/templates/nextjs-sxa/src/assets/sass/base/reset/_ui-datepicker.scss +7 -7
  145. package/dist/templates/nextjs-sxa/src/assets/sass/base/richtext/_richtext-files-icons.scss +86 -86
  146. package/dist/templates/nextjs-sxa/src/assets/sass/base/richtext/_richtext.scss +101 -101
  147. package/dist/templates/nextjs-sxa/src/assets/sass/base/richtext/index.scss +2 -2
  148. package/dist/templates/nextjs-sxa/src/assets/sass/base/typehead/_typehead.scss +95 -95
  149. package/dist/templates/nextjs-sxa/src/assets/sass/base/typehead/index.scss +1 -1
  150. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-column-splitter.scss +14 -14
  151. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-container.scss +22 -22
  152. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-image.scss +18 -18
  153. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-navigation.scss +51 -51
  154. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-promo.scss +42 -42
  155. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-richtext-content.scss +19 -19
  156. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_alignment.scss +25 -25
  157. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_boxed.scss +16 -16
  158. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_clearfix.scss +11 -11
  159. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_highlighted.scss +62 -62
  160. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_link-button.scss +16 -16
  161. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_promoted-box.scss +3 -3
  162. package/dist/templates/nextjs-sxa/src/assets/sass/components/common/index.scss +5 -5
  163. package/dist/templates/nextjs-sxa/src/assets/sass/components/container/_bordered.scss +23 -23
  164. package/dist/templates/nextjs-sxa/src/assets/sass/components/container/_title-row-box.scss +66 -66
  165. package/dist/templates/nextjs-sxa/src/assets/sass/components/container/index.scss +1 -1
  166. package/dist/templates/nextjs-sxa/src/assets/sass/components/image/_image-banner.scss +15 -15
  167. package/dist/templates/nextjs-sxa/src/assets/sass/components/image/_image-default-size.scss +6 -6
  168. package/dist/templates/nextjs-sxa/src/assets/sass/components/image/index.scss +2 -2
  169. package/dist/templates/nextjs-sxa/src/assets/sass/components/image-alignment/_image-left.scss +3 -3
  170. package/dist/templates/nextjs-sxa/src/assets/sass/components/image-alignment/_image-right.scss +3 -3
  171. package/dist/templates/nextjs-sxa/src/assets/sass/components/index.scss +17 -17
  172. package/dist/templates/nextjs-sxa/src/assets/sass/components/layout/_acaindent.scss +5 -5
  173. package/dist/templates/nextjs-sxa/src/assets/sass/components/layout/_background.scss +27 -27
  174. package/dist/templates/nextjs-sxa/src/assets/sass/components/layout/index.scss +1 -1
  175. package/dist/templates/nextjs-sxa/src/assets/sass/components/link-list/_component-link-list.scss +45 -45
  176. package/dist/templates/nextjs-sxa/src/assets/sass/components/link-list/_list-vertical.scss +20 -20
  177. package/dist/templates/nextjs-sxa/src/assets/sass/components/link-list/index.scss +2 -2
  178. package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-fat.scss +58 -58
  179. package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-main-horizontal-vertical.scss +152 -152
  180. package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-mobile.scss +89 -89
  181. package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-sidebar.scss +29 -29
  182. package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_sitemap-navigation.scss +20 -20
  183. package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/index.scss +5 -5
  184. package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_absolute-bottom-link.scss +8 -8
  185. package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_promo-hero.scss +40 -40
  186. package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_promo-shadow.scss +42 -42
  187. package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/index.scss +3 -3
  188. package/dist/templates/nextjs-sxa/src/assets/sass/components/rich-text/_rich-text-lists.scss +63 -63
  189. package/dist/templates/nextjs-sxa/src/assets/sass/components/rich-text/index.scss +1 -1
  190. package/dist/templates/nextjs-sxa/src/assets/sass/components/spacing/_background-colors.scss +14 -14
  191. package/dist/templates/nextjs-sxa/src/assets/sass/components/spacing/_indent.scss +13 -13
  192. package/dist/templates/nextjs-sxa/src/assets/sass/components/spacing/index.scss +2 -2
  193. package/dist/templates/nextjs-sxa/src/assets/sass/components/title/_component-title.scss +24 -24
  194. package/dist/templates/nextjs-sxa/src/assets/sass/components/title/index.scss +1 -1
  195. package/dist/templates/nextjs-sxa/src/assets/sass/main.scss +4 -4
  196. package/dist/templates/nextjs-sxa/src/assets/sass/variants/index.scss +5 -5
  197. package/dist/templates/node-headless-ssr-experience-edge/.env +6 -6
  198. package/dist/templates/node-headless-ssr-experience-edge/README.md +51 -51
  199. package/dist/templates/node-headless-ssr-experience-edge/package.json +38 -38
  200. package/dist/templates/node-headless-ssr-experience-edge/tsconfig.json +22 -22
  201. package/dist/templates/node-headless-ssr-proxy/.env +8 -8
  202. package/dist/templates/node-headless-ssr-proxy/.vscode/launch.json +47 -47
  203. package/dist/templates/node-headless-ssr-proxy/LICENSE.txt +202 -202
  204. package/dist/templates/node-headless-ssr-proxy/README.md +60 -60
  205. package/dist/templates/node-headless-ssr-proxy/package.json +43 -43
  206. package/dist/templates/node-headless-ssr-proxy/src/error.html +200 -200
  207. package/dist/templates/node-headless-ssr-proxy/tsconfig.json +22 -22
  208. package/dist/templates/react/.env +36 -36
  209. package/dist/templates/react/.prettierrc +9 -9
  210. package/dist/templates/react/LICENSE.txt +202 -202
  211. package/dist/templates/react/README.md +2399 -2399
  212. package/dist/templates/react/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  213. package/dist/templates/react/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  214. package/dist/templates/react/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  215. package/dist/templates/react/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  216. package/dist/templates/react/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  217. package/dist/templates/react/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  218. package/dist/templates/react/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  219. package/dist/templates/react/data/dictionary/en.yml +4 -4
  220. package/dist/templates/react/data/dictionary/{{language}}.yml +4 -4
  221. package/dist/templates/react/data/routes/en.yml +61 -61
  222. package/dist/templates/react/data/routes/graphql/en.yml +27 -27
  223. package/dist/templates/react/data/routes/graphql/sample-1/en.yml +9 -9
  224. package/dist/templates/react/data/routes/graphql/sample-2/en.yml +9 -9
  225. package/dist/templates/react/data/routes/styleguide/custom-route-type/en.yml +12 -12
  226. package/dist/templates/react/data/routes/styleguide/en.yml +263 -263
  227. package/dist/templates/react/data/routes/styleguide/{{language}}.yml +26 -26
  228. package/dist/templates/react/data/routes/{{language}}.yml +4 -4
  229. package/dist/templates/react/gitignore +25 -25
  230. package/dist/templates/react/package.json +4 -4
  231. package/dist/templates/react/public/index.html +35 -35
  232. package/dist/templates/react/sitecore/config/{{appName}}.config +90 -90
  233. package/dist/templates/react/sitecore/definitions/components/graphql/GraphQL-IntegratedDemo.sitecore.graphql +71 -71
  234. package/dist/templates/react/sitecore/gitignore +2 -2
  235. package/dist/templates/react/src/assets/sc_logo.svg +52 -52
  236. package/dist/templates/react/src/components/graphql/query.graphql +69 -69
  237. package/dist/templates/react/src/temp/GraphQLFragmentTypes.json +207 -207
  238. package/dist/templates/react/src/temp/gitignore +3 -3
  239. package/dist/templates/react-native/.buckconfig +6 -6
  240. package/dist/templates/react-native/.eslintrc +74 -74
  241. package/dist/templates/react-native/.gitattributes +1 -1
  242. package/dist/templates/react-native/.prettierrc +9 -9
  243. package/dist/templates/react-native/.vscode/launch.json +42 -42
  244. package/dist/templates/react-native/.vscode/settings.json +1 -1
  245. package/dist/templates/react-native/LICENSE.txt +202 -202
  246. package/dist/templates/react-native/README.MD +112 -112
  247. package/dist/templates/react-native/android/app/BUCK +55 -55
  248. package/dist/templates/react-native/android/app/build.gradle +201 -201
  249. package/dist/templates/react-native/android/app/build_defs.bzl +19 -19
  250. package/dist/templates/react-native/android/app/proguard-rules.pro +10 -10
  251. package/dist/templates/react-native/android/app/src/debug/AndroidManifest.xml +8 -8
  252. package/dist/templates/react-native/android/app/src/main/AndroidManifest.xml +26 -26
  253. package/dist/templates/react-native/android/app/src/main/java/com/{{appName}}/MainActivity.java +15 -15
  254. package/dist/templates/react-native/android/app/src/main/java/com/{{appName}}/MainApplication.java +74 -74
  255. package/dist/templates/react-native/android/app/src/main/res/values/strings.xml +3 -3
  256. package/dist/templates/react-native/android/app/src/main/res/values/styles.xml +9 -9
  257. package/dist/templates/react-native/android/build.gradle +38 -38
  258. package/dist/templates/react-native/android/gradle/wrapper/gradle-wrapper.properties +5 -5
  259. package/dist/templates/react-native/android/gradle.properties +21 -21
  260. package/dist/templates/react-native/android/gradlew +188 -188
  261. package/dist/templates/react-native/android/gradlew.bat +100 -100
  262. package/dist/templates/react-native/android/settings.gradle +3 -3
  263. package/dist/templates/react-native/app.json +3 -3
  264. package/dist/templates/react-native/assets/img/sc_logo.svg +52 -52
  265. package/dist/templates/react-native/data/content/Styleguide/ItemLinkField/Item1/en.json +10 -10
  266. package/dist/templates/react-native/data/routes/en.json +22 -22
  267. package/dist/templates/react-native/data/routes/styleguide/en.json +227 -227
  268. package/dist/templates/react-native/data/routes/styleguide/{{language}}.json +31 -31
  269. package/dist/templates/react-native/data/routes/{{language}}.json +7 -7
  270. package/dist/templates/react-native/gitignore +60 -60
  271. package/dist/templates/react-native/ios/Podfile +53 -53
  272. package/dist/templates/react-native/ios/{{appName}}/AppDelegate.h +15 -15
  273. package/dist/templates/react-native/ios/{{appName}}/AppDelegate.m +42 -42
  274. package/dist/templates/react-native/ios/{{appName}}/Base.lproj/LaunchScreen.xib +42 -42
  275. package/dist/templates/react-native/ios/{{appName}}/Images.xcassets/AppIcon.appiconset/Contents.json +38 -38
  276. package/dist/templates/react-native/ios/{{appName}}/Images.xcassets/Contents.json +6 -6
  277. package/dist/templates/react-native/ios/{{appName}}/Info.plist +57 -57
  278. package/dist/templates/react-native/ios/{{appName}}/main.m +16 -16
  279. package/dist/templates/react-native/ios/{{appName}}-tvOS/Info.plist +53 -53
  280. package/dist/templates/react-native/ios/{{appName}}-tvOSTests/Info.plist +24 -24
  281. package/dist/templates/react-native/ios/{{appName}}.xcodeproj/xcshareddata/xcschemes/BasicSampleReactNative-tvOS.xcscheme +129 -129
  282. package/dist/templates/react-native/ios/{{appName}}.xcodeproj/xcshareddata/xcschemes/BasicSampleReactNative.xcscheme +129 -129
  283. package/dist/templates/react-native/ios/{{appName}}Tests/BasicSampleReactNativeTests.m +72 -72
  284. package/dist/templates/react-native/ios/{{appName}}Tests/Info.plist +24 -24
  285. package/dist/templates/react-native/package.json +82 -82
  286. package/dist/templates/react-native/sitecore/config/{{appName}}.config +47 -47
  287. package/dist/templates/react-native/sitecore/gitignore +2 -2
  288. package/dist/templates/vue/.browserslistrc +2 -2
  289. package/dist/templates/vue/.env +35 -35
  290. package/dist/templates/vue/.prettierrc +9 -9
  291. package/dist/templates/vue/LICENSE.txt +202 -202
  292. package/dist/templates/vue/README.md +33 -33
  293. package/dist/templates/vue/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  294. package/dist/templates/vue/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  295. package/dist/templates/vue/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  296. package/dist/templates/vue/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  297. package/dist/templates/vue/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  298. package/dist/templates/vue/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  299. package/dist/templates/vue/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  300. package/dist/templates/vue/data/dictionary/en.yml +7 -7
  301. package/dist/templates/vue/data/dictionary/{{language}}.yml +7 -7
  302. package/dist/templates/vue/data/routes/en.yml +63 -63
  303. package/dist/templates/vue/data/routes/graphql/en.yml +34 -34
  304. package/dist/templates/vue/data/routes/graphql/sample-1/en.yml +9 -9
  305. package/dist/templates/vue/data/routes/graphql/sample-2/en.yml +9 -9
  306. package/dist/templates/vue/data/routes/styleguide/custom-route-type/en.yml +12 -12
  307. package/dist/templates/vue/data/routes/styleguide/en.yml +264 -264
  308. package/dist/templates/vue/data/routes/styleguide/{{language}}.yml +26 -26
  309. package/dist/templates/vue/data/routes/{{language}}.yml +4 -4
  310. package/dist/templates/vue/gitignore +25 -25
  311. package/dist/templates/vue/package.json +93 -93
  312. package/dist/templates/vue/public/img/icons/safari-pinned-tab.svg +75 -75
  313. package/dist/templates/vue/public/index.html +27 -27
  314. package/dist/templates/vue/public/manifest.json +14 -14
  315. package/dist/templates/vue/public/robots.txt +2 -2
  316. package/dist/templates/vue/sitecore/config/{{appName}}.config +89 -89
  317. package/dist/templates/vue/sitecore/definitions/components/GraphQL-IntegratedDemo.sitecore.graphql +71 -71
  318. package/dist/templates/vue/sitecore/gitignore +4 -4
  319. package/dist/templates/vue/src/assets/app.css +30 -30
  320. package/dist/templates/vue/src/assets/sc_logo.svg +52 -52
  321. package/dist/templates/vue/src/components/GraphQL/GraphQL-ConnectedDemo.query.graphql +69 -69
  322. package/dist/templates/vue/src/temp/GraphQLFragmentTypes.json +273 -273
  323. package/dist/templates/vue/src/temp/gitignore +3 -3
  324. package/package.json +2 -2
@@ -1,71 +1,71 @@
1
- # This file contains a GraphQL query that will be executed and the result provided to
2
- # your JSS component. You can run this query in GraphiQL ($endpoint/ui) for a nice editing experience.
3
-
4
- # Note that we're executing _two queries_ (datasource and contextItem)
5
- # within the context of the IntegratedDemoQuery _operation_. This makes it
6
- # very efficient at gathering data from multiple sources.
7
-
8
- query IntegratedDemoQuery($datasource: String!, $contextItem: String!, $language: String!) {
9
- # Datasource query
10
- # $datasource will always be set to the ID of the rendering's datasource item
11
- # (as long as the GraphQLData helper is used)
12
- datasource: item(path: $datasource, language: $language) {
13
- id
14
- name
15
- # Strongly-typed querying on known templates is possible!
16
- ...on <%- helper.getAppPrefix(appPrefix, appName, false) %>GraphQLIntegratedDemo {
17
- # Single-line text field
18
- sample1 {
19
- # the 'jsonValue' field is a JSON blob that represents the object that
20
- # should be passed to JSS field rendering helpers (i.e. text, image, link)
21
- jsonValue
22
- value
23
- }
24
- # General Link field
25
- sample2 {
26
- jsonValue
27
- # Structured querying of the field's values is possible
28
- text
29
- target
30
- url
31
- # Access to the template definition is possible
32
- definition {
33
- type
34
- shared
35
- }
36
- }
37
- }
38
- }
39
-
40
- # Context/route item query
41
- # $contextItem will always be set to the ID of the current context item (the route item)
42
- # (as long as the GraphQLData helper is used)
43
- contextItem: item(path: $contextItem, language: $language) {
44
- id
45
- # Get the page title from the app route template
46
- ...on <%- helper.getAppPrefix(appPrefix, appName, false) %>AppRoute {
47
- pageTitle {
48
- value
49
- }
50
- }
51
-
52
- # List the children of the current route
53
- children(hasLayout: true) {
54
- results {
55
- id
56
- # typing fragments can be used anywhere!
57
- # so in this case, we're grabbing the 'pageTitle'
58
- # field on all child route items.
59
- ...on <%- helper.getAppPrefix(appPrefix, appName, false) %>AppRoute {
60
- pageTitle {
61
- jsonValue
62
- value
63
- }
64
- }
65
- url {
66
- path
67
- }
68
- }
69
- }
70
- }
71
- }
1
+ # This file contains a GraphQL query that will be executed and the result provided to
2
+ # your JSS component. You can run this query in GraphiQL ($endpoint/ui) for a nice editing experience.
3
+
4
+ # Note that we're executing _two queries_ (datasource and contextItem)
5
+ # within the context of the IntegratedDemoQuery _operation_. This makes it
6
+ # very efficient at gathering data from multiple sources.
7
+
8
+ query IntegratedDemoQuery($datasource: String!, $contextItem: String!, $language: String!) {
9
+ # Datasource query
10
+ # $datasource will always be set to the ID of the rendering's datasource item
11
+ # (as long as the GraphQLData helper is used)
12
+ datasource: item(path: $datasource, language: $language) {
13
+ id
14
+ name
15
+ # Strongly-typed querying on known templates is possible!
16
+ ...on <%- helper.getAppPrefix(appPrefix, appName, false) %>GraphQLIntegratedDemo {
17
+ # Single-line text field
18
+ sample1 {
19
+ # the 'jsonValue' field is a JSON blob that represents the object that
20
+ # should be passed to JSS field rendering helpers (i.e. text, image, link)
21
+ jsonValue
22
+ value
23
+ }
24
+ # General Link field
25
+ sample2 {
26
+ jsonValue
27
+ # Structured querying of the field's values is possible
28
+ text
29
+ target
30
+ url
31
+ # Access to the template definition is possible
32
+ definition {
33
+ type
34
+ shared
35
+ }
36
+ }
37
+ }
38
+ }
39
+
40
+ # Context/route item query
41
+ # $contextItem will always be set to the ID of the current context item (the route item)
42
+ # (as long as the GraphQLData helper is used)
43
+ contextItem: item(path: $contextItem, language: $language) {
44
+ id
45
+ # Get the page title from the app route template
46
+ ...on <%- helper.getAppPrefix(appPrefix, appName, false) %>AppRoute {
47
+ pageTitle {
48
+ value
49
+ }
50
+ }
51
+
52
+ # List the children of the current route
53
+ children(hasLayout: true) {
54
+ results {
55
+ id
56
+ # typing fragments can be used anywhere!
57
+ # so in this case, we're grabbing the 'pageTitle'
58
+ # field on all child route items.
59
+ ...on <%- helper.getAppPrefix(appPrefix, appName, false) %>AppRoute {
60
+ pageTitle {
61
+ jsonValue
62
+ value
63
+ }
64
+ }
65
+ url {
66
+ path
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
@@ -1,3 +1,3 @@
1
- manifest
2
- update-package
1
+ manifest
2
+ update-package
3
3
  package
@@ -1 +1 @@
1
- <router-outlet></router-outlet>
1
+ <router-outlet></router-outlet>
@@ -1,4 +1,4 @@
1
- <div class="contentBlock">
2
- <h2 class="contentTitle" *scText="rendering.fields.heading"></h2>
3
- <div class="contentDescription" *scRichText="rendering.fields.content"></div>
4
- </div>
1
+ <div class="contentBlock">
2
+ <h2 class="contentTitle" *scText="rendering.fields.heading"></h2>
3
+ <div class="contentDescription" *scRichText="rendering.fields.content"></div>
4
+ </div>
@@ -1,7 +1,7 @@
1
- # App component module is auto-generated by default.
2
- # To manually maintain the module,
3
- # - Remove this ignore file
4
- # - Delete /scripts/generate-component-factory.ts
5
- # - Remove the reference from /scripts/bootstrap.ts
6
- # - Consider merging app-components.shared and app-components modules
7
- app-components.module.ts
1
+ # App component module is auto-generated by default.
2
+ # To manually maintain the module,
3
+ # - Remove this ignore file
4
+ # - Delete /scripts/generate-component-factory.ts
5
+ # - Remove the reference from /scripts/bootstrap.ts
6
+ # - Consider merging app-components.shared and app-components modules
7
+ app-components.module.ts
@@ -1,69 +1,69 @@
1
- # This file contains a GraphQL query that will be executed and the result provided to
2
- # your JSS component. You can run this query in GraphiQL ($endpoint/ui) for a nice editing experience.
3
-
4
- # Note that we're executing _two queries_ (datasource and contextItem)
5
- # within the context of the ConnectedDemoQuery _operation_. This makes it
6
- # very efficient at gathering data from multiple sources.
7
-
8
- query ConnectedDemoQuery($datasource: String!, $contextItem: String!, $language: String!) {
9
- # Datasource query
10
- # $datasource should be set to the ID of the rendering's datasource item
11
- datasource: item(path: $datasource, language: $language) {
12
- id
13
- name
14
- # Strongly-typed querying on known templates is possible!
15
- ...on <%- helper.getAppPrefix(appPrefix, appName, false) %>GraphQLConnectedDemo {
16
- # Single-line text field
17
- sample1 {
18
- # the 'jsonValue' field is a JSON blob that represents the object that
19
- # should be passed to JSS field rendering helpers (i.e. text, image, link)
20
- jsonValue
21
- value
22
- }
23
- # General Link field
24
- sample2 {
25
- jsonValue
26
- # Structured querying of the field's values is possible
27
- text
28
- target
29
- url
30
- # Access to the template definition is possible
31
- definition {
32
- type
33
- shared
34
- }
35
- }
36
- }
37
- }
38
-
39
- # Context/route item query
40
- # $contextItem should be set to the ID of the current context item (the route item)
41
- contextItem: item(path: $contextItem, language: $language) {
42
- id
43
- # Get the page title from the app route template
44
- ...on <%- helper.getAppPrefix(appPrefix, appName, false) %>AppRoute {
45
- pageTitle {
46
- value
47
- }
48
- }
49
-
50
- # List the children of the current route
51
- children(hasLayout: true) {
52
- results {
53
- id
54
- # typing fragments can be used anywhere!
55
- # so in this case, we're grabbing the 'pageTitle'
56
- # field on all child route items.
57
- ...on <%- helper.getAppPrefix(appPrefix, appName, false) %>AppRoute {
58
- pageTitle {
59
- jsonValue
60
- value
61
- }
62
- }
63
- url {
64
- path
65
- }
66
- }
67
- }
68
- }
69
- }
1
+ # This file contains a GraphQL query that will be executed and the result provided to
2
+ # your JSS component. You can run this query in GraphiQL ($endpoint/ui) for a nice editing experience.
3
+
4
+ # Note that we're executing _two queries_ (datasource and contextItem)
5
+ # within the context of the ConnectedDemoQuery _operation_. This makes it
6
+ # very efficient at gathering data from multiple sources.
7
+
8
+ query ConnectedDemoQuery($datasource: String!, $contextItem: String!, $language: String!) {
9
+ # Datasource query
10
+ # $datasource should be set to the ID of the rendering's datasource item
11
+ datasource: item(path: $datasource, language: $language) {
12
+ id
13
+ name
14
+ # Strongly-typed querying on known templates is possible!
15
+ ...on <%- helper.getAppPrefix(appPrefix, appName, false) %>GraphQLConnectedDemo {
16
+ # Single-line text field
17
+ sample1 {
18
+ # the 'jsonValue' field is a JSON blob that represents the object that
19
+ # should be passed to JSS field rendering helpers (i.e. text, image, link)
20
+ jsonValue
21
+ value
22
+ }
23
+ # General Link field
24
+ sample2 {
25
+ jsonValue
26
+ # Structured querying of the field's values is possible
27
+ text
28
+ target
29
+ url
30
+ # Access to the template definition is possible
31
+ definition {
32
+ type
33
+ shared
34
+ }
35
+ }
36
+ }
37
+ }
38
+
39
+ # Context/route item query
40
+ # $contextItem should be set to the ID of the current context item (the route item)
41
+ contextItem: item(path: $contextItem, language: $language) {
42
+ id
43
+ # Get the page title from the app route template
44
+ ...on <%- helper.getAppPrefix(appPrefix, appName, false) %>AppRoute {
45
+ pageTitle {
46
+ value
47
+ }
48
+ }
49
+
50
+ # List the children of the current route
51
+ children(hasLayout: true) {
52
+ results {
53
+ id
54
+ # typing fragments can be used anywhere!
55
+ # so in this case, we're grabbing the 'pageTitle'
56
+ # field on all child route items.
57
+ ...on <%- helper.getAppPrefix(appPrefix, appName, false) %>AppRoute {
58
+ pageTitle {
59
+ jsonValue
60
+ value
61
+ }
62
+ }
63
+ url {
64
+ path
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
@@ -1,55 +1,55 @@
1
- <div data-e2e-id="graphql-connected">
2
- <h2>GraphQL Connected Demo</h2>
3
-
4
- <p>
5
- Connected GraphQL executes GraphQL queries directly against the Sitecore GraphQL endpoint.
6
- You can review the query execution in the browser devtools network tab. Note that Apollo
7
- Client maintains a query cache - so the same query will not execute twice (i.e. after route
8
- changes) unless either the page is refreshed, or the <em>fetch policy</em> is set to not use
9
- the cache. Consult the Apollo documentation for details.
10
- </p>
11
-
12
- <div *ngIf="query$ | async as queryResult; else loading">
13
- <div>
14
- <h4>Datasource Item (via Connected GraphQL)</h4>
15
- id: {{ queryResult.data.datasource.id }}
16
- <br />
17
- name: {{ queryResult.data.datasource.name }}
18
- <br />
19
- sample1: {{ queryResult.data.datasource.sample1.value }}
20
- <br />
21
- sample1 (editable): <span *scText="queryResult.data.datasource.sample1.jsonValue"></span>
22
- <br />
23
- sample2:<br />
24
- <ul>
25
- <li>text: {{ queryResult.data.datasource.sample2.text }}</li>
26
- <li>url: {{ queryResult.data.datasource.sample2.url }}</li>
27
- <li>target: {{ queryResult.data.datasource.sample2.target }}</li>
28
- <li>
29
- editable: <a *scLink="queryResult.data.datasource.sample2.jsonValue"></a>
30
- </li>
31
- <li>field type: {{ queryResult.data.datasource.sample2.definition.type }}</li>
32
- <li>field is shared?: {{ queryResult.data.datasource.sample2.definition.shared.toString() }}</li>
33
- </ul>
34
- </div>
35
-
36
- <div>
37
- <h4>Route Item (via Connected GraphQL)</h4>
38
- id: {{ queryResult.data.contextItem.id }}
39
- <br />
40
- page title: {{ queryResult.data.contextItem.pageTitle.value }}
41
- <br />
42
- children:
43
- <ul>
44
- <li *ngFor="let child of queryResult.data.contextItem.children.results">
45
- <a [routerLink]="child.url.path">{{ child.pageTitle.value }}</a>
46
- (editable title too! <span *scText="child.pageTitle.jsonValue"></span>)
47
- </li>
48
- </ul>
49
- </div>
50
- </div>
51
-
52
- <ng-template #loading>
53
- <p class="alert alert-info">GraphQL query is loading...</p>
54
- </ng-template>
55
- </div>
1
+ <div data-e2e-id="graphql-connected">
2
+ <h2>GraphQL Connected Demo</h2>
3
+
4
+ <p>
5
+ Connected GraphQL executes GraphQL queries directly against the Sitecore GraphQL endpoint.
6
+ You can review the query execution in the browser devtools network tab. Note that Apollo
7
+ Client maintains a query cache - so the same query will not execute twice (i.e. after route
8
+ changes) unless either the page is refreshed, or the <em>fetch policy</em> is set to not use
9
+ the cache. Consult the Apollo documentation for details.
10
+ </p>
11
+
12
+ <div *ngIf="query$ | async as queryResult; else loading">
13
+ <div>
14
+ <h4>Datasource Item (via Connected GraphQL)</h4>
15
+ id: {{ queryResult.data.datasource.id }}
16
+ <br />
17
+ name: {{ queryResult.data.datasource.name }}
18
+ <br />
19
+ sample1: {{ queryResult.data.datasource.sample1.value }}
20
+ <br />
21
+ sample1 (editable): <span *scText="queryResult.data.datasource.sample1.jsonValue"></span>
22
+ <br />
23
+ sample2:<br />
24
+ <ul>
25
+ <li>text: {{ queryResult.data.datasource.sample2.text }}</li>
26
+ <li>url: {{ queryResult.data.datasource.sample2.url }}</li>
27
+ <li>target: {{ queryResult.data.datasource.sample2.target }}</li>
28
+ <li>
29
+ editable: <a *scLink="queryResult.data.datasource.sample2.jsonValue"></a>
30
+ </li>
31
+ <li>field type: {{ queryResult.data.datasource.sample2.definition.type }}</li>
32
+ <li>field is shared?: {{ queryResult.data.datasource.sample2.definition.shared.toString() }}</li>
33
+ </ul>
34
+ </div>
35
+
36
+ <div>
37
+ <h4>Route Item (via Connected GraphQL)</h4>
38
+ id: {{ queryResult.data.contextItem.id }}
39
+ <br />
40
+ page title: {{ queryResult.data.contextItem.pageTitle.value }}
41
+ <br />
42
+ children:
43
+ <ul>
44
+ <li *ngFor="let child of queryResult.data.contextItem.children.results">
45
+ <a [routerLink]="child.url.path">{{ child.pageTitle.value }}</a>
46
+ (editable title too! <span *scText="child.pageTitle.jsonValue"></span>)
47
+ </li>
48
+ </ul>
49
+ </div>
50
+ </div>
51
+
52
+ <ng-template #loading>
53
+ <p class="alert alert-info">GraphQL query is loading...</p>
54
+ </ng-template>
55
+ </div>
@@ -1,47 +1,47 @@
1
- <div data-e2e-id="graphql-integrated">
2
- <h2>GraphQL Integrated Demo</h2>
3
-
4
- <p>
5
- Integrated GraphQL executes GraphQL queries within the Layout Service endpoint, and merges
6
- the query results into the Layout Service result JSON. The query results can be seen by
7
- inspecting the Layout Service response in the browser devtools network tab.
8
- </p>
9
-
10
- <div>
11
- <h4>Datasource Item (via Integrated GraphQL)</h4>
12
- id: {{ queryResult.data.datasource.id }}
13
- <br />
14
- name: {{ queryResult.data.datasource.name }}
15
- <br />
16
- sample1: {{ queryResult.data.datasource.sample1.value }}
17
- <br />
18
- sample1 (editable): <span *scText="queryResult.data.datasource.sample1.jsonValue"></span>
19
- <br />
20
- sample2:<br />
21
- <ul>
22
- <li>text: {{ queryResult.data.datasource.sample2.text }}</li>
23
- <li>url: {{ queryResult.data.datasource.sample2.url }}</li>
24
- <li>target: {{ queryResult.data.datasource.sample2.target }}</li>
25
- <li>
26
- editable: <a *scLink="queryResult.data.datasource.sample2.jsonValue"></a>
27
- </li>
28
- <li>field type: {{ queryResult.data.datasource.sample2.definition.type }}</li>
29
- <li>field is shared?: {{ queryResult.data.datasource.sample2.definition.shared.toString() }}</li>
30
- </ul>
31
- </div>
32
-
33
- <div>
34
- <h4>Route Item (via Integrated GraphQL)</h4>
35
- id: {{ queryResult.data.contextItem.id }}
36
- <br />
37
- page title: {{ queryResult.data.contextItem.pageTitle.value }}
38
- <br />
39
- children:
40
- <ul>
41
- <li *ngFor="let child of queryResult.data.contextItem.children.results">
42
- <a [routerLink]="child.url.path">{{ child.pageTitle.value }}</a>
43
- (editable title too! <span *scText="child.pageTitle.jsonValue"></span>)
44
- </li>
45
- </ul>
46
- </div>
47
- </div>
1
+ <div data-e2e-id="graphql-integrated">
2
+ <h2>GraphQL Integrated Demo</h2>
3
+
4
+ <p>
5
+ Integrated GraphQL executes GraphQL queries within the Layout Service endpoint, and merges
6
+ the query results into the Layout Service result JSON. The query results can be seen by
7
+ inspecting the Layout Service response in the browser devtools network tab.
8
+ </p>
9
+
10
+ <div>
11
+ <h4>Datasource Item (via Integrated GraphQL)</h4>
12
+ id: {{ queryResult.data.datasource.id }}
13
+ <br />
14
+ name: {{ queryResult.data.datasource.name }}
15
+ <br />
16
+ sample1: {{ queryResult.data.datasource.sample1.value }}
17
+ <br />
18
+ sample1 (editable): <span *scText="queryResult.data.datasource.sample1.jsonValue"></span>
19
+ <br />
20
+ sample2:<br />
21
+ <ul>
22
+ <li>text: {{ queryResult.data.datasource.sample2.text }}</li>
23
+ <li>url: {{ queryResult.data.datasource.sample2.url }}</li>
24
+ <li>target: {{ queryResult.data.datasource.sample2.target }}</li>
25
+ <li>
26
+ editable: <a *scLink="queryResult.data.datasource.sample2.jsonValue"></a>
27
+ </li>
28
+ <li>field type: {{ queryResult.data.datasource.sample2.definition.type }}</li>
29
+ <li>field is shared?: {{ queryResult.data.datasource.sample2.definition.shared.toString() }}</li>
30
+ </ul>
31
+ </div>
32
+
33
+ <div>
34
+ <h4>Route Item (via Integrated GraphQL)</h4>
35
+ id: {{ queryResult.data.contextItem.id }}
36
+ <br />
37
+ page title: {{ queryResult.data.contextItem.pageTitle.value }}
38
+ <br />
39
+ children:
40
+ <ul>
41
+ <li *ngFor="let child of queryResult.data.contextItem.children.results">
42
+ <a [routerLink]="child.url.path">{{ child.pageTitle.value }}</a>
43
+ (editable title too! <span *scText="child.pageTitle.jsonValue"></span>)
44
+ </li>
45
+ </ul>
46
+ </div>
47
+ </div>
@@ -1,22 +1,22 @@
1
- <div data-e2e-id="graphql-layout">
2
- <ng-container *ngIf="disconnectedMode">
3
- <p>
4
- This app is running in disconnected mode. GraphQL requires connected mode, headless connected
5
- mode, or integrated mode to work.
6
- </p>
7
- <p>
8
- Libraries such as <code>graphql-tools</code> can provide GraphQL API mocking capabilities,
9
- which could enable disconnected GraphQL. This is not supported out of the box, however.
10
- </p>
11
- <p>
12
- To view the GraphQL samples, restart the app using <code>jss start:connected</code>&nbsp; or
13
- deploy the app to Sitecore to run in integrated mode per the JSS documentation.
14
- </p>
15
- </ng-container>
16
- <ng-container *ngIf="!disconnectedMode">
17
- <sc-placeholder
18
- name="<%- helper.getAppPrefix(appPrefix, appName) %>jss-graphql-layout"
19
- [rendering]="rendering"
20
- ></sc-placeholder>
21
- </ng-container>
22
- </div>
1
+ <div data-e2e-id="graphql-layout">
2
+ <ng-container *ngIf="disconnectedMode">
3
+ <p>
4
+ This app is running in disconnected mode. GraphQL requires connected mode, headless connected
5
+ mode, or integrated mode to work.
6
+ </p>
7
+ <p>
8
+ Libraries such as <code>graphql-tools</code> can provide GraphQL API mocking capabilities,
9
+ which could enable disconnected GraphQL. This is not supported out of the box, however.
10
+ </p>
11
+ <p>
12
+ To view the GraphQL samples, restart the app using <code>jss start:connected</code>&nbsp; or
13
+ deploy the app to Sitecore to run in integrated mode per the JSS documentation.
14
+ </p>
15
+ </ng-container>
16
+ <ng-container *ngIf="!disconnectedMode">
17
+ <sc-placeholder
18
+ name="<%- helper.getAppPrefix(appPrefix, appName) %>jss-graphql-layout"
19
+ [rendering]="rendering"
20
+ ></sc-placeholder>
21
+ </ng-container>
22
+ </div>
@@ -1,5 +1,5 @@
1
- <app-styleguide-specimen [rendering]="rendering">
2
- <p>JSS can <em>lazy-load</em> Angular components. This removes them from the main app JS bundle, reducing its size. Lazy-loading is very good for components that are used on few routes, since they are not downloaded until used on a route. This can greatly improve initial page load times.</p>
3
- <p>This works very similarly to route-based Angular lazy-loading, but for an individual component. The component has its own Angular module defined for it, and the loader is added as lazy instead.</p>
4
- <p>To see this lazy loading working, inspect network traffic in your browser's dev tools, and look for <code>styleguide-angular-lazy-loading-styleguide-angular-lazy-loading-module.js</code> (in production mode, the file name will be hash value), which is the request that loads this component's JS.</p>
5
- </app-styleguide-specimen>
1
+ <app-styleguide-specimen [rendering]="rendering">
2
+ <p>JSS can <em>lazy-load</em> Angular components. This removes them from the main app JS bundle, reducing its size. Lazy-loading is very good for components that are used on few routes, since they are not downloaded until used on a route. This can greatly improve initial page load times.</p>
3
+ <p>This works very similarly to route-based Angular lazy-loading, but for an individual component. The component has its own Angular module defined for it, and the loader is added as lazy instead.</p>
4
+ <p>To see this lazy loading working, inspect network traffic in your browser's dev tools, and look for <code>styleguide-angular-lazy-loading-styleguide-angular-lazy-loading-module.js</code> (in production mode, the file name will be hash value), which is the request that loads this component's JS.</p>
5
+ </app-styleguide-specimen>
@@ -1,19 +1,19 @@
1
- <app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-componentparams">
2
- <p class="{{ cssClass }}">
3
- The CSS class of this paragraph (<code>{{ cssClass }}</code>) is set using a param
4
- </p>
5
- <div>
6
- <!-- Note that all params come in as string values, like this boolean-like param here: -->
7
- useCallToAction param: <code>{{ useCta }}</code>
8
- <br />
9
- param type: <code>{{ useCtaType }}</code>
10
- <!-- because the param is a string, you need to compare it as a string - if(`useCta`) won't work correctly. -->
11
- <div *ngIf="useCta === 'true'" class="alert alert-info">the call to action is shown</div>
12
- </div>
13
- <p>columns param: {{ columns }}</p>
14
- <div class="row">
15
- <div class="col-sm" *ngFor="let column of columnsArray">
16
- Column {{ column }}
17
- </div>
18
- </div>
19
- </app-styleguide-specimen>
1
+ <app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-componentparams">
2
+ <p class="{{ cssClass }}">
3
+ The CSS class of this paragraph (<code>{{ cssClass }}</code>) is set using a param
4
+ </p>
5
+ <div>
6
+ <!-- Note that all params come in as string values, like this boolean-like param here: -->
7
+ useCallToAction param: <code>{{ useCta }}</code>
8
+ <br />
9
+ param type: <code>{{ useCtaType }}</code>
10
+ <!-- because the param is a string, you need to compare it as a string - if(`useCta`) won't work correctly. -->
11
+ <div *ngIf="useCta === 'true'" class="alert alert-info">the call to action is shown</div>
12
+ </div>
13
+ <p>columns param: {{ columns }}</p>
14
+ <div class="row">
15
+ <div class="col-sm" *ngFor="let column of columnsArray">
16
+ Column {{ column }}
17
+ </div>
18
+ </div>
19
+ </app-styleguide-specimen>