create-sitecore-jss 22.5.0 → 22.6.0-canary.10
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.
- package/LICENSE.MD +202 -202
- package/README.md +10 -10
- package/dist/templates/angular/.eslintignore +3 -3
- package/dist/templates/angular/.eslintrc +66 -66
- package/dist/templates/angular/LICENSE.txt +202 -202
- package/dist/templates/angular/README.md +13 -13
- package/dist/templates/angular/angular.json +171 -171
- package/dist/templates/angular/e2e/tsconfig.e2e.json +15 -15
- package/dist/templates/angular/gitignore +52 -52
- package/dist/templates/angular/package.json +116 -116
- package/dist/templates/angular/scripts/temp/gitignore +2 -2
- package/dist/templates/angular/src/app/app.component.html +1 -1
- package/dist/templates/angular/src/app/components/content-block/content-block.component.html +4 -4
- package/dist/templates/angular/src/app/components/gitignore +7 -7
- package/dist/templates/angular/src/app/routing/layout/layout.component.html +17 -17
- package/dist/templates/angular/src/app/routing/navigation/navigation.component.html +20 -20
- package/dist/templates/angular/src/app/routing/not-found/not-found.component.html +7 -7
- package/dist/templates/angular/src/app/routing/scripts/scripts.component.html +1 -1
- package/dist/templates/angular/src/app/routing/server-error/server-error.component.html +3 -3
- package/dist/templates/angular/src/assets/images/sc_logo.svg +52 -52
- package/dist/templates/angular/src/environments/gitignore +1 -1
- package/dist/templates/angular/src/index.html +12 -12
- package/dist/templates/angular/src/styles.css +34 -34
- package/dist/templates/angular/src/tsconfig.app.json +21 -21
- package/dist/templates/angular/src/tsconfig.server.json +20 -20
- package/dist/templates/angular/src/tsconfig.spec.json +24 -24
- package/dist/templates/angular/src/tsconfig.webpack-server.json +6 -6
- package/dist/templates/angular/tsconfig.json +38 -38
- package/dist/templates/angular-sxp/.env +2 -2
- package/dist/templates/angular-sxp/angular.json +13 -13
- package/dist/templates/angular-sxp/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
- package/dist/templates/angular-sxp/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
- package/dist/templates/angular-sxp/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
- package/dist/templates/angular-sxp/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
- package/dist/templates/angular-sxp/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
- package/dist/templates/angular-sxp/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
- package/dist/templates/angular-sxp/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
- package/dist/templates/angular-sxp/data/dictionary/en.yml +4 -4
- package/dist/templates/angular-sxp/data/dictionary/{{language}}.yml +4 -4
- package/dist/templates/angular-sxp/data/routes/en.yml +61 -61
- package/dist/templates/angular-sxp/data/routes/graphql/en.yml +27 -27
- package/dist/templates/angular-sxp/data/routes/graphql/sample-1/en.yml +9 -9
- package/dist/templates/angular-sxp/data/routes/graphql/sample-2/en.yml +9 -9
- package/dist/templates/angular-sxp/data/routes/styleguide/custom-route-type/en.yml +12 -12
- package/dist/templates/angular-sxp/data/routes/styleguide/en.yml +271 -271
- package/dist/templates/angular-sxp/data/routes/styleguide/{{language}}.yml +25 -25
- package/dist/templates/angular-sxp/data/routes/{{language}}.yml +4 -4
- package/dist/templates/angular-sxp/package.json +12 -12
- package/dist/templates/angular-sxp/sitecore/config/{{appName}}.config +90 -90
- package/dist/templates/angular-sxp/sitecore/definitions/components/graph-ql-integrated-demo.sitecore.graphql +71 -71
- package/dist/templates/angular-sxp/sitecore/gitignore +2 -2
- package/dist/templates/angular-sxp/src/app/components/graph-ql-connected-demo/graph-ql-connected-demo.component.graphql +69 -69
- package/dist/templates/angular-sxp/src/app/components/graph-ql-connected-demo/graph-ql-connected-demo.component.html +55 -55
- package/dist/templates/angular-sxp/src/app/components/graph-ql-integrated-demo/graph-ql-integrated-demo.component.html +47 -47
- package/dist/templates/angular-sxp/src/app/components/graph-ql-layout/graph-ql-layout.component.html +22 -22
- package/dist/templates/angular-sxp/src/app/components/styleguide-angular-lazy-loading/styleguide-angular-lazy-loading.component.html +5 -5
- package/dist/templates/angular-sxp/src/app/components/styleguide-component-params/styleguide-component-params.component.html +19 -19
- package/dist/templates/angular-sxp/src/app/components/styleguide-custom-route-type/styleguide-custom-route-type.component.html +14 -14
- package/dist/templates/angular-sxp/src/app/components/styleguide-edit-frame/styleguide-edit-frame.component.html +19 -19
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-checkbox/styleguide-field-usage-checkbox.component.html +11 -11
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-content-list/styleguide-field-usage-content-list.component.html +26 -26
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-custom/styleguide-field-usage-custom.component.html +4 -4
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-date/styleguide-field-usage-date.component.html +27 -27
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-file/styleguide-field-usage-file.component.html +10 -10
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-image/styleguide-field-usage-image.component.html +30 -30
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-item-link/styleguide-field-usage-item-link.component.html +17 -17
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-link/styleguide-field-usage-link.component.html +44 -44
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-number/styleguide-field-usage-number.component.html +11 -11
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-rich-text/styleguide-field-usage-rich-text.component.html +11 -11
- package/dist/templates/angular-sxp/src/app/components/styleguide-field-usage-text/styleguide-field-usage-text.component.html +13 -13
- package/dist/templates/angular-sxp/src/app/components/styleguide-layout/styleguide-layout.component.html +20 -20
- package/dist/templates/angular-sxp/src/app/components/styleguide-layout-reuse/styleguide-layout-reuse.component.html +52 -52
- package/dist/templates/angular-sxp/src/app/components/styleguide-layout-tabs/styleguide-layout-tabs.component.html +37 -37
- package/dist/templates/angular-sxp/src/app/components/styleguide-layout-tabs-tab/styleguide-layout-tabs-tab.component.html +12 -12
- package/dist/templates/angular-sxp/src/app/components/styleguide-multilingual/styleguide-multilingual.component.html +15 -15
- package/dist/templates/angular-sxp/src/app/components/styleguide-route-fields/styleguide-route-fields.component.html +8 -8
- package/dist/templates/angular-sxp/src/app/components/styleguide-section/styleguide-section.component.html +7 -7
- package/dist/templates/angular-sxp/src/app/components/styleguide-sitecore-context/styleguide-sitecore-context.component.html +3 -3
- package/dist/templates/angular-sxp/src/app/components/styleguide-tracking/styleguide-tracking.component.html +175 -175
- package/dist/templates/angular-sxp/src/app/routing/navigation/navigation.component.html +23 -23
- package/dist/templates/angular-sxp/src/app/routing/scripts/scripts.component.html +3 -3
- package/dist/templates/angular-xmcloud/README.md +87 -87
- package/dist/templates/angular-xmcloud/angular.json +33 -33
- package/dist/templates/angular-xmcloud/package.json +17 -17
- package/dist/templates/angular-xmcloud/src/app/components/column-splitter/column-splitter.component.html +5 -5
- package/dist/templates/angular-xmcloud/src/app/components/container/container.component.html +14 -14
- package/dist/templates/angular-xmcloud/src/app/components/image/image.component.html +36 -36
- package/dist/templates/angular-xmcloud/src/app/components/link-list/link-list.component.html +15 -15
- package/dist/templates/angular-xmcloud/src/app/components/navigation/navigation-item.component.html +23 -23
- package/dist/templates/angular-xmcloud/src/app/components/navigation/navigation.component.html +21 -21
- package/dist/templates/angular-xmcloud/src/app/components/page-content/page-content.component.html +5 -5
- package/dist/templates/angular-xmcloud/src/app/components/partial-design-dynamic-placeholder/partial-design-dynamic-placeholder.component.html +1 -1
- package/dist/templates/angular-xmcloud/src/app/components/promo/promo.component.html +21 -21
- package/dist/templates/angular-xmcloud/src/app/components/richtext/richtext.component.html +8 -8
- package/dist/templates/angular-xmcloud/src/app/components/row-splitter/row-splitter.component.html +11 -11
- package/dist/templates/angular-xmcloud/src/app/components/title/title.component.html +10 -10
- package/dist/templates/angular-xmcloud/src/app/routing/layout/layout.component.html +38 -38
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_component.scss +48 -48
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_container.scss +64 -64
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_fonts.scss +3 -3
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_footer.scss +31 -31
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_header.scss +51 -51
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_navigation.scss +150 -150
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_promo.scss +58 -58
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_rich-text.scss +11 -11
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_variables.scss +9 -9
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/main.scss +8 -8
- package/dist/templates/angular-xmcloud/src/assets/styles/main.scss +14 -14
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/_app.scss +103 -103
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/_functions.scss +8 -8
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/_mixins.scss +121 -121
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/_vars.scss +3 -3
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/vars/_colors.scss +283 -283
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/vars/_fontSizes.scss +16 -16
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/vars/_margins.scss +10 -10
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/fonts/_fonts.scss +1 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/fonts/index.scss +1 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/index.scss +3 -3
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/links/_link-button.scss +26 -26
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/links/index.scss +1 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/reset/_inputs.scss +58 -58
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/reset/_links.scss +14 -14
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/reset/_ui-datepicker.scss +7 -7
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/richtext/_richtext-files-icons.scss +86 -86
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/richtext/_richtext.scss +101 -101
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/richtext/index.scss +2 -2
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/typehead/_typehead.scss +95 -95
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/typehead/index.scss +1 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-column-splitter.scss +14 -14
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-container.scss +27 -27
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-image.scss +18 -18
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-navigation.scss +51 -51
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-promo.scss +42 -42
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-richtext-content.scss +19 -19
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_alignment.scss +25 -25
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_boxed.scss +16 -16
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_clearfix.scss +11 -11
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_highlighted.scss +62 -62
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_link-button.scss +16 -16
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_promoted-box.scss +3 -3
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/index.scss +5 -5
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/container/_bordered.scss +23 -23
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/container/_title-row-box.scss +66 -66
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/container/index.scss +1 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/image/_image-default-size.scss +6 -6
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/image/index.scss +1 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/image-alignment/_image-left.scss +3 -3
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/image-alignment/_image-right.scss +3 -3
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/index.scss +17 -17
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/layout/_acaindent.scss +5 -5
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/layout/_background.scss +27 -27
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/layout/index.scss +1 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/link-list/_component-link-list.scss +45 -45
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/link-list/_list-vertical.scss +20 -20
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/link-list/index.scss +2 -2
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_navigation-fat.scss +58 -58
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_navigation-main-horizontal-vertical.scss +176 -176
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_navigation-mobile.scss +85 -85
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_navigation-sidebar.scss +29 -29
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_sitemap-navigation.scss +20 -20
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/index.scss +5 -5
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/promo/_absolute-bottom-link.scss +8 -8
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/promo/_promo-hero.scss +40 -40
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/promo/_promo-shadow.scss +42 -42
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/promo/index.scss +3 -3
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/rich-text/_rich-text-lists.scss +63 -63
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/rich-text/index.scss +1 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/spacing/_background-colors.scss +14 -14
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/spacing/_indent.scss +13 -13
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/spacing/index.scss +2 -2
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/title/_component-title.scss +30 -30
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/title/index.scss +1 -1
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/main.scss +4 -4
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/variants/index.scss +5 -5
- package/dist/templates/nextjs/.eslintrc +31 -31
- package/dist/templates/nextjs/.gitattributes +11 -11
- package/dist/templates/nextjs/.graphql-let.yml +8 -8
- package/dist/templates/nextjs/.prettierrc +8 -8
- package/dist/templates/nextjs/.vscode/launch.json +15 -15
- package/dist/templates/nextjs/LICENSE.txt +202 -202
- package/dist/templates/nextjs/README.md +8 -8
- package/dist/templates/nextjs/gitignore +32 -32
- package/dist/templates/nextjs/package.json +87 -87
- package/dist/templates/nextjs/public/sc_logo.svg +52 -52
- package/dist/templates/nextjs/scripts/temp/gitignore +2 -2
- package/dist/templates/nextjs/sitecore/config/{{appName}}.config +165 -165
- package/dist/templates/nextjs/src/assets/app.css +36 -36
- package/dist/templates/nextjs/src/temp/GraphQLIntrospectionResult.json +22215 -22215
- package/dist/templates/nextjs/src/temp/gitignore +3 -3
- package/dist/templates/nextjs/tsconfig.json +38 -38
- package/dist/templates/nextjs/tsconfig.scripts.json +11 -11
- package/dist/templates/nextjs-styleguide/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
- package/dist/templates/nextjs-styleguide/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
- package/dist/templates/nextjs-styleguide/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
- package/dist/templates/nextjs-styleguide/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
- package/dist/templates/nextjs-styleguide/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
- package/dist/templates/nextjs-styleguide/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
- package/dist/templates/nextjs-styleguide/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
- package/dist/templates/nextjs-styleguide/data/dictionary/en.yml +4 -4
- package/dist/templates/nextjs-styleguide/data/dictionary/{{language}}.yml +4 -4
- package/dist/templates/nextjs-styleguide/data/routes/en.yml +63 -63
- package/dist/templates/nextjs-styleguide/data/routes/graphql/en.yml +27 -27
- package/dist/templates/nextjs-styleguide/data/routes/graphql/sample-1/en.yml +9 -9
- package/dist/templates/nextjs-styleguide/data/routes/graphql/sample-2/en.yml +9 -9
- package/dist/templates/nextjs-styleguide/data/routes/styleguide/custom-route-type/en.yml +12 -12
- package/dist/templates/nextjs-styleguide/data/routes/styleguide/en.yml +259 -259
- package/dist/templates/nextjs-styleguide/data/routes/styleguide/{{language}}.yml +25 -25
- package/dist/templates/nextjs-styleguide/data/routes/{{language}}.yml +4 -4
- package/dist/templates/nextjs-styleguide/package.json +14 -14
- package/dist/templates/nextjs-styleguide/sitecore/definitions/components/graphql/GraphQL-IntegratedDemo.sitecore.graphql +71 -71
- package/dist/templates/nextjs-styleguide/sitecore/gitignore +3 -3
- package/dist/templates/nextjs-styleguide/src/components/graphql/GraphQL-ConnectedDemo.dynamic.graphql +69 -69
- package/dist/templates/nextjs-styleguide-tracking/data/dictionary/en.yml +5 -5
- package/dist/templates/nextjs-styleguide-tracking/data/routes/tracking/en.yml +8 -8
- package/dist/templates/nextjs-sxa/package.json +11 -11
- package/dist/templates/nextjs-sxa/src/assets/basic/_component.scss +48 -48
- package/dist/templates/nextjs-sxa/src/assets/basic/_container.scss +64 -64
- package/dist/templates/nextjs-sxa/src/assets/basic/_fonts.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/basic/_footer.scss +31 -31
- package/dist/templates/nextjs-sxa/src/assets/basic/_header.scss +49 -49
- package/dist/templates/nextjs-sxa/src/assets/basic/_navigation.scss +150 -150
- package/dist/templates/nextjs-sxa/src/assets/basic/_promo.scss +58 -58
- package/dist/templates/nextjs-sxa/src/assets/basic/_rich-text.scss +11 -11
- package/dist/templates/nextjs-sxa/src/assets/basic/_variables.scss +9 -9
- package/dist/templates/nextjs-sxa/src/assets/basic/main.scss +8 -8
- package/dist/templates/nextjs-sxa/src/assets/main.scss +4 -4
- package/dist/templates/nextjs-sxa/src/assets/sass/_app.scss +103 -103
- package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/_functions.scss +8 -8
- package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/_mixins.scss +121 -121
- package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/_vars.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/vars/_colors.scss +283 -283
- package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/vars/_fontSizes.scss +16 -16
- package/dist/templates/nextjs-sxa/src/assets/sass/abstracts/vars/_margins.scss +10 -10
- package/dist/templates/nextjs-sxa/src/assets/sass/base/fonts/_fonts.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/base/fonts/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/base/index.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/sass/base/links/_link-button.scss +26 -26
- package/dist/templates/nextjs-sxa/src/assets/sass/base/links/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/base/reset/_inputs.scss +58 -58
- package/dist/templates/nextjs-sxa/src/assets/sass/base/reset/_links.scss +14 -14
- package/dist/templates/nextjs-sxa/src/assets/sass/base/reset/_ui-datepicker.scss +7 -7
- package/dist/templates/nextjs-sxa/src/assets/sass/base/richtext/_richtext-files-icons.scss +86 -86
- package/dist/templates/nextjs-sxa/src/assets/sass/base/richtext/_richtext.scss +101 -101
- package/dist/templates/nextjs-sxa/src/assets/sass/base/richtext/index.scss +2 -2
- package/dist/templates/nextjs-sxa/src/assets/sass/base/typehead/_typehead.scss +95 -95
- package/dist/templates/nextjs-sxa/src/assets/sass/base/typehead/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-column-splitter.scss +14 -14
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-container.scss +27 -27
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-image.scss +18 -18
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-navigation.scss +51 -51
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-promo.scss +42 -42
- package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-richtext-content.scss +19 -19
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_alignment.scss +53 -53
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_boxed.scss +16 -16
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_clearfix.scss +11 -11
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_highlighted.scss +62 -62
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_link-button.scss +16 -16
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/_promoted-box.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/sass/components/common/index.scss +5 -5
- package/dist/templates/nextjs-sxa/src/assets/sass/components/container/_bordered.scss +23 -23
- package/dist/templates/nextjs-sxa/src/assets/sass/components/container/_title-row-box.scss +66 -66
- package/dist/templates/nextjs-sxa/src/assets/sass/components/container/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/components/image/_image-default-size.scss +6 -6
- package/dist/templates/nextjs-sxa/src/assets/sass/components/image/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/components/image-alignment/_image-left.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/sass/components/image-alignment/_image-right.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/sass/components/index.scss +17 -17
- package/dist/templates/nextjs-sxa/src/assets/sass/components/layout/_acaindent.scss +5 -5
- package/dist/templates/nextjs-sxa/src/assets/sass/components/layout/_background.scss +27 -27
- package/dist/templates/nextjs-sxa/src/assets/sass/components/layout/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/components/link-list/_component-link-list.scss +45 -45
- package/dist/templates/nextjs-sxa/src/assets/sass/components/link-list/_list-vertical.scss +20 -20
- package/dist/templates/nextjs-sxa/src/assets/sass/components/link-list/index.scss +2 -2
- package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-fat.scss +58 -58
- package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-main-horizontal-vertical.scss +176 -176
- package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-mobile.scss +85 -85
- package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_navigation-sidebar.scss +29 -29
- package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/_sitemap-navigation.scss +20 -20
- package/dist/templates/nextjs-sxa/src/assets/sass/components/navigation/index.scss +5 -5
- package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_absolute-bottom-link.scss +8 -8
- package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_promo-hero.scss +40 -40
- package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_promo-shadow.scss +42 -42
- package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/index.scss +3 -3
- package/dist/templates/nextjs-sxa/src/assets/sass/components/rich-text/_rich-text-lists.scss +63 -63
- package/dist/templates/nextjs-sxa/src/assets/sass/components/rich-text/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/components/spacing/_background-colors.scss +14 -14
- package/dist/templates/nextjs-sxa/src/assets/sass/components/spacing/_indent.scss +13 -13
- package/dist/templates/nextjs-sxa/src/assets/sass/components/spacing/index.scss +2 -2
- package/dist/templates/nextjs-sxa/src/assets/sass/components/title/_component-title.scss +30 -30
- package/dist/templates/nextjs-sxa/src/assets/sass/components/title/index.scss +1 -1
- package/dist/templates/nextjs-sxa/src/assets/sass/main.scss +4 -4
- package/dist/templates/nextjs-sxa/src/assets/sass/variants/index.scss +5 -5
- package/dist/templates/nextjs-sxa/src/components/ColumnSplitter.tsx +1 -1
- package/dist/templates/nextjs-sxa/src/components/Container.tsx +5 -5
- package/dist/templates/nextjs-sxa/src/components/Image.tsx +9 -9
- package/dist/templates/nextjs-sxa/src/components/LinkList.tsx +1 -1
- package/dist/templates/nextjs-sxa/src/components/Navigation.tsx +2 -2
- package/dist/templates/nextjs-sxa/src/components/PageContent.tsx +3 -3
- package/dist/templates/nextjs-sxa/src/components/Promo.tsx +3 -3
- package/dist/templates/nextjs-sxa/src/components/RichText.tsx +1 -1
- package/dist/templates/nextjs-sxa/src/components/RowSplitter.tsx +1 -1
- package/dist/templates/nextjs-sxa/src/components/Title.tsx +2 -2
- package/dist/templates/nextjs-sxa/src/pages/api/sitemap.ts +5 -7
- package/dist/templates/nextjs-xmcloud/.env +19 -19
- package/dist/templates/nextjs-xmcloud/package.json +8 -8
- package/dist/templates/node-headless-ssr-experience-edge/README.md +56 -56
- package/dist/templates/node-headless-ssr-experience-edge/gitignore +19 -19
- package/dist/templates/node-headless-ssr-experience-edge/package.json +34 -34
- package/dist/templates/node-headless-ssr-experience-edge/tsconfig.json +22 -22
- package/dist/templates/node-headless-ssr-proxy/.vscode/launch.json +47 -47
- package/dist/templates/node-headless-ssr-proxy/LICENSE.txt +202 -202
- package/dist/templates/node-headless-ssr-proxy/README.md +65 -65
- package/dist/templates/node-headless-ssr-proxy/gitignore +19 -19
- package/dist/templates/node-headless-ssr-proxy/package.json +39 -39
- package/dist/templates/node-headless-ssr-proxy/src/error.html +200 -200
- package/dist/templates/node-headless-ssr-proxy/tsconfig.json +22 -22
- package/dist/templates/node-xmcloud-proxy/README.md +165 -165
- package/dist/templates/node-xmcloud-proxy/gitignore +33 -33
- package/dist/templates/node-xmcloud-proxy/package.json +26 -26
- package/dist/templates/node-xmcloud-proxy/tsconfig.json +22 -22
- package/dist/templates/react/.prettierrc +9 -9
- package/dist/templates/react/LICENSE.txt +202 -202
- package/dist/templates/react/README.md +2402 -2402
- package/dist/templates/react/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
- package/dist/templates/react/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
- package/dist/templates/react/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
- package/dist/templates/react/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
- package/dist/templates/react/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
- package/dist/templates/react/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
- package/dist/templates/react/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
- package/dist/templates/react/data/dictionary/en.yml +4 -4
- package/dist/templates/react/data/dictionary/{{language}}.yml +4 -4
- package/dist/templates/react/data/routes/en.yml +61 -61
- package/dist/templates/react/data/routes/graphql/en.yml +27 -27
- package/dist/templates/react/data/routes/graphql/sample-1/en.yml +9 -9
- package/dist/templates/react/data/routes/graphql/sample-2/en.yml +9 -9
- package/dist/templates/react/data/routes/styleguide/custom-route-type/en.yml +12 -12
- package/dist/templates/react/data/routes/styleguide/en.yml +263 -263
- package/dist/templates/react/data/routes/styleguide/{{language}}.yml +26 -26
- package/dist/templates/react/data/routes/{{language}}.yml +4 -4
- package/dist/templates/react/gitignore +25 -25
- package/dist/templates/react/public/index.html +35 -35
- package/dist/templates/react/sitecore/config/{{appName}}.config +90 -90
- package/dist/templates/react/sitecore/definitions/components/graphql/GraphQL-IntegratedDemo.sitecore.graphql +71 -71
- package/dist/templates/react/sitecore/gitignore +2 -2
- package/dist/templates/react/src/assets/sc_logo.svg +52 -52
- package/dist/templates/react/src/components/graphql/query.graphql +69 -69
- package/dist/templates/react/src/temp/GraphQLFragmentTypes.json +207 -207
- package/dist/templates/react/src/temp/gitignore +3 -3
- package/dist/templates/react-native/.buckconfig +6 -6
- package/dist/templates/react-native/.eslintrc +74 -74
- package/dist/templates/react-native/.gitattributes +1 -1
- package/dist/templates/react-native/.prettierrc +9 -9
- package/dist/templates/react-native/.vscode/launch.json +42 -42
- package/dist/templates/react-native/.vscode/settings.json +1 -1
- package/dist/templates/react-native/LICENSE.txt +202 -202
- package/dist/templates/react-native/README.MD +115 -115
- package/dist/templates/react-native/android/app/BUCK +55 -55
- package/dist/templates/react-native/android/app/build.gradle +201 -201
- package/dist/templates/react-native/android/app/build_defs.bzl +19 -19
- package/dist/templates/react-native/android/app/proguard-rules.pro +10 -10
- package/dist/templates/react-native/android/app/src/debug/AndroidManifest.xml +8 -8
- package/dist/templates/react-native/android/app/src/main/AndroidManifest.xml +26 -26
- package/dist/templates/react-native/android/app/src/main/java/com/{{appName}}/MainActivity.java +15 -15
- package/dist/templates/react-native/android/app/src/main/java/com/{{appName}}/MainApplication.java +74 -74
- package/dist/templates/react-native/android/app/src/main/res/values/strings.xml +3 -3
- package/dist/templates/react-native/android/app/src/main/res/values/styles.xml +9 -9
- package/dist/templates/react-native/android/build.gradle +38 -38
- package/dist/templates/react-native/android/gradle/wrapper/gradle-wrapper.properties +5 -5
- package/dist/templates/react-native/android/gradle.properties +21 -21
- package/dist/templates/react-native/android/gradlew +188 -188
- package/dist/templates/react-native/android/gradlew.bat +100 -100
- package/dist/templates/react-native/android/settings.gradle +3 -3
- package/dist/templates/react-native/app.json +3 -3
- package/dist/templates/react-native/assets/img/sc_logo.svg +52 -52
- package/dist/templates/react-native/data/content/Styleguide/ItemLinkField/Item1/en.json +10 -10
- package/dist/templates/react-native/data/routes/en.json +22 -22
- package/dist/templates/react-native/data/routes/styleguide/en.json +227 -227
- package/dist/templates/react-native/data/routes/styleguide/{{language}}.json +31 -31
- package/dist/templates/react-native/data/routes/{{language}}.json +7 -7
- package/dist/templates/react-native/gitignore +60 -60
- package/dist/templates/react-native/ios/Podfile +53 -53
- package/dist/templates/react-native/ios/{{appName}}/AppDelegate.h +15 -15
- package/dist/templates/react-native/ios/{{appName}}/AppDelegate.m +42 -42
- package/dist/templates/react-native/ios/{{appName}}/Base.lproj/LaunchScreen.xib +42 -42
- package/dist/templates/react-native/ios/{{appName}}/Images.xcassets/AppIcon.appiconset/Contents.json +38 -38
- package/dist/templates/react-native/ios/{{appName}}/Images.xcassets/Contents.json +6 -6
- package/dist/templates/react-native/ios/{{appName}}/Info.plist +57 -57
- package/dist/templates/react-native/ios/{{appName}}/main.m +16 -16
- package/dist/templates/react-native/ios/{{appName}}-tvOS/Info.plist +53 -53
- package/dist/templates/react-native/ios/{{appName}}-tvOSTests/Info.plist +24 -24
- package/dist/templates/react-native/ios/{{appName}}.xcodeproj/xcshareddata/xcschemes/BasicSampleReactNative-tvOS.xcscheme +129 -129
- package/dist/templates/react-native/ios/{{appName}}.xcodeproj/xcshareddata/xcschemes/BasicSampleReactNative.xcscheme +129 -129
- package/dist/templates/react-native/ios/{{appName}}Tests/BasicSampleReactNativeTests.m +72 -72
- package/dist/templates/react-native/ios/{{appName}}Tests/Info.plist +24 -24
- package/dist/templates/react-native/package.json +78 -78
- package/dist/templates/react-native/sitecore/config/{{appName}}.config +47 -47
- package/dist/templates/react-native/sitecore/gitignore +2 -2
- package/dist/templates/vue/.browserslistrc +2 -2
- package/dist/templates/vue/.prettierrc +9 -9
- package/dist/templates/vue/LICENSE.txt +202 -202
- package/dist/templates/vue/README.md +36 -36
- package/dist/templates/vue/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
- package/dist/templates/vue/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
- package/dist/templates/vue/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
- package/dist/templates/vue/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
- package/dist/templates/vue/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
- package/dist/templates/vue/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
- package/dist/templates/vue/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
- package/dist/templates/vue/data/dictionary/en.yml +7 -7
- package/dist/templates/vue/data/dictionary/{{language}}.yml +7 -7
- package/dist/templates/vue/data/routes/en.yml +63 -63
- package/dist/templates/vue/data/routes/graphql/en.yml +34 -34
- package/dist/templates/vue/data/routes/graphql/sample-1/en.yml +9 -9
- package/dist/templates/vue/data/routes/graphql/sample-2/en.yml +9 -9
- package/dist/templates/vue/data/routes/styleguide/custom-route-type/en.yml +12 -12
- package/dist/templates/vue/data/routes/styleguide/en.yml +264 -264
- package/dist/templates/vue/data/routes/styleguide/{{language}}.yml +26 -26
- package/dist/templates/vue/data/routes/{{language}}.yml +4 -4
- package/dist/templates/vue/gitignore +25 -25
- package/dist/templates/vue/package.json +87 -87
- package/dist/templates/vue/public/img/icons/safari-pinned-tab.svg +75 -75
- package/dist/templates/vue/public/index.html +27 -27
- package/dist/templates/vue/public/manifest.json +14 -14
- package/dist/templates/vue/public/robots.txt +2 -2
- package/dist/templates/vue/sitecore/config/{{appName}}.config +89 -89
- package/dist/templates/vue/sitecore/definitions/components/GraphQL-IntegratedDemo.sitecore.graphql +71 -71
- package/dist/templates/vue/sitecore/gitignore +4 -4
- package/dist/templates/vue/src/assets/app.css +30 -30
- package/dist/templates/vue/src/assets/sc_logo.svg +52 -52
- package/dist/templates/vue/src/components/GraphQL/GraphQL-ConnectedDemo.query.graphql +69 -69
- package/dist/templates/vue/src/temp/GraphQLFragmentTypes.json +273 -273
- package/dist/templates/vue/src/temp/gitignore +3 -3
- package/package.json +2 -2
|
@@ -1,175 +1,175 @@
|
|
|
1
|
-
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-tracking">
|
|
2
|
-
<p *ngIf="disconnectedMode">The tracking API is only available in connected, integrated, or headless modes.</p>
|
|
3
|
-
|
|
4
|
-
<div *ngIf="!disconnectedMode">
|
|
5
|
-
<p class="alert alert-warning">
|
|
6
|
-
Note: The JSS tracker API is disabled by default. Consult the <a href="https://jss.sitecore.com/docs/fundamentals/services/tracking">tracking documentation</a> to enable it.
|
|
7
|
-
</p>
|
|
8
|
-
<div class="row">
|
|
9
|
-
<fieldset class="form-group col-sm">
|
|
10
|
-
<legend>Event</legend>
|
|
11
|
-
<p>
|
|
12
|
-
Events are defined in <code>/sitecore/system/Settings/Analytics/Page Events</code>
|
|
13
|
-
</p>
|
|
14
|
-
<label htmlFor="event">Event GUID or Name</label>
|
|
15
|
-
<input type="text" id="event" class="form-control" [(ngModel)]="event" />
|
|
16
|
-
<button
|
|
17
|
-
type="button"
|
|
18
|
-
class="btn btn-primary mt-3"
|
|
19
|
-
(click)="submitEvent()"
|
|
20
|
-
>
|
|
21
|
-
Submit
|
|
22
|
-
</button>
|
|
23
|
-
</fieldset>
|
|
24
|
-
|
|
25
|
-
<fieldset class="form-group col-sm">
|
|
26
|
-
<legend>Goal</legend>
|
|
27
|
-
<p>
|
|
28
|
-
Goals are defined in <code>/sitecore/system/Marketing Control Panel/Goals</code>
|
|
29
|
-
</p>
|
|
30
|
-
<label htmlFor="goal">Goal GUID or Name</label>
|
|
31
|
-
<input
|
|
32
|
-
type="text"
|
|
33
|
-
class="form-control"
|
|
34
|
-
id="goal"
|
|
35
|
-
name="goal"
|
|
36
|
-
[(ngModel)]="goal"
|
|
37
|
-
placeholder="i.e. Register"
|
|
38
|
-
/>
|
|
39
|
-
<button
|
|
40
|
-
type="button"
|
|
41
|
-
class="btn btn-primary mt-3"
|
|
42
|
-
(click)="submitGoal()"
|
|
43
|
-
>
|
|
44
|
-
Submit
|
|
45
|
-
</button>
|
|
46
|
-
</fieldset>
|
|
47
|
-
</div>
|
|
48
|
-
<div class="row">
|
|
49
|
-
<fieldset class="form-group col-sm">
|
|
50
|
-
<legend>Outcome</legend>
|
|
51
|
-
<p>
|
|
52
|
-
Outcomes are defined in <code>/sitecore/system/Marketing Control Panel/Outcomes</code>
|
|
53
|
-
</p>
|
|
54
|
-
<label htmlFor="outcomeName">Outcome GUID or Name</label>
|
|
55
|
-
<input
|
|
56
|
-
type="text"
|
|
57
|
-
class="form-control"
|
|
58
|
-
id="outcomeName"
|
|
59
|
-
name="outcomeName"
|
|
60
|
-
[(ngModel)]="outcomeName"
|
|
61
|
-
placeholder="i.e. Marketing Lead"
|
|
62
|
-
/>
|
|
63
|
-
<br />
|
|
64
|
-
<label htmlFor="outcomeValue">Monetary Value (optional)</label>
|
|
65
|
-
<input
|
|
66
|
-
type="number"
|
|
67
|
-
class="form-control"
|
|
68
|
-
id="outcomeValue"
|
|
69
|
-
name="outcomeValue"
|
|
70
|
-
[(ngModel)]="outcomeValue"
|
|
71
|
-
placeholder="i.e. 1337.00"
|
|
72
|
-
/>
|
|
73
|
-
<button
|
|
74
|
-
type="button"
|
|
75
|
-
class="btn btn-primary mt-3"
|
|
76
|
-
(click)="submitOutcome()"
|
|
77
|
-
>
|
|
78
|
-
Submit
|
|
79
|
-
</button>
|
|
80
|
-
</fieldset>
|
|
81
|
-
|
|
82
|
-
<fieldset class="form-group col-sm">
|
|
83
|
-
<legend>Campaign</legend>
|
|
84
|
-
<p>
|
|
85
|
-
Campaigns are defined in <code>/sitecore/system/Marketing Control Panel/Campaigns</code>
|
|
86
|
-
</p>
|
|
87
|
-
<label htmlFor="campaign">Campaign GUID or Name</label>
|
|
88
|
-
<input type="text" class="form-control" id="campaign" [(ngModel)]="campaign" />
|
|
89
|
-
<button
|
|
90
|
-
type="button"
|
|
91
|
-
class="btn btn-primary mt-3"
|
|
92
|
-
(click)="triggerCampaign()"
|
|
93
|
-
>
|
|
94
|
-
Submit
|
|
95
|
-
</button>
|
|
96
|
-
</fieldset>
|
|
97
|
-
</div>
|
|
98
|
-
<div class="row">
|
|
99
|
-
<fieldset class="form-group col-sm">
|
|
100
|
-
<legend>Page View</legend>
|
|
101
|
-
<p>
|
|
102
|
-
Track arbitrary page views for custom routing or offline use. Note that Layout
|
|
103
|
-
Service tracks page views by default unless <code>tracking=false</code> is passed
|
|
104
|
-
in its query string.
|
|
105
|
-
</p>
|
|
106
|
-
<label htmlFor="pageId">Page Item GUID</label>
|
|
107
|
-
<input
|
|
108
|
-
type="text"
|
|
109
|
-
class="form-control"
|
|
110
|
-
id="pageId"
|
|
111
|
-
name="pageId"
|
|
112
|
-
[(ngModel)]="pageId"
|
|
113
|
-
placeholder="i.e. 11111111-1111-1111-1111-111111111111"
|
|
114
|
-
/>
|
|
115
|
-
<br />
|
|
116
|
-
<label htmlFor="pageUrl">Page URL</label>
|
|
117
|
-
<input
|
|
118
|
-
type="text"
|
|
119
|
-
class="form-control"
|
|
120
|
-
id="pageUrl"
|
|
121
|
-
name="pageUrl"
|
|
122
|
-
[(ngModel)]="pageUrl"
|
|
123
|
-
placeholder="i.e. /foo/bar"
|
|
124
|
-
/>
|
|
125
|
-
<button
|
|
126
|
-
type="button"
|
|
127
|
-
class="btn btn-primary mt-3"
|
|
128
|
-
(click)="submitPageView()"
|
|
129
|
-
>
|
|
130
|
-
Submit
|
|
131
|
-
</button>
|
|
132
|
-
</fieldset>
|
|
133
|
-
|
|
134
|
-
<fieldset class="form-group col-sm">
|
|
135
|
-
<legend>Batching</legend>
|
|
136
|
-
<p>
|
|
137
|
-
The tracking API supports pushing a whole batch of events in a single request.
|
|
138
|
-
This can be useful for queuing strategies or offline PWA usage.
|
|
139
|
-
</p>
|
|
140
|
-
<button
|
|
141
|
-
type="button"
|
|
142
|
-
class="btn btn-primary"
|
|
143
|
-
(click)="submitBatching()"
|
|
144
|
-
>
|
|
145
|
-
Submit Batch of Events
|
|
146
|
-
</button>
|
|
147
|
-
</fieldset>
|
|
148
|
-
</div>
|
|
149
|
-
<div class="row">
|
|
150
|
-
<fieldset class="form-group col-sm">
|
|
151
|
-
<legend>Interaction Control</legend>
|
|
152
|
-
<p>
|
|
153
|
-
Tracking data is not pushed into the xConnect service until your session ends on
|
|
154
|
-
the Sitecore server. Click this button to instantly end your session and flush the
|
|
155
|
-
data - great for debugging and testing.
|
|
156
|
-
</p>
|
|
157
|
-
<p class="alert alert-warning">
|
|
158
|
-
Note: By default <em>anonymous</em> contacts will not be shown in Experience
|
|
159
|
-
Profile. If your interactions are not showing up in Experience Profile, you may
|
|
160
|
-
need to
|
|
161
|
-
<a href="https://doc.sitecore.net/developers/xp/xconnect/xconnect-search-indexer/enable-anonymous-contact-indexing.html">
|
|
162
|
-
enable anonymous contact indexing.
|
|
163
|
-
</a>
|
|
164
|
-
</p>
|
|
165
|
-
<button
|
|
166
|
-
type="button"
|
|
167
|
-
class="btn btn-primary"
|
|
168
|
-
(click)="abandonSession()"
|
|
169
|
-
>
|
|
170
|
-
End Interaction
|
|
171
|
-
</button>
|
|
172
|
-
</fieldset>
|
|
173
|
-
</div>
|
|
174
|
-
</div>
|
|
175
|
-
</app-styleguide-specimen>
|
|
1
|
+
<app-styleguide-specimen [rendering]="rendering" e2eId="styleguide-tracking">
|
|
2
|
+
<p *ngIf="disconnectedMode">The tracking API is only available in connected, integrated, or headless modes.</p>
|
|
3
|
+
|
|
4
|
+
<div *ngIf="!disconnectedMode">
|
|
5
|
+
<p class="alert alert-warning">
|
|
6
|
+
Note: The JSS tracker API is disabled by default. Consult the <a href="https://jss.sitecore.com/docs/fundamentals/services/tracking">tracking documentation</a> to enable it.
|
|
7
|
+
</p>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<fieldset class="form-group col-sm">
|
|
10
|
+
<legend>Event</legend>
|
|
11
|
+
<p>
|
|
12
|
+
Events are defined in <code>/sitecore/system/Settings/Analytics/Page Events</code>
|
|
13
|
+
</p>
|
|
14
|
+
<label htmlFor="event">Event GUID or Name</label>
|
|
15
|
+
<input type="text" id="event" class="form-control" [(ngModel)]="event" />
|
|
16
|
+
<button
|
|
17
|
+
type="button"
|
|
18
|
+
class="btn btn-primary mt-3"
|
|
19
|
+
(click)="submitEvent()"
|
|
20
|
+
>
|
|
21
|
+
Submit
|
|
22
|
+
</button>
|
|
23
|
+
</fieldset>
|
|
24
|
+
|
|
25
|
+
<fieldset class="form-group col-sm">
|
|
26
|
+
<legend>Goal</legend>
|
|
27
|
+
<p>
|
|
28
|
+
Goals are defined in <code>/sitecore/system/Marketing Control Panel/Goals</code>
|
|
29
|
+
</p>
|
|
30
|
+
<label htmlFor="goal">Goal GUID or Name</label>
|
|
31
|
+
<input
|
|
32
|
+
type="text"
|
|
33
|
+
class="form-control"
|
|
34
|
+
id="goal"
|
|
35
|
+
name="goal"
|
|
36
|
+
[(ngModel)]="goal"
|
|
37
|
+
placeholder="i.e. Register"
|
|
38
|
+
/>
|
|
39
|
+
<button
|
|
40
|
+
type="button"
|
|
41
|
+
class="btn btn-primary mt-3"
|
|
42
|
+
(click)="submitGoal()"
|
|
43
|
+
>
|
|
44
|
+
Submit
|
|
45
|
+
</button>
|
|
46
|
+
</fieldset>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="row">
|
|
49
|
+
<fieldset class="form-group col-sm">
|
|
50
|
+
<legend>Outcome</legend>
|
|
51
|
+
<p>
|
|
52
|
+
Outcomes are defined in <code>/sitecore/system/Marketing Control Panel/Outcomes</code>
|
|
53
|
+
</p>
|
|
54
|
+
<label htmlFor="outcomeName">Outcome GUID or Name</label>
|
|
55
|
+
<input
|
|
56
|
+
type="text"
|
|
57
|
+
class="form-control"
|
|
58
|
+
id="outcomeName"
|
|
59
|
+
name="outcomeName"
|
|
60
|
+
[(ngModel)]="outcomeName"
|
|
61
|
+
placeholder="i.e. Marketing Lead"
|
|
62
|
+
/>
|
|
63
|
+
<br />
|
|
64
|
+
<label htmlFor="outcomeValue">Monetary Value (optional)</label>
|
|
65
|
+
<input
|
|
66
|
+
type="number"
|
|
67
|
+
class="form-control"
|
|
68
|
+
id="outcomeValue"
|
|
69
|
+
name="outcomeValue"
|
|
70
|
+
[(ngModel)]="outcomeValue"
|
|
71
|
+
placeholder="i.e. 1337.00"
|
|
72
|
+
/>
|
|
73
|
+
<button
|
|
74
|
+
type="button"
|
|
75
|
+
class="btn btn-primary mt-3"
|
|
76
|
+
(click)="submitOutcome()"
|
|
77
|
+
>
|
|
78
|
+
Submit
|
|
79
|
+
</button>
|
|
80
|
+
</fieldset>
|
|
81
|
+
|
|
82
|
+
<fieldset class="form-group col-sm">
|
|
83
|
+
<legend>Campaign</legend>
|
|
84
|
+
<p>
|
|
85
|
+
Campaigns are defined in <code>/sitecore/system/Marketing Control Panel/Campaigns</code>
|
|
86
|
+
</p>
|
|
87
|
+
<label htmlFor="campaign">Campaign GUID or Name</label>
|
|
88
|
+
<input type="text" class="form-control" id="campaign" [(ngModel)]="campaign" />
|
|
89
|
+
<button
|
|
90
|
+
type="button"
|
|
91
|
+
class="btn btn-primary mt-3"
|
|
92
|
+
(click)="triggerCampaign()"
|
|
93
|
+
>
|
|
94
|
+
Submit
|
|
95
|
+
</button>
|
|
96
|
+
</fieldset>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="row">
|
|
99
|
+
<fieldset class="form-group col-sm">
|
|
100
|
+
<legend>Page View</legend>
|
|
101
|
+
<p>
|
|
102
|
+
Track arbitrary page views for custom routing or offline use. Note that Layout
|
|
103
|
+
Service tracks page views by default unless <code>tracking=false</code> is passed
|
|
104
|
+
in its query string.
|
|
105
|
+
</p>
|
|
106
|
+
<label htmlFor="pageId">Page Item GUID</label>
|
|
107
|
+
<input
|
|
108
|
+
type="text"
|
|
109
|
+
class="form-control"
|
|
110
|
+
id="pageId"
|
|
111
|
+
name="pageId"
|
|
112
|
+
[(ngModel)]="pageId"
|
|
113
|
+
placeholder="i.e. 11111111-1111-1111-1111-111111111111"
|
|
114
|
+
/>
|
|
115
|
+
<br />
|
|
116
|
+
<label htmlFor="pageUrl">Page URL</label>
|
|
117
|
+
<input
|
|
118
|
+
type="text"
|
|
119
|
+
class="form-control"
|
|
120
|
+
id="pageUrl"
|
|
121
|
+
name="pageUrl"
|
|
122
|
+
[(ngModel)]="pageUrl"
|
|
123
|
+
placeholder="i.e. /foo/bar"
|
|
124
|
+
/>
|
|
125
|
+
<button
|
|
126
|
+
type="button"
|
|
127
|
+
class="btn btn-primary mt-3"
|
|
128
|
+
(click)="submitPageView()"
|
|
129
|
+
>
|
|
130
|
+
Submit
|
|
131
|
+
</button>
|
|
132
|
+
</fieldset>
|
|
133
|
+
|
|
134
|
+
<fieldset class="form-group col-sm">
|
|
135
|
+
<legend>Batching</legend>
|
|
136
|
+
<p>
|
|
137
|
+
The tracking API supports pushing a whole batch of events in a single request.
|
|
138
|
+
This can be useful for queuing strategies or offline PWA usage.
|
|
139
|
+
</p>
|
|
140
|
+
<button
|
|
141
|
+
type="button"
|
|
142
|
+
class="btn btn-primary"
|
|
143
|
+
(click)="submitBatching()"
|
|
144
|
+
>
|
|
145
|
+
Submit Batch of Events
|
|
146
|
+
</button>
|
|
147
|
+
</fieldset>
|
|
148
|
+
</div>
|
|
149
|
+
<div class="row">
|
|
150
|
+
<fieldset class="form-group col-sm">
|
|
151
|
+
<legend>Interaction Control</legend>
|
|
152
|
+
<p>
|
|
153
|
+
Tracking data is not pushed into the xConnect service until your session ends on
|
|
154
|
+
the Sitecore server. Click this button to instantly end your session and flush the
|
|
155
|
+
data - great for debugging and testing.
|
|
156
|
+
</p>
|
|
157
|
+
<p class="alert alert-warning">
|
|
158
|
+
Note: By default <em>anonymous</em> contacts will not be shown in Experience
|
|
159
|
+
Profile. If your interactions are not showing up in Experience Profile, you may
|
|
160
|
+
need to
|
|
161
|
+
<a href="https://doc.sitecore.net/developers/xp/xconnect/xconnect-search-indexer/enable-anonymous-contact-indexing.html">
|
|
162
|
+
enable anonymous contact indexing.
|
|
163
|
+
</a>
|
|
164
|
+
</p>
|
|
165
|
+
<button
|
|
166
|
+
type="button"
|
|
167
|
+
class="btn btn-primary"
|
|
168
|
+
(click)="abandonSession()"
|
|
169
|
+
>
|
|
170
|
+
End Interaction
|
|
171
|
+
</button>
|
|
172
|
+
</fieldset>
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
</app-styleguide-specimen>
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
<div
|
|
2
|
-
class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom"
|
|
3
|
-
>
|
|
4
|
-
<h5 class="my-0 me-md-auto fw-normal">
|
|
5
|
-
<a routerLink="/" class="text-dark" class="logo"></a>
|
|
6
|
-
</h5>
|
|
7
|
-
<nav class="my-2 my-md-0 me-md-3">
|
|
8
|
-
<a
|
|
9
|
-
class="p-2 text-dark"
|
|
10
|
-
href="https://jss.sitecore.com"
|
|
11
|
-
target="_blank"
|
|
12
|
-
rel="noopener noreferrer"
|
|
13
|
-
>
|
|
14
|
-
{{ 'Documentation' | translate }}
|
|
15
|
-
</a>
|
|
16
|
-
<a routerLink="/styleguide" class="p-2 text-dark">
|
|
17
|
-
{{ 'Styleguide' | translate }}
|
|
18
|
-
</a>
|
|
19
|
-
<a routerLink="/graphql" class="p-2 text-dark">
|
|
20
|
-
{{ 'GraphQL' | translate }}
|
|
21
|
-
</a>
|
|
22
|
-
</nav>
|
|
23
|
-
</div>
|
|
1
|
+
<div
|
|
2
|
+
class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom"
|
|
3
|
+
>
|
|
4
|
+
<h5 class="my-0 me-md-auto fw-normal">
|
|
5
|
+
<a routerLink="/" class="text-dark" class="logo"></a>
|
|
6
|
+
</h5>
|
|
7
|
+
<nav class="my-2 my-md-0 me-md-3">
|
|
8
|
+
<a
|
|
9
|
+
class="p-2 text-dark"
|
|
10
|
+
href="https://jss.sitecore.com"
|
|
11
|
+
target="_blank"
|
|
12
|
+
rel="noopener noreferrer"
|
|
13
|
+
>
|
|
14
|
+
{{ 'Documentation' | translate }}
|
|
15
|
+
</a>
|
|
16
|
+
<a routerLink="/styleguide" class="p-2 text-dark">
|
|
17
|
+
{{ 'Styleguide' | translate }}
|
|
18
|
+
</a>
|
|
19
|
+
<a routerLink="/graphql" class="p-2 text-dark">
|
|
20
|
+
{{ 'GraphQL' | translate }}
|
|
21
|
+
</a>
|
|
22
|
+
</nav>
|
|
23
|
+
</div>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<app-visitor-identification></app-visitor-identification>
|
|
3
|
-
</div>
|
|
1
|
+
<div>
|
|
2
|
+
<app-visitor-identification></app-visitor-identification>
|
|
3
|
+
</div>
|
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
# Angular for XM Cloud
|
|
2
|
-
|
|
3
|
-
> Sitecore JSS Angular App for XM Cloud. This feature is currently in public beta.
|
|
4
|
-
> If you encounter any issues or bugs, please submit a new issue in the [JSS GitHub Repo](https://github.com/Sitecore/jss)
|
|
5
|
-
|
|
6
|
-
[Documentation](https://doc.sitecore.com/xmc/en/developers/jss/latest/jss-xmc/introducing-sitecore-javascript-rendering-sdk.html)
|
|
7
|
-
|
|
8
|
-
This Single Page Application (SPA) built with Angular is designed to be fully compatible with XM Cloud, incorporating several key add-ons and features to streamline the development process and enable seamless integration.
|
|
9
|
-
|
|
10
|
-
The Angular XM Cloud integration consists of two parts:
|
|
11
|
-
- `XM Cloud Angular`: simplifies connecting the application to XM Cloud and configuring the integration of multiple composable Sitecore products, and provides out-of-the-box helper components.
|
|
12
|
-
- `XM Cloud Proxy`: Adds integration with XM Cloud for the JSS SPA applications and enables editing, personalization and component A/B/n testing support. See [XM Cloud Proxy](../node-xmcloud-proxy/) for more information.
|
|
13
|
-
|
|
14
|
-
The following key features are supported:
|
|
15
|
-
|
|
16
|
-
- `Context ID`: The Context ID environment variable simplifies setting up and configuring XM Cloud solutions. It's a unified identifier that maps to all your configured resources, such as content, sites, files, forms, and integration settings.
|
|
17
|
-
|
|
18
|
-
- `XM Cloud Pages editing integration`: full integration with Pages - the dynamic visual page editor of XM Cloud.
|
|
19
|
-
|
|
20
|
-
- `XM Cloud proxy personalization` with embedded personalization and component A/B/n testing.
|
|
21
|
-
|
|
22
|
-
- `Forms support`: consume and post XM Cloud Forms in JSS apps. Using Forms, marketers can create forms, collect data, and analyze form performance.
|
|
23
|
-
|
|
24
|
-
- `Internationalization` support.
|
|
25
|
-
|
|
26
|
-
> The following features and integrations are not supported by Angular and Proxy apps for XM Cloud:
|
|
27
|
-
> - Multisite
|
|
28
|
-
> - The XM Cloud Components application
|
|
29
|
-
> - BYOC components
|
|
30
|
-
> - SXA sitemap, redirects, error pages
|
|
31
|
-
> - Sitecore Experience Editor
|
|
32
|
-
|
|
33
|
-
## Getting Started
|
|
34
|
-
|
|
35
|
-
### Development
|
|
36
|
-
|
|
37
|
-
When building and running your app in connected (development) mode the proxy application is not needed.
|
|
38
|
-
|
|
39
|
-
Execute the following commands:
|
|
40
|
-
```shell
|
|
41
|
-
npm install
|
|
42
|
-
npm run build
|
|
43
|
-
npm run start:connected
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
> The following features are not supported in development mode:
|
|
47
|
-
> * personalization
|
|
48
|
-
> * server-side rendering
|
|
49
|
-
> * editing
|
|
50
|
-
|
|
51
|
-
### Production
|
|
52
|
-
|
|
53
|
-
To build and run in production mode you need to have your Angular app side by side with the [Node XM Cloud proxy](../node-xmcloud-proxy/).
|
|
54
|
-
|
|
55
|
-
Execute the following commands:
|
|
56
|
-
|
|
57
|
-
For the Angular app:
|
|
58
|
-
```shell
|
|
59
|
-
npm install
|
|
60
|
-
|
|
61
|
-
# It will build the angular app and copy the the resulting `/dist` folder into the specified proxy app folder
|
|
62
|
-
npm run build
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
For the Proxy app:
|
|
66
|
-
|
|
67
|
-
```shell
|
|
68
|
-
npm install
|
|
69
|
-
npm run start
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
For additional information on how to set up and run a SPA app in production mode against an XM Cloud instance you can check the [spa-starters monorepo](https://github.com/sitecorelabs/xmcloud-foundation-head/tree/main/headapps/spa-starter) in the XM Cloud Foundation Starter Kit.
|
|
73
|
-
|
|
74
|
-
## Environment Variables
|
|
75
|
-
|
|
76
|
-
The following environment variables can be used to configure the angular app. You can use the `.env` file located in the root of the app or set these directly in the environment (for example, in containers).
|
|
77
|
-
|
|
78
|
-
| Parameter | Description |
|
|
79
|
-
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
80
|
-
| `PROXY_BUILD_PATH` | Your XM Cloud Proxy server path is needed to build the app. The build output will be copied to the XM Cloud Proxy application path. Default value `<xmcloud_proxy_path>\dist`.
|
|
81
|
-
| `SITECORE_EDGE_CONTEXT_ID` | The Context ID, which covers many system configurations, is required for connecting to the XM Cloud back end. This is an XM Cloud system environment variable. When the application runs on the XM Cloud editing host, this value is always set to the preview Context ID. |
|
|
82
|
-
| `SITECORE_API_KEY` | The API key for GRAPH_QL_ENDPOINT authentication. It should be used in combination with SITECORE_API_HOST for local development when connecting to a local XM Cloud instance
|
|
83
|
-
| `SITECORE_API_HOST` | The API hostname, needed to build the application. This should be used in combination with SITECORE_API_KEY for local development. For example, https://<xmc_cm_host>.sitecorecloud.io. |
|
|
84
|
-
| `GRAPH_QL_ENDPOINT` | Your GraphQL Edge endpoint. This is typically optional. By default, the endpoint is calculated using the resolved Sitecore API hostname + the `graphQLEndpointPath` defined in your `package.json`. For a preview endpoint (a CM instance on XM Cloud or a local one), the value is <xmc_cm_host>/sitecore/api/graph/edge. |
|
|
85
|
-
| `SITECORE_SITE_NAME` | The name of your site. This variable overrides the config.appName defined in the package.json file. You can find this value in the Sites dashboard by opening the actions menu for a site and navigating to Settings > Developer settings. The default value is the name of your app. |
|
|
86
|
-
| `DEFAULT_LANGUAGE` | The default language of your app. The default value is `en` |
|
|
87
|
-
| `DEBUG` | Optional. Debug level for the application. Set the DEBUG environment variable to 'sitecore-jss:*' to see all logs. Refer to the [official docs](https://doc.sitecore.com/xmc/en/developers/jss/22/jss-xmc/debug-logging-in-jss-apps.html#namespaces) for all the available namespaces.
|
|
1
|
+
# Angular for XM Cloud
|
|
2
|
+
|
|
3
|
+
> Sitecore JSS Angular App for XM Cloud. This feature is currently in public beta.
|
|
4
|
+
> If you encounter any issues or bugs, please submit a new issue in the [JSS GitHub Repo](https://github.com/Sitecore/jss)
|
|
5
|
+
|
|
6
|
+
[Documentation](https://doc.sitecore.com/xmc/en/developers/jss/latest/jss-xmc/introducing-sitecore-javascript-rendering-sdk.html)
|
|
7
|
+
|
|
8
|
+
This Single Page Application (SPA) built with Angular is designed to be fully compatible with XM Cloud, incorporating several key add-ons and features to streamline the development process and enable seamless integration.
|
|
9
|
+
|
|
10
|
+
The Angular XM Cloud integration consists of two parts:
|
|
11
|
+
- `XM Cloud Angular`: simplifies connecting the application to XM Cloud and configuring the integration of multiple composable Sitecore products, and provides out-of-the-box helper components.
|
|
12
|
+
- `XM Cloud Proxy`: Adds integration with XM Cloud for the JSS SPA applications and enables editing, personalization and component A/B/n testing support. See [XM Cloud Proxy](../node-xmcloud-proxy/) for more information.
|
|
13
|
+
|
|
14
|
+
The following key features are supported:
|
|
15
|
+
|
|
16
|
+
- `Context ID`: The Context ID environment variable simplifies setting up and configuring XM Cloud solutions. It's a unified identifier that maps to all your configured resources, such as content, sites, files, forms, and integration settings.
|
|
17
|
+
|
|
18
|
+
- `XM Cloud Pages editing integration`: full integration with Pages - the dynamic visual page editor of XM Cloud.
|
|
19
|
+
|
|
20
|
+
- `XM Cloud proxy personalization` with embedded personalization and component A/B/n testing.
|
|
21
|
+
|
|
22
|
+
- `Forms support`: consume and post XM Cloud Forms in JSS apps. Using Forms, marketers can create forms, collect data, and analyze form performance.
|
|
23
|
+
|
|
24
|
+
- `Internationalization` support.
|
|
25
|
+
|
|
26
|
+
> The following features and integrations are not supported by Angular and Proxy apps for XM Cloud:
|
|
27
|
+
> - Multisite
|
|
28
|
+
> - The XM Cloud Components application
|
|
29
|
+
> - BYOC components
|
|
30
|
+
> - SXA sitemap, redirects, error pages
|
|
31
|
+
> - Sitecore Experience Editor
|
|
32
|
+
|
|
33
|
+
## Getting Started
|
|
34
|
+
|
|
35
|
+
### Development
|
|
36
|
+
|
|
37
|
+
When building and running your app in connected (development) mode the proxy application is not needed.
|
|
38
|
+
|
|
39
|
+
Execute the following commands:
|
|
40
|
+
```shell
|
|
41
|
+
npm install
|
|
42
|
+
npm run build
|
|
43
|
+
npm run start:connected
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
> The following features are not supported in development mode:
|
|
47
|
+
> * personalization
|
|
48
|
+
> * server-side rendering
|
|
49
|
+
> * editing
|
|
50
|
+
|
|
51
|
+
### Production
|
|
52
|
+
|
|
53
|
+
To build and run in production mode you need to have your Angular app side by side with the [Node XM Cloud proxy](../node-xmcloud-proxy/).
|
|
54
|
+
|
|
55
|
+
Execute the following commands:
|
|
56
|
+
|
|
57
|
+
For the Angular app:
|
|
58
|
+
```shell
|
|
59
|
+
npm install
|
|
60
|
+
|
|
61
|
+
# It will build the angular app and copy the the resulting `/dist` folder into the specified proxy app folder
|
|
62
|
+
npm run build
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
For the Proxy app:
|
|
66
|
+
|
|
67
|
+
```shell
|
|
68
|
+
npm install
|
|
69
|
+
npm run start
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
For additional information on how to set up and run a SPA app in production mode against an XM Cloud instance you can check the [spa-starters monorepo](https://github.com/sitecorelabs/xmcloud-foundation-head/tree/main/headapps/spa-starter) in the XM Cloud Foundation Starter Kit.
|
|
73
|
+
|
|
74
|
+
## Environment Variables
|
|
75
|
+
|
|
76
|
+
The following environment variables can be used to configure the angular app. You can use the `.env` file located in the root of the app or set these directly in the environment (for example, in containers).
|
|
77
|
+
|
|
78
|
+
| Parameter | Description |
|
|
79
|
+
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
80
|
+
| `PROXY_BUILD_PATH` | Your XM Cloud Proxy server path is needed to build the app. The build output will be copied to the XM Cloud Proxy application path. Default value `<xmcloud_proxy_path>\dist`.
|
|
81
|
+
| `SITECORE_EDGE_CONTEXT_ID` | The Context ID, which covers many system configurations, is required for connecting to the XM Cloud back end. This is an XM Cloud system environment variable. When the application runs on the XM Cloud editing host, this value is always set to the preview Context ID. |
|
|
82
|
+
| `SITECORE_API_KEY` | The API key for GRAPH_QL_ENDPOINT authentication. It should be used in combination with SITECORE_API_HOST for local development when connecting to a local XM Cloud instance
|
|
83
|
+
| `SITECORE_API_HOST` | The API hostname, needed to build the application. This should be used in combination with SITECORE_API_KEY for local development. For example, https://<xmc_cm_host>.sitecorecloud.io. |
|
|
84
|
+
| `GRAPH_QL_ENDPOINT` | Your GraphQL Edge endpoint. This is typically optional. By default, the endpoint is calculated using the resolved Sitecore API hostname + the `graphQLEndpointPath` defined in your `package.json`. For a preview endpoint (a CM instance on XM Cloud or a local one), the value is <xmc_cm_host>/sitecore/api/graph/edge. |
|
|
85
|
+
| `SITECORE_SITE_NAME` | The name of your site. This variable overrides the config.appName defined in the package.json file. You can find this value in the Sites dashboard by opening the actions menu for a site and navigating to Settings > Developer settings. The default value is the name of your app. |
|
|
86
|
+
| `DEFAULT_LANGUAGE` | The default language of your app. The default value is `en` |
|
|
87
|
+
| `DEBUG` | Optional. Debug level for the application. Set the DEBUG environment variable to 'sitecore-jss:*' to see all logs. Refer to the [official docs](https://doc.sitecore.com/xmc/en/developers/jss/22/jss-xmc/debug-logging-in-jss-apps.html#namespaces) for all the available namespaces.
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
{
|
|
2
|
-
"projects": {
|
|
3
|
-
"<%- appName %>": {
|
|
4
|
-
"architect": {
|
|
5
|
-
"build": {
|
|
6
|
-
"options": {
|
|
7
|
-
"styles": [
|
|
8
|
-
"src/styles.css",
|
|
9
|
-
"src/assets/styles/main.scss"
|
|
10
|
-
],
|
|
11
|
-
"stylePreprocessorOptions": {
|
|
12
|
-
"includePaths": ["src/assets/styles", "node_modules"]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"test": {
|
|
17
|
-
"options": {
|
|
18
|
-
"styles": ["src/styles.css", "src/assets/styles/main.scss"],
|
|
19
|
-
"stylePreprocessorOptions": {
|
|
20
|
-
"includePaths": ["src/assets/styles", "node_modules"]
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"schematics": {
|
|
28
|
-
"@schematics/angular:component": {
|
|
29
|
-
"prefix": "app",
|
|
30
|
-
"style": "scss"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"projects": {
|
|
3
|
+
"<%- appName %>": {
|
|
4
|
+
"architect": {
|
|
5
|
+
"build": {
|
|
6
|
+
"options": {
|
|
7
|
+
"styles": [
|
|
8
|
+
"src/styles.css",
|
|
9
|
+
"src/assets/styles/main.scss"
|
|
10
|
+
],
|
|
11
|
+
"stylePreprocessorOptions": {
|
|
12
|
+
"includePaths": ["src/assets/styles", "node_modules"]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"test": {
|
|
17
|
+
"options": {
|
|
18
|
+
"styles": ["src/styles.css", "src/assets/styles/main.scss"],
|
|
19
|
+
"stylePreprocessorOptions": {
|
|
20
|
+
"includePaths": ["src/assets/styles", "node_modules"]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"schematics": {
|
|
28
|
+
"@schematics/angular:component": {
|
|
29
|
+
"prefix": "app",
|
|
30
|
+
"style": "scss"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|