From fbae708b46770dfdddf0275c62597b72136faaaf Mon Sep 17 00:00:00 2001
From: Eric allen <eric.allen@datadoghq.com>
Date: Tue, 5 Apr 2022 14:46:30 -0400
Subject: [PATCH] chore: update cra-template README's and react versions

---
 .../package.json                              | 64 ++++++++---------
 .../template.json                             | 42 +++++------
 .../template/README.md                        | 70 +++++++++++++++++++
 .../package.json                              | 66 ++++++++---------
 .../template.json                             | 52 ++++++--------
 .../template/README.md                        | 70 +++++++++++++++++++
 yarn.lock                                     | 23 ++++--
 7 files changed, 264 insertions(+), 123 deletions(-)
 create mode 100644 packages/cra-template-apps-starter-kit/template/README.md
 create mode 100644 packages/cra-template-apps-typescript-starter-kit/template/README.md

diff --git a/packages/cra-template-apps-starter-kit/package.json b/packages/cra-template-apps-starter-kit/package.json
index 9ca01e58..2b8eb33d 100644
--- a/packages/cra-template-apps-starter-kit/package.json
+++ b/packages/cra-template-apps-starter-kit/package.json
@@ -1,34 +1,34 @@
 {
-  "name": "@datadog/cra-template-apps-starter-kit",
-  "version": "1.0.0",
-  "keywords": [
-    "react",
-    "create-react-app",
-    "template",
-    "datadog"
-  ],
-  "description": "Datadog UI Apps Starter Kit",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/DataDog/apps.git",
-    "directory": "packages/cra-template-apps-starter-kit"
-  },
-  "license": "Apache-2.0",
-  "engines": {
-    "node": ">=16"
-  },
-  "bugs": {
-    "url": "https://github.com/DataDog/apps/issues"
-  },
-  "main": "template.json",
-  "files": [
-    "template",
-    "template.json"
-  ],
-  "publishConfig": {
-    "access": "public"
-  },
-  "scripts": {
-    "prepare": "exit 0"
-  }
+    "name": "@datadog/cra-template-apps-starter-kit",
+    "version": "1.0.0",
+    "keywords": [
+        "react",
+        "create-react-app",
+        "template",
+        "datadog"
+    ],
+    "description": "Datadog UI Apps Starter Kit",
+    "repository": {
+        "type": "git",
+        "url": "git+https://github.com/DataDog/apps.git",
+        "directory": "packages/cra-template-apps-starter-kit"
+    },
+    "license": "Apache-2.0",
+    "engines": {
+        "node": ">=16"
+    },
+    "bugs": {
+        "url": "https://github.com/DataDog/apps/issues"
+    },
+    "main": "template.json",
+    "files": [
+        "template",
+        "template.json"
+    ],
+    "publishConfig": {
+        "access": "public"
+    },
+    "scripts": {
+        "prepare": "exit 0"
+    }
 }
diff --git a/packages/cra-template-apps-starter-kit/template.json b/packages/cra-template-apps-starter-kit/template.json
index 007328df..92f0f095 100644
--- a/packages/cra-template-apps-starter-kit/template.json
+++ b/packages/cra-template-apps-starter-kit/template.json
@@ -1,27 +1,21 @@
 {
-  "package": {
-    "dependencies": {
-      "@datadog/ui-extensions-react": "0.30.1",
-      "@datadog/ui-extensions-sdk": "0.30.1",
-      "milligram": "^1.4.1",
-      "react": "^17.0.2",
-      "react-dom": "^17.0.2",
-      "typeface-roboto": "^1.1.13"
-    },
-    "eslintConfig": {
-      "extends": ["react-app", "react-app/jest"]
-    },
-    "browserslist": {
-      "production": [
-          ">0.2%",
-          "not dead",
-          "not op_mini all"
-      ],
-      "development": [
-          "last 1 chrome version",
-          "last 1 firefox version",
-          "last 1 safari version"
-      ]
+    "package": {
+        "dependencies": {
+            "@datadog/ui-extensions-react": "0.31.0",
+            "@datadog/ui-extensions-sdk": "0.31.0",
+            "milligram": "^1.4.1",
+            "typeface-roboto": "^1.1.13"
+        },
+        "eslintConfig": {
+            "extends": ["react-app", "react-app/jest"]
+        },
+        "browserslist": {
+            "production": [">0.2%", "not dead", "not op_mini all"],
+            "development": [
+                "last 1 chrome version",
+                "last 1 firefox version",
+                "last 1 safari version"
+            ]
+        }
     }
-  }
 }
diff --git a/packages/cra-template-apps-starter-kit/template/README.md b/packages/cra-template-apps-starter-kit/template/README.md
new file mode 100644
index 00000000..aaed398d
--- /dev/null
+++ b/packages/cra-template-apps-starter-kit/template/README.md
@@ -0,0 +1,70 @@
+# Datadog UI App React Starter Kit
+
+This project was generated via the [Datadog UI Apps Starter Kit](https://github.com/datadog/apps/packages/cra-template-apps-starter-kit) [`create-react-app`](https://create-react-app.dev/) [custom template](https://create-react-app.dev/docs/custom-templates).
+
+## Available Scripts
+
+In the project directory, you can run:
+
+### `npm start`
+
+Runs the app in the development mode.\
+Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
+
+The page will reload when you make changes.\
+You may also see any lint errors in the console.
+
+### `npm test`
+
+Launches the test runner in the interactive watch mode.\
+See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
+
+### `npm run build`
+
+Builds the app for production to the `build` folder.\
+It correctly bundles React in production mode and optimizes the build for the best performance.
+
+The build is minified and the filenames include the hashes.\
+Your app is ready to be deployed!
+
+See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
+
+### `npm run eject`
+
+**Note: this is a one-way operation. Once you `eject`, you can't go back!**
+
+If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
+
+Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
+
+You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
+
+## Learn More
+
+You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
+
+To learn React, check out the [React documentation](https://reactjs.org/).
+
+### Code Splitting
+
+This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
+
+### Analyzing the Bundle Size
+
+This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
+
+### Making a Progressive Web App
+
+This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
+
+### Advanced Configuration
+
+This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
+
+### Deployment
+
+This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
+
+### `npm run build` fails to minify
+
+This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
diff --git a/packages/cra-template-apps-typescript-starter-kit/package.json b/packages/cra-template-apps-typescript-starter-kit/package.json
index 4db0db30..52d0c452 100644
--- a/packages/cra-template-apps-typescript-starter-kit/package.json
+++ b/packages/cra-template-apps-typescript-starter-kit/package.json
@@ -1,35 +1,35 @@
 {
-  "name": "@datadog/cra-template-apps-typescript-starter-kit",
-  "version": "1.0.0",
-  "keywords": [
-    "react",
-    "create-react-app",
-    "template",
-    "typescript",
-    "datadog"
-  ],
-  "description": "Datadog UI Apps Starter Kit",
-  "repository": {
-    "type": "git",
-    "url": "git+https://github.com/DataDog/apps.git",
-    "directory": "packages/cra-template-apps-typescript-starter-kit"
-  },
-  "license": "Apache-2.0",
-  "engines": {
-    "node": ">=16"
-  },
-  "bugs": {
-    "url": "https://github.com/DataDog/apps/issues"
-  },
-  "main": "template.json",
-  "files": [
-    "template",
-    "template.json"
-  ],
-  "publishConfig": {
-    "access": "public"
-  },
-  "scripts": {
-    "prepare": "exit 0"
-  }
+    "name": "@datadog/cra-template-apps-typescript-starter-kit",
+    "version": "1.0.0",
+    "keywords": [
+        "react",
+        "create-react-app",
+        "template",
+        "typescript",
+        "datadog"
+    ],
+    "description": "Datadog UI Apps Starter Kit",
+    "repository": {
+        "type": "git",
+        "url": "git+https://github.com/DataDog/apps.git",
+        "directory": "packages/cra-template-apps-typescript-starter-kit"
+    },
+    "license": "Apache-2.0",
+    "engines": {
+        "node": ">=16"
+    },
+    "bugs": {
+        "url": "https://github.com/DataDog/apps/issues"
+    },
+    "main": "template.json",
+    "files": [
+        "template",
+        "template.json"
+    ],
+    "publishConfig": {
+        "access": "public"
+    },
+    "scripts": {
+        "prepare": "exit 0"
+    }
 }
diff --git a/packages/cra-template-apps-typescript-starter-kit/template.json b/packages/cra-template-apps-typescript-starter-kit/template.json
index a66375e2..b882edca 100644
--- a/packages/cra-template-apps-typescript-starter-kit/template.json
+++ b/packages/cra-template-apps-typescript-starter-kit/template.json
@@ -1,33 +1,25 @@
 {
-  "package": {
-    "dependencies": {
-      "@datadog/ui-extensions-react": "0.30.1",
-      "@datadog/ui-extensions-sdk": "0.30.1",
-      "milligram": "^1.4.1",
-      "react": "^17.0.2",
-      "react-dom": "^17.0.2",
-      "typeface-roboto": "^1.1.13"
-    },
-    "devDependencies": {
-      "@types/node": "^16.7.13",
-      "@types/react": "^17.0.43",
-      "@types/react-dom": "^17.0.14",
-      "typescript": "^4.4.2"
-    },
-    "eslintConfig": {
-      "extends": ["react-app", "react-app/jest"]
-    },
-    "browserslist": {
-      "production": [
-          ">0.2%",
-          "not dead",
-          "not op_mini all"
-      ],
-      "development": [
-          "last 1 chrome version",
-          "last 1 firefox version",
-          "last 1 safari version"
-      ]
+    "package": {
+        "dependencies": {
+            "@datadog/ui-extensions-react": "0.31.0",
+            "@datadog/ui-extensions-sdk": "0.31.0",
+            "@types/node": "^16.7.13",
+            "@types/react": "^17.0.43",
+            "@types/react-dom": "^17.0.14",
+            "milligram": "^1.4.1",
+            "typeface-roboto": "^1.1.13",
+            "typescript": "^4.4.2"
+        },
+        "eslintConfig": {
+            "extends": ["react-app", "react-app/jest"]
+        },
+        "browserslist": {
+            "production": [">0.2%", "not dead", "not op_mini all"],
+            "development": [
+                "last 1 chrome version",
+                "last 1 firefox version",
+                "last 1 safari version"
+            ]
+        }
     }
-  }
 }
diff --git a/packages/cra-template-apps-typescript-starter-kit/template/README.md b/packages/cra-template-apps-typescript-starter-kit/template/README.md
new file mode 100644
index 00000000..b908388c
--- /dev/null
+++ b/packages/cra-template-apps-typescript-starter-kit/template/README.md
@@ -0,0 +1,70 @@
+# Datadog UI App TypeScript+React Starter Kit
+
+This project was generated via the [Datadog UI Apps TypeScript Starter Kit](https://github.com/datadog/apps/packages/cra-template-apps-typescript-starter-kit) [`create-react-app`](https://create-react-app.dev/) [custom template](https://create-react-app.dev/docs/custom-templates).
+
+## Available Scripts
+
+In the project directory, you can run:
+
+### `npm start`
+
+Runs the app in the development mode.\
+Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
+
+The page will reload when you make changes.\
+You may also see any lint errors in the console.
+
+### `npm test`
+
+Launches the test runner in the interactive watch mode.\
+See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
+
+### `npm run build`
+
+Builds the app for production to the `build` folder.\
+It correctly bundles React in production mode and optimizes the build for the best performance.
+
+The build is minified and the filenames include the hashes.\
+Your app is ready to be deployed!
+
+See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
+
+### `npm run eject`
+
+**Note: this is a one-way operation. Once you `eject`, you can't go back!**
+
+If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
+
+Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
+
+You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
+
+## Learn More
+
+You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
+
+To learn React, check out the [React documentation](https://reactjs.org/).
+
+### Code Splitting
+
+This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
+
+### Analyzing the Bundle Size
+
+This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
+
+### Making a Progressive Web App
+
+This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
+
+### Advanced Configuration
+
+This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
+
+### Deployment
+
+This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
+
+### `npm run build` fails to minify
+
+This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
diff --git a/yarn.lock b/yarn.lock
index 509ef225..c63d08c0 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1453,6 +1453,9 @@
   dependencies:
     postcss-value-parser "^4.2.0"
 
+"@datadog/cra-template-apps-starter-kit@file:/Users/eric.allen/Development/apps/packages/cra-template-apps-starter-kit":
+  version "1.0.0"
+
 "@datadog/datadog-api-client@^1.0.0-beta.5", "@datadog/datadog-api-client@^1.0.0-beta.6":
   version "1.0.0-beta.9"
   resolved "https://registry.yarnpkg.com/@datadog/datadog-api-client/-/datadog-api-client-1.0.0-beta.9.tgz#90c87e54c40b01bfaed6d4df57e64026b0a19e1d"
@@ -1503,6 +1506,18 @@
   dependencies:
     protobufjs "^6.10.2"
 
+"@datadog/ui-extensions-react@^0.31.0":
+  version "0.31.0"
+  resolved "https://registry.yarnpkg.com/@datadog/ui-extensions-react/-/ui-extensions-react-0.31.0.tgz#319b86c842a21598b744d79fc484511a447fd6de"
+  integrity sha512-+S68mtPevAWPVLCX2RIR5+9jW/pXXmY7mh3r2EKrKizEBa9D8rWdBeZpkI95I2+Q93cSzFj+sQGYnqLkk0L4mg==
+
+"@datadog/ui-extensions-sdk@^0.31.0":
+  version "0.31.0"
+  resolved "https://registry.yarnpkg.com/@datadog/ui-extensions-sdk/-/ui-extensions-sdk-0.31.0.tgz#057c5f0d5ea8a96fa43ecf7d4bc0904b445c2dd5"
+  integrity sha512-iBo6QhbPHSe3V2iSEx0N42ORUb+aLZFarAq0//375y3UqO5Bhbbru8QBIP1WTA2WO0Lvsr+BabYG6DgAiwGAVg==
+  dependencies:
+    "@datadog/framepost" "^0.3.0"
+
 "@discoveryjs/json-ext@^0.5.0":
   version "0.5.7"
   resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70"
@@ -3533,7 +3548,7 @@
   resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.12.tgz#0d4557fd3b94497d793efd4e7d92df2f83b4ef24"
   integrity sha512-q4jlIR71hUpWTnGhXWcakgkZeHa3CCjcQcnuzU8M891BAWA2jHiziiWEPEkdS5pFsz7H9HJiy8BrK7tBRNrY7A==
 
-"@types/node@^16.9.1":
+"@types/node@^16.11.26", "@types/node@^16.9.1":
   version "16.11.26"
   resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.26.tgz#63d204d136c9916fb4dcd1b50f9740fe86884e47"
   integrity sha512-GZ7bu5A6+4DtG7q9GsoHXy3ALcgeIHP4NnL0Vv2wu0uUB/yQex26v0tf6/na1mm0+bS9Uw+0DFex7aaKr2qawQ==
@@ -3583,7 +3598,7 @@
   resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.4.tgz#cd667bcfdd025213aafb7ca5915a932590acdcdc"
   integrity sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==
 
-"@types/react-dom@*", "@types/react-dom@>=16.9.0", "@types/react-dom@^17.0.0":
+"@types/react-dom@*", "@types/react-dom@>=16.9.0", "@types/react-dom@^17.0.0", "@types/react-dom@^17.0.14":
   version "17.0.14"
   resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.14.tgz#c8f917156b652ddf807711f5becbd2ab018dea9f"
   integrity sha512-H03xwEP1oXmSfl3iobtmQ/2dHF5aBHr8aUMwyGZya6OW45G+xtdzmq6HkncefiBt5JU8DVyaWl/nWZbjZCnzAQ==
@@ -3597,7 +3612,7 @@
   dependencies:
     "@types/react" "*"
 
-"@types/react@*", "@types/react@>=16.9.0", "@types/react@^17.0.0", "@types/react@^17.0.21":
+"@types/react@*", "@types/react@>=16.9.0", "@types/react@^17.0.0", "@types/react@^17.0.21", "@types/react@^17.0.43":
   version "17.0.43"
   resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.43.tgz#4adc142887dd4a2601ce730bc56c3436fdb07a55"
   integrity sha512-8Q+LNpdxf057brvPu1lMtC5Vn7J119xrP1aq4qiaefNioQUYANF/CYeK4NsKorSZyUGJ66g0IM+4bbjwx45o2A==
@@ -16319,7 +16334,7 @@ typescript@4.5.4:
   resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.4.tgz#a17d3a0263bf5c8723b9c52f43c5084edf13c2e8"
   integrity sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg==
 
-typescript@^4.1.2, typescript@^4.1.3, typescript@^4.4.3, typescript@^4.5.4:
+typescript@^4.1.2, typescript@^4.1.3, typescript@^4.4.3, typescript@^4.5.4, typescript@^4.6.3:
   version "4.6.3"
   resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.3.tgz#eefeafa6afdd31d725584c67a0eaba80f6fc6c6c"
   integrity sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==