From a709679f74eb5c47c14f4b288a64b046a8baf84f Mon Sep 17 00:00:00 2001 From: Andriy Urbanas Date: Fri, 28 Apr 2023 13:43:40 +0200 Subject: [PATCH 1/2] feat: add ConfigSection, ConfigSubSection and DataSourceDescription components --- llm-frontend-libs/jest.config.js | 1 + llm-frontend-libs/package.json | 1 + llm-frontend-libs/src/index.ts | 1 + llm-frontend-libs/yarn.lock | 5 +++++ 4 files changed, 8 insertions(+) diff --git a/llm-frontend-libs/jest.config.js b/llm-frontend-libs/jest.config.js index 4d21bb60..6b1cf04c 100644 --- a/llm-frontend-libs/jest.config.js +++ b/llm-frontend-libs/jest.config.js @@ -5,4 +5,5 @@ const config = standard.jestConfig(); module.exports = { ...config, watchPathIgnorePatterns: ['/node_modules/'], + setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'], }; diff --git a/llm-frontend-libs/package.json b/llm-frontend-libs/package.json index 8c9cd48e..f5db6fe3 100644 --- a/llm-frontend-libs/package.json +++ b/llm-frontend-libs/package.json @@ -41,6 +41,7 @@ "@testing-library/jest-dom": "^5.11.10", "@testing-library/react": "^11.2.5", "@testing-library/react-hooks": "^5.1.0", + "@testing-library/user-event": "^14.4.3", "@types/node": "10.14.1", "@types/react": "16.8.16", "@types/react-test-renderer": "^17.0.1", diff --git a/llm-frontend-libs/src/index.ts b/llm-frontend-libs/src/index.ts index 2a2abdb5..9e0488df 100644 --- a/llm-frontend-libs/src/index.ts +++ b/llm-frontend-libs/src/index.ts @@ -1,2 +1,3 @@ export * from './sql-editor'; export * from './QueryEditor'; +export * from './ConfigEditor'; diff --git a/llm-frontend-libs/yarn.lock b/llm-frontend-libs/yarn.lock index febfe724..074a6204 100644 --- a/llm-frontend-libs/yarn.lock +++ b/llm-frontend-libs/yarn.lock @@ -2530,6 +2530,11 @@ "@babel/runtime" "^7.12.5" "@testing-library/dom" "^7.28.1" +"@testing-library/user-event@^14.4.3": + version "14.4.3" + resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-14.4.3.tgz#af975e367743fa91989cd666666aec31a8f50591" + integrity sha512-kCUc5MEwaEMakkO5x7aoD+DLi02ehmEM2QCGWvNqAS1dV/fAvORWEjnjsEIvml59M7Y5kCkWN6fCCyPOe8OL6Q== + "@tootallnate/once@1": version "1.1.2" resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" From b50842e8b7425d3c099561b23f3bb8338148a318 Mon Sep 17 00:00:00 2001 From: Andriy Urbanas Date: Fri, 28 Apr 2023 14:05:23 +0200 Subject: [PATCH 2/2] chore: release prep --- llm-frontend-libs/CHANGELOG.md | 4 ++++ llm-frontend-libs/package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/llm-frontend-libs/CHANGELOG.md b/llm-frontend-libs/CHANGELOG.md index 007e9d69..992e9e11 100644 --- a/llm-frontend-libs/CHANGELOG.md +++ b/llm-frontend-libs/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. +## v1.2.0 + +- Add new ConfigSection, ConfigSubSection and DataSourceDescription components + ## v1.1.0 - EditorList now accepts a ref to the Button for adding items diff --git a/llm-frontend-libs/package.json b/llm-frontend-libs/package.json index f5db6fe3..1bd69d5f 100644 --- a/llm-frontend-libs/package.json +++ b/llm-frontend-libs/package.json @@ -1,6 +1,6 @@ { "name": "@grafana/experimental", - "version": "1.1.0", + "version": "1.2.0", "description": "Experimental Grafana components and APIs", "main": "index.js", "types": "dist/index.d.ts",