create-sitecore-jss 22.2.1 → 22.3.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/bin.js +35 -19
- package/dist/common/index.js +5 -3
- package/dist/common/processes/install.js +9 -2
- package/dist/common/processes/next.js +6 -3
- package/dist/common/processes/transform.js +18 -13
- package/dist/common/prompts/base.js +0 -25
- package/dist/common/prompts/proxy.js +35 -0
- package/dist/common/prompts/sxp.js +34 -0
- package/dist/common/utils/helpers.js +29 -19
- package/dist/init-runner.js +16 -11
- package/dist/initializers/angular/index.js +13 -0
- package/dist/initializers/angular/prompts.js +22 -1
- package/dist/initializers/angular-sxp/index.js +62 -0
- package/dist/initializers/angular-xmcloud/index.js +80 -0
- package/dist/initializers/nextjs/index.js +2 -2
- package/dist/initializers/nextjs/prompts.js +2 -0
- package/dist/initializers/nextjs/remove-dev-dependencies.js +2 -2
- package/dist/initializers/nextjs-multisite/index.js +1 -1
- package/dist/initializers/nextjs-styleguide/index.js +1 -1
- package/dist/initializers/nextjs-styleguide-tracking/index.js +1 -1
- package/dist/initializers/nextjs-sxa/index.js +1 -1
- package/dist/initializers/nextjs-xmcloud/index.js +1 -1
- package/dist/initializers/node-xmcloud-proxy/index.js +33 -0
- package/dist/initializers/react/index.js +3 -3
- package/dist/initializers/react/prompts.js +1 -1
- package/dist/initializers/react-native/prompts.js +1 -0
- package/dist/initializers/vue/prompts.js +1 -1
- package/dist/templates/angular/.env +4 -3
- package/dist/templates/angular/.eslintignore +3 -3
- package/dist/templates/angular/.eslintrc +66 -65
- package/dist/templates/angular/LICENSE.txt +202 -202
- package/dist/templates/angular/README.md +13 -53
- package/dist/templates/angular/angular.json +172 -177
- package/dist/templates/angular/e2e/tsconfig.e2e.json +15 -15
- package/dist/templates/angular/gitignore +52 -47
- package/dist/templates/angular/package.json +115 -127
- package/dist/templates/angular/proxy.conf.js +5 -23
- package/dist/templates/angular/scripts/bootstrap.ts +5 -24
- package/dist/templates/angular/scripts/config/index.ts +28 -0
- package/dist/templates/angular/scripts/config/plugins/computed.ts +21 -0
- package/dist/templates/angular/scripts/config/plugins/fallback.ts +22 -0
- package/dist/templates/angular/scripts/config/plugins/package-json.ts +22 -0
- package/dist/templates/angular/scripts/config/plugins/scjssconfig.ts +29 -0
- package/dist/templates/angular/scripts/generate-component-factory/index.ts +45 -0
- package/dist/templates/angular/scripts/generate-component-factory/plugins/component-factory.ts +147 -0
- package/dist/templates/angular/scripts/generate-component-factory/plugins/components.ts +19 -0
- package/dist/templates/angular/scripts/generate-component-factory/plugins/packages.ts +29 -0
- package/dist/templates/angular/scripts/generate-component-factory/template.ts +46 -0
- package/dist/templates/angular/scripts/generate-config.ts +71 -72
- package/dist/templates/angular/scripts/generate-plugins.ts +33 -0
- package/dist/templates/angular/scripts/temp/gitignore +2 -0
- package/dist/templates/angular/scripts/update-graphql-fragment-data.ts +21 -28
- package/dist/templates/angular/server.bundle.ts +3 -5
- package/dist/templates/angular/server.exports.ts +13 -0
- package/dist/templates/angular/src/app/JssState.ts +2 -9
- package/dist/templates/angular/src/app/app.component.html +1 -1
- package/dist/templates/angular/src/app/app.module.ts +5 -6
- package/dist/templates/angular/src/app/app.server.module.ts +9 -6
- package/dist/templates/angular/src/app/components/app-components.shared.module.ts +4 -19
- 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/i18n/jss-translation-client-loader.service.ts +15 -7
- package/dist/templates/angular/src/app/i18n/jss-translation-server-loader.service.ts +14 -2
- package/dist/templates/angular/src/app/jss-context.server-side.service.ts +4 -4
- package/dist/templates/angular/src/app/jss-context.service.ts +14 -11
- package/dist/templates/angular/src/app/jss-graphql.service.ts +7 -7
- package/dist/templates/angular/src/app/layout/jss-layout.service.ts +2 -2
- package/dist/templates/angular/src/app/lib/config.ts +16 -0
- package/dist/templates/angular/src/app/lib/dictionary-service-factory.ts +24 -13
- package/dist/templates/angular/src/app/lib/graphql-client-factory/config.ts +21 -0
- package/dist/templates/angular/src/app/lib/graphql-client-factory/index.ts +16 -0
- package/dist/templates/angular/src/app/lib/layout-service-factory.ts +20 -12
- package/dist/templates/angular/src/app/routing/layout/layout.component.html +17 -17
- package/dist/templates/angular/src/app/routing/layout/layout.component.ts +11 -11
- package/dist/templates/angular/src/app/routing/navigation/navigation.component.html +20 -21
- package/dist/templates/angular/src/app/routing/navigation/navigation.component.ts +1 -2
- package/dist/templates/angular/src/app/routing/not-found/not-found.component.html +7 -7
- package/dist/templates/angular/src/app/routing/routing.module.ts +14 -21
- package/dist/templates/angular/src/app/routing/scripts/scripts.component.html +1 -0
- package/dist/templates/angular/src/app/routing/scripts/scripts.component.ts +7 -0
- package/dist/templates/angular/src/app/routing/scripts/scripts.module.ts +8 -0
- 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 +2 -1
- package/dist/templates/angular/src/graphql-fragment-types.ts +0 -95
- 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 +22 -22
- package/dist/templates/angular/src/tsconfig.server.json +21 -21
- 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 +36 -31
- package/dist/templates/angular-sxp/.env +2 -0
- package/dist/templates/{angular → angular-sxp}/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
- package/dist/templates/{angular → angular-sxp}/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
- package/dist/templates/{angular → angular-sxp}/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
- package/dist/templates/{angular → angular-sxp}/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
- package/dist/templates/{angular → angular-sxp}/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
- package/dist/templates/{angular → angular-sxp}/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
- package/dist/templates/{angular → angular-sxp}/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
- package/dist/templates/{angular → angular-sxp}/data/dictionary/en.yml +4 -4
- package/dist/templates/{angular → angular-sxp}/data/dictionary/{{language}}.yml +4 -4
- package/dist/templates/{angular → angular-sxp}/data/routes/en.yml +61 -61
- package/dist/templates/{angular → angular-sxp}/data/routes/graphql/en.yml +27 -27
- package/dist/templates/{angular → angular-sxp}/data/routes/graphql/sample-1/en.yml +9 -9
- package/dist/templates/{angular → angular-sxp}/data/routes/graphql/sample-2/en.yml +9 -9
- package/dist/templates/{angular → angular-sxp}/data/routes/styleguide/custom-route-type/en.yml +12 -12
- package/dist/templates/{angular → angular-sxp}/data/routes/styleguide/en.yml +271 -271
- package/dist/templates/{angular → angular-sxp}/data/routes/styleguide/{{language}}.yml +25 -25
- package/dist/templates/{angular → angular-sxp}/data/routes/{{language}}.yml +4 -4
- package/dist/templates/angular-sxp/package.json +12 -0
- package/dist/templates/angular-sxp/proxy.conf.js +43 -0
- package/dist/templates/angular-sxp/scripts/config/plugins/disconnected.ts +29 -0
- package/dist/templates/{angular → angular-sxp}/sitecore/config/{{appName}}.config +90 -90
- package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/graph-ql-integrated-demo.sitecore.graphql +71 -71
- package/dist/templates/{angular → angular-sxp}/sitecore/gitignore +2 -2
- package/dist/templates/angular-sxp/src/app/components/app-components.shared.module.ts +35 -0
- package/dist/templates/{angular → angular-sxp}/src/app/components/graph-ql-connected-demo/graph-ql-connected-demo.component.graphql +69 -69
- package/dist/templates/{angular → angular-sxp}/src/app/components/graph-ql-connected-demo/graph-ql-connected-demo.component.html +55 -55
- package/dist/templates/{angular → angular-sxp}/src/app/components/graph-ql-integrated-demo/graph-ql-integrated-demo.component.html +47 -47
- package/dist/templates/{angular → angular-sxp}/src/app/components/graph-ql-layout/graph-ql-layout.component.html +22 -22
- package/dist/templates/{angular → angular-sxp}/src/app/components/graph-ql-layout/graph-ql-layout.component.ts +1 -1
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-angular-lazy-loading/styleguide-angular-lazy-loading.component.html +5 -5
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-component-params/styleguide-component-params.component.html +19 -19
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-custom-route-type/styleguide-custom-route-type.component.html +14 -14
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-edit-frame/styleguide-edit-frame.component.html +19 -19
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-checkbox/styleguide-field-usage-checkbox.component.html +11 -11
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-content-list/styleguide-field-usage-content-list.component.html +26 -26
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-custom/styleguide-field-usage-custom.component.html +4 -4
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-date/styleguide-field-usage-date.component.html +27 -27
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-file/styleguide-field-usage-file.component.html +10 -10
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-image/styleguide-field-usage-image.component.html +30 -30
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-item-link/styleguide-field-usage-item-link.component.html +17 -17
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-link/styleguide-field-usage-link.component.html +44 -44
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-number/styleguide-field-usage-number.component.html +11 -11
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-rich-text/styleguide-field-usage-rich-text.component.html +11 -11
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-text/styleguide-field-usage-text.component.html +13 -13
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-layout/styleguide-layout.component.html +20 -20
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-layout-reuse/styleguide-layout-reuse.component.html +52 -52
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-layout-tabs/styleguide-layout-tabs.component.html +37 -37
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-layout-tabs-tab/styleguide-layout-tabs-tab.component.html +12 -12
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-multilingual/styleguide-multilingual.component.html +15 -15
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-route-fields/styleguide-route-fields.component.html +8 -8
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-section/styleguide-section.component.html +7 -7
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-sitecore-context/styleguide-sitecore-context.component.html +3 -3
- package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-tracking/styleguide-tracking.component.html +175 -175
- package/dist/templates/{angular → angular-sxp}/src/app/jss-data-fetcher.service.ts +3 -1
- package/dist/templates/angular-sxp/src/app/routing/navigation/navigation.component.html +23 -0
- package/dist/templates/angular-sxp/src/app/routing/scripts/scripts.component.html +3 -0
- package/dist/templates/angular-sxp/src/app/routing/scripts/scripts.module.ts +9 -0
- package/dist/templates/{angular/src/app/routing → angular-sxp/src/app/routing/scripts}/visitor-identification/visitor-identification.component.ts +9 -3
- package/dist/templates/angular-sxp/src/graphql-fragment-types.ts +219 -0
- package/dist/templates/angular-xmcloud/.env +14 -0
- package/dist/templates/angular-xmcloud/README.md +55 -0
- package/dist/templates/angular-xmcloud/angular.json +33 -0
- package/dist/templates/angular-xmcloud/package.json +17 -0
- package/dist/templates/angular-xmcloud/scripts/bootstrap.ts +28 -0
- package/dist/templates/angular-xmcloud/scripts/config/plugins/xmcloud.ts +39 -0
- package/dist/templates/angular-xmcloud/scripts/generate-component-factory/plugins/packages.ts +34 -0
- package/dist/templates/angular-xmcloud/scripts/generate-component-factory/template.ts +57 -0
- package/dist/templates/angular-xmcloud/scripts/generate-metadata.ts +25 -0
- package/dist/templates/angular-xmcloud/scripts/proxy-build.ts +15 -0
- package/dist/templates/angular-xmcloud/server.exports.ts +25 -0
- package/dist/templates/angular-xmcloud/src/app/components/app-components.shared.module.ts +21 -0
- package/dist/templates/angular-xmcloud/src/app/components/column-splitter/column-splitter.component.html +5 -0
- package/dist/templates/angular-xmcloud/src/app/components/column-splitter/column-splitter.component.ts +40 -0
- package/dist/templates/angular-xmcloud/src/app/components/container/container.component.html +14 -0
- package/dist/templates/angular-xmcloud/src/app/components/container/container.component.ts +30 -0
- package/dist/templates/angular-xmcloud/src/app/components/image/image.component.html +36 -0
- package/dist/templates/angular-xmcloud/src/app/components/image/image.component.ts +67 -0
- package/dist/templates/angular-xmcloud/src/app/components/link-list/link-list.component.html +15 -0
- package/dist/templates/angular-xmcloud/src/app/components/link-list/link-list.component.ts +41 -0
- package/dist/templates/angular-xmcloud/src/app/components/navigation/navigation-item.component.html +23 -0
- package/dist/templates/angular-xmcloud/src/app/components/navigation/navigation-item.component.ts +65 -0
- package/dist/templates/angular-xmcloud/src/app/components/navigation/navigation.component.html +21 -0
- package/dist/templates/angular-xmcloud/src/app/components/navigation/navigation.component.ts +49 -0
- package/dist/templates/angular-xmcloud/src/app/components/page-content/page-content.component.html +5 -0
- package/dist/templates/angular-xmcloud/src/app/components/page-content/page-content.component.ts +39 -0
- package/dist/templates/angular-xmcloud/src/app/components/partial-design-dynamic-placeholder/partial-design-dynamic-placeholder.component.html +1 -0
- package/dist/templates/angular-xmcloud/src/app/components/partial-design-dynamic-placeholder/partial-design-dynamic-placeholder.component.ts +15 -0
- package/dist/templates/angular-xmcloud/src/app/components/promo/promo.component.html +21 -0
- package/dist/templates/angular-xmcloud/src/app/components/promo/promo.component.ts +13 -0
- package/dist/templates/angular-xmcloud/src/app/components/richtext/richtext.component.html +8 -0
- package/dist/templates/angular-xmcloud/src/app/components/richtext/richtext.component.ts +21 -0
- package/dist/templates/angular-xmcloud/src/app/components/row-splitter/row-splitter.component.html +11 -0
- package/dist/templates/angular-xmcloud/src/app/components/row-splitter/row-splitter.component.ts +35 -0
- package/dist/templates/angular-xmcloud/src/app/components/sxa.component.ts +15 -0
- package/dist/templates/angular-xmcloud/src/app/components/title/title.component.html +10 -0
- package/dist/templates/angular-xmcloud/src/app/components/title/title.component.ts +56 -0
- package/dist/templates/angular-xmcloud/src/app/jss-link.service.ts +55 -0
- package/dist/templates/angular-xmcloud/src/app/lib/config.ts +17 -0
- package/dist/templates/angular-xmcloud/src/app/lib/graphql-client-factory/config.ts +57 -0
- package/dist/templates/angular-xmcloud/src/app/routing/layout/layout.component.html +38 -0
- package/dist/templates/angular-xmcloud/src/app/routing/layout/layout.component.ts +104 -0
- package/dist/templates/angular-xmcloud/src/app/routing/scripts/cdp-page-view.component.ts +77 -0
- package/dist/templates/angular-xmcloud/src/app/routing/scripts/cloud-sdk-init.component.ts +48 -0
- package/dist/templates/angular-xmcloud/src/app/routing/scripts/scripts.component.html +5 -0
- package/dist/templates/angular-xmcloud/src/app/routing/scripts/scripts.module.ts +12 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_component.scss +48 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_container.scss +64 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_fonts.scss +3 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_footer.scss +31 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_header.scss +51 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_navigation.scss +150 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_promo.scss +58 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_rich-text.scss +11 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/_variables.scss +10 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/basic/main.scss +8 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/main.scss +14 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/_app.scss +103 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/_functions.scss +8 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/_mixins.scss +121 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/_vars.scss +3 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/vars/_colors.scss +283 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/vars/_fontSizes.scss +16 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/abstracts/vars/_margins.scss +11 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/fonts/_fonts.scss +1 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/fonts/index.scss +1 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/index.scss +3 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/links/_link-button.scss +26 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/links/index.scss +1 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/reset/_inputs.scss +58 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/reset/_links.scss +14 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/reset/_ui-datepicker.scss +7 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/richtext/_richtext-files-icons.scss +86 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/richtext/_richtext.scss +101 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/richtext/index.scss +2 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/typehead/_typehead.scss +95 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/base/typehead/index.scss +1 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-column-splitter.scss +14 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-container.scss +27 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-image.scss +18 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-navigation.scss +51 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-promo.scss +42 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/_component-richtext-content.scss +19 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_alignment.scss +26 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_boxed.scss +16 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_clearfix.scss +11 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_highlighted.scss +63 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_link-button.scss +16 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/_promoted-box.scss +3 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/common/index.scss +6 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/container/_bordered.scss +24 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/container/_title-row-box.scss +66 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/container/index.scss +1 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/image/_image-default-size.scss +6 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/image/index.scss +1 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/image-alignment/_image-left.scss +3 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/image-alignment/_image-right.scss +3 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/index.scss +17 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/layout/_acaindent.scss +5 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/layout/_background.scss +27 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/layout/index.scss +1 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/link-list/_component-link-list.scss +45 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/link-list/_list-vertical.scss +20 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/link-list/index.scss +2 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_navigation-fat.scss +58 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_navigation-main-horizontal-vertical.scss +176 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_navigation-mobile.scss +85 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_navigation-sidebar.scss +29 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/_sitemap-navigation.scss +20 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/navigation/index.scss +5 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/promo/_absolute-bottom-link.scss +8 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/promo/_promo-hero.scss +40 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/promo/_promo-shadow.scss +42 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/promo/index.scss +3 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/rich-text/_rich-text-lists.scss +63 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/rich-text/index.scss +1 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/spacing/_background-colors.scss +14 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/spacing/_indent.scss +13 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/spacing/index.scss +2 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/title/_component-title.scss +30 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/components/title/index.scss +1 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/main.scss +4 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/variants/index.scss +6 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/variants/link-list/index.scss +0 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/variants/navigation/index.scss +0 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/variants/page-content/index.scss +0 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/variants/promo/index.scss +0 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/variants/rich-text/index.scss +0 -0
- package/dist/templates/angular-xmcloud/src/assets/styles/sass/variants/title/index.scss +0 -0
- package/dist/templates/nextjs/.eslintrc +26 -26
- 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/config/plugins/fallback.ts +0 -1
- package/dist/templates/nextjs/scripts/generate-config.ts +8 -1
- 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 +37 -37
- 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/scripts/config/plugins/disconnected.ts +1 -0
- 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 -26
- 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-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 -0
- 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 -0
- package/dist/templates/node-headless-ssr-proxy/package.json +39 -39
- package/dist/templates/node-headless-ssr-proxy/src/config.ts +3 -3
- package/dist/templates/node-headless-ssr-proxy/src/error.html +200 -200
- package/dist/templates/node-headless-ssr-proxy/src/httpAgents.ts +2 -2
- package/dist/templates/node-headless-ssr-proxy/src/index.ts +9 -2
- package/dist/templates/node-headless-ssr-proxy/tsconfig.json +22 -22
- package/dist/templates/node-xmcloud-proxy/.env +25 -0
- package/dist/templates/node-xmcloud-proxy/README.md +130 -0
- package/dist/templates/node-xmcloud-proxy/gitignore +33 -0
- package/dist/templates/node-xmcloud-proxy/package.json +26 -0
- package/dist/templates/node-xmcloud-proxy/src/config.ts +91 -0
- package/dist/templates/node-xmcloud-proxy/src/index.ts +199 -0
- package/dist/templates/node-xmcloud-proxy/src/personalize.ts +34 -0
- package/dist/templates/node-xmcloud-proxy/src/types.ts +37 -0
- package/dist/templates/node-xmcloud-proxy/tsconfig.json +22 -0
- 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/package.json +5 -5
- package/dist/templates/react/public/index.html +35 -35
- package/dist/templates/react/scripts/generate-config.js +10 -3
- 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 +88 -90
- 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/scripts/generate-config.js +5 -0
- 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
- package/dist/templates/angular/scripts/generate-component-factory.ts +0 -166
- package/dist/templates/angular/src/app/lib/client-factory.ts +0 -28
- /package/dist/templates/{angular → angular-sxp}/data/component-content/gitignore +0 -0
- /package/dist/templates/{angular → angular-sxp}/data/content/gitignore +0 -0
- /package/dist/templates/{angular → angular-sxp}/data/media/files/jss.pdf +0 -0
- /package/dist/templates/{angular → angular-sxp}/data/media/img/jss_logo.png +0 -0
- /package/dist/templates/{angular → angular-sxp}/data/media/img/sc_logo.png +0 -0
- /package/dist/templates/{angular → angular-sxp}/scripts/disconnected-mode-proxy.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/scripts/lint-yml.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/component-content.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/Styleguide-Layout-Reuse.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/Styleguide-Layout-Tabs-Tab.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/Styleguide-Layout-Tabs.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/Styleguide-Layout.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/Styleguide-Multilingual.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/Styleguide-Section.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/content-block.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/graph-ql-connected-demo.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/graph-ql-integrated-demo.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/graph-ql-layout.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/styleguide-angular-lazy-loading.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/styleguide-component-params.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/styleguide-custom-route-type.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/styleguide-edit-frame.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/styleguide-field-usage-checkbox.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/styleguide-field-usage-content-list.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/styleguide-field-usage-custom.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/styleguide-field-usage-date.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/styleguide-field-usage-file.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/styleguide-field-usage-image.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/styleguide-field-usage-item-link.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/styleguide-field-usage-link.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/styleguide-field-usage-number.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/styleguide-field-usage-rich-text.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/styleguide-field-usage-text.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/styleguide-route-fields.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/styleguide-sitecore-context.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/components/styleguide-tracking.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/config.js +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/content.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/dictionary.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/placeholders.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/routes.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/templates/Styleguide-Explanatory-Component.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/templates/styleguide-content-list-template.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/templates/styleguide-edit-frame-list-item-template.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/definitions/templates/styleguide-item-link-template.sitecore.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/sitecore/pipelines/example.patch.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/graph-ql-connected-demo/graph-ql-connected-demo.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/graph-ql-integrated-demo/graph-ql-integrated-demo.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/shared/styleguide-specimen/styleguide-specimen.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-angular-lazy-loading/styleguide-angular-lazy-loading.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-angular-lazy-loading/styleguide-angular-lazy-loading.module.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-component-params/styleguide-component-params.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-custom-route-type/styleguide-custom-route-type.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-edit-frame/styleguide-edit-frame.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-checkbox/styleguide-field-usage-checkbox.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-content-list/styleguide-field-usage-content-list.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-custom/styleguide-field-usage-custom.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-date/styleguide-field-usage-date.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-file/styleguide-field-usage-file.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-image/styleguide-field-usage-image.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-item-link/styleguide-field-usage-item-link.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-link/styleguide-field-usage-link.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-number/styleguide-field-usage-number.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-rich-text/styleguide-field-usage-rich-text.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-field-usage-text/styleguide-field-usage-text.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-layout/styleguide-layout.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-layout-reuse/styleguide-layout-reuse.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-layout-tabs/styleguide-layout-tabs.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-layout-tabs-tab/styleguide-layout-tabs-tab.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-multilingual/styleguide-multilingual.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-route-fields/styleguide-route-fields.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-section/styleguide-section.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-sitecore-context/styleguide-sitecore-context.component.ts +0 -0
- /package/dist/templates/{angular → angular-sxp}/src/app/components/styleguide-tracking/styleguide-tracking.component.ts +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
When the app runs in disconnected mode, and Sitecore is not present, we need to give
|
|
3
|
+
the app copies of the Sitecore APIs it depends on (layout service, dictionary service, content service)
|
|
4
|
+
to talk to so that the app can run using the locally defined disconnected data.
|
|
5
|
+
|
|
6
|
+
When the app runs in connected mode, Sitecore is present and some of the requests should be
|
|
7
|
+
proxied to the Sitecore API
|
|
8
|
+
|
|
9
|
+
This is accomplished by spinning up a small Express server that mocks the APIs, and then
|
|
10
|
+
telling angular-cli to proxy requests to the API paths to this express instance.
|
|
11
|
+
|
|
12
|
+
*/
|
|
13
|
+
const constants = require('@sitecore-jss/sitecore-jss-angular/cjs').constants;
|
|
14
|
+
const environment = require('./src/environments/environment.js').environment;
|
|
15
|
+
|
|
16
|
+
const port = 3043;
|
|
17
|
+
|
|
18
|
+
const PROXY_CONFIG =
|
|
19
|
+
process.env.JSS_MODE === constants.JSS_MODE.DISCONNECTED
|
|
20
|
+
? [
|
|
21
|
+
{
|
|
22
|
+
context: ['/data', '/sitecore'],
|
|
23
|
+
target: `http://localhost:${port}`,
|
|
24
|
+
secure: false,
|
|
25
|
+
},
|
|
26
|
+
]
|
|
27
|
+
: [
|
|
28
|
+
{
|
|
29
|
+
context: [
|
|
30
|
+
// API endpoints
|
|
31
|
+
'/sitecore',
|
|
32
|
+
// media items
|
|
33
|
+
'/-',
|
|
34
|
+
// visitor identification
|
|
35
|
+
'/layouts',
|
|
36
|
+
],
|
|
37
|
+
target: environment.sitecoreApiHost,
|
|
38
|
+
secure: false,
|
|
39
|
+
changeOrigin: true,
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
module.exports = PROXY_CONFIG;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { JssConfig } from 'lib/config';
|
|
2
|
+
import { ConfigPlugin } from '..';
|
|
3
|
+
import { constants } from '@sitecore-jss/sitecore-jss-angular/cjs';
|
|
4
|
+
const chalk = require('chalk');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* This plugin will check if fetchwith graphgl is beeing used in disconnected mode and throw error if so
|
|
8
|
+
*/
|
|
9
|
+
class DisconnectedPlugin implements ConfigPlugin {
|
|
10
|
+
// should come before other plugins
|
|
11
|
+
order = 2;
|
|
12
|
+
|
|
13
|
+
async exec(config: JssConfig) {
|
|
14
|
+
const disconnected = process.env.JSS_MODE === constants.JSS_MODE.DISCONNECTED;
|
|
15
|
+
if (disconnected && process.env.FETCH_WITH === constants.FETCH_WITH.GRAPHQL) {
|
|
16
|
+
throw new Error(
|
|
17
|
+
chalk.red(
|
|
18
|
+
'GraphQL requests to Dictionary and Layout services are not supported in disconnected mode.'
|
|
19
|
+
)
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return Object.assign({}, config, {
|
|
24
|
+
sitecoreApiKey: config.sitecoreApiKey || 'no-api-key-set',
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const disconnectedPlugin = new DisconnectedPlugin();
|
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
JSS Sitecore Configuration Patch File
|
|
3
|
-
|
|
4
|
-
This configuration file registers the JSS site with Sitecore, and configures the Layout Service
|
|
5
|
-
to work with it. Config patches need to be deployed to the Sitecore server.
|
|
6
|
-
|
|
7
|
-
Normally `jss deploy config` can do this for local development. To manually deploy, or to deploy via CI,
|
|
8
|
-
this file can be placed in the `App_Config/Include` folder, or a subfolder of it, within the Sitecore site.
|
|
9
|
-
-->
|
|
10
|
-
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"
|
|
11
|
-
xmlns:set="http://www.sitecore.net/xmlconfig/set/"
|
|
12
|
-
xmlns:role="http://www.sitecore.net/xmlconfig/role/">
|
|
13
|
-
<sitecore>
|
|
14
|
-
<settings>
|
|
15
|
-
<!--
|
|
16
|
-
PROXY CONFIGURATION
|
|
17
|
-
When running JSS with the headless proxy (node-headless-ssr-proxy),
|
|
18
|
-
the original IP address of clients is obscured by the proxy.
|
|
19
|
-
This setting tells Sitecore to read the forwarded header the proxy sends,
|
|
20
|
-
thus making analytics track the correct original client IP address.
|
|
21
|
-
-->
|
|
22
|
-
<setting name="Analytics.ForwardedRequestHttpHeader" set:value="X-Forwarded-For" />
|
|
23
|
-
</settings>
|
|
24
|
-
<sites>
|
|
25
|
-
<!--
|
|
26
|
-
JSS Site Registration
|
|
27
|
-
This configures the site with Sitecore - i.e. host headers, item paths.
|
|
28
|
-
If your JSS app lives within an existing Sitecore site, this may not be necessary.
|
|
29
|
-
|
|
30
|
-
IMPORTANT: JSS sites ship in 'live mode', which makes development and testing easy,
|
|
31
|
-
but disables workflow and publishing. Before going to production, change the `database`
|
|
32
|
-
below to `web` instead of `master`.
|
|
33
|
-
-->
|
|
34
|
-
<site patch:before="site[@name='website']"
|
|
35
|
-
inherits="website"
|
|
36
|
-
name="<%- appName %>"
|
|
37
|
-
hostName="<%- hostName.replace(/^https?:\/\//, '') %>"
|
|
38
|
-
rootPath="/sitecore/content/<%- appName %>"
|
|
39
|
-
startItem="/home"
|
|
40
|
-
database="master" />
|
|
41
|
-
</sites>
|
|
42
|
-
<javaScriptServices>
|
|
43
|
-
<apps>
|
|
44
|
-
<!--
|
|
45
|
-
JSS App Registration
|
|
46
|
-
The JSS app needs to be registered in order to support layout service and import services.
|
|
47
|
-
|
|
48
|
-
There are many available attributes, and they inherit the defaults if not explicitly specified here.
|
|
49
|
-
Defaults are defined in `/App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config`
|
|
50
|
-
|
|
51
|
-
NOTE: graphQLEndpoint enables _Integrated GraphQL_. If not using integrated GraphQL, it can be removed.
|
|
52
|
-
|
|
53
|
-
NOTE: layoutServiceConfiguration should be set to "default" when using GraphQL Edge schema.
|
|
54
|
-
When using integrated GraphQL with Edge schema, a $language value is injected
|
|
55
|
-
since language is required in all Edge queries. "jss" configuration does not do this (which is backwards
|
|
56
|
-
compatible with JSS versions < 18.0.0).
|
|
57
|
-
-->
|
|
58
|
-
<app name="<%- appName %>"
|
|
59
|
-
layoutServiceConfiguration="default"
|
|
60
|
-
sitecorePath="/sitecore/content/<%- appName %>"
|
|
61
|
-
inherits="defaults"
|
|
62
|
-
useLanguageSpecificLayout="true"
|
|
63
|
-
graphQLEndpoint="/sitecore/api/graph/edge" />
|
|
64
|
-
</apps>
|
|
65
|
-
<!--
|
|
66
|
-
IMAGE RESIZING WHITELIST
|
|
67
|
-
Using Sitecore server-side media resizing (i.e. the `imageParams` or `srcSet` props on the `<Image/>` helper component)
|
|
68
|
-
could expose your Sitecore server to a denial-of-service attack by rescaling an image with many arbitrary dimensions.
|
|
69
|
-
In JSS resizing param sets that are unknown are rejected by a whitelist.
|
|
70
|
-
|
|
71
|
-
Sets of image sizing parameters that are used in app components must be whitelisted here.
|
|
72
|
-
If a param set is not whitelisted, the image will be returned _without resizing_.
|
|
73
|
-
|
|
74
|
-
To determine the image parameters being used, look at the query string on the `src` of the rendered image, i.e. '/img.jpg?mw=100&h=72' -> mw=100,h=72
|
|
75
|
-
Note: the parameter sets defined here are comma-delimited (,) instead of &-delimited like the query string. Multiple sets are endline-delimited.
|
|
76
|
-
-->
|
|
77
|
-
<allowedMediaParams>
|
|
78
|
-
<!-- XML element name is arbitary, useful for organizing and patching -->
|
|
79
|
-
<styleguide-image-sample>
|
|
80
|
-
mw=100,
|
|
81
|
-
mh=50
|
|
82
|
-
</styleguide-image-sample>
|
|
83
|
-
<styleguide-image-sample-adaptive>
|
|
84
|
-
mw=300
|
|
85
|
-
mw=100
|
|
86
|
-
</styleguide-image-sample-adaptive>
|
|
87
|
-
</allowedMediaParams>
|
|
88
|
-
</javaScriptServices>
|
|
89
|
-
</sitecore>
|
|
90
|
-
</configuration>
|
|
1
|
+
<!--
|
|
2
|
+
JSS Sitecore Configuration Patch File
|
|
3
|
+
|
|
4
|
+
This configuration file registers the JSS site with Sitecore, and configures the Layout Service
|
|
5
|
+
to work with it. Config patches need to be deployed to the Sitecore server.
|
|
6
|
+
|
|
7
|
+
Normally `jss deploy config` can do this for local development. To manually deploy, or to deploy via CI,
|
|
8
|
+
this file can be placed in the `App_Config/Include` folder, or a subfolder of it, within the Sitecore site.
|
|
9
|
+
-->
|
|
10
|
+
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"
|
|
11
|
+
xmlns:set="http://www.sitecore.net/xmlconfig/set/"
|
|
12
|
+
xmlns:role="http://www.sitecore.net/xmlconfig/role/">
|
|
13
|
+
<sitecore>
|
|
14
|
+
<settings>
|
|
15
|
+
<!--
|
|
16
|
+
PROXY CONFIGURATION
|
|
17
|
+
When running JSS with the headless proxy (node-headless-ssr-proxy),
|
|
18
|
+
the original IP address of clients is obscured by the proxy.
|
|
19
|
+
This setting tells Sitecore to read the forwarded header the proxy sends,
|
|
20
|
+
thus making analytics track the correct original client IP address.
|
|
21
|
+
-->
|
|
22
|
+
<setting name="Analytics.ForwardedRequestHttpHeader" set:value="X-Forwarded-For" />
|
|
23
|
+
</settings>
|
|
24
|
+
<sites>
|
|
25
|
+
<!--
|
|
26
|
+
JSS Site Registration
|
|
27
|
+
This configures the site with Sitecore - i.e. host headers, item paths.
|
|
28
|
+
If your JSS app lives within an existing Sitecore site, this may not be necessary.
|
|
29
|
+
|
|
30
|
+
IMPORTANT: JSS sites ship in 'live mode', which makes development and testing easy,
|
|
31
|
+
but disables workflow and publishing. Before going to production, change the `database`
|
|
32
|
+
below to `web` instead of `master`.
|
|
33
|
+
-->
|
|
34
|
+
<site patch:before="site[@name='website']"
|
|
35
|
+
inherits="website"
|
|
36
|
+
name="<%- appName %>"
|
|
37
|
+
hostName="<%- hostName.replace(/^https?:\/\//, '') %>"
|
|
38
|
+
rootPath="/sitecore/content/<%- appName %>"
|
|
39
|
+
startItem="/home"
|
|
40
|
+
database="master" />
|
|
41
|
+
</sites>
|
|
42
|
+
<javaScriptServices>
|
|
43
|
+
<apps>
|
|
44
|
+
<!--
|
|
45
|
+
JSS App Registration
|
|
46
|
+
The JSS app needs to be registered in order to support layout service and import services.
|
|
47
|
+
|
|
48
|
+
There are many available attributes, and they inherit the defaults if not explicitly specified here.
|
|
49
|
+
Defaults are defined in `/App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config`
|
|
50
|
+
|
|
51
|
+
NOTE: graphQLEndpoint enables _Integrated GraphQL_. If not using integrated GraphQL, it can be removed.
|
|
52
|
+
|
|
53
|
+
NOTE: layoutServiceConfiguration should be set to "default" when using GraphQL Edge schema.
|
|
54
|
+
When using integrated GraphQL with Edge schema, a $language value is injected
|
|
55
|
+
since language is required in all Edge queries. "jss" configuration does not do this (which is backwards
|
|
56
|
+
compatible with JSS versions < 18.0.0).
|
|
57
|
+
-->
|
|
58
|
+
<app name="<%- appName %>"
|
|
59
|
+
layoutServiceConfiguration="default"
|
|
60
|
+
sitecorePath="/sitecore/content/<%- appName %>"
|
|
61
|
+
inherits="defaults"
|
|
62
|
+
useLanguageSpecificLayout="true"
|
|
63
|
+
graphQLEndpoint="/sitecore/api/graph/edge" />
|
|
64
|
+
</apps>
|
|
65
|
+
<!--
|
|
66
|
+
IMAGE RESIZING WHITELIST
|
|
67
|
+
Using Sitecore server-side media resizing (i.e. the `imageParams` or `srcSet` props on the `<Image/>` helper component)
|
|
68
|
+
could expose your Sitecore server to a denial-of-service attack by rescaling an image with many arbitrary dimensions.
|
|
69
|
+
In JSS resizing param sets that are unknown are rejected by a whitelist.
|
|
70
|
+
|
|
71
|
+
Sets of image sizing parameters that are used in app components must be whitelisted here.
|
|
72
|
+
If a param set is not whitelisted, the image will be returned _without resizing_.
|
|
73
|
+
|
|
74
|
+
To determine the image parameters being used, look at the query string on the `src` of the rendered image, i.e. '/img.jpg?mw=100&h=72' -> mw=100,h=72
|
|
75
|
+
Note: the parameter sets defined here are comma-delimited (,) instead of &-delimited like the query string. Multiple sets are endline-delimited.
|
|
76
|
+
-->
|
|
77
|
+
<allowedMediaParams>
|
|
78
|
+
<!-- XML element name is arbitary, useful for organizing and patching -->
|
|
79
|
+
<styleguide-image-sample>
|
|
80
|
+
mw=100,
|
|
81
|
+
mh=50
|
|
82
|
+
</styleguide-image-sample>
|
|
83
|
+
<styleguide-image-sample-adaptive>
|
|
84
|
+
mw=300
|
|
85
|
+
mw=100
|
|
86
|
+
</styleguide-image-sample-adaptive>
|
|
87
|
+
</allowedMediaParams>
|
|
88
|
+
</javaScriptServices>
|
|
89
|
+
</sitecore>
|
|
90
|
+
</configuration>
|
|
@@ -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
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
5
|
+
import { RouterModule } from '@angular/router';
|
|
6
|
+
import { StyleguideSpecimenComponent } from './shared/styleguide-specimen/styleguide-specimen.component';
|
|
7
|
+
import { JssModule } from '@sitecore-jss/sitecore-jss-angular';
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
This module is imported by the generated app-components.module.ts.
|
|
11
|
+
You can use this module to provide shared Angular components that are not
|
|
12
|
+
JSS components, etc to the generated module.
|
|
13
|
+
|
|
14
|
+
Don't want code generation? See ./.gitignore for instructions to turn it off.
|
|
15
|
+
*/
|
|
16
|
+
@NgModule({
|
|
17
|
+
imports: [
|
|
18
|
+
CommonModule,
|
|
19
|
+
TranslateModule,
|
|
20
|
+
RouterModule,
|
|
21
|
+
JssModule,
|
|
22
|
+
FormsModule,
|
|
23
|
+
],
|
|
24
|
+
exports: [
|
|
25
|
+
CommonModule,
|
|
26
|
+
TranslateModule,
|
|
27
|
+
RouterModule,
|
|
28
|
+
FormsModule,
|
|
29
|
+
StyleguideSpecimenComponent
|
|
30
|
+
],
|
|
31
|
+
declarations: [
|
|
32
|
+
StyleguideSpecimenComponent
|
|
33
|
+
],
|
|
34
|
+
})
|
|
35
|
+
export class AppComponentsSharedModule { }
|
|
@@ -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
|
+
}
|