Pierre Gayvallet
7423ed0022
Migrate client-side coreApp
domain to packages - again ( #140662 )
...
* move sass-loader related files to src/core/public/styles
* create empty packages
* Move all the things
* fix optimizer integration tests
* add kibana.jsonc files
* fix bazel build
* [CI] Auto-commit changed files from 'node scripts/generate codeowners'
* fix usages
* fix mocked service name
* fix storybook webpack config
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-09-13 15:29:08 -07:00
Spencer
32491462a9
add kibana.jsonc files to existing packages ( #138965 )
...
* [packages] add kibana.jsonc files
* auto-migrate to kibana.jsonc
* support interactive pkg id selection too
* remove old codeowners entry
* skip codeowners generation when .github/CODEOWNERS doesn't exist
* fall back to format validation if user is offline
* update question style
* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-09-08 13:31:57 -07:00
Tiago Costa
1cbf83f73c
chore(NA): remove src folder requirement from packages (part 2) ( #138476 )
...
* refact(NA): apply root_input_dir=src to each already created pkg
* refact(NA): update package generator
* fix(NA): correctly use rootDir
* fix(NA): use root input dir on latest introduced pkgs for jsts_transpiler macro
* chore(NA): merge with main
* chore(NA): first attempt to complete removal of src folder on a small group of pkgs
* Revert "chore(NA): first attempt to complete removal of src folder on a small group of pkgs"
This reverts commit b6f34b7530
.
* chore(NA): remove src folder requirement from xpack pkgs
* chore(NA): remove src folder from analytics pkgs
* chore(NA): remove src folder from home pkgs
* chore(NA): remove src folder from shared_ux pkgs
* fix(NA): remove missing src folder inputs on sharedux pkg
* chore(NA): remove src folder from kbn-a* pkgs
* chore(NA): remove src folder from kbn-b* pkgs
* chore(NA): remove src folder from kbn-c* pkgs
* chore(NA): correct exclude pattern for each changed pkg
* chore(NA): remove src folder from kbn-y* pkgs
* chore(NA): remove src folder from kbn-e* pkgs
* chore(NA): remove src folder from kbn-f* and kbn-g* pkgs
* chore(NA): remove src folder from kbn-f* and kbn-g* pkgs
* chore(NA): remove src folder from kbn-h** pkgs
* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'
* Revert "chore(NA): remove src folder from kbn-h** pkgs"
This reverts commit dcdf72bcc1
.
* fix(NA): grammar location
* test(NA): fix tests for kbn/config-schema
* test(NA): fix tests for kbn/config-schema
* chore(NA): multiple errors fixed
* chore(NA): remove kuery grammar fix
* fix(NA): @kbn/ace imports
* fix(NA): grammar location
* fix(NA): add missing files to tsconfigs
* [CI] Auto-commit changed files from 'node scripts/build_plugin_list_docs'
* chore(NA): complete tsconfigs
* Revert "chore(NA): complete tsconfigs"
This reverts commit f48c616864
.
* chore(NA): remove src folder from kbn-core* pkgs
* chore(NA): remove src folder from kbn-u* pkgs
* chore(NA): remove src folder from kbn-ui-shared-deps* pkgs
* chore(NA): fix problems on core pkgs
* chore(NA): fix problems on core pkgs
* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'
* fix(NA): shared_built_assets correct location'
* test(NA): update @kbn/optimizer integration snapshots
* chore(NA): remove src folder from kbn-t* p1 pkgs
* chore(NA): remove src folder from kbn-t* p2 pkgs
* chore(NA): update rootDir on utility types pkg
* chore(NA): include missing files on @kbn/test
* chore(NA): include missing files on @kbn/test
* fix(NA): new jest preset paths on @kbn/test
* chore(NA): fix eslint
* fix(NA): new jest preset paths on @kbn/test
* chore(NA): remove exclusion for mocks folde on @kbn/test
* fix(NA): several imports from target_node
* fix(NA): @kbn/test mocha and jest types clash
* chore(NA): remove src folder from kbn-storybook pkg
* chore(NA): remove src folder from kbn-stdio-dev-helpers pkg
* chore(NA): remove src folder from kbn-std pkg
* chore(NA): remove src folder from kbn-sort-pkg-json pkg
* chore(NA): remove src folder from kbn-some-dev-log and kbn-shared-ux-utility pkgs
* chore(NA): remove src folder from kbn-ux-storybook pkg
* chore(NA): remove src folder from kbn-shared-ux-services pkg
* chore(NA): remove src folder from kbn-shared-ux-components pkg
* chore(NA): remove src folder from kbn-shared-svg pkg
* chore(NA): remove src folder from kbn-server-http-tools pkg
* chore(NA): remove src folder from kbn-securitysolution-* pkgs
* chore(NA): remove src folder from kbn-r-* pkgs
* chore(NA): remove src folder from kbn-p* pkgs
* chore(NA): remove src folder from kbn-o* pkgs
* chore(NA): remove src folder from kbn-m* pkgs
* chore(NA): remove src folder from kbn-j,k,l* pkgs
* chore(NA): remove src folder from kbn-j,k,l* pkgs
* chore(NA): remove src folder from kbn-io-ts-utils* pkgs
* chore(NA): remove src folder from kbn-* pkgs except a few
* chore(NA): update @kbn/generate
* fix(NA): wrong exclusion on kbn-storybook
* chore(NA): remove src folder from kbn-monaco pkg
* chore(NA): remove src folder from kbn-interpreter pkg
* fix(NA): wrong exclusion on kbn-storybook
* chore(NA): update every require for target_*/src
* chore(NA): remover src folder from @kbn/handlebars
* fix(NA): license for @kbn/handlebars
* chore(NA): copy templates as part of the jsts_transpiler macro for @kbn/storybook
* chore(NA): update handlebars
* fix(NA): @kbn/plugin-generator import paths
* fix(NA): bundle sizes
* fix(NA): web bundle for @kbn/i18n-react
* Revert "fix(NA): bundle sizes"
This reverts commit 8aefe84fbc
.
* Revert "Revert "fix(NA): bundle sizes""
This reverts commit e9d87d72a4
.
* fix(NA): @kbn/docs-utils index.ts path expectation
* chore(NA): merge and solve conflicts with main
* fix(NA): relative import to index
* chore(NA): merge and solve conflicts with main
* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'
* chore(NA): apply eslint fix
* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-30 15:57:35 +01:00
Tiago Costa
df8b62aa98
chore(NA): allow packages to not have an obligation for a src folder on packages ( #138038 )
...
* refact(NA): apply root_input_dir=src to each already created pkg
* refact(NA): update package generator
* fix(NA): correctly use rootDir
* fix(NA): use root input dir on latest introduced pkgs for jsts_transpiler macro
* chore(NA): merge with main
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-08-08 15:54:05 +01:00
Jonathan Budzenski
88d64408c9
Bump postcss to ^8 ( #136303 )
...
* Bump postcss to ^8
* fixes
* fix config path
* fix path
* cleanup
2022-07-19 14:06:20 -05:00
Spencer
a3b2757e4e
[type-summarizer] reimplement for broader support ( #135163 )
...
* [type-summarizer] reimplement for broader support
* Enable sourceMaps in all packages
* include naming collision in summarizePackage test
* fix readmes
* remove unnecessary transient dependency
* remove code that was commented out
* remove outdated todo comment
* ensure errors triggered by untyped-exports are ligible
* remove unused import
* break out snippet generation from AstIndexer
* refactor several massive files into smaller pieces and add more inline docs
* fix typos
* update jest snapshots
* add sections to readme that points people to the useful parts of the source code along with a high-level overview of how the type-summarizer works
* remove --dump flag, it doesn't work
* use decName instead of calling names.get a second time
* include `export` as invalid name
2022-07-06 13:48:45 -05:00
Constance
de20876b30
Upgrade EUI to v60.0.0 ( #134919 )
...
* Upgrade EUI to v60.0.0
* reorganize style tag injection using EuiProvider.cache options
* Convert Jest snapshots for EUI Emotion classNames to a static `emotion-` prefix instead of a dynamic hash
- The goal of this is to reduce thrashing on downstream Kibana snapshots whenever EUI CSS changes
+ Add serializer to Canvas' storyshots tests as well
+ Switch several .html() snapshots to .render() - render uses the new serializer logic, but .html() does not and will still output CSS hashes, plus is more difficult to read
* Update downstream tests for EuiStat Emotion/className changes
* Fix WithEuiTheme(EuiAccordionClass) references
* Rename mounted snapshots of EuiButtonContent to EuiButtonContentDeprecated
* add emotion/cache to kbn-ui-shared-deps
* Fix non-rendering server-side Emotion CSS
* Fix failing Security Cypress test
- the Cypress query/command being used wasn't working correctly
Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-28 11:23:59 -07:00
Greg Thompson
2336f33632
Upgrade EUI to v59.0.1 ( #133927 )
...
* eui to v59.0.0
* i18n tokens
* update theme var tokens
* mock mouseevent for euiselectable
* mock mouseevent for euiselectable
* update theme var tokens
* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'
* mock mouseevent for euiselectable
* update theme var tokens
* update theme var tokens mocks
* WIP: forwardRef type
* update snapshots
* euiTextColor
* snapshot updates
* jest test updates
* euiTextColor updates
* jest test updates
* update getVisualizeError selector
* euiPaddingSizes
* snapshot update
* WIP: accordion cy.react
* DetailPanelMetadataTab test updates
* eui to v59.0.1
* snapshot updates
* WIP: osquery cypress
* WIP: osquery cypress
* use data-test-subj
* log standard console errors
* snapshot
* paddingSizes update
* euiaccordion class type comment
* snapshots
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-21 17:08:15 -05:00
Patryk Kopyciński
ae0c68346a
Bump @storybook@6.4.22 ( #129787 )
2022-05-19 12:03:10 +02:00
Spencer
f3d69b8197
[@kbn/dev-utils] break out more pieces ( #132292 )
...
* [@kbn/dev-utils] break out more pieces
* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-05-17 11:19:20 -05:00
Clint Andrew Hall
01e12ec1d6
[storybook] Watch for changes in packages ( #131467 )
...
* [storybook] Watch for changes in packages
* Update default_config.ts
2022-05-03 16:24:22 -07:00
spalger
3730dd0779
fix all violations
2022-04-16 01:37:30 -05:00
spalger
bd8171c13e
[plugins] use module ids to import across plugins
2022-04-16 01:19:05 -05:00
Clint Andrew Hall
d92b7feeff
[typescript] Create Ambient Types package ( #129368 )
...
* WIP
* tweak @kbn/ambient-ui-types for special usecase
* remove @types/ for ambient-ui-types, the package is a types package
* Split types; remove duplicate types in packages
* Adjust README
* Update CODEOWNERS
* Addressing feedback
* Move to tsconfig.base.json
* Fix missing types array in kbn/field-types
* Addressing errors
* Return declaration
* move storybook types to storybook specific package
* add codeowner for new package
Co-authored-by: spalger <spencer@elastic.co>
2022-04-06 19:21:24 -05:00
Nathan L Smith
64a25db639
Fix Storybook background/grid selection ( #125961 )
2022-03-19 09:29:49 -05:00
Clint Andrew Hall
e1578ee2b5
[emotion] Output meaningful classnames in dev mode ( #127531 )
...
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-11 11:58:24 -06:00
Spencer
614139b8e5
[bazel] avoid a little boilerplate in packages ( #126309 )
...
* [bazel] avoid a little boilerplate for @types packages
* [bazel/ts] stop building sourcemaps since they're ignored
2022-02-24 12:43:12 -06:00
Tiago Costa
b08b2c9ef8
chore(NA): splits types from code on @kbn/storybook ( #124199 )
...
* chore(NA): splits types from code on @kbn/storybook
* chore(NA): correct export syntax
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-02 02:00:18 +00:00
Stacey Gammon
3e320cac8b
Note the author in some packages so "owner" attribute is filled in for ci stats. ( #123867 )
2022-01-26 16:00:42 -05:00
Tiago Costa
356861d23b
chore(NA): splits types from code on @kbn/ui-shared-deps-src ( #123313 )
...
* chore(NA): splits types from code on @kbn/ui-shared-deps-src
* chore(NA): break flot-charts into another package
* chore(NA): skip failing tests
* chore(NA): remove skip and add correct value
* chore(NA): fix new ui-theme import
* chore(NA): adding fleet cloned test
* chore(NA): remove cloned test
* chore(NA): remove added typo
2022-01-20 22:04:19 +00:00
Tiago Costa
a8247ff7d7
fix(NA): missing build dependencies on @kbn/storybook ( #123228 )
2022-01-18 15:38:11 +00:00
Tiago Costa
a6d21cc715
chore(NA): splits types from code on @kbn/ui-shared-deps-npm ( #122788 )
2022-01-13 02:23:18 +00:00
Clint Andrew Hall
d071e5200b
[storybook] Enable Emotion in non-EUI components ( #122194 )
2022-01-04 09:21:47 -06:00
Clint Andrew Hall
a4d4b3d8b7
[storybook] Fix Presentation Utility to use default setup; add README note ( #122140 )
...
* [storybook] Fix Presentation Utility to use default setup; add README note
* Fix typo
Fix typo
2021-12-29 22:32:36 -05:00
Clint Andrew Hall
c89709a16c
[storybook] Fix preset overrides, console fonts; add MDX support ( #122093 )
...
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-28 14:52:01 -07:00
Clint Andrew Hall
8890384767
[storybook][eui] Add EUIThemeProvider to kbn-storybook ( #122094 )
2021-12-28 13:57:46 -07:00
Tiago Costa
64468b7a3e
chore(NA): splits types from code on @kbn/utils ( #121924 )
2021-12-23 03:18:10 +00:00
Tiago Costa
de5dd787b1
chore(NA): splits types from code on @kbn/dev-utils ( #120531 )
...
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-07 20:12:18 +00:00
Felix Stürmer
945650e321
[Infra UI] Use KibanaThemeProvider
in the Logs and Metrics UIs ( #120164 )
2021-12-06 21:04:36 +01:00
Tyler Smalley
92a8636f0f
Upgrade Typescript to 4.3.5 ( #104470 )
...
Co-authored-by: Mikhail Shustov <restrry@gmail.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
Co-authored-by: CJ Cenizal <cj@cenizal.com>
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
Co-authored-by: Kyle Pollich <kpollich1@gmail.com>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Kevin Qualters <kevin.qualters@elastic.co>
Co-authored-by: Candace Park <candace.park@elastic.co>
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
Co-authored-by: spalger <spencer@elastic.co>
2021-12-02 16:27:41 -08:00
Yaroslav Kuznietsov
8b76213809
[Storybook] Fixes Storybook is endlessly refreshed. ( #120216 )
2021-12-02 08:11:06 -07:00
Spencer
b2f54829d8
[babel] ensure TS preset runs before anything else ( #119107 )
...
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-29 11:29:45 -07:00
Spencer
ac23dce29f
[storybook] upgrade to 6.3.x ( #119498 )
...
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-24 20:46:32 +01:00
Spencer
30872e9063
remove all references to v7 theme ( #113570 )
...
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-29 12:28:42 -05:00
Tyler Smalley
c4815d319e
Updates Github link references from master to main ( #116789 )
...
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-29 09:53:08 -07:00
Clint Andrew Hall
25fef38f12
[fleet][ui] Fix offset image; scrollbar flashing; missing assets in Stories ( #114406 )
2021-10-11 11:19:00 +02:00
Shahzad
fe9b5332e1
[Uptime] Run Sample uptime tests using @elastic/synthetics ( #112128 )
...
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-30 13:58:38 +02:00
Clint Andrew Hall
b2bc5a592d
[storybook] Fix Shared UI Dep paths ( #112631 )
2021-09-21 04:10:00 -07:00
Spencer
eaf70a0b4e
[kbn/ui-shared-deps] split into two packages ( #110558 )
...
* [kbn/ui-shared-deps] split into two packages
* fix asset categorizer
* update snapshots
* reference npm dll from optimizer
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-09-16 12:06:46 -07:00
Tiago Costa
7c4e4f507b
chore(NA): replace babel config files by inline presets by default in the jsts_transpiler rule ( #110620 )
...
* chore(NA): replace babel config files by inline presets by default in the js_ts_transpiler rule
* chore(NA): update @kbn/ace build to exclude worker file
* chore(NA): remove config file support
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 21:17:46 +01:00
Jonathan Budzenski
88f955621d
Bump node-sass to 6.0.1 ( #109930 )
2021-08-30 16:42:06 -05:00
Spencer
c0395c9ef6
[build_ts_refs] improve caches, allow building a subset of projects ( #107981 )
...
* [build_ts_refs] improve caches, allow building a subset of projects
* cleanup project def script and update refs in type check script
* rename browser_bazel config to avoid kebab-case
* remove execInProjects() helper
* list references for tsconfig.types.json for api-extractor workload
* disable composite features of tsconfig.types.json for api-extractor
* set declaration: true to avoid weird debug error
* fix jest tests
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-10 22:12:45 -07:00
Tiago Costa
ff9611b136
chore(NA): moving @kbn/storybook to babel transpiler ( #107547 )
...
* chore(NA): moving @kbn/storybook to babel transpiler
* chore(NA): fix import from kbn/storybook
* chore(NA): fix public interface
* chore(NA): fix kbn-storybook preset
* chore(NA): update types
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 20:26:46 +01:00
Greg Thompson
fa03028688
Enable CSS-in-JS styling with emotion
( #98157 )
...
* emotion deps
* kbn-babel
* kbn-test
* examples
* babel-plugin-styled-components config
* css prop type fixes
* type context
* declaration location
* some emotion types resolved
* clean up
* emotion v10 accomodations
* types
* kbn-crypto
* kbn-telemetry-tools
* bazel
* eslint rule; shared file regex array
* update paths
* Update packages/kbn-eslint-plugin-eslint/rules/module_migration.js
Co-authored-by: Spencer <email@spalger.com>
* remove placeholder styles
* doc api changes
* snapshot updates
* storybook comments
* use constant
* bump new deps
* condense versions
Co-authored-by: Spencer <email@spalger.com>
2021-07-09 13:42:50 -05:00
Clint Andrew Hall
b7ad0c9004
[storybook] Ignore TS-related HMR warnings ( #103605 )
...
* [storybook] Ignore TS-related HMR warnings
* Fix casing
* Remove warnings filter
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-29 22:34:50 -04:00
Tiago Costa
7c429f725e
chore(NA): moving @kbn/storybook into bazel ( #102731 )
...
* chore(NA): moving @kbn/storybook into bazel
* chore(NA): add some typing changes
* chore(NA): rename typings file
* chore(NA): fix typescript configs to build storybooks
* chore(NA): fix eslint and typechecking
2021-06-21 20:17:54 +01:00
Clint Andrew Hall
08ba5b3f4b
[canvas] Refactor Storybook from bespoke to standard configuration ( #101962 )
2021-06-17 18:57:44 -04:00
Nathan L Smith
3a020c3998
Storybook theme switcher ( #97201 )
...
Allow switching the EUI theme in the Storybook menu bar.
2021-05-06 15:25:05 -05:00
Nathan L Smith
2fbfca63d7
Turn off progress plugin in storybook ( #98253 )
...
Before:
```
info => Loading static files from /Users/smith/Code/kibana/node_modules/@kbn/ui-shared-deps/target and serving at /.
info => Loading presets
info => Loading presets
info => Loading 8 other files in "x-pack/plugins/apm/.storybook"
info => Adding stories defined in "x-pack/plugins/apm/.storybook/main.js"
info => Using default Webpack setup
... like 300MB of output ...
webpack built 0f7b67ae2a8a0401f5af in 105247ms
```
After:
```
info => Loading static files from /Users/smith/Code/kibana/node_modules/@kbn/ui-shared-deps/target and serving at /.
info => Loading presets
info => Loading presets
info => Loading 8 other files in "x-pack/plugins/apm/.storybook"
info => Adding stories defined in "x-pack/plugins/apm/.storybook/main.js"
info => Using default Webpack setup
... yeah it just sits there for a bit, but were you reading this and did you believe the percentages you were being told? ...
webpack built 0f7b67ae2a8a0401f5af in 105247ms
```
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-03 07:36:17 -05:00
Tiago Costa
f690c60517
chore(NA): moving @kbn/dev-utils into bazel ( #98496 )
...
* chore(NA): moving @kbn/dev-utils into bazel
* docs(NA): updated generated plugin list
2021-04-28 23:46:33 +01:00