{
  "name": "annotation-context",
  "componentName": "AnnotationContext",
  "displayName": "AnnotationContext",
  "regions": [
    {
      "name": "children",
      "description": "Put all page content inside this component's children. This component\nwill provide a context which is used by the Hotspot elements throughout\nthe page.",
      "isDefault": true,
      "displayName": "content"
    }
  ],
  "functions": [],
  "properties": [
    {
      "name": "currentTutorial",
      "type": "TutorialPanelProps.Tutorial | null",
      "inlineType": {
        "name": "TutorialPanelProps.Tutorial",
        "type": "object",
        "properties": [
          {
            "name": "completed",
            "optional": false,
            "type": "boolean"
          },
          {
            "name": "completedScreenDescription",
            "optional": true,
            "type": "React.ReactNode"
          },
          {
            "name": "description",
            "optional": true,
            "type": "React.ReactNode"
          },
          {
            "name": "learnMoreUrl",
            "optional": true,
            "type": "string | null"
          },
          {
            "name": "prerequisitesAlert",
            "optional": true,
            "type": "React.ReactNode"
          },
          {
            "name": "prerequisitesNeeded",
            "optional": true,
            "type": "boolean"
          },
          {
            "name": "tasks",
            "optional": false,
            "type": "ReadonlyArray<TutorialPanelProps.Task>"
          },
          {
            "name": "title",
            "optional": false,
            "type": "string"
          }
        ]
      },
      "optional": false,
      "description": "The currently launched tutorial. This should be the object received\nin the `detail` property of the `onStartTutorial` event.",
      "formattedType": "TutorialPanelProps.Tutorial {\n  completed: boolean\n  completedScreenDescription?: React.ReactNode\n  description?: React.ReactNode\n  learnMoreUrl?: string | null\n  prerequisitesAlert?: React.ReactNode\n  prerequisitesNeeded?: boolean\n  tasks: ReadonlyArray<TutorialPanelProps.Task>\n  title: string\n}"
    },
    {
      "name": "i18nStrings",
      "type": "AnnotationContextProps.I18nStrings",
      "inlineType": {
        "name": "AnnotationContextProps.I18nStrings",
        "type": "object",
        "properties": [
          {
            "name": "finishButtonText",
            "optional": false,
            "type": "string"
          },
          {
            "name": "labelDismissAnnotation",
            "optional": false,
            "type": "string"
          },
          {
            "name": "labelHotspot",
            "optional": false,
            "type": "(openState: boolean, stepIndex: number, totalStepCount: number) => string",
            "inlineType": {
              "name": "(openState: boolean, stepIndex: number, totalStepCount: number) => string",
              "type": "function",
              "returnType": "string",
              "parameters": [
                {
                  "name": "openState",
                  "type": "boolean"
                },
                {
                  "name": "stepIndex",
                  "type": "number"
                },
                {
                  "name": "totalStepCount",
                  "type": "number"
                }
              ]
            }
          },
          {
            "name": "nextButtonText",
            "optional": false,
            "type": "string"
          },
          {
            "name": "previousButtonText",
            "optional": false,
            "type": "string"
          },
          {
            "name": "stepCounterText",
            "optional": false,
            "type": "(stepIndex: number, totalStepCount: number) => string",
            "inlineType": {
              "name": "(stepIndex: number, totalStepCount: number) => string",
              "type": "function",
              "returnType": "string",
              "parameters": [
                {
                  "name": "stepIndex",
                  "type": "number"
                },
                {
                  "name": "totalStepCount",
                  "type": "number"
                }
              ]
            }
          },
          {
            "name": "taskTitle",
            "optional": false,
            "type": "(taskIndex: number, taskTitle: string) => string",
            "inlineType": {
              "name": "(taskIndex: number, taskTitle: string) => string",
              "type": "function",
              "returnType": "string",
              "parameters": [
                {
                  "name": "taskIndex",
                  "type": "number"
                },
                {
                  "name": "taskTitle",
                  "type": "string"
                }
              ]
            }
          }
        ]
      },
      "optional": false,
      "description": "An object containing all the necessary localized strings required by the component. The object should contain:\n\n* `finishButtonText` - Specifies the text that's displayed in the finish button.\n* `labelDismissAnnotation` - Specifies the aria-label for the dismiss button.\n* `labelHotspot` - Specifies the aria-label for the hotspot button. The `openState` argument is deprecated, it's handled by the hotspot button aria-expanded attribute.\n* `nextButtonText` - Specifies the text that's displayed in the next button.\n* `previousButtonText` - Specifies the text that's displayed in the previous button.\n* `stepCounterText` - Specifies the step counter text that's displayed in the annotation popover.\n* `taskTitle` - Specifies the title text that's displayed in the annotation popover.",
      "formattedType": "AnnotationContextProps.I18nStrings {\n  finishButtonText: string\n  labelDismissAnnotation: string\n  labelHotspot: (\n    openState: boolean,\n    stepIndex: number,\n    totalStepCount: number\n  ) => string\n  nextButtonText: string\n  previousButtonText: string\n  stepCounterText: (\n    stepIndex: number,\n    totalStepCount: number\n  ) => string\n  taskTitle: (\n    taskIndex: number,\n    taskTitle: string\n  ) => string\n}"
    }
  ],
  "events": [
    {
      "name": "onExitTutorial",
      "description": "Fired when the user exits the current tutorial.",
      "cancelable": false,
      "detailType": "TutorialPanelProps.TutorialDetail",
      "detailInlineType": {
        "name": "TutorialPanelProps.TutorialDetail",
        "type": "object",
        "properties": [
          {
            "name": "tutorial",
            "optional": false,
            "type": "TutorialPanelProps.Tutorial",
            "inlineType": {
              "name": "TutorialPanelProps.Tutorial",
              "type": "object",
              "properties": [
                {
                  "name": "completed",
                  "optional": false,
                  "type": "boolean"
                },
                {
                  "name": "completedScreenDescription",
                  "optional": true,
                  "type": "React.ReactNode"
                },
                {
                  "name": "description",
                  "optional": true,
                  "type": "React.ReactNode"
                },
                {
                  "name": "learnMoreUrl",
                  "optional": true,
                  "type": "string | null"
                },
                {
                  "name": "prerequisitesAlert",
                  "optional": true,
                  "type": "React.ReactNode"
                },
                {
                  "name": "prerequisitesNeeded",
                  "optional": true,
                  "type": "boolean"
                },
                {
                  "name": "tasks",
                  "optional": false,
                  "type": "ReadonlyArray<TutorialPanelProps.Task>"
                },
                {
                  "name": "title",
                  "optional": false,
                  "type": "string"
                }
              ]
            }
          }
        ]
      },
      "formattedDetailType": "TutorialPanelProps.TutorialDetail {\n  tutorial: TutorialPanelProps.Tutorial\n}"
    },
    {
      "name": "onFinish",
      "description": "Fired when the user clicks the \"Finish\" button on the last step of\nthe tutorial.",
      "cancelable": false
    },
    {
      "name": "onStartTutorial",
      "description": "Fired when the user selects a tutorial from the list.",
      "cancelable": false,
      "detailType": "TutorialPanelProps.TutorialDetail",
      "detailInlineType": {
        "name": "TutorialPanelProps.TutorialDetail",
        "type": "object",
        "properties": [
          {
            "name": "tutorial",
            "optional": false,
            "type": "TutorialPanelProps.Tutorial",
            "inlineType": {
              "name": "TutorialPanelProps.Tutorial",
              "type": "object",
              "properties": [
                {
                  "name": "completed",
                  "optional": false,
                  "type": "boolean"
                },
                {
                  "name": "completedScreenDescription",
                  "optional": true,
                  "type": "React.ReactNode"
                },
                {
                  "name": "description",
                  "optional": true,
                  "type": "React.ReactNode"
                },
                {
                  "name": "learnMoreUrl",
                  "optional": true,
                  "type": "string | null"
                },
                {
                  "name": "prerequisitesAlert",
                  "optional": true,
                  "type": "React.ReactNode"
                },
                {
                  "name": "prerequisitesNeeded",
                  "optional": true,
                  "type": "boolean"
                },
                {
                  "name": "tasks",
                  "optional": false,
                  "type": "ReadonlyArray<TutorialPanelProps.Task>"
                },
                {
                  "name": "title",
                  "optional": false,
                  "type": "string"
                }
              ]
            }
          }
        ]
      },
      "formattedDetailType": "TutorialPanelProps.TutorialDetail {\n  tutorial: TutorialPanelProps.Tutorial\n}"
    },
    {
      "name": "onStepChange",
      "description": "This event is fired when a user clicks the \"Next\" or \"Previous\"\nbutton on a popover, when the user clicks on a closed hotspot icon,\nor when the AnnotationOverlay determines that the current hotspot\nhas disappeared from the page and a different one should be\nselected (e.g. when navigating between pages).\n\nUse the `reason` property of the event detail to determine why\nthis event was fired.",
      "cancelable": false,
      "detailType": "AnnotationContextProps.StepChangeDetail",
      "detailInlineType": {
        "name": "AnnotationContextProps.StepChangeDetail",
        "type": "object",
        "properties": [
          {
            "name": "reason",
            "optional": false,
            "type": "string",
            "inlineType": {
              "name": "\"open\" | \"next\" | \"previous\" | \"auto-fallback\"",
              "type": "union",
              "values": [
                "open",
                "next",
                "previous",
                "auto-fallback"
              ]
            }
          },
          {
            "name": "step",
            "optional": false,
            "type": "number"
          }
        ]
      },
      "formattedDetailType": "AnnotationContextProps.StepChangeDetail {\n  reason: string\n  step: number\n}"
    }
  ],
  "path": "/components/annotation-context"
}