{
  "definitions": {
    "events": {
      "$ref": "#/definitions/Events",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "definitions": {
        "Events": {
          "additionalProperties": false,
          "properties": {
            "oauthFlowCustom": {
              "additionalProperties": false,
              "properties": {
                "provider": {
                  "$ref": "#/definitions/IProvider"
                }
              },
              "required": [
                "provider"
              ],
              "type": "object"
            },
            "oauthFlowInit": {
              "additionalProperties": false,
              "properties": {
                "provider": {
                  "$ref": "#/definitions/IProvider"
                },
                "redirect_uri": {
                  "type": "string"
                },
                "tmpCode": {
                  "type": "string"
                },
                "token": {
                  "type": "string"
                }
              },
              "required": [
                "provider"
              ],
              "type": "object"
            },
            "oauthFlowRedirectStart": {
              "additionalProperties": false,
              "description": "Emitted right before navigating to the provider (user chose social login).",
              "properties": {
                "provider": {
                  "$ref": "#/definitions/IProvider"
                }
              },
              "required": [
                "provider"
              ],
              "type": "object"
            },
            "oauthFlowSuccess": {
              "additionalProperties": false,
              "properties": {
                "token": {
                  "type": "string"
                }
              },
              "required": [
                "token"
              ],
              "type": "object"
            }
          },
          "required": [
            "oauthFlowSuccess",
            "oauthFlowInit",
            "oauthFlowRedirectStart",
            "oauthFlowCustom"
          ],
          "type": "object"
        },
        "IProvider": {
          "enum": [
            "facebook",
            "google",
            "gitlab",
            "github",
            "authentik"
          ],
          "type": "string"
        }
      }
    },
    "component": {
      "$ref": "#/definitions/Component",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "definitions": {
        "Component": {
          "additionalProperties": false,
          "properties": {
            "auth_cookie_name": {
              "type": "string"
            },
            "id": {
              "type": "string"
            },
            "provider": {
              "additionalProperties": false,
              "properties": {
                "name": {
                  "$ref": "#/definitions/IProvider"
                },
                "params": {
                  "additionalProperties": false,
                  "properties": {
                    "auth_server_url": {
                      "type": "string"
                    },
                    "client_id": {
                      "type": "string"
                    },
                    "redirect_url": {
                      "type": "string"
                    },
                    "scope": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "redirect_url",
                    "client_id",
                    "scope"
                  ],
                  "type": "object"
                },
                "url": {
                  "type": "string"
                }
              },
              "required": [
                "name"
              ],
              "type": "object"
            },
            "redirectonlogin": {
              "type": "string"
            },
            "social_auth_server_url": {
              "type": "string"
            },
            "style": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "IProvider": {
          "enum": [
            "facebook",
            "google",
            "gitlab",
            "github",
            "authentik"
          ],
          "type": "string"
        }
      }
    }
  },
  "description": "Clickable OAuth provider tile (default SVGs for Google, GitHub, GitLab, Facebook, Authentik; overridable via slot). Builds the provider authorization URL from `provider` params or redirects to a prebuilt `url`, then on return parses the current page URL to exchange the code/token with `simple-serverless-auth-client` when `social_auth_server_url` and `auth_cookie_name` are set. Emits `oauthFlowRedirectStart` immediately before leaving for the provider, then `oauthFlowInit`, `oauthFlowSuccess`, or `oauthFlowCustom` as the flow progresses.",
  "storybookArgs": {
    "provider": {
      "control": {
        "type": "object"
      }
    },
    "oauthFlowInit": {
      "action": "oauthFlowInitEvent"
    },
    "oauthFlowRedirectStart": {
      "action": "oauthFlowRedirectStartEvent"
    },
    "oauthFlowSuccess": {
      "action": "oauthFlowSuccessEvent"
    },
    "oauthFlowCustom": {
      "action": "oauthFlowCustomEvent"
    }
  },
  "styleSetup": {
    "vars": [
      {
        "name": "--bulma-link",
        "valueType": "color",
        "defaultValue": "#485fc7",
        "description": "Focus-visible outline on the clickable icon area (`#icon-content`)."
      },
      {
        "name": "--bulma-radius",
        "valueType": "number",
        "defaultValue": "0.375rem",
        "description": "Border radius for the focus ring around the icon control."
      }
    ],
    "parts": [
      {
        "name": "provider_icon",
        "description": "Built-in provider SVG (Google, GitHub, GitLab, Facebook, Authentik). Style size, `filter`, or color from the light DOM (e.g. `hb-auth-social-login-button::part(provider_icon)`)."
      }
    ]
  },
  "contributors": [],
  "htmlSlots": [
    {
      "name": "default",
      "description": "Replace the default provider artwork or add a custom label inside the square control; used when you do not rely on the built-in SVG set."
    }
  ],
  "i18n": [
    {
      "lang": "it",
      "language": "italian"
    },
    {
      "lang": "en",
      "language": "english"
    }
  ],
  "examples": [
    {
      "name": "facebook",
      "data": {
        "provider": {
          "name": "facebook"
        }
      }
    },
    {
      "name": "gitlab",
      "data": {
        "provider": {
          "name": "gitlab"
        }
      }
    },
    {
      "name": "github",
      "data": {
        "provider": {
          "name": "github"
        }
      }
    },
    {
      "name": "google",
      "data": {
        "provider": {
          "name": "google"
        }
      }
    }
  ],
  "iifeIntegrity": "sha384-Z/ri2SipKZm41YeTUU+VLnyMdkPDuI/cinImP0d/ypYVJJeU+7s0mrwzbiaA9CHg",
  "dependencies": [],
  "screenshots": [],
  "licenses": [
    {
      "type": "Apache-2.0",
      "path": "LICENSE.md",
      "cost": 0,
      "currency": "EUR"
    }
  ],
  "readmePath": "README.md",
  "name": "hb-auth-social-login-button",
  "category": "auth",
  "tags": [
    "auth",
    "oauth"
  ],
  "size": {
    "layout": "fullscreen"
  },
  "iifePath": "main.iife.js",
  "repoName": "@htmlbricks/hb-auth-social-login-button",
  "version": "0.76.5"
}