2021-05-20 22:11:31 +02:00
{
"id" : "screenshotMode" ,
"client" : {
"classes" : [ ] ,
2021-06-08 22:26:37 +02:00
"functions" : [
{
"parentPluginId" : "screenshotMode" ,
"id" : "def-public.setScreenshotModeEnabled" ,
"type" : "Function" ,
"tags" : [ ] ,
"label" : "setScreenshotModeEnabled" ,
"description" : [
"\nUse this function to set the current browser to screenshot mode.\n\nThis function should be called as early as possible to ensure that screenshot mode is\ncorrectly detected for the first page load. It is not suitable for use inside any plugin\ncode unless the plugin code is guaranteed to, somehow, load before any other code.\n\nAdditionally, we don't know what environment this code will run in so we remove as many external\nreferences as possible to make it portable. For instance, running inside puppeteer."
] ,
"signature" : [
"() => void"
] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts" ,
2021-06-08 22:26:37 +02:00
"deprecated" : false ,
"children" : [ ] ,
"returnComment" : [ ] ,
"initialIsOpen" : false
}
] ,
2021-05-20 22:11:31 +02:00
"interfaces" : [ ] ,
"enums" : [ ] ,
2021-06-08 22:26:37 +02:00
"misc" : [
{
"parentPluginId" : "screenshotMode" ,
"id" : "def-public.KBN_SCREENSHOT_MODE_ENABLED_KEY" ,
"type" : "string" ,
"tags" : [ ] ,
"label" : "KBN_SCREENSHOT_MODE_ENABLED_KEY" ,
"description" : [ ] ,
"signature" : [
"\"__KBN_SCREENSHOT_MODE_ENABLED_KEY__\""
] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts" ,
2021-06-08 22:26:37 +02:00
"deprecated" : false ,
"initialIsOpen" : false
} ,
{
"parentPluginId" : "screenshotMode" ,
"id" : "def-public.KBN_SCREENSHOT_MODE_HEADER" ,
"type" : "string" ,
"tags" : [ ] ,
"label" : "KBN_SCREENSHOT_MODE_HEADER" ,
"description" : [ ] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/common/constants.ts" ,
2021-06-08 22:26:37 +02:00
"deprecated" : false ,
"initialIsOpen" : false
}
] ,
"objects" : [ ] ,
"setup" : {
"parentPluginId" : "screenshotMode" ,
2021-06-30 19:04:59 +02:00
"id" : "def-public.ScreenshotModePluginStart" ,
2021-06-08 22:26:37 +02:00
"type" : "Type" ,
"tags" : [ ] ,
2021-06-30 19:04:59 +02:00
"label" : "ScreenshotModePluginStart" ,
2021-06-08 22:26:37 +02:00
"description" : [ ] ,
"signature" : [
"IScreenshotModeService"
] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/public/types.ts" ,
2021-06-08 22:26:37 +02:00
"deprecated" : false ,
"lifecycle" : "setup" ,
"initialIsOpen" : true
}
2021-05-20 22:11:31 +02:00
} ,
"server" : {
"classes" : [ ] ,
"functions" : [
{
"parentPluginId" : "screenshotMode" ,
"id" : "def-server.setScreenshotModeEnabled" ,
"type" : "Function" ,
"tags" : [ ] ,
"label" : "setScreenshotModeEnabled" ,
"description" : [
"\nUse this function to set the current browser to screenshot mode.\n\nThis function should be called as early as possible to ensure that screenshot mode is\ncorrectly detected for the first page load. It is not suitable for use inside any plugin\ncode unless the plugin code is guaranteed to, somehow, load before any other code.\n\nAdditionally, we don't know what environment this code will run in so we remove as many external\nreferences as possible to make it portable. For instance, running inside puppeteer."
] ,
"signature" : [
"() => void"
] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts" ,
2021-05-20 22:11:31 +02:00
"deprecated" : false ,
"children" : [ ] ,
"returnComment" : [ ] ,
"initialIsOpen" : false
}
] ,
"interfaces" : [
{
"parentPluginId" : "screenshotMode" ,
"id" : "def-server.ScreenshotModeRequestHandlerContext" ,
"type" : "Interface" ,
"tags" : [ ] ,
"label" : "ScreenshotModeRequestHandlerContext" ,
"description" : [ ] ,
"signature" : [
{
"pluginId" : "screenshotMode" ,
"scope" : "server" ,
"docId" : "kibScreenshotModePluginApi" ,
"section" : "def-server.ScreenshotModeRequestHandlerContext" ,
"text" : "ScreenshotModeRequestHandlerContext"
} ,
" extends " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCorePluginApi" ,
"section" : "def-server.RequestHandlerContext" ,
"text" : "RequestHandlerContext"
}
] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/server/types.ts" ,
2021-05-20 22:11:31 +02:00
"deprecated" : false ,
"children" : [
{
"parentPluginId" : "screenshotMode" ,
"id" : "def-server.ScreenshotModeRequestHandlerContext.screenshotMode" ,
"type" : "Object" ,
"tags" : [ ] ,
"label" : "screenshotMode" ,
"description" : [ ] ,
"signature" : [
"{ isScreenshot: boolean; }"
] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/server/types.ts" ,
2021-05-20 22:11:31 +02:00
"deprecated" : false
}
] ,
"initialIsOpen" : false
}
] ,
"enums" : [ ] ,
"misc" : [
2021-06-08 22:26:37 +02:00
{
"parentPluginId" : "screenshotMode" ,
"id" : "def-server.KBN_SCREENSHOT_MODE_ENABLED_KEY" ,
"type" : "string" ,
"tags" : [ ] ,
"label" : "KBN_SCREENSHOT_MODE_ENABLED_KEY" ,
"description" : [ ] ,
"signature" : [
"\"__KBN_SCREENSHOT_MODE_ENABLED_KEY__\""
] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts" ,
2021-06-08 22:26:37 +02:00
"deprecated" : false ,
"initialIsOpen" : false
} ,
2021-05-20 22:11:31 +02:00
{
"parentPluginId" : "screenshotMode" ,
"id" : "def-server.KBN_SCREENSHOT_MODE_HEADER" ,
"type" : "string" ,
"tags" : [ ] ,
"label" : "KBN_SCREENSHOT_MODE_HEADER" ,
"description" : [ ] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/common/constants.ts" ,
2021-05-20 22:11:31 +02:00
"deprecated" : false ,
"initialIsOpen" : false
}
] ,
"objects" : [ ] ,
"setup" : {
"parentPluginId" : "screenshotMode" ,
"id" : "def-server.ScreenshotModePluginSetup" ,
"type" : "Interface" ,
"tags" : [ ] ,
"label" : "ScreenshotModePluginSetup" ,
"description" : [ ] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/server/types.ts" ,
2021-05-20 22:11:31 +02:00
"deprecated" : false ,
"children" : [
{
"parentPluginId" : "screenshotMode" ,
"id" : "def-server.ScreenshotModePluginSetup.isScreenshotMode" ,
"type" : "Function" ,
"tags" : [ ] ,
"label" : "isScreenshotMode" ,
"description" : [ ] ,
"signature" : [
"(request: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.KibanaRequest" ,
"text" : "KibanaRequest"
} ,
"<unknown, unknown, unknown, any>) => boolean"
] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/server/types.ts" ,
2021-05-20 22:11:31 +02:00
"deprecated" : false ,
"returnComment" : [ ] ,
"children" : [
{
"parentPluginId" : "screenshotMode" ,
2021-09-14 16:44:20 +02:00
"id" : "def-server.ScreenshotModePluginSetup.isScreenshotMode.$1" ,
2021-05-20 22:11:31 +02:00
"type" : "Object" ,
"tags" : [ ] ,
"label" : "request" ,
"description" : [ ] ,
"signature" : [
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.KibanaRequest" ,
"text" : "KibanaRequest"
} ,
"<unknown, unknown, unknown, any>"
] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/server/types.ts" ,
2021-05-20 22:11:31 +02:00
"deprecated" : false
}
]
} ,
{
"parentPluginId" : "screenshotMode" ,
"id" : "def-server.ScreenshotModePluginSetup.setScreenshotModeEnabled" ,
"type" : "Function" ,
"tags" : [ ] ,
"label" : "setScreenshotModeEnabled" ,
"description" : [
2021-08-30 17:02:04 +02:00
"\nSet the current environment to screenshot mode. Intended to run in a browser-environment, before any other scripts\non the page have run to ensure that screenshot mode is detected as early as possible."
2021-05-20 22:11:31 +02:00
] ,
"signature" : [
"() => void"
] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/server/types.ts" ,
2021-05-20 22:11:31 +02:00
"deprecated" : false ,
2021-08-09 18:51:00 +02:00
"children" : [ ] ,
"returnComment" : [ ]
2021-05-20 22:11:31 +02:00
}
] ,
"lifecycle" : "setup" ,
"initialIsOpen" : true
} ,
"start" : {
"parentPluginId" : "screenshotMode" ,
"id" : "def-server.ScreenshotModePluginStart" ,
"type" : "Interface" ,
"tags" : [ ] ,
"label" : "ScreenshotModePluginStart" ,
"description" : [ ] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/server/types.ts" ,
2021-05-20 22:11:31 +02:00
"deprecated" : false ,
"children" : [
{
"parentPluginId" : "screenshotMode" ,
"id" : "def-server.ScreenshotModePluginStart.isScreenshotMode" ,
"type" : "Function" ,
"tags" : [ ] ,
"label" : "isScreenshotMode" ,
"description" : [ ] ,
"signature" : [
"(request: " ,
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.KibanaRequest" ,
"text" : "KibanaRequest"
} ,
"<unknown, unknown, unknown, any>) => boolean"
] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/server/types.ts" ,
2021-05-20 22:11:31 +02:00
"deprecated" : false ,
"returnComment" : [ ] ,
"children" : [
{
"parentPluginId" : "screenshotMode" ,
2021-09-14 16:44:20 +02:00
"id" : "def-server.ScreenshotModePluginStart.isScreenshotMode.$1" ,
2021-05-20 22:11:31 +02:00
"type" : "Object" ,
"tags" : [ ] ,
"label" : "request" ,
"description" : [ ] ,
"signature" : [
{
"pluginId" : "core" ,
"scope" : "server" ,
"docId" : "kibCoreHttpPluginApi" ,
"section" : "def-server.KibanaRequest" ,
"text" : "KibanaRequest"
} ,
"<unknown, unknown, unknown, any>"
] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/server/types.ts" ,
2021-05-20 22:11:31 +02:00
"deprecated" : false
}
]
}
] ,
"lifecycle" : "start" ,
"initialIsOpen" : true
}
} ,
"common" : {
"classes" : [ ] ,
"functions" : [
{
"parentPluginId" : "screenshotMode" ,
"id" : "def-common.getScreenshotMode" ,
"type" : "Function" ,
"tags" : [ ] ,
"label" : "getScreenshotMode" ,
"description" : [
"\nThis function is responsible for detecting whether we are currently in screenshot mode.\n\nWe check in the current window context whether screenshot mode is enabled, otherwise we check\nlocalStorage. The ability to set a value in localStorage enables more convenient development and testing\nin functionality that needs to detect screenshot mode."
] ,
"signature" : [
"() => boolean"
] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts" ,
2021-05-20 22:11:31 +02:00
"deprecated" : false ,
"children" : [ ] ,
"returnComment" : [ ] ,
"initialIsOpen" : false
} ,
{
"parentPluginId" : "screenshotMode" ,
"id" : "def-common.setScreenshotModeDisabled" ,
"type" : "Function" ,
"tags" : [ ] ,
"label" : "setScreenshotModeDisabled" ,
"description" : [ ] ,
"signature" : [
"() => void"
] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts" ,
2021-05-20 22:11:31 +02:00
"deprecated" : false ,
"children" : [ ] ,
"returnComment" : [ ] ,
"initialIsOpen" : false
} ,
{
"parentPluginId" : "screenshotMode" ,
"id" : "def-common.setScreenshotModeEnabled" ,
"type" : "Function" ,
"tags" : [ ] ,
"label" : "setScreenshotModeEnabled" ,
"description" : [
"\nUse this function to set the current browser to screenshot mode.\n\nThis function should be called as early as possible to ensure that screenshot mode is\ncorrectly detected for the first page load. It is not suitable for use inside any plugin\ncode unless the plugin code is guaranteed to, somehow, load before any other code.\n\nAdditionally, we don't know what environment this code will run in so we remove as many external\nreferences as possible to make it portable. For instance, running inside puppeteer."
] ,
"signature" : [
"() => void"
] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts" ,
2021-05-20 22:11:31 +02:00
"deprecated" : false ,
"children" : [ ] ,
"returnComment" : [ ] ,
"initialIsOpen" : false
}
] ,
"interfaces" : [ ] ,
"enums" : [ ] ,
"misc" : [
2021-06-08 22:26:37 +02:00
{
"parentPluginId" : "screenshotMode" ,
"id" : "def-common.KBN_SCREENSHOT_MODE_ENABLED_KEY" ,
"type" : "string" ,
"tags" : [ ] ,
"label" : "KBN_SCREENSHOT_MODE_ENABLED_KEY" ,
"description" : [ ] ,
"signature" : [
"\"__KBN_SCREENSHOT_MODE_ENABLED_KEY__\""
] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/common/get_set_browser_screenshot_mode.ts" ,
2021-06-08 22:26:37 +02:00
"deprecated" : false ,
"initialIsOpen" : false
} ,
2021-05-20 22:11:31 +02:00
{
"parentPluginId" : "screenshotMode" ,
"id" : "def-common.KBN_SCREENSHOT_MODE_HEADER" ,
"type" : "string" ,
"tags" : [ ] ,
"label" : "KBN_SCREENSHOT_MODE_HEADER" ,
"description" : [ ] ,
2021-08-05 18:26:16 +02:00
"path" : "src/plugins/screenshot_mode/common/constants.ts" ,
2021-05-20 22:11:31 +02:00
"deprecated" : false ,
"initialIsOpen" : false
}
] ,
"objects" : [ ]
}
}