* [ci-stats] track size of sharable runtime
* report more than just the total size of the bundle
* put all sharable runtime metrics in a group
* fix entryName find fn
* remove unused import
* update outdated snapshot
* use runtime const and fix misspellings
* remove errant empty comment
(cherry picked from commit 9f78abfbe7)
Co-authored-by: Spencer <spencer@elastic.co>
This creates a response_stream plugin in the Kibana /examples section. The plugin demonstrates API endpoints that can stream data chunks with a single request with gzip/compression support. gzip-streams get decompressed natively by browsers. The plugin demonstrates two use cases to get started: Streaming a raw string as well as a more complex example that streams Redux-like actions to the client which update React state via useReducer().
Adds a new experimental Kibana setting called `csp.disableUnsafeEval` which will default to `false`. When set to `true`, it will remove `unsafe-eval` from our CSP.
Also introduces a new module called `@kbn/handlebars` which is a replacement for the official `handlebars` module used in the frontend. This new module is necessary in order to avoid calling `eval`/`new Function` from within `handlebars` which is not allowed once `unsafe-eval` is removed from our CSP.
The `@kbn/handlebars` module is simply an extension of the main `handlebars` module which adds a new compile function called `compileAST` (as an alternative to the regular `compile` function). This new function will not use code-generation from strings to compile the template but will instead generate an AST and return a render function with the same API as the function returned by the regular `compile` function.
This is a little bit slower method, but since this is only meant to be used client-side, the slowdown should not be an issue.
The following limitations exists when using `@kbn/handlebars`:
The Inline partials handlebars template feature is not supported.
Only the following compile options will be supported:
- `knownHelpers`
- `knownHelpersOnly`
- `strict`
- `assumeObjects`
- `noEscape`
- `data`
Only the following runtime options will be supported:
- `helpers`
- `blockParams`
- `data`
Closes#36311
* Upgrade EUI to 55.1.3 backport
* [Deprecation] Remove `watchedItemProps` from EuiContextMenu usage - should no longer be necessary
* Update snapshots with new data-popover attr
* Fix failing FTR test
- Now that EuiContextMenu focus is restored correctly, there is a tooltip around the popover toggle that's blocking an above item that the test wants to click
- swapping the order so that the tooltip does not block the clicked item should work
* Fix 2nd maps FTR test with blocking tooltip
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Bumping EUI to v55.1.0
* Updating package.json to latest EUI
* Adding one translation.
* Updating theme config to pass Jest Tests #4 / CaseView.
* Updating theme config to pass Jest Tests 3, CauseStacktrace.
* Updating six x-pack synthetic test snapshots.
* Updating snapshots for discover, reporting, security_solution.
* Replacing instances of spacerSizes with euiSize.
* Updating a number of snapshots for Emotion styles.
* Adding more snapshots for Emotion style upgrade.
* Updating seven snapshot tests for Emotion styles.
* Updating two snapshot tests for Emotion styles.
* Adding two more snapshots for License and Upload.
* Updating a Typescript check, and classname count in one unit test.
* Updating 1 snapshot and refining EuiLoadingChart selector to avoid off-by-one error.
* Bumping EUI to 55.1.1 for a change in EUI Flyout behavior.
* update newsfeed flyout to use shards
* snapshot update
* eui to v55.1.2
* update onClose
* onClose types
* reduce snapshot noise
* reduce snapshot noise
* Adding back Emotion output at request of Data Discovery reviewer.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
* first version of semi-sane results
* getting a bit more sophisticated
* wip on footer, page numbers not working, but logo working
* re-work PoC for readability, added a lot of comments
* change up formatting for readability
* added comment
* remove some comments and remove HACK
* use page.pdf function
* remove controls from shared PoC ui
* preserveDrawingBuffer fix for maps, needs review
* minor clean up
* update sass
* clean up experimental code
* moved a few files around to get this ready for review
* added appservices as print media code owners
* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'
* added PDFJS to get num pages
* fix getting page number using pdfjs-dist
* update inline snapshot
* Revert "update inline snapshot"
This reverts commit eb413234a7.
* do not create a new page at the very end
* major overhaul, rather use puppeteers footerTemplate and headerTemplate to get visual parity with current reports
* add TODO
* update test fixture
* update doc comment
* remove whitespace
* fix missing time range from print PDF header and make size much smaller
* update tests
* update test
* try out slash instead of nbsp
* Revert "try out slash instead of nbsp"
This reverts commit 1de112a6f5.
* implement ability to inject logo using handlebars templates
* move assets to shared location
* fix injecting of values via handlebars and minor style tweaks for 3rd party logos
* inject a few more values to the footer
* update casing check
* use locales version of headless chromium zip
* fix tests and update sizing of logos
* use locales version for arm64 too
* fix jest test
* fix types
* made pdf capture check stricter
* fix PDF generation issue due to query bar rendering content that caused an issue; need to figure out what exactly the issue was...
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>