create-sitecore-jss 22.9.1-canary.2 → 22.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/LICENSE.MD +202 -202
  2. package/README.md +10 -10
  3. package/dist/templates/angular/src/assets/images/sc_logo.svg +52 -52
  4. package/dist/templates/angular-sxp/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  5. package/dist/templates/angular-sxp/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  6. package/dist/templates/angular-sxp/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  7. package/dist/templates/angular-sxp/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  8. package/dist/templates/angular-sxp/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  9. package/dist/templates/angular-sxp/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  10. package/dist/templates/angular-sxp/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  11. package/dist/templates/angular-sxp/data/dictionary/en.yml +4 -4
  12. package/dist/templates/angular-sxp/data/dictionary/{{language}}.yml +4 -4
  13. package/dist/templates/angular-sxp/data/routes/en.yml +61 -61
  14. package/dist/templates/angular-sxp/data/routes/graphql/en.yml +27 -27
  15. package/dist/templates/angular-sxp/data/routes/graphql/sample-1/en.yml +9 -9
  16. package/dist/templates/angular-sxp/data/routes/graphql/sample-2/en.yml +9 -9
  17. package/dist/templates/angular-sxp/data/routes/styleguide/custom-route-type/en.yml +12 -12
  18. package/dist/templates/angular-sxp/data/routes/styleguide/en.yml +271 -271
  19. package/dist/templates/angular-sxp/data/routes/styleguide/{{language}}.yml +25 -25
  20. package/dist/templates/angular-sxp/data/routes/{{language}}.yml +4 -4
  21. package/dist/templates/angular-sxp/sitecore/config/{{appName}}.config +90 -90
  22. package/dist/templates/angular-sxp/sitecore/definitions/components/graph-ql-integrated-demo.sitecore.graphql +71 -71
  23. package/dist/templates/angular-sxp/sitecore/gitignore +2 -2
  24. package/dist/templates/nextjs/public/sc_logo.svg +52 -52
  25. package/dist/templates/nextjs-styleguide/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  26. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  27. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  28. package/dist/templates/nextjs-styleguide/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  29. package/dist/templates/nextjs-styleguide/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  30. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  31. package/dist/templates/nextjs-styleguide/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  32. package/dist/templates/nextjs-styleguide/data/dictionary/en.yml +4 -4
  33. package/dist/templates/nextjs-styleguide/data/dictionary/{{language}}.yml +4 -4
  34. package/dist/templates/nextjs-styleguide/data/routes/en.yml +63 -63
  35. package/dist/templates/nextjs-styleguide/data/routes/graphql/en.yml +27 -27
  36. package/dist/templates/nextjs-styleguide/data/routes/graphql/sample-1/en.yml +9 -9
  37. package/dist/templates/nextjs-styleguide/data/routes/graphql/sample-2/en.yml +9 -9
  38. package/dist/templates/nextjs-styleguide/data/routes/styleguide/custom-route-type/en.yml +12 -12
  39. package/dist/templates/nextjs-styleguide/data/routes/styleguide/en.yml +259 -259
  40. package/dist/templates/nextjs-styleguide/data/routes/styleguide/{{language}}.yml +25 -25
  41. package/dist/templates/nextjs-styleguide/data/routes/{{language}}.yml +4 -4
  42. package/dist/templates/nextjs-styleguide-tracking/data/dictionary/en.yml +5 -5
  43. package/dist/templates/nextjs-styleguide-tracking/data/routes/tracking/en.yml +8 -8
  44. package/dist/templates/nextjs-sxa/src/assets/sass/components/_component-column-splitter.scss +14 -14
  45. package/dist/templates/nextjs-sxa/src/assets/sass/components/promo/_promo-shadow.scss +42 -42
  46. package/dist/templates/react/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  47. package/dist/templates/react/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  48. package/dist/templates/react/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  49. package/dist/templates/react/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  50. package/dist/templates/react/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  51. package/dist/templates/react/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  52. package/dist/templates/react/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  53. package/dist/templates/react/data/dictionary/en.yml +4 -4
  54. package/dist/templates/react/data/dictionary/{{language}}.yml +4 -4
  55. package/dist/templates/react/data/routes/en.yml +61 -61
  56. package/dist/templates/react/data/routes/graphql/en.yml +27 -27
  57. package/dist/templates/react/data/routes/graphql/sample-1/en.yml +9 -9
  58. package/dist/templates/react/data/routes/graphql/sample-2/en.yml +9 -9
  59. package/dist/templates/react/data/routes/styleguide/custom-route-type/en.yml +12 -12
  60. package/dist/templates/react/data/routes/styleguide/en.yml +263 -263
  61. package/dist/templates/react/data/routes/styleguide/{{language}}.yml +26 -26
  62. package/dist/templates/react/data/routes/{{language}}.yml +4 -4
  63. package/dist/templates/react-native/.buckconfig +6 -6
  64. package/dist/templates/react-native/.eslintrc +74 -74
  65. package/dist/templates/react-native/.gitattributes +1 -1
  66. package/dist/templates/react-native/.prettierrc +9 -9
  67. package/dist/templates/react-native/.vscode/launch.json +42 -42
  68. package/dist/templates/react-native/.vscode/settings.json +1 -1
  69. package/dist/templates/react-native/LICENSE.txt +202 -202
  70. package/dist/templates/react-native/README.MD +115 -115
  71. package/dist/templates/react-native/android/app/BUCK +55 -55
  72. package/dist/templates/react-native/android/app/build.gradle +201 -201
  73. package/dist/templates/react-native/android/app/build_defs.bzl +19 -19
  74. package/dist/templates/react-native/android/app/proguard-rules.pro +10 -10
  75. package/dist/templates/react-native/android/app/src/debug/AndroidManifest.xml +8 -8
  76. package/dist/templates/react-native/android/app/src/main/AndroidManifest.xml +26 -26
  77. package/dist/templates/react-native/android/app/src/main/java/com/{{appName}}/MainActivity.java +15 -15
  78. package/dist/templates/react-native/android/app/src/main/java/com/{{appName}}/MainApplication.java +74 -74
  79. package/dist/templates/react-native/android/app/src/main/res/values/strings.xml +3 -3
  80. package/dist/templates/react-native/android/app/src/main/res/values/styles.xml +9 -9
  81. package/dist/templates/react-native/android/build.gradle +38 -38
  82. package/dist/templates/react-native/android/gradle/wrapper/gradle-wrapper.properties +5 -5
  83. package/dist/templates/react-native/android/gradle.properties +21 -21
  84. package/dist/templates/react-native/android/gradlew +188 -188
  85. package/dist/templates/react-native/android/gradlew.bat +100 -100
  86. package/dist/templates/react-native/android/settings.gradle +3 -3
  87. package/dist/templates/react-native/app.json +3 -3
  88. package/dist/templates/react-native/assets/img/sc_logo.svg +52 -52
  89. package/dist/templates/react-native/data/content/Styleguide/ItemLinkField/Item1/en.json +10 -10
  90. package/dist/templates/react-native/data/routes/en.json +22 -22
  91. package/dist/templates/react-native/data/routes/styleguide/en.json +227 -227
  92. package/dist/templates/react-native/data/routes/styleguide/{{language}}.json +31 -31
  93. package/dist/templates/react-native/data/routes/{{language}}.json +7 -7
  94. package/dist/templates/react-native/gitignore +60 -60
  95. package/dist/templates/react-native/ios/Podfile +53 -53
  96. package/dist/templates/react-native/ios/{{appName}}/AppDelegate.h +15 -15
  97. package/dist/templates/react-native/ios/{{appName}}/AppDelegate.m +42 -42
  98. package/dist/templates/react-native/ios/{{appName}}/Base.lproj/LaunchScreen.xib +42 -42
  99. package/dist/templates/react-native/ios/{{appName}}/Images.xcassets/AppIcon.appiconset/Contents.json +38 -38
  100. package/dist/templates/react-native/ios/{{appName}}/Images.xcassets/Contents.json +6 -6
  101. package/dist/templates/react-native/ios/{{appName}}/Info.plist +57 -57
  102. package/dist/templates/react-native/ios/{{appName}}/main.m +16 -16
  103. package/dist/templates/react-native/ios/{{appName}}-tvOS/Info.plist +53 -53
  104. package/dist/templates/react-native/ios/{{appName}}-tvOSTests/Info.plist +24 -24
  105. package/dist/templates/react-native/ios/{{appName}}.xcodeproj/xcshareddata/xcschemes/BasicSampleReactNative-tvOS.xcscheme +129 -129
  106. package/dist/templates/react-native/ios/{{appName}}.xcodeproj/xcshareddata/xcschemes/BasicSampleReactNative.xcscheme +129 -129
  107. package/dist/templates/react-native/ios/{{appName}}Tests/BasicSampleReactNativeTests.m +72 -72
  108. package/dist/templates/react-native/ios/{{appName}}Tests/Info.plist +24 -24
  109. package/dist/templates/react-native/package.json +78 -78
  110. package/dist/templates/react-native/sitecore/config/{{appName}}.config +47 -47
  111. package/dist/templates/react-native/sitecore/gitignore +2 -2
  112. package/dist/templates/vue/data/component-content/Styleguide/ContentReuse/LoremIpsumContentBlock/en.yml +9 -9
  113. package/dist/templates/vue/data/content/Styleguide/ContentListField/Item1/en.yml +6 -6
  114. package/dist/templates/vue/data/content/Styleguide/ContentListField/Item2/en.yml +6 -6
  115. package/dist/templates/vue/data/content/Styleguide/EditFrameDemo/Item1/en.yml +6 -6
  116. package/dist/templates/vue/data/content/Styleguide/EditFrameDemo/Item2/en.yml +6 -6
  117. package/dist/templates/vue/data/content/Styleguide/ItemLinkField/Item1/en.yml +6 -6
  118. package/dist/templates/vue/data/content/Styleguide/ItemLinkField/Item2/en.yml +6 -6
  119. package/dist/templates/vue/data/dictionary/en.yml +7 -7
  120. package/dist/templates/vue/data/dictionary/{{language}}.yml +7 -7
  121. package/dist/templates/vue/data/routes/en.yml +63 -63
  122. package/dist/templates/vue/data/routes/graphql/en.yml +34 -34
  123. package/dist/templates/vue/data/routes/graphql/sample-1/en.yml +9 -9
  124. package/dist/templates/vue/data/routes/graphql/sample-2/en.yml +9 -9
  125. package/dist/templates/vue/data/routes/styleguide/custom-route-type/en.yml +12 -12
  126. package/dist/templates/vue/data/routes/styleguide/en.yml +264 -264
  127. package/dist/templates/vue/data/routes/styleguide/{{language}}.yml +26 -26
  128. package/dist/templates/vue/data/routes/{{language}}.yml +4 -4
  129. package/dist/templates/vue/public/img/icons/safari-pinned-tab.svg +75 -75
  130. package/dist/templates/vue/src/assets/sc_logo.svg +52 -52
  131. package/package.json +2 -2
@@ -1,74 +1,74 @@
1
- package com.<%- appName %>;
2
-
3
- import android.app.Application;
4
- import android.content.Context;
5
- import com.facebook.react.PackageList;
6
- import com.facebook.react.ReactApplication;
7
- import com.facebook.react.ReactNativeHost;
8
- import com.facebook.react.ReactPackage;
9
- import com.facebook.soloader.SoLoader;
10
- import java.lang.reflect.InvocationTargetException;
11
- import java.util.List;
12
-
13
- public class MainApplication extends Application implements ReactApplication {
14
-
15
- private final ReactNativeHost mReactNativeHost =
16
- new ReactNativeHost(this) {
17
- @Override
18
- public boolean getUseDeveloperSupport() {
19
- return BuildConfig.DEBUG;
20
- }
21
-
22
- @Override
23
- protected List<ReactPackage> getPackages() {
24
- @SuppressWarnings("UnnecessaryLocalVariable")
25
- List<ReactPackage> packages = new PackageList(this).getPackages();
26
- // Packages that cannot be autolinked yet can be added manually here, for example:
27
- // packages.add(new MyReactNativePackage());
28
- return packages;
29
- }
30
-
31
- @Override
32
- protected String getJSMainModuleName() {
33
- return "index";
34
- }
35
- };
36
-
37
- @Override
38
- public ReactNativeHost getReactNativeHost() {
39
- return mReactNativeHost;
40
- }
41
-
42
- @Override
43
- public void onCreate() {
44
- super.onCreate();
45
- SoLoader.init(this, /* native exopackage */ false);
46
- initializeFlipper(this); // Remove this line if you don't want Flipper enabled
47
- }
48
-
49
- /**
50
- * Loads Flipper in React Native templates.
51
- *
52
- * @param context
53
- */
54
- private static void initializeFlipper(Context context) {
55
- if (BuildConfig.DEBUG) {
56
- try {
57
- /*
58
- We use reflection here to pick up the class that initializes Flipper,
59
- since Flipper library is not available in release mode
60
- */
61
- Class<?> aClass = Class.forName("com.facebook.flipper.ReactNativeFlipper");
62
- aClass.getMethod("initializeFlipper", Context.class).invoke(null, context);
63
- } catch (ClassNotFoundException e) {
64
- e.printStackTrace();
65
- } catch (NoSuchMethodException e) {
66
- e.printStackTrace();
67
- } catch (IllegalAccessException e) {
68
- e.printStackTrace();
69
- } catch (InvocationTargetException e) {
70
- e.printStackTrace();
71
- }
72
- }
73
- }
74
- }
1
+ package com.<%- appName %>;
2
+
3
+ import android.app.Application;
4
+ import android.content.Context;
5
+ import com.facebook.react.PackageList;
6
+ import com.facebook.react.ReactApplication;
7
+ import com.facebook.react.ReactNativeHost;
8
+ import com.facebook.react.ReactPackage;
9
+ import com.facebook.soloader.SoLoader;
10
+ import java.lang.reflect.InvocationTargetException;
11
+ import java.util.List;
12
+
13
+ public class MainApplication extends Application implements ReactApplication {
14
+
15
+ private final ReactNativeHost mReactNativeHost =
16
+ new ReactNativeHost(this) {
17
+ @Override
18
+ public boolean getUseDeveloperSupport() {
19
+ return BuildConfig.DEBUG;
20
+ }
21
+
22
+ @Override
23
+ protected List<ReactPackage> getPackages() {
24
+ @SuppressWarnings("UnnecessaryLocalVariable")
25
+ List<ReactPackage> packages = new PackageList(this).getPackages();
26
+ // Packages that cannot be autolinked yet can be added manually here, for example:
27
+ // packages.add(new MyReactNativePackage());
28
+ return packages;
29
+ }
30
+
31
+ @Override
32
+ protected String getJSMainModuleName() {
33
+ return "index";
34
+ }
35
+ };
36
+
37
+ @Override
38
+ public ReactNativeHost getReactNativeHost() {
39
+ return mReactNativeHost;
40
+ }
41
+
42
+ @Override
43
+ public void onCreate() {
44
+ super.onCreate();
45
+ SoLoader.init(this, /* native exopackage */ false);
46
+ initializeFlipper(this); // Remove this line if you don't want Flipper enabled
47
+ }
48
+
49
+ /**
50
+ * Loads Flipper in React Native templates.
51
+ *
52
+ * @param context
53
+ */
54
+ private static void initializeFlipper(Context context) {
55
+ if (BuildConfig.DEBUG) {
56
+ try {
57
+ /*
58
+ We use reflection here to pick up the class that initializes Flipper,
59
+ since Flipper library is not available in release mode
60
+ */
61
+ Class<?> aClass = Class.forName("com.facebook.flipper.ReactNativeFlipper");
62
+ aClass.getMethod("initializeFlipper", Context.class).invoke(null, context);
63
+ } catch (ClassNotFoundException e) {
64
+ e.printStackTrace();
65
+ } catch (NoSuchMethodException e) {
66
+ e.printStackTrace();
67
+ } catch (IllegalAccessException e) {
68
+ e.printStackTrace();
69
+ } catch (InvocationTargetException e) {
70
+ e.printStackTrace();
71
+ }
72
+ }
73
+ }
74
+ }
@@ -1,3 +1,3 @@
1
- <resources>
2
- <string name="app_name"><%- helper.getPascalCaseName(appName) %></string>
3
- </resources>
1
+ <resources>
2
+ <string name="app_name"><%- helper.getPascalCaseName(appName) %></string>
3
+ </resources>
@@ -1,9 +1,9 @@
1
- <resources>
2
-
3
- <!-- Base application theme. -->
4
- <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
5
- <!-- Customize your theme here. -->
6
- <item name="android:textColor">#000000</item>
7
- </style>
8
-
9
- </resources>
1
+ <resources>
2
+
3
+ <!-- Base application theme. -->
4
+ <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
5
+ <!-- Customize your theme here. -->
6
+ <item name="android:textColor">#000000</item>
7
+ </style>
8
+
9
+ </resources>
@@ -1,38 +1,38 @@
1
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
2
-
3
- buildscript {
4
- ext {
5
- buildToolsVersion = "28.0.3"
6
- minSdkVersion = 16
7
- compileSdkVersion = 28
8
- targetSdkVersion = 28
9
- }
10
- repositories {
11
- google()
12
- jcenter()
13
- }
14
- dependencies {
15
- classpath("com.android.tools.build:gradle:3.4.2")
16
-
17
- // NOTE: Do not place your application dependencies here; they belong
18
- // in the individual module build.gradle files
19
- }
20
- }
21
-
22
- allprojects {
23
- repositories {
24
- mavenLocal()
25
- maven {
26
- // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
27
- url("$rootDir/../node_modules/react-native/android")
28
- }
29
- maven {
30
- // Android JSC is installed from npm
31
- url("$rootDir/../node_modules/jsc-android/dist")
32
- }
33
-
34
- google()
35
- jcenter()
36
- maven { url 'https://jitpack.io' }
37
- }
38
- }
1
+ // Top-level build file where you can add configuration options common to all sub-projects/modules.
2
+
3
+ buildscript {
4
+ ext {
5
+ buildToolsVersion = "28.0.3"
6
+ minSdkVersion = 16
7
+ compileSdkVersion = 28
8
+ targetSdkVersion = 28
9
+ }
10
+ repositories {
11
+ google()
12
+ jcenter()
13
+ }
14
+ dependencies {
15
+ classpath("com.android.tools.build:gradle:3.4.2")
16
+
17
+ // NOTE: Do not place your application dependencies here; they belong
18
+ // in the individual module build.gradle files
19
+ }
20
+ }
21
+
22
+ allprojects {
23
+ repositories {
24
+ mavenLocal()
25
+ maven {
26
+ // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
27
+ url("$rootDir/../node_modules/react-native/android")
28
+ }
29
+ maven {
30
+ // Android JSC is installed from npm
31
+ url("$rootDir/../node_modules/jsc-android/dist")
32
+ }
33
+
34
+ google()
35
+ jcenter()
36
+ maven { url 'https://jitpack.io' }
37
+ }
38
+ }
@@ -1,5 +1,5 @@
1
- distributionBase=GRADLE_USER_HOME
2
- distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-all.zip
4
- zipStoreBase=GRADLE_USER_HOME
5
- zipStorePath=wrapper/dists
1
+ distributionBase=GRADLE_USER_HOME
2
+ distributionPath=wrapper/dists
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-all.zip
4
+ zipStoreBase=GRADLE_USER_HOME
5
+ zipStorePath=wrapper/dists
@@ -1,21 +1,21 @@
1
- # Project-wide Gradle settings.
2
-
3
- # IDE (e.g. Android Studio) users:
4
- # Gradle settings configured through the IDE *will override*
5
- # any settings specified in this file.
6
-
7
- # For more details on how to configure your build environment visit
8
- # http://www.gradle.org/docs/current/userguide/build_environment.html
9
-
10
- # Specifies the JVM arguments used for the daemon process.
11
- # The setting is particularly useful for tweaking memory settings.
12
- # Default value: -Xmx10248m -XX:MaxPermSize=256m
13
- # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14
-
15
- # When configured, Gradle will run in incubating parallel mode.
16
- # This option should only be used with decoupled projects. More details, visit
17
- # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18
- # org.gradle.parallel=true
19
-
20
- android.useAndroidX=true
21
- android.enableJetifier=true
1
+ # Project-wide Gradle settings.
2
+
3
+ # IDE (e.g. Android Studio) users:
4
+ # Gradle settings configured through the IDE *will override*
5
+ # any settings specified in this file.
6
+
7
+ # For more details on how to configure your build environment visit
8
+ # http://www.gradle.org/docs/current/userguide/build_environment.html
9
+
10
+ # Specifies the JVM arguments used for the daemon process.
11
+ # The setting is particularly useful for tweaking memory settings.
12
+ # Default value: -Xmx10248m -XX:MaxPermSize=256m
13
+ # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14
+
15
+ # When configured, Gradle will run in incubating parallel mode.
16
+ # This option should only be used with decoupled projects. More details, visit
17
+ # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18
+ # org.gradle.parallel=true
19
+
20
+ android.useAndroidX=true
21
+ android.enableJetifier=true