{
    "description": {
        "author": "Salesforce",
        "text": [
            "Component that displays different limit reached messages based on the limit type enum. Shows either a message with a link (for preview limits) or a simple message (for workspace and creation limits).",
            "Selector: experience_ui_gen_canvas-limit-panel"
        ]
    },
    "shadow": {
        "elements": [
            {
                "name": "limitCard",
                "selector": {
                    "css": "div.slds-card.quota-limit-card"
                },
                "description": "Represents the main card container that displays the limit message",
                "wait": true,
                "elements": [
                    {
                        "name": "headerText",
                        "selector": {
                            "css": "p.slds-text-heading_medium"
                        },
                        "description": "Represents the header text that displays the limit type title",
                        "wait": true
                    },
                    {
                        "name": "messageContainer",
                        "selector": {
                            "css": "p.slds-p-top_large"
                        },
                        "description": "Represents the container for the limit message content",
                        "wait": true,
                        "elements": [
                            {
                                "name": "helpLink",
                                "selector": {
                                    "css": "a[target='_blank']"
                                },
                                "type": [
                                    "actionable",
                                    "clickable"
                                ],
                                "description": "Represents the help link that opens in a new window (only visible for preview limits)",
                                "nullable": true
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "methods": [
        {
            "name": "getHeaderText",
            "description": {
                "text": [
                    "Returns the text content of the header"
                ],
                "return": "string"
            },
            "compose": [
                {
                    "element": "headerText",
                    "apply": "getText"
                }
            ]
        },
        {
            "name": "getMessageText",
            "description": {
                "text": [
                    "Returns the text content of the message container"
                ],
                "return": "string"
            },
            "compose": [
                {
                    "element": "messageContainer",
                    "apply": "getText"
                }
            ]
        },
        {
            "name": "isLimitCardVisible",
            "description": {
                "text": [
                    "Checks if the limit card is visible"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "limitCard",
                    "apply": "isVisible"
                }
            ]
        },
        {
            "name": "isHelpLinkPresent",
            "description": {
                "text": [
                    "Checks if the help link is present (only visible for preview limits)"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "helpLink",
                    "apply": "isPresent"
                }
            ]
        },
        {
            "name": "isHelpLinkVisible",
            "description": {
                "text": [
                    "Checks if the help link is visible (only visible for preview limits)"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "helpLink",
                    "apply": "isVisible"
                }
            ]
        },
        {
            "name": "clickHelpLink",
            "description": {
                "text": [
                    "Clicks the help link (only available for preview limits)"
                ]
            },
            "compose": [
                {
                    "element": "helpLink",
                    "apply": "click"
                }
            ]
        },
        {
            "name": "getHelpLinkText",
            "description": {
                "text": [
                    "Returns the text content of the help link"
                ],
                "return": "string"
            },
            "compose": [
                {
                    "element": "helpLink",
                    "apply": "getText"
                }
            ]
        },
        {
            "name": "getHelpLinkUrl",
            "description": {
                "text": [
                    "Returns the href attribute of the help link"
                ],
                "return": "string"
            },
            "compose": [
                {
                    "element": "helpLink",
                    "apply": "getAttribute",
                    "args": [
                        {
                            "name": "attrName",
                            "type": "string"
                        }
                    ]
                }
            ]
        }
    ]
}